/* =========================================================
   Messi tributo - home
   Palette dalla bandiera argentina, impianto da landonorris.com
   ========================================================= */

@font-face {
  font-family: "Mona Sans";
  /* ridotto ai caratteri latini e agli assi usati dal sito (tools: fontTools subset + instancer) */
  src: url("../fonts/mona-sans-vf-latin.woff2") format("woff2");
  font-weight: 400 900;
  font-stretch: 75% 100%;
  font-display: swap;
}
@font-face {
  font-family: "Bodoni Moda";
  src: url("../fonts/bodoni-moda-latin.woff2") format("woff2");
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Bodoni Moda";
  src: url("../fonts/bodoni-moda-italic-latin.woff2") format("woff2");
  font-weight: 400 900;
  font-style: italic;
  font-display: swap;
}

@property --dissolve {
  syntax: "<percentage>";
  inherits: false;
  initial-value: 0%;
}

:root {
  --paper: #f3f5f7;
  --paper-2: #e6ebf0;
  --ink: #0a1424;
  --ink-2: #12213a;
  --ink-3: #1b2d4a;
  --celeste: #75aadb;
  --celeste-soft: #a9cbea;
  --celeste-deep: #2d6dae;
  --sol: #f6b40e;
  --mute: #5e6b7d;
  --mute-dark: #8d9bb0;
  --line: rgba(10, 20, 36, 0.12);
  --line-dark: rgba(243, 245, 247, 0.12);

  --f-sans: "Mona Sans", "Arial Narrow", Arial, sans-serif;
  --f-serif: "Bodoni Moda", Didot, "Times New Roman", serif;

  --gutter: clamp(16px, 2.2vw, 32px);
  --header-h: 72px;
  --radius: 10px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-io: cubic-bezier(0.65, 0, 0.35, 1);

  /* scala z-index */
  --z-flags: 1;
  --z-content: 2;
  --z-header: 50;
  --z-menu: 60;
  --z-loader: 80;
  --z-cursor: 100;
  --z-grain: 90;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-sans);
  font-size: 16px;
  line-height: 1.5;
  font-variation-settings: "opsz" 16;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  overflow-x: clip;
  transition: none;
}
body.is-loading { overflow: hidden; }
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
p { margin: 0; }
h1, h2, h3, h4 { margin: 0; font-weight: 800; }
::selection { background: var(--celeste); color: var(--ink); }

.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;
}

/* Titoli: bold condensato + serif in evidenza (come il mix Mona/Brier della reference) */
.t-display {
  font-family: var(--f-sans);
  font-weight: 850;
  font-stretch: 82%;
  text-transform: uppercase;
  line-height: 0.88;
  letter-spacing: -0.012em;
  font-variation-settings: "opsz" 100;
}
.t-serif {
  font-family: var(--f-serif);
  font-weight: 700;
  font-stretch: normal;
  letter-spacing: -0.015em;
  /* ottica bassa: aste e grazie piu' spesse, si legge anche in celeste */
  font-variation-settings: "opsz" 24;
}
.t-celeste { color: var(--celeste); }
.on-paper .t-celeste, .t-celeste-deep { color: var(--celeste-deep); }

/* ---------- Layer fissi ---------- */
#contours {
  position: fixed; inset: 0; width: 100vw; height: 100vh;
  z-index: 0; pointer-events: none;
}
#flags3d {
  position: fixed; inset: 0; width: 100vw; height: 100vh;
  z-index: var(--z-flags); pointer-events: none;
}
/* niente sporge di lato: su telefono un elemento oltre il bordo allarga la pagina e la fa scorrere in orizzontale */
main { position: relative; z-index: var(--z-content); overflow-x: clip; }
.site-footer { position: relative; }
/* il footer non crea un contesto: la bandiera 3D passa tra lo sfondo della card e i contenuti */
.footer__mid { z-index: 3; }

