@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700;900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&display=swap');

@font-face {
    font-family: "ProximaNovaBlack";
    src: url("../fonts/ProximaNova/ProximaNovaBlack/ProximaNovaBlack.eot");
    src: url("../fonts/ProximaNova/ProximaNovaBlack/ProximaNovaBlack.eot?#iefix")format("embedded-opentype"),
        url("../fonts/ProximaNova/ProximaNovaBlack/ProximaNovaBlack.woff") format("woff"),
        url("../fonts/ProximaNova/ProximaNovaBlack/ProximaNovaBlack.ttf") format("truetype");
    font-style: normal;
    font-weight: normal;
    font-display: swap;
}

@font-face {
    font-family: "ProximaNovaBold";
    src: url("../fonts/ProximaNova/ProximaNovaBold/ProximaNovaBold.eot");
    src: url("../fonts/ProximaNova/ProximaNovaBold/ProximaNovaBold.eot?#iefix")format("embedded-opentype"),
        url("../fonts/ProximaNova/ProximaNovaBold/ProximaNovaBold.woff") format("woff"),
        url("../fonts/ProximaNova/ProximaNovaBold/ProximaNovaBold.ttf") format("truetype");
    font-style: normal;
    font-weight: normal;
    font-display: swap;
}

@font-face {
    font-family: "ProximaNovaRegular";
    src: url("../fonts/ProximaNova/ProximaNovaRegular/ProximaNovaRegular.eot");
    src: url("../fonts/ProximaNova/ProximaNovaRegular/ProximaNovaRegular.eot?#iefix")format("embedded-opentype"),
        url("../fonts/ProximaNova/ProximaNovaRegular/ProximaNovaRegular.woff") format("woff"),
        url("../fonts/ProximaNova/ProximaNovaRegular/ProximaNovaRegular.ttf") format("truetype");
    font-style: normal;
    font-weight: normal;
    font-display: swap;
}

/* =============================================
   GRADIENT ANIMATION — Loop infinito sul body
   ============================================= */

body.threeve-page {
    --tv-bg: #8bd5ff;
    --tv-sky: #8fd8ff;
    --tv-purple: #7d4dff;
    --tv-orange: #ff9f2f;
    --tv-orange-2: #ffbb58;
    --tv-orange-3: #fabb84;
    --tv-ink: #171717;
    --tv-white: #ffffff;
    --tv-card: rgba(255, 255, 255, 0.75);
    --tv-line: rgba(0, 0, 0, .08);
    --tv-shadow: 0 8px 32px rgba(32, 42, 79, .10);
    --tv-shadow-lg: 0 24px 64px rgba(32, 42, 79, .14);
    --spring: cubic-bezier(0.34, 1.56, 0.64, 1);
    --smooth: cubic-bezier(0.4, 0, 0.2, 1);
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    color: var(--tv-ink);
    font-family: 'Outfit', 'Roboto', system-ui, -apple-system, sans-serif;

    /* Gradiente animato */
    background: linear-gradient(135deg, #ffffff, #b8e6f8, #6accf1, #8bd5ff);
    background-size: 300% 300%;
    animation: bodyGradientShift 18s ease-in-out infinite;
}

@keyframes bodyGradientShift {
    0% {
        background-position: 0% 0%;
    }

    25% {
        background-position: 100% 0%;
    }

    50% {
        background-position: 100% 100%;
    }

    75% {
        background-position: 0% 100%;
    }

    100% {
        background-position: 0% 0%;
    }
}



.threeve-wrap {
    width: min(1100px, 92vw);
    margin: 0 auto
}

.threeve-nav {
    position: sticky;
    top: 0;
    z-index: 10;
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, .72);
    border-bottom: 1px solid rgba(0, 0, 0, .08);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 4vw;
}

.threeve-nav__brand span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 64px;
    height: 44px;
    padding: 0 16px;
    background: var(--tv-purple);
    color: #fff;
    border-radius: 999px;
    font-weight: 900;
    box-shadow: var(--tv-shadow);
}

.threeve-nav__links {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end
}

.threeve-nav__link {
    text-decoration: none;
    color: var(--tv-ink);
    font-weight: 800;
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .72);
}

.threeve-nav__link.is-active {
    background: var(--tv-orange);
    color: #fff
}

.threeve-hero {
    position: relative;
    overflow: hidden;
    padding: 32px 0 26px;
}

.threeve-cloud {
    position: absolute;
    background: #fff;
    border: 3px solid #111;
    border-radius: 999px;
    filter: drop-shadow(0 8px 14px rgba(0, 0, 0, .08));
}

.threeve-cloud--left {
    width: 180px;
    height: 94px;
    left: -22px;
    top: 42px
}

.threeve-cloud--right {
    width: 220px;
    height: 112px;
    right: -30px;
    top: 30px
}

.threeve-hero__content {
    max-width: 680px;
    position: relative;
    z-index: 1
}

.threeve-hero .threeve-wrap {
    display: grid;
    grid-template-columns: 1.3fr .7fr;
    gap: 28px;
    align-items: center;
}

.threeve-tag {
    display: inline-block;
    padding: 8px 14px;
    border-radius: 999px;
    background: #fff;
    color: #111;
    font-weight: 900;
    box-shadow: var(--tv-shadow);
    margin-bottom: 10px
}

.threeve-hero h1 {
    font-size: clamp(3rem, 9vw, 6rem);
    line-height: .95;
    margin: 0 0 10px;
    font-weight: 1000;
    color: #fff;
    text-shadow: 0 4px 0 rgba(0, 0, 0, .18), 0 12px 30px rgba(0, 0, 0, .12);
}

.threeve-claim {
    font-size: 1.08rem;
    font-weight: 700;
    margin: 0 0 18px
}

.threeve-meta {
    display: grid;
    gap: 10px;
    margin: 18px 0
}

.threeve-meta div,
.threeve-kpi,
.threeve-card,
.threeve-match,
.threeve-playerbox,
.threeve-form {
    background: var(--tv-card);
    border: 1px solid var(--tv-line);
    box-shadow: var(--tv-shadow)
}

.threeve-meta div {
    padding: 12px 16px;
    border-radius: 18px;
    font-weight: 700
}

.threeve-actions,
.threeve-submit,
.threeve-filterbar {
    display: flex;
    gap: 12px;
    flex-wrap: wrap
}

.threeve-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 46px;
    padding: 0 18px;
    border-radius: 999px;
    font-weight: 900;
    text-decoration: none;
    border: 0;
    background: #fff;
    color: #111;
    box-shadow: var(--tv-shadow)
}

.threeve-btn--primary {
    background: var(--tv-purple);
    color: #fff
}

.threeve-hero__ball {
    display: flex;
    align-items: center;
    justify-content: center
}

.threeve-ball {
    width: min(380px, 70vw);
    aspect-ratio: 1;
    background: url('/oncourt3vs3/img/logoOnCourt.png') center center / contain no-repeat;

    position: relative;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.15));

}

/* Eliminiamo fisicamente le linee della palla (cuciture) */
.threeve-ball:before,
.threeve-ball:after {
    display: none !important;
}

.threeve-strip {
    padding: 0 0 8px
}

.threeve-kpis {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px
}

.threeve-kpi {
    padding: 18px 16px;
    border-radius: 22px;
    text-align: center
}

.threeve-kpi span {
    display: block;
    font-size: 1.9rem;
    font-weight: 1000;
    color: var(--tv-purple)
}

.threeve-kpi small {
    font-size: .92rem;
    font-weight: 800
}

.threeve-section {
    padding: 24px 0 18px
}

.threeve-section--alt {
    padding-top: 6px
}

.threeve-section__head {
    margin-bottom: 18px
}

.threeve-section__head h1,
.threeve-section__head h2 {
    margin: 0 0 8px;
    font-weight: 1000
}

.threeve-section__head p {
    margin: 0;
    font-weight: 600
}

.threeve-section__head--small {
    margin-top: 28px
}

.threeve-grid {
    display: grid;
    gap: 16px
}

.threeve-grid--two {
    grid-template-columns: repeat(2, 1fr)
}

.threeve-grid--three {
    grid-template-columns: repeat(3, 1fr)
}

