/* =====================================================================
   Home pubblica - Inter, blu #043CA4, pillole, gradiente notte
   + tema biancorosso del Team Altamura.
   Nessuna libreria esterna: CSS, SVG e un <canvas> per la tribuna.
   ===================================================================== */

.pagina-home { background: #fff; }
.pagina-home .app-footer { border-top: 0; }
html:has(.pagina-home) { scroll-behavior: smooth; }
main.home { display: block; }

/* ------------------------------------------------------------ STADIO */
.stadio {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  isolation: isolate;
  color: #fff;
  background: var(--ci-notte);
}

/* Gradiente animato (45deg, notte -> blu elettrico) */
.stadio__cielo {
  position: absolute; inset: 0; z-index: -3;
  background: linear-gradient(45deg, #0A0F1C, #071D41, #083477, #004DFF);
  background-size: 260% 260%;
  animation: cielo 22s ease-in-out infinite alternate;
}
.stadio__cielo::after {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 60% 40% at 50% 100%, rgba(0, 9, 26, 0) 0, rgba(0, 9, 26, .35) 100%),
    linear-gradient(180deg, rgba(0, 9, 26, .65) 0%, rgba(0, 9, 26, .15) 45%, rgba(0, 9, 26, .55) 70%, rgba(0, 9, 26, .9) 100%);
}
@keyframes cielo {
  0% { background-position: 0% 30%; }
  100% { background-position: 100% 70%; }
}

/* Torri faro */
.stadio { --scena-h: clamp(220px, 32vh, 340px); }
.faro {
  position: absolute; z-index: -1;
  bottom: calc(var(--scena-h) * .42);
  width: clamp(46px, 5.2vw, 84px);
}
.faro--sx { left: clamp(0px, 1.2vw, 24px); transform: rotate(4deg); }
.faro--dx { right: clamp(0px, 1.2vw, 24px); transform: scaleX(-1) rotate(4deg); }
.faro__torre { display: block; width: 100%; height: auto; overflow: visible; }
.faro__palo { fill: #121a2b; }
.faro__traliccio { fill: none; stroke: #26324b; stroke-width: 2; }
.faro__pannello { fill: #0d1322; stroke: #2a3754; stroke-width: 2; }
.faro__lampade circle { fill: #1f2940; animation: lampada 1.6s steps(1, end) forwards; }
.faro--sx .faro__lampade circle { animation-delay: .35s; }
.faro--dx .faro__lampade circle { animation-delay: 1s; }
@keyframes lampada {
  0% { fill: #1f2940; } 12% { fill: #fff6cf; } 18% { fill: #1f2940; } 30% { fill: #fff6cf; }
  36% { fill: #3a4460; } 55% { fill: #fffbe8; } 100% { fill: #fffbe8; }
}
/* alone luminoso sul pannello */
.faro::before {
  content: ""; position: absolute; left: -45%; top: -35%; width: 190%; aspect-ratio: 1.6;
  background: radial-gradient(closest-side, rgba(255, 250, 225, .95), rgba(255, 238, 185, .35) 45%, rgba(255, 238, 185, 0) 75%);
  filter: blur(6px); opacity: 0; pointer-events: none;
  animation: alone 1.6s steps(1, end) forwards;
}
.faro--sx::before { animation-delay: .35s; }
.faro--dx::before { animation-delay: 1s; }
@keyframes alone {
  0% { opacity: 0; } 12% { opacity: .8; } 18% { opacity: 0; } 30% { opacity: .9; }
  36% { opacity: .2; } 55%, 100% { opacity: 1; }
}
/* fascio di luce verso il campo */
.faro__fascio {
  position: absolute; left: 50%; top: 10px;
  width: 1100px; height: 1250px; margin-left: -550px;
  transform-origin: 50% 0;
  transform: rotate(-58deg);
  background: linear-gradient(180deg, rgba(255, 250, 228, .5) 0%, rgba(255, 250, 228, .14) 40%, rgba(255, 250, 228, 0) 75%);
  clip-path: polygon(47.5% 0, 52.5% 0, 100% 100%, 0 100%);
  mix-blend-mode: screen;
  filter: blur(4px);
  opacity: 0;
  pointer-events: none;
  animation: fascio-on 1.8s ease-out forwards, fascio-oscilla 11s ease-in-out 2.5s infinite alternate;
}
.faro--sx .faro__fascio { animation-delay: .55s, 2.5s; }
.faro--dx .faro__fascio { animation-delay: 1.2s, 3.4s; }
@keyframes fascio-on { 0% { opacity: 0; } 20% { opacity: .5; } 28% { opacity: .1; } 100% { opacity: .75; } }
@keyframes fascio-oscilla { from { transform: rotate(-58deg); } to { transform: rotate(-52deg); } }

/* Intestazione sopra la scena */
.home-header {
  position: relative; z-index: 4;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding-top: 1.25rem; padding-bottom: .5rem;
}
.marchio--chiaro { color: #fff; text-decoration: none; }
.marchio--chiaro .marchio__logo {
  height: 46px; max-width: 210px; padding: 7px 14px; box-sizing: border-box;
  background: #fff; border-radius: 12px; box-shadow: 0 8px 24px rgba(0, 0, 0, .35);
}
.marchio--chiaro .marchio__logo + .marchio__testo { border-left-color: rgba(255, 255, 255, .35); }
.marchio--chiaro:hover { color: #fff; }
.home-header__nav { display: flex; gap: clamp(1rem, 3vw, 2.25rem); }
.home-header__nav a {
  color: rgba(255, 255, 255, .78); text-decoration: none; font-weight: 500; font-size: .95rem;
  transition: color .2s;
}
.home-header__nav a:hover { color: #fff; }

/* Contenuto: titolo + biglietto */
.stadio__contenuto {
  position: relative; z-index: 3;
  flex: 1 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 4.5rem);
  padding-top: clamp(1rem, 3vh, 2.5rem);
  padding-bottom: clamp(1rem, 3vh, 2.5rem);
}

.occhiello {
  display: inline-flex; align-items: center; gap: .6rem;
  margin: 0 0 1.25rem;
  font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: rgba(255, 255, 255, .78);
  opacity: 0; animation: compari .8s ease forwards .15s;
}
.occhiello--scuro { color: var(--ci-blu); opacity: 1; animation: none; }
.occhiello__punto {
  position: relative; width: 9px; height: 9px; border-radius: 50%; background: var(--alt-rosso); flex: none;
}
.occhiello__punto::after {
  content: ""; position: absolute; inset: -5px; border-radius: 50%;
  border: 2px solid var(--alt-rosso); opacity: 0;
  animation: impulso 2.2s ease-out infinite 1.2s;
}
@keyframes impulso { 0% { transform: scale(.4); opacity: .9; } 100% { transform: scale(1.6); opacity: 0; } }

.hero-titolo {
  margin: 0;
  color: #fff;
  font-size: clamp(3rem, 7vw, 6.2rem);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -.04em;
}
.hero-titolo .riga { display: block; overflow: hidden; padding-bottom: .06em; }
.hero-titolo .riga > span {
  display: inline-block;
  transform: translateY(110%);
  animation: sale 1s cubic-bezier(.2, .8, .2, 1) forwards .25s;
}
.hero-titolo .riga + .riga > span { animation-delay: .42s; }
.hero-titolo em { font-style: normal; color: #ff4b52; }
@keyframes sale { to { transform: translateY(0); } }
@keyframes compari { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

.hero-sottotitolo {
  max-width: 34rem;
  margin: 1.5rem 0 2rem;
  font-size: clamp(1rem, 1.3vw, 1.15rem);
  line-height: 1.6;
  color: rgba(255, 255, 255, .74);
  opacity: 0; animation: compari .9s ease forwards .7s;
}
.hero-azioni {
  display: flex; flex-wrap: wrap; align-items: center; gap: 1.25rem 1.75rem;
  opacity: 0; animation: compari .9s ease forwards .9s;
}

.pill {
  display: inline-flex; align-items: center; gap: .65rem;
  padding: 1rem 1.7rem;
  border-radius: 999px;
  font-weight: 600; font-size: 1rem;
  text-decoration: none;
  transition: background-color .25s, transform .25s, box-shadow .25s;
}
.pill--blu { background: var(--ci-blu); color: #fff; box-shadow: 0 14px 34px rgba(0, 73, 199, .45); }
.pill--blu:hover { background: var(--ci-blu-vivo); color: #fff; transform: translateY(-2px); box-shadow: 0 18px 40px rgba(0, 73, 199, .55); }
.pill__freccia { transition: transform .25s; }
.pill:hover .pill__freccia { transform: translateX(4px); }
.link-chiaro { color: #fff; font-weight: 500; text-decoration: underline; text-decoration-color: rgba(255, 255, 255, .35); }
.link-chiaro:hover { color: #fff; text-decoration-color: #fff; }

/* ------------------------------------------------------------ BIGLIETTO */
.biglietto-area {
  display: flex; justify-content: center;
  perspective: 1200px;
  animation: stampa 1.2s cubic-bezier(.2, .9, .25, 1.12) .55s both;
}
@keyframes stampa {
  from { opacity: 0; transform: translateY(-40px) rotate(-10deg) scale(.94); }
  to { opacity: 1; transform: translateY(0) rotate(0) scale(1); }
}
.biglietto {
  --rx: 0deg; --ry: 0deg; --mx: 50%; --my: 50%;
  position: relative;
  display: flex;
  width: min(100%, 470px);
  color: var(--ci-testo);
  text-decoration: none;
  transform: rotate(-3deg) rotateX(var(--rx)) rotateY(var(--ry));
  transform-style: preserve-3d;
  transition: transform .35s cubic-bezier(.2, .8, .2, 1);
  filter: drop-shadow(0 30px 40px rgba(0, 0, 0, .45)) drop-shadow(0 6px 10px rgba(0, 0, 0, .25));
  will-change: transform;
}
.biglietto:hover { color: var(--ci-testo); }
.biglietto.in-movimento { transition: transform .08s linear; }
.biglietto__corpo {
  position: relative; flex: 1; min-width: 0;
  padding: 1.6rem 1.6rem 1.35rem;
  background: #fff;
  border-radius: 20px 0 0 20px;
  overflow: hidden;
  -webkit-mask: radial-gradient(circle 14px at 100% 0, #0000 97%, #000 100%) top / 100% 51% no-repeat,
                radial-gradient(circle 14px at 100% 100%, #0000 97%, #000 100%) bottom / 100% 51% no-repeat;
          mask: radial-gradient(circle 14px at 100% 0, #0000 97%, #000 100%) top / 100% 51% no-repeat,
                radial-gradient(circle 14px at 100% 100%, #0000 97%, #000 100%) bottom / 100% 51% no-repeat;
}
.biglietto__corpo::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 8px;
  background: repeating-linear-gradient(135deg, var(--alt-rosso) 0 10px, #fff 10px 20px);
}
.biglietto__testata {
  display: flex; justify-content: space-between; align-items: center; gap: .75rem;
  font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--ci-grigio);
}
.biglietto__squadre {
  display: flex; flex-direction: column;
  margin: 1.1rem 0 1.25rem;
  font-size: clamp(1.55rem, 2.6vw, 2.2rem);
  font-weight: 800; line-height: 1.04; letter-spacing: -.03em;
}
.biglietto__squadre .squadra { overflow-wrap: anywhere; }
.squadra--noi { color: var(--alt-rosso); }
.biglietto__vs {
  margin: .35rem 0;
  font-size: .72rem; font-weight: 700; letter-spacing: .3em; text-transform: uppercase; color: var(--ci-grigio);
}
.biglietto__info {
  display: grid; grid-template-columns: auto auto 1fr; gap: .4rem 1.4rem;
  margin: 0 0 1.1rem;
}
.biglietto__info dt { font-size: .66rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ci-grigio); }
.biglietto__info dd { margin: .1rem 0 0; font-weight: 600; font-size: .95rem; }
.biglietto__countdown {
  display: flex; flex-direction: column; gap: .1rem;
  padding-top: .95rem;
  border-top: 2px dashed #d2d2d7;
  font-size: .85rem; color: var(--ci-grigio);
}
.countdown {
  font-size: clamp(1.45rem, 2.3vw, 1.9rem); font-weight: 800; letter-spacing: -.02em;
  color: var(--ci-blu); font-variant-numeric: tabular-nums;
}
.biglietto__matrice {
  position: relative; flex: none; width: 88px;
  display: flex; flex-direction: column; align-items: center; justify-content: space-between; gap: .75rem;
  padding: 1.4rem 0;
  background: #fff;
  border-left: 2px dashed #d2d2d7;
  border-radius: 0 20px 20px 0;
  -webkit-mask: radial-gradient(circle 14px at 0 0, #0000 97%, #000 100%) top / 100% 51% no-repeat,
                radial-gradient(circle 14px at 0 100%, #0000 97%, #000 100%) bottom / 100% 51% no-repeat;
          mask: radial-gradient(circle 14px at 0 0, #0000 97%, #000 100%) top / 100% 51% no-repeat,
                radial-gradient(circle 14px at 0 100%, #0000 97%, #000 100%) bottom / 100% 51% no-repeat;
}
.biglietto__ingresso {
  writing-mode: vertical-rl; transform: rotate(180deg);
  font-size: .78rem; font-weight: 800; letter-spacing: .32em; text-transform: uppercase; color: var(--ci-blu);
}
.biglietto__barcode {
  width: 44px; flex: 1; min-height: 70px; max-height: 120px;
  background: repeating-linear-gradient(0deg, #1e1e1e 0 2px, #0000 2px 4px, #1e1e1e 4px 5px, #0000 5px 8px,
              #1e1e1e 8px 11px, #0000 11px 12px, #1e1e1e 12px 13px, #0000 13px 16px);
}
.biglietto__numero { writing-mode: vertical-rl; transform: rotate(180deg); font-size: .68rem; font-weight: 600; letter-spacing: .1em; color: var(--ci-grigio); }
.biglietto__luce {
  position: absolute; inset: 0; border-radius: 20px; pointer-events: none;
  background: radial-gradient(circle at var(--mx) var(--my), rgba(255, 255, 255, .7), rgba(255, 255, 255, 0) 42%);
  mix-blend-mode: soft-light; opacity: 0; transition: opacity .3s;
}
.biglietto:hover .biglietto__luce { opacity: 1; }

/* Spia di stato (pallino + testo) */
.stato-luce { display: inline-flex; align-items: center; gap: .45rem; white-space: nowrap; }
.stato-luce::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%; flex: none;
  background: #a1a1a6; box-shadow: 0 0 0 0 rgba(0, 0, 0, 0);
}
.stato-luce--aperta { color: #0f8a3c; }
.stato-luce--aperta::before { background: #16a34a; animation: spia 1.8s ease-out infinite; }
.stato-luce--programmata { color: var(--ci-blu); }
.stato-luce--programmata::before { background: var(--ci-blu-vivo); }
.stato-luce--chiusa { color: #b45309; }
.stato-luce--chiusa::before { background: #f59e0b; }
@keyframes spia {
  0% { box-shadow: 0 0 0 0 rgba(22, 163, 74, .55); }
  100% { box-shadow: 0 0 0 9px rgba(22, 163, 74, 0); }
}

/* ------------------------------------------------------------ SCENA: tribuna, LED, campo */
.scena {
  position: relative; z-index: 1;
  height: var(--scena-h);
  margin-top: auto;
  pointer-events: none;
}
.folla { position: absolute; left: 0; top: 0; width: 100%; height: 46%; display: block; }

.led {
  --led-h: max(34px, calc(var(--scena-h) * .13));
  position: absolute; left: 0; right: 0; top: 46%;
  height: var(--led-h);
  display: flex; align-items: stretch;
  overflow: hidden;
  background: #05070d;
  box-shadow: 0 -1px 0 rgba(255, 255, 255, .08), 0 14px 30px rgba(0, 0, 0, .55);
}
.led__nastro {
  display: flex; flex: none; width: max-content; height: var(--led-h);
  animation: led-scorri 46s linear infinite;
}
.led__spot {
  display: flex; flex: none; align-items: center; height: var(--led-h);
  padding: 0 2.4rem;
  white-space: nowrap;
  font-size: clamp(.78rem, 1.35vw, 1.05rem); font-weight: 800; letter-spacing: .16em; text-transform: uppercase;
}
.led__spot--blu { background: var(--ci-blu); color: #fff; text-shadow: 0 0 10px rgba(160, 200, 255, .9); }
.led__spot--rosso { background: var(--alt-rosso); color: #fff; text-shadow: 0 0 10px rgba(255, 190, 190, .9); }
.led__spot--bianco { background: #f4f4f4; color: var(--alt-rosso); text-shadow: 0 0 8px rgba(215, 20, 26, .5); }
.led__spot--nero { background: #0a0d14; color: #fff; text-shadow: 0 0 10px rgba(255, 255, 255, .7); }
.led__spot--logo { background: #fff; padding: 0 2.6rem; }
/* Un'altezza percentuale nell'item flex fa usare a WebKit la larghezza naturale
   del PNG per il pannello, lasciando un lungo spazio vuoto dopo il logo. */
.led__spot--logo img { display: block; height: calc(var(--led-h) * .62); width: auto; }
.led::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(circle, rgba(0, 0, 0, 0) 0 1.3px, rgba(0, 0, 0, .28) 1.7px);
  background-size: 4px 4px;
}
.led::before {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, .18), rgba(255, 255, 255, 0) 40%, rgba(0, 0, 0, .25));
}
@keyframes led-scorri { from { transform: translateX(0); } to { transform: translateX(-50%); } }

.campo {
  position: absolute; left: 0; right: 0; top: 59%; bottom: 0;
  perspective: 620px; perspective-origin: 50% -40%;
}
.campo__prato {
  position: absolute; left: -12%; right: -12%; top: 0; height: 230%;
  transform-origin: 50% 0;
  transform: rotateX(58deg);
  background:
    radial-gradient(ellipse 30% 45% at 26% 18%, rgba(255, 250, 225, .16), rgba(255, 250, 225, 0) 70%),
    radial-gradient(ellipse 30% 45% at 74% 18%, rgba(255, 250, 225, .16), rgba(255, 250, 225, 0) 70%),
    repeating-linear-gradient(90deg, #0b3a25 0 7.1428%, #0e4530 7.1428% 14.2857%);
}
.campo__prato::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0, 9, 26, .35), rgba(0, 9, 26, 0) 30%, rgba(0, 9, 26, .5));
}
.campo__linee {
  position: absolute; left: 5%; top: 4%; width: 90%; height: 92%;
  fill: none; stroke: rgba(255, 255, 255, .8); stroke-width: 2.4;
  overflow: visible;
}
.campo__linee > * { stroke-dasharray: 1; stroke-dashoffset: 1; animation: traccia 2.4s cubic-bezier(.6, 0, .3, 1) forwards 1s; }
.campo__linee > :nth-child(2) { animation-delay: 1.3s; }
.campo__linee > :nth-child(3) { animation-delay: 1.55s; }
.campo__linee > :nth-child(n+4) { animation-delay: 1.8s; }
@keyframes traccia { to { stroke-dashoffset: 0; } }

/* Pallone: entra rotolando e resta a palleggiare a centrocampo */
.pallone-pista {
  position: absolute; left: 50%; bottom: 22%;
  width: clamp(38px, 4.6vw, 64px); aspect-ratio: 1;
  translate: -50% 0;
  animation: rotola 2.8s cubic-bezier(.12, .72, .28, 1) 1.2s both;
}
@keyframes rotola { from { translate: calc(-50% - 62vw) 0; } to { translate: -50% 0; } }
.pallone-salto { position: absolute; inset: 0; animation: palleggio 1.4s cubic-bezier(.45, 0, .55, 1) 4.2s infinite; }
@keyframes palleggio {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-42%); }
}
.pallone { position: absolute; inset: 0; width: 100%; height: 100%; animation: giro 2.8s cubic-bezier(.12, .72, .28, 1) 1.2s both; }
@keyframes giro { from { rotate: -1080deg; } to { rotate: 0deg; } }
.pallone__base { fill: #f7f7f7; }
.pallone__pezza { fill: #1b1f27; }
.pallone__cucitura { fill: none; stroke: #9aa0a8; stroke-width: 1.6; }
.pallone__bordo { fill: none; stroke: rgba(0, 0, 0, .25); stroke-width: 1.5; }
.pallone-luce {
  position: absolute; inset: 0; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle at 34% 28%, rgba(255, 255, 255, .55) 0 12%, rgba(255, 255, 255, 0) 32%, rgba(4, 12, 30, 0) 50%, rgba(4, 12, 30, .45) 100%);
}
.pallone-ombra {
  position: absolute; left: 12%; right: 12%; bottom: -12%; height: 18%;
  border-radius: 50%; background: rgba(0, 0, 0, .55); filter: blur(3px);
  animation: ombra 1.4s cubic-bezier(.45, 0, .55, 1) 4.2s infinite;
}
@keyframes ombra { 0%, 100% { transform: scale(1); opacity: .9; } 50% { transform: scale(.6); opacity: .45; } }

/* ------------------------------------------------------------ SEZIONI */
.sezione { padding: clamp(4rem, 9vw, 7.5rem) 0; }
.sezione--bianca { background: #fff; }
.sezione--grigia { background: var(--ci-sfondo); }
.sezione__testa { max-width: 46rem; margin-bottom: clamp(2rem, 4vw, 3rem); }
.sezione__titolo {
  margin: 0; font-size: clamp(2rem, 4.4vw, 3.2rem); font-weight: 800; line-height: 1.05; letter-spacing: -.035em;
}
.sezione__intro { margin: 1rem 0 0; font-size: 1.1rem; line-height: 1.6; color: var(--ci-grigio); }

/* Calendario */
.calendario { list-style: none; margin: 0; padding: 0; border-top: 1px solid #e8e8ed; }
.calendario__voce { border-bottom: 1px solid #e8e8ed; }
.calendario__link {
  display: grid; grid-template-columns: 96px minmax(0, 1fr) auto 48px; align-items: center; gap: 1.5rem;
  padding: 1.6rem 1rem;
  margin: 0 -1rem;
  border-radius: 18px;
  color: inherit; text-decoration: none;
  transition: background-color .25s;
}
.calendario__link:hover { background: var(--ci-sfondo); color: inherit; }
.calendario__data {
  display: grid; grid-template-columns: auto auto; grid-template-rows: auto auto; column-gap: .55rem; align-items: end;
}
.calendario__giorno {
  grid-row: 1 / span 2; font-size: 2.9rem; font-weight: 800; line-height: .9; letter-spacing: -.05em; color: var(--ci-testo);
  font-variant-numeric: tabular-nums;
}
.calendario__mese { font-size: .78rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--alt-rosso); }
.calendario__dow { font-size: .78rem; font-weight: 500; color: var(--ci-grigio); text-transform: capitalize; }
.calendario__match { display: flex; flex-direction: column; gap: .35rem; min-width: 0; }
.calendario__squadre { font-size: clamp(1.2rem, 2.2vw, 1.65rem); font-weight: 700; letter-spacing: -.02em; line-height: 1.15; }
.calendario__squadre em { font-style: normal; font-size: .8em; font-weight: 500; color: var(--ci-grigio); margin: 0 .25rem; }
.calendario__squadre .noi { color: var(--alt-rosso); }
.calendario__meta { color: var(--ci-grigio); font-size: .95rem; }
.calendario__stato { font-size: .9rem; font-weight: 600; text-align: right; }
.calendario__freccia {
  width: 48px; height: 48px; border-radius: 50%;
  display: grid; place-items: center;
  border: 1px solid #d2d2d7; color: var(--ci-testo);
  transition: background-color .25s, border-color .25s, color .25s, transform .25s;
}
.calendario__freccia svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.calendario__link:hover .calendario__freccia { background: var(--ci-blu); border-color: var(--ci-blu); color: #fff; transform: translateX(4px); }
.calendario-vuoto { padding: 2.5rem 0; border-top: 1px solid #e8e8ed; color: var(--ci-grigio); font-size: 1.05rem; }
.calendario-vuoto__titolo { font-size: 1.5rem; font-weight: 700; color: var(--ci-testo); margin-bottom: .4rem; }

/* Come funziona */
.passi { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.5rem, 4vw, 3.5rem); }
.passi__traccia {
  position: absolute; left: 0; top: 1.55rem; width: 100%; height: 20px; overflow: visible;
  fill: none; stroke: var(--ci-blu); stroke-width: 2; opacity: .35;
}
.passi__traccia path { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 2.2s cubic-bezier(.6, 0, .3, 1) .2s; }
.passi.visibile .passi__traccia path { stroke-dashoffset: 0; }
.passo { position: relative; }
.passo__numero {
  display: inline-block; padding-right: 1rem;
  background: var(--ci-sfondo);
  font-size: 3.6rem; font-weight: 800; line-height: 1; letter-spacing: -.05em;
  color: transparent; -webkit-text-stroke: 1.5px var(--ci-blu);
}
.passo__titolo { margin: 1.25rem 0 .6rem; font-size: 1.35rem; font-weight: 700; letter-spacing: -.02em; }
.passo p { margin: 0; color: var(--ci-grigio); line-height: 1.6; }

/* Equità: pesi crescenti */
.equita {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); align-items: center; gap: clamp(2rem, 5vw, 4rem);
  margin-top: clamp(3rem, 7vw, 5rem);
  padding: clamp(2rem, 5vw, 3.5rem);
  border-radius: 28px;
  color: #fff;
  background: linear-gradient(45deg, #0A0F1C, #071D41, #083477, #004DFF);
  background-size: 220% 220%;
  animation: cielo 16s ease-in-out infinite alternate;
}
.equita::after {
  content: ""; position: absolute; right: -60px; top: -60px; width: 220px; height: 220px; border-radius: 50%;
  background: repeating-linear-gradient(135deg, rgba(255, 255, 255, .12) 0 6px, rgba(255, 255, 255, 0) 6px 16px);
}
.equita__titolo { color: #fff; font-size: clamp(1.5rem, 2.6vw, 2.05rem); font-weight: 800; letter-spacing: -.03em; line-height: 1.12; margin: 0 0 .9rem; }
.equita__testo p { margin: 0; color: rgba(255, 255, 255, .74); line-height: 1.6; }
.equita__barre { list-style: none; margin: 0; padding: 0; position: relative; z-index: 1; }
.equita__barre li { display: grid; grid-template-columns: 9.5rem minmax(0, 1fr) 3.5rem; align-items: center; gap: 1rem; padding: .55rem 0; }
.equita__etichetta { font-size: .9rem; color: rgba(255, 255, 255, .8); }
.equita__barra { height: 12px; border-radius: 99px; background: rgba(255, 255, 255, .12); overflow: hidden; }
.equita__riempimento {
  display: block; height: 100%; width: 0; border-radius: 99px;
  background: linear-gradient(90deg, #5a8dff, #ff4b52);
  transition: width 1.4s cubic-bezier(.2, .8, .2, 1);
}
.equita__valore { font-weight: 800; font-variant-numeric: tabular-nums; text-align: right; }

/* Sciarpa biancorossa sopra il footer */
.sciarpa {
  height: 14px;
  background: repeating-linear-gradient(135deg, var(--alt-rosso) 0 14px, #fff 14px 28px);
  background-size: 39.6px 14px;
  animation: sciarpa 1.6s linear infinite;
  border-top: 1px solid #e8e8ed;
}
@keyframes sciarpa { to { background-position: 39.6px 0; } }

/* Comparsa allo scroll (attiva solo se JS è disponibile) */
.rivela-attiva .rivela { opacity: 0; transform: translateY(26px); transition: opacity .8s ease, transform .9s cubic-bezier(.2, .8, .2, 1); }
.rivela-attiva .rivela.visibile { opacity: 1; transform: none; }

/* ------------------------------------------------------------ RESPONSIVE */
@media (max-width: 991.98px) {
  .stadio__contenuto { grid-template-columns: 1fr; }
  .biglietto-area { justify-content: flex-start; }
  /* Nella vista a una colonna le torri hanno spazio tra biglietto e tribuna.
     Resta l'alone delle lampade, senza coni luminosi sovrapposti agli spalti. */
  .scena { margin-top: 7rem; flex-shrink: 0; }
  .faro { bottom: calc(var(--scena-h) + .5rem); width: 36px; }
  .faro__fascio { display: none; }
}
@media (max-width: 767.98px) {
  .home-header__nav a:first-child { display: none; }
  .marchio--chiaro .marchio__logo { height: 40px; max-width: 160px; padding: 6px 10px; }
  .marchio__logo + .marchio__testo { display: none; }
  .calendario__link { grid-template-columns: 70px minmax(0, 1fr); gap: .5rem 1rem; padding: 1.25rem .75rem; margin: 0 -.75rem; }
  .calendario__giorno { font-size: 2.2rem; }
  .calendario__stato { grid-column: 2; text-align: left; font-size: .85rem; }
  .calendario__freccia { display: none; }
  .passi { grid-template-columns: 1fr; }
  .passi__traccia { display: none; }
  .equita { grid-template-columns: 1fr; }
  .equita__barre li { grid-template-columns: 7.5rem minmax(0, 1fr) 3rem; gap: .75rem; }
  .biglietto__matrice { width: 70px; }
  .stadio { --scena-h: 220px; }
}

/* Chi preferisce meno movimento vede la scena già "accesa", senza animazioni */
@media (prefers-reduced-motion: reduce) {
  html:has(.pagina-home) { scroll-behavior: auto; }
  .pagina-home *, .pagina-home *::before, .pagina-home *::after {
    animation-duration: .001ms !important;
    animation-delay: 0s !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .led__nastro { animation: none !important; }
}
