/* Grupo Tora Norte — tokens */
:root {
  --mata-950: #0a1f13;
  --mata-900: #0f2a1b;
  --mata-800: #173823;
  --mata-700: #1f4d2f;
  --pinho: #efe5cf;
  --pinho-escuro: #e2d3b2;
  --papel: #f7f1e3;
  --cerne: #b9652b;
  --cerne-escuro: #7e431c;
  --giz: #f2b632;
  --casca: #231a12;
  --casca-suave: #5b4b3a;
  --linha: rgba(35, 26, 18, 0.14);
  --linha-forte: rgba(35, 26, 18, 0.32);
  --linha-clara: rgba(239, 229, 207, 0.16);
  --f-titulo: "Big Shoulders Display", "Arial Narrow", Impact, sans-serif;
  --f-stencil: "Big Shoulders Stencil Display", "Big Shoulders Display", "Arial Narrow", sans-serif;
  --f-texto: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  --calha: clamp(1rem, 4vw, 2.5rem);
  --secao: clamp(4.5rem, 10vw, 8.5rem);
  --topo-h: 4.5rem;
  --foco: var(--cerne-escuro);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--topo-h); -webkit-text-size-adjust: 100%; overflow-anchor: none; }
body {
  margin: 0;
  background: var(--pinho);
  color: var(--casca);
  font: 400 1.0625rem/1.6 var(--f-texto);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, p, figure, blockquote { margin: 0; }
h1, h2, h3 { font-weight: inherit; }

.largura { width: min(1240px, 100% - 2 * var(--calha)); margin-inline: auto; }
.defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.escuro { --foco: var(--giz); background: var(--mata-900); color: var(--pinho); }
:focus-visible { outline: 3px solid var(--foco); outline-offset: 3px; }

.pular-link { position: absolute; left: 1rem; top: -4rem; z-index: 60; padding: 0.7rem 1rem; background: var(--giz); color: var(--mata-950); font-weight: 700; text-decoration: none; }
.pular-link:focus { top: 1rem; }

/* Botões */
.botao {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 3.25rem;
  padding: 0.85rem 1.35rem;
  border: 0;
  border-radius: 4px;
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s, transform 0.15s;
}
.botao svg { width: 1.25rem; height: 1.25rem; flex: none; }
.botao:active { transform: translateY(1px); }
.botao--giz { background: var(--giz); color: var(--mata-950); }
.botao--giz:hover { background: #ffc94d; }
.botao--mata { background: var(--mata-700); color: var(--pinho); }
.botao--mata:hover { background: var(--mata-800); }
.link-seco {
  padding: 0;
  border: 0;
  background: none;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.3em;
  cursor: pointer;
}
.link-seco:hover { text-decoration-thickness: 2px; }

/* Marca */
.marca {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  font: 800 0.98rem/0.86 var(--f-texto);
  letter-spacing: -0.02em;
  text-decoration: none;
  color: var(--pinho);
}
.marca__anel {
  display: inline-block;
  width: 0.64em;
  height: 0.64em;
  margin: 0 0.03em 0 0.02em;
  border-radius: 50%;
  background: repeating-radial-gradient(circle at 46% 54%, #d9a56a 0 0.05em, #a0602c 0.05em 0.085em);
  box-shadow: inset 0 0 0 0.06em #5a3517;
  vertical-align: -0.02em;
}
.marca--grande { font-size: 2.1rem; }

/* Topo */
.topo { position: fixed; inset: 0 0 auto; z-index: 40; color: var(--pinho); transition: background-color 0.3s, box-shadow 0.3s; }
.topo--solido { background: rgba(15, 42, 27, 0.96); box-shadow: 0 1px 0 var(--linha-clara); }
.topo__interno { display: flex; align-items: center; gap: 2rem; height: var(--topo-h); }
.topo .marca { --foco: var(--giz); }
.nav { display: flex; gap: 1.75rem; margin-left: auto; }
.nav a { --foco: var(--giz); font-weight: 500; font-size: 0.975rem; text-decoration: none; opacity: 0.86; }
.nav a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 0.35em; }
.topo__cta { --foco: var(--giz); min-height: 2.75rem; padding: 0.55rem 1rem; font-size: 0.95rem; }
.menu-botao { --foco: var(--giz); display: none; margin-left: auto; padding: 0.55rem 0.9rem; border: 1px solid var(--linha-clara); border-radius: 4px; background: none; font-weight: 600; cursor: pointer; }
.menu-movel { --foco: var(--giz); display: grid; gap: 0.25rem; padding: 0.5rem var(--calha) 1.5rem; background: var(--mata-900); border-bottom: 1px solid var(--linha-clara); }
.menu-movel[hidden] { display: none; }
.menu-movel a:not(.botao) { padding: 0.8rem 0; font-size: 1.15rem; font-weight: 600; text-decoration: none; border-bottom: 1px solid var(--linha-clara); }
.menu-movel .botao { margin-top: 1rem; }

/* Hero */
.hero {
  --foco: var(--giz);
  --tora-h: clamp(9.5rem, 42vh, 25rem);
  --tora-mt: clamp(2rem, 6vh, 3.5rem);
  --hero-pt: calc(var(--topo-h) + 2.5rem);
  --hero-pb: clamp(2rem, 6vh, 4rem);
  position: relative;
  display: grid;
  grid-template-rows: auto auto;
  padding: var(--hero-pt) 0 var(--hero-pb);
  overflow: hidden;
  background: radial-gradient(ellipse 80% 70% at 30% 85%, #1a4128 0%, var(--mata-900) 65%);
  color: var(--pinho);
}
/* a parte de cima tem altura fixa: abrir a tora só cresce para baixo */
.hero__topo {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 2rem clamp(2rem, 5vw, 5rem);
  align-items: end;
  align-content: center;
  min-height: max(18rem, 100svh - var(--hero-pt) - var(--hero-pb) - var(--tora-mt) - var(--tora-h));
}
.hero__titulo {
  font-family: var(--f-titulo);
  font-weight: 800;
  font-size: clamp(4.4rem, 10.5vw, 10rem);
  line-height: 0.84;
  letter-spacing: -0.01em;
}
.hero__titulo span { display: block; }
.hero__lado { padding-bottom: 0.4rem; }
.hero__sub { max-width: 30rem; font-size: clamp(1.05rem, 1.35vw, 1.2rem); color: rgba(239, 229, 207, 0.84); }
.hero__acoes { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem; margin-top: 1.75rem; }
.botao--contorno { background: transparent; color: var(--pinho); box-shadow: inset 0 0 0 1.5px rgba(239, 229, 207, 0.45); }
.botao--contorno:hover, .botao--contorno[aria-expanded="true"] { background: rgba(239, 229, 207, 0.1); box-shadow: inset 0 0 0 1.5px var(--pinho); }
.nota-google { display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: 0.2rem 0.65rem; margin-top: 1.75rem; font-size: 0.95rem; text-decoration: none; color: rgba(239, 229, 207, 0.78); }
.nota-google strong { font-family: var(--f-titulo); font-size: 1.75rem; font-weight: 800; line-height: 1; color: var(--pinho); }
.nota-google:hover span:last-child { text-decoration: underline; text-underline-offset: 0.3em; }

.estrelas {
  --nota: 5;
  --apagada: rgba(239, 229, 207, 0.22);
  font-size: 1.05rem;
  letter-spacing: 0.08em;
  background: linear-gradient(90deg, var(--giz) calc(var(--nota) / 5 * 100%), var(--apagada) 0);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* A tora do hero: foto recortada (assets/tora.webp, proporção 2,01:1), encostada na borda direita
   da tela, como se continuasse para fora dela. Medidas em frações da altura da foto:
   a face cortada começa em 0,011h e o giz sai do miolo, em 0,292h. */
.tora {
  --tora-w: calc(var(--tora-h) * 2.01);
  --x0: calc(100% - var(--tora-w));
  --corte: 0;
  --vibra: 0px;
  --fenda: 0;
  --ini: calc(var(--x0) + var(--tora-h) * 0.011);
  --comprimento: calc(100% - var(--ini));
  position: relative;
  margin-top: var(--tora-mt);
  overflow-anchor: none;
}
.tora__metade {
  position: relative;
  z-index: 2;
  width: var(--tora-w);
  margin-left: auto;
  height: calc(var(--tora-h) / 2);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.8s cubic-bezier(0.25, 1.15, 0.4, 1);
}
.tora__metade--topo { transform-origin: 100% 100%; }
/* a metade de baixo deixa a sombra passar para o chão */
.tora__metade--base { overflow: visible; clip-path: inset(0 -40px -80px -40px); }
.tora__peca { position: absolute; left: 0; top: 0; width: 100%; height: var(--tora-h); }
.tora__metade--base .tora__peca { top: calc(var(--tora-h) / -2); }
.tora__peca img { display: block; width: 100%; height: 100%; }
.tora__metade--base img { filter: drop-shadow(0 calc(var(--tora-h) * 0.05) calc(var(--tora-h) * 0.05) rgba(0, 0, 0, 0.5)); }

/* borda serrada: um filete de madeira clara exatamente na linha do corte (a tora é vista quase de frente,
   então a face cortada aparece só de raspão) */
.tora__metade--base::before {
  content: "";
  position: absolute;
  z-index: 1;
  top: 0;
  left: calc(var(--tora-h) * 0.03);
  right: 0;
  height: clamp(3px, calc(var(--tora-h) * 0.014), 6px);
  background:
    linear-gradient(180deg, rgba(255, 238, 205, 0.25), rgba(80, 40, 12, 0.35)),
    url("assets/miolo.webp") left center / auto 900% repeat-x,
    #caa574;
  box-shadow: 0 1px 2px rgba(20, 10, 3, 0.55);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.4s ease 0.15s;
}
.tora__metade--topo::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: calc(var(--tora-h) * 0.011);
  right: 0;
  height: 10px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.65));
  opacity: 0;
  transition: opacity 0.4s;
}
.tora--aberta .tora__metade--base::before { transform: none; }
.tora--aberta .tora__metade--topo::after { opacity: 1; }
.tora--aberta .tora__metade--topo { transform: translateY(calc(var(--tora-h) * -0.05)) rotate(-0.8deg); }
/* durante o corte a tora vibra e a parte já cortada se abre em cunha, presa pelo trecho que falta serrar */
.tora--serrando .tora__metade { transform: translateY(var(--vibra)); transition: none; }
.tora--serrando .tora__metade--topo { transform: translateY(var(--vibra)) rotate(calc(var(--fenda) * -1deg)); }
/* o escuro de dentro da fenda, visto quando as metades se afastam */
.tora__fenda {
  position: absolute;
  z-index: 1;
  top: calc(var(--tora-h) / 2 - 14px);
  left: var(--ini);
  right: 0;
  height: 16px;
  background: linear-gradient(#050201, #140903 60%, #2a170a);
  opacity: 0;
  pointer-events: none;
}
.tora--cortando .tora__fenda { opacity: 1; }
.tora--aberta .tora__fenda { opacity: 0; transition: opacity 0.3s; }

/* linha de giz: sai do miolo da tora e vai até a borda da tela */
.tora__giz {
  position: absolute;
  z-index: 3;
  top: calc(var(--tora-h) / 2 - 5px);
  left: calc(var(--x0) + var(--tora-h) * 0.292);
  width: calc(var(--tora-w) - var(--tora-h) * 0.292);
  height: 10px;
  overflow: visible;
  pointer-events: none;
  fill: none;
  stroke: var(--giz);
  stroke-width: clamp(3px, calc(var(--tora-h) * 0.013), 4.5px);
  stroke-linecap: butt;
  stroke-dasharray: 18 11;
  opacity: 0.95;
  transition: opacity 0.3s;
}
.tora:hover .tora__giz { animation: giz-anda 1.2s linear infinite; opacity: 1; }
@keyframes giz-anda { to { stroke-dashoffset: -35; } }
.tora.tora--cortando .tora__giz { animation: none; }
.tora--cortando:not(.tora--serrando) .tora__giz { opacity: 0; }

/* o corte: sulco escuro com a borda de baixo clara (a madeira aparecendo) */
.tora__kerf {
  position: absolute;
  z-index: 3;
  top: calc(var(--tora-h) / 2 - 3px);
  left: var(--ini);
  width: var(--comprimento);
  height: 6px;
  /* sulco escuro e fundo; só um lábio fino de madeira clara na borda de baixo */
  background: linear-gradient(rgba(0, 0, 0, 0.3), #070301 25% 72%, rgba(205, 168, 118, 0.55) 72% 86%, rgba(0, 0, 0, 0) 86%);
  box-shadow: 0 0 4px rgba(0, 0, 0, 0.45);
  clip-path: inset(0 calc((1 - var(--corte)) * 100%) 0 0);
  pointer-events: none;
}
.tora--aberta .tora__kerf { opacity: 0; transition: opacity 0.2s; }
.tora__ponta {
  position: absolute;
  z-index: 4;
  top: calc(var(--tora-h) / 2);
  left: calc(var(--ini) + var(--comprimento) * var(--corte));
  width: 14px;
  height: 3px;
  margin: -1.5px 0 0 -12px;
  border-radius: 2px;
  background: linear-gradient(90deg, rgba(210, 218, 222, 0), #e9eef1 60%, #ffffff);
  box-shadow: 1px 0 6px 1px rgba(255, 255, 255, 0.45);
  opacity: 0;
  pointer-events: none;
}
.tora--serrando .tora__ponta { opacity: 1; }
.tora__serragem { position: absolute; z-index: 5; left: 0; top: calc(var(--tora-h) / -2); width: 100%; height: calc(var(--tora-h) * 1.6); pointer-events: none; transition: opacity 0.35s; }
.tora--aberta .tora__serragem { opacity: 0; }

/* a lista dentro da tora: mesma largura da tora */
.tora__miolo {
  display: grid;
  grid-template-rows: 1fr;
  width: min(1240px, 100% - 2 * var(--calha));
  margin-inline: auto;
}
.js .tora__miolo { grid-template-rows: 0fr; transition: grid-template-rows 0.75s cubic-bezier(0.2, 0.8, 0.2, 1); }
.js .tora--aberta .tora__miolo { grid-template-rows: 1fr; }
.tora__dentro { min-height: 0; overflow: hidden; }
.tora__conteudo {
  --foco: var(--cerne-escuro);
  container-type: inline-size;
  padding: clamp(1.5rem, 3.5vw, 2.5rem) clamp(1rem, 3vw, 2.5rem) clamp(1.5rem, 3vw, 2.25rem);
  background: var(--pinho);
  color: var(--casca);
  box-shadow: inset 0 16px 20px -14px rgba(0, 0, 0, 0.5), inset 0 -14px 18px -14px rgba(0, 0, 0, 0.35);
}
.tora__cabeca { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: start; gap: 1.25rem 2rem; margin-bottom: clamp(1.25rem, 3vw, 2rem); }
.tora__cabeca .titulo-secao { font-size: clamp(2.2rem, 4vw, 3.2rem); }
.tora__cabeca .titulo-secao:focus { outline: none; }
.tora__cabeca p { max-width: 34rem; margin-top: 0.75rem; color: var(--casca-suave); }
.tora__fechar {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1rem;
  border: 1.5px solid var(--linha-forte);
  border-radius: 4px;
  background: transparent;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
}
.tora__fechar span { font-size: 1.3rem; line-height: 0.8; }
.tora__fechar:hover { border-color: var(--casca); background: var(--pinho-escuro); }

/* Trena: mede a página conforme a rolagem */
.trena {
  --trena-x: 0px;
  position: absolute;
  left: 0;
  right: 0;
  bottom: -12px;
  height: 14px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s;
}
.topo--solido .trena { opacity: 1; }
.trena__fita {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: linear-gradient(#ffd057, var(--giz) 45%, #d99c1c);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.35);
  clip-path: inset(0 calc(100% - var(--trena-x) - 6px) 0 0);
}
.trena__marcas {
  position: absolute;
  inset: 0 auto 0 0;
  width: 100vw;
  background:
    linear-gradient(90deg, #1b1208 1.4px, transparent 1.4px) 0 0 / 100px 9px repeat-x,
    linear-gradient(90deg, #1b1208 1px, transparent 1px) 0 0 / 50px 6px repeat-x,
    linear-gradient(90deg, rgba(27, 18, 8, 0.75) 1px, transparent 1px) 0 0 / 10px 3.5px repeat-x;
}
.trena__marcas span {
  position: absolute;
  bottom: 0;
  font: 800 8px/1 var(--f-texto);
  color: #1b1208;
  transform: translateX(3px);
}
.trena__marcas span:nth-child(10n) { color: #b3261e; }
.trena__gancho { position: absolute; left: 0; top: -3px; width: 8px; height: 20px; }
.trena__caixa {
  position: absolute;
  left: 0;
  top: 1px;
  width: 44px;
  height: 32px;
  transform: translateX(var(--trena-x));
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.45));
}
.trena__caixa svg { width: 100%; height: 100%; }
/* Entrada do hero */
.js [data-entra] { animation: entra 0.7s cubic-bezier(0.16, 0.84, 0.24, 1) var(--atraso, 0s) backwards; }
.js .tora[data-entra] { animation-name: entra-tora; }
@keyframes entra { from { opacity: 0; transform: translateY(1rem); } }
@keyframes entra-tora { from { opacity: 0; transform: translateX(3%); } }

/* Seções: cabeçalho */
.cabeca {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 1.5rem 4rem;
  align-items: end;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}
.cabeca > p { max-width: 33rem; font-size: 1.1rem; color: var(--casca-suave); }
.titulo-secao {
  font-family: var(--f-titulo);
  font-weight: 800;
  font-size: clamp(2.9rem, 6.2vw, 5.25rem);
  line-height: 0.9;
  letter-spacing: -0.005em;
  color: var(--mata-700);
  text-wrap: balance;
}
.escuro .titulo-secao { color: var(--pinho); }

/* Lista de materiais (dentro da tora) */
.pecas, .pecas__legenda {
  --cols: 8.5rem minmax(11rem, 1.35fr) minmax(9.5rem, 1fr) 9rem 8.5rem 8.25rem;
}
.pecas__legenda {
  display: grid;
  grid-template-columns: var(--cols);
  gap: 1.5rem;
  padding: 0 0 0.7rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--casca-suave);
}
.pecas { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--casca); }
.peca {
  display: grid;
  grid-template-columns: var(--cols);
  gap: 1.5rem;
  align-items: center;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--linha);
}
.peca__secao svg { width: 8.5rem; height: auto; overflow: visible; }
.peca__nome { font-family: var(--f-titulo); font-weight: 800; font-size: 1.95rem; line-height: 1; }
.peca__uso { margin-top: 0.3rem; font-size: 0.95rem; line-height: 1.45; color: var(--casca-suave); }
.bitolas { display: flex; flex-wrap: wrap; gap: 0.4rem; min-width: 0; margin: 0; padding: 0; border: 0; }
.bitola { position: relative; }
.bitola input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.bitola span {
  display: inline-block;
  padding: 0.38rem 0.6rem 0.32rem;
  border: 1.5px solid var(--linha-forte);
  border-radius: 3px;
  font-family: var(--f-stencil);
  font-weight: 800;
  font-size: 1.3rem;
  line-height: 1;
  transition: background-color 0.15s, color 0.15s, border-color 0.15s;
}
.bitola .diam { display: inline; padding: 0; border: 0; font-family: var(--f-texto); font-weight: 700; font-size: 0.8em; }
.bitola input:checked + span { background: var(--casca); border-color: var(--casca); color: var(--pinho); }
.bitola input:hover:not(:checked) + span { border-color: var(--casca); }
.bitola input:focus-visible + span { outline: 3px solid var(--foco); outline-offset: 2px; }
.campo-select select {
  width: 100%;
  height: 2.75rem;
  padding: 0 2.1rem 0 0.75rem;
  border: 1.5px solid var(--linha-forte);
  border-radius: 4px;
  background: var(--papel) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6' fill='none' stroke='%23231a12' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 0.6rem center / 1rem;
  font-size: 0.95rem;
  appearance: none;
  cursor: pointer;
}
.qtd {
  display: inline-grid;
  grid-template-columns: 2.5rem 3rem 2.5rem;
  height: 2.75rem;
  border: 1.5px solid var(--linha-forte);
  border-radius: 4px;
  background: var(--papel);
}
.qtd button { border: 0; background: none; font-size: 1.3rem; line-height: 1; cursor: pointer; }
.qtd button:hover { background: var(--pinho-escuro); }
.qtd input { width: 100%; min-width: 0; border: 0; background: none; text-align: center; font-weight: 700; -moz-appearance: textfield; appearance: textfield; }
.qtd input::-webkit-outer-spin-button, .qtd input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.peca__add { min-height: 2.75rem; padding: 0.55rem 1rem; }
.peca__add[data-ok] { background: var(--cerne); color: #fff; }
.pecas__nota { margin-top: 1.5rem; font-size: 0.95rem; color: var(--casca-suave); }

@container (max-width: 1100px) {
  .pecas, .pecas__legenda { --cols: 7rem minmax(10rem, 1.3fr) minmax(8.5rem, 1fr) 8rem 8.5rem 7.5rem; gap: 1.1rem; }
  .peca { gap: 1.1rem; }
  .peca__secao svg { width: 7rem; }
}
@container (max-width: 920px) {
  .pecas__legenda { display: none; }
  .peca {
    grid-template-columns: 6.25rem minmax(0, 1fr) auto auto;
    grid-template-areas:
      "secao info info info"
      "secao bitolas bitolas bitolas"
      "comp comp qtd add";
    gap: 0.9rem 1rem;
    padding: 1.3rem 0;
  }
  .peca__secao { grid-area: secao; }
  .peca__secao svg { width: 6.25rem; }
  .peca__info { grid-area: info; }
  .bitolas { grid-area: bitolas; }
  .campo-select { grid-area: comp; }
  .qtd { grid-area: qtd; }
  .peca__add { grid-area: add; }
}
@container (max-width: 520px) {
  .peca { grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "secao info" "bitolas bitolas" "comp comp" "qtd add"; }
  .peca__secao svg { width: 5.5rem; }
  .peca__add { justify-self: stretch; }
}

/* Projetos */
.projetos { padding-block: var(--secao); overflow: hidden; }
.cabeca--projetos { align-items: start; }
.projetos__intro { max-width: 31rem; margin-top: 1.5rem; font-size: 1.1rem; color: rgba(239, 229, 207, 0.82); }
.projetos__lado { display: grid; gap: 2rem; justify-items: start; padding-top: 0.5rem; }
.servicos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 2rem; width: 100%; margin: 0; padding: 0; list-style: none; }
.servicos li { padding: 0.8rem 0; border-top: 1px solid var(--linha-clara); font-weight: 500; }
/* Antes e depois: prancha bruta x mesa pronta */
.prancha { display: grid; gap: 1.75rem; margin-bottom: clamp(3.5rem, 7vw, 5.5rem); }
.prancha__texto { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 1rem 4rem; align-items: end; }
.prancha__titulo { font-family: var(--f-titulo); font-weight: 800; font-size: clamp(2rem, 3.6vw, 3rem); line-height: 0.95; }
.prancha__texto p { max-width: 32rem; color: rgba(239, 229, 207, 0.8); }
.comparador, .comparador__depois {
  background:
    radial-gradient(ellipse 60% 55% at 50% 52%, rgba(0, 0, 0, 0.35), transparent 70%),
    var(--mata-800);
}
.comparador {
  --pos: 50%;
  position: relative;
  aspect-ratio: 16 / 7;
  border-radius: 4px;
  overflow: hidden;
  touch-action: pan-y;
  user-select: none;
}
.comparador__img { position: absolute; top: 7%; left: 3%; width: 94%; height: 86%; object-fit: contain; filter: drop-shadow(0 14px 18px rgba(0, 0, 0, 0.45)); }
.comparador__depois { position: absolute; inset: 0; clip-path: inset(0 0 0 var(--pos)); }
.comparador__rotulo {
  position: absolute;
  top: 1rem;
  padding: 0.3rem 0.7rem;
  border-radius: 3px;
  background: rgba(10, 31, 19, 0.75);
  font-size: 0.85rem;
  font-weight: 700;
  pointer-events: none;
}
.comparador__rotulo--antes { left: 1rem; }
.comparador__rotulo--depois { right: 1rem; background: var(--giz); color: var(--mata-950); }
.comparador__linha {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--pos);
  width: 2px;
  margin-left: -1px;
  background: var(--pinho);
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.5);
  pointer-events: none;
}
.comparador__alca {
  position: absolute;
  top: 50%;
  left: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 50%;
  background: var(--pinho);
  color: var(--mata-900);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45);
  transform: translate(-50%, -50%);
  transition: transform 0.2s;
}
.comparador__alca svg { width: 1rem; height: 1rem; }
.comparador__alca svg:first-child { transform: scaleX(-1); }
.comparador__controle {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: ew-resize;
  appearance: none;
}
.comparador:has(.comparador__controle:focus-visible) .comparador__alca { outline: 3px solid var(--giz); outline-offset: 3px; }
.comparador:active .comparador__alca { transform: translate(-50%, -50%) scale(1.08); }
.comparador__img:not([src]) { visibility: hidden; }

