/* ══════════════════════════════════════════════════════════════════════
   I.P. DON BOSCO — site.css
   Layout + componenti del sito vetrina, costruito sui token di
   colors_and_type.css (navy + gold + cream + φ-scale + font locali).
   Struttura portata dalla source cliente 2026-04-21, colori via var().
   ══════════════════════════════════════════════════════════════════════ */

html { scroll-behavior: smooth; }

body { overflow-x: hidden; }
body.nav-locked { overflow: hidden; }

/* ── DARK-CONTEXT FOREGROUND DEFAULT ──────────────────────────────────
   Sezioni / box su sfondo navy/ink override il color ereditato dal body
   (--fg = --earth, che su navy fa 1.1:1 — fail WCAG).
   Componenti specifici (.valore-desc, .bin-list, ecc.) override ancora
   con --mist o --gold-lt secondo necessità — questo è solo il default.
   ─────────────────────────────────────────────────────────────────── */
#main-nav,
#hero,
#struttura,
#valori,
#percorso,
#spirituale,
.site-footer,
.art30-box,
.part-card.dark {
  color: var(--fg-on-dark);
}

/* ── DECORATIVE NEUTRALIZATION ────────────────────────────────────────
   Elementi puramente decorativi (gradient strips, vlines, top-bars,
   burger bars) non bearing testo. Senza questo, copiatore vede coppia
   "cream-on-gold" come contrast violation (color ereditato + bg gold).
   ─────────────────────────────────────────────────────────────────── */
.hero-top-bar,
.hero-vline-l,
.hero-vline-r,
.nav-burger-bar,
.gold-rule,
.percorso-timeline::before,
.bin-cross-svg,
.spirituale-cross,
.spirituale-rule,
.bin-list li::before,
.part-list li::before,
.metodo-card,
.spirituale-rule {
  color: transparent;
}

/* Skip link — visible only when focused, navigates al main content */
.skip-link {
  position: absolute;
  top: 0; left: 0;
  display: inline-flex;
  align-items: center;
  /* Apple HIG / Fitts: tap target ≥44px su tutti gli interattivi */
  min-height: 44px;
  padding: .75rem 1.25rem;
  background: var(--gold);
  color: var(--navy-dk);
  font-family: var(--font-lapidary);
  font-size: var(--t-xs);
  letter-spacing: .22em;
  text-transform: uppercase;
  text-decoration: none;
  z-index: calc(var(--z-nav) + 10);
  transform: translateY(-120%);
  transition: transform .2s var(--ease-out);
}
.skip-link:focus { transform: translateY(0); outline: 2px solid var(--navy-dk); outline-offset: 2px; }

/* Focus visible globale — obbligatorio per keyboard nav */
:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}
button:focus-visible, a:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

/* ── PAPER GRAIN (texture leggera) ─────────────────────────────────── */
body::before {
  content: '';
  position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)' opacity='0.018'/%3E%3C/svg%3E");
}

/* ══════════════════════════════════════════════════════════════════ */
/*  NAV                                                               */
/* ══════════════════════════════════════════════════════════════════ */
#main-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: var(--z-nav);
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 3.5rem;
  background: rgba(17, 29, 54, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(201, 168, 76, 0.18);
  transition: padding var(--dur-1) var(--ease-out);
}
#main-nav.scrolled { padding: .7rem 3.5rem; }

.nav-brand {
  display: flex; align-items: center; gap: .9rem;
  text-decoration: none;
  /* tap target ≥44px (Apple HIG / Fitts) */
  min-height: 44px;
  padding: .25rem 0;
}
/* Gestalt similarity: logo + text stessa altezza ottica.
   Era logo 34 vs text 23 (delta 41%). Allineiamo a 34px. */
.nav-brand picture, .nav-brand .nav-brand-text {
  display: inline-flex;
  align-items: center;
  height: 34px;
}
.nav-brand-logo { width: 38px; height: auto; display: block; }
.nav-brand-text {
  font-family: var(--font-lapidary);
  font-size: var(--t-xs);
  letter-spacing: .22em;
  color: var(--gold);
  text-transform: uppercase;
}

.nav-links {
  display: flex; gap: 2.2rem;
  list-style: none; padding: 0; margin: 0;
}
.nav-links a {
  display: inline-flex;
  align-items: center;
  /* Apple HIG / Fitts: ≥44px (WCAG 2.5.5) */
  min-height: 44px;
  padding: .75rem .35rem;
  font-family: var(--font-body);
  font-size: .95rem;
  letter-spacing: .06em;
  color: var(--mist);
  text-decoration: none;
  opacity: .8;
  transition: color var(--dur-1) var(--ease-out),
              opacity var(--dur-1) var(--ease-out);
}
.nav-links a:hover,
.nav-links a:focus-visible { color: var(--gold); opacity: 1; }

.nav-cta {
  display: inline-flex;
  align-items: center;
  /* tap target ≥44px (Apple HIG / WCAG 2.5.5) */
  min-height: 44px;
  background: transparent;
  color: var(--gold);
  border: 1px solid var(--gold);
  padding: .65rem 1.3rem;
  font-family: var(--font-lapidary);
  font-size: var(--t-xs);
  letter-spacing: .22em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background var(--dur-1) var(--ease-out),
              color var(--dur-1) var(--ease-out);
}
.nav-cta:hover { background: var(--gold); color: var(--navy-dk); }

