/* ============================================================
   JUDO CUNEO — foglio di stile unico per tutte le pagine
   ============================================================
   Colori e font si cambiano in :root (sezione VARIABILI).
   Font ospitati sul sito (licenza SIL OFL 1.1, vedi fonts/OFL-*.txt),
   ridotti ai soli caratteri usati: nessuna richiesta verso Google. */

/* ===== FONT ===== */
@font-face {
  font-family: 'Bodoni Moda';
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url('fonts/BodoniModa-VF.woff2') format('woff2');
}
@font-face {
  font-family: 'Bodoni Moda';
  font-style: italic;
  font-weight: 400 900;
  font-display: swap;
  src: url('fonts/BodoniModa-Italic-VF.woff2') format('woff2');
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url('fonts/Manrope-VF.woff2') format('woff2');
}
@font-face {
  font-family: 'Noto Serif JP';
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
  src: url('fonts/NotoSerifJP-VF.woff2') format('woff2');
}
@font-face {
  font-family: 'Shippori Mincho';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/ShipporiMincho-Regular.woff2') format('woff2');
}

/* ===== VARIABILI (colori e font) ===== */
:root {
  --paper: #f1ebdd;        /* carta: lo sfondo chiaro caldo */
  --paper-2: #e8e0cd;      /* carta più scura per alcune sezioni */
  --ink: #1a1612;          /* inchiostro: quasi nero */
  --ink-soft: #45382c;
  --ink-muted: #7a6a59;
  --cinnabar: #b8332a;     /* il ROSSO della squadra */
  --cinnabar-deep: #8f1d18;
  --line: rgba(26, 22, 18, 0.18);
  --gold: #a98245;
  --serif: 'Bodoni Moda', 'Didot', serif;
  --sans: 'Manrope', system-ui, sans-serif;
  --jp: 'Noto Serif JP', serif;
  --logo: 'Shippori Mincho', 'Noto Serif JP', serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background: var(--paper);
  color: var(--ink);
  font-weight: 400;
  line-height: 1.55;
  overflow-x: hidden;
  position: relative;
}

/* Velatura "grana" per dare calore alla carta */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.35;   /* niente mix-blend-mode: su carta chiara l'effetto è identico e lo scroll resta fluido */
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.1 0 0 0 0 0.08 0 0 0 0 0.06 0 0 0 0.18 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 60px);
  position: relative;
  z-index: 2;
}

/* ===== NAVIGAZIONE ===== */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(241, 235, 221, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px clamp(20px, 4vw, 60px);
  max-width: 1280px;
  margin: 0 auto;
}

.logo {
  font-family: var(--logo);
  font-weight: 400;
  font-size: 1.4rem;
  letter-spacing: 0.01em;
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  white-space: nowrap;
  flex-shrink: 0;
}

.logo-mark {
  width: 42px;
  height: 42px;
  display: block;
  flex-shrink: 0;
  object-fit: contain;
}

.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
  margin-left: 24px;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-weight: 500;
  align-items: center;
}

.nav-links a {
  color: var(--ink);
  text-decoration: none;
  transition: color 0.3s;
  position: relative;
  white-space: nowrap;
}

.nav-links a:not(.nav-cta)::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--cinnabar);
  transition: width 0.3s ease;
}

.nav-links a:not(.nav-cta):hover { color: var(--cinnabar); }
.nav-links a:not(.nav-cta):hover::after { width: 100%; }

.nav-cta {
  background: var(--ink);
  color: var(--paper);
  padding: 10px 20px;
  white-space: nowrap;
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 600;
  transition: background 0.3s;
}
.nav-links a.nav-cta { color: var(--paper); }
.nav-cta:hover { background: var(--cinnabar); }

/* Pulsante menu per telefono (nascosto su schermi grandi) */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.menu-toggle span {
  width: 26px;
  height: 2px;
  background: var(--ink);
  transition: transform 0.3s, opacity 0.3s;
}
/* Trasforma le tre linee in una X quando il menu è aperto */
.menu-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== HERO ===== */
.hero {
  padding: 200px 0 100px;
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 60px;
  align-items: center;
  width: 100%;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.32em;
  color: var(--ink-soft);
  margin-bottom: 32px;
  font-weight: 500;
  animation: fadeUp 0.9s ease 0.1s both;
}
.eyebrow::before { content: ''; width: 32px; height: 1px; background: var(--cinnabar); }

h1.hero-title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(3.2rem, 8.5vw, 7.5rem);
  line-height: 0.96;
  letter-spacing: -0.025em;
  margin-bottom: 36px;
}
.hero-title .italic { font-style: italic; font-weight: 400; color: var(--cinnabar); }
.hero-title .line { display: block; }

.hero-desc {
  font-size: 1.15rem;
  line-height: 1.65;
  color: var(--ink-soft);
  max-width: 520px;
  margin-bottom: 44px;
  animation: fadeUp 1s ease 0.4s both;
}

.cta-row {
  display: flex;
  gap: 20px;
  align-items: center;
  flex-wrap: wrap;
  animation: fadeUp 1s ease 0.55s both;
}

.btn-primary {
  background: var(--cinnabar);
  color: var(--paper);
  padding: 18px 36px;
  text-decoration: none;
  font-size: 0.82rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 600;
  transition: transform .25s cubic-bezier(.2,.8,.2,1), background .3s, color .3s, box-shadow .3s;
  display: inline-block;
}
.btn-primary:hover {
  background: var(--cinnabar-deep);
  transform: translateY(-3px);
  box-shadow: 0 12px 26px rgba(199,62,41,.28);
}
/* variante chiara (pulsante "Tutti i contatti" sul fondo scuro) */
.btn-primary.btn-light, .btn-primary.btn-light:hover { background: var(--paper); color: var(--ink); }

