/* =====================================================================
   MINEC Italia — foglio di stile (v2)
   Base bianca e pulita, ritmo di sezioni alternate: video, bianco,
   pannelli fotografici, nebbia, inchiostro, oro. Bebas Neue per i titoli,
   DM Sans per il testo, oro MINEC come unico accento.
   ===================================================================== */

@font-face {
  font-family: 'Bebas Neue';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/bebas-neue-latin-400-normal.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Bebas Neue';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/bebas-neue-latin-ext-400-normal.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 100 1000;
  font-display: swap;
  src: url(../fonts/dm-sans-latin-wght-normal.woff2) format('woff2-variations'), url(../fonts/dm-sans-latin-wght-normal.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 100 1000;
  font-display: swap;
  src: url(../fonts/dm-sans-latin-ext-wght-normal.woff2) format('woff2-variations'), url(../fonts/dm-sans-latin-ext-wght-normal.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'DM Sans';
  font-style: italic;
  font-weight: 100 1000;
  font-display: swap;
  src: url(../fonts/dm-sans-latin-wght-italic.woff2) format('woff2-variations'), url(../fonts/dm-sans-latin-wght-italic.woff2) format('woff2');
}

:root {
  /* colore (token del kit MINEC) */
  --paper: #ffffff;
  --black: #000000;
  --ink: #0b0b0c;
  --ink-2: #141416;
  --ink-3: #1c1c1f;
  --text: #2e2c28;
  --muted: #6f6a61;
  --line: #e6e2d9;
  --field-line: #8e887c;
  --fog: #f3f1ec;
  --mist: #b8b5ae;
  --gold: #b09656;
  --gold-2: #d9c38f;
  --gold-strong: #97803f;
  --gold-deep: #806a33;
  --gold-soft: #efe8d6;
  --off: #958f82;
  --danger: #b3261e;
  --h: var(--black);
  color-scheme: light;

  /* tipografia */
  --font-display: 'Bebas Neue', 'Oswald', 'Arial Narrow', 'Helvetica Neue Condensed', Impact, sans-serif;
  --font-text: 'DM Sans', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --fs-xs: 0.8125rem;
  --fs-sm: 0.9375rem;
  --fs-base: 1.0625rem;
  --fs-md: 1.25rem;
  --fs-lg: clamp(1.2rem, 1.05rem + 0.6vw, 1.5rem);
  --fs-xl: clamp(1.6rem, 1.1rem + 2vw, 2.6rem);
  --fd-sm: clamp(2rem, 1.5rem + 2vw, 3.25rem);
  --fd-md: clamp(2.8rem, 1.6rem + 4.6vw, 6rem);
  --fd-lg: clamp(3.4rem, 1.6rem + 7vw, 8.5rem);

  /* spazio */
  --wrap: 1320px;
  --gutter: clamp(20px, 4vw, 56px);
  --section: clamp(84px, 10vw, 150px);
  --header-h: 84px;
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---------- base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 24px);
  background: var(--paper);
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--font-text);
  font-size: var(--fs-base);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

img,
video { display: block; max-width: 100%; height: auto; }
img { color: transparent; }
a { color: inherit; text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-color: var(--gold); }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; }
h1, h2, h3, h4 { margin: 0; color: var(--h); text-wrap: balance; }
button { font: inherit; color: inherit; }
::selection { background: var(--gold-soft); color: var(--black); }
[hidden] { display: none !important; }

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 4px;
}

.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  background: var(--black);
  color: var(--paper);
  padding: 10px 16px;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  transition: top 0.2s;
}
.skip-link:focus { top: 12px; }

.icon { width: 1em; height: 1em; flex: none; display: inline-block; vertical-align: middle; }
.nw { white-space: nowrap; }

/* ---------- layout ---------- */
.wrap {
  width: min(100% - 2 * var(--gutter), var(--wrap));
  margin-inline: auto;
}
.wrap--wide { width: min(100% - 2 * clamp(12px, 2vw, 32px), 1600px); }
.wrap--narrow { width: min(100% - 2 * var(--gutter), 920px); }

.section { padding-block: var(--section); }
.section--tight { padding-block: calc(var(--section) * 0.62); }
.section--top0 { padding-top: 0; }
.section--line { border-top: 1px solid var(--line); }

/* colour contexts */
.section--fog { background: var(--fog); }
.section--ink,
.site-footer {
  --h: #ffffff;
  --text: var(--fog);
  --muted: var(--mist);
  --line: rgba(243, 241, 236, 0.14);
  background: var(--ink);
  color: var(--text);
}
.section--ink .label { color: var(--gold-2); }
.section--ink .label::before { background: var(--gold); }
.section--gold {
  --h: var(--black);
  --text: #1b1710;
  --muted: rgba(20, 16, 8, 0.78);
  --line: rgba(0, 0, 0, 0.16);
  background: var(--gold);
  color: var(--text);
}

.sec-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px 40px;
  margin-bottom: clamp(36px, 5vw, 64px);
}
.sec-head > div { max-width: 46rem; min-width: 0; }
.sec-head .lead { margin-top: 18px; }

.split {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(32px, 6vw, 112px);
  align-items: start;
}
.split--media { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); align-items: center; }
.split--rev { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); }
.split-media { border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 4 / 5; background: var(--fog); }
.split-media img { width: 100%; height: 100%; object-fit: cover; }
.stack { display: grid; gap: 22px; align-content: start; min-width: 0; }
.stack > .label { margin-bottom: -4px; }
.block-gap { margin-top: 28px; }
.block-gap-lg { margin-top: clamp(48px, 6vw, 80px); }
.anchor { display: block; height: 0; }

/* ---------- tipografia ---------- */
.d-title,
.d-page,
.d-sub {
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  color: var(--h);
  letter-spacing: 0.005em;
}
.d-title { font-size: var(--fd-md); line-height: 0.9; }
.d-page { font-size: var(--fd-lg); line-height: 0.86; }
.d-sub { font-size: var(--fd-sm); line-height: 0.92; }

.label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--gold-deep);
  margin-bottom: 20px;
}
.label::before {
  content: '';
  width: 22px;
  height: 1.5px;
  background: var(--gold);
}
.label--light { color: var(--gold-2); }

.lead {
  font-size: var(--fs-lg);
  line-height: 1.5;
  color: var(--text);
  max-width: 40rem;
}
.muted { color: var(--muted); }
.small { font-size: var(--fs-sm); }
.prose p + p { margin-top: 1em; }
.prose { max-width: 42rem; }
.h3 { font-size: 1.3125rem; font-weight: 600; line-height: 1.25; color: var(--h); }

