.textImageWrapper {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding-top: 4rem;
    padding-bottom: 4rem;
}

.textImage {
    display: flex;
    gap: 5rem;
    flex-wrap: wrap;
    max-width: 1370px;
    width: 100%;
}

.textImage.image-text {
    flex-direction: row-reverse;
    justify-content: space-between;
}

.textImage .left-area {
    flex: 1;
    max-width: 660px;
    width: 100%;
}

.textImage .left-area p {
    font-size: 18px;
    font-weight: 400;
    line-height: 1.5;
}

.textImage .left-area h3 {
    font-size: 40px;
    font-weight: 500;
}

.textImage .right-area {
    flex: 0 1 644px;
    text-align: center;
    position: relative;
    overflow: hidden;
    height: 489px;
}

.textImage .right-area .video-cover-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 100;
}

/* SWITCHED AREA 1 */
.textImage.image-text .right-area .video_cover_c2a {
    position: absolute;
    z-index: 100;
    right: 40px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
}

.textImage.image-text .right-area .video_cover_c2a .circle {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background-color: #2c4f9e59;
    right: -150px;
    position: relative;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.textImage.image-text .right-area.has-cover video {
    filter: grayscale(1) blur(2px);
}

.textImage.image-text:hover .right-area .video_cover_c2a .circle {
    z-index: 100;
    right: 0px;
    animation: circle-click 7s ease-in-out 1s infinite;
}

.textImage.image-text:hover .right-area .video_cover_c2a .circle .innerCircle {
    right: -5px;
    opacity: 1;
}

.textImage.image-text .right-area .video_cover_c2a .circle .innerCircle {
    width: 110px;
    height: 110px;
    background: #2c4f9e59;
    border: 5px solid #4366945e;
    opacity: 0;
    position: absolute;
    border-radius: 50%;
    z-index: -1;
    right: -80px;
    transition: all .5s ease;
}

/* SWITCHED AREA 2 */
.textImage:not(.image-text) .right-area .video_cover_c2a {
    position: absolute;
    z-index: 100;
    left: 40px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
}

.textImage:not(.image-text) .right-area .video_cover_c2a .circle {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background-color: #2c4f9e59;
    left: -150px;
    position: relative;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.textImage:not(.image-text) .right-area.has-cover video {
    filter: grayscale(1) blur(2px);
}

.textImage:not(.image-text):hover .right-area .video_cover_c2a .circle {
    z-index: 100;
    left: 0px;
    animation: circle-click 7s ease-in-out 1s infinite;
}

.textImage:not(.image-text):hover .right-area .video_cover_c2a .circle .innerCircle {
    left: -5px;
    opacity: 1;
}

.textImage:not(.image-text) .right-area .video_cover_c2a .circle .innerCircle {
    width: 110px;
    height: 110px;
    background: #2c4f9e59;
    border: 5px solid #4366945e;
    opacity: 0;
    position: absolute;
    border-radius: 50%;
    z-index: -1;
    left: -80px;
    transition: all .5s ease;
}

@keyframes circle-click {
    0% {
        transform: scale(1);

    }

    5% {
        transform: scale(0.88);

    }

    10% {
        transform: scale(1.05);

    }

    15% {
        transform: scale(1);
    }

    100% {
        transform: scale(1);

    }
}

.circle span {
    font-size: 15px;
    font-weight: 500;
    letter-spacing: -.5px;
    color: white;
}

.textImage .right-area .video_cover_c2a .circle .cursor-icon {
    position: absolute;
    opacity: 0;
    right: 10%;
    top: 50%;
    transition: all 0.3s .6s ease;
    display: none;
}

.textImage:hover .right-area .video_cover_c2a .circle .cursor-icon {
    right: 30%;
    opacity: 1;
    animation: mouse-click 7s ease-in-out 1s infinite;
}

@keyframes mouse-click {
    0% {
        transform: translateY(0) scale(1);
    }

    5% {
        transform: translateY(4px) scale(0.85);
    }

    10% {
        transform: translateY(0) scale(1);
    }

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

.textImage .right-area .video-cover-wrapper img {
    position: absolute;
    top: 0;
    left: 0;
    max-width: 100%;
    height: 100%;
    object-fit: cover;
}

.loader {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 2000;
    animation: fadeOut 1s ease-in-out forwards;
    width: 100%;
    height: 100%;
    background: #86bdf4;
    border-radius: 20px;
}

@keyframes fadeOut {
    0% {
        opacity: 1;
    }

    99% {
        opacity: 0;
    }

    100% {
        opacity: 0;
        display: none;
    }
}

.loader .spinner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    animation: rotate 1s linear infinite;
}

.loader .spinner .path {
    stroke: #134B84;
    stroke-linecap: round;
    animation: dash 1s ease-in-out infinite;
}

@keyframes rotate {
    100% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

@keyframes dash {
    0% {
        stroke-dasharray: 1, 150;
        stroke-dashoffset: 0;
    }

    50% {
        stroke-dasharray: 90, 150;
        stroke-dashoffset: -35;
    }

    100% {
        stroke-dasharray: 90, 150;
        stroke-dashoffset: -124;
    }
}


.slide-out-br {
    animation: slide-out-br 0.5s cubic-bezier(.76, .02, 1, .3) both;
}

.animazione-video {
    animation: animazione-video 1s cubic-bezier(0.600, -0.280, 0.735, 0.045) both;
}

@keyframes slide-out-br {
    0% {
        transform: translateX(0);
        opacity: 1;
    }

    100% {
        transform: translateX(-1000px);
        opacity: 0;
    }
}


@keyframes animazione-video {
    0% {
        filter: grayscale(.5) blur(2px);

    }

    100% {
        filter: grayscale(0) blur(0px);

    }
}

@media screen and (max-width: 1400px) {
    .textImage {
        padding: 20px 2rem;
    }


}

@media screen and (max-width:1200px) {
    .textImage.image-text {
        flex-direction: column;
    }

    .textImage .left-area {
        flex: 1;
        max-width: 100%;
        width: 100%;
        margin-bottom: 1rem;
    }

    .textImage .right-area img {
        max-width: 100%;
        height: auto;
    }
}

@media screen and (max-width: 991px) {
    .textImage .left-area h3 {
        font-size: 30px;
        font-weight: 500;
    }

    .textImageWrapper {
        padding-left: 10px !important;
        padding-top: 2rem;
        padding-bottom: 2rem;
    }



    .textImage {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 1rem;
        padding: 20px 20px 20px 10px;
    }

    .textImage .right-area {
        text-align: left;
        max-width: 600px;
        width: 100%;
        flex: 1;
    }



    .textImage .left-area p {
        font-size: 18px;
    }



}