/* --- RESET E VARIABILI --- */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,700;1,400&family=Quicksand:wght@300;400;500;700&display=swap');

* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    /* --primary-sage diventa il nuovo colore d'accento principale (Bottoni, Icone)
  /* --primary-sage: Diventa il lilla scuro per i bottoni e le icone (deve avere contrasto!) */
    --primary-sage: #9b84a1;

    /* --dark-sage: Diventa il Prugna scuro per i titoli (molto professionale) */
    --dark-sage: #4a3a4d;

    /* --light-bg: Sfondo generale quasi bianco, con un tocco di lavanda */
    --light-bg: #fdfcff;

    /* --accent-green: Diventa il lilla esatto della cliente per gli sfondi delle sezioni */
    --accent-green: #e2ceea;

    /* --text-main: Testo principale (grigio antracite violaceo) */
    --text-main: #332d36;

    --white: #ffffff;
}


html { scroll-behavior: smooth; }

body {
    font-family: 'Quicksand', sans-serif;
    background-color: var(--light-bg);
    color: var(--text-main);
    line-height: 1.7;
    padding-top: 80px;
    overflow-x: hidden;
}

h1, h2, h3 { font-family: 'Playfair Display', serif; color: var(--dark-sage); font-weight: 700; }
.section-title { text-align: center; font-size: 2.5rem; margin-bottom: 50px; }

/* ==========================================
   NAVBAR & LOGO (FILTRO CSS INCLUSO)
========================================== */
.navbar {
    background-color: rgba(253, 253, 251, 0.95);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 2000;
    padding: 12px 0;
    border-bottom: 1px solid rgba(120, 150, 120, 0.15);
}

.navbar-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 30px;
}

.logo-img {
    height: 60px;
    width: auto;
    filter: brightness(0) saturate(100%) invert(26%) sepia(11%) saturate(1645%) hue-rotate(242deg) brightness(93%) contrast(92%);    transition: all 0.3s ease;
}



.navbar-list {
    display: flex;
    list-style: none;
    gap: 25px;
}

.navbar-list a {
    text-decoration: none;
    color: var(--dark-sage);
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 1px;
    transition: 0.3s;
}

.navbar-list a:hover {
    color: var(--primary-sage);
}

.navbar-prenota {
    background: var(--primary-sage);
    color: white !important;
    padding: 10px 22px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.8rem;
    transition: 0.3s;
}
/* Effetto Hover per il tasto Prenota nella Navbar */
.navbar-prenota:hover {
    background-color: var(--dark-sage); /* Passa al marrone caldo/terracotta scuro */
    transform: translateY(-2px);       /* Effetto sollevamento */
    box-shadow: 0 5px 15px rgba(199, 139, 118, 0.4); /* Ombra morbida coerente col nuovo colore */
    color: white !important;           /* Garantisce che il testo resti bianco */
}

