/* Polis Rocca Imperiale — calendario 2026/27, con lo stile della presentazione dello stemma */
:root {
  --navy: #0F283D;
  --ink: #0B1D2E;
  --cream: #F4F1EA;
  --paper: #EAE5DA;
  --yellow: #F6D728;
  --gold: #D9AC1A;
  --blue: #3A77B2;
  --mute: #5B6774;
  --mute-dark: #9FB2C6;
  --slab: "Alfa Slab One", "Rockwell Extra Bold", Georgia, serif;
  --sans: "Oswald", "Arial Narrow", Arial, sans-serif;
  --gutter: clamp(1rem, 4vw, 4.5rem);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  background: var(--ink); color: var(--cream);
  font-family: var(--sans); font-size: clamp(1.05rem, .95rem + .4vw, 1.3rem); font-weight: 300;
  line-height: 1.5; letter-spacing: .01em; -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ol { list-style: none; }

.display { font-family: var(--slab); font-weight: 400; letter-spacing: -.01em; line-height: .95; }
.rule { display: block; flex: 1; height: .5em; border-top: .09em solid var(--gold); border-bottom: .09em solid var(--gold); min-width: 1em; }
.eyebrow { font-size: .8rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); }

/* barra di avanzamento e intestazione: il colore segue il fondo della sezione */
.progress { position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 60; pointer-events: none; }
.progress span { display: block; height: 100%; background: var(--yellow); transform-origin: 0 50%; transform: scaleX(0); }
.topbar {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.1rem var(--gutter); color: var(--cream); transition: color .35s;
}
.topbar.on-light { color: var(--navy); }
.brand { display: flex; align-items: center; gap: .8rem; font-size: .85rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; }
.brand img { width: 34px; height: auto; }
.topnav { display: flex; gap: 2rem; font-size: .82rem; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; }
.topnav a { opacity: .75; transition: opacity .3s; }
.topnav a:hover { opacity: 1; }

/* 1. PROSSIMA PARTITA */
.next {
  position: relative; min-height: 100vh; min-height: 100svh; overflow: hidden;
  display: flex; align-items: center; justify-content: center; text-align: center;
  padding: 6rem var(--gutter) 4rem;
  background: radial-gradient(ellipse 70% 60% at 50% 45%, #163552 0%, var(--navy) 55%, var(--ink) 100%);
}
.next-inner { width: 100%; max-width: 1400px; display: flex; flex-direction: column; align-items: center; }
.next-eyebrow { margin-bottom: clamp(.8rem, 2.5vh, 1.6rem); }
.next-label { font-weight: 600; font-size: clamp(.9rem, .8rem + .4vw, 1.2rem); letter-spacing: .3em; text-transform: uppercase; color: var(--mute-dark); }
.next-teams { width: 100%; margin: clamp(.6rem, 2vh, 1.4rem) 0; font-weight: 400; }
.team { display: block; overflow: hidden; padding-block: .04em; }
.team .t { display: inline-block; white-space: nowrap; font-family: var(--slab); line-height: 1; text-transform: uppercase; font-size: clamp(3rem, 14vw, 13rem); }
.team .t.polis { color: var(--yellow); }
.vs { display: flex; align-items: center; gap: 1.2rem; width: min(100%, 36rem); margin: .2em auto; font-size: clamp(1rem, .8rem + .8vw, 1.6rem); }
.vs-t { font-weight: 600; letter-spacing: .4em; padding-left: .4em; text-transform: uppercase; color: var(--gold); }
.next-meta { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: .4rem 1.2rem; font-size: clamp(1rem, .9rem + .5vw, 1.5rem); font-weight: 400; color: var(--cream); }
.next-meta .dot { color: var(--gold); }
.count { display: flex; gap: clamp(1rem, 4vw, 3.5rem); margin-top: clamp(1.4rem, 4vh, 3rem); font-variant-numeric: tabular-nums; }
.count div { display: flex; flex-direction: column; align-items: center; }
.count b { font-weight: 600; font-size: clamp(2rem, 1.4rem + 3vw, 4.4rem); line-height: 1; letter-spacing: .02em; }
.count span { margin-top: .4rem; font-size: .75rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--mute-dark); }
.count.live b { color: var(--yellow); }
.scroll-hint { position: absolute !important; left: 50%; bottom: 1.6rem; transform: translateX(-50%); font-size: .72rem; font-weight: 600; letter-spacing: .3em; text-transform: uppercase; color: var(--mute-dark); }
.tag { display: inline-block; font-size: .7em; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; padding: .25em .6em; border-radius: 4px; line-height: 1.2; vertical-align: .1em; }
.tag.c { background: var(--yellow); color: var(--navy); }
.tag.t { background: var(--blue); color: var(--cream); }
.tag.rinv { background: none; box-shadow: inset 0 0 0 1.5px currentColor; }

