/* =========================================================
   TEAM AQUA — Design System v0.1
   Tokens → Base → Layout → Components → Sections
   Ogni token qui è pensato per diventare un "Global Color /
   Global Font" di Elementor (vedi design-system.html).
   ========================================================= */

:root {
  /* ---- Colori (Global Colors) ---- */
  --abyss: #040a1c;        /* sfondo principale */
  --deep: #081433;         /* superfici */
  --navy: #0f2150;         /* superfici elevate */
  --aqua: #1f5fe0;         /* brand primario (dal logo) */
  --aqua-400: #4d87ff;     /* hover / highlight */
  --aqua-200: #a9c4ff;     /* testo secondario su scuro */
  --foam: #eef3ff;         /* bianco caldo */
  --white: #ffffff;
  --gold: #f4c64e;         /* vittorie / campioni */
  --silver: #c9d2e3;
  --bronze: #d99a6c;
  --live: #ff3d5a;         /* live / urgenze */
  --line: rgba(255, 255, 255, 0.1);
  --line-strong: rgba(255, 255, 255, 0.22);
  --muted: rgba(238, 243, 255, 0.62);

  /* ---- Tipografia (Global Fonts) ---- */
  --f-display: "Bebas Neue", "Anton", Impact, sans-serif;
  --f-body: "Inter", system-ui, -apple-system, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, monospace;

  --fs-mega: min(29vw, 48vh);
  --fs-h1: clamp(3.4rem, 8vw, 8.5rem);
  --fs-h2: clamp(2.8rem, 6vw, 6rem);
  --fs-h3: clamp(1.8rem, 2.6vw, 2.6rem);
  --fs-lead: clamp(1.05rem, 1.3vw, 1.25rem);
  --fs-body: 1rem;
  --fs-small: 0.8125rem;
  --fs-label: 0.72rem;

  /* ---- Spazi, raggi, motion ---- */
  --gutter: clamp(16px, 4vw, 56px);
  --section-y: clamp(80px, 12vw, 160px);
  --r-sm: 8px;
  --r-md: 16px;
  --r-lg: 28px;
  --ease: cubic-bezier(0.2, 0.7, 0.1, 1);
  --ease-in-out: cubic-bezier(0.76, 0, 0.24, 1);

  --grain: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 .55 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--abyss);
  color: var(--foam);
  font-family: var(--f-body);
  font-size: var(--fs-body);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
html:has(body.is-locked) { overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
::selection { background: var(--aqua); color: var(--white); }
:focus-visible { outline: 2px solid var(--aqua-400); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: 1480px; margin: 0 auto; padding: 0 var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Tipografia ---------- */
.display { font-family: var(--f-display); font-weight: 400; line-height: 0.88; letter-spacing: 0.005em; text-transform: uppercase; margin: 0; }
.h1 { font-size: var(--fs-h1); }
.h2 { font-size: var(--fs-h2); }
.h3 { font-size: var(--fs-h3); line-height: 0.95; }
.lead { font-size: var(--fs-lead); color: var(--muted); max-width: 52ch; margin: 0; }
.label {
  font-family: var(--f-mono); font-size: var(--fs-label); letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--aqua-200);
  display: inline-flex; align-items: center; gap: 10px;
}
.label::before { content: ""; width: 8px; height: 8px; background: var(--aqua); transform: rotate(45deg); flex: none; }
.label--plain::before { display: none; }
.outline { color: transparent; -webkit-text-stroke: 1.5px var(--foam); }
.text-aqua { color: var(--aqua-400); }
.text-gold { color: var(--gold); }

/* ---------- Bottoni ---------- */
.btn {
  --bg: var(--aqua); --fg: var(--white);
  display: inline-flex; align-items: center; gap: 12px;
  height: 52px; padding: 0 24px; border-radius: 999px;
  background: var(--bg); color: var(--fg);
  font-family: var(--f-mono); font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 600;
  position: relative; overflow: hidden; isolation: isolate;
  transition: color .4s var(--ease);
}
.btn::after {
  content: ""; position: absolute; inset: 0; z-index: -1; background: var(--white);
  transform: translateY(101%); border-radius: inherit; transition: transform .45s var(--ease);
}
.btn:hover { color: var(--abyss); }
.btn:hover::after { transform: none; }
.btn svg { width: 16px; height: 16px; transition: transform .4s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn--ghost { --bg: transparent; box-shadow: inset 0 0 0 1px var(--line-strong); }
.btn--light { --bg: var(--white); --fg: var(--abyss); }
.btn--light::after { background: var(--aqua); }
.btn--light:hover { color: var(--white); }
.btn--sm { height: 40px; padding: 0 18px; }

.link-arrow { display: inline-flex; gap: 10px; align-items: center; font-family: var(--f-mono); font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; color: var(--aqua-200); }
.link-arrow svg { width: 14px; height: 14px; transition: transform .3s var(--ease); }
.link-arrow:hover { color: var(--white); }
.link-arrow:hover svg { transform: translate(3px, -3px); }

/* ---------- Tag / chip ---------- */
.tag {
  display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px; border-radius: 6px;
  font-family: var(--f-mono); font-size: .66rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 600;
  background: rgba(31, 95, 224, .18); color: var(--aqua-200); border: 1px solid rgba(77, 135, 255, .3);
}
.tag--gold { background: rgba(244, 198, 78, .14); color: var(--gold); border-color: rgba(244, 198, 78, .35); }
.tag--live { background: rgba(255, 61, 90, .14); color: #ff8094; border-color: rgba(255, 61, 90, .4); }
.tag--live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--live); animation: pulse 1.4s infinite; }
.tag--demo { background: rgba(255,255,255,.06); color: var(--muted); border: 1px dashed var(--line-strong); }
@keyframes pulse { 50% { opacity: .25; } }

.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  height: 40px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line-strong);
  font-family: var(--f-mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted);
  transition: all .3s var(--ease);
}
.chip:hover { color: var(--white); border-color: var(--white); }
.chip[aria-pressed="true"], .chip[aria-selected="true"] { background: var(--white); color: var(--abyss); border-color: var(--white); }

/* =========================================================
   HEADER (stile TSM Facility: minimal + icona menu)
   ========================================================= */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px var(--gutter);
  transition: padding .4s var(--ease), background .4s var(--ease), backdrop-filter .4s;
}
.header.is-scrolled { padding-top: 12px; padding-bottom: 12px; background: rgba(4, 10, 28, .72); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { width: 40px; height: 40px; }
.brand span { font-family: var(--f-display); font-size: 1.6rem; letter-spacing: .03em; line-height: 1; padding-top: 3px; }
.header__right { display: flex; align-items: center; gap: 10px; }
.header__live { display: none; }
@media (min-width: 900px) { .header__live { display: inline-flex; } }
.menu-btn {
  display: inline-flex; align-items: center; gap: 14px; height: 48px; padding: 0 8px 0 20px; border-radius: 999px;
  background: var(--white); color: var(--abyss);
  font-family: var(--f-mono); font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 700;
}
.menu-btn__icon { width: 34px; height: 34px; border-radius: 50%; background: var(--abyss); display: grid; place-content: center; gap: 5px; }
.menu-btn__icon i { display: block; width: 14px; height: 2px; background: var(--white); transition: transform .4s var(--ease); }
.menu-btn:hover .menu-btn__icon i:first-child { transform: translateX(3px); }
.menu-btn:hover .menu-btn__icon i:last-child { transform: translateX(-3px); }
.shop-btn { display: none; }
@media (min-width: 640px) { .shop-btn { display: inline-flex; } }

/* =========================================================
   MENU FULLSCREEN
   ========================================================= */
.menu {
  position: fixed; inset: 0; z-index: 80; background: var(--deep);
  clip-path: circle(0% at calc(100% - 60px) 44px);
  transition: clip-path .9s var(--ease-in-out);
  display: grid; grid-template-rows: auto 1fr auto; overflow: hidden;
  visibility: hidden;
}
.menu.is-open { clip-path: circle(150% at calc(100% - 60px) 44px); visibility: visible; }
.menu__pattern { position: absolute; inset: 0; background: url(../img/background-ta_2025.png) center/700px repeat; filter: invert(1); opacity: .035; pointer-events: none; }
.menu__top { position: relative; display: flex; justify-content: space-between; align-items: center; padding: 20px var(--gutter); }
.menu__close { display: inline-flex; align-items: center; gap: 14px; height: 48px; padding: 0 8px 0 20px; border-radius: 999px; border: 1px solid var(--line-strong); font-family: var(--f-mono); font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; }
.menu__close span.x { width: 34px; height: 34px; border-radius: 50%; background: var(--white); color: var(--abyss); display: grid; place-items: center; font-size: 20px; line-height: 1; transition: transform .4s var(--ease); }
.menu__close:hover span.x { transform: rotate(90deg); }
.menu__body { position: relative; display: grid; grid-template-columns: 1fr; align-items: center; padding: 0 var(--gutter); gap: 40px; min-height: 0; }
@media (min-width: 1000px) { .menu__body { grid-template-columns: 1.3fr 1fr; } }
.menu__list { list-style: none; margin: 0; padding: 0; counter-reset: m; }
.menu__list li { overflow: hidden; border-bottom: 1px solid var(--line); }
.menu__list a {
  display: flex; align-items: baseline; gap: 18px; padding: 6px 0;
  font-family: var(--f-display); font-size: clamp(2.6rem, 6.4vh, 5.4rem); line-height: 1; text-transform: uppercase;
  transform: translateY(110%); transition: transform .8s var(--ease), color .3s;
}
.menu__list a small { font-family: var(--f-mono); font-size: .72rem; letter-spacing: .1em; color: var(--aqua-200); min-width: 2.2em; }
.menu__list a em { font-style: normal; margin-left: auto; font-family: var(--f-mono); font-size: .7rem; letter-spacing: .12em; color: var(--muted); opacity: 0; transform: translateX(-10px); transition: all .3s var(--ease); align-self: center; }
.menu__list a:hover { color: var(--aqua-400); }
.menu__list a:hover em { opacity: 1; transform: none; }
.menu.is-open .menu__list a { transform: none; }
.menu.is-open .menu__list li:nth-child(1) a { transition-delay: .25s; }
.menu.is-open .menu__list li:nth-child(2) a { transition-delay: .3s; }
.menu.is-open .menu__list li:nth-child(3) a { transition-delay: .35s; }
.menu.is-open .menu__list li:nth-child(4) a { transition-delay: .4s; }
.menu.is-open .menu__list li:nth-child(5) a { transition-delay: .45s; }
.menu.is-open .menu__list li:nth-child(6) a { transition-delay: .5s; }
.menu.is-open .menu__list li:nth-child(7) a { transition-delay: .55s; }
.menu__preview { display: none; position: relative; height: min(62vh, 620px); border-radius: var(--r-lg); overflow: hidden; background: var(--navy); }
@media (min-width: 1000px) { .menu__preview { display: block; } }
.menu__preview img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.08); transition: opacity .5s, transform 1.2s var(--ease); }
.menu__preview img.is-active { opacity: 1; transform: none; }
.menu__preview::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(4,10,28,.8)); }
.menu__preview-cap { position: absolute; left: 24px; bottom: 20px; z-index: 2; }
.menu__foot { position: relative; display: flex; flex-wrap: wrap; gap: 16px 40px; justify-content: space-between; align-items: center; padding: 20px var(--gutter) 24px; border-top: 1px solid var(--line); font-size: var(--fs-small); color: var(--muted); }
.socials { display: flex; gap: 8px; }
.socials a { width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line-strong); display: grid; place-items: center; transition: all .3s var(--ease); }
.socials a:hover { background: var(--white); color: var(--abyss); border-color: var(--white); }
.socials svg { width: 17px; height: 17px; }

