/* O .TTF fica como fallback: e o mesmo desenho, so que sem compressao (80KB
   contra 39KB do woff2). Todo browser que roda este site aceita woff2, entao
   na pratica o TTF nunca e baixado — gerar com `npm run fontes:woff2`. */
@font-face {
  font-family: "Goudy Old Style";
  src:
    url("/assets/goudy-old-style.woff2") format("woff2"),
    url("/assets/Goudy%20Old%20Style%20Font.TTF") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --verde-serra: #1f2a1a;
  --verde-folha: #4a5d3a;
  --creme-papel: #efe7d6;
  --bege-kraft: #d9c9ac;
  --marrom-cafe: #8a4b1f;
  --grafite: #2b2b26;

  --kraft-claro: #e4d8c1;

  --fonte-display: "Goudy Old Style", "Young Serif", "Georgia", serif;
  --fonte-serifa: "Goudy Old Style", "Georgia", serif;
  --fonte-corpo: "Alegreya Sans", "Segoe UI", sans-serif;

  --largura-texto: 42rem;
  --largura-larga: 72rem;

  --textura-papel: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23n)' opacity='0.055'/%3E%3C/svg%3E");
}

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

html {
  scroll-behavior: smooth;
  overflow-x: clip;
}

body {
  margin: 0;
  font-family: var(--fonte-corpo);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--grafite);
  background-color: var(--creme-papel);
  background-image: var(--textura-papel);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

h1,
h2,
h3 {
  font-family: var(--fonte-display);
  font-weight: 400;
  line-height: 1.12;
  margin: 0 0 0.6em;
  color: var(--marrom-cafe);
  text-wrap: balance;
}

h2 {
  font-size: clamp(1.75rem, 4.5vw, 2.5rem);
}
h3 {
  font-size: 1.25rem;
}
p {
  margin: 0 0 1em;
}

a {
  color: var(--marrom-cafe);
}

:focus-visible {
  outline: 3px solid var(--marrom-cafe);
  outline-offset: 3px;
  border-radius: 2px;
}

.visualmente-oculto {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.pular-conteudo {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  background: var(--verde-serra);
  color: var(--creme-papel);
  padding: 0.7rem 1.2rem;
  border-radius: 0 0 10px 10px;
  text-decoration: none;
  transition: top 0.2s ease;
}
.pular-conteudo:focus-visible {
  top: 0;
}

.botao {
  display: inline-block;
  font-family: var(--fonte-corpo);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.02em;
  text-decoration: none;
  text-align: center;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition:
    background-color 0.2s ease,
    color 0.2s ease,
    transform 0.12s ease;
}
.botao:active {
  transform: scale(0.97);
}

.botao--primario {
  background: var(--marrom-cafe);
  color: var(--creme-papel);
}
.botao--primario:hover {
  background: var(--verde-folha);
}

.botao--secundario {
  background: transparent;
  color: var(--creme-papel);
  border-color: var(--creme-papel);
}
.botao--secundario:hover {
  background: var(--verde-folha);
  border-color: var(--verde-folha);
  color: var(--creme-papel);
}

/* --hero-fundo: a foto do hero e o elemento LCP. Trocamos o arquivo por
   media query (e nao por srcset) porque e background; os <link rel=preload>
   no index.html repetem estas mesmas condicoes para o browser achar a imagem
   antes de baixar o CSS. Ao mexer nos limites aqui, ajuste la tambem. */
.hero {
  --hero-fundo: url("/assets/9-16_background-720.webp");
  min-height: 60svh;
  background-image:
    linear-gradient(
      0deg,
      rgba(35, 38, 27, 1) 0%,
      rgba(35, 38, 27, 0.7) 50%,
      rgba(35, 38, 27, 0) 100%
    ),
    var(--hero-fundo);

  background-size: cover;
  background-position: center;
  overflow: hidden;
}

@media (min-width: 769px) {
  .hero {
    --hero-fundo: url("/assets/16-9_background-1280.webp");
  }
}

@media (min-width: 1400px) {
  .hero {
    --hero-fundo: url("/assets/16-9_background-1920.webp");
  }
}

/* neblina da serra — faixas de névoa que atravessam o vale do hero */
.neblina {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
}

.neblina__faixa {
  position: absolute;
  left: -60%;
  width: 220%;
  height: 34%;
  background: radial-gradient(
    ellipse 45% 85% at 50% 50%,
    rgba(239, 231, 214, 0.32) 0%,
    rgba(239, 231, 214, 0.12) 45%,
    rgba(239, 231, 214, 0) 72%
  );
  animation: neblina-deriva 34s linear infinite alternate;
  will-change: transform;
}

.neblina__faixa:nth-child(1) {
  top: 12%;
  animation-duration: 46s;
  opacity: 0.55;
}
.neblina__faixa:nth-child(2) {
  top: 38%;
  animation-duration: 34s;
  animation-direction: alternate-reverse;
  opacity: 0.4;
}
.neblina__faixa:nth-child(3) {
  bottom: 4%;
  height: 42%;
  animation-duration: 56s;
  opacity: 0.7;
}

@keyframes neblina-deriva {
  from {
    transform: translateX(-8%);
  }
  to {
    transform: translateX(8%);
  }
}

.hero__conteudo {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 3rem 1.25rem 3rem;
  max-width: 46rem;
  margin: 0 auto;
}

.hero__circuito {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--creme-papel);
  margin-bottom: 0.4rem;
}