.threeve-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px
}

.threeve-card,
.threeve-playerbox,
.threeve-form {
    border-radius: 24px;
    padding: 20px
}

.threeve-card h3,
.threeve-playerbox h3 {
    margin: 0 0 10px;
    font-weight: 900
}

.threeve-list {
    margin: 10px 0 0;
    padding-left: 18px
}

.threeve-list li {
    margin: 8px 0
}

.threeve-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px
}

.threeve-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(125, 77, 255, .12);
    font-weight: 900
}

.threeve-status {
    font-size: .88rem;
    font-weight: 900;
    padding: 7px 10px;
    border-radius: 999px;
    background: rgba(255, 159, 47, .16)
}

.threeve-match {
    border-radius: 24px;
    padding: 18px
}

.threeve-match__top {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    align-items: center;
    margin-bottom: 12px
}

.threeve-match__teams {
    font-size: 1.15rem;
    font-weight: 900;
    margin-bottom: 10px
}

.threeve-match__meta {
    display: grid;
    gap: 8px;
    font-weight: 700;
    color: #444
}

.threeve-score {
    margin-top: 14px;
    font-size: 2rem;
    font-weight: 1000;
    color: var(--tv-purple)
}

.threeve-field {
    display: grid;
    gap: 8px
}

.threeve-field label {
    font-weight: 900
}

.threeve-form {
    display: grid;
    gap: 16px
}

.threeve-day {
    margin-bottom: 22px
}

.threeve-day__title {
    font-weight: 1000;
    font-size: 1.1rem;
    margin: 0 0 12px
}

.threeve-card--success {
    border: 2px solid rgba(24, 169, 92, .26)
}

.threeve-card--error {
    border: 2px solid rgba(209, 51, 80, .22)
}

.threeve-card--table {
    padding: 14px 14px 8px
}

.threeve-tablehead {
    padding: 6px 8px 14px
}

.threeve-tablehead h2 {
    margin: 0;
    font-weight: 1000
}

.threeve-tablewrap {
    overflow: auto
}

.threeve-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: 18px;
    overflow: hidden
}

.threeve-table th,
.threeve-table td {
    padding: 12px 10px;
    border-bottom: 1px solid rgba(0, 0, 0, .08);
    text-align: left
}

.threeve-table th {
    font-size: .84rem;
    text-transform: uppercase;
    letter-spacing: .04em;
    background: rgba(125, 77, 255, .08)
}