/* ---------- pulsanti e link ---------- */
.btn {
  --btn-bg: transparent;
  --btn-fg: var(--black);
  --btn-bd: var(--black);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 0 26px;
  border-radius: 999px;
  border: 1px solid var(--btn-bd);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-size: var(--fs-sm);
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease), transform 0.25s var(--ease);
}
.btn:hover { --btn-bg: var(--black); --btn-fg: var(--paper); }
.btn:active { transform: translateY(1px); }
.btn--gold { --btn-bg: var(--gold); --btn-fg: var(--black); --btn-bd: var(--gold); }
.btn--gold:hover { --btn-bg: var(--black); --btn-fg: var(--paper); --btn-bd: var(--black); }
.btn--ink { --btn-bg: var(--black); --btn-fg: var(--paper); }
.btn--ink:hover { --btn-bg: var(--gold); --btn-fg: var(--black); --btn-bd: var(--gold); }
.btn--light { --btn-fg: #fff; --btn-bd: rgba(255, 255, 255, 0.72); }
.btn--light:hover { --btn-bg: #fff; --btn-fg: var(--black); --btn-bd: #fff; }
.section--ink .btn:not(.btn--gold):not(.btn--light) { --btn-fg: #fff; --btn-bd: rgba(255, 255, 255, 0.6); }
.section--ink .btn:not(.btn--gold):not(.btn--light):hover { --btn-bg: #fff; --btn-fg: var(--black); }
.section--ink .btn--gold:hover { --btn-bg: #fff; --btn-fg: var(--black); --btn-bd: #fff; }
.btn--sm { min-height: 42px; padding: 0 20px; }
.btn--block { width: 100%; }
.btn .icon { width: 18px; height: 18px; }
.btn[disabled] { opacity: 0.55; cursor: progress; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

.link-go {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--h);
  text-decoration: none;
}
.link-go .go {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  transition: background-color 0.3s var(--ease), border-color 0.3s var(--ease), color 0.3s;
}
.link-go .go .icon { width: 16px; height: 16px; transition: transform 0.3s var(--ease); }
.link-go:hover .go { background: var(--gold); border-color: var(--gold); color: var(--black); }
.link-go:hover .go .icon { transform: translateX(2px); }
.link-go--light { color: #fff; }

.round-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--h);
  display: inline-grid;
  place-items: center;
  cursor: pointer;
  transition: border-color 0.2s, background-color 0.2s;
}
.round-btn:hover { border-color: var(--gold); background: var(--gold); color: var(--black); }
.round-btn .icon { width: 18px; height: 18px; }

/* ---------- etichette ---------- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-size: var(--fs-xs);
  font-weight: 500;
  color: var(--text);
  white-space: nowrap;
}
.tag--demo { border-style: dashed; color: var(--muted); }
.chip-label {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 14px;
  border-radius: 999px;
  background: var(--fog);
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--text);
  justify-self: start;
}
.chip-label--gold { background: var(--gold-soft); color: var(--gold-deep); }
.status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
}
.status::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 1.5px solid var(--off);
}
.status--aperte::before,
.status--candidature::before,
.status--in-corso::before { background: var(--gold); border-color: var(--gold); }
.status--in-corso::before { animation: pulse 2.4s var(--ease) infinite; }
.status--presto::before,
.status--programmato::before { border-color: var(--gold-strong); }
.status--esterno::before,
.status--chiuse::before { border-radius: 2px; border-color: var(--text); }

/* ---------- barra avvisi ---------- */
.topbar {
  position: relative;
  background: var(--gold);
  color: var(--black);
  font-size: 0.875rem;
  line-height: 1.35;
  z-index: 60;
}
.topbar-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 4px 14px;
  min-height: 42px;
  padding: 8px 56px;
  text-align: center;
}
.topbar b { font-weight: 600; }
.topbar a { font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.topbar-close {
  position: absolute;
  right: 8px;
  top: 50%;
  translate: 0 -50%;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  display: grid;
  place-items: center;
  cursor: pointer;
}
.topbar-close:hover { background: rgba(0, 0, 0, 0.08); }
.topbar-close .icon { width: 16px; height: 16px; }

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--line);
  transition: transform 0.45s var(--ease), background-color 0.35s var(--ease), border-color 0.35s;
}
.site-header.is-hidden { transform: translateY(-100%); }
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: var(--header-h);
}
.brand { position: relative; display: block; flex: none; }
.brand img { height: 56px; width: auto; transition: opacity 0.35s; }
.brand .brand-white { position: absolute; inset: 0; opacity: 0; }
.nav { display: flex; align-items: center; gap: clamp(18px, 2.3vw, 36px); }
.nav-link {
  position: relative;
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--black);
  text-decoration: none;
  padding-block: 10px;
  transition: color 0.3s;
}
.nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 4px;
  height: 1.5px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease);
}
.nav-link:hover::after,
.nav-link[aria-current='page']::after { transform: scaleX(1); }
.nav .btn { margin-left: 6px; }
.menu-toggle,
.menu-close {
  display: none;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--black);
  font-size: var(--fs-sm);
  font-weight: 600;
  cursor: pointer;
  transition: color 0.3s, border-color 0.3s;
}
.menu-close { display: inline-flex; }
.menu-toggle .icon,
.menu-close .icon { width: 18px; height: 18px; }

/* transparent header over dark heroes */
.has-hero .site-header:not(.is-scrolled) {
  background: transparent;
  border-bottom-color: transparent;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}
.has-hero .site-header:not(.is-scrolled) .brand-ink { opacity: 0; }
.has-hero .site-header:not(.is-scrolled) .brand-white { opacity: 1; }
.has-hero .site-header:not(.is-scrolled) .nav-link,
.has-hero .site-header:not(.is-scrolled) .menu-toggle { color: #fff; }
.has-hero .site-header:not(.is-scrolled) .menu-toggle { border-color: rgba(255, 255, 255, 0.5); }

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: var(--paper);
  display: flex;
  flex-direction: column;
  padding: calc(env(safe-area-inset-top, 0px) + 16px) var(--gutter) calc(env(safe-area-inset-bottom, 0px) + 28px);
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0s linear 0.3s;
}
.mobile-menu.is-open { opacity: 1; visibility: visible; transform: none; transition: opacity 0.3s var(--ease), transform 0.3s var(--ease); }
.mobile-menu-top { display: flex; justify-content: space-between; align-items: center; min-height: 56px; }
.mobile-menu-top img { height: 46px; width: auto; }
.mobile-nav { display: grid; gap: 4px; margin-top: 36px; }
.mobile-nav a {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 11vw, 4.25rem);
  line-height: 1.02;
  color: var(--black);
  text-decoration: none;
  text-transform: uppercase;
}
.mobile-nav a[aria-current='page'] { color: var(--gold-deep); }
.mobile-menu-foot { margin-top: auto; padding-top: 32px; display: grid; gap: 6px; font-size: var(--fs-sm); color: var(--muted); }