.hero__titulo {
  font-size: clamp(2.6rem, 9vw, 4.6rem);
  color: var(--creme-papel);
  margin-bottom: 0.15em;
}
.hero__e {
  color: var(--marrom-cafe);
}

.hero__edicao {
  font-family: var(--fonte-display);
  font-size: clamp(1.05rem, 3vw, 1.4rem);
  color: var(--creme-papel);
  margin-bottom: 1.6rem;
}

.hero__tagline {
  font-family: var(--fonte-serifa);
  font-style: italic;
  font-size: clamp(1.15rem, 2.8vw, 1.4rem);
  color: var(--creme-papel);
  max-width: 30rem;
  margin: 1.2rem auto 1.4rem;
}

/* datas como carimbo de passaporte */
.hero__datas {
  display: inline-block;
  font-weight: 700;
  font-size: clamp(1.05rem, 3vw, 1.35rem);
  letter-spacing: 0.14em;
  color: var(--creme-papel);
  border: 2px dashed rgba(239, 231, 214, 0.65);
  border-radius: 8px;
  padding: 0.45rem 1.1rem;
  rotate: -1.5deg;
  margin-bottom: 1.8rem;
  box-shadow: inset 0 0 0 3px rgba(35, 38, 27, 0.25);
}
.hero__datas-sep {
  color: var(--marrom-cafe);
}
.hero__datas-ano {
  color: var(--creme-papel);
  letter-spacing: 0.06em;
}

.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-bottom: 1.4rem;
}

.hero__contagem {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--creme-papel);
}

.hero__scroll-cue {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  margin-top: 0.4rem;
  color: var(--creme-papel);
  text-decoration: none;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  opacity: 0.85;
  animation: hero-scroll-flutua 2.2s ease-in-out infinite;
}
.hero__scroll-cue svg {
  width: 20px;
  height: 20px;
  overflow: visible;
}
@media (hover: hover) and (pointer: fine) {
  .hero__scroll-cue {
    transition: opacity 0.2s ease;
  }
  .hero__scroll-cue:hover {
    opacity: 1;
  }
  .hero__scroll-cue:hover svg {
    animation: hero-scroll-pula 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  }
}
@keyframes hero-scroll-flutua {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(6px);
  }
}
@keyframes hero-scroll-pula {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(10px);
  }
  100% {
    transform: translateY(0);
  }
}

.logo-circuito {
  display: block;
  width: 60%;
  max-width: 250px;
  height: auto;
  margin: 0 auto;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.decor {
  position: absolute;
  z-index: 2;
  pointer-events: none;
  user-select: none;
}

.decor-top-left,
.decor-top-right {
  display: none;
}

.decor-bottom-left {
  bottom: 20px;
  left: 0;
  transform: translateX(-25%);
  width: 130px;
}

.decor-bottom-right {
  bottom: 20px;
  right: 0;
  transform: translateX(25%);
  width: 150px;
}

@media (max-width: 768px) {
  .decor-bottom-left {
    width: 110px;
    bottom: -15px;
    left: -25px;
  }

  .decor-bottom-right {
    width: 130px;
    bottom: -15px;
    right: -25px;
  }
}

.secao {
  position: relative;
  overflow: hidden;
  padding: clamp(3.5rem, 8vw, 6rem) 1.25rem;
  min-height: inherit;
  z-index: 1;
}

.secao__clip {
  position: relative;
  overflow: hidden;
  min-height: inherit;
  z-index: 1;
}

.secao__miolo {
  max-width: var(--largura-texto);
  margin: 0 auto;
}
.secao__miolo--largo {
  max-width: var(--largura-larga);
}

.secao__lede {
  font-family: var(--fonte-serifa);
  font-style: italic;
  color: var(--verde-folha);
  font-size: 1.15rem;
  max-width: 34rem;
}

.eyebrow {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--verde-folha);
  margin-bottom: 0.75rem;
}
.eyebrow::after {
  content: "";
  display: block;
  width: 3.5rem;
  height: 2px;
  margin-top: 0.6rem;
  background: var(--marrom-cafe);
  opacity: 0.5;
}
.eyebrow--claro {
  color: var(--bege-kraft);
}
.eyebrow--claro::after {
  background: var(--bege-kraft);
}

.rasgo {
  position: absolute;
  left: 0;
  right: 0;
  line-height: 0;
}
.rasgo--topo {
  top: 0;
}
.rasgo--base {
  bottom: 0;
}
.rasgo svg {
  display: block;
  width: 100%;
  height: 26px;
}

.secao--evento {
  background-color: var(--creme-papel);
  text-align: left;
  z-index: 99;
}

.ramo-cafe {
  position: absolute;
  top: 50%;
  translate: 0 -50%;
  width: clamp(60px, 8vw, 110px);
  height: auto;
  pointer-events: none;
}
.ramo-cafe--esq {
  left: clamp(0.25rem, 2vw, 2.5rem);
}
.ramo-cafe--dir {
  right: clamp(0.25rem, 2vw, 2.5rem);
}

@media (max-width: 720px) {
  .ramo-cafe {
    display: none;
  }
}

.secao--passaporte {
  background-color: var(--verde-serra);
  background-image: var(--textura-papel);
  padding-top: clamp(5rem, 10vw, 7.5rem);
  padding-bottom: clamp(5rem, 10vw, 7.5rem);
}

.passaporte-img {
  width: 100%;
  max-width: none;
  z-index: 2;
  margin-bottom: -80px;
}

@media (max-width: 720px) {

  .passaporte-img {

  margin-bottom: -60px;
}

}

