/* ***************************** */
/* ******** General CSS ******** */
/* ***************************** */
/* === DEFINIZIONE COLORI PALETTE === */
:root {
    /* === SPACING === */
    --section-padding: 60px;

    /* Padding standard per sezioni (da usare in future ottimizzazioni) */
    /* === BACKGROUNDS === */
    --bg-sito: #f2efea;

    /* Background principale corpo sito */
    --bg-sito-chiaro: #FDFCF9;

    /* Background chiaro per sezioni alternate */
    --bianco-naturale: #FDFBF7;

    /* Bianco caldo per testi su sfondo scuro */
    --iuta-chiaro: #F5F0E8;

    /* Sezioni alternate, dropdown, page-header chiaro */
    --iuta-scuro: #E3DCD0;

    /* Bordi, separatori, hover leggero, page-header scuro */
    --sabbia-calda: #EDE7DD;

    /* Riservato per footer (futuro) */
    /* === TESTI === */
    --marrone-terra: #3D2E26;

    /* Titoli H1-H6, testi importanti */
    --marrone-medio: #6B5A4C;

    /* Testi corpo, paragrafi */
    --marrone-chiaro: #9B8A7A;

    /* Testi secondari, didascalie, copyright */
    /* === ACCENTI PRIMARI === */
    --terracotta-cotto: #C17557;

    /* CTA, hover link, accenti caldi */
    --terracotta-scuro: #A85E41;

    /* Hover CTA, stati enfatizzati */
    --oro-miele: #D4A574;

    /* Dettagli decorativi, lettere pilastri */
    /* === ACCENTO VERDE === */
    --verde-salvia: #7A9B8C;

    /* Colore identità, navbar background */
    --verde-muschio: #5C7560;

    /* Link su sfondo chiaro, enfasi testi */
    /* === PILASTRI G.U.S.T.O. - Background === */
    --rosa-guida: rgba(246, 225, 230, 0.55);

    /* G - Guida interiore */
    --rosa-guida-hover: #EFCED6;
    --verde-udire: rgba(229, 241, 233, 0.55);

    /* U - Udire */
    --verde-udire-hover: #D6E7DD;
    --giallo-sperim: rgba(255, 244, 214, 0.55);

    /* S - Sperimentazione */
    --giallo-sperim-hover: #F3E6BE;
    --viola-tempo: #EEE6F3;

    /* T - Tempo */
    --viola-tempo-hover: #E1D6EA;
    --azzurro-oss: #E6F1F6;

    /* O - Osservazione */
    --azzurro-oss-hover: #D6E7F0;

    /* === PILASTRI G.U.S.T.O. - Testi === */
    --rosa-guida-text: #8B5A68;

    /* Testo card Guida */
    --verde-udire-text: #5C7560;

    /* Testo card Udire */
    --giallo-sperim-text: #8B7548;

    /* Testo card Sperimentare */
    --viola-tempo-text: #7A6888;

    /* Testo card Tempo */
    --azzurro-oss-text: #5C7A88;

    /* Testo card Osservare */
    /* === EBOOK === */
    --gusto-ebook: #EFEAE4;
    --gusto-ebook-hover: #E4DDD5;
    --gusto-ebook-text: #6B5A4C;
}

/* FIX overflow orizzontale */
html,
body {
    overflow-x: hidden;
    max-width: 100%;
    margin: 0;
    padding: 0;
    height: auto;
}

body {
    font-family: 'Merriweather', serif;
    font-weight: 400;
    font-size: 18px;
    line-height: 1.65;
    color: var(--marrone-medio);
    background-color: var(--bg-sito);

    /* Background default */
}

/* ========================================= */
/* BACKGROUND SPECIFICI PER PAGINA - Sistema unificato */
/* ========================================= */
/* Pagine con background bg-sito (#f2efea - più scuro) + page-header chiaro */
/* perche.html (About), regali.html (Class), contatti.html (Registrazione) */
body.perche,

body.regali-page,

body.contatti {
    background-color: var(--bg-sito);

    /* #f2efea */
}

/* Pagine con background bg-sito-chiaro (#FDFCF9 - più chiaro) + page-header scuro */
/* metodo.html (Service), libro.html (Discount), guida.html, 7fame.html, sperimentazione.html, tempo.html, osserva.html (Schede) */
body.metodo,

body.libro,

body.portfolio-page,

body.guida,

body.fame7,

body.sperimentazione,

body.tempo,

body.osserva {
    background-color: var(--bg-sito-chiaro);

    /* #FDFCF9 */
}

h1,
h2 {
    font-family: 'Merriweather', serif;
    font-weight: 600;
    color: var(--marrone-terra);

    /* marrone terra */
    line-height: 1.25;
}

h3,

h4,

h5,

h6 {
    font-family: 'Merriweather', serif;
    font-weight: 400;
    line-height: 1.25;
    color: var(--marrone-terra);
}

.section-header h2 {
    font-weight: 700;
}

p {
    font-family: 'Merriweather', serif;
    font-weight: 400;
    font-size: 17px;
    line-height: 1.75;
    margin-bottom: 1.2em;
    color: var(--marrone-medio);
}

a {
    color: var(--verde-muschio);
    transition: .3s;
}

a:hover,

a:active,

a:focus {
    color: var(--terracotta-cotto);
    outline: none;
    text-decoration: none;
}

.btn:focus,

.form-control:focus {
    box-shadow: none;
}

.container-fluid {
    max-width: 1366px;
}

.back-to-top {
    position: fixed;
    display: none;
    background: var(--iuta-chiaro);
    width: 44px;
    height: 44px;
    text-align: center;
    line-height: 1;
    font-size: 22px;
    right: 15px;
    bottom: 15px;
    transition: background 0.5s;
    z-index: 9;
}

.back-to-top:hover {
    background: var(--terracotta-cotto);
}

.back-to-top:hover i {
    color: var(--bg-sito-chiaro);
}

.back-to-top i {
    color: var(--verde-muschio);
    padding-top: 10px;
}

/* ========================================= */
/* SEZIONE MOBILE UNIFICATA */
/* ========================================= */
@media (max-width: 767.98px) {
    :root {
        --section-padding: 30px;
    }

    body {
        font-size: 16px;
        line-height: 1.6;
    }

    p {
        font-size: 'Merriweather', serif;
    }

    h1 {
        font-size: 30px;
        line-height: 1.3;
    }

    h2 {
        font-size: 24px;
    }
}

/* ******************************** */
/* ********** Nav Bar CSS ********* */
/* ******************************** */
/* ========================================= */
/* IMPORT GOOGLE FONTS - Solo navbar */
/* ========================================= */
.navbar {
    position: absolute;

    /* Fondamentale: la navbar fluttua SOPRA la hero, non la spinge giù */
    width: 100%;
    z-index: 999;

    /* AZZERIAMO TUTTO */
    background-color: transparent !important;

    /* Colore della Hero */
    border-bottom: none !important;

    /* Togliamo quella linea che "pesa" */
    box-shadow: none !important;

    /* RIDUCIAMO L'ALTEZZA: meno padding */
    padding: 10px 0 !important;
    transition: all 0.5s ease;
}

.navbar,

.navbar a {
    font-family: 'Merriweather', serif;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* --- LOGICA DEI DUE STATI (Implementazione Strategia) --- */
/* 1. Stato Iniziale (In Hero): Trasparenza assoluta */
.navbar.gustonav {
    background-color: transparent !important;
    border-bottom: none !important;
    box-shadow: none !important;
    padding: 20px 0;

    /* Un po' più di respiro all'inizio */
    transition: all 0.5s ease;

    /* Passaggio vellutato */
}

/* 2. Stato Scrollato (In Contenuto): Qui riprendiamo esattamente il tuo stile */
.navbar.gustonav.nav-sticky {
    background-color: rgba(246, 243, 238, 0.98) !important;

    /* Il tuo colore crema */
    border-bottom: 1px solid rgba(61, 46, 38, 0.1) !important;
    box-shadow: 0 2px 8px rgba(61, 46, 38, 0.12) !important;
    padding: 0;

    /* Torna compatto come da tuo progetto */
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

/* Fix per Mobile: Quando il menu è aperto deve essere sempre leggibile */
@media (max-width: 991.98px) {
    .navbar.gustonav .navbar-collapse {
        background-color: #F6F3EE;

        /* Il tuo colore per il menu mobile */
        border-radius: 0 0 15px 15px;
    }
}

/* Container navbar - STANDARDIZZA margini */
.navbar .container,

.navbar .container-fluid {
    padding-left: 15px;
    padding-right: 15px;
    margin-left: auto;
    margin-right: auto;
}

.navbar.nav-sticky {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: rgba(246, 243, 238, 0.98) !important;
    padding: 5px 0 !important;

    /* Ancora più sottile mentre navighi */
    box-shadow: 0 2px 15px rgba(61, 46, 38, 0.08);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);

    /* Effetto vetro elegante */
    border-bottom: 1px solid rgba(61, 46, 38, 0.05) !important;
}

.navbar .navbar-brand {
    font-family: 'Merriweather', serif;
    margin: 0;
    color: var(--verde-muschio);
    padding: 10px 0 !important;
    font-size: 30px;
    line-height: 1;
    font-weight: 600;
    text-transform: none;
    letter-spacing: 0.5px;
    transition: .5s;
}

.navbar .navbar-brand span {
    color: var(--verde-muschio);

    /* ← ERA #3F5B4A, ORA terracotta */
    text-transform: none;
}

/* LOGO HOVER LIBERA */
.navbar-light.gustonav .navbar-brand:hover {
    color: var(--marrone-scuro);

    /* #D4A574 - oro miele hover */
}

.navbar-light.gustonav .navbar-brand:hover span {
    color: var(--terracotta-scuro);

    /* ← ERA #3F5B4A, ORA terracotta più scuro */
}

/* MENU HOVER (generale, se serve) */
.navbar-dark .navbar-nav .nav-link:hover {
    color: var(--terracotta-cotto);

    /* ← ERA #C86A4A, ORA terracotta nuovo */
    background: rgba(193, 117, 87, 0.1);

    /* ← ERA nero, ORA bianco trasparente */
}

/* DROPDOWN */
.navbar .dropdown-menu {
    margin-top: 0;
    border: 0;
    border-radius: 0;
    background: var(--iuta-chiaro);
}

/* DESKTOP MENU */
.navbar-light.gustonav .navbar-nav .nav-link {
    font-family: 'Merriweather', serif;
    padding: 15px 12px;
    color: var(--marrone-terra) !important;

    /* ← ERA #3F5B4A, ORA bianco */
    font-weight: 600;
    font-size: 14.5px;
    letter-spacing: 1px;
    text-transform: uppercase;
    opacity: 0.8;
}

.navbar-light.gustonav .navbar-nav .nav-link:hover,

.navbar-light.gustonav .navbar-nav .nav-link:focus,

.navbar-light.gustonav .navbar-nav .nav-link.active {
    color: var(--terracotta-cotto) !important;

    /* ← ERA #B46A4C, ORA terracotta nuovo */
    background: rgba(193, 117, 87, 0.1);

    /* ← ERA nero, ORA bianco trasparente */
}

/* MOBILE */
@media (max-width: 991.98px) {
    .navbar.gustonav .navbar-collapse {
        background-color: #F6F3EE;

        /* Il tuo colore per il menu mobile */
        border-radius: 0 0 15px 15px;
    }

    .navbar-light.gustonav .navbar-collapse {
        background-color: #F6F3EE;

        /* ← ERA #F6F1EB, ORA verde salvia */
        padding: 10px 0;
    }

    .navbar-light.gustonav .navbar-nav .nav-link {
        color: var(--marrone-medio);

        /* ← ERA #3F5B4A, ORA bianco */
        font-weight: 600;
        font-size: 15px;
        padding: 12px 15px;
        text-transform: uppercase;

        /* Come desktop */
        letter-spacing: 0.25px;
    }

    /* Link hover mobile */
    .navbar-light.gustonav .navbar-nav .nav-link:hover,

    .navbar-light.gustonav .navbar-nav .nav-link:active {
        color: var(--terracotta-cotto) !important;

        /* #C17557 - terracotta */
        background: rgba(193, 117, 87, 0.1);

        /* Terracotta trasparente */
    }

    .navbar {
        padding: 15px;
        background-color: #F6F3EE;

        /* ← ERA #F6F1EB, ORA verde */
    }

    /* Brand mobile */
    .navbar .navbar-brand {
        padding: 15px 0;

        /* Meno padding su mobile */
        font-size: 28px;

        /* Logo più piccolo su mobile */
    }

    .navbar .navbar-brand span {
        color: var(--verde-muschio);

        /* ← ERA #3F5B4A, ORA terracotta */
    }

    .navbar a.nav-link {
        padding: 12px 15px;

        /* Spazio touch-friendly */
    }

    .navbar .dropdown-menu {
        box-shadow: none;
        background: var(--iuta-chiaro);

        /* #F5F1EA */
    }
}

/* HAMBURGER ICON */
.navbar-light.gustonav .navbar-toggler {
    border-color: var(--marrone-medio);

    /* #6B5A4C - marrone medio */
    padding: 8px 10px;
}

.navbar-light.gustonav .navbar-toggler-icon {
    /* Marrone medio #6B5A4C = RGB(107, 90, 76) */
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='rgba(107,90,76,1)' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
}

.navbar-light.gustonav .navbar-toggler:focus {
    box-shadow: 0 0 0 0.2rem rgba(107, 90, 76, 0.25);

    /* Focus marrone */
}

/* **************************************** */
/* ****** HERO NEW CSS - CORRETTO ********* */
/* **************************************** */
.hero {
    position: relative;
    padding-top: 90px;
    padding-bottom: 140px;

    /* Correzione errore sintassi: overflow o background */
    overflow: hidden;
    background: none;

    /* Se usate l'immagine negli pseudo-elementi, qui va bene none */
    background-color: var(--bg-sito-chiaro);
    width: 100%;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;

    /* Modificato in center per centrare il contenuto orizzontalmente */
    min-height: 85vh;
}

/* Overlay Sfumatura */
.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom,
            rgba(242, 241, 232, 0.08),
            rgba(242, 241, 232, 0.22),
            rgba(242, 241, 232, 0.08));
    z-index: 1;
}

/* Immagine di Sfondo Parallasse */
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(rgba(242, 241, 232, 0.25),
            rgba(242, 241, 232, 0.25)),
        url(../img/teglie3.png);
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    background-attachment: fixed;
    z-index: 0;
}

/* Contenitore */
.hero .container {
    max-width: 100%;
    text-align: center;
    position: relative;
    z-index: 2;
    width: 100%;

    /* Ho unito le due regole .hero .container e .hero > .container qui per pulizia */
}

