/*
 * Faccinox — extra.css
 * O que o theme.json não cobre nativamente: radius de card, sombras,
 * estados de hover/foco custom, faixa de autoridade, grade de produtos,
 * tabela técnica zebrada, WhatsApp flutuante, menu acessível, skip link.
 * Carregado no front E no editor (add_editor_style).
 */

:root {
  --fx-petrol: #0B1F45;
  --fx-petrol-dark: #08193A;
  --fx-marinho: #15336B;
  --fx-ouro: #1E63E0;
  --fx-ouro-hover: #1850BE;
  --fx-ouro-profundo: #1A4FB0;
  --fx-azul-claro: #8FB8FF; /* acento azul claro p/ texto/realce sobre fundo escuro (AA) */
  --fx-texto: #1a1a1a;
  --fx-cinza-aco: #3d4a4f;
  --fx-borda: #d9dcdb;
  --fx-off-white: #f3f6fc;
  --fx-branco: #ffffff;
  --fx-whatsapp: #25d366;
  --fx-card-radius: 6px;
  --fx-shadow: 0 1px 3px rgba(11, 31, 69, .08);
  --fx-shadow-hover: 0 6px 20px rgba(11, 31, 69, .12);
}

/* =========================================================================
   ESTRUTURA WORDPRESS — full-bleed + header sticky (portado da Lhala)
   Só afeta o site WordPress (escopo .wp-site-blocks / #fx-main). O preview
   estático tem o próprio full-bleed + sticky e NÃO usa estas classes.

   Diagnóstico: o <main> é layout:constrained (contentSize 760px). Cada faixa
   de seção é alignfull (via "align":"full" nos patterns), mas no theme.json
   o wideSize é 1200px e a main não tem largura própria garantida — então a
   margem do alignfull não chegava às bordas e as faixas ficavam "presas no
   centro". Aqui forçamos a main a ocupar 100% e levamos cada .alignfull até
   as bordas reais da tela com calc(50% - 50vw).
   ========================================================================= */

/* GUARDA DE OVERFLOW: clipa o transbordo horizontal do 50vw (inclui a barra de
   rolagem, ~15px). Fica em #fx-main — NÃO em html/body — porque a main é IRMÃ
   do header: clipar aqui contém o full-bleed SEM quebrar o position:sticky do
   header (clip em html/body viraria contexto de scroll e mataria o sticky).
   overflow-x: clip (não hidden) mantém o eixo vertical "visible". */
#fx-main { max-width: none; width: 100%; }
/* mata o scroll horizontal gerado pelo full-bleed. overflow-x:hidden no ROOT (html)
   propaga p/ a viewport e NÃO cria scroll container → o header sticky fica intacto. */
html { overflow-x: hidden; }

/* FULL-BLEED à prova de scrollbar: 100vw centralizado no EIXO da viewport via
   left:50% + translateX(-50%). O transbordo é igual nos dois lados (independente
   da barra de rolagem) e some pelo overflow do html → margens simétricas = zero.

   Cobre 3 casos:
   1) .alignfull            → seções da HOME (patterns ao vivo, com a classe).
   2) post-content > grupo  → seções das páginas internas (Fábrica, produtos,
      institucionais): o conteúdo foi importado de um .wxr antigo SEM a classe
      alignfull, então ficavam presas a 760px. Cada seção já centra o conteúdo
      interno sozinha (layout constrained, wideSize 1200), então vira igual à home. */
.wp-site-blocks .alignfull,
.wp-site-blocks .wp-block-post-content > .wp-block-group {
  width: 100vw !important;
  max-width: 100vw !important;
  position: relative !important;
  left: 50% !important;
  right: auto !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  transform: translateX(-50%) !important;
}

/* HERO carrossel: é raw HTML (wp:html), não um wp:group, então não recebe a
   classe alignfull pelo motor de blocos — filha direta da main constrained,
   ficava a 760px. Levamos a faixa às bordas pela mesma técnica. O conteúdo
   interno (.fx-hero-content) já tem max-width próprio e fica centralizado. */
.wp-site-blocks .fx-hero-carousel {
  width: 100vw !important;
  max-width: 100vw !important;
  position: relative !important;
  left: 50% !important;
  right: auto !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  transform: translateX(-50%) !important;
}

/* SEÇÕES RENTE: o blockGap (1.5rem) do core entrava como margin-block entre
   header→hero e entre as faixas full-bleed, "descolando-as" (cada faixa já
   tem padding interno próprio). Zera o gap entre os blocos de topo da main e
   entre header/main/footer, pras bandas encostarem umas nas outras. */
.wp-site-blocks > * { margin-block: 0 !important; }
#fx-main > * { margin-block-start: 0 !important; margin-block-end: 0 !important; }

/* HEADER STICKY: a .fx-header é um <header> aninhado dentro do
   <header class="wp-block-template-part"> (gerado pelo template-part). O sticky
   precisa grudar num ancestral alto — o template-part externo, cujo pai
   (.wp-site-blocks) tem a altura da página inteira. Deixamos o PRÓPRIO
   template-part sticky; z-index acima das faixas e abaixo do consent/whatsapp. */
.wp-site-blocks > header.wp-block-template-part {
  position: sticky; top: 0; z-index: 700;
}
/* o conteúdo do header herda o fundo petrol da .fx-header; nada a cobrir atrás */

/* offset de âncora: seções com id (página institucional, #especificacao, etc.)
   não somem atrás do header sticky ao navegar por link interno. */
:where([id]) { scroll-margin-top: 90px; }

