/* Estilos: tokens, base, componentes, seções (mobile-first)
   Visual caseiro e simples: cores chapadas, sem sombras de relevo, pouco movimento.
   O único destaque é o nome "Tia Tatá" escrito à mão no topo. */

/* ---------- Fontes (hospedadas no próprio site, em fonts/) ----------
   Mesmos arquivos e mesmas declarações que o Google Fonts servia; ficam aqui para o site não
   depender de terceiros (privacidade do visitante e política de segurança só com 'self').
   "Baloo 2" e "Outfit" são fontes variáveis: o mesmo arquivo atende aos pesos declarados.
   Só os pesos abaixo existem; não troque por um intervalo (ex.: 600 800), isso mudaria o visual.
   Licença das três: SIL Open Font License 1.1. */
@font-face {
  font-family: "Atkinson Hyperlegible";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/atkinson-hyperlegible-400-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Atkinson Hyperlegible";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/atkinson-hyperlegible-400-latin.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: "Atkinson Hyperlegible";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("fonts/atkinson-hyperlegible-700-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Atkinson Hyperlegible";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("fonts/atkinson-hyperlegible-700-latin.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: "Baloo 2";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/baloo-2-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Baloo 2";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/baloo-2-latin.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: "Baloo 2";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("fonts/baloo-2-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Baloo 2";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("fonts/baloo-2-latin.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: "Outfit";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/outfit-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Outfit";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/outfit-latin.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 {
  --ambar: #FFB27F;
  --ambar-suave: #FDE0C8;
  --hero-topo: #F7883F; /* início do degradê do herói (laranja forte) */
  --hero-base: #FFD1AE; /* fim do degradê do herói (laranja claro) */
  --pessego: #FFEBDD;
  --vermelho: #B3150B;
  --vermelho-escuro: #8F1109;
  --laranja: #CD5D11;
  --verde: #2E5941;
  --verde-escuro: #234533;
  --verde-vivo: #5BD38A;
  --verde-faixa: #3A7D55; /* faixa "aberto": mais claro que --verde (botão WhatsApp), ainda com texto branco legível */
  --fundo: #FFF8EC;
  --grafite: #1E1E1E;
  --texto: #2C2C2C;
  --suave: #5A4A3A;
  --linha: rgba(44, 44, 44, .14);
  --f-titulo: "Baloo 2", "Trebuchet MS", system-ui, sans-serif;
  --f-corpo: "Atkinson Hyperlegible", system-ui, sans-serif;
  --f-frase: "Outfit", system-ui, sans-serif; /* só a frase do herói */
  /* Escala de tamanhos de texto: use só estes degraus */
  --t-xs: .8125rem;   /* 13px: letras miúdas, rótulos apertados */
  --t-sm: .9375rem;   /* 15px: textos de apoio */
  --t-base: 1rem;     /* 16px: botões, nomes, links */
  --t-md: 1.125rem;   /* 18px: destaques curtos */
  --t-lg: 1.3125rem;  /* 21px: subtítulos */
  --t-xl: 1.625rem;   /* 26px: marca no topo */
  --t-2xl: 2.25rem;   /* 36px: nome no rodapé */
  --t-titulo: clamp(1.75rem, 5.5vw, 2.5rem);  /* títulos de seção */
  --t-letreiro: clamp(3.5rem, 17vw, 6rem);    /* nome no herói */
  --e1: 4px;
  --e2: 8px;
  --e3: 12px;
  --e4: 16px;
  --e5: 24px;
  --e6: 32px;
  --e7: 48px;
  --e8: 64px;
  --r-btn: 10px;
  --r-card: 12px;
  --r-pill: 999px;
  --s1: 0 1px 3px rgba(44,44,44,0.10);
  --s2: 0 4px 12px rgba(44,44,44,0.18);
  --sombra-btn: 0 1px 2px rgba(44,44,44,.14), 0 2px 6px rgba(44,44,44,.10);
  --sombra-btn-alta: 0 2px 4px rgba(44,44,44,.14), 0 8px 18px rgba(44,44,44,.16);
  --sombra-btn-baixa: 0 1px 2px rgba(44,44,44,.16);
  --lateral: clamp(16px, 4vw, 64px);
  --largura: 1120px;
  --barra-h: 60px;
  --seguro: env(safe-area-inset-bottom, 0px);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

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

body, h1, h2, h3, p, ul { margin: 0; }
img { max-width: 100%; display: block; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 72px;
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--fundo);
  color: var(--texto);
  font-family: var(--f-corpo);
  font-size: 17px;
  line-height: 1.6;
  overflow-x: hidden;
  padding-bottom: calc(var(--barra-h) + var(--seguro));
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

h1, h2, h3 { font-family: var(--f-titulo); line-height: 1.1; }
p { max-width: 62ch; }
a { color: var(--vermelho); }

::selection { background: var(--ambar); color: var(--texto); }

:focus-visible {
  outline: 3px solid var(--verde);
  outline-offset: 3px;
}
.faixa :focus-visible { outline-color: var(--ambar); }

.pular {
  position: absolute;
  left: var(--e2);
  top: var(--e2);
  transform: translateY(-200%);
  background: var(--verde);
  color: #fff;
  padding: 8px 14px;
  border-radius: var(--r-btn);
  z-index: 1000;
}
.pular:focus { transform: none; }

/* Folha de ícones (os <symbol> do index.html): fica invisível e não ocupa espaço.
   É uma classe, e não um style="" no HTML, porque a política de segurança (CSP) bloqueia
   estilos escritos direto na tag. */
.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

main:focus { outline: none; }

/* Texto só para leitor de tela (fica fora da tela, mas é lido) */
.so-leitor {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* <picture> (WebP com JPEG de reserva) não gera caixa própria: o <img> de dentro se comporta
   como se estivesse direto no pai, então o layout é o mesmo de um <img> sozinho. */
picture { display: contents; }

/* ---------- Botões ---------- */
/* Todos os botões têm o mesmo tamanho (220×48). Em telas muito estreitas, encolhem para caber. */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 220px;
  max-width: 100%;
  min-height: 48px;
  padding: 0 14px;
  white-space: nowrap;
  border: 2px solid transparent;
  border-radius: var(--r-btn);
  font-family: var(--f-titulo);
  font-weight: 800;
  font-size: var(--t-base);
  line-height: 1.1;
  text-decoration: none;
  cursor: pointer;
  user-select: none;
  box-shadow: var(--sombra-btn);
  transition: background-color .18s ease, border-color .18s ease, color .18s ease,
              transform .18s var(--ease), box-shadow .18s var(--ease);
}
.btn .icone { transition: transform .18s var(--ease); }
.btn:active {
  transform: translateY(1px) scale(.98);
  box-shadow: var(--sombra-btn-baixa);
}

.btn--primario { background: var(--vermelho); color: #fff; }
.btn--wa { background: var(--verde); color: #fff; }
.btn--sec {
  background: transparent;
  color: var(--texto);
  border-color: var(--texto);
}

/* Redes sociais: cada botão usa a cor da própria rede */
.btn--youtube,
.btn--insta,
.btn--face {
  color: #fff;
}
.btn--youtube { background: #CC0000; }
.btn--insta { background: linear-gradient(45deg, #833AB4, #C13584); }
/* Azul atual da Meta: o antigo #1877F2 dava contraste 4,2:1 com o texto branco (mínimo 4,5:1) */
.btn--face { background: #0866FF; }

[aria-disabled="true"] { opacity: 0.55; pointer-events: none; }

.icone {
  width: 1.25em;
  height: 1.25em;
  margin-right: 8px;
  flex: none;
}

/* Grupos de botões (redes sociais e mapa): sempre lado a lado, numa linha só.
   Cada botão ocupa uma coluna igual, de no máximo 220px; em telas estreitas as colunas
   encolhem por igual, então os botões de um grupo têm sempre o mesmo tamanho entre si. */
.redes,
.chegar__botoes {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 220px);
}
.redes .btn,
.chegar__botoes .btn { width: 100%; }

.redes {
  justify-content: start;
  gap: var(--e2);
  margin-top: var(--e4);
}

@media (hover: hover) {
  .btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--sombra-btn-alta);
  }
  .btn:hover .icone { transform: scale(1.12); }
  .btn:active {
    transform: translateY(1px) scale(.98);
    box-shadow: var(--sombra-btn-baixa);
  }
  .btn--primario:hover { background: var(--vermelho-escuro); }
  .btn--wa:hover { background: var(--verde-escuro); }
  .btn--sec:hover { background: rgba(44, 44, 44, .06); }
  .btn--youtube:hover { background: #A80000; }
  .btn--insta:hover { background: linear-gradient(45deg, #6B2E94, #A02B6C); }
  .btn--face:hover { background: #0654CC; }
}

/* ---------- Topo ---------- */
.topo {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--e4);
  margin-bottom: -24px;
  padding: 4px var(--lateral);
  background: var(--fundo);
  border-bottom: 1px solid transparent;
  border-radius: 0 0 24px 24px;
  transition: border-color .2s ease, background-color .25s ease;
}
.topo.rolado { border-bottom-color: var(--linha); }
/* Sobre o herói: mesma cor dele e sem a marca, que já está no nome grande logo abaixo */
.topo.topo--sobre-hero {
  background: var(--hero-topo);
  border-bottom-color: transparent;
}
/* A marca entra com um deslize curto de 4px junto do fade */
.topo__marca { transition: opacity .18s ease, visibility .18s, transform .25s var(--ease); }
.topo--sobre-hero .topo__marca {
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
}

.topo__marca {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  text-decoration: none;
  color: var(--texto);
  font-family: var(--f-titulo);
  font-weight: 800;
  font-size: var(--t-xl);
  line-height: 1;
}
.topo__marca img { width: 40px; height: 40px; border-radius: 50%; }

.topo__nav { display: none; gap: var(--e2); align-items: center; }
.topo__wa { display: none; } /* WhatsApp no cabeçalho: só no desktop */
.topo__nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  color: var(--texto);
  text-decoration: none;
  font-family: var(--f-titulo);
  font-weight: 600;
  position: relative;
  transition: color .18s ease;
}
/* Sublinhado que cresce da esquerda: no link da seção atual e ao passar o mouse */
.topo__nav a::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 8px;
  height: 2px;
  border-radius: 1px;
  background: var(--vermelho);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s var(--ease);
}
.topo__nav a[aria-current]::after { transform: scaleX(1); }
@media (hover: hover) {
  .topo__nav a:hover { color: var(--vermelho); }
  .topo__nav a:hover::after { transform: scaleX(1); }
}

/* ---------- Hero ---------- */
/* Degradê vertical: laranja mais forte no topo (emenda com o cabeçalho) clareando para baixo */
.hero {
  background: var(--ambar);
  background: linear-gradient(180deg, var(--hero-topo) 0%, var(--ambar) 55%, var(--hero-base) 100%);
  color: var(--texto);
}
.hero__conteudo {
  max-width: var(--largura);
  margin: 0 auto;
  padding: 44px var(--lateral) 44px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--e5);
  align-items: center;
  justify-items: center;
  text-align: center;
}
.hero__texto {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* O nome no topo: fonte de títulos, firme e limpa */
.letreiro {
  font-family: var(--f-titulo);
  font-weight: 800;
  font-size: var(--t-letreiro);
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--texto);
}
/* Frase em sans geométrica (Outfit): contraste limpo com o nome arredondado acima */
.hero__frase {
  font-family: var(--f-frase);
  font-weight: 500;
  font-size: clamp(var(--t-md), 2.1vw, var(--t-lg));
  line-height: 1.35;
  letter-spacing: .005em;
  max-width: 24ch;
  margin-top: var(--e3);
  text-wrap: balance;
}
/* O ano de fundação com peso próprio: linhas finas dos lados, como um selo */
.hero__desde {
  display: flex;
  align-items: center;
  gap: var(--e3);
  margin: var(--e2) 0 var(--e5);
  font-family: var(--f-titulo);
  font-weight: 700;
  font-size: var(--t-md);
  letter-spacing: .02em;
  color: var(--vermelho-escuro);
}
.hero__desde::before,
.hero__desde::after {
  content: "";
  width: 28px;
  height: 2px;
  border-radius: 1px;
  background: currentColor;
  opacity: .45;
}
.hero__acoes {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--e3);
}
.hero__acoes .btn--sec { background: rgba(255, 255, 255, .25); }

/* Celular e tablet: o logo vem primeiro, como emblema acima do nome */
.hero__logo-wrap { order: -1; }
.hero__logo {
  width: clamp(132px, 40vw, 176px);
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 50%;
  /* sombra suave só no contorno redondo do logo (a imagem tem fundo transparente) */
  filter: drop-shadow(0 6px 14px rgba(90, 40, 0, .28));
}

/* Celular: o herói ocupa a primeira tela, deixando visível só a faixa de status acima da
   barra inferior (cabeçalho ~32px no fluxo + faixa ~84px em duas linhas + barra). O conteúdo fica
   centralizado na vertical; em telas baixas a altura mínima não se impõe e nada é cortado.
   Os dois botões ganham a largura da coluna (até 340px): exceção à regra 220×48,
   só aqui, para serem os alvos principais do polegar. */
@media (max-width: 699px) {
  .hero__conteudo {
    min-height: calc(100vh - 176px - var(--seguro));
    min-height: calc(100svh - 176px - var(--seguro));
    align-content: center;
    gap: var(--e5);
    padding-block: 36px 40px;
  }
  /* Em telas altas o logo cresce com a altura, para não sobrar faixa vazia em cima e embaixo */
  .hero__logo { width: clamp(132px, min(44vw, 24svh), 200px); }
  .hero__desde { margin-bottom: var(--e6); }
  .hero__acoes {
    align-items: stretch;
    width: 100%;
    max-width: 340px;
  }
  .hero__acoes .btn {
    width: 100%;
    min-height: 52px;
    font-size: var(--t-md);
  }
}

/* Celular baixo (iPhone SE/8, Android de 360×640 com a barra do navegador à mostra): no tamanho
   normal o botão "Como chegar" ficava atrás da barra inferior. Aqui o logo encolhe conforme a
   altura da tela e os respiros diminuem, para os dois botões caberem acima da barra.
   450px = tudo o que há no herói além do logo + a barra inferior + 12px de folga. */
@media (max-width: 699px) and (max-height: 639px) {
  .hero__conteudo {
    gap: var(--e4);
    padding-block: 20px var(--e5);
  }
  .hero__logo {
    width: clamp(72px, calc(100vh - 450px), 132px);
    width: clamp(72px, calc(100svh - 450px), 132px);
  }
  .hero__desde { margin-bottom: var(--e5); }
}

/* ---------- Faixa de status ---------- */
/* Duas linhas centralizadas: o aviso (ponto + texto) e, embaixo, a etiqueta "Ver horários" */
.faixa {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 10px var(--lateral);
  background: var(--grafite);
  color: #fff;
  font-weight: 700;
  text-align: center;
  transition: background-color .4s ease; /* grafite → verde/vermelho quando o horário é calculado */
}
.faixa__ponto { transition: background-color .4s ease; }
.faixa__linha {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  max-width: none;
}
/* A cor da faixa é o próprio aviso: verde aberto, vermelho fechado (as mesmas cores
   chapadas dos botões). Grafite só enquanto o horário ainda não foi calculado. */
#status[data-estado="aberto"] { background: var(--verde-faixa); }
#status[data-estado="fechado"] { background: var(--vermelho-escuro); }
.faixa__ponto {
  width: 10px;
  height: 10px;
  flex: none;
  border-radius: 50%;
  background: #888;
}
#status[data-estado="aberto"] .faixa__ponto { background: #C4F2D5; }
#status[data-estado="fechado"] .faixa__ponto { background: #FFB3A6; }
/* "Ver horários": etiqueta laranja com texto escuro. Texto laranja sobre o verde não tinha
   contraste suficiente; assim fica legível (≈6,5:1) nos três estados da faixa. */
.faixa__link {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 2px 10px;
  border-radius: 6px;
  background: #FF9A4D;
  color: var(--texto);
  font-size: var(--t-sm);
  font-weight: 700;
  text-decoration: none;
  transition: background-color .18s ease;
}
/* Área de toque de 44px de altura, invisível: a etiqueta continua com 30px na tela */
.faixa__link::before {
  content: "";
  position: absolute;
  inset: -7px 0;
}
@media (hover: hover) {
  .faixa__link:hover { background: var(--ambar); }
}

/* ---------- Seções ---------- */
.secao {
  margin: 0 auto;
  padding: clamp(40px, 8vw, 72px) var(--lateral);
}
.secao__titulo {
  justify-self: start;
  font-size: var(--t-titulo);
  font-weight: 800;
  line-height: 1.1;
  width: fit-content; /* o traço abaixo acompanha a largura do texto do título */
  margin-bottom: var(--e4);
}
/* Traço laranja claro entre o título e o conteúdo da seção */
.secao__titulo::after {
  content: "";
  display: block;
  width: 100%;
  height: 5px;
  margin-top: var(--e2);
  border-radius: 3px;
  background: var(--ambar);
}

/* História e Como chegar compartilham a mesma margem do conteúdo */
.secao--historia,
#chegar {
  padding-inline: max(var(--lateral), calc((100% - var(--largura)) / 2));
}
.secao--historia { background: var(--pessego); }
.historia__texto { max-width: 62ch; }
.historia__texto p { max-width: none; line-height: 1.7; text-wrap: pretty; }
.historia__texto p + p,
.historia__mais { margin-top: var(--e4); }
.historia__mais[hidden] { display: none; }
.historia__mais:focus { outline: none; }
.historia__texto strong { font-weight: 700; }

/* "Ler mais": link de texto, discreto, com alvo de toque de 44px */
.ler-mais {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  margin-top: var(--e2);
  padding: 0;
  border: 0;
  background: none;
  color: var(--vermelho);
  font-family: var(--f-titulo);
  font-weight: 800;
  font-size: var(--t-base);
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 2px;
  cursor: pointer;
}
.ler-mais[hidden] { display: none; }
.ler-mais .icone {
  width: 16px;
  height: 16px;
  transform: rotate(90deg);
  transition: transform .2s var(--ease);
}
.ler-mais[aria-expanded="true"] .icone { transform: rotate(-90deg); }
@media (hover: hover) {
  .ler-mais:hover { color: var(--vermelho-escuro); }
}

/* Primeiro parágrafo um pouco maior: entrada do texto */
.historia__texto > p:first-child {
  font-family: var(--f-titulo);
  font-weight: 600;
  font-size: var(--t-md);
  line-height: 1.5;
}
.historia__redes { margin-top: var(--e5); }
.historia__chamada {
  font-family: var(--f-titulo);
  font-weight: 600;
  font-size: var(--t-lg);
  line-height: 1.3;
  color: var(--texto);
}
.historia__redes .redes { margin-top: var(--e3); }

/* Como chegar */
.chegar__grade {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--e5);
  width: 100%;
  margin-top: var(--e4);
}
.horarios-card { text-align: center; }
.mapa {
  display: flex;
  min-height: 320px;
  overflow: hidden;
  border-radius: var(--r-card);
  border: 1px solid var(--linha);
  background: var(--ambar-suave);
}
.mapa iframe {
  flex: 1;
  width: 100%;
  min-height: 320px;
  border: 0;
  display: block;
}
.horarios-card {
  display: flex;
  flex-direction: column;
  padding: var(--e5) var(--e4);
  border-radius: var(--r-card);
  border: 1px solid var(--linha);
  background: #fff;
}
.endereco {
  margin: 0 auto var(--e4);
  color: var(--suave);
  font-size: var(--t-sm);
  line-height: 1.45;
  text-wrap: balance;
}
#horarios-titulo { font-size: var(--t-lg); }
.horarios {
  list-style: none;
  margin: var(--e3) 0 0;
  padding: 0;
  width: 100%;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  font-variant-numeric: tabular-nums;
}
.horarios li {
  display: flex;
  justify-content: space-between;
  gap: var(--e3);
  padding: 8px 12px;
  border-radius: 8px;
}
.horarios li + li { border-top: 1px dashed var(--linha); }
.horarios li.hoje,
.horarios li.hoje + li { border-top-color: transparent; }
.horarios li.hoje {
  background: var(--ambar);
  font-weight: 700;
}
.chegar__botoes {
  justify-content: center;
  gap: var(--e3);
  padding-top: var(--e5);
}

/* Celular: três botões de rede não cabem com ícone e texto lado a lado na mesma linha,
   então o ícone vai em cima do nome. No mapa só diminui o respiro lateral.
   Em telas bem estreitas o texto pode quebrar em duas linhas em vez de ser cortado. */
@media (max-width: 559px) {
  .redes .btn {
    flex-direction: column;
    gap: 3px;
    padding: 6px 4px;
    font-size: var(--t-xs);
    line-height: 1.1;
    white-space: normal;
    text-align: center;
  }
  .redes .btn .icone { width: 20px; height: 20px; margin-right: 0; }
  .chegar__botoes .btn {
    padding-inline: 8px;
    white-space: normal;
    text-align: center;
    line-height: 1.1;
  }
}

/* ---------- Galeria ---------- */
.galeria {
  width: 100%;
  margin: 0;
  padding: clamp(40px, 8vw, 72px) 0 var(--e4);
  overflow: hidden;
}
/* Título na mesma margem de "Como chegar" e "Nossa história"; as fotos seguem de ponta a ponta */
.galeria__titulo {
  margin-inline: max(var(--lateral), calc((100% - var(--largura)) / 2));
}
/* A fileira é uma área de rolagem de verdade: no celular o dedo arrasta com inércia.
   O movimento automático é feito pelo JS (iniciarRolagem), sem barra de rolagem à vista. */
.galeria__fileira {
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain; /* arrastar a galeria não aciona o "voltar" do navegador */
  padding: 6px 0;
  scrollbar-width: none;
}
.galeria__fileira::-webkit-scrollbar { display: none; }
/* Três cópias da lista (cópia, originais, cópia): o JS começa na do meio e salta uma volta
   quando sai dela. O padding-right repete o gap no fim: um terço da largura é exatamente uma volta. */
.galeria__trilho {
  --gap-fotos: 12px;
  --fotos: 13;
  /* Cartão nunca menor que o necessário para uma volta (fotos × cartão) ser mais larga que a tela
     + um cartão: assim a mesma foto nunca aparece duas vezes ao mesmo tempo, nem em telas largas. */
  --card-w: max(200px, calc((100vw + 24px - var(--fotos) * var(--gap-fotos)) / (var(--fotos) - 1)));
  display: flex;
  flex-wrap: nowrap;
  gap: var(--gap-fotos);
  padding-right: var(--gap-fotos);
  width: max-content;
}

.galeria__item {
  display: flex;
  flex-direction: column;
  flex: none;
  width: var(--card-w);
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: var(--r-card);
  background: none;
  font: inherit;
  color: inherit;
  text-align: left;
  cursor: zoom-in;
}
/* A foto fica num quadro 3:4; o nome vem embaixo, fora da imagem */
.galeria__quadro {
  display: block;
  aspect-ratio: 3 / 4;
  border-radius: var(--r-card);
  overflow: hidden;
  background: var(--ambar-suave); /* cor de espera enquanto a foto carrega */
}
/* A foto (ou o placeholder) preenche o quadro. Seletor pelo conteúdo, e não "> *", porque a
   foto pode estar dentro de um <picture> */
.galeria__quadro .galeria__foto,
.galeria__quadro .galeria__placeholder {
  width: 100%;
  height: 100%;
}
.galeria__nome {
  display: block;
  padding: 10px 2px 0;
  font-family: var(--f-titulo);
  font-weight: 600;
  font-size: var(--t-base);
  line-height: 1.25;
  color: var(--texto);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.galeria__foto {
  object-fit: cover;
  -webkit-user-drag: none; /* no desktop, arrastar não "puxa" a imagem para fora da página */
  user-select: none;
}
.galeria__placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  background: #fff;
  color: var(--suave);
  font-family: var(--f-titulo);
  font-weight: 600;
  text-align: center;
}
/* Ao passar o mouse, a foto aproxima levemente dentro do quadro (o quadro não muda de tamanho) */
.galeria__quadro .galeria__foto,
.galeria__quadro .galeria__placeholder { transition: transform .5s var(--ease), opacity .3s ease; }
@media (hover: hover) {
  .galeria__item:hover .galeria__foto,
  .galeria__item:hover .galeria__placeholder { transform: scale(1.04); }
}

.galeria__dica {
  margin: var(--e2) auto 0;
  padding: 0 var(--lateral);
  text-align: center;
  color: var(--suave);
  font-size: var(--t-sm);
}
.so-mouse { display: none; }
@media (hover: hover) and (pointer: fine) {
  .so-toque { display: none; }
  .so-mouse { display: inline; }
}

@media (min-width: 700px) {
  .galeria__trilho { --card-w: max(225px, calc((100vw + 24px - var(--fotos) * var(--gap-fotos)) / (var(--fotos) - 1))); }
}

/* ---------- Visor de fotos (tela cheia) ---------- */
html.visor-aberto { overflow: hidden; }

.visor {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: rgba(30, 30, 30, .95);
  color: #fff;
  overscroll-behavior: contain;
}
.visor::backdrop { background: transparent; }
.visor[open] {
  display: flex;
  align-items: center;
  justify-content: center;
  animation: visor-entra .2s ease both;
}
.visor.visor--fechando { animation: visor-sai .18s ease both; }
.visor :focus-visible { outline-color: var(--ambar); }

.visor__figura {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--e3);
  margin: 0;
  padding: 72px var(--e4) calc(84px + var(--seguro));
  max-width: 100%;
}
.visor__conteudo {
  display: block;
  max-width: min(92vw, 1000px);
  max-height: calc(100vh - 190px);
  max-height: calc(100dvh - 190px);
  border-radius: var(--r-card);
  animation: foto-entra .22s var(--ease) both;
}
img.visor__conteudo { width: auto; height: auto; object-fit: contain; }
.visor__conteudo.galeria__placeholder {
  display: flex;
  width: min(92vw, 720px);
  font-size: var(--t-lg);
}
.visor__conteudo[data-entrada="dir"] { animation-name: foto-da-direita; }
.visor__conteudo[data-entrada="esq"] { animation-name: foto-da-esquerda; }