/* Blocco Testo Principale */
.hero-text {
    max-width: 720px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;

    /* ATTENZIONE MARTINA: Ho modificato qui per coerenza. 
       Se volete tutto centrato, usate 'center' e togliete il padding-left.
       Se lo volete a sinistra, rimettete 'flex-start' e il padding. */
    align-items: center;
    justify-content: center;
    padding: 0;
}

/* Titolo */
.hero .hero-text h1 {
    color: var(--marrone-terra);
    font-family: 'Merriweather', serif;
    font-weight: 600;
    font-size: 50px;
    line-height: 1.25;
    max-width: 720px;

    /* Questo potrebbe stringere troppo il titolo se è lungo */
    margin-bottom: 20px;

    /* Eredita text-align: center dal container */
}

/* Sottotitolo (Lead) 
.hero-sub {
    color: var(--verde-muschio);
    font-size: 20px;
    line-height: 1.6;
    margin-bottom: 18px;
    font-weight: 400;
} */
/* Micro testo */
.hero-text .hero-micro {
    color: var(--marrone-terra);
    font-size: 30px;
    line-height: 1.4;
    font-weight: 600;
    margin-bottom: 30px;
    letter-spacing: 0.3px;
    font-family: 'Merriweather', serif;
}

/* Paragrafo generico dentro hero-text 
.hero-text p {
    font-size: 17.5px;
    line-height: 1.75;
    color: var(--bianco-naturale);
    font-family: 'Merriweather', serif;
    font-weight: 400;
    letter-spacing: 0.1px;
    margin-bottom: 25px;
} */
/* Header di Sezione (se presente nella hero) 
.hero .section-header {
    margin-bottom: 30px;
}

.hero .section-header p {
    color: var(--verde-muschio);
    font-size: 16px;
    letter-spacing: 0.5px;
    background: transparent;
}
.hero .section-header p::after { display: none; }

.hero .section-header h2 {
    color: var(--marrone-terra);
    font-weight: 600;
    font-size: 36px;
    line-height: 1.25;
    text-shadow: 0 1px 2px rgba(0,0,0,0.08);
    margin-top: 0;
}

.hero .section-header h2 span {
    color: #C86A4A; 
    font-size: 50px;
    font-weight: 700;
} */
/* Bottone */
.hero .hero-text .btn {
    background: var(--terracotta-cotto);

    /* Terracotta più vibrante */
    display: none;
    color: var(--bianco-naturale);
    padding: 16px 40px;
    border-radius: 30px;

    /* Pill shape gentile */
    font-size: 18px;
    font-weight: 600;
    border: none;
    box-shadow: 0 4px 12px rgba(217, 119, 87, 0.3);

    /* Ombra per depth */
    transition: all 0.3s ease;
}

.hero .hero-text .btn:hover {
    background: var(--terracotta-scuro);

    /* Leggermente più scuro on hover */
    transform: translateY(-2px);

    /* Micro-lift */
    box-shadow: 0 6px 16px rgba(217, 119, 87, 0.4);
}

.hero-text .hero-bridge {
    font-size: 16px;
    font-style: italic;
    color: var(--marrone-terra);
    margin-bottom: 18px;
    font-weight: 700;
}

/* Classe utility per evitare che il testo vada a capo */
.nowrap {
    white-space: nowrap;
}

/* ========================= */
/* hero MOBILE */
/* ========================= */
@media (max-width: 768px) {
    .hero {
        background: none;

        /* Disattiva lo sfondo fisso che crea problemi su mobile */
        position: relative;
        overflow: hidden;

        /* 110px 0 70px; */
        margin-bottom: 0 !important;
        padding: 60px 0 90px;

        /* 20px */
        /* ered */
        background-image: url('../img/heromobile.jpg');
        background-size: cover;
        background-position: center;
        min-height: auto;
        text-align: left;
    }

    /* Trucco per simulare lo sfondo fisso senza bug su iOS */
    .hero::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: linear-gradient(rgba(242, 241, 232, 0.55),
                rgba(242, 241, 232, 0.55)),
            url(../img/teglie3.png);

        /* rgba(246, 243, 238, 0.88) */
        background-position: center top;
        background-repeat: no-repeat;
        background-size: cover;
        transform: translateZ(0);
        will-change: transform;
        background-attachment: scroll;
        z-index: 0;

        /* ered */
        inset: 0;
    }

    /* Assicura che il testo stia sopra lo sfondo simulato */
    .hero>* {
        position: relative;
        z-index: 1;
    }

    .hero .section-header h2 {
        font-size: 30px;
        line-height: 1.3;
    }

    .hero .section-header h2 span {
        font-size: 32px;
    }

    .hero .hero-text p {
        font-size: 15px;
        line-height: 1.6;
        padding: 0 15px;

        /* Margine di sicurezza laterale */
    }

    .hero .hero-text .btn {
        padding: 14px 28px;

        /* 10px 15px; */
        border-radius: 999px;

        /* ered */
        font-weight: 400;
        letter-spacing: 1px;
    }

    /* ered */
    .hero .hero-text h1 {
        font-size: 30px;
        font-weight: 600;
        max-width: 500px;
    }
}

/* **************************** FINE HERO NEW ******************** */
/* ***************************** */
/* ****** Page Header CSS ****** */
/* ***************************** */
.page-header {
    position: relative;
    margin-bottom: 0;
    text-align: center;
    padding-top: 120px;
    padding-bottom: 30px;

    /* ALTEZZA FISSA per tutte le pagine */
    min-height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ========================================= */
/* PAGE HEADER - Sistema unificato e pulito */
/* ========================================= */
/* IMPORTANTE: Tutte le varianti hanno ALTEZZA FISSA uguale */
/* VARIANTE CHIARA - Per pagine con body bg-sito (#f2efea - più scuro) */
/* page-header-chiaro = iuta-scuro (più scuro) */
.page-header-chiaro {
    background: var(--iuta-scuro);
    min-height: 220px !important;
}

/* VARIANTE SCURA - Per pagine con body bg-sito-chiaro (#FDFCF9 - più chiaro) */
/* page-header-scuro = iuta-chiaro (più chiaro) */
.page-header-scuro {
    background: var(--iuta-chiaro);
    min-height: 220px !important;
}

/* subtitle */
.page-subtitle {
    font-size: 18px;
    color: #6F6F6F;
    background: transparent;
    padding: 0;
    margin-top: 12px;
    color: var(--marrone-medio);
    font-size: 16px;
    line-height: 1.6;
}

/* Titolo principale H2 */
.page-header h2 {
    font-family: 'Merriweather', serif;
    font-weight: 700;
    font-size: 42px;

    /* non 60 */
    line-height: 1.3;
}

@media (max-width: 767.98px) {
    .page-header,

    .page-header-chiaro,

    .page-header-scuro {
        min-height: 180px !important;

        /* Altezza fissa mobile per tutte le pagine */
    }

    .page-header h2,

    .page-header h1 {
        font-size: 30px;
    }

    .page-header a {
        font-size: 18px;
    }
}

/* ***************************** */
/* ****** Section Header ******* */
/* ***************************** */
.section-header {
    position: relative;
    max-width: 640px;
    margin: 0 auto 45px;
    text-align: center;
}

/* Paragrafo sopra il titolo (lead/intro) */
.section-header p {
    display: inline-block;
    margin: 0 30px 12px;

    /* Era 5px, aumento per respiro */
    padding: 0 10px;
    position: relative;
    font-size: 17px;
    font-weight: 500;
    color: var(--verde-muschio);

    /* #5C7560 - verde muschio (enfasi) */
    background: trasparent;
    letter-spacing: 0.2px;

    /* Aggiungo per eleganza */
}

/* Titolo principale H2 */
.section-header h2 {
    font-family: 'Merriweather', serif;
    font-weight: 700;
    margin: 0;
    position: relative;
    font-size: 36px;
    color: var(--marrone-terra);

    /* #3D2E26 - marrone terra */
    line-height: 1.35;

    /* Aggiungo per respiro */
}

@media (max-width: 767.98px) {
    .section-header {
        margin-bottom: 30px;

        /* Riduciamo un po' lo spazio sotto il titolo */
    }

    .section-header h2 {
        font-size: 28px;
    }
}

.brand-divider {
    background: var(--bg-sito-chiaro);
    text-align: center;
    padding: 0;
}

.brand-divider img {
    max-width: 130px;
    opacity: 0.70;
}

/* ***************************** */
/* ********* Perchè CSS ********* */
/* ***************************** */
/* ========================================= */
/* 1. STILE BASE (Sezione Perchè in Home) */
/* ========================================= */
.about {
    position: relative;
    width: 100%;
    padding: 90px 0 120px;
    background-color: var(--bg-sito-scuro);

    /* #F5F1EA - iuta chiaro (era #F7F3EE) */
    margin-top: 0;
    overflow: hidden;
}

.about .row {
    margin-top: -30px;
}

.about-text p {
    margin-bottom: 20px;
}

.about .section-header {
    margin-bottom: 30px;
    margin-left: 0;
}

.about .section-header h2 {
    color: var(--marrone-terra);
    font-weight: 600;
}

/* Immagine About Home - Desktop */
.about .about-img {
    transform: translateX(-40px);
    position: relative;
    height: auto;
    max-width: 100%;
    display: flex;
    align-items: flex-end;
    margin-top: 60px;
}

/* .about-img {
    display: flex;
    align-items: flex-end;
} */
.about .about-img img {
    width: 100%;
    height: auto;
    -o-object-fit: contain;
    object-fit: contain;
    background-color: transparent;
    mix-blend-mode: normal;
}

/* Testo About (Home) */
.about .about-text p {
    font-family: 'Merriweather', serif;
    font-weight: 400;
    font-size: 19px;
    line-height: 1.75;
    color: var(--marrone-medio);
}

.about .about-text .about-signature {
    margin-top: 28px;
    font-style: italic;
    color: var(--marrone-chiaro);
    font-size: 16px;
    line-height: 1.6;
}

/* ========================================= */
/* PAGINA PERCHE DEDICATA ("About") */
/* ========================================= */
/* NOTA: Background e page-header gestiti dalle classi unificate sopra */
/* Section About nella pagina */
body.about .about {
    background-color: transparent;
    padding: 60px 0;
}

/* Immagine pagina About */
body.about .about-img img {
    mix-blend-mode: normal;
    border-radius: 14px;
}

/* Paragrafi pagina About */
body.about .about-text p {
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 17px;
    line-height: 1.75;
    color: var(--marrone-medio);

    /* #6B5A4C - marrone medio (era #4A4A4A grigio) */
    margin-bottom: 18px;
}

/* Paragrafo intro (primo paragrafo enfatizzato) */
body.about .about-text p.intro {
    font-size: 18px;
    font-weight: 500;
    color: var(--verde-muschio);

    /* #5C7560 - verde muschio (era #3F5B4A verde) */
    line-height: 1.7;
}

/* Testo in corsivo (enfasi) */
body.about .about-text em {
    font-style: italic;
    color: var(--marrone-chiaro);

    /* #9B8A7A - marrone chiaro (era #6F645E grigio) */
}

/* Firma/nome alla fine */
body.about .about-text .signature {
    margin-top: 30px;
    font-family: 'Merriweather', serif;
    font-size: 18px;
    font-weight: 500;
    color: var(--marrone-terra);

    /* #3D2E26 - marrone terra (era #3F5B4A verde) */
}

/* ========================================= */
/* BOTTONI */
/* ========================================= */
.about-cta {
    margin-top: 60px;
    text-align: center;
}

/* Bottone soft (outline) - STANDARDIZZATO */
.btn-soft {
    display: inline-block;
    padding: 14px 32px;

    /* Era 12px 28px, standardizzo */
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0.5px;
    color: var(--terracotta-cotto);

    /* #C17557 - terracotta (era #C86A4A) */
    background: transparent;
    border: 2px solid var(--terracotta-cotto);

    /* Era 1px, aumento a 2px */
    border-radius: 30px;

    /* Era 999px, standardizzo */
    text-align: center;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-soft:hover {
    color: var(--bianco-naturale);
    background: var(--terracotta-cotto);

    /* #C17557 - terracotta */
    border-color: var(--terracotta-cotto);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(193, 117, 87, 0.35);
    text-decoration: none;
}

/* ========================================= */
/* RESPONSIVE */
/* ========================================= */
/* --- 3. MOBILE FIX --- */
@media (max-width: 767.98px) {
    .about .col-lg-5 {
        order: 2;
    }

    .about .col-lg-7 {
        order: 1;
    }

    /* Home About */
    .about {
        padding-top: 30px;
    }

    .about-list {
        line-height: 1.6;
    }

    .about-text p {
        font-size: 15px;
        line-height: 1.6;
    }

    .about p {
        margin-bottom: 18px;
    }

    .about .about-text .about-signature {
        font-size: 15px;
        margin-top: 22px;
    }

    .about .row {
        margin-top: 0;
    }

    /* Immagine About Home - Mobile: centrata e opacità normale */
    .about .about-img {
        transform: none;

        /* Rimuove lo spostamento a sinistra del desktop */
        margin: 20px auto 30px;

        /* Centra con margin auto */
        height: auto;
        text-align: center;
        max-width: 85%;
        opacity: 1;

        /* IMPORTANTE: Opacità normale, non velata */
        display: flex;
        justify-content: center;

        /* Centra il contenuto */
    }

    .about .about-img img {
        max-width: 85%;
        height: auto;
    }

    /* Sezione About dentro pagina perche.html (mobile) */
    body.about .about {
        padding: 30px 0;
    }

    body.about .section-header h2 {
        font-size: 26px;
        line-height: 1.3;
        text-align: center;
    }
}

/* ***************************** */
/* ******** METODO CSS ******** */
/* ***************************** */
/* ========================================= */
/* 1. STILE BASE (Sezione Metodo in Home) */
/* ========================================= */
.service {
    background-color: var(--bg-sito-chiaro);
    position: relative;
    margin-bottom: 0;
    padding: 90px 0 80px;
}

.service .section-header {
    font-size: 20px;
    line-height: 1.7;
    max-width: 680px;
    margin: 0 auto;
}

.service .section-header .section-subtitle {
    color: var(--marrone-medio);
    font-size: 17px;
    line-height: 1.7;
    max-width: 680px;
    margin: 0 auto;
}

.service .row {
    display: flex;
    flex-wrap: wrap;
    margin-right: -15px;
    margin-left: -15px;
    margin-top: 20px;
}

.service .row>div[class^="col-"] {
    display: flex;
    flex-direction: column;
    margin-bottom: 30px;
    padding-left: 15px;
    padding-right: 15px;
}

/* === SERVICE ITEM BASE === */
.service .service-item {
    position: relative;
    width: 100%;
    height: 100%;
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    border-radius: 12px;
    box-shadow: none;
    border: 1px solid rgba(61, 46, 38, 0.08);
    cursor: default;
}

.service .service-item:hover {
    border-color: rgba(193, 117, 87, 0.3);
    transform: translateY(-2px);

    /* NUOVO: lift al hover */
    box-shadow: 0 4px 12px rgba(61, 46, 38, 0.10);

    /* NUOVO: ombra */
}

/* === ICON SYSTEM === */
.service .service-icon {
    position: relative;
    margin: 0 auto 25px;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: transparent;
    box-shadow: none;
}

.service .service-icon:before,

.service .service-icon:after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
}

.service .service-icon:before {
    width: 90px;
    height: 90px;

    /* animation: pulse-border 1500ms ease-out infinite; */
}

.service .service-icon:after {
    width: 80px;
    height: 80px;
    transition: all 200ms;
}

.service .service-item:hover .service-icon:before {
    background: rgba(255, 255, 255, 0.8);
    animation-duration: 1000ms;
}

/* === LETTERA PILASTRO (se usi) === */
.service .service-icon span,

.service .pillar-letter {
    font-family: 'Crimson Pro', serif;
    font-size: 48px;
    font-weight: 700;
    color: var(--oro-miele);

    /* #D4A574 - oro per lettere G.U.S.T.O. */
    z-index: 1;
    position: relative;
}

/* === TEXT === */
.service .service-item h3 {
    margin: 15px 0;
    font-size: 20px;
    font-weight: 600;
    color: var(--marrone-terra);

    /* #3D2E26 - marrone terra (era #2F2A26) */
    line-height: 1.4;
}

.service .service-item p {
    flex-grow: 1;
    margin: 0;
    font-size: 16px;
    line-height: 1.5;
    color: var(--marrone-medio);

    /* #6B5A4C - marrone medio (era #4A4A4A grigio) */
}

/* === GUSTO PASTEL SYSTEM === */
/* G - Guida interiore (ROSA) */
.service-item.gusto-g {
    background-color: var(--rosa-guida);

    /* #F6E1E6 */
    border-color: var(--rosa-guida-hover);

    /* #EFCED6 - bordo rosa scuro */
}

.service-item.gusto-g:hover {
    background-color: var(--rosa-guida-hover);

    /* #EFCED6 */
    border-color: #E1BAC4;

    /* NUOVO: ancora più scuro al hover */
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(239, 206, 214, 0.4);

    /* Ombra rosa */
}

/* U - Udire (VERDE) */
.service-item.gusto-u {
    background-color: var(--verde-udire);

    /* #E6F1EA */
    border-color: var(--verde-udire-hover);

    /* #D6E7DD - bordo verde scuro */
}

.service-item.gusto-u:hover {
    background-color: var(--verde-udire-hover);

    /* #D6E7DD */
    border-color: #C6D7CD;

    /* NUOVO: ancora più scuro al hover */
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(214, 231, 221, 0.4);

    /* Ombra verde */
}

/* S - Sperimentazione (GIALLO) */
.service-item.gusto-s {
    background-color: var(--giallo-sperim);

    /* #FBF1D6 */
    border-color: var(--giallo-sperim-hover);

    /* #F3E6BE - bordo giallo scuro */
}

.service-item.gusto-s:hover {
    background-color: var(--giallo-sperim-hover);

    /* #F3E6BE */
    border-color: #E8D8A8;

    /* NUOVO: ancora più scuro al hover */
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(243, 230, 190, 0.4);

    /* Ombra gialla */
}

/* T - Tempo (VIOLA) */
.service-item.gusto-t {
    background-color: var(--viola-tempo);

    /* #EEE6F3 */
    border-color: var(--viola-tempo-hover);

    /* #E1D6EA - bordo viola scuro */
}

.service-item.gusto-t:hover {
    background-color: var(--viola-tempo-hover);

    /* #E1D6EA */
    border-color: #D3C6DD;

    /* NUOVO: ancora più scuro al hover */
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(225, 214, 234, 0.4);

    /* Ombra viola */
}

/* O - Osservazione (AZZURRO) */
.service-item.gusto-o {
    background-color: var(--azzurro-oss);

    /* #E6F1F6 */
    border-color: var(--azzurro-oss-hover);

    /* #D6E7F0 - bordo azzurro scuro */
}

.service-item.gusto-o:hover {
    background-color: var(--azzurro-oss-hover);

    /* #D6E7F0 */
    border-color: #C6D7E0;

    /* NUOVO: ancora più scuro al hover */
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(214, 231, 240, 0.4);

    /* Ombra azzurra */
}

/* === ANIMATION === */
@keyframes pulse-border {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.8;
    }

    100% {
        transform: translate(-50%, -50%) scale(1.6);
        opacity: 0;
    }
}

