body{
    background-color: var(--bg-color) !important;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.header{
    width: 100%;
    height: 40vh;
    min-height: 300px;
    background-color: black;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;

    background-image: url(../assets/img/header_servizi_bg.png);
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    gap: 20px;
}

.header .title,
.header .subtitle{
    color: var(--bg-color);
    text-align: center;
    text-shadow: 0px 0px 10px rgba(255, 255, 255, 0.219);
}

.header .title {
    font-weight: 600;
    font-size: 40px;
}

.header .subtitle{
    font-weight: 500;
    font-size: 20px;
    width: 90%;
    max-width: 600px;
}

.header .line{
    width: 100px;
    height: 5px;
    border-radius: 10px;
    background-color: var(--bg-color);
    box-shadow: 0px 0px 10px 3px rgba(255, 255, 255, 0.158);
}


section.services{
    width: 95%;
    max-width: 1100px;
    height: fit-content;
    margin-top: 50px;

    display: flex;
    flex-direction: column;
    gap: 100px;

    padding-bottom: 100px;
}


.services .card{
    width: 100%;
    height: 300px;

    display: flex;
    flex-direction: row;
    justify-content: space-between;
    position: relative;
}


.services .card-start,
.services .card-end{
    flex: 1;
    height: 100%;
}

.services .card-start{
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.services  .card .line {
    width: 120px;
    height: 8px;
    border-radius: 9px;
    background-color: var(--first-color);
}

.services .card .title{
    font-weight: 600;
    font-size: 27px;
    max-width: 300px;
}
.services .card .desc{
    font-weight: 400;
    font-size: 18px;
}

.services .card .button{
    height: 50px;
    font-size: 18px;
    border: none;
    background-color: var(--first-color);
    color: var(--second-color);
    border-radius: 10px;
    opacity: 0.6;
    cursor:not-allowed;
}



.services .card .card-end{
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-direction: row;
}

.services .card:nth-child(2n) .card-end {
    justify-content: flex-start;
}
.services .card .card-end img{
   width: calc(100% - 100px);
    height: 100%;
    object-fit: cover;
    border-radius: 30px;
}

.services .card:not(:first-child)::before{
    position: absolute;
    content: '';
    width: 100%;
    height: 4px;
    background-color: rgba(0, 0, 0, 0.04);
    top:-50px; 
    left: 0;
}
.services .card:nth-child(2n) {
    flex-direction: row-reverse;
}



@media screen and (max-width: 900px) {

    .services .card:not(:first-child)::before{
        display: none;
    }

    .services .card:nth-child(2n) .card-end {
        justify-content: flex-end;
    }

    .services .card:nth-child(2n) {
    flex-direction: column-reverse;
    }

    section.services {
        flex-direction: unset;
        flex-wrap: wrap;
        justify-content: space-around;
        gap: 50px;
        column-gap: 25px;
    }
    .services .card {
        flex-direction: column-reverse;
        height: fit-content;
        width: 320px;
        gap: 20px;
    }

   

    .services .card .card-start{
        height: fit-content;
        gap: 20px;
    }

    .services .card .title {
        font-size: 22px;
    }

    .services .card .desc {
        font-size: 16px;
    }

    .services .card .button {
        font-size: 16px;
        height: 45px;
    }

    

    .services .card .card-end img{
        width: 100%;
        height: 200px;
    }
}

@media screen and (max-width: 720px) {
    section.services{
        gap: 60px;
    }

    .services .card{
        width: 92%;
    }
}


@media screen and (max-width: 500px) {
    .header .title{
        font-size: 35px;
    }

    .header .subtitle{
        font-size: 15px;
    }

}
