/* ================================================================
   Explora Caraíva — "o quadro do dia"
   Mundo: lousa de pousada (ardósia escura) + giz quente + 1 amarelo
   de lanterna. Pigmento chapado, sem gradientes. Ilustração a giz
   (SVG de traço) é a imagética; papel só nas recadinhas.
   ================================================================ */

@font-face {
  font-family: "Caveat";
  src: url("fonts/caveat-var.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}
@font-face {
  font-family: "Atkinson Hyperlegible";
  src: url("fonts/atkinson-400.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Atkinson Hyperlegible";
  src: url("fonts/atkinson-700.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}

:root {
  --lousa: #20302b;          /* ardósia do quadro */
  --lousa-2: #16211d;        /* painel mais fundo */
  --lousa-3: #2a3d36;        /* painel levantado */
  --giz: #f6f2e6;            /* giz quente */
  --giz-meio: rgba(246, 242, 230, 0.86);
  --giz-fraco: rgba(246, 242, 230, 0.4);
  --lanterna: #f2c14e;       /* amarelo lanterna — ação */
  --mare: #86cfc4;           /* giz turquesa — água */
  --papel: #f6efdd;          /* recadinho */
  --tinta: #37332a;          /* tinta do papel */
  --raio: 10px;             /* cantos de cartões e painéis */
  --titulo-card: 1.9rem;     /* título de item (Caveat) */
  --fonte: "Atkinson Hyperlegible", "Segoe UI", system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .onda path, .tick-risco, .traco, .seta path { animation: none !important; transition: none !important; }
}

body {
  background: var(--lousa);
  color: var(--giz);
  font-family: var(--fonte);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* grão de giz/lousa sobre tudo */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 40;
  opacity: 0.03;
  background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="180" height="180"><filter id="n"><feTurbulence type="fractalNoise" baseFrequency="0.9" numOctaves="2"/></filter><rect width="180" height="180" filter="url(%23n)"/></svg>');
}

/* a moldura de giz do quadro */
body::before {
  content: "";
  position: fixed;
  inset: 12px;
  border: 2px solid var(--giz-fraco);
  border-radius: 6px;
  pointer-events: none;
  z-index: 39;
}

/* superfícies do navegador vestidas */
::selection { background: var(--lanterna); color: var(--lousa); }
html { scrollbar-color: var(--lousa-3) transparent; scrollbar-width: thin; }
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-thumb { background: var(--lousa-3); border-radius: 5px; }
::-webkit-scrollbar-track { background: transparent; }
a, button, input { caret-color: var(--lanterna); }

:focus-visible {
  outline: 3px dashed var(--lanterna);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 50;
  background: var(--lanterna);
  color: var(--lousa);
  font-weight: 700;
  padding: 10px 18px;
  border-radius: 0 0 var(--raio) var(--raio);
  text-decoration: none;
  transition: top 0.2s;
}
.skip:focus { top: 0; }

/* ============ topo ============ */
.topo {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 26px;
  padding: 14px clamp(18px, 4vw, 44px);
  background: rgba(22, 33, 29, 0.96);
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
  border-bottom: 1px solid var(--giz-fraco);
}

.marca {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: "Caveat", cursive;
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--giz);
  text-decoration: none;
  line-height: 1;
  letter-spacing: 0.01em;
}
.marca svg {
  width: 40px; height: 40px; flex: none; padding: 6px;
  color: var(--lanterna);
  background: rgba(242, 193, 78, 0.12);
  border: 1.5px solid rgba(242, 193, 78, 0.35);
  border-radius: 12px;
}
.marca em, .marca-pe em {
  font-style: normal;
  color: var(--mare);
}

.topo nav {
  display: flex;
  gap: 22px;
  margin-left: auto;
}
.topo nav a {
  color: var(--giz-meio);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
}
.topo nav a:hover { color: var(--lanterna); text-decoration: underline wavy var(--lanterna) 1.5px; text-underline-offset: 6px; }

.zap {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--lanterna);
  color: var(--lousa);
  font-weight: 700;
  text-decoration: none;
  border-radius: 999px;
  padding: 13px 26px;
  font-size: 1.05rem;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35), 0 1px 0 rgba(255, 255, 255, 0.25) inset;
  transition: transform 0.18s ease-out, box-shadow 0.18s ease-out;
}
.zap svg { width: 22px; height: 22px; flex: none; }
.zap:hover { transform: translateY(-2px) rotate(-0.6deg); box-shadow: 0 10px 24px rgba(0, 0, 0, 0.4); }
.zap:active { transform: translateY(0); }

.zap-mini { padding: 9px 18px; font-size: 0.95rem; }

/* ============ herói ============ */
.quadro-hero {
  position: relative;
  min-height: calc(100svh - 66px);
  display: flex;
  align-items: center;
  padding: clamp(40px, 7vh, 80px) clamp(20px, 6vw, 96px) 90px;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.85fr);
  gap: clamp(40px, 6vw, 90px);
  align-items: center;
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
}

.hero-letra h1 {
  font-family: "Caveat", cursive;
  font-weight: 700;
  font-size: clamp(3.2rem, 7.2vw, 6rem);
  line-height: 1.02;
  letter-spacing: -0.01em;
  max-width: 12ch;
}
.hero-letra h1::after {
  content: "";
  display: block;
  width: 240px;
  height: 12px;
  margin-top: 14px;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 240 12" preserveAspectRatio="none"><path d="M3 8c30-6 55 2 80-2s50-4 80 1 55 3 74-2" fill="none" stroke="%2386cfc4" stroke-width="4" stroke-linecap="round"/></svg>') no-repeat center / 100% 100%;
}

.hero-sub {
  margin-top: 26px;
  font-size: clamp(1.1rem, 1.6vw, 1.3rem);
  max-width: 52ch;
  color: var(--giz-meio);
}
.hero-sub strong { color: var(--giz); }

.hero-acao {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 34px;
}

.anotacao {
  font-family: "Caveat", cursive;
  font-size: 1.6rem;
  color: var(--mare);
  transform: rotate(-1.2deg);
  display: inline-block;
}

.anotacao-seta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  font-size: 1.5rem;
}
@media (max-width: 900px) {
  .anotacao-seta { font-size: 1.3rem; }
  .marca { font-size: 1.45rem; white-space: nowrap; }
}

