/* Pagine pubbliche: landing e listino. Stessa palette dell'app, respiro
   diverso — qui si legge, non si lavora. */

:root {
  --bg: #0e1013;
  --bg-2: #14171c;
  --bg-3: #1b1f26;
  --bg-4: #232830;
  --linea: #2b313b;
  --testo: #e8eaed;
  --testo-2: #a3abb8;
  --testo-3: #6f7887;
  --oro: #f57c1f;
  --oro-scuro: #b3550c;
  --verde: #5fa877;
  --rosso: #d05b57;
  --raggio: 10px;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

a { color: var(--oro); text-decoration: none; }
a:hover { text-decoration: underline; }
code { font-family: var(--mono); font-size: 0.9em; background: var(--bg-3); padding: 1px 5px; border-radius: 4px; }

main { max-width: 1080px; margin: 0 auto; padding: 0 24px; }
section { padding: 76px 0; border-bottom: 1px solid var(--linea); }
/* La barra in alto è fissa: senza questo, un link àncora atterra con il
   titolo nascosto sotto di essa. */
section[id] { scroll-margin-top: 78px; }
section:last-of-type { border-bottom: 0; }

h1, h2, h3 { line-height: 1.22; margin: 0 0 14px; }
h2 { font-size: 30px; letter-spacing: -0.015em; }
h3 { font-size: 17px; }
p { margin: 0 0 16px; }

/* ---------------------------------------------------------------- nav */

.nav {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 15px 26px;
  background: rgba(14, 16, 19, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--linea);
}
.nav .marchio { display: flex; align-items: center; gap: 9px; font-weight: 600; color: var(--testo); font-size: 16px; letter-spacing: -0.01em; }
.nav .marchio img { display: block; color: var(--testo); }
.nav .marchio b { color: var(--oro); font-weight: 700; }
.nav .marchio:hover { text-decoration: none; }
.nav nav { margin-left: auto; display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.nav nav a { color: var(--testo-2); font-size: 14px; }
.nav nav a:hover { color: var(--testo); text-decoration: none; }

.btn {
  display: inline-block;
  padding: 9px 17px;
  border-radius: var(--raggio);
  border: 1px solid var(--linea);
  background: var(--bg-3);
  color: var(--testo);
  font-size: 14px;
  cursor: pointer;
  white-space: nowrap;
}
.btn:hover { background: var(--bg-4); text-decoration: none; }
.btn.oro { background: var(--oro); border-color: var(--oro); color: #16181c; font-weight: 600; }
.btn.oro:hover { background: #ff8f3a; }
.btn.grande { padding: 13px 26px; font-size: 15px; }
.btn:disabled { opacity: 0.45; cursor: default; }

/* --------------------------------------------------------------- hero */

.hero { text-align: center; padding: 74px 0 66px; position: relative; }

/* Le strisce sono il motivo del marchio: sullo stripboard vero i colori
   codificano interno/esterno e giorno/notte. Qui aprono la pagina. */
.strisce { display: flex; gap: 5px; justify-content: center; margin-bottom: 34px; }
.strisce i {
  display: block;
  width: 42px;
  height: 6px;
  border-radius: 3px;
  background: var(--c);
  opacity: 0.9;
  animation: entra 0.5s both;
}
.strisce i:nth-child(1) { animation-delay: 0.02s; }
.strisce i:nth-child(2) { animation-delay: 0.08s; }
.strisce i:nth-child(3) { animation-delay: 0.14s; }
.strisce i:nth-child(4) { animation-delay: 0.20s; }
.strisce i:nth-child(5) { animation-delay: 0.26s; }
.strisce i:nth-child(6) { animation-delay: 0.32s; }
@keyframes entra { from { opacity: 0; transform: translateY(-8px) scaleX(0.4); } }
@media (prefers-reduced-motion: reduce) { .strisce i { animation: none; } }
.hero .occhiello {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 11.5px;
  color: var(--oro);
  margin-bottom: 18px;
}
.hero h1 { font-size: 62px; letter-spacing: -0.035em; margin-bottom: 22px; font-weight: 650; }
.hero h1 em { font-style: normal; color: var(--oro); }
.hero .sommario { font-size: 18px; color: var(--testo-2); max-width: 640px; margin: 0 auto 30px; }
.hero .azioni { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hero .postilla { margin-top: 15px; font-size: 13px; color: var(--testo-3); }

.prova-numeri {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1px;
  background: var(--linea);
  border: 1px solid var(--linea);
  border-radius: 12px;
  overflow: hidden;
  margin-top: 52px;
}
.prova-numeri > div { background: var(--bg-2); padding: 22px 14px; }
.prova-numeri strong { display: block; font-size: 27px; color: var(--oro); font-variant-numeric: tabular-nums; }
.prova-numeri span { font-size: 12px; color: var(--testo-3); text-transform: uppercase; letter-spacing: 0.05em; }
.didascalia { margin-top: 14px; font-size: 12.5px; color: var(--testo-3); }

/* ---------------------------------------------------------- anteprima */

.anteprima { padding-top: 0; }
.finestra {
  border: 1px solid var(--linea);
  border-radius: 14px;
  overflow: hidden;
  background: var(--bg-2);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}
.barra-finestra {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 11px 15px;
  background: var(--bg-3);
  border-bottom: 1px solid var(--linea);
}
.barra-finestra i { width: 10px; height: 10px; border-radius: 50%; background: var(--bg-4); }
.barra-finestra span { margin-left: 10px; font-size: 12px; color: var(--testo-3); }

.strip-demo { padding: 4px 0; }
.strip-demo .riga {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) 74px;
  align-items: center;
  gap: 12px;
  padding: 11px 16px;
  border-left: 4px solid var(--linea);
  border-bottom: 1px solid var(--bg-3);
  font-size: 13px;
}
.strip-demo .riga:last-child { border-bottom: 0; }
.strip-demo .riga.g { border-left-color: #f5b921; }
.strip-demo .riga.n { border-left-color: #2668c4; }
.strip-demo .riga.m { border-left-color: #c47ba0; }
.strip-demo .n { font-family: var(--mono); color: var(--oro); font-size: 12px; }
.strip-demo .sl { font-family: var(--mono); font-size: 12.5px; color: var(--testo); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.strip-demo .pp { text-align: right; font-variant-numeric: tabular-nums; color: var(--testo-2); font-size: 12.5px; }

.legenda {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 12px 16px;
  border-top: 1px solid var(--linea);
  background: var(--bg-3);
  font-size: 12px;
  color: var(--testo-2);
  flex-wrap: wrap;
}
.legenda i { display: inline-block; width: 11px; height: 5px; border-radius: 2px; margin-right: 5px; vertical-align: middle; }
.legenda .spinta { margin-left: auto; color: var(--testo-3); }

.anteprima .prova-numeri { margin-top: 26px; }

/* ----------------------------------------------------------- problema */

.problema .occhio { font-size: 17px; color: var(--testo-2); max-width: 700px; }
.doppia { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; margin-top: 30px; }
.lato { border-radius: 14px; padding: 24px; border: 1px solid var(--linea); }
.lato .etichetta {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.11em;
  margin-bottom: 14px;
  font-weight: 600;
}
.lato ul { list-style: none; padding: 0; margin: 0; }
.lato li { padding: 8px 0 8px 26px; position: relative; font-size: 14.5px; }
.lato.vecchio { background: var(--bg-2); }
.lato.vecchio .etichetta { color: var(--testo-3); }
.lato.vecchio li { color: var(--testo-3); }
.lato.vecchio li::before { content: '✕'; position: absolute; left: 0; color: var(--rosso); opacity: 0.7; }
.lato.nuovo { background: rgba(245, 124, 31, 0.05); border-color: var(--oro-scuro); }
.lato.nuovo .etichetta { color: var(--oro); }
.lato.nuovo li { color: var(--testo); }
.lato.nuovo li::before { content: '✓'; position: absolute; left: 0; color: var(--verde); }

/* -------------------------------------------------------------- passi */

.passi ol { list-style: none; padding: 0; margin: 30px 0 0; display: grid; gap: 26px; }
.passi li { display: grid; grid-template-columns: 46px minmax(0, 1fr); gap: 6px 18px; align-items: start; }
/* Senza questo il paragrafo finisce nella colonna da 46px e va a capo
   a ogni parola: i figli si dispongono da soli sulla griglia. */
.passi li h3 { grid-column: 2; margin: 8px 0 0; }
.passi li p { grid-column: 2; }
.passi .numero { grid-row: span 2; }
.passi .numero {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--oro-scuro);
  color: var(--oro);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
}
.passi p { color: var(--testo-2); margin: 0; }

/* ---------------------------------------------------------- confronto */

.confronto .intro { color: var(--testo-2); max-width: 680px; font-size: 17px; }
.carte { display: grid; grid-template-columns: repeat(auto-fit, minmax(298px, 1fr)); gap: 16px; margin: 32px 0 24px; }
.carte article {
  background: var(--bg-2);
  border: 1px solid var(--linea);
  border-radius: 14px;
  padding: 24px;
  position: relative;
  overflow: hidden;
  transition: border-color 0.18s, transform 0.18s;
}
.carte article::before {
  content: '';
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: var(--tinta, var(--oro));
}
.carte article:hover { border-color: #3a424f; transform: translateY(-2px); }
.carte .icona { font-size: 21px; margin-bottom: 10px; }
.carte h3 { font-size: 16.5px; margin: 0 0 12px; }
.carte p { font-size: 14px; margin: 0 0 10px; }
.carte .vecchia { color: var(--testo-3); padding-left: 20px; position: relative; }
.carte .vecchia::before { content: '✕'; position: absolute; left: 0; color: var(--testo-3); }
.carte .nuova { color: var(--testo); padding-left: 20px; position: relative; margin-bottom: 0; }
.carte .nuova::before { content: '✓'; position: absolute; left: 0; color: var(--verde); }

.onesta {
  background: var(--bg-2);
  border-left: 3px solid var(--oro-scuro);
  border-radius: var(--raggio);
  padding: 17px 21px;
  color: var(--testo-2);
  font-size: 14.5px;
  margin: 0;
}

/* ---------------------------------------------------------- dettagli */

.dettagli .griglia { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; margin-top: 28px; }
.dettagli article {
  background: var(--bg-2);
  border: 1px solid var(--linea);
  border-radius: 12px;
  padding: 22px;
  border-top: 3px solid var(--tinta, var(--oro));
}
.dettagli article h3 { font-size: 15.5px; color: var(--testo); }
.dettagli article p { color: var(--testo-2); font-size: 14px; margin: 0; }

/* ----------------------------------------------------------- privacy */

.privacy { text-align: center; }
.privacy .scudo {
  font-size: 30px;
  width: 62px;
  height: 62px;
  margin: 0 auto 18px;
  border-radius: 50%;
  border: 1px solid var(--linea);
  background: var(--bg-2);
  display: flex;
  align-items: center;
  justify-content: center;
}
.privacy p { color: var(--testo-2); max-width: 720px; margin: 0 auto; }

.chiusura { text-align: center; }
.chiusura p { color: var(--testo-2); margin-bottom: 26px; }
.chiusura .azioni { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ------------------------------------------------------------ footer */

footer {
  border-top: 1px solid var(--linea);
  padding: 34px 26px 46px;
  max-width: 1080px;
  margin: 0 auto;
}
footer > div { display: flex; align-items: baseline; gap: 12px; }
footer strong { color: var(--testo); font-size: 15px; }
footer strong b { color: var(--oro); }
footer > div span { color: var(--testo-3); font-size: 13px; }
footer nav { display: flex; gap: 20px; margin: 14px 0 20px; flex-wrap: wrap; }
footer nav a { color: var(--testo-2); font-size: 13.5px; }
.nota-legale { font-size: 11.5px; color: var(--testo-3); max-width: 720px; margin: 0; line-height: 1.55; }

/* ------------------------------------------------------------ listino */

.testata-listino { text-align: center; padding: 62px 0 12px; }
.testata-listino h1 { font-size: 40px; letter-spacing: -0.02em; }
.testata-listino p { color: var(--testo-2); font-size: 17px; max-width: 620px; margin: 0 auto; }

.listino { display: grid; grid-template-columns: repeat(auto-fit, minmax(232px, 1fr)); gap: 16px; align-items: stretch; padding: 34px 0 12px; }
.piano {
  background: var(--bg-2);
  border: 1px solid var(--linea);
  border-radius: 14px;
  padding: 26px 22px;
  position: relative;
  display: flex;
  flex-direction: column;
}
.piano.consigliato { border-color: var(--oro); box-shadow: 0 0 0 1px rgba(245, 124, 31, 0.22); }
.piano.corrente { border-color: var(--verde); }
.piano .nastro {
  position: absolute;
  top: -11px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--oro);
  color: #16181c;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 20px;
  white-space: nowrap;
}
.piano h2 { font-size: 17px; margin: 0 0 6px; }
.piano .prezzo { font-size: 38px; font-weight: 600; line-height: 1.05; }
.piano .prezzo span { font-size: 14px; color: var(--testo-3); font-weight: 400; }
.piano .iva { font-size: 11.5px; color: var(--testo-3); margin-top: 3px; }
.nota-iva { font-size: 12.5px; color: var(--testo-3); max-width: 700px; margin: 18px auto 0; text-align: center; line-height: 1.55; }
.piano .sommario { color: var(--testo-2); font-size: 13.5px; margin: 10px 0 18px; min-height: 46px; }
.piano ul { list-style: none; padding: 0; margin: 0 0 20px; flex: 1; }
.piano li { font-size: 13.5px; padding: 5px 0 5px 21px; position: relative; }
.piano li::before { content: '✓'; position: absolute; left: 0; color: var(--verde); }
.piano li.escluso { color: var(--testo-3); }
.piano li.escluso::before { content: '✕'; color: var(--testo-3); }
.piano li.in-arrivo { color: var(--testo-3); font-style: italic; }
.piano li.in-arrivo::before { content: '◷'; color: var(--oro-scuro); }
.piano .btn { width: 100%; text-align: center; }

.avviso-listino {
  border: 1px solid rgba(245, 124, 31, 0.35);
  background: rgba(245, 124, 31, 0.07);
  color: #e8cf9d;
  border-radius: var(--raggio);
  padding: 13px 17px;
  font-size: 14px;
  margin: 22px 0 0;
}

.faq { padding: 62px 0; }
.faq h2 { text-align: center; margin-bottom: 30px; }
.faq .coppia { border-bottom: 1px solid var(--linea); padding: 18px 0; }
.faq .coppia:last-child { border-bottom: 0; }
.faq .domanda { font-weight: 600; margin-bottom: 6px; }
.faq .risposta { color: var(--testo-2); margin: 0; font-size: 14.5px; }

@media (max-width: 780px) {
  .hero h1 { font-size: 40px; }
  h2 { font-size: 25px; }
        .nav nav { gap: 13px; }
  .nav nav a:not(.btn) { display: none; }
}

/* ---------- cadenza di pagamento e calcolatrice Studio ---------- */

.interruttore-cadenza {
  border: 1px solid var(--linea); border-radius: 999px; padding: 3px; gap: 3px;
  background: var(--bg-2);
}
.interruttore-cadenza button {
  border: 0; background: none; color: var(--testo-2); cursor: pointer;
  padding: 7px 20px; border-radius: 999px; font-size: 14px; font-family: inherit;
}
.interruttore-cadenza button.attivo { background: var(--oro); color: #17130d; font-weight: 600; }
.interruttore-cadenza b { color: var(--verde); font-weight: 700; }
.interruttore-cadenza button.attivo b { color: #17130d; }

.piano .sconto {
  position: absolute; top: 12px; right: 12px;
  background: var(--verde); color: #0d1a11; font-size: 11px; font-weight: 700;
  padding: 2px 9px; border-radius: 999px; letter-spacing: 0.01em;
}
.piano .prezzo s { color: var(--testo-3); font-size: 0.5em; font-weight: 400; margin-right: 8px; }
.piano .prezzo em { font-style: normal; font-size: 0.38em; color: var(--testo-3); font-weight: 400; }

/* La calcolatrice: due colonne, cursori a sinistra e conto a destra, perché
   quello che si muove e quello che cambia devono stare nello stesso sguardo. */
.calcolatrice {
  border: 1px solid var(--linea); border-radius: 14px; background: var(--bg-2);
  padding: 22px 24px; margin: 26px 0 8px;
}
.calcolatrice h3 { font-size: 18px; margin: 0 0 16px; }
.calcolatrice .corpo { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
@media (max-width: 780px) { .calcolatrice .corpo { grid-template-columns: 1fr; gap: 20px; } }
.cursori { display: flex; flex-direction: column; gap: 20px; justify-content: center; }
.cursore span { display: flex; justify-content: space-between; font-size: 13.5px; color: var(--testo-2); margin-bottom: 8px; }
.cursore b { color: var(--oro); font-variant-numeric: tabular-nums; font-size: 15px; }
.cursore input[type="range"] { width: 100%; accent-color: var(--oro); }
.calcolatrice table { width: 100%; border-collapse: collapse; }
.calcolatrice td { padding: 7px 0; border-bottom: 1px solid var(--linea); font-size: 13.5px; vertical-align: top; }
.calcolatrice td.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.calcolatrice .origine { font-size: 11.5px; color: var(--testo-3); margin-top: 2px; }
.calcolatrice tr.totale td { border-bottom: 0; border-top: 2px solid var(--linea); font-size: 17px; padding-top: 10px; }
.calcolatrice .btn { margin-top: 14px; display: block; text-align: center; }

/* ---------- menù delle funzionalità ---------- */

.funzioni { padding: 30px 0 10px; }
.funzioni .occhio { font-size: 17px; color: var(--testo-2); max-width: 700px; margin-bottom: 26px; }
.menu-funzioni { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }
.menu-funzioni article {
  background: var(--bg-2); border: 1px solid var(--linea); border-radius: 14px; padding: 20px 22px;
}
.menu-funzioni h3 { font-size: 15px; margin: 0 0 12px; display: flex; align-items: center; gap: 9px; }
.menu-funzioni .pallino { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.menu-funzioni ul { list-style: none; padding: 0; margin: 0; }
.menu-funzioni li {
  font-size: 13.5px; color: var(--testo-2); line-height: 1.5;
  padding: 6px 0 6px 18px; position: relative; border-bottom: 1px solid var(--bg-3);
}
.menu-funzioni li:last-child { border-bottom: 0; }
.menu-funzioni li::before { content: '›'; position: absolute; left: 3px; color: var(--oro); }

.elenco-privacy { list-style: none; padding: 0; margin: 18px auto 0; max-width: 720px; text-align: left; }
.elenco-privacy li {
  font-size: 14.5px; color: var(--testo-2); line-height: 1.55;
  padding: 9px 0 9px 20px; position: relative; border-bottom: 1px solid var(--linea);
}
.elenco-privacy li:last-child { border-bottom: 0; }
.elenco-privacy li::before { content: '·'; position: absolute; left: 5px; color: var(--oro); font-weight: 700; }
.elenco-privacy strong { color: var(--testo); }