/* Effetto al click (opzionale, per un feedback immediato) */
.navbar-prenota:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(199, 139, 118, 0.2);
}
/* --- HERO --- */
.hero { display: grid; grid-template-columns: 1fr 1fr; min-height: 85vh; background: #F4F7F4; }
.hero-image img { width: 100%; height: 100%; object-fit: cover; }
.hero-content { display: flex; align-items: center; padding: 60px; }
.hero-text h1 { font-size: 4rem; line-height: 1.1; margin-bottom: 25px; }
.hero-subtitle { color: var(--primary-sage); text-transform: uppercase; letter-spacing: 4px; font-weight: 700; display: block; }

/* --- FEATURES --- */
.features-nutri { padding: 80px 20px; }
.features-grid {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}
.feature-item {
    background: var(--white);
    padding: 40px;
    border-radius: 40px;
    text-align: center;
    border: 1px solid var(--accent-green);
    transition: 0.4s;
}
.feature-item:hover { transform: translateY(-10px); box-shadow: 0 15px 30px rgba(0,0,0,0.05); }
.feature-icon { font-size: 2.5rem; color: var(--primary-sage); margin-bottom: 20px; }
/* --- CHI SONO --- */
.chisono-modern { padding: 80px 20px; }
.chisono-container { max-width: 1100px; margin: 0 auto; display: flex; align-items: center; gap: 60px; }
.chisono-img { width: 100%; max-width: 450px; border-radius: 200px 200px 0 200px; border: 12px solid var(--accent-green); }
.nutri-divider { width: 50px; height: 4px; background: var(--primary-sage); margin: 20px 0; }

/* --- VISITE --- */
.visita-modern { padding: 80px 20px; background-color: var(--accent-green); }
.visita-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); gap: 30px; max-width: 1100px; margin: 0 auto; }
.visita-card { background: var(--white); padding: 45px; border-radius: 40px; box-shadow: 0 10px 30px rgba(0,0,0,0.03); }
.v-tag { color: var(--primary-sage); font-weight: 700; text-transform: uppercase; font-size: 0.8rem; }
.v-text-card { margin: 20px 0; font-size: 1.05rem; }
.v-list { list-style: none; margin: 20px 0; }
.v-list li { margin-bottom: 10px; display: flex; align-items: center; gap: 10px; }
.v-list i { color: var(--primary-sage); }
.visita-cta { text-align: center; margin-top: 50px; }
.visita-cta p { font-family: 'Playfair Display', serif; font-size: 1.4rem; color: var(--dark-sage); margin-bottom: 20px; }

/* --- MAPPA --- */
.dove-siamo-modern { padding: 100px 20px; }
.mappa-container { display: flex; max-width: 1100px; margin: 0 auto; background: var(--white); border-radius: 40px; overflow: hidden; border: 1px solid var(--accent-green); }
.mappa-info { flex: 1; padding: 60px; display: flex; flex-direction: column; justify-content: center; }
.mappa-info p { margin-bottom: 15px; }
.mappa-info i { color: var(--primary-sage); margin-right: 10px; }
.mappa-embed { flex: 1.5; min-height: 450px; }
.mappa-embed iframe { width: 100%; height: 100%; border: none; filter: grayscale(0.1); }

/* --- RECENSIONI --- */
.recensioni { padding: 100px 20px; text-align: center; }
.reviews-container { max-width: 800px; margin: 0 auto; background: var(--white); padding: 60px; border-radius: 40px; border: 1px solid var(--accent-green); }
.review-card { display: none; }
.review-card.active { display: block; animation: fadeIn 0.8s; }
.stars { color: #FFD700; margin-bottom: 20px; }
.patient-name { font-weight: 700; color: var(--primary-sage); display: block; margin-top: 15px; }

/* --- CONTATTI & FOOTER --- */
/* --- CONTATTI ORIZZONTALI MINIMAL --- */
.contatti-minimal {
    padding: 80px 20px;
    background-color: var(--white);
    text-align: center;
}

.minimal-header {
    margin-bottom: 50px;
}

.nutri-divider-center {
    width: 40px;
    height: 3px;
    background: var(--primary-sage);
    margin: 15px auto;
}

.contatti-horizontal-grid {
    display: flex;
    justify-content: center;
    gap: 12px; /* Ridotto da 20px per recuperare spazio */
    flex-wrap: nowrap; /* Forza la riga singola su desktop */
    max-width: 1250px; /* Leggermente allargato per sicurezza */
    margin: 0 auto;
}

.minimal-card {
    flex: 1;
    min-width: 180px;
    max-width: 220px;
    display: flex;
    align-items: center;
    padding: 15px 12px;
    background: var(--light-bg);
    border: 1px solid rgba(120, 150, 120, 0.1);
    border-radius: 15px;
    text-decoration: none;
    color: var(--text-main);
    transition: all 0.3s ease;
}

.minimal-card i {
    font-size: 1.2rem;
    color: var(--primary-sage);
    margin-right: 15px;
}

.m-info {
    text-align: left;
}

.m-info span {
    display: block;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #888;
    font-weight: 700;
}

.m-info p {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 600;
}

/* Effetto Hover Sottile */
.minimal-card:hover {
    background: var(--white);
    border-color: var(--primary-sage);
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.03);
}

