
/* --- STILE DEL BANNER --- ----------------------------------------------------------------------------------------------------------------------------*/

        .hero-banner {
            display: flex;
            min-height: 85vh;
            background-color: #f8f9fa;
            overflow: hidden;
            position: relative;
           
        }

        .banner-image {
            flex: 1;
            position: relative;
            overflow: hidden;
        }

        .banner-image img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            /* L'immagine č giā in scala 1.1. L'animazione la riporta a 1, creando un lento zoom out */
            transform: scale(1.1);
            transition: transform 8s ease-out;
        }
        
        /* Quando il banner č visibile, parte l'animazione di zoom lento */
        .hero-banner.is-visible .banner-image img {
            transform: scale(1);
        }

        .banner-text {
            flex: 1;
            display: flex;
            flex-direction: column;
            justify-content: center;
            padding: 5rem 7rem;
            box-sizing: border-box;
        }

        /* Animazione per gli elementi di testo (fade-in + slide-up) */
        .banner-text-item {
            opacity: 1;
            transform: translateY(30px);
            transition: opacity 0.6s ease-out, transform 0.6s ease-out;
        }

        .hero-banner.is-visible .banner-text-item {
            opacity: 1;
            transform: translateY(0);
        }

        .hero-banner.is-visible h1 { transition-delay: 0.2s; }
        .hero-banner.is-visible p { transition-delay: 0.4s; }
        .hero-banner.is-visible .cta-button { transition-delay: 0.6s; }

        .banner-text h1 {
            font-size: 3.5rem;
            margin: 0 0 1rem 0;
            color: #1a1a1a;
            line-height: 1.1;
        }

        .banner-text p {
            font-size: 1.2rem;
            margin: 0 0 2rem 0;
            color: #555;
            max-width: 500px;
        }

        /* --- NOVITĀ: Stile del pulsante con effetto di riempimento --- */
        .cta-button {
            /* Preparazione per il pseudo-elemento */
            position: relative;
            overflow: hidden;
            z-index: 1;

            display: inline-block;
            padding: 15px 30px;
            border: 2px solid #007bff; /* Bordo del colore primario */
            border-radius: 5px;
            
            background-color: transparent; /* Sfondo iniziale trasparente */
            color: #007bff; /* Colore del testo iniziale */
            
            text-decoration: none;
            font-weight: bold;
            align-self: flex-start;
            
            /* Transizioni per il colore del testo e il transform */
            transition: color 0.4s ease-in-out, transform 0.2s ease;
        }

        /* Il pseudo-elemento ::before sarā il nostro sfondo colorato */
        .cta-button::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: #007bff;
            
            /* Inizia fuori dal pulsante, a sinistra */
            transform: translateX(-100%);
            transition: transform 0.4s ease-in-out;
            
            /* Sta dietro al testo del pulsante */
            z-index: -1;
        }

        /* Al passaggio del mouse... */
        .cta-button:hover {
            color: white; /* Il testo diventa bianco */
            /* transform: translateY(-2px); Un leggero sollevamento */
        }
        
        /* ...il nostro sfondo ::before entra in posizione */
        .cta-button:hover::before {
            transform: translateX(0);
        }
        /* --- Fine novitā --- */


        /* --- OPZIONI DI LAYOUT (invariate) --- */
        .hero-banner.layout-image-right {
            flex-direction: row-reverse;
        }
        .hero-banner.layout-overlay .banner-image {
            position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 1;
        }
        .hero-banner.layout-overlay .banner-image::after {
            content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
            background: rgba(0, 0, 0, 0.4); 
        }
        .hero-banner.layout-overlay .banner-text {
            position: relative; z-index: 2; color: white; align-items: center; text-align: center;
        }
        .hero-banner.layout-overlay .banner-text h1,
        .hero-banner.layout-overlay .banner-text p {
            color: white; text-shadow: 2px 2px 8px rgba(0,0,0,0.7); max-width: 700px;
        }
        .hero-banner.layout-overlay .cta-button {
            align-self: center; border-color: white; color: white;
        }
        .hero-banner.layout-overlay .cta-button::before { background-color: white; }
        .hero-banner.layout-overlay .cta-button:hover { color: #007bff; }

        /* --- RESPONSIVE DESIGN (invariato) --- */
        @media (max-width: 768px) {
            .hero-banner, .hero-banner.layout-image-right { flex-direction: column; min-height: 80vh; }
            .banner-image { height: 300px; }
            .banner-text { padding: 2rem; text-align: center; }
            .banner-text h1 { font-size: 2.5rem; }
            .cta-button, .hero-banner.layout-overlay .cta-button { align-self: center; margin-bottom:50px;}
            
        }