/* Reset e estilos base */

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root{
    --vermelho: #790000;
    --dourado: #e3a14d;
}

body {
    font-family: "Roboto", sans-serif;
    font-optical-sizing: auto;
    font-style: normal;
    font-variation-settings:"wdth" 100;
    font-size: 16px;
}

h1,h2{
    font-size: 32px;
    color: #333;
}

h4{margin-bottom: 5px; margin-top: 15px;}
.bloco.Vermelho{color: var(--dourado)}
.bloco.Dourado {color: var(--vermelho);}
.interna h1{
    text-align: center;
    margin: 4% auto;
}

p{
    line-height: 1.6;
    color: #333;
}

li{list-style: none;}

a{text-decoration: none;}

header,
main,
section#extra,
footer{
    width: 100%;
}

.container{
    width: 95%;
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 2.5%;
}

div.alert.red{display:none;}
div.alert.red.form_errors{display:inherit;}

/* NAV */

nav{
    position: fixed;
    z-index: 1000;
    width: 100%;
    transition: background-color 0.3s ease;
    background-color: var(--vermelho);
}

.home nav{
    background-color: transparent;
}

nav.scrolled{
    background-color: var(--vermelho);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

nav .container{
    display: grid;
    grid-template-column: repeat(12, 1fr);
    grid-template-rows: 150px; /* altura da linha da grid */
    height: 150px;
    align-items: center;

}

nav h1{height: 0;width: 0; overflow: hidden;}

nav .logo{
    grid-column: 1 / 3;
    margin-right: 10px;
}

nav .menu{
    grid-column: 3 / 11;
}

nav .menu > ul{
    display: flex;
    justify-content: space-evenly;
    list-style: none;
    text-align: center;
    align-items: center;

}

nav ul.mod-menu > li{
    cursor: pointer;
    border-radius: 10px;
    transition: background-color 0.3s ease;
    background-color: transparent;
}

nav ul.mod-menu > li > a,
nav ul.mod-menu > li > span{color: #fff; text-transform: uppercase; display: block;  padding: 10px;}

nav ul.mod-menu > li:hover,
nav ul.mod-menu > li.active{
    color: var(--vermelho);
    background-color: var(--dourado);
}

nav ul.mod-menu > li:hover a,
nav ul.mod-menu > li:hover span,
nav ul.mod-menu > li.active a,
nav ul.mod-menu > li.active span{
    color: var(--vermelho);
}

nav ul.mod-menu > li.parent:hover{
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

.nav-item.parent {
  position: relative;
}

.nav-item.parent .mod-menu__sub {
  position: absolute;
  top: 100%;
  left: 0;
  width: max-content;
  background: white;
  border-bottom-left-radius: 10px;
  border-bottom-right-radius: 10px;
  padding: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: max-height 0.3s ease, opacity 0.3s ease;
  z-index: 999;
  pointer-events: none;
  text-align: left;
}

.nav-item.parent.open .mod-menu__sub {
  max-height: 300px; /* ajuste conforme necessário */
  opacity: 1;
  pointer-events: auto;
}

.nav-item.parent .mod-menu__sub li{
    list-style: none;
}

.nav-item.parent .mod-menu__sub li a{color: #333; padding: 10px; display: block;}
.nav-item.parent .mod-menu__sub li:hover{
    background-color: #e5e0d9;
}


nav .whatsapp{
    grid-column: 11 / 13;
    text-align: right;
}

nav .whatsapp a{
    display: table;
    background: var(--dourado) url(../images/whatsapp.png) no-repeat 10px 50%; 
    padding: 10px 10px 10px 40px;
    border-radius: 10px;
    color: #fff;
    float: right;
    min-width: 162px;
}

nav .whatsapp a:hover{
    color: var(--vermelho);
}

/* Botão hamburguer */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 30px;
  height: 30px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1100;
  padding: 0;
  grid-column: 12/13;
  margin-left: 20px;
}

.menu-toggle span {
  display: block;
  width: 100%;
  height: 5px;
  background-color: var(--dourado);
  border-radius: 3px;
  transition: all 0.3s ease;
}

/* Animação para X */
.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}
.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/*BANNER*/

header .banner{position: relative;}

.home header .banner .moduletable:before{
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    content: " ";
    background: linear-gradient(to bottom, var(--vermelho), transparent);
    width: 100%;
    height: 30%;
    pointer-events: none;
    z-index: 2;
}

header .bannergroup {
  position: relative;
  width: 100%;
  overflow: hidden;
  aspect-ratio: 16 / 7; /* ou ajuste para sua necessidade */
}

header .banners-inner {
  position: relative;
  width: 100%;
  height: 100%;
}

header .banneritem {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1s ease;
  z-index: 0;
}

header .banneritem.active {
  opacity: 1;
  z-index: 1;
}

header .banneritem img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
header .banner-nav {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 10;
}

header .banner-nav .dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #fff;
  border: none;
  cursor: pointer;
  transition: background 0.3s ease;
}

header .banner-nav .dot.active {
  background: var(--vermelho);
}

/*HOME*/

/*SERVIÇOS*/
.list-servicos{
    margin: 5% 0;
}


.list-servicos h2{
    display: table;
    text-align: center;
    width: 350px;
    margin: 0 auto 2% auto;
}

.list-servicos .newsflash{
    width: 100%;
    max-width: 1000px;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    margin: 0 auto;
    justify-content: space-evenly;
}

.list-servicos .newsflash > div{
    display: table;
    width: 25%;
    min-width: 150px;
    margin: 1% 2%;
    padding: 2%;
    text-align: center;
    position: relative;
    border-radius: 20px;
}

.list-servicos .newsflash > div:hover{
    background: #f3f3f3;
}

.list-servicos .newsflash > div > a{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

div.icon{
    display: table;
    background: var(--dourado);
    border-radius: 100%;
    padding: 20px 16px;
    margin: 0 auto;
}

div.icon IMG{
    width: 80%;
    height: auto;
    margin: 0 auto;
    display: block;
}

.list-servicos h3{
    text-transform: uppercase;
    margin: 15px 0;
    font-weight: 400;
}

a.cta, #enviar{
    background: var(--vermelho);
    padding: 15px 45px;
    border-radius: 15px;
    color: #fff;
    font-weight: 500;
    font-size: 18px;
    text-transform: uppercase;
    text-align: center;
    display: table;
    margin: 25px auto 0 auto;
}

a.cta.amarelo{background: var(--dourado);}

a.cta:hover,  #enviar:hover{
    color: var(--dourado);
}
a.cta.amarelo:hover{color: var(--vermelho);}