/* bom saber */
.bom-saber {
  border: 2px solid var(--giz-fraco);
  border-radius: var(--raio);
  padding: clamp(22px, 2.6vw, 34px);
  background: var(--lousa-2);
  transform: rotate(0.5deg);
}
.bom-titulo {
  font-family: "Caveat", cursive;
  font-weight: 700;
  font-size: var(--titulo-card);
  color: var(--lanterna);
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
.bom-titulo svg { width: 30px; height: 30px; }
.saber-lista { list-style: none; }
.saber-lista li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 11px 0;
  border-bottom: 1.5px dashed var(--giz-fraco);
  font-size: 1rem;
  color: var(--giz-meio);
}
.saber-lista li:last-child { border-bottom: 0; }
.saber-lista svg { width: 30px; height: 30px; flex: none; color: var(--mare); }

/* onda divisória */
.onda {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 22px;
  width: 100%;
  height: 46px;
  color: var(--mare);
  opacity: 0.55;
}
.onda path { animation: respira 7s ease-in-out infinite alternate; }
@keyframes respira {
  from { transform: translateY(-3px); }
  to { transform: translateY(3px); }
}
@media (prefers-reduced-motion: reduce) {
  .onda path { animation: none; }
}

/* ============ seções ============ */
section { padding: clamp(70px, 10vh, 120px) clamp(20px, 6vw, 96px); }
section > h2 {
  font-family: "Caveat", cursive;
  font-weight: 700;
  font-size: clamp(2.4rem, 4.6vw, 3.6rem);
  line-height: 1.05;
  max-width: 24ch;
}
.secao-intro {
  margin-top: 16px;
  max-width: 62ch;
  color: var(--giz-meio);
  font-size: 1.1rem;
}

/* espaçamento: mais ar acima do título do que abaixo (título → intro 16, intro → lista 44+) */

/* --- listas --- */
.lista-passeios, .lista-transfer, .lista-vivencias {
  list-style: none;
  margin-top: 46px;
  border-top: 2px solid var(--giz-fraco);
}

.linha-passeio {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto auto;
  gap: 20px;
  align-items: center;
  padding: 22px 4px;
  border-bottom: 2px solid var(--giz-fraco);
}
.linha-passeio:hover { background: var(--lousa-2); }

.icone { width: 46px; height: 46px; color: var(--mare); flex: none; }
/* ilustrações dos passeios: grandes o bastante para ler o desenho */
.linha-passeio { grid-template-columns: 96px minmax(0, 1fr) auto; }
.linha-passeio .icone { width: 96px; height: 96px; }

.linha-passeio h4, .lista-transfer h3, .lista-vivencias h3 {
  font-family: "Caveat", cursive;
  font-weight: 700;
  font-size: var(--titulo-card);
  line-height: 1.1;
}
.linha-passeio p { color: var(--giz-meio); font-size: 1rem; max-width: 58ch; }