/* ========================= */
/* FLIP CARD SYSTEM */
/* ========================= */
/* Flip Card Container */
.flip-card {
    background-color: transparent;
    perspective: 1000px;
    height: 100%;
    min-height: 400px;
    cursor: pointer;
}

.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.8s;
    transform-style: preserve-3d;
}

.flip-card.flipped .flip-card-inner {
    transform: rotateY(180deg);
}

.flip-card-front,

.flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 1rem;
}

.flip-card-front {
    display: block;
}

.flip-card-back {
    transform: rotateY(180deg);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border: 1px solid;
}

/* Indicatore di flip */
.flip-indicator {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--terracotta-cotto);
    box-shadow: 0 2px 8px;
    z-index: 10;
    transition: transform 0.3s;
}

.flip-card:hover .flip-indicator {
    transform: scale(1.1);
}

.flip-card.flipped .flip-indicator {
    transform: rotateY(180deg);
}

/* Retro card styling */
.flip-card-back h4 {
    font-size: 1.1rem;
    font-weight: bold;
    margin-bottom: 0.75rem;
    color: var(--marrone-terra);
}

.flip-card-back p {
    font-size: 1.25rem;
    line-height: 1.4;
    margin-bottom: 0.75rem;
    color: var(--marrone-medio);
}

.flip-card-back ul {
    text-align: left;
    list-style: none;
    padding-left: 0;
    margin-bottom: 1rem;
}

.flip-card-back ul li {
    color: var(--marrone-medio);
    position: relative;
    padding: 0.3rem 0 0.3rem 1.25rem;
    font-size: 0.8rem;
    line-height: 1.3;
}

.flip-card-back ul li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--marrone-terra);
    font-weight: bold;
    font-size: 0.9rem;
}

.back-link {
    display: inline-block;
    margin-top: 0.75rem;
    padding: 0.6rem 1.25rem;
    background-color: var(--marrone-medio);
    color: var(--bianco-naturale);
    border-radius: 2rem;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s;
    border: 2px solid var(--marrone-terra);
    font-size: 0.85rem;
}

.back-link:hover {
    background-color: var(--bg-sito-chiaro);
    color: var(--marrone-terra);
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Retro colors - colori e bordi esattamente come hover originali */
.gusto-g .flip-card-back {
    background-color: var(--rosa-guida-hover);

    /* #EFCED6 */
    border-color: #E1BAC4;
}

.gusto-u .flip-card-back {
    background-color: var(--verde-udire-hover);

    /* #D6E7DD */
    border-color: #C6D7CD;
}

.gusto-s .flip-card-back {
    background-color: var(--giallo-sperim-hover);

    /* #F3E6BE */
    border-color: #E8D8A8;
}

.gusto-t .flip-card-back {
    background-color: var(--viola-tempo-hover);

    /* #E1D6EA */
    border-color: #D3C6DD;
}

.gusto-o .flip-card-back {
    background-color: var(--azzurro-oss-hover);

    /* #D6E7F0 */
    border-color: #C6D7E0;
}

/* ========================= */
/* SCHEDE INTERATTIVE - GUIDA */
/* ========================= */

.guida-box {
    background-color: var(--rosa-guida);
    /* #F6E1E6 */
    border: 2px solid var(--rosa-guida-hover);
    /* #EFCED6 */
}

.quiz-btn {
    display: block;
    width: 100%;
    border: 2px solid var(--iuta-scuro);
    /* #E3DCD0 */
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    background-color: white;
    margin-bottom: 0.75rem;
    transition: all 0.3s;
    color: var(--marrone-terra);
    text-align: left;
}

.quiz-btn:hover {
    background-color: var(--rosa-guida-hover);
    /* #EFCED6 */
    border-color: #E1BAC4;
    /* Bordo più scuro */
    transform: translateY(-2px);
}

#guidaWheel {
    max-width: 280px;
    margin: 0 auto;
    display: block;
}

.wheel-pointer {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 12px solid transparent;
    border-right: 12px solid transparent;
    border-bottom: 20px solid var(--oro-miele);
    /* #D4A574 */
}

/* ========================= */
/* SCHEDE INTERATTIVE - 7FAME (U - Udire) */
/* ========================= */

.fame-box {
    background-color: var(--verde-udire);
    /* #E6F1EA */
    border: 2px solid var(--verde-udire-hover);
    /* #D6E7DD */
}

.chart-container {
    position: relative;
    width: 100%;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    height: 300px;
    max-height: 400px;
}

@media (min-width: 768px) {
    .chart-container {
        height: 350px;
    }
}

.chart-wrapper {
    position: relative;
    margin: auto;
    height: 40vh;
    max-height: 400px;
    width: 100%;
    max-width: 600px;
}

.custom-scrollbar::-webkit-scrollbar {
    width: 8px;
}

.custom-scrollbar::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
    background: #d6d3d1;
    border-radius: 4px;
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background: #a8a29e;
}

.animate-pop {
    animation: pop 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes pop {
    0% {
        transform: scale(0.5);
        opacity: 0;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.animate-fade-in {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.flow-step {
    background-color: white;
    padding: 1.5rem;
    border-radius: 1rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.tool-card {
    background-color: var(--verde-udire);
    padding: 1.5rem;
    border-radius: 1rem;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.quiz-modal {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    overflow-y: auto;
}

.quiz-modal-content {
    background-color: white;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    width: 100%;
    max-width: 700px;
    max-height: 90vh;
    overflow-y: auto;
}

.quiz-progress-bar {
    width: 100%;
    height: 8px;
    background-color: var(--iuta-chiaro);
    border-radius: 1rem;
    overflow: hidden;
}

.quiz-progress-fill {
    height: 100%;
    background-color: var(--terracotta-cotto);
    transition: width 0.3s ease;
}

.quiz-answer-btn {
    width: 100%;
    text-align: left;
    padding: 1rem;
    border-radius: 0.75rem;
    border: 2px solid transparent;
    background-color: var(--verde-udire);
    transition: all 0.3s;
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--marrone-terra);
    margin-bottom: 0.75rem;
}

.quiz-answer-btn:hover {
    background-color: white;
    border-color: var(--terracotta-cotto);
}

.day-cell {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0.75rem;
    border-radius: 0.75rem;
    cursor: pointer;
    transition: all 0.3s;
}

.day-cell.has-data {
    background-color: white;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--verde-muschio);
}

.day-cell.no-data {
    background-color: var(--verde-udire);
    border: 1px solid transparent;
}

.day-cell.no-data:hover {
    background-color: white;
}

.icon-modal {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

.icon-modal-content {
    background-color: white;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    max-width: 400px;
    width: 100%;
    text-align: center;
}

.icon-btn {
    font-size: 2.5rem;
    padding: 0.75rem;
    border-radius: 0.75rem;
    background-color: transparent;
    border: none;
    transition: background-color 0.3s;
    cursor: pointer;
}

.icon-btn:hover {
    background-color: var(--verde-udire);
}

.scenario-option-btn {
    text-align: left;
    padding: 0.75rem;
    border-radius: 0.5rem;
    border: 1px solid #e5e7eb;
    background-color: white;
    transition: background-color 0.3s;
    font-weight: bold;
    color: var(--marrone-terra);
    margin-bottom: 0.5rem;
    width: 100%;
}

.scenario-option-btn:hover {
    background-color: var(--verde-udire);
}

.scenario-option-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* ===================================
   SPERIMENTAZIONE.HTML STYLES
   =================================== */

.chart-container {
    position: relative;
    width: 100%;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    height: 300px;
    max-height: 400px;
}

@media (min-width: 768px) {
    .chart-container {
        height: 350px;
    }
}

.filter-btn {
    cursor: pointer;
    transition: all 0.3s;
}

.filter-btn.active {
    background-color: var(--terracotta) !important;
    color: white !important;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border-color: var(--terracotta) !important;
}

.ingredient-card {
    background-color: white;
    border-radius: 0.75rem;
    padding: 1.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--verde-muschio);
    transition: box-shadow 0.3s;
}

.ingredient-card:hover {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.15);
}

.recipe-item {
    cursor: pointer;
    transition: all 0.3s;
}

.recipe-item.active {
    background-color: var(--beige-caldo) !important;
    border-color: var(--terracotta) !important;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.15) !important;
}

/* Recipe detail container: rimossa height fissa, aggiunta min-height per flessibilità */
.recipe-detail-container {
    min-height: 500px;
    max-height: 700px;
    overflow-y: auto;
    text-align: left !important;
    /* Override del text-center nel placeholder */
}

/* Quando il container ha contenuto, rimuovi allineamento centrato */
.recipe-detail-container:not(:empty) {
    display: block !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
}

.recipe-list-container {
    height: 500px;
    overflow-y: auto;
    padding-right: 0.5rem;
}

/* Fix per layout ingredienti e preparazione su schermi piccoli */
@media (max-width: 767px) {
    .recipe-detail-container {
        min-height: 400px;
        max-height: none;
        /* Rimuovi max-height su mobile */
    }

    .recipe-list-container {
        height: auto;
        max-height: 300px;
        margin-bottom: 1rem;
    }
}

/* Miglioramento leggibilità checkbox ingredienti */
.recipe-detail-container input[type="checkbox"] {
    flex-shrink: 0;
    /* Impedisce al checkbox di ridursi */
    margin-right: 0.75rem;
    cursor: pointer;
}

/* Migliora spaziatura liste ingredienti */
.recipe-detail-container ul li {
    line-height: 1.6;
    font-size: 0.95rem;
}

/* Migliora spaziatura liste preparazione */
.recipe-detail-container ol li {
    line-height: 1.6;
    margin-bottom: 1rem;
}

/* Fix per row all'interno del container */
.recipe-detail-container .row {
    margin-left: 0;
    margin-right: 0;
    width: 100%;
}

.section-intro {
    background-color: #FBF3D5;
    border: 1px solid #E8D8A8;
    border-radius: 0.75rem;
    padding: 1.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.data-box {
    background-color: #FFF8E7;
    border-radius: 1rem;
    padding: 1rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border: 1px solid #E8D8A8;
}

.info-card {
    background-color: #FBF3D5;
    border-radius: 0.75rem;
    padding: 1.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid #F3E6BE;
}

.macro-section {
    background-color: var(--verde-scuro);
    color: white;
    border-radius: 1.5rem;
    padding: 3rem;
}

.recipe-detail-box {
    background-color: white;
    border-radius: 1rem;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    border: 4px solid var(--terracotta);
    overflow: hidden;
}

.mobile-nav-btn {
    background-color: white;
    border: 2px solid var(--verde-muschio);
    color: var(--marrone-terra);
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    margin-bottom: 0.5rem;
    width: 100%;
    text-align: left;
    transition: all 0.3s;
}

.mobile-nav-btn:hover {
    background-color: var(--beige-caldo);
    border-color: var(--oro);
}

.tag-badge {
    background-color: var(--verde-muschio);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 1rem;
    font-size: 0.75rem;
    display: inline-block;
    margin-right: 0.25rem;
}

/* ===================================
   TEMPO.HTML STYLES
   =================================== */

.card-hover {
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    border-left: 5px solid var(--verde-muschio);
}

.card-hover:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
    border-left: 5px solid var(--oro);
}

.ctx-btn {
    transition: all 0.3s ease;
    border: 2px solid var(--verde-muschio);
    color: var(--marrone-terra);
    background-color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 2rem;
    font-weight: 600;
    cursor: pointer;
}

.ctx-btn:hover {
    border-color: var(--oro);
    background-color: var(--beige-caldo);
}

.active-ctx {
    border-color: var(--terracotta);
    color: white;
    background-color: var(--verde-muschio);
}

/* Stile pulsanti specifico per pagina tempo.html (viola) - MASSIMA PRIORITÀ */
body.tempo #tempo-rubato .ctx-btn,
body.tempo button.ctx-btn,
body.tempo .ctx-btn {
    border: 2px solid #D3C6DD !important;
    color: #7A6888 !important;
    background-color: white !important;
    font-weight: 600 !important;
    transition: all 0.3s ease !important;
}

body.tempo #tempo-rubato .ctx-btn:hover,
body.tempo button.ctx-btn:hover,
body.tempo .ctx-btn:hover {
    border-color: #B8A8C9 !important;
    background-color: #F4EFF7 !important;
    color: #7A6888 !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(155, 135, 176, 0.2) !important;
}

body.tempo #tempo-rubato .ctx-btn.active-ctx,
body.tempo button.ctx-btn.active-ctx,
body.tempo .ctx-btn.active-ctx {
    border-color: #9B87B0 !important;
    color: white !important;
    background-color: #9B87B0 !important;
    font-weight: 700 !important;
    box-shadow: 0 4px 12px rgba(155, 135, 176, 0.4) !important;
}

/* Responsive per pagina tempo.html */
@media (max-width: 768px) {
    body.tempo .ctx-btn {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
        white-space: nowrap;
    }

    /* Assicura che le card degli esercizi siano visibili */
    #esercizi-area {
        margin-top: 2rem !important;
    }

    #esercizi-area .col-md-6 {
        margin-bottom: 1rem;
    }

    /* Pulsanti tempo e contesto più compatti */
    #tempo-rubato .d-flex {
        gap: 0.5rem !important;
    }

    /* Card esercizi più leggibili su mobile */
    #esercizi-area .shadow-lg {
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
    }

    /* Numeri risultato simulatore più piccoli su mobile */
    .result-box .display-4 {
        font-size: 2.5rem !important;
    }

    /* Box introduzione con border-radius ridotto su mobile */
    #tempo-rubato .rounded,
    #tempo-rubato .shadow {
        border-radius: 12px !important;
        padding: 1.5rem !important;
    }

    /* Emoji più piccolo su mobile */
    .result-box #impact-emoji {
        font-size: 2.5rem !important;
    }

    /* Filosofia box - meno arrotondato e più padding su mobile */
    .filosofia-box {
        border-radius: 20px !important;
        padding: 1.5rem !important;
        max-width: 95% !important;
        width: 100% !important;
    }

    .filosofia-box p {
        font-size: 1rem !important;
    }

    .filosofia-box ul {
        font-size: 0.85rem !important;
        padding-left: 1.2rem !important;
    }

    .filosofia-box li {
        margin-bottom: 0.5rem;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.5s ease forwards;
}

