@import url('https://fonts.googleapis.com/css2?family=Google+Sans+Flex:opsz,wght@6..144,1..1000&display=swap');

*{margin: 0;
padding: 0;
box-sizing: border-box;
font-family: "Google Sans Flex",sans-serif;}

main{
    background-color: #E3ECF5;
    width:100%;
    padding: 20vh 6vw;
}

h1{
    color:#051127;
    font-size: 2.8vw;
    font-weight: 700;
    width:40%;
    line-height: 40px;
    margin-bottom: 2%;
}

main h2{
   color:#071b4194; 
   font-weight: 300;
   font-size: 1.2vw;
   width: 55%;
}

.todos{
    display: flex;
    flex-wrap: wrap;
}
img, video{
    width:30%;
    border-radius:6%;
    padding:1%;
    aspect-ratio: 1/1;
    object-fit: cover;
}


#Secao2{
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding:4%;
}

.botoes{
    display: flex;
    gap:1%;
    justify-content: center;
    margin-bottom: 4vh;
}

.botoes button:hover{
    background-color: #418ad3;
}

.btn.ativo{
    background-color: #051127;
}

.galeria{
    display: none;
}

.galeria.ativo{
    display: flex;
    flex-wrap: wrap;
}

@media(max-width:1084px){
    main h1{
        font-size: 2rem;
    }
    main h2{
        font-size: 1.1rem;
    }

    #todos, #portoes, #grades, #estruturas, #sob-medida{
       padding-left: 10%;
    }
}

@media(max-width:851px){
    main h1{
        width: 100%;
    }
}

@media(max-width:801px){
    #Secao2 img, #Secao2 video{
        width:48%
    }
}

@media(max-width:601px){
    h1, main h2{
        width: 100%;
        text-align: center;
    }

    main h1{
        font-size: 7.3vw;
        margin-top: 5%;
    }
    main h2{
        font-size: 2.7vw;
    }
}

@media(max-width:501px){
    #Secao2 img, #Secao2 video{
        width:90%;
        margin-bottom:3%;
        aspect-ratio: 13/9;
    }
}

@media(max-width:401px){
    main h2{
        font-size: 4vw;
    }
}