/* ==========================================================================
   Società Twirling Lumino — visual system
   Direzione: atletico-editoriale. Palette derivata dal logo societario
   (navy profondo, lampone, azzurro ghiaccio). Titoli Archivo expanded
   maiuscoli, dettagli tecnici in monospace.
   ========================================================================== */

:root {
  --ink: #0c1322;
  --ink-2: #121b2e;
  --ink-soft: #38445a;
  --muted: #5d6675;
  --paper: #f4f3ee;
  --surface: #fdfcf9;
  --surface-alt: #ecebe3;
  --line: #d9d7cc;
  --line-strong: #b9b7aa;
  --brand: #d8295b;
  --brand-deep: #a81c46;
  --ice: #8fd0dc;
  --ice-deep: #257785;
  --on-dark-muted: rgba(244, 243, 238, 0.66);
  --on-dark-line: rgba(244, 243, 238, 0.14);
  --shadow: 0 18px 50px rgba(12, 19, 34, 0.1);
  --shadow-deep: 0 24px 70px rgba(12, 19, 34, 0.26);
  --radius: 6px;
  --radius-sm: 3px;
  --container: 1180px;
  --header-height: 72px;
  --sidebar-width: 128px;
  --font-display:
    "Archivo", "Archivo Variable", ui-sans-serif, system-ui, "Helvetica Neue",
    sans-serif;
  --font-serif: "Playfair Display", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --font-mono:
    "Spline Sans Mono", ui-monospace, "SFMono-Regular", "Cascadia Mono",
    monospace;
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160' viewBox='0 0 160 160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='0.34'/%3E%3C/svg%3E");
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 24px);
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--font-display);
  font-size: 1rem;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body.nav-open {
  overflow: hidden;
}

::selection {
  color: #fff;
  background: var(--brand);
}

img {
  display: block;
  width: 100%;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
}

.container {
  width: min(100% - 40px, var(--container));
  margin-inline: auto;
}

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

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 12px;
  left: 12px;
  padding: 10px 16px;
  color: var(--paper);
  background: var(--ink);
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  transform: translateY(-180%);
  transition: transform 160ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

/* --------------------------------------------------------------------------
   Tipografia di sistema
   -------------------------------------------------------------------------- */

h1,
h2,
h3 {
  font-family: var(--font-serif);
  font-weight: 600;
  letter-spacing: 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 16px;
  color: var(--brand);
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  line-height: 1.2;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  flex: 0 0 auto;
  background: currentColor;
}

.mono-note {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.02em;
}

/* --------------------------------------------------------------------------
   Header / navigazione
   -------------------------------------------------------------------------- */