.threeve-table-responsive, .threeve-tablewrap {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

@media (max-width: 768px) {
    .threeve-table-responsive .threeve-table,
    .threeve-tablewrap .threeve-table {
        white-space: nowrap;
    }
    
    /* Sticky first and second columns for better mobile navigation */
    .threeve-table-responsive .threeve-table th:nth-child(1),
    .threeve-table-responsive .threeve-table td:nth-child(1),
    .threeve-tablewrap .threeve-table th:nth-child(1),
    .threeve-tablewrap .threeve-table td:nth-child(1) {
        position: sticky;
        left: 0;
        z-index: 2;
        background: #fff;
    }
    .threeve-table-responsive .threeve-table th:nth-child(2),
    .threeve-table-responsive .threeve-table td:nth-child(2),
    .threeve-tablewrap .threeve-table th:nth-child(2),
    .threeve-tablewrap .threeve-table td:nth-child(2) {
        position: sticky;
        left: 45px;
        z-index: 2;
        background: #fff;
        box-shadow: 2px 0 5px -2px rgba(0,0,0,0.15); /* Shadow to separate from scrolling content */
    }
    
    /* Ensure sticky headers have higher z-index and solid background */
    .threeve-table-responsive .threeve-table th:nth-child(1),
    .threeve-table-responsive .threeve-table th:nth-child(2),
    .threeve-tablewrap .threeve-table th:nth-child(1),
    .threeve-tablewrap .threeve-table th:nth-child(2) {
        z-index: 3;
        background: #f4f1fb; /* Solid background mimicking the rgba above */
    }
}

.threeve-footer {
    padding: 28px 0 36px
}

.threeve-footer p {
    margin: 0;
    text-align: center;
    font-weight: 700;
    color: #333
}

@media (max-width: 900px) {

    .threeve-hero .threeve-wrap,
    .threeve-grid--two,
    .threeve-grid--three,
    .threeve-cards,
    .threeve-kpis {
        grid-template-columns: 1fr;
    }

    .threeve-hero__ball {
        order: -1
    }
}

.threeve-footer {
    background-color: #ffffff !important;
    /* Forza il fondo bianco */
    margin-top: 80px !important;
    /* Forza lo stacco azzurro */
    padding: 60px 0;
    /* Spazio interno */
    border-top: 1px solid var(--tv-line);
    display: block;
    width: 100%;
}

/* Facciamo ordine anche nel contenuto del footer */
.threeve-footer__contacts {
    text-align: center;
    margin-bottom: 40px;
}

.sponsor-grid {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
    margin-top: 20px;
}

/* Griglia dei loghi */
.ontour-sponsors-container-unique {
    display: flex !important;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
    /* Spazio tra i loghi */
    margin-top: 20px;
}

/* --- OTTIMIZZAZIONE SPONSOR SU MOBILE (sotto i 424px) --- */
@media (max-width: 424px) {

    /* Il contenitore degli sponsor */
    .ontour-sponsors-container-unique {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        /* Forza 2 colonne affiancate */
        gap: 15px !important;
        /* Spazio tra i loghi */
        align-items: center !important;
        justify-items: center !important;
    }

    /* Le immagini degli sponsor */
    .ontour-sponsors-container-unique img {
        max-width: 100% !important;
        /* Impedisce di uscire dalla colonna */
        height: auto !important;
        max-height: 60px !important;
        /* Rimpicciolisce i loghi troppo alti */
        object-fit: contain !important;
        /* Mantiene le proporzioni originali */
    }
}

/* QUESTO È IL TRUCCO: Ogni box ha la stessa dimensione */
.ontour-sponsor-box-unique {
    width: 180px;
    /* Larghezza fissa per tutti */
    height: 80px;
    /* Altezza fissa per tutti */
    display: flex !important;
    align-items: center;
    /* Centra verticalmente */
    justify-content: center;
    /* Centra orizzontalmente */
    background: transparent;
}

/* L'immagine deve stare dentro il suo box senza uscire */
.ontour-sponsor-box-unique img {
    max-width: 100%;
    /* Non supera la larghezza del box */
    max-height: 100%;
    /* Non supera l'altezza del box */
    object-fit: contain;
    /* Mantiene le proporzioni senza tagliare */
    width: auto;
    height: auto;
    display: block !important;
}

/* Rende l'accordion senza bordi extra perché è già dentro la card */
.threeve-card .threeve-accordion {
    border: none;
    background: #fcfcfc;
    /* Un leggero grigio per differenziare la zona tendina */
    padding: 10px;
}

/* Sistema il riquadro dell'accordion */
.threeve-accordion[open] {
    box-shadow: none;
    /* Rimuove l'ombra dentro la card */
    border-bottom: 1px solid var(--tv-line);
}

/* Rende i link del footer uniformi al resto del testo */
.threeve-link {
    color: #333333;
    /* Prende il colore del testo circostante */
    text-decoration: none;
    /* Rimuove la sottolineatura */
    transition: opacity 0.2s;
}

/* Aggiunge un piccolo effetto al passaggio del mouse */
.threeve-link:hover {
    text-decoration: underline;
    opacity: 0.8;
}


/* Stile base */
.threeve-nav-desktop {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.threeve-nav-mobile {
    display: none;
}

/* Nascosto su desktop */

/* Quando lo schermo è piccolo (Smartphone) */
@media (max-width: 768px) {
    .threeve-nav-desktop {
        display: none;
    }

    /* Nasconde il menu completo */
    .threeve-nav-mobile {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 15px;
    }
}

/* --- GESTIONE VISIBILITÀ --- */
/* Di default (su Desktop) */
.mobile-only {
    display: none !important;
}

.desktop-only {
    display: flex !important;
}

/* O block/inline-block a seconda di come era prima */

/* Su schermi piccoli (Mobile: sotto i 768px) */
/* Su schermi piccoli (Mobile: sotto i 768px) */
@media (max-width: 768px) {
    .desktop-only {
        display: none !important;
    }

    .mobile-only {
        display: flex !important;
    }

    /* BLOCCA GLI ELEMENTI AGLI ESTREMI */
    .threeve-nav {
        display: flex !important;
        justify-content: space-between !important;
        /* Spinge a sinistra e a destra */
        align-items: center !important;
        /* Centra verticalmente */
        width: 100% !important;
        /* Fondamentale: prende tutta la larghezza dello schermo */
        box-sizing: border-box !important;
        padding-left: 15px;
        /* Spazio dal bordo sinistro */
        padding-right: 15px;
        /* Spazio dal bordo destro */
    }
}

/* --- STILE HAMBURGER BUTTON --- */
.threeve-menu-toggle {
    background: transparent;
    border: none;
    cursor: pointer;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    padding: 10px;
    position: relative !important;
    z-index: 99 !important;
}

.hamburger-line {
    width: 25px;
    height: 2px;
    background-color: var(--tv-purple, #333);
    /* Usa il tuo colore primario */
    display: block;
    transition: 0.3s;
}


.threeve-mobile-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background-color: rgba(255, 255, 255, 0.98) !important;
    z-index: 99999 !important;
    /* Aumentato ulteriormente */
    display: none;
    /* Inizialmente nascosto */
    flex-direction: column;
    justify-content: flex-start;
    padding-top: 80px;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    display: flex;
}

/* Quando il menu è attivo (aggiunto via JS) */
.threeve-mobile-overlay.is-active {
    display: flex !important;
    /* Forza la visualizzazione */
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    /* Ora può ricevere i click */
}

/* Bottone Chiudi */
.threeve-close-btn {
    position: absolute;
    top: 20px;
    right: 25px;
    background: transparent;
    border: none;
    font-size: 28px;
    color: #333;
    cursor: pointer;
}

/* Link dentro il menu mobile */
.threeve-mobile-links {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    /* Stile Apple: allineati a sinistra, di solito */
    padding: 0 40px;
}

.threeve-mobile-links a {
    text-decoration: none;
    color: #1d1d1f;
    /* Colore scuro Apple */
    font-size: 28px;
    font-weight: 600;
    padding: 15px 0;
    border-bottom: 1px solid #e5e5ea;
    /* Linea separatrice */
    width: 100%;
}

.threeve-mobile-links a:last-child {
    border-bottom: none;
}

@media (max-width: 638px) {

    /* Impedisce al brand di espandersi troppo */
    .threeve-nav__brand {
        max-width: 75%;
        /* Il logo non può superare il 75% dello spazio */
        overflow: hidden;
        /* Nasconde quello che eccede */
        white-space: nowrap;
        /* Impedisce al testo di andare a capo */
        text-overflow: ellipsis;
        /* Se il nome è troppo lungo, aggiunge "..." */
        flex-shrink: 1;
        /* Permette al logo di rimpicciolirsi se serve */
    }

    /* Forza il bottone a rimanere della sua dimensione originale */
    .threeve-menu-toggle {
        flex-shrink: 0;
        /* Il bottone non deve mai rimpicciolirsi */
    }
}

/* Stile per il logo nell'header */
.threeve-nav__brand img {
    max-height: 45px;
    /* Regola l'altezza in base a quanto è alto il tuo header */
    width: auto;
    /* Mantiene le proporzioni */
    display: block;
    /* Evita spazi bianchi sotto l'immagine */
    transition: max-height 0.3s ease;
}

@media (max-width: 640px) {

    /* 1. Il contenitore: dice agli elementi di stare in riga e distanziarsi */
    .threeve-nav {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        flex-wrap: nowrap !important;
        padding: 18px 16px !important;
        gap: 10px !important;
    }

    /* 2. Il logo: gli diciamo che può rimpicciolirsi ma non invadere il bottone */
    .threeve-nav__brand {
        flex: 1 1 auto !important;
        /* Si adatta allo spazio */
        min-width: 0 !important;
        /* Fondamentale: permette al logo di restringersi */
    }

    .threeve-nav__brand img {
        max-height: 30px !important;
        /* Altezza ridotta per il mobile */
        max-width: 100% !important;
        /* Non esce mai dal suo spazio */
        object-fit: contain;
    }

    /* 3. Il bottone: gli diciamo di restare fisso a destra e non rimpicciolirsi mai */
    .threeve-menu-toggle {
        flex: 0 0 auto !important;
        /* Dimensione fissa */
        margin-left: 10px !important;
    }
}

/* Classe per bloccare lo scroll del body senza farlo saltare in cima */
.menu-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
}

/* === STILI TRASFERITI DA INDEX.HTML === */
/* === IMPOSTAZIONI FONT PER I TITOLI (FONT ANCORA) === */
/* Puoi modificare la variabile --font-ancora qui sotto per testare i diversi font.
           Assicurati di aver installato questi font sul tuo computer se non sono font web standard.
           Ho aggiunto anche un font sportivo di Google (Bebas Neue) come fallback. */
@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&display=swap');

:root {
    --font-loupot: 'Loupot', 'Bebas Neue', sans-serif;
    --font-eurostile: 'Eurostile', 'Bebas Neue', sans-serif;
    --font-industry: 'Industry', 'Bebas Neue', sans-serif;
    --font-tstar: 'T-Star', 'Bebas Neue', sans-serif;

    /* ⬇️ CAMBIA QUESTO VALORE PER FARE LE PROVE ⬇️ */
    --font-ancora: var(--font-eurostile);
    /* Prova a scrivere var(--font-industry) o var(--font-loupot) */
}

/* PREVIENI OVERFLOW ORIZZONTALE SU MOBILE */
html,
body {
    overflow-x: hidden !important;
    width: 100%;
    margin: 0;
    padding: 0;
}

.threeve-page {
    overflow-x: hidden !important;
}

.threeve-kpis {
    grid-template-columns: repeat(3, 1fr) !important;
    margin-top: 10px;
}

@media (max-width: 900px) {
    .threeve-kpis {
        grid-template-columns: 1fr !important;
    }
}

.threeve-kpi {
    background: rgba(255, 255, 255, 0.9) !important;
    border: 1px solid rgba(133, 82, 242, 0.15) !important;
    box-shadow: 0 10px 25px rgba(133, 82, 242, 0.05) !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    border-radius: 20px !important;
}

.threeve-kpi:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 30px rgba(133, 82, 242, 0.12) !important;
    border-color: rgba(133, 82, 242, 0.4) !important;
}

