
#team .row {
    display: flex;
    flex-wrap: wrap;
}

#team [class*="col-"] {
    display: flex;
}

#team .team-member {
    display: flex;
    flex-direction: column;
    width: 100%;
    background: #fff;
    margin-bottom: 40px; 
    padding-bottom: 10px;
}

/* 2. Titoli (Desktop) */
#team .member-info h3 {
    font-size: 20px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    min-height: 45px !important; 
    margin: 15px 0 !important;
    display: flex;
    align-items: flex-start;
}

/* 3. Testi e Link (Desktop) */
#team .member-info {
    display: flex;
    flex-direction: column;
    flex: 1;
}

#team .member-info p {
    font-size: 20px !important;
    line-height: 1.4 !important;
    margin-bottom: 20px !important;
    flex-grow: 1;
}

#team .member-info a {
    font-size: 20px !important;
    font-weight: bold !important;
    color: #a5c533 !important;
    margin-top: auto;
    display: inline-block;
}

/* --- VERSIONE MOBILE (Smartphone) --- */
@media (max-width: 767px) {
    #team .row {
        display: block; 
    }

    #team .team-member {
        margin-bottom: 50px; 
        min-height: auto !important; /
    }

    #team .member-info h3 {
        min-height: auto !important; 
        font-size: 22px !important; 
        margin-bottom: 10px !important;
    }

    #team .member-info p {
        font-size: 16px !important; 
        margin-bottom: 15px !important;
    }
    
    #team .member-image img {
        margin-top: 10px !important;
    }
}