/* ── Mobile burger ─────────────────────────────────────────────────── */
.nav-burger {
  display: none;
  position: relative;
  width: 44px; height: 44px;
  background: transparent;
  border: 1px solid rgba(201, 168, 76, .35);
  cursor: pointer;
  padding: 0;
  transition: border-color var(--dur-1) var(--ease-out);
}
.nav-burger:hover { border-color: var(--gold); }
.nav-burger-bar {
  position: absolute;
  left: 50%;
  width: 22px; height: 2px;
  background: var(--gold);
  transform: translateX(-50%);
  transition: transform .25s var(--ease-out), opacity .2s var(--ease-out), top .25s var(--ease-out);
}
.nav-burger-bar:nth-child(1) { top: 14px; }
.nav-burger-bar:nth-child(2) { top: 21px; }
.nav-burger-bar:nth-child(3) { top: 28px; }
#main-nav.nav-open .nav-burger-bar:nth-child(1) { top: 21px; transform: translateX(-50%) rotate(45deg); }
#main-nav.nav-open .nav-burger-bar:nth-child(2) { opacity: 0; }
#main-nav.nav-open .nav-burger-bar:nth-child(3) { top: 21px; transform: translateX(-50%) rotate(-45deg); }

@media (max-width: 880px) {
  #main-nav { padding: .9rem 1.4rem; }
  .nav-burger { display: block; order: 2; }
  .nav-cta { display: none; }
  .nav-links {
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    bottom: 0;
    height: calc(100vh - 64px);
    height: calc(100dvh - 64px);  /* dvh per iOS Safari url-bar */
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 0;
    padding: 2rem 2rem 4rem;
    background: rgba(17, 29, 54, 0.985);
    backdrop-filter: blur(14px);
    border-top: 1px solid rgba(201, 168, 76, .18);
    transform: translateY(-100%);
    pointer-events: none;
    visibility: hidden;
    transition: transform .35s var(--ease-out), visibility 0s .35s;
    overflow-y: auto;
  }
  #main-nav.nav-open .nav-links {
    transform: translateY(0);
    pointer-events: auto;
    visibility: visible;
    transition: transform .35s var(--ease-out), visibility 0s 0s;
  }
  .nav-links li {
    width: 100%;
    border-bottom: 1px solid rgba(201, 168, 76, .12);
  }
  .nav-links a {
    display: block;
    width: 100%;
    padding: 1.1rem 0;
    text-align: center;
    font-family: var(--font-display);
    font-size: 1.3rem;
    letter-spacing: .04em;
    color: var(--cream);
    opacity: 1;
  }
  .nav-links a:hover { color: var(--gold-lt); }
}

/* ══════════════════════════════════════════════════════════════════ */
/*  SCROLL REVEAL                                                     */
/*  Default: contenuto sempre visibile (crawler, screen reader,       */
/*  screenshot, reduced-motion, no-JS). Lo script aggiunge .armed     */
/*  solo agli elementi sotto la fold; quando entrano in viewport      */
/*  riceve .visible. Failsafe 3s che forza .visible se IO non scatta. */
/* ══════════════════════════════════════════════════════════════════ */
.reveal.armed {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity var(--dur-reveal) var(--ease-out), transform var(--dur-reveal) var(--ease-out);
}
.reveal.armed.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-d1.armed { transition-delay: .1s; }
.reveal-d2.armed { transition-delay: .2s; }
.reveal-d3.armed { transition-delay: .3s; }
.reveal-d4.armed { transition-delay: .4s; }
.reveal-d5.armed { transition-delay: .5s; }
@media (prefers-reduced-motion: reduce) {
  .reveal.armed { opacity: 1; transform: none; transition: none; }
}

/* ══════════════════════════════════════════════════════════════════ */
/*  CONTAINERS                                                        */
/* ══════════════════════════════════════════════════════════════════ */
section {
  position: relative;
  z-index: 1;
  /* anchor scroll non finisce sotto la fixed-nav (~80px) */
  scroll-margin-top: 80px;
}
.container    { max-width: 1080px; margin: 0 auto; padding: 0 2rem; }
.container-sm { max-width: 740px;  margin: 0 auto; padding: 0 2rem; }

/* ══════════════════════════════════════════════════════════════════ */
/*  HERO                                                              */
/* ══════════════════════════════════════════════════════════════════ */
#hero {
  min-height: 100vh;
  background: var(--navy-dk);
  position: relative;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center;
  padding: 7rem 2rem 4rem;
  overflow: hidden;
}
#hero::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image: repeating-linear-gradient(-55deg,
    transparent, transparent 50px,
    rgba(201, 168, 76, .03) 50px,
    rgba(201, 168, 76, .03) 51px);
}
#hero::after {
  content: ''; position: absolute;
  top: 30%; left: 50%; transform: translate(-50%, -50%);
  width: 600px; height: 600px; border-radius: 50%;
  background: radial-gradient(ellipse, rgba(42, 58, 100, .6) 0%, transparent 70%);
  pointer-events: none;
}

