/* =========================================
   1. VARIABILI E COLORI (Palette Verde Oliva / Crema)
   ========================================= */
:root {
    --bg-light: #4f5e46;       /* Verde oliva di sfondo */
    --text-dark: #EBE3DB;      /* Panna/Crema caldo per i testi */
    --accent-color: #FFF4C8;   /* Giallo/Crema acceso per i dettagli */
    --btn-green: #7A8B7D;      /* Verde salvia per bottoni e hover */
    --white: #ffffff;
}

/* =========================================
   2. RESET BASE E TYPOGRAPHY
   ========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Quicksand', sans-serif;
}

body {
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3 {
    font-family: 'Playfair Display', serif;
    color: var(--text-dark);
}
/* =========================================
   CONTENITORE CENTRALE PER TUTTE LE SEZIONI
   ========================================= */
.container {
    max-width: 1200px; /* Allinea tutto alla stessa larghezza della Hero e della Navbar */
    margin: 0 auto;    /* Centra il blocco orizzontalmente nello schermo */
    padding: 0 30px;   /* Garantisce un po' di respiro laterale (fondamentale sui tablet/telefoni) */
}
/* =========================================
   3. NAVBAR (Effetto Vetro)
   ========================================= */
.navbar {
    background-color: #3c4835;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 2000;
    padding: 15px 0;
    border-bottom: 1px solid rgba(141, 163, 153, 0.2);
}

.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;
    transition: all 0.3s ease;
    margin-left: 25px;

}

.navbar-list {
    display: flex;
    list-style: none;
    gap: 30px;
    margin-right: -30px;
}

.navbar-list a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 1px;
    transition: 0.3s;
}

.navbar-list a:hover {
    color: var(--btn-green);
}

.navbar-prenota {
    background: var(--btn-green);
    color: var(--white) !important;
    padding: 10px 22px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.8rem;
    transition: 0.3s;
    margin-right: -22px;
}

.navbar-prenota:hover {
    background: var(--text-dark);
}

/* =========================================
   4. HERO SECTION
   ========================================= */
.hero {
    padding-top: 150px;
    padding-bottom: 80px;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
}

.hero-text {
    flex: 1;
    max-width: 1900px;
}

.hero-subtitle {
    font-family: 'Quicksand', sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.85);
    letter-spacing: 2px;
    text-transform: uppercase;
    display: block;
    margin-bottom: 35px;
   
}

.hero-text h1 {
    font-size: 2.5rem;
    line-height: 1.2;
    margin-bottom: 135px;
    max-width: 900px;
    font-style:italic;
}

.hero-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 35px;
    color: rgba(235, 227, 219, 0.95);
}

.hero-buttons {
    display: flex;
    gap: 20px;
    margin-top: 20px;
}

.btn-prenota {
    background: var(--btn-green);
    color: var(--white);
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    transition: 0.3s;
    font-family: 'Quicksand', sans-serif;
}

.btn-prenota:hover {
    background: var(--text-dark);
}

.btn-scopri {
    background: transparent;
    color: var(--text-dark);
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    border: 1px solid var(--text-dark);
    transition: 0.3s;
    font-family: 'Quicksand', sans-serif;
}

.btn-scopri:hover {
    background: rgba(255, 255, 255, 0.05);
}

.hero-image-box {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}

.hero-img-portrait {
    width: 100%;
    max-width: 400px;
    height: auto;
    aspect-ratio: 4/5;
    object-fit: cover;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    border: 6px solid var(--white);
}

@media (max-width: 992px) {
    .hero-container { flex-direction: column; text-align: center; gap: 40px; }
    .hero-text { max-width: 100%; }
    .hero-text h1 { font-size: 2.8rem; }
    .hero-buttons { justify-content: center; }
    .hero-image-box { justify-content: center; }
}

/* =========================================
   ALLINEAMENTO PERFETTO GRIGLIE A "Z"
   ========================================= */

