/* ====== Font (ospitato sul nostro server, nessuna richiesta a terzi) ====== */
@font-face { font-family: "Inter"; font-weight: 400; font-display: swap; src: url("fonts/inter-400.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 500; font-display: swap; src: url("fonts/inter-500.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 600; font-display: swap; src: url("fonts/inter-600.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 700; font-display: swap; src: url("fonts/inter-700.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 800; font-display: swap; src: url("fonts/inter-800.woff2") format("woff2"); }

:root {
  --ink: #0b1f33;
  --ink-2: #33475b;
  --ink-3: #5f7286;
  --line: #e3e9f0;
  --line-2: #d3dce6;
  --surface: #ffffff;
  --surface-2: #f6f8fb;
  --surface-3: #eef3f8;
  --brand: #0f766e;
  --brand-2: #0d9488;
  --brand-ink: #0a5650;
  --brand-tint: #e7f5f3;
  --brand-tint-2: #cfece8;
  --amber: #b45309;
  --amber-tint: #fdf3e3;
  --red: #b42318;
  --navy: #0b1f33;
  --radius-s: 8px;
  --radius: 14px;
  --radius-l: 20px;
  --shadow-s: 0 1px 2px rgba(11, 31, 51, .06);
  --shadow: 0 1px 2px rgba(11, 31, 51, .05), 0 6px 20px rgba(11, 31, 51, .07);
  --shadow-l: 0 2px 6px rgba(11, 31, 51, .06), 0 24px 60px rgba(11, 31, 51, .14);
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--surface); line-height: 1.6;
  font-size: 16px; -webkit-font-smoothing: antialiased; font-feature-settings: "cv11", "ss01"; }
a { color: var(--brand); text-decoration-thickness: 1px; text-underline-offset: 3px; }
h1, h2, h3, h4 { line-height: 1.15; letter-spacing: -.025em; margin: 0; }
p { margin: 0; }
.wrap { max-width: 1140px; margin: 0 auto; padding: 0 24px; }
.wrap.narrow { max-width: 760px; }
.muted { color: var(--ink-3); }

/* ====== Icone Font Awesome (sprite SVG) ====== */
.i { width: 1em; height: 1em; fill: currentColor; flex: none; vertical-align: -0.125em; }
.ico { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px;
  background: var(--brand-tint); color: var(--brand); font-size: 19px; flex: none; }
.ico.amber { background: var(--amber-tint); color: var(--amber); }
.ico.navy { background: var(--navy); color: #fff; }
.ico.sm { width: 34px; height: 34px; border-radius: 9px; font-size: 15px; }

/* ====== Bottoni ====== */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; background: var(--brand);
  color: #fff; border: 1px solid var(--brand); border-radius: 10px; padding: 12px 20px; font: 600 15px/1.2 var(--font);
  text-decoration: none; cursor: pointer; transition: background .15s, transform .15s, box-shadow .15s;
  box-shadow: 0 1px 2px rgba(15, 118, 110, .25), inset 0 1px 0 rgba(255, 255, 255, .12); white-space: nowrap; }
.btn:hover { background: var(--brand-ink); border-color: var(--brand-ink); transform: translateY(-1px); }
.btn:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible {
  outline: 3px solid rgba(13, 148, 136, .35); outline-offset: 2px; }
.btn.ghost { background: #fff; color: var(--ink); border-color: var(--line-2); box-shadow: var(--shadow-s); }
.btn.ghost:hover { border-color: var(--ink-3); background: #fff; }
.btn.light { background: #fff; color: var(--navy); border-color: #fff; }
.btn.light:hover { background: var(--brand-tint); }
.btn.sm { padding: 8px 14px; font-size: 14px; border-radius: 9px; }
.btn.lg { padding: 15px 26px; font-size: 16px; }
.btn.block { width: 100%; }
.btn .i { font-size: .95em; }

/* ====== Header ====== */
.top { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .86);
  backdrop-filter: saturate(180%) blur(12px); -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid rgba(227, 233, 240, .8); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 16px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink);
  font-weight: 800; font-size: 19px; letter-spacing: -.03em; }
.logo-mark { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; color: #fff;
  background: linear-gradient(135deg, var(--brand-2), var(--brand-ink)); box-shadow: 0 2px 8px rgba(15, 118, 110, .35); font-size: 15px; }
.logo b { color: var(--brand); font-weight: 800; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a:not(.btn) { color: var(--ink-2); text-decoration: none; font-weight: 500; font-size: 15px; padding: 8px 12px;
  border-radius: 8px; display: inline-flex; align-items: center; gap: 8px; }
.nav a:not(.btn):hover { background: var(--surface-3); color: var(--ink); }
.nav .btn { margin-left: 8px; }
.menu { display: none; position: relative; }
.menu summary { list-style: none; cursor: pointer; width: 42px; height: 42px; display: grid; place-items: center;
  border: 1px solid var(--line-2); border-radius: 10px; font-size: 18px; color: var(--ink); background: #fff; }
.menu summary::-webkit-details-marker { display: none; }
.menu .menu-panel { position: absolute; right: 0; top: 52px; width: min(300px, calc(100vw - 32px)); background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-l); padding: 8px; display: grid; }
.menu .menu-panel a:not(.btn) { padding: 12px 14px; border-radius: 10px; color: var(--ink); text-decoration: none; font-weight: 500;
  display: flex; gap: 12px; align-items: center; }
.menu .menu-panel a:not(.btn) .i { color: var(--brand); }
.menu .menu-panel a:not(.btn):hover { background: var(--surface-2); }
.menu .menu-panel .btn { margin: 6px 4px 4px; }

/* ====== Sezioni ====== */
section { padding: 96px 0; }
section.tint { background: var(--surface-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--brand); margin-bottom: 14px; }
.section-head { max-width: 680px; margin-bottom: 48px; }
.section-head.center { text-align: center; margin-left: auto; margin-right: auto; }
.section-head h2 { font-size: clamp(28px, 3.6vw, 40px); font-weight: 800; }
.section-head p { color: var(--ink-3); font-size: 18px; margin-top: 14px; }

/* ====== Hero ====== */
.hero { position: relative; overflow: hidden; padding: 72px 0 88px;
  background: radial-gradient(1100px 500px at 85% -10%, rgba(13, 148, 136, .14), transparent 60%),
              radial-gradient(700px 400px at -10% 10%, rgba(11, 31, 51, .05), transparent 60%), #fff; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 6px; border-radius: 999px; background: #fff;
  border: 1px solid var(--line); box-shadow: var(--shadow-s); font-size: 14px; font-weight: 500; color: var(--ink-2); margin-bottom: 22px; }
.pill span { background: var(--brand-tint); color: var(--brand-ink); font-weight: 700; border-radius: 999px; padding: 2px 10px; font-size: 12px; }
.hero h1 { font-size: clamp(36px, 5.2vw, 60px); font-weight: 800; letter-spacing: -.035em; }
.hero h1 em { font-style: normal; background: linear-gradient(120deg, var(--brand-2), var(--brand-ink));
  -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lead { font-size: clamp(17px, 1.6vw, 20px); color: var(--ink-2); margin: 22px 0 32px; max-width: 560px; }
.hero .actions { display: flex; gap: 12px; flex-wrap: wrap; }
.assurances { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 28px; color: var(--ink-3); font-size: 14px; font-weight: 500; }
.assurances span { display: inline-flex; align-items: center; gap: 8px; }
.assurances .i { color: var(--brand); }

/* mock del prodotto */
.mock { position: relative; }
.mock-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-l); box-shadow: var(--shadow-l); overflow: hidden; }
.mock-bar { display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--line); background: var(--surface-2); }
.mock-bar .dots { display: flex; gap: 6px; }
.mock-bar .dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--line-2); display: block; }
.mock-bar strong { font-size: 13px; color: var(--ink-3); font-weight: 600; }
.mock-row { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.mock-row:last-child { border-bottom: 0; }
.mock-row .name { font-weight: 600; font-size: 14px; }
.mock-row .meta { color: var(--ink-3); font-size: 13px; }
.mock-row .amt { font-weight: 700; font-size: 14px; font-variant-numeric: tabular-nums; }
.mock-float { position: relative; z-index: 2; margin: -10px 24px 0 auto; width: fit-content; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-l); padding: 14px 16px; display: flex; gap: 12px; align-items: center; max-width: 290px; }
.mock-float b { display: block; font-size: 14px; }
.mock-float small { color: var(--ink-3); font-size: 13px; }

