html {
    scroll-behavior: smooth;
}


/* ==========================================
   01. PALETTE COLORI E VARIABILI
   ========================================== */
:root {
    --panna: #FDF5F2; 
    --testo: #4A403F; 
    --rosa-cipria: #F8E6E5; 
    --oro-rosa: #B76E79;
    --bianco: #FFFAFA; 
    --verde-wa: #25D366; 
}

/* ==========================================
   02. RESET E TIPOGRAFIA GLOBALE
   ========================================== */
* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
}

/* ==========================================
   STILE DI SFONDO GLOBALE DEL SITO (Pattern Verticale Slanciato)
   ========================================== */
body {
    background-color: var(--panna); 
    
    /* Nuovo SVG: Foglie a mandorla slanciate (zero effetto schiacciato), dritte e sparse */
    background-image: url("data:image/svg+xml,%3Csvg width='300' height='300' viewBox='0 0 300 300' xmlns='http://www.w3.org/2000/svg'%3E%3Cg stroke='%23B76E79' stroke-width='1.2' fill='none' opacity='0.3'%3E%3C!-- Germoglio 1 --%3E%3Cpath d='M60,140 L60,80' /%3E%3Cpath d='M60,110 Q40,105 35,85 Q50,85 60,110' /%3E%3Cpath d='M60,95 Q80,90 85,70 Q70,70 60,95' /%3E%3Cpath d='M60,80 Q50,60 60,40 Q70,60 60,80' /%3E%3C!-- Germoglio 2 --%3E%3Cpath d='M240,260 L240,200' /%3E%3Cpath d='M240,230 Q220,225 215,205 Q230,205 240,230' /%3E%3Cpath d='M240,215 Q260,210 265,190 Q250,190 240,215' /%3E%3Cpath d='M240,200 Q230,180 240,160 Q250,180 240,200' /%3E%3C!-- Germoglio 3 --%3E%3Cpath d='M150,120 L150,60' /%3E%3Cpath d='M150,90 Q130,85 125,65 Q140,65 150,90' /%3E%3Cpath d='M150,75 Q170,70 175,50 Q160,50 150,75' /%3E%3Cpath d='M150,60 Q140,40 150,20 Q160,40 150,60' /%3E%3C!-- Stelline --%3E%3Cpath d='M100,200 Q105,200 105,190 Q105,200 110,200 Q105,200 105,210 Q105,200 100,200 Z' fill='%23B76E79' stroke='none' /%3E%3Cpath d='M20,60 Q25,60 25,50 Q25,60 30,60 Q25,60 25,70 Q25,60 20,60 Z' fill='%23B76E79' stroke='none' /%3E%3Cpath d='M270,140 Q275,140 275,130 Q275,140 280,140 Q275,140 275,150 Q275,140 270,140 Z' fill='%23B76E79' stroke='none' /%3E%3C!-- Puntini di luce --%3E%3Ccircle cx='200' cy='100' r='1.5' fill='%23B76E79' stroke='none' /%3E%3Ccircle cx='80' cy='250' r='1.5' fill='%23B76E79' stroke='none' /%3E%3Ccircle cx='280' cy='40' r='1' fill='%23B76E79' stroke='none' /%3E%3Ccircle cx='120' cy='50' r='1' fill='%23B76E79' stroke='none' /%3E%3C/g%3E%3C/svg%3E");

    background-repeat: repeat;
    background-attachment: fixed; 
    background-size: 300px 300px; 
    
    font-family: 'Montserrat', sans-serif;
    color: var(--testo);
    line-height: 1.6;
    overflow-x: hidden; 
}

h1, h2, h3, h4 {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
}

/* Spaziature generali per le varie sezioni */
.chi-siamo-section, .services, .results, .instagram-section, .footer {
    padding: 100px 20px;
    text-align: center;
    max-width: 1200px;
    margin: 0 auto;
}

/* Animazione globale di scorrimento verso l'alto */
.fade-in-up-slow {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 1.5s ease-out, transform 1.5s ease-out; 
}

.fade-in-up-slow.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================
   03. HEADER E NAVIGAZIONE
   ========================================== */
.glass-header {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translate(-50%, 0) translateZ(0); 
    width: 90%;
    height: 70px;
    max-width: 1200px;
    border-radius: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 40px;
    background: rgba(183, 110, 121, 0.95); /* Oro Rosa scuro elegante */
    z-index: 1000;
    border: 1px solid rgba(255, 255, 255, 0.2); 
    box-shadow: 0 8px 20px rgba(183, 110, 121, 0.25); 
    will-change: transform; 
}

.glass-header .logo {
    position: relative; 
    width: 150px;       
    height: 100%;       
    display: flex;
    align-items: center;
}