/*BANNER SECUNDÁRIO*/
.bannersecundario{
    display: table;
    margin: 0 auto;
    width: 100%;
    max-width: 1000px;
}
.bannersecundario .banneritem{
    background: var(--vermelho);
    border-radius: 20px;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: center;
}

.bannersecundario .banneritem a{
    display: block;
    width: 100%;
    max-width: 500px;
    min-width: 300px;
}

.bannersecundario .banneritem a img{display:block; width: 100%}

.bannersecundario .banneritem .banner-description{
    width: 90%;
    max-width: 450px;
    margin: 5%;
}

.bannersecundario h2{
    color: #fff;
    font-size: 26px;
    margin-bottom: 15px;
}

.bannersecundario p{
    color: #fff;
}

/*DEPOIMENTOS*/

.depoimentos{
    margin: 80px auto;
}
.lista_depoimentos {
  display: flex;
  overflow: hidden;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  gap: 20px;
}

.item_depoimento {
  flex: 0 0 auto;
  scroll-snap-align: start;
  width: calc((100% - 40px) / 2); /* 2 por vez com gap */
}

.depoimento{
    display: grid;
    grid-template-columns: auto 1fr;
    grid-gap: 15px;
}

.depoimento .depoimento-image{
    /*grid-column: 1/2; exibir se precisar de imagem*/
    display: none;
}
.depoimento .depoimento-text{
    grid-column: 3/3; /*se precisar mostrar a imagem alterar para 2/3*/
    display: flex;
    flex-direction: column;
}
.depoimento .depoimento-text p{
    background: url(../images/icon-aspas.png) no-repeat top left;
    padding-top: 30px;
}