/* 1. Chi Sono (Immagine a SX, Testo a DX) */
.chisono-section {
    padding: 100px 0;
}
.chisono-bio-grid {
    display: grid;
    grid-template-columns: 4fr 6fr;
    gap: 60px;
    align-items: center;
}
.chisono-bio-image {
    display: flex;
    justify-content: flex-start;
}
.bio-img {

    width: 100%;

    height: auto;

    aspect-ratio: 3/4; /* Formato ritratto elegante */

    object-fit: cover;

    border-radius: 12px;

    box-shadow: 0 15px 35px rgba(74, 68, 62, 0.06);

    /* Un tocco di stile: un bordo leggero sfalsato */

    border: 1px solid rgba(141, 163, 153, 0.2);

    padding: 8px; /* Crea una sorta di cornice interna bianca */

    background-color: var(--white);

}
.chisono-bio-text {
    text-align: left;
}
.chisono-bio-text .section-title {
    font-size: 2.2rem;
    margin-bottom: 20px;
    color: var(--text-dark);
}

/* 2. Psicoanalisi (Testo a SX, Immagine a DX) */
.psicoanalisi-grid {
    display: grid;
    grid-template-columns: 6fr 4fr;
    gap: 60px;
    align-items: start;
}
.psicoanalisi-text {
    padding-right: 0;
}
.psicoanalisi-text h3 {
    font-family: 'Playfair Display', serif;
    font-size: 2.4rem;
    color: var(--accent-color);
    margin-bottom: 25px;
    line-height: 1.2;
}
.psicoanalisi-text p {
    font-size: 1.05rem;
    color: var(--text-dark);
    line-height: 1.9;
    margin-bottom: 20px;
    font-weight: 300;
}
.psicoanalisi-text strong {
    color: var(--accent-color);
    font-weight: 700;
}
.psicoanalisi-image-wrapper {
    display: flex;
    justify-content: flex-end;
}
.psicoanalisi-img {
    width: 100%;
    max-width: 380px;
    height: auto;
    aspect-ratio: 3/4;
    object-fit: cover;
    border-radius: 4px;
    box-shadow: -20px 20px 0px rgba(255, 244, 200, 0.15); /* Ombra quadrata accent */
    border: 1px solid rgba(245, 245, 240, 0.1);
}

/* 3. Libroterapia (Immagine a SX, Testo a DX) */
.libroterapia-balanced-grid {
    display: grid;
    grid-template-columns: 4fr 6fr;
    gap: 60px;
    align-items: center;
}
.libroterapia-image-box {
    display: flex;
    justify-content: flex-start;
}
.libroterapia-img-wrapper {
    position: relative;
    padding-bottom: 20px;
    padding-left: 20px;
}
.libroterapia-img-compact {
    width: 100%;
    max-width: 300px;
    height: auto;
    aspect-ratio: 3/4;
    object-fit: cover;
    border-radius: 4px;
    box-shadow: 0px 20px 40px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(245, 245, 240, 0.1);
    position: relative;
    z-index: 2;
}
.libroterapia-img-decor {
    position: absolute;
    bottom: 0;
    left: 0;
    width: calc(100% - 20px);
    height: calc(100% - 20px);
    border: 1px solid var(--accent-color);
    z-index: 1;
    border-radius: 4px;
}
.libroterapia-text-content {
    padding-left: 0;
}
.libroterapia-text-content h3 {
    font-family: 'Playfair Display', serif;
    font-size: 2.4rem;
    color: var(--accent-color);
    margin-bottom: 25px;
    line-height: 1.2;
}
.libroterapia-text-content p {
    font-size: 1.05rem;
    color: var(--text-dark);
    line-height: 1.9;
    margin-bottom: 20px;
    font-weight: 300;
}
.btn-mail-chic {
    display: inline-block;
    text-align: center;
    font-family: 'Quicksand', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: var(--white);
    background-color: var(--btn-green);
    padding: 16px 30px;
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid rgba(245, 245, 240, 0.1);
    margin-top: 15px;
}
.btn-mail-chic:hover {
    background-color: var(--text-dark);
}

/* --- Responsive per Mobile (Tutti uniformati a 1 colonna) --- */
@media (max-width: 992px) {
    .chisono-bio-grid,
    .psicoanalisi-grid,
    .libroterapia-balanced-grid {
        grid-template-columns: 1fr;
        gap: 50px;
        text-align: center;
    }
    .chisono-bio-image,
    .psicoanalisi-image-wrapper,
    .libroterapia-image-box {
        justify-content: center;
    }
    .libroterapia-img-wrapper {
        padding-left: 0; /* Rimuove lo spostamento laterale su mobile */
    }
}

/* =========================================
   ELEMENTI TRASVERSALI (Titoli, Divider)
   ========================================= */
