.servicos {
    padding: 60px 10px;
}
.servicos .title {
    max-width: fit-content;
    margin-left: auto;
    margin-right: auto;
}
.servicos-grid {
    margin-top: 40px;
    display: flex;
    flex-wrap: wrap;
    font-family: 'Prompt', sans-serif;
    justify-content: center;
    gap: 20px;
}
.servicos-grid a {
    max-width: 480px;
    min-width: 480px;
    height: 180px;
    flex: 1;
    color: #FDFDF6;
    border-radius: 20px;
    box-shadow: 3px 3px 0px 0px #414688;
    padding: 25px;
    position: relative;
}
.servicos-grid a:hover {
    transform: scale(1.02);
    box-shadow: 3px 3px 0px 0px #414688, 4px 4px 10px 0px #000;
}
.servicos-grid a > div {
    position: absolute;
    bottom: 20px;
    right: 20px;
    display: flex;
    gap: 10px;
    font-size: 1.5625rem;
    font-style: italic;
    font-weight: 300;
    align-items: center;
}
.servicos-grid a h2 {
    text-decoration: underline #FDCA20;
    font-size: 1.5625rem;
    font-weight: 700;
}
.servicos-grid a:nth-child(1) {
    background: url(/img/servico1.webp) no-repeat center center;
    background-size: cover;
}
.servicos-grid a:nth-child(2) {
    background: url(/img/servico2.webp) no-repeat center center;
    background-size: cover;
}
.servicos-grid a:nth-child(3) {
    background: url(/img/servico3.webp) no-repeat center center;
    background-size: cover;
}
.servicos-grid a:nth-child(4) {
    background: url(/img/servico4.webp) no-repeat center center;
    background-size: cover;
}
.servicos-grid a:nth-child(5) {
    background: url(/img/servico5.webp) no-repeat center center;
    background-size: cover;
}

@media only screen and (min-width:370px) and (max-width:520px) {

    .servicos-grid a:hover {
        transform: scale(1);
        box-shadow: 3px 3px 0px 0px #414688, 0px 0px 0px 0px #000;
    }

    .servicos-grid a {
        max-width: 320px;
        min-width: 320px;
        height: 140px;
        border-radius: 20px;
        padding: 15px;
        position: relative;
    }
    .servicos-grid a h2 {
        font-size: 1.3rem;
    }
}

@media only screen and (min-width:0px) and (max-width:369px) {

    .servicos-grid a:hover {
        transform: scale(1);
        box-shadow: 3px 3px 0px 0px #414688, 0px 0px 0px 0px #000;
    }

    .servicos-grid a {
        max-width: 250px;
        min-width: 250px;
        height: 140px;
        border-radius: 20px;
        padding: 15px;
        position: relative;
    }
    .servicos-grid a h2 {
        font-size: 1rem;
    }
    .servicos-grid a > div {
        bottom: 10px;
        right: 10px;
        font-size: 1rem;
    }
    .servicos .title {
        font-size: 2.5rem;
    }
}