@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(../fonts/fraunces-600.woff2) format('woff2');
}
@font-face {
  font-family: 'Inter Tight';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url(../fonts/inter-tight.woff2) format('woff2');
}

/* ---------------------------------------------------------------
   IIOT — Instituto Integrado de Ortopedia e Traumatologia
   Paleta extraida do material da marca:
   teal #00495e / #00364b / #01212d, verde #97b02c, teal claro #0e7b9a
   O verde reprova em contraste como texto sobre claro (2,4:1),
   entao ele so aparece como superficie, nunca como texto pequeno.
   --------------------------------------------------------------- */

:root {
  --tinta: #01212d;
  --tinta-70: #3c5560;
  --tinta-45: #6d7f88;

  --teal: #00495e;
  --teal-fundo: #00364b;
  --teal-claro: #0e7b9a;
  --verde: #97b02c;
  --verde-claro: #b4c95a;

  --papel: #f7f5f1;
  --papel-2: #fffefc;
  --linha: #e2ded6;

  /* A trama entra como mascara, nao como imagem: assim ela toma a cor da
     superficie e funciona tanto no fundo claro quanto no teal escuro. */
  --trama: url("../img/trama.svg");

  --serif: "Fraunces", "Iowan Old Style", Georgia, serif;
  --sans: "Inter Tight", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --w: min(1240px, 100% - 3rem);
  --alt-topo: 78px;
  --raio: 14px;
  --curva: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--papel);
  color: var(--tinta);
  font-family: var(--sans);
  font-size: clamp(1rem, 0.97rem + 0.15vw, 1.075rem);
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.017em;
  color: var(--teal);
  margin: 0;
}

p {
  margin: 0;
}

[hidden] {
  display: none !important;
}

.env {
  width: var(--w);
  margin-inline: auto;
}

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

/* Ao receber foco pelo teclado ele sai do esconderijo. */
.oculto-visual:focus-visible {
  position: fixed;
  top: 0.7rem;
  left: 0.7rem;
  z-index: 200;
  width: auto;
  height: auto;
  padding: 0.8rem 1.2rem;
  clip-path: none;
  border-radius: 999px;
  background: var(--verde);
  color: var(--tinta);
  font-weight: 600;
  text-decoration: none;
}

/* --- Botoes ---------------------------------------------------- */

.btn {
  --fundo: var(--verde);
  --cor: var(--tinta);
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.95rem 1.6rem;
  background: var(--fundo);
  color: var(--cor);
  border: 0;
  border-radius: 999px;
  font: 500 1rem/1 var(--sans);
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.35s var(--curva), box-shadow 0.35s var(--curva),
    background-color 0.25s;
  will-change: transform;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 26px -10px rgba(1, 33, 45, 0.45);
}

.btn:active {
  transform: translateY(0);
}

.btn--vazado {
  --fundo: transparent;
  --cor: var(--teal);
  box-shadow: inset 0 0 0 1.5px var(--linha);
}

.btn--vazado:hover {
  --fundo: var(--papel-2);
  box-shadow: inset 0 0 0 1.5px var(--teal), 0 10px 26px -12px rgba(1, 33, 45, 0.35);
}

.btn--claro {
  --fundo: transparent;
  --cor: #fff;
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.35);
}

.btn--claro:hover {
  --fundo: rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.7);
}

.btn svg {
  width: 1.05em;
  height: 1.05em;
  flex: none;
}

/* --- Cabecalho ------------------------------------------------- */

/* Sobre o hero escuro o cabecalho e transparente; ao rolar, vira claro.
   A margem negativa tira o cabecalho do fluxo para ele pousar SOBRE o hero;
   sem isso o sticky empurra o hero para baixo e sobra uma faixa clara. */
.topo {
  position: sticky;
  top: 0;
  z-index: 60;
  margin-bottom: calc(var(--alt-topo) * -1);
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, background-color 0.35s, backdrop-filter 0.35s;
}