.btn-ghost {
  color: var(--ink);
  text-decoration: none;
  font-size: 0.82rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 600;
  padding: 18px 4px;
  border-bottom: 1px solid var(--ink);
  transition: transform .25s cubic-bezier(.2,.8,.2,1), background .3s, color .3s, box-shadow .3s;
}
.btn-ghost:hover { color: var(--cinnabar); border-color: var(--cinnabar); letter-spacing: 0.26em; }

/* Pulsante WhatsApp (verde) */
.btn-wa {
  background: #25D366;
  color: #fff;
  padding: 18px 30px;
  text-decoration: none;
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: all 0.3s ease;
}
.btn-wa:hover { background: #1ebe5b; transform: translateY(-2px); box-shadow: 0 12px 24px rgba(37,211,102,.3); }

.hero-visual {
  position: relative;
  height: 560px;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 1.4s ease 0.5s both;
}

.kanji-stack {
  font-family: var(--jp);
  font-weight: 900;
  font-size: clamp(8rem, 22vw, 18rem);
  line-height: 0.85;
  color: var(--ink);
  display: flex;
  flex-direction: column;
  letter-spacing: -0.05em;
  position: relative;
  will-change: transform;   /* si sposta con la parallasse (vedi sito.js) */
}
.kanji-stack::before {
  content: '';
  position: absolute;
  width: 320px; height: 320px;
  border: 2px solid var(--cinnabar);
  border-radius: 50%;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  z-index: -1;
  opacity: 0.4;
}
.kanji-stack span:last-child { color: var(--cinnabar); margin-top: -0.15em; }

.hero-meta {
  position: absolute;
  bottom: 40px; right: 0;
  font-family: var(--jp);
  font-size: 0.78rem;
  letter-spacing: 0.25em;
  color: var(--ink-muted);
  writing-mode: vertical-rl;
  text-orientation: mixed;
}

/* ===== ETICHETTE DI SEZIONE ===== */
.section-label {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.32em;
  color: var(--ink-soft);
  font-weight: 500;
  margin-bottom: 48px;
}
.section-label .num { font-family: var(--serif); font-style: italic; font-size: 1rem; color: var(--cinnabar); }
.section-label::after { content: ''; flex: 1; height: 1px; background: var(--line); }

.section-title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2.4rem, 5vw, 4rem);
  line-height: 1;
  letter-spacing: -0.02em;
  max-width: 760px;
}
.section-title em { font-style: italic; color: var(--cinnabar); }

/* ===== CHI SIAMO ===== */
.philosophy {
  padding: 110px 0;
  border-top: 1px solid var(--line);
  position: relative;
}
.philosophy::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image:
    linear-gradient(rgba(20, 17, 13, 0.84), rgba(20, 17, 13, 0.84)),
    url('chi-siamo.jpg');
  background-size: cover;
  background-position: center 30%;
}
.philosophy .section-label { color: rgba(241, 235, 221, 0.85); }
.philosophy .section-label::after { background: rgba(241, 235, 221, 0.25); }
.philosophy .philo-quote { color: var(--paper); }
.philosophy .philo-quote cite { color: rgba(241, 235, 221, 0.65); }
.philosophy .philo-text p { color: rgba(241, 235, 221, 0.88); }
.philosophy .principle { border-left-color: rgba(241, 235, 221, 0.25); }
.philosophy .principle .name { color: var(--paper); }
.philosophy .principle .meaning { color: rgba(241, 235, 221, 0.7); }

.philo-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 80px;
  align-items: start;
}
.philo-quote {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.6rem, 2.8vw, 2.4rem);
  line-height: 1.3;
  position: sticky;
  top: 120px;
}
.philo-quote::before {
  content: '"';
  font-family: var(--serif);
  font-size: 5rem;
  color: var(--cinnabar);
  line-height: 0.7;
  display: block;
  margin-bottom: 16px;
}
.philo-quote cite {
  display: block;
  font-style: normal;
  font-family: var(--sans);
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-top: 24px;
  font-weight: 500;
}
.philo-text p { font-size: 1.1rem; line-height: 1.75; margin-bottom: 24px; }
.philo-text p:first-child::first-letter {
  font-family: var(--serif);
  font-size: 4.5rem;
  font-weight: 500;
  float: left;
  line-height: 0.85;
  padding: 8px 12px 0 0;
  color: var(--cinnabar);
}
.principles { margin-top: 48px; display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.principle { padding-left: 20px; border-left: 1px solid var(--line); }
.principle .jp { font-family: var(--jp); color: var(--cinnabar); font-size: 1.4rem; font-weight: 700; margin-bottom: 6px; }
.principle .name { font-family: var(--serif); font-size: 1.2rem; font-weight: 500; margin-bottom: 8px; }
.principle .meaning { font-size: 0.92rem; line-height: 1.5; }

/* ===== STAFF (schede ritratto — la sezione "squadra") ===== */
.staff { padding: 110px 0; background: var(--paper-2); border-top: 1px solid var(--line); }
.staff .section-title { margin-bottom: 16px; }
.staff-intro { max-width: 560px; color: var(--ink-soft); font-size: 1.1rem; margin-bottom: 68px; }

.crew {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 44px 30px;
}
.crew-card { position: relative; }

/* cornice dritta "a passe-partout": bordo sottile + battuta di carta attorno alla foto */
.crew-frame {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 10px;
  transition: border-color 0.4s ease;
}
.crew-card:hover .crew-frame { border-color: var(--cinnabar); }

.crew-photo {
  position: relative;
  z-index: 1;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: linear-gradient(160deg, var(--ink), var(--cinnabar-deep));
}
.crew-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 12%;
  display: block;
  filter: saturate(1.12) contrast(1.05) brightness(1.02);   /* a colori, con un tocco caldo */
  transition: filter 0.5s ease, transform 0.6s ease;
}
.crew-card:hover .crew-photo img { filter: saturate(1.22) contrast(1.07) brightness(1.03); transform: scale(1.05); }
/* leggera sfumatura in basso per dare profondità e far risaltare il nome */
.crew-card.has-photo .crew-photo::after {
  content: ''; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: linear-gradient(to top, rgba(26,22,18,0.28) 0%, rgba(26,22,18,0) 38%);
}

