/* CONFIGURAÇÕES GERAIS */

@font-face {
    font-family: 'Calibri';
    src: url('../fonts/Calibri-Light.woff') format('woff2'),
        url('../fonts/Calibri-Light.woff2') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Calibri';
    src: url('../fonts/Calibri-Italic.woff') format('woff2'),
        url('../fonts/Calibri-Italic.woff2') format('woff');
    font-weight: normal;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'Calibri';
    src: url('../fonts/Calibri-Bold.woff') format('woff2'),
        url('../fonts/Calibri-Bold.woff2') format('woff');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}

html {
    font-family: "Calibri";
    font-weight: normal;
    font-style: normal;
    font-size: 22px;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
}

html, body {
  overflow-y: auto;
  height: auto;
  scroll-behavior: smooth; /* fallback de scroll suave */
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
  }


:root {
  --azul: rgb(0,108,168);
  --cinza: rgb(87,87,87);
}

/* --- Header */
header {
    width: 100vw;
    height: 30vh;
    padding: 0 15%;        
    display: flex;
    flex-direction: row;    
    gap: 20px;
    border: solid 1px gray;
    position: relative;
    background-color: white;
}

header::after {
    content:"";
    width: 100%;
    height: 3px;
    background-color: var(--azul);
    position: absolute;
    bottom:6px;
    left:0;
}

header .logo {
    width: 18vw; 
    max-width: 373px;
    max-height: 90%;
}

header .direita {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-end;
}

header .direita .midias {
    width: 150px;
    height: 60px;
    font-size: 0.8rem;    
    display: flex;
    justify-content: flex-end;
    align-items: center;    
    gap: 5px;
    border-bottom: solid 2px var(--azul);  
}

/* Estiliza o ícone + círculo */
.social-icon {
  position: relative;
  display: inline-block;
  width: 30px;
  height: 30px;
  vertical-align: middle;
  line-height: 0;
}

.social-icon img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  display: block;
}

/* SVG com 3px de margem ao redor do ícone */
.circle-border {
  position: absolute;
  top: -3px;
  left: -3px;
  width: 36px;
  height: 36px;
  transform: rotate(-90deg);
  pointer-events: none;
  z-index: 1;
}

.circle-border circle {
  fill: none;
  stroke: rgb(161, 161, 161);
  stroke-width: 2;
  stroke-dasharray: 113;     /* 2πr = 2 * π * 18 ≈ 113 */
  stroke-dashoffset: 113;
  transition: stroke-dashoffset 0.6s ease;
}

.social-icon:hover .circle-border circle {
  stroke-dashoffset: 0;
}



/* fim do círculo nas mídias */

header .direita ul {    
    list-style: none;
    display: flex;
    gap: 50px;
    align-items: center;
}

header .direita ul a {
    text-decoration: none;
    color: var(--cinza);
    position: relative;
}

header .direita ul a::before {
    content:"";
    display: block;
    width: 25px;
    height: 25px;
    background-image: url('../../img/gancho_1.png');
    background-repeat: no-repeat;
    background-size:contain;
    position: absolute;
    left: -28px;
    opacity:0;
    transition: opacity 0.3s ease;
}

header .direita ul a:hover::before {
    content:"";
    display: block;
    width: 25px;
    height: 25px;
    background-image: url('../../img/gancho_1.png');
    background-repeat: no-repeat;
    background-size:contain;
    position: absolute;
    left: -28px;
    opacity:1;
}

header .direita ul a::after {
    content: "";
    display: block;
    width: 0;
    height: 2px;
    background-color: var(--azul);
    position: absolute;
    top:25px;
    left:0;
    transition: width 0.5s ease;
}

header .direita ul a:hover::after {
    content: "";
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--azul);
    position: absolute;
    top:25px;
    left:0;
}

header .direita ul li {
    display:inline-flex;
    font-weight: bold;  
}

header .direita .menu {
    height: 100%;
    display: flex;
    align-items: center;
    font-size: 0.9rem;
    line-height: 0.8rem;
    text-align: center;
}

/* -- menu escondido */


header .direita .menu #btn-menu {
  display: none;
  font-size: 28px;
  background: none;
  border: none;
  cursor: pointer;
  transition: transform 0.5s ease;
}

header .direita .menu #btn-menu:active {
    transform: rotate(90deg);
}


#menu-mobile {
    position: fixed;
    top: 0;
    left: -250px; /* escondido fora da tela */
    width: 250px;
    height: 100%;
    background:var(--azul);
    box-shadow: 2px 0 10px rgba(0,0,0,0.2);
    transition: left 0.3s ease;
    z-index: 1000;
    padding: 20px;    
}

