/* R4Software - preloader pubblico e anteprima Branding */
.r4-site-preloader {
    position: fixed;
    inset: 0;
    z-index: 2147483000;
    background: #f7fbff;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .22s ease, visibility .22s ease;
}
html.r4-preloader-js:not(.r4-preloader-done) .r4-site-preloader {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}
.r4-site-preloader__graphic {
    position: relative;
    width: 120px;
    height: 120px;
    flex: 0 0 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.r4-site-preloader__image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    animation: r4-site-preloader-spin var(--r4-preloader-duration, 1s) linear infinite;
}
.r4-site-preloader__label {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%) scale(2.4);
    font: 700 4px/1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    letter-spacing: .1px;
    white-space: nowrap;
    color: #087cc6;
    pointer-events: none;
}
.r4-preloader-preview {
    min-height: 150px;
    border: 1px dashed #cbd5e1;
    background: #f7fbff;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}
@keyframes r4-site-preloader-spin {
    to { transform: rotate(360deg); }
}
@media (prefers-reduced-motion: reduce) {
    .r4-site-preloader__image { animation: none; }
    .r4-site-preloader { transition: none; }
}
