/* ===========================
   COOKIE CONSENT — BANNER
=========================== */
.gf-cookie-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    background: var(--surface);
    border-top: 1px solid var(--line);
    box-shadow: 0 -10px 40px rgba(20, 20, 20, .12);
    padding: 1.25rem 1.5rem;
    transform: translateY(100%);
    opacity: 0;
    transition: transform .35s ease, opacity .35s ease;
    pointer-events: none;
}
.gf-cookie-bar.is-visible {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}
.gf-cookie-bar__inner {
    max-width: var(--max);
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1.25rem 2rem;
    justify-content: space-between;
}
.gf-cookie-bar__text {
    flex: 1 1 320px;
    color: var(--ink);
    font-size: .9rem;
    line-height: 1.5;
    margin: 0;
}
.gf-cookie-bar__text a {
    color: var(--red);
    text-decoration: underline;
}
.gf-cookie-bar__actions {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
}
.gf-cookie-bar__actions .btn {
    margin: 0;
    padding: .7rem 1.4rem;
    font-size: .68rem;
    white-space: nowrap;
}

/* ===========================
   COOKIE CONSENT — MODALE PREFERENZE
=========================== */
.gf-cookie-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(20, 20, 20, .55);
    padding: 1.5rem;
}
.gf-cookie-modal.is-visible {
    display: flex;
}
.gf-cookie-modal__box {
    position: relative;
    background: var(--surface);
    border-radius: var(--radius);
    max-width: 560px;
    width: 100%;
    max-height: 85vh;
    overflow-y: auto;
    padding: 2.5rem 2rem 2rem;
    box-shadow: var(--shadow);
}
.gf-cookie-modal__title {
    font-family: 'Orbitron', sans-serif;
    font-weight: 800;
    font-size: 1.1rem;
    color: var(--ink);
    margin: 0 0 .5rem;
}
.gf-cookie-modal__intro {
    color: var(--silver);
    font-size: .85rem;
    line-height: 1.5;
    margin: 0 0 .5rem;
}
.gf-cookie-cat {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--line);
}
.gf-cookie-cat:last-of-type {
    border-bottom: none;
}
.gf-cookie-cat__name {
    font-weight: 700;
    color: var(--ink);
    font-size: .9rem;
    margin: 0 0 .3rem;
}
.gf-cookie-cat__desc {
    color: var(--silver);
    font-size: .8rem;
    line-height: 1.5;
    margin: 0;
}
.gf-cookie-switch {
    position: relative;
    flex-shrink: 0;
    width: 44px;
    height: 26px;
}
.gf-cookie-switch input {
    opacity: 0;
    width: 0;
    height: 0;
    position: absolute;
}
.gf-cookie-switch__track {
    position: absolute;
    inset: 0;
    background: rgba(20, 20, 20, .2);
    border-radius: 999px;
    cursor: pointer;
    transition: background .2s;
}
.gf-cookie-switch__track::before {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 20px;
    height: 20px;
    background: #fff;
    border-radius: 50%;
    transition: transform .2s;
}
.gf-cookie-switch input:checked + .gf-cookie-switch__track {
    background: var(--red);
}
.gf-cookie-switch input:checked + .gf-cookie-switch__track::before {
    transform: translateX(18px);
}
.gf-cookie-switch input:disabled + .gf-cookie-switch__track {
    cursor: not-allowed;
    opacity: .6;
}
.gf-cookie-modal__actions {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
    margin-top: 1.5rem;
}
.gf-cookie-modal__actions .btn {
    margin: 0;
    flex: 1 1 auto;
    padding: .8rem 1rem;
    font-size: .66rem;
}
.gf-cookie-modal__close {
    position: absolute;
    top: 1.1rem;
    right: 1.1rem;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    color: var(--silver);
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
}
.gf-cookie-modal__close:hover {
    color: var(--ink);
}

@media (max-width: 640px) {
    .gf-cookie-bar__inner {
        flex-direction: column;
        align-items: stretch;
    }
    .gf-cookie-bar__actions {
        width: 100%;
    }
    .gf-cookie-bar__actions .btn {
        flex: 1 1 auto;
    }
    .gf-cookie-modal__actions {
        flex-direction: column;
    }
}

/* ===========================
   PAGINA LEGALE (Privacy Policy)
=========================== */
.legal-content {
    max-width: 860px;
    color: var(--ink);
}
.legal-content h2 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.15rem;
    margin: 2.25rem 0 .75rem;
}
.legal-content h2:first-of-type {
    margin-top: 0;
}
.legal-content p,
.legal-content li {
    color: var(--silver);
    font-size: .95rem;
    line-height: 1.7;
}
.legal-content ul {
    padding-left: 1.25rem;
    margin: 0 0 1rem;
}
.legal-content strong {
    color: var(--ink);
}