/* ====== Card e griglie ====== */
.grid { display: grid; gap: 20px; }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow-s);
  transition: box-shadow .2s, transform .2s, border-color .2s; }
.card:hover { box-shadow: var(--shadow); border-color: var(--line-2); }
.card h3 { font-size: 18px; font-weight: 700; margin: 18px 0 8px; }
.card p { color: var(--ink-3); font-size: 15px; }

.pain { display: flex; gap: 16px; align-items: flex-start; padding: 22px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.pain p { color: var(--ink-2); font-size: 15px; }
.pain b { display: block; color: var(--ink); margin-bottom: 4px; font-size: 16px; }

/* step */
.steps { counter-reset: s; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; position: relative; }
.step { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow-s); }
.step .num { position: absolute; top: 22px; right: 24px; font-size: 13px; font-weight: 700; color: var(--ink-3); letter-spacing: .06em; }
.step h3 { font-size: 19px; margin: 18px 0 8px; }
.step p { color: var(--ink-3); font-size: 15px; }

/* documenti */
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { display: inline-flex; align-items: center; gap: 9px; background: #fff; border: 1px solid var(--line); border-radius: 999px;
  padding: 8px 15px 8px 12px; font-size: 14px; font-weight: 500; color: var(--ink-2); box-shadow: var(--shadow-s); }