.site-header {
  position: sticky;
  z-index: 100;
  top: 0;
  min-height: var(--header-height);
  background: rgba(253, 252, 249, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
  transition: box-shadow 180ms ease, background-color 180ms ease;
}

.site-header.is-scrolled {
  background: rgba(253, 252, 249, 0.98);
  box-shadow: 0 12px 36px rgba(12, 19, 34, 0.08);
}

.header-inner {
  width: min(100% - 40px, var(--container));
  min-height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-inline: auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-mark {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  overflow: hidden;
  background: var(--ink);
  border-radius: 50%;
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.brand-text {
  display: grid;
  min-width: 0;
}

.brand-name {
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1.1;
  text-transform: uppercase;
}

.brand-subtitle {
  margin-top: 3px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  line-height: 1.1;
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 2px;
}

.site-nav a {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  color: var(--ink-soft);
  border-radius: var(--radius-sm);
  font-size: 0.86rem;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: color 160ms ease, background-color 160ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.site-nav a.is-active {
  color: var(--brand);
  background: rgba(216, 41, 91, 0.07);
  outline: none;
}

.nav-index {
  color: var(--brand);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  line-height: 1;
}

.nav-label {
  line-height: 1;
}

.sidebar-cta {
  display: none;
}

.menu-toggle {
  width: 44px;
  height: 44px;
  display: none;
  flex: 0 0 auto;
  place-items: center;
  padding: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

.menu-toggle-line {
  width: 20px;
  height: 2px;
  display: block;
  background: var(--ink);
  border-radius: 999px;
  transition: transform 180ms ease, opacity 180ms ease;
}

.menu-toggle-line + .menu-toggle-line {
  margin-top: 4px;
}

.menu-toggle[aria-expanded="true"] .menu-toggle-line:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .menu-toggle-line:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] .menu-toggle-line:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero {
  --hero-progress: 0;
  position: relative;
  color: var(--paper);
  background: var(--ink);
  isolation: isolate;
}

.hero-story {
  min-height: clamp(620px, 82svh, 820px);
  overflow: clip;
}

.hero-story.is-scroll-ready {
  min-height: 260svh;
}

.hero-stage {
  position: relative;
  min-height: 620px;
  height: 100svh;
  display: grid;
  align-items: center;
  overflow: hidden;
  background: var(--ink);
}

.hero-story.is-scroll-ready .hero-stage {
  position: sticky;
  top: 0;
}

.hero-scenes,
.hero-scene-slide,
.hero-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-scenes {
  z-index: 0;
  overflow: hidden;
}

.hero-scene-slide {
  opacity: 0;
  background-position: center;
  background-size: cover;
  filter: saturate(0.94) contrast(0.98);
  transform: scale(1.045);
  transition: opacity 620ms ease, transform 1100ms ease, filter 620ms ease;
  will-change: opacity, transform;
}

.hero-scene-slide.is-active {
  opacity: 1;
  filter: saturate(1.04) contrast(1.02);
  transform: scale(1.015);
}

.hero-scene-1 {
  background-image: url("images/banner_hero1.webp");
  background-position: center;
}

.hero-scene-2 {
  background-image: url("images/banner_hero2.webp");
  background-position: center right;
}

.hero-scene-3 {
  background-image: url("images/banner_hero3.webp");
  background-position: center;
}

.hero-scene-4 {
  background-image: url("images/banner_hero4.webp");
  background-position: center;
}

.hero-shade {
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(12, 19, 34, 0.9) 0%, rgba(12, 19, 34, 0.58) 48%, rgba(12, 19, 34, 0.28) 100%),
    linear-gradient(180deg, rgba(12, 19, 34, 0.08), rgba(12, 19, 34, 0.82));
}

.hero-watermark {
  position: absolute;
  z-index: 2;
  right: clamp(-130px, -5vw, 28px);
  bottom: clamp(8px, 4vh, 46px);
  width: clamp(320px, 43vw, 690px);
  max-width: none;
  opacity: 0.24;
  filter: drop-shadow(0 26px 56px rgba(0, 0, 0, 0.34));
  mix-blend-mode: screen;
  pointer-events: none;
  transform: translateX(7%) rotate(-6deg);
  user-select: none;
}

.hero::after {
  content: "";
  position: absolute;
  z-index: 3;
  inset: 0;
  background-image: var(--grain);
  background-size: 160px;
  mix-blend-mode: overlay;
  opacity: 0.42;
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 4;
  min-height: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 390px);
  gap: clamp(28px, 5vw, 70px);
  align-items: center;
  padding-block: clamp(62px, 8vh, 96px);
}

.hero-copy {
  max-width: 760px;
}

.hero-copy-stack {
  position: relative;
  width: min(760px, 100%);
  min-height: clamp(318px, 34vh, 390px);
}

.hero-panel {
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  opacity: 0;
  pointer-events: none;
  transform: translateY(22px);
  transition: opacity 520ms ease, transform 520ms ease;
}

.hero-panel.is-active {
  position: relative;
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.hero .eyebrow {
  color: var(--ice);
}

.hero-title,
.hero-panel-title {
  margin: 0;
  font-weight: 620;
  letter-spacing: 0;
  line-height: 1;
}

.hero-panel-title {
  max-width: 820px;
  font-size: clamp(2.6rem, 6.2vw, 5.3rem);
  line-height: 1.02;
}

.hero-title-small {
  display: block;
  margin-bottom: 16px;
  color: rgba(244, 243, 238, 0.78);
  font-family: var(--font-display);
  font-size: clamp(0.88rem, 1.5vw, 1.1rem);
  font-weight: 600;
  letter-spacing: 0.34em;
  line-height: 1;
  text-transform: uppercase;
}

.hero-title-main {
  display: block;
  max-width: 820px;
  font-size: clamp(3rem, 7.4vw, 6.2rem);
}

.hero-lead {
  max-width: 640px;
  margin: 26px 0 0;
  color: rgba(244, 243, 238, 0.88);
  font-size: clamp(1.04rem, 1.9vw, 1.26rem);
  font-weight: 450;
  line-height: 1.62;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.hero-progress {
  width: min(680px, 100%);
  display: grid;
  gap: 12px;
  margin-top: 24px;
}

.hero-progress-track {
  height: 2px;
  overflow: hidden;
  background: rgba(244, 243, 238, 0.24);
  border-radius: 999px;
}

.hero-progress-fill {
  display: block;
  width: calc(var(--hero-progress) * 100%);
  height: 100%;
  background: linear-gradient(90deg, var(--brand), var(--ice), rgba(244, 243, 238, 0.92));
  border-radius: inherit;
  transition: width 180ms ease;
}

.hero-progress-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.hero-progress-dot {
  height: 5px;
  background: rgba(244, 243, 238, 0.24);
  border-radius: 999px;
  transition: background-color 180ms ease, transform 180ms ease;
}

.hero-progress-dot.is-active {
  background: var(--ice);
  transform: scaleY(1.35);
}

.hero-quickline {
  max-width: 680px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.hero-quickline span {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  padding: 9px 12px;
  color: rgba(244, 243, 238, 0.76);
  background: rgba(244, 243, 238, 0.08);
  border: 1px solid rgba(244, 243, 238, 0.16);
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  line-height: 1.3;
}

.hero-quickline strong {
  margin-right: 5px;
  color: var(--paper);
  font-weight: 780;
}

/* Bottoni */

.button {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 24px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  line-height: 1.1;
  text-transform: uppercase;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    background-color 160ms ease,
    color 160ms ease,
    box-shadow 160ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
  outline: none;
}

.button:active {
  transform: translateY(0);
}

.button-primary {
  color: #fff;
  background: var(--brand);
  border-color: var(--brand);
  box-shadow: 0 14px 30px rgba(216, 41, 91, 0.32);
}

.button-primary:hover,
.button-primary:focus-visible {
  background: var(--brand-deep);
  border-color: var(--brand-deep);
}

.button-secondary {
  color: var(--paper);
  background: rgba(244, 243, 238, 0.06);
  border-color: rgba(244, 243, 238, 0.42);
}

.button-secondary:hover,
.button-secondary:focus-visible {
  color: var(--ink);
  background: var(--paper);
  border-color: var(--paper);
}

.button-outline {
  color: var(--ink);
  background: transparent;
  border-color: var(--line-strong);
}

.button-outline:hover,
.button-outline:focus-visible {
  color: var(--brand);
  border-color: var(--brand);
}

/* Pannello dati hero */

.hero-side {
  min-width: 0;
  display: grid;
  gap: 14px;
  align-content: end;
}

.hero-event {
  display: grid;
  gap: 10px;
  padding: 20px 22px;
  color: var(--paper);
  background: rgba(12, 19, 34, 0.58);
  border: 1px solid rgba(244, 243, 238, 0.2);
  border-left: 3px solid var(--ice);
  border-radius: var(--radius);
  box-shadow: var(--shadow-deep);
  backdrop-filter: blur(16px);
  transition: transform 180ms ease, border-color 180ms ease, background-color 180ms ease;
}

.hero-event:hover,
.hero-event:focus-visible {
  background: rgba(12, 19, 34, 0.72);
  border-color: rgba(143, 208, 220, 0.7);
  outline: none;
  transform: translateY(-2px);
}

.hero-event-label {
  color: var(--ice);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.12em;
  line-height: 1;
  text-transform: uppercase;
}

.hero-event strong {
  font-family: var(--font-serif);
  font-size: 1.34rem;
  font-weight: 620;
  line-height: 1.16;
}

.hero-event-date {
  color: var(--on-dark-muted);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  line-height: 1.45;
  text-transform: uppercase;
}

.hero-facts {
  display: grid;
  margin: 0;
  background: rgba(12, 19, 34, 0.62);
  border: 1px solid rgba(244, 243, 238, 0.2);
  border-radius: var(--radius);
  box-shadow: var(--shadow-deep);
  backdrop-filter: blur(14px);
}

.hero-facts div {
  padding: 20px 24px;
}

.hero-facts div + div {
  border-top: 1px solid rgba(244, 243, 238, 0.16);
}

.hero-facts dt {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 2.3rem;
  font-weight: 600;
  line-height: 1;
}

.hero-facts dd {
  margin: 8px 0 0;
  color: var(--on-dark-muted);
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* --------------------------------------------------------------------------
   Striscia avviso
   -------------------------------------------------------------------------- */

.notice-strip {
  color: var(--paper);
  background: var(--ink);
  border-top: 3px solid var(--brand);
}

.notice-strip-inner {
  min-height: 72px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  padding-block: 14px;
}

.notice-strip p {
  margin: 0;
}

.notice-kicker {
  color: var(--ice);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.notice-strip a {
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--ice);
  padding-bottom: 2px;
  transition: color 160ms ease, border-color 160ms ease;
}

.notice-strip a:hover,
.notice-strip a:focus-visible {
  color: var(--ice);
  outline: none;
}

/* --------------------------------------------------------------------------
   Sezioni
   -------------------------------------------------------------------------- */

.section {
  padding-block: clamp(78px, 9vw, 128px);
}

.section h2 {
  max-width: 880px;
  margin: 0;
  font-size: clamp(1.9rem, 4.2vw, 3.4rem);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.08;
}

.section p {
  color: var(--muted);
}

.section-heading {
  max-width: 780px;
  margin-bottom: 42px;
}

.section-heading p:not(.eyebrow) {
  margin: 18px 0 0;
  font-size: 1.04rem;
}

.section-heading-row {
  max-width: none;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
}

.split-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
  gap: 60px;
  align-items: center;
}

.section-copy p:not(.eyebrow) {
  max-width: 680px;
  margin: 22px 0 0;
  font-size: 1.04rem;
}

.intro-panel {
  display: grid;
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 3px solid var(--brand);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.metric {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  padding: 24px 26px;
}

.metric + .metric {
  border-top: 1px solid var(--line);
}

.metric-value {
  color: var(--brand);
  font-family: var(--font-mono);
  font-size: 1.3rem;
  font-weight: 700;
}

.metric-label {
  color: var(--ink-soft);
  font-weight: 650;
  line-height: 1.35;
}

/* --------------------------------------------------------------------------
   Programmi
   -------------------------------------------------------------------------- */

.section-programs,
.section-gallery,
.section-news {
  background: var(--surface-alt);
}

.program-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.program-card,
.team-card,
.news-card {
  position: relative;
  min-width: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.program-card:hover,
.team-card:hover,
.news-card:hover {
  transform: translateY(-4px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow);
}

.program-card {
  min-height: 340px;
  display: grid;
  align-content: space-between;
  padding: 30px 28px 26px;
  overflow: hidden;
}

.program-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--brand), var(--ice));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 320ms ease;
}

.program-card:hover::before {
  transform: scaleX(1);
}

.card-index {
  display: block;
  color: var(--brand);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.1em;
}

.program-card h3,
.event-card h3,
.team-card h3,
.news-card h3 {
  margin: 18px 0 0;
  color: var(--ink);
  font-size: 1.34rem;
  font-weight: 600;
  line-height: 1.2;
}

.program-card p,
.event-card p,
.team-card p,
.news-card p {
  margin: 12px 0 0;
}

.program-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 26px;
}

.tag {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  padding: 5px 10px;
  color: var(--ink-soft);
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  line-height: 1;
  text-transform: uppercase;
}

/* --------------------------------------------------------------------------
   Metodo (sezione scura)
   -------------------------------------------------------------------------- */

.section-training {
  position: relative;
  color: var(--paper);
  background: var(--ink);
  overflow: hidden;
  isolation: isolate;
}

.training-background-video {
  position: absolute;
  z-index: 0;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.78;
  filter: saturate(1.16) contrast(1.08) brightness(1.05);
  pointer-events: none;
}

.section-training::before,
.section-training::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.section-training::before {
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(12, 19, 34, 0.72), rgba(12, 19, 34, 0.52) 46%, rgba(12, 19, 34, 0.34)),
    linear-gradient(180deg, rgba(12, 19, 34, 0.34), rgba(12, 19, 34, 0.74));
}

.section-training::after {
  z-index: 2;
  background-image: var(--grain);
  background-size: 160px;
  mix-blend-mode: overlay;
  opacity: 0.26;
}

.section-training .container {
  position: relative;
  z-index: 3;
}

.section-training p {
  color: var(--on-dark-muted);
}

.section-training .eyebrow {
  color: var(--ice);
}

.training-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1fr);
  gap: clamp(36px, 6vw, 76px);
  align-items: center;
}