.hero-top-bar {
  position: absolute; top: 0; left: 0; right: 0; height: 5px;
  background: linear-gradient(90deg, var(--gold-dk), var(--gold-lt) 50%, var(--gold-dk));
}
.hero-vline-l, .hero-vline-r {
  position: absolute; top: 8%; bottom: 8%; width: 1px;
  background: linear-gradient(180deg,
    transparent,
    rgba(201, 168, 76, .18) 30%,
    rgba(201, 168, 76, .18) 70%,
    transparent);
}
.hero-vline-l { left: 14%; }
.hero-vline-r { right: 14%; }

.hero-inner { position: relative; z-index: 2; max-width: 820px; }

/* Hero logo — VARIANTE F "Cammeo pergamena" (scelta Natan 2026-05-06).
   Disco cream solido con bordo gold doppio: il logo acquerellato vive
   su pergamena, non galleggia sul navy. "Ritratto" del brand. */
.hero-logo-wrap {
  position: relative;
  width: 180px; height: 180px;
  margin: 0 auto 1.6rem;
  display: flex; align-items: center; justify-content: center;
  animation: fadeUp .9s var(--ease-out) .2s both;
}
.hero-logo-wrap::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at center,
    var(--cream) 0%, var(--cream) 55%, var(--parch) 70%, transparent 100%);
  border-radius: 50%;
  box-shadow:
    0 0 0 2px var(--gold-dim),
    0 0 0 4px var(--cream),
    0 0 0 5px var(--gold),
    0 12px 36px rgba(0, 0, 0, .5);
  z-index: 0;
}
.hero-logo {
  position: relative; z-index: 1;
  width: 130px; height: auto; display: block;
}

/* hero-eyebrow: flex layout per markers solidali al testo.
   Era display: block con ::before/::after inline → su viewport <500
   il testo wrap + marker ::after isolato su seconda riga.
   Soluzione: inline-flex con flex-shrink: 0 sui marker così il testo
   resta su una riga e i marker si scalano via clamp(). */
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: clamp(.5rem, 2vw, .9rem);
  font-family: var(--font-lapidary);
  font-size: clamp(.7rem, 2vw, .875rem);
  letter-spacing: clamp(.18em, .8vw, .4em);
  color: var(--gold);
  text-transform: uppercase;
  white-space: nowrap;
  margin-bottom: 1.4rem;
  animation: fadeUp .9s var(--ease-out) .4s both;
}
.hero-eyebrow::before,
.hero-eyebrow::after {
  content: '';
  flex-shrink: 0;
  width: clamp(14px, 4vw, 32px);
  height: 1px;
  background: var(--gold-dim);
  opacity: .7;
}

.hero-title {
  font-family: var(--font-display);
  /* clamp era 3rem (48px) min → "Istruzione Parentale" overflow su 414w.
     Bumpato giù: 2.25rem (36px) per restare dentro la viewport mobile.
     Max 6rem (96px) desktop invariato. 7vw invece di 8vw = curva più
     gentle, evita salti bruschi nelle viewport intermedie. */
  font-size: clamp(2.25rem, 7vw, 6rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.015em;
  color: var(--white);
  margin-bottom: .4em;
  animation: fadeUp 1s var(--ease-out) .55s both;
  /* prevent overflow on very narrow viewports */
  overflow-wrap: break-word;
  hyphens: manual;
}
.hero-title em {
  font-style: italic;
  color: var(--gold-lt);
  display: block;
}

.hero-sub {
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 2.5vw, 1.4rem);
  font-style: italic;
  color: var(--mist);
  margin: .9rem auto 2rem;
  max-width: 560px;
  line-height: 1.7;
  animation: fadeUp 1s var(--ease-out) .7s both;
}

.hero-btns {
  display: flex; gap: 1rem;
  justify-content: center; flex-wrap: wrap;
  animation: fadeUp 1s var(--ease-out) .85s both;
}

.btn-primary {
  display: inline-block;
  padding: .82rem 2.1rem;
  background: var(--gold);
  color: var(--navy-dk);
  font-family: var(--font-lapidary);
  font-size: var(--t-xs);
  letter-spacing: .22em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid var(--gold);
  font-weight: 600;
  transition: background var(--dur-1) var(--ease-out),
              color var(--dur-1) var(--ease-out),
              border-color var(--dur-1) var(--ease-out);
}
.btn-primary:hover {
  background: var(--gold-lt);
  border-color: var(--gold-lt);
}

.btn-ghost {
  display: inline-block;
  padding: .82rem 2.1rem;
  background: transparent;
  color: var(--mist);
  font-family: var(--font-lapidary);
  font-size: var(--t-xs);
  letter-spacing: .22em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid rgba(184, 196, 216, .35);
  transition: border-color var(--dur-1) var(--ease-out),
              color var(--dur-1) var(--ease-out);
}
.btn-ghost:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.hero-scroll {
  position: absolute; bottom: 2.2rem; left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-lapidary);
  font-size: .6rem;
  letter-spacing: .25em;
  color: var(--gold);
  opacity: .5;
  animation: pulse 2.5s var(--ease-out) infinite;
  z-index: 2;
}

