/* ==========================================================================
   404.css — Pagina errore 2100Platform
   Design token identici agli altri moduli.
   ========================================================================== */

/* --------------------------------------------------------------------------
   Token
   -------------------------------------------------------------------------- */
:root {
    --bg:           #0d0f14;
    --bg-2:         #12151c;
    --bg-3:         #1a1e28;
    --gold:         #e8c547;
    --text:         #e2e4ea;
    --text-dim:     #6b7280;
    --border:       rgba(255, 255, 255, 0.07);
    --radius:       10px;
    --font-display: 'Syne', sans-serif;
    --font-ui:      'IBM Plex Mono', monospace;
}

/* --------------------------------------------------------------------------
   Reset base
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
}

body {
    background-color: var(--bg);
    color: var(--text);
    font-family: var(--font-ui);
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
}

a {
    color: var(--gold);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */
.site-header {
    border-bottom: 1px solid var(--border);
    padding: 1.25rem 2rem;
}

.header-inner {
    max-width: 960px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.header-logos {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo-company,
.logo-app {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    color: var(--gold);
    letter-spacing: 0.05em;
}

.header-slogan {
    font-size: 0.8rem;
    color: var(--text-dim);
    margin-left: auto;
}

/* --------------------------------------------------------------------------
   Main
   -------------------------------------------------------------------------- */
.main-center {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
}

/* --------------------------------------------------------------------------
   Card 404
   -------------------------------------------------------------------------- */
.card {
    background-color: var(--bg-2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2.5rem 2rem;
    width: 100%;
    max-width: 400px;
    text-align: center;
}

.error-code {
    font-family: var(--font-display);
    font-size: 4rem;
    font-weight: 700;
    color: var(--gold);
    letter-spacing: 0.05em;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.card-title {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 1rem;
    letter-spacing: 0.03em;
}

.error-desc {
    font-size: 0.875rem;
    color: var(--text-dim);
    line-height: 1.6;
    margin-bottom: 2rem;
}

/* --------------------------------------------------------------------------
   CTA
   -------------------------------------------------------------------------- */
.btn-home {
    display: inline-block;
    background-color: var(--gold);
    border-radius: var(--radius);
    color: var(--bg);
    font-family: var(--font-display);
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    padding: 0.65rem 1.5rem;
    text-transform: uppercase;
    text-decoration: none;
    transition: opacity 0.15s;
}

.btn-home:hover {
    opacity: 0.85;
    text-decoration: none;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer {
    border-top: 1px solid var(--border);
    padding: 1rem 2rem;
    text-align: center;
}

.footer-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    font-size: 0.75rem;
    color: var(--text-dim);
}

.footer-nav a {
    color: var(--text-dim);
}

.footer-nav a:hover {
    color: var(--text);
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 480px) {
    .error-code {
        font-size: 3rem;
    }

    .card {
        padding: 2rem 1.25rem;
    }

    .header-slogan {
        display: none;
    }
}