.depoimento .depoimento-text .identidade{
    margin-top: auto;
}

.carrossel-botoes {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 10px;
  position: relative;
  top: -40px;
  width: auto;

}

.carrossel-botoes button {
  background: var(--vermelho);
  border: none;
  color: #fff;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  cursor: pointer;
  font-size: 18px;
}

.carrossel-botoes button:hover{
    color: var(--dourado);
}

.carrossel-botoes button:disabled {
  opacity: 0.4;
  cursor: default;
}

/*EXTRA*/

#extra{
    background: linear-gradient(to right, var(--vermelho) 50%, var(--dourado) 50%);
}

/*orcamento*/
.orcamento{
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 50% 50%;
    grid-gap: 20px;
    margin: 0 auto;
    width: 80%;
}

.orcamento h2{
    grid-area: 1/1/1/2;
    color: var(--dourado);
    margin-top: auto;
}



.orcamento p{
    grid-area: 2/1/3/2;
    color: #fff;
}

.orcamento .iframe-container{
    grid-area: 1/2/3/3;
}

.orcamento .iframe-container form{
    padding: 20px;
}

.chronocredits{display: none;}

input{width: 100% !important;}

 #enviar{margin: 0; color: #fff !important;}

 textarea{font-family: "Roboto", sans-serif;}

/*FOOTER*/

.rodape{
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    margin: 50px auto;
}

.logofooter{
    grid-column: 1/3;
}

.logofooter img{
    width: 100%;
  height: auto;
  padding-right: 15px;
  max-width: 172px;
}

.menufooter{
    grid-column: 3/6;
}

.menufooter li{
    margin: 10px 0;
}

.menufooter a{
    color: #333;
    font-weight: 500;
}

.menufooter a:hover{
    color: var(--vermelho);
    text-decoration: underline;
}

.enderecofooter{
    grid-column: 6/10;
}

.socialfooter{
    grid-column: 10/13;
}

.socialfooter ul{
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
}

.socialfooter li{
    margin: 15px 10px;
}

.socialfooter li a{
    display: table;
    padding: 10px 8px;
    border-radius: 100%;
    background: var(--dourado);
}

.socialfooter li a img{
    width: 80%;
    height: auto;
    display: block;
    margin: 0 auto;
    min-width: 15px;
}
.socialfooter li span{
    display: none;
}

/*INTERNAS */

body.sobre .itens-destaque .fields-container{display: none;}

/*banner interna*/
.itens-destaque{
    padding-top: 150px;
    background: var(--vermelho);
}

.itens-destaque .content{
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
}

.itens-destaque .content .item-content{
    width: 40%;
}

