/* ============================================================
   Matteo Masili — Pilota Moto3 · N°46
   Design system Royaletiger · racing dark
   ============================================================ */

/* ---------- Font self-hosted (niente terzi, niente banner) -- */
@font-face {
  font-family: 'Saira Condensed';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/saira-condensed-600-latin.woff2') format('woff2');
}
@font-face {
  font-family: 'Saira Condensed';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/saira-condensed-700-latin.woff2') format('woff2');
}
@font-face {
  font-family: 'Saira Condensed';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('../fonts/saira-condensed-800-latin.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../fonts/inter-var-latin.woff2') format('woff2');
}

/* ---------- Design tokens ----------------------------------- */
:root {
  /* palette dal logo TITINO + tuta gara */
  --bg: #0a0a0d;
  --bg-alt: #101015;
  --bg-card: #15151b;
  --ink: #f6f5f0;
  --text: #c9c9d2;
  --muted: #8f8f9a;
  --line: rgba(255, 255, 255, .09);
  --red: #e2231a;
  --red-dark: #a81410;
  --orange: #f7941d;
  --yellow: #ffd200;
  --fire: linear-gradient(100deg, #ffd200 0%, #f7941d 45%, #e2231a 100%);
  --fire-soft: linear-gradient(100deg, rgba(255,210,0,.14), rgba(226,35,26,.14));
  /* tipografia */
  --font-display: 'Saira Condensed', 'Arial Narrow', sans-serif;
  --font-body: 'Inter', 'Helvetica Neue', sans-serif;
  /* sistema */
  --shadow-sm: 0 2px 10px rgba(0, 0, 0, .35);
  --shadow-md: 0 10px 34px rgba(0, 0, 0, .45);
  --shadow-fire: 0 8px 34px rgba(226, 35, 26, .32);
  --radius: 14px;
  --radius-lg: 22px;
  --container: 1240px;
  --nav-h: 78px;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

/* ---------- Reset ------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font: inherit; cursor: pointer; background: none; border: none; color: inherit; }
::selection { background: var(--red); color: #fff; }

/* ---------- Utility ----------------------------------------- */
.container { width: min(var(--container), 100% - 2.5rem); margin-inline: auto; }
.section { padding: clamp(4rem, 9vw, 7rem) 0; position: relative; }
.section-alt { background: var(--bg-alt); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .95rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 1rem;
}
.eyebrow::before {
  content: '';
  width: 34px;
  height: 3px;
  background: var(--fire);
  transform: skewX(-20deg);
}

h1, h2, h3, .display {
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  line-height: 1.04;
  color: var(--ink);
  letter-spacing: .015em;
}
h1 { font-size: clamp(3rem, 9vw, 6.4rem); }
h2 { font-size: clamp(2.1rem, 5vw, 3.4rem); margin-bottom: 1.1rem; }
h3 { font-size: 1.45rem; font-weight: 700; }
.section-head { max-width: 720px; margin-bottom: clamp(2.2rem, 5vw, 3.6rem); }
.section-head.is-center { margin-inline: auto; text-align: center; }
.section-head.is-center .eyebrow { justify-content: center; }
.section-head p { font-size: 1.08rem; }

.text-fire {
  background: var(--fire);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lead { font-size: clamp(1.05rem, 2vw, 1.25rem); color: var(--text); }

/* bandiera a scacchi */
.checker {
  height: 14px;
  background:
    repeating-conic-gradient(#e9e9e9 0% 25%, #0a0a0d 0% 50%) 0 0 / 28px 28px;
  opacity: .85;
}

/* ---------- Bottoni ----------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: .09em;
  text-transform: uppercase;
  padding: .85rem 1.9rem;
  clip-path: polygon(10px 0, 100% 0, calc(100% - 10px) 100%, 0 100%);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s, color .25s;
  white-space: nowrap;
}
.btn svg { width: 17px; height: 17px; flex: none; }
.btn-primary { background: var(--fire); color: #16060a; }
.btn-primary:hover { transform: translateY(-2px) skewX(-2deg); box-shadow: var(--shadow-fire); }
.btn-outline {
  background: transparent;
  color: var(--ink);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .28);
}
.btn-outline:hover { box-shadow: inset 0 0 0 2px var(--orange); color: var(--orange); transform: translateY(-2px); }
.btn-dark { background: #0d0d10; color: var(--ink); box-shadow: inset 0 0 0 2px rgba(255,255,255,.16); }
.btn-dark:hover { box-shadow: inset 0 0 0 2px var(--yellow); color: var(--yellow); transform: translateY(-2px); }

/* ---------- Header ------------------------------------------ */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 90;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  transition: background .35s, box-shadow .35s, height .35s;
}
.site-header::after {
  content: '';
  position: absolute;
  inset: auto 0 0 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.14), transparent);
}
.site-header.is-scrolled {
  background: rgba(10, 10, 13, .92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: var(--shadow-md);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.brand { display: inline-flex; align-items: center; gap: .8rem; }
.brand img { width: 118px; height: 51px; }
.brand-tag {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .82rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--muted);
  border-left: 1px solid var(--line);
  padding-left: .8rem;
  line-height: 1.3;
}
.main-nav ul { display: flex; align-items: center; gap: 1.7rem; }
.main-nav a {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.02rem;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--text);
  position: relative;
  padding: .3rem 0;
  transition: color .25s;
}
.main-nav a::after {
  content: '';
  position: absolute;
  left: 0; right: 100%; bottom: 0;
  height: 2px;
  background: var(--fire);
  transition: right .3s var(--ease);
}
.main-nav a:hover, .main-nav a[aria-current="page"] { color: var(--ink); }
.main-nav a:hover::after, .main-nav a[aria-current="page"]::after { right: 0; }
.nav-cta { margin-left: .4rem; }
.nav-cta .btn { padding: .55rem 1.35rem; font-size: .95rem; }

.nav-toggle { display: none; width: 46px; height: 46px; position: relative; z-index: 101; }
.nav-toggle span {
  display: block;
  width: 26px; height: 2px;
  background: var(--ink);
  margin: 6px auto;
  transition: transform .3s var(--ease), opacity .3s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- Hero home --------------------------------------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: calc(var(--nav-h) + 3rem) 0 0;
  overflow: hidden;
  background:
    radial-gradient(1000px 640px at 78% 30%, rgba(226, 35, 26, .16), transparent 62%),
    radial-gradient(720px 500px at 12% 82%, rgba(247, 148, 29, .10), transparent 60%),
    var(--bg);
}
.hero::before { /* speed lines */
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(115deg, transparent 0 140px, rgba(255, 255, 255, .028) 140px 142px);
  pointer-events: none;
}
.hero-num { /* 46 gigante in outline */
  position: absolute;
  right: -2vw;
  bottom: -6vh;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(16rem, 42vw, 34rem);
  line-height: .8;
  color: transparent;
  -webkit-text-stroke: 2px rgba(255, 255, 255, .07);
  pointer-events: none;
  user-select: none;
  z-index: 1;
}
.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  align-items: end;
  gap: 2rem;
}
.hero-copy { padding-bottom: clamp(3rem, 8vh, 6rem); }
.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--ink);
  background: rgba(255, 255, 255, .06);
  border: 1px solid var(--line);
  padding: .45rem 1.1rem;
  clip-path: polygon(8px 0, 100% 0, calc(100% - 8px) 100%, 0 100%);
  margin-bottom: 1.4rem;
}
.hero-kicker .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--red); box-shadow: 0 0 12px var(--red); }
.hero h1 { transform: skewX(-3deg); }
.hero-tagline {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.3rem, 3vw, 2rem);
  letter-spacing: .12em;
  text-transform: uppercase;
  margin: .5rem 0 1.2rem;
}
.hero-lead { max-width: 34rem; margin-bottom: 2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 2.4rem; }
.hero-badges { display: flex; flex-wrap: wrap; gap: .7rem; }
.badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-size: .85rem;
  font-weight: 500;
  color: var(--text);
  background: rgba(255, 255, 255, .05);
  border: 1px solid var(--line);
  border-radius: 100px;
  padding: .42rem 1rem;
}
.badge svg { width: 15px; height: 15px; color: var(--yellow); flex: none; }
.hero-photo { position: relative; align-self: end; }
.hero-photo::before {
  content: '';
  position: absolute;
  inset: auto 8% -2% 8%;
  height: 55%;
  background: radial-gradient(closest-side, rgba(226, 35, 26, .30), transparent);
  filter: blur(30px);
}
.hero-photo img { position: relative; width: min(430px, 100%); margin-inline: auto; filter: drop-shadow(0 24px 44px rgba(0, 0, 0, .55)); }

