/* =====================================================================
   CYBER ONIONS — banner consenso cookie
   Condiviso da tutti i siti del portale: non aggiungere regole specifiche
   di un dominio. Colori coerenti col tema scuro del sito.
   ===================================================================== */

.cookie-consent {
    position: fixed;
    inset-inline-start: 1.6rem;
    inset-block-end: 1.6rem;
    z-index: 9999;
    inline-size: min(42rem, calc(100vw - 3.2rem));
    max-block-size: calc(100vh - 3.2rem);
    overflow-y: auto;
    padding: 1.8rem;
    background: #0d0d0d;
    color: #d6d6d6;
    border: 1px solid #2a2a2a;
    border-radius: 1.2rem;
    box-shadow: 0 1.2rem 3.2rem rgba(0, 0, 0, .55);
    font-size: 1.4rem;
    line-height: 1.6;
}

.cookie-consent[hidden] { display: none; }

.cookie-consent__title {
    margin: 0 0 .8rem;
    font-size: 1.6rem;
    font-weight: 600;
    color: #fff;
}

.cookie-consent__text {
    margin: 0 0 1.4rem;
    color: #b8b8b8;
}

.cookie-consent__text a {
    color: #4fb3e8;
    text-decoration: underline;
}

.cookie-consent__actions {
    display: flex;
    flex-wrap: wrap;
    gap: .8rem;
}

.cookie-consent__btn {
    font: inherit;
    font-size: 1.4rem;
    font-weight: 600;
    padding: .8rem 1.4rem;
    border-radius: .8rem;
    border: 1px solid transparent;
    cursor: pointer;
}

.cookie-consent__btn--primary {
    background: #0087cc;
    color: #fff;
}

.cookie-consent__btn--primary:hover {
    background: #006A80;
}

.cookie-consent__btn--secondary {
    background: transparent;
    color: #d6d6d6;
    border-color: #3a3a3a;
}

.cookie-consent__btn--secondary:hover {
    border-color: #5a5a5a;
}

/* Pannello preferenze */
.cookie-consent__prefs {
    margin-block-start: 1.4rem;
    padding-block-start: 1.4rem;
    border-block-start: 1px solid #2a2a2a;
}

.cookie-consent__row {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    padding: .8rem 0;
}

.cookie-consent__row + .cookie-consent__row {
    border-block-start: 1px solid #1e1e1e;
}

.cookie-consent__row input {
    margin-block-start: .3rem;
    inline-size: 1.6rem;
    block-size: 1.6rem;
    flex: none;
    accent-color: #0087cc;
}

.cookie-consent__row b {
    display: block;
    color: #fff;
    font-weight: 600;
}

.cookie-consent__row small {
    display: block;
    color: #9a9a9a;
    line-height: 1.5;
}

.cookie-consent__row input:disabled {
    opacity: .6;
}

.cookie-consent__status {
    margin: 1rem 0 0;
    font-size: 1.3rem;
    color: #8fd0a0;
}

.cookie-consent__status--error {
    color: #e8a0a0;
}

/* Link di revoca nel footer */
.cookie-consent-open {
    color: #9a9a9a;
    text-decoration: underline;
    cursor: pointer;
    background: none;
    border: 0;
    padding: 0;
    font: inherit;
    font-size: inherit;
}

.cookie-consent-open:hover {
    color: #d6d6d6;
}

@media (max-width: 600px) {
    .cookie-consent {
        inset-inline: 1.2rem;
        inset-block-end: 1.2rem;
        inline-size: auto;
        padding: 1.4rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .cookie-consent,
    .cookie-consent__btn {
        transition: none;
    }
}