.chip .i { color: var(--brand); }

/* ====== Prezzi ====== */
.billing { display: inline-flex; padding: 4px; background: var(--surface-3); border-radius: 12px; margin: 0 auto 36px; gap: 4px; }
.billing button { border: 0; background: transparent; font: 600 14px var(--font); color: var(--ink-3); padding: 9px 16px; border-radius: 9px; cursor: pointer; }
.billing button[aria-pressed="true"] { background: #fff; color: var(--ink); box-shadow: var(--shadow-s); }
.billing small { color: var(--brand); font-weight: 700; margin-left: 4px; }
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
.plan { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-l); padding: 32px;
  display: flex; flex-direction: column; box-shadow: var(--shadow-s); }
.plan.featured { border: 2px solid var(--brand); box-shadow: var(--shadow); }
.plan .badge { position: absolute; top: -13px; left: 32px; background: var(--brand); color: #fff; font-size: 12px; font-weight: 700;
  padding: 5px 12px; border-radius: 999px; letter-spacing: .02em; }
.plan h3 { font-size: 20px; font-weight: 700; }
.plan .for { color: var(--ink-3); font-size: 14px; margin-top: 4px; }
.plan .price { display: flex; align-items: baseline; gap: 6px; margin: 22px 0 4px; }
.plan .price b { font-size: 46px; font-weight: 800; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.plan .price span { color: var(--ink-3); font-size: 15px; font-weight: 500; }
.plan .note { color: var(--ink-3); font-size: 13px; min-height: 20px; }
.plan ul { list-style: none; padding: 0; margin: 24px 0 28px; display: grid; gap: 12px; flex: 1; }
.plan li { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; color: var(--ink-2); }
.plan li .i { color: var(--brand); margin-top: 4px; font-size: 14px; }
.price-notes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 28px; }
.price-notes > div { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; color: var(--ink-2); }
.price-notes .i { color: var(--brand); font-size: 18px; margin-top: 2px; }

