/* ==========================================================================
   Lista squadre e drawer del roster ([reyer_squadre], anche nella tappa)
   ========================================================================== */

/* ==========================================================================
   PAGINA SQUADRE - LISTA ([reyer_squadre])
   ========================================================================== */
.rsc-teams-section {
    --rsc-teams-primary: var(--e-global-color-primary, #75172B);
    --rsc-teams-gold: var(--e-global-color-secondary, #CFB46F);
    max-width: 1090px;
    margin: 0 auto;
    padding: 10px 0 60px;
    font-family: var(--rsc-font-testo);
    color: #111111;
}
.rsc-teams-search {
    position: relative;
    max-width: 480px;
    margin: 0 auto 50px;
}
.rsc-teams-search input[type="search"] {
    width: 100%;
    height: 46px;
    padding: 0 52px 0 20px;
    border: 1.5px solid #333333;
    border-radius: 23px;
    background: #FFFFFF;
    font-family: inherit;
    font-size: 16px;
    font-weight: 700;
    color: #111111;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.rsc-teams-search input[type="search"]::placeholder { color: #111111; opacity: 1; }
.rsc-teams-search input[type="search"]::-webkit-search-cancel-button { display: none; }
.rsc-teams-search input[type="search"]:focus {
    border-color: var(--rsc-teams-primary);
    box-shadow: 0 0 0 3px rgba(117, 23, 43, 0.12);
}
.rsc-teams-search-icon {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: #111111;
    pointer-events: none;
}
.rsc-teams-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.rsc-teams-head,
.rsc-team-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 230px auto;
    align-items: center;
    column-gap: 24px;
    padding: 0 20px;
}
.rsc-teams-head {
    margin-bottom: -6px;
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    color: #111111;
}
.rsc-teams-head span:last-child { text-align: right; }
.rsc-team-row {
    min-height: 88px;
    padding-top: 16px;
    padding-bottom: 16px;
    background: #FFFFFF;
    border: 1px solid #E6E6E6;
    cursor: pointer;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.rsc-team-row:hover,
.rsc-team-row.active {
    border-color: var(--rsc-teams-primary);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
}
.rsc-team-name {
    font-size: 21px;
    font-weight: 700;
    line-height: 1.25;
    text-transform: uppercase;
}
.rsc-team-city {
    font-size: 16px;
    font-weight: 700;
    color: var(--rsc-teams-primary);
    text-transform: uppercase;
}
.rsc-team-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 44px;
    padding: 0 20px;
    border: 0;
    border-radius: 6px;
    background: var(--rsc-teams-primary);
    color: #FFFFFF;
    font-family: inherit;
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    white-space: nowrap;
    cursor: pointer;
    transition: background-color 0.2s, color 0.2s;
}
/* Hello Elementor dà a ogni button:focus sfondo rosa (#c36): al tocco o al clic resta lo stato normale */
.rsc-team-btn:focus {
    background: var(--rsc-teams-primary);
    color: #FFFFFF;
}
.rsc-team-btn:hover,
.rsc-team-row:hover .rsc-team-btn {
    background: var(--rsc-teams-gold);
    color: #111111;
}
.rsc-team-btn:focus-visible {
    outline: 3px solid var(--rsc-teams-gold);
    outline-offset: 2px;
}
.rsc-team-btn svg { transition: transform 0.2s; }
.rsc-team-row:hover .rsc-team-btn svg { transform: translateX(3px); }
.rsc-team-my-badge {
    display: inline-block;
    margin-left: 10px;
    padding: 3px 9px;
    border-radius: 4px;
    background: var(--rsc-teams-gold);
    color: #111111;
    font-size: 11px;
    line-height: 1.3;
    letter-spacing: 0.5px;
    vertical-align: middle;
}
.rsc-teams-empty {
    margin: 10px 0 0;
    padding: 30px 20px;
    border: 1px dashed #DDDDDD;
    text-align: center;
    font-weight: 700;
    color: #666666;
}
@media (max-width: 1023px) {
    .rsc-teams-section { padding: 10px 20px 50px; }
    .rsc-teams-head, .rsc-team-row { grid-template-columns: minmax(0, 1fr) 180px auto; }
    .rsc-team-name { font-size: 18px; }
}
/* Mobile: riga impilata (nome, città, bottone a tutta larghezza) */
@media (max-width: 767px) {
    .rsc-teams-section { padding: 0 16px 40px; }
    .rsc-teams-search { margin-bottom: 30px; }
    .rsc-teams-list { gap: 14px; }
    .rsc-teams-head { display: none; }

    .rsc-team-row {
        grid-template-columns: 1fr;
        row-gap: 6px;
        padding: 18px;
    }

    .rsc-team-name { font-size: 17px; }
    .rsc-team-city { font-size: 14px; }
    .rsc-team-city:empty { display: none; }

    .rsc-team-btn {
        width: 100%;
        margin-top: 10px;
    }
    .rsc-team-my-badge { margin: 6px 0 0; display: table; }
}
/* Stessa lista dentro la singola tappa: niente margini propri, segue la larghezza della sezione */
.rsc-teams-section.rsc-teams-section--tappa { max-width: none; margin: 0; padding: 0; }
/* ==========================================================================
   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);
    font-family: var(--rsc-font-testo);
}
.drawer-close {
    position: absolute;
    width: 40px; height: 40px;
    display: flex; align-items: center; justify-content: center;
    background: #FFFFFF; border: 1.5px solid #E6E6E6; border-radius: 6px;
    font-size: 26px; font-weight: 400; color: #111111;
    cursor: pointer; line-height: 1; z-index: 10;
    transition: background-color 0.2s, border-color 0.2s, color 0.2s;
}
/* Niente rosa di Hello Elementor (button:focus) al tocco o al clic */
.drawer-close:focus {
    background: #FFFFFF;
    border-color: #E6E6E6;
    color: #111111;
}
.drawer-close:hover,
.drawer-close:focus-visible {
    background: var(--e-global-color-primary, #75172B);
    border-color: var(--e-global-color-primary, #75172B);
    color: #FFFFFF;
}
/* ==========================================================================
   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%; 
        /* dvh = altezza visibile: su Safari iPhone 85vh non toglie la barra inferiore del browser e il drawer
           finiva sotto l'header. Tetto: lascia sempre libero l'header (circa 71px). vh come riserva per i browser vecchi */
        height: 85vh; max-height: calc(100vh - 80px);
        height: 85dvh; max-height: calc(100dvh - 80px);
        border-radius: 14px 14px 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: 14px 14px 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 { 
    padding-right: 50px; /* spazio per la X */
    font-family: inherit;
    font-size: 30px; 
    font-weight: 700; 
    color: #111111; 
    margin: 0; 
    line-height: 1.1; 
    text-transform: uppercase;
}
.drawer-team-city { 
    font-size: 15px; 
    font-weight: 700; 
    color: var(--e-global-color-primary, #75172B);
    display: block; 
    margin-top: 8px; 
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.roster-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    padding: 20px 15px; /* Più respiro */
    border-bottom: 1px solid #EEEEEE;
    gap: 15px;
    transition: background-color 0.2s ease;
}
.roster-row:hover {
    background-color: #FAFAFA;
}
.roster-col-name {
    font-size: 17px; 
    font-weight: 700;
    color: #111111;
    flex: 1 1 100%;
    text-transform: uppercase;
}
.role-pill {
    display: inline-block;
    padding: 5px 10px;
    border: 1px solid var(--e-global-color-primary, #75172B);
    color: var(--e-global-color-primary, #75172B);
    border-radius: 4px;
    font-weight: 700;
    font-size: 11px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}
.roster-col-class, .roster-col-dob {
    font-size: 13px; 
    color: #555555;
    font-weight: 400;
}
@media (min-width: 768px) {
    .roster-row { flex-wrap: nowrap; gap: 20px; }
    .roster-col-name { flex: 1; }
    .roster-col-role { flex: 0 0 90px; }
    .roster-col-class { flex: 0 0 100px; }
    .roster-col-dob { flex: 0 0 150px; white-space: nowrap; text-align: right; }
}
.rsc-team-main { display: flex; align-items: flex-start; gap: 8px; width: 100%; min-width: 0; }
.rsc-team-bullet { flex: 0 0 14px; display: inline-flex; justify-content: center; color: #111111; }
/* break-word e non anywhere: con anywhere Safari restringe la colonna e manda a capo ogni nome */
.rsc-team-label { flex: 1 1 auto; min-width: 0; overflow-wrap: break-word; }
.rsc-team-trophy { color: var(--tl-gold); padding-top: 1px; }
.rsc-team-trophy svg { display: block; }

/* ==========================================================================
   "GAME ON" (novembre 2026): pagina Le Squadre su fondo scuro. Campo di ricerca del sito,
   righe a pannello con la maglia della scuola, pulsante "Vedi roster" secondario; roster su pannello scuro.
   Nella tappa le card hanno regole proprie in tappa.css, che si carica dopo.
   ========================================================================== */
.rsc-teams-section { color: #FFF4E6; }
.rsc-teams-search input[type="search"] {
    background: linear-gradient(180deg, rgba(255, 244, 230, .07), rgba(255, 244, 230, .03));
    border: 1px solid rgba(230, 184, 74, .35);
    border-radius: 0;
    height: 54px;
    color: #FFF4E6;
    font-weight: 400;
}
.rsc-teams-search input[type="search"]::placeholder { color: #C9A9AE; }
.rsc-teams-search input[type="search"]:focus { border-color: #E6B84A; box-shadow: 0 0 0 3px rgba(230, 184, 74, .25); }
.rsc-teams-search-icon { color: #E6B84A; }
.rsc-teams-list:has(.rsc-maglia) .rsc-teams-head { grid-template-columns: 46px minmax(0, 1fr) 230px auto; }
.rsc-teams-head { color: #C9A9AE; font-family: var(--rsc-font-titolo); font-size: 12px; letter-spacing: .08em; }
.rsc-teams-list:has(.rsc-maglia) .rsc-teams-head::before { content: ""; }
.rsc-team-row:has(> .rsc-maglia) { grid-template-columns: 46px minmax(0, 1fr) 230px auto; }
.rsc-team-row {
    background: linear-gradient(180deg, rgba(255, 244, 230, .07), rgba(255, 244, 230, .03));
    border: 1px solid rgba(230, 184, 74, .28);
    clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 14px 100%, 0 calc(100% - 14px));
    min-height: 76px;
}
.rsc-team-row:hover, .rsc-team-row.active { border-color: #E6B84A; box-shadow: none; }
.rsc-team-row.is-my-school { border-color: #FFD978; background: linear-gradient(90deg, rgba(230, 184, 74, .25), rgba(230, 184, 74, .05)); }
.rsc-team-name {
    font-family: var(--rsc-font-display);
    font-weight: 900;
    font-style: italic;
    letter-spacing: -.01em;
    font-size: 22px;
    color: #FFF4E6;
}
.rsc-team-city { font-family: var(--rsc-font-titolo); font-size: 14px; letter-spacing: .08em; color: #FFD978; }
.rsc-team-btn, .rsc-team-btn:focus {
    background: #C0284A;
    color: #FFF4E6;
    border-radius: 0;
    font-family: var(--rsc-font-display);
    font-weight: 900;
    font-style: italic;
    font-size: 18px;
    clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
}
.rsc-team-btn:hover, .rsc-team-row:hover .rsc-team-btn { background: #E6B84A; color: #1E050B; }
.rsc-team-btn:focus-visible { outline: 3px solid #FFD978; }
.rsc-team-my-badge { background: #E6B84A; color: #1E050B; border-radius: 0; font-family: var(--rsc-font-titolo); }
.rsc-teams-empty { border-color: rgba(230, 184, 74, .3); color: #C9A9AE; }

/* Roster (anche dalla pagina della tappa) */
.drawer-overlay { background: rgba(12, 2, 6, .75); }
.roster-drawer { background: #1E050B; color: #FFF4E6; border-left: 2px solid #E6B84A; }
.drawer-close, .drawer-close:focus { background: transparent; border-color: rgba(230, 184, 74, .5); border-radius: 0; color: #FFF4E6; }
.drawer-close:hover, .drawer-close:focus-visible { background: #E6B84A; border-color: #E6B84A; color: #1E050B; }
.drawer-header { border-bottom-color: rgba(230, 184, 74, .3); }
.drawer-team-title { font-family: var(--rsc-font-display); font-weight: 900; font-style: italic; letter-spacing: -.01em; font-size: 36px; color: #FFF4E6; }
.drawer-team-city { color: #FFD978; font-family: var(--rsc-font-titolo); letter-spacing: .08em; }
.roster-row { border-bottom-color: rgba(255, 244, 230, .08); }
.roster-row:hover { background-color: rgba(255, 244, 230, .05); }
.roster-col-name { color: #FFF4E6; font-family: var(--rsc-font-display); font-style: italic; font-weight: 900; font-size: 20px; letter-spacing: -.01em; }
.role-pill { border-color: #E6B84A; color: #FFD978; border-radius: 0; font-family: var(--rsc-font-titolo); }
.roster-col-class, .roster-col-dob { color: #C9A9AE; }

@media (max-width: 1023px) {
    .rsc-team-row:has(> .rsc-maglia), .rsc-teams-list:has(.rsc-maglia) .rsc-teams-head { grid-template-columns: 46px minmax(0, 1fr) 180px auto; }
    .roster-drawer { border-left: 0; border-top: 2px solid #E6B84A; }
}
@media (max-width: 767px) {
    .rsc-team-row:has(> .rsc-maglia) { grid-template-columns: 46px minmax(0, 1fr); column-gap: 12px; }
    .rsc-team-row > .rsc-maglia { grid-row: 1 / 3; }
    .rsc-team-row > .rsc-team-btn { grid-column: 1 / -1; }
    .rsc-team-name { font-size: 19px; }
}

/* ==========================================================================
   "GAME ON" 20/11: pagina SCUOLE ([reyer_squadre]). Numeri della stagione in cifre LED, scheda "La mia scuola",
   filtri, carte da collezione per livello (cornici in base.css). Roster diviso Player / Staff.
   ========================================================================== */
.rsc-scuole { max-width: 1360px; padding: 0 0 60px; }

/* numeri della stagione */
.rsc-scuole__numeri { display: flex; justify-content: flex-start; margin: 0 0 32px; padding: 0; }
.rsc-scuole__numeri > div { display: flex; flex-direction: column-reverse; align-items: center; padding: 12px 22px; background: #0B0204; border: 1px solid rgba(230, 184, 74, .35); border-left-width: 0; }
.rsc-scuole__numeri > div:first-child { border-left-width: 1px; }
.rsc-scuole__numeri dt { font-family: var(--rsc-font-titolo); font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #C9A9AE; }
.rsc-scuole__numeri dd { margin: 0; font-family: "Doto", "Courier New", monospace; font-size: 44px; font-weight: 900; line-height: 1; color: #FFB547; text-shadow: 0 0 10px rgba(255, 160, 40, .7); }

/* la mia scuola */
.rsc-scuole__mia {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 28px;
    align-items: center;
    margin: 0 0 36px;
    padding: 22px 28px;
    border: 2px solid #E6B84A;
    background: linear-gradient(90deg, rgba(230, 184, 74, .18), rgba(230, 184, 74, .03));
    clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 18px 100%, 0 calc(100% - 18px));
}
.rsc-scuole__mia[hidden] { display: none; }
.rsc-scuole__mia-maglia .rsc-maglia { width: 110px; height: 118px; padding-top: 16px; font-size: 34px; }
.rsc-scuole__mia-maglia .rsc-maglia__stagione { display: block; }
.rsc-scuole__mia-etichetta { font-family: var(--rsc-font-titolo); font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #FFD978; }
.rsc-scuole__mia-nome { margin: 4px 0 8px; font-family: var(--rsc-font-display); font-size: 44px; font-weight: 900; font-style: italic; letter-spacing: -.01em; line-height: 1; text-transform: uppercase; color: #FFF4E6; }
.rsc-scuole__mia-righe { display: flex; flex-wrap: wrap; gap: 8px 28px; margin: 0; }
.rsc-scuole__mia-righe > div[hidden] { display: none; }
.rsc-scuole__mia-righe dt { font-family: var(--rsc-font-titolo); font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #C9A9AE; }
.rsc-scuole__mia-righe dd { margin: 0; font-size: 15px; color: #EBD3D6; }
.rsc-scuole__mia-azioni { display: flex; flex-direction: column; align-items: stretch; gap: 10px; }
.rsc-scuole__btn,
.rsc-scuole__btn:focus {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 10px 20px;
    border: 0;
    border-radius: 0;
    background: #C0284A;
    color: #FFF4E6;
    font-family: var(--rsc-font-display);
    font-size: 20px;
    font-weight: 900;
    font-style: italic;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 12px 100%, 0 calc(100% - 12px));
}
.rsc-scuole__btn--oro, .rsc-scuole__btn--oro:focus { background: linear-gradient(180deg, #FFE7A1, #E6B84A); color: #1E050B; }
.rsc-scuole__btn:hover { background: #FFD978; color: #1E050B; }
.rsc-scuole__btn:focus-visible { outline: 3px solid #FFF4E6; outline-offset: 2px; }
.rsc-scuole__btn[hidden] { display: none; }

/* filtri */
.rsc-scuole__filtri { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.rsc-scuole .rsc-teams-search { flex: 1 1 280px; max-width: none; margin: 0; }
.rsc-scuole__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.rsc-scuole__chip,
.rsc-scuole__chip:focus,
.rsc-scuole__citta {
    min-height: 48px;
    padding: 0 16px;
    border: 1px solid rgba(255, 244, 230, .25);
    border-radius: 0;
    background: transparent;
    color: #FFF4E6;
    font-family: var(--rsc-font-titolo);
    font-size: 15px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    cursor: pointer;
}
.rsc-scuole__chip span { margin-left: 6px; opacity: .7; }
.rsc-scuole__chip:hover { border-color: #E6B84A; background: transparent; color: #FFF4E6; }
.rsc-scuole__chip[aria-pressed="true"] { background: #E6B84A; border-color: #E6B84A; color: #1E050B; }
.rsc-scuole__chip:focus-visible, .rsc-scuole__citta:focus-visible { outline: 3px solid #FFD978; outline-offset: 2px; }
.rsc-scuole__citta { background-color: #1E050B; padding-right: 36px; -webkit-appearance: none; appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23E6B84A' stroke-width='2.5'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 12px center; background-size: 14px; }
.rsc-scuole__legenda { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 16px 0 0; font-size: 13px; color: #C9A9AE; }
.rsc-scuole__l::before { content: ""; display: inline-block; width: 12px; height: 12px; margin-right: 6px; vertical-align: -1px; border-radius: 3px; }
.rsc-scuole__l--leggendaria::before { background: linear-gradient(160deg, #C0284A, #E6B84A); }
.rsc-scuole__l--oro::before { background: #E6B84A; }
.rsc-scuole__l--argento::before { background: #C3C9D2; }
.rsc-scuole__l--bronzo::before { background: #A8713F; }

/* gruppi e carte */
.rsc-scuole__gruppo { margin-top: 44px; }
.rsc-scuole__gruppo[hidden] { display: none; }
.rsc-scuole__gruppo-testa { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; margin-bottom: 26px; padding-bottom: 10px; border-bottom: 1px solid rgba(230, 184, 74, .3); }
.rsc-scuole__gruppo-testa h2 { margin: 0; font-family: var(--rsc-font-display); font-size: 36px; font-weight: 900; font-style: italic; letter-spacing: -.01em; line-height: 1; text-transform: uppercase; color: #FFF4E6; }
.rsc-scuole__gruppo-testa span { font-size: 14px; color: #C9A9AE; }
.rsc-scuole__griglia { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 22px 18px; margin: 0; padding: 0; list-style: none; }
.rsc-scuola { display: flex; flex-direction: column; min-width: 0; margin: 0; padding: 14px; border-radius: 18px; }
.rsc-scuola[hidden] { display: none; }
.rsc-scuola.is-my-school { box-shadow: 0 0 0 3px #FFF4E6; }
.rsc-scuola__su { display: flex; justify-content: space-between; gap: 8px; font-family: var(--rsc-font-titolo); font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.rsc-scuola__su span:last-child { text-align: right; }
.rsc-scuola .rsc-maglia { align-self: center; margin: 12px 0 10px; }
.rsc-scuola__nome { margin: 0; font-family: var(--rsc-font-display); font-size: 25px; font-weight: 900; font-style: italic; letter-spacing: -.01em; line-height: 1; text-transform: uppercase; color: inherit; overflow-wrap: break-word; }
.rsc-scuola__nota { margin-top: 4px; font-size: 13px; font-weight: 600; opacity: .85; }
.rsc-scuola__stat { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; margin: auto 0 0; padding-top: 12px; border-top: 1px solid rgba(30, 5, 11, .25); text-align: center; }
.rsc-cornice--leggendaria .rsc-scuola__stat { border-top-color: rgba(255, 244, 230, .3); }
.rsc-scuola__stat > div { display: flex; flex-direction: column-reverse; }
.rsc-scuola__stat dt { font-family: var(--rsc-font-titolo); font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; opacity: .8; }
.rsc-scuola__stat dd { margin: 0; font-family: var(--rsc-font-display); font-size: 24px; font-weight: 900; font-style: italic; line-height: 1; }
.rsc-scuola__roster,
.rsc-scuola__roster:focus {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 44px;
    margin-top: 12px;
    padding: 0 12px;
    border: 0;
    border-radius: 10px;
    background: rgba(30, 5, 11, .88);
    color: #FFD978;
    font-family: var(--rsc-font-display);
    font-size: 18px;
    font-weight: 900;
    font-style: italic;
    text-transform: uppercase;
    cursor: pointer;
}
.rsc-scuola__roster:hover { background: #1E050B; color: #FFF4E6; }
.rsc-scuola__roster:focus-visible { outline: 3px solid #FFF4E6; outline-offset: 2px; }
.rsc-cornice--leggendaria .rsc-scuola__roster, .rsc-cornice--leggendaria .rsc-scuola__roster:focus { background: #FFF4E6; color: #8E1B33; }
.rsc-cornice--leggendaria .rsc-maglia { background: #FFF4E6; color: #8E1B33; box-shadow: none; }
.rsc-scuole .rsc-teams-empty { margin-top: 30px; }

/* roster: titoli Player / Staff e maglia nell'intestazione */
.drawer-header .drawer-maglia { float: left; margin: 4px 14px 0 0; }
.drawer-header::after { content: ""; display: block; clear: both; }
.drawer-roster-titolo { display: flex; align-items: baseline; gap: 10px; margin: 26px 0 8px; padding-bottom: 6px; border-bottom: 2px solid #E6B84A; font-family: var(--rsc-font-display); font-size: 26px; font-weight: 900; font-style: italic; letter-spacing: -.01em; line-height: 1; text-transform: uppercase; color: #FFD978; }
.drawer-roster-titolo:first-child { margin-top: 0; }
.drawer-roster-titolo span { font-family: var(--rsc-font-titolo); font-size: 14px; font-style: normal; letter-spacing: .08em; color: #C9A9AE; }
.drawer-roster-vuoto, .drawer-caricamento { padding: 20px; color: #C9A9AE; text-align: center; }

@media (max-width: 1023px) {
    .rsc-scuole__numeri { justify-content: stretch; }
    .rsc-scuole__numeri > div { flex: 1; padding: 10px 6px; }
    .rsc-scuole__mia { grid-template-columns: auto minmax(0, 1fr); }
    .rsc-scuole__mia-azioni { grid-column: 1 / -1; flex-direction: row; }
    .rsc-scuole__mia-azioni > * { flex: 1; }
}
@media (max-width: 767px) {
    .rsc-scuole__numeri dd { font-size: 30px; }
    .rsc-scuole__numeri dt { font-size: 11px; }
    .rsc-scuole__mia { gap: 14px; padding: 16px; }
    .rsc-scuole__mia-maglia .rsc-maglia { width: 72px; height: 78px; padding-top: 10px; font-size: 22px; }
    .rsc-scuole__mia-nome { font-size: 30px; }
    .rsc-scuole__mia-azioni { flex-direction: column; }
    .rsc-scuole__filtri { gap: 8px; }
    .rsc-scuole__chips { flex-wrap: nowrap; overflow-x: auto; width: 100%; padding-bottom: 2px; }
    .rsc-scuole__chip { flex: none; }
    .rsc-scuole__citta { width: 100%; }
    .rsc-scuole__gruppo-testa h2 { font-size: 28px; }
    .rsc-scuole__griglia { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 10px; }
    .rsc-scuola { padding: 10px; border-radius: 14px; }
    .rsc-scuola .rsc-maglia { width: 72px; height: 78px; padding-top: 10px; font-size: 22px; }
    .rsc-scuola__su { font-size: 10px; }
    .rsc-scuola__nome { font-size: 19px; }
    .rsc-scuola__stat dd { font-size: 19px; }
    .rsc-scuola__stat dt { font-size: 10px; }
    .rsc-scuola__roster { font-size: 16px; }
}

/* --- 20/11 mobile: testata del roster sul fondo notte (era rimasta bianca dal vecchio stile) --- */
@media (max-width: 1023px) {
    .drawer-header { background: #1E050B; border-bottom: 1px solid rgba(230, 184, 74, .3); }
    .drawer-drag-handle { background: rgba(230, 184, 74, .5); }
    .drawer-team-title { font-size: 28px; }
}