.progress {
  position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: calc(var(--z-header) + 1);
  transform-origin: 0 50%; transform: scaleX(0);
  background: linear-gradient(90deg, var(--celeste), #fff 50%, var(--celeste));
}

.grain {
  position: fixed; inset: 0; z-index: var(--z-grain); pointer-events: none; opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Cursore a fili ---------- */
#threads {
  position: fixed; inset: 0; width: 100vw; height: 100vh;
  pointer-events: none; z-index: var(--z-cursor);
}
@media (hover: hover) and (pointer: fine) {
  html.has-threads, html.has-threads * { cursor: none !important; }
}

/* ---------- Loader: maglia stilizzata ---------- */
.loader {
  position: fixed; inset: 0; z-index: var(--z-loader);
  pointer-events: none;
}
.loader__bg {
  position: absolute; inset: 0;
  background: var(--celeste);
  -webkit-mask-image: radial-gradient(circle at 50% 40%, transparent calc(var(--dissolve) - 30vmax), #000 var(--dissolve));
          mask-image: radial-gradient(circle at 50% 40%, transparent calc(var(--dissolve) - 30vmax), #000 var(--dissolve));
}
.loader__count {
  position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%);
  font-weight: 700; font-stretch: 90%; font-size: 12px; letter-spacing: 0.08em;
  text-transform: uppercase; color: #fff; display: flex; gap: 10px; align-items: baseline;
}
.loader__count b { font-weight: 800; font-variant-numeric: tabular-nums; font-size: 13px; }
.loader .figure-box svg { width: 100%; height: 100%; overflow: visible; }
.loader .figure-box path { vector-effect: non-scaling-stroke; }
.loader .j-body, .loader .j-collar { stroke-width: 2.6px; }
.loader .j-name, .loader .j-num { stroke-width: 2px; }
.loader .j-cuff { stroke-width: 1.6px; }
.loader .j-stripe { stroke-width: 1px; }

/* Il box della figura e' lo stesso per loader e hero, cosi' la maglia si compone esattamente sopra il numero vero */
.figure-box {
  --fh: min(108svh, 1116px);
  position: absolute;
  left: 0; right: 0;
  bottom: calc(var(--fh) * -0.075);
  height: var(--fh);
  width: calc(var(--fh) * 600 / 1116);
  margin: 0 auto;
}

/* ---------- Header ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: var(--z-header);
  height: var(--header-h); padding: 0 var(--gutter);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  color: var(--ink);
  transition: color 0.5s var(--ease-out);
}
body.is-dark .site-header { color: var(--paper); }
.brand { display: flex; flex-direction: column; line-height: 0.86; text-transform: uppercase; width: max-content; }
.brand__first { font-family: var(--f-serif); font-weight: 600; font-size: 21px; letter-spacing: 0.01em; font-variation-settings: "opsz" 24; }
.brand__last { font-weight: 850; font-stretch: 86%; font-size: 21px; letter-spacing: 0; }
.sol-mark { width: 34px; height: 34px; color: var(--celeste-deep); transition: transform 0.8s var(--ease-out), color .5s; }
body.is-dark .sol-mark { color: var(--celeste); }
.sol-mark:hover { transform: rotate(45deg); }
.header-actions { justify-self: end; display: flex; gap: 8px; align-items: center; }
.pill {
  height: 38px; padding: 0 16px; border-radius: 8px; display: inline-flex; align-items: center; gap: 8px;
  background: var(--celeste); color: var(--ink);
  font-weight: 800; font-stretch: 90%; font-size: 13px; letter-spacing: 0.04em; text-transform: uppercase;
  transition: transform 0.3s var(--ease-out), background 0.3s;
}
.pill:hover { background: var(--celeste-soft); }
.pill:active { transform: scale(0.97); }
.pill svg { width: 15px; height: 15px; }
.menu-btn {
  width: 38px; height: 38px; border-radius: 8px; border: 1.5px solid currentColor;
  display: grid; place-items: center; position: relative;
  transition: background .3s, color .3s;
}
.menu-btn span { position: absolute; height: 1.5px; background: currentColor; transition: transform 0.45s var(--ease-out), width .45s var(--ease-out); }
.menu-btn span:nth-child(1) { width: 14px; transform: translate(-3px, -3px); }
.menu-btn span:nth-child(2) { width: 9px; transform: translate(5px, 3px); }
.menu-open .menu-btn span:nth-child(1) { width: 16px; transform: rotate(45deg); }
.menu-open .menu-btn span:nth-child(2) { width: 16px; transform: rotate(-45deg); }

/* Menu a livelli sfalsati */
.menu {
  position: fixed; inset: 0; z-index: var(--z-menu); pointer-events: none; visibility: hidden;
}
.menu-open .menu { pointer-events: auto; visibility: visible; }
.menu__layer { position: absolute; top: 0; right: 0; bottom: 0; width: min(560px, 100%); transform: translateX(101%); }
.menu__layer:nth-child(1) { background: var(--celeste); }
.menu__layer:nth-child(2) { background: #fff; }
.menu__panel {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(560px, 100%); transform: translateX(101%);
  background: var(--ink); color: var(--paper);
  padding: calc(var(--header-h) + 48px) clamp(24px, 4vw, 56px) 40px;
  display: flex; flex-direction: column; justify-content: space-between;
}
.menu__list { list-style: none; margin: 0; padding: 0; }
.menu__list li { overflow: hidden; }
.menu__list a {
  display: flex; align-items: baseline; gap: 16px; padding: 4px 0;
  font-weight: 850; font-stretch: 82%; text-transform: uppercase; font-size: clamp(40px, 6vw, 68px); line-height: 1;
  transition: color .3s;
}
.menu__list a small { font-family: var(--f-serif); font-size: 14px; color: var(--celeste); font-weight: 600; }
.menu__list a:hover { color: var(--celeste); }
.menu__foot { display: flex; justify-content: space-between; gap: 16px; font-size: 13px; color: var(--mute-dark); }
.menu__scrim { position: absolute; inset: 0; background: rgba(10,20,36,.35); opacity: 0; }

/* ---------- Hero ---------- */
.hero { position: relative; height: 100svh; min-height: 640px; }
.hero__frame {
  position: absolute; inset: 0; overflow: hidden; background: var(--paper);
  clip-path: inset(0 0 0 0 round 0px);
  will-change: clip-path;
}
.hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.hero__title {
  position: absolute; left: 0; right: 0; top: 50%; z-index: 1; margin: 0;
  transform: translateY(-62%); pointer-events: none; user-select: none; text-align: center;
}
.hero__gracias {
  display: flex; justify-content: center; overflow: hidden;
  font-size: min(20vw, 35svh); line-height: 0.82; padding-top: 0.04em;
  font-stretch: 76%; font-weight: 900; letter-spacing: -0.02em; color: var(--celeste);
}
.hero__gracias .ch { display: inline-block; will-change: transform; }
/* contorno visibile solo dentro la sagoma di Messi: maschera = ritaglio della figura, posizionata da main.js */
.hero__title--outline {
  z-index: 3;
  -webkit-mask: url("../img/messi-oggi.webp") no-repeat var(--mx, 0) var(--my, 0) / var(--mw, 0) var(--mh, 0);
  mask: url("../img/messi-oggi.webp") no-repeat var(--mx, 0) var(--my, 0) / var(--mw, 0) var(--mh, 0);
}
.hero__title--outline .hero__gracias { color: transparent; -webkit-text-stroke: 3px #fff; }
.hero__leo {
  position: absolute; right: max(6%, calc(50% - 3.3em)); top: -0.74em;
  font-size: min(10vw, 17svh); line-height: 1; font-style: italic; color: var(--ink);
  font-weight: 700; font-variation-settings: "opsz" 36;
  padding-right: 0.08em;
}
.hero .figure-box { z-index: 2; }
.hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__figure-fallback { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }

.hero-card {
  position: absolute; left: var(--gutter); bottom: var(--gutter); z-index: 3;
  width: 168px; padding: 14px 14px 12px;
  background: rgba(243,245,247,.7); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--line); border-radius: var(--radius);
  clip-path: polygon(0 0, calc(100% - 22px) 0, 100% 22px, 100% 100%, 0 100%);
  font-size: 11px; line-height: 1.25; text-transform: uppercase; font-weight: 700; font-stretch: 90%; letter-spacing: .04em;
}
.hero-card__img { height: 92px; margin: 6px auto 10px; object-fit: contain; filter: drop-shadow(0 8px 14px rgba(10,20,36,.18)); }
.hero-card__row { display: flex; justify-content: space-between; border-top: 1px solid var(--line); padding-top: 8px; }
.hero-card__row b { font-weight: 850; color: var(--celeste-deep); }
.hero-card__label { color: var(--mute); }

.hero-year {
  position: absolute; right: var(--gutter); bottom: var(--gutter); z-index: 3; text-align: right;
}
.hero-year__digits {
  display: flex; justify-content: flex-end; height: 0.86em; overflow: hidden;
  font-weight: 850; font-stretch: 78%; font-size: clamp(56px, 7vw, 104px); line-height: 0.86; letter-spacing: -0.02em;
}
.hero-year__col { display: flex; flex-direction: column; }
.hero-year__col span { height: 0.86em; display: block; }
.hero-year__hint { margin-top: 10px; font-size: 12px; color: var(--mute); max-width: 210px; margin-left: auto; line-height: 1.35; }

/* Marquee e firma della transizione hero -> card */
.hero__marquee {
  position: absolute; left: 0; right: 0; top: 50%; transform: translateY(-50%);
  z-index: 0; pointer-events: none; opacity: 0;
}
.mq { display: flex; white-space: nowrap; overflow: hidden; }
.mq__track { display: flex; flex-shrink: 0; align-items: center; gap: 0.35em; padding-right: 0.35em; will-change: transform; }
.mq--serif { font-family: var(--f-serif); font-weight: 700; font-variation-settings: "opsz" 24; color: var(--celeste); font-size: clamp(64px, 10vw, 150px); line-height: 1; text-transform: uppercase; letter-spacing: -0.02em; }
.mq--bold { font-weight: 850; font-stretch: 80%; color: var(--paper); font-size: clamp(64px, 10vw, 150px); line-height: 0.95; text-transform: uppercase; }
.mq__sun { width: 0.5em; height: 0.5em; color: var(--sol); flex-shrink: 0; }
.hero__signature {
  position: absolute; left: 50%; top: 50%; z-index: 4; width: min(62vw, 720px);
  transform: translate(-50%, -50%); pointer-events: none; color: var(--celeste);
}
.hero__signature svg { width: 100%; height: auto; overflow: visible; }
.hero__sigcap {
  position: absolute; left: 50%; top: calc(15% - 30px); transform: translateX(-50%);
  z-index: 4; color: var(--paper); text-align: center; opacity: 0;
  font-size: 12px; font-weight: 700; font-stretch: 90%; letter-spacing: .06em; text-transform: uppercase;
}
.hero__sigcap svg { width: 26px; height: 26px; margin: 0 auto 8px; color: var(--celeste); }

/* ---------- Sezioni ---------- */
.section { position: relative; padding: clamp(96px, 14vw, 200px) var(--gutter); }
.container { max-width: 1400px; margin: 0 auto; }

/* Manifesto */
.manifesto { text-align: center; color: var(--paper); padding-top: clamp(120px, 16vw, 240px); padding-bottom: clamp(120px, 16vw, 240px); }
.manifesto__mark { width: 44px; height: 44px; margin: 0 auto 28px; color: var(--celeste); }
.manifesto__text {
  max-width: 1180px; margin: 0 auto;
  font-size: clamp(40px, 6.6vw, 104px);
}
.manifesto__text .t-serif { font-weight: 700; }
.manifesto__text .w { display: inline-block; opacity: 0.16; }

/* Numeri */
.numbers { color: var(--paper); padding-top: 40px; }
.numbers__grid {
  display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 0; max-width: 1400px; margin: 0 auto;
  border-top: 1px solid var(--line-dark);
}
.stat { padding: 34px 28px 40px 0; border-right: 1px solid var(--line-dark); position: relative; }
.stat + .stat { padding-left: 28px; }
.stat:last-child { border-right: 0; }
.stat__num {
  font-weight: 880; font-stretch: 76%; font-size: clamp(88px, 13vw, 220px); line-height: 0.82; letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}
.stat:first-child .stat__num { color: var(--celeste); }
.stat__label { margin-top: 18px; font-family: var(--f-serif); font-size: clamp(20px, 2vw, 28px); line-height: 1.1; }
.stat__note { margin-top: 10px; font-size: 14px; color: var(--mute-dark); max-width: 30ch; }
.numbers__row2 { display: grid; grid-template-columns: repeat(4, 1fr); max-width: 1400px; margin: 0 auto; border-top: 1px solid var(--line-dark); }
.numbers__row2 .stat__num { font-size: clamp(56px, 6.4vw, 108px); }
.numbers__row2 .stat:first-child .stat__num { color: inherit; }

/* Galleria sparsa */
.scatter { position: relative; min-height: 290vh; padding: 0; }
.scatter__item { position: absolute; margin: 0; }
.scatter__item img { width: 100%; height: auto; display: block; }
.scatter__item figcaption {
  margin-bottom: 8px; font-size: 10px; font-weight: 750; font-stretch: 90%; letter-spacing: .06em; text-transform: uppercase;
  display: flex; align-items: center; gap: 6px;
}
.scatter__item figcaption::after { content: ""; width: 14px; height: 4px; background: var(--celeste); }
.scatter__item.is-grey img { filter: grayscale(1) contrast(.95); transition: filter .7s var(--ease-out); }
.scatter__item.is-grey:hover img { filter: none; }
.scatter__quote {
  position: absolute; max-width: 340px; font-family: var(--f-serif); font-size: clamp(18px, 1.6vw, 24px); line-height: 1.12; letter-spacing: -0.01em;
}
.scatter__quote b { font-weight: 700; font-style: italic; }
.scatter__quote small { display: block; margin-top: 14px; font-family: var(--f-sans); font-size: 11px; text-transform: uppercase; letter-spacing: .06em; font-weight: 700; opacity: .7; }
.scatter__quote .mini-sig { width: 64px; margin-top: 10px; color: var(--celeste-deep); }

/* Club / Nazionale */
.split { min-height: 100svh; display: grid; place-items: center; overflow: hidden; padding-top: 140px; padding-bottom: 140px; }
.split__cols { position: relative; z-index: 2; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 5vw, 80px); max-width: 820px; }
.split__col { text-align: center; }
.split__title { font-size: clamp(50px, 6vw, 100px); }
.split__title .t-serif { display: block; font-weight: 700; font-size: 0.5em; line-height: 1.05; margin-bottom: 4px; }
.split__text { margin: 18px auto 0; max-width: 30ch; font-size: 15px; line-height: 1.45; color: var(--mute); }
.split__facts { display: flex; justify-content: center; gap: 22px; margin-top: 22px; }
.split__facts div { text-align: center; }
.split__facts b { display: block; font-weight: 880; font-stretch: 78%; font-size: 40px; line-height: 1; }
.split__facts span { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; font-weight: 700; color: var(--mute); }
.split__cut { position: absolute; bottom: 0; z-index: 1; height: 92%; width: auto; max-width: none; pointer-events: none; }
.split__cut--l { left: 0; height: 86%; }
.split__cut--r { right: -6%; height: 74%; }
@media (max-width: 1280px) { .split__cut--l { left: -6%; } .split__cut--r { right: -16%; } }
.split__hand {
  position: absolute; z-index: 3; color: var(--celeste-deep); width: 150px; pointer-events: none;
}

/* Foto piena */
.bleed { position: relative; height: 120svh; overflow: hidden; padding: 0; }
.bleed__img { position: absolute; inset: -10% 0; width: 100%; height: 120%; object-fit: cover; object-position: 55% 18%; }
.bleed__caption {
  position: absolute; left: var(--gutter); bottom: var(--gutter); z-index: 2; color: var(--paper);
  max-width: 520px; font-family: var(--f-serif); font-size: clamp(22px, 2.4vw, 34px); line-height: 1.1;
}
.bleed__caption small { display: block; margin-top: 12px; font-family: var(--f-sans); font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; opacity: .8; }
.bleed::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,20,36,0) 55%, rgba(10,20,36,.65)); pointer-events: none; }