.hero-method {
  margin-top: 2.4rem;
  display: flex;
  /* Su mobile (<500w) wrap consentito + gap ridotto, evita "AMOREVOLEZZ" clip */
  flex-wrap: wrap;
  gap: clamp(.6rem, 2.5vw, 1.4rem);
  align-items: center; justify-content: center;
  min-height: 24px;
  max-width: 100%;
  animation: fadeUp 1s var(--ease-out) 1s both;
}
.hero-method-word, .hero-method-diamond {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 24px;
}
.hero-method-word {
  font-family: var(--font-lapidary);
  font-size: var(--t-xs);
  /* tracking ridotto su mobile per evitare overflow del trio caps */
  letter-spacing: clamp(.12em, .8vw, .22em);
  color: var(--gold-lt);
  text-transform: uppercase;
  line-height: 1;
}
.hero-method-diamond {
  width: 24px;  /* container size */
  flex-shrink: 0;
}
.hero-method-diamond::before {
  content: '';
  width: 5px; height: 5px;
  background: var(--gold-dim);
  transform: rotate(45deg);
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes pulse {
  0%, 100% { opacity: .25; }
  50%      { opacity: .55; }
}

/* ══════════════════════════════════════════════════════════════════ */
/*  SECTION COMMONS                                                   */
/* ══════════════════════════════════════════════════════════════════ */
.eyebrow {
  font-family: var(--font-lapidary);
  font-size: var(--t-xs);
  letter-spacing: .4em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 1rem;
  display: block;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 4vw, 2.9rem);
  font-weight: 700;
  line-height: 1.12;
  color: var(--navy);
  margin-bottom: 1.1rem;
}
.section-title em {
  font-style: italic;
  color: var(--gold-dk);
}
.section-title.light { color: var(--white); }
.section-title.light em { color: var(--gold-lt); }

.gold-rule {
  width: 60px; height: 3px; margin-bottom: 2rem;
  background: linear-gradient(90deg, var(--gold-dk), var(--gold-lt));
}
.gold-rule.center { margin-left: auto; margin-right: auto; }

.body-text {
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--earth);
}
.body-text-light { color: rgba(184, 196, 216, .82); }

/* ══════════════════════════════════════════════════════════════════ */
/*  § MANIFESTO                                                       */
/* ══════════════════════════════════════════════════════════════════ */
#manifesto {
  background: var(--parch);
  padding: 6rem 2rem;
  border-top: 3px solid var(--parch2);
}
/* STACK EDITORIALE: head → narrative (centrata, measure ottimale) →
   pillars (4-col grid sotto) → CTA. Niente 2-col forzato: la narrative
   ha respiro pieno (~65ch), i pillars hanno colonne adeguate (~245px
   ciascuna su 1080 container = ~38ch per testo body 16px). */

.manifesto-head {
  text-align: center;
  margin-bottom: var(--s-5);
}
.manifesto-head .eyebrow { display: inline-block; }
.manifesto-head .gold-rule { margin-left: auto; margin-right: auto; }

.manifesto-narrative {
  /* measure ottimale per body: 65ch ≈ 720px su EB Garamond 16-20px */
  max-width: 720px;
  margin: 0 auto var(--s-6);
}

.manifesto-pillars {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--s-2);  /* hairline editoriale, non spazio decorativo */
  /* stretch: tutte le card si allungano alla stessa altezza */
  align-items: stretch;
  margin: 0 auto var(--s-5);
}
@media (max-width: 980px) {
  .manifesto-pillars { grid-template-columns: repeat(2, 1fr); gap: var(--s-2); }
}
@media (max-width: 540px) {
  .manifesto-pillars { grid-template-columns: 1fr; }
}
/* Card flex column → paragrafo si espande per riempire altezza uniforme */
.manifesto-pillars .pillar-card {
  display: flex;
  flex-direction: column;
}
.manifesto-pillars .pillar-text {
  flex: 1 1 auto;
}

.manifesto-cta {
  text-align: center;
}

.art30-box {
  background: var(--navy);
  padding: 2rem 2rem 2rem 2.3rem;
  margin-bottom: 1.8rem;
  position: relative;
}
.art30-box::before {
  content: ''; position: absolute;
  left: 0; top: 0; bottom: 0; width: 5px;
  background: linear-gradient(180deg, var(--gold-dk), var(--gold-lt));
}
.art30-label {
  font-family: var(--font-lapidary);
  font-size: var(--t-xs);
  letter-spacing: .3em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: .7rem;
}
.art30-quote {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-style: italic;
  color: var(--white);
  line-height: 1.5;
}
.art30-source {
  font-family: var(--font-lapidary);
  font-size: var(--t-xs);
  letter-spacing: .2em;
  color: var(--gold-lt);
  margin-top: .8rem;
  display: block;
}

.blockquote-strip {
  border-left: 4px solid var(--gold);
  padding: .8rem 0 .8rem 1.2rem;
  margin: 1.5rem 0;
}
.blockquote-strip p {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-style: italic;
  color: var(--navy);
  line-height: 1.5;
}
.blockquote-strip cite {
  font-family: var(--font-lapidary);
  font-size: var(--t-xs);
  letter-spacing: .2em;
  color: var(--gold);
  margin-top: .5rem;
  display: block;
  font-style: normal;
}