.training-image {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow-deep);
}

.training-image::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(244, 243, 238, 0.14);
  border-radius: inherit;
  pointer-events: none;
}

.training-image img {
  aspect-ratio: 4 / 5;
  height: 100%;
  object-fit: cover;
}

.training-content {
  text-shadow: 0 2px 22px rgba(0, 0, 0, 0.38);
}

.training-content h2 {
  color: var(--paper);
}

.training-list {
  display: grid;
  gap: 0;
  margin-top: 36px;
}

.method-row {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 16px;
  padding: 20px 0;
  border-top: 1px solid var(--on-dark-line);
}

.method-row:last-child {
  border-bottom: 1px solid var(--on-dark-line);
}

.method-row strong {
  display: block;
  color: var(--paper);
  font-family: var(--font-serif);
  font-size: 1.16rem;
  font-weight: 600;
  line-height: 1.25;
}

.method-row p {
  margin: 6px 0 0;
}

.method-number {
  color: var(--ice);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 600;
  padding-top: 4px;
}

/* --------------------------------------------------------------------------
   Eventi
   -------------------------------------------------------------------------- */

.event-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.filter-button {
  min-height: 40px;
  padding: 8px 14px;
  color: var(--ink-soft);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color 160ms ease, background-color 160ms ease, border-color 160ms ease;
}

