:root {
  --inchiostro: #12263A;
  --testo-2: #4A5A6A;
  --fondo: #F5F6F8;
  --bordo: #E2E6EB;
  --accento: #1E6B5C;
  --accento-scuro: #154C41;
  --errore: #A3261B;
}
* { box-sizing: border-box; }
body { margin: 0; font-family: system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif; color: var(--inchiostro); background: var(--fondo); font-size: 16px; line-height: 1.55; min-height: 100vh; display: flex; flex-direction: column; }
a { color: var(--accento); }
a:hover { color: var(--accento-scuro); }
h1, h2, h3 { font-family: Manrope, sans-serif; line-height: 1.2; margin: 0 0 .5em; }
h1 { font-size: 28px; font-weight: 800; }
h2 { font-size: 21px; font-weight: 700; }
.contenitore { max-width: 1100px; margin: 0 auto; padding: 0 24px; width: 100%; }
.testata { background: #fff; border-bottom: 1px solid var(--bordo); }
.testata-riga { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-top: 16px; padding-bottom: 16px; }
.marchio { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--inchiostro); }
.logo { width: 44px; height: 44px; border-radius: 10px; background: var(--accento); color: #fff; display: flex; align-items: center; justify-content: center; font-family: Manrope, sans-serif; font-weight: 800; font-size: 20px; }
.marchio-testo { display: flex; flex-direction: column; }
.marchio-testo strong { font-family: Manrope, sans-serif; font-size: 18px; }
.marchio-testo small { font-size: 13px; color: var(--testo-2); }
.menu { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 22px; font-size: 15px; font-weight: 500; }
.menu a { color: var(--inchiostro); text-decoration: none; }
.menu a:hover { text-decoration: underline; }
.chi { color: var(--testo-2); }
.in-linea { display: inline; margin: 0; }
.principale { flex: 1 1 auto; padding-top: 40px; padding-bottom: 56px; }
.piede { text-align: center; font-size: 14px; color: var(--testo-2); padding: 24px; }

.scheda { background: #fff; border: 1px solid var(--bordo); border-radius: 16px; padding: 32px; margin-bottom: 24px; }
.accesso { max-width: 440px; margin: 24px auto; }
.accesso .icona { width: 48px; height: 48px; border-radius: 10px; background: #E5F1EE; display: flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.sottotitolo { color: var(--testo-2); margin: 0 0 24px; }
.nota { display: flex; gap: 10px; color: var(--testo-2); font-size: 14px; margin-top: 16px; }

form.modulo { display: flex; flex-direction: column; gap: 18px; }
label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 600; }
input[type=text], input[type=password], input[type=email], input[type=file] {
  min-height: 46px; border: 1px solid #C5CDD6; border-radius: 8px; padding: 0 12px; font: inherit; font-size: 16px; font-weight: 400; background: #fff; color: inherit; width: 100%;
}
input[type=file] { padding: 10px 12px; }
input:focus, button:focus, a:focus { outline: 3px solid #9FD4C6; outline-offset: 2px; }
.aiuto { font-weight: 400; color: var(--testo-2); font-size: 13px; }
.destra { display: flex; justify-content: flex-end; font-size: 14px; }

.pulsante { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 22px; border: none; border-radius: 8px; background: var(--inchiostro); color: #fff; font: inherit; font-weight: 600; font-size: 15px; cursor: pointer; text-decoration: none; }
.pulsante:hover { background: #0C1B2A; color: #fff; }
.pulsante.verde { background: var(--accento); }
.pulsante.verde:hover { background: var(--accento-scuro); }
.pulsante.secondario { background: #fff; color: var(--inchiostro); border: 1px solid #C5CDD6; min-height: 40px; padding: 0 16px; }
.pulsante.secondario:hover { background: var(--fondo); }
.pulsante.piccolo { min-height: 36px; padding: 0 12px; font-size: 14px; }
.pulsante.pericolo { background: #fff; color: var(--errore); border: 1px solid #E3B7B2; }
.pulsante.pericolo:hover { background: #FBEDEB; }

.avviso { border-radius: 10px; padding: 14px 18px; margin-bottom: 24px; font-size: 15px; border: 1px solid; }
.avviso.ok { background: #E5F1EE; border-color: #B9DACF; color: #0F4A3E; }
.avviso.errore { background: #FBEDEB; border-color: #E3B7B2; color: var(--errore); }
.avviso.info { background: #EAF0F7; border-color: #C3D2E3; color: #1B3550; }
.password-mostrata { font-family: ui-monospace, Consolas, monospace; font-size: 18px; background: #fff; border: 1px dashed #9FB0C0; border-radius: 6px; padding: 2px 8px; user-select: all; }

.tabella-box { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 15px; }
th, td { text-align: left; padding: 12px 10px; border-bottom: 1px solid var(--bordo); vertical-align: middle; }
th { font-size: 13px; text-transform: uppercase; letter-spacing: .05em; color: var(--testo-2); font-weight: 600; }
td.azioni { display: flex; flex-wrap: wrap; gap: 8px; }
.etichetta { display: inline-block; font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: 99px; background: #E5F1EE; color: #0F4A3E; }
.etichetta.spento { background: #EEF0F2; color: #4A5A6A; }
.vuoto { color: var(--testo-2); padding: 12px 0; }
.griglia-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
select { min-height: 46px; border: 1px solid #C5CDD6; border-radius: 8px; padding: 0 10px; font: inherit; font-size: 16px; font-weight: 400; background: #fff; color: inherit; width: 100%; }
.spazio-sopra { margin-top: 16px; }
.nota-accesso { max-width: 440px; margin: 0 auto; }
.pulsante[disabled] { opacity: .5; cursor: not-allowed; }
textarea { border: 1px solid #C5CDD6; border-radius: 8px; padding: 10px 12px; font: inherit; font-size: 16px; font-weight: 400; background: #fff; color: inherit; width: 100%; resize: vertical; }
textarea:focus { outline: 3px solid #9FD4C6; outline-offset: 2px; }
.etichetta.nuovo { background: #FFF1D6; color: #7A4B00; }
.scheda h2 + .sottotitolo { margin-top: -4px; }
