/* 
Theme Name: Hello Elementor Child
Theme URI: https://github.com/elementor/hello-theme-child/
Description: Hello Elementor Child is a child theme of Hello Elementor, created by Elementor team
Author: Elementor Team
Author URI: https://elementor.com/
Template: hello-elementor
Version: 2.0.0
Text Domain: hello-elementor-child
License: GNU General Public License v3 or later.
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Tags: flexible-header, custom-colors, custom-menu, custom-logo, editor-style, featured-images, rtl-language-support, threaded-comments, translation-ready
*/

/* Add your custom styles here */
.fx-hero-apple {
    position: relative;
    overflow: hidden;
}

/* contenuto sempre sopra */
.fx-hero-apple > .elementor-container,
.fx-hero-apple .elementor-widget-wrap,
.fx-hero-apple .e-con-inner {
    position: relative;
    z-index: 2;
}

/* overlay base fisso */
.fx-hero-apple::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.22);
    z-index: 0;
}

/* fascia scura ultra minimal */
.fx-hero-apple::before {
    content: "";
    position: absolute;
    top: 0;
    left: -120%;
    width: 90%;
    height: 100%;
    z-index: 1;
    pointer-events: none;

    background: linear-gradient(
        90deg,
        rgba(0,0,0,0) 0%,
        rgba(0,0,0,0.10) 20%,
        rgba(0,0,0,0.28) 50%,
        rgba(0,0,0,0.10) 80%,
        rgba(0,0,0,0) 100%
    );

    filter: blur(18px);
    animation: heroAppleSweep 8s ease-in-out infinite;
}

@keyframes heroAppleSweep {
    0% {
        left: -120%;
        opacity: 0;
    }
    12% {
        opacity: 1;
    }
    50% {
        left: 15%;
        opacity: 1;
    }
    85% {
        left: 70%;
        opacity: 0.7;
    }
    100% {
        left: 120%;
        opacity: 0;
    }
}