/* Projeglass.RS, versão A: "Caixilho"
   Base clara de alumínio, marinho do logo, cobre nos detalhes.
   Verde do WhatsApp só no botão do menu e no flutuante; texto dos botões sempre branco.
   As páginas são geradas por gerador/gerar.js. */

:root {
  --aluminio: #E8ECEE;
  --aluminio-2: #D9DFE2;
  --branco: #FFFFFF;
  --marinho: #163247;
  --azul: #043C62;
  --noite: #0F2433;
  --cobre: #D48D5F;
  --tijolo: #5D3124;
  --grafite: #3E3E3E;
  --linha: #C3CCD1;
  --wa: #25D366;
  --wa-hover: #1EBE5B;
  --topo-h: 124px;
  --g: clamp(16px, 4vw, 48px);
  --max: 1240px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--aluminio); color: var(--grafite);
  font: 400 1.0625rem/1.6 "Roboto", system-ui, sans-serif;
  overflow-x: hidden;
}
body.sem-rolagem { overflow: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { color: var(--marinho); margin: 0; text-wrap: balance; }
h2 { font-weight: 700; font-size: clamp(1.8rem, 3.4vw, 2.6rem); line-height: 1.15; }
h3 { font-weight: 700; font-size: 1.2rem; line-height: 1.25; }
p { margin: 0 0 1em; max-width: 64ch; text-wrap: pretty; }
:focus-visible { outline: 3px solid var(--cobre); outline-offset: 3px; }

.pular { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--marinho); color: #fff; padding: .6rem 1rem; }
.pular:focus { left: 8px; }

/* Botões */
.bt {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  min-height: 50px; padding: .75rem 1.5rem; border-radius: 999px;
  font: 700 1rem/1.2 "Roboto", sans-serif; text-decoration: none; text-align: center;
  border: 2px solid transparent; transition: background-color .2s, color .2s, border-color .2s;
}
.bt .ico { width: 1.3em; height: 1.3em; flex: none; }
.bt-wa { background: var(--wa); color: #fff; }
.bt-wa:hover { background: var(--wa-hover); }
.bt-acao { background: var(--marinho); color: #fff; }
.bt-acao:hover { background: var(--azul); }
/* em fundo escuro o botão vai para o cobre; texto sempre branco (pedido do Renan) */
.abertura .bt-acao, .pag-abertura .bt-acao, .construtoras .bt-acao, .extensao .bt-acao { background: var(--cobre); color: #fff; }
.abertura .bt-acao:hover, .pag-abertura .bt-acao:hover, .construtoras .bt-acao:hover, .extensao .bt-acao:hover { background: #C27A4B; }
.bt-grande { min-height: 58px; font-size: 1.1rem; padding-inline: 1.9rem; }

/* Topo: faixa marinho com o logo branco, como no site antigo */
.topo { position: relative; z-index: 50; background: var(--marinho); }
/* logo encostado à esquerda e menu à direita, com a largura toda da tela entre eles */
.topo-in { height: var(--topo-h); padding: 0 clamp(16px, 5vw, 80px); display: flex; align-items: center; gap: 2.5rem; }
.marca img { height: 80px; width: auto; }
.nav { margin-left: auto; display: flex; align-items: center; gap: 1.8rem; }
.nav > a:not(.bt), .sol-btn {
  text-decoration: none; font: 300 17px/1.2 "Roboto", sans-serif; color: #fff;
  padding: .5rem 0; border: 0; border-bottom: 2px solid transparent; background: none; cursor: pointer;
}
.nav > a:not(.bt):hover, .sol-btn:hover, .sol-btn[aria-expanded="true"] { border-bottom-color: var(--cobre); }
.sol { position: relative; }
.sol-btn { display: inline-flex; align-items: center; gap: .35rem; }
.sol-btn svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 1.6; transition: transform .2s; }
.sol-btn[aria-expanded="true"] svg { transform: rotate(180deg); }
.sol-lista {
  position: absolute; top: calc(100% + 14px); left: -1.2rem; min-width: 290px;
  background: var(--branco); border: 1px solid var(--linha); border-radius: 14px;
  box-shadow: 0 14px 34px rgba(15, 36, 51, .16); padding: .5rem;
  display: none;
}
.sol-lista.aberta { display: grid; }
/* área invisível entre o botão e a lista, para o mouse não "cair" no caminho */
.sol-lista::before { content: ""; position: absolute; left: 0; right: 0; top: -16px; height: 16px; }
@media (hover: hover) and (min-width: 860.02px) {
  .sol:hover .sol-lista, .sol:focus-within .sol-lista { display: grid; }
  .sol:hover .sol-btn { border-bottom-color: var(--cobre); }
  .sol:hover .sol-btn svg { transform: rotate(180deg); }
}
.sol-lista a { text-decoration: none; color: var(--marinho); padding: .65rem .9rem; border-radius: 9px; }
.sol-lista a:hover, .sol-lista a[aria-current] { background: var(--aluminio); }
.sol-lista a[aria-current] { font-weight: 700; }
.nav-bt { min-height: 44px; padding: .55rem 1.15rem; }
.menu-btn { display: none; }

/* Abertura da página inicial: fotos do site antigo passando, com o texto por cima */
/* corte de baixo igual ao do site antigo: as laterais sobem 47px e a ponta fica a 26% da largura */
.abertura {
  position: relative; isolation: isolate; overflow: hidden; color: #fff;
  display: block;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 47px), 26.2% 100%, 0 calc(100% - 47px));
  margin-bottom: -47px;
}
.slides, .slide { position: absolute; inset: 0; }
.slides { z-index: -2; background: var(--noite); }
.slide { background-size: cover; background-position: center; opacity: 0; transform: scale(1); transition: opacity 1s ease; }
.slide.ativo { opacity: 1; animation: aproxima 7s linear forwards; }
.slide.saindo { transform: scale(1.1); }
@keyframes aproxima { to { transform: scale(1.12); } }
/* mesmo véu do site antigo: marrom bem escuro a 58% */
.abertura::before { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(34, 21, 1, .58); }
/* texto e posição medidos no site antigo (tela de 1440px): título 116px abaixo do topo da seção,
   traço 7px abaixo do título, texto 28px abaixo do traço, botão 36px abaixo do texto, 183px até o fim */
.abertura-in { width: 100%; max-width: 1103px; margin: 0 auto; padding: 116px 20px 183px 0; }
.abertura h1 { color: #fff; font-weight: 700; font-size: 58px; line-height: 58px; letter-spacing: 0; max-width: none; }
.abertura .traco { margin: 7px 0 28px; width: 128px; height: 3.2px; border-radius: 0; }
.abertura .abertura-sub { margin: 0 0 36px; max-width: none; font-size: 21px; line-height: 21px; font-weight: 300; color: #fff; }
.abertura .bt-acao { min-height: 46px; font-weight: 500; line-height: 16px; padding: 15px 30px; border: 0; }
.abertura .bt-acao .ico { display: none; }
.pag-abertura h1 { color: #fff; font-weight: 700; line-height: 1.1; }
.traco { display: block; width: 88px; height: 4px; background: var(--cobre); margin: 1.6rem 0; border-radius: 2px; }
.abertura-sub { font-size: clamp(1.1rem, 1.6vw, 1.3rem); font-weight: 300; max-width: 46ch; margin: 0 0 2rem; color: #E9EFF3; }
.acoes { display: flex; flex-wrap: wrap; gap: .8rem; }

/* Motivos */
.motivos {
  background: var(--branco);
  padding: calc(clamp(3.5rem, 8vw, 6.5rem) + 47px) var(--g) clamp(3.5rem, 8vw, 6.5rem);
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: clamp(2rem, 5vw, 5rem);
}
.motivos > * { max-width: calc(var(--max) / 2); }
.motivos-intro { justify-self: end; }
.motivos-intro h2 { margin-bottom: 1.4rem; }
.motivos-lista { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 2.2rem 2.5rem; align-content: start; }
.motivo-ico {
  width: 58px; height: 58px; padding: 14px; margin-bottom: 1rem; border-radius: 50%;
  background: var(--aluminio); fill: none; stroke: var(--marinho); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round;
}
.motivos-lista dt { font-weight: 700; color: var(--marinho); font-size: 1.15rem; margin-bottom: .4rem; }
.motivos-lista dd { margin: 0; }

/* Cabeçalho de seção */
.secao-cab { max-width: var(--max); margin: 0 auto clamp(2rem, 4vw, 3rem); padding: 0 var(--g); }
.secao-cab h2 { font-size: clamp(2rem, 4vw, 2.9rem); margin-bottom: .5rem; }
.secao-cab p { margin: 0; font-size: 1.1rem; }

/* Soluções: cartões que levam às páginas */
.solucoes { padding: clamp(3.5rem, 8vw, 6rem) 0; }
.cards { list-style: none; margin: 0 auto; padding: 0 var(--g); max-width: var(--max); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.5rem, 3vw, 2.5rem) clamp(1rem, 2.4vw, 2rem); }
.card { display: flex; flex-direction: column; height: 100%; text-decoration: none; }
.card img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover; margin-bottom: 1.1rem; background: var(--aluminio-2);
  clip-path: polygon(0 9%, 100% 0, 100% 100%, 0 93%); transition: clip-path .35s ease;
}
.card:hover img { clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%); }
.card h3 { font-size: 1.3rem; font-weight: 700; margin-bottom: .5rem; }
.card p { font-size: .98rem; margin-bottom: 1rem; flex: 1; }
.card-link { align-self: flex-start; font-weight: 700; color: var(--marinho); border: 1.5px solid var(--marinho); border-radius: 999px; padding: .5rem 1.1rem; transition: background-color .2s, color .2s; }
.card:hover .card-link { background: var(--marinho); color: #fff; }

/* Nossos projetos */
.projetos { background: var(--branco); padding: clamp(3.5rem, 8vw, 6rem) 0; }
.projetos-grade { max-width: var(--max); margin: 0 auto; padding: 0 var(--g); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.projetos-grade figure { position: relative; margin: 0; }
.projetos-grade img { width: 100%; aspect-ratio: 1; object-fit: cover; background: var(--aluminio-2); }

/* Fotos que ampliam */
.ampliar { position: absolute; left: 0; top: 0; width: 100%; aspect-ratio: 1; border: 0; padding: 0; background: transparent; cursor: zoom-in; }
.ampliar:hover { background: rgba(22, 50, 71, .14); }

/* Construtoras */
.construtoras { background: var(--marinho); color: #fff; }
.construtoras-in { max-width: var(--max); margin: 0 auto; padding: clamp(3.5rem, 8vw, 6rem) var(--g); display: grid; grid-template-columns: auto 1fr auto; gap: 1rem 3rem; align-items: center; }
.construtoras h2 { color: #fff; font-size: clamp(2rem, 4vw, 2.9rem); }
.construtoras p { margin: 0; font-size: 1.3rem; }

/* Clientes */
.clientes { background: var(--branco); padding: clamp(3rem, 7vw, 5rem) var(--g); text-align: center; }
.clientes h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); margin-bottom: 2rem; }
.logos { list-style: none; margin: 0 auto; padding: 0; max-width: var(--max); display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 1.5rem; align-items: center; }
.logos img { width: 100%; max-width: 160px; margin: 0 auto; filter: grayscale(1); opacity: .75; mix-blend-mode: multiply; }

/* Quem somos */
.sobre { max-width: var(--max); margin: 0 auto; padding: clamp(3.5rem, 8vw, 6.5rem) var(--g); display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.sobre-foto { margin: 0; }
.sobre-foto img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; clip-path: polygon(0 8%, 100% 0, 100% 100%, 0 92%); }
.sobre h2 { margin-bottom: 1.4rem; }
.valores { list-style: none; padding: 0; margin: 1.6rem 0 2.2rem; display: flex; flex-wrap: wrap; gap: .5rem; }
.valores li { border: 1.5px solid var(--marinho); border-radius: 999px; color: var(--marinho); font-weight: 700; padding: .35rem 1rem; }
.proposito { margin: 0; padding: 1.4rem 0 0; border-top: 2px solid var(--marinho); }
.proposito p { font-weight: 300; font-size: clamp(1.2rem, 2vw, 1.5rem); line-height: 1.3; color: var(--marinho); margin-bottom: .6rem; }
.proposito footer { color: var(--tijolo); font-weight: 700; font-size: .95rem; }

/* Páginas das soluções */
.pag-abertura {
  position: relative; isolation: isolate; color: #fff; background-size: cover; background-position: center;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 62% calc(100% - 44px), 0 100%);
}
.pag-abertura::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(15, 36, 51, .9) 0%, rgba(15, 36, 51, .7) 60%, rgba(15, 36, 51, .45) 100%); }
.pag-abertura-in { max-width: var(--max); margin: 0 auto; padding: clamp(2.5rem, 6vw, 4.5rem) var(--g) calc(clamp(3rem, 6vw, 5rem) + 44px); }
.pag-abertura h1 { font-size: clamp(2.1rem, 4.6vw, 3.6rem); max-width: 20ch; }
.voltar { display: inline-flex; align-items: center; gap: .4rem; color: #DCE6EC; text-decoration: none; font-size: .95rem; margin-bottom: 1.4rem; }
.voltar::before { content: ""; width: 8px; height: 8px; border-left: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); }
.voltar:hover { color: #fff; text-decoration: underline; }

.pag { max-width: var(--max); margin: 0 auto; padding: clamp(3rem, 7vw, 5rem) var(--g); }
.sub { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 2rem 3.5rem; padding-bottom: clamp(3rem, 6vw, 4.5rem); margin-bottom: clamp(3rem, 6vw, 4.5rem); border-bottom: 1px solid var(--linha); }
.sub-txt h2 { font-size: clamp(2rem, 3.6vw, 2.8rem); margin-bottom: 1rem; }
.beneficios { margin: 1.6rem 0 0; display: grid; gap: 1rem; }
.beneficios div { padding-left: 1rem; border-left: 3px solid var(--cobre); }
.beneficios dt { font-weight: 700; color: var(--marinho); }
.beneficios dd { margin: .15rem 0 0; font-size: .98rem; }

.obras { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; align-content: start; }
.obras-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.obras-1 { grid-template-columns: minmax(0, 1fr); max-width: 520px; }
.obras figure { position: relative; margin: 0; }
.obras img { width: 100%; aspect-ratio: 1; object-fit: cover; background: var(--aluminio-2); }
.obras figcaption { font-size: .86rem; line-height: 1.3; padding-top: .45rem; }
.obras .destaque { grid-column: span 2; grid-row: span 2; }
.obras .destaque img { aspect-ratio: auto; height: calc(100% - 2.3rem); }
.obras .destaque .ampliar { aspect-ratio: auto; height: calc(100% - 2.3rem); }

.pag-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem; background: var(--branco); border-radius: 20px; padding: 1.6rem clamp(1.2rem, 3vw, 2.4rem); }
.pag-cta p { margin: 0; font-size: 1.35rem; color: var(--marinho); font-weight: 500; }

.outras { max-width: var(--max); margin: 0 auto; padding: 0 var(--g) clamp(3rem, 7vw, 5rem); }
.outras h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 1rem; }
.outras-lista { display: flex; flex-wrap: wrap; gap: .6rem; }
.outras-lista a { text-decoration: none; color: var(--marinho); font-weight: 700; border: 1.5px solid var(--marinho); border-radius: 999px; padding: .6rem 1.15rem; }
.outras-lista a:hover { background: var(--marinho); color: #fff; }

/* "Abraçamos cada projeto": como no site antigo, foto de fundo, véu marrom para azul e corte no topo */
.extensao {
  position: relative; isolation: isolate; color: #fff;
  background-color: #221501; background-size: cover; background-position: center;
  clip-path: polygon(0 0, 38% 56px, 100% 0, 100% 100%, 0 100%);
}
.extensao::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(110deg, #221501 60%, #043C62 100%); opacity: .65; }
.extensao-in { max-width: var(--max); margin: 0 auto; padding: calc(clamp(4rem, 9vw, 7rem) + 56px) var(--g) clamp(4rem, 8vw, 6rem); }
.extensao h2 { color: #F7B68C; font-weight: 500; font-size: clamp(1.8rem, 3.4vw, 2.6rem); line-height: 1.15; max-width: 17ch; }
.extensao .traco { background: #F7B68C; }
.extensao p { font-size: clamp(1.05rem, 1.5vw, 1.25rem); max-width: 40ch; margin-bottom: 2rem; }

/* Rodapé */
.rodape { background: var(--noite); color: #B9CAD6; }
.rodape-in { max-width: var(--max); margin: 0 auto; padding: clamp(3rem, 6vw, 4.5rem) var(--g) 2.5rem; display: grid; grid-template-columns: 1.3fr 1fr 1.1fr 1fr; gap: 2.5rem clamp(1.5rem, 3vw, 3rem); }
.rodape-marca img { height: 64px; width: auto; margin-bottom: 1.2rem; }
.rodape p { margin: 0 0 1rem; font-size: .95rem; line-height: 1.55; }
.rodape h2 { color: #fff; font-size: 1.05rem; font-weight: 700; letter-spacing: 0; margin-bottom: .9rem; }
.rodape a { color: #fff; text-decoration-color: rgba(212, 141, 95, .7); text-underline-offset: 3px; overflow-wrap: anywhere; }
.rodape a:hover { text-decoration-color: var(--cobre); }
.rodape .bt { margin-top: .4rem; min-height: 46px; padding: .6rem 1.2rem; font-size: .95rem; background: var(--cobre); color: #fff; text-decoration: none; }
.rodape .bt:hover { background: #E09D71; }
.rodape ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; font-size: .95rem; }
.rodape-fim { max-width: var(--max); margin: 0 auto !important; padding: 1.3rem var(--g) 1.6rem; border-top: 1px solid rgba(185, 202, 214, .18); font-size: .86rem !important; }

.rodape-fim a { margin-left: 1rem; color: #B9CAD6; }
.rodape-fim a:hover { color: #fff; }

/* Política de privacidade */
.politica { max-width: 760px; margin: 0 auto; padding: clamp(2.5rem, 6vw, 4.5rem) var(--g) clamp(3rem, 7vw, 5rem); }
.politica h1 { font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 700; line-height: 1.15; margin: 1.2rem 0 .4rem; }
.politica h2 { font-size: 1.3rem; margin: 2.2rem 0 .7rem; scroll-margin-top: 1rem; }
.politica ul { padding-left: 1.2rem; margin: 0 0 1em; }
.politica li { margin-bottom: .4rem; }
.politica-data { color: #5A6670; font-size: .95rem; }
.voltar-escuro { display: inline-flex; align-items: center; gap: .4rem; color: var(--marinho); font-size: .95rem; }

/* Aviso de cookies */
.cookies {
  position: fixed; left: 16px; bottom: 16px; z-index: 60; max-width: 440px;
  background: var(--branco); color: var(--grafite); border-radius: 16px;
  box-shadow: 0 12px 36px rgba(15, 36, 51, .28); padding: 1.2rem 1.3rem;
}
.cookies p { margin: 0 0 1rem; font-size: .95rem; line-height: 1.5; }
.cookies a { color: var(--marinho); font-weight: 500; white-space: nowrap; }
.cookies-botoes { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1.2rem; }
.cookies .bt { min-height: 46px; padding: .6rem 1.6rem; font-size: 1rem; }
/* recusar continua visível e fácil de clicar, só com menos destaque que o "Aceitar" */
.cookies-recusar {
  min-height: 44px; padding: .4rem .2rem; border: 0; background: none; cursor: pointer;
  font: 400 .9rem/1.2 "Roboto", sans-serif; color: #4A5560; text-decoration: underline; text-underline-offset: 3px;
}
.cookies-recusar:hover { color: var(--marinho); }
/* no computador o "Aceitar" fica à direita */
@media (min-width: 860.02px) {
  .cookies-botoes { justify-content: flex-end; }
  .cookies-recusar { order: -1; }
}

/* WhatsApp fixo */
.flutuante {
  position: fixed; right: 20px; bottom: 20px; z-index: 45;
  display: grid; place-items: center; width: 62px; height: 62px; border-radius: 50%;
  background: var(--wa); color: #fff; box-shadow: 0 6px 20px rgba(15, 36, 51, .3);
  transition: background-color .2s, transform .2s;
}
.flutuante svg { width: 34px; height: 34px; }
.flutuante:hover { background: var(--wa-hover); transform: scale(1.05); }

/* Visor de fotos */
.visor { border: 0; padding: 0; background: transparent; max-width: min(1100px, 94vw); max-height: 92vh; overflow: visible; }
.visor::backdrop { background: rgba(15, 36, 51, .9); }
.visor img { max-width: 100%; max-height: 80vh; width: auto; margin: 0 auto; }
.visor p { color: #fff; text-align: center; margin: .8rem auto 0; }
.visor-fechar { position: absolute; top: -48px; right: 0; width: 44px; height: 44px; font-size: 2rem; line-height: 1; color: #fff; background: transparent; border: 0; cursor: pointer; }

/* Tablet */
@media (max-width: 1140px) {
  .abertura-in { padding-left: var(--g); }
}
@media (max-width: 1100px) {
  .nav { gap: 1.1rem; }
  .nav > a:not(.bt), .sol-btn { font-size: 16px; }
  .marca img { height: 68px; }
}
@media (min-width: 860.02px) and (max-width: 1000px) {
  .topo-in { gap: 1.2rem; }
  .nav { gap: .85rem; }
  .nav > a:not(.bt), .sol-btn { font-size: 15px; }
  .marca img { height: 56px; }
  .nav-bt { padding: .5rem .9rem; white-space: nowrap; }
}
@media (min-width: 860.02px) and (max-width: 920px) {
  .topo-in { padding-inline: 16px; gap: 1rem; }
  .nav { gap: .65rem; }
  .nav > a:not(.bt), .sol-btn { font-size: 14px; }
  .marca img { height: 50px; }
}
@media (max-width: 1024px) {
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sub { grid-template-columns: 1fr; }
  .logos { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .construtoras-in { grid-template-columns: 1fr; justify-items: start; }
  .rodape-in { grid-template-columns: 1fr 1fr; }
  /* no tablet o site antigo centraliza a abertura */
  .abertura-in { text-align: center; padding: 73px var(--g) 140px; }
  .abertura .traco { margin-inline: auto; }
}

/* Celular */
@media (max-width: 860px) {
  :root { --topo-h: 72px; }
  html { scroll-padding-top: var(--topo-h); }
  .topo { position: sticky; top: 0; }
  .marca img { height: 50px; }
  .menu-btn {
    display: inline-flex; align-items: center; gap: .5rem; margin-left: auto;
    min-height: 44px; padding: 0 .4rem; background: transparent; border: 0; color: #fff;
    font: 500 1rem "Roboto", sans-serif; cursor: pointer;
  }
  .menu-ico, .menu-ico::before, .menu-ico::after { display: block; width: 22px; height: 2px; background: currentColor; position: relative; transition: transform .2s; }
  .menu-ico::before, .menu-ico::after { content: ""; position: absolute; left: 0; }
  .menu-ico::before { top: -7px; } .menu-ico::after { top: 7px; }
  .menu-btn[aria-expanded="true"] .menu-ico { background: transparent; }
  .menu-btn[aria-expanded="true"] .menu-ico::before { transform: translateY(7px) rotate(45deg); }
  .menu-btn[aria-expanded="true"] .menu-ico::after { transform: translateY(-7px) rotate(-45deg); }
  .nav {
    position: fixed; top: var(--topo-h); left: 0; right: 0; bottom: 0;
    background: var(--branco); flex-direction: column; align-items: stretch; gap: 0;
    padding: .5rem var(--g) 2rem; overflow-y: auto;
    visibility: hidden; opacity: 0; transform: translateY(-8px); transition: opacity .2s, transform .2s, visibility 0s .2s;
  }
  .nav.aberto { visibility: visible; opacity: 1; transform: none; transition: opacity .2s, transform .2s; }
  .nav > a:not(.bt), .sol-btn { font-size: 1.3rem; font-weight: 400; color: var(--marinho); padding: .85rem 0; border-bottom: 1px solid var(--linha); width: 100%; text-align: left; }
  .sol-btn { pointer-events: none; }
  .sol-btn svg { display: none; }
  .sol-lista { position: static; display: grid; min-width: 0; border: 0; box-shadow: none; padding: .3rem 0 .6rem; background: none; border-radius: 0; border-bottom: 1px solid var(--linha); }
  .sol-lista a { padding: .55rem .9rem; font-size: 1.05rem; }
  .nav-bt { margin-top: 1.5rem; min-height: 54px; }

  .abertura { clip-path: polygon(0 0, 100% 0, 100% calc(100% - 28px), 26.2% 100%, 0 calc(100% - 28px)); margin-bottom: -28px; }
  .abertura-in { padding: 61px 35px calc(57px + 28px); }
  .abertura h1 { font-size: 31px; line-height: 1.15; }
  .abertura .traco { margin-top: 14px; margin-bottom: 20px; }
  .abertura .abertura-sub { font-size: 18px; line-height: 1.4; margin-bottom: 24px; }
  .abertura-sub br { display: none; }
  .traco { margin: 1.2rem 0; }
  .abertura .bt { width: 100%; max-width: 360px; }
  .motivos { grid-template-columns: 1fr; padding-top: calc(3.5rem + 28px); }
  .motivos-intro { justify-self: start; }
  .motivos-lista { grid-template-columns: 1fr; gap: 1.8rem; }
  .motivos-lista div { display: grid; grid-template-columns: 58px 1fr; column-gap: 1rem; }
  .motivo-ico { grid-row: span 2; margin: 0; }

  .cards { grid-template-columns: 1fr; }
  .projetos-grade { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
  .projetos-grade figure:last-child { grid-column: span 2; }
  .projetos-grade figure:last-child img { aspect-ratio: 2 / 1; }
  .projetos-grade figure:last-child .ampliar { aspect-ratio: 2 / 1; }

  .pag-abertura { clip-path: polygon(0 0, 100% 0, 100% 100%, 62% calc(100% - 28px), 0 100%); }
  .pag-abertura-in { padding-bottom: calc(3rem + 28px); }
  .pag-abertura .bt, .pag-cta .bt { width: 100%; }
  .obras, .obras-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .obras .destaque { grid-row: auto; }
  .obras .destaque img, .obras .destaque .ampliar { aspect-ratio: 2 / 1.25; height: auto; }

  .logos { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
  .sobre { grid-template-columns: 1fr; }
  .sobre-foto img { aspect-ratio: 4 / 3; clip-path: polygon(0 10%, 100% 0, 100% 100%, 0 90%); }
  .construtoras .bt { width: 100%; }
  /* como no site antigo: no celular, abertura e "Abraçamos" centralizadas */
  .abertura-in, .extensao-in { text-align: center; }
  .abertura .traco, .extensao .traco { margin-inline: auto; }
  .extensao { clip-path: polygon(0 0, 38% 32px, 100% 0, 100% 100%, 0 100%); }
  .extensao-in { padding-top: calc(3.5rem + 32px); }
  .extensao h2, .extensao p { margin-inline: auto; }
  .extensao .bt { width: 100%; max-width: 360px; }
  .rodape-in { grid-template-columns: 1fr 1fr; grid-auto-flow: dense; gap: 2rem 1.2rem; }
  .rodape-marca, .rodape-in > div:nth-child(3) { grid-column: 1 / -1; }
  .rodape-marca img { height: 54px; }

  .flutuante { right: 14px; bottom: 14px; width: 58px; height: 58px; }
  .cookies { left: 10px; right: 10px; bottom: 10px; max-width: none; padding: 1rem; }
  /* no celular os botões ocupam a largura toda, então o texto acompanha centralizado */
  .cookies p { text-align: center; }
  .cookies .bt { flex: 1 1 auto; }
  .cookies-recusar { flex: 1 1 100%; }
  /* com o aviso aberto, o botão do WhatsApp não fica por cima dele */
  .cookies-aberto .flutuante { display: none; }
  .rodape-fim a { display: inline-block; margin: .5rem 1rem 0 0; }
}

@media (max-width: 360px) {
  .abertura-in { padding-inline: 18px; }
  .abertura h1 { font-size: 28px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .slide.ativo { animation: none; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}