/* segnaposto elegante finché non c'è la foto vera */
.crew-ph { position: absolute; inset: 0; display: grid; place-items: center; color: rgba(241,235,221,.92); }
.crew-ph .kanji { font-family: var(--jp); font-size: 5rem; opacity: .22; position: absolute; }
.crew-ph .ini { font-family: var(--serif); font-size: 2.8rem; letter-spacing: .05em; }
.crew-ph .hint { position: absolute; bottom: 14px; font-size: .62rem; letter-spacing: .22em; text-transform: uppercase; opacity: .6; }

/* bollino numero in alto (stile timbro) */
.crew-num {
  position: absolute; top: 12px; left: 12px; z-index: 3;
  width: 36px; height: 36px;
  background: var(--cinnabar); color: var(--paper);
  display: grid; place-items: center;
  font-family: var(--serif); font-style: italic; font-size: .95rem;
  border-radius: 50%;
}

.crew-body { padding-top: 24px; position: relative; z-index: 1; }
.crew-name { font-family: var(--serif); font-weight: 500; font-size: 1.45rem; line-height: 1.05; margin-bottom: 7px; }
.crew-role { font-size: .72rem; text-transform: uppercase; letter-spacing: .2em; color: var(--ink-muted); font-weight: 500; }
.crew-quals { margin-top: 8px; display: flex; flex-direction: column; gap: 3px; }
.crew-qual { font-size: .66rem; letter-spacing: .03em; color: var(--ink-muted); font-weight: 500; line-height: 1.32; }
.crew-qual strong { color: var(--cinnabar); font-weight: 700; }
.crew-qual a { color: inherit; text-decoration: none; }
.crew-qual a:hover strong { text-decoration: underline; text-underline-offset: 3px; }
.crew-qual.q-dan { font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; color: var(--cinnabar); font-weight: 700; }
.crew-qual.q-degree { color: var(--ink); font-weight: 600; }

@media (max-width: 900px) { .crew { grid-template-columns: repeat(2, 1fr); gap: 50px 26px; } }
@media (max-width: 480px) { .crew { grid-template-columns: 1fr; max-width: 320px; margin: 0 auto; } }

/* gruppi di staff (Presidente · Allenatori nazionali · base · Collaboratori) */
.crew-group { margin-bottom: 66px; }
.crew-group:last-child { margin-bottom: 0; }
.crew-group-label { display: flex; align-items: center; gap: 18px; margin-bottom: 36px; }
.crew-group-label .gk { font-family: var(--jp); color: var(--cinnabar); font-size: 1.55rem; line-height: 1; flex-shrink: 0; }
.crew-group-label .gt { font-size: .8rem; text-transform: uppercase; letter-spacing: .26em; color: var(--ink); font-weight: 600; white-space: nowrap; flex-shrink: 0; }
.crew-group-label .gl { flex: 1; height: 1px; background: var(--line); }
.crew-group-label .gc { font-family: var(--serif); font-style: italic; color: var(--ink-muted); font-size: .95rem; flex-shrink: 0; }
@media (max-width: 480px) { .crew-group-label { max-width: 320px; margin-left: auto; margin-right: auto; } }

/* ===== CORSI ===== */
.corsi { padding: 110px 0; background: var(--paper-2); border-top: 1px solid var(--line); position: relative; }
.corsi-head { margin-bottom: 70px; }
.corsi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr); /* quattro corsi: Judo Infanzia, Primo Judo, Agonisti/amatori/fitness, Difesa personale */
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.corso { background: var(--paper); padding: 48px 44px; position: relative; overflow: hidden; }
.corso::before {
  content: '';
  position: absolute; inset: 0;
  background: var(--ink);
  transform: translateY(100%);
  transition: transform 0.5s cubic-bezier(0.76, 0, 0.24, 1);
  z-index: 0;
}
.corso:hover::before { transform: translateY(0); }
.corso > * { position: relative; z-index: 1; transition: color 0.4s ease; }
.corso:hover .corso-num,
.corso:hover .corso-title,
.corso:hover .corso-age,
.corso:hover .corso-days,
.corso:hover .corso-time,
.corso:hover .corso-desc,
.corso:hover .corso-tags li { color: var(--paper); }
.corso:hover .corso-num { color: var(--cinnabar); }
.corso-num { font-family: var(--serif); font-style: italic; font-size: 1rem; color: var(--cinnabar); margin-bottom: 28px; }
.corso-title { font-family: var(--serif); font-weight: 500; font-size: 2.2rem; line-height: 1.1; margin-bottom: 8px; }
.corso-age { display: inline-block; font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--cinnabar); background: rgba(199, 62, 41, 0.09); border: 1px solid rgba(199, 62, 41, 0.28); padding: 5px 12px; border-radius: 999px; margin-bottom: 18px; font-weight: 700; }
.corso:hover .corso-age { color: var(--paper); background: rgba(241, 235, 221, 0.16); border-color: rgba(241, 235, 221, 0.45); }
.corso-days { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.16em; color: var(--cinnabar); font-weight: 700; margin-bottom: 6px; }
.corso-time { font-family: var(--serif); font-style: italic; font-size: 1.5rem; color: var(--cinnabar); margin-bottom: 24px; }
.corso-desc { font-size: 1rem; line-height: 1.65; color: var(--ink-soft); margin-bottom: 28px; }
.corso-tags { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; font-size: 0.75rem; color: var(--ink-muted); text-transform: uppercase; letter-spacing: 0.15em; }
.corso-tags li::after { content: '·'; margin-left: 8px; color: var(--cinnabar); }
.corso-tags li:last-child::after { content: ''; }
@media (max-width: 1150px) { .corsi-grid { grid-template-columns: repeat(2, 1fr); } }
.corsi-note { margin-top: 28px; font-size: 0.95rem; color: var(--ink-muted); }
.corsi-note strong { color: var(--ink-soft); }

