/* ══════════════════════════════════════════════════════
   RESET
══════════════════════════════════════════════════════ */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --map-deep:    #1c1409;
  --map-dark:    #2b1e0e;
  --map-mid:     #3d2b1f;
  --map-warm:    #5a3e28;
  --parch-dark:  #c9b99a;
  --parch:       #e8dfc8;
  --parch-light: #f2ead6;
  --cream:       #f5f0e8;
  --amber:       #c8861a;
  --amber-light: #e09b2a;
  --rust:        #b84a1e;
  --rust-light:  #d05a28;
  --gold:        #d4a82a;
  --sepia:       #8a6642;
  --smoke:       #6b5c4e;
  --worn:        #9c8570;
  --border:      rgba(61,43,31,0.18);
  --border-gold: rgba(200,134,26,0.35);
  --f-display: 'Anton', sans-serif;
  --f-serif:   'DM Serif Display', serif;
  --f-mono:    'Space Mono', monospace;
  --f-cond:    'Barlow Condensed', sans-serif;

  /* Touch targets mínimos */
  --touch-min: 48px;
}

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

body {
  background-color: var(--cream);
  color: var(--map-mid);
  font-family: var(--f-cond);
  font-size: 1rem;
  line-height: 1.6;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='0.045'/%3E%3C/svg%3E");
  /* evita scroll horizontal em mobile */
  overflow-x: hidden;
}

* { cursor: default; }
a, button { cursor: pointer; }

/* Grade de mapa sobre a página */
body::before {
  content: '';
  position: fixed; inset: 0;
  background-image:
    repeating-linear-gradient(0deg, transparent, transparent 60px, rgba(61,43,31,0.02) 60px, rgba(61,43,31,0.02) 61px),
    repeating-linear-gradient(90deg, transparent, transparent 60px, rgba(61,43,31,0.02) 60px, rgba(61,43,31,0.02) 61px);
  pointer-events: none;
  z-index: 1000;
}

/* ══════════════════════════════════════════════════════
   HEADER
══════════════════════════════════════════════════════ */
header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 500;
  padding: 0 20px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--map-deep);
  border-bottom: 2px solid var(--amber);
}

.logo-wrap {
  display: flex;
  align-items: baseline;
  gap: 10px;
  text-decoration: none;
}
.logo-main {
  font-family: var(--f-display);
  font-size: 1.6rem;
  color: var(--cream);
  letter-spacing: 5px;
  line-height: 1;
}
.logo-main span { color: var(--amber); }
.logo-sub {
  font-family: var(--f-mono);
  font-size: 0.45rem;
  color: var(--worn);
  letter-spacing: 3px;
  text-transform: uppercase;
  display: none; /* esconde no mobile, aparece no desktop */
}

nav ul { list-style: none; display: flex; gap: 24px; align-items: center; }
nav a {
  font-family: var(--f-cond);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--worn);
  text-decoration: none;
  position: relative;
  transition: color 0.2s;
  padding: 6px 0;
}
nav a::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 0; height: 1px;
  background: var(--amber);
  transition: width 0.3s;
}
nav a:hover { color: var(--amber); }
nav a:hover::after { width: 100%; }
.nav-cta {
  background: var(--rust) !important;
  color: var(--cream) !important;
  padding: 8px 16px !important;
  font-weight: 800 !important;
  transition: background 0.2s !important;
  min-height: var(--touch-min);
  display: flex !important;
  align-items: center !important;
}
.nav-cta:hover { background: var(--rust-light) !important; }
.nav-cta::after { display: none !important; }