.tick { width: 40px; height: 40px; color: var(--lanterna); justify-self: end; }

.resolver-link {
  color: var(--lanterna);
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  white-space: nowrap;
}
.resolver-link:hover { text-decoration: underline wavy var(--lanterna) 1.5px; text-underline-offset: 6px; }

/* --- diagramas: só onde cabem sem rolar de lado --- */
.mapa-img { display: block; width: 100%; height: auto; border-radius: var(--raio); border: 2px solid var(--giz-fraco); }

/* --- mapa de destinos --- */
.mapa { margin-top: 70px; }
.mapa-titulo {
  font-family: "Caveat", cursive;
  font-size: var(--titulo-card);
  font-weight: 700;
  color: var(--giz-meio);
  transform: rotate(-1deg);
  margin-bottom: 4px;
}
.mapa-svg { width: 100%; height: auto; display: block; overflow: visible; }

.traco {
  stroke: var(--giz-meio);
  stroke-width: 3;
  stroke-linecap: round;
}
.traco-mar { stroke: var(--mare); stroke-width: 4; opacity: 0.85; }
.traco-rio { stroke: var(--mare); stroke-width: 3; }
.traco-rota { stroke: var(--lanterna); stroke-width: 3.4; stroke-dasharray: 1 14; opacity: 0.9; }
.traco-barco { stroke: var(--giz-meio); stroke-width: 2.6; }

.rotulo {
  font-family: "Caveat", cursive;
  font-size: 30px;
  fill: var(--giz);
  text-anchor: middle;
}
.rotulo-peq { font-size: 22px; fill: var(--giz-meio); }
.rotulo-sub { font-size: 19px; fill: var(--giz-meio); }

.ponto circle, .ponto path {
  fill: none;
  stroke: var(--giz);
  stroke-width: 2.6;
}
.ponto .coracaozinho { stroke: var(--lanterna); stroke-width: 3; }
.ponto text { font-family: "Caveat", cursive; font-size: 26px; fill: var(--giz); text-anchor: middle; }
.ponto-foco circle { stroke: var(--lanterna); stroke-width: 3; }
.ponto-foco text { fill: var(--lanterna); }
.ponto-aldeia path { stroke: var(--mare); fill: none; }
.ponto-aldeia text { fill: var(--mare); }

/* --- rota transfer --- */
.rota { margin-top: 50px; }
.rota-svg { width: 100%; height: auto; display: block; overflow: visible; }

.lista-transfer li {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  gap: 20px;
  align-items: center;
  padding: 22px 4px;
  border-bottom: 2px solid var(--giz-fraco);
}
.lista-transfer p { color: var(--giz-meio); font-size: 1rem; }

/* --- vivências --- */
.vivencias {
  background: var(--lousa-2);
  border-top: 2px solid var(--giz-fraco);
  border-bottom: 2px solid var(--giz-fraco);
  text-align: center;
}
.vivencias h2 { margin: 0 auto; }
.vivencias .secao-intro { margin-left: auto; margin-right: auto; }
.lista-vivencias {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(24px, 3.5vw, 48px);
  border-top: 0;
  margin-top: 50px;
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
  text-align: left;
}
.lista-vivencias li {
  border: 2px solid var(--giz-fraco);
  border-radius: var(--raio);
  padding: 26px;
  background: var(--lousa-3);
}
.lista-vivencias li:nth-child(1) { transform: rotate(-0.7deg); }
.lista-vivencias li:nth-child(2) { transform: rotate(0.6deg); }
.lista-vivencias li:nth-child(3) { transform: rotate(-0.4deg); }
.lista-vivencias h3 { font-size: var(--titulo-card); margin-top: 14px; }
.lista-vivencias p { color: var(--giz-meio); font-size: 1rem; margin-top: 6px; }
.lista-vivencias .icone { width: 42px; height: 42px; color: var(--lanterna); }

.zap-meio { margin-top: 44px; }

/* --- dicas --- */
.mural {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(22px, 3vw, 40px);
  margin-top: 52px;
  max-width: 1100px;
}
.notinha {
  background: var(--papel);
  color: var(--tinta);
  border-radius: 3px;
  padding: 26px 24px 30px;
  transform: rotate(var(--gira, 0deg));
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.38), 0 2px 5px rgba(0, 0, 0, 0.22);
  position: relative;
}
.notinha::before {
  content: "";
  position: absolute;
  top: -11px;
  left: 50%;
  width: 74px;
  height: 22px;
  transform: translateX(-50%) rotate(-2deg);
  background: rgba(242, 193, 78, 0.82);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.18);
}
.notinha h3 {
  font-family: "Caveat", cursive;
  font-weight: 700;
  font-size: var(--titulo-card);
  line-height: 1.05;
  margin-bottom: 8px;
}
.notinha p { font-size: 1rem; line-height: 1.55; }
.notinha-acao { margin-top: 10px; }
.notinha-acao a { color: var(--tinta); font-weight: 700; text-decoration: underline wavy rgba(55, 51, 42, 0.45) 1.5px; text-underline-offset: 5px; }
.notinha-acao a:hover { text-decoration-color: var(--tinta); }

