/* ============================================
   COOKIE BANNER - Minimal e conforme al Garante
   ad+p atelier
   ============================================ */

.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #1a1a1a;
    color: #f5f5f5;
    padding: 1.25rem 1.5rem;
    box-shadow: 0 -4px 12px rgba(0,0,0,0.15);
    z-index: 10000;
    font-family: 'Inter Tight', sans-serif;
    font-size: 0.9rem;
    line-height: 1.5;
    transform: translateY(100%);
    transition: transform 0.4s ease;
}

.cookie-banner.show {
    transform: translateY(0);
}

.cookie-banner-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.cookie-banner-text {
    flex: 3;
    min-width: 200px;
}

.cookie-banner-text a {
    color: #ffd700;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.cookie-banner-text a:hover {
    color: #fff;
}

.cookie-banner-buttons {
    flex: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: flex-end;
}

.cookie-btn {
    padding: 0.5rem 1.25rem;
    border: none;
    border-radius: 0px;
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cookie-btn-accept {
    background: #2c3e50;
    color: white;
    border: 1px solid #2c3e50;
}

.cookie-btn-accept:hover {
    background: #1a252f;
}

.cookie-btn-refuse {
    background: transparent;
    color: #f5f5f5;
    border: 1px solid #f5f5f5;
}

.cookie-btn-refuse:hover {
    background: rgba(255,255,255,0.1);
}

.cookie-btn-preferences {
    background: transparent;
    color: #ffd700;
    border: 1px solid #ffd700;
}

.cookie-btn-preferences:hover {
    background: rgba(255,215,0,0.1);
}

/* Modal per le preferenze (dettaglio cookie) */
.cookie-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s ease, visibility 0.3s;
}

.cookie-modal.show {
    visibility: visible;
    opacity: 1;
}

.cookie-modal-content {
    background: #fff;
    color: #1a1a1a;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    padding: 1.5rem;
    border-radius: 0px;
    position: relative;
}

.cookie-modal-content h3 {
    margin-top: 0;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.cookie-modal-content h4 {
    margin: 1rem 0 0.5rem;
    font-size: 1rem;
}

.cookie-option {
    margin: 1rem 0;
    padding: 0.75rem;
    background: #f5f5f5;
    border-left: 3px solid #2c3e50;
}

.cookie-option label {
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.cookie-option p {
    margin: 0.5rem 0 0;
    font-size: 0.8rem;
    color: #555;
}

.cookie-modal-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
    justify-content: flex-end;
}

.cookie-modal-close {
    background: #2c3e50;
    color: white;
    padding: 0.5rem 1rem;
    border: none;
    cursor: pointer;
}

.cookie-modal-save {
    background: #1a1a1a;
    color: white;
    padding: 0.5rem 1rem;
    border: none;
    cursor: pointer;
}

@media (max-width: 768px) {
    .cookie-banner {
        padding: 1rem;
    }
    .cookie-banner-container {
        flex-direction: column;
        align-items: stretch;
    }
    .cookie-banner-buttons {
        justify-content: stretch;
    }
    .cookie-btn {
        text-align: center;
        flex: 1;
    }
}