/* Cookie Banner Istituzionale - Conforme Garante Privacy */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #ffffff;
    border-top: 3px solid #005a87; /* Colore istituzionale */
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.12);
    z-index: 9999;
    padding: 20px;
    font-family: inherit;
    color: #333333;
    display: none;
}

.cookie-container {
    max-width: 1140px;
    margin: 0 auto;
    position: relative;
}

.cookie-close {
    position: absolute;
    top: -5px;
    right: 0;
    background: transparent;
    border: none;
    font-size: 24px;
    line-height: 1;
    color: #666666;
    cursor: pointer;
    padding: 4px 8px;
}

.cookie-close:hover {
    color: #000000;
}

.cookie-title {
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 8px 0;
    padding-right: 30px;
    color: #005a87;
}

.cookie-text {
    font-size: 13.5px;
    line-height: 1.5;
    margin: 0 0 15px 0;
}

.cookie-text a {
    color: #005a87;
    text-decoration: underline;
}

.cookie-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

/* Pulsanti con stessa gerarchia visiva (requisito Garante) */
.cookie-btn {
    padding: 9px 18px;
    font-size: 13.5px;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    border: 1px solid #005a87;
    transition: all 0.2s ease;
}

.cookie-btn-primary {
    background-color: #005a87;
    color: #ffffff;
}

.cookie-btn-primary:hover {
    background-color: #004466;
}

.cookie-btn-secondary {
    background-color: #ffffff;
    color: #005a87;
}

.cookie-btn-secondary:hover {
    background-color: #f0f6fa;
}

.cookie-btn-link {
    background: transparent;
    border: none;
    color: #555555;
    text-decoration: underline;
    padding: 9px 10px;
}

/* Pannello Preferenze Granulari */
.cookie-prefs {
    display: none;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #e0e0e0;
}

.cookie-pref-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #f2f2f2;
    font-size: 13.5px;
}

.cookie-pref-item label {
    margin: 0;
    cursor: pointer;
}