.cookie-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: #ffffff;
    padding: 30px;
    border-radius: 8px;
    max-width: 600px;
    width: 90%;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    max-height: 90vh;
    overflow-y: auto;
}

.categoria-elenco {
    margin-top: 20px;
    border-top: 1px solid #eee;
    padding-top: 15px;
}

.categoria-item {
    margin-bottom: 20px;
    border-bottom: 1px solid #f5f5f5;
    padding-bottom: 10px;
}

.item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: bold;
    margin-bottom: 5px;
}

.item-descrizione {
    font-size: 0.9em;
    color: #555;
    margin-top: 5px;
}

.item-generale {
    font-size: 1em;
    color: #555;
    margin-top: 5px;
}

.badge.obbligatorio {
    background-color: #f0f0f0;
    color: #333;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.75em;
    font-weight: normal;
}

.modal-actions {
    margin-top: 30px;
    text-align: right;
}

/* Stile per i bottoni */
.btn-primario, .btn-secondario, .btn-terziario {
    padding: 10px 15px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    margin-left: 10px;
}

.btn-primario {
    background-color: #007bff; /* Accetta selezionati */
    color: white;
}

.btn-secondario {
    background-color: #28a745; /* Accetta tutti */
    color: white;
}

.btn-terziario {
    background-color: #dc3545; /* Rifiuta */
    color: white;
}

/* Stile per il Toggle Switch (GDPR Friendly) */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 45px;
    height: 25px;
}

    .toggle-switch input {
        opacity: 0;
        width: 0;
        height: 0;
    }

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
}

    .slider:before {
        position: absolute;
        content: "";
        height: 17px;
        width: 17px;
        left: 4px;
        bottom: 4px;
        background-color: white;
        transition: .4s;
    }

input:checked + .slider {
    background-color: #2196F3;
}

input:focus + .slider {
    box-shadow: 0 0 1px #2196F3;
}

input:checked + .slider:before {
    transform: translateX(20px);
}

/* Rounded sliders */
.slider.round {
    border-radius: 34px;
}

    .slider.round:before {
        border-radius: 50%;
    }

/* Stile per il Banner Iniziale */
.cookie-notification {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #2c3e50; /* Sfondo scuro */
    color: white;
    padding: 15px 25px;
    z-index: 9999;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.2);
    display: flex; /* Flexbox per allineare testo e bottoni */
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap; /* Per schermi piccoli */
}

    .cookie-notification p {
        margin: 0;
        max-width: 60%;
    }

    .cookie-notification a {
        color: #3498db;
        text-decoration: underline;
    }

.banner-actions {
    display: flex;
    gap: 10px; /* Spazio tra i bottoni */
}

/* Stile per i bottoni del banner */
.btn-banner-accept, .btn-banner-reject, .btn-banner-manage {
    padding: 7px 15px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.btn-banner-accept {
    background-color: #2ecc71; /* Verde */
    color: white;
}

.btn-banner-reject {
    background-color: #e74c3c; /* Rosso */
    color: white;
}

.btn-banner-manage {
    background-color: #f1c40f; /* Giallo/Arancione */
    color: #333;
}

/* GESTIONE TENDNE*/

  .accordion {
    width: 350px;
    border: 1px solid #ccc;
    border-radius: 6px;
    margin-bottom: 10px;
    cursor: pointer;
    user-select: none;
  }

  .accordion-header {
    padding: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f7f7f7;
    font-weight: bold;
  }

  .arrow {
    transition: transform 0.25s;
    font-size: 18px;
  }

  .accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    padding: 0 12px;
  }

  .accordion-content p {
    margin: 12px 0;
  }

/* Stili per il pulsante X */
.close-btn {
    color: #aaa;
    font-size: 30px;
    font-weight: bold;
    border: none;
    background: none;
    position: absolute;
    top: 10px;
    right: 20px;
    cursor: pointer;
}

    .close-btn:hover,
    .close-btn:focus {
        color: black;
        text-decoration: none;
        cursor: pointer;
    }