/* ==========================================================================
   t4-hero — header blu delle pagine interne + pillola di navigazione
   Caricato dopo t4-sections.css (vedi tools/ensure_kit.py).
   La root del tema cambia con la larghezza: 1rem = 16px sotto i 992px,
   12px a 992-1699 (il tema a 992-999 avrebbe 10px, t4-sections.css lo riporta a 12),
   15px a 1700-1919, 16px da 1920.
   ========================================================================== */
:root {
  --t4h-blue: 25, 43, 136;      /* #192B88, primario del tema */
  --t4h-blue-hi: 72, 104, 255;  /* blu acceso per luci e dettagli */
  --t4h-blue-deep: 11, 19, 66;
  --t4h-ink: 15, 19, 32;
}

/* --------------------------------------------------------------------------
   Pillola di navigazione: vetro in due toni (piano v3, P1)
   - scuro sopra testate blu, foto e sezioni data-t4-theme="dark";
   - chiaro sopra il grigio pagina e le sezioni data-t4-theme="light".
   Il tono lo sceglie t4-hero.js (attributo data-t4-tone sull'header) guardando
   la sezione sotto il centro della pillola; senza JS resta lo scuro, che è
   quello giusto sopra le testate di tutte le pagine. t4-hero.js può alzare
   l'opacità del fondo (--t4n-min, solo se supera quella del tono) quando sotto c'è una foto chiara,
   così il testo resta sopra 4,5:1. I colori passano da un tono all'altro in 0,4 s.
   -------------------------------------------------------------------------- */
