/* ============================================================================
   Homepage multisphera-admin (pre-login).
   Stile allineato al brand CIAS (www.cias.it):
   - palette bianco + rosso #C41E3A + grigio scuro #333
   - tipografia sans-serif corporate
   - hero white-dominant con claim grande, no immagine bg
   - 3 card su fondo grigio chiaro #F5F5F5
   - footer scuro multi-colonna
   Pattern flex column min-height:100vh per footer al fondo del viewport.
   ============================================================================ */

:root {
    --cias-red: #c41e3a;
    --cias-red-dark: #9d182f;
    --cias-text: #333333;
    --cias-muted: #6c757d;
    --cias-section-alt: #f5f5f5;
    --cias-border: rgba(0, 0, 0, 0.06);
    --cias-footer-bg: #1f2329;
    --cias-footer-text: #cbd1d8;
}

.home-wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background-color: #ffffff;
    color: var(--cias-text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.home-content {
    flex: 1 0 auto;
}

/* ----------------------------------------------------------------------------
   Header (top bar minimal)
   ---------------------------------------------------------------------------- */

.home-header {
    background-color: #ffffff;
    border-bottom: 1px solid var(--cias-border);
    padding: 16px 0;
}

.home-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.home-header__logo {
    height: 40px;
    width: auto;
}

.home-header__nav {
    display: flex;
    align-items: center;
    gap: 16px;
}

.home-header__login {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 22px;
    background-color: var(--cias-red);
    color: #ffffff;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.3px;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.home-header__login:hover {
    background-color: var(--cias-red-dark);
    color: #ffffff;
    transform: translateY(-1px);
}

/* ----------------------------------------------------------------------------
   Hero: bianco dominante, claim grande in rosso CIAS, NO immagine background
   ---------------------------------------------------------------------------- */

.home-hero {
    background-color: #ffffff;
    padding: 40px 20px 80px;
    text-align: center;
}

.home-hero__inner {
    max-width: 900px;
    margin: 0 auto;
    animation: home-hero-enter 0.6s ease-out both;
}

.home-hero__logo {
    display: block;
    width: 100%;
    max-width: 600px;
    height: auto;
    margin: 0 auto 24px;
}

.home-hero__claim {
    color: var(--cias-text);
    font-size: 1.75rem;
    font-weight: 300;
    line-height: 1.4;
    max-width: 720px;
    margin: 0 auto 36px;
    letter-spacing: 0.5px;
}

.home-hero__cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 36px;
    background-color: var(--cias-red);
    color: #ffffff;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 4px 12px rgba(196, 30, 58, 0.25);
}

.home-hero__cta:hover {
    background-color: var(--cias-red-dark);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(196, 30, 58, 0.35);
}

@keyframes home-hero-enter {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ----------------------------------------------------------------------------
   Cards section: fondo grigio chiaro #f5f5f5 (sezione alternata stile CIAS)
   ---------------------------------------------------------------------------- */

.home-cards {
    background-color: var(--cias-section-alt);
    padding: 80px 0;
}

.home-cards__title {
    text-align: center;
    color: var(--cias-text);
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.home-cards__subtitle {
    text-align: center;
    color: var(--cias-muted);
    font-size: 1.05rem;
    margin-bottom: 48px;
}

.home-card {
    background-color: #ffffff;
    border: 1px solid var(--cias-border);
    border-radius: 6px;
    height: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.home-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
    border-color: rgba(196, 30, 58, 0.2);
}

.home-card .card-body {
    padding: 36px 28px;
    text-align: center;
}

.home-card__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    background-color: rgba(196, 30, 58, 0.08);
    color: var(--cias-red);
    border-radius: 50%;
    font-size: 1.6rem;
    margin-bottom: 20px;
}

.home-card__title {
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--cias-text);
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.home-card__text {
    color: var(--cias-muted);
    line-height: 1.6;
    font-size: 0.95rem;
    margin-bottom: 0;
}

/* ----------------------------------------------------------------------------
   Footer scuro multi-colonna stile CIAS
   ---------------------------------------------------------------------------- */

.home-footer {
    flex-shrink: 0;
    background-color: var(--cias-footer-bg);
    color: var(--cias-footer-text);
    padding: 48px 0 24px;
    font-size: 0.9rem;
}

.home-footer__columns {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 32px;
    margin-bottom: 32px;
}

.home-footer__col h6 {
    color: #ffffff;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 14px;
}

.home-footer__col p,
.home-footer__col a {
    color: var(--cias-footer-text);
    margin: 0 0 6px;
    line-height: 1.6;
}

.home-footer__col a {
    text-decoration: none;
    transition: color 0.2s ease;
    display: block;
}

.home-footer__col a:hover {
    color: #ffffff;
}

.home-footer__bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 20px;
    text-align: center;
    color: rgba(203, 209, 216, 0.7);
    font-size: 0.85rem;
}

.home-footer__bottom a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
}

.home-footer__bottom a:hover {
    text-decoration: underline;
}

/* ----------------------------------------------------------------------------
   Responsive
   ---------------------------------------------------------------------------- */

@media (max-width: 768px) {
    .home-hero {
        padding: 24px 20px 50px;
    }
    .home-hero__logo {
        max-width: 360px;
    }
    .home-hero__claim {
        font-size: 1.15rem;
    }
    .home-hero__cta {
        padding: 12px 28px;
        font-size: 0.9rem;
    }
    .home-cards {
        padding: 60px 0;
    }
    .home-cards__title {
        font-size: 1.5rem;
    }
    .home-header__inner {
        flex-wrap: wrap;
    }
}

@media (prefers-reduced-motion: reduce) {
    .home-hero__inner,
    .home-card,
    .home-card:hover,
    .home-hero__cta,
    .home-hero__cta:hover,
    .home-header__login,
    .home-header__login:hover {
        animation: none;
        transition: none;
        transform: none;
    }
}
