/* Memorial Simone Schiavello — foglio di stile unico, mobile first.
   Linguaggio visivo pulito ispirato ad apple.com: sezioni chiare e scure
   alternate, titoli centrati, card arrotondate, oro solo come accento. */

@font-face {
  font-family: "Inter";
  src: url("/fonts/inter.woff2") format("woff2");
  font-weight: 300 700;
  font-display: swap;
}

:root {
  --black: #000;
  --dark: #111113;
  --dark-2: #1d1d1f;
  --white: #fff;
  --light: #f5f5f7;
  --text: #1d1d1f;
  --text-2: #6e6e73;
  --text-dark-2: #a1a1a6;
  --line: #d2d2d7;
  --line-dark: #333336;
  --gold: #d4b173;       /* accento su fondo scuro */
  --gold-ink: #8f6a2c;   /* accento su fondo chiaro */
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Inter", "Helvetica Neue", Arial, sans-serif;
  --gutter: 22px;
  --max: 1080px;
  --wide: 1280px;
  --radius: 28px;
  --ease: cubic-bezier(.28, .11, .32, 1);
  --nav-h: 48px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 100px; }
body {
  margin: 0;
  background: var(--white);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.47;
  letter-spacing: -.022em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; letter-spacing: inherit; }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { margin: 0; }
:focus-visible { outline: 2px solid var(--gold-ink); outline-offset: 3px; border-radius: 4px; }

.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--white); padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 8px; }