/* ---- Skip link (acessibilidade) ---- */
.fx-skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 9999;
  background: var(--fx-petrol);
  color: #fff;
  padding: 12px 20px;
  border-radius: 0 0 4px 0;
  font-family: var(--wp--preset--font-family--titulo), sans-serif;
  font-weight: 600;
  text-decoration: none;
}
.fx-skip-link:focus {
  left: 0;
}

/* ---- Foco visível global (WCAG 2.4.7) ---- */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible,
.wp-block-button__link:focus-visible {
  outline: 2px solid var(--fx-ouro);
  outline-offset: 2px;
}

/* ---- Kicker / olho de seção (etiqueta industrial) ---- */
.fx-kicker {
  font-family: var(--wp--preset--font-family--titulo), sans-serif;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.8125rem;
  color: var(--fx-ouro-profundo);
}
.has-petrol-background-color .fx-kicker,
.has-marinho-background-color .fx-kicker {
  color: var(--fx-azul-claro);
}

/* ---- Botão secundário (contorno petrol) ---- */
.wp-block-button.is-style-fx-outline .wp-block-button__link {
  background: transparent;
  color: var(--fx-petrol);
  border: 1.5px solid var(--fx-petrol);
}
.wp-block-button.is-style-fx-outline .wp-block-button__link:hover {
  background: var(--fx-petrol);
  color: #fff;
}
/* contorno branco sobre fundo escuro (petrol, marinho e hero com foto) */
.has-petrol-background-color .wp-block-button.is-style-fx-outline .wp-block-button__link,
.has-marinho-background-color .wp-block-button.is-style-fx-outline .wp-block-button__link,
.fx-hero .wp-block-button.is-style-fx-outline .wp-block-button__link {
  color: #fff;
  border-color: #fff;
}
.has-petrol-background-color .wp-block-button.is-style-fx-outline .wp-block-button__link:hover,
.has-marinho-background-color .wp-block-button.is-style-fx-outline .wp-block-button__link:hover,
.fx-hero .wp-block-button.is-style-fx-outline .wp-block-button__link:hover {
  background: #fff;
  color: var(--fx-petrol);
}

/* ---- Card de produto ---- */
.fx-card {
  background: #fff;
  border: 1px solid var(--fx-borda);
  border-radius: var(--fx-card-radius);
  overflow: hidden;
  box-shadow: var(--fx-shadow);
  transition: box-shadow .2s ease, transform .2s ease;
  height: 100%;
}
.fx-card:hover,
.fx-card:focus-within {
  box-shadow: var(--fx-shadow-hover);
  transform: translateY(-2px);
}
.fx-card img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: var(--fx-off-white);
}
.fx-card .fx-card-body {
  padding: 1.25rem 1.25rem 1.5rem;
}
.fx-card .fx-spec {
  display: inline-block;
  font-family: var(--wp--preset--font-family--titulo), sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--fx-cinza-aco);
  background: var(--fx-off-white);
  border: 1px solid var(--fx-borda);
  border-radius: 4px;
  padding: 3px 8px;
  margin-bottom: 0.5rem;
}

/* ---- Imagens de bloco em hero/galeria de produto: SEMPRE cover, sem faixa de cor ----
   Cada foto preenche o quadro inteiro (object-fit:cover + aspect-ratio fixo).
   Nunca contain sobre fundo colorido — evita o "bloco azul ao lado da foto". */
.fx-card img,
.wp-block-image.size-large img {
  object-fit: cover;
}
/* BASE POSICIONAL (fallback robusto, não regride):
   Hero das páginas de produto (1ª linha de colunas da seção off-white) = render
   do produto num quadro 4/3 controlado, IGUAL ao preview (.hero-img). */
.has-off-white-background-color > .wp-block-columns:first-of-type
  .wp-block-image img {
  display: block; width: 100%; height: auto;
  aspect-ratio: 4 / 3; object-fit: cover;
}
/* Galerias dentro de seção off-white (colunas de foto lado a lado): cobrem o
   quadro. Quadro 4/3 por padrão; o marcador .fx-galeria abaixo sobe pra 16/9
   nas fotos de campo largas (igual ao preview .galeria). */
.has-off-white-background-color .wp-block-columns .wp-block-column
  > .wp-block-image img {
  display: block; width: 100%; height: auto;
  aspect-ratio: 4 / 3; object-fit: cover;
}

/* ENQUADRAMENTO EXPLÍCITO (marcadores, espelham o preview e vencem o fallback):
   .fx-hero-media = render alto do produto em 4/3 (preview .hero-img).
   .fx-galeria    = fotos de campo largas em 16/9 (preview .galeria). */
.fx-hero-media img {
  display: block; width: 100%; height: auto;
  aspect-ratio: 4 / 3; object-fit: cover;
}
.fx-galeria .wp-block-column > .wp-block-image img {
  aspect-ratio: 16 / 9 !important; object-fit: cover;
}

/* ---- Tabela técnica zebrada (GEO-friendly) ---- */
.fx-tabela {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--wp--preset--font-family--corpo), sans-serif;
  font-size: 0.95rem;
}
.fx-tabela th {
  background: var(--fx-petrol);
  color: #fff;
  text-align: left;
  font-family: var(--wp--preset--font-family--titulo), sans-serif;
  font-weight: 600;
  padding: 12px 16px;
}
.fx-tabela td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--fx-borda);
  color: var(--fx-cinza-aco);
}
.fx-tabela tbody tr:nth-child(even) td {
  background: var(--fx-off-white);
}
.fx-tabela td:first-child {
  font-weight: 500;
  color: var(--fx-texto);
  width: 38%;
}