.calculator-section {
    background-color: #EFE6F3;
    color: var(--marrone-terra);
    border-radius: 1.5rem;
    padding: 3rem 1.5rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    border: 3px solid #D3C6DD;
}

.result-box {
    background-color: #E1D6EA;
    backdrop-filter: blur(10px);
    border-radius: 1rem;
    padding: 2rem 2.5rem;
    border: 1px solid #D3C6DD;
}

@media (max-width: 768px) {
    .result-box {
        padding: 1.5rem 2rem !important;
    }
}

/* ===================================
   OSSERVA.HTML STYLES
   =================================== */

body.osserva .chart-container {
    position: relative;
    width: 100%;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    height: 450px;
    max-height: 500px;
}

@media (max-width: 640px) {
    body.osserva .chart-container {
        height: 350px;
    }
}

.signal-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 8px;
    background: #e5e7eb;
    border-radius: 5px;
    outline: none;
}

.signal-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--terracotta);
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    transition: transform 0.1s;
}

.signal-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

.signal-slider::-moz-range-thumb {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--terracotta);
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    transition: transform 0.1s;
}

.e-btn {
    cursor: pointer;
    transition: all 0.3s;
}

.e-btn.selected {
    box-shadow: 0 0 0 2px var(--terracotta);
}

.intro-highlight {
    background-color: #E6F1F8;
    border: 1px solid #C6D7E0;
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.slider-box {
    background-color: #E6F1F8;
    border: 1px solid #C6D7E0;
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05) inset;
    max-height: 500px;
    overflow-y: auto;
}

.chart-box {
    background-color: white;
    border-radius: 1.5rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    padding: 1rem;
    border: 1px solid #e5e7eb;
    position: relative;
    overflow: hidden;
}

.chart-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(to right, var(--terracotta), var(--oro), var(--verde-muschio));
}

.jeans-test-box {
    background-color: white;
    border-radius: 1.5rem;
    padding: 2rem;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(198, 215, 224, 0.3);
}

.victory-section {
    background-color: #D6E7F0;
    color: var(--marrone-terra);
    border-radius: 1.5rem;
    padding: 3rem 1.5rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    border: 3px solid #C6D7E0;
    position: relative;
    overflow: hidden;
}

.victory-section h2,
.victory-section h3 {
    color: var(--marrone-terra);
}

.victory-section p {
    color: var(--marrone-medio);
}

.victory-section label {
    color: var(--marrone-terra) !important;
}

.form-control-dark {
    background-color: rgba(214, 231, 240, 0.6);
    border: 1px solid #C6D7E0;
    color: var(--marrone-terra);
}

.form-control-dark:focus {
    background-color: rgba(214, 231, 240, 0.8);
    border-color: #C6D7E0;
    color: var(--marrone-terra);
}

.form-control-dark option {
    background-color: #D6E7F0;
    color: var(--marrone-terra);
}

.generated-card {
    background: linear-gradient(135deg, #E6F1F8 0%, #fff 100%);
    border-left: 8px solid var(--terracotta);
}

/* === BOTTONE SOFT METHOD - STANDARDIZZATO === */
.btn-soft-method {
    display: inline-block;
    padding: 12px 28px;

    /* Era 12px 28px, standardizzo */
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 0.2px;
    color: var(--verde-muschio);

    /* #5C7560 - verde muschio (era #3F5B4A) */
    background-color: transparent;

    /* #F5F1EA - iuta chiaro (era #F7F3EE) */
    border: 1px solid rgba(61, 46, 38, 0.3);

    /* NUOVO: bordo per definizione */
    border-radius: 30px;

    /* Era 999px, standardizzo */
    text-decoration: none;
    transition: color 0.2s ease, border-color 0.2s ease;
    cursor: pointer;
}

.btn-soft-method:hover {
    color: var(--verde-muschio);

    /* #C17557 - terracotta (era #C86A4A) */
    background-color: var(--bg-sito);

    /* #E3DCD0 - iuta scuro (era #EDE7E0) */
    border-color: var(--verde-muschio);

    /* NUOVO: bordo terracotta hover */
    transform: none;

    /* NUOVO: lift */
    box-shadow: none;

    /* NUOVO: ombra */
    text-decoration: none;
}

/* ========================= */
/* METODO PAGE OVERRIDES */
/* ========================= */
/* PAGINA METODO DEDICATA */
/* ========================= */
/* NOTA: Background e page-header gestiti dalle classi unificate sopra */
/* Sezione Service dentro la pagina metodo con sfondo trasparente */
body.metodo .service {
    background-color: transparent;
    padding-top: 60px;
}

/* ========================= */
/* METODO – SECTION HEADER */
/* ========================= */
body.metodo .section-header h2 {
    color: var(--marrone-terra);

    /* #3D2E26 - marrone terra (era #2F2A26) */
    font-weight: 600;
}

body.metodo .service .section-header p {
    color: var(--marrone-medio);

    /* #9B8A7A - marrone chiaro (era #6F6F6F grigio) */
    font-size: 17px;
    letter-spacing: 0.6px;
    margin-bottom: 10px;
    font-weight: 400;

    /* Aggiungo per dare presenza */
}

body.metodo .service .section-header h2 {
    color: var(--marrone-terra);

    /* #3D2E26 - marrone terra (era #2F2A26) */
    font-size: 34px;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 14px;
}

body.metodo .service .section-subtitle {
    color: var(--marrone-medio);

    /* #6B5A4C - marrone medio (era #5E5E5E grigio) */
    font-size: 17px;
    line-height: 1.6;
    max-width: 640px;
    margin: 0 auto;
}

/* ========================= */
/* METODO – CTA FINALE */
/* ========================= */
body.metodo .metodo-cta {
    padding: 80px 20px 60px;
    text-align: center;

    /* Aggiungo per centrare */
}

body.metodo .metodo-cta p {
    color: var(--marrone-medio);

    /* #6B5A4C - marrone medio (era #5E5E5E grigio) */
    font-size: 17px;
    max-width: 640px;
    margin: 0 auto 25px;
    line-height: 1.6;
}

/* Bottone CTA finale - STANDARDIZZATO */
body.metodo .btn-metodo-final {
    display: inline-block;
    padding: 14px 32px;

    /* Era 14px 34px, standardizzo */
    font-size: 16px;

    /* Aggiungo esplicito */
    font-weight: 600;
    letter-spacing: 0.5px;

    /* Era 0.4px, standardizzo */
    color: var(--bianco-naturale);
    background-color: var(--terracotta-cotto);

    /* #C17557 - terracotta (era #C86A4A) */
    border: 2px solid var(--terracotta-cotto);

    /* Aggiungo bordo */
    border-radius: 30px;

    /* Era 999px, standardizzo */
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(193, 117, 87, 0.25);

    /* Aggiungo ombra */
}

body.metodo .btn-metodo-final:hover {
    color: var(--bianco-naturale);

    /* #FDFBF7 - bianco */
    background-color: var(--terracotta-scuro);

    /* #A85E41 - terracotta scuro (era #B75E42) */
    border-color: var(--terracotta-scuro);
    transform: translateY(-2px);

    /* Aggiungo lift */
    box-shadow: 0 6px 20px rgba(193, 117, 87, 0.35);

    /* Ombra hover */
    text-decoration: none;
}

/* ========================= */
/* SERVICE MOBILE */
/* ========================= */
@media (max-width: 767.98px) {
    .service {
        padding-top: 50px;
    }

    /* Regole generali per la griglia su mobile */
    .service .service-item {
        margin-bottom: 30px;

        /* Spazio tra i box */
        height: auto;

        /* Altezza naturale, non forzata */
    }

    .service .section-header {
        margin-bottom: 50px;
    }

    .service .section-subtitle {
        margin-bottom: 35px;
    }

    /* Regole specifiche per sezione Service dentro pagina Metodo (mobile) */
    body.metodo .service {
        padding-top: 30px;
        padding-left: 15px;
        padding-right: 15px;
    }

    body.metodo .service .service-item {
        max-width: 100%;

        /* Usa tutta la larghezza disponibile */
        margin: 0 auto 30px;
        padding: 24px 20px;
    }

    body.metodo .service .service-item h3 {
        font-size: 18px;
    }

    body.metodo .service .service-item p {
        font-size: 15px;
        line-height: 1.6;
    }

    body.metodo .service .section-subtitle {
        font-size: 15px;
        padding: 400;
    }
}

/* ***************************** */
/* ********* Regali CSS ********* */
/* ***************************** */
/* Secondo blocco :root eliminato - variabili unificate nel blocco principale sopra */
.class {
    position: relative;
    padding: 120px 0;
    background-color: var(--bg-sito);
    margin-top: 0;
}

.class-container {
    padding-top: 10px;
}

.class #class-filter {
    padding: 0;
    margin: 0 0 25px;
    list-style: none;
    text-align: center;
}

.class #class-filter li {
    cursor: pointer;
    display: inline-block;
    margin: 5px;
    padding: 6px 12px;
    color: var(--verde-muschio);
    border: 2px solid transparent;
    font-size: 14px;
    font-weight: 600;
    border-radius: 20px;
    min-height: 36px;
    line-height: 24px;
    background: var(--bianco-naturale);
    transition: all 0.3s ease;
}

/* ========================================= */
/* FILTRI COLORATI - Hover e Attivo */
/* ========================================= */
/* G - Guida (Rosa) */
#class-filter li[data-filter=".filter-g"]:hover {
    background: var(--rosa-guida);
    border-color: var(--rosa-guida-hover);
    color: var(--rosa-guida-text);
}

#class-filter li[data-filter=".filter-g"].filter-active {
    background: var(--rosa-guida-hover);
    border-color: #E1BAC4;
    color: var(--rosa-guida-text);
}

/* U - Udire (Verde) */
#class-filter li[data-filter=".filter-u"]:hover {
    background: var(--verde-udire);
    border-color: var(--verde-udire-hover);
    color: var(--verde-udire-text);
}

#class-filter li[data-filter=".filter-u"].filter-active {
    background: var(--verde-udire-hover);
    border-color: #C6D7CD;
    color: var(--verde-udire-text);
}

