/* ============================================================
   ENIGMA LAB — playful · professional · light
   Palette: lilla chiaro + viola #6E06FF (logo) + giallo spark
   Type: Fredoka (display, friendly) · Plus Jakarta Sans (body) · Space Mono (label)
   ============================================================ */

@font-face {
  font-family: "Bison";
  src: url("../fonts/bison-bold.ttf") format("truetype");
  font-weight: 100 900; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Circular Std";
  src: url("../fonts/circular-std-medium.ttf") format("truetype");
  font-weight: 100 900; font-style: normal; font-display: swap;
}

:root {
  --bg: #f5f0ff;
  --bg-2: #ffffff;
  --surface: #ffffff;
  --surface-2: #f3ecff;
  --line: rgba(110, 6, 255, 0.14);
  --line-soft: rgba(42, 22, 78, 0.10);

  --violet: #6e06ff;
  --violet-bright: #9b54ff;
  --violet-deep: #4a05b5;
  --lilac: #cbb6ea;
  --spark: #ffc24a;          /* accento giocoso, usato con parsimonia */
  --spark-soft: #fff0cc;

  --ink: #2a164e;            /* testo principale (viola-carbone, non nero) */
  --muted: #6a5e85;
  --muted-2: #9c92b5;

  --maxw: 1140px;
  --radius: 22px;
  --radius-sm: 14px;
  --shadow: 0 20px 45px -22px rgba(74, 5, 181, 0.45);
  --shadow-sm: 0 8px 22px -12px rgba(74, 5, 181, 0.35);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-back: cubic-bezier(0.34, 1.56, 0.64, 1);

  --font-display: "Bison", "Arial Narrow", system-ui, sans-serif;
  --font-body: "Circular Std", system-ui, -apple-system, sans-serif;
  --font-mono: "Bison", "Arial Narrow", system-ui, sans-serif;
  --font-podium: "Bison", "Arial Narrow", system-ui, sans-serif;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  font-size: 16px;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* soft lilac aura behind whole page */
body::before {
  content: "";
  position: fixed; inset: 0; z-index: -1;
  background:
    radial-gradient(60vw 40vw at 80% -5%, rgba(155, 84, 255, 0.16), transparent 60%),
    radial-gradient(50vw 40vw at -10% 30%, rgba(203, 182, 234, 0.25), transparent 60%);
}

img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

:focus-visible { outline: 3px solid var(--violet); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 22px; }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 22px 22px;
  border-bottom: 1px solid transparent;
  transition: padding 0.3s var(--ease), background 0.3s, border-color 0.3s, box-shadow 0.3s;
}
.nav.is-solid {
  padding: 12px 22px;
  background: rgba(245, 240, 255, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line-soft);
  box-shadow: var(--shadow-sm);
}

/* brand — logo colore fisso. Placca bianca stondata sopra l'hero (sfondo scuro), via su nav solid. */
.brand { display: inline-flex; align-items: center; position: relative; z-index: 60;
  background: #fff; border-radius: 14px; padding: 6px 12px;
  box-shadow: 0 8px 22px -10px rgba(0, 0, 0, 0.45);
  transition: background 0.3s, box-shadow 0.3s, padding 0.3s; }
.nav.is-solid .brand { background: transparent; box-shadow: none; padding: 6px 0; }
.brand__logo { height: 42px; width: auto; display: block; }

