/* ==========================================================================
   NectaPlanner — site.css
   Design system della landing pubblica. Autonomo: NON dipende da base.css
   né da v1…v4.css (che restano in vita solo per le vecchie varianti in /v1…/v4).

   Riferimento estetico: software strumentale serio (Linear, Height, Retool)
   riletto per un pubblico industriale. Regole guida:
     · le superfici si separano con un filo di bordo, non con le ombre;
     · un solo accento acceso, usato poche volte e sempre per chiedere un'azione;
     · i numeri si scrivono in monospaziato, perché sono dati e devono sembrarlo;
     · il movimento esiste solo per dimostrare il prodotto.
   ========================================================================== */

/* ==========================================================================
   1. Token
   ========================================================================== */
:root {
  /* Brand — allineati alla web app e ai loghi in assets/brand/ */
  --navy:       #1a3a52;
  --ink:        #192e3e;
  --ink-deep:   #12222e;

  --green:      #1d9e75;   /* superfici, bordi, icone — MAI testo su chiaro (3.3:1) */
  --green-dk:   #168560;
  --green-ink:  #106b4d;   /* la variante leggibile: 6.3:1 su fondo chiaro */
  --green-lt:   #5fd3a8;   /* verde per fondi scuri */
  --green-soft: #eaf6f1;

  /* Segnale. Compare 4 volte in tutta la pagina: 3 CTA + il numero del margine.
     Con label bianca fa 2.86:1 (sotto AA), con label ink fa 4.9:1: la label è ink. */
  --signal:     #ff6b00;
  --signal-lt:  #ff7d1a;
  --signal-soft:#fff1e6;

  /* Neutri */
  --text:       #1f2933;
  --muted:      #52606d;
  --border:     #d9e0e6;
  --border-soft:#e6ecf0;
  --mist:       #f3f6f8;
  --white:      #fafcfd;
  --pure:       #ffffff;

  /* Su fondo scuro */
  --on-dark:        #ffffff;
  --on-dark-muted:  #a8bccb;
  --on-dark-border: rgba(255,255,255,.14);

  /* Il secondo nome di ogni stack è il fallback con metriche adattate
     (vedi fonts.css): tiene lo stesso ingombro del webfont, così quando il
     webfont arriva il testo non si sposta. */
  --font-display: 'Plus Jakarta Sans', 'Jakarta Fallback', system-ui, -apple-system, sans-serif;
  --font-body:    'Inter', 'Inter Fallback', system-ui, -apple-system, sans-serif;
  --font-mono:    'DM Mono', 'Mono Fallback', ui-monospace, 'SFMono-Regular', Consolas, monospace;

  --r-sm: 8px;
  --r:    12px;
  --r-lg: 16px;

  --shadow-frame: 0 24px 60px -32px rgba(19,43,61,.45);

  --pad-section: clamp(4rem, 8vw, 7.5rem);
  --gap: clamp(1rem, 2vw, 1.5rem);
}

/* ==========================================================================
   2. Reset e basi
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--white);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
  margin: 0 0 .5em;
  text-wrap: balance;
}
h1 { font-weight: 800; font-size: clamp(2.35rem, 5vw, 3.75rem); line-height: 1.04; letter-spacing: -.032em; }
h2 { font-weight: 800; font-size: clamp(1.8rem, 3.4vw, 2.6rem);  line-height: 1.12; letter-spacing: -.028em; }
h3 { font-weight: 700; font-size: 1.14rem; line-height: 1.3;  letter-spacing: -.012em; }
h4 { font-weight: 700; font-size: .95rem;  line-height: 1.35; letter-spacing: -.005em; }

p { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }
/* figure ha di suo 40px di margine laterale: senza questo il ledger, la
   citazione e le schermate restano rientrati rispetto alla loro colonna. */
figure, blockquote { margin: 0; }
a { color: inherit; text-decoration: none; }
img, svg { max-width: 100%; height: auto; display: block; }
ul, ol { margin: 0; padding: 0; list-style: none; }
strong, b { font-weight: 600; color: var(--ink); }

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

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

/* Salto rapido al contenuto: la nav sticky è la prima cosa che incontra chi naviga
   da tastiera, e senza questo link deve attraversarla a ogni pagina. */
.skip-link {
  position: absolute; left: 1rem; top: -100px; z-index: 100;
  background: var(--ink); color: var(--on-dark);
  padding: .7rem 1.1rem; border-radius: var(--r-sm); font-weight: 600;
  transition: top .15s ease;
}
.skip-link:focus { top: 1rem; }

/* ==========================================================================
   3. Struttura
   ========================================================================== */