/* Hamburger */
.hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 10px;
  min-width: var(--touch-min);
  min-height: var(--touch-min);
  align-items: center;
  justify-content: center;
}
.hamburger span {
  display: block;
  width: 22px; height: 2px;
  background: var(--cream);
  transition: all 0.3s;
  border-radius: 1px;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Nav mobile — overlay de tela cheia */
nav ul {
  display: none;
}
nav ul.aberto {
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 60px; left: 0; right: 0; bottom: 0;
  background: var(--map-deep);
  border-top: 2px solid var(--amber);
  padding: 32px 24px;
  gap: 0;
  z-index: 490;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  /* animação de entrada */
  animation: slideDown 0.25s ease;
}
@keyframes slideDown {
  from { opacity: 0; transform: translateY(-12px); }
  to   { opacity: 1; transform: translateY(0); }
}
nav ul.aberto li {
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
nav ul.aberto li a {
  display: flex;
  align-items: center;
  padding: 18px 0;
  width: 100%;
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 4px;
  color: var(--parch-dark);
  gap: 14px;
}
nav ul.aberto li a::before {
  content: '—';
  color: var(--amber);
  font-size: 1rem;
  flex-shrink: 0;
}
nav ul.aberto .nav-cta {
  margin-top: 24px;
  text-align: center;
  background: var(--rust) !important;
  justify-content: center;
  font-size: 1rem !important;
  padding: 16px !important;
  letter-spacing: 4px;
}
nav ul.aberto .nav-cta::before { display: none; }

/* ══════════════════════════════════════════════════════
   HERO — NOVO DESIGN
   Conceito: "Odômetro do horizonte"
   Tela dividida em 2 zonas por linha diagonal.
   Bússola animada + título em corte tipográfico radical.
══════════════════════════════════════════════════════ */
.hero {
  min-height: 100svh; /* safe viewport height para mobile */
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  padding-top: 60px; /* header height */
}

/* Fundo escuro do mapa */
.hero-bg {
  position: absolute; inset: 0;
  background: linear-gradient(170deg, #0e0905 0%, #1c1409 45%, #251508 100%);
}

/* Linha diagonal que divide o hero em 2 zonas */
.hero-diagonal {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 60%;
  background: linear-gradient(175deg, transparent 48%, rgba(200,134,26,0.06) 48.1%);
  pointer-events: none;
}

/* Grade de coordenadas cartográficas */
.hero-grid {
  position: absolute; inset: 0;
  background-image:
    repeating-linear-gradient(90deg, rgba(200,134,26,0.06) 0, transparent 1px, transparent 80px),
    repeating-linear-gradient(0deg,  rgba(200,134,26,0.04) 0, transparent 1px, transparent 80px);
  /* grade ligeiramente inclinada — como um mapa antigo */
  transform: rotate(-2deg) scale(1.05);
}

/* Círculo da bússola — decorativo, animado */
.hero-compass {
  position: absolute;
  top: 50%;
  right: -80px;
  transform: translateY(-55%);
  width: min(520px, 90vw);
  height: min(520px, 90vw);
  opacity: 0.07;
  animation: compassSpin 60s linear infinite;
  pointer-events: none;
}
@keyframes compassSpin {
  from { transform: translateY(-55%) rotate(0deg); }
  to   { transform: translateY(-55%) rotate(360deg); }
}
.hero-compass svg {
  width: 100%; height: 100%;
}

/* Linha horizontal decorativa — "odômetro" */
.hero-odo-line {
  position: absolute;
  top: 38%;
  left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(200,134,26,0.3) 30%, rgba(200,134,26,0.3) 70%, transparent);
  pointer-events: none;
}

/* ── Conteúdo do hero ── */
.hero-content {
  position: relative;
  z-index: 2;
  padding: 0 24px 56px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* Tag de localização — topo */
.hero-location-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--rust);
  color: var(--cream);
  font-family: var(--f-mono);
  font-size: 0.52rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  padding: 6px 12px;
  margin-bottom: 20px;
  width: fit-content;
  /* pulsa levemente */
  animation: tagPulse 3s ease-in-out infinite;
}
@keyframes tagPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(184,74,30,0); }
  50%       { box-shadow: 0 0 0 6px rgba(184,74,30,0); }
}
.hero-location-tag::before {
  content: '●';
  font-size: 0.5rem;
  animation: dotBlink 1.4s ease-in-out infinite;
}
@keyframes dotBlink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.2; }
}