.trilho__controles { display: flex; justify-content: flex-end; gap: 0.5rem; margin-bottom: 1.25rem; }
.seta {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border: 1.5px solid rgba(239, 229, 207, 0.4);
  border-radius: 50%;
  background: none;
  cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s, opacity 0.2s;
}
.seta svg { width: 1.25rem; height: 1.25rem; }
.seta--voltar svg { transform: scaleX(-1); }
.seta:hover:not(:disabled) { background: var(--pinho); color: var(--mata-900); border-color: var(--pinho); }
.seta:disabled { opacity: 0.3; cursor: default; }
.trilho {
  display: flex;
  gap: 1.25rem;
  padding: 0 0 0.5rem max(var(--calha), (100% - 1240px) / 2);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-left: max(var(--calha), (100% - 1240px) / 2);
  scrollbar-width: none;
}
.trilho::-webkit-scrollbar { display: none; }
.trilho::after { content: ""; flex: 0 0 1px; }
.trilho figure { flex: 0 0 clamp(15rem, 23vw, 19rem); scroll-snap-align: start; }
.trilho__foto { aspect-ratio: 3 / 4; overflow: hidden; border-radius: 2px; background: var(--mata-800); }
.trilho__foto img { width: 100%; height: 100%; object-fit: cover; }
.trilho figcaption { margin-top: 0.8rem; font-size: 0.95rem; line-height: 1.45; color: rgba(239, 229, 207, 0.8); }

