.no-scroll {
    overflow: hidden;
    position: fixed;
    width: 100%;
}

#cookieConsent {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    z-index: 9999;
    padding: 20px;
    box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.1);
    animation: slideUp 0.5s ease-out;
}

.cookie-popup {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
    color: #fff;
}

.cookie-content {
    flex: 1;
    min-width: 300px;
}

.cookie-title {
    font-size: 1.2rem;
    margin-bottom: 10px;
    font-weight: 600;
    color: var(--secondary-color);
}

.cookie-text {
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 15px;
}

.cookie-text a {
    color: var(--secondary-color);
    text-decoration: underline;
    transition: color 0.3s ease;
}

.cookie-text a:hover {
    color: var(--accent-color);
}

.cookie-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.cookie-btn {
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    font-size: 0.9rem;
}

.accept-all {
    background-color: var(--secondary-color);
    color: white;
}

.accept-all:hover {
    background-color: var(--accent-color);
    transform: translateY(-2px);
}

.accept-essential {
    background-color: transparent;
    color: #fff;
    border: 1px solid #fff;
}

.accept-essential:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.cookie-settings {
    background-color: transparent;
    color: var(--secondary-color);
    text-decoration: underline;
    padding: 5px;
}

.cookie-settings:hover {
    color: var(--accent-color);
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Stili per il pannello delle impostazioni dei cookie */
.cookie-settings-panel {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
}

.cookie-settings-content {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    color: #333;
}

.cookie-settings-content h3 {
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.cookie-types {
    margin-bottom: 2rem;
}

.cookie-type {
    margin-bottom: 1.5rem;
    padding: 1rem;
    border-radius: 8px;
    background: #f8f8f8;
}

.cookie-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.cookie-label {
    display: flex;
    align-items: center;
    gap: 1rem;
    cursor: pointer;
}

.cookie-name {
    font-weight: 500;
    font-size: 1rem;
}

/* Switch toggle */
.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

.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;
    border-radius: 24px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: var(--secondary-color, #E6B800);
}

input:checked + .slider:before {
    transform: translateX(26px);
}

.cookie-type p {
    color: #666;
    font-size: 0.9rem;
    margin-top: 0.5rem;
    margin-left: 3.5rem;
}

.cookie-settings-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    margin-top: 2rem;
}

.save-settings,
.close-settings {
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

.save-settings {
    background-color: var(--secondary-color, #E6B800);
    color: white;
}

.close-settings {
    background-color: #e0e0e0;
    color: #333;
}

.save-settings:hover {
    background-color: var(--primary-color, #333);
    transform: translateY(-2px);
}

.close-settings:hover {
    background-color: #d0d0d0;
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .cookie-settings-content {
        padding: 1.5rem;
        margin: 1rem;
        width: calc(100% - 2rem);
    }

    .cookie-settings-buttons {
        flex-direction: column;
    }

    .save-settings,
    .close-settings {
        width: 100%;
        margin-bottom: 0.5rem;
    }
}

/* Stili per la pagina informativa cookie */
.cookie-policy {
    max-width: 800px;
    margin: 40px auto;
    padding: 40px;
    background: rgba(25, 25, 25, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    color: #fff;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    text-align: center;
}

.cookie-policy h1 {
    color: #E6B800;
    font-size: 2.5em;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(230, 184, 0, 0.3);
}

.cookie-policy h2 {
    color: #E6B800;
    font-size: 1.8em;
    margin: 30px 0 15px;
}

.cookie-policy p {
    line-height: 1.6;
    margin-bottom: 15px;
    font-size: 1.1em;
    color: rgba(255, 255, 255, 0.9);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.cookie-policy ul {
    list-style: none;
    padding: 0;
    margin: 15px auto;
    max-width: 600px;
    text-align: left;
}

.cookie-policy ul li {
    margin-bottom: 10px;
    position: relative;
    padding-left: 25px;
    line-height: 1.5;
}

.cookie-policy ul li::before {
    content: '•';
    color: #E6B800;
    font-size: 1.2em;
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
}

.cookie-policy .last-update {
    font-style: italic;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9em;
    margin-bottom: 30px;
    text-align: center;
}

.cookie-policy .cookie-type {
    background: rgba(255, 255, 255, 0.05);
    padding: 25px;
    border-radius: 10px;
    margin: 20px auto;
    border: 1px solid rgba(230, 184, 0, 0.1);
    max-width: 700px;
    text-align: left;
}

.cookie-policy .cookie-type h3 {
    color: #E6B800;
    font-size: 1.3em;
    margin-bottom: 15px;
    text-align: center;
}

.cookie-policy .cookie-type p {
    margin-bottom: 15px;
    font-size: 1em;
    text-align: left;
}

.cookie-policy .browser-instructions {
    background: rgba(255, 255, 255, 0.05);
    padding: 20px;
    border-radius: 8px;
    margin: 15px auto;
    max-width: 650px;
}

.cookie-policy .browser-instructions code {
    color: #E6B800;
    background: rgba(230, 184, 0, 0.1);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: monospace;
}

.cookie-policy section {
    margin: 40px 0;
}

@media (max-width: 768px) {
    .cookie-policy {
        margin: 20px;
        padding: 20px;
    }

    .cookie-policy h1 {
        font-size: 2em;
    }

    .cookie-policy h2 {
        font-size: 1.5em;
    }

    .cookie-policy p {
        font-size: 1em;
    }

    .cookie-policy .cookie-type {
        padding: 15px;
    }
} 