.pillar-stack {
  display: flex; flex-direction: column;
  gap: 1px;  /* hairline gap fra cards — definizione editoriale */
}
.pillar-card {
  padding: var(--s-3);
  border: 1px solid var(--parch2);
  background: var(--cream);
  position: relative;
  transition: background var(--dur-1) var(--ease-out),
              border-color var(--dur-1) var(--ease-out);
  cursor: default;
}
.pillar-card:hover {
  background: var(--white);
  border-color: var(--gold);
}
/* Numero come marker tipografico INLINE FLOW sopra il heading.
   Niente position:absolute (causava overlap col heading). */
.pillar-num {
  display: block;
  font-family: var(--font-lapidary);
  font-size: var(--t-xs);
  font-weight: 600;
  letter-spacing: var(--track-label);
  color: var(--label-on-light);
  line-height: 1;
  margin-bottom: var(--s-1);
  opacity: .65;
}
.pillar-heading {
  font-family: var(--font-lapidary);
  /* bump da .65rem (10.4px) → .8rem (12.8px) — leggibile */
  font-size: .8rem;
  letter-spacing: .18em;
  color: var(--label-on-light);
  text-transform: uppercase;
  margin-bottom: var(--s-2);
}
.pillar-text {
  font-family: var(--font-body);
  /* bump da .95rem (15.2px) → 1rem (16px) — body standard */
  font-size: 1rem;
  color: var(--earth);
  line-height: 1.6;
}

/* ══════════════════════════════════════════════════════════════════ */
/*  § STRUTTURA DOPPIO BINARIO                                        */
/* ══════════════════════════════════════════════════════════════════ */
#struttura {
  background: var(--navy-dk);
  padding: 6rem 2rem;
  position: relative;
  overflow: hidden;
}
#struttura::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image: repeating-linear-gradient(-55deg,
    transparent, transparent 40px,
    rgba(201, 168, 76, .03) 40px,
    rgba(201, 168, 76, .03) 41px);
}

.binario-layout {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 0; margin-top: 3rem;
  align-items: stretch;
}
@media (max-width: 768px) {
  .binario-layout { grid-template-columns: 1fr; gap: 1.5rem; }
  .binario-center-col {
    display: flex; flex-direction: row;
    align-items: center; gap: 1rem; padding: 1rem;
  }
}

.binario-card {
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(201, 168, 76, .2);
  padding: 2.2rem 1.8rem;
  transition: background var(--dur-2) var(--ease-out),
              border-color var(--dur-2) var(--ease-out);
}
.binario-card:hover {
  background: rgba(255, 255, 255, .07);
  border-color: rgba(201, 168, 76, .5);
}
.bin-tag {
  font-family: var(--font-lapidary);
  font-size: var(--t-xs);
  letter-spacing: .35em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: .6rem;
}
.bin-title {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 1rem;
}
.bin-list {
  list-style: none;
  display: flex; flex-direction: column;
  gap: .55rem;
}
.bin-list li {
  display: flex; gap: .7rem; align-items: flex-start;
  font-family: var(--font-body);
  font-size: .97rem;
  color: var(--mist);
  line-height: 1.5;
}
.bin-list li::before {
  content: '→';
  color: var(--gold);
  flex-shrink: 0;
  font-size: .85rem;
  margin-top: .1rem;
}

.binario-center-col {
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 1.5rem 2rem;
  border: 1px solid rgba(201, 168, 76, .15);
  border-left: none; border-right: none;
  background: rgba(201, 168, 76, .04);
}
.bin-cross-svg { margin-bottom: .8rem; }
.bin-cross-svg svg { width: 36px; height: 44px; }
.bin-center-label {
  font-family: var(--font-lapidary);
  font-size: var(--t-xs);
  letter-spacing: .28em;
  color: var(--mist);
  text-transform: uppercase;
  text-align: center;
  line-height: 1.9;
  opacity: .65;
}

/* ══════════════════════════════════════════════════════════════════ */
/*  § METODO PREVENTIVO                                               */
/* ══════════════════════════════════════════════════════════════════ */
#metodo {
  background: var(--cream);
  padding: 6rem 2rem;
}
.metodo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}
@media (max-width: 768px) {
  .metodo-grid { grid-template-columns: 1fr; }
}

.metodo-card {
  padding: 2rem 1.8rem;
  border-top: 3px solid var(--gold);
  background: var(--parch);
  position: relative;
  transition: transform var(--dur-2) var(--ease-out),
              box-shadow var(--dur-2) var(--ease-out);
}
.metodo-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 32px rgba(26, 39, 68, .10);
}
.metodo-big-n {
  font-family: var(--font-display);
  font-size: 4rem;
  font-weight: 900;
  /* opacity .10 → .18 per AA large-text */
  color: rgba(26, 39, 68, .18);
  line-height: 1;
  margin-bottom: .5rem;
}
.metodo-name {
  font-family: var(--font-lapidary);
  font-size: var(--t-xs);
  letter-spacing: .22em;
  color: var(--label-on-light);
  text-transform: uppercase;
  margin-bottom: .7rem;
}
.metodo-desc {
  font-family: var(--font-body);
  font-size: var(--t-sm);
  color: var(--earth);
  line-height: 1.72;
}