.premium-card {
    background: linear-gradient(145deg, #ffffff 0%, #faf9fc 100%);
    border-radius: 20px;
    padding: 35px;
    box-shadow: 0 12px 35px rgba(133, 82, 242, 0.06);
    border: 1px solid rgba(133, 82, 242, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.premium-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #8552F2, #6DDAF2);
    opacity: 0.8;
}

.premium-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(133, 82, 242, 0.12);
    border-color: rgba(133, 82, 242, 0.2);
}

.premium-card h3 {
    color: #171717;
    font-size: 1.4rem;
    font-weight: 800;
    margin-top: 0;
    margin-bottom: 20px;
    border-bottom: 2px solid rgba(133, 82, 242, 0.06);
    padding-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.premium-card h3 i {
    color: #8552F2;
}

.feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 10px;
    border-radius: 12px;
    transition: background-color 0.2s ease;
}

.feature-item:hover {
    background-color: rgba(133, 82, 242, 0.03);
}

.feature-icon {
    background: linear-gradient(135deg, rgba(133, 82, 242, 0.1) 0%, rgba(133, 82, 242, 0.2) 100%);
    color: #8552F2;
    width: 44px;
    height: 44px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.feature-item:hover .feature-icon {
    transform: scale(1.1) rotate(5deg);
    background: linear-gradient(135deg, #8552F2 0%, #6DDAF2 100%);
    color: #fff;
}

.feature-text strong {
    color: #171717;
    display: block;
    font-size: 1rem;
    margin-bottom: 2px;
}

.feature-text span {
    color: #555;
    font-size: 0.88rem;
    line-height: 1.4;
    display: block;
}

.chip-container {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 20px;
}

.premium-chip {
    background: transparent;
    border: 1px solid rgba(133, 82, 242, 0.15);
    color: #171717;
    padding: 10px 20px;
    border-radius: 99px;
    font-weight: 800;
    font-size: 0.9rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.02);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: default;
}

.premium-chip i {
    color: #6DDAF2;
    transition: transform 0.3s ease;
}

.premium-chip:hover {
    background: linear-gradient(135deg, #8552F2 0%, #6DDAF2 100%);
    color: #fff;
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(133, 82, 242, 0.2);
}

.premium-chip:hover i {
    color: #fff;
    transform: rotate(360deg);
}

/* Nuovi stili per il look Premium */
.threeve-gallery {
    position: relative;
    padding: 20px 0 60px 0;
    background-color: transparent;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
    flex-direction: column;
}

.gallery-title {
    font-family: 'Roboto', sans-serif;
    font-weight: 900;
    font-size: 3.5rem;
    color: #ffffff;
    margin-bottom: 20px;
    letter-spacing: 2px;
    font-weight: 400;
    text-align: center;
    width: 100%;
}

.gallery-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    width: 100%;
}

.gal-img {
    border-radius: 24px;
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.15), 0 8px 16px rgba(0, 0, 0, 0.08);
    transition: transform 0.5s var(--spring), box-shadow 0.4s var(--smooth);
    object-fit: cover;
}

.gal-img:hover {
    transform: scale(1.04) translateY(-12px) rotate(1.5deg);
    box-shadow: 0 32px 64px rgba(0, 0, 0, 0.18), 0 12px 24px rgba(0, 0, 0, 0.1);
}

.gal-img-1 {
    width: 300px;
    height: 400px;
    transform: translateY(40px) rotate(-3deg);
}

.gal-img-2 {
    width: 400px;
    height: 500px;
    z-index: 2;
}

.gal-img-3 {
    width: 280px;
    height: 380px;
    transform: translateY(-30px) rotate(4deg);
}

/* --- CATEGORIE NELLA GALLERY --- */
.categories-wrapper {
    margin-top: 60px;
    width: 100%;
    max-width: 1200px;
    text-align: center;
    z-index: 5;
    position: relative;
}

.categories-title {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 1.8rem;
    color: #7d4dff;
    margin-bottom: 30px;
    letter-spacing: 0.05em;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    padding: 0 20px;
}

.category-card {
    background: var(--tv-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: transform 0.4s var(--spring), box-shadow 0.4s var(--smooth);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    cursor: default;
}

.category-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.1), 0 4px 12px rgba(125, 77, 255, 0.1);
    border-color: rgba(125, 77, 255, 0.4);
}

.cat-img-wrapper {
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    position: relative;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.cat-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s var(--spring);
}

.category-card:hover .cat-img-wrapper img {
    transform: scale(1.08);
}

.cat-name {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 1.35rem;
    color: #FF9F2F;
    letter-spacing: 0.02em;
    padding: 22px 15px;
    text-align: center;
}

@media (max-width: 768px) {
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .cat-name {
        font-size: 1rem;
        padding: 15px 10px;
    }
}

@media (max-width: 480px) {
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        padding: 0 10px;
    }

    .cat-name {
        font-size: 0.85rem;
        padding: 12px 5px;
    }
}

.huge-text-section {
    padding: 100px 20px;
    text-align: center;
    overflow: hidden;
}

.huge-text {
    font-size: clamp(4rem, 15vw, 12rem);
    font-weight: 1000;
    color: transparent;
    -webkit-text-stroke: 2px var(--tv-purple);
    line-height: 1;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: -2px;
    white-space: nowrap;
}

.huge-text.filled {
    color: var(--tv-purple);
    -webkit-text-stroke: 0;
    margin-top: -20px;
}

/* --- NEW NAVBAR --- */
@import url('https://fonts.googleapis.com/css2?family=Pacifico&display=swap');

.custom-navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 9999;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 50px;
    box-sizing: border-box;
    background: transparent;
}

.nav-logo {
    font-family: 'Roboto', sans-serif;
    text-transform: uppercase;
    color: #ffffff;
    font-size: 1.5rem;
    font-weight: 900;
    letter-spacing: 2px;
    text-decoration: none;
}

.nav-desktop-links {
    display: flex;
    gap: 25px;
    align-items: center;
}

.nav-link {
    color: #ffffff;
    text-decoration: none;
    font-family: 'Roboto', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.nav-link:hover {
    color: #6DDAF2;
}

.cta-pill {
    background-color: #e50914;
    color: #ffffff;
    font-family: 'Roboto', sans-serif;
    text-transform: uppercase;
    text-decoration: none;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 800;
    letter-spacing: 1px;
    transition: transform 0.2s, background-color 0.2s;
}

.cta-pill:hover {
    background-color: #ff0f1a;
    transform: scale(1.05);
}

/* --- NEW HERO SECTION --- */
.new-hero-section {
    width: 100%;
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    background-image: url('../media/photos/foto10.jpeg');
    background-size: cover;
    background-position: center;
    overflow: hidden;
    margin-bottom: 0px;
}

/* Immagine dell'hero specifica per smartphone/mobile (sotto i 768px di larghezza) */
@media (max-width: 768px) {
    .new-hero-section {
        background-image: url('../media/photos/foto6.jpg');
        /* <-- Inserisci qui l'immagine per mobile */
    }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #000000;
    opacity: 0.4;
    /* Scurito leggermente fisso per migliorare leggibilità */
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 0 5%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
}

.hero-date {
    color: #ffffff;
    font-family: 'Roboto', sans-serif;
    font-size: clamp(0.9rem, 1.5vw, 1.2rem);
    font-weight: 400;
    letter-spacing: 2px;
    margin-bottom: 5px;
    text-transform: uppercase;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.85), 0px 3px 8px rgba(0, 0, 0, 0.7);
}

.hero-location {
    color: #ffffff;
    font-family: 'Roboto', sans-serif;
    font-size: clamp(1.1rem, 2.5vw, 1.8rem);
    font-weight: 800;
    margin-bottom: 5px;
    text-transform: uppercase;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.85), 0px 4px 10px rgba(0, 0, 0, 0.75);
}

.hero-title {
    color: #ffffff;
    font-family: var(--font-ancora);
    font-size: clamp(3rem, 10vw, 8rem);
    /* Ingrandito per dare ancora più impatto */
    font-weight: 1000;
    line-height: 1;
    margin: 0 0 10px 0;
    text-transform: uppercase;
    text-shadow: 3px 3px 0px rgba(0, 0, 0, 0.95), 0px 8px 30px rgba(0, 0, 0, 0.85);
    letter-spacing: -2px;
}

.hero-edition {
    color: var(--tv-orange);
    /* Splendido contrasto con arancione sportivo */
    font-family: var(--font-industry);
    /* Font di supporto (es. Industry) */
    font-size: clamp(1.2rem, 3vw, 2.2rem);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 4px;
    margin-bottom: 20px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.85), 0px 4px 10px rgba(0, 0, 0, 0.75);
}

/* --- COUNTDOWN TIMER MINIMAL --- */
.countdown-wrapper {
    position: relative;
    z-index: 2;
    display: flex;
    gap: 30px;
    justify-content: flex-start;
    margin-top: 10px;
}

.countdown-box {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.countdown-number {
    font-family: 'Roboto', sans-serif;
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 900;
    color: #ffffff;
    line-height: 1;
    margin-bottom: 2px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.85), 0px 4px 12px rgba(0, 0, 0, 0.7);
}

.countdown-label {
    font-family: 'Roboto', sans-serif;
    font-size: 0.8rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 1px;
    text-transform: uppercase;
    opacity: 0.9;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.85), 0px 2px 8px rgba(0, 0, 0, 0.7);
}

.hero-scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    color: #ffffff;
    font-family: 'Roboto', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: opacity 0.3s;
}

.hero-scroll-indicator:hover {
    opacity: 0.7;
}

