/* 1. Reset base */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Segoe UI', Tahoma, sans-serif; }

/* 2. Navbar Elegante (obsolete - sostituita dalla navbar moderna) */

/* Resetta i margini degli elementi tipografici all'inizio */
body, h1, h2, h3, p, .breadcrumb {
    margin: 0;
    padding: 0;
}

/* =========================
   NAVBAR MODERNA
   ========================= */

/* Padding top per compensare navbar sticky */
body {
    padding-top: 80px;
}

.navbar-moderna {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 40px;
    height: 72px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(52, 152, 219, 0.10);
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

.navbar-moderna--scrolled {
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.08);
    border-bottom-color: rgba(52, 152, 219, 0.20);
    background: rgba(255, 255, 255, 0.95);
}

.navbar-moderna__logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    font-size: 1.35rem;
    font-weight: 900;
    color: #1a2634;
    letter-spacing: -0.5px;
    transition: opacity 0.2s ease;
}

.navbar-moderna__logo:hover {
    opacity: 0.8;
}

.navbar-moderna__logo-img {
    height: 40px;
    width: auto;
    display: block;
}

.navbar-moderna__menu {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 4px;
    margin: 0;
    padding: 0;
}

.navbar-moderna__item {
    position: relative;
}

.navbar-moderna__link {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 10px;
    text-decoration: none;
    color: #4a5a6a;
    font-weight: 650;
    font-size: 0.92rem;
    transition: background 0.2s ease, color 0.2s ease;
    position: relative;
}

.navbar-moderna__link:hover {
    background: rgba(52, 152, 219, 0.08);
    color: #1e6fb2;
}

.navbar-moderna__link--active {
    color: #1e6fb2;
    background: rgba(52, 152, 219, 0.10);
}

.navbar-moderna__link--active::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 3px;
    background: #3498db;
    border-radius: 2px;
}

/* Dropdown Corsi */
.navbar-moderna__dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%) translateY(6px);
    min-width: 280px;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(52, 152, 219, 0.15);
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.10);
    padding: 12px 8px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
    z-index: 100;
}

.navbar-moderna__item:hover .navbar-moderna__dropdown,
.navbar-moderna__item:focus-within .navbar-moderna__dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.navbar-moderna__dropdown-group {
    margin-bottom: 8px;
}

.navbar-moderna__dropdown-group:last-child {
    margin-bottom: 0;
}

.navbar-moderna__dropdown-label {
    display: block;
    padding: 6px 14px 4px;
    font-size: 0.70rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #8a9aa8;
}

.navbar-moderna__dropdown-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 10px;
    text-decoration: none;
    color: #3a4a5a;
    font-weight: 600;
    font-size: 0.88rem;
    transition: background 0.2s ease, color 0.2s ease;
}

.navbar-moderna__dropdown-link:hover {
    background: rgba(52, 152, 219, 0.08);
    color: #1e6fb2;
}

.navbar-moderna__dropdown-link--all {
    font-weight: 800;
    color: #1e6fb2;
    border-top: 1px solid rgba(52, 152, 219, 0.10);
    margin-top: 4px;
    padding-top: 10px;
}

/* Hamburger Button */
.navbar-moderna__hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    border: none;
    background: transparent;
    cursor: pointer;
    padding: 8px;
    border-radius: 10px;
    transition: background 0.2s ease;
}

.navbar-moderna__hamburger:hover {
    background: rgba(52, 152, 219, 0.08);
}