/* Sala dei trofei */
.trophies { color: var(--paper); overflow: hidden; }
.trophies__bg { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.trophies__ghost { position: absolute; opacity: 0.17; filter: saturate(.8) blur(1px); will-change: transform; }
.trophies__head { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: end; max-width: 1400px; margin: 0 auto 72px; position: relative; }
.trophies__title { font-size: clamp(56px, 7.4vw, 124px); }
.trophies__title .t-serif { display: block; }
.trophies__intro { font-size: 16px; max-width: 42ch; color: var(--mute-dark); line-height: 1.5; }
.trophies__grid {
  position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; max-width: 1400px; margin: 0 auto;
}
.trophies__grid > :nth-child(4n+2) { transform: translateY(64px); }
.trophies__grid > :nth-child(4n+4) { transform: translateY(32px); }
.tcard {
  position: relative; aspect-ratio: 1 / 1.02; border-radius: var(--radius);
  background: linear-gradient(180deg, var(--ink-2), #0d1a2d);
  border: 1px solid rgba(243,245,247,.08);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 46px), calc(100% - 46px) 100%, 0 100%);
  overflow: hidden; transition: border-color .4s, background .5s;
}
.tcard:hover { border-color: rgba(117,170,219,.6); }
.tcard__img {
  position: absolute; left: 50%; top: 46%; width: 62%; height: 66%; object-fit: contain;
  transform: translate(-50%, -50%); transition: transform .8s var(--ease-out);
  filter: drop-shadow(0 18px 24px rgba(0,0,0,.45));
}
.tcard:hover .tcard__img { transform: translate(-50%, -54%) scale(1.06) rotate(-3deg); }
.tcard__big {
  position: absolute; left: 50%; top: 44%; transform: translate(-50%, -50%);
  font-weight: 900; font-stretch: 75%; font-size: clamp(90px, 10vw, 160px); line-height: .8; color: transparent;
  -webkit-text-stroke: 1.5px rgba(117,170,219,.55);
}
.tcard__meta {
  position: absolute; left: 16px; right: 56px; bottom: 14px;
  display: flex; justify-content: space-between; align-items: baseline; gap: 8px;
  font-size: 12px; font-weight: 750; font-stretch: 90%; letter-spacing: .02em;
}
.tcard__meta span:last-child { color: var(--celeste); font-variant-numeric: tabular-nums; }
.tcard__count {
  position: absolute; top: 14px; left: 16px; font-family: var(--f-serif); font-size: 20px; color: var(--sol);
}
.tcard--photo { background: #0d1a2d; }
.tcard--photo .tcard__photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .8; transition: opacity .5s, transform 1s var(--ease-out); }
.tcard--photo:hover .tcard__photo { opacity: 1; transform: scale(1.04); }
.tcard--photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(10,20,36,.85)); }
.tcard--photo .tcard__meta { z-index: 2; }
.trophies__more { text-align: center; margin-top: 140px; position: relative; }
.trophies__more p { font-family: var(--f-serif); font-size: clamp(22px, 2.2vw, 30px); line-height: 1.15; max-width: 24ch; margin: 18px auto 22px; }
.btn-small {
  display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 14px; border-radius: 7px;
  background: var(--celeste); color: var(--ink); font-size: 12px; font-weight: 800; font-stretch: 90%; letter-spacing: .05em; text-transform: uppercase;
}
.btn-small svg { width: 12px; height: 12px; }

