/* Portale: registrazione, accesso, dashboard. Si appoggia a api-omi.css (colori, tipografia, pulsanti, .rotola). */

/* Pulsante "Accedi": più piccolo e discreto di "Ottieni la chiave" */
.pill-login { height: 34px; padding: 0 14px; font-size: 14px; background: transparent; color: var(--navy); box-shadow: inset 0 0 0 1.5px var(--line); }
.pill-login::before { background: var(--navy); }
.pill-login:hover, .pill-login:focus-visible { color: #fff; box-shadow: inset 0 0 0 1.5px var(--navy); }
.esci { margin: 0; }
/* Sotto i 480px la barra non ha spazio per due pulsanti: "Accedi" passa nella hero, sopra "Prova ora" */
.hero .accedi-mobile { display: none; height: 48px; font-size: 16px; }
@media (max-width: 480px) {
  .barra a.pill-login { display: none; }   /* il link "Accedi"; "Esci" della dashboard è un pulsante e resta */
  .hero .accedi-mobile { display: inline-flex; }
}
.pill[disabled] { opacity: .5; cursor: not-allowed; transform: none; }
.riga { display: block; overflow: hidden; padding-bottom: .08em; }
.riga > span { display: inline-block; }

/* ---------- Accesso e registrazione ---------- */
.accesso { padding: 72px 0 96px; background: radial-gradient(1200px 500px at 85% -10%, var(--sky), transparent 70%); }
.accesso-griglia { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 460px); gap: 56px; align-items: center; }
.accesso h1 { font-size: clamp(40px, 5.6vw, 70px); line-height: 1; letter-spacing: -.045em; font-weight: 800; }
.accesso-testo p { font-size: 19px; color: var(--muted); margin: 22px 0 0; max-width: 520px; }
.accesso-testo .fatti { margin-top: 24px; }
.modulo { background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: 30px 28px; box-shadow: 0 40px 80px -50px rgba(18,52,86,.45); display: flex; flex-direction: column; gap: 16px; }
.modulo h2 { font-size: 28px; letter-spacing: -.03em; font-weight: 800; }
.modulo label { display: flex; flex-direction: column; gap: 7px; font-size: 14px; font-weight: 700; color: var(--navy); min-width: 0; }
.trappola { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.coppia { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }
.modulo input, .questionario input[type="text"], .nuova-chiave-form input { height: 50px; border-radius: 14px; border: 1px solid var(--line); background: var(--mist); color: var(--navy); font: 500 16px var(--display); padding: 0 16px; min-width: 0; width: 100%; transition: border-color .25s ease, box-shadow .25s ease, background-color .25s ease; }
.modulo input:focus, .questionario input[type="text"]:focus, .nuova-chiave-form input:focus { outline: none; border-color: var(--accent); background: #fff; box-shadow: 0 0 0 4px rgba(65,84,241,.14); }
.modulo input[aria-invalid="true"] { border-color: #d64545; box-shadow: 0 0 0 4px rgba(214,69,69,.12); }
.modulo small { font-weight: 500; color: var(--muted); }
.campo-password { position: relative; display: block; }
.campo-password input { padding-right: 52px; }
.mostra-password { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border: 0; border-radius: 10px; background: transparent; color: var(--muted); font-size: 20px; cursor: pointer; display: grid; place-items: center; transition: background-color .25s ease, color .25s ease; }
.mostra-password:hover { background: var(--sky); color: var(--navy); }
.modulo .pill-grande { justify-content: center; margin-top: 4px; }
.sotto { font-size: 14.5px; color: var(--muted); margin: 0; }
.avviso-errore { background: #fdecec; color: #8a1f1f; border: 1px solid #f3c2c2; border-radius: 12px; padding: 10px 14px; font-size: 15px; margin: 0 0 6px; }
.avviso-info { display: flex; gap: 8px; align-items: center; background: var(--sky); color: var(--navy); border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; font-size: 15px; margin: 0 0 6px; }
.avviso-info .bx { font-size: 18px; color: var(--accent); }

/* ---------- Dashboard: intestazione blu ---------- */
.dash-testa { padding: 76px 0 88px; }
.dash-email { color: #a9bfd8; font: 500 14px var(--mono); margin: 0 0 10px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.distintivo { font: 700 12px var(--display); letter-spacing: .01em; color: #FFE2A8; background: rgba(255,196,87,.14); border: 1px solid rgba(255,196,87,.35); border-radius: 999px; padding: 3px 10px; }
.distintivo-ok { color: #9FE3B8; background: rgba(159,227,184,.12); border-color: rgba(159,227,184,.35); }
.dash-testa h1 { color: #fff; font-size: clamp(42px, 6vw, 76px); line-height: 1; letter-spacing: -.045em; font-weight: 800; }
.dash-numeri { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 40px; }
.numero { position: relative; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); border-radius: 20px; padding: 20px; display: flex; flex-direction: column; gap: 4px; min-width: 0; transition: background-color .4s ease, border-color .4s ease, transform .5s cubic-bezier(.2,.8,.2,1); }
.numero:hover { background: rgba(255,255,255,.09); border-color: rgba(255,255,255,.2); transform: translateY(-3px); }
.etichetta-numero { color: #a9bfd8; font-size: 13px; font-weight: 700; }
.numero strong { color: #fff; font-size: 34px; letter-spacing: -.03em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.numero .di { color: #c9daee; font-size: 14px; }
.numero strong small { font-size: .55em; font-weight: 700; color: #a9bfd8; letter-spacing: 0; }
.barra-uso { display: block; height: 6px; border-radius: 6px; background: rgba(255,255,255,.12); margin-top: 12px; overflow: hidden; }
.barra-uso i { display: block; height: 100%; min-width: 3px; border-radius: 6px; background: linear-gradient(90deg, #9FE3B8, #6fd3a0); transform-origin: left; }
.grafico { display: flex; align-items: flex-end; gap: 3px; height: 48px; margin-top: 10px; }
.grafico i { flex: 1; min-width: 2px; border-radius: 3px 3px 1px 1px; background: rgba(159,178,255,.6); transform-origin: bottom; transition: background-color .2s ease; cursor: default; }
.grafico i:hover, .grafico i.attiva { background: #c9d2ff; }
.grafico-info { position: absolute; right: 20px; top: 18px; font: 600 12px var(--display); color: #fff; background: rgba(255,255,255,.12); border-radius: 999px; padding: 3px 10px; opacity: 0; transform: translateY(4px); transition: opacity .25s ease, transform .35s cubic-bezier(.2,.8,.2,1); pointer-events: none; }
.grafico-info.visibile { opacity: 1; transform: none; }

/* ---------- Dashboard: corpo ---------- */
.dash-corpo { padding-top: 56px; }
.dash-griglia { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.riquadro-dash { background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: 26px; min-width: 0; transition: box-shadow .5s cubic-bezier(.2,.8,.2,1), border-color .5s ease; }
.riquadro-dash:hover { border-color: #c8d9ee; box-shadow: 0 30px 60px -44px rgba(18,52,86,.4); }
.riquadro-testa { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; }
.riquadro-dash h2 { font-size: 24px; letter-spacing: -.03em; margin: 0; }
.riquadro-dash p { color: #34506d; font-size: 16px; }
.conteggio { font: 700 13px var(--display); color: var(--muted); background: var(--mist); border: 1px solid var(--line); border-radius: 999px; padding: 3px 10px; white-space: nowrap; }
.stato-icona { font-size: 28px; }
.stato-icona.ok { color: var(--ok); }
.stato-icona.attesa { color: #c98a14; }
.stato-attesa { background: var(--warn-bg); border: 1px solid var(--warn-line); color: var(--warn-ink) !important; border-radius: 14px; padding: 12px 14px; }
.form-approvazione { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; margin: 0; }
.nota-gratis { display: flex; gap: 6px; align-items: center; color: var(--ok); font-size: 14px; font-weight: 600; }
.nota-gratis .bx { font-size: 17px; }
.pill.in-corso { pointer-events: none; }
.pill.in-corso .bx { animation: gira .8s linear infinite; }
@keyframes gira { to { transform: rotate(360deg); } }
.limiti-note { list-style: none; padding: 16px 0 0; margin: 18px 0 0; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 6px; font-size: 14.5px; color: var(--muted); }
.limiti-note li { display: flex; gap: 8px; align-items: center; }
.limiti-note .bx { color: var(--accent); font-size: 17px; }

.chiavi, .sessioni { list-style: none; padding: 0; margin: 0 0 16px; display: flex; flex-direction: column; gap: 8px; }
.chiavi li, .sessioni li { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 16px; background: var(--mist); border: 1px solid var(--line); transition: background-color .3s ease, transform .5s cubic-bezier(.2,.8,.2,1); }
.chiavi li:hover, .sessioni li:hover { background: var(--sky); }
.chiavi li.revoked { opacity: .55; }
.chiavi li.vuoto { color: var(--muted); font-size: 15px; justify-content: center; }
.chiavi li > div, .sessioni li > div { min-width: 0; flex: 1; display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; }
.chiavi li > .bx, .sessioni li > .bx { font-size: 22px; color: var(--accent); flex: none; }
.chiavi li.revoked > .bx { color: var(--muted); }
.chiavi small, .sessioni small { color: var(--muted); width: 100%; font-size: 13.5px; }
.chiavi code { font-size: 13px; }
.nome-chiave { font-weight: 700; font-size: 15px; }
.questo { color: var(--ok); }
.chiavi form, .sessioni form { margin: 0; flex: none; }
.revoca { border: 0; background: transparent; color: #b42323; font: 700 14px var(--display); cursor: pointer; padding: 7px 12px; border-radius: 10px; transition: background-color .25s ease, color .25s ease, box-shadow .25s ease; white-space: nowrap; }
.revoca:hover { background: #fdecec; }
.revoca.conferma { background: #b42323; color: #fff; box-shadow: 0 8px 20px -10px rgba(180,35,35,.8); }
.nuova-chiave-form { display: flex; gap: 10px; align-items: center; }
.nuova-chiave-form input { height: 44px; flex: 1; }
.nuova-chiave-form .pill { flex: none; height: 44px; }
.nota-chiavi { display: block; margin-top: 10px; color: var(--muted); font-size: 14px; }

/* Notifiche dopo un'azione */
.notifica { display: flex; align-items: center; gap: 10px; background: #E9F7EF; border: 1px solid #b9e3c9; color: #14532d; border-radius: 16px; padding: 12px 14px 12px 16px; margin: 0 0 22px; font-weight: 600; font-size: 15.5px; }
.notifica .bx { font-size: 20px; }
.notifica-avviso { background: var(--warn-bg); border-color: var(--warn-line); color: var(--warn-ink); }
.chiudi-notifica { margin-left: auto; border: 0; background: transparent; color: inherit; font-size: 20px; width: 34px; height: 34px; border-radius: 10px; cursor: pointer; display: grid; place-items: center; }
.chiudi-notifica:hover { background: rgba(0,0,0,.06); }

/* Chiave appena creata */
/* gradiente steso su tutto il riquadro (non una macchia fissa): si adatta a desktop e telefono */
.nuova-chiave { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 20px; align-items: center; color: #fff; border-radius: 24px; padding: 26px; margin-bottom: 18px; position: relative; overflow: hidden;
  background: radial-gradient(140% 120% at 100% 0%, rgba(65,84,241,.42) 0%, rgba(65,84,241,.12) 45%, transparent 75%), linear-gradient(135deg, #123456 0%, #163d66 100%); }
.nuova-chiave h2 { color: #fff; font-size: 24px; margin: 0 0 6px; }
.nuova-chiave p { color: #c9daee; margin: 0; font-size: 15.5px; }
.chiave-riga { display: flex; gap: 10px; align-items: center; position: relative; z-index: 1; }
.chiave-riga code { flex: 1; min-width: 0; background: rgba(255,255,255,.1); color: #9FE3B8; padding: 13px 14px; border-radius: 12px; font-size: 14.5px; overflow-wrap: anywhere; border: 1px solid rgba(159,227,184,.25); }
/* il pulsante ha una larghezza fissa: "Copia" -> "Copiato" non sposta né deforma la casella della chiave */
.chiave-riga .pill { flex: none; width: 122px; justify-content: center; }
.chiave-riga .pill.fatto { background: #9FE3B8; color: var(--navy); }

/* ---------- Quick start ---------- */
.quickstart { margin: 72px 0 56px; }
.quickstart > h2 { font-size: clamp(32px, 4.2vw, 52px); line-height: 1.02; letter-spacing: -.04em; font-weight: 800; margin-bottom: 34px; }
.passi-qs { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0; position: relative; }
.passo-qs { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 22px; position: relative; padding-bottom: 38px; }
.passo-qs:last-child { padding-bottom: 0; }
/* linea che collega i passi: si disegna mentre la sezione entra */
.passo-qs:not(:last-child)::before { content: ""; position: absolute; left: 21px; top: 48px; bottom: 6px; width: 2px; background: var(--line); transform-origin: top; transform: scaleY(var(--linea, 1)); }
.passo-n { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--navy); color: #fff; font-weight: 800; font-size: 18px; box-shadow: 0 0 0 6px var(--sky); }
.passo-qs h3 { font-size: 22px; letter-spacing: -.02em; margin: 6px 0 8px; }
.passo-qs p { color: #34506d; font-size: 16.5px; max-width: 760px; }
.qs-codice, .qs-risposta { position: relative; z-index: 1; }   /* sopra la linea che collega i passi */
.qs-codice { background: var(--code-bg); border-radius: 20px; overflow: hidden; box-shadow: 0 40px 80px -50px rgba(11,34,58,.7); }
.qs-barra { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 10px 0 10px; }
.qs-schede { position: relative; display: flex; gap: 2px; padding: 4px; background: rgba(255,255,255,.06); border-radius: 999px; overflow-x: auto; scrollbar-width: none; min-width: 0; }
.qs-schede::-webkit-scrollbar { display: none; }
.qs-schede.scorre { -webkit-mask-image: linear-gradient(90deg, transparent, #000 18px, #000 calc(100% - 18px), transparent); mask-image: linear-gradient(90deg, transparent, #000 18px, #000 calc(100% - 18px), transparent); }
.qs-schede button { position: relative; z-index: 1; border: 0; background: transparent; color: #a9bfd8; font: 700 14px var(--display); padding: 8px 14px; border-radius: 999px; cursor: pointer; white-space: nowrap; transition: color .35s ease; }
.qs-schede button:hover { color: #fff; }
.qs-schede button[aria-selected="true"] { color: var(--navy); }
.qs-indicatore { position: absolute; z-index: 0; top: 4px; bottom: 4px; left: 0; width: 0; border-radius: 999px; background: #fff; transition: transform .55s cubic-bezier(.65,0,.2,1), width .55s cubic-bezier(.65,0,.2,1); }
/* senza JS l'indicatore non si posiziona: la scheda attiva ha comunque lo sfondo bianco */
.qs-schede:not(.pronta) button[aria-selected="true"] { background: #fff; }
.copia-qs { flex: none; border: 1px solid rgba(255,255,255,.16); background: transparent; color: #DCE8F6; font: 700 13.5px var(--display); padding: 8px 12px; border-radius: 999px; cursor: pointer; display: inline-flex; gap: 6px; align-items: center; transition: background-color .3s ease, color .3s ease, border-color .3s ease; }
.copia-qs:hover { background: rgba(255,255,255,.1); color: #fff; }
.copia-qs.fatto { background: #9FE3B8; border-color: #9FE3B8; color: var(--navy); }
.qs-pannelli { position: relative; overflow: hidden; }
.qs-pannelli pre { background: transparent; border-radius: 0; padding: 20px 22px 24px; white-space: pre; overflow-wrap: normal; overflow-x: auto; tab-size: 4; font-size: 14px; }
.qs-codice .s, .qs-risposta .s { color: #9FE3B8; }
.qs-codice .n, .qs-risposta .n { color: #ffc98b; }
.qs-codice .k { color: #c4a7ff; }
.qs-risposta { white-space: pre; overflow-wrap: normal; overflow-x: auto; margin: 4px 0 18px; font-size: 13.5px; }
.nota-qs { font-size: 15px !important; color: var(--muted) !important; }
.nota-qs .bx { color: var(--accent); }

.dispositivi { margin-top: 18px; }
.piano-pro { margin-top: 18px; background: linear-gradient(180deg, #fff, var(--mist)); }
.piano-pro .stato-icona { color: var(--accent); }
.pro-lista { border-top: 0; padding-top: 0; margin: 4px 0 20px; font-size: 15.5px; color: #34506d; }

/* Consenso al contatto per l'approvazione */
.consenso-box { background: var(--mist); border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; overflow: hidden; }
.consenso-box.chiuso { display: none; }
.consenso { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; color: var(--navy); cursor: pointer; }
.consenso input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--accent); flex: none; cursor: pointer; }
.consenso-nota { display: flex; gap: 6px; align-items: baseline; font-size: 13.5px !important; color: var(--muted) !important; margin: 8px 0 0 30px !important; }

/* Eliminazione dell'account: chiusa di default, in fondo */
.elimina-account { margin-top: 18px; border: 1px solid #f0d0d0; border-radius: 20px; background: #fff; }
.elimina-account summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 8px; padding: 16px 20px; font-weight: 700; color: #b42323; }
.elimina-account summary::-webkit-details-marker { display: none; }
.elimina-account .freccia { margin-left: auto; transition: transform .4s cubic-bezier(.2,.8,.2,1); }
.elimina-account[open] .freccia { transform: rotate(180deg); }
.elimina-corpo { padding: 0 20px 20px; }
.elimina-corpo p { color: #34506d; font-size: 15.5px; }
.form-elimina { display: flex; gap: 10px; flex-wrap: wrap; }
.form-elimina input { height: 44px; flex: 1 1 220px; border-radius: 12px; border: 1px solid var(--line); background: var(--mist); padding: 0 14px; font: 500 15px var(--display); color: var(--navy); }
.form-elimina input:focus { outline: none; border-color: #d64545; box-shadow: 0 0 0 4px rgba(214,69,69,.12); background: #fff; }
.pulsante-pericolo { height: 44px; border: 1.5px solid #d64545; background: #fff; color: #b42323; font: 700 15px var(--display); border-radius: 999px; padding: 0 18px; cursor: pointer; transition: background-color .3s ease, color .3s ease; }
.pulsante-pericolo:hover, .pulsante-pericolo.conferma { background: #b42323; color: #fff; }

/* ---------- Questionario ---------- */
.questionario { display: flex; flex-direction: column; gap: 24px; max-width: 880px; }
.questionario h2 { font-size: clamp(32px, 4.4vw, 52px); line-height: 1.02; letter-spacing: -.04em; font-weight: 800; margin-bottom: 14px; }
.questionario-testa .testo { color: var(--muted); }
.avanzamento { display: flex; align-items: center; gap: 12px; font: 700 13.5px var(--display); color: var(--muted); }
.avanzamento-barra { flex: 0 1 240px; height: 6px; border-radius: 6px; background: var(--line); overflow: hidden; }
.avanzamento-barra i { display: block; height: 100%; width: 100%; background: var(--accent); border-radius: 6px; transform: scaleX(0); transform-origin: left; transition: transform .6s cubic-bezier(.2,.8,.2,1); }
.domanda { border: 0; padding: 0; margin: 0; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.domanda legend, .domanda .legend { font-weight: 700; font-size: 17px; color: var(--navy); padding: 0; margin-bottom: 10px; }
.domanda .legend small { font-weight: 500; color: var(--muted); font-size: 13px; }
.scelte { display: flex; flex-wrap: wrap; gap: 8px; }
.scelta { position: relative; }
.scelta input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.scelta span { display: inline-flex; align-items: center; height: 42px; padding: 0 16px; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; color: var(--navy); font-weight: 600; font-size: 15px; transition: background-color .3s ease, color .3s ease, border-color .3s ease, transform .4s cubic-bezier(.2,.8,.2,1), box-shadow .4s ease; }
.scelta:hover span { border-color: var(--navy); transform: translateY(-1px); }
.scelta input:checked + span { background: var(--navy); border-color: var(--navy); color: #fff; transform: translateY(-1px); box-shadow: 0 10px 22px -14px rgba(18,52,86,.9); }
.scelta input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }
.con-errore legend, .con-errore .legend { color: #b42323; }
.questionario .pill-grande { align-self: flex-start; }

/* ---------- Stati iniziali delle animazioni (solo con JS e movimento consentito) ---------- */
.anima .portale .riga > span { transform: translateY(105%); }
.anima .portale .entra, .anima .dash-testa .numero, .anima .portale .rivela, .anima .nuova-chiave, .anima .notifica { opacity: 0; }
.anima .grafico i { transform: scaleY(0); }
.anima .barra-uso i { transform: scaleX(0); }

@media (max-width: 960px) {
  .nuova-chiave { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 860px) {
  .accesso-griglia, .dash-griglia, .dash-numeri { grid-template-columns: minmax(0, 1fr); }
  .accesso { padding: 44px 0 70px; }
  .dash-testa { padding: 84px 0 70px; }
}
@media (max-width: 600px) {
  .modulo { padding: 24px 20px; }
  .coppia { grid-template-columns: minmax(0, 1fr); }
  .riquadro-dash { padding: 22px 18px; }
  .questionario .pill-grande { align-self: stretch; justify-content: center; }
  .barra .pill-login { padding: 0 12px; }
  .dash-numeri { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .dash-numeri .numero:last-child { grid-column: 1 / -1; }
  .numero { padding: 16px; }
  .numero strong { font-size: 26px; }
  .passo-qs { grid-template-columns: 34px minmax(0, 1fr); gap: 14px; }
  .passo-n { width: 34px; height: 34px; font-size: 15px; box-shadow: 0 0 0 4px var(--sky); }
  .passo-qs:not(:last-child)::before { left: 16px; top: 38px; }
  .qs-codice { margin-left: -48px; border-radius: 16px; }
  .qs-risposta { margin-left: -48px; }
  .qs-pannelli pre { font-size: 12.5px; padding: 16px; }
  .nuova-chiave-form { flex-wrap: wrap; }
  .nuova-chiave-form .pill { width: 100%; justify-content: center; }
  .chiave-riga { flex-wrap: wrap; }
  .chiave-riga .pill { width: 100%; justify-content: center; }
  .dash-testa { padding: 56px 0 64px; }
}

/* conformità: spunta obbligatoria alla registrazione, avviso dei termini aggiornati, i tuoi dati */
.modulo .consenso-box { margin: 4px 0 2px; }
.consenso a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.consenso-errore { border-color: #e0a3a3; background: #fff6f6; }
.testi-nuovi { margin-bottom: 22px; border-color: #c8d3ff; background: #f7f8ff; }
.testi-nuovi .consenso-box, .tuoi-dati .pill { margin: 6px 0 14px; }
.tuoi-dati { margin: 22px 0; }

.modulo label.consenso { flex-direction: row; gap: 10px; font-weight: 500; font-size: 14.5px; line-height: 1.45; }

/* pagine legali delle API (informativa, termini) */
.legale { padding: 56px 0 80px; }
.legale .wrap { max-width: 860px; }
.legale h1 { font-size: clamp(34px, 4.6vw, 52px); letter-spacing: -.04em; font-weight: 800; margin: 0 0 8px; }
.legale .versione { color: var(--muted); font-size: 15px; margin: 0 0 26px; }
.legale-corpo { background: #fff; border: 1px solid var(--line); border-radius: 28px; padding: 38px 42px; }
.legale-corpo h2 { font-size: 22px; letter-spacing: -.025em; font-weight: 800; margin: 30px 0 10px; }
.legale-corpo h2:first-child { margin-top: 0; }
.legale-corpo p, .legale-corpo li { color: #33506f; font-size: 16.5px; line-height: 1.7; }
.legale-corpo ul { padding-left: 22px; margin: 0 0 14px; }
.legale-corpo a { text-decoration: underline; text-underline-offset: 3px; }
.legale-corpo table { width: 100%; border-collapse: collapse; margin: 10px 0 16px; font-size: 15px; }
.legale-corpo th, .legale-corpo td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); color: #33506f; }
.legale-corpo th { background: var(--mist); color: var(--navy); font-weight: 800; }
@media (max-width: 700px) {
  .legale-corpo { padding: 24px 18px; border-radius: 22px; }
  .legale-corpo table, .legale-corpo tbody, .legale-corpo tr, .legale-corpo td { display: block; width: 100%; }
  .legale-corpo thead { display: none; }
  .legale-corpo tr { border-bottom: 1px solid var(--line); padding: 8px 0; }
  .legale-corpo td { border: 0; padding: 4px 0; }
  .legale-corpo td:first-child { font-weight: 800; color: var(--navy); }
}