/* ====== Sicurezza (fascia scura) ====== */
.dark { background: var(--navy); color: #fff; }
.dark .section-head p, .dark .card p { color: #b8c6d4; }
.dark .eyebrow { color: #5eead4; }
.dark .card { background: rgba(255, 255, 255, .04); border-color: rgba(255, 255, 255, .1); box-shadow: none; }
.dark .card h3 { color: #fff; }
.dark .ico { background: rgba(94, 234, 212, .12); color: #5eead4; }
.dark a { color: #5eead4; }

/* ====== FAQ ====== */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 22px 0; font-weight: 600; font-size: 17px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .i { color: var(--ink-3); transition: transform .2s; }
.faq details[open] summary .i { transform: rotate(180deg); }
.faq details p { color: var(--ink-3); padding: 0 40px 22px 0; }

/* ====== Form ====== */
.cta-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: start; }
.benefits { display: grid; gap: 18px; margin-top: 28px; }
.benefits > div { display: flex; gap: 14px; align-items: flex-start; }
.benefits b { display: block; }
.benefits p { color: var(--ink-3); font-size: 15px; }
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-l); padding: 32px; box-shadow: var(--shadow); }
.field { margin-bottom: 18px; }
label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 7px; color: var(--ink); }
label .opt { color: var(--ink-3); font-weight: 400; }
.input { position: relative; }
.input .i { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--ink-3); font-size: 15px; pointer-events: none; }
input[type=text], input[type=email], input[type=tel], input[type=date], input[type=search], input[type=number], select {
  width: 100%; height: 48px; padding: 0 14px; border: 1px solid var(--line-2); border-radius: 10px; font: 400 16px var(--font);
  color: var(--ink); background: #fff; transition: border-color .15s, box-shadow .15s; appearance: none; }
.input input, .input select { padding-left: 42px; }
select { background-image: linear-gradient(45deg, transparent 50%, var(--ink-3) 50%), linear-gradient(135deg, var(--ink-3) 50%, transparent 50%);
  background-position: calc(100% - 20px) 21px, calc(100% - 15px) 21px; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 40px; }
input:focus, select:focus { border-color: var(--brand-2); box-shadow: 0 0 0 4px rgba(13, 148, 136, .14); outline: none; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.check { display: flex; gap: 12px; align-items: flex-start; font-weight: 400; color: var(--ink-2); font-size: 14px; cursor: pointer; }
.check input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--brand); flex: none; }
.hp { position: absolute !important; left: -5000px !important; }
.form-foot { display: flex; align-items: center; gap: 8px; color: var(--ink-3); font-size: 13px; margin-top: 14px; justify-content: center; }
.alert, .notice { display: flex; gap: 12px; align-items: flex-start; border-radius: 10px; padding: 14px 16px; margin-bottom: 20px; font-size: 15px; }
.alert { background: var(--amber-tint); color: var(--amber); }
.notice { background: var(--brand-tint); color: var(--brand-ink); }
.alert .i, .notice .i { margin-top: 3px; }

/* ====== Footer ====== */
footer { background: var(--surface-2); border-top: 1px solid var(--line); padding: 56px 0 28px; color: var(--ink-3); font-size: 14px; }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 32px; }
.foot-grid h4 { color: var(--ink); font-size: 14px; margin-bottom: 14px; }
.foot-grid a { color: var(--ink-3); text-decoration: none; display: flex; align-items: center; gap: 8px; padding: 4px 0; }
.foot-grid a:hover { color: var(--ink); }
.foot-grid p { max-width: 340px; margin-top: 14px; }
.foot-bottom { border-top: 1px solid var(--line); margin-top: 40px; padding-top: 22px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* ====== Pagine semplici (login, messaggi, privacy) ====== */
.page { padding: 72px 0 96px; background: radial-gradient(900px 380px at 50% -10%, rgba(13, 148, 136, .10), transparent 60%); }
.center-card { max-width: 480px; margin: 0 auto; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-l);
  box-shadow: var(--shadow); padding: 40px 36px; text-align: center; }