/* ---------- HERO home: video a tutta pagina ---------- */
.hero {
  position: relative;
  isolation: isolate;
  margin-top: calc(-1 * var(--header-h));
  min-height: clamp(620px, 100svh, 960px);
  display: flex;
  align-items: flex-end;
  color: #fff;
  background: var(--ink);
  overflow: hidden;
}
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
  animation: hero-zoom 14s var(--ease-out) both;
}
@keyframes hero-zoom { from { transform: scale(1.08); } to { transform: none; } }
.hero-shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(0deg, rgba(0, 0, 0, 0.82) 0%, rgba(0, 0, 0, 0.42) 42%, rgba(0, 0, 0, 0.1) 72%, rgba(0, 0, 0, 0.45) 100%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.45) 0%, rgba(0, 0, 0, 0) 60%);
}
.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 340px);
  align-items: end;
  gap: 32px 48px;
  padding-top: calc(var(--header-h) + 64px);
  padding-bottom: clamp(48px, 8vh, 88px);
}
.hero-copy { display: grid; gap: 22px; max-width: 54rem; }
.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--gold-2);
  animation: fade-up 0.9s var(--ease-out) 0.1s both;
}
.hero-kicker::before { content: ''; width: 28px; height: 1.5px; background: var(--gold); }
.hero-title {
  color: #fff;
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  font-size: clamp(4.6rem, 2rem + 11vw, 12.5rem);
  line-height: 0.82;
  letter-spacing: 0.005em;
  margin-top: 6px;
}
.hero-title .ln { display: inline-block; overflow: hidden; padding-bottom: 0.04em; vertical-align: top; }
.hero-title .ln > span { display: inline-block; animation: rise 1.15s var(--ease-out) 0.15s both; }
.hero-title .ln + .ln > span { animation-delay: 0.27s; }
.hero-lead {
  font-size: clamp(1.15rem, 1rem + 0.6vw, 1.5rem);
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.9);
  max-width: 32rem;
  animation: fade-up 0.9s var(--ease-out) 0.45s both;
}
.hero-copy .btn-row { animation: fade-up 0.9s var(--ease-out) 0.58s both; margin-top: 4px; }
@keyframes rise { from { transform: translateY(104%); } to { transform: none; } }
@keyframes fade-up { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

.hero-event {
  position: relative;
  display: grid;
  gap: 6px;
  padding: 22px 64px 22px 22px;
  border-radius: var(--r-md);
  background: rgba(15, 14, 13, 0.52);
  border: 1px solid rgba(255, 255, 255, 0.18);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  color: #fff;
  text-decoration: none;
  animation: fade-up 0.9s var(--ease-out) 0.75s both;
  transition: background-color 0.3s, border-color 0.3s;
}
.hero-event:hover { background: rgba(15, 14, 13, 0.7); border-color: var(--gold); }
.hero-event-label { font-size: var(--fs-xs); font-weight: 600; color: var(--gold-2); }
.hero-event-title { font-family: var(--font-display); font-size: 1.9rem; line-height: 0.95; text-transform: uppercase; }
.hero-event-meta { font-size: var(--fs-sm); color: rgba(255, 255, 255, 0.82); }
.hero-event-go {
  position: absolute;
  right: 18px;
  bottom: 18px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--black);
  display: grid;
  place-items: center;
  transition: transform 0.3s var(--ease);
}
.hero-event-go .icon { width: 16px; height: 16px; }
.hero-event:hover .hero-event-go { transform: translateX(3px); }
.hero-pause {
  position: absolute;
  right: clamp(12px, 2vw, 24px);
  top: calc(var(--header-h) + 16px);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(0, 0, 0, 0.25);
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.2s, background-color 0.2s;
}
.hero-pause:hover,
.hero-pause:focus-visible { opacity: 1; background: rgba(0, 0, 0, 0.5); }
.hero-pause .icon { width: 13px; height: 13px; }

/* ---------- hero delle pagine interne (foto + testo sopra) ---------- */
.page-hero {
  position: relative;
  isolation: isolate;
  margin-top: calc(-1 * var(--header-h));
  min-height: clamp(460px, 68svh, 660px);
  display: flex;
  align-items: flex-end;
  color: #fff;
  background: var(--ink);
  overflow: hidden;
}
.page-hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
  animation: hero-zoom 10s var(--ease-out) both;
}
.page-hero-shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(0deg, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.35) 55%, rgba(0, 0, 0, 0.45) 100%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0) 65%);
}
.page-hero-inner {
  display: grid;
  gap: 20px;
  padding-top: calc(var(--header-h) + 72px);
  padding-bottom: clamp(44px, 7vh, 80px);
}
.page-hero .label { color: var(--gold-2); margin-bottom: 0; animation: fade-up 0.8s var(--ease-out) both; }
.page-hero h1 { color: #fff; max-width: 15ch; animation: fade-up 0.9s var(--ease-out) 0.1s both; }
.page-hero .lead { color: rgba(255, 255, 255, 0.9); animation: fade-up 0.9s var(--ease-out) 0.22s both; }
.page-hero .btn-row { animation: fade-up 0.9s var(--ease-out) 0.32s both; }
.page-hero--plain {
  margin-top: 0;
  min-height: 0;
  color: var(--text);
  background: var(--paper);
}
.page-hero--plain .page-hero-inner { padding-top: clamp(48px, 7vw, 104px); padding-bottom: 0; }
.page-hero--plain h1 { color: var(--black); }
.page-hero--plain .label { color: var(--gold-deep); }

/* ---------- intro + cifre ---------- */
.intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: 28px clamp(32px, 6vw, 96px);
  align-items: end;
}
.intro-text { display: grid; gap: 26px; justify-items: start; padding-bottom: 0.3em; }
.stats {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: clamp(56px, 7vw, 96px);
  border-top: 1px solid var(--line);
}
.stat {
  display: grid;
  gap: 10px;
  align-content: start;
  padding: 28px clamp(16px, 2vw, 28px) 0 0;
}
.stat + .stat { padding-left: clamp(16px, 2vw, 28px); border-left: 1px solid var(--line); }
.stat-num {
  font-family: var(--font-display);
  font-size: clamp(3.4rem, 2rem + 4.5vw, 6.5rem);
  line-height: 0.85;
  color: var(--gold-strong);
  font-variant-numeric: tabular-nums;
}
.stat-label { font-size: var(--fs-sm); color: var(--muted); line-height: 1.45; max-width: 16rem; }

/* ---------- quattro aree: pannelli espandibili ---------- */
.areas-section { padding-bottom: clamp(64px, 8vw, 120px); }
.panels {
  list-style: none;
  display: flex;
  gap: 10px;
  height: clamp(480px, 62vh, 640px);
}
.panel {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--ink);
  transition: flex-grow 0.8s var(--ease-out);
}
.panel.is-active { flex-grow: 2.6; }
.panel-link { position: absolute; inset: 0; display: block; color: #fff; text-decoration: none; }
.panel-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.06);
  transition: transform 1.2s var(--ease-out), filter 0.8s;
  filter: saturate(0.85) brightness(0.9);
}
.panel.is-active .panel-img { transform: scale(1); filter: saturate(1) brightness(1); }
.panel-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.88) 0%, rgba(0, 0, 0, 0.45) 45%, rgba(0, 0, 0, 0.18) 100%);
  transition: background-color 0.6s;
}
.panel:not(.is-active) .panel-shade { background-color: rgba(0, 0, 0, 0.28); }
.panel-body {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: grid;
  gap: 14px;
  padding: clamp(20px, 2.4vw, 34px);
}
.panel-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 1px solid rgba(217, 195, 143, 0.6);
  display: grid;
  place-items: center;
  color: var(--gold-2);
  background: rgba(0, 0, 0, 0.25);
  transition: background-color 0.5s, color 0.5s, border-color 0.5s;
}
.panel-icon .icon { width: 30px; height: 30px; }
.panel.is-active .panel-icon { background: var(--gold); border-color: var(--gold); color: var(--black); }
.panel-title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 1.4rem + 1.8vw, 3.6rem);
  line-height: 0.9;
  text-transform: uppercase;
}
.panel-more { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.7s var(--ease-out); }
.panel-more-inner { overflow: hidden; display: grid; gap: 14px; min-height: 0; }
.panel.is-active .panel-more { grid-template-rows: 1fr; }
.panel-text,
.panel-go {
  max-width: 30rem;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.45s var(--ease), transform 0.6s var(--ease-out);
}
.panel-text { font-size: var(--fs-base); line-height: 1.5; color: rgba(255, 255, 255, 0.88); }
.panel-go { display: inline-flex; align-items: center; gap: 10px; font-size: var(--fs-sm); font-weight: 600; color: var(--gold-2); padding-bottom: 2px; }
.panel-go .icon { width: 16px; height: 16px; }
.panel.is-active .panel-text,
.panel.is-active .panel-go { opacity: 1; transform: none; transition-delay: 0.25s, 0.25s; }
.panel.is-active .panel-go { transition-delay: 0.35s; }
/* icon stroke draw */
.draw path { stroke-dasharray: 1; stroke-dashoffset: 0; }
.panel.is-active .draw path { animation: draw 1.1s var(--ease-out) both; }
.panel.is-active .draw path:nth-child(2) { animation-delay: 0.12s; }
.panel.is-active .draw path:nth-child(3) { animation-delay: 0.24s; }
.panel.is-active .draw path:nth-child(4) { animation-delay: 0.36s; }
@keyframes draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }

