/* Olimpia@School · Salesiani Breda
   Tema: i colori dell'Olimpia, rosso, bianco e nero.
   Momento: il biglietto del Match Day. Firma: la perforazione tratteggiata. */

:root {
  /* Rosso Olimpia */
  --red: #e2001a;
  --red-ink: #b80016;
  --red-soft: #fdecee;

  /* Neutri freddi, bianco e grafite */
  --bg: #ffffff;
  --raised: #f4f4f5;
  --card: #ffffff;
  --ink: #111113;
  --ink-2: #4a4a51;
  --muted: #6c6c74;
  --line: rgba(17, 17, 19, 0.08);
  --line-2: rgba(17, 17, 19, 0.14);

  /* Nero da palazzetto */
  --n-bg: #0e0e10;
  --n-card: #18181b;
  --n-ink: #f4f4f5;
  --n-ink-2: #a8a8b0;
  --n-muted: #85858d;
  --n-line: rgba(244, 244, 245, 0.1);
  --n-red: #ff5468;

  /* Anello di focus e raggio dei controlli (shadcn/ui) */
  --ring: rgba(226, 0, 26, 0.32);
  --ring-white: rgba(255, 255, 255, 0.7);

  --font: "Archivo", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  font-variant-numeric: tabular-nums;
}
a { color: var(--red); text-underline-offset: 3px; transition: color 150ms var(--ease); }
a:hover { color: var(--red-ink); }
:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; border-radius: 4px; }
.hero :focus-visible, .section--red :focus-visible, .cover :focus-visible { outline-color: #fff; }
.stage :focus-visible { outline-color: var(--n-red); }
.section--night :focus-visible, .footer :focus-visible, .tips :focus-visible { outline-color: var(--n-red); }
/* Icone a tratto, stile lucide */
.ico { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
b, strong { font-weight: 600; }
.mono { font-variant-numeric: tabular-nums; }

.wrap { width: min(1160px, 100% - 48px); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--card); padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; }

/* Titoli larghi e compatti: il tono sportivo del tema */
h1, h2, h3, h4 { font-weight: 600; font-stretch: 112%; margin: 0 0 16px; }
h1 { font-size: clamp(44px, 5.4vw, 68px); line-height: 0.98; letter-spacing: -0.035em; }
h2 { font-size: clamp(32px, 4vw, 52px); line-height: 1.02; letter-spacing: -0.03em; max-width: 820px; }
h3 { font-size: 20px; line-height: 1.25; letter-spacing: -0.01em; }
h4 { font-size: 20px; line-height: 1.25; letter-spacing: -0.01em; }
p { margin: 0 0 16px; }

.label { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 600; color: var(--red); margin-bottom: 16px; }
.label::before { content: ""; width: 20px; height: 3px; background: currentColor; border-radius: 2px; }
.intro { max-width: 720px; color: var(--ink-2); font-size: 19px; }
.note { color: var(--muted); font-size: 15px; margin-top: 16px; }
.mt { margin-top: 32px; }

/* ── Navigazione ── */
.topbar { position: sticky; top: 0; z-index: 50; background: var(--bg); border-bottom: 1px solid var(--line); }
.topbar__in { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { display: flex; align-items: center; gap: 8px; text-decoration: none; color: var(--ink); font-size: 17px; font-weight: 600; font-stretch: 112%; letter-spacing: 0; white-space: nowrap; }
.brand:hover { color: var(--ink); }
.brand__sub { color: var(--muted); font-weight: 500; font-stretch: 100%; }
.brand__ball {
  width: 22px; height: 22px; border-radius: 50%; flex: none; background-color: var(--red);
  background-image:
    linear-gradient(90deg, transparent 46%, #fff 46% 54%, transparent 54%),
    linear-gradient(0deg, transparent 46%, #fff 46% 54%, transparent 54%);
}
.nav { display: flex; gap: 4px; margin-left: auto; align-items: center; }
.nav a { white-space: nowrap; text-decoration: none; color: var(--ink-2); font-size: 15px; font-weight: 500; padding: 8px; border-radius: 8px; transition: color 150ms var(--ease), background-color 150ms var(--ease); }
.nav a:hover { color: var(--ink); background: var(--raised); }
.nav .nav__cta { background: var(--red); color: #fff; padding: 8px 16px; margin-left: 8px; font-weight: 600; }
.nav .nav__cta:hover { background: var(--red-ink); color: #fff; }
.menu-btn {
  display: none; align-items: center; gap: 8px; margin-left: auto; height: 40px; padding: 0 16px 0 12px; cursor: pointer;
  font: 600 15px var(--font); color: var(--ink); background: #fff; border: 1px solid var(--line-2); border-radius: 999px;
  transition: background-color 150ms var(--ease), border-color 150ms var(--ease);
}
.menu-btn:hover { background: var(--raised); }
.icon-btn {
  display: grid; place-items: center; width: 36px; height: 36px; flex: none; padding: 0; cursor: pointer;
  color: var(--ink); background: #fff; border: 1px solid var(--line-2); border-radius: 999px; transition: background-color 150ms var(--ease);
}
.icon-btn:hover { background: var(--raised); }
.sheet__head, .sheet-overlay { display: none; }
@media (max-width: 960px) {
  .menu-btn { display: inline-flex; }
  .sheet-overlay { display: block; position: fixed; inset: 0; z-index: 60; background: rgba(14, 14, 16, 0.6); opacity: 0; transition: opacity 300ms var(--ease); }
  .sheet-overlay.is-open { opacity: 1; }
  .nav {
    position: fixed; z-index: 61; top: 0; right: 0; bottom: 0; width: min(340px, 86vw); margin: 0; overflow-y: auto;
    flex-direction: column; align-items: stretch; gap: 2px; padding: 12px 20px 24px;
    background: #fff; border-left: 1px solid var(--line); box-shadow: -8px 0 32px rgba(17, 17, 19, 0.12);
    transform: translateX(100%); visibility: hidden; transition: transform 300ms var(--ease), visibility 0s linear 300ms;
  }
  .nav.is-open { transform: none; visibility: visible; transition: transform 400ms var(--ease), visibility 0s; }
  .sheet__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 52px; margin-bottom: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
  .nav a { font-size: 17px; padding: 12px; color: var(--ink); }
  .nav .nav__cta { margin: auto 0 0; padding: 12px 16px; text-align: center; border-radius: 10px; }
  body.is-locked { overflow: hidden; }
}
@media (max-width: 960px) and (prefers-reduced-motion: reduce) {
  .nav, .nav.is-open, .sheet-overlay { transition: none; }
}

/* ── Pulsanti ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 48px; padding: 0 24px; cursor: pointer; white-space: nowrap;
  font: 600 16px var(--font); text-decoration: none; border-radius: 10px; border: 0;
  background: var(--red); color: #fff;
  transition: background-color 150ms var(--ease), color 150ms var(--ease), transform 120ms var(--ease);
}
.btn:hover { background: var(--red-ink); color: #fff; }
.btn:active { transform: scale(0.98); }
.btn:disabled { opacity: 0.5; pointer-events: none; }
.btn .ico { width: 18px; height: 18px; margin-inline: -2px; }
.btn--white { background: #fff; color: var(--red); }
.btn--white:hover { background: var(--red-soft); color: var(--red-ink); }
.btn--outline { background: transparent; color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.6); }
.btn--outline:hover { background: rgba(255, 255, 255, 0.12); color: #fff; }

/* ── Hero rosso ── */
.hero { background: var(--red); color: #fff; min-height: calc(100svh - 64px); display: flex; flex-direction: column; }
.hero__in { flex: 1; display: grid; grid-template-columns: 1.2fr 0.9fr; gap: 64px; align-items: center; padding: 72px 0; }
.hero .label { color: #fff; }
.hero .lead { max-width: 34rem; font-size: 20px; line-height: 1.5; color: rgba(255, 255, 255, 0.9); }
.actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 32px; }

/* Il biglietto */
.ticket {
  display: grid; grid-template-columns: 1fr 156px; position: relative; transform: rotate(-3deg);
  filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.14)) drop-shadow(0 24px 40px rgba(0, 0, 0, 0.2));
}
.ticket__main, .ticket__stub { background: #fff; color: var(--ink); -webkit-mask-composite: source-in; mask-composite: intersect; }
.ticket__main {
  min-width: 0; border-radius: 16px 0 0 16px;
  -webkit-mask: radial-gradient(circle 12px at 100% 0, #0000 98%, #000), radial-gradient(circle 12px at 100% 100%, #0000 98%, #000);
  mask: radial-gradient(circle 12px at 100% 0, #0000 98%, #000), radial-gradient(circle 12px at 100% 100%, #0000 98%, #000);
}
.ticket__band {
  display: flex; justify-content: space-between; gap: 12px; align-items: baseline;
  background: var(--ink); color: #fff; border-radius: 16px 0 0 0; padding: 12px 24px;
  font-size: 15px; font-weight: 600; font-stretch: 112%;
}
.ticket__band .mono { font-size: 13px; font-weight: 400; font-stretch: 100%; color: rgba(255, 255, 255, 0.75); }
.ticket__body { padding: 24px; }
.ticket__home { font-size: 18px; color: var(--ink-2); margin: 0 0 4px; }
.ticket__away { font-size: clamp(28px, 3vw, 38px); line-height: 1.05; font-weight: 600; font-stretch: 112%; letter-spacing: -0.03em; margin: 0 0 24px; }
.ticket__away span { font-size: 18px; color: var(--red); font-weight: 600; letter-spacing: 0; margin-right: 4px; }
.ticket__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 24px; margin: 0; padding-top: 20px; border-top: 1px solid var(--line); }
.ticket__grid .wide { grid-column: 1 / -1; }
.ticket__grid dt { font-size: 13px; color: var(--muted); }
.ticket__grid dd { margin: 0; font-size: 16px; font-weight: 500; }
.ticket__stub {
  padding: 24px 20px; border-left: 2px dashed var(--line-2); border-radius: 0 16px 16px 0; display: flex; flex-direction: column;
  -webkit-mask: radial-gradient(circle 12px at 0 0, #0000 98%, #000), radial-gradient(circle 12px at 0 100%, #0000 98%, #000);
  mask: radial-gradient(circle 12px at 0 0, #0000 98%, #000), radial-gradient(circle 12px at 0 100%, #0000 98%, #000);
}
.ticket__k { font-size: 13px; color: var(--muted); margin: 0 0 8px; }
.countdown { display: grid; gap: 8px; }
.countdown div { display: flex; align-items: baseline; gap: 8px; }
.countdown b { font-size: 36px; line-height: 1; font-weight: 600; font-stretch: 112%; letter-spacing: -0.03em; color: var(--red); min-width: 2ch; }
.countdown span { font-size: 14px; color: var(--ink-2); }
.countdown .done { font-size: 20px; font-weight: 600; line-height: 1.2; color: var(--red); margin: 0; }
.ticket__school { font-size: 13px; color: var(--ink-2); margin: 24px 0 8px; }
.ticket__code {
  display: block; margin-top: auto; height: 32px;
  background: repeating-linear-gradient(90deg, var(--ink) 0 2px, transparent 2px 4px, var(--ink) 4px 5px, transparent 5px 8px, var(--ink) 8px 11px, transparent 11px 12px);
}

/* Per chi: striscia in fondo all'hero */
.audiences { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid rgba(255, 255, 255, 0.3); }
.aud { display: block; padding: 20px 24px 24px 0; text-decoration: none; color: #fff; }
.aud + .aud { padding-left: 24px; border-left: 1px solid rgba(255, 255, 255, 0.2); }
.aud__k { display: flex; justify-content: space-between; gap: 8px; font-size: 16px; font-weight: 600; font-stretch: 112%; }
.aud__k::after { content: "→"; font-stretch: 100%; transition: transform 150ms var(--ease); }
.aud__t { display: block; font-size: 15px; color: rgba(255, 255, 255, 0.85); line-height: 1.45; margin-top: 4px; }
.aud:hover { color: #fff; }
.aud:hover .aud__k::after { transform: translateX(3px); }

/* ── Sezioni ── */
.section { padding: 112px 0; }
.section--raised { background: var(--raised); }
.section--night { background: var(--n-bg); color: var(--n-ink); }
.section--night .label { color: var(--n-red); }
.section--night p { color: var(--n-ink-2); }
.link-night { color: var(--n-red); }
.link-night:hover { color: #ff8a98; }
.section--red { background: var(--red); color: #fff; }
.section--red .label { color: #fff; }
.section--red p { color: rgba(255, 255, 255, 0.9); }
.section--red a { color: #fff; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }

.areas__title { font-size: 15px; font-weight: 600; color: var(--ink-2); margin: 8px 0 12px; }
.areas { list-style: none; margin: 0; padding: 0; counter-reset: a; }
.areas__link { color: var(--ink); text-decoration: none; }
.areas__link::after { content: " →"; color: var(--red); }
.areas__link:hover { color: var(--red); }
.areas li { padding: 20px 0 20px 64px; border-top: 1px solid var(--line-2); position: relative; }
.areas li:last-child { border-bottom: 1px solid var(--line-2); }
.areas__n { position: absolute; left: 0; top: 20px; font-size: 32px; line-height: 1; font-weight: 600; font-stretch: 112%; color: var(--red); letter-spacing: -0.03em; }
.areas h3 { margin-bottom: 4px; }
.areas p { margin: 0; font-size: 16px; color: var(--ink-2); }

.facts { margin: 0; }
.facts div { padding: 16px 0; border-top: 1px solid var(--n-line); }
.facts div:last-child { border-bottom: 1px solid var(--n-line); }
.facts dt { font-size: 14px; color: var(--n-muted); }
.facts dd { margin: 4px 0 0; font-size: 18px; color: var(--n-ink); }
.card-night { background: var(--n-card); border: 1px solid var(--n-line); border-radius: 16px; padding: 8px 28px; }
.card-night div:first-child { border-top: 0; }
.card-night div:last-child { border-bottom: 0; }

/* ── Biglietti ── */
.h3-line { margin-top: 56px; padding-bottom: 12px; border-bottom: 2px solid var(--ink); }
.steps { counter-reset: s; list-style: none; padding: 0; margin: 24px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.steps li { counter-increment: s; background: var(--raised); border-radius: 16px; padding: 24px; font-size: 16px; color: var(--ink-2); }
.steps li::before {
  content: counter(s); display: block; margin-bottom: 12px; font-size: 32px; line-height: 1; font-weight: 600; font-stretch: 112%;
  letter-spacing: -0.03em; color: var(--red);
}
.steps b { color: var(--ink); }

.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 24px; }
.option { background: var(--card); border: 1px solid var(--line-2); border-radius: 16px; padding: 28px; }
.option__k { font-size: 14px; font-weight: 600; color: var(--red); margin: 0 0 4px; }
.option h4 { margin-bottom: 16px; }
.option ul { margin: 0; padding-left: 20px; color: var(--ink-2); font-size: 16px; }
.option li { margin-bottom: 8px; }
.option li:last-child { margin-bottom: 0; }
.option b { color: var(--ink); }
.tips { margin-top: 16px; background: var(--n-bg); color: var(--n-ink-2); border-radius: 16px; padding: 24px 28px; font-size: 16px; }
.tips p { margin-bottom: 8px; }
.tips p:last-child { margin-bottom: 0; }
.tips b { color: #fff; margin-right: 4px; }
.tips a { color: var(--n-red); }

/* ── Calendario ── */
.filters { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; margin: 32px 0 16px; }
.seg { display: inline-flex; gap: 4px; padding: 4px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px; font: 600 15px var(--font); background: transparent; color: var(--ink-2);
  border: 0; border-radius: 8px; height: 36px; padding: 0 12px; cursor: pointer; white-space: nowrap; transition: background-color 150ms var(--ease), color 150ms var(--ease);
}
@media (max-width: 640px) {
  .seg { display: flex; width: 100%; }
  .chip { flex: 1 1 auto; justify-content: center; gap: 4px; padding: 0 8px; font-size: 14px; }
}
.chip:hover { color: var(--ink); background: var(--raised); }
.chip.is-on { background: var(--red); color: #fff; }
.chip__n { font-size: 13px; font-weight: 500; color: var(--muted); font-variant-numeric: tabular-nums; transition: inherit; }
.chip:hover .chip__n { color: var(--ink-2); }
.chip.is-on .chip__n { color: rgba(255, 255, 255, 0.8); }
.chip__n:empty { display: none; }
.toggle { margin-left: auto; font-size: 15px; color: var(--ink-2); display: flex; gap: 8px; align-items: center; cursor: pointer; user-select: none; }
.switch {
  appearance: none; -webkit-appearance: none; position: relative; flex: none; width: 36px; height: 20px; margin: 0; cursor: pointer;
  border-radius: 999px; background: #d4d4d8; transition: background-color 150ms var(--ease);
}
.switch::before {
  content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff;
  box-shadow: 0 1px 2px rgba(17, 17, 19, 0.2); transition: transform 150ms var(--ease);
}
.switch:checked { background: var(--red); }
.switch:checked::before { transform: translateX(16px); }
.switch:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--ring); border-radius: 999px; }
.table-wrap { overflow-x: auto; background: var(--card); border: 1px solid var(--line); border-radius: 16px; }
.games { width: 100%; border-collapse: collapse; font-size: 16px; }
.games th { text-align: left; font-size: 14px; font-weight: 600; color: var(--muted); padding: 16px; border-bottom: 1px solid var(--line-2); }
.games td { padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; transition: background-color 150ms var(--ease); }
@media (min-width: 641px) { .games tbody tr:not(.empty-row):not(.is-ours):hover td { background: #fafafa; } }
.games tbody tr:last-child td { border-bottom: 0; }
.games .num { text-align: right; font-size: 16px; font-weight: 500; white-space: nowrap; }
.games .date { font-size: 15px; white-space: nowrap; }
.games .date b { font-weight: 600; }
.games .date span { color: var(--muted); }
.games .opp { font-weight: 600; }
.opp__tags { display: inline-flex; flex-wrap: wrap; gap: 4px; margin-left: 8px; vertical-align: 1px; }
.badge {
  display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 6px; border: 1px solid transparent;
  font-size: 12px; font-weight: 600; line-height: 1; white-space: nowrap;
}
.badge--red { background: var(--red); color: #fff; }
.badge--dark { background: var(--ink); color: #fff; }
.badge--outline { border-color: var(--line-2); color: var(--ink-2); background: #fff; }
.badge--soft { background: var(--raised); color: var(--ink-2); }
.games .c { color: var(--ink-2); font-size: 15px; white-space: nowrap; }
.games tr.is-past td { color: var(--muted); }
/* Firma: la perforazione segna il nostro Match Day */
.games tr.is-ours td { background: var(--red-soft); border-top: 2px dashed var(--red); border-bottom: 2px dashed var(--red); }
.empty-row td { text-align: center; color: var(--muted); padding: 32px; }

/* ── Player's Day e pannelli ── */
.panel { background: var(--raised); border-radius: 16px; padding: 28px; }
.panel__k { font-size: 14px; color: var(--muted); margin: 0 0 4px; }
.pd { margin: 0 0 20px; display: grid; gap: 16px; }
.pd dt { font-size: 14px; color: var(--muted); }
.pd dd { margin: 0; font-size: 28px; line-height: 1.1; font-weight: 600; font-stretch: 112%; letter-spacing: -0.02em; }
.pd-list { margin: 0; padding: 20px 0 0 20px; border-top: 1px solid var(--line-2); color: var(--ink-2); font-size: 16px; }
.pd-list li { margin-bottom: 4px; }

.cols3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin-top: 40px; }
.cols3 article { border-top: 3px solid var(--red); padding-top: 20px; }
.cols3 h3 { margin-bottom: 8px; }
.cols3 p { margin: 0; font-size: 16px; color: var(--ink-2); }

/* ── Contatti (sezione rossa) ── */
.contact-actions { display: grid; gap: 8px; margin-top: 24px; }
.section--red .contact-actions a { display: flex; justify-content: space-between; align-items: center; gap: 16px; text-decoration: none; color: var(--ink); background: #fff; border-radius: 12px; padding: 16px 20px; font-weight: 600; transition: background-color 150ms var(--ease); }
.section--red .contact-actions a:hover { background: var(--red-soft); color: var(--ink); }
.contact-actions a span { color: var(--muted); font-size: 14px; font-weight: 400; white-space: nowrap; }
.contact-empty { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: start; margin-top: 24px; background: #fff; border-radius: 12px; padding: 16px 20px; }
.contact-empty .ico { color: var(--red); margin-top: 4px; }
.section--red .contact-empty p { margin: 0; color: var(--ink-2); }
.section--red .contact-empty a { color: var(--red); }
.section--red .panel { background: transparent; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.4); }
.section--red .panel__k { color: rgba(255, 255, 255, 0.8); }
.toaster { position: fixed; z-index: 99; right: 24px; bottom: 24px; display: grid; gap: 8px; width: min(380px, calc(100% - 32px)); pointer-events: none; }
.toast {
  pointer-events: auto; display: grid; grid-template-columns: auto 1fr auto; gap: 2px 12px; align-items: start;
  background: #fff; color: var(--ink); border: 1px solid var(--line-2); border-radius: 12px; padding: 12px 12px 12px 16px;
  box-shadow: 0 4px 16px rgba(17, 17, 19, 0.1); animation: toast-in 320ms var(--ease);
}
.toast.is-leaving { animation: toast-out 200ms var(--ease) forwards; }
.toast__ico { grid-row: span 2; color: var(--red); margin-top: 2px; }
.toast__t { margin: 0; font-size: 15px; font-weight: 600; line-height: 1.4; }
.toast__d { grid-column: 2; margin: 0; font-size: 14px; line-height: 1.4; color: var(--muted); overflow-wrap: anywhere; }
.toast .icon-btn { grid-column: 3; grid-row: 1 / span 2; width: 28px; height: 28px; border: 0; color: var(--muted); }
.toast .icon-btn .ico { width: 16px; height: 16px; }
@keyframes toast-in { from { opacity: 0; transform: translateY(16px); } }
@keyframes toast-out { to { opacity: 0; transform: translateY(8px); } }
@media (prefers-reduced-motion: reduce) { .toast, .toast.is-leaving { animation-duration: 1ms; } }
@media (max-width: 640px) { .toaster { left: 16px; right: 16px; bottom: 16px; width: auto; } }

/* ── Footer ── */
.footer { background: var(--n-bg); color: var(--n-ink-2); font-size: 14px; padding: 40px 0; }
.footer p { margin: 0 0 8px; }
.footer a { color: var(--n-ink); }
.footer a:hover { color: #fff; }

[hidden] { display: none !important; }

/* ── Schermi medi ── */
@media (max-width: 960px) {
  .hero__in { grid-template-columns: 1fr; gap: 48px; padding: 56px 0 64px; }
  .ticket { max-width: 560px; transform: rotate(-2deg); }
  .split { grid-template-columns: 1fr; gap: 40px; }
  .steps { grid-template-columns: 1fr 1fr; }
  .cols3 { grid-template-columns: 1fr; gap: 24px; }
  .audiences { grid-template-columns: 1fr 1fr; }
  .aud:nth-child(3) { padding-left: 0; border-left: 0; }
  .aud:nth-child(n+3) { border-top: 1px solid rgba(255, 255, 255, 0.2); }
}

/* ── Telefoni ── */
@media (max-width: 640px) {
  .wrap { width: calc(100% - 40px); }
  .brand__sub { display: none; }
  .section { padding: 72px 0; }
  h1 { font-size: 44px; }
  .hero { min-height: 0; }
  .hero .lead { font-size: 18px; }
  .ticket { grid-template-columns: 1fr; transform: rotate(-1.5deg); }
  .ticket__main {
    border-radius: 16px 16px 0 0;
    -webkit-mask: radial-gradient(circle 12px at 0 100%, #0000 98%, #000), radial-gradient(circle 12px at 100% 100%, #0000 98%, #000);
    mask: radial-gradient(circle 12px at 0 100%, #0000 98%, #000), radial-gradient(circle 12px at 100% 100%, #0000 98%, #000);
  }
  .ticket__band { border-radius: 16px 16px 0 0; }
  .ticket__body { padding: 20px; }
  .ticket__stub {
    border-left: 0; border-top: 2px dashed var(--line-2); border-radius: 0 0 16px 16px; padding: 20px;
    display: grid; grid-template-columns: 1fr auto; gap: 8px 16px; align-items: end;
    -webkit-mask: radial-gradient(circle 12px at 0 0, #0000 98%, #000), radial-gradient(circle 12px at 100% 0, #0000 98%, #000);
    mask: radial-gradient(circle 12px at 0 0, #0000 98%, #000), radial-gradient(circle 12px at 100% 0, #0000 98%, #000);
  }
  .ticket__k { grid-column: 1 / -1; margin: 0; }
  .countdown { grid-template-columns: repeat(3, auto); gap: 16px; justify-content: start; }
  .countdown div { flex-direction: column; gap: 4px; }
  .countdown b { font-size: 32px; }
  .ticket__school { display: none; }
  .ticket__code { width: 64px; height: 40px; margin: 0; }
  .audiences { grid-template-columns: 1fr; }
  .aud, .aud + .aud { padding: 16px 0; border-left: 0; }
  .aud + .aud { border-top: 1px solid rgba(255, 255, 255, 0.2); }
  .steps, .grid2 { grid-template-columns: 1fr; }
  .toggle { margin-left: 0; }

  /* Tabella partite come schede */
  .table-wrap { background: transparent; border: 0; border-radius: 0; overflow: visible; }
  .games, .games tbody { display: block; }
  .games thead { display: none; }
  .games tbody { display: grid; gap: 8px; }
  .games tr {
    display: grid; grid-template-columns: 1fr auto auto; gap: 4px 16px;
    grid-template-areas: "date date comp" "opp opp opp" ". a m";
    background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 16px; box-shadow: 0 1px 2px rgba(17, 17, 19, 0.04);
  }
  .opp__tags { display: flex; margin: 4px 0 0; }
  .games td, .games tr.is-ours td { padding: 0; border: 0; background: none; }
  .games td.date { grid-area: date; }
  .games td.c { grid-area: comp; justify-self: end; }
  .games td.opp { grid-area: opp; font-size: 19px; margin: 4px 0; }
  .games td.a { grid-area: a; }
  .games td.m { grid-area: m; }
  .games td.num::before { content: attr(data-l); display: block; font-size: 12px; font-weight: 400; color: var(--muted); }
  .games tr.is-ours { background: var(--red-soft); border: 2px dashed var(--red); }
}

/* ── Elementi distintivi ── */

/* Barra con la prossima partita in casa */
.nextbar { background: var(--ink); color: #fff; font-size: 14px; }
.nextbar__in { display: flex; align-items: center; gap: 16px; min-height: 44px; padding: 8px 0; }
.nextbar__k { flex: none; font-weight: 600; color: var(--n-red); }
.nextbar__v { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: rgba(255, 255, 255, 0.92); }
.nextbar__a { flex: none; color: #fff; font-weight: 600; }
.nextbar__a:hover { color: var(--n-red); }

/* Linee di mezzo campo dietro all'hero */
.hero { position: relative; overflow: hidden; }
.hero__in, .audiences { position: relative; z-index: 1; }
.court {
  position: absolute; z-index: 0; color: #fff; opacity: 0.16; pointer-events: none;
  width: min(940px, 82vw); right: -16%; top: 50%; transform: translateY(-50%) rotate(90deg);
}

/* La data gigante del Match Day */
.bigdate {
  margin: 0 0 24px; font-size: clamp(96px, 14vw, 184px); line-height: 0.82; font-weight: 600; font-stretch: 125%;
  letter-spacing: -0.05em; color: transparent; -webkit-text-stroke: 2px var(--n-red);
}
.section--night .bigdate { color: transparent; }
.section--night .bigdate span { color: var(--n-red); -webkit-text-stroke: 0; }
.section--night .actions { margin-top: 28px; }

/* Firma tipografica nel footer */
.footer { padding-top: 72px; }
.sign {
  display: flex; align-items: center; gap: 0.18em; margin: 0 0 12px !important; color: #fff;
  font-size: clamp(48px, 9.5vw, 136px); line-height: 0.9; font-weight: 600; font-stretch: 125%; letter-spacing: -0.045em;
}
.sign__ball {
  flex: none; width: 0.62em; height: 0.62em; border-radius: 50%; background-color: var(--red);
  background-image:
    linear-gradient(90deg, transparent 47%, var(--n-bg) 47% 53%, transparent 53%),
    linear-gradient(0deg, transparent 47%, var(--n-bg) 47% 53%, transparent 53%);
}
.sign__sub { font-size: 15px; font-weight: 600; color: var(--n-red); padding-bottom: 32px; margin-bottom: 24px !important; border-bottom: 1px solid var(--n-line); }

@media (max-width: 640px) {
  .nextbar__in { flex-wrap: wrap; gap: 2px 12px; }
  .nextbar__k { width: 100%; font-size: 13px; }
  .nextbar__v { white-space: normal; }
  .court { width: 150vw; right: -70vw; top: 38%; opacity: 0.12; }
  .bigdate { -webkit-text-stroke-width: 1.5px; }
}

/* ── Barra di lettura ── */
.topbar { position: sticky; }
.progress { position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; pointer-events: none; }
.progress span { display: block; height: 100%; background: var(--red); transform: scaleX(0); transform-origin: 0 50%; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }


/* ── Domande frequenti ── */
.faq { border-top: 2px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--line-2); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 16px; align-items: center;
  padding: 20px 0; font-size: 18px; font-weight: 600; transition: color 150ms var(--ease);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 32px; height: 32px; border-radius: 50%; background-color: var(--raised);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23111113' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-size: 16px; background-position: center; background-repeat: no-repeat;
  transition: transform 250ms var(--ease), background-color 150ms var(--ease);
}
.faq summary:hover { color: var(--red); }
.faq summary:focus-visible { outline-offset: 4px; }
.faq details[open] summary::after {
  transform: rotate(180deg); background-color: var(--red);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
}
@supports (interpolate-size: allow-keywords) {
  .faq { interpolate-size: allow-keywords; }
  .faq details::details-content { block-size: 0; overflow: hidden; transition: block-size 250ms var(--ease), content-visibility 250ms allow-discrete; }
  .faq details[open]::details-content { block-size: auto; }
}
@media (prefers-reduced-motion: reduce) { .faq details::details-content { transition: none; } }
.faq details p { margin: -4px 0 20px; color: var(--ink-2); font-size: 16px; max-width: 60ch; }

/* ── + Calendario nella tabella ── */
.games td.cal { text-align: right; width: 1%; white-space: nowrap; }
.cal-btn {
  display: inline-flex; align-items: center; height: 32px; padding: 0 12px; border-radius: 8px; border: 1px solid var(--line-2); background: #fff; color: var(--ink);
  font: 600 13px var(--font); cursor: pointer; transition: background-color 150ms var(--ease), color 150ms var(--ease), border-color 150ms var(--ease);
}
.cal-btn:hover { background: var(--red); border-color: var(--red); color: #fff; }

/* ── Biglietto da strappare ── */
.ticket__main { grid-column: 1; grid-row: 1; }
.ticket__stub, .ticket__reveal, .ticket__tear { grid-column: 2; grid-row: 1; }
.ticket__stub { position: relative; z-index: 1; transform-origin: 0 0; transition: transform 200ms var(--ease); }
.ticket__tear {
  position: relative; z-index: 2; margin: 0; padding: 0; border: 0; border-radius: 0 16px 16px 0;
  background: transparent; color: var(--ink-2); cursor: pointer;
}
.ticket__scissors {
  position: absolute; left: -12px; top: 50%; display: grid; place-items: center; width: 24px; height: 24px; margin-top: -12px;
  border-radius: 50%; background: #fff; transform: rotate(90deg); transition: color 150ms var(--ease);
}
.ticket__scissors .ico { width: 16px; height: 16px; }
.ticket:has(.ticket__tear:hover) .ticket__stub { transform: translate(3px, 2px) rotate(1.5deg); }
.ticket__tear:hover .ticket__scissors { color: var(--red); }
.ticket__tear:focus-visible { outline-offset: -4px; outline-color: var(--red); border-radius: 0 16px 16px 0; }
.ticket.is-torn .ticket__stub { opacity: 0; pointer-events: none; transform-origin: 0 100%; transition: none; }
.flake { position: absolute; z-index: 3; width: 4px; height: 3px; margin: -1px 0 0 -2px; border-radius: 1px; background: #fff; pointer-events: none; }
.ticket__reveal {
  display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 12px; padding: 24px 20px;
  color: #fff; border: 2px dashed rgba(255, 255, 255, 0.55); border-left: 0; border-radius: 0 16px 16px 0;
  animation: reveal-in 400ms 900ms var(--ease) both;
}
.ticket__reveal-t { margin: 0; font-size: 20px; line-height: 1.15; font-weight: 600; font-stretch: 112%; }
.btn--sm { height: 40px; padding: 0 16px; font-size: 15px; }
.ticket__mend {
  padding: 0; border: 0; background: none; cursor: pointer; font: 500 14px var(--font); color: rgba(255, 255, 255, 0.85);
  text-decoration: underline; text-underline-offset: 3px; transition: color 150ms var(--ease);
}
.ticket__mend:hover { color: #fff; }
@keyframes reveal-in { from { opacity: 0; transform: translateY(8px); } }
@media (max-width: 640px) {
  .ticket__stub, .ticket__reveal, .ticket__tear { grid-column: 1; grid-row: 2; }
  .ticket__tear { border-radius: 0 0 16px 16px; }
  .ticket__tear:focus-visible { border-radius: 0 0 16px 16px; }
  .ticket__scissors { left: 24px; top: -12px; margin-top: 0; transform: none; }
  .ticket.is-torn .ticket__stub { transform-origin: 100% 0; }
  .ticket__reveal {
    flex-direction: row; flex-wrap: wrap; align-items: center; gap: 12px 20px; padding: 20px;
    border: 2px dashed rgba(255, 255, 255, 0.55); border-top: 0; border-radius: 0 0 16px 16px;
  }
  .ticket__reveal-t { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .ticket__stub { transition: none; }
  .ticket__reveal { animation: none; }
}

/* ── Menu: pagina corrente ── */
.nav a[aria-current="page"]:not(.nav__cta) { color: var(--ink); background: var(--raised); }
.nav .nav__cta[aria-current="page"] { background: var(--red-ink); }

/* ── Pulsante secondario su fondo chiaro ── */
.btn--line { background: #fff; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-2); }
.btn--line:hover { background: var(--raised); color: var(--ink); }
.btn--line .ico { color: var(--red); }

/* ── Testata delle pagine interne ── */
.page-head { position: relative; overflow: hidden; padding: 80px 0 72px; background: var(--n-bg); color: var(--n-ink); }
.page-head__in { position: relative; z-index: 1; }
.page-head .label { color: var(--n-red); }
.page-head .court { opacity: 0.08; }
.page-head :focus-visible { outline-color: var(--n-red); }
.page-head h1 { max-width: 900px; color: var(--n-ink); }
.page-head .lead { max-width: 40rem; margin: 0; font-size: 20px; line-height: 1.5; color: var(--n-ink-2); }
.page-head .lead strong { color: #fff; }
.page-first { padding-top: 96px; }
.section--tight { padding: 64px 0 112px; }
.empty { margin: 0; padding: 48px 0; font-size: 17px; color: var(--muted); }

/* ── Testata di sezione con un'azione a destra ── */
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 40px; }
.sec-head h2 { margin-bottom: 0; }

/* ── Fascia "Condividi" ── */
.section--band { padding: 80px 0; }
.band { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 32px; }
.band h2 { margin-bottom: 12px; }
.band p:last-child { margin: 0; }
.band .actions { margin-top: 0; }

/* ── Schede delle notizie ── */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.news { min-width: 0; }
.news__in {
  display: flex; flex-direction: column; height: 100%; overflow: hidden; color: var(--ink); text-decoration: none;
  background: var(--card); border: 1px solid var(--line-2); border-radius: 16px;
  transition: border-color 150ms var(--ease), box-shadow 150ms var(--ease);
}
a.news__in:hover { color: var(--ink); border-color: rgba(17, 17, 19, 0.24); box-shadow: 0 8px 24px rgba(17, 17, 19, 0.06); }
.news__img { aspect-ratio: 16 / 9; background: var(--raised); }
.news__img img { display: block; width: 100%; height: 100%; object-fit: cover; }
.news__body { display: flex; flex: 1; flex-direction: column; padding: 24px; }
.news__meta { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; font-size: 14px; color: var(--muted); }
.news h3 { margin-bottom: 8px; }
.news__text { margin: 0; font-size: 16px; color: var(--ink-2); }
.news__more, .news__link { margin-top: auto; padding-top: 16px; font-size: 15px; font-weight: 600; color: var(--red); }
.news__more::after, .news__link::after, .album__link::after { content: " →"; }
#notizie .filters { margin: 0 0 24px; }

/* ── Album di foto ── */
.albums { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px 16px; }
.album { min-width: 0; }
.album__cover {
  position: relative; display: block; width: 100%; aspect-ratio: 4 / 3; padding: 0; overflow: hidden; cursor: zoom-in;
  background: var(--raised); border: 0; border-radius: 16px;
}
.album__cover img { display: block; width: 100%; height: 100%; object-fit: cover; transition: opacity 150ms var(--ease); }
.album__cover:hover img { opacity: 0.9; }
.album__n {
  position: absolute; left: 12px; bottom: 12px; padding: 4px 8px; border-radius: 6px;
  background: rgba(14, 14, 16, 0.72); color: #fff; font-size: 13px; font-weight: 600;
}
.album__body { padding-top: 12px; }
.album__body time { font-size: 14px; color: var(--muted); }
.album h3 { margin: 4px 0; }
.album__link { font-size: 15px; font-weight: 600; }

/* ── Galleria e foto ── */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.photo {
  position: relative; display: block; width: 100%; padding: 0; border: 0; border-radius: 12px; overflow: hidden;
  aspect-ratio: 4 / 3; background: var(--raised); cursor: zoom-in;
}
.photo img { display: block; width: 100%; height: 100%; object-fit: cover; transition: opacity 150ms var(--ease); }
.photo:hover img { opacity: 0.88; }

/* ── Pagina di un articolo ── */
.post { padding: 64px 0 112px; }
.post__head, .post__body, .post__foot { max-width: 760px; }
.post__back { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 600; color: var(--ink-2); text-decoration: none; }
.post__back:hover { color: var(--red); }
.post__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 32px 0 16px; font-size: 15px; color: var(--muted); }
.post h1 { font-size: clamp(36px, 4.4vw, 56px); line-height: 1.02; }
.post .lead { margin: 0; font-size: 20px; line-height: 1.5; color: var(--ink-2); }
.post__cover { max-width: 1000px; margin: 40px auto; }
.post__cover img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 16px; }
.post__body p { font-size: 18px; line-height: 1.7; }
.post__body h2 { margin-top: 40px; font-size: 28px; }
.post__album { max-width: 1000px; margin-top: 48px; }
.post__album h2 { font-size: 28px; }
.post__foot {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px;
  margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line-2);
}

/* ── Materiali per la stampa ── */
.press { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }
.press li { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line-2); }
.press__t { margin: 0; font-weight: 600; }
.press__m { margin: 0; font-size: 14px; color: var(--muted); }

/* ── Footer: le pagine del sito ── */
.footer__nav { display: flex; flex-wrap: wrap; gap: 8px 24px; margin: 0 0 24px; }
.footer__nav a { font-size: 15px; font-weight: 500; text-decoration: none; }
.footer__nav a:hover { text-decoration: underline; }

@media (max-width: 960px) {
  .cards, .albums { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .cards, .albums { grid-template-columns: 1fr; }
  .page-head { padding: 64px 0 56px; }
  .page-head .lead { font-size: 18px; }
  .page-first { padding-top: 64px; }
  .section--tight { padding: 40px 0 72px; }
  .section--band { padding: 64px 0; }
  .sec-head { flex-direction: column; align-items: flex-start; margin-bottom: 32px; }
  .band { align-items: flex-start; }
  .gallery { grid-template-columns: 1fr 1fr; }
  .post { padding: 40px 0 72px; }
  .post .lead { font-size: 18px; }
  .post__cover { margin: 32px auto; }
  .post__body p { font-size: 17px; }
}

/* Visore delle foto */
html:has(.lightbox[open]) { overflow: hidden; }
.lightbox {
  width: min(1100px, 100vw - 32px); max-width: none; max-height: none; padding: 0; border: 0; background: transparent; overflow: visible;
}
.lightbox[open] { animation: lb-in 220ms var(--ease); }
.lightbox::backdrop { background: rgba(14, 14, 16, 0.9); }
.lightbox figure { margin: 0; }
.lightbox img { display: block; max-width: 100%; max-height: calc(100dvh - 120px); margin: 0 auto; border-radius: 12px; }
.lightbox figcaption { margin-top: 12px; text-align: center; font-size: 14px; color: var(--n-ink-2); }
.lightbox .icon-btn { position: fixed; width: 44px; height: 44px; }
.lightbox__x { top: 16px; right: 16px; }
.lightbox__prev, .lightbox__next { top: 50%; margin-top: -22px; }
.lightbox__prev { left: 16px; }
.lightbox__next { right: 16px; }
.lightbox.is-single .lightbox__prev, .lightbox.is-single .lightbox__next { display: none; }
@keyframes lb-in { from { opacity: 0; transform: translateY(8px); } }
@media (max-width: 640px) {
  .lightbox__prev, .lightbox__next { top: auto; bottom: 16px; margin: 0; }
}

/* ── Locandina (solo in stampa) ── */
.poster { display: none; }

@media (max-width: 640px) {
  .games tr { grid-template-areas: "date date comp" "opp opp opp" ". a m" "cal cal cal"; }
  .games td.cal { grid-area: cal; text-align: left; width: auto; padding-top: 8px; }
  .games td.cal:empty { display: none; }
  .faq summary { font-size: 17px; }
}

@media print {
  @page { size: A4; margin: 14mm; }
  @page poster { size: A4; margin: 0; }
  html, body { background: #fff; }
  body.has-poster { page: poster; }
  body.has-poster > *:not(.poster) { display: none !important; }
  body:not(.has-poster) :is(.topbar, .nextbar, .toaster, .lightbox, .post__foot, .footer__nav, .sign) { display: none !important; }
  body.has-poster .poster {
    display: flex !important; flex-direction: column; box-sizing: border-box; width: 210mm; height: 297mm; padding: 18mm;
    background: #e2001a; color: #fff; -webkit-print-color-adjust: exact; print-color-adjust: exact; font-family: var(--font);
  }
  .poster__k { font-size: 16pt; font-weight: 600; margin: 0 0 10mm; }
  .poster__title { font-size: 64pt; line-height: 0.92; font-weight: 600; font-stretch: 125%; letter-spacing: -0.04em; margin: 0 0 10mm; }
  .poster__match { font-size: 30pt; line-height: 1.05; font-weight: 600; font-stretch: 112%; letter-spacing: -0.02em; margin: 0 0 4mm; }
  .poster__match span { opacity: 0.75; font-size: 0.6em; }
  .poster__when { font-size: 15pt; margin: 0 0 auto; }
  .poster__row { display: flex; justify-content: space-between; align-items: flex-end; gap: 12mm; padding-top: 10mm; border-top: 1px solid rgba(255, 255, 255, 0.4); }
  .poster__prices p { margin: 0 0 2mm; font-size: 16pt; }
  .poster__prices b { font-size: 40pt; font-weight: 600; font-stretch: 112%; letter-spacing: -0.03em; margin-right: 2mm; }
  .poster__prices .poster__small { font-size: 11pt; opacity: 0.85; margin-top: 4mm; }
  .poster__qr { width: 62mm; text-align: center; }
  .poster__qr > div { background: #fff; padding: 5mm; border-radius: 4mm; }
  .poster__qr svg { display: block; width: 100%; height: auto; }
  .poster__qr p { font-size: 10pt; margin: 3mm 0 0; }
  .poster__url { font-size: 11pt; margin: 8mm 0 0; opacity: 0.85; }
}
.wrap > .h3-line:first-child { margin-top: 0; }

/* ── Home: il tabellone del prossimo appuntamento ── */
.stage {
  position: relative; display: flex; flex-direction: column; overflow: hidden;
  min-height: calc(100svh - 64px); background: var(--n-bg); color: var(--n-ink);
}
.court--stage { opacity: 0.08; }
.stage__in { position: relative; z-index: 1; flex: 1; display: flex; flex-direction: column; justify-content: center; padding: 56px 0 48px; }
.stage .label { color: var(--n-red); }
.stage h1 { max-width: 880px; margin-bottom: 32px; font-size: clamp(32px, 3.6vw, 48px); line-height: 1.05; color: var(--n-ink); }
.stage .actions { margin-top: 24px; }
.stage .audiences { border-top-color: var(--n-line); }
.stage .aud + .aud { border-left-color: var(--n-line); }
.stage .aud__t { color: var(--n-ink-2); }
.stage .aud__k::after { color: var(--n-red); }

.board { padding: 20px 32px 24px; background: var(--n-card); border: 1px solid var(--n-line); border-radius: 20px; }
.board__top {
  display: flex; justify-content: space-between; gap: 12px; padding-bottom: 16px; border-bottom: 1px solid var(--n-line);
  font-size: 14px; color: var(--n-muted);
}
.board__tag { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--n-ink); }
.board__tag::before { content: ""; width: 16px; height: 3px; border-radius: 2px; background: var(--n-red); }
.board__teams { display: grid; grid-template-columns: 1fr auto 1fr; align-items: end; gap: 24px; padding: 20px 0 4px; }
.board__role { display: block; margin-bottom: 4px; font-size: 13px; color: var(--n-muted); }
.board__team { display: block; font-size: clamp(22px, 2.6vw, 36px); line-height: 1.05; font-weight: 600; font-stretch: 112%; letter-spacing: -0.02em; color: var(--n-ink); }
.board__side--away { text-align: right; }
.board__vs { padding-bottom: 4px; font-size: 18px; font-weight: 600; color: var(--n-muted); }
.board__clock { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; padding: 12px 0 4px; }
.board__unit { flex: 1; min-width: 0; text-align: center; }
.board__unit b {
  display: block; font-size: clamp(52px, 10vw, 144px); line-height: 0.9; font-weight: 600; font-stretch: 125%;
  letter-spacing: -0.04em; font-variant-numeric: tabular-nums; color: #fff;
}
.board__unit--s b { color: var(--n-red); }
.board__unit span { display: block; margin-top: 8px; font-size: 14px; color: var(--n-muted); }
.board__clock i { font-style: normal; font-size: clamp(36px, 7vw, 104px); line-height: 0.9; font-weight: 600; color: rgba(244, 244, 245, 0.22); }
.board__live { margin: 0; padding: 24px 0 12px; text-align: center; font-size: clamp(32px, 5vw, 64px); line-height: 1; font-weight: 600; font-stretch: 112%; color: #fff; }
.board__when { margin: 16px 0 0; padding-top: 16px; border-top: 1px solid var(--n-line); text-align: center; font-size: 16px; color: var(--n-ink-2); }

/* ── Home: la copertina dopo un evento ── */
.cover { position: relative; display: flex; align-items: flex-end; overflow: hidden; min-height: calc(100svh - 64px); background: var(--n-bg); color: #fff; }
.cover__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(14, 14, 16, 0.86), rgba(14, 14, 16, 0.2) 60%, rgba(14, 14, 16, 0)); }
.cover__in { position: relative; z-index: 1; padding: 96px 0 64px; }
.cover .label { color: #fff; }
.cover h1 { max-width: 900px; color: #fff; }
.cover .lead { max-width: 40rem; font-size: 20px; line-height: 1.5; color: rgba(255, 255, 255, 0.9); }

/* ── Home: il biglietto da strappare, in grande ── */
.tear-band__in { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 64px; align-items: center; }
.tear-band h2 { margin-bottom: 16px; }
.tear-band p { max-width: 30rem; margin: 0; }
.ticket--big { grid-template-columns: 1fr 180px; width: 100%; max-width: 680px; margin-left: auto; transform: rotate(-2.5deg); }
.ticket--big .ticket__band { padding: 16px 28px; font-size: 16px; }
.ticket--big .ticket__body { padding: 28px; }
.ticket--big .ticket__home { font-size: 20px; }
.ticket--big .ticket__away { font-size: clamp(32px, 3.6vw, 48px); }
.ticket--big .ticket__away span { font-size: 20px; }
.ticket--big .ticket__grid dd { font-size: 18px; }
.ticket--big .countdown b { font-size: 44px; }

@media (max-width: 960px) {
  .tear-band__in { grid-template-columns: 1fr; gap: 48px; }
  .ticket--big { margin: 0 auto; transform: rotate(-2deg); }
}
@media (max-width: 640px) {
  .stage { min-height: 0; }
  .stage__in { padding: 40px 0 32px; }
  .stage h1 { margin-bottom: 24px; font-size: 30px; }
  .board { padding: 16px 16px 20px; border-radius: 16px; }
  .board__top { font-size: 13px; }
  .board__teams { gap: 12px; padding-top: 16px; }
  .board__team { font-size: 20px; }
  .board__vs { font-size: 15px; }
  .board__clock { gap: 4px; }
  .board__clock i { display: none; }
  .board__unit b { font-size: 48px; }
  .board__unit span { font-size: 12px; }
  .board__when { font-size: 14px; }
  .cover { min-height: 80svh; }
  .cover__in { padding: 64px 0 40px; }
  .cover .lead { font-size: 18px; }
  .ticket--big { grid-template-columns: 1fr; transform: rotate(-1.5deg); }
  .ticket--big .ticket__away { font-size: 32px; }
  .ticket--big .countdown b { font-size: 32px; }
}
/* Il biglietto resta carta bianca anche dentro la fascia rossa */
.tear-band .ticket__home, .tear-band .ticket__school { color: var(--ink-2); }
.tear-band .ticket__away { color: var(--ink); }
.tear-band .ticket__k { color: var(--muted); }
.tear-band .countdown .done { color: var(--red); }
.section--red .btn--white { color: var(--red); }
.section--red .btn--white:hover { color: var(--red-ink); }

/* ── Movimento (solo con la classe .motion, cioè se non è chiesto di ridurlo) ── */
@keyframes rise { from { opacity: 0; transform: translateY(12px); } }
@keyframes board-in { from { opacity: 0; transform: translateY(24px) scale(0.98); } }
@keyframes side-in { from { opacity: 0; transform: translateX(-16px); } }
@keyframes side-in-r { from { opacity: 0; transform: translateX(16px); } }
@keyframes pop { from { opacity: 0; transform: scale(0.9); } }

/* Entrata del tabellone, come la presentazione delle squadre */
.motion .stage__in > .label { animation: rise 700ms var(--ease) both; }
.motion .stage h1 { animation: rise 700ms 80ms var(--ease) both; }
.motion .board { animation: board-in 600ms 160ms var(--ease) both; }
.motion .board__side { animation: side-in 500ms 360ms var(--ease) both; }
.motion .board__side--away { animation-name: side-in-r; }
.motion .board__vs { animation: pop 400ms 520ms var(--ease) both; }
.motion .stage .actions { animation: rise 700ms 560ms var(--ease) both; }
.motion .stage .aud { animation: rise 600ms var(--ease) both; }
.motion .stage .aud:nth-child(1) { animation-delay: 700ms; }
.motion .stage .aud:nth-child(2) { animation-delay: 770ms; }
.motion .stage .aud:nth-child(3) { animation-delay: 840ms; }
.motion .stage .aud:nth-child(4) { animation-delay: 910ms; }
.board__unit b { display: block; }

/* Testate delle pagine interne e copertina */
.motion .page-head__in > *, .motion .cover__in > * { animation: rise 700ms var(--ease) both; }
.motion .page-head__in > :nth-child(2), .motion .cover__in > :nth-child(2) { animation-delay: 80ms; }
.motion .page-head__in > :nth-child(3), .motion .cover__in > :nth-child(3) { animation-delay: 160ms; }
.motion .cover__in > :nth-child(4) { animation-delay: 240ms; }

/* Comparsa allo scorrimento */
.motion .rv { transition: opacity 500ms var(--ease) var(--d, 0ms), transform 500ms var(--ease) var(--d, 0ms); }
.motion .rv:not(.is-in) { opacity: 0; transform: translateY(12px); }
.motion .ticket--big.rv { transition-duration: 700ms, 900ms; }
.motion .ticket--big.rv:not(.is-in) { transform: translateY(56px) rotate(-9deg); }
/* La grande data del Match Day si accende quando arriva */
.motion .bigdate.rv { transition: opacity 600ms var(--ease), transform 700ms var(--ease), color 1200ms var(--ease) 300ms; }
.motion .section--night .bigdate.is-in { color: var(--n-red); }

/* Nastro con le prossime partite */
.ribbon { overflow: hidden; background: #fff; color: var(--ink); border-bottom: 1px solid var(--line); }
.ribbon__track { display: flex; width: max-content; }
.ribbon__group { display: flex; flex: none; }
.ribbon__item { display: inline-flex; align-items: center; gap: 8px; padding: 16px 32px 16px 0; font-size: 15px; white-space: nowrap; color: var(--ink-2); }
.ribbon__item::before {
  content: ""; flex: none; width: 14px; height: 14px; margin-right: 8px; border-radius: 50%; background-color: var(--red);
  background-image: linear-gradient(90deg, transparent 45%, #fff 45% 55%, transparent 55%), linear-gradient(0deg, transparent 45%, #fff 45% 55%, transparent 55%);
}
.ribbon__item b { font-weight: 600; color: var(--ink); }
.ribbon__item.is-ours, .ribbon__item.is-ours b { color: var(--red); }
.ribbon__track.is-moving { animation: ribbon var(--dur, 50s) linear infinite; }
.ribbon:hover .ribbon__track, .ribbon:focus-within .ribbon__track { animation-play-state: paused; }
@keyframes ribbon { to { transform: translateX(-50%); } }
.ribbon__track:not(.is-moving) { overflow-x: auto; width: auto; padding-left: 24px; }

/* Piccole risposte al passaggio del mouse */
.brand__ball { transition: transform 500ms var(--ease); }
.brand:hover .brand__ball { transform: rotate(180deg); }
.btn .ico:last-child:not(:first-child) { transition: transform 150ms var(--ease); }
.btn:hover .ico:last-child:not(:first-child) { transform: translateX(3px); }
.news__img { overflow: hidden; }
.news__img img { transition: transform 500ms var(--ease); }
a.news__in:hover .news__img img { transform: scale(1.04); }

@media print { .rv { opacity: 1 !important; transform: none !important; } }
/* Link alla biglietteria ufficiale nel calendario */
a.cal-btn { display: inline-flex; align-items: center; text-decoration: none; }
.cal-btn--buy { margin-right: 8px; background: var(--red); border-color: var(--red); color: #fff; }
.cal-btn--buy:hover { background: var(--red-ink); border-color: var(--red-ink); color: #fff; }
.option__cta { margin-top: 20px; }

/* ── Percorso: dove sono e come proseguire ── */
/* "Home / Pagina" sta dove in home c'è l'etichetta della stagione, con lo stesso segno rosso */
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 16px; font-size: 15px; font-weight: 600; color: var(--n-red); }
.crumbs::before { content: ""; width: 20px; height: 3px; border-radius: 2px; background: currentColor; }
.crumbs a { color: var(--n-ink-2); text-decoration: none; }
.crumbs a:hover { color: #fff; text-decoration: underline; }
.crumbs span[aria-hidden] { color: var(--n-muted); font-weight: 400; }

/* Pagina precedente e successiva, in fondo a ogni pagina interna */
.pager-band { border-top: 1px solid var(--line); }
.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding: 48px 0 64px; }
.pager__link {
  display: flex; flex-direction: column; gap: 4px; padding: 20px 24px; color: var(--ink); text-decoration: none;
  border: 1px solid var(--line-2); border-radius: 16px; transition: border-color 150ms var(--ease), background-color 150ms var(--ease);
}
.pager__link:hover { color: var(--ink); border-color: var(--red); background: var(--red-soft); }
.pager__link span { font-size: 14px; color: var(--muted); }
.pager__link span::before { content: "← "; }
.pager__link b { font-size: 24px; font-weight: 600; font-stretch: 112%; letter-spacing: -0.01em; }
.pager__link--next { grid-column: 2; text-align: right; }
.pager__link--next span::before { content: none; }
.pager__link--next span::after { content: " →"; }

/* Con "Home" nel menu, il nome dell'istituto accanto al logo lascia spazio prima */
@media (max-width: 1100px) { .brand__sub { display: none; } }
@media (max-width: 640px) {
  .pager { grid-template-columns: 1fr; padding: 32px 0 48px; }
  .pager__link--next { grid-column: 1; }
  .pager__link b { font-size: 20px; }
}
/* Il biglietto ruotato non deve far scorrere la pagina di lato (la caduta del tagliando resta visibile in basso) */
.tear-band { overflow-x: clip; }
/* Articolo senza copertina: il testo non si attacca al sottotitolo */
.post__head + .post__body { margin-top: 40px; }