.navbar-moderna__hamburger-line {
    display: block;
    width: 22px;
    height: 2.5px;
    background: #2c3e50;
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.navbar-moderna__hamburger-line + .navbar-moderna__hamburger-line {
    margin-top: 5px;
}

/* Hamburger → X animation */
.navbar-moderna__hamburger--open .navbar-moderna__hamburger-line:nth-child(1) {
    transform: translateY(7.5px) rotate(45deg);
}

.navbar-moderna__hamburger--open .navbar-moderna__hamburger-line:nth-child(2) {
    opacity: 0;
}

.navbar-moderna__hamburger--open .navbar-moderna__hamburger-line:nth-child(3) {
    transform: translateY(-7.5px) rotate(-45deg);
}

/* =========================
   NAVBAR RESPONSIVE
   ========================= */

@media (max-width: 900px) {
    .navbar-moderna {
        padding: 0 20px;
        height: 64px;
    }

    .navbar-moderna__hamburger {
        display: flex;
    }

    .navbar-moderna__menu {
        position: fixed;
        top: 64px;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 10000;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column;
        align-items: stretch;
        gap: 2px;
        padding: 16px 20px 30px;
        overflow-y: auto;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);
        transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
    }

    .navbar-moderna__menu--open {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .navbar-moderna__link {
        padding: 14px 16px;
        font-size: 1rem;
        border-radius: 12px;
    }

/* Dropdown su mobile: nascosto — il link "Corsi" naviga direttamente a Corsi.html */
    .navbar-moderna__dropdown {
        display: none;
    }

    .navbar-moderna__dropdown-link {
        padding: 11px 14px;
        font-size: 0.92rem;
        border-radius: 8px;
    }

    .navbar-moderna__dropdown-label {
        font-size: 0.72rem;
        padding: 8px 14px 6px;
    }

/* Freccetta dropdown rimossa: il link "Corsi" naviga direttamente */

    /* Menu mobile: occupa almeno metà pagina e scorre bene */
    .navbar-moderna__menu {
        min-height: 60vh;
        max-height: 100vh;
    }

    .navbar-moderna__menu--open {
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
}

@media (max-width: 480px) {
    .navbar-moderna {
        padding: 0 14px;
        height: 60px;
    }

    .navbar-moderna__logo {
        font-size: 1.15rem;
    }

    .navbar-moderna__menu {
        top: 60px;
        padding: 12px 16px 30px;
    }

    .navbar-moderna__link {
        font-size: 0.95rem;
        padding: 12px 14px;
    }

    body {
        padding-top: 60px;
    }
}

/* Contenitore che centra tutto */
.container {
    max-width: 1200px;
    margin: 0 auto; /* Centra la pagina */
    padding: 20px;
}

/* LAYOUT: questa pagina usa principalmente grid (più sotto). */
/* Per la pagina Home (index.html) teniamo .main-layout in flex per evitare conflitti con altre regole. */
.main-layout {
    display: flex;
    gap: 30px; /* Spazio tra le colonne */
    align-items: flex-start;

    /* Allineamento “gentile” con la colonna sinistra */
    justify-content: flex-start;
}


/* Larghezza colonne */
.sidebar { flex: 1; }
.content { flex: 2; background: white; padding: 20px; border-radius: 10px; box-shadow: 0 2px 10px rgba(0,0,0,0.05); }
.extra { flex: 1; }


/* Stile Box */
.box {
    background: #f4f7f6;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

/* Responsività: su mobile torna tutto in fila */
@media (max-width: 900px) {
    .main-layout { flex-direction: column; gap: 20px; }
}

/* Contenitore per l'immagine */
.hero-image {
    width: 100%;       /* Occupa tutta la larghezza */
    text-align: center; /* Centra orizzontalmente il contenuto */
    padding: 20px 0;   /* Aggiunge un po' di spazio sopra e sotto */
}

/* Stile dell'immagine stessa */
.hero-image img {
    max-width: 300px;  /* Puoi cambiare la dimensione qui */
    height: auto;      /* Mantiene le proporzioni */
    display: block;    /* Fondamentale per far funzionare il margin */
    margin: 0 auto;    /* Centra l'immagine nel suo blocco */
}
.grid-corsi {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}
.corso-box { 
    border: 1px solid #ddd;
    padding: 20px;
    border-radius: 8px;
    background: #fff;
    transition: 0.3s;
}
.corso-box:hover { box-shadow: 0 5px 15px rgba(0,0,0,0.1); }
.btn { display: inline-block; margin-top: 10px; color: #3498db; text-decoration: none; font-weight: bold; }

/* --- Home: layout 3 colonne (Sicurezza a sinistra, Corsi al centro, Mezzi a destra) --- */
.home-columns {
    display: grid;
    grid-template-columns: 280px 1fr 280px;
    gap: 30px;
    align-items: start;
    margin-top: 10px;
}

.home-sidebar {
    min-width: 0;
}

.home-content--center {
    width: 100%;
}

/* --- Sezione "Corsi" (centrata) --- */

.corsi-hero {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 18px 16px;
    margin-bottom: 18px;
    border-radius: 16px;
    background: linear-gradient(180deg, #ffffff 0%, #eef7fd 100%);
    border: 1px solid rgba(52, 152, 219, 0.15);
    box-shadow: 0 8px 24px rgba(0,0,0,0.04);
}

.corsi-hero__badge {
    flex: 0 0 auto;
    font-weight: 900;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    font-size: 0.75rem;
    color: #1e6fb2;
    background: rgba(52, 152, 219, 0.10);
    border: 1px solid rgba(52, 152, 219, 0.25);
    padding: 10px 12px;
    border-radius: 999px;
    white-space: nowrap;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}

.corsi-hero[data-tilt]:hover .corsi-hero__badge {
    background: rgba(52, 152, 219, 0.14);
    border-color: rgba(52, 152, 219, 0.35);
    transform: translateY(-2px);
}


.corsi-hero__title {
    text-align: center;
    font-size: 1.8rem;
    color: #2c3e50;
    margin: 0;
    line-height: 1.15;
    letter-spacing: -0.5px;
}

.corsi-hero__subtitle {
    text-align: center;
    font-size: 0.95rem;
    color: #6b7c8a;
    margin-top: 6px;
}

/* --- Griglia quadrati --- */
.corsi-squares {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 18px;
    align-items: stretch;
    justify-items: stretch;
}

/* Card quadrata */
.corsi-square-card {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    text-decoration: none;
    color: inherit;
    border-radius: 18px;
    position: relative;
    transform: translateZ(0);
    transition: box-shadow 0.25s ease, border-color 0.25s ease, background 0.25s ease, transform 0.25s ease;
    border: 1px solid rgba(237, 242, 247, 1);
    background: #ffffff;
    overflow: hidden;
}

.corsi-square-card::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(52, 152, 219, 0.24), transparent 56%);
    opacity: 0;
    transition: opacity 0.25s ease;
    z-index: 0;
}

.corsi-square-card:hover {
    box-shadow: 0 22px 46px rgba(0,0,0,0.12);
    border-color: rgba(52, 152, 219, 0.40);
    background: #fbfdff;
    transform: translateY(-3px);
}

.corsi-square-card:hover::before {
    opacity: 1;
}

.corsi-square-inner {
    position: relative;
    z-index: 1;
    height: 100%;
    padding: 18px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 10px;
}

.corsi-square-meta {
    display: flex;
    justify-content: center;
    min-height: 22px;
}

.corsi-square-tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 7px 10px;
    border-radius: 999px;
    background: rgba(52, 152, 219, 0.08);
    border: 1px solid rgba(52, 152, 219, 0.18);
    color: #2c7fc1;
    font-weight: 900;
    font-size: 0.72rem;
    letter-spacing: 0.2px;
}

.corsi-square-inner h3 {
    font-size: clamp(0.78rem, 1vw, 0.98rem);
    color: #2c3e50;
    line-height: 1.25;
    font-weight: 850;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.corsi-square-inner p {
    color: #6b7c8a;
    font-size: clamp(0.72rem, 0.95vw, 0.9rem);
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* bottoncino */
.corsi-square-inner .btn {
    display: inline-block;
    margin-top: 4px;
    padding: 9px 12px;
    border-radius: 999px;
    background: rgba(52, 152, 219, 0.08);
    border: 1px solid rgba(52, 152, 219, 0.25);
    color: #3498db;
    font-weight: 900;
    text-align: center;
    align-self: flex-start;
    transition: transform 0.2s ease, background 0.2s ease;
}

.corsi-square-card:hover .btn {
    background: rgba(52, 152, 219, 0.14);
    transform: translateY(-2px);
}

@media (max-width: 1100px) {
    .home-columns {
        grid-template-columns: 240px 1fr 240px;
        gap: 20px;
    }
}

@media (max-width: 900px) {
    .home-columns {
        grid-template-columns: 1fr;
    }

    .corsi-hero {
        flex-direction: column;
        text-align: center;
    }

    .corsi-hero__badge {
        margin-bottom: 6px;
    }

    .corsi-squares {
        grid-template-columns: repeat(2, minmax(140px, 1fr));
    }
}

@media (max-width: 520px) {
    .corsi-squares {
        grid-template-columns: 1fr;
    }
}



/* Layout principale pagina corso */
.articolo-corso {
    max-width: 800px; /* Larghezza ideale per la lettura del testo */
    margin: 40px auto;
    padding: 30px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

.articolo-corso h1 {
    color: #2c3e50;
    margin-bottom: 20px;
    border-bottom: 3px solid #3498db;
    padding-bottom: 10px;
}

.articolo-corso h3 {
    margin: 25px 0 15px 0;
    color: #34495e;
}

/* Elenchi puntati professionali */
.articolo-corso ul {
    list-style: none;
    margin-left: 10px;
}

.articolo-corso ul li {
    margin-bottom: 10px;
    padding-left: 20px;
    position: relative;
}

.articolo-corso ul li::before {
    content: "✓"; /* Icona di spunta stilizzata */
    color: #27ae60;
    position: absolute;
    left: 0;
    font-weight: bold;
}

/* Box riassuntivo (Info Corso) */
.info-box {
    background: #eef7fd;
    border-left: 5px solid #3498db;
    padding: 20px;
    margin-top: 30px;
    border-radius: 0 8px 8px 0;
}

.info-box p {
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.cta-button {
    display: inline-block;
    background: #e67e22; /* Arancione per attirare il click */
    color: white;
    padding: 12px 25px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    margin-top: 15px;
}

.cta-button:hover { background: #d35400; }

/* --- Animazioni premium sparse ---
   Il motore è layout.js (GSAP+ScrollTrigger). Qui impostiamo solo lo stato iniziale
   per gli elementi marcati con data-anim.
*/

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

/* Stato iniziale: usato da layout.js. Non crea effetti di "flash" se GSAP non carica. */
/* Stato iniziale animazioni:
   impedisce flash ma NON deve lasciare la pagina invisibile.
   Se layout.js/GSAP non caricano, riportiamo a visibile con JS.
   In caso contrario l'utente vede almeno il contenuto. */
[data-anim] {
    opacity: 1;
    transform: none;
}


[data-anim="fade-in"] {
    transform: none;
}

[data-anim="zoom-in"] {
    transform: scale(0.98);
}

[data-anim="left-to-right"] {
    transform: translate3d(-18px, 0, 0);
}

[data-anim="right-to-left"] {
    transform: translate3d(18px, 0, 0);
}

@media (prefers-reduced-motion: reduce) {
    [data-anim] {
        opacity: 1;
        transform: none;
    }
}

.corso-box {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}


.corso-box:hover {
    transform: translateY(-10px); /* Il box si solleva */
    box-shadow: 0 10px 20px rgba(0,0,0,0.15); /* L'ombra si intensifica */
}

.nav-links {
    transition: max-height 0.4s ease, opacity 0.4s ease;
    overflow: hidden;
}

/* Il container avvolge tutto e lo centra nella pagina */
.container {
    max-width: 1200px;
    margin: 0 auto; /* Questo centra tutto il sito */
    padding: 0 20px;
}

/* Layout a 3 colonne (DISABILITATO per evitare conflitti su Home/index.html) */
/* .main-layout {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    gap: 30px;
    margin-top: 40px;
}

@media (max-width: 900px) {
    .main-layout {
        grid-template-columns: 1fr;
    }
}
*/


/* Stile Premium per il contenitore 'Chi Siamo' */
.content-premium {
    background: #ffffff;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05); /* Ombra più morbida */
    border: 1px solid #f0f0f0;
}

.content-premium h1 {
    color: #2c3e50;
    font-size: 2.2rem;
    margin-bottom: 25px;
    border-left: 5px solid #3498db; /* Accento laterale elegante */
    padding-left: 15px;
}

.content-premium h2 {
    color: #34495e;
    margin: 30px 0 15px 0;
    font-size: 1.5rem;
}

/* Stile per i box informativi (es. la parte 'Cosa facciamo') */
.highlight-box {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 10px;
    margin: 20px 0;
    border-left: 4px solid #e67e22; /* Accento arancio come il tasto call-to-action */
}

/* Elenchi eleganti */
.content-premium ul {
    list-style: none;
    margin: 15px 0;
}

.content-premium ul li {
    margin-bottom: 12px;
    line-height: 1.6;
    padding-left: 25px;
    position: relative;
}

.content-premium ul li::before {
    content: "•";
    color: #3498db;
    font-weight: bold;
    position: absolute;
    left: 0;
    font-size: 1.2rem;
}

.logo-container {
    height: 300px; /* Spazio iniziale per il logo */
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.5s ease; /* Transizione fluida */
}

.main-logo {
    width: 250px;
    transition: all 0.5s ease;
}

.lista-requisiti {
    display: flex;
    flex-direction: column;
    gap: 15px; /* Spazio tra una riga e l'altra */
    margin-top: 15px;
}

.lista-requisiti .item {
    background: #f9f9f9;
    padding: 12px 15px;
    border-radius: 6px;
    border-left: 4px solid #3498db; /* Un tocco di colore che richiama il sito */
    display: flex;
    flex-direction: column;
}

.lista-requisiti .item strong {
    color: #2c3e50;
    font-size: 0.95rem;
    margin-bottom: 4px;
}

.lista-requisiti .item small {
    color: #666;
    line-height: 1.4;
}

/* Rimuove l'aspetto classico del link */
.sidebar .box ul li a {
    text-decoration: none;      /* Toglie la sottolineatura */
    color: #333;               /* Colore grigio scuro professionale invece del blu */
    display: block;            /* Rende l'intero spazio cliccabile */
    padding: 10px 0;           /* Aggiunge lo spazio verticale tra un link e l'altro */
    transition: color 0.3s;    /* Transizione morbida al passaggio del mouse */
}

/* Effetto al passaggio del mouse */
.sidebar .box ul li a:hover {
    color: #3498db;            /* Un tocco di colore solo quando ci passi sopra */
}

/* Titolo “Menù corsi” cliccabile */
.menu-corsi-title{
    display: block;
    font-weight: 950;
    color: #2c3e50;
    text-decoration: none;
    margin-bottom: 10px;
}

.menu-corsi-title:hover{
    color: #3498db;
}

.menu-corsi-list{
    margin-top: 0;
}

/* Forza l'elenco puntato se non apparisse */
.sidebar .box ul {
    list-style-type: disc;     /* Ripristina i pallini (elenco puntato) */
    padding-left: 20px;        /* Spazio necessario per far vedere i pallini */
}

/* Opzionale: una linea sottile tra un link e l'altro per separare bene */
.sidebar .box ul li {
    border-bottom: 1px solid #eee;
}
.sidebar .box ul li:last-child {
    border-bottom: none;       /* Rimuove l'ultima linea per pulizia */
}

/* Struttura base: Sidebar a sinistra, Contenuto a destra */
.main-layout {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Rimuovi il margin-top dal breadcrumb */
.breadcrumb {
    padding: 10px 20px; /* Ridotto da 15px a 10px per compattare */
    font-size: 0.85rem;
    color: #999;
    background: #fdfdfd;
    border-bottom: 1px solid #eee;
    /* Se la navbar è fissa, usa il padding-top sul body */
}

/* Padding top per navbar (gestito dalla navbar moderna sopra) */
/* Nota: obsolete - ora gestito dalla regola body { padding-top: 80px } più sopra */

/* Evita di nascondere elementi se la classe .current viene usata senza controllo */
.current {
    opacity: 1;
    animation: none;
}


@keyframes fadeIn {
    to { opacity: 1; }
}

/* Stile Premium per il blocco Hero */
.hero-title {
    text-align: center;      /* Centra il testo */
    padding: 60px 20px;      /* Spazio interno generoso */
    margin-bottom: 20px;     /* Distanza dai corsi sotto */
    background: #ffffff;     /* Sfondo pulito */
}

.hero-title h1 {
    font-family: 'Segoe UI', Arial, sans-serif; /* Font moderno */
    font-size: 2.8rem;       /* Titolo grande e d'impatto */
    color: #2c3e50;          /* Blu scuro professionale */
    letter-spacing: -1px;    /* Leggera chiusura tra le lettere per eleganza */
    margin-bottom: 15px;
    text-transform: uppercase; /* Effetto titolo importante */
}

.hero-title p {
    font-size: 1.2rem;       /* Testo leggermente più grande */
    color: #7f8c8d;          /* Grigio medio per non dare contrasto eccessivo */
    letter-spacing: 2px;     /* Spaziatura ampia tipica dei siti di lusso */
    font-weight: 300;        /* Font leggero */
    text-transform: uppercase;
}

.hero-title::after {
    content: "";
    display: block;
    width: 60px;
    height: 3px;
    background: #3498db;
    margin: 20px auto 0 auto; /* Centra la linea sotto il paragrafo */
    border-radius: 2px;
}

/* =========================
   Hero Modern (Homepage)
   ========================= */

.hero-modern {
    text-align: center;
    padding: 48px 20px 36px;
    margin-bottom: 16px;
    border-radius: 24px;
    background: linear-gradient(160deg, #f0f8ff 0%, #e6f0fa 40%, #ffffff 100%);
    border: 1px solid rgba(52, 152, 219, 0.12);
    box-shadow: 0 12px 40px rgba(0,0,0,0.04);
    position: relative;
    overflow: hidden;
}

.hero-modern::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: radial-gradient(circle at 70% 10%, rgba(52, 152, 219, 0.10), transparent 50%);
    pointer-events: none;
}

.hero-modern__content {
    position: relative;
    z-index: 1;
    max-width: 740px;
    margin: 0 auto;
}

.hero-modern__badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 16px;
    border-radius: 999px;
    background: rgba(52, 152, 219, 0.10);
    border: 1px solid rgba(52, 152, 219, 0.22);
    font-size: 0.80rem;
    font-weight: 900;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    color: #1e6fb2;
    margin-bottom: 16px;
}

.hero-modern__title {
    font-size: clamp(2.0rem, 4.5vw, 3.2rem);
    font-weight: 900;
    color: #1a2634;
    line-height: 1.15;
    letter-spacing: -0.8px;
    margin: 0 0 12px;
}

.hero-modern__highlight {
    background: linear-gradient(135deg, #1e6fb2, #3498db);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-modern__subtitle {
    font-size: clamp(1.0rem, 1.5vw, 1.2rem);
    color: #4a5a6a;
    font-weight: 500;
    line-height: 1.5;
    max-width: 560px;
    margin: 0 auto 24px;
}

.hero-modern__actions {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 36px;
}

.hero-modern__btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 999px;
    font-weight: 900;
    font-size: 0.95rem;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.hero-modern__btn--primary {
    background: linear-gradient(135deg, #1e6fb2, #3498db);
    color: #ffffff;
    border: none;
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.30);
}

.hero-modern__btn--primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 32px rgba(52, 152, 219, 0.40);
}

.hero-modern__btn--secondary {
    background: rgba(255,255,255,0.85);
    color: #2c3e50;
    border: 1px solid rgba(52, 152, 219, 0.25);
    backdrop-filter: blur(4px);
}

.hero-modern__btn--secondary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    background: #ffffff;
}

/* Statistiche */
.hero-modern__stats {
    display: flex;
    gap: 24px;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-modern__stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 12px 20px;
    border-radius: 16px;
    background: rgba(255,255,255,0.70);
    border: 1px solid rgba(52, 152, 219, 0.12);
    backdrop-filter: blur(4px);
    min-width: 110px;
}

.hero-modern__stat-number {
    font-size: 1.1rem;
    font-weight: 950;
    color: #1e6fb2;
    letter-spacing: -0.3px;
    line-height: 1.2;
}

.hero-modern__stat-label {
    font-size: 0.80rem;
    color: #5a6a7a;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.2px;
}

@media (max-width: 600px) {
    .hero-modern {
        padding: 32px 16px 24px;
    }
    .hero-modern__stats {
        gap: 12px;
    }
    .hero-modern__stat {
        min-width: 90px;
        padding: 10px 14px;
    }
    .hero-modern__btn {
        width: 100%;
        justify-content: center;
    }
}

/* --- CORREZIONI E PULIZIA --- */

/* Rimuovi il blocco body { opacity: 0 } che ti rendeva la pagina bianca */

/* Layout principale a griglia — gestito nella sezione MOBILE OPTIMIZATION */




/* Assicurati che il contenitore principale non sia nascosto */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Footer legale (indirizzo + loghi futuri) */
.site-footer {
    margin-top: 40px;
    padding: 26px 20px;
    background: #f8fbff;
    border-top: 1px solid #eee;
}

.site-footer__inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.4fr 0.6fr;
    gap: 18px;
    align-items: start;
}

.site-footer__title {
    font-weight: 900;
    color: #2c3e50;
    margin-bottom: 8px;
}

.site-footer__text {
    color: #34495e;
    line-height: 1.6;
    font-size: 0.95rem;
}

.site-footer__logos {
    display: flex;
    flex-wrap: nowrap; /* tutti in una riga */
    flex-direction: row;
    justify-content: flex-end; /* a destra dove sono ora */
    align-items: center;
    gap: 12px;
    min-height: 40px;
}




/* Credito footer - Realizzato e disegnato da Giuseppe Perri */
.site-footer-credits {
    text-align: center;
    padding: 14px 20px;
    font-size: 0.82rem;
    color: #7a8a9a;
    background: #f0f5fa;
    border-top: 1px solid rgba(52, 152, 219, 0.10);
    font-weight: 600;
    letter-spacing: 0.2px;
}

.site-footer-credits a {
    color: #1e6fb2;
    text-decoration: none;
    font-weight: 800;
    transition: color 0.2s ease;
}

.site-footer-credits a:hover {
    color: #3498db;
    text-decoration: underline;
}

/* Spazio riservato per i loghi (placeholder, se presenti in qualche pagina) */
.site-footer__logo-slot {
    width: 92px;
    height: 42px;
    border-radius: 8px;
    border: 1px dashed rgba(52, 152, 219, 0.25);
    background: rgba(52, 152, 219, 0.04);
}

/* Loghi reali nel footer */
.site-footer__logo {
    width: 140px;
    height: 60px;
    object-fit: contain;
    display: block;
}


/* Mantieni i loghi grandi e allineati a destra */
.site-footer__logos img {
    max-width: 140px;
    max-height: 60px;
}




@media (max-width: 900px) {
    .site-footer__inner {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .site-footer__logos {
        justify-content: center;
        align-items: center;
        flex-wrap: wrap;
        gap: 10px;
    }
    .site-footer__logo {
        max-width: 100px;
        max-height: 48px;
    }
    .site-footer__text {
        font-size: 0.88rem;
    }
}




/* =========================
   Riquadri enti certificatori
   ========================= */

.enti-certificazioni-strip {
    max-width: 1200px;
    margin: 18px auto 0 auto;
    padding: 0 20px;
}

.enti-certificazioni-strip__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    align-items: stretch;
}

.ente-cert-box {
    border-radius: 18px;
    background: #ffffff;
    border: 1px solid rgba(52, 152, 219, 0.20);
    box-shadow: 0 10px 30px rgba(0,0,0,0.04);
    padding: 18px 18px;
    overflow: hidden;
    position: relative;
}

.ente-cert-box::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: radial-gradient(circle at var(--mx, 30%) var(--my, 20%), rgba(52, 152, 219, 0.22), transparent 55%);
    opacity: 0;
    transition: opacity 0.25s ease;
}

.ente-cert-box:hover::before {
    opacity: 1;
}

.ente-cert-box__inner {
    position: relative;
    z-index: 1;
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.ente-cert-box__icon {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    background: rgba(52, 152, 219, 0.10);
    border: 1px solid rgba(52, 152, 219, 0.22);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex: 0 0 auto;
}

.ente-cert-box__title {
    font-size: 1.15rem;
    font-weight: 950;
    color: #2c3e50;
    margin-bottom: 8px;
    letter-spacing: -0.2px;
    line-height: 1.2;
}

.ente-cert-box__text {
    color: #34495e;
    line-height: 1.55;
    font-weight: 650;
    font-size: 0.95rem;
}

@media (max-width: 900px) {
    .enti-certificazioni-strip__grid {
        grid-template-columns: 1fr;
    }

    .enti-certificazioni-strip {
        padding: 0 14px;
    }
}

/* Stile per la sezione contatti premium */

.contact-list {
    list-style: none;
    padding: 0;
}

.contact-item {
    margin-bottom: 15px;
    padding: 10px;
    border-bottom: 1px solid #eee;
}

/* --- LOOK PREMIUM (Contatti) --- */
.contact-container { 
    max-width: 1100px; 
    margin: 40px auto 60px; 
    padding: 0 20px; 
}

.cards-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); 
    gap: 22px; 
}

.premium-card { 
    background: #ffffff; 
    padding: 22px 20px; 
    border-radius: 18px; 
    box-shadow: 0 10px 30px rgba(0,0,0,0.06); 
    text-align: left; 
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    border: 1px solid rgba(52, 152, 219, 0.18);
    position: relative;
    overflow: hidden;
}

.premium-card::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: radial-gradient(circle at var(--mx, 50%) var(--my, 20%), rgba(52, 152, 219, 0.22), transparent 55%);
    opacity: 0;
    transition: opacity 0.25s ease;
    z-index: 0;
}

.premium-card:hover { 
    transform: translateY(-6px);
    box-shadow: 0 22px 46px rgba(0,0,0,0.12);
    border-color: rgba(52, 152, 219, 0.38);
}

.premium-card:hover::before {
    opacity: 1;
}

.premium-card__inner {
    position: relative;
    z-index: 1;
}

.icon-box { 
    width: 54px; 
    height: 54px; 
    background: rgba(52, 152, 219, 0.10); 
    color: #2c3e50; 
    border-radius: 16px; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    font-size: 22px; 
    margin-bottom: 12px;
    border: 1px solid rgba(52, 152, 219, 0.22);
}

.premium-card h2 {
    font-size: 1.05rem;
    color: #2c3e50;
    margin: 0 0 10px;
    letter-spacing: -0.2px;
}

.contact-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

.contact-field {
    padding: 10px 12px;
    background: #f8fbff;
    border: 1px solid rgba(52, 152, 219, 0.12);
    border-radius: 12px;
}

.contact-field__label {
    font-weight: 800;
    color: #2c3e50;
    font-size: 0.86rem;
    margin-bottom: 6px;
}

.contact-field__value {
    color: #34495e;
    font-weight: 700;
}

.contact-link {
    color: #1e6fb2;
    text-decoration: none;
    font-weight: 800;
}

.contact-link:hover {
    text-decoration: underline;
}

@media (max-width: 520px) {
    .contact-container { padding: 0 14px; }
    .premium-card { padding: 18px 14px; }
}


/* =========================
   Form di Contatto (Richiedi Informazioni)
   ========================= */

.form-section {
    max-width: 800px;
    margin: 50px auto 60px;
    padding: 0 20px;
}

.form-section__title {
    text-align: center;
    font-size: 1.8rem;
    color: #2c3e50;
    margin-bottom: 10px;
    letter-spacing: -0.5px;
}

.form-section__subtitle {
    text-align: center;
    font-size: 1rem;
    color: #6b7c8a;
    margin-bottom: 30px;
}

.form-section__divider {
    width: 60px;
    height: 3px;
    background: #3498db;
    margin: 0 auto 30px;
    border-radius: 2px;
}

.contact-form {
    background: #ffffff;
    padding: 35px 30px;
    border-radius: 18px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.06);
    border: 1px solid rgba(52, 152, 219, 0.18);
}

.contact-form__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.contact-form__grid .form-group--full {
    grid-column: 1 / -1;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-label {
    font-weight: 800;
    color: #2c3e50;
    font-size: 0.86rem;
    letter-spacing: 0.2px;
}

.form-label__required {
    color: #e74c3c;
    margin-left: 2px;
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid rgba(52, 152, 219, 0.22);
    border-radius: 12px;
    font-size: 0.95rem;
    font-family: inherit;
    color: #2c3e50;
    background: #f8fbff;
    transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
    outline: none;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.12);
    background: #ffffff;
}

.form-input:hover,
.form-select:hover,
.form-textarea:hover {
    border-color: rgba(52, 152, 219, 0.40);
}

.form-textarea {
    min-height: 120px;
    resize: vertical;
    line-height: 1.5;
}

.form-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%233498db' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 40px;
    cursor: pointer;
}

