/* =====================================================================
   COOKIE CONSENT POPUP
   =====================================================================
   File a se stante: costruisce da solo (via cookie-consent.js) il box
   di consenso cookie al centro dello schermo, con lo stesso stile
   grafico del resto del sito. Per rimuoverlo del tutto basta eliminare,
   in index.html, il <link> e lo <script> che lo includono (cercare
   "COOKIE CONSENT" nell'HTML).
   ===================================================================== */

.cookie-consent-overlay {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 3000;
    padding: 20px;
}

.cookie-consent-overlay.cookie-consent-overlay--open {
    display: flex;
}

.cookie-consent-popup {
    position: relative;
    background-color: #161616;
    border: 1px solid #7f7f7f;
    border-radius: 14px;
    padding: 24px 34px;
    width: 100%;
    max-width: 620px;
    max-height: 70vh;
    overflow-y: auto;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
    color: #afafaf;
    font-family: "Roboto Condensed", sans-serif;
}

/* Tasto cambio lingua dentro il popup, stesso stile del tasto lingua
   del footer (icona bandiera), ancorato in basso a sinistra del box. */
.cookie-consent-lang-btn {
    position: absolute;
    left: 16px;
    bottom: 14px;
    width: 26px;
    height: 26px;
    padding: 0;
    border: none;
    background: transparent;
    cursor: pointer;
    opacity: 0.85;
    transition: opacity 0.2s ease;
}

.cookie-consent-lang-btn:hover,
.cookie-consent-lang-btn:focus-visible {
    opacity: 1;
}

.cookie-consent-lang-btn .lang-flag {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    border-radius: 3px;
}

.cookie-consent-popup p {
    margin: 0 0 12px 0;
    font-size: small;
    line-height: 1.3;
}

.cookie-consent-title {
    color: #f5f5f5;
    font-weight: bolder;
    font-size: medium;
    margin-bottom: 16px !important;
}

.cookie-consent-list {
    list-style: none;
    margin: 0 0 12px 0;
    padding: 0;
}

.cookie-consent-list li {
    position: relative;
    padding-left: 16px;
    margin-bottom: 10px;
    font-size: small;
    line-height: 1.3;
}

.cookie-consent-list li::before {
    content: "•";
    position: absolute;
    left: 0;
}

.cookie-consent-popup a {
    color: #f5f5f5;
    text-decoration: underline;
    cursor: pointer;
}

.cookie-consent-more-btn {
    background: none;
    border: none;
    padding: 0;
    color: #f5f5f5;
    text-decoration: underline;
    cursor: pointer;
    font: inherit;
    font-size: small;
}

.cookie-consent-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 20px;
}

.cookie-consent-buttons button {
    min-width: 100px;
    border-radius: 8px;
    border: 1px solid #7f7f7f;
    padding: 8px 16px;
    background: #0f0f0f;
    color: #f5f5f5;
    font: inherit;
    font-family: "Roboto Condensed", sans-serif;
    font-weight: bolder;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.cookie-consent-buttons button:hover,
.cookie-consent-buttons button:focus-visible {
    background: #262626;
    border-color: #afafaf;
    outline: none;
}

.cookie-consent-btn-accept {
    background-image: linear-gradient(to bottom, #161616, #7f7f7f) !important;
}

/* Iconcina cookie in basso a sinistra (la piu' a sinistra delle due,
   davanti all'icona del credit easter egg che sta a left: 38px), per
   riaprire il popup in qualsiasi momento. Stesso posizionamento/
   dimensione/comportamento dell'icona credit, per coerenza visiva. */
.cookie-consent-review-btn {
    position: fixed;
    left: 10px;
    bottom: 10px;
    width: 22px;
    height: 22px;
    padding: 0;
    border: none;
    background: transparent;
    color: #8b3f00;
    opacity: 0.55;
    cursor: pointer;
    z-index: 1002;
    transition: opacity 0.25s ease, color 0.25s ease;
}

.cookie-consent-review-btn:hover,
.cookie-consent-review-btn:focus-visible {
    opacity: 0.8;
    color: #af4f01;
}

.cookie-consent-review-btn svg {
    width: 100%;
    height: 100%;
    display: block;
}

/* Telefono in orizzontale (stessa soglia usata nel css principale per il
   layout mobile): la bandierina del cambio lingua va spostata sotto ai
   tasti di chiusura/indietro del popup, come gia' avviene da verticale. */
@media (max-width: 1800px) {
    .cookie-consent-popup {
        display: flex;
        flex-direction: column;
    }

    .cookie-consent-lang-btn {
        position: static;
        order: 999;
        align-self: center;
        margin: 14px 0 0;
    }
}

@media (max-width: 480px) {
    .cookie-consent-popup {
        padding: 20px 18px;
    }

    .cookie-consent-buttons {
        flex-direction: column-reverse;
    }

    .cookie-consent-buttons button {
        width: 100%;
    }

    .cookie-consent-popup {
        display: flex;
        flex-direction: column;
    }

    .cookie-consent-lang-btn {
        position: static;
        order: 999;
        align-self: center;
        margin: 14px 0 0;
    }
}

/* =====================================================================
   COOKIE CONSENT POPUP - fine file
   ===================================================================== */
