@import url('https://fonts.googleapis.com/css2?family=Questrial&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Darker+Grotesque:wght@300..900&family=Questrial&display=swap');

:root {
    --header-color: #751932;
    --header-text-color: #fff;
    --secondary-color: #691B37;
    --background-image-link: url(../img/sacada/1.jpg);
    --background-image-link2: url(../img/sacada/4.jpg);
    --font-titulo: "Questrial", sans-serif;
    --font-texto: "Darker Grotesque", sans-serif;
    --blue-padrao: #23395B
}

p,
.text-font {
    font-family: var(--font-texto);
    font-optical-sizing: auto;
}

h1,
h2,
h3,
h4,
h5,
h6,
.title-font {
    font-family: var(--font-titulo);
}

#navbar {
    background-color: var(--header-color);
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 0 1rem;
    color: var(--header-text-color)
}

#navbar nav ul {
    display: flex;
    flex-direction: row;
    gap: 2rem;
    margin-right: 1rem;
}

#logo {
    width: 150px;
    padding: 1rem 1rem;
}

.a-navbar {
    display: block;
    text-decoration: none;
    color: var(--header-text-color);
    position: relative;
}

.a-navbar::after {
    content: '';
    bottom: -0.5rem;
    position: absolute;
    left: 50%;
    width: 0;
    height: 0.2rem;
    background: var(--header-text-color);
    transition: all 300ms ease-in-out;
}

.a-navbar:hover::after {
    width: 100%;
    left: -1px
}



#background {
    position: relative;
    /* Garante que não interfere no fluxo de rolagem */
    height: 100vh;
    background-image: var(--background-image-link);
    background-size: cover;
}

#background::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(30, 30, 30, 0.4);
    z-index: 1;
}

#background * {
    position: relative;
    z-index: 2;
}

#inicio {
    max-width: 75vw;
    margin: 7rem 2rem 1rem;
}

#h2-inicio {
    font-size: 3rem;
    color: var(--header-text-color);
    margin-bottom: 2rem;
    cursor: default
}

#a-inicio {
    color: var(--header-text-color);
    border: solid 2px white;
    padding: 0.5rem 5rem;
    font-size: 1.2rem;
    transition: 500ms ease-in-out
}

#a-inicio:hover {
    color: black;
    background-color: var(--header-text-color);
}

#servicos {
    max-width: 80vw;
    margin: auto;
}

#h2-servicos {
    text-align: center;
    font-size: 32px;
    margin: 2rem auto;
}

#h2-servicos::after {
    content: " ";
    border-bottom-style: solid;
    border-bottom-width: 2px;
    border-bottom-color: inherit;
    width: 10rem;
    display: block;
    height: 100%;
    margin-left: 34vw;
    margin-top: 1rem;
    color: var(--secundary-color)
}

#desc-servicos {
    font-size: 1.2rem;
    max-width: 70vw;
    margin: auto;
    text-align: justify;
    letter-spacing: 3px;
    line-height: 1.5;
}

#tipo-servico {
    margin-top: 2rem;
    margin-bottom: 2rem;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}

.img-card {
    width: 330px;
    height: 250px;
}

.card-servico {
    border: 1px solid lightgray;
    transition: 300ms ease-in-out;
    overflow: hidden;
}

.card-servico:hover {
    box-shadow: 5px 5px 5px 0px rgba(30, 30, 30, 0.3);
}

.card-servico h3 {
    font-size: 1.5rem;
    letter-spacing: 1.5px;
    margin: 2rem 2rem 1rem;
}

.card-servico p {
    font-size: 1.2rem;
    margin: 0 2rem 1rem;
}

.card-servico a {
    margin: 0 2rem 1rem;
    color: rgb(51, 167, 206);
    font-size: 1.5rem;
    cursor: pointer;
}

.card-servico a::after {
    content: '>>';
    font-size: 1rem;
    margin-left: 5px;
    transition: all 300ms ease-in-out;
}

.card-servico a:hover::after {
    margin-left: 10px;

}