/* Processo */
.processo { padding-block: var(--secao); background: var(--papel); }
.processo__grade { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2.5rem, 6vw, 6rem); align-items: center; }
.processo__fotos { display: grid; grid-template-columns: 1.3fr 1fr; gap: 1rem; align-items: end; }
.processo__fotos img { width: 100%; height: auto; border-radius: 2px; }
.processo__fotos figcaption { margin-top: 0.6rem; font-size: 0.9rem; color: var(--casca-suave); }
.passos { margin: 2.25rem 0 2.25rem; padding: 0; list-style: none; }
.passo { display: grid; grid-template-columns: 3.5rem minmax(0, 1fr); gap: 1.25rem; padding: 1.4rem 0; border-top: 1px solid var(--linha); }
.passo:last-child { border-bottom: 1px solid var(--linha); }
.passo__num { font-family: var(--f-stencil); font-weight: 800; font-size: 3.6rem; line-height: 0.8; color: var(--cerne); }
.passo h3 { font-weight: 700; font-size: 1.2rem; line-height: 1.3; }
.passo p { margin-top: 0.35rem; color: var(--casca-suave); max-width: 32rem; }

/* Anéis: um por ano, crescendo com a rolagem */
.aneis { background: var(--mata-950); }
.aneis__trilho { height: 240vh; }
.aneis__palco {
  position: sticky;
  top: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
  height: 100vh;
  height: 100svh;
  padding-top: var(--topo-h);
}
.aneis__svg { width: 100%; max-height: calc(100svh - var(--topo-h) - 3rem); overflow: visible; }
.aneis__anel { fill: none; stroke: var(--pinho); stroke-linecap: round; }
.aneis__anel--dezena { stroke: var(--giz); }
.aneis__marca { opacity: 0; transition: opacity 0.35s; }
.aneis__marca--visivel { opacity: 1; }
.aneis__marca text { font: 700 27px var(--f-texto); fill: var(--giz); }
.aneis__marca line { stroke: var(--giz); stroke-width: 1.5; }
.aneis__casca { transition: opacity 0.5s; }
.aneis__contador {
  display: flex;
  align-items: baseline;
  gap: 0.08em;
  font-family: var(--f-stencil);
  font-weight: 800;
  font-size: clamp(6rem, 15vw, 13rem);
  line-height: 0.8;
  font-variant-numeric: tabular-nums;
  color: var(--pinho);
}
.aneis__mais { display: inline-block; max-width: 0; overflow: hidden; color: var(--giz); opacity: 0; transition: max-width 0.35s ease, opacity 0.35s ease; }
.aneis--completo .aneis__mais { max-width: 0.7em; opacity: 1; }
.aneis__unidade { margin-left: 0.25em; font-family: var(--f-titulo); font-size: 0.28em; line-height: 1; color: rgba(239, 229, 207, 0.75); }
.aneis .titulo-secao { margin-top: 1.5rem; }
.aneis__descricao { max-width: 28rem; margin-top: 1.25rem; font-size: 1.1rem; color: rgba(239, 229, 207, 0.8); }

