/* =====================================================================
   alessiolanorcia.it — stile «Manifesto»
   Carta chiara, nero, arancione e verde bosco. Titoli grandi, blocchi
   di colore pieni, pochi ornamenti. Ogni sezione dichiara il suo tema
   (t-paper, t-ink, t-green, t-orange) e i componenti leggono i token.
   ===================================================================== */

/* ===== Caratteri, serviti dal sito (19 ottobre 2026: niente più Google Fonts) ===== */
@font-face {
  font-family: "Manrope"; font-style: normal; font-weight: 200 800; font-display: swap;
  src: url("/fonts/manrope-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("/fonts/inter-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ===== Palette del marchio ===== */
:root {
  --paper: #f5f3ee;
  --white: #ffffff;
  --ink: #0a0a0a;
  --ink-2: #161616;
  --orange: #f2940c;
  --orange-deep: #d47f06;
  --green: #174c37;
  --green-deep: #103b2a;

  /* tema di partenza: carta */
  --bg: var(--paper);
  --text: var(--ink);
  --text-dim: #5b5953;
  --line: rgba(10, 10, 10, 0.12);
  --line-strong: rgba(10, 10, 10, 0.3);
  --card: var(--white);
  --tag-fg: var(--ink);
  --btn-bg: var(--ink);
  --btn-fg: var(--paper);
  --btn-hover-bg: var(--orange);
  --btn-hover-fg: var(--ink);
  --accent: var(--orange);

  --font-display: "Manrope", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;

  --container: 1280px;
  --pad: clamp(1.25rem, 4vw, 3.5rem);
  --radius: 20px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ===== Temi di sezione ===== */
.t-paper {
  --bg: var(--paper); --text: var(--ink); --text-dim: #5b5953;
  --line: rgba(10,10,10,.12); --line-strong: rgba(10,10,10,.3); --card: var(--white);
  --tag-fg: var(--ink);
  --btn-bg: var(--ink); --btn-fg: var(--paper); --btn-hover-bg: var(--orange); --btn-hover-fg: var(--ink);
}
.t-ink {
  --bg: var(--ink); --text: var(--paper); --text-dim: #a3a19b;
  --line: rgba(245,243,238,.12); --line-strong: rgba(245,243,238,.3); --card: var(--ink-2);
  --tag-fg: var(--orange);
  --btn-bg: var(--orange); --btn-fg: var(--ink); --btn-hover-bg: var(--paper); --btn-hover-fg: var(--ink);
}
.t-green {
  --bg: var(--green-deep); --text: var(--paper); --text-dim: rgba(245,243,238,.76);
  --line: rgba(245,243,238,.14); --line-strong: rgba(245,243,238,.34); --card: var(--green);
  --tag-fg: var(--orange);
  --btn-bg: var(--orange); --btn-fg: var(--ink); --btn-hover-bg: var(--paper); --btn-hover-fg: var(--ink);
}
.t-orange {
  --bg: var(--orange); --text: var(--ink); --text-dim: rgba(10,10,10,.74);
  --line: rgba(10,10,10,.18); --line-strong: rgba(10,10,10,.42); --card: var(--paper);
  --tag-fg: var(--ink);
  --btn-bg: var(--ink); --btn-fg: var(--paper); --btn-hover-bg: var(--paper); --btn-hover-fg: var(--ink);
}
section, footer, .proof { background: var(--bg); color: var(--text); }

/* ===== Base ===== */
* { box-sizing: border-box; }

html { background: var(--paper); scroll-behavior: auto; }
html.has-lenis { scroll-behavior: auto; }

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

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--font-display); margin: 0; letter-spacing: -0.03em; }
p { margin: 0; }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--ink); color: var(--paper);
  padding: 0.75rem 1.25rem; z-index: 1000; font-weight: 700;
}
.skip-link:focus { left: 1rem; top: 1rem; }

:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }
.t-orange :focus-visible { outline-color: var(--ink); }

