/* A&T Brasil · Linha Draper — folha de estilo
   Linguagem: prancha de arquitetura. Concreto, grafite e vermelho de cota. */

@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  src: url("../fonts/archivo-latin-wdth-normal.woff2") format("woff2-variations"),
       url("../fonts/archivo-latin-wdth-normal.woff2") format("woff2");
}

:root {
  --papel: #F2F3F0;
  --concreto: #DCDFDB;
  --concreto-2: #C6CAC5;
  --grafite: #1E2226;
  --grafite-2: #4A5157;
  --cota: #C2361C;
  --cota-escura: #9E2913;
  --tela: #FFFFFF;
  --linha: rgba(30, 34, 38, .2);
  --linha-forte: rgba(30, 34, 38, .55);

  --fonte: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --larg-max: 1240px;
  --pad: clamp(1.1rem, 4vw, 2.5rem);
  --raio: 2px;
  color-scheme: light;
  box-sizing: border-box;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
*, *::before, *::after { box-sizing: inherit; }
html { scroll-padding-top: calc(80px + env(safe-area-inset-top, 0px)); -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--papel);
  color: var(--grafite);
  font-family: var(--fonte);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-stretch: 100%;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { color: var(--cota); }
:focus-visible { outline: 2px solid var(--cota); outline-offset: 3px; }

h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.08; font-weight: 700; letter-spacing: -.012em; }
h1 { font-size: clamp(2.2rem, 5.2vw, 4.1rem); font-stretch: 115%; font-weight: 750; }
h2 { font-size: clamp(1.6rem, 3vw, 2.35rem); font-stretch: 110%; }
h3 { font-size: 1.28rem; font-stretch: 104%; font-weight: 650; line-height: 1.2; }
p { margin: 0 0 1em; max-width: 68ch; }
.lead { font-size: clamp(1.1rem, 1.6vw, 1.28rem); line-height: 1.5; color: var(--grafite-2); max-width: 60ch; }
.nota { font-size: .9rem; color: var(--grafite-2); font-stretch: 92%; }
.cota { font-stretch: 78%; font-weight: 520; font-size: .82rem; letter-spacing: .01em; color: var(--grafite-2); }