.topo.encolhido {
  background: rgba(247, 245, 241, 0.88);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--linha);
}

.topo:not(.encolhido) .marca__sigla,
.topo:not(.encolhido) .nav a,
.topo:not(.encolhido) .menu-btn {
  color: #fff;
}

.topo:not(.encolhido) .marca__linha {
  color: rgba(255, 255, 255, 0.6);
}

.topo:not(.encolhido) .nav a:hover {
  color: var(--verde-claro);
}

/* O simbolo tem teal escuro, que some sobre o hero: no topo ele vai a branco. */
.topo:not(.encolhido) .marca img {
  filter: brightness(0) invert(1);
}

.topo__grade {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  min-height: var(--alt-topo);
}

.marca {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  flex: none;
}

.marca svg {
  width: 46px;
  height: auto;
  flex: none;
}

.marca__texto {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.marca__sigla {
  font: 600 1.28rem/1 var(--serif);
  color: var(--teal);
  letter-spacing: 0.01em;
}

.marca__linha {
  font-size: 0.72rem;
  letter-spacing: 0.085em;
  text-transform: uppercase;
  color: var(--tinta-45);
}

.nav {
  display: flex;
  gap: 1.9rem;
  margin-left: auto;
}

.nav a {
  text-decoration: none;
  font-size: 0.945rem;
  color: var(--tinta-70);
  position: relative;
  padding-block: 0.35rem;
  transition: color 0.25s;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1.5px;
  background: var(--verde);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s var(--curva);
}

.nav a:hover {
  color: var(--teal);
}

.nav a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.topo__acao {
  flex: none;
}

.topo__tel {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  text-decoration: none;
  font-size: 0.95rem;
  color: var(--teal);
  font-weight: 500;
}

.menu-btn {
  display: none;
  margin-left: auto;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 0;
  color: var(--teal);
}

.menu-btn span {
  display: block;
  width: 22px;
  height: 1.7px;
  margin: 5px auto;
  background: currentColor;
  transition: transform 0.35s var(--curva), opacity 0.25s;
}

.menu-btn[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(6.7px) rotate(45deg);
}

.menu-btn[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.menu-btn[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-6.7px) rotate(-45deg);
}

/* --- Hero ------------------------------------------------------ */

.hero {
  position: relative;
  isolation: isolate;
  padding-block: calc(var(--alt-topo) + clamp(3.5rem, 2rem + 6vw, 6.5rem))
    clamp(4.5rem, 3rem + 7vw, 8rem);
  overflow: hidden;
  background: var(--teal-fundo);
}

/* A foto da entrada e pequena (680px), entao ela nao carrega o hero sozinha:
   entra como textura sob um degrade forte da paleta. */
.hero__foto {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% 45%;
  z-index: -2;
  filter: saturate(0.85);
}

.hero__veu {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
      104deg,
      rgba(1, 33, 45, 0.96) 0%,
      rgba(0, 54, 75, 0.92) 34%,
      rgba(0, 73, 94, 0.72) 62%,
      rgba(14, 123, 154, 0.42) 100%
    ),
    radial-gradient(
      ellipse 70% 90% at 88% 20%,
      rgba(151, 176, 44, 0.22),
      transparent 62%
    );
}

/* O max-width fica no conteudo, nao no .env: no .env ele encolhia a caixa
   e o margin-inline:auto centralizava o bloco no lugar de encostar a esquerda. */
.hero__grade {
  position: relative;
  display: grid;
}

.hero__conteudo {
  max-width: 45rem;
}

.hero h1 {
  font-size: clamp(2.35rem, 1.35rem + 3.2vw, 3.9rem);
  margin-bottom: 1.5rem;
  color: #fff;
  text-wrap: balance;
}

.hero h1 em {
  font-style: normal;
  color: var(--verde-claro);
  position: relative;
}

/* Justificado com hifenizacao ligada. Justificar sem hifen abre rios de
   espaco entre as palavras, e em portugues, que tem palavra longa, o estrago
   e maior. A ultima linha continua alinhada a esquerda. */