header.fh-1516 {
  --t4n-rgb: 14, 20, 48;                 /* #0e1430 */
  --t4n-a: .34;                          /* .46 "scrollato" */
  --t4n-hi: rgba(255, 255, 255, .14);    /* riflesso: dal 14% in alto al 4% in basso */
  --t4n-lo: rgba(255, 255, 255, .04);
  --t4n-line: rgba(255, 255, 255, .18);
  --t4n-line-strong: rgba(255, 255, 255, .5);
  --t4n-inset: rgba(255, 255, 255, .35);
  --t4n-inset-lo: rgba(3, 8, 32, .30);
  --t4n-shadow: rgba(3, 8, 32, .28);
  --t4n-fg: #fff;
  --t4n-dot: var(--t4-sky, #86a0ff);
  --t4n-hover: rgba(255, 255, 255, .10);
  --t4n-btn: rgba(255, 255, 255, .10);
  --t4n-btn-hover: rgba(255, 255, 255, .18);
  --t4n-focus: #9fb4ff;
  --t4n-blur: 18px;
}
header.fh-1516.t4-scrolled { --t4n-a: .46; }
/* tono chiaro; col menu a scomparsa aperto la pillola sta sul pannello scuro */
header.fh-1516[data-t4-tone="light"]:not(.header--offcanvas-active) {
  --t4n-rgb: 235, 235, 235;
  --t4n-a: .58;
  --t4n-hi: rgba(255, 255, 255, .34);
  --t4n-lo: rgba(255, 255, 255, .10);
  --t4n-line: rgba(14, 20, 48, .10);
  --t4n-line-strong: rgba(14, 20, 48, .35);
  --t4n-inset: rgba(255, 255, 255, .70);
  --t4n-inset-lo: rgba(14, 20, 48, .06);
  --t4n-shadow: rgba(14, 20, 48, .14);
  --t4n-fg: #0e1430;
  --t4n-dot: var(--t4-blue, #2448d8);
  --t4n-hover: rgba(14, 20, 48, .06);
  --t4n-btn: rgba(14, 20, 48, .05);
  --t4n-btn-hover: rgba(14, 20, 48, .10);
  --t4n-focus: #2448d8;
}
header.fh-1516[data-t4-tone="light"].t4-scrolled:not(.header--offcanvas-active) { --t4n-a: .70; }
header.fh-1516 .fh-0431 {
  -webkit-backdrop-filter: blur(var(--t4n-blur)) saturate(160%);
  backdrop-filter: blur(var(--t4n-blur)) saturate(160%);
  /* --t4n-min arriva da t4-hero.js solo quando supera --t4n-a (niente max(): Safari vecchi) */
  background-color: rgba(var(--t4n-rgb), var(--t4n-min, var(--t4n-a)));
  background-image: linear-gradient(180deg, var(--t4n-hi), var(--t4n-lo));
  border: 1px solid var(--t4n-line);
  box-shadow: 0 12px 32px var(--t4n-shadow), inset 0 1px 0 var(--t4n-inset), inset 0 -10px 18px -14px var(--t4n-inset-lo);
  min-height: 4.6rem;
  padding: .5rem .55rem .5rem 1.6rem;
  transition: min-height .35s ease, width .35s ease, background-color .4s ease, border-color .4s ease, box-shadow .4s ease;
  width: calc(100% - 2rem);
}
/* il blur costa sui telefoni economici: 14px sotto i 992px */
@media (max-width: 991px) { header.fh-1516 { --t4n-blur: 14px; } }
/* niente vetro (browser senza backdrop-filter, "riduci trasparenza", contrasto
   alto): fondo pieno al 92% nel tono giusto */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  header.fh-1516, header.fh-1516.t4-scrolled, header.fh-1516[data-t4-tone="light"]:not(.header--offcanvas-active), header.fh-1516[data-t4-tone="light"].t4-scrolled:not(.header--offcanvas-active) { --t4n-a: .92; }
  header.fh-1516 .fh-0431 { background-color: rgba(var(--t4n-rgb), .92); }
}
@media (prefers-reduced-transparency: reduce), (prefers-contrast: more) {
  header.fh-1516, header.fh-1516.t4-scrolled, header.fh-1516[data-t4-tone="light"]:not(.header--offcanvas-active), header.fh-1516[data-t4-tone="light"].t4-scrolled:not(.header--offcanvas-active) { --t4n-a: .92; }
  header.fh-1516 .fh-0431 { -webkit-backdrop-filter: none; backdrop-filter: none; background-color: rgba(var(--t4n-rgb), .92); }
}
/* da 992px la pillola segue la griglia del tema (.u-0469: 90,94%, max 108,375rem):
   con i 1,6rem di padding il logo cade sul bordo dei contenuti. In rem e non in px,
   perché da 1700px la root sale e il contenuto della pillola cresce con lei */
@media (min-width: 992px) {
  header.fh-1516 .fh-0431 { width: min(calc(108.375rem + 3.2rem), calc(90.94% + 3.2rem)); }
}
/* il logo è l'unico elemento che il tema lascia restringere: senza questo spariva */
header.fh-1516 .fh-0431 > a.fh-0635 { flex: 0 0 auto; }
header.fh-1516.t4-scrolled .fh-0431 { min-height: 4.1rem; }
/* due loghi sovrapposti (normalize_shell.py): parti chiare sul tono scuro,
   parti scure sul chiaro; si scambiano in dissolvenza */
header.fh-1516 a.fh-0635 { display: grid; transition: opacity .2s ease; }
header.fh-1516 a.fh-0635 > img.t4-logo { grid-area: 1 / 1; transition: opacity .4s ease; }
header.fh-1516 a.fh-0635 > img.t4-logo--ink { opacity: 0; }
header.fh-1516[data-t4-tone="light"]:not(.header--offcanvas-active) a.fh-0635 > img.t4-logo { opacity: 0; }
header.fh-1516[data-t4-tone="light"]:not(.header--offcanvas-active) a.fh-0635 > img.t4-logo--ink { opacity: 1; }
header.fh-1516 img.t4-logo { width: 9.6rem; }
header.fh-1516 a.fh-0635:hover { opacity: .85; }
header.fh-1516 .fh-0805 a, header.fh-1516 .fh-0238 { transition: color .4s ease, background-color .4s ease, border-color .4s ease; }
/* le righe del burger tengono anche l'animazione del tema (diventano una X) */
header.fh-1516 .fh-0238 .fh-0711 > span { transition: all .2s ease-in-out, background-color .4s ease; }
/* bordo del tema su :before di "Prenota un test" */
header.fh-1516 .fh-0553 > a.fh-0634:before { border-color: var(--t4n-line-strong); transition: border-color .4s ease; }
/* in hover il riempimento blu del tema entra da :after: testo bianco in entrambi i toni */
header.fh-1516 .fh-0553 > a.fh-0634:hover { color: #fff; }

/* Pallino della pagina corrente: 6px sotto l'etichetta (#86a0ff sul vetro
   scuro, #2448d8 sul chiaro). Entra quando il tema toglie html.is-loading,
   con la transizione da 0 a 6px e 1px di salita (con un'animazione @keyframes
   Chrome non lo ridisegnava più sotto il vetro: restava invisibile); in hover sulle altre
   voci, solo col mouse, un pallino al 35%. Stato finale scritto per primo:
   con "riduci movimento" il pallino è fermo. Un solo segno per "sei qui":
   la voce corrente non ha più lo sfondo a pillola. */
@media (min-width: 992px) {
  header.fh-1516 .fh-0431 > .fh-0805 .u-0430 { gap: .2rem; }
  header.fh-1516 .fh-0805 .u-0430 .u-0908 > a {
    border-radius: 999px;
    font-family: var(--font-family-headings), sans-serif;
    font-size: 1.1rem;
    font-weight: 500;
    letter-spacing: .07em;
    padding: .7rem .95rem;
    position: relative;
    text-transform: uppercase;
  }
  header.fh-1516 .fh-0805 .u-0430 .u-0908 > a:hover { background-color: var(--t4n-hover); }
  /* la "scala" è larghezza/altezza da 0 a 6px e la salita un margine: con
     transform: scale(0) Chrome rasterizza il livello a scala zero e a fine
     animazione il pallino restava invisibile o sfocato */
  header.fh-1516 .fh-0805 .u-0430 .u-0908 > a:after {
    background-color: var(--t4n-dot);
    border-radius: 50%;
    bottom: .2rem;
    content: "";
    height: 0;
    left: 50%;
    margin: 0 0 1px;
    opacity: 0;
    pointer-events: none;
    position: absolute;
    width: 0;
  }
  header.fh-1516 .fh-0805 .u-0430 .u-0908.is-current > a:after { height: 6px; margin: 0 0 0 -3px; opacity: 1; width: 6px; }
  /* la sottolineatura animata del tema non serve con il pallino */
  header.fh-1516 .fh-0805 .u-0430 .u-0908 > a:before { display: none !important; }
}
@media (min-width: 992px) and (hover: hover) and (pointer: fine) {
  header.fh-1516 .fh-0805 .u-0430 .u-0908:not(.is-current) > a:hover:after { height: 6px; margin: 0 0 0 -3px; opacity: .35; width: 6px; }
}
@media (min-width: 992px) and (prefers-reduced-motion: no-preference) {
  header.fh-1516 .fh-0805 .u-0430 .u-0908 > a:after { transition: opacity .45s var(--t4-ease, ease), width .45s var(--t4-ease, ease), height .45s var(--t4-ease, ease), margin .45s var(--t4-ease, ease), background-color .4s ease; }
  html.is-loading header.fh-1516 .fh-0805 .u-0430 .u-0908.is-current > a:after { height: 0; margin: 0 0 1px; opacity: 0; width: 0; }
}
/* menu a scomparsa: pallino a sinistra della voce corrente (sempre sul pannello scuro) */
.fh-0906 .fh-0194 .u-0908.is-current > a { padding-left: 16px; position: relative; }
.fh-0906 .fh-0194 .u-0908.is-current > a:after {
  background-color: var(--t4-sky, #86a0ff);
  border-radius: 50%;
  content: "";
  height: 6px;
  left: 1px;
  margin-top: -3px;
  position: absolute;
  top: 50%;
  width: 6px;
}
header.fh-1516 .fh-0553 { gap: .5rem; }
header.fh-1516 .fh-0553 > a.fh-1748 {
  font-family: var(--font-family-headings), sans-serif;
  font-size: 1.05rem;
  letter-spacing: .07em;
  padding: 1rem 1.4rem;
  transition: background .2s ease, transform .2s ease, box-shadow .2s ease, color .4s ease;
}
header.fh-1516 .fh-0553 > a.fh-0636 {
  background: linear-gradient(135deg, rgb(var(--t4h-blue-hi)), rgb(var(--t4h-blue)));
  border-color: transparent;
  box-shadow: 0 6px 16px rgba(36, 60, 200, .35);
  color: #fff;
}
header.fh-1516 .fh-0553 > a.fh-0636:hover { box-shadow: 0 8px 22px rgba(36, 60, 200, .5); transform: translateY(-1px); }
/* 992-1199: la pillola sulla griglia è larga circa 940px e con la root a 12px
   voci, logo e bottoni chiedevano 1007px (prima il tema schiacciava il logo).
   Dal 28/10/2026 le voci sono 9 (+ ST2 e Academy): tutto un po' più stretto */
@media (min-width: 992px) and (max-width: 1199px) {
  header.fh-1516 .fh-0805 .u-0430 .u-0908 > a { font-size: .92rem; letter-spacing: .02em; padding: .65rem .3rem; }
  header.fh-1516 img.t4-logo { width: 7rem; }
  header.fh-1516 .fh-0553 > a.fh-1748 { font-size: .92rem; padding: 1rem .75rem; }
}
/* 1200-1399 con 9 voci la pillola usciva di ~120px (misurato a 1200) */
@media (min-width: 1200px) and (max-width: 1399px) {
  header.fh-1516 .fh-0805 .u-0430 .u-0908 > a { font-size: 1rem; letter-spacing: .03em; padding: .65rem .4rem; }
  header.fh-1516 img.t4-logo { width: 8rem; }
  header.fh-1516 .fh-0553 > a.fh-1748 { font-size: 1rem; padding: 1rem .9rem; }
}

/* --------------------------------------------------------------------------
   Header blu (hero) delle pagine
   -------------------------------------------------------------------------- */
.t4h {
  background:
    radial-gradient(80% 70% at 92% 4%, rgba(var(--t4h-blue-hi), .55) 0%, rgba(var(--t4h-blue-hi), 0) 62%),
    radial-gradient(70% 80% at -5% 105%, rgba(var(--t4h-blue-deep), .95) 0%, rgba(var(--t4h-blue-deep), 0) 70%),
    linear-gradient(165deg, #1d3299 0%, #172a86 45%, #0e1a5a 100%);
  color: #fff;
  isolation: isolate;
  padding: 11rem 0 5rem;
  position: relative;
  z-index: 4;   /* i riquadri che escono dall'header (timeline) restano sopra la sezione dopo (.t4s .container-grid ha z-index 3) */
}
@media (min-width: 992px) { .t4h { padding: 13rem 0 6.5rem; } }
.t4h--compact { padding-bottom: 4rem; }
@media (min-width: 992px) { .t4h--compact { padding: 12.5rem 0 5rem; } }

/* decorazioni di sfondo */
.t4h__bg { inset: 0; overflow: hidden; pointer-events: none; position: absolute; z-index: -1; }
.t4h__grid {
  background-image:
    linear-gradient(rgba(255, 255, 255, .055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .055) 1px, transparent 1px);
  background-size: 6.4rem 6.4rem;
  inset: 0;
  -webkit-mask-image: radial-gradient(120% 90% at 70% 20%, #000 20%, transparent 75%);
  mask-image: radial-gradient(120% 90% at 70% 20%, #000 20%, transparent 75%);
  position: absolute;
}
.t4h__word {
  bottom: -.12em;
  color: transparent;
  font-family: var(--font-family-headings), sans-serif;
  font-size: clamp(10rem, 21vw, 30rem);
  left: -.04em;
  letter-spacing: -.04em;
  line-height: .8;
  opacity: .9;
  position: absolute;
  text-transform: uppercase;
  -webkit-text-stroke: 1px rgba(255, 255, 255, .10);
  white-space: nowrap;
  animation: t4h-drift 40s linear infinite alternate;
}
.t4h__track { height: 100%; position: absolute; right: -6%; top: 0; width: min(70%, 980px); }
.t4h__track path { fill: none; stroke: rgba(255, 255, 255, .16); stroke-width: 1.5; stroke-dasharray: 2600; stroke-dashoffset: 2600; animation: t4h-draw 3.2s .3s cubic-bezier(.65, 0, .35, 1) forwards; }
.t4h__track path.t4h__track-hi { stroke: rgba(var(--t4h-blue-hi), .9); stroke-width: 2.5; stroke-dasharray: 90 2600; stroke-dashoffset: 0; animation: t4h-lap 7s 1.2s linear infinite; opacity: 0; }
.t4h__checker {
  background-image: conic-gradient(rgba(255, 255, 255, .22) 25%, transparent 0 50%, rgba(255, 255, 255, .22) 0 75%, transparent 0);
  background-size: 1.2rem 1.2rem;
  bottom: 0;
  height: .6rem;
  left: 0;
  opacity: .55;
  position: absolute;
  right: 0;
}

@keyframes t4h-draw { to { stroke-dashoffset: 0; } }
@keyframes t4h-lap { 0% { opacity: 1; stroke-dashoffset: 0; } 100% { opacity: 1; stroke-dashoffset: -2690; } }
@keyframes t4h-drift { from { transform: translateX(0); } to { transform: translateX(-6%); } }
@keyframes t4h-pulse { 0%, 100% { box-shadow: 0 0 0 .3rem rgba(var(--t4h-blue-hi), .35); } 50% { box-shadow: 0 0 0 .7rem rgba(var(--t4h-blue-hi), 0); } }
@keyframes t4h-up { from { opacity: 0; transform: translateY(2.4rem); } to { opacity: 1; transform: none; } }

/* Calendario (tools/hero_blue.py, fx='circuit'): pista "piena" a destra della
   testata, chiesta dal cliente (10/2026) per dare corpo all'intro. Asfalto che si
   disegna, linea interna che scorre, traguardo che pulsa e tre kart nei colori del
   sito che girano a velocità diverse e quindi si sorpassano. Ogni path ha la sua
   animation completa: .t4h__track path impone dasharray 2600 e t4h-draw.
   Niente filtri di blur: il bagliore è un path largo e trasparente (halo). */
/* in alto a destra, nel vuoto accanto a titolo e testo: più in basso i kart
   passavano dietro le cifre del countdown, a 1920 l'asfalto usciva dal bordo */
.t4h__track--fx { aspect-ratio: 1000 / 760; height: auto; right: 1%; top: -1rem; width: min(62%, 1000px); }   /* pista vera di Lonato: più larga della vecchia, il tornante di destra restava tagliato */
@media (min-width: 992px) and (max-width: 1299px) { .t4h__track--fx { width: 56%; } }   /* più larga toccava la seconda riga del testo */
.t4h__track--fx path { stroke: rgba(255, 255, 255, .2); }
.t4h__track .t4h__asphalt { animation: t4h-draw 2.6s .2s cubic-bezier(.65, 0, .35, 1) forwards; stroke: rgba(255, 255, 255, .045); stroke-dasharray: 1000; stroke-dashoffset: 1000; stroke-linejoin: round; stroke-width: 30; }
.t4h__track .t4h__lane { animation: t4h-fade 1.2s 1.6s forwards, t4h-flow 6s 1.6s linear infinite; opacity: 0; stroke: rgba(134, 160, 255, .32); stroke-dasharray: 2.5 6; stroke-dashoffset: 0; stroke-width: 2; }
.t4h__track--fx path.t4h__track-hi { stroke: rgba(134, 160, 255, .85); }   /* path.t4h__track-hi: la regola base ha specificità 0,2,1 */
.t4h__start-ring { animation: t4h-start 2.4s 2.6s ease-out infinite; fill: none; opacity: 0; stroke: #4868ff; stroke-width: 2; transform-box: fill-box; transform-origin: center; }
.t4h__start rect { opacity: .85; }
.t4h__karts { animation: t4h-fade .8s 3s forwards; opacity: 0; }
.t4h__track .t4h__kart { fill: none; stroke-linecap: round; }
.t4h__track .t4h__kart--tail { stroke-dasharray: 28 972; stroke-width: 3.5; }
.t4h__track .t4h__kart--halo { opacity: .22; stroke-dasharray: .5 999.5; stroke-width: 24; }
.t4h__track .t4h__kart--head { stroke-dasharray: .5 999.5; stroke-width: 9; }
/* a: bianco (in testa) · b: #9fb4ff · c: #4868ff */
.t4h__track .t4h__kart--tail.is-a { animation: t4h-kart-tail 8.6s linear 0s infinite; stroke: rgba(255, 255, 255, .55); }
.t4h__track .t4h__kart--halo.is-a, .t4h__track .t4h__kart--head.is-a { animation: t4h-kart-head 8.6s linear 0s infinite; stroke: #fff; }
.t4h__track .t4h__kart--tail.is-b { animation: t4h-kart-tail 9.3s linear -2.2s infinite; stroke: rgba(159, 180, 255, .55); }
.t4h__track .t4h__kart--halo.is-b, .t4h__track .t4h__kart--head.is-b { animation: t4h-kart-head 9.3s linear -2.2s infinite; stroke: #9fb4ff; }
.t4h__track .t4h__kart--tail.is-c { animation: t4h-kart-tail 10.1s linear -4.6s infinite; stroke: rgba(72, 104, 255, .6); }
.t4h__track .t4h__kart--halo.is-c, .t4h__track .t4h__kart--head.is-c { animation: t4h-kart-head 10.1s linear -4.6s infinite; stroke: #4868ff; }
@keyframes t4h-fade { to { opacity: 1; } }
@keyframes t4h-flow { to { stroke-dashoffset: -85; } }   /* 10 periodi da 8,5: il giro riparte senza scatti */
@keyframes t4h-start { 0% { opacity: .9; transform: scale(1); } 100% { opacity: 0; transform: scale(2.6); } }
@keyframes t4h-kart-tail { from { stroke-dashoffset: 0; } to { stroke-dashoffset: -1000; } }
@keyframes t4h-kart-head { from { stroke-dashoffset: -28; } to { stroke-dashoffset: -1028; } }   /* la testa sta davanti alla coda */
/* testata fuori vista (t4-hero.js): i giri si fermano, anche la scadenza che pulsa */
.t4h.is-away .t4h__track *, .t4h.is-away .t4h__word, .t4h.is-away .t4-dl.is-urgent { animation-play-state: paused; }
/* tablet: nella fascia in alto a destra, sopra i box dei numeri (prima la pista
   scendeva fino a 940px e traguardo e scie passavano dentro i box) */
@media (min-width: 600px) and (max-width: 991px) { .t4h__track--fx { opacity: .8; right: -24%; top: 2.5rem; width: 68%; } }
/* telefoni: pista dietro il titolo con più contrasto (a .55 non si vedeva quasi).
   Mai specchiata (29/10/2026): è il disegno vero di Lonato, al contrario è un'altra pista */
@media (max-width: 599px) {
  .t4h__track--fx { right: -10%; top: 3.5rem; width: 100%; }   /* pista intera (tornante a sinistra, anello a destra) appena oltre il bordo destro */
  .t4h__track--fx path { stroke: rgba(255, 255, 255, .3); }
  .t4h__track .t4h__asphalt { stroke: rgba(255, 255, 255, .07); }
  .t4h__track .t4h__lane { stroke: rgba(134, 160, 255, .5); }
  /* a questa scala i kart erano puntini di 4px */
  .t4h__track .t4h__kart--head { stroke-width: 15; }
  .t4h__track .t4h__kart--halo { stroke-width: 34; }
  .t4h__track .t4h__kart--tail { stroke-width: 5; }
}

/* contenuto */
.t4h__inner {
  align-items: center;
  display: grid;
  gap: 3.5rem;
  grid-template-columns: minmax(0, 1fr);
  margin: 0 auto;
  position: relative;
  width: 89.23%;   /* stessa colonna di .u-0469 del tema: titolo, logo e sezioni sullo stesso bordo */
}
@media (min-width: 992px) {
  .t4h__inner { gap: 5rem; grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); max-width: 108.375rem; width: 90.94%; }
  .t4h--wide .t4h__inner, .t4h--compact .t4h__inner { grid-template-columns: minmax(0, 1fr); }
}
/* l'entrata parte dopo la tendina del tema (le colonne si aprono entro 0,56-0,82s),
   altrimenti si vedeva solo la coda. Niente attesa su html.is-loading: con una
   connessione lenta il testo resterebbe invisibile a tendina già aperta */
.t4h__text > *, .t4h__aside, .t4h__facts, .t4h__below { animation: t4h-up .9s cubic-bezier(.215, .61, .355, 1) both; }
.t4h__text > * { animation-delay: .55s; }
.t4h__text > :nth-child(2) { animation-delay: .63s; }
.t4h__text > :nth-child(3) { animation-delay: .71s; }
.t4h__text > :nth-child(4) { animation-delay: .79s; }
.t4h__text > :nth-child(5) { animation-delay: .87s; }
.t4h__aside { animation-delay: .8s; }
.t4h__facts { animation-delay: .95s; }
.t4h__facts.is-wait { animation-play-state: paused; }   /* is-wait (dal JS): l'entrata aspetta che i numeri siano in vista */
.t4h__below { animation-delay: 1s; }

.t4h__crumb {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  font-family: var(--font-family-body), monospace;
  font-size: 1rem;
  gap: .6rem;
  letter-spacing: .08em;
  margin: 0 0 1.8rem;
  opacity: .7;
  text-transform: uppercase;
}
.t4h__crumb a { color: inherit; text-decoration: none; }
.t4h__crumb a:hover { opacity: 1; text-decoration: underline; }
/* touch: "Home" era un bersaglio di 23px; più alto senza spostare la riga */
@media (pointer: coarse) { .t4h__crumb a { margin-block: -.75rem; padding-block: .75rem; } }
.t4h__eyebrow {
  align-items: center;
  background: rgba(255, 255, 255, .10);
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 999px;
  display: inline-flex;
  font-family: var(--font-family-body), monospace;
  font-size: 1rem;
  gap: .8rem;
  letter-spacing: .08em;
  margin: 0 0 2rem;
  padding: .55rem 1.2rem .55rem .9rem;
  text-transform: uppercase;
}
.t4h__eyebrow:before { animation: t4h-pulse 2.2s infinite; background: rgb(var(--t4h-blue-hi)); border-radius: 50%; content: ""; height: .65rem; width: .65rem; }
.t4h__title {
  color: #fff;
  font-family: var(--font-family-headings), sans-serif;
  /* tetto in px: da 1700px la root sale e MANUTENZIONE (7,53em) finiva sotto la foto;
     90 e non 96: tra 1540 e 1699 la colonna del testo è 695px e a 96px la parola andava a capo */
  font-size: clamp(4.2rem, 6vw, 90px);
  font-weight: 400;
  hyphens: auto;
  letter-spacing: -.025em;
  line-height: .92;
  margin: 0;
  overflow-wrap: anywhere;   /* rete di sicurezza per titoli lunghi dal CMS */
  text-transform: uppercase;
}
.t4h__title span { color: transparent; display: block; -webkit-text-stroke: 1.5px rgba(255, 255, 255, .9); }
.t4h--compact .t4h__title { font-size: clamp(4rem, 6vw, 7.2rem); }
.t4h__lead { color: rgba(255, 255, 255, .84); font-size: 1.55rem; line-height: 1.6; margin: 2.2rem 0 0; max-width: 46rem; }
.t4h__cta { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2.8rem; }

.t4h-btn {
  align-items: center;
  border: 1px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex;
  font-family: var(--font-family-headings), sans-serif;
  font-size: 1.15rem;
  gap: .7rem;
  letter-spacing: .07em;
  line-height: 1;
  padding: 1.2rem 1.9rem;
  text-decoration: none;
  text-transform: uppercase;
  transition: background .25s ease, color .25s ease, transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.t4h-btn svg { flex: 0 0 auto; transition: transform .25s ease; }
.t4h-btn:hover svg { transform: translate(.2rem, -.2rem); }
/* il colore va ripetuto in ogni :hover: altrimenti vince a:hover di Bootstrap
   nel tema (#0a58ca, specificità 0,1,1) e il testo sparisce sul fondo blu */
.t4h-btn--light { background: #fff; color: rgb(var(--t4h-blue)); }
.t4h-btn--light:hover { box-shadow: 0 1rem 2.6rem rgba(3, 10, 50, .35); color: rgb(var(--t4h-blue)); transform: translateY(-.2rem); }
.t4h-btn--ghost { border-color: rgba(255, 255, 255, .42); color: #fff; }
.t4h-btn--ghost:hover { background: rgba(255, 255, 255, .10); border-color: #fff; color: #fff; }
.t4h-btn--blue { background: rgb(var(--t4h-blue)); color: #fff; }
.t4h-btn--blue:hover { background: rgb(var(--t4h-blue-hi)); color: #fff; transform: translateY(-.2rem); }
.t4h-btn[aria-disabled="true"], .t4h-btn:disabled { cursor: not-allowed; opacity: .4; pointer-events: none; transform: none; }

/* sotto i 992px la root è 16px, non 12: le misure sopra uscivano di un terzo più
   grandi (titolo 67px tagliato, testo 25px, bottoni su due righe). Minimo 2rem:
   con 2,5rem MANUTENZIONE esce ancora a 320px. Sta dopo .t4h-btn per vincere sull'ordine */
@media (max-width: 991px) {
  .t4h { padding-top: 8rem; }
  .t4h__title, .t4h--compact .t4h__title { font-size: clamp(2rem, 10.5vw, 4.2rem); }
  .t4h__lead { font-size: 1.0625rem; line-height: 1.55; }
  .t4h-btn { font-size: .875rem; padding: .9rem 1.4rem; }
  .t4h__crumb, .t4h__eyebrow { font-size: .8125rem; }
}

/* lato destro: foto o carosello */
.t4h__aside { position: relative; }
.t4h__media {
  aspect-ratio: 5 / 6;
  border-radius: 2rem;
  box-shadow: 0 3rem 6rem rgba(4, 10, 40, .45);
  margin: 0 0 0 auto;
  max-width: 42rem;
  overflow: hidden;
  position: relative;
}
.t4h__media--wide { aspect-ratio: 5 / 4; }
.t4h__media img { display: block; height: 100%; inset: 0; object-fit: cover; position: absolute; transition: opacity 1.1s ease, transform 6s ease; width: 100%; }
.t4h__media img + img { opacity: 0; }
.t4h__media img.is-on { opacity: 1; transform: scale(1.04); }
.t4h__media:after { background: linear-gradient(180deg, rgba(var(--t4h-blue), 0) 45%, rgba(var(--t4h-blue-deep), .78)); content: ""; inset: 0; position: absolute; }
.t4h__media figcaption { bottom: 1.6rem; left: 1.8rem; position: absolute; right: 1.8rem; z-index: 2; }
.t4h__media figcaption strong { display: block; font-family: var(--font-family-headings), sans-serif; font-size: 2rem; font-weight: 400; text-transform: uppercase; }
.t4h__media figcaption span { font-family: var(--font-family-body), monospace; font-size: 1rem; letter-spacing: .06em; opacity: .8; text-transform: uppercase; }
/* puntini: la barretta è disegnata dal ::before dentro un'area da 24px, così si
   prendono anche col dito; "> *" vale per gli <i> di oggi e per i <button> */
.t4h__dots { display: flex; gap: 0; position: absolute; right: calc(1.6rem - 8px); top: calc(1.6rem - 10px); z-index: 2; }
.t4h__dots > * { align-items: center; -webkit-appearance: none; appearance: none; background: none; border: 0; cursor: pointer; display: flex; justify-content: center; min-height: 24px; min-width: 24px; padding: 0; }
.t4h__dots > ::before { background: rgba(255, 255, 255, .35); border-radius: 999px; content: ""; height: .4rem; transition: width .4s ease, background .4s ease; width: .8rem; }
.t4h__dots > .is-on::before { background: #fff; width: 2.4rem; }
.t4h .t4h__dots > :focus-visible { border-radius: 999px; outline: 2px solid #fff; outline-offset: 2px; }
.t4h__tag {
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  background: rgba(10, 16, 50, .55);
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 1.2rem;
  box-shadow: 0 1.4rem 3rem rgba(3, 8, 32, .35);
  padding: 1rem 1.3rem;
  position: absolute;
  z-index: 3;
}
.t4h__tag strong { display: block; font-family: var(--font-family-headings), sans-serif; font-size: 1.9rem; font-weight: 400; line-height: 1; }
.t4h__tag span { display: block; font-family: var(--font-family-body), monospace; font-size: .9rem; letter-spacing: .06em; margin-top: .35rem; opacity: .75; text-transform: uppercase; }
.t4h__tag--a { left: -1.6rem; top: 14%; }
.t4h__tag--b { bottom: 18%; right: -1.2rem; }
@media (max-width: 991px) { .t4h__tag--a { left: 1rem; } .t4h__tag--b { right: 1rem; } .t4h__media { margin: 0 auto; } }

/* numeri chiave */
.t4h__facts { display: grid; gap: 1rem; grid-column: 1 / -1; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); margin-top: .5rem; }
/* colonne secondo il numero di numeri, non solo la larghezza: con auto-fit su
   tablet restava una card da sola nell'ultima riga (3 = 2+1, 4 = 3+1) */
/* 3 numeri: in tre colonne da 900px. Più stretti i valori lunghi ("≈ 4.500 €",
   "Ø195 mm") andavano a capo con "€" o "mm" da soli: due colonne e il terzo a
   tutta riga, come le card dei piloti */
@media (min-width: 600px) { .t4h__facts:has(> :nth-child(3):last-child) { grid-template-columns: repeat(2, minmax(0, 1fr)); } .t4h__facts:has(> :nth-child(3):last-child) > :last-child { grid-column: 1 / -1; } }
@media (min-width: 900px) { .t4h__facts:has(> :nth-child(3):last-child) { grid-template-columns: repeat(3, minmax(0, 1fr)); } .t4h__facts:has(> :nth-child(3):last-child) > :last-child { grid-column: auto; } }
@media (min-width: 600px) and (max-width: 991px) { .t4h__facts:has(> :nth-child(4):last-child) { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 992px) { .t4h__facts:has(> :nth-child(4):last-child) { grid-template-columns: repeat(4, 1fr); } }
.t4h-fact {
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 1.4rem;
  padding: 1.5rem 1.8rem;
  transition: background .25s ease, transform .25s ease;
}
.t4h-fact:hover { background: rgba(255, 255, 255, .11); transform: translateY(-.2rem); }
/* "> ": solo valore, etichetta e nota del box; il countdown del Calendario ha
   span e small suoi (riga della chiusura iscrizioni) che non vanno toccati */
.t4h-fact > strong { display: block; font-family: var(--font-family-headings), sans-serif; font-size: clamp(2.8rem, 3.2vw, 4rem); font-weight: 400; letter-spacing: -.02em; line-height: 1; }
.t4h-fact > span { display: block; font-family: var(--font-family-body), monospace; font-size: .95rem; letter-spacing: .08em; margin-top: .6rem; opacity: .72; text-transform: uppercase; }
.t4h-fact > small { display: block; font-size: 1.15rem; margin-top: .35rem; opacity: .8; }

/* Calendario: cinque box (eventi, già corsi, da correre, giornate di test,
   countdown alla prossima gara). In flex e non in griglia: regge anche se manca
   il box dei test (API giù) o il countdown (nessuna gara in arrivo) */
.t4h__facts:has(> .t4h-fact--count) { display: flex; flex-wrap: wrap; gap: 1rem; }
.t4h__facts:has(> .t4h-fact--count) > .t4h-fact { flex: 1 1 calc(50% - .5rem); min-width: 0; }
.t4h__facts:has(> .t4h-fact--count) > .t4h-fact--count { flex-basis: 100%; }
@media (min-width: 992px) {
  .t4h__facts:has(> .t4h-fact--count) > .t4h-fact { flex-basis: calc(33.333% - .667rem); }
  .t4h__facts:has(> .t4h-fact--count) > .t4h-fact--count { flex: 2 1 calc(66.666% - .5rem); }
}
/* da 1200px i quattro box piccoli due per due accanto al countdown: in fila
   da cinque si allungavano all'altezza del countdown ed erano vuoti per il 60% */
@media (min-width: 1200px) {
  .t4h .t4h__facts:has(> .t4h-fact--count) { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 2.1fr); }   /* .t4h: batte la regola dei 4 numeri (repeat(4, 1fr)) quando manca il box dei test */
  .t4h__facts:has(> .t4h-fact--count) > .t4h-fact--count { grid-column: 3; grid-row: 1 / span 2; }
  /* senza il box dei test (API giù): il terzo prende tutta la seconda riga */
  .t4h__facts:has(> .t4h-fact--count):not(:has(> .t4h-fact--link)) > .t4h-fact:nth-child(3) { grid-column: 1 / span 2; }
  /* il countdown è alto due righe: cifre più grandi e contenuto distribuito */
  .t4h__facts > .t4h-fact--count { justify-content: space-between; padding-block: 1.8rem 2.1rem; }
  .t4h-fact--count .t4h-cd > div { padding: 1.1rem .4rem; }
  .t4h-fact--count .t4h-cd b { font-size: clamp(3rem, 3.3vw, 4.6rem); }
}
/* cifre che contano: nascoste fino alla partenza (t4-hero.js), mai uno "0" fermo */
.t4h [data-count].is-counting { visibility: hidden; }
.t4h-nw { white-space: nowrap; }
/* box "Giornate di test": porta a Prenota un test */
.t4h-fact--link { color: #fff; text-decoration: none; }
.t4h-fact--link:hover { background: rgba(255, 255, 255, .14); border-color: #9fb4ff; color: #fff; }
.t4h-fact--link > span svg { margin-left: .4rem; transition: transform .25s ease; vertical-align: -.1em; }
.t4h-fact--link:hover > span svg { transform: translate(.2rem, -.2rem); }
/* countdown: non è un link, quindi niente effetto al passaggio del mouse */
.t4h-fact--count, .t4h-fact--count:hover { background: linear-gradient(135deg, rgba(72, 104, 255, .42), rgba(255, 255, 255, .07) 70%); transform: none; }
.t4h-fact--count { border-color: rgba(159, 180, 255, .45); box-shadow: 0 1.6rem 3.6rem rgba(4, 10, 40, .35); display: flex; flex-direction: column; gap: .8rem; overflow: hidden; position: relative; }
.t4h-cd__head { display: flex; flex-wrap: wrap; font-family: var(--font-family-body), monospace; font-size: .95rem; gap: .2rem 1rem; justify-content: space-between; letter-spacing: .08em; text-transform: uppercase; }
.t4h-cd__head span { opacity: .75; }
.t4h-cd__head em { color: #9fb4ff; font-style: normal; }
.t4h-cd { display: grid; gap: .6rem; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.t4h-cd > div { background: rgba(255, 255, 255, .1); border-radius: .8rem; overflow: hidden; padding: .8rem .4rem; text-align: center; }
.t4h-cd b { display: block; font-family: var(--font-family-headings), sans-serif; font-size: clamp(2.6rem, 2.6vw, 3.6rem); font-variant-numeric: tabular-nums; font-weight: 400; line-height: 1; }
.t4h-cd i { display: block; font-family: var(--font-family-body), monospace; font-size: .9rem; font-style: normal; letter-spacing: .06em; margin-top: .35rem; opacity: .65; text-transform: uppercase; }
.t4h-cd .is-sec b { color: #9fb4ff; }
.t4h-fact--count > .t4h-cd__race { font-size: 1.15rem; margin: 0; opacity: .85; }
/* chiusura iscrizioni in un div: la regola ".t4h-fact > span" non la tocca, e la riga
   è larga quanto il testo, così la pulsazione (t4-sections.css) parte da sinistra */
.t4h-cd__reg { display: flex; }
.t4h-cd__reg .t4-dl { flex-wrap: nowrap; }   /* icona accanto al testo anche quando il testo va su due righe */
.t4h-cd__live { margin: 0; }
.t4h-cd__live b { display: block; font-family: var(--font-family-headings), sans-serif; font-size: clamp(2.6rem, 2.8vw, 3.8rem); font-weight: 400; line-height: 1; text-transform: uppercase; }
.t4h-cd__bar { background: rgba(255, 255, 255, .12); bottom: 0; height: 3px; left: 0; position: absolute; right: 0; }
.t4h-cd__bar i { background: linear-gradient(90deg, #4868ff, #9fb4ff); display: block; height: 100%; transform: scaleX(var(--p, 0)); transform-origin: left; transition: transform 1.2s cubic-bezier(.215, .61, .355, 1); }
@media (max-width: 599px) {
  .t4h__facts:has(> .t4h-fact--count) > .t4h-fact:not(.t4h-fact--count) { padding: 1.1rem 1.2rem; }
  .t4h__facts:has(> .t4h-fact--count) > .t4h-fact:not(.t4h-fact--count) > strong { font-size: 2.25rem; }
  .t4h__facts:has(> .t4h-fact--count) > .t4h-fact:not(.t4h-fact--count) > span { font-size: .75rem; letter-spacing: .05em; }
  .t4h__facts:has(> .t4h-fact--count) > .t4h-fact:not(.t4h-fact--count) > small { font-size: .8125rem; line-height: 1.4; }
  .t4h-fact--count { padding: 1.2rem 1rem 1.4rem; }
  .t4h-cd { gap: .4rem; }
  .t4h-cd > div { padding: .7rem .2rem; }
  .t4h-cd b { font-size: 2.2rem; }
  .t4h-cd i { font-size: .7rem; letter-spacing: 0; }
  .t4h-cd__head { font-size: .75rem; }
  .t4h-fact--count > .t4h-cd__race { font-size: .9375rem; }
}

/* blocco a tutta larghezza sotto il testo (timeline del calendario, notizie…) */
.t4h__below { grid-column: 1 / -1; }

/* card "prossima gara" (Campionato) */
.t4h-next {
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  background: rgba(8, 14, 48, .45);
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 2rem;
  box-shadow: 0 3rem 6rem rgba(4, 10, 40, .4);
  overflow: hidden;
}
.t4h-next figure { aspect-ratio: 16 / 9; margin: 0; overflow: hidden; position: relative; }
.t4h-next figure img { height: 100%; object-fit: cover; width: 100%; }
.t4h-next__body { padding: 2rem 2.2rem 2.2rem; }
.t4h-next__k { font-family: var(--font-family-body), monospace; font-size: .95rem; letter-spacing: .08em; opacity: .7; text-transform: uppercase; }
.t4h-next__t { font-family: var(--font-family-headings), sans-serif; font-size: 2.6rem; font-weight: 400; line-height: 1.05; margin: .5rem 0 .3rem; text-transform: uppercase; }
.t4h-next__p { font-size: 1.3rem; opacity: .8; }
.t4h-count { display: grid; gap: .6rem; grid-template-columns: repeat(4, 1fr); margin-top: 1.6rem; }
.t4h-count.is-live { display: block; }   /* il giorno di gara: "Si corre oggi" al posto delle cifre */
.t4h-count div { background: rgba(255, 255, 255, .08); border-radius: 1rem; padding: .9rem .4rem; text-align: center; }
.t4h-count b { display: block; font-family: var(--font-family-headings), sans-serif; font-size: 2.6rem; font-variant-numeric: tabular-nums; font-weight: 400; line-height: 1; }
.t4h-count i { display: block; font-family: var(--font-family-body), monospace; font-size:.9rem; font-style: normal; letter-spacing: .06em; margin-top: .35rem; opacity: .65; text-transform: uppercase; }
/* sotto i 390px le quattro caselle non stavano nella card ("SEC" tagliato) */
@media (max-width: 389.98px) { .t4h-count { gap: .4rem; } .t4h-count div { padding: .8rem .2rem; } .t4h-count b { font-size: 2.2rem; } .t4h-count i { font-size: .7rem; letter-spacing: 0; } }

/* spazio tenuto per quello che arriva dalle API (numeri, prossima gara, prima
   pagina, timeline): senza, la testata si allungava e il testo scendeva di
   70-115px all'arrivo dei dati. Misure prese a 1440 e 1920 */
@media (min-width: 992px) {
  .t4h__facts:empty { visibility: hidden; min-height: 11.1rem; }
  .t4h__aside[data-t4h-next]:empty { min-height: 49rem; }
  [data-t4h-news]:empty { min-height: 56rem; }
  .t4h-tl:empty { min-height: 29.5rem; }   /* timeline con card della prossima gara e chiusura iscrizioni, margine compreso (10/2026) */
}
@media (max-width: 991px) { .t4h__facts:empty { display: none; } }
/* Calendario: cinque box con il countdown (riga della chiusura iscrizioni compresa),
   misurati a 995-1199 (due righe) e a 1200-1920 (una riga) */
@media (min-width: 992px) { .t4h[data-t4h="calendario"] .t4h__facts:empty { min-height: 25rem; } }
@media (min-width: 1200px) { .t4h[data-t4h="calendario"] .t4h__facts:empty { min-height: 22rem; } }   /* 2x2 + countdown (10/2026) */
/* sotto i 992px anche il Calendario tiene lo spazio di numeri e timeline: con
   l'API lenta l'elenco gare, già visibile sotto la testata, saltava di 1260px.
   Misure prese a 320-991 (un po' sotto la media, il salto resta verso il basso e
   piccolo); senza dati il JS mette hidden e lo spazio sparisce */
@media (max-width: 991px) {
  .t4h[data-t4h="calendario"] .t4h__facts:empty { display: block; min-height: 37rem; visibility: hidden; }
  .t4h[data-t4h="calendario"] .t4h-tl:empty { min-height: 32.5rem; }
}
@media (min-width: 600px) and (max-width: 767px) {
  .t4h[data-t4h="calendario"] .t4h__facts:empty { min-height: 40rem; }
  .t4h[data-t4h="calendario"] .t4h-tl:empty { min-height: 29.5rem; }
}
@media (max-width: 599px) {
  .t4h[data-t4h="calendario"] .t4h__facts:empty { min-height: 35.5rem; }
  .t4h[data-t4h="calendario"] .t4h-tl:empty { min-height: 31.5rem; }
}
/* Stesso spazio tenuto sotto i 992px per la prima pagina di News e per la
   prossima gara e i numeri di Campionato: con l'API a 600 ms la testata
   passava da 749 a 1514 (News) e 2064px (Campionato) e la prima sezione,
   già in vista, finiva fuori schermo (CLS 0,265). Misure prese a 320-991 con
   i dati veri, un po' sotto il minimo di ogni fascia; senza dati il JS mette
   hidden (prossima gara, prima pagina) e lo spazio sparisce. */
@media (max-width: 991px) {
  [data-t4h-news]:empty { min-height: 47rem; }   /* 757-787px */
  .t4h__aside[data-t4h-next]:empty { min-height: 45rem; }   /* 720-766px */
  .t4h[data-t4h="campionato"] .t4h__facts:empty { display: block; min-height: 29.5rem; visibility: hidden; }   /* tre numeri in colonna: 477-505px */
}
@media (min-width: 600px) and (max-width: 767px) { [data-t4h-news]:empty { min-height: 42.5rem; } }   /* 685-729px */
@media (min-width: 600px) and (max-width: 991px) { .t4h[data-t4h="campionato"] .t4h__facts:empty { min-height: 20.5rem; } }   /* 2 + 1: 329px */
@media (min-width: 768px) and (max-width: 991px) { .t4h__aside[data-t4h-next]:empty { min-height: 48.5rem; } }   /* 785-897px */
@media (min-width: 900px) and (max-width: 991px) {
  .t4h__aside[data-t4h-next]:empty { min-height: 53rem; }   /* 852-897px */
  .t4h[data-t4h="campionato"] .t4h__facts:empty { min-height: 11.5rem; }   /* una riga: 186px */
}
/* card inserite dopo: l'entrata del contenitore è già finita sul box vuoto */
.t4h-next, .t4gz { animation: t4h-up .7s cubic-bezier(.215, .61, .355, 1) both; }

@media (prefers-reduced-motion: reduce) {
  .t4h__word, .t4h__track path, .t4h__text > *, .t4h__aside, .t4h__facts, .t4h__below, .t4h__eyebrow:before, .t4h-next, .t4gz { animation: none !important; }
  .t4h__track path { stroke-dashoffset: 0; }
  .t4h__media img { transition: none; }
  /* pista del Calendario ferma e intera: senza animazione i kart starebbero tutti
     sul traguardo, quindi non si mostrano */
  .t4h__karts, .t4h__start-ring { display: none; }
  .t4h__track .t4h__lane { opacity: 1; }
  .t4h__track .t4h__asphalt { stroke-dashoffset: 0; }
  .t4h-cd__bar i { transition: none; }
}

/* ---------- News: "prima pagina" a gazzetta nella testata ---------- */
.t4gz {
  background: #fbfaf6; border-radius: 1.2rem; box-shadow: 0 30px 70px rgba(4, 9, 40, .38);
  color: #0f1320; display: flex; flex-direction: column; gap: 1.2rem; margin-left: auto;
  max-width: 48rem; padding: 1.8rem 1.8rem 1.4rem; position: relative;
}
.t4gz:before { /* bordo di carta: due righe come un quotidiano */
  border: 1px solid rgba(15, 19, 32, .12); border-radius: .8rem; content: ""; inset: .5rem; pointer-events: none; position: absolute;
}
.t4gz__mast {
  align-items: baseline; border-bottom: 1px solid #0f1320; border-top: 3px solid #0f1320; display: flex;
  font-family: var(--font-family-headings), sans-serif; font-size: 1.15rem; justify-content: space-between;
  letter-spacing: .14em; padding: .55rem 0; text-transform: uppercase;
}
.t4gz__mast span:last-child { font-family: var(--font-family-body), monospace; font-size: .95rem; letter-spacing: .04em; opacity: .7; text-transform: none; }
.t4gz__alert {
  align-items: flex-start; background: #fff3e2; border: 1px solid #f2b366; border-radius: .7rem; color: #7a3a00;
  display: flex; font-size: 1.15rem; gap: .7rem; line-height: 1.4; padding: .8rem 1rem; text-decoration: none; transition: background .2s ease;
}
.t4gz__alert:hover { background: #ffe8c7; color: #7a3a00; }
.t4gz__alert svg { flex: 0 0 auto; margin-top: .15rem; }
.t4gz__alert b { font-family: var(--font-family-body), monospace; font-size: .9rem; letter-spacing: .08em; margin-right: .3rem; text-transform: uppercase; }
.t4gz__lead { color: inherit; display: grid; gap: .7rem; text-decoration: none; }
.t4gz__lead:hover { color: inherit; }   /* niente blu Bootstrap: il segnale è la sottolineatura del titolo */
.t4gz__img { aspect-ratio: 16 / 8; border-radius: .7rem; margin: 0 0 .3rem; overflow: hidden; }
.t4gz__img img { display: block; height: 100%; object-fit: cover; transition: transform 1s cubic-bezier(.215, .61, .355, 1); width: 100%; }
.t4gz__lead:hover .t4gz__img img { transform: scale(1.05); }
.t4gz__kind { color: rgb(var(--t4h-blue)); font-family: var(--font-family-body), monospace; font-size: .95rem; letter-spacing: .1em; text-transform: uppercase; }
.t4gz__kind.is-alert { color: #c2410c; }
.t4gz__title { font-family: var(--font-family-headings), sans-serif; font-size: clamp(2.6rem, 2.7vw, 3.6rem); letter-spacing: -.01em; line-height: .98; margin: 0; text-transform: uppercase; }
.t4gz__lead:hover .t4gz__title { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .2em; }
.t4gz__excerpt { font-size: 1.3rem; line-height: 1.5; margin: 0; opacity: .78; }
.t4gz__more {
  align-items: center; align-self: start; border-bottom: 2px solid currentColor; color: rgb(var(--t4h-blue)); display: inline-flex;
  font-family: var(--font-family-body), monospace; font-size: 1rem; gap: .45rem; letter-spacing: .06em; padding-bottom: .2rem; text-transform: uppercase;
}
.t4gz__more svg { transition: transform .25s ease; }
.t4gz__lead:hover .t4gz__more svg { transform: translateX(4px); }
.t4gz__list { border-top: 1px solid rgba(15, 19, 32, .25); display: grid; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); list-style: none; margin: .2rem 0 0; padding: 0; }
.t4gz__list li { padding: 1rem 1.1rem .2rem 0; }
.t4gz__list li + li { border-left: 1px solid rgba(15, 19, 32, .18); padding-left: 1.1rem; }
.t4gz__list a { color: inherit; display: flex; flex-direction: column; gap: .3rem; text-decoration: none; }
.t4gz__list time { font-family: var(--font-family-body), monospace; font-size:.9rem; opacity: .6; }
.t4gz__kind--s { font-size:.9rem; }
.t4gz__list strong { font-family: var(--font-family-headings), sans-serif; font-size: 1.45rem; font-weight: 400; line-height: 1.08; text-transform: uppercase; }
.t4gz__list a:hover strong { color: rgb(var(--t4h-blue)); }
.t4gz--empty p:last-child { font-size: 1.2rem; margin: 0; opacity: .75; }
@media (max-width: 991px) { .t4gz { margin: 0 auto; } }
@media (max-width: 560px) { .t4gz { padding: 1.3rem; } .t4gz__list li + li { border-left: 0; border-top: 1px solid rgba(15, 19, 32, .14); padding-left: 0; } }
@media (max-width: 991px) {
  .t4gz { gap: .9rem; padding: 1.2rem 1.2rem 1rem; }
  .t4gz__mast { font-size: .85rem; }
  .t4gz__mast span:last-child, .t4gz__kind, .t4gz__more { font-size: .75rem; }
  .t4gz__alert { font-size: .9rem; }
  .t4gz__title { font-size: 1.8rem; }
  .t4gz__excerpt { font-size: 1rem; }
  .t4gz__list strong { font-size: 1.1rem; }
  .t4gz__list time { font-size: .7rem; }
}
/* focus da tastiera nella testata blu e nella pillola */
.t4h a:focus-visible, .t4h button:focus-visible, header.fh-1516 a:focus-visible, header.fh-1516 button:focus-visible { outline: 2px solid #9fb4ff; outline-offset: 3px; }
/* il burger: il tema toglie l'outline con .fh-1516 .fh-0238:focus (0,3,0) */
header.fh-1516 .fh-0238:focus-visible { outline: 2px solid #9fb4ff; outline-offset: 3px; }
/* sul vetro chiaro il focus diventa #2448d8 (--t4n-focus, P1) */
header.fh-1516 a:focus-visible, header.fh-1516 button:focus-visible, header.fh-1516 .fh-0238:focus-visible { outline-color: var(--t4n-focus, #9fb4ff); }
.t4gz a:focus-visible { outline-color: #2448d8; }
/* ==== PKG-D ==== */
/* Campionato, card della prossima gara (K6): "Iscriviti" accanto a "Programma",
   chiusura iscrizioni sotto il conto alla rovescia, riga che spiega quando il
   pulsante porta alla gara dopo (iscrizioni di questa già chiuse). */
.t4h-next__dl { margin: 1.2rem 0 0; }
.t4h-next__dl .t4-dl { font-size: 1rem; }
.t4h-next__cta { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.6rem; }
.t4h-next__alt { font-family: var(--font-family-body), monospace; font-size: .95rem; letter-spacing: .02em; line-height: 1.45; margin: 1rem 0 0; opacity: .8; }
.t4h-next__alt strong { font-weight: 700; }
/* senza "Iscriviti" (iscrizioni chiuse o non ancora aperte) "Programma" resta il pulsante pieno */
.t4h-next__cta:not(:has(> a[data-t4-reg-cta]:not([hidden]))) .t4h-btn--ghost { background: #fff; border-color: #fff; color: rgb(var(--t4h-blue)); }
@media (max-width: 991px) {
  .t4h-next__dl .t4-dl, .t4h-next__alt { font-size: .8125rem; }
  .t4h-next__cta { margin-top: 1.25rem; }
  .t4h-next__cta .t4h-btn { flex: 1 1 auto; justify-content: center; min-height: 2.75rem; }
}
/* ==== /PKG-D ==== */