.container { width: min(1200px, 92vw); margin-inline: auto; }
.container--narrow { width: min(840px, 92vw); }

.section { padding: var(--pad-section) 0; }
.section--mist { background: var(--mist); }
.section--dark { background: var(--ink); color: var(--on-dark-muted); }
.section--dark h2, .section--dark h3 { color: var(--on-dark); }
/* Senza questa riga .lead e i paragrafi tengono --muted, che su fondo navy
   fa 1,9:1 di contrasto: praticamente illeggibile. */
.section--dark p, .section--dark .lead { color: var(--on-dark-muted); }
.section--tight { padding-block: clamp(2.5rem, 5vw, 4rem); }

/* L'header è sticky: senza questo, cliccando un link di menu la sezione
   finisce sotto la barra e il titolo non si vede. */
[id] { scroll-margin-top: 84px; }

/* Le sezioni chiare adiacenti hanno bisogno di un filo, o si fondono. */
.section + .section:not(.section--mist):not(.section--dark) { border-top: 1px solid var(--border-soft); }
.section--mist + .section--mist { border-top: 1px solid var(--border); }

.section-head { max-width: 62ch; margin-bottom: clamp(2.2rem, 4vw, 3.2rem); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head p { color: var(--muted); font-size: 1.08rem; }
.section-head p:last-child { margin-bottom: 0; }

.eyebrow {
  display: block;
  font-family: var(--font-mono);
  font-size: .76rem;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--green-ink);
  margin-bottom: .9rem;
}
.section--dark .eyebrow { color: var(--green-lt); }

.lead { font-size: 1.08rem; color: var(--muted); max-width: 62ch; }

/* Reticolo da disegno tecnico: è il fondale di casa: costa zero byte,
   non somiglia a un gradiente e dice "officina" invece di "startup". */
.grid-bg { position: relative; isolation: isolate; }
.grid-bg::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(26,58,82,.055) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(26,58,82,.055) 1px, transparent 1px);
  background-size: 28px 28px;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 0%, #000 20%, transparent 78%);
          mask-image: radial-gradient(ellipse 80% 70% at 50% 0%, #000 20%, transparent 78%);
}

/* ==========================================================================
   4. Bottoni e link d'azione
   ========================================================================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  font: inherit; font-weight: 600; letter-spacing: -.005em;
  padding: .95rem 1.5rem; min-height: 48px;
  border: 1.5px solid transparent; border-radius: var(--r-sm);
  cursor: pointer; text-align: center; line-height: 1.2;
  transition: background .16s ease, border-color .16s ease, color .16s ease, transform .16s ease;
}
.btn:active { transform: translateY(1px); }

/* L'unico bottone acceso della pagina. Label ink, non bianca: vedi nota sui token. */
.btn--cta { background: var(--signal); color: var(--ink); border-color: var(--signal); }
.btn--cta:hover { background: var(--signal-lt); border-color: var(--signal-lt); }

.btn--outline { background: transparent; color: var(--ink); border-color: var(--border); }
.btn--outline:hover { border-color: var(--ink); }
.section--dark .btn--outline { color: var(--on-dark); border-color: var(--on-dark-border); }
.section--dark .btn--outline:hover { border-color: var(--on-dark); }

.btn--lg { padding: 1.05rem 1.9rem; font-size: 1.02rem; min-height: 54px; }
.btn--block { width: 100%; }

/* Il secondario è un link, non un secondo bottone che compete col primo. */
.link-action {
  display: inline-flex; align-items: center; gap: .4rem;
  font-weight: 600; color: var(--ink);
  border-bottom: 1.5px solid var(--border);
  padding-bottom: 2px; min-height: 44px;
  transition: border-color .16s ease, color .16s ease;
}
.link-action:hover { color: var(--green-ink); border-bottom-color: var(--green); }
.link-action svg { width: 16px; height: 16px; }
.section--dark .link-action { color: var(--on-dark); border-bottom-color: var(--on-dark-border); }
.section--dark .link-action:hover { color: var(--green-lt); border-bottom-color: var(--green-lt); }

/* ==========================================================================
   5. Header
   ========================================================================== */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(250,252,253,.86);
  backdrop-filter: saturate(150%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease;
}
.site-header.is-scrolled { border-bottom-color: var(--border); }

.nav { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .8rem 0; }
.nav-logo { display: inline-flex; align-items: center; min-height: 44px; }
.nav-logo img { height: 44px; width: auto; }
.nav-menu { display: flex; align-items: center; gap: clamp(.9rem, 2.2vw, 1.8rem); }
.nav-links { display: flex; align-items: center; gap: clamp(.9rem, 2vw, 1.6rem); }
.nav-links a {
  font-size: .95rem; font-weight: 500; color: var(--muted);
  display: inline-flex; align-items: center; min-height: 44px;
  transition: color .15s ease;
}
.nav-links a:hover { color: var(--ink); }

