
/* Homepage first row animation */
/* ---------------------------- */

/* immagine di sfondo nascosta */
#homepage--first-row .l-section-img,
#homepage--first-row .wpb_text_column,
#homepage--first-row .logo-blended {
    opacity: 0 !important;
    transition: opacity 1.2s ease-in-out !important;
}

#homepage--first-row.video-ended .l-section-img,
#homepage--first-row.video-ended .wpb_text_column,
#homepage--first-row.video-ended .logo-blended {
    opacity: 1 !important;
}


#homepage--first-row .l-section-video video {
    transition: opacity 1.2s ease-in-out !important;
    opacity: 1 !important;
}

#homepage--first-row .l-section-video video.video-complete {
    opacity: 0 !important;
}






/* Animated cross single image */
/* --------------------------- */

@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.animated-cross-angled::after {
    content: "";
    background-image: url("/wp-content/uploads/2026/06/button_logo.svg");
    background-repeat: no-repeat;
    background-size: contain;

    mix-blend-mode: exclusion;

    position: absolute;
    top: -4em;
    right: 0;
    left: auto;
    
    z-index: 100;
    width: 12em;
    height: 12em;

    transform-origin: center;
    animation: rotate 12s linear infinite;
}


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


.animated-cross-centered::after {
    content: "";
    background-image: url("/wp-content/uploads/2026/06/button_logo.svg");
    background-repeat: no-repeat;
    background-size: contain;

    mix-blend-mode: exclusion;

    position: absolute;
    top: 50%;
    left: 50%;
    right: auto;
    
    z-index: 100;
    width: 12em;
    height: 12em;

    transform-origin: center;
    animation: rotate-centered 12s linear infinite;
}



@media (max-width: 769px) {
    
    .animated-cross-angled::after {
        top: 10em;
        width: 8em;
        height: 8em;
    }

    .animated-cross-centered::after {
        width: 8em;
        height: 8em;
    }
}



@media (max-width: 426px) {
    
    .animated-cross-angled::after {
        top: -3em;
        left: 0;
        right: auto;
    }
}

