/* Omissify — pagine Account e Dizionario sullo schema di Mine (Stefano, 11 novembre 2026),
   dall'anteprima "Omissify Account": menu di testo a sinistra con la voce scelta su un
   nastro di censura, una sezione alla volta, schede bianche con le righe separate da una
   linea, il riquadro scuro di "Passa a Pro". Stessi caratteri e colori della home, tutti in
   locale. La password sotto il nastro è quella di js/password.js. */

@font-face { font-family: "Inter"; src: url("../fonts/inter-regular-latin.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-medium-latin.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-semibold-latin.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("../fonts/geist-mono-latin.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  color-scheme: light;
  --fondo: #f3f3f2; --bianco: #ffffff; --scuro: #000000; --testo: #111111; --testo-2: #444444;
  --tenue: #6b6b6b;   /* nero pieno e grigi neutri, come la home (Stefano, 11 novembre 2026) */ --bordo: #e6e6e3; --bordo-2: #d9d9d5; --accento: #b8341f;
  --ok: #2f9e5b; --ok-fondo: #eef7f1; --ok-testo: #1f5a37; --err-fondo: #fbeeeb;
  --sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --strappo: polygon(.18em 0, calc(100% - .14em) 0, 100% 18%, calc(100% - .2em) 41%, calc(100% - .04em) 63%, calc(100% - .22em) 82%, calc(100% - .08em) 100%, .1em 100%, 0 79%, .2em 57%, .03em 36%, .16em 17%);
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-height: 100svh; display: flex; flex-direction: column; background: var(--fondo); color: var(--testo); font: 400 1rem/1.55 var(--sans); -webkit-font-smoothing: antialiased; }
h1, h2, h3, p { margin: 0; }
button { font: inherit; color: inherit; }
a { color: inherit; }
img { display: block; max-width: 100%; }
:focus-visible { outline: 2px solid var(--scuro); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--scuro); color: #fff; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 12px; top: 12px; z-index: 200; transform: translateY(-200%); background: var(--scuro); color: #fff; padding: 10px 18px; border-radius: 8px; text-decoration: none; }
.skip-link:focus { transform: none; }
.larga { width: min(100% - 2 * clamp(16px, 4vw, 56px), 1180px); margin-inline: auto; }

/* ---------- Testata ---------- */
.testata { position: sticky; top: 0; z-index: 10; background: rgba(255,255,255,.94); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-bottom: 1px solid var(--bordo); }
.testata__riga { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 68px; }
.testata__logo img { height: 26px; width: auto; }
.testata__email { font-size: .9375rem; color: var(--testo-2); overflow-wrap: anywhere; text-align: right; }
@media (max-width: 560px) { .testata__email { display: none; } }

/* ---------- Una colonna (Stefano, 23 novembre 2026) ----------
   Una pagina sola, schede una sotto l'altra, larga quanto si legge bene. */
.pagina { flex: 1; width: min(100% - 2 * clamp(16px, 4vw, 32px), 720px); margin-inline: auto; padding-block: clamp(32px, 5vw, 56px) 96px; display: grid; gap: 20px; align-content: start; }
.pagina > .scheda { scroll-margin-top: 88px; }
.intesta { display: grid; gap: 8px; margin-bottom: 8px; }
.intesta__titolo { font-size: clamp(1.875rem, 1.4rem + 1.6vw, 2.5rem); font-weight: 600; letter-spacing: -.03em; line-height: 1.1; }
.intesta__chi { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; color: var(--testo-2); overflow-wrap: anywhere; }
.chip { display: inline-flex; align-items: center; padding: 3px 11px; border-radius: 999px; background: #e6e6e3; font-size: .8125rem; font-weight: 500; color: var(--testo-2); }
.chip--scuro { background: var(--scuro); color: #fff; }
.indietro { justify-self: start; display: inline-flex; gap: 6px; font-size: .9375rem; color: var(--testo-2); text-decoration: none; }
.indietro:hover { color: var(--testo); }
.vista__titolo { font-size: clamp(1.875rem, 1.4rem + 1.6vw, 2.5rem); font-weight: 600; letter-spacing: -.03em; line-height: 1.1; }
.vista__sotto { color: var(--testo-2); max-width: 58ch; }
.griglia--una { display: grid; gap: 20px; }
.piede-pagina { text-align: center; margin-top: 8px; }
.piede-pagina a { color: var(--testo-2); }
main { min-width: 0; }

/* ---------- Schede ---------- */
.scheda { background: var(--bianco); border: 1px solid var(--bordo); border-radius: 14px; box-shadow: 0 1px 2px rgba(20,22,26,.04); overflow: hidden; min-width: 0; }
.scheda__testa { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 24px 6px; }
.scheda__titolo { font-size: 1.125rem; font-weight: 600; letter-spacing: -.01em; }
.scheda__corpo { padding: 14px 24px 22px; display: grid; gap: 14px; }
.scheda__corpo.messaggi:not(:has(> :not([hidden]))) { display: none; }
.scheda__messaggi { display: grid; gap: 10px; }
.scheda__messaggi:not(:has(> :not([hidden]))) { display: none; }
.riga { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 24px; border-top: 1px solid var(--bordo); }
.scheda__testa + .riga, .scheda__testa + p.riga, .scheda__testa + .scheda__corpo { border-top: 0; }
.riga--blocco { display: grid; justify-content: stretch; gap: 14px; }
.riga--blocco .selettore { max-width: 420px; }
.riga__testo { display: grid; gap: 3px; min-width: 0; }
.riga__nome { font-weight: 500; }
.riga__nota, .nota { color: var(--tenue); font-size: .9375rem; line-height: 1.5; overflow-wrap: anywhere; }
.nota a { color: var(--testo); text-underline-offset: 3px; }
.riga--link { cursor: pointer; text-decoration: none; transition: background .15s; }
.riga--link:hover { background: #fafaf9; }
.riga--link::after { content: "›"; color: var(--tenue); font-size: 1.4rem; line-height: 1; }
.riga--rossa .riga__nome { color: var(--accento); }
.riga--rossa::after { content: none; }
.riga--tasto { width: 100%; border: 0; border-top: 1px solid var(--bordo); background: none; text-align: left; font: inherit; color: inherit; }
.riga--tasto:disabled { opacity: .6; cursor: default; }
label.riga { cursor: pointer; }
@media (max-width: 520px) { .scheda__testa, .scheda__corpo, .riga { padding-inline: 18px; } }

/* ---------- Tasti ---------- */
.tasto { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; padding: 0 16px; border-radius: 8px; border: 1px solid transparent; font: 500 .9375rem/1 var(--sans); text-decoration: none; cursor: pointer; white-space: nowrap; transition: background .2s, border-color .2s; }
.tasto--scuro { background: var(--scuro); color: #fff; }
.tasto--scuro:hover { background: #2a2a2a; }
.tasto--rosso { background: var(--accento); color: #fff; }
.tasto--rosso:hover { filter: brightness(.92); }
.tasto--bordo { background: var(--bianco); border-color: var(--bordo-2); color: var(--testo); }
.tasto--bordo:hover { border-color: var(--testo); }
.tasto--piccolo { min-height: 34px; padding: 0 12px; font-size: .875rem; }
.tasto:disabled { opacity: .55; cursor: default; }
.pulsanti { display: flex; gap: 10px; flex-wrap: wrap; }

/* ---------- Il piano ---------- */
.piano__riga { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.piano__nome { font-size: 1.25rem; font-weight: 600; }
.barra { height: 8px; border-radius: 999px; background: #ececea; overflow: hidden; }
.barra i { display: block; height: 100%; width: 0; background: var(--scuro); border-radius: 999px; }
.barra i[data-usati="1"] { width: 33.3%; }
.barra i[data-usati="2"] { width: 66.6%; }
.barra i[data-usati="3"] { width: 100%; }
.pro { margin-top: 4px; padding: 20px 22px; border-radius: 12px; background: var(--scuro); color: #fff; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 24px; align-items: center; }
.pro p, .pro small { grid-column: 1; }
.pro p { color: #c9cacd; font-size: .9375rem; }
.pro b { color: #fff; font-weight: 600; }
.pro small { color: #a9abaf; font-size: .8125rem; }
.pro .tasto { grid-column: 2; grid-row: 1 / span 2; background: #fff; color: var(--scuro); min-height: 44px; padding: 0 22px; }
.pro .tasto:hover { background: #ececea; }
@media (max-width: 560px) { .pro { grid-template-columns: 1fr; } .pro .tasto { grid-column: 1; grid-row: auto; width: 100%; } }

/* ---------- Interruttore e selettore ---------- */
.interruttore { appearance: none; -webkit-appearance: none; flex: none; position: relative; width: 46px; height: 26px; margin: 0; border-radius: 999px; background: var(--bordo-2); cursor: pointer; transition: background .2s; }
.interruttore::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.2); transition: transform .2s var(--ease); }
.interruttore:checked { background: var(--scuro); }
.interruttore:checked::after { transform: translateX(20px); }
.selettore { display: grid; grid-template-columns: repeat(3, 1fr); max-width: 420px; padding: 4px; border-radius: 10px; background: #ececea; }
.selettore button { min-height: 38px; border: 0; border-radius: 7px; background: transparent; color: var(--testo-2); font-size: .9375rem; font-weight: 500; cursor: pointer; }
.selettore button[aria-pressed="true"] { background: #fff; color: var(--testo); box-shadow: 0 1px 3px rgba(0,0,0,.1); }
.selettore button:disabled { cursor: default; }
.selettore button:disabled:not([aria-pressed="true"]) { color: #a3a4a7; }
.selettore button:focus-visible { outline: 2px solid var(--scuro); outline-offset: -2px; }
.conferma { max-width: 520px; padding: 16px 18px; border: 1px solid #f0c9c1; border-radius: 12px; background: #fdf5f3; display: grid; gap: 12px; }
.conferma p { font-size: .9375rem; }
.etichetta-pro { font-size: .6875rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--accento); margin-left: 6px; vertical-align: .2em; }
.ph { display: inline-block; font-family: var(--mono); font-size: .78em; font-weight: 500; background: var(--scuro); color: #fff; padding: 0 .5em; line-height: 1.6; clip-path: var(--strappo); white-space: nowrap; }

/* ---------- Computer ---------- */
.computer { list-style: none; margin: 0; padding: 0; }
.computer li { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 2px 14px; align-items: center; padding: 16px 24px; border-top: 1px solid var(--bordo); }
.computer li:first-child { border-top: 0; }
.computer li::before { content: ""; grid-row: 1 / span 2; width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--bordo); background: #fafaf9 url("../assets/computer.svg") center / 20px no-repeat; }
.computer__nome { grid-column: 2; font-weight: 500; overflow-wrap: anywhere; }
.computer__date { grid-column: 2; font-size: .875rem; color: var(--tenue); }
.computer__esci { grid-column: 3; grid-row: 1 / span 2; }
.contatore { font-size: .9375rem; color: var(--tenue); font-variant-numeric: tabular-nums; }
@media (max-width: 520px) {
  .computer li { grid-template-columns: 40px minmax(0, 1fr); padding-inline: 18px; }
  .computer__esci { grid-column: 2; grid-row: auto; justify-self: start; margin-top: 8px; }
}

/* ---------- Messaggi e modulo ---------- */
.ok { display: flex; gap: 10px; align-items: baseline; padding: 12px 16px; border-radius: 10px; background: var(--ok-fondo); color: var(--ok-testo); font-size: .9375rem; }
.ok::before { content: ""; flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--ok); transform: translateY(-2px); }
.err { padding: 12px 16px; border-radius: 10px; background: var(--err-fondo); color: var(--accento); font-size: .9375rem; }
.modulo { max-width: 460px; }
.modulo label { font-size: .9375rem; font-weight: 500; }
.modulo input, .aggiungi input, .aggiungi select { height: 44px; padding: 0 14px; border: 1px solid var(--bordo-2); border-radius: 10px; background: var(--bianco); color: var(--testo); font: 400 1rem var(--sans); min-width: 0; }
.modulo input:focus, .aggiungi input:focus, .aggiungi select:focus { outline: none; border-color: var(--scuro); box-shadow: 0 0 0 3px rgba(0,0,0,.1); }
.modulo:has(.errore:not([hidden])) input { border-color: var(--accento); }

.campo-password { position: relative; display: flex; }
.campo-password input { flex: 1; padding-right: 50px; }
.campo-password input[type="password"] { color: transparent; caret-color: var(--testo); }
.nastro-password {
  --h: 16px;
  position: absolute; left: 15px; top: 50%; height: var(--h); width: 0; transform: translateY(-50%);
  background: var(--scuro); pointer-events: none;
  clip-path: polygon(
    calc(100% - 0.0457*var(--h)) 0%, 100% 9.4%, calc(100% - 0.0467*var(--h)) 18%, calc(100% - 0.0137*var(--h)) 27.7%,
    calc(100% - 0.049*var(--h)) 36.4%, calc(100% - 0.0155*var(--h)) 46.9%, calc(100% - 0.0389*var(--h)) 53.6%,
    calc(100% - 0.0043*var(--h)) 65.2%, calc(100% - 0.0555*var(--h)) 70.4%, calc(100% - 0.005*var(--h)) 84.1%,
    calc(100% - 0.0403*var(--h)) 91.5%, calc(100% - 0.017*var(--h)) 100%,
    calc(0.037*var(--h)) 100%, calc(0.0103*var(--h)) 89.6%, calc(0.0416*var(--h)) 82.9%, 0 75.2%,
    calc(0.0542*var(--h)) 62.5%, calc(0.007*var(--h)) 55.4%, calc(0.045*var(--h)) 46.2%, calc(0.006*var(--h)) 38.1%,
    calc(0.0438*var(--h)) 27.1%, calc(0.0151*var(--h)) 16.9%, calc(0.0392*var(--h)) 6.9%, calc(0.0057*var(--h)) 0%
  );
}
.occhio { position: absolute; right: 3px; top: 3px; bottom: 3px; width: 44px; padding: 0; display: grid; place-items: center; border: 0; border-radius: 8px; background: none; color: var(--tenue); cursor: pointer; }
.occhio:hover { color: var(--testo); background: var(--fondo); }
.occhio svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.occhio .occhio-chiuso, .occhio[aria-pressed="true"] .occhio-aperto { display: none; }
.occhio[aria-pressed="true"] .occhio-chiuso { display: block; }

/* ---------- Dizionario ---------- */
.aggiungi { display: flex; flex-wrap: wrap; gap: 10px; }
.aggiungi input { flex: 1 1 220px; }
.aggiungi .aggiungi__etichetta { flex: 0 1 170px; text-transform: uppercase; }
.dizionario__elenco { list-style: none; margin: 0; padding: 0; }
.dizionario__elenco li { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 16px 26px; border-top: 1px solid var(--bordo); font-size: .9375rem; }
.dizionario__elenco .cresce { flex: 1 1 10em; min-width: 0; font-weight: 500; font-size: 1rem; overflow-wrap: anywhere; }
.dizionario__elenco .tipo { font-family: var(--mono); font-size: .75rem; font-weight: 500; background: var(--scuro); color: #fff; padding: 0 .55em; line-height: 1.7; clip-path: var(--strappo); white-space: nowrap; }
.dizionario__elenco .tipo::before { content: "["; }
.dizionario__elenco .tipo::after { content: "]"; }
.dizionario__elenco .scade { color: var(--tenue); font-size: .875rem; }
.dizionario__elenco .scelta { display: inline-flex; align-items: center; gap: 6px; color: var(--tenue); }
.dizionario__elenco select, .dizionario__elenco input { height: 34px; padding: 0 8px; border: 1px solid var(--bordo-2); border-radius: 8px; background: var(--bianco); font: 400 .875rem var(--sans); color: var(--testo); }
.dizionario__elenco input[type="number"] { width: 5.5em; }
.dizionario__elenco button { min-height: 34px; padding: 0 12px; border: 1px solid var(--bordo-2); border-radius: 8px; background: var(--bianco); color: var(--testo); font: 500 .875rem/1 var(--sans); cursor: pointer; }
.dizionario__elenco button:hover { border-color: var(--testo); }
.dizionario__elenco .nota { color: var(--tenue); }
@media (max-width: 520px) { .dizionario__elenco li { padding-inline: 18px; } }

/* ---------- Piede ---------- */
.piede { background: var(--scuro); color: #c9cacd; font-size: .9375rem; }
.piede__riga { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; padding-block: 28px; }
.piede__riga img { height: 22px; width: auto; }
.piede nav { display: flex; gap: 24px; flex-wrap: wrap; }
.piede nav a { text-decoration: none; color: #fff; }
.piede nav a:hover { text-decoration: underline; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }

/* ---------- Login e Conferma (Stefano, 11 novembre 2026) ----------
   Lo stesso aspetto dell'account: fondo grigio, una scheda bianca al centro,
   campi e tasti uguali, la password sotto il nastro nero. */
.testata__link { font-size: .9375rem; color: var(--testo-2); text-decoration: none; }
.testata__link:hover { color: var(--testo); }
main.accesso { flex: 1; display: grid; justify-items: center; align-content: start; padding-block: clamp(40px, 8vw, 96px) 96px; }
.accesso__scheda { width: min(100%, 440px); padding: clamp(26px, 5vw, 40px); display: grid; gap: 14px; }
.accesso__scheda h1 { font-size: clamp(1.75rem, 1.4rem + 1vw, 2.125rem); font-weight: 600; letter-spacing: -.025em; line-height: 1.15; }
.accesso__scheda h1 + .nota { margin-top: -4px; }
.accesso__scheda > p:not(.nota):not(.err):not(.ok):not(.collegamenti) { color: var(--testo-2); }
.accesso__scheda .modulo { display: grid; gap: 8px; max-width: none; margin-top: 8px; }
.accesso__scheda .modulo label:not(:first-child) { margin-top: 8px; }
.accesso__scheda .modulo .tasto { margin-top: 12px; }
.tasto--pieno { width: 100%; min-height: 48px; font-size: 1rem; }
.collegamenti { display: grid; gap: 8px; justify-items: start; margin-top: 10px; padding-top: 18px; border-top: 1px solid var(--bordo); font-size: .9375rem; color: var(--tenue); }
.link { border: 0; background: none; padding: 0; min-height: 24px; cursor: pointer; font: 500 .9375rem/1.4 var(--sans); color: var(--testo); text-decoration: underline; text-underline-offset: 3px; }
.link:hover { color: var(--accento); }
.accesso__scheda strong { color: var(--testo); font-weight: 600; overflow-wrap: anywhere; }

/* Le domande del pilota nella registrazione (Stefano, 21 novembre 2026), come nel riquadro dell'estensione. */
.accesso__scheda .modulo select { height: 44px; padding: 0 12px; border: 1px solid var(--bordo-2); border-radius: 10px; background: var(--bianco); color: var(--testo); font: 400 1rem var(--sans); }
.scelte { border: 0; margin: 10px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; min-width: 0; }
.scelte legend { font-size: .9375rem; font-weight: 500; padding: 0; margin-bottom: 8px; }
.accesso__scheda .modulo .scelte label { display: inline-flex; align-items: center; gap: 7px; margin: 0; padding: 6px 12px; border: 1px solid var(--bordo-2); border-radius: 999px; font-weight: 400; font-size: .875rem; cursor: pointer; }
.modulo .scelte input, .modulo .spunta-pilota input { width: auto; height: auto; margin: 0; accent-color: var(--scuro); }
.accesso__scheda .modulo .spunta-pilota { display: grid; grid-template-columns: 18px 1fr; gap: 10px; align-items: start; margin-top: 14px; padding: 12px 14px; border-radius: 10px; background: var(--scuro); color: #fff; cursor: pointer; }
.modulo .spunta-pilota input { margin-top: 3px; accent-color: #fff; }
.spunta-pilota small { display: block; color: #c3c3bf; font-weight: 400; font-size: .8125rem; margin-top: 2px; }

/* Registrazione più larga, campi su due colonne (Stefano, 22 novembre 2026). */
.accesso__scheda--larga { width: min(100%, 760px); }
.modulo--due .campo { display: grid; gap: 8px; align-content: start; min-width: 0; }
.accesso__scheda .modulo--due .campo label { margin-top: 0; }
@media (min-width: 720px) {
  .accesso__scheda .modulo--due { grid-template-columns: 1fr 1fr; column-gap: 20px; row-gap: 16px; }
  .modulo--due > :not(.campo) { grid-column: 1 / -1; }
}
.modulo--due .campo-password input { width: 100%; }