/* ===== Grana leggera ===== */
.grain {
  position: fixed; inset: 0; z-index: 2; pointer-events: none;
  opacity: 0.05; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ===== Etichette, titoli, regola ===== */
.section-tag {
  display: block;
  font-family: var(--font-body); text-transform: uppercase;
  letter-spacing: 0.14em; font-size: 0.8125rem; font-weight: 700;
  color: var(--tag-fg);
  margin-bottom: 1.25rem;
}
.section-title {
  font-size: clamp(2.25rem, 5.6vw, 4.25rem);
  font-weight: 800; line-height: 1.02;
}
.section-title::before {
  content: ""; display: block;
  width: 56px; height: 4px; background: var(--accent);
  margin-bottom: 1.25rem;
}
.accent-text { color: var(--accent); }
.t-orange .accent-text, .t-paper .accent-text { color: inherit; }
.mark {
  background: var(--ink); color: var(--paper);
  padding: 0 0.16em; margin: 0 -0.04em;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
.t-ink .mark, .t-green .mark { background: var(--orange); color: var(--ink); }
.t-orange .mark { background: var(--ink); color: var(--paper); }

/* ===== Nav: capsula fissa ===== */
.nav {
  position: fixed; top: 0.9rem; left: 50%; transform: translateX(-50%);
  z-index: 100; width: min(calc(100% - 1.5rem), 1120px);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.45rem 0.45rem 0.45rem 1.3rem;
  background: rgba(245, 243, 238, 0.82); color: var(--ink);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(10, 10, 10, 0.1); border-radius: 100px;
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.14);
  transition: background-color .4s var(--ease), box-shadow .4s var(--ease);
}
.nav.scrolled { background: rgba(245, 243, 238, 0.94); box-shadow: 0 14px 40px rgba(0, 0, 0, 0.2); }
.nav-logo { font-family: var(--font-display); font-weight: 800; font-size: 1.1rem; letter-spacing: -0.02em; padding: 0.5rem 0; }
.nav-links { display: flex; align-items: center; gap: 1.75rem; font-size: 0.95rem; font-weight: 600; }
.nav-links a { position: relative; padding: 0.5rem 0; }
.nav-links a:not(.nav-cta)::after {
  content: ""; position: absolute; left: 0; bottom: 4px;
  width: 100%; height: 2px; background: var(--orange);
  transform: scaleX(0); transform-origin: right; transition: transform .3s var(--ease);
}
.nav-links a:not(.nav-cta):hover::after { transform: scaleX(1); transform-origin: left; }
.nav-links .nav-cta {
  background: var(--ink); color: var(--paper);
  padding: 0.7rem 1.25rem; border-radius: 100px; font-weight: 700;
  min-height: 44px; display: inline-flex; align-items: center;
  transition: background-color .25s var(--ease), color .25s var(--ease), transform .25s var(--ease);
}
.nav-links .nav-cta:hover { background: var(--orange); color: var(--ink); transform: translateY(-1px); }
.nav-toggle {
  display: none; flex-direction: column; gap: 5px; justify-content: center;
  background: none; border: none; padding: 0.5rem; min-width: 44px; min-height: 44px; cursor: pointer;
}
.nav-toggle span { width: 22px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .3s var(--ease), opacity .3s var(--ease); }

/* ===== Hero: solo tipografia, tutto dentro lo schermo ===== */
.hero {
  position: relative; min-height: 100svh;
  display: flex; align-items: center;
  padding: clamp(5rem, 11vh, 7rem) var(--pad) clamp(2rem, 5vh, 4rem);
}
.hero-content { position: relative; width: 100%; max-width: var(--container); margin: 0 auto; }
.eyebrow {
  display: block; color: var(--text-dim);
  font-size: 0.8125rem; text-transform: uppercase; letter-spacing: 0.14em; font-weight: 700;
  margin-bottom: clamp(0.75rem, 2vh, 1.75rem); max-width: 100%; overflow: hidden;
}
.eyebrow > span { display: inline-block; white-space: normal; }
.hero-title {
  font-size: clamp(2.2rem, min(6.4vw, 9.6vh), 6.2rem);
  font-weight: 800; line-height: 1.1; letter-spacing: -0.04em;
  max-width: 1180px;
}
.hero-title .line { display: block; overflow: hidden; padding: 0.18em 0 0.18em; margin: -0.18em 0 -0.18em; }
.hero-title .mark { padding: 0 0.12em; }
.hero-title .reveal-line { display: block; }
.eyebrow.reveal-line { padding: 0.1em 0 0.2em; margin: -0.1em 0 clamp(0.75rem, 2vh, 1.75rem); }
.reveal-line { display: inline-block; overflow: hidden; padding: 0.14em 0 0.16em; margin: -0.14em 0 -0.16em; max-width: 100%; }
.reveal-line > span { display: inline-block; }
/* Apertura dell'hero in CSS: parte con la prima pittura, senza aspettare le librerie (19 ottobre 2026). */
@media (prefers-reduced-motion: no-preference) {
  .hero .reveal-line > span { animation: hero-rise .9s cubic-bezier(.16, 1, .3, 1) both; }
  .hero-title .line:nth-child(2) .reveal-line > span { animation-delay: .06s; }
  .hero-title .line:nth-child(3) .reveal-line > span { animation-delay: .12s; }
  .hero-title .line:nth-child(4) .reveal-line > span { animation-delay: .18s; }
  .hero-sub > span { animation-delay: .24s; }
  .hero-micro > span { animation-delay: .3s; }
  .hero-actions > span { animation-delay: .36s; }
}
@keyframes hero-rise { from { transform: translateY(70%); opacity: .2; } to { transform: none; opacity: 1; } }
.hero-sub {
  display: block; margin-top: clamp(1rem, 2.6vh, 2rem); max-width: 600px;
  font-size: clamp(1rem, min(1.35vw, 2.1vh), 1.2rem); line-height: 1.55; color: var(--text-dim); overflow: hidden;
}
.hero-micro { display: block; margin-top: clamp(0.6rem, 1.6vh, 1.25rem); color: var(--text-dim); font-size: 0.875rem; font-weight: 500; overflow: hidden; }
.hero-actions { display: block; margin-top: clamp(1rem, 2.6vh, 2rem); overflow: hidden; }
.hero-actions > span { display: flex; gap: 0.9rem; flex-wrap: wrap; }

/* ===== Pulsanti ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem;
  padding: 1rem 1.7rem; border-radius: 100px;
  font-weight: 700; font-size: 1rem; min-height: 48px; white-space: nowrap;
  transition: transform .3s var(--ease), background-color .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.btn-primary { background: var(--btn-bg); color: var(--btn-fg); box-shadow: 0 10px 26px rgba(10, 10, 10, 0.16); }
.btn-primary:hover { background: var(--btn-hover-bg); color: var(--btn-hover-fg); transform: translateY(-2px); box-shadow: 0 14px 32px rgba(10, 10, 10, 0.22); }
.btn-ghost { border: 1.5px solid var(--line-strong); color: var(--text); }
.btn-ghost:hover { border-color: var(--text); background: var(--text); color: var(--bg); }
.btn-lg { padding: 1.15rem 2.1rem; font-size: 1.05rem; }
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }

/* ===== Numeri: banda arancione ===== */
.proof { padding: 2.75rem var(--pad); border-top: 4px solid var(--ink); }
.proof-inner {
  max-width: var(--container); margin: 0 auto;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.5rem, 4vw, 4rem);
}
.proof-item { display: flex; flex-direction: column; gap: 0.35rem; padding-left: 1.1rem; border-left: 3px solid var(--ink); }
.proof-num {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(2.4rem, 5vw, 4rem); line-height: 1; letter-spacing: -0.04em;
}
.proof-label { font-size: 0.95rem; color: var(--text-dim); font-weight: 500; max-width: 26ch; }