/* --- PARTNERS SECTION (MARQUEE) --- */
.partners-section {
    width: 100%;
    padding: 50px 0;
    background-color: #ffffff;
    /* Lascia vedere il gradiente teal del body */
    box-sizing: border-box;
    text-align: center;
    position: relative;
    z-index: 5;
    overflow: hidden;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    margin-top: auto;
}

.partners-title {
    font-family: 'Roboto', sans-serif;
    font-size: 1rem;
    color: #7d4dff;
    letter-spacing: 4px;
    margin: 0 0 40px 0;
    text-transform: uppercase;
    font-weight: 800;
}

.marquee-container {
    width: 100%;
    overflow: hidden;
    display: flex;
}

.marquee-track {
    display: flex;
    align-items: center;
    gap: 80px;
    padding-right: 80px;
    /* Compensa il gap alla fine per un loop fluido */
    animation: scrollMarquee 35s linear infinite;
    width: max-content;
}

.marquee-container:hover .marquee-track {
    animation-play-state: paused;
}

.partner-logo {
    max-height: 50px;
    filter: grayscale(0%);
    opacity: 1;
    transition: all 0.3s ease;
    cursor: pointer;
    flex-shrink: 0;
}

.partner-logo:hover {
    transform: scale(1.1);
}

@keyframes scrollMarquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    color: #ffffff;
    font-size: 2.5rem;
    animation: bounce 2s infinite ease-in-out;
    pointer-events: none;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translate(-50%, 0);
    }

    40% {
        transform: translate(-50%, -20px);
    }

    60% {
        transform: translate(-50%, -10px);
    }
}

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;700&display=swap');

/* --- PROGRAMMA SECTION --- */
/* Sfondo trasparente: lascia vedere il gradiente teal fisso del body */
.programma-section {
    background: transparent;
    padding: 60px 20px;
    box-sizing: border-box;
    color: var(--tv-ink);
}

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

.programma-title {
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    color: #7d4dff;
    text-transform: uppercase;
    line-height: 1;
    margin-bottom: 50px;
    letter-spacing: 0.06em;
    text-align: center;
}

.programma-tabs {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 60px;
    flex-wrap: wrap;
}

.prog-tab {
    background: transparent;
    color: #FF9F2F;
    border: 2px solid var(--tv-purple);
    border-radius: 30px;
    padding: 12px 30px;
    font-size: 1rem;
    font-weight: 800;
    font-family: 'Roboto', sans-serif;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
}

.prog-tab.active,
.prog-tab:hover {
    border-color: var(--tv-orange);
    color: #ffffff;
    background: var(--tv-orange);
}

.programma-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.prog-card {
    background: var(--tv-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 20px;
    overflow: hidden;
    transition: transform 0.4s var(--spring), box-shadow 0.4s var(--smooth);
    display: flex;
    flex-direction: column;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.prog-card.hidden {
    display: none !important;
}

.prog-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--tv-shadow-lg);
    border: 1px solid rgba(125, 77, 255, 0.3);
}

.prog-img-wrapper {
    width: 100%;
    aspect-ratio: 16 / 9;
    position: relative;
    overflow: hidden;
}

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

.prog-card:hover .prog-img {
    transform: scale(1.05);
}

.prog-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #8552F2;
    color: #ffffff;
    padding: 6px 14px;
    border-radius: 99px;
    font-size: 0.8rem;
    font-family: 'Roboto', sans-serif;
    font-weight: 900;
    text-transform: uppercase;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    z-index: 2;
}

.prog-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.prog-time {
    color: #555555;
    font-size: 0.9rem;
    font-family: 'Roboto', sans-serif;
    font-weight: 700;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.prog-name {
    color: #FF9F2F;
    font-size: 1.4rem;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    margin: 0 0 20px 0;
    line-height: 1.3;
}

.prog-footer {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--tv-line);
    padding-top: 15px;
}

.prog-price {
    color: var(--tv-purple);
    font-weight: 900;
    font-family: 'Roboto', sans-serif;
    font-size: 1.1rem;
}

.prog-status {
    color: #4CAF50;
    font-size: 0.85rem;
    font-family: 'Roboto', sans-serif;
    font-weight: 800;
    text-transform: uppercase;
}

@media (max-width: 900px) {
    .programma-grid {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        padding-bottom: 15px;
        /* For scrollbar */
        -webkit-overflow-scrolling: touch;
        gap: 20px;
    }

    .prog-card {
        flex: 0 0 85%;
        /* Make card width 85% to show part of the next one */
        scroll-snap-align: center;
    }

    /* Nasconde la scrollbar mantenendo la funzionalità */
    .programma-grid::-webkit-scrollbar {
        height: 6px;
    }

    .programma-grid::-webkit-scrollbar-track {
        background: transparent;
    }

    .programma-grid::-webkit-scrollbar-thumb {
        background-color: rgba(125, 77, 255, 0.4);
        border-radius: 10px;
    }
}


/* --- MAIN FOOTER --- */
.main-footer {
    background: transparent;
    color: #7d4dff;
    padding: 60px 20px 30px 20px;
    text-align: center;
    font-family: 'Roboto', sans-serif;
    border-top: none;
}

.main-footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
}

.footer-logo-img {
    max-height: 150px;
    width: auto;
    margin: 0;
}

.footer-contacts {
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.2rem;
    color: #7d4dff;
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-contact-item:hover {
    color: var(--tv-orange);
    transform: translateY(-2px);
}

.footer-contact-item i {
    font-size: 1.5rem;
    color: var(--tv-orange);
}

.footer-bottom {
    margin-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 30px;
    width: 100%;
    font-size: 0.9rem;
    color: #7d4dff;
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
}

@media (min-width: 768px) {
    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
    }
}

/* --- 5TH EDITION & VIDEO SECTION --- */
/* Sfondo trasparente: unificata con il gradiente animato del body */
.edition-video-section {
    width: 100%;
    background: transparent;
    padding: 50px 20px;
    box-sizing: border-box;
    position: relative;
}



.edition-video-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 60px;
}


.edition-content {
    flex: 1;
}

.edition-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-family: 'Outfit', var(--font-ancora), sans-serif;
    font-weight: 800;
    color: #7d4dff;
    text-transform: uppercase;
    line-height: 1.05;
    margin-bottom: 20px;
    letter-spacing: 0.02em;
}

.edition-desc {
    font-size: 1.1rem;
    color: #1a3d50;
    line-height: 1.7;
    margin-bottom: 0;
    font-weight: 400;
}

.video-vetrina {
    flex: 1;
    width: 100%;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.25), 0 6px 16px rgba(0, 0, 0, 0.12);
    background: #000;
    aspect-ratio: 16 / 9;
    position: relative;
    transition: transform 0.4s var(--spring), box-shadow 0.4s var(--smooth);
}

.video-vetrina:hover {
    transform: translateY(-6px) scale(1.01);
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.3), 0 8px 24px rgba(0, 0, 0, 0.15);
}

.video-vetrina iframe,
.video-vetrina video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    object-fit: cover;
    /* Copre interamente l'area */
    pointer-events: none;
    /* Disattiva click diretti sul video */
}

.video-vetrina-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 5;
    background: transparent;
    pointer-events: auto;
    /* Blocca e assorbe ogni click o tocco */
}

/* --- ISCRIZIONI CARDS SECTION --- */
/* Sfondo trasparente: lascia vedere il gradiente teal fisso del body */
.iscrizioni-section {
    background: transparent;
    padding: 60px 20px;
    box-sizing: border-box;
    text-align: center;
}

.iscrizioni-title {
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    color: #7d4dff;
    text-transform: uppercase;
    line-height: 1;
    margin-bottom: 60px;
    letter-spacing: 0.06em;
    text-align: center;
}

.cards-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    flex-wrap: wrap;
}

.reg-card {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    background: var(--tv-card);
    cursor: pointer;
    box-shadow: var(--tv-shadow);
    text-decoration: none;
}

.reg-card-side {
    width: 300px;
    height: 420px;
}

.reg-card-main {
    width: 350px;
    height: 500px;
    z-index: 2;
}

.reg-card-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.reg-card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.2) 50%, transparent 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 30px 20px;
    box-sizing: border-box;
}