.servico-more {
    padding: 1rem 0;
    width: 100%;
    border-top: 1px solid lightgrey;

}

.card-servico p {
    color: gray
}

.card-servico img {
    transition: all 300ms ease-in-out;
}

.card-servico:hover img {
    transform: scale(1.2) rotate(4deg) translate(-3%, 3%);
}

.box-img-servico {
    max-width: 350px;
    max-height: 300px;
    overflow: hidden;
}

.oculta {
    display: none;
}

#projetos {
    margin: 5rem 0 0 2rem;
    height: 80vh;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}

#projetos-img-box img {
    height: 80vh;
    width: 80vh;
    box-shadow: 0 10px 30px 0 rgba(49, 52, 57, .3), 0 10px 30px rgba(0, 0, 0, .08);
}

#projeto-article h2 {
    font-size: 32px;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

#projeto-article h2::after {
    content: " ";
    border-bottom-style: solid;
    border-bottom-width: 2px;
    border-bottom-color: inherit;
    width: 7.5rem;
    display: block;
    height: 100%;
    margin-top: 1rem;
    color: var(--secondary-color)
}

#projeto-article h3 {
    font-weight: bold;
}

#projeto-article p {
    max-width: 50vw;
    font-size: 1.15rem;
}

#grid-projetos {
    margin-top: 2rem;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(3, 1fr);
    grid-column-gap: 20px;
    grid-row-gap: 20px;
    max-width: 50vw;
}

#grid-projetos h4 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

#grid-projetos p {
    color: gray
}

#img-projeto {
    transition: opacity 500ms ease-in-out;
    opacity: 1;
    /* Padrão */
}

.fade-out {
    opacity: 0 !important;
    /* Torna a imagem invisível */
}

#manutencao {
    background-color: var(--header-color);
    display: flex;
    color: white;
    height: 80vh;
}

#manutencao-img-box {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-left: 1rem;
    margin-right: 1rem;
}

#manutencao-img-box img {
    height: 65vh;
    width: 80vh;
    box-shadow: 0 10px 30px 0 rgba(49, 52, 57, .3), 0 10px 30px rgba(0, 0, 0, .08);
    border: solid 5px white
}

#manutencao-article {
    margin-left: 2rem;
    margin-top: 3rem;
}

#manutencao-article h3 {
    font-size: 32px;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

#manutencao-article h3::after {
    content: " ";
    border-bottom-style: solid;
    border-bottom-width: 2px;
    border-bottom-color: inherit;
    width: 7.5rem;
    display: block;
    height: 100%;
    margin-top: 1rem;
    color: var(white)
}

#manutencao-article p {
    max-width: 50vw;
    font-size: 1.15rem;
    margin-bottom: 2rem;
}

#a-manutencao {
    color: var(--header-text-color);
    border: solid 2px white;
    padding: 0.5rem 5rem;
    font-size: 1.2rem;
    transition: 500ms ease-in-out
}

#a-manutencao:hover {
    color: var(--header-color);
    background-color: white;

}

#contato-bg {
    width: 100%;
    height: 80vh;
    background-image: var(--background-image-link2);
    background-repeat: no-repeat;
    background-size: cover;
    color:white;
    display: flex ;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

#contato-bg::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 80vh;
    background-color: #1f1f1fb3;
    z-index: 1;
}

#contato-bg * {
    position: relative;
    z-index: 2;
}

#contato-bg h2 {
    text-align: center;
    font-size: 32px;
    padding-top: 1rem;
}

#a-contato {
    border: solid 2px white;
    padding: 0.5rem 5rem;
    font-size: 1.2rem;
    transition: 500ms ease-in-out;
    cursor:pointer;
    color:white;
    font-family: var(--font-titulo);
}

#a-contato:hover {
    color: black;
    background-color: white;
}

#contato {
    color:white;
    display: flex;
    flex-direction: row;
    align-items: center;
    margin: 3rem auto 3rem;
    max-width: 70vw;
    justify-content: center;
    gap: 2rem
}