/* Avaliações */
.avaliacoes { padding-block: var(--secao); }
.avaliacoes__grade { display: grid; grid-template-columns: minmax(15rem, 0.8fr) minmax(0, 1.6fr); gap: clamp(2.5rem, 6vw, 6rem); }
.placar { align-self: start; position: sticky; top: calc(var(--topo-h) + 2rem); }
.placar .titulo-secao { max-width: 7ch; }
.placar__nota { display: flex; align-items: baseline; gap: 1rem; margin-top: 2rem; }
.placar__nota strong { font-family: var(--f-titulo); font-weight: 800; font-size: clamp(4.5rem, 8vw, 6.5rem); line-height: 0.8; color: var(--casca); }
.placar__nota .estrelas { --apagada: rgba(35, 26, 18, 0.18); font-size: 1.5rem; }
.placar__texto { margin: 0.9rem 0 1.25rem; color: var(--casca-suave); }
.depoimentos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 3rem; }
.depoimento { padding: 1.75rem 0 2.25rem; border-top: 2px solid var(--casca); }
.depoimento blockquote { font-size: 1.2rem; font-weight: 500; line-height: 1.5; }
.depoimento figcaption { display: flex; align-items: center; gap: 0.7rem; margin-top: 1.1rem; font-size: 0.95rem; font-weight: 600; color: var(--casca-suave); }
.estrelas--mini { --apagada: rgba(35, 26, 18, 0.18); font-size: 0.85rem; background: linear-gradient(90deg, var(--cerne) calc(var(--nota) / 5 * 100%), var(--apagada) 0); -webkit-background-clip: text; background-clip: text; }