/* ===== Per chi ===== */
.perchi { padding: 8rem var(--pad); display: flex; justify-content: center; }
.perchi-inner { max-width: 960px; width: 100%; }
.perchi-hint { margin-top: 2.5rem; color: var(--text-dim); font-size: 0.875rem; }
.perchi-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 1rem; }
.perchi-card {
  position: relative; background: var(--card); color: var(--text);
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.75rem 3.25rem 1.75rem 1.6rem; cursor: pointer; user-select: none;
  transition: border-color .3s var(--ease), transform .3s var(--ease), background-color .3s var(--ease);
}
.perchi-card:hover { border-color: var(--line-strong); transform: translateY(-3px); }
.perchi-card p { color: var(--text-dim); font-size: 1rem; line-height: 1.55; transition: color .3s var(--ease); }
.perchi-icon { width: 26px; height: 26px; color: var(--orange); margin-bottom: 1rem; }
.perchi-check {
  position: absolute; top: 1.2rem; right: 1.2rem; width: 26px; height: 26px; border-radius: 50%;
  border: 1.5px solid var(--line-strong); display: flex; align-items: center; justify-content: center;
  transition: background-color .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease);
}
.perchi-check svg { width: 13px; height: 13px; color: var(--ink); opacity: 0; transition: opacity .25s var(--ease); }
.perchi-card.is-checked { border-color: var(--orange); background: var(--card); }
.perchi-card.is-checked p { color: var(--text); }
.perchi-card.is-checked .perchi-check { background: var(--orange); border-color: var(--orange); transform: scale(1.1); }
.perchi-card.is-checked .perchi-check svg { opacity: 1; }
.perchi-reveal {
  margin-top: 3.5rem; font-family: var(--font-display); font-weight: 700;
  font-size: clamp(1.4rem, 2.8vw, 2.2rem); line-height: 1.35; letter-spacing: -0.02em;
  color: var(--text); max-width: 860px;
}
.perchi-reveal .w { display: inline-block; }

/* ===== Metodo ===== */
.metodo { padding: 8rem var(--pad); }
.metodo-inner { max-width: var(--container); margin: 0 auto; }
.metodo-head { max-width: 760px; margin-bottom: 4rem; }
.metodo-intro { margin-top: 1.5rem; color: var(--text-dim); font-size: 1.1rem; max-width: 620px; }

.passi { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.passo {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 2rem 1.75rem; display: flex; flex-direction: column;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.passo:hover { transform: translateY(-4px); box-shadow: 0 20px 40px rgba(10, 10, 10, 0.08); }
.passo-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--ink); color: var(--paper);
  font-family: var(--font-display); font-weight: 800; font-size: 1.05rem; margin-bottom: 1.5rem;
}
.passo:nth-child(2) .passo-num { background: var(--orange); color: var(--ink); }
.passo:nth-child(3) .passo-num { background: var(--ink); color: var(--paper); }
.passo h3 { font-size: 1.3rem; font-weight: 800; line-height: 1.2; margin-bottom: 0.75rem; }
.passo p { color: var(--text-dim); font-size: 0.98rem; line-height: 1.6; }

.funnel-label {
  font-family: var(--font-body); text-transform: uppercase; letter-spacing: 0.12em;
  font-size: 0.8125rem; color: var(--text-dim); font-weight: 700; margin-bottom: 0.5rem;
}
.funnel { display: flex; flex-direction: column; gap: 0; margin-bottom: 3rem; }
.funnel-stage {
  display: grid; grid-template-columns: 1fr 1.4fr; gap: 2rem; align-items: center;
  padding: 1.75rem 0; border-top: 1px solid var(--line);
}
.funnel-stage:last-child { border-bottom: 1px solid var(--line); }
.funnel-bar-wrap { height: 16px; background: rgba(10, 10, 10, 0.08); border-radius: 100px; overflow: hidden; }
.funnel-bar {
  height: 100%; width: var(--pct); border-radius: 100px;
  background: var(--orange);
  transform: scaleX(0); transform-origin: left;
}
.funnel-info { display: flex; align-items: baseline; gap: 1.25rem; flex-wrap: wrap; }
.funnel-pct { font-family: var(--font-display); font-weight: 800; font-size: 1.9rem; letter-spacing: -0.03em; }
.funnel-info h3 { font-size: 1.2rem; font-weight: 800; display: inline-flex; align-items: center; gap: 0.6rem; }
.funnel-icon { width: 20px; height: 20px; color: var(--ink); flex-shrink: 0; }
.funnel-info p { color: var(--text-dim); font-size: 0.95rem; flex-basis: 100%; }
.metodo-closing { color: var(--text-dim); font-size: 1rem; max-width: none; }