/* ---------- due percorsi ---------- */
.paths { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(20px, 3vw, 40px); }
.path {
  display: flex;
  flex-direction: column;
  border-radius: var(--r-lg);
  background: var(--paper);
  overflow: hidden;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04), 0 22px 50px -32px rgba(40, 32, 12, 0.35);
  transition: transform 0.5s var(--ease-out), box-shadow 0.5s;
}
.path:hover { transform: translateY(-4px); box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04), 0 34px 70px -34px rgba(40, 32, 12, 0.45); }
.path-media { aspect-ratio: 16 / 10; overflow: hidden; background: var(--fog); }
.path-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out); }
.path:hover .path-media img { transform: scale(1.04); }
.path-body { display: grid; gap: 18px; padding: clamp(24px, 3vw, 40px); align-content: start; flex: 1; }
.path-title { font-family: var(--font-display); font-weight: 400; font-size: clamp(2.4rem, 1.8rem + 1.8vw, 3.4rem); line-height: 0.9; text-transform: uppercase; }
.path-body > p { color: var(--muted); max-width: 32rem; }
.path-body .btn-row { margin-top: auto; padding-top: 6px; }

.checklist { list-style: none; display: grid; gap: 10px; }
.checklist li { display: grid; grid-template-columns: 20px 1fr; gap: 12px; align-items: start; line-height: 1.45; }
.checklist .icon { width: 18px; height: 18px; color: var(--gold-strong); margin-top: 2px; }

/* ---------- eventi in evidenza (sezione inchiostro) ---------- */
.events-feature { position: relative; overflow: hidden; }
.events-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(36px, 6vw, 96px);
  align-items: center;
}
.events-copy { display: grid; gap: 24px; justify-items: start; }
.events-copy .label { margin-bottom: -4px; }
.countdown {
  display: grid;
  grid-template-columns: repeat(3, auto);
  gap: 0;
  margin-top: 6px;
  border: 1px solid rgba(243, 241, 236, 0.16);
  border-radius: var(--r-md);
}
.countdown > div { display: grid; gap: 4px; padding: 16px 26px 14px; }
.countdown > div + div { border-left: 1px solid rgba(243, 241, 236, 0.16); }
.cd-num { font-family: var(--font-display); font-size: clamp(2.6rem, 2rem + 2vw, 3.8rem); line-height: 0.9; color: var(--gold-2); font-variant-numeric: tabular-nums; }
.cd-label { font-size: var(--fs-xs); color: var(--mist); }
.events-stack { display: grid; gap: 16px; }
.event-hero {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  border-radius: var(--r-lg);
  overflow: hidden;
  color: #fff;
  text-decoration: none;
  background: #000;
}
.event-hero img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease-out); }
.event-hero:hover img { transform: scale(1.04); }
.event-hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0) 60%); }
.event-hero-date {
  position: absolute;
  top: 18px;
  left: 18px;
  z-index: 1;
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--gold);
  color: var(--black);
  font-size: var(--fs-sm);
  font-weight: 600;
}
.event-hero-date b { font-family: var(--font-display); font-weight: 400; font-size: 1.35rem; line-height: 1; }
.event-hero-body { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; display: grid; gap: 6px; padding: clamp(18px, 2.4vw, 28px); }
.event-hero-title { font-family: var(--font-display); font-size: clamp(1.9rem, 1.4rem + 1.4vw, 2.8rem); line-height: 0.92; text-transform: uppercase; }
.event-hero-meta { font-size: var(--fs-sm); color: rgba(255, 255, 255, 0.82); }
.mm-path {
  border-radius: var(--r-lg);
  background: var(--ink-3);
  border: 1px solid rgba(243, 241, 236, 0.1);
  padding: clamp(18px, 2.4vw, 28px);
}
.mm-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 16px; }
.mm-logo { font-family: var(--font-display); font-size: 1.6rem; line-height: 1; color: #fff; letter-spacing: 0.02em; }
.mm-link { display: inline-flex; align-items: center; gap: 8px; font-size: var(--fs-sm); font-weight: 600; color: var(--gold-2); text-decoration: none; }
.mm-link .icon { width: 15px; height: 15px; }
.mm-link:hover { color: #fff; }
.mm-steps { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; position: relative; }
.mm-steps::before { content: ''; position: absolute; left: 6px; right: 6px; top: 6px; height: 2px; background: rgba(243, 241, 236, 0.14); }
.mm-steps::after { content: ''; position: absolute; left: 6px; top: 6px; height: 2px; width: calc((100% - 12px) * 0.36); background: var(--gold); transform-origin: left; }
.mm-steps li { position: relative; display: grid; gap: 4px; padding-top: 26px; min-width: 0; }
.mm-dot { position: absolute; top: 0; left: 0; width: 14px; height: 14px; border-radius: 50%; background: var(--ink-3); border: 2px solid rgba(243, 241, 236, 0.3); z-index: 1; }
.mm-steps .is-done .mm-dot { background: var(--gold); border-color: var(--gold); }
.mm-steps .is-current .mm-dot { border-color: var(--gold); background: var(--ink-3); box-shadow: 0 0 0 4px rgba(176, 150, 86, 0.25); animation: pulse 2.4s var(--ease) infinite; }
.mm-when { font-size: var(--fs-xs); color: var(--mist); }
.mm-what { font-size: var(--fs-sm); font-weight: 600; color: #fff; line-height: 1.3; }
.mm-state { font-size: var(--fs-xs); font-weight: 600; color: var(--gold-2); min-height: 1.2em; }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(176, 150, 86, 0.5); }
  70% { box-shadow: 0 0 0 10px rgba(176, 150, 86, 0); }
  100% { box-shadow: 0 0 0 0 rgba(176, 150, 86, 0); }
}

/* ---------- roadmap ---------- */
.roadmap-wrap { position: relative; padding-top: 18px; }
.roadmap-track { position: absolute; left: 17px; right: 17px; top: 35px; height: 2px; background: var(--line); }
.roadmap-fill { position: absolute; inset: 0 auto 0 0; width: calc(var(--progress) * 100%); background: var(--gold); transform-origin: left; transition: transform 1.6s var(--ease-out); }
.js .roadmap-wrap:not(.is-in) .roadmap-fill { transform: scaleX(0); }
.roadmap { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; }
.step { position: relative; display: grid; gap: 10px; align-content: start; padding-top: 58px; }
.step-dot {
  position: absolute;
  top: 0;
  left: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid var(--line);
  background: var(--paper);
  display: grid;
  place-items: center;
}
.step-dot .icon { width: 16px; height: 16px; }
.is-done .step-dot { background: var(--gold); border-color: var(--gold); color: var(--black); }
.is-current .step-dot { border-color: var(--gold); }
.is-current .step-dot::after { content: ''; width: 12px; height: 12px; border-radius: 50%; background: var(--gold); animation: pulse 2.4s var(--ease) infinite; }
.step-num { font-family: var(--font-display); font-size: 1.375rem; line-height: 1; color: var(--gold-deep); }
.step-title { font-family: var(--font-display); font-weight: 400; font-size: clamp(1.9rem, 1.4rem + 1.4vw, 2.6rem); line-height: 0.92; text-transform: uppercase; }
.step-text { font-size: var(--fs-sm); color: var(--muted); line-height: 1.55; }
.step-state { font-size: var(--fs-xs); font-weight: 600; color: var(--text); }
.is-done .step-state,
.is-current .step-state { color: var(--gold-deep); }

/* ---------- persone (board) ---------- */
.people { list-style: none; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: clamp(12px, 1.6vw, 24px); }
.people--lg { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 44px) clamp(16px, 2.4vw, 32px); }
.person { display: grid; gap: 12px; align-content: start; }
.person-photo { aspect-ratio: 4 / 5; border-radius: var(--r-sm); overflow: hidden; background: #111; }
.person-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease-out); }
.person:hover .person-photo img { transform: scale(1.04); }
.person-name { font-size: 1.0625rem; font-weight: 600; line-height: 1.25; color: var(--h); }
.people--lg .person-name { font-size: 1.3125rem; }
.person-role { font-size: var(--fs-sm); color: var(--gold-deep); line-height: 1.35; margin-top: -6px; }
.section--ink .person-role { color: var(--gold-2); }
.person-bio { font-size: var(--fs-sm); color: var(--muted); line-height: 1.55; }