#menu-mobile.ativo {
  left: 0; /* Faz o menu deslizar para dentro da tela */
}

#menu-mobile ul {
    margin-top: 50px;
    list-style: none;
    line-height: 2rem;
    display:flex;
    flex-direction: column;
    
}

#menu-mobile ul li a {
    position: relative;
    text-decoration: none;    
    color:#fff;
    font-size: 0.8rem;
}

#menu-mobile ul li a::before {
    content:"";
    display: block;
    width: 25px;
    height: 25px;
    background-image: url('../../img/gancho_1branco.png');
    background-repeat: no-repeat;
    background-size:contain;
    position: absolute;
    left: -28px;
    top: 8px;
    opacity:0;
    transition: opacity 0.3s ease;
}

#menu-mobile ul li a:hover::before {
    opacity:1;
}

#menu-mobile ul li a::after {
    content: "";
    position: absolute;
    left: 0;
    top:35px;
    height: 2px;
    width: 0%;
    background-color: currentColor;
    transition: width 0.3s ease;
}

#menu-mobile ul li a:hover::after {
    width:100%
}

#menu-mobile #btn-fechar {
    width: 35px;
    height: 35px;    
    border: solid 3px var(--vermelho-p);
    background-color: rgb(206, 206, 206);
    font-weight: bold;
    font-size: 1.1rem;
    color: var(--vermelho-p);
    border-radius: 5px;
    float:right;
    cursor: pointer;
    transition: transform 0.3s ease;
}

#menu-mobile #btn-fechar:hover {
    transform: rotate(90deg);
}

/*--- Header Pages */
.header-pages {
    height: 100px;
}

.header-pages .logo {
    margin-top: 8px;
    height: 80%;
}

/* --- IMAGEM HEADER PAGES */
.content-pages {
    width: 100vw;
    height: 100%;
    display:flex;
    flex-direction: column; 
    align-items: center;
}

.content-pages .banner {
    width: 100%;
    height: 200px;
    position: relative;
    overflow: hidden;
    margin-bottom: 80px;
}

.content-pages .banner .curva, .azul, .img-banner {
    width: 100%;
    position:absolute;
    left: 0;
    bottom: 0;    
}

.content-pages .banner .curva {
    height: auto;
    z-index: 3;    
}

.content-pages .banner .azul {
    height: 100%;
    background-color: var(--azul);
    mix-blend-mode: color;
    z-index: 2;
    border-bottom: solid 1px white;
}

.content-pages .banner .img-banner {
    height: auto;
    z-index: 1;
    opacity: 30%;
    position: absolute;
    /*top:-1700px;*/
    object-position: center;
}



/* --- TOPO INDEX */
.content-home {
    width: 100vw;
    height: 100%;    
}

.content-home .banner {
    width: 100%;
    height: 50vh;
    position: relative;
    overflow: hidden;
}

.content-home .banner .curva, .azul, .img-banner {
    width: 100%;
    position:absolute;
    left: 0;
    bottom: 0;
}

.content-home .banner .curva {
    height: auto;
    z-index: 3;    
}

.content-home .banner .azul {
    height: 100%;
    background-color: var(--azul);
    mix-blend-mode: color;
    z-index: 2;
    border-bottom: solid 1px white;
}

.content-home .banner .img-banner {
    height: auto;
    z-index: 1;
    opacity: 30%;
}

.content-home .banner .guindastinho {
    position: absolute;
    width: auto;
    height: 80%;    
    right: 50%;
    bottom: 10%;
    z-index: 5;
}

.content-home .banner .faixa-maior {
    position: absolute;
    width: 100%;
    height: 70px;        
    bottom: 30%;
    z-index: 4;
    background-color: rgba(255, 255, 255, 0.6);
    padding: 8px 0;
}

.content-home .banner .faixa-maior .faixa-menor {
    width: 100%;
    height: 100%;
    background-color: white;    
    position: relative;
}

.content-home .banner .faixa-maior .faixa-menor p {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translateY(-50%);
    line-height: 20px;
    font-style: italic;
    color: black;
}

.content-home .banner .faixa-maior .faixa-menor p span{
    color: var(--azul)
}

/* INDEX - SERVIÇOS */
.content-home h1 {
    width: 100%;
    text-align: center;
    margin-bottom: 50px;
}

.content-home .servicos {
    padding: 50px 15%;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
}

.content-home .servicos .cada {
    width: 250px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    font-style: italic;
    text-transform: uppercase;
    color: var(--cinza);    
}

.content-home .servicos a .cada .imagem {
    width: 250px;
    height: 188px;
    overflow: hidden;
    object-fit: cover;
    object-position: center center;
    margin-bottom: 10px;     
    transition: box-shadow 0.3s ease;  
}

