/* =============================== */
/*          VARIABILI CSS          */
/* =============================== */
:root {
    --primary-color: #194745;
    --secondary-color: #CA9DAD;
    --accent-color: #FFBF3D;
    --background-color: #AADEC8;
    --text-color: #ffffff;
}

/* =============================== */
/*          STILI GENERALI         */
/* =============================== */
html, body {
    height: 100%;
    display: flex;
    flex-direction: column;
}

body {
    font-family: 'Goudy Old Style', serif !important;
    background-color: var(--background-color);
    line-height: 1.6;
    letter-spacing: 0.5px;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

body.loaded {
    opacity: 1;
}

main {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

footer {
    margin-top: auto;
    width: 100%;
}

/* =============================== */
/*          TIPOGRAFIA             */
/* =============================== */
@font-face {
    font-family: 'Goudy Old Style';
    src: url('../fonts/GOUDOS.TTF') format('truetype');
}

h1, h2, h3 {
    font-family: 'Goudy Old Style', serif;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

h1{
    font-size: 70px;
}

h2{
    font-size: 50px;
}

h3{
    font-size: 30px;
}

p {
    font-size: 1.1rem;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease-in-out;
}

a:hover {
    color: var(--accent-color);
    text-decoration: underline;
}

/* =============================== */
/*          NAVBAR                 */
/* =============================== */
.navbar {
    background-color: var(--primary-color) !important;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 15px;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar-brand, .navbar-nav .nav-link {
    color: var(--text-color) !important;
    font-weight: bold;
}

.navbar-brand {
    font-size: 1.3rem;
    white-space: nowrap;
}

.navbar-nav .nav-link:hover {
    color: var(--accent-color) !important;
}

.navbar-toggler {
    border: 2px solid #B0DAB9 !important;
    border-radius: 5px;
    background-color: transparent !important;
    padding: 6px 10px;
    font-size: 14px;
    white-space: nowrap;
}

.navbar-toggler:focus,
.navbar-toggler:active {
    outline: none !important;
    box-shadow: none !important;
    border-color: #B0DAB9 !important;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3E%3Cpath stroke='%23B0DAB9' stroke-width='3' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
    width: 25px;
    height: 25px;
}

/* =============================== */
/*          SEZIONE HERO           */
/* =============================== */
#hero {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-content {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    /*flex-wrap: wrap;*/
    text-align: left;
    padding: 40px;
    background: rgba(255, 255, 255, 0.85);
    border-radius: 15px;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
    max-width: 1200px;
    width: 90%;
    gap: 50px;
    position: relative;
    overflow: hidden;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
}

.hero-image img {
    max-width: 450px !important;
    width: 100% !important;
    height: auto !important;
    object-fit: contain !important;
    border-radius: 15px;
    transition: transform 0.3s ease-in-out;
}

.hero-image img:hover {
    transform: scale(1.05);
}

.hero-text {
    flex: 1.5;
    padding: 20px;
    text-align: left;
}

#hero h1 {
    margin-bottom: 20px;
}

#hero p {
    font-size: 1.2rem;
    margin-bottom: 20px;
}

.hero-subtitle {
    font-size: 1.8rem;
    font-weight: 500;
    color: var(--primary-color);
    margin-bottom: 15px;
    letter-spacing: 1px;
}

.benefits-list {
    list-style: none;
    padding: 0;
    text-align: left;
    margin-top: 15px;
}

.benefits-list li {
    font-size: 1.2rem;
    font-weight: 500;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.benefits-list i {
    color: var(--accent-color);
    font-size: 1.5rem;
}

#home-servizi {
    padding: 60px 0;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.home-servizi-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    margin-top: 30px;
}

.home-servizi-container a {
    flex-wrap: wrap;
}

.home-servizi-container a:hover{
    text-decoration: none;
    color: var(--primary-color)
}

.home-servizio {
    background: rgba(255, 255, 255, 0.8);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    max-width: 300px;
    text-align: center;
    transition: transform 0.3s ease-in-out;
}

.home-servizio:hover {
    transform: scale(1.05);
    box-shadow: 0px 8px 20px rgba(0, 0, 0, 0.2);
}

.home-servizio img {
    max-width: 80px;
    height: auto;
    margin-bottom: 10px;
}

#testimonianze {
    padding: 60px 0;
    background-color: var(--background-color);
}

