:root {
    --blu: #14406b;
    --blu-scuro: #0d2c4b;
    --grigio: #5b6672;
    --bordo: #d5dbe1;
    --sfondo: #f4f6f8;
    --errore: #a61b1b;
    --info: #14663d;
}
* { box-sizing: border-box; }
body {
    margin: 0;
    font-family: "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
    background: var(--sfondo);
    color: #1d2630;
    line-height: 1.5;
}
.contenitore { max-width: 960px; margin: 0 auto; padding: 0 16px; }
.barra { background: var(--blu); color: #fff; }
.barra-interna { display: flex; justify-content: space-between; align-items: center; min-height: 56px; flex-wrap: wrap; gap: 8px; }
.logo { color: #fff; text-decoration: none; font-weight: 700; letter-spacing: .04em; }
.logo span { font-weight: 400; opacity: .8; }
nav { display: flex; gap: 16px; align-items: center; }
nav a, button.link { color: #fff; text-decoration: none; background: none; border: 0; font: inherit; cursor: pointer; padding: 0; }
nav a:hover, button.link:hover { text-decoration: underline; }
form.inline { display: inline; margin: 0; }
main { padding-top: 24px; padding-bottom: 32px; min-height: 60vh; }
h1 { color: var(--blu-scuro); margin-top: 0; }
a { color: var(--blu); }
.sotto { color: var(--grigio); }
.scheda { background: #fff; border: 1px solid var(--bordo); border-radius: 8px; padding: 16px 20px; margin-bottom: 20px; }
.stretta { max-width: 420px; }
label { display: block; margin-bottom: 12px; font-weight: 600; }
input { display: block; width: 100%; margin-top: 4px; padding: 10px; font: inherit; border: 1px solid var(--bordo); border-radius: 6px; }
button, .pulsante {
    display: inline-block; background: var(--blu); color: #fff; border: 0; border-radius: 6px;
    padding: 10px 18px; font: inherit; cursor: pointer; text-decoration: none;
}
button:hover, .pulsante:hover { background: var(--blu-scuro); }
button.secondario { background: #fff; color: var(--blu); border: 1px solid var(--blu); }
.errore { color: var(--errore); font-weight: 600; }
.info { color: var(--info); font-weight: 600; }
.tabella { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--bordo); border-radius: 8px; overflow: hidden; }
.tabella th, .tabella td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--bordo); }
.tabella th { background: #eaeef2; color: var(--blu-scuro); }
.qr svg { width: 200px; height: 200px; }
.codici, code { background: #eef1f4; padding: 8px 12px; border-radius: 6px; }
.piede { color: var(--grigio); font-size: .85rem; padding-bottom: 24px; }
@media (max-width: 600px) {
    .tabella th:nth-child(2), .tabella td:nth-child(2) { display: none; }
}