#article-contato {
    display: flex;
    flex-direction: column;
    gap: 1rem;

}

#article-contato h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-family: var(--font-titulo);
}

#article-contato a{
    color:white;
    font-size: 1.4rem;
    font-family: var(--font-texto);
}

#redes {
    display: flex;
    flex-direction: column;
    gap:.5rem;
}

#instagram::before {
    content: "";
    display: inline-block;
    background-image: url('/img/icones/instagram.png');
    background-size: cover;
    width: 15px;
    height: 15px;
    margin-right: 0.5rem;
}

#email::before {
    content: "";
    display: inline-block;
    background-image: url('/img/icones/envelope.png');
    background-size: cover;
    width: 15px;
    height: 15px;
    margin-right: 0.5rem;
}

#facebook::before {
    content: "";
    display: inline-block;
    background-image: url('/img/icones/facebook.png');
    background-size: cover;
    width: 15px;
    height: 15px;
    margin-right: 0.5rem;  
}

#telefone::before {
    content: "";
    display: inline-block;
    background-image: url('/img/icones/virar-telefone.png');
    background-size: cover;
    width: 15px;
    height: 15px;
    margin-right: 0.5rem;
    transform: scaleX(-1);
}

#section-contato h3 {
    font-size: 1.5rem;
    margin-bottom: 3rem;
}

#div-contato {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-bottom: 3.5rem;
    transition: opacity 500ms ease-in-out;
    opacity: 1;
}

#subtitulo-contato {
    font-size: 1.2rem;
}

#img-contato {
    width: 75px;
    height: 75px;
}

#sobre {
    background: linear-gradient(to right, var(--header-color), var(--secondary-color));
    height: 90vh;
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
    align-items: center;
    color:white;
}

#sobre img {
    width: 345px; /* Ajusta proporcionalmente */
    height: 133px; /* Mantém a proporção */
}

#sobre h2 {
    font-size: 32px;
    margin-bottom: 1rem;
}

#sobre p {
    font-size: 20px;
}

#sobre article {
    max-width: 50vw;
}

.gallery {
    margin:auto;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
    padding: 20px;
    text-align: center;
    font-size: 16px;
}

.gallery a {
    display: block; /* Necessário para o layout de grid */
    border-radius: 5px;
    overflow: hidden;

}

.gallery img { 

    width: 100%;
    height: 150px;
    opacity: 0;  /* Inicialmente invisível */
    transform: scale(0.95);  /* Inicialmente um pouco menor */
    transition: opacity 0.5s ease, transform 0.3s ease;  /* Transições suaves */
}

.gallery a:hover img {
    transform: scale(1.05); /* Efeito de zoom ao passar o mouse */

}

.gallery .visible img {
    opacity: 1;  /* Fica visível quando adicionar a classe .visible */
    transform: scale(1);  /* Retorna ao tamanho normal */
}

#seletor-galeria {
    display: flex;
    gap:1rem;
    margin-top: 2rem;
    align-items: center;
    justify-content: space-evenly;
}

#seletor-galeria li {
    text-align: center;
    font-family: var(--font-texto);
    font-size: 1.3rem;
    cursor: pointer;
    padding: 0.5rem;
}

#seletor-galeria li:hover {
    border: 1px solid var(--header-color);
}

.selecionado {
    border: 1px solid var(--header-color);
    background-color: var(--header-color);
    color:white;
}

#verMais {
    margin: auto;
    display: block;
    background-color: white;
    padding: 0.5rem;
    font-family: var(--font-titulo);
    font-size: 1.3rem;
    cursor: pointer;
    border: 1px solid var(--header-color);
    transition: 300ms ease-in-out all;
}

#verMais:hover {
    background-color: var(--header-color);
    color:white;
}

#btn-whatsapp {
    display: block;
    position: fixed;
    bottom: 10px;
    right: 10px;
    z-index: 100000;
    transition: 300ms ease-in-out all;

}

#btn-whatsapp:hover {
    bottom: 15px
}
#btn-whatsapp img {
    width: 100px;
}