.hero__texto {
  font-size: clamp(1.05rem, 1rem + 0.35vw, 1.24rem);
  color: rgba(255, 255, 255, 0.82);
  max-width: 36rem;
  text-align: justify;
  text-align-last: left;
  hyphens: auto;
  -webkit-hyphens: auto;
}

.hero__texto + .hero__texto {
  margin-top: 1rem;
}

.hero__texto strong {
  color: #fff;
  font-weight: 500;
}

/* Hifen no meio do nome do instituto ("Trau-matologia") empobrece a marca.
   A hifenizacao continua ligada no resto do paragrafo, que e onde ela evita
   os rios de espaco do texto justificado. */
.hero__texto strong,
.inteiro {
  hyphens: none;
  -webkit-hyphens: none;
}

.hero__acoes {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 2.3rem;
}

/* Retrato do hero: aro da marca com o pattern do monograma atras. */









/* --- Secoes ---------------------------------------------------- */

/* Sem isso o cabeçalho fixo cobre o titulo ao pular por ancora. */
section[id],
main[id] {
  scroll-margin-top: calc(var(--alt-topo) + 0.75rem);
}

.secao {
  padding-block: clamp(3.75rem, 2.5rem + 5vw, 7rem);
}

.secao--escura {
  background: var(--teal-fundo);
  color: rgba(255, 255, 255, 0.82);
  position: relative;
  overflow: hidden;
}

.secao--escura h2,
.secao--escura h3 {
  color: #fff;
}

.secao--papel {
  background: var(--papel-2);
}

.cabeca {
  max-width: 46rem;
  margin-bottom: clamp(2.2rem, 1.5rem + 2vw, 3.4rem);
}

.cabeca--centro {
  margin-inline: auto;
  text-align: center;
}

.cabeca h2 {
  font-size: clamp(1.95rem, 1.35rem + 2.35vw, 3.1rem);
  margin-bottom: 0.85rem;
}

.cabeca p {
  font-size: clamp(1.02rem, 0.98rem + 0.2vw, 1.15rem);
  color: var(--tinta-70);
}

.secao--escura .cabeca p {
  color: rgba(255, 255, 255, 0.72);
}

/* --- Mapa de especialidades ------------------------------------ */

.mapa {
  position: relative;
  display: grid;
  grid-template-columns: 1fr minmax(300px, 480px) 1fr;
  gap: clamp(0.5rem, 0.2rem + 1.5vw, 2rem);
  align-items: center;
}

/* Os fios ligam cada nome a regiao do corpo. O traçado e calculado no JS
   porque depende da posicao real de cada pino, que muda com a largura. */
.mapa__fios {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: visible;
  z-index: 1;
}

.fio {
  fill: none;
  stroke: var(--tinta-45);
  stroke-width: 1.1;
  opacity: 0.6;
  stroke-dasharray: var(--traco);
  stroke-dashoffset: var(--traco);
  animation: risca 1.1s var(--curva) forwards;
  transition: stroke 0.3s, opacity 0.3s, stroke-width 0.3s;
}

@keyframes risca {
  to {
    stroke-dashoffset: 0;
  }
}

.fio.aceso {
  stroke: var(--verde);
  stroke-width: 1.6;
  opacity: 1;
}

.mapa__coluna {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.mapa__coluna--dir {
  align-items: flex-start;
}

.mapa__coluna--esq {
  align-items: flex-end;
}

/* Nome puxado por uma linha, sem cara de botao. */
.pino {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  background: transparent;
  border: 0;
  padding: 0.7rem 0.2rem;
  min-height: 44px;
  cursor: pointer;
  font: 500 0.985rem/1.25 var(--sans);
  color: var(--tinta-70);
  text-align: left;
  transition: color 0.3s, transform 0.35s var(--curva);
  max-width: 100%;
}

.mapa__coluna--esq .pino {
  flex-direction: row-reverse;
  text-align: right;
}

.pino__ponto {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--verde);
  flex: none;
  transition: transform 0.35s var(--curva), box-shadow 0.35s var(--curva);
}

