/* Styles for the preloader */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #F2F3FA; /* transparent Rimuove lo sfondo */
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    transition: opacity 0.5s ease-out;
    will-change: opacity;
}

.preloader-inner {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.spinner {
    position: absolute;
  /*  border: 8px solid rgba(0, 0, 0, 0.0);   Default spinner border */
    border-top: 8px solid #1591DF; /* Default spinner color */
    border-radius: 50%;
    animation: spin infinite linear;
    animation-delay: 0s; /* Assicurati che non ci sia un ritardo */
    will-change: transform;
}

.spinner.large {
    width: 140px;
    height: 140px;
    animation-duration: 1.5s;
}

.spinner.medium {
    width: 120px;
    height: 120px;
    animation-duration: 1s;
}

.spinner.small {
    width: 100px;
    height: 100px;
    animation-duration: 0.75s;
}

.preloader-logo {
    width: 60px;
    height: auto;
    position: relative;
    will-change: transform;
}

/* Spinner animation */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Fade-out animation */
body.loaded #preloader {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease-out;
}

/* Mobile adjustments */
@media only screen and (max-width: 768px) {

.preloader-logo {
    width: 60px;
    height: auto;

}

    .spinner.large {
        width: 130px;
        height: 130px;
    }
    .spinner.medium {
        width: 110px;
        height: 110px;
    }
    .spinner.small {
        width: 90px;
        height: 90px;
    }
}

/* Progress bar styles */
#progress-container {
    position: absolute;
    bottom: 10%;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    height: 6px;
    background: #ddd; 
    border-radius: 23px;
    overflow: hidden;
}

#progress-bar {
    width: 0%;
    height: 100%;
    background: #1591DF;
    transition: width 0.1s linear;
}