/* =========================================================
   HERO (stile Team Spirit: type gigante + player cutout)
   ========================================================= */
.hero {
  position: sticky; top: 0; height: 100vh; height: 100svh; min-height: 620px; overflow: hidden;
  background: radial-gradient(120% 85% at 50% 105%, #2160e8 0%, #0d2563 40%, var(--abyss) 78%);
  z-index: 0;
}
.hero__inner { position: absolute; inset: 0; transform: scale(calc(1 - var(--p, 0) * .08)); transform-origin: 50% 80%; filter: brightness(calc(1 - var(--p, 0) * .55)); will-change: transform; }
.hero__pattern { position: absolute; inset: -40px; background: url(../img/background-ta_2025.png) center/900px repeat; filter: invert(1); opacity: .05; mix-blend-mode: screen; }
.hero__grain { position: absolute; inset: 0; background-image: var(--grain); opacity: .09; mix-blend-mode: overlay; pointer-events: none; z-index: 6; }
.hero__beam { position: absolute; left: 50%; top: -20%; width: 70vw; height: 120%; transform: translateX(-50%); background: conic-gradient(from 180deg at 50% 0%, transparent 160deg, rgba(77,135,255,.22) 180deg, transparent 200deg); filter: blur(30px); pointer-events: none; }

.hero__type {
  position: absolute; left: 50%; top: 50%; transform: translate(calc(-50% + var(--mx, 0) * -14px), calc(-62% + var(--my, 0) * -8px));
  font-family: var(--f-display); font-size: var(--fs-mega); line-height: .78; letter-spacing: -.005em; white-space: nowrap; text-transform: uppercase;
  color: var(--white); margin: 0; user-select: none; pointer-events: none;
  background: linear-gradient(180deg, #fff 30%, rgba(169,196,255,.55) 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.hero__type--stroke { z-index: 4; background: none; -webkit-text-fill-color: transparent; -webkit-text-stroke: 1.5px rgba(255,255,255,.55); }
.hero__type-small { position: absolute; left: 50%; top: calc(50% - var(--fs-mega) * .62 - 18px); transform: translateX(-50%); font-family: var(--f-mono); font-size: var(--fs-label); letter-spacing: .5em; text-transform: uppercase; color: var(--aqua-200); white-space: nowrap; }

.hero__players { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.hero__player { position: absolute; bottom: 0; height: 74vh; max-height: 900px; width: auto; transition: opacity .7s var(--ease), transform .9s var(--ease); filter: drop-shadow(0 30px 60px rgba(0,0,0,.5)); }
.hero__player--c { left: 50%; height: 84vh; transform: translateX(calc(-50% + var(--mx, 0) * 10px)); z-index: 3; }
.hero__player--l { left: 50%; transform: translateX(calc(-112% + var(--mx, 0) * 18px)); height: 70vh; z-index: 2; filter: drop-shadow(0 30px 60px rgba(0,0,0,.5)) brightness(.78) saturate(.9); }
.hero__player--r { left: 50%; transform: translateX(calc(12% + var(--mx, 0) * 18px)); height: 70vh; z-index: 2; filter: drop-shadow(0 30px 60px rgba(0,0,0,.5)) brightness(.78) saturate(.9); }
.hero__fade { position: absolute; inset: auto 0 0 0; height: 32vh; background: linear-gradient(180deg, transparent, var(--abyss) 92%); z-index: 4; }

[data-game="lol"] .hero__player { opacity: 0; transform: translateX(-50%) translateY(40px); }
.hero__soon { position: absolute; left: 50%; top: 48%; transform: translate(-50%, -50%) scale(.9); z-index: 5; opacity: 0; transition: all .7s var(--ease); text-align: center; pointer-events: none; }
.hero__soon img { width: min(30vh, 260px); margin: 0 auto 18px; opacity: .9; filter: drop-shadow(0 0 60px rgba(77,135,255,.7)); }
[data-game="lol"] .hero__soon { opacity: 1; transform: translate(-50%, -50%); }

.hero__ui { position: absolute; inset: 0; z-index: 5; opacity: calc(1 - var(--p, 0) * 1.8); display: grid; grid-template-rows: 1fr auto; padding: 110px var(--gutter) 28px; pointer-events: none; }
.hero__ui > * { pointer-events: auto; }
.hero__top { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; }
.hero__claim { max-width: 330px; }
.hero__claim p { margin: 14px 0 0; color: var(--muted); font-size: .95rem; }
.hero__games { display: flex; flex-direction: column; gap: 8px; align-items: flex-end; }
.game-switch { display: flex; padding: 4px; border-radius: 999px; background: rgba(4,10,28,.55); border: 1px solid var(--line); backdrop-filter: blur(10px); }
.game-switch button { height: 38px; padding: 0 16px; border-radius: 999px; font-family: var(--f-mono); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); transition: all .3s var(--ease); }
.game-switch button[aria-pressed="true"] { background: var(--white); color: var(--abyss); }
.hero__bottom { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; }
.next-match {
  display: grid; grid-template-columns: auto 1fr; gap: 4px 16px; align-items: center;
  padding: 14px 18px; border-radius: var(--r-md); background: rgba(4,10,28,.6); border: 1px solid var(--line); backdrop-filter: blur(12px); max-width: 360px;
}
.next-match__day { grid-row: span 2; font-family: var(--f-display); font-size: 2.6rem; line-height: .9; text-align: center; padding-right: 16px; border-right: 1px solid var(--line); }
.next-match__day small { display: block; font-family: var(--f-mono); font-size: .62rem; letter-spacing: .12em; color: var(--aqua-200); }
.next-match strong { font-family: var(--f-display); font-size: 1.5rem; font-weight: 400; line-height: 1; letter-spacing: .02em; }
.next-match span { font-size: .78rem; color: var(--muted); }
.scroll-cue { display: flex; flex-direction: column; align-items: center; gap: 10px; font-family: var(--f-mono); font-size: .62rem; letter-spacing: .3em; text-transform: uppercase; color: var(--muted); }
.scroll-cue i { width: 1px; height: 54px; background: linear-gradient(var(--white), transparent); position: relative; overflow: hidden; }
.scroll-cue i::after { content: ""; position: absolute; left: 0; top: -50%; width: 1px; height: 50%; background: var(--aqua-400); animation: cue 2s var(--ease) infinite; }
@keyframes cue { to { top: 110%; } }
.hero__stamp { text-align: right; font-family: var(--f-mono); font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); line-height: 1.8; }
.hero__stamp b { color: var(--gold); font-weight: 600; }

@media (max-width: 760px) {
  .hero__type { top: 44%; }
  .hero__type-small { top: calc(44% - var(--fs-mega) * .5 - 8px); letter-spacing: .3em; }
  .hero__player--c { height: 62vh; }
  .hero__player--l, .hero__player--r { height: 50vh; }
  .hero__player--l { transform: translateX(-118%); }
  .hero__player--r { transform: translateX(18%); }
  .hero__top { flex-direction: column; }
  .hero__games { align-items: flex-start; }
  .hero__claim { max-width: 260px; }
  .hero__claim p { display: none; }
  .hero__stamp, .scroll-cue { display: none; }
  .next-match { max-width: none; width: 100%; }
}

/* =========================================================
   CONTENUTO che scorre SOPRA la hero (reveal TSM)
   ========================================================= */
.content { position: relative; z-index: 2; background: var(--abyss); border-radius: var(--r-lg) var(--r-lg) 0 0; box-shadow: 0 -40px 80px rgba(0,0,0,.45); }
.section { padding: var(--section-y) 0; position: relative; }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; flex-wrap: wrap; margin-bottom: clamp(36px, 5vw, 64px); }
.section-head__title { display: flex; flex-direction: column; gap: 18px; }

/* reveal on scroll */
.js .rv { opacity: 0; transform: translateY(40px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.js .rv.in { opacity: 1; transform: none; }
.js .rv-d1 { transition-delay: .08s; } .js .rv-d2 { transition-delay: .16s; } .js .rv-d3 { transition-delay: .24s; }

/* ---------- Marquee ---------- */
.marquee { overflow: hidden; border-block: 1px solid var(--line); padding: 22px 0; background: var(--deep); border-radius: var(--r-lg) var(--r-lg) 0 0; }
.marquee__track { display: flex; width: max-content; animation: marquee 38s linear infinite; }
.marquee__track span { font-family: var(--f-display); font-size: clamp(2rem, 4vw, 3.4rem); line-height: 1; text-transform: uppercase; padding-right: 48px; display: inline-flex; align-items: center; gap: 48px; white-space: nowrap; }
.marquee__track span::after { content: ""; width: 34px; height: 34px; background: url(../img/mark-white.png) center/contain no-repeat; opacity: .8; }
.marquee__track span:nth-child(even) { color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,.6); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* =========================================================
   TEAMS / DIVISIONI
   ========================================================= */
.divisions { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 900px) { .divisions { grid-template-columns: 1.35fr 1fr 1fr; } }
.division {
  position: relative; border-radius: var(--r-lg); overflow: hidden; min-height: 460px; padding: 28px;
  display: flex; flex-direction: column; justify-content: space-between; isolation: isolate;
  background: linear-gradient(160deg, var(--navy), var(--deep)); border: 1px solid var(--line);
  transition: transform .6s var(--ease), border-color .4s;
}
.division:hover { transform: translateY(-6px); border-color: var(--line-strong); }
.division__bg { position: absolute; inset: 0; z-index: -1; }
.division__bg img { width: 100%; height: 100%; object-fit: cover; opacity: .55; transition: transform 1.2s var(--ease), opacity .6s; }
.division:hover .division__bg img { transform: scale(1.05); opacity: .75; }
.division__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(4,10,28,.2), rgba(4,10,28,.92) 85%); }
.division__players { position: absolute; right: -2%; bottom: 0; height: 82%; width: 68%; display: flex; justify-content: flex-end; align-items: flex-end; z-index: -1; }
.division__players::before { content: ""; position: absolute; inset: 0 auto 0 -40%; width: 60%; background: linear-gradient(90deg, var(--navy), transparent); z-index: 1; }
.division__players img { height: 100%; width: auto; max-width: none; margin-left: -34%; filter: drop-shadow(0 20px 40px rgba(0,0,0,.5)); transition: transform .8s var(--ease); }
.division:hover .division__players img:nth-child(1) { transform: translateX(-8px); }
.division:hover .division__players img:nth-child(3) { transform: translateX(8px); }
.division__players::after { content: ""; position: absolute; inset: auto 0 0 0; height: 45%; background: linear-gradient(transparent, rgba(4,10,28,.95)); }
.division__top { display: flex; justify-content: space-between; align-items: center; }
.division__name { font-family: var(--f-display); font-size: clamp(3rem, 5vw, 5rem); line-height: .85; text-transform: uppercase; margin: 0 0 14px; }
.division__meta { display: flex; gap: 24px; font-family: var(--f-mono); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 20px; }
.division__meta b { display: block; font-family: var(--f-display); font-size: 2rem; letter-spacing: 0; color: var(--white); font-weight: 400; }
.division--lol .division__bg { background: radial-gradient(80% 70% at 80% 20%, rgba(77,135,255,.45), transparent 60%), linear-gradient(160deg, #0f2a78, var(--deep)); }
.division--lol .division__bg::before { content: ""; position: absolute; inset: 0; background: url(../img/background-ta_2025.png) center/520px; filter: invert(1); opacity: .06; }
.division--lol .division__bg img { position: absolute; width: 62%; height: auto; right: -12%; top: 6%; opacity: .16; object-fit: contain; }
.division--soon { background: repeating-linear-gradient(135deg, rgba(255,255,255,.025) 0 12px, transparent 12px 24px), var(--deep); border-style: dashed; }
.division--soon .division__name { color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,.6); }

/* Roster */
.roster { margin-top: clamp(56px, 7vw, 96px); }
.roster__head { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; margin-bottom: 28px; }
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(240px, 300px); gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 18px; scrollbar-width: thin; scrollbar-color: var(--aqua) transparent; }
.rail > * { scroll-snap-align: start; }
.rail-nav { display: flex; gap: 8px; }
.rail-nav button { width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line-strong); display: grid; place-items: center; transition: all .3s; }
.rail-nav button:hover { background: var(--white); color: var(--abyss); }
.rail-nav svg { width: 18px; height: 18px; }