/* ---------- Ticker ------------------------------------------ */
.ticker {
  overflow: hidden;
  background: var(--fire);
  padding: .72rem 0;
  transform: rotate(-1.2deg) scale(1.02);
  margin: -1px 0;
  position: relative;
  z-index: 5;
}
.ticker-track {
  display: flex;
  gap: 2.6rem;
  width: max-content;
  animation: ticker 26s linear infinite;
}
.ticker span {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.12rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: #16060a;
  display: inline-flex;
  align-items: center;
  gap: 2.6rem;
  white-space: nowrap;
}
.ticker span::after { content: '///'; letter-spacing: 0; opacity: .55; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ---------- Stats ------------------------------------------- */
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.stat {
  background: var(--bg);
  text-align: center;
  padding: 2.2rem 1rem;
  position: relative;
  overflow: hidden;
}
.stat::after {
  content: '';
  position: absolute;
  left: 50%; bottom: 0;
  translate: -50% 0;
  width: 46px; height: 3px;
  background: var(--fire);
  transform: skewX(-20deg);
}
.stat-num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.6rem, 5vw, 3.8rem);
  line-height: 1;
  color: var(--ink);
}
.stat-num sup { font-size: .45em; color: var(--orange); }
.stat-label {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: .95rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: .5rem;
}