.lang-switch { display: inline-flex; border: 1px solid var(--border); border-radius: 999px; overflow: hidden; }
/* 44px pieni: su mobile due bottoncini da 33px affiancati si sbagliano. */
.lang-switch a {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-size: .78rem; font-weight: 500;
  min-width: 46px; min-height: 44px; padding: 0 .7rem;
  color: var(--muted); transition: color .15s ease, background .15s ease;
}
.lang-switch a:hover { color: var(--ink); }
.lang-switch a.is-active { background: var(--ink); color: var(--on-dark); }
.lang-switch a.is-active:hover { color: var(--on-dark); }

.nav-toggle {
  display: none; flex-direction: column; gap: 5px;
  width: 44px; height: 44px; align-items: center; justify-content: center;
  background: transparent; border: 1px solid var(--border); border-radius: var(--r-sm); cursor: pointer;
}
.nav-toggle span { width: 20px; height: 1.5px; background: var(--ink); border-radius: 2px; }

@media (max-width: 900px) {
  .nav-toggle { display: flex; }
  .nav { position: relative; }
  .nav-menu {
    position: absolute; top: calc(100% + .8rem); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 1rem;
    background: var(--pure); border: 1px solid var(--border); border-radius: var(--r);
    padding: 1.2rem; box-shadow: var(--shadow-frame);
    opacity: 0; transform: translateY(-8px); pointer-events: none;
    transition: opacity .18s ease, transform .18s ease;
  }
  .nav.is-open .nav-menu { opacity: 1; transform: none; pointer-events: auto; }
  .nav-links { flex-direction: column; align-items: flex-start; gap: .2rem; }
  .nav-links a { width: 100%; }
  .nav-menu .btn { width: 100%; }
  .lang-switch { align-self: flex-start; }
}

/* ==========================================================================
   6. Hero
   ========================================================================== */
.hero { padding: clamp(2.8rem, 6vw, 5.5rem) 0 clamp(3rem, 6vw, 5rem); }
.hero .container {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(2rem, 5vw, 4.5rem); align-items: center;
}
@media (max-width: 1000px) { .hero .container { grid-template-columns: 1fr; gap: 2.5rem; } }

.hero-badge {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--font-mono); font-size: .74rem; font-weight: 500;
  letter-spacing: .1em; text-transform: uppercase; color: var(--green-ink);
  background: var(--green-soft); border: 1px solid rgba(29,158,117,.25);
  border-radius: 999px; padding: .35rem .8rem .35rem .55rem; margin-bottom: 1.4rem;
}
.hero-badge svg { width: 15px; height: 15px; color: var(--green-ink); }

.hero h1 { margin-bottom: 1.1rem; }
/* La parola sottolineata è "fattura": è lì che finisce il ragionamento. */
.hero h1 .mark {
  background: linear-gradient(transparent 62%, rgba(255,107,0,.28) 62%);
  padding-inline: .04em;
}

.hero-sub { font-size: 1.14rem; color: var(--muted); max-width: 54ch; margin-bottom: 1.9rem; }
.hero-sub strong { color: var(--ink); font-weight: 600; }

.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.6rem; }
.hero-micro { font-size: .88rem; color: var(--muted); margin: 1rem 0 0; }

.hero-chips {
  display: flex; flex-wrap: wrap; gap: .5rem;
  margin: 2rem 0 0; padding-top: 1.6rem; border-top: 1px solid var(--border);
}
.hero-chips li {
  font-family: var(--font-mono); font-size: .78rem; color: var(--muted);
  border: 1px solid var(--border); border-radius: var(--r-sm);
  padding: .32rem .6rem; background: var(--pure);
}

/* ==========================================================================
   7. Chrome di finestra e schermate
   ========================================================================== */