/* ===== Succursali (sedi distaccate) ===== */
.succ { margin-top: 64px; }
.succ-head { display: flex; align-items: baseline; gap: 16px; margin-bottom: 26px; flex-wrap: wrap; }
.succ-kicker { font-family: var(--serif); font-style: italic; font-size: 1.7rem; color: var(--ink); margin: 0; }
.succ-kicker em { color: var(--cinnabar); font-style: italic; }
.succ-sub { font-size: 0.95rem; color: var(--ink-muted); }
.succ-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.succ-card {
  position: relative;
  background: var(--paper);
  border: 1px solid rgba(31, 26, 23, 0.12);
  border-left: 4px solid var(--cinnabar);
  border-radius: 4px;
  padding: 28px 30px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.succ-card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(31, 26, 23, 0.1); }
.succ-card::after {
  content: '柔';
  position: absolute;
  right: -10px; bottom: -22px;
  font-size: 5.5rem;
  color: rgba(199, 62, 41, 0.07);
  font-family: var(--serif);
  line-height: 1;
  pointer-events: none;
}
.succ-place { font-family: var(--serif); font-size: 1.45rem; color: var(--ink); margin: 0 0 4px; }
.succ-day { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.16em; color: var(--cinnabar); font-weight: 700; margin-bottom: 14px; }
/* scheda con minimappa: testo a sinistra, mappa a destra */
.succ-card.has-map { display: flex; align-items: stretch; gap: 22px; padding: 20px 22px; }
.succ-card.has-map::after { display: none; }
.succ-info { flex: 1; min-width: 0; align-self: center; }
.succ-info .succ-day { margin-bottom: 0; }
.succ-addr { margin: 6px 0 0; font-size: 0.9rem; color: var(--ink-soft); }
.succ-map { flex: 0 0 44%; position: relative; z-index: 1; min-height: 138px; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; background: var(--paper-2); }
@media (max-width: 460px) { .succ-card.has-map { flex-direction: column; } .succ-map { flex-basis: auto; min-height: 150px; } }
.succ-time { font-family: var(--serif); font-style: italic; font-size: 1.35rem; color: var(--ink-soft); }
.succ-time span { color: var(--cinnabar); }

/* ===== CONTATTI (dove trovarci) — elegante e chiara ===== */
.contatti { padding: 110px 0; background: var(--paper-2); border-top: 1px solid var(--line); }
.contatti-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 50px;
  align-items: stretch;
  margin-top: 24px;
}

/* Riquadro contatti chiaro, con sottile linea rossa in alto come accento */
.contact-panel {
  background: var(--paper);
  border: 1px solid var(--line);
  border-top: 3px solid var(--cinnabar);
  padding: 48px 44px;
  display: flex;
  flex-direction: column;
}
.contact-list { list-style: none; }
.contact-list li { display: flex; gap: 18px; margin-bottom: 28px; align-items: flex-start; }
.contact-ico {
  width: 46px; height: 46px; flex: 0 0 46px;
  border: 1px solid var(--cinnabar);
  color: var(--cinnabar);
  display: grid; place-items: center;
  font-size: 1.2rem;
}
.contact-list .label { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.2em; color: var(--ink-muted); margin-bottom: 4px; }
.contact-list .value { font-family: var(--serif); font-size: 1.25rem; color: var(--ink); text-decoration: none; }
.contact-list a.value:hover { color: var(--cinnabar); }
.contact-list .value-sub { display: block; font-size: 1rem; font-style: italic; color: var(--ink-soft); margin-top: 2px; }
.contact-list .value-hours { font-size: 1.1rem; }
.contact-list .phone-line { display: block; font-size: 1.12rem; margin-top: 5px; }
.contact-list .phone-line:first-of-type { margin-top: 0; }
.contact-list .phone-line .pn { font-family: var(--sans); font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.14em; color: var(--cinnabar); font-weight: 700; margin-right: 9px; }
.contact-foot { margin-top: auto; padding-top: 16px; }
.contact-foot .label { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.2em; color: var(--ink-muted); margin-bottom: 10px; }
.socials { display: flex; gap: 12px; }
.socials a {
  height: 42px;
  padding: 0 18px;
  border: 1px solid var(--line);
  display: inline-flex; align-items: center;
  white-space: nowrap;
  text-decoration: none; color: var(--ink);
  font-size: 0.72rem; text-transform: uppercase; letter-spacing: .1em;
  transition: all .3s;
}
.socials a:hover { background: var(--cinnabar); color: #fff; border-color: var(--cinnabar); }

/* Mappa in una cornice dritta e pulita (effetto foto incorniciata) */
.map-card { background: var(--paper); border: 1px solid var(--line); padding: 10px; }
.map-frame { width: 100%; height: 100%; min-height: 440px; border: 0; display: block; }
/* Mappe statiche: niente iframe di Google (impostava cookie prima di qualsiasi consenso).
   Google Maps si apre solo se l'utente clicca. */
.map-static { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 18px; padding: 40px 36px; background: var(--paper-2); box-sizing: border-box; }
.map-static .map-kicker { font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.2em; color: var(--ink-muted); }
.map-static .map-addr { font-family: var(--serif); font-weight: 500; font-size: clamp(1.4rem, 2.4vw, 1.9rem); line-height: 1.25; color: var(--ink); margin: 0; }
.map-static .map-addr small { display: block; font-family: var(--sans); font-weight: 500; font-size: 0.95rem; color: var(--ink-muted); margin-top: 8px; }
.map-static .map-note { font-size: 0.82rem; color: var(--ink-muted); margin: 0; max-width: 42ch; }
.succ-map .maplink { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; text-decoration: none; color: var(--ink); background: var(--paper-2); transition: background 0.3s; }
.succ-map .maplink:hover { background: var(--paper); }
.succ-map .maplink .pin { font-size: 1.6rem; line-height: 1; color: var(--cinnabar); }
.succ-map .maplink .lbl { font-size: 0.7rem; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 700; }

@media (max-width: 900px) {
  .contact-panel { padding: 36px 26px; }
  .map-frame { min-height: 340px; }
}

/* ===== NUMERI / RIPROVA SOCIALE (sotto l'hero) ===== */
.stats { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--paper); }
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.stat { padding: 52px 24px; text-align: center; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat .num { font-family: var(--serif); font-weight: 500; font-size: clamp(2.4rem, 5vw, 3.4rem); color: var(--cinnabar); line-height: 1; }
.stat .lab { font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.2em; color: var(--ink-muted); margin-top: 14px; }
@media (max-width: 600px) { .stats-grid { grid-template-columns: 1fr; } .stat { border-right: 0; border-bottom: 1px solid var(--line); } .stat:last-child { border-bottom: 0; } }

/* ===== PERCHÉ IL JUDO (benefici) ===== */
.benefits { padding: 110px 0; border-top: 1px solid var(--line); }
.benefits-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); margin-top: 56px; }
.benefit { background: var(--paper); padding: 42px 32px; }
.benefit .ico { font-family: var(--jp); font-size: 2.8rem; font-weight: 700; color: var(--cinnabar); line-height: 1; margin-bottom: 16px; }
.benefit h3 { font-family: var(--serif); font-weight: 500; font-size: 1.4rem; margin-bottom: 10px; }
.benefit p { font-size: 0.95rem; color: var(--ink-soft); line-height: 1.6; }
@media (max-width: 900px) { .benefits-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .benefits-grid { grid-template-columns: 1fr; } }