/*.testimonials-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    margin-top: 30px;
}*/

/* =============================== */
/*        SEZIONE CHI SONO         */
/* =============================== */
#chi-sono {
    padding: 60px 0;
    text-align: center;
}

.chi-sono-card {
    background: rgba(255, 255, 255, 0.9);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    text-align: left;
}

.chi-sono-img {
    max-width: 80%;
    height: auto;
    border-radius: 15px;
    transition: transform 0.3s ease-in-out;
    object-fit: cover;
}

.chi-sono-img:hover {
    transform: scale(1.05);
}

.bio-highlight {
    font-size: 1.5rem;
    color: var(--primary-color);
    font-weight: bold;
    margin-bottom: 10px;
}

.bio-section-title {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--primary-color);
    margin-top: 20px;
    padding-left: 10px;
}

.quote-text {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--primary-color);
    margin-top: 20px;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.2);
}

#metodo {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.5s ease-in-out;
}

.metodo-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    margin-top: 20px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 15px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    text-align: center;
}

.metodo-box {
    background: rgba(255, 255, 255, 0.9);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
    width: 250px;
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1s ease-in-out forwards;
}

.metodo-box:hover {
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

.metodo-icon {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.separator {
    width: 50%;
    height: 4px;
    background-color: var(--primary-color);
    margin: 30px auto;
    border-radius: 5px;
    opacity: 0.7;
}

.cta-box {
    background: var(--secondary-color);
    color: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    text-align: center;
}

.cta-box p {
    font-size: 1.2rem;
    color: var(--primary-color);
    font-weight: bold;
}

.cta-box .btn {
    margin-top: 10px;
}

/* =============================== */
/*        SEZIONE SERVIZI          */
/* =============================== */
#servizi {
    text-align: center;
}

.servizi-container {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 20PX;
    justify-content: center;
    gap: 30px;
}

.servizi-container a:hover{
    text-decoration: none;
    color: var(--primary-color)
}

.servizio {
    background: rgba(255, 255, 255, 0.8);
    padding: 20px;
    padding-bottom: 0;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    max-width: 300px;
    text-align: center;
}

section {
    padding: 80px 0;
}

#servizi h3 {
    margin-bottom: 15px;
}

.card {
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.card:hover {
    transform: scale(1.05);
    box-shadow: 0px 8px 20px rgba(0, 0, 0, 0.2);
}

.card img {
    display: block;
    margin: 0 auto;
    max-width: 80px;
    height: auto;
}

#procedura-visita, #avvertenza-visita {
    padding: 40px 0;
}

#procedura-visita{
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.5s ease-in-out;
}

.custom-list, .custom-list2 {
    list-style: none;
    padding: 0;
    text-align: center;
    margin-top: 20px;
    padding-left: 0;
    list-style: none;
}

.custom-list li {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    margin: 8px 0;
    margin-bottom: 12px;
}

.custom-list li::before {
    content: "\f787";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    color: var(--primary-color);
    margin-right: 10px;
    font-size: 1.2rem;
}

.custom-list2 li {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    margin: 8px 0;
    margin-bottom: 12px;
}

.custom-list2 li::before {
    content: "\f06a";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    color: var(--primary-color);
    margin-right: 10px;
    font-size: 1.2rem;
}

/* =============================== */
/*          SEZIONE BLOG           */
/* =============================== */
#blog {
    text-align: center;
}

.blog-container {
    display: flex;
    justify-content: center;
    margin-top: 30px;
}

.blog-card {
    background: rgba(255, 255, 255, 0.9);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    max-width: 900px;
    width: 100%;
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.blog-card:hover {
    transform: scale(1.03);
    box-shadow: 0px 8px 20px rgba(0, 0, 0, 0.2);
}

/* =============================== */
/*        SEZIONE CONTATTI         */
/* =============================== */
#contatti {
    text-align: center;
}

