/* =====================================================================
   RENDICONTO — sito vetrina
   Palette e caratteri coerenti con la webapp (verde #1d4f4a, IBM Plex)
   ===================================================================== */

@font-face { font-family: "Plex"; src: url("../fonts/plex-sans-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Plex"; src: url("../fonts/plex-sans-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Plex"; src: url("../fonts/plex-sans-600.woff2") format("woff2"); font-weight: 600 700; font-display: swap; }
@font-face { font-family: "Plex Mono"; src: url("../fonts/plex-mono-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Source Serif"; src: url("../fonts/source-serif-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Source Serif"; src: url("../fonts/source-serif-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Source Serif"; src: url("../fonts/source-serif-600.woff2") format("woff2"); font-weight: 600 700; font-display: swap; }

:root {
  --paper: #f6f4ef;
  --paper-2: #efece4;
  --surface: #ffffff;
  --ink: #15201e;
  --ink-2: #384441;
  --muted: #5f6b68;
  --faint: #8d9794;
  --line: #e0dcd2;
  --line-2: #ebe8e0;
  --accent: #1d4f4a;
  --accent-hover: #163e3a;
  --accent-deep: #0f2c29;
  --accent-soft: #e4eeeb;
  --brass: #a8761c;
  --brass-soft: #f6ecd8;
  --ok: #1f7a4d;   --ok-soft: #e5f3ea;
  --bad: #b3261e;  --bad-soft: #fbe8e6;
  --warn: #9a5b00; --warn-soft: #fbf0dc;

  --serif: "Source Serif", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --sans: "Plex", -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: "Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --radius: 10px;
  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 32px);
  --shadow: 0 1px 2px rgba(21, 32, 30, .05), 0 8px 24px -12px rgba(21, 32, 30, .18);
  --shadow-lg: 0 2px 4px rgba(21, 32, 30, .04), 0 24px 48px -20px rgba(21, 32, 30, .28);
}

[hidden] { display: none !important; }
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 1.0625rem/1.65 var(--sans); letter-spacing: -0.003em;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent-hover); }
:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; border-radius: 4px; }
p { margin: 0 0 1em; }
strong { font-weight: 600; color: var(--ink); }
.num, .tnum { font-variant-numeric: tabular-nums; }
.mono { font-family: var(--mono); font-size: .92em; }
.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; }
.skip { position: absolute; left: 12px; top: -48px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 6px; z-index: 100; }
.skip:focus { top: 12px; color: #fff; }

h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; color: var(--ink); letter-spacing: -0.015em; margin: 0 0 .5em; line-height: 1.12; text-wrap: balance; }
h1 { font-size: clamp(2.2rem, 4.6vw, 3.3rem); letter-spacing: -0.025em; }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.6rem); }
h3 { font-size: 1.32rem; line-height: 1.25; }
h4 { font-family: var(--sans); font-size: 1rem; letter-spacing: 0; }
h1 em, h2 em { font-style: italic; font-weight: 400; color: var(--accent); }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.wrap-narrow { max-width: 820px; margin: 0 auto; padding: 0 var(--gutter); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font: 500 .78rem/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--accent);
  margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 24px; height: 1px; background: currentColor; }
.lead { font-size: clamp(1.1rem, 1.6vw, 1.28rem); color: var(--ink-2); line-height: 1.6; max-width: 62ch; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }

/* ------------------------------------------------------------- bottoni */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: 600 .98rem/1 var(--sans); letter-spacing: -0.005em; text-decoration: none;
  padding: 15px 22px; border-radius: 8px; border: 1px solid transparent; cursor: pointer;
  transition: background-color .15s, color .15s, border-color .15s, transform .15s, box-shadow .15s;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 1px 0 rgba(255,255,255,.12) inset, 0 6px 16px -8px rgba(15,44,41,.6); }