/* ---------- Feature card (perché sostenermi) ----------------- */
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2.1rem 1.8rem;
  position: relative;
  overflow: hidden;
  transition: transform .35s var(--ease), border-color .35s, box-shadow .35s;
}
.card::before {
  content: '';
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: var(--fire);
  opacity: 0;
  transition: opacity .35s;
}
.card:hover { transform: translateY(-6px); border-color: rgba(247, 148, 29, .35); box-shadow: var(--shadow-md); }
.card:hover::before { opacity: 1; }
.card-icon {
  width: 54px; height: 54px;
  display: grid;
  place-items: center;
  background: var(--fire-soft);
  border: 1px solid rgba(247, 148, 29, .3);
  clip-path: polygon(8px 0, 100% 0, calc(100% - 8px) 100%, 0 100%);
  margin-bottom: 1.3rem;
  color: var(--orange);
}
.card-icon svg { width: 26px; height: 26px; }
.card h3 { margin-bottom: .7rem; }
.card p { font-size: .98rem; }
.card .link-more { margin-top: 1.1rem; }

.link-more {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .98rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--orange);
  transition: gap .25s var(--ease), color .25s;
}
.link-more svg { width: 16px; height: 16px; }
.link-more:hover { gap: .8rem; color: var(--yellow); }

/* ---------- Split (missione / bio) --------------------------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.split.is-reverse > .split-media { order: 2; }
.split-media { position: relative; }
.split-media img {
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
  width: 100%;
  object-fit: cover;
}
.split-media::after { /* cornice offset racing */
  content: '';
  position: absolute;
  inset: -14px auto auto -14px;
  width: 60%;
  height: 60%;
  border: 2px solid rgba(226, 35, 26, .5);
  border-right: 0;
  border-bottom: 0;
  border-radius: var(--radius) 0 0 0;
  pointer-events: none;
}
.split-media .media-tag {
  position: absolute;
  left: 1.1rem; bottom: 1.1rem;
  background: rgba(10, 10, 13, .82);
  backdrop-filter: blur(8px);
  border: 1px solid var(--line);
  border-radius: 100px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .85rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--yellow);
  padding: .45rem 1.05rem;
}
.split-body p + p { margin-top: 1rem; }
.split-body .btn { margin-top: 1.8rem; }
.check-list { margin-top: 1.4rem; display: grid; gap: .85rem; }
.check-list li { display: flex; gap: .8rem; align-items: flex-start; }
.check-list svg { width: 21px; height: 21px; color: var(--yellow); flex: none; margin-top: .25rem; }
.check-list strong { color: var(--ink); }

/* ---------- Merch banner ------------------------------------ */
.merch {
  position: relative;
  overflow: hidden;
  background: #0c0c10;
}
.merch::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('../img/matteo-masili-titino-moto-3-pattern-960.webp') center / 520px repeat;
  opacity: .16;
  pointer-events: none;
}
.merch-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 2.5rem;
  align-items: center;
}
.merch-inner img { width: min(460px, 100%); filter: drop-shadow(0 18px 38px rgba(0, 0, 0, .6)); margin-inline: auto; }

/* ---------- Timeline (risultati) ----------------------------- */
.timeline { position: relative; max-width: 880px; margin-inline: auto; padding-left: 2.2rem; }
.timeline::before {
  content: '';
  position: absolute;
  left: 8px; top: 6px; bottom: 6px;
  width: 2px;
  background: linear-gradient(180deg, var(--yellow), var(--orange), var(--red));
  opacity: .55;
}
.tl-item { position: relative; padding: 0 0 2.4rem 1.6rem; }
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before {
  content: '';
  position: absolute;
  left: -1.95rem; top: 8px;
  width: 15px; height: 15px;
  background: var(--bg);
  border: 3px solid var(--orange);
  border-radius: 50%;
  transform: translateX(1px);
  box-shadow: 0 0 0 4px rgba(247, 148, 29, .15);
}
.tl-item.is-gold::before { border-color: var(--yellow); box-shadow: 0 0 14px rgba(255, 210, 0, .5); }
.tl-year {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.9rem;
  color: var(--ink);
  line-height: 1;
}
.tl-year .text-fire { font-size: .62em; letter-spacing: .06em; margin-left: .5rem; }
.tl-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.18rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--orange);
  margin: .25rem 0 .6rem;
}
.tl-item ul { display: grid; gap: .35rem; }
.tl-item ul li { position: relative; padding-left: 1.2rem; font-size: .98rem; }
.tl-item ul li::before {
  content: '';
  position: absolute;
  left: 0; top: .62em;
  width: 7px; height: 2px;
  background: var(--red);
  transform: skewX(-20deg);
}