/* S - Sperimentare (Giallo) */
#class-filter li[data-filter=".filter-s"]:hover {
    background: var(--giallo-sperim);
    border-color: var(--giallo-sperim-hover);
    color: var(--giallo-sperim-text);
}

#class-filter li[data-filter=".filter-s"].filter-active {
    background: var(--giallo-sperim-hover);
    border-color: #E8D8A8;
    color: var(--giallo-sperim-text);
}

/* T - Tempo (Viola) */
#class-filter li[data-filter=".filter-t"]:hover {
    background: var(--viola-tempo);
    border-color: var(--viola-tempo-hover);
    color: var(--viola-tempo-text);
}

#class-filter li[data-filter=".filter-t"].filter-active {
    background: var(--viola-tempo-hover);
    border-color: #D3C6DD;
    color: var(--viola-tempo-text);
}

/* O - Osservare (Azzurro) */
#class-filter li[data-filter=".filter-o"]:hover {
    background: var(--azzurro-oss);
    border-color: var(--azzurro-oss-hover);
    color: var(--azzurro-oss-text);
}

#class-filter li[data-filter=".filter-o"].filter-active {
    background: var(--azzurro-oss-hover);
    border-color: #C6D7E0;
    color: var(--azzurro-oss-text);
}

/* Ebook (Beige) */
#class-filter li[data-filter=".filter-ebook"]:hover {
    background: var(--gusto-ebook);
    border-color: var(--gusto-ebook-hover);
    color: var(--gusto-ebook-text);
}

#class-filter li[data-filter=".filter-ebook"].filter-active {
    background: var(--gusto-ebook-hover);
    border-color: #D4CCBF;
    color: var(--gusto-ebook-text);
}

.class .class-item {
    position: relative;
    margin-bottom: 30px;
    transition: all 0.3s ease;

    /* ← CAMBIATO da .3s */
}

/* AGGIUNGI QUESTO se non c'è */
.class .class-item.isotope-item {
    position: relative;
    display: flex;
}

.class .class-wrap {
    position: relative;
    width: 100%;
    border-radius: 12px;

    /* ← NUOVO: arrotonda card */
    overflow: hidden;

    /* ← NUOVO: taglia bordi immagine */
    box-shadow: 0 2px 8px rgba(61, 46, 38, 0.08);

    /* ← NUOVO: ombra leggera */
    transition: all 0.3s ease;

    /* ← NUOVO */
}

.class .class-wrap:hover {
    transform: translateY(-4px);

    /* ← NUOVO: solleva al hover */
    box-shadow: 0 8px 24px rgba(61, 46, 38, 0.12);

    /* ← NUOVO: ombra più forte */
}

.class .class-img {
    position: relative;
}

.class .class-img img {
    position: relative;
    width: 100%;
    height: auto;
    -o-object-fit: cover;
    object-fit: cover;
}

.class .class-text {
    padding: 30px 20px 25px;
}

.class .class-text h2 {
    font-size: 18px;
    font-weight: 600;
    color: var(--marrone-terra);

    /* ← NUOVO: #3D2E26 */
    margin-bottom: 10px;
    line-height: 1.4;

    /* ← NUOVO: respiro tra righe */
}

.class .class-teacher {
    position: relative;
    height: 50px;
    margin-top: -55px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    background: var(--bianco-naturale);
    box-shadow: 0 0 10px rgba(61, 46, 38, 0.1);

    /* ← CAMBIATO da rgba(0,0,0,.1) */
    border-radius: 25px;
}

.class .class-teacher img {
    width: 50px;
    height: 50px;
    border-radius: 25px;
    background: var(--iuta-chiaro);

    /* ← CAMBIATO da #eeebe2 */
}

.class .class-teacher h3 {
    flex: 1;
    font-size: 15px;
    font-weight: 600;
    color: var(--marrone-terra);

    /* ← NUOVO: #3D2E26 */
    margin: 0 0 0 15px;
    padding-right: 55px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    position: relative;

    /* ← NUOVO */
    padding-bottom: 6px;

    /* ← NUOVO */
}

.class .class-teacher a {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 50px;
    height: 50px;
    padding: 0 0 3px 1px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    font-weight: 100;
    color: var(--verde-muschio);

    /* ← CAMBIATO da #3F5B4A */
    background: var(--iuta-chiaro);

    /* ← CAMBIATO da #EFEAE4 */
    border-radius: 25px;
    transition: all 0.3s ease;

    /* ← CAMBIATO da .3s */
}

/* Hover bottone + coordinato al pilastro */
.class-item.filter-g .class-wrap:hover .class-teacher a {
    background: var(--rosa-guida-hover);

    /* #EFCED6 - rosa hover */
    color: var(--rosa-guida-text);

    /* ← CAMBIATO da #3F5B4A a #8B5A68 marrone rosato */
}

.class-item.filter-u .class-wrap:hover .class-teacher a {
    background: var(--verde-udire-hover);

    /* #D6E7DD - verde hover */
    color: var(--verde-udire-text);

    /* ← CAMBIATO da #3F5B4A a #5C7560 verde muschio */
}

.class-item.filter-s .class-wrap:hover .class-teacher a {
    background: var(--giallo-sperim-hover);

    /* #F3E6BE - giallo hover */
    color: var(--giallo-sperim-text);

    /* ← CAMBIATO da #3F5B4A a #8B7548 marrone dorato */
}

.class-item.filter-t .class-wrap:hover .class-teacher a {
    background: var(--viola-tempo-hover);

    /* #E1D6EA - viola hover */
    color: var(--viola-tempo-text);

    /* ← CAMBIATO da #3F5B4A a #7A6888 marrone violaceo */
}

.class-item.filter-o .class-wrap:hover .class-teacher a {
    background: var(--azzurro-oss-hover);

    /* #D6E7F0 - azzurro hover */
    color: var(--azzurro-oss-text);

    /* ← CAMBIATO da #3F5B4A a #5C7A88 marrone azzurrato */
}

.class-item.filter-ebook .class-wrap:hover .class-teacher a {
    background: var(--iuta-scuro);

    /* ← CAMBIATO da gusto-ebook-hover */
    color: var(--gusto-ebook-text);

    /* #6B5A4C - marrone medio (già corretto) */
}

.class-item .class-teacher h3 {
    position: relative;
    padding-bottom: 6px;
}

.class .class-meta {
    position: relative;
    display: flex;
    align-items: center;
}

.class .class-meta p {
    margin: 0;
    font-size: 14px;
    color: var(--marrone-medio);

    /* ← NUOVO: #6B5A4C */
}

.class .class-meta p i {
    margin-right: 5px;
    color: var(--marrone-chiaro);

    /* ← CAMBIATO da #3F5B4A a #9B8A7A */
}

.class .class-meta p:first-child {
    margin-right: 10px;
}

/* ========================= */
/* BADGE PILASTRI – COORDINATI */
/* ========================= */
.class-item.filter-g .badge {
    background: var(--rosa-guida-hover);

    /* #EFCED6 - rosa scuro */
    color: var(--rosa-guida-text);

    /* #8B5A68 - marrone rosato ✅ già aggiornato */
}

.class-item.filter-u .badge {
    background: var(--verde-udire-hover);

    /* #D6E7DD - verde scuro */
    color: var(--verde-udire-text);

    /* #5C7560 - verde muschio ✅ già aggiornato */
}

.class-item.filter-s .badge {
    background: var(--giallo-sperim-hover);

    /* #F3E6BE - giallo scuro */
    color: var(--giallo-sperim-text);

    /* #8B7548 - marrone dorato ✅ già aggiornato */
}

.class-item.filter-t .badge {
    background: var(--viola-tempo-hover);

    /* #E1D6EA - viola scuro */
    color: var(--viola-tempo-text);

    /* #7A6888 - marrone violaceo ✅ già aggiornato */
}

.class-item.filter-o .badge {
    background: var(--azzurro-oss-hover);

    /* #D6E7F0 - azzurro scuro */
    color: var(--azzurro-oss-text);

    /* #5C7A88 - marrone azzurrato ✅ già aggiornato */
}

.class-item.filter-ebook .badge {
    background: var(--gusto-ebook-hover);

    /* #E4DDD5 - beige scuro */
    color: var(--gusto-ebook-text);

    /* #6B5A4C - marrone medio ✅ già aggiornato */
}

/* Stile base badge */
.badge {
    border-radius: 30px;

    /* ← CAMBIATO da 999px per coerenza */
    font-weight: 600;
    font-size: 12px;
    padding: 5px 12px;
    display: inline-block;

    /* ← NUOVO */
    /* RIMUOVO color: #3F5B4A perché ogni pilastro ha il suo */
}

/* Badge ebook speciale (angolo alto dx) */
.class-item.filter-ebook .badge-ebook {
    background-color: var(--terracotta-cotto);

    /* ← CAMBIATO da #d3756b a #C17557 */
    color: var(--bianco-naturale);
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 5px 10px;
    border-radius: 30px;

    /* ← CAMBIATO da 999px per coerenza */
    font-size: 12px;
    font-weight: 600;

    /* ← CAMBIATO da 500 a 600 per coerenza */
}

/* ========================= */
/* FILTRI – STATO ATTIVO */
/* ========================= */
/* Base attivo (comune a tutti) */
/* Stili comuni per filtri attivi */
#class-filter li.filter-active {
    font-weight: 700;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* NOTA: Colori specifici per hover e attivo sono definiti sopra (linee 1486-1556) */
/* ========================= */
/* REGALI – HOME VERSION */
/* ========================= */
.class-home {
    background-color: var(--bg-sito);

    /* stesso colore About */
    /* respiro sopra e sotto */
    position: relative;
    overflow: hidden;

    /* ↓ da ~90 */
    padding: 60px 0 80px;
}

.class-home .section-header {
    margin-top: 0;
    margin-bottom: 35px;
}

.class-home .section-header p {
    color: var(--verde-muschio);
    font-size: 17px;
    font-weight: 500;
    letter-spacing: 0.4px;
    margin-bottom: 8px;
}

.class-home .section-header h2 {
    color: var(--marrone-terra);
    font-size: 36px;
    line-height: 1.3;
    margin-bottom: 0;

    /* ← CAMBIATO da #3F5B4A a #3D2E26 */
}

.class-home .class-intro {
    font-size: 17px;
    line-height: 1.75;
    color: var(--marrone-medio);

    /* ← CAMBIATO da #4A4A4A a #6B5A4C */
    margin-bottom: 25px;
    text-align: left;
}

.class-home .class-list {
    font-size: 16px;
    line-height: 1.7;
    list-style: none;
    color: var(--marrone-medio);
    margin-bottom: 35px;
    padding: 0;
    text-align: left;
}

.class-home .class-list li {
    margin-bottom: 10px;
    font-size: 16px;
    color: var(--marrone-medio);

    /* ← CAMBIATO da #5E5E5E a #6B5A4C */
}

.class-home .class-list li::before {
    content: "– ";
    color: var(--oro-miele);

    /* ← CAMBIATO da #C9A961 a #D4A574 */
}

/* Bottone home - STANDARDIZZATO */
.class-home .btn-gusto {
    display: inline-block;

    /* ← NUOVO */
    padding: 14px 32px;

    /* ← CAMBIATO da 14px 34px */
    font-size: 16px;

    /* ← NUOVO: esplicito */
    font-weight: 600;
    letter-spacing: 0.4px;

    /* ← NUOVO */
    color: var(--bianco-naturale);
    background-color: var(--terracotta-cotto);

    /* ← CAMBIATO da #C86A4A a #C17557 */
    border: 2px solid var(--terracotta-cotto);

    /* ← NUOVO */
    border-radius: 30px;

    /* ← CAMBIATO da 999px */
    text-decoration: none;

    /* ← NUOVO */
    transition: background-color 0.25s ease, box-shadow 0.25s ease;

    /* ← NUOVO */
    cursor: pointer;

    /* ← NUOVO */
    box-shadow: 0 3px 8px rgba(193, 117, 87, 0.22);

    /* ← CAMBIATO rgba */
}

.class-home .btn-gusto:hover {
    color: var(--bianco-naturale);

    /* ← NUOVO: esplicito */
    background-color: var(--terracotta-scuro);

    /* ← CAMBIATO da #B75E42 a #A85E41 */
    border-color: var(--terracotta-scuro);

    /* ← NUOVO */
    transform: none;

    /* ← CAMBIATO da -1px */
    box-shadow: 0 5px 14px rgba(193, 117, 87, 0.28);

    /* ← CAMBIATO rgba */
    text-decoration: none;

    /* ← NUOVO */
}

/* ========================================= */
/* PAGINA REGALI DEDICATA */
/* ========================================= */
/* NOTA: Background e page-header gestiti dalle classi unificate sopra */
/* ========================= */
/* REGALI – FIX APERTURA CARD */
/* ========================= */
.class-item.is-open {
    z-index: 2;
}

.class-item.is-open .class-text {
    overflow: visible;
}

.class-item.is-open .ebook-access {
    position: relative;
    margin-top: 15px;
    padding: 15px;
    background: var(--iuta-chiaro);

    /* ← CAMBIATO da #fdfbf7 a #F5F1EA */
    border-radius: 12px;
    box-shadow: 0 12px 30px rgba(61, 46, 38, 0.12);

    /* ← CAMBIATO da rgba(0,0,0,0.12) */
}

/* ========================= */
/* RESPONSIVE REGALI/CLASS */
/* ========================= */
@media (max-width: 767.98px) {
    .class {
        padding: 30px 0 10px;

        /* ← NUOVO: ridotto su tablet */
    }

    .class #class-filter li {
        margin: 4px;

        /* ← NUOVO: più compatti */
        padding: 5px 10px;

        /* ← NUOVO: più piccoli */
        font-size: 13px;

        /* ← NUOVO */
    }

    .class-home {
        padding: 60px 0;
    }

    .class-home .class-intro {
        font-size: 16px;
    }

    /* Card su mobile */
    .class .class-text {
        padding: 25px 20px;
    }

    .class .class-text h2 {
        font-size: 17px;

        /* ← NUOVO */
    }

    .class .class-teacher {
        margin-top: -45px;

        /* ← NUOVO: da -50px */
        margin-bottom: 15px;

        /* ← NUOVO: da 20px */
    }

    .class .class-meta p {
        font-size: 13px;

        /* ← NUOVO */
    }

    /* Mobile touch fix ebook */
    .class-item.filter-ebook .class-teacher a:active,

    .class-item.filter-ebook .class-teacher a:focus {
        background: var(--iuta-scuro);

        /* ← CAMBIATO da gusto-ebook-hover */
        color: var(--gusto-ebook-text);
    }
}