.win {
  border: 1px solid var(--border); border-radius: var(--r);
  background: var(--pure); overflow: hidden; box-shadow: var(--shadow-frame);
}
.win-bar {
  display: flex; align-items: center; gap: 7px;
  padding: 10px 14px; background: var(--ink); border-bottom: 1px solid var(--ink-deep);
}
.win-bar i { width: 9px; height: 9px; border-radius: 50%; background: rgba(255,255,255,.22); }
.win-bar .tt {
  font-family: var(--font-mono); font-size: .72rem; color: var(--on-dark-muted);
  margin-left: .6rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.win img { display: block; width: 100%; }

.phone {
  width: min(280px, 74vw); margin-inline: auto;
  border: 8px solid var(--ink); border-radius: 30px;
  background: var(--ink); overflow: hidden; box-shadow: var(--shadow-frame);
}
.phone img { display: block; width: 100%; border-radius: 22px; }

figcaption {
  font-size: .88rem; color: var(--muted); margin-top: .9rem; text-align: center;
}
.shot-tag {
  display: inline-block; font-family: var(--font-mono); font-size: .68rem;
  letter-spacing: .12em; text-transform: uppercase; color: var(--muted);
  border: 1px solid var(--border); border-radius: 4px; padding: .1rem .4rem;
  margin-right: .4rem; vertical-align: 1px;
}

/* ==========================================================================
   8. Flow feed dell'hero — il ciclo di vita di un intervento
   ========================================================================== */
.flow-feed { background: var(--pure); }
.ff-head {
  display: flex; align-items: center; gap: .6rem;
  padding: .85rem 1rem; border-bottom: 1px solid var(--border-soft); flex-wrap: wrap;
}
.ff-head .ff-title { font-weight: 600; font-size: .9rem; color: var(--ink); }
.ff-legend { display: flex; align-items: center; gap: .35rem; margin-left: auto; font-size: .72rem; color: var(--muted); }
.ff-legend span + .ff-av { margin-left: .5rem; }

.ff-av {
  width: 22px; height: 22px; border-radius: 50%; flex: 0 0 22px;
  display: grid; place-items: center;
  font-family: var(--font-mono); font-size: .66rem; font-weight: 500; color: var(--pure);
}
.ff-av--c { background: #557184; }   /* Cliente   */
.ff-av--b { background: var(--navy); }  /* Backoffice */
.ff-av--t { background: var(--green-dk); } /* Tecnico */

.ff-track { padding: .3rem 0; min-height: 268px; }
.ff-step {
  display: flex; align-items: center; gap: .7rem;
  padding: .6rem 1rem; border-bottom: 1px solid var(--border-soft);
  opacity: .16; transform: translateY(4px);
  transition: opacity .4s ease, transform .4s ease;
}
.ff-step.is-in { opacity: 1; transform: none; }
.ff-body { flex: 1; min-width: 0; }
.ff-body b { display: block; font-size: .88rem; font-weight: 600; color: var(--ink); }
.ff-body > span { display: block; font-size: .78rem; color: var(--muted); }
.ff-time { font-family: var(--font-mono); font-size: .72rem; color: var(--muted); white-space: nowrap; }

/* L'ultimo passo è la tesi del prodotto: resta più a lungo e si vede che è diverso. */
.ff-step--final { background: var(--signal-soft); border-bottom: 0; }
.ff-step--final .ff-av { background: var(--signal); color: var(--ink); }
.ff-step--final .ff-time { color: var(--ink); }
.ff-margin { font-family: var(--font-mono); font-weight: 500; color: var(--ink); }

.ff-foot { padding: .7rem 1rem; border-top: 1px solid var(--border-soft); }
.ff-progress { height: 3px; border-radius: 2px; background: var(--border-soft); overflow: hidden; }
.ff-bar { height: 100%; width: 0; background: var(--green); border-radius: 2px; }

/* La riga statica sotto l'animazione: è quello che resta a chi ha il JS spento,
   a chi usa uno screen reader e ai crawler che non eseguono script. */
.flow-static {
  display: flex; flex-wrap: wrap; align-items: center; gap: .35rem .5rem;
  margin-top: 1.1rem; font-family: var(--font-mono); font-size: .76rem; color: var(--muted);
}
.flow-static .sep { color: var(--green-ink); }
.flow-static .end { color: var(--ink); font-weight: 500; }

/* ==========================================================================
   9. Fascia loghi
   ========================================================================== */
.logos { padding-block: clamp(2rem, 4vw, 3rem); background: var(--mist); border-block: 1px solid var(--border); }
.logos-note {
  font-family: var(--font-mono); font-size: .74rem; letter-spacing: .1em;
  text-transform: uppercase; color: var(--muted); text-align: center; margin-bottom: 1.6rem;
}
/* Celle di larghezza fissa: i loghi hanno proporzioni molto diverse (uno è
   quadrato, un altro è 8:1) e lasciandoli liberi nel flex ne entrano otto in una
   riga e uno resta orfano sotto. Con la cella fissa e la riga limitata a 1000px
   escono cinque per riga, sempre. */
.logos-row {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: clamp(1.2rem, 3vw, 2rem);
  max-width: 1000px; margin-inline: auto;
}
.logos-row .lg {
  flex: 0 0 150px; height: 46px;
  display: grid; place-items: center;
}
.logos-row img {
  max-height: 42px; max-width: 100%; width: auto; height: auto; object-fit: contain;
  filter: grayscale(1); opacity: .72;
  /* Metà dei loghi sono JPG/GIF con fondo bianco: senza multiply si vedono i
     rettangoli ritagliati sul grigio della fascia. */
  mix-blend-mode: multiply;
  transition: opacity .2s ease, filter .2s ease;
}
.logos-row img:hover { filter: grayscale(0); opacity: 1; }

/* ==========================================================================
   10. Sezione Problema
   ========================================================================== */
.pain-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: var(--gap);
}
.pain-card {
  background: var(--pure); border: 1px solid var(--border); border-radius: var(--r);
  padding: 1.5rem 1.4rem;
}
.pain-card .ico {
  width: 38px; height: 38px; border-radius: var(--r-sm);
  display: grid; place-items: center; margin-bottom: 1rem;
  background: var(--mist); border: 1px solid var(--border); color: var(--navy);
}
.pain-card .ico svg { width: 19px; height: 19px; }
.pain-card h3 { margin-bottom: .4rem; }
.pain-card p { font-size: .95rem; color: var(--muted); }

.pain-kicker {
  margin-top: clamp(2.2rem, 4vw, 3rem); padding-top: clamp(2rem, 4vw, 2.6rem);
  border-top: 1px solid var(--border);
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(1.35rem, 2.8vw, 2rem); line-height: 1.22; letter-spacing: -.025em;
  color: var(--ink); max-width: 26ch;
}
.pain-kicker em { font-style: normal; color: var(--green-ink); }

/* ==========================================================================
   11. I 4 passi
   ========================================================================== */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border: 1px solid var(--border); border-radius: var(--r); overflow: hidden; background: var(--pure); }
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