.pino:hover,
.pino[aria-pressed="true"] {
  color: var(--teal);
}

.mapa__coluna--dir .pino:hover,
.mapa__coluna--dir .pino[aria-pressed="true"] {
  transform: translateX(3px);
}

.mapa__coluna--esq .pino:hover,
.mapa__coluna--esq .pino[aria-pressed="true"] {
  transform: translateX(-3px);
}

.pino:hover .pino__ponto,
.pino[aria-pressed="true"] .pino__ponto {
  transform: scale(1.4);
  box-shadow: 0 0 0 5px rgba(151, 176, 44, 0.22);
}

.mapa__palco {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: 260px 260px var(--raio) var(--raio);
  background: linear-gradient(175deg, #eef1e6, #e6ece9 55%, #e9eef1);
  overflow: hidden;
}

.mapa__palco::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--teal);
  -webkit-mask: var(--trama) 0 0 / 96px;
  mask: var(--trama) 0 0 / 96px;
  opacity: 0.1;
}

/* A figura ocupa a caixa inteira do palco com um recuo, e os pontos vao dentro
   dela, nas coordenadas do viewBox. Nao existe mais uma segunda caixa para
   desencontrar: em qualquer largura o ponto cai no mesmo lugar do desenho.
   O recuo em % encolhe os dois eixos na mesma proporcao, entao a figura nao
   distorce, e a folga impede que o arco do topo corte a cabeca. */
/* Tamanho escrito por extenso, nunca `inset` com largura automatica. O Safari do
   iPhone resolve `width:auto` de um <svg> posicionado como 100% do palco, nao
   como a caixa entre os recuos: a figura saia maior, presa no canto, e o pe e a
   crianca ficavam cortados. Chrome e o WebKit do Mac esticam certo, entao no
   computador nunca aparecia. 86% e 100 menos os dois recuos de 7%. */
.mapa__figura {
  position: absolute;
  top: 7%;
  left: 7%;
  width: 86%;
  height: 86%;
  max-width: none;
}

/* Os pontos sao decorativos: quem clica sao os botoes com o nome da regiao. */
#alvos {
  pointer-events: none;
}

/* r e stroke-width ficam em unidades do viewBox, entao o ponto cresce e encolhe
   junto com o corpo.

   A posicao mora no atributo transform do <g class="alvo"> e a animacao num <g>
   interno DE PROPOSITO: no SVG o atributo transform e a propriedade transform do
   CSS sao a mesma coisa, e o CSS ganha. Escalar o mesmo <g> apagava o translate
   e jogava os oito pontos na origem do viewBox, fora da area visivel. */
.alvo {
  opacity: 0.55;
  transition: opacity 0.35s;
}

.alvo__corpo {
  transform-box: fill-box;
  transform-origin: center;
  transform: scale(0.8);
  transition: transform 0.4s var(--curva);
}

.alvo__anel {
  fill: rgba(255, 255, 255, 0.9);
}

.alvo__nucleo {
  fill: var(--verde);
}

.alvo__halo {
  fill: none;
  stroke: var(--verde);
  stroke-width: 4;
  transform-box: fill-box;
  transform-origin: center;
  opacity: 0;
  transition: opacity 0.35s, transform 0.6s var(--curva);
}

.alvo.aceso {
  opacity: 1;
}

.alvo.aceso .alvo__corpo {
  transform: scale(1.15);
}

.alvo.aceso .alvo__halo {
  opacity: 0.8;
  transform: scale(1.85);
}

.mapa__dica {
  grid-column: 1 / -1;
  text-align: center;
  font-size: 0.88rem;
  color: var(--tinta-45);
  margin-top: 1.2rem;
}

/* --- Corpo clinico --------------------------------------------- */

.equipe__trilho {
  display: flex;
  gap: 1.15rem;
  overflow-x: auto;
  padding: 0.5rem 0 1.6rem;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.28) transparent;
  -webkit-overflow-scrolling: touch;
}