/* ===== FAQ ===== */
.faq { padding: 110px 0; background: var(--paper-2); border-top: 1px solid var(--line); }
.faq-list { margin-top: 48px; max-width: 860px; border-top: 1px solid var(--ink); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary { cursor: pointer; list-style: none; padding: 28px 4px; font-family: var(--serif); font-size: clamp(1.15rem, 2.2vw, 1.4rem); display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; color: var(--cinnabar); font-size: 1.7rem; line-height: 1; flex-shrink: 0; }
.faq-item[open] summary::after { content: '\2013'; }
.faq-item .ans { padding: 0 4px 28px; color: var(--ink-soft); line-height: 1.7; max-width: 720px; }

/* ===== STRISCIA DEI VALORI (scorre piano da destra a sinistra) ===== */
.marquee {
  overflow: hidden;
  border-top: 1px solid var(--line);
  background: var(--paper);
  padding: 28px 0;
  position: relative;
  z-index: 2;
}
.marquee-track { display: flex; width: max-content; animation: marquee 46s linear infinite; }
.marquee-seq { display: flex; align-items: center; flex-shrink: 0; }
.marquee-seq span {
  display: inline-flex;
  align-items: baseline;
  gap: 14px;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.5rem;
  color: var(--ink-soft);
  padding-right: 72px;
  white-space: nowrap;
}
.marquee-seq .k { font-family: var(--jp); font-style: normal; font-weight: 700; font-size: 1.6rem; color: var(--cinnabar); }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee-track { animation: none; } }