/* ---------- Podio / result cards ----------------------------- */
.result-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.result-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .35s var(--ease), border-color .35s;
}
.result-card:hover { transform: translateY(-6px); border-color: rgba(255, 210, 0, .4); }
.result-card img { aspect-ratio: 16 / 10; object-fit: cover; width: 100%; }
.result-card .rc-body { padding: 1.5rem 1.6rem 1.7rem; }
.rc-tag {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .85rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #16060a;
  background: var(--fire);
  clip-path: polygon(6px 0, 100% 0, calc(100% - 6px) 100%, 0 100%);
  padding: .28rem .9rem;
  margin-bottom: .8rem;
}
.result-card h3 { font-size: 1.3rem; margin-bottom: .5rem; }
.result-card p { font-size: .95rem; }

/* ---------- Galleria ---------------------------------------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-flow: dense;
  gap: .9rem;
}
.gallery-grid a {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 10px;
  border: 1px solid var(--line);
  aspect-ratio: 1;
  background: var(--bg-card);
}
.gallery-grid a.is-wide { grid-column: span 2; aspect-ratio: auto; }
.gallery-grid img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .5s var(--ease), filter .5s;
}
.gallery-grid a::after {
  content: '+';
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 2.2rem;
  color: var(--yellow);
  background: rgba(10, 10, 13, .45);
  opacity: 0;
  transition: opacity .35s;
}
.gallery-grid a:hover::after { opacity: 1; }
.gallery-grid a:hover img { transform: scale(1.07); }

/* lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(6, 6, 8, .94);
  padding: 2rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity .35s var(--ease), visibility .35s;
}
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox img {
  max-width: min(1100px, 92vw);
  max-height: 84vh;
  width: auto;
  height: auto;
  border-radius: 10px;
  box-shadow: var(--shadow-md);
  transform: scale(.95);
  transition: transform .4s var(--ease), opacity .3s;
}
.lightbox.is-open img { transform: scale(1); }
.lb-btn {
  position: absolute;
  top: 50%;
  translate: 0 -50%;
  width: 52px; height: 52px;
  display: grid;
  place-items: center;
  color: var(--ink);
  background: rgba(255, 255, 255, .07);
  border: 1px solid var(--line);
  border-radius: 50%;
  transition: background .25s, color .25s;
}
.lb-btn:hover { background: var(--red); }
.lb-btn svg { width: 22px; height: 22px; }
.lb-prev { left: 1.2rem; }
.lb-next { right: 1.2rem; }
.lb-close { top: 1.4rem; right: 1.4rem; translate: 0 0; }
.lb-count {
  position: absolute;
  bottom: 1.4rem;
  left: 50%;
  translate: -50% 0;
  font-family: var(--font-display);
  letter-spacing: .14em;
  color: var(--muted);
}

/* ---------- News -------------------------------------------- */
.news-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.4rem; }
.news-card {
  display: grid;
  grid-template-columns: 190px 1fr;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .35s var(--ease), border-color .35s;
}
.news-card:hover { transform: translateY(-5px); border-color: rgba(247, 148, 29, .4); }
.news-card img { width: 100%; height: 100%; object-fit: cover; }
.news-body { padding: 1.4rem 1.5rem; }
.news-date {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: .85rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--orange);
}
.news-body h3 { font-size: 1.18rem; margin: .4rem 0 .5rem; }
.news-body p { font-size: .92rem; }

/* articolo */
.article { max-width: 760px; margin-inline: auto; }
.article-meta { display: flex; flex-wrap: wrap; gap: 1rem; color: var(--muted); font-size: .92rem; margin-bottom: 2rem; }
.article h2 { font-size: 1.7rem; margin-top: 2.4rem; }
.article h3 { margin-top: 1.6rem; margin-bottom: .5rem; }
.article p + p { margin-top: 1rem; }
.article figure { margin: 2rem 0; }
.article figure img { border-radius: var(--radius); border: 1px solid var(--line); width: 100%; }
.article figcaption { font-size: .85rem; color: var(--muted); margin-top: .6rem; text-align: center; }
.article blockquote {
  border-left: 3px solid var(--orange);
  background: var(--fire-soft);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1.2rem 1.5rem;
  margin: 1.6rem 0;
  font-style: italic;
  color: var(--ink);
}
.article ul { display: grid; gap: .45rem; margin: 1rem 0; }
.article ul li { position: relative; padding-left: 1.3rem; }
.article ul li::before {
  content: '';
  position: absolute;
  left: 0; top: .65em;
  width: 8px; height: 2px;
  background: var(--red);
  transform: skewX(-20deg);
}