/* placeholder de dado a confirmar */
.fx-pendente {
  color: var(--fx-ouro-profundo);
  font-style: italic;
}

/* ---- FAQ (details/summary) ---- */
.fx-faq details {
  border: 1px solid var(--fx-borda);
  border-radius: var(--fx-card-radius);
  margin-bottom: 0.75rem;
  background: #fff;
}
.fx-faq summary {
  cursor: pointer;
  padding: 18px 20px;
  font-family: var(--wp--preset--font-family--titulo), sans-serif;
  font-weight: 600;
  color: var(--fx-petrol);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.fx-faq summary::-webkit-details-marker { display: none; }
.fx-faq summary::after {
  content: "+";
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--fx-ouro-profundo);
  transition: transform .2s ease;
}
.fx-faq details[open] summary::after { content: "\2212"; }
.fx-faq .fx-faq-body {
  padding: 0 20px 20px;
  color: var(--fx-cinza-aco);
}

/* ---- Hero carrossel: foto real de fundo + camada petrol única, texto centralizado ----
   Estrutura: .fx-hero-carousel (fundo navy contínuo)
     ├── .fx-hero-track   -> área dos slides; min-height garante respiro p/ o slide
     │                       mais longo; slides absolutos só p/ o crossfade.
     ├── ‹ › setas        -> absolutas nas laterais do track (top:50%), não cobrem texto.
     └── .fx-hero-controls-> EM FLUXO, abaixo do track; nunca sobrepõe texto/botões. */
.fx-hero-carousel {
  position: relative; isolation: isolate; overflow: hidden;
  background: var(--fx-petrol);
}
.fx-hero-track {
  position: relative; width: 100%;
  /* altura reservada p/ caber eyebrow + H1 (até 4 linhas) + subtítulo + botões */
  min-height: clamp(600px, 72vh, 820px);
}

.fx-hero-slide {
  position: absolute; inset: 0;
  opacity: 0; visibility: hidden;
  transition: opacity .55s ease, visibility 0s linear .55s;
}
.fx-hero-slide.is-active {
  opacity: 1; visibility: visible;
  transition: opacity .55s ease; z-index: 1;
}
/* primeiro slide visível mesmo sem JS (fallback) */
.fx-hero-track:not([data-ready]) .fx-hero-slide:first-child {
  opacity: 1; visibility: visible; position: relative;
}

.fx-hero-bg {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center right; z-index: -2;
}
/* camada de cor única e uniforme (sem gradiente) sobre a foto, contraste AA */
.fx-hero-overlay {
  position: absolute; inset: 0; z-index: -1;
  background: rgba(11, 31, 69, .82);
}
.fx-hero-content {
  max-width: 780px; margin-inline: auto; text-align: center; color: #fff;
  /* conteúdo centralizado verticalmente dentro do track; controles agora ficam
     em fluxo, fora do track, então não precisa reservar padding p/ eles */
  padding: 3.5rem 1.25rem; min-height: 100%;
  display: flex; flex-direction: column; justify-content: center; align-items: center;
}
.fx-hero-content .fx-kicker { color: var(--fx-azul-claro); }
.fx-hero-content h1,
.fx-hero-content .fx-hero-title {
  color: #fff; text-shadow: 0 1px 4px rgba(8, 25, 58, .55);
  /* limita o H1 p/ não dominar o slide 1 (4 linhas) */
  font-size: clamp(1.9rem, 4vw, 2.9rem); line-height: 1.2; margin: 0 0 .5em; text-wrap: balance;
  /* .fx-hero-title (slides 2-4) é <p> com peso visual de h1 — só o slide
     ativo carro-chefe usa <h1> real (1 H1 por página — seo-tecnico.md) */
  font-weight: 700;
}
.fx-hero-sub {
  color: #e7eefb; margin: 0 auto; max-width: 720px;
  font-size: 1.15rem; line-height: 1.65; text-shadow: 0 1px 3px rgba(8, 25, 58, .45);
}
.fx-hero-btns {
  display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; margin-top: 1.75rem;
}