@media (max-width: 1024px) {
    .contatti-horizontal-grid {
        flex-wrap: wrap;
        justify-content: center;
    }

    .minimal-card {
        min-width: 45%; /* Due per riga sui tablet */
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .minimal-card {
        min-width: 100%; /* Una per riga sui telefoni */
    }
}

footer { background-color: var(--accent-green); padding: 60px 0 40px; text-align: center; }
.footer-main { font-weight: 700; font-family: 'Playfair Display', serif; }

/* --- BUTTONS & ANIM --- */
.btn-prenota { display: inline-block; padding: 16px 35px; background: var(--primary-sage); color: white; text-decoration: none; border-radius: 12px; font-weight: 700; transition: 0.3s; }
.btn-prenota:hover { background: var(--dark-sage); transform: translateY(-3px); }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

@media (max-width: 992px) {
    .hero { grid-template-columns: 1fr; }
    .mappa-container {
        flex-direction: column;
        border-radius: 30px; /* Bordi leggermente meno arrotondati su mobile */
    }
    .navbar-list { display: none; }
    .mappa-info {
        padding: 30px 20px; /* Ridotto da 60px: ora il testo è più compatto */
        text-align: center; /* Centriamo le info dello studio su mobile */
    }

    .mappa-embed {
        flex: none;
        height: 300px; /* Altezza fissa e più contenuta per la mappa */
        min-height: auto; /* Rimuove il vincolo dei 450px che la spingeva giù */
    }
}

.visita-header {
    text-align: center;
    margin-bottom: 50px;
    width: 100%;
}

.visita-header h2 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.visita-header p {
    font-size: 1.1rem;
    color: #666;
    max-width: 600px; /* Evita che il sottotitolo sia troppo largo */
    margin: 0 auto;   /* Centra il sottotitolo rispetto al contenitore */
}
/* --- NUOVE SEZIONI: PACCHETTI E GUIDE --- */
.container-small { max-width: 1100px; margin: 0 auto; padding: 0 20px; }
.section-desc { text-align: center; margin-top: -40px; margin-bottom: 50px; color: #666; }

/* --- PACCHETTI --- */
.pacchetti-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 80px;
}

.pacchetto-card {
    background: white;
    padding: 40px;
    border-radius: 40px;
    /* FISSATO: Bordo verde visibile per entrambi */
    border: 2px solid var(--primary-sage);
    text-align: center;
    position: relative;
    /* FISSATO: Flexbox per allineare i tasti in fondo */
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Effetto sollevamento per i pacchetti */
.pacchetto-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 20px 40px rgba(120, 150, 120, 0.2);
}

.pacchetto-card.premium {
    background-color: var(--white); /* Mantiene coerenza */
    box-shadow: 0 10px 30px rgba(120, 150, 120, 0.1);
}

.p-badge {
    background: var(--primary-sage);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    align-self: center; /* Centra il badge */
}

.p-price { font-family: 'Playfair Display', serif; font-size: 3rem; color: var(--dark-sage); margin: 20px 0; }
.p-features { list-style: none; margin-bottom: 30px; text-align: left; flex-grow: 1; } /* flex-grow spinge il tasto giù */
.p-features li { margin-bottom: 12px; display: flex; align-items: center; gap: 10px; font-size: 0.95rem; }

.btn-paga {
    display: block;
    background: var(--primary-sage);
    color: white;
    text-decoration: none;
    padding: 15px;
    border-radius: 12px;
    font-weight: 700;
    margin-top: auto; /* FISSATO: Spinge il tasto sempre in fondo */
    transition: 0.3s;
}

.btn-paga:hover {
    background: var(--dark-sage);
}

.payment-methods { font-size: 1.5rem; color: #ccc; display: flex; justify-content: center; gap: 10px; margin-top: 15px; }

/* --- GUIDE DIGITALI --- */
.guide-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(400px, 1fr)); gap: 30px; }

.guida-card {
    background: white;
    border-radius: 30px;
    display: flex;
    overflow: hidden;
    border: 1px solid var(--accent-green);
    transition: border-color 0.3s;
}

/* La card rimane ferma come hai chiesto, cambia solo il bordo */
.guida-card:hover {
    border-color: var(--primary-sage);
}

