/* ============================================================
   Audilis v2: foglio di stile condiviso (home, export, crm,
   audilia, metodo, contatti). Le landing storiche (analisi-*,
   lead-generation-export) mantengono i loro stili.
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }

:root {
  --blue: #0a3d91;
  --blue-deep: #072d6a;
  --blue-ink: #0b2a5c;
  --blue-soft: #e9eff9;
  --blue-line: #4a72b0;
  --gold: #e8a020;
  --gold-soft: #ffcc76;
  --gold-bg: #fff5df;
  --ink: #132436;
  --muted: #516171;
  --line: #dbe1e8;
  --paper: #f6f7f9;
  --white: #ffffff;
  --ok: #0a7c42;
  --ok-bg: #e8f5ee;
  --serif: 'Source Serif 4', Georgia, 'Times New Roman', serif;
  --sans: 'DM Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --gutter: clamp(16px, 5vw, 56px);
  --max: 1240px;
}

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--white); color: var(--ink);
  font-family: var(--sans); font-size: 17px; line-height: 1.65;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; }
p { margin: 0 0 1em; color: var(--muted); }
strong { color: var(--ink); font-weight: 700; }
h1, h2, h3, h4 { margin: 0; color: var(--ink); font-weight: 500; }
h1 { font-size: clamp(36px, 4.3vw, 60px); line-height: 1.04; letter-spacing: -0.035em; color: var(--blue); }
h1 strong { color: inherit; font-weight: 700; }
h2 { font-size: clamp(29px, 3.4vw, 46px); line-height: 1.12; letter-spacing: -0.03em; }
h3 { font-size: clamp(21px, 2vw, 25px); line-height: 1.25; letter-spacing: -0.015em; }
h4 { font-size: 15px; font-weight: 700; letter-spacing: 0; }
ul, ol { margin: 0; padding: 0; }
button { font: inherit; cursor: pointer; }

:focus-visible { outline: 3px solid var(--gold); outline-offset: 4px; border-radius: 2px; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--gold); color: var(--ink); padding: 10px 16px; z-index: 200; font-weight: 700; }
.skip:focus { left: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { max-width: var(--max); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.section { padding: clamp(56px, 8vw, 104px) 0; }
.section.tight { padding-top: clamp(40px, 5vw, 64px); }
.paper { background: var(--paper); }
.band { background: var(--blue); color: var(--white); }
.band p { color: #d5e1f3; }
.band strong, .band h2, .band h3, .band h4 { color: var(--white); }
.band .eyebrow { color: var(--gold-soft); }
.deep { background: var(--blue-deep); }

/* ── Header ── */
.site-header { position: sticky; top: 0; z-index: 100; background: var(--blue); color: var(--white); }
.nav { display: flex; align-items: center; gap: 28px; min-height: 68px; }
.brand { display: block; margin-right: auto; padding: 6px 0; }
.brand img { height: 27px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 26px; list-style: none; font-size: 15px; }
.nav-links a { text-decoration: none; color: #e3ebf7; padding: 8px 0; border-bottom: 2px solid transparent; }
.nav-links a:hover { color: var(--white); }
.nav-links a[aria-current="page"] { color: var(--white); border-bottom-color: var(--gold); }
.nav-cta { background: var(--white); color: var(--blue) !important; padding: 10px 16px !important; border: 0 !important; font-weight: 700; }
.nav-cta:hover { background: var(--blue-soft); }
.menu-btn { display: none; background: none; border: 1px solid #7896c3; color: var(--white); padding: 9px 14px; font-size: 14px; min-height: 44px; }

/* ── Tipografia di servizio ── */
.eyebrow { display: flex; align-items: center; gap: 12px; margin: 0 0 22px; font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--blue); }
.eyebrow::before { content: ''; width: 34px; height: 2px; background: var(--gold); flex: none; }
.lead { font-size: clamp(18px, 1.6vw, 21px); line-height: 1.55; color: var(--ink); max-width: 640px; }
.small { font-size: 14px; line-height: 1.6; }
.caption { font-size: 13px; line-height: 1.5; color: var(--muted); }
.num { font-family: var(--serif); font-weight: 400; color: var(--blue); line-height: 1; }
.serif { font-family: var(--serif); }
.demo-flag { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: #674a16; background: var(--gold-bg); padding: 5px 10px; }
.band .demo-flag { background: rgba(255,204,118,0.16); color: var(--gold-soft); }

/* ── Bottoni e link ── */
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.btn { display: inline-flex; align-items: center; justify-content: space-between; gap: 22px; min-height: 52px; padding: 14px 22px; background: var(--gold); color: var(--ink); border: 1px solid var(--gold); text-decoration: none; font-size: 15px; font-weight: 700; transition: transform .2s, background .2s; }
.btn:hover { background: var(--gold-soft); transform: translateY(-2px); }
.btn.call { background: var(--blue); border-color: var(--blue); color: var(--white); }
.btn.call:hover { background: var(--blue-deep); border-color: var(--blue-deep); }
.band .btn.call { background: var(--white); border-color: var(--white); color: var(--blue); }
.band .btn.call:hover { background: var(--blue-soft); }
.chip-l { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 9px 14px; background: var(--blue-soft); color: var(--blue); border: 0; font-size: 14px; font-weight: 700; }
.chip-l:hover { background: #dbe6f6; }
.cta-pair { display: flex; flex-wrap: wrap; gap: 18px 26px; margin-top: 32px; }
.cta-pair > div { max-width: 262px; }
.cta-note { font-size: 13.5px; line-height: 1.45; margin: 10px 0 0; }
.hero .textlink { margin-top: 18px; }
.btn.ghost { background: transparent; border-color: var(--blue); color: var(--blue); }
.btn.ghost:hover { background: var(--blue-soft); }
.band .btn.ghost { border-color: #8aa4ca; color: var(--white); }
.band .btn.ghost:hover { background: rgba(255,255,255,0.08); }
.textlink { display: inline-block; padding: 8px 0; font-size: 15px; font-weight: 700; color: var(--blue); text-decoration: none; border-bottom: 2px solid var(--gold); }
.textlink:hover { color: var(--blue-deep); }
.band .textlink { color: var(--white); }

/* ── Hero ── */
.hero { padding: clamp(44px, 7vw, 92px) 0 clamp(40px, 6vw, 72px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero h1 { margin: 0 0 26px; }
.hero .lead { margin-bottom: 14px; }
.clarity { font-size: 17px; color: var(--ink); border-left: 3px solid var(--gold); padding: 4px 0 4px 16px; margin: 22px 0 0; max-width: 600px; }
.trust { display: flex; flex-wrap: wrap; gap: 12px 40px; padding: 22px 0; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.trust strong { color: var(--blue); }

/* Pannello blu con tre ingressi (home) */
.doors { background: var(--blue); color: var(--white); padding: clamp(22px, 3vw, 36px); }
.doors .cap { font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-soft); font-weight: 700; margin: 0 0 6px; }
.door { display: grid; grid-template-columns: 46px 1fr 22px; gap: 12px; align-items: start; padding: 24px 0; border-bottom: 1px solid var(--blue-line); text-decoration: none; }
.door:last-child { border-bottom: 0; padding-bottom: 6px; }
.door .num { color: var(--gold-soft); font-size: 26px; }
.door b { display: block; font-size: clamp(21px, 2vw, 25px); font-weight: 500; letter-spacing: -0.01em; }
.door small { display: block; margin-top: 6px; color: #c3d3ec; font-size: 14px; line-height: 1.5; }
.door .arrow { color: var(--gold); font-size: 20px; transition: transform .2s; }
a.door:hover .arrow { transform: translate(3px, -3px); }
a.door:hover b { text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 5px; }

/* ── Griglie ── */
.intro { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 64px); align-items: end; margin-bottom: clamp(32px, 4vw, 52px); }
.intro p { max-width: 520px; margin: 0; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.split.center { align-items: center; }
.split.wide-left { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); }
.cols-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 3vw, 40px); }
.cols-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(20px, 2.4vw, 32px); }

.rule-item { border-top: 2px solid var(--blue); padding-top: 20px; }
.rule-item .num { font-size: 44px; display: block; margin-bottom: 14px; }
.rule-item h3 { margin-bottom: 10px; }
.rule-item p { font-size: 15.5px; margin: 0; }
.band .rule-item { border-top-color: var(--gold); }
.band .rule-item .num { color: var(--gold-soft); }

/* ── Home: tre aree, ognuna con un'anteprima diversa ── */
.area { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(28px, 5vw, 72px); align-items: center; padding: clamp(40px, 5vw, 64px) 0; border-top: 1px solid var(--line); }
.area:first-of-type { border-top: 0; }
.area.flip .area-text { order: 2; }
.area .tag { font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 700; color: var(--muted); display: flex; gap: 14px; align-items: baseline; margin-bottom: 12px; }
.area .tag .num { font-size: 40px; letter-spacing: 0; text-transform: none; }
.area h3 { font-size: clamp(26px, 2.8vw, 36px); letter-spacing: -0.025em; margin-bottom: 14px; }
.area .promise { font-size: 19px; color: var(--ink); line-height: 1.5; }
.area ul.facts { list-style: none; margin: 18px 0 22px; }
.area ul.facts li { padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 15.5px; color: var(--muted); }
.area ul.facts li::before { content: '→'; color: var(--gold); font-weight: 700; margin-right: 10px; }
.area-visual { background: var(--white); border: 1px solid var(--line); padding: clamp(18px, 2.5vw, 28px); }
.paper .area-visual { background: var(--white); }

/* ── Passi in sequenza ── */
.steps { border-top: 1px solid var(--line); }
.step { display: grid; grid-template-columns: 96px minmax(0, 1fr) minmax(0, 1fr); gap: clamp(16px, 3vw, 36px); padding: clamp(26px, 3vw, 38px) 0; border-bottom: 1px solid var(--line); align-items: start; }
.step .num { font-size: 56px; }
.step h3 { margin-bottom: 10px; }
.step p { font-size: 16px; margin-bottom: 10px; }
.out { background: var(--white); border-left: 3px solid var(--gold); padding: 18px 20px; font-size: 15px; color: var(--muted); }
.paper .out { background: var(--white); }
.out strong { display: block; color: var(--blue); margin-bottom: 6px; font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; }
.out dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; }
.out dt { font-weight: 700; color: var(--ink); font-size: 14px; }
.out dd { margin: 0; font-size: 14px; }
.out .go { margin-top: 12px; }

/* ── Liste di controllo ── */
.checks { list-style: none; }
.checks li { padding: 14px 0 14px 30px; border-bottom: 1px solid var(--line); position: relative; font-size: 16px; line-height: 1.5; color: var(--muted); }
.checks li::before { content: '↗'; position: absolute; left: 0; color: var(--gold); font-weight: 700; }
.checks li strong { color: var(--ink); }
.band .checks li { border-color: var(--blue-line); color: #d5e1f3; }
.band .checks li strong { color: #fff; }
.checks.no li::before { content: '×'; color: #a3483b; font-size: 19px; line-height: 1.2; }

/* ── Stato dei blocchi: ogni etichetta dice cosa e perché ── */
.status { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; padding: 4px 9px; }
.status::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.st-ok { color: var(--ok); background: var(--ok-bg); }
.st-dev { color: #8a5a00; background: var(--gold-bg); }
.st-plan { color: var(--muted); background: #edf0f4; }
.status-legend { display: grid; gap: 12px; margin-top: 18px; }
.status-legend div { display: grid; grid-template-columns: 170px 1fr; gap: 14px; align-items: start; font-size: 14.5px; color: var(--muted); }

/* ── Demo Export: tre output ── */
.xdemo { background: var(--white); border: 1px solid var(--line); }
.xtabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-bottom: 1px solid var(--line); }
.xtab { background: var(--paper); border: 0; border-right: 1px solid var(--line); padding: 16px 18px; text-align: left; color: var(--muted); min-height: 64px; position: relative; }
.xtab:last-child { border-right: 0; }
.xtab b { display: block; color: var(--ink); font-size: 15px; font-weight: 700; }
.xtab span { font-size: 13px; }
.xtab .num { font-size: 18px; margin-right: 6px; }
.xtab[aria-selected="true"] { background: var(--white); }
.xtab[aria-selected="true"]::after { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--gold); }
.xpanel { padding: clamp(18px, 3vw, 32px); }
.no-js .xtabs { display: none; }
.xpanel + .xpanel { border-top: 1px solid var(--line); }
.js .xpanel + .xpanel { border-top: 0; }
.xpanel-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 20px; align-items: baseline; margin-bottom: 18px; }
.xpanel-head h4 { font-size: 17px; }
.xgrid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(18px, 3vw, 32px); align-items: start; }
.matrix svg { width: 100%; height: auto; }
.matrix .dot { transition: r .35s, fill .35s; }
.matrix .lbl { font: 13px var(--sans); fill: var(--ink); }
.matrix .pick .lbl { font-weight: 700; fill: var(--blue); }
.rank { list-style: none; counter-reset: r; }
.rank li { counter-increment: r; display: grid; grid-template-columns: 30px 1fr; gap: 10px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 15px; color: var(--muted); }
.rank li::before { content: counter(r); font-family: var(--serif); font-size: 20px; color: var(--blue); }
.rank li strong { display: block; }
.sheet { border-left: 3px solid var(--gold); padding: 4px 0 4px 18px; }
.sheet h5 { margin: 0 0 4px; font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--blue); }
.sheet p { font-size: 15px; margin-bottom: 14px; }
.barriers { list-style: none; }
.barriers li { display: grid; grid-template-columns: 74px 1fr; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; color: var(--muted); }
.lvl { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; padding: 3px 6px; text-align: center; align-self: start; }
.lvl.hi { background: #fbe3df; color: #8f2f22; }
.lvl.md { background: var(--gold-bg); color: #7a5208; }
.lvl.lo { background: var(--ok-bg); color: var(--ok); }
.contact-card { border: 1px solid var(--line); }
.contact-card .row { display: grid; grid-template-columns: 110px 1fr; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); font-size: 15px; }
.contact-card .row:last-child { border-bottom: 0; }
.contact-card .k { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); padding-top: 2px; }
.contact-card .v { color: var(--ink); }
.contact-card .v.ph { color: var(--muted); font-style: italic; }
.contact-card .ok { color: var(--ok); font-weight: 700; }
.contact-card .note { background: var(--paper); }

/* ── Demo CRM: rete e dossier ── */
.crm-demo { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); background: var(--blue-deep); color: var(--white); }
.crm-net { padding: clamp(16px, 2.5vw, 28px); border-right: 1px solid var(--blue-line); }
.crm-net svg { width: 100%; height: auto; }
.crm-net .edge { stroke: #5d80b8; stroke-width: 1.5; fill: none; transition: stroke .4s, stroke-width .4s, opacity .4s; }
.crm-net .edge.path { stroke-dasharray: 6 6; }
.crm-net.on .edge { opacity: .35; }
.crm-net.on .edge.path { stroke: var(--gold); stroke-width: 3; opacity: 1; stroke-dasharray: none; }
.crm-net .node rect { fill: var(--blue); stroke: #7896c3; stroke-width: 1; transition: fill .4s, stroke .4s; }
.crm-net .node text { fill: var(--white); font: 13px var(--sans); }
.crm-net .node text.r { fill: #b9cbe6; font-size: 11px; }
.crm-net.on .node.path rect { stroke: var(--gold); stroke-width: 2; }
.crm-net .node.opp rect { fill: var(--white); stroke: var(--gold); stroke-width: 2; }
.crm-net .node.opp text { fill: var(--blue); font-weight: 700; }
.crm-net .node.opp text.r { fill: var(--muted); font-weight: 400; }
.crm-net .elbl { font: 10.5px var(--sans); fill: #9fb6da; transition: fill .4s; }
.crm-net.on .elbl.path { fill: var(--gold-soft); }
.crm-ctrl { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.chip { background: transparent; border: 1px solid #7896c3; color: var(--white); padding: 10px 14px; font-size: 14px; min-height: 44px; }
.chip[aria-pressed="true"] { background: var(--gold); border-color: var(--gold); color: var(--ink); font-weight: 700; }
.dossier { padding: clamp(18px, 2.5vw, 28px); background: var(--white); color: var(--ink); }
.dossier h4 { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--blue); margin: 0 0 4px; }
.dossier .dtitle { font-size: 20px; font-weight: 700; letter-spacing: -0.01em; margin: 0 0 14px; line-height: 1.3; color: var(--ink); }
.dossier dl { margin: 0 0 14px; display: grid; grid-template-columns: 104px 1fr; gap: 8px 12px; font-size: 14px; }
.dossier dt { color: var(--muted); font-weight: 700; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; padding-top: 2px; }
.dossier dd { margin: 0; color: var(--ink); }
.dossier .src { color: var(--muted); font-size: 12.5px; }
.dossier .route { display: none; }
.dossier.on .route { display: grid; }
.dossier .route-hint { font-size: 14px; color: var(--muted); border: 1px dashed var(--line); padding: 10px 12px; margin-bottom: 14px; }
.dossier.on .route-hint { display: none; }
.next { border-top: 1px solid var(--line); padding-top: 14px; }
.modes { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border: 1px solid var(--blue); margin-bottom: 12px; }
.modes button { background: var(--white); border: 0; padding: 10px 8px; font-size: 13.5px; color: var(--blue); min-height: 44px; }
.modes button + button { border-left: 1px solid var(--blue); }
.modes button[aria-pressed="true"] { background: var(--blue); color: var(--white); font-weight: 700; }
.mode-body { font-size: 14.5px; }
.mode-body p { font-size: 14.5px; margin: 0 0 8px; }
.draft { background: var(--paper); border-left: 3px solid var(--gold); padding: 10px 12px; color: var(--ink); font-size: 14px; }
.fake-input { border: 1px solid var(--line); padding: 10px 12px; color: var(--muted); font-style: italic; font-size: 14px; background: var(--white); }
.approve { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.approve span { font-size: 13px; font-weight: 700; padding: 7px 12px; border: 1px solid var(--blue); color: var(--blue); }
.approve span.primary { background: var(--blue); color: var(--white); }
.js .mode-body[hidden] { display: none; }
.no-js .mode-body[hidden] { display: block; }
.no-js .mode-body + .mode-body { margin-top: 14px; border-top: 1px dashed var(--line); padding-top: 14px; }
.no-js .modes, .no-js .crm-ctrl { display: none; }
.no-js .crm-net .edge.path { stroke: var(--gold); stroke-width: 3; stroke-dasharray: none; }
.no-js .dossier .route { display: grid; }
.no-js .dossier .route-hint { display: none; }

/* ── Architettura CRM ── */
.layers { display: grid; gap: 0; border: 1px solid var(--blue-line); }
.layer { display: grid; grid-template-columns: 54px minmax(0, 1fr) minmax(0, 1.2fr); gap: 18px; padding: 20px 22px; border-bottom: 1px solid var(--blue-line); align-items: start; }
.layer:last-child { border-bottom: 0; background: rgba(232,160,32,0.12); }
.layer .num { color: var(--gold-soft); font-size: 30px; }
.layer h3 { font-size: 20px; }
.layer p { margin: 0; font-size: 15px; }

/* ── Demo Audilia: nucleo e blocchi ── */
.ademo { background: var(--white); border: 1px solid var(--line); }
.adiagram { padding: clamp(14px, 2.5vw, 26px); border-bottom: 1px solid var(--line); background: var(--paper); }
.adiagram svg { width: 100%; height: auto; }
.blk rect.box { fill: var(--white); stroke: var(--line); stroke-width: 1.5; transition: stroke .35s, fill .35s; }
.blk text { font: 14px var(--sans); fill: var(--ink); }
.blk text.t { font-weight: 700; font-size: 15px; }
.blk text.s { font-size: 11px; fill: var(--muted); letter-spacing: .04em; text-transform: uppercase; font-weight: 700; }
.blk.plan rect.box { stroke-dasharray: 5 4; }
.blk.active rect.box { stroke: var(--gold); stroke-width: 3; fill: #fffaf0; }
.core rect { fill: var(--blue); }
.core text { fill: var(--white); font: 13px var(--sans); }
.core text.t { font-weight: 700; font-size: 16px; }
.wire { stroke: #9db1cf; stroke-width: 1.5; fill: none; transition: stroke .35s, stroke-width .35s; }
.wire.active { stroke: var(--gold); stroke-width: 3; }
.token { fill: var(--gold); transition: transform .6s cubic-bezier(.4,.1,.2,1); }
.astep-nav { display: flex; flex-wrap: wrap; gap: 8px; padding: 16px clamp(14px, 2.5vw, 26px) 0; }
.astep-nav button { background: var(--white); border: 1px solid var(--line); padding: 9px 13px; font-size: 14px; color: var(--ink); min-height: 44px; }
.astep-nav button[aria-pressed="true"] { border-color: var(--blue); background: var(--blue); color: var(--white); font-weight: 700; }
.astep { padding: 18px clamp(14px, 2.5vw, 26px) clamp(18px, 2.5vw, 26px); }
.js .astep[hidden] { display: none; }
.no-js .astep + .astep { border-top: 1px solid var(--line); }
.no-js .astep-nav { display: none; }
.no-js .astep[hidden] { display: block; }
.astep-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(16px, 3vw, 32px); align-items: start; }
.astep h4 { font-size: 18px; margin: 8px 0 8px; }
.astep p { font-size: 15px; }
.screen { border: 1px solid var(--line); background: var(--white); font-size: 14px; }
.screen .bar { display: flex; justify-content: space-between; gap: 10px; padding: 8px 12px; background: var(--blue); color: var(--white); font-size: 12px; letter-spacing: .04em; }
.screen .body { padding: 12px 14px; }
.screen .body p { font-size: 14px; color: var(--ink); margin: 0 0 8px; }
.screen .meta { font-size: 12.5px; color: var(--muted); }
.screen .cite { border-left: 3px solid var(--gold); background: var(--paper); padding: 8px 10px; font-size: 13.5px; color: var(--ink); margin: 8px 0; }
.screen table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.screen th, .screen td { text-align: left; padding: 7px 6px; border-bottom: 1px solid var(--line); vertical-align: top; }
.screen th { font-size: 11.5px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }

.roadmap { list-style: none; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; border-top: 2px solid var(--blue); }
.roadmap li { padding: 18px 16px 0 0; position: relative; }
.roadmap li::before { content: ''; position: absolute; top: -7px; left: 0; width: 12px; height: 12px; border-radius: 50%; background: var(--blue); }
.roadmap li.plan::before { background: var(--white); border: 2px solid var(--blue); }
.roadmap h3 { font-size: 19px; margin: 8px 0 6px; }
.roadmap p { font-size: 14.5px; margin: 0; }

/* ── Profilo ── */
.profile { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: clamp(24px, 4vw, 48px); align-items: start; }
.profile img { width: 220px; height: 220px; object-fit: cover; filter: grayscale(.15); }
.creds { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 28px; margin-top: 18px; }
.creds li { padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 15px; color: var(--muted); }
.creds li strong { display: block; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--blue); }
.origin svg { width: 100%; height: auto; }

/* ── FAQ ── */
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 18px 36px 18px 0; font-weight: 700; color: var(--ink); list-style: none; position: relative; font-size: 17px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 4px; top: 14px; font-size: 24px; color: var(--blue); font-weight: 400; }
.faq details[open] summary::after { content: '−'; }
.faq details p { padding-bottom: 8px; max-width: 780px; }

/* ── Contatti ── */
.routes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 2px solid var(--blue); }
.route-card { padding: 26px 26px 26px 0; border-right: 1px solid var(--line); display: flex; flex-direction: column; }
.route-card + .route-card { padding-left: 26px; }
.route-card:last-child { border-right: 0; }
.route-card h3 { margin: 10px 0 10px; }
.route-card p { font-size: 15.5px; flex: 1; }
.contact-band { padding: clamp(52px, 7vw, 84px) 0; }
.contact-band h2 { margin-bottom: 18px; }
.mail-big { display: inline-block; font-size: clamp(20px, 2.4vw, 30px); color: var(--white); text-decoration: none; border-bottom: 2px solid var(--gold); padding-bottom: 6px; word-break: break-word; }
.mail-big:hover { color: var(--gold-soft); }

/* ── Fascia contatti: due azioni distinte ── */
.cb-head { max-width: 720px; margin-bottom: clamp(26px, 3vw, 40px); }
.cb-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--blue-line); }
.cb-card { padding: 28px clamp(0px, 3vw, 40px) 8px 0; display: flex; flex-direction: column; align-items: flex-start; }
.cb-card + .cb-card { border-left: 1px solid var(--blue-line); padding-left: clamp(20px, 3vw, 40px); }
.cb-card .k { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; color: var(--gold-soft); margin: 0 0 8px; }
.cb-card h3 { margin-bottom: 10px; }
.cb-card p { font-size: 15.5px; flex: 1; max-width: 460px; }
.cb-card .btn { margin-top: 8px; }
.cb-mail { margin: 34px 0 0; font-size: 15px; }
.cb-mail a { color: var(--white); border-bottom: 1px solid var(--gold); text-decoration: none; }

/* ── Scheda offerta: sei risposte ── */
.facts6 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 2px solid var(--blue); }
.facts6 div { padding: 20px 24px 22px 0; border-bottom: 1px solid var(--line); }
.facts6 div:not(:nth-child(3n+1)) { padding-left: 24px; border-left: 1px solid var(--line); }
.facts6 h3 { font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--blue); font-weight: 700; margin: 0 0 8px; }
.facts6 p { font-size: 15.5px; margin: 0; }
.facts6 .go { background: var(--gold-bg); padding-left: 24px; }

/* ── Richiesta 30 contatti ── */
.lead-form { background: var(--white); border: 1px solid var(--line); border-top: 4px solid var(--gold); padding: clamp(20px, 3vw, 32px); box-shadow: 0 20px 50px rgba(10,61,145,.08); }
.lead-form h3 { margin-bottom: 18px; }
.field { display: block; margin-bottom: 16px; }
.field > span, .field > label > span { display: block; font-size: 14px; font-weight: 700; color: var(--ink); margin-bottom: 6px; }
.field small { display: block; font-size: 12.5px; color: var(--muted); font-weight: 400; }
.field input[type=text], .field input[type=email], .field textarea { width: 100%; font: inherit; font-size: 16px; color: var(--ink); background: var(--white); border: 1px solid #b8c4d3; padding: 11px 12px; border-radius: 0; }
.field textarea { min-height: 76px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: 3px solid var(--gold); outline-offset: 1px; border-color: var(--blue); }
.field input:disabled { background: var(--paper); color: var(--muted); }
.tbd { display: flex; gap: 10px; align-items: center; margin-top: 8px; font-size: 14.5px; color: var(--ink); cursor: pointer; }
.tbd input { width: 20px; height: 20px; accent-color: var(--blue); }
.lead-form .btn { width: 100%; border: 0; margin-top: 6px; }
.form-status { margin: 14px 0 0; font-size: 14.5px; color: var(--ink); }
.form-status:empty { display: none; }
.form-status.ok { background: var(--ok-bg); padding: 12px 14px; }
.form-status.err { background: #fbe3df; padding: 12px 14px; }
.after { list-style: none; counter-reset: a; margin-top: 18px; }
.after li { counter-increment: a; display: grid; grid-template-columns: 34px 1fr; gap: 8px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 15.5px; color: var(--muted); }
.after li::before { content: counter(a); font-family: var(--serif); font-size: 22px; color: var(--blue); line-height: 1.1; }

@media (max-width: 899px) {
  .facts6 { grid-template-columns: 1fr 1fr; }
  .facts6 div, .facts6 div:not(:nth-child(3n+1)) { padding: 18px 18px 18px 0; border-left: 0; }
  .facts6 div:nth-child(even) { padding-left: 18px; border-left: 1px solid var(--line); }
  .cb-grid { grid-template-columns: 1fr; }
  .cb-card, .cb-card + .cb-card { padding: 24px 0; border-left: 0; }
  .cb-card + .cb-card { border-top: 1px solid var(--blue-line); }
}
@media (max-width: 640px) {
  .facts6 { grid-template-columns: 1fr; }
  .facts6 div, .facts6 div:nth-child(even), .facts6 div:not(:nth-child(3n+1)) { padding: 16px 0; border-left: 0; }
  .facts6 .go { padding-left: 14px; }
  .cta-pair > div { max-width: none; width: 100%; }
}

/* ── Footer ── */
.site-footer { background: var(--blue-deep); color: #c7d5ea; padding: 52px 0 28px; font-size: 14px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.site-footer img { height: 24px; width: auto; margin-bottom: 14px; }
.site-footer p { color: #aebfd9; font-size: 14px; }
.site-footer h4 { color: var(--gold-soft); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; margin: 0 0 12px; }
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { color: #dfe8f5; text-decoration: none; }
.site-footer a:hover { color: var(--white); text-decoration: underline; }
.foot-meta { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 40px; padding-top: 20px; border-top: 1px solid #23477f; font-size: 13px; color: #9fb2cf; }

/* ── Movimento: solo se JS attivo e movimento consentito ── */
.motion .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.motion .reveal.visible { opacity: 1; transform: none; }

@media (max-width: 960px) {
  .cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .crm-demo { grid-template-columns: 1fr; }
  .crm-net { border-right: 0; border-bottom: 1px solid var(--blue-line); }
  .roadmap { grid-template-columns: 1fr; border-top: 0; border-left: 2px solid var(--blue); padding-left: 0; }
  .roadmap li { padding: 0 0 22px 24px; }
  .roadmap li::before { top: 4px; left: -7px; }
}

@media (max-width: 820px) {
  body { font-size: 16px; }
  .nav { min-height: 60px; gap: 12px; }
  .brand img { height: 24px; }
  .js .menu-btn { display: inline-flex; align-items: center; }
  .js .nav-links { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--blue); flex-direction: column; align-items: stretch; gap: 0; padding: 8px var(--gutter) 20px; border-top: 1px solid var(--blue-line); box-shadow: 0 14px 24px rgba(7,45,106,.25); }
  .js .nav-links.open { display: flex; }
  .js .nav-links a { display: block; padding: 14px 0; border-bottom: 1px solid var(--blue-line); font-size: 17px; }
  .js .nav-links a[aria-current="page"] { border-bottom-color: var(--blue-line); color: var(--gold-soft); }
  .js .nav-links .nav-cta { margin-top: 14px; text-align: center; padding: 14px !important; }
  .no-js .nav { flex-wrap: wrap; padding-bottom: 10px; }
  .no-js .nav-links { flex-wrap: wrap; gap: 6px 18px; width: 100%; }
  .hero-grid, .intro, .split, .split.wide-left, .area, .xgrid, .astep-grid, .profile { grid-template-columns: 1fr; }
  .area.flip .area-text { order: 0; }
  .cols-3 { grid-template-columns: 1fr; }
  .step { grid-template-columns: 52px minmax(0, 1fr); }
  .step .num { font-size: 40px; }
  .step .out { grid-column: 2; }
  .layer { grid-template-columns: 40px minmax(0, 1fr); padding: 18px 16px; }
  .layer p { grid-column: 2; }
  .routes { grid-template-columns: 1fr; }
  .route-card, .route-card + .route-card { padding: 22px 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .btn { width: 100%; }
  .creds { grid-template-columns: 1fr; }
  .profile img { width: 140px; height: 140px; }
  .status-legend div { grid-template-columns: 1fr; gap: 4px; }
  .xtab { padding: 12px 10px; }
  .xtab span { display: none; }
}

@media (max-width: 520px) {
  .cols-4, .foot-grid { grid-template-columns: 1fr; }
  .contact-card .row { grid-template-columns: 1fr; gap: 2px; }
  .dossier dl { grid-template-columns: 1fr; gap: 2px 0; }
  .dossier dd { margin-bottom: 8px; }
  .barriers li { grid-template-columns: 64px 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0s !important; animation: none !important; }
  .btn:hover { transform: none; }
}

/* Varianti SVG: larga su desktop, verticale su telefono (testo leggibile) */
.svg-narrow { display: none !important; }
@media (max-width: 640px) {
  .svg-wide { display: none !important; }
  .svg-narrow { display: block !important; }
}

/* ── Home corta: apertura, tre offerte, fondatore in una riga ── */
.home-hero { position: relative; overflow: hidden; isolation: isolate; min-height: min(64vh, 620px); display: flex; align-items: center; padding: clamp(56px, 9vw, 120px) 0 clamp(48px, 7vw, 88px); }
.home-hero .home-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 62% 50%; z-index: -2; }
.home-hero::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(100deg, rgba(10,61,145,.94) 0%, rgba(10,61,145,.86) 48%, rgba(7,30,74,.62) 100%); }
.home-hero .eyebrow { color: var(--gold-soft); }
.home-hero .wrap { max-width: 980px; }
.home-hero h1 { color: var(--white); margin: 0 0 22px; }
.home-hero .lead { color: #d5e1f3; max-width: 640px; }
.offers-sec { padding-top: clamp(44px, 6vw, 72px); }
.offers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(22px, 3vw, 40px); }
.offer { display: flex; flex-direction: column; align-items: flex-start; border-top: 2px solid var(--blue); padding-top: 20px; --s: 0; }
.offer:nth-child(2) { --s: .2; }
.offer:nth-child(3) { --s: .4; }
/* Desktop: le tre card entrano da destra una dopo l'altra, legate allo scroll (--p da assets/pd.js, modo "pass") */
@media (min-width: 900px) {
  .pd-js.motion .offers .offer.reveal { --k: clamp(0, calc((var(--p, 1) - var(--s)) / .35), 1); opacity: var(--k); transform: translateX(calc((1 - var(--k)) * 110px)); transition: none; will-change: transform, opacity; }
}
.offer .num { font-size: 40px; display: block; margin-bottom: 10px; }
.offer h2 { font-size: clamp(24px, 2.2vw, 30px); margin-bottom: 12px; }
.offer p { font-size: 16px; }
.offer p.small { color: var(--blue); font-weight: 500; margin-top: auto; }
.offer .btn { margin-top: 6px; }
.offer .textlink { margin-top: 14px; }
.founder { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 24px; align-items: center; max-width: 900px; }
.founder img { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; }
.founder p { margin: 0; font-size: 17px; line-height: 1.55; }
.founder p strong { color: var(--ink); }
.founder .textlink { margin-left: 4px; }
.contact-band.single .cb-grid { grid-template-columns: minmax(0, 1fr); }
.contact-band.single .cb-card p { max-width: 560px; }
.cb-card .small { margin: 14px 0 0; color: #d5e1f3; }
.cb-card .small a { color: var(--white); }
@media (max-width: 899px) {
  .offers { grid-template-columns: 1fr; gap: 0; }
  .offer { border-top: 1px solid var(--line); padding: 26px 0 30px; }
  .offer:first-child { border-top: 2px solid var(--blue); }
  .offer .num { font-size: 32px; margin-bottom: 6px; }
  .offer .btn { width: 100%; justify-content: center; }
  .founder { grid-template-columns: 72px 1fr; gap: 16px; }
  .founder img { width: 72px; height: 72px; }
  .founder p { font-size: 15.5px; }
}

/* ── Ingresso legato allo scroll: il contenitore [data-pd="enter"] riceve --p (e ogni voce --pi) da assets/pd.js.
      Desktop: le voci .stg entrano da destra una dopo l'altra (--n = quante sono, --i = posizione).
      Telefono: ogni voce entra da destra quando arriva nello schermo, sulla propria posizione. ── */
.stg:nth-of-type(1) { --i: 1; } .stg:nth-of-type(2) { --i: 2; } .stg:nth-of-type(3) { --i: 3; } .stg:nth-of-type(4) { --i: 4; }
.stg:nth-of-type(5) { --i: 5; } .stg:nth-of-type(6) { --i: 6; } .stg:nth-of-type(7) { --i: 7; } .stg:nth-of-type(8) { --i: 8; }
.pd-js.motion [data-pd="enter"] { overflow-x: clip; }
.pd-js.motion [data-pd="enter"] .stg { opacity: var(--k); transform: translateX(calc((1 - var(--k)) * 90px)); transition: none; will-change: transform, opacity; }
.pd-js.motion [data-pd="enter"] svg .stg { transform-box: fill-box; transform: translateX(calc((1 - var(--k)) * 60px)); }
@media (min-width: 900px) {
  .pd-js.motion [data-pd="enter"] .stg { --s: calc((var(--i, 1) - 1) / var(--n, 3)); --k: clamp(0, calc((var(--p, 1) - var(--s)) / (.82 / var(--n, 3))), 1); }
}
@media (max-width: 899px) {
  .pd-js.motion [data-pd="enter"] .stg { --k: var(--pi, 1); transform: translateX(calc((1 - var(--k)) * 70px)); }
  .pd-js.motion [data-pd="enter"] svg .stg { --k: var(--p, 1); }
}

.logo-dati { display: block; width: 180px; height: auto; margin: 4px 0 10px; }
