:root {
  --ink-950: #0b1524;
  --ink-900: #101d33;
  --ink-800: #16294a;
  --ink-700: #22375f;
  --ink-600: #33507f;
  --ink-100: #eef1f6;
  --paper: #f7f6f2;
  --paper-card: #ffffff;
  --line: #dfe2ea;
  --brass-500: #b8863b;
  --brass-600: #9c6f2c;
  --brass-100: #f6ecd9;
  --ok-600: #2f7a4f;
  --ok-100: #e3f2e8;
  --warn-600: #b3781a;
  --warn-100: #fbead0;
  --urgent-600: #b3381f;
  --urgent-100: #fbe2dd;
  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Inter', -apple-system, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, monospace;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-body); background: var(--paper); color: var(--ink-900); font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }
h1, h2, h3 { font-family: var(--font-display); color: var(--ink-950); font-weight: 600; line-height: 1.15; }
a { color: inherit; }

header { position: sticky; top: 0; z-index: 50; background: rgba(247,246,242,0.9); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
nav { display: flex; align-items: center; justify-content: space-between; padding: 16px 24px; max-width: 1080px; margin: 0 auto; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-mark { width: 32px; height: 32px; border-radius: 8px; object-fit: cover; background: #fff; border: 1px solid var(--brass-600); }
.brand-name { font-family: var(--font-display); font-weight: 600; font-size: 18px; }
.nav-cta { background: var(--ink-950); color: #fff; text-decoration: none; padding: 9px 18px; border-radius: 8px; font-size: 14px; font-weight: 600; }
.nav-cta:hover { background: var(--ink-800); }

.hero { padding: 72px 0 56px; }
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: center; }
.eyebrow { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--brass-600); font-weight: 600; margin-bottom: 14px; display: block; }
.hero h1 { font-size: 44px; letter-spacing: -0.01em; margin-bottom: 20px; }
.hero h1 em { font-style: italic; color: var(--brass-600); }
.hero-lead { font-size: 17px; color: var(--ink-600); max-width: 480px; margin-bottom: 32px; }
.cta-row { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.btn-primary { background: var(--ink-950); color: #fff; text-decoration: none; padding: 14px 26px; border-radius: 9px; font-weight: 600; font-size: 15px; display: inline-block; }
.btn-primary:hover { background: var(--ink-800); }
.cta-note { font-size: 13px; color: var(--ink-600); }

/* mockup scadenzario nella hero: il vero elemento firma della pagina */
.mock-card { background: var(--paper-card); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 20px 60px rgba(11,21,36,0.12); overflow: hidden; }
.mock-head { padding: 16px 20px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; }
.mock-title { font-family: var(--font-display); font-weight: 600; font-size: 15px; }
.mock-badge { font-family: var(--font-mono); font-size: 10.5px; color: var(--ink-600); }
.mock-row { display: flex; align-items: center; justify-content: space-between; padding: 13px 20px; border-bottom: 1px solid var(--line); font-size: 13px; }
.mock-row:last-child { border-bottom: none; }
.mock-name { font-weight: 600; color: var(--ink-900); }
.mock-sub { font-size: 11.5px; color: var(--ink-600); margin-top: 1px; }
.pill { font-size: 11px; font-weight: 700; padding: 3px 10px; border-radius: 999px; white-space: nowrap; }
.pill-scaduta { background: var(--urgent-100); color: var(--urgent-600); }
.pill-urgente { background: var(--warn-100); color: var(--warn-600); }
.pill-ok { background: var(--ok-100); color: var(--ok-600); }

section.band { padding: 72px 0; }
.band-line { border-top: 1px solid var(--line); }
.section-eyebrow { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.07em; text-transform: uppercase; color: var(--brass-600); font-weight: 600; margin-bottom: 10px; }
.section-head { max-width: 620px; margin-bottom: 44px; }
.section-head h2 { font-size: 30px; margin-bottom: 12px; }
.section-head p { color: var(--ink-600); font-size: 16px; }

.problem-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.problem-card { padding: 26px; background: var(--paper-card); border: 1px solid var(--line); border-radius: 12px; }
.problem-card .n { font-family: var(--font-mono); font-size: 12px; color: var(--urgent-600); font-weight: 700; }
.problem-card h3 { font-size: 18px; margin: 10px 0 8px; }
.problem-card p { color: var(--ink-600); font-size: 14.5px; }

.feat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; background: var(--line); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.feat-item { background: var(--paper-card); padding: 26px; }
.feat-item h3 { font-size: 16px; display: flex; align-items: center; gap: 9px; margin-bottom: 8px; }
.feat-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--brass-500); flex-shrink: 0; }
.feat-item p { font-size: 14px; color: var(--ink-600); }

.pricing-card { background: var(--ink-950); color: #fff; border-radius: 16px; padding: 48px; display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: center; }
.pricing-card .price-label { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.07em; text-transform: uppercase; color: var(--brass-100); opacity: 0.8; margin-bottom: 10px; }
.pricing-card h2 { color: #fff; font-size: 28px; margin-bottom: 14px; }
.pricing-card p { color: #b9c3d6; font-size: 15px; max-width: 420px; }
.price-box { text-align: right; }
.price-num { font-family: var(--font-display); font-size: 52px; font-weight: 600; color: #fff; line-height: 1; }
.price-per { font-size: 14px; color: #b9c3d6; margin-top: 4px; }
.price-cta { display: inline-block; margin-top: 18px; background: var(--brass-500); color: var(--ink-950); text-decoration: none; padding: 12px 22px; border-radius: 8px; font-weight: 700; font-size: 14px; }
.price-cta:hover { background: var(--brass-600); color: #fff; }
.price-list { list-style: none; margin-top: 24px; display: flex; flex-direction: column; gap: 8px; }
.price-list li { font-size: 13.5px; color: #d7dde8; display: flex; gap: 8px; }
.price-list li::before { content: "✓"; color: var(--brass-500); font-weight: 700; }

footer { padding: 40px 0; border-top: 1px solid var(--line); }
.footer-row { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; font-size: 13px; color: var(--ink-600); }
.footer-row a { text-decoration: none; color: var(--ink-700); font-weight: 600; }

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 34px; }
  .problem-grid, .feat-grid { grid-template-columns: 1fr; }
  .pricing-cards { grid-template-columns: 1fr; }
}
.pricing-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.price-card { background: var(--paper-card); border: 1.5px solid var(--line); border-radius: 16px; padding: 36px; }
.price-card.top { background: var(--ink-950); border-color: var(--ink-950); color: #fff; }
.price-card .price-label { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.07em; text-transform: uppercase; color: var(--brass-600); font-weight: 700; margin-bottom: 10px; }
.price-card.top .price-label { color: var(--brass-100); opacity: 0.9; }
.price-card h3 { font-size: 22px; margin-bottom: 6px; }
.price-card.top h3 { color: #fff; }
.price-card .price-num { font-family: var(--font-display); font-size: 42px; font-weight: 600; color: var(--ink-950); line-height: 1; margin: 10px 0 4px; }
.price-card.top .price-num { color: #fff; }
.price-card .price-per { font-size: 13px; color: var(--ink-600); margin-bottom: 4px; }
.price-card.top .price-per { color: #b9c3d6; }
.price-card .price-full { font-size: 15px; color: var(--ink-600); text-decoration: line-through; margin-top: 4px; }
.price-card.top .price-full { color: #b9c3d6; }
.price-card .price-promo-nota { font-size: 12.5px; color: var(--ink-600); margin-bottom: 18px; }
.price-card.top .price-promo-nota { color: #b9c3d6; }
.price-card .price-cta-note { text-align: center; font-size: 12px; color: var(--ink-600); margin-top: 10px; }
.price-card.top .price-cta-note { color: #b9c3d6; }
.promo-banner { text-align: center; background: var(--brass-100); color: var(--ink-950); border-radius: 999px; padding: 10px 20px; font-size: 13.5px; font-weight: 700; margin-bottom: 24px; }
.addon-badge { display: inline-block; background: var(--brass-100); color: var(--ink-950); border-radius: 999px; padding: 5px 14px; font-size: 12px; font-weight: 700; margin-bottom: 14px; }
.price-card .price-list { list-style: none; display: flex; flex-direction: column; gap: 9px; margin-bottom: 22px; }
.price-card .price-list li { font-size: 13.5px; color: var(--ink-700); display: flex; gap: 8px; }
.price-card.top .price-list li { color: #d7dde8; }
.price-card .price-list li::before { content: "✓"; color: var(--brass-600); font-weight: 700; }
.price-card.top .price-list li::before { color: var(--brass-500); }
.price-card .price-list li.top-only { font-weight: 700; }
.price-card .price-cta { display: block; text-align: center; text-decoration: none; padding: 12px 22px; border-radius: 8px; font-weight: 700; font-size: 14px; }
.price-card:not(.top) .price-cta { background: var(--ink-950); color: #fff; }
.price-card.top .price-cta { background: var(--brass-500); color: var(--ink-950); }
.price-card.top .price-cta:hover { background: var(--brass-600); color: #fff; }

.prezzo-nota { text-align: center; color: var(--ink-600); font-size: 13.5px; margin: 20px 0 4px; }
.countdown-box { text-align: center; margin-bottom: 28px; }
.countdown-box strong { color: var(--brass-600); }
.calendario-wrap { overflow-x: auto; margin-top: 12px; }
table.calendario { width: 100%; border-collapse: collapse; background: var(--paper-card); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; font-size: 14px; }
table.calendario th, table.calendario td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--line); }
table.calendario th { font-family: var(--font-mono); font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--ink-600); background: var(--paper); }
table.calendario tr:last-child td { border-bottom: none; }
table.calendario tr.corrente { background: var(--brass-100); font-weight: 700; }
table.calendario tr.corrente td:first-child { border-left: 3px solid var(--brass-600); }
/* ---------- Rifinitura: micro-interazioni ---------- */
a, button, .btn-primary, .nav-cta, .price-cta, .problem-card, .feat-item, .mock-row {
  transition: transform 0.15s ease, box-shadow 0.18s ease, background-color 0.15s ease;
}
.btn-primary:hover, .nav-cta:hover, .price-cta:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(11,21,36,0.2); }
.problem-card:hover, .feat-item:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(11,21,36,0.08); }
.mock-card { animation: mockPopIn 0.5s cubic-bezier(0.16,1,0.3,1); }
@keyframes mockPopIn { from { opacity: 0; transform: translateY(10px) scale(0.98); } to { opacity: 1; transform: translateY(0) scale(1); } }
.brand-mark { transition: transform 0.2s ease; }
.brand:hover .brand-mark { transform: rotate(-4deg) scale(1.05); }
::selection { background: var(--brass-100); color: var(--brass-600); }

/* ---------- Prova sociale, demo, migrazione (brief 18/09) ---------- */
.landing-numbers { text-align: center; font-family: var(--font-mono); font-size: 14px; color: var(--ink-600); margin-bottom: 36px; }
.testimonial-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.testimonial-card { padding: 28px; background: var(--paper-card); border: 1px solid var(--line); border-radius: 12px; }
.testimonial-quote { font-size: 15px; color: var(--ink-900); line-height: 1.55; margin-bottom: 18px; }
.testimonial-quote::before { content: "\201C"; }
.testimonial-quote::after { content: "\201D"; }
.testimonial-name { font-weight: 700; font-size: 14px; }
.testimonial-role { font-size: 12.5px; color: var(--ink-600); margin-top: 2px; }
.testimonial-polizze { font-family: var(--font-mono); font-size: 11px; color: var(--brass-600); margin-top: 10px; }
.hero-video { width: 100%; display: block; border-radius: 14px; box-shadow: 0 20px 60px rgba(11,21,36,0.12); background: var(--paper-card); }
.migration-lines { max-width: 620px; color: var(--ink-700); font-size: 15.5px; line-height: 1.75; margin-bottom: 28px; }
.migration-lines strong { color: var(--ink-950); }
@media (max-width: 860px) {
  .testimonial-grid { grid-template-columns: 1fr; }
}

/* ---------- Pagine figlie dell'alberatura SEO (spec-seo-contenuti §6.1) ---------- */
.article-wrap { max-width: 720px; margin: 0 auto; padding: 56px 24px 0; }
.article-wrap h1 { font-size: 36px; margin-bottom: 18px; letter-spacing: -0.01em; }
.article-wrap h2 { font-size: 24px; margin: 40px 0 14px; }
.article-wrap p { color: var(--ink-700); font-size: 16px; margin-bottom: 16px; }
.article-wrap p strong { color: var(--ink-950); }
.article-lead { font-size: 18px; color: var(--ink-600); margin-bottom: 28px; }
.article-cta { margin: 36px 0; padding: 28px; background: var(--paper-card); border: 1px solid var(--line); border-radius: 12px; text-align: center; }
.article-cta p { margin-bottom: 14px; }
.leggi-anche { margin: 48px 0 8px; padding-top: 32px; border-top: 1px solid var(--line); }
.leggi-anche h2 { margin-top: 0; font-size: 20px; }
.leggi-anche ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.leggi-anche a { font-weight: 600; color: var(--brass-600); text-decoration: none; }
.leggi-anche a:hover { text-decoration: underline; }
