/* --- OPTODATA UNIVERSAL HEADER --- */
/* Single Source of Truth per l'Header (Logo + Claim) su tutte le pagine */

header {
    text-align: center !important;
    width: 100% !important;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(0, 80, 181, .1);
    box-sizing: border-box;
}

.brand-container {
    display: inline-block !important;
    width: max-content !important;
    max-width: 100%;
    margin: 0 auto !important;
    text-align: center !important;
    contain: layout;
    text-decoration: none !important; /* per le legal pages che usano <a> */
    user-select: none;
    cursor: default;
}

.logo-text {
    font-size: 4.5rem;
    font-weight: 800;
    line-height: .9;
    letter-spacing: -.02em;
    color: var(--color-cobalt);
    display: block !important;
    text-align: center !important;
    width: 100% !important;
    margin: 0 auto !important;
}

.brand-claim {
    display: block;
    font-family: inherit;
    font-size: .78rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--color-cobalt);
    text-align: justify;
    text-align-last: justify;
    width: 100%;
    margin-top: .3rem;
    line-height: 1.2;
    white-space: nowrap; /* CRITICO PER PREVENIRE IL WRAP SU MOBILE! */
}

/* TABLET & MOBILE */
@media (max-width: 768px) {
    header {
        margin-bottom: 1.5rem;
        padding-bottom: 1rem;
    }
}

@media (max-width: 600px) {
    .brand-container {
        width: max-content !important; 
    }
    .logo-text {
        font-size: 13vw !important;
    }
    .brand-claim {
        font-size: 2.1vw !important;
        margin-top: 2px !important;
    }
}

/* APPLE WATCH & ULTRA-SMALL */
@media (max-width: 250px), (max-height: 250px) {
    header {
        margin-bottom: 5px !important;
        padding-bottom: 0 !important;
        border-bottom: none !important;
    }
    .brand-container {
        margin: 0 !important;
        padding: 0 !important;
    }
    .logo-text {
        font-size: 1.4rem !important;
        margin: 0 auto !important;
        line-height: 1 !important;
        padding: 0 !important;
    }
    .brand-claim {
        display: none !important;
    }
}