.center-card .ico { width: 56px; height: 56px; font-size: 24px; border-radius: 16px; margin-bottom: 20px; }
.center-card h1 { font-size: 26px; font-weight: 800; }
.center-card p { color: var(--ink-3); margin: 12px 0 26px; }
.center-card form { text-align: left; }
.prose h1 { font-size: 36px; font-weight: 800; }
.prose h2 { font-size: 20px; margin: 36px 0 10px; display: flex; gap: 12px; align-items: center; }
.prose p, .prose li { color: var(--ink-2); }
.prose p + p { margin-top: 12px; }
.prose ul { padding-left: 20px; display: grid; gap: 8px; }

/* ====== Area riservata ====== */
.app { background: var(--surface-2); min-height: calc(100vh - 68px); padding: 36px 0 72px; }
.app-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 28px; }
.app-head h1 { font-size: 30px; font-weight: 800; }
.crumb { display: inline-flex; align-items: center; gap: 8px; color: var(--ink-3); font-size: 14px; font-weight: 500; text-decoration: none; margin-bottom: 8px; }
.crumb:hover { color: var(--ink); }
.plan-tag { display: inline-flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--line); border-radius: 999px;
  padding: 7px 14px; font-size: 14px; color: var(--ink-2); box-shadow: var(--shadow-s); }
.plan-tag .i { color: var(--brand); }
.plan-tag > span { min-width: 0; overflow-wrap: anywhere; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 28px; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; display: flex; gap: 16px; align-items: center; box-shadow: var(--shadow-s); }
.stat b { display: block; font-size: 26px; font-weight: 800; letter-spacing: -.03em; font-variant-numeric: tabular-nums; line-height: 1.1; }
.stat span { color: var(--ink-3); font-size: 14px; }
.stat .body { flex: 1; min-width: 0; }
.meter { height: 6px; background: var(--surface-3); border-radius: 99px; margin-top: 10px; overflow: hidden; }
.meter i { display: block; height: 100%; background: linear-gradient(90deg, var(--brand-2), var(--brand)); border-radius: 99px; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-s); overflow: hidden; }
.panel-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 18px 22px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.panel-head h2 { font-size: 17px; font-weight: 700; display: flex; align-items: center; gap: 10px; }
.panel-head h2 .i { color: var(--brand); }
.panel-body { padding: 22px; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 15px; }
th { text-align: left; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3);
  padding: 12px 22px; background: var(--surface-2); border-bottom: 1px solid var(--line); white-space: nowrap; }
td { padding: 16px 22px; border-bottom: 1px solid var(--line); vertical-align: middle; }
tr:last-child td { border-bottom: 0; }
tbody tr:hover td { background: #fbfcfe; }
.who { display: flex; align-items: center; gap: 12px; }
.avatar { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-3); color: var(--ink-2);
  font-weight: 700; font-size: 13px; flex: none; }
.who a { font-weight: 600; color: var(--ink); text-decoration: none; }
.who a:hover { color: var(--brand); }
.tag { display: inline-flex; align-items: center; gap: 6px; border-radius: 999px; padding: 4px 10px; font-size: 13px; font-weight: 600;
  margin: 2px 4px 2px 0; white-space: nowrap; background: var(--amber-tint); color: var(--amber); }