.wrap { width: 100%; max-width: calc(var(--max) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: calc(760px + 2 * var(--gutter)); }
.center { text-align: center; }
.center .subhead, .center .headline { margin-left: auto; margin-right: auto; }

/* ---------- sezioni ---------- */
.section { position: relative; padding: 88px 0; }
.white { background: var(--white); color: var(--text); }
.light { background: var(--light); color: var(--text); }
.dark { background: var(--dark); color: #f5f5f7; }
.black { background: var(--black); color: #f5f5f7; }

.eyebrow { font-size: 17px; font-weight: 600; letter-spacing: -.01em; margin-bottom: 10px; color: var(--gold-ink); }
.dark .eyebrow, .black .eyebrow { color: var(--gold); }
.headline {
  font-size: clamp(32px, 6vw, 56px);
  line-height: 1.07;
  font-weight: 600;
  letter-spacing: -.028em;
  max-width: 900px;
  margin-bottom: 18px;
}
.headline.xl { font-size: clamp(44px, 9vw, 96px); line-height: 1.02; letter-spacing: -.035em; }
.headline .muted { color: var(--text-2); }
.dark .headline .muted, .black .headline .muted { color: #86868b; }
.subhead { font-size: clamp(19px, 2.2vw, 24px); line-height: 1.33; letter-spacing: -.015em; color: var(--text-2); max-width: 720px; font-weight: 400; }
.dark .subhead, .black .subhead { color: var(--text-dark-2); }
.accent { color: var(--gold-ink); }
.dark .accent, .black .accent, .tile-dark .accent { color: var(--gold); }
.empty { color: var(--text-2); font-size: 19px; }
.prose p { font-size: 19px; line-height: 1.58; color: #424245; }
.prose { margin-top: 28px; }

/* ---------- pulsanti ---------- */
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; margin-top: 34px; }
.center .cta-row, .cta-row.center { justify-content: center; }
.pill {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 24px; border-radius: 980px;
  background: var(--text); color: var(--white);
  font-size: 17px; font-weight: 500; letter-spacing: -.01em;
  transition: background .3s var(--ease), transform .3s var(--ease);
}
.pill:hover { background: #333; }
.pill:active { transform: scale(.98); }
.pill-light { background: #f5f5f7; color: var(--text); }
.pill-light:hover { background: var(--white); }
.pill-sm { min-height: 30px; padding: 0 14px; font-size: 13px; }
.more { display: inline-flex; align-items: center; gap: 4px; font-size: 17px; color: var(--gold-ink); font-weight: 400; }
.dark .more, .black .more, .tile-dark .more { color: var(--gold); }
.more i { font-style: normal; font-size: 1.25em; line-height: 1; transition: transform .3s var(--ease); }
.more:hover { text-decoration: underline; text-underline-offset: 3px; }
.more:hover i { transform: translateX(3px); }

/* ---------- navigazione globale ---------- */
.gnav {
  position: sticky; top: 0; z-index: 50; height: var(--nav-h);
  background: rgba(22, 22, 23, .82);
  backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px);
  color: #e8e8ed;
}
.gnav-inner { max-width: calc(var(--max) + 2 * var(--gutter)); margin: 0 auto; height: 100%; padding: 0 var(--gutter); display: flex; align-items: center; gap: 16px; }
.brand { font-size: 14px; font-weight: 400; letter-spacing: -.01em; margin-right: auto; white-space: nowrap; position: relative; z-index: 2; color: #d2d2d7; }
.brand b { font-weight: 600; color: #f5f5f7; }
.gnav-cta { display: none; font-size: 12px; color: var(--gold); white-space: nowrap; }
.gnav-cta:hover { text-decoration: underline; }
.gnav-ig { display: grid; place-items: center; width: 36px; height: 36px; opacity: .85; position: relative; z-index: 2; }
.gnav-ig:hover { opacity: 1; }
.burger { width: 40px; height: 40px; position: relative; z-index: 2; margin-right: -8px; }
.burger span { position: absolute; left: 12px; right: 12px; height: 1.5px; border-radius: 2px; background: currentColor; transition: transform .4s var(--ease), top .4s var(--ease); }
.burger span:first-child { top: 16px; }
.burger span:last-child { top: 23px; }
.menu-open .burger span:first-child { top: 19.5px; transform: rotate(45deg); }
.menu-open .burger span:last-child { top: 19.5px; transform: rotate(-45deg); }

.nav {
  position: fixed; inset: 0; z-index: 1; background: #161617;
  padding: calc(var(--nav-h) + 24px) 40px 40px;
  opacity: 0; visibility: hidden; transition: opacity .35s var(--ease), visibility .35s;
  overflow-y: auto;
}
.menu-open { overflow: hidden; }
.menu-open .nav { opacity: 1; visibility: visible; }
.nav ul { list-style: none; margin: 0; padding: 0; }
.nav li a {
  display: block; padding: 6px 0; font-size: 28px; font-weight: 600; letter-spacing: -.02em; color: #e8e8ed;
  transform: translateY(-8px); opacity: 0; transition: transform .5s var(--ease), opacity .5s var(--ease);
}
.menu-open .nav li a { transform: none; opacity: 1; }
.nav li a[aria-current] { color: var(--gold); }
.nav .nav-cta a { color: var(--gold); margin-top: 18px; font-size: 20px; }

/* sottomenu delle pagine edizione */
.subnav {
  position: sticky; top: var(--nav-h); z-index: 40; height: 52px;
  background: rgba(255,255,255,.8); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(0,0,0,.12);
}
.subnav-inner { height: 100%; display: flex; align-items: center; gap: 20px; }
.subnav-title { margin: 0 auto 0 0; font-size: 19px; font-weight: 600; white-space: nowrap; }
.subnav-title span { color: var(--text-2); font-weight: 400; }
.subnav ul { display: none; list-style: none; margin: 0; padding: 0; gap: 22px; font-size: 12px; color: #333336; }
.subnav ul a:hover { color: var(--gold-ink); }

.preview-bar {
  position: fixed; left: 50%; bottom: 14px; transform: translateX(-50%); z-index: 60;
  background: rgba(29,29,31,.92); color: var(--gold); border: 1px dashed rgba(212,177,115,.6); border-radius: 980px;
  font-size: 12px; padding: 7px 16px; width: max-content; max-width: calc(100% - 24px); text-align: center;
  pointer-events: none; backdrop-filter: blur(10px);
}
.todo { border: 1px dashed rgba(143,106,44,.55); color: var(--gold-ink); border-radius: 14px; padding: 12px 16px; margin: 28px auto; max-width: 720px; font-size: 14px; text-align: left; }
.dark .todo, .black .todo { color: var(--gold); border-color: rgba(212,177,115,.5); }
.todo-inline { color: var(--gold); border-bottom: 1px dashed currentColor; }
.badge { position: absolute; top: 16px; right: 16px; font-size: 11px; color: var(--gold-ink); border: 1px dashed currentColor; border-radius: 980px; padding: 2px 9px; }

/* ---------- reveal (fade morbido, come apple.com) ---------- */
.rv { opacity: 0; transform: translateY(24px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.rv.in { opacity: 1; transform: none; }

/* ---------- hero home ---------- */
.hero { position: relative; overflow: hidden; text-align: center; background: var(--black); color: #f5f5f7; }
.hero-video { min-height: calc(100svh - var(--nav-h)); display: flex; align-items: flex-end; }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.35) 0%, rgba(0,0,0,.05) 30%, rgba(0,0,0,.35) 60%, rgba(0,0,0,.85) 100%); }
.hero-content { position: relative; padding-top: 120px; padding-bottom: 64px; }
.hero-next { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: #f5f5f7; margin-bottom: 28px; padding: 8px 16px; border-radius: 980px; background: rgba(29,29,31,.6); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
.hero-next span { color: var(--gold); font-weight: 600; }
.hero-next i { font-style: normal; color: var(--gold); }
.hero-eyebrow { font-size: 21px; margin-bottom: 4px; }
.hero-title { font-size: clamp(48px, 11vw, 112px); line-height: 1; font-weight: 600; letter-spacing: -.045em; margin-bottom: 16px; text-shadow: 0 2px 30px rgba(0,0,0,.35); }
.hero-claim { font-size: clamp(21px, 3vw, 32px); line-height: 1.2; letter-spacing: -.02em; color: #e8e8ed; max-width: 760px; margin: 0 auto; text-shadow: 0 1px 20px rgba(0,0,0,.4); }
.hero .more { color: #fff; }
.pill-play { gap: 8px; }
.pill-play svg { width: 18px; height: 18px; }
.hero-micro { color: #c7c7cc; font-size: 15px; margin: 28px auto 0; }
.hero-toggle { position: absolute; right: var(--gutter); bottom: 22px; width: 36px; height: 36px; border-radius: 50%; background: rgba(29,29,31,.55); backdrop-filter: blur(10px); display: grid; place-items: center; }
.hero-toggle span { width: 10px; height: 12px; border-left: 3px solid #fff; border-right: 3px solid #fff; }
.hero-toggle.is-paused span { width: 0; height: 0; border: 0; border-left: 11px solid #fff; border-top: 7px solid transparent; border-bottom: 7px solid transparent; margin-left: 3px; }
.player { position: fixed; inset: 0; z-index: 90; background: rgba(0,0,0,.96); display: grid; place-items: center; padding: 60px 12px; }
.player[hidden] { display: none; }
.player video { width: 100%; max-width: 1280px; max-height: 100%; border-radius: 18px; background: #000; }

/* ---------- citazioni che si illuminano ---------- */
.quote { padding: 110px 0; }
.big-quote { font-size: clamp(36px, 7.4vw, 80px); line-height: 1.05; font-weight: 600; letter-spacing: -.035em; margin: 0 auto 28px; max-width: 960px; }
.big-quote.small { font-size: clamp(28px, 4.6vw, 48px); line-height: 1.12; margin-top: 40px; }
.big-quote .w { color: #d2d2d7; transition: color .5s linear; }
.big-quote .w.on { color: var(--text); }
.dark .big-quote .w, .black .big-quote .w { color: #3a3a3c; }
.dark .big-quote .w.on, .black .big-quote .w.on { color: #f5f5f7; }

/* ---------- card ---------- */
.tiles { display: grid; gap: 16px; margin-top: 48px; }
.tile-card { background: var(--white); border-radius: var(--radius); padding: 40px 30px; color: var(--text); }
.white .tile-card { background: var(--light); }
.tile-card p { color: #424245; font-size: 17px; }
.tile-dark { background: var(--black) !important; color: #f5f5f7; }
.tile-dark p { color: var(--text-dark-2); }
.tile-kicker { font-size: 14px !important; font-weight: 600; color: var(--text-2) !important; margin-bottom: 18px; }
.tile-dark .tile-kicker { color: #86868b !important; }
.tile-big { font-size: clamp(26px, 3.4vw, 36px) !important; line-height: 1.12; font-weight: 600; letter-spacing: -.028em; color: var(--text) !important; margin-bottom: 24px; }
.tile-words { font-size: clamp(38px, 5vw, 56px) !important; line-height: 1.02; font-weight: 600; letter-spacing: -.035em; color: #f5f5f7 !important; margin-bottom: 26px; }
.tiles + .center { margin-top: 36px; }

/* ---------- perché ---------- */
.reasons { list-style: none; margin: 56px 0 40px; padding: 0; display: grid; gap: 12px; }
.reasons li { background: var(--dark-2); border-radius: 22px; padding: 26px 26px 30px; font-size: clamp(24px, 3vw, 32px); font-weight: 600; letter-spacing: -.025em; line-height: 1.12; }
.reasons li span { display: block; font-size: 14px; font-weight: 600; color: var(--gold); margin-bottom: 30px; letter-spacing: 0; }
.reasons li:last-child { background: linear-gradient(135deg, #2a2418, #1d1d1f 70%); }

/* ---------- video ---------- */
.video { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; overflow: hidden; background: #000; border-radius: var(--radius); text-align: left; margin-top: 44px; }
.video.is-vertical { aspect-ratio: 9 / 16; margin-top: 0; }
.video > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .8; transition: transform 1.2s var(--ease), opacity .6s; }
.video:hover > img { transform: scale(1.03); opacity: .95; }
.video video, .video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 72px; height: 72px; border-radius: 50%; background: rgba(255,255,255,.88); color: var(--text); display: grid; place-items: center; backdrop-filter: blur(10px); transition: transform .4s var(--ease); }
.play svg { width: 26px; height: 26px; margin-left: 3px; }
.video:hover .play, .shot-video:hover .play { transform: translate(-50%, -50%) scale(1.07); }
.video-title { position: absolute; left: 24px; right: 24px; bottom: 22px; color: #fff; font-size: 21px; font-weight: 600; letter-spacing: -.02em; text-shadow: 0 1px 12px rgba(0,0,0,.5); }
.video-title small { display: block; font-size: 14px; font-weight: 400; color: rgba(255,255,255,.75); margin-top: 2px; }
.video.is-empty .play { opacity: .5; }
.video-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; margin-top: 44px; }

/* ---------- timeline ---------- */
.tl { list-style: none; margin: 56px 0 0; padding: 0; display: grid; gap: 40px; position: relative; }
.tl-line { display: none; }
.tl-col { border-top: 1px solid var(--line); padding-top: 28px; }
.tl-year { font-size: clamp(64px, 10vw, 96px); line-height: 1; font-weight: 600; letter-spacing: -.05em; margin-bottom: 18px; background: linear-gradient(180deg, var(--text) 30%, #a1a1a6); -webkit-background-clip: text; background-clip: text; color: transparent; }
.tl-col h3 { font-size: 28px; font-weight: 600; letter-spacing: -.025em; margin-bottom: 10px; }
.tl-meta { color: var(--text-2); font-size: 15px; line-height: 1.5; }
.tl-col > p:not(.tl-year):not(.eyebrow):not(.tl-meta) { color: #424245; }
.tl-future .tl-year { background: none; color: #d2d2d7; -webkit-text-fill-color: #d2d2d7; }

/* ---------- prossima edizione ---------- */
.next { padding: 110px 0; }
.next-date { font-size: clamp(52px, 12vw, 128px); line-height: 1; font-weight: 600; letter-spacing: -.045em; margin: 6px 0 16px; background: linear-gradient(180deg, #fff 20%, var(--gold) 140%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.countdown { display: flex; justify-content: center; gap: 36px; margin: 40px 0 44px; }
.countdown b { display: block; font-size: 48px; line-height: 1; font-weight: 600; letter-spacing: -.03em; font-variant-numeric: tabular-nums; color: #f5f5f7; }
.countdown span { font-size: 13px; color: #86868b; }
.next[data-past] .countdown { display: none; }
.specs { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 20px; margin: 40px auto 0; max-width: 900px; text-align: center; }
.specs dt { font-size: 13px; color: #86868b; margin-bottom: 6px; }
.specs dd { margin: 0; font-size: 19px; font-weight: 600; letter-spacing: -.02em; line-height: 1.25; }
.specs small { display: block; font-size: 13px; font-weight: 400; color: #86868b; margin-top: 3px; letter-spacing: 0; }

/* ---------- gallery ---------- */
.masonry { columns: 2; column-gap: 12px; margin-top: 48px; }
.masonry + .center { margin-top: 36px; }
.shot { position: relative; display: block; break-inside: avoid; margin-bottom: 12px; overflow: hidden; border-radius: 18px; background: #e8e8ed; }
.shot img { width: 100%; transition: transform 1s var(--ease); }
.shot:hover img { transform: scale(1.035); }
.shot-cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 30px 14px 12px; font-size: 13px; color: #fff; background: linear-gradient(transparent, rgba(0,0,0,.65)); opacity: 0; transition: opacity .4s; }
.shot:hover .shot-cap, .shot:focus-visible .shot-cap { opacity: 1; }
.shot-video .play { width: 52px; height: 52px; }
.shot-video .play svg { width: 18px; height: 18px; }
.shot-ph { display: grid; place-items: center; text-align: center; padding: 20px; color: var(--gold-ink); font-size: 13px; background: repeating-linear-gradient(135deg, #ececf0 0 12px, #f2f2f5 12px 24px); outline: 1px dashed rgba(143,106,44,.4); outline-offset: -10px; }
.light .shot-ph { background: repeating-linear-gradient(135deg, #e6e6ea 0 12px, #ededf0 12px 24px); }
.ph-tall { aspect-ratio: 4 / 5; }
.ph-sq { aspect-ratio: 1; }
.ph-wide { aspect-ratio: 4 / 3; }
.shot.is-hidden { display: none; }
.gallery-page { padding-top: 0; }
.chips { display: flex; gap: 8px; overflow-x: auto; margin: 0 calc(-1 * var(--gutter)); padding: 0 var(--gutter) 4px; scrollbar-width: none; justify-content: flex-start; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; min-height: 40px; padding: 0 18px; border-radius: 980px; background: var(--light); font-size: 14px; white-space: nowrap; transition: background .3s, color .3s; }
.chip:hover { background: #e8e8ed; }
.chip.is-on { background: var(--text); color: #fff; }

.lightbox { position: fixed; inset: 0; z-index: 80; background: rgba(0,0,0,.94); display: grid; place-items: center; color: #fff; backdrop-filter: blur(20px); }
.lightbox[hidden] { display: none; }
.lightbox figure { margin: 0; display: flex; flex-direction: column; align-items: center; }
.lightbox img { max-width: 92vw; max-height: 80vh; object-fit: contain; border-radius: 12px; }
.lightbox figcaption { margin-top: 14px; font-size: 14px; color: #a1a1a6; text-align: center; }
.lb-close, .lb-prev, .lb-next { position: absolute; width: 44px; height: 44px; border-radius: 50%; background: rgba(255,255,255,.12); font-size: 26px; line-height: 1; display: grid; place-items: center; }
.lb-close { top: 16px; right: 16px; }
.lb-prev { left: 12px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 12px; top: 50%; transform: translateY(-50%); }

/* ---------- ricordi ---------- */
.wall { display: grid; gap: 16px; margin-top: 48px; }
.memory { position: relative; margin: 0; background: var(--light); border-radius: var(--radius); padding: 40px 30px 34px; }
.light .memory { background: var(--white); }
.memory blockquote { margin: 0; font-size: clamp(22px, 2.4vw, 28px); line-height: 1.2; font-weight: 600; letter-spacing: -.025em; }
.memory cite { display: block; margin-top: 18px; font-style: normal; font-size: 15px; color: var(--text-2); }
.memory img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 16px; margin-bottom: 22px; }

/* ---------- sponsor ---------- */
.sp-ed { margin-top: 48px; }
.sp-title { text-align: center; font-size: 14px; color: var(--text-2); font-weight: 600; margin-bottom: 16px; }
.logos { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.logos li { background: var(--dark-2); border-radius: 18px; min-height: 150px; display: grid; place-items: center; padding: 26px 22px; transition: transform .5s var(--ease); }
.logos li:hover { transform: translateY(-3px); }
.logos img { max-height: 64px; max-width: 100%; width: auto; object-fit: contain; }
.logos span { font-size: 17px; font-weight: 600; letter-spacing: -.01em; color: #f5f5f7; text-align: center; line-height: 1.25; }
.logos-ph li { background: var(--white); outline: 1px dashed rgba(143,106,44,.4); outline-offset: -10px; }
.logos-ph span { color: var(--gold-ink); font-size: 13px; }

/* ---------- momenti di Simone (carosello) ---------- */
.moments {
  display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  padding: 48px max(var(--gutter), calc((100vw - var(--max)) / 2)) 8px;
  scroll-padding-left: max(var(--gutter), calc((100vw - var(--max)) / 2));
}
.moments::-webkit-scrollbar { display: none; }
.moment { position: relative; flex: none; width: min(76vw, 340px); aspect-ratio: 3 / 4; border-radius: var(--radius); overflow: hidden; scroll-snap-align: start; background: #e8e8ed; }
.moment img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.moment:hover img { transform: scale(1.03); }
.moment span { position: absolute; left: 0; right: 0; bottom: 0; padding: 60px 24px 22px; color: #fff; font-size: 21px; font-weight: 600; letter-spacing: -.02em; background: linear-gradient(transparent, rgba(0,0,0,.55)); }
.moments-nav { display: flex; justify-content: flex-end; gap: 12px; margin-top: 24px; }
.moments-btn { width: 40px; height: 40px; border-radius: 50%; background: #e3e3e8; font-size: 24px; line-height: 1; display: grid; place-items: center; transition: background .3s; }
.moments-btn:hover { background: #d2d2d7; }

/* ---------- instagram ---------- */
.insta-icon { display: inline-grid; place-items: center; width: 84px; height: 84px; border-radius: 24px; background: linear-gradient(135deg, #1d1d1f, #3a3a3c); color: #fff; margin-bottom: 26px; }

/* ---------- pagine interne ---------- */
.page-hero { padding: 96px 0 84px; }
.page-hero .subhead { margin-top: 6px; }
.ed-hero { overflow: hidden; }
.ed-hero .wrap { position: relative; }
.ed-hero .specs { margin-top: 48px; }

.ed-grid { display: grid; gap: 16px; }
.ed-card { position: relative; display: block; overflow: hidden; background: var(--white); border-radius: var(--radius); padding: 40px 30px 36px; transition: transform .5s var(--ease), box-shadow .5s var(--ease); }
.ed-card:hover { transform: translateY(-4px); box-shadow: 0 20px 50px rgba(0,0,0,.08); }
.ed-card-num { position: absolute; right: 18px; top: -10px; margin: 0; font-size: 160px; line-height: 1; font-weight: 700; letter-spacing: -.06em; color: #f0f0f2; pointer-events: none; }
.ed-card > *:not(.ed-card-num) { position: relative; }
.ed-card h3 { font-size: clamp(30px, 4vw, 40px); font-weight: 600; letter-spacing: -.03em; line-height: 1.08; margin-bottom: 8px; }
.ed-card-date { font-size: 21px; margin-bottom: 4px; }
.ed-card-meta { color: var(--text-2); font-size: 15px; margin-bottom: 18px; }
.ed-card-win { font-size: 15px; font-weight: 600; color: var(--gold-ink); margin-bottom: 18px; }

.address { margin-top: 32px; color: var(--text-2); font-size: 15px; }
.teams { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.teams li { background: var(--light); border-radius: 18px; display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 24px 10px; text-align: center; font-size: 15px; font-weight: 600; }
.teams img { width: 56px; height: 56px; object-fit: contain; }
.team-crest { width: 56px; height: 56px; border-radius: 50%; background: var(--text); color: #fff; display: grid; place-items: center; font-size: 22px; font-weight: 600; }
.formula { list-style: none; margin: 0; padding: 0; counter-reset: f; }
.formula li { counter-increment: f; display: flex; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 17px; color: var(--text); }
.formula li:last-child { border: 0; }
.formula li::before { content: counter(f); font-size: 14px; font-weight: 600; color: var(--gold-ink); min-width: 14px; padding-top: 2px; }
.tile-dark .formula li { color: #f5f5f7; border-color: var(--line-dark); }
.tile-dark .formula li::before { color: var(--gold); }
.tags { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tags li { background: var(--light); border-radius: 980px; padding: 8px 16px; font-size: 15px; }

.winner { text-align: center; margin: 44px auto 56px; padding: 44px 24px; border-radius: var(--radius); background: linear-gradient(160deg, #2a2418, #161617 60%); }
.winner-name { font-size: clamp(48px, 10vw, 104px); line-height: 1; font-weight: 600; letter-spacing: -.045em; margin: 0; background: linear-gradient(180deg, #fff 30%, var(--gold)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.phase { margin-top: 44px; }
.phase-title { font-size: 14px; font-weight: 600; color: #86868b; margin-bottom: 14px; }
.bracket { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.match { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; background: var(--dark-2); border-radius: 18px; padding: 20px 18px; }
.match .team { font-size: 15px; color: #86868b; }
.match .team:last-child { text-align: right; }
.match .team.is-win { color: #f5f5f7; font-weight: 600; }
.match .score { font-size: 21px; font-weight: 600; text-align: center; line-height: 1; }
.match .score small { display: block; font-size: 12px; font-weight: 400; color: #86868b; margin-top: 6px; }
.standings { list-style: none; margin: 0; padding: 0; background: var(--dark-2); border-radius: 18px; }
.standings li { display: flex; align-items: center; gap: 18px; padding: 16px 20px; border-bottom: 1px solid var(--line-dark); font-size: 19px; font-weight: 600; }
.standings li:last-child { border: 0; }
.standings li span { font-size: 14px; color: var(--gold); width: 16px; }
.groups { display: grid; gap: 14px; margin-top: 44px; }
.group { background: var(--dark-2); border-radius: 18px; padding: 22px; }
.group h4 { font-size: 21px; font-weight: 600; margin-bottom: 12px; }
.group table { width: 100%; border-collapse: collapse; font-size: 15px; }
.group th, .group td { padding: 9px 4px; text-align: left; border-bottom: 1px solid var(--line-dark); font-weight: 400; }
.group thead th { font-size: 12px; color: #86868b; }
.matches { list-style: none; padding: 0; margin: 14px 0 0; font-size: 14px; color: #a1a1a6; }
.matches li { display: grid; grid-template-columns: 1fr auto 1fr; gap: 10px; padding: 5px 0; }
.matches li span:last-child { text-align: right; }

.ed-nav { padding: 40px 0 70px; }
.ed-nav-inner { display: grid; gap: 12px; }
.ed-nav a { display: block; padding: 22px 26px; border-radius: 18px; background: var(--light); font-size: 21px; font-weight: 600; letter-spacing: -.02em; transition: background .3s; }
.ed-nav a:hover { background: #e8e8ed; }
.ed-nav small { display: block; font-size: 14px; font-weight: 400; color: var(--gold-ink); margin-bottom: 2px; }
.ed-nav-next { text-align: right; }

/* ---------- form ---------- */
.form-wrap { max-width: calc(680px + 2 * var(--gutter)); }
.form { display: grid; gap: 18px; margin-top: 40px; }
.form.tile-card { margin-top: 0; }
.field { display: grid; gap: 6px; }
.field > span { font-size: 14px; color: var(--text-2); }
.field small { color: #86868b; }
.field input, .field textarea, .field select {
  width: 100%; font: inherit; font-size: 17px; color: var(--text); letter-spacing: -.01em;
  background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px;
  transition: border-color .2s, box-shadow .2s;
}
.field select { appearance: none; background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%236e6e73' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat right 16px center; }
.field input[type=file] { padding: 12px; font-size: 15px; }
.field input:focus, .field textarea:focus, .field select:focus { outline: 0; border-color: var(--gold-ink); box-shadow: 0 0 0 4px rgba(143,106,44,.15); }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; color: var(--text-2); }
.check input { width: 20px; height: 20px; accent-color: var(--text); flex: none; margin-top: 1px; }
.check a { text-decoration: underline; }
.form .pill { justify-self: start; margin-top: 6px; }
.channels { display: grid; gap: 12px; margin-bottom: 24px; }
.channel { display: flex; align-items: center; gap: 16px; padding: 22px 26px; border-radius: 18px; background: var(--white); font-size: 19px; font-weight: 600; transition: box-shadow .3s; }
.channel:hover { box-shadow: 0 10px 30px rgba(0,0,0,.07); }
.channel small { display: block; font-size: 13px; font-weight: 400; color: var(--text-2); }

.ig-card { display: flex; flex-direction: column; align-items: center; gap: 18px; text-align: center; background: var(--white); border-radius: var(--radius); padding: 56px 24px; margin-bottom: 16px; transition: box-shadow .4s var(--ease); }
.ig-card:hover { box-shadow: 0 20px 50px rgba(0,0,0,.08); }
.ig-card .insta-icon { margin: 0; }
.ig-card-handle { font-size: clamp(19px, 5.4vw, 34px); font-weight: 600; letter-spacing: -.025em; overflow-wrap: anywhere; max-width: 100%; }

/* ---------- footer (stile apple.com) ---------- */
.footer { background: var(--light); color: var(--text-2); font-size: 12px; line-height: 1.5; padding: 56px 0 28px; letter-spacing: -.01em; }
.footer-sign { font-size: clamp(32px, 6vw, 56px); font-weight: 600; letter-spacing: -.035em; line-height: 1.05; color: var(--text); margin-bottom: 8px; }
.footer-quote { font-size: 17px; margin-bottom: 36px; }
.footer-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 26px 20px; padding: 26px 0; border-top: 1px solid var(--line); }
.footer-cols h3 { font-size: 12px; font-weight: 600; color: var(--text); margin-bottom: 8px; }
.footer-cols ul { list-style: none; margin: 0; padding: 0; }
.footer-cols li { margin-bottom: 7px; }
.footer-cols a { color: #424245; }
.footer-cols a:hover { text-decoration: underline; }
.footer-bottom { border-top: 1px solid var(--line); padding-top: 16px; display: grid; gap: 6px; }
.footer-bottom p { margin: 0; }
.footer-bottom a { color: #424245; }

/* ================= tablet ================= */
@media (min-width: 734px) {
  :root { --gutter: 40px; }
  .section { padding: 120px 0; }
  .tiles-2 { grid-template-columns: 1fr 1fr; }
  .tile-card { padding: 56px 48px; }
  .reasons { grid-template-columns: 1fr 1fr; }
  .masonry { columns: 3; }
  .wall { grid-template-columns: 1fr 1fr; }
  .logos { grid-template-columns: repeat(4, 1fr); }
  .specs { grid-template-columns: repeat(4, 1fr); }
  .ed-grid { grid-template-columns: 1fr 1fr; }
  .ed-card { padding: 56px 48px 48px; min-height: 420px; display: flex; flex-direction: column; justify-content: flex-end; }
  .ed-card-num { font-size: 240px; }
  .groups { grid-template-columns: 1fr 1fr; }
  .ed-nav-inner { grid-template-columns: 1fr 1fr; }
  .channels { grid-template-columns: 1fr 1fr; }
  .gnav-cta { display: inline; }
  .subnav ul { display: flex; }
  .footer-cols { grid-template-columns: repeat(3, 1fr); }
  .footer-bottom { grid-template-columns: 1fr auto; }
  .chips { justify-content: center; margin-top: 0; }
}

/* ================= desktop ================= */
@media (min-width: 1068px) {
  .section { padding: 150px 0; }
  .quote { padding: 160px 0; }
  .reasons { grid-template-columns: repeat(4, 1fr); }
  .reasons li { min-height: 230px; display: flex; flex-direction: column; justify-content: space-between; }
  .tl { grid-template-columns: repeat(3, 1fr); gap: 32px; }
  .tl-line { display: block; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: var(--line); }
  .tl-line span { position: absolute; left: 0; top: 0; height: 1px; width: calc(var(--tl, 0) * 100%); background: var(--gold-ink); }
  .tl-col { border-top: 0; }
  .wall { grid-template-columns: repeat(3, 1fr); }
  .masonry { columns: 4; }
  .bracket { grid-template-columns: repeat(auto-fit, minmax(360px, 1fr)); }
  .match { padding: 24px 28px; }
  .hero-content { padding-bottom: 88px; }
}

@media (min-width: 1100px) {
  .burger { display: none; }
  .nav { position: static; inset: auto; background: none; padding: 0; opacity: 1; visibility: visible; overflow: visible; }
  .nav ul { display: flex; gap: 26px; }
  .nav li a { font-size: 12px; font-weight: 400; letter-spacing: -.01em; transform: none; opacity: .88; padding: 0; transition: opacity .2s; }
  .nav li a:hover, .nav li a[aria-current] { opacity: 1; color: #fff; }
  .nav .nav-cta { display: none; }
  .brand { margin-right: 0; }
  .gnav-inner { justify-content: space-between; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .rv { opacity: 1; transform: none; }
  .big-quote .w { color: inherit; }
  html { scroll-behavior: auto; }
}