.step { padding: 1.6rem 1.4rem; border-right: 1px solid var(--border); position: relative; }
.step:last-child { border-right: 0; }
@media (max-width: 900px) {
  .step { border-bottom: 1px solid var(--border); }
  .step:nth-child(2n) { border-right: 0; }
  .step:nth-last-child(-n+2) { border-bottom: 0; }
}
@media (max-width: 560px) {
  .step { border-right: 0; border-bottom: 1px solid var(--border); }
  .step:last-child { border-bottom: 0; }
}
.step-n {
  display: block; font-family: var(--font-mono); font-size: .74rem; font-weight: 500;
  letter-spacing: .1em; color: var(--green-ink); margin-bottom: .8rem;
}
.step h3 { margin-bottom: .45rem; }
.step p { font-size: .93rem; color: var(--muted); margin-bottom: 1rem; }
.step-proof {
  display: inline-flex; align-items: center; gap: .35rem;
  font-family: var(--font-mono); font-size: .73rem; color: var(--ink);
  background: var(--green-soft); border: 1px solid rgba(29,158,117,.24);
  border-radius: 4px; padding: .22rem .5rem;
}
.step-proof svg { width: 12px; height: 12px; color: var(--green-ink); }

/* Il passo finale è quello che paga: si vede. */
.step--last { background: var(--mist); }

/* ==========================================================================
   12. Una giornata
   ========================================================================== */
.day-row {
  display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
  gap: clamp(2rem, 5vw, 4rem); align-items: center;
  padding-block: clamp(2.5rem, 5vw, 4rem);
  border-top: 1px solid var(--border);
}
.day-row:first-of-type { border-top: 0; padding-top: 0; }
.day-row--flip .day-copy { order: 2; }
@media (max-width: 900px) {
  .day-row { grid-template-columns: 1fr; gap: 2rem; }
  .day-row--flip .day-copy { order: 0; }
}
.day-time {
  display: inline-flex; align-items: baseline; gap: .6rem;
  font-family: var(--font-mono); font-size: .8rem; letter-spacing: .06em;
  color: var(--muted); margin-bottom: 1rem;
}
.day-time b { font-size: 1.5rem; font-weight: 500; color: var(--ink); letter-spacing: -.01em; }
.day-who {
  font-family: var(--font-mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--green-ink); border-left: 2px solid var(--green); padding-left: .5rem;
}
.day-copy h3 { font-size: clamp(1.3rem, 2.4vw, 1.7rem); font-weight: 800; letter-spacing: -.022em; line-height: 1.2; margin-bottom: .7rem; }
.day-copy > p { color: var(--muted); margin-bottom: 1.3rem; }
.day-list { display: grid; gap: .6rem; }
.day-list li { display: flex; gap: .6rem; align-items: flex-start; font-size: .95rem; }
.day-list svg { width: 17px; height: 17px; flex: 0 0 17px; color: var(--green-ink); margin-top: .22em; }