.titulo-claro {
  color: var(--creme-papel);
}
.paragrafo-claro {
  color: var(--bege-kraft);
  max-width: 36rem;
}
.paragrafo-claro strong {
  color: var(--creme-papel);
}

.passaporte-flex {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2.5rem;
  align-items: center;
  margin-top: 2.5rem;
}

.passaporte {
  flex: 0 0 auto;
  width: min(300px, 100%);
  margin: 0 auto;
  rotate: -2.5deg;
  border-radius: 14px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}

.passaporte__capa {
  display: grid;
  justify-items: center;
  gap: 0.15rem;
  background: var(--verde-folha);
  border: 2px solid rgba(239, 231, 214, 0.4);
  border-bottom: none;
  border-radius: 14px 14px 0 0;
  padding: 1.4rem 1rem 1.1rem;
  color: var(--creme-papel);
  text-align: center;
}
.passaporte__brasao {
  width: 54px;
  margin-bottom: 0.35rem;
}
.passaporte__tipo {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--bege-kraft);
}
.passaporte__nome {
  font-family: var(--fonte-display);
  font-size: 1.5rem;
}
.passaporte__ed {
  font-size: 0.8rem;
  color: var(--bege-kraft);
}

.passaporte__pagina {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.9rem;
  justify-items: center;
  background: var(--creme-papel);
  background-image: var(--textura-papel);
  border: 2px solid rgba(239, 231, 214, 0.4);
  border-top: 2px dashed var(--bege-kraft);
  border-radius: 0 0 14px 14px;
  padding: 1.3rem 1.1rem;
}

.carimbo {
  width: 52px;
  height: 52px;
  border: 2px dashed var(--bege-kraft);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 1.3rem;
  color: transparent;
}
.carimbo--feito {
  border-style: solid;
  border-color: var(--marrom-cafe);
  color: var(--marrom-cafe);
  rotate: -8deg;
  background: rgba(138, 75, 31, 0.08);
}
.carimbo--feito + .carimbo--feito {
  rotate: 6deg;
}

.passos {
  position: relative;
  flex: 1 1 260px;
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 2.5rem;
}

.passos__trilha {
  position: absolute;
  left: 28px;
  top: 29px;
  bottom: 29px;
  width: 2px;
  background-image: repeating-linear-gradient(
    to bottom,
    var(--bege-kraft) 0 7px,
    transparent 7px 15px
  );
  opacity: 0.55;
}

.passo {
  position: relative;
  display: grid;
  grid-template-columns: 58px 1fr;
  column-gap: 1.15rem;
  align-items: start;
  color: var(--bege-kraft);
}
.passo h3 {
  color: var(--creme-papel);
  margin-bottom: 0.25em;
}
.passo p {
  margin: 0;
  max-width: 26rem;
}

.passo__corpo {
  padding-top: 0.55rem;
}

.passo__numero {
  position: absolute;
  left: -0.3rem;
  top: -1.15rem;
  z-index: 1;
  font-family: var(--fonte-display);
  font-size: 2.75rem;
  line-height: 1;
  color: rgba(239, 231, 214, 0.16);
  pointer-events: none;
}

.passo__icone {
  position: relative;
  z-index: 2;
  display: inline-grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border: 1.5px solid var(--bege-kraft);
  border-radius: 50%;
  color: var(--creme-papel);
  background: var(--verde-folha);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3),
    inset 0 0 0 1px rgba(239, 231, 214, 0.08);
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1),
    box-shadow 0.35s ease;
}
.passo__icone svg {
  width: 28px;
  height: 28px;
}

@media (hover: hover) and (pointer: fine) {
  .passo:hover .passo__icone {
    transform: translateY(-4px) scale(1.07);
    box-shadow: 0 12px 22px rgba(0, 0, 0, 0.35),
      inset 0 0 0 1px rgba(239, 231, 214, 0.08);
  }
  .passo:hover .passo__numero {
    color: rgba(239, 231, 214, 0.3);
  }
}

.regulamento {
  margin-top: 2.75rem;
  border: 1.5px dashed var(--bege-kraft);
  border-radius: 12px;
  padding: 1.1rem 1.3rem;
  color: var(--bege-kraft);
  font-size: 0.95rem;
}
.regulamento p {
  margin: 0;
}
.regulamento strong {
  color: var(--creme-papel);
}

.filtros {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1.75rem 0 2rem;
}

.filtro {
  font-family: var(--fonte-corpo);
  font-size: 0.92rem;
  font-weight: 700;
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  border: 1.5px solid var(--verde-folha);
  background: transparent;
  color: var(--verde-serra);
  cursor: pointer;
  transition:
    background-color 0.2s ease,
    color 0.2s ease,
    transform 0.12s ease;
}
.filtro:active {
  transform: scale(0.95);
}
.filtro:hover {
  background: var(--bege-kraft);
}
.filtro[aria-pressed="true"] {
  background: var(--verde-folha);
  border-color: var(--verde-folha);
  color: var(--creme-papel);
}

.cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  transition: opacity 0.25s ease;
}
.cards.trocando {
  opacity: 0;
}