/* o fato que decide: horário, maré, agendamento — em Atkinson, traço de cor diferente do adjetivo */
.fato-passeio { margin-top: 5px; color: var(--mare); font-size: 0.95rem; line-height: 1.5; }

.recado-zap { margin-top: 46px; font-size: 1.15rem; color: var(--giz-meio); }
.recado-zap a, .pe a {
  color: var(--lanterna);
  font-weight: 700;
  text-decoration: none;
}
.recado-zap a:hover, .pe a:hover { text-decoration: underline wavy var(--lanterna) 1.5px; text-underline-offset: 6px; }

/* --- fecho --- */
.fecho {
  text-align: center;
  padding-bottom: clamp(90px, 12vh, 140px);
}
.tick-grande { width: 54px; height: 54px; color: var(--lanterna); }
.fecho h2 {
  margin: 10px auto 0;
  font-size: clamp(2.8rem, 6vw, 4.6rem);
}
.fecho .fecho-sub {
  max-width: 54ch;
  margin: 16px auto 0;
  color: var(--giz-meio);
  font-size: 1.12rem;
}
.zap-grande { margin-top: 34px; padding: 17px 36px; font-size: 1.18rem; }
.fecho .anotacao { display: block; margin-top: 14px; }

/* ============ pé ============ */
.pe {
  text-align: center;
  padding: 44px 20px 54px;
  border-top: 2px solid var(--giz-fraco);
}
.marca-pe {
  font-family: "Caveat", cursive;
  font-weight: 700;
  font-size: 1.9rem;
}
.lema {
  font-family: "Caveat", cursive;
  color: var(--mare);
  font-size: 1.35rem;
  transform: rotate(-0.8deg);
}
.pe-info { margin-top: 10px; color: var(--giz-meio); font-size: 1rem; }

/* ============ giz: traço base das ilustrações ============ */
.cz {
  stroke: var(--mare);
  stroke-width: 2.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.cz-l { stroke: var(--lanterna); }
.cz-a { stroke: var(--giz-meio); }
.cz-d { stroke: var(--giz-fraco); stroke-width: 3; stroke-dasharray: 1 13; }

/* cena do herói: a vila desenhada no fundo */
.hero-cena {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: clamp(220px, 42vh, 400px);
  opacity: 0.32;
  pointer-events: none;
  z-index: 0;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 42%);
  mask-image: linear-gradient(to bottom, transparent, #000 42%);
}
.hero-cena .cz { stroke-width: 2.4; }

/* vinheta de giz que abre cada título */
.titulo-cena {
  display: block;
  width: clamp(108px, 12vw, 156px);
  color: var(--mare);
  margin-bottom: 12px;
}
.titulo-cena svg { display: block; width: 100%; height: auto; }
.vivencias .titulo-cena { margin: 0 auto 12px; }

/* ============ um dia em caraíva ============ */
.dia-linha {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(26px, 3.6vw, 54px);
  margin-top: 54px;
  max-width: 1180px;
}
.dia-linha h3 {
  font-family: "Caveat", cursive;
  font-weight: 700;
  font-size: var(--titulo-card);
  line-height: 1.1;
  margin-top: 2px;
}
.dia-linha > li > p:last-child { color: var(--giz-meio); font-size: 1rem; margin-top: 8px; }
.dia-hora {
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.02em;
  color: var(--lanterna);
  margin-top: 20px;
}

/* foto presa com fita adesiva no quadro */
.foto-presilga,
.postal {
  position: relative;
  background: var(--papel);
  border-radius: 2px;
  transform: rotate(var(--gira, 0deg));
  box-shadow: 0 16px 28px rgba(0, 0, 0, 0.42), 0 2px 6px rgba(0, 0, 0, 0.24);
  transition: transform 0.45s cubic-bezier(0.2, 0.7, 0.3, 1);
}
.foto-presilga { padding: 10px 10px 0; }
.foto-presilga::before,
.postal::before {
  content: "";
  position: absolute;
  top: -12px;
  left: 50%;
  width: 84px;
  height: 24px;
  transform: translateX(-50%) rotate(-2.5deg);
  background: rgba(242, 193, 78, 0.82);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}
.foto-presilga img,
.postal img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  filter: saturate(0.94) contrast(1.02);
}
.foto-presilga img { aspect-ratio: 4 / 3; }
.foto-presilga figcaption,
.postal figcaption {
  font-size: 0.875rem;
  line-height: 1.45;
  color: #6a6255;
  padding: 8px 4px 10px;
}
.foto-presilga:hover { transform: rotate(0deg) scale(1.015); }