/* link centrati */
.nav__links { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: flex; align-items: center; gap: 30px; }
.nav__links a { font-family: var(--font-display); font-weight: 700; font-size: 19px; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255, 255, 255, 0.82); transition: color 0.2s var(--ease); }
.nav__links a:hover { color: #fff; }
.nav.is-solid .nav__links a { color: var(--muted); }
.nav.is-solid .nav__links a:hover { color: var(--violet); }
.nav__cta--menu { display: none; }

/* cluster destro */
.nav__right { display: flex; align-items: center; gap: 14px; position: relative; z-index: 60; }
.nav__cta--bar {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-display); font-weight: 700; font-size: 15px; letter-spacing: 0.1em; text-transform: uppercase;
  color: #fff; padding: 12px 24px; border: 2px solid var(--violet); border-radius: 999px;
  transition: background 0.2s, border-color 0.2s, color 0.3s;
}
.nav__cta--bar { font-size: 16px; }
.nav__cta--bar:hover { background: var(--violet); border-color: var(--violet); }
.nav__cta--bar .ico-arrow { width: 15px; height: 15px; transition: transform 0.2s var(--ease); }
.nav__cta--bar:hover .ico-arrow { transform: translate(2px, -2px); }
.nav.is-solid .nav__cta--bar { color: #fff; background: var(--violet); border-color: var(--violet); border-radius: 999px; }
.nav.is-solid .nav__cta--bar:hover { background: var(--violet-deep); border-color: var(--violet-deep); }

.nav__toggle { display: none; width: 44px; height: 44px; flex-direction: column; align-items: flex-end; justify-content: center; gap: 5px; background: none; border: 0; cursor: pointer; padding: 10px; }
.nav__toggle span { height: 2px; background: #fff; border-radius: 3px; transition: transform 0.3s var(--ease), opacity 0.2s, width 0.3s, background 0.3s; }
.nav__toggle span:nth-child(1) { width: 24px; }
.nav__toggle span:nth-child(2) { width: 24px; }
.nav__toggle span:nth-child(3) { width: 16px; }
.nav.is-solid .nav__toggle span { background: var(--ink); }
.nav__toggle[aria-expanded="true"] span:nth-child(1) { width: 24px; transform: translateY(7px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { width: 24px; transform: translateY(-7px) rotate(-45deg); }
/* menu mobile aperto: forza brand + X bianchi sopra l'overlay scuro */
.nav:has(.nav__links.is-open) .nav__toggle span { background: #fff; }
/* menu aperto: togli backdrop-filter dalla nav, altrimenti diventa containing-block
   e l'overlay fixed si rimpicciolisce alla barra (menu compattato dopo lo scroll) */
.nav:has(.nav__links.is-open) {
  background: transparent !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  box-shadow: none !important;
  border-color: transparent !important;
}
/* blocco scroll del body quando il menu è aperto */
body.nav-open { overflow: hidden; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 15px 28px;
  font-family: var(--font-display); font-size: 16px; font-weight: 600; letter-spacing: 0.01em;
  border-radius: 999px; cursor: pointer; border: 2px solid transparent;
  transition: transform 0.18s var(--ease-back), background 0.2s, border-color 0.2s, box-shadow 0.25s;
  min-height: 50px;
}
.btn:active { transform: translateY(1px) scale(0.98); }
.btn--primary { background: var(--violet); color: #fff; box-shadow: 0 14px 30px -12px rgba(110, 6, 255, 0.7); }
.btn--primary:hover { background: var(--violet-deep); transform: translateY(-3px); box-shadow: 0 20px 38px -12px rgba(110, 6, 255, 0.8); }
.btn--ghost { background: #fff; color: var(--violet-deep); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--violet); background: var(--surface-2); transform: translateY(-3px); }
.btn__arrow { transition: transform 0.2s var(--ease); }
.btn--ghost:hover .btn__arrow { transform: translateX(4px); }
.btn--block { width: 100%; }

/* ============================================================
   SHARED TYPO
   ============================================================ */
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-body); font-weight: 600; font-size: 13.5px;
  color: var(--violet-deep);
  background: var(--surface-2);
  border: 1px solid var(--line);
  padding: 8px 15px; border-radius: 999px;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-mono); font-size: clamp(17px, 2.2vw, 22px); letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--violet); font-weight: 700; margin-bottom: 22px;
}
.eyebrow span { color: var(--spark); }
.eyebrow--center { display: flex; justify-content: center; }

.h2 { font-family: var(--font-display); font-weight: 600; font-size: clamp(2rem, 5vw, 3.2rem); line-height: 1.06; letter-spacing: -0.01em; color: var(--ink); }
.h2--big { font-size: clamp(2.4rem, 7vw, 4.6rem); font-weight: 700; }
.h2--center { text-align: center; }

.lead { color: var(--muted); font-size: clamp(1.02rem, 2vw, 1.18rem); max-width: 52ch; }
.lead--center { margin-inline: auto; text-align: center; }

.section { position: relative; padding: clamp(64px, 10vw, 120px) 0; z-index: 2; }
.section--alt { background: var(--bg-2); }
section[id] { scroll-margin-top: 76px; }

.lead-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: end; margin-bottom: 52px; }

/* ============================================================
   HERO
   ============================================================ */
.font-podium { font-family: var(--font-podium); }

.hero {
  position: relative; min-height: 100dvh;
  display: flex; align-items: center;
  padding: 110px 22px 96px; overflow: hidden; isolation: isolate; color: #fff;
}
.hero__media { position: absolute; inset: 0; z-index: -2; background: radial-gradient(125% 100% at 72% 0%, #2a1758 0%, #170b35 45%, #0a0518 100%); }
.hero__media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(120deg, rgba(110, 6, 255, 0.34), rgba(20, 8, 45, 0.05) 48%, rgba(255, 194, 74, 0.12));
  background-size: 200% 200%; animation: drift 18s ease-in-out infinite;
}
@keyframes drift { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
.hero__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -1; }
.hero__overlay {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(8, 4, 20, 0.85) 0%, rgba(8, 4, 20, 0.55) 45%, rgba(8, 4, 20, 0.3) 100%),
    linear-gradient(180deg, rgba(8, 4, 20, 0.5), rgba(8, 4, 20, 0.2) 30%, rgba(8, 4, 20, 0.7));
}

.hero__inner { width: 100%; max-width: var(--maxw); margin-inline: auto; position: relative; z-index: 2; }

.hero__tagline { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-body); font-size: clamp(11px, 1.4vw, 13px); letter-spacing: 0.3em; text-transform: uppercase; color: rgba(255, 255, 255, 0.7); margin-bottom: 26px; }
.ico-scope { width: 16px; height: 16px; flex-shrink: 0; }

.hero__title { font-weight: 700; text-transform: uppercase; line-height: 0.92; letter-spacing: -0.01em; }
.hero__title span { display: block; font-size: clamp(2.8rem, 8vw, 7rem); }
.hero__title--accent { color: var(--violet-bright); }

.hero__sub { color: rgba(255, 255, 255, 0.72); font-family: var(--font-body); font-size: clamp(0.95rem, 1.7vw, 1.08rem); line-height: 1.6; max-width: 32rem; margin-top: 26px; }
.hero__sub b { color: #fff; font-weight: 700; }

.hero__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 26px; margin-top: 36px; }
.hero__btn {
  display: inline-flex; align-items: center; gap: 10px; background: transparent; color: #fff;
  border: 2px solid var(--violet); border-radius: 999px;
  font-family: var(--font-display); font-weight: 700; font-size: clamp(13px, 1.5vw, 15px); letter-spacing: 0.1em; text-transform: uppercase;
  padding: 15px 28px; transition: background 0.2s, color 0.2s, transform 0.2s var(--ease-back), box-shadow 0.25s;
}
.hero__btn:hover { background: var(--violet); transform: translateY(-2px); box-shadow: 0 16px 32px -14px rgba(110, 6, 255, 0.8); }
.hero__btn .ico-arrow { width: 16px; height: 16px; transition: transform 0.2s var(--ease); }
.hero__btn:hover .ico-arrow { transform: translate(2px, -2px); }
.hero__badge { display: flex; align-items: center; gap: 11px; color: rgba(255, 255, 255, 0.6); }
.hero__badge .ico-badge { width: 30px; height: 30px; color: rgba(255, 255, 255, 0.5); flex-shrink: 0; }
.hero__badge span { font-family: var(--font-body); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; line-height: 1.35; }

.hero__stats { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 12px 34px; margin-top: 36px; }
.hero__stats li { display: inline-flex; align-items: center; gap: 9px; font-family: var(--font-display); font-weight: 700; font-size: clamp(1.05rem, 1.7vw, 1.45rem); letter-spacing: 0.04em; text-transform: uppercase; color: #fff; line-height: 1; }

.hero__scroll { position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%); width: 26px; height: 42px; border: 2px solid rgba(255, 255, 255, 0.3); border-radius: 14px; display: flex; justify-content: center; padding-top: 8px; z-index: 2; }
.hero__scroll span { width: 4px; height: 8px; border-radius: 3px; background: #fff; animation: scrolldot 1.8s var(--ease) infinite; }
@keyframes scrolldot { 0% { opacity: 0; transform: translateY(-4px); } 40% { opacity: 1; } 80%, 100% { opacity: 0; transform: translateY(10px); } }

/* entrata sfalsata hero */
@keyframes fade-up { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: none; } }
.fade-up { opacity: 0; animation: fade-up 0.8s var(--ease) forwards; }
.fade-up--1 { animation-delay: 0.2s; }
.fade-up--2 { animation-delay: 0.4s; }
.fade-up--3 { animation-delay: 0.6s; }
.fade-up--4 { animation-delay: 0.8s; }

/* ============================================================
   VALUES
   ============================================================ */
.values { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.value { padding: 28px 24px; background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--radius); box-shadow: var(--shadow-sm); transition: transform 0.3s var(--ease-back), box-shadow 0.3s; }
.value:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.value__icon { display: grid; place-items: center; width: 52px; height: 52px; font-size: 26px; border-radius: 16px; background: var(--surface-2); margin-bottom: 16px; }
.value h3 { font-family: var(--font-display); font-weight: 600; font-size: 1.22rem; margin-bottom: 6px; color: var(--ink); }
.value p { color: var(--muted); font-size: 0.95rem; }

/* ============================================================
   STEPS
   ============================================================ */
.steps { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 8px; }
.step { position: relative; padding: 30px 26px 32px; background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--radius); box-shadow: var(--shadow-sm); transition: transform 0.3s var(--ease-back), box-shadow 0.3s; }
.step:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.step__n { display: grid; place-items: center; width: 46px; height: 46px; font-family: var(--font-display); font-weight: 700; font-size: 1.4rem; color: #fff; background: var(--violet); border-radius: 14px; margin-bottom: 16px; box-shadow: 0 8px 16px -8px rgba(110, 6, 255, 0.8); }
.step:nth-child(3n+2) .step__n { background: var(--spark); color: var(--ink); box-shadow: 0 8px 16px -8px rgba(255, 194, 74, 0.9); }
.step h3 { font-family: var(--font-display); font-weight: 600; font-size: 1.3rem; margin-bottom: 7px; color: var(--ink); }
.step p { color: var(--muted); font-size: 0.96rem; }

/* ============================================================
   TEAM (4 riquadri in Chi siamo)
   ============================================================ */
.members { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 8px; }
.member { background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 32px 24px; text-align: center; transition: transform 0.3s var(--ease-back), box-shadow 0.3s; }
.member:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.member__photo { display: grid; place-items: center; width: 104px; height: 104px; margin: 0 auto 18px; border-radius: 50%; object-fit: cover; font-family: var(--font-display); font-size: 2.1rem; line-height: 1; color: #fff; background: linear-gradient(140deg, var(--violet), var(--violet-bright)); box-shadow: 0 12px 26px -12px rgba(110, 6, 255, 0.85); border: 3px solid #fff; }
img.member__photo { display: block; }
.member__photo--empty { background: var(--surface-2); color: var(--violet); border: 2px dashed var(--violet); box-shadow: none; }
.member h3 { font-family: var(--font-display); font-weight: 700; font-size: 1.35rem; color: var(--ink); letter-spacing: 0.01em; }
.member__role { font-family: var(--font-display); font-size: 0.95rem; font-weight: 700; color: var(--violet); text-transform: uppercase; letter-spacing: 0.05em; margin-top: 6px; }
.member__bio { font-size: 0.92rem; color: var(--muted); margin-top: 11px; }

/* ============================================================
   COME FUNZIONA — card impilate (stile "project")
   ============================================================ */
.stack { max-width: var(--maxw); margin: 44px auto 0; padding: 0 22px; display: flex; flex-direction: column; gap: 26px; }
.pcard {
  position: sticky;
  background: #140a2e; border: 2px solid var(--violet); border-radius: 34px;
  padding: clamp(26px, 4vw, 48px);
  display: flex; align-items: flex-start; gap: clamp(18px, 3.5vw, 44px);
  color: #fff; box-shadow: 0 34px 70px -34px rgba(20, 10, 46, 0.95);
}
.pcard:nth-child(1) { top: 92px; }
.pcard:nth-child(2) { top: 116px; }
.pcard:nth-child(3) { top: 140px; }
.pcard:nth-child(4) { top: 164px; }
.pcard:nth-child(5) { top: 188px; }
.pcard:nth-child(6) { top: 212px; }
.pcard__n { font-family: var(--font-display); font-size: clamp(3.4rem, 9vw, 8rem); line-height: 0.8; color: transparent; -webkit-text-stroke: 2px var(--violet-bright); flex-shrink: 0; }
.pcard__body { padding-top: 8px; }
.pcard__label { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--violet-bright); }
.pcard__title { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.8rem, 4.5vw, 3rem); color: #fff; margin: 6px 0 12px; line-height: 1; }
.pcard__desc { color: rgba(255, 255, 255, 0.74); font-size: clamp(0.95rem, 1.6vw, 1.1rem); max-width: 58ch; line-height: 1.6; }

/* ============================================================
   POZZALLO
   ============================================================ */
.pozzallo { text-align: center; overflow: hidden; }
.pozzallo::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(60vw 50vw at 50% 120%, rgba(110, 6, 255, 0.14), transparent 60%); }
.pozzallo__inner { position: relative; z-index: 2; }
.pozzallo .h2 { margin: 12px 0 24px; }
.tags { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 34px; }
.tags span { font-family: var(--font-body); font-weight: 600; font-size: 14px; color: var(--violet-deep); padding: 10px 18px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }

/* ============================================================
   EDIZIONI
   ============================================================ */
.editions { display: grid; gap: 18px; }
.edition { position: relative; border: 1px solid var(--line-soft); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-sm); overflow: hidden; transition: box-shadow 0.3s, border-color 0.3s, transform 0.3s var(--ease); }
.edition:hover { box-shadow: var(--shadow); }
.edition.is-open { border-color: var(--violet); }

.edition__headwrap { margin: 0; font: inherit; font-weight: inherit; }
.edition__head { width: 100%; text-align: left; cursor: pointer; display: grid; grid-template-columns: auto 1fr auto auto; align-items: center; gap: 22px; padding: 26px; background: none; border: 0; color: inherit; font: inherit; }
.edition__index { font-family: var(--font-mono); font-size: 13px; color: var(--violet); letter-spacing: 0.04em; white-space: nowrap; }
.edition__main { min-width: 0; display: flex; flex-direction: column; align-items: flex-start; }
.edition__status { display: inline-block; font-family: var(--font-body); font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; padding: 4px 11px; border-radius: 999px; margin-bottom: 10px; }
.edition__status--closed { color: var(--muted); background: var(--surface-2); }
.edition__status--open { color: #fff; background: var(--violet); box-shadow: 0 6px 14px -6px rgba(110, 6, 255, 0.9); }
.edition__status--soon { color: var(--ink); background: var(--spark); }
.edition__title { display: block; font-family: var(--font-display); font-weight: 600; font-size: clamp(1.3rem, 3.2vw, 1.9rem); line-height: 1.1; color: var(--ink); }
.edition__sub { display: block; color: var(--muted); font-size: 0.98rem; margin-top: 3px; }
.edition__meta { display: flex; flex-direction: column; gap: 2px; text-align: right; font-family: var(--font-mono); font-size: 12.5px; color: var(--muted); white-space: nowrap; }
.edition__meta b { color: var(--ink); font-weight: 700; }
.edition__toggle { width: 40px; height: 40px; flex-shrink: 0; border-radius: 50%; background: var(--surface-2); display: grid; place-items: center; color: var(--violet); font-size: 22px; line-height: 1; transition: transform 0.3s var(--ease-back), background 0.3s, color 0.3s; }
.edition.is-open .edition__toggle { transform: rotate(45deg); background: var(--violet); color: #fff; }

.edition__body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.4s var(--ease); }
.edition.is-open .edition__body { grid-template-rows: 1fr; }
.edition__body-inner { overflow: hidden; }
.edition__detail { padding: 0 26px 28px; color: var(--muted); max-width: 62ch; }
.edition__detail p { margin-bottom: 16px; }
.edition__meta-row { font-family: var(--font-mono); font-size: 12.5px; color: var(--muted); margin-bottom: 14px; }
.edition__meta-row b { color: var(--ink); }
@media (min-width: 701px) { .edition__meta-row { display: none; } }

/* ============================================================
   GALLERIA / SOCIAL PROOF
   ============================================================ */
.stats { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 40px; }
.stats li { background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 24px 22px; display: flex; flex-direction: column; gap: 4px; }
.stats b { font-family: var(--font-display); font-weight: 700; font-size: clamp(2rem, 5vw, 2.8rem); line-height: 1; color: var(--violet); }
.stats span { font-size: 0.92rem; color: var(--muted); }

.gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 1fr; gap: 14px; margin-bottom: 44px; }
.gallery__item { position: relative; aspect-ratio: 1; border-radius: var(--radius-sm); overflow: hidden; background: var(--surface-2); border: 1px solid var(--line-soft); }
.gallery__item--wide { grid-column: span 2; aspect-ratio: 2 / 1; }
.gallery__item img, .gallery__item video { width: 100%; height: 100%; object-fit: cover; }
.gallery__ph { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; color: var(--muted-2); text-align: center; padding: 12px; }
.gallery__ph span { font-size: 24px; }
.gallery__ph small { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.04em; }
.gallery__item--video .gallery__play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 54px; height: 54px; border-radius: 50%; background: rgba(255, 255, 255, 0.9); color: var(--violet); display: grid; place-items: center; font-size: 20px; box-shadow: var(--shadow-sm); }