/* 2. AGGIUNGI AL CALENDARIO */
.subscribe { position: relative; overflow: hidden; min-height: 100vh; min-height: 100svh; background: var(--yellow); color: var(--navy); display: flex; align-items: center; padding: 6rem var(--gutter) 3rem; }
.subscribe .eyebrow { color: #6B5B0A; }
.sub-inner { width: 100%; max-width: 1400px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 6vw, 7rem); align-items: center; }
.sub-copy .display { font-size: clamp(2.6rem, 5.5vw, 6rem); margin: 1rem 0 1.4rem; }
.sub-copy .display .hl { display: block; color: var(--navy); -webkit-text-stroke: 0; }
.sub-p { max-width: 30rem; font-weight: 400; color: #3D3A1E; }
.sub-actions { display: flex; flex-direction: column; gap: .9rem; }
.cal-btn {
  display: flex; align-items: center; gap: 1.1rem; padding: 1.1rem 1.3rem; border-radius: 12px;
  background: var(--navy); color: var(--cream); box-shadow: 0 18px 40px -22px rgba(15, 40, 61, .7);
  transition: background .25s;
}
.cal-btn:hover { background: #15334d; }
.cal-btn .arr { transition: translate .25s; }
.cal-btn:hover .arr { translate: 5px 0; }
.cal-btn:focus-visible, .ical button:focus-visible { outline: 3px solid var(--navy); outline-offset: 3px; }
.cal-btn .ic { width: 2.2rem; height: 2.2rem; flex: none; color: var(--yellow); }
.cal-btn .t { display: flex; flex-direction: column; min-width: 0; font-weight: 500; font-size: 1.15em; letter-spacing: .02em; line-height: 1.2; }
.cal-btn small { margin-top: .25rem; font-size: .72em; font-weight: 300; color: var(--mute-dark); letter-spacing: .03em; }
.cal-btn .arr { margin-left: auto; font-size: 1.4em; color: var(--yellow); }
.ical { margin-top: .6rem; }
.ical label { display: block; font-size: .85em; font-weight: 400; color: #3D3A1E; margin-bottom: .5rem; }
.ical-row { display: flex; gap: .5rem; }
.ical input { flex: 1; min-width: 0; font: .8rem/1.2 ui-monospace, Menlo, Consolas, monospace; padding: .8rem; border-radius: 10px; border: 1px solid rgba(15, 40, 61, .25); background: rgba(255, 255, 255, .55); color: var(--navy); }
.ical button { flex: none; padding: 0 1.3rem; border-radius: 10px; border: 0; background: var(--navy); color: var(--cream); font: 600 .85rem var(--sans); letter-spacing: .14em; text-transform: uppercase; cursor: pointer; }
.ok { min-height: 1.4em; margin-top: .4rem; font-size: .85em; font-weight: 500; }

/* LA CLASSIFICA (dalla LND): a sinistra il titolo e la posizione della Polis, a destra la tabella.
   Le righe sono a griglia (non a tabella) perché si possano girare come le tessere del tabellone;
   i ruoli ARIA tengono la tabella leggibile per chi usa un lettore di schermo. */
.standing { position: relative; overflow: hidden; min-height: 100vh; min-height: 100svh; background: var(--cream); color: var(--navy); display: flex; align-items: center; padding: 5.5rem var(--gutter) 2.5rem; }
.standing-inner { width: 100%; max-width: 1300px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, .62fr) minmax(0, 1.7fr); grid-template-areas: "head box" "head foot"; gap: 1.2rem clamp(2rem, 5vw, 6rem); align-items: start; }
.standing-head { grid-area: head; align-self: center; display: flex; flex-direction: column; gap: clamp(1.4rem, 4vh, 3rem); }
.standing-copy .eyebrow { color: #8A6A0C; }
.standing-copy .display { font-size: clamp(2.6rem, 5vw, 5.6rem); margin: .8rem 0 1rem; }
.standing-sub { font-size: .85em; font-weight: 400; color: var(--mute); max-width: 26rem; }
.standing-sub b { font-weight: 600; color: var(--navy); }
.standing-sub .nota { display: block; margin-top: .4rem; color: #8A6A0C; }
/* la posizione della Polis in grande, con lo scudo che arriva come un timbro */
.standing-polis { position: relative; display: flex; align-items: flex-end; gap: .4rem; }
.standing-polis[hidden] { display: none; }
.standing-scudo { position: absolute; left: -.6rem; top: -1.6rem; width: clamp(3rem, 5vw, 4.6rem); height: auto; transform: rotate(-12deg); }
.standing-num { display: flex; align-items: flex-start; font-family: var(--slab); line-height: .8; color: var(--navy); padding-left: clamp(1.6rem, 2.6vw, 2.6rem); font-variant-numeric: tabular-nums; }
.standing-num b { font-weight: 400; font-size: clamp(5rem, 11vw, 10rem); }
.standing-num i { font-style: normal; font-size: clamp(2rem, 4vw, 3.6rem); color: var(--gold); margin-left: .05em; }
.standing-what { display: flex; flex-direction: column; padding-bottom: .5rem; line-height: 1.15; }
.standing-what b { font-family: var(--slab); font-weight: 400; font-size: clamp(1.3rem, 2.2vw, 2rem); text-transform: uppercase; }
.standing-what small { font-size: .85em; font-weight: 500; color: var(--mute); }

.standing-box { grid-area: box; }
.standing [hidden] { display: none !important; }        /* senza classifica: niente tabella né pulsante */
.standings { display: block; width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; perspective: 900px; }
.standings thead, .standings tbody { display: block; }
.standings tr {
  --cols: 2.4rem minmax(0, 1fr) 2.9rem repeat(7, 2.35rem);
  display: grid; grid-template-columns: var(--cols); align-items: center; gap: .2rem;
  padding: clamp(.2rem, .75vh, .45rem) .6rem; border-bottom: 1px solid rgba(15, 40, 61, .12);
}
.standings thead tr { border-bottom: 2px solid var(--navy); padding-block: .3rem; }
.standings th { font-size: .72em; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--mute); text-align: center; }
.standings th.c-sq { text-align: left; }
.standings abbr { text-decoration: none; cursor: help; }
.standings td { text-align: center; font-weight: 400; }
.standings td.c-pos { font-family: var(--slab); color: var(--gold); font-size: 1.15em; line-height: 1; }
.standings td.c-sq { text-align: left; min-width: 0; display: flex; align-items: center; gap: .45rem; font-weight: 500; }
.standings td.c-sq span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.standings td.c-sq small { flex: none; font-size: .7em; font-weight: 600; letter-spacing: .06em; color: #A23B2A; }
.standings td.c-pt b { font-family: var(--slab); font-weight: 400; font-size: 1.15em; }
.standings td.c-gol { color: var(--mute); }
.standings td.dr-piu { color: var(--navy); font-weight: 500; }
.standings tbody tr.polis { background: rgba(246, 215, 40, .55); box-shadow: inset 5px 0 0 var(--gold); border-radius: 6px; }
.standings tbody tr.polis td.c-sq { font-weight: 700; }
.standings tbody tr.polis td.c-pos { color: var(--navy); }
.standings .mini-scudo { flex: none; width: 1.25em; height: auto; }
.standings tbody tr.vuota td { color: rgba(15, 40, 61, .25); }
.standing-none { padding: 1.4rem 0; font-weight: 400; }
.standing-none a { font-weight: 600; text-decoration: underline; text-underline-offset: .2em; }
.standing-foot { grid-area: foot; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .6rem 1.4rem; }
.standing-source { font-size: .72em; font-weight: 400; color: var(--mute); }
.standing-source a { text-decoration: underline; text-underline-offset: .2em; }
.standing-switch { display: none; padding: .55rem 1rem; border-radius: 999px; border: 1.5px solid var(--navy); background: transparent; color: var(--navy); font: 600 .72rem var(--sans); letter-spacing: .14em; text-transform: uppercase; cursor: pointer; }
.standing-switch[aria-pressed="true"] { background: var(--navy); color: var(--cream); }
.standing-switch:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

/* schermi medi: titolo e posizione sopra la tabella, così i nomi delle squadre hanno spazio */
@media (min-width: 768px) and (max-width: 1199px) {
  .standing-inner { grid-template-columns: 1fr; grid-template-areas: "head" "box" "foot"; max-width: 900px; gap: 1rem; }
  .standing-head { flex-direction: row; align-items: flex-end; justify-content: space-between; }
  .standing-copy .display { font-size: clamp(2.4rem, 5.4vw, 3.6rem); margin: .5rem 0 .6rem; }
  .standing-num b { font-size: clamp(4rem, 9vw, 6rem); }
}

/* 3. LE GIORNATE */
.days { position: relative; background: var(--cream); color: var(--navy); padding: 5.5rem var(--gutter) 2.5rem; }
.days-inner { width: 100%; max-width: 1100px; margin: 0 auto; }
.days-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .8rem 2rem; margin-bottom: 1.2rem; }
.days-head .eyebrow { color: #8A6A0C; width: 100%; }
.days-tabs { position: relative; display: none; gap: 1.6rem; font-family: var(--slab); font-size: clamp(1.8rem, 3.6vw, 3.2rem); line-height: 1; text-transform: uppercase; }
.tab { opacity: .25; }
.tab-bar { position: absolute; left: 0; bottom: -.3rem; height: 4px; width: 0; background: var(--gold); }
.days-legend { font-size: .8em; font-weight: 400; color: var(--mute); }
.days-legend .tag { margin: 0 .3rem 0 .6rem; }
.panel-title { font-family: var(--slab); font-weight: 400; font-size: clamp(1.8rem, 3.6vw, 3.2rem); text-transform: uppercase; margin: 1.4rem 0 .6rem; }
.panel li {
  display: grid; grid-template-columns: 3.2rem minmax(0, 1fr) auto 6.5rem; align-items: center; gap: 1rem;
  padding: .55rem .6rem; border-bottom: 1px solid rgba(15, 40, 61, .12); font-variant-numeric: tabular-nums;
}
.panel li:first-child { border-top: 1px solid rgba(15, 40, 61, .12); }
.gg { font-family: var(--slab); font-size: 1.35em; color: var(--gold); line-height: 1; }
.m { min-width: 0; display: flex; flex-direction: column; line-height: 1.2; }
.m b { font-weight: 500; font-size: 1em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.m b .polis { color: var(--blue); font-weight: 600; }
.m small { font-size: .78em; color: var(--mute); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.when { text-align: right; line-height: 1.15; }
.when b { display: block; font-weight: 600; font-size: 1.05em; }
.when small { font-size: .78em; color: var(--mute); }
.panel li.past { opacity: .38; }
.panel li.past.giocata { opacity: 1; }

/* il risultato: «4–0» e l'esito in lettera (V/N/P), così si legge anche senza i colori */
.ris { display: inline-flex; align-items: center; gap: .4em; padding: .22em .3em .22em .55em; border-radius: 5px; color: var(--navy); line-height: 1; white-space: nowrap; }
.ris b { font-family: var(--slab); font-weight: 400; font-size: 1.05em; letter-spacing: .02em; }
.ris i { font-style: normal; font-weight: 700; font-size: .68em; letter-spacing: .08em; padding: .2em .4em; border-radius: 3px; background: var(--navy); color: var(--cream); }
.ris.v { background: var(--yellow); }                          /* vittoria: giallo */
.ris.n { background: #DAD6CC; }                                /* pareggio: grigio */
.ris.n i { background: #5D6670; }
.ris.p { background: transparent; box-shadow: inset 0 0 0 2px var(--navy); }   /* sconfitta: contorno blu notte */
.ris.p i { background: transparent; color: var(--navy); box-shadow: inset 0 0 0 1.5px var(--navy); }
.days-legend .ris { margin: 0 .3rem 0 .6rem; font-size: .9em; }
.days-legend .ris i { font-size: .8em; }
/* i marcatori della Polis, sotto le squadre */
.m small.gol { color: var(--navy); font-weight: 500; }
.m small .rec { color: #8A6A0C; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.pallone { display: inline-block; width: .8em; height: .8em; margin-right: .3em; vertical-align: -.05em; border-radius: 50%; background: radial-gradient(circle at 50% 50%, var(--navy) 0 22%, transparent 24%), var(--cream); box-shadow: inset 0 0 0 1.5px var(--navy); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.panel li.is-next { background: rgba(246, 215, 40, .35); box-shadow: inset 5px 0 0 var(--gold); border-radius: 6px; }

/* 4. CHIUSURA */
.closing {
  min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: clamp(1rem, 3vh, 2rem);
  padding: 5rem var(--gutter) 3rem; text-align: center;
  background: radial-gradient(ellipse 60% 55% at 50% 42%, #163552 0%, var(--navy) 55%, var(--ink) 100%);
}
/* niente ombra (drop-shadow): sui telefoni, durante l'entrata animata, la disegnavano dentro un
   riquadro scuro visibile sullo sfondo */
.closing-crest { width: min(62vw, 46vh, 420px); height: auto; }
.closing-line { font-weight: 600; letter-spacing: .3em; text-transform: uppercase; font-size: clamp(.8rem, .7rem + .4vw, 1.1rem); color: var(--mute-dark); padding-left: .3em; }
.source { max-width: 34rem; font-size: .8rem; color: #7F93A8; }

/* lo stemma principale apre la pagina: è sempre lui il protagonista */
.next-crest { width: auto; height: clamp(72px, 12vh, 150px); margin-bottom: clamp(.8rem, 2.5vh, 1.8rem); filter: drop-shadow(0 18px 34px rgba(0, 0, 0, .35)); }

/* l'apertura resta nascosta finché non ci sono i caratteri (al massimo 4 secondi, anche se lo script non parte) */
.js .next-inner { visibility: hidden; animation: reveal 0s 4s forwards; }
.static .next-inner { visibility: visible; }
@keyframes reveal { to { visibility: visible; } }

/* con il movimento: sezioni bloccate e pannelli sovrapposti */
.motion .next-inner > *, .motion .count { will-change: transform, opacity; }
.motion .days { height: 100vh; height: 100svh; overflow: hidden; padding-bottom: 1.2rem; }
.motion .days-inner { height: 100%; display: flex; flex-direction: column; }
.motion .days-tabs { display: flex; }
.motion .panel-title { display: none; }
.motion .panels { position: relative; flex: 1; }
.motion .panel { position: absolute; inset: 0; }
.motion .panel ol { height: 100%; display: grid; grid-template-rows: repeat(13, minmax(0, 1fr)); }
.motion .panel li { padding-block: 0; }

@media (max-width: 767px) {
  .topnav { display: none; }
  .brand span { display: none; }
  .next { padding-top: 5rem; }
  .team .t { font-size: 18vw; }
  .vs { gap: .8rem; }
  .count { gap: 1.1rem; }
  .count span { font-size: .62rem; letter-spacing: .16em; }
  .sub-inner { grid-template-columns: 1fr; gap: 1.4rem; }
  .subscribe { padding-top: 5rem; }
  .sub-copy .display { font-size: clamp(2.2rem, 10vw, 3rem); margin: .6rem 0 .8rem; }
  .sub-p { font-size: .95rem; }
  .cal-btn { padding: .85rem 1rem; gap: .9rem; }
  .cal-btn .t { font-size: 1rem; }
  .ical label { font-size: .8rem; }
  .days { padding-top: 4.6rem; font-size: .95rem; }
  .days-head { margin-bottom: .6rem; gap: .4rem 1rem; }
  .days-legend { font-size: .72rem; }
  .days-tabs { font-size: 1.7rem; gap: 1.1rem; }
  .panel li { grid-template-columns: 2.1rem minmax(0, 1fr) auto 3.6rem; gap: .55rem; padding-inline: .3rem; }
  .gg { font-size: 1.05em; }
  .m b { font-size: .88rem; }
  .m small, .when small { font-size: .68rem; }
  .when b { font-size: .88rem; }
  .tag { font-size: .6rem; padding: .2em .45em; }
  .ris { font-size: .78rem; gap: .3em; padding-left: .4em; }
  /* classifica: titolo e posizione in alto sulla stessa riga, sotto la tabella; i gol con un tocco */
  .standing { padding-top: 6.2rem; padding-bottom: 1rem; font-size: .9rem; align-items: flex-start; }
  .standing-inner { grid-template-columns: 1fr; grid-template-areas: "head" "box" "foot"; gap: .7rem; }
  .standing-head { flex-direction: row; align-items: flex-end; justify-content: space-between; gap: 1rem; }
  .standing-copy .display { font-size: clamp(2rem, 9vw, 2.6rem); margin: .3rem 0 .4rem; }
  .standing-sub { font-size: .72rem; }
  .standing-polis { flex: none; flex-direction: column; align-items: flex-end; gap: 0; }
  .standing-scudo { left: auto; right: 2.6rem; top: -.5rem; width: 2.2rem; }
  .standing-num { padding-left: 0; }
  .standing-num b { font-size: 3.6rem; }
  .standing-num i { font-size: 1.6rem; }
  .standing-what { align-items: flex-end; padding-bottom: 0; }
  .standing-what b { font-size: .95rem; }
  .standing-what small { font-size: .7rem; }
  .standings tr { --cols: 1.5rem minmax(0, 1fr) 2.1rem repeat(4, 1.65rem); gap: .1rem; padding: .3rem .25rem; }
  .standings .c-gol { display: none; }
  .standings.gol-on .c-vnp { display: none; }
  .standings.gol-on .c-gol { display: block; }
  .standings th { font-size: .6rem; letter-spacing: .08em; }
  .standings td.c-sq { font-size: .85rem; gap: .3rem; }
  .standings td.c-pos, .standings td.c-pt b { font-size: 1rem; }
  .standing-switch { display: inline-block; }
  .standing-source { font-size: .64rem; flex: 1 1 12rem; }
}

/* INGRESSO: l'omino e il blocco del calendario a strappo */
.intro-cal { display: none; }
.js .intro-cal {
  --h: clamp(170px, 34vh, 340px); --pw: min(34vw, 440px, 54vh); --ph: calc(var(--pw) * 1.3); --padx: 1.6vw;
  display: block; position: fixed; inset: 0; z-index: 80; overflow: hidden; pointer-events: none;
}
.static .intro-cal { display: none; }
.cal-panel { position: absolute; inset: 0; background: var(--cream); will-change: transform; }
.pad {
  position: absolute; left: var(--padx); top: calc(46% - var(--ph) / 2); width: var(--pw); height: var(--ph);
  border-radius: 14px; overflow: hidden; background: #FBFAF6;
  box-shadow: 0 50px 90px -40px rgba(15, 40, 61, .55), 0 0 0 1px rgba(15, 40, 61, .08);
}
.pad-top { position: relative; z-index: 30; height: 21%; display: flex; align-items: center; justify-content: center; gap: 6%; background: var(--navy); }
.pad-top img { height: 64%; width: auto; }
.pad-top span { font-weight: 600; font-size: calc(var(--pw) * .052); letter-spacing: .24em; line-height: 1.35; text-transform: uppercase; color: var(--gold); }
.pad-sheets { position: absolute; top: 21%; left: 0; right: 0; bottom: 0; }
.sheet {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: #FBFAF6; border-top: 2px dashed rgba(15, 40, 61, .16); color: var(--navy); transform-origin: 100% 0%;
}
.s-month { font-weight: 600; font-size: calc(var(--pw) * .06); letter-spacing: .3em; padding-left: .3em; text-transform: uppercase; color: var(--gold); }
.s-day { font-family: var(--slab); font-size: calc(var(--pw) * .44); line-height: 1; margin: .02em 0 .06em; }
.s-week { font-weight: 500; font-size: calc(var(--pw) * .062); letter-spacing: .22em; padding-left: .22em; text-transform: uppercase; color: var(--mute); }
.sheet.match { background: var(--yellow); }
.sheet.match .s-month { color: #6B5B0A; }
.sheet.match .s-week { color: var(--navy); }
.s-match { margin-top: .5em; font-family: var(--slab); font-size: calc(var(--pw) * .062); text-transform: uppercase; text-align: center; line-height: 1.1; padding: 0 8%; }
.s-info { font-weight: 500; font-size: calc(var(--pw) * .048); letter-spacing: .08em; }
.s-stamp { position: absolute; right: 6%; top: 5%; width: 22%; height: auto; transform: rotate(-12deg); }
.sheet.match .s-day { font-size: calc(var(--pw) * .36); }
.push-man { transform: translateX(-130%); position: absolute; left: 0; bottom: 14vh; height: var(--h); width: calc(var(--h) * .75); overflow: visible; will-change: transform; z-index: 2; }
.push-man svg { display: block; width: 100%; height: 100%; overflow: visible; }
@media (max-width: 767px) {
  .js .intro-cal { --h: 24vh; --pw: calc(100vw - 24vh * .75 - 2.6rem); --padx: 1rem; }
  .pad { top: calc(60% - var(--ph) / 2); }
  .push-man { bottom: 9vh; }
}

/* lo stemma monolinea che si disegna nel varco tra i nomi */
.hero-line {
  --lw: min(54vh, 72vw);
  position: absolute; z-index: 1; left: calc(50% - var(--lw) / 2); top: calc(50% - var(--lw) * .43);
  width: var(--lw); display: flex; flex-direction: column; align-items: center; gap: 1.2rem; pointer-events: none;
}
.hero-line-svg { width: 100%; height: auto; overflow: visible; }
.hero-line-svg path { fill: #7FB2E5; fill-opacity: 0; stroke: #7FB2E5; stroke-width: 2.2; stroke-linejoin: round; }
.hero-line-cap { font-weight: 600; font-size: clamp(.8rem, .7rem + .4vw, 1.1rem); letter-spacing: .34em; padding-left: .34em; text-transform: uppercase; color: var(--mute-dark); opacity: 0; }
.static .hero-line { display: none; }

/* schermi bassi: l'apertura deve stare tutta in una schermata */
@media (max-height: 760px) {
  .next { padding-top: 4.4rem; padding-bottom: 2rem; }
  .next-crest { height: 9.5vh; margin-bottom: .6rem; }
  .next-eyebrow { margin-bottom: .4rem; }
  .next-teams { margin: .4rem 0; }
  .count { margin-top: .9rem; }
  .count b { font-size: clamp(1.6rem, 5.5vh, 2.8rem); }
  .count span { margin-top: .2rem; }
  .scroll-hint { display: none; }
}

/* telefono: lo scroll lo guida la pagina, un gesto = una tappa */
html.stepper, html.stepper body { touch-action: none; overscroll-behavior: none; }