/* ===== IL PERCORSO (le cinture, dalla bianca alla nera) ===== */
.belts { padding: 110px 0; border-top: 1px solid var(--line); }
.belts-intro { max-width: 560px; color: var(--ink-soft); font-size: 1.1rem; margin-top: 20px; }
.belt-list { margin-top: 64px; border-top: 1px solid var(--ink); }
.belt-row {
  display: grid;
  grid-template-columns: 190px 110px 1fr;
  align-items: center;
  gap: 28px;
  padding: 20px 4px;
  border-bottom: 1px solid var(--line);
}
.belt-name { font-family: var(--serif); font-size: 1.25rem; font-weight: 500; }
.belt-grade { font-family: var(--serif); font-style: italic; color: var(--ink-muted); font-size: 0.95rem; }
/* La fascia colorata: la larghezza cresce di grado in grado (impostata con --w su ogni riga) */
.belt-band { height: 12px; width: var(--w); border: 1px solid rgba(26, 22, 18, 0.25); }
.belt-band.b-bianca    { --w: 28%;  background: #faf6ea; }
.belt-band.b-gialla    { --w: 40%;  background: #ddb13c; }
.belt-band.b-arancione { --w: 52%;  background: #c8732c; }
.belt-band.b-verde     { --w: 64%;  background: #3f6b46; }
.belt-band.b-blu       { --w: 76%;  background: #2e5878; }
.belt-band.b-marrone   { --w: 88%;  background: #5f4128; }
.belt-band.b-nera      { --w: 100%; background: #1a1612; }
.js .belt-list .belt-band { width: 0; transition: width 1.1s cubic-bezier(.2,.8,.2,1); }
.js .belt-list.is-visible .belt-band { width: var(--w); }
.belt-row:nth-child(2) .belt-band { transition-delay: 0.08s; }
.belt-row:nth-child(3) .belt-band { transition-delay: 0.16s; }
.belt-row:nth-child(4) .belt-band { transition-delay: 0.24s; }
.belt-row:nth-child(5) .belt-band { transition-delay: 0.32s; }
.belt-row:nth-child(6) .belt-band { transition-delay: 0.40s; }
.belt-row:nth-child(7) .belt-band { transition-delay: 0.48s; }
@media (max-width: 700px) {
  .belt-row { grid-template-columns: 1fr auto; gap: 10px 16px; padding: 16px 2px; }
  .belt-band { grid-column: 1 / -1; }
}

/* ===== PALLINE DELLO STAFF (in alto a destra, sotto il menu) ===== */
.staff-bubbles {
  position: fixed;
  top: 96px;
  right: 26px;
  z-index: 90;
  display: flex;
}
.bubble {
  width: 54px; height: 54px;
  border-radius: 50%;
  margin-left: -14px;
  background: linear-gradient(160deg, var(--ink), var(--cinnabar-deep));
  color: rgba(241, 235, 221, 0.95);
  border: 2px solid var(--paper);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
  display: grid;
  place-items: center;
  font-family: var(--serif);
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  text-decoration: none;
  position: relative;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  animation: bubblePop 0.5s cubic-bezier(.34,1.56,.64,1) backwards;
}
.bubble:nth-child(1) { animation-delay: 1.0s; }
.bubble:nth-child(2) { animation-delay: 1.12s; }
.bubble:nth-child(3) { animation-delay: 1.24s; }
.bubble:nth-child(4) { animation-delay: 1.36s; }
.bubble:hover {
  transform: translateY(5px) scale(1.15);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.28);
  z-index: 5;
}
.bubble img { width: 100%; height: 100%; object-fit: cover; object-position: center 18%; border-radius: 50%; }
/* pallina con foto: la foto fa da sfondo, zoomata sul viso (ritaglia solo la faccia) */
/* etichetta con nome e ruolo che compare sotto la pallina */
.b-tip {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  background: var(--ink);
  color: var(--paper);
  padding: 9px 14px;
  white-space: nowrap;
  font-family: var(--sans);
  text-align: right;
  opacity: 0;
  transform: translateY(-6px);
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.b-tip strong { display: block; font-size: 0.8rem; font-weight: 600; letter-spacing: 0.02em; }
.b-tip em { display: block; font-style: normal; font-size: 0.62rem; text-transform: uppercase; letter-spacing: 0.16em; color: rgba(241, 235, 221, 0.65); margin-top: 2px; }
.bubble:hover .b-tip { opacity: 1; transform: translateY(0); }
@keyframes bubblePop {
  from { opacity: 0; transform: scale(0.3) translateY(-14px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}
@media (max-width: 820px) { .staff-bubbles { display: none; } }

/* Solo da telefono: nasconde le sezioni secondarie per accorciare la pagina.
   Su computer (oltre 768px) restano visibili. */
@media (max-width: 768px) {
  #perche,      /* sezione "Perché il judo" */
  #percorso,    /* sezione "Il percorso" (cinture) */
  .stats {      /* striscia numeri (dal 1965, 100+ allievi...) */
    display: none;
  }
}
@media (prefers-reduced-motion: reduce) { .bubble { animation: none; } }

/* ===== PULSANTE WHATSAPP FISSO ===== */
.wa-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 200;
  width: 60px; height: 60px; border-radius: 50%;
  background: #25D366; color: #fff;
  display: grid; place-items: center;
  box-shadow: 0 8px 24px rgba(0,0,0,.25);
  text-decoration: none;
  transition: transform .25s, box-shadow .25s;
}
.wa-float:hover { transform: scale(1.08); box-shadow: 0 12px 30px rgba(37,211,102,.45); }
@media (max-width: 600px) { .wa-float { width: 56px; height: 56px; right: 16px; bottom: 16px; } }

/* ===== INVITO FINALE ===== */
.final { padding: 130px 0; background: var(--ink); color: var(--paper); text-align: center; position: relative; overflow: hidden; }
.final::before {
  content: '柔道';
  position: absolute;
  font-family: var(--jp);
  font-weight: 900;
  font-size: 40rem;
  color: rgba(184, 51, 42, 0.06);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  line-height: 1;
  letter-spacing: -0.1em;
}
.final .wrap { position: relative; z-index: 2; }
.final-eyebrow { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.32em; color: var(--cinnabar); margin-bottom: 28px; font-weight: 500; }
.final-title { font-family: var(--serif); font-weight: 400; font-size: clamp(2.5rem, 6vw, 5rem); line-height: 1.05; letter-spacing: -0.02em; max-width: 900px; margin: 0 auto 36px; }
.final-title em { font-style: italic; color: var(--cinnabar); }
.final-desc { font-size: 1.1rem; color: rgba(241, 235, 221, 0.7); max-width: 580px; margin: 0 auto 50px; line-height: 1.6; }
.final-cta { display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; }

/* I tre passi per iniziare, dentro l'invito finale */
.final-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  max-width: 960px;
  margin: 0 auto 60px;
  text-align: left;
}
.final-step { padding: 0 36px; border-left: 1px solid rgba(241, 235, 221, 0.18); }
.final-step:first-child { border-left: 0; }
.final-step .n { font-family: var(--serif); font-style: italic; font-size: 2.6rem; color: var(--cinnabar); line-height: 1; margin-bottom: 14px; }
.final-step h3 { font-family: var(--serif); font-weight: 500; font-size: 1.25rem; color: var(--paper); margin-bottom: 8px; }
.final-step p { font-size: 0.92rem; color: rgba(241, 235, 221, 0.65); line-height: 1.6; }
@media (max-width: 800px) {
  .final-steps { grid-template-columns: 1fr; gap: 32px; max-width: 420px; }
  .final-step { border-left: 0; padding: 0; }
  .final-step + .final-step { border-top: 1px solid rgba(241, 235, 221, 0.18); padding-top: 32px; }
}

/* ===== FOOTER ===== */
footer { background: var(--ink); color: var(--paper); padding: 60px 0 40px; border-top: 1px solid rgba(241, 235, 221, 0.1); }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 0.8fr 1.1fr; gap: 40px; margin-bottom: 50px; }
.foot-brand .logo { color: var(--paper); }
.foot-brand p { margin-top: 20px; color: rgba(241, 235, 221, 0.6); font-size: 0.92rem; line-height: 1.6; max-width: 320px; }
.foot-col h4 { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.25em; color: var(--cinnabar); font-weight: 600; margin-bottom: 20px; }
.foot-col p, .foot-col a { font-size: 0.92rem; color: rgba(241, 235, 221, 0.75); text-decoration: none; display: block; margin-bottom: 8px; line-height: 1.6; transition: color 0.3s; }
.foot-col a:hover { color: var(--paper); }
.foot-note { font-size: 0.8rem; color: rgba(241, 235, 221, 0.55); letter-spacing: 0.02em; margin-bottom: 24px; }
.foot-bottom { border-top: 1px solid rgba(241, 235, 221, 0.1); padding-top: 30px; display: flex; justify-content: space-between; font-size: 0.78rem; color: rgba(241, 235, 221, 0.5); flex-wrap: wrap; gap: 16px; }
.foot-bottom a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.foot-bottom a:hover { color: var(--paper); }
.foot-bottom { padding-right: 90px; } /* lascia spazio al pulsante WhatsApp fisso */
@media (max-width: 600px) { .foot-bottom { padding-right: 76px; } }

/* ===== ANIMAZIONI ===== */
@keyframes fadeUp { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.js .reveal { opacity: 0; transform: translateY(30px); transition: opacity .85s ease, transform .85s cubic-bezier(.2,.8,.2,1); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ===== RESPONSIVE (tablet e telefoni) ===== */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { height: 360px; }
  .hero { padding: 140px 0 80px; min-height: auto; }
  .hero-meta { display: none; }
  .philo-grid { grid-template-columns: 1fr; gap: 50px; }
  .philo-quote { position: static; }
  .principles { grid-template-columns: 1fr; }
  .corsi-grid { grid-template-columns: 1fr; }
  .succ-grid { grid-template-columns: 1fr; }
  .contatti-grid { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 820px) {
  /* Mostra il pulsante "a panino" e prepara il menu a tendina */
  .menu-toggle { display: flex; }
  .nav-links {
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--paper);
    border-bottom: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin-left: 0;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    visibility: hidden;   /* menu chiuso: le voci non si raggiungono col tasto Tab */
    transition: max-height 0.35s ease, visibility 0s linear 0.35s;
  }
  .nav-links.open { max-height: 460px; padding: 10px 0; border-bottom: 1px solid var(--line); visibility: visible; transition: max-height 0.35s ease; }
  .nav-links li { width: 100%; }
  .nav-links a { display: block; padding: 16px clamp(20px, 4vw, 60px); }
  .nav-links .nav-cta { margin: 8px clamp(20px, 4vw, 60px); text-align: center; }
}

@media (max-width: 520px) {
  .foot-grid { grid-template-columns: 1fr; }
  /* lascia spazio in fondo così il pulsante WhatsApp fisso non copre l'ultima riga */
  footer { padding-bottom: 88px; }
}

/* ============================================================
   MOVIMENTO — comparsa a cascata, hero dinamica, carosello staff
   ============================================================ */

/* Comparsa a cascata */
.js .stagger > * { opacity: 0; transform: translateY(28px); transition: opacity .6s ease, transform .6s cubic-bezier(.2,.85,.25,1); }
.stagger.is-visible > * { opacity: 1; transform: none; }
.stagger.is-visible > *:nth-child(1){transition-delay:.05s}
.stagger.is-visible > *:nth-child(2){transition-delay:.13s}
.stagger.is-visible > *:nth-child(3){transition-delay:.21s}
.stagger.is-visible > *:nth-child(4){transition-delay:.29s}
.stagger.is-visible > *:nth-child(5){transition-delay:.37s}
.stagger.is-visible > *:nth-child(6){transition-delay:.45s}
.stagger.is-visible > *:nth-child(7){transition-delay:.53s}
.stagger.is-visible > *:nth-child(8){transition-delay:.61s}

/* ---------- HERO: tipografia in grande movimento ---------- */
.hero { position: relative; overflow: hidden; }
/* kanji gigante di sfondo: texture che scorre con la pagina (parallasse, impostata in JS) */
.hero-bgjp {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  display: flex; gap: 2vw; z-index: 0; pointer-events: none; user-select: none;
  font-family: var(--jp); font-weight: 900; font-size: 40vw; line-height: .8;
  color: var(--ink); opacity: .04; white-space: nowrap; will-change: transform;
}
.hero .wrap { position: relative; z-index: 2; }
.hero-visual { position: relative; z-index: 1; }

/* titolo che si compone: ogni riga sale da una maschera (senza JS il titolo resta visibile) */
.hero-title .line { display: block; overflow: hidden; padding-bottom: .08em; }
.hero-title .lt { display: inline-block; }
.js .hero-title .lt { transform: translateY(115%); animation: lineUp 1s cubic-bezier(.16,1,.3,1) forwards; }
.hero-title .line:nth-child(1) .lt { animation-delay: .15s; }
.hero-title .line:nth-child(2) .lt { animation-delay: .30s; }
.hero-title .line:nth-child(3) .lt { animation-delay: .45s; }
@keyframes lineUp { to { transform: translateY(0); } }

/* ---------- STAFF: carosello orizzontale ---------- */
.crew-wrap { position: relative; }
.crew.is-carousel {
  display: flex; gap: 24px;
  overflow-x: auto; overflow-y: hidden;
  scroll-snap-type: x mandatory; scroll-behavior: smooth;
  padding: 6px 2px 24px; margin: 0 -2px;
  -ms-overflow-style: none; scrollbar-width: none; cursor: grab;
}
.crew.is-carousel.dragging { cursor: grabbing; scroll-behavior: auto; scroll-snap-type: none; }
.crew.is-carousel::-webkit-scrollbar { display: none; }
.crew.is-carousel .crew-card { flex: 0 0 clamp(230px, 25vw, 275px); scroll-snap-align: start; }
/* frecce */
.crew-nav {
  position: absolute; top: 42%; transform: translateY(-50%); z-index: 6;
  width: 50px; height: 50px; border-radius: 50%;
  border: 1px solid var(--line); background: var(--paper); color: var(--ink);
  font-size: 1.7rem; line-height: 1; cursor: pointer; display: grid; place-items: center;
  box-shadow: 0 8px 24px rgba(26,22,18,.14);
  transition: transform .25s ease, background .25s, color .25s, opacity .25s;
}
.crew-nav:hover { background: var(--cinnabar); color: var(--paper); border-color: var(--cinnabar); transform: translateY(-50%) scale(1.08); }
.crew-nav.prev { left: -16px; }
.crew-nav.next { right: -16px; }
.crew-nav[disabled] { opacity: .22; pointer-events: none; }

/* puntini di navigazione (utili soprattutto da telefono) */
.crew-dots { display: none; justify-content: center; gap: 9px; margin-top: 20px; }
.crew-dots button {
  width: 8px; height: 8px; border-radius: 50%; padding: 0; border: 0;
  background: rgba(26,22,18,.22); cursor: pointer;
  transition: width .28s ease, background .28s ease;
}
.crew-dots button.active { background: var(--cinnabar); width: 22px; border-radius: 5px; }

@media (max-width: 760px) {
  .crew-nav { display: none; }
  .crew.is-carousel { gap: 16px; padding: 4px 0 16px; margin: 0; scroll-padding-left: 2px; -webkit-overflow-scrolling: touch; }
  .crew.is-carousel .crew-card { flex-basis: 82%; }
  .crew-dots { display: flex; }
  /* sfumatura sul bordo destro: suggerisce che c'è dell'altro da scorrere */
  .crew-wrap::after {
    content:''; position:absolute; top:0; right:0; bottom:34px; width:40px; z-index:4; pointer-events:none;
    background: linear-gradient(to right, rgba(241,235,221,0), var(--paper));
  }
}

/* card staff: hover vivo (vale anche nel carosello) */
.crew-card { transition: transform .35s cubic-bezier(.2,.8,.2,1); }
.crew-card:hover { transform: translateY(-8px); }
.crew-frame { transition: border-color .4s ease, box-shadow .4s ease; }
.crew-card:hover .crew-frame { box-shadow: 0 18px 40px rgba(26,22,18,.16); }
.crew-card:not(.has-photo) .crew-photo { background: radial-gradient(120% 100% at 50% 0%, var(--cinnabar) 0%, var(--cinnabar-deep) 58%, #571a11 100%); }
.crew-ph .kanji { font-size: 7.2rem; opacity: .17; }
.crew-ph .ini { font-size: 3rem; position: relative; z-index: 1; text-shadow: 0 2px 16px rgba(0,0,0,.28); }
.crew-ph .hint { opacity: .8; }
.crew-card:not(.has-photo) .crew-photo::before {
  content:''; position:absolute; inset:0; z-index:2; pointer-events:none;
  background: linear-gradient(115deg, transparent 32%, rgba(255,255,255,.20) 48%, transparent 64%);
  transform: translateX(-130%); transition: transform .85s ease;
}
.crew-card:not(.has-photo):hover .crew-photo::before { transform: translateX(130%); }
.crew-num { transition: transform .35s cubic-bezier(.34,1.56,.64,1); }
.crew-card:hover .crew-num { transform: scale(1.14) rotate(-6deg); }
.crew-name { display: inline-block; position: relative; }
.crew-name::after { content:''; position:absolute; left:0; bottom:-4px; height:2px; width:0; background: var(--cinnabar); transition: width .45s cubic-bezier(.2,.8,.2,1); }
.crew-card:hover .crew-name::after { width: 100%; }
.crew-role { transition: color .3s; }
.crew-card:hover .crew-role { color: var(--cinnabar); }

/* Chi ha chiesto al sistema di ridurre il movimento vede tutto subito, senza animazioni */
@media (prefers-reduced-motion: reduce) {
  html, .crew.is-carousel { scroll-behavior: auto; }
  .eyebrow, .hero-desc, .cta-row, .hero-visual, .js .hero-title .lt { animation: none; transform: none; }
  .js .reveal, .js .stagger > * { opacity: 1; transform: none; transition: none; }
  .js .belt-list .belt-band { width: var(--w); transition: none; }
}

/* ===== PAGINE LEGALI (privacy / cookie) ===== */
.legal { padding: 150px 0 100px; background: var(--paper); }
.legal .wrap { max-width: 860px; }
.legal h1 { font-family: var(--serif); font-weight: 500; font-size: clamp(2.2rem, 5vw, 3.4rem); line-height: 1.1; margin: 18px 0 14px; letter-spacing: -0.01em; }
.legal .legal-meta { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.18em; color: var(--ink-muted); margin-bottom: 48px; }
.legal h2 { font-family: var(--serif); font-weight: 500; font-size: clamp(1.4rem, 2.6vw, 1.8rem); margin: 52px 0 16px; padding-top: 24px; border-top: 1px solid var(--ink); }
.legal h3 { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.2em; color: var(--cinnabar); font-weight: 600; margin: 28px 0 10px; }
.legal p, .legal li { line-height: 1.75; color: var(--ink-soft); }
.legal p { margin: 0 0 16px; }
.legal ul { margin: 0 0 18px 22px; padding: 0; }
.legal li { margin-bottom: 8px; }
.legal a { color: var(--cinnabar); text-decoration: underline; text-underline-offset: 3px; }
.legal .box { background: var(--paper-2); border: 1px solid var(--line); padding: 26px 28px; margin: 22px 0 26px; }
.legal .box p { margin: 0 0 6px; }
.legal .box p:last-child { margin: 0; }
.legal table { width: 100%; border-collapse: collapse; margin: 12px 0 26px; font-size: 0.94rem; }
.legal th, .legal td { text-align: left; vertical-align: top; padding: 12px 10px; border-bottom: 1px solid var(--line); line-height: 1.55; }
.legal th { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.18em; color: var(--ink-muted); font-weight: 600; }
