/* ACAMPI: estilos comuns a todas as páginas.
   Base para celular; as media queries (min-width) ampliam para tablet e computador. */

@font-face { font-family: "Inter"; font-weight: 400 600; font-display: swap; src: url("../fonts/inter.woff2") format("woff2"); }
@font-face { font-family: "Outfit"; font-weight: 600; font-display: swap; src: url("../fonts/outfit.woff2") format("woff2"); }

:root {
  color-scheme: light;

  --marinho: #08113c;
  --marinho-2: #17225a;
  --verde: #1f6b45;
  --verde-escuro: #17543a;
  --verde-logo: #22b14c;
  --amarelo: #ffc600;
  --fundo: #f8f7f2;
  --branco: #ffffff;
  --texto: #1b2440;
  --texto-2: #535b73;
  --linha: #dcdcd4;
  --verde-claro: #e5efe8;
  --erro: #a62b1f;

  --titulo: "Outfit", "Segoe UI", system-ui, sans-serif;
  --corpo: "Inter", "Segoe UI", system-ui, sans-serif;

  --raio: 10px;
  --lateral: 16px;
  --secao: 56px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--fundo);
  color: var(--texto);
  font: 400 1rem/1.6 var(--corpo);
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, p, ul, ol, dl, dd, figure, fieldset { margin: 0; padding: 0; }
ul, ol { list-style: none; }
fieldset { border: 0; min-width: 0; }
legend { padding: 0; }
h1, h2, h3 {
  font-family: var(--titulo);
  font-weight: 600;
  line-height: 1.15;
  color: var(--marinho);
  text-wrap: balance;
}
h1 { font-size: clamp(2rem, 1.5rem + 2.2vw, 3rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.5rem, 1.3rem + 1vw, 2.125rem); letter-spacing: -.01em; }
h3 { font-size: 1.125rem; }
/* Nomes ou links muito longos quebram em vez de passar da tela */
h1, h2, h3, p, dd, .migalhas li { min-width: 0; overflow-wrap: anywhere; }
a { color: var(--verde); text-underline-offset: 3px; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--amarelo); outline-offset: 2px; box-shadow: 0 0 0 2px var(--marinho); }

