.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1rem;
    background-color: #f8f8f8;
    border-top: 1px solid #ddd;
    font-family: 'Open Sans', sans-serif;
    opacity: 1;
    transition: opacity 0.5s ease-in-out;
    z-index: 9999;
}

.cookie-banner.show {
    bottom: 0;
}

.cookie-banner.hide {
    opacity: 0;
}

.cookie-banner .chiudi-banner {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 1rem;
    background-color: transparent;
    border: none;
    cursor: pointer;
}

.cookie-banner .banner-content {
    text-align: center;
    margin-bottom: 1rem;
}

.cookie-banner h2 {
    margin-top: 0;
    font-size: 1.2rem;
    font-weight: bold;
    text-align: center;
}

.cookie-banner p {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    text-align: center;
}

.cookie-banner .menu__link {
    display: block;
    text-align: center;
    font-size: 1rem;
    margin-bottom: 0.5rem;
    font-weight: bold;
}

.cookie-banner .button-group {
    display: flex;
    justify-content: center;
}

.cookie-banner .accettazione {
    padding: 0.5rem 1.2rem;
    color: #fff;
    background-color: #333;
    border: none;
    border-radius: 0.15rem;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    margin: 0 auto;
    opacity: 1;
    transition: opacity 0.3s ease-in-out;
}

.cookie-banner .accettazione:hover {
    opacity: 0.8;
}

.toggle {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
}

.toggle input {
    display: none;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: 0.4s;
    border-radius: 34px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: 0.4s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: #2196f3;
}

input:checked + .slider:before {
    transform: translateX(26px);
}

.slider.round {
    border-radius: 34px;
}

.slider.round:before {
    border-radius: 50%;
}

/* Pulsante di chiusura */
.chiudi-banner {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 1.2rem;
    background-color: transparent;
    border: none;
    color: #999;
    cursor: pointer;
}

/* Titolo */
.cookie-banner h2 {
    margin-top: 0;
    font-size: 1.2rem;
    font-weight: bold;
}

/* Testo della politica dei cookie */
.cookie-banner p {
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

/* Link alla politica dei cookie */
.cookie-banner a {
    font-size: 0.9rem;
    text-decoration: none;
}

/* Gruppo di selettori */
.toggle-group {
    display: flex;
    justify-content: center;
    margin-bottom: 1rem;
}

/* Singolo selettore */
.toggle-item {
    display: flex;
    align-items: center;
    margin-right: 1rem;
}

.toggle-item label {
    margin-left: 0.5rem;
    font-size: 0.8rem;
    color: #555;
}

.toggle input[type="checkbox"] {
    display: none;
}

.toggle .slider {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 28px;
    border-radius: 28px;
    background-color: #ccc;
    transition: background-color 0.3s ease;
    cursor: pointer;
}

.toggle .slider:before {
    position: absolute;
    content: "";
    height: 22px;
    width: 22px;
    left: 2px;
    bottom: 2px;
    border-radius: 50%;
    background-color: #fff;
    transition: transform 0.3s ease;
}

.toggle input:checked + .slider {
    background-color: #4caf50;
}

.toggle input:checked + .slider:before {
    transform: translateX(22px);
}

/* Pulsante di salvataggio */
.save-button,
#toggle-deny {
    margin: 0 auto;
    padding: 0.5rem 1.2rem;
    color: #fff;
    border: none;
    border-radius: 0.15rem;
    display: inline-block;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin-right: 10px;
}

#toggle-deny {
    background-color: gray !important;
}

.pulsantoni {
    text-align: center;
}

/* Stili responsive */
@media screen and (max-width: 768px) {
    .toggle-group {
        display: block;
        float: none;
        text-align: center;
        font-weight: bold;
    }
    .toggle-item {
        display: block;
        align-items: center;
        margin-top: 30px;
        margin-right: 1rem;
    }
    .cookie-banner .banner-content {
        margin-bottom: 0.5rem;
    }

    .cookie-banner p {
        font-size: 0.8rem;
    }

    .cookie-banner .menu__link {
        font-size: 0.8rem;
    }

    .cookie-banner .accettazione {
        font-size: 1rem;
        padding: 0.5rem 1rem;
        width: 100%;
        margin-top: 20px;
        text-align: center;
    }

    #modifica {
        position: relative;
        margin: 0 auto;
    }
}

/* Effetto animazione */
.btn-animation {
    animation: bounce 0.5s;
    animation-fill-mode: both;
}

/* Animazione al passaggio del mouse */
.btn-animation:hover {
    animation: bounce 0.5s;
    animation-fill-mode: both;
}

/* Animazione di dissolvenza */
@keyframes fade-in {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Animazione di bounce */
@keyframes bounce {
    0%,
    100% {
        transform: translateY(0);
    }
    25%,
    75% {
        transform: translateY(-5px);
    }
    50% {
        transform: translateY(0);
    }
}

#modifica {
    position: fixed;
    left: 5px;
    bottom: 5px;
    cursor: pointer;
}

.cookie-banner {
    display: block;
}
.banner-content {
    text-align: center;
}