/* ============================================================
   ELÉTRICA TRANSFORMADORES — Landing de campanha
   Paleta da marca: navy #0B1D57 · #1E2D84 · laranja #FF8800 · branco
   Fotografia real + ícones de contexto + tipografia IBM Plex
   ============================================================ */

@layer fontes, base, reset, tipo, comp, sec, util;

/* ============================== FONTES ============================== */
@layer fontes {
  @font-face {
    font-family: 'Plex';
    src: url('../fonts/plex-sans-var.woff2') format('woff2-variations');
    font-weight: 400 700;
    font-style: normal;
    font-display: swap;
  }
  @font-face {
    font-family: 'PlexMono';
    src: url('../fonts/plex-mono-500.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
  }
}

/* ============================== BASE ============================== */
@layer base {
  :root {
    /* --- marca --- */
    --nv:      #0b1d57;
    --nv2:     #1e2d84;
    --lj:      #ff8800;
    --br:      #ffffff;

    /* --- derivadas --- */
    --nv-esc:  #071238;
    --nv-cl:   #2c3d9c;
    --papel:   #f5f7fb;
    --papel2:  #e9eef7;
    --linha:   #dbe2ef;
    --linha2:  #c3cde3;
    --tx:      #142657;
    --tx2:     #58658d;
    --tx3:     #8590ae;
    --lj-esc:  #e37700;
    --lj-cl:   #ffa033;
    --verde:   #128c4b;
    --vermelho:#c62828;

    /* --- tipografia --- */
    --ff: 'Plex', 'Segoe UI', system-ui, -apple-system, sans-serif;
    --mono: 'PlexMono', ui-monospace, Consolas, monospace;

    --xs:  clamp(.72rem,  .7rem  + .08vw, .77rem);
    --sm:  clamp(.82rem,  .79rem + .12vw, .89rem);
    --md:  clamp(.93rem,  .9rem  + .15vw, 1.01rem);
    --lg:  clamp(1rem,    .96rem + .22vw, 1.12rem);
    /* Os operadores + e - dentro de clamp() EXIGEM espaço em volta.
       "1.55rem+ 2.3vw" invalida a expressão toda e a variável não
       resolve — o título cai para o tamanho herdado. */
    --h4s: clamp(1.05rem, 1rem + .3vw, 1.26rem);
    --h3s: clamp(1.15rem, 1.06rem + .42vw, 1.45rem);
    --h2s: clamp(1.65rem, 1.32rem + 1.6vw, 2.85rem);
    --h1s: clamp(2rem, 1.55rem + 2.3vw, 3.5rem);

    /* --- espaço --- */
    --pad: clamp(1.15rem, .65rem + 2.2vw, 2.75rem);
    --vs:  clamp(2.6rem, 2rem + 2.6vw, 4.2rem);
    --v:   clamp(3.6rem, 2.5rem + 4.4vw, 6.5rem);
    --max: 1280px;

    /* --- forma --- */
    --r:  6px;
    --r2: 10px;
    --rp: 999px;

    /* --- movimento --- */
    --e:  cubic-bezier(.25, .8, .3, 1);
    --f:  .18s var(--e);
    --m:  .32s var(--e);

    /* --- sombra: suave, nunca colorida --- */
    --s1: 0 1px 2px rgba(11,29,87,.06), 0 4px 12px -4px rgba(11,29,87,.1);
    --s2: 0 2px 6px rgba(11,29,87,.07), 0 16px 38px -14px rgba(11,29,87,.22);
    --s3: 0 4px 10px rgba(11,29,87,.1), 0 28px 60px -20px rgba(11,29,87,.3);
  }
}

/* ============================== RESET ============================== */
@layer reset {
  *, *::before, *::after { box-sizing: border-box; }
  * { margin: 0; }

  html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
    scroll-padding-top: 86px;
  }
  @media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
      animation-duration: .01ms !important;
      animation-iteration-count: 1 !important;
      transition-duration: .01ms !important;
    }
  }

  body {
    font-family: var(--ff);
    font-size: var(--md);
    line-height: 1.62;
    color: var(--tx);
    background: var(--br);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
  }

  img, svg { display: block; max-width: 100%; }
  img { height: auto; }
  svg { fill: none; }
  picture { display: contents; }

  button, input, select, textarea { font: inherit; color: inherit; }
  button { background: none; border: 0; cursor: pointer; }
  a { color: inherit; text-decoration: none; }
  ul, ol { list-style: none; padding: 0; }
  table { border-collapse: collapse; }
  summary { cursor: pointer; list-style: none; }
  summary::-webkit-details-marker { display: none; }
  fieldset { border: 0; padding: 0; min-inline-size: 0; }
  address { font-style: normal; }

  :focus-visible { outline: 3px solid var(--lj); outline-offset: 2px; }
  ::selection { background: var(--lj); color: #2b1600; }
}

/* ============================== TIPOGRAFIA ============================== */
@layer tipo {
  .wrap {
    width: 100%;
    max-width: var(--max);
    margin-inline: auto;
    padding-inline: var(--pad);
  }

  /* Título em duas cores: navy na 1ª linha, laranja na 2ª.
     É a assinatura tipográfica da página. */
  .h1 {
    font-size: var(--h1s);
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: -.022em;
    text-wrap: balance;
  }
  .h1__d { color: var(--lj); }

  .h2 {
    font-size: var(--h2s);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -.018em;
    text-wrap: balance;
  }
  .h2__d { color: var(--lj); }

  h3 { font-size: var(--h3s); font-weight: 600; line-height: 1.24; letter-spacing: -.008em; }
  h4 {
    font-family: var(--mono);
    font-weight: 500;
    font-size: var(--xs);
    letter-spacing: .1em;
    text-transform: uppercase;
  }

  .lead {
    font-size: var(--lg);
    line-height: 1.6;
    max-width: 46ch;
    text-wrap: pretty;
  }

  .mn { font-family: var(--mono); font-weight: 500; font-variant-numeric: tabular-nums; }

  .ic { width: 1.15em; height: 1.15em; flex: none; }

  /* etiqueta de seção */
  .tit__k {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    font-family: var(--mono);
    font-size: var(--xs);
    font-weight: 500;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--lj);
  }
  .tit__k::before {
    content: "";
    width: 18px; height: 2px;
    background: var(--lj);
  }
  .tit__k--c { color: var(--lj-cl); }

  .tit {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
    gap: clamp(1.2rem, .6rem + 2vw, 3rem);
    align-items: end;
    margin-bottom: clamp(1.9rem, 1.4rem + 1.8vw, 3.2rem);
  }
  .tit .h2 { margin-top: .8rem; }
  .tit__s { color: var(--tx2); font-size: var(--md); text-wrap: pretty; }
  .tit--c { grid-template-columns: 1fr; justify-items: center; text-align: center; }

  .sr {
    position: absolute; width: 1px; height: 1px;
    padding: 0; margin: -1px; overflow: hidden;
    clip-path: inset(50%); white-space: nowrap;
  }

  .pular {
    position: fixed; top: -100px; left: 50%;
    transform: translateX(-50%);
    z-index: 999;
    background: var(--lj); color: #2b1600;
    padding: .8rem 1.4rem;
    font-weight: 600;
    font-size: var(--sm);
    border-radius: 0 0 var(--r) var(--r);
    transition: top var(--f);
  }
  .pular:focus { top: 0; }
}

