/* base.css — reset minimale, font self-hosted (OFL, spediti nel tema in assets/fonts/), tipografia e
   accessibilità di base per movement_studio (studio di pratica del movimento).
   I token vivono in tokens.css: qui si consumano, non si ridichiarano.

   ⚠ Questo verticale è SCURO PER DEFAULT: il fondo del corpo è il navy del marchio, e la banda chiara
   (crema) è l'eccezione che dà respiro. Ogni sezione chiara deve perciò RIDICHIARARE il colore del testo:
   ereditare `--on-dark` su fondo crema darebbe 1,12 — bianco su bianco, il difetto che non si vede finché
   qualcuno non lo apre. */

/* --- Font self-hosted (no Google Fonts, zero-live). I woff2 OFL sono spediti nel tema.
   theme.json dichiara le stesse famiglie/pesi: le due dichiarazioni puntano agli stessi file.
   ⚠ Instrument Serif esiste in UN SOLO peso (400). Non esistono 600/700: chiederli produce un
   grassetto SINTETICO, che a corpo alto impasta le grazie. I titoli stanno al 400 per costruzione. --- */
@font-face { font-family:"Instrument Serif"; font-style:normal; font-weight:400; font-display:swap;
  src:url("../assets/fonts/instrument-serif-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family:"Instrument Sans"; font-style:normal; font-weight:400; font-display:swap;
  src:url("../assets/fonts/instrument-sans-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family:"Instrument Sans"; font-style:normal; font-weight:500; font-display:swap;
  src:url("../assets/fonts/instrument-sans-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family:"Instrument Sans"; font-style:normal; font-weight:600; font-display:swap;
  src:url("../assets/fonts/instrument-sans-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family:"Instrument Sans"; font-style:normal; font-weight:700; font-display:swap;
  src:url("../assets/fonts/instrument-sans-latin-700-normal.woff2") format("woff2"); }

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: var(--lh-body);
  color: var(--fg);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-kerning: normal;
  font-variant-ligatures: common-ligatures contextual;
}

img, svg, picture { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; padding: 0; }
button { font: inherit; cursor: pointer; }

/* Il footer non deve «salire» sulle pagine più corte della finestra (qui: la Privacy). */
.wp-site-blocks { display: flex; flex-direction: column; min-height: 100vh; }
.wp-site-blocks > main { flex: 1 0 auto; }

/* Le bande full-bleed sono figlie del post-content, che ha il block-gap WP: senza questo si vedono
   strisce del fondo body fra una banda e l'altra (regola 11). */
.wp-block-post-content > * { margin-block: 0; }
/* ⚠ Non basta azzerare le bande: il block-gap che WP mette sui loro figli DIRETTI collassa attraverso la
   banda — che non ha né padding-top né border-top — e la trascina giù, scoprendo una striscia di fondo. */
.hero > *, .section > *, .cta-band > *, .page-head > *, .cta-bar > * { margin-block: 0; }

/* ⚠ WordPress avvolge ogni parte di template in un <div>, che diventerebbe il contenitore dello sticky
   ed è alto quanto l'intestazione: senza questo la testata «dichiarata sticky» scorre via. */
.wp-block-template-part { display: contents; }

/* Tipografia display: Instrument Serif al 400, SEMPRE. Il carattere di questo verticale sta nella statura
   e nella sottigliezza del tratto, non nel peso — è la stessa qualità di linea della «E» calligrafica del
   marchio, e un 700 sintetico la distruggerebbe.
   ⚠ `text-wrap: balance` pareggia le righe ma non impedisce la VEDOVA; `pretty` è pensata per l'ultima
   riga: si tengono entrambe, con `pretty` per ultima a vincere dove esiste. */
h1, h2, h3 { font-family: var(--font-display); font-weight: 400; letter-spacing: var(--tracking-display); line-height: var(--lh-snug); text-wrap: balance; text-wrap: pretty; }
h1 { font-size: var(--text-3xl); line-height: var(--lh-tight); }
h2 { font-size: var(--text-xl); line-height: var(--lh-tight); }
h3 { font-size: var(--text-lg); letter-spacing: -0.008em; }
p { text-wrap: pretty; }

/* Occhiello: su fondo SCURO è la menta (7,51); su fondo chiaro la variante --ink usa --menta-ink (6,01).
   ⚠ La menta su chiaro fa 1,84: non porta mai testo su crema o bianco. */
.eyebrow {
  font-family: var(--font-body); font-weight: 600; font-size: var(--text-sm);
  letter-spacing: var(--tracking-label); text-transform: uppercase; color: var(--menta);
  display: flex; align-items: center; gap: var(--space-3);
}
.eyebrow::before { content: ""; width: 26px; height: 1px; background: currentColor; flex: none; }
.eyebrow--ink { color: var(--menta-ink); }
.eyebrow--center { justify-content: center; }

/* Filetto: su scuro menta, su chiaro il verde-inchiostro. Non è un bordo di controllo. */
.rule { border: 0; height: 0; border-top: 2px solid var(--menta); width: 54px; margin: var(--space-4) 0; }
.rule--center { margin-inline: auto; }
.rule--ink { border-color: var(--menta-ink); }

.lead { font-size: var(--text-md); line-height: 1.6; color: var(--on-dark-muted); max-width: 62ch; }
.muted { color: var(--on-dark-muted); }
.small { font-size: var(--text-sm); }
.measure { max-width: var(--container-narrow); }
/* Su fondo chiaro il secondario cambia token: --on-dark-muted su crema farebbe 1,5. */
.on-light .lead, .lead--on-light { color: var(--ink-muted); }
.on-light .muted, .muted--on-light { color: var(--ink-muted); }

.container { width: min(100% - (var(--gutter) * 2), var(--container)); margin-inline: auto; }

/* Bande. Il default è SCURO; le varianti chiare ridichiarano SEMPRE il colore del testo. */
.section { padding-block: var(--section-y); background: var(--navy); color: var(--on-dark); position: relative; z-index: 1; }
.section--deep { background: var(--navy-deep); color: var(--on-dark); }
.section--tint { background: var(--surface); color: var(--ink); }
.section--paper { background: var(--paper); color: var(--ink); }
.section--tight { padding-block: calc(var(--section-y) * 0.68); }

/* Aloni di colore: sfumature radiali dietro il contenuto delle bande scure. Sono l'asse del riferimento
   di categoria (BeAromatherapy) e tolgono la piattezza alla campitura senza aggiungere oggetti da leggere.
   ⚠ Vivono in un ::before a z-index 0 con il contenuto a 1: senza, coprirebbero il testo. */
.section--glow { overflow: hidden; }
.section--glow::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(58% 44% at 12% 4%, var(--glow-menta), transparent 68%),
    radial-gradient(52% 40% at 92% 88%, var(--glow-indaco), transparent 70%);
}
.section--glow > * { position: relative; z-index: 1; }

/* `overflow-x: clip` invece di `hidden`: `hidden` su un asse crea un contenitore di scorrimento e rompe
   lo sticky della testata. */
.section, .hero, .cta-band, .page-head, .cta-bar { overflow-x: clip; }

/* Focus visibile ovunque. Su fondo chiaro il focus passa al verde-inchiostro: la menta su crema è 1,84
   e l'anello sparirebbe proprio dove serve. */
:focus-visible { outline: 3px solid var(--menta); outline-offset: 3px; border-radius: 3px; }
.section--tint :focus-visible, .section--paper :focus-visible, .on-light :focus-visible { outline-color: var(--menta-ink); }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--menta); color: var(--ink); padding: var(--space-3) var(--space-5);
  border-radius: var(--radius-pill); font-weight: 600;
}
.skip-link:focus { left: var(--space-4); top: var(--space-4); }

/* Micro-animazioni: IntersectionObserver via reveal.js (Safari non supporta animation-timeline: view()).
   Fail-visible: senza JS la classe `.js` non c'è e tutto resta visibile. */
.js .reveal { opacity: 0; transform: translateY(24px); }
.js .reveal--left { transform: translateX(-30px); }
.js .reveal--right { transform: translateX(30px); }
.js .reveal--rise { transform: translateY(54px); }
.js .reveal.is-visible {
  opacity: 1; transform: none;
  transition: opacity .62s var(--ease), transform .62s var(--ease);
  transition-delay: calc(var(--reveal-i, 0) * 90ms);
}
@media (prefers-reduced-motion: reduce) {
  .js .reveal, .js .reveal--left, .js .reveal--right, .js .reveal--rise { opacity: 1; transform: none; transition: none; }
}
