/* Codigoro Volley A.S.D. — foglio di stile */
:root {
  --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
  --text-sm: clamp(0.875rem, 0.8rem + 0.35vw, 1rem);
  --text-base: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --text-lg: clamp(1.125rem, 1rem + 0.75vw, 1.5rem);
  --text-xl: clamp(1.5rem, 1.2rem + 1.25vw, 2.25rem);
  --text-2xl: clamp(2rem, 1.2rem + 2.5vw, 3.5rem);
  --text-3xl: clamp(2.5rem, 1rem + 4vw, 5rem);
  --text-hero: clamp(3rem, 0.5rem + 7vw, 7.5rem);
  --space-1: .25rem; --space-2: .5rem; --space-3: .75rem; --space-4: 1rem; --space-5: 1.25rem;
  --space-6: 1.5rem; --space-8: 2rem; --space-10: 2.5rem; --space-12: 3rem; --space-16: 4rem;
  --space-20: 5rem; --space-24: 6rem; --space-32: 8rem;
  --radius-sm: 6px; --radius-md: 10px; --radius-lg: 16px;
  --font-display: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  --font-body: 'Barlow', 'Helvetica Neue', sans-serif;
  --container: 1200px;
  --ease: cubic-bezier(.2,.7,.2,1);
}
:root, [data-theme="light"] {
  --bg: #f7f4f2;
  --surface: #ffffff;
  --surface-2: #efe9e6;
  --text: #1b1415;
  --muted: #6b5f60;
  --faint: #a59a9b;
  --border: #e3dbd8;
  --red: #c8102e;
  --red-hover: #a20b24;
  --red-ink: #ffffff;
  --red-soft: #fbe7ea;
  --black: #151213;
  --black-ink: #f4efee;
  --win: #1f7a46;
  --loss: #a20b24;
  --shadow: 0 1px 2px rgba(40,10,15,.06), 0 8px 24px rgba(40,10,15,.08);
  --logo-wing: #c8102e; --logo-wing-stroke: #5c0614; --logo-ink: #151213; --logo-ball: #ffffff;
}
[data-theme="dark"] {
  --bg: #121011;
  --surface: #1b1718;
  --surface-2: #241f20;
  --text: #efe9e8;
  --muted: #a99d9e;
  --faint: #6e6465;
  --border: #322b2c;
  --red: #e0344f;
  --red-hover: #f0546c;
  --red-ink: #ffffff;
  --red-soft: #3a1a20;
  --black: #0a0909;
  --black-ink: #f4efee;
  --win: #4cc483;
  --loss: #f0546c;
  --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 24px rgba(0,0,0,.35);
  --logo-wing: #e0344f; --logo-wing-stroke: #ffffff; --logo-ink: #151213; --logo-ball: #ffffff;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --bg: #121011; --surface: #1b1718; --surface-2: #241f20; --text: #efe9e8; --muted: #a99d9e; --faint: #6e6465;
    --border: #322b2c; --red: #e0344f; --red-hover: #f0546c; --red-soft: #3a1a20; --black: #0a0909;
    --win: #4cc483; --loss: #f0546c; --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 24px rgba(0,0,0,.35);
    --logo-wing: #e0344f; --logo-wing-stroke: #ffffff;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--font-body); font-size: var(--text-base); line-height: 1.6;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.05; margin: 0; letter-spacing: .005em; text-wrap: balance; }
p { margin: 0 0 var(--space-4); text-wrap: pretty; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 0; background: var(--red); color: #fff; padding: var(--space-2) var(--space-4); z-index: 100; }
.skip:focus { left: var(--space-4); }

.container { width: min(100% - 2 * var(--space-6), var(--container)); margin-inline: auto; }
.section { padding-block: clamp(var(--space-12), 7vw, var(--space-24)); }
.eyebrow { font-family: var(--font-display); font-weight: 700; text-transform: uppercase; letter-spacing: .14em; font-size: var(--text-xs); color: var(--red); margin-bottom: var(--space-3); display: inline-flex; gap: var(--space-2); align-items: center; }
.eyebrow::before { content: ""; width: 22px; height: 3px; background: var(--red); transform: skewX(-20deg); }
.section-title { font-size: var(--text-2xl); font-weight: 800; font-style: italic; text-transform: uppercase; margin-bottom: var(--space-4); }
.lead { color: var(--muted); max-width: 62ch; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--red); color: #fff; box-shadow: 0 2px 0 rgba(0,0,0,.12); }
[data-theme="dark"] .site-header { background: #a00c24; }
.header-inner { display: flex; align-items: center; gap: var(--space-4); height: 64px; }
.brand { display: flex; align-items: center; gap: var(--space-3); text-decoration: none; color: #fff; flex-shrink: 0; }
.brand-mark { width: 62px; height: auto; --logo-wing: #fff; --logo-wing-stroke: #fff; --logo-ink: #151213; --logo-ball: #fff; }
.brand-name { font-family: var(--font-display); font-weight: 800; font-style: italic; text-transform: uppercase; font-size: 1.35rem; letter-spacing: .02em; line-height: 1; }
.brand-name small { display: block; font-size: .62rem; font-style: normal; font-weight: 600; letter-spacing: .22em; opacity: .85; margin-top: 2px; }
.main-nav { margin-left: auto; }
.main-nav ul { list-style: none; display: flex; gap: var(--space-1); margin: 0; padding: 0; }
.main-nav a { display: block; padding: var(--space-2) var(--space-3); text-decoration: none; font-family: var(--font-display); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; font-size: var(--text-sm); border-radius: var(--radius-sm); transition: background .18s var(--ease); }
.main-nav a:hover { background: rgba(255,255,255,.14); }
.main-nav a[aria-current="page"] { background: #fff; color: #a20b24; }
.icon-btn { background: transparent; border: 0; color: #fff; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; cursor: pointer; flex-shrink: 0; }
.icon-btn:hover { background: rgba(255,255,255,.16); }
.menu-toggle { display: none; }
/* ---------- Hero ---------- */
.hero { position: relative; background: var(--surface); overflow: hidden; border-bottom: 1px solid var(--border); }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; align-items: center; gap: var(--space-10); min-height: min(78vh, 720px); padding-block: var(--space-12); }
.hero-logo { width: min(100%, 360px); margin-bottom: var(--space-4); }
.hero h1 { font-size: var(--text-hero); font-weight: 900; font-style: italic; text-transform: uppercase; line-height: .86; letter-spacing: -.01em; }
.hero h1 .red { color: var(--red); display: block; }
.hero-sub { font-size: var(--text-lg); color: var(--muted); margin: var(--space-5) 0 var(--space-8); max-width: 34ch; line-height: 1.4; }
.hero-photo { position: relative; aspect-ratio: 4/3.2; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius-lg); transform: rotate(1.6deg); box-shadow: var(--shadow); border: 6px solid var(--surface); outline: 1px solid var(--border); }
.hero-photo::before { content: ""; position: absolute; inset: 6% -4% -5% 8%; background: var(--red); border-radius: var(--radius-lg); transform: rotate(-3deg); }
.photo-tag { position: absolute; left: -12px; bottom: 22px; background: var(--black); color: #fff; font-family: var(--font-display); font-weight: 800; font-style: italic; text-transform: uppercase; padding: var(--space-2) var(--space-4); transform: rotate(-4deg); font-size: var(--text-sm); letter-spacing: .05em; }
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; min-height: auto; gap: var(--space-8); }
  .hero-logo { width: 220px; }
}

/* ---------- Buttons ---------- */
.btn-row { display: flex; flex-wrap: wrap; gap: var(--space-3); }
.btn { display: inline-flex; align-items: center; gap: var(--space-2); padding: .8rem 1.4rem; border-radius: 999px; font-family: var(--font-display); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; font-size: var(--text-sm); text-decoration: none; border: 2px solid transparent; transition: transform .15s var(--ease), background .18s var(--ease), color .18s var(--ease); cursor: pointer; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--red); color: var(--red-ink); }
.btn-primary:hover { background: var(--red-hover); }
.btn-outline { border-color: currentColor; color: var(--text); background: transparent; }
.btn-outline:hover { background: var(--text); color: var(--bg); }
.btn-light { background: #fff; color: #a20b24; }
.btn-light:hover { background: #ffe8ec; }

/* ---------- Motto bands ---------- */
.bands { display: grid; }
.band { font-family: var(--font-display); font-weight: 700; text-transform: uppercase; letter-spacing: .32em; font-size: var(--text-lg); text-align: center; padding: var(--space-5) var(--space-4); }
.band-red { background: var(--red); color: #fff; }
.band-black { background: var(--black); color: var(--black-ink); }
.band span { display: inline-block; margin-inline: .6em; }
.band span + span::before { content: "•"; margin-right: 1.2em; opacity: .55; letter-spacing: 0; }
@media (max-width: 600px) { .band { letter-spacing: .14em; font-size: var(--text-sm); } .band span { margin-inline: .25em; } .band span + span::before { margin-right: .5em; } }

/* ---------- Quick links ---------- */
.quick { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-4); }
.quick a { display: flex; flex-direction: column; gap: var(--space-2); padding: var(--space-6); background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); text-decoration: none; transition: border-color .2s var(--ease), transform .2s var(--ease); position: relative; overflow: hidden; }
.quick a::after { content: "→"; position: absolute; right: var(--space-6); top: var(--space-6); color: var(--red); font-weight: 700; transition: transform .2s var(--ease); }
.quick a:hover { border-color: var(--red); transform: translateY(-2px); }
.quick a:hover::after { transform: translateX(4px); }
.quick strong { font-family: var(--font-display); font-size: var(--text-xl); text-transform: uppercase; font-style: italic; font-weight: 800; }
.quick span { color: var(--muted); font-size: var(--text-sm); }
@media (max-width: 760px) { .quick { grid-template-columns: 1fr; } }

/* ---------- Matches ---------- */
.match-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: var(--space-4); }
.match-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); padding: var(--space-5); display: flex; flex-direction: column; gap: var(--space-3); border-top: 4px solid var(--red); }
.match-card.away { border-top-color: var(--black); }
[data-theme="dark"] .match-card.away { border-top-color: var(--faint); }
.match-meta { display: flex; justify-content: space-between; gap: var(--space-2); font-size: var(--text-xs); color: var(--muted); text-transform: uppercase; letter-spacing: .08em; font-weight: 600; }
.match-date { font-family: var(--font-display); font-size: var(--text-xl); font-weight: 800; line-height: 1; }
.match-date small { font-size: var(--text-sm); color: var(--muted); font-weight: 600; margin-left: var(--space-2); }
.match-teams { font-weight: 600; line-height: 1.35; font-size: var(--text-sm); }
.match-teams .us { color: var(--red); font-weight: 700; }
.match-teams .vs { color: var(--faint); font-size: var(--text-xs); margin: 0 var(--space-1); }
.pill { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: var(--text-xs); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.pill-home { background: var(--red-soft); color: var(--red); }
.pill-away { background: var(--surface-2); color: var(--muted); }

/* ---------- Collage ---------- */
.collage { display: grid; grid-template-columns: repeat(6, 1fr); grid-auto-rows: 120px; gap: var(--space-4); }
.tile { position: relative; border-radius: var(--radius-md); overflow: hidden; background: var(--surface-2); text-decoration: none; }
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.tile:hover img { transform: scale(1.04); }
.tile .label { position: absolute; left: var(--space-3); bottom: var(--space-3); background: var(--red); color: #fff; font-family: var(--font-display); font-weight: 800; font-style: italic; text-transform: uppercase; padding: var(--space-1) var(--space-3); font-size: var(--text-lg); transform: rotate(-3deg); box-shadow: 0 4px 10px rgba(0,0,0,.25); }
.tile:nth-child(even) .label { background: var(--black); transform: rotate(2.5deg); }
.t1 { grid-column: span 4; grid-row: span 3; }
.t2 { grid-column: span 2; grid-row: span 3; }
.t3, .t4, .t5 { grid-column: span 2; grid-row: span 2; }
@media (max-width: 760px) {
  .collage { grid-template-columns: 1fr 1fr; grid-auto-rows: 150px; }
  .t1 { grid-column: span 2; grid-row: span 2; }
  .t2, .t3, .t4, .t5 { grid-column: span 1; grid-row: span 1; }
  .t5 { grid-column: span 2; }
  .tile .label { font-size: var(--text-sm); }
}

/* ---------- Banners ---------- */
.banner { position: relative; border-radius: var(--radius-lg); overflow: hidden; padding: clamp(var(--space-8), 5vw, var(--space-16)); display: grid; gap: var(--space-4); color: #fff; isolation: isolate; }
.banner-red { background: var(--red); }
.banner-black { background: var(--black); }
.banner h3 { font-size: var(--text-2xl); font-weight: 900; font-style: italic; text-transform: uppercase; max-width: 18ch; }
.banner p { max-width: 52ch; opacity: .9; margin: 0; }
.banner .stripe { position: absolute; z-index: -1; right: -8%; top: -30%; width: 46%; height: 160%; background: rgba(255,255,255,.08); transform: skewX(-18deg); }
.banner .stripe + .stripe { right: -22%; background: rgba(255,255,255,.05); }
.banner-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4); }
@media (max-width: 760px) { .banner-grid { grid-template-columns: 1fr; } }

/* ---------- Social ---------- */
.social { text-align: center; }
.social-row { display: flex; justify-content: center; gap: var(--space-3); margin-top: var(--space-6); flex-wrap: wrap; }
.social-row a { width: 56px; height: 56px; border-radius: 14px; display: grid; place-items: center; color: #fff; text-decoration: none; transition: transform .18s var(--ease); }
.social-row a:hover { transform: translateY(-3px); }
.s-fb { background: #1877f2; } .s-ig { background: linear-gradient(45deg,#f9a825,#e1306c 45%,#833ab4); } .s-wa { background: #25a244; } .s-mail { background: var(--red); } .s-yt { background: #ff0000; }

/* ---------- Generic cards / page ---------- */
.page-hero { background: var(--black); color: var(--black-ink); padding-block: clamp(var(--space-12), 7vw, var(--space-20)); position: relative; overflow: hidden; }
.page-hero::after { content: ""; position: absolute; right: -6%; top: -40%; width: 38%; height: 180%; background: var(--red); transform: skewX(-18deg); opacity: .95; }
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { font-size: var(--text-3xl); font-weight: 900; font-style: italic; text-transform: uppercase; }
.page-hero p { color: #cfc5c5; max-width: 56ch; margin-top: var(--space-4); }
.breadcrumb { font-size: var(--text-xs); text-transform: uppercase; letter-spacing: .12em; color: #a99d9e; margin-bottom: var(--space-4); }
.breadcrumb a { color: #fff; text-decoration: none; }
@media (max-width: 760px) { .page-hero::after { width: 22%; right: -12%; } }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(var(--space-8), 5vw, var(--space-16)); align-items: start; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-5); }
@media (max-width: 860px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); padding: var(--space-6); }
.card h3 { font-size: var(--text-lg); text-transform: uppercase; font-weight: 800; margin-bottom: var(--space-2); }
.card p:last-child { margin-bottom: 0; }
.card .muted { color: var(--muted); font-size: var(--text-sm); }
.prose p { max-width: 65ch; }
.figure { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); }
.figure img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.figcap { font-size: var(--text-xs); color: var(--muted); margin-top: var(--space-2); }

.timeline { list-style: none; margin: 0; padding: 0; border-left: 3px solid var(--red); }
.timeline li { position: relative; padding: 0 0 var(--space-6) var(--space-6); }
.timeline li::before { content: ""; position: absolute; left: -9px; top: 6px; width: 15px; height: 15px; background: var(--surface); border: 3px solid var(--red); border-radius: 50%; }
.timeline .year { font-family: var(--font-display); font-weight: 800; font-size: var(--text-xl); color: var(--red); line-height: 1; display: block; margin-bottom: var(--space-1); }
.timeline p { margin: 0; color: var(--muted); }

.people { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: var(--space-4); }
.person { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); padding: var(--space-5); display: flex; gap: var(--space-4); align-items: center; }
.avatar { width: 52px; height: 52px; border-radius: 50%; background: var(--red); color: #fff; display: grid; place-items: center; font-family: var(--font-display); font-weight: 800; font-size: 1.25rem; flex-shrink: 0; }
.person strong { display: block; font-size: var(--text-base); }
.person span { font-size: var(--text-xs); color: var(--muted); text-transform: uppercase; letter-spacing: .08em; font-weight: 600; }

.team-card { display: grid; grid-template-columns: 1fr; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); overflow: hidden; }
.team-card img { width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.team-card .body { padding: var(--space-5) var(--space-6) var(--space-6); display: grid; gap: var(--space-2); }
.team-card h3 { font-size: var(--text-xl); font-weight: 800; font-style: italic; text-transform: uppercase; }
.team-card .cat { color: var(--red); font-size: var(--text-xs); font-weight: 700; text-transform: uppercase; letter-spacing: .1em; }
.team-card .stats { display: flex; gap: var(--space-5); font-size: var(--text-sm); color: var(--muted); margin-top: var(--space-2); }
.team-card .stats b { color: var(--text); font-family: var(--font-display); font-size: var(--text-lg); display: block; line-height: 1; }
.team-card a.more { color: var(--red); font-weight: 700; font-size: var(--text-sm); text-decoration: none; margin-top: var(--space-2); }
.team-card a.more:hover { text-decoration: underline; }

/* ---------- Tabs + tables ---------- */
.tabs { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-bottom: var(--space-6); }
.tab { border: 2px solid var(--border); background: var(--surface); color: var(--text); padding: .55rem 1.1rem; border-radius: 999px; font-family: var(--font-display); font-weight: 700; text-transform: uppercase; letter-spacing: .05em; font-size: var(--text-sm); cursor: pointer; transition: all .15s var(--ease); }
.tab:hover { border-color: var(--red); }
.tab[aria-selected="true"] { background: var(--red); border-color: var(--red); color: #fff; }
.toolbar { display: flex; flex-wrap: wrap; gap: var(--space-3); align-items: center; justify-content: space-between; margin-bottom: var(--space-4); }
.seg { display: inline-flex; border: 1px solid var(--border); border-radius: 999px; overflow: hidden; background: var(--surface); }
.seg button { border: 0; background: transparent; padding: .45rem .95rem; font: 600 var(--text-xs)/1 var(--font-body); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--black); color: #fff; }
[data-theme="dark"] .seg button[aria-pressed="true"] { background: var(--text); color: var(--bg); }
.summary { display: flex; gap: var(--space-6); flex-wrap: wrap; font-size: var(--text-sm); color: var(--muted); }
.summary b { font-family: var(--font-display); font-size: var(--text-xl); color: var(--text); margin-right: var(--space-1); }
.table-wrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); }
table { width: 100%; border-collapse: collapse; font-size: var(--text-sm); font-variant-numeric: tabular-nums; }
th, td { padding: .75rem 1rem; text-align: left; border-bottom: 1px solid var(--border); white-space: nowrap; }
th { font-family: var(--font-display); text-transform: uppercase; letter-spacing: .08em; font-size: var(--text-xs); color: var(--muted); background: var(--surface-2); font-weight: 700; }
tr:last-child td { border-bottom: 0; }
td.team.us { color: var(--red); font-weight: 700; }
td.res { font-weight: 700; font-family: var(--font-display); font-size: var(--text-base); }
td.sets { color: var(--muted); font-size: var(--text-xs); white-space: normal; min-width: 140px; }
.w { color: var(--win); } .l { color: var(--loss); }
.badge-wl { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 6px; font-size: .75rem; font-weight: 800; color: #fff; margin-right: 6px; vertical-align: middle; font-family: var(--font-body); }
.badge-wl.w { background: var(--win); color: #fff; } .badge-wl.l { background: var(--loss); color: #fff; }
tr.highlight td { background: var(--red-soft); font-weight: 700; }
tr.past td { opacity: .55; }
.note { font-size: var(--text-xs); color: var(--muted); margin-top: var(--space-3); }

/* ---------- Contact ---------- */
.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--space-4); }
.contact-list li { display: flex; gap: var(--space-4); align-items: flex-start; }
.contact-list .ic { width: 44px; height: 44px; border-radius: 12px; background: var(--red-soft); color: var(--red); display: grid; place-items: center; flex-shrink: 0; }
.contact-list small { display: block; font-size: var(--text-xs); color: var(--muted); text-transform: uppercase; letter-spacing: .1em; font-weight: 600; }
.contact-list a { text-decoration: none; font-weight: 600; }
.contact-list a:hover { color: var(--red); }
.map { border: 0; width: 100%; height: 380px; border-radius: var(--radius-lg); filter: grayscale(.2); }
.data-table td:first-child { color: var(--muted); width: 45%; }
.data-table td { white-space: normal; }

/* ---------- Footer ---------- */
.site-footer { background: var(--black); color: #cfc5c5; padding-block: var(--space-16) var(--space-8); margin-top: 0; font-size: var(--text-sm); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: var(--space-10); }
.site-footer h4 { color: #fff; font-size: var(--text-base); text-transform: uppercase; letter-spacing: .1em; margin-bottom: var(--space-4); }
.site-footer a { text-decoration: none; color: #cfc5c5; }
.site-footer a:hover { color: #fff; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-2); }
.footer-brand { display: flex; align-items: center; gap: var(--space-3); margin-bottom: var(--space-4); color: #fff; }
.footer-brand svg { width: 90px; --logo-wing: #e0344f; --logo-wing-stroke: #fff; }
.footer-bottom { border-top: 1px solid #2c2526; margin-top: var(--space-10); padding-top: var(--space-6); display: flex; justify-content: space-between; flex-wrap: wrap; gap: var(--space-3); font-size: var(--text-xs); color: #8d8283; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4); grid-auto-rows: 340px; }
@media (max-width: 600px) { .duo { grid-auto-rows: 220px; } }

/* ---------- Dropdown menu ---------- */
.main-nav .has-sub { position: relative; }
.sub-toggle { display: inline-flex; align-items: center; gap: 6px; background: transparent; border: 0; color: inherit; padding: var(--space-2) var(--space-3); font-family: var(--font-display); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; font-size: var(--text-sm); border-radius: var(--radius-sm); cursor: pointer; }
.sub-toggle:hover, .has-sub.open .sub-toggle { background: rgba(255,255,255,.14); }
.has-sub.is-current > .sub-toggle { background: #fff; color: #a20b24; }
.sub-toggle svg { transition: transform .2s var(--ease); }
.has-sub.open .sub-toggle svg { transform: rotate(180deg); }
.main-nav .sub { display: none; position: absolute; top: calc(100% + 8px); left: 0; min-width: 250px; background: var(--surface); color: var(--text); border-radius: var(--radius-md); box-shadow: 0 12px 32px rgba(0,0,0,.18); padding: var(--space-2); flex-direction: column; gap: 2px; border: 1px solid var(--border); }
.main-nav .sub a { color: var(--text); text-transform: none; letter-spacing: 0; font-family: var(--font-body); font-weight: 600; font-size: var(--text-sm); padding: var(--space-3) var(--space-4); }
.main-nav .sub a:hover { background: var(--red-soft); color: var(--red); }
.main-nav .sub a[aria-current="page"] { background: var(--red); color: #fff; }
.has-sub.open .sub { display: flex; }
@media (min-width: 1101px) { .has-sub:hover .sub, .has-sub:focus-within .sub { display: flex; } .has-sub:hover .sub-toggle svg { transform: rotate(180deg); } .main-nav .sub::before { content: ""; position: absolute; left: 0; right: 0; top: -10px; height: 10px; } }
@media (max-width: 1100px) {
  .menu-toggle { display: grid; order: -1; margin-left: calc(-1 * var(--space-2)); }
  .main-nav { position: fixed; inset: 64px 0 auto 0; background: var(--red); padding: var(--space-4) var(--space-6) var(--space-8); transform: translateY(-120%); transition: transform .3s var(--ease); max-height: calc(100dvh - 64px); overflow: auto; margin-left: 0; }
  [data-theme="dark"] .main-nav { background: #a00c24; }
  .main-nav.open { transform: none; }
  .main-nav > ul { flex-direction: column; }
  .main-nav a, .sub-toggle { font-size: var(--text-lg); padding: var(--space-3) var(--space-4); width: 100%; text-align: left; }
  .main-nav .sub { position: static; box-shadow: none; background: rgba(0,0,0,.14); border: 0; margin: var(--space-1) 0 var(--space-2); }
  .main-nav .sub a { color: #fff; font-size: var(--text-base); }
  .main-nav .sub a[aria-current="page"] { background: #fff; color: #a20b24; }
  .header-actions { margin-left: auto; }
}
.more-link { display: inline-block; margin-top: var(--space-3); color: var(--red); font-weight: 700; font-size: var(--text-sm); text-decoration: none; }
.more-link:hover { text-decoration: underline; }

/* ---------- Organigramma ---------- */
.board { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-5); }
.board-card { display: flex; gap: var(--space-5); align-items: flex-start; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: var(--space-8); border-left: 6px solid var(--black); }
.board-card.main { border-left-color: var(--red); }
.board-card h3 { font-size: var(--text-xl); font-weight: 800; font-style: italic; text-transform: uppercase; margin: var(--space-1) 0 var(--space-2); }
.board-card p { margin: 0; }
.role { font-size: var(--text-xs); color: var(--red); text-transform: uppercase; letter-spacing: .12em; font-weight: 700; }
.avatar-lg { width: 76px; height: 76px; font-size: 1.7rem; }
.avatar.dark { background: var(--black); }
[data-theme="dark"] .avatar.dark { background: #3a3233; }
@media (max-width: 760px) { .board { grid-template-columns: 1fr; } .board-card { padding: var(--space-6); flex-direction: column; } }
.org { margin-top: var(--space-10); display: grid; justify-items: center; }
.org-row { display: flex; justify-content: center; gap: var(--space-4); width: 100%; flex-wrap: wrap; }
.org-node { background: var(--bg); border: 2px solid var(--border); border-radius: var(--radius-md); padding: var(--space-4) var(--space-6); text-align: center; min-width: 220px; display: grid; gap: 2px; }
.org-node strong { font-family: var(--font-display); text-transform: uppercase; font-size: var(--text-lg); font-weight: 800; letter-spacing: .02em; }
.org-node span { font-size: var(--text-xs); color: var(--muted); }
.org-top { background: var(--black); border-color: var(--black); color: #fff; }
.org-top span { color: #cfc5c5; }
.org-red { background: var(--red); border-color: var(--red); color: #fff; }
.org-red span { color: #ffe1e6; }
.org-split .org-node { flex: 1 1 220px; max-width: 320px; }
.org-teams .org-node { min-width: 0; flex: 1 1 160px; max-width: 210px; border-top: 4px solid var(--red); padding: var(--space-3) var(--space-4); }
.org-teams strong { font-size: var(--text-base); }
.org-line { width: 3px; height: 28px; background: var(--red); }

/* ---------- Codice etico ---------- */
.pull { margin: 0; background: var(--black); color: #fff; border-radius: var(--radius-lg); padding: clamp(var(--space-8), 4vw, var(--space-12)); position: relative; overflow: hidden; }
.pull::before { content: "“"; position: absolute; right: 18px; top: -40px; font-family: var(--font-display); font-size: 14rem; color: var(--red); line-height: 1; opacity: .9; }
.pull p { font-family: var(--font-display); font-size: var(--text-xl); font-style: italic; font-weight: 600; line-height: 1.25; position: relative; }
.pull cite { font-style: normal; font-size: var(--text-xs); text-transform: uppercase; letter-spacing: .12em; color: #cfc5c5; }
.ethic-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-5); }
.ethic-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: var(--space-8); position: relative; }
.ethic-card h3 { font-size: var(--text-xl); font-weight: 800; font-style: italic; text-transform: uppercase; }
.ethic-card ul { margin: var(--space-4) 0 0; padding: 0; list-style: none; display: grid; gap: var(--space-3); }
.ethic-card li { padding-left: var(--space-6); position: relative; font-size: var(--text-sm); }
.ethic-card li::before { content: ""; position: absolute; left: 0; top: .45em; width: 12px; height: 12px; background: var(--red); transform: skewX(-18deg); }
.ethic-n { font-family: var(--font-display); font-weight: 900; font-style: italic; font-size: var(--text-2xl); color: var(--red); opacity: .25; position: absolute; right: var(--space-6); top: var(--space-4); line-height: 1; }
@media (max-width: 760px) { .ethic-grid { grid-template-columns: 1fr; } .ethic-card { padding: var(--space-6); } }

/* ---------- Sponsor ---------- */
.sponsor-main { display: grid; grid-template-columns: 280px 1fr; gap: var(--space-8); align-items: center; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: var(--space-8); }
.sponsor-main h3 { font-size: var(--text-xl); font-weight: 800; text-transform: uppercase; margin: var(--space-1) 0 var(--space-3); }
.sponsor-logo { aspect-ratio: 16/10; border-radius: var(--radius-md); background: #fff; border: 1px solid var(--border); display: grid; place-content: center; text-align: center; }
.sponsor-logo span { font-family: var(--font-display); font-weight: 900; font-size: 3rem; color: #c8102e; letter-spacing: -.01em; line-height: 1; }
.sponsor-logo small { font-size: var(--text-xs); text-transform: uppercase; letter-spacing: .3em; color: #151213; font-weight: 700; }
.sponsor-wall { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-4); margin-top: var(--space-5); }
.sponsor-slot { aspect-ratio: 16/9; border: 2px dashed var(--border); border-radius: var(--radius-md); display: grid; place-items: center; color: var(--faint); font-size: var(--text-xs); text-transform: uppercase; letter-spacing: .1em; font-weight: 600; }
.pkg-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-4); margin-top: var(--space-6); }
.pkg { position: relative; padding-top: var(--space-10); border-top: 4px solid var(--red); }
.stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4); margin-top: var(--space-4); }
.stat-grid div { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); padding: var(--space-5); }
.stat-grid b { display: block; font-family: var(--font-display); font-size: var(--text-2xl); font-weight: 900; font-style: italic; color: var(--red); line-height: 1; }
.stat-grid span { font-size: var(--text-sm); color: var(--muted); }
@media (max-width: 960px) { .pkg-grid { grid-template-columns: 1fr 1fr; } .sponsor-wall { grid-template-columns: 1fr 1fr; } }
@media (max-width: 760px) { .sponsor-main { grid-template-columns: 1fr; padding: var(--space-6); } }
@media (max-width: 520px) { .pkg-grid { grid-template-columns: 1fr; } }

/* ---------- Documenti ---------- */
.docs-layout { display: grid; grid-template-columns: 1fr 340px; gap: var(--space-10); align-items: start; }
.docs-main { display: grid; gap: var(--space-10); }
.docs-side { position: sticky; top: 88px; display: grid; gap: var(--space-8); }
.doc-group h3 { font-size: var(--text-xl); font-weight: 800; font-style: italic; text-transform: uppercase; }
.doc-group > p { margin: var(--space-1) 0 var(--space-4); }
.doc-list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-2); }
.doc { display: flex; align-items: center; gap: var(--space-4); background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); padding: var(--space-4) var(--space-5); text-decoration: none; transition: border-color .18s var(--ease), transform .18s var(--ease); }
.doc:hover { border-color: var(--red); transform: translateX(3px); }
.doc-type { flex-shrink: 0; width: 52px; text-align: center; font-size: .72rem; font-weight: 800; letter-spacing: .06em; padding: 6px 0; border-radius: 6px; color: #fff; background: var(--red); }
.t-doc, .t-docx { background: #2b5797; } .t-link { background: var(--black); }
[data-theme="dark"] .t-link { background: #3a3233; }
.doc-name { flex: 1; font-weight: 600; font-size: var(--text-sm); line-height: 1.35; }
.doc-dl { color: var(--red); flex-shrink: 0; display: grid; }
@media (max-width: 960px) { .docs-layout { grid-template-columns: 1fr; } .docs-side { position: static; } }

/* Home sponsor strip */
.sponsor-strip { display: flex; align-items: center; justify-content: space-between; gap: var(--space-6); flex-wrap: wrap; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: var(--space-6) var(--space-8); }
.sponsor-strip .sponsor-logo { aspect-ratio: auto; padding: var(--space-3) var(--space-6); }
.sponsor-strip .sponsor-logo span { font-size: 2rem; }
.quick.q4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 960px) { .quick.q4 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .quick.q4 { grid-template-columns: 1fr; } }
.pkg h3, .ethic-card h3 { padding-right: 3.2rem; }

/* ---- Aggiornamento ott 2026: logo ufficiale, palestre, campionato 2022/23 ---- */
.logo-badge { display: inline-grid; place-items: center; background: #fff; border-radius: 999px; line-height: 0; }
.logo-badge img { width: 100%; height: auto; display: block; }
.brand-mark.logo-badge { width: 84px; padding: 4px 8px; border-radius: 12px; box-shadow: 0 1px 0 rgba(0,0,0,.08); }
.hero-logo.logo-badge { width: min(100%, 380px); padding: var(--space-4) var(--space-6); border-radius: var(--radius-lg); box-shadow: var(--shadow); border: 1px solid var(--border); margin-bottom: var(--space-6); }
@media (max-width: 760px) { .hero-logo.logo-badge { width: 240px; padding: var(--space-3) var(--space-4); } }
.footer-brand .logo-badge { width: 110px; padding: 6px 10px; border-radius: 12px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-5); }
@media (max-width: 960px) { .grid-4 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .grid-4 { grid-template-columns: 1fr; } }
.card-gold { border-color: #c9a227; background: linear-gradient(160deg, color-mix(in srgb, #c9a227 14%, var(--surface)), var(--surface)); }
.card-gold .eyebrow { color: #9a7a12; }
.card-gold a { color: var(--red); font-weight: 600; }
.chips { list-style: none; padding: 0; margin: var(--space-3) 0; display: flex; flex-wrap: wrap; gap: var(--space-2); }
.chips li { background: var(--red-soft); color: var(--red); font-weight: 700; font-size: var(--text-xs); text-transform: uppercase; letter-spacing: .06em; padding: 6px 12px; border-radius: 999px; }
.gyms { align-items: stretch; }
.gym { display: flex; flex-direction: column; gap: var(--space-2); }
.gym h3 { font-size: var(--text-xl); font-style: italic; }
.gym p.muted { margin: 0; }
.gym .map { height: 300px; margin-top: var(--space-2); }
.gym .more-link { margin-top: var(--space-2); }
.gym-tag { font-size: var(--text-sm); color: var(--muted); font-weight: 600; }
.champ { display: grid; grid-template-columns: minmax(220px, 340px) 1fr; gap: clamp(var(--space-8), 5vw, var(--space-16)); align-items: center; }
.champ-img img, .clip img { width: 100%; height: auto; border-radius: var(--radius-md); box-shadow: var(--shadow); border: 1px solid var(--border); background: #fff; }
.champ-img { display: block; transform: rotate(-2deg); transition: transform .3s var(--ease); }
.champ-img:hover { transform: rotate(0); }
.clip { display: block; max-width: 460px; margin-inline: auto; }
.press { margin-top: var(--space-6); padding: var(--space-5) var(--space-6); border-left: 4px solid var(--red); background: var(--surface); border-radius: 0 var(--radius-md) var(--radius-md) 0; }
.press h3 { font-size: var(--text-lg); text-transform: uppercase; font-weight: 800; margin-bottom: var(--space-2); }
.press ul { margin: 0; padding-left: 1.1em; display: grid; gap: var(--space-2); }
.press a { color: var(--text); }
.press a:hover { color: var(--red); }
@media (max-width: 760px) { .champ { grid-template-columns: 1fr; } .champ-img { max-width: 300px; margin-inline: auto; } }
.more-link { color: var(--red); font-weight: 700; text-decoration: none; font-size: var(--text-sm); } .more-link:hover { text-decoration: underline; }

/* ---- Aggiornamento 2: dati live, codice etico, iscrizioni ---- */
.hero-logo.logo-badge { width: min(100%, 340px); }
.live-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: #1f9d55; margin-right: 8px; vertical-align: middle; box-shadow: 0 0 0 0 rgba(31,157,85,.6); animation: livepulse 2s infinite; }
.live-dot.off { background: var(--faint, #999); animation: none; }
@keyframes livepulse { 0% { box-shadow: 0 0 0 0 rgba(31,157,85,.55); } 70% { box-shadow: 0 0 0 8px rgba(31,157,85,0); } 100% { box-shadow: 0 0 0 0 rgba(31,157,85,0); } }
@media (prefers-reduced-motion: reduce) { .live-dot { animation: none; } }
.live-status { font-weight: 600; }
.sub-title { font-family: var(--font-display); font-size: var(--text-xl); font-style: italic; font-weight: 800; text-transform: uppercase; margin: var(--space-8) 0 var(--space-4); }
.match-card.result.win { border-left: 4px solid #1f9d55; }
.match-card.result.loss { border-left: 4px solid var(--red); }
.match-card .badge-wl { margin: 0; }
td.venue { font-size: var(--text-sm); color: var(--muted); white-space: nowrap; }
td.sets { font-size: var(--text-xs); color: var(--muted); white-space: nowrap; }
.fee-card, .card-auto { margin-top: var(--space-6); }
.fee-card h3, .card-auto h3 { font-size: var(--text-lg); }
.fee-card .data-table td:last-child { text-align: right; white-space: nowrap; }
.card-auto { border-left: 4px solid var(--red); }
.docs-side .card + .card { margin-top: var(--space-5); }
.ce-layout { display: grid; grid-template-columns: 260px 1fr; gap: var(--space-10); align-items: start; }
.ce-toc { position: sticky; top: 96px; }
.ce-toc ol { list-style: none; padding: 0; margin: var(--space-3) 0 0; display: grid; gap: var(--space-2); font-size: var(--text-sm); }
.ce-toc a { text-decoration: none; color: var(--muted); font-weight: 600; }
.ce-toc a:hover { color: var(--red); }
.ce-body { display: grid; gap: var(--space-5); }
.ce-art { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: var(--space-6) var(--space-8); scroll-margin-top: 96px; }
.ce-art .ethic-n { position: static; opacity: 1; display: inline-block; color: var(--red); font-family: var(--font-display); font-weight: 800; font-style: italic; text-transform: uppercase; letter-spacing: .06em; font-size: var(--text-sm); }
.ce-art h3 { font-size: var(--text-xl); font-weight: 800; font-style: italic; text-transform: uppercase; margin: var(--space-1) 0 var(--space-3); }
.ce-art p { margin: 0 0 var(--space-3); max-width: 75ch; }
.ce-art ul { margin: 0 0 var(--space-3); padding: 0; list-style: none; display: grid; gap: var(--space-2); }
.ce-art li { padding-left: var(--space-6); position: relative; max-width: 75ch; }
.ce-art li::before { content: ""; position: absolute; left: 0; top: .5em; width: 10px; height: 10px; background: var(--red); transform: skewX(-18deg); }
.ce-art .ce-note { font-size: var(--text-sm); color: var(--muted); }
@media (max-width: 900px) { .ce-layout { grid-template-columns: 1fr; } .ce-toc { position: static; } }
/* campo di gara e arbitri */
td.venue { white-space: normal; min-width: 190px; line-height: 1.3; }
td.venue b { display: block; color: var(--text); }
td.venue span { display: block; }
td.venue a, .match-venue a { color: var(--red); font-weight: 600; text-decoration: none; font-size: var(--text-xs); }
td.refs { font-size: var(--text-sm); min-width: 150px; line-height: 1.3; }
td.refs span { display: block; }
td.refs small { display: block; font-size: var(--text-xs); color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
td.refs .tbd { color: var(--faint); font-size: var(--text-xs); }
.match-venue { margin-top: var(--space-3); font-size: var(--text-xs); line-height: 1.35; }
.match-venue a { font-weight: 400; color: var(--muted); font-size: inherit; }
.match-venue a b { color: var(--text); }
.match-refs { margin-top: var(--space-1); font-size: var(--text-xs); color: var(--muted); }
.hero-hook { font-family: var(--font-display); font-style: italic; font-weight: 800; text-transform: uppercase; font-size: var(--text-xl); color: var(--red); margin: var(--space-4) 0 var(--space-2); letter-spacing: .02em; }
.hero-sub strong { color: var(--text); font-weight: 700; }
.hero-proof { font-size: var(--text-xs); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: var(--space-3) 0 0; }
.coach-tag { display: block; font-size: var(--text-sm); color: var(--muted); margin: 0 0 var(--space-1); }
.coach-tag b { color: var(--text); font-weight: 700; }
.youth-staff { list-style: none; padding: 0; margin: var(--space-4) 0; display: grid; gap: var(--space-3); }
.youth-staff li { background: var(--bg); border: 1px solid var(--border); border-left: 4px solid var(--red); border-radius: var(--radius-md); padding: var(--space-3) var(--space-4); display: grid; gap: 2px; }
.youth-staff b { font-family: var(--font-display); text-transform: uppercase; font-style: italic; letter-spacing: .02em; }
.youth-staff span { font-size: var(--text-sm); color: var(--muted); }
.org-node .org-coach { color: var(--text); font-weight: 600; margin-top: 4px; }
.team.us, .match-teams .us { text-transform: uppercase; color: var(--red); font-weight: 800; }
/* colori per campionato */
.cat-1df { --cat: #b0102a; } .cat-2df { --cat: #f2a900; } .champ-badge.cat-2df { color: #1a1a1a; } .cat-3df { --cat: #a16207; }
.cat-u19 { --cat: #d6246e; } .cat-u18 { --cat: #be185d; } .cat-u17 { --cat: #14532d; } .cat-u16 { --cat: #c2410c; }
.cat-u15 { --cat: #0e7490; } .cat-u14 { --cat: #0369a1; } .cat-u13 { --cat: #7e22ce; } .cat-u12 { --cat: #16a34a; }
.champ-badge { display: inline-block; background: var(--cat, #333); color: #fff; font-family: var(--font-display); font-size: var(--text-sm); font-weight: 800; font-style: italic; letter-spacing: .04em; text-transform: uppercase; line-height: 1.1; padding: 6px 10px; border-radius: 6px; }
.match-card.cat-line { border-top: 5px solid var(--cat, var(--red)); }
.match-meta { align-items: center; }
.hero-hook + .hero-sub { margin-bottom: var(--space-3); }
.hero-sub + .hero-sub { margin-top: 0; }
.hero-hook ~ .hero-sub { max-width: 46ch; font-size: var(--text-base); line-height: 1.55; }
/* calendario e classifiche colorati per campionato + righe alternate */
:root, [data-theme="light"] { --zebra: #f1f1f2; --zebra-base: #ffffff; }
[data-theme="dark"] { --zebra: #1d1a1b; --zebra-base: #151213; }
.table-wrap tbody tr:nth-child(odd) td { background: var(--zebra-base); }
.table-wrap tbody tr:nth-child(even) td { background: var(--zebra); }
.table-wrap tbody tr.highlight td { background: var(--red-soft); }
.tab[class*="cat-"] { border-color: var(--cat); color: var(--text); }
.tab[class*="cat-"]::before { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--cat); margin-right: 8px; vertical-align: middle; }
.tab[class*="cat-"]:hover { border-color: var(--cat); background: color-mix(in srgb, var(--cat) 12%, transparent); }
.tab[class*="cat-"][aria-selected="true"] { background: var(--cat); border-color: var(--cat); color: #fff; }
.tab.cat-2df[aria-selected="true"] { color: #1a1a1a; }
.tab[class*="cat-"][aria-selected="true"]::before { background: currentColor; }
.cat-wrap { border-top: 6px solid var(--cat); }
.cat-wrap thead th { background: var(--cat); color: #fff; }
.cat-wrap.cat-2df thead th { color: #1a1a1a; }
.cat-title { color: var(--cat); }
.cat-title.cat-2df { color: #a67400; }
/* calendario e classifiche: testo più grande e leggibile */
.cat-wrap table { font-size: var(--text-base); color: var(--text); }
.cat-wrap th { font-size: var(--text-sm); letter-spacing: .06em; padding: .9rem 1rem; }
.cat-wrap td { padding: .85rem 1rem; }
.cat-wrap td.team { font-weight: 600; }
.cat-wrap td.team.us { font-weight: 800; }
.cat-wrap td.res { font-size: var(--text-lg); }
.cat-wrap td.sets { font-size: var(--text-sm); color: var(--text); }
.cat-wrap td.venue { font-size: var(--text-sm); color: var(--text); min-width: 220px; }
.cat-wrap td.venue b { font-size: var(--text-base); }
.cat-wrap td.venue a { font-size: var(--text-sm); }
.cat-wrap td.refs { font-size: var(--text-sm); }
.cat-wrap td.refs small { font-size: var(--text-xs); }
.cat-wrap td.refs .tbd { font-size: var(--text-sm); color: var(--muted); }
.cat-wrap tr.past td { opacity: .75; }
#live-standings td:nth-child(2), #standings td:nth-child(2) { font-weight: 600; }
#live-standings td:nth-child(3), #standings td:nth-child(3) { font-size: var(--text-lg); }
.section-title.cat-title { color: var(--cat); }
.duo .tile-wide { grid-column: 1 / -1; }

/* ===== Pulsante Iscrizioni in testata ===== */
.header-actions { display: flex; align-items: center; gap: var(--space-2); }
.btn-iscr { display: inline-flex; align-items: center; padding: .55rem 1.05rem; border-radius: 999px; background: #fff; color: #a20b24; font-family: var(--font-display); font-weight: 800; text-transform: uppercase; letter-spacing: .06em; font-size: var(--text-sm); text-decoration: none; white-space: nowrap; box-shadow: 0 2px 0 rgba(0,0,0,.15); transition: transform .15s var(--ease), background .18s var(--ease); }
.btn-iscr:hover { background: #ffe8ec; transform: translateY(-1px); }
.btn-iscr.is-current { background: #fff; color: #a20b24; box-shadow: 0 0 0 3px rgba(255,255,255,.45); }
@media (max-width: 1100px) { .header-actions { margin-left: auto; } }
@media (max-width: 400px) { .btn-iscr { padding: .45rem .75rem; font-size: .8rem; } }

/* ===== Calendario mensile ===== */
.month-cal { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: var(--space-5); box-shadow: var(--shadow); }
.mc-head { display: flex; align-items: center; gap: var(--space-3); flex-wrap: wrap; }
.mc-title { margin: 0; min-width: 9ch; text-align: center; font-family: var(--font-display); font-size: var(--text-xl); font-weight: 800; font-style: italic; text-transform: uppercase; letter-spacing: .02em; }
.mc-nav { width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--border); background: var(--surface); color: var(--text); display: grid; place-items: center; cursor: pointer; transition: background .18s var(--ease), border-color .18s var(--ease); }
.mc-nav:hover:not([disabled]) { border-color: var(--red); color: var(--red); }
.mc-nav[disabled] { opacity: .35; cursor: default; }
.mc-count { margin-left: auto; font-weight: 700; color: var(--muted); font-size: var(--text-sm); }
.mc-legend { list-style: none; margin: var(--space-4) 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-4); font-size: var(--text-sm); font-weight: 600; }
.mc-legend li { display: inline-flex; align-items: center; gap: 6px; }
.mc-legend li > span { width: 14px; height: 14px; border-radius: 4px; background: var(--cat); }
.mc-legend .lg-note { color: var(--muted); font-weight: 500; margin-left: auto; gap: 6px; }
.mc-legend i { display: inline-block; width: 22px; height: 14px; border-radius: 4px; }
.mc-legend .sw-home { background: #555; } .mc-legend .sw-away { border: 2px solid #555; border-left-width: 5px; background: var(--surface); margin-left: 8px; }
.mc-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.mc-dow { text-align: center; font-family: var(--font-display); font-weight: 800; text-transform: uppercase; letter-spacing: .06em; font-size: var(--text-sm); color: var(--muted); padding: var(--space-2) 0; }
.mc-day { min-height: 112px; background: var(--surface-2); border-radius: 8px; padding: 6px; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.mc-day.we { background: color-mix(in srgb, var(--surface-2) 70%, var(--red-soft)); }
.mc-day.empty { background: transparent; }
.mc-day.today { outline: 3px solid var(--red); outline-offset: -3px; }
.mc-num { font-family: var(--font-display); font-weight: 800; font-size: 1.05rem; line-height: 1; color: var(--muted); }
.mc-day.has .mc-num { color: var(--text); }
.mc-day.today .mc-num { color: var(--red); }
.ev { display: flex; flex-direction: column; align-items: flex-start; gap: 1px; width: 100%; text-align: left; border: 0; border-radius: 6px; padding: 5px 6px; cursor: pointer; font: 600 .78rem/1.15 var(--font-body); background: var(--cat); color: #fff; min-width: 0; transition: transform .12s var(--ease), box-shadow .12s var(--ease); }
.ev:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(0,0,0,.18); }
.ev.away { background: var(--surface); color: var(--text); border: 2px solid var(--cat); border-left-width: 6px; }
.ev.cat-2df.home { color: #1a1a1a; }
.ev-t { font-family: var(--font-display); font-weight: 800; font-size: .95rem; }
.ev-c { font-weight: 800; text-transform: uppercase; letter-spacing: .03em; font-size: .7rem; }
.ev-o, .ev-c { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ev-r { font-weight: 800; font-size: .75rem; padding: 1px 5px; border-radius: 4px; background: rgba(0,0,0,.25); color: #fff; }
.ev.away .ev-r.w { background: var(--win); } .ev.away .ev-r.l { background: var(--loss); }
.mc-list-title { margin: var(--space-8) 0 var(--space-3); font-family: var(--font-display); font-size: var(--text-lg); font-weight: 800; text-transform: uppercase; font-style: italic; }
.mc-list { display: grid; gap: var(--space-2); }
.mc-row { display: grid; grid-template-columns: 64px 1fr auto; gap: var(--space-4); align-items: center; width: 100%; text-align: left; background: var(--surface); color: var(--text); border: 1px solid var(--border); border-left: 6px solid var(--cat); border-radius: var(--radius-md); padding: var(--space-3) var(--space-4); cursor: pointer; font: inherit; transition: background .15s var(--ease); }
.mc-row:nth-child(even) { background: var(--zebra); }
.mc-row:hover { background: color-mix(in srgb, var(--cat) 9%, var(--surface)); }
.mc-date { display: flex; flex-direction: column; align-items: center; line-height: 1; }
.mc-date b { font-family: var(--font-display); font-size: 2rem; font-weight: 800; }
.mc-date small { text-transform: uppercase; font-weight: 700; color: var(--muted); letter-spacing: .06em; font-size: .75rem; margin-top: 2px; }
.mc-main { display: flex; flex-direction: column; gap: 4px; min-width: 0; align-items: flex-start; }
.mc-teams { font-weight: 700; font-size: var(--text-base); }
.mc-teams .us, .md-team.us, .h2h-table .us { color: var(--red); }
.mc-teams .vs { color: var(--faint); font-weight: 600; font-size: .85em; }
.mc-where { color: var(--muted); font-size: var(--text-sm); }
.mc-side { display: flex; align-items: center; gap: var(--space-2); flex-wrap: wrap; justify-content: flex-end; }
.mc-side > b { font-family: var(--font-display); font-size: var(--text-lg); }
.mc-open { font-weight: 700; color: var(--red); font-size: var(--text-sm); white-space: nowrap; }
.match-card.clickable, tr.clickable { cursor: pointer; }
.match-card.clickable:hover { box-shadow: var(--shadow); }
tr.clickable:hover td { background: color-mix(in srgb, var(--cat, var(--red)) 10%, var(--surface)) !important; }
@media (max-width: 760px) {
  .month-cal { padding: var(--space-3); }
  .mc-grid { gap: 3px; }
  .mc-day { min-height: 62px; padding: 3px; gap: 3px; }
  .mc-num { font-size: .85rem; }
  .ev { padding: 3px 2px; align-items: center; border-radius: 4px; }
  .ev.away { border-width: 2px; border-left-width: 2px; }
  .ev-c, .ev-o, .ev-r, .ev-a { display: none; }
  .ev-t { font-size: .72rem; }
  .mc-dow { font-size: .72rem; }
  .mc-legend .lg-note { margin-left: 0; }
  .mc-row { grid-template-columns: 48px 1fr; gap: var(--space-3); }
  .mc-side { grid-column: 2; justify-content: flex-start; }
  .mc-date b { font-size: 1.6rem; }
}

/* ===== Scheda partita ===== */
html.dlg-open { overflow: hidden; }
.match-dialog { border: 0; padding: 0; width: min(860px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); border-radius: var(--radius-lg); background: var(--surface); color: var(--text); box-shadow: 0 24px 64px rgba(0,0,0,.35); overflow: auto; }
.match-dialog::backdrop { background: rgba(15,8,10,.62); backdrop-filter: blur(2px); }
.md { border-top: 8px solid var(--cat); }
.md-head { display: flex; justify-content: space-between; align-items: flex-start; gap: var(--space-3); padding: var(--space-5) var(--space-6) 0; }
.md-head > div { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-3); align-items: center; }
.md-sub { color: var(--muted); font-weight: 600; font-size: var(--text-sm); }
.md-close { width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--surface-2); color: var(--text); display: grid; place-items: center; cursor: pointer; flex-shrink: 0; }
.md-close:hover { background: var(--red); color: #fff; }
.md-match { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: var(--space-4); padding: var(--space-6); }
.md-team { font-family: var(--font-display); font-weight: 800; font-size: var(--text-xl); text-transform: uppercase; line-height: 1.05; }
.md-team:last-child { text-align: right; }
.md-team small { display: block; font-family: var(--font-body); font-size: .75rem; letter-spacing: .1em; color: var(--muted); font-weight: 700; margin-bottom: 4px; }
.md-score { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.md-score b { font-family: var(--font-display); font-size: var(--text-2xl); line-height: 1; }
.md-score .vs { font-family: var(--font-display); font-weight: 800; font-size: var(--text-xl); color: #fff; background: var(--cat); padding: 6px 14px; border-radius: 8px; }
.md.cat-2df .md-score .vs { color: #1a1a1a; }
.md-sets { text-align: center; margin: calc(-1 * var(--space-3)) 0 var(--space-4); color: var(--muted); font-weight: 600; }
.md-info { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-3); padding: 0 var(--space-6); }
.md-info > div { background: var(--surface-2); border-radius: var(--radius-md); padding: var(--space-3) var(--space-4); display: flex; flex-direction: column; gap: 2px; }
.md-info small { text-transform: uppercase; letter-spacing: .08em; font-weight: 700; color: var(--muted); font-size: .72rem; }
.md-info b { font-size: var(--text-base); }
.md-info a { color: var(--red); font-weight: 700; margin-top: 4px; }
.md-info .md-wide { grid-column: 1 / -1; }
.md-refs span { display: block; } .md-refs span small { display: inline; margin-right: 6px; }
.md-refs .tbd { color: var(--muted); font-style: italic; }
.md-map { display: block; width: calc(100% - 2 * var(--space-6)); height: 220px; margin: var(--space-4) var(--space-6) 0; border: 0; border-radius: var(--radius-md); }
.md-stats { margin: var(--space-6) var(--space-6) 0; padding-top: var(--space-5); border-top: 2px solid var(--border); }
.md-stats h3 { margin: 0 0 var(--space-2); font-family: var(--font-display); font-size: var(--text-xl); font-weight: 800; font-style: italic; text-transform: uppercase; color: var(--cat); }
.md.cat-2df .md-stats h3 { color: #a67400; }
.h2h-seg { margin-bottom: var(--space-4); }
.h2h-seg button[disabled] { opacity: .45; cursor: default; }
.h2h-sum { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-bottom: var(--space-4); }
.h2h-sum span { background: var(--surface-2); border-radius: var(--radius-md); padding: var(--space-2) var(--space-4); font-weight: 600; color: var(--muted); font-size: var(--text-sm); }
.h2h-sum b { display: block; font-family: var(--font-display); font-size: var(--text-xl); color: var(--text); line-height: 1.1; }
.h2h-sum b.w { color: var(--win); } .h2h-sum b.l { color: var(--loss); }
.h2h-table table { width: 100%; border-collapse: collapse; font-size: var(--text-sm); }
.h2h-table th { text-align: left; padding: var(--space-2) var(--space-3); background: var(--cat); color: #fff; font-family: var(--font-display); text-transform: uppercase; letter-spacing: .05em; white-space: nowrap; }
.md.cat-2df .h2h-table th { color: #1a1a1a; }
.h2h-table td { padding: var(--space-2) var(--space-3); border-top: 1px solid var(--border); vertical-align: middle; }
.h2h-table td.team { font-weight: 700; }
.h2h-table td.res b { font-family: var(--font-display); font-size: 1.15rem; }
.h2h-table td.res small { display: block; color: var(--muted); font-size: .72rem; white-space: normal; max-width: 15ch; line-height: 1.3; }
.h2h-table td:nth-child(-n+3) { white-space: nowrap; }
.h2h-table td:last-child { white-space: nowrap; }
.champ-badge.sm { font-size: .72rem; padding: 3px 7px; white-space: nowrap; }
.md-foot { padding: var(--space-4) var(--space-6) var(--space-6); margin: 0; }
@media (max-width: 640px) {
  .match-dialog { width: 100vw; max-width: 100vw; max-height: 100dvh; height: 100dvh; border-radius: 0; margin: 0; }
  .md-head, .md-match { padding-inline: var(--space-4); }
  .md-match { grid-template-columns: 1fr; text-align: center; gap: var(--space-2); }
  .md-team:last-child { text-align: center; }
  .md-info { grid-template-columns: 1fr 1fr; padding: 0 var(--space-4); }
  .md-map { width: calc(100% - 2 * var(--space-4)); margin-inline: var(--space-4); height: 180px; }
  .md-stats { margin-inline: var(--space-4); }
  .md-foot { padding-inline: var(--space-4); }
}

/* ===== Pagina Iscrizioni ===== */
.iscr-alert { display: flex; gap: var(--space-4); align-items: center; background: #fff4d6; color: #3d2c00; border: 2px solid #f2a900; border-radius: var(--radius-lg); padding: var(--space-5) var(--space-6); font-size: var(--text-lg); line-height: 1.4; }
.iscr-alert-ic { flex-shrink: 0; width: 44px; height: 44px; border-radius: 50%; background: #f2a900; color: #1a1a1a; display: grid; place-items: center; font-family: var(--font-display); font-weight: 900; font-size: 1.6rem; }
.iscr-cta { margin-top: var(--space-6); display: flex; align-items: center; justify-content: space-between; gap: var(--space-6); flex-wrap: wrap; background: var(--surface); border: 1px solid var(--border); border-left: 8px solid var(--red); border-radius: var(--radius-lg); padding: var(--space-6); box-shadow: var(--shadow); }
.btn-lg { padding: 1rem 1.8rem; font-size: var(--text-base); }
.iscr-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-6); align-items: start; }
.iscr-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); }
.iscr-head { padding: var(--space-6); color: #fff; }
.iscr-head.age-young { background: #0f766e; } .iscr-head.age-teen { background: #1d4ed8; }
.iscr-head h2 { margin: var(--space-2) 0 0; font-family: var(--font-display); font-size: var(--text-xl); font-weight: 800; font-style: italic; text-transform: uppercase; line-height: 1.05; }
.iscr-age { display: inline-block; background: rgba(255,255,255,.2); border-radius: 999px; padding: 3px 12px; font-weight: 700; font-size: var(--text-sm); text-transform: uppercase; letter-spacing: .06em; }
.iscr-body { padding: var(--space-2) var(--space-6) var(--space-6); }
.iscr-block { padding: var(--space-4) 0; border-bottom: 1px solid var(--border); }
.iscr-block:last-child { border-bottom: 0; padding-bottom: 0; }
.iscr-block h3 { margin: 0 0 var(--space-2); font-family: var(--font-display); font-size: var(--text-lg); font-weight: 800; text-transform: uppercase; letter-spacing: .02em; }
.iscr-block p { margin: 0 0 var(--space-2); font-size: var(--text-base); }
.iscr-must { display: inline-block; background: var(--red-soft); color: var(--red); font-weight: 700; padding: 4px 10px; border-radius: 6px; }
.iscr-docs { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-2); }
.iscr-docs li { display: flex; gap: var(--space-3); align-items: center; font-size: var(--text-base); background: var(--surface-2); border-radius: 8px; padding: var(--space-2) var(--space-3); }
.iscr-docs svg { color: var(--win); flex-shrink: 0; }
.iscr-opts { list-style: none; margin: 0 0 var(--space-3); padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-2); }
.iscr-opts li { background: var(--surface-2); border-radius: 8px; padding: var(--space-3); display: flex; flex-direction: column; }
.iscr-opts li span { color: var(--muted); font-weight: 600; font-size: var(--text-sm); }
.iscr-where { background: #eef4ff; margin: var(--space-2) calc(-1 * var(--space-6)); padding: var(--space-4) var(--space-6); border-bottom: 0; }
[data-theme="dark"] .iscr-where { background: #172036; }
[data-theme="dark"] .iscr-alert { background: #3a2e0b; color: #fff1c7; }
.iscr-where a { color: var(--red); font-weight: 700; }
.iscr-steps { list-style: none; counter-reset: st; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-4); }
.iscr-steps li { counter-increment: st; background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-md); padding: var(--space-5); display: flex; flex-direction: column; gap: var(--space-2); }
.iscr-steps li::before { content: counter(st); width: 40px; height: 40px; border-radius: 50%; background: var(--red); color: #fff; display: grid; place-items: center; font-family: var(--font-display); font-weight: 800; font-size: 1.3rem; }
.iscr-steps b { font-size: var(--text-lg); font-family: var(--font-display); text-transform: uppercase; }
.iscr-steps span { color: var(--muted); }
@media (max-width: 900px) { .iscr-grid { grid-template-columns: 1fr; } .iscr-steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .iscr-steps { grid-template-columns: 1fr; } .iscr-opts { grid-template-columns: 1fr; } .iscr-alert { font-size: var(--text-base); padding: var(--space-4); } }
.md-map { background: var(--surface-2); }
@media (max-width: 640px) {
  .h2h-table table, .h2h-table tbody { display: block; }
  .h2h-table thead { display: none; }
  .h2h-table tr { display: grid; grid-template-columns: auto auto 1fr; gap: 6px 10px; padding: 10px 12px; border-top: 1px solid var(--border); align-items: center; }
  .h2h-table tbody tr:nth-child(odd) { background: var(--zebra-base); } .h2h-table tbody tr:nth-child(even) { background: var(--zebra); }
  .h2h-table td { border: 0 !important; padding: 0 !important; background: transparent !important; }
  .h2h-table td:nth-child(3) { justify-self: end; color: var(--muted); }
  .h2h-table td.team { grid-column: 1 / -1; white-space: normal; font-size: var(--text-base); }
  .h2h-table td.res { grid-column: 1 / 3; }
  .h2h-table td.res small { max-width: none; }
  .h2h-table td:last-child { grid-column: 3; justify-self: end; }
}
@media (max-width: 560px) {
  .brand-name small { display: none; }
  .brand-name { font-size: 1.05rem; }
  .header-inner { gap: var(--space-2); }
  .btn-iscr { padding: .45rem .8rem; font-size: .8rem; }
  .header-actions .icon-btn { width: 38px; height: 38px; }
}
@media (max-width: 440px) { .brand-name { display: none; } }

.iscr-head.age-adult { background: #7e22ce; }
@media (min-width: 1150px) { .iscr-grid { grid-template-columns: repeat(3, 1fr); } .iscr-opts { grid-template-columns: 1fr; } }

/* ===== Allenamenti: calendario settimanale ===== */
.wk-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: var(--space-6); box-shadow: var(--shadow); }
.wk-head { display: flex; justify-content: space-between; align-items: flex-end; gap: var(--space-4); flex-wrap: wrap; margin-bottom: var(--space-5); }
.wk-head a { color: var(--red); font-weight: 700; }
.wk-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.wk-day { background: var(--surface-2); border-radius: 10px; padding: 8px; min-height: 140px; display: flex; flex-direction: column; gap: 6px; }
.wk-dn { font-family: var(--font-display); font-weight: 800; text-transform: uppercase; letter-spacing: .05em; font-size: var(--text-sm); color: var(--muted); padding-bottom: 6px; border-bottom: 2px solid var(--border); }
.wk-day.has .wk-dn { color: var(--text); }
.wk-dn .abbr { display: none; }
.wk-ev { background: var(--cat); color: #fff; border-radius: 8px; padding: 8px 9px; display: flex; flex-direction: column; gap: 2px; }
.wk-ev.cat-2df { color: #1a1a1a; }
.wk-t { font-family: var(--font-display); font-weight: 800; font-size: 1.15rem; line-height: 1; }
.wk-n { font-weight: 700; font-size: .82rem; line-height: 1.15; }
.wk-none { color: var(--faint); font-size: .85rem; font-style: italic; margin-top: 4px; }
.wk-legend { margin-bottom: 0; }
.wk-empty { background: var(--surface-2); border-radius: var(--radius-md); padding: var(--space-5); font-size: var(--text-base); }
@media (max-width: 760px) {
  .wk-card { padding: var(--space-4); }
  .wk-grid { grid-template-columns: 1fr; gap: 6px; }
  .wk-day { min-height: 0; flex-direction: row; align-items: center; flex-wrap: wrap; padding: 8px 10px; }
  .wk-dn { border: 0; padding: 0; width: 92px; flex-shrink: 0; }
  .wk-ev { flex-direction: row; align-items: baseline; gap: 8px; }
  .wk-none { margin: 0; }
}

/* ===== Video guide (pagina Iscrizioni) ===== */
.guide-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(440px, 1fr)); gap: var(--space-5); }
.guide-card { display: grid; grid-template-columns: 1fr; gap: var(--space-5); padding: var(--space-5); border-radius: var(--radius-lg); background: linear-gradient(140deg, #0b1638, #1b2a6b); color: #fff; box-shadow: var(--shadow); align-items: start; }
.guide-card.is-v { grid-template-columns: 210px 1fr; align-items: center; }
.gv { position: relative; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; background: #0b1638; box-shadow: 0 10px 30px rgba(0,0,0,.35); }
.gv.gv-v { aspect-ratio: 9 / 16; }
@media (max-width: 760px) { .gv { aspect-ratio: 9 / 16; } }
.gvid { width: 100%; height: 100%; object-fit: contain; display: block; background: #0b1638; }
.gvid:fullscreen { width: 100%; height: 100%; object-fit: contain; background: #000; }
.gvid:-webkit-full-screen { width: 100%; height: 100%; object-fit: contain; background: #000; }
.gplay { position: absolute; inset: 0; border: 0; background: linear-gradient(180deg, rgba(11,22,56,0) 45%, rgba(11,22,56,.75)); color: #fff; cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; font: 700 1rem var(--font-body); }
.gplay svg { width: 74px; height: 74px; padding: 20px 18px 20px 24px; border-radius: 50%; background: var(--red); box-shadow: 0 8px 24px rgba(200,16,46,.5); transition: transform .2s; }
.gplay:hover svg { transform: scale(1.08); }
.gplay span { background: rgba(11,22,56,.7); padding: 4px 12px; border-radius: 999px; }
.gplay.loading svg { opacity: .6; }
.gtx { display: flex; flex-direction: column; gap: 10px; }
.gtx b { font-family: var(--font-display); font-size: 1.7rem; text-transform: uppercase; line-height: 1.05; }
.gtx > span { color: #d5d9ec; }
.guide-tag { align-self: flex-start; background: var(--red); color: #fff !important; font-weight: 700; font-size: .8rem; border-radius: 999px; padding: 3px 10px; text-transform: uppercase; letter-spacing: .04em; }
.guide-go { color: #fff; font-weight: 700; text-decoration: none; border: 1.5px solid rgba(255,255,255,.5); border-radius: 999px; padding: 8px 16px; align-self: flex-start; margin-top: 4px; }
.guide-go:hover { background: rgba(255,255,255,.12); }
@media (max-width: 560px) { .guide-grid { grid-template-columns: 1fr; } .guide-card, .guide-card.is-v { grid-template-columns: 1fr; } .gv.gv-v { max-width: 300px; margin: 0 auto; width: 100%; } }

/* menu: nessun a capo con la voce Allenamenti */
.main-nav a, .sub-toggle { white-space: nowrap; }
@media (min-width: 1101px) and (max-width: 1360px) {
  .main-nav ul { gap: 0; }
  .main-nav a, .main-nav .sub-toggle { padding-left: 9px; padding-right: 9px; letter-spacing: .03em; }
}
@media (min-width: 1101px) and (max-width: 1260px) {
  .main-nav a, .main-nav .sub-toggle { padding-left: 6px; padding-right: 6px; letter-spacing: .01em; font-size: .82rem; }
  .brand-text small, .brand small { display: none; }
}
.cat-s3 { --cat: #ea580c; }
.wk-pend { margin: var(--space-3) 0 0; color: var(--muted); font-size: var(--text-sm); }
@media (max-width: 760px) { .wk-day { display: grid; grid-template-columns: 92px 1fr; align-items: center; } .wk-dn { grid-row: 1 / span 3; } .wk-ev, .wk-none { grid-column: 2; justify-self: start; } }

.iscr-opts-adult li { gap: 2px; }
.iscr-opts-adult li em { font-style: normal; font-family: var(--font-display); font-weight: 800; font-size: 1.25rem; color: var(--red); }
.iscr-opts-adult li span { font-weight: 500; line-height: 1.4; }
.iscr-opts-adult a, .iscr-contacts a { color: var(--red); font-weight: 700; }
.iscr-contacts { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-3); font-size: var(--text-sm); line-height: 1.5; }
.iscr-contacts a { word-break: break-word; }
.iscr-opts.iscr-opts-adult { grid-template-columns: 1fr; }
.conv-box { display: grid; grid-template-columns: 1.3fr 1fr; gap: var(--space-6); background: var(--surface); border: 1px solid var(--border); border-left: 6px solid var(--red); border-radius: var(--radius-lg); padding: var(--space-6); box-shadow: var(--shadow); margin-top: var(--space-6); }
.conv-box h2 { margin: 0 0 var(--space-2); }
.conv-prices { list-style: none; margin: var(--space-4) 0 0; padding: 0; display: grid; gap: var(--space-2); }
.conv-prices li { display: grid; grid-template-columns: 1fr auto; gap: 2px var(--space-4); align-items: baseline; background: var(--surface-2); border-radius: 8px; padding: var(--space-3) var(--space-4); }
.conv-prices li em { font-style: normal; font-family: var(--font-display); font-weight: 800; font-size: 1.5rem; color: var(--red); grid-row: span 2; align-self: center; }
.conv-prices li span { color: var(--muted); font-size: var(--text-sm); }
.conv-prices li.main { background: var(--red-soft); }
.conv-where { background: var(--surface-2); border-radius: var(--radius-md); padding: var(--space-5); font-size: var(--text-base); line-height: 1.55; align-self: start; }
.conv-where h3 { margin: 0 0 var(--space-2); }
.conv-where a { color: var(--red); font-weight: 700; word-break: break-word; }
@media (max-width: 900px) { .conv-box { grid-template-columns: 1fr; padding: var(--space-5); } }
.conv-second { margin-top: var(--space-5); padding-top: var(--space-4); border-top: 1px solid var(--border); }
.wk-chips li[class*="cat-"] { background: var(--cat); border-color: var(--cat); color: #fff; }
.wk-chips li.cat-2df { color: #1a1a1a; }

/* ===== Iscrizioni nel menu, accanto a Home ===== */
.main-nav a.nav-iscr, .btn-iscr { background: #ffd23f; color: #1a1a1a; font-weight: 800; border-radius: 999px; box-shadow: 0 0 0 2px #fff inset, 0 2px 8px rgba(0,0,0,.25); }
.main-nav a.nav-iscr:hover, .btn-iscr:hover { background: #ffe27a; color: #1a1a1a; }
.main-nav a.nav-iscr[aria-current="page"], .btn-iscr.is-current { background: #fff; color: #a20b24; box-shadow: 0 0 0 3px #ffd23f inset; }
.nav-iscr-li { margin: 0 6px; }
@media (min-width: 1101px) { .header-actions .btn-iscr { display: none; } }
@media (max-width: 1100px) {
  .nav-iscr-li { margin: var(--space-1) 0 var(--space-2); }
  .main-nav a.nav-iscr { text-align: center; }
}

/* ===== Arbitri in home e pulsante Statistiche ===== */
.ev-a { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .68rem; font-weight: 600; opacity: .9; }
.mc-refs { display: block; font-size: var(--text-sm); color: var(--text); }
.mc-refs b { font-weight: 800; text-transform: uppercase; font-size: .72rem; letter-spacing: .05em; color: var(--muted); margin-right: 4px; }
.mc-refs.tbd { color: var(--faint); font-style: normal; }
.btn-stats { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: #ffd23f; color: #1a1a1a; font-family: var(--font-display); font-weight: 800; text-transform: uppercase; letter-spacing: .05em; font-size: .78rem; line-height: 1; cursor: pointer; white-space: nowrap; box-shadow: 0 1px 0 rgba(0,0,0,.18); transition: background .15s var(--ease), transform .12s var(--ease); }
.btn-stats::before { content: ""; width: 12px; height: 12px; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 20V10h4v10H4zm6 0V4h4v16h-4zm6 0v-7h4v7h-4z'/%3E%3C/svg%3E") center/contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 20V10h4v10H4zm6 0V4h4v16h-4zm6 0v-7h4v7h-4z'/%3E%3C/svg%3E") center/contain no-repeat; }
.btn-stats:hover, .btn-stats:focus-visible { background: #ffe27a; transform: translateY(-1px); }
.match-card .match-meta .btn-stats { margin-left: auto; padding: 5px 10px; font-size: .72rem; }
.md-jump { margin-left: var(--space-3); vertical-align: middle; }

/* ===== Etichette foto home con i colori del calendario ===== */
.photo-tag[class*="cat-"], .tile .label[class*="cat-"] { background: var(--cat); color: #fff; }
.tile .label.cat-2df, .photo-tag.cat-2df { color: #1a1a1a; }

/* ===== Riquadro modulo weSpoort ben visibile ===== */
.iscr-cta.iscr-cta-hi { background: #ffd23f; color: #1a1a1a; border: 3px solid #1a1a1a; box-shadow: 6px 6px 0 #1a1a1a; }
.iscr-cta-hi .eyebrow { color: #1a1a1a; }
.iscr-cta-hi .eyebrow::before { background: #1a1a1a; }
.iscr-cta-hi .section-title { color: #1a1a1a; }
.iscr-cta-hi p { color: #1a1a1a; font-size: var(--text-lg); font-weight: 500; }
.iscr-cta-hi .btn-primary { background: var(--red); color: #fff; border-color: var(--red); box-shadow: 0 4px 0 #7a0819; }
.iscr-cta-hi .btn-primary:hover { background: #a20b24; }

/* ===== Schede squadre con il colore del calendario ===== */
.team-card.team-cat { border: 3px solid var(--cat); border-top-width: 0; box-shadow: 0 6px 18px color-mix(in srgb, var(--cat) 18%, transparent); }
.team-card.team-cat img { border-bottom: 8px solid var(--cat); }
.team-card.team-cat .cat { color: var(--cat); }
.team-card.team-cat h3 { color: var(--cat); }
.team-card.team-cat.cat-2df .cat, .team-card.team-cat.cat-2df h3 { color: #b07a00; }
.team-card.team-cat a.more { color: var(--cat); }
.team-card.team-cat.cat-2df a.more { color: #8a5f00; }

/* ---------- Diretta partite (YouTube) ---------- */
.live-box { position: relative; overflow: hidden; isolation: isolate; background: var(--black); color: #fff; border-radius: var(--radius-lg); padding: clamp(var(--space-8), 5vw, var(--space-12)); display: grid; grid-template-columns: auto 1fr; gap: var(--space-8); align-items: center; border-left: 8px solid #ff0000; }
.live-box .stripe { position: absolute; z-index: -1; right: -8%; top: -30%; width: 40%; height: 160%; background: rgba(255,0,0,.12); transform: skewX(-18deg); }
.live-box .stripe + .stripe { right: -20%; background: rgba(255,255,255,.05); }
.live-ic { width: 104px; height: 104px; border-radius: 24px; background: #ff0000; display: grid; place-items: center; box-shadow: 0 10px 30px rgba(255,0,0,.35); }
.live-ic svg { width: 60px; height: 60px; }
.live-txt h2 { font-size: var(--text-2xl); font-weight: 900; font-style: italic; text-transform: uppercase; margin: var(--space-2) 0 var(--space-3); color: #fff; }
.live-txt p { max-width: 60ch; opacity: .9; margin: 0 0 var(--space-5); }
.live-badge { display: inline-flex; align-items: center; gap: var(--space-2); font-family: var(--font-display); font-weight: 800; text-transform: uppercase; letter-spacing: .12em; font-size: var(--text-xs); background: rgba(255,255,255,.1); padding: 6px 12px; border-radius: 999px; }
.live-badge .dot { width: 9px; height: 9px; border-radius: 50%; background: #ff3b3b; box-shadow: 0 0 0 0 rgba(255,59,59,.7); animation: ytpulse 1.6s infinite; }
@keyframes ytpulse { 0% { box-shadow: 0 0 0 0 rgba(255,59,59,.7); } 70% { box-shadow: 0 0 0 9px rgba(255,59,59,0); } 100% { box-shadow: 0 0 0 0 rgba(255,59,59,0); } }
@media (prefers-reduced-motion: reduce) { .live-badge .dot { animation: none; } }
.btn-yt { background: #ff0000; color: #fff; }
.btn-yt:hover { background: #cc0000; }
.btn-ghost { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,.6); }
.btn-ghost:hover { background: rgba(255,255,255,.1); }
@media (max-width: 640px) { .live-box { grid-template-columns: 1fr; text-align: center; gap: var(--space-5); } .live-ic { width: 76px; height: 76px; margin-inline: auto; } .live-ic svg { width: 44px; height: 44px; } .live-txt p { margin-inline: auto; } .live-box .btn-row { justify-content: center; } }

/* Diretta: pulsante in barra */
.btn-live { display: inline-flex; align-items: center; gap: 8px; padding: .5rem .95rem; border-radius: 999px; background: #151213; color: #fff; font-family: var(--font-display); font-weight: 800; text-transform: uppercase; letter-spacing: .06em; font-size: var(--text-sm); text-decoration: none; white-space: nowrap; box-shadow: 0 0 0 2px rgba(255,255,255,.85) inset, 0 2px 8px rgba(0,0,0,.25); transition: transform .15s var(--ease); }
.btn-live:hover { transform: translateY(-1px); background: #000; }
.btn-live .dot { width: 9px; height: 9px; border-radius: 50%; background: #ff2d2d; animation: ytpulse 1.6s infinite; }
.header-actions { display: flex; align-items: center; gap: var(--space-2); }
@media (max-width: 400px) { .btn-live { padding: .45rem .7rem; font-size: .78rem; gap: 6px; } }
@media (prefers-reduced-motion: reduce) { .btn-live .dot { animation: none; } }
/* Diretta: pulsanti sulle partite */
.lv-btns { display: inline-flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.btn-yt-sm, .btn-avviso { display: inline-flex; align-items: center; gap: 5px; padding: 5px 10px; border-radius: 999px; font-family: var(--font-display); font-weight: 800; text-transform: uppercase; letter-spacing: .04em; font-size: .72rem; line-height: 1.1; cursor: pointer; white-space: nowrap; text-decoration: none; }
.btn-yt-sm { background: #ff0000; color: #fff; }
.btn-yt-sm:hover { background: #cc0000; }
.btn-avviso { background: transparent; color: var(--text); border: 2px solid currentColor; padding: 3px 9px; }
.btn-avviso:hover { background: var(--red-soft); color: var(--red); }
.lv-btns.big .btn-yt-sm, .lv-btns.big .btn-avviso { font-size: .85rem; padding: 9px 16px; }
.lv-btns.big .btn-avviso { padding: 7px 14px; }
.mc-row .lv-btns { grid-column: 2 / -1; margin-top: -4px; }
.md-live { display: flex; justify-content: center; margin: var(--space-4) 0 0; }
td.t-time .lv-btns { display: flex; flex-wrap: nowrap; gap: 4px; margin-top: 6px; }
.lv-btns.ic .btn-yt-sm, .lv-btns.ic .btn-avviso { width: 32px; height: 28px; padding: 0; justify-content: center; }
.ev-yt { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #ff0000; margin-left: 4px; vertical-align: middle; box-shadow: 0 0 0 1.5px #fff; }
/* Avviso */
.btn-yt svg, .btn-ghost svg { flex-shrink: 0; }
.live-badge.dark { background: #151213; color: #fff; }
.av-title { font-size: var(--text-xl); font-weight: 900; font-style: italic; text-transform: uppercase; margin: var(--space-4) 0 var(--space-3); }
.av-match { display: grid; gap: 4px; justify-items: start; padding: var(--space-4); border-radius: var(--radius-md); background: var(--surface-2, var(--surface)); border: 1px solid var(--border); margin-bottom: var(--space-4); }
.av-match b { font-size: var(--text-lg); }
.av-opt { border-top: 1px solid var(--border); padding-top: var(--space-4); margin-top: var(--space-4); }
.av-opt h4 { display: flex; align-items: center; gap: var(--space-2); font-size: var(--text-base); margin: 0 0 var(--space-2); }
.av-opt p { margin: 0 0 var(--space-4); color: var(--muted, inherit); }
.av-n { width: 26px; height: 26px; border-radius: 50%; background: var(--red); color: #fff; display: grid; place-items: center; font-size: .85rem; flex-shrink: 0; }
.avviso-dialog { max-width: 560px; }
@media (min-width: 1101px) and (max-width: 1440px) {
  .header-inner { gap: var(--space-3); }
  .main-nav a, .main-nav .sub-toggle { padding-inline: .55rem; }
  .nav-iscr-li { margin: 0 3px; }
  .btn-live { padding: .42rem .75rem; font-size: .8rem; gap: 6px; }
}
@media (min-width: 1101px) and (max-width: 1500px) {
  .main-nav a, .main-nav .sub-toggle { letter-spacing: .02em; }
  .brand-name { font-size: 1.15rem; }
}
@media (min-width: 1101px) and (max-width: 1200px) {
  .brand-name small { display: none; }
  .main-nav a, .main-nav .sub-toggle { padding-inline: .4rem; }
}
.md.av > :not(.md-head) { margin-inline: clamp(var(--space-4), 4vw, var(--space-6)); }
.md.av { padding-bottom: var(--space-6); }
.md.av .av-opt .btn-row { gap: var(--space-2); }
