:root {
  --bg: #0f0e0b;
  --panel: #181510;
  --panel-2: #211d16;
  --line: #373126;
  --text: #f5efe3;
  --muted: #bdb29f;
  --soft: #8f8677;
  --brand: #f97316;
  --brand-2: #ffb267;
  --ok: #44c277;
  --warn: #f0b44e;
  --danger: #ef6666;
  --max: 1120px;
  color-scheme: dark;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
}

a { color: inherit; }

.skip {
  position: absolute;
  left: -999px;
  top: 12px;
  background: var(--brand);
  color: #180b02;
  padding: 10px 14px;
  z-index: 99;
}

.skip:focus { left: 12px; }

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

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(15, 14, 11, .92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.nav {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.brand {
  text-decoration: none;
  font-weight: 850;
  font-size: 1.34rem;
  letter-spacing: 0;
  white-space: nowrap;
}

.brand span { color: var(--brand); }

.links {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: .94rem;
  color: var(--muted);
}

.links a {
  text-decoration: none;
  white-space: nowrap;
}

.links a:hover { color: var(--text); }

/* Link "Accedi" al portale riservato: distinto dagli altri link di nav. */
.links a.accedi {
  border: 1px solid var(--brand);
  color: var(--brand);
  border-radius: 8px;
  padding: 6px 14px;
  font-weight: 700;
}
.links a.accedi:hover { background: var(--brand); color: #16130c; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: 8px;
  border: 1px solid var(--line);
  padding: 11px 17px;
  text-decoration: none;
  font-weight: 750;
  cursor: pointer;
  font-family: inherit;
  line-height: 1.2;
}

.btn.primary {
  background: var(--brand);
  border-color: var(--brand);
  color: #1b0d02;
}

.btn.ghost {
  background: rgba(255,255,255,.03);
  color: var(--text);
}

.hero {
  padding: 82px 0 54px;
  border-bottom: 1px solid var(--line);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(330px, .75fr);
  gap: 42px;
  align-items: start;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--brand-2);
  text-transform: uppercase;
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .13em;
  margin-bottom: 18px;
}

.dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--brand);
}

h1, h2, h3 {
  margin: 0;
  line-height: 1.08;
  letter-spacing: 0;
}

h1 {
  font-size: clamp(2.28rem, 5.6vw, 4rem);
  max-width: 860px;
}

h2 {
  font-size: clamp(1.65rem, 3.7vw, 2.55rem);
}

h3 { font-size: 1.12rem; }

.lead {
  color: var(--muted);
  font-size: clamp(1.04rem, 1.7vw, 1.22rem);
  max-width: 760px;
  margin: 22px 0 0;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.trust-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 24px;
  color: var(--muted);
  font-size: .94rem;
}

.trust-row span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 12px;
  background: rgba(255,255,255,.02);
}

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px;
}

.form-panel h2 {
  font-size: 1.36rem;
  margin-bottom: 8px;
}

.form-panel p {
  color: var(--muted);
  margin: 0 0 18px;
  font-size: .95rem;
}

label {
  display: block;
  color: var(--muted);
  font-size: .84rem;
  font-weight: 700;
  margin: 14px 0 6px;
}

input, select, textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #0d0c09;
  color: var(--text);
  font: inherit;
  padding: 12px 13px;
  min-height: 44px;
}

textarea { resize: vertical; }

.check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 14px 0;
  color: var(--muted);
  font-size: .9rem;
}

.check input {
  width: 18px;
  height: 18px;
  min-height: 18px;
  flex: none;
  margin-top: 2px;
}

.micro {
  color: var(--soft);
  font-size: .82rem;
  margin-top: 10px;
}

.section {
  padding: 70px 0;
  border-bottom: 1px solid var(--line);
}

