
/* --- 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;
            max-height:85vh;
        }

        .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: #00247D;
            line-height: 1.1;
        }

        .banner-text p {
            font-size: 1rem;
            line-height:1.5rem;
            margin: 0 0 2rem 0;
            color: #555;
            max-width: 100%;
        }

        /* --- 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;}
            
        }


/* --- NUOVO LAYOUT: SOLO TESTO (Width 70%) --- */

.hero-banner.layout-text-only {
    min-height: 15vh; 
    background: linear-gradient(135deg, #ffffff 0%, #f4f6f9 100%);
    
    /* Centra il contenuto orizzontalmente e verticalmente */
    justify-content: center;
    align-items: center;
    text-align: center;
}

.hero-banner.layout-text-only .banner-image {
    display: none;
}

/* Qui definiamo la larghezza al 70% */
.hero-banner.layout-text-only .banner-text {
    /* Flex-basis al 70%: forza l'elemento a occupare il 70% del genitore */
    flex: 0 0 70%; 
    max-width: 70%; /* Sicurezza aggiuntiva */
    
    padding:4rem 2rem;
    align-items: center; /* Centra il pulsante nella colonna */
    margin: 0 auto; /* Centra il blocco nel caso flex fallisse */
}

/* Stili Testo */
.hero-banner.layout-text-only .banner-text h1 {
    font-size: 3.5rem; 
    font-weight: 800;  
    color: var(--rotary-blue, #00247D); 
    margin-bottom: 1.5rem;
    letter-spacing: -2px; 
}

.hero-banner.layout-text-only .banner-text p {
    font-size: 1rem;
    line-height: 1.8;
    color: #555;
    /* Rimuoviamo il max-width fisso per fargli usare tutto il 70% disponibile */
    max-width: 100%; 
    margin-bottom: 1rem;
    text-align: justify; /* Giustifica il testo */
    hyphens: auto;       /* Spezza le parole andando a capo col trattino */
    -webkit-hyphens: auto; /* Per compatibilità con Safari */
}

.hero-banner.layout-text-only .banner-text p a {
  color:#0094ff;
}


/* Pulsante */
.hero-banner.layout-text-only .cta-button {
    border-color: var(--rotary-blue, #00247D);
    color: var(--rotary-blue, #00247D);
    font-size: 1.1rem;
    padding: 18px 40px;
}

.hero-banner.layout-text-only .cta-button::before {
    background-color: var(--rotary-blue, #00247D);
}

.hero-banner.layout-text-only .cta-button:hover {
    color: white;
}

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
    /* Su mobile il 70% è troppo stretto, lo portiamo al 90% o 95% */
    .hero-banner.layout-text-only .banner-text {
        flex: 0 0 90%;
        max-width: 90%;
        padding: 40px 10px;
    }
    
    .hero-banner.layout-text-only .banner-text h1 {
        font-size: 2.5rem;
    }
}

/* --- ICONA SOPRA IL TITOLO --- */
.hero-banner.layout-text-only .banner-icon {
    /*display: block;           La costringe a stare su una riga da sola */
    /*margin: 0 auto 1.5rem;    Centrata orizzontalmente + Margine sotto di 1.5rem */
    max-height: 100px;       /* ALTEZZA MASSIMA: Regola questo valore se la vuoi più piccola/grande */
    width: auto;             /* Mantiene le proporzioni */
    object-fit: contain;     /* Assicura che non venga tagliata */
    border-radius:5px;
    /* Opzionale: Se vuoi che appaia con una leggera animazione */
    opacity: 0.9;
}

/* Su mobile la rimpiccioliamo un po' */
@media (max-width: 768px) {
    .hero-banner.layout-text-only .banner-icon {
        max-height: 70px;    /* Più piccola su smartphone */
        margin-bottom: 1rem;
    }
}
/* ==========================================================================
   SEZIONE INFO CARDS (4 per riga)
   ========================================================================== */

.info-cards-section {
    padding: 80px 0;
    background-color: #fcfcfc;
}

/* GRIGLIA 4 COLONNE */
.info-cards-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); 
    gap: 30px;
    margin-top: 40px;
}

/* --- STRUTTURA CARD --- */
.info-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
    border: 1px solid rgba(0,0,0,0.03);
}

/* Effetto Float Up all'hover */
.info-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 36, 125, 0.15);
    border-color: rgba(0, 36, 125, 0.1);
}

/* --- IMMAGINE --- */
.info-card-image {
    width: 100%;
    height: 220px;
    position: relative;
    overflow: hidden;
}

.info-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Zoom immagine all'hover */
.info-card:hover .info-card-image img {
    transform: scale(1.1);
}

/* Overlay blu sull'immagine */
.info-card-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 36, 125, 0.4);
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.info-card-overlay i {
    color: #fff;
    font-size: 2rem;
    transform: scale(0);
    transition: transform 0.3s ease;
}

.info-card:hover .info-card-overlay { opacity: 1; }
.info-card:hover .info-card-overlay i { transform: scale(1); }


/* --- CONTENUTO TESTUALE --- */
.info-card-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    text-align: center;
}

/* TITOLO (Montserrat) */
.info-card-content h3 {
    font-family: 'Montserrat', sans-serif !important;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--rotary-blue);
    margin-bottom: 10px;
    transition: color 0.3s ease;
    line-height: 1.3;
}

.info-card:hover .info-card-content h3 {
    color: var(--rotary-gold);
}

/* SOTTOTITOLO */
.card-desc {
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
}

/* TESTO */
.card-text {
    font-family: 'Open Sans', sans-serif;
    font-size: 0.95rem;
    color: #555;
    line-height: 1.6;
    margin-bottom: 30px;
    flex-grow: 1; 
}

/* --- BOTTONE CTA (Stile Pillola) --- */
.read-more-btn {
    display: inline-block;
    background-color: var(--rotary-blue);
    color: #fff;
    padding: 12px 30px;
    border-radius: 50px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-decoration: none;
    transition: all 0.3s ease;
    align-self: center;
    box-shadow: 0 4px 10px rgba(0, 36, 125, 0.2);
    border: 2px solid var(--rotary-blue);
}

.read-more-btn:hover {
    background-color: var(--rotary-gold);
    border-color: var(--rotary-gold);
    color: var(--rotary-blue);
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(247, 168, 27, 0.4);
}

/* --- RESPONSIVE --- */
@media (max-width: 1200px) {
    .info-cards-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 900px) {
    .info-cards-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
    .info-cards-grid { grid-template-columns: 1fr; gap: 40px; }
    .info-card-image { height: 200px; }
}