#caricatore-sicurezza {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background-color: #0F172A;
    background-image:
        radial-gradient(circle at 15% 50%, rgba(56, 189, 248, 0.08) 0%, transparent 25%),
        radial-gradient(circle at 85% 30%, rgba(14, 165, 233, 0.08) 0%, transparent 25%);
    z-index: 2147483647 !important;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1),
        visibility 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

#caricatore-sicurezza.is-nascosto {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.contenuto-caricatore {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 420px;
    padding: 32px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(16px);
}

.scudo-sicurezza {
    width: 72px;
    height: 72px;
    color: #38BDF8;
    margin-bottom: 24px;
    filter: drop-shadow(0 0 20px rgba(56, 189, 248, 0.4));
    animation: pulsazioneScudo 3s infinite ease-in-out;
}

.titolo-sicurezza {
    font-family: var(--font-titoli, sans-serif);
    font-size: 1.125rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #F8FAFC;
    margin-bottom: 8px;
    text-align: center;
}

.sottotitolo-sicurezza {
    font-size: 0.875rem;
    color: #94A3B8;
    margin-bottom: 32px;
    text-align: center;
}

.contenitore-barra-progresso {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 99px;
    overflow: hidden;
    margin-bottom: 24px;
    position: relative;
}

.barra-progresso-sicurezza {
    height: 100%;
    background: linear-gradient(90deg, #38BDF8, #0EA5E9);
    width: 0%;
    border-radius: 99px;
    box-shadow: 0 0 12px rgba(56, 189, 248, 0.6);
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.barra-progresso-sicurezza::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg,
            transparent,
            rgba(255, 255, 255, 0.4),
            transparent);
    transform: translateX(-100%);
    animation: luccichio 1.5s infinite;
}

.lista-controlli-sicurezza {
    list-style: none;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 0;
    margin: 0;
}

.voce-controllo {
    display: flex;
    align-items: center;
    gap: 12px;
    opacity: 0.4;
    transform: translateX(-10px);
    transition: all 0.3s ease;
}

.voce-controllo.attivo {
    opacity: 1;
    transform: translateX(0);
}

.icona-controllo {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748B;
    transition: all 0.3s ease;
}

.voce-controllo.attivo .icona-controllo {
    background: rgba(56, 189, 248, 0.2);
    color: #38BDF8;
    box-shadow: 0 0 12px rgba(56, 189, 248, 0.2);
}

.testo-controllo {
    font-size: 0.875rem;
    color: #94A3B8;
    font-family: monospace;
    transition: color 0.3s ease;
}

.voce-controllo.attivo .testo-controllo {
    color: #E2E2E6;
}

@keyframes pulsazioneScudo {

    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(0.95);
        opacity: 0.8;
    }
}

@keyframes luccichio {
    100% {
        transform: translateX(100%);
    }
}

#caricatore-sicurezza.is-nascosto {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    display: none;
}

#caricatore-sicurezza.modalita-veloce {
    transition: opacity 150ms ease-out, visibility 150ms ease-out;
    background-color: #0F172A;
    background-image: none;
    animation: none;
}

#caricatore-sicurezza.modalita-veloce .contenuto-caricatore {
    display: none;
}

#caricatore-sicurezza.modalita-veloce::after {
    content: '';
    width: 48px;
    height: 48px;
    border: 3px solid #38BDF8;
    border-bottom-color: transparent;
    border-radius: 50%;
    display: block;
    animation: rotazioneVeloce 0.6s linear infinite;
}

.contenuto-caricatore {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 480px;
    padding: 2rem;
}

.scudo-sicurezza {
    width: 80px;
    height: 80px;
    color: #38BDF8;
    margin-bottom: 2rem;
    filter: drop-shadow(0 0 15px rgba(56, 189, 248, 0.3));
    animation: fluttuazioneScudo 3s infinite ease-in-out;
}

.titolo-sicurezza {
    font-family: 'Roboto', sans-serif;
    font-size: clamp(0.9rem, 2vw, 1rem);
    font-weight: 400;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #E2E2E6;
    margin-bottom: 1.5rem;
    text-align: center;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.3);
}

.contenitore-barra-progresso {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 9999px;
    overflow: hidden;
    margin-bottom: 2rem;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.2);
}

.barra-progresso-sicurezza {
    height: 100%;
    background-color: #38BDF8;
    width: 0%;
    border-radius: 9999px;
    box-shadow: 0 0 10px #38BDF8, 0 0 20px rgba(56, 189, 248, 0.5);
    transition: width 300ms cubic-bezier(0.8, 0, 0.2, 1);
}

.lista-controlli-sicurezza {
    list-style: none;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.voce-controllo {
    display: flex;
    align-items: center;
    gap: 1rem;
    opacity: 0;
    transform: translateY(10px);
    transition: all 300ms cubic-bezier(0.4, 0, 0.2, 1);
}

.voce-controllo.visibile {
    opacity: 0.6;
    transform: translateY(0);
}

.voce-controllo.verificato {
    opacity: 1;
    color: #7DD3FC;
}

.voce-controllo .icona {
    width: 20px;
    height: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 200ms ease-in-out;
    flex-shrink: 0;
}

.voce-controllo.verificato .icona {
    border-color: #38BDF8;
    background: rgba(56, 189, 248, 0.1);
}

.voce-controllo .icona .material-icons {
    font-size: 14px;
    color: #38BDF8;
    transform: scale(0);
    transition: transform 200ms ease-in-out;
}

.voce-controllo.verificato .icona .material-icons {
    transform: scale(1);
}

.voce-controllo .testo {
    font-family: 'Roboto Mono', monospace;
    font-size: 0.875rem;
    color: #E2E2E6;
}

@keyframes fluttuazioneScudo {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }
}

@keyframes pulsazioneSfondo {
    from {
        background-color: #0F172A;
    }

    to {
        background-color: #1E293B;
    }
}

@keyframes rotazioneVeloce {
    to {
        transform: rotate(360deg);
    }
}