.guida-img-placeholder {
    background: var(--accent-green);
    width: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: var(--primary-sage);
}

.guida-content { padding: 30px; flex: 1; }
.guida-footer { display: flex; justify-content: space-between; align-items: center; margin-top: 20px; }
.guida-price { font-family: 'Playfair Display', serif; font-size: 1.5rem; font-weight: 700; color: var(--dark-sage); }

/* FISSATO: Hover solo per il tasto compra ora */
.btn-paga-small {
    background: var(--dark-sage);
    color: white;
    padding: 8px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.8rem;
    transition: all 0.3s ease;
}

.btn-paga-small:hover {
    background: var(--primary-sage);
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(120, 150, 120, 0.3);
}

.guida-note { display: block; margin-top: 10px; font-size: 0.75rem; color: #888; font-style: italic; }

@media (max-width: 600px) {
    .guida-card { flex-direction: column; }
    .guida-img-placeholder { width: 100%; height: 150px; }
}
/* --- OTTIMIZZAZIONE CONTATTI MOBILE --- */
@media (max-width: 768px) {
    .contatti-container {
        flex-direction: column; /* I bottoni si impilano verticalmente */
        padding: 0 20px 60px;
        gap: 15px;
    }

    .contatto-pill {
        display: flex;
        align-items: center;
        justify-content: flex-start; /* Icona a sinistra, testo centrato */
        padding: 20px 25px;
        border-radius: 20px; /* Bordi più squadrati e moderni */
        font-size: 1.1rem;
        width: 100%;
        background: var(--white);
        border: 1px solid var(--accent-green);
        box-shadow: 0 4px 10px rgba(0,0,0,0.03);
    }

    /* Personalizziamo i colori per ogni contatto (Più "Cute" e riconoscibili) */

    /* Telefono */
    .contatto-pill[href^="tel"] i {
        color: var(--primary-sage);
        background: var(--accent-green);
        padding: 10px;
        border-radius: 12px;
        margin-right: 15px;
    }

    /* WhatsApp */
    .contatto-pill[href*="wa.me"] i {
        color: #25D366;
        background: #e8f9ee;
        padding: 10px;
        border-radius: 12px;
        margin-right: 15px;
    }

    /* Instagram */
    .contatto-pill[href*="instagram"] i {
        color: #E4405F;
        background: #fdecf0;
        padding: 10px;
        border-radius: 12px;
        margin-right: 15px;
    }

    .contatto-pill:hover {
        transform: scale(1.02);
        background: var(--white);
        color: var(--dark-sage);
        border-color: var(--primary-sage);
    }
}
/* --- SEZIONE RICETTE --- */
.ricette-section {
    padding: 100px 20px;
    background-color: var(--white);
}

.ricette-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1100px;
    margin: 0 auto;
}

.ricetta-card {
    background: var(--light-bg);
    border-radius: 30px;
    overflow: hidden;
    border: 1px solid var(--accent-green);
    position: relative;
    transition: all 0.3s ease;
}

.ricetta-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(120, 150, 120, 0.1);
    border-color: var(--primary-sage);
}

.ricetta-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--primary-sage);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    z-index: 10;
}

.ricetta-img-placeholder {
    height: 200px;
    background: var(--accent-green);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: var(--primary-sage);
}

.ricetta-content {
    padding: 25px;
}

.ricetta-content h3 {
    font-size: 1.4rem;
    margin-bottom: 10px;
}

.ricetta-content p {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 20px;
    height: 50px; /* Allinea i testi */
}

.ricetta-meta {
    display: flex;
    gap: 20px;
    font-size: 0.85rem;
    color: var(--dark-sage);
    font-weight: 600;
    margin-bottom: 20px;
}

.ricetta-meta i {
    color: var(--primary-sage);
    margin-right: 5px;
}

.btn-ricetta {
    display: block;
    text-align: center;
    padding: 12px;
    background: transparent;
    border: 2px solid var(--primary-sage);
    color: var(--primary-sage);
    text-decoration: none;
    border-radius: 12px;
    font-weight: 700;
    transition: 0.3s;
}