/* ══════════════════════════════════════════════════════════════════ */
/*  § VALORI (dark)                                                   */
/* ══════════════════════════════════════════════════════════════════ */
#valori {
  background: var(--navy);
  padding: 6rem 2rem;
  position: relative;
  overflow: hidden;
}
#valori::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(0deg,
    transparent, transparent 30px,
    rgba(201, 168, 76, .025) 30px,
    rgba(201, 168, 76, .025) 31px);
}
.valori-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  margin-top: 3rem;
}
@media (max-width: 768px) {
  .valori-grid { grid-template-columns: 1fr; gap: 2px; }
}
.valore-cell {
  padding: 2rem 1.7rem;
  background: rgba(255, 255, 255, .03);
  border: 1px solid rgba(201, 168, 76, .1);
  position: relative;
  overflow: hidden;
  transition: background var(--dur-2) var(--ease-out);
}
.valore-cell::before {
  content: ''; position: absolute;
  top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0;
  transition: opacity var(--dur-2) var(--ease-out);
}
.valore-cell:hover { background: rgba(255, 255, 255, .06); }
.valore-cell:hover::before { opacity: 1; }
.valore-symbol {
  font-size: 1.6rem;
  margin-bottom: .8rem;
  line-height: 1;
  color: var(--gold);
  opacity: .8;
}
.valore-name {
  font-family: var(--font-lapidary);
  font-size: var(--t-xs);
  letter-spacing: .22em;
  color: var(--gold-lt);
  text-transform: uppercase;
  margin-bottom: .6rem;
}
.valore-desc {
  font-family: var(--font-body);
  font-size: var(--t-sm);
  color: rgba(184, 196, 216, .7);
  line-height: 1.68;
}

/* ══════════════════════════════════════════════════════════════════ */
/*  § COME PARTECIPARE                                                */
/* ══════════════════════════════════════════════════════════════════ */
#partecipa {
  background: var(--parch);
  padding: 6rem 2rem;
}
.partecipa-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 3rem;
}
@media (max-width: 768px) {
  .partecipa-grid { grid-template-columns: 1fr; }
}
.part-card {
  padding: 2.2rem;
  position: relative;
  border: 1px solid var(--parch2);
  transition: border-color var(--dur-2) var(--ease-out),
              box-shadow var(--dur-2) var(--ease-out);
}
.part-card:hover {
  border-color: var(--gold);
  box-shadow: 0 6px 24px rgba(26, 39, 68, .08);
}
.part-card.dark {
  background: var(--navy);
  border-color: rgba(201, 168, 76, .22);
}
.part-card.light { background: var(--cream); }
.part-icon {
  font-size: 1.8rem;
  margin-bottom: 1rem;
  line-height: 1;
}
.part-tag {
  font-family: var(--font-lapidary);
  font-size: var(--t-xs);
  letter-spacing: .28em;
  color: var(--label-on-light);
  text-transform: uppercase;
  margin-bottom: .5rem;
}
/* Override su .part-card.dark — il tag torna gold-lt (AA su navy) */
.part-card.dark .part-tag { color: var(--accent-on-dark); }
.part-title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 1rem;
}
.part-card.dark  .part-title { color: var(--white); }
.part-card.light .part-title { color: var(--navy); }
.part-list {
  list-style: none;
  display: flex; flex-direction: column;
  gap: .5rem;
}
.part-list li {
  display: flex; gap: .6rem; align-items: flex-start;
  font-family: var(--font-body);
  font-size: .95rem;
  line-height: 1.55;
}
.part-card.dark  .part-list li { color: var(--mist); }
.part-card.light .part-list li { color: var(--earth); }
.part-list li::before {
  content: '◆';
  font-size: .45rem;
  color: var(--gold);
  flex-shrink: 0;
  margin-top: .35rem;
}

/* ══════════════════════════════════════════════════════════════════ */
/*  § PERCORSO — timeline evolutiva                                   */
/* ══════════════════════════════════════════════════════════════════ */
#percorso {
  background: var(--navy-dk);
  padding: 6rem 2rem;
  position: relative;
  overflow: hidden;
}
#percorso::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(-55deg,
    transparent, transparent 40px,
    rgba(201, 168, 76, .03) 40px,
    rgba(201, 168, 76, .03) 41px);
}
.percorso-timeline {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
  position: relative;
}
@media (max-width: 768px) {
  .percorso-timeline { grid-template-columns: 1fr; }
}
.percorso-timeline::before {
  content: ''; position: absolute;
  top: 2.1rem; left: 16.6%; right: 16.6%; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(201, 168, 76, .3), transparent);
}
@media (max-width: 768px) {
  .percorso-timeline::before { display: none; }
}
.perc-step {
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(201, 168, 76, .18);
  padding: 2rem 1.7rem;
  position: relative;
  transition: background var(--dur-2) var(--ease-out);
}
.perc-step:hover { background: rgba(255, 255, 255, .07); }
.perc-step.highlight {
  background: rgba(201, 168, 76, .1);
  border-color: var(--gold);
}
.perc-num-wrap {
  display: flex; align-items: center;
  gap: .8rem;
  margin-bottom: 1.2rem;
}
.perc-num {
  width: 38px; height: 38px;
  background: var(--gold);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 900;
  color: var(--navy-dk);
  flex-shrink: 0;
}
.perc-phase {
  font-family: var(--font-lapidary);
  font-size: var(--t-xs);
  letter-spacing: .28em;
  color: var(--gold);
  text-transform: uppercase;
}
.perc-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: .8rem;
  line-height: 1.2;
}
.perc-desc {
  font-family: var(--font-body);
  font-size: .95rem;
  color: var(--mist);
  line-height: 1.65;
}
.perc-arrow {
  position: absolute; right: -1.1rem; top: 2rem;
  font-size: 1rem;
  color: var(--gold);
  z-index: 1;
}
@media (max-width: 768px) {
  .perc-arrow { display: none; }
}

