/* Svuotarmadio — foglio di stile unico per landing + pagine legali */

:root {
  --navy: #07091A;
  --blu: #2B7FFF;
  --blu-chiaro: #6AABFF;
  --testo: #16192b;
  --testo-soft: #565b73;
  --sfondo: #ffffff;
  --sfondo-alt: #f6f8fc;
  --bordo: #e3e8f2;
  --max: 720px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --testo: #eef1f8;
    --testo-soft: #a4abc2;
    --sfondo: #07091A;
    --sfondo-alt: #10142a;
    --bordo: #232948;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--sfondo);
  color: var(--testo);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

header.site {
  padding: 28px 0;
  border-bottom: 1px solid var(--bordo);
}
header.site .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.logo {
  font-weight: 700; font-size: 19px; letter-spacing: -0.02em;
  color: var(--testo); text-decoration: none;
}
.logo span { color: var(--blu); }
header.site nav a {
  color: var(--testo-soft); text-decoration: none; font-size: 15px; margin-left: 18px;
}
header.site nav a:hover { color: var(--blu); }

h1 {
  font-size: clamp(32px, 6vw, 46px);
  line-height: 1.12;
  letter-spacing: -0.03em;
  margin: 48px 0 20px;
}
h2 {
  font-size: clamp(22px, 4vw, 27px);
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin: 52px 0 14px;
}
h3 { font-size: 18px; margin: 28px 0 8px; }
p { margin: 0 0 18px; }
a { color: var(--blu); }

.sommario {
  font-size: 20px;
  color: var(--testo-soft);
  margin-bottom: 32px;
}

.cta {
  display: inline-block;
  background: var(--blu);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  padding: 14px 26px;
  border-radius: 10px;
  transition: transform .12s ease, background .12s ease;
}
.cta:hover { background: #1a6bea; transform: translateY(-1px); }
.cta-nota { display: block; margin-top: 12px; font-size: 15px; color: var(--testo-soft); }

.card {
  background: var(--sfondo-alt);
  border: 1px solid var(--bordo);
  border-radius: 14px;
  padding: 22px 24px;
  margin: 16px 0;
}
.card h3 { margin-top: 0; }
.card p:last-child { margin-bottom: 0; }

.griglia { display: grid; gap: 16px; }
@media (min-width: 640px) { .griglia.due { grid-template-columns: 1fr 1fr; } }

ol.passi { padding-left: 0; list-style: none; counter-reset: passo; }
ol.passi li {
  counter-increment: passo;
  position: relative;
  padding-left: 46px;
  margin-bottom: 20px;
}
ol.passi li::before {
  content: counter(passo);
  position: absolute; left: 0; top: 1px;
  width: 30px; height: 30px;
  background: var(--blu); color: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; font-weight: 700;
}

.prezzo {
  text-align: center;
  border: 2px solid var(--blu);
  border-radius: 16px;
  padding: 32px 24px;
  margin: 24px 0;
}
.prezzo .cifra { font-size: 46px; font-weight: 700; letter-spacing: -0.03em; line-height: 1; }
.prezzo .cifra small { font-size: 18px; font-weight: 500; color: var(--testo-soft); }
.prezzo ul { text-align: left; max-width: 340px; margin: 22px auto; padding-left: 20px; }
.prezzo li { margin-bottom: 6px; }

details {
  border-bottom: 1px solid var(--bordo);
  padding: 16px 0;
}
details summary {
  cursor: pointer; font-weight: 600; list-style: none;
}
details summary::-webkit-details-marker { display: none; }
details summary::after { content: " +"; color: var(--blu); float: right; }
details[open] summary::after { content: " –"; }
details p { margin: 12px 0 0; color: var(--testo-soft); }

footer.site {
  margin-top: 72px;
  border-top: 1px solid var(--bordo);
  padding: 32px 0 56px;
  font-size: 14px;
  color: var(--testo-soft);
}
footer.site a { color: var(--testo-soft); }
footer.site nav { margin-bottom: 14px; }
footer.site nav a { margin-right: 16px; }

.legale { font-size: 16px; }
.legale h2 { font-size: 20px; margin-top: 38px; }
.legale ul { padding-left: 22px; }
.legale li { margin-bottom: 8px; }
.aggiornato { color: var(--testo-soft); font-size: 15px; }

.da-compilare {
  background: #fff3cd; color: #664d03;
  border-radius: 4px; padding: 0 5px; font-weight: 600;
}