.header-elegante {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 80px auto;
}
.subtitle-chic {
    font-family: 'Quicksand', sans-serif;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--accent-color);
    letter-spacing: 2px;
    text-transform: uppercase;
    display: block;
    margin-bottom: 10px;
}
.title-chic {
    font-family: 'Playfair Display', serif;
    font-size: 2.4rem;
    color: var(--text-dark);
    margin-bottom: 15px;
}
.divider-chic {
    width: 60px;
    height: 1px;
    background-color: var(--accent-color);
    margin: 0 auto 30px auto;
}
.desc-chic {
    font-size: 1rem;
    color: var(--text-dark);
    line-height: 1.8;
}

/* =========================================
   SEZIONE CONSULTAZIONE (POLAROID)
   ========================================= */
.consultazione-polaroid-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}
.polaroid-wrapper {
    position: relative;
    width: 100%;
    height: 550px;
}
.polaroid {
    background: #F9F6F0;
    width: 230px;
    height: 270px;
    padding: 12px 12px 45px 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    border-radius: 2px;
    position: absolute;
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275), z-index 0s;
}
.polaroid img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: sepia(10%) contrast(110%);
}
.polaroid.p-1 {
    top: 60px;
    left: 12%;
    transform: rotate(-4deg);
    z-index: 2;
}
.polaroid.p-2 {
    top: 170px;
    right: 12%;
    transform: rotate(4deg);
    z-index: 1;
}
.polaroid.p-3 {
    bottom: -140px;
    left: calc(50% - 115px);
    transform: rotate(-1deg);
    z-index: 3;
}
.polaroid:hover {
    transform: scale(1.08) rotate(0deg);
    z-index: 10;
    box-shadow: 0 30px 50px rgba(0, 0, 0, 0.6);
}
@media (max-width: 992px) {
    .consultazione-polaroid-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .polaroid-wrapper { height: 350px; }
    .polaroid { width: 160px; height: 200px; }
    .polaroid.p-1 { left: 10%; top: 10px; }
    .polaroid.p-2 { right: 10%; top: 10px; }
    .polaroid.p-3 { bottom: 10px; left: calc(50% - 80px); }
    .consultazione-text-content .header-elegante { text-align: center !important; }
    .consultazione-text-content .divider-chic { margin: 0 auto 30px auto !important; }
    .consultazione-text-content .servizio-text { text-align: center; }
}

/* =========================================
   SEZIONE CONTATTI E FOOTER
   ========================================= */
.contatti-elegante {
    padding: 120px 0;
}
.contact-grid-chic {
    display: grid;
    grid-template-columns: 4fr 6fr;
    gap: 80px;
    max-width: 1000px;
    margin: 0 auto;
}
.contact-info-chic {
    padding-right: 40px;
    border-right: 1px solid rgba(255, 244, 200, 0.2);
}
.info-block {
    margin-bottom: 40px;
}
.info-block h4 {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    color: var(--accent-color);
    margin-bottom: 15px;
}
.info-block p {
    font-size: 1.1rem;
    color: var(--text-dark);
    line-height: 1.8;
}
.info-block a {
    color: var(--text-dark);
    text-decoration: none;
    transition: color 0.3s;
    border-bottom: 1px solid transparent;
}
.info-block a:hover {
    color: var(--btn-green);
    border-color: var(--btn-green);
}
.nota-orari {
    font-size: 0.9rem !important;
    font-style: italic;
    color: rgba(235, 227, 219, 0.7) !important;
    margin-top: 5px;
}
.contact-map-wrapper {
    width: 100%;
    min-height: 450px;
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid rgba(255, 244, 200, 0.2);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}
.contact-map-wrapper iframe {
    width: 100%;
    height: 100%;
    min-height: 450px;
    display: block;
}
@media (max-width: 992px) {
    .contact-grid-chic { grid-template-columns: 1fr; gap: 60px; }
    .contact-info-chic {
        padding-right: 0;
        border-right: none;
        border-bottom: 1px solid rgba(255, 244, 200, 0.2);
        padding-bottom: 40px;
        text-align: center;
    }
    .contact-map-wrapper { min-height: 350px; }
    .contact-map-wrapper iframe { min-height: 350px; }
}

footer {
    background-color: #3C4835;
    padding: 60px 0 40px;
    text-align: center;
}
.footer-main {
    font-weight: 700;
    font-family: 'Playfair Display', serif;
}
/* =========================================
   TESTO ESPANDIBILE CHI SONO (TAGLIO INLINE)
   ========================================= */