/* ===== Lavori ===== */
.lavori { padding: 6rem var(--pad) 7rem; }
.lavori-inner { max-width: var(--container); margin: 0 auto; }
.lavori-head { margin-bottom: 3.5rem; max-width: 760px; }
.logo-marquee {
  width: 100vw; margin-left: calc(50% - 50vw); overflow: hidden;
  display: flex; flex-direction: column; gap: clamp(1.1rem, 2.5vw, 2rem); padding: 1rem 0;
}
.logo-row { overflow: hidden; }
.logo-row-track { display: flex; align-items: center; gap: clamp(1.5rem, 3vw, 2.75rem); width: max-content; will-change: transform; }
.logo-name {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(1.5rem, 3.6vw, 2.75rem); letter-spacing: -0.02em; text-transform: uppercase;
  color: var(--text-dim); white-space: nowrap; transition: color .3s var(--ease);
}
.logo-name:hover { color: var(--text); }
.logo-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--orange); flex-shrink: 0; }

/* ===== Chi sono ===== */
.origine { position: relative; padding: 8rem var(--pad) 9rem; overflow: hidden; }
.origine-svg { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0.55; }
.origine-svg path { fill: none; stroke: var(--orange); stroke-width: 2; stroke-linecap: round; }
.origine-content { position: relative; max-width: 820px; margin: 0 auto; z-index: 2; }
.origine-title { margin-bottom: 2.5rem; }
.origine-p {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(1.4rem, 2.8vw, 2.1rem); line-height: 1.35; letter-spacing: -0.02em;
  margin-bottom: 2rem; padding-left: 1.25rem; border-left: 4px solid var(--ink);
}
.origine-p em { font-style: normal; background: var(--orange); color: var(--ink); padding: 0 0.15em; -webkit-box-decoration-break: clone; box-decoration-break: clone; }