/* Título principal — tipografia radical */
.hero-title {
  font-family: var(--f-display);
  line-height: 0.85;
  letter-spacing: -1px;
  color: var(--cream);
  margin-bottom: 28px;
}
.hero-title .line1 {
  font-size: clamp(5rem, 22vw, 12rem);
  display: block;
}
.hero-title .line2 {
  font-size: clamp(5rem, 22vw, 12rem);
  display: block;
  color: transparent;
  -webkit-text-stroke: 2px var(--amber);
  /* leve offset para criar tensão visual */
  margin-left: clamp(16px, 5vw, 60px);
}

/* Linha divisória com KM */
.hero-km-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}
.hero-km-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--rust), rgba(200,134,26,0.3));
}
.hero-km-badge {
  font-family: var(--f-mono);
  font-size: 0.5rem;
  color: var(--worn);
  letter-spacing: 3px;
  text-transform: uppercase;
  white-space: nowrap;
  flex-shrink: 0;
}

/* Subtítulo */
.hero-desc {
  font-family: var(--f-serif);
  font-size: clamp(1rem, 3.5vw, 1.15rem);
  color: var(--parch-dark);
  font-style: italic;
  line-height: 1.75;
  max-width: 360px;
  margin-bottom: 32px;
}

/* Botões do hero — ocupam toda a largura no mobile */
.hero-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.btn-primary, .btn-ghost {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--f-cond);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 3px;
  text-transform: uppercase;
  text-decoration: none;
  min-height: var(--touch-min);
  padding: 0 20px;
  transition: all 0.25s;
  -webkit-tap-highlight-color: transparent;
}
.btn-primary {
  background: var(--rust);
  color: var(--cream);
  position: relative;
  overflow: hidden;
}
.btn-primary::before {
  content: '';
  position: absolute; inset: 0;
  background: var(--rust-light);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s;
}
.btn-primary span { position: relative; z-index: 1; }
.btn-primary:hover::before,
.btn-primary:active::before { transform: scaleX(1); }
.btn-ghost {
  border: 1px solid rgba(200,134,26,0.5);
  color: var(--parch-dark);
}
.btn-ghost:hover, .btn-ghost:active {
  border-color: var(--amber);
  color: var(--amber);
  background: rgba(200,134,26,0.08);
}

/* Scroll indicator */
.hero-scroll-hint {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  z-index: 2;
  animation: bounceDown 2s ease-in-out infinite;
}
@keyframes bounceDown {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(5px); }
}
.hero-scroll-hint span {
  font-family: var(--f-mono);
  font-size: 0.42rem;
  color: rgba(200,134,26,0.5);
  letter-spacing: 3px;
  text-transform: uppercase;
}
.hero-scroll-hint svg {
  width: 16px; height: 16px;
  stroke: rgba(200,134,26,0.5);
  fill: none;
}

/* ══════════════════════════════════════════════════════
   STATS STRIP — odômetro
══════════════════════════════════════════════════════ */
.stats-strip {
  background: var(--map-dark);
  border-top: 1px solid var(--border-gold);
  border-bottom: 1px solid rgba(255,255,255,0.04);
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
}
.stat-cell {
  text-align: center;
  padding: 20px 12px;
  border-right: 1px solid rgba(200,134,26,0.12);
  border-bottom: 1px solid rgba(200,134,26,0.12);
  position: relative;
}
.stat-cell:nth-child(even) { border-right: none; }
.stat-cell:nth-child(3),
.stat-cell:nth-child(4)    { border-bottom: none; }
.stat-n {
  font-family: var(--f-display);
  font-size: 2.6rem;
  color: var(--amber);
  line-height: 1;
  letter-spacing: 2px;
}
.stat-l {
  font-family: var(--f-mono);
  font-size: 0.46rem;
  color: var(--worn);
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-top: 5px;
}