@media (max-width: 575.98px) {
    .class #class-filter li {
        margin: 3px;

        /* ← NUOVO: ancora più compatti */
        padding: 4px 8px;

        /* ← NUOVO */
        font-size: 12px;

        /* ← NUOVO */
        min-height: 32px;

        /* ← NUOVO */
        line-height: 20px;

        /* ← NUOVO */
    }

    .class .class-text {
        padding: 20px 15px 15px;

        /* ← NUOVO: minimo spazio */
    }

    .class .class-text h2 {
        font-size: 16px;

        /* ← NUOVO */
    }

    .class .class-teacher h3 {
        font-size: 14px;

        /* ← NUOVO */
    }

    .class .class-meta p {
        font-size: 12px;

        /* ← NUOVO */
    }

    .class-home .btn-gusto {
        padding: 12px 24px;

        /* ← NUOVO */
        font-size: 14px;

        /* ← NUOVO */
    }
}

/* ***************************** */
/* ******** Pricing CSS ******** */
/* ***************************** */
.discount {
    position: relative;
    margin: 0;
    padding-top: 90px;

    /* prima 140px */
    padding-bottom: 140px;

    /* Immagine di sfondo fissa (effetto parallasse) */
    /* background: linear-gradient(rgba(242, 241, 232, 0.35), rgba(242, 241, 232, 0.35)), url(../img/discount-bg.png);
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover; /* : Meglio 'cover' per riempire tutto lo sfondo senza buchi */
    /* background-color: #F2F1E8; */
    overflow: hidden;
    background: none;

    /* IMPORTANTE */
}

.discount::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom,
            rgba(242, 241, 232, 0.08),
            rgba(242, 241, 232, 0.22),
            rgba(242, 241, 232, 0.08));
    z-index: 1;
}

.discount::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(rgba(242, 241, 232, 0.35),
            rgba(242, 241, 232, 0.35)),
        url(../img/discount-bg.png);
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    background-attachment: fixed;
    z-index: 0;
}

/* contenuto sopra */
.discount>.container {
    position: relative;
    z-index: 2;
}

.discount .container {
    max-width: 750px;
    text-align: center;
    position: relative;
    z-index: 2;
}

.discount-text {
    max-width: 720px;
    margin: 0 auto;
    padding: 0;

    /* ← QUESTO È FONDAMENTALE */
    text-align: center;

    /* va bene qui */
}

.discount-text p {
    font-size: 17.5px;
    line-height: 1.75;
    color: #4a3b33;

    /* var(--marrone-medio); */
    margin-bottom: 34px;
}

.discount .section-header {
    margin-bottom: 30px;
}

.discount .section-header p {
    color: var(--verde-muschio);
    font-size: 16px;
    letter-spacing: 0.5px;
    background: transparent;
}

.discount .section-header p::after {
    display: none;
}

.discount .section-header h2 {
    color: var(--marrone-terra);
    font-weight: 600;
    font-size: 36px;
    line-height: 1.25;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
    margin-top: 0;
}

.discount .section-header h2 span {
    color: #C86A4A;
    font-size: 50px;
    font-weight: 700;
}

.discount .discount-text .btn {
    margin-top: 15px;
    padding: 14px 34px;
    font-size: 15px;
    font-weight: 600;
    color: #FFF9F4;
    background: #C86A4A;
    border-radius: 30px;
    box-shadow: 0 4px 12px rgba(200, 106, 74, 0.18);
    transition: background-color .25s ease, box-shadow .25s ease;
}

.discount .discount-text .btn:hover {
    background: #B75E42;
    box-shadow: 0 6px 16px rgba(200, 106, 74, 0.25);
    transform: none;
}

.discount-bridge {
    font-size: 16px;
    font-style: italic;
    color: rgba(61, 46, 38, 0.85);
    margin-bottom: 18px;
}

/* ========================= */
/* DISCOUNT MOBILE */
/* ========================= */
@media (max-width: 768px) {
    .discount {
        background: none;

        /* Disattiva lo sfondo fisso che crea problemi su mobile */
        position: relative;
        overflow: hidden;

        /* Un po' meno padding verticale su mobile */
        margin-bottom: 0 !important;
        padding: 60px 0 90px;

        /* o 80px se vuoi più compatto */
    }

    /* Trucco per simulare lo sfondo fisso senza bug su iOS */
    .discount::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: linear-gradient(rgba(242, 241, 232, 0.75),
                rgba(242, 241, 232, 0.75)),
            url(../img/discount-bg.png);
        background-position: center top;
        background-repeat: no-repeat;
        background-size: cover;
        transform: translateZ(0);
        will-change: transform;
        background-attachment: scroll;
        z-index: 0;
    }

    /* Assicura che il testo stia sopra lo sfondo simulato */
    .discount>* {
        position: relative;
        z-index: 1;
    }

    .discount .section-header h2 {
        font-size: 30px;
        line-height: 1.3;
    }

    .discount .section-header h2 span {
        font-size: 32px;
    }

    .discount .discount-text p {
        font-size: 15px;
        line-height: 1.6;
        padding: 0 15px;

        /* Margine di sicurezza laterale */
    }

    .discount .discount-text .btn {
        padding: 14px 28px;
        border-radius: 999px;
    }
}

/* ***************************** */
/* ******** Pricing CSS ******** */
/* ***************************** */
.price {
    position: relative;
    width: 100%;
    padding: 45px 0 15px;
}

.price .price-item {
    position: relative;
    margin-bottom: 30px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.05);

    /* Un'ombra leggera per dare profondità */
    transition: transform 0.3s;
}

/* Effetto sollevamento al passaggio del mouse (solo desktop) */
@media (min-width: 992px) {
    .price .price-item:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    }
}

.price .price-header,

.price .price-body,

.price .price-footer {
    position: relative;
    width: 100%;
    text-align: center;
    background: var(--bianco-naturale);
    overflow: hidden;
}

.price .price-header {
    padding: 30px;
    background: var(--terracotta-cotto);
    color: var(--marrone-terra);
}

.price .price-item.featured-item .price-header {
    background: var(--marrone-terra);
    color: var(--terracotta-cotto);
}

.price .price-status {
    margin-top: -30px;
    text-align: right;
}

.price .price-status span {
    position: relative;
    display: inline-block;
    height: 30px;
    right: -30px;
    padding: 7px 10px;
    text-align: center;
    color: var(--marrone-terra);
    font-size: 14px;
    line-height: 14px;
    background: var(--terracotta-cotto);
}

.price .price-title h2 {
    font-size: 25px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.price .price-prices h2 {
    font-size: 45px;
    font-weight: 700;
    margin-left: 10px;
}

.price .price-prices h2 small {
    position: absolute;
    font-size: 18px;
    font-weight: 400;
    margin-top: 9px;
    margin-left: -12px;
}

.price .price-prices h2 span {
    margin-left: 1px;
    font-size: 18px;
    font-weight: 400;
}

.price .price-item.featured-item h2 {
    color: var(--terracotta-cotto);
}

.price .price-body {
    padding: 25px 0 20px;
    border: 1px solid rgba(0, 0, 0, .07);
    border-top: none;
    border-bottom: none;

    /* Rimosso bordo doppio col header */
}

.price .price-description ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.price .price-description ul li {
    padding: 10px 7px;

    /* Un po' più di aria tra le righe */
    border-bottom: 1px solid rgba(0, 0, 0, .07);
    font-size: 15px;
    color: #555;
}

.price .price-description ul li:last-child {
    border: none;
}

.price .price-action {
    border: 1px solid rgba(0, 0, 0, .07);
    border-top: none;
}

.price .price-action a.btn {
    margin-bottom: 30px;
    padding: 12px 20px;
    color: var(--marrone-terra);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 1px;
    border-radius: 0;
    background: var(--terracotta-cotto);
    transition: .3s;
}

.price .price-action a:hover,

.price .price-item.featured-item .price-action a {
    color: var(--terracotta-cotto);
    background: var(--marrone-terra);
}

.price .price-item.featured-item .price-action a:hover {
    color: var(--marrone-terra);
    background: var(--terracotta-cotto);
}

/* ========================= */
/* MOBILE PRICING */
/* ========================= */
@media (max-width: 767.98px) {
    .price {
        padding: 30px 0;
    }

    .price .price-header {
        padding: 20px 15px;
    }

    .price .price-title h2 {
        font-size: 22px;
    }

    .price .price-prices h2 {
        font-size: 38px;

        /* Ridotto per non "urlare" troppo su mobile */
    }

    .price .price-description ul li {
        font-size: 14px;
        padding: 8px 5px;
    }

    .price .price-item {
        margin-bottom: 40px;

        /* Più spazio tra un box e l'altro quando sono impilati */
        box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);

        /* Ombra fissa su mobile */
    }

    #compra .compra-intro {
        margin-bottom: 25px;
        font-size: 1rem;
    }

    #compra .prezzo-attuale {
        font-size: 1.45rem;
    }

    #compra .libro-caption {
        font-size: 0.9rem;
    }
}

/* ========================= */
/* BLOCCO LIBRO – OVERRIDE SOFT */
/* ========================= */
#compra .about {
    padding-top: 70px;
    padding-bottom: 40px;
}

#compra img {
    max-width: 100%;
    height: auto;
    margin-bottom: 15px;
}

/* Testo introduttivo all'acquisto */
.compra-intro {
    max-width: 620px;
    margin: 0 auto 35px;
    font-size: 1.05rem;
    line-height: 1.6;
    opacity: 0.85;
}

/* Caption sotto il libro */
.libro-caption {
    font-style: italic;
    font-size: 0.95rem;
    opacity: 0.75;
    margin: 10px 0 20px;
}

/* Prezzo libro */
.prezzo {
    margin: 10px 0;
}

.prezzo-originale {
    text-decoration: line-through;
    opacity: 0.5;
}

.prezzo-attuale {
    display: inline-block;
    margin-top: 5px;
    color: #c62828;
    font-size: 1.6rem;
    font-weight: 700;
}

.prezzo-note {
    font-size: 0.85rem;
    opacity: 0.65;
    margin-top: 5px;
}

/* Supporto umano prima del PayPal */
.supporto {
    margin: 20px 0 25px;
    font-size: 0.95rem;
    line-height: 1.6;
    opacity: 0.9;
}

.uscita-gentile {
    margin-top: 35px;
    font-size: 0.95rem;
    opacity: 0.75;
    line-height: 1.6;
}

.uscita-link a {
    font-size: 0.9rem;
    text-decoration: underline;
    opacity: 0.85;
}

/* ***************************** */
/* ********** Team CSS ********* */
/* ***************************** */
.team {
    position: relative;
    width: 100%;
    padding: 45px 0 15px;
}

.team .team-item {
    position: relative;
    margin-bottom: 30px;
    padding: 15px;
    background: var(--bianco-naturale);
    border: 1px solid rgba(0, 0, 0, .07);
    transition: box-shadow 0.3s;
}

/* Effetto profondità al passaggio del mouse (solo desktop) */
@media (min-width: 992px) {
    .team .team-item:hover {
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    }
}

.team .team-img {
    position: relative;
    overflow: hidden;
}

.team .team-img img {
    position: relative;
    width: 100%;
}

.team .team-social {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: .5s;

    /* Overlay sfumato per rendere leggibili le icone */
    background: rgba(255, 255, 255, 0.3);
    opacity: 0;

    /* Invisibile di default su Desktop */
}

.team .team-social a {
    position: relative;
    margin: 100px 3px 0;

    /* Partono dal basso */
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 40px;
    font-size: 16px;
    color: var(--terracotta-cotto);
    background: var(--marrone-terra);
    transition: .3s;
    opacity: 0;
}

.team .team-social a:hover {
    color: var(--marrone-terra);
    background: var(--terracotta-cotto);
}

/* --- ANIMAZIONE DESKTOP (HOVER) --- */
.team .team-item:hover .team-social {
    opacity: 1;
    background: rgba(255, 255, 255, 0.5);
}

.team .team-item:hover .team-social a:first-child {
    opacity: 1;
    margin-top: 0;
    transition: .3s 0s;
}

.team .team-item:hover .team-social a:nth-child(2) {
    opacity: 1;
    margin-top: 0;
    transition: .3s .1s;
}

.team .team-item:hover .team-social a:nth-child(3) {
    opacity: 1;
    margin-top: 0;
    transition: .3s .2s;
}

.team .team-item:hover .team-social a:nth-child(4) {
    opacity: 1;
    margin-top: 0;
    transition: .3s .3s;
}

.team .team-text {
    position: relative;
    padding: 25px 15px 10px;
    text-align: center;
    background: var(--bianco-naturale);
}

.team .team-text h2 {
    font-size: 18px;
    font-weight: 600;
}

.team .team-text p {
    margin: 0;
}

/* ========================= */
/* TEAM MOBILE */
/* ========================= */
@media (max-width: 991.98px) {

    /* Su Tablet e Mobile le icone sono sempre visibili in basso */
    .team .team-social {
        opacity: 1;
        background: transparent;

        /* Niente velo bianco su tutta la foto */
        align-items: flex-end;

        /* Allinea le icone in basso */
        padding-bottom: 10px;

        /* Un po' di margine dal bordo inferiore */
    }

    .team .team-social a {
        opacity: 1;
        margin-top: 0;

        /* Annulla l'effetto "entrata dal basso" */
        width: 35px;

        /* Icone leggermente più piccole */
        height: 35px;
        font-size: 14px;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);

        /* Ombra per staccare dalla foto */
    }
}

/* ***************************** */
/* ****** Testimonial CSS ****** */
/* ***************************** */
.testimonial {
    position: relative;
    overflow: hidden;

    /* Risolve quel conflitto di scorrimento laterale */
    background-color: var(--bg-sito-chiaro);
    padding: 70px 0;
}

.testimonial .container {
    max-width: 100%;
    padding: 0;
}

.testimonial .section-header {
    margin-bottom: 40px;
}

.testimonial .section-header p {
    font-size: 14px;
    letter-spacing: 0.6px;
    opacity: 0.7;
}

.testimonial .testimonial-item {
    position: relative;
    margin: 0 15px;
    text-align: center;
}

/* --- VERSIONE SOLO TESTO (Attuale) --- */
.testimonial .testimonial-text {
    position: relative;
    padding: 30px 20px;

    /* Spaziatura equilibrata, niente buchi in alto */
    text-align: center;
    background: transparent;
    border: none;
    border-radius: 12px;

    /* Un tocco di morbidezza agli angoli */
    box-shadow: none;
    transition: all 0.3s ease;
}

.testimonial .testimonial-item p {
    font-size: 17px;
    line-height: 1.7;
    font-style: italic;
    margin-bottom: 15px;
}