.header-logo-img {
    position: absolute; 
    top: 50%;           
    transform: translateY(-50%); 
    left: 0;
    height: 45px; 
    width: auto;
    transition: transform 0.3s ease;
    z-index: 1001; 
}

.header-logo-img:hover {
    transform: translateY(-50%) scale(1.05);
}

.glass-header nav a {
    text-decoration: none;
    color: var(--bianco); 
    margin-left: 20px;
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.5px; 
    transition: all 0.3s ease;
}

/* Effetto "Acceso" (Active) per il menu quando scorri */
.glass-header nav a.active {
    color: var(--panna); 
    opacity: 1; 
    font-weight: 700; /* Testo più cicciotto per risaltare */
    position: relative;
}

/* Aggiungiamo un grazioso pallino dorato sotto la scritta attiva */
.glass-header nav a.active::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 6px;
    background-color: var(--panna);
    border-radius: 50%;
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.8);
}

.glass-header nav a:hover { 
    color: var(--panna); 
    opacity: 0.8;
}

/* Stile per il nuovo pulsante "Prenota Ora" nell'header */
.glass-header nav a.nav-btn-prenota {
    background-color: var(--panna); /* Sfondo chiaro */
    color: var(--oro-rosa); /* Testo color oro rosa */
    padding: 8px 18px;
    border-radius: 20px;
    font-weight: 600;
    border: 1px solid var(--panna);
    transition: all 0.3s ease;
}

/* Effetto quando ci passi sopra col mouse */
.glass-header nav a.nav-btn-prenota:hover {
    background-color: transparent;
    color: var(--panna);
}

/* ==========================================
   04. HERO SECTION - VERSIONE ELEGANT & BALANCED
   ========================================== */

/* 04. HERO SECTION - VERSIONE ELEGANT & BALANCED */
.hero-modern {
    position: relative;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    padding: 0 20px;
    overflow: hidden;
    /* La riga del background è stata spostata! */
}


.hero-modern video {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    transform: translate(-50%, -50%);
    object-fit: cover;
    z-index: -2; /* Spostato più in basso per stare dietro l'immagine e l'overlay */
    opacity: 0.1; /* Mantieni il video molto scuro se riattivato */
}

/* Livello dedicato solo all'immagine di sfondo per poter applicare filtri fotografici */
.hero-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('img/home/home-rose.jpeg') center center/cover no-repeat;
    
    filter: brightness(1.2); 
    
    z-index: -3; /* Rimane dietro a tutto */
    -webkit-mask-image: linear-gradient(to bottom, black 75%, transparent 100%);
    mask-image: linear-gradient(to bottom, black 75%, transparent 100%);

}

/* Contenuto Moderno - IMPORTANTE: assicurati che sia posizionato sopra l'overlay */
.hero-content {
    max-width: 800px;
    position: relative; /* Assicura il posizionamento */
    z-index: 2; /* Sopra l'overlay */
}
.hero-overlay {
    display: none; /* Questo disattiva completamente il velo, lasciando la foto al naturale */
}

/* --- RIQUADRO VETRO: Altezza Automatica e Proporzioni Bilanciate --- */
.glass-box {
    position: relative;
    z-index: 2;
   background: rgba(183, 110, 121, 0.5);
    backdrop-filter: blur(10px); 
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 30px; 
    
    /* Padding equilibrato: respira ma non è vuoto */
    padding: 45px 50px;
    
    /* Larghezza fissa su desktop per eleganza, l'altezza è AUTO */
    width: 90%;
    max-width: 750px; 
    
    text-align: center;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2); 
    color: var(--bianco);
    margin: 0 20px;
    
    /* Cura anti-lag */
    will-change: transform, opacity; 
    transform: translateZ(0);
}

/* --- LOGO: Dimensioni normali, non giganti --- */
.glass-logo {
    width: 250px; /* Dimensione desktop elegante */
    margin-bottom: 20px;
    filter: brightness(0) invert(1); 
}

.glass-box h1 {
    font-size: 3.8rem; 
    margin-bottom: 15px;
    color: #ffffff;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3); 
    line-height: 1.1;
    font-weight: 700;
}

.glass-box p {
    font-size: 1.3rem;
    margin-bottom: 30px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 400;
    /* Evita che il testo vada troppo vicino ai bordi */
    padding: 0 10px;
}

/* Tasto elegante e proporzionato */
.btn-elegant {
    display: inline-block;
    background: linear-gradient(135deg, var(--oro-rosa), #9c5862);
    color: white;
    padding: 18px 55px;
    border-radius: 50px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-decoration: none;
    transition: all 0.3s ease; 
    box-shadow: 0 8px 20px rgba(183, 110, 121, 0.4);
}

.btn-elegant:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 12px 25px rgba(183, 110, 121, 0.6);
    color: white;
}

/* ==========================================
   RESPONSIVE PER SMARTPHONE (Ribilanciato)
   ========================================== */