/* ══════════════════════════════════════════════════════
   POST DESTAQUE
══════════════════════════════════════════════════════ */
.featured-section {
  padding: 60px 24px;
  display: flex;
  flex-direction: column;
  gap: 36px;
  border-bottom: 1px solid var(--border);
  background: var(--parch-light);
}
.featured-label {
  font-family: var(--f-mono);
  font-size: 0.52rem;
  color: var(--rust);
  letter-spacing: 4px;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}
.featured-label span {
  background: var(--rust);
  color: var(--cream);
  padding: 3px 8px;
  font-size: 0.46rem;
}
.featured-title {
  font-family: var(--f-display);
  font-size: clamp(3rem, 14vw, 7rem);
  color: var(--map-deep);
  line-height: 0.88;
  letter-spacing: 2px;
  margin-bottom: 18px;
}
.featured-title em {
  font-style: normal;
  display: block;
  color: var(--rust);
}
.featured-divider {
  width: 48px; height: 3px;
  background: var(--rust);
  margin-bottom: 20px;
}
.featured-text {
  font-family: var(--f-serif);
  font-size: 1rem;
  color: var(--map-warm);
  font-style: italic;
  line-height: 1.8;
  margin-bottom: 12px;
}
.featured-body {
  font-family: var(--f-cond);
  font-size: 0.92rem;
  color: var(--smoke);
  line-height: 1.75;
  margin-bottom: 28px;
}

/* Imagem do destaque no mobile */
.featured-visual {
  position: relative;
  border: 1px solid var(--border);
}
.featured-card-big {
  aspect-ratio: 16/9;
  overflow: hidden;
  position: relative;
  background: var(--parch);
}
.featured-card-big img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.featured-card-big::after {
  content: 'MONTE VERDE · 2025';
  position: absolute;
  bottom: 12px; left: 12px;
  font-family: var(--f-mono);
  font-size: 0.46rem;
  color: rgba(245,240,232,0.7);
  letter-spacing: 3px;
  background: rgba(28,20,9,0.6);
  padding: 4px 8px;
}
.featured-tag-float {
  position: absolute;
  top: 12px; right: 12px;
  background: var(--rust);
  color: var(--cream);
  font-family: var(--f-display);
  font-size: 0.75rem;
  letter-spacing: 3px;
  padding: 6px 10px;
}

/* ══════════════════════════════════════════════════════
   MARQUEE
══════════════════════════════════════════════════════ */
.marquee-wrap {
  overflow: hidden;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 12px 0;
  background: var(--parch);
  /* acelera ligeiramente no mobile — menos texto visível */
}
.marquee-track {
  display: flex;
  white-space: nowrap;
  animation: marquee 20s linear infinite;
  gap: 40px;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.marquee-item {
  font-family: var(--f-display);
  font-size: 0.95rem;
  letter-spacing: 5px;
  color: var(--parch-dark);
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}
.marquee-item .dot {
  width: 4px; height: 4px;
  background: var(--amber);
  border-radius: 50%;
  flex-shrink: 0;
}

/* ══════════════════════════════════════════════════════
   CARDS — mobile first: 1 coluna padrão
══════════════════════════════════════════════════════ */
.cards-section {
  padding: 56px 24px;
  background: var(--cream);
}
.section-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 28px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 18px;
  flex-direction: column;
  gap: 16px;
}
.section-label-sm {
  font-family: var(--f-mono);
  font-size: 0.52rem;
  color: var(--rust);
  letter-spacing: 4px;
  text-transform: uppercase;
  margin-bottom: 5px;
}
.section-title {
  font-family: var(--f-display);
  font-size: clamp(2.4rem, 10vw, 3.2rem);
  color: var(--map-deep);
  letter-spacing: 3px;
  line-height: 1;
}