.equipe__trilho::-webkit-scrollbar {
  height: 5px;
}

.equipe__trilho::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.28);
  border-radius: 99px;
}

.medico {
  flex: 0 0 clamp(232px, 24vw, 268px);
  scroll-snap-align: start;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--raio);
  padding: 1.7rem 1.35rem 1.45rem;
  text-align: center;
  transition: transform 0.45s var(--curva), background-color 0.35s,
    border-color 0.35s, opacity 0.35s;
}

.medico:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(151, 176, 44, 0.5);
}

.medico__foto {
  width: 140px;
  height: 140px;
  margin: 0 auto 1.05rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 0 0 1.5px rgba(151, 176, 44, 0.45);
}

.medico__nome {
  font: 600 1.115rem/1.2 var(--serif);
  color: #fff;
  margin-bottom: 0.4rem;
}

.medico__area {
  font-size: 0.895rem;
  color: var(--verde-claro);
  line-height: 1.4;
  min-height: 2.5em;
}

.medico__crm {
  font-size: 0.775rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.medico__form {
  font-size: 0.83rem;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.45;
  margin-top: 0.6rem;
}

.equipe__rodape {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
  margin-top: 1.4rem;
}

.equipe__filtro {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.66);
}

.equipe__filtro b {
  color: var(--verde-claro);
  font-weight: 500;
}

.limpar {
  background: none;
  border: 0;
  color: rgba(255, 255, 255, 0.66);
  font: inherit;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
  padding: 0.2rem 0.1rem;
}

.limpar:hover {
  color: #fff;
}

/* --- Quem somos ------------------------------------------------ */

.sobre {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: clamp(2rem, 1rem + 4vw, 4.5rem);
  align-items: stretch;
}

.sobre__texto p + p {
  margin-top: 1.05rem;
}

.sobre__texto p {
  color: var(--tinta-70);
  text-align: justify;
  text-align-last: left;
  hyphens: auto;
  -webkit-hyphens: auto;
}

.sobre__lista {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.9rem;
}

.sobre__lista li {
  display: flex;
  gap: 0.8rem;
  align-items: flex-start;
  font-size: 0.99rem;
}

.sobre__lista svg {
  width: 21px;
  height: 21px;
  flex: none;
  color: var(--verde);
  margin-top: 0.15rem;
}

.sobre__lado {
  position: relative;
  min-height: clamp(320px, 34vw, 460px);
}

.sobre__figura {
  position: absolute;
  inset: 0;
  border-radius: var(--raio);
  overflow: hidden;
  background: var(--teal-fundo);
}

.sobre__figura img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}


.marcador {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  text-align: center;
  gap: 0.5rem;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.87rem;
  padding: 2rem;
  z-index: 1;
}

.marcador svg {
  width: 38px;
  height: 38px;
  margin: 0 auto;
  opacity: 0.55;
}

/* --- Convenios -------------------------------------------------- */

.marquise {
  --vao: 0.9rem;
  overflow: hidden;
  /* some nas pontas em vez de cortar seco */
  -webkit-mask: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
  mask: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}

.marquise__trilho {
  display: flex;
  gap: var(--vao);
  width: max-content;
  animation: correr var(--duracao, 42s) linear infinite;
}

.marquise:hover .marquise__trilho,
.marquise:focus-within .marquise__trilho {
  animation-play-state: paused;
}

@keyframes correr {
  to {
    transform: translateX(calc(-50% - var(--vao) / 2));
  }
}

.convenio {
  flex: none;
  display: grid;
  place-content: center;
  min-width: 172px;
  min-height: 86px;
  background: var(--papel-2);
  border: 1px solid var(--linha);
  border-radius: 11px;
  padding: 0.8rem 1.1rem;
  text-align: center;
  color: var(--teal);
  transition: border-color 0.3s, box-shadow 0.35s;
}