.postal {
  padding: 12px 12px 0;
  max-width: min(880px, 100%);
  margin: 0 auto 46px;
}
.postal img { aspect-ratio: 16 / 9; }

/* ============ vídeos do perfil ============ */
.videos {
  margin: clamp(56px, 7vw, 86px) auto 0;
  max-width: 1100px;
}
.videos-titulo {
  font-family: "Caveat", cursive;
  font-weight: 700;
  font-size: var(--titulo-card);
  color: var(--lanterna);
}
.videos-nota { color: var(--giz-meio); font-size: 1rem; margin-top: 2px; }
.videos-nota a { color: var(--lanterna); font-weight: 700; text-decoration: none; }
.videos-nota a:hover { text-decoration: underline wavy var(--lanterna) 1.5px; text-underline-offset: 6px; }
.videos-grade {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(12px, 1.6vw, 22px);
  margin-top: 26px;
  text-align: left;
}
.reel {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px 14px 16px;
  border: 2px solid var(--giz-fraco);
  border-radius: var(--raio);
  background: var(--lousa-3);
  color: var(--giz);
  text-decoration: none;
  transition: border-color 0.2s, transform 0.2s;
}
.reel:hover, .reel:focus-visible { border-color: var(--lanterna); transform: translateY(-2px); }
.reel-tela {
  display: grid;
  place-items: center;
  aspect-ratio: 9 / 16;
  padding: 0;
  font: inherit;
  background-color: var(--lousa-2);
  border: 1.5px dashed var(--giz-fraco);
  border-radius: 6px;
  color: var(--lanterna);
  cursor: pointer;
}
.reel-tela[hidden] { display: none; }
.reel-tela:hover, .reel-tela:focus-visible { border-color: var(--lanterna); }
.reel-play { width: 60px; height: 60px; }
.reel-legenda {
  font-family: "Caveat", cursive;
  font-weight: 700;
  font-size: 1.45rem;
  line-height: 1.15;
}
.reel-fonte { font-size: 0.875rem; color: var(--giz-meio); text-decoration: none; }
.reel-fonte:hover { color: var(--lanterna); text-decoration: underline wavy var(--lanterna) 1.5px; text-underline-offset: 4px; }
.reel-aberto:hover { transform: none; }

/* player do reel: vídeo + barra de progresso, som, tela cheia e fechar */
.reel-player {
  position: relative;
  aspect-ratio: 9 / 16;
  border-radius: 6px;
  overflow: hidden;
  background: #000;
}
.reel-video { width: 100%; height: 100%; object-fit: cover; display: block; }
.rp-barra {
  position: absolute;
  inset: auto 0 0 0;
  padding: 0 2px 2px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.78));
}
.rp-progresso {
  width: 100%;
  height: 24px;
  margin: 0;
  display: block;
  accent-color: var(--lanterna);
  cursor: pointer;
}
.rp-botoes { display: flex; justify-content: space-between; }
.rp-btn {
  width: 44px;
  height: 40px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: none;
  color: #fff;
  cursor: pointer;
  filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.8));
}
.rp-btn svg { width: 22px; height: 22px; }
.rp-btn:hover, .rp-btn:focus-visible { background: rgba(255, 255, 255, 0.18); color: var(--lanterna); }
.rp-fechar {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}
.rp-fechar:hover, .rp-fechar:focus-visible { background: var(--lanterna); color: var(--lousa); }
.rp-btn:focus-visible, .rp-fechar:focus-visible, .rp-progresso:focus-visible { outline: 2px solid var(--lanterna); outline-offset: 2px; }
.reel-player:fullscreen { aspect-ratio: auto; height: 100%; border-radius: 0; }
.reel-player:fullscreen .reel-video { object-fit: contain; }

/* ============ revelação no scroll ============ */
.js .revela {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s ease-out, transform 0.7s cubic-bezier(0.2, 0.7, 0.3, 1);
}
.js .revela.visivel { opacity: 1; transform: none; }