/* Filtros — scroll horizontal no mobile */
.filtro-bar {
  display: flex;
  gap: 0;
  border: 1px solid var(--border);
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.filtro-bar::-webkit-scrollbar { display: none; }
.filtro-btn {
  font-family: var(--f-cond);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 0 16px;
  height: var(--touch-min);
  border: none;
  border-right: 1px solid var(--border);
  background: transparent;
  color: var(--smoke);
  transition: all 0.2s;
  white-space: nowrap;
  flex-shrink: 0;
  -webkit-tap-highlight-color: transparent;
}
.filtro-btn:last-child { border-right: none; }
.filtro-btn.ativo, .filtro-btn:hover { background: var(--amber); color: var(--cream); }

/* Grid — 1 coluna mobile */
.cards-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

/* Card */
.card {
  background: var(--parch-light);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  transition: transform 0.3s, box-shadow 0.3s;
  /* arredondamento sutil — mais amigável no mobile */
  border-radius: 2px;
}
/* No mobile, usamos active em vez de hover para feedback touch */
.card:active {
  transform: scale(0.99);
  box-shadow: 0 8px 24px rgba(61,43,31,0.12);
}

.card-thumb-wrap {
  height: 200px;
  overflow: hidden;
  position: relative;
  background: var(--parch);
  display: flex;
  align-items: center;
  justify-content: center;
}
.card-thumb-wrap::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, transparent 40%, rgba(28,20,9,0.5) 100%);
  pointer-events: none;
}
.card-img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  filter: sepia(20%) contrast(1.06);
  transition: filter 0.4s, transform 0.5s;
}

.card-badge {
  position: absolute;
  top: 12px; left: 12px;
  background: var(--rust);
  color: var(--cream);
  font-family: var(--f-mono);
  font-size: 0.46rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 4px 8px;
  z-index: 3;
}

.card-body {
  padding: 18px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.card-meta { display: flex; gap: 10px; align-items: center; margin-bottom: 8px; flex-wrap: wrap; }
.card-date {
  font-family: var(--f-mono);
  font-size: 0.48rem;
  color: var(--worn);
  letter-spacing: 2px;
  text-transform: uppercase;
}
.card-tag {
  font-family: var(--f-mono);
  font-size: 0.44rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 2px 6px;
  border: 1px solid var(--border-gold);
  color: var(--amber);
}
.card h3 {
  font-family: var(--f-display);
  font-size: 1.8rem;
  color: var(--map-deep);
  letter-spacing: 2px;
  line-height: 0.95;
  margin-bottom: 8px;
}
.card-line {
  width: 28px; height: 3px;
  background: var(--rust);
  margin-bottom: 10px;
}
.card p {
  font-family: var(--f-cond);
  font-size: 0.88rem;
  color: var(--smoke);
  line-height: 1.65;
  flex: 1;
  margin-bottom: 14px;
}
.card-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--f-mono);
  font-size: 0.5rem;
  color: var(--rust);
  text-decoration: none;
  letter-spacing: 2px;
  text-transform: uppercase;
  min-height: var(--touch-min);
  padding: 8px 0;
  transition: gap 0.2s, color 0.2s;
  -webkit-tap-highlight-color: transparent;
}
.card-link:hover, .card-link:active { gap: 14px; color: var(--amber); }
.card-link::after { content: '→'; font-size: 0.8rem; }

/* Card wide — apenas em telas maiores */
.card.card-wide { grid-column: span 1; }

/* ══════════════════════════════════════════════════════
   MAPA
══════════════════════════════════════════════════════ */
.map-section {
  padding: 56px 24px 80px;
  background: var(--parch-light);
}
.map-container {
  position: relative;
  border: 2px solid var(--map-mid);
  border-radius: 2px;
  overflow: hidden;
}
.map-container::before {
  content: '// ROTAS PERCORRIDAS';
  position: absolute;
  top: -10px; left: 16px;
  background: var(--parch-light);
  font-family: var(--f-mono);
  font-size: 0.48rem;
  letter-spacing: 3px;
  color: var(--rust);
  padding: 0 8px;
  z-index: 10;
}
#mapa {
  height: 360px;
  width: 100%;
  filter: sepia(35%) contrast(0.95) brightness(0.95);
}

