/* ═══════════════════════════════════════════════════════════════
   «Momenti di Colore» — design system del sito (versione scuola)
   Bianco · testo grigio · i colori della margherita, ovunque
   Ogni sezione ha un colore (--c) e la sua tinta pastello (--t)
   ═══════════════════════════════════════════════════════════════ */

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

:root {
  --bg: #FFFFFF;
  --ink: #4B4754;          /* titoli: grigio, mai nero */
  --ink-soft: #625D6B;     /* testo (≥ 4.5:1 su tutte le bande) */
  --ink-mute: #6A6574;     /* didascalie ed etichette */
  --line: #ECE9F1;

  /* i petali della margherita */
  --rosso:   #E5484D;
  --arancio: #F2892B;
  --giallo:  #F3BE3A;
  --verde:   #62B85A;
  --azzurro: #2FB3C6;
  --blu:     #3F7FD6;
  --viola:   #8B5CF6;
  --rosa:    #E85DA8;

  /* le loro tinte pastello */
  --t-rosso:   #FDE9E9;
  --t-arancio: #FEEFE0;
  --t-giallo:  #FFF6D9;
  --t-verde:   #E5F6E2;
  --t-azzurro: #DFF5F8;
  --t-blu:     #E2ECFB;
  --t-viola:   #EDE6FD;
  --t-rosa:    #FCE4F1;

  --c: var(--viola);
  --t: var(--t-viola);

  --display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --body: "Inter", -apple-system, "Helvetica Neue", Arial, sans-serif;
  --wrap: 1140px;
  --radius: 18px;
}

/* ── base ─────────────────────────────────────────────────────── */

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

html { scroll-behavior: smooth; scroll-padding-top: 5.5rem; background: var(--bg); }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink-soft);
  font-family: var(--body);
  font-size: 1.04rem;
  line-height: 1.7;
  font-kerning: normal;
  font-optical-sizing: auto;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--t-giallo); color: var(--ink); }

img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { margin: 0; color: var(--ink); }
p { margin: 0; text-wrap: pretty; }
p + p { margin-top: 1em; }
a { color: var(--blu); }

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

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

.skip {
  position: absolute; left: 1rem; top: -3.5rem;
  background: var(--ink); color: #fff;
  padding: 0.55rem 1rem; border-radius: 0 0 8px 8px;
  text-decoration: none; font-size: 0.9rem; z-index: 100;
  transition: top 0.2s ease;
}
.skip:focus { top: 0; }

.wrap { width: min(var(--wrap), 100% - 3rem); margin-inline: auto; }

/* ── tipografia ───────────────────────────────────────────────── */

.eyebrow {
  display: flex; align-items: center; gap: 0.6rem;
  font: 600 0.8rem/1.4 var(--body);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 1.1rem;
}
/* il petalo: il segno ricorrente della pagina */
.petal {
  display: inline-block;
  width: 16px; height: 27px;
  border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
  background: var(--c);
  transform: rotate(-24deg);
  flex-shrink: 0;
}

h1 {
  font: 400 clamp(2.3rem, 4.6vw, 3.7rem)/1.1 var(--display);
  letter-spacing: -0.012em;
  text-wrap: balance;
}
h1 em { font-style: italic; font-weight: 460; }

/* la scatola di pastelli: righe nette, non sfumate */
.pastelli {
  background: linear-gradient(90deg,
    var(--rosso) 0 12.5%, var(--arancio) 0 25%, var(--giallo) 0 37.5%, var(--verde) 0 50%,
    var(--azzurro) 0 62.5%, var(--blu) 0 75%, var(--viola) 0 87.5%, var(--rosa) 0 100%);
}

h2 {
  font: 440 clamp(1.8rem, 3.4vw, 2.55rem)/1.14 var(--display);
  letter-spacing: -0.01em;
  text-wrap: balance;
}
h3 { font: 560 1.2rem/1.3 var(--display); }