/* Lojas */
.lojas { padding-block: var(--secao); background: var(--papel); }
.lojas__intro { margin-top: 1.25rem; font-size: 1.1rem; color: var(--casca-suave); }
.horario { justify-self: end; width: min(100%, 22rem); }
.status { display: flex; align-items: center; gap: 0.55rem; margin-bottom: 0.75rem; font-weight: 700; }
.status::before { content: ""; width: 0.6rem; height: 0.6rem; border-radius: 50%; background: var(--casca-suave); }
.status[data-aberto="sim"]::before { background: #2f9e55; box-shadow: 0 0 0 4px rgba(47, 158, 85, 0.18); }
.status[data-aberto="nao"]::before { background: var(--cerne); }
.horario__tabela { width: 100%; border-collapse: collapse; font-size: 0.97rem; }
.horario__tabela th, .horario__tabela td { padding: 0.55rem 0; border-top: 1px solid var(--linha); text-align: left; font-weight: 400; }
.horario__tabela td { text-align: right; }
.horario__tabela tr[data-hoje] th, .horario__tabela tr[data-hoje] td { font-weight: 700; }
.lojas__grade { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; }
.loja { display: grid; grid-template-rows: auto 1fr; background: var(--pinho); border: 1px solid var(--linha); }
.loja__mapa { display: block; width: 100%; height: 16.5rem; border: 0; background: var(--pinho-escuro); filter: saturate(0.75) sepia(0.12); }
.loja__info { display: grid; gap: 1rem; justify-items: start; padding: 1.5rem 1.5rem 1.75rem; }
.loja h3 { font-family: var(--f-titulo); font-weight: 800; font-size: 2.1rem; line-height: 1; color: var(--mata-700); }
.loja address { font-style: normal; line-height: 1.55; }

/* Rodapé */
.rodape { padding: var(--secao) 0 2rem; background: var(--mata-950); }
.rodape__chamada { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 2rem; padding-bottom: 3.5rem; border-bottom: 1px solid var(--linha-clara); }
.rodape__chamada h2 { max-width: 13ch; font-family: var(--f-titulo); font-weight: 800; font-size: clamp(3rem, 7vw, 6rem); line-height: 0.88; text-wrap: balance; }
.rodape__grade { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 2rem; padding: 3rem 0; }
.rodape__grade h3 { margin-bottom: 0.6rem; font-weight: 700; font-size: 1rem; }
.rodape__grade p, .rodape__links { font-size: 0.95rem; line-height: 1.6; color: rgba(239, 229, 207, 0.72); }
.rodape__sobre { max-width: 17rem; margin-top: 1.25rem; }
.rodape__links { margin: 0; padding: 0; list-style: none; }
.rodape__links a { text-decoration: none; }
.rodape__links a:hover { text-decoration: underline; text-underline-offset: 0.3em; color: var(--pinho); }
.rodape__base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; padding-top: 1.5rem; border-top: 1px solid var(--linha-clara); font-size: 0.85rem; color: rgba(239, 229, 207, 0.55); }

