﻿:root {
    --lux-white: #ffffff;
    --lux-perla: #f7f7f7;
    --lux-grigio: #555;
    --lux-nero: #222;
    --lux-border: #e5e5e5;
}

body {
    margin: 0;
    background: var(--lux-white);
    color: var(--lux-nero);
    font-family: "Inter", sans-serif;
}

.page-content {
    min-height: 60vh;
}

.page-loader {
    position: fixed;
    inset: 0;
    background: rgba(255,255,255,0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: opacity .3s ease;
}

    .page-loader.visible {
        opacity: 1;
        pointer-events: all;
    }

    .page-loader.hidden {
        display: none;
    }

/* Cerchio elegante */
.loader-circle {
    width: 48px;
    height: 48px;
    border: 3px solid #ccc;
    border-top-color: #333;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.lang-switcher {
    display: inline-block;
    z-index: 999;
    cursor: pointer;
}

.lang-dropdown {
    position: relative;
}

.lang-current {
    font-size: 14px;
    font-weight: 600;
    opacity: 0.8;
}

.lang-menu {
    position: absolute;
    top: 22px;
    left: -5px;
    background: white;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
    padding: 6px 0;
    list-style: none;
    margin: 0;
    min-width: 60px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-5px);
    transition: all .2s ease;
    z-index: 999;
}

    .lang-menu li {
        padding: 6px 12px;
        font-size: 14px;
        cursor: pointer;
        opacity: 0.8;
    }

        .lang-menu li:hover {
            background: #f5f5f5;
            opacity: 1;
        }

.lang-dropdown.open .lang-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Overlay */
.legal-modal {
    display: none; /* nascosto di default */
    position: fixed; /* fondamentale */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.65);
    z-index: 9999; /* fondamentale */
    justify-content: center;
    align-items: center;
}

/* Contenuto del popup */
.legal-modal-content {
    background: #fff;
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 40px;
    border-radius: 12px;
    position: relative;
}

/* Bottone chiudi */
.legal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
}

#cookie-banner {
    position: fixed;
    bottom: 0;
    width: 100%;
    background-color: #e3f2fd;
    padding: 15px;
    text-align: center;
    z-index: 9999;
    box-shadow: 0 -2px 6px rgba(0,0,0,0.1);
    margin: 0;
}

#cookie-btnAccept {
    border: none;
    border-radius: 5px;
    margin-left: 5px;
    padding: 10px;
    background: rgba(0,0,0,0.65);
    display: inline-block !important;
    color: white;
    cursor: pointer;
}