/* ══════════════════════════════════════════════════════
   GALERIA — mobile: grade 2×3 com células quadradas
══════════════════════════════════════════════════════ */
.gallery-section {
  padding: 56px 0;
  overflow: hidden;
  background: var(--cream);
}
.gallery-inner { padding: 0 24px; }

/* Mobile: grid fixo */
.gallery-strip {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4px;
  margin-top: 24px;
}
.gallery-cell {
  aspect-ratio: 1;
  background: var(--parch);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
}

/* No mobile: overlay sempre visível */
.gallery-cell::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(28,20,9,0.75) 0%, rgba(28,20,9,0.05) 50%, transparent 100%);
  pointer-events: none;
}
.gallery-img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: sepia(25%) contrast(1.08);
  position: absolute; inset: 0;
  transition: transform 0.4s;
}
.gallery-cell:active .gallery-img { transform: scale(1.04); }
.gallery-caption {
  position: absolute;
  bottom: 10px; left: 10px;
  font-family: var(--f-display);
  font-size: 1rem;
  color: var(--cream);
  letter-spacing: 3px;
  z-index: 3;
  opacity: 1;
}
.gallery-caption::before {
  content: '';
  display: block;
  width: 18px; height: 2px;
  background: var(--amber);
  margin-bottom: 4px;
}

/* ══════════════════════════════════════════════════════
   QUEM SOMOS + SIDEBAR
══════════════════════════════════════════════════════ */
.two-col {
  padding: 56px 24px 72px;
  display: flex;
  flex-direction: column;
  gap: 40px;
  background: var(--parch-light);
  border-top: 1px solid var(--border);
}

.widget {
  background: var(--cream);
  border: 1px solid var(--border);
  overflow: hidden;
  border-radius: 2px;
  margin-bottom: 16px;
}
.widget-head {
  padding: 12px 18px;
  border-bottom: 1px solid var(--border-gold);
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--map-dark);
}
.widget-head-text {
  font-family: var(--f-display);
  font-size: 1rem;
  color: var(--amber);
  letter-spacing: 4px;
}
.widget-head-dot {
  width: 6px; height: 6px;
  background: var(--rust);
  border-radius: 50%;
  animation: blink 2s ease-in-out infinite;
  flex-shrink: 0;
}
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0.2} }
.widget-body { padding: 16px 18px; }

.recent-item {
  padding: 12px 0;
  border-bottom: 1px dashed rgba(61,43,31,0.15);
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.recent-item:last-child { border-bottom: none; padding-bottom: 0; }
.recent-item p { font-family: var(--f-cond); font-size: 0.9rem; color: var(--smoke); line-height: 1.5; }
.recent-item a {
  font-family: var(--f-mono);
  font-size: 0.48rem;
  color: var(--rust);
  text-decoration: none;
  letter-spacing: 2px;
  text-transform: uppercase;
  min-height: 36px;
  display: flex;
  align-items: center;
  transition: color 0.2s;
  -webkit-tap-highlight-color: transparent;
}
.recent-item a:hover, .recent-item a:active { color: var(--amber); }

.cat-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 0;
  border-bottom: 1px dashed rgba(61,43,31,0.15);
  text-decoration: none;
  font-family: var(--f-cond);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--map-mid);
  transition: all 0.2s;
  min-height: var(--touch-min);
  -webkit-tap-highlight-color: transparent;
}
.cat-item:last-child { border-bottom: none; }
.cat-item:hover, .cat-item:active { color: var(--rust); padding-left: 6px; }
.cat-arrow { font-size: 0.8rem; color: var(--amber); }