/* WhatsApp flutuante e barra da lista */
.wa-flutuante {
  --foco: var(--giz);
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 44;
  display: grid;
  place-items: center;
  width: 3.6rem;
  height: 3.6rem;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  box-shadow: 0 12px 30px rgba(10, 31, 19, 0.35);
  opacity: 0;
  transform: translateY(1rem) scale(0.9);
  pointer-events: none;
  transition: opacity 0.3s, transform 0.3s;
}
.wa-flutuante svg { width: 1.85rem; height: 1.85rem; }
.wa-flutuante--visivel { opacity: 1; transform: none; pointer-events: auto; }
.lista-barra {
  --foco: var(--giz);
  position: fixed;
  left: 50%;
  bottom: 1.25rem;
  z-index: 45;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  width: max-content;
  max-width: calc(100% - 2rem);
  padding: 0.55rem 0.55rem 0.55rem 1.35rem;
  border-radius: 6px;
  background: var(--mata-900);
  color: var(--pinho);
  box-shadow: 0 18px 44px rgba(10, 31, 19, 0.4);
  transform: translate(-50%, 180%);
  visibility: hidden;
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), visibility 0.4s;
}
.lista-barra--ativa { transform: translate(-50%, 0); visibility: visible; }
.lista-barra .botao { min-height: 2.75rem; padding: 0.55rem 1rem; }
.lista-barra strong { font-family: var(--f-stencil); font-size: 1.35rem; font-weight: 800; }
.lista-barra--pulso strong { animation: pulso 0.5s ease; }
@keyframes pulso { 40% { color: var(--giz); } }