.player {
  position: relative; aspect-ratio: 3 / 4.1; border-radius: var(--r-md); overflow: hidden; isolation: isolate;
  background: radial-gradient(90% 70% at 50% 100%, #2257cf 0%, #0d2260 45%, var(--deep) 80%);
  border: 1px solid var(--line); cursor: pointer;
}
.player::before { content: ""; position: absolute; inset: 0; background: url(../img/background-ta_2025.png) center/420px; filter: invert(1); opacity: .05; z-index: -1; }
.player__num { position: absolute; top: 10px; left: 14px; font-family: var(--f-display); font-size: 6rem; line-height: .8; color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,.18); z-index: -1; }
.player img { position: absolute; bottom: 0; left: 50%; height: 92%; width: auto; max-width: none; transform: translateX(-50%); transition: transform .8s var(--ease); }
.player:hover img { transform: translateX(-50%) scale(1.04); }
.player__info { position: absolute; inset: auto 0 0 0; padding: 60px 16px 16px; background: linear-gradient(transparent, rgba(4,10,28,.95) 55%); }
.player__first { font-family: var(--f-mono); font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--aqua-200); }
.player__last { font-family: var(--f-display); font-size: 2.2rem; line-height: .9; text-transform: uppercase; }
.player__res { margin-top: 8px; font-size: .78rem; color: var(--muted); display: flex; gap: 8px; align-items: center; }
.player__res::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); flex: none; }
.player__badge { position: absolute; top: 14px; right: 14px; }
.player--soon { display: grid; place-items: center; text-align: center; cursor: default; border-style: dashed; background: var(--deep); }
.player--soon img { position: static; transform: none; height: auto; width: 70px; opacity: .4; margin: 0 auto 12px; }

/* =========================================================
   RISULTATI (stile Vitality)
   ========================================================= */
.results-grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 1100px) { .results-grid { grid-template-columns: 1fr 1.25fr; align-items: start; } }
.feature-result { position: relative; border-radius: var(--r-lg); overflow: hidden; min-height: 520px; display: flex; flex-direction: column; justify-content: flex-end; padding: 28px; isolation: isolate; border: 1px solid var(--line); }
.feature-result > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.feature-result::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(4,10,28,0) 30%, rgba(4,10,28,.95) 85%); }
.feature-result__place { font-family: var(--f-display); font-size: clamp(5rem, 9vw, 8.5rem); line-height: .8; color: var(--gold); text-shadow: 0 0 60px rgba(244,198,78,.35); }
.feature-result__place sup { font-size: .4em; vertical-align: top; position: relative; top: .25em; }
.feature-result h3 { margin: 10px 0 6px; }
.feature-result p { margin: 0; color: var(--muted); }