.btn-primary:hover { background: var(--accent-hover); color: #fff; transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink); color: var(--ink); }
.btn-light { background: #fff; color: var(--accent-deep); }
.btn-light:hover { background: var(--brass-soft); color: var(--accent-deep); }
.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.35); }
.btn-outline-light:hover { border-color: #fff; color: #fff; }
.btn-sm { padding: 10px 16px; font-size: .9rem; }
.btn-block { width: 100%; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.reassure { display: flex; flex-wrap: wrap; gap: 6px 20px; margin-top: 18px; font-size: .88rem; color: var(--muted); padding: 0; list-style: none; }
.reassure li { display: inline-flex; align-items: center; gap: 7px; }
.reassure li::before { content: ""; width: 14px; height: 14px; flex: none; background: no-repeat center/contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8.5l3.2 3L13 4.5' fill='none' stroke='%231f7a4d' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }

/* -------------------------------------------------------------- header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(246, 244, 239, .88); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s;
}
.site-header.scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 20px -16px rgba(21,32,30,.4); }
.nav { display: flex; align-items: center; gap: 20px; height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font: 600 1rem/1 var(--sans); letter-spacing: .16em; }
.brand:hover { color: var(--ink); }
.brand-logo { display: block; height: 26px; width: auto; flex: none; }
.nav .brand { flex: none; }
.brand .beta, .early-tag { display: inline-block; font: 600 .62rem/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: #8a5f12; background: var(--brass-soft); border: 1px solid #ead7ae; padding: 4px 6px; border-radius: 4px; }
.brand .beta { margin-left: -2px; }

/* -------------------------------------------------- early access (beta) */
.early-wrap { padding-top: 0; }
.early { background: var(--brass-soft); border: 1px solid #e6cf9f; border-left: 5px solid var(--brass); border-radius: 14px; padding: clamp(24px, 4vw, 40px); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 20px clamp(24px, 4vw, 56px); }
.early-head h2 { font-size: clamp(1.4rem, 2.4vw, 1.85rem); margin: 14px 0 12px; }
.early-head h2 em { color: #7a5410; }
.early-head p { color: #4d3a10; margin: 0; }
.early-steps { list-style: none; margin: 0; padding: 0; counter-reset: early; }
.early-steps li { counter-increment: early; position: relative; padding: 12px 0 12px 44px; border-bottom: 1px solid #e6cf9f; }
.early-steps li:last-child { border-bottom: 0; }
.early-steps li::before { content: counter(early); position: absolute; left: 0; top: 12px; width: 28px; height: 28px; border-radius: 50%; background: var(--brass); color: #fff; font: 600 .85rem/28px var(--sans); text-align: center; }
.early-steps strong { display: block; color: #3d2d08; }
.early-steps a { color: #3d2d08; }
.early-steps span { color: #4d3a10; font-size: .95rem; }
.early .cta-row { grid-column: 1 / -1; }
.early .btn-ghost { border-color: #d9bd86; }
@media (max-width: 860px) { .early { grid-template-columns: minmax(0, 1fr); } }
.nav-links { display: flex; gap: 4px; margin: 0 0 0 auto; padding: 0; list-style: none; }
.nav-links a { display: block; padding: 8px 10px; border-radius: 6px; color: var(--ink-2); text-decoration: none; font-size: .92rem; font-weight: 500; white-space: nowrap; }
.nav-links a:hover { color: var(--ink); background: var(--paper-2); }
.nav-links a[aria-current="page"] { color: var(--accent); }
.nav-cta { display: flex; gap: 8px; }
.nav-toggle { display: none; margin-left: auto; background: none; border: 1px solid var(--line); border-radius: 8px; width: 44px; height: 44px; align-items: center; justify-content: center; cursor: pointer; color: var(--ink); }
.nav-toggle svg { width: 22px; height: 22px; }
@media (max-width: 1240px) {
  .nav-links a { padding: 8px 7px; font-size: .88rem; }
}
@media (max-width: 1140px) {
  .nav-toggle { display: inline-flex; }
  .nav-links, .nav-cta { display: none; }
  .nav.open { flex-wrap: wrap; height: auto; padding: 14px 0 20px; }
  .nav.open .nav-toggle { margin-left: auto; }
  .nav.open .nav-links { display: flex; flex-direction: column; width: 100%; order: 3; margin: 8px 0 0; }
  .nav.open .nav-links a { padding: 12px 4px; font-size: 1.05rem; border-bottom: 1px solid var(--line-2); border-radius: 0; }
  .nav.open .nav-cta { display: flex; order: 4; width: 100%; margin-top: 14px; }
  .nav.open .nav-cta .btn { flex: 1; }
}

/* --------------------------------------------------------------- hero */
.hero { padding: clamp(24px, 4vw, 48px) 0 clamp(44px, 6vw, 60px); position: relative; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 64px); align-items: start; }
.hero h1 { margin-bottom: 22px; }
.hero .lead { margin-bottom: 30px; }
@media (max-width: 960px) { .hero-grid { grid-template-columns: minmax(0, 1fr); } }

.page-hero { padding: clamp(44px, 7vw, 84px) 0 clamp(36px, 5vw, 56px); border-bottom: 1px solid var(--line); }
.page-hero h1 { font-size: clamp(2.1rem, 4.6vw, 3.3rem); }
.page-hero .h1-main { max-width: 20ch; }
/* etichetta con la keyword dentro l'H1: stessa resa visiva di .eyebrow, lo slogan resta il titolo */
h1 .eyebrow { display: flex; }
h1 .h1-main { display: block; }
.page-hero .lead { margin-bottom: 28px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0 0 22px; list-style: none; font-size: .84rem; color: var(--muted); }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: var(--faint); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; }

/* ----------------------------------------------- registro (hero visual) */
.ledger {
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-lg);
  overflow: hidden; font-size: .82rem; position: relative;
}
.ledger-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line-2); background: #fbfaf7; }
.ledger-title { font-weight: 600; font-size: .9rem; display: flex; align-items: center; gap: 9px; }
.ledger-title svg { width: 18px; height: 18px; color: var(--accent); }
.ledger-period { font-family: var(--mono); font-size: .76rem; color: var(--muted); }
.ledger-tabs { display: flex; gap: 2px; padding: 10px 14px 0; border-bottom: 1px solid var(--line-2); overflow-x: auto; }
.ledger-tabs span { padding: 7px 10px 9px; font-size: .76rem; color: var(--muted); border-bottom: 2px solid transparent; white-space: nowrap; }
.ledger-tabs span.on { color: var(--accent); border-color: var(--accent); font-weight: 600; }
.ledger-tabs b { font-weight: 600; font-family: var(--mono); margin-left: 4px; font-size: .72rem; padding: 1px 5px; border-radius: 4px; background: var(--paper-2); color: var(--ink-2); }
.ledger-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.ledger table { width: 100%; border-collapse: collapse; }
.ledger th { text-align: left; font-weight: 500; font-size: .7rem; letter-spacing: .04em; text-transform: uppercase; color: var(--faint); padding: 10px 12px 8px; border-bottom: 1px solid var(--line-2); white-space: nowrap; }
.ledger td { padding: 11px 12px; border-bottom: 1px solid var(--line-2); vertical-align: top; }
.ledger tr:last-child td { border-bottom: 0; }
.ledger .r { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ledger .sup { font-weight: 600; color: var(--ink); white-space: nowrap; }
.ledger .doc { color: var(--faint); font-family: var(--mono); font-size: .72rem; white-space: nowrap; }
.ledger .cur { font-family: var(--mono); font-size: .78rem; }
.ledger .cur-sm { display: none; font-family: var(--mono); font-size: .72rem; color: var(--ink-2); }
.ledger .eur { font-family: var(--mono); font-size: .78rem; font-weight: 600; color: var(--ink); }
.ledger .date { font-family: var(--mono); font-size: .74rem; color: var(--ink-2); white-space: nowrap; }
.ledger .delta { font-family: var(--mono); font-size: .7rem; color: var(--warn); }
.tag { display: inline-flex; align-items: center; gap: 5px; font-size: .7rem; font-weight: 600; padding: 3px 8px; border-radius: 999px; white-space: nowrap; }
.tag-ok { background: var(--ok-soft); color: var(--ok); }
.tag-bad { background: var(--bad-soft); color: var(--bad); }
.tag-warn { background: var(--warn-soft); color: var(--warn); }
.tag-info { background: var(--accent-soft); color: var(--accent); }
.ledger tr.missing td { background: #fdf6f5; }
.ledger-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 16px; padding: 12px 18px; background: #fbfaf7; border-top: 1px solid var(--line-2); font-size: .78rem; color: var(--muted); }
.ledger-foot strong { font-family: var(--mono); }
.ledger-note { position: absolute; right: 14px; bottom: -11px; }
.ledger-wrap { position: relative; }
.ledger-callout {
  position: relative; margin: 14px 0 0; max-width: 360px;
  background: var(--accent-deep); color: #e8f0ee; border-radius: 10px; padding: 14px 16px; font-size: .82rem; line-height: 1.45; box-shadow: var(--shadow-lg);
}
.ledger-callout strong { color: #fff; display: block; font-size: .86rem; margin-bottom: 2px; }
.illustrative { margin: 8px 2px 0; font-size: .8rem; color: var(--muted); text-align: right; }
@media (max-width: 640px) {
  .ledger .hide-sm { display: none; }
  .ledger-callout { max-width: none; }
  .ledger { font-size: .76rem; }
  .ledger .tag { white-space: normal; font-size: .64rem; padding: 2px 6px; }
  .ledger .doc { display: none; }
  .ledger .cur-sm { display: block; }
  .ledger-head, .ledger-foot { padding-left: 12px; padding-right: 12px; }
  .ledger th, .ledger td { padding-left: 8px; padding-right: 8px; }
}
.js .ledger tbody tr { transition: opacity .5s ease, transform .5s ease; }
.js .ledger.pre tbody tr { opacity: 0; transform: translateY(6px); }
@media (prefers-reduced-motion: reduce) { .js .ledger.pre tbody tr { opacity: 1; transform: none; } }

/* ------------------------------------------------------------ sezioni */
section { position: relative; }
/* ritmo unico: 60px sopra e sotto ogni sezione = 120px tra due sezioni */
.section, .section-tight { padding: clamp(44px, 6vw, 60px) 0; }
.section-alt, .section-dark { padding: clamp(56px, 7vw, 88px) 0; }
.section-alt { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-dark { background: var(--accent-deep); color: #cfdcd9; }
.section-dark h2, .section-dark h3, .section-dark strong { color: #fff; }
.section-dark h2 em { color: #e6c47f; }
.section-dark .eyebrow { color: #e6c47f; }
.section-dark .muted { color: #c2d3cf; }
.section-head { max-width: 760px; margin-bottom: clamp(32px, 4vw, 48px); }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .eyebrow::before { display: none; }
.section-head p { font-size: 1.12rem; color: var(--ink-2); }
.section-dark .section-head p { color: #cfdcd9; }

/* ------------------------------------------------- banda numeri chiave */
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.fact { padding: 30px clamp(16px, 3vw, 32px); border-right: 1px solid var(--line); }
.fact:last-child { border-right: 0; }
.fact .big { font: 600 clamp(2.3rem, 4vw, 3.1rem)/1 var(--serif); color: var(--accent); margin-bottom: 10px; letter-spacing: -0.02em; }
.fact p { margin: 0; color: var(--ink-2); font-size: .98rem; }
@media (max-width: 760px) { .facts { grid-template-columns: 1fr; } .fact { border-right: 0; border-bottom: 1px solid var(--line); } .fact:last-child { border-bottom: 0; } }

/* -------------------------------------------------------- problema */
.pain-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.pain-grid > :first-child { position: sticky; top: 110px; }
.pain-list { list-style: none; margin: 0; padding: 0; counter-reset: pain; }
.pain-list li { counter-increment: pain; display: grid; grid-template-columns: 44px 1fr; gap: 6px 14px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.pain-list li:first-child { border-top: 1px solid var(--line); }
.pain-list li::before { content: counter(pain, decimal-leading-zero); font: 400 .82rem/1.9 var(--mono); color: var(--brass); }
.pain-list strong { display: block; margin-bottom: 2px; }
.pain-list span { color: var(--ink-2); font-size: .96rem; }
@media (max-width: 860px) { .pain-grid { grid-template-columns: minmax(0, 1fr); } .pain-grid > :first-child { position: static; } }

/* ------------------------------------------------ doppio utilizzo */
.dual { display: grid; grid-template-columns: minmax(0, 1fr) 84px minmax(0, 1fr); align-items: stretch; }
.dual-card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: clamp(24px, 3.4vw, 40px); box-shadow: var(--shadow); display: flex; flex-direction: column; }
.dual-card.studio { background: var(--accent-deep); border-color: var(--accent-deep); color: #cfdcd9; }
.dual-card.studio h3, .dual-card.studio strong { color: #fff; }
.dual-card .role { font: 500 .76rem/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; }
.dual-card.studio .role { color: #e6c47f; }
.dual-card h3 { font-size: clamp(1.4rem, 2.2vw, 1.7rem); }
.dual-card ul { list-style: none; padding: 0; margin: 18px 0 26px; }
.dual-card li { padding: 10px 0 10px 30px; position: relative; border-top: 1px solid var(--line-2); font-size: .98rem; }
.dual-card.studio li { border-color: rgba(255,255,255,.1); }
.dual-card li::before { content: ""; position: absolute; left: 0; top: 14px; width: 16px; height: 16px; background: no-repeat center/contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8.5l3.2 3L13 4.5' fill='none' stroke='%231d4f4a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.dual-card.studio li::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8.5l3.2 3L13 4.5' fill='none' stroke='%23e6c47f' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.dual-card .btn { margin-top: auto; align-self: flex-start; }
.dual-bridge { display: flex; align-items: center; justify-content: center; position: relative; }
.dual-bridge::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; border-top: 1px dashed var(--faint); }
.dual-bridge span { position: relative; width: 56px; height: 56px; border-radius: 50%; background: var(--paper); border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; color: var(--accent); }
.dual-bridge svg { width: 26px; height: 26px; }
@media (max-width: 900px) {
  .dual { grid-template-columns: minmax(0, 1fr); }
  .dual-bridge { height: 64px; }
  .dual-bridge::before { left: 50%; right: auto; top: 0; bottom: 0; border-top: 0; border-left: 1px dashed var(--faint); }
  .dual-bridge span { transform: rotate(90deg); }
}

/* --------------------------------------------------------- passaggi */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; list-style: none; padding: 0; margin: 0; counter-reset: step; }
.steps li { counter-increment: step; padding: 28px 24px 8px 0; border-top: 2px solid var(--line); position: relative; }
.steps li::before { content: counter(step); position: absolute; top: -17px; left: 0; width: 32px; height: 32px; border-radius: 50%; background: var(--accent); color: #fff; font: 600 .9rem/32px var(--sans); text-align: center; }
.steps li:first-child { border-top-color: var(--accent); }
.steps h3 { font-size: 1.15rem; margin-top: 10px; }
.steps p { color: var(--ink-2); font-size: .96rem; margin: 0; }
.steps .who { display: block; font-size: .72rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--brass); margin-top: 6px; }
.steps .who + h3 { margin-top: 4px; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr 1fr; row-gap: 36px; } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* ------------------------------------------------------ griglia card */
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 900px) { .grid-3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 24px; }
.section-alt .card { background: var(--paper); }
.card h3 { font-size: 1.16rem; margin-bottom: 8px; }
.card p { color: var(--ink-2); font-size: .96rem; margin: 0; }
.card .ico { width: 40px; height: 40px; border-radius: 9px; background: var(--accent-soft); color: var(--accent); display: flex; align-items: center; justify-content: center; margin-bottom: 18px; }
.card .ico svg { width: 21px; height: 21px; }
.card .kicker { font-family: var(--mono); font-size: .75rem; color: var(--brass); display: block; margin-bottom: 10px; }
.section-dark .card { background: rgba(255,255,255,.04); border-color: rgba(255,255,255,.1); }
.section-dark .card p { color: #d3e0dd; font-size: .95rem; }
.section-dark .card .ico { background: rgba(230,196,127,.12); color: #e6c47f; }

/* --------------------------------------------------------- split */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 80px); align-items: center; }
.split.top { align-items: start; }
.split + .split { margin-top: clamp(56px, 8vw, 96px); }
.split.rev > :first-child { order: 2; }
@media (max-width: 900px) { .split { grid-template-columns: minmax(0, 1fr); } .split.rev > :first-child { order: 0; } }
.checklist { list-style: none; padding: 0; margin: 20px 0 0; }
.checklist li { padding: 9px 0 9px 32px; position: relative; color: var(--ink-2); }
.checklist li::before { content: ""; position: absolute; left: 0; top: 12px; width: 20px; height: 20px; border-radius: 50%; background: var(--accent-soft) no-repeat center/12px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8.5l3.2 3L13 4.5' fill='none' stroke='%231d4f4a' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.checklist.x li::before { background-color: var(--bad-soft); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 4.5l7 7M11.5 4.5l-7 7' fill='none' stroke='%23b3261e' stroke-width='2.2' stroke-linecap='round'/%3E%3C/svg%3E"); }

/* pannello "esempio" */
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); padding: clamp(20px, 3vw, 30px); }
.panel-title { font: 500 .74rem/1 var(--sans); text-transform: uppercase; letter-spacing: .1em; color: var(--faint); margin-bottom: 16px; }
.kv { display: grid; grid-template-columns: 1fr auto; gap: 0; margin: 0; }
.kv dt, .kv dd { padding: 10px 0; border-bottom: 1px solid var(--line-2); margin: 0; font-size: .94rem; }
.kv dt { color: var(--muted); }
.kv dd { text-align: right; font-family: var(--mono); font-size: .88rem; color: var(--ink); }
.kv .total { font-weight: 600; color: var(--accent); }
.kv dt:last-of-type, .kv dd:last-of-type { border-bottom: 0; }

/* ------------------------------------------------------- confronto */
.compare { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; font-size: .96rem; }
.compare th, .compare td { padding: 15px 18px; text-align: left; border-bottom: 1px solid var(--line-2); vertical-align: top; }
.compare thead th { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); background: #fbfaf7; font-weight: 500; }
.compare thead th.us { color: var(--accent); }
.compare td.no { color: var(--muted); }
.compare td.yes { color: var(--ink); }
.compare .mark { display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 18px; margin-right: 8px; border-radius: 50%; font-size: .66rem; font-weight: 700; vertical-align: 1px; }
.compare td.no .mark { background: var(--bad-soft); color: var(--bad); }
.compare td.yes .mark { background: var(--ok-soft); color: var(--ok); }
.compare tbody th { font-weight: 600; color: var(--ink); width: 30%; }
.compare tr:last-child > * { border-bottom: 0; }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: 12px; }
.table-scroll .compare { min-width: 620px; }
/* mobile: ogni riga del confronto diventa una scheda, con l'intestazione di colonna come etichetta */
@media (max-width: 640px) {
  .table-scroll { overflow: visible; }
  .table-scroll .compare { min-width: 0; }
  .compare thead { display: none; }
  .compare, .compare tbody, .compare tr, .compare th, .compare td { display: block; width: 100%; }
  .compare tr { padding: 14px 16px; border-bottom: 1px solid var(--line-2); }
  .compare tr:last-child { border-bottom: 0; }
  .compare th, .compare td { padding: 3px 0; border: 0; }
  .compare tbody th { width: auto; font-size: 1rem; margin-bottom: 4px; }
  .compare td[data-label]::before { content: attr(data-label); display: block; font-size: .7rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); margin: 8px 0 2px; }
  /* matrice dei piani: etichetta e valore sulla stessa riga */
  .compare.matrix td { display: flex; align-items: center; gap: 0; padding: 4px 0; text-align: right; }
  .compare.matrix td::before { margin: 0 auto 0 0; padding-right: 12px; text-align: left; }
  .compare.matrix td .mark { margin-right: 8px; }
}

/* -------------------------------------------------------- calcolatore */
.roi { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; box-shadow: var(--shadow-lg); }
.roi-in { padding: clamp(24px, 4vw, 44px); }
.roi-out { padding: clamp(24px, 4vw, 44px); background: var(--accent-deep); color: #cfdcd9; display: flex; flex-direction: column; justify-content: center; }
.roi-field { margin-bottom: 26px; }
.roi-field label { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-weight: 500; color: var(--ink); margin-bottom: 10px; font-size: .98rem; }
.roi-field output { font: 600 1.05rem var(--mono); color: var(--accent); white-space: nowrap; }
.roi-field small { display: block; color: var(--ink-2); font-size: .875rem; margin-top: 6px; }
input[type="range"] { width: 100%; accent-color: var(--accent); height: 28px; }
.roi-out .label { font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: #c2d3cf; }
.roi-out .value { font: 600 clamp(2.4rem, 5vw, 3.4rem)/1.05 var(--serif); color: #fff; margin: 6px 0 18px; letter-spacing: -0.02em; }
.roi-out .value.brass { color: #e6c47f; }
.roi-out p { font-size: .94rem; margin-bottom: 18px; }
.roi-out strong { color: #fff; }
.roi-out hr { border: 0; border-top: 1px solid rgba(255,255,255,.12); margin: 6px 0 20px; }
@media (max-width: 860px) { .roi { grid-template-columns: minmax(0, 1fr); } }

/* ------------------------------------------------------------ prezzi */
.billing-switch { display: inline-flex; padding: 4px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); margin-bottom: 36px; }
.billing-switch button { font: 500 .92rem var(--sans); border: 0; background: none; padding: 10px 18px; border-radius: 999px; cursor: pointer; color: var(--ink-2); }
.billing-switch button[aria-pressed="true"] { background: var(--accent); color: #fff; }
.billing-switch .save { font-size: .74rem; font-weight: 600; color: var(--brass); margin-left: 6px; }
.billing-switch button[aria-pressed="true"] .save { color: #e6c47f; }
.plans { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; align-items: stretch; }
@media (max-width: 1100px) { .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .plans { grid-template-columns: 1fr; } }
.plan { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 28px 24px; display: flex; flex-direction: column; position: relative; }
.plan.featured { border: 2px solid var(--accent); box-shadow: var(--shadow-lg); }
.plan .badge { position: absolute; top: -13px; left: 24px; background: var(--brass); color: #fff; font-size: .72rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; padding: 5px 10px; border-radius: 999px; }
.plan h3 { font-size: 1.35rem; margin-bottom: 4px; }
.plan .for { color: var(--ink-2); font-size: .9rem; line-height: 1.5; min-height: 4.5em; margin-bottom: 18px; }
.plan .price { display: flex; align-items: baseline; gap: 6px; margin-bottom: 4px; }
.plan .price .amt { font: 600 2.7rem/1 var(--serif); color: var(--ink); letter-spacing: -0.02em; }
.plan .price .per { color: var(--muted); font-size: .9rem; }
.plan .billed { font-size: .875rem; color: var(--muted); min-height: 1.3em; margin-bottom: 22px; }
.plan ul { list-style: none; padding: 0; margin: 0 0 26px; font-size: .93rem; }
.plan li { padding: 7px 0 7px 26px; position: relative; color: var(--ink-2); }
.plan li::before { content: ""; position: absolute; left: 0; top: 11px; width: 15px; height: 15px; background: no-repeat center/contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8.5l3.2 3L13 4.5' fill='none' stroke='%231d4f4a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.plan li.strong { font-weight: 600; color: var(--ink); }
.plan .btn { margin-top: auto; }
.price-note { margin-top: 22px; font-size: .9rem; color: var(--ink-2); }

/* ---------------------------------------------------------------- faq */
.faq-block { max-width: 820px; }
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 22px 44px 22px 0; position: relative; font: 600 1.1rem/1.4 var(--serif); color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 12px; height: 12px; margin-top: -8px; border-right: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(45deg); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq .answer { padding: 0 0 22px; color: var(--ink-2); max-width: 72ch; }
.faq .answer p:last-child { margin-bottom: 0; }
.faq-group { margin-bottom: 52px; }
.faq-group h2 { font-size: 1.5rem; margin-bottom: 14px; }

/* ------------------------------------------------------ articolo/guida */
.article { padding: clamp(40px, 6vw, 72px) 0; }
.article .wrap-narrow > * { max-width: 72ch; }
.article h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); margin-top: 1.8em; }
.article h3 { margin-top: 1.5em; }
.article p, .article li { color: var(--ink-2); }
.article ul, .article ol { padding-left: 1.3em; margin: 0 0 1.2em; }
.article li { margin-bottom: .45em; }
.summary-box { background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: 8px; padding: 22px 24px; margin: 0 0 32px; }
.summary-box h2 { font-family: var(--sans); font-size: .78rem !important; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin: 0 0 10px !important; }
.summary-box ul { margin: 0; }
.callout { background: var(--brass-soft); border-radius: 8px; padding: 18px 20px; margin: 24px 0; color: #5a4310; font-size: .96rem; }
.callout strong { color: #3d2d08; }
.data-table { width: 100%; border-collapse: collapse; margin: 18px 0 26px; font-size: .92rem; background: var(--surface); border: 1px solid var(--line); }
.data-table th, .data-table td { padding: 11px 14px; border-bottom: 1px solid var(--line-2); text-align: left; vertical-align: top; }
.data-table th { background: #fbfaf7; font-weight: 600; font-size: .82rem; color: var(--ink); }
.data-table td.r { text-align: right; font-family: var(--mono); font-size: .86rem; white-space: nowrap; }
.toc { background: var(--paper-2); border-radius: 8px; padding: 18px 22px; margin-bottom: 32px; font-size: .95rem; }
.toc strong { display: block; margin-bottom: 6px; }
.toc ol { margin: 0; padding-left: 1.2em; }
.updated { font-size: .84rem; color: var(--faint); margin-top: -8px; }
.disclaimer { font-size: .84rem; color: var(--muted); border-top: 1px solid var(--line); padding-top: 18px; margin-top: 40px; }

/* ------------------------------------------------------------- contatti */
.form { display: grid; gap: 16px; }
.form label { font-weight: 500; font-size: .92rem; display: block; margin-bottom: 6px; }
.form input, .form select, .form textarea { width: 100%; font: inherit; font-size: 1rem; padding: 12px 14px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--ink); }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(29,79,74,.15); }
.form textarea { min-height: 140px; resize: vertical; }
.form .row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .form .row-2 { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------ CTA finale */
.final-cta { background: var(--accent-deep); color: #cfdcd9; border-radius: 20px; padding: clamp(36px, 6vw, 72px); display: grid; grid-template-columns: minmax(0, 1.4fr) auto; gap: 32px; align-items: center; position: relative; overflow: hidden; }
.final-cta::after { content: ""; position: absolute; right: -80px; top: -80px; width: 320px; height: 320px; border-radius: 50%; border: 1px solid rgba(230,196,127,.18); box-shadow: 0 0 0 40px rgba(230,196,127,.04), 0 0 0 80px rgba(230,196,127,.03); pointer-events: none; }
.final-cta h2 { color: #fff; margin-bottom: 12px; }
.final-cta h2 em { color: #e6c47f; }
.final-cta p { margin: 0; font-size: 1.08rem; max-width: 56ch; }
.final-cta .cta-row { position: relative; z-index: 1; }
@media (max-width: 860px) { .final-cta { grid-template-columns: minmax(0, 1fr); } }

/* -------------------------------------------------------------- footer */
.site-footer { padding: 56px 0 36px; border-top: 1px solid var(--line); margin-top: clamp(44px, 6vw, 60px); font-size: .92rem; }
.foot-grid { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 32px; }
.foot-grid h2 { font: 600 .78rem/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--ink); margin: 6px 0 16px; }
.foot-grid ul { list-style: none; margin: 0; padding: 0; }
.foot-grid li { margin-bottom: 9px; }
.foot-grid a { color: var(--muted); text-decoration: none; }
.foot-grid a:hover { color: var(--ink); text-decoration: underline; }
.foot-about { color: var(--muted); max-width: 36ch; margin-top: 16px; }
.foot-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; margin-top: 48px; padding-top: 22px; border-top: 1px solid var(--line); color: var(--faint); font-size: .84rem; }
@media (max-width: 860px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-grid > :first-child { grid-column: 1 / -1; } }

/* ----------------------------------------------------------- animazioni */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; transition: none; } }

/* --------------------------------------------------------------- utilità */
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.mt-l { margin-top: 40px; }
.center { text-align: center; }
.pill-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.pill { font-size: .8rem; padding: 6px 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); color: var(--ink-2); }
.quote-big { font: 400 italic clamp(1.4rem, 2.6vw, 1.95rem)/1.35 var(--serif); color: var(--ink); max-width: 30ch; margin: 0; }
.notfound { padding: clamp(80px, 14vw, 160px) 0; text-align: center; }
.notfound .code { font: 600 clamp(5rem, 14vw, 9rem)/1 var(--serif); color: var(--accent-soft); -webkit-text-stroke: 1px var(--accent); }

@media print {
  .site-header, .site-footer, .final-cta, .nav-toggle { display: none !important; }
  body { background: #fff; }
}

/* ------------------------------------------------------ card cliccabili (blog, casi d'uso) */
a.card-link { display: block; color: inherit; text-decoration: none; transition: border-color .15s ease, transform .15s ease; }
a.card-link:hover, a.card-link:focus-visible { border-color: var(--accent); transform: translateY(-2px); }
.card-link .more { display: inline-flex; align-items: center; gap: 6px; margin-top: 16px; font-weight: 600; font-size: .9rem; color: var(--accent); }
.card-link .more svg { width: 16px; height: 16px; }
@media (prefers-reduced-motion: reduce) { a.card-link { transition: none; } a.card-link:hover { transform: none; } }

/* ------------------------------------------------------ calcolatore pubblico */
.roi-more { display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; font-size: .9rem; color: #e6c47f; text-decoration: underline; text-underline-offset: 3px; }
.roi-more svg { width: 15px; height: 15px; }
.calc-mode { margin-bottom: 22px; flex-wrap: wrap; }
.calc-grid { align-items: stretch; overflow: visible; }
.calc-grid > .roi-in { border-radius: 16px 0 0 16px; }
.calc-grid > .calc-out { border-radius: 0 16px 16px 0; display: block; }
.calc-stick { position: sticky; top: 96px; display: flex; flex-direction: column; }
@media (max-width: 860px) {
  .calc-grid > .roi-in { border-radius: 16px 16px 0 0; }
  .calc-grid > .calc-out { border-radius: 0 0 16px 16px; }
  .calc-stick { position: static; }
}
@media (max-width: 560px) {
  .calc-mode { display: grid; grid-template-columns: 1fr 1fr; border-radius: 14px; width: 100%; }
  .calc-mode button { border-radius: 10px; padding: 10px 8px; font-size: .86rem; line-height: 1.25; }
}
.calc-h { font: 600 .78rem var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin: 8px 0 18px; }
.calc-h:not(:first-child) { margin-top: 34px; padding-top: 22px; border-top: 1px solid var(--line-2); }
.calc-out { justify-content: flex-start; }
.calc-out .value { margin-bottom: 6px; }
.calc-sub { margin-bottom: 18px !important; }
.calc-bars { display: grid; gap: 9px; margin-bottom: 16px; }
.calc-bar { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr) 3.6em; gap: 10px; align-items: center; font-size: .84rem; }
.calc-bar .b { height: 8px; border-radius: 99px; background: rgba(255,255,255,.1); overflow: hidden; }
.calc-bar .b i { display: block; height: 100%; background: #e6c47f; border-radius: 99px; transition: width .2s ease; }
.calc-bar .h { font-family: var(--mono); text-align: right; color: #fff; }
.calc-nodoc { font-size: .9rem; }
.calc-with { list-style: none; padding: 0; margin: 8px 0 22px; display: grid; gap: 8px; font-size: .94rem; }
.calc-with li { display: flex; justify-content: space-between; gap: 12px; border-bottom: 1px dashed rgba(255,255,255,.12); padding-bottom: 8px; }
.calc-with strong { font-family: var(--mono); font-weight: 600; white-space: nowrap; }
.calc-with li.net { border: 0; font-size: 1.05rem; }
.calc-with li.net strong { color: #e6c47f; font-size: 1.2rem; }
.calc-share { border-top: 1px solid rgba(255,255,255,.12); padding-top: 18px; }
.calc-share-btns { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 10px; }
.calc-share-btns svg { width: 15px; height: 15px; }
.calc-share small { font-size: .8rem; color: #a9bdb8; }
.calc-method ul { padding-left: 1.2em; }
.calc-teaser { display: flex; align-items: center; justify-content: space-between; gap: 28px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: clamp(24px, 4vw, 40px); }
.calc-teaser h2 { margin: 8px 0 10px; }
.calc-teaser p { color: var(--ink-2); margin: 0; max-width: 60ch; }
@media (max-width: 760px) { .calc-teaser { flex-direction: column; align-items: flex-start; } }
@media (max-width: 480px) { .calc-bar { grid-template-columns: minmax(0, 1fr) 3.6em; } .calc-bar .b { grid-column: 1 / -1; grid-row: 2; } }
@media (prefers-reduced-motion: reduce) { .calc-bar .b i { transition: none; } }