.filter-button.is-active,
.filter-button:hover,
.filter-button:focus-visible {
  color: var(--paper);
  background: var(--ink);
  border-color: var(--ink);
  outline: none;
}

.event-list {
  display: grid;
  gap: 14px;
}

.event-card {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform 200ms ease, box-shadow 200ms ease, border-color 200ms ease;
}

.event-card:hover {
  transform: translateX(4px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow);
}

.event-date {
  min-height: 96px;
  display: grid;
  place-items: center;
  align-content: center;
  color: var(--paper);
  background: var(--ink);
  border-radius: var(--radius-sm);
}

.event-date span {
  display: block;
  text-align: center;
}

.event-day {
  font-family: var(--font-serif);
  font-size: 2.1rem;
  font-weight: 600;
  line-height: 1;
}

.event-month {
  margin-top: 7px;
  color: var(--ice);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.event-card h3 {
  margin-top: 0;
}

.event-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 12px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.02em;
}

.event-category {
  min-width: 110px;
  text-align: right;
  color: var(--brand);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* --------------------------------------------------------------------------
   Iscrizioni
   -------------------------------------------------------------------------- */

.membership-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 400px);
  gap: clamp(36px, 5vw, 64px);
  align-items: start;
}

.membership-steps {
  display: grid;
  gap: 0;
  counter-reset: step;
}

.membership-step {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 20px;
  padding: 26px 0;
  border-top: 1px solid var(--line);
}

.membership-step:last-child {
  border-bottom: 1px solid var(--line);
}

.step-number {
  color: var(--brand);
  font-family: var(--font-mono);
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1;
  padding-top: 2px;
}

.membership-step h3 {
  margin: 0;
  font-size: 1.28rem;
  font-weight: 600;
}

.membership-step p {
  margin: 8px 0 0;
}

.fee-card {
  position: relative;
  color: var(--paper);
  background: var(--ink);
  border-radius: var(--radius);
  box-shadow: var(--shadow-deep);
  overflow: hidden;
}

.fee-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--brand), var(--ice));
}

.fee-card-inner {
  padding: 30px 28px;
}

.fee-card-title {
  margin: 0 0 6px;
  color: var(--ice);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.fee-card h3 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 600;
}

.fee-list {
  display: grid;
  gap: 0;
  margin: 22px 0 0;
}

.fee-row {
  display: grid;
  gap: 4px;
  padding: 16px 0;
  border-top: 1px solid var(--on-dark-line);
}

.fee-row-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}

.fee-label {
  font-size: 0.94rem;
  font-weight: 650;
}

.fee-value {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 600;
  white-space: nowrap;
}

.fee-note {
  color: var(--on-dark-muted);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.02em;
}

.fee-card .button {
  width: 100%;
  margin-top: 24px;
}

.fee-disclaimer {
  margin: 16px 0 0;
  color: var(--on-dark-muted);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.02em;
  line-height: 1.5;
}

/* --------------------------------------------------------------------------
   Gallery
   -------------------------------------------------------------------------- */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-auto-flow: dense;
  gap: 14px;
}

.gallery-item {
  position: relative;
  min-height: 260px;
  display: block;
  grid-column: span 4;
  padding: 0;
  overflow: hidden;
  color: var(--paper);
  background: var(--ink-2);
  border: 0;
  border-radius: var(--radius);
  text-align: left;
}

.gallery-item.is-wide {
  grid-column: span 8;
}

.gallery-item.is-tall {
  grid-row: span 2;
  min-height: 540px;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
  transition: transform 480ms cubic-bezier(0.22, 1, 0.36, 1), filter 480ms ease;
}

.gallery-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 42%, rgba(12, 19, 34, 0.82));
}

.gallery-item:hover img,
.gallery-item:focus-visible img {
  filter: saturate(1.05);
  transform: scale(1.045);
}

.gallery-item:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 3px;
}

.gallery-caption {
  position: absolute;
  z-index: 1;
  right: 18px;
  bottom: 16px;
  left: 18px;
}

.gallery-caption strong {
  display: block;
  font-size: 1rem;
  font-weight: 750;
  line-height: 1.2;
}

.gallery-caption span {
  display: block;
  margin-top: 4px;
  color: rgba(244, 243, 238, 0.74);
  font-family: var(--font-mono);
  font-size: 0.74rem;
}

/* --------------------------------------------------------------------------
   Staff
   -------------------------------------------------------------------------- */

.team-grid,
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.team-card {
  overflow: hidden;
}

.team-card img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
  filter: saturate(0.92);
  transition: filter 260ms ease;
}

.team-card:hover img {
  filter: saturate(1);
}

.team-card-body,
.news-card {
  padding: 24px;
}