.testimonial .testimonial-text h3 {
    font-size: 15px;
    font-weight: 600;
    color: var(--marrone-terra);
    text-transform: none;
    letter-spacing: 0;
    margin: 0;
}

.testimonial .testimonial-text h4 {
    color: #666666;
    font-size: 14px;
    margin-bottom: 0;
}

/* Dots di navigazione */
.testimonial .owl-dots {
    margin-top: 30px;
    text-align: center;
}

.testimonial .owl-dot {
    display: inline-block;
    margin: 0 5px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--terracotta-cotto);
    transition: 0.3s;
}

.testimonial .owl-dot.active {
    background: var(--marrone-terra);
    transform: scale(1.3);
}

#dicono {
    position: relative;
    z-index: 3;
    margin: 0;
    padding: 0;
    background-color: var(--bg-sito-chiaro);

    /* stesso fondo delle testimonianze */
}

/* ========================= */
/* MOBILE TESTIMONIAL */
/* ========================= */
@media (max-width: 768px) {
    .testimonial {
        padding: 30px 0;
    }

    .testimonial .testimonial-item {
        margin: 0 5px;
    }

    .testimonial .testimonial-text {
        padding: 20px 15px;
    }

    .testimonial .testimonial-item p {
        font-size: 15px;
    }

    /* Su mobile rimuoviamo l'ingrandimento per non uscire dallo schermo */
    .testimonial .owl-item.center .testimonial-text {
        transform: scale(1);
    }
}

/* ========================= */
/* REGISTRAZIONE – HOME */
/* ========================= */
#registrati {
    position: relative;
    margin-bottom: 0 !important;
    background: var(--bg-sito-scuro);
    z-index: 1;
    clear: both;
    padding: 40px 0;

    /* era 80 */
}

#registrati .section-header h2 {
    color: var(--marrone-terra);
    font-weight: 600;
}

#registrati .section-header p {
    color: var(--verde-muschio);
    font-size: 14px;
    letter-spacing: .5px;
}

#registrati .section-subtitle {
    font-size: 16px;
    color: #6b6b6b;
    margin-top: 10px;
}

/* Il box principale (stile spostato qui dall'HTML) */
#registrati .class-wrap {
    background: #fdfbf7;
    border-radius: 18px;
    border: 1px solid #e6a57e;

    /* Spostato qui dall'HTML */
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    padding: 40px 30px;
    max-width: 600px;

    /* Evita che diventi troppo largo su schermi grandi */
    margin: 0 auto;
}

#registrati h3 {
    color: #333;
    font-weight: 600;
    margin-bottom: 20px;
    font-size: 22px;
}

/* --- LISTA VANTAGGI (Nuovo stile per pulire l'HTML) --- */
#registrati ul.benefits-list {
    list-style: none;
    padding: 0;
    margin: 0 auto 30px;
    text-align: left;
    max-width: 450px;
}

#registrati ul.benefits-list li {
    position: relative;
    margin-bottom: 12px;
    font-size: 16px;
    line-height: 1.6;
    color: #555;
    padding-left: 0;

    /* Nessun padding perché il check è già nel testo */
    color: #4f4f4f;
}

/* Trattino rimosso perché c'è già il checkmark emoji nel testo HTML */
/* #registrati ul.benefits-list li::before {
    content: "–";
    color: var(--terracotta-cotto);
    position: absolute;
    left: 0;
} */
/* Opzionale: se vuoi usare il CSS per le spunte invece delle emoji nel testo HTML */
/* #registrati ul.benefits-list li::before {
    content: "✔";
    color: #3F5B4A;
    position: absolute;
    left: 0;
    top: 0;
} */
#registrati hr.divider {
    margin: 30px 0;
    border: none;
    border-top: 1px solid #e6a57e;
    opacity: 0.5;
}

/* --- FORM & INPUT --- */
#registrati form {
    max-width: 450px;
    margin: 0 auto;
}

#registrati form input[type="text"],
#registrati form input[type="email"],

#registrati form input[type="number"] {
    width: 100%;
    padding: 14px 20px;
    margin-bottom: 15px;
    text-align: center;
    border-radius: 999px;
    border: 1px solid #e6a57e;
    background: var(--bianco-naturale);
    font-size: 16px;

    /* : Importante per evitare zoom su iPhone */
    color: #333;
    transition: .3s;
}

#registrati form input:focus {
    outline: none;
    border-color: #d3756b;
    box-shadow: 0 0 0 3px rgba(211, 117, 107, 0.1);
}

#registrati button.btn {
    width: 100%;
    padding: 14px 20px;
    background-color: var(--terracotta-cotto);
    color: var(--bianco-naturale);
    border-radius: 999px;
    font-weight: 600;
    font-size: 16px;
    letter-spacing: 0.3px;
    box-shadow: 0 4px 15px rgba(211, 117, 107, 0.3);
    transition: all .3s ease;
}

#registrati button.btn:hover {
    background-color: var(--terracotta-scuro);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(211, 117, 107, 0.4);
}

/* ========================= */
/* REGISTRAZIONE – BOX STATO */
/* ========================= */
.registration-status {
    background: #fff8f2;

    /* caldo ma leggero */
    border: 2px solid #e6a57e;

    /* stesso colore guida */
    border-radius: 14px;
    padding: 30px 20px;
    margin-top: 20px;
    text-align: center;
}

.registration-status p {
    margin-bottom: 15px;
    font-size: 16px;
    line-height: 1.6;
    color: #4A4A4A;
}

.registration-status.success {
    background: #f3faf6;

    /* verde chiarissimo */
    border-color: #9bc3a6;
}

.registration-status.success p {
    font-weight: 500;
    color: #3F5B4A;
}

.class-wrap {
    padding: 30px;
    background: #fdfbf7;
    border-radius: 10px;
    border: 1px solid rgba(230, 165, 126, 0.35);
}

.registration-status.is-hidden {
    display: none;
}

/* ========================= */
/* MOBILE REGISTRAZIONE */
/* ========================= */
@media (max-width: 768px) {
    #registrati {
        padding-left: 10px;
        padding-right: 10px;
    }

    #registrati .class-wrap {
        padding: 30px 20px;
        border-radius: 14px;
        width: 100%;
        max-width: calc(100% - 30px);

        /* 15px per lato */
        margin-left: auto;
        margin-right: auto;
        box-sizing: border-box;
        box-shadow: 0 12px 25px rgba(0, 0, 0, 0.06);
    }

    #registrati h3 {
        font-size: 20px;
    }

    #registrati ul.benefits-list li {
        font-size: 15px;
    }
}

/* ***************************** */
/* ********** Blog CSS ********* */
/* ***************************** */
.blog {
    position: relative;
    width: 100%;
    padding: 45px 0;
}

.blog .blog-carousel {
    position: relative;
    width: calc(100% + 30px);
    left: -15px;
    right: -15px;
}

.blog .blog-item {
    position: relative;
    margin: 0 15px;
    background: var(--bianco-naturale);
    border-radius: 12px;

    /* Angoli arrotondati per un tocco moderno */
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);

    /* Ombra leggera */
    transition: transform 0.3s ease;
}

.blog .blog-item:hover {
    transform: translateY(-5px);

    /* Effetto sollevamento */
}

.blog .blog-page .blog-item {
    margin: 0 0 30px;
}

.blog .blog-img {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.blog .blog-img img {
    width: 100%;
    transition: transform 0.5s ease;
}

.blog .blog-item:hover .blog-img img {
    transform: scale(1.05);

    /* Zoom leggero al passaggio del mouse */
}

.blog .blog-text {
    position: relative;
    padding: 25px 30px;
    border: 1px solid rgba(0, 0, 0, .07);
    border-top: none;
}

.blog .blog-text h2 {
    font-size: 20px;
    font-weight: 700;
    color: #3F5B4A;

    /* Colore guida del brand */
    line-height: 1.4;
    margin-bottom: 15px;
}

.blog .blog-text p {
    margin-bottom: 15px;
    color: #666;
    font-size: 15px;
    line-height: 1.6;
}

.blog .blog-item a.btn {
    padding: 0;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    color: #C86A4A;

    /* Colore terracotta per l'azione */
    transition: .3s;
    letter-spacing: 1px;
}

.blog .blog-item a.btn i {
    margin-left: 5px;
}

.blog .blog-item a.btn:hover {
    color: #3F5B4A;
    text-decoration: none;
}

.blog .blog-meta {
    position: relative;
    display: flex;
    margin-bottom: 12px;
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 10px;
}

.blog .blog-meta p {
    margin: 0 15px 0 0;
    font-size: 12px;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.blog .blog-meta i {
    margin-right: 5px;
    color: #C86A4A;
}

/* --- NAVIGAZIONE OWL CAROUSEL --- */
.blog .owl-nav {
    width: 130px;
    margin: 35px auto 0;
    display: flex;
    justify-content: space-between;
}

.blog .owl-nav .owl-prev,

.blog .owl-nav .owl-next {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #3F5B4A;
    background: #F4EEE7;

    /* Colore sabbia leggero */
    border-radius: 50%;
    font-size: 18px;
    transition: .3s;
}

.blog .owl-nav .owl-prev:hover,

.blog .owl-nav .owl-next:hover {
    color: var(--bianco-naturale);
    background: #3F5B4A;
}

/* --- PAGINAZIONE --- */
.blog .pagination .page-link {
    color: #3F5B4A;
    border-radius: 50%;
    margin: 0 5px;
    border-color: #eee;
}

.blog .pagination .page-link:hover,

.blog .pagination .page-item.active .page-link {
    color: var(--bianco-naturale);
    background: #3F5B4A;
    border-color: #3F5B4A;
}

/* ========================= */
/* BLOG MOBILE */
/* ========================= */
@media (max-width: 767.98px) {
    .blog {
        padding: 30px 0;
    }

    .blog .blog-text {
        padding: 20px;
    }

    .blog .blog-text h2 {
        font-size: 18px;
    }

    .blog .owl-nav {
        margin-top: 25px;
    }
}

/* ***************************** */
/* ******* Portfolio CSS ******* */
/* ***************************** */
.portfolio {
    position: relative;
    padding: 45px 0 15px;
}

/* --- FILTRI GENTILI --- */
.portfolio #portfolio-filter {
    padding: 0;
    margin: -15px 0 35px;
    list-style: none;
    text-align: center;
}

.portfolio #portfolio-filter li {
    cursor: pointer;
    display: inline-block;
    margin: 5px;
    padding: 8px 22px;
    color: #3F5B4A;
    font-size: 14px;
    font-weight: 600;
    border-radius: 30px;
    background: #F4EEE7;
    border: 1px solid transparent;
    transition: all 0.3s ease;
}

.portfolio #portfolio-filter li:hover,

.portfolio #portfolio-filter li.filter-active {
    background: #3F5B4A;
    color: var(--bianco-naturale);
    box-shadow: 0 4px 12px rgba(63, 91, 74, 0.2);
}

/* --- CARDS DELLA GALLERIA --- */
.portfolio .portfolio-item {
    position: relative;
    margin-bottom: 30px;
}

.portfolio .portfolio-wrap {
    position: relative;
    width: 100%;
    border-radius: 15px;

    /* Angoli arrotondati per la cornice */
    overflow: hidden;

    /* Questo taglia l'immagine se prova a uscire dai bordi */
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.4s ease;
}

.portfolio .portfolio-wrap img {
    position: relative;
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.6s ease;

    /* Zoom fluido */
}

/* Effetto al passaggio del mouse */
.portfolio .portfolio-wrap:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
    transform: translateY(-5px);

    /* La card si alza leggermente */
}

.portfolio .portfolio-wrap:hover img {
    transform: scale(1.1);

    /* Zoom elegante senza rotazioni brusche */
}

/* Titoli interni se presenti */
.portfolio .portfolio-text {
    padding: 15px;
    text-align: center;
}

/* ========================= */
/* PORTFOLIO MOBILE */
/* ========================= */
@media (max-width: 767.98px) {

    /* Rendiamo i filtri scorrevoli lateralmente se sono troppi */
    .portfolio #portfolio-filter {
        display: flex;
        overflow-x: auto;
        white-space: nowrap;
        padding-bottom: 10px;
        margin: 0 -15px 25px;

        /* Esce dai bordi per un effetto elegante */
        padding-left: 15px;
        -webkit-overflow-scrolling: touch;

        /* Scorrimento fluido su iPhone */
    }

    .portfolio #portfolio-filter li {
        flex: 0 0 auto;

        /* Impedisce ai pulsanti di rimpicciolirsi */
        margin: 0 5px;
        padding: 8px 18px;
        font-size: 13px;
    }

    /* Nascondiamo la barra di scorrimento dei filtri per pulizia visiva */
    .portfolio #portfolio-filter::-webkit-scrollbar {
        display: none;
    }

    /* Ottimizziamo le card per il touch */
    .portfolio .portfolio-item {
        margin-bottom: 20px;
        padding: 0 5px;

        /* Leggera aria tra le foto se sono su due colonne */
    }

    /* Su mobile lo zoom è meglio disattivarlo o renderlo minimo 
       perché può dare fastidio durante lo scorrimento della pagina */
    .portfolio .portfolio-wrap:hover img {
        transform: scale(1.02);

        /* Quasi impercettibile */
    }

    .portfolio .portfolio-wrap {
        border-radius: 12px;

        /* Angoli leggermente meno pronunciati su schermi piccoli */
    }
}

/* ***************************** */
/* ******** Contact CSS ******** */
/* ***************************** */
.contact {
    position: relative;
    width: 100%;
    padding: 45px 0;
}

.contact .container {
    max-width: 900px;
}

.contact .contact-item {
    text-align: center;
    margin-bottom: 40px;
}

/* Icone circolari gentili */
.contact .contact-item i {
    width: 60px;
    height: 60px;
    line-height: 60px;
    font-size: 24px;
    color: #3F5B4A;
    margin-bottom: 20px;
    border: 1px solid #f4eee7;
    background: #F4EEE7;
    border-radius: 50%;
    transition: 0.3s;
}

.contact .contact-item:hover i {
    background: #3F5B4A;
    color: var(--bianco-naturale);
}

.contact .contact-item h2 {
    font-size: 22px;
    font-weight: 700;
    color: var(--marrone-terra);
    margin-bottom: 10px;
}

.contact p {
    line-height: 1.7;
}

.contact-item h2 {
    font-size: 1.1rem;
}

/* --- FORM DI CONTATTO --- */
.contact .contact-form {
    position: relative;
    padding: 20px;
}

.contact .contact-form input,