/* ==========================================================================
   13. Marginalità — il conto economico dell'intervento
   ========================================================================== */
.margin-row {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.02fr);
  gap: clamp(2rem, 5vw, 4rem); align-items: center;
}
@media (max-width: 950px) { .margin-row { grid-template-columns: 1fr; gap: 2.5rem; } }

.margin-cols { display: grid; gap: 1.4rem; margin-top: 2rem; }
.margin-cols > li { padding-left: 1.1rem; border-left: 2px solid var(--green); }
.margin-cols h3 { color: var(--on-dark); margin-bottom: .3rem; }
.margin-cols p { font-size: .95rem; color: var(--on-dark-muted); }

/* Il pezzo di grafica più originale della pagina: nessun concorrente mostra
   costo e prezzo affiancati. È un documento, quindi è monospaziato. */
.ledger {
  color: var(--text);
  background: var(--pure); border-radius: var(--r); overflow: hidden;
  border: 1px solid rgba(255,255,255,.1); box-shadow: 0 30px 70px -30px rgba(0,0,0,.6);
}
.ledger-head {
  display: flex; align-items: center; gap: .6rem; flex-wrap: wrap;
  padding: .85rem 1.1rem; background: var(--mist); border-bottom: 1px solid var(--border);
}
.ledger-head b { font-family: var(--font-mono); font-weight: 500; font-size: .82rem; color: var(--ink); }
.ledger-head span { font-size: .8rem; color: var(--muted); }
.ledger-head .tag {
  margin-left: auto; font-family: var(--font-mono); font-size: .66rem;
  letter-spacing: .1em; text-transform: uppercase; color: var(--muted);
  border: 1px solid var(--border); border-radius: 4px; padding: .1rem .4rem; background: var(--pure);
}
.ledger table { width: 100%; border-collapse: collapse; font-family: var(--font-mono); font-size: .82rem; }
.ledger thead th {
  font-weight: 500; font-size: .68rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--muted); text-align: right; padding: .7rem 1.1rem .5rem;
}
.ledger thead th:first-child { text-align: left; }
.ledger td { padding: .48rem 1.1rem; text-align: right; color: var(--text); border-top: 1px solid var(--border-soft); }
.ledger td:first-child { text-align: left; color: var(--ink); }
.ledger td .id { color: var(--green-ink); }
.ledger td .qty { color: var(--muted); display: block; font-size: .74rem; margin-top: .1rem; }
.ledger .cost { color: var(--muted); }
.ledger tfoot td { border-top: 1px solid var(--border); font-weight: 500; color: var(--ink); padding-block: .65rem; }
.ledger tfoot tr.total td { background: var(--mist); }
.ledger tfoot tr.result td { background: var(--ink); color: var(--on-dark); border-top: 0; }
.ledger tfoot tr.result td:first-child { color: var(--on-dark-muted); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; }
/* La seconda (e ultima) evidenza in arancione di tutta la pagina. */
.ledger .pct { color: var(--signal); font-weight: 500; }
.ledger .ledger-foot { padding: .7rem 1.1rem; background: var(--mist); border-top: 1px solid var(--border); font-size: .76rem; color: var(--muted); }

@media (max-width: 420px) {
  .ledger table { font-size: .74rem; }
  .ledger td, .ledger thead th { padding-inline: .7rem; }
}

/* ==========================================================================
   14. Bento delle funzionalità
   ========================================================================== */