/* ---------- benefici (sezione oro) ---------- */
.benefits { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(32px, 4vw, 56px) clamp(24px, 4vw, 64px); }
.benefit { display: grid; grid-template-columns: 56px minmax(0, 1fr); column-gap: 18px; row-gap: 6px; align-content: start; }
.benefit .icon { grid-row: span 2; width: 48px; height: 48px; color: var(--black); }
.benefit h3 { font-size: 1.1875rem; font-weight: 600; line-height: 1.3; }
.benefit p { color: rgba(20, 16, 8, 0.86); font-size: var(--fs-sm); line-height: 1.55; }

/* ---------- invito finale ---------- */
.cta-band { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.cta-band--rev { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); }
.cta-media { border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 5 / 4; background: var(--fog); }
.cta-media img { width: 100%; height: 100%; object-fit: cover; }
.cta-body { display: grid; gap: 22px; }

/* ---------- footer (inchiostro) ---------- */
.site-footer { padding-block: clamp(64px, 8vw, 104px) 28px; font-size: var(--fs-sm); }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)) minmax(0, 1.4fr); gap: 40px clamp(20px, 3vw, 48px); }
.footer-brand { display: grid; gap: 18px; align-content: start; }
.footer-brand img { height: 78px; width: auto; }
.footer-brand p { color: var(--muted); max-width: 18rem; line-height: 1.55; }
.footer-col h2 { font-family: var(--font-text); font-size: var(--fs-sm); font-weight: 600; color: var(--gold-2); margin-bottom: 14px; text-wrap: initial; }
.footer-col ul { list-style: none; display: grid; gap: 9px; }
.footer-col a { text-decoration: none; color: var(--text); }
.footer-col a:hover { color: #fff; text-decoration: underline; text-decoration-color: var(--gold); }
.footer-col address { font-style: normal; line-height: 1.6; }
.footer-col address + p { margin-top: 12px; }
.footer-col p + p { margin-top: 12px; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px; margin-top: clamp(48px, 6vw, 80px); padding-top: 24px; border-top: 1px solid var(--line); color: var(--muted); font-size: var(--fs-xs); }
.footer-legal { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.footer-legal a { text-decoration: none; }
.footer-legal a:hover { text-decoration: underline; color: #fff; }

/* ---------- colonne di testo (formati, criteri, valori) ---------- */
.cols { list-style: none; display: grid; grid-template-columns: repeat(var(--cols, 4), minmax(0, 1fr)); gap: 32px clamp(20px, 3vw, 44px); }
.col { display: grid; gap: 10px; align-content: start; padding-top: 20px; border-top: 1px solid var(--h); }
.col h3 { font-size: 1.1875rem; font-weight: 600; line-height: 1.3; }
.col p { font-size: var(--fs-sm); color: var(--muted); line-height: 1.6; }
.cols--icons .icon { width: 44px; height: 44px; color: var(--gold-strong); margin-bottom: 6px; }
.cols--icons .col { border-top: 0; padding-top: 28px; border-radius: var(--r-md); background: var(--fog); padding: 28px 24px 26px; }

/* ---------- filtri ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  min-height: 42px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: transparent;
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--text);
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}
.chip:hover { border-color: var(--h); }
.chip[aria-pressed='true'] { background: var(--black); border-color: var(--black); color: var(--paper); }
.chip .count { color: var(--muted); font-weight: 400; margin-left: 4px; }
.chip[aria-pressed='true'] .count { color: rgba(255, 255, 255, 0.65); }
.toolbar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 36px; }

/* ---------- schede corso (griglia) ---------- */
.cards { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(36px, 4vw, 56px) clamp(16px, 2vw, 28px); }
.card { position: relative; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.card-media { aspect-ratio: 4 / 3; border-radius: var(--r-md); overflow: hidden; background: var(--fog); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease-out); }
.card:hover .card-media img { transform: scale(1.04); }
.card-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; font-size: var(--fs-sm); color: var(--muted); }
.card-title { font-size: 1.375rem; font-weight: 600; line-height: 1.22; letter-spacing: -0.01em; color: var(--h); }
.card-title a { text-decoration: none; }
.card-title a::after { content: ''; position: absolute; inset: 0; }
.card-text { font-size: var(--fs-sm); color: var(--muted); line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card-foot { margin-top: auto; padding-top: 6px; display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: var(--fs-sm); }
.card-foot .when { font-weight: 600; color: var(--h); }

/* ---------- agenda (righe) ---------- */
.agenda { list-style: none; border-bottom: 1px solid var(--line); }
.agenda-row {
  position: relative;
  display: grid;
  grid-template-columns: 8.5rem minmax(0, 1fr) minmax(0, 13rem) 44px;
  align-items: center;
  gap: 14px clamp(18px, 3vw, 40px);
  padding-block: clamp(20px, 2.4vw, 30px);
  border-top: 1px solid var(--line);
}
.date-block { display: grid; gap: 6px; }
.date-block .big { font-family: var(--font-display); font-size: clamp(2.25rem, 1.8rem + 1.4vw, 3.25rem); line-height: 0.82; color: var(--h); font-variant-numeric: tabular-nums; white-space: nowrap; }
.date-block .small { font-family: var(--font-display); font-size: 1.25rem; line-height: 1; color: var(--gold-deep); letter-spacing: 0.03em; }
.section--ink .date-block .small { color: var(--gold-2); }
.agenda-main { display: grid; gap: 8px; min-width: 0; }
.agenda-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.agenda-title { font-size: clamp(1.2rem, 1rem + 0.7vw, 1.6rem); font-weight: 600; line-height: 1.2; letter-spacing: -0.01em; color: var(--h); }
.agenda-title a { text-decoration: none; }
.agenda-title a::after { content: ''; position: absolute; inset: 0; }
.agenda-meta { display: grid; gap: 6px; font-size: var(--fs-sm); color: var(--muted); }
.agenda-meta .place { color: var(--text); font-weight: 500; }
.agenda-go { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; transition: background-color 0.3s var(--ease), border-color 0.3s var(--ease); }
.agenda-go .icon { width: 16px; height: 16px; }
.agenda-row:hover .agenda-go { background: var(--gold); border-color: var(--gold); color: var(--black); }
.agenda-month { font-family: var(--font-text); font-size: var(--fs-sm); font-weight: 600; line-height: 1.2; color: var(--gold-deep); padding-top: clamp(32px, 4vw, 48px); padding-bottom: 12px; }
.agenda-month:first-child { padding-top: 0; }
.agenda-empty { padding: 40px 0; color: var(--muted); border-top: 1px solid var(--line); }

/* ---------- archivio eventi ---------- */
.archive { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.archive-item { display: grid; gap: 8px; align-content: start; padding: 24px; border-radius: var(--r-md); background: var(--paper); border: 1px solid var(--line); }
.archive-date { font-size: var(--fs-xs); font-weight: 600; color: var(--gold-deep); }
.archive-title { font-family: var(--font-display); font-weight: 400; font-size: 1.75rem; line-height: 0.95; text-transform: uppercase; }
.archive-place { font-size: var(--fs-sm); color: var(--text); font-weight: 500; }
.archive-note { font-size: var(--fs-sm); color: var(--muted); line-height: 1.5; }

/* ---------- casi clinici e video ---------- */
.media-grid { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(28px, 3vw, 44px) clamp(14px, 1.6vw, 24px); }
.media-card { position: relative; display: grid; gap: 12px; align-content: start; }
.media-card button.stretch { position: absolute; inset: 0; z-index: 2; border: 0; background: transparent; cursor: pointer; border-radius: var(--r-sm); }
.media-thumb { position: relative; aspect-ratio: 4 / 5; border-radius: var(--r-md); overflow: hidden; background: var(--fog); }
.media-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease-out); }
.media-card:hover .media-thumb img { transform: scale(1.04); }
.play-badge { position: absolute; left: 14px; bottom: 14px; display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px 0 6px; border-radius: 999px; background: rgba(255, 255, 255, 0.94); color: var(--black); font-size: var(--fs-xs); font-weight: 600; }
.play-badge .disc { width: 26px; height: 26px; border-radius: 50%; background: var(--gold); display: grid; place-items: center; }
.play-badge .icon { width: 11px; height: 11px; }
.media-title { font-size: 1.125rem; font-weight: 600; line-height: 1.3; color: var(--h); }
.media-tags { display: flex; flex-wrap: wrap; gap: 8px; }

/* ---------- modali ---------- */
dialog.modal { border: 0; padding: 0; width: min(1120px, calc(100vw - 2 * var(--gutter))); max-width: none; max-height: calc(100vh - 48px); background: transparent; color: var(--paper); overflow: visible; }
dialog.modal::backdrop { background: rgba(8, 8, 8, 0.9); }
dialog.modal[open] { animation: modal-in 0.35s var(--ease); }
@keyframes modal-in { from { opacity: 0; transform: translateY(12px) scale(0.985); } to { opacity: 1; transform: none; } }
.modal-video { width: 100%; max-height: calc(100vh - 140px); border-radius: var(--r-md); background: #000; }
.modal-bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 14px; }
.modal-bar h2 { color: var(--paper); font-size: var(--fs-md); font-weight: 600; font-family: var(--font-text); }
.modal-close { display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 16px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, 0.4); background: transparent; color: var(--paper); font-size: var(--fs-sm); font-weight: 600; cursor: pointer; }
.modal-close:hover { background: var(--paper); color: var(--black); }
.modal-close .icon { width: 16px; height: 16px; }
dialog.modal--sheet { width: min(860px, calc(100vw - 2 * var(--gutter))); color: var(--text); }
.sheet { background: var(--paper); border-radius: var(--r-lg); overflow: hidden; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); max-height: calc(100vh - 48px); }
.sheet-media { min-height: 100%; background: var(--fog); }
.sheet-media img { width: 100%; height: 100%; object-fit: cover; }
.sheet-body { padding: clamp(24px, 4vw, 44px); display: grid; gap: 16px; align-content: start; overflow-y: auto; }
.sheet-body .modal-close { border-color: var(--line); color: var(--black); justify-self: end; }
.sheet-body .modal-close:hover { background: var(--black); color: var(--paper); }

