* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Poppins", sans-serif;
}

.banner-portfolio {
    background-image: url(../images/banner-2.png);
    background-size: cover;
    min-height: 230px;
    align-content: center;
}

.box {
    height: auto;
    width: 440px;
    background-color: white;
    font-size: 17px;
    font-weight: 600;
    color: rgb(65, 65, 65);
    text-align: center;
    border-radius: 15px;
    padding: 1rem;
    margin: 2rem 20rem;
    box-shadow: 3px 3px 3px 3px rgba(0, 0, 0, 0.25);
}

.box .title h1{
    padding: 20px 10px;
    font-size: 35px;
    color: #2B2B2B;
    font-weight: 300;
}

.bola {
    padding-top: 1rem;
    display: inline-flex;
    text-align: center;
}

.bola .fa-solid {
    color: black;
    background-color: #ffd11f;
    height: 50px;
    width: 50px;
    padding: 0.8rem;
    font-size: 24px;
    border-radius: 50%;
    aspect-ratio: 1/1;
}

.bola .fa-solid svg {
    width: 100%;
    height: 100%;
    top: -5px;
    position: relative;
    transition: ease-in-out 0.2s;
}

.bola .fa-solid svg:hover {
    top: 0px;
}

.first-part p, #second-part p {
    text-align: justify;
    font-size: 17px;
  }


.title-banner{
    width: fit-content;
    margin: 0 auto;
}

.quem-somos{
 padding: 30px;
}

.missao{
    padding: 30px;
    background-color: #2F2E2E;
}

.missao .title-banner h1{
    color: #FFFFFF;
}
.missao .text p{
    color: #FFFFFF;
}

.valores{
    padding: 30px;
}

.first-part .text{
    margin: 0 auto;
    width: 790px;
}

#second-part{
    margin: auto 0 auto 0;
}

#imagem {
    padding: 0;
}

#imagem img{
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#second-part .text{
    padding: 30px;
    text-align: center;
    background-color: #2B2B2B;
    width: 100%;
}

#second-part .text .title-banner h1{
    width: 500px;
    color: white;
}

#second-part .text .sub-text{
    width: fit-content;
    margin: 0 auto;
}

#second-part .text .sub-text p{
    width: 500px;
    color: white;
}

.equipa-title {
    margin: 50px auto;
    width: fit-content;
    color: #292929;
    font-weight: 500;
}

.perfis {
    display: flex;
    width: fit-content;
    margin: 5px auto;
    padding: 30px;
    gap: 30px;
    align-items: flex-start;
    justify-content: center;
    flex-wrap: wrap;
}

.perfil {
    grid-template-rows: 150px 50px 80px 80px;
    align-items: center;
}

.equipa img {
    width: 163px;
    height: 163px;
    border-radius: 100%;
    margin-bottom: 20px;
}

.perfil-title, .sub-title, .ed {
    width: 163px; /* Define a mesma largura para alinhamento consistente */
}

.perfil-title h1, .sub-title h1, .ed p {
    text-align: center;
}

.perfil-title h1 {
    font-size: 18px;
    font-weight: 600;

}

.sub-title h1 {
    font-size: 18px;
    margin-bottom: 30px;
    font-weight: 400;
    
}

.ed p {
    font-size: 14px;
    font-weight: 300;
    align-items: flex-start;
}


.contactar{
    min-height: 160px;
    align-content: center;
    justify-content: center;
    background-color: #414141;
}

.contactar .title{
    font-size: 35px;
    font-weight: 600;
    color: white;
}

.title h2 {
    margin-bottom: 0;
    text-align: center;
}
.contactar .content-contactar{
    justify-content: center;
    margin: 0;
    align-items: center;
}
.btn-l {
    text-align: center;
}
.contactar a{
    color:black;
    background-color: #FC8F30;
    padding: 10px 50px;
    border-radius: 50px;
    font-size: 20px;
    font-weight: bold;
    transition: ease-in-out 0.3s;
    max-width: 60%;
}
.contactar a:hover{
    background-color: white;
    text-decoration: none;
}

@media screen and (max-width: 970px) {

    .box {
        width: fit-content;
        max-width: 90%;
        margin: 5%;
    }
    .box .title h1 {
        font-size: 26px;
    }
    
    .title-banner h1 {
        font-size: 2rem;
    }
    .first-part .text {
        width: fit-content;
    }
    #second-part .text .sub-text p, #second-part .text .title-banner h1 {
        width: fit-content;
    }  
    .contactar a{
        font-size: 15px;
    }
    .contactar .title{
        margin-bottom: 1rem;
    }
}