.btn-ricetta:hover {
    background: var(--primary-sage);
    color: white;
}
.container-small { max-width: 1100px; margin: 0 auto; padding: 0 20px; }
.section-desc { text-align: center; margin-top: -40px; margin-bottom: 50px; color: #666; }

/* Pacchetti */
.pacchetti-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 80px;
}

.pacchetto-card {
    background: white;
    padding: 40px;
    border-radius: 40px;
    border: 2px solid var(--primary-sage);
    text-align: center;
    position: relative;
    transition: 0.3s;
}

.pacchetto-card.premium { border: 2px solid var(--primary-sage); box-shadow: 0 10px 30px rgba(120, 150, 120, 0.1); }
.p-badge { background: var(--primary-sage); color: white; padding: 5px 15px; border-radius: 20px; font-size: 0.7rem; font-weight: 700; text-transform: uppercase; }
.p-price { font-family: 'Playfair Display', serif; font-size: 3rem; color: var(--dark-sage); margin: 20px 0; }
.p-features { list-style: none; margin-bottom: 30px; text-align: left; }
.p-features li { margin-bottom: 12px; display: flex; align-items: center; gap: 10px; font-size: 0.95rem; }

.btn-paga {
    display: block;
    background: var(--primary-sage);
    color: white;
    text-decoration: none;
    padding: 15px;
    border-radius: 12px;
    font-weight: 700;
    margin-bottom: 15px;
}

.payment-methods { font-size: 1.5rem; color: #ccc; display: flex; justify-content: center; gap: 10px; }

/* --- SEZIONE BLOG / NOTIZIE --- */
.blog-section { padding: 80px 0; background-color: var(--light-bg); }

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.blog-card {
    background: white;
    border-radius: 40px;
    overflow: hidden;
    border: 1px solid var(--accent-green);
    transition: all 0.4s ease;
}

.blog-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(120, 150, 120, 0.15);
    border-color: var(--primary-sage);
}

.blog-thumb {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.blog-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.blog-card:hover .blog-thumb img {
    transform: scale(1.1);
}

.blog-category {
    position: absolute;
    top: 20px;
    left: 20px;
    background: var(--primary-sage);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
}

.blog-info { padding: 30px; }
.blog-date { font-size: 0.8rem; color: #888; display: block; margin-bottom: 10px; }
.blog-info h3 { font-size: 1.4rem; margin-bottom: 15px; line-height: 1.3; }
.blog-info p { font-size: 0.95rem; color: #666; margin-bottom: 20px; }

.read-more {
    color: var(--primary-sage);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: gap 0.3s;
}

.read-more:hover {
    gap: 12px; /* L'icona si sposta leggermente a destra */
    color: var(--dark-sage);
}

@media (max-width: 768px) {
    .blog-section { padding: 60px 20px; }
}
.blog-social-btns {
    display: flex;
    justify-content: center;
    gap: 20px; /* Spazio tra i due bottoni */
    flex-wrap: wrap; /* Se non c'è spazio, vanno uno sotto l'altro */
    margin-top: 50px;
}

.blog-social-btns .btn-prenota {
    display: inline-flex;
    align-items: center;
    gap: 10px; /* Spazio tra icona e testo */
    min-width: 250px; /* Li rende della stessa dimensione */
    justify-content: center;
}

/* Mobile: occupano tutta la larghezza per essere più cliccabili */
@media (max-width: 600px) {
    .blog-social-btns {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }

    .blog-social-btns .btn-prenota {
        width: 100%;
        max-width: 320px;
    }
}
@media (max-width: 992px) {
    /* Nascondiamo completamente il wrapper dell'immagine */
    .chisono-image-wrapper {
        display: none;
    }

    /* Regoliamo il contenitore del testo affinché occupi tutto lo spazio */
    .chisono-container {
        display: block; /* Da flex a block per semplicità */
        padding: 0 10px;
    }

    .chisono-content {
        text-align: center; /* Centriamo il testo per un look più pulito */
        width: 100%;
    }

    /* Centriamo anche il divisore lilla */
    .nutri-divider {
        margin: 20px auto;
    }
}