/* ---------- passi numerati (sequenze reali) ---------- */
.steps { list-style: none; counter-reset: s; border-bottom: 1px solid var(--line); }
.steps li { counter-increment: s; display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 18px; padding-block: 22px; border-top: 1px solid var(--line); }
.steps li::before { content: counter(s, decimal-leading-zero); font-family: var(--font-display); font-size: 2.25rem; line-height: 0.9; color: var(--gold-deep); }
.steps h3 { font-size: 1.125rem; font-weight: 600; line-height: 1.3; }
.steps p { font-size: var(--fs-sm); color: var(--muted); margin-top: 4px; }

/* ---------- flusso digitale ---------- */
.flow { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; counter-reset: f; }
.flow li { counter-increment: f; position: relative; display: grid; gap: 8px; align-content: start; padding: 26px 28px 28px 0; border-top: 2px solid var(--h); }
.flow li + li { padding-left: 28px; border-left: 1px solid var(--line); }
.flow li::before { content: counter(f, decimal-leading-zero); font-family: var(--font-display); font-size: 1.375rem; color: var(--gold-deep); line-height: 1; }
.flow h3 { font-size: 1.1875rem; font-weight: 600; }
.flow p { font-size: var(--fs-sm); color: var(--muted); line-height: 1.55; }
.flow .chips-sm { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.flow + .media-wide { margin-top: clamp(40px, 5vw, 64px); }
.media-wide { border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 21 / 9; background: var(--fog); }
.media-wide img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- numero grande ---------- */
.bignum { font-family: var(--font-display); font-size: clamp(6.5rem, 3.6rem + 10vw, 14rem); line-height: 0.78; color: var(--gold-strong); letter-spacing: -0.01em; font-variant-numeric: tabular-nums; }
.section--ink .bignum { color: var(--gold); }
.bignum-row { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(24px, 4vw, 64px); align-items: end; }

/* ---------- galleria ---------- */
.gallery {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: clamp(260px, 34vw, 540px);
  gap: clamp(12px, 1.4vw, 20px);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: max(var(--gutter), (100vw - var(--wrap)) / 2);
  padding-inline: max(var(--gutter), (100vw - var(--wrap)) / 2);
  padding-bottom: 18px;
  scrollbar-width: thin;
  scrollbar-color: var(--line) transparent;
  list-style: none;
}
.gallery li { scroll-snap-align: start; }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r-md); background: var(--fog); }
.gallery-nav { display: flex; gap: 10px; }