.team-role,
.news-date {
  display: block;
  color: var(--brand);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.team-card h3,
.news-card h3 {
  margin-top: 10px;
}

.text-link {
  color: var(--brand);
  font-family: var(--font-mono);
  font-size: 0.84rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
}

.text-link:hover,
.text-link:focus-visible {
  color: var(--brand-deep);
}

/* --------------------------------------------------------------------------
   FAQ
   -------------------------------------------------------------------------- */

.faq-list {
  max-width: 880px;
  display: grid;
  gap: 0;
}

.faq-item {
  border-top: 1px solid var(--line);
}

.faq-item:last-child {
  border-bottom: 1px solid var(--line);
}

.faq-item summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 32px;
  gap: 18px;
  align-items: center;
  padding: 22px 0;
  color: var(--ink);
  font-size: 1.04rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  cursor: pointer;
  list-style: none;
  transition: color 160ms ease;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary:hover {
  color: var(--brand);
}

.faq-icon {
  position: relative;
  width: 30px;
  height: 30px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  transition: transform 240ms ease, border-color 240ms ease;
}

.faq-icon::before,
.faq-icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  background: currentColor;
  transform: translate(-50%, -50%);
}

.faq-icon::before {
  width: 12px;
  height: 1.5px;
}

.faq-icon::after {
  width: 1.5px;
  height: 12px;
  transition: opacity 180ms ease;
}

.faq-item[open] .faq-icon {
  border-color: var(--brand);
  color: var(--brand);
  transform: rotate(180deg);
}

.faq-item[open] .faq-icon::after {
  opacity: 0;
}

.faq-answer {
  max-width: 760px;
  padding: 0 0 24px;
}

.faq-answer p {
  margin: 0;
}

/* --------------------------------------------------------------------------
   Partner
   -------------------------------------------------------------------------- */

.partner-strip {
  padding-block: 44px;
  background: var(--paper);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.partner-strip-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px 40px;
}

.partner-kicker {
  margin: 0;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.partner-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 36px;
}

.partner-name {
  color: var(--ink-soft);
  font-size: 0.98rem;
  font-weight: 750;
  letter-spacing: 0.06em;
  opacity: 0.62;
  text-transform: uppercase;
  transition: opacity 180ms ease;
}

.partner-name:hover {
  opacity: 1;
}

.partner-cta {
  color: var(--brand);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
}

.partner-cta:hover,
.partner-cta:focus-visible {
  color: var(--brand-deep);
}

/* --------------------------------------------------------------------------
   Contatti
   -------------------------------------------------------------------------- */

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(360px, 1fr);
  gap: clamp(36px, 6vw, 76px);
  align-items: start;
}

.contact-copy p:not(.eyebrow) {
  max-width: 600px;
  margin: 18px 0 0;
  font-size: 1.04rem;
}

.contact-details {
  display: grid;
  gap: 12px;
  margin-top: 34px;
}

.contact-item {
  padding: 18px 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 3px solid var(--brand);
  border-radius: var(--radius-sm);
}

.contact-item span {
  display: block;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.contact-item a,
.contact-item strong {
  display: inline-block;
  margin-top: 6px;
  color: var(--ink);
  font-size: 1.02rem;
  font-weight: 700;
}

.contact-item a:hover,
.contact-item a:focus-visible {
  color: var(--brand);
  outline: none;
}

.contact-form {
  display: grid;
  gap: 18px;
  padding: 32px 30px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 3px solid var(--brand);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.contact-form label {
  display: grid;
  gap: 8px;
  color: var(--ink-soft);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-family: var(--font-display);
  font-size: 0.98rem;
  outline: none;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.contact-form input {
  min-height: 48px;
  padding: 10px 14px;
}

.contact-form textarea {
  min-height: 140px;
  resize: vertical;
  padding: 12px 14px;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(216, 41, 91, 0.12);
}

.contact-form .button {
  width: fit-content;
}

.form-status {
  min-height: 24px;
  margin: 0;
  color: var(--ice-deep);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 500;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.site-footer {
  position: relative;
  color: var(--on-dark-muted);
  background: var(--ink);
  border-top: 3px solid var(--brand);
  overflow: hidden;
}

.site-footer::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--grain);
  background-size: 160px;
  mix-blend-mode: overlay;
  opacity: 0.35;
  pointer-events: none;
}

.site-footer .container {
  position: relative;
  z-index: 1;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr));
  gap: 40px;
  padding-block: 58px 44px;
}

.site-footer .brand-name {
  color: var(--paper);
}

.site-footer .brand-subtitle {
  color: var(--on-dark-muted);
}

.footer-about p {
  max-width: 320px;
  margin: 18px 0 0;
  font-size: 0.92rem;
  line-height: 1.6;
}