/* Romaneio (lista) */
.romaneio {
  width: min(34rem, 100% - 2rem);
  max-height: min(92vh, 50rem);
  padding: 0;
  border: 0;
  background: #faf2d0;
  color: var(--casca);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
}
.romaneio::backdrop { background: rgba(10, 31, 19, 0.62); }
.romaneio__corpo { display: grid; gap: 1.25rem; padding: 1.75rem 1.75rem 1.5rem; }
.romaneio__topo { display: flex; justify-content: space-between; align-items: start; gap: 1rem; padding-bottom: 1rem; border-bottom: 2px dashed rgba(35, 26, 18, 0.35); }
.romaneio h2 { font-family: var(--f-titulo); font-weight: 800; font-size: 2.3rem; line-height: 0.95; color: var(--mata-700); }
.romaneio__fechar { width: 2.5rem; height: 2.5rem; flex: none; border: 0; border-radius: 50%; background: rgba(35, 26, 18, 0.08); font-size: 1.5rem; line-height: 1; cursor: pointer; }
.romaneio__itens { margin: 0; padding: 0; list-style: none; }
.romaneio__itens li { display: grid; grid-template-columns: 3.75rem minmax(0, 1fr) auto; gap: 0.75rem; align-items: center; padding: 0.6rem 0; border-bottom: 1px solid rgba(35, 26, 18, 0.16); }
.romaneio__qtd { font-family: var(--f-stencil); font-weight: 800; font-size: 1.7rem; line-height: 1; color: var(--cerne-escuro); }
.romaneio__desc strong { display: block; font-weight: 700; }
.romaneio__desc span { font-size: 0.9rem; color: var(--casca-suave); }
.romaneio__remover { padding: 0.35rem 0.5rem; border: 0; background: none; font-size: 0.85rem; text-decoration: underline; text-underline-offset: 0.25em; cursor: pointer; color: var(--casca-suave); }
.romaneio__vazio { padding: 1rem 0; color: var(--casca-suave); }
.romaneio__campos { display: grid; gap: 0.85rem; }
.romaneio__campos label { display: grid; gap: 0.3rem; font-size: 0.9rem; font-weight: 600; }
.romaneio__campos input, .romaneio__campos textarea {
  width: 100%;
  padding: 0.65rem 0.75rem;
  border: 1.5px solid var(--linha-forte);
  border-radius: 4px;
  background: #fffbea;
  font-weight: 400;
  font-size: 1rem;
  resize: vertical;
}
.romaneio__enviar { width: 100%; }
.romaneio__enviar[aria-disabled="true"] { opacity: 0.45; pointer-events: none; }
.romaneio__aviso { font-size: 0.92rem; color: var(--mata-700); font-weight: 600; }
.romaneio__rodape { display: flex; justify-content: space-between; gap: 1rem; font-size: 0.95rem; }