.reg-card-title {
    color: #ffffff;
    font-family: 'Roboto', sans-serif;
    font-size: 1.8rem;
    font-weight: 900;
    text-transform: uppercase;
    margin: 0 0 10px 0;
    line-height: 1.2;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.reg-card-main .reg-card-title {
    font-size: 2.2rem;
    color: var(--tv-orange);
}

.reg-card-btn {
    background: var(--tv-orange);
    color: #ffffff;
    font-family: 'Roboto', sans-serif;
    font-weight: 800;
    text-transform: uppercase;
    padding: 12px 25px;
    border-radius: 30px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.3s ease;
    width: fit-content;
    margin: 0 auto;
}

.reg-card:hover {
    transform: scale(1.05);
    box-shadow: 0 0 40px rgba(133, 82, 242, 0.4);
    z-index: 5;
}

.reg-card:hover .reg-card-img {
    transform: scale(1.1);
}

.reg-card:hover .reg-card-title {
    transform: translateY(0);
}

.reg-card:hover .reg-card-btn {
    opacity: 1;
    transform: translateY(0);
}

.reg-card-btn:hover {
    background: var(--tv-purple);
    color: #fff;
    transform: scale(1.05);
}

/* --- NEW MOBILE MENU --- */
.custom-hamburger {
    background: transparent;
    border: none;
    color: var(--tv-ink);
    font-size: 2rem;
    cursor: pointer;
    padding: 0;
    margin: 0;
}

#homeNav:not(.scrolled) .custom-hamburger {
    color: #ffffff !important;
}

.custom-mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(255, 255, 255, 0.98);
    z-index: 100000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.custom-mobile-menu.is-active {
    opacity: 1;
    visibility: visible;
}

.custom-close-btn {
    position: absolute;
    top: 20px;
    right: 25px;
    background: transparent;
    border: none;
    font-size: 2.5rem;
    color: #171717;
    cursor: pointer;
}

.custom-mobile-links {
    display: flex;
    flex-direction: column;
    gap: 25px;
    text-align: center;
}

.custom-mobile-links a {
    font-size: 2rem;
    font-family: 'Roboto', sans-serif;
    font-weight: 800;
    color: #171717;
    text-decoration: none;
    text-transform: uppercase;
}

.custom-mobile-links .admin-link {
    font-size: 1.2rem;
    margin-top: 20px;
    opacity: 0.6;
}

@media (max-width: 768px) {
    .desktop-only {
        display: none !important;
    }

    .mobile-only {
        display: block !important;
    }

    .custom-navbar {
        padding: 15px 20px;
        flex-wrap: nowrap;
        width: 100%;
        box-sizing: border-box;
    }

    .nav-logo {
        font-size: 1.3rem;
        flex-shrink: 0;
    }

    .hero-logo {
        max-width: 280px;
    }

    .countdown-wrapper {
        display: flex;
        flex-wrap: wrap;
        gap: 20px;
        width: 100%;
        margin-top: 15px;
    }

    .countdown-box {
        padding: 0;
    }

    .countdown-number {
        font-size: 2rem;
    }

    .countdown-label {
        font-size: 0.7rem;
    }

    .marquee-track {
        gap: 30px;
        padding-right: 30px;
        animation-duration: 25s;
    }

    .partner-logo {
        max-height: 30px;
    }

    .edition-video-container {
        flex-direction: column;
        gap: 40px;
        text-align: center;
    }

    .cards-container {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: wrap !important;
        justify-content: center !important;
        gap: 15px !important;
        width: 100% !important;
        padding: 10px 15px !important;
        box-sizing: border-box !important;
        overflow-x: visible !important;
    }

    /* Card Principale (Torneo) - In alto, più grande */
    .reg-card-main {
        order: 1 !important;
        width: 100% !important;
        max-width: 360px !important;
        height: 240px !important;
    }

    /* Card Secondarie (Contest) - In basso, affiancate, più piccole */
    .reg-card-side {
        order: 2 !important;
        width: calc(50% - 8px) !important;
        max-width: 175px !important;
        height: 180px !important;
    }

    .reg-card {
        flex: none !important;
    }

    .reg-card-overlay {
        padding: 15px 12px !important;
    }

    .reg-card-title {
        font-size: 1.05rem !important;
        transform: translateY(0) !important;
        margin-bottom: 6px !important;
        line-height: 1.2 !important;
    }

    .reg-card-main .reg-card-title {
        font-size: 1.5rem !important;
    }

    .reg-card-btn {
        opacity: 1 !important;
        transform: translateY(0) !important;
        background: var(--tv-orange) !important;
        color: #ffffff !important;
        font-size: 0.75rem !important;
        padding: 6px 12px !important;
        gap: 6px !important;
    }

    /* Programma Mobile Optimization */
    .programma-section {
        padding: 40px 15px !important;
    }

    .programma-title {
        font-size: 2.2rem !important;
        margin-bottom: 25px !important;
    }

    .programma-tabs {
        gap: 8px !important;
        margin-bottom: 30px !important;
    }

    .prog-tab {
        padding: 8px 16px !important;
        font-size: 0.85rem !important;
    }

    .programma-grid {
        gap: 20px !important;
    }

    .prog-content {
        padding: 15px !important;
    }

    .prog-name {
        font-size: 1.2rem !important;
        margin-bottom: 12px !important;
    }

    /* Iscrizioni Mobile Optimization */
    .iscrizioni-section {
        padding: 40px 15px !important;
    }

    .iscrizioni-title {
        font-size: 2.2rem !important;
        margin-bottom: 30px !important;
    }

    /* Fix Galleria Mobile che causava overflow orizzontale */
    .gal-img-1,
    .gal-img-2,
    .gal-img-3 {
        width: 90% !important;
        height: auto !important;
        transform: none !important;
        margin-bottom: 15px;
    }

    .threeve-gallery {
        padding: 40px 0;
        flex-direction: column;
    }
}

/* --- NAVBAR HOME OVERRIDES --- */
#homeNav {
    position: fixed !important;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(224, 244, 255, var(--nav-opacity, 0)) !important;
    border-bottom: none !important;
    backdrop-filter: blur(calc(var(--nav-opacity, 0) * 8px)) !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, calc(var(--nav-opacity, 0) * 0.12)) !important;
    box-sizing: border-box !important;
}

/* Transizioni molto meno brusche (0.8s con curva soft) per i testi e i pulsanti della navbar in Home */
#homeNav,
#homeNav .threeve-nav__link,
#homeNav .threeve-nav__brand span,
#homeNav .threeve-nav__brand img,
#homeNav .custom-hamburger {
    transition: color 0.8s cubic-bezier(0.25, 1, 0.5, 1),
        background-color 0.8s cubic-bezier(0.25, 1, 0.5, 1),
        box-shadow 0.8s cubic-bezier(0.25, 1, 0.5, 1),
        text-shadow 0.8s cubic-bezier(0.25, 1, 0.5, 1) !important;
}

/* Transparent state */
#homeNav:not(.scrolled) .threeve-nav__link {
    background: transparent !important;
    color: #ffffff !important;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}

#homeNav:not(.scrolled) .threeve-nav__brand span {
    background: transparent !important;
    color: #ffffff !important;
    box-shadow: none !important;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
    font-size: 1.5rem;
    padding: 0;
}

/* Scrolled state: Solida e Colorata */
#homeNav.scrolled {
    background: rgba(224, 244, 255, var(--nav-opacity, 1)) !important;
    border-bottom: none !important;
}

#homeNav.scrolled .threeve-nav__link {
    background: transparent !important;
    color: var(--tv-ink) !important;
}

#homeNav.scrolled .threeve-nav__link:hover,
#homeNav.scrolled .threeve-nav__link.is-active {
    background: var(--tv-orange) !important;
    color: #ffffff !important;
    border-radius: 999px !important;
}

#homeNav.scrolled .threeve-nav__brand span {
    background: var(--tv-purple) !important;
    color: #ffffff !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1) !important;
}

#homeNav.scrolled .custom-hamburger {
    color: var(--tv-ink) !important;
}