.percorso { position: relative; z-index: 2; max-width: 980px; margin: 5rem auto 0; }
.percorso-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.percorso-item {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.percorso-item:hover { transform: translateY(-3px); box-shadow: 0 20px 40px rgba(10, 10, 10, 0.08); }
.percorso-icon { width: 28px; height: 28px; color: var(--ink); }
.percorso-item h3 { font-size: 1.1rem; font-weight: 800; margin: 1rem 0 0.4rem; }
.percorso-item p { color: var(--text-dim); font-size: 0.925rem; line-height: 1.55; }
.percorso-item-wide {
  grid-column: 2 / -1; display: flex; align-items: center; gap: 1.5rem;
  background: var(--ink); color: var(--paper); border-color: var(--ink);
}
.percorso-item-wide .percorso-icon { flex-shrink: 0; width: 34px; height: 34px; color: var(--orange); }
.percorso-item-wide h3 { margin-top: 0; font-size: 1.25rem; }
.percorso-item-wide p { color: rgba(245, 243, 238, 0.78); }

/* ===== Contatti (arancione) ===== */
.contatti { position: relative; padding: 8rem var(--pad) 9rem; display: flex; justify-content: center; text-align: center; overflow: hidden; }
.contatti-inner { position: relative; z-index: 1; max-width: 900px; width: 100%; }
.contatti-title { font-size: clamp(2.25rem, 5.6vw, 4.25rem); font-weight: 800; line-height: 1.02; letter-spacing: -0.035em; }
.contatti-sub { margin: 1.75rem auto 0; color: var(--text-dim); font-size: 1.15rem; max-width: 640px; }
.contatti-actions { margin-top: 2.5rem; display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

.contatti-form {
  margin: 3.5rem auto 0; max-width: 560px; text-align: left;
  background: var(--card); color: var(--ink);
  border-radius: 28px; padding: clamp(1.5rem, 3vw, 2.5rem);
  box-shadow: 0 30px 60px rgba(10, 10, 10, 0.2);
}
.contatti-form-label { color: #5b5953; font-size: 0.95rem; margin-bottom: 1.5rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.form-field { margin-bottom: 1.25rem; display: flex; flex-direction: column; gap: 0.5rem; }
.form-field label { font-size: 0.875rem; color: var(--ink); font-weight: 600; }
.form-field input, .form-field textarea {
  background: var(--white); border: 1.5px solid rgba(10, 10, 10, 0.16); border-radius: 12px;
  padding: 0.9rem 1rem; color: var(--ink); font-family: var(--font-body); font-size: 1rem;
  resize: vertical; min-height: 48px; transition: border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.form-field input:focus, .form-field textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(242, 148, 12, 0.35); }
.form-field input::placeholder, .form-field textarea::placeholder { color: rgba(91, 89, 83, 0.6); }
.form-submit { width: 100%; border: none; cursor: pointer; margin-top: 0.5rem; --btn-bg: var(--ink); --btn-fg: var(--paper); --btn-hover-bg: var(--orange); --btn-hover-fg: var(--ink); }
.form-submit:disabled { opacity: 0.6; cursor: not-allowed; }
.form-status { margin-top: 1rem; text-align: center; font-size: 0.9rem; min-height: 1.2em; }
.form-status.is-success { color: var(--ink); font-weight: 600; }
.form-status.is-error { color: #8a1c1c; font-weight: 600; }
.form-gotcha { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-privacy { color: #5b5953; font-size: 0.8125rem; line-height: 1.5; margin: -0.25rem 0 1rem; }
.form-privacy a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.form-privacy a:hover { color: var(--orange-deep); }

/* ===== Footer ===== */
.footer { padding: 3.5rem var(--pad) 3rem; text-align: center; color: var(--text-dim); font-size: 0.9rem; }
.footer p { margin-bottom: 0.4rem; }
.footer-links { display: flex; gap: 1.5rem; justify-content: center; margin: 1.25rem 0; }
.footer-links a { font-weight: 600; color: var(--text); padding: 0.6rem 0.25rem; }
.footer-links a:hover { color: var(--orange); }
.footer-copy { font-size: 0.8125rem; }

/* ===== Barra fissa «Scrivimi PMI» (solo mobile) ===== */
.cta-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
  padding: 0.6rem var(--pad) calc(0.6rem + env(safe-area-inset-bottom));
  background: rgba(10, 10, 10, 0.9); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid rgba(245, 243, 238, 0.14);
  transform: translateY(110%); transition: transform .35s var(--ease); display: none;
}
.cta-bar .btn { width: 100%; }

/* ===== Pagine di testo (privacy, 404) ===== */
.legal { max-width: 760px; margin: 0 auto; padding: 9rem var(--pad) 6rem; }
.legal h1 { font-size: clamp(2rem, 5vw, 3rem); font-weight: 800; line-height: 1.1; margin-bottom: 1rem; }
.legal .legal-updated { color: var(--text-dim); font-size: 0.9rem; margin-bottom: 3rem; }
.legal h2 { font-size: 1.35rem; font-weight: 800; margin: 2.75rem 0 0.75rem; }
.legal p, .legal li { color: var(--text-dim); font-size: 1rem; line-height: 1.7; }
.legal p { margin-bottom: 1rem; }
.legal ul { margin: 0 0 1rem 1.25rem; padding: 0; }
.legal li { margin-bottom: 0.4rem; }
.legal a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.legal a:hover { color: var(--orange-deep); }
.legal strong { color: var(--ink); font-weight: 600; }
.legal .legal-note { border-left: 3px solid var(--orange); padding-left: 1rem; color: var(--ink); }
.legal table { width: 100%; border-collapse: collapse; margin: 0 0 1.5rem; font-size: 0.95rem; }
.legal th, .legal td { text-align: left; vertical-align: top; padding: 0.6rem 0.5rem; border-bottom: 1px solid var(--line); color: var(--text-dim); line-height: 1.5; }
.legal th { color: var(--ink); font-weight: 600; }
.notfound { min-height: 70dvh; display: flex; flex-direction: column; justify-content: center; }
.notfound .btn { align-self: flex-start; margin-top: 1.5rem; }
.legal .btn { text-decoration: none; }

/* ===== Responsive ===== */
@media (max-width: 860px) {
  .nav { padding-left: 1.1rem; }
  .nav-links {
    position: fixed; top: 0; right: 0; height: 100dvh; width: min(80vw, 340px);
    background: var(--paper); color: var(--ink);
    flex-direction: column; justify-content: center; align-items: flex-start;
    padding: 2rem; gap: 1.5rem; font-size: 1.4rem;
    transform: translateX(100%); transition: transform .4s var(--ease);
    border-left: 1px solid var(--line); box-shadow: -20px 0 60px rgba(0,0,0,.25);
  }
  .nav-links.open { transform: translateX(0); }
  .nav-toggle { display: flex; }
  .nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .hero { padding-top: 6.25rem; padding-bottom: 6rem; }
  .hero-title { max-width: none; font-size: clamp(2.1rem, min(10.5vw, 6.2vh), 3rem); line-height: 1.16; }
  .hero-sub { font-size: 1rem; line-height: 1.5; }
  .hero-actions > span .btn { width: 100%; }

  .proof-inner { grid-template-columns: 1fr; gap: 1.5rem; }
  .perchi-cards { grid-template-columns: 1fr; }
  .passi { grid-template-columns: 1fr; }
  .funnel-stage { grid-template-columns: 1fr; gap: 1rem; }
  .percorso-grid { grid-template-columns: repeat(2, 1fr); }
  .percorso-item-wide { grid-column: 1 / -1; }

  .cta-bar { display: block; }
  body.past-hero .cta-bar { transform: none; }
  body.in-contatti .cta-bar { transform: translateY(110%); }
}
@media (max-width: 560px) {
  .percorso-grid { grid-template-columns: 1fr; }
  .percorso-item-wide { grid-column: 1 / -1; flex-direction: column; align-items: flex-start; gap: 0.9rem; }
  .form-row { grid-template-columns: 1fr; }
}

/* ===== Banner dei consensi (js/consensi.js) ===== */
.consensi {
  position: fixed; z-index: 120; right: 1.5rem; bottom: max(1.5rem, env(safe-area-inset-bottom));
  width: min(calc(100% - 2rem), 520px);
  background: transparent; color: var(--paper);
  animation: consensi-in .45s var(--ease) both;
}
.consensi[hidden] { display: none; }
.consensi-box {
  position: relative; background: var(--ink); color: var(--paper);
  border: 1px solid rgba(245, 243, 238, 0.14); border-radius: var(--radius);
  padding: 1.4rem 1.4rem 1.2rem; box-shadow: 0 24px 60px rgba(10, 10, 10, 0.35);
  max-height: calc(100vh - 2rem); overflow-y: auto;
}
.consensi-titolo { font-family: var(--font-display); font-weight: 800; font-size: 1.05rem; margin: 0 2.75rem 0.5rem 0; color: var(--paper); }
.consensi-testo { font-size: 0.875rem; line-height: 1.55; color: #c9c7c1; margin: 0 0 1rem; }
.consensi-testo a { color: var(--paper); text-decoration: underline; text-underline-offset: 3px; }
.consensi-testo a:hover { color: var(--orange); }
.consensi-chiudi {
  position: absolute; top: 0.5rem; right: 0.5rem; width: 44px; height: 44px;
  display: grid; place-items: center; border-radius: 50%; color: var(--paper); background: transparent; border: 0; cursor: pointer;
}
.consensi-chiudi:hover { background: rgba(245, 243, 238, 0.1); }
.consensi-chiudi svg { width: 20px; height: 20px; }
.consensi-scelte { display: grid; gap: 0.5rem; margin: 0 0 1rem; }
.consensi-scelte[hidden] { display: none; }
.consensi-voce {
  display: flex; gap: 0.75rem; align-items: flex-start; min-height: 44px;
  padding: 0.7rem 0.8rem; border: 1px solid rgba(245, 243, 238, 0.14); border-radius: 12px;
  font-size: 0.8125rem; line-height: 1.5; color: #c9c7c1; cursor: pointer;
}
.consensi-voce strong { display: block; color: var(--paper); font-size: 0.875rem; font-weight: 600; }
.consensi-voce input { width: 20px; height: 20px; margin-top: 0.1rem; accent-color: var(--orange); flex-shrink: 0; }
.consensi-voce.is-fissa { cursor: default; }
.consensi-azioni { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.consensi-btn {
  flex: 1 1 0; min-width: 0; padding: 0.8rem 1rem; min-height: 46px; font-size: 0.9375rem;
  background: var(--paper); color: var(--ink); border: 1.5px solid var(--paper); cursor: pointer;
  font-family: var(--font-body);
}
.consensi-btn:hover { background: var(--orange); border-color: var(--orange); color: var(--ink); }
.consensi-btn-ghost { background: transparent; color: var(--paper); border-color: rgba(245, 243, 238, 0.34); }
.consensi-btn-ghost:hover { background: var(--paper); border-color: var(--paper); color: var(--ink); }
.consensi-btn[hidden] { display: none; }
.consensi :focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }
body.consensi-aperto .cta-bar { transform: translateY(110%); }
@keyframes consensi-in { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.footer-links .footer-pref {
  font: inherit; font-weight: 600; color: var(--text); padding: 0.6rem 0.25rem; min-height: 44px;
  background: none; border: 0; cursor: pointer;
}
.footer-links .footer-pref:hover { color: var(--orange); }
@media (max-width: 560px) {
  .consensi { left: 0.75rem; right: 0.75rem; bottom: max(0.75rem, env(safe-area-inset-bottom)); width: auto; }
  .consensi-box { max-height: calc(100dvh - 1.5rem); }
  .consensi-box { padding: 1.2rem 1.1rem 1rem; }
  .consensi-azioni { display: grid; grid-template-columns: 1fr 1fr; }
  .consensi-btn-ghost { grid-column: 1 / -1; order: 3; }
  .footer-links { flex-wrap: wrap; gap: 0.25rem 1.25rem; }
}

/* ===== Movimento ridotto ===== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ===== Testi v2: microcopy dell'hero, intro «per chi», obiettivi editoriali ===== */
.hero-micro { display: block; margin-top: 1.25rem; color: var(--text-dim); font-size: 0.875rem; font-weight: 500; letter-spacing: 0.01em; overflow: hidden; }
.perchi-intro { margin-top: 1.5rem; color: var(--text-dim); font-size: 1.1rem; max-width: 640px; }
.obiettivi-head { max-width: 760px; margin-bottom: 1.5rem; }
.obiettivi-title { font-size: clamp(1.35rem, 2.4vw, 1.8rem); font-weight: 800; line-height: 1.2; margin-top: 0.5rem; }
.obiettivi { list-style: none; margin: 0 0 2rem; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.obiettivo { padding: 1.6rem 0 1.5rem; border-top: 3px solid var(--ink); }
.obiettivo:nth-child(2) { border-top-color: var(--orange); }
.obiettivo:nth-child(3) { border-top-color: var(--ink); }
.obiettivo-icon { width: 24px; height: 24px; color: var(--ink); margin-bottom: 0.9rem; }
.obiettivo h4 { font-family: var(--font-display); font-size: 1.15rem; font-weight: 800; letter-spacing: -0.02em; margin: 0 0 0.4rem; }
.obiettivo p { color: var(--text-dim); font-size: 0.95rem; line-height: 1.6; }
.origine-intro { font-size: 1.15rem; line-height: 1.65; color: var(--text-dim); margin-bottom: 2.25rem; max-width: 720px; }
@media (max-width: 860px) { .obiettivi { grid-template-columns: 1fr; gap: 0; } }

/* ===== Pillar e fasi: etichetta della fase ===== */
.fase {
  display: inline-block; font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 700;
  color: var(--paper); background: var(--ink); padding: 0.3rem 0.6rem; border-radius: 6px; margin-bottom: 0.9rem;
}
.obiettivo:nth-child(2) .fase { background: var(--orange); color: var(--ink); }
.obiettivo:nth-child(3) .fase { background: var(--ink); }

/* ===== Il tuo spazio: finestra ferma, schermate che cambiano, voci che scendono ===== */
.portale { position: relative; min-height: 100svh; display: flex; align-items: center; padding: 6.5rem var(--pad) 2.5rem; overflow: hidden; }
.portale-inner { max-width: var(--container); margin: 0 auto; width: 100%; }
.portale-head { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 2rem; align-items: end; margin-bottom: 1.5rem; }
.portale-head .section-tag { grid-column: 1; justify-self: start; }
.portale-head .section-title { grid-column: 1; font-size: clamp(1.9rem, 3.6vw, 3rem); }
.portale-intro { grid-column: 2; grid-row: 1 / 3; align-self: end; color: var(--text-dim); font-size: 1rem; max-width: 520px; margin: 0; }
.portale-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(280px, 0.85fr); gap: clamp(1.5rem, 3vw, 3rem); align-items: start; }
.portale-frame {
  width: 100%; max-width: calc((100svh - 25rem) * 1.773);
  background: #ffffff; border-radius: 18px; overflow: hidden;
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(245, 243, 238, 0.12);
}
.portale-bar { display: flex; align-items: center; gap: 1rem; padding: 0.65rem 1rem; background: #ecebe6; border-bottom: 1px solid rgba(10, 10, 10, 0.08); }
.portale-dots { display: inline-flex; gap: 6px; }
.portale-dots i { width: 10px; height: 10px; border-radius: 50%; background: rgba(10, 10, 10, 0.18); }
.portale-dots i:first-child { background: var(--orange); }
.portale-url { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 0.45rem; font-size: 0.8125rem; color: #5b5953; background: #ffffff; border-radius: 8px; padding: 0.3rem 0.75rem; }
.portale-url svg { width: 13px; height: 13px; flex-shrink: 0; }
.portale-viewport { aspect-ratio: 1456 / 821; background: #f7f6f2; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scrollbar-width: none; }
.portale-viewport::-webkit-scrollbar { display: none; }
.portale-viewport.is-driven { overflow: hidden; scroll-snap-type: none; }
.portale-strip { display: flex; width: 500%; height: 100%; will-change: transform; }
.portale-screen { flex: 0 0 20%; width: 20%; height: 100%; scroll-snap-align: start; display: block; }
.portale-screen img { width: 100%; height: 100%; object-fit: cover; object-position: top left; display: block; }

.portale-steps-wrap { position: relative; overflow: hidden; }
.portale-steps-wrap.is-driven { -webkit-mask-image: linear-gradient(to bottom, #000 78%, transparent 100%); mask-image: linear-gradient(to bottom, #000 78%, transparent 100%); }
.portale-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.5rem; will-change: transform; }
.portale-step-btn {
  width: 100%; text-align: left; display: flex; gap: 1rem; align-items: flex-start;
  background: transparent; color: var(--text); border: 1px solid transparent; border-radius: var(--radius);
  padding: 1.1rem 1.2rem; cursor: pointer; font: inherit;
  transition: background-color .3s var(--ease), border-color .3s var(--ease), opacity .3s var(--ease);
}
.portale-step-btn:hover { background: rgba(245, 243, 238, 0.05); }
.portale-step.is-active .portale-step-btn { background: var(--card); border-color: var(--line); }
.portale-step-num { font-family: var(--font-display); font-weight: 800; font-size: 0.8125rem; color: var(--text-dim); padding-top: 0.25rem; min-width: 1.6rem; transition: color .3s var(--ease); }
.portale-step.is-active .portale-step-num { color: var(--orange); }
.portale-step-body { display: flex; flex-direction: column; gap: 0.3rem; }
.portale-step-body strong { font-family: var(--font-display); font-size: 1.15rem; font-weight: 800; letter-spacing: -0.02em; }
.portale-step-body span { color: var(--text-dim); font-size: 0.95rem; line-height: 1.55; }
.portale-step.is-active .portale-step-body span { color: var(--text); }
.portale-note { margin-top: 1rem; color: var(--text-dim); font-size: 0.8125rem; }

@media (max-width: 960px) {
  .portale { min-height: 0; padding: 6rem var(--pad) 5rem; align-items: stretch; }
  .portale-head { grid-template-columns: 1fr; margin-bottom: 2rem; }
  .portale-head .section-title { font-size: clamp(2.25rem, 5.6vw, 4.25rem); }
  .portale-intro { grid-column: 1; grid-row: auto; margin-top: 1.25rem; font-size: 1.05rem; }
  .portale-grid { grid-template-columns: 1fr; }
  .portale-steps { flex-direction: row; overflow-x: auto; gap: 0.6rem; padding-bottom: 0.5rem; scroll-snap-type: x mandatory; }
  .portale-step { flex: 0 0 min(78vw, 320px); scroll-snap-align: start; }
  .portale-step-btn { border-color: var(--line); height: 100%; }
}

/* ===== Selezione: copertine piccole, ordinate per visualizzazioni ===== */
.selezione { padding: 7rem var(--pad) 8rem; }
.selezione-inner { max-width: var(--container); margin: 0 auto; }
.selezione-head { margin-bottom: 3rem; max-width: 760px; }
.selezione-intro { margin-top: 1.25rem; color: var(--text-dim); font-size: 1.1rem; }
.sel-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: clamp(1rem, 2vw, 1.75rem) clamp(0.75rem, 1.6vw, 1.25rem); }
.sel-card {
  all: unset; box-sizing: border-box; display: flex; flex-direction: column; gap: 0.2rem; width: 100%;
  cursor: pointer; border-radius: 14px;
}
.sel-card:focus-visible { outline: 3px solid var(--orange); outline-offset: 4px; }
.sel-cover {
  position: relative; display: block; aspect-ratio: 4 / 5; border-radius: 12px; overflow: hidden;
  background: #1a1a1a; box-shadow: 0 1px 0 rgba(10, 10, 10, 0.04), 0 10px 24px rgba(10, 10, 10, 0.10);
  margin-bottom: 0.55rem;
}
.sel-cover img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s var(--ease), filter .6s var(--ease); }
.sel-play {
  position: absolute; left: 50%; top: 50%; width: 40px; height: 40px; margin: -20px 0 0 -20px; border-radius: 50%;
  background: rgba(245, 243, 238, 0.92); display: grid; place-items: center;
  opacity: 0; transform: scale(0.85); transition: opacity .3s var(--ease), transform .3s var(--ease);
}
.sel-play svg { width: 16px; height: 16px; fill: var(--ink); margin-left: 2px; }
.sel-card:hover .sel-cover img, .sel-card:focus-visible .sel-cover img { transform: scale(1.05); filter: brightness(0.82); }
.sel-card:hover .sel-play, .sel-card:focus-visible .sel-play { opacity: 1; transform: none; }
.sel-num { font-family: var(--font-display); font-weight: 800; font-size: 1.25rem; letter-spacing: -0.03em; line-height: 1; color: var(--text); }
.sel-item { display: flex; }
.sel-item:first-child { grid-row: span 2; }
.sel-item:first-child .sel-card { height: 100%; }
.sel-item:first-child .sel-cover { flex: 1; aspect-ratio: auto; min-height: 0; }
.sel-item:first-child .sel-num { font-size: 1.75rem; }
.sel-desc { display: none; }
.sel-label { font-size: 0.8125rem; color: var(--text-dim); }
@media (max-width: 720px) {
  .sel-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.1rem 0.7rem; }
  .sel-num { font-size: 1.1rem; }
  .sel-play { opacity: 1; transform: none; width: 32px; height: 32px; margin: -16px 0 0 -16px; }
  .sel-item:first-child { grid-column: 1 / -1; grid-row: auto; }
  .sel-item:first-child .sel-card { flex-direction: row; align-items: center; gap: 1rem; }
  .sel-item:first-child .sel-cover { flex: 0 0 34%; aspect-ratio: 4 / 5; margin-bottom: 0; }
  .sel-item:first-child .sel-num { font-size: 2rem; }
  .sel-item:first-child .sel-text { display: flex; flex-direction: column; gap: 0.3rem; }
  .sel-desc { display: block; font-size: 0.875rem; color: var(--text-dim); line-height: 1.45; }
}
.sel-text { display: contents; }

/* ===== Finestra del video ===== */
.video-dialog {
  padding: 0; border: 0; background: transparent; max-width: min(92vw, 420px); width: 100%; overflow: visible;
}
.video-dialog::backdrop { background: rgba(10, 10, 10, 0.82); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.video-dialog video { display: block; width: 100%; max-height: 82svh; aspect-ratio: 9 / 16; object-fit: contain; background: #000; border-radius: 16px; }
.video-dialog-close {
  position: absolute; top: -52px; right: 0; width: 44px; height: 44px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--paper); color: var(--ink); display: grid; place-items: center;
}
.video-dialog-close svg { width: 20px; height: 20px; }
.video-dialog-close:hover { background: var(--orange); }

/* ===== Schermi bassi (iPhone piccoli, finestre ridotte): l'hero resta tutto dentro ===== */
@media (max-width: 860px) and (max-height: 740px) {
  .hero { padding-top: 5rem; padding-bottom: 5.5rem; }
  .eyebrow { font-size: 0.75rem; margin-bottom: 0.6rem; }
  .hero-title { font-size: clamp(1.9rem, 9vw, 2.4rem); }
  .hero-sub { font-size: 0.95rem; line-height: 1.45; margin-top: 0.75rem; }
  .hero-micro { display: none; }
  .hero-actions { margin-top: 0.9rem; }
  .hero-actions > span { gap: 0.6rem; }
  .btn { min-height: 44px; padding: 0.8rem 1.3rem; }
}

/* ===== Pillar: come nascono ===== */
.obiettivi-intro { margin-top: 0.9rem; color: var(--text-dim); font-size: 1rem; line-height: 1.6; max-width: 680px; }
