/* ==========================================================================
   Home, piano v3 (P3): stile rideradian.com in versione 2.5D
   - .t4hm-hero     testata: scontorno del kart su navy, parallasse, pin
   - .t4hm-mission  missione (bozza) su foto d'azione
   - .t4hm-belief   perché crederci: testo e numeri con la fonte
   - .t4hm-kart     racconto del kart (t4fx.steps)
   - .t4hm-action   aggiunte alla galleria .t4hs (pannelli Academy e T4 Camp)
   - .t4hm-champ    ultima gara, mini classifica, nastro di foto
   - .t4hm-season   la stagione: Italia, Europa, Mondo
   - .t4hm-pros     punti di forza, card a ventaglio
   - .t4hm-parts    anteprima ricambi e ricerca
   - .t4hm-team     diventa un team
   - .t4hm-final    invito finale "a strati"
   Token, .t4-pill e kit da t4-fx.css. Misure in px con clamp(): la root del
   tema cambia valore con la larghezza (12px a 1000-1699, 16px sotto i 992px).
   Ordine: prima lo stato finale, poi il movimento dentro
   (prefers-reduced-motion: no-preference) o nelle classi .is-* che mette il
   JS solo con il movimento attivo: con "riduci movimento" resta il finale.
   ========================================================================== */
.t4hm { --t4hm-gut: max(16px, 4.8vw); --t4hm-pad: clamp(84px, 9vw, 168px); }
.t4hm section[class^="t4hm-"], .t4hm section[class^="t4hm-"] * { box-sizing: border-box; }
.t4hm-wrap { margin-inline: auto; max-width: 1680px; padding-inline: var(--t4hm-gut); width: 100%; }
.t4hm-kicker {
  color: var(--t4-blue);
  font-family: var(--t4-mono);
  font-size: 12px;
  letter-spacing: .12em;
  line-height: 1.4;
  margin: 0 0 16px;
  text-transform: uppercase;
}
[data-t4-theme="dark"] .t4hm-kicker { color: var(--t4-sky); }
.t4hm-h2, .t4hm-h3 {
  color: inherit;
  font-family: var(--t4-head);
  font-weight: 500;
  letter-spacing: -.025em;
  margin: 0;
  text-transform: none;
}
.t4hm-h2 { font-size: var(--t4-h2); line-height: 1; }   /* misura comune dei titoli di sezione (t4-fx.css) */
.t4hm-h3 { font-size: clamp(28px, 2.5vw, 44px); line-height: 1.08; }
.t4hm-head { align-items: flex-end; display: flex; flex-wrap: wrap; gap: 20px 40px; justify-content: space-between; margin-bottom: clamp(32px, 4vw, 64px); }
.t4hm-head .t4hm-h2 { max-width: 18ch; }
/* azzeramenti a specificità minima (:where): prima .t4hm p batteva i margini
   delle singole classi (testo sotto i titoli, nota del costo, foto delle tappe) */
:where(.t4hm) p { margin-top: 0; }
:where(.t4hm) figure { margin: 0; }
/* foto che arrivano dopo (Filament, API): entrano in dissolvenza */
.t4hm img.t4hm-fade { opacity: 0; transition: opacity .6s var(--t4-ease-out); }
.t4hm img.t4hm-fade.is-in { opacity: 1; }

/* --------------------------------------------------------------------------
   1 · Testata. Su desktop (classe .is-pinned, solo con lo smoother e il
   movimento) la sezione è alta 160vh e il palco da 100vh resta fermo: allo
   scroll il testo esce, il kart si rimpicciolisce e diventa una card (la
   pagina era lunga il doppio del piano: il palco ora finisce quando il kart
   è atterrato).
   -------------------------------------------------------------------------- */
