        /* ====================================================== */
        /* INIZIO STILI HERO SLIDER v.30 (SOSTITUIRE)            */
        /* ====================================================== */

        /* Il contenitore principale della sezione */
        .hero-section {
            position: relative;
            display: flex;
            align-items: center;
            /* margin-top: -90px; Compensa l'altezza dell'header */
            /* padding-top: 90px; Spinge in giù il contenuto */
            min-height: 85vh;
            overflow: hidden;
        }

        /* Lo sfondo sfocato: ora anche lui avrà una transizione */
        .hero-background {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-size: cover;
            background-position: center;
            filter: blur(15px) brightness(0.6);
            transform: scale(1.1);
            z-index: 1;
            /* Aggiungiamo la transizione per lo sfondo */
            transition: background-image 1.5s ease-in-out;
        }

        /* Il contenitore del contenuto (testo e immagine) */
        .hero-content {
            position: relative;
            z-index: 2;
            width: 100%;
            padding: 0;
        }

        /* Stili per il testo */
        .hero-section h1, h2, .hero-section p {
            color: #ffffff;
            text-shadow: 2px 2px 8px rgba(0,0,0,0.7);
        }
        .hero-section h1 { font-size: 5.5rem; font-weight: 800; }
        .hero-section h2 { font-size: 2rem; font-weight: 700; font-style: italic; }
        .hero-section p { font-size: 1.4rem; }

        /* L'immagine dello slider: qui gestiamo il FADE */
        #slider-image {
            max-width: 100%;
            height: auto;
            border-radius: 1rem;
            box-shadow: 0 10px 30px rgba(0,0,0,0.4);
            opacity: 1; /* Assicura che l'immagine sia SEMPRE visibile */
            max-width: 100%;
            height: auto;
            border-radius: 1rem;
            box-shadow: 0 10px 30px rgba(0,0,0,0.4);
            /* N.B. Nessuna transizione qui: l'animazione è sulla colonna! */
        }



        /* blocco di codice per gestire parte testuale di hero */

        /* SOSTITUISCI QUESTO BLOCCO NEL TUO CSS */

        /* Stile base delle colonne: qui definiamo la transizione di scivolamento */
        #text-column, #image-column {
            /* La transizione per lo scivolamento (transform) dura 1.2 secondi.
                La curva cubica la rende più fluida e meno "meccanica". */
            transition: transform 1.2s cubic-bezier(0.65, 0, 0.35, 1);
        }

        /* Only the image column also has the opacity transition */
        #image-column {
            transition-property: transform, opacity;
            transition-duration: 1.2s, 0.6s; /* Separate durations for slide and fade */
            transition-timing-function: cubic-bezier(0.65, 0, 0.35, 1), ease-in-out;
        }

        /* New class to make only the image "disappear" */
        #image-column.fading-out {
            opacity: 0;
        }

        /* Class to move the text column to the right */
        #text-column.is-on-right {
            transform: translateX(100%);
        }

        /* Class to move the image column to the left (relative to its original position) */
        #image-column.is-on-left {
            transform: translateX(-100%);
        }


        /* ====================================================== */
        /* FINE STILI HERO SLIDER v.30 (SOSTITUIRE)            */
        /* ====================================================== */

        .cta-button {
            font-size: 1rem;
            padding: 0.5rem 1.5rem;
            border-radius: .5rem;
            font-weight: 700;
            transition: all 0.3s ease;
        }
        .cta-button:hover {
            transform: translateY(-3px);
            box-shadow: 0 8px 15px rgba(0,0,0,.2);
        }

        .section-intro {
            text-align: center;
            margin-bottom: 3rem;
        }
        .section-intro h2 {
            font-size: 2.8rem;
            color: #1A759F;
            font-weight: 700;
            margin-bottom: 1rem;
        }
        .section-intro p {
            font-size: 1.2rem;
            color: #555;
            max-width: 900px;
            margin: 0 auto;
        }

        .subject-card {
            background-color: #ffffff; /* Default background */
            border-radius: .75rem;
            padding: 2.5rem;
            margin-bottom: 2rem;
            box-shadow: 0 5px 15px rgba(0,0,0,.08);
            text-align: center;
            transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
            text-decoration: none;
            color: inherit;
        }
        .subject-card:hover {
            transform: translateY(-7px);
            box-shadow: 0 12px 25px rgba(0,0,0,.15);
        }

        .subject-card .icon {
            font-size: 4rem;
            color: #1A759F; /* Colore dell'icona principale */
            margin-bottom: 1.5rem;
        }

        .subject-card h3 {
            font-size: 2rem;
            font-weight: 700;
            color: #333;
            margin-bottom: 1rem;
        }

        .subject-card p {
            font-size: 1.1rem;
            color: #666;
            line-height: 1.6;
        }

        /* Colore distintivo per la card Lingua Italiana */
        .subject-card.lingua-italiana {
            background-color: #A084CA; /* Viola ametista chiaro come sfondo */
            color: #ffffff; /* Testo bianco per contrasto */
        }
        .subject-card.lingua-italiana .icon {
            color: #ffffff; /* Icona bianca sulla card viola */
        }
        .subject-card.lingua-italiana h3 {
            color: #ffffff;
        }
        .subject-card.lingua-italiana p {
            color: #f0f0f0;
        }


        /* Sezione per le Call to Action secondarie o features */
        .feature-section {
            background-color: #e9ecef;
            padding: 4rem 0;
            margin-top: 4rem;
            border-radius: .75rem;
            text-align: center;
        }
        .feature-section h2 {
            color: #1A759F;
            font-size: 2.5rem;
            font-weight: 700;
            margin-bottom: 2rem;
        }
        .feature-section .feature-item {
            padding: 1.5rem;
        }
        .feature-section .feature-item i {
            font-size: 3rem;
            color: #1A759F;
            margin-bottom: 1rem;
        }
        .feature-section .feature-item h4 {
            font-size: 1.5rem;
            font-weight: 600;
            color: #333;
        }
        .feature-section .feature-item p {
            color: #666;
        }

        /* Nuovi stili per i box informativi e aggiornamenti */
        .info-box, .updates-box {
            background-color: #ffffff;
            border-radius: .75rem;
            padding: 2.5rem;
            margin-top: 3rem;
            box-shadow: 0 5px 15px rgba(0,0,0,.08);
        }
        .info-box h2, .updates-box h2 {
            font-size: 2rem;
            color: #1A759F;
            font-weight: 700;
            margin-bottom: 1.5rem;
            text-align: center;
        }
        .info-box p, .updates-box ul {
            font-size: 1.1rem;
            color: #666;
            line-height: 1.7;
        }
        .updates-box ul {
            list-style: none;
            padding-left: 0;
        }
        .updates-box ul li {
            margin-bottom: 0.8rem;
            position: relative;
            padding-left: 25px; /* Spazio per l'icona */
        }
        .updates-box ul li:before {
            content: "\f058"; /* Icona di check-circle da Font Awesome */
            font-family: "Font Awesome 5 Free";
            font-weight: 900;
            color: #A084CA; /* Colore viola come la card italiana */
            position: absolute;
            left: 0;
            top: 0;
        }
        .updates-box .update-date {
            font-size: 0.9rem;
            color: #999;
            margin-left: 10px;
        }

        /* Contenitore esterno (wrapper) */