.tag.ok { background: var(--brand-tint); color: var(--brand-ink); }
.doc { display: flex; gap: 12px; align-items: flex-start; }
.doc .ft { font-size: 22px; color: var(--ink-3); margin-top: 1px; }
.doc .ft.pdf { color: #c2410c; }
.doc .ft.img { color: #2563eb; }
.doc b { display: block; font-weight: 600; }
.doc small { color: var(--ink-3); font-size: 13px; display: block; }
.num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.toolbar { display: flex; gap: 10px; flex-wrap: wrap; }
.toolbar select { height: 40px; width: auto; min-width: 170px; font-size: 14px; background-position: calc(100% - 18px) 17px, calc(100% - 13px) 17px; }
.empty { text-align: center; padding: 48px 22px; color: var(--ink-3); }
.empty .ico { margin-bottom: 14px; }
.checks { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px 20px; margin: 4px 0 6px; }
.icon-btn { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 9px; border: 1px solid var(--line-2);
  color: var(--ink-2); background: #fff; text-decoration: none; }
.icon-btn:hover { color: var(--brand); border-color: var(--brand); }

/* ====== Area: strumenti e QoL ====== */
.d-block { display: block; }
.hint { display: block; color: var(--ink-3); font-size: 13px; margin-top: 6px; }
.searchbar { position: relative; display: flex; align-items: center; gap: 10px; background: #fff; border: 1px solid var(--line-2);
  border-radius: 12px; padding: 0 8px 0 14px; min-width: min(420px, 100%); box-shadow: var(--shadow-s); }
.searchbar > .i { color: var(--ink-3); }
.searchbar input { border: 0 !important; box-shadow: none !important; padding: 0 !important; height: 44px; flex: 1; min-width: 0; background: transparent; }
.searchbar.big { min-width: 100%; }
.searchbar.big input { height: 54px; font-size: 17px; }
.searchbar:focus-within { border-color: var(--brand-2); box-shadow: 0 0 0 4px rgba(13, 148, 136, .14); }
.quick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 24px; }
.qa { display: flex; align-items: center; gap: 12px; padding: 14px 16px; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); text-decoration: none; color: var(--ink); font-weight: 600; font-size: 14px; box-shadow: var(--shadow-s);
  transition: border-color .15s, transform .15s; }
.qa .i { color: var(--brand); font-size: 18px; }
.qa:hover { border-color: var(--brand); transform: translateY(-1px); }
.layout-2 { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 24px; align-items: start; }
.side { position: sticky; top: 88px; }
.timeline { list-style: none; margin: 0; padding: 8px 22px 18px; }
.timeline li { position: relative; padding: 12px 0 12px 20px; border-left: 2px solid var(--line); font-size: 14px; color: var(--ink-2); }
.timeline li::before { content: ""; position: absolute; left: -6px; top: 17px; width: 10px; height: 10px; border-radius: 50%;
  background: #fff; border: 2px solid var(--brand-2); }
.timeline b { color: var(--ink); font-weight: 600; }
.timeline small { display: block; color: var(--ink-3); font-size: 12px; margin-top: 2px; }
.filter { height: 38px !important; width: 220px !important; font-size: 14px !important; }
.actions-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.actions-row form { margin: 0; }
.row-actions { display: flex; gap: 6px; justify-content: flex-end; }
.row-actions form { margin: 0; }
.icon-btn { cursor: pointer; font-size: 15px; }
.icon-btn.ok { color: var(--brand); border-color: var(--brand-tint-2); background: var(--brand-tint); }
.icon-btn.ok:hover { background: var(--brand); color: #fff; }
.btn.danger { color: var(--red); }
.btn.danger:hover { border-color: var(--red); color: var(--red); background: #fff5f4; }
.doc .ft.code { color: #7c3aed; }
.dropzone { position: relative; display: flex; align-items: center; gap: 16px; padding: 20px 22px; background: #fff;
  border: 2px dashed var(--line-2); border-radius: var(--radius); transition: border-color .15s, background .15s; }
.dropzone.over, .dropzone:hover { border-color: var(--brand-2); background: var(--brand-tint); }
.dropzone > div { flex: 1; min-width: 0; }
.dropzone input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.dropzone button { position: relative; z-index: 1; }
.dropzone button:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.switch { display: flex; align-items: flex-start; gap: 14px; cursor: pointer; font-weight: 500; font-size: 15px; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch .track { flex: none; width: 44px; height: 26px; border-radius: 99px; background: var(--line-2); position: relative; transition: background .15s; }
.switch .track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff;
  box-shadow: var(--shadow-s); transition: transform .15s; }
.switch input:checked + .track { background: var(--brand); }
.switch input:checked + .track::after { transform: translateX(18px); }
.switch input:focus-visible + .track { outline: 3px solid rgba(13, 148, 136, .35); outline-offset: 2px; }
.panel-foot { display: flex; justify-content: flex-end; gap: 10px; padding: 16px 22px; border-top: 1px solid var(--line); background: var(--surface-2); }
.doc-edit { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 24px; align-items: start; }
.preview { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; min-height: 420px; box-shadow: var(--shadow-s); }
.preview iframe { width: 100%; height: 72vh; border: 0; display: block; }
.preview img { display: block; max-width: 100%; margin: 0 auto; }
.plan-info { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.plan-info span { display: block; font-size: 13px; }
.plan-info b { overflow-wrap: anywhere; }
.letter { padding: 36px 40px; font-size: 16px; line-height: 1.7; color: var(--ink-2); }
.letter p + p, .letter ul + p, .letter p + ul { margin-top: 14px; }
.letter b { color: var(--ink); }
.flash { position: relative; padding-right: 48px; }
.flash-x { position: absolute; right: 10px; top: 10px; background: none; border: 0; color: inherit; cursor: pointer; padding: 4px; opacity: .7; }
.flash-x:hover { opacity: 1; }
.verify-banner { display: flex; align-items: center; gap: 12px; padding: 14px 18px; margin-bottom: 20px; border-radius: 12px;
  background: var(--amber-tint); color: var(--amber); text-decoration: none; font-size: 15px; border: 1px solid #f6dfb8; }
.verify-banner span { flex: 1; }
.verify-banner:hover { border-color: var(--amber); }
details.panel > summary { list-style: none; cursor: pointer; }
details.panel > summary::-webkit-details-marker { display: none; }
details.panel[open] > summary > .i { transform: rotate(180deg); }
@media print {
  .top, .crumb, .actions-row, footer { display: none !important; }
  .app { background: #fff; padding: 0; }
  .letter { border: 0; box-shadow: none; padding: 0; }
}

/* ====== Responsive ====== */
@media (max-width: 980px) {
  .hero-grid, .cta-grid { grid-template-columns: 1fr; gap: 48px; }
  .mock { max-width: 560px; }
  .g4 { grid-template-columns: repeat(2, 1fr); }
  .g3, .steps, .plans, .price-notes { grid-template-columns: 1fr; }
  .plans { max-width: 480px; margin: 0 auto; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .layout-2, .doc-edit { grid-template-columns: minmax(0, 1fr); }
  .side { position: static; }
  .quick { grid-template-columns: repeat(2, 1fr); }
  .preview iframe { height: 60vh; }
}
@media (max-width: 760px) {
  .nav { display: none; }
  .menu { display: block; }
  section { padding: 64px 0; }
  .wrap { padding: 0 16px; }
  .hero { padding: 40px 0 72px; }
  .g2, .g4, .stats, .two, .foot-grid { grid-template-columns: 1fr; }
  .form-card, .center-card { padding: 26px 20px; }
  .mock-float { margin: -10px 12px 0; width: auto; max-width: none; }
  .hero .actions .btn { flex: 1; }
  th, td { padding: 12px 14px; }
  .app-head h1 { font-size: 24px; }
  .plan-tag { border-radius: 12px; max-width: 100%; align-items: flex-start; }
  .plan-tag .i { margin-top: 4px; }
  .hide-sm { display: none; }
  .searchbar { min-width: 100%; }
  .quick { grid-template-columns: 1fr 1fr; gap: 10px; }
  .qa { padding: 12px; font-size: 13px; }
  .filter { width: 100% !important; }
  .dropzone { flex-wrap: wrap; }
  .plan-info { grid-template-columns: 1fr; }
  .letter { padding: 24px 20px; }
  .actions-row .btn { padding: 8px 12px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