@media (min-width: 600px) {
  .cards {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 960px) {
  .cards {
    grid-template-columns: repeat(3, 1fr);
  }
}

.cards {
  perspective: 1200px;
}

.card {
  display: flex;
  flex-direction: column;
  background: var(--kraft-claro);
  background-image: var(--textura-papel);
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(43, 43, 38, 0.12);
  transition: box-shadow 0.18s ease;
  will-change: transform;

  border-radius: 10px;
  -webkit-mask:
    radial-gradient(circle at 0 0, transparent 20px, #000 15.5px) top left /
      51% 51% no-repeat,
    radial-gradient(circle at 100% 0, transparent 20px, #000 15.5px) top right /
      51% 51% no-repeat,
    radial-gradient(circle at 0 100%, transparent 20px, #000 15.5px) bottom
      left / 51% 51% no-repeat,
    radial-gradient(circle at 100% 100%, transparent 20px, #000 15.5px) bottom
      right / 51% 51% no-repeat;
  mask:
    radial-gradient(circle at 0 0, transparent 20px, #000 15.5px) top left /
      51% 51% no-repeat,
    radial-gradient(circle at 100% 0, transparent 20px, #000 15.5px) top right /
      51% 51% no-repeat,
    radial-gradient(circle at 0 100%, transparent 20px, #000 15.5px) bottom
      left / 51% 51% no-repeat,
    radial-gradient(circle at 100% 100%, transparent 20px, #000 15.5px) bottom
      right / 51% 51% no-repeat;
}
.card:active {
  transform: scale(0.985);
}

@media (hover: hover) and (pointer: fine) {

  .card:hover {
    box-shadow: 0 14px 28px rgba(43, 43, 38, 0.2);
  }
}

@media (max-width: 720px) {
  .card {
    -webkit-mask:
      radial-gradient(circle at 0 0, transparent 20px, #000 10.5px) top left /
        51% 51% no-repeat,
      radial-gradient(circle at 100% 0, transparent 20px, #000 10.5px) top
        right / 51% 51% no-repeat,
      radial-gradient(circle at 0 100%, transparent 20px, #000 10.5px) bottom
        left / 51% 51% no-repeat,
      radial-gradient(circle at 100% 100%, transparent 20px, #000 10.5px)
        bottom right / 51% 51% no-repeat;
    mask:
      radial-gradient(circle at 0 0, transparent 20px, #000 10.5px) top left /
        51% 51% no-repeat,
      radial-gradient(circle at 100% 0, transparent 20px, #000 10.5px) top
        right / 51% 51% no-repeat,
      radial-gradient(circle at 0 100%, transparent 20px, #000 10.5px) bottom
        left / 51% 51% no-repeat,
      radial-gradient(circle at 100% 100%, transparent 20px, #000 10.5px)
        bottom right / 51% 51% no-repeat;
  }
}

.card__foto {
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--verde-folha);
  overflow: hidden;
}

/* carimbo "Provei!" que bate na foto quando o card ganha hover */
.card__selo {
  position: absolute;
  top: 0.7rem;
  right: 0.7rem;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  /* sobe o conjunto um tico: opticamente o bloco tende a parecer baixo */
  padding-bottom: 0.35em;
  width: 74px;
  height: 74px;
  border: 2.5px solid var(--creme-papel);
  border-radius: 50%;
  outline: 1.5px dashed var(--creme-papel);
  outline-offset: -7px;
  color: var(--creme-papel);
  background: rgba(138, 75, 31, 0.55);
  backdrop-filter: blur(1.5px);
  rotate: 12deg;
  opacity: 0;
  transform: scale(1.6);
  pointer-events: none;
  transition:
    opacity 0.18s ease,
    transform 0.28s cubic-bezier(0.34, 1.9, 0.5, 1);
}

.card__selo-texto,
.card__selo-ano {
  display: block;
  text-align: center;
  text-transform: uppercase;
  font-family: var(--fonte-corpo);
  font-weight: 700;
  line-height: 1;
  /* o letter-spacing sobra depois da última letra; o text-indent devolve */
  letter-spacing: 0.06em;
  text-indent: 0.06em;
}
.card__selo-estrela {
  display: block;
  font-size: 0.55rem;
  line-height: 1;
  margin-bottom: 0.2rem;
  opacity: 0.9;
}
.card__selo-texto {
  font-size: 0.72rem;
  margin-bottom: 0.15rem;
}
.card__selo-ano {
  font-size: 0.66rem;
  opacity: 0.85;
}

@media (hover: hover) and (pointer: fine) {
  .card:hover .card__selo {
    opacity: 1;
    transform: scale(1);
  }
}
.card__foto img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card__corpo {
  display: flex;
  flex-direction: column;
  flex: 1;
  position: relative;
  padding: 1.1rem 1.2rem 1.25rem;
  gap: 0.25rem;
}

/* logo do estabelecimento, montado na divisa entre a foto e o corpo;
   pode ser <img> solto ou <a> (link pro Instagram) com <img> dentro */
.card__logo {
  position: absolute;
  top: -50px;
  right: 1.1rem;
  z-index: 2;
  display: block;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  overflow: hidden;
  /* contain + respiro: logotipos largos aparecem inteiros no círculo */
  object-fit: contain;
  padding: 6px;
  background: #fff;
  border: 3px solid var(--kraft-claro);
  box-shadow: 0 2px 6px rgba(43, 43, 38, 0.28);
}

.card__logo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* logos com fundo sólido preenchem o círculo inteiro (cover, sem respiro) */
#prato-flugelbierhaus .card__logo,
#prato-decasagourmet .card__logo,
#prato-cantinadan .card__logo,
#prato-acafeterianositio .card__logo,
#prato-duocafeteriaoficial .card__logo,
#prato-engenhodovovo .card__logo,
#prato-restbomgosto .card__logo {
  object-fit: cover;
  padding: 0;
}
#prato-flugelbierhaus .card__logo img,
#prato-decasagourmet .card__logo img,
#prato-cantinadan .card__logo img,
#prato-acafeterianositio .card__logo img,
#prato-duocafeteriaoficial .card__logo img,
#prato-engenhodovovo .card__logo img,
#prato-restbomgosto .card__logo img {
  object-fit: cover;
}

/* logos brancos precisam de fundo escuro pra aparecer */
#prato-flordecafepousada .card__logo,
#prato-torahsushihouse .card__logo {
  background: var(--verde-folha);
}

.card__categoria {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--marrom-cafe);
}

.card__prato {
  font-size: 1.28rem;
  color: var(--verde-serra);
  margin: 0;
}

.card__estab {
  font-weight: 700;
  color: var(--verde-folha);
  margin: 0;
}

.card__desc {
  font-size: 0.95rem;
  color: var(--grafite);
  margin: 0.25rem 0 0.9rem;
  flex: 1;
}

.card__acoes {
  display: flex;
  gap: 0.5rem;
}

.card__acao {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  min-height: 44px;
  min-width: 0;
  white-space: nowrap;
  font-weight: 700;
  font-size: 0.88rem;
  text-decoration: none;
  border-radius: 10px;
  padding: 0.5rem 0.45rem;
  transition:
    background-color 0.2s ease,
    color 0.2s ease,
    transform 0.12s ease;
}
.card__acao:active {
  transform: scale(0.96);
}
.card__acao svg {
  width: 17px;
  height: 17px;
  flex: none;
}

.card__acao--maps {
  background: var(--verde-serra);
  color: var(--creme-papel);
}
.card__acao--maps:hover {
  background: var(--verde-folha);
}

.card__acao--whats {
  background: transparent;
  color: var(--verde-serra);
  border: 1.5px solid var(--verde-serra);
}
.card__acao--whats:hover {
  background: var(--verde-serra);
  color: var(--creme-papel);
}

.card__acao--compartilhar {
  flex: 0 0 auto;
  width: 44px;
  padding: 0;
  background: transparent;
  color: var(--verde-serra);
  border: 1.5px solid var(--verde-serra);
  border-radius: 10px;
  font-family: var(--fonte-corpo);
  cursor: pointer;
}
.card__acao--compartilhar:hover {
  background: var(--verde-serra);
  color: var(--creme-papel);
}
.card__acao--compartilhado,
.card__acao--compartilhado:hover {
  background: var(--verde-folha);
  border-color: var(--verde-folha);
  color: var(--creme-papel);
}

/* card aberto por link compartilhado */
.card--destacado {
  animation: card-destaque 1.1s ease-in-out 2;
}
.card--destacado .card__selo {
  opacity: 1;
  transform: scale(1);
}
@keyframes card-destaque {
  0%,
  100% {
    box-shadow: 0 2px 6px rgba(43, 43, 38, 0.12);
  }
  50% {
    box-shadow:
      0 14px 28px rgba(43, 43, 38, 0.2),
      0 0 0 4px rgba(138, 75, 31, 0.45);
  }
}

@media (prefers-reduced-motion: reduce) {
  .card--destacado {
    animation: none;
    box-shadow: 0 0 0 4px rgba(138, 75, 31, 0.45);
  }
}

.cards__vazio {
  color: var(--verde-folha);
  font-style: italic;
}

.secao--evento {
  position: relative;
  background: var(--creme-papel);
}

.secao--passaporte {
  background: var(--verde-serra);
}

.paper-bottom {
  position: relative;
  overflow: visible;
}

.paper-bottom::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -15px;
  width: 100%;
  height: 40px;

  background-color: var(--paper-color, var(--creme-papel));
  background-repeat: repeat;
  background-size: auto;

  -webkit-mask-image: url("/assets/ripped-paper.webp");
  mask-image: url("/assets/ripped-paper.webp");

  -webkit-mask-repeat: repeat-x;
  mask-repeat: repeat-x;

  -webkit-mask-position: var(--paper-x, 0px) bottom;
  mask-position: var(--paper-x, 0px) bottom;

  -webkit-mask-size: auto 40px;
  mask-size: auto 40px;

  z-index: 10;
  pointer-events: none;
}

.paper-bottom-texture::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -15px;
  width: 100%;
  height: 40px;

  background-color: var(--paper-color, var(--creme-papel));
  background-image: var(--paper-texture, var(--textura-papel));
  background-repeat: repeat;
  background-size: auto;

  -webkit-mask-image: url("/assets/ripped-paper.webp");
  mask-image: url("/assets/ripped-paper.webp");

  -webkit-mask-repeat: repeat-x;
  mask-repeat: repeat-x;

  -webkit-mask-position: var(--paper-x, 0px) bottom;
  mask-position: var(--paper-x, 0px) bottom;

  -webkit-mask-size: auto 40px;
  mask-size: auto 40px;

  z-index: 10;
  pointer-events: none;
}

.paper-to-verde {
  --paper-color: var(--verde-serra);
}

.paper-to-folha {
  --paper-color: var(--verde-folha);
}

.paper-to-creme {
  --paper-color: var(--creme-papel);
}

.paper-to-kraft {
  --paper-color: var(--bege-kraft);
}

.paper-top {
  position: relative;
  overflow: visible;
}

.paper-top::before {
  content: "";
  position: absolute;
  left: 0;
  top: -15px;
  width: 100%;
  height: 40px;

  background-color: var(--paper-color-top, var(--creme-papel));
  background-repeat: repeat;
  background-size: auto;

  -webkit-mask-image: url("/assets/ripped-paper.webp");
  mask-image: url("/assets/ripped-paper.webp");

  -webkit-mask-repeat: repeat-x;
  mask-repeat: repeat-x;

  -webkit-mask-position: var(--paper-x, 0px) top;
  mask-position: var(--paper-x, 0px) top;

  -webkit-mask-size: auto 40px;
  mask-size: auto 40px;

  transform: scaleY(-1);
  z-index: 10;
  pointer-events: none;
}

.paper-top-texture::before {
  content: "";
  position: absolute;
  left: 0;
  top: -15px;
  width: 100%;
  height: 40px;

  background-color: var(--paper-color-top, var(--creme-papel));
  background-image: var(--paper-texture, var(--textura-papel));
  background-repeat: repeat;
  background-size: auto;

  -webkit-mask-image: url("/assets/ripped-paper.webp");
  mask-image: url("/assets/ripped-paper.webp");

  -webkit-mask-repeat: repeat-x;
  mask-repeat: repeat-x;

  -webkit-mask-position: var(--paper-x, 0px) top;
  mask-position: var(--paper-x, 0px) top;

  -webkit-mask-size: auto 40px;
  mask-size: auto 40px;

  transform: scaleY(-1);
  z-index: 10;
  pointer-events: none;
}

.paper-top-to-verde {
  --paper-color-top: var(--verde-serra);
}

.paper-top-to-folha {
  --paper-color-top: var(--verde-folha);
}

.paper-top-to-creme {
  --paper-color-top: var(--creme-papel);
}

.paper-top-to-kraft {
  --paper-color-top: var(--bege-kraft);
}

.secao--evento {
  position: relative;
  background: var(--creme-papel);
  padding-top: 80px;
  overflow: visible;
  z-index: 2;
}

@media (max-width: 768px) {
  .paper-bottom::after {
    bottom: -15px;
    height: 35px;
    -webkit-mask-position: var(--paper-x, 0px) bottom;
    mask-position: var(--paper-x, 0px) bottom;

    -webkit-mask-size: auto 35px;
    mask-size: auto 35px;
  }
  .secao--evento {
    padding-top: 20px;
  }
}

.secao--mapa {
  padding-top: 1rem;
}

.mapa-layout {
  display: block;
}

@media (min-width: 900px) {
  .mapa-layout {
    display: grid;
    grid-template-columns: minmax(240px, 340px) 1fr;
    align-items: start;
    gap: 3rem;
  }

  .mapa-layout__texto {
    padding-top: 0.5rem;
  }

  .mapa-layout .mapa-caixa {
    margin-top: 0;
  }

  .mapa-layout #mapa-leaflet {
    height: min(75vh, 640px);
  }
}

.mapa-caixa {
  margin-top: 1.75rem;
  padding: 0.85rem;
  background: var(--kraft-claro);
  background-image: var(--textura-papel);
  border: 2px solid var(--bege-kraft);
  border-radius: 20px;
  box-shadow: 0 16px 34px rgba(43, 43, 38, 0.22),
    inset 0 0 0 1px rgba(239, 231, 214, 0.5);
}

#mapa-leaflet {
  height: min(70vh, 480px);
  background: var(--bege-kraft);
  border-radius: 13px;
  overflow: hidden;
  font-family: var(--fonte-corpo);
}

.leaflet-map-pane {
  isolation: isolate;
  z-index: 0 !important;
}

@media (max-width: 640px) {
  .secao--mapa {
    padding-bottom: 0;
  }

  .mapa-caixa {
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    margin-bottom: 0;
    padding: 0;
    background: none;
    border: none;
    border-radius: 0;
    box-shadow: none;
  }

  #mapa-leaflet {
    border-radius: 0;
    height: min(85vh, 620px);
  }
}

@media (min-width: 641px) {
  .mapa-caixa.paper-top::before {
    content: none;
  }
}

.leaflet-container {
  background: var(--kraft-claro);
  font-family: var(--fonte-corpo);
}

.leaflet-tile-pane {
  filter: saturate(1.05) contrast(1.05);
}

.leaflet-div-icon {
  background: transparent;
  border: none;
}

.leaflet-control-zoom {
  border: none !important;
  border-radius: 10px !important;
  overflow: hidden;
  background: transparent !important;
  box-shadow: 0 6px 16px rgba(43, 43, 38, 0.28) !important;
  margin: 12px !important;
}
.leaflet-control-zoom a {
  width: 34px !important;
  height: 34px !important;
  line-height: 32px !important;
  background: var(--creme-papel) !important;
  color: var(--marrom-cafe) !important;
  border: 1.5px solid var(--bege-kraft) !important;
  border-radius: 0 !important;
  font-family: var(--fonte-display);
  font-size: 1.15rem;
  transition: background-color 0.2s ease, color 0.2s ease;
}
.leaflet-control-zoom a:first-child {
  border-bottom: none !important;
}
.leaflet-control-zoom a:hover {
  background: var(--verde-folha) !important;
  color: var(--creme-papel) !important;
}

.leaflet-control-attribution {
  background: rgba(239, 231, 214, 0.85) !important;
  color: var(--grafite) !important;
  border: 1px solid var(--bege-kraft);
  border-radius: 999px;
  padding: 0.15rem 0.75rem !important;
  font-size: 0.66rem !important;
  font-family: var(--fonte-corpo);
  margin: 10px !important;
}
.leaflet-control-attribution a {
  color: var(--marrom-cafe);
}

.legenda-mapa {
  position: relative;
  width: 22px !important;
  height: 22px;
  padding: 0 !important;
  border-radius: 50% !important;
  overflow: hidden;
  cursor: pointer;
  transition: width 0.25s ease, border-radius 0.25s ease, padding 0.25s ease;
}
.legenda-mapa::before {
  content: "i";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--fonte-display);
  font-style: italic;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--marrom-cafe);
  transition: opacity 0.15s ease;
}
.legenda-mapa__texto {
  display: inline-block;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease;
}
.legenda-mapa:hover,
.legenda-mapa:focus-within,
.legenda-mapa.legenda-mapa--aberta {
  width: auto !important;
  border-radius: 999px !important;
}
.legenda-mapa:hover::before,
.legenda-mapa:focus-within::before,
.legenda-mapa.legenda-mapa--aberta::before {
  opacity: 0;
}
.legenda-mapa:hover .legenda-mapa__texto,
.legenda-mapa:focus-within .legenda-mapa__texto,
.legenda-mapa.legenda-mapa--aberta .legenda-mapa__texto {
  opacity: 1;
  pointer-events: auto;
}

.leaflet-popup-content-wrapper {
  background: var(--kraft-claro) !important;
  background-image: var(--textura-papel) !important;
  border: 2px solid var(--bege-kraft) !important;
  border-radius: 14px !important;
  box-shadow: 0 16px 30px rgba(43, 43, 38, 0.3) !important;
  padding: 0 !important;
}
.leaflet-popup-content {
  margin: 0 !important;
  width: 200px !important;
}
.leaflet-popup-tip-container {
  overflow: hidden;
}
.leaflet-popup-tip {
  background: var(--kraft-claro) !important;
  border: 2px solid var(--bege-kraft) !important;
  box-shadow: none !important;
}
.leaflet-popup-close-button {
  color: var(--marrom-cafe) !important;
  font-size: 1.1rem !important;
  padding: 6px 8px 0 0 !important;
}
.leaflet-popup-close-button:hover {
  color: var(--verde-serra) !important;
}

.mapa-popup {
  padding: 0.7rem 0.8rem 0.8rem;
}
.mapa-popup__categoria {
  display: block;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--marrom-cafe) !important;
  margin-bottom: 0.15rem;
}
.mapa-popup__prato {
  font-family: var(--fonte-display);
  font-size: 0.95rem;
  color: var(--verde-serra) !important;
  margin: 0 0 0.1rem;
  line-height: 1.2;
}
.mapa-popup__estab {
  font-weight: 700;
  font-size: 0.78rem;
  color: var(--verde-folha) !important;
  margin: 0 0 0.6rem;
}
.mapa-popup__acao {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  min-height: 34px;
  font-family: var(--fonte-corpo);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.01em;
  text-decoration: none !important;
  border-radius: 999px;
  background: var(--verde-serra) !important;
  color: var(--creme-papel) !important;
  transition: background-color 0.2s ease, transform 0.12s ease;
}
.mapa-popup__acao:hover {
  background: var(--verde-folha) !important;
}
.mapa-popup__acao:active {
  transform: scale(0.96);
}
.mapa-popup__acao svg {
  width: 14px;
  height: 14px;
  flex: none;
  color: var(--creme-papel) !important;
}

.marcador-mapa {
  position: relative;
  width: 40px;
  height: 52px;
}

.leaflet-marker-icon:focus-visible {
  outline: none;
}
.marcador-mapa__pino {
  position: absolute;
  left: 50%;
  top: 2px;
  width: 36px;
  height: 36px;
  background: var(--marrom-cafe);
  border: 3px solid var(--creme-papel);
  border-radius: 50% 50% 50% 0;
  transform: translateX(-50%) rotate(-45deg);
  box-shadow: 0 6px 14px rgba(43, 43, 38, 0.4);
  transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1),
    box-shadow 0.25s ease, background-color 0.2s ease;
}
.marcador-mapa__icone {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  transform: rotate(45deg);
  color: var(--creme-papel);
}
.marcador-mapa__icone svg {
  width: 18px;
  height: 18px;
}

@media (hover: hover) and (pointer: fine) {
  .marcador-mapa:hover .marcador-mapa__pino {
    background: var(--verde-folha);
    transform: translateX(-50%) rotate(-45deg) translateY(-4px) scale(1.08);
    box-shadow: 0 12px 20px rgba(43, 43, 38, 0.45);
  }
}

.marcador-mapa--ativo .marcador-mapa__pino {
  background: var(--verde-folha);
  animation: marcador-mapa-pulso 1.8s ease-in-out infinite;
}
@keyframes marcador-mapa-pulso {
  0%,
  100% {
    box-shadow: 0 6px 14px rgba(43, 43, 38, 0.4), 0 0 0 0 rgba(74, 93, 58, 0.45);
  }
  50% {
    box-shadow: 0 6px 14px rgba(43, 43, 38, 0.4), 0 0 0 9px rgba(74, 93, 58, 0);
  }
}

.rotas {
  display: grid;
  gap: 1.5rem;
  margin: 2rem 0 2.25rem;
}

.rota {
  border-left: 3px solid var(--bege-kraft);
  padding-left: 1.1rem;
}
.rota h3 {
  color: var(--verde-serra);
  margin-bottom: 0.3em;
}
.rota p {
  margin: 0;
}

.placeholder-texto {
  color: var(--verde-folha);
  font-style: italic;
  font-size: 0.9em;
}

.secao--apoio {
  background-color: var(--bege-kraft);
  background-image: var(--textura-papel);
  padding-top: clamp(5rem, 10vw, 7rem);
  text-align: center;
}

.patrocinio-bloco {
  padding-bottom: 2.5rem;
  margin-bottom: 2.75rem;
  border-bottom: 1px solid rgba(74, 93, 58, 0.2);
}
.patrocinio-bloco:last-child {
  padding-bottom: 0;
  margin-bottom: 0;
  border-bottom: none;
}

.apoio-titulo {
  font-family: var(--fonte-corpo);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--verde-serra);
  margin-bottom: 1.25rem;
}

.apoio-titulo--pequeno {
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  margin-bottom: 0.85rem;
}

.logos--apresenta {
  gap: 1.5rem 2.5rem;
  margin-bottom: 1rem;
}
.logos--apresenta .logo-slot img {
  height: 96px;
}

.apresenta-titulo {
  font-family: var(--fonte-corpo);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--verde-folha);
  margin: 0;
}

.oficiais-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.75rem 1rem;
  max-width: 44rem;
  margin-left: auto;
  margin-right: auto;
}
@media (min-width: 641px) {
  .oficiais-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2.25rem 1.5rem;
  }
}