.testo-nascosto {
    display: none;
}

.testo-nascosto.mostra.inline {
    display: inline;
}

.testo-nascosto.mostra.block {
    display: block;
}

#puntini-sospensione {
    display: inline;
}

#puntini-sospensione.nascondi {
    display: none;
}

.btn-leggi-piu {
    background: transparent;
    color: var(--text-dark);
    padding: 10px 24px;
    border-radius: 6px;
    border: 1px solid var(--text-dark);
    font-family: 'Quicksand', sans-serif;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 15px;
    display: inline-block;
}

.btn-leggi-piu:hover {
    background: rgba(235, 227, 219, 0.1);
}
.chisono-modern {
    padding: 100px 20px;
    background-color: #4f5e46; /* Sfondo bianco per far risaltare la foto */
}
.chisono-container {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 80px;
}
.chisono-image-wrapper {
    flex: 1;
    position: relative;
}
/* Il blocco beige sfalsato dietro la foto */
.chisono-image-wrapper::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    width: 80%;
    height: 100%;
    background-color: rgba(255, 244, 200, 0.15); /* Il tuo beige */
    border-radius: 15px;
    z-index: 0;
}
.chisono-img {
    width: 100%;
    max-width: 380px;
    position: relative;
    z-index: 1;
    border-radius: 15px; /* Bordi leggermente smussati */
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
    object-fit: cover;
    aspect-ratio: 3/4; /* Forza un bel formato ritratto */

}
.chisono-content { flex: 1.2; }
.top-subtitle { color: var(--text-dark); text-transform: uppercase; letter-spacing: 2px; font-weight: 700; font-size: 0.85rem; display: block; margin-bottom: 10px; }
.chisono-content h2 { font-size: 2.5rem; margin-bottom: 5px; }
.main-text { font-size: 1.1rem; line-height: 1.8; margin-bottom: 30px; color: var(--text-main); }
/* Stile per la citazione finale */
.secondary-text {
    font-size: 1.25rem;
    font-family: 'Playfair Display', serif;
    font-style: italic;
    color: var(--dark-sage);
    border-left: 3px solid var(--primary-sage);
    padding-left: 20px;
    margin-top: 30px;
}

/* Responsive Mobile */
@media (max-width: 992px) {
    .chisono-container { flex-direction: column; text-align: center; gap: 40px; }
    .secondary-text { border-left: none; border-top: 3px solid var(--primary-sage); padding-left: 0; padding-top: 20px; margin-top: 20px; }
}
.nutri-divider { width: 50px; height: 4px; background: var(--text-dark); margin: 20px 0; }
.btn-ricetta {
    display: block;
    text-align: center;
    padding: 12px;
    border: 2px solid var(--white);
    background-color: #7A8B7D;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 700;
    transition: 0.3s;
    color: var(--white);
    margin-top: -100px;
}

.btn-ricetta:hover {
    background: var(--text-dark);
}
/* --- PAGINA DEDICATA CHI SONO --- */
.chisono-page-wrapper {
    padding: 60px 20px 100px;
    background-color: var(--bg-light);
}

.chisono-page-content {
    background: var(--bg-light);
    padding: 110px;
    border-radius: 40px;
    border: 1px solid var(--white);
    max-width: 900px;
    margin: 0 auto;
    box-shadow: 0 10px 30px rgba(0,0,0,0.02);
}

.chisono-page-content p {
    margin-bottom: 40px;
    font-size: 1.05rem;
    line-height: 1.8;
}

.page-subtitle {
    font-size: 1.8rem;
    margin: 50px 0 20px 0;
    color: var(--white);
}

@media (max-width: 768px) {
    .chisono-page-content {
        padding: 30px 20px;
        border-radius: 20px;
    }
}

@media (max-width: 992px) {
    .hero {
        grid-template-columns: 1fr;
    }

    .mappa-container {
        flex-direction: column;
    }

    .navbar-list {
        display: none;
    }
    .hero-text h1{
        display: none;
    }
}
.hero-text {
    flex: 1;
    max-width: 600px;
}
.hero-text h1 {
    font-size: 2.2rem;
    line-height: 1.35;
    margin-bottom: 40px;
}
.hero-img-portrait {
    max-width: 300px;
    margin-top: 30px;

}
.hero-image-box {
    flex: 1;
    display: flex;
    justify-content: center;
}
.hero-container {
    gap: 90px;
}
.hero-subtitle {
    font-size: 0.8rem;
}
/* =========================================
   4. HERO SECTION - PASSEPARTOUT CON FORMA ORGANICA
   ========================================= */