.lede { margin-top: 1.1rem; font-size: 1.09rem; color: var(--ink-soft); max-width: 46ch; }
.mini-title {
  font: 600 0.78rem/1.4 var(--body);
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 1.2rem;
}

/* ── topbar ───────────────────────────────────────────────────── */

.topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.topbar-in {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem; padding-block: 0.7rem;
}
.brand img { width: auto; height: 54px; }

.nav { display: flex; align-items: center; gap: 1.4rem; }
.nav a {
  font: 500 0.92rem/1 var(--body);
  color: var(--ink);
  text-decoration: none;
  padding-block: 0.4rem;
  border-bottom: 2px solid transparent;
  transition: border-color 0.15s ease, color 0.15s ease;
}
.nav a:hover { border-bottom-color: var(--rosa); }
.nav a:nth-child(2):hover { border-bottom-color: var(--giallo); }
.nav a:nth-child(3):hover { border-bottom-color: var(--verde); }
.nav a:nth-child(4):hover { border-bottom-color: var(--azzurro); }
.nav a:nth-child(5):hover { border-bottom-color: var(--viola); }
.nav-cta {
  background: var(--giallo);
  color: var(--ink) !important;
  padding: 0.62rem 1.15rem !important;
  border-radius: 999px;
  border-bottom: none !important;
}
.nav-cta:hover { background: var(--arancio); }
.topbar .nav-cta-sm { display: none; }

.nav-toggle {
  display: none;
  background: none; border: 0; cursor: pointer;
  padding: 0.6rem 0.2rem 0.6rem 0.6rem;
}
.nav-toggle-bar { display: block; width: 22px; height: 2px; background: var(--ink); position: relative; }
.nav-toggle-bar::before, .nav-toggle-bar::after {
  content: ""; position: absolute; left: 0;
  width: 22px; height: 2px; background: var(--ink);
  transition: transform 0.25s ease, top 0.25s ease;
}
.nav-toggle-bar::before { top: -7px; }
.nav-toggle-bar::after { top: 7px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::after { top: 0; transform: rotate(-45deg); }

/* ── hero ─────────────────────────────────────────────────────── */

.hero {
  padding-block: clamp(3.2rem, 6.5vw, 5.5rem) clamp(3.2rem, 6.5vw, 5rem);
  background:
    radial-gradient(60% 55% at 0% 0%, var(--t-giallo), transparent 60%),
    radial-gradient(50% 50% at 100% 100%, var(--t-azzurro), transparent 60%),
    var(--bg);
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 11fr) minmax(0, 10fr);
  gap: clamp(2.5rem, 5vw, 4.5rem);
  align-items: center;
}
.hero h1 { max-width: 17ch; }
.hero-lede {
  margin-top: 1.5rem;
  font-size: clamp(1.05rem, 1.5vw, 1.15rem);
  line-height: 1.68;
  max-width: 52ch;
}
.hero-actions { margin-top: 2.1rem; display: flex; flex-wrap: wrap; gap: 0.9rem; }
.hero-sign { margin-top: clamp(2.4rem, 5vw, 3.4rem); }
.hero-sign p { font-size: 0.95rem; color: var(--ink-mute); }
.hero-sign strong { color: var(--ink); font-weight: 600; }

.brush-rule {
  display: block;
  width: 192px; height: 6px;
  margin-bottom: 1.1rem;
  border-radius: 3px;
  background: linear-gradient(90deg,
    var(--rosso) 0 12.5%, var(--arancio) 0 25%, var(--giallo) 0 37.5%, var(--verde) 0 50%,
    var(--azzurro) 0 62.5%, var(--blu) 0 75%, var(--viola) 0 87.5%, var(--rosa) 0 100%);
}

