:root {
  --bg: #0B1F17; --bg-elev: #102A1F; --surface: #15352A;
  --border: rgba(230,245,236,0.12); --nav-bg: rgba(11,31,23,0.78);
  --text: #E6F5EC; --text-muted: #96B8A6;
  --accent: #5EE6A8; --accent-fill: #5EE6A8; --accent-on-fill: #0B1F17; --accent-dark: #43cf8f;
  --glow: rgba(94,230,168,0.10);
  --radius: 14px;
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
}
:root[data-theme="light"] {
  --bg: #EEF8F2; --bg-elev: #FFFFFF; --surface: #E2F1E8;
  --border: rgba(11,31,23,0.14); --nav-bg: rgba(238,248,242,0.85);
  --text: #0B1F17; --text-muted: #3E5A4C;
  --accent: #0F7F4C; --accent-fill: #14915A; --accent-on-fill: #FFFFFF; --accent-dark: #0F7F4C;
  --glow: rgba(20,145,90,0.10);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { background: var(--bg); color: var(--text); font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
a { color: var(--accent); }

/* logo: la variante giusta per il tema */
.logo { height: 30px; width: auto; display: block; }
.logo-light { display: none; }
:root[data-theme="light"] .logo-dark { display: none; }
:root[data-theme="light"] .logo-light { display: block; }

nav.pill { position: fixed; top: 18px; left: 50%; transform: translateX(-50%); background: var(--nav-bg);
  backdrop-filter: saturate(150%) blur(18px); -webkit-backdrop-filter: saturate(150%) blur(18px);
  border: 1px solid var(--border); border-radius: 999px; padding: 9px 9px 9px 22px;
  display: flex; align-items: center; gap: 24px; z-index: 100; font-size: 16px; }
nav.pill .brand { display: inline-flex; align-items: center; text-decoration: none; }
nav.pill ul { list-style: none; display: flex; gap: 20px; }
nav.pill a { color: var(--text-muted); text-decoration: none; transition: color .2s; font-size: 15px; white-space: nowrap; }
nav.pill a:hover { color: var(--text); }
nav.pill .lang { font-family: var(--mono); font-size: 12px; padding: 4px 10px; border: 1px solid var(--border); border-radius: 999px; }
nav.pill .cta { background: var(--accent-fill); color: var(--accent-on-fill); padding: 10px 22px; border-radius: 999px; font-weight: 600; transition: transform .15s; }
nav.pill .cta:hover { transform: translateY(-1px); color: var(--accent-on-fill); }
nav.pill .theme-toggle { background: none; border: 1px solid var(--border); color: var(--text-muted); border-radius: 999px; width: 32px; height: 32px; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; padding: 0; flex: none; transition: color .2s, border-color .2s; }
nav.pill .theme-toggle:hover { color: var(--text); border-color: var(--text-muted); }
@media (max-width: 1010px) { nav.pill ul { display: none; } }
@media (max-width: 860px) {
  nav.pill { left: 12px; right: 12px; transform: none; padding: 8px 8px 8px 16px; gap: 10px; justify-content: space-between; font-size: 14px; }
  nav.pill .logo { height: 24px; }
  nav.pill .cta { padding: 8px 14px; font-size: 14px; }
}

.hero { padding: 160px 0 80px; position: relative; overflow: hidden; }
.hero::before { content: ''; position: absolute; top: -220px; left: 50%; transform: translateX(-50%); width: 800px; height: 800px; max-width: 100%;
  background: radial-gradient(circle, var(--glow) 0%, transparent 70%); filter: blur(40px); z-index: 0; }
.hero-content { position: relative; z-index: 1; }
.eyebrow { display: inline-block; font-family: var(--mono); font-size: 12px; color: var(--accent); padding: 6px 12px; border: 1px solid var(--accent); border-radius: 999px; margin-bottom: 26px; letter-spacing: .05em; }
h1, h2, h3 { font-family: var(--mono); }
h1 { font-size: clamp(32px, 5.4vw, 60px); line-height: 1.1; letter-spacing: -0.03em; font-weight: 700; margin-bottom: 18px; max-width: 900px; overflow-wrap: break-word; }
h1 .accent { color: var(--accent); }
.hero .subhead { font-family: var(--mono); font-size: clamp(17px, 2.2vw, 22px); color: var(--accent); margin-bottom: 22px; font-weight: 500; }
.hero p.lead { font-size: 19px; color: var(--text-muted); max-width: 660px; margin-bottom: 36px; }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 14px 26px; border-radius: 999px; font-weight: 600; text-decoration: none; transition: all .2s; cursor: pointer; border: none; font-size: 15px; }
.btn-primary { background: var(--accent-fill); color: var(--accent-on-fill); }
.btn-primary:hover { background: var(--accent-dark); transform: translateY(-2px); }
.btn-secondary { background: transparent; color: var(--text); border: 1px solid var(--border); }
.btn-secondary:hover { border-color: var(--text); }
.btn svg { flex: none; }

section { padding: 80px 0; position: relative; }
section h2 { font-size: clamp(26px, 3.6vw, 42px); line-height: 1.15; letter-spacing: -0.02em; margin-bottom: 20px; max-width: 720px; overflow-wrap: break-word; }
section .section-lead { color: var(--text-muted); font-size: 17px; max-width: 620px; margin-bottom: 50px; }

.offers { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
@media (max-width: 920px) { .offers { grid-template-columns: 1fr; } }
.offer-card { background: var(--bg-elev); border: 1px solid var(--border); border-radius: var(--radius); padding: 30px 28px; transition: border-color .2s, transform .2s; display: flex; flex-direction: column; }
.offer-card:hover { border-color: var(--accent); transform: translateY(-3px); }
.offer-card .icon { width: 44px; height: 44px; border-radius: 12px; background: var(--glow); display: flex; align-items: center; justify-content: center; margin-bottom: 22px; color: var(--accent); }
.icon svg { width: 24px; height: 24px; }
.offer-card h3 { font-size: 19px; margin-bottom: 12px; letter-spacing: -0.01em; }
.offer-card p { color: var(--text-muted); font-size: 15px; margin-bottom: 20px; flex-grow: 1; }
.offer-card .price { font-family: var(--mono); color: var(--accent); font-size: 14px; margin-bottom: 16px; }
.offer-card ul { list-style: none; font-size: 14px; color: var(--text-muted); }
.offer-card li { padding: 6px 0 6px 18px; position: relative; }
.offer-card li::before { content: '▸'; position: absolute; left: 0; color: var(--accent); }
.mail-btn { display: inline-block; margin-top: 18px; padding: 10px 18px; border: 1px solid var(--accent); color: var(--accent); text-decoration: none; border-radius: 8px; font-size: 14px; font-family: var(--mono); overflow-wrap: anywhere; }

.process-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 920px) { .process-steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .process-steps { grid-template-columns: 1fr; } }
.step { padding: 24px; background: var(--bg-elev); border: 1px solid var(--border); border-radius: var(--radius); }
.step .step-num { font-family: var(--mono); font-size: 13px; color: var(--accent); margin-bottom: 14px; }
.step h4 { font-size: 17px; margin-bottom: 8px; }
.step p { font-size: 14px; color: var(--text-muted); }

.differentiator { background: var(--bg-elev); border: 1px solid var(--border); border-radius: var(--radius); padding: 40px; margin-top: 40px; }
@media (max-width: 560px) { .differentiator { padding: 24px; } }
.differentiator h3 { font-size: 20px; margin-bottom: 16px; color: var(--accent); }
.differentiator ul { list-style: none; }
.differentiator li { padding: 10px 0 10px 28px; position: relative; color: var(--text-muted); font-size: 15px; }
.differentiator li::before { content: '✓'; position: absolute; left: 0; color: var(--accent); font-weight: 700; }
.differentiator li strong { color: var(--text); }

.cta-section { text-align: center; padding: 120px 0; background: linear-gradient(180deg, transparent 0%, var(--glow) 100%); }
.cta-section h2 { margin: 0 auto 20px; }
.cta-section p { color: var(--text-muted); margin: 0 auto 36px; max-width: 540px; }

footer { border-top: 1px solid var(--border); padding: 40px 0; color: var(--text-muted); font-size: 13px; }
footer .row { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 20px; }
footer .legal { max-width: 640px; }
footer .legal .tm { color: var(--text); font-size: 14px; font-weight: 600; display: block; margin-bottom: 6px; }
footer .legal span.line { font-size: 12px; display: block; }
footer a { color: var(--text-muted); text-decoration: none; }
footer a:hover { color: var(--text); }
footer .links { display: flex; gap: 22px; flex-wrap: wrap; }

.wa-float { position: fixed; bottom: 24px; right: 24px; background: #25d366; color: #fff; width: 56px; height: 56px; border-radius: 50%; display: flex; align-items: center; justify-content: center; box-shadow: 0 6px 20px rgba(37,211,102,.4); text-decoration: none; z-index: 99; transition: transform .2s; }
.wa-float:hover { transform: scale(1.08); color: #fff; }

/* pagine legali */
.doc { max-width: 760px; margin: 0 auto; padding: 110px 24px 80px; }
.doc h1 { font-size: clamp(28px, 5vw, 44px); margin-bottom: 8px; }
.doc .updated { color: var(--text-muted); font-size: 14px; margin-bottom: 40px; font-family: var(--mono); }
.doc h2 { font-size: 20px; margin: 36px 0 12px; letter-spacing: -0.01em; max-width: none; }
.doc p, .doc li { margin-bottom: 12px; font-size: 16px; }
.doc li { margin-left: 24px; }
.doc code { background: var(--surface); padding: 2px 6px; border-radius: 4px; font-size: 14px; }
.doc .back { display: inline-block; margin-top: 40px; color: var(--text-muted); text-decoration: none; }
.doc .back:hover { color: var(--text); }
.doc .tablewrap { overflow-x: auto; }
.doc table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 14px; min-width: 520px; }
.doc th, .doc td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--border); vertical-align: top; }
.doc th { color: var(--text-muted); font-weight: 500; }
.notfound { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px; text-align: center; }
.notfound .wrap { max-width: 560px; }
.notfound .code { font-family: var(--mono); font-size: 13px; color: var(--accent); border: 1px solid var(--accent); border-radius: 999px; padding: 6px 14px; display: inline-block; margin: 28px 0 22px; letter-spacing: .08em; }
.notfound h1 { font-size: clamp(26px, 6vw, 40px); margin-bottom: 16px; }
.notfound p { color: var(--text-muted); margin-bottom: 32px; }