.footer-col h3 {
  margin: 4px 0 16px;
  color: var(--ice);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.footer-col ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-col li {
  font-size: 0.92rem;
  line-height: 1.5;
}

.footer-col a {
  color: rgba(244, 243, 238, 0.85);
  transition: color 160ms ease;
}

.footer-col a:hover,
.footer-col a:focus-visible {
  color: var(--ice);
  outline: none;
}

.footer-col li strong {
  color: rgba(244, 243, 238, 0.9);
  font-weight: 650;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 28px;
  padding-block: 20px;
  border-top: 1px solid var(--on-dark-line);
}

.footer-bottom p {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
}

.footer-bottom a {
  color: rgba(244, 243, 238, 0.85);
  border-bottom: 1px solid var(--on-dark-line);
}

.footer-bottom a:hover,
.footer-bottom a:focus-visible {
  color: var(--ice);
  outline: none;
}

/* --------------------------------------------------------------------------
   Lightbox
   -------------------------------------------------------------------------- */

body.lightbox-open {
  overflow: hidden;
}

.lightbox {
  position: fixed;
  z-index: 300;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 24px 84px;
  background: rgba(12, 19, 34, 0.92);
}

.lightbox.is-open {
  display: flex;
}

.lightbox-figure {
  position: relative;
  z-index: 1;
  width: min(100%, 1080px);
  display: grid;
  justify-items: center;
  margin: 0;
}

.lightbox img {
  width: auto;
  max-width: 100%;
  max-height: 78svh;
  object-fit: contain;
  background: var(--ink-2);
  border-radius: var(--radius-sm);
}

.lightbox figcaption {
  width: 100%;
  margin-top: 14px;
  color: rgba(244, 243, 238, 0.84);
  font-family: var(--font-mono);
  font-size: 0.84rem;
  text-align: center;
}

.lightbox-close,
.lightbox-nav {
  color: var(--paper);
  background: rgba(244, 243, 238, 0.08);
  border: 1px solid rgba(244, 243, 238, 0.24);
  border-radius: var(--radius-sm);
  line-height: 1;
  transition: background-color 160ms ease, opacity 160ms ease, transform 160ms ease;
}

.lightbox-close {
  position: fixed;
  top: 18px;
  right: 18px;
  width: 44px;
  height: 44px;
  font-size: 1.9rem;
}

.lightbox-nav {
  position: fixed;
  z-index: 2;
  top: 50%;
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  font-size: 2.6rem;
  transform: translateY(-50%);
}

.lightbox-prev {
  left: 24px;
}

.lightbox-next {
  right: 24px;
}

.lightbox-close:hover,
.lightbox-close:focus-visible,
.lightbox-nav:hover,
.lightbox-nav:focus-visible {
  background: rgba(216, 41, 91, 0.5);
  outline: none;
}

.lightbox-nav:hover,
.lightbox-nav:focus-visible {
  transform: translateY(-50%) scale(1.04);
}

.lightbox-nav:disabled {
  opacity: 0.36;
  pointer-events: none;
}

/* --------------------------------------------------------------------------
   Pagine legali
   -------------------------------------------------------------------------- */

.legal-page {
  background: var(--paper);
}

.legal-hero {
  padding-block: clamp(86px, 11vw, 150px) 46px;
  background:
    linear-gradient(135deg, rgba(216, 41, 91, 0.06), rgba(37, 119, 133, 0.06)),
    var(--surface-alt);
  border-bottom: 1px solid var(--line);
}

.legal-hero h1 {
  max-width: 860px;
  margin: 0;
  color: var(--ink);
  font-size: clamp(2.2rem, 5vw, 4rem);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.05;
}

.legal-hero p:not(.eyebrow) {
  max-width: 720px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 1.06rem;
}

.legal-section {
  padding-block: clamp(54px, 7vw, 92px);
}

.legal-card {
  max-width: 920px;
  padding: clamp(26px, 5vw, 56px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 3px solid var(--brand);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.legal-card h2 {
  margin: 36px 0 10px;
  color: var(--ink);
  font-size: clamp(1.3rem, 2vw, 1.6rem);
  font-weight: 600;
  line-height: 1.2;
}

.legal-card h2:first-child {
  margin-top: 0;
}

.legal-card p,
.legal-card li {
  color: var(--muted);
}

.legal-card a {
  color: var(--brand);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-card a:hover,
.legal-card a:focus-visible {
  color: var(--brand-deep);
  outline: none;
}

.legal-card p {
  margin: 10px 0 0;
}

.legal-card ul {
  display: grid;
  gap: 8px;
  padding-left: 20px;
  margin: 12px 0 0;
}

.legal-note {
  padding: 16px 18px;
  margin-top: 30px;
  color: var(--ink-soft);
  background: var(--surface-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  line-height: 1.55;
}

/* --------------------------------------------------------------------------
   Animazioni di entrata
   -------------------------------------------------------------------------- */

.reveal-item {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 620ms ease, transform 620ms ease;
  transition-delay: var(--reveal-delay, 0ms);
}

.reveal-item.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.hero-copy.reveal-item,
.training-image.reveal-item,
.legal-hero.reveal-item {
  transform: translateY(28px);
}

.hero-side.reveal-item,
.contact-form.reveal-item,
.intro-panel.reveal-item,
.fee-card.reveal-item {
  transform: translateY(18px) scale(0.985);
}

.hero-side.reveal-item.is-visible,
.contact-form.reveal-item.is-visible,
.intro-panel.reveal-item.is-visible,
.fee-card.reveal-item.is-visible {
  transform: translateY(0) scale(1);
}

/* --------------------------------------------------------------------------
   Sidebar desktop
   -------------------------------------------------------------------------- */

@media (min-width: 821px) {
  html {
    scroll-padding-top: 32px;
  }

  body {
    padding-left: var(--sidebar-width);
  }

  .site-header {
    position: fixed;
    inset: 0 auto 0 0;
    width: var(--sidebar-width);
    min-height: 100svh;
    color: var(--paper);
    background: linear-gradient(180deg, var(--ink) 0%, var(--ink-2) 100%);
    border-right: 1px solid rgba(244, 243, 238, 0.1);
    border-bottom: 0;
    box-shadow: 14px 0 44px rgba(12, 19, 34, 0.18);
    backdrop-filter: none;
  }

  .site-header::after {
    content: "";
    position: absolute;
    top: 0;
    right: -1px;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, var(--brand), var(--ice));
    opacity: 0.85;
  }

  .site-header.is-scrolled {
    background: linear-gradient(180deg, var(--ink) 0%, var(--ink-2) 100%);
    box-shadow: 18px 0 54px rgba(12, 19, 34, 0.26);
  }

  .header-inner {
    position: relative;
    z-index: 1;
    width: 100%;
    min-height: 100svh;
    display: grid;
    grid-template-rows: auto 1fr auto;
    align-items: center;
    gap: 22px;
    padding: 22px 16px 18px;
    margin: 0;
  }

  .brand {
    width: 100%;
    display: grid;
    justify-items: center;
    gap: 10px;
    text-align: center;
  }

  .brand-mark {
    width: 58px;
    height: 58px;
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.32);
  }

  .brand-text {
    justify-items: center;
  }

  .brand-name {
    max-width: 92px;
    color: var(--paper);
    font-size: 0.74rem;
    letter-spacing: 0.08em;
    line-height: 1.25;
  }

  .brand-subtitle {
    display: none;
  }

  .menu-toggle {
    display: none;
  }

  .site-nav {
    width: 100%;
    display: grid;
    gap: 2px;
    align-self: center;
    justify-content: stretch;
  }

  .site-nav a {
    position: relative;
    min-height: 56px;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 5px;
    padding: 8px 6px;
    color: rgba(244, 243, 238, 0.6);
    background: transparent;
    border: 0;
    border-radius: var(--radius-sm);
    font-size: 0.64rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-align: center;
    transition: color 160ms ease, background-color 160ms ease;
  }

  .site-nav a::before {
    content: "";
    position: absolute;
    top: 50%;
    left: -16px;
    width: 3px;
    height: 0;
    background: var(--brand);
    border-radius: 999px;
    transform: translateY(-50%);
    transition: height 200ms ease;
  }

  .site-nav a:hover,
  .site-nav a:focus-visible,
  .site-nav a.is-active {
    color: var(--paper);
    background: rgba(244, 243, 238, 0.06);
  }

  .site-nav a.is-active .nav-index {
    color: var(--brand);
  }

  .site-nav a:hover::before,
  .site-nav a:focus-visible::before,
  .site-nav a.is-active::before {
    height: 30px;
  }

  .nav-index {
    color: var(--ice);
    font-size: 0.64rem;
    letter-spacing: 0.06em;
  }

  .nav-label {
    max-width: 88px;
    overflow-wrap: anywhere;
  }

  .sidebar-cta {
    width: 100%;
    min-height: 72px;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 4px;
    color: #fff;
    background: var(--brand);
    border: 0;
    border-radius: var(--radius-sm);
    box-shadow: 0 16px 30px rgba(216, 41, 91, 0.36);
    text-align: center;
    transition: background-color 160ms ease, transform 160ms ease;
  }

  .sidebar-cta span {
    font-family: var(--font-mono);
    font-size: 0.6rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    line-height: 1;
    text-transform: uppercase;
  }

  .sidebar-cta strong {
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    line-height: 1;
    text-transform: uppercase;
  }

  .sidebar-cta:hover,
  .sidebar-cta:focus-visible {
    background: var(--brand-deep);
    outline: none;
    transform: translateY(-2px);
  }
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 1080px) {
  .membership-layout {
    grid-template-columns: 1fr;
  }

  .fee-card {
    max-width: 560px;
  }
}

@media (max-width: 980px) {
  .hero-inner,
  .split-layout,
  .training-layout,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .hero-stage {
    min-height: 760px;
  }

  .hero-side {
    max-width: 100%;
  }

  .hero-facts {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .hero-facts div + div {
    border-top: 0;
    border-left: 1px solid rgba(244, 243, 238, 0.16);
  }

  .program-grid,
  .team-grid,
  .news-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gallery-item,
  .gallery-item.is-wide {
    grid-column: span 6;
  }

  .gallery-item.is-tall {
    min-height: 440px;
  }

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  :root {
    --header-height: 68px;
  }

  .container,
  .header-inner {
    width: min(100% - 28px, var(--container));
  }

  .menu-toggle {
    display: grid;
  }

  .site-nav {
    position: fixed;
    z-index: 90;
    top: var(--header-height);
    right: 0;
    left: 0;
    display: grid;
    gap: 0;
    padding: 10px 14px 18px;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 28px 50px rgba(12, 19, 34, 0.18);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px);
    transition: opacity 180ms ease, transform 180ms ease;
  }

  .site-nav.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .site-nav a {
    min-height: 52px;
    justify-content: center;
  }

  .hero-story.is-scroll-ready .hero-stage {
    top: var(--header-height);
  }

  .hero-stage {
    min-height: calc(100svh - var(--header-height));
    height: calc(100svh - var(--header-height));
  }

  .hero-scene-1,
  .hero-scene-3,
  .hero-scene-4 {
    background-position: 58% center;
  }

  .hero-watermark {
    right: -150px;
    bottom: 18vh;
    width: min(74vw, 520px);
    opacity: 0.16;
  }

  .hero-inner {
    gap: 28px;
    padding-block: 46px;
  }

  .hero-copy-stack {
    min-height: 340px;
  }

  .hero-title-main,
  .hero-panel-title {
    font-size: clamp(2.45rem, 11vw, 4.45rem);
  }

  .hero-facts {
    grid-template-columns: 1fr;
  }

  .hero-facts div + div {
    border-top: 1px solid rgba(244, 243, 238, 0.16);
    border-left: 0;
  }

  .notice-strip-inner,
  .section-heading-row {
    align-items: start;
    grid-template-columns: 1fr;
    display: grid;
  }

  .notice-strip-inner {
    gap: 8px;
    padding-block: 18px;
  }

  .event-filters {
    justify-content: flex-start;
  }

  .event-card {
    grid-template-columns: 82px minmax(0, 1fr);
    align-items: start;
  }

  .event-category {
    grid-column: 2;
    min-width: 0;
    text-align: left;
  }

  .partner-strip-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 640px) {
  .hero-story.is-scroll-ready {
    min-height: 235svh;
  }

  .hero-stage {
    min-height: calc(100svh - var(--header-height));
  }

  .hero-inner {
    padding-block: 34px;
  }

  .hero-copy-stack {
    min-height: 318px;
  }

  .hero-lead {
    font-size: 1rem;
    line-height: 1.5;
  }

  .hero-side {
    display: none;
  }

  .hero-quickline span {
    width: 100%;
  }

  .lightbox {
    padding: 22px 58px;
  }

  .lightbox-nav {
    width: 42px;
    height: 42px;
    font-size: 2rem;
  }

  .lightbox-prev {
    left: 10px;
  }

  .lightbox-next {
    right: 10px;
  }

  .hero-actions,
  .hero-actions .button {
    width: 100%;
  }

  .hero-facts dt {
    font-size: 1.8rem;
  }

  .section {
    padding-block: 64px;
  }

  .section h2 {
    font-size: clamp(1.7rem, 8.5vw, 2.6rem);
  }

  .program-grid,
  .team-grid,
  .news-grid,
  .field-grid {
    grid-template-columns: 1fr;
  }

  .program-card {
    min-height: 0;
  }

  .metric {
    grid-template-columns: 48px minmax(0, 1fr);
    padding: 20px;
  }

  .training-image img {
    aspect-ratio: 16 / 12;
  }

  .event-card {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .event-date {
    width: 82px;
    min-height: 82px;
  }

  .event-category {
    grid-column: auto;
  }

  .membership-step {
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 14px;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .gallery-item,
  .gallery-item.is-wide,
  .gallery-item.is-tall {
    grid-column: auto;
    min-height: 290px;
  }

  .contact-form {
    padding: 22px 18px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
    padding-block: 44px 36px;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }

  .reveal-item {
    opacity: 1;
    transform: none;
  }
}

/* --------------------------------------------------------------------------
   Pagine eventi (archivio + dettaglio)
   -------------------------------------------------------------------------- */

.page-hero {
  position: relative;
  display: grid;
  align-items: end;
  min-height: 320px;
  padding-block: clamp(86px, 10vw, 130px) 44px;
  color: var(--paper);
  background: linear-gradient(180deg, var(--ink) 0%, var(--ink-2) 100%);
  overflow: hidden;
}

.page-hero.has-cover {
  min-height: 420px;
  background:
    linear-gradient(180deg, rgba(12, 19, 34, 0.55), rgba(12, 19, 34, 0.85)),
    var(--page-cover) center / cover no-repeat;
}

.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--grain);
  background-size: 160px;
  mix-blend-mode: overlay;
  opacity: 0.4;
  pointer-events: none;
}

.page-hero .container {
  position: relative;
  z-index: 1;
}

.page-hero .eyebrow {
  color: var(--ice);
}

.page-hero h1 {
  max-width: 860px;
  margin: 0;
  font-size: clamp(2.2rem, 5vw, 4rem);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.05;
}

.page-hero-lead {
  max-width: 680px;
  margin: 16px 0 0;
  color: rgba(244, 243, 238, 0.85);
  font-size: 1.05rem;
}

.page-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  margin: 20px 0 0;
  color: rgba(244, 243, 238, 0.85);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  letter-spacing: 0.02em;
}

.page-hero-meta strong {
  color: var(--ice);
  font-weight: 600;
}

.breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  color: rgba(244, 243, 238, 0.7);
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.breadcrumb a {
  color: var(--ice);
  border-bottom: 1px solid transparent;
  transition: border-color 160ms ease;
}

.breadcrumb a:hover,
.breadcrumb a:focus-visible {
  border-color: currentColor;
  outline: none;
}

.event-detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 340px);
  gap: clamp(36px, 5vw, 64px);
  align-items: start;
}