.visor__legenda {
  max-width: 60ch;
  text-align: center;
  font-size: var(--t-sm);
  color: rgba(255, 255, 255, .85);
}
.visor__contador {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  margin: 0;
  padding: 12px 0;
  font-family: var(--f-titulo);
  font-weight: 600;
  font-size: var(--t-sm);
  color: rgba(255, 255, 255, .8);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.visor__btn {
  position: absolute;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .12);
  color: #fff;
  cursor: pointer;
  transition: background-color .15s ease;
}
.visor__btn .icone { width: 22px; height: 22px; margin: 0; }
.visor__btn:active { background: rgba(255, 255, 255, .28); }
@media (hover: hover) {
  .visor__btn:hover { background: rgba(255, 255, 255, .22); }
}
.visor__fechar { top: 12px; right: 12px; }
/* Mobile: setas embaixo, ao alcance do polegar */
.visor__nav { bottom: calc(20px + var(--seguro)); }
.visor__nav--ant { left: 20px; }
.visor__nav--prox { right: 20px; }
.visor--unico .visor__nav,
.visor--unico .visor__contador { display: none; }

@keyframes visor-entra { from { opacity: 0; } }
@keyframes visor-sai { to { opacity: 0; } }
@keyframes foto-entra { from { opacity: 0; transform: scale(.97); } }
@keyframes foto-da-direita { from { opacity: 0; transform: translateX(24px); } }
@keyframes foto-da-esquerda { from { opacity: 0; transform: translateX(-24px); } }