/* ---------- scheda corso / evento ---------- */
.crumbs { display: flex; flex-wrap: wrap; gap: 6px 10px; font-size: var(--fs-sm); color: var(--muted); margin-bottom: 28px; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--black); text-decoration: underline; }
.scheda-head { padding-block: clamp(36px, 5vw, 72px) 0; }
.scheda-head .d-page { font-size: clamp(3rem, 1.6rem + 5.6vw, 7rem); max-width: 16ch; }
.scheda-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-bottom: 22px; }
.scheda-head .lead { margin-top: 24px; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); margin: clamp(36px, 5vw, 56px) 0 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.fact { padding: 18px 18px 18px 0; }
.fact dt { font-size: var(--fs-xs); color: var(--muted); }
.fact dd { margin: 4px 0 0; font-weight: 600; color: var(--black); line-height: 1.35; }
.scheda-media { margin-top: clamp(32px, 5vw, 56px); border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 21 / 9; background: var(--fog); }
.scheda-media img { width: 100%; height: 100%; object-fit: cover; }
.scheda-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, 420px); gap: clamp(36px, 6vw, 96px); align-items: start; padding-top: clamp(48px, 6vw, 88px); }
.scheda-main { display: grid; gap: clamp(40px, 5vw, 64px); min-width: 0; }
.scheda-main section { display: grid; gap: 18px; }
.scheda-main h2 { font-family: var(--font-display); font-weight: 400; font-size: var(--fd-sm); line-height: 0.95; text-transform: uppercase; }
.bullets { list-style: none; display: grid; gap: 12px; }
.bullets li { display: grid; grid-template-columns: 20px 1fr; gap: 12px; line-height: 1.5; }
.bullets .icon { width: 18px; height: 18px; color: var(--gold-strong); margin-top: 3px; }
.program { display: grid; gap: 28px; }
.program-day h3 { font-size: 1.0625rem; font-weight: 600; margin-bottom: 6px; }
.timeline { list-style: none; border-bottom: 1px solid var(--line); }
.timeline li { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 16px; padding-block: 13px; border-top: 1px solid var(--line); line-height: 1.5; }
.timeline time { font-variant-numeric: tabular-nums; color: var(--gold-deep); font-weight: 600; }
.scheda-aside { position: sticky; top: calc(var(--header-h) + 24px); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(22px, 2.6vw, 34px); display: grid; gap: 18px; background: var(--paper); }
.scheda-aside h2 { font-family: var(--font-display); font-weight: 400; font-size: 2.25rem; line-height: 0.95; text-transform: uppercase; }
.scheda-aside .muted { font-size: var(--fs-sm); }
.notfound { padding-block: var(--section); display: grid; gap: 22px; justify-items: start; }