@media (max-width: 768px) {
    .hero-modern {
        align-items: flex-start; /* Spinge il box verso l'alto su mobile */
        padding-top: 100px; /* Dà spazio dall'header fissato */
    }

    .glass-box {
        /* Padding ridotto ma uniforme */
        padding: 25px 20px; 
        margin: 0 15px;
        backdrop-filter: blur(8px); 
        -webkit-backdrop-filter: blur(8px);
        max-width: 100%; /* Sfrutta lo spazio disponibile */
        border-radius: 20px;
    }
    
    .glass-logo {
        /* Ridotto considerevolmente rispetto al tentativo precedente */
        width: 160px; 
        margin-bottom: 15px;
    }

    .glass-box h1 {
        font-size: 2rem; /* Titolo più piccolo e leggibile */
        margin-bottom: 10px;
    }
    
    .glass-box p {
        font-size: 0.95rem; 
        margin-bottom: 25px;
        line-height: 1.5;
        padding: 0;
    }
    
    .btn-elegant {
        padding: 14px 35px; /* Tasto standard */
        font-size: 0.9rem; 
    }
}

/* ==========================================
   SEZIONE IL SALONE
   ========================================== */
.salon-section {
    padding: 100px 20px;
    background-color: transparent; /* Fa intravedere il pattern del body */
    text-align: center;
}

.salon-container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-title-wrapper {
    margin-bottom: 60px;
}

.section-title-wrapper h2 {
    font-size: 2.8rem;
    color: var(--testo);
    margin-bottom: 15px;
}

/* Centriamo la lineetta oro rosa sotto il titolo */
.center-line {
    margin: 0 auto 20px auto; 
}

.section-title-wrapper p {
    font-size: 1.1rem;
    color: #777;
    font-weight: 300;
}

.salon-gallery {
    display: grid;
    gap: 30px;
    margin-bottom: 30px; /* Crea spazio tra il blocco delle cabine e il blocco reception */
}

/* Le 4 cabine principali: le forziamo a essere 2 per fila */
.featured-rooms {
    grid-template-columns: repeat(2, 1fr);
}

/* Le 3 stanze secondarie: le mettiamo in una fila perfetta da 3 */
.secondary-rooms {
    grid-template-columns: repeat(3, 1fr);
}

/* La card base (aggiornata per supportare la riga colorata) */
.salon-card {
    background: var(--rosa-cipria);
    border-radius: 30px;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(183, 110, 121, 0.08);
    transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
    cursor: pointer;
    border-bottom: 4px solid transparent; /* Predispone lo spazio per la linea colorata senza far fare "salti" all'immagine */
}

/* Effetto di default (per le stanze "normali" come la Reception) */
.salon-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(183, 110, 121, 0.15);
    border-bottom-color: var(--oro-rosa); /* Si colora di Oro Rosa */
}

/* Distanziare un po' l'icona dal testo */
.salon-name i {
    margin-right: 8px;
    transition: color 0.4s ease;
}

/*    TEMI DEI 4 ELEMENTI */