/* Campioni del mondo */
.champ { color: var(--ink); padding-top: clamp(140px, 16vw, 240px); padding-bottom: clamp(140px, 14vw, 220px); }
.champ__curve { position: absolute; left: 0; right: 0; top: -1px; width: 100%; height: clamp(40px, 6vw, 90px); color: var(--ink); }
.champ__grid { position: relative; display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(24px, 4vw, 64px); max-width: 1400px; margin: 0 auto; align-items: center; }
.champ__title { font-size: clamp(60px, 8.4vw, 140px); }
.champ__title .t-serif { display: block; font-weight: 700; }
.champ__text { margin-top: 26px; max-width: 46ch; font-size: 16px; line-height: 1.55; color: var(--mute); }
.champ__score { display: flex; gap: 28px; margin-top: 28px; }
.champ__score div b { display: block; font-weight: 880; font-stretch: 78%; font-size: 46px; line-height: 1; color: var(--ink); }
.champ__score div span { font-size: 11px; font-weight: 750; letter-spacing: .06em; text-transform: uppercase; color: var(--mute); }
.champ__collage { position: relative; height: clamp(520px, 62vw, 820px); }
.champ__photo { position: absolute; overflow: hidden; border-radius: 4px; box-shadow: 0 30px 60px -30px rgba(10,20,36,.45); }
.champ__photo img { width: 100%; height: 100%; object-fit: cover; }
.champ__p1 { left: 12%; top: 0; width: 70%; height: 78%; }
.champ__p2 { left: -6%; bottom: 2%; width: 34%; height: 34%; }
.champ__p3 { right: -2%; bottom: 8%; width: 30%; height: 30%; }
.champ__gold {
  position: absolute; right: -4%; top: 14%; width: 34%; aspect-ratio: 1.45; border-radius: 4px;
  background: radial-gradient(120% 140% at 20% 10%, #fff3c4 0%, #f6c94a 22%, #d79b12 55%, #a86f08 80%, #f6d36b 100%);
  box-shadow: 0 24px 48px -20px rgba(168,111,8,.6);
  display: grid; place-items: center; color: rgba(90,58,0,.75); overflow: hidden;
}
.champ__gold svg { width: 78%; }
.champ__gold span { position: absolute; bottom: 10px; font-size: 9px; letter-spacing: .3em; text-transform: uppercase; font-weight: 700; }

/* Citta' (lista con anteprima al passaggio) */
.cities { color: var(--ink); padding-top: 60px; }
.cities__list { list-style: none; margin: 0 auto; padding: 0; max-width: 1400px; border-top: 1px solid var(--line); }
.city {
  position: relative; display: grid; grid-template-columns: 110px 1fr auto; align-items: center; gap: 24px;
  padding: 18px 0; border-bottom: 1px solid var(--line);
}
.city__years { font-size: 13px; font-weight: 750; font-stretch: 90%; color: var(--mute); font-variant-numeric: tabular-nums; }
.city__name { font-size: clamp(48px, 7.4vw, 120px); transition: color .4s, transform .6s var(--ease-out); }
.city__name .t-serif { font-weight: 700; }
.city__team { font-family: var(--f-serif); font-size: clamp(16px, 1.4vw, 20px); text-align: right; }
.city:hover .city__name { color: var(--celeste-deep); transform: translateX(14px); }
.cities__preview {
  position: fixed; left: 0; top: 0; width: 300px; aspect-ratio: 4/5; z-index: 40; pointer-events: none;
  border-radius: 6px; overflow: hidden; opacity: 0; transform: translate(-50%, -50%) scale(.8);
}
.cities__preview img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .35s; }
.cities__preview img.is-on { opacity: 1; }

