@media (min-width: 641px) and (max-width: 1279px) {

    #navbar nav {
        display: none;
    }

    #logo {
        width: 200px;
    }

    #h2-servicos::after {
        margin: auto;
        width: 12rem;
    }

    #projetos {
        flex-direction: column;
        height: auto;
        margin-right: 2rem;
    }

    #projetos-img-box img, #manutencao-img-box img {
        width: 100%;
        height: 600px;
        margin-bottom: 1rem;
    }

    #projeto-article h3 {
        display: none;
    }

    #projeto-article h2 {
        text-align: center;
    }

    #projeto-article h2::after {
        margin: auto;
        width: 14.2rem;
        margin-bottom: 2rem;
    }

    #desc-servicos, #grid-projetos h4, #grid-projetos p {
        font-size: 1.5rem !important;
    }
    

    #p-projetos {
        font-size: 1.5rem !important;
        margin: auto;
        text-align: justify;
        letter-spacing: 3px;
        line-height: 1.5;
    }

    #p-projetos {
        max-width: 70vw !important;
    }

    #grid-projetos {
        margin: auto;
        margin-top: 2rem;
        margin-bottom: 2rem;
        grid-column-gap: 30px;
        max-width: 70vw;
    }

    #manutencao {
        flex-direction: column-reverse;
        height: auto;
        padding-bottom: 1rem;
        gap: 2rem
    }

    #manutencao-article h3 {
        margin: 2rem auto 1rem;
        text-align: center;
    }

    #manutencao-article h3::after {
        margin:auto;
        width: 21rem;
    }

    #manutencao-article p {
        font-size: 1.5rem;
        margin: auto;
        margin-bottom: 1rem;
        text-align: justify;
        letter-spacing: 3px;
        line-height: 1.5;
        max-width: 70vw !important;

    }

    #manutencao-article {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 1rem
    }

    #seletor-galeria li, #verMais,#a-manutencao {
        font-size: 1.5rem;
    }

    #article-contato h3 {
        font-size: 2rem;
    }

    #section-contato h3, #article-contato a {
        font-size: 1.75rem;
    }

    #email::before {
        display: none;
    }

    #sobre {
        height: 50vh;
    }
}

@media (max-width: 640px) {
    
    #navbar nav {
        display: none;
    }

    #logo {
        width: 200px;
        margin: auto
    }

    #inicio {
        max-width: 100%;
    }

    #a-inicio {
        padding: 0.5rem 1rem
    }

    #background {
        height: 100vh
    }

    #h2-servicos::after {
        margin: auto;
        width: 12rem;
    }

    .gallery {
        display: flex;
        flex-direction: column;
    }

    .gallery img {
        height: 200px;
        margin: auto
    }

    #seletor-galeria {
        overflow: scroll;
    }

    #projetos {
        flex-direction: column;
        height: auto;
        margin-right: 2rem;
    }

    #projetos-img-box img, #manutencao-img-box img {
        width: 100%;
        height: 300px;
        margin-bottom: 1rem;
    }

    #projeto-article h3 {
        display: none;
    }

    #projeto-article h2 {
        text-align: center;
    }

    #projeto-article h2::after {
        margin: auto;
        width: 14.2rem;
        margin-bottom: 2rem;
    }

    #desc-servicos, #grid-projetos h4, #grid-projetos p {
        font-size: 1.5rem !important;
    }
    

    #p-projetos {
        font-size: 1.5rem !important;
        margin: auto;
        text-align: justify;
        letter-spacing: 3px;
        line-height: 1.5;
    }

    #p-projetos {
        max-width: 70vw !important;
    }

    #grid-projetos {
        margin: auto;
        margin-top: 2rem;
        margin-bottom: 2rem;
        display: flex;
        flex-direction: column;
        max-width: 70vw !important;    
    }

    #projeto-article p {
        max-width: 70vw !important;    

    }

    #manutencao {
        flex-direction: column-reverse;
        height: auto;
        padding-bottom: 1rem;
        gap: 2rem
    }

    #manutencao-article h3 {
        margin: 2rem auto 1rem;
        text-align: center;
    }

    #manutencao-article h3::after {
        margin:auto;
        width: 21rem;
    }

    #manutencao-article p {
        font-size: 1.5rem;
        margin: auto;
        margin-bottom: 1rem;
        text-align: justify;
        letter-spacing: 3px;
        line-height: 1.5;
        max-width: 70vw !important;

    }

    #manutencao-article {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 1rem;
        margin: auto;

    }

    #a-manutencao {
        padding: 0.5rem 2rem;
    }

    #contato-bg, #contato-bg::before {
        height: 150vh;
    }

    #contato {
        flex-direction: column;
    }

    #div-contato {
        margin-bottom: 0;
    }

    #section-contato h3 {
        text-align: center;
    }

    #sobre {
        height: auto;
        display: flex;
        flex-direction: column;
        gap: 2rem;
        padding: 2rem 0
    }

    #sobre article  {
        width: auto;
        max-width: 80%;
        margin: auto;
        text-align: justify;
    }
}