.form-submit {
    grid-column: 1 / -1;
    text-align: center;
    margin-top: 8px;
}

.form-submit__btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 40px;
    border-radius: 999px;
    font-weight: 900;
    font-size: 1rem;
    color: #ffffff;
    background: linear-gradient(135deg, #1e6fb2, #3498db);
    border: none;
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.30);
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    letter-spacing: 0.3px;
}

.form-submit__btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 32px rgba(52, 152, 219, 0.40);
}

.form-submit__btn:active {
    transform: translateY(-1px);
}

.form-note {
    grid-column: 1 / -1;
    text-align: center;
    font-size: 0.82rem;
    color: #8a9aa8;
    margin-top: 4px;
}

@media (max-width: 600px) {
    .contact-form__grid {
        grid-template-columns: 1fr;
    }

    .contact-form {
        padding: 25px 18px;
    }

    .form-section {
        margin: 30px auto 40px;
    }
}



/* ============================================================
   MOBILE OPTIMIZATION — TUTTE LE MODIFICHE SOLO MOBILE
   ============================================================ */

/* La regola .main-layout a una colonna su mobile */
@media (max-width: 900px) {
    .main-layout {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* Sidebar mobile compatta e touch-friendly */
@media (max-width: 900px) {
    .sidebar .box {
        padding: 14px 12px;
    }
    .sidebar .box ul {
        padding-left: 14px;
    }
    .sidebar .box ul li a {
        padding: 10px 0;
        font-size: 0.88rem;
    }
    .menu-corsi-title {
        font-size: 1rem;
        margin-bottom: 8px;
    }
}

/* Container padding ridotto su mobile */
@media (max-width: 900px) {
    .container {
        padding: 16px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 12px;
    }
}

/* Hero image su mobile più piccola ma visibile (non nascosta) */
@media (max-width: 900px) {
    .hero-image {
        padding: 10px 0;
    }
    .hero-image img {
        max-width: 200px;
    }
}

@media (max-width: 480px) {
    .hero-image img {
        max-width: 160px;
    }
}

/* Articolo corso mobile - padding ridotto */
@media (max-width: 900px) {
    .articolo-corso {
        padding: 20px;
        margin: 20px auto;
    }
    .articolo-corso h1 {
        font-size: 1.5rem;
    }
}

/* Content premium mobile */
@media (max-width: 900px) {
    .content-premium {
        padding: 24px 16px;
    }
    .content-premium h1 {
        font-size: 1.6rem;
    }
}

/* Info box e highlight box mobile */
@media (max-width: 900px) {
    .info-box {
        padding: 16px;
    }
    .highlight-box {
        padding: 18px;
    }
}

/* Corsi squares mobile - migliore griglia */
@media (max-width: 520px) {
    .corsi-squares {
        grid-template-columns: 1fr;
        gap: 14px;
    }
    .corsi-square-inner {
        padding: 14px;
    }
    .corsi-square-inner h3 {
        font-size: 0.92rem;
    }
}

/* Corsi-box mobile padding */
@media (max-width: 900px) {
    .corso-box {
        padding: 16px;
    }
    .corso-box h3 {
        font-size: 0.92rem;
    }
}

/* Form contatti mobile */
@media (max-width: 600px) {
    .form-section__title {
        font-size: 1.4rem;
    }
    .form-section__subtitle {
        font-size: 0.9rem;
    }
}

/* Premium cards mobile */
@media (max-width: 520px) {
    .premium-card {
        padding: 16px 12px;
    }
    .premium-card h2 {
        font-size: 0.95rem;
    }
    .contact-field {
        padding: 8px 10px;
    }
}

/* Footer crediti mobile */
@media (max-width: 600px) {
    .site-footer-credits {
        font-size: 0.75rem;
        padding: 12px 14px;
        line-height: 1.5;
    }
}

/* Hero modern mobile migliorato */
@media (max-width: 480px) {
    .hero-modern__title {
        font-size: 1.6rem;
    }
    .hero-modern__subtitle {
        font-size: 0.9rem;
    }
}

/* Evita scroll orizzontale su mobile */
@media (max-width: 900px) {
    html, body {
        overflow-x: hidden;
        width: 100%;
    }
    img, video, iframe {
        max-width: 100%;
        height: auto;
    }
}

/* Eleggibilità touch per tutti i bottoni/links su mobile */
@media (max-width: 900px) {
    a, button, .btn, .cta-button {
        touch-action: manipulation;
    }
}

/* ============================================================
   ANIMAZIONI PREMIUM — "SITO VIVO"
   ============================================================ */

/* --- Smooth scroll globale --- */
html {
    scroll-behavior: smooth;
}

/* --- Page Transition Overlay --- */
.page-transition-overlay {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: #0f1a2b;
    pointer-events: none;
    opacity: 0;
    will-change: opacity, transform;
}

.page-transition-overlay--active {
    pointer-events: all;
}

/* --- Mouse Follower (cursore alone) --- */
.mouse-follower {
    position: fixed;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(52, 152, 219, 0.10);
    border: 1.5px solid rgba(52, 152, 219, 0.25);
    pointer-events: none;
    z-index: 99998;
    transform: translate(-50%, -50%);
    will-change: transform, width, height, background;
    transition: width 0.4s ease, height 0.4s ease, background 0.4s ease, border-color 0.4s ease;
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
}

.mouse-follower--lg {
    width: 52px;
    height: 52px;
    background: rgba(52, 152, 219, 0.06);
    border-color: rgba(52, 152, 219, 0.15);
}

/* Nascondi su mobile / touch */
@media (hover: none) and (pointer: coarse) {
    .mouse-follower {
        display: none;
    }
}

/* --- Particelle fluttuanti (hero sections) --- */
.hero-particles {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

.hero-particle {
    position: absolute;
    width: var(--p-size, 6px);
    height: var(--p-size, 6px);
    background: rgba(52, 152, 219, var(--p-alpha, 0.12));
    border-radius: 50%;
    top: var(--p-y, 10%);
    left: var(--p-x, 10%);
    animation: particleFloat var(--p-dur, 12s) ease-in-out infinite;
    animation-delay: var(--p-delay, 0s);
}

.hero-particle:nth-child(odd) {
    background: rgba(52, 152, 219, 0.08);
    border: 1px solid rgba(52, 152, 219, 0.10);
}

@keyframes particleFloat {
    0%, 100% {
        transform: translate(0, 0) scale(1);
        opacity: 0.3;
    }
    25% {
        transform: translate(var(--p-drift-x, 30px), var(--p-drift-y, -20px)) scale(1.1);
        opacity: 0.6;
    }
    50% {
        transform: translate(var(--p-drift-x2, -20px), var(--p-drift-y2, 30px)) scale(0.9);
        opacity: 0.4;
    }
    75% {
        transform: translate(var(--p-drift-x3, 15px), var(--p-drift-y3, -10px)) scale(1.05);
        opacity: 0.5;
    }
}

/* --- Badge shimmer pulse --- */
@keyframes badgeShimmer {
    0% {
        background-position: -200% center;
    }
    100% {
        background-position: 200% center;
    }
}

@keyframes badgePulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(52, 152, 219, 0);
    }
    50% {
        box-shadow: 0 0 0 6px rgba(52, 152, 219, 0.08);
    }
}

.hero-modern__badge--animated {
    animation: badgePulse 2.8s ease-in-out infinite;
}

/* --- Gradient animato per sezioni hero --- */
@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.hero-modern--animated {
    background-size: 200% 200% !important;
    animation: gradientShift 12s ease-in-out infinite;
}

/* --- Animated underline sidebar links --- */
.sidebar .box ul li a {
    position: relative;
    background-image: linear-gradient(90deg, #3498db, #3498db);
    background-size: 0% 2px;
    background-repeat: no-repeat;
    background-position: left bottom;
    transition: background-size 0.35s ease, color 0.3s ease, padding-left 0.3s ease;
    padding-left: 0;
}

.sidebar .box ul li a:hover {
    background-size: 100% 2px;
    padding-left: 6px;
    color: #1e6fb2 !important;
}

/* --- Glow dinamico sulle card (migliorato) --- */
.corso-box {
    position: relative;
    overflow: hidden;
}

.corso-box::after {
    content: '';
    position: absolute;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(52, 152, 219, 0.12), transparent 70%);
    pointer-events: none;
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.5);
    transition: opacity 0.4s ease, transform 0.4s ease;
    will-change: transform, opacity;
    top: var(--glow-y, 50%);
    left: var(--glow-x, 50%);
}

