:root {
  --ink: #1a1f2b;
  --muted: #667085;
  --linea: #e4e7ec;
  --sfondo: #f7f8fa;
  --carta: #fff;
  --blu: #1d5fd8;
  --verde: #0b7a4b;
  --rosso: #b42318;
  --ambra: #b54708;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--sfondo);
  color: var(--ink);
  line-height: 1.5;
}

.barra {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 24px; background: var(--carta); border-bottom: 1px solid var(--linea);
}
.barra .marchio { font-weight: 700; letter-spacing: -.01em; }
.barra a { color: var(--muted); text-decoration: none; margin-left: 18px; font-size: 14px; }
.barra a:hover { color: var(--ink); }

.foglio { max-width: 860px; margin: 0 auto; padding: 28px 24px 64px; }
.foglio.largo { max-width: 1120px; }

/* La fascia della modalità: deve essere impossibile da ignorare. */
.fascia {
  padding: 16px 20px; border-radius: 10px; margin-bottom: 26px;
  font-weight: 600; display: flex; align-items: center; gap: 12px;
}
.fascia .pallino { width: 12px; height: 12px; border-radius: 50%; flex: none; }
.fascia small { display: block; font-weight: 400; opacity: .85; margin-top: 2px; }
.fascia.test { background: #eef4ff; color: #14428f; border: 1px solid #c7d9fb; }
.fascia.test .pallino { background: var(--blu); }
.fascia.live { background: #fef3f2; color: #912018; border: 2px solid #f9a8a0; }
.fascia.live .pallino { background: var(--rosso); }

h1 { font-size: 26px; margin: 0 0 6px; letter-spacing: -.02em; }
h2 { font-size: 17px; margin: 32px 0 12px; }
.sottotitolo { color: var(--muted); margin: 0 0 26px; }

.carta {
  background: var(--carta); border: 1px solid var(--linea);
  border-radius: 12px; padding: 24px; margin-bottom: 20px;
}

.pronte { font-size: 44px; font-weight: 700; letter-spacing: -.03em; line-height: 1.1; }
.pronte small { display: block; font-size: 15px; font-weight: 400; color: var(--muted); }

.tasto {
  display: inline-block; width: 100%; padding: 20px 24px; margin-top: 20px;
  font-size: 19px; font-weight: 650; color: #fff; background: var(--blu);
  border: 0; border-radius: 10px; cursor: pointer; font-family: inherit;
}
.tasto:hover { background: #1a54c0; }
.tasto:disabled { background: #b9c0cc; cursor: not-allowed; }
.tasto.pericolo { background: var(--rosso); }
.tasto.pericolo:hover { background: #99190f; }
.tasto.piccolo { width: auto; padding: 9px 16px; font-size: 14px; }
.tasto.neutro { background: #fff; color: var(--ink); border: 1px solid var(--linea); }

.numeri { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; }
.numero { background: var(--carta); border: 1px solid var(--linea); border-radius: 10px; padding: 16px; }
.numero b { display: block; font-size: 26px; letter-spacing: -.02em; }
.numero span { color: var(--muted); font-size: 13px; }

.avviso { padding: 13px 16px; border-radius: 9px; margin-bottom: 20px; font-size: 15px; }
.avviso.ok { background: #ecfdf3; color: #05603a; border: 1px solid #abefc6; }
.avviso.no { background: #fef3f2; color: #912018; border: 1px solid #fecdc9; }
.avviso.info { background: #fffaeb; color: #93370d; border: 1px solid #fedf89; }

table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--linea); vertical-align: top; }
th { color: var(--muted); font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; }
td.stretta { white-space: nowrap; color: var(--muted); }

.campo { margin-bottom: 16px; }
.campo label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 5px; }
.campo input[type=text], .campo input[type=password], .campo input[type=number] {
  width: 100%; padding: 11px 13px; border: 1px solid var(--linea);
  border-radius: 8px; font-size: 15px; font-family: inherit;
}
.riga-check { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 14px; }
.riga-check input { margin-top: 4px; }
.riga-check label { font-weight: 500; }
.riga-check small { display: block; color: var(--muted); }

.registro { font-size: 13px; }
.registro li { margin-bottom: 7px; color: var(--muted); list-style: none; }
.registro li b { color: var(--ink); font-weight: 600; }
.registro { padding: 0; margin: 0; }

.accesso { max-width: 380px; margin: 90px auto; }
.nota { color: var(--muted); font-size: 13px; margin-top: 10px; }