.itens-destaque .item-content .page-header h1,
.itens-destaque .item-content .page-header h2,
.itens-destaque p{color: #fff; text-align:left;}
.itens-destaque .item-content > h2{color: var(--dourado); margin-bottom: 15px;}

.itens-destaque .content figure{width: 60%}
.itens-destaque .content figure img{display:block;width: 100%; height: auto;}

/* ÁREA DE ABAS */
.tabs-nav {
  display: flex;
  justify-content: center;
  gap: 5%;
  margin: 0 auto 30px auto;
  position: relative;
  width: 100%;
  max-width: 1000px;
  border-bottom: 1px solid #ccc;
}

.tabs-nav button {
  background: none;
  border: none;
  font-size: 24px;
  font-weight: bold;
  color: #aaa;
  padding: 10px;
  cursor: pointer;
  position: relative;
  transition: color 0.3s;
}

.tabs-nav button.active {
  color: var(--vermelho);
}

/*.tabs-nav button.active::after {
  content: '';
  display: block;
  width: 60%;
  height: 2px;
  background-color: #800000;
  margin: 5px auto 0;
}*/

/* ITENS COM FADE */
.sobre .container.itens .item {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease, visibility 0.5s ease;
  position: absolute;
  width: 100%;
}

.sobre .container.itens {
  position: relative;
  min-height: 400px; /* Ajuste se precisar para seu conteúdo */
}

/* ITEM ATIVO */
.sobre .container.itens .item.active {
  opacity: 1;
  visibility: visible;
  position: relative;
}

.sobre .container.itens .ano{display: none;}

.sobre .container.itens .item .page-header{display: table; margin: 0 auto 15px auto; text-align: center;}
.sobre .container.itens .item .page-header h2{color: var(--vermelho); font-size: 24px;}
.sobre .container.itens figure{overflow: hidden; border-radius: 20px; width:80%; margin: 0 auto; display: table;}
.sobre .container.itens figure img{width: 100%; min-width:350px; height: auto;}

.sobre .container.itens .item-content{
    width: 60%; 
    margin: 25px auto; 
    display: table;
    background: url(../images/icon-brasao.png) no-repeat bottom center;
    padding-bottom: 50px;
}

.sobre .container.itens .item-content ul{border-top: 1px solid #ccc; position: relative; bottom: -35px; z-index: -1;}

.sobre .container.itens .item-content p{font-size: 20px; text-align: center;}

.sobre .content-bottom,
.contato .content-bottom{background: #333;}

/*trabalhe conosco*/

.vagas{
    display: grid;
    grid-template-rows: auto;
    align-items: center;
    justify-items: center;
    padding: 50px 0;
}

.vagas h3{color: var(--dourado); font-size: 22px; margin-bottom: 10px;}
.vagas p{color: #fff; text-align: center;}
.vagas a{
    background: var(--vermelho);
    padding: 15px 45px;
    border-radius: 15px;
    color: #fff;
    font-weight: 500;
    font-size: 18px;
    text-transform: uppercase;
    text-align: center;
    display: table;
    margin: 25px auto 0 auto;
}

.vagas a:hover{
    color: var(--dourado);
}

/* SERVIÇOS*/

.item-page{
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-gap: 20px;
    margin-top: 50px;
}

.bloco{
    padding: 10%;
    border-radius: 20px;
    align-content: center;
}

.a{
    order: 1;
}

.b{
    order: 2;
}

.c{
    order:3;
}

.d{
    order:4;
}

.e{
    order:5;
}

.bloco.imagem{
    padding: 0;
}

.bloco.imagem img{
    width: 100%;
    height: auto;
}

.bloco h2{margin-bottom: 20px;}
.bloco h3{font-size: 22px; margin-bottom: 20px;}

.bloco,
.bloco.simples{
    grid-column: span 1;
}

.bloco.duplo{
    grid-column: span 2;
}

.bloco figure{
    margin: 0 auto;
    display: block;
    text-align: center;
    border-radius: 20px;
    overflow: hidden;
}

.bloco div.icon{
    margin: 0;
}

.bloco.Vermelho{
    background: var(--vermelho);
}

.bloco.Vermelho h2,
.bloco.Vermelho h3{color: var(--dourado);}
.bloco.Vermelho p{color: #fff;}

.bloco.Vermelho li{
    color: #fff;
    margin: 5px;
    list-style: circle;
}

.bloco.Dourado{
    background: var(--dourado);
}

.bloco.Dourado div.icon{
    background: #fff;
}

.bloco.Dourado h2,
.bloco.Dourado h3{color: var(--vermelho);}
.bloco.Dourado p{color: #333;}

.bloco.Dourado li{
    color: #333;
    margin: 5px;
    list-style: disc;
}

.bloco.Dourado li::marker {
  color: var(--vermelho);
}

/*CONTATO*/

.contato .container.itens .item{
    display: grid;
    grid-template-rows: auto;
    justify-content: center;
    text-align: center;
    margin: 50px 0;
}

.contato .container.itens .item label{
    text-align: left;
}

.contato .container.itens .item form{
    margin: 20px 0;
}

.contato .container.itens .item form #enviar{display: block; width: 100%}

.contatos{
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
}

.contatos img{
    display: table;
    background: var(--vermelho);
    border-radius: 100%;
    padding: 10px;
    width: 40px;
    height: 40px;
    margin: 0 5px 0 15px;
}

.contatos > div{
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
font-size: 14px;
text-align: left;
margin: 10px 0;}

.contatos div strong{color: var(--vermelho);}

.contatos div a{color: #333; text-decoration: none;}



/* Versões para diferentes tamanhos de tela */

@media (max-width: 490px) {

        
        header .bannergroup{aspect-ratio: 1/1}

        nav .whatsapp{position: fixed; bottom: 10px; right: 10px; z-index: 999}

        nav .whatsapp a{display: block; padding: 0; width: 50px; height: 50px; background-position: center center; overflow: hidden; font-size: 1px; min-width: auto;}

        .depoimento .depoimento-image{grid-column: 1/-1}

        .list-servicos .newsflash > div.mod-articlesnews__item{padding: 0;}
        .list-servicos .newsflash > div.mod-articlesnews__item h3{font-size: 12px;}

        .list-servicos .newsflash > div.mod-articlesnews__item p{display: none;}

        .tabs-nav button{font-size: 16px;}

        .bloco, .bloco.simples{grid-column: span 2}

        .itens-destaque .content figure{width: 100%}

}
@media (max-width: 768px) {
    .home nav{
            position: initial;
            background: var(--vermelho);
        }

        .home header .banner .moduletable::before {display: none;}
    .orcamento .iframe-container {
        grid-area: 3/1/4/-1;
    }
    #extra{background: var(--dourado); padding: 50px 0}

    .
    header .bannergroup {
      aspect-ratio: 16 / 13; /* ou ajuste para sua necessidade */
    }
    .item_depoimento{
        width: 100%;
    }

    .bannersecundario .banneritem{flex-wrap: wrap;}

    .orcamento h2{grid-area: 1/1/2/-1; color: var(--vermelho);}
    .orcamento p{grid-area: 2/1/3/-1;}

    .orcamento .iframe-container form {padding: 0;}

    .logofooter,
    .menufooter,
    .enderecofooter,
    .socialfooter{grid-column: 1/-1; margin-bottom: 25px;}

    .itens-destaque .content .item-content{width: 100%;}
    .itens-destaque .content figure{width: 70%; margin: 0 auto;}

}

@media (max-width: 940px) {
    nav .whatsapp {
        grid-column: 9/12;
    }
  .moduletable.menu {
  position: fixed;
  top: 0;
  right: -100vw;
  width: 100vw;
  height: 100vh;
  background: white;
  z-index: 1000;
  padding: 2rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  transition: right 0.4s ease-in-out;
  background: #333;
}

.moduletable.menu.active {
  right: 0;
}
.menu-toggle {
    display: flex;
  }
  .moduletable.menu ul {
    flex-direction: column;
    gap: 1rem;
  }

    .nav-item.parent .mod-menu__sub{
       position: initial;
    overflow: initial;
    max-height: inherit;
    opacity: 1;
    background: none;
    }

    .nav-item.parent .mod-menu__sub li a{
        color: #fff;
        text-align: center;
    }

}

@media (min-width: 1024px) {
  .item_depoimento {
    width: calc((100% - 60px) / 2); /* 2 por vez com gap */
  }
}