.envoltorio { max-width: var(--larg-max); margin: 0 auto; padding: 0 var(--pad); }
.secao { padding: clamp(3.5rem, 8vw, 6.5rem) 0; }
.secao--concreto { background: var(--concreto); }
.secao--grafite { background: var(--grafite); color: var(--papel); }
.secao--grafite a:hover { color: #ffb3a3; }
.secao__cabeca { display: grid; gap: 1rem 3rem; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); align-items: end; margin-bottom: clamp(2rem, 4vw, 3.25rem); }
.secao__cabeca p { margin: 0; color: var(--grafite-2); }
.secao--grafite .secao__cabeca p { color: #c9ccc8; }
@media (max-width: 820px) { .secao__cabeca { grid-template-columns: 1fr; } }

.pular { position: absolute; left: -999px; top: 0; background: var(--grafite); color: var(--papel); padding: .6rem 1rem; z-index: 100; }
.pular:focus { left: 1rem; top: 1rem; }

/* ---------- Botões ---------- */
.botao {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 48px; padding: .7rem 1.35rem;
  border: 1.5px solid var(--grafite); border-radius: var(--raio);
  background: var(--grafite); color: var(--papel);
  font: inherit; font-weight: 650; font-stretch: 104%; font-size: 1rem; line-height: 1.1;
  text-decoration: none; cursor: pointer; transition: background-color .15s, border-color .15s, color .15s;
}
.botao:hover { background: var(--cota); border-color: var(--cota); color: #fff; }
.botao--contorno { background: transparent; color: var(--grafite); }
.botao--contorno:hover { background: var(--grafite); border-color: var(--grafite); color: var(--papel); }
.botao--cota { background: var(--cota); border-color: var(--cota); }
.botao--cota:hover { background: var(--cota-escura); border-color: var(--cota-escura); }
.secao--grafite .botao { background: var(--papel); color: var(--grafite); border-color: var(--papel); }
.secao--grafite .botao:hover { background: var(--cota); border-color: var(--cota); color: #fff; }
.secao--grafite .botao--contorno { background: transparent; color: var(--papel); }
.acoes { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.75rem; }

/* ---------- Cabeçalho ---------- */
.topo { position: sticky; top: 0; z-index: 50; background: rgba(242, 243, 240, .96); border-bottom: 1px solid var(--linha); backdrop-filter: saturate(1.2) blur(6px); }
.topo__barra { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 72px; }
.marca { display: inline-flex; align-items: center; gap: .75rem; text-decoration: none; color: var(--grafite); }
.marca__simbolo { width: 54px; height: 44px; flex: none; overflow: visible; }
.marca__a { fill: none; stroke: currentColor; stroke-width: 6; stroke-linejoin: miter; }
.marca__t { fill: currentColor; }
.marca__ponto { fill: var(--cota); stroke: var(--marca-fundo, var(--papel)); stroke-width: 4; transition: fill .15s; }
.marca__texto { display: flex; flex-direction: column; gap: .3rem; line-height: 1; }
.marca__nome { font-size: 1.3rem; letter-spacing: -.01em; white-space: nowrap; }
.marca__nome b { font-weight: 700; }
.marca__nome span { font-weight: 300; color: var(--grafite-2); }
.marca__linha { font-size: .74rem; font-weight: 560; letter-spacing: .06em; text-transform: uppercase; color: var(--grafite-2); white-space: nowrap; }
.marca:hover { color: var(--grafite); }
.marca:hover .marca__ponto { fill: var(--cota-escura); }

.nav { display: flex; align-items: center; gap: 1.6rem; }
.nav__lista { display: flex; align-items: center; gap: 1.4rem; list-style: none; margin: 0; padding: 0; }
.nav__lista > li > a, .nav__produtos > summary { text-decoration: none; font-weight: 560; font-size: .98rem; cursor: pointer; padding: .4rem 0; }
.nav__lista a[aria-current="page"] { color: var(--cota); }
.nav__produtos { position: relative; }
.nav__produtos > summary { list-style: none; display: inline-flex; align-items: center; gap: .35rem; }
.nav__produtos > summary::-webkit-details-marker { display: none; }
.nav__produtos > summary::after { content: ""; width: 7px; height: 7px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg) translateY(-2px); transition: transform .15s; }
.nav__produtos[open] > summary::after { transform: rotate(-135deg) translateY(-1px); }
.mega {
  position: absolute; top: calc(100% + 18px); left: -1.5rem; width: min(760px, 86vw);
  background: var(--papel); border: 1px solid var(--linha-forte); padding: 1.5rem;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem 1.75rem;
  box-shadow: 0 18px 40px -24px rgba(30, 34, 38, .45);
}
.mega h3 { font-size: 1rem; margin: 0 0 .4rem; font-stretch: 100%; }
.mega h3 a { text-decoration: none; }
.mega ul { list-style: none; margin: 0; padding: 0; }
.mega li a { display: block; text-decoration: none; font-size: .9rem; color: var(--grafite-2); padding: .14rem 0; font-stretch: 92%; }
.mega li a:hover { color: var(--cota); }

.menu-botao { display: none; background: none; border: 1.5px solid var(--grafite); border-radius: var(--raio); min-height: 44px; padding: 0 .9rem; font: inherit; font-weight: 600; cursor: pointer; color: var(--grafite); }

@media (max-width: 1060px) {
  .menu-botao { display: inline-flex; align-items: center; }
  .nav { position: fixed; inset: calc(73px + env(safe-area-inset-top, 0px)) 0 0 0; background: var(--papel); flex-direction: column; align-items: stretch; gap: 0; padding: 1rem var(--pad) calc(2rem + env(safe-area-inset-bottom, 0px)); overflow-y: auto; display: none; border-top: 1px solid var(--linha); }
  .nav.aberto { display: flex; }
  .nav__lista { flex-direction: column; align-items: stretch; gap: 0; }
  .nav__lista > li { border-bottom: 1px solid var(--linha); }
  .nav__lista > li > a, .nav__produtos > summary { display: flex; padding: .95rem 0; font-size: 1.1rem; }
  .mega { position: static; width: auto; box-shadow: none; border: 0; padding: 0 0 1rem; grid-template-columns: 1fr; gap: 1rem; }
  .nav .botao { margin-top: 1.25rem; }
}

/* ---------- Migalhas ---------- */
.migalhas { padding-top: 1.25rem; }
.migalhas ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .25rem .5rem; font-size: .85rem; font-stretch: 88%; color: var(--grafite-2); }
.migalhas li + li::before { content: "/"; margin-right: .5rem; color: var(--concreto-2); }
.migalhas a { text-decoration: none; }

/* ---------- Hero (prancha) ---------- */
.hero { padding: clamp(2rem, 5vw, 3.5rem) 0 clamp(3rem, 6vw, 5rem); border-bottom: 1px solid var(--linha); }
.hero__grade { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: start; }
.hero h1 { font-size: clamp(2.3rem, 4.1vw, 3.7rem); font-stretch: 116%; margin-bottom: .5em; text-wrap: balance; }
.hero .lead { margin-bottom: 0; }
@media (max-width: 960px) { .hero__grade { grid-template-columns: 1fr; } }

.prancha { position: relative; background: var(--papel); border: 1px solid var(--linha-forte); padding: clamp(.6rem, 1.5vw, 1rem); }
.prancha::before { content: ""; position: absolute; inset: 6px; border: 1px solid var(--linha); pointer-events: none; }
.prancha svg { width: 100%; height: auto; display: block; overflow: visible; }

.desenho { --tinta: var(--grafite); --tinta-2: var(--grafite-2); font-family: var(--fonte); }
.desenho .t { stroke: var(--tinta); fill: none; stroke-width: 1.4; stroke-linecap: square; }
.desenho .tf { stroke: var(--tinta-2); fill: none; stroke-width: .8; }
.desenho .tracejado { stroke: var(--tinta-2); fill: none; stroke-width: 1; stroke-dasharray: 5 4; }
.desenho .c { stroke: var(--cota); fill: none; stroke-width: 1.1; }
.desenho .rotulo { fill: var(--tinta); font-size: 13px; font-weight: 560; font-stretch: 82%; }
.desenho .rotulo-c { fill: var(--cota); font-size: 13px; font-weight: 620; font-stretch: 80%; }
.desenho--hero .rotulo { font-size: 19px; }
.desenho--hero .rotulo-c { font-size: 18px; }
.desenho .lider { stroke: var(--tinta-2); stroke-width: .8; fill: none; }
.desenho .tela-sup { fill: var(--tela); stroke: var(--tinta); stroke-width: 1.4; }
.desenho .tecido { fill: rgba(74, 81, 87, .14); stroke: var(--tinta-2); stroke-width: .9; }
.desenho .vidro { fill: rgba(220, 223, 219, .55); stroke: var(--tinta); stroke-width: 1.2; }
.desenho .cheio { fill: var(--tinta); }

/* animação única: a tela desce ao carregar */
.desenho .tela-mov { transform-box: fill-box; transform-origin: 50% 0; animation: desce 1.6s cubic-bezier(.2, .7, .2, 1) .35s both; }
.desenho .aparece { animation: aparece .6s ease 1.7s both; }
@keyframes desce { from { transform: scaleY(.04); } to { transform: scaleY(1); } }
@keyframes aparece { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .desenho .tela-mov, .desenho .aparece { animation: none; }
}

/* Carimbo: formulário rápido no formato de carimbo de prancha */
.carimbo { margin-top: 1.5rem; border: 1.5px solid var(--grafite); background: var(--papel); display: grid; grid-template-columns: 1.4fr 1fr 1fr; }
.carimbo__titulo { grid-column: 1 / -1; display: flex; justify-content: space-between; gap: 1rem; align-items: baseline; padding: .65rem .9rem; border-bottom: 1.5px solid var(--grafite); }
.carimbo__titulo strong { font-stretch: 112%; font-size: 1.02rem; }
.carimbo__titulo span { font-stretch: 80%; font-size: .85rem; color: var(--grafite-2); }
.carimbo__campo { display: flex; flex-direction: column; padding: .55rem .9rem .6rem; border-right: 1px solid var(--grafite); min-width: 0; }
.carimbo__campo--fase { border-right: 0; }
.carimbo__campo label { font-size: .78rem; font-stretch: 80%; color: var(--grafite-2); font-weight: 560; }
.carimbo__campo input, .carimbo__campo select { font: inherit; font-size: 1rem; border: 0; background: transparent; padding: .25rem 0; color: var(--grafite); min-height: 36px; width: 100%; min-width: 0; }
.carimbo__campo input:focus-visible, .carimbo__campo select:focus-visible { outline: 2px solid var(--cota); outline-offset: 2px; }
.carimbo__enviar { grid-column: 1 / -1; border-top: 1.5px solid var(--grafite); display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .6rem .6rem .6rem .9rem; }
.carimbo__enviar p { margin: 0; font-size: .85rem; color: var(--grafite-2); font-stretch: 88%; }
@media (max-width: 640px) {
  .carimbo { grid-template-columns: 1fr 1fr; }
  .carimbo__campo--obra { grid-column: 1 / -1; border-right: 0; border-bottom: 1px solid var(--grafite); }
  .carimbo__campo--linha { border-right: 1px solid var(--grafite); }
  .carimbo__enviar { flex-direction: column; align-items: stretch; }
}

/* ---------- Índice de categorias (lista de pranchas) ---------- */
.indice { list-style: none; margin: 0; padding: 0; border-top: 1.5px solid var(--grafite); }
.indice > li { display: grid; grid-template-columns: minmax(0, 4.2fr) minmax(0, 4.8fr) minmax(0, 3fr); gap: 1.25rem 2.25rem; padding: 1.75rem 0; border-bottom: 1px solid var(--linha-forte); align-items: start; }
.indice h3 { font-size: clamp(1.45rem, 2.4vw, 1.95rem); font-stretch: 116%; margin-bottom: .35rem; }
.indice h3 a { text-decoration: none; }
.indice p { color: var(--grafite-2); margin: 0; }
.indice__familias { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 1.5rem; }
.indice__familias li { break-inside: avoid; padding: .15rem 0; }
.indice__familias a { text-decoration: none; font-stretch: 94%; }
.indice__familias a:hover { text-decoration: underline; }
.indice__imagem { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--concreto); border: 1px solid var(--linha); }
.indice__imagem img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.indice__imagem svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.indice__imagem .rotulo, .indice__imagem .rotulo-c { display: none; }
@media (max-width: 900px) {
  .indice > li { grid-template-columns: 1fr 1fr; }
  .indice > li > div:first-child { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .indice > li { grid-template-columns: 1fr; }
  .indice__familias { columns: 1; }
}

/* ---------- Etapas (sequência real) ---------- */
.etapas { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); counter-reset: etapa; border-top: 1.5px solid currentColor; }
.etapas li { counter-increment: etapa; padding: 1.5rem 1.5rem 0 0; position: relative; }
.etapas li + li { padding-left: 1.5rem; border-left: 1px solid rgba(242, 243, 240, .25); }
.etapas li::before { content: counter(etapa); display: block; font-size: 3.2rem; font-weight: 800; font-stretch: 70%; line-height: 1; color: var(--cota); margin-bottom: .75rem; }
.etapas h3 { font-size: 1.15rem; }
.etapas p { color: #c9ccc8; font-size: .98rem; margin: 0; }
@media (max-width: 900px) {
  .etapas { grid-template-columns: 1fr 1fr; }
  .etapas li:nth-child(3) { padding-left: 0; border-left: 0; }
}
@media (max-width: 560px) {
  .etapas { grid-template-columns: 1fr; }
  .etapas li, .etapas li + li { padding-left: 0; border-left: 0; padding-bottom: .5rem; }
}

/* ---------- Perfis ---------- */
.perfis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border: 1.5px solid var(--grafite); }
.perfil { padding: clamp(1.25rem, 3vw, 2rem); display: flex; flex-direction: column; }
.perfil + .perfil { border-left: 1px solid var(--grafite); }
.perfil h3 { font-size: 1.45rem; font-stretch: 112%; }
.perfil ul { margin: .25rem 0 1.5rem; padding-left: 1.1rem; color: var(--grafite-2); }
.perfil li { margin: .3rem 0; }
.perfil .botao { margin-top: auto; align-self: flex-start; }
@media (max-width: 860px) {
  .perfis { grid-template-columns: 1fr; }
  .perfil + .perfil { border-left: 0; border-top: 1px solid var(--grafite); }
}