/* ---------- moduli ---------- */
.form { display: grid; gap: 18px; }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.field { display: grid; gap: 8px; min-width: 0; }
.field > label,
.field > .field-label { font-size: 0.875rem; font-weight: 600; color: var(--black); }
.field .opt { font-weight: 400; color: var(--muted); }
.field .hint { font-size: var(--fs-xs); color: var(--muted); line-height: 1.45; }
.input,
.select,
.textarea {
  width: 100%;
  min-height: 52px;
  padding: 13px 16px;
  border: 1px solid var(--field-line);
  border-radius: 10px;
  background: var(--paper);
  color: var(--black);
  font: 400 1rem/1.4 var(--font-text);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.input::placeholder,
.textarea::placeholder { color: #8b867c; }
.input:hover,
.select:hover,
.textarea:hover { border-color: var(--black); }
.input:focus,
.select:focus,
.textarea:focus { outline: none; border-color: var(--black); box-shadow: 0 0 0 4px var(--gold-soft); }
.select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 44px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
}
.textarea { min-height: 132px; resize: vertical; }
.input[type='file'] { padding: 12px; font-size: var(--fs-sm); }
[aria-invalid='true'] { border-color: var(--danger) !important; }
.field-error { font-size: var(--fs-xs); color: var(--danger); font-weight: 500; }
.check { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 12px; align-items: start; font-size: var(--fs-sm); line-height: 1.5; color: var(--text); }
.check input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--black); }
.check a { font-weight: 600; }
.check .field-error { grid-column: 1 / -1; margin-top: -4px; }
.check-group { display: flex; flex-wrap: wrap; gap: 8px; border: 0; padding: 0; margin: 0; min-width: 0; }
.check-group legend { font-size: 0.875rem; font-weight: 600; color: var(--black); margin-bottom: 10px; padding: 0; }
.pill-check { position: relative; }
.pill-check input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.pill-check span { display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--field-line); font-size: var(--fs-sm); font-weight: 500; transition: background-color 0.2s, color 0.2s, border-color 0.2s; }
.pill-check input:checked + span { background: var(--black); color: var(--paper); border-color: var(--black); }
.pill-check input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 3px; }
.form-note { font-size: var(--fs-xs); color: var(--muted); line-height: 1.5; }
.form-error-summary { padding: 14px 16px; border-radius: 10px; background: #fbeceb; color: var(--danger); font-size: var(--fs-sm); font-weight: 500; }
.form > button[type='submit']:not(.btn--block) { justify-self: start; min-width: 220px; }
.seg { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; border-radius: 999px; background: var(--fog); }
.seg button { min-height: 44px; padding: 0 22px; border: 0; border-radius: 999px; background: transparent; font-size: var(--fs-sm); font-weight: 600; color: var(--muted); cursor: pointer; }
.seg button[aria-pressed='true'] { background: var(--paper); color: var(--black); box-shadow: 0 0 0 1px var(--line), 0 2px 6px -2px rgba(0, 0, 0, 0.12); }
.form-success { display: grid; gap: 14px; justify-items: start; padding: clamp(24px, 3vw, 36px); border-radius: var(--r-lg); background: var(--fog); }
.form-success .icon { width: 40px; height: 40px; color: var(--gold-strong); }
.form-success h3 { font-family: var(--font-display); font-weight: 400; font-size: 2.25rem; line-height: 0.95; text-transform: uppercase; }
.form-card { border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(22px, 3.4vw, 48px); background: var(--paper); }

/* ---------- contatti ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(40px, 6vw, 104px); align-items: start; }
.contact-list { display: grid; }
.contact-block { display: grid; gap: 6px; padding-block: 22px; border-top: 1px solid var(--line); }
.contact-block:last-child { border-bottom: 1px solid var(--line); }
.contact-block h2 { font-family: var(--font-text); font-size: var(--fs-sm); font-weight: 600; color: var(--gold-deep); }
.contact-block address { font-style: normal; line-height: 1.6; }
.contact-value { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; font-size: var(--fs-md); font-weight: 600; color: var(--black); }
.copy-btn { min-height: 32px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--paper); font-size: var(--fs-xs); font-weight: 600; cursor: pointer; }
.copy-btn:hover { border-color: var(--black); }

/* ---------- varie ---------- */
.legal { display: grid; }
.legal-section { padding-block: 40px; border-top: 1px solid var(--line); display: grid; gap: 16px; max-width: 52rem; }
.placeholder-box { padding: 18px 20px; border: 1px dashed var(--field-line); border-radius: var(--r-md); color: var(--muted); font-size: var(--fs-sm); }
.tag-list { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.note-box { padding: 22px 24px; border-radius: var(--r-md); background: var(--fog); display: grid; gap: 12px; }
.values { list-style: none; display: grid; }
.values li { display: grid; grid-template-columns: minmax(0, 14rem) minmax(0, 1fr); gap: 12px 32px; align-items: baseline; padding-block: 26px; border-top: 1px solid var(--line); }
.values li:last-child { border-bottom: 1px solid var(--line); }
.values p { color: var(--muted); max-width: 34rem; }
.feature { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.feature-photo { border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 4 / 5; max-width: 440px; background: #111; }
.feature-photo img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- comparsa allo scroll (solo elementi sotto la piega) ---------- */
.js [data-reveal].is-pending,
.js [data-reveal-group].is-pending > * { opacity: 0; transform: translateY(28px); }
[data-reveal],
[data-reveal-group] > * { transition: opacity 0.9s var(--ease-out), transform 1s var(--ease-out); }
[data-reveal-group] > *:nth-child(2) { transition-delay: 0.08s; }
[data-reveal-group] > *:nth-child(3) { transition-delay: 0.16s; }
[data-reveal-group] > *:nth-child(4) { transition-delay: 0.24s; }
[data-reveal-group] > *:nth-child(5) { transition-delay: 0.32s; }
[data-reveal-group] > *:nth-child(6) { transition-delay: 0.4s; }

/* ---------- responsive ---------- */
@media (max-width: 1180px) {
  .footer-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; }
  .people { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .media-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .agenda-row { grid-template-columns: 7.5rem minmax(0, 1fr) minmax(0, 11rem); }
  .agenda-go { display: none; }
  .mm-steps { grid-template-columns: minmax(0, 1fr); row-gap: 18px; }
  .mm-steps::before { left: 6px; right: auto; top: 8px; bottom: 8px; width: 2px; height: auto; }
  .mm-steps::after { left: 6px; top: 8px; width: 2px; height: calc((100% - 16px) * 0.36); }
  .mm-steps li { padding-top: 0; padding-left: 30px; grid-template-columns: minmax(0, 7rem) minmax(0, 1fr) auto; align-items: baseline; column-gap: 12px; }
  .mm-dot { top: 4px; }
}

@media (max-width: 1000px) {
  :root { --header-h: 72px; }
  .nav { display: none; }
  .menu-toggle { display: inline-flex; }
  .brand img { height: 48px; }
  .hero-inner { grid-template-columns: minmax(0, 1fr); }
  .hero-event { max-width: 420px; }
  .split,
  .split--media,
  .split--rev,
  .intro-grid,
  .cta-band,
  .cta-band--rev,
  .events-grid,
  .contact-grid,
  .scheda-grid,
  .feature { grid-template-columns: minmax(0, 1fr); }
  .scheda-aside { position: static; }
  .feature-photo { max-width: 360px; }
  .split-media { aspect-ratio: 4 / 3; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat:nth-child(3) { padding-left: 0; border-left: 0; }
  .stat:nth-child(n + 3) { border-top: 1px solid var(--line); margin-top: 28px; }
  .cards,
  .paths { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .benefits { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .roadmap { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 48px; }
  .roadmap-track { display: none; }
  .flow { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 28px; }
  .flow li:nth-child(3) { padding-left: 0; border-left: 0; }
  .sheet { grid-template-columns: 1fr; }
  .sheet-media { max-height: 300px; }
  /* pannelli in colonna */
  .panels { flex-direction: column; height: auto; gap: 12px; }
  .panel,
  .panel.is-active { flex: none; height: 300px; }
  .panel-more { grid-template-rows: 1fr; }
  .panel-text,
  .panel-go { opacity: 1; transform: none; }
  .panel-img { transform: none; filter: none; }
  .panel-icon { background: var(--gold); border-color: var(--gold); color: var(--black); }
}

@media (max-width: 760px) {
  :root { --header-h: 66px; }
  body { font-size: 1rem; }
  .hero { min-height: clamp(600px, 100svh, 780px); }
  .hero-title { font-size: clamp(4.2rem, 23vw, 7rem); }
  .hero-title .ln { display: block; }
  .hero-copy .btn-row .btn { flex: 1 1 auto; }
  .hero-event { padding: 18px 60px 18px 18px; }
  .hero-event-title { font-size: 1.6rem; }
  .paths,
  .cards,
  .benefits { grid-template-columns: minmax(0, 1fr); }
  .people { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .people--lg { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .media-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cols { grid-template-columns: minmax(0, 1fr); }
  .form-row { grid-template-columns: minmax(0, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .agenda-row { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .date-block { grid-auto-flow: column; justify-content: start; align-items: baseline; gap: 12px; }
  .roadmap { grid-template-columns: minmax(0, 1fr); padding-left: 52px; row-gap: 36px; }
  .step { padding-top: 0; }
  .step::before { content: ''; position: absolute; top: 40px; left: -35px; width: 2px; height: calc(100% + 0px); background: var(--line); }
  .step:last-child::before { display: none; }
  .step.is-done::before { background: var(--gold); }
  .step-dot { top: 0; left: -52px; }
  .flow { grid-template-columns: minmax(0, 1fr); }
  .flow li,
  .flow li + li { padding-left: 0; border-left: 0; }
  .countdown > div { padding: 14px 18px 12px; }
  .mm-steps li { grid-template-columns: minmax(0, 1fr) auto; }
  .mm-when { grid-column: 1 / -1; }
  .event-hero { aspect-ratio: 4 / 3; }
  .event-hero::after { background: linear-gradient(0deg, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.25) 75%); }
  .media-wide,
  .scheda-media { aspect-ratio: 4 / 3; border-radius: var(--r-md); }
  .bignum-row { grid-template-columns: minmax(0, 1fr); }
  .values li { grid-template-columns: minmax(0, 1fr); }
  .topbar-inner { padding: 8px 48px 8px 16px; text-align: left; justify-content: flex-start; }
  .sec-head { margin-bottom: 32px; }
  .panel,
  .panel.is-active { height: 260px; }
  .toolbar .chips { flex-wrap: nowrap; overflow-x: auto; margin-inline: calc(-1 * var(--gutter)); padding: 2px var(--gutter); scrollbar-width: none; }
  .toolbar .chips::-webkit-scrollbar { display: none; }
  .chip { flex: none; }
  .seg { display: grid; grid-template-columns: 1fr 1fr; width: 100%; border-radius: 16px; }
  .seg button { padding: 0 10px; border-radius: 12px; }
  .form > button[type='submit']:not(.btn--block) { justify-self: stretch; }
  .page-hero { min-height: clamp(440px, 72svh, 560px); }
}

@media (max-width: 420px) {
  .media-grid { grid-template-columns: minmax(0, 1fr); }
  .btn { padding: 0 20px; }
  .stat { padding-top: 22px; padding-right: 12px; }
  .stat + .stat { padding-left: 16px; }
  .stat:nth-child(3) { padding-left: 0; }
  .stat-num { font-size: 3.1rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .js [data-reveal].is-pending,
  .js [data-reveal-group].is-pending > * { opacity: 1; transform: none; }
}

@media print {
  .topbar, .site-header, .site-footer, .hero-video { display: none !important; }
}