.quotes { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.quote { margin: 0; background: var(--surface); border: 1px solid var(--line-soft); border-left: 4px solid var(--violet); border-radius: var(--radius-sm); box-shadow: var(--shadow-sm); padding: 24px 26px; }
.quote blockquote { margin: 0 0 12px; font-family: var(--font-display); font-weight: 500; font-size: 1.12rem; line-height: 1.4; color: var(--ink); }
.quote figcaption { font-size: 13px; color: var(--muted); font-weight: 600; }

/* ============================================================
   TEAM
   ============================================================ */
.people { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.person { background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 30px 26px; text-align: center; transition: transform 0.3s var(--ease-back), box-shadow 0.3s; }
.person:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.person__avatar { display: grid; place-items: center; width: 76px; height: 76px; margin: 0 auto 16px; border-radius: 50%; font-family: var(--font-display); font-weight: 700; font-size: 1.5rem; color: #fff; background: linear-gradient(140deg, var(--violet), var(--violet-bright)); box-shadow: 0 10px 22px -10px rgba(110, 6, 255, 0.8); }
.person:nth-child(2) .person__avatar { background: linear-gradient(140deg, var(--spark), #ffa53b); color: var(--ink); }
.person h3 { font-family: var(--font-display); font-weight: 600; font-size: 1.25rem; color: var(--ink); }
.person__role { font-size: 0.9rem; font-weight: 600; color: var(--violet); margin-top: 2px; }
.person__bio { font-size: 0.93rem; color: var(--muted); margin-top: 10px; }

/* ============================================================
   CONTATTI
   ============================================================ */
.contatti__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.contatti .lead { margin-bottom: 30px; }
.contact-list { list-style: none; padding: 0; display: grid; gap: 18px; }
.contact-list li { display: flex; flex-direction: column; gap: 4px; }
.contact-list__k { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.08em; color: var(--muted-2); text-transform: uppercase; }
.contact-list a, .contact-list li > span:last-child { font-size: 1.05rem; font-weight: 600; }
.contact-list a { color: var(--violet); width: fit-content; border-bottom: 2px solid transparent; transition: border-color 0.2s; }
.contact-list a:hover { border-color: var(--violet); }
.contact-list__social { display: flex; flex-wrap: wrap; gap: 6px 18px; }

.form { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; display: grid; gap: 18px; box-shadow: var(--shadow); }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 6px; background: var(--bg); border: 1.5px solid var(--line-soft); border-radius: 14px; }
.seg__opt { position: relative; cursor: pointer; }
.seg__opt input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.seg__opt span { display: block; text-align: center; padding: 11px 10px; border-radius: 10px; font-size: 13.5px; font-weight: 600; color: var(--muted); transition: background 0.2s, color 0.2s, box-shadow 0.2s; }
.seg__opt input:checked + span { background: var(--violet); color: #fff; box-shadow: var(--shadow-sm); }
.seg__opt input:focus-visible + span { outline: 3px solid var(--violet); outline-offset: 2px; }

/* ============================================================
   STICKY CTA
   ============================================================ */
.sticky-cta {
  position: fixed; z-index: 60; left: 50%; bottom: 20px;
  transform: translate(-50%, 140%);
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px; border-radius: 999px;
  font-family: var(--font-display); font-weight: 600; font-size: 16px; color: #fff;
  background: var(--violet); box-shadow: 0 16px 34px -10px rgba(110, 6, 255, 0.75);
  transition: transform 0.4s var(--ease-back), background 0.2s;
}
.sticky-cta.is-visible { transform: translate(-50%, 0); }
body.nav-open .sticky-cta { transform: translate(-50%, 140%); }
.sticky-cta:hover { background: var(--violet-deep); }
.sticky-cta__arrow { transition: transform 0.2s var(--ease); }
.sticky-cta:hover .sticky-cta__arrow { transform: translateX(4px); }
.field { display: grid; gap: 7px; }
.field--row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field label { font-family: var(--font-body); font-size: 13px; font-weight: 600; color: var(--ink); }
.field label span { color: var(--violet); }
.form input, .form select, .form textarea { width: 100%; font-family: var(--font-body); font-size: 16px; color: var(--ink); background: var(--bg); border: 1.5px solid var(--line-soft); border-radius: 12px; padding: 13px 14px; min-height: 50px; transition: border-color 0.2s, box-shadow 0.2s, background 0.2s; }
.form textarea { min-height: 92px; resize: vertical; line-height: 1.5; }
.form input::placeholder, .form textarea::placeholder { color: var(--muted-2); }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--violet); background: #fff; box-shadow: 0 0 0 4px rgba(110, 6, 255, 0.12); }
.form input:user-invalid { border-color: #e0245e; }
.form select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236e06ff' stroke-width='1.8'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px; }
.form__note { font-family: var(--font-body); font-size: 13px; color: var(--muted-2); text-align: center; }
.form__note.is-ok { color: var(--violet); font-weight: 600; }

/* MailerLite embedded form — riveste la struttura ML nel tema del sito */
.wl, .wl .ml-form-embedWrapper, .wl .ml-form-embedBody { display: block; width: 100%; max-width: none; margin: 0; padding: 0; background: none; border: 0; box-shadow: none; }
.wl .ml-form-embedSubmit { position: relative; margin-top: 18px; }
.wl .ml-form-embedSubmit .loading { position: absolute; inset: 0; display: inline-flex; align-items: center; justify-content: center; }
.wl .form__note { margin-top: 12px; }
.wl .ml-form-successContent h4 { font-family: var(--font-display); text-transform: uppercase; letter-spacing: 0.02em; color: var(--violet-deep); font-size: 20px; margin: 0 0 8px; }
.wl .ml-form-successContent p { color: var(--muted); font-size: 0.95rem; line-height: 1.5; margin: 0; }
.wl .ml-form-embedSubmitLoad { display: inline-block; width: 20px; height: 20px; }
.wl .ml-form-embedSubmitLoad:after { content: " "; display: block; width: 11px; height: 11px; margin: 1px; border-radius: 50%; border: 3px solid #fff; border-color: #fff #fff #fff transparent; animation: ml-spin 1s linear infinite; }
@keyframes ml-spin { to { transform: rotate(360deg); } }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); border: 0; }

/* box "iscrizioni non disponibili" sopra la lista d'attesa */
.closed { background: var(--surface-2); border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px; margin-bottom: 22px; }
.closed__badge { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-display); font-weight: 700; font-size: 15px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--violet-deep); }
.closed__txt { margin-top: 9px; color: var(--muted); font-size: 0.95rem; line-height: 1.5; }
.closed__txt b { color: var(--ink); font-weight: 700; }
/* spaziatura interna della lista d'attesa (campo - bottone - nota) */
#waitlistForm { display: grid; gap: 18px; }
/* respiro tra titolo contatti e testo */
.contatti__intro .h2 { margin-bottom: 18px; }

/* bottone "sfoglia le foto" dentro le edizioni */
.edition__photos { display: inline-flex; align-items: center; gap: 7px; margin-top: 4px; font-family: var(--font-display); font-weight: 700; font-size: 13px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--violet); background: transparent; border: 2px solid var(--line); border-radius: 999px; padding: 9px 17px; transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.18s var(--ease-back); }
.edition__photos:hover { background: var(--violet); border-color: var(--violet); color: #fff; transform: translateY(-2px); }

/* ============================================================
   FAQ
   ============================================================ */
.faq__wrap { max-width: 800px; }
.faq__wrap .h2 { margin-bottom: 40px; }
.faq { display: grid; gap: 14px; }
.faq__item { background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--radius-sm); box-shadow: var(--shadow-sm); overflow: hidden; transition: border-color 0.3s; }
.faq__item.is-open { border-color: var(--violet); }
.faq__q { width: 100%; text-align: left; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 22px 24px; background: none; border: 0; color: var(--ink); font-family: var(--font-display); font-weight: 600; font-size: 1.08rem; }
.faq__icon { flex-shrink: 0; width: 30px; height: 30px; border-radius: 50%; background: var(--surface-2); color: var(--violet); display: grid; place-items: center; font-size: 20px; line-height: 1; transition: transform 0.3s var(--ease-back), background 0.3s, color 0.3s; }
.faq__item.is-open .faq__icon { transform: rotate(45deg); background: var(--violet); color: #fff; }
.faq__a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.35s var(--ease); }
.faq__item.is-open .faq__a { grid-template-rows: 1fr; }
.faq__a-inner { overflow: hidden; }
.faq__a p { padding: 0 24px 24px; color: var(--muted); }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { position: relative; z-index: 2; background: var(--surface-2); border-top: 1px solid var(--line); }
.footer__inner { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; padding: 56px 22px 40px; max-width: var(--maxw); margin-inline: auto; }
.footer__brand { display: flex; gap: 16px; align-items: flex-start; }
.footer__brand img { width: 60px; height: 60px; }
.footer__brand p { font-size: 14px; color: var(--muted); line-height: 1.7; }
.footer__brand strong { font-family: var(--font-display); font-size: 17px; color: var(--ink); }
.footer__cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 30px; }
.footer__cols > div { display: flex; flex-direction: column; gap: 10px; }
.footer__h { font-family: var(--font-display); font-weight: 600; font-size: 15px; color: var(--ink); margin-bottom: 2px; }
.footer__cols a, .footer__plain { font-size: 14px; color: var(--muted); transition: color 0.2s; }
.footer__cols a:hover { color: var(--violet); }
.footer__base { border-top: 1px solid var(--line); padding: 18px 22px; max-width: var(--maxw); margin-inline: auto; display: flex; justify-content: space-between; align-items: center; gap: 14px; font-size: 13px; color: var(--muted-2); }
.footer__top { color: var(--violet); font-weight: 600; }

