/* =========================================================================
   Stile del gestionale. Colori e caratteri presi dal sito invibe.it.
   Per cambiare i colori basta modificare le variabili qui sotto.
   ========================================================================= */
:root {
  --blu-notte: #0b1a3a;      /* colore principale InVibe */
  --azzurro: #26b2ce;        /* azzurro InVibe (scuro) */
  --azzurro-chiaro: #65c5e5; /* azzurro InVibe (chiaro) */
  --azzurro-tenue: #e3f5fb;
  --arancio: #ff7a00;        /* arancione InVibe, per gli avvisi */
  --arancio-tenue: #fff1e3;

  --sfondo: #f4f8fb;
  --carta: #ffffff;
  --testo: #0b1a3a;
  --testo-tenue: #5d6b82;
  --bordo: #e2e9f0;
  --ok: #1d8a5a;
  --ok-tenue: #e3f4ec;
  --errore: #c62828;
  --errore-tenue: #fdecea;
  --attenzione: #c65d00;

  /* Colori "di ruolo": cambiano tra modalità chiara e scura */
  --inchiostro: #0b1a3a;     /* testi e link in evidenza */
  --pieno: #0b1a3a;          /* sfondo dei pulsanti */
  --pieno-sopra: #16295a;    /* pulsante al passaggio del mouse */
  --su-pieno: #ffffff;       /* testo sopra i pulsanti */
  --evidenza: #0b1a3a;       /* riquadro scuro in evidenza */
  --evidenza-tenue: #b9c6dc;

  --raggio: 14px;
  --ombra: 0 1px 2px rgba(11, 26, 58, .04);
  --titoli: "Bricolage Grotesque", system-ui, sans-serif;
  --testi: "Poppins", system-ui, sans-serif;
  color-scheme: light;
}