/* Todas as logos foram normalizadas no mesmo canvas, entao basta uma caixa
   fixa com contain: a altura fica igual e nenhuma vaza. */
.convenio img {
  width: 100%;
  max-width: 160px;
  height: 58px;
  object-fit: contain;
}

.convenio:hover {
  border-color: var(--verde);
  box-shadow: 0 12px 26px -18px rgba(1, 33, 45, 0.5);
}



/* --- Como chegar ------------------------------------------------ */

.chegar {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: clamp(2rem, 1rem + 3.5vw, 4rem);
  align-items: start;
}

.dados {
  list-style: none;
  margin: 0 0 2rem;
  padding: 0;
  display: grid;
  gap: 1.35rem;
}

.dados li {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.dados svg {
  width: 22px;
  height: 22px;
  flex: none;
  color: var(--verde);
  margin-top: 0.2rem;
}

.dados b {
  display: block;
  font-size: 0.775rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--tinta-45);
  font-weight: 500;
  margin-bottom: 0.22rem;
}

.dados span {
  color: var(--tinta);
  line-height: 1.5;
}

.dados a {
  color: var(--teal);
  text-decoration-color: var(--linha);
  text-underline-offset: 3px;
}

.dados a:hover {
  text-decoration-color: var(--verde);
}

.chegar__mapa {
  border-radius: var(--raio);
  overflow: hidden;
  border: 1px solid var(--linha);
  background: var(--papel-2);
  aspect-ratio: 4 / 3;
  position: relative;
}

.chegar__mapa iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* --- Chamada final ---------------------------------------------- */

.final {
  position: relative;
  text-align: center;
  overflow: hidden;
}

.final__anel {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(880px, 120vw);
  aspect-ratio: 1;
  translate: -50% -50%;
  border-radius: 50%;
  border: 1px solid rgba(151, 176, 44, 0.22);
  pointer-events: none;
}

.final__anel--2 {
  width: min(640px, 88vw);
  border-color: rgba(255, 255, 255, 0.09);
}

.final .env {
  position: relative;
}

.final h2 {
  font-size: clamp(2rem, 1.4rem + 2.6vw, 3.35rem);
  max-width: 20ch;
  margin-inline: auto;
}

.final p {
  margin: 1.1rem auto 0;
  max-width: 42ch;
  color: rgba(255, 255, 255, 0.75);
}

.final__acoes {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  justify-content: center;
  margin-top: 2.2rem;
}

.final__nota {
  margin-top: 1.7rem;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.5);
}

/* --- Rodape ----------------------------------------------------- */

.rodape {
  background: var(--tinta);
  color: rgba(255, 255, 255, 0.78);
  padding-block: clamp(2.75rem, 2rem + 2.5vw, 4rem) 2rem;
  font-size: 0.93rem;
}

.rodape__grade {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 2.4rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.rodape .marca__sigla {
  color: #fff;
}

.rodape .marca__linha {
  color: rgba(255, 255, 255, 0.72);
}

.rodape__sobre {
  margin-top: 1.1rem;
  max-width: 30rem;
  line-height: 1.6;
}

.rodape h3 {
  font-family: var(--sans);
  font-size: 0.775rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
  font-weight: 500;
  margin-bottom: 1.05rem;
}

.rodape ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.65rem;
}

.rodape a {
  text-decoration: none;
  transition: color 0.25s;
}

.rodape a:hover {
  color: var(--verde-claro);
}

.rodape__fim {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem 1.5rem;
  justify-content: space-between;
  padding-top: 1.6rem;
  font-size: 0.84rem;
  color: rgba(255, 255, 255, 0.7);
}

.rodape__fim a {
  color: inherit;
}

/* --- Botao flutuante do WhatsApp -------------------------------- */