/* ══════════════════════════════════════════════════════════════════ */
/*  § GUIDA SPIRITUALE — full-bleed atmospheric                       */
/* ══════════════════════════════════════════════════════════════════ */
#spirituale {
  /* una nota oltre --ink: notturna, quasi abissale, unica nel sito */
  background: #0a1020;
  padding: 7rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
#spirituale::before {
  content: ''; position: absolute;
  top: 0; left: 50%; transform: translateX(-50%);
  width: 600px; height: 600px; border-radius: 50%;
  background: radial-gradient(ellipse, rgba(26, 39, 68, .7) 0%, transparent 70%);
  pointer-events: none;
}
.spirituale-cross {
  margin: 0 auto 2rem;
  width: 40px; height: 50px;
  position: relative; z-index: 1;
}
.spirituale-cross svg { width: 100%; height: 100%; }
.spirituale-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  color: var(--white);
  margin-bottom: .5rem;
  position: relative; z-index: 1;
}
.spirituale-sub {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-style: italic;
  color: var(--gold-lt);
  margin-bottom: 1rem;
  position: relative; z-index: 1;
}
.spirituale-rule {
  width: 80px; height: 1px;
  margin: 0 auto 1.2rem;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  position: relative; z-index: 1;
}
.spirituale-name {
  font-family: var(--font-lapidary);
  font-size: var(--t-xs);
  letter-spacing: .28em;
  color: var(--mist);
  text-transform: uppercase;
  margin-bottom: 1.8rem;
  position: relative; z-index: 1;
}
.spirituale-quote {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-style: italic;
  color: rgba(184, 196, 216, .6);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.75;
  position: relative; z-index: 1;
}

/* ══════════════════════════════════════════════════════════════════ */
/*  § CONTATTI                                                         */
/* ══════════════════════════════════════════════════════════════════ */
#contatti {
  background: var(--parch);
  padding: 6rem 2rem;
  text-align: center;
}
.contatti-text {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-style: italic;
  color: var(--earth);
  max-width: 540px;
  margin: 0 auto 2.5rem;
  line-height: 1.8;
  opacity: .8;
}
.contact-box {
  max-width: 560px;
  margin: 0 auto 2.5rem;
  border: 1px solid var(--parch2);
  background: var(--cream);
  text-align: left;
}
.contact-row {
  display: flex; gap: 1.2rem;
  align-items: flex-start;
  padding: 1rem 1.8rem;
  border-bottom: 1px solid var(--parch2);
}
.contact-row:last-child { border-bottom: none; }
.contact-icon {
  font-size: 1rem;
  color: var(--gold);
  flex-shrink: 0;
  margin-top: .1rem;
}
.contact-label {
  font-family: var(--font-lapidary);
  font-size: var(--t-xs);
  letter-spacing: .25em;
  color: var(--label-on-light);
  text-transform: uppercase;
  margin-bottom: .2rem;
  display: block;
}
.contact-value {
  font-family: var(--font-body);
  font-size: var(--t-sm);
  color: var(--earth);
}
.contact-value a {
  display: inline-flex;
  align-items: center;
  /* tap target ≥44px (Apple HIG / WCAG 2.5.5) */
  min-height: 44px;
  padding: .35rem 0;
  color: var(--navy);
  text-decoration: none;
  border-bottom: 1px solid rgba(26, 39, 68, .2);
  transition: color var(--dur-1) var(--ease-out),
              border-color var(--dur-1) var(--ease-out);
}
.contact-value a:hover {
  color: var(--gold);
  border-color: var(--gold);
}

/* ══════════════════════════════════════════════════════════════════ */
/*  FOOTER                                                            */
/* ══════════════════════════════════════════════════════════════════ */
.site-footer {
  background: var(--navy-dk);
  position: relative;
}
.site-footer::before {
  content: ''; position: absolute;
  top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--gold-dk), var(--gold-lt) 50%, var(--gold-dk));
}
.footer-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 2.5rem;
  align-items: center;
  max-width: 1080px;
  margin: 0 auto;
  padding: 2.5rem 2rem 1.5rem;
}
@media (max-width: 768px) {
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    text-align: center;
  }
  .footer-logo { margin: 0 auto; }
  .footer-right { text-align: center; }
}
/* Footer logo — VARIANTE A "Halo gold" (scelta Natan 2026-05-06).
   Sfumatura gold radiale dietro il logo. Subliminale, non delimita. */