.content-home .servicos a:hover .cada .imagem {
    box-shadow: 0 0 0 3px var(--azul);
}

.content-home .servicos a .cada .imagem img {
    transition: all 0.3s ease-out;    
    transform: scale(1);
}

.content-home .servicos a:hover .cada .imagem img{
    outline: solid 3px var(--azul);
    transform: scale(1.1);
}

.content-home .servicos a {
    text-decoration: none;
}

.content-home .servicos a:hover span {
    color: var(--azul);
}

.content-home hr {
    margin: 50px 30% 80px 30%;
    border: solid 1px var(--azul);
}

/* LOGOS CLIENTES */
.logo-marquee {
  overflow: hidden;
  width: 70%;
  position: relative;
  background: #fff;
}

.logo-track {
  display: flex;
  width: max-content;
  animation: scroll-left 30s linear infinite;
  align-items: center;
}

.logo-marquee:hover .logo-track {
  animation-play-state: paused;
}

.logo-item {
  flex: 0 0 auto;
  padding: 0 20px;
}

.logo-item img {
  max-height: 120px;
  width: auto;
  display: block;
}

@keyframes scroll-left {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-20%);
  }
}

.content-home .clientes {
    width: 100vw;
    display: flex; 
    flex-direction: column;
    align-items: center;
    margin-bottom: 50px;
}

/*---- PAGES */
h1 {
    font-size: 1.8rem;
    margin-bottom: 50px;
    color: var(--cinza);
}

/*---- Quem somos */
.historia {
    width:70%;    
    text-align: justify;
}

.quadros {
    width: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    margin: 50px 0;
    text-align: justify;
}

.quadro {
    width: 100%;
    padding: 20px;
    color:#fff;
    position: relative;   
}

.quadro h2 {
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.quadro h2::after {    
    content: '';
    width:calc(100% - 40px);
    height: 1px;
    background-color: #fff;
    position:absolute;
    left:20px;
    top: 60px;
}

.missao, .valores {
    background-color: var(--azul);
}

.visao {
    background-color: var(--cinza);
}

/* ---- Serviços */
.content-services {
    width:70%;        
    text-align: justify;
    display: flex;
    flex-direction: column;
    gap:150px;    
}

.content-services .post-servico {
    width: 100%;
    display: flex;
    flex-direction: row;
    gap: 30px;
    position:relative;
}

.content-services .post-servico::after {
    content: '';
    width: 100%;
    height: 2px;
    background-color: var(--azul);
    position: absolute;
    top: -70px;    
}

.content-services .post-servico:first-child::after {
    display: none;
}

.content-services .post-servico .imagem {
    width: 500px;
    height: 250px;
    padding: 10px 18px 50px 10px;    
    background-image: url('../../img/back-servico.svg');
    background-repeat: no-repeat;
    background-size:contain;
}

.content-services .post-servico .imagem div {
    width: 100%;
    height: 100%;
    border:solid 2px #fff;
    border-radius: 0 0 25px 0;
    overflow: hidden;
    object-fit: contain;
    object-position: center;
}

.content-services .post-servico .texto-servico h2 {
    font-size: 1.2rem;
    color: var(--azul);
    margin-bottom:15px;
}

/* ---- CONTATO */

.container-form {
    width: 100vw;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    background-image: url('../../img/back-contato.png');  
    background-repeat: no-repeat;
    background-size: cover;
    border-bottom: solid 2px var(--azul);
}

.content-form {    
    min-width: 450px;    
    border-radius: 20px;
    /*border:solid 3px var(--azul);*/
    padding: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;    
}

.content-form p {
    width:100%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;  
}

.content-form input, textarea  {
    width: 400px; 
    padding: 10px;
    border-radius: 30px;
    border: solid 2px var(--azul);    
    font-size: 0.9rem;
    margin-bottom: 15px;
    background-color: #fffae6;
    font-family: 'Calibri';
    font-weight: normal;
}

.content-form input::placeholder, textarea::placeholder  {
    font-size: 0.7rem;
    color: var(--cinza); 
}

.content-form input:active, textarea:active {
    outline: 3px solid var(--azul);
}


.content-form input[type=submit] {
    width: 180px;    
    background-color: var(--cinza);
    color: #fff;
    border:0;    
    transition: background-color 0.3s ease;
    cursor: pointer;
}

.content-form input[type=submit]:hover {
    background-color: var(--azul);    
}

.content-form .wpcf7-not-valid-tip {
    text-align: right;
    font-size: 0.7rem;
    font-weight: bold;
}


/*---- 404 */

.btn {
    width: 180px;    
    background-color: var(--cinza);
    color: #fff;
    border:0;    
    transition: background-color 0.3s ease;
    cursor: pointer;
    padding: 20px;
    border-radius: 50px;
    font-weight: bold;    
    text-decoration: none;    
}


.btn:hover {
    background-color: var(--azul);  
}


.container-404 {
    padding: 20px;
}



/* ----- Footer */
.footer-pg {
    width: 100vw;
    height: auto;
    background-color: var(--azul);
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    padding: 50px 0;
    margin-top: 50px;
}

.footer-pg .footer-content {
    width: 70%;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 30px;
    align-items: flex-start;
    justify-content: left;    
}

.footer-pg .logo {
    width: 150px;    
}

.footer-pg .endereco {
    width: calc(100% - 480px);
    color: #fff;
    font-size: 0.9rem;
    font-weight: normal;    
}

.footer-pg .endereco a{
    margin-top: 10px;
}

.footer-pg .endereco::first-line {
    font-size: 1rem;
    font-weight: bold;
}

.footer-pg .mapa {
    position: relative;    
}

.footer-pg .mapa::before {
    content: '';
    position: absolute;
    width: 40px;
    height: 40px;
    top:10px;
    left:10px;    
    background-image: url('../../img/lupa.png');
    background-repeat: no-repeat;
    background-size: cover;
    opacity:0;    
    transition:opacity 0.3s ease;  
}

.footer-pg .mapa:hover::before {
    opacity: 1;
}

.footer-pg .mapa::after {
    content: 'Clique para ampliar';
    position: absolute;
    top: 180px;
    left: 0;
    width: 100%;
    height: 20px;
    text-align: center;
    background-color: rgba(0, 108, 168, 0.6);
    font-size: 0.7rem;
    color:#fff;
}

.footer-pg .mapa img {
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0);
    transition:box-shadow 0.3s ease;
}