/* ============================== COMPONENTES ============================== */
@layer comp {

  /* -------------------- BOTÕES -------------------- */
  .bo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    padding: .92rem 1.6rem;
    font-size: var(--sm);
    font-weight: 600;
    border: 1.5px solid transparent;
    border-radius: var(--r);
    cursor: pointer;
    white-space: nowrap;
    transition: background var(--f), border-color var(--f), color var(--f), transform var(--f), box-shadow var(--f);
  }
  .bo--g { padding: 1.05rem 1.9rem; font-size: var(--md); }
  .bo--f { width: 100%; }

  .bo--p {
    background: var(--lj);
    border-color: var(--lj);
    color: #2b1600;
    box-shadow: 0 4px 14px -6px rgba(255,136,0,.7);
  }
  .bo--p:hover {
    background: var(--lj-esc); border-color: var(--lj-esc);
    transform: translateY(-1px);
    box-shadow: 0 7px 20px -6px rgba(255,136,0,.8);
  }
  .bo--p:active { transform: none; }

  .bo--v { background: transparent; border-color: var(--linha2); color: var(--nv); }
  .bo--v:hover { background: var(--nv); border-color: var(--nv); color: var(--br); }

  .bo--w { background: var(--verde); border-color: var(--verde); color: var(--br); }
  .bo--w:hover { background: #0d7340; border-color: #0d7340; }

  .bo[disabled] { opacity: .45; pointer-events: none; }

  /* link com seta */
  .lk {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    margin-top: auto;
    padding-top: 1.1rem;
    font-size: var(--sm);
    font-weight: 600;
    color: var(--nv);
    transition: color var(--f), gap var(--f);
  }
  .lk .ic { width: 1em; height: 1em; color: var(--lj); }
  .lk:hover { color: var(--lj); gap: .8rem; }

  /* -------------------- REVELAÇÃO -------------------- */
  .rv { opacity: 0; transform: translateY(16px); }
  .rv.on {
    opacity: 1; transform: none;
    transition: opacity .55s var(--e), transform .55s var(--e);
    transition-delay: var(--d, 0ms);
  }
  @media (prefers-reduced-motion: reduce) { .rv { opacity: 1; transform: none; } }
}