/* ============ créditos ============ */
.creditos {
  margin: 18px auto 0;
  max-width: 72ch;
  font-size: 0.875rem;
  color: var(--giz-meio);
}
.creditos summary { display: inline-flex; align-items: center; min-height: 44px; cursor: pointer; color: var(--giz-meio); }
.creditos p { margin-top: 8px; line-height: 1.6; }

/* ============ responsivo ============ */
@media (max-width: 900px) {
  .dia-linha { grid-template-columns: 1fr; max-width: 520px; gap: 46px; }
  .hero-cena { height: 210px; opacity: 0.26; }
  .postal { margin-bottom: 34px; }
}

@media (prefers-reduced-motion: reduce) {
  .js .revela { opacity: 1; transform: none; transition: none; }
  .foto-presilga, .postal, .reel { transition: none; }
  .cz { transition: none !important; }
}

@media (max-width: 900px) {
  .topo nav { display: none; }
  .hero-grid { grid-template-columns: 1fr; gap: 44px; }
  .hero-letra h1 { max-width: 14ch; }
  .lista-vivencias, .mural { grid-template-columns: 1fr; max-width: 560px; }
  .linha-passeio { grid-template-columns: 76px minmax(0, 1fr); }
  .linha-passeio .icone { width: 76px; height: 76px; }
  .linha-passeio .resolver-link { grid-column: 2; }
  .resolver-link { grid-column: 2; justify-self: start; }
  .lista-transfer li { grid-template-columns: 44px minmax(0, 1fr); }
  .lista-transfer .resolver-link { grid-column: 2; }
  .quadro-hero { min-height: auto; padding-bottom: 110px; }
  body::before { inset: 8px; }
  .bom-saber { transform: none; }
}

/* janela baixa (notebook/janela reduzida): herói compacto e canoa erguida pra entrar na primeira tela */
@media (max-height: 700px) and (min-width: 901px) {
  .quadro-hero { min-height: 0; padding-top: 36px; padding-bottom: 64px; }
  .quadro-hero .hero-cena { top: 150px; bottom: auto; }
}

/* Ilustrações geradas por IA (public/ilustracoes) */
.hero-cena.hero-foto { object-fit: cover; object-position: right bottom; opacity: 0.9; }
.icone.icone-foto { border-radius: var(--raio); object-fit: cover; }
@media (max-width: 900px) { .hero-cena.hero-foto { opacity: 0.75; } }

/* telas estreitas: topo cabe em 320px */
@media (max-width: 420px) {
  .topo { gap: 10px; }
  .marca { font-size: 1.3rem; gap: 8px; }
  .marca svg { width: 34px; height: 34px; padding: 5px; border-radius: var(--raio); }
  .zap-mini { padding: 8px 14px; font-size: 0.9rem; }
  .zap-mini svg { width: 18px; height: 18px; }
}
@media (max-width: 360px) {
  .marca { font-size: 1.12rem; }
  .topo { padding-inline: 14px; }
}

/* a frase de apoio gruda no botão e o telefone lê melhor */
.zap:has(+ .anotacao) + .anotacao { font-size: 1.6rem; }

/* âncoras do menu não ficam escondidas sob o topo fixo */
section[id], .passeios, .dia, .transfer, .vivencias, .dicas { scroll-margin-top: 72px; }

/* topo padronizado: selo, menu e botão com a mesma altura (42px) */
.topo { align-items: center; }
.marca svg { width: 42px; height: 42px; padding: 7px; box-sizing: border-box; }
.zap-mini { height: 42px; padding: 0 20px; box-sizing: border-box; }
.topo nav a { line-height: 42px; }
@media (max-width: 420px) {
  .marca svg { width: 36px; height: 36px; padding: 6px; }
  .zap-mini { height: 36px; padding: 0 14px; }
}