/* Responsivo */
@media (max-width: 1180px) {
}

@media (max-width: 960px) {
  .nav, .topo__cta { display: none; }
  .menu-botao { display: inline-flex; }
  .cabeca, .processo__grade, .avaliacoes__grade, .hero__topo { grid-template-columns: minmax(0, 1fr); }
  .horario { justify-self: start; }
  .placar { position: static; }
  .rodape__grade { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .hero { --tora-h: min(11rem, 44vw); --tora-mt: 2.25rem; --hero-pt: calc(var(--topo-h) + 2rem); }
  .hero__topo { min-height: 0; }
  .tora__cabeca .titulo-secao { font-size: 2.3rem; }
  .servicos { grid-template-columns: minmax(0, 1fr); }
  .prancha__texto { grid-template-columns: minmax(0, 1fr); }
  .comparador__rotulo { top: 0.6rem; font-size: 0.75rem; }
  .comparador__rotulo--antes { left: 0.6rem; }
  .comparador__rotulo--depois { right: 0.6rem; }
  .comparador__alca { width: 2.6rem; height: 2.6rem; }
  .aneis__palco { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto; align-content: center; gap: 1rem; }
  .aneis__svg { width: min(78vw, 42svh); justify-self: center; }
  .aneis__contador { font-size: clamp(4.5rem, 22vw, 7rem); }
  .aneis .titulo-secao { margin-top: 0.75rem; }
  .aneis__descricao { font-size: 1rem; margin-top: 0.75rem; }
  .lojas__grade { grid-template-columns: minmax(0, 1fr); }
  .depoimentos { grid-template-columns: minmax(0, 1fr); }
  .processo__fotos { grid-template-columns: 1.2fr 1fr; }
  .rodape__grade { grid-template-columns: minmax(0, 1fr); }
  .lista-barra { left: 0.75rem; right: 0.75rem; bottom: 0.75rem; width: auto; max-width: none; justify-content: space-between; gap: 0.75rem; transform: translateY(180%); }
  .lista-barra--ativa { transform: none; }
}

@media (max-width: 560px) {
  .hero__acoes .botao { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .aneis__trilho { height: auto; }
  .aneis__palco { position: static; height: auto; padding-block: var(--secao); }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; transition-delay: 0s !important; }
}