/* ---------- Page hero (interne) ------------------------------ */
.page-hero {
  position: relative;
  padding: calc(var(--nav-h) + clamp(3.5rem, 9vw, 6rem)) 0 clamp(2.6rem, 6vw, 4rem);
  background:
    radial-gradient(800px 420px at 82% 0%, rgba(226, 35, 26, .16), transparent 60%),
    var(--bg-alt);
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(115deg, transparent 0 140px, rgba(255, 255, 255, .025) 140px 142px);
  pointer-events: none;
}
.page-hero h1 { font-size: clamp(2.6rem, 7vw, 4.6rem); transform: skewX(-3deg); }
.page-hero .lead { max-width: 640px; margin-top: 1rem; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: .5rem; font-size: .88rem; color: var(--muted); margin-bottom: 1.2rem; }
.breadcrumb a { color: var(--orange); }
.breadcrumb a:hover { color: var(--yellow); }
.breadcrumb li:not(:last-child)::after { content: '›'; margin-left: .5rem; }

/* ---------- Quote ------------------------------------------- */
.quote-band {
  position: relative;
  text-align: center;
  padding: clamp(4rem, 9vw, 6.5rem) 0;
  background:
    radial-gradient(700px 400px at 50% 120%, rgba(247, 148, 29, .13), transparent 65%),
    var(--bg);
  overflow: hidden;
}
.quote-band blockquote {
  max-width: 860px;
  margin-inline: auto;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.5rem, 3.4vw, 2.4rem);
  line-height: 1.3;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--ink);
}
.quote-band cite {
  display: block;
  margin-top: 1.4rem;
  font-family: var(--font-display);
  font-style: normal;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--orange);
}