.caixa { width: 100%; max-width: 1240px; margin-inline: auto; padding-inline: var(--lateral); }
.secao { padding-block: var(--secao); }
.secao-topo {
  display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between;
  gap: 8px 24px; margin-bottom: 24px;
}
.oculto-visual {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap;
}
.pular {
  position: absolute; left: 16px; top: -80px; z-index: 100;
  padding: 12px 16px; background: var(--branco); color: var(--marinho);
}
.pular:focus { top: 8px; }
.icone { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* Botões */
.botao {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 10px 20px;
  border: 1px solid transparent; border-radius: var(--raio);
  background: var(--verde); color: var(--branco);
  font-weight: 600; line-height: 1.2; text-decoration: none;
  transition: background-color .15s;
}
.botao:hover { background: var(--verde-escuro); }
.botao-contorno { background: transparent; border-color: #8a91a3; color: var(--marinho); }
.botao-contorno:hover { background: var(--branco); border-color: var(--marinho); }
.botao-amarelo { background: var(--amarelo); color: var(--marinho); }
.botao-amarelo:hover { background: #ffd747; }

/* Cabeçalho */
.cabecalho { position: relative; z-index: 30; background: var(--marinho); border-bottom: 4px solid var(--amarelo); }
.cabecalho .caixa { display: flex; align-items: center; justify-content: space-between; min-height: 68px; }
.logo img { width: 128px; }
.menu-botao {
  display: grid; place-items: center; width: 48px; height: 48px; margin-right: -12px;
  border: 0; background: none; color: var(--branco);
}
.menu-botao .icone { width: 28px; height: 28px; }
.menu {
  display: none; position: absolute; inset: 100% 0 auto;
  padding: 8px var(--lateral) 16px;
  background: var(--marinho); border-bottom: 4px solid var(--amarelo);
}
.menu.aberto { display: block; }
.menu a {
  display: flex; align-items: center; min-height: 48px;
  color: var(--branco); font-weight: 500; text-decoration: none;
}
.menu a:hover, .menu a[aria-current] { color: var(--amarelo); }

/* Busca */
.busca { display: grid; gap: 12px; padding: 16px; border-radius: var(--raio); background: var(--branco); color: var(--texto); }
.campo { position: relative; min-width: 0; }
.campo label, .rotulo { display: block; margin-bottom: 6px; font-size: .875rem; font-weight: 600; color: var(--marinho); }
.campo input, .campo textarea, .campo select, .ordenar select {
  width: 100%; min-height: 48px; padding: 10px 14px;
  border: 1px solid #8a91a3; border-radius: 8px; background: var(--branco);
}
.campo input::placeholder, .campo textarea::placeholder { color: #697087; opacity: 1; }
.campo textarea { display: block; min-height: 132px; resize: vertical; }
.busca .botao { align-self: end; }
.sugestoes {
  position: absolute; inset: calc(100% + 4px) 0 auto; z-index: 20;
  max-height: 320px; overflow-y: auto; padding: 6px;
  border: 1px solid var(--linha); border-radius: 8px; background: var(--branco);
  box-shadow: 0 12px 32px rgb(8 17 60 / .18);
}
.sugestoes li {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  min-height: 44px; padding: 8px 10px; border-radius: 6px; cursor: pointer;
}
.sugestoes li span { color: var(--texto-2); font-size: .8125rem; }
.sugestoes li:hover, .sugestoes li[aria-selected="true"] { background: var(--verde-claro); }

/* Início: destaque */
.destaque { position: relative; background: var(--marinho); }
.destaque-foto { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.destaque::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgb(8 17 60 / .30), rgb(8 17 60 / .62) 45%, rgb(8 17 60 / .88));
}
.destaque .caixa { position: relative; z-index: 2; padding-block: 20px 32px; }
.destaque h1 { color: var(--branco); font-size: clamp(2.5rem, 1.7rem + 4vw, 4.5rem); max-width: 12ch; }
.destaque p { max-width: 42ch; margin-block: 14px 24px; color: var(--branco); font-size: 1.125rem; }
.atalhos { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 20px; margin-top: 12px; color: var(--branco); font-size: .9375rem; }
.atalhos a { display: inline-flex; align-items: center; min-height: 44px; color: var(--branco); font-weight: 600; }
.atalhos a:hover { color: var(--amarelo); }

/* Cards de camping */
.grade { display: grid; gap: 32px 24px; }
.grade > * { min-width: 0; }
.grade-inicio { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 14px; }
.grade-inicio .card-resumo { display: none; }
.card { position: relative; }
.card-foto { overflow: hidden; aspect-ratio: 4 / 3; border-radius: var(--raio); background: var(--verde-claro); }
.card-foto img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.card:hover .card-foto img { transform: scale(1.035); }
.card-sem-foto { display: grid; place-content: center; justify-items: center; gap: 8px; color: var(--verde); font-size: .875rem; }
.card-sem-foto svg { width: 64px; height: 64px; fill: var(--verde-logo); }
.card h3 { margin-top: 12px; }
.card h3 a { color: inherit; text-decoration: none; }
.card h3 a::after { content: ""; position: absolute; inset: 0; border-radius: var(--raio); }
.card:hover h3 a { text-decoration: underline; }
.card h3 a:focus-visible { outline: 0; box-shadow: none; }
.card h3 a:focus-visible::after { outline: 3px solid var(--verde); outline-offset: 4px; }
.card-local { color: var(--texto-2); font-size: .9375rem; }
.card-resumo { margin-top: 6px; font-size: .9375rem; line-height: 1.5; }
.nota { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 6px; margin-top: 4px; font-size: .875rem; color: var(--texto-2); }
.nota strong { color: var(--texto); }
.estrela { width: 18px; height: 18px; flex: none; fill: var(--amarelo); stroke: #8c6500; stroke-width: 1.2; stroke-linejoin: round; }
.estrela.vazia { fill: none; }
.estrelas-fixas { display: flex; gap: 2px; }

/* Início: mapa */
.explorar { background: var(--marinho); color: var(--branco); }
.explorar h2, .explorar h3 { color: var(--branco); }
.explorar-grade { display: grid; gap: 32px; }
.explorar-grade > * { min-width: 0; }
.explorar-intro { max-width: 48ch; margin-top: 10px; color: #d5daec; }
.mapa { width: 100%; max-width: 520px; margin-inline: auto; }
.mapa svg { width: 100%; height: auto; overflow: visible; }
.mapa .shape { fill: var(--verde); stroke: var(--marinho); stroke-width: 1.2; transition: fill .15s; }
.mapa circle { fill: var(--verde-escuro); stroke: var(--branco); stroke-width: .8; transition: fill .15s; }
.mapa text { fill: var(--branco); font: 600 11px var(--corpo); pointer-events: none; }
.mapa a:hover .shape, .mapa a:hover circle, .mapa a.ativo .shape, .mapa a.ativo circle { fill: var(--amarelo); }
.mapa a:hover text, .mapa a.ativo text { fill: var(--marinho); }
.mapa-nome { min-height: 2rem; font: 600 1.25rem/1.4 var(--titulo); color: var(--amarelo); text-align: center; }
.regioes { display: grid; margin-top: 24px; }
.regiao { padding-block: 14px; border-top: 1px solid #36416f; }
.regiao h3 { font-size: 1rem; }
.regiao ul { display: flex; flex-wrap: wrap; gap: 0 20px; }
.regiao a { display: inline-flex; align-items: center; min-height: 44px; color: #d5daec; text-decoration: none; }
.regiao a:hover, .regiao a.ativo { color: var(--amarelo); text-decoration: underline; }

/* Início: notícias */
.noticias { display: grid; gap: 28px; }
.noticias > * { min-width: 0; }
.noticia { position: relative; }
.noticia a { color: inherit; text-decoration: none; }
.noticia a::after { content: ""; position: absolute; inset: 0; }
.noticia:hover a { text-decoration: underline; }
.noticia img { width: 100%; border-radius: var(--raio); object-fit: cover; }
.noticia-principal img { aspect-ratio: 16 / 9; }
.noticia-principal h3 { margin-top: 14px; font-size: 1.5rem; }
.noticias-lista { display: grid; align-content: start; gap: 20px; }
.noticias-lista .noticia { display: grid; grid-template-columns: 124px minmax(0, 1fr); align-items: center; gap: 16px; }
.noticias-lista img { aspect-ratio: 4 / 3; }
.noticia-logo img { object-fit: contain; background: var(--marinho); }

/* Convite para indicar um camping */
.indicar .caixa { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 32px; }
.indicar p { max-width: 55ch; margin-top: 8px; color: var(--texto-2); }

/* Notícias e páginas simples */
.pagina-topo { max-width: 68ch; margin-block: 8px 28px; }
.pagina-topo p { margin-top: 10px; color: var(--texto-2); font-size: 1.125rem; }
.pagina-simples { padding-bottom: var(--secao); }
.pagina-404 { padding-top: var(--secao); }
.pagina-404 .busca { border: 1px solid var(--linha); }
.grade-noticias-lista { padding-bottom: var(--secao); }
.noticia-card img { aspect-ratio: 16 / 9; }
.noticia-card :is(h2, h3) { margin-top: 12px; font-size: 1.25rem; }
.artigo { max-width: 760px; margin: 8px auto 40px; }
.artigo-autor { margin-block: 12px 24px; color: var(--texto-2); }
.artigo-texto { font-size: 1.125rem; line-height: 1.75; overflow-wrap: break-word; }
.artigo-texto::after { content: ""; display: block; clear: both; }
.artigo-texto p { margin-block: 0 1.1em; }
.artigo-texto :is(ul, ol) { margin-block: 0 1.1em; padding-left: 1.4em; list-style: revert; }
.artigo-texto h2 { margin-block: 1.4em .5em; }
.artigo-texto h3 { margin-block: 1.3em .4em; font-size: 1.25rem; }
.artigo-texto img { max-width: 100%; height: auto; border-radius: var(--raio); }
.artigo-texto :is(img.esq, img.dir) { width: 100%; margin-block: 8px 20px; }
.artigo-texto #foto-res { margin-block: 20px; }
.artigo-texto :is(table, iframe, video) { max-width: 100%; }
.corrido :is(ul, ol) { padding-left: 1.4em; list-style: revert; }

/* Anúncios
   Cada posição tem um tamanho fixo por largura de tela. Assim o espaço já fica
   reservado e a página não pula quando o anúncio carrega.
   Telas com menos de 352px usam 280px de largura, para o anúncio não passar da tela.
   Os códigos dos blocos ficam em inc/anuncios.php. */
.anuncio { display: flex; justify-content: center; min-width: 0; }
.anuncio .adsbygoogle { display: block; flex: none; width: 280px; height: 100px; }
.anuncio:is(.anuncio-inicio-meio, .anuncio-busca-lista, .anuncio-camping-rodape, .anuncio-noticia-fim) .adsbygoogle { height: 250px; }
/* Sem anúncio disponível: no topo o espaço continua reservado; mais abaixo, ele fecha */
.anuncio .adsbygoogle[data-ad-status="unfilled"] { visibility: hidden; }
.anuncio:is(.anuncio-inicio-meio, .anuncio-busca-lista, .anuncio-camping-rodape, .anuncio-noticia-fim):has([data-ad-status="unfilled"]) { display: none; }
.anuncio-busca-topo, .anuncio-noticia-topo { margin-bottom: 24px; }
.grade .anuncio { grid-column: 1 / -1; }
.destaque-topo { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; }
.destaque-topo > * { min-width: 0; }
.camping-cabeca { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; margin-bottom: 24px; }
.camping-cabeca .camping-topo { min-width: 0; margin-bottom: 0; }

@media (min-width: 352px) {
  .anuncio .adsbygoogle { width: 320px; }
  .anuncio:is(.anuncio-inicio-meio, .anuncio-busca-lista, .anuncio-camping-rodape, .anuncio-noticia-fim) .adsbygoogle { width: 300px; }
}
@media (min-width: 640px) {
  .anuncio .adsbygoogle { width: 468px; height: 60px; }
}
@media (min-width: 800px) {
  .anuncio:is(.anuncio-inicio-meio, .anuncio-busca-lista, .anuncio-camping-rodape, .anuncio-noticia-fim, .anuncio-busca-topo, .anuncio-noticia-topo) .adsbygoogle { width: 728px; height: 90px; }
}
@media (min-width: 900px) {
  .destaque-topo { grid-template-columns: minmax(0, 1fr) 300px; align-items: end; gap: 40px; margin-bottom: 32px; }
  .destaque-texto { grid-area: 1 / 1; }
  .destaque-texto p { margin-bottom: 0; }
  .anuncio-inicio-topo { grid-area: 1 / 2; }
  .anuncio.anuncio-inicio-topo .adsbygoogle { width: 300px; height: 250px; }
}
/* Com a coluna de filtros ao lado, a lista só comporta 728px a partir de 1072px */
@media (min-width: 1024px) and (max-width: 1071px) {
  .anuncio:is(.anuncio-busca-topo, .anuncio-busca-lista) .adsbygoogle { width: 468px; height: 60px; }
}
@media (min-width: 1024px) {
  .camping-cabeca { grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 32px; }
}
@media (min-width: 1200px) {
  .anuncio.anuncio-camping-topo .adsbygoogle { width: 728px; height: 90px; }
}

/* Rodapé */
.rodape { background: var(--marinho); border-top: 4px solid var(--amarelo); color: #d5daec; }
.rodape-grade { display: grid; gap: 24px; padding-block: 40px 24px; }
.rodape p { max-width: 38ch; margin-top: 12px; }
.rodape h2 { margin-bottom: 4px; color: var(--branco); font-size: 1rem; letter-spacing: 0; }
.rodape li a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; color: #d5daec; text-decoration: none; }
.rodape li a:hover { color: var(--amarelo); text-decoration: underline; }

/* Página de busca */
.faixa-busca { background: var(--marinho-2); }
.faixa-busca .caixa { padding-block: 16px; }
.faixa-busca .busca { padding: 0; background: none; }
.faixa-busca .campo label { color: var(--branco); }
.migalhas { padding-block: 12px; font-size: .875rem; color: var(--texto-2); }
.migalhas ol { display: flex; flex-wrap: wrap; align-items: center; gap: 0 8px; }
.migalhas li + li::before { content: "/"; margin-right: 8px; color: #8a91a3; }
.migalhas a { display: inline-flex; align-items: center; min-height: 44px; color: var(--texto-2); }
.resultados-layout { display: grid; gap: 32px; padding-bottom: var(--secao); }
.resultados-layout > * { min-width: 0; }
.resultados-topo { margin-bottom: 20px; }
.resultados-topo p { margin-top: 6px; color: var(--texto-2); }
.ferramentas { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 24px; }
.ferramentas .botao { flex: 1 1 130px; }
.ordenar { flex: 1 1 180px; }
.lateral-filtros { display: none; }
.filtros { display: grid; gap: 24px; }
.filtros h2 { font-size: 1.25rem; }
.opcao { display: flex; align-items: center; gap: 10px; min-height: 44px; cursor: pointer; }
.opcao input { width: 20px; height: 20px; margin: 0; flex: none; accent-color: var(--verde); }
.filtros-botoes { display: grid; gap: 12px; }
.gaveta {
  width: 100%; max-width: none; max-height: 88dvh; margin: auto 0 0; padding: 20px var(--lateral) max(20px, env(safe-area-inset-bottom));
  border: 0; border-radius: 16px 16px 0 0; background: var(--fundo); color: var(--texto);
}
.gaveta::backdrop, .visor::backdrop { background: rgb(8 17 60 / .7); }
.gaveta-fechar { display: flex; justify-content: flex-end; }
.botao-icone {
  display: grid; place-items: center; width: 48px; height: 48px; padding: 0;
  border: 0; border-radius: 50%; background: var(--branco); color: var(--marinho);
}
.sem-resultado { margin-bottom: 28px; padding: 20px; border-radius: var(--raio); background: var(--verde-claro); }
.sem-resultado h2 { font-size: 1.25rem; }
.sem-resultado p { margin-top: 6px; }
.paginas { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 40px; }
.paginas a {
  min-width: 48px; min-height: 48px; padding: 8px 14px;
  border: 1px solid #8a91a3; border-radius: 8px; background: var(--branco); color: var(--texto);
  font-weight: 600; text-align: center; text-decoration: none;
}
.paginas span { align-self: center; }
.paginas a[aria-current] { border-color: var(--verde); background: var(--verde); color: var(--branco); }

/* Página do camping */
.camping-topo { display: grid; gap: 8px; margin-bottom: 20px; }
.camping-topo .card-local { font-size: 1.0625rem; }
.camping-topo .nota { font-size: 1rem; }
.galeria { position: relative; }
.galeria-fotos {
  display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x mandatory;
  margin-inline: calc(-1 * var(--lateral)); scrollbar-width: none;
}
.galeria-fotos::-webkit-scrollbar { display: none; }
.galeria-fotos button { flex: 0 0 92%; min-width: 0; scroll-snap-align: center; padding: 0; border: 0; background: var(--verde-claro); }
.galeria-fotos img { width: 100%; height: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.galeria-1 .galeria-fotos button { flex-basis: 100%; }
.galeria-fotos button:focus-visible { outline-offset: -4px; }
.galeria-ver { position: absolute; right: 0; bottom: 12px; background: var(--branco); color: var(--marinho); }
.galeria-ver:hover { background: var(--verde-claro); }
.camping-layout { display: grid; gap: 40px; padding-block: 32px var(--secao); }
.camping-layout > * { min-width: 0; }
.camping-texto { display: grid; gap: 40px; }
.camping-texto > * { min-width: 0; }
.camping-texto section > h2 { margin-bottom: 14px; font-size: 1.5rem; }
.corrido { max-width: 66ch; font-size: 1.0625rem; overflow-wrap: anywhere; }
.corrido :is(p, ul, ol) + :is(p, ul, ol) { margin-top: 14px; }
.contato { padding: 20px; border: 1px solid var(--linha); border-radius: var(--raio); background: var(--branco); }
.contato h2 { font-size: 1.25rem; }
.contato dl { display: grid; gap: 14px; margin-block: 16px 20px; }
.contato dt { color: var(--texto-2); font-size: .875rem; }
.contato dd { overflow-wrap: anywhere; }
.contato-acoes { display: grid; gap: 10px; }
.redes { display: flex; flex-wrap: wrap; gap: 0 20px; margin-top: 10px; }
.redes a { display: inline-flex; align-items: center; min-height: 44px; }

.voto { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; padding: 20px; border-radius: var(--raio); background: var(--verde-claro); }
.voto h3 + p { color: var(--texto-2); font-size: .9375rem; }
.dar-nota { display: flex; }
.dar-nota label { position: relative; display: grid; place-items: center; width: 48px; height: 48px; cursor: pointer; }
.dar-nota input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.dar-nota .estrela { width: 32px; height: 32px; fill: var(--branco); }
.dar-nota label:has(input:checked) .estrela,
.dar-nota label:has(~ label input:checked) .estrela { fill: var(--amarelo); }
.dar-nota label:has(input:focus-visible) { outline: 3px solid var(--verde); border-radius: 8px; }
@media (hover: hover) {
  .dar-nota:hover label .estrela { fill: var(--amarelo); }
  .dar-nota label:hover ~ label .estrela { fill: var(--branco); }
}
.retorno { flex-basis: 100%; font-weight: 600; color: var(--verde-escuro); }
.retorno:empty { display: none; }
.retorno-erro { color: var(--erro); }
.g-recaptcha { min-height: 78px; }

.comentario { padding-block: 20px; border-top: 1px solid var(--linha); }
.comentario h3 { margin-top: 8px; }
.comentario p { max-width: 66ch; margin-top: 6px; }
.comentario .autor { color: var(--texto-2); font-size: .9375rem; }
.formulario { display: grid; gap: 18px; max-width: 680px; }
.formulario > * { min-width: 0; }
.formulario .botao { justify-self: start; }
.ajuda { margin-top: 4px; color: var(--texto-2); font-size: .875rem; }

.barra-acoes {
  position: fixed; inset: auto 0 0; z-index: 25;
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
  padding: 10px var(--lateral) max(10px, env(safe-area-inset-bottom));
  border-top: 1px solid var(--linha); background: var(--branco);
}
.barra-acoes .botao { padding-inline: 8px; white-space: nowrap; }
.barra-acoes .botao:only-child { grid-column: 1 / -1; }
.com-barra .rodape { padding-bottom: 80px; }

.visor { width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: #050a24; color: var(--branco); }
.visor[open] { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; }
.visor-topo, .visor-base { display: flex; align-items: center; justify-content: space-between; padding: 10px var(--lateral); }
.visor-base { justify-content: center; gap: 16px; }
.visor-fotos { display: flex; min-width: 0; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.visor-fotos figure { display: grid; flex: 0 0 100%; min-width: 0; height: 100%; place-items: center; scroll-snap-align: center; }
.visor-fotos img { width: 100%; height: 100%; object-fit: contain; }

/* Tablet */
@media (min-width: 640px) {
  :root { --lateral: 24px; --secao: 72px; }
  .grade-resultados { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grade-inicio { gap: 32px 24px; }
  .grade-inicio .card-resumo { display: block; }
  .rodape-grade { grid-template-columns: 2fr 1fr 1fr; }
  .ferramentas .botao, .ordenar { flex: 0 1 240px; }
  .formulario-dupla { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
  .grade-noticias { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grade-noticias-lista { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .artigo-texto img.esq { float: left; width: 40%; margin: 6px 24px 16px 0; }
  .artigo-texto img.dir { float: right; width: 40%; margin: 6px 0 16px 24px; }
  .galeria-fotos button { flex-basis: 70%; }
}

@media (min-width: 768px) {
  .menu-botao { display: none; }
  .menu { display: block; position: static; padding: 0; border: 0; }
  .menu ul { display: flex; gap: 28px; }
  .logo img { width: 150px; }
  .cabecalho .caixa { min-height: 80px; }
  .busca { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) auto; }
  .destaque .caixa { padding-block: clamp(32px, 9vh, 96px) 40px; }
  .destaque::after { background: linear-gradient(180deg, rgb(8 17 60 / .20), rgb(8 17 60 / .45) 45%, rgb(8 17 60 / .85)); }
  .noticias { grid-template-columns: 1.25fr 1fr; gap: 40px; }

  .galeria-fotos {
    display: grid; grid-template: repeat(3, minmax(0, 1fr)) / 2.35fr 1fr;
    height: clamp(400px, 46vw, 580px); margin-inline: 0; overflow: hidden; border-radius: var(--raio);
  }
  .galeria-fotos button:first-child { grid-row: 1 / -1; }
  .galeria-fotos button:nth-child(n + 5) { display: none; } /* as demais aparecem ao ampliar */
  .galeria-1 .galeria-fotos { grid-template: minmax(0, 1fr) / minmax(0, 1fr); }
  .galeria-2 .galeria-fotos { grid-template: minmax(0, 1fr) / 1fr 1fr; }
  .galeria-3 .galeria-fotos { grid-template: repeat(2, minmax(0, 1fr)) / 2fr 1fr; }
  .galeria-fotos img { aspect-ratio: auto; }
  .galeria-ver { right: 12px; }
}

/* Computador */
@media (min-width: 1024px) {
  :root { --secao: 88px; }
  .grade-inicio { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .explorar-grade { grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
  .resultados-layout { grid-template-columns: 232px minmax(0, 1fr); gap: 48px; }
  .lateral-filtros { display: block; }
  .abrir-filtros { display: none; }
  .camping-layout { grid-template: auto 1fr / minmax(0, 1fr) 344px; gap: 40px 72px; }
  .camping-lateral { grid-area: 1 / 2 / 3 / 3; }
  .camping-opinioes { grid-area: 2 / 1 / 3 / 2; }
  .contato { position: sticky; top: 24px; }
  .barra-acoes { display: none; }
  .com-barra .rodape { padding-bottom: 0; }
}
@media (min-width: 1200px) {
  .grade-resultados { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* Telas largas e baixas (notebooks): mantém a busca na primeira dobra */
@media (min-width: 768px) and (max-height: 780px) {
  .destaque .caixa { padding-block: 28px; }
  .destaque h1 { font-size: 3.25rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
