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: 450px;
}

.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.history{
    width: 95%;
    max-width: 1100px;
    height: fit-content;
    margin-top: 50px;
    display: flex;
    flex-direction: column;
    gap: 100px;
    padding-bottom: 100px;
}

.person-card{
    width: 100%;
    height: fit-content;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    gap: 40px;
}

.person-card .start{
    width: fit-content;
    height: fit-content;
    display: flex;
    justify-content: center;
    align-items: center;
}

.person-card .image{
    width: 350px;
    height: auto;
}


.person-card .end{
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.person-card .title{
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 20px;
}

.person-card .yellow-text,
.person-card .black-text{
    font-size: 30px;
    padding: 10px 17px;
    font-weight: 600;
}

.person-card .desc{
    font-size: 20px;
}

.timeline {
    width: 100%;
    height: fit-content;
    display: flex;
    flex-direction: column;
}

.timeline .part{
    width: 100%;
    height: 250px;
    display: flex;
    flex-direction: row;
}

.timeline .part .line{
    width: 7px;
    height: 100%;
    background-color: black;
    margin-inline: 30px;
    position: relative;
}

.timeline .part .line::before {
    position: absolute;
    content: '';
    top: 45px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--second-color);
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.timeline .part .card{
    display: flex;
    flex-direction: column;
    flex: 1;
    height: fit-content;
    border: 3px solid var(--second-color);
    margin-top: 20px;
    padding: 20px;
    border-radius: 10px;
    gap: 10px;
}

.timeline .title{
    width: fit-content;
    font-size: 21px;
    padding: 8px 18px; 
    font-weight: 600;   
}

.timeline .desc{
    color: rgb(59, 59, 59);
    font-size: 19px;
}

.timeline .part:first-child .line{
    border-radius: 10px 10px 0px 0px;
}


.timeline .part:last-child .line{
    border-radius: 0px 0px 10px 10px;
}

.mission{
    width: 100%;
    height: fit-content;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.mission .title{
    width: fit-content;
    font-size: 30px;
    padding: 10px 17px;
    font-weight: 600;
}

.mission .quote{
    display: flex;
    flex-direction: row;
    gap: 20px;
    height:fit-content;
    align-items: stretch;
    border-left: 10px solid rgba(255, 222, 89, 0.47);
}

.mission .quote .line{
    height: 100%;
    width: 15px;
    background-color: rgba(255, 222, 89, 0.47);
}

.mission .quote .text{
    font-size:18px;
    font-weight: 500;
}

.separator{
    display: block;
    margin: 0 auto;
    width: calc(100% - 40px);
    height: 5px;
    background-color: rgba(0, 0, 0, 0.062);
}

@media screen and (max-width: 824px) {
    .person-card .image {
        width: 300px;
        height: auto;
    }


    .timeline .part {
        height: 300px;
    }

}

@media screen and (max-width: 765px) {
    .person-card .image {
        width: 250px;
        height: auto;
    }

    .person-card .yellow-text, .person-card .black-text {
        font-size: 25px;
        padding: 10px 15px;
        font-weight: 600;
    }

    .person-card .desc {
        font-size: 18px;
    }


}

@media screen and (max-width: 660px) {
    .person-card {
        flex-direction: column;
        gap: 0px;
    }


    .person-card .start{
        width: 100%;
        height: fit-content;
    }

    .person-card .end{
        width: 100%;
        height: fit-content;
        display: flex;
        align-items: center;
    }

    .person-card .title {
        gap: 0;
    }

    .person-card .image {
        width: 298px;
    }

    .person-card .desc {
        width: calc(100% - 40px);
    }


    .timeline .part {
        height: 350px;
    }

    section.history {
        align-items: center;
    }

    .mission {
        width: calc(100% - 40px);
    }
}

@media screen and (max-width: 540px) {
    .timeline .part {
        height: 400px;
    }
}

@media screen and (max-width: 490px) {
    .timeline .part {
        height: 520px;
    }
}