/* ══════════════════════════════════════════════════════
   FOOTER
══════════════════════════════════════════════════════ */
footer {
  background: var(--map-deep);
  border-top: 3px solid var(--amber);
  padding: 48px 24px 28px;
}
.footer-top {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  margin-bottom: 40px;
}
.footer-grid-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.footer-brand-name {
  font-family: var(--f-display);
  font-size: 2.2rem;
  letter-spacing: 5px;
  line-height: 1;
  color: var(--cream);
  margin-bottom: 4px;
}
.footer-brand-name span { color: var(--amber); }
.footer-tagline {
  font-family: var(--f-mono);
  font-size: 0.46rem;
  letter-spacing: 4px;
  color: var(--worn);
  text-transform: uppercase;
  margin-bottom: 16px;
}
.footer-about {
  font-family: var(--f-cond);
  color: var(--sepia);
  font-size: 0.9rem;
  line-height: 1.7;
}
.footer-col h4 {
  font-family: var(--f-display);
  font-size: 1rem;
  color: var(--amber);
  letter-spacing: 4px;
  margin-bottom: 16px;
}
.footer-col a {
  display: flex;
  align-items: center;
  font-family: var(--f-cond);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--worn);
  text-decoration: none;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  transition: all 0.2s;
  min-height: var(--touch-min);
  -webkit-tap-highlight-color: transparent;
}
.footer-col a:hover, .footer-col a:active { color: var(--amber); padding-left: 8px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-align: center;
}
.footer-copy {
  font-family: var(--f-mono);
  font-size: 0.46rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--worn);
}
.footer-made {
  font-family: var(--f-mono);
  font-size: 0.46rem;
  letter-spacing: 3px;
  color: var(--worn);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.footer-made span { color: var(--amber); }

/* ══════════════════════════════════════════════════════
   VOLTAR AO TOPO
══════════════════════════════════════════════════════ */
#topo-btn {
  position: fixed;
  bottom: 20px; right: 20px;
  width: 48px; height: 48px;
  background: var(--rust);
  color: var(--cream);
  border: none;
  font-size: 1.2rem;
  font-weight: bold;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s, transform 0.3s, background 0.2s;
  z-index: 400;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 2px;
  box-shadow: 0 4px 16px rgba(184,74,30,0.4);
  -webkit-tap-highlight-color: transparent;
}
#topo-btn.vis { opacity: 1; pointer-events: auto; }
#topo-btn:hover, #topo-btn:active { transform: translateY(-3px); background: var(--amber); }

/* ══════════════════════════════════════════════════════
   REVEAL
══════════════════════════════════════════════════════ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.reveal.shown { opacity: 1; transform: translateY(0); }

/* ══════════════════════════════════════════════════════
   TABLET (≥ 640px) — 2 colunas
══════════════════════════════════════════════════════ */
@media (min-width: 640px) {
  .stats-strip {
    grid-template-columns: repeat(4, 1fr);
  }
  .stat-cell:nth-child(even)  { border-right: 1px solid rgba(200,134,26,0.12); }
  .stat-cell:nth-child(4)     { border-right: none; }
  .stat-cell:nth-child(3),
  .stat-cell:nth-child(4)     { border-bottom: none; }
  .stat-cell:nth-child(1),
  .stat-cell:nth-child(2),
  .stat-cell:nth-child(3)     { border-right: 1px solid rgba(200,134,26,0.12); }
  .stat-cell:nth-child(4)     { border-right: none; }

  .cards-grid { grid-template-columns: repeat(2, 1fr); }

  .gallery-strip { grid-template-columns: repeat(3, 1fr); }

  /* Galeria 3 colunas */
  .gallery-section { padding: 72px 0; }
  .gallery-inner { padding: 0 40px; }

  .hero-actions {
    grid-template-columns: auto auto;
    justify-content: flex-start;
  }
  .btn-primary, .btn-ghost { width: auto; }
}