/* ---------- Projetos ---------- */
.projetos { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 2rem 1.5rem; }
.projeto figure { margin: 0; }
.projeto__foto { aspect-ratio: 16 / 10; overflow: hidden; background: var(--concreto-2); }
.projeto__foto img { width: 100%; height: 100%; object-fit: cover; }
.projeto h3 { font-size: 1.1rem; margin: .8rem 0 .15rem; font-stretch: 104%; }
.projeto .cota { display: block; margin-bottom: .35rem; }
.projeto p { font-size: .95rem; color: var(--grafite-2); margin: 0; }
.faixa-projetos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem 1.5rem; list-style: none; margin: 0; padding: 0; }
@media (max-width: 900px) { .faixa-projetos { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .faixa-projetos { grid-template-columns: 1fr; } }
.projeto__link { display: flex; flex-direction: column; height: 100%; text-decoration: none; color: inherit; }
.projeto__link:hover h3, .projeto__link:hover h2 { color: var(--cota); }
.projeto__foto--desenho img { object-fit: contain; padding: 5%; }
.projeto__externo { margin-top: .5rem; font-size: .85rem; font-stretch: 88%; color: var(--grafite-2); text-decoration: underline; text-underline-offset: .18em; }
.projeto[hidden] { display: none; }
.filtro { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1rem; }
.filtro__botao { font: inherit; font-size: .95rem; min-height: 44px; padding: .5rem 1rem; border: 1px solid var(--linha-forte); border-radius: var(--raio); background: #fff; color: var(--grafite); cursor: pointer; }
.filtro__botao[aria-pressed="true"] { background: var(--grafite); color: var(--papel); border-color: var(--grafite); }
.filtro__botao:hover { border-color: var(--cota); }
.midia__quadro--larga { aspect-ratio: 16 / 10; }
.midia__quadro--larga img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.galeria.galeria--projeto { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.galeria.galeria--projeto img { aspect-ratio: 4 / 3; }
@media (max-width: 700px) { .galeria.galeria--projeto { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.fatos--curtos li { grid-template-columns: 7rem 1fr; }
.fatos--curtos strong { font-size: 1rem; font-stretch: 100%; }
.clientes { margin-top: 2rem; color: var(--grafite-2); font-size: .98rem; max-width: 90ch; }

/* ---------- Sobre / dupla coluna ---------- */
.duas-colunas { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
@media (max-width: 860px) { .duas-colunas { grid-template-columns: 1fr; } }
.fatos { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--linha-forte); }
.fatos li { display: grid; grid-template-columns: 9rem 1fr; gap: 1rem; padding: .85rem 0; border-bottom: 1px solid var(--linha); }
.fatos strong { font-stretch: 115%; font-size: 1.35rem; line-height: 1.15; }
.fatos span { color: var(--grafite-2); }
@media (max-width: 480px) { .fatos li { grid-template-columns: 1fr; gap: .2rem; } }

/* ---------- Perguntas frequentes ---------- */
.faq { border-top: 1.5px solid var(--grafite); max-width: 900px; }
.faq details { border-bottom: 1px solid var(--linha-forte); }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 1.5rem; padding: 1.15rem 0; font-weight: 620; font-size: 1.1rem; font-stretch: 102%; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-weight: 400; font-size: 1.5rem; line-height: 1; color: var(--cota); flex: none; }
.faq details[open] summary::after { content: "−"; }
.faq details p { color: var(--grafite-2); padding-bottom: 1.15rem; margin: 0; }

/* ---------- Faixa final de chamada ---------- */
.chamada { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 2rem; align-items: end; }
.chamada h2 { font-size: clamp(1.8rem, 3.6vw, 2.9rem); font-stretch: 114%; margin: 0; text-wrap: balance; }
.chamada p { color: #c9ccc8; margin: 1rem 0 0; }
.chamada .acoes { margin-top: 0; justify-content: flex-end; }
@media (max-width: 820px) { .chamada { grid-template-columns: 1fr; } .chamada .acoes { justify-content: flex-start; } }

/* ---------- Página de categoria ---------- */
.cabeca-pagina { padding: clamp(1.25rem, 3vw, 2rem) 0 clamp(2.5rem, 5vw, 4rem); border-bottom: 1px solid var(--linha); }
.cabeca-pagina__grade { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; }
.cabeca-pagina h1 { margin-top: .75rem; text-wrap: balance; }
@media (max-width: 900px) { .cabeca-pagina__grade { grid-template-columns: 1fr; } }

.midia { margin: 0; }
.midia__quadro { position: relative; aspect-ratio: 4 / 3; background: var(--concreto); border: 1px solid var(--linha-forte); overflow: hidden; }
.midia__quadro > svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.midia__quadro > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; }
.midia figcaption { font-size: .8rem; font-stretch: 84%; color: var(--grafite-2); padding-top: .45rem; }
.midia .leg-desenho { display: none; }
.midia.sem-foto .leg-foto { display: none; }
.midia.sem-foto .leg-desenho { display: inline; }

.grupo { padding: clamp(2.5rem, 5vw, 4rem) 0 0; }
.grupo__cabeca { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 1rem 3rem; align-items: baseline; margin-bottom: 1.25rem; }
.grupo__cabeca h2 { margin: 0; }
.grupo__cabeca p { margin: 0; color: var(--grafite-2); }
@media (max-width: 820px) { .grupo__cabeca { grid-template-columns: 1fr; } }

.familias { list-style: none; margin: 0; padding: 0; border-top: 1.5px solid var(--grafite); }
.familias > li > a { display: grid; grid-template-columns: minmax(0, 3.2fr) minmax(0, 5fr) minmax(0, 3.5fr); gap: .5rem 2rem; padding: 1.2rem 0; border-bottom: 1px solid var(--linha-forte); text-decoration: none; align-items: baseline; }
.familias > li > a:hover h3 { color: var(--cota); }
.familias h3 { margin: 0; font-size: 1.35rem; font-stretch: 112%; }
.familias p { margin: 0; color: var(--grafite-2); }
.familias .cota { text-align: right; }
@media (max-width: 760px) {
  .familias > li > a { grid-template-columns: 1fr; }
  .familias .cota { text-align: left; }
}

.secoes-texto { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; border-top: 1.5px solid var(--grafite); }
.secoes-texto > div { padding: 1.5rem 1.5rem 1.5rem 0; border-bottom: 1px solid var(--linha-forte); }
.secoes-texto > div:nth-child(even) { padding-left: 1.5rem; border-left: 1px solid var(--linha-forte); }
.secoes-texto p { color: var(--grafite-2); margin: 0; }
@media (max-width: 760px) { .secoes-texto { grid-template-columns: 1fr; } .secoes-texto > div:nth-child(even) { padding-left: 0; border-left: 0; } }

.caixa-enviar { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 1.5rem 3rem; padding: clamp(1.5rem, 3vw, 2.25rem); border: 1.5px solid var(--grafite); background: var(--papel); }
.caixa-enviar h2 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); margin: 0 0 .5rem; }
.caixa-enviar ul { margin: 0; padding: 0; list-style: none; }
.caixa-enviar li { padding: .55rem 0 .55rem 1.6rem; border-bottom: 1px solid var(--linha); position: relative; }
.caixa-enviar li::before { content: ""; position: absolute; left: 0; top: 1.05em; width: .9rem; height: 1.5px; background: var(--cota); }
@media (max-width: 820px) { .caixa-enviar { grid-template-columns: 1fr; } }

/* ---------- Página de família ---------- */
.tabela-rolagem { overflow-x: auto; border-top: 1.5px solid var(--grafite); }
.tabela { width: 100%; border-collapse: collapse; font-size: .98rem; }
.tabela--larga { min-width: 560px; }
.tabela th, .tabela td { text-align: left; padding: .8rem 1rem .8rem 0; border-bottom: 1px solid var(--linha-forte); vertical-align: top; }
.tabela thead th { font-weight: 560; font-stretch: 82%; font-size: .86rem; color: var(--grafite-2); padding-top: .6rem; }
.tabela tbody th { font-weight: 650; font-stretch: 104%; }
.tabela td { color: var(--grafite-2); }

.lado-a-lado { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 2.5rem; margin-top: clamp(2.5rem, 5vw, 3.5rem); }
.lado-a-lado h2 { font-size: 1.45rem; }
.lista-traco { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--linha-forte); }
.lista-traco li { padding: .6rem 0 .6rem 1.6rem; border-bottom: 1px solid var(--linha); position: relative; }
.lista-traco li::before { content: ""; position: absolute; left: 0; top: 1.15em; width: .9rem; height: 1.5px; background: var(--cota); }
@media (max-width: 760px) { .lado-a-lado { grid-template-columns: 1fr; } }

.galeria { list-style: none; margin: 1.5rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .75rem; }
.galeria img { aspect-ratio: 1; object-fit: cover; width: 100%; background: var(--concreto); }

.relacionados { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.relacionados a { display: inline-block; padding: .5rem .9rem; border: 1px solid var(--linha-forte); border-radius: var(--raio); text-decoration: none; font-stretch: 94%; font-size: .95rem; }
.relacionados a:hover { border-color: var(--cota); }

/* ---------- Formulário de cotação ---------- */
.cotacao__grade { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: clamp(2rem, 5vw, 4rem); align-items: start; }
@media (max-width: 960px) { .cotacao__grade { grid-template-columns: 1fr; } .cotacao__lateral { order: -1; } }
.cotacao__lateral { position: sticky; top: 96px; border: 1.5px solid var(--grafite); padding: 1.5rem; }
@media (max-width: 960px) { .cotacao__lateral { position: static; } }
.cotacao__lateral h2 { font-size: 1.25rem; font-stretch: 104%; }
.cotacao__lateral ul { padding-left: 1.1rem; color: var(--grafite-2); margin: 0 0 1.25rem; }
.cotacao__lateral li { margin: .3rem 0; }
.contato-linha { display: block; text-decoration: none; font-weight: 620; padding: .2rem 0; }

.form fieldset { border: 0; border-top: 1.5px solid var(--grafite); margin: 0 0 2.25rem; padding: 1.25rem 0 0; min-width: 0; }
.form legend { font-size: 1.3rem; font-weight: 700; font-stretch: 110%; padding: 0 .6rem 0 0; }
.campos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.1rem 1.25rem; }
.campo--largo { grid-column: 1 / -1; }
@media (max-width: 640px) { .campos { grid-template-columns: 1fr; } }
.campo label, .campo .rotulo { display: block; font-weight: 600; font-size: .95rem; margin-bottom: .35rem; }
.campo .ajuda { display: block; font-size: .85rem; color: var(--grafite-2); margin-top: .3rem; font-stretch: 92%; }
.obrig { color: var(--cota); }
.form input[type="text"], .form input[type="email"], .form input[type="tel"], .form input[type="url"], .form input[type="month"], .form select, .form textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--grafite); background: #fff;
  border: 1px solid var(--linha-forte); border-radius: var(--raio); padding: .7rem .8rem; min-height: 48px;
}
.form textarea { min-height: 130px; resize: vertical; }
.form input:focus-visible, .form select:focus-visible, .form textarea:focus-visible { outline: 2px solid var(--cota); outline-offset: 1px; border-color: var(--grafite); }
.form input[type="file"] { font: inherit; font-size: .95rem; width: 100%; padding: .9rem; border: 1.5px dashed var(--linha-forte); background: #fff; border-radius: var(--raio); }
.opcoes { display: flex; flex-wrap: wrap; gap: .5rem; }
.opcao { position: relative; }
.opcao input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.opcao span { display: inline-flex; align-items: center; min-height: 44px; padding: .5rem .95rem; border: 1px solid var(--linha-forte); border-radius: var(--raio); background: #fff; cursor: pointer; font-size: .95rem; }
.opcao input:checked + span { background: var(--grafite); color: var(--papel); border-color: var(--grafite); }
.opcao input:focus-visible + span { outline: 2px solid var(--cota); outline-offset: 2px; }
.consentimento { display: flex; gap: .75rem; align-items: flex-start; font-size: .95rem; }
.consentimento input { width: 20px; height: 20px; margin-top: .2rem; flex: none; accent-color: var(--grafite); }
.mel { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.aviso { padding: 1rem 1.25rem; border-left: 4px solid var(--cota); background: #fff; margin-bottom: 2rem; }
.aviso[hidden] { display: none; }
.lista-arquivos { list-style: none; margin: .6rem 0 0; padding: 0; font-size: .9rem; color: var(--grafite-2); }
.erro-campo { color: var(--cota); font-size: .88rem; margin-top: .35rem; display: block; }

/* ---------- Texto corrido (privacidade etc.) ---------- */
.texto { max-width: 75ch; }
.texto h2 { font-size: 1.45rem; margin-top: 2.25rem; }
.texto ul { padding-left: 1.2rem; }
.texto li { margin: .35rem 0; }

/* ---------- Rodapé ---------- */
.rodape { background: var(--grafite); color: #c9ccc8; padding: clamp(3rem, 6vw, 4.5rem) 0 calc(2rem + env(safe-area-inset-bottom, 0px)); font-size: .95rem; }
.rodape a { color: var(--papel); text-decoration: none; }
.rodape a:hover { color: #ffb3a3; text-decoration: underline; }
.rodape__grade { display: grid; grid-template-columns: minmax(0, 4fr) repeat(3, minmax(0, 3fr)); gap: 2.5rem 2rem; }
.rodape h2 { font-size: 1rem; color: var(--papel); font-stretch: 104%; margin-bottom: .75rem; }
.rodape ul { list-style: none; margin: 0 0 1.5rem; padding: 0; }
.rodape li { margin: .25rem 0; }
.rodape .marca { color: var(--papel); --marca-fundo: var(--grafite); }
.rodape .marca:hover { color: var(--papel); text-decoration: none; }
.rodape .marca__nome span, .rodape .marca__linha { color: #c9ccc8; }
.rodape__legal { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid rgba(242, 243, 240, .18); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; font-size: .85rem; }
.rodape__legal p { margin: 0; max-width: 90ch; }
@media (max-width: 960px) { .rodape__grade { grid-template-columns: 1fr 1fr; } .rodape__grade > div:first-child { grid-column: 1 / -1; } }
@media (max-width: 560px) { .rodape__grade { grid-template-columns: 1fr; } }

/* ---------- WhatsApp ---------- */
.whatsapp { position: fixed; right: 1rem; bottom: calc(1rem + env(safe-area-inset-bottom, 0px)); z-index: 40; display: inline-flex; align-items: center; gap: .5rem; background: #1f7a4d; color: #fff; text-decoration: none; padding: .75rem 1rem; border-radius: 999px; font-weight: 650; box-shadow: 0 10px 24px -12px rgba(0, 0, 0, .5); }
.whatsapp:hover { background: #17603c; color: #fff; }
.whatsapp svg { width: 22px; height: 22px; }
@media (max-width: 600px) {
  .whatsapp { padding: .85rem; }
  .whatsapp svg { width: 26px; height: 26px; }
  .whatsapp__texto { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}

@media print {
  .topo, .rodape, .whatsapp, .acoes, .carimbo { display: none !important; }
  body { background: #fff; }
}