/* ---------- CTA banner --------------------------------------- */
.cta-banner {
  position: relative;
  overflow: hidden;
  background: linear-gradient(120deg, #14060a, #240a08 55%, #14060a);
  border-block: 1px solid var(--line);
  text-align: center;
  padding: clamp(4rem, 9vw, 6.5rem) 0;
}
.cta-banner::before {
  content: '46';
  position: absolute;
  right: -1rem; top: 50%;
  translate: 0 -50%;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 22rem;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 2px rgba(255, 255, 255, .05);
  pointer-events: none;
}
.cta-banner h2 { font-size: clamp(2.2rem, 5.4vw, 3.6rem); }
.cta-banner p { max-width: 620px; margin: 0 auto 2rem; }
.cta-banner .btn-row { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; }

/* ---------- Form contatti ------------------------------------ */
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.contact-info { display: grid; gap: 1.1rem; }
.contact-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.2rem 1.4rem;
}
.contact-item svg { width: 22px; height: 22px; color: var(--orange); flex: none; margin-top: .2rem; }
.contact-item strong { display: block; font-family: var(--font-display); text-transform: uppercase; letter-spacing: .1em; color: var(--ink); }
.contact-item a:hover { color: var(--yellow); }
.contact-form {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(1.6rem, 4vw, 2.6rem);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.form-field { margin-bottom: 1.1rem; }
.form-field label {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: .9rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: .4rem;
}
.form-field input, .form-field textarea, .form-field select {
  width: 100%;
  font: inherit;
  color: var(--ink);
  background: rgba(255, 255, 255, .04);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: .8rem 1rem;
  transition: border-color .25s, box-shadow .25s;
}
.form-field input:focus, .form-field textarea:focus, .form-field select:focus {
  outline: none;
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(247, 148, 29, .18);
}
.form-field textarea { min-height: 140px; resize: vertical; }
.form-privacy { display: flex; gap: .7rem; align-items: flex-start; font-size: .88rem; color: var(--muted); margin: 1rem 0 1.4rem; }
.form-privacy input { width: 17px; height: 17px; margin-top: .25rem; accent-color: var(--red); flex: none; }
.form-privacy a { color: var(--orange); text-decoration: underline; }
.form-status { margin-top: 1rem; font-weight: 500; }
.form-status.is-ok { color: #6fdc8c; }
.form-status.is-error { color: #ff7a70; }

/* ---------- Footer ------------------------------------------- */
.site-footer { background: #060608; border-top: 1px solid var(--line); }
.footer-top {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1.2fr;
  gap: 2.4rem;
  padding: clamp(3rem, 6vw, 4.5rem) 0 2.6rem;
}
.footer-brand img { width: 150px; margin-bottom: 1.1rem; }
.footer-brand p { font-size: .93rem; max-width: 26rem; }
.site-footer h4 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 1.1rem;
}
.footer-links { display: grid; gap: .55rem; }
.footer-links a { font-size: .95rem; color: var(--muted); transition: color .25s, padding-left .25s; }
.footer-links a:hover { color: var(--yellow); padding-left: .3rem; }
.footer-contact { display: grid; gap: .8rem; font-size: .95rem; color: var(--muted); }
.footer-contact a:hover { color: var(--yellow); }
.footer-bottom { border-top: 1px solid var(--line); padding: 1.4rem 0; }
.footer-bottom-inner {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem 1.6rem;
  align-items: center;
  justify-content: space-between;
  font-size: .85rem;
  color: var(--muted);
}
.footer-bottom a { color: var(--muted); }
.footer-bottom a:hover { color: var(--yellow); }
.footer-legal { display: flex; flex-wrap: wrap; gap: 1.2rem; }

/* ---------- Reveal ------------------------------------------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: .1s; }
.reveal-d2 { transition-delay: .2s; }
.reveal-d3 { transition-delay: .3s; }

/* ---------- 404 ---------------------------------------------- */
.error-hero { min-height: 100svh; display: flex; align-items: center; text-align: center; background: var(--bg); }
.error-hero .display { font-size: clamp(6rem, 22vw, 13rem); line-height: 1; }
.error-hero p { max-width: 480px; margin: 1rem auto 2rem; }

/* pagine legali */
.legal { max-width: 800px; }
.legal h2 { font-size: 1.5rem; margin-top: 2.2rem; }
.legal p + p, .legal ul { margin-top: .8rem; }
.legal ul { display: grid; gap: .4rem; padding-left: 1.2rem; list-style: disc; }
.legal a { color: var(--orange); text-decoration: underline; }

/* ---------- Responsive --------------------------------------- */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr .8fr; }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .main-nav {
    position: fixed;
    inset: 0;
    background: rgba(8, 8, 11, .98);
    backdrop-filter: blur(16px);
    display: grid;
    place-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity .35s, visibility .35s;
    z-index: 100;
  }
  .main-nav.is-open { opacity: 1; visibility: visible; }
  .main-nav ul { flex-direction: column; gap: 1.6rem; text-align: center; }
  .main-nav a { font-size: 1.6rem; }
  .brand { position: relative; z-index: 101; }
  .hero { min-height: auto; padding-bottom: 0; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-copy { padding-bottom: 0; }
  .hero-photo { margin-top: 1rem; }
  .hero-photo img { width: min(340px, 82%); }
  .hero-num { font-size: 15rem; right: -3rem; top: 6rem; bottom: auto; }
  .split, .merch-inner, .contact-grid { grid-template-columns: 1fr; }
  .split.is-reverse > .split-media { order: 0; }
  .cards-3, .result-cards { grid-template-columns: 1fr 1fr; }
  .news-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .cards-3, .result-cards, .form-row { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .news-card { grid-template-columns: 1fr; }
  .news-card img { aspect-ratio: 16 / 8; }
  .footer-top { grid-template-columns: 1fr; gap: 2rem; }
  .brand-tag { display: none; }
  .cta-banner::before { font-size: 12rem; }
  .btn { width: 100%; }
  .hero-actions .btn { width: auto; flex: 1; }
}
@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .hero h1 { font-size: 3.2rem; }
}

/* ============================================================
   POP RACING — giallo TITINO, blu royal, slider hero
   ============================================================ */
:root {
  --blue: #2438a6;
  --blue-dark: #17246e;
  --pop-ink: #241a02;
  --pop-text: #4a3a0d;
}

/* ---------- Hero slider (foto azione fullscreen) ------------- */
.hero-slider { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 32%;
  opacity: 0;
  transform: scale(1.02);
  animation: heroSlide 24s linear infinite;
  will-change: opacity, transform;
}
.hero-slide:nth-child(1) { animation-delay: 0s; }
.hero-slide:nth-child(2) { animation-delay: 6s; }
.hero-slide:nth-child(3) { animation-delay: 12s; }
.hero-slide:nth-child(4) { animation-delay: 18s; }
@keyframes heroSlide {
  0%   { opacity: 0; transform: scale(1.02); }
  4%   { opacity: 1; }
  25%  { opacity: 1; }
  33%  { opacity: 0; transform: scale(1.16); }
  100% { opacity: 0; transform: scale(1.02); }
}
.hero-scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(8, 8, 11, .62) 0%, rgba(8, 8, 11, .18) 34%, rgba(8, 8, 11, .78) 100%),
    linear-gradient(92deg, rgba(8, 8, 11, .86) 0%, rgba(8, 8, 11, .55) 48%, rgba(8, 8, 11, .18) 100%);
}
.hero.has-slider::before { z-index: 2; }
.hero.has-slider .hero-num { z-index: 2; -webkit-text-stroke-color: rgba(255, 255, 255, .12); }
.hero.has-slider .hero-grid { z-index: 3; grid-template-columns: 1fr; align-items: center; }
.hero.has-slider .hero-copy { padding-bottom: clamp(4rem, 10vh, 7rem); max-width: 720px; }
.hero.has-slider h1 { text-shadow: 0 6px 40px rgba(0, 0, 0, .55); }
.hero.has-slider .hero-lead { text-shadow: 0 2px 14px rgba(0, 0, 0, .6); color: #e6e6ec; }

/* ---------- Sezioni pop gialle (taglio obliquo racing) -------- */
.section-pop {
  position: relative;
  background:
    radial-gradient(900px 500px at 85% 0%, rgba(255, 255, 255, .28), transparent 60%),
    linear-gradient(180deg, #ffd200 0%, #ffc400 60%, #ffb400 100%);
  color: var(--pop-text);
  clip-path: polygon(0 0, 100% 3vw, 100% 100%, 0 calc(100% - 3vw));
  padding-top: calc(clamp(4rem, 9vw, 7rem) + 3vw);
  padding-bottom: calc(clamp(4rem, 9vw, 7rem) + 3vw);
}
.section-pop::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(115deg, transparent 0 120px, rgba(150, 96, 0, .06) 120px 122px);
  pointer-events: none;
}
.section-pop > .container { position: relative; }
.section-pop h2, .section-pop h3 { color: var(--pop-ink); }
.section-pop p { color: var(--pop-text); }
.section-pop .eyebrow { color: var(--blue); }
.section-pop .eyebrow::before { background: var(--blue); }
.section-pop .text-fire {
  background: linear-gradient(100deg, #e2231a, #b3170f 60%, var(--blue) 130%);
  -webkit-background-clip: text;
  background-clip: text;
}
.merch-pop {
  background:
    radial-gradient(800px 460px at 12% 10%, rgba(255, 255, 255, .22), transparent 60%),
    linear-gradient(135deg, #ffd200 0%, #ffab00 55%, #f7941d 100%);
  clip-path: polygon(0 3vw, 100% 0, 100% calc(100% - 3vw), 0 100%);
  padding-top: calc(clamp(4rem, 9vw, 7rem) + 3vw);
  padding-bottom: calc(clamp(4rem, 9vw, 7rem) + 3vw);
}
.merch-pop::before { opacity: .08; }
.merch-pop h2 { color: var(--pop-ink); }
.merch-pop .text-fire {
  background: linear-gradient(100deg, #e2231a, #b3170f 60%, var(--blue) 130%);
  -webkit-background-clip: text;
  background-clip: text;
}
.merch-pop .eyebrow { color: var(--blue); }
.merch-pop .eyebrow::before { background: var(--blue); }
.merch-pop .lead { color: var(--pop-text); }
.merch-pop img { filter: drop-shadow(0 18px 30px rgba(122, 60, 0, .35)); }

/* pannello blu (vecchio stile Divi, ma meglio) */
.pop-panel {
  position: relative;
  background: linear-gradient(150deg, var(--blue), var(--blue-dark));
  color: #eef0ff;
  border-radius: 26px;
  padding: clamp(2.2rem, 5vw, 3.6rem) clamp(1.6rem, 5vw, 4rem);
  text-align: center;
  max-width: 900px;
  margin-inline: auto;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .22),
    0 24px 60px rgba(90, 60, 0, .35);
  overflow: hidden;
}
.pop-panel::after {
  content: '';
  position: absolute;
  inset: 0 auto 0 0;
  width: 7px;
  background: var(--fire);
}
.pop-panel::before {
  content: '46';
  position: absolute;
  right: -1.2rem;
  bottom: -2.8rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 11rem;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 2px rgba(255, 255, 255, .12);
  pointer-events: none;
}
.pop-panel h2 { color: #fff; }
.pop-panel p { color: #d6dbff; max-width: 640px; margin: 0 auto 1.8rem; }

.btn-blue { background: var(--blue); color: #fff; }
.btn-blue:hover { background: var(--blue-dark); transform: translateY(-2px); box-shadow: 0 10px 30px rgba(23, 36, 110, .4); }
.btn-on-blue { background: #ffd200; color: var(--pop-ink); }
.btn-on-blue:hover { transform: translateY(-2px) skewX(-2deg); box-shadow: 0 10px 28px rgba(0, 0, 0, .3); }

/* card chiare con foto, per le sezioni gialle */
.card-photo {
  background: #fffdf4;
  border: 0;
  border-radius: 18px;
  overflow: hidden;
  padding: 0;
  box-shadow: 0 14px 36px rgba(122, 84, 0, .22);
  transition: transform .35s var(--ease), box-shadow .35s;
}
.card-photo:hover { transform: translateY(-8px); box-shadow: 0 24px 50px rgba(122, 84, 0, .3); border-color: transparent; }
.card-photo::before { display: none; }
.card-photo img { width: 100%; aspect-ratio: 16 / 11; object-fit: cover; transition: transform .5s var(--ease); }
.card-photo:hover img { transform: scale(1.06); }
.card-photo .cp-body { padding: 1.6rem 1.7rem 1.8rem; }
.card-photo h3 { color: var(--pop-ink); margin-bottom: .6rem; }
.card-photo p { color: var(--pop-text); font-size: .97rem; }
.card-photo .link-more { color: var(--blue); margin-top: 1rem; }
.card-photo .link-more:hover { color: var(--blue-dark); }

/* ---------- Nastro fotografico ------------------------------- */
.photo-marquee { display: block; overflow: hidden; background: #060608; padding: .9rem 0; border-block: 1px solid var(--line); }
.photo-marquee-track { display: flex; gap: .9rem; width: max-content; animation: ticker 60s linear infinite; }
.photo-marquee img {
  height: 168px;
  width: auto;
  border-radius: 10px;
  border: 1px solid var(--line);
}
.photo-marquee:hover .photo-marquee-track { animation-play-state: paused; }

@media (max-width: 640px) {
  .photo-marquee img { height: 120px; }
  .pop-panel::before { font-size: 7rem; }
}

/* ============================================================
   MOTION PASS — animazioni d'ingresso e micro-interazioni
   ============================================================ */

/* barra di avanzamento scroll */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--fire);
  transform-origin: 0 50%;
  transform: scaleX(0);
  z-index: 130;
  pointer-events: none;
}

/* header intelligente: sparisce scendendo, torna salendo */
.site-header { transition: background .35s, box-shadow .35s, transform .4s var(--ease); }
.site-header.is-hidden { transform: translateY(-100%); }

/* ingresso hero: gli elementi salgono in sequenza */
@keyframes riseIn {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hero-copy > * { animation: riseIn .85s var(--ease) backwards; }
.hero-copy > *:nth-child(1) { animation-delay: .12s; }
.hero-copy > *:nth-child(2) { animation-delay: .24s; }
.hero-copy > *:nth-child(3) { animation-delay: .36s; }
.hero-copy > *:nth-child(4) { animation-delay: .48s; }
.hero-copy > *:nth-child(5) { animation-delay: .60s; }
.hero-copy > *:nth-child(6) { animation-delay: .72s; }
.hero-copy h1 { animation-name: riseInSkew; }
@keyframes riseInSkew {
  from { opacity: 0; transform: translateY(34px) skewX(-3deg); }
  to   { opacity: 1; transform: translateY(0) skewX(-3deg); }
}
.hero .hero-num { animation: riseIn 1.4s var(--ease) .5s backwards; }

/* ingresso pagine interne */
.page-hero .container > * { animation: riseIn .75s var(--ease) backwards; }
.page-hero .container > *:nth-child(1) { animation-delay: .08s; }
.page-hero .container > *:nth-child(2) { animation-delay: .18s; }
.page-hero .container > *:nth-child(3) { animation-delay: .28s; }
.page-hero .container > *:nth-child(4) { animation-delay: .38s; }
.page-hero h1 { animation-name: riseInSkew; }

/* lampo di luce sui bottoni */
.btn { position: relative; overflow: hidden; }
.btn::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: -70%;
  width: 45%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .5), transparent);
  transform: skewX(-22deg);
  transition: left .65s var(--ease);
  pointer-events: none;
}
.btn:hover::after { left: 125%; }

/* zoom foto al passaggio nelle card */
.result-card img, .news-card img { transition: transform .55s var(--ease); }
.result-card:hover img, .news-card:hover img { transform: scale(1.06); }
.result-card, .news-card { overflow: hidden; }

/* parallasse via JS */
[data-prlx] { will-change: transform; }

/* accessibilità: focus visibile e curato */
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 3px;
  border-radius: 4px;
}
input:focus-visible, textarea:focus-visible, select:focus-visible { outline: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
  .ticker-track { animation: none; }
  .photo-marquee-track { animation: none; }
  .hero-slide { animation: none; opacity: 0; }
  .hero-slide:first-child { opacity: 1; transform: none; }
  .hero-copy > *, .page-hero .container > *, .hero .hero-num { animation: none; }
  .site-header.is-hidden { transform: none; }
}