/* ============================================================
   REVEAL
   ============================================================ */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 980px) {
  .values { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .members { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .lead-grid { grid-template-columns: 1fr; gap: 16px; align-items: start; }
  .contatti__grid { grid-template-columns: 1fr; gap: 38px; }
  .footer__inner { grid-template-columns: 1fr; gap: 30px; }
}
/* nav: sotto 880px → hamburger + overlay fullscreen (stile VANGUARD) */
@media (max-width: 880px) {
  .nav__cta--bar { display: none; }
  .nav__toggle { display: flex; }
  .nav__links {
    position: fixed; inset: 0; left: 0; top: 0; transform: none;
    flex-direction: column; align-items: flex-start; justify-content: center; gap: 4px;
    padding: 100px 30px 48px;
    background: rgba(8, 4, 20, 0.97);
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    opacity: 0; visibility: hidden; transition: opacity 0.45s var(--ease), visibility 0.45s;
    z-index: 40;
  }
  .nav__links.is-open { opacity: 1; visibility: visible; }
  .nav__links a {
    font-family: var(--font-podium); font-size: clamp(2.2rem, 9vw, 3.4rem); font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.01em; color: #fff; padding: 7px 0;
    opacity: 0; transform: translateY(20px);
    transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
  }
  .nav__links.is-open a { opacity: 1; transform: none; }
  .nav__links.is-open a:nth-child(1) { transition-delay: 0.10s; }
  .nav__links.is-open a:nth-child(2) { transition-delay: 0.18s; }
  .nav__links.is-open a:nth-child(3) { transition-delay: 0.26s; }
  .nav__links.is-open a:nth-child(4) { transition-delay: 0.34s; }
  .nav__links.is-open a:nth-child(5) { transition-delay: 0.42s; }
  .nav__links a:hover { color: var(--violet-bright); }
  .nav.is-solid .nav__links a { color: #fff; }
  .nav__cta--menu {
    display: inline-flex !important; align-items: center; margin-top: 16px;
    background: var(--violet); color: #fff !important; border-radius: 999px;
    padding: 14px 26px !important; font-family: var(--font-display) !important; font-weight: 700;
    font-size: 15px !important; line-height: 1 !important; letter-spacing: 0.08em; text-transform: uppercase;
    opacity: 0; transform: translateY(20px); transition: opacity 0.5s var(--ease) 0.5s, transform 0.5s var(--ease) 0.5s;
  }
  .nav__links.is-open .nav__cta--menu { opacity: 1; transform: none; }
}
@media (max-width: 760px) {
  .edition__head { gap: 14px; padding: 22px 20px; }
  .edition__meta { display: none; }
  .people { grid-template-columns: 1fr; }
  .quotes { grid-template-columns: 1fr; }
  .pcard { flex-direction: column; gap: 10px; border-radius: 26px; }
  .pcard:nth-child(n) { top: 80px; }
  .pcard__n { font-size: 3.6rem; }

  /* hero mobile: riempi lo spazio, ingrandisci, niente mouse */
  .hero { padding: 84px 20px 36px; }
  .hero__inner { display: flex; flex-direction: column; justify-content: center; min-height: calc(100dvh - 120px); }
  .hero__title span { font-size: clamp(3.4rem, 15.5vw, 5.4rem); }
  .hero__sub { font-size: 1.08rem; line-height: 1.5; margin-top: 22px; max-width: none; }
  .hero__cta { margin-top: 28px; gap: 14px; }
  .hero__btn { width: 100%; justify-content: center; }
  .hero__stats { margin-top: 30px; gap: 12px 22px; }
  .hero__stats li { font-size: 1.05rem; }
  .hero__scroll { display: none; }
  .eyebrow { font-size: 19px; }
}
@media (max-width: 480px) {
  .values, .steps, .members { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr; }
  .field--row { grid-template-columns: 1fr; }
  .hero__actions .btn { width: 100%; }
  .footer__cols { grid-template-columns: 1fr; }
  .footer__base { flex-direction: column; }
  .sticky-cta { font-size: 15px; padding: 13px 20px; }
}

/* schermi grandi (1440px+, ottimizzato per 1920x1080) */
@media (min-width: 1440px) {
  :root { --maxw: 1320px; }
  .hero { padding: 92px 40px 64px; }
  .hero__title span { font-size: clamp(2.8rem, 5.6vw, 6rem); }
  .hero__sub { font-size: 1.12rem; max-width: 40rem; margin-top: 22px; }
  .hero__cta { margin-top: 28px; }
}

/* ============================================================
   GDPR — consenso, cookie banner, pagina legale
   ============================================================ */
.consent { display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: start; text-align: left; cursor: pointer; }
.consent input[type="checkbox"] { width: 18px; height: 18px; min-height: 0; margin-top: 2px; accent-color: var(--violet); cursor: pointer; }
.consent span { font-family: var(--font-body); font-size: 12.5px; line-height: 1.45; color: var(--muted); }
.consent span span[aria-hidden] { color: var(--violet); }
.consent a { color: var(--violet); text-decoration: underline; }

.cookie-banner {
  position: fixed; left: 50%; bottom: 18px; transform: translate(-50%, 160%);
  z-index: 80; width: min(680px, calc(100% - 28px));
  display: flex; align-items: center; gap: 16px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 16px; padding: 16px 18px;
  box-shadow: 0 22px 50px -16px rgba(20, 10, 46, 0.4);
  transition: transform 0.4s var(--ease-back);
}
.cookie-banner.is-visible { transform: translate(-50%, 0); }
.cookie-banner__txt { margin: 0; font-family: var(--font-body); font-size: 13px; line-height: 1.5; color: var(--muted); }
.cookie-banner__txt a { color: var(--violet); text-decoration: underline; }
.cookie-banner__btn { flex: none; white-space: nowrap; padding: 11px 20px; font-size: 14px; }
@media (max-width: 560px) {
  .cookie-banner { flex-direction: column; align-items: stretch; text-align: left; }
  .cookie-banner__btn { width: 100%; }
}

/* pagina privacy/legale */
.legal-page { background: var(--bg); }
.legal { padding: 120px 22px 80px; }
.legal__wrap { max-width: 800px; margin: 0 auto; }
.legal__title { font-family: var(--font-display); font-size: clamp(2rem, 5vw, 3rem); line-height: 1.05; color: var(--ink); margin: 8px 0 6px; }
.legal__updated { font-family: var(--font-body); font-size: 13px; color: var(--muted-2); margin: 0 0 28px; }
.legal h2 { font-family: var(--font-display); font-size: 1.35rem; color: var(--ink); margin: 34px 0 10px; }
.legal p, .legal li { font-family: var(--font-body); font-size: 15.5px; line-height: 1.65; color: var(--muted); }
.legal p { margin: 0 0 14px; }
.legal ul { margin: 0 0 14px; padding-left: 22px; }
.legal li { margin-bottom: 8px; }
.legal a { color: var(--violet); text-decoration: underline; }
.legal strong { color: var(--ink); }
.legal__todo { background: var(--surface-2); border: 1px dashed var(--line); border-radius: 12px; padding: 12px 16px; font-size: 14px; }
.legal__back { margin-top: 36px; }
.footer__base--legal { justify-content: space-between; }
.footer__base-links { display: inline-flex; gap: 20px; align-items: center; flex-wrap: wrap; }

/* ============================================================
   REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
  .hero__video { display: none; }
}