/* ---------- Rodapé ---------- */
.rodape {
  background: #fff;
  color: var(--texto);
  text-align: center;
  padding: var(--e7) var(--lateral);
  border-top: 1px solid var(--linha);
  border-radius: 24px 24px 0 0;
}
.rodape p { margin-inline: auto; }
.rodape__nome {
  font-family: var(--f-titulo);
  font-weight: 800;
  font-size: var(--t-2xl);
  line-height: 1.1;
  color: var(--vermelho);
}
.rodape__contato {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: var(--e2);
  font-style: normal;
  font-size: var(--t-sm);
  color: var(--suave);
  text-wrap: balance;
}
.rodape__horario { font-variant-numeric: tabular-nums; }

.rodape__peq { margin-top: var(--e5); font-size: var(--t-xs); color: var(--suave); }

/* ---------- Barra inferior (mobile) ---------- */
.barra {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 100;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-items: stretch;
  height: calc(var(--barra-h) + var(--seguro));
  padding-bottom: var(--seguro);
  background: var(--fundo);
  border-top: 1px solid var(--linha);
  border-radius: 24px 24px 0 0;
}
.barra a {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
  color: var(--texto);
  text-decoration: none;
  text-align: center;
  font-family: var(--f-titulo);
  font-weight: 600;
  font-size: var(--t-sm);
  transition: color .15s ease;
}
.barra a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 10px;
  width: 18px;
  height: 2px;
  margin-left: -9px;
  border-radius: 2px;
  background: var(--vermelho);
  opacity: 0;
  transform: scaleX(.3);
  transition: opacity .15s ease, transform .25s var(--ease);
}
.barra a[aria-current] { color: var(--vermelho); }
.barra a[aria-current]::after { opacity: 1; transform: none; }
.barra a:active { color: var(--vermelho); }

