/* *** CSS PER L'EFFETTO FLUSSO E BULLET NERI (RIMUOVERE LA PAGINAZIONE) *** */

/* Container principale: rimuoviamo il padding orizzontale fisso per far scorrere le card */
.tappe-swiper-container {
    width: 100%;
    padding: 50px 0 !important; 
    background-color: #ffffff;
    box-sizing: border-box;
    overflow: hidden;
}

.tappe-swiper-container .swiper-slide {
    height: auto; /* Permette alla slide di allungarsi quanto la slide più alta */
    display: flex;
    padding: 10px 0;
}

.tappe-swiper-container .swiper-slide.ticket-slide {
    width: 215px !important;
    flex: 0 0 215px;
}

/* Base del biglietto: (rimane invariato) */
.ticket-card {
    box-sizing: border-box;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 5px 14px rgba(0, 0, 0, 0.13);
    position: relative;
    width: 100%;
    max-width: 215px;
    min-height: 320px;
    margin: 0 auto;
    overflow: hidden;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    text-align: center;
    /* NUOVO: Trasformiamo in colonna per spingere il contenuto */
    display: flex;
    flex-direction: column; 
}

/* Stili vari del ticket: (rimangono invariati) */
.ticket-header { height: 8px; flex: 0 0 8px; background-color: #6d1023; width: 100%; }
.ticket-body { padding: 16px 16px 12px; }
.ticket-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #6d1023;
    margin-bottom: 12px;
    line-height: 1;
}
.ticket-day { font-size: 38px; font-weight: 900; }
.ticket-month { margin-top: 4px; color: #111111; font-size: 15px; font-weight: 600; }
.ticket-title {
    display: flex;
    flex-direction: column;
    margin-bottom: 10px;
    line-height: 1.15;
}
.ticket-stage-type { color: #111111; font-size: 12px; font-weight: 700; text-transform: uppercase; }
.ticket-stage-name { color: #6d1023; font-size: 17px; font-weight: 800; text-transform: uppercase; }
.ticket-location {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 12px;
    color: #111;
    line-height: 1.2;
}
.ticket-location .location-icon { width: 15px; height: 15px; flex: 0 0 15px; }
.ticket-location .location-text {
    display: inline-block;
    text-align: center;
}
.ticket-divider { position: relative; height: 1px; margin: 0 12px; border-top: 1px dashed #6d1023; }
.ticket-divider::before, .ticket-divider::after { content: ''; position: absolute; top: -9px; width: 18px; height: 18px; background-color: #e9e9e9; border-radius: 50%; z-index:2;}
.ticket-divider::before { left: -19px; } .ticket-divider::after { right: -19px; }
.ticket-footer {
    padding: 12px 16px 14px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.ticket-body, .ticket-footer, .ticket-header {
    position: relative;
    z-index: 1;
}

.teams-label { font-size: 11px; font-weight: 800; color: #000; margin-bottom: 8px; text-transform: uppercase; }

/* *** MODIFICA 6: CSS PER I BULLET NERI NELLA LISTA SQUADRE *** */
.teams-list {
    text-align: center; /* Assicura che il contenitore centri gli elementi interni */
    margin-bottom: 20px;
}

.teams-list ul {
    list-style-type: disc; /* Ripristina il classico pallino nero */
    padding: 0 0 0 20px; /* Spazio a sinistra per far rientrare i pallini */
    margin: 0;
    display: inline-block; /* Fondamentale: permette al blocco intero di centrarsi... */
    text-align: left; /* ...ma mantiene il testo delle squadre allineato a sinistra! */
}

.teams-list li {
    margin-bottom: 6px;
    font-size: 14px; /* Leggermente più piccolo per evitare che vada su due righe */
    color: #111;
    line-height: 1.3;
}

.teams-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 8px; /* Dimensione del bullet custom */
    height: 8px;
    background-color: #000; /* Bullet nero */
    border-radius: 50%; /* Tondo */
}

/* Pulsante del ticket: (rimane invariato) */
.ticket-btn {
    display: block;
    background-color: #6d1023;
    color: #ffffff !important;
    text-decoration: none;
    padding: 10px 8px;
    border-radius: 5px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.1;
    text-align: center;
    transition: background-color 0.2s ease;
    margin-top: auto; /* MAGIA FLEXBOX: Lo incolla alla base */
}

.ticket-btn:hover {
    background-color: #520b19;
}

.ticket-card.is-prossima-tappa {
    animation: pulseButton 2s infinite;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    border: 2px solid #cfb46f;
}

/* Opzionale: puoi cambiare il colore del pulsante, o della header, per questa specifica tappa */
.ticket-card.is-prossima-tappa .ticket-header {
    height: 6px;
    background-color: #cfb46f;
}

.ticket-card.is-prossima-tappa .ticket-btn {
    /* Magari un'animazione al pulsante? */
    animation: pulseButton 2s infinite;
    background-color: #cfb46f;
}

.ticket-card.is-prossima-tappa .ticket-day,
.ticket-card.is-prossima-tappa .ticket-stage-type,
.ticket-card.is-prossima-tappa .ticket-stage-name {
    color: #b79a4e;
}

@keyframes pulseButton {
    0% { box-shadow: 0 0 0 0 #cfb46f; }
    70% { box-shadow: 0 0 0 10px rgba(109, 16, 35, 0); }
    100% { box-shadow: 0 0 0 0 rgba(109, 16, 35, 0); }
}

/* *** MODIFICA 7: RIMUOVERE PALLINI DI PAGINAZIONE SE PRESENTI *** */
.tappe-wrapper-main {
    width: 100%;
    margin: 20px 0;
}

.tappe-swiper-container {
    width: 100%;
    padding: 10px 0 10px 0 !important;
    background-color: #ffffff;
    box-sizing: border-box;
    overflow: hidden;
}

/* ==========================================================================
   STRUTTURA LINEA DEL TEMPO (TIMELINE)
   ========================================================================== */
.timeline-wrapper {
    position: relative;
    width: 100%;
    margin: 35px auto 10px auto;
    overflow: hidden;
}

/* La linea orizzontale grigia di sfondo */
.timeline-wrapper .swiper-pagination {
    position: relative !important;
    bottom: 0 !important;
    top: 0 !important;
    left: 0 !important;
    height: 20px !important;
    width: max-content !important;
    min-width: 100%;
    display: flex !important;
    justify-content: flex-start !important;
    align-items: center !important;
    transition: transform 0.3s ease;
}

.timeline-wrapper .swiper-pagination::before {
    content: '';
    position: absolute;
    top: 50%;
    left: var(--tappe-first-center, 0px);
    width: var(--tappe-line-width, 0px);
    height: 2px;
    background-color: #333333;
    transform: translateY(-50%);
    z-index: 1;
}

/* I singoli punti/nodi della timeline */
.timeline-wrapper .tappe-pagination-bullet {
    appearance: none;
    width: 20px !important;
    height: 20px !important;
    flex: 0 0 20px;
    background: transparent !important;
    border: 0 !important;
    opacity: 1 !important;
    margin: 0 !important;
    padding: 0;
    z-index: 2;
    position: absolute;
    left: var(--tappe-bullet-center, 0px);
    top: 50%;
    transform: translate(-50%, -50%);
    cursor: pointer;
    border-radius: 0 !important;
}

.timeline-wrapper .tappe-pagination-bullet::after {
    content: '';
    position: absolute;
    width: 12px;
    height: 12px;
    top: 50%;
    left: 50%;
    background-color: #333333;
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

@media (max-width: 767px) {
    .tappe-swiper-container .swiper-slide.ticket-slide {
        width: min(78vw, 220px) !important;
        flex-basis: min(78vw, 220px);
    }

    .ticket-card {
        max-width: none;
        min-height: 300px;
    }
}

/* ==========================================================================
   PULSANTE FASE MADNESS
   ========================================================================== */
.tappe-bottom-action {
    text-align: center;
    margin-top: 25px;
    margin-bottom: 20px;
}

.btn-madness {
    display: inline-block;
    background-color: #6d1023;
    color: #ffffff !important;
    text-decoration: none;
    padding: 14px 36px;
    border-radius: 30px; /* Stile pillola per distinguerlo dai biglietti */
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(109, 16, 35, 0.25);
    transition: all 0.3s ease;
}

.btn-madness:hover {
    background-color: #520b19;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(109, 16, 35, 0.35);
}

/* Centra il contenitore delle squadre */
.ticket-footer .teams-list {
    text-align: center;
    margin-bottom: 6px;
    padding: 0 2px;
}

/* Rimuoviamo gli stili della lista */
.ticket-footer .teams-list ul {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    display: block !important;
    text-align: center;
}

@media (max-width: 767px) {
    .ticket-card {
        max-width: none;
        min-height: 300px;
    }

    .slide-finale-madness {
        width: min(72vw, 210px) !important;
        flex-basis: min(72vw, 210px);
    }
}

@media (min-width: 780px) {
    
    .ticket-footer .teams-list li {
        display: inline-block !important; ;
    }

    .ticket-footer .teams-list li:not(:last-child)::after {
        content: '\2022'; /* Pallino pulito senza spazi dentro le virgolette */
        margin: 0 3px;
        color: #111;
        font-weight: 700;
    }
}

.ticket-footer .teams-list li {
    font-size: 11px;
    font-weight: 500;
    color: #111;
    line-height: 1.25;
    text-transform: uppercase;
    margin-bottom: 2px;
}

/* Sicurezza: nascondiamo eventuali pallini nativi del tema */
.ticket-footer .teams-list li::before {
    display: none !important;
    content: none !important;
}

.ticket-body::before {
    content: '';
    position: absolute;
    top: -35%; left: 0; right: -65%; bottom: 0;
    
    /*background-image: url('https://demoschoolcup.reyer.it/wp-content/uploads/2026/09/sfondo_pallone_lineart_colorato-scaled.jpg');*/
    background-size: 55%; 
    background-position: center bottom 20px;
    background-repeat: no-repeat;
    
    opacity: 0.4; 
    z-index: -1;
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
    transform: rotateZ(222deg);
}

.ticket-footer::before {
    content: '';
    position: absolute;
    top: 0; left: -50%; right: 0; bottom: -40%;
    
    /*background-image: url('https://demoschoolcup.reyer.it/wp-content/uploads/2026/09/sfondo_canestro_lineart_colorato-scaled.jpg');*/
    background-size: 100%; 
    background-position: center bottom 20px;
    background-repeat: no-repeat;
    
    opacity: 0.4; 
    z-index: -1;
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
}

@media (max-width: 780px) {
    .ticket-body::before {
        background-size: 70%; 
        top: -35%; left: 0; right: -50%; bottom: 0;
    }
    .ticket-footer::before {
        background-size: 110%; 
        top: 0; left: -40%; right: 0; bottom: -20%;
    }
}

.slide-finale-madness {
    display: flex !important;
    align-items: center; /* Centra il pulsante verticalmente rispetto ai biglietti */
    justify-content: center; /* Centra orizzontalmente */
    height: auto; 
    min-height: 225px;
    width: 250px !important;
    flex: 0 0 250px;
}

.btn-madness-carousel {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #6d1023;
    color: #ffffff !important;
    text-decoration: none;
    padding: 12px 18px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 10px 25px rgba(109, 16, 35, 0.25);
    transition: all 0.3s ease;
    text-align: center;
}

.btn-madness-carousel:hover {
    background-color: #520b19;
    transform: translateY(-3px); /* Effetto sollevamento al passaggio del mouse */
    box-shadow: 0 15px 30px rgba(109, 16, 35, 0.35);
}

.btn-madness-carousel svg {
    transition: transform 0.3s ease;
}

.btn-madness-carousel:hover svg {
    transform: translateX(5px); /* La freccina si sposta in avanti con l'hover */
}

.hero-news-section {
    position: relative;
    width: 100%;
    height: 650px; /* Altezza rigida e fissa per desktop */
    background-color: #000000;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    overflow: hidden; /* Taglia di netto qualsiasi cosa esca dal contenitore */
}

.hero-news-home > .hero-related-section {
    display: block !important;
    width: 100%;
    padding: 45px 5% 55px !important;
    background: #6D1023 !important;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.hero-news-home .hero-related-sidebar {
    border-left: 3px solid #ffffff !important;
    border-top: 0 !important;
    padding: 0 0 0 15px !important;
    margin: 0 !important;
}

.hero-news-home .hero-related-title {
    color: #CDA85F !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    margin: 0 0 12px !important;
    text-transform: uppercase;
}

.hero-news-home .hero-related-list {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 0 20px !important;
}

.hero-news-home .hero-related-list li {
    margin: 0 0 10px !important;
}

.hero-news-home .hero-related-list a,
.hero-news-home .hero-related-empty {
    color: #ffffff !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    line-height: 1.4 !important;
    text-decoration: none;
}

.hero-news-home .hero-related-list a:hover {
    text-decoration: underline;
}

.hero-news-home .hero-btn-all {
    display: inline-block;
    background: #ffffff !important;
    color: #6D1023 !important;
    padding: 10px 20px !important;
    border: 0;
    border-radius: 6px;
    font-size: 12px !important;
    font-weight: 700 !important;
    text-transform: uppercase;
    text-decoration: none;
}

/*.hero-news-section::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    box-shadow: inset 0 0 100px 20px #000000;
    pointer-events: none; 
    z-index: 0; /* Sta sotto i testi che hanno 10 */
/*}*/

.hero-news-swiper {
    width: 100%;
    height: 100% !important;
    position: absolute;
    top: 0; left: 0;
    overflow: hidden; /* Blocca il debordo dell'immagine zoomata */
}

.hero-slide-bg {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-size: cover;
    background-position: center 20%;
    z-index: 1;
    transform: scale(1);
    transition: transform 6s ease-out; 
}

.swiper-slide-active .hero-slide-bg {
    transform: scale(1.05); /* Zoom cinematografico leggero */
}

.hero-slide-gradient {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 2; /* Perfetto: sopra la foto(1), sotto i testi(10) */
    background: 
        linear-gradient(90deg, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.65) 45%, rgba(0,0,0,0.1) 75%, transparent 100%),
        linear-gradient(0deg, rgba(0,0,0,0.7) 0%, transparent 25%);
        
    /* L'OMBRA ORA È QUI */
    box-shadow: inset 0 0 100px 20px #000000; 
}

.hero-slide-content {
    position: relative;
    z-index: 10;
    width: 55%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding: 60px 5% 150px;
    gap: 40px; /* Spinge automaticamente via le "Altre Notizie" */
}

.hero-main-news {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: space-between;
    height: 100%;
}

.hero-badge {
    color: #ffffff !important;
    font-family: Impact, "Arial Narrow", sans-serif;
    font-size: 32px !important;
    font-stretch: condensed;
    font-weight: 900 !important;
    line-height: 1;
    text-transform: uppercase;
    margin-bottom: 46px;
}

.hero-date {
    color: #CDA85F !important;
    display: block;
    font-size: 15px !important;
    font-weight: 400 !important;
    line-height: 1.4;
    margin-bottom: 10px;
}

.hero-title {
    color: #ffffff !important;
    font-size: 28px !important;
    font-weight: 900 !important;
    line-height: 1.08 !important;
    margin: 0 0 16px !important;
    text-transform: uppercase;
}

.hero-excerpt {
    color: #ffffff !important;
    font-size: 15px !important;
    line-height: 1.45 !important;
    margin: 0 0 20px 0;
    max-width: 90%;
}

.hero-btn-read {
    padding: 10px 24px;
    border: 2px solid #ffffff;
    border-radius: 30px;
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.hero-btn-read:hover {
    background-color: #ffffff;
    color: #000000;
}

/* ALTRE NOTIZIE: Integrate nel flusso, senza absolute! */
.hero-related-sidebar {
    border-left: 2px solid #6D1023;
    padding-left: 15px;
}

.hero-related-title {
    color: #CDA85F;
    font-size: 12px;
    font-weight: 800;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.hero-related-list {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
}

.hero-related-list li { margin-bottom: 10px; }

.hero-related-list a {
    color: #ffffff;
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    line-height: 1.3;
}

.hero-btn-all {
    display: inline-block;
    background-color: #6D1023;
    color: #ffffff !important;
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    text-decoration: none;
}

/* PAGINAZIONE IN BASSO */
.hero-swiper-pagination {
    position: absolute;
    bottom: 50px !important;
    left: 5% !important;
    width: 90% !important;
    display: flex !important;
    gap: 15px;
    z-index: 50 !important;
}

.hero-swiper-pagination .swiper-pagination-bullet {
    flex: 1;
    height: auto;
    background: transparent;
    border-top: 3px solid rgba(255, 255, 255, 0.2) !important;
    border-radius: 0;
    opacity: 1 !important;
    margin: 0 !important;
    padding-top: 10px;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.hero-swiper-pagination .swiper-pagination-bullet-active {
    border-top-color: #ffffff !important;
}

.hero-nav-cat { color: #aaaaaa; font-size: 11px; font-weight: 800; text-transform: uppercase; }
.hero-nav-title { color: #aaaaaa; font-size: 13px; font-weight: 700; text-transform: uppercase; line-height: 1.2; }
.hero-swiper-pagination .swiper-pagination-bullet-active .hero-nav-title { color: #ffffff; }

.hero-swiper-pagination .swiper-pagination-bullet-active .hero-nav-cat {
    color: #aaaaaa;
}
.hero-swiper-pagination .swiper-pagination-bullet-active .hero-nav-title {
    color: #ffffff;
}

@media (max-width: 991px) {
    /* 1. Sistemiamo l'altezza e il problema dell'immagine che sborda */
    .hero-news-section {
        min-height: auto; 
        height: 600px; /* Altezza fissa e controllata per evitare buchi neri */
        overflow: hidden;
    }
    
    .hero-slide-gradient {
        /* Gradiente ricalibrato: molto intenso in basso, sfuma più dolcemente */
        background: linear-gradient(0deg, rgba(0,0,0,1) 0%, rgba(0,0,0,0.9) 30%, rgba(0,0,0,0.4) 65%, rgba(0,0,0,0) 100%) !important;
    }

    /* 2. Sistemiamo gli spazi vuoti e spingiamo il contenuto verso il fondo */
    .hero-slide-content {
        width: 100%;
        height: 100%;
        padding: 35px 5% 45px;
        justify-content: flex-end; /* Allinea il blocco verso il basso */
        gap: 15px; 
    }

    .hero-badge {
        font-size: 26px !important;
        margin-bottom: 20px;
    }

    .hero-date {
        font-size: 13px !important;
        margin-bottom: 8px;
    }

    .hero-title { 
        font-size: 22px !important;
        margin-bottom: 5px;
    }
    
    .hero-excerpt { 
        font-size: 13px; 
        margin-bottom: 10px;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        z-index: 10;
    }

    .hero-btn-read {
        padding: 8px 20px;
        font-size: 11px;
    }

    .hero-news-home > .hero-related-section {
        padding: 30px 5% 35px !important;
    }
    
    .hero-news-home .hero-related-title {
        font-size: 12px !important;
        margin-bottom: 10px !important;
    }

    .hero-news-home .hero-related-list {
        margin-bottom: 16px !important;
    }

    .hero-news-home .hero-related-list li {
        margin-bottom: 10px !important;
    }

    .hero-news-home .hero-related-list a,
    .hero-news-home .hero-related-empty {
        font-size: 12px !important;
        line-height: 1.35 !important;
    }
    
    .hero-news-home .hero-btn-all {
        padding: 10px 16px !important;
        font-size: 11px !important;
        width: 100%; 
        text-align: center;
        box-sizing: border-box;
        margin-bottom: 5px; /* Stacca il bottone dalle barre di navigazione */
    }

    /* 3. Rendiamo le barre di progressione BEN VISIBILI */
    .hero-swiper-pagination { 
        bottom: 15px !important; 
        gap: 8px !important;
    }
    
    .hero-swiper-pagination .swiper-pagination-bullet {
        border-top: 4px solid rgba(255, 255, 255, 0.35) !important; /* Molto più spesse (4px) e biancastre */
    }
    
    .hero-swiper-pagination .swiper-pagination-bullet-active {
        border-top-color: #ffffff !important; /* Barra attiva bianco puro */
    }
    
    .hero-nav-cat, .hero-nav-title { 
        display: none; /* Nascondiamo i testi della paginazione su mobile */
    }
}

/* ==========================================================================
   RASSEGNA STAMPA - MAGAZINE BLOCK
   ========================================================================== */
.rassegna-section {
    position: relative;
    width: 100%;
    background-color: #ffffff; /* Panna chiaro */
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    overflow: hidden;
    padding: 82px 0 28px;
}

/* Watermark di sfondo (sostituisci l'URL con la tua illustrazione) */
.rassegna-watermark {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    height: 100%;
    opacity: 0.05; /* Leggerissima filigrana */
    z-index: 1;
    pointer-events: none;
}

.rassegna-container {
    position: relative;
    z-index: 10;
    width: 90%;
    margin: 0 auto;
}

.rassegna-section-title {
    font-family: Impact, "Arial Narrow", sans-serif;
    font-size: 32px;
    font-weight: 900;
    line-height: 1;
    letter-spacing: -0.4px;
    color: #6D1023;
    text-align:center;
    margin: 0 0 27px;
    text-transform: uppercase;
}

/* ==========================================================================
   MAGAZINE CARD
   ========================================================================== */
.rassegna-swiper {
    padding-bottom: 0 !important;
    width: 100%;
    margin-left: 0;
    overflow: visible !important;
    box-sizing: border-box;
}
.rassegna-swiper .swiper-wrapper {
    align-items: stretch !important; /* Questo è il comando magico che pareggia la riga */
}

.rassegna-swiper .swiper-slide {
    height: auto !important; 
    display: flex !important;
}

.rassegna-timeline-row {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 28px;
    box-sizing: border-box;
    margin: 20px 0 0;
}

.rassegna-timeline-row::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 2px;
    background-color: #333333;
    transform: translateY(-50%);
}

/* Contenitore della paginazione */
.rassegna-pagination {
    position: absolute !important;
    inset: 0 auto 0 0 !important;
    width: max-content !important;
    height: 24px !important; /* Altezza fissa vitale per non far collassare i flex */
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
    transition: transform 0.3s ease;
    pointer-events: none;
}

/* La linea è disegnata dal contenitore per proseguire dietro il pulsante archivio. */
.rassegna-pagination::before {
    content: none;
}

.rassegna-pagination .rassegna-pagination-bullet {
    appearance: none;
    display: block !important;
    width: 20px !important;
    height: 20px !important;
    padding: 0 !important;
    background: transparent !important;
    border: 0 !important;
    opacity: 1 !important;
    margin: 0 !important;
    position: absolute !important;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 1 !important;
    cursor: pointer;
    pointer-events: auto;
}

.rassegna-pagination .rassegna-pagination-bullet::after {
    content: '';
    position: absolute;
    top: 75%;
    left: 50%;
    width: 12px;
    height: 12px;
    background-color: #333333 !important;
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

.rassegna-footer {
    position: relative;
    z-index: 2;
    margin-left: auto;
    padding-left: 18px;
}

.magazine-card {
    flex: 1 1 auto !important; /* Obbliga la card a espandersi fino in fondo alla slide */
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    box-sizing: border-box;
    position: relative;
    background-color: #FFFFFF;
    display: flex;
    flex-direction: column;
    border: 1px solid #EAEAEA; 
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05); 
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
    margin: 0;
}

.magazine-card::after{
    content: '';
    position: absolute;
    bottom: -20%;
    height: 100%;
    width: 100%;
    /*background-image: url('https://demoschoolcup.reyer.it/wp-content/uploads/2026/09/sfondo_giornale_lineart_colorato-scaled.jpg'); */
    background-size: 100%;
    background-position: center;
    background-repeat: no-repeat;
    opacity:0.5;
}

.magazine-card:hover {
    transform: translateY(-5px);
    box-shadow: 10px 10px 35px rgba(0, 0, 0, 0.08);
}

/* La barra verticale Bordeaux */
.magazine-accent {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 3px;
    background-color: #6D1023;
    z-index: 2;
}

.magazine-content {
    padding: 18px 16px 16px 18px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    min-width: 0;
    z-index: 2;
}

.magazine-source {
    font-size: 12px;
    font-weight: 800;
    color: #111111;
    text-transform: uppercase;
    line-height: 1.2;
    margin-bottom: 6px;
}

.magazine-date {
    font-size: 12px;
    font-weight: 700;
    color: #CDA85F; /* Oro */
    text-transform: uppercase;
    line-height: 1.2;
    margin-bottom: 7px;
}

.magazine-title {
    font-size: 18px;
    font-weight: 800;
    color: #111111;
    line-height: 1.35;
    margin: 0 0 6px;
    text-transform: uppercase;
}

.magazine-excerpt {
    font-size: 14px;
    color: #666666;
    line-height: 1.5;
    margin: 0 0 25px 0;
    flex-grow: 1;
}

.magazine-btn {
    margin-top: auto; /* LA MAGIA DI FLEXBOX: Spinge sempre il bottone sul fondo, allineandoli tutti! */
    align-self: flex-start;
    padding: 9px 18px;
    border: 1px solid #6D1023;
    background-color: #8F2035;
    color: #ffffff;
    font-size: 12px;
    font-weight: 500;
    text-decoration: none;
    border-radius: 5px;
    position: relative;
    z-index: 5;
    transition: all 0.3s ease;
}

.magazine-btn:hover {
    background-color: #520b19;
    color: #FFFFFF;
}

.rassegna-footer {
    flex: 0 0 auto;
}

.rassegna-btn-all {
    display: inline-block;
    padding: 8px 20px;
    border: 1px solid #8F2035;
    background-color: #ffffff;
    color: #8F2035;
    font-size: 11px;
    font-weight: 400;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.rassegna-btn-all:hover {
    background-color: #8F2035;
    color: #ffffff;
}

/* Nascondi l'overflow su mobile per evitare scroll orizzontale della pagina */
@media (max-width: 991px) {
    .rassegna-section {
        padding: 42px 0 35px 5%;
    }
    .rassegna-container {
        width: 100%;
    }
    .rassegna-swiper {
        width: 100%;
        margin-left: 0;
        overflow: hidden;
    }
    .rassegna-section-title {
        font-size: 26px;
        margin-bottom: 22px;
    }
    .rassegna-timeline-row {
        width: 100%;
        margin: 20px 0 0;
    }
    .rassegna-pagination {
        flex-basis: 60%;
        width: 60% !important;
    }
    .rassegna-footer {
        padding-left: 10px;
    }
    .rassegna-btn-all {
        padding: 6px 10px;
        white-space: nowrap;
    }
    .magazine-card {
        aspect-ratio: 1 / 1;
        height: auto;
    }
}

/* ==========================================================================
   SEZIONE SQUADRE & GRIGLIA
   ========================================================================== */
.teams-section {
    margin: 0 auto;
    padding: 40px 5%;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.teams-section-title {
    font-size: 32px;
    font-weight: 900;
    color: #111111;
    margin-bottom: 25px;
    text-transform: uppercase;
}

.teams-search-bar {
    position: relative;
    max-width: 500px;
    margin-bottom: 40px;
}

.teams-search-bar input {
    width: 100%;
    padding: 18px 20px 18px 50px;
    border-radius: 30px;
    border: 1px solid #DDDDDD;
    background-color: #FFFFFF;
    font-size: 16px;
    outline: none;
    transition: border-color 0.3s;
}

.teams-search-bar input:focus { border-color: #6D1023; }

.teams-search-bar .search-icon {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: #999999;
    font-size: 18px;
}

.teams-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

@media (min-width: 600px) { .teams-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .teams-grid { grid-template-columns: repeat(5, 1fr); } }

/* ==========================================================================
   LE CARD DELLE SQUADRE
   ========================================================================== */
.team-card {
    position: relative;
    background: #FFFFFF;
    border-radius: 20px;
    padding: 25px;
    min-height: 180px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    cursor: pointer;
    border: 1px solid #EAEAEA;
    overflow: hidden;
    transition: all 0.3s ease;
}

/* IL NUOVO SFONDO A IMMAGINE */
.team-card::after {
    content: '';
    position: absolute;
    bottom: -20%;
    right: -20%;
    height: 120%;
    width: 120%;
    /*background-image: url('https://demoschoolcup.reyer.it/wp-content/uploads/2026/09/sfondo_giocatori_lineart_colorato-scaled.jpg');*/
    background-size: cover;
    background-position: center bottom;
    background-repeat: no-repeat;
    opacity: 0.4; /* Leggerissima filigrana */
    z-index: 1;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.team-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.06);
}

.team-card.active {
    background-color: #6D1023;
    border-color: #6D1023;
}

.team-card.active::after {
    opacity: 0.08; /* Diventa quasi invisibile sul fondo scuro */
    filter: invert(1); /* Opzionale: inverte i colori dell'immagine per renderla chiara sul bordeaux */
}

/* Portiamo il testo sopra lo sfondo */
.card-content {
    position: relative;
    z-index: 2;
}

.card-title {
    font-size: 20px;
    font-weight: 900;
    color: #111111;
    margin: 0 0 5px 0;
    line-height: 1.2;
    transition: color 0.3s;
}

.card-city {
    font-size: 12px;
    font-weight: 800;
    color: #6D1023;
    text-transform: uppercase;
    transition: color 0.3s;
}

.team-card.active .card-title { color: #FFFFFF; }
.team-card.active .card-city { color: #CDA85F; }

/* Portiamo la freccia sopra lo sfondo */
.card-arrow {
    position: absolute;
    bottom: 10px;
    right: 10px;
    height: 34px;
    padding: 0 16px; /* Trasforma il cerchio in una pillola larga */
    background: #111111;
    color: #FFFFFF;
    border-radius: 17px; /* Esattamente la metà dell'altezza per fare i bordi tondi */
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px; /* Spazio tra testo e freccia */
    z-index: 2;
    transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.card-arrow .arrow-text {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.5px;
    /* Su mobile molto piccoli potremmo voler nascondere il testo, 
       ma la pillola di base lo mostra sempre */
}

/* Animazione all'hover della card: il bottone diventa oro e la freccia si sposta */
.team-card:hover .card-arrow {
    background: #CDA85F; 
    padding-right: 12px; /* Spinge visivamente la freccia */
}

/* Stato attivo (quando il cassetto è aperto) */
.team-card.active .card-arrow { 
    background: #FFFFFF; 
    color: #6D1023; 
}

/* ==========================================================================
   DRAWER E ROSTER
   ========================================================================== */
.drawer-overlay {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    background: rgba(0,0,0,0.6);
    opacity: 0; visibility: hidden;
    transition: opacity 0.3s ease;
    z-index: 9998;
}

.drawer-overlay.is-open { opacity: 1; visibility: visible; }

.roster-drawer {
    position: fixed;
    background: #FFFFFF;
    z-index: 9999;
    transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.drawer-close {
    position: absolute;
    background: none; border: none;
    font-size: 30px; font-weight: bold; color: #999999;
    cursor: pointer; line-height: 1; z-index: 10;
}

/* ==========================================================================
   SOLO MOBILE (Fino a 1023px) - UX "APP" CON HEADER FISSO E SCROLL INTERNO
   ========================================================================== */
@media (max-width: 1023px) {
    .roster-drawer {
        bottom: 0; left: 0; width: 100%; 
        height: 85vh; max-height: 85vh;
        border-radius: 25px 25px 0 0;
        transform: translateY(100%);
        display: flex; flex-direction: column;
        padding: 0; overflow: hidden;
    }
    
    .roster-drawer.is-open { transform: translateY(0); }

    #drawerContentPlaceholder {
        display: flex; flex-direction: column;
        overflow: hidden; height: 100%;
    }

    .drawer-roster-list {
        padding: 0 25px 30px;
        flex-grow: 1; 
        overflow-y: auto; /* Scroll solo della lista */
        -webkit-overflow-scrolling: touch;
    }

    .drawer-header {
        padding: 15px 25px 20px; /* Padding aggiustato per includere la barretta */
        border-bottom: 1px solid #EAEAEA;
        margin-bottom: 0;
        flex-shrink: 0; 
        background: #FFFFFF;
        position: relative;
        border-radius: 25px 25px 0 0;
        /* Fa capire all'utente che può trascinare */
        touch-action: none; 
    }

    .drawer-drag-handle {
        width: 40px; height: 5px; background: #DDDDDD;
        border-radius: 5px; margin: 0 auto 15px auto;
    }

    .drawer-close { 
        top: 15px; right: 20px; 
    }
}

/* ==========================================================================
   SOLO DESKTOP (Da 1024px) - PANNELLO LATERALE CLASSICO
   ========================================================================== */
@media (min-width: 1024px) {
    .roster-drawer {
        top: 0; right: 0; width: 800px; height: 100vh;
        transform: translateX(100%);
        padding: 60px 50px;
        overflow-y: auto; /* Su desktop scorre tutto normalmente */
        box-shadow: -10px 0 30px rgba(0,0,0,0.1);
    }
    
    .roster-drawer.is-open { transform: translateX(0); }
    
    .drawer-drag-handle { display: none; }
    
    .drawer-header {
        border-bottom: 2px solid #EEEEEE;
        padding-bottom: 20px;
        margin-bottom: 20px;
    }

    .drawer-close { top: 25px; right: 25px; }
}

/* ==========================================================================
   IL CONTENUTO DEL ROSTER
   ========================================================================== */
.drawer-header {
    border-bottom: 2px solid #F0F0F0;
    padding-bottom: 25px;
    margin-bottom: 25px;
    position: relative; /* Necessario per posizionare la X assoluta */
}

.drawer-team-title { 
    font-size: 34px; 
    font-weight: 900; 
    color: #111111; 
    margin: 0; 
    line-height: 1.1; 
    text-transform: uppercase;
}

.drawer-team-city { 
    font-size: 15px; 
    font-weight: 800; 
    color: #CDA85F; /* Oro */
    display: block; 
    margin-top: 8px; 
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.drawer-team-coach { font-size: 13px; font-style: italic; color: #888888; margin-top: 15px; }

.roster-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    padding: 20px 15px; /* Più respiro */
    border-bottom: 1px solid #F5F5F5;
    gap: 15px;
    transition: background-color 0.2s ease;
    border-radius: 8px; /* Arrotondamento leggero per l'hover */
}

.roster-row:hover {
    background-color: #FAFAFA;
}

.roster-col-name {
    font-size: 17px; 
    font-weight: 800; /* Nomi più bold */
    color: #111111;
    flex: 1 1 100%;
    text-transform: uppercase;
}

.role-pill {
    padding: 6px 12px;
    border: 1px solid #CDA85F;
    color: #CDA85F;
    border-radius: 20px; /* Pillola più rotonda */
    font-weight: 800;
    font-size: 11px;
    letter-spacing: 0.5px;
    background-color: rgba(205, 168, 95, 0.05); /* Sfondo dorato leggerissimo */
}

.roster-col-class, .roster-col-dob {
    font-size: 13px; 
    color: #666666; /* Grigio leggermente più scuro per maggiore contrasto */
    font-weight: 500;
}

@media (min-width: 768px) {
    .roster-row { flex-wrap: nowrap; gap: 20px; }
    .roster-col-name { flex: 1; }
    .roster-col-role { flex: 0 0 150px; }
    .roster-col-class { flex: 0 0 100px; }
    .roster-col-dob { flex: 0 0 120px;; text-align: right; }
}

/* ==========================================================================
   HEADER E BOTTONE PULSE
   ========================================================================== */
.timeline-section * { box-sizing: border-box !important; }
.timeline-section { margin: 0 auto !important; padding: 30px 5% !important; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important; }

.timeline-header { display: flex !important; justify-content: space-between !important; align-items: flex-end !important; flex-wrap: wrap !important; margin-bottom: 60px !important; gap: 20px !important; }
.timeline-main-title { font-size: 42px !important; font-weight: 900 !important; color: #111111 !important; margin: 0 !important; line-height: 1 !important; text-transform: uppercase !important; }
.timeline-subtitle { font-size: 18px !important; font-weight: bold !important; color: #CDA85F !important; margin-top: 5px !important; }

@keyframes pulse-gold { 0% { box-shadow: 0 4px 15px rgba(205, 168, 95, 0.4), 0 0 0 0 rgba(205, 168, 95, 0.7); } 70% { box-shadow: 0 4px 15px rgba(205, 168, 95, 0.4), 0 0 0 15px rgba(205, 168, 95, 0); } 100% { box-shadow: 0 4px 15px rgba(205, 168, 95, 0.4), 0 0 0 0 rgba(205, 168, 95, 0); } }

.jump-next-btn { display: inline-flex !important; padding: 12px 24px !important; background-color: #CDA85F !important; color: #FFFFFF !important; border-radius: 30px !important; font-weight: 900 !important; font-size: 14px !important; text-transform: uppercase !important; text-decoration: none !important; border: none !important; animation: pulse-gold 2s infinite !important; transition: all 0.2s !important; }
.jump-next-btn:hover { background-color: #6D1023 !important; transform: translateY(-2px) !important; color: #FFFFFF !important; animation: none !important; box-shadow: 0 6px 20px rgba(109, 16, 35, 0.4) !important; }

/* ==========================================================================
   STRUTTURA LINEA E NODI
   ========================================================================== */
.timeline-container { position: relative !important; padding-left: 40px !important; display: block !important; }
.timeline-center-line { position: absolute !important; top: 0 !important; bottom: 0 !important; left: 18px !important; width: 4px !important; background-color: #EAEAEA !important; border-radius: 4px !important; }

.timeline-item { position: relative !important; display: flex !important; flex-direction: column !important; width: 100% !important; margin-bottom: 60px !important; }
.timeline-node { position: absolute !important; left: -31px !important; top: 50% !important; transform: translateY(-50%) !important; width: 26px !important; height: 26px !important; background: #FFF !important; border: 5px solid #EAEAEA !important; border-radius: 50% !important; z-index: 3 !important; }
.timeline-connector { display: none !important; }

/* ==========================================================================
   IL TICKET HYBRID ISOLATO E OMBREGGIATO
   ========================================================================== */
.tl-ticket-wrapper {
    display: flex !important; 
    flex-direction: row !important;
    width: 100% !important;
    background: #FFFFFF !important; 
    border-radius: 16px !important;
    position: relative !important; 
    z-index: 2 !important; 
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    overflow: hidden !important; 
}

/* ==========================================================================
   WATERMARK (PALLONE E CANESTRO)
   ========================================================================== */
.tl-ticket-wrapper::before {
    content: '' !important; position: absolute !important; top: -30% !important; left: -25% !important; width: 60% !important; height: 140% !important;
    /*background-image: url('https://demoschoolcup.reyer.it/wp-content/uploads/2026/09/sfondo_pallone_lineart_colorato-scaled.png') !important;*/
    background-size: 70% !important; background-position: center left !important; background-repeat: no-repeat !important;
    opacity: 0.4 !important; z-index: 1 !important; transform: rotate(135deg) !important; pointer-events: none !important;
}

@media (max-width: 768px) {
    .tl-ticket-wrapper::before{
        top: -45% !important;
        left: -22% !important;
    }
    .tl-ticket-wrapper::after{
        bottom: -55% !important;
    }

}

.tl-ticket-wrapper::after {
    content: '' !important; position: absolute !important; bottom: -46%; right: 5% !important; width: 80% !important; height: 140% !important;
    /*background-image: url('https://demoschoolcup.reyer.it/wp-content/uploads/2026/09/sfondo_canestro_lineart_colorato-1-scaled.png') !important;*/
    background-size: 70% !important; background-position: center right !important; background-repeat: no-repeat !important;
    opacity: 0.4 !important; z-index: 1 !important; pointer-events: none !important;
}

.tl-ticket-stub, .tl-ticket-divider, .tl-ticket-body { position: relative !important; z-index: 2 !important; }

/* ==========================================================================
   CONTENUTI INTERNI (OTTIMIZZATI PER MOBILE)
   ========================================================================== */
.tl-ticket-stub {
    width: 85px !important; /* Rimpicciolito su mobile per fare spazio al testo */
    flex-shrink: 0 !important;
    display: flex !important; 
    flex-direction: column !important; 
    justify-content: center !important; 
    align-items: center !important;
    padding: 15px 5px !important; 
    background-color: transparent !important; 
}
.date-day { font-size: 32px !important; font-weight: 900 !important; color: #111111 !important; line-height: 1 !important; margin: 0 !important; text-align: center !important;}
.date-month { font-size: 11px !important; font-weight: 800 !important; color: #888888 !important; text-transform: uppercase !important; margin-top: 5px !important; text-align: center !important;}

.tl-ticket-divider {
    width: 2px !important; 
    flex-shrink: 0 !important;
    background-image: linear-gradient(to bottom, transparent 50%, #6D1023 50%) !important;
    background-size: 2px 16px !important; 
    background-repeat: repeat-y !important;
}
.tl-ticket-divider::before, .tl-ticket-divider::after {
    content: '' !important; 
    position: absolute !important; 
    left: -12px !important; 
    width: 26px !important; 
    height: 26px !important;
    background-color: #F4F4F6 !important; 
    border: 2px solid #EAEAEA !important; 
    border-radius: 50% !important; 
    z-index: 5 !important;
}
.tl-ticket-divider::before { top: -15px !important; border-bottom-color: transparent !important; }
.tl-ticket-divider::after { bottom: -15px !important; border-top-color: transparent !important; }

.tl-ticket-body { 
    padding: 20px 15px !important; /* Meno padding laterale su mobile */
    flex-grow: 1 !important; 
    display: flex !important; 
    flex-direction: column !important; 
    background-color: transparent !important; 
}

/* FIX MOBILE: Titolo e Sponsor incolonnati */
.card-header-top { 
    display: flex !important; 
    flex-direction: column !important; /* Su mobile stanno uno sopra l'altro */
    align-items: flex-start !important; 
    gap: 8px !important; 
    margin-bottom: 8px !important; 
}
.card-tappa-title { font-size: 18px !important; font-weight: 900 !important; color: #6D1023 !important; margin: 0 !important; text-transform: uppercase !important; line-height: 1.1 !important; }
.card-sponsor { display: inline-block !important; background: #CDA85F !important; color: #FFFFFF !important; padding: 4px 10px !important; border-radius: 6px !important; font-size: 10px !important; font-weight: 800 !important; text-transform: uppercase !important; white-space: nowrap !important; margin: 0 !important; flex-shrink: 0 !important; }

.card-tappa-location, .card-tappa-location a { display: block !important; font-size: 11px !important; font-weight: 800 !important; color: #000000 !important; text-transform: uppercase !important; margin-bottom: 20px !important; text-decoration: none !important; pointer-events: none !important; line-height: 1.2 !important;}

.card-teams-label { font-size: 10px !important; font-weight: 800 !important; color: #6D1023 !important; margin-bottom: 10px !important; text-transform: uppercase !important; }
.card-teams-grid { display: grid !important; grid-template-columns: repeat(1, 1fr) !important; gap: 8px !important; } 
.team-name { position: relative; display: flex !important; flex-direction: column; align-items: stretch; gap: 5px; min-width: 0; border: 1px solid transparent; border-radius: 8px; font-size: 12px !important; font-weight: 800 !important; color: #111111 !important; text-transform: uppercase !important; line-height: 1.2 !important; }
.rsc-team-main { display: flex; align-items: flex-start; gap: 6px; min-width: 0; }
.rsc-team-bullet { flex: 0 0 auto; color: #111111; }
.rsc-team-label { min-width: 0; overflow-wrap: anywhere; }
.team-name.is-qualified {
    color: #6D1023 !important;
    background: linear-gradient(135deg, #fffdf4 0%, #fff3bd 52%, #ffe08a 100%);
    border: 2px solid #D4A72C;
    box-shadow: 0 5px 0 #B48312, 0 8px 18px rgba(180, 131, 18, 0.22);
    transform: translateY(-1px);
    overflow: hidden;
}
.team-name.is-qualified::before {
    content: '✦';
    position: absolute;
    top: 3px;
    right: 8px;
    color: rgba(180, 131, 18, 0.35);
    font-size: 17px;
    transform: rotate(15deg);
}
.team-name.is-qualified .rsc-team-bullet { color: #CDA85F; }
.rsc-timeline-qual-tag {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 3px;
    flex: 0 0 auto;
    margin-left: 0;
    padding: 5px 9px;
    border-radius: 999px;
    background: linear-gradient(135deg, #F2C94C 0%, #D49B16 55%, #B47708 100%);
    color: #FFFFFF;
    font-size: 8px;
    font-weight: 900;
    letter-spacing: 0.4px;
    line-height: 1;
    white-space: nowrap;
    box-shadow: 0 3px 0 #8C5C05, 0 5px 10px rgba(180, 131, 18, 0.3);
    animation: rsc-qualified-badge 2.4s ease-in-out infinite;
}
.rsc-qual-stars { color: #FFF3A6; font-size: 10px; line-height: 1; }
@keyframes rsc-qualified-badge {
    0%, 100% { transform: rotate(-1deg) scale(1); }
    50% { transform: rotate(1deg) scale(1.04); }
}

.card-action-btn { display: inline-block !important; align-self: flex-start !important; margin-top: 15px !important; padding: 8px 18px !important; background-color: #111111 !important; color: #FFFFFF !important; border-radius: 25px !important; font-weight: 800 !important; font-size: 11px !important; text-transform: uppercase !important; text-decoration: none !important; transition: all 0.3s !important; border: none !important; }
.card-action-btn:hover { background-color: #CDA85F !important; color: #FFFFFF !important; }

/* ==========================================================================
   STATO "ATTIVO" (PROSSIMA TAPPA)
   ========================================================================== */
.timeline-item.is-active .timeline-node { border-color: #6D1023 !important; }
.timeline-item.is-active .timeline-connector { background-color: #6D1023 !important; }
.timeline-item.is-active .tl-ticket-wrapper { background: #6D1023 !important; border-color: #6D1023 !important; box-shadow: 0 15px 40px rgba(109, 16, 35, 0.2) !important; }

.timeline-item.is-active .tl-ticket-wrapper::before, .timeline-item.is-active .tl-ticket-wrapper::after { filter: invert(1) brightness(2) !important; opacity: 0.1 !important; }

.timeline-item.is-active .tl-ticket-divider { background-image: linear-gradient(to bottom, transparent 50%, #ffffff 50%) !important; }
.timeline-item.is-active .tl-ticket-divider::before, .timeline-item.is-active .tl-ticket-divider::after { border-color: #6D1023 !important; }
.timeline-item.is-active .date-day, .timeline-item.is-active .card-tappa-title, .timeline-item.is-active .team-name { color: #FFFFFF !important; }
.timeline-item.is-active .team-name.is-qualified { color: #FFFFFF !important; background: linear-gradient(135deg, #7F1830 0%, #6D1023 55%, #54101D 100%); border-color: #E5C878; box-shadow: 0 5px 0 #4B0D19, 0 8px 18px rgba(0,0,0,0.22); }
.timeline-item.is-active .team-name.is-qualified .rsc-team-bullet { color: #E5C878; }
.timeline-item.is-active .rsc-timeline-qual-tag { background: linear-gradient(135deg, #FFF4B1, #DDB653); color: #6D1023; box-shadow: 0 3px 0 #8C5C05; }
.timeline-item.is-active .date-month, .timeline-item.is-active .card-tappa-location { color: #CDA85F !important; }
.timeline-item.is-active .card-teams-label { color: rgba(255,255,255,0.7) !important; }
.timeline-item.is-active .card-sponsor { background: rgba(255, 255, 255, 0.2) !important; color: #FFFFFF !important;}
.timeline-item.is-active .card-action-btn { background-color: #FFFFFF !important; color: #6D1023 !important; }
.timeline-item.is-active .card-action-btn:hover { background-color: #CDA85F !important; color: #FFFFFF !important; }

/* ==========================================================================
   VERSIONE DESKTOP
   ========================================================================== */
@media (min-width: 1024px) {
    .timeline-container { padding-left: 0 !important; }
    .timeline-center-line { left: 50% !important; margin-left: -2px !important; }
    
    .timeline-item { min-height: 250px !important; display: block !important;} 

    .timeline-node { left: 50% !important; margin-left: -17px !important; width: 34px !important; height: 34px !important; border-width: 6px !important; }
    
    .timeline-connector { display: block !important; position: absolute !important; top: 50% !important; margin-top: -2px !important; height: 4px !important; background: #EAEAEA !important; z-index: 1 !important; }
    .timeline-left .timeline-connector { left: 45% !important; width: 5% !important; }
    .timeline-right .timeline-connector { right: 45% !important; width: 5% !important; }

    /* RIPRISTINIAMO LA FLESSIBILITA': Il biglietto si allungherà da solo */
    .tl-ticket-wrapper { 
        width: 45% !important; 
        position: absolute !important; 
        top: 50% !important; 
        transform: translateY(-50%) !important; 
        display: flex !important; /* Ritorna flessibile */
        min-height: 250px !important;
        height: auto !important; /* Permette al biglietto di crescere in altezza */
    }

    /* INVERSIONE DESTRA/SINISTRA TRAMITE FLEXBOX */
    .timeline-left .tl-ticket-wrapper { right: 55% !important; left: auto !important; flex-direction: row-reverse !important; }
    .timeline-right .tl-ticket-wrapper { left: 55% !important; right: auto !important; flex-direction: row !important; }

    .date-day { font-size: 48px !important; }
    .card-tappa-title { font-size: 26px !important; }
    .card-teams-grid { grid-template-columns: repeat(2, 1fr) !important; } 
    .tl-ticket-stub { width: 140px !important; }
    .tl-ticket-body { padding: 30px !important; }

    /* Rimuoviamo il posizionamento assoluto interno. Ora si incastrano naturalmente */
    .tl-ticket-stub, .tl-ticket-divider, .tl-ticket-body { 
        position: relative !important; 
        top: auto !important; 
        bottom: auto !important; 
        left: auto !important; 
        right: auto !important; 
    }
    
    .tl-ticket-divider { width: 2px !important; }
}

/* ==========================================================================
   STILI GLOBALI SINGOLA TAPPA REYER
   ========================================================================== */
.reyer-tappa-wrapper {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: #111111;
    background-color: #FFFFFF !important; 
    overflow-x: hidden;
}
.reyer-tappa-wrapper * { box-sizing: border-box; }
.rt-section { margin: 0 auto; padding: 50px 5%; }
.rt-section-title { font-size: 32px; font-weight: 900; color: #111111; margin: 0 0 40px 0; text-transform: uppercase; position: relative; padding-bottom: 15px; }
.rt-section-title::after { content: ''; position: absolute; bottom: 0; left: 0; width: 60px; height: 4px; background-color: #CDA85F; }
.rt-section { max-width: 1440px; }


/* ==========================================
   1. HERO SECTION
   ========================================== */
.rt-hero-section { position: relative; width: 100%; background-color: #FFFFFF; padding: 80px 5% 60px 5%; overflow: hidden; display: flex; justify-content: center; align-items: center; border-bottom: 1px solid #EAEAEA; }
.rt-hero-content { position: relative; z-index: 2; text-align: center; max-width: 900px; }
.rt-hero-title { font-size: 58px; font-weight: 900 !important; color: #6D1023 !important; margin: 0 0 15px 0 !important; line-height: 1.1 !important; text-transform: uppercase !important; }
.rt-hero-date { font-size: 20px; font-weight: 800; color: #CDA85F; margin-bottom: 15px; }
.rt-hero-location { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-size: 15px; font-weight: 700; color: #000000; text-decoration: none; text-transform: uppercase; transition: color 0.3s ease; }
a.rt-hero-location:hover { color: #6D1023; }
@media (max-width: 1024px){
    .rt-hero-section{padding: 30px 5% 30px 5%;}
    .rt-hero-title{
        font-size: var(--e-global-typography-7544d2c-font-size);
        line-height: var(--e-global-typography-7544d2c-line-height);
    }
}

/* ==========================================
   2. DOCK SIDEBAR
   ========================================== */
.rt-dock-nav { position: fixed; top: 50%; right: 25px; transform: translateY(-50%); background: #FFFFFF; border-radius: 40px; padding: 15px 10px; box-shadow: 0 10px 30px rgba(0,0,0,0.08); border: 1px solid #EAEAEA; z-index: 9999; }
.rt-dock-list { list-style: none !important; margin: 0 !important; padding: 0 !important; display: flex; flex-direction: column; gap: 20px; }
.rt-dock-item { margin: 0 !important; }
.rt-dock-item a { position: relative; display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; color: #AAAAAA; text-decoration: none; transition: all 0.3s ease; }
.rt-dock-item.is-active a { background-color: #FFF3F5; color: #6D1023; }
.rt-dock-icon { width: 22px; height: 22px; transition: stroke 0.3s ease; }
.rt-dock-tooltip { position: absolute; right: 60px; top: 50%; transform: translateY(-50%) translateX(10px); background-color: #111111; color: #FFFFFF; padding: 6px 14px; border-radius: 20px; font-size: 11px; font-weight: 800; text-transform: uppercase; white-space: nowrap; opacity: 0; visibility: hidden; transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1); pointer-events: none; }
.rt-dock-tooltip::after { content: ''; position: absolute; top: 50%; right: -4px; transform: translateY(-50%); border-width: 5px 0 5px 5px; border-style: solid; border-color: transparent transparent transparent #111111; }
.rt-dock-item:hover a { color: #6D1023; }
.rt-dock-item:hover .rt-dock-tooltip, .rt-dock-item.is-active .rt-dock-tooltip { opacity: 1; visibility: visible; transform: translateY(-50%) translateX(0); }
.reyer-tappa-wrapper {
    position: relative; /* Trasforma il wrapper in un "recinto" chiuso */
}

/* ==========================================
   3. SQUADRE PARTECIPANTI
   ========================================== */
.rt-teams-grid { display: grid; grid-template-columns: 1fr; gap: 20px; }
@media (min-width: 600px) { .rt-teams-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .rt-teams-grid { grid-template-columns: repeat(4, 1fr); } }

/* ==========================================
   4. TABELLONE RISULTATI (Altezza Compatta e Design Originale)
   ========================================== */
.rt-scoreboard-wrapper { 
    display: flex; flex-direction: column; gap: 12px; /* <-- Spazio tra le partite ridotto */
    width: 100%; 
}

.rt-match-box { 
    position: relative; 
    background-color: #FFFFFF; 
    border-radius: 10px; /* Bordo leggermente meno arrotondato per un look più slim */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04); 
    border: 1px solid #F4F4F4;
    overflow: hidden; 
    transition: transform 0.3s ease, box-shadow 0.3s ease; 
}
.rt-match-box:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06); }

/* Bordo Sinistro */
.rt-match-box::before { 
    content: ''; position: absolute; top: 0; left: 0; bottom: 0; 
    width: 5px; z-index: 2; border-radius: 10px 0 0 10px;
}
.rt-match-played::before { background-color: #8C001A; } 
.rt-match-upcoming::before { background-color: #DDAA44; } 

/* Topbar super compatta verticalmente */
.rt-match-topbar { 
    display: flex; justify-content: space-between; align-items: center; 
    margin: 0 20px; 
    padding: 10px 0 8px 0; /* <-- Padding verticale ridotto */
    border-bottom: 1px dashed #E5E5E5; 
}
.rt-match-game-num { font-size: 12px; font-weight: 800; color: #A0A8B1; letter-spacing: 0.5px; }
.rt-match-status-badge { font-size: 9px; font-weight: 900; padding: 3px 8px; border-radius: 20px; text-transform: uppercase; letter-spacing: 0.5px;}
.badge-played { background-color: #F8E8EB; color: #8C001A; }
.badge-upcoming { background-color: #FDF8ED; color: #DDAA44; }

/* Corpo Centrale Schiacciato */
.rt-match-center { 
    display: flex; justify-content: space-between; align-items: center; 
    padding: 10px 20px 15px 20px; /* <-- Padding verticale molto più basso */
}

/* Squadre */
.rt-match-team { flex: 1; font-size: 15px; font-weight: 700; text-transform: uppercase; display: flex; align-items: center; letter-spacing: 0.5px; }
.rt-team-left { justify-content: flex-end; text-align: right; }
.rt-team-right { justify-content: flex-start; text-align: left; }

.is-winner { color: #5A0A18; font-weight: 800; } 
.is-loser { color: #9CA3AF; font-weight: 600; } 

/* Badge WINNER 🔥 */
.rt-winner-icon { 
    background: #8C001A; color: #FFFFFF; font-size: 10px; 
    padding: 3px 6px; border-radius: 4px; margin: 0 10px; 
    box-shadow: 0 2px 6px rgba(140, 0, 26, 0.2);
}
.left-winner { margin-right: 0; margin-left: 10px; order: 1; }

/* Score Box compatto */
.rt-match-score { width: 120px; display: flex; justify-content: center; flex-shrink: 0; margin: 0 15px; }
.rt-score-box { 
    display: flex; align-items: center; justify-content: center; gap: 8px; 
    background-color: #6D1023; 
    padding: 8px 16px; 
    border-radius: 8px; 
    font-size: 20px; 
    font-weight: 900;
}
.score-win { color: #DDAA44; } 
.score-lose { color: #A0A8B1; } 

/* TRATTINO BIANCO */
.rt-score-box .score-div { 
    color: #FFFFFF; 
    font-size: 18px; 
    font-weight: 400; 
    opacity: 0.7; /* Leggermente opaco per non rubare la scena ai numeri */
} 

/* CERCHIO VS CENTRATO */
.rt-vs-circle { 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    width: 38px; 
    height: 38px; 
    border-radius: 50%; 
    background-color: #5A0A18; 
    color: #EBD5D9; 
    font-size: 16px; 
    font-weight: 900; 
    font-style: italic; 
    text-transform: lowercase;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15); 
    line-height: 1; /* Forza il centraggio verticale del font */
}

.rt-vs-circle span{
    background: linear-gradient(90deg, #ffffff 0%, var(--e-global-color-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

@media (max-width: 768px) {
    .rt-match-center { flex-direction: column; gap: 12px; padding-top: 15px; }
    .rt-match-team { justify-content: center; width: 100%; text-align: center; }
    .left-winner { order: 0; margin: 0 10px 0 0; }
}

/* ==========================================
   5. CLASSIFICA (Tabella Stile NBA Premium)
   ========================================== */
.rt-standings-wrapper { 
    border: 1px solid #EAEAEA; 
    border-radius: 12px; 
    overflow: hidden; 
    background: #FFFFFF; 
    box-shadow: 0 5px 20px rgba(0,0,0,0.03); 
}

/* Header: Forzato il bianco per tutti i figli */
.rt-standing-header { 
    display: flex; 
    background-color: #6D1023; 
    padding: 18px 20px; 
    font-weight: 800; 
    font-size: 13px; 
    text-transform: uppercase; 
}
.rt-standing-header div {
    color: #FFFFFF !important; /* Questo vince sul CSS del tema che ti faceva le scritte nere */
}

.rt-standing-row { 
    display: flex; 
    padding: 18px 20px; 
    border-bottom: 1px solid #EAEAEA; 
    align-items: center; 
}
.rt-standing-row:nth-child(even) { background-color: #FDF8ED; }
.rt-standing-row:last-child { border-bottom: none; }

/* Colonna POS allineata perfettamente al badge */
.st-col-pos { 
    width: 60px; 
    flex-shrink: 0; 
    display: flex; 
    justify-content: center; /* Centra orizzontalmente sia il testo nell'header che il badge nella row */
    align-items: center;
}
.st-col-team { flex: 1; font-size: 18px; font-weight: 900; text-transform: uppercase; color: #111; display: flex; align-items: center; gap: 10px; }
.st-col-pts { width: 80px; flex-shrink: 0; text-align: center; }
.st-col-w { width: 60px; flex-shrink: 0; text-align: center; font-size: 16px; color: #111; font-weight: 900;}
.st-col-l { width: 60px; flex-shrink: 0; text-align: center; font-size: 16px; color: #111; font-weight: 900;}
.st-col-diff { width: 70px; flex-shrink: 0; text-align: center; font-size: 16px; font-weight: 900;}

/* Elementi Enfatizzati Classifica */
.pos-badge { 
    display: flex; 
    align-items: center; 
    justify-content: center;
    width: 38px; 
    height: 38px; 
    border-radius: 8px; 
    font-size: 18px; 
    font-weight: 900; 
}
.pos-qualified { background-color: #CDA85F; color: #FFF; }
.pos-eliminated { background-color: #EAEAEA; color: #888; }

.qualificata-badge { font-size: 10px; background: #Fdf8ee; color: #CDA85F; padding: 3px 8px; border-radius: 4px; }
.pts-badge { display: inline-block; background-color: #6D1023; color: #FFF; font-size: 20px; font-weight: 900; padding: 4px 16px; border-radius: 8px; }
.diff-positive { color: #2ecc71; }
.diff-negative { color: #e74c3c; }

@media (max-width: 768px) {
    .st-col-w, .st-col-l, .st-col-diff { display: none; }
    .st-col-team { font-size: 14px; flex-wrap: wrap; }
}

/* ==========================================
   6. MVP SECTION (Con Immagine di Sfondo e Parallasse)
   ========================================== */
.rt-mvp-section { 
    position: relative; 
    width: 100%; 
    
    /* 1. Sfondo nero di base nel caso l'immagine non carichi */
    background-color: #ffffff; 
    
    /* 2. Immagine di sfondo con overlay scuro (85% di nero) per far leggere il testo */

    padding: 0px 5%; 
    overflow: hidden; 
    text-align: center; 
    color: #FFFFFF; 
}

.rt-mvp-section::after {
    content: ''; 
    position: absolute; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%; 
    /*background-image: url('https://demoschoolcup.reyer.it/wp-content/uploads/2026/09/sfondo_schiacciata_lineart_colorato-scaled.jpg');*/
    background-size: contain; 
    background-position: right; 
    background-repeat: no-repeat;
    opacity: 0.3;
    z-index: 1;
    
    /* Invertiamo la rotta: partiamo da destra (solido) e sfumiamo verso sinistra */
    -webkit-mask-image: linear-gradient(to left, black 40%, transparent 90%);
    mask-image: linear-gradient(to left, black 40%, transparent 90%);
}


.rt-mvp-content { position: relative; z-index: 2; max-width: 800px; margin: 0 auto; }
.rt-mvp-subtitle { font-size: 16px; font-weight: 900; color: #CDA85F; text-transform: uppercase; display: block; margin-bottom: 15px; letter-spacing: 2px;}
.rt-mvp-title { font-size: 42px !important; font-weight: 900 !important; color: #000000 !important; margin: 0 0 40px 0 !important; line-height: 1.1 !important; text-transform: uppercase !important; }

/* Form WPForms */
.rt-mvp-form-wrapper .wpforms-container { background: transparent !important; }
.rt-mvp-form-wrapper button[type="submit"] { 
    background-color: #6D1023 !important; color: #FFFFFF !important; 
    padding: 15px 40px !important; border-radius: 30px !important; 
    font-size: 16px !important; font-weight: 800 !important; 
    text-transform: uppercase !important; border: none !important; 
    box-shadow: 0 10px 25px rgba(109,16,35,0.5) !important; 
    transition: all 0.3s ease !important;
}
.rt-mvp-form-wrapper button[type="submit"]:hover {
    background-color: #8C001A !important;
    transform: translateY(-3px) !important;
    box-shadow: 0 15px 30px rgba(109,16,35,0.7) !important; 
}

/* ==========================================
   7. NEWS E RASSEGNA STAMPA
   ========================================== */
.rt-media-grid { display: flex; gap: 40px; align-items: flex-start; }
.rt-media-col { flex: 1; display: flex; flex-direction: column; }

/* Titoli delle due colonne */
.rt-col-title { 
    font-size: 20px; font-weight: 900; color: #111111; 
    margin: 0 0 20px 0; text-transform: uppercase; 
    border-bottom: 2px solid #F0F0F0; padding-bottom: 10px; 
}

.rt-news-list { display: flex; flex-direction: column; gap: 15px; }

/* Design delle Card */
.rt-news-card { 
    display: flex; align-items: stretch; background: #FFFFFF; 
    border: 1px solid #EAEAEA; border-radius: 12px; overflow: hidden;
    text-decoration: none; color: inherit; transition: all 0.3s; 
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
}
.rt-news-card:hover { box-shadow: 0 8px 25px rgba(0,0,0,0.06); transform: translateY(-3px); border-color: #CDA85F; }

.rt-news-thumb { width: 120px; background-size: cover; background-position: center; flex-shrink: 0; }
.rt-news-info { padding: 15px 20px; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; flex: 1; }

/* Badge Differenziati: Bordeaux per News, Oro per Press */
.rt-news-badge { font-size: 10px; padding: 4px 8px; border-radius: 4px; font-weight: 900; margin-bottom: 10px; letter-spacing: 0.5px; text-transform: uppercase; }
.badge-news { background: #6D1023; color: #FFFFFF; }
.badge-stampa { background: #CDA85F; color: #FFFFFF; }

.rt-news-title { font-size: 14px; font-weight: 800; margin: 0 0 10px 0; line-height: 1.3; color: #111111; text-transform: uppercase; }
.rt-news-read { color: #6D1023; font-size: 11px; font-weight: 900; margin-top: auto; text-transform: uppercase;}

.rt-empty-box { background: #FAFAFA; padding: 20px; border-radius: 8px; font-size: 13px; color: #888; font-style: italic; }

@media (max-width: 991px) {
    .rt-media-grid { flex-direction: column; gap: 40px; }
    .rt-news-thumb { width: 100px; }
}

@media (max-width: 991px) {
    .rt-dock-nav { 
        top: auto !important; 
        bottom: 10% !important; 
        right: 50% !important; 
        transform: translateX(50%) !important; 
        padding: 5px 20px; 
        border-radius: 30px; 
        width: 90%; 
        max-width: 400px;
        box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    }
    
    .rt-dock-list { 
        flex-direction: row !important; 
        justify-content: space-between; 
        width: 100%; 
        gap: 0; /* Rimuove il gap verticale del desktop */
    }
    
    .rt-dock-tooltip { 
        display: none !important; /* Nascondiamo i tooltip su mobile che darebbero solo fastidio */
    }

    .rt-dock-icon{
        width: 17px;
        height: 17px;
    }
    .rt-mvp-section::after{
        background-size: cover;
        background-position: center;
    }
}

/* ==========================================================================
   PAGINA NEWS REYER - LAYOUT 1+2 DESKTOP & LAYOUT 2 MOBILE
   ========================================================================== */
.rn-wrapper {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    max-width: 1440px;
    margin: 0 auto;
    padding: 40px 5%;
    background-color: #FFFFFF;
}

/* HEADER E SPAZIATURA */
.rn-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 45px; /* Distanzia nettamente l'header dalle card sottostanti */
    padding-bottom: 20px;
    border-bottom: 2px solid #EAEAEA;
}

.rn-page-title {
    font-size: 42px;
    font-weight: 900;
    color: #6D1023;
    margin: 0;
    text-transform: uppercase;
    line-height: 1;
    letter-spacing: -0.5px;
}

.rn-filter-form {
    display: flex;
    align-items: center;
    gap: 12px;
}

.rn-filter-label {
    font-size: 12px;
    font-weight: 900;
    color: #888888;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.rn-select-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.rn-select-wrapper select {
    appearance: none;
    -webkit-appearance: none;
    background-color: #F4F4F6;
    border: 1.5px solid #DDDDDD;
    padding: 10px 36px 10px 38px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 800;
    color: #111111;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.2s ease;
}

.rn-select-wrapper select:hover,
.rn-select-wrapper select:focus {
    background-color: #FFFFFF;
    border-color: #6D1023;
    box-shadow: 0 4px 12px rgba(109, 16, 35, 0.1);
    outline: none;
}

.rn-icon-filter {
    position: absolute;
    left: 14px;
    width: 14px;
    height: 14px;
    color: #6D1023;
    pointer-events: none;
    z-index: 2;
}

.rn-icon-arrow {
    position: absolute;
    right: 12px;
    width: 14px;
    height: 14px;
    color: #111111;
    pointer-events: none;
    z-index: 2;
}

@media (max-width: 768px) {
    .rn-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
        margin-bottom: 30px;
    }
    
    .rn-page-title {
        font-size: 32px;
    }

    .rn-filter-form {
        width: 100%;
        justify-content: space-between;
    }

    .rn-select-wrapper {
        flex-grow: 1;
    }

    .rn-select-wrapper select {
        width: 100%;
    }
}

/* ==========================================
   LAYOUT DESKTOP (>= 1024px) - LAYOUT 1+2 PERFETTO
   ========================================== */
@media (min-width: 1024px) {
    .rn-page-title { font-size: 48px; }

    .rn-grid {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 24px;
    }

    /* Stile base delle Card */
    .rn-card {
        position: relative;
        display: flex;
        flex-direction: column;
        justify-content: flex-end;
        border-radius: 16px;
        overflow: hidden;
        text-decoration: none;
        background-color: #111111;
        min-height: 320px;
    }

    /* ITEM #1: Hero grande a sinistra (occupa 2 colonne e 2 righe) */
    .rn-card:nth-child(1) {
        grid-column: 1 / 3;
        grid-row: 1 / 3;
        min-height: 520px;
    }

    /* ITEM #2: Notizia in alto a destra (2 colonne, riga 1) */
    .rn-card:nth-child(2) {
        grid-column: 3 / 5;
        grid-row: 1 / 2;
        min-height: 248px;
    }

    /* ITEM #3: Notizia in basso a destra (2 colonne, riga 2) */
    .rn-card:nth-child(3) {
        grid-column: 3 / 5;
        grid-row: 2 / 3;
        min-height: 248px;
    }

    /* ITEM #4+: Tutte le news successive vanno nella griglia standard a 4 colonne */
    .rn-card:nth-child(n+4) {
        grid-column: span 1;
        min-height: 320px;
    }

    /* SFONDI E OVERLAY DESKTOP */
    .rn-card-media {
        position: absolute;
        top: 0; left: 0; right: 0; bottom: 0;
        background-size: cover;
        background-position: center;
        transition: transform 0.5s ease;
    }

    .rn-card:hover .rn-card-media {
        transform: scale(1.06);
    }

    .rn-card-overlay {
        position: absolute;
        top: 0; left: 0; right: 0; bottom: 0;
        background: linear-gradient(to top, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.3) 60%, rgba(0,0,0,0) 100%);
    }

    .rn-card-body {
        position: relative;
        z-index: 2;
        padding: 24px;
        display: flex;
        flex-direction: column;
        gap: 8px;
    }

    .rn-badge {
        align-self: flex-start;
        background-color: #CDA85F;
        color: #111111;
        font-size: 11px;
        font-weight: 900;
        padding: 4px 10px;
        border-radius: 4px;
        text-transform: uppercase;
    }

    .rn-title {
        color: #FFFFFF;
        font-size: 18px;
        font-weight: 800;
        margin: 0;
        line-height: 1.2;
        text-transform: uppercase;
    }

    .rn-card:nth-child(1) .rn-title {
        font-size: 30px;
    }

    .rn-card:nth-child(2) .rn-title,
    .rn-card:nth-child(3) .rn-title {
        font-size: 22px;
    }

    .rn-excerpt {
        color: #CCCCCC;
        font-size: 13px;
        margin: 0;
        line-height: 1.3;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .rn-date {
        color: #CDA85F;
        font-size: 11px;
        font-weight: 800;
        text-transform: uppercase;
    }
}

/* ==========================================
   LAYOUT MOBILE (< 1024px) - LAYOUT 2 (APP SPORT)
   ========================================== */
@media (max-width: 1023px) {
    .rn-grid {
        display: flex;
        flex-direction: column;
        gap: 12px;
    }

    /* ITEM #1: Hero grande in alto su Mobile */
    .rn-card:nth-child(1) {
        position: relative;
        display: flex;
        flex-direction: column;
        justify-content: flex-end;
        min-height: 240px;
        border-radius: 12px;
        overflow: hidden;
        text-decoration: none;
        margin-bottom: 10px;
        background-color: #111111;
    }

    .rn-card:nth-child(1) .rn-card-media {
        position: absolute;
        top: 0; left: 0; right: 0; bottom: 0;
        background-size: cover;
        background-position: center;
    }

    .rn-card:nth-child(1) .rn-card-overlay {
        position: absolute;
        top: 0; left: 0; right: 0; bottom: 0;
        background: linear-gradient(to top, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.3) 60%, rgba(0,0,0,0) 100%);
    }

    .rn-card:nth-child(1) .rn-card-body {
        position: relative;
        z-index: 2;
        padding: 20px;
        display: flex;
        flex-direction: column;
        gap: 6px;
    }

    .rn-card:nth-child(1) .rn-badge {
        align-self: flex-start;
        background: #CDA85F;
        color: #111111;
        font-size: 10px;
        font-weight: 900;
        padding: 3px 8px;
        border-radius: 4px;
        text-transform: uppercase;
    }

    .rn-card:nth-child(1) .rn-title {
        color: #FFFFFF;
        font-size: 18px;
        font-weight: 900;
        margin: 0;
        line-height: 1.2;
        text-transform: uppercase;
    }

    .rn-card:nth-child(1) .rn-excerpt { display: none; }

    .rn-card:nth-child(1) .rn-date {
        color: #CDA85F;
        font-size: 11px;
        font-weight: 700;
    }

    /* ITEM #2+: Lista compatta a righe orizzontali su Mobile */
    .rn-card:nth-child(n+2) {
        display: flex !important;
        flex-direction: row !important;
        align-items: center;
        background: #FFFFFF;
        border: 1px solid #EAEAEA;
        border-radius: 10px;
        padding: 10px;
        gap: 12px;
        text-decoration: none;
    }

    .rn-card:nth-child(n+2) .rn-card-media {
        width: 70px;
        height: 70px;
        border-radius: 8px;
        background-size: cover;
        background-position: center;
        flex-shrink: 0;
    }

    .rn-card:nth-child(n+2) .rn-card-overlay { display: none; }

    .rn-card:nth-child(n+2) .rn-card-body {
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 4px;
        flex: 1;
    }

    .rn-card:nth-child(n+2) .rn-badge { display: none; }

    .rn-card:nth-child(n+2) .rn-title {
        color: #111111;
        font-size: 13px;
        font-weight: 800;
        margin: 0;
        line-height: 1.2;
        text-transform: uppercase;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .rn-card:nth-child(n+2) .rn-excerpt {
        color: #666666;
        font-size: 11px;
        margin: 0;
        display: -webkit-box;
        -webkit-line-clamp: 1;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .rn-card:nth-child(n+2) .rn-date {
        color: #CDA85F;
        font-size: 10px;
        font-weight: 800;
        text-transform: uppercase;
    }
}

/* BOTTONE CARICA ALTRO */
.rn-load-more {
    text-align: center;
    margin-top: 40px;
}

.rn-btn-more {
    background-color: #6D1023;
    color: #FFFFFF;
    border: none;
    padding: 14px 36px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s;
}

.rn-btn-more:hover {
    background-color: #520b19;
    transform: translateY(-2px);
}

/* ==========================================================================
   PAGINA RASSEGNA STAMPA - COMPACT HERO (OPZIONE B)
   ========================================================================== */
.rs-wrapper {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    max-width: 1440px;
    margin: 0 auto;
    padding: 40px 5%;
    background-color: #FFFFFF;
}

.rs-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 35px;
    padding-bottom: 18px;
    border-bottom: 2px solid #EAEAEA;
}

.rs-page-title {
    font-size: 42px;
    font-weight: 900;
    color: #6D1023;
    margin: 0;
    text-transform: uppercase;
    line-height: 1;
}

.rs-filter-form {
    display: flex;
    align-items: center;
    gap: 12px;
}

.rs-filter-label {
    font-size: 12px;
    font-weight: 900;
    color: #888888;
    letter-spacing: 0.5px;
}

.rs-select-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.rs-select-wrapper select {
    appearance: none;
    -webkit-appearance: none;
    background-color: #F4F4F6;
    border: 1.5px solid #DDDDDD;
    padding: 10px 36px 10px 38px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 800;
    color: #111111;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.2s ease;
}

.rs-select-wrapper select:hover,
.rs-select-wrapper select:focus {
    background-color: #FFFFFF;
    border-color: #6D1023;
    outline: none;
}

.rs-icon-filter {
    position: absolute;
    left: 14px;
    width: 14px;
    height: 14px;
    color: #6D1023;
    pointer-events: none;
}

.rs-icon-arrow {
    position: absolute;
    right: 12px;
    width: 14px;
    height: 14px;
    color: #111111;
    pointer-events: none;
}

/* GRID LAYOUT */
.rs-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 20px;
}

@media (min-width: 768px) {
    .rs-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .rs-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 24px;
    }
}

/* CARD BASE */
.rs-card {
    position: relative;
    background-color: #FFFFFF;
    border: 1px solid #EAEAEA;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    overflow: hidden;
    display: flex;
    flex-direction: row;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.rs-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.07);
}

.rs-accent-line {
    width: 5px;
    background-color: #6D1023;
    flex-shrink: 0;
}

.rs-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 140px; /* Regola la larghezza dell'immagine di sfondo */
    height: 140px; /* Regola l'altezza dell'immagine di sfondo */
    /*background-image: url('https://demoschoolcup.reyer.it/wp-content/uploads/2026/09/sfondo_giornale_lineart_colorato-scaled.jpg'); /* Sostituisci con il tuo URL */
    background-size: contain;
    background-position: right bottom;
    background-repeat: no-repeat;
    opacity: 0.5; /* Opacità regolabile per far risaltare il testo sopra */
    pointer-events: none;
    z-index: 1;
}

.rs-card-content {
    position: relative;
    z-index: 2; /* Assicura che i testi e il bottone stiano sopra l'immagine */
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.rs-source {
    font-size: 13px;
    font-weight: 900;
    color: #111111;
    text-transform: uppercase;
}

.rs-date {
    font-size: 11px;
    font-weight: 800;
    color: #CDA85F;
    margin-top: 2px;
    text-transform: uppercase;
}

.rs-divider {
    border: 0;
    height: 1px;
    background-color: #EEEEEE;
    margin: 12px 0;
}

.rs-title {
    font-size: 15px;
    font-weight: 800;
    color: #111111;
    line-height: 1.3;
    margin: 0 0 16px 0;
    text-transform: uppercase;
}

.rs-btn {
    align-self: flex-start;
    margin-top: auto;
    padding: 8px 18px;
    background-color: #6D1023;
    color: #FFFFFF !important;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.2s ease;
}

.rs-btn:hover {
    background-color: #520b19;
}

/* HERO CARD (PRIMA PAGINA) */
@media (min-width: 1024px) {
    .rs-card-hero {
        grid-column: 1 / -1;
    }

    .rs-card-hero .rs-card-content {
        padding: 28px 32px;
    }

    .rs-card-hero .rs-source {
        font-size: 15px;
        color: #6D1023;
    }

    .rs-card-hero .rs-title {
        font-size: 22px;
        margin-bottom: 10px;
    }

    .rs-card-hero .rs-excerpt {
        font-size: 13px;
        color: #666666;
        margin: 0 0 18px 0;
        line-height: 1.4;
    }
}

/* BOTTONE CARICA ALTRO */
.rs-load-more {
    text-align: center;
    margin-top: 40px;
}

.rs-btn-more {
    background-color: #6D1023;
    color: #FFFFFF;
    border: none;
    padding: 14px 36px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.2s ease;
}

.rs-btn-more:hover {
    background-color: #520b19;
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .rs-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .rs-filter-form {
        width: 100%;
    }

    .rs-select-wrapper {
        flex-grow: 1;
    }

    .rs-select-wrapper select {
        width: 100%;
    }
}

/* ==========================================================================
   SEZIONE PARTNER CLEAN & INTEGRATA (SFONDO BIANCO)
   ========================================================================== */
.rsc-sponsors-clean-section {
    background-color: #FFFFFF !important;
    padding: 50px 0;
    width: 100%;
}

.rsc-sponsors-container {
    margin: 0 auto;
    padding: 0 20px;
}

/* Titolo coordinato con la Rassegna Stampa */
.rsc-sponsors-main-title {
    color: #6D1023 !important;
    font-size: 22px !important;
    font-weight: 900 !important;
    text-transform: uppercase !important;
    text-align: center !important;
    letter-spacing: 0.5px !important;
    margin-bottom: 35px !important;
    font-family: inherit;
}

/* MAIN SPONSOR (ROBUSTI ED ORIZZONTALI - 50% E 50%) */
.rsc-main-sponsors-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 25px;
}

.rsc-main-card {
    position: relative;
    background: #FFFFFF;
    border: 1px solid #E5E5E5;
    border-radius: 10px;
    height: 130px;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none !important;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.rsc-main-card:hover {
    border-color: #6D1023;
    box-shadow: 0 6px 20px rgba(109, 16, 35, 0.08);
}

.rsc-sponsor-badge {
    position: absolute;
    top: 10px;
    left: 15px;
    font-size: 8px;
    font-weight: 800;
    color: #CDA85F;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.rsc-main-logo {
    max-width: 100%;
    max-height: 100px; /* Aumentato drasticamente (era 55px) */
    object-fit: contain;
}

.rsc-main-title-text {
    color: #6D1023;
    font-size: 20px;
    font-weight: 900;
}

/* OFFICIAL PARTNERS (SCHEDE ORIZZONTALI 16:9 - 4 COLONNE) */
.rsc-official-partners-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-bottom: 40px;
}

.rsc-partner-card {
    background: #FFFFFF;
    border: 1px solid #EAEAEA;
    border-radius: 8px;
    height: 95px;
    padding: 10px 15px; 
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none !important;
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.rsc-partner-card:hover {
    border-color: #CDA85F;
    transform: translateY(-2px);
}

.rsc-partner-logo {
    max-width: 100%;
    max-height: 75px; /* Aumentato (era 48px) */
    object-fit: contain;
}

.rsc-partner-text {
    color: #333333;
    font-size: 13px;
    font-weight: 700;
}

/* MEDIA PARTNERS */
.rsc-media-partners-block {
    margin-top: 30px;
    text-align: center;
}

.rsc-media-title {
    color: #6D1023 !important;
    font-size: 16px !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
    margin-bottom: 20px !important;
}

.rsc-media-partners-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    max-width: 800px;
    margin: 0 auto;
}

.rsc-media-card {
    background: #FFFFFF;
    border: 1px solid #EAEAEA;
    border-radius: 8px;
    height: 85px; 
    padding: 10px 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none !important;
}

.rsc-media-card:hover {
    border-color: #6D1023;
}

.rsc-media-logo {
    max-width: 100%;
    max-height: 65px;
    object-fit: contain;
}

.rsc-media-text {
    color: #6D1023;
    font-size: 12px;
    font-weight: 800;
}

/* RESPONSIVE */
@media (max-width: 900px) {
    .rsc-official-partners-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .rsc-main-sponsors-row,
    .rsc-official-partners-grid,
    .rsc-media-partners-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   FEED YOUTUBE - LIGHT & CLEAN
   ========================================================================== */
.rsc-yt-clean-wrapper {
    width: 100% !important;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Header */
.rsc-yt-clean-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #FFFFFF;
    border: 1px solid #EAEAEA;
    border-radius: 16px;
    padding: 16px 24px;
}

.rsc-yt-clean-info {
    display: flex;
    align-items: center;
    gap: 14px;
}

.rsc-yt-clean-avatar, 
.rsc-yt-clean-avatar-placeholder {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    background: #6D1023; /* Bordeaux Reyer */
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border-radius: 50% !important;
}

.rsc-yt-clean-title {
    font-size: 16px !important;
    font-weight: 800 !important;
    color: #111111 !important;
    margin: 0 !important;
    text-transform: uppercase;
}

.rsc-yt-clean-sub {
    font-size: 12px;
    color: #777777;
}

.rsc-yt-clean-sub-btn {
    background: #6D1023;
    color: #FFFFFF !important;
    text-decoration: none !important;
    font-size: 12px;
    font-weight: 800;
    padding: 10px 22px;
    border-radius: 22px;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.rsc-yt-clean-sub-btn:hover {
    background: #E11C1C; /* Rosso YouTube */
    transform: translateY(-2px);
}

/* Griglia & Card proporzionate */
.rsc-yt-clean-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    width: 100% !important;
}

.rsc-yt-clean-card {
    background: #FFFFFF;
    border: 1px solid #EAEAEA;
    border-radius: 16px;
    overflow: hidden;
    text-decoration: none !important;
    display: flex;
    flex-direction: column;
    transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.rsc-yt-clean-card:hover {
    border-color: #6D1023;
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(109, 16, 35, 0.1);
}

/* Contenitore Immagine 16:9 Naturale */
.rsc-yt-clean-thumb-wrap {
    position: relative;
    aspect-ratio: 16 / 9;
    width: 100%;
    background-color: #111111;
    overflow: hidden;
}

.rsc-yt-clean-thumb {
    width: 100%;
    height: 100% !important;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.rsc-yt-clean-card:hover .rsc-yt-clean-thumb {
    transform: scale(1.05);
}

.rsc-yt-clean-badge-short {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #E11C1C;
    color: #FFFFFF;
    font-size: 10px;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 4px;
}

.rsc-yt-clean-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 44px;
    height: 44px;
    background: rgba(109, 16, 35, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.rsc-yt-clean-play svg {
    width: 20px;
    height: 20px;
    margin-left: 2px;
}

.rsc-yt-clean-card:hover .rsc-yt-clean-play {
    background: #E11C1C;
    transform: translate(-50%, -50%) scale(1.1);
}

/* Testo compatto sotto l'immagine */
.rsc-yt-clean-body {
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex-grow: 1;
    justify-content: space-between;
}

.rsc-yt-clean-item-title {
    font-size: 13px !important;
    font-weight: 700 !important;
    line-height: 1.35 !important;
    color: #111111 !important;
    margin: 0 !important;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.rsc-yt-clean-card:hover .rsc-yt-clean-item-title {
    color: #6D1023 !important;
}

.rsc-yt-clean-date {
    font-size: 11px;
    color: #888888;
}

/* Responsive */
@media (max-width: 1024px) {
    .rsc-yt-clean-grid { grid-template-columns: repeat(2, 1fr); }
    .rsc-yt-clean-sub-btn{ padding: 10px 10px; font-size: 11px; }
    .rsc-yt-clean-header { padding: 10px 10px; background:#ffffff00 }
    .rsc-yt-clean-sub { color:#101010 }
}

@media (max-width: 550px) {
    .rsc-yt-clean-grid { grid-template-columns: 1fr; }
}

/* =========================================
   MADNESS TABELLONE — LIGHT THEME (rt-madness-*)
========================================= */
.rt-madness-container {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 28px 24px;
    margin: 30px 0;
    color: #1f2937;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.rt-madness-header h3 {
    margin: 0 0 4px;
    font-size: 22px;
    font-weight: 800;
    color: #111827;
}

.rt-madness-header p {
    margin: 0 0 24px;
    font-size: 13px;
    color: #6b7280;
}

/* Card Partita */
.rt-madness-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 10px 14px;
    position: relative;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
    transition: all 0.2s ease;
}

.rt-madness-card:hover {
    border-color: #cbd5e1;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.rt-card-tag {
    position: absolute;
    top: -9px;
    right: 10px;
    background: #f1f5f9;
    color: #64748b;
    font-size: 9px;
    font-weight: 800;
    padding: 2px 7px;
    border-radius: 4px;
    border: 1px solid #e2e8f0;
}

.rt-card-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4px 0;
    font-size: 13px;
    color: #334155;
    font-weight: 500;
}

.rt-card-row.is-winner {
    color: #0f172a;
    font-weight: 800;
}

.rt-card-row.is-winner .rt-score {
    color: var(--e-global-color-primary, #8b0000);
    font-weight: 800;
}

.rt-score {
    font-size: 13px;
    color: #64748b;
    font-weight: 700;
}

.rt-team.is-placeholder {
    color: #94a3b8;
    font-style: italic;
    font-weight: 400;
}

/* Pass Ticket Box */
.rt-pass-ticket {
    background: #fefce8;
    border: 1px dashed var(--e-global-color-secondary, #d4af37);
    border-radius: 12px;
    padding: 20px 16px;
    text-align: center;
    width: 100%;
}

.rt-ticket-icon { font-size: 26px; display: block; margin-bottom: 4px; }
.rt-pass-ticket strong { display: block; font-size: 12px; color: #78350f; font-weight: 800; }
.rt-pass-ticket small { font-size: 11px; color: #92400e; }

/* =========================================
   LAYOUT DESKTOP — ALLINEAMENTO CENTRATO (>= 769px)
========================================= */
@media (min-width: 769px) {
    .rt-madness-tabs-nav,
    .rt-madness-mobile-view { display: none; }

    .rt-madness-desktop-tree {
        display: flex;
        gap: 24px;
        align-items: stretch;
        justify-content: space-between;
        min-height: 380px;
    }

    .rt-tree-col {
        flex: 1;
        display: flex;
        flex-direction: column;
    }

    .rt-col-label {
        font-size: 11px;
        font-weight: 800;
        color: #64748b;
        margin-bottom: 16px;
        height: 16px;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }

    .rt-col-label.highlight {
        color: var(--e-global-color-secondary, #b45309);
    }

    /* Contenitore flessibile separato dall'header per calcolo matematico delle altezze */
    .rt-tree-col-cards {
        display: flex;
        flex-direction: column;
        flex: 1;
    }

    /* Quarti: spanziati equamente */
    .rt-col-quarti .rt-tree-col-cards {
        justify-content: space-between;
    }

    /* Semifinali: centrati tra Q1-Q2 e Q3-Q4 */
    .rt-col-semifinali .rt-tree-col-cards {
        justify-content: space-around;
    }

    /* Finale e Pass Ticket: perfettamente al centro verticale */
    .rt-col-finale .rt-tree-col-cards,
    .rt-col-pass .rt-tree-col-cards {
        justify-content: center;
    }
}

/* =========================================
   LAYOUT MOBILE (< 768px)
========================================= */
@media (max-width: 768px) {
    .rt-madness-desktop-tree { display: none; }

    .rt-madness-tabs-nav {
        display: flex;
        background: #f1f5f9;
        border: 1px solid #e2e8f0;
        border-radius: 8px;
        padding: 4px;
        margin-bottom: 20px;
        gap: 4px;
    }

    .rt-tab-btn {
        flex: 1;
        background: transparent;
        border: none;
        color: #64748b;
        padding: 8px 0;
        font-size: 12px;
        font-weight: 700;
        border-radius: 6px;
        cursor: pointer;
        transition: all 0.2s ease;
    }

    .rt-tab-btn.active {
        background: var(--e-global-color-primary, #8b0000);
        color: #ffffff;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    }

    .rt-tab-pane { display: none; }
    .rt-tab-pane.active { display: block; }
    .rt-tab-pane .rt-madness-card { margin-bottom: 12px; }
    .rt-pass-ticket.mobile-ticket { margin-top: 16px; }
}

.rsc-export-btn {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    padding: 10px 18px !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    border-radius: 8px !important;
    text-decoration: none !important;
    transition: all 0.2s ease-in-out !important;
    line-height: 1.4 !important;
    cursor: pointer !important;
}

/* Bottone Primario Rosso */
.rsc-export-btn-primary {
    background-color: #8b0000 !important;
    color: #ffffff !important;
    border: 1px solid #8b0000 !important;
    box-shadow: 0 2px 4px rgba(139, 0, 0, 0.2) !important;
}

.rsc-export-btn-primary:hover {
    background-color: #6b0000 !important;
    border-color: #6b0000 !important;
    color: #ffffff !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(139, 0, 0, 0.3) !important;
}

/* Bottone Secondario Grigio / Outline */
.rsc-export-btn-secondary {
    background-color: #f8fafc !important;
    color: #1e293b !important;
    border: 1px solid #cbd5e1 !important;
}

.rsc-export-btn-secondary:hover {
    background-color: #f1f5f9 !important;
    border-color: #94a3b8 !important;
    color: #0f172a !important;
    transform: translateY(-1px);
}

/* HEADER STATS */

    .reyer-stats-container {
        display: flex;
        justify-content: flex-end;
        align-items: center;
        overflow: hidden; /* Evita la comparsa di scrollbar durante l'animazione */
        padding: 10px 0;
        font-family: 'ABC Gravity Normal', Helvetica, Arial, sans-serif;
        color: #ffffff;
    }

    /* Blocco animato che contiene testo, numero e pallino */
    .reyer-stat-content {
        display: inline-flex;
        align-items: center;
        gap: 15px;
        opacity: 1;
        transform: translateY(0);
        /* La transizione viene gestita dinamicamente via JS */
    }

    /* Stili per l'etichetta testuale */
    .reyer-stat-label {
        text-align: right;
        font-size: 20px;
        font-weight: 700;
        line-height: 1.1;
        width: 140px; /* Evita salti di layout cambiando le parole */
    }

    /* Stili per il numero grande */
    .reyer-stat-number {
        font-size: 50px;
        font-weight: 900;
        line-height: 1;
        min-width: 140px;
        text-align: center;
    }

    /* Il pallino bianco a destra */
    .reyer-stat-dot {
        width: 12px;
        height: 12px;
        background-color: #ffffff;
        border-radius: 50%;
    }

    /* Adattamento per dispositivi mobili */
    @media (max-width: 768px) {
        .reyer-stat-label { font-size: 16px; width: 110px; }
        .reyer-stat-number { font-size: 45px; min-width: 100px; }
        .reyer-stat-content { gap: 10px; }
    }