.js .hero-copy > * {
  opacity: 0;
  transform: translateY(14px);
  animation: rise 0.8s cubic-bezier(0.2, 0.6, 0.2, 1) forwards;
}
.js .hero-copy > *:nth-child(2) { animation-delay: 0.08s; }
.js .hero-copy > *:nth-child(3) { animation-delay: 0.16s; }
.js .hero-copy > *:nth-child(4) { animation-delay: 0.24s; }
.js .hero-copy > *:nth-child(5) { animation-delay: 0.32s; }
.js .tavola-wrap { opacity: 0; animation: rise 0.9s cubic-bezier(0.2, 0.6, 0.2, 1) 0.25s forwards; }
@keyframes rise { to { opacity: 1; transform: none; } }

/* ── la tavola interattiva (su bianco) ────────────────────────── */

.tavola-wrap { min-width: 0; }

.tavola {
  position: relative;
  aspect-ratio: 800 / 640;
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 24px 60px rgba(75, 71, 84, 0.13);
  touch-action: pan-y;
}
.tavola:focus-visible { outline-offset: -3px; }
@media (hover: hover) and (pointer: fine) { .tavola { cursor: none; } }

.tavola canvas, .tavola svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.tavola svg { pointer-events: none; }

/* i contorni "in rilievo" — ogni forma nel suo colore (scurito quanto basta), si disegnano da soli */
.tavola svg path {
  fill: none;
  stroke: var(--sc, #B9B3C4);
  stroke: color-mix(in srgb, var(--sc, #B9B3C4) 68%, var(--ink));
  stroke-width: 3;
  stroke-linecap: round;
  stroke-dasharray: 100 100;
  stroke-dashoffset: 100;
  filter: drop-shadow(0 1px 0 rgba(255, 255, 255, 0.9)) drop-shadow(0 2px 3px rgba(75, 71, 84, 0.16));
}
.tavola svg.drawn path { stroke-dashoffset: 0; transition: stroke-dashoffset 1.1s ease var(--d, 0s); }

/* il suggerimento: un post-it giallo in alto a destra */
.tavola-hint {
  position: absolute; right: 6%; top: 7%;
  padding: 0.65rem 0.95rem;
  text-align: right;
  font: 500 0.9rem/1.5 var(--body);
  letter-spacing: 0.02em;
  color: var(--ink);
  background: var(--t-giallo);
  border: 1px solid var(--giallo);
  border-radius: 6px;
  box-shadow: 0 8px 18px rgba(75, 71, 84, 0.12);
  transform: rotate(-2deg);
  pointer-events: none;
  animation: hint-breathe 2.6s ease-in-out infinite;
  transition: opacity 0.6s ease;
}
.tavola-hint.hide { opacity: 0; animation: none; }
@keyframes hint-breathe { 0%, 100% { opacity: 0.7; } 50% { opacity: 1; } }

.brush-cursor {
  position: absolute;
  width: 18px; height: 18px;
  border-radius: 50%;
  border: 1.5px solid rgba(75, 71, 84, 0.6);
  background: transparent;
  transform: translate(-50%, -50%);
  pointer-events: none;
  opacity: 0;
  transition: background-color 0.25s ease;
}
@media (hover: hover) and (pointer: fine) { .tavola:hover .brush-cursor { opacity: 1; } }
.brush-cursor.kb { opacity: 1; }
.tavola.touching .brush-cursor { opacity: 0; }

/* la cornice di mattoncini */
.cornice { position: absolute; inset: 0; pointer-events: none; }
.track { position: absolute; border: 1.5px dashed color-mix(in srgb, var(--giallo) 55%, #fff); border-radius: 6px; }
.ghost {
  position: absolute;
  border: 2px dashed var(--giallo);
  border-radius: 5px;
  background: var(--t-giallo);
  box-shadow: 0 0 16px rgba(243, 190, 58, 0.45);
  opacity: 0;
  transition: opacity 0.15s ease;
}
.ghost.on { opacity: 1; }

.brick {
  display: flex; align-items: center; justify-content: space-evenly;
  background: var(--bc, #E5484D);
  border-radius: 5px;
  box-shadow:
    inset 0 2px 0 rgba(255, 255, 255, 0.38),
    inset 0 -3px 0 rgba(0, 0, 0, 0.16),
    0 3px 9px rgba(75, 71, 84, 0.22);
}
.brick i {
  display: block;
  height: 56%; aspect-ratio: 1;
  border-radius: 50%;
  background: var(--bc, #E5484D);
  filter: brightness(1.1);
  box-shadow: inset 0 -2px 2px rgba(0, 0, 0, 0.16), 0 1px 1px rgba(255, 255, 255, 0.35);
}
.brick.v { flex-direction: column; }
.brick.v i { width: 56%; height: auto; }
.brick.round { border-radius: 50%; }
.brick.slope { clip-path: polygon(0 0, 55% 0, 100% 100%, 0 100%); justify-content: flex-start; padding-inline-start: 9%; }
.brick.slope.flip { clip-path: polygon(45% 0, 100% 0, 100% 100%, 0 100%); justify-content: flex-end; padding-inline-start: 0; padding-inline-end: 9%; }
.brick.slope.v { clip-path: polygon(0 0, 100% 0, 100% 55%, 0 100%); padding-inline: 0; padding-block-start: 9%; justify-content: flex-start; }
.brick.slope.v.flip { clip-path: polygon(0 45%, 100% 0, 100% 100%, 0 100%); padding-block-start: 0; padding-block-end: 9%; justify-content: flex-end; }

.brick.placed { position: absolute; animation: brick-in 0.28s cubic-bezier(0.3, 1.5, 0.4, 1); }
@keyframes brick-in { 0% { transform: scale(1.22); } 60% { transform: scale(0.95); } 100% { transform: scale(1); } }

.brick.floating { position: fixed; z-index: 90; pointer-events: none; transform: translate(-50%, -50%) rotate(var(--rot, 0deg)); }
.brick.floating.fly {
  transition: left 0.5s cubic-bezier(0.3, 1.35, 0.35, 1), top 0.5s cubic-bezier(0.3, 1.35, 0.35, 1), transform 0.5s ease;
}

.cornice.done::after {
  content: "";
  position: absolute; inset: 6px;
  border-radius: 12px;
  pointer-events: none;
  animation: frame-glow 1.8s ease forwards;
}
@keyframes frame-glow {
  0% { box-shadow: 0 0 0 0 rgba(243, 190, 58, 0); }
  40% { box-shadow: 0 0 34px 6px rgba(243, 190, 58, 0.45); }
  100% { box-shadow: 0 0 0 0 rgba(243, 190, 58, 0); }
}

.cornice-tray {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.2rem; margin-top: 1rem; min-height: 2.6rem;
}
.tray-label { font-size: 0.88rem; color: var(--ink-mute); max-width: 40ch; }
.tray-bricks { display: flex; gap: 0.55rem; flex-shrink: 0; }
.tray-brick { height: 26px; padding: 0; border: 0; cursor: grab; touch-action: none; background: none; }
.tray-brick:active { cursor: grabbing; }
.tray-brick .brick { width: 100%; height: 100%; }

.tavola-bar { display: flex; align-items: baseline; justify-content: space-between; gap: 1.2rem; margin-top: 0.9rem; }
.tavola-note { font-size: 0.88rem; color: var(--ink-mute); max-width: 40ch; }
.tavola-reset {
  font: 600 0.82rem/1 var(--body);
  letter-spacing: 0.04em;
  color: var(--ink-soft);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.55rem 0.95rem;
  cursor: pointer;
  flex-shrink: 0;
  transition: border-color 0.15s ease, color 0.15s ease;
}
.tavola-reset:hover { color: var(--ink); border-color: var(--ink-mute); }

/* ── bottoni ──────────────────────────────────────────────────── */

.btn {
  display: inline-block;
  font: 600 0.96rem/1 var(--body);
  text-decoration: none;
  padding: 0.95rem 1.5rem;
  border-radius: 999px;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.btn:active { transform: translateY(1px); }
.btn-solid { background: var(--giallo); color: var(--ink); }
.btn-solid:hover { background: var(--arancio); }
.btn-ghost { color: var(--ink); border: 1px solid var(--line); background: #fff; }
.btn-ghost:hover { border-color: var(--ink-mute); }

/* ── sezioni e bande di colore ────────────────────────────────── */

.sec { padding-block: clamp(3rem, 8.5vw, 7rem); }
.band { background: var(--t); }
.band .eyebrow { color: var(--ink-soft); }
/* ogni titolo prende la tinta profonda della sua banda */
.band h2 { color: color-mix(in oklab, var(--c) 45%, var(--ink)); }

.cols {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(2.5rem, 6vw, 5.5rem);
  align-items: start;
}
@media (min-width: 941px) { .cols .sec-head { position: sticky; top: 6.2rem; } }
.sec-head h2 { max-width: 20ch; }
.sec-head-center { text-align: center; max-width: 46rem; margin-inline: auto; margin-bottom: clamp(2.4rem, 5vw, 3.6rem); }
.sec-head-center .eyebrow { justify-content: center; }
.sec-head-center h2, .sec-head-center .lede { margin-inline: auto; }

.prose p:first-child { color: var(--ink); font-size: 1.08rem; }

/* i tre passi: dal colore alla lettura */
.steps {
  list-style: none; margin: 2.4rem 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem;
  align-items: start;
}
.steps li {
  background: #fff;
  border-radius: var(--radius);
  padding: 1.5rem 1.4rem 1.6rem;
  box-shadow: 0 10px 30px rgba(75, 71, 84, 0.07);
}
.step-n {
  display: inline-grid; place-items: center;
  width: 2.4rem; height: 2.4rem;
  border-radius: 50%;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 0 0 3px var(--c);
  font: 560 1.15rem/1 var(--display);
  margin-bottom: 0.9rem;
}
.steps h3 { font-size: 1.12rem; }
.steps p { margin-top: 0.4rem; font-size: 0.94rem; }

/* scheda tecnica */
.meta-list { margin: 1.8rem 0 0; padding: 0; }
.meta-list div {
  display: flex; justify-content: space-between; gap: 1rem;
  padding-block: 0.7rem;
  border-top: 1px solid rgba(75, 71, 84, 0.12);
  font-size: 0.94rem;
}
.meta-list dt { color: var(--ink-mute); flex-shrink: 0; }
.meta-list dd { margin: 0; font-weight: 600; color: var(--ink); text-align: right; }

/* i cinque incontri */
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li {
  position: relative;
  padding: 0 0 1.8rem 2.7rem;
  border-left: 2px solid rgba(75, 71, 84, 0.12);
  margin-left: 1rem;
}
.timeline li:last-child { padding-bottom: 0; }
.tl-head { display: flex; align-items: baseline; gap: 0.7rem; margin-bottom: 0.3rem; }
.tl-n {
  position: absolute; left: -1.05rem; top: -0.2rem;
  display: grid; place-items: center;
  width: 2rem; height: 2rem;
  border-radius: 50%;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 0 0 3px var(--c);
  font: 560 1rem/1 var(--display);
}
.timeline li:nth-child(1) .tl-n { box-shadow: 0 0 0 3px var(--rosso); }
.timeline li:nth-child(2) .tl-n { box-shadow: 0 0 0 3px var(--arancio); }
.timeline li:nth-child(3) .tl-n { box-shadow: 0 0 0 3px var(--giallo); }
.timeline li:nth-child(4) .tl-n { box-shadow: 0 0 0 3px var(--azzurro); }
.timeline li:nth-child(5) .tl-n { box-shadow: 0 0 0 3px var(--viola); }
.tl-label { font: 600 0.74rem/1 var(--body); letter-spacing: 0.13em; text-transform: uppercase; color: var(--ink-mute); }
.timeline p { margin-top: 0.35rem; font-size: 0.98rem; }

.moments { margin-top: clamp(2.6rem, 5vw, 3.6rem); }
.moments-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.moments-list li { background: #fff; border-radius: 14px; padding: 1.2rem 1.2rem 1.3rem; border-top: 5px solid var(--c); }
.moments-list h3 { font-size: 1.05rem; }
.moments-list p { margin-top: 0.35rem; font-size: 0.92rem; }

/* card bianche sulle bande */
.card-grid {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.1rem;
}
.card-grid li {
  background: #fff;
  background: color-mix(in srgb, var(--c) 7%, #fff);
  border-radius: var(--radius);
  padding: 1.5rem 1.4rem 1.6rem;
  box-shadow: 0 10px 30px rgba(75, 71, 84, 0.07);
  position: relative;
}
.card-grid li::before {
  content: "";
  display: block;
  width: 16px; height: 27px;
  border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
  background: var(--c);
  transform: rotate(-24deg);
  margin-bottom: 1rem;
}
.card-grid p { margin-top: 0.45rem; font-size: 0.95rem; }
/* la foto delle opere vere, alta due righe; l'ultima scheda chiude la griglia */
.card-grid .card-photo { padding: 0; overflow: hidden; grid-row: span 2; background: #fff; }
@media (min-width: 941px) { .card-grid li:last-child:nth-child(7) { grid-column: span 2; } }
.card-grid .card-photo::before { display: none; }
.card-photo img { width: 100%; height: 100%; object-fit: cover; }

/* video */
.video-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.4rem; }
.video-card, .video-frame { margin: 0; }
.video-frame { max-width: 900px; margin: clamp(2.4rem, 5vw, 3.6rem) auto 0; }
.video-main { max-width: 1000px; margin-top: 0; }
.video-main video { box-shadow: 0 26px 70px rgba(75, 71, 84, 0.2); }
.video-card video, .video-frame video {
  width: 100%;
  aspect-ratio: 16 / 9;
  display: block;
  border-radius: var(--radius);
  background: var(--t);
  box-shadow: 0 18px 50px rgba(75, 71, 84, 0.16);
  object-fit: cover;
}
.video-card figcaption, .video-frame figcaption {
  margin-top: 0.9rem;
  text-align: center;
  font-size: 0.9rem;
  color: var(--ink-mute);
}

/* la frase dell'artista */
.big-quote {
  margin: 0 auto clamp(2.6rem, 6vw, 4.2rem);
  max-width: 60rem;
  text-align: center;
}
.big-quote p {
  font: italic 420 clamp(1.7rem, 3.6vw, 2.8rem)/1.25 var(--display);
  color: var(--ink);
  text-wrap: balance;
}
.big-quote cite {
  display: block;
  margin-top: 1.2rem;
  font: 600 0.8rem/1 var(--body);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-style: normal;
  color: #6D3FD9;
}
/* video non riproducibile (nessun supporto HLS): resta il poster con una nota */
.video-off { position: relative; }
.video-off::after {
  content: "Questo browser non riesce a riprodurre il video.";
  position: absolute; left: 50%; bottom: 1rem; transform: translateX(-50%);
  background: #fff; color: var(--ink);
  font: 500 0.85rem/1.4 var(--body);
  padding: 0.5rem 0.9rem; border-radius: 999px;
  box-shadow: 0 6px 18px rgba(75, 71, 84, 0.14);
  white-space: nowrap;
}

/* le persone */
.people { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.1rem; }
.people li { background: #fff; border-radius: var(--radius); padding: 1.4rem 1.4rem 1.5rem; border-left: 5px solid var(--c); }
.people li:last-child:nth-child(odd) { grid-column: span 2; }
.people h3 { font-size: 1.12rem; }
.people .role { margin-top: 0.15rem; font: 600 0.78rem/1.4 var(--body); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-mute); }
.people p:not(.role) { margin-top: 0.5rem; font-size: 0.94rem; }

/* ── chiusura: la banda arcobaleno ────────────────────────────── */

.sec-close { padding-top: 0; }
.close-panel {
  position: relative;
  background: #fff;
  border-radius: 26px;
  padding: clamp(2.6rem, 6vw, 4.5rem);
  text-align: center;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(75, 71, 84, 0.12);
}
.close-panel::before {
  content: "";
  position: absolute; inset: 0 0 auto 0;
  height: 12px;
  background: linear-gradient(90deg,
    var(--rosso) 0 12.5%, var(--arancio) 0 25%, var(--giallo) 0 37.5%, var(--verde) 0 50%,
    var(--azzurro) 0 62.5%, var(--blu) 0 75%, var(--viola) 0 87.5%, var(--rosa) 0 100%);
}
.close-panel .eyebrow { justify-content: center; }
.close-panel p { margin: 1.3rem auto 0; max-width: 52ch; }
.close-panel .btn { margin-top: 1.9rem; }
.close-note { font-size: 0.88rem !important; color: var(--ink-mute) !important; margin-top: 1rem !important; }

/* ── footer ───────────────────────────────────────────────────── */

.footer { border-top: 1px solid var(--line); padding-block: 2.2rem; }
.footer .wrap { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: 0.86rem; color: var(--ink-mute); }
.footer-credit { font: italic 400 0.9rem/1.6 var(--display); }

/* ── reveal ───────────────────────────────────────────────────── */

.js .rv { opacity: 0; transform: translateY(14px); transition: opacity 0.7s ease, transform 0.7s ease; }
.js .rv.in { opacity: 1; transform: none; }

.noanim .rv,
.noanim .hero-copy > *, .noanim .tavola-wrap { opacity: 1 !important; transform: none !important; animation: none !important; transition: none !important; }
.noanim .tavola svg path { stroke-dashoffset: 0; transition: none; }
.noanim .tavola-hint, .noanim .brick.placed, .noanim .cornice.done::after { animation: none !important; }
.noanim .brick.floating.fly, .noanim .ghost { transition: none !important; }
html.noanim { scroll-behavior: auto; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .rv { opacity: 1; transform: none; transition: none; }
  .js .hero-copy > *, .js .tavola-wrap { opacity: 1; transform: none; animation: none; }
  .tavola svg path { stroke-dashoffset: 0; transition: none; }
  .tavola-hint { animation: none; }
  .brick.floating.fly { transition: none; }
  .ghost { transition: none; }
  * { animation-duration: 0.001s !important; }
}

/* ── responsive ───────────────────────────────────────────────── */

@media (max-width: 1040px) {
  .nav {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    padding: 0.6rem 1.5rem 1.2rem;
    display: none;
  }
  .nav.open { display: flex; }
  .nav a { padding-block: 0.85rem; font-size: 1rem; border-bottom: none; }
  .nav-cta { margin-top: 0.6rem; text-align: center; }
  .nav-toggle { display: block; }
  .topbar .nav-cta-sm { display: inline-block; padding: 0.6rem 1rem; font-size: 0.9rem; margin-left: auto; }
  .hero-grid { grid-template-columns: 1fr; gap: 2.8rem; }
  .tavola-wrap { max-width: 620px; }
}

@media (max-width: 940px) {
  .cols { grid-template-columns: 1fr; gap: 2.2rem; }
  .sec-head h2 { max-width: none; }
  .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .people li:last-child:nth-child(odd) { grid-column: auto; }
}

@media (max-width: 760px) {
  .brand img { height: 42px; }
  .steps, .moments-list, .video-grid, .people { grid-template-columns: 1fr; }
  .meta-list div { flex-direction: column; gap: 0.1rem; }
  .meta-list dd { text-align: left; }
  .tavola-bar, .cornice-tray { flex-direction: column; align-items: flex-start; gap: 0.7rem; }
  .tray-brick { height: 22px; }
  .footer .wrap { flex-direction: column; }
}

@media (max-width: 560px) {
  .card-grid { grid-template-columns: 1fr; }
  .card-photo { grid-row: auto; aspect-ratio: 4 / 3; }
}
