﻿/* Schermi grandi o ad alta risoluzione */
@media screen and (min-width: 1690px) {
    .back-loader {
        display: none;
        position: fixed;
        z-index: 99999;
        left: 0;
        top: 0;
        width: 100%;
        height: 100%;
        overflow: hidden;
        background-color: var(--colorPopUpBack);
        backdrop-filter: blur(10px);
    }

    .loader-body {
        height: max-content;
        width: max-content;
        display: flex;
        flex-direction: column;
        gap: 1rem;
        align-items: center;
        justify-content: center;
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
    }

        .loader-body span {
            font-family: var(--fuente);
            color: var(--colorWhite);
            font-size: 1rem;
        }


    .lds-ripple,
    .lds-ripple div {
        box-sizing: border-box;
    }

    .lds-ripple {
        display: inline-block;
        position: relative;
        width: 10rem;
        height: 10rem;
    }

        .lds-ripple div {
            position: absolute;
            border: 0.2rem solid var(--color3);
            opacity: 1;
            border-radius: 50%;
            animation: lds-ripple 1s cubic-bezier(0, 0.2, 0.8, 1) infinite;
        }

            .lds-ripple div:nth-child(2) {
                animation-delay: -0.5s;
            }

    @keyframes lds-ripple {
        0% {
            top: 4.5rem;
            left: 4.5rem;
            width: 1rem;
            height: 1rem;
            opacity: 0;
        }

        4.9% {
            top: 4.5rem;
            left: 4.5rem;
            width: 1rem;
            height: 1rem;
            opacity: 0;
        }

        5% {
            top: 4.5rem;
            left: 4.5rem;
            width: 1rem;
            height: 1rem;
            opacity: 1;
        }

        100% {
            top: 0;
            left: 0;
            width: 10rem;
            height: 10rem;
            opacity: 0;
        }
    }

}

/* Schermi Desktop o Portatili */
@media screen and (min-width: 1280px) and (max-width: 1689px) {
    .back-loader {
        display: none;
        position: fixed;
        z-index: 99999;
        left: 0;
        top: 0;
        width: 100%;
        height: 100%;
        overflow: hidden;
        background-color: var(--colorPopUpBack);
        backdrop-filter: blur(10px);
    }

    .loader-body {
        height: max-content;
        width: max-content;
        display: flex;
        flex-direction: column;
        gap: 1rem;
        align-items: center;
        justify-content: center;
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
    }

        .loader-body span {
            font-family: var(--fuente);
            color: var(--colorWhite);
            font-size: 1rem;
        }


    .lds-ripple,
    .lds-ripple div {
        box-sizing: border-box;
    }

    .lds-ripple {
        display: inline-block;
        position: relative;
        width: 10rem;
        height: 10rem;
    }

        .lds-ripple div {
            position: absolute;
            border: 0.2rem solid var(--color3);
            opacity: 1;
            border-radius: 50%;
            animation: lds-ripple 1s cubic-bezier(0, 0.2, 0.8, 1) infinite;
        }

            .lds-ripple div:nth-child(2) {
                animation-delay: -0.5s;
            }

    @keyframes lds-ripple {
        0% {
            top: 4.5rem;
            left: 4.5rem;
            width: 1rem;
            height: 1rem;
            opacity: 0;
        }

        4.9% {
            top: 4.5rem;
            left: 4.5rem;
            width: 1rem;
            height: 1rem;
            opacity: 0;
        }

        5% {
            top: 4.5rem;
            left: 4.5rem;
            width: 1rem;
            height: 1rem;
            opacity: 1;
        }

        100% {
            top: 0;
            left: 0;
            width: 10rem;
            height: 10rem;
            opacity: 0;
        }
    }

}

/* Tablet in modalità horizontal */
@media screen and (min-width: 737px) and (max-width: 1279px) {
    .back-loader {
        display: none;
        position: fixed;
        z-index: 99999;
        left: 0;
        top: 0;
        width: 100%;
        height: 100%;
        overflow: hidden;
        background-color: var(--colorPopUpBack);
        backdrop-filter: blur(10px);
    }

    .loader-body {
        height: 18rem;
        width: 16rem;
        display: flex;
        flex-direction: column;
        gap: 1rem;
        align-items: center;
        justify-content: center;
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        text-align: center;
    }

        .loader-body span {
            font-family: var(--fuente);
            color: var(--colorWhite);
            font-size: 1rem;
        }


    .lds-ripple,
    .lds-ripple div {
        box-sizing: border-box;
    }

    .lds-ripple {
        display: inline-block;
        position: relative;
        width: 10rem;
        height: 10rem;
    }

        .lds-ripple div {
            position: absolute;
            border: 0.2rem solid var(--color3);
            opacity: 1;
            border-radius: 50%;
            animation: lds-ripple 1s cubic-bezier(0, 0.2, 0.8, 1) infinite;
        }

            .lds-ripple div:nth-child(2) {
                animation-delay: -0.5s;
            }

    @keyframes lds-ripple {
        0% {
            top: 4.5rem;
            left: 4.5rem;
            width: 1rem;
            height: 1rem;
            opacity: 0;
        }

        4.9% {
            top: 4.5rem;
            left: 4.5rem;
            width: 1rem;
            height: 1rem;
            opacity: 0;
        }

        5% {
            top: 4.5rem;
            left: 4.5rem;
            width: 1rem;
            height: 1rem;
            opacity: 1;
        }

        100% {
            top: 0;
            left: 0;
            width: 10rem;
            height: 10rem;
            opacity: 0;
        }
    }

}