.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }
@media (max-width: 950px) { .bento { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .bento { grid-template-columns: 1fr; } }

.f-card {
  display: flex; flex-direction: column;
  background: var(--pure); border: 1px solid var(--border); border-radius: var(--r);
  padding: 1.5rem 1.4rem;
  transition: border-color .18s ease;
}
.f-card:hover { border-color: var(--green); }
.f-card--wide { grid-column: span 2; }
@media (max-width: 620px) { .f-card--wide { grid-column: span 1; } }

.f-head { display: flex; align-items: center; gap: .7rem; margin-bottom: .9rem; }
.f-card .ico { width: 34px; height: 34px; flex: 0 0 34px; border-radius: var(--r-sm); display: grid; place-items: center; background: var(--green-soft); color: var(--green-ink); }
.f-card .ico svg { width: 18px; height: 18px; }
.f-card .num { margin-left: auto; font-family: var(--font-mono); font-size: .74rem; color: var(--muted); }
.f-card h3 { margin-bottom: .35rem; }
.f-card > p { font-size: .95rem; color: var(--muted); margin-bottom: .9rem; }
/* Il dettaglio verificabile: è quello che separa una feature list da una demo. */
.f-detail {
  font-family: var(--font-mono); font-size: .76rem; line-height: 1.55; color: var(--text);
  border-top: 1px dashed var(--border); padding-top: .8rem; margin-top: 1.1rem;
}

/* Mini-GANTT disegnato in CSS: mostra il prodotto senza pesare come uno screenshot. */
.f-visual { margin-top: 1.1rem; border: 1px solid var(--border); border-radius: var(--r-sm); overflow: hidden; background: var(--mist); }
.gantt-mini { display: grid; gap: 5px; padding: .8rem; }
.gantt-mini .row { display: grid; grid-template-columns: 62px 1fr; align-items: center; gap: .6rem; }
.gantt-mini .lbl { font-family: var(--font-mono); font-size: .66rem; color: var(--muted); }
.gantt-mini .track { position: relative; height: 14px; border-radius: 3px; background: var(--pure); border: 1px solid var(--border); overflow: hidden; }
.gantt-mini .bar { position: absolute; top: 2px; bottom: 2px; border-radius: 2px; background: var(--green); }
.gantt-mini .bar.b2 { background: var(--navy); }
.gantt-mini .bar.b3 { background: #557184; }
.gantt-mini .bar.now { background: var(--green-dk); }
.gantt-mini .scale { display: flex; justify-content: space-between; padding-left: 68px; font-family: var(--font-mono); font-size: .6rem; color: var(--muted); margin-top: 2px; }

.f-shot { display: block; width: 100%; }

/* La prova visiva dell'offline: due righe di stato, prima e dopo il ritorno
   della linea. Dice in un colpo d'occhio quello che la FAQ spiega in 60 parole. */
.sync-mini { display: grid; gap: 1px; background: var(--border); font-family: var(--font-mono); font-size: .74rem; }
.sync-mini .r { display: flex; align-items: center; gap: .6rem; padding: .6rem .8rem; background: var(--pure); }
.sync-mini .r svg { width: 15px; height: 15px; flex: 0 0 15px; }
.sync-mini .r .st { color: var(--ink); }
.sync-mini .r .q { margin-left: auto; color: var(--muted); text-align: right; }
.sync-mini .r--off svg { color: var(--muted); }
.sync-mini .r--on  svg { color: var(--green-ink); }
.sync-mini .r--on .q { color: var(--green-ink); }

/* ==========================================================================
   15. Per chi è
   ========================================================================== */
.verticals { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--gap); }
@media (max-width: 760px) { .verticals { grid-template-columns: 1fr; } }
.v-card {
  background: var(--pure); border: 1px solid var(--border); border-radius: var(--r);
  padding: 1.6rem 1.5rem; display: flex; flex-direction: column; gap: .5rem;
}
.v-card .ico { width: 34px; height: 34px; border-radius: var(--r-sm); display: grid; place-items: center; background: var(--mist); border: 1px solid var(--border); color: var(--navy); margin-bottom: .4rem; }
.v-card .ico svg { width: 18px; height: 18px; }
.v-pain { font-size: .95rem; color: var(--muted); margin: 0; }
.v-hook {
  font-size: .95rem; color: var(--ink); font-weight: 600; margin: 0;
  padding-top: .7rem; border-top: 1px dashed var(--border);
}

/* ==========================================================================
   16. Citazione cliente
   ========================================================================== */
.quote-wrap { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 3rem); align-items: center; }
@media (max-width: 860px) { .quote-wrap { grid-template-columns: 1fr; } }
.quote {
  margin: 0; background: var(--pure); border: 1px solid var(--border);
  border-left: 3px solid var(--green); border-radius: var(--r);
  padding: clamp(1.6rem, 3vw, 2.4rem);
}
.quote blockquote {
  margin: 0 0 1.3rem;
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(1.12rem, 2vw, 1.42rem); line-height: 1.38; letter-spacing: -.018em;
  color: var(--ink);
}
.quote figcaption { text-align: left; margin: 0; font-size: .92rem; }
.quote figcaption b { display: block; color: var(--ink); font-weight: 600; }
.quote figcaption span { color: var(--muted); }

.quote-side p { font-size: .95rem; color: var(--muted); }
.quote-side .eyebrow { margin-bottom: .6rem; }
.quote-policy {
  margin-top: 1.2rem; padding-top: 1.1rem; border-top: 1px dashed var(--border);
  font-size: .92rem;
}

/* ==========================================================================
   17. FAQ
   ========================================================================== */
.faq { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(1.6rem, 3vw, 2.6rem) clamp(2rem, 5vw, 4rem); }
@media (max-width: 860px) { .faq { grid-template-columns: 1fr; } }
.faq-item h3 { font-size: 1.06rem; margin-bottom: .55rem; }
.faq-item p { font-size: .96rem; color: var(--muted); max-width: 54ch; }
.faq-item p + p { margin-top: .6rem; }

