/* MB Sound, versione "cinema": pagine interne (area clienti, gestione, privacy).
   Stessa grafica della pagina principale: palco nero, griglia a colonne con i puntini, luce arancio in alto e blu in
   basso, titoli Michroma in maiuscolo, bottoni a pillola. Niente scena 3D: queste pagine devono essere leggere e veloci.
   La struttura HTML e le classi sono quelle che usano area.js e gestione.js: non cambiarle senza cambiare i due script. */

@font-face { font-family: "Michroma"; src: url(fonts/michroma-latin-400-normal.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Hanken Grotesk"; src: url(fonts/hanken-grotesk-latin-400-normal.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Hanken Grotesk"; src: url(fonts/hanken-grotesk-latin-500-normal.woff2) format("woff2"); font-weight: 500; font-display: swap; }

:root {
  --nero: #000000;
  --titolo: #fff6ed;
  --ink: #ffffff;
  --testo: #d1d5db;
  --muted: #9a9ca1;
  --linea: rgba(255, 255, 255, 0.12);
  --pannello: rgba(14, 14, 16, 0.78);
  --campo: rgba(255, 255, 255, 0.06);
  --campo-bordo: rgba(255, 255, 255, 0.16);
  --accent: #e8330a;          /* arancio del logo */
  --accent-chiaro: #ff5a2a;
  --accent-ink: #0a0a0a;
  --errore-bg: rgba(232, 51, 10, 0.14);
  --errore: #ffb59c;
  --ok-bg: rgba(39, 176, 82, 0.14);
  --ok: #9ff0b8;
  --titoli: "Michroma", "Eurostile", Arial, sans-serif;
  --sans: "Hanken Grotesk", system-ui, sans-serif;
  --lato: 60px;
  --testata: 70px;
  --raggio: 14px;
  --morbido: cubic-bezier(0.25, 1, 0.5, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { background: var(--nero); }
body {
  min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column;
  font-family: var(--sans); font-size: 16px; line-height: 1.6;
  color: var(--testo); background: var(--nero);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
[hidden] { display: none !important; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--accent-chiaro); outline-offset: 3px; }
::selection { background: var(--accent); color: var(--accent-ink); }
.arancio { color: var(--accent-chiaro); }
code { font-size: 0.9em; color: var(--titolo); word-break: break-all; }

/* --- Fondale: luce arancio in alto, blu in basso, griglia a colonne con i puntini ---------- */
.fondale {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(55% 45% at 78% -6%, rgba(232, 51, 10, 0.26), transparent 70%),
    radial-gradient(50% 45% at 12% 108%, rgba(30, 70, 140, 0.30), transparent 70%),
    var(--nero);
}
.fondale-griglia {
  position: absolute; top: 0; bottom: 0; left: 40px; right: 40px;
  display: flex; justify-content: space-between;
}
.fondale-griglia i { position: relative; width: 1px; height: 100%; background: var(--linea); }
.fondale-griglia i::before, .fondale-griglia i::after {
  content: ""; position: absolute; left: 50%; transform: translate(-50%, -50%);
  width: 6px; height: 6px; border-radius: 50%;
}
.fondale-griglia i::before { top: 28%; background: rgba(255, 255, 255, 0.35); }
.fondale-griglia i::after { top: 72%; background: rgba(232, 51, 10, 0.6); box-shadow: 0 0 6px rgba(232, 51, 10, 0.4); }
.fondale-griglia i:nth-child(2)::before { top: 61%; }
.fondale-griglia i:nth-child(2)::after { top: 18%; }
.fondale-griglia i:nth-child(4)::before { top: 44%; }
.fondale-griglia i:nth-child(4)::after { top: 86%; }
.fondale::after {        /* linea orizzontale sotto la testata */
  content: ""; position: absolute; left: 0; right: 0; top: var(--testata); height: 1px; background: var(--linea);
}

/* --- Testata ------------------------------------------------------------------------- */
.testata {
  position: sticky; top: 0; z-index: 20;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  min-height: var(--testata); padding: 12px var(--lato);
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.85), rgba(0, 0, 0, 0.55));
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--linea);
}
.sigla {
  font-family: var(--titoli); font-size: 14px; letter-spacing: 5px;
  color: #fff; text-decoration: none; white-space: nowrap;
}
.sigla-dove { color: var(--muted); letter-spacing: 3px; font-size: 11px; text-transform: uppercase; margin-left: 10px; }
.testata nav { display: flex; align-items: center; gap: 22px; }
.menu-voce, .testata nav > a {
  text-decoration: none;
  font-size: 11px; text-transform: uppercase; letter-spacing: 2px; font-weight: 500;
  color: rgba(255, 255, 255, 0.82);
  transition: color .3s;
}
.menu-voce:hover, .testata nav > a:hover { color: #fff; text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 6px; }
.utente { font-size: 13px; color: var(--muted); }
.lingua {
  background: none; border: 1px solid rgba(255, 255, 255, 0.35); color: #fff;
  font: 500 11px/1 var(--sans); letter-spacing: 2px;
  min-width: 44px; min-height: 36px; padding: 0 10px; border-radius: 18px;
  cursor: pointer;
}
.lingua:hover { border-color: #fff; }
.link-bottone {
  font: inherit; font-size: 14px; color: #fff; background: none; border: 0; padding: 0;
  text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 5px; cursor: pointer;
}
.testata .link-bottone { font-size: 11px; text-transform: uppercase; letter-spacing: 2px; font-weight: 500; }
.link-bottone:hover { color: var(--accent-chiaro); }

.avviso-prova {
  position: relative; z-index: 2;
  padding: 10px var(--lato); text-align: center; font-size: 13px;
  color: var(--errore); background: rgba(42, 18, 8, 0.85); border-bottom: 1px solid rgba(232, 51, 10, 0.3);
}

/* --- Impaginazione ----------------------------------------------------------------- */
.area-main {
  position: relative; z-index: 1;
  flex: 1; width: 100%; max-width: 1240px; margin: 0 auto;
  padding: clamp(40px, 7vw, 96px) var(--lato) 80px;
}
.caricamento { color: var(--muted); letter-spacing: 3px; text-transform: uppercase; font-size: 11px; }
.occhiello {
  font-size: 11px; text-transform: uppercase; letter-spacing: 4px; font-weight: 500;
  color: var(--accent-chiaro); margin-bottom: 18px;
}
.titolo-area {
  font-family: var(--titoli); font-weight: 400;
  font-size: clamp(28px, 3.6vw, 56px); line-height: 1.2; letter-spacing: 0.02em;
  text-transform: uppercase; color: var(--titolo);
  text-shadow: 0 2px 28px rgba(0, 0, 0, 0.45);
}
.lead { margin-top: 20px; font-size: 17px; line-height: 1.7; max-width: 60ch; color: var(--testo); }
.titolo-sezione {
  font-family: var(--titoli); font-weight: 400;
  font-size: 15px; letter-spacing: 2px; text-transform: uppercase;
  color: #fff; margin: 0 0 20px;
}

/* comparsa: i blocchi salgono (come i testi della pagina principale) */
.vista:not([hidden]) > *, .testo-legale > * { animation: sale .8s var(--morbido) both; }
.vista:not([hidden]) > :nth-child(2) { animation-delay: .1s; }
.vista:not([hidden]) > :nth-child(3) { animation-delay: .2s; }
.vista:not([hidden]) > :nth-child(n+4) { animation-delay: .3s; }
@keyframes sale { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }

/* pannello: vetro scuro con bordo sottile */
.scheda-accesso, .sezione-attiva, .elenco-richieste li, .richiesta-gestione, .sezioni button {
  background: var(--pannello);
  border: 1px solid var(--linea);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}

/* --- Bottoni ------------------------------------------------------------------------- */
.bottone {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 26px;
  background: var(--accent); color: var(--accent-ink);
  font: 500 15px/1.2 var(--sans); letter-spacing: 0.3px;
  text-decoration: none; text-align: center;
  border: 0; border-radius: 26px;
  cursor: pointer;
  transition: transform .2s, background-color .2s;
}
.bottone:hover { background: var(--accent-chiaro); transform: translateY(-2px); }
.bottone:disabled { opacity: .6; cursor: progress; transform: none; }
.bottone-largo { width: 100%; min-height: 52px; font-size: 16px; }
.bottone-chiaro { background: #fff; color: #000; }
.bottone-chiaro:hover { background: #f0f0f0; }
.bottone-google {
  width: 100%; min-height: 52px; display: flex; align-items: center; justify-content: center; gap: 12px;
  font: 500 15px/1 var(--sans); color: #1f1f1f; background: #fff; border: 0; border-radius: 26px; cursor: pointer;
  transition: background-color .2s;
}
.bottone-google:hover { background: #eaeaea; }

/* Michroma non ha il simbolo €: le cifre in euro usano Hanken Grotesk */

/* --- Moduli -------------------------------------------------------------------------- */
.scheda-accesso { padding: clamp(24px, 3vw, 40px); border-radius: var(--raggio); }
.schede {
  display: grid; grid-template-columns: 1fr 1fr; gap: 4px;
  margin-bottom: 24px; padding: 4px;
  border: 1px solid var(--linea); border-radius: 26px;
}
.schede button {
  font: 500 11px/1 var(--sans); text-transform: uppercase; letter-spacing: 2px;
  color: var(--muted); background: none; border: 0; border-radius: 22px; min-height: 42px; cursor: pointer;
}
.schede button[aria-selected="true"] { color: #000; background: #fff; }
.separatore {
  display: flex; align-items: center; gap: 14px;
  margin: 20px 0; color: var(--muted); font-size: 12px; letter-spacing: 2px; text-transform: uppercase;
}
.separatore::before, .separatore::after { content: ""; flex: 1; height: 1px; background: var(--linea); }

.modulo-area { display: grid; gap: 16px; }
.modulo-area label, .campi-extra label, .campo-messaggio, .filtri label, .rg-azioni label {
  display: grid; gap: 6px;
  font-size: 11px; text-transform: uppercase; letter-spacing: 2px; font-weight: 500; color: var(--muted);
}
.area input:not([type="radio"]):not([type="checkbox"]), .area textarea, .area select {
  font: 400 16px/1.4 var(--sans); letter-spacing: 0; text-transform: none;
  color: #fff; background: var(--campo);
  border: 1px solid var(--campo-bordo); border-radius: 10px;
  padding: 11px 14px; min-height: 48px; width: 100%;
  transition: border-color .2s, background-color .2s;
}
.area select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, #fff 50%), linear-gradient(135deg, #fff 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 36px; }
.area select option { background: #111; color: #fff; }
.area textarea { resize: vertical; min-height: 96px; }
.area input:hover, .area textarea:hover, .area select:hover { border-color: rgba(255, 255, 255, 0.3); }
.area input:focus-visible, .area textarea:focus-visible, .area select:focus-visible {
  outline: none; border-color: var(--accent-chiaro); background-color: rgba(255, 255, 255, 0.09);
}
.area input[type="date"] { color-scheme: dark; }
.modulo-area label.scelta, .tipo-cliente label.scelta {
  display: flex; align-items: center; gap: 12px;
  font-size: 15px; text-transform: none; letter-spacing: 0; font-weight: 400; color: var(--testo); cursor: pointer;
}
.scelta input { width: 20px; height: 20px; accent-color: var(--accent); margin: 0; flex: none; }
.tipo-cliente { border: 0; margin: 4px 0; display: grid; gap: 10px; }
.tipo-cliente legend { font-size: 11px; text-transform: uppercase; letter-spacing: 2px; font-weight: 500; color: var(--muted); margin-bottom: 10px; }
.nota-privacy { font-size: 13px; line-height: 1.5; color: var(--muted); }
.nota-privacy a { color: #fff; text-decoration-color: var(--accent); text-underline-offset: 4px; }
.messaggio-modulo { margin-top: 14px; padding: 12px 16px; border-radius: 10px; background: var(--errore-bg); color: var(--errore); border: 1px solid rgba(232, 51, 10, 0.3); }
.messaggio-modulo.ok { background: var(--ok-bg); color: var(--ok); border-color: rgba(39, 176, 82, 0.35); }
.messaggio-modulo a { color: inherit; font-weight: 500; }

/* --- Accesso ------------------------------------------------------------------------- */
.vista-accesso:not([hidden]) {
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(32px, 6vw, 96px); align-items: center;
}
.vantaggi { margin: 32px 0 0; list-style: none; display: grid; gap: 0; max-width: 460px; }
.vantaggi li {
  display: flex; align-items: center; gap: 14px;
  padding: 12px 0; border-bottom: 1px solid var(--linea); color: #fff; font-size: 16px;
}
.vantaggi li:last-child { border-bottom: 0; }
.vantaggi li::before { content: ""; flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 8px rgba(232, 51, 10, 0.6); }
.vista-profilo .modulo-profilo { max-width: 520px; margin-top: 32px; }

/* --- Preventivo ---------------------------------------------------------------------- */
.intestazione-preventivo { margin-bottom: 40px; }
.nota-prezzi { color: var(--muted); }
.preventivo { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 32px; align-items: start; }
.sezioni { display: grid; gap: 8px; position: sticky; top: calc(var(--testata) + 24px); }
.sezioni button {
  font: 500 14px/1.3 var(--sans); text-align: left; color: #fff;
  border-radius: 26px; padding: 13px 20px; cursor: pointer;
  transition: background-color .2s, border-color .2s;
}
.sezioni button:hover { border-color: rgba(255, 255, 255, 0.35); }
.sezioni button[aria-current] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }

.sezione-attiva { padding: clamp(20px, 3vw, 40px); border-radius: var(--raggio); }
.voci { list-style: none; margin: 0 0 24px; display: grid; }
.voce { display: grid; grid-template-columns: minmax(0, 1fr) auto 110px; gap: 16px; align-items: center; padding: 14px 0; }
.voce + .voce { border-top: 1px solid var(--linea); }
.voce-testo { display: grid; gap: 2px; }
.voce-nome { font-size: 17px; color: #fff; font-weight: 500; }
.voce-prezzo { color: var(--muted); font-size: 14px; }
.voce.scelta .voce-nome { color: var(--accent-chiaro); }
.voce-subtotale { text-align: right; font-variant-numeric: tabular-nums; color: #fff; }
.contatore { display: grid; grid-template-columns: 40px 52px 40px; align-items: center; border: 1px solid var(--campo-bordo); border-radius: 22px; overflow: hidden; }
.contatore button { font: inherit; font-size: 20px; line-height: 1; color: #fff; background: none; border: 0; cursor: pointer; min-height: 42px; }
.contatore button:hover { background: rgba(255, 255, 255, 0.08); color: var(--accent-chiaro); }
.area .contatore input:not([type="radio"]):not([type="checkbox"]) { min-height: 42px; color: #fff; padding: 0; text-align: center; border: 0; border-radius: 0; background: none; -moz-appearance: textfield; }
.contatore input::-webkit-outer-spin-button, .contatore input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.campi-extra { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; margin-bottom: 14px; }
.totale {
  margin: 26px 0 18px; padding: 20px 22px;
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px 24px;
  border-top: 1px solid var(--linea); border-bottom: 1px solid var(--linea);
}
.totale-etichetta { font-size: 11px; text-transform: uppercase; letter-spacing: 3px; color: var(--muted); }
.totale-cifra { font-family: var(--sans); font-weight: 500; letter-spacing: 0.5px; font-size: clamp(28px, 3.2vw, 40px); color: var(--accent-chiaro); margin-left: 14px; font-variant-numeric: tabular-nums; }
.totale-nota { color: var(--muted); font-size: 14px; }

.richieste { margin-top: 72px; }
.elenco-richieste { list-style: none; display: grid; gap: 10px; }
.elenco-richieste li { padding: 18px 22px; display: grid; gap: 4px; border-radius: var(--raggio); }
.richiesta-riga { display: flex; justify-content: space-between; gap: 16px; }
.richiesta-riga strong { color: #fff; font-weight: 500; }
.richiesta-dettagli, .richiesta-stato { color: var(--muted); font-size: 14px; }
.richiesta-stato { color: var(--accent-chiaro); text-transform: uppercase; letter-spacing: 2px; font-size: 11px; font-weight: 500; }
.nessuna-richiesta { color: var(--muted); }
.account { margin-top: 56px; padding-top: 32px; border-top: 1px solid var(--linea); }
.dati-account { color: var(--muted); margin-bottom: 14px; }

/* --- Piede ---------------------------------------------------------------------------- */
.piede-area {
  position: relative; z-index: 1;
  padding: 24px var(--lato); border-top: 1px solid var(--linea);
  color: var(--muted); font-size: 13px;
}
.piede-area a { color: #fff; text-decoration-color: var(--accent); text-underline-offset: 4px; }

/* --- Privacy -------------------------------------------------------------------------- */
.testo-legale { max-width: 820px; }
.testo-legale .titolo-area { margin-bottom: 28px; }
.testo-legale h2 {
  font-family: var(--titoli); font-weight: 400;
  font-size: 15px; letter-spacing: 2px; text-transform: uppercase; color: #fff;
  margin: 44px 0 14px; padding-top: 20px; border-top: 1px solid var(--linea);
}
.testo-legale p, .testo-legale li { margin-bottom: 10px; }
.testo-legale ul { padding-left: 20px; }
.testo-legale li::marker { color: var(--accent); }
.testo-legale strong { color: #fff; font-weight: 500; }
.testo-legale a { color: #fff; text-decoration-color: var(--accent); text-underline-offset: 4px; }
.testo-legale .bozza { padding: 14px 18px; border-radius: 10px; background: var(--errore-bg); color: var(--errore); border: 1px solid rgba(232, 51, 10, 0.3); }
.testo-legale .bozza strong { color: inherit; }

/* --- Gestione ------------------------------------------------------------------------- */
.scheda-stretta { max-width: 480px; margin: 0 auto; }
.scheda-stretta .titolo-area { font-size: clamp(24px, 2.6vw, 36px); margin-bottom: 8px; }
.scheda-stretta .lead { margin-bottom: 24px; font-size: 16px; }
.qr { background: #fff; width: 216px; min-height: 60px; padding: 8px; margin: 0 0 12px; color: #111; font-size: 14px; border-radius: 10px; }
.qr img { display: block; width: 200px; height: 200px; }
.filtri { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; margin-bottom: 28px; }
.elenco-gestione { list-style: none; display: grid; gap: 12px; }
.richiesta-gestione { padding: 22px 26px; display: grid; gap: 8px; border-radius: var(--raggio); border-left: 3px solid var(--linea); }
.richiesta-gestione.nuova { border-left-color: var(--accent); box-shadow: -8px 0 24px -12px rgba(232, 51, 10, 0.6); }
.rg-testa { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 20px; align-items: baseline; }
.rg-titolo { font-family: var(--titoli); font-weight: 400; font-size: 15px; letter-spacing: 1.5px; text-transform: uppercase; color: #fff; }
.rg-totale { font-weight: 500; font-size: 17px; color: var(--accent-chiaro); font-variant-numeric: tabular-nums; }
.rg-cliente { color: #fff; }
.rg-voci { margin: 0; padding-left: 18px; color: var(--muted); }
.rg-voci li::marker { color: var(--accent); }
.rg-dettagli, .rg-messaggio { color: var(--muted); }
.rg-messaggio:empty, .rg-dettagli:empty { display: none; }
.rg-azioni { display: flex; flex-wrap: wrap; gap: 12px; align-items: end; margin-top: 8px; }
.area .rg-azioni select { min-height: 44px; width: auto; }
.rg-azioni .bottone { min-height: 44px; }

/* schede Richieste / Listino (il listino solo per Maurizio) */
.schede-gestione { max-width: 420px; margin: 0 0 32px; }

/* --- Listino prezzi (gestione, solo admin) ---------------------------------------------- */
.listino-sezioni { display: grid; gap: 36px; }
.ls-testa { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 20px; margin-bottom: 14px; }
.ls-titolo { font-family: var(--titoli); font-weight: 400; font-size: 16px; letter-spacing: 2px; text-transform: uppercase; color: var(--titolo); }
.ls-aggiungi.bottone { min-height: 42px; padding: 0 20px; font-size: 14px; }
.ls-voci { list-style: none; display: grid; gap: 10px; }
.ls-vuota { color: var(--muted); }
.voce-listino {
  background: var(--pannello); border: 1px solid var(--linea); border-left: 3px solid var(--linea);
  border-radius: var(--raggio); padding: 18px 22px;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.voce-listino.modificata, .voce-listino.nuova { border-left-color: var(--accent); }
.voce-listino.salvata { border-left-color: #27b052; }
.voce-listino.nascosta .vl-nome input, .voce-listino.nascosta .vl-prezzo input { color: var(--muted); }
.vl-modulo { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1.3fr) minmax(130px, .8fr) minmax(110px, .7fr); gap: 12px 14px; align-items: end; }
.vl-modulo label:not(.scelta) { display: grid; gap: 6px; font-size: 11px; text-transform: uppercase; letter-spacing: 2px; font-weight: 500; color: var(--muted); }
.area .vl-modulo input:not([type="checkbox"]), .area .vl-modulo select { min-height: 44px; }
.vl-prezzo input { font-variant-numeric: tabular-nums; }
.vl-modulo label.scelta { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--testo); cursor: pointer; }
.vl-azioni { grid-column: 3 / -1; display: flex; gap: 8px; align-items: center; justify-content: flex-end; }
.vl-sposta {
  width: 44px; height: 44px; flex: none; display: grid; place-items: center;
  font: 500 18px/1 var(--sans); color: #fff; background: var(--campo); border: 1px solid var(--campo-bordo); border-radius: 50%; cursor: pointer;
}
.vl-sposta:hover:not(:disabled) { border-color: var(--accent-chiaro); }
.vl-sposta:disabled { opacity: .3; cursor: default; }
.vl-elimina { min-height: 44px; padding: 0 8px; }
.vl-salva.bottone { min-height: 44px; padding: 0 22px; }
.vl-salva.bottone:disabled { opacity: .35; cursor: default; }
.vl-esito { grid-column: 1 / -1; font-size: 14px; color: var(--errore); }
.vl-esito:empty { display: none; }
.voce-listino.salvata .vl-esito { color: var(--ok); }
.nota-listino { margin-top: 28px; max-width: 70ch; }

/* tipi di lavoro (sezioni): un riquadro in testa, sotto le sue voci rientrate */
.listino-sezione { display: grid; gap: 14px; padding-bottom: 36px; border-bottom: 1px solid var(--linea); }
.listino-sezione.nascosta .sezione-listino input[name="nome"] { color: var(--muted); }
.sezione-listino { border-left-width: 3px; border-left-color: var(--accent-chiaro, var(--accent)); }
.sezione-listino.salvata { border-left-color: #27b052; }
.sezione-listino .vl-nome input { font-family: var(--titoli); letter-spacing: 1px; text-transform: uppercase; }
.sl-campi { grid-column: 1 / 3; border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; align-items: center; }
.sl-campi legend { float: left; margin-right: 6px; font-size: 11px; text-transform: uppercase; letter-spacing: 2px; font-weight: 500; color: var(--muted); }
.sl-opzioni { grid-column: 3 / -1; display: grid; gap: 8px; }
.sl-modulo .vl-azioni { grid-column: 1 / -1; }
.ls-voci-blocco { padding-left: clamp(0px, 3vw, 28px); display: grid; gap: 4px; }
.ls-sotto { font-size: 11px; text-transform: uppercase; letter-spacing: 2px; font-weight: 500; color: var(--muted); }
.ls-nuova-sezione.bottone { margin-top: 28px; }

/* --- Schermi medi e telefono --------------------------------------------------------- */
@media (max-width: 1099px) {
  :root { --lato: 40px; }
}
@media (max-width: 860px) {
  .vista-accesso:not([hidden]) { grid-template-columns: 1fr; }
  .preventivo { grid-template-columns: 1fr; }
  .sezioni { position: static; display: flex; overflow-x: auto; gap: 8px; padding-bottom: 6px; scrollbar-width: none; }
  .sezioni button { white-space: nowrap; flex: none; }
  .voce { grid-template-columns: minmax(0, 1fr) auto; }
  .voce-subtotale { grid-column: 1 / -1; text-align: left; color: var(--muted); }
  .voce-subtotale:empty { display: none; }
  .testata nav > a { display: none; }
}
@media (max-width: 760px) {
  :root { --lato: 20px; --testata: 60px; }
  .sigla { font-size: 12px; letter-spacing: 3px; }
  .sigla-dove { display: none; }
  .testata nav { gap: 14px; }
  .utente { display: none; }
  .fondale-griglia { left: 14px; right: 14px; }
  .fondale-griglia i:nth-child(2), .fondale-griglia i:nth-child(4) { display: none; }
  .titolo-area { font-size: clamp(24px, 7.4vw, 36px); }
  .lead { font-size: 16px; }
  .richiesta-gestione { padding: 18px; }
  .vl-modulo { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .vl-nome, .vl-nome-en { grid-column: 1 / -1; }
  .sl-campi, .sl-opzioni { grid-column: 1 / -1; }
  .vl-azioni { grid-column: 1 / -1; justify-content: flex-start; flex-wrap: wrap; }
  .vl-salva.bottone { margin-left: auto; }
  .voce-listino { padding: 16px; }
}

/* --- Pagina 404: «Nessun segnale», il meter del mixer a zero ----------------------------- */
.pagina-404 .area-main { display: flex; flex-direction: column; justify-content: center; }
.pagina-404 .area-main > * { animation: sale .8s var(--morbido) both; }
.pagina-404 .area-main > :nth-child(2) { animation-delay: .1s; }
.pagina-404 .area-main > :nth-child(n+3) { animation-delay: .2s; }
.pagina-404 .titolo-area { font-size: clamp(34px, 6vw, 88px); }
.meter-404 { display: flex; align-items: flex-end; gap: 5px; margin-top: 34px; height: 46px; }
.meter-404 span { width: 12px; border-radius: 2px; background: rgba(255, 255, 255, 0.07); border: 1px solid var(--linea); }
.meter-404 span:nth-child(n) { height: 100%; }
.meter-404 span:nth-child(-n+10) { background: rgba(39, 176, 82, 0.08); }
.meter-404 span:nth-child(n+11):nth-child(-n+14) { background: rgba(255, 196, 0, 0.07); }
.meter-404 span:nth-child(n+15) { background: rgba(232, 51, 10, 0.1); }
.meter-404 span:first-child { background: #27b052; box-shadow: 0 0 10px rgba(39, 176, 82, 0.7); animation: segnale 2.4s steps(1) infinite; }
.meter-404 small { margin-left: 14px; align-self: center; font-size: 12px; letter-spacing: 1px; color: var(--muted); white-space: nowrap; }
@keyframes segnale { 0%, 8%, 16% { opacity: 1; } 4%, 12%, 20%, 100% { opacity: .15; } }
.azioni-404 { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
@media (max-width: 760px) {
  .meter-404 { gap: 3px; height: 38px; }
  .meter-404 span { width: 9px; }
  .azioni-404 .bottone { flex: 1 1 100%; }
}

/* --- Movimento ridotto ------------------------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
  .vista:not([hidden]) > *, .testo-legale > *, .pagina-404 .area-main > * { animation: none; }
  .meter-404 span:first-child { animation: none; opacity: .6; }
  .bottone, .bottone-google { transition: none; }
}
