/* GDPR Cookie dialog */

.gdprcookie {
    position: fixed;
    bottom: 1.25rem;
    right: 1.25rem;
    max-width: 22rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(106, 106, 78, 0.15);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12), 0 2px 8px rgba(0, 0, 0, 0.06);
    color: #3a3a32;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.875rem;
    line-height: 1.55;
    z-index: 99999;
    animation: cookieSlideUp 0.4s ease-out;
}

@keyframes cookieSlideUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

.gdprcookie h1,
.gdprcookie h2,
.gdprcookie h3 {
    font-family: 'Instrument Serif', serif;
    font-size: 1.15rem;
    font-weight: 400;
    color: #3a3a32;
    margin: 0 0 0.5rem;
}

.gdprcookie p {
    margin: 0 0 1rem;
    color: #6b6b60;
}

.gdprcookie a {
    color: #6A6A4E;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.gdprcookie a:hover {
    color: #575740;
}


/* GDPR Cookie buttons — "Accetta tutti" and "Rifiuta" share the same style
   and size (equal prominence, as the Garante's 2021 guidelines require);
   "Personalizza" is the secondary, outlined action on its own row. */

.gdprcookie-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.gdprcookie-buttons button {
    flex: 1 1 calc(50% - 0.25rem);
    font-family: 'DM Sans', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 0.6rem 1rem;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    background: #6A6A4E;
    color: #fff;
}

.gdprcookie-buttons button:hover {
    background: #575740;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(106, 106, 78, 0.3);
}

.gdprcookie-buttons button:focus-visible {
    outline: 2px solid #575740;
    outline-offset: 2px;
}

.gdprcookie-buttons button.gdprcookie-advanced {
    flex-basis: 100%;
    background: transparent;
    color: #575740;
    border: 1px solid rgba(106, 106, 78, 0.55);
}

.gdprcookie-buttons button.gdprcookie-advanced:hover {
    background: rgba(106, 106, 78, 0.08);
    box-shadow: none;
    transform: none;
}

.gdprcookie-buttons button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}


/* GDPR Cookie types (shown after "Personalizza") */

.gdprcookie-types ul {
    padding: 0;
    margin: 0 0 1rem;
}

.gdprcookie-types li {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem;
    list-style: none;
    width: 100%;
    padding: 0.4rem 0;
    margin: 0;
    font-size: 0.8rem;
    color: #6b6b60;
    border-top: 1px solid rgba(106, 106, 78, 0.14);
}

.gdprcookie-types li:last-child {
    border-bottom: 1px solid rgba(106, 106, 78, 0.14);
}

.gdprcookie-types label {
    font-weight: 600;
    color: #3a3a32;
    cursor: pointer;
}

.gdprcookie-types small {
    flex-basis: 100%;
    padding-left: 1.4rem;
    font-size: 0.75rem;
    line-height: 1.4;
    color: #6b6b60;
}

.gdprcookie-types input[type=checkbox] {
    margin: 0;
    accent-color: #6A6A4E;
}

/* Mobile: full width at bottom */
@media (max-width: 575px) {
    .gdprcookie {
        right: 0.75rem;
        left: 0.75rem;
        bottom: 0.75rem;
        max-width: none;
    }
}
