/*
 * FPS Verify - Pagine di errore
 * Riusa il linguaggio visivo dell'app (header, fascia colorata in stile CTA
 * della home, card con icone in stile "contatti" della dashboard) cosi'
 * l'utente resta "dentro" al prodotto anche quando incontra un errore.
 */

html, body {
    height: 100%;
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
    background-color: #f4f6f9;
    color: #333;
    display: flex;
    flex-direction: column;
}

/* ========== HEADER (coerente con base.css) ========== */
.err-header {
    background: #fff;
    padding: 15px 20px;
    display: flex;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}
.err-brand {
    font-size: 18px;
    font-weight: bold;
    color: #111;
    text-decoration: none;
}
.err-brand span {
    font-weight: normal;
    color: #888;
}

.err-stage {
    flex: 1;
}

/* ========== FASCIA COLORATA (stile .cta-final della home) ========== */
.err-hero {
    background: var(--accent, #007bff);
    color: #fff;
    text-align: center;
    padding: 50px 20px 60px;
}
.err-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 20px;
    background: rgba(255,255,255,0.18);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
}
.err-code {
    font-size: 15px;
    font-weight: bold;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    opacity: 0.85;
    margin: 0 0 8px;
}
.err-title {
    font-size: 26px;
    font-weight: bold;
    margin: 0 0 12px;
}
.err-msg {
    font-size: 15px;
    line-height: 1.6;
    max-width: 480px;
    margin: 0 auto;
    opacity: 0.95;
}

/* ========== CARD SUGGERIMENTI (stile .card / .contact-item) ========== */
.err-body {
    max-width: 640px;
    margin: -30px auto 0;
    padding: 0 20px 40px;
}
.err-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.08);
    padding: 26px 26px 8px;
}
.err-suggestion {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding-bottom: 18px;
    margin-bottom: 18px;
    border-bottom: 1px solid #eee;
}
.err-suggestion:last-of-type {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 18px;
}
.err-suggestion .icon {
    flex-shrink: 0;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--accent-soft, #e7f1ff);
    color: var(--accent, #007bff);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
}
.err-suggestion h4 {
    margin: 0 0 3px;
    font-size: 15px;
    color: #222;
}
.err-suggestion p {
    margin: 0;
    font-size: 13.5px;
    color: #666;
    line-height: 1.5;
}

.err-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 22px;
}

/* ========== BOTTONI (identici a base.css) ========== */
.btn {
    display: inline-block;
    background: #007bff;
    color: white;
    text-align: center;
    border-radius: 4px;
    text-decoration: none;
    font-weight: bold;
    box-sizing: border-box;
    border: none;
    font-size: 14px;
    cursor: pointer;
    padding: 12px;
}
.btn:hover { background: #0056b3; }
.btn-secondary { background: #6c757d; color: white; }
.btn-secondary:hover { background: #5a6268; }

/* ========== FOOTER (identico a base.css) ========== */
.footer-compliance {
    text-align: center;
    padding: 20px 0;
    border-top: 1px solid #dee2e6;
    background-color: #fff;
    width: 100%;
    margin-top: auto;
}
.footer-compliance a { color: #6c757d; text-decoration: none; font-size: 13px; }
.footer-compliance a:hover { text-decoration: underline; }

@media(min-width: 768px) {
    .err-hero { padding: 64px 20px 80px; }
    .err-title { font-size: 30px; }
    .err-actions { flex-direction: row; justify-content: center; }
    .err-actions .btn, .err-actions .btn-secondary { flex: 0 1 220px; }
}