.footer-pg .mapa img:hover {
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 1);    
}

#mapa-google {
    opacity: 0;
    pointer-events: none;
    transform: scale(0.98);
    transition: opacity 0.3s ease, transform 0.3s ease;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    padding: 1rem;
    background:rgba(0, 0, 0, 0.8);
    border: 1px solid #ccc;
    z-index: 9999;
    overflow: auto;
}

#mapa-google.ativo {
    opacity: 1;
    pointer-events: auto;
    transform: scale(1);
}

.mapa-conteudo {
    background: white;
    width: 90%;
    max-width: 850px;
    height: 90%;
    max-height: 700px;
    margin: 2rem auto;
    padding: 1rem;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: right;
}

.mapa-conteudo iframe {
    width: 100%;
    max-width: 800px;
    height: 100%;
    max-height: 600px;
}

.footer-pg #fechar-mapa { 
    width: 80px;
    height: 20px;
    background: transparent;
    border: none;
    font-size: 0.8rem;
    color: rgb(143, 37, 37);
    cursor: pointer;
    margin-bottom: 20px;    
}

.footer-pg #fechar-mapa:hover { 
    transform: translate(1px, 1px);
}

.footer-pg .endereco a {
    text-decoration: none;
}

.footer-pg #telefone {
    position: relative;
    top: 7px;
    color:#fff;
    text-decoration: none;
}

.footer-pg #telefone::after {
    content: '';
    width: 0;
    height: 1.3px;
    background-color: #fff;
    position: absolute;
    bottom: -3px;
    left: 0;
    transition: all 0.3s ease;
}

.footer-pg #telefone:hover::after {
    width: 100%;
}

/*RESPONSIVO */

/* Tablets (768px a 1024px) */
@media (max-width: 1024px) {
 
    /*index*/
    header {
        padding:0 8%;
    }

    .content-home .servicos {
        padding: 50px 8%;
    }

    /*footer*/
    .footer-pg .footer-content {
        width: 90%;
    }

    /*quem somos*/
    .historia {
        width: 90%;
    }

    .quadros {
        width: 75%;
    }

    /*servicos*/
    .content-services {
        width: 90%;
    }

    /*contato*/
    .container-form {
        background-size: 50%;
        background-position: left bottom;
    }

}

/* Tablets (até 768px) */
@media (max-width: 768px) {
    header .logo {
        width: 80%;
    }
    

    header .direita .menu ul{
        display: none;
    }

    header .direita .menu #btn-menu {
    display: inline-block; /* mostra o hambúrguer */
    }

    .footer-pg .footer-content {    
    flex-direction: column;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    }

    .footer-pg .endereco {
    width: 80%;
    text-align: center;
    }
}