/* =========================================================
   ASI PISTOIA — Componenti Campionato / Video / Partita
   Estende css/style.css (stessi token e stile editoriale)
========================================================= */

/* ===== Championship / Section Hero ===== */
.champ-hero {
    position: relative;
    background: var(--asi-dark);
    color: #fff;
    overflow: hidden;
    padding: 3.5rem 0 2.75rem;
}
.champ-hero::after {
    content: ""; position: absolute; top: 50%; right: -140px;
    width: 420px; height: 420px; transform: translateY(-50%);
    border: 2px solid rgba(255,255,255,0.06); border-radius: 50%; pointer-events: none;
}
.champ-hero::before {
    content: ""; position: absolute; top: 0; right: 210px; bottom: 0;
    width: 2px; background: rgba(255,255,255,0.06); pointer-events: none;
}
.champ-hero .container { position: relative; z-index: 2; }

/* foto di sfondo dell'intestazione (Unsplash): la sfumatura scura tiene leggibile il testo */
.champ-hero[class*="hero-"] {
    background-size: cover; background-position: center; background-repeat: no-repeat;
    padding: 5rem 0 4rem;
}
.hero-chisiamo { background-image: linear-gradient(90deg, rgba(24,24,27,.94) 0%, rgba(24,24,27,.75) 50%, rgba(24,24,27,.45) 100%), url("https://images.unsplash.com/photo-1529156069898-49953e39b3ac?auto=format&fit=crop&w=1920&q=70"); }
.hero-assoc    { background-image: linear-gradient(90deg, rgba(24,24,27,.94) 0%, rgba(24,24,27,.75) 50%, rgba(24,24,27,.45) 100%), url("https://images.unsplash.com/photo-1624880357913-a8539238245b?auto=format&fit=crop&w=1920&q=70"); }
.hero-video    { background-image: linear-gradient(90deg, rgba(24,24,27,.94) 0%, rgba(24,24,27,.75) 50%, rgba(24,24,27,.45) 100%), url("https://images.unsplash.com/photo-1522778119026-d647f0596c20?auto=format&fit=crop&w=1920&q=70"); }
.hero-news     { background-image: linear-gradient(90deg, rgba(24,24,27,.94) 0%, rgba(24,24,27,.75) 50%, rgba(24,24,27,.45) 100%), url("https://images.unsplash.com/photo-1504711434969-e33886168f5c?auto=format&fit=crop&w=1920&q=70"); }
/* campionati e partita: campo notturno, volutamente molto scuro */
.hero-campo, .match-scoreboard.hero-campo { background-image: linear-gradient(90deg, rgba(10,10,12,.88) 0%, rgba(10,10,12,.65) 60%, rgba(10,10,12,.4) 100%), url("https://images.unsplash.com/photo-1431324155629-1a6deb1dec8d?auto=format&fit=crop&w=1920&q=70"); }
.match-scoreboard.hero-campo { background-size: cover; background-position: center 30%; }
.champ-breadcrumb {
    font-family: 'Outfit', sans-serif; font-size: 10px; font-weight: 800;
    letter-spacing: 0.18em; text-transform: uppercase; color: rgba(255,255,255,0.45);
    margin-bottom: 1.4rem; display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
}
.champ-breadcrumb a { color: rgba(255,255,255,0.45); text-decoration: none; }
.champ-breadcrumb a:hover { color: #fff; }
.champ-title { font-size: clamp(2.4rem, 6vw, 4.2rem); margin: 0 0 1.4rem; color: #fff; }
.champ-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.champ-chip {
    font-family: 'Outfit', sans-serif; font-size: 11px; font-weight: 800;
    letter-spacing: 0.12em; text-transform: uppercase; padding: 7px 14px;
    display: inline-flex; align-items: center; gap: 8px;
}
.chip-sport { background: var(--asi-blue); color: #fff; }
.chip-season { background: rgba(255,255,255,0.08); color: #fff; border: 1px solid rgba(255,255,255,0.15); }
.chip-live { background: var(--asi-red); color: #fff; }

/* ===== Sub-navigation (page links) ===== */
.champ-subnav-wrap {
    position: sticky; top: 0; z-index: 1000;
    background: #fff; border-bottom: 2px solid var(--asi-blue);
}
.champ-subnav { display: flex; gap: 0; overflow-x: auto; scrollbar-width: none; }
.champ-subnav::-webkit-scrollbar { display: none; }
.champ-subnav a {
    flex: 0 0 auto; font-family: 'Outfit', sans-serif; font-size: 11px; font-weight: 800;
    letter-spacing: 0.1em; text-transform: uppercase; padding: 1.15rem 1.4rem;
    color: #9ca3af; text-decoration: none; border-bottom: 3px solid transparent;
    display: flex; align-items: center; gap: 8px; white-space: nowrap; transition: all 0.25s;
}
.champ-subnav a i { font-size: 14px; }
.champ-subnav a:hover { color: var(--asi-dark); background: var(--asi-gray); }
.champ-subnav a.active { color: var(--asi-blue); border-bottom-color: var(--asi-blue); }
.champ-subnav a .badge-count {
    font-size: 9px; font-weight: 900; background: var(--asi-gray); color: var(--asi-dark);
    padding: 1px 6px; border-radius: 20px; letter-spacing: 0;
}
.champ-subnav a.active .badge-count { background: var(--asi-blue); color: #fff; }

/* ===== Panel section ===== */
.champ-section { padding: 3.5rem 0 4.5rem; animation: fadeUp .4s ease; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
.panel-head { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 2.5rem; gap: 1rem; flex-wrap: wrap; }
.panel-head h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); }

/* ===== Team cell ===== */
.team { display: flex; align-items: center; gap: 12px; min-width: 0; }
.team-logo {
    width: 34px; height: 34px; object-fit: contain; background: #fff;
    border: 1px solid var(--asi-border); border-radius: 50%; flex: 0 0 34px;
}
.team-name {
    font-family: 'Outfit', sans-serif; font-weight: 800; font-size: 14px;
    text-transform: uppercase; letter-spacing: -0.01em; line-height: 1.1;
}

/* ===== Calendario / Risultati ===== */
.giornata { margin-bottom: 2.75rem; }
.giornata-head { display: flex; align-items: center; gap: 16px; margin-bottom: 1.1rem; }
.giornata-num {
    font-family: 'Outfit', sans-serif; font-weight: 900; font-size: 13px;
    letter-spacing: 0.12em; text-transform: uppercase; color: var(--asi-dark);
    display: flex; align-items: center; gap: 10px;
}
.giornata-num span { color: var(--asi-blue); }
.giornata-line { flex: 1; height: 1px; background: var(--asi-border); }
.giornata-date { font-size: 11px; font-weight: 700; color: #9ca3af; letter-spacing: 0.06em; }

.match-row {
    display: grid; grid-template-columns: 96px 1fr auto 1fr 150px;
    align-items: center; gap: 1rem; border: 1px solid var(--asi-border);
    padding: 1.15rem 1.4rem; margin-bottom: -1px; background: #fff; transition: all .25s;
}
.match-row:hover { background: var(--asi-gray); border-color: var(--asi-blue); position: relative; z-index: 1; }
.match-when { display: flex; flex-direction: column; gap: 2px; border-right: 1px solid var(--asi-border); padding-right: 1rem; }
.match-when .day { font-family: 'Outfit'; font-weight: 900; font-size: 15px; }
.match-when .time { font-size: 11px; font-weight: 700; color: var(--asi-blue); letter-spacing: 0.04em; }
.match-home { justify-content: flex-end; text-align: right; }
.match-home .team { flex-direction: row-reverse; }
.match-center { display: flex; align-items: center; justify-content: center; }
.vs-badge {
    font-family: 'Outfit'; font-weight: 900; font-size: 12px; color: #9ca3af;
    letter-spacing: 0.1em; padding: 6px 12px; border: 1px solid var(--asi-border);
}
.score-badge {
    font-family: 'Outfit'; font-weight: 900; font-size: 20px; color: #fff;
    background: var(--asi-dark); padding: 8px 16px; min-width: 74px; text-align: center; letter-spacing: 0.04em;
    text-decoration: none; display: inline-block;
}
a.score-badge:hover { background: var(--asi-blue); }
.match-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.loc-chip { font-size: 10px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: #6b7280; display: inline-flex; align-items: center; gap: 5px; }
.status-chip { font-size: 9px; font-weight: 900; letter-spacing: 0.1em; text-transform: uppercase; padding: 3px 9px; border-radius: 20px; }
.status-disputata { background: var(--asi-gray); color: #6b7280; }
.status-programmata { background: #eff6ff; color: var(--asi-blue); }
.referto-link { font-size: 10px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--asi-blue); text-decoration: none; display: inline-flex; align-items: center; gap: 4px; }
.referto-link:hover { color: var(--asi-dark); }
.winner .team-name { color: var(--asi-dark); }
.loser .team-name { color: #9ca3af; }
.riposa {
    font-size: 11px; font-weight: 700; color: #9ca3af; letter-spacing: 0.04em;
    padding: 0.7rem 1.4rem; border: 1px dashed var(--asi-border); border-top: none;
    display: flex; align-items: center; gap: 8px; text-transform: uppercase;
}
.riposa i { color: var(--asi-blue); }

/* ===== Classifica ===== */
.table-champ { width: 100%; border-collapse: collapse; }
.table-champ thead th {
    font-family: 'Outfit'; font-size: 10px; font-weight: 800; letter-spacing: 0.1em;
    text-transform: uppercase; color: #9ca3af; padding: 0.9rem 0.6rem;
    border-bottom: 2px solid var(--asi-dark); text-align: center;
}
.table-champ thead th.th-team { text-align: left; padding-left: 0; }
.table-champ tbody td { padding: 0.85rem 0.6rem; text-align: center; border-bottom: 1px solid var(--asi-border); font-weight: 700; font-size: 14px; }
.table-champ tbody td.td-team { text-align: left; padding-left: 0; }
.table-champ tbody tr:hover { background: var(--asi-gray); }
.pos-chip {
    font-family: 'Outfit'; font-weight: 900; font-size: 13px; width: 30px; height: 30px;
    display: inline-flex; align-items: center; justify-content: center; background: var(--asi-gray); color: var(--asi-dark);
}
tr.leader td { background: #eff6ff; }
tr.leader .pos-chip { background: var(--asi-blue); color: #fff; }
tr.leader td.td-team { box-shadow: inset 3px 0 0 var(--asi-blue); }
.pts { font-family: 'Outfit'; font-weight: 900; font-size: 17px; color: var(--asi-blue); }
.dr-pos { color: #16a34a; font-weight: 800; }
.dr-neg { color: var(--asi-red); font-weight: 800; }
.legend { display: flex; flex-wrap: wrap; gap: 1.4rem; margin-top: 1.4rem; }
.legend span { font-size: 10px; font-weight: 700; color: #9ca3af; letter-spacing: 0.04em; text-transform: uppercase; }
.legend b { color: var(--asi-dark); }

/* ===== Marcatori ===== */
.scorer-row { display: grid; grid-template-columns: 60px 1fr auto; align-items: center; gap: 1rem; padding: 1rem 1.2rem; border: 1px solid var(--asi-border); margin-bottom: -1px; transition: all .25s; }
.scorer-row:hover { background: var(--asi-gray); }
.scorer-rank { font-family: 'Outfit'; font-weight: 900; font-size: 18px; color: #d1d5db; text-align: center; }
.scorer-row.top .scorer-rank { color: var(--asi-dark); }
.scorer-info { display: flex; align-items: center; gap: 14px; min-width: 0; }
.scorer-name { font-family: 'Outfit'; font-weight: 800; font-size: 15px; text-transform: uppercase; letter-spacing: -0.01em; }
.scorer-team { font-size: 11px; font-weight: 600; color: #9ca3af; text-transform: uppercase; letter-spacing: 0.04em; }
.goal-badge { font-family: 'Outfit'; font-weight: 900; font-size: 17px; color: #fff; background: var(--asi-blue); min-width: 46px; text-align: center; padding: 7px 12px; display: inline-flex; align-items: center; gap: 6px; justify-content: center; }
.scorer-row.top .goal-badge { background: var(--asi-red); }
.rank-medal { width: 26px; height: 26px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; font-size: 12px; }
.medal-1 { background: #fbbf24; color: #7c2d12; }
.medal-2 { background: #d1d5db; color: #374151; }
.medal-3 { background: #d69a6a; color: #4a2c11; }

/* ===== Discipline (ammoniti/diffidati/squalificati) ===== */
.disc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.disc-card { display: flex; align-items: center; gap: 14px; border: 1px solid var(--asi-border); padding: 1.1rem 1.3rem; margin: -0.5px; transition: all .25s; }
.disc-card:hover { background: var(--asi-gray); border-color: var(--asi-blue); }
.disc-card-icon { font-size: 22px; flex: 0 0 auto; }
.disc-name { font-family: 'Outfit'; font-weight: 800; font-size: 14px; text-transform: uppercase; }
.disc-team { font-size: 11px; font-weight: 600; color: #9ca3af; text-transform: uppercase; letter-spacing: 0.04em; }
.disc-extra { margin-left: auto; text-align: right; }
.disc-tag { font-size: 10px; font-weight: 900; letter-spacing: 0.08em; text-transform: uppercase; padding: 3px 9px; }
.tag-amm { background: #fef9c3; color: #854d0e; }
.tag-dif { background: #ffedd5; color: #9a3412; }
.tag-squ { background: #fee2e2; color: #991b1b; }
.card-yellow { color: #eab308; }
.card-red { color: var(--asi-red); }
.empty-state { text-align: center; padding: 4.5rem 1rem; border: 1px dashed var(--asi-border); }
.empty-state i { font-size: 42px; color: #d1d5db; }
.empty-state h4 { font-size: 1.1rem; margin: 1rem 0 0.4rem; color: #6b7280; }
.empty-state p { font-size: 0.9rem; color: #9ca3af; margin: 0; }

/* =========================================================
   MATCH DETAIL (partita.html)
========================================================= */
.match-scoreboard { position: relative; background: var(--asi-dark); color: #fff; overflow: hidden; padding: 3rem 0 2.5rem; }
.match-scoreboard::before {
    content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 2px;
    background: rgba(255,255,255,0.07); transform: translateX(-50%); pointer-events: none;
}
.match-scoreboard::after {
    content: ""; position: absolute; left: 50%; top: 50%; width: 260px; height: 260px;
    border: 2px solid rgba(255,255,255,0.06); border-radius: 50%; transform: translate(-50%,-50%); pointer-events: none;
}
.match-scoreboard .container { position: relative; z-index: 2; }
.sb-meta { text-align: center; font-family: 'Outfit'; font-size: 10px; font-weight: 800; letter-spacing: 0.18em; text-transform: uppercase; color: rgba(255,255,255,0.5); margin-bottom: 2rem; display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; }
.sb-meta span { display: inline-flex; align-items: center; gap: 7px; }
.sb-grid { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1.5rem; }
.sb-team { text-align: center; }
.sb-team img { width: 96px; height: 96px; object-fit: contain; background: #fff; border-radius: 50%; padding: 8px; border: 3px solid rgba(255,255,255,0.1); }
.sb-team h2 { font-size: clamp(1.1rem, 2.6vw, 1.9rem); margin: 1rem 0 0; color: #fff; }
.sb-scorers { margin-top: 0.9rem; display: flex; flex-direction: column; gap: 3px; }
.sb-scorers span { font-size: 11px; font-weight: 600; color: rgba(255,255,255,0.6); }
.sb-scorers span i { color: var(--asi-blue); font-size: 9px; margin-right: 5px; }
.sb-center { text-align: center; }
.sb-score { font-family: 'Outfit'; font-weight: 900; font-size: clamp(2.8rem, 8vw, 4.5rem); line-height: 1; color: #fff; }
.sb-status { display: inline-block; margin-top: 0.7rem; font-size: 9px; font-weight: 900; letter-spacing: 0.14em; text-transform: uppercase; padding: 4px 12px; background: var(--asi-red); color: #fff; }
.sb-status.disputata { background: rgba(255,255,255,0.12); color: rgba(255,255,255,0.8); }

/* Timeline */
.timeline { max-width: 760px; margin: 0 auto; position: relative; padding: 1rem 0; }
.timeline::before { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 2px; background: var(--asi-border); transform: translateX(-50%); }
.tl-half { text-align: center; margin: 1.6rem 0; position: relative; z-index: 2; }
.tl-half span { font-family: 'Outfit'; font-weight: 900; font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; background: var(--asi-dark); color: #fff; padding: 5px 14px; }
.tl-event { display: grid; grid-template-columns: 1fr 54px 1fr; align-items: center; gap: 0.5rem; margin: 0.55rem 0; position: relative; z-index: 2; }
.tl-min { font-family: 'Outfit'; font-weight: 900; font-size: 12px; width: 42px; height: 42px; display: flex; align-items: center; justify-content: center; background: #fff; border: 2px solid var(--asi-border); border-radius: 50%; margin: 0 auto; }
.tl-card { background: #fff; border: 1px solid var(--asi-border); padding: 0.6rem 0.9rem; display: inline-flex; align-items: center; gap: 10px; max-width: 100%; }
.tl-left .tl-card { justify-content: flex-end; text-align: right; flex-direction: row-reverse; }
.tl-left { justify-self: end; }
.tl-right { justify-self: start; }
.tl-icon { font-size: 16px; flex: 0 0 auto; }
.tl-icon.goal { color: var(--asi-blue); }
.tl-pname { font-family: 'Outfit'; font-weight: 800; font-size: 12px; text-transform: uppercase; line-height: 1.15; }
.tl-pscore { font-size: 10px; font-weight: 700; color: #9ca3af; letter-spacing: 0.04em; }
.tl-event.goal .tl-min { border-color: var(--asi-blue); color: var(--asi-blue); }

/* Lineups */
.lineup-title { font-family: 'Outfit'; font-weight: 900; font-size: 1.1rem; text-transform: uppercase; letter-spacing: -0.01em; margin-bottom: 1.2rem; display: flex; align-items: center; gap: 12px; }
.lineup-title img { width: 30px; height: 30px; object-fit: contain; border-radius: 50%; border: 1px solid var(--asi-border); }
.lineup-table { width: 100%; border-collapse: collapse; }
.lineup-table td { padding: 0.7rem 0.6rem; border-bottom: 1px solid var(--asi-border); font-weight: 700; font-size: 13px; }
.lineup-table tr:hover { background: var(--asi-gray); }
.lineup-num { font-family: 'Outfit'; font-weight: 900; width: 46px; color: var(--asi-blue); text-align: center; }
.lineup-role { width: 40px; text-align: center; }
.role-badge { font-size: 9px; font-weight: 900; padding: 2px 6px; background: var(--asi-dark); color: #fff; letter-spacing: 0.05em; }
.lineup-note { font-size: 10px; color: #9ca3af; margin-top: 0.8rem; letter-spacing: 0.03em; }

/* =========================================================
   VIDEO / STREAMING (video.html + home)
========================================================= */
.yt-facade { position: relative; width: 100%; aspect-ratio: 16/9; overflow: hidden; background: #000; cursor: pointer; border: 1px solid var(--asi-border); }
.yt-facade img { width: 100%; height: 100%; object-fit: cover; opacity: 0.85; transition: all .35s; }
.yt-facade:hover img { opacity: 1; transform: scale(1.03); }
.yt-facade iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.yt-play {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
    width: 74px; height: 74px; border-radius: 50%; background: var(--asi-red);
    display: flex; align-items: center; justify-content: center; color: #fff; font-size: 30px;
    transition: all .3s; box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}
.yt-facade:hover .yt-play { transform: translate(-50%,-50%) scale(1.1); background: var(--asi-blue); }
.yt-badge {
    position: absolute; top: 16px; left: 16px; z-index: 3;
    font-size: 10px; font-weight: 900; letter-spacing: 0.12em; text-transform: uppercase;
    padding: 5px 12px; display: inline-flex; align-items: center; gap: 7px;
}
.yt-badge.live { background: var(--asi-red); color: #fff; animation: blink 2s infinite; }
.yt-badge.ondemand { background: rgba(0,0,0,0.7); color: #fff; }
.yt-badge .dot { width: 7px; height: 7px; border-radius: 50%; background: #fff; }
.yt-duration { position: absolute; bottom: 12px; right: 12px; z-index: 3; font-size: 11px; font-weight: 800; background: rgba(0,0,0,0.8); color: #fff; padding: 3px 8px; }

.video-filters { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 2.5rem; }
.vf-chip {
    font-family: 'Outfit'; font-size: 11px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase;
    padding: 8px 16px; border: 1px solid var(--asi-border); background: #fff; color: #6b7280; cursor: pointer; transition: all .25s;
}
.vf-chip:hover { border-color: var(--asi-blue); color: var(--asi-blue); }
.vf-chip.active { background: var(--asi-dark); color: #fff; border-color: var(--asi-dark); }

.video-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.5rem; }
.video-card { border: 1px solid var(--asi-border); background: #fff; transition: all .3s; display: flex; flex-direction: column; }
.video-card:hover { border-color: var(--asi-blue); box-shadow: 0 14px 30px rgba(0,0,0,0.08); transform: translateY(-4px); }
.video-card-body { padding: 1.2rem 1.3rem 1.4rem; }
.video-cat { font-size: 10px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--asi-blue); }
.video-card-title { font-family: 'Outfit'; font-weight: 800; font-size: 15px; text-transform: uppercase; letter-spacing: -0.01em; line-height: 1.2; margin: 0.5rem 0 0.7rem; }
.video-card-meta { font-size: 11px; font-weight: 600; color: #9ca3af; letter-spacing: 0.03em; display: flex; gap: 14px; }
.video-card-meta span { display: inline-flex; align-items: center; gap: 5px; }

/* Home: strip mini video */
/* auto-fit: con 2 soli video le colonne si allargano e riempiono la riga */
.stream-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.5rem; }
.stream-mini { background: #000; }
.stream-mini .yt-badge { top: 12px; left: 12px; }
.stream-mini iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.stream-mini:hover .yt-play { transform: translate(-50%,-50%) scale(1.1); background: var(--asi-blue); }
.stream-mini { position: relative; aspect-ratio: 16/9; overflow: hidden; border: 1px solid var(--asi-border); cursor: pointer; }
.stream-mini img { width: 100%; height: 100%; object-fit: cover; transition: all .3s; }
.stream-mini:hover img { transform: scale(1.06); }
.stream-mini .yt-play { width: 58px; height: 58px; font-size: 24px; }
.stream-mini-label { position: absolute; bottom: 0; left: 0; right: 0; padding: 2.5rem 1.1rem 0.9rem; background: linear-gradient(to top, rgba(0,0,0,0.9), transparent); color: #fff; font-family: 'Outfit'; font-weight: 800; font-size: 13px; letter-spacing: 0.03em; text-transform: uppercase; z-index: 2; }

/* ===== YouTube CTA banner ===== */
.yt-cta { background: var(--asi-dark); color: #fff; padding: 3rem; display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.yt-cta h3 { color: #fff; font-size: 1.6rem; margin: 0 0 0.4rem; }
.yt-cta p { color: rgba(255,255,255,0.6); margin: 0; font-size: 0.95rem; }
.btn-youtube { background: var(--asi-red); color: #fff; font-family: 'Outfit'; font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em; font-size: 12px; padding: 14px 26px; border: none; text-decoration: none; display: inline-flex; align-items: center; gap: 10px; white-space: nowrap; transition: all .3s; }
.btn-youtube:hover { background: #fff; color: var(--asi-dark); }

/* ===== Responsive ===== */
@media (max-width: 860px) {
    .match-row { grid-template-columns: 1fr auto 1fr; grid-template-areas: "home center away" "meta meta meta"; row-gap: 0.9rem; }
    .match-when { display: none; }
    .match-meta { grid-area: meta; flex-direction: row; justify-content: space-between; align-items: center; width: 100%; border-top: 1px solid var(--asi-border); padding-top: 0.8rem; }
    .team-name { font-size: 12px; }
    .scorer-row { grid-template-columns: 44px 1fr auto; }
    .sb-team img { width: 66px; height: 66px; }
    .stream-strip { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
    .table-champ { font-size: 12px; }
    .table-champ .hide-sm { display: none; }
    .tl-event { grid-template-columns: 1fr 44px 1fr; }
    .tl-pname { font-size: 11px; }
}

/* =========================================================
   BANNER SPONSOR (slider)
========================================================= */
.sponsor-band { padding: 3rem 0; background: var(--asi-gray); border-top: 1px solid var(--asi-border); border-bottom: 1px solid var(--asi-border); }
.sponsor-band.plain { background: #fff; }
.sponsor-band-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.5rem; gap: 1rem; }
.sponsor-band-head .label-caps { margin: 0; }
.sponsor-band-cta { font-family: 'Outfit', sans-serif; font-size: 11px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: #9ca3af; text-decoration: none; white-space: nowrap; }
.sponsor-band-cta:hover { color: var(--asi-blue); }
.bannerSwiper { width: 100%; }
.bannerSwiper .swiper-slide { height: auto; display: flex; }
.sponsor-banner { display: block; width: 100%; height: auto; border: 1px solid var(--asi-border); background: #fff; transition: all .3s; }
.sponsor-banner:hover { border-color: var(--asi-blue); box-shadow: 0 8px 22px rgba(0,0,0,0.07); }

/* =========================================================
   PAGINE DI CONTENUTO (chi siamo / news dettaglio)
========================================================= */
.content-section { padding: 3.5rem 0 4rem; }
.article { max-width: 820px; }
.article .lead-in { font-size: 1.25rem; line-height: 1.7; color: var(--asi-dark); font-weight: 500; margin-bottom: 1.8rem; }
.article p { font-size: 1.02rem; line-height: 1.85; color: #3f3f46; margin-bottom: 1.3rem; }
.article h3 { font-size: 1.5rem; margin: 2.4rem 0 1.1rem; }
.article ul { padding-left: 0; list-style: none; margin: 1.4rem 0; }
.article ul li { position: relative; padding: 0.55rem 0 0.55rem 2rem; border-bottom: 1px solid var(--asi-border); font-size: 1rem; line-height: 1.6; color: #3f3f46; }
.article ul li::before { content: ""; position: absolute; left: 0; top: 1.05rem; width: 10px; height: 10px; background: var(--asi-blue); }
.article blockquote { border-left: 3px solid var(--asi-blue); padding: 0.4rem 0 0.4rem 1.6rem; margin: 2rem 0; font-size: 1.15rem; font-style: italic; color: var(--asi-dark); }
.share-row { display: flex; align-items: center; gap: 12px; margin-top: 2.5rem; padding-top: 1.8rem; border-top: 1px solid var(--asi-border); }
.share-row span { font-family: 'Outfit'; font-weight: 800; font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: #9ca3af; }
.share-btn { width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--asi-border); color: var(--asi-dark); text-decoration: none; transition: all .25s; }
.share-btn:hover { background: var(--asi-dark); color: #fff; border-color: var(--asi-dark); }
.side-box { background: var(--asi-gray); border: 1px solid var(--asi-border); padding: 1.8rem; }
.side-box h4 { font-family: 'Outfit'; font-weight: 900; font-size: 0.95rem; text-transform: uppercase; letter-spacing: 0.12em; margin-bottom: 1.3rem; padding-bottom: 0.8rem; border-bottom: 1px solid var(--asi-border); }

/* Info card (chi siamo laterale) */
.info-line { display: flex; gap: 12px; padding: 0.75rem 0; border-bottom: 1px solid var(--asi-border); font-size: 0.9rem; }
.info-line:last-child { border-bottom: none; }
.info-line i { color: var(--asi-blue); font-size: 1.05rem; flex: 0 0 auto; margin-top: 2px; }
.info-line b { font-family: 'Outfit'; text-transform: uppercase; font-size: 10px; letter-spacing: 0.08em; color: #9ca3af; display: block; }

/* =========================================================
   ASSOCIAZIONI (card come "Discipline")
========================================================= */
.assoc-card { border: 1px solid var(--asi-border); background: #fff; transition: all .3s; height: 100%; display: flex; flex-direction: column; }
.assoc-card:hover { border-color: var(--asi-blue); box-shadow: 0 14px 30px rgba(0,0,0,0.08); transform: translateY(-4px); }
.assoc-top { display: flex; align-items: center; gap: 14px; padding: 1.4rem 1.4rem 1rem; }
.assoc-logo { width: 54px; height: 54px; object-fit: contain; border: 1px solid var(--asi-border); border-radius: 50%; background: #fff; flex: 0 0 54px; }
.assoc-name { font-family: 'Outfit'; font-weight: 800; font-size: 15px; text-transform: uppercase; letter-spacing: -0.01em; line-height: 1.15; }
.assoc-tag { font-size: 10px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--asi-blue); }
.assoc-body { padding: 0 1.4rem 1.2rem; }
.assoc-body p { font-size: 0.86rem; color: #6b7280; margin: 0; line-height: 1.55; }
.assoc-foot { margin-top: auto; padding: 0.9rem 1.4rem; border-top: 1px solid var(--asi-border); display: flex; justify-content: space-between; align-items: center; }
.assoc-foot .meta { font-size: 10px; font-weight: 700; color: #9ca3af; text-transform: uppercase; letter-spacing: 0.05em; }
.assoc-foot a { font-size: 10px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--asi-blue); text-decoration: none; }

/* =========================================================
   NEWS (elenco)
========================================================= */
.news-card { border: 1px solid var(--asi-border); background: #fff; transition: all .3s; height: 100%; display: flex; flex-direction: column; }
.news-card:hover { border-color: var(--asi-blue); box-shadow: 0 14px 30px rgba(0,0,0,0.08); transform: translateY(-4px); }
.news-card-img { position: relative; aspect-ratio: 16/10; overflow: hidden; }
.news-card-img img { width: 100%; height: 100%; object-fit: cover; transition: all .4s; }
.news-card:hover .news-card-img img { transform: scale(1.05); }
.news-cat-badge { position: absolute; top: 12px; left: 12px; font-family: 'Outfit'; font-size: 10px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; background: var(--asi-blue); color: #fff; padding: 5px 11px; }
.news-card-body { padding: 1.3rem 1.4rem 1.5rem; display: flex; flex-direction: column; flex-grow: 1; }
.news-card-date { font-size: 11px; font-weight: 700; color: #9ca3af; letter-spacing: 0.05em; text-transform: uppercase; margin-bottom: 0.6rem; }
.news-card-title { font-family: 'Outfit'; font-weight: 800; font-size: 17px; text-transform: uppercase; letter-spacing: -0.01em; line-height: 1.2; margin-bottom: 0.7rem; }
.news-card-title a { color: var(--asi-dark); text-decoration: none; }
.news-card-title a:hover { color: var(--asi-blue); }
.news-card-excerpt { font-size: 0.9rem; color: #6b7280; line-height: 1.6; margin-bottom: 1.2rem; }
.news-card-link { margin-top: auto; font-family: 'Outfit'; font-weight: 800; font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--asi-blue); text-decoration: none; }
.pagination-champ { display: flex; gap: 6px; justify-content: center; margin-top: 3rem; }
.pagination-champ a { font-family: 'Outfit'; font-weight: 800; font-size: 13px; width: 42px; height: 42px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--asi-border); color: var(--asi-dark); text-decoration: none; transition: all .25s; }
.pagination-champ a:hover, .pagination-champ a.active { background: var(--asi-blue); color: #fff; border-color: var(--asi-blue); }

.article-hero-img { width: 100%; aspect-ratio: 16/7; object-fit: cover; border: 1px solid var(--asi-border); margin-bottom: 2.5rem; }

/* ---- foto della news: sempre intera, anche verticale ---- */
.article-figure { position: relative; margin: 0 0 2.5rem; background: #111; border: 1px solid var(--asi-border); overflow: hidden; display: flex; justify-content: center; align-items: center; min-height: 240px; }
.article-figure::before { content: ""; position: absolute; inset: -40px; background: var(--foto) center / cover no-repeat; filter: blur(30px) brightness(.55); transform: scale(1.1); }
.article-figure-link { position: relative; z-index: 1; display: block; line-height: 0; cursor: zoom-in; }
.article-figure-img { display: block; max-width: 100%; max-height: min(80vh, 860px); width: auto; height: auto; box-shadow: 0 10px 40px rgba(0,0,0,.45); }
.article-figure-zoom { position: absolute; right: 12px; bottom: 12px; width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; background: rgba(0,0,0,.6); color: #fff; font-size: 16px; line-height: 1; opacity: .85; transition: all .25s; }
.article-figure-link:hover .article-figure-zoom { opacity: 1; background: var(--asi-blue); }
.article img.js-lightbox { cursor: zoom-in; }

/* ---- lightbox ---- */
.lightbox { position: fixed; inset: 0; z-index: 2000; background: rgba(9,9,11,.94); display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 3.5rem 1rem 1.5rem; opacity: 0; visibility: hidden; transition: opacity .25s, visibility .25s; cursor: zoom-out; }
.lightbox.open { opacity: 1; visibility: visible; }
.lightbox img { max-width: 100%; max-height: calc(100vh - 7rem); width: auto; height: auto; object-fit: contain; box-shadow: 0 20px 60px rgba(0,0,0,.6); transform: scale(.97); transition: transform .25s; cursor: default; }
.lightbox.open img { transform: scale(1); }
.lightbox-caption { color: rgba(255,255,255,.75); font-family: 'Outfit', sans-serif; font-weight: 700; font-size: 13px; letter-spacing: .04em; text-align: center; margin-top: 1rem; max-width: 900px; }
.lightbox-close { position: absolute; top: 12px; right: 12px; width: 46px; height: 46px; border: 0; background: rgba(255,255,255,.1); color: #fff; font-size: 22px; display: flex; align-items: center; justify-content: center; transition: background .2s; }
.lightbox-close:hover { background: var(--asi-red); }
body.lightbox-lock { overflow: hidden; }

footer .hover-white:hover { color: #fff !important; }

/* ---- aggiunte per i contenuti dinamici ---- */
/* titolo del girone, quando un campionato ne ha piu' di uno */
.girone-title{
    font-family:Outfit,system-ui,sans-serif;font-weight:900;text-transform:uppercase;
    letter-spacing:.08em;font-size:15px;color:#1D4ED8;
    margin:32px 0 12px;padding-bottom:8px;border-bottom:2px solid #e5e7eb;
}
.girone-title:first-of-type{margin-top:0}
/* stato partita non ancora disputata ma con esito particolare */
.status-chip.status-speciale{background:#fef3c7;color:#92400e}
/* riga "nessun dato" */
.champ-empty{padding:40px 0;color:#6b7280;font-size:14px}

/* =========================================================
   AREA UTENTI (login, registrazione, profilo, contenuti riservati)
========================================================= */
.hero-utente { background-image: linear-gradient(90deg, rgba(24,24,27,.94) 0%, rgba(24,24,27,.75) 50%, rgba(24,24,27,.45) 100%), url("https://images.unsplash.com/photo-1551958219-acbc608c6377?auto=format&fit=crop&w=1920&q=70"); }

.btn-user-icon.is-logged { background: var(--asi-red); }
.btn-user-icon .user-initials { font-family: 'Outfit', sans-serif; font-weight: 900; font-size: 13px; letter-spacing: .02em; }
.dropdown-user .dropdown-item-text { white-space: nowrap; }

.form-asi .form-label { font-family: 'Outfit', sans-serif; font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: #52525b; margin-bottom: .35rem; }
.form-asi .form-control, .form-asi .form-select { border-radius: 0; border-color: var(--asi-border); padding: .7rem .9rem; }
.form-asi .form-control:focus, .form-asi .form-select:focus { border-color: var(--asi-blue); box-shadow: 0 0 0 3px rgba(29,78,216,.12); }
.form-asi .form-check-input { border-radius: 0; }
.form-asi .form-check-label { font-weight: 600; font-size: .92rem; }
.form-section { font-size: 1.15rem; margin: 2.2rem 0 1.1rem; padding-bottom: .6rem; border-bottom: 2px solid var(--asi-border); }
.form-asi > .form-section:first-of-type { margin-top: 0; }
.privacy-text { max-height: 180px; overflow-y: auto; font-size: 12.5px; line-height: 1.6; color: #52525b; background: var(--asi-gray); border: 1px solid var(--asi-border); padding: .9rem 1rem; }

.esito-box { border: 1px solid var(--asi-border); border-top: 4px solid #16a34a; padding: 2.5rem; }
.esito-box > i { font-size: 44px; color: #16a34a; }
.esito-box h2 { font-size: 2rem; margin: 1rem 0 .6rem; }
.esito-box p { color: #52525b; margin-bottom: 1.6rem; }

.box-riservato { text-align: center; padding: 3.5rem 1.5rem; border: 1px dashed #cbd5e1; background: var(--asi-gray); }
.box-riservato > i { font-size: 38px; color: var(--asi-blue); }
.box-riservato h4 { font-size: 1.3rem; margin: .9rem 0 .5rem; }
.box-riservato p { color: #52525b; max-width: 520px; margin: 0 auto 1.5rem; }

.modal-asi .modal-content { overflow: hidden; }
.modal-asi-side { background: linear-gradient(160deg, rgba(29,78,216,.92), rgba(24,24,27,.95)), url("https://images.unsplash.com/photo-1551958219-acbc608c6377?auto=format&fit=crop&w=800&q=70") center / cover; color: #fff; padding: 2.5rem; align-items: flex-end; }
.modal-asi-side h3 { color: #fff; font-size: 1.9rem; margin: 0 0 1.2rem; }
.modal-asi-side ul { list-style: none; padding: 0; margin: 0; font-size: .92rem; }
.modal-asi-side li { padding: .3rem 0; color: rgba(255,255,255,.85); }
.modal-asi-side li i { color: #fff; margin-right: 6px; }
.modal-asi-tabs { gap: 1.5rem; border-bottom: 2px solid var(--asi-border); }
.modal-asi-tabs .nav-link { padding: 0 0 .7rem; margin-bottom: -2px; border: 0; border-bottom: 3px solid transparent; background: none; font-family: 'Outfit', sans-serif; font-weight: 900; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: #9ca3af; }
.modal-asi-tabs .nav-link.active { color: var(--asi-blue); border-bottom-color: var(--asi-blue); }
.esito-box.esito-errore { border-top-color: var(--asi-red); }
.esito-box.esito-errore > i { color: var(--asi-red); }

/* =========================================================
   STATISTICHE (stats-*.php, ute-stats*.php) e VOTO UOMO PARTITA
========================================================= */
.stat-filtri { background: var(--asi-gray); border: 1px solid var(--asi-border); padding: 1.3rem 1.5rem; margin-bottom: 2.5rem; }
.stat-tit { font-size: 1.25rem; margin: 0 0 1.2rem; padding-bottom: .6rem; border-bottom: 2px solid var(--asi-border); }
.stat-sottotit { font-family: 'Outfit', sans-serif; font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: #6b7280; margin: 2rem 0 1rem; }
.stat-nota { font-size: 12px; color: #9ca3af; margin: 1rem 0 0; }
.stat-logo { width: 56px; height: 56px; object-fit: contain; background: #fff; border: 1px solid var(--asi-border); border-radius: 50%; flex: 0 0 56px; }

.stat-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: .75rem; margin-bottom: 1rem; }
.stat-kpi { background: #fff; border: 1px solid var(--asi-border); padding: 1.3rem 1.2rem; position: relative; }
.stat-kpi > i { position: absolute; top: 1.1rem; right: 1.1rem; font-size: 18px; color: #d1d5db; }
.stat-kpi-val { font-family: 'Outfit', sans-serif; font-weight: 900; font-size: 2.1rem; line-height: 1; color: var(--asi-dark); }
.stat-kpi-lbl { font-family: 'Outfit', sans-serif; font-size: 10px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: #9ca3af; margin-top: .5rem; }

.stat-awards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; }
.stat-award { display: flex; gap: 14px; align-items: center; border: 1px solid var(--asi-border); padding: 1rem 1.1rem; transition: border-color .25s; }
.stat-award:hover { border-color: var(--asi-blue); }
.stat-award.vuoto { opacity: .55; }
.stat-award-ico { width: 44px; height: 44px; flex: 0 0 44px; display: flex; align-items: center; justify-content: center; background: var(--asi-gray); color: var(--asi-blue); font-size: 20px; }
.stat-award-tit { font-family: 'Outfit', sans-serif; font-size: 10px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: #9ca3af; }
.stat-award-nome { font-family: 'Outfit', sans-serif; font-weight: 800; font-size: 15px; line-height: 1.2; margin: 2px 0; }
.stat-award-det { font-size: 12px; color: #6b7280; }

.stat-bars { display: grid; gap: .9rem; }
.stat-bar { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.4fr) auto; align-items: center; gap: .8rem; }
.stat-bar-lbl { font-size: 12.5px; font-weight: 700; color: #3f3f46; }
.stat-bar-track { height: 10px; background: var(--asi-gray); border: 1px solid var(--asi-border); }
.stat-bar-fill { height: 100%; background: var(--asi-blue); transition: width .6s ease; }
.stat-bar-val { font-family: 'Outfit', sans-serif; font-weight: 900; font-size: 14px; min-width: 70px; text-align: right; }
.stat-bar-val span { font-weight: 700; font-size: 11px; color: #9ca3af; margin-left: 4px; }

.stat-form { display: inline-flex; gap: 4px; }
.stat-form span { width: 22px; height: 22px; display: inline-flex; align-items: center; justify-content: center; font-family: 'Outfit', sans-serif; font-weight: 900; font-size: 10px; color: #fff; }
.stat-form .form-V { background: #16a34a; } .stat-form .form-N { background: #9ca3af; } .stat-form .form-P { background: var(--asi-red); }

.stat-rosa tbody td.td-team { font-weight: 700; }
.stat-mini-track { height: 6px; background: var(--asi-gray); min-width: 70px; }
.stat-mini-track > div { height: 100%; background: var(--asi-blue); }

.cmp-head { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1rem; margin-bottom: 2rem; text-align: center; }
.cmp-team { display: flex; flex-direction: column; align-items: center; gap: .6rem; }
.cmp-team h2 { font-size: clamp(1.2rem, 3vw, 1.8rem); margin: 0; }
.cmp-team .stat-logo { width: 80px; height: 80px; flex-basis: 80px; }
.cmp-vs { font-family: 'Outfit', sans-serif; font-weight: 900; font-size: 1.4rem; color: #d1d5db; }
.cmp-table { border: 1px solid var(--asi-border); }
.cmp-row { display: grid; grid-template-columns: 90px 1fr 90px; align-items: center; padding: .9rem 1rem; border-bottom: 1px solid var(--asi-border); }
.cmp-row:last-child { border-bottom: 0; }
.cmp-val { font-family: 'Outfit', sans-serif; font-weight: 900; font-size: 1.5rem; text-align: center; color: #9ca3af; }
.cmp-val.best { color: var(--asi-dark); }
.cmp-lbl { font-family: 'Outfit', sans-serif; font-size: 10px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: #6b7280; text-align: center; margin-bottom: .4rem; }
.cmp-track { display: flex; height: 8px; gap: 2px; }
.cmp-a { background: var(--asi-blue); } .cmp-b { background: var(--asi-red); }

.ute-stat-block { border: 1px solid var(--asi-border); padding: 1.8rem; margin-bottom: 2rem; }
.ute-stat-head { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.5rem; flex-wrap: wrap; }
.ute-stat-head h3 { font-size: 1.4rem; margin: .2rem 0 0; }

.vote-card { border: 1px solid var(--asi-border); height: 100%; }
.vote-card-head { background: var(--asi-dark); color: #fff; font-family: 'Outfit', sans-serif; font-weight: 800; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; padding: .9rem 1.1rem; display: flex; justify-content: space-between; gap: 1rem; }
.vote-card-head span { color: rgba(255,255,255,.5); font-size: 11px; white-space: nowrap; }
.vote-player { display: grid; grid-template-columns: 22px 48px 1fr auto; align-items: center; gap: .8rem; padding: .9rem 1.1rem; border-top: 1px solid var(--asi-border); }
.vote-player.primo { background: #fffbeb; }
.vote-pos { font-family: 'Outfit', sans-serif; font-weight: 900; color: #9ca3af; text-align: center; }
.vote-player.primo .vote-pos { color: #f59e0b; }
.vote-avatar { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; background: var(--asi-blue); color: #fff; display: flex; align-items: center; justify-content: center; font-family: 'Outfit', sans-serif; font-weight: 900; }
.vote-nome { font-family: 'Outfit', sans-serif; font-weight: 800; font-size: 14px; line-height: 1.2; }
.vote-det { font-size: 11.5px; color: #6b7280; margin: 2px 0 6px; }
.vote-perc { font-family: 'Outfit', sans-serif; font-weight: 900; font-size: 1.1rem; }

.vote-box { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--asi-border); }
.vote-box-intro { background: var(--asi-dark); color: #fff; padding: 2rem; display: flex; gap: 1.2rem; align-items: flex-start; }
.vote-box-intro h2 { color: #fff; font-size: 1.7rem; margin: 0 0 .5rem; }
.vote-box-intro p { color: rgba(255,255,255,.65); margin: 0; font-size: .95rem; }
.vote-box-star { width: 52px; height: 52px; flex: 0 0 52px; background: #f59e0b; display: flex; align-items: center; justify-content: center; font-size: 24px; }
.vote-box-form { padding: 2rem; }
.vote-results { margin-top: 1.5rem; padding-top: 1.2rem; border-top: 1px solid var(--asi-border); display: grid; gap: .7rem; }

@media (max-width: 860px) {
    .vote-box { grid-template-columns: 1fr; }
    .stat-bar { grid-template-columns: 1fr auto; }
    .stat-bar-track { grid-column: 1 / -1; grid-row: 2; }
    .cmp-row { grid-template-columns: 60px 1fr 60px; }
}

/* ===== Area partner: resa dei banner (sponsor-resa.php) ===== */
.sp-login p { font-size: .92rem; color: #52525b; }
.sp-errore { margin-top: .6rem; font-size: .88rem; font-weight: 700; color: var(--asi-red); }
.sp-esci { font-family: 'Outfit', sans-serif; font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: #52525b; text-decoration: none; }
.sp-esci:hover { color: var(--asi-blue); }
.sp-banner { padding: 2rem 0 3rem; border-top: 2px solid var(--asi-dark); }
.sp-banner + .sp-banner { margin-top: 1rem; }
.sp-banner-head { display: flex; align-items: center; gap: 1.5rem; margin-bottom: 1.8rem; flex-wrap: wrap; }
.sp-banner-head h2 { font-size: clamp(1.5rem, 3.5vw, 2.2rem); margin: .5rem 0 .4rem; }
.sp-banner-img { width: 240px; max-width: 100%; height: auto; border: 1px solid var(--asi-border); background: #fff; }
.sp-banner-info { display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; font-size: .88rem; color: #6b7280; }
.sp-banner-info i { color: var(--asi-blue); margin-right: 3px; }
.sp-stato { display: inline-flex; align-items: center; gap: 5px; font-family: 'Outfit', sans-serif; font-size: 10px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; padding: 5px 10px; }
.sp-stato-on { background: #ecfdf5; color: #047857; }
.sp-stato-off { background: var(--asi-gray); color: #6b7280; }
.sp-chart { position: relative; height: 240px; }
.sp-tab tbody td { font-size: 13px; }
.sp-tab-scroll { max-height: 330px; overflow-y: auto; }
.sp-tab-scroll thead th { position: sticky; top: 0; background: #fff; }

/* ===== Eventi in zona (eventi.php / evento.php) ===== */
.hero-eventi { background-image: linear-gradient(90deg, rgba(24,24,27,.94) 0%, rgba(24,24,27,.75) 50%, rgba(24,24,27,.45) 100%), url("https://images.unsplash.com/photo-1533174072545-7a4b6ad7a6c3?auto=format&fit=crop&w=1920&q=70"); }
.eve-switch { font-family: 'Outfit', sans-serif; font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--asi-blue); text-decoration: none; white-space: nowrap; }
.eve-switch:hover { color: var(--asi-dark); }
.eve-filtri { display: flex; flex-wrap: wrap; gap: .5rem; margin: -1rem 0 2rem; }
.eve-filtri a { font-family: 'Outfit', sans-serif; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #52525b; text-decoration: none; border: 1px solid var(--asi-border); padding: 7px 14px; transition: all .2s; }
.eve-filtri a:hover { border-color: var(--asi-blue); color: var(--asi-blue); }
.eve-filtri a.active { background: var(--asi-blue); border-color: var(--asi-blue); color: #fff; }
.eve-luogo { font-size: .85rem; font-weight: 600; color: #52525b; margin: -.3rem 0 .6rem; }
.eve-luogo i { color: var(--asi-blue); }
.eve-avviso { background: var(--asi-gray); border-left: 3px solid #9ca3af; padding: .8rem 1rem; font-size: .9rem; color: #52525b; margin-bottom: 1.5rem; }
.eve-fonte { font-size: 12px; color: #9ca3af; margin-top: 1.5rem; }
.eve-fonte a { color: #6b7280; }
.home-eventi-head { margin: 4rem 0 2rem; padding-top: 3rem; border-top: 1px solid var(--asi-border); }

/* ===== Affiliazione (convenzioni / tessera / circoli / modulistica) ===== */
.aff-attiva a { color: var(--asi-blue) !important; }
.doc-list { display: grid; gap: 0; }
.doc-item { display: grid; grid-template-columns: 34px 1fr auto 24px; align-items: center; gap: 1rem; padding: 1rem 1.2rem; border: 1px solid var(--asi-border); margin-bottom: -1px; color: var(--asi-dark); text-decoration: none; transition: all .2s; }
.doc-item:hover { background: var(--asi-gray); border-color: var(--asi-blue); position: relative; z-index: 1; color: var(--asi-dark); }
.doc-ico { font-size: 26px; line-height: 1; }
.doc-pdf { color: var(--asi-red); }
.doc-doc { color: var(--asi-blue); }
.doc-tit { font-weight: 700; font-size: .95rem; }
.doc-meta { font-family: 'Outfit', sans-serif; font-size: 10px; font-weight: 800; letter-spacing: .1em; color: #9ca3af; white-space: nowrap; }
.doc-dl { color: #9ca3af; font-size: 18px; }
.doc-item:hover .doc-dl { color: var(--asi-blue); }
.doc-evid { display: grid; background: var(--asi-gray); }
.conv-card { height: 100%; border: 1px solid var(--asi-border); padding: 1.4rem 1.5rem; display: flex; flex-direction: column; transition: all .2s; }
.conv-card:hover { border-color: var(--asi-blue); }
.conv-card h3 { font-size: 1.05rem; margin: 0 0 .6rem; }
.conv-card p { font-size: .9rem; color: #52525b; margin: 0 0 1rem; flex: 1; }
.conv-doc { font-family: 'Outfit', sans-serif; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--asi-blue); text-decoration: none; }
.conv-doc:hover { color: var(--asi-dark); }
@media (max-width: 575px) {
    .doc-item { grid-template-columns: 28px 1fr 20px; }
    .doc-meta { grid-column: 2; grid-row: 2; }
    .doc-dl { grid-row: 1 / span 2; grid-column: 3; }
}

/* ===== ASI: La storia / Gli sport ===== */
.storia-linea { list-style: none; padding: 0; margin: 1.5rem 0 0; border-left: 2px solid var(--asi-border); }
.storia-linea li { position: relative; display: grid; grid-template-columns: 110px 1fr; gap: 1rem; padding: 0 0 1.6rem 1.5rem; }
.storia-linea li::before { content: ""; position: absolute; left: -7px; top: 6px; width: 12px; height: 12px; background: var(--asi-blue); border: 2px solid #fff; border-radius: 50%; box-shadow: 0 0 0 1px var(--asi-blue); }
.storia-anno { font-family: 'Outfit', sans-serif; font-weight: 900; font-size: 1.1rem; color: var(--asi-blue); }
@media (max-width: 575px) { .storia-linea li { grid-template-columns: 1fr; gap: .2rem; } }
.sport-cerca { max-width: 420px; margin: 1.5rem 0 1.2rem; }
.sport-lettere { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 2rem; position: sticky; top: 76px; z-index: 5; background: #fff; padding: .6rem 0; border-bottom: 1px solid var(--asi-border); }
.sport-lettere a, .sport-lettere span { width: 30px; height: 30px; display: inline-flex; align-items: center; justify-content: center; font-family: 'Outfit', sans-serif; font-weight: 800; font-size: 12px; }
.sport-lettere a { color: var(--asi-dark); text-decoration: none; border: 1px solid var(--asi-border); }
.sport-lettere a:hover { background: var(--asi-blue); border-color: var(--asi-blue); color: #fff; }
.sport-lettere span { color: #d4d4d8; }
.sport-gruppo { margin-bottom: 2rem; scroll-margin-top: 140px; }
.sport-lettera { font-size: 1.6rem; color: var(--asi-blue); border-bottom: 2px solid var(--asi-border); padding-bottom: .4rem; margin-bottom: .9rem; }
.sport-elenco { list-style: none; padding: 0; margin: 0; columns: 3 200px; column-gap: 2rem; }
.sport-elenco li { break-inside: avoid; padding: .3rem 0; font-size: .92rem; font-weight: 600; color: #3f3f46; border-bottom: 1px dashed var(--asi-border); }

/* ===== Associazioni (associazioni.php / associazione.php / area riservata) ===== */
a.assoc-card-link { color: inherit; text-decoration: none; }
a.assoc-card-link .assoc-vai { font-size: 10px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--asi-blue); }
.assoc-logo-vuoto { display: inline-flex; align-items: center; justify-content: center; background: var(--asi-blue); color: #fff; font-family: 'Outfit', sans-serif; font-weight: 900; font-size: 18px; }
.assoc-hero { min-height: 400px; height: auto; padding: 4rem 0; }
.assoc-hero-title .champ-breadcrumb { margin-bottom: 1.2rem; }
.assoc-hero-title .champ-breadcrumb a { color: rgba(255,255,255,.75); }
.assoc-hero-logo { width: 96px; height: 96px; object-fit: contain; background: #fff; border-radius: 50%; padding: 6px; margin: 0 auto 1rem; display: block; }
.assoc-hero-nome { font-size: clamp(2.2rem, 6vw, 4.5rem); color: #fff; margin: 0; }
.assoc-description p { margin-bottom: 1.1rem; }
.assnews-card { display: flex; flex-direction: column; height: 100%; border: 1px solid var(--asi-border); color: inherit; text-decoration: none; transition: all .2s; }
.assnews-card:hover { border-color: var(--asi-blue); color: inherit; }
.assnews-card img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.assnews-body { padding: 1.3rem 1.4rem; }
.area-barra { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; margin-bottom: 2rem; padding-bottom: 1rem; border-bottom: 1px solid var(--asi-border); }
.area-barra a { font-family: 'Outfit', sans-serif; font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--asi-dark); text-decoration: none; }
.area-barra a:hover { color: var(--asi-blue); }
.area-msg { padding: .9rem 1.1rem; margin-bottom: 1.5rem; font-size: .92rem; border-left: 3px solid; }
.area-msg-ok { background: #ecfdf5; border-color: #059669; color: #065f46; }
.area-msg-err { background: #fef2f2; border-color: var(--asi-red); color: #991b1b; }
.area-img { display: flex; align-items: center; gap: 1rem; }
.area-img > div { flex: 1; }
.area-img-logo, .area-img .assoc-logo { width: 64px; height: 64px; flex: 0 0 64px; object-fit: contain; border: 1px solid var(--asi-border); border-radius: 50%; }
.area-img-cop { width: 140px; height: 80px; object-fit: cover; border: 1px solid var(--asi-border); }
.area-tab td, .area-tab th { text-align: left; }
.dropdown-menu-scroll { max-height: 70vh; overflow-y: auto; }
.menu-conta { font-size: 10px; font-weight: 800; color: #9ca3af; margin-left: 4px; }
.sport-elenco li a { color: var(--asi-blue); text-decoration: none; }
.sport-elenco li a:hover { text-decoration: underline; }
a.sport-card-link { display: block; color: inherit; text-decoration: none; }

/* ===== Video (slide video in home, video.php) ===== */
.slide-video .slide-img { opacity: .6; }
.slide-play { position: absolute; z-index: 11; right: 12%; top: 50%; transform: translateY(-50%); width: 110px; height: 110px; border-radius: 50%; background: var(--asi-red); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 56px; text-decoration: none; box-shadow: 0 0 0 12px rgba(239,68,68,.25); transition: transform .2s; }
.slide-play:hover { color: #fff; transform: translateY(-50%) scale(1.08); }
@media (max-width: 991px) { .slide-play { right: 50%; top: auto; bottom: 12%; transform: translateX(50%); width: 72px; height: 72px; font-size: 36px; } .slide-play:hover { transform: translateX(50%) scale(1.08); } }
.video-embed { position: relative; width: 100%; aspect-ratio: 16/9; background: #000; border: 1px solid var(--asi-border); }
.video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-card .video-embed { border: 0; border-bottom: 1px solid var(--asi-border); }
.video-card.attivo { border-color: var(--asi-blue); }

/* ===== Meteo Pistoia (home, sotto Prossime gare) ===== */
.prossime-gare li:last-child { border-bottom: 0 !important; padding-bottom: 0 !important; }
.meteo-box { background: var(--asi-dark); color: #fff; padding: 1.4rem 1.5rem 1rem; display: flex; flex-direction: column; background-image: radial-gradient(circle at 100% 0%, rgba(29,78,216,.45), transparent 60%); }
.meteo-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: .8rem; }
.meteo-head .label-caps { color: #fff; margin: 0; }
.meteo-head .label-caps i { color: var(--asi-red); }
.meteo-ora { font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,.5); }
.meteo-ora-corrente { display: flex; align-items: center; gap: 1rem; }
.meteo-icona { font-size: 52px; line-height: 1; color: #e5e7eb; }
.meteo-temp { font-family: 'Outfit', sans-serif; font-weight: 900; font-size: 2.8rem; line-height: 1; }
.meteo-descr { font-size: 12px; font-weight: 700; color: rgba(255,255,255,.75); margin-top: .2rem; }
.meteo-minmax { margin-left: auto; display: flex; flex-direction: column; gap: 2px; font-size: 12px; font-weight: 800; }
.meteo-minmax i { font-size: 11px; color: rgba(255,255,255,.5); margin-right: 2px; }
.meteo-dettagli { display: flex; justify-content: space-between; gap: .5rem; margin: 1rem 0; padding: .6rem 0; border-top: 1px solid rgba(255,255,255,.12); border-bottom: 1px solid rgba(255,255,255,.12); font-size: 12px; font-weight: 600; color: rgba(255,255,255,.8); }
.meteo-dettagli i { color: rgba(255,255,255,.5); }
.meteo-giorni { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; text-align: center; }
.meteo-giorno { display: flex; flex-direction: column; align-items: center; gap: 3px; }
.meteo-giorno-nome { font-family: 'Outfit', sans-serif; font-size: 10px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.55); }
.meteo-giorno i { font-size: 22px; color: #e5e7eb; }
.meteo-box .bi-sun, .meteo-box .bi-cloud-sun { color: #fbbf24; }
.meteo-box .bi-moon-stars, .meteo-box .bi-cloud-moon { color: #c7d2fe; }
.meteo-giorno-t { font-size: 12px; color: rgba(255,255,255,.6); }
.meteo-giorno-t b { color: #fff; }
.meteo-fonte { margin-top: auto; padding-top: .8rem; font-size: 10px; color: rgba(255,255,255,.4); text-align: right; }
.meteo-fonte a { color: rgba(255,255,255,.6); }
/* versione compatta: quando nella colonna ci sono anche le prossime gare */
.meteo-compatto { padding: 1rem 1.2rem .7rem; }
.meteo-compatto .meteo-head { margin-bottom: .5rem; }
.meteo-compatto .meteo-ora-corrente { gap: .7rem; }
.meteo-compatto .meteo-icona { font-size: 34px; }
.meteo-compatto .meteo-temp { font-size: 1.9rem; }
.meteo-compatto .meteo-descr { font-size: 11px; margin-top: 0; }
.meteo-compatto .meteo-minmax { flex-direction: row; gap: .6rem; font-size: 11px; }
.meteo-compatto .meteo-dettagli { margin: .6rem 0; padding: .35rem 0; font-size: 11px; }
.meteo-compatto .meteo-giorno { flex-direction: row; justify-content: center; gap: 5px; }
.meteo-compatto .meteo-giorno i { font-size: 15px; }
.meteo-compatto .meteo-giorno-t { font-size: 11px; }
.meteo-compatto .meteo-fonte { padding-top: .4rem; }
