/* =============================================================================
   Run Rome The Marathon × Winning Time — tema del mockup v2
   Colori del sito ufficiale (runromethemarathon.com): rosso #E32D4B, nero, bianco;
   accenti ciano #60C4DE e verde #A7CC2E; oro della maglia finisher per i podi.
   Titoli Anton (come il portale Winning Time), testo DM Sans.
   ========================================================================== */
:root {
  --red: #E32D4B;
  --red-600: #CD2944;
  --red-800: #8f1b30;
  --red-50: #fdecef;
  --red-100: #fbd5dc;
  --ink: #111111;
  --ink-2: #222222;
  --ink-3: #32373C;
  --muted: #5b6168;
  --line: rgba(17, 17, 17, .10);
  --line-2: rgba(17, 17, 17, .06);
  --paper: #ffffff;
  --paper-2: #f6f6f4;
  --paper-3: #eeeeeb;
  --cyan: #60C4DE;
  --green: #A7CC2E;
  --gold: #C9A54C;
  --gold-2: #E7C873;
  --silver: #A9B0B7;
  --bronze: #B9774A;
  --male: #1f6fb2;
  --female: #E32D4B;
  /* serie per i confronti (fino a 4 atleti) */
  --s1: #E32D4B;
  --s2: #111111;
  --s3: #2a9fc0;
  --s4: #8aae1c;

  --font-display: 'Anton', 'Impact', 'Arial Narrow', sans-serif;
  --font-body: 'DM Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --radius: 14px;
  --radius-sm: 8px;
  --pill: 999px;
  --shadow: 0 1px 2px rgba(0,0,0,.05), 0 8px 24px rgba(0,0,0,.06);
  --shadow-lg: 0 24px 60px rgba(17,17,17,.18);
  --container: 1280px;
  --gutter: 16px;
  --header-h: 72px;
  --ease: cubic-bezier(.2,.7,.2,1);
}
@media (min-width: 640px) { :root { --gutter: 28px; } }
@media (min-width: 1024px) { :root { --gutter: 48px; --header-h: 88px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--font-body); font-size: 16px; line-height: 1.55;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img, svg, canvas, video { display: block; max-width: 100%; }
.leaflet-container canvas, .leaflet-container img { max-width: none; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
input, select { font: inherit; color: inherit; }
::selection { background: var(--red); color: #fff; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }
.tabnum { font-variant-numeric: tabular-nums; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.display { font-family: var(--font-display); font-weight: 400; text-transform: uppercase; letter-spacing: -.01em; line-height: .95; }
.h1 { font-size: clamp(2.6rem, 7vw, 5.8rem); }
.h2 { font-size: clamp(2rem, 4.4vw, 3.4rem); }
.h3 { font-size: clamp(1.4rem, 2.6vw, 2rem); }
.eyebrow { font-size: .75rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.eyebrow.red { color: var(--red); }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--muted); max-width: 62ch; }
.muted { color: var(--muted); }
.red { color: var(--red); }
.section { padding: clamp(56px, 8vw, 112px) 0; }
.section.tight { padding: clamp(32px, 5vw, 64px) 0; }
.section.dark { background: var(--ink); color: #fff; }
.section.dark .muted, .section.dark .lead, .section.dark .eyebrow { color: rgba(255,255,255,.62); }
.section.gray { background: var(--paper-2); }
.stack > * + * { margin-top: 1rem; }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.grid { display: grid; gap: 20px; }
@media (min-width: 768px) { .grid.c2 { grid-template-columns: repeat(2, minmax(0,1fr)); } .grid.c3 { grid-template-columns: repeat(3, minmax(0,1fr)); } }
@media (min-width: 1024px) { .grid.c4 { grid-template-columns: repeat(4, minmax(0,1fr)); } }
@media (min-width: 640px) and (max-width: 1023px) { .grid.c4 { grid-template-columns: repeat(2, minmax(0,1fr)); } }

/* ---------- pulsanti ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  height: 48px; padding: 0 22px; border-radius: var(--pill); border: 1.5px solid transparent;
  font-weight: 700; font-size: .95rem; text-decoration: none; white-space: nowrap;
  transition: transform .2s var(--ease), background .2s, color .2s, border-color .2s, box-shadow .2s;
}
.btn:active { transform: scale(.97); }
.btn-red { background: var(--red); color: #fff; box-shadow: 0 6px 20px rgba(227,45,75,.35); }
.btn-red:hover { background: var(--red-600); box-shadow: 0 10px 28px rgba(227,45,75,.45); }
.btn-ink { background: var(--ink); color: #fff; }
.btn-ink:hover { background: #000; }
.btn-ghost { background: transparent; border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-white { background: #fff; color: var(--ink); }
.btn-outline-white { border-color: rgba(255,255,255,.5); color: #fff; background: rgba(255,255,255,.04); }
.btn-outline-white:hover { border-color: #fff; background: rgba(255,255,255,.12); }
.btn-sm { height: 38px; padding: 0 16px; font-size: .85rem; }
.btn-icon { width: 44px; height: 44px; padding: 0; border-radius: 50%; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 16px; border-radius: var(--pill);
  background: var(--paper-3); color: rgba(17,17,17,.75); font-weight: 600; font-size: .9rem; border: 0; white-space: nowrap;
  transition: background .2s, color .2s;
}
.chip:hover { background: #e2e2de; }
.chip[aria-pressed="true"], .chip.active { background: var(--ink); color: #fff; }
.chip.active .dot-red, .chip[aria-pressed="true"] .dot-red { background: var(--red); }
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: var(--pill); font-size: .72rem; font-weight: 700; letter-spacing: .02em; background: var(--paper-3); color: var(--ink); }
.badge.ok { background: #eaf4d2; color: #4d6410; }
.badge.warn { background: #fff1d6; color: #8a5a00; }
.badge.ko { background: var(--red-50); color: var(--red-800); }
.badge.info { background: #e3f4f9; color: #1d6f86; }
.badge.dark { background: var(--ink); color: #fff; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 0 rgba(227,45,75,.6); animation: pulse 1.6s infinite; display: inline-block; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(227,45,75,.55); } 70% { box-shadow: 0 0 0 10px rgba(227,45,75,0); } 100% { box-shadow: 0 0 0 0 rgba(227,45,75,0); } }

.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.card.pad { padding: clamp(18px, 2.4vw, 28px); }
.section.dark .card { background: #1a1a1a; border-color: rgba(255,255,255,.08); box-shadow: none; }
.flag { display: inline-block; width: 18px; height: 12px; border-radius: 2px; object-fit: cover; box-shadow: 0 0 0 1px rgba(17,17,17,.1); flex-shrink: 0; }
.flag.lg { width: 24px; height: 16px; }

/* ---------- testata (pillola in vetro, come il portale) ---------- */
.site-header { position: fixed; inset: 0 0 auto 0; z-index: 60; padding-top: 12px; pointer-events: none; transition: transform .35s var(--ease); }
@media (min-width: 1024px) { .site-header { padding-top: 18px; } }
.site-header.hidden { transform: translateY(-120%); }
.site-header .bar {
  pointer-events: auto; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 8px 8px 8px 20px; border-radius: var(--pill);
  background: rgba(255,255,255,.78); backdrop-filter: blur(14px) saturate(1.4); -webkit-backdrop-filter: blur(14px) saturate(1.4);
  border: 1px solid rgba(255,255,255,.6); box-shadow: 0 8px 30px rgba(0,0,0,.08);
}
.site-header .brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.site-header .brand .wt { font-family: var(--font-display); font-size: 1.35rem; text-transform: uppercase; letter-spacing: -.02em; }
.site-header .brand .wt b { color: var(--red); font-weight: 400; }
.site-header .brand .x { color: var(--muted); font-size: .8rem; }
.site-header .brand img { height: 30px; width: auto; }
.site-header nav { display: none; gap: 4px; }
.site-header nav a { padding: 8px 14px; border-radius: var(--pill); text-decoration: none; font-weight: 600; font-size: .92rem; color: rgba(17,17,17,.75); }
.site-header nav a:hover { background: rgba(17,17,17,.06); color: var(--ink); }
@media (min-width: 900px) { .site-header nav { display: flex; } }
.lang { display: inline-flex; gap: 2px; background: rgba(17,17,17,.06); border-radius: var(--pill); padding: 3px; }
.lang button { border: 0; background: transparent; padding: 5px 9px; border-radius: var(--pill); font-size: .75rem; font-weight: 700; color: var(--muted); }
.lang button.on { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,.1); }

/* ---------- testata evento ---------- */
.event-hero { position: relative; color: #fff; background: var(--ink); overflow: hidden; isolation: isolate; }
.event-hero .bg { position: absolute; inset: 0; z-index: -2; background-size: cover; background-position: center 35%; transform: scale(1.08); }
.event-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(17,17,17,.55) 0%, rgba(17,17,17,.25) 40%, rgba(17,17,17,.88) 100%); }
.event-hero .inner { padding-top: calc(var(--header-h) + 40px); padding-bottom: 34px; }
.event-hero.big .inner { min-height: min(92vh, 860px); display: flex; flex-direction: column; justify-content: flex-end; padding-bottom: 48px; }
.event-hero .crumbs { font-size: .82rem; color: rgba(255,255,255,.75); display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.event-hero .crumbs a { text-decoration: none; }
.event-hero .title { margin: 14px 0 10px; font-size: clamp(2.4rem, 7.5vw, 6.4rem); }
.event-hero:not(.big) .title { font-size: clamp(2rem, 5vw, 3.6rem); }
.event-hero .meta { display: flex; gap: 10px 18px; flex-wrap: wrap; align-items: center; color: rgba(255,255,255,.85); font-weight: 500; }
.event-hero .meta span { display: inline-flex; gap: 6px; align-items: center; }
.event-hero .logo-chip { background: #fff; border-radius: 12px; padding: 8px 12px; display: inline-flex; }
.event-hero .logo-chip img { height: 46px; width: auto; }

.event-tabs { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.event-tabs .container { display: flex; align-items: center; gap: 12px; }
.event-tabs .tabs { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; flex: 1; min-width: 0; }
.event-tabs .tabs::-webkit-scrollbar { display: none; }
.event-tabs a.tab { position: relative; padding: 18px 14px; text-decoration: none; font-weight: 600; font-size: .93rem; color: rgba(17,17,17,.6); white-space: nowrap; display: inline-flex; align-items: center; gap: 7px; }
.event-tabs a.tab:hover { color: var(--ink); }
.event-tabs a.tab[aria-current="page"] { color: var(--ink); }
.event-tabs a.tab[aria-current="page"]::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: -1px; height: 3px; border-radius: 3px 3px 0 0; background: var(--red); }
.event-tabs .new { font-size: .62rem; font-weight: 800; letter-spacing: .06em; background: var(--red); color: #fff; padding: 2px 6px; border-radius: var(--pill); }
.event-tabs .cta { display: none; }
@media (min-width: 768px) { .event-tabs .cta { display: inline-flex; } }

/* ---------- piè di pagina (essenziale) ---------- */
.site-footer { background: var(--ink); color: rgba(255,255,255,.6); padding: 36px 0 14px; font-size: .88rem; text-align: center; }
.site-footer a { color: inherit; text-decoration: none; }
.site-footer a:hover { color: #fff; }
.site-footer .company { margin: 0; }
.site-footer .powered { margin: 26px 0 0; display: inline-flex; align-items: center; gap: 6px; font-size: .62rem; letter-spacing: .06em; text-transform: uppercase; color: rgba(255,255,255,.32); }
.site-footer .powered img { height: 15px; width: auto; opacity: .55; }

/* ---------- modale (dialog nativo) ---------- */
dialog.wt-modal { border: 0; padding: 0; border-radius: 18px; width: min(680px, calc(100vw - 24px)); max-height: calc(100vh - 32px); box-shadow: var(--shadow-lg); color: var(--ink); background: #fff; overflow: hidden; }
dialog.wt-modal.wide { width: min(1080px, calc(100vw - 24px)); }
dialog.wt-modal::backdrop { background: rgba(17,17,17,.55); backdrop-filter: blur(4px); }
dialog.wt-modal[open] { animation: modalIn .35s var(--ease); }
@keyframes modalIn { from { opacity: 0; transform: translateY(18px) scale(.98); } to { opacity: 1; transform: none; } }
.wt-modal .m-head { padding: 22px 24px 18px; border-bottom: 1px solid var(--line); display: flex; gap: 16px; align-items: flex-start; }
.wt-modal .m-body { padding: 20px 24px 26px; overflow-y: auto; max-height: calc(100vh - 190px); }
.wt-modal .m-close { margin-left: auto; border: 0; background: transparent; font-size: .9rem; color: var(--muted); padding: 4px 0; font-weight: 600; }
.wt-modal .m-close:hover { color: var(--ink); }
@media (max-width: 560px) { .wt-modal .m-head { padding: 18px 16px 14px; } .wt-modal .m-body { padding: 16px 16px 22px; } }

/* pettorale del modale (grafica del 03/10) */
.bib-box { position: relative; width: 88px; aspect-ratio: 4/3; border: 2px solid var(--ink); border-radius: 4px; background: #fff; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.bib-box::before, .bib-box::after { content: ""; position: absolute; top: -3px; width: 2px; height: 9px; border-radius: 2px; background: var(--ink); }
.bib-box::before { left: 18%; } .bib-box::after { right: 18%; }
.bib-box span { font-weight: 800; font-size: 1.6rem; font-variant-numeric: tabular-nums; line-height: 1; }
.bib-box .brandline { position: absolute; left: 0; right: 0; bottom: 0; height: 6px; background: var(--red); }
@media (min-width: 640px) { .bib-box { width: 100px; } }
.tile { border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; min-width: 0; background: #fff; }
.tile .k { font-size: .7rem; font-weight: 700; color: var(--muted); letter-spacing: .08em; text-transform: uppercase; }
.tile .v { font-size: clamp(1.15rem, 3vw, 1.55rem); font-weight: 800; font-variant-numeric: tabular-nums; margin-top: 2px; }
.tile.strong { border-color: var(--red); background: var(--red-50); }
.tile.strong .v { color: var(--red-800); }
.timeline { list-style: none; margin: 12px 0 0; padding: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 6px; top: 14px; bottom: 14px; width: 2px; background: rgba(17,17,17,.12); }
.timeline li { position: relative; display: grid; grid-template-columns: 22px minmax(0,1fr) auto auto 46px; gap: 10px; align-items: center; padding: 7px 0; }
.timeline li .pt { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--ink); background: #fff; z-index: 1; }
.timeline li.full .pt { background: var(--red); border-color: var(--red); }
.timeline li .nm { font-weight: 600; }
.timeline li .km { color: var(--muted); font-size: .85rem; }
.timeline li .tm { font-weight: 700; font-variant-numeric: tabular-nums; min-width: 72px; text-align: right; }
.timeline li .dl { font-size: .75rem; font-weight: 700; min-width: 46px; text-align: right; }
.dl.up { color: #4d7a0e; } .dl.down { color: var(--red); }

/* barra di confronto fluttuante */
.compare-bar { position: fixed; left: 50%; bottom: 16px; transform: translate(-50%, calc(100% + 40px)); visibility: hidden; z-index: 70; background: var(--ink); color: #fff; border-radius: var(--pill); padding: 8px 8px 8px 18px; display: flex; gap: 12px; align-items: center; box-shadow: var(--shadow-lg); transition: transform .45s var(--ease), visibility 0s .45s; max-width: calc(100vw - 24px); }
.compare-bar.show { transform: translate(-50%, 0); visibility: visible; transition: transform .45s var(--ease); }
.compare-bar .people { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.compare-bar .p { display: inline-flex; align-items: center; gap: 6px; background: rgba(255,255,255,.1); padding: 5px 6px 5px 10px; border-radius: var(--pill); font-size: .82rem; font-weight: 600; white-space: nowrap; }
.compare-bar .p i { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.compare-bar .p button { border: 0; background: rgba(255,255,255,.12); width: 20px; height: 20px; border-radius: 50%; color: #fff; font-size: .7rem; line-height: 1; }

.toast { position: fixed; top: calc(var(--header-h) + 12px); left: 50%; transform: translate(-50%, -20px); opacity: 0; z-index: 90; background: var(--ink); color: #fff; padding: 10px 18px; border-radius: var(--pill); font-weight: 600; font-size: .9rem; transition: all .35s var(--ease); pointer-events: none; box-shadow: var(--shadow-lg); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* campi */
.field { display: grid; gap: 6px; }
.field label { font-size: .78rem; font-weight: 700; color: var(--muted); letter-spacing: .04em; text-transform: uppercase; }
.input, .select { height: 46px; border: 1.5px solid var(--line); border-radius: 10px; padding: 0 14px; background: #fff; width: 100%; min-width: 0; transition: border-color .2s, box-shadow .2s; }
.input:focus, .select:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 4px rgba(17,17,17,.06); }
.search { position: relative; }
.search svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.search .input { padding-left: 42px; }

/* comparse allo scorrimento: solo se il JS c'e' (classe js su <html>) */
.js [data-reveal] { opacity: 0; transform: translateY(26px); }
@media (prefers-reduced-motion: reduce) {
  .js [data-reveal] { opacity: 1 !important; transform: none !important; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}

/* tooltip dei grafici */
.viz-tip { position: fixed; z-index: 95; pointer-events: none; background: var(--ink); color: #fff; padding: 8px 11px; border-radius: 9px; font-size: .8rem; line-height: 1.35; box-shadow: var(--shadow-lg); opacity: 0; transition: opacity .12s; max-width: 260px; }
.viz-tip.show { opacity: 1; }
.viz-tip b { font-weight: 700; }
.viz-tip .t-muted { color: rgba(255,255,255,.65); }
.axis text { font-family: var(--font-body); font-size: 11px; fill: var(--muted); }
.axis path, .axis line { stroke: rgba(17,17,17,.12); }
.gridline line { stroke: rgba(17,17,17,.07); }
.gridline path { display: none; }
.section.dark .axis text { fill: rgba(255,255,255,.6); }
.section.dark .axis path, .section.dark .axis line { stroke: rgba(255,255,255,.15); }
.section.dark .gridline line { stroke: rgba(255,255,255,.08); }
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: .82rem; color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }

/* ---------- schermata di caricamento fra le pagine (07/10) ----------
   html.wt-trans (messa da uno script in <head> prima che la pagina si disegni) copre subito tutto
   di nero: niente lampo della pagina nuova prima che core.js costruisca la schermata vera. */
html.wt-trans::after { content: ""; position: fixed; inset: 0; z-index: 300; background: var(--ink); }
.wt-loader { position: fixed; inset: 0; z-index: 310; background: var(--ink); color: #fff; display: grid; place-items: center; overflow: hidden; clip-path: inset(0 0 0 0); }
.wt-loader.enter { animation: ldIn .55s cubic-bezier(.7,0,.2,1) both; }
.wt-loader.leave { animation: ldOut .7s cubic-bezier(.7,0,.2,1) both; }
@keyframes ldIn { from { clip-path: inset(100% 0 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes ldOut { from { clip-path: inset(0 0 0 0); } to { clip-path: inset(0 0 100% 0); } }
.wt-loader .ph { position: absolute; inset: -4%; background: url('../img/format-foto-maratona.jpg') center/cover; opacity: .16; filter: grayscale(.2) contrast(1.1); animation: ldZoom 2.4s ease-out both; }
.wt-loader::before { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 60%, rgba(227,45,75,.28), transparent 60%), linear-gradient(180deg, rgba(17,17,17,.4), rgba(17,17,17,.9)); z-index: 1; }
@keyframes ldZoom { from { transform: scale(1.12); } to { transform: scale(1); } }
.wt-loader .in { position: relative; z-index: 2; text-align: center; padding: 0 16px; }
.wt-loader .kick { font-size: .72rem; font-weight: 800; letter-spacing: .36em; text-transform: uppercase; color: rgba(255,255,255,.62); }
.wt-loader .big { font-family: var(--font-display); text-transform: uppercase; line-height: .86; letter-spacing: -.01em; margin: 14px 0 16px; font-size: clamp(3.6rem, 15vw, 12rem); }
.wt-loader .big span { display: block; overflow: hidden; }
.wt-loader .big span i { display: block; font-style: normal; animation: ldUp .7s cubic-bezier(.2,.8,.2,1) both; }
.wt-loader .big span:nth-child(2) i { color: var(--red); animation-delay: .08s; }
@keyframes ldUp { from { transform: translateY(105%); } to { transform: none; } }
.wt-loader .to { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: .95rem; letter-spacing: .06em; text-transform: uppercase; animation: ldFade .5s .2s both; }
.wt-loader .to b { color: #fff; background: var(--red); padding: 4px 12px; border-radius: 999px; font-size: .8rem; letter-spacing: .1em; }
@keyframes ldFade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.wt-loader .bar { position: absolute; left: 0; bottom: 0; height: 4px; width: 100%; z-index: 2; background: rgba(255,255,255,.08); }
.wt-loader .bar i { display: block; height: 100%; width: 100%; transform-origin: 0 50%; background: linear-gradient(90deg, var(--red-800), var(--red)); animation: ldBar 1.1s cubic-bezier(.3,.6,.2,1) both; }
@keyframes ldBar { from { transform: scaleX(0); } to { transform: scaleX(.92); } }
.wt-loader.done .bar i { transform: scaleX(1); animation: none; transition: transform .2s; }
.wt-loader .km { position: absolute; z-index: 2; bottom: 18px; right: 20px; font-family: var(--font-display); font-size: 1.1rem; color: rgba(255,255,255,.4); letter-spacing: .04em; }
.wt-loader .logo { position: absolute; z-index: 2; top: 20px; left: 20px; background: #fff; border-radius: 10px; padding: 6px 10px; animation: ldFade .5s .1s both; }
.wt-loader .logo img { height: 34px; width: auto; }
@media (prefers-reduced-motion: reduce) { .wt-loader, .wt-loader * { animation: none !important; } }

/* barra di avanzamento dello scorrimento */
.scroll-progress { position: fixed; top: 0; left: 0; height: 3px; width: 100%; transform-origin: 0 50%; transform: scaleX(0); background: linear-gradient(90deg, var(--red-800), var(--red)); z-index: 80; pointer-events: none; }

/* intro al primo ingresso della sessione */
.wt-intro { position: fixed; inset: 0; z-index: 200; background: var(--ink); color: #fff; display: grid; place-items: center; overflow: hidden; }
.wt-intro .lines { position: absolute; inset: 0; }
.wt-intro .lines path { fill: none; stroke: var(--red); stroke-width: 3; stroke-linecap: round; }
.wt-intro .ttl { position: relative; text-align: center; }
.wt-intro .ttl .a { font-family: var(--font-display); text-transform: uppercase; font-size: clamp(2.6rem, 9vw, 7rem); line-height: .9; display: block; overflow: hidden; }
.wt-intro .ttl .a span { display: inline-block; }
.wt-intro .ttl .b { margin-top: 14px; font-weight: 700; letter-spacing: .3em; font-size: .8rem; color: rgba(255,255,255,.7); text-transform: uppercase; }
.wt-intro .ttl .b b { color: var(--red); }
.wt-intro .skip { position: absolute; bottom: 24px; right: 24px; background: transparent; border: 1px solid rgba(255,255,255,.3); color: rgba(255,255,255,.8); border-radius: 999px; padding: 8px 16px; font-size: .8rem; font-weight: 600; }
/* bordi sfumati della striscia delle tab sul telefono: si capisce che scorre */
@media (max-width: 1100px) {
  .event-tabs .tabs { -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 18px, #000 calc(100% - 28px), transparent 100%); mask-image: linear-gradient(90deg, transparent 0, #000 18px, #000 calc(100% - 28px), transparent 100%); }
}
.btn svg { flex-shrink: 0; }
@media (max-width: 480px) { .wt-modal .btn { padding: 0 12px; font-size: .88rem; gap: .4rem; } }