/* ---------- Modalità scura: stessi nomi, colori diversi ---------- */
:root[data-tema="scuro"] {
  --sfondo: #071226;
  --carta: #0d1d3d;
  --testo: #e8eef7;
  --testo-tenue: #95a4bd;
  --bordo: #1d3159;
  --azzurro-tenue: rgba(38, 178, 206, .16);
  --arancio-tenue: rgba(255, 122, 0, .14);
  --ok: #4cc98c;
  --ok-tenue: rgba(76, 201, 140, .14);
  --errore: #ff7b7b;
  --errore-tenue: rgba(255, 123, 123, .13);
  --attenzione: #ffa04a;

  --inchiostro: #eaf3fb;
  --pieno: #26b2ce;
  --pieno-sopra: #65c5e5;
  --su-pieno: #0b1a3a;
  --evidenza: linear-gradient(140deg, #123a6b, #0f2a55);
  --evidenza-tenue: #a9c3dd;
  --ombra: 0 1px 2px rgba(0, 0, 0, .3);
  color-scheme: dark;
}

/* Passaggio morbido tra i due temi (solo nel momento del cambio).
   L'interruttore è escluso perché ha le sue animazioni. */
html.cambio-tema, html.cambio-tema *:not(.tema, .tema *) {
  transition: background-color .45s ease, border-color .45s ease, color .45s ease !important;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body { font-family: var(--testi); font-size: 14px; background: var(--sfondo); color: var(--testo); }
a { color: var(--inchiostro); }
h1, h2, h3 { font-family: var(--titoli); font-weight: 500; letter-spacing: -.02em; }
h1 { font-size: 2.1em; margin: 0 0 6px; }
h2 { font-size: 1.35em; margin: 0 0 4px; }
h3 { font-size: 1.15em; margin: 0; }
small { font-size: .85em; }

.icona { width: 18px; height: 18px; flex-shrink: 0; }

/* ---------- Struttura: barra laterale + parte principale ---------- */
.layout { display: flex; min-height: 100vh; }

.laterale {
  width: 240px; flex-shrink: 0; background: var(--carta); border-right: 1px solid var(--bordo);
  padding: 18px 14px; display: flex; flex-direction: column; gap: 18px;
  position: sticky; top: 0; height: 100vh;
}
.marchio { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--inchiostro);
           font-family: var(--titoli); font-weight: 700; font-size: 1.35em; padding: 4px 6px; }
.marchio small { display: block; font-family: var(--testi); font-weight: 400; font-size: .5em; color: var(--testo-tenue); }
.marchio-segno { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; font-size: .75em;
                 color: #fff; background: linear-gradient(135deg, var(--azzurro-chiaro), var(--azzurro)); }

.menu { display: flex; flex-direction: column; gap: 2px; }
.menu a { display: flex; align-items: center; gap: 12px; padding: 9px 12px; border-radius: 10px;
          text-decoration: none; color: var(--testo-tenue); font-weight: 500; }
.menu a:hover { background: var(--sfondo); color: var(--testo); }
.menu a.attivo { background: var(--azzurro-tenue); color: var(--inchiostro); }
.pallino { margin-left: auto; background: var(--arancio-tenue); color: var(--attenzione); font-size: .8em;
           font-weight: 600; padding: 1px 8px; border-radius: 10px; }

.aiuto { margin-top: auto; background: var(--azzurro-tenue); border-radius: var(--raggio); padding: 12px 14px; font-size: .9em; }
.aiuto ol { margin: 6px 0 0; padding-left: 18px; color: var(--testo-tenue); }
.aiuto em { font-style: normal; color: var(--testo); font-weight: 500; }

.utente { display: flex; align-items: center; gap: 10px; padding: 8px 6px; border-top: 1px solid var(--bordo); padding-top: 14px; }
.utente small { display: block; color: var(--testo-tenue); }
.avatar { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0;
          background: var(--pieno); color: var(--su-pieno); font-weight: 600; }
.avatar.piccolo { width: 32px; height: 32px; border-radius: 9px; font-size: .78em; background: var(--azzurro-tenue); color: var(--inchiostro); }

.principale { flex: 1; min-width: 0; }
.barra-alta { display: flex; align-items: center; gap: 16px; justify-content: space-between;
              padding: 14px 28px; background: var(--carta); border-bottom: 1px solid var(--bordo);
              position: sticky; top: 0; z-index: 5; }
.ricerca { display: flex; align-items: center; gap: 8px; background: var(--sfondo); border: 1px solid var(--bordo);
           border-radius: 10px; padding: 0 12px; width: 100%; max-width: 420px; color: var(--testo-tenue); }
.ricerca input { border: 0; background: transparent; padding: 10px 0; width: 100%; font: inherit; color: var(--testo); outline: none; }

main { padding: 28px; max-width: 1180px; }

/* ---------- Pulsanti ---------- */
.bottone, button { display: inline-flex; align-items: center; gap: 8px; background: var(--pieno); color: var(--su-pieno);
                   border: 0; border-radius: 10px; padding: 10px 16px; font: inherit; font-weight: 600;
                   text-decoration: none; cursor: pointer; white-space: nowrap; }
.bottone:hover, button:hover { background: var(--pieno-sopra); }
.bottone.secondario { background: var(--carta); color: var(--inchiostro); border: 1px solid var(--bordo); }

/* ---------- Intestazione di pagina ---------- */
.occhiello { text-transform: uppercase; letter-spacing: .12em; font-size: .78em; font-weight: 600; color: var(--azzurro); margin: 0 0 8px; }
.intestazione { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.sottotitolo, .dettagli { color: var(--testo-tenue); margin: 0; }
.sottotitolo strong, .dettagli strong { color: var(--testo); }
.testo-errore { color: var(--errore); display: block; margin-top: 6px; }

/* ---------- Riquadri e card ---------- */
.card { background: var(--carta); border: 1px solid var(--bordo); border-radius: var(--raggio); padding: 20px 22px;
        box-shadow: var(--ombra); margin-bottom: 18px; }
.card-titolo { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 14px; }
.card-titolo p { margin: 2px 0 0; color: var(--testo-tenue); font-size: .92em; }
.card-titolo a { font-weight: 600; text-decoration: none; white-space: nowrap; }

.riepilogo { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; margin-bottom: 18px; }
.riepilogo > div, .riepilogo > a { position: relative; background: var(--carta); border: 1px solid var(--bordo);
  border-radius: var(--raggio); padding: 18px; min-height: 118px; color: inherit; text-decoration: none;
  display: flex; flex-direction: column; justify-content: space-between; box-shadow: var(--ombra); }
.riepilogo span { color: var(--testo-tenue); font-size: .9em; }
.riepilogo strong { font-family: var(--titoli); font-size: 1.9em; font-weight: 700; letter-spacing: -.02em; }
.riepilogo small { color: var(--testo-tenue); }
.riepilogo .chip { position: absolute; top: 14px; right: 14px; width: 32px; height: 32px; border-radius: 9px;
                   display: grid; place-items: center; background: var(--sfondo); color: var(--inchiostro); }
.riepilogo .scuro { background: var(--evidenza); border-color: transparent; color: #fff; }
.riepilogo .scuro span, .riepilogo .scuro small { color: var(--evidenza-tenue); }
.riepilogo .scuro .chip { background: rgba(255,255,255,.12); color: #fff; }
.riepilogo .da-guardare { border-color: var(--arancio); background: var(--arancio-tenue); }
.riepilogo .da-guardare strong, .riepilogo .da-guardare .chip { color: var(--attenzione); }
.conta.ok strong { color: var(--ok); }
.conta.attenzione { border-color: var(--arancio); background: var(--arancio-tenue); }
.conta.attenzione strong { color: var(--attenzione); }

/* ---------- Tabelle ---------- */
.tabella { width: 100%; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th { text-transform: uppercase; letter-spacing: .06em; font-size: .72em; font-weight: 600; color: var(--testo-tenue);
     background: var(--sfondo); text-align: left; padding: 12px; white-space: nowrap; }
th:first-child { border-radius: 10px 0 0 10px; }
th:last-child { border-radius: 0 10px 10px 0; }
td { padding: 14px 12px; border-bottom: 1px solid var(--bordo); vertical-align: top; }
tr:last-child td { border-bottom: 0; }
.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
td.num { font-weight: 500; }
.persona { display: flex; gap: 10px; align-items: center; }
.persona small { display: block; color: var(--testo-tenue); }
.vuoto { color: var(--testo-tenue); font-style: italic; margin: 4px 0; }
.tenue { color: var(--testo-tenue); }

/* ---------- Etichette di stato ---------- */
.stato { font-size: .8em; font-weight: 500; padding: 3px 10px; border-radius: 20px; white-space: nowrap; }
.stato.pagata, .stato.attribuito { background: var(--ok-tenue); color: var(--ok); }
.stato.parziale, .stato.da-verificare { background: var(--arancio-tenue); color: var(--attenzione); }
.stato.da-pagare { background: var(--sfondo); color: var(--testo-tenue); }
.etichetta-mano { font-size: .72em; background: var(--azzurro-tenue); color: var(--inchiostro);
                  padding: 2px 8px; border-radius: 10px; margin-left: 6px; }

/* ---------- Avvisi ---------- */
.avviso { padding: 12px 16px; border-radius: 12px; margin: 0 0 18px; font-weight: 500; white-space: pre-line; line-height: 1.6; }
.avviso.ok { color: var(--ok); background: var(--ok-tenue); }
.avviso.errore { color: var(--errore); background: var(--errore-tenue); }
.avviso-testo, .freccia.avviso-testo { color: var(--attenzione); }
.freccia { display: block; font-size: .9em; color: var(--testo-tenue); margin-top: 3px; }

/* ---------- Barre di avanzamento e prossima scadenza ---------- */
.avanzamento { display: flex; gap: 14px; flex-wrap: wrap; align-items: stretch; margin-bottom: 18px; }
.avanzamento-barra { flex: 2; min-width: 260px; background: var(--carta); border: 1px solid var(--bordo);
                     border-radius: var(--raggio); padding: 16px 18px; }
.barra-avanzamento { height: 10px; background: var(--azzurro-tenue); border-radius: 6px; overflow: hidden; }
.barra-avanzamento .pieno { height: 100%; border-radius: 6px; background: linear-gradient(90deg, var(--azzurro-chiaro), var(--azzurro)); }
.barra-avanzamento.piccola { height: 7px; width: 90px; display: inline-block; vertical-align: middle; }
.barra-testo { margin: 10px 0 0; color: var(--testo-tenue); }
.barra-testo strong { color: var(--testo); }
.cella-barra { white-space: nowrap; }
.cella-barra small { color: var(--testo-tenue); margin-left: 6px; }

.prossima { flex: 1; min-width: 230px; background: var(--carta); border: 1px solid var(--bordo);
            border-left: 4px solid var(--arancio); border-radius: var(--raggio); padding: 14px 16px; }
.prossima span { display: block; font-size: .85em; color: var(--testo-tenue); }
.prossima strong { display: block; margin: 3px 0; }
.prossima em { font-style: normal; color: var(--attenzione); }
.prossima.scaduta { border-left-color: var(--errore); background: var(--errore-tenue); }
.prossima.scaduta em { color: var(--errore); font-weight: 600; }
.prossima.saldato { border-left-color: var(--ok); }
.prossima.saldato strong { color: var(--ok); }

/* ---------- Scadenze in panoramica ---------- */
.scadenze { list-style: none; padding: 0; margin: 0; }
.scadenze li { display: flex; gap: 16px; align-items: center; padding: 12px 4px; border-bottom: 1px solid var(--bordo); }
.scadenze li:last-child { border-bottom: 0; }
.scadenze .giorno { width: 52px; height: 52px; border-radius: 12px; background: var(--azzurro-tenue); flex-shrink: 0;
                    display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.05; }
.scadenze .giorno strong { font-family: var(--titoli); font-size: 1.3em; }
.scadenze .giorno small { text-transform: uppercase; font-size: .68em; color: var(--testo-tenue); }
.scadenze .cosa { flex: 1; }
.scadenze .cosa small { display: block; color: var(--testo-tenue); }
.scadenze .quanto { text-align: right; font-weight: 600; white-space: nowrap; }
.scadenze .quanto small { display: block; font-weight: 400; color: var(--testo-tenue); }
.scadenze li.scaduta .giorno { background: var(--errore-tenue); color: var(--errore); }
.scadenze li.scaduta .quanto small { color: var(--errore); font-weight: 600; }

/* ---------- Scheda partecipante ---------- */
.partecipante-testa { display: flex; justify-content: space-between; gap: 12px; align-items: center; flex-wrap: wrap; margin-bottom: 14px; }
.partecipante .avanzamento-barra, .partecipante .prossima { background: var(--sfondo); }
.servizi { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 4px; }
.servizi span { background: var(--sfondo); border: 1px solid var(--bordo); border-radius: 8px; padding: 2px 8px; font-size: .85em; }

/* ---------- Form ---------- */
.import { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 14px; }
.import form { background: var(--carta); border: 1px solid var(--bordo); border-radius: var(--raggio); padding: 20px; }
.import .passo { display: inline-block; background: var(--azzurro-tenue); color: var(--inchiostro); font-weight: 600;
                 border-radius: 8px; padding: 2px 9px; font-size: .85em; margin-bottom: 8px; }
.import p { color: var(--testo-tenue); margin: 4px 0 14px; }
/* Istruzioni: quali dati deve contenere il file */
.import .istruzioni-titolo { color: var(--testo); margin: 4px 0 8px; }
.istruzioni { list-style: none; padding: 0; margin: 0 0 16px; border: 1px solid var(--bordo); border-radius: 12px; }
.istruzioni li { padding: 9px 12px; border-bottom: 1px solid var(--bordo); line-height: 1.5; }
.istruzioni li:last-child { border-bottom: 0; }
.istruzioni li::before { content: "✓"; color: var(--azzurro); font-weight: 700; margin-right: 8px; }
.istruzioni code { font-family: ui-monospace, "SFMono-Regular", Menlo, monospace; font-size: .82em; background: var(--sfondo);
                   border: 1px solid var(--bordo); border-radius: 6px; padding: 1px 6px; margin-left: 4px; color: var(--inchiostro); }
.istruzioni span { display: block; padding-left: 22px; color: var(--testo-tenue); font-size: .9em; }
.import form { display: flex; flex-direction: column; }
.import form button, .import .passo { align-self: flex-start; }
.import .zona-file { margin-top: auto; }

/* Riquadro "trascina qui il file" */
.zona-file { position: relative; display: flex; align-items: center; gap: 14px; margin-bottom: 14px; padding: 18px;
             border: 2px dashed var(--bordo); border-radius: 12px; background: var(--sfondo); cursor: pointer;
             transition: border-color .2s ease, background-color .2s ease, transform .2s ease; }
.zona-file input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.zona-file:hover, .zona-file.sopra { border-color: var(--azzurro); background: var(--azzurro-tenue); }
.zona-file.sopra { transform: scale(1.01); }
.zona-file:focus-within { outline: 3px solid var(--azzurro-chiaro); outline-offset: 2px; }
.zona-icona { width: 42px; height: 42px; border-radius: 11px; display: grid; place-items: center; flex-shrink: 0;
              background: var(--carta); color: var(--azzurro); border: 1px solid var(--bordo); }
.zona-file small { display: block; color: var(--testo-tenue); }
.zona-scelto { display: none; min-width: 0; }
.zona-nome { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.zona-file.scelto { border-style: solid; border-color: var(--ok); background: var(--ok-tenue); }
.zona-file.scelto .zona-icona { color: var(--ok); }
.zona-icona .se-scelto, .zona-file.scelto .se-vuota { display: none; }
.zona-file.scelto .se-scelto { display: contents; }
.zona-icona > span { display: contents; }
.zona-file.scelto .zona-vuota { display: none; }
.zona-file.scelto .zona-scelto { display: block; }
button:disabled { opacity: .6; cursor: wait; }
.assegna { display: flex; gap: 6px; flex-wrap: wrap; }
.assegna select { padding: 8px; border-radius: 8px; border: 1px solid var(--bordo); font: inherit; max-width: 230px; }
.assegna button { padding: 8px 12px; }

.piede { margin-top: 24px; display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }

/* ---------- Schermi piccoli: la barra laterale va in alto ---------- */
@media (max-width: 900px) {
  .layout { flex-direction: column; }
  .laterale { width: auto; height: auto; position: static; flex-direction: row; align-items: center;
              overflow-x: auto; padding: 10px 16px; gap: 10px; border-right: 0; border-bottom: 1px solid var(--bordo); }
  .menu { flex-direction: row; }
  .menu a { white-space: nowrap; }
  .aiuto, .utente { display: none; }
  .barra-alta { padding: 10px 16px; position: static; }
  .barra-alta .bottone { display: none; }
  main { padding: 18px 16px; }
}

/* Ritocchi */
.riepilogo div > small { display: block; margin-top: 2px; }
.titolo-sezione { margin: 26px 0 12px; }
.occhiello a { color: inherit; text-decoration: none; }
.partecipante .dettagli { text-align: right; }

/* =========================================================================
   Interruttore sole / luna per la modalità scura.
   Di giorno: cielo azzurro InVibe, sole arancione e una nuvola.
   Di notte: cielo blu notte, il sole rotola a destra e diventa luna, escono le stelle.
   ========================================================================= */
.azioni-alte { display: flex; align-items: center; gap: 14px; }

.tema { position: relative; width: 66px; height: 34px; padding: 0; border-radius: 999px; overflow: hidden;
        flex-shrink: 0; background: linear-gradient(180deg, #9adcf0, var(--azzurro));
        box-shadow: inset 0 2px 5px rgba(11, 26, 58, .22); }
.tema:hover { background: linear-gradient(180deg, #9adcf0, var(--azzurro)); filter: brightness(1.06); }
.tema:focus-visible { outline: 3px solid var(--arancio); outline-offset: 3px; }

/* il cielo di notte è uno strato sopra quello di giorno che compare piano */
.tema::before { content: ""; position: absolute; inset: 0; opacity: 0; transition: opacity .6s ease;
                background: linear-gradient(180deg, #0b1a3a, #1c3470); }

/* sole (e luna) */
.tema-astro { position: absolute; z-index: 2; top: 4px; left: 4px; width: 26px; height: 26px; border-radius: 50%;
              background: radial-gradient(circle at 35% 35%, #ffd76e, #ffad1f 55%, var(--arancio));
              box-shadow: 0 0 0 4px rgba(255, 200, 90, .28), 0 0 14px rgba(255, 140, 0, .6);
              transition: transform .65s cubic-bezier(.68, -.35, .27, 1.35), box-shadow .6s ease; }
.tema-astro::before { content: ""; position: absolute; inset: 0; border-radius: 50%; opacity: 0; transition: opacity .45s ease;
                      background: radial-gradient(circle at 35% 35%, #ffffff, #e1e8f2 60%, #c2cede); }
.cratere { position: absolute; border-radius: 50%; background: #b3c1d6; opacity: 0; transition: opacity .45s ease .15s; }
.cratere.c1 { width: 7px; height: 7px; top: 6px; left: 12px; }
.cratere.c2 { width: 5px; height: 5px; top: 15px; left: 6px; }
.cratere.c3 { width: 4px; height: 4px; top: 17px; left: 16px; }

/* nuvola */
.tema-nuvola { position: absolute; z-index: 1; right: 9px; top: 15px; width: 20px; height: 8px; border-radius: 8px;
               background: #fff; transition: transform .6s ease, opacity .4s ease; }
.tema-nuvola::before { content: ""; position: absolute; width: 10px; height: 10px; border-radius: 50%;
                       background: #fff; left: 4px; top: -5px; }

/* stelle */
.tema-stella { position: absolute; z-index: 1; width: 3px; height: 3px; border-radius: 50%; background: #fff;
               opacity: 0; transform: translateY(-8px); transition: opacity .5s ease, transform .5s ease; }
.tema-stella.s1 { top: 8px; left: 10px; }
.tema-stella.s2 { top: 20px; left: 18px; width: 2px; height: 2px; transition-delay: .1s; }
.tema-stella.s3 { top: 11px; left: 26px; width: 2px; height: 2px; transition-delay: .2s; }

/* di notte */
[data-tema="scuro"] .tema::before { opacity: 1; }
[data-tema="scuro"] .tema-astro { transform: translateX(32px) rotate(300deg);
                                  box-shadow: 0 0 0 4px rgba(200, 220, 255, .12), 0 0 12px rgba(200, 220, 255, .45); }
[data-tema="scuro"] .tema-astro::before, [data-tema="scuro"] .cratere { opacity: 1; }
[data-tema="scuro"] .tema-nuvola { transform: translateY(22px); opacity: 0; }
[data-tema="scuro"] .tema-stella { opacity: 1; transform: none; animation: brilla 2.6s ease-in-out .6s infinite alternate; }
[data-tema="scuro"] .tema-stella.s2 { animation-delay: 1.4s; }
@keyframes brilla { to { opacity: .35; } }

/* chi ha chiesto al sistema meno animazioni non le vede */
@media (prefers-reduced-motion: reduce) {
  .tema *, .tema::before, .tema *::before { transition: none !important; animation: none !important; }
}

/* ---------- Pagina di accesso ---------- */
.pagina-login { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px;
                background: radial-gradient(circle at 20% 0%, var(--azzurro-tenue), transparent 55%), var(--sfondo); }
.login { width: 100%; max-width: 400px; background: var(--carta); border: 1px solid var(--bordo);
         border-radius: 20px; padding: 32px 28px; box-shadow: 0 20px 50px rgba(11, 26, 58, .08); }
.login .marchio { padding: 0; margin-bottom: 26px; }
.login h1 { margin-bottom: 4px; }
.login .sottotitolo { margin-bottom: 22px; }
.form-login { display: flex; flex-direction: column; gap: 14px; }
.form-login label { display: flex; flex-direction: column; gap: 6px; font-weight: 500; }
.form-login input { font: inherit; padding: 11px 12px; border-radius: 10px; border: 1px solid var(--bordo);
                    background: var(--sfondo); color: var(--testo); }
.form-login input:focus { outline: 3px solid var(--azzurro-chiaro); outline-offset: 1px; border-color: var(--azzurro); }
.form-login button { justify-content: center; margin-top: 6px; padding: 12px; }
.login .nota { margin: 20px 0 0; font-size: .85em; color: var(--testo-tenue); text-align: center; }

/* Pulsante "esci" nel riquadro utente */
.utente .esci { margin-left: auto; }
.utente .esci button { background: transparent; color: var(--testo-tenue); padding: 8px; border-radius: 9px; }
.utente .esci button:hover { background: var(--sfondo); color: var(--errore); }

.etichetta-bot { font-family: var(--testi); font-size: .38em; font-weight: 600; vertical-align: middle; letter-spacing: 0;
                 background: var(--arancio-tenue); color: var(--attenzione); padding: 4px 10px; border-radius: 20px; margin-left: 8px; }
