/*
 * Pagine pubbliche della demo (demo/login.php «Prova la demo», demo/entra.php link personale), 1.8.119.
 * Senza Bootstrap: base.css (variabili e temi), componenti.css (classi hb-) e questo file. Tema: segue il dispositivo.
 */

/* Senza Bootstrap serve una base minima: misure con il bordo compreso, niente margini del browser, [hidden] vince sempre
   (le classi con display: flex lo scavalcherebbero). */
*,
*::before,
*::after {
    box-sizing: border-box;
}
body {
    margin: 0;
}
[hidden] {
    display: none !important;
}
h1,
p {
    margin: 0;
}

.demo-pagina {
    min-height: 100vh;
    display: flex;
    align-items: center;
}
.demo-colonna {
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
    padding: 32px 16px;
}

/* Lingue in alto */
.demo-lingue {
    justify-content: center;
    margin-bottom: 24px;
}

/* Testa: segno, titolo, riga sotto */
.demo-testa {
    margin-bottom: 24px;
    text-align: center;
}
.demo-marchio {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    margin-bottom: 16px;
    border-radius: var(--hb-radius);
    background: var(--hb-accent);
    color: var(--hb-accent-ink);
    font-size: 1.5rem;
}
.demo-titolo {
    font-size: 1.75rem;
    font-weight: 800;
    letter-spacing: -.02em;
    line-height: 1.2;
    color: var(--hb-ink);
}
.demo-sotto {
    margin-top: 8px;
    color: var(--hb-muted);
}

/* Testi dentro la scheda */
.demo-testo + .demo-testo,
.demo-testo + .hb-campo-gruppo,
.demo-messaggio-titolo + .demo-testo {
    margin-top: 12px;
}
.demo-testo-sopra {
    margin-bottom: 16px;
}
.demo-messaggio-titolo {
    font-weight: 700;
}
.demo-caselle {
    margin: 8px 0 16px;
}
.demo-frase {
    margin-top: 16px;
    font-size: .875rem;
    color: var(--hb-muted);
    white-space: pre-line;
}
.demo-nota {
    margin-bottom: 16px;
    font-size: .875rem;
    color: var(--hb-muted);
}
.demo-attesa .demo-testo,
.demo-codice-inviato {
    white-space: pre-line;
}

/* Campo trappola per i robot: fuori dallo schermo, mai visibile */
.demo-trappola {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* Turnstile (verifica anti-robot) sopra le caselle */
.demo-antirobot {
    margin-bottom: 16px;
}

@media (max-width: 575.98px) {
    .demo-pagina {
        align-items: flex-start;
    }
    .demo-colonna {
        padding-top: 24px;
    }
    .demo-titolo {
        font-size: 1.5rem;
    }
}