.hero-passepartout-section {
    padding: 150px 30px 80px 30px; /* Spazio per la navbar in alto */
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

/* La grande cornice esterna */
.passepartout-frame {
    width: 100%;
    max-width: 1250px;
    border: 30px solid var(--bg-light); /* Cornice spessa color panna */
    background-color: transparent; /* Il verde di sfondo passa all'interno */
    padding: 70px 80px; /* Spazio interno tra cornice e contenuto */
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
}

/* --- Testi (Sinistra) --- */
.passepartout-text {
    flex: 1;
    max-width: 580px;
}

.passepartout-subtitle {
    font-family: 'Quicksand', sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--accent-color);
    letter-spacing: 2px;
    text-transform: uppercase;
    display: block;
    margin-bottom: 20px;
}

.passepartout-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    line-height: 1.1;
    color: var(--text-dark);
    margin-bottom: 25px;
}

.passepartout-quote {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    line-height: 1.7;
    font-style: italic;
    color: rgba(235, 227, 219, 0.9);
    margin-bottom: 45px;
}

.passepartout-buttons {
    display: flex;
    gap: 20px;
}

/* --- Immagine Organica e Fluida (Destra) --- */
.passepartout-image-box {
    flex: 0 0 auto;
    display: flex;
    justify-content: flex-end;
}

.passepartout-img {
    width: 100%;
    max-width: 320px;
    height: auto;
    aspect-ratio: 3/4;
    object-fit: cover;
    object-position: center 20%; /* Inquadra bene il viso */

    /* IL SEGRETO DELLA FORMA ORGANICA */
    /* Usiamo 8 valori per creare una curva asimmetrica e naturale */
    border-radius: 50% 50% 50% 50% / 60% 40% 60% 40%;

    /* Ombra morbida e diffusa (si adatta meglio alle curve) */
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);

    /* Attiviamo l'animazione di "respiro" lentissima (10 secondi) */
    animation: morphing 10s ease-in-out infinite;
}

/* --- L'Animazione del "Respiro" --- */
@keyframes morphing {
    0% {
        border-radius: 50% 50% 50% 50% / 60% 40% 60% 40%;
    }
    50% {
        border-radius: 40% 60% 40% 60% / 50% 50% 50% 50%;
        transform: translateY(-5px); /* Fluttua leggermente verso l'alto */
    }
    100% {
        border-radius: 50% 50% 50% 50% / 60% 40% 60% 40%;
    }
}