.prose {
  max-width: 720px;
  color: var(--ink-soft);
  font-size: 1.05rem;
  line-height: 1.7;
}

.prose p {
  margin: 0 0 18px;
}

.prose h2,
.prose h3 {
  margin: 32px 0 10px;
  color: var(--ink);
  font-weight: 600;
  line-height: 1.2;
}

.prose h2 {
  font-size: 1.5rem;
}

.prose h3 {
  font-size: 1.2rem;
}

.prose ul,
.prose ol {
  margin: 0 0 18px;
  padding-left: 22px;
}

.prose li {
  margin-bottom: 6px;
}

.prose a {
  color: var(--brand);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.event-side-card {
  position: sticky;
  top: 32px;
  display: grid;
  gap: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 3px solid var(--brand);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.event-side-card > div {
  padding: 16px 22px;
}

.event-side-card > div + div {
  border-top: 1px solid var(--line);
}

.event-side-card span {
  display: block;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.event-side-card strong {
  display: block;
  margin-top: 5px;
  color: var(--ink);
  font-size: 1rem;
  font-weight: 700;
}

.event-side-card .event-side-actions {
  display: grid;
  gap: 10px;
  padding: 20px 22px;
}

.event-side-card .button {
  width: 100%;
}

.event-photos {
  margin-top: clamp(44px, 6vw, 72px);
}

.event-photos h2 {
  margin-bottom: 24px;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
}

.event-photo-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.event-section + .event-section {
  margin-top: clamp(48px, 7vw, 84px);
}

.event-section-title {
  margin: 0 0 24px;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 600;
}

.past-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.past-card {
  display: grid;
  grid-template-rows: auto 1fr;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.past-card:hover {
  transform: translateY(-4px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow);
}

.past-card-media {
  aspect-ratio: 16 / 10;
  background: var(--ink-2);
}

.past-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.past-card-media.is-empty {
  display: grid;
  place-items: center;
  color: var(--ice);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.past-card-body {
  padding: 20px 22px 22px;
}

.past-card-date {
  display: block;
  color: var(--brand);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.past-card h3 {
  margin: 10px 0 0;
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.2;
}

.past-card p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.94rem;
}

.empty-note {
  padding: 26px;
  color: var(--muted);
  background: var(--surface);
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  font-family: var(--font-mono);
  font-size: 0.85rem;
}

.section-cta-row {
  margin-top: 34px;
}

@media (max-width: 980px) {
  .event-detail-layout {
    grid-template-columns: 1fr;
  }

  .event-side-card {
    position: static;
  }

  .past-grid,
  .event-photo-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .past-grid,
  .event-photo-grid {
    grid-template-columns: 1fr;
  }
}