/* WhatsApp flutuante: no mobile, botão redondo no canto inferior direito, acima da barra */
.flutuante {
  position: fixed;
  right: var(--e4);
  bottom: calc(var(--barra-h) + var(--seguro) + var(--e3));
  z-index: 100;
  width: 56px;
  height: 56px;
  min-height: 0;
  padding: 0;
  border-radius: 50%;
  box-shadow: var(--s2);
}
/* Escondido enquanto os botões do herói estão na tela (classe posta pelo app.js) */
.flutuante { transition: opacity .2s ease, visibility .2s, transform .2s var(--ease), background-color .18s ease, box-shadow .18s var(--ease); }
.acoes-visiveis .flutuante {
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
}
.flutuante .icone { width: 28px; height: 28px; margin-right: 0; }
.flutuante__texto {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* ---------- Tablet ---------- */
@media (min-width: 700px) {
  .hero__acoes {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
  }
  .hero__logo { width: 152px; }

  /* Visor: setas nas laterais, centralizadas */
  .visor__figura { padding: 72px 88px; }
  .visor__nav { top: 50%; bottom: auto; margin-top: -24px; }
  .visor__nav--ant { left: 16px; }
  .visor__nav--prox { right: 16px; }
  .visor__conteudo { max-width: min(calc(100vw - 176px), 1000px); }
  .visor__conteudo.galeria__placeholder { width: min(calc(100vw - 176px), 720px); }
}

/* ---------- Desktop ---------- */
/* Um eixo só: cabeçalho, herói, seções e rodapé começam e terminam nas mesmas bordas
   (--borda: a coluna de --largura centralizada, ou a margem lateral em telas menores).
   Nada daqui vale abaixo de 900px: o celular e o tablet ficam exatamente como estão. */
@media (min-width: 900px) {
  :root {
    --borda: max(var(--lateral), calc((100% - var(--largura)) / 2));
    /* O nome do herói é o destaque da página: cresce mais no desktop */
    --t-letreiro: clamp(6rem, 8vw, 7.5rem);
  }
  body { padding-bottom: 0; }

  /* Cabeçalho: marca à esquerda, menu no centro, WhatsApp à direita, tudo dentro do eixo */
  /* O herói começa no topo da página, por baixo do cabeçalho (margem negativa = altura do
     cabeçalho: botão de 48px + respiro + borda). No topo o cabeçalho é transparente, então o
     degradê do herói corre inteiro, sem a emenda de uma faixa laranja chapada. */
  .topo {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    padding: var(--e2) var(--borda);
    margin-bottom: calc(-1 * (48px + 2 * var(--e2) + 1px));
  }
  .topo.topo--sobre-hero { background: transparent; }
  .topo__marca { font-size: var(--t-xl); white-space: nowrap; }
  .topo__nav {
    display: flex;
    justify-self: center;
    transition: opacity .18s ease, visibility .18s, transform .25s var(--ease);
  }
  /* No topo da página o cabeçalho fica vazio, fundido ao herói: o menu aparece junto com a
     marca e o WhatsApp assim que a pessoa rola (visibility: hidden também tira os links do Tab) */
  .topo--sobre-hero .topo__nav {
    opacity: 0;
    visibility: hidden;
    transform: translateY(-4px);
  }
  /* Sobre o herói, o WhatsApp some junto com a marca (o herói já tem o botão grande) */
  .topo__wa {
    display: inline-flex;
    justify-self: end;
    transition: background-color .18s ease, transform .18s var(--ease), box-shadow .18s var(--ease),
                opacity .18s ease, visibility .18s;
  }
  .topo--sobre-hero .topo__wa { opacity: 0; visibility: hidden; }
  /* Com o WhatsApp no cabeçalho, o botão flutuante não precisa cobrir o conteúdo */
  .flutuante { display: none; }

  .hero__conteudo {
    max-width: none;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
    gap: var(--e7);
    /* 129px = os 88px de antes + os 41px que o herói subiu para baixo do cabeçalho:
       o conteúdo continua exatamente no mesmo lugar */
    padding: 129px var(--borda) 80px;
    justify-items: start;
    text-align: left;
  }
  .hero__texto { align-items: flex-start; }
  .hero__frase { margin-top: var(--e4); }
  .hero__acoes { justify-content: flex-start; }
  /* Logo encostado na borda direita do eixo, como o texto encosta na esquerda */
  .hero__logo-wrap { order: 0; justify-self: end; }
  .hero__logo { width: clamp(260px, 26vw, 320px); }
  /* Texto alinhado à esquerda: sem as linhas do selo. Com o texto encostado na borda só
     caberia a linha da direita, e um traço solto depois de "Desde 1969" parecia texto cortado. */
  .hero__desde::before,
  .hero__desde::after { display: none; }

  /* Faixa de status numa linha só: aviso e "Ver horários" lado a lado */
  .faixa {
    flex-direction: row;
    justify-content: center;
    gap: var(--e4);
    padding-block: 12px;
  }

  /* Seções: mesma borda do eixo */
  .galeria__titulo { margin-inline: var(--borda); }
  .secao--historia,
  #chegar { padding-inline: var(--borda); }

  /* Como chegar: cartão alinhado à esquerda, com o título primeiro e o endereço junto dos
     botões do mapa, onde ele é útil. Em telas largas o mapa ganha mais espaço (abaixo). */
  .chegar__grade {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: var(--e6);
    align-items: stretch;
  }
  .horarios-card {
    padding: var(--e6);
    text-align: left;
  }
  #horarios-titulo { order: -2; }
  /* A lista sai 12px para cada lado: o texto dos dias alinha com o título "Horários"
     e o destaque de "hoje" ocupa o recuo */
  .horarios {
    order: -1;
    width: auto;
    margin: var(--e4) -12px 0;
  }
  .endereco {
    margin: var(--e5) 0 0;
    font-size: var(--t-base);
    text-wrap: wrap;
  }
  .chegar__botoes {
    justify-content: start;
    padding-top: var(--e3);
  }

  /* Nossa história: título no topo, como nas outras seções; texto à esquerda e, ao lado,
     as redes sociais numa coluna própria separada por uma linha fina */
  .secao--historia {
    display: grid;
    /* coluna das redes: botão de 220px + o recuo e a linha que a separam do texto */
    grid-template-columns: minmax(0, 1fr) calc(220px + var(--e6) + 1px);
    grid-template-areas:
      "titulo titulo"
      "texto  redes";
    column-gap: var(--e8);
    align-items: start;
  }
  .secao--historia > h2 { grid-area: titulo; margin-bottom: var(--e5); }
  .secao--historia > .historia__texto { grid-area: texto; }
  .secao--historia > .historia__redes {
    grid-area: redes;
    margin-top: 0;
    padding-left: var(--e6);
    border-left: 1px solid var(--linha);
  }
  .historia__texto > p:first-child { font-size: var(--t-lg); }
  .historia__chamada { font-size: var(--t-md); }
  .historia__redes .redes {
    grid-auto-flow: row;
    grid-auto-columns: auto;
    grid-template-columns: 220px;
    gap: var(--e3);
    margin-top: var(--e4);
  }

  /* Rodapé numa linha: nome à esquerda, contato no centro, direitos à direita */
  .rodape {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: var(--e5);
    padding: var(--e6) var(--borda);
  }
  .rodape p { margin-inline: 0; }
  .rodape__nome { justify-self: start; }
  .rodape__contato { margin-top: 0; text-align: center; }
  .rodape__peq { margin-top: 0; justify-self: end; text-align: right; }

  .barra { display: none; }
}

/* Desktop estreito (900–1023px): o botão do cabeçalho com 220px tiraria o menu do centro,
   então mostra só "WhatsApp" e fica do tamanho do texto. Exceção à regra dos 220×48. */
@media (min-width: 900px) and (max-width: 1023px) {
  .topo__wa { width: auto; }
  .topo__wa-extra { display: none; }
}
/* Desktop largo: o mapa ganha mais espaço que o cartão de horários */
@media (min-width: 1100px) {
  .chegar__grade { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); }
}