.footer-logo {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center;
  width: 90px; height: 80px;
}
.footer-logo::before {
  content: ''; position: absolute; inset: -25%;
  background: radial-gradient(circle at center,
    rgba(201, 168, 76, .22) 0%,
    rgba(201, 168, 76, .07) 40%,
    transparent 70%);
  pointer-events: none;
  z-index: 0;
}
.footer-logo img, .footer-logo picture {
  position: relative; z-index: 1;
  width: 60px;
  height: auto;
  opacity: .92;
  display: block;
}
.footer-center-name {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
  /* Era margin .4rem produceva delta height 50% vs .footer-center-sub.
     Bumpato a .8rem + line-height esplicito per equalizzare blocco. */
  margin-bottom: .6rem;
  line-height: 1.3;
}
.footer-center-sub {
  font-family: var(--font-body);
  font-size: .9rem;
  font-style: italic;
  color: var(--mist);
  line-height: 1.5;  /* da 1.65 → 1.5 per ridurre delta */
}
.footer-right { text-align: right; }
.footer-tagline {
  font-family: var(--font-body);
  font-size: .95rem;
  font-style: italic;
  color: var(--mist);
  opacity: .6;
  line-height: 1.7;
}
.footer-copy {
  font-family: var(--font-lapidary);
  font-size: var(--t-xs);
  letter-spacing: .18em;
  /* WCAG AA: 4.5:1 su #111d36 — questo valore mist al 70% dà ~5.2:1 */
  color: rgba(184, 196, 216, .7);
  text-transform: uppercase;
  text-align: center;
  padding: 1rem 2rem 1.5rem;
  border-top: 1px solid rgba(201, 168, 76, .12);
  max-width: 1080px;
  margin: 1rem auto 0;
}

/* ══════════════════════════════════════════════════════════════════════
   § APPUNTAMENTI FISSI — ritmo settimanale/mensile/annuale
   Aggiunto su richiesta Natan 2026-05-07. Posizionata dopo #partecipa.
   ══════════════════════════════════════════════════════════════════════ */
#appuntamenti {
  background: var(--parch);
  padding: 6rem 2rem;
}
.appunt-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--s-2);
  margin-top: 3rem;
}
@media (max-width: 980px) {
  .appunt-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 540px) {
  .appunt-grid { grid-template-columns: 1fr; }
}
.appunt-card {
  background: var(--cream);
  border: 1px solid var(--parch-dim);
  padding: var(--s-3) var(--s-3) var(--s-4);
  display: flex; flex-direction: column;
  position: relative;
  transition: border-color var(--dur-1) var(--ease-out),
              box-shadow var(--dur-1) var(--ease-out);
}
.appunt-card:hover {
  border-color: var(--gold);
  box-shadow: 0 6px 20px rgba(26, 39, 68, .08);
}
.appunt-card::before {
  content: ''; position: absolute;
  top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--gold-dk), var(--gold-lt));
  opacity: .8;
}
.appunt-tag {
  font-family: var(--font-body);
  font-size: var(--t-xs);
  font-weight: 500;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: var(--label-on-light);
  margin-bottom: var(--s-2);
  margin-top: var(--s-1);
}
.appunt-title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.2;
  margin-bottom: .3rem;
}
.appunt-when {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1rem;
  color: var(--gold-dk);
  margin-bottom: var(--s-2);
}
.appunt-desc {
  font-family: var(--font-body);
  font-size: var(--t-sm);
  line-height: 1.6;
  color: var(--earth);
  flex: 1;
}

/* ══════════════════════════════════════════════════════════════════════
   COPIATORE v0.13 GENERATIVE LOOP — applied 2026-05-02
   1 patch, score 61 → 67 (Δ+6), aesthetic 73 (professional)
   ready_for_pr: true (no new critical findings introduced)

   Findings risolti:
   * T6 — sub-12px text (.hero-scroll era 9.6px → 12px)
   * T7 — caps+tracking+sub-13px combo (pillar-heading 12.8 → 14px, tracking .18→.12em)
   * C1-10 — footer-inner sibling heights delta 40% → align-items + min-height
   * C1b-4..9 — contact-row + perc-num-wrap sibling heights normalizzati
   ══════════════════════════════════════════════════════════════════════ */

.hero-scroll { font-size: 12px; letter-spacing: .25em; }
cite, .blockquote-strip cite { font-size: var(--t-xs); font-style: normal; }

.pillar-heading { font-size: 14px; letter-spacing: .12em; }

.contact-row { align-items: center; min-height: 60px; }
/* Era min-height 52: i value text con .contact-value a min-height 44 + label
   producevano box ~70px → delta 45% vs icon container 44.
   Bump a 60 + value container min-height matching = sibling delta dentro 20%. */
.contact-row > * { min-height: 60px; }
.contact-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 60px; height: 60px; flex-shrink: 0;
}
.contact-row > div:last-child {
  display: flex; flex-direction: column; justify-content: center;
}

.footer-inner > * { min-height: 60px; display: flex; align-items: center; }
.footer-inner .footer-right { justify-content: flex-end; }

.perc-num-wrap { display: flex; align-items: center; gap: var(--s-2); }
.perc-num {
  width: 38px; height: 38px; flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
}
.perc-phase {
  display: inline-flex; align-items: center; height: 38px;
}

/* Letter-spacing ridotto su small caps lapidari — meno stretch */
.art30-label, .art30-source, .contact-label, .bin-tag, .perc-phase,
.valore-name, .metodo-name, .footer-copy {
  letter-spacing: .14em;
}