.zap {
  position: fixed;
  right: clamp(1rem, 2vw, 1.75rem);
  bottom: clamp(1rem, 2vw, 1.75rem);
  z-index: 70;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: grid;
  place-content: center;
  background: #25d366;
  color: #05331a;
  box-shadow: 0 14px 30px -12px rgba(1, 33, 45, 0.55);
  transition: transform 0.4s var(--curva), opacity 0.35s;
  opacity: 0;
  transform: scale(0.6);
  pointer-events: none;
}

.zap.visivel {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

.zap:hover {
  transform: scale(1.08);
}

.zap svg {
  width: 28px;
  height: 28px;
}

/* --- Entrada por scroll ----------------------------------------- */

.sobe {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.75s var(--curva), transform 0.75s var(--curva);
}

.sobe.dentro {
  opacity: 1;
  transform: none;
}

.sobe:nth-child(2) {
  transition-delay: 0.07s;
}

.sobe:nth-child(3) {
  transition-delay: 0.14s;
}

.sobe:nth-child(4) {
  transition-delay: 0.21s;
}

/* --- Responsivo -------------------------------------------------- */

@media (max-width: 1020px) {
  .hero__grade,
  .sobre,
  .chegar {
    grid-template-columns: 1fr;
  }


  .sobre__lado {
    max-width: 520px;
    margin-inline: auto;
    width: 100%;
    aspect-ratio: 4 / 3;
    min-height: 0;
  }

  .rodape__grade {
    grid-template-columns: 1fr 1fr;
  }

  .rodape__sobre {
    grid-column: 1 / -1;
  }
}

@media (max-width: 900px) {
  .nav,
  .topo__acao {
    display: none;
  }

  .menu-btn {
    display: block;
  }

  .topo.aberto .nav {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--papel-2);
    border-bottom: 1px solid var(--linha);
    padding: 0.5rem 1.5rem 1.35rem;
    box-shadow: 0 24px 40px -28px rgba(1, 33, 45, 0.5);
  }

  .topo.aberto .nav a {
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--linha);
    font-size: 1.02rem;
  }

  .topo.aberto .nav a:last-child {
    border-bottom: 0;
  }

  /* No celular as colunas de pinos viram uma grade sob a figura. */
  .mapa {
    grid-template-columns: 1fr;
  }

  .mapa__palco {
    order: -1;
    max-width: 380px;
    margin-inline: auto;
    width: 100%;
  }

  .mapa__coluna {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(158px, 1fr));
    gap: 0.4rem;
  }

  .mapa__coluna--esq .pino,
  .mapa__coluna--dir .pino {
    flex-direction: row;
    text-align: left;
    background: var(--papel-2);
    border: 1px solid var(--linha);
  }

  .mapa__coluna--esq {
    align-items: stretch;
  }

  .mapa__coluna--dir {
    align-items: stretch;
  }
}

@media (max-width: 620px) {
  :root {
    --w: min(1240px, 100% - 2.2rem);
  }

  /* Navegacao e contato lado a lado: encurta bastante o rodape. */
  .rodape__grade {
    grid-template-columns: 1fr 1fr;
    gap: 1.8rem 1.4rem;
  }

  /* A marca e o endereco atravessam as duas colunas; as duas listas
     dividem a linha de baixo. */
  .rodape__grade > div:first-child {
    grid-column: 1 / -1;
  }

  .rodape__sobre {
    font-size: 0.86rem;
    margin-top: 0.9rem;
  }

  .rodape ul {
    gap: 0.55rem;
  }

  /* Os dois botoes do hero na mesma largura, e larga o bastante pro toque. */
  .hero__acoes {
    display: grid;
    gap: 0.7rem;
  }

  .hero__acoes .btn {
    width: 100%;
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .sobe {
    opacity: 1;
    transform: none;
  }

  .hero h1 em::after {
    transform: scaleX(1);
  }
}

/* Foco visivel e consistente em tudo que recebe teclado. */
:focus-visible {
  outline: 2.5px solid var(--verde);
  outline-offset: 3px;
  border-radius: 4px;
}

.secao--escura :focus-visible,
.rodape :focus-visible,
.final :focus-visible {
  outline-color: var(--verde-claro);
}