/* ==========================================================================
   18. CTA finale e form
   ========================================================================== */
.final { background: var(--ink); color: var(--on-dark-muted); }
.final-grid {
  display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
  gap: clamp(2rem, 5vw, 4rem); align-items: start;
}
@media (max-width: 900px) { .final-grid { grid-template-columns: 1fr; gap: 2.5rem; } }
.final h2 { color: var(--on-dark); }
.final .eyebrow { color: var(--green-lt); }
.final .lead { color: var(--on-dark-muted); }

/* La prova sta accanto al punto di conversione, non in una fascia lontana. */
.final-proof { margin-top: 2rem; padding-top: 1.6rem; border-top: 1px solid var(--on-dark-border); }
.final-proof blockquote { margin: 0 0 .8rem; font-size: .98rem; color: var(--on-dark); line-height: 1.55; }
.final-proof cite { font-style: normal; font-size: .86rem; color: var(--on-dark-muted); }

.form-card {
  background: var(--pure); border-radius: var(--r-lg); padding: clamp(1.4rem, 3vw, 2.2rem);
  color: var(--text);
}
.form-card h3 { font-size: 1.24rem; margin-bottom: .3rem; }
.form-card .form-intro { font-size: .93rem; color: var(--muted); margin-bottom: 1.6rem; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }
.form-group { display: flex; flex-direction: column; gap: .35rem; margin-bottom: 1rem; }
.form-group label { font-size: .88rem; font-weight: 600; color: var(--ink); }
.form-group label .req { color: var(--green-ink); }
.form-group label .opt { color: var(--muted); font-weight: 400; }
.form-group input, .form-group textarea {
  font: inherit; font-size: 1rem; padding: .75rem .9rem; min-height: 46px;
  border: 1.5px solid var(--border); border-radius: var(--r-sm);
  background: var(--pure); color: var(--text);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.form-group textarea { min-height: 96px; resize: vertical; }
.form-group input:focus, .form-group textarea:focus {
  outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(29,158,117,.18);
}
.form-group.has-error input, .form-group.has-error textarea { border-color: #c0392b; box-shadow: 0 0 0 3px rgba(192,57,43,.12); }
.field-error { color: #a5271b; font-size: .82rem; min-height: 1em; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-privacy { font-size: .82rem; color: var(--muted); margin: .2rem 0 1.1rem; }
.form-privacy a { text-decoration: underline; text-underline-offset: 2px; }
.form-result { border-radius: var(--r-sm); padding: .8rem 1rem; font-size: .93rem; font-weight: 500; margin-bottom: 1rem; }
.form-result.is-success { background: var(--green-soft); color: var(--green-ink); border: 1px solid rgba(29,158,117,.35); }
.form-result.is-error { background: #fdecea; color: #a5271b; border: 1px solid rgba(192,57,43,.3); }
.form-reassure { font-size: .85rem; color: var(--muted); text-align: center; margin: .9rem 0 0; }

/* ==========================================================================
   19. Footer
   ========================================================================== */
.site-footer { background: var(--ink-deep); color: var(--on-dark-muted); padding: clamp(3rem, 6vw, 4.5rem) 0 2rem; font-size: .95rem; }
.site-footer a { color: var(--on-dark-muted); }
.site-footer a:hover { color: var(--on-dark); }
.footer-grid { display: grid; grid-template-columns: 1.7fr 1fr 1fr; gap: 2.5rem; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer .f-logo { height: 40px; width: auto; margin-bottom: 1.2rem; }
.site-footer h4 { color: var(--on-dark); font-family: var(--font-mono); font-weight: 500; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 1rem; }
.site-footer ul { display: grid; gap: .1rem; }
/* Voci di footer come bersagli, non come righe di testo alte 19px. */
.site-footer ul a, .site-footer ul li { display: inline-flex; align-items: center; min-height: 36px; }
.footer-by { margin-top: .8rem; font-size: .86rem; opacity: .75; }
.footer-bottom {
  margin-top: 3rem; padding-top: 1.4rem; border-top: 1px solid var(--on-dark-border);
  display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; justify-content: space-between;
  font-size: .84rem; opacity: .75;
}

/* ==========================================================================
   20. Movimento
   Il movimento dimostra il prodotto. Non accompagna la lettura: niente testi
   che entrano in dissolvenza allo scroll (rallentano e peggiorano l'LCP).
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important; animation-iteration-count: 1 !important;
    transition-duration: .001ms !important; scroll-behavior: auto !important;
  }
  .ff-step { opacity: 1; transform: none; }
  .ff-bar { width: 100%; }
}