/* ---------- Entrada da página (uma só, discreta) ---------- */
/* Só no carregamento: os itens do herói sobem 8px e aparecem em sequência curta (~0,5s no total).
   Nada é animado ao rolar a página. */
.js-anim .hero__texto > *,
.js-anim .hero__logo {
  animation: subir .6s var(--ease) both;
}
.js-anim .hero__frase  { animation-delay: .06s; }
.js-anim .hero__desde  { animation-delay: .12s; }
.js-anim .hero__acoes  { animation-delay: .18s; }
.js-anim .hero__logo   { animation-name: surgir; animation-duration: .7s; }
@keyframes subir  { from { opacity: 0; transform: translateY(8px); } }
@keyframes surgir { from { opacity: 0; transform: scale(.96); } }

/* "Ler mais": o trecho aberto entra com um fade curto, sem empurrar o layout */
.js-anim .historia__mais:not([hidden]) { animation: subir .35s var(--ease) both; }

/* ---------- Movimento reduzido ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .btn:hover,
  .btn:active,
  .btn:hover .icone,
  .galeria__item:hover .galeria__foto,
  .galeria__item:hover .galeria__placeholder { transform: none; }
  /* Sem movimento automático não há loop: esconde as cópias para nenhuma foto se repetir ao rolar */
  .galeria__item[aria-hidden="true"] { display: none; }
}

/* ---------- Página 404 (404.html) ---------- */
/* Sem a barra de baixo nem o cabeçalho: só o recado e o caminho de volta, no centro da tela */
.pagina-erro { padding-bottom: 0; }
.erro {
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: var(--e4);
  padding: var(--e7) var(--lateral);
  text-align: center;
}
.erro__logo { width: 140px; height: auto; }
.erro__titulo { font-size: var(--t-titulo); font-weight: 800; color: var(--vermelho); }
.erro__texto { color: var(--suave); margin-bottom: var(--e2); }
