

.hero-servizi {
    display: flex;
    justify-content: center;
    background: #ffffff;
    color: black;
    align-items: center;
    position: relative;
    overflow: hidden;
    margin-top: 40px;
    padding: 40px 10px 10px 10px;
    gap: 10px;
}

.hero-text {
    flex: 1;
    max-width: 600px;
    justify-content: center;
    position: relative;
    margin-left: 30px;

}

.hero-text h1 {
    font-size: 2rem;
    text-align: left;
    font-weight: bold;
    margin-bottom: 30px;
}

.hero-text h1 .highlight1 {
    color: #00296B;
    font-size: 2.5rem;
}

.hero-text h2 {
    font-size: 1rem;
    text-align: left;
}

.hero-img img {
    max-width: 500px;
    max-width: 450px;
}


@media screen and (max-width: 480px) {
  .hero-servizi {
    flex-direction: column;
    justify-content: center;
    text-align: center;
    margin-top: 40px;
  }

  .hero-img img {
    width: 80%;
    height: auto;
    margin: 0 auto;
  }

  .hero-text {
    order: 1;
    margin-left: 0;
    padding: 20px;
  }
}


/*Banner*/
.banner-call {
    margin-top: 80px;
    max-width: 100px;
    padding: 15px 15px;
    background: rgb(51, 107, 238);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-radius: 40px;
    padding: 2rem;
    max-width: 1200px;
    margin: 3rem auto;
    color: #ffffff;
    margin: 10 10;

}

.banner-call h1 {
    font-size: 2.5rem;
    padding: 10px 10px;
    font-weight: 700;
    text-align: center;
    text-align: left;
    line-height: 1.2;
    margin: 0;


}


.btn-banner-call {
    text-decoration: none;
    display: inline-flex;
    justify-content: center;
    letter-spacing: 0.5px;
    font-weight: bold;
    font-size: 1.2rem;
    color: #ffffff;
    background-color: var(--primary-blue);
    border: 2px solid black;
    border-radius: 35px;
    padding: 10px 10px 10px 10px;
    text-align: center;
    cursor: pointer;
    align-items: center;
    width: 280px;
    height: 60px;
    margin-bottom: 10px;
}

.banner-call .banner-text {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    flex: 1;
}

.banner-img img {
    max-width: 100%;
    width: 350px;
    height: auto;
}

/*Responsive Banner*/
@media (max-width: 480px){
    .banner-call {
        flex-direction: column-reverse;
        align-items: center;
        padding: 1rem;
    }
    .banner-call .banner-text {
        align-items: center;
        text-align: center;
    }

    .banner-call .banner-img {
        margin-bottom: 1rem;
    }

    .banner-img img {
        width: 80%;
        max-height: none;
    }

    .btn-banner-call {
        width: 100%;
        max-width: none;
        margin-top: 1rem;
    }
}

/*I nostri Servizi*/
.services {
    width: 100%;
    max-width: 1300px;
    padding: 8% 20px;
    margin: 10 10;
    overflow-x: hidden;
}

.services h1 {
    text-align: center;
    font-size: 36px;
    margin-top: 50px 0;
    margin-bottom: 15px;
    position: relative;
    font-weight: 600;
}

.services h1::after{
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;

    transform: translateX(-50%);
    width: 250px;
    height: 3px;
    background-color: #00296B;
}

.cards {
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    gap: 20px;
    overflow-x: hidden;
}

.card {
    width: 250px;
    min-height: 320px;
    display: flex;
    justify-content: flex-start;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    margin-top: 20px;
    margin-bottom: 20px;
    background-color: #ffffff;
    color: rgb(0, 0, 0);
    padding: 40px 12px;
    text-align: left;
    border-radius: 30px;
    cursor: pointer;
}

.card h2 {
    margin-top: 0;
    margin-bottom: 10px;
    color: #00296B;
    line-height: 1.2em;
    min-height: 2.4em;
}

.card p {
    margin: 0;
}

.card .button-services {
    margin-top: 40px;
    align-self: flex-start;
    padding: 10px 20px;
    background-color: #FFD500;
    color: white;
    font-weight: bold;
    text-align: center;
    text-decoration: none;
    border-radius: 20px;
    display: inline-block;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.card .button-services:hover {
    background-color: #00296B;
    cursor: pointer;
}

.card img {
    width: 80px;
    height: 80px;
    margin-bottom: 15px;
    display: block;
    margin-right: auto;
    justify-content: left;
}

/* Responsive card*/

@media screen and (max-width:480px){
    
    .services {
        padding: 40px 15px;
        gap: 30px;
    }
    }
    .cards {
        flex-direction: column;
        align-items: center;
        max-width: 200px;
    }
    
    .card {
        width: 100%;
        max-width: 350px;
    }

    .card p {
        padding-top: 8px;
    }
}