/* vídeos: 10 reels com capa do post, 9:16 */
.reel { padding: 10px 10px 12px; }
.reel-tela { background-size: cover; background-position: center; position: relative; }
.reel-tela .reel-play { color: #fff; filter: drop-shadow(0 2px 6px rgba(0,0,0,.6)); }
.reel-legenda { font-size: 1.2rem; }
@media (max-width: 900px) {
  .videos-grade { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 520px; margin-inline: auto; }
}

/* topo respira dentro da moldura de giz (a moldura fica a 12px da borda) */
.topo { padding: 30px clamp(30px, 4.5vw, 56px); }
section[id] { scroll-margin-top: 108px; }
@media (max-width: 900px) { .topo { padding: 26px; } }
@media (max-width: 420px) { .topo { padding: 22px; } }
@media (max-width: 360px) { .topo { padding-inline: 20px; } }

/* ============ contraste e mobile (ajuste) ============ */
/* fundos alternados separam as seções */
.linha-passeio:hover { background: var(--lousa-3); }

/* seções de areia clara: mesmas regras, paleta invertida por variáveis */
.transfer, .dia {
  --lousa: #f6efe8;
  --lousa-2: #ece3d4;
  --lousa-3: #e2d7c3;
  --giz: #1b2a3a;
  --giz-meio: rgba(27, 42, 58, 0.84);
  --giz-fraco: rgba(27, 42, 58, 0.3);
  --lanterna: #5a5c20;
  --mare: #2b6d88;
  background: var(--lousa);
  color: var(--giz);
}

/* botão de WhatsApp fixo: só no celular */
.fab-zap { display: none; }

/* o texto do herói nunca disputa com a ilustração
   (a tela é mais escura que o traço: gradiente declina antes da canoa) */
.quadro-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(90deg, var(--lousa) 12%, rgba(32, 48, 43, 0.45) 45%, rgba(32, 48, 43, 0) 72%);
}

/* prova de autoridade e telefone clicável */
.hero-prova { margin-top: 18px; max-width: 52ch; font-size: 1rem; color: var(--giz-meio); }
.hero-prova a { color: var(--lanterna); font-weight: 700; text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; }
.hero-prova a:hover { text-decoration: underline wavy var(--lanterna) 1.5px; text-underline-offset: 6px; }
a.anotacao { text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
.fecho a.anotacao { display: flex; justify-content: center; }
.fab-zap { transition: opacity 0.2s ease-out, transform 0.2s ease-out; }
.fab-zap.fab-oculto { opacity: 0; visibility: hidden; transform: translateY(12px); }
@media (prefers-reduced-motion: reduce) { .fab-zap { transition: none; } }

/* tablet: 3 colunas só a partir de 700px */
@media (min-width: 701px) and (max-width: 900px) {
  .dia-linha { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 760px; }
  .lista-vivencias, .mural { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 760px; }
}

@media (max-width: 900px) {
  /* sem gradiente pesado no rodapé: era ele que apagava a canoa; miolo um pouco mais fechado protege o texto sobre a areia */
  .quadro-hero::after { background: linear-gradient(to bottom, rgba(32, 48, 43, 0.42), rgba(32, 48, 43, 0.3) 60%, rgba(32, 48, 43, 0) 92%); }

  /* topo compacto + menu em faixa rolável */
  .topo { flex-wrap: wrap; gap: 8px 12px; padding: 12px 18px 0; }
  .topo nav {
    display: flex;
    order: 3;
    flex: 1 0 100%;
    justify-content: space-between;
    gap: 0;
  }
  .topo nav a { line-height: 44px; padding: 0 4px; font-size: 0.9rem; color: var(--giz); }
  .zap-mini { display: none; }
  section[id] { scroll-margin-top: 112px; }

  /* moldura mais fina para sobrar tela */
  body::before { inset: 4px; }
  section { padding-left: 22px; padding-right: 22px; }
  .quadro-hero { padding-bottom: 60px; }

  /* alvos de toque de 44px */
  .resolver-link { display: inline-flex; align-items: center; min-height: 44px; }
  .pe a { display: inline-flex; align-items: center; min-height: 44px; }

  /* WhatsApp sempre à mão */
  .fab-zap {
    position: fixed;
    right: 16px;
    bottom: calc(16px + env(safe-area-inset-bottom));
    z-index: 35;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 52px;
    padding: 0 20px;
    border-radius: 999px;
    background: var(--lanterna);
    color: var(--lousa);
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.5);
  }
  .fab-zap svg { width: 24px; height: 24px; flex: none; }
  .pe { padding-bottom: 96px; }
}

@media (max-width: 420px) {
  .topo { padding: 10px 14px 0; }
  .zap-mini { height: 40px; }
  section { padding-left: 18px; padding-right: 18px; }
}
@media (max-width: 900px) { .marca { min-height: 44px; } }

/* alvos de toque de 44px em qualquer largura (tablet em pé/deitado também é toque) */
.resolver-link, .reel-fonte, .notinha-acao a { display: inline-flex; align-items: center; min-height: 44px; }

