/* ==========================================================================
   Stile di accesso e area soci. Per personalizzare basta cambiare le variabili.
   ========================================================================== */
:root {
    --colore-primario: #1f4e79;
    --colore-primario-scuro: #163a5b;
    --colore-testo: #1c2430;
    --colore-testo-tenue: #5b6675;
    --colore-sfondo: #f3f5f8;
    --colore-scheda: #ffffff;
    --colore-bordo: #d5dbe3;
    --colore-errore: #b42318;
    --colore-ok-sfondo: #e6f4ea;
    --colore-ok-testo: #1e6b3a;
    --raggio: 8px;
    --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

body {
    margin: 0;
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.5;
    color: var(--colore-testo);
    background: var(--colore-sfondo);
}

h1 { font-size: 1.6rem; margin: 0 0 .5rem; }
h2 { font-size: 1.2rem; margin: 0 0 1rem; }

a { color: var(--colore-primario); }

/* ---- Accesso ---------------------------------------------------------- */
.accesso {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

.accesso__scheda {
    width: 100%;
    max-width: 400px;
    padding: 2rem;
    background: var(--colore-scheda);
    border: 1px solid var(--colore-bordo);
    border-radius: var(--raggio);
    box-shadow: 0 6px 24px rgba(20, 30, 50, .08);
}

.accesso__marchio {
    margin-bottom: 1.25rem;
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: .04em;
    color: var(--colore-primario);
}

.accesso__marchio img { max-height: 48px; }

.accesso__sottotitolo { margin: 0 0 1.5rem; color: var(--colore-testo-tenue); }

.accesso__nota {
    margin: 1.5rem 0 0;
    font-size: .875rem;
    color: var(--colore-testo-tenue);
}

/* ---- Form ------------------------------------------------------------- */
.campo { margin-bottom: 1rem; }

.campo label { display: block; margin-bottom: .25rem; font-weight: 600; }

.campo input {
    width: 100%;
    padding: .6rem .75rem;
    font: inherit;
    border: 1px solid var(--colore-bordo);
    border-radius: var(--raggio);
    background: #fff;
}

.campo input:focus {
    outline: 2px solid var(--colore-primario);
    outline-offset: 1px;
}

.aiuto { margin: .25rem 0 0; font-size: .875rem; color: var(--colore-testo-tenue); }

.errore { margin: .25rem 0 0; font-size: .875rem; color: var(--colore-errore); }

.pulsante {
    display: inline-block;
    padding: .6rem 1rem;
    font: inherit;
    font-weight: 600;
    border: 1px solid var(--colore-primario);
    border-radius: var(--raggio);
    background: transparent;
    color: var(--colore-primario);
    cursor: pointer;
}

.pulsante--pieno { width: 100%; background: var(--colore-primario); color: #fff; }
.pulsante--pieno:hover { background: var(--colore-primario-scuro); }
.pulsante--secondario { padding: .35rem .75rem; }

.avviso { padding: .75rem 1rem; border-radius: var(--raggio); }
.avviso--ok { background: var(--colore-ok-sfondo); color: var(--colore-ok-testo); }

/* ---- Area soci -------------------------------------------------------- */
.testata { background: var(--colore-scheda); border-bottom: 1px solid var(--colore-bordo); }

.testata__interno {
    max-width: 1100px;
    margin: 0 auto;
    padding: .75rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.testata__marchio {
    font-weight: 700;
    color: var(--colore-primario);
    text-decoration: none;
}

.testata__menu { display: flex; gap: 1rem; flex: 1; }
.testata__menu a { text-decoration: none; }
.testata__menu a:hover { text-decoration: underline; }

.testata__utente { display: flex; align-items: center; gap: .75rem; }
.testata__utente form { margin: 0; }

.contenuto { max-width: 1100px; margin: 0 auto; padding: 1.5rem; }
.introduzione { color: var(--colore-testo-tenue); }

.scheda {
    margin-top: 1.5rem;
    padding: 1.5rem;
    background: var(--colore-scheda);
    border: 1px solid var(--colore-bordo);
    border-radius: var(--raggio);
}

.scheda--stretta { max-width: 460px; }

.tabella { width: 100%; border-collapse: collapse; }
.tabella th, .tabella td { padding: .6rem .75rem; text-align: left; border-bottom: 1px solid var(--colore-bordo); }
.tabella th { font-size: .875rem; color: var(--colore-testo-tenue); }
.tabella .numero { text-align: right; }
