/* Widget locale e indipendente dai CAPTCHA degli altri moduli. */
.slider-captcha {
    width: 100%; max-width: 100%; box-sizing: border-box; padding: 12px;
    border: 1px solid #ccdcea; border-radius: 10px;
    background: linear-gradient(145deg, #fafcff, #f1f6fb);
    box-shadow: 0 2px 6px rgba(0, 61, 107, .05);
}
.slider-captcha-status { color: #365c7d; font-size: .95rem; line-height: 1.45; margin-bottom: 9px; }
.slider-captcha-track {
    height: 44px; position: relative; border-radius: 24px;
    background: #e4edf6; box-shadow: inset 0 1px 3px rgba(0, 61, 107, .07);
}
.slider-captcha-target, .slider-captcha-handle {
    position: absolute; top: 4px; width: 36px; height: 36px; border-radius: 50%; pointer-events: none;
}
.slider-captcha-target { border: 2px dashed #7197b9; background: rgba(255, 255, 255, .6); }
.slider-captcha-handle {
    left: 0; display: flex; align-items: center; justify-content: center;
    background: var(--portal-primary, #005b9f); color: #fff;
    box-shadow: 0 2px 5px rgba(0, 61, 107, .22);
}
.slider-captcha-handle svg { display: block; flex: 0 0 auto; width: 20px; height: 20px; }
.slider-captcha-range {
    position: absolute; inset: 0; width: 100%; height: 44px; margin: 0; padding: 0;
    opacity: 0; cursor: grab; appearance: none; -webkit-appearance: none; background: transparent;
}
.slider-captcha-range::-webkit-slider-thumb {
    width: 36px; height: 36px; appearance: none; -webkit-appearance: none;
}
.slider-captcha-range::-moz-range-thumb { width: 36px; height: 36px; border: 0; }
.slider-captcha-range:active { cursor: grabbing; }
/* Il trascinamento non mostra cornici; il focus da tastiera resta visibile. */
.slider-captcha-range:focus-visible { opacity: 1; outline: 2px solid #006fc6; outline-offset: 3px; border-radius: 24px; }
@supports selector(:has(*)) {
    .slider-captcha-range:focus-visible { opacity: 0; }
    .slider-captcha-track:has(.slider-captcha-range:focus-visible) { outline: 2px solid #006fc6; outline-offset: 3px; }
}
.slider-captcha.is-aligned .slider-captcha-handle { background: #28764b; }
.slider-captcha.is-aligned .slider-captcha-status { color: #24683f; }
@media (prefers-reduced-motion: no-preference) {
    .slider-captcha-handle { transition: background-color .15s; }
}