.oficial-bloco {
  min-width: 0;
}
.oficial-bloco .apoio-titulo--pequeno {
  font-size: 0.6rem;
}
.oficial-bloco .logo-slot img {
  height: 44px;
  max-width: 100%;
}
@media (min-width: 641px) {
  .oficial-bloco .apoio-titulo--pequeno {
    font-size: 0.68rem;
  }
  .oficial-bloco .logo-slot img {
    height: 52px;
  }
}

.logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 1rem 1.5rem;
}
.logos--apoio {
  max-width: 56rem;
  margin: 0 auto;
}

.logo-slot {
  margin: 0;
  display: grid;
  justify-items: center;
  gap: 0.4rem;
}
.logo-slot img {
  height: 64px;
  width: auto;
  max-width: 180px;
  object-fit: contain;
}

.logo-slot figcaption {
  font-size: 0.78rem;
  color: var(--verde-serra);
  max-width: 11rem;
}

.logo-slot--pendente img {
  display: none;
}
.logo-slot--pendente figcaption {
  border: 1.5px dashed var(--verde-folha);
  border-radius: 10px;
  padding: 0.9rem 1.2rem;
  font-weight: 700;
  color: var(--verde-serra);
  background: rgba(239, 231, 214, 0.5);
}

.polaroid {
  --rotacao: -4deg;
  display: block;
  width: 100%;
  background: #fff;
  padding: 0.55rem;
  border-radius: 5px;
  box-shadow:
    0 16px 30px rgba(0, 0, 0, 0.28),
    0 3px 8px rgba(0, 0, 0, 0.16);
  rotate: var(--rotacao);
  position: relative;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275),
    box-shadow 0.3s ease;
}
.polaroid__foto {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 2px;
  background: var(--bege-kraft);
}