.section.alt { background: #12100c; }

.section-head {
  max-width: 780px;
  margin-bottom: 30px;
}

.section-head p {
  color: var(--muted);
  margin: 14px 0 0;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.card {
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: 8px;
  padding: 20px;
}

.card p, .card li { color: var(--muted); }

.card p:last-child { margin-bottom: 0; }

.steps {
  display: grid;
  gap: 12px;
  counter-reset: step;
}

.step {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 14px;
  align-items: start;
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: 8px;
  padding: 18px;
}

.step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  display: flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  border-radius: 8px;
  background: var(--panel-2);
  color: var(--brand);
  border: 1px solid var(--line);
  font-weight: 850;
}

.step p { margin: 7px 0 0; color: var(--muted); }

.table {
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.table th, .table td {
  text-align: left;
  padding: 14px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.table th {
  color: var(--brand-2);
  background: var(--panel-2);
}

.table td { color: var(--muted); }

.notice {
  border-left: 3px solid var(--brand);
  padding: 14px 16px;
  background: rgba(249,115,22,.08);
  color: var(--muted);
  border-radius: 0 8px 8px 0;
}

.footer {
  padding: 42px 0;
  color: var(--soft);
  font-size: .92rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr .9fr;
  gap: 24px;
}

.footer a {
  display: inline-block;
  color: var(--muted);
  margin: 4px 12px 4px 0;
}

.success {
  border-color: rgba(68,194,119,.45);
  background: rgba(68,194,119,.08);
}

.warn {
  border-color: rgba(240,180,78,.5);
  background: rgba(240,180,78,.08);
}

.hidden-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

/* ===== nuovo flusso (home + wizard) ===== */
.hl { color: var(--brand); }
.reassure { display:flex; gap:10px 18px; flex-wrap:wrap; margin-top:26px; color:var(--muted); font-size:.95rem; font-weight:600; }
.reassure span { display:inline-flex; align-items:center; gap:8px; }
.reassure span::before { content:""; width:7px; height:7px; border-radius:50%; background:var(--brand); }

.how { display:grid; grid-template-columns:repeat(4, minmax(0,1fr)); gap:14px; }
.how .card .n { font-weight:850; color:var(--brand); font-size:1.05rem; font-variant-numeric:tabular-nums; }
.how .card h3 { margin:8px 0 6px; }
@media (max-width:920px){ .how{ grid-template-columns:1fr 1fr; } }
@media (max-width:560px){ .how{ grid-template-columns:1fr; } }

.faq details { border:1px solid var(--line); background:var(--panel); border-radius:8px; padding:2px 18px; margin-bottom:10px; }
.faq summary { cursor:pointer; font-weight:750; padding:15px 0; list-style:none; display:flex; justify-content:space-between; gap:10px; }
.faq summary::-webkit-details-marker { display:none; }
.faq summary::after { content:"+"; color:var(--brand); font-weight:850; }
.faq details[open] summary::after { content:"\2013"; }
.faq p { color:var(--muted); padding:0 0 15px; margin:0; }

.cta-band { text-align:center; background:linear-gradient(135deg,#1b140c,#241a10); border:1px solid var(--line); border-radius:12px; padding:52px 24px; }
.cta-band h2 { margin-bottom:10px; }
.cta-band p { color:var(--muted); max-width:60ch; margin:0 auto 24px; }

.list-check { list-style:none; padding:0; margin:14px 0 0; }
.list-check li { position:relative; padding:8px 0 8px 26px; border-top:1px solid var(--line); color:var(--muted); }
.list-check li:first-child { border-top:none; }
.list-check li::before { content:""; position:absolute; left:2px; top:15px; width:8px; height:8px; border-radius:2px; background:var(--brand); }
.list-check.ok li::before { background:var(--ok); }
.list-check.warn li::before { background:var(--warn); }

.badge { display:inline-flex; align-items:center; gap:8px; border-radius:999px; padding:6px 13px; font-weight:750; font-size:.85rem; }
.badge::before { content:""; width:8px; height:8px; border-radius:50%; background:currentColor; }
.badge.ok { background:rgba(68,194,119,.12); color:var(--ok); }
.badge.wait { background:rgba(240,180,78,.12); color:var(--warn); }

/* wizard */
.wizwrap { max-width:600px; margin:0 auto; padding:34px 22px 84px; }
.progress { height:6px; background:var(--line); border-radius:999px; overflow:hidden; }
.progress > i { display:block; height:100%; background:var(--brand); transition:width .3s; }
.progress-lbl { font-size:.82rem; color:var(--soft); margin:10px 0 26px; font-weight:700; }
.wstep { display:none; }
.wstep.active { display:block; }
.wstep h2 { font-size:1.5rem; margin-bottom:6px; }
.wstep .hint { color:var(--muted); margin:0 0 20px; }
.choices { display:flex; flex-direction:column; gap:10px; }
.choice { display:flex; gap:12px; align-items:flex-start; border:1px solid var(--line); border-radius:8px; padding:14px 15px; cursor:pointer; background:var(--panel); }
.choice:hover { border-color:var(--brand); }
.choice.sel { border-color:var(--brand); background:rgba(249,115,22,.08); }
.choice .mk { width:20px; height:20px; border-radius:50%; border:2px solid var(--line); flex:none; margin-top:2px; }
.choice.multi .mk { border-radius:6px; }
.choice.sel .mk { border-color:var(--brand); background:var(--brand); box-shadow:inset 0 0 0 3px var(--panel); }
.choice .c-t { font-weight:750; }
.choice .c-d { color:var(--soft); font-size:.86rem; margin-top:2px; }
.wnav { display:flex; justify-content:space-between; align-items:center; margin-top:28px; gap:12px; }
.kvline { display:flex; justify-content:space-between; gap:12px; padding:9px 0; border-top:1px solid var(--line); }
.kvline:first-child { border-top:none; }
.kvline .k { color:var(--soft); }
@media (prefers-reduced-motion: reduce){ *{ animation:none !important; transition:none !important; } }

@media (max-width: 920px) {
  .hero-grid, .grid, .grid.two, .footer-grid {
    grid-template-columns: 1fr;
  }
  .links {
    display: none;
  }
  .hero {
    padding-top: 54px;
  }
}

@media (max-width: 560px) {
  .wrap { padding: 0 16px; }
  .panel { padding: 18px; }
  .step { grid-template-columns: 1fr; }
  .table { display: block; overflow-x: auto; }
}