/* Ventaglio di foto */
.fan { text-align: center; color: var(--ink); padding-bottom: clamp(120px, 12vw, 200px); overflow-x: clip; }
.fan__title { font-size: clamp(48px, 6vw, 96px); }
.fan__title .t-serif { display: block; font-weight: 700; }
.fan__stage { position: relative; height: clamp(360px, 40vw, 520px); margin-top: 60px; }
.fan__card {
  position: absolute; left: 50%; top: 50%; width: clamp(170px, 17vw, 250px); aspect-ratio: 3/4.2;
  border-radius: 18px; overflow: hidden; box-shadow: 0 30px 60px -30px rgba(10,20,36,.5);
  transform: translate(-50%, -50%); background: var(--paper-2);
}
.fan__card img { width: 100%; height: 100%; object-fit: cover; }
.fan__caption { margin-top: 36px; font-family: var(--f-serif); font-size: 22px; }

/* ---------- Footer ---------- */
.site-footer { padding: 0 12px 12px; }
.footer-card {
  position: relative; background: var(--ink); color: var(--paper); border-radius: 22px;
  min-height: min(100svh, 980px); overflow: hidden;
  display: grid; grid-template-rows: auto 1fr auto; padding: clamp(80px, 9vw, 130px) var(--gutter) 0;
}
.footer-card__notch {
  position: absolute; top: -1px; left: 50%; transform: translateX(-50%); width: min(420px, 50%); height: 26px;
  color: var(--celeste);
}
.footer__headline { position: relative; z-index: 3; text-align: center; font-size: clamp(54px, 7.6vw, 128px); }
.footer__headline .t-serif { font-weight: 700; }
.footer__sig { position: absolute; z-index: 4; left: 50%; top: clamp(4px, 1.5vw, 24px); width: min(300px, 34vw); transform: translateX(-118%) rotate(-8deg); color: var(--celeste); }
.footer__mid { position: relative; display: grid; grid-template-columns: 1fr auto 1fr; align-items: end; gap: 20px; }
.footer__figure { width: clamp(240px, 30vw, 420px); aspect-ratio: 600 / 760; overflow: hidden; position: relative; }
.footer__figure img { position: absolute; left: 0; top: 0; width: 100%; height: auto; }
.footer__col { padding-bottom: 72px; text-align: center; }
.footer__col h3 { font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--mute-dark); margin-bottom: 10px; }
.footer__col ul { list-style: none; margin: 0; padding: 0; }
.footer__col li a { display: inline-block; padding: 3px 0; font-weight: 850; font-stretch: 84%; text-transform: uppercase; font-size: clamp(18px, 1.7vw, 24px); line-height: 1.12; transition: color .3s; }
.footer__col li a:hover { color: var(--celeste); }
.footer__col li a[aria-disabled="true"] { cursor: default; }
.footer__bar {
  position: relative; z-index: 3; margin: 0 calc(var(--gutter) * -1); border-top: 1px solid var(--line-dark);
  padding: 14px var(--gutter) 18px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: 11px; color: var(--mute-dark);
}
.footer__bar a { text-decoration: underline; text-underline-offset: 3px; }
.footer__bar a:hover { color: var(--celeste); }
.footer__mq { position: relative; z-index: 3; margin: 0 calc(var(--gutter) * -1); padding: 16px 0; border-top: 1px solid var(--line-dark); }
.footer__mq .mq__track { gap: 48px; padding-right: 48px; font-weight: 800; font-stretch: 84%; text-transform: uppercase; font-size: 15px; letter-spacing: .02em; color: var(--mute-dark); }
.footer__mq .mq__track span { display: inline-flex; align-items: center; gap: 12px; }
.footer__mq .mq__track b { color: var(--celeste); font-weight: 800; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .numbers__grid { grid-template-columns: 1fr 1fr; }
  .numbers__grid .stat:first-child { grid-column: 1 / -1; border-right: 0; border-bottom: 1px solid var(--line-dark); }
  .numbers__grid .stat:nth-child(2) { padding-left: 0; }
  .numbers__row2 { grid-template-columns: 1fr 1fr; }
  .numbers__row2 .stat:nth-child(2) { border-right: 0; }
  .numbers__row2 .stat:nth-child(3) { padding-left: 0; border-top: 1px solid var(--line-dark); }
  .numbers__row2 .stat:nth-child(4) { border-top: 1px solid var(--line-dark); }
  .trophies__grid { grid-template-columns: repeat(3, 1fr); }
  .trophies__grid > * { transform: none !important; }
  .trophies__grid > :nth-child(3n+2) { transform: translateY(40px) !important; }
}
@media (max-width: 767px) {
  :root { --header-h: 64px; }
  .pill span { display: none; }
  .pill { padding: 0 11px; }
  .brand__first, .brand__last { font-size: 18px; }
  .figure-box { --fh: min(92svh, 1116px); bottom: calc(var(--fh) * -0.06); }
  .hero-card { width: 132px; padding: 10px; font-size: 10px; }
  .hero-card__img { height: 64px; }
  .hero-year__hint { display: none; }
  .hero-year__digits { font-size: 48px; }
  .hero__title { top: 17%; transform: translateY(-50%); }
  .hero__gracias { font-size: 25vw; }
  .hero__leo { right: 4%; font-size: 13vw; top: -0.55em; }
  .hero__signature { width: 86vw; }
  .hero__sigcap { top: calc(22% - 30px); }
  .numbers__grid, .numbers__row2 { grid-template-columns: 1fr; }
  .stat, .stat + .stat { padding: 26px 0; border-right: 0 !important; border-bottom: 1px solid var(--line-dark); }
  .numbers__row2 .stat { border-top: 0 !important; }
  .scatter { min-height: auto; padding: 80px var(--gutter); display: flex; flex-direction: column; gap: 48px; }
  .scatter__item, .scatter__quote { position: relative !important; left: auto !important; right: auto !important; top: auto !important; width: 100% !important; max-width: 100%; }
  .scatter__item:nth-child(odd) { width: 78% !important; }
  .scatter__item:nth-child(even) { width: 78% !important; align-self: flex-end; }
  .split { padding-bottom: 58svh; place-items: start center; }
  .split__cols { grid-template-columns: 1fr; gap: 56px; }
  .split__cut { height: 50svh; }
  .split__cut--l { left: -4%; }
  .split__cut--r { right: -18%; height: 44svh; }
  /* su telefono verticale la foto e' gia' ritagliata attorno a Messi (picture in index.html) */
  .bleed__img { object-position: 50% 18%; }
  .trophies__head { grid-template-columns: 1fr; }
  .trophies__grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .trophies__grid > * { transform: none !important; }
  .champ__grid { grid-template-columns: 1fr; }
  .champ__collage { height: 120vw; }
  .city { grid-template-columns: 1fr; gap: 4px; padding: 16px 0; }
  .city__team { text-align: left; }
  .cities__preview { display: none; }
  .footer__mid { grid-template-columns: 1fr 1fr; }
  .footer__figure { grid-column: 1 / -1; grid-row: 2; margin: 0 auto; }
  .footer__col { padding-bottom: 24px; }
  .footer__sig { width: 60vw; }
}

/* ---------- Movimento ridotto ---------- */
@media (prefers-reduced-motion: reduce) {
  .loader { display: none; }
  .manifesto__text .w { opacity: 1 !important; }
  .mq__track { animation: none !important; transform: none !important; }
  *, *::before, *::after { transition-duration: 0.01ms !important; }
}

/* Icone da maschera SVG (sole di maggio) */
[data-mask] {
  display: inline-block; background: currentColor;
  -webkit-mask: var(--m) center / contain no-repeat; mask: var(--m) center / contain no-repeat;
}
.sig svg { width: 100%; height: auto; overflow: visible; display: block; }
.mini-sig.sig { width: 72px; margin-top: 12px; color: var(--celeste-deep); }
.champ__gold .sig { color: rgba(90, 58, 0, .72); }

/* Con il menu aperto il pulsante resta sopra il pannello, per poterlo chiudere */
.menu-open .site-header { z-index: calc(var(--z-menu) + 1); }
.menu-open .menu-btn { color: var(--paper); }