#contatti h2, #contatti h3 {
    margin-bottom: 15px;
}

.contact-info, .contact-form {
    flex: 1;
    max-width: 600px;
    background: #fff;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
    max-width: 600px;
    width: 100%;
    margin: 0 auto;
}

.contact-form input, .contact-form textarea {
    margin-bottom: 10px;
    border-radius: 8px;
    border: 1px solid #ddd;
}

.contact-form .btn {
    background-color: #F4B400;
    color: white;
    width: 100%;
    border-radius: 8px;
}

.location-card {
    background: #fff;
    padding: 15px;
    border-radius: 15px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.location-card iframe {
    width: 100%;
    height: 200px;
    border-radius: 8px;
}

.map-link{
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.map-link:hover {
    transform: scale(1.03);
    box-shadow: 0px 8px 20px rgba(0, 0, 0, 0.2);
}

/* =============================== */
/*            STILI BTN            */
/* =============================== */
.btn-primary {
    background-color: #FFBF3D;
    border-color: #FFBF3D;
    transition: all 0.3s ease-in-out;
    font-size: 18px;
    padding: 12px 24px;
    font-weight: bold;
    border-radius: 5px;
    box-shadow: 0px 3px 5px rgba(0, 0, 0, 0.2);
    margin-top: 20px; /* Spazio sopra il pulsante "Invia" */
}

.btn-primary:hover {
    background-color: #FFA500;
    border-color: #FFA500;
    transform: scale(1.1);
    box-shadow: 0px 5px 10px rgba(0, 0, 0, 0.3);
}

.whatsapp-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    background-color: #25D366;
    padding: 12px 16px;
    border-radius: 50px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
    display: flex;
    align-items: center;
    text-decoration: none;
    color: white;
    font-weight: bold;
    font-size: 16px;
}

.whatsapp-button:hover {
    transform: scale(1.1);
    box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.3);
}

.whatsapp-button img {
    width: 25px;
    height: 25px;
    margin-right: 8px;
}

/* =============================== */
/*          FOOTER STILI           */
/* =============================== */
footer {
    background-color: var(--primary-color) !important;
    opacity: 1 !important;
    color: var(--text-color) !important;
    text-align: center;
    padding: 20px 0;
    margin-top: 50px;
}

.policy-links {
    padding-top: 10px;
    font-size: 0.9rem;
    text-align: center;
}

.policy-links a {
    color: var(--text-color);
    text-decoration: none;
}

.policy-links a:hover {
    color: var(--accent-color);
    text-decoration: underline;
}

/* =============================== */
/*           KEY FRAMES            */
/* =============================== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-15px) rotate(8deg); }
}

/* =============================== */
/*          MEDIA QUERIES          */
/* =============================== */
@media (max-width: 992px) {
    .navbar-brand {
        font-size: 1.1rem;
    }
}

@media (max-width: 768px) {
    .navbar {
        padding: 8px 12px;
    }
    .navbar-brand {
        font-size: 1rem;
    }
    .navbar-toggler {
        padding: 4px;
    }
}

@media (max-width: 768px) {
    #hero .hero-content {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }

    #hero .hero-text {
        flex: 1;
        text-align: center;
    }

    #hero h1 {
        font-size: 40px;
        line-height: 1.2;
    }

    #hero .hero-image img {
        max-width: 250px;
    }
}

@media (max-width: 768px) {
    .chi-sono-img {
        max-width: 100%;
        margin-top: 20px;
    }

    .chi-sono-card {
        padding: 20px;
    }

    .bio-section-title {
        font-size: 1.1rem;
    }
}

@media (min-width: 992px) {
    .chi-sono-img {
        max-width: 75%;
    }
}

@media (max-width: 768px) {
    .chi-sono-img {
        max-width: 100%;
        margin-top: 20px;
    }

    .chi-sono-card {
        margin-bottom: 20px;
    }
}

@media (max-width: 768px) {
    .metodo-container {
        gap: 20px;
    }
}

@media (max-width: 992px) {
    .contact-info, .contact-form, .location-card {
        margin-bottom: 20px;
    }
}