/* --- HERO REDESIGN (Premium Typography) --- */
:root {
    --font-exposure-fallback: 'ProximaNovaBlack', 'Exposure', 'Anton', sans-serif;
    --font-neue-haas-fallback: 'ProximaNovaRegular', 'Neue Haas Grotesk', 'Inter', 'Helvetica Neue', Helvetica, sans-serif;
    --font-insitu-fallback: 'ProximaNovaBold', 'Insitu', 'Space Mono', monospace;
}

.hero-redesign {
    position: relative;
    min-height: 90vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 5rem 5% 12rem 5%;
    background-image: url('../media/photos/foto10.jpeg');

    background-size: cover;
    background-position: center bottom;

    overflow: hidden;
    margin-bottom: 0px;
}

@media (max-width: 768px) {
    .hero-redesign {
        background-image: url('../media/photos/foto6.jpg');
        padding: 6rem 5% 10rem 5%;
    }
}

.hero-fade-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #000000;
    opacity: 0;
    /* JS controls this */
    z-index: 2;
    pointer-events: none;
}

.hero-background-effects {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    /* Darken the left side where the text is (schiarito leggermente) */
    background: radial-gradient(circle at 30% 50%, rgba(10, 10, 12, 0.8) 0%, rgba(10, 10, 12, 0.3) 100%);
    /* Add noise filter */
    background-image:
        url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.05'/%3E%3C/svg%3E"),
        radial-gradient(circle at 30% 50%, rgba(10, 10, 12, 0.7) 0%, rgba(10, 10, 12, 0.2) 100%);
    background-blend-mode: overlay, normal;
}

.hero-content-redesign {
    position: relative;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    /* ⬅️ Questo allinea a sinistra tutti i blocchi interni */
    gap: 2rem;
    max-width: 1400px;
}

.info-block-redesign {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    /* Spazio ridotto tra le righe di info */
}

.info-block-redesign p {
    font-family: var(--font-neue-haas-fallback);
    font-size: clamp(1.15rem, 1.4vw, 1.45rem);
    font-weight: 400;
    line-height: 1.3;
    /* Interlinea ridotta per avvicinare le scritte (era 1.6) */
    opacity: 0.7;
    letter-spacing: 0.02em;
    color: #ffffff;
    margin: 0;
    white-space: nowrap;
}

.info-block-redesign .edition-redesign {
    margin-top: 0.75rem;
    font-weight: 600;
    opacity: 0.9;
    color: #ff5722;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.85rem;
}

.title-block-redesign h1 {
    font-family: var(--font-exposure-fallback);
    font-size: clamp(2.5rem, 9vw, 9rem);
    font-weight: 800;
    line-height: 0.85;
    text-transform: uppercase;
    color: #ffffff;
    letter-spacing: -0.03em;
    text-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    margin: 0;
    white-space: nowrap;
}

@keyframes heroTitlePop {
    0% {
        opacity: 0;
        transform: translateY(40px) scale(0.95);
        filter: blur(12px);
    }

    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
    }
}

[data-aos="hero-pop"] {
    opacity: 0;
    visibility: hidden;
}

[data-aos="hero-pop"].aos-animate {
    visibility: visible;
    animation: heroTitlePop 1.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.title-block-redesign h1 span {
    display: block;
}

.countdown-block-redesign {
    display: flex;
    flex-wrap: wrap;
    gap: 4rem;
}

.countdown-item-redesign {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
}

.countdown-item-redesign .number-redesign {
    font-family: var(--font-insitu-fallback);
    font-size: clamp(3rem, 6vw, 5.5rem);
    font-weight: 700;
    line-height: 1;
    opacity: 1;
    letter-spacing: -0.02em;
    color: #ffffff;
}

.countdown-item-redesign .label-redesign {
    font-family: var(--font-neue-haas-fallback);
    font-size: 0.7rem;
    font-weight: 500;
    text-transform: uppercase;
    opacity: 0.65;
    letter-spacing: 0.25em;
    color: #ffffff;
}

@media (max-width: 900px) {
    .hero-content-redesign {
        gap: 1.5rem;
    }

    /* Gap ridotto per mobile */
    .countdown-block-redesign {
        gap: 2rem;
    }
}

@media (max-width: 500px) {
    .title-block-redesign h1 {
        font-size: clamp(1.9rem, 8.5vw, 3.2rem);
        letter-spacing: -0.01em;
    }

    .info-block-redesign p {
        font-size: clamp(0.65rem, 3.2vw, 1.1rem);
    }

    .countdown-block-redesign {
        gap: 1.5rem 2rem;
    }
}

/* --- TRANSIZIONE LOGO HERO E NAV --- */
.logo-hero {
    position: absolute;
    bottom: calc(120%);
    left: 30%;
    width: clamp(200px, 30vw, 320px);
    /* Dimensione molto più piccola e contenuta per un logo quasi quadrato */
    max-width: none;
    z-index: 4;
    pointer-events: none;
    opacity: 1;
    transform: scale(1);
    transform-origin: left bottom;
    /* Si restringe verso il basso quando si scrolla */
    transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1), transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.logo-hero.scrolled {
    opacity: 0;
    transform: scale(0.5);
    pointer-events: none;
}

.logo-nav {
    opacity: 0;
    transform: scale(0.5);
    transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1), transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.logo-nav.visible {
    opacity: 1;
    transform: scale(1);
}

@media (max-width: 768px) {
    .logo-hero {
        width: 200px;
        bottom: calc(225% + 3.5rem);
        /* Un filo più vicino al testo su mobile */
        left: 0;
    }
}


.threeve-form-group {
    margin-bottom: 20px;
}

.threeve-form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #333;
}

.threeve-form-control {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
}

.threeve-form-control:focus {
    border-color: #7d4dff;
    outline: none;
    box-shadow: 0 0 0 3px rgba(125, 77, 255, 0.1);
}

.player-row {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    align-items: center;
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #eee;
}

.player-row .threeve-form-group {
    margin-bottom: 0;
    flex: 1;
}

/* Modulistica styles */
.doc-section {
    margin-top: 25px;
    border-top: none;
    padding-top: 0;
}