@media (hover: hover) and (pointer: fine) {
  .polaroid:hover {
    transform: translateY(-6px) rotate(0deg);
    box-shadow:
      0 24px 40px rgba(0, 0, 0, 0.3),
      0 4px 10px rgba(0, 0, 0, 0.18);
  }
}

.polaroid-solta {
  width: min(180px, 55vw);
  margin: 2rem auto 2rem;
}

@media (min-width: 720px) {
  .polaroid-solta--evento {
    float: right;
    margin: -1rem -0.5rem 1.5rem 2rem;
  }
  .polaroid-solta--passaporte {
    float: left;
    margin: 1.5rem 2rem 1.5rem -0.5rem;
  }
}

.rodape {
  position: relative;
  background-color: var(--verde-serra);
  background-image: var(--textura-papel);
  color: var(--bege-kraft);
  text-align: center;
  padding: clamp(4.5rem, 9vw, 6rem) 1.25rem 2.5rem;
}

.rodape__miolo {
  max-width: var(--largura-texto);
  margin: 0 auto;
}

.rodape__logo {
  font-family: var(--fonte-display);
  font-size: 1.9rem;
  color: var(--creme-papel);
  margin-bottom: 0.2rem;
}

.rodape__sub {
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.rodape__insta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--creme-papel);
  font-weight: 700;
  text-decoration: none;
  padding: 0.6rem 1.1rem;
  border: 1.5px solid var(--verde-folha);
  border-radius: 999px;
  margin-bottom: 2rem;
  transition: background-color 0.2s ease;
}
.rodape__insta:hover {
  background: var(--verde-folha);
}

.rodape__credito {
  font-size: 0.82rem;
  opacity: 0.8;
  margin: 0;
}
.rodape__credito a {
  color: var(--bege-kraft);
}

@media (hover: hover) and (pointer: fine) {
  .molejo {
    transition:
      transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275),
      background-color 0.2s ease,
      color 0.2s ease,
      box-shadow 0.2s ease;
  }
  .molejo:hover {
    transform: scale(1.045) rotate(-1deg);
  }
}
.molejo:active {
  transform: scale(0.96) rotate(0deg);
  transition-duration: 0.1s;
}

.js .revelar {
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity 0.55s ease,
    transform 0.55s ease;
}
.js .revelar.visivel {
  opacity: 1;
  transform: none;
}

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

  .js .revelar {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .neblina__faixa {
    animation: none;
  }
  .botao,
  .filtro,
  .card,
  .card__acao,
  .card__selo,
  .molejo {
    transition: none;
  }
  .botao:active,
  .filtro:active,
  .card:active,
  .card__acao:active,
  .molejo:active {
    transform: none;
  }
  .hero__scroll-cue {
    animation: none;
  }
  .marcador-mapa--ativo .marcador-mapa__pino {
    animation: none;
  }
}