.t4hm-hero { background: var(--t4-navy); color: #fff; position: relative; }
.t4hm-hero.is-pinned { height: 160vh; }
.t4hm-hero__stage {
  --kp: 0;          /* avanzamento del palco 0→1 (JS) */
  --kf: 0;          /* cornice della card finale 0→1 (JS) */
  height: 100vh;
  height: 100svh;
  isolation: isolate;
  min-height: 620px;
  overflow: hidden;
  position: relative;
}
.t4hm-hero__stage::before {
  background:
    radial-gradient(ellipse 70% 60% at 62% 52%, rgba(36, 72, 216, .28), rgba(36, 72, 216, 0) 70%),
    linear-gradient(180deg, rgba(14, 20, 48, .55) 0%, rgba(14, 20, 48, 0) 26%),
    linear-gradient(0deg, rgba(14, 20, 48, .96) 0%, rgba(14, 20, 48, .5) 34%, rgba(14, 20, 48, 0) 62%);
  content: "";
  inset: 0;
  pointer-events: none;
  position: absolute;
  z-index: -1;
}
.t4hm-hero__bg { inset: -6%; position: absolute; transform: translate3d(var(--bx, 0px), var(--by, 0px), 0); z-index: -3; }
.t4hm-hero__poster, .t4hm-hero__bg video {
  display: block;
  filter: blur(9px) saturate(.85);
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.2s var(--t4-ease-out);
  width: 100%;
}
.t4hm-hero__poster.is-in, .t4hm-hero__bg video.is-in { opacity: .42; }
/* linee di velocità: tratti sottili che attraversano il palco */
.t4hm-hero__lines { inset: 0; overflow: hidden; pointer-events: none; position: absolute; transform: translate3d(var(--lx, 0px), 0, 0); z-index: -2; }
.t4hm-hero__lines i {
  background: linear-gradient(90deg, rgba(134, 160, 255, 0), rgba(134, 160, 255, .55) 60%, rgba(255, 255, 255, .0));
  display: block;
  height: 1px;
  left: 10%;
  opacity: .5;
  position: absolute;
  width: 34%;
}
.t4hm-hero__lines i:nth-child(1) { top: 30%; left: 4%; width: 28%; }
.t4hm-hero__lines i:nth-child(2) { top: 41%; left: 58%; width: 36%; }
.t4hm-hero__lines i:nth-child(3) { top: 55%; left: 18%; width: 44%; opacity: .35; }
.t4hm-hero__lines i:nth-child(4) { top: 63%; left: 66%; width: 26%; }
.t4hm-hero__lines i:nth-child(5) { top: 71%; left: 34%; width: 30%; opacity: .3; }
.t4hm-hero__lines i:nth-child(6) { top: 22%; left: 40%; width: 22%; opacity: .25; }
@media (prefers-reduced-motion: no-preference) {
  .t4hm-hero__lines i { animation: t4hm-streak 3.6s linear infinite; }
  .t4hm-hero__lines i:nth-child(2) { animation-delay: -1.1s; animation-duration: 2.9s; }
  .t4hm-hero__lines i:nth-child(3) { animation-delay: -2.2s; animation-duration: 4.4s; }
  .t4hm-hero__lines i:nth-child(4) { animation-delay: -.6s; animation-duration: 3.2s; }
  .t4hm-hero__lines i:nth-child(5) { animation-delay: -1.8s; }
  .t4hm-hero__lines i:nth-child(6) { animation-delay: -2.9s; animation-duration: 5s; }
}
@keyframes t4hm-streak { from { transform: translateX(60vw); } to { transform: translateX(-90vw); } }

/* il kart: centro-destra, con riflesso a terra e passata di luce */
.t4hm-hero__kart {
  left: 61%;
  position: absolute;
  top: 45%;
  transform: translate(-50%, -50%) translateY(calc(var(--kp) * 4vh)) scale(calc(1 - var(--kp) * .4));
  width: min(54vw, 980px, 110vh);
  z-index: 1;
}
.t4hm-hero__tilt {
  position: relative;
  transform: perspective(1600px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transform-style: preserve-3d;
  transition: transform .7s var(--t4-ease-out);
}
.t4hm-hero__cut { display: block; filter: drop-shadow(0 34px 38px rgba(0, 0, 0, .5)); height: auto; position: relative; width: 100%; z-index: 1; }
.t4hm-hero__mirror {
  display: block;
  filter: blur(1.5px);
  height: auto;
  left: 0;
  -webkit-mask-image: linear-gradient(to top, rgba(0, 0, 0, .36) 0%, rgba(0, 0, 0, 0) 38%);
  mask-image: linear-gradient(to top, rgba(0, 0, 0, .36) 0%, rgba(0, 0, 0, 0) 38%);
  opacity: .7;
  pointer-events: none;
  position: absolute;
  top: 93%;
  transform: scaleY(-1);
  width: 100%;
}
.t4hm-hero__kart::after {   /* ombra a terra */
  background: radial-gradient(closest-side, rgba(0, 0, 0, .55), rgba(0, 0, 0, 0));
  bottom: -2%;
  content: "";
  height: 14%;
  left: 8%;
  position: absolute;
  width: 84%;
  z-index: 0;
}
.t4hm-hero__sweep {
  background: linear-gradient(105deg, rgba(134, 160, 255, 0) 38%, rgba(160, 182, 255, .7) 50%, rgba(134, 160, 255, 0) 62%) no-repeat;
  background-size: 260% 100%;
  background-position: 120% 0;
  display: none;
  inset: 0;
  -webkit-mask: var(--t4hm-cut) center / 100% 100% no-repeat;
  mask: var(--t4hm-cut) center / 100% 100% no-repeat;
  mix-blend-mode: screen;
  pointer-events: none;
  position: absolute;
  z-index: 2;
}
@media (prefers-reduced-motion: no-preference) {
  .t4hm-hero.has-cut .t4hm-hero__sweep { animation: t4hm-sweep 6s var(--t4-ease) 1.2s infinite; display: block; }
  .t4hm-hero__cut { animation: t4hm-kart-in 1.4s var(--t4-ease-out) .35s both; }
  .t4hm-hero__mirror { animation: t4hm-fade-in 1.6s linear .6s both; }
}
@keyframes t4hm-sweep { 0% { background-position: 120% 0; } 45%, 100% { background-position: -30% 0; } }
@keyframes t4hm-kart-in { from { opacity: 0; transform: translateX(6%) scale(.96); } }
@keyframes t4hm-fade-in { from { opacity: 0; } }
/* cornice della card in cui il kart "atterra" a fine testata */
.t4hm-hero__frame {
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  background: linear-gradient(160deg, rgba(255, 255, 255, .09), rgba(255, 255, 255, .02));
  border: 1px solid var(--t4-hair-dark);
  border-radius: 28px;
  inset: -10% -7% -16%;
  opacity: var(--kf);
  position: absolute;
  z-index: 0;
}
.t4hm-hero__tag {
  bottom: -12%;
  color: var(--t4-sky);
  font-family: var(--t4-mono);
  font-size: 13px;
  left: -3%;
  letter-spacing: .1em;
  margin: 0;
  opacity: var(--kf);
  position: absolute;
  text-transform: uppercase;
  transform: translateY(-100%);
}
.t4hm-hero__tag span { color: #fff; margin-right: 10px; }
.t4hm-hero__inner {
  bottom: clamp(56px, 9vh, 110px);
  left: var(--t4hm-gut);
  max-width: min(940px, 54vw);
  opacity: calc(1 - var(--kp) * 3.2);
  position: absolute;
  transform: translateY(calc(var(--kp) * -90px));
  z-index: 3;
}
.t4hm-hero__title {
  color: #fff;
  font-family: var(--t4-head);
  font-size: clamp(42px, 4.7vw, 88px);
  font-weight: 500;
  letter-spacing: -.035em;
  line-height: .96;
  margin: 0;
  text-shadow: 0 2px 24px rgba(14, 20, 48, .55);
  text-transform: none;
}
.t4hm-hero__title > span { display: block; }
/* da desktop due righe come nel titolo di Filament (a 1920 "racing" andava a capo da solo) */
@media (min-width: 992px) { .t4hm-hero__title > span { white-space: nowrap; } }
.t4hm-hero__lead { font-family: var(--t4-mono); font-size: clamp(14px, 13px + .2vw, 17px); line-height: 1.55; margin: 22px 0 0; max-width: 46ch; opacity: .84; }
.t4hm-hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.t4hm-hero__hint {
  bottom: 22px;
  color: #fff;
  left: 50%;
  opacity: calc(1 - var(--kp) * 6);
  position: absolute;
  text-decoration: none;
  transform: translateX(-50%);
  z-index: 3;
}
.t4hm-hero__hint:hover, .t4hm-hero__hint:focus { color: #fff; }
.t4hm-hero__hint:focus-visible { outline: 2px solid var(--t4-sky); outline-offset: 6px; }
@media (prefers-reduced-motion: no-preference) {
  .t4hm-hero__inner > * { animation: t4hm-up .9s var(--t4-ease-out) both; }
  .t4hm-hero__inner > :nth-child(1) { animation-delay: .55s; }
  .t4hm-hero__inner > :nth-child(2) { animation-delay: .65s; }
  .t4hm-hero__inner > :nth-child(3) { animation-delay: .78s; }
  .t4hm-hero__inner > :nth-child(4) { animation-delay: .88s; }
}
@keyframes t4hm-up { from { opacity: 0; transform: translateY(24px); } }
/* card "Guarda la gara" (solo con un video vero) */
.t4hm-hero__reel {
  bottom: clamp(56px, 9vh, 110px);
  opacity: calc(1 - var(--kp) * 3.2);
  position: absolute;
  right: var(--t4hm-gut);
  width: clamp(200px, 17vw, 280px);
  z-index: 3;
}
.t4hm-hero__reel[hidden] { display: none; }
.t4hm-reel {
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 14px;
  color: #fff;
  cursor: pointer;
  display: block;
  font: inherit;
  padding: 8px;
  text-align: left;
  transition: background-color var(--t4-dur) var(--t4-ease), border-color var(--t4-dur) var(--t4-ease);
  width: 100%;
}
.t4hm-reel:hover { background: rgba(255, 255, 255, .14); border-color: rgba(255, 255, 255, .5); }
.t4hm-reel:focus-visible { outline: 2px solid var(--t4-sky); outline-offset: 3px; }
.t4hm-reel__img { aspect-ratio: 16 / 9; border-radius: 9px; display: block; overflow: hidden; position: relative; }
.t4hm-reel__img img { height: 100%; object-fit: cover; width: 100%; }
.t4hm-reel__play { align-items: center; background: #fff; border-radius: 50%; color: var(--t4-navy); display: grid; height: 40px; justify-items: center; left: 50%; position: absolute; top: 50%; transform: translate(-50%, -50%); width: 40px; }
.t4hm-reel__play svg { height: 14px; margin-left: 2px; width: 14px; }
.t4hm-reel__label { display: block; font-family: var(--t4-mono); font-size: 12px; letter-spacing: .1em; padding: 10px 4px 2px; text-transform: uppercase; }
.t4hm-video { aspect-ratio: 16 / 9; background: #000; display: block; width: 100%; }
.t4hm-video iframe, .t4hm-video video { border: 0; display: block; height: 100%; width: 100%; }
.t4hm-sheet { width: min(980px, 100%); }
.t4hm-sheet__body { clear: both; padding: 8px 24px 28px; }
.t4hm-sheet__body h2 { font-family: var(--t4-head); font-size: 28px; font-weight: 500; letter-spacing: -.02em; margin: 0 0 16px; text-transform: none; }

/* scheda "Prossimo evento" (richiesta 21/10/2026): angolo in basso a destra,
   con "Guarda la gara" sopra se c'è; quattro azioni, spente se manca il link */
.t4hm-hero__side {
  bottom: clamp(56px, 9vh, 110px);
  display: flex;
  flex-direction: column;
  gap: 12px;
  opacity: calc(1 - var(--kp) * 3.2);
  position: absolute;
  right: var(--t4hm-gut);
  width: clamp(280px, 23vw, 360px);
  z-index: 3;
}
.t4hm-hero__side .t4hm-hero__reel { bottom: auto; opacity: 1; position: static; right: auto; width: 100%; }
.t4hm-ev {
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  background: rgba(14, 20, 48, .62);
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 16px;
  color: #fff;
  padding: 14px;
}
.t4hm-ev__k { color: var(--t4-sky); font-family: var(--t4-mono); font-size: 11px; letter-spacing: .1em; margin: 0; text-transform: uppercase; }
.t4hm-ev__k span { color: rgba(255, 255, 255, .7); }
.t4hm-ev__t { font-family: var(--t4-head); font-size: 19px; font-weight: 500; letter-spacing: -.01em; line-height: 1.2; margin: 6px 0 0; overflow-wrap: anywhere; }
.t4hm-ev__p { font-family: var(--t4-mono); font-size: 12px; line-height: 1.4; margin: 4px 0 0; opacity: .8; }
/* "Iscriviti in un passo" (23/10/2026) prende tutta la riga: nella metà andava su due
   righe; sotto, le altre tre azioni in fila */
.t4hm-ev__acts { display: grid; gap: 6px; grid-template-columns: repeat(3, minmax(0, 1fr)); list-style: none; margin: 12px 0 0; padding: 0; }
.t4hm-ev__acts li:first-child { grid-column: 1 / -1; }
/* azioni senza link nascoste (28/10/2026): con 1 o 2 azioni oltre a Iscriviti, colonne piene */
.t4hm-ev__acts.is-n1 { grid-template-columns: minmax(0, 1fr); }
.t4hm-ev__acts.is-n2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.t4hm-ev__acts li { display: flex; min-width: 0; }
.t4hm-ev__a {
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 10px;
  color: #fff;
  display: flex;
  flex-direction: column;
  gap: 2px;
  justify-content: center;
  min-height: 52px;
  padding: 8px 26px 8px 10px;
  position: relative;
  text-decoration: none;
  transition: background-color var(--t4-dur) var(--t4-ease), border-color var(--t4-dur) var(--t4-ease);
  width: 100%;
}
.t4hm-ev__a b { align-items: center; display: flex; font-family: var(--t4-mono); font-size: 12px; font-weight: 700; gap: 6px; letter-spacing: .06em; line-height: 1.2; text-transform: uppercase; }
.t4hm-ev__a small { font-size: 11px; line-height: 1.25; opacity: .78; }
.t4hm-ev__a svg { height: 12px; position: absolute; right: 9px; top: 10px; width: 12px; }
a.t4hm-ev__a:hover { background: rgba(255, 255, 255, .2); border-color: rgba(255, 255, 255, .5); color: #fff; text-decoration: none; }
a.t4hm-ev__a:focus-visible { outline: 2px solid var(--t4-sky); outline-offset: 2px; }
.t4hm-ev__a.is-main { background: var(--t4-blue); border-color: var(--t4-blue); }
a.t4hm-ev__a.is-main:hover { background: #fff; border-color: #fff; color: var(--t4-navy); }
/* link non ancora disponibile: niente link, bordo tratteggiato e la scritta "Disponibile a breve" */
.t4hm-ev__a.is-off { background: transparent; border-style: dashed; color: rgba(255, 255, 255, .62); cursor: default; padding-right: 10px; }
.t4hm-ev__dot { animation: none; background: #ff4d4d; border-radius: 50%; display: inline-block; height: 7px; width: 7px; }
@media (prefers-reduced-motion: no-preference) { .t4hm-ev__dot { animation: t4hm-ev-blink 1.2s ease-in-out infinite; } }
@keyframes t4hm-ev-blink { 50% { opacity: .3; } }

/* testata con la sequenza 3D (P3b, dati in Filament): canvas al posto dello scontorno */
.t4hm-hero__seq { display: block; height: 100%; inset: 0; position: absolute; width: 100%; z-index: 0; }
.t4hm-hero.has-seq .t4hm-hero__kart, .t4hm-hero.has-seq .t4hm-hero__lines { display: none; }

/* telefono e tablet: palco in colonna, nessun pin, kart sopra il testo */
@media (max-width: 991px) {
  .t4hm-hero__stage { display: flex; flex-direction: column; height: auto; justify-content: flex-end; min-height: max(640px, 100svh); padding: 104px var(--t4hm-gut) 84px; }
  .t4hm-hero__kart { left: auto; margin: auto 0 28px; position: relative; top: auto; transform: none; width: min(100%, 640px); align-self: center; }
  .t4hm-hero__inner { bottom: auto; left: auto; max-width: none; opacity: 1; position: relative; transform: none; }
  .t4hm-hero__reel { bottom: auto; margin-top: 28px; opacity: 1; position: relative; right: auto; width: min(100%, 300px); }
  .t4hm-hero__side { bottom: auto; margin-top: 28px; opacity: 1; position: relative; right: auto; width: min(100%, 460px); }
  /* cliente 30/10/2026: "Guarda la gara" largo quanto la scheda del prossimo evento */
  .t4hm-hero__side .t4hm-hero__reel { margin-top: 0; width: 100%; }
  .t4hm-ev { padding: 16px; }
  .t4hm-ev__a { min-height: 56px; }
  .t4hm-ev__a b { font-size: 13px; }
  .t4hm-ev__a small { font-size: 12px; }
  .t4hm-hero__frame, .t4hm-hero__tag { display: none; }
}
@media (max-width: 600px) {
  .t4hm-hero__cta .t4-pill { flex: 1 1 100%; justify-content: space-between; }
  .t4hm-hero__hint { display: none; }
}

/* --------------------------------------------------------------------------
   2 · Missione: foto d'azione a tutta pagina con parallasse leggera
   -------------------------------------------------------------------------- */
.t4hm-mission { background: var(--t4-navy); color: #fff; isolation: isolate; min-height: 100vh; overflow: hidden; position: relative; }
.t4hm-mission__media { inset: 0; position: absolute; z-index: -2; }
/* alta 126% e alzata del 12%: con la parallasse (da -10% a 0) non resta mai un bordo scoperto */
.t4hm-mission__media img { display: block; height: 126%; object-fit: cover; object-position: 50% 40%; position: absolute; top: -12%; width: 100%; will-change: transform; }
.t4hm-mission::before {
  background:
    linear-gradient(90deg, rgba(14, 20, 48, .9) 0%, rgba(14, 20, 48, .55) 45%, rgba(14, 20, 48, .15) 100%),
    linear-gradient(0deg, rgba(14, 20, 48, .85) 0%, rgba(14, 20, 48, 0) 50%);
  content: "";
  inset: 0;
  position: absolute;
  z-index: -1;
}
.t4hm-mission__inner { display: flex; flex-direction: column; justify-content: flex-end; min-height: 100vh; padding-block: 160px clamp(72px, 12vh, 140px); }
.t4hm-mission__title {
  color: #fff;
  font-family: var(--t4-head);
  font-size: clamp(44px, 5.8vw, 112px);
  font-weight: 500;
  letter-spacing: -.035em;
  line-height: .95;
  margin: 0;
  max-width: 13ch;
  text-transform: none;
}
.t4hm-mission__title > span,
.t4hm-mission__title > .t4fx-split > span:not(.t4fx-w) { display: block; }
/* da desktop le due righe di Filament restano due (a 1440 andava su tre) */
@media (min-width: 992px) {
  .t4hm-mission__title { max-width: none; }
  .t4hm-mission__title > span, .t4hm-mission__title > .t4fx-split > span:not(.t4fx-w) { white-space: nowrap; }
}
.t4hm-mission__text { font-family: var(--t4-mono); font-size: clamp(15px, 14px + .3vw, 19px); line-height: 1.6; margin: 28px 0 34px; max-width: 54ch; opacity: .88; }
.t4hm-mission .t4-pill { align-self: flex-start; }

/* --------------------------------------------------------------------------
   3 · Perché crederci: linea sottile, titolo a sinistra, testo su 2 colonne,
   3 numeri con l'odometro e la fonte
   -------------------------------------------------------------------------- */
.t4hm-belief { background: var(--t4-page); color: var(--t4-navy); padding-block: var(--t4hm-pad); }
.t4hm-belief__grid { border-top: 1px solid var(--t4-hair); display: grid; gap: 32px clamp(32px, 5vw, 96px); grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); padding-top: 28px; }
.t4hm-belief__head .t4hm-h3 { max-width: 16ch; }
.t4hm-belief__text { column-gap: clamp(24px, 3vw, 56px); columns: 2; font-family: var(--t4-mono); font-size: clamp(14px, 13px + .2vw, 17px); line-height: 1.65; padding-top: 30px; }
.t4hm-belief__text p { break-inside: avoid; margin: 0 0 1em; }
.t4hm-belief__nums { display: grid; grid-template-columns: repeat(var(--n, 3), minmax(0, 1fr)); list-style: none; margin: clamp(56px, 6vw, 104px) 0 0; padding: 0; }
.t4hm-belief__nums[hidden] { display: none; }
.t4hm-num { border-left: 1px solid var(--t4-hair); display: flex; flex-direction: column; min-width: 0; padding: 4px clamp(16px, 2vw, 36px) 0; }
.t4hm-num:first-child { border-left: 0; padding-left: 0; }
.t4hm-num__fig { align-items: baseline; display: flex; flex-wrap: wrap; gap: 0 10px; }
.t4hm-num__pre { font-family: var(--t4-mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; width: 100%; }
/* interlinea 1.12: con 1 la cima tonda della cifra successiva del rullo (3, 9)
   affiorava come un trattino sotto il numero */
.t4hm-num__v { font-family: var(--t4-head); font-size: clamp(56px, 5.4vw, 92px); font-variant-numeric: tabular-nums; font-weight: 500; letter-spacing: -.04em; line-height: 1.12; }
.t4hm-num__u { font-family: var(--t4-head); font-size: clamp(18px, 1.6vw, 28px); font-weight: 500; }
.t4hm-num__l { font-family: var(--t4-mono); font-size: 13px; letter-spacing: .04em; line-height: 1.45; margin: 14px 0 0; }
.t4hm-num__src { color: rgba(14, 20, 48, .6); font-family: var(--t4-mono); font-size: 11px; letter-spacing: .04em; line-height: 1.4; margin: 8px 0 0; }
@media (max-width: 991px) {
  .t4hm-belief__grid { grid-template-columns: 1fr; }
  .t4hm-belief__text { padding-top: 0; }
}
@media (max-width: 767px) {
  .t4hm-belief__text { columns: 1; }
  .t4hm-belief__nums { grid-template-columns: 1fr; }
  .t4hm-num { border-left: 0; border-top: 1px solid var(--t4-hair); padding: 22px 0 24px; }
  .t4hm-num:first-child { border-top: 0; padding-top: 0; }
}

/* --------------------------------------------------------------------------
   4 · Il kart: titoli grandi a sinistra (attivo pieno, gli altri al 20%),
   media 4:5 fisso a destra con didascalia in vetro (t4fx.steps, is-stage).
   Telefono (is-stack): elenco con il media piccolo accanto al titolo attivo.
   -------------------------------------------------------------------------- */
.t4hm-kart { background: var(--t4-page); color: var(--t4-navy); padding-block: 0 var(--t4hm-pad); }
.t4hm-kart__head { border-top: 1px solid var(--t4-hair); padding-top: 28px; }
.t4hm-kart__steps {
  --t4fx-steps-cols: minmax(0, 6fr) minmax(0, 5fr);
  --t4fx-steps-ratio: 4 / 5;
  --t4fx-step-h: 26vh;
}
.t4hm-kart__t {
  font-family: var(--t4-head);
  font-size: clamp(30px, 3.3vw, 60px);
  font-weight: 500;
  letter-spacing: -.03em;
  line-height: 1.02;
  margin: 0;
  text-transform: none;
}
.t4hm-kart__t a { color: inherit; display: inline-block; font-family: inherit; font-weight: inherit; margin-block: -7px; padding-block: 7px; text-decoration: none; }
.t4hm-kart__t a:hover { color: var(--t4-blue); }
.t4hm-kart__t a:focus-visible { outline: 2px solid var(--t4-blue); outline-offset: 4px; }
/* link della voce ("Link (testo)" in Filament): riga mono sotto il titolo, box da 40px */
.t4hm-kart__a { align-items: flex-end; align-self: flex-start; border-bottom: 1px solid currentColor; color: var(--t4-navy); display: inline-flex; font-family: var(--t4-mono); font-size: 12px; letter-spacing: .1em; min-height: 40px; padding-bottom: 2px; text-decoration: none; text-transform: uppercase; }
.t4hm-kart__a:hover { color: var(--t4-blue); }
.t4hm-kart__a:focus-visible { outline: 2px solid var(--t4-blue); outline-offset: 4px; }
.t4hm-kart__media { background: #dfe1e8; border-radius: 16px; overflow: hidden; position: relative; }
.t4hm-kart__media img, .t4hm-kart__media video { display: block; height: 100%; object-fit: cover; width: 100%; }
.t4hm-kart__media .t4-ph { border-radius: 16px; height: 100%; }
.t4hm-kart__media figcaption {
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
  background: rgba(14, 20, 48, .42);
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 12px;
  bottom: 14px;
  color: #fff;
  font-family: var(--t4-mono);
  font-size: 13px;
  left: 14px;
  line-height: 1.5;
  padding: 12px 14px;
  position: absolute;
  right: 14px;
}
.t4hm-kart__cta { margin-top: clamp(40px, 5vw, 72px); }
/* con il palco (desktop): titoli in colonna, lo stato lo dà data-status */
.t4hm-kart__steps.is-stage { padding-block: 8vh 14vh; }
.t4hm-kart__steps.is-stage > [data-step] { min-height: var(--t4fx-step-h); }
.t4hm-kart__steps.is-stage :is(.t4hm-kart__t, .t4hm-kart__a) { opacity: .2; transition: opacity .45s var(--t4-ease); }
.t4hm-kart__steps.is-stage [data-step][data-status="active"] :is(.t4hm-kart__t, .t4hm-kart__a),
.t4hm-kart__steps [data-step]:focus-within :is(.t4hm-kart__t, .t4hm-kart__a) { opacity: 1; }
.t4hm-kart__steps.is-stage .t4fx-steps__frame { max-height: calc(100vh - 180px); }
.t4hm-kart__steps.is-stage .t4hm-kart__cap { display: none; }
.t4hm-kart__steps.is-stage .t4fx-steps__frame > [data-step-visual] { border-radius: 16px; }
/* il pallino non compare in Home: la colonna si guida coi titoli */
.t4hm-kart__steps .t4fx-steps__dots { display: none; }
/* elenco (telefono, tablet, "riduci movimento"): titolo e didascalia a
   sinistra, foto piccola 4:5 a destra; col movimento si attenua solo il
   titolo delle voci non attive (didascalie e foto restano leggibili) */
.t4hm-kart__steps.is-stack { display: flex; flex-direction: column; gap: 0; padding-block: 20px 8px; }
.t4hm-kart__steps.is-stack > [data-step] {
  align-items: start;
  border-top: 1px solid var(--t4-hair);
  display: grid;
  gap: 4px 16px;
  grid-template-areas: "t m" "c m" "a m";
  grid-template-columns: minmax(0, 1fr) clamp(96px, 26vw, 200px);
  grid-template-rows: auto auto 1fr;
  padding: 18px 0;
}
.t4hm-kart__steps.is-stack .t4hm-kart__t { font-size: clamp(26px, 6.6vw, 44px); grid-area: t; }
.t4hm-kart__steps.is-stack .t4hm-kart__cap { font-family: var(--t4-mono); font-size: 13px; grid-area: c; line-height: 1.5; margin: 8px 0 0; opacity: .78; }
.t4hm-kart__steps.is-stack .t4hm-kart__media { aspect-ratio: 4 / 5; border-radius: 12px; grid-area: m; }
.t4hm-kart__steps.is-stack .t4hm-kart__a { grid-area: a; justify-self: start; margin-top: 2px; }
.t4hm-kart__steps.is-stack .t4hm-kart__media figcaption { display: none; }
@media (prefers-reduced-motion: no-preference) {
  .t4hm-kart__steps.is-stack.is-live [data-step] > * { transition: opacity .45s var(--t4-ease), transform .6s var(--t4-ease-out); }
  .t4hm-kart__steps.is-stack.is-live [data-step]:not([data-status="active"]):not(:focus-within) .t4hm-kart__t { opacity: .55; }
  .t4hm-kart__steps.is-stack.is-live [data-step]:not([data-status="active"]) .t4hm-kart__media { transform: scale(.96); }
}

/* --------------------------------------------------------------------------
   5 · Il T4 in azione: pannelli dopo le foto (Academy, T4 Camp)
   -------------------------------------------------------------------------- */
/* titolo della galleria (t4-sections.css, maiuscolo come sul Kart): sulla
   Home in minuscolo come gli altri titoli della pagina */
.t4hm-action .t4hs__head h2 { text-transform: none; }
.t4hm-action .t4hm-panel { aspect-ratio: 4 / 5; background: var(--t4-ink); color: #fff; }
.t4hm-panel::after { background: linear-gradient(0deg, rgba(14, 20, 48, .94) 0%, rgba(14, 20, 48, .55) 48%, rgba(14, 20, 48, .1) 100%); content: ""; inset: 0; position: absolute; }
.t4hm-panel__body { bottom: 0; display: flex; flex-direction: column; gap: 10px; left: 0; padding: clamp(18px, 1.8vw, 28px); position: absolute; right: 0; z-index: 1; }
.t4hm-panel__k { color: var(--t4-sky); font-family: var(--t4-mono); font-size: 11px; letter-spacing: .12em; margin: 0; text-transform: uppercase; }
.t4hm-panel__t { color: #fff; font-family: var(--t4-head); font-size: clamp(26px, 2.2vw, 38px); font-weight: 500; letter-spacing: -.02em; line-height: 1; margin: 0; text-transform: none; }
.t4hm-panel__x { font-family: var(--t4-mono); font-size: 13px; line-height: 1.5; margin: 0; opacity: .86; }
.t4hm-panel__a { align-items: flex-end; align-self: flex-start; border-bottom: 1px solid currentColor; color: #fff; display: inline-flex; font-family: var(--t4-mono); font-size: 12px; letter-spacing: .1em; margin-top: -13px; min-height: 40px; padding-bottom: 2px; text-decoration: none; text-transform: uppercase; }
.t4hm-panel__a::before { content: ""; inset: 0; position: absolute; }
.t4hm-panel__a:hover { color: var(--t4-sky); }
.t4hm-panel__a:focus-visible { outline: 2px solid var(--t4-sky); outline-offset: 4px; }

/* --------------------------------------------------------------------------
   6 · Campionato: card "Ultima gara", mini classifica, nastro di foto
   -------------------------------------------------------------------------- */
.t4hm-champ { background: var(--t4-page); color: var(--t4-navy); overflow: hidden; padding-block: var(--t4hm-pad); }
.t4hm-champ__grid[hidden] { display: none; }
.t4hm-champ__grid { display: grid; gap: clamp(16px, 1.6vw, 28px); grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
.t4hm-card { background: #fff; border: 1px solid var(--t4-hair); border-radius: 16px; display: flex; flex-direction: column; min-height: 340px; min-width: 0; padding: clamp(22px, 2.2vw, 36px); }
.t4hm-card[aria-busy="true"] { background: linear-gradient(100deg, #fff 30%, #f3f4f8 50%, #fff 70%) 0 0 / 300% 100%; }
@media (prefers-reduced-motion: no-preference) { .t4hm-card[aria-busy="true"] { animation: t4hm-shimmer 1.6s linear infinite; } }
@keyframes t4hm-shimmer { from { background-position: 100% 0; } to { background-position: -100% 0; } }
.t4hm-card[hidden] { display: none; }
.t4hm-card__k { color: var(--t4-blue); font-family: var(--t4-mono); font-size: 12px; letter-spacing: .1em; margin: 0 0 14px; text-transform: uppercase; }
.t4hm-card__t { font-family: var(--t4-head); font-size: clamp(26px, 2.2vw, 38px); font-weight: 500; letter-spacing: -.02em; line-height: 1.05; margin: 0; text-transform: none; }
.t4hm-card__m { font-family: var(--t4-mono); font-size: 13px; letter-spacing: .04em; margin: 8px 0 0; opacity: .7; }
.t4hm-card__a { align-items: flex-end; align-self: flex-start; border-bottom: 1px solid currentColor; color: var(--t4-navy); display: inline-flex; font-family: var(--t4-mono); font-size: 12px; letter-spacing: .1em; margin-top: auto; min-height: 40px; padding-bottom: 2px; text-decoration: none; text-transform: uppercase; }
.t4hm-card__a:hover { color: var(--t4-blue); }
.t4hm-card__a:focus-visible { outline: 2px solid var(--t4-blue); outline-offset: 4px; }
/* risultati di esempio in attesa di Racemetrics: stesso avviso di t4-results.js */
.t4hm-flag {
  align-self: flex-start;
  background: rgba(245, 158, 11, .12);
  border: 1px solid rgba(245, 158, 11, .5);
  border-radius: 8px;
  color: #92400e;
  display: inline-block;
  font-family: var(--t4-mono);
  font-size: 11px;
  letter-spacing: .08em;
  line-height: 1.4;
  margin: 16px 0 0;
  padding: 6px 10px;
  text-transform: uppercase;
}
.t4hm-top .t4hm-flag { margin: 0 0 18px; }
.t4hm-wins { list-style: none; margin: 24px 0 28px; padding: 0; }
.t4hm-wins li { border-top: 1px solid var(--t4-hair); display: grid; gap: 4px 16px; grid-template-columns: 92px minmax(0, 1fr); padding: 12px 0; }
.t4hm-wins li:last-child { border-bottom: 1px solid var(--t4-hair); }
.t4hm-wins b { font-family: var(--t4-mono); font-size: 12px; font-weight: 400; letter-spacing: .1em; padding-top: 3px; text-transform: uppercase; }
.t4hm-wins span { font-family: var(--t4-head); font-size: clamp(16px, 1.2vw, 20px); line-height: 1.35; }
.t4hm-wins small { color: rgba(14, 20, 48, .6); font-family: var(--t4-mono); font-size: 11px; letter-spacing: .06em; margin-right: 6px; text-transform: uppercase; }
.t4hm-seg { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 22px; }
.t4hm-seg button {
  background: transparent;
  border: 1px solid var(--t4-hair);
  border-radius: 999px;
  color: var(--t4-navy);
  cursor: pointer;
  font-family: var(--t4-mono);
  font-size: 12px;
  letter-spacing: .08em;
  min-height: 40px;
  padding: 0 16px;
  text-transform: uppercase;
  transition: background-color var(--t4-dur) var(--t4-ease), color var(--t4-dur) var(--t4-ease), border-color var(--t4-dur) var(--t4-ease);
}
.t4hm-seg button:hover { border-color: var(--t4-blue); }
.t4hm-seg button[aria-pressed="true"] { background: var(--t4-blue); border-color: var(--t4-blue); color: #fff; }
.t4hm-seg button:focus-visible { outline: 2px solid var(--t4-blue); outline-offset: 2px; }
.t4hm-podium { display: grid; gap: clamp(14px, 1.6vw, 28px); grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); margin-bottom: 28px; }
.t4hm-podium h3 { font-family: var(--t4-mono); font-size: 12px; font-weight: 400; letter-spacing: .1em; margin: 0 0 8px; text-transform: uppercase; }
.t4hm-podium ol { list-style: none; margin: 0; padding: 0; }
.t4hm-podium li { align-items: baseline; border-top: 1px solid var(--t4-hair); display: grid; gap: 10px; grid-template-columns: 18px minmax(0, 1fr) auto; padding: 10px 0; }
.t4hm-podium li i { font-family: var(--t4-mono); font-size: 12px; font-style: normal; opacity: .55; }
.t4hm-podium li span { font-family: var(--t4-head); font-size: clamp(15px, 1.1vw, 18px); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.t4hm-podium li b { font-family: var(--t4-mono); font-size: 13px; font-variant-numeric: tabular-nums; font-weight: 400; }
.t4hm-tape { margin-top: clamp(56px, 6vw, 96px); }
.t4hm-tape figure { border-radius: 12px; height: clamp(170px, 17vw, 280px); overflow: hidden; }
.t4hm-tape img { display: block; height: 100%; object-fit: cover; pointer-events: none; width: auto; }
.t4hm-tape:not(.t4fx-marquee) { display: flex; gap: 16px; overflow-x: auto; padding-inline: var(--t4hm-gut); }
.t4hm-tape:not(.t4fx-marquee) figure { flex: 0 0 auto; }
.t4hm-tape.is-static { padding-inline: var(--t4hm-gut); }
@media (max-width: 991px) {
  .t4hm-champ__grid { grid-template-columns: 1fr; }
  .t4hm-card { min-height: 0; }
}

/* --------------------------------------------------------------------------
   7 · La stagione: mappa con la linea che si disegna (desktop, palco fermo) e
   tappe a destra; telefono: linea verticale semplice accanto alle tappe.
   Scatto sulle tappe senza bloccare la rotella (t4-home.js).
   -------------------------------------------------------------------------- */
.t4hm-season { background: var(--t4-navy); color: #fff; padding-block: var(--t4hm-pad) clamp(40px, 5vw, 80px); position: relative; }
.t4hm-season .t4hm-head { margin-bottom: 0; }
.t4hm-season__body { display: grid; gap: 0 clamp(24px, 4vw, 72px); grid-template-columns: minmax(0, 1fr); margin-inline: auto; max-width: 1680px; padding-inline: var(--t4hm-gut); }
/* la colonna della mappa c'è solo quando la mappa è pronta (desktop, API) */
.t4hm-season__body.has-map { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.t4hm-season__body:not(.has-map) .t4hm-season__stage { display: none; }
.t4hm-season__body:not(.has-map) .t4hm-season__stops { max-width: 820px; }
.t4hm-season__stage { align-self: start; height: 100vh; height: 100svh; min-height: 560px; padding: 120px 0 48px; position: relative; }
.t4hm-map { display: block; height: calc(100% - 60px); width: 100%; }
.t4hm-map__reg path { fill: rgba(134, 160, 255, .05); stroke: rgba(134, 160, 255, .22); stroke-width: .6; }
.t4hm-map__line { fill: none; stroke: var(--t4-sky); stroke-linecap: round; stroke-linejoin: round; stroke-width: 2.2; }
.t4hm-map__ghost { fill: none; stroke: rgba(134, 160, 255, .22); stroke-dasharray: 3 5; stroke-width: 1.2; }
.t4hm-map__pt { fill: var(--t4-navy); stroke: rgba(134, 160, 255, .55); stroke-width: 1.4; transition: fill .3s linear, stroke .3s linear; }
.t4hm-map__pt.is-on { fill: var(--t4-sky); stroke: #fff; }
.t4hm-map__pt.is-hot { fill: #fff; stroke: var(--t4-sky); stroke-width: 3; }
.t4hm-map__lab { fill: rgba(255, 255, 255, .72); font-family: var(--t4-mono); font-size: 9px; letter-spacing: .06em; }
.t4hm-map__out { fill: var(--t4-sky); font-family: var(--t4-mono); font-size: 10px; letter-spacing: .08em; }
.t4hm-season__count { align-items: baseline; bottom: 30px; display: flex; font-family: var(--t4-mono); gap: 14px; left: 0; letter-spacing: .08em; position: absolute; text-transform: uppercase; }
.t4hm-season__count b { color: var(--t4-sky); font-size: clamp(28px, 2.4vw, 42px); font-variant-numeric: tabular-nums; font-weight: 400; letter-spacing: 0; }
.t4hm-season__count span { font-size: 12px; opacity: .75; }
.t4hm-season__stops { counter-reset: none; list-style: none; margin: 0; padding: 0; }
.t4hm-stop { display: flex; flex-direction: column; justify-content: center; padding: 28px 0; }
/* alte quasi uno schermo (accanto alla mappa ferma) solo le tappe vere del
   calendario; quelle statiche di riserva (API giù) restano un elenco compatto */
@media (min-width: 992px) and (prefers-reduced-motion: no-preference) {
  .t4hm-season__body.has-stops .t4hm-stop { min-height: 58vh; padding: 32px 0; }
}
.t4hm-stop__k { color: var(--t4-sky); font-family: var(--t4-mono); font-size: 12px; letter-spacing: .12em; margin: 0 0 14px; text-transform: uppercase; }
.t4hm-stop__t { color: #fff; font-family: var(--t4-head); font-size: clamp(34px, 3.4vw, 60px); font-weight: 500; letter-spacing: -.03em; line-height: 1; margin: 0; text-transform: none; }
.t4hm-stop__n { align-items: baseline; display: flex; flex-wrap: wrap; gap: 6px 12px; margin: 20px 0 0; }
.t4hm-stop__n b { font-family: var(--t4-head); font-size: clamp(48px, 4.4vw, 76px); font-variant-numeric: tabular-nums; font-weight: 500; letter-spacing: -.04em; line-height: 1; }
.t4hm-stop__n span { font-family: var(--t4-head); font-size: clamp(18px, 1.5vw, 26px); }
.t4hm-stop__meta { font-family: var(--t4-mono); font-size: 13px; line-height: 1.6; margin: 16px 0 0; max-width: 48ch; opacity: .82; }
.t4hm-stop__src { font-family: var(--t4-mono); font-size: 11px; margin: 6px 0 0; opacity: .55; }
.t4hm-stop__img { aspect-ratio: 16 / 9; border-radius: 14px; margin-top: 22px; max-width: 460px; overflow: hidden; }
.t4hm-stop__img img { display: block; height: 100%; object-fit: cover; width: 100%; }
.t4hm-stop__img--poster { aspect-ratio: 4 / 5; max-width: 260px; }
.t4hm-stop__a { align-items: flex-end; align-self: flex-start; border-bottom: 1px solid currentColor; color: #fff; display: inline-flex; font-family: var(--t4-mono); font-size: 12px; letter-spacing: .1em; margin-top: 3px; min-height: 40px; padding-bottom: 2px; text-decoration: none; text-transform: uppercase; }
.t4hm-stop__a:hover { color: var(--t4-sky); }
.t4hm-stop__a:focus-visible { outline: 2px solid var(--t4-sky); outline-offset: 4px; }
/* col movimento le tappe non attive si attenuano: sul desktop (mappa accanto)
   tutta la tappa, al telefono solo titolo e numero (il resto si legge) */
@media (prefers-reduced-motion: no-preference) {
  .t4hm-season__body.is-live .t4hm-stop > * { transition: opacity .5s var(--t4-ease); }
  .t4hm-season__body.is-live .t4hm-stop:not(.is-active):not(:focus-within) :is(.t4hm-stop__t, .t4hm-stop__n) { opacity: .55; }
}
@media (prefers-reduced-motion: no-preference) and (min-width: 992px) {
  .t4hm-season__body.is-live .t4hm-stop:not(.is-active):not(:focus-within) > * { opacity: .28; }
}
/* telefono e tablet: niente mappa, linea verticale che si riempie */
@media (max-width: 991px) {
  .t4hm-season__body { display: block; padding-left: calc(var(--t4hm-gut) + 26px); position: relative; }
  .t4hm-season__stage { display: none; }
  .t4hm-season__body::before, .t4hm-season__body::after {
    content: "";
    left: calc(var(--t4hm-gut) + 6px);
    position: absolute;
    top: 48px;
    bottom: 48px;
    width: 2px;
  }
  .t4hm-season__body::before { background: rgba(134, 160, 255, .2); }
  .t4hm-season__body::after { background: var(--t4-sky); transform: scaleY(var(--sp, 1)); transform-origin: top; }
  .t4hm-stop { min-height: 0; padding: 36px 0 4px; position: relative; }
  .t4hm-stop::before { background: var(--t4-navy); border: 2px solid var(--t4-sky); border-radius: 50%; content: ""; height: 12px; left: -25px; position: absolute; top: 40px; width: 12px; }
  .t4hm-stop__img--poster { max-width: 220px; }
}

/* --------------------------------------------------------------------------
   8 · Punti di forza: 3 card a ventaglio (4° tra una e l'altra). Da 768px,
   col movimento, il palco resta fermo e le card arrivano una alla volta.
   -------------------------------------------------------------------------- */
.t4hm-pros { background: var(--t4-page); color: var(--t4-navy); overflow: hidden; position: relative; }
.t4hm-pros.is-pinned { height: 160vh; }
.t4hm-pros__stage { align-items: center; display: flex; flex-direction: column; justify-content: center; min-height: 100vh; padding: var(--t4hm-pad) var(--t4hm-gut); }
.t4hm-pros.is-pinned .t4hm-pros__stage { height: 100vh; min-height: 640px; padding-block: 96px 40px; }
.t4hm-pros__head { margin-bottom: clamp(32px, 4vw, 56px); text-align: center; }
.t4hm-pros__cards { display: flex; justify-content: center; list-style: none; margin: 0; padding: 0; position: relative; width: 100%; }
.t4hm-pro {
  --r: 0deg;
  --pi: 0;           /* arrivo della card 0→1 (JS) */
  border-radius: 18px;
  box-shadow: 0 30px 60px -20px rgba(14, 20, 48, .45);
  color: #fff;
  display: flex;
  flex: 0 0 auto;
  flex-direction: column;
  margin-left: -26px;
  min-height: clamp(380px, 32vw, 480px);
  padding: clamp(22px, 2.2vw, 34px);
  position: relative;
  transform: rotate(var(--r));
  transition: transform .5s var(--t4-ease-out), box-shadow .5s var(--t4-ease-out);
  width: clamp(270px, 24vw, 380px);
}
.t4hm-pro:first-child { margin-left: 0; }
.t4hm-pro:nth-child(1) { --r: -4deg; background: #192B88; z-index: 1; }
.t4hm-pro:nth-child(2) { --r: 0deg; background: #2448d8; top: -14px; z-index: 2; }
.t4hm-pro:nth-child(3) { --r: 4deg; background: #0e1430; z-index: 3; }
@media (hover: hover) {
  .t4hm-pro:hover, .t4hm-pro:focus-within { box-shadow: 0 40px 70px -18px rgba(14, 20, 48, .55); transform: rotate(0deg) translateY(-12px); z-index: 4; }
}
.t4hm-pro__k { color: var(--t4-sky); font-family: var(--t4-mono); font-size: 12px; letter-spacing: .12em; margin: 0; }
.t4hm-pro__t { color: #fff; font-family: var(--t4-head); font-size: clamp(26px, 2.1vw, 36px); font-weight: 500; letter-spacing: -.02em; line-height: 1.05; margin: auto 0 0; padding-top: 40px; text-transform: none; }
.t4hm-pro__fig { align-items: baseline; display: flex; flex-wrap: wrap; gap: 4px 10px; margin: 18px 0 0; }
.t4hm-pro__fig b { font-family: var(--t4-head); font-size: clamp(44px, 3.6vw, 64px); font-weight: 500; letter-spacing: -.04em; line-height: 1; }
.t4hm-pro__fig span { font-family: var(--t4-head); font-size: 20px; }
.t4hm-pro__fig small { font-family: var(--t4-mono); font-size: 11px; letter-spacing: .06em; opacity: .7; width: 100%; }
.t4hm-pro__x { font-family: var(--t4-mono); font-size: 13px; line-height: 1.55; margin: 16px 0 0; opacity: .88; }
.t4hm-pro__a { align-items: flex-end; align-self: flex-start; border-bottom: 1px solid currentColor; color: #fff; display: inline-flex; font-family: var(--t4-mono); font-size: 12px; letter-spacing: .1em; margin-top: 3px; min-height: 40px; padding-bottom: 2px; text-decoration: none; text-transform: uppercase; }
.t4hm-pro__a::before { content: ""; inset: 0; position: absolute; }
.t4hm-pro__a:hover { color: var(--t4-sky); }
.t4hm-pro__a:focus-visible { outline: 2px solid var(--t4-sky); outline-offset: 4px; }
/* arrivo legato allo scroll (solo con .is-pinned, cioè col movimento) */
.t4hm-pros.is-pinned .t4hm-pro {
  opacity: min(1, calc(var(--pi) * 3));
  transform: translateY(calc((1 - var(--pi)) * 70vh)) rotate(calc(var(--r) + (1 - var(--pi)) * 14deg));
  transition: none;
}
@media (max-width: 767px) {
  .t4hm-pros__cards { align-items: stretch; flex-direction: column; gap: 14px; }
  .t4hm-pro { margin-left: 0; min-height: 0; top: 0 !important; transform: none; width: 100%; }
  .t4hm-pro__t { padding-top: 28px; }
}

/* --------------------------------------------------------------------------
   9 · Ricambi: barra di ricerca a pillola e scaffale di t4-shop (righe su "ripiano")
   -------------------------------------------------------------------------- */
.t4hm-parts { background: var(--t4-page); color: var(--t4-navy); padding-block: 0 var(--t4hm-pad); }
.t4hm-parts .t4hm-head { border-top: 1px solid var(--t4-hair); padding-top: 28px; }
.t4hm-search {
  align-items: center;
  background: #fff;
  border: 1px solid var(--t4-hair);
  border-radius: 999px;
  display: flex;
  gap: 10px;
  max-width: 760px;
  min-height: 56px;
  padding: 6px 6px 6px 20px;
  transition: border-color var(--t4-dur) var(--t4-ease), box-shadow var(--t4-dur) var(--t4-ease);
}
.t4hm-search:focus-within { border-color: var(--t4-blue); box-shadow: 0 0 0 3px rgba(36, 72, 216, .15); }
.t4hm-search__i { color: var(--t4-ink); flex: 0 0 auto; height: 20px; width: 20px; }
.t4hm-search input { background: transparent; border: 0; color: var(--t4-navy); flex: 1; font-family: var(--t4-mono); font-size: 15px; min-height: 44px; min-width: 0; outline: 0; padding: 8px 0; }
.t4hm-search input::placeholder { color: rgba(14, 20, 48, .5); }
.t4hm-search__go {
  background: var(--t4-grad);
  border: 0;
  border-radius: 999px;
  color: #fff;
  cursor: pointer;
  font-family: var(--t4-head);
  font-size: 14px;
  letter-spacing: .06em;
  min-height: 44px;
  padding: 0 22px;
  text-transform: uppercase;
}
.t4hm-search__go:focus-visible { outline: 2px solid var(--t4-blue); outline-offset: 3px; }
.t4hm-parts__status { font-family: var(--t4-mono); font-size: 13px; letter-spacing: .04em; margin: 18px 0 0; min-height: 1.5em; }
.t4hm-parts__status a { color: var(--t4-blue); display: inline-block; margin-block: -12px; padding-block: 12px; text-decoration: underline; }
/* lo scaffale è quello di t4-shop.css (card, ripiano, ombra): qui solo le colonne */
.t4hm-shelf { margin: 18px 0 0; }
.t4hm-shelf.t4sh-shelf { --cols: 2; }
@media (min-width: 768px) { .t4hm-shelf.t4sh-shelf { --cols: 3; } }
@media (min-width: 1200px) { .t4hm-shelf.t4sh-shelf { --cols: 6; } }
.t4hm-shelf[aria-busy="true"] { min-height: 420px; }
@media (max-width: 480px) {
  .t4hm-search { padding-left: 16px; }
  .t4hm-search__go { padding: 0 16px; }
  .t4hm-search input { font-size: 14px; }
}

/* --------------------------------------------------------------------------
   10 · Diventa un team: fascia con il gradiente delle testate
   -------------------------------------------------------------------------- */
.t4hm-team { background: var(--t4-grad); color: #fff; padding-block: clamp(64px, 7vw, 120px); }
.t4hm-team__grid { align-items: center; display: grid; gap: clamp(28px, 4vw, 80px); grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.t4hm-team__media { aspect-ratio: 3 / 2; border-radius: 16px; overflow: hidden; }
.t4hm-team__media img { display: block; height: 100%; object-fit: cover; width: 100%; }
.t4hm-team__text p:not(.t4hm-kicker) { font-family: var(--t4-mono); font-size: clamp(14px, 13px + .2vw, 17px); line-height: 1.6; margin: 20px 0 0; max-width: 52ch; opacity: .9; }
.t4hm-team .t4hm-kicker { color: #fff; opacity: .8; }
.t4hm-team__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
@media (max-width: 991px) { .t4hm-team__grid { grid-template-columns: 1fr; } }

/* --------------------------------------------------------------------------
   11 · Invito finale "a strati": sfondo sfocato, titolo gigante, kart che
   sale dal basso, righello a sinistra. 140vh col palco fermo su desktop.
   -------------------------------------------------------------------------- */
.t4hm-final { background: var(--t4-navy); color: #fff; position: relative; }
.t4hm-final.is-pinned { height: 140vh; }
.t4hm-final__stage { --fp: 1; isolation: isolate; min-height: 100vh; min-height: 100svh; overflow: hidden; position: relative; }
.t4hm-final.is-pinned .t4hm-final__stage { --fp: 0; height: 100vh; }
.t4hm-final__bg { inset: -5%; position: absolute; z-index: -2; }
.t4hm-final__bg img { display: block; filter: blur(14px) saturate(.8); height: 100%; object-fit: cover; opacity: .38; width: 100%; }
.t4hm-final__stage::before { background: radial-gradient(ellipse 80% 70% at 50% 100%, rgba(36, 72, 216, .35), rgba(14, 20, 48, 0) 70%), linear-gradient(180deg, rgba(14, 20, 48, .7), rgba(14, 20, 48, .2) 50%, rgba(14, 20, 48, .9)); content: ""; inset: 0; position: absolute; z-index: -1; }
.t4hm-final__ruler { left: var(--t4hm-gut); position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; }
.t4hm-final__inner { align-items: center; display: flex; flex-direction: column; padding: clamp(100px, 13vh, 150px) var(--t4hm-gut) 0; position: relative; text-align: center; z-index: 3; }
.t4hm-final__title {
  color: #fff;
  font-family: var(--t4-head);
  font-size: clamp(48px, 6.6vw, 132px);
  font-weight: 500;
  letter-spacing: -.04em;
  line-height: .92;
  margin: 0;
  max-width: 12ch;
  text-transform: none;
}
.t4hm-final__cta { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 34px; }
.t4hm-final__note { font-family: var(--t4-mono); font-size: 12px; letter-spacing: .1em; margin: 18px 0 0; opacity: .8; text-align: center; text-transform: uppercase; }
.t4hm-final__note[hidden] { display: none; }
.t4hm-final__kart, .t4hm-final__layers img {
  bottom: -9%;
  left: 50%;
  position: absolute;
  transform: translate(-50%, calc((1 - var(--fp)) * 70%));
  width: min(44vw, 820px, 72vh);
  z-index: 1;
}
.t4hm-final__kart img { display: block; filter: drop-shadow(0 30px 40px rgba(0, 0, 0, .55)); height: auto; width: 100%; }
.t4hm-final__layers img { bottom: -10%; height: auto; transform: translate(-50%, calc((1 - var(--fp)) * 110%)); width: 110vw; z-index: 2; }
@media (max-width: 991px) {
  .t4hm-final__stage { display: flex; flex-direction: column; padding-bottom: 0; }
  .t4hm-final__ruler { display: none; }
  .t4hm-final__kart { margin: 40px auto -8%; position: relative; bottom: auto; left: auto; transform: none; width: min(100%, 560px); }
  .t4hm-final__layers { display: none; }
}
@media (max-width: 600px) {
  .t4hm-final__cta .t4-pill { flex: 1 1 100%; justify-content: space-between; }
  /* al telefono la riga del costo sta sopra i bottoni a tutta larghezza */
  .t4hm-final__note { margin: 22px 0 0; order: 1; }
  .t4hm-final__cta { order: 2; margin-top: 18px; }
}

/* "riduci movimento": niente palco fermo, quindi niente tappe alte uno schermo */
@media (prefers-reduced-motion: reduce) {
  .t4hm-stop { min-height: 0; padding: 40px 0; }
}