.doc-section h3 {
    color: var(--tv-purple, #7d4dff);
    font-size: 1.3rem;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.doc-section p {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 20px;
}

.doc-download-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.doc-download-card {
    background: #fff;
    border: 1px solid rgba(125, 77, 255, 0.12);
    border-radius: 16px;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    box-shadow: 0 4px 15px rgba(125, 77, 255, 0.02);
    transition: all 0.25s ease;
}

.doc-download-card:hover {
    border-color: var(--tv-purple, #7d4dff);
    box-shadow: 0 10px 25px rgba(125, 77, 255, 0.08);
    transform: translateY(-2px);
}

.doc-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.doc-icon {
    font-size: 2.2rem;
    color: #ff4a4a;
}

.doc-text {
    display: flex;
    flex-direction: column;
}

.doc-title {
    font-weight: 700;
    font-size: 0.95rem;
    color: #333;
    line-height: 1.3;
}

.doc-subtitle {
    font-size: 0.8rem;
    color: #777;
    margin-top: 3px;
}

.doc-btn {
    background: var(--tv-purple, #7d4dff);
    color: white !important;
    padding: 10px 18px;
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: bold;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
    box-shadow: 0 4px 10px rgba(125, 77, 255, 0.15);
}

.doc-btn:hover {
    background: #6230e0;
    box-shadow: 0 6px 15px rgba(125, 77, 255, 0.25);
}

.doc-delivery-info {
    background: rgba(125, 77, 255, 0.03);
    border-radius: 12px;
    padding: 18px;
    border: 1px dashed rgba(125, 77, 255, 0.2);
    margin-top: 20px;
}

.doc-delivery-info h4 {
    color: var(--tv-purple, #7d4dff);
    font-weight: 700;
    font-size: 0.95rem;
    margin: 0 0 10px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.doc-delivery-info ul {
    margin: 0;
    padding-left: 20px;
    font-size: 0.9rem;
    color: #555;
    line-height: 1.6;
}

/* --- INFO BLOCKS LA QUINTA EDIZIONE --- */
.edition-info-section {
    width: 100%;
    padding: 0 20px 10px 20px;
    box-sizing: border-box;
    position: relative;
    z-index: 5;
    background: transparent;
}

.edition-info-section .threeve-wrap {
    max-width: 1200px;
    margin: 0 auto;
}

.edition-info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 0;
}

.edition-info-card {
    background: rgba(125, 77, 255, 0.03);
    border: 1px solid rgba(125, 77, 255, 0.1);
    border-radius: 16px;
    padding: 22px 18px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 4px 15px rgba(125, 77, 255, 0.01);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none !important;
}

.edition-info-card:hover {
    transform: translateY(-5px);
    background: #ffffff;
    border-color: #7d4dff;
    box-shadow: 0 12px 30px rgba(125, 77, 255, 0.1);
}

.edition-info-icon {
    background: linear-gradient(135deg, rgba(125, 77, 255, 0.08) 0%, rgba(125, 77, 255, 0.15) 100%);
    color: #7d4dff;
    width: 46px;
    height: 46px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.edition-info-card:hover .edition-info-icon {
    background: linear-gradient(135deg, #7d4dff 0%, #ff9f2f 100%);
    color: #ffffff;
    transform: scale(1.08) rotate(5deg);
}

.edition-info-text {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

/* --- PRICE TAG STYLING --- */
.price-tag-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 2px;
    width: 100%;
}

.price-tag-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    font-size: 0.95rem;
    color: #1a3d50;
}

.price-label {
    font-weight: 600;
    color: #000000;
    font-size: 0.95rem;
}

.price-amount {
    background: rgba(125, 77, 255, 0.08);
    color: #7d4dff;
    padding: 3px 10px;
    border-radius: 8px;
    font-weight: 800;
    font-size: 0.9rem;
    white-space: nowrap;
    transition: all 0.3s ease;
}

.edition-info-card:hover .price-amount {
    background: #ff9f2f;
    color: #ffffff;
}

.edition-info-label {
    font-size: 0.88rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: #ff9f2f;
    margin-bottom: 5px;
}

.edition-info-value {
    font-size: 1.05rem;
    font-weight: 600;
    color: #1a3d50;
    line-height: 1.35;
}

@media (max-width: 900px) {
    .edition-info-grid {
        grid-template-columns: 1fr;
        gap: 15px;
        margin-top: 30px;
    }

    .edition-info-label {
        font-size: 0.72rem;
    }

    .edition-info-value {
        font-size: 0.92rem;
    }

    .price-tag-item {
        font-size: 0.85rem;
    }

    .price-label {
        font-size: 0.85rem;
    }

    .price-amount {
        font-size: 0.82rem;
    }
}

/* --- MAPS LINK BUTTON IN DOVE CARD --- */
.maps-link-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    font-weight: 700;
    color: #7d4dff;
    text-decoration: none !important;
    margin-top: 6px;
    transition: color 0.2s ease, transform 0.2s ease;
    width: fit-content;
}

.maps-link-btn:hover {
    color: #ff9f2f;
    transform: translateX(3px);
}

.maps-link-btn i {
    font-size: 0.72rem;
}

/* --- DESIGN TOUCH PER I TITOLI DI PAGINA --- */
.threeve-page-header {
    padding: 60px 0 20px 0;
    position: relative;
    z-index: 2;
}

.threeve-page-header h1 {
    font-family: 'Outfit', sans-serif;
    font-weight: 900;
    font-size: clamp(2rem, 5vw, 2.8rem);
    color: #7d4dff;
    text-transform: uppercase;
    margin: 0 0 10px 0;
    letter-spacing: -0.5px;
    line-height: 1.1;
}

.threeve-page-header p {
    font-size: clamp(0.95rem, 2.5vw, 1.1rem);
    color: #2c3e50;
    font-weight: 500;
    line-height: 1.4;
    margin: 0;
    opacity: 0.8;
}

/* Barretta decorativa a gradiente */
.threeve-page-header .threeve-wrap::after {
    content: '';
    display: block;
    width: 70px;
    height: 4px;
    background: linear-gradient(90deg, #7d4dff, #ff9f2f);
    border-radius: 99px;
    margin-top: 18px;
}

/* --- STILI PER LA NUOVA MODULISTICA SQUADRE --- */
.step-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 25px;
    border-bottom: 2px solid #f0ecf7;
    padding-bottom: 12px;
    margin-top: 30px;
}

.step-header:first-of-type {
    margin-top: 10px;
}

.step-number {
    background: var(--tv-purple, #7d4dff);
    color: #fff;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.15rem;
    box-shadow: 0 4px 10px rgba(125, 77, 255, 0.25);
}

.step-title {
    color: var(--tv-purple, #7d4dff);
    font-size: 1.4rem;
    font-weight: 900;
    margin: 0;
    letter-spacing: -0.3px;
}

.threeve-playerbox {
    background: #fdfcff;
    border: 2px solid #e9e5f2;
    border-radius: 20px;
    padding: 24px;
    margin-bottom: 20px;
    transition: all 0.25s ease;
}

.threeve-playerbox:hover {
    border-color: var(--tv-purple, #7d4dff);
    box-shadow: 0 8px 24px rgba(78, 20, 140, 0.05);
    transform: translateY(-2px);
}

.threeve-playerbox h3 {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.1rem;
    color: #4e148c;
    margin: 0 0 18px 0;
    border-bottom: 1.5px dashed #ebdff7;
    padding-bottom: 12px;
    font-weight: 900;
}

.badge-obbligatorio {
    background: #e1fbf0;
    color: #12b76a;
    font-size: 0.72rem;
    padding: 4px 10px;
    border-radius: 12px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-opzionale {
    background: #f2f4f7;
    color: #667085;
    font-size: 0.72rem;
    padding: 4px 10px;
    border-radius: 12px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.threeve-accordion {
    background: #f7f5fa;
    border: 1px solid #e5daf3;
    border-radius: 14px;
    overflow: hidden;
    margin-bottom: 25px;
}

.threeve-accordion summary {
    padding: 14px 20px;
    font-weight: 800;
    color: var(--tv-purple, #7d4dff);
    cursor: pointer;
    outline: none;
    user-select: none;
    transition: background 0.2s;
}

.threeve-accordion summary:hover {
    background: #efeaf7;
}

.accordion-content {
    padding: 20px;
    background: #fff;
    border-top: 1px solid #e5daf3;
}

.threeve-grid {
    display: grid;
    gap: 20px;
    margin-bottom: 20px;
}

.threeve-grid--two {
    grid-template-columns: repeat(2, 1fr);
}

.threeve-grid--three {
    grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 768px) {

    .threeve-grid--two,
    .threeve-grid--three {
        grid-template-columns: 1fr;
    }
}

.threeve-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.threeve-field label {
    font-weight: 700;
    font-size: 0.9rem;
    color: #1a3d50;
}

/* --- PREMIUM CONFIRMATION MODAL ALERT --- */
.custom-alert-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 10, 12, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 1000000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.custom-alert-overlay.show {
    opacity: 1;
}

.custom-alert-box {
    background: #ffffff;
    border-radius: 24px;
    padding: 35px 30px;
    width: 90%;
    max-width: 450px;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(125, 77, 255, 0.1);
    transform: scale(0.8);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.custom-alert-overlay.show .custom-alert-box {
    transform: scale(1);
}

.custom-alert-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px auto;
    font-size: 1.8rem;
}

.custom-alert-icon.success {
    background: #e1fbf0;
    color: #12b76a;
    box-shadow: 0 8px 20px rgba(18, 183, 106, 0.2);
}

.custom-alert-icon.error {
    background: #ffebee;
    color: #ff4a4a;
    box-shadow: 0 8px 20px rgba(255, 74, 74, 0.2);
}

.custom-alert-title {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 1.4rem;
    margin: 0 0 10px 0;
    color: #1a3d50;
}

.custom-alert-message {
    font-family: inherit;
    font-size: 1rem;
    color: #555;
    line-height: 1.5;
    margin: 0 0 25px 0;
}

.custom-alert-close-btn {
    background: var(--tv-purple, #7d4dff);
    color: white;
    border: none;
    border-radius: 12px;
    padding: 12px 30px;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(125, 77, 255, 0.2);
    width: 100%;
}

.custom-alert-close-btn:hover {
    background: #6230e0;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(125, 77, 255, 0.3);
}