/* --- Responsive per Mobile (Schermi piccoli) --- */
/* --- Responsive per Mobile (Ottimizzato) --- */
@media (max-width: 992px) {
    .hero-passepartout-section {
        padding: 100px 15px 40px 15px; /* Ridotto lo spazio in alto */
    }

    .passepartout-frame {
        flex-direction: column;
        padding: 40px 20px;
        /* CORNICE SOTTILE: molto più elegante su schermi piccoli e non ruba spazio */
        border-width: 8px;
        text-align: center;
        gap: 30px; /* Spazio ridotto tra foto e testo */
    }

    /* INVERTIAMO L'ORDINE: La foto va sopra (order: 1) */
    .passepartout-image-box {
        order: 1;
        width: 100%;
        display: flex;
        justify-content: center;
    }

    .passepartout-img {
        max-width: 230px; /* Misura perfetta per il mobile */
        /* L'ombra morbida rimane per far risaltare il movimento organico */
        box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
    }

    /* Il testo va sotto la foto (order: 2) */
    .passepartout-text {
        order: 2;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .passepartout-subtitle {
        font-size: 0.75rem; /* Un filo più piccolo per farcelo stare */
        letter-spacing: 1px; /* Dimezziamo lo spazio tra le lettere su mobile */
        white-space: nowrap; /* Vieta al browser di creare a capo automatici */
        line-height: 1.5; /* Diamo un po' di respiro tra le due righe */
        margin-bottom: 15px;
    }

    .passepartout-title {
        /* Usa 'clamp' per scalare dinamicamente il testo in base alla larghezza del telefono */
        font-size: clamp(1.8rem, 5.5vw, 1.8rem);
        white-space: nowrap; /* Vieta categoricamente al testo di andare a capo */
        margin-bottom: 20px;
    }

    .passepartout-quote {
        font-size: 0.95rem; /* Rimpicciolito per far entrare più parole su ogni riga */
        line-height: 1.45; /* Avvicina leggermente le righe tra loro per compattare il blocco */
        margin-bottom: 30px;
        padding: 0 10px; /* Lascia un micro-margine laterale per non toccare i bordi della cornice */
    }

    .passepartout-buttons {
        flex-direction: column;
        width: 100%;
        max-width: 280px;
    }

    .btn-prenota, .btn-scopri {
        width: 100%;
        text-align: center;
    }
    .logo-img {
        margin-left: 0;
        height: 50px; /* Opzionale: lo rimpicciolisce leggermente su mobile, se serve */
    }

    /* 2. Riduce lo spazio laterale di tutta la barra, avvicinando il logo al bordo sinistro e il bottone al bordo destro */

}
/* =========================================
   ALLINEAMENTO TESTI GIUSTIFICATO (Blocco Unico)
   ========================================= */
.chisono-content .main-text,
.psicoanalisi-text p,
.consultazione-text-content .desc-chic,
.libroterapia-text-content p {
    text-align: justify;

    /* Attiva la sillabazione per evitare spazi bianchi giganti tra le parole */
    hyphens: auto;
    -webkit-hyphens: auto;
    -ms-hyphens: auto;
}
/* =========================================
   OTTIMIZZAZIONE FOTO RESPONSIVE (Pulizia Layout)
   Rimuove gli elementi decorativi e le ombre dietro le foto su mobile
   ========================================= */
@media (max-width: 992px) {

    /* --- 1. Sezione CHI SONO --- */
    /* Nasconde il blocco beige sfalsato dietro la foto */
    .chisono-image-wrapper::before {
        display: none;
    }
    /* Rimuove l'ombra dell'immagine stessa per una pulizia totale */
    .chisono-img {
        box-shadow: none;
        max-width: 100%; /* Assicura che l'immagine si espanda bene su mobile */
    }

    /* --- 2. Sezione PSICOANALISI --- */
    /* Nasconde l'ombra quadrata color crema accentata dietro la foto */
    .psicoanalisi-img {
        box-shadow: none;
    }

    /* --- 3. Sezione LIBROTERAPIA --- */
    /* Nasconde il bordo decorativo color crema dietro la foto */
    .libroterapia-img-decor {
        display: none;
    }
    /* Rimuove l'ombra dell'immagine stessa */
    .libroterapia-img-compact {
        box-shadow: none;
    }
}
/* =========================================
   BOTTONE EMAIL LIBROTERAPIA SU MOBILE
   ========================================= */
@media (max-width: 768px) {
    .btn-mail-chic {
        width: 100%;           /* Occupa la larghezza disponibile... */
        max-width: 280px;      /* ...ma non supera mai i 280px (puoi cambiare questo valore) */
        padding: 12px 15px;    /* Riduciamo lo spazio interno per snellirlo */
        font-size: 0.75rem;    /* Testo leggermente più piccolo per far entrare l'email */
        letter-spacing: 1px;   /* Riduciamo un po' la spaziatura tra le lettere */
        margin: 0 auto;        /* Lo centra perfettamente */
        display: block;        /* Necessario per far funzionare il margine automatico */
    }
}
/* =========================================
   TITOLI H3 PIÙ PICCOLI SU MOBILE
   ========================================= */
@media (max-width: 768px) {
    .psicoanalisi-text h3,
    .libroterapia-text-content h3 {
        font-size: 1.6rem;       /* Rimpicciolisce il font (prima era 2.4rem) */
        line-height: 1.3;        /* Migliora l'interlinea se va su due righe */
        margin-bottom: 15px;     /* Riduce leggermente lo spazio sotto il titolo */
    }
}
/* =========================================
   MAPPA STATICA (NO COOKIE) - ANNACHIARA
   ========================================= */
.relative-map {
    position: relative;
    display: block;
    overflow: hidden;
}

.map-link-container {
    display: block;
    width: 100%;
    height: 100%;
}

.map-image-static {
    width: 100%;
    height: 100%;
    min-height: 450px;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.relative-map:hover .map-image-static {
    transform: scale(1.03);
}

.map-overlay-btn {
    position: absolute;
    top: 75%; /* Posizionato in basso per non coprire il centro */
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: var(--btn-green);
    color: var(--white);
    padding: 12px 25px;
    border-radius: 8px;
    font-family: 'Quicksand', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
    transition: all 0.3s ease;
}

.relative-map:hover .map-overlay-btn {
    background-color: var(--text-dark); /* Cambia colore al passaggio del mouse */
    transform: translate(-50%, -55%);
}

/* Responsive Mappa */
@media (max-width: 992px) {
    .map-image-static { min-height: 350px; }
}
@media (max-width: 768px) {
    .map-image-static { min-height: 250px; }
    .map-overlay-btn { padding: 10px 20px; font-size: 0.9rem; }
}
/* --- Nuovo stile per il testo lungo nella Hero --- */
.passepartout-description {
    margin-bottom: 35px;
}

.passepartout-description p {
    font-family: 'Quicksand', sans-serif;
    font-size: 1.05rem; /* Più piccolo della vecchia citazione per farci stare tutto */
    line-height: 1.7;
    color: rgba(235, 227, 219, 0.9);
    margin-bottom: 12px;
}

/* Colora di crema le parole chiave che la dottoressa ha messo tra asterischi */
.passepartout-description strong {
    color: var(--accent-color);
    font-weight: 700;
}

/* Stile speciale per l'ultima frase, che riprende l'eleganza della vecchia citazione */
.passepartout-quote-final {
    font-family: 'Playfair Display', serif !important;
    font-size: 1.15rem !important;
    font-style: italic;
    color: var(--text-dark) !important;
    margin-top: 20px !important;
    margin-bottom: 0 !important;
    border-left: 3px solid var(--accent-color);
    padding-left: 15px;
}
@media (max-width: 992px) {
    /* ... (il tuo altro codice mobile) ... */

    .passepartout-description p {
        font-size: 0.95rem;
        line-height: 1.5;
        text-align: center; /* Su mobile manteniamo tutto centrato */
        padding: 0 10px;
    }

    .passepartout-quote-final {
        font-size: 1.05rem !important;
        border-left: none; /* Rimuoviamo la barra laterale su mobile per pulizia */
        padding-left: 0;
        margin-top: 15px !important;
    }
}
@media (max-width: 992px) {
    /* ... altro tuo codice mobile ... */

    .passepartout-description p {
        font-size: 0.95rem;
        line-height: 1.6;

        /* IL SEGRETO È QUI: Giustifica il testo e attiva la sillabazione */
        text-align: justify;
        hyphens: auto;
        -webkit-hyphens: auto;
        -ms-hyphens: auto;

        padding: 0 15px; /* Un po' di respiro ai lati per non toccare i bordi dello schermo */
        margin-bottom: 15px;
    }

    .passepartout-quote-final {
        font-size: 1.05rem !important;
        border-left: none; /* Togliamo la linea laterale su mobile per pulizia */
        padding-left: 0;
        margin-top: 20px !important;

        /* La citazione finale possiamo lasciarla centrata per farla spiccare,
           oppure giustificata. Se la vuoi giustificata, cambia center in justify */
        text-align: center;
    }
}
.hero-passepartout-section {
    /* Prima era: padding: 150px 30px 80px 30px; */
    padding: 80px 30px 80px 30px;

    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}
@media (max-width: 992px) {
    .hero-passepartout-section {
        /* Prima era: padding: 80px 15px 40px 15px; */
        padding: 80px 15px 40px 15px;
    }

    /* ... resto del codice mobile ... */
}
/* =========================================
   FOOTER A 3 COLONNE (STILE MODERNO)
   ========================================= */
.modern-footer {
    background-color: #3C4835; /* Il verde scuro ed elegante della navbar */
    color: rgba(235, 227, 219, 0.9);
    padding: 80px 0 30px 0;
    font-family: 'Quicksand', sans-serif;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 30px;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr; /* Crea esattamente 3 colonne uguali */
    gap: 60px; /* Spazio tra le colonne */
}

.footer-col {
    display: flex;
    flex-direction: column;
}

/* --- Stile Titoli con le iconiche linee laterali --- */
.footer-title {
    font-family: 'Playfair Display', serif;
    font-size: 1rem;
    color: var(--white);
    text-transform: uppercase;
    letter-spacing: 2px;
    display: flex;
    align-items: center;
    margin-bottom: 30px;
    white-space: nowrap;
}

/* Genera le linee prima e dopo il testo del titolo */
.footer-title::before,
.footer-title::after {
    content: "";
    flex: 1;
    height: 1px;
    background-color: rgba(235, 227, 219, 0.3);
}

.footer-title::before { margin-right: 15px; }
.footer-title::after { margin-left: 15px; }

/* --- Testi e Link --- */
.footer-col p {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 20px;
}

/* Stile per il testo di ATTENZIONE */
.footer-disclaimer {
    font-size: 0.85rem;
    opacity: 0.8;
    margin-top: 15px;
    line-height: 1.5;
}

.footer-links,
.footer-contacts,
.footer-legal {
    list-style: none; /* Toglie i pallini dagli elenchi */
    padding: 0;
    margin: 0;
}

.footer-links li,
.footer-contacts li,
.footer-legal li {
    margin-bottom: 15px;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-col a {
    color: rgba(235, 227, 219, 0.9);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-col a:hover {
    color: var(--accent-color);
}

/* Icone dei contatti */
.footer-contacts i,
.footer-legal i {
    color: var(--accent-color);
    font-size: 1rem;
    width: 20px;
    text-align: center;
}

/* Separatore sopra la Privacy Policy */
.footer-legal {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(235, 227, 219, 0.1);
}

/* --- Barra del Copyright in basso --- */
.footer-bottom {
    max-width: 1200px;
    margin: 60px auto 0 auto;
    padding: 20px 30px 0 30px;
    border-top: 1px solid rgba(235, 227, 219, 0.2);
    text-align: center;
    font-size: 0.85rem;
    opacity: 0.7;
}

/* --- Adattamento per Cellulari e Tablet --- */
@media (max-width: 992px) {
    .footer-container {
        grid-template-columns: 1fr; /* Passa a 1 singola colonna */
        gap: 50px;
        text-align: center;
    }

    .footer-contacts li,
    .footer-legal li,
    .footer-links li {
        justify-content: center; /* Centra i link e le icone */
    }

    /* Mantiene le linee eleganti anche su mobile ma più corte */
    .footer-title::before,
    .footer-title::after {
        max-width: 60px;
    }
}
/* --- Stile Icone Social --- */
.footer-socials {
    display: flex;
    gap: 15px; /* Spazio tra le icone */
}

.footer-socials a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background-color: rgba(235, 227, 219, 0.05); /* Sfondo leggermente visibile */
    border: 1px solid rgba(235, 227, 219, 0.2);
    border-radius: 50%; /* Rende i pulsanti perfettamente rotondi */
    color: rgba(235, 227, 219, 0.9);
    font-size: 1.2rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.footer-socials a:hover {
    background-color: var(--accent-color); /* Si riempie di crema al passaggio del mouse */
    color: #3C4835; /* L'icona diventa verde scuro per contrasto */
    border-color: var(--accent-color);
    transform: translateY(-3px); /* Effetto sollevamento elegante */
}
.footer-socials {
    display: flex;
    gap: 15px; /* Spazio tra le icone */
    justify-content: center; /* <--- QUESTA È LA MODIFICA! Centra le icone orizzontalmente */
}
@media (max-width: 992px) {
    /* ... (le altre regole mobile del footer che hai già) ... */

    .footer-socials {
        justify-content: center; /* <--- Centra le icone su mobile */
    }
}
@media (max-width: 992px) {
    .footer-container {
        grid-template-columns: 1fr;
        gap: 50px;
        text-align: center;
    }

    /* Aggiungi questo per centrare perfettamente i titoli! */
    .footer-title {
        justify-content: center;
    }

    .footer-contacts li,
    .footer-legal li,
    .footer-links li {
        justify-content: center;
    }

    .footer-socials {
        justify-content: center;
    }

    .footer-title::before,
    .footer-title::after {
        max-width: 60px;
    }
}
@media (max-width: 992px) {
    /* ... altro tuo codice mobile ... */

    /* Sistema le righe del testo introduttivo nelle varie sezioni (es. Contatti) */
    .desc-chic {
        text-align: justify;
        hyphens: auto;
        -webkit-hyphens: auto;
        -ms-hyphens: auto;
        padding: 0 15px; /* Dà un po' di respiro laterale per non incollare il testo ai bordi dello schermo */
    }

    /* ... */
}