/* Botões do hero (espelham o botão do theme.json sem depender do bloco WP) */
.fx-hero-carousel .fx-btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--wp--preset--font-family--titulo), sans-serif; font-weight: 600;
  padding: 14px 28px; min-height: 44px; border-radius: 4px;
  border: 1.5px solid transparent; line-height: 1.2; text-decoration: none;
  cursor: pointer; transition: background .2s ease, color .2s ease, border-color .2s ease;
}
/* Primário: royal azul, texto branco */
.fx-hero-carousel .fx-btn-primary { background: var(--fx-ouro); color: #fff; border-color: var(--fx-ouro); }
.fx-hero-carousel .fx-btn-primary:hover { background: var(--fx-ouro-hover); color: #fff; border-color: var(--fx-ouro-hover); }
/* Secundário/outline: contorno + texto BRANCO sobre o fundo escuro; hover preenche branco c/ texto navy */
.fx-hero-carousel .fx-btn-outline { background: transparent; color: #fff; border-color: #fff; }
.fx-hero-carousel .fx-btn-outline:hover,
.fx-hero-carousel .fx-btn-outline:focus-visible { background: #fff; color: var(--fx-petrol); border-color: #fff; }

/* Slide showcase de produto: fundo petrol sólido + texto à esquerda + render do
   produto à direita (contain, sem corte). Usado no slide 1 (vasos antivandalismo). */
/* fundo próprio (petrol opaco) p/ ocluir os outros slides durante o crossfade —
   sem foto de fundo, este slide era transparente e deixava o slide de trás vazar. */
.fx-hero-slide--produto { background: var(--fx-petrol); }
.fx-hero-slide--produto .fx-hero-content {
  max-width: 1340px; flex-direction: row; align-items: center; gap: 3rem; text-align: left;
  /* respiro lateral p/ o conteúdo não encostar nas setas do carrossel (left/right 24px + 48px) */
  padding-inline: clamp(4.5rem, 6vw, 5.5rem);
}
.fx-hero-split-text { flex: 1 1 52%; display: flex; flex-direction: column; align-items: flex-start; }
.fx-hero-slide--produto .fx-hero-sub { margin-inline: 0; max-width: 52ch; }
.fx-hero-carousel .fx-hero-slide--produto .fx-hero-btns { justify-content: flex-start; margin-top: 1.5rem; }
.fx-hero-split-media { flex: 1 1 48%; display: flex; align-items: center; justify-content: flex-end; }
.fx-hero-split-media img {
  width: 100%; max-width: 480px; height: auto; max-height: min(480px, 56vh); object-fit: contain;
  filter: drop-shadow(0 22px 45px rgba(0,0,0,.5));
}
@media (max-width: 820px) {
  /* mobile: empilha e reduz o respiro lateral (a folga grande das setas era só p/
     desktop). clamp escala com o tamanho da seta no tablet/celular, sem espremer. */
  .fx-hero-slide--produto .fx-hero-content { flex-direction: column; gap: 1.25rem; text-align: center; padding-block: 2.25rem; padding-inline: clamp(3.25rem, 9vw, 4rem); }
  .fx-hero-split-text { align-items: center; }
  .fx-hero-slide--produto .fx-hero-sub { margin-inline: auto; }
  .fx-hero-carousel .fx-hero-slide--produto .fx-hero-btns { justify-content: center; }
  .fx-hero-split-media { order: -1; }
  .fx-hero-split-media img { max-width: 220px; max-height: 240px; }
}

/* Setas */
.fx-hero-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
  width: 48px; height: 48px; min-width: 44px; min-height: 44px;
  display: flex; align-items: center; justify-content: center;
  border: 1.5px solid rgba(255,255,255,.55); border-radius: 50%;
  background: rgba(11,31,69,.45); color: #fff; cursor: pointer;
  transition: background .2s ease, border-color .2s ease;
}
.fx-hero-arrow:hover { background: rgba(11,31,69,.8); border-color: #fff; }
.fx-hero-arrow:focus-visible { outline: 3px solid var(--fx-azul-claro); outline-offset: 2px; }
.fx-hero-arrow-prev { left: 12px; }
.fx-hero-arrow-next { right: 12px; }
@media (min-width: 900px) { .fx-hero-arrow-prev { left: 24px; } .fx-hero-arrow-next { right: 24px; } }
/* telas estreitas: setas menores e mais coladas na borda p/ não cobrir o texto */
@media (max-width: 560px) {
  .fx-hero-arrow { width: 40px; height: 40px; }
  .fx-hero-arrow-prev { left: 6px; }
  .fx-hero-arrow-next { right: 6px; }
  .fx-hero-arrow svg { width: 20px; height: 20px; }
  /* botões empilham e ficam com alvo >=44px; afastados das setas */
  .fx-hero-content { padding-inline: 3.25rem; }
  .fx-hero-btns { flex-direction: column; align-items: stretch; width: 100%; max-width: 320px; margin-inline: auto; }
  .fx-hero-btns .fx-btn { width: 100%; min-height: 48px; }
}

/* Controles (play/pause + dots) — EM FLUXO, abaixo do track, fundo navy contínuo
   p/ emendar visualmente com o hero. Nunca sobrepõe texto/botões. */
.fx-hero-controls {
  position: relative; z-index: 3;
  display: flex; align-items: center; justify-content: center; gap: .75rem;
  padding-block: 1rem; background: var(--fx-petrol);
}
.fx-hero-playpause {
  width: 44px; height: 44px; display: flex; align-items: center; justify-content: center;
  border: 1.5px solid rgba(255,255,255,.55); border-radius: 50%;
  background: rgba(11,31,69,.45); color: #fff; cursor: pointer;
  transition: background .2s ease, border-color .2s ease;
}
.fx-hero-playpause:hover { background: rgba(11,31,69,.8); border-color: #fff; }
.fx-hero-playpause:focus-visible { outline: 3px solid var(--fx-azul-claro); outline-offset: 2px; }
.fx-hero-playpause svg { fill: currentColor; }
.fx-hero-playpause .ico-play { display: none; }
.fx-hero-playpause[aria-pressed="false"] .ico-pause { display: none; }
.fx-hero-playpause[aria-pressed="false"] .ico-play { display: block; }

.fx-hero-dots { display: flex; align-items: center; gap: 6px; }
.fx-hero-dot {
  width: 44px; height: 44px; padding: 0; border: 0; background: transparent; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.fx-hero-dot::before {
  content: ""; width: 10px; height: 10px; border-radius: 50%;
  background: rgba(255,255,255,.45); border: 1px solid rgba(255,255,255,.7);
  transition: background .2s ease, transform .2s ease;
}
.fx-hero-dot:hover::before { background: rgba(255,255,255,.8); }
.fx-hero-dot.is-active::before { background: #fff; transform: scale(1.25); }
.fx-hero-dot:focus-visible { outline: 3px solid var(--fx-azul-claro); outline-offset: 0; border-radius: 50%; }

/* Reduced-motion: corte seco, sem transição */
@media (prefers-reduced-motion: reduce) {
  .fx-hero-slide, .fx-hero-slide.is-active { transition: none; }
}

/* Forçar um slide visível p/ screenshot estático: ?slide=N no <html> */
html[data-force-slide] .fx-hero-slide { opacity: 0; visibility: hidden; }
html[data-force-slide="1"] .fx-hero-slide[data-slide="1"],
html[data-force-slide="2"] .fx-hero-slide[data-slide="2"],
html[data-force-slide="3"] .fx-hero-slide[data-slide="3"],
html[data-force-slide="4"] .fx-hero-slide[data-slide="4"] { opacity: 1; visibility: visible; z-index: 1; }

/* ---- Faixa de autoridade (números/capacidades) ---- */
.fx-autoridade {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem 2rem;
}
@media (min-width: 782px) {
  .fx-autoridade { grid-template-columns: repeat(4, 1fr); }
}
.fx-autoridade .fx-item .fx-item-num {
  font-family: var(--wp--preset--font-family--titulo), sans-serif;
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--fx-ouro);
  display: block;
}

/* ---- Faixa de logos de clientes (logos reais em cards brancos) ---- */
.fx-logos {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: 1000px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}
@media (min-width: 560px) {
  .fx-logos { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 900px) {
  .fx-logos { grid-template-columns: repeat(5, 1fr); gap: 1.25rem; }
}
.fx-logos .fx-logo-card {
  background: #fff;
  border: 1px solid var(--fx-borda);
  border-radius: var(--fx-card-radius);
  box-shadow: var(--fx-shadow);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  aspect-ratio: 3 / 2;
}
.fx-logos .fx-logo-card img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 104px;
  object-fit: contain;
  filter: grayscale(1);
  opacity: .78;
  transition: filter .25s ease, opacity .25s ease;
}
.fx-logos .fx-logo-card:hover img {
  filter: grayscale(0);
  opacity: 1;
}

/* ---- Header: faixa petrol com logo branca e borda inferior ouro ---- */
.fx-header { box-shadow: 0 2px 10px rgba(0, 0, 0, .25); }
.fx-header-logo { margin: 0; }
.fx-header-logo img { width: 160px; height: auto; display: block; }

/* A faixa petrol do header precisa ir de borda a borda (igual ao preview). O
   template-part e a .fx-header são filhos da raiz constrained (760px), então
   sem isto a barra ficaria estreita no centro. Forçamos largura total; o
   recuo lateral do conteúdo vive no .fx-header-inner (max-width 1200px). */
.wp-site-blocks > header.wp-block-template-part { width: 100%; max-width: none; }
.wp-site-blocks > header.wp-block-template-part > .fx-header { max-width: none; }
.fx-header-inner { max-width: 1200px; margin-inline: auto; width: 100%; }

/* links do menu em cinza-claro, hover azul-claro (sobre fundo petrol) */
.fx-nav { margin: 0; }
.fx-nav > ul { list-style: none; margin: 0; padding: 0; }
.fx-nav a,
.fx-nav .fx-nav-trigger {
  font-family: var(--wp--preset--font-family--titulo), sans-serif;
  font-weight: 500;
  color: #d6deec;
  text-decoration: none;
}
.fx-nav > ul > li > a:hover,
.fx-nav > ul > li > .fx-nav-trigger:hover { color: var(--fx-azul-claro); }

/* ---- Menu acessível (header) ---- */
.fx-nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: transparent;
  border: 1.5px solid var(--fx-azul-claro);
  border-radius: 4px;
  padding: 8px 12px;
  font-family: var(--wp--preset--font-family--titulo), sans-serif;
  font-weight: 600;
  color: var(--fx-azul-claro);
  cursor: pointer;
  min-height: 44px;
}
@media (min-width: 900px) {
  .fx-nav-toggle { display: none; }
}

/* ---------- MEGA-MENU / DROPDOWN (espelha o preview) ---------- */
.fx-has-dropdown { position: relative; }
.fx-nav-trigger {
  display: inline-flex; align-items: center; gap: .4rem;
  background: transparent; border: 0; cursor: pointer; padding: 0;
  font-size: 1rem; line-height: inherit;
}
.fx-caret {
  width: .6em; height: .6em; flex: 0 0 auto;
  border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-.1em); transition: transform .2s ease;
}
.fx-nav-trigger[aria-expanded="true"] .fx-caret { transform: rotate(-135deg) translateY(-.1em); }

.fx-dropdown-panel { display: none; }
.fx-has-dropdown.is-open > .fx-dropdown-panel { display: block; }

/* mobile: empilhado dentro do hambúrguer */
.fx-mega-panel { padding: .25rem 0 .75rem; }
.fx-mega-cols { display: grid; grid-template-columns: 1fr; gap: .1rem; list-style: none; margin: 0; padding: 0; }
.fx-mega-cols a { display: block; padding: .55rem .75rem; color: #c2cee6; border-radius: 4px; }
.fx-mega-cols a:hover { color: var(--fx-azul-claro); background: rgba(143, 184, 255, .08); }
.fx-mega-item-title { font-weight: 600; color: #e7eefb; display: block; }
.fx-mega-item-desc { font-size: .8rem; color: #9fb0cc; display: block; margin-top: .1rem; font-weight: 400; }
.fx-mega-clientes { margin-top: .75rem; padding: .85rem .75rem 0; border-top: 1px solid #1c3257; }
.fx-mega-clientes-label {
  font-family: var(--wp--preset--font-family--titulo), sans-serif;
  font-size: .7rem; font-weight: 600; letter-spacing: .08em;
  text-transform: uppercase; color: #9fb0cc; margin: 0 0 .65rem;
}
.fx-mega-clientes ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .9rem 1.1rem; align-items: center; }
/* Logos têm fundo branco opaco (sem transparência) — exibe cada uma num chip
   branco arredondado, nas cores reais. NÃO usar filtro de silhueta aqui: com
   fundo opaco ele vira um retângulo branco/cinza sólido. */
.fx-mega-clientes img {
  height: 42px; width: auto; max-width: 104px; object-fit: contain;
  background: #fff; border-radius: 5px; padding: 5px 7px;
  opacity: .92; transition: opacity .2s ease, transform .2s ease;
}
.fx-mega-clientes a:hover img, .fx-mega-clientes a:focus-visible img { opacity: 1; transform: translateY(-1px); }

.fx-submenu { list-style: none; margin: 0; padding: .1rem 0 .5rem; }
.fx-submenu a { display: block; padding: .5rem .75rem; color: #c2cee6; border-radius: 4px; }
.fx-submenu a:hover { color: var(--fx-azul-claro); background: rgba(143, 184, 255, .08); }

@media (min-width: 900px) {
  .fx-nav { display: block; }
  .fx-nav > ul { display: flex; flex-direction: row; gap: 1.75rem; align-items: center; }
  .fx-has-dropdown { padding-bottom: .25rem; }

  .fx-dropdown-panel {
    position: absolute; top: calc(100% + .25rem); z-index: 600;
    background: var(--fx-petrol-dark); border: 1px solid #1c3257;
    border-top: 3px solid var(--fx-ouro);
    border-radius: 0 0 8px 8px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, .4);
    opacity: 0; visibility: hidden; transform: translateY(-6px);
    transition: opacity .18s ease, transform .18s ease, visibility .18s;
  }
  .fx-has-dropdown:hover > .fx-dropdown-panel,
  .fx-has-dropdown:focus-within > .fx-dropdown-panel,
  .fx-has-dropdown.is-open > .fx-dropdown-panel {
    display: block; opacity: 1; visibility: visible; transform: translateY(0);
  }
  .fx-mega-panel { left: 0; width: min(640px, 80vw); padding: 1.5rem 1.5rem 1.25rem; }
  .fx-mega-panel.align-right { left: auto; right: 0; }
  .fx-mega-cols { grid-template-columns: 1fr 1fr; gap: .25rem 1.5rem; }
  .fx-mega-cols a { padding: .6rem .65rem; }
  .fx-mega-cols a:hover { background: rgba(143, 184, 255, .1); }
  .fx-submenu-panel { left: 0; min-width: 240px; padding: .5rem; }
  .fx-submenu { padding: 0; }
  .fx-submenu a { padding: .6rem .75rem; }
}
@media (prefers-reduced-motion: reduce) {
  .fx-dropdown-panel { transition: none !important; transform: none !important; }
  .fx-caret { transition: none !important; }
}

/* ---- WhatsApp flutuante ---- */
.fx-whatsapp-float {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 999;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--fx-whatsapp);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .25);
  transition: transform .15s ease;
}
.fx-whatsapp-float:hover { transform: scale(1.06); }
.fx-whatsapp-float svg { width: 30px; height: 30px; fill: #fff; }

/* ---- Grade de produtos (home) ---- */
.fx-grade-produtos {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 600px) {
  .fx-grade-produtos { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1000px) {
  .fx-grade-produtos { grid-template-columns: repeat(4, 1fr); }
}
.fx-grade-produtos .fx-card { text-decoration: none; color: inherit; display: block; }
.fx-grade-produtos .fx-card h3 {
  font-family: var(--wp--preset--font-family--titulo), sans-serif;
  font-size: 1.05rem;
  color: var(--fx-petrol);
  margin: 0 0 .4rem;
}
.fx-grade-produtos .fx-card p {
  font-size: .9rem;
  line-height: 1.55;
  color: var(--fx-cinza-aco);
  margin: 0;
}

/* ---- Chips de setores ---- */
.fx-chips {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  justify-content: center;
}
.fx-chips span {
  font-family: var(--wp--preset--font-family--titulo), sans-serif;
  font-weight: 500;
  font-size: .95rem;
  color: var(--fx-petrol);
  background: var(--fx-off-white);
  border: 1px solid var(--fx-borda);
  border-radius: 4px;
  padding: 10px 16px;
}

/* ---- Passos do processo ---- */
.fx-passos {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.5rem;
}
@media (min-width: 700px) {
  .fx-passos { grid-template-columns: repeat(2, 1fr); gap: 2rem 2.5rem; }
}
.fx-passos li {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
.fx-passo-num {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--fx-petrol);
  color: var(--fx-azul-claro);
  font-family: var(--wp--preset--font-family--titulo), sans-serif;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.fx-passos h3 {
  font-family: var(--wp--preset--font-family--titulo), sans-serif;
  font-size: 1.1rem;
  margin: .1rem 0 .35rem;
  color: var(--fx-petrol);
}
.fx-passos p { margin: 0; color: var(--fx-cinza-aco); line-height: 1.55; }

/* ---- Nav: acordeão mobile ---- */
@media (max-width: 899px) {
  .fx-nav {
    display: none;
    flex-basis: 100%;
    margin-top: 1rem;
  }
  .fx-nav.is-open { display: block; }
  .fx-nav > ul { display: flex; flex-direction: column; gap: .25rem; }
  .fx-nav > ul > li > a { padding: .6rem 0; display: block; }
  .fx-nav > ul > li > .fx-nav-trigger { width: 100%; justify-content: space-between; padding: .6rem 0; }
  .fx-header-inner { flex-wrap: wrap; }
  .fx-header-cta { display: none; }
}

/* estado de teste estático (?menu=open) — força um painel aberto p/ screenshot */
.force-open .fx-dropdown-panel { display: block !important; opacity: 1 !important; visibility: visible !important; transform: none !important; }

/* ---- Prose (texto institucional/técnico longo) ---- */
.fx-prose p { font-size: 1.05rem; line-height: 1.75; color: var(--fx-cinza-aco); }
.fx-prose p strong { color: var(--fx-texto); }
.fx-prose h3 { color: var(--fx-marinho); }
.fx-lead { font-size: 1.2rem; line-height: 1.65; color: var(--fx-texto); }
.fx-lead strong { color: var(--fx-petrol); }

/* ---- Bloco de resposta direta (GEO) ---- */
.fx-resposta-direta {
  border-left: 4px solid var(--fx-ouro);
  background: var(--fx-off-white);
  padding: 1.25rem 1.5rem;
  border-radius: 0 var(--fx-card-radius) var(--fx-card-radius) 0;
  margin: 0 0 1.5rem;
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--fx-texto);
}

/* ---- Cards de capacidade / valores ---- */
.fx-cards-info {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}
@media (min-width: 600px) { .fx-cards-info { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .fx-cards-info.col-3 { grid-template-columns: repeat(3, 1fr); } }
.fx-cards-info .fx-info {
  background: #fff;
  border: 1px solid var(--fx-borda);
  border-radius: var(--fx-card-radius);
  padding: 1.5rem;
  box-shadow: var(--fx-shadow);
}
.fx-cards-info .fx-info h3 { font-size: 1.05rem; margin: 0 0 .5rem; color: var(--fx-petrol); }
.fx-cards-info .fx-info p { font-size: .95rem; line-height: 1.6; color: var(--fx-cinza-aco); margin: 0; }

/* ---- Página institucional (A Faccinox): âncoras + missão/visão/valores + qualidade ---- */
.fx-section-anchor { scroll-margin-top: 90px; }

.fx-page-nav { display: flex; flex-wrap: wrap; gap: .5rem .75rem; margin: 0 0 1.5rem; }
.fx-page-nav a {
  font-family: var(--wp--preset--font-family--titulo), sans-serif;
  font-weight: 600; font-size: .85rem; text-decoration: none;
  color: var(--fx-marinho); background: #fff; border: 1px solid var(--fx-borda); border-radius: 999px;
  padding: 7px 15px; transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.fx-page-nav a:hover { background: var(--fx-marinho); color: #fff; border-color: var(--fx-marinho); }

.fx-mvv { display: grid; grid-template-columns: 1fr; gap: 1.25rem; margin: 2rem 0 0; }
@media (min-width: 760px) { .fx-mvv { grid-template-columns: 1fr 1fr; gap: 1.5rem; } }
.fx-mvv-bloco {
  background: #fff; border: 1px solid var(--fx-borda); border-left: 4px solid var(--fx-ouro);
  border-radius: 0 var(--fx-card-radius) var(--fx-card-radius) 0; padding: 1.5rem 1.75rem; box-shadow: var(--fx-shadow);
}
.fx-mvv-bloco h3 { font-size: 1.15rem; margin: 0 0 .5rem; color: var(--fx-petrol); }
.fx-mvv-bloco p { margin: 0; font-size: 1.02rem; line-height: 1.65; color: var(--fx-cinza-aco); }
.fx-mvv-valores-titulo { margin: 2.75rem 0 0; color: var(--fx-marinho); }

.fx-qualidade-lista { list-style: none; margin: 1.25rem 0 1.5rem; padding: 0; display: grid; gap: .85rem; }
.fx-qualidade-lista li { position: relative; padding-left: 1.6rem; color: #d6deec; line-height: 1.6; }
.fx-qualidade-lista li::before {
  content: ""; position: absolute; left: 0; top: .55em; width: .5rem; height: .5rem;
  background: var(--fx-azul-claro); border-radius: 50%;
}
.fx-qualidade-lista strong { color: #fff; }

/* ---- Galeria de obras (cases / fábrica) ---- */
.fx-obras {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}
@media (min-width: 600px) { .fx-obras { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .fx-obras { grid-template-columns: repeat(3, 1fr); } }
.fx-obras figure { margin: 0; border: 1px solid var(--fx-borda); border-radius: var(--fx-card-radius); overflow: hidden; background: #fff; box-shadow: var(--fx-shadow); }
.fx-obras img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.fx-obras figcaption { padding: .85rem 1rem 1rem; font-size: .9rem; line-height: 1.5; color: var(--fx-cinza-aco); }
.fx-obras figcaption strong { display: block; color: var(--fx-petrol); font-family: var(--wp--preset--font-family--titulo), sans-serif; font-weight: 600; margin-bottom: .15rem; }

/* ---- Bloco de aviso/placeholder explícito ---- */
.fx-aviso {
  border: 1px dashed var(--fx-ouro-profundo);
  border-radius: var(--fx-card-radius);
  background: #eef3fd;
  padding: 1.25rem 1.5rem;
  font-size: .95rem;
  line-height: 1.6;
  color: var(--fx-ouro-profundo);
}

/* ---- Setor (agrupamento de logos) ---- */
.fx-setor-bloco h3 { text-align: center; font-size: 1.05rem; letter-spacing: .04em; text-transform: uppercase; color: var(--fx-marinho); margin-bottom: 1.25rem; }

/* ---- Contato: dados + form ---- */
.fx-contato-dados h3 { font-size: 1.05rem; color: var(--fx-petrol); margin: 1.5rem 0 .35rem; }
.fx-contato-dados p { color: var(--fx-cinza-aco); margin: 0 0 .5rem; line-height: 1.6; }
.fx-form-bloco {
  background: var(--fx-off-white);
  border: 1px solid var(--fx-borda);
  border-radius: var(--fx-card-radius);
  padding: 1.75rem;
}
.fx-mapa-embed { margin-top: 1.5rem; border-radius: var(--fx-card-radius); overflow: hidden; border: 1px solid var(--fx-borda); }
.fx-mapa-embed iframe { width: 100%; height: 280px; border: 0; display: block; }

/* ---- Formulário (esqueleto acessível) ---- */
.fx-form-orcamento { display: grid; gap: 1rem; }
.fx-form-orcamento label { font-family: var(--wp--preset--font-family--titulo), sans-serif; font-weight: 500; font-size: .9rem; display: block; margin-bottom: .35rem; }
.fx-form-orcamento input, .fx-form-orcamento select, .fx-form-orcamento textarea {
  width: 100%; padding: 12px 14px; border-radius: 4px; border: 1px solid var(--fx-borda);
  font-family: var(--wp--preset--font-family--corpo), sans-serif; font-size: 1rem;
}

/* ---- Banner de consentimento LGPD ---- */
.fx-consent {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 1000;
  background: var(--fx-petrol); color: #fff;
  border-top: 2px solid var(--fx-ouro);
  box-shadow: 0 -4px 18px rgba(0, 0, 0, .28);
}
.fx-consent[hidden] { display: none; }
.fx-consent-inner {
  max-width: 1200px; margin-inline: auto; padding: 1rem 1.5rem;
  display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem;
  justify-content: space-between;
}
.fx-consent-texto {
  margin: 0; font-size: .9rem; line-height: 1.55; color: #dfe7f5;
  flex: 1 1 360px;
}
.fx-consent-texto a { color: var(--fx-azul-claro); }
.fx-consent-acoes { display: flex; gap: .75rem; flex: 0 0 auto; }
.fx-consent-btn {
  font-family: var(--wp--preset--font-family--titulo), sans-serif;
  font-weight: 600; font-size: .9rem; border-radius: 4px;
  padding: 11px 22px; min-height: 44px; cursor: pointer; line-height: 1.2;
  border: 1.5px solid transparent;
}
.fx-consent-aceitar { background: var(--fx-ouro); color: #fff; }
.fx-consent-aceitar:hover { background: var(--fx-ouro-hover); }
.fx-consent-recusar { background: transparent; color: #fff; border-color: #fff; }
.fx-consent-recusar:hover { background: #fff; color: var(--fx-petrol); }
.fx-consent-btn:focus-visible { outline: 2px solid var(--fx-ouro); outline-offset: 2px; }

/* ---- FAQ (GEO) ---- */
.faq { max-width: 820px; margin-top: 1.5rem; }
.faq-item { border: 1px solid var(--fx-borda); border-radius: var(--fx-card-radius); margin-bottom: .75rem; background: #fff; }
.faq-item summary {
  cursor: pointer; list-style: none; padding: 1.1rem 1.25rem;
  font-family: var(--wp--preset--font-family--titulo), sans-serif; font-weight: 600; font-size: 1.05rem; color: var(--fx-petrol);
  display: flex; justify-content: space-between; align-items: center; gap: 1rem; min-height: 44px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 1.4rem; color: var(--fx-ouro); line-height: 1; flex: 0 0 auto; }
.faq-item[open] summary::after { content: "\2013"; }
.faq-item summary:hover { color: var(--fx-ouro); }
.faq-resposta { padding: 0 1.25rem 1.2rem; }
.faq-resposta p { margin: 0; color: var(--fx-cinza-aco); line-height: 1.7; }

/* ---- Redes sociais no rodapé ---- */
.footer-social { margin-top: 1.25rem; }
.footer-social-label { color: var(--fx-azul-claro); font-size: .95rem; margin: 0 0 .5rem; }
.social-links { list-style: none; display: flex; gap: .6rem; margin: 0; padding: 0; }
.social-links a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border: 1px solid rgba(143, 184, 255, .4); border-radius: 50%;
  color: #d6deec; transition: background .15s, color .15s, border-color .15s;
}
.social-links a:hover { background: var(--fx-azul-claro); color: var(--fx-petrol); border-color: var(--fx-azul-claro); text-decoration: none; }
.social-links svg { display: block; }

/* ---- Reduz movimento ---- */
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}

/* ---- Selo "Construído pela Venno" (crédito discreto no rodapé) ---- */
.fx-built-by { text-align: center; margin: 1.25rem 0 0; font-size: 0.8rem; }
.fx-built-by a {
  display: inline-flex; align-items: center; gap: .5rem;
  color: inherit; text-decoration: none; opacity: .7; transition: opacity .2s ease;
}
.fx-built-by a:hover, .fx-built-by a:focus-visible { opacity: 1; }
.fx-venno-mark {
  width: 14px; height: 14px; border-radius: 4px; flex: none;
  background: #3556F2; display: inline-block;
}