/* vídeos: só 4 de início, o resto abre no botão */
.videos-grade:not(.aberta) .reel:nth-child(n+5) { display: none; }
.videos-mais {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  margin: 26px auto 0;
  padding: 0 28px;
  border: 2px solid var(--lanterna);
  border-radius: 999px;
  background: transparent;
  color: var(--lanterna);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

/* topo: selo e menu com 44px também no tablet */
.marca { min-height: 44px; }
.topo nav a { line-height: 44px; }

/* 320px: os 5 links do menu cabem numa linha só */
.topo nav a { white-space: nowrap; }
@media (max-width: 360px) { .topo nav a { padding: 0 2px; font-size: 0.82rem; } }
.topo nav a { min-width: 44px; text-align: center; }
.zap-mini { height: 44px; }
@media (max-width: 420px) { .zap-mini { height: 44px; } }
.mapa-img { max-width: 1100px; margin-inline: auto; }

/* vídeos centralizados: grade e texto dos cartões */
.videos-grade { margin-inline: auto; }
.reel { align-items: center; text-align: center; }
.reel-tela, .reel-player { align-self: stretch; }

/* rodapé: marca, menu, endereço e contatos em colunas centradas */
.pe { padding: 56px clamp(20px, 6vw, 96px) 64px; }
.pe-nav, .pe-contato { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 26px; }
.pe-nav { margin-top: 22px; padding-top: 22px; border-top: 1.5px dashed var(--giz-fraco); max-width: 560px; margin-inline: auto; }
.pe .pe-nav a { color: var(--giz-meio); font-weight: 700; font-size: 0.95rem; text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; }
.pe .pe-nav a:hover { color: var(--lanterna); text-decoration: underline wavy var(--lanterna) 1.5px; text-underline-offset: 6px; }
.pe-info { margin-top: 6px; }
.pe-contato a { display: inline-flex; align-items: center; min-height: 44px; }
/* no celular o menu fixo do topo já cobre a navegação */
@media (max-width: 900px) { .pe { padding-bottom: 104px; } .pe-nav { display: none; } }

/* desktop: topo e seções num mesmo eixo centralizado (1240px, igual ao grid do herói) */
@media (min-width: 901px) {
  section { padding-inline: max(clamp(20px, 6vw, 96px), calc((100% - 1240px) / 2)); }
  .topo { padding-inline: max(clamp(20px, 6vw, 96px), calc((100% - 1240px) / 2)); }
}

/* herói limpo: só texto e canoa; "bom saber" mudou para Como chegar */
.hero-grid { grid-template-columns: minmax(0, 1fr); }
.transfer .bom-saber { transform: none; max-width: 720px; margin-top: 34px; }
.rota-tempo { margin-top: 22px; max-width: 62ch; font-size: 1.1rem; font-weight: 700; }

/* rota em passos no celular (o diagrama horizontal só cabe no desktop) */
.rota-passos { display: none; list-style: none; }

/* desktop: a rota ocupa a linha toda; "bom saber" vira coluna ao lado da lista */
@media (min-width: 901px) {
  .transfer {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(300px, 380px);
    column-gap: clamp(40px, 5vw, 80px);
    grid-template-areas:
      "titulo titulo"
      "intro intro"
      "tempo tempo"
      "rota rota"
      "lista saber";
  }
  .transfer > h2 { grid-area: titulo; }
  .transfer .secao-intro { grid-area: intro; }
  .transfer .rota-tempo { grid-area: tempo; }
  .transfer .rota { grid-area: rota; }
  .transfer .lista-transfer { grid-area: lista; }
  .transfer .bom-saber { grid-area: saber; align-self: start; max-width: none; margin-top: 46px; }
}
@media (max-width: 900px) {
  .rota .diagrama { display: none; }
  .rota-passos { display: block; margin-top: 8px; }
  .rota-passos li { position: relative; padding: 0 0 22px 34px; font-weight: 700; }
  .rota-passos li::before { content: ""; position: absolute; left: 2px; top: 5px; width: 14px; height: 14px; border: 2.6px solid var(--giz); border-radius: 50%; }
  .rota-passos li:not(.rota-fim)::after { content: ""; position: absolute; left: 8px; top: 24px; bottom: 2px; border-left: 2px dashed var(--giz-fraco); }
  .rota-passos .rota-fim { padding-bottom: 0; color: var(--lanterna); }
  .rota-passos .rota-fim::before { border-color: var(--lanterna); }
}

/* passeios em grupos: pelo mar, pela areia, pela cultura */
.grupo-passeio { margin-top: 50px; font-family: "Caveat", cursive; font-weight: 700; font-size: 2.1rem; line-height: 1.1; color: var(--lanterna); }
.grupo-passeio + .lista-passeios { margin-top: 10px; }

/* dados em Atkinson: o telefone do fecho não usa a mão */
.fecho a.anotacao { font-family: var(--fonte); font-weight: 700; font-size: 1.15rem; transform: none; }