/* Tablet in modalità verticale */
@media screen and (min-width: 481px) and (max-width: 736px) {
    .back-loader {
        display: none;
        position: fixed;
        z-index: 99999;
        left: 0;
        top: 0;
        width: 100%;
        height: 100%;
        overflow: hidden;
        background-color: var(--colorPopUpBack);
        backdrop-filter: blur(10px);
    }

    .loader-body {
        height: 18rem;
        width: 16rem;
        display: flex;
        flex-direction: column;
        gap: 1rem;
        align-items: center;
        justify-content: center;
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        text-align: center;
    }

        .loader-body span {
            font-family: var(--fuente);
            color: var(--colorWhite);
            font-size: 1rem;
        }


    .lds-ripple,
    .lds-ripple div {
        box-sizing: border-box;
    }

    .lds-ripple {
        display: inline-block;
        position: relative;
        width: 10rem;
        height: 10rem;
    }

        .lds-ripple div {
            position: absolute;
            border: 0.2rem solid var(--color3);
            opacity: 1;
            border-radius: 50%;
            animation: lds-ripple 1s cubic-bezier(0, 0.2, 0.8, 1) infinite;
        }

            .lds-ripple div:nth-child(2) {
                animation-delay: -0.5s;
            }

    @keyframes lds-ripple {
        0% {
            top: 4.5rem;
            left: 4.5rem;
            width: 1rem;
            height: 1rem;
            opacity: 0;
        }

        4.9% {
            top: 4.5rem;
            left: 4.5rem;
            width: 1rem;
            height: 1rem;
            opacity: 0;
        }

        5% {
            top: 4.5rem;
            left: 4.5rem;
            width: 1rem;
            height: 1rem;
            opacity: 1;
        }

        100% {
            top: 0;
            left: 0;
            width: 10rem;
            height: 10rem;
            opacity: 0;
        }
    }

}

/* Smartphone o piccoli Tablet */
@media screen and (max-width: 480px) {
    .back-loader {
        display: none;
        position: fixed;
        z-index: 99999;
        left: 0;
        top: 0;
        width: 100%;
        height: 100%;
        overflow: hidden;
        background-color: var(--colorPopUpBack);
        backdrop-filter: blur(10px);
    }

    .loader-body {
        height: 18rem;
        width: 16rem;
        display: flex;
        flex-direction: column;
        gap: 1rem;
        align-items: center;
        justify-content: center;
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        text-align: center;
    }

        .loader-body span {
            font-family: var(--fuente);
            color: var(--colorWhite);
            font-size: 0.9rem;
        }


    .lds-ripple,
    .lds-ripple div {
        box-sizing: border-box;
    }

    .lds-ripple {
        display: inline-block;
        position: relative;
        width: 10rem;
        height: 10rem;
    }

        .lds-ripple div {
            position: absolute;
            border: 0.2rem solid var(--color3);
            opacity: 1;
            border-radius: 50%;
            animation: lds-ripple 1s cubic-bezier(0, 0.2, 0.8, 1) infinite;
        }

            .lds-ripple div:nth-child(2) {
                animation-delay: -0.5s;
            }

    @keyframes lds-ripple {
        0% {
            top: 4.5rem;
            left: 4.5rem;
            width: 1rem;
            height: 1rem;
            opacity: 0;
        }

        4.9% {
            top: 4.5rem;
            left: 4.5rem;
            width: 1rem;
            height: 1rem;
            opacity: 0;
        }

        5% {
            top: 4.5rem;
            left: 4.5rem;
            width: 1rem;
            height: 1rem;
            opacity: 1;
        }

        100% {
            top: 0;
            left: 0;
            width: 10rem;
            height: 10rem;
            opacity: 0;
        }
    }

}


   