.contact .contact-form textarea {
    width: 100%;
    background: var(--bianco-naturale);
    border: 1px solid #e6a57e;
    border-radius: 12px;

    /* Angoli arrotondati e gentili */
    padding: 12px 15px;
    margin-bottom: 20px;
    font-size: 16px;

    /* Evita lo zoom automatico fastidioso su iPhone */
    color: #333;
    transition: all 0.3s ease;
}

.contact .contact-form input {
    height: 50px;
}

.contact .contact-form textarea {
    height: 150px;
}

.contact .contact-form input:focus,

.contact .contact-form textarea:focus {
    outline: none;
    border-color: #3F5B4A;
    box-shadow: 0 0 0 3px rgba(63, 91, 74, 0.1);
}

/* Pulsante d'invio regale */
.contact .contact-form .btn {
    padding: 14px 35px;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 1px;
    color: var(--bianco-naturale);
    background: #C86A4A;

    /* Terracotta */
    border-radius: 999px;

    /* Forma a pillola */
    border: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(200, 106, 74, 0.2);
}

.contact .contact-form .btn:hover {
    background: #B75E42;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(200, 106, 74, 0.3);
    color: var(--bianco-naturale);
}

/* Messaggi di errore/aiuto */
.contact .help-block ul {
    margin: -15px 0 15px 15px;
    padding: 0;
    list-style-type: none;
    color: #d9534f;
    font-size: 13px;
}

/* ========================= */
/* CONTACT MOBILE */
/* ========================= */
@media (max-width: 767.98px) {
    .contact {
        padding: 30px 15px;
    }

    .contact .contact-item {
        margin-bottom: 30px;
    }

    .contact .contact-form {
        padding: 0;
    }

    .contact .contact-form .btn {
        width: 100%;

        /* Su mobile il pulsante occupa tutto lo spazio */
        padding: 15px;
    }
}

/* ***************************** */
/* ****** Single Post CSS ****** */
/* ***************************** */
.single {
    position: relative;
    padding: 45px 0;
    color: #4A4A4A;

    /* Un grigio più morbido per la lettura prolungata */
}

.single .single-content {
    position: relative;
    margin-bottom: 30px;
}

.single .single-content img {
    margin-bottom: 25px;
    width: 100%;
    border-radius: 15px;

    /* Immagini dell'articolo con angoli gentili */
}

/* --- TAGS COME PETALI --- */
.single .single-tags {
    margin: 0 0 40px;
}

.single .single-tags a {
    margin: 5px;
    display: inline-block;
    padding: 6px 18px;
    font-size: 13px;
    font-weight: 500;
    color: #3F5B4A;
    background: #F4EEE7;
    border: 1px solid transparent;
    border-radius: 20px;
    transition: .3s;
}

.single .single-tags a:hover {
    color: var(--bianco-naturale);
    background: #C86A4A;
    box-shadow: 0 4px 10px rgba(200, 106, 74, 0.2);
}

/* --- BIO AUTORE --- */
.single .single-bio {
    margin-bottom: 45px;
    padding: 30px;
    background: #F9F6F2;

    /* Sabbia chiarissimo invece del blu */
    border-radius: 15px;
    display: flex;
    align-items: center;
}

.single .single-bio-img {
    flex: 0 0 100px;

    /* Dimensione fissa per l'immagine */
}

.single .single-bio-img img {
    width: 100%;
    border-radius: 50%;

    /* Bio sempre tonda, molto professionale */
}

.single .single-bio-text {
    padding-left: 25px;
}

.single .single-bio-text h3 {
    font-size: 20px;
    font-weight: 700;
    color: #3F5B4A;
    margin-bottom: 8px;
}

/* --- POST CORRELATI --- */
.single .single-related h2 {
    font-size: 26px;
    font-weight: 700;
    color: var(--marrone-terra);
    margin-bottom: 30px;
}

.single .post-item {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    padding: 10px;
    background: var(--bianco-naturale);
    border-radius: 10px;
    transition: .3s;
}

.single .post-item:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.single .post-item .post-img {
    flex: 0 0 80px;
}

.single .post-item .post-img img {
    width: 100%;
    border-radius: 8px;
}

/* --- COMMENTI --- */
.single .single-comment h2,

.single .comment-form h2 {
    font-size: 26px;
    font-weight: 700;
    color: #3F5B4A;
}

.single .comment-body {
    display: flex;
    margin-bottom: 30px;
    padding: 20px;
    background: var(--bianco-naturale);
    border: 1px solid #f0f0f0;
    border-radius: 12px;
}

.single .comment-img {
    flex: 0 0 60px;
}

.single .comment-img img {
    width: 100%;
    border-radius: 50%;
}

.single .comment-text .btn {
    padding: 5px 15px;
    font-size: 12px;
    font-weight: 600;
    color: #C86A4A;
    background: transparent;
    border: 1px solid #c86a4a;
    border-radius: 20px;
    transition: .3s;
}

.single .comment-text .btn:hover {
    background: #C86A4A;
    color: #fff;
}

/* --- FORM COMMENTI --- */
.single .comment-form form {
    padding: 35px;
    background: #F9F6F2;
    border-radius: 15px;
}

.single .comment-form input,

.single .comment-form textarea {
    border-radius: 10px;
    border: 1px solid #e0e0e0;
    padding: 12px;
}

.single .comment-form .btn {
    padding: 14px 30px;
    font-weight: 600;
    border-radius: 30px;
    color: #fff;
    background: #3F5B4A;
    border: none;
    box-shadow: 0 4px 12px rgba(63, 91, 74, 0.2);
}

/* ========================= */
/* SINGLE MOBILE */
/* ========================= */
@media (max-width: 768px) {
    .single .single-bio,

    .single .comment-body {
        flex-direction: column;

        /* Gli elementi vanno uno sotto l'altro */
        text-align: center;
    }

    .single .single-bio-text,

    .single .comment-text {
        padding-left: 0;
        padding-top: 15px;
    }

    .single .single-bio-img {
        max-width: 80px;
        margin: 0 auto;
    }

    .single .comment-img {
        max-width: 50px;
        margin: 0 auto;
    }
}

/* ******************************** */
/* ********** Sidebar CSS ********* */
/* ******************************** */
.sidebar {
    position: relative;
    width: 100%;
}

@media (max-width: 991.98px) {
    .sidebar {
        margin-top: 45px;
        padding: 0 15px;
    }
}

.sidebar .sidebar-widget {
    position: relative;
    margin-bottom: 45px;
    padding: 20px;
    background: var(--bianco-naturale);
    border-radius: 15px;

    /* Un leggero box per staccare dallo sfondo */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.03);
}

.sidebar .sidebar-widget .widget-title {
    position: relative;
    margin-bottom: 25px;
    padding-bottom: 10px;
    font-size: 22px;

    /* Più equilibrato */
    font-weight: 700;
    color: var(--marrone-terra);
}

.sidebar .sidebar-widget .widget-title::after {
    position: absolute;
    content: "";
    width: 50px;
    height: 3px;
    bottom: 0;
    left: 0;
    background: #3F5B4A;

    /* Verde brand */
    border-radius: 3px;
}

/* --- SEARCH WIDGET --- */
.sidebar .sidebar-widget .search-widget {
    position: relative;
}

.sidebar .search-widget input {
    height: 45px;
    border: 1px solid #e6a57e;

    /* Terracotta chiaro */
    border-radius: 25px;

    /* Forma a pillola */
    padding-left: 20px;
    font-size: 15px;
}

.sidebar .search-widget .btn {
    position: absolute;
    top: 5px;
    right: 10px;
    height: 35px;
    padding: 0 10px;
    font-size: 20px;
    color: #C86A4A;

    /* Terracotta */
    background: none;
    border: none;
    transition: .3s;
}

.sidebar .search-widget .btn:hover {
    color: #3F5B4A;
    transform: scale(1.1);
}

/* --- TAB POST (Recenti/Popolari) --- */
.sidebar .tab-post .nav.nav-pills .nav-link {
    color: #3F5B4A;
    background: #F4EEE7;
    border-radius: 20px;
    margin-right: 5px;
    font-size: 13px;
    font-weight: 600;
    padding: 8px 15px;
    transition: .3s;
}

.sidebar .tab-post .nav.nav-pills .nav-link.active {
    color: var(--bianco-naturale);
    background: #3F5B4A;
}

/* --- CATEGORIE --- */
.sidebar .category-widget ul li {
    position: relative;
    margin: 0 0 12px;
    padding-left: 20px;
}

.sidebar .category-widget ul li::before {
    content: '\f105';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    color: #C86A4A;
    position: absolute;
    left: 0;
}

.sidebar .category-widget ul li a {
    color: #555;
    transition: .3s;
}

.sidebar .category-widget ul li a:hover {
    color: #3F5B4A;
    padding-left: 5px;
}

/* --- TAGS (Coerenti con il blog) --- */
.sidebar .sidebar-widget .tag-widget {
    margin: -5px;
}

.sidebar .tag-widget a {
    margin: 5px;
    display: inline-block;
    padding: 5px 15px;
    font-size: 13px;
    color: #3F5B4A;
    background: #F4EEE7;
    border-radius: 20px;
    transition: .3s;
}

.sidebar .tag-widget a:hover {
    color: var(--bianco-naturale);
    background: #C86A4A;
    text-decoration: none;
}

/* --- IMAGE WIDGET --- */
.sidebar .image-widget {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.sidebar .image-widget img {
    max-width: 100%;
    transition: .5s;
}

.sidebar .image-widget img:hover {
    transform: scale(1.05);
}

/* ***************************** */
/* ******** Footer CSS ********* */
/* ***************************** */
.footer {
    position: relative;
    margin-top: 0;
    padding: 30px 20px 15px;
    background: var(--sabbia-calda);
    display: block;
    visibility: visible !important;
    width: 100%;

    /* Questo impedisce ai margini interni di "uscire" */
    overflow: hidden;
}

.footer-inner {
    max-width: 900px;
    margin: 0 auto;
}

.footer-logo {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 2px;
    color: var(--verde-muschio);
}

.footer-tagline {
    font-size: 14px;
    letter-spacing: 0.4px;
    opacity: 0.65;
    margin-top: 4px;
}

.footer-social {
    margin-bottom: 10px;
}

.footer-social a {
    margin: 0 8px;
    color: #c86a4a;
    font-size: 18px;
    transition: transform .2s ease, color .2s ease;
}

.footer-social a:hover {
    color: #a8543c;
    transform: translateY(-2px);
}

.footer-copy {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid rgba(61, 46, 38, 0.05);

    /* Una linea sottilissima per separare */
    font-size: 0.7rem;
    color: var(--marrone-chiaro);
    margin-bottom: 0;
}

/* ========================= */
/* FOOTER MOBILE */
/* ========================= */
@media (max-width: 768px) {
    .footer {
        padding: 25px 15px 10px;
    }

    .footer-inner {
        max-width: 100%;
        text-align: center;

        /* Forza la centralità, più aggraziata su mobile */
    }

    .footer-logo {
        font-size: 1.3rem;
        margin-bottom: 2px;
    }

    .footer-tagline {
        font-size: 0.8rem;
        margin-bottom: 8px;
        line-height: 1.3;
    }

    .footer-social {
        margin-bottom: 10px;
    }

    .footer-social a {
        font-size: 20px;
        margin: 0 8px;
    }

    .footer-copy {
        font-size: 0.65rem;
        margin-top: 8px;
        padding-top: 8px;
        line-height: 1.2;

        /* Una trasparenza per renderlo un sussurro */
        opacity: 0.7;
    }
}

/* ============================================
   MODAL ISCRIZIONE - About Section CTA
   ============================================ */
.modal-iscrizione-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(61, 46, 38, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 20px;
    animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-iscrizione-content {
    background: var(--bianco-naturale);
    border-radius: 16px;
    padding: 40px;
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-iscrizione-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 36px;
    height: 36px;
    border: none;
    background: rgba(0, 0, 0, 0.08);
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--marrone-medio);
    transition: all 0.2s ease;
}

.modal-iscrizione-close:hover {
    background: var(--terracotta-cotto);
    color: white;
}

.modal-iscrizione-header {
    text-align: center;
    margin-bottom: 25px;
}

.modal-iscrizione-header h2 {
    color: var(--marrone-terra);
    font-size: 1.6rem;
    margin-bottom: 12px;
}

.modal-iscrizione-subtitle {
    color: var(--marrone-medio);
    font-size: 1rem;
    line-height: 1.6;
}

.modal-benefits-list {
    list-style: none;
    padding: 0;
    margin: 0 0 25px 0;
    text-align: left;
}

.modal-benefits-list li {
    color: var(--marrone-medio);
    padding: 8px 0 8px 28px;
    position: relative;
    font-size: 0.95rem;
    line-height: 1.5;
}

.modal-benefits-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--verde-salvia);
    font-weight: bold;
}

#modal-iscrizione-container form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

#modal-iscrizione-container input[type="text"],
#modal-iscrizione-container input[type="email"],
#modal-iscrizione-container input[type="number"] {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--iuta-scuro);
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    background: white;
    color: var(--marrone-terra);
    transition: border-color 0.2s ease;
}

#modal-iscrizione-container input:focus {
    outline: none;
    border-color: var(--terracotta-cotto);
}

#modal-iscrizione-container input::placeholder {
    color: var(--marrone-chiaro);
}

.btn-gusto-full {
    width: 100%;
    padding: 14px 20px;
    background: var(--terracotta-cotto);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 8px;
}

.btn-gusto-full:hover {
    background: var(--terracotta-scuro);
    transform: translateY(-1px);
}

.modal-info-text {
    text-align: center;
    color: var(--marrone-medio);
    line-height: 1.6;
    margin-bottom: 20px;
}

.modal-error-message {
    color: #c0392b;
    text-align: center;
    margin-top: 12px;
    font-size: 0.9rem;
}

.modal-success-icon {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 15px;
}

.modal-registration-state h3 {
    text-align: center;
    color: var(--marrone-terra);
    margin-bottom: 15px;
}

.modal-success-text {
    text-align: center;
    color: var(--marrone-medio);
    line-height: 1.6;
    margin-bottom: 20px;
}

.modal-error-text {
    text-align: center;
    color: #c0392b;
    line-height: 1.6;
    margin-bottom: 20px;
}

/* About CTA button */
.about-cta {
    margin-top: 20px;
}

/* Mobile responsive */
@media (max-width: 600px) {
    .modal-iscrizione-content {
        padding: 30px 20px;
        margin: 10px;
        max-height: 95vh;
    }

    .modal-iscrizione-header h2 {
        font-size: 1.4rem;
    }

    .modal-benefits-list li {
        font-size: 0.9rem;
    }
}