/* ══════════════════════════════════════════════════════
   DESKTOP (≥ 1024px) — layout completo
══════════════════════════════════════════════════════ */
@media (min-width: 1024px) {
  /* Header desktop */
  header { padding: 0 40px; height: 68px; }
  .logo-sub { display: block; }
  .hamburger { display: none; }
  nav ul { display: flex !important; flex-direction: row; position: static; background: none; border: none; padding: 0; animation: none; }
  nav ul li { border: none; }
  nav ul li a {
    display: inline-flex;
    padding: 6px 0;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--worn);
  }
  nav ul.aberto li a::before { display: none; }

  /* Hero desktop */
  .hero { justify-content: flex-end; }
  .hero-content { padding: 0 60px 80px; max-width: 860px; }
  .hero-compass { right: -40px; opacity: 0.08; }
  .hero-title .line1 { font-size: clamp(6rem, 11vw, 11rem); }
  .hero-title .line2 { font-size: clamp(6rem, 11vw, 11rem); }
  .hero-actions { display: flex; gap: 16px; }

  /* Stats */
  .stats-strip { padding: 28px 60px; }
  .stat-n { font-size: 3rem; }

  /* Featured */
  .featured-section {
    padding: 100px 60px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    flex-direction: unset;
    align-items: center;
  }
  .featured-title { font-size: clamp(3rem, 5.5vw, 6.5rem); }
  .featured-card-big { aspect-ratio: 4/5; }
  .featured-tag-float {
    position: absolute;
    top: 20px; right: -16px;
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    padding: 10px 14px;
    font-size: 1rem;
  }
  .featured-visual { position: relative; }

  /* Cards */
  .cards-section { padding: 100px 60px; }
  .section-header { flex-direction: row; align-items: flex-end; }
  .cards-grid { grid-template-columns: repeat(3, 1fr); gap: 2px; }
  .card.card-wide { grid-column: span 2; flex-direction: row; }
  .card.card-wide .card-thumb-wrap { width: 44%; height: auto; min-height: 260px; flex-shrink: 0; }
  .card.card-wide h3 { font-size: 2.6rem; }
  .card:hover { transform: translateY(-5px); box-shadow: 0 16px 48px rgba(61,43,31,0.16); }
  .card:active { transform: unset; }

  /* Mapa */
  .map-section { padding: 80px 60px 100px; }
  #mapa { height: 420px; }

  /* Galeria — strip expansível */
  .gallery-section { padding: 80px 0; }
  .gallery-inner { padding: 0 60px; }
  .gallery-strip {
    display: flex;
    gap: 2px;
    margin-top: 32px;
    grid-template-columns: unset;
  }
  .gallery-cell {
    flex: 1;
    aspect-ratio: 3/4;
    transition: flex 0.5s cubic-bezier(0.4,0,0.2,1);
    border: 1px solid var(--border);
  }
  .gallery-cell:hover { flex: 3; }
  .gallery-cell::after { opacity: 0; transition: opacity 0.4s; }
  .gallery-cell:hover::after { opacity: 1; }
  .gallery-caption { opacity: 0; transform: translateY(10px); transition: all 0.35s 0.1s; font-size: 1.3rem; }
  .gallery-cell:hover .gallery-caption { opacity: 1; transform: translateY(0); }

  /* Quem somos */
  .two-col {
    padding: 80px 60px 100px;
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 60px;
    flex-direction: unset;
    align-items: start;
  }

  /* Footer */
  footer { padding: 60px 60px 30px; }
  .footer-top { grid-template-columns: 2fr 1fr 1fr; gap: 60px; }
  .footer-grid-links { display: contents; }
  .footer-bottom { flex-direction: row; text-align: left; }
  .footer-brand-name { font-size: 2.8rem; }
}

/* ══════════════════════════════════════════════════════
   SAFE AREA — iPhone com notch/dynamic island
══════════════════════════════════════════════════════ */
@supports (padding: env(safe-area-inset-bottom)) {
  footer { padding-bottom: max(28px, env(safe-area-inset-bottom)); }
  #topo-btn { bottom: max(20px, env(safe-area-inset-bottom)); }
  nav ul.aberto { padding-bottom: max(32px, env(safe-area-inset-bottom)); }
}
