/* ==========================================================================
   Tema LinkC
   ========================================================================== */

/* ---------- Fontes (auto-hospedadas, subset latin) ---------- */
@font-face {
  font-family: "Titillium Web";
  font-style: normal;
  font-weight: 200;
  font-display: swap;
  src: url("../fonts/titillium-web-200.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Titillium Web";
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url("../fonts/titillium-web-300.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Titillium Web";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/titillium-web-400.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Titillium Web";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/titillium-web-600.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Alegreya Sans SC";
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url("../fonts/alegreya-sans-sc-300.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Alegreya Sans SC";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/alegreya-sans-sc-400.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Tokens ---------- */
:root {
  --cor-primaria: #df0221;
  --cor-primaria-escura: #b8011a;
  --cor-destaque: #e31018;
  --cor-epa: #e01c26;
  --cor-texto: #333;
  --cor-texto-claro: #707070; /* era #888 (3,5:1); #707070 dá 4,9:1 sobre o branco */
  --cor-branco: #fff;
  --cor-borda: #e5e5e5;

  /* nomes do tema antigo, ainda usados em estilos dentro do conteúdo das páginas */
  --color-primary: var(--cor-primaria);
  --color-text: var(--cor-texto);
  --color-text-light: var(--cor-texto-claro);

  --fonte: "Titillium Web", "Segoe UI", sans-serif;
  --fonte-destaque: "Alegreya Sans SC", sans-serif;

  --transicao: .3s ease;
  --header-altura: 100px;
}

/* ---------- Base ---------- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-altura) + 40px);
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  font-family: var(--fonte);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.6;
  color: var(--cor-texto-claro);
  background: var(--cor-branco);
  overflow-x: clip;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img, svg, video { display: block; max-width: 100%; height: auto; }

:focus-visible {
  outline: 2px solid var(--cor-primaria);
  outline-offset: 2px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  top: 5px;
  left: 5px;
  z-index: 10000;
  padding: 15px 23px;
  background: var(--cor-branco);
  color: var(--cor-texto);
  transform: translateY(-200%);
}
.skip-link:focus { transform: none; }

/* ---------- Botões ---------- */
.btn {
  display: inline-block;
  font-family: inherit;
  background: none;
  cursor: pointer;
  margin-top: 30px;
  padding: 18px 30px;
  border: 1px solid var(--cor-destaque);
  color: var(--cor-destaque);
  font-size: 14px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: .5px;
  transition: color .4s ease, background-color .4s ease;
}
.btn:hover { color: var(--cor-branco); background-color: var(--cor-destaque); }

.btn--branco {
  margin-right: 10px;
  border-color: var(--cor-branco);
  color: var(--cor-branco);
}
.btn--branco:hover { color: var(--cor-epa); background-color: var(--cor-branco); }

@media (max-width: 575px) {
  .btn {
    display: block;
    margin: 10px 0 0;
    text-align: center;
  }
}

/* ---------- Cortes diagonais (substituem os PNGs decorativos) ----------
   Mantêm a proporção original (largura 100%, altura proporcional) e são
   desenhados só com clip-path, sem requisições extras. */
.corte {
  /* Quanto o branco se estende para dentro da seção vizinha (sempre branca).
     A emenda entre seções fica no meio de uma área branca opaca, então nenhum
     arredondamento de zoom (67%, 125%, 171%...) consegue abrir um fio ali. */
  --sangra: 6px;
  --deslocamento: 0px;
  position: absolute;
  left: 0;
  z-index: 1;
  box-sizing: content-box;
  width: 100%;
  pointer-events: none;
  background: var(--cor-branco);
}

/* Branco embaixo, degrau subindo à direita */
.corte--sobe {
  bottom: calc(var(--deslocamento) - var(--sangra));
  padding-bottom: var(--sangra);
  aspect-ratio: 1920 / 65;
  clip-path: polygon(0 90.77%, 51.04% 90.77%, 53.07% 16.92%, 100% 16.92%, 100% calc(100% + var(--sangra)), 0 calc(100% + var(--sangra))) content-box;
}

/* Branco em cima, degrau descendo à esquerda */
.corte--desce {
  top: calc(var(--deslocamento) - var(--sangra));
  padding-top: var(--sangra);
  aspect-ratio: 1920 / 65;
  clip-path: polygon(0 calc(0% - var(--sangra)), 100% calc(0% - var(--sangra)), 100% 8.46%, 29.95% 8.46%, 27.92% 82.31%, 0 82.31%) content-box;
}

/* Branco embaixo, bloco à esquerda descendo para a direita */
.corte--epa {
  bottom: -10px;
  aspect-ratio: 1921 / 54.6;
  clip-path: polygon(0 1.1%, 44.89% 1.1%, 46.94% 89.19%, 100% 89.19%, 100% 100%, 0 100%);
}

/* Faixa vermelha com bloco branco: usada sob o header e sob o vídeo.
   O drop-shadow do pai sombreia a composição recortada dos filhos. */
.faixa {
  position: relative;
  width: 100%;
  aspect-ratio: 1921 / 85;
  pointer-events: none;
}
.faixa::before,
.faixa::after {
  content: "";
  position: absolute;
  inset: 0;
}
.faixa::before { background: var(--cor-branco); }

.faixa--topo {
  margin-top: -2px;
  filter: drop-shadow(0 .15vw .25vw rgb(4 7 7 / .25));
  /* corta a parte do desfoque que subiria sobre o header */
  clip-path: inset(0 0 -3vw 0);
}
.faixa--topo::before {
  clip-path: polygon(0 0, 100% 0, 100% 7.06%, 24.1% 7.06%, 22.07% 62.35%, 0 62.35%);
}
.faixa--topo::after {
  background: linear-gradient(90deg, #b01f29 24.3%, #ec2028 99%);
  clip-path: polygon(24.1% 7.06%, 100% 7.06%, 100% 23.53%, 23.5% 23.53%);
}

.faixa--video {
  --sangra: 6px;
  position: absolute;
  bottom: calc(-1 * var(--sangra));
  left: 0;
  z-index: 3;
  box-sizing: content-box;
  padding-bottom: var(--sangra);
}
.faixa--video::before {
  clip-path: polygon(0 calc((100% - var(--sangra)) * .3882), 37.22% calc((100% - var(--sangra)) * .3882), 39.25% calc((100% - var(--sangra)) * .9471), 100% calc((100% - var(--sangra)) * .9471), 100% 100%, 0 100%);
}
.faixa--video::after {
  background: linear-gradient(90deg, #af1f28 38.5%, #eb2028 99%);
  clip-path: polygon(38.1% calc((100% - var(--sangra)) * .6353), 100% calc((100% - var(--sangra)) * .6353), 100% calc((100% - var(--sangra)) * .9529), 39.25% calc((100% - var(--sangra)) * .9529));
}

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 9999;
}

.header-bg {
  position: relative;
  z-index: 1; /* fica por cima da emenda com a faixa, que com zoom fracionado mostrava um fio de sombra */
  background: var(--cor-branco);
}

.header-inner {
  position: relative;
  display: flex;
  align-items: flex-end;
  height: var(--header-altura);
  padding: 0 40px 10px;
}

.logo {
  flex-shrink: 0;
  margin-right: auto;
  padding-left: 30px;
}
.logo svg { width: auto; height: 40px; }

/* Idiomas */
.idiomas {
  position: absolute;
  top: 8px;
  right: 50px;
  z-index: 10;
}
.idiomas ul { display: flex; gap: 6px; align-items: center; }
.idiomas a {
  display: block;
  opacity: .6;
  transition: opacity var(--transicao);
}
.idiomas a:hover,
.idiomas a[aria-current] { opacity: 1; }
.idiomas img {
  width: 25px;
  height: 25px;
  border-radius: 50%;
  object-fit: cover;
}

/* Menu principal */
.menu__lista { display: flex; align-items: center; }
.menu a {
  position: relative;
  display: flex;
  align-items: center;
  padding: 8px 13px;
  font-size: 13px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: .5px;
  white-space: nowrap;
  color: var(--cor-texto);
  transition: color var(--transicao);
}
.menu a::after {
  content: "";
  position: absolute;
  bottom: 2px;
  left: 13px;
  right: 13px;
  height: 2px;
  background: var(--cor-primaria);
  transform: scaleX(0);
  transition: transform var(--transicao);
}
.menu a:hover,
.menu a[aria-current],
.menu .current-menu-item > a { color: var(--cor-primaria); }
.menu a:hover::after,
.menu a[aria-current]::after,
.menu .current-menu-item > a::after { transform: scaleX(1); }
.menu .menu-item-anchor:not(.current-menu-item) > a:not(:hover)::after { transform: scaleX(0); }

/* Primeiro item (Home): ícone de casa no lugar do texto, que continua para leitores de tela */
.menu__lista > li:first-child > a { font-size: 0; }
.menu__lista > li:first-child > a::before {
  content: "";
  width: 18px;
  height: 18px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 3 2 12h3v8h6v-6h2v6h6v-8h3z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 3 2 12h3v8h6v-6h2v6h6v-8h3z'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* Botão sanduíche */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 6px;
  border: 0;
  background: none;
  cursor: pointer;
}
.menu-toggle span {
  display: block;
  height: 3px;
  border-radius: 2px;
  background: var(--cor-texto);
  transition: transform var(--transicao), opacity var(--transicao);
}
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

@media (max-width: 980px) {
  :root { --header-altura: 70px; }

  .logo { align-self: center; }

  .header-inner {
    align-items: center;
    justify-content: center;
    padding: 0 20px;
  }

  .logo {
    position: absolute;
    left: 50%;
    margin: 0;
    padding: 0;
    transform: translateX(-50%);
  }
  .logo svg { height: 30px; }

  .idiomas {
    top: 50%;
    left: 20px;
    right: auto;
    transform: translateY(-50%);
  }
  .idiomas img { width: 20px; height: 20px; }
  .idiomas ul { gap: 0; }
  .idiomas a { padding: 2px; }

  .menu-toggle {
    display: flex;
    position: absolute;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
  }

  .menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--cor-branco);
    border-top: 3px solid var(--cor-primaria);
    box-shadow: 0 4px 12px rgb(0 0 0 / .1);
  }
  .menu.is-open { display: block; }
  .menu__lista { flex-direction: column; align-items: stretch; }
  .menu a {
    padding: 14px 30px;
    font-size: 15px;
    border-bottom: 1px solid var(--cor-borda);
  }
  .menu li:last-child a { border-bottom: 0; }
  .menu a::after { display: none; }
  .menu__lista > li:first-child > a { font-size: 15px; }
  .menu__lista > li:first-child > a::before { display: none; }
}

@media (max-width: 745px) {
  .faixa--topo { display: none; }
}

@media (max-width: 480px) {
  .idiomas img { width: 18px; height: 18px; }
  .idiomas a { padding: 3px; }
}

/* ==========================================================================
   Hero (vídeo)
   ========================================================================== */
.hero {
  position: relative;
  aspect-ratio: 1920 / 750;
  color: var(--cor-branco);
  background: #1d1f22;
}

.hero__media,
.hero__media img,
.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* O vídeo só aparece quando começa a tocar; até lá fica a imagem estática */
.hero__video {
  opacity: 0;
  transition: opacity .6s ease;
}
.hero__video.is-playing { opacity: 1; }

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgb(0 0 0 / .25);
}

.hero__frases {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  padding: 20px;
}

/* As frases ocupam a mesma célula; a rotação (quantidade e intervalo do painel)
   é gerada pelo tema em linkc_css_frases() */
.hero__frase {
  grid-area: 1 / 1;
  max-width: 870px;
  font-size: 46px;
  font-weight: 200;
  line-height: 1.1;
}

@media (max-width: 980px) {
  .hero { aspect-ratio: auto; height: 480px; }
  .hero__frase { max-width: 100%; font-size: 1.4em; font-weight: 300; }
}

@media (max-width: 745px) {
  .hero { height: 400px; }
  .hero__frase { font-size: 1.2em; }
}

/* ==========================================================================
   Soluções (Empresa)
   ========================================================================== */
.sobre {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 80px 20px 40px;
  background: linear-gradient(to bottom, rgb(0 0 0 / 0), rgb(0 0 0 / .1));
}

.sobre__conteudo {
  position: relative;
  bottom: 40px;
  max-width: 850px;
  margin-right: 100px;
}

.sobre h1 {
  margin-bottom: 10px;
  font-size: 3.1em;
  font-weight: 200;
  color: var(--cor-texto);
}

.sobre__lead {
  margin-bottom: 10px;
  font-family: var(--fonte-destaque);
  font-size: 1.37em;
  font-weight: 400;
  font-style: italic;
  color: var(--cor-destaque);
}

.sobre .corte--sobe { --deslocamento: -10px; }

@media (max-width: 745px) {
  .sobre {
    flex-direction: column;
    min-height: 300px;
    padding: 90px 20px 80px;
  }
  .sobre__conteudo { bottom: 0; margin: 0 0 30px; }
  .sobre h1 { font-size: 2em; }
}

/* ==========================================================================
   Produtos
   ========================================================================== */
.produtos {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  max-width: 1250px;
  margin: 0 auto;
  padding: 120px 20px;
}

.produtos__header {
  width: 100%;
  margin-bottom: 20px;
  text-align: center;
}
.produtos__header h2 {
  margin-bottom: 20px;
  font-size: 3.1em;
  font-weight: 200;
  color: var(--cor-texto);
}
.produtos__header p {
  max-width: 1050px;
  margin: 0 auto;
  text-align: justify;
}

.produto {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1 1 150px;
  margin: 10px 20px 20px;
  padding: 0 20px;
}

.produto__img {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 300px;
  max-width: 210px;
}
.produto__img img { max-height: 100%; object-fit: contain; }

.produto p {
  min-height: 150px;
  margin: 10px;
}

@media (max-width: 980px) and (min-width: 744px) {
  .produtos { padding: 40px 20px; }
}

@media (max-width: 745px) {
  .produtos { max-width: 1000px; padding: 50px 20px; }
  .produtos__header h2 { font-size: 2em; }
  .produto {
    flex-basis: 100%;
    margin-top: 40px;
    padding: 30px 0 0;
    border-top: 1px solid #eee;
  }
  .produto p { min-height: auto; }
}

/* ==========================================================================
   EPA
   ========================================================================== */
.epa {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 80px 20px 65px;
  color: #eee;
  background-color: var(--cor-epa);
  background-image: url("../img/bg-atm-1920.webp");
  background-image: image-set(url("../img/bg-atm-1920.avif") type("image/avif"), url("../img/bg-atm-1920.webp") type("image/webp"));
  background-size: cover;
  background-position: center;
}

.epa .corte--desce { --deslocamento: -10px; }

.epa__conteudo {
  max-width: 650px;
  margin-bottom: 80px;
}
.epa h2 {
  margin-bottom: 10px;
  font-size: 2.5em;
  font-weight: 200;
}
.epa strong { font-weight: 600; }

.epa__img {
  position: relative;
  top: 65px;
}

@media (max-width: 980px) {
  .epa {
    background-image: url("../img/bg-atm-960.webp");
    background-image: image-set(url("../img/bg-atm-960.avif") type("image/avif"), url("../img/bg-atm-960.webp") type("image/webp"));
  }
}

@media (max-width: 745px) {
  .epa { flex-direction: column; padding: 80px 20px 0; }
  .epa h2 { font-size: 1.8em; }
  .epa__img { top: 0; max-width: 50%; }
}

/* ==========================================================================
   Serviços
   ========================================================================== */
.servicos {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding: 50px 0 0;
  color: var(--cor-texto);
}

.servicos__inner {
  max-width: 1250px;
  margin: 0 auto;
}

.servicos h2 {
  max-width: 800px;
  margin: 0 auto 20px;
  font-size: 3em;
  font-weight: 200;
  line-height: 1.1;
  text-align: center;
}

.servicos__inner > p {
  max-width: 800px;
  margin: 0 auto 20px;
  padding: 0 6%;
  text-align: center;
  text-transform: uppercase;
  color: #707070;
}

.servicos__lista {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  max-width: 800px;
  margin: 30px auto;
}

.servico {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 30%;
  margin: 0 1%;
  padding: 2% 4%;
  text-align: center;
}
.servico svg { width: 50%; fill: #222; }
.servico h3 {
  margin: 10px 0 20px;
  font-size: 1.1em;
  font-weight: 300;
  text-transform: uppercase;
}

.servicos__botoes {
  width: 430px;
  margin: -50px auto 20px;
  text-align: center;
}

@media (max-width: 745px) {
  .servicos { flex-direction: column; }
  .servicos__inner { max-width: 100%; }
  .servicos h2 { font-size: 2em; }
  .servicos__inner > p { padding: 0; }
  .servico { width: 38%; margin: 1% 2%; padding: 1%; }
  .servico h3 { font-size: 1em; }
  .servicos__botoes { width: 100%; padding: 0 20px; }
}

@media (max-width: 575px) {
  .servicos__botoes .btn { margin: 10px 30px 0; }
}

/* ==========================================================================
   Parallax
   ========================================================================== */
.parallax {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 500px;
  background-image: url("../img/baner-link-1920.webp");
  background-image: image-set(url("../img/baner-link-1920.avif") type("image/avif"), url("../img/baner-link-1920.webp") type("image/webp"));
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.parallax p {
  max-width: 1200px;
  margin: 30px;
  padding: 30px;
  font-size: 3.4em;
  font-weight: 200;
  line-height: 1.1;
  text-align: center;
  color: var(--cor-branco);
  background-color: rgb(0 0 0 / .7);
}

@media (max-width: 745px) {
  .parallax {
    min-height: 400px;
    background-image: url("../img/baner-link-960.webp");
    background-image: image-set(url("../img/baner-link-960.avif") type("image/avif"), url("../img/baner-link-960.webp") type("image/webp"));
    background-attachment: scroll;
  }
  .parallax p { font-size: 1.4em; }
}

/* ==========================================================================
   Integrações
   ========================================================================== */
.integracoes {
  padding: 20px 20px 50px;
  color: #666;
}

.integracoes__inner {
  display: flex;
  align-items: center;
  max-width: 1280px;
  margin: 0 auto;
}

.integracoes__conteudo { padding-right: 80px; }

.integracoes h2 {
  margin-bottom: 15px;
  font-size: 3em;
  font-weight: 200;
  color: var(--cor-texto);
}

.integracoes__subtitulo {
  margin-bottom: 10px;
  font-family: var(--fonte-destaque);
  font-size: 1.3em;
  font-style: italic;
  line-height: 30px;
}

.integracoes__img { width: 100%; max-width: 50%; }

@media (max-width: 980px) and (min-width: 744px) {
  .integracoes__inner { flex-direction: column; }
  .integracoes__conteudo { padding-right: 0; }
  .integracoes__img { max-width: 70%; margin-top: 30px; }
}

@media (max-width: 745px) {
  .integracoes { padding: 40px 20px 50px; }
  .integracoes__inner { flex-direction: column; }
  .integracoes__conteudo { padding-right: 0; }
  .integracoes h2 { font-size: 2em; }
  .integracoes__img { max-width: 100%; margin-top: 40px; }
}

/* ==========================================================================
   Rodapé
   ========================================================================== */
.rodape {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 400px;
  color: var(--cor-branco);
  background-image: url("../img/baner-link-1920.webp");
  background-image: image-set(url("../img/baner-link-1920.avif") type("image/avif"), url("../img/baner-link-1920.webp") type("image/webp"));
  background-size: cover;
  background-position: center;
}

.rodape__topo,
.rodape__base {
  position: absolute;
  left: 0;
  width: 100%;
}
.rodape__topo { top: -2px; }
.rodape__base { bottom: 0; }
.rodape__base--mobile { display: none; }

.rodape__contato {
  display: flex;
  align-items: center;
  width: 100%;
  margin: auto;
  padding: 0 20px 60px;
}

.rodape__email {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 70px;
  height: 70px;
  margin: 40px;
  border-radius: 10px;
  background: var(--cor-branco);
}
.rodape__email svg { width: 24px; height: 24px; }

.rodape__telefones {
  margin-top: 20px;
  font-size: 2em;
}
.rodape__telefones a {
  padding: 10px;
  white-space: nowrap; /* não quebra o número no meio */
  transition: color var(--transicao);
}
.rodape__telefones a:hover { color: var(--cor-primaria); }

@media (max-width: 745px) {
  .rodape {
    background-image: url("../img/baner-link-960.webp");
    background-image: image-set(url("../img/baner-link-960.avif") type("image/avif"), url("../img/baner-link-960.webp") type("image/webp"));
  }
  .rodape__contato { flex-direction: column; justify-content: center; }
  .rodape__email { width: 50px; height: 50px; margin: 30px; }
  .rodape__telefones { font-size: 1.4em; font-weight: 600; }
  .rodape__base--desktop { display: none; }
  .rodape__base--mobile { display: block; }
}

/* ---------- Voltar ao topo ---------- */
.btn-topo {
  position: fixed;
  right: 20px;
  bottom: 30px;
  z-index: 9990;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transicao), visibility var(--transicao);
}
.btn-topo.is-visible { opacity: 1; visibility: visible; }
.btn-topo svg { width: 25px; height: 29px; }

/* ==========================================================================
   Páginas internas
   ========================================================================== */

/* Branco em cima, bloco à direita descendo (topo dos escritórios no contato) */
.corte--contato {
  top: calc(var(--deslocamento) - var(--sangra));
  padding-top: var(--sangra);
  aspect-ratio: 1920 / 65;
  clip-path: polygon(0 calc(0% - var(--sangra)), 100% calc(0% - var(--sangra)), 100% 87.7%, 53.23% 87.7%, 51.04% 9.23%, 0 9.23%) content-box;
}

/* ---------- Topo com fotos (Ken Burns + troca a cada 5s, só CSS) ---------- */
.page-hero {
  position: relative;
  height: 500px;
  background: #1d1f22;
}

/* Só as fotos são recortadas (por causa do zoom); a faixa de baixo pode passar da borda */
.page-hero__slides {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.page-hero__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
}
.page-hero__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Uma foto só: zoom lento. Várias: troca gerada pelo tema em linkc_css_fotos() */
.page-hero__slide { animation: kenburns 8s ease infinite alternate; }
.page-hero__slide:first-child { opacity: 1; }

@keyframes kenburns {
  from { transform: scale(1); }
  to { transform: scale(1.15); }
}

.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgb(0 0 0 / .25);
}

.page-hero__frases {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  padding: 120px 20px 20px;
}
.page-hero__frase {
  grid-area: 1 / 1;
  max-width: 800px;
  font-size: 2.2em;
  font-weight: 200;
  line-height: 1.3;
  text-align: center;
  color: var(--cor-branco);
}

@media (prefers-reduced-motion: reduce) {
  .page-hero__slide { animation: none; }
}

@media (max-width: 745px) {
  .page-hero { height: 300px; }
  .page-hero__frase { font-size: 1.4em; }
}

/* ---------- Texto corrido (conteúdo editorial) ---------- */
.texto {
  max-width: 900px;
  margin: 0 auto;
  padding: 20px 20px 60px;
}
.texto h1:not(.h2, .h3) {
  margin-bottom: 15px;
  font-family: var(--fonte-destaque);
  font-size: 2.2em;
  font-weight: 300;
  color: var(--cor-texto);
}
.texto h2,
.texto .h2 {
  margin: 40px 0 15px;
  font-size: 1.8em;
  font-weight: 300;
  color: var(--cor-texto);
}
.texto h3,
.texto .h3 {
  margin: 30px 0 10px;
  font-size: 1.4em;
  font-weight: 400;
  color: var(--cor-texto);
}
.texto p { line-height: 1.7; }
.texto strong { font-weight: 600; color: var(--cor-texto); }
.texto .destaque,
.texto .destaque strong { color: var(--cor-primaria); }
.texto a:not(.btn, .wp-block-button__link) { color: #2196f3; }
.texto a:not(.btn, .wp-block-button__link):hover { text-decoration: underline; }
.texto ul {
  margin-bottom: 20px;
  padding-left: 25px;
  list-style: disc;
}
.texto li { line-height: 1.8; }
.texto hr {
  margin: 35px 0;
  border: 0;
  border-top: 1px solid #e0e0e0;
}
.texto table {
  width: 100%;
  margin: 25px 0 50px;
  border-collapse: collapse;
}
.texto thead { border-bottom: 3px solid; }
.texto th,
.texto td {
  padding: 10px 14px;
  border: 1px solid #ddd;
  font-size: 14px;
  text-align: left;
}
.texto th { font-weight: 600; color: var(--cor-texto); background: #f5f5f5; }
.texto figure { margin: 25px 0; }
.texto .alinha-direita {
  float: right;
  max-width: 50%;
  margin: 5px 0 20px 30px;
}
.texto .centro,
.texto.centro { text-align: center; }
.texto .destaque-texto { color: var(--cor-primaria); }
address { font-style: normal; }

/* Botão das áreas de texto (mesmo desenho, padding menor) */
.btn--texto {
  margin-top: 0;
  padding: 14px 30px;
  border-color: var(--cor-primaria);
  color: var(--cor-primaria);
}
.btn--texto:hover { background-color: var(--cor-primaria); }

.botoes {
  display: flex;
  flex-wrap: wrap;
  gap: .5em;
  align-items: center;
}
.botoes--centro { justify-content: center; }

/* Página de texto (política) sem topo de fotos */
main > .pagina-texto:first-child { padding-top: 140px; }
.pagina-texto__header {
  max-width: 900px;
  margin: 0 auto;
  padding: 30px 20px 0;
}
.pagina-texto__header h1 {
  font-family: var(--fonte-destaque);
  font-size: 2.2em;
  font-weight: 300;
  color: var(--cor-texto);
}

/* ---------- Produtos: cards ---------- */
.prod-cards {
  position: relative;
  display: flex;
  justify-content: center;
  gap: 60px;
  padding: 140px 20px 80px;
  background-color: #f8f8f8;
}
.prod-cards__item {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  max-width: 300px;
  text-align: center;
  transition: transform .4s ease;
}
.prod-cards__item:hover { transform: scale(1.05); }
.prod-cards__terminal {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  height: 300px;
  margin-bottom: 15px;
}
.prod-cards__terminal img { width: auto; max-height: 100%; }
.prod-cards__logo {
  max-width: 160px;
  height: 50px;
  margin-bottom: 10px;
  object-fit: contain;
}
.prod-cards__cta { font-size: 13px; }
.prod-cards .faixa--video { z-index: 2; }

/* ---------- Produtos: terminais ---------- */
.prod-terminais {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  max-width: 1000px;
  margin: 0 auto;
  padding: 80px 20px 60px;
}
.prod-terminal {
  flex: 1;
  min-width: 250px;
  max-width: 300px;
  text-align: center;
}
.prod-terminal__img {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 150px;
  margin-bottom: 15px;
}
.prod-terminal__img img { max-height: 100%; width: auto; object-fit: contain; }
.prod-terminal h2 {
  margin-bottom: 10px;
  font-size: 1.1em;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--cor-texto);
}
.prod-terminal p {
  margin-bottom: 15px;
  font-size: .9em;
  text-align: justify;
}
.prod-terminal__links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 5px;
}
.prod-terminal__links a {
  font-size: 13px;
  font-weight: 400;
  color: var(--cor-primaria);
  transition: color var(--transicao);
}
.prod-terminal__links a::before { content: "\25BA\00a0"; }
.prod-terminal__links a:hover { color: var(--cor-primaria-escura); }

/* ---------- Produto: chamada e especificações ---------- */
.sp-chamada { padding: 70px 20px; }
.sp-chamada__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 50px;
  max-width: 950px;
  margin: 0 auto;
}
.sp-chamada__img { flex: 0 0 180px; }
.sp-chamada__conteudo { flex: 1; }
.sp-chamada__logo {
  max-width: 220px;
  margin-bottom: 10px;
}
.sp-chamada h2 {
  margin-bottom: 10px;
  font-family: var(--fonte-destaque);
  font-size: 1.4em;
  font-weight: 300;
  font-style: italic;
  color: var(--cor-primaria);
}
.sp-chamada__conteudo > p {
  margin-bottom: 25px;
  font-size: .95em;
}

.sp-conteudo {
  padding: 60px 20px;
  background: linear-gradient(to bottom, #f8f8f8 80%, var(--cor-branco) 100%);
}
main > .sp-conteudo:first-child { padding-top: 160px; }
.sp-conteudo > * {
  max-width: 850px;
  margin-left: auto;
  margin-right: auto;
}
.sp-conteudo h1 {
  margin-bottom: 5px;
  font-family: var(--fonte-destaque);
  font-size: 2.5em;
  font-weight: 300;
}
.sp-conteudo h2 {
  margin-top: 30px;
  margin-bottom: 15px;
  padding-bottom: 5px;
  font-size: 2em;
  font-weight: 200;
  color: var(--cor-texto);
}
.sp-conteudo h2:first-child { margin-top: 0; }
.sp-conteudo h3 {
  margin-bottom: 10px;
  font-size: 1.4em;
  font-weight: 300;
  color: var(--cor-texto);
}
.sp-conteudo p {
  margin-bottom: 15px;
  line-height: 1.7;
}
.sp-conteudo ul {
  margin-bottom: 25px;
  padding-left: 25px;
  list-style: disc;
}
.sp-conteudo li { line-height: 1.8; }
.sp-conteudo hr {
  margin: 40px auto;
  border: 0;
  border-top: 1px solid #e0e0e0;
}
.sp-conteudo .sp-galeria {
  max-width: 1000px;
  margin-bottom: 20px;
}
.sp-conteudo .sp-galeria img { width: 100%; }
.sp-conteudo .nota {
  margin-top: 10px;
  font-size: 13px;
  font-style: italic;
}

@media (max-width: 745px) {
  .sp-chamada__inner { flex-direction: column; gap: 25px; text-align: center; }
  .sp-chamada__img { flex: none; max-width: 130px; }
  .sp-chamada__logo { margin: 0 auto 10px; }
  .sp-conteudo { padding: 40px 15px 30px; }
  .sp-conteudo h2 { font-size: 1.5em; }
}

/* ---------- Serviços ---------- */

.srv-foto {
  position: relative;
  line-height: 0;
}
.srv-foto img {
  width: 100%;
  max-height: 400px;
  object-fit: cover;
}

.srv-projetos { padding: 50px 20px 60px; }
.srv-projetos__inner { max-width: 900px; margin: 0 auto; }
.srv-projetos h2 {
  margin-bottom: 30px;
  font-family: var(--fonte-destaque);
  font-size: 2em;
  font-weight: 300;
}
.srv-projetos__lista {
  display: flex;
  flex-direction: column;
  gap: 30px;
}
.srv-projetos h3 {
  margin-bottom: 5px;
  font-size: 1.1em;
  font-weight: 600;
  color: var(--cor-primaria);
}
.srv-projetos p { font-size: 14px; line-height: 1.7; }
.srv-projetos__cta { margin-top: 40px; text-align: center; }

@media (max-width: 745px) {
  .srv-foto img { max-height: 250px; }
}

/* ---------- Empresa ---------- */
.empresa .texto { text-align: justify; }

/* ---------- Contato ---------- */
.contato-container { max-width: 900px; margin: 0 auto; padding: 0 20px; }

.contato-matriz { padding: 30px 0 20px; }
.contato-matriz h2 {
  margin-bottom: 8px;
  font-size: .85em;
  font-weight: 600;
  text-transform: uppercase;
}
.contato-matriz p { font-size: 13px; line-height: 1.8; }
.contato-matriz svg { display: inline-block; margin-right: 3px; vertical-align: middle; }
.contato-matriz a { color: var(--cor-primaria); white-space: nowrap; }

.contato-escritorios {
  position: relative;
  padding: 50px 0 30px;
  background-color: #f8f8f8;
}
.contato-titulo {
  margin-bottom: 25px;
  font-family: var(--fonte-destaque);
  font-size: 2em;
  font-weight: 300;
}
.contato-escritorios__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.contato-escritorio {
  padding: 20px;
  border: 1px solid #ddd;
  border-radius: 6px;
}
.contato-escritorio h3,
.contato-email h3 {
  font-size: 1.1em;
  font-weight: 300;
  color: var(--cor-primaria);
}
.contato-escritorio h3 { margin-bottom: 10px; }
.contato-escritorio p { font-size: 13px; font-style: normal; }

.contato-emails {
  padding: 30px 0 50px;
  background: linear-gradient(to bottom, #f8f8f8 70%, var(--cor-branco) 100%);
}
.contato-emails__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px 40px;
}
.contato-email h3 { margin-bottom: 2px; }
.contato-email a { font-size: 13px; transition: color var(--transicao); }
.contato-email a:hover { color: var(--cor-primaria); }

@media (max-width: 745px) {
  .contato-escritorios__grid,
  .contato-emails__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .contato-escritorios__grid,
  .contato-emails__grid { grid-template-columns: 1fr; }
}

/* ---------- Erro 404 ---------- */
.erro {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  padding: 180px 20px 100px;
  text-align: center;
}
.erro__inner { max-width: 600px; }
.erro__codigo {
  display: block;
  margin-bottom: 10px;
  font-size: 8em;
  font-weight: 200;
  line-height: 1;
  color: var(--cor-primaria);
}
.erro h1 {
  margin-bottom: 15px;
  font-family: var(--fonte-destaque);
  font-size: 2em;
  font-weight: 300;
  color: var(--cor-texto);
}
.erro p { margin-bottom: 30px; line-height: 1.7; }

/* ==========================================================================
   Conteúdo do editor de blocos (Gutenberg) dentro de .texto e .sp-conteudo
   ========================================================================== */
.texto > * + .wp-block-columns { margin-top: 0; }
.texto .wp-block-columns,
.sp-conteudo .wp-block-columns {
  display: flex;
  flex-wrap: wrap;
  gap: 2em;
}
.wp-block-columns.are-vertically-aligned-center { align-items: center; }
.wp-block-column {
  flex-basis: 100%;
  min-width: 0;
  overflow-wrap: break-word;
}
.wp-block-column.is-vertically-aligned-center { align-self: center; }
/* abaixo de 782px as colunas empilham, mesmo com largura definida no editor (style="flex-basis:55%") */
@media (max-width: 781px) {
  .wp-block-column { flex-basis: 100% !important; }
}
@media (min-width: 782px) {
  .texto .wp-block-columns,
  .sp-conteudo .wp-block-columns { flex-wrap: nowrap; }
  .wp-block-column { flex: 1 1 0; }
  .wp-block-column[style*="flex-basis"] { flex-grow: 0; }
}

.has-text-align-center { text-align: center; }
.texto .has-text-color,
.texto .has-text-color strong,
.texto .has-text-color li { color: inherit; }
.texto .wp-block-list.has-text-color li { font-weight: 300; }
.texto .wp-block-list.has-text-color strong { font-weight: 600; }

.wp-block-image img { box-sizing: border-box; height: auto; max-width: 100%; vertical-align: bottom; }
.wp-block-image .aligncenter,
.wp-block-image.aligncenter { display: table; margin-left: auto; margin-right: auto; }
.texto .wp-block-image .aligncenter { margin-left: auto; margin-right: auto; }
.texto .alignright {
  float: right;
  max-width: 50%;
  margin: 5px 0 20px 30px;
}
.texto .alignleft {
  float: left;
  max-width: 50%;
  margin: 5px 30px 20px 0;
}
@media (max-width: 745px) {
  .texto .alignright,
  .texto .alignleft { float: none; max-width: 100%; margin: 15px 0; }
}

.wp-block-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: .5em;
  align-items: center;
}
.wp-block-buttons.is-content-justification-center,
.wp-container-core-buttons-is-layout-fe48e5de { justify-content: center; }
.wp-block-button__link,
.texto .wp-element-button {
  display: inline-block;
  padding: 14px 30px;
  border: 1px solid var(--cor-primaria);
  border-radius: 0;
  font-size: 14px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: var(--cor-primaria);
  background: none;
  transition: color .4s ease, background-color .4s ease;
}
.texto .wp-block-button__link:hover {
  color: var(--cor-branco);
  background: var(--cor-primaria);
  text-decoration: none;
}

.wp-block-separator,
.texto hr {
  margin: 35px 0;
  border: 0;
  border-top: 1px solid #e0e0e0;
}

.texto .wp-block-table { margin: 25px 0 50px; overflow-x: auto; }
.texto .wp-block-table table { margin: 0; }

/* ==========================================================================
   Formulário de contato (Contact Form 7)
   ========================================================================== */
.wpcf7 .linkc-form { display: flex; flex-direction: column; }
.wpcf7 .linkc-form > p { margin: 0; }
.wpcf7 .wpcf7-form-control-wrap { display: block; margin-bottom: 20px; }
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 select,
.wpcf7 textarea {
  display: block;
  width: 100%;
  padding: 16px 18px;
  border: 0;
  border-radius: 0;
  font: 300 14px var(--fonte);
  color: var(--cor-texto);
  background: #efefef;
  outline: 0;
  transition: background var(--transicao);
  appearance: none;
}
.wpcf7 input:focus-visible,
.wpcf7 select:focus-visible,
.wpcf7 textarea:focus-visible {
  background: var(--cor-borda);
  outline: 2px solid var(--cor-primaria);
  outline-offset: -2px;
}
.wpcf7 ::placeholder { color: var(--cor-texto-claro); font-weight: 300; }
.wpcf7 select {
  padding-right: 40px;
  color: var(--cor-texto-claro);
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
}
.wpcf7 textarea { min-height: 160px; resize: vertical; }
.wpcf7 .wpcf7-acceptance { font-size: 13px; }
.wpcf7 .wpcf7-acceptance label { display: flex; align-items: center; gap: 8px; }
.wpcf7 .wpcf7-acceptance .wpcf7-list-item { margin: 0 0 25px; }
.texto .wpcf7 .wpcf7-acceptance a { margin-left: .25em; color: var(--cor-primaria); text-decoration: underline; }
.wpcf7 input[type="submit"] {
  align-self: flex-start;
  padding: 15px 40px;
  border: 1px solid var(--cor-primaria);
  border-radius: 0;
  font: 400 14px var(--fonte);
  letter-spacing: 1px;
  color: var(--cor-texto);
  background: none;
  cursor: pointer;
  transition: background var(--transicao), color var(--transicao);
  appearance: none;
}
.wpcf7 input[type="submit"]:hover:not(:disabled) { color: var(--cor-branco); background: var(--cor-primaria); }
.wpcf7 input[type="submit"]:disabled { opacity: .5; cursor: not-allowed; }
.wpcf7 .wpcf7-spinner { display: none; }
.wpcf7 .wpcf7-not-valid-tip { margin-top: 4px; font-size: 12px; color: var(--cor-primaria); }
.wpcf7 form .wpcf7-response-output {
  margin: 15px 0 0;
  padding: 10px 15px;
  border: 1px solid var(--cor-primaria);
  font-size: 13px;
}
.wpcf7 form.init .wpcf7-response-output,
.wpcf7 form.resetting .wpcf7-response-output,
.wpcf7 form.submitting .wpcf7-response-output { display: none; }
.wpcf7 .screen-reader-response {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}
.wpcf7 .hidden-fields-container { display: none; }

/* ==========================================================================
   Ícones dos serviços (home e Serviços)
   ========================================================================== */
.servico__icone { width: 50%; fill: #222; }
.srv-projeto { display: flex; align-items: flex-start; gap: 20px; }
.srv-projeto__icone { flex-shrink: 0; width: 50px; }

/* ==========================================================================
   Banner de cookies (LGPD)
   ========================================================================== */
.lgpd {
  position: fixed;
  inset: auto 0 0;
  z-index: 9995;
  padding: 20px 0;
  border-top: 1px solid #ddd;
  background: #f5f5f5;
  box-shadow: 0 -2px 10px rgb(0 0 0 / .1);
}
.lgpd[hidden] { display: none; }
.lgpd__inner {
  display: flex;
  align-items: center;
  gap: 30px;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 40px;
}
.lgpd__texto { flex: 1; }
.lgpd__texto p {
  margin-bottom: 2px;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.5;
  text-transform: uppercase;
  color: var(--cor-texto);
}
.lgpd__texto strong { font-weight: 600; }
.lgpd__texto a { font-weight: 600; color: #1a6fc2; }
.lgpd__texto a:hover { text-decoration: underline; }
.lgpd__botoes { display: flex; flex-shrink: 0; gap: 10px; }
.lgpd__botao {
  padding: 10px 20px;
  border: 1px solid var(--cor-primaria);
  font: 600 12px var(--fonte);
  text-transform: uppercase;
  letter-spacing: .5px;
  white-space: nowrap;
  color: var(--cor-branco);
  background: var(--cor-primaria);
  cursor: pointer;
  transition: background var(--transicao), color var(--transicao);
}
.lgpd__botao:hover { background: var(--cor-primaria-escura); }
.lgpd__botao--secundario { color: var(--cor-texto); background: none; border-color: #999; }
.lgpd__botao--secundario:hover { color: var(--cor-texto); background: #e8e8e8; }

body.lgpd-aberto .btn-topo { bottom: 140px; }

@media (max-width: 745px) {
  .lgpd__inner { flex-direction: column; gap: 15px; padding: 0 20px; }
  .lgpd__texto p { font-size: 12px; }
  .lgpd__botoes { width: 100%; justify-content: center; }
  body.lgpd-aberto .btn-topo { bottom: 230px; }
}

/* ==========================================================================
   Página de contato: formulário + mapa
   ========================================================================== */
/* Mais largura para o bloco formulário + mapa */
.page-template-page-contato .texto { max-width: 1140px; }
.page-template-page-contato .texto > h2,
.page-template-page-contato .texto > p { max-width: 900px; margin-left: auto; margin-right: auto; }

@media (min-width: 782px) {
  /* Mapa alinhado ao topo e fixo ao rolar: as mensagens do formulário não o deslocam */
  .page-template-page-contato .texto .wp-block-columns { align-items: flex-start !important; }
  .page-template-page-contato .texto .wp-block-column { align-self: flex-start; }
  .page-template-page-contato .texto .wp-block-column:first-child { flex-basis: 46% !important; }
  .page-template-page-contato .texto .wp-block-column:last-child {
    flex-basis: 54% !important;
    position: sticky;
    top: calc(var(--header-altura) + 70px);
  }
}

/* O arquivo do mapa tem ~22% de margem transparente dos lados: recorta só o desenho */
.page-template-page-contato .texto .wp-block-column:last-child img {
  width: 100%;
  aspect-ratio: 1494 / 1051;
  object-fit: cover;
  object-position: 51.9% 50%;
}

/* Mensagens de erro sob o campo sem empurrar o formulário */
.wpcf7 .wpcf7-form-control-wrap { position: relative; margin-bottom: 26px; }
.wpcf7 .wpcf7-not-valid-tip {
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 3px;
  font-size: 12px;
  line-height: 1.3;
  white-space: nowrap;
}
.wpcf7 .wpcf7-not-valid { box-shadow: inset 0 0 0 1px var(--cor-primaria); }
.wpcf7 .wpcf7-acceptance .wpcf7-not-valid-tip { position: static; margin: -18px 0 18px; }

/* Botão enviar desabilitado (até aceitar a política): claramente inativo */
.wpcf7 input[type="submit"]:disabled,
.wpcf7 input[type="submit"]:disabled:hover {
  border-color: #d4d4d4;
  color: #9a9a9a;
  background: #f2f2f2;
  opacity: 1;
  cursor: not-allowed !important;
}

/* Aceite da política: sem o espaço duplo antes do botão */
.wpcf7 .wpcf7-form-control-wrap[data-name="acceptance-privacy"] { margin-bottom: 0; }

/* Páginas curtas (ex.: política em inglês): o rodapé encosta no fim da tela, sem faixa branca embaixo */
body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
}
body > main { flex: 1 0 auto; }

/* Páginas sem topo de fotos: no celular o cabeçalho tem 70px e a faixa some; recuo proporcional */
@media (max-width: 745px) {
  main > .sp-conteudo:first-child { padding-top: 100px; }
  main > .pagina-texto:first-child { padding-top: 80px; }
  .erro { padding-top: 120px; }
}