.tabs-row { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.seg { display: inline-flex; padding: 4px; border-radius: 999px; background: var(--deep); border: 1px solid var(--line); }
.seg button { height: 40px; padding: 0 18px; border-radius: 999px; font-family: var(--f-mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.seg button[aria-selected="true"] { background: var(--aqua); color: var(--white); }

.match-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.match {
  display: grid; grid-template-columns: 74px 1fr auto; gap: 18px; align-items: center;
  padding: 18px 14px; border-bottom: 1px solid var(--line); position: relative; transition: background .3s;
  animation: rowIn .6s var(--ease) both;
}
@keyframes rowIn { from { opacity: 0; transform: translateY(12px); } }
.match:hover { background: linear-gradient(90deg, rgba(31,95,224,.14), transparent); }
.match__date { font-family: var(--f-mono); font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); line-height: 1.4; }
.match__date b { display: block; font-family: var(--f-display); font-size: 1.9rem; letter-spacing: 0; color: var(--white); font-weight: 400; line-height: .9; }
.match__event { min-width: 0; }
.match__event strong { display: block; font-family: var(--f-display); font-size: 1.65rem; font-weight: 400; line-height: 1; letter-spacing: .02em; text-transform: uppercase; }
.match__event span { font-size: .82rem; color: var(--muted); display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-top: 6px; }
.match__place { font-family: var(--f-display); font-size: 2.4rem; line-height: 1; text-align: right; min-width: 92px; }
.match__place small { display: block; font-family: var(--f-mono); font-size: .62rem; letter-spacing: .12em; color: var(--muted); text-transform: uppercase; }
.match__place.p1 { color: var(--gold); } .match__place.p2 { color: var(--silver); } .match__place.p4 { color: var(--bronze); }
.match__vs { display: flex; align-items: center; gap: 10px; font-family: var(--f-display); font-size: 1.6rem; }
.match__vs .w { color: var(--aqua-400); }
@media (max-width: 600px) {
  .match { grid-template-columns: 56px 1fr; }
  .match__place { grid-column: 2; text-align: left; font-size: 1.8rem; }
  .match__place small { display: inline; margin-left: 8px; }
}

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--line); }
@media (min-width: 900px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat { padding: 32px 24px 28px 0; border-bottom: 1px solid var(--line); }
.stat + .stat { padding-left: 24px; border-left: 1px solid var(--line); }
@media (max-width: 899px) { .stat:nth-child(3) { padding-left: 0; border-left: 0; } }
.stat b { display: block; font-family: var(--f-display); font-weight: 400; font-size: clamp(4rem, 8vw, 7.5rem); line-height: .85; }
.stat span { font-family: var(--f-mono); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }

/* =========================================================
   NEWS / MAGAZINE
   ========================================================= */
.news-grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .news-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .news-grid { grid-template-columns: 1.6fr 1fr 1fr; grid-template-rows: auto auto; } .news-card--big { grid-row: span 2; } }
.news-card { position: relative; display: flex; flex-direction: column; border-radius: var(--r-lg); overflow: hidden; background: var(--deep); border: 1px solid var(--line); transition: border-color .4s; }
.news-card:hover { border-color: var(--line-strong); }
.news-card__media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; }
.news-card--big .news-card__media { aspect-ratio: auto; flex: 1; min-height: 320px; }
.news-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.news-card:hover .news-card__media img { transform: scale(1.05); }
.news-card__body { padding: 22px 22px 24px; display: flex; flex-direction: column; gap: 12px; }
.news-card__meta { display: flex; gap: 12px; align-items: center; font-family: var(--f-mono); font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.news-card h3 { font-family: var(--f-display); font-weight: 400; font-size: 1.9rem; line-height: .95; text-transform: uppercase; margin: 0; }
.news-card--big h3 { font-size: clamp(2.2rem, 3.4vw, 3.4rem); }
.news-card p { margin: 0; color: var(--muted); font-size: .92rem; }

/* =========================================================
   WATCH / REPLAY
   ========================================================= */
.watch { background: var(--deep); border-radius: var(--r-lg); margin: 0 var(--gutter); padding: clamp(28px, 4vw, 56px); position: relative; overflow: hidden; }
.watch::before { content: ""; position: absolute; inset: 0; background: url(../img/background-ta_2025.png) center/800px; filter: invert(1); opacity: .03; pointer-events: none; }
.watch-grid { display: grid; gap: 20px; grid-template-columns: 1fr; position: relative; }
@media (min-width: 1000px) { .watch-grid { grid-template-columns: 1.7fr 1fr; } }
.video { position: relative; border-radius: var(--r-md); overflow: hidden; aspect-ratio: 16 / 9; background: #000; cursor: pointer; display: block; }
.video img { width: 100%; height: 100%; object-fit: cover; opacity: .8; transition: opacity .4s, transform 1s var(--ease); }
.video:hover img { opacity: 1; transform: scale(1.03); }
.video__play { position: absolute; left: 50%; top: 50%; width: 84px; height: 84px; margin: -42px 0 0 -42px; border-radius: 50%; background: var(--white); color: var(--abyss); display: grid; place-items: center; transition: transform .4s var(--ease); box-shadow: 0 0 0 12px rgba(255,255,255,.15); }
.video:hover .video__play { transform: scale(1.1); }
.video__play svg { width: 26px; margin-left: 4px; }
.video__cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 20px 18px; background: linear-gradient(transparent, rgba(0,0,0,.85)); display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; }
.video__cap strong { font-family: var(--f-display); font-weight: 400; font-size: clamp(1.6rem, 2.5vw, 2.4rem); line-height: .95; text-transform: uppercase; }
.video-list { display: flex; flex-direction: column; gap: 10px; }
.video-item { display: grid; grid-template-columns: 150px 1fr; gap: 14px; align-items: center; padding: 8px; border-radius: var(--r-md); transition: background .3s; }
.video-item:hover { background: rgba(255,255,255,.05); }
.video-item__thumb { position: relative; aspect-ratio: 16/9; border-radius: 10px; overflow: hidden; }
.video-item__thumb img { width: 100%; height: 100%; object-fit: cover; }
.video-item__thumb span { position: absolute; right: 6px; bottom: 6px; font-family: var(--f-mono); font-size: .62rem; background: rgba(0,0,0,.75); padding: 2px 6px; border-radius: 4px; }
.video-item strong { display: block; font-family: var(--f-display); font-weight: 400; font-size: 1.3rem; line-height: 1; text-transform: uppercase; margin-bottom: 6px; }
.video-item small { font-size: .75rem; color: var(--muted); }

/* =========================================================
   SHOP (stile Vitality: rail prodotti)
   ========================================================= */
.shop-banner { position: relative; border-radius: var(--r-lg); overflow: hidden; min-height: 420px; display: grid; align-items: end; padding: clamp(24px, 4vw, 48px); margin-bottom: 18px; isolation: isolate; background: linear-gradient(120deg, var(--aqua), #0b2a7a 60%, var(--deep)); }
.shop-banner__img { position: absolute; right: 2%; bottom: -6%; height: 112%; z-index: -1; filter: drop-shadow(0 30px 60px rgba(0,0,0,.45)); transform: rotate(-4deg); }
@media (max-width: 760px) { .shop-banner__img { opacity: .35; right: -30%; } }
.shop-banner__mega { position: absolute; left: -1%; top: -6%; font-family: var(--f-display); font-size: clamp(8rem, 22vw, 22rem); line-height: .8; color: rgba(255,255,255,.08); z-index: -1; white-space: nowrap; }
.product { display: flex; flex-direction: column; gap: 14px; }
.product__media { position: relative; aspect-ratio: 1; border-radius: var(--r-md); overflow: hidden; background: #e9edf5; }
.product__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.product:hover .product__media img { transform: scale(1.06); }
.product__cta { position: absolute; left: 12px; right: 12px; bottom: 12px; transform: translateY(130%); transition: transform .5s var(--ease); justify-content: center; }
.product:hover .product__cta { transform: none; }
.product__badge { position: absolute; top: 12px; left: 12px; }
.product__row { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.product__name { font-weight: 600; font-size: .95rem; line-height: 1.3; }
.product__price { font-family: var(--f-mono); font-size: .9rem; color: var(--aqua-200); white-space: nowrap; }

/* =========================================================
   JOIN THE TIDE (community / newsletter / eventi)
   ========================================================= */
.join { position: relative; overflow: hidden; }
.join__mega { font-family: var(--f-display); font-size: clamp(5rem, 17vw, 17rem); line-height: .8; text-transform: uppercase; margin: 0 0 clamp(32px, 4vw, 56px); }
.join__mega span { display: block; }
.join__mega .outline { -webkit-text-stroke-width: 2px; }
.join-grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 1000px) { .join-grid { grid-template-columns: 1.1fr 1fr; } }
.panel { border-radius: var(--r-lg); padding: clamp(24px, 3vw, 40px); background: var(--deep); border: 1px solid var(--line); position: relative; overflow: hidden; }
.panel--aqua { background: linear-gradient(150deg, var(--aqua) 0%, #123a9e 70%); border: 0; }
.panel--aqua::after { content: ""; position: absolute; right: -80px; bottom: -80px; width: 340px; height: 340px; background: url(../img/mark-white.png) center/contain no-repeat; opacity: .1; }
.panel h3 { margin: 16px 0 10px; }
.panel p { color: rgba(255,255,255,.78); margin: 0 0 24px; max-width: 46ch; }
.form { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 14px; }
.field { display: flex; gap: 8px; padding: 6px; border-radius: 999px; background: rgba(4,10,28,.35); border: 1px solid rgba(255,255,255,.25); }
.field input { flex: 1; min-width: 0; background: none; border: 0; color: var(--white); padding: 0 18px; font: inherit; outline: none; }
.field input::placeholder { color: rgba(255,255,255,.6); }
.checks { display: flex; flex-wrap: wrap; gap: 8px; }
.check { position: relative; }
.check input { position: absolute; opacity: 0; }
.check span { display: inline-flex; height: 36px; align-items: center; padding: 0 14px; border-radius: 999px; border: 1px solid rgba(255,255,255,.35); font-family: var(--f-mono); font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; cursor: pointer; transition: all .25s; }
.check input:checked + span { background: var(--white); color: var(--aqua); border-color: var(--white); }
.check input:focus-visible + span { outline: 2px solid var(--white); outline-offset: 2px; }
.form__ok { display: none; font-family: var(--f-display); font-size: 2rem; }
.form.is-done .form__ok { display: block; }
.form.is-done > :not(.form__ok) { display: none; }
.fine { font-size: .72rem; color: rgba(255,255,255,.6); margin: 0; }

.events { list-style: none; margin: 18px 0 0; padding: 0; }
.event { display: grid; grid-template-columns: 1fr auto; gap: 4px 16px; align-items: center; padding: 16px 0; border-top: 1px solid var(--line); }
.event strong { font-family: var(--f-display); font-weight: 400; font-size: 1.5rem; line-height: 1; text-transform: uppercase; }
.event span { font-size: .8rem; color: var(--muted); }
.event .tag { grid-row: span 2; }
.join-cards { display: grid; gap: 16px; grid-template-columns: 1fr; margin-top: 16px; }
@media (min-width: 760px) { .join-cards { grid-template-columns: repeat(3, 1fr); } }
.join-card { display: flex; flex-direction: column; justify-content: space-between; gap: 40px; min-height: 220px; padding: 24px; border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--deep); transition: all .4s var(--ease); }
.join-card:hover { background: var(--white); color: var(--abyss); transform: translateY(-4px); }
.join-card:hover .label, .join-card:hover p { color: var(--abyss); }
.join-card:hover .label::before { background: var(--abyss); }
.join-card h4 { font-family: var(--f-display); font-weight: 400; font-size: 2.2rem; line-height: .9; text-transform: uppercase; margin: 0 0 8px; }
.join-card p { margin: 0; color: var(--muted); font-size: .9rem; }
.join-card__arrow { width: 44px; height: 44px; border-radius: 50%; border: 1px solid currentColor; display: grid; place-items: center; align-self: flex-end; }
.join-card__arrow svg { width: 16px; height: 16px; }

/* =========================================================
   PARTNERS
   ========================================================= */
.partners { display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
@media (min-width: 900px) { .partners { grid-template-columns: 1.4fr repeat(4, 1fr); } }
.partner { display: grid; place-items: center; gap: 12px; padding: 28px 20px; min-height: 170px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); text-align: center; transition: background .3s; position: relative; }
.partner:hover { background: rgba(255,255,255,.03); }
.partner img { max-height: 64px; max-width: 70%; width: auto; filter: brightness(0) invert(1); opacity: .75; transition: opacity .3s; }
.partner:hover img { opacity: 1; }
.partner small { position: absolute; top: 12px; left: 14px; font-family: var(--f-mono); font-size: .6rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.partner--main { grid-column: span 2; background: linear-gradient(140deg, rgba(31,95,224,.18), transparent); }
@media (min-width: 900px) { .partner--main { grid-column: auto; grid-row: span 2; } .partner--main img { max-height: 120px; } }

/* =========================================================
   FOOTER
   ========================================================= */
.footer { position: relative; padding: clamp(64px, 8vw, 110px) 0 28px; background: var(--deep); overflow: hidden; }
.footer__grid { display: grid; gap: 40px; grid-template-columns: 1fr 1fr; }
@media (min-width: 900px) { .footer__grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; } }
.footer h5 { font-family: var(--f-mono); font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--aqua-200); margin: 0 0 16px; font-weight: 500; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: .9rem; }
.footer ul a { color: var(--muted); transition: color .2s; }
.footer ul a:hover { color: var(--white); }
.footer__intro p { color: var(--muted); max-width: 36ch; margin: 18px 0 24px; font-size: .92rem; }
.footer__mega { font-family: var(--f-display); font-size: 23.5vw; line-height: .75; text-align: center; margin: clamp(48px, 6vw, 90px) 0 0; color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,.14); white-space: nowrap; user-select: none; }
.footer__legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; padding-top: 24px; border-top: 1px solid var(--line); font-size: .74rem; color: var(--muted); font-family: var(--f-mono); letter-spacing: .04em; }
@media (max-width: 560px) { .footer__grid { grid-template-columns: 1fr; } }

/* ---------- Drawer giocatore ---------- */
.drawer { position: fixed; inset: 0; z-index: 90; display: grid; place-items: end; pointer-events: none; }
.drawer__scrim { position: absolute; inset: 0; background: rgba(2,6,18,.7); opacity: 0; transition: opacity .5s; backdrop-filter: blur(6px); }
.drawer__panel { position: relative; width: min(560px, 100%); height: 100%; background: var(--deep); border-left: 1px solid var(--line); transform: translateX(100%); transition: transform .7s var(--ease); overflow-y: auto; display: flex; flex-direction: column; }
.drawer.is-open { pointer-events: auto; }
.drawer.is-open .drawer__scrim { opacity: 1; }
.drawer.is-open .drawer__panel { transform: none; }
.drawer__media { position: relative; height: 58vh; min-height: 360px; background: radial-gradient(90% 70% at 50% 100%, #2257cf 0%, #0d2260 45%, var(--deep) 80%); overflow: hidden; flex: none; }
.drawer__media img { position: absolute; bottom: 0; left: 50%; height: 95%; width: auto; max-width: none; transform: translateX(-50%); }
.drawer__media .player__num { font-size: 16rem; top: 30px; left: 24px; }
.drawer__close { position: absolute; top: 18px; right: 18px; width: 46px; height: 46px; border-radius: 50%; background: var(--white); color: var(--abyss); font-size: 22px; z-index: 2; }
.drawer__body { padding: 28px; }
.drawer__body h3 { margin: 8px 0 20px; }
.drawer__body ul { list-style: none; padding: 0; margin: 0; }
.drawer__body li { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-top: 1px solid var(--line); font-size: .95rem; }
.drawer__body li b { font-family: var(--f-display); font-weight: 400; font-size: 1.4rem; line-height: 1; color: var(--gold); white-space: nowrap; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
}
.partner--main img { filter: none; opacity: 1; max-height: 150px; border-radius: 14px; }
.partner img[alt="Blueberry Travel"] { max-height: 90px; }

.hero__soon .label { background: rgba(4,10,28,.7); padding: 10px 16px; border-radius: 999px; border: 1px solid var(--line); backdrop-filter: blur(8px); }

/* Hero: due giocatori extra per schermi larghi */
.hero__player--ll, .hero__player--rr { display: none; left: 50%; height: 60vh; z-index: 1; filter: drop-shadow(0 30px 60px rgba(0,0,0,.5)) brightness(.6) saturate(.8); }
.hero__player--ll { transform: translateX(calc(-196% + var(--mx, 0) * 26px)); }
.hero__player--rr { transform: translateX(calc(96% + var(--mx, 0) * 26px)); }
@media (min-width: 1200px) and (min-aspect-ratio: 13/9) { .hero__player--ll, .hero__player--rr { display: block; } }
@media (max-width: 760px) {
  :root { --fs-mega: min(44vw, 40vh); }
  .hw-team { display: none; }
  .hero__type { top: 46%; }
  .hero__type-small { top: calc(46% - var(--fs-mega) * .62 - 14px); letter-spacing: .2em; font-size: .6rem; }
}
@media (max-width: 1600px) { .hero__claim p { display: none; } }
@media (max-width: 760px) {
  :root { --fs-mega: 48vw; }
  .hero__type { top: 40%; }
  .hero__type-small { top: calc(40% - var(--fs-mega) * .62 - 14px); }
  .hero__player--c { height: 66vh; }
  .hero__player--l, .hero__player--r { height: 54vh; }
}

/* ---------- Watch: slider stile Vitality ---------- */
.watch-actions { display: flex; align-items: center; gap: 22px; }
.vslider { display: grid; grid-auto-flow: column; grid-auto-columns: 86%; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
.vslider::-webkit-scrollbar { display: none; }
@media (min-width: 700px) { .vslider { grid-auto-columns: calc((100% - 18px) / 2); } }
@media (min-width: 1100px) { .vslider { grid-auto-columns: calc((100% - 36px) / 3); } }
.vcard { scroll-snap-align: start; display: flex; flex-direction: column; gap: 14px; }
.vcard[hidden] { display: none; }
.vcard__thumb { position: relative; aspect-ratio: 16 / 9; border-radius: var(--r-md); overflow: hidden; background: var(--deep); }
.vcard__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease), opacity .4s; opacity: .88; }
.vcard__thumb::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(4,10,28,.7)); }
.vcard:hover .vcard__thumb img { transform: scale(1.05); opacity: 1; }
.vcard__play { position: absolute; left: 16px; bottom: 16px; z-index: 1; width: 52px; height: 52px; border-radius: 50%; background: var(--white); color: var(--abyss); display: grid; place-items: center; transition: transform .4s var(--ease), background .3s, color .3s; }
.vcard__play svg { width: 18px; height: 18px; margin-left: 3px; }
.vcard:hover .vcard__play { transform: scale(1.12); background: var(--aqua-400); color: var(--white); }
.vcard__dur { position: absolute; right: 12px; bottom: 12px; z-index: 1; font-family: var(--f-mono); font-size: .68rem; letter-spacing: .06em; padding: 4px 8px; border-radius: 6px; background: rgba(4,10,28,.8); }
.vcard__dur.is-live { background: var(--live); color: #fff; }
.vcard__dur.is-live::before { content: "● "; animation: vblink 1.4s infinite; }
@keyframes vblink { 50% { opacity: .2; } }
.vcard__meta { display: flex; gap: 14px; font-family: var(--f-mono); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.vcard__meta span:first-child { color: var(--aqua-200); }
.vcard__title { margin: 0; font-family: var(--f-display); font-weight: 400; font-size: clamp(1.5rem, 2vw, 2rem); line-height: .95; text-transform: uppercase; transition: color .3s; }
.vcard:hover .vcard__title { color: var(--aqua-200); }
.vprogress { position: relative; height: 2px; background: var(--line); margin-top: 28px; border-radius: 2px; overflow: hidden; }
.vprogress i { position: absolute; left: 0; top: 0; bottom: 0; background: var(--white); border-radius: 2px; transition: left .15s linear, width .3s; }

.footer__docs { display: inline-flex; flex-wrap: wrap; gap: 6px 14px; }
.footer__docs a { color: var(--aqua-200); }

/* =========================================================
   MOBILE POLISH (≤ 760px)
   ========================================================= */
.match-more { display: none; }
@media (max-width: 760px) {
  /* etichette mono leggibili */
  .tag, .label, .player__first, .news-card__meta, .vcard__dur, .vcard__meta, .check span,
  .match__place small, .next-match__day small, .division__meta, .countdown small,
  .partner small, .hero__type-small, .info-strip small { font-size: 12px !important; }

  /* divisioni: card più basse, testo leggibile sopra i giocatori */
  .division { min-height: 340px; padding: 22px; }
  .division__players { width: 78%; height: 74%; right: -8%; opacity: .9; }
  .division__players::before { display: none; }
  .division__bg::after { background: linear-gradient(180deg, rgba(4,10,28,.1) 20%, rgba(4,10,28,.95) 78%); }
  .division__name { font-size: 3.2rem; text-shadow: 0 2px 24px rgba(4,10,28,.9); position: relative; }
  .division__meta { position: relative; }
  .division--soon { min-height: 220px; }
  .division--lol { min-height: 280px; }

  /* risultati: righe compatte, prime 5 visibili */
  .match { grid-template-columns: 56px 1fr auto; gap: 12px; padding: 14px 4px; }
  .match-list:not(.is-open) .match:nth-child(n+6) { display: none; }
  .match-more { display: flex; width: 100%; justify-content: center; margin-top: 18px; }
  .match-more[hidden] { display: none; }

  /* magazine e join: slider orizzontale invece della pila */
  .news-grid, .join-cards {
    display: grid; grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: 82%;
    overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
    margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scroll-padding-inline: var(--gutter);
  }
  .news-grid::-webkit-scrollbar, .join-cards::-webkit-scrollbar { display: none; }
  .news-grid > *, .join-cards > * { scroll-snap-align: start; }
  .news-card--big .news-card__media { flex: none; min-height: 0; aspect-ratio: 16 / 10; }
  .news-card--big h3 { font-size: 1.9rem; }
  .news-card p { display: none; }
  .join-card { min-height: 190px; gap: 24px; }

  /* filtri in una riga scorrevole */
  #watch .chips, .shop-toolbar .chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); }
  #watch .chips::-webkit-scrollbar, .shop-toolbar .chips::-webkit-scrollbar { display: none; }
  .chip { flex: none; }
  .watch-actions .link-arrow { display: none; }

  /* titoli di sezione meno invadenti */
  .section-head { gap: 18px; }
}

/* ---------- Hero mobile: gruppo di 5 giocatori ---------- */
@media (max-width: 760px) {
  .hero { --pw: min(100vw, 62vh); --pb: max(150px, 21vh); }
  .hero__player {
    height: auto !important; max-height: none; bottom: var(--pb);
    transform: none !important;
    -webkit-mask-image: linear-gradient(180deg, #000 62%, transparent 96%);
            mask-image: linear-gradient(180deg, #000 62%, transparent 96%);
  }
  .hero__player--c  { width: calc(var(--pw) * .66); left: calc(50% - var(--pw) * .33); z-index: 5; }
  .hero__player--l  { width: calc(var(--pw) * .56); left: calc(50% - var(--pw) * .25 - var(--pw) * .28); z-index: 4; }
  .hero__player--r  { width: calc(var(--pw) * .56); left: calc(50% + var(--pw) * .25 - var(--pw) * .28); z-index: 4; }
  .hero__player--ll { display: block; width: calc(var(--pw) * .48); left: calc(50% - var(--pw) * .45 - var(--pw) * .24); z-index: 3; bottom: calc(var(--pb) + 8px); }
  .hero__player--rr { display: block; width: calc(var(--pw) * .48); left: calc(50% + var(--pw) * .45 - var(--pw) * .24); z-index: 3; bottom: calc(var(--pb) + 8px); }
  [data-game="lol"] .hero__player { transform: translateY(40px) !important; }
}
@media (max-width: 760px) and (max-height: 720px) { .hero__type-small { display: none; } }

/* ---------- Hero desktop/tablet: stesso gruppo di 5, scalato sullo spazio ---------- */
@media (min-width: 761px) {
  .hero { --pw: min(72vw, 86vh); }
  .hero__player {
    height: auto !important; max-height: none; bottom: 0;
    -webkit-mask-image: linear-gradient(180deg, #000 78%, transparent 100%);
            mask-image: linear-gradient(180deg, #000 78%, transparent 100%);
  }
  .hero__player--c  { width: calc(var(--pw) * .66); left: calc(50% - var(--pw) * .33); z-index: 5;
                      transform: translateX(calc(var(--mx, 0) * 10px)) !important; }
  .hero__player--l  { width: calc(var(--pw) * .56); left: calc(50% - var(--pw) * .25 - var(--pw) * .28); z-index: 4;
                      transform: translateX(calc(var(--mx, 0) * 18px)) !important; }
  .hero__player--r  { width: calc(var(--pw) * .56); left: calc(50% + var(--pw) * .25 - var(--pw) * .28); z-index: 4;
                      transform: translateX(calc(var(--mx, 0) * 18px)) !important; }
  .hero__player--ll { display: block !important; width: calc(var(--pw) * .48); left: calc(50% - var(--pw) * .45 - var(--pw) * .24); z-index: 3;
                      transform: translateX(calc(var(--mx, 0) * 26px)) !important; }
  .hero__player--rr { display: block !important; width: calc(var(--pw) * .48); left: calc(50% + var(--pw) * .45 - var(--pw) * .24); z-index: 3;
                      transform: translateX(calc(var(--mx, 0) * 26px)) !important; }
  [data-game="lol"] .hero__player { transform: translateY(40px) !important; }
}
@media (min-width: 761px) and (max-aspect-ratio: 4/5) {
  .hero { --pw: min(92vw, 62vh); }
  .hero__player { bottom: max(150px, 18vh); -webkit-mask-image: linear-gradient(180deg, #000 62%, transparent 96%); mask-image: linear-gradient(180deg, #000 62%, transparent 96%); }
}
/* tetto: il giocatore centrale non supera ~540px, la risoluzione delle foto originali (1044px) su schermi retina */
@media (min-width: 761px) { .hero { --pw: min(72vw, 86vh, 820px); } }
@media (min-width: 761px) and (max-aspect-ratio: 4/5) { .hero { --pw: min(92vw, 62vh, 820px); } }

/* =========================================================
   HERO — piramide con gli 11 giocatori del sito ufficiale
   fila dietro rialzata: LoL (gruppi da 4 e da 3)
   fila davanti: VGC (due coppie)
   --gh = altezza della fila davanti, --gb = distanza dal fondo
   ========================================================= */
.hero { --gh: min(50vh, 38vw, 480px); --gb: 0px; }
.hero__grp {
  position: absolute; height: auto; max-width: none; pointer-events: none;
  transition: left .9s var(--ease), bottom .9s var(--ease), width .9s var(--ease), opacity .7s var(--ease), filter .7s var(--ease), transform .9s var(--ease);
  -webkit-mask-image: linear-gradient(180deg, #000 76%, transparent 100%);
          mask-image: linear-gradient(180deg, #000 76%, transparent 100%);
}
/* fila davanti (VGC) */
.hero__grp--v2, .hero__grp--v1 { bottom: var(--gb); z-index: 5; filter: drop-shadow(0 30px 50px rgba(0,0,0,.55)); }
.hero__grp--v2 { width: calc(var(--gh) * 1.108); left: calc(50% - var(--gh) * 1.078); transform: translateX(calc(var(--mx, 0) * 12px)); }
.hero__grp--v1 { width: calc(var(--gh) * 1.076); left: calc(50% - var(--gh) * .03);   transform: translateX(calc(var(--mx, 0) * 12px)); }
/* fila dietro (LoL), più piccola, rialzata e in ombra */
.hero__grp--l2, .hero__grp--l1 { bottom: calc(var(--gb) + var(--gh) * .58); z-index: 3; filter: brightness(.72) saturate(.85) drop-shadow(0 20px 40px rgba(0,0,0,.5)); }
.hero__grp--l2 { width: calc(var(--gh) * .963); left: calc(50% - var(--gh) * .943); transform: translateX(calc(var(--mx, 0) * 22px)); }
.hero__grp--l1 { width: calc(var(--gh) * .899); left: calc(50% - var(--gh) * .02);  transform: translateX(calc(var(--mx, 0) * 22px)); }

/* switch League of Legends: la fila LoL scende davanti, la VGC sparisce */
[data-game="lol"] .hero__grp--v2, [data-game="lol"] .hero__grp--v1 { opacity: 0; transform: translateY(40px); }
[data-game="lol"] .hero__grp--l2, [data-game="lol"] .hero__grp--l1 { bottom: var(--gb); z-index: 6; filter: drop-shadow(0 30px 50px rgba(0,0,0,.55)); }
[data-game="lol"] .hero__grp--l2 { width: calc(var(--gh) * 1.337); left: calc(50% - var(--gh) * 1.30); }
[data-game="lol"] .hero__grp--l1 { width: calc(var(--gh) * 1.249); left: calc(50% - var(--gh) * .02); }
.hero__soon { display: none; }

/* mobile: piramide più compatta, sopra i controlli in basso */
@media (max-width: 760px) {
  .hero { --gh: min(45vw, 34vh); --gb: max(150px, 20vh); }
  .hero__grp { -webkit-mask-image: linear-gradient(180deg, #000 70%, transparent 98%); mask-image: linear-gradient(180deg, #000 70%, transparent 98%); }
  .hero__grp--v2, .hero__grp--v1, .hero__grp--l2, .hero__grp--l1 { transform: none; }
  [data-game="lol"] .hero__grp--v2, [data-game="lol"] .hero__grp--v1 { transform: translateY(30px); }
  [data-game="lol"] .hero__grp--l2 { width: calc(var(--gh) * 1.05); left: calc(50% - var(--gh) * 1.03); }
  [data-game="lol"] .hero__grp--l1 { width: calc(var(--gh) * .98);  left: calc(50% - var(--gh) * .01); }
}
/* finestre in verticale (desktop stretto e alto) */

/* ---------- Hero desktop/tablet: scritta + piramide come un blocco unico ----------
   --gh = altezza fila davanti, proporzionale alla scritta (--fs-mega)
   --ty = posizione verticale della scritta: il blocco resta centrato nello spazio
          sotto l'header e la fila davanti non stacca mai dal fondo se non c'è spazio */
@media (min-width: 761px) {
  .hero {
    --gh: min(calc(var(--fs-mega) * 1.08), 540px);
    --ty: min(calc(100% - var(--gh)), max(50%, calc((100% + 130px + var(--fs-mega) * .48 - var(--gh)) / 2)));
    --gb: calc(100% - var(--ty) - var(--gh));
  }
  .hero__type { top: var(--ty); }
  .hero__type-small { top: calc(var(--ty) - var(--fs-mega) * .62 - 18px); }
}

/* ---------- Hero: si vede solo il roster del gioco selezionato ----------
   Pokémon VGC (default): i 4 giocatori VGC. League of Legends: i 7 giocatori LoL. */
.hero__grp--l2, .hero__grp--l1 { opacity: 0; transform: translateY(40px); }
[data-game="lol"] .hero__grp--l2, [data-game="lol"] .hero__grp--l1 { opacity: 1; transform: translateX(calc(var(--mx, 0) * 12px)); }

/* ---------- I nostri team: card LoL con il roster ---------- */
.division__players--grp { left: 0; right: 0; width: auto; height: auto; bottom: 0; justify-content: center; }
.division__players--grp::before { display: none; }
.division__players--grp img { height: auto; width: 56%; margin-left: -10%; }
.division__players--grp img:first-child { margin-left: 0; }
.division--lol .division__bg img { opacity: .1; }

/* ---------- Hero mobile: "TEAM AQUA" su due righe sopra i giocatori ---------- */
@media (max-width: 760px) {
  .hero .hw-team { display: block; }
  .hero__type { top: 49%; line-height: .8; }
  .hero__type-small { display: none; }
}
/* card LoL: gruppo sopra le statistiche, il nome si appoggia sui busti */
.division__players--grp { bottom: 92px; }
.division__players--grp::after { height: 55%; background: linear-gradient(transparent, rgba(4,10,28,.9)); }
@media (max-width: 760px) {
  .division--lol { min-height: 380px; }
  .division__players--grp { bottom: 84px; opacity: 1; }
}

/* ---------- Schede giocatore: testo sempre allineato ----------
   nome su una riga, riconoscimento in uno spazio fisso di 2 righe */
.player__first { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.player__last { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: clamp(1.6rem, 2vw, 2.2rem); }
.player__res {
  align-items: flex-start; line-height: 1.35; min-height: calc(2 * 1.35em);
  display: flex; overflow: hidden;
}
.player__res::before { margin-top: .5em; }
.player__res span { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.player__info { text-align: left; }
.player--soon .player__info { text-align: center; }

/* ---------- Switch lingua IT / EN (stesso linguaggio del selettore giochi) ---------- */
.lang-switch {
  display: inline-flex; align-items: center; gap: 2px; height: 40px; padding: 3px; border-radius: 999px;
  border: 1px solid var(--line-strong, rgba(255,255,255,.22)); background: rgba(4,10,28,.35);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.lang-switch button {
  height: 100%; min-width: 36px; padding: 0 10px; border-radius: 999px;
  font-family: var(--f-mono); font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted); transition: background .3s var(--ease), color .3s var(--ease);
}
.lang-switch button:hover { color: var(--white); }
.lang-switch button[aria-pressed="true"] { background: var(--white); color: var(--abyss); }
.lang-switch button:focus-visible { outline: 2px solid var(--aqua-200, #9ec3ff); outline-offset: 2px; }
.lang-switch--header { display: none; }
@media (min-width: 640px) { .lang-switch--header { display: inline-flex; } }
.lang-switch--menu { height: 44px; }
.lang-switch--menu button { min-width: 48px; }
/* menu: la lista scorre dentro il suo spazio e non finisce più sotto il piede */
.menu__body { overflow-y: auto; overscroll-behavior: contain; }
@media (max-width: 760px) {
  .menu__list a { font-size: clamp(2rem, 5vh, 2.8rem); white-space: nowrap; }
  .menu__foot { gap: 14px 20px; padding-top: 16px; padding-bottom: 20px; }
  .menu__foot > span { order: 3; width: 100%; font-size: .78rem; }
}

/* ---------- Hero: in basso solo scroll al centro e social a destra ---------- */
.hero__bottom { display: grid; grid-template-columns: 1fr auto 1fr; align-items: end; }
.hero__social { justify-self: end; display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.hero__social-label { font-family: var(--f-mono); font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.hero__social .socials a { background: rgba(4,10,28,.35); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
@media (max-width: 760px) {
  .hero__bottom { grid-template-columns: 1fr; }
  .hero__bottom > span[aria-hidden] { display: none; }
  .hero__social { justify-self: start; flex-direction: row; align-items: center; gap: 14px; }
}
.menu.is-open .menu__list li:nth-child(8) a { transition-delay: .6s; }
.menu.is-open .menu__list li:nth-child(9) a { transition-delay: .65s; }
/* lo spazio della barra di scorrimento resta riservato: aprendo menu o scheda giocatore la pagina non slitta */
html { scrollbar-gutter: stable; }

/* ---------- Hero: claim in basso a sinistra ---------- */
.hero__top { justify-content: flex-end; }
.hero__bottom .hero__claim { justify-self: start; align-self: end; }
@media (max-width: 760px) {
  .hero__top { align-items: flex-start; }
  .hero__bottom { gap: 14px; }
}
/* selettore gioco in alto a sinistra, sotto il logo */
.hero__top { justify-content: flex-start; align-self: start; }
.hero__games { align-items: flex-start; }

/* =========================================================
   Correzioni dal report (grafica e usabilità)
   ========================================================= */
/* 1. Header: TARL e Shop sempre visibili, compatti su telefono */
.header-tarl, .header-shop { display: inline-flex; }
.header-shop svg { width: 18px; height: 18px; }
.show-sm { display: none; }
@media (max-width: 639px) {
  .header__right { gap: 8px; }
  .header-tarl, .header-shop, .menu-btn { height: 44px; }
  .header-tarl { padding: 0 14px; }
  .header-shop { width: 44px; padding: 0; justify-content: center; }
  .header-shop::after { display: none; }
  .hide-sm { display: none; }
  .show-sm { display: block; }
  .menu-btn { gap: 10px; padding-left: 16px; padding-right: 5px; }
}
@media (max-width: 420px) { .header .brand span { display: none; } }

/* 2. Hero su tablet e finestre in verticale: giocatori grandi, appoggiati alla fascia bassa */
@media (min-width: 761px) and (max-aspect-ratio: 4/5) {
  .hero { --gh: min(45vw, 36svh); --gb: clamp(110px, 11svh, 150px); --ty: calc(100% - var(--gb) - var(--gh)); }
  [data-game="lol"] .hero__grp--l2 { width: calc(var(--gh) * 1.05); left: calc(50% - var(--gh) * 1.03); }
  [data-game="lol"] .hero__grp--l1 { width: calc(var(--gh) * .98);  left: calc(50% - var(--gh) * .01); }
}

/* 3. Hero su telefono: la scritta si aggancia ai giocatori, non all'altezza dello schermo */
@media (max-width: 760px) {
  :root { --fs-mega: min(48vw, 25svh); }
  .hero { min-height: 500px; --gh: min(45vw, 32svh); --gb: max(130px, 17svh); }
  .hero__type { top: auto; bottom: calc(var(--gb) + var(--gh) * .5); transform: translateX(-50%); }
}
/* telefoni in orizzontale: scritta su una riga, tutto più basso */
@media (orientation: landscape) and (max-height: 500px) {
  :root { --fs-mega: min(30vw, 30svh); }
  .hero { min-height: 0; --gh: 50svh; --gb: 70px; --ty: calc(100% - var(--gb) - var(--gh)); }
  .hero .hw-team { display: inline; }
  .hero__type { top: auto; bottom: calc(var(--gb) + var(--gh) * .55); transform: translateX(-50%); line-height: .8; }
  .hero__ui { padding-top: 80px; }
  .hero__claim, .scroll-cue { display: none; }
}

/* 4. Risultati su telefono: piazzamento sotto l'evento, righe basse */
@media (max-width: 600px) {
  .match { grid-template-columns: 46px 1fr auto; gap: 12px; padding: 14px 2px; }
  .match__date b { font-size: 1.5rem; }
  .match__event strong { font-size: 1.3rem; }
  .match__event span { margin-top: 4px; }
  .match__place { grid-column: auto; text-align: right; min-width: 0; font-size: 1.6rem; }
  .match__place small { display: block; margin-left: 0; }
}

/* 5. Link interni: il titolo non finisce sotto l'header */
main [id] { scroll-margin-top: 84px; }

/* 9. Menu: si chiude con la stessa tendina con cui si apre */
.menu { transition: clip-path .7s var(--ease-in-out), visibility 0s linear .7s; }
.menu.is-open { transition: clip-path .9s var(--ease-in-out), visibility 0s; }
/* telefoni bassi (es. iPhone SE con le barre di Safari): scritta e giocatori più piccoli, sotto il selettore */
@media (max-width: 760px) and (max-height: 640px) and (orientation: portrait) {
  :root { --fs-mega: min(48vw, 20svh); }
  .hero { --gh: min(45vw, 28svh); }
  .hero__type { bottom: calc(var(--gb) + var(--gh) * .4); }
}
/* telefoni in orizzontale: il selettore scende in basso a sinistra, la scritta resta sopra le teste */
@media (orientation: landscape) and (max-height: 500px) {
  :root { --fs-mega: min(30vw, 28svh); }
  .hero { --gh: 46svh; }
  .hero__type { bottom: calc(var(--gb) + var(--gh) * .75); }
  .hero__top { position: absolute; left: var(--gutter); bottom: 14px; }
  .hero__social { display: none; }
}

/* =========================================================
   Home: struttura e gerarchia (report grafica e struttura)
   ========================================================= */
/* claim della hero: frase principale, non didascalia */
.hero__claim .label { font-family: var(--f-display); font-size: clamp(1.5rem, 2.2vw, 2.4rem); letter-spacing: .01em; line-height: 1; color: var(--white); text-transform: uppercase; }
.hero__claim .label::before { display: none; }
.hero__claim { max-width: 420px; }
@media (max-width: 760px) { .hero__claim .label { font-size: 1.45rem; } .hero__claim { max-width: 300px; } }

/* scala: titoli di card sempre sotto gli h2 di sezione */
.spotlight__title, .shop-banner__title { font-size: clamp(2.2rem, 3.6vw, 3.6rem); line-height: .9; margin: 0; }
.division__name { font-size: clamp(2.4rem, 3.6vw, 3.8rem); }
.stat b { font-size: clamp(2.8rem, 5vw, 4.6rem); }
@media (max-width: 760px) { .division__name { font-size: 2.5rem; } }

/* ritmo: fasce alternate */
.section--band { background: var(--deep); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section--band + .section { padding-top: var(--section-y); }
#partners.section--band { border-bottom: 0; }
.section--band .partner--main { background: linear-gradient(140deg, rgba(31,95,224,.22), transparent); }

/* partner: numeri del team sopra i loghi */
.stats--partners { margin-bottom: clamp(32px, 4vw, 56px); }
@media (min-width: 900px) { .stats--partners { grid-template-columns: repeat(4, 1fr); } }

/* newsletter: email prima, scelte dopo, errore leggibile */
.checks__label { margin: 18px 0 10px; font-family: var(--f-mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.75); }
.form__err { margin: 10px 0 0; font-size: .9rem; font-weight: 600; color: #fff; background: rgba(160,10,40,.55); padding: 8px 12px; border-radius: 8px; }
.form__err[hidden] { display: none; }
#email:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.field:focus-within { box-shadow: 0 0 0 2px rgba(255,255,255,.85); }

/* candidature: pannello con il bottone in fondo */
#candidati { display: flex; flex-direction: column; }
#candidati .btn { align-self: flex-start; }

/* tablet: passaggi intermedi */
@media (min-width: 700px) and (max-width: 899px) {
  .divisions { grid-template-columns: 1fr 1fr; }
  .division--soon { grid-column: span 2; min-height: 200px; }
}
@media (min-width: 900px) { .results-grid { grid-template-columns: 1fr 1.25fr; align-items: start; } }
@media (min-width: 600px) and (max-width: 899px) {
  .partners { grid-template-columns: repeat(3, 1fr); }
  .partner--main { grid-column: span 3; }
}
.lang-switch--header { display: none; }
@media (min-width: 900px) { .lang-switch--header { display: inline-flex; } }

/* mobile: pagina più corta */
@media (max-width: 760px) {
  .divisions {
    grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: 84%;
    overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
    margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scroll-padding-inline: var(--gutter);
  }
  .divisions::-webkit-scrollbar { display: none; }
  .divisions > * { scroll-snap-align: start; }
  .division, .division--lol, .division--soon { min-height: 360px; }
  .feature-result { min-height: 380px; }
  .partners { grid-template-columns: repeat(3, 1fr); }
  .partner--main { grid-column: span 3; }
  .partner { min-height: 110px; padding: 24px 10px 14px; }
  .partner img { max-width: 86%; max-height: 44px; }
  .partner--main img { max-height: 110px; }
  .partner .display { font-size: 1.4rem !important; }
  .join-cards { grid-auto-flow: row; grid-auto-columns: auto; overflow: visible; margin-inline: 0; padding-inline: 0; }
  .join-card { min-height: 0; flex-direction: row; align-items: center; gap: 16px; padding: 18px; }
  .join-card > .label { display: none; }
  .join-card > div { flex: 1; }
  .join-card h4 { font-size: 1.7rem; }
  .join-card__arrow { align-self: center; flex: none; }
}
@media (max-width: 560px) {
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 32px 20px; }
  .footer__intro { grid-column: 1 / -1; }
  .footer__grid > div:last-child { grid-column: 1 / -1; }
}

/* "TARL 2027" nell header: niente spazio di flex tra le due parole */
.header-tarl { gap: 0; }