.corso-box:hover::after {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

/* --- Counter animation (statistiche) --- */
.stat-number {
    display: inline-block;
    will-change: opacity, transform;
}

/* --- Stagger children helper --- */
.stagger-children > * {
    will-change: opacity, transform;
}

/* --- Page load shimmer effect --- */
@keyframes pageLoadShimmer {
    0% {
        opacity: 0;
        transform: translateY(8px);
        filter: blur(4px);
    }
    60% {
        filter: blur(0);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.page-shimmer {
    animation: pageLoadShimmer 0.6s ease-out forwards;
}

/* --- Smooth reveal per le card sulla sidebar in mobile --- */
@media (max-width: 900px) {
    .sidebar .box ul li a {
        background-size: 0% 2px;
    }
}

/* Separatore grafico animato */
@keyframes dividerGrow {
    from { width: 0; }
    to { width: 60px; }
}

.hero-modern__content .hero-modern__badge + .hero-modern__title {
    animation: none;
}

/* --- Effetto shine per CTA buttons --- */
@keyframes ctaShine {
    0% {
        background-position: -200% center;
    }
    100% {
        background-position: 200% center;
    }
}

.hero-modern__btn--primary {
    background-size: 200% auto !important;
    animation: ctaShine 4s ease-in-out infinite;
}

/* --- Miglioramento transizione card cors (già esistenti) --- */
.corsi-square-card {
    will-change: transform, box-shadow;
}

/* --- Sottile overlay parallax per hero (usato da JS) --- */
.parallax-layer {
    will-change: transform;
}

/* --- Footer crediti animato --- */
.site-footer-credits {
    position: relative;
    overflow: hidden;
}

.site-footer-credits::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(52, 152, 219, 0.3), transparent);
    animation: shimmerLine 3s ease-in-out infinite;
}

@keyframes shimmerLine {
    0%, 100% { transform: translateX(-100%); }
    50% { transform: translateX(100%); }
}

/* Riduzione movimento */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    .mouse-follower,
    .hero-particles,
    .hero-particle,
    .page-transition-overlay {
        display: none !important;
    }
    .hero-modern__badge--animated,
    .hero-modern--animated,
    .hero-modern__btn--primary {
        animation: none !important;
    }
    .site-footer-credits::before {
        animation: none;
        display: none;
    }
    .corso-box::after {
        display: none;
    }
    .sidebar .box ul li a {
        background-size: 0 !important;
        transition: color 0.2s ease;
    }
    .sidebar .box ul li a:hover {
        padding-left: 0;
    }
}