.free-notice-wrapper {
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Stile del box principale */
.free-notice {
    background-color: #f0f7ff;
    border-left: 5px solid #0056b3;   /* Bordo sinistro */
    border-right: 5px solid #0056b3;  /* Bordo destro, come richiesto */
    padding: 25px 40px;               /* Più spazio interno (verticale e orizzontale) */
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    max-width: 900px;                 /* Aumentata la larghezza per righe più lunghe */
    font-family: sans-serif;
}

/* Stile per il titolo */
.free-notice .notice-title {
    text-align: center;               /* Testo centrato */
    font-size: 1.2em;                 /* Font leggermente più grande per il titolo */
    color: #003d80;
    margin-bottom: 25px;              /* Più spazio sotto il titolo */
}

/* Stile per il corpo del testo */
.free-notice .notice-body {
    font-size: 1.1em;                 /* Font del testo ingrandito */
    line-height: 1.7;                 /* Aumentato lo spazio tra le righe (interlinea) */
    text-align: justify;              /* Testo giustificato per un look più ordinato */
    color: #333;
}

/* Stile per l'email finale */
.free-notice .notice-contact {
    text-align: center;               /* Email centrata */
    margin-top: 25px;                 /* Più spazio sopra l'email per isolarla */
    margin-bottom: 0;
}

.free-notice .notice-contact a {
    color: #0056b3;
    font-weight: bold;
    font-size: 1.2em;                 /* Font dell'email ingrandito per evidenza */
    text-decoration: none;
    padding: 8px 12px;                /* Aggiunto un po' di "respiro" attorno al link */
}

.free-notice .notice-contact a:hover {
    text-decoration: underline;
    background-color: #e0efff;       /* Leggero sfondo al passaggio del mouse */
    border-radius: 5px;
}

        @keyframes pulse {
            0% { transform: scale(1); }
            50% { transform: scale(1.01); }
            100% { transform: scale(1); }
        }

        /* Stili per i messaggi di feedback: ora gestiti principalmente in style_web_header_main.php */





        /* ----- FINE BLOCCO STILI SEZIONI HOME PAGE ----- */

        /* ----- INIZIO BLOCCO STILI RESPONSIVE AGGIUNTIVI ----- */
        @media (max-width: 991.98px) { /* Modificato da 767.98px per coprire anche tablet */
            body {
                padding-top: 70px;
            }
            .main-header {
                padding: 0.5rem 1rem;
            }
            .main-header .navbar-brand {
                font-size: 1.5rem;
            }

            /* Stili responsive per la nuova hero-section */
            .hero-section {
                min-height: 60vh; /* Riduci l'altezza minima su mobile */
                padding-top: 70px; /* Adatta il padding all'altezza dell'header mobile */
            }
            .hero-section h1 {
                font-size: 2.8rem;
            }
            .hero-section h2 { /* Aggiunto stile per h2 su mobile */
                font-size: 1.5rem;
            }
            .hero-section p {
                font-size: 1.2rem;
                padding: 0 1rem;
            }
            /* Su schermi piccoli, il testo occupa tutta la larghezza */
            #text-column {
                width: 100% !important; /* Forza la larghezza piena */
                transform: translateX(0%) !important; /* Assicura che non sia traslato */
                text-align: center; /* Centra il testo */
            }
            /* Nascondi completamente la colonna dell'immagine su schermi piccoli */
            #image-column {
                display: none !important;
            }

            .section-intro h2 {
                font-size: 2.2rem;
            }
            .subject-card {
                padding: 2rem 1.5rem;
            }
            .subject-card h3 {
                font-size: 1.7rem;
            }
            .info-box, .updates-box {
                padding: 2rem 1.5rem;
            }
            .info-box h2, .updates-box h2 {
                font-size: 1.8rem;
            }
            .free-notice-wrapper {
                margin: 1.5rem auto; /* Margini più stretti per mobile */
                max-width: 95%; /* Lascia un po' di margine sui lati per schermi molto piccoli */
            }
            .free-notice {
                font-size: 1rem;
                padding: 1rem 1.5rem;
            }
            .free-notice strong {
                font-size: 1.3rem;
            }
        }
        /* ----- FINE BLOCCO STILI RESPONSIVE AGGIUNTIVI ----- */