/* 1. TEMA ACQUA (Azzurro morbido) */
.theme-acqua .salon-name i { color: #7DB2D9; }
.theme-acqua:hover {
    box-shadow: 0 20px 40px rgba(125, 178, 217, 0.3);
    border-bottom-color: #7DB2D9;
}

/* 2. TEMA TERRA (Verde salvia) */
.theme-terra .salon-name i { color: #A3B18A; }
.theme-terra:hover {
    box-shadow: 0 20px 40px rgba(163, 177, 138, 0.3);
    border-bottom-color: #A3B18A;
}

/* 3. TEMA ARIA (Azzurro/Grigio nuvola) */
.theme-aria .salon-name i { color: #9DB4C0; }
.theme-aria:hover {
    box-shadow: 0 20px 40px rgba(157, 180, 192, 0.3);
    border-bottom-color: #9DB4C0;
}

/* 4. TEMA FUOCO (Rosso Corallo/Terracotta) */
.theme-fuoco .salon-name i { color: #E07A5F; }
.theme-fuoco:hover {
    box-shadow: 0 20px 40px rgba(224, 122, 95, 0.3);
    border-bottom-color: #E07A5F;
}

.salon-img-wrapper {
    width: 100%;
    /* MODIFICA: Togliamo l'altezza fissa e usiamo l'aspect-ratio orizzontale */
    aspect-ratio: 16 / 9; 
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 20px;
}

.salon-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Taglia l'eccesso senza deformare la foto */
    transition: transform 0.5s ease;
}

/* Piccolo zoom sulla foto quando passi il mouse */
.salon-card:hover .salon-img-wrapper img {
    transform: scale(1.08); 
}

.salon-name {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    color: var(--oro-rosa);
    font-weight: 700;
    margin: 0;
}

/* ==========================================
   05. SEZIONE CHI SIAMO (A Tutto Schermo 50/50)
   ========================================== */
.chi-siamo-section {
    background-color: transparent; 
    padding: 0; /* Rimuoviamo il padding verticale per un effetto "pieno" */
    overflow: hidden; 
}

.chi-siamo-container {
    /* MODIFICA: Niente max-width, occupiamo tutto lo schermo */
    width: 100%; 
    height: 100vh; /* Facciamo la sezione alta quanto lo schermo per un effetto Split */
    margin: 0;
    display: flex;
    flex-wrap: nowrap; /* Non andiamo a capo su desktop */
    align-items: center; /* Centra verticalmente */
    justify-content: flex-start; /* Le colonne partono da sinistra */
    gap: 0; /* Niente gap tra le colonne */
}

/* --- Layout Split Screen Desktop --- */
.team-cards-col {
    /* MODIFICA: Occupa esattamente il 50% orizzontale */
    flex: 0 0 50%; 
    height: 100%;
    display: flex;
    justify-content: center; /* Centra orizzontalmente il mazzo */
    align-items: center; /* Centra verticalmente il mazzo */
    position: relative;
    /* Diamo un colore di sfondo diverso per accentuare lo split, se vuoi */
    background-color: transparent; 
}

.team-text-col {
    /* MODIFICA: Occupa l'altro 50% */
    flex: 0 0 50%; 
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center; /* Centra verticalmente il testo */
    align-items: flex-start; /* Allinea il testo a sinistra */
    padding: 60px; /* Spazio interno per non toccare i bordi */
    position: relative;
    z-index: 10; 
}

/* --- COLONNA SINISTRA: IL MAZZO DI CARTE (Ricalcolato) --- */
.cards-stack {
    position: relative;
    margin-top: 300px;
    width: 80%; 
    max-width: 400px; 
    height: 500px; 
}

/* Stile base di ogni carta (OTTIMIZZATO E RIMPICCIOLITO) */
.team-card {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 420px; /* Altezza ridotta per lo split layout */
    background-color: var(--bianco);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(183, 110, 121, 0.1); 
    cursor: pointer;
    transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    border: 1px solid rgba(255, 255, 255, 0.9);
    will-change: transform; 
}

.team-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: relative;
    z-index: 1;
}

/* Intestazione della carta */
.card-name {
    font-family: 'Montserrat', sans-serif; 
    font-size: 0.95rem; 
    letter-spacing: 1px; 
    color: var(--testo);
    padding: 12px 20px; 
    background: var(--bianco); 
    margin: 0;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 2;
    border-bottom: 1px solid rgba(183, 110, 121, 0.2);
    display: flex;
    align-items: center;
}

.card-name::before {
    content: "";
    display: inline-block;
    width: 10px;
    height: 10px;
    background-color: var(--oro-rosa);
    border-radius: 50%;
    margin-right: 12px;
}

/* --- POSIZIONI A VENTAGLIO (Spaziate per mostrare bene i nomi) --- */
.card-1 { z-index: 4; transform: translate(0, 0) rotate(0deg) translateZ(0); }
.card-2 { z-index: 3; transform: translate(-15px, -55px) rotate(-3deg) translateZ(0); }
.card-3 { z-index: 2; transform: translate(-30px, -110px) rotate(-6deg) translateZ(0); }
.card-4 { z-index: 1; transform: translate(-45px, -165px) rotate(-9deg) translateZ(0); }

/* Testi dinamici della sezione */
.accent-line {
    width: 50px;
    height: 3px;
    background-color: var(--oro-rosa);
    margin-bottom: 25px;
    border-radius: 2px;
}

.dynamic-text-wrapper {
    transition: opacity 0.4s ease-in-out; 
}

.dynamic-text-wrapper.fade-out {
    opacity: 0;
}

.team-text-col h3 {
    font-size: 2.2rem;
    margin-bottom: 20px;
    line-height: 1.3;
    color: var(--testo);
}

.team-text-col p {
    font-size: 1.15rem;
    line-height: 1.9; 
    font-weight: 300;
    color: var(--testo);
}

/* ==========================================
   06. MENU SERVIZI - IL TUO PERCORSO DI BENESSERE
   ========================================== */
.services-menu {
    background-color: var(--bianco);
    padding: 100px 20px;
}

.menu-container {
    max-width: 900px;
    margin: 0 auto;
}

.menu-header {
    text-align: center;
    margin-bottom: 50px;
}

.menu-header h2 {
    font-size: 2.8rem;
    color: var(--testo);
    margin-bottom: 15px;
}

.menu-header p {
    font-size: 1.1rem;
    color: #777;
    font-weight: 300;
}

/* --- TABS PRINCIPALI (PILLS) --- */
.menu-tabs {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 50px;
}

.tab-btn {
    display: flex;
    align-items: center; /* Centra verticalmente icona e testo */
    justify-content: center;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid #EEEEEE;
    border-radius: 30px;
    padding: 12px 30px;
    cursor: pointer;
    min-width: 120px;
    transition: all 0.4s ease;
    backdrop-filter: blur(5px);
}

.tab-btn i {
    font-size: 1.3rem; /* Dimensione icona leggermente ridotta */
    color: #A0A0A0;
    margin-right: 10px; /* Spaziatura a destra dell'icona */
    margin-bottom: 0; /* Rimosso margine inferiore */
    transition: color 0.4s ease;
}

.tab-btn span {
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    font-size: 1.05rem;
    color: var(--testo);
    margin: 0;
    line-height: 1;
}

/* Stato Attivo della Tab */
.tab-btn.active, .tab-btn:hover {
    background: #FFF;
    border-color: var(--oro-rosa);
    box-shadow: 0 8px 20px rgba(183, 110, 121, 0.15);
    transform: translateY(-3px);
}

.tab-btn.active i, .tab-btn:hover i {
    color: var(--oro-rosa);
}

.tab-btn.active span {
    color: var(--oro-rosa);
}

/* --- CONTENUTO SERVIZI (TRANSIZIONI) --- */
.service-category {
    display: none;
    animation: fadeInSlideUp 0.6s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
}

.service-category.active {
    display: block;
}

@keyframes fadeInSlideUp {
    0% { opacity: 0; transform: translateY(20px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* --- LAYOUT A DUE COLONNE (SOTTOMENU LATERALE) --- */
.split-services-container {
    display: flex;
    gap: 40px;
    align-items: flex-start;
    margin-top: 30px;
    text-align: left;
}

.services-sidebar {
    flex: 0 0 280px;
    display: flex;
    flex-direction: column;
}

.sub-tab-btn {
    background: transparent;
    border: none;
    text-align: left;
    padding: 18px 20px;
    font-family: 'Montserrat', sans-serif;
    font-size: 1.1rem;
    color: var(--testo);
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
    border-bottom: 1px solid #EEEEEE;
}

.sub-tab-btn .count {
    color: #999;
    font-size: 1rem;
    margin-left: 5px;
}

.sub-tab-btn.active {
    background-color: #EAEBEF; 
    color: #333;
    font-weight: 500;
    border-bottom: none;
    border-radius: 4px 0 0 4px; 
}

.sub-tab-btn.active::after {
    content: '';
    position: absolute;
    right: -15px; 
    top: 0;
    width: 0; 
    height: 0; 
    border-top: 29px solid transparent; 
    border-bottom: 29px solid transparent; 
    border-left: 15px solid #EAEBEF; 
    z-index: 2;
}

.services-list-area {
    flex: 1; 
}

.sub-panel {
    display: none;
    animation: fadeIn 0.4s ease;
}

.sub-panel.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- RIGHE SERVIZIO E LISTE --- */
.service-row, .service-list-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    border-bottom: 1px solid #E0E0E0;
}

.service-row:last-child, .service-list-item:last-child {
    border-bottom: none;
}

.service-info h4, .service-list-info h4 {
    font-size: 1.15rem;
    margin-bottom: 5px;
    color: #222;
    font-weight: 500;
}

h4.serif-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--testo);
    margin: 0;
}

.service-info p, .duration {
    font-size: 0.9rem;
    color: #888;
    font-weight: 300;
}

.service-action, .service-list-action {
    display: flex;
    align-items: center;
    gap: 20px;
}

.price {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 1.2rem;
    color: var(--testo);
}

/* --- BOTTONI PRENOTA --- */
.btn-prenota {
    background-color: var(--panna);
    color: var(--oro-rosa);
    padding: 10px 20px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    border: 1px solid var(--oro-rosa);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-prenota:hover {
    background-color: var(--oro-rosa);
    color: var(--bianco);
}

/* --- ACCORDION E TENDINE (PULITO E SENZA DOPPIONI) --- */
.accordion-item {
    border-bottom: 1px solid #EEEEEE;
    overflow: visible !important;
}

.accordion-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    cursor: pointer;
    border-bottom: none; 
}

.accordion-icon i {
    font-size: 1.2rem;
    color: var(--oro-rosa);
    transition: transform 0.4s ease;
}

.accordion-header.active .accordion-icon i {
    transform: rotate(180deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    background-color: var(--panna); 
    border-radius: 12px;
    padding: 0 20px;
    opacity: 0;
    transition: all 0.4s ease-in-out;
}

.accordion-content.open {
    max-height: 2500px !important; /* Risolve definitivamente il taglio delle liste! */
    padding: 20px;
    margin-bottom: 20px;
    opacity: 1;
}

/* Righe interne alla tendina */
.sub-service-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px dashed rgba(183, 110, 121, 0.2);
}

.sub-service-row:last-child {
    border-bottom: none;
}

.sub-name {
    font-size: 1rem;
    color: var(--testo);
    font-weight: 400;
}

.sub-action {
    display: flex;
    align-items: center;
    gap: 15px;
}

.btn-prenota-small {
    background-color: transparent;
    color: var(--oro-rosa);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-prenota-small:hover {
    text-decoration: underline;
}





/* ==========================================
   08. FOOTER E WHATSAPP FAB
   ========================================== */
.footer { 
    background-color: var(--rosa-cipria); 
    max-width: 100%; 
}

.fab-whatsapp {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: var(--verde-wa);
    color: var(--bianco);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px; 
    text-decoration: none;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    z-index: 1000;
    animation: pulse 2s infinite; 
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); } 
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* ==========================================
   PULSANTE WHATSAPP PERSONALIZZATO (Oro Rosa)
   ========================================== */
.whatsapp-float {
    position: fixed;
    bottom: 30px; /* Distanza dal fondo della pagina */
    right: 30px;  /* Distanza dal bordo destro */
    
    /* Il colore principale: Oro Rosa del tuo sito */
    background-color: var(--oro-rosa); 
    
    /* Le dimensioni e la forma circolare */
    width: 60px;
    height: 60px;
    border-radius: 50px; /* Crea un cerchio perfetto */
    
    /* Allineamento dell'icona al centro */
    display: flex;
    align-items: center;
    justify-content: center;
    
    /* L'ombra leggera che lo fa fluttuare */
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
    
    /* Transizione morbida per l'hover */
    transition: all 0.3s ease;
    z-index: 1000; /* Assicura che sia sempre sopra tutto */
}

/* L'icona all'interno */
.whatsapp-float svg {
    fill: #FFF; /* Icona bianca */
    width: 35px; /* Dimensione dell'icona */
    height: 35px;
}

/* Effetto al passaggio del mouse */
.whatsapp-float:hover {
    background-color: #a05d69; /* Un oro rosa leggermente più scuro */
    transform: translateY(-5px); /* Si alza leggermente */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}


/* ==========================================
   07. SEZIONE CONTATTI (Stile Card Arrotondate)
   ========================================== */
.contacts-section {
    padding: 80px 20px 100px 20px;
    /* Non mettiamo background qui, così si vedrà il pattern a foglioline del body! */
}


.contacts-cards-container {
    display: flex;
    justify-content: center;
    gap: 30px;
    max-width: 1100px;
    margin: 0 auto;
    flex-wrap: wrap; /* Per farli andare a capo sui cellulari */
}

.contact-card {
    background-color: var(--bianco, #FFFFFF); /* Sfondo bianco puro per staccare dal pattern */
    border-radius: 40px; /* Angoli molto morbidi come nel tuo screen */
    padding: 50px 30px;
    text-align: center;
    flex: 1;
    min-width: 280px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.04); /* Ombra leggerissima per dare profondità */
    transition: transform 0.3s ease;
}

.contact-card:hover {
    transform: translateY(-5px); /* Piccolo effetto quando ci passi sopra col mouse */
}

/* Titoli delle card in Oro Rosa e belli spessi */
.contact-card .card-title {
    font-family: 'Playfair Display', serif;
    font-weight: 800;
    font-size: 1.8rem;
    color: var(--oro-rosa);
    margin-bottom: 25px;
    letter-spacing: 0.5px;
}

/* Testi normali */
.contact-card p {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.05rem;
    color: var(--testo);
    line-height: 1.8;
    margin-bottom: 20px;
    font-weight: 500;
}

/* Evidenziazione per il numero di telefono */
.contact-card p strong {
    font-weight: 700;
    font-size: 1.15rem;
}

/* Testo grigio per i giorni di chiusura */
.contact-card .closed-days {
    color: #999;
    font-weight: 400;
}

/* Stile per i Link (Sottolineati e colorati) */
.contact-card .card-link {
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: var(--oro-rosa);
    text-decoration: underline;
    text-underline-offset: 4px; /* Distanzia un po' la sottolineatura */
    transition: opacity 0.3s ease;
}

.contact-card .card-link:hover {
    opacity: 0.7;
}

/* Responsività per Smartphone: impila le card una sull'altra */
@media (max-width: 800px) {
    .contacts-cards-container {
        flex-direction: column;
        align-items: center;
    }
    .contact-card {
        width: 100%;
        max-width: 400px;
    }
}



/* ==========================================
   SEZIONE INSTAGRAM VIBES
   ========================================== */
/* La linea tratteggiata separatrice */
.ig-divider {
    border: none;
    border-top: 2px dashed rgba(183, 110, 121, 0.2); /* Oro rosa trasparente */
    margin: 70px auto 50px auto;
    max-width: 900px;
}

.ig-section {
    text-align: center;
}

/* Titolo della sezione Instagram in Playfair Display */
.ig-title {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    color: var(--testo);
    margin-bottom: 40px;
    font-weight: 600;
}

/* L'handle @ di Instagram (lo teniamo in Montserrat per renderlo super leggibile come fosse un link) */
.ig-title a {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--oro-rosa);
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.ig-title a:hover {
    opacity: 0.7;
}

/* Griglia Foto IG */
.ig-gallery {
    display: flex;
    justify-content: center;
    gap: 25px;
    flex-wrap: wrap;
}

.ig-post {
    display: block;
    width: 230px; /* Dimensione dei quadrati */
    aspect-ratio: 1 / 1; /* Li rende perfettamente quadrati */
    border-radius: 20px; /* Bordi molto arrotondati come da foto */
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

/* Effetto quando passi sopra la foto col mouse */
.ig-post:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(183, 110, 121, 0.25);
}

.ig-post img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.ig-post:hover img {
    transform: scale(1.08); /* Leggerissimo zoom all'interno */
}



/* SPOSTAMENTO SEZIONE CONTATTI AL CLICK DEL MENU */
#contatti {
    scroll-margin-top: 55px !important; /* Spazio aumentato per sicurezza */
}





/* ==========================================
   FOOTER E PRIVACY
   ========================================== */
.footer { 
    background-color: var(--rosa-cipria); 
    padding: 40px 20px;
    text-align: center;
    border-top: 1px solid rgba(183, 110, 121, 0.2);
    width: 100%;
}

.footer-content p {
    font-family: 'Montserrat', sans-serif;
    color: var(--testo);
    font-size: 0.95rem;
    margin-bottom: 10px;
}

.privacy-link {
    color: var(--oro-rosa);
    text-decoration: none;
    font-weight: 600;
    transition: opacity 0.3s ease;
}

.privacy-link:hover {
    opacity: 0.7;
    text-decoration: underline;
    text-underline-offset: 4px;
}

/* ==========================================
   NASCONDI ELEMENTI MOBILE SU DESKTOP
   ========================================== */
.hamburger-menu { display: none; }
.mobile-menu-overlay { display: none; }

/* ==========================================
   REGOLE UNIFICATE PER SMARTPHONE (Sotto i 768px)
   ========================================== */
@media (max-width: 768px) {
    
    /* --- 1. HEADER E HAMBURGER MENU --- */
    .desktop-nav { display: none; }
    .glass-header { padding: 10px 20px; }
    
    .hamburger-menu {
        display: block; background: transparent; border: none;
        font-size: 1.8rem; color: var(--testo); cursor: pointer;
    }
    
    .mobile-menu-overlay {
        display: flex; position: fixed; top: 0; left: 0; width: 100%; height: 100vh;
        background-color: var(--panna); z-index: 2000;
        flex-direction: column; justify-content: center; align-items: center;
        transform: translateX(100%); transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    }
    
    .mobile-menu-overlay.open { transform: translateX(0); }
    
    .close-menu {
        position: absolute; top: 25px; right: 25px;
        background: transparent; border: none; font-size: 2.2rem;
        color: var(--testo); cursor: pointer;
    }
    
    .mobile-nav { display: flex; flex-direction: column; gap: 35px; text-align: center; }
    .mobile-nav a { font-family: 'Playfair Display', serif; font-size: 2rem; color: var(--testo); text-decoration: none; font-weight: 600; }
    .mobile-nav a.nav-btn-prenota { font-family: 'Montserrat', sans-serif; font-size: 1.2rem; background-color: var(--oro-rosa); color: white; padding: 15px 30px; margin-top: 20px; border-radius: 30px; }


    /* --- 2.  IL SALONE --- */

    /* --- 2.  IL SALONE --- */
    .featured-rooms,
    .secondary-rooms {
        grid-template-columns: 1fr;
    }

    /* --- 3. CHI SIAMO --- */
    
    #chi-siamo, #servizi, #contatti { 
        scroll-margin-top: 80px; /* Ferma lo scorrimento appena sotto l'header */
    }
    
    /* Disattiviamo l'effetto "ghigliottina" che mozzava le carte in alto */
    .chi-siamo-section { 
        overflow: visible !important; 
    }

    .chi-siamo-container { 
        flex-direction: column; 
        height: auto; 
        padding: 20px 20px 40px 20px; 
        gap: 30px; 
    }
    
    .team-cards-col { 
        width: 100%; 
        display: flex; 
        justify-content: center; 
    }
    
    .team-text-col { 
        width: 100%; 
        padding: 0; 
        text-align: center; 
        align-items: center; 
    }
    
    /* Creiamo lo spazio esatto per l'apertura a ventaglio */
    .cards-stack { 
        margin: 150px auto 0 auto; 
        height: 320px; 
        width: 85%; 
        max-width: 280px; 
        position: relative;
        left: 6px; /* Bilancia l'apertura verso sinistra per centrare tutto */
    }
    
    .team-card { 
        height: 320px; 
    }

    /* Ora le carte si alzano ESATTAMENTE dell'altezza della barra bianca (48px) */
    .card-1 { transform: translate(0, 0) rotate(0deg) !important; }
    .card-2 { transform: translate(-4px, -48px) rotate(-2deg) !important; }
    .card-3 { transform: translate(-8px, -96px) rotate(-4deg) !important; }
    .card-4 { transform: translate(-12px, -144px) rotate(-6deg) !important; }


    /* --- 4. SERVIZI --- */
    .menu-header h2 { font-size: 2.2rem; }

    /* 1. Bottoni Principali (Unghie, Depilazione...) */
    .menu-tabs { 
        display: flex;
        flex-wrap: wrap; 
        overflow-x: visible; 
        justify-content: center; 
        gap: 8px; 
        padding-bottom: 15px; 
    }
    
    .tab-btn {
        padding: 8px 12px; 
        min-width: auto; 
    }

    .tab-btn span { font-size: 0.85rem; }
    .tab-btn i { font-size: 0.9rem; margin-right: 6px; }
    
    /* 2. Contenitore diviso a metà su PC, ma a colonna singola su Telefono */
    .split-services-container { 
        display: flex;
        flex-direction: column; 
        gap: 20px; 
        width: 100%; /* Fondamentale: usa tutto lo schermo */
    }
    
    /* 3. Sotto-bottoni (Manicure, Pedicure...) */
    .services-sidebar { 
        flex: auto; 
        width: 100%; 
        display: flex;
        flex-direction: row; 
        flex-wrap: wrap; 
        justify-content: center; 
        overflow-x: visible; 
        white-space: normal; 
        border-bottom: none; 
        gap: 8px; 
        padding-bottom: 15px; 
    }
    
    .sub-tab-btn { 
        background-color: var(--panna); 
        border: 1px solid #EAEBEF; 
        border-radius: 20px; 
        padding: 6px 12px; 
        font-size: 0.85rem; 
        text-align: center;
    }
    
    .sub-tab-btn.active::after { display: none; }
    .sub-tab-btn.active { 
        background-color: var(--oro-rosa); 
        color: white; 
        border-color: var(--oro-rosa); 
        border-radius: 20px !important; 
    }
    .sub-tab-btn.active .count { color: white; opacity: 0.8; }

    /* 4. Area della lista (Forzata ad occupare l'intero schermo) */
    .services-list-area {
        width: 100%;
        display: block;
    }

    /* 5. Righe Listino (Sia fuori che dentro le tendine) */
    .service-row, .service-list-item, .sub-service-row { 
        display: flex !important;
        flex-direction: row !important; 
        align-items: center !important; 
        justify-content: space-between !important; 
        width: 100% !important; /* Allarga la riga fino in fondo */
    }
    
    .service-info, .service-list-info {
        flex: 1 1 auto !important; /* Testo prende spazio a sinistra */
        padding-right: 15px !important; 
        text-align: left !important;
    }

    .service-action, .service-list-action { 
        flex: 0 0 auto !important; /* Prezzo resta solido a destra */
        text-align: right !important; 
        white-space: nowrap !important; /* Niente "A capo" per i prezzi */
    }

    h4.serif-title, .service-list-info h4 { font-size: 1.1rem; margin: 0; line-height: 1.3; }
    .price { font-size: 1.1rem; }

    /* 6. Intestazioni a Tendina (Accordion) e Frecce */
    .accordion-item {
        width: 100%; /* Impedisce alla riga di fermarsi a metà schermo */
    }

    .accordion-header { 
        display: flex !important;
        flex-direction: row !important; 
        justify-content: space-between !important;
        align-items: center !important;
        width: 100% !important; 
        padding: 20px 0 !important;
    }

    .accordion-header h4.serif-title {
        flex: 1 1 auto !important; 
        padding-right: 15px !important;
        text-align: left !important;
    }

    .accordion-icon {
        flex: 0 0 auto !important; /* Freccia incollata al bordo destro */
    }

    /* --- 5. INSTAGRAM --- */
    .ig-divider { margin: 50px auto 40px auto; }
    .ig-gallery { gap: 15px; }
    .ig-post { width: calc(50% - 15px); max-width: 180px; border-radius: 15px; }
    .ig-title { font-size: 1.3rem; }
    
    /* --- 6. WHATSAPP FAB --- */
    .whatsapp-float { width: 50px; height: 50px; bottom: 20px; right: 20px; }
    .whatsapp-float svg { width: 28px; height: 28px; }
}