/* ============================== SEÇÕES ============================== */
@layer sec {

  /* ============ BARRA ============ */
  .faixa {
    background: var(--nv-esc);
    color: rgba(255,255,255,.7);
    font-size: var(--xs);
  }
  .faixa__in {
    display: flex; align-items: center; justify-content: space-between;
    gap: 1rem; min-height: 36px;
  }
  .faixa__txt { display: inline-flex; align-items: center; gap: .45rem; }
  .faixa__dir { display: flex; align-items: center; gap: 1.3rem; }
  .faixa__dir a {
    display: inline-flex; align-items: center; gap: .4rem;
    transition: color var(--f);
  }
  .faixa__dir a:hover { color: var(--lj); }
  .faixa__dir b { color: var(--br); font-family: var(--mono); font-weight: 500; }
  @media (max-width: 720px) { .faixa__ex { display: none; } }
  @media (max-width: 520px) {
    .faixa__txt { display: none; }
    .faixa__in { justify-content: center; }
  }

  /* ============ CABEÇALHO ============ */
  .cab {
    position: sticky; top: 0; z-index: 90;
    background: var(--br);
    border-bottom: 1px solid var(--linha);
    transition: box-shadow var(--m);
  }
  .cab.fx { box-shadow: var(--s1); }
  .cab__in { display: flex; align-items: center; gap: clamp(1rem, .2rem + 2vw, 2.4rem); min-height: 68px; }
  .cab__logo img { width: clamp(126px, 11vw, 160px); }
  .cab__nav { display: flex; gap: clamp(.85rem, .2rem + 1.4vw, 1.85rem); margin-left: auto; }
  .cab__nav a {
    position: relative;
    font-size: var(--sm); font-weight: 500;
    color: var(--tx2);
    padding: .4rem 0;
    transition: color var(--f);
  }
  .cab__nav a::after {
    content: "";
    position: absolute; left: 0; bottom: 0;
    width: 100%; height: 2px;
    background: var(--lj);
    transform: scaleX(0); transform-origin: left;
    transition: transform var(--m);
  }
  .cab__nav a:hover { color: var(--nv); }
  .cab__nav a:hover::after { transform: scaleX(1); }

  .cab__bt {
    display: none; margin-left: auto;
    width: 40px; height: 40px;
    flex-direction: column; justify-content: center; gap: 5px; padding: 0 7px;
  }
  .cab__bt span { display: block; height: 2px; width: 100%; background: var(--nv); border-radius: 2px; transition: transform var(--f), opacity var(--f); }
  .cab__bt[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .cab__bt[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .cab__bt[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .cab__m { display: grid; padding: .3rem var(--pad) 1.4rem; border-top: 1px solid var(--linha); background: var(--papel); }
  .cab__m a:not(.bo) { padding: .9rem .1rem; font-weight: 500; color: var(--tx2); border-bottom: 1px solid var(--linha); }
  .cab__m .bo { margin-top: 1rem; }

  @media (max-width: 1020px) { .cab__nav, .cab__cta { display: none; } .cab__bt { display: flex; } }
  @media (min-width: 1021px) { .cab__m { display: none !important; } }

  /* ===================================================================
     HERO
     =================================================================== */
  .hero {
    position: relative;
    isolation: isolate;
    background: var(--nv);
    color: var(--br);
    padding-block: clamp(2.2rem, 1.4rem + 3vw, 4rem) var(--vs);
    overflow: hidden;
  }
  /* foto real de fábrica: atmosfera sob camada navy.
     A foto é de baixa resolução (671px), então nunca aparece nítida —
     o que aqui é vantagem, não limitação. */
  .hero__foto { position: absolute; inset: 0; z-index: -2; }
  .hero__foto img {
    width: 100%; height: 100%;
    object-fit: cover;
    filter: saturate(.5) contrast(1.05);
  }
  .hero::before {
    content: "";
    position: absolute; inset: 0; z-index: -1;
    background:
      linear-gradient(100deg, var(--nv) 8%, rgba(11,29,87,.94) 46%, rgba(11,29,87,.8) 100%),
      linear-gradient(to bottom, rgba(7,18,56,.5), transparent 40%);
  }

  .hero__in {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
    gap: clamp(1.8rem, .6rem + 3.6vw, 4rem);
    align-items: start;
  }

  .selo {
    display: inline-flex; align-items: center; gap: .55rem;
    padding: .42rem .85rem;
    background: rgba(255,255,255,.1);
    border: 1px solid rgba(255,255,255,.22);
    border-radius: var(--rp);
    font-size: var(--xs);
    font-weight: 500;
    letter-spacing: .02em;
  }
  .selo .ic { color: var(--lj); width: 1.15em; height: 1.15em; }

  .hero .h1 { margin-top: 1.3rem; }
  .hero .lead { margin-top: 1.15rem; color: rgba(255,255,255,.8); }

  .hero__acao {
    display: flex; align-items: center; flex-wrap: wrap;
    gap: 1rem clamp(1.1rem, .6rem + 1.4vw, 2rem);
    margin-top: 1.9rem;
  }
  .hero__tel { display: inline-flex; align-items: center; gap: .7rem; }
  .hero__tel__ic {
    display: grid; place-items: center;
    width: 42px; height: 42px;
    border-radius: 50%;
    background: rgba(255,255,255,.1);
    border: 1px solid rgba(255,255,255,.22);
    color: var(--lj);
    transition: background var(--f);
  }
  .hero__tel:hover .hero__tel__ic { background: rgba(255,136,0,.2); }
  .hero__tel small { display: block; font-size: var(--xs); color: rgba(255,255,255,.62); }
  .hero__tel b { display: block; font-size: var(--md); font-family: var(--mono); font-weight: 500; }

  /* números do hero */
  .hero__num {
    display: flex; flex-wrap: wrap;
    gap: clamp(1.2rem, .6rem + 2vw, 2.6rem);
    margin-top: 2.2rem;
    padding-top: 1.7rem;
    border-top: 1px solid rgba(255,255,255,.18);
  }
  .hero__num dt {
    font-size: var(--xs);
    color: rgba(255,255,255,.58);
    letter-spacing: .04em;
  }
  .hero__num dd {
    margin-top: .1rem;
    font-size: clamp(1.4rem, 1.1rem + 1.1vw, 2.05rem);
    font-weight: 700;
    letter-spacing: -.02em;
    font-variant-numeric: tabular-nums;
    line-height: 1.1;
  }
  .hero__num dd span {
    display: inline-block;
    margin-left: .25rem;
    font-size: var(--xs);
    font-weight: 500;
    color: var(--lj);
    letter-spacing: .04em;
  }

  /* ============ CAIXA DO FORMULÁRIO ============ */
  .fbox {
    background: var(--br);
    color: var(--tx);
    border-radius: var(--r2);
    box-shadow: var(--s3);
    overflow: hidden;
    scroll-margin-top: 88px;
  }
  .fbox__cab {
    padding: clamp(1.15rem, .95rem + .7vw, 1.6rem) clamp(1.15rem, .95rem + .8vw, 1.7rem) 1.05rem;
    border-bottom: 1px solid var(--linha);
  }
  .fbox__cab h2 { font-size: var(--h4s); font-weight: 700; line-height: 1.2; letter-spacing: -.012em; }
  .fbox__cab p { margin-top: .3rem; font-size: var(--sm); color: var(--tx2); }

  .fbox__prog {
    display: flex; align-items: center; gap: .85rem;
    padding: .7rem clamp(1.15rem, .95rem + .8vw, 1.7rem);
    background: var(--papel);
    border-bottom: 1px solid var(--linha);
  }
  .pg { flex: 1; height: 5px; background: var(--papel2); border-radius: var(--rp); overflow: hidden; }
  .pg span {
    display: block; height: 100%; width: 12.5%;
    background: var(--lj);
    border-radius: var(--rp);
    transition: width .4s var(--e);
  }
  .pg__n { font-family: var(--mono); font-size: var(--xs); color: var(--tx2); white-space: nowrap; }
  .pg__n b { color: var(--nv); }

  /* A altura mínima é o que mantém a caixa parada enquanto o usuário
     avança pelas etapas — sem ela o quadro pula de tamanho a cada
     resposta. O valor é o da etapa mais alta (potência e contato), para
     que a base da caixa termine junto com a coluna de texto do hero. */
  .fbox form {
    padding: clamp(1.15rem, .95rem + .8vw, 1.7rem);
    min-height: 400px;
    display: flex; flex-direction: column;
  }

  /* --- etapas --- */
  .et { display: none; }
  /* margin-top:auto aqui e no .fnav divide a sobra em duas partes iguais:
     a etapa curta fica centrada no espaço acima dos botões, em vez de
     grudada no topo com um vazio embaixo. */
  .et.is-on { display: block; margin-top: auto; animation: ent .3s var(--e); }
  @keyframes ent { from { opacity: 0; transform: translateX(10px); } to { opacity: 1; transform: none; } }
  .et__q { font-size: var(--h4s); font-weight: 700; line-height: 1.22; letter-spacing: -.012em; padding: 0; text-wrap: balance; }
  .et__d { margin-top: .35rem; font-size: var(--xs); color: var(--tx3); text-wrap: pretty; }
  .et__q + .op, .et__d + .op, .et__q + .cs, .et__d + .cs { margin-top: 1.05rem; }

  /* --- opções --- */
  .op { display: grid; gap: .5rem; }
  .op--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .op--kva { grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); gap: .38rem; }
  /* "não sei" ocupa a linha toda: como célula normal ficava órfã numa
     linha só dela, com a legenda quebrada em duas linhas */
  .op--kva .o--x { grid-column: 1 / -1; }

  .o { position: relative; display: block; cursor: pointer; }
  .o input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
  .o__c {
    display: block; height: 100%;
    padding: .78rem .85rem;
    background: var(--br);
    border: 1.5px solid var(--linha2);
    border-radius: var(--r);
    transition: border-color var(--f), background var(--f), box-shadow var(--f);
  }
  .o__c b { display: block; font-size: var(--sm); font-weight: 600; line-height: 1.24; }
  .o__c small { display: block; margin-top: .16rem; font-size: var(--xs); line-height: 1.36; color: var(--tx3); text-wrap: pretty; }
  .o:hover .o__c { border-color: var(--nv2); background: var(--papel); }
  .o input:focus-visible + .o__c { outline: 3px solid var(--lj); outline-offset: 1px; }
  .o input:checked + .o__c {
    border-color: var(--nv);
    background: var(--nv);
    box-shadow: 0 4px 14px -6px rgba(11,29,87,.5);
  }
  .o input:checked + .o__c b { color: var(--br); }
  .o input:checked + .o__c small { color: rgba(255,255,255,.72); }

  .o--n .o__c {
    padding: .62rem .3rem;
    text-align: center;
    font-family: var(--mono);
    font-weight: 500;
    font-size: var(--sm);
    font-variant-numeric: tabular-nums;
  }
  .o--n input:checked + .o__c { color: var(--br); }
  .o--x .o__c { border-style: dashed; color: var(--tx2); }
  .o--s .o__c { padding: .72rem .85rem; }

  /* --- campos --- */
  .cs { display: grid; gap: .8rem; }
  .cs--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cs + .c { margin-top: .8rem; }

  .c label {
    display: block; margin-bottom: .32rem;
    font-size: var(--xs); font-weight: 600;
    color: var(--tx2);
  }
  .op-t { font-weight: 400; color: var(--tx3); }

  .c input, .c select, .c textarea {
    width: 100%;
    padding: .78rem .85rem;
    background: var(--br);
    border: 1.5px solid var(--linha2);
    border-radius: var(--r);
    font-size: var(--sm);
    transition: border-color var(--f), box-shadow var(--f);
  }
  .c textarea { resize: vertical; min-height: 64px; }
  .c select {
    cursor: pointer; appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2358658d' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right .75rem center; background-size: 15px;
    padding-right: 2.3rem;
  }
  .c input::placeholder, .c textarea::placeholder { color: var(--tx3); }
  .c input:focus, .c select:focus, .c textarea:focus {
    outline: 0; border-color: var(--nv);
    box-shadow: 0 0 0 3px rgba(30,45,132,.13);
  }
  .c input[aria-invalid="true"], .c select[aria-invalid="true"] { border-color: var(--vermelho); }

  .er { display: none; margin-top: .28rem; font-size: var(--xs); color: var(--vermelho); }
  .er.on { display: block; }

  .lg {
    display: flex; align-items: flex-start; gap: .55rem;
    margin-top: 1rem;
    font-size: var(--xs); line-height: 1.45; color: var(--tx2);
    cursor: pointer;
  }
  .lg input { flex: none; width: 17px; height: 17px; margin-top: .1em; accent-color: var(--nv); cursor: pointer; }

  .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

  /* --- recapitulação --- */
  .rc {
    display: none;
    margin-top: .95rem; padding: .75rem .85rem;
    background: var(--papel);
    border-left: 3px solid var(--lj);
    border-radius: 0 var(--r) var(--r) 0;
  }
  .rc.on { display: block; }
  .rc h4 { color: var(--tx2); margin-bottom: .45rem; }
  .rc ul { display: flex; flex-wrap: wrap; gap: .32rem; }
  .rc li {
    font-size: var(--xs); font-weight: 500;
    padding: .22rem .5rem;
    background: var(--br);
    border: 1px solid var(--linha2);
    border-radius: var(--rp);
    color: var(--nv);
  }

  /* --- navegação --- */
  .fnav { display: flex; gap: .5rem; margin-top: auto; padding-top: 1.2rem; }
  #btnPrev { flex: none; }
  /* o estado "Enviando…" saiu junto com o envio por e-mail: o botão
     agora só abre a conversa do WhatsApp, sem espera de rede */
  .fnav__n { margin-top: .7rem; text-align: center; font-size: var(--xs); color: var(--tx3); }
  .fnav__n a { color: var(--nv); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
  .fnav__n a:hover { color: var(--lj); }

  /* --- conclusão --- */
  /* margin-block:auto — na conclusão a navegação some e a tela de
     sucesso fica sozinha na caixa: centraliza no lugar de subir ao topo */
  .ok { text-align: center; padding: 1.1rem 0 .4rem; margin-block: auto; }
  .ok__ic {
    display: grid; place-items: center;
    width: 56px; height: 56px; margin: 0 auto 1.1rem;
    border-radius: 50%;
    background: rgba(18,140,75,.1);
    border: 2px solid var(--verde);
    color: var(--verde);
    animation: pop .4s var(--e);
  }
  .ok__ic svg { width: 26px; height: 26px; }
  @keyframes pop { from { transform: scale(.7); opacity: 0; } to { transform: scale(1); opacity: 1; } }
  .ok h3 { margin-bottom: .5rem; }
  .ok p { font-size: var(--sm); color: var(--tx2); max-width: 40ch; margin: 0 auto 1.3rem; }

  @media (max-width: 1000px) {
    .hero__in { grid-template-columns: 1fr; gap: 0; }
    .hero__txt { display: contents; }
    .hero__txt > .selo      { order: 1; }
    .hero__txt > .h1        { order: 2; }
    .hero__txt > .lead      { order: 3; }
    .fbox                   { order: 4; margin-top: 2rem; }
    /* empilhado não há coluna vizinha para acompanhar: a caixa passa a
       acompanhar o conteúdo, senão sobra vazio no meio da tela */
    .fbox form              { min-height: 300px; }
    .hero__txt > .hero__acao{ order: 5; margin-top: 1.9rem; }
    .hero__txt > .hero__num { order: 6; }
  }

  /* ===================================================================
     PILARES
     =================================================================== */
  .pilar { background: var(--papel); border-bottom: 1px solid var(--linha); }
  .pilar__in {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: clamp(.8rem, .5rem + 1vw, 1.4rem);
    padding-block: clamp(2rem, 1.5rem + 2vw, 3.2rem);
  }
  .pi {
    padding: clamp(1.1rem, .9rem + .9vw, 1.6rem);
    background: var(--br);
    border: 1px solid var(--linha);
    border-radius: var(--r2);
    border-top: 3px solid var(--nv);
    transition: border-top-color var(--m), box-shadow var(--m), transform var(--m);
  }
  .pi:hover { border-top-color: var(--lj); box-shadow: var(--s2); transform: translateY(-3px); }
  .pi__ic {
    display: grid; place-items: center;
    width: 48px; height: 48px; margin-bottom: 1rem;
    border-radius: var(--r);
    background: var(--nv);
    color: var(--lj);
    transition: background var(--m);
  }
  .pi:hover .pi__ic { background: var(--nv2); }
  .pi__ic svg { width: 26px; height: 26px; }
  .pi h3 { font-size: var(--lg); margin-bottom: .45rem; }
  .pi p { font-size: var(--sm); color: var(--tx2); text-wrap: pretty; }

  @media (max-width: 900px) { .pilar__in { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
  @media (max-width: 520px) { .pilar__in { grid-template-columns: 1fr; } }

  /* ===================================================================
     TIPOS
     =================================================================== */
  .tipos { padding-block: var(--v); }

  /* ---------- linha de fabricação: 4 produtos com foto ---------- */
  /* 3 colunas: a linha tem trifásico, a óleo e a seco */
  .prod__g {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(.8rem, .5rem + 1vw, 1.3rem);
  }
  .pd {
    display: flex;
    flex-direction: column;
    background: var(--br);
    border: 1px solid var(--linha);
    border-radius: var(--r2);
    overflow: hidden;
    transition: box-shadow var(--m), border-color var(--m), transform var(--m);
  }
  .pd:hover {
    box-shadow: var(--s2);
    border-color: var(--linha2);
    transform: translateY(-3px);
  }

  .pd__fig {
    --pdp: clamp(.9rem, .7rem + .6vw, 1.3rem);
    position: relative;
    /* altura fixa: as fotos têm proporções diferentes (o "a seco" é
       vertical, o "a óleo" é largo) e sem isso os cards desalinham */
    height: clamp(170px, 15vw, 215px);
    background: var(--papel);
    border-bottom: 1px solid var(--linha);
    overflow: hidden;
  }

  /* Posicionamento absoluto + object-fit em vez de max-height: 100%.
     Num grid item cuja linha é `auto`, o percentual de max-height fica
     indefinido e o navegador o trata como `none`: a foto vertical do
     transformador a seco renderizava com 401px numa caixa de 215px e
     invadia o texto do card. Aqui a caixa é explícita e o object-fit
     resolve a proporção. */
  .pd__fig img {
    position: absolute;
    inset: var(--pdp);
    width: calc(100% - var(--pdp) * 2);
    height: calc(100% - var(--pdp) * 2);
    max-width: none;
    object-fit: contain;
  }
  .pd__fig img { mix-blend-mode: multiply; }   /* dissolve o fundo branco */

  .pd__tag {
    position: absolute;
    top: .7rem; left: .7rem;
    padding: .2rem .55rem;
    background: var(--lj);
    color: var(--nv);
    border-radius: var(--rp);
    font-family: var(--mono);
    font-size: 10px;
    font-weight: 500;
    letter-spacing: .07em;
    text-transform: uppercase;
  }

  .pd__txt {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: clamp(1rem, .85rem + .7vw, 1.35rem);
  }
  .pd__txt h3 { font-size: var(--lg); margin-bottom: .5rem; }
  /* flex:1 no parágrafo empurra as specs para a base: os textos têm 3 ou
     4 linhas e, sem isso, as tabelas começam em alturas diferentes entre
     os cards e as linhas não se alinham na horizontal. */
  .pd__txt > p {
    flex: 1;
    font-size: var(--sm);
    color: var(--tx2);
    line-height: 1.58;
    text-wrap: pretty;
  }

  .pd__spec {
    margin: 1rem 0 0;
    border-top: 1px solid var(--linha);
  }
  .pd__spec > div {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: .6rem;
    padding: .5rem 0;
    border-bottom: 1px solid var(--linha);
  }
  .pd__spec dt {
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--tx3);
    flex: none;
  }
  .pd__spec dd {
    font-size: var(--xs);
    font-weight: 600;
    color: var(--nv);
    text-align: right;
  }

  .pd .lk { margin-top: auto; }

  @media (max-width: 900px) { .prod__g { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
  @media (max-width: 560px)  { .prod__g { grid-template-columns: 1fr; } }

  /* ===================================================================
     APLICAÇÕES
     =================================================================== */
  .apl { padding-block: var(--v); background: var(--papel); border-block: 1px solid var(--linha); }
  .apl__g {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(.9rem, .6rem + 1vw, 1.5rem);
  }
  .apl__g li {
    padding: clamp(1.2rem, 1rem + 1vw, 1.7rem);
    background: var(--br);
    border-radius: var(--r2);
    border: 1px solid var(--linha);
    transition: transform var(--m), box-shadow var(--m);
  }
  .apl__g li:hover { transform: translateY(-3px); box-shadow: var(--s2); }
  .apl__ic {
    display: grid; place-items: center;
    width: 58px; height: 58px; margin-bottom: 1.05rem;
    border-radius: 50%;
    background: rgba(255,136,0,.16);
    border: 1px solid rgba(255,136,0,.4);
    color: var(--nv);
    transition: background var(--m), border-color var(--m);
  }
  .apl__g li:hover .apl__ic { background: var(--lj); border-color: var(--lj); }
  .apl__ic svg { width: 31px; height: 31px; }
  .apl__g h3 { font-size: var(--lg); margin-bottom: .4rem; }
  .apl__g p { font-size: var(--sm); color: var(--tx2); text-wrap: pretty; }
  @media (max-width: 880px) { .apl__g { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
  @media (max-width: 540px) { .apl__g { grid-template-columns: 1fr; } }

  /* ===================================================================
     FÁBRICA
     =================================================================== */
  .fab { padding-block: var(--v); }
  .fab__in {
    display: grid;
    grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
    gap: clamp(1.8rem, .8rem + 3.6vw, 4rem);
    align-items: center;
  }

  /* composição de duas fotos com sobreposição — sem inclinação nem
     moldura decorativa: a foto é o assunto */
  .fab__fotos { position: relative; padding-bottom: clamp(2.5rem, 2rem + 3vw, 4.5rem); }
  .fab__f1 { border-radius: var(--r2); overflow: hidden; box-shadow: var(--s2); }
  .fab__f2 {
    position: absolute;
    right: 0; bottom: 0;
    width: clamp(140px, 34%, 230px);
    border-radius: var(--r2);
    overflow: hidden;
    border: 5px solid var(--br);
    box-shadow: var(--s2);
  }
  .fab__badge {
    position: absolute;
    left: 0; bottom: 0;
    display: flex; align-items: center; gap: .6rem;
    padding: .8rem 1.1rem;
    background: var(--lj);
    color: var(--nv);
    border-radius: var(--r2);
    box-shadow: var(--s2);
  }
  .fab__badge b { font-family: var(--mono); font-size: var(--lg); font-weight: 500; letter-spacing: .04em; }
  .fab__badge span { font-family: var(--mono); font-size: var(--xs); line-height: 1.2; font-weight: 500; }

  .fab__txt .h2 { margin: .8rem 0 1.1rem; }
  .fab__txt > p { color: var(--tx2); max-width: 54ch; text-wrap: pretty; }

  .fab__pt { display: grid; gap: 1.2rem; margin-top: 1.9rem; }
  .fab__pt > div { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 1rem; align-items: start; }
  .fab__pi {
    display: grid; place-items: center;
    width: 46px; height: 46px;
    border-radius: var(--r);
    background: var(--nv);
    color: var(--lj);
  }
  .fab__pi svg { width: 24px; height: 24px; }
  .fab__pt h3 { font-size: var(--lg); margin-bottom: .3rem; }
  .fab__pt p { font-size: var(--sm); color: var(--tx2); text-wrap: pretty; }

  .fab__marca {
    width: clamp(118px, 13vw, 158px);
    margin-top: 1.9rem;
    padding: .55rem .8rem;
    border: 1px solid var(--linha);
    border-radius: var(--r);
  }

  @media (max-width: 900px) {
    .fab__in { grid-template-columns: 1fr; }
    .fab__fotos { order: 2; }
  }

  /* ===================================================================
     DIMENSIONAMENTO
     =================================================================== */
  .dim { padding-block: var(--v); background: var(--papel); border-block: 1px solid var(--linha); }
  .tb__r {
    overflow-x: auto;
    background: var(--br);
    border: 1px solid var(--linha);
    border-radius: var(--r2);
    -webkit-overflow-scrolling: touch;
  }
  .tb { width: 100%; min-width: 680px; font-size: var(--sm); }
  .tb thead th {
    text-align: left;
    padding: .85rem 1.1rem;
    background: var(--nv);
    color: var(--br);
    font-family: var(--mono);
    font-weight: 500;
    font-size: var(--xs);
    letter-spacing: .08em;
    text-transform: uppercase;
    white-space: nowrap;
  }
  .tb thead th:first-child { border-radius: var(--r2) 0 0 0; }
  .tb thead th:last-child { border-radius: 0 var(--r2) 0 0; }
  .tb td { padding: .9rem 1.1rem; border-bottom: 1px solid var(--linha); color: var(--tx2); vertical-align: top; }
  .tb tbody tr { transition: background var(--f); }
  .tb tbody tr:hover { background: #fff7ee; }
  .tb tbody tr:last-child td { border-bottom: 0; }
  .tb td:first-child { white-space: nowrap; }
  .tb td b { color: var(--nv); font-size: var(--sm); }

  .dim__cta {
    display: flex; align-items: center; justify-content: space-between;
    gap: 1.4rem; flex-wrap: wrap;
    margin-top: 1.4rem;
    padding: clamp(1.15rem, 1rem + .9vw, 1.7rem);
    background: var(--br);
    border: 1px solid var(--linha);
    border-left: 4px solid var(--lj);
    border-radius: var(--r2);
  }
  .dim__cta h3 { font-size: var(--lg); margin-bottom: .25rem; }
  .dim__cta p { font-size: var(--sm); color: var(--tx2); max-width: 58ch; }

  /* ===================================================================
     COBERTURA
     =================================================================== */
  .cob { padding-block: var(--v); background: var(--nv); color: var(--br); }
  .cob__in {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
    gap: clamp(1.8rem, .8rem + 3vw, 3.6rem);
    align-items: center;
  }
  .cob__txt .h2 { margin: .8rem 0 1rem; }
  .cob__txt > p { color: rgba(255,255,255,.76); max-width: 48ch; }
  .cob__un {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(.8rem, .6rem + .8vw, 1.2rem);
    margin-top: 2rem;
  }
  .cob__un address {
    padding: clamp(1rem, .9rem + .7vw, 1.4rem);
    background: rgba(255,255,255,.07);
    border: 1px solid rgba(255,255,255,.16);
    border-radius: var(--r2);
  }
  .cob__uf {
    display: inline-block;
    font-family: var(--mono); font-size: var(--xs); font-weight: 500;
    letter-spacing: .1em;
    padding: .16rem .5rem;
    background: var(--lj);
    color: var(--nv);
    border-radius: var(--r);
    margin-bottom: .7rem;
  }
  .cob__un h3 { font-size: var(--lg); margin-bottom: .5rem; }
  .cob__un p { font-size: var(--sm); color: rgba(255,255,255,.7); line-height: 1.62; }
  .cob__un a {
    display: inline-flex; align-items: center; gap: .45rem;
    margin-top: .9rem;
    font-size: var(--sm); font-weight: 600;
    color: var(--lj);
    transition: color var(--f);
  }
  .cob__un a:hover { color: var(--lj-cl); }
  .cob__mapa img { margin-inline: auto; max-height: 380px; width: auto; }
  @media (max-width: 900px) {
    .cob__in { grid-template-columns: 1fr; }
    .cob__mapa { order: -1; }
    .cob__mapa img { max-height: 250px; }
  }
  @media (max-width: 520px) { .cob__un { grid-template-columns: 1fr; } }

  /* ===================================================================
     AVALIAÇÕES — última dobra, antes do CTA final
     =================================================================== */
  .av {
    padding-block: var(--v);
    border-top: 1px solid var(--linha);   /* separa do papel da seção anterior */
  }
  .av__sub { margin-top: .9rem; }

  /* resumo à esquerda + carrossel à direita */
  .av__box {
    display: grid;
    grid-template-columns: minmax(0, 232px) minmax(0, 1fr);
    gap: clamp(1.2rem, .6rem + 2vw, 2.6rem);
    align-items: center;
  }

  /* ---------- resumo ---------- */
  .av__res { text-align: center; }
  .av__lbl {
    font-size: var(--h3s);
    font-weight: 700;
    letter-spacing: -.01em;
    margin-bottom: .5rem;
  }
  .av__base { font-size: var(--sm); color: var(--tx2); margin-top: .5rem; }
  .av__base b { font-weight: 600; color: var(--tx); }

  /* estrelas com preenchimento parcial: sustenta 4,5 sem meia-estrela
     dedicada — a camada cheia é recortada por largura percentual */
  .est {
    position: relative;
    display: inline-block;
    line-height: 1;
    letter-spacing: .1em;
    white-space: nowrap;
  }
  .est__vazio { color: #d8dde8; }
  .est__cheio {
    position: absolute;
    inset: 0;
    overflow: hidden;
    width: 0;                /* definido pelo JS conforme a nota */
    color: #fbbc05;          /* dourado do Google, não o laranja da marca */
  }
  .est--g { font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); }

  .av__gmark {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    margin-top: 1rem;
    transition: opacity var(--f);
  }
  .av__gmark:hover { opacity: .75; }
  .av__gicon { width: 22px; height: 22px; flex: none; }
  .av__gtxt {
    font-size: clamp(1.15rem, 1rem + .5vw, 1.45rem);
    font-weight: 500;
    letter-spacing: -.02em;
  }
  .av__gtxt i { font-style: normal; }
  .av__gtxt .g1 { color: #4285f4; }
  .av__gtxt .g2 { color: #ea4335; }
  .av__gtxt .g3 { color: #fbbc05; }
  .av__gtxt .g4 { color: #34a853; }

  /* ---------- carrossel ---------- */
  .av__car { position: relative; min-width: 0; }

  /* Flex, não grid: com grid-auto-columns em minmax(0, X) as colunas
     encolhem para caber no container e o carrossel quase não transborda
     (medido: 1025px de conteúdo em 925px de trilha, com 10 cards).
     flex-basis com flex-shrink 0 mantém a largura e força o transbordo. */
  .av__trilha {
    --gapc: clamp(.7rem, .5rem + .6vw, 1rem);
    display: flex;
    gap: var(--gapc);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding-block: 4px;          /* espaço para o foco não ser cortado */
    scrollbar-width: none;
  }
  .av__trilha > .rev {
    flex: 0 0 calc((100% - 2 * var(--gapc)) / 3);
  }
  .av__trilha::-webkit-scrollbar { display: none; }
  .av__trilha:empty { display: none; }
  .av__trilha:focus-visible { outline: 3px solid var(--lj); outline-offset: 4px; }

  .rev {
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
    padding: clamp(1rem, .85rem + .7vw, 1.35rem);
    background: var(--br);
    border: 1px solid var(--linha);
    border-radius: var(--r2);
    box-shadow: var(--s1);
  }

  .rev__top {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: .7rem;
    align-items: center;
    margin-bottom: .7rem;
  }

  /* avatar: foto quando existe (vem da Places API), inicial quando não */
  .rev__av {
    position: relative;
    width: 42px; height: 42px;
    flex: none;
  }
  .rev__av img {
    width: 100%; height: 100%;
    border-radius: 50%;
    object-fit: cover;
  }
  .rev__ini {
    display: grid; place-items: center;
    width: 100%; height: 100%;
    border-radius: 50%;
    color: var(--br);
    font-weight: 600;
    font-size: var(--md);
    /* tonalidade derivada do nome, para os avatares não ficarem iguais */
    background: hsl(var(--h, 220) 42% 42%);
  }
  .rev__verif {
    position: absolute;
    right: -3px; bottom: -3px;
    width: 17px; height: 17px;
    border-radius: 50%;
    background: var(--br);
  }
  .rev__verif svg { width: 100%; height: 100%; }

  /* block: como <span>, nome e data caem na mesma linha e a data quebra
     no meio ("há 9" / "meses") */
  .rev__n {
    display: block;
    font-size: var(--sm);
    font-weight: 600;
    line-height: 1.25;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .rev__d {
    display: block;
    margin-top: .1rem;
    font-size: var(--xs);
    color: var(--tx3);
    white-space: nowrap;
  }
  .rev__gi { width: 19px; height: 19px; flex: none; align-self: start; }

  .rev .est { font-size: var(--md); margin-bottom: .55rem; }

  .rev__txt {
    font-size: var(--sm);
    color: var(--tx2);
    line-height: 1.58;
    text-wrap: pretty;
  }
  .rev__txt.cortado {
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .rev__mais {
    align-self: flex-start;
    margin-top: .6rem;
    font-size: var(--xs);
    color: var(--tx3);
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: color var(--f);
  }
  .rev__mais:hover { color: var(--nv); }

  /* setas */
  .av__nav {
    position: absolute;
    top: 50%;
    z-index: 2;
    display: grid; place-items: center;
    width: 38px; height: 38px;
    transform: translateY(-50%);
    background: var(--br);
    border: 1px solid var(--linha2);
    border-radius: 50%;
    color: var(--tx2);
    box-shadow: var(--s1);
    transition: color var(--f), border-color var(--f), background var(--f);
  }
  .av__nav svg { width: 18px; height: 18px; }
  .av__nav:hover { color: var(--nv); border-color: var(--nv); }
  .av__nav--ant  { left: clamp(-19px, -1.2vw, -10px); }
  .av__nav--prox { right: clamp(-19px, -1.2vw, -10px); }

  @media (max-width: 1000px) {
    .av__box { grid-template-columns: 1fr; }
    .av__res { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: .5rem 1.1rem; text-align: left; }
    .av__lbl, .av__base { margin: 0; }
    .av__gmark { margin-top: 0; }
    .av__trilha > .rev { flex-basis: calc((100% - var(--gapc)) / 2); }
    .av__nav { display: none; }
  }
  @media (max-width: 640px) {
    .av__trilha > .rev { flex-basis: 86%; }
  }

  .av__vazio {
    padding: 1.1rem 1.3rem;
    background: #fff8ec;
    border: 1px dashed var(--lj);
    border-radius: var(--r2);
    font-size: var(--sm);
    color: #7a4a00;
  }
  .av__vazio code {
    font-family: var(--mono); font-size: .92em;
    background: rgba(255,136,0,.16);
    padding: .1rem .3rem; border-radius: 3px;
  }

  /* ===================================================================
     DÚVIDAS
     =================================================================== */
  .fq { padding-block: var(--v); background: var(--papel); border-top: 1px solid var(--linha); }
  .fq__in {
    display: grid;
    grid-template-columns: minmax(0, .74fr) minmax(0, 1.26fr);
    gap: clamp(1.8rem, .9rem + 3vw, 3.8rem);
    align-items: start;
  }
  .fq__c { position: sticky; top: 90px; }
  .fq__c .h2 { margin: .8rem 0 1rem; }
  .fq__c .bo { margin-top: 1.4rem; }
  @media (max-width: 900px) { .fq__in { grid-template-columns: 1fr; } .fq__c { position: static; } }

  .fq__l { display: grid; gap: .6rem; }
  .qa {
    background: var(--br);
    border: 1px solid var(--linha);
    border-radius: var(--r2);
    transition: border-color var(--f), box-shadow var(--f);
  }
  .qa[open] { border-color: var(--linha2); box-shadow: var(--s1); }
  .qa summary {
    display: flex; align-items: center; justify-content: space-between;
    gap: 1rem;
    padding: 1.1rem 1.3rem;
    font-size: var(--md); font-weight: 600;
    transition: color var(--f);
  }
  .qa summary:hover { color: var(--lj); }
  .qa summary i { position: relative; flex: none; width: 14px; height: 14px; }
  .qa summary i::before, .qa summary i::after {
    content: "";
    position: absolute; top: 50%; left: 0;
    width: 100%; height: 2px; margin-top: -1px;
    background: var(--lj); border-radius: 2px;
    transition: transform var(--m);
  }
  .qa summary i::after { transform: rotate(90deg); }
  .qa[open] summary i::after { transform: rotate(0); }
  .qa__r { padding: 0 1.3rem 1.25rem; }
  .qa__r p { font-size: var(--sm); color: var(--tx2); line-height: 1.66; text-wrap: pretty; }
  .qa__r b { color: var(--nv); font-weight: 600; }

  /* ===================================================================
     GUIA TÉCNICO
     =================================================================== */
  .guia {
    padding-block: var(--v);
    background: var(--papel);
    border-block: 1px solid var(--linha);
  }
  .guia__g {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1px;
    background: var(--linha);
    border: 1px solid var(--linha);
    border-radius: var(--r2);
    overflow: hidden;
  }
  .gz {
    padding: clamp(1.2rem, 1rem + 1vw, 1.7rem);
    background: var(--br);
  }
  .gz h3 {
    position: relative;
    padding-top: .85rem;
    margin-bottom: .7rem;
    font-size: var(--lg);
  }
  .gz h3::before {
    content: "";
    position: absolute; top: 0; left: 0;
    width: 22px; height: 3px;
    background: var(--lj);
    border-radius: 2px;
  }
  .gz p {
    font-size: var(--sm);
    color: var(--tx2);
    line-height: 1.66;
    text-wrap: pretty;
  }
  .gz p + p { margin-top: .7rem; }
  .gz b { color: var(--nv); font-weight: 600; }

  .gz__pass {
    display: grid;
    gap: .45rem;
    margin: .8rem 0;
    counter-reset: gp;
  }
  .gz__pass li {
    counter-increment: gp;
    position: relative;
    padding-left: 1.7rem;
    font-size: var(--sm);
    color: var(--tx2);
  }
  .gz__pass li::before {
    content: counter(gp);
    position: absolute;
    left: 0; top: .1em;
    display: grid; place-items: center;
    width: 19px; height: 19px;
    border-radius: 50%;
    background: var(--nv);
    color: var(--br);
    font-family: var(--mono);
    font-size: 10px;
    font-weight: 500;
  }

  .guia__pe {
    margin-top: 1.4rem;
    text-align: center;
    font-size: var(--sm);
    color: var(--tx2);
  }
  .guia__pe a {
    color: var(--nv);
    font-weight: 600;
    border-bottom: 2px solid var(--lj);
    padding-bottom: 1px;
    transition: color var(--f);
  }
  .guia__pe a:hover { color: var(--lj); }

  @media (max-width: 940px) { .guia__g { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
  @media (max-width: 620px) { .guia__g { grid-template-columns: 1fr; } }

  /* ===================================================================
     CHAMADA FINAL
     =================================================================== */
  .final { padding-block: var(--v); background: var(--nv2); color: var(--br); }
  .final__in {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr);
    gap: clamp(1.8rem, .8rem + 3vw, 3.6rem);
    align-items: center;
  }
  .final .h2 { margin-bottom: .9rem; }
  .final__in > div > p { color: rgba(255,255,255,.78); max-width: 52ch; }
  .final__pg { display: flex; align-items: center; gap: 1rem; margin-top: 1.7rem; }
  .final__pg img { width: 108px; background: var(--br); padding: .35rem; border-radius: var(--r); flex: none; }
  .final__pg p { font-size: var(--xs); color: rgba(255,255,255,.7); }
  .final__bts { display: grid; gap: .7rem; }
  .final__tel {
    display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
    padding: .5rem;
    font-family: var(--mono); font-size: var(--sm);
    color: rgba(255,255,255,.82);
    transition: color var(--f);
  }
  .final__tel:hover { color: var(--lj); }
  @media (max-width: 860px) { .final__in { grid-template-columns: 1fr; } }

  /* ===================================================================
     CLIENTES
     =================================================================== */
  .cli { padding-block: var(--vs); border-bottom: 1px solid var(--linha); }
  .cli__t {
    text-align: center;
    font-family: var(--mono); font-size: var(--xs);
    letter-spacing: .1em; text-transform: uppercase;
    color: var(--tx3);
    margin-bottom: 1.7rem;
  }
  .cli ul {
    display: flex; flex-wrap: wrap; justify-content: center; align-items: center;
    gap: clamp(.7rem, .4rem + 1vw, 1.4rem);
  }
  .cli li {
    display: grid; place-items: center;
    min-width: 96px; height: 40px;
    padding-inline: .7rem;
    filter: grayscale(1);
    opacity: .62;
    transition: filter var(--m), opacity var(--m);
  }
  .cli li:hover { filter: grayscale(0); opacity: 1; }
  .cli img { height: clamp(18px, 2vw, 24px); width: auto; }

  /* ===================================================================
     RODAPÉ
     =================================================================== */
  .pe { background: var(--nv-esc); color: rgba(255,255,255,.7); padding-top: var(--vs); }
  .pe__in {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.7fr);
    gap: clamp(1.8rem, 1rem + 3vw, 3.4rem);
    padding-bottom: var(--vs);
  }
  .pe__m img { width: 152px; margin-bottom: 1.1rem; }
  .pe__m p { font-size: var(--sm); max-width: 40ch; text-wrap: pretty; }
  .pe__s { display: flex; gap: .5rem; margin-top: 1.3rem; }
  .pe__s a {
    display: grid; place-items: center;
    width: 38px; height: 38px;
    border: 1px solid rgba(255,255,255,.24);
    border-radius: var(--r);
    color: rgba(255,255,255,.82);
    transition: all var(--f);
  }
  .pe__s a:hover { color: var(--nv); background: var(--lj); border-color: var(--lj); }

  .pe__n {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 132px), 1fr));
    gap: 1.6rem;
  }
  .pe__n h4 { color: rgba(255,255,255,.45); margin-bottom: .9rem; }
  .pe__n div { display: grid; gap: .6rem; align-content: start; }
  .pe__n a { font-size: var(--sm); transition: color var(--f); }
  .pe__n a:hover { color: var(--lj); }
  @media (max-width: 780px) { .pe__in { grid-template-columns: 1fr; } }

  .pe__l {
    display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
    padding-block: 1.2rem;
    border-top: 1px solid rgba(255,255,255,.14);
    font-size: var(--xs);
    color: rgba(255,255,255,.5);
  }

  /* ===================================================================
     MODAL DO WHATSAPP
     <dialog> nativo: já entrega focus trap, Esc e backdrop sem JS extra.
     =================================================================== */
  .zdlg {
    width: min(94vw, 430px);
    /* margin:auto é o que centraliza um <dialog> aberto com showModal().
       O reset `* { margin: 0 }` zera isso e joga o modal no canto
       superior esquerdo — daí a redeclaração explícita. */
    margin: auto;
    max-height: min(92dvh, 720px);
    overflow-y: auto;
    padding: 0;
    border: 0;
    border-radius: var(--r2);
    background: var(--br);
    color: var(--tx);
    box-shadow: var(--s3);
  }
  .zdlg::backdrop {
    background: rgba(7, 18, 56, .62);
    backdrop-filter: blur(3px);
  }
  .zdlg[open] { animation: zin .26s var(--e); }
  @keyframes zin {
    from { opacity: 0; transform: translateY(12px) scale(.98); }
    to   { opacity: 1; transform: none; }
  }
  .zdlg form { padding: clamp(1.2rem, 1rem + .9vw, 1.7rem); position: relative; }

  .zdlg__x {
    position: absolute;
    top: .75rem; right: .75rem;
    display: grid; place-items: center;
    width: 32px; height: 32px;
    border-radius: var(--r);
    color: var(--tx3);
    transition: background var(--f), color var(--f);
  }
  .zdlg__x:hover { background: var(--papel2); color: var(--nv); }
  .zdlg__x svg { width: 17px; height: 17px; }

  .zdlg__cab {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: .85rem;
    align-items: center;
    padding-right: 2.2rem;
    margin-bottom: 1.25rem;
  }
  .zdlg__ic {
    display: grid; place-items: center;
    width: 46px; height: 46px;
    border-radius: 50%;
    background: var(--verde);
    color: var(--br);
  }
  .zdlg__ic svg { width: 25px; height: 25px; }
  .zdlg__cab h2 { font-size: var(--h4s); font-weight: 700; line-height: 1.2; }
  .zdlg__cab p { margin-top: .15rem; font-size: var(--sm); color: var(--tx2); }

  .zdlg__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
  .zdlg .lg { margin-top: 1rem; }
  .zdlg__ok { margin-top: 1.15rem; }
  .zdlg__pe {
    margin-top: .7rem;
    text-align: center;
    font-size: var(--xs);
    color: var(--tx3);
  }

  /* ===================================================================
     FLUTUANTES
     =================================================================== */
  .zapf {
    position: fixed;
    right: clamp(.8rem, .5rem + 1vw, 1.6rem);
    bottom: clamp(.8rem, .5rem + 1vw, 1.6rem);
    z-index: 80;
    display: grid; place-items: center;
    width: 54px; height: 54px;
    border-radius: 50%;
    background: var(--verde);
    color: var(--br);
    box-shadow: 0 6px 22px -6px rgba(18,140,75,.8);
    transition: transform var(--f);
    animation: pop .35s var(--e);
  }
  .zapf svg { width: 28px; height: 28px; }
  .zapf:hover { transform: scale(1.07); }

  .fixa {
    position: fixed; inset-inline: 0; bottom: 0; z-index: 79;
    padding: .7rem var(--pad) calc(.7rem + env(safe-area-inset-bottom));
    background: var(--br);
    border-top: 1px solid var(--linha);
    box-shadow: 0 -6px 20px -10px rgba(11,29,87,.3);
  }
  @media (min-width: 761px) { .fixa { display: none !important; } }
  /* No mobile o botão fica MAIOR que no desktop, não menor: o alvo é o
     dedo, não o cursor. Sobe acima da barra fixa de CTA. */
  @media (max-width: 760px) {
    .zapf {
      /* 6rem, não 5rem: com 64px o botão passou a encostar na barra de
         CTA (4px de folga). Aqui sobram ~20px entre os dois. */
      bottom: calc(6rem + env(safe-area-inset-bottom));
      width: 64px;
      height: 64px;
      box-shadow: 0 8px 26px -6px rgba(18,140,75,.9);
    }
    .zapf svg { width: 34px; height: 34px; }
  }
}

/* ============================== UTILIDADES ============================== */
@layer util {
  [hidden] { display: none !important; }

  @media print {
    .faixa, .cab, .zapf, .fixa, .fnav, .pular, .hero__foto { display: none !important; }
    body { background: #fff; color: #000; }
    .hero, .cob, .final, .pe { background: #fff !important; color: #000 !important; }
    .hero::before { display: none; }
  }
}
