/* =============================================================
   ANDOR BIOLETA — Fullscreen Travel Homepage
   Inspirado em: neuronthemes.com/travelosophy/fullscreen-home/
   Estrutura: Reset → Tokens → Header → Hero Slider → Dots/Arrows →
              Progress → Mobile Nav → Responsivo → Animações
============================================================= */

/* -------------------------------------------------------------
   1. RESET & BASE
------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font-sans);
  font-weight: 300;
  background: var(--bg);
  color: var(--text);
  overflow-y: auto; /* permite scroll para ver conteúdo abaixo do slider */
  min-height: 100dvh;
}

/* Smooth visual transition when toggling themes */
body,
.site-header,
.header-inner,
.brand-name,
.brand-sub,
.header-nav a,
.header-social a,
.header-search input,
.header-search i,
.slider-arrow,
.destinations-inner,
.destinations-title,
.dest-name,
.travel-footer,
.travel-footer__top,
.travel-footer__logo,
.travel-footer__col a,
.travel-footer__col h4,
.travel-footer__tagline,
.travel-footer__col p,
.travel-footer__bottom p,
.travel-footer__legal a,
.travel-footer__legal a::before,
.travel-footer__brand-social a,
.theme-toggle-btn {
  transition: background-color 220ms ease, color 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

/* dark theme is the default — see :root tokens */
body.theme-dark {
  --bg:              var(--palette-deep);
  --bg-surface:      rgba(255, 255, 255, 0.05);
  --bg-elevated:     rgba(255, 255, 255, 0.08);
  --text:            var(--palette-beige);
  --text-2:          rgba(255, 248, 245, 0.65);
  --text-muted:      rgba(255, 248, 245, 0.40);
  --link:            var(--palette-beige);
  --link-hover:      var(--palette-rose);
  --border:          rgba(255, 248, 245, 0.12);
  --border-hover:    rgba(255, 248, 245, 0.30);
  --btn-bg:          var(--palette-beige);
  --btn-text:        var(--palette-deep);
  --btn-hover-bg:    var(--palette-rose);
  --btn-2-border:    rgba(255, 248, 245, 0.40);
  --btn-2-text:      var(--palette-beige);
  --btn-2-hover-bg:  rgba(255, 248, 245, 0.07);
  --header-scrolled-bg:     rgba(64, 61, 76, 0.97);
  --header-scrolled-text:   var(--palette-beige);
  --header-scrolled-shadow: 0 1px 12px rgba(0, 0, 0, 0.24);
  --footer-bg:         #2E2B38;
  --footer-radial:     transparent;
  /* Overlay tokens: ensure dark theme slide transitions use neutral black overlays */
  --overlay-from: rgba(0, 0, 0, 0.68);
  --overlay-mid:  rgba(0, 0, 0, 0.32);
  --overlay-to:   rgba(0, 0, 0, 0.74);
  /* Light border used for subtle separating lines in dark theme */
  --border-light: rgba(255, 248, 245, 0.06);
}

body.theme-light {
  --bg:              var(--palette-beige);
  --bg-surface:      #ffffff;
  --bg-elevated:     #ffffff;
  --text:            var(--palette-deep);
  --text-2:          rgba(64, 61, 76, 0.62);
  --text-muted:      rgba(64, 61, 76, 0.38);
  --link:            var(--palette-deep);
  --link-hover:      var(--palette-purple);
  --border:          rgba(64, 61, 76, 0.12);
  --border-hover:    rgba(64, 61, 76, 0.26);
  /* Botões */
  --btn-bg:          var(--palette-deep);
  --btn-text:        #ffffff;
  --btn-hover-bg:    var(--palette-purple);
  --btn-2-border:    rgba(64, 61, 76, 0.35);
  --btn-2-text:      var(--palette-deep);
  --btn-2-hover-bg:  rgba(64, 61, 76, 0.05);
  /* Header scrolled */
  --header-scrolled-bg:     var(--palette-beige);
  --header-scrolled-text:   var(--palette-deep);
  --header-scrolled-shadow: 0 1px 12px rgba(64, 61, 76, 0.08);
  /* Rodapé — escuro em ambos os temas */
  --footer-bg:         var(--palette-deep);
  --footer-radial:     transparent;
  --footer-text:       rgba(255, 248, 245, 0.88);
  --footer-text-2:     rgba(251, 238, 232, 0.85);
  --footer-heading:    var(--palette-rose);
  --footer-link:       rgba(255, 248, 245, 0.78);
  --footer-link-hover: #ffffff;
  --footer-border:     rgba(255, 248, 245, 0.12);
  /* Light border for subtle dividers on light theme */
  /* Match dark theme light-lines for consistent dividers */
  --border-light: rgba(255, 248, 245, 0.06);
}

ul { list-style: none; }
a  { text-decoration: none; color: inherit; }
button { cursor: pointer; background: none; border: none; }

/* -------------------------------------------------------------
   2. DESIGN TOKENS — Sistema de Design Completo
  Paleta: #403D4C · #7A7396 · #FFF8F5 · #FBEEE8 (Blossom Aberdeen)
------------------------------------------------------------- */
:root {
  /* ── Paleta base ──────────────────────────────────────────── */
  --palette-deep:   #403D4C;   /* preto — substitui o roxo para background dark */
  --palette-purple: #7A7396;   /* roxo — rodapé + detalhes subtis apenas */
  --palette-tan:    #7A7396;   /* castanho quente — acento editorial */
  --palette-beige:  #FFF8F5;   /* bege claro — bg light / texto dark */
  --palette-rose:   #FBEEE8;   /* bege rosado — superfície secundária */

  /* ── Tipografia ───────────────────────────────────────────── */
  --font-serif:  'Cormorant Garamond', Georgia, serif;
  --font-sans:   'Josefin Sans', sans-serif;
  /* Aliases de compatibilidade */
  --brand-serif: var(--font-serif);
  --brand-sans:  var(--font-sans);

  /* ── Tokens semânticos — Dark theme (default) ─────────────── */
  --bg:              var(--palette-deep);
  --bg-surface:      rgba(255, 255, 255, 0.05);
  --bg-elevated:     rgba(255, 255, 255, 0.08);
  --text:            var(--palette-beige);
  --text-2:          rgba(255, 248, 245, 0.65);
  --text-muted:      rgba(255, 248, 245, 0.40);
  --link:            var(--palette-beige);
  --link-hover:      var(--palette-rose);
  --border:          rgba(255, 248, 245, 0.12);
  --border-hover:    rgba(255, 248, 245, 0.30);

  /* Botões */
  --btn-bg:          var(--palette-beige);
  --btn-text:        var(--palette-deep);
  --btn-hover-bg:    var(--palette-rose);
  --btn-2-border:    rgba(255, 248, 245, 0.40);
  --btn-2-text:      var(--palette-beige);
  --btn-2-hover-bg:  rgba(255, 248, 245, 0.07);

  /* Header (estado fixo com scroll) */
  --header-scrolled-bg:     rgba(64, 61, 76, 0.97);
  --header-scrolled-text:   var(--palette-beige);
  --header-scrolled-shadow: 0 1px 12px rgba(0, 0, 0, 0.24);

  /* Rodapé — sempre escuro em ambos os temas */
  --footer-bg:         #2E2B38;
  --footer-radial:     transparent;
  --footer-text:       rgba(255, 248, 245, 0.88);
  --footer-text-2:     rgba(251, 238, 232, 0.88);
  --footer-heading:    var(--palette-rose);
  --footer-link:       rgba(255, 248, 245, 0.78);
  --footer-link-hover: #ffffff;
  --footer-border:     rgba(255, 248, 245, 0.10);

  /* Hero slider overlay */
  --overlay-from: rgba(0, 0, 0, 0.68);
  --overlay-mid: rgba(0, 0, 0, 0.32);
  --overlay-to: rgba(0, 0, 0, 0.74);

  /* Progress bar */
  --progress-color: rgba(251, 238, 232, 0.80);

  /* General light border token — overridden by theme blocks above */
  --border-light: rgba(255, 248, 245, 0.06);

  /* Layout & Animação */
  --header-h:    100px;
  --slide-speed: 800ms;
  --auto-delay:  6000ms;
}

/* Local script-font removed from static testbed */

/* -------------------------------------------------------------
   3. HEADER — 3 colunas: marca | pesquisa+menu | social
------------------------------------------------------------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  border-bottom: 1px solid var(--border-light);
  /* Sem fundo sólido — deixa ver a imagem do slide */
}

/* Offset quando a barra de administração do WordPress está activa */
body.admin-bar .site-header {
  top: 32px;
}
@media screen and (max-width: 782px) {
  body.admin-bar .site-header {
    top: 46px;
  }
}

.header-inner {
  display: grid;
  /* Coluna esquerda (marca): tamanho ao conteúdo
     Coluna central: cresce para preencher
     Coluna direita (social): tamanho ao conteúdo */
  grid-template-columns: auto 1fr auto;
  align-items: start;
  /* Fundo escuro translúcido para legibilidade (cinza escuro) */
  background: linear-gradient(
    to bottom,
    rgba(40, 40, 40, 0.92) 0%,
    rgba(40, 40, 40, 0.0) 100%
  );
}

/* ---- Coluna esquerda: marca ---- */
.header-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1rem;
  border-right: 1px solid var(--border-light);
  align-self: stretch;
}

.brand-link {
  display: block;
}

.brand-name {
  display: block;
  font-family: var(--brand-serif);
  font-size: clamp(1.4rem, 2.2vw, 1.9rem);
  font-weight: 400;
  font-style: italic;
  letter-spacing: 0.01em;
  line-height: 1.15;
  white-space: nowrap;
  color: #fff;
  transition: opacity 0.2s;
}

.brand-link:hover .brand-name { opacity: 0.8; }

.brand-sub {
  display: block;
  font-family: var(--brand-sans);
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.65);
  margin-top: 0.18rem;
  white-space: nowrap;
}

/* Sticky simplified header when user scrolls down */
body.has-scrolled .site-header {
  background: var(--header-scrolled-bg);
  color: var(--header-scrolled-text);
  border-bottom-color: var(--border-light);
  box-shadow: var(--header-scrolled-shadow);
}

body.has-scrolled .header-inner {
  padding: 0.32rem 0.9rem;
  align-items: center;
  background: none !important;
  background-image: none !important;
  position: relative;
}

body.has-scrolled .brand-sub,
body.has-scrolled .header-search {
  display: none !important;
}

body.has-scrolled .brand-name {
  color: var(--header-scrolled-text);
}

body.has-scrolled .header-nav a {
  color: var(--header-scrolled-text);
  font-weight: 600;
  padding: 0 1rem;
  min-height: 34px;
}

body.has-scrolled .header-social a {
  color: var(--header-scrolled-text);
  background: transparent !important;
  border: none !important;
}

@media (max-width: 900px) {
  body.has-scrolled .header-inner { padding: 0.35rem 0.9rem; }
  body.has-scrolled .header-nav { display: none; }
}

/* Center the nav when simplified header is active */
body.has-scrolled .header-nav {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  display: flex;
  align-items: center;
}

body.has-scrolled .header-nav ul {
  display: flex;
  gap: 0.4rem;
}

body.has-scrolled .header-nav li { border-left: 0; }

/* ---- Coluna central: pesquisa + nav ---- */
.header-center {
  display: flex;
  flex-direction: column;
  align-self: stretch;
}

/* Barra de pesquisa */
.header-search {
  padding: 0.3rem 0.9rem;
  border-bottom: 1px solid var(--border-light);
}

.header-search form {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.header-search i {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.8rem;
}

.header-search input {
  flex: 1;
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.62);
  font-family: var(--brand-sans);
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.32rem 0;
  outline: none;
}

.header-search input::placeholder {
  color: rgba(255, 255, 255, 0.24);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* Menu de navegação — flex centrado, adapta-se ao nº de itens */
.header-nav ul {
  display: flex;
  align-items: stretch;
  justify-content: center;
  height: 100%;
}

.header-nav > ul > li {
  border-left: 1px solid var(--border-light);
}

.header-nav > ul > li:first-child {
  border-left: 0;
}

.header-nav > ul > li > a {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  min-height: 40px;
  font-family: var(--brand-sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: background 0.2s, color 0.2s;
  padding: 0 1.4rem;
  white-space: nowrap;
}

.header-nav > ul > li > a:hover,
.header-nav > ul > li > a[aria-current="page"] {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

/* Seta no item pai com mega-menu */
.header-nav > ul > li.menu-item-has-children > a::after {
  content: '›';
  margin-left: 0.4em;
  font-size: 0.9em;
  opacity: 0.5;
  display: inline-block;
  transform: rotate(90deg);
  transition: transform 0.2s;
}
.header-nav > ul > li.menu-item-has-children:hover > a::after {
  transform: rotate(270deg);
}

/* ---- Mega Menu ---- */
.header-nav li.menu-item-has-children {
  position: relative;
}

/* Painel escondido por defeito */
.header-nav .mega-panel {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--palette-deep, #403D4C);
  border-top: 2px solid rgba(255,255,255,0.18);
  z-index: 9999;
  padding: 1.2rem 1.6rem 1.4rem;
  box-shadow: 0 12px 32px rgba(0,0,0,0.4);
  flex-direction: row;
  gap: 0;
  width: max-content;
}

/* Mostrar ao hover */
.header-nav li.menu-item-has-children:hover > .mega-panel {
  display: flex;
}

/* Coluna por continente */
.mega-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 0 1.6rem 0 0;
  margin-right: 1.6rem;
  border-right: 1px solid rgba(255,255,255,0.08);
}
.mega-col:last-child {
  border-right: 0;
  margin-right: 0;
  padding-right: 0;
}

/* Cabeçalho do continente */
.mega-col__heading {
  display: block;
  font-family: var(--brand-sans);
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.38) !important;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  padding-bottom: 0.5rem;
  margin-bottom: 0.6rem;
  width: 100%;
  white-space: nowrap;
  transition: color 0.15s;
}
.mega-col__heading:hover {
  color: rgba(255,255,255,0.6) !important;
}

/* Card de país — linha horizontal com emoji + nome */
.mega-country {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.45rem;
  padding: 0.28rem 0.4rem;
  border-radius: 4px;
  text-decoration: none;
  transition: background 0.15s;
  width: 100%;
}
.mega-country:hover {
  background: rgba(255,255,255,0.07);
}

/* Bandeira emoji pequena */
.mega-country__flag {
  font-size: 0.95rem;
  line-height: 1;
  display: block;
  flex-shrink: 0;
}
.mega-country__flag--blank {
  display: block;
  width: 0.95rem;
  height: 0.7rem;
  background: rgba(255,255,255,0.1);
  border-radius: 2px;
}

/* Nome do país */
.mega-country__name {
  font-family: var(--brand-sans);
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85) !important;
  white-space: nowrap;
  transition: color 0.15s;
}
.mega-country:hover .mega-country__name {
  color: #fff !important;
}

/* O mega-panel tem sempre fundo escuro — forçar branco em qualquer tema */
.mega-panel a,
body.has-scrolled .mega-panel a {
  color: rgba(255,255,255,0.82) !important;
}
.mega-panel .mega-col__heading,
body.has-scrolled .mega-panel .mega-col__heading {
  color: rgba(255,255,255,0.45) !important;
}
.mega-panel a:hover {
  color: #fff !important;
}

/* ---- Coluna direita: social ---- */
.header-social {
  display: grid;
  grid-template-columns: repeat(3, auto);
  gap: 0.3rem;
  padding: 0.45rem 0.7rem;
  border-left: 1px solid var(--border-light);
  align-self: stretch;
  align-content: center;
  justify-items: center;
}

.header-social a {
  display: inline-flex;
  width: 26px;
  height: 26px;
  align-items: center;
  justify-content: center;
  border-radius: 0;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.8);
  transition: color 0.2s, opacity 0.2s;
}

.header-social a:hover {
  color: #fff;
  opacity: 0.7;
}

/* Hambúrguer — oculto no desktop */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 0.85rem;
  align-self: center;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: #fff;
  transition: transform 0.3s, opacity 0.3s, background 0.22s ease;
  transform-origin: center;
}

/* Adapta a cor do hambúrguer ao fundo do header após scroll */
body.has-scrolled .nav-toggle span {
  background: var(--header-scrolled-text);
}

/* Estado aberto (classe JS) */
.nav-toggle.is-open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* -------------------------------------------------------------
   DESTINATIONS STRIP (Where to next?)
   A compact horizontal list of visited destinations with circular
   thumbnails inside a rounded pill container.
------------------------------------------------------------- */
.destinations-strip {
  position: relative;
  width: 100%;
  z-index: 1;
  display: flex;
  justify-content: center;
  margin: 1.1rem 0 2.1rem;
  pointer-events: auto;
}

.destinations-inner {
  width: min(1220px, calc(100% - 2.4rem));
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-height: 50px;
  padding: 0.16rem 0;
  background: var(--bg-surface);
  border-radius: 0;
  border: 1px solid var(--border);
  box-shadow: 0 10px 26px rgba(0,0,0,0.06);
}

.destinations-title {
  font-family: var(--brand-serif);
  font-size: 0.95rem;
  font-weight: 600;
  font-style: italic;
  color: var(--text);
  white-space: nowrap;
  margin-right: 0.15rem;
  padding: 0.72rem 0.85rem;
}

.destinations-list::-webkit-scrollbar { height: 0; display: none; }
.destinations-list {
  -ms-overflow-style: none;
  scrollbar-width: none;
  display: flex;
  gap: 0.5rem;
  align-items: center;
  padding: 0.16rem 0.08rem;
  margin: 0;
  list-style: none;
  flex-wrap: nowrap;
  overflow-x: auto;
}

.dest-item { flex: 0 0 auto; }

.dest-item a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: inherit;
  padding: 0.38rem 0.58rem;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease, color 0.2s ease;
}

.dest-item a:hover {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.03) 100%);
  border-color: var(--border-hover);
  transform: none;
}

.dest-item a:focus-visible {
  outline: none;
  border-color: var(--palette-purple);
  box-shadow: inset 0 0 0 1px rgba(122, 115, 150, 0.35);
}

.dest-thumb {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background-size: cover;
  background-position: center;
  display: inline-block;
  border: 1px solid var(--border);
  box-shadow: none;
}

.dest-name {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--brand-sans);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text);
  white-space: nowrap;
}

.dest-name::before {
  content: "";
  width: 1.5rem;
  height: 1.5rem;
  display: inline-block;
  border-radius: 50%;
  border: 1px solid var(--border);
  background-color: rgba(122, 115, 150, 0.12);
  background-image: url("../images/compass.svg");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 0.72rem;
  flex-shrink: 0;
  transition: transform 0.18s ease, border-color 0.18s ease, filter 0.18s ease;
}

.dest-item a:hover .dest-name::before {
  transform: scale(1.06);
  border-color: var(--border-hover);
  filter: saturate(1.06) brightness(1.02);
}

/* Dark translucent variant (hero-adjacent) */
.destinations-inner.destinations--dark {
  background: rgba(6, 9, 14, 0.46);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.96);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  box-shadow: 0 8px 18px rgba(6, 9, 14, 0.45);
}
.destinations-inner.destinations--dark .destinations-title {
  color: rgba(255, 255, 255, 0.92);
  border-right-color: rgba(255, 255, 255, 0.06);
}
.destinations-inner.destinations--dark .dest-item a {
  color: rgba(255, 255, 255, 0.92);
}
.destinations-inner.destinations--dark .dest-item a:hover {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.16) 0%, rgba(255, 255, 255, 0.10) 100%);
  border-color: rgba(255, 255, 255, 0.26);
  color: #ffffff;
}
.destinations-inner.destinations--dark .dest-thumb {
  border: 1px solid rgba(255, 255, 255, 0.12);
}
.destinations-inner.destinations--dark .dest-name {
  border-right-color: var(--border);
}

.destinations-inner.destinations--dark .dest-name::before {
  border-color: rgba(255, 255, 255, 0.16);
  background-color: rgba(255, 255, 255, 0.10);
}
/* Right-edge fade mask to hint horizontal overflow (subtle, theme-aware) */
.destinations-inner { position: relative; }
.destinations-inner::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  right: 0;
  width: 48px;
  pointer-events: none;
  z-index: 6;
  opacity: 1;
  transition: opacity 200ms ease;
}

body.theme-dark .destinations-inner::after {
  background: linear-gradient(to left, rgba(6,9,14,0.95), rgba(6,9,14,0));
}
body.theme-light .destinations-inner::after {
  background: linear-gradient(to left, rgba(251,238,232,0.95), rgba(251,238,232,0));
}

/* Helpers to hide right mask when not needed or when scrolled to right edge */
.destinations-inner.no-overflow::after,
.destinations-inner.hide-right::after { opacity: 0; }

.next-destination-divider {
  width: min(640px, calc(100% - 2.4rem));
  margin: 0 auto 2.2rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  color: var(--palette-purple);
  opacity: 0.72;
}

.next-destination-divider .divider-rule {
  flex: 1;
  height: 1px;
  background: var(--border);
}

.next-destination-divider .divider-rule--fade-left {
  background: linear-gradient(to left, transparent, var(--border));
}

.next-destination-divider .divider-viola-icon {
  flex-shrink: 0;
}

@media (max-width: 640px) {
  .next-destination-divider {
    width: calc(100% - 2rem);
    gap: 1rem;
    margin-bottom: 1.8rem;
  }
}

/* Truncate names and adjust spacing responsively */
.dest-name {
  max-width: 7.2rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
}

@media (min-width: 900px) {
  .dest-name { max-width: 10rem; }
  .dest-item a { padding: 0.45rem 0.9rem; gap: 0.75rem; }
  .dest-thumb { width: 34px; height: 34px; }
}

@media (min-width: 1200px) {
  .dest-name { max-width: 12.5rem; }
  .dest-item a { padding: 0.55rem 1rem; gap: 1rem; }
  .dest-thumb { width: 36px; height: 36px; }
}

/* -------------------------------------------------------------
  border-color: var(--border);
------------------------------------------------------------- */
/* ---------------------------------------------------------------
   Archive / Category hero banner
--------------------------------------------------------------- */
.archive-hero {
  position: relative;
  min-height: 280px;
  display: flex;
  align-items: flex-end;
  background: var(--palette-deep);
  background-image: var(--hero-bg, none);
  background-size: cover;
  background-position: center;
  overflow: hidden;
  margin-top: var(--header-h);
}

.archive-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(30, 27, 40, 0.90) 0%,
    rgba(30, 27, 40, 0.46) 55%,
    rgba(30, 27, 40, 0.18) 100%
  );
}

.archive-hero__content {
  position: relative;
  z-index: 1;
  width: min(1240px, calc(100% - 2.4rem));
  margin: 0 auto;
  padding: clamp(2rem, 4vw, 3.5rem) 0 clamp(1.8rem, 3.5vw, 3rem);
}

.archive-hero__kicker {
  font-family: var(--brand-sans);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--palette-purple);
  margin-bottom: 0.55rem;
}

.archive-hero--has-image .archive-hero__kicker {
  color: rgba(255, 248, 245, 0.72);
}

.archive-hero__title {
  font-family: var(--brand-serif);
  font-size: clamp(2rem, 5vw, 3.6rem);
  font-weight: 500;
  line-height: 1.05;
  color: #fff;
  margin-bottom: 0.5rem;
}

.archive-hero__desc {
  font-family: var(--brand-sans);
  font-size: 0.92rem;
  color: rgba(255, 248, 245, 0.75);
  max-width: 52ch;
  line-height: 1.6;
  margin-top: 0.5rem;
}

/* Archive: grid com 3 colunas e itens mais compactos */
.archive-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 1024px) {
  .archive-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .archive-grid {
    grid-template-columns: 1fr;
  }
}

.archive-grid .post-card-title {
  font-family: var(--brand-serif);
  font-size: 1.15rem;
  line-height: 1.2;
  font-weight: 500;
  padding: 0 0.9rem;
  margin-bottom: 0.35rem;
}

.archive-grid .post-card-excerpt {
  padding: 0 0.9rem;
  font-size: 0.86rem;
  color: var(--text-2);
  margin-bottom: 0.6rem;
}

.archive-grid .post-card-meta {
  padding: 0 0.9rem;
}

.post-date {
  font-family: var(--brand-sans);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* Active category highlight in sidebar */
.categories-widget .current-cat a {
  color: var(--palette-purple);
  font-weight: 700;
}

.categories-widget .current-cat a::before {
  border-color: rgba(122, 115, 150, 0.5);
  background-color: rgba(122, 115, 150, 0.18);
}

/* Empty state */
.archive-empty {
  font-family: var(--brand-sans);
  font-size: 0.95rem;
  color: var(--text-2);
  padding: 2rem 0;
}

/* Pagination */
.navigation.pagination {
  padding-top: 2.5rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.page-numbers {
  font-family: var(--brand-sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-2);
  padding: 0.45rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: 4px;
  text-decoration: none;
  transition: color 0.18s ease, border-color 0.18s ease, background-color 0.18s ease;
}

.page-numbers:hover {
  color: var(--palette-purple);
  border-color: var(--palette-purple);
  background-color: rgba(122, 115, 150, 0.06);
}

.page-numbers.current {
  color: #fff;
  background-color: var(--palette-deep);
  border-color: var(--palette-deep);
}

.page-numbers.dots {
  border-color: transparent;
  background: none;
  padding: 0.45rem 0.25rem;
}

/* ---------------------------------------------------------------
   Category Special: Natal — Elegant Christmas Edition
--------------------------------------------------------------- */

body.category-natal {
  --natal-gold:        #b8843a;
  --natal-gold-light:  #ddb86a;
  --natal-gold-soft:   #f0dbb2;
  --natal-crimson:     #7c1f3a;
  --natal-green:       #1c4535;
  --natal-green-mid:   #2d6b50;
  --natal-cream:       #fdf8f2;
  --natal-dark:        #0f1c13;
}

/* Header transparente no topo, mas com véu escuro para legibilidade
   em categorias, tags e taxonomias */
body.category:not(.has-scrolled) .header-inner,
body.tag:not(.has-scrolled) .header-inner,
body.tax:not(.has-scrolled) .header-inner {
  background: linear-gradient(
    to bottom,
    rgba(16, 16, 16, 0.34) 0%,
    rgba(16, 16, 16, 0.08) 58%,
    rgba(16, 16, 16, 0.02) 100%
  );
  backdrop-filter: blur(6px) saturate(108%);
  -webkit-backdrop-filter: blur(6px) saturate(108%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

body.category:not(.has-scrolled) .site-header,
body.tag:not(.has-scrolled) .site-header,
body.tax:not(.has-scrolled) .site-header {
  border-bottom-color: transparent;
}

/* Em arquivos de taxonomia, o hero começa no topo para ficar por trás do header */
body.category .archive-hero,
body.tag .archive-hero,
body.tax .archive-hero {
  margin-top: 0;
  min-height: clamp(420px, 58vw, 620px);
  background-position: center 28%;
}

/* ── Hero: cinematic, tall, atmospheric ── */
body.category-natal .archive-hero {
  min-height: clamp(460px, 60vw, 660px);
}

/* Warm bokeh-light glows */
body.category-natal .archive-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 58% 48% at 16% 26%, rgba(184, 132, 58, 0.30), transparent),
    radial-gradient(ellipse 46% 38% at 84% 18%, rgba(184, 132, 58, 0.24), transparent),
    radial-gradient(ellipse 70% 42% at 52% 4%,  rgba(124, 31, 58, 0.22), transparent);
  pointer-events: none;
  z-index: 1;
}

/* Forest-night gradient overlay */
body.category-natal .archive-hero__overlay {
  background: linear-gradient(
    to top,
    rgba(10, 20, 15, 0.97) 0%,
    rgba(16, 34, 26, 0.72) 44%,
    rgba(12, 22, 18, 0.58) 100%
  );
}

/* Kicker: warm gold with ✦ star ornaments */
body.category-natal .archive-hero__kicker {
  color: var(--natal-gold-light);
  letter-spacing: 0.30em;
  font-size: 0.68rem;
}

body.category-natal .archive-hero__kicker::before {
  content: "✦  ";
  opacity: 0.72;
}

body.category-natal .archive-hero__kicker::after {
  content: "  ✦";
  opacity: 0.72;
}

/* Title: oversized, warm ivory with golden glow */
body.category-natal .archive-hero__title {
  font-size: clamp(3rem, 7.5vw, 5.8rem);
  color: #f8f0e2;
  text-shadow:
    0 0 80px rgba(184, 132, 58, 0.50),
    0 4px 36px rgba(0, 0, 0, 0.50);
  letter-spacing: 0.01em;
}

body.category-natal .archive-hero__desc {
  color: rgba(248, 240, 226, 0.80);
  max-width: 560px;
  margin: 0.8rem auto 0;
}

/* ── Decorative divider (between hero and grid) ── */
.natal-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 2.8rem 2rem 0.4rem;
}

.natal-divider__line {
  flex: 1;
  max-width: 180px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(184, 132, 58, 0.50));
}

.natal-divider__line:last-child {
  background: linear-gradient(90deg, rgba(184, 132, 58, 0.50), transparent);
}

.natal-divider__icon {
  color: var(--natal-gold);
  font-size: 0.60rem;
  opacity: 0.65;
}

.natal-divider__text {
  font-family: var(--brand-sans);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.30em;
  text-transform: uppercase;
  color: var(--natal-green);
  white-space: nowrap;
}

/* ── Blog section: warm cream canvas ── */
body.category-natal .blog-home {
  background: var(--natal-cream);
  padding-top: 0;
}

/* ── Cards: premium with gold borders & gradient accent ── */
body.category-natal .archive-grid .post-card {
  background: #ffffff;
  border: 1px solid rgba(184, 132, 58, 0.22);
  box-shadow:
    0 2px 12px rgba(15, 28, 20, 0.07),
    0 8px 24px rgba(15, 28, 20, 0.05);
  overflow: hidden;
  transition:
    transform 450ms cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 450ms cubic-bezier(0.22, 1, 0.36, 1),
    border-color 300ms ease;
}

/* Remove accent bar on top of cards */
body.category-natal .archive-grid .post-card::before {
  content: none;
  display: none;
}

/* Hover: lift + golden shadow glow */
body.category-natal .archive-grid .post-card:hover {
  transform: translateY(-7px);
  box-shadow:
    0 22px 58px rgba(15, 28, 20, 0.14),
    0 4px 18px rgba(184, 132, 58, 0.14);
  border-color: rgba(184, 132, 58, 0.50);
}

/* Kicker: forest green */
body.category-natal .archive-grid .post-kicker {
  color: var(--natal-green);
}

body.category-natal .archive-grid .post-kicker a {
  color: inherit;
}

/* Titles: deep near-black, hover to forest green */
body.category-natal .archive-grid .post-card-title a {
  color: var(--natal-dark);
}

body.category-natal .archive-grid .post-card-title a:hover {
  color: var(--natal-green);
}

/* Date: warm gold */
body.category-natal .archive-grid .post-date {
  color: var(--natal-gold);
  opacity: 0.85;
  font-size: 0.72rem;
  letter-spacing: 0.05em;
}

.blog-home {
  border-color: var(--border);
  color: var(--text);
  padding: clamp(2rem, 5vw, 4rem) 0 clamp(2.4rem, 6vw, 4.4rem);
}

.blog-home-inner {
  width: min(1240px, calc(100% - 2.4rem));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: clamp(1.2rem, 2.4vw, 2rem);
  align-items: start;
}

.post-featured {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 1.1rem;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 0;
  overflow: hidden;
  box-shadow: 0 15px 32px rgba(0, 0, 0, 0.10);
}

/* Featured post: span full-width of the blog container, then grid below handles sidebar */
.blog-home-inner > .post-featured {
  grid-column: 1 / -1;
  width: 100%;
  margin-bottom: 1.1rem;
}

.post-featured-media {
  min-height: 360px;
  background-size: cover;
  background-position: center;
}

/* Use CSS vars for primary/secondary images so hover can swap to the second image */
.post-featured-media {
  background-image: var(--bg, none);
  transition: background-image 160ms linear;
}

.post-featured:hover .post-featured-media {
  background-image: var(--bg2, var(--bg));
}

.post-featured-content {
  padding: 1.25rem 1.25rem 1.3rem 0.15rem;
  display: flex;
  flex-direction: column;
}

.post-featured-content .post-kicker,
.post-featured-content h2 {
  padding-left: 0;
}

.post-featured-content .post-excerpt,
.post-featured-content .post-link {
  padding-left: 1.2rem;
}

.post-kicker {
  font-family: var(--brand-sans);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--palette-tan);
  margin-bottom: 0.7rem;
}

.post-featured h2 {
  font-family: var(--brand-serif);
  font-size: clamp(1.7rem, 2.2vw, 2.35rem);
  line-height: 1.02;
  font-weight: 500;
  margin-bottom: 0.9rem;
}

.post-featured h2 a:hover,
.post-card h3 a:hover {
  opacity: 0.72;
}

.post-excerpt {
  font-family: var(--brand-sans);
  font-size: 0.95rem;
  line-height: 1.62;
  color: var(--text-2);
  margin-bottom: 1rem;
}

.post-link {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  font-family: var(--brand-sans);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--link);
  border-bottom: 1px solid var(--border);
  width: fit-content;
}

.post-grid {
  margin-top: 1.15rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.25rem, 3vw, 2.4rem);
}

@media (min-width: 1200px) {
  .post-grid {
    gap: 2.8rem;
  }
}

/* Improve visual separation between posts:
   - larger grid gap on desktop
   - clear top border between stacked posts on small screens */
@media (max-width: 900px) {
  .post-grid .post-card + .post-card,
  .blog-main .post-card + .post-card {
    border-top: 1px solid var(--border);
    padding-top: 1rem;
    margin-top: 0.8rem;
  }
}

/* -------------------------------------------------------------
   BLOG ARCHIVE — grelha de posts
------------------------------------------------------------- */
.blog-archive-wrap {
  width: min(1240px, calc(100% - 2.4rem));
  margin: 0 auto;
  padding: clamp(3rem, 6vw, 5rem) 0;
}

.blog-main {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2.4rem;
}

.blog-home .blog-main {
  grid-template-columns: 1fr;
  gap: 1.6rem;
}

.blog-more-posts {
  margin-top: 1.1rem;
}

.blog-more-posts__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 44px;
  padding: 0 1.1rem;
  border: 1px solid var(--btn-2-border);
  background: transparent;
  color: var(--btn-2-text);
  font-family: var(--brand-sans);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: background-color 220ms ease, border-color 220ms ease, color 220ms ease;
}

.blog-more-posts__btn:hover {
  background: var(--btn-2-hover-bg);
  border-color: var(--border-hover);
}

/* Card */
.post-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 0;
  overflow: hidden;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.07);
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s, border-color 0.2s;
}

.post-card:hover {
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.12);
  border-color: var(--border-hover);
}

.post-card-body {
  padding: 1rem 1.2rem 1.3rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.post-card-title,
.post-card h3 {
  font-family: var(--brand-serif);
  font-size: 1.25rem;
  line-height: 1.15;
  font-weight: 500;
  margin-bottom: 0.55rem;
}

.post-card-title a,
.post-card h3 a { color: inherit; }
.post-card-title a:hover,
.post-card h3 a:hover { opacity: 0.72; }

.post-card-excerpt {
  font-family: var(--brand-sans);
  font-size: 0.86rem;
  line-height: 1.6;
  color: var(--text-2);
  flex: 1;
  margin-bottom: 0.9rem;
}

.post-card .post-kicker { padding: 0; margin-bottom: 0.45rem; }

.post-card .post-link {
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  margin-top: auto;
}

.post-card-media {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  background-size: cover;
  background-position: center;
  margin-bottom: 0.7rem;
  position: relative;
  overflow: hidden;
}

.post-card-media--placeholder {
  background:
    radial-gradient(circle at top left, rgba(122, 115, 150, 0.2), transparent 55%),
    linear-gradient(135deg, rgba(255, 248, 245, 0.96), rgba(251, 238, 232, 0.9));
  border-bottom: 1px solid var(--border);
}

/* Post cards: smooth crossfade to secondary image on hover */
.post-card-media {
  background-image: var(--bg, none);
}

.post-card-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--bg2, var(--bg, none));
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 550ms cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
}

.post-card:hover .post-card-media::after,
.post-card-media:hover::after {
  opacity: 1;
}

.post-card h3 {
  font-family: var(--brand-serif);
  font-size: 1.25rem;
  line-height: 1.12;
  font-weight: 500;
}

.blog-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.sidebar-widget {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 0;
  padding: 1rem 1rem 1.1rem;
}

.sidebar-widget h3 {
  font-family: var(--brand-serif);
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 0.7rem;
}

.sidebar-widget p {
  font-family: var(--brand-sans);
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--text-2);
}

/* ---------------------------------------------------------------
   Travel icon divider
--------------------------------------------------------------- */
.travel-icon-divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 2rem var(--side-pad);
  max-width: var(--max-w);
  margin: 0 auto;
  color: var(--palette-purple);
  opacity: 0.5;
}
.travel-icon-divider__line {
  flex: 1;
  height: 1px;
  background: currentColor;
  border-radius: 1px;
}
.travel-icon-divider__icon {
  width: 2rem;
  height: 2rem;
  flex-shrink: 0;
}
.travel-icon-divider__label {
  font-family: var(--brand-sans);
  font-size: 0.62rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  white-space: nowrap;
  flex-shrink: 0;
}

/* ---------------------------------------------------------------
   About-me sidebar widget
--------------------------------------------------------------- */
.about-me-widget {
  padding: 0;
  position: relative;
  overflow: visible;
  z-index: 0;
}

.about-me-photo {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.about-me-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Viola motif: line-art, centrada e sobreposta à foto e caixa de texto */
.about-me-motif {
  position: relative;
  display: block;
  margin-top: -6.2rem; /* sobe o ícone mais acima, logo a seguir à foto */
  margin-left: -3.2rem; /* desloca para a esquerda */
  width: 10rem;
  height: 10rem;
  color: #ffffff;
  pointer-events: none;
  z-index: 9999;
  filter: drop-shadow(0 14px 28px rgba(0,0,0,0.22));
  transform: none;
}

.about-me-motif svg {
  width: 100%;
  height: 100%;
  display: block;
}

.theme-light .about-me-motif,
body.theme-light .about-me-motif {
  color: #9D98B8;
  filter: drop-shadow(0 6px 16px rgba(64,61,76,0.06));
}

.theme-dark .about-me-motif,
body.theme-dark .about-me-motif {
  color: #FBEEE8;
  filter: drop-shadow(0 6px 16px rgba(64,61,76,0.06));
}

@media (max-width: 720px) {
  .about-me-motif {
    left: 50%;
    transform: translateX(-50%);
    margin-top: -3.8rem;
    margin-left: 0;
    width: 6.2rem;
    height: 6.2rem;
  }
}

.about-me-body {
  padding: 1rem 1.3rem 1.5rem; /* espaço extra para não colidir com o motivo */
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.55rem;
}

.about-me-kicker {
  font-family: var(--brand-sans);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--palette-purple);
  margin: 0;
}

.about-me-body h3 {
  font-family: var(--brand-serif);
  font-size: 1.45rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.25;
  margin-bottom: 0.1rem;
}

.about-me-body p {
  font-family: var(--brand-sans);
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--text-2);
  margin: 0;
}

.about-me-cta {
  display: inline-block;
  margin-top: 0.5rem;
  padding: 0.6rem 1.6rem;
  font-family: var(--brand-sans);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  background: var(--palette-purple);
  color: #fff;
  text-decoration: none;
  border: 1px solid var(--palette-purple);
  transition: background 0.18s ease, transform 0.12s ease, box-shadow 0.18s ease;
  box-shadow: 0 4px 14px rgba(122,115,150,0.13);
}

.about-me-cta:hover,
.about-me-cta:focus-visible {
  background: var(--palette-deep);
  border-color: var(--palette-deep);
  color: var(--palette-beige);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(64,61,76,0.18);
  outline: none;
}

body.theme-light .about-me-cta {
  background: var(--palette-deep);
  border-color: var(--palette-deep);
  color: var(--palette-beige);
}

body.theme-light .about-me-cta:hover,
body.theme-light .about-me-cta:focus-visible {
  background: var(--palette-purple);
  border-color: var(--palette-purple);
  color: #fff;
}

.categories-widget ul {
  display: flex;
  flex-direction: column;
  gap: 0;
  list-style: none;
  margin-top: 0.1rem;
}

.categories-widget a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--brand-sans);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--text-2);
  text-decoration: none;
  padding: 0.6rem 0.25rem;
  border-bottom: 1px solid var(--border);
  transition: color 0.18s ease, padding-left 0.18s ease;
}

.categories-widget a:hover {
  color: var(--palette-purple);
  padding-left: 0.55rem;
}

.categories-widget span {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  min-width: 1.5rem;
  height: 1.5rem;
  padding: 0 0.38rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(64, 61, 76, 0.07);
  color: var(--text-muted);
  border-radius: 99px;
  flex-shrink: 0;
  transition: background 0.18s ease, color 0.18s ease;
}

body.theme-dark .categories-widget span {
  background: rgba(255, 248, 245, 0.08);
}

.categories-widget a:hover span {
  background: rgba(122, 115, 150, 0.18);
  color: var(--palette-purple);
}

/* ---------------------------------------------------------------
   Per-category photo thumbnails — destinations strip only
--------------------------------------------------------------- */

/* Áustria */
.dest-item a[href*="/austria/"] .dest-name::before {
  background-image: url("../../../../uploads/2024/07/Vienna-schonburn-palace-1-1-150x150.jpg");
  background-size: cover;
}

/* Espanha */
.dest-item a[href*="/espanha/"] .dest-name::before {
  background-image: url("../../../../uploads/2024/12/madrid-sol-1-150x150.jpg");
  background-size: cover;
}

/* França */
.dest-item a[href*="/franca/"] .dest-name::before {
  background-image: url("../../../../uploads/2023/09/Colmar-alsace-france-visit-26-1-150x150.jpg");
  background-size: cover;
}

/* Suíça */
.dest-item a[href*="/suica/"] .dest-name::before {
  background-image: url("../../../../uploads/2023/08/Basel-Switzerland-guide-13-1-150x150.jpg");
  background-size: cover;
}

/* Reino Unido */
.dest-item a[href*="/reino-unido/"] .dest-name::before {
  background-image: url("../../../../uploads/2024/12/UK-London-Underground-1-150x150.jpg");
  background-size: cover;
}

/* Polónia */
.dest-item a[href*="/polonia/"] .dest-name::before {
  background-image: url("../../../../uploads/2024/12/Poland-Krakow-christmas-guide-17-150x150.jpg");
  background-size: cover;
}

/* Portugal */
.dest-item a[href*="/portugal/"] .dest-name::before {
  background-image: url("../../../../uploads/2024/04/Madeira-Funchal-casas-santana-1-150x150.jpg");
  background-size: cover;
}

/* Natal */
.dest-item a[href*="/natal/"] .dest-name::before {
  background-image: url("../../../../uploads/2024/12/Porto-Christmas-2024-13-150x150.jpg");
  background-size: cover;
}

/* Viagens */
.dest-item a[href*="category/viagens/"] .dest-name::before {
  background-image: url("../../../../uploads/2024/12/madrid-travel-roteiro-3-150x150.jpg");
  background-size: cover;
}

.newsletter-widget form {
  margin-top: 0.75rem;
  display: grid;
  gap: 0.6rem;
}

.newsletter-widget input {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 0;
  padding: 0.66rem 0.72rem;
  font-family: var(--brand-sans);
  font-size: 0.88rem;
  color: var(--text);
  background: var(--bg-surface);
}

.newsletter-widget button {
  border: none;
  border-radius: 0;
  background: var(--btn-bg);
  color: var(--btn-text);
  font-family: var(--brand-sans);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  padding: 0.7rem 0.8rem;
}

.newsletter-widget button:hover {
  opacity: 0.85;
}

@media (max-width: 900px) {
  .destinations-inner {
    min-height: 0;
    padding: 0;
  }
  .destinations-title {
    padding: 0.6rem 0.65rem;
    font-size: 0.86rem;
  }
  .dest-thumb { width: 26px; height: 26px; }
  .dest-name { font-size: 0.72rem; }

  .blog-home-inner {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .post-featured {
    grid-template-columns: 1fr;
  }

  .post-featured-media {
    min-height: 260px;
  }

  .post-featured-content {
    padding: 0 1rem 1.05rem;
  }
}


/* -------------------------------------------------------------
   4. MOBILE NAV DRAWER
------------------------------------------------------------- */
.mobile-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 99;
  background: rgba(64, 61, 76, 0.97);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  /* Animação de entrada */
  opacity: 0;
  pointer-events: none;
  transform: translateY(-12px);
  transition: opacity 0.35s, transform 0.35s;
}

.mobile-nav:not([hidden]) {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0);
}

/* hidden attr precisa ser sobreposto quando JS remove */
.mobile-nav[hidden] {
  display: flex !important; /* mantém display para a transição funcionar */
}

.mobile-nav ul {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
}

.mobile-nav a {
  font-family: var(--brand-serif);
  font-size: clamp(1.8rem, 6vw, 3rem);
  font-weight: 300;
  font-style: italic;
  color: rgba(255, 255, 255, 0.9);
  letter-spacing: 0.02em;
  transition: color 0.2s;
}

.mobile-nav a:hover { color: #fff; }

/* -------------------------------------------------------------
   5. HERO SLIDER
------------------------------------------------------------- */
.hero {
  position: relative;
  width: 100%;
  min-height: 100dvh; /* mantém o slider full-height, mas permite conteúdo abaixo */
  z-index: 0;
  overflow: hidden;
}

/* Cada slide */
.slide {
  position: absolute;
  inset: 0;
  background-image: var(--bg);
  background-size: cover;
  background-position: center;
  /* Lazy: carrega o background apenas quando activo (JS muda a classe) */
  opacity: 0;
  transition: opacity var(--slide-speed) ease;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  /* Pointer-events off nos inactivos para não bloquear cliques */
  pointer-events: none;
}

.slide.active {
  opacity: 1;
  pointer-events: all;
}

/* Dark theme: ensure slide fallback background is pure black (no purple bleed) */
body.theme-dark .slide {
  background-color: #000;
}

/* Overlay gradiente sobre a imagem */
.slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    160deg,
    var(--overlay-from) 0%,
    var(--overlay-mid)  50%,
    var(--overlay-to)  100%
  );
  pointer-events: none;
}

/* Conteúdo textual do slide */
.slide-content {
  position: relative;
  z-index: 2;
  max-width: 840px;
  padding: 0 clamp(1.5rem, 5vw, 4rem);
  padding-bottom: 5rem;
  /* Animação de entrada */
  transform: translateY(24px);
  opacity: 0;
  transition:
    transform 0.7s 0.25s cubic-bezier(0.22, 1, 0.36, 1),
    opacity   0.7s 0.25s ease;
}

.slide.active .slide-content {
  transform: translateY(0);
  opacity: 1;
}

/* Eyebrow (categoria / país) */
.slide-eyebrow {
  font-family: var(--brand-sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 0.6rem;
}

/* Título principal */
.slide-title {
  font-family: var(--brand-serif);
  font-size: clamp(2.8rem, 7vw, 7rem);
  font-weight: 300;
  line-height: 0.96;
  letter-spacing: -0.02em;
  color: #fff;
  margin-bottom: 1rem;
}

/* Data do slide (colocada abaixo do título) */
.slide-date {
  font-family: var(--brand-sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.78);
  margin-top: 0.25rem;
  margin-bottom: 0.9rem;
}

.slide-title em {
  font-style: italic;
  font-weight: 300;
}

/* Subtítulo */
.slide-sub {
  font-family: var(--brand-sans);
  font-size: clamp(0.88rem, 1.4vw, 1rem);
  font-weight: 300;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.82);
  max-width: 480px;
  margin-bottom: 1.6rem;
}

/* CTA */
.slide-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--brand-sans);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #fff;
  padding: 0.72rem 1.4rem;
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 2px;
  transition: background 0.25s, border-color 0.25s;
}

.slide-cta:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: #fff;
}

.slide-cta i {
  font-size: 0.72rem;
  transition: transform 0.25s;
}

.slide-cta:hover i { transform: translateX(4px); }

/* Meta (data + tempo) — canto inferior direito abaixo do counter */
.slide-meta {
  position: absolute;
  z-index: 2;
  bottom: 1.4rem;
  right: clamp(1.5rem, 5vw, 4rem);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--brand-sans);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.65);
  opacity: 0;
  transform: translateY(8px);
  transition:
    opacity  0.6s 0.45s ease,
    transform 0.6s 0.45s ease;
}

.slide.active .slide-meta {
  opacity: 1;
  transform: translateY(0);
}

/* -------------------------------------------------------------
   6. SETAS DE NAVEGAÇÃO
------------------------------------------------------------- */
.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 50%;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
  transition: background 0.25s, border-color 0.25s, color 0.25s;
}

.slider-arrow:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--border-hover);
  color: #fff;
}

.slider-arrow--prev { left: clamp(1rem, 3vw, 2.5rem); }
.slider-arrow--next { right: clamp(1rem, 3vw, 2.5rem); }

/* -------------------------------------------------------------
   7. DOTS
------------------------------------------------------------- */
.slider-dots {
  position: absolute;
  bottom: 1.4rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  gap: 0.5rem;
}

.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.38);
  border: none;
  padding: 0;
  transition: background 0.3s, transform 0.3s;
}

.dot.active,
.dot:hover {
  background: #fff;
  transform: scale(1.25);
}

/* -------------------------------------------------------------
   8. CONTADOR NUMÉRICO
------------------------------------------------------------- */
.slider-counter {
  position: absolute;
  bottom: 1.3rem;
  right: clamp(1.5rem, 5vw, 4rem);
  z-index: 10;
  display: flex;
  align-items: baseline;
  gap: 0.22rem;
  font-family: var(--brand-sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.6);
}

.counter-current {
  font-size: 1rem;
  color: #fff;
}

/* -------------------------------------------------------------
   9. BARRA DE PROGRESSO AUTOMÁTICO
------------------------------------------------------------- */
.progress-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 10;
  height: 2px;
  background: rgba(255, 255, 255, 0.15);
}

.progress-bar__fill {
  height: 100%;
  width: 0%;
  background: var(--progress-color);
  /* A animação é controlada por JS (via CSS transition reset) */
  transition: width var(--auto-delay) linear;
}

/* Estado running — JS adiciona esta classe */
.progress-bar__fill.running {
  width: 100%;
}

/* -------------------------------------------------------------
   10. RESPONSIVO
------------------------------------------------------------- */

/* Tablet: 900px */
@media (max-width: 900px) {
  .header-inner {
    grid-template-columns: 1fr auto auto;
    grid-template-rows: auto auto;
  }

  /* Marca ocupa toda a largura no topo */
  .header-brand {
    grid-column: 1;
    border-right: 0;
    border-bottom: 1px solid var(--border-light);
    flex-direction: row;
    gap: 0.7rem;
    padding: 0.65rem 1rem;
    align-items: center;
  }

  /* Centro (pesquisa + nav) — oculto, aparece no drawer mobile */
  .header-center { display: none; }

  /* Social */
  .header-social {
    grid-column: 2;
    grid-row: 1;
    border-left: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
    grid-template-columns: repeat(5, auto);
    padding: 0.65rem 0.8rem;
    align-self: auto;
  }

  /* Hambúrguer visível */
  .nav-toggle {
    display: flex;
    grid-column: 3;
    grid-row: 1;
  }

  /* Ajustes de texto no slide */
  .slide-content { padding-bottom: 4.5rem; }
  .slide-title { font-size: clamp(2.2rem, 10vw, 4rem); }
}

/* Mobile: 600px */
@media (max-width: 600px) {
  .brand-sub { display: none; }

  .header-social {
    display: none; /* reduz ruído no mobile; só hambúrguer */
  }

  .header-inner {
    grid-template-columns: 1fr auto;
  }

  .nav-toggle {
    grid-column: 2;
  }

  .slide-content {
    padding: 0 1.2rem;
    padding-bottom: 4rem;
  }

  .slide-title { font-size: clamp(1.9rem, 12vw, 3rem); }
  .slide-sub { font-size: 0.84rem; }

  .slider-arrow {
    width: 36px;
    height: 36px;
    font-size: 0.78rem;
  }

  .slider-arrow--prev { left: 0.7rem; }
  .slider-arrow--next { right: 0.7rem; }

  .slider-counter { display: none; }

  .post-grid {
    grid-template-columns: 1fr;
  }

  .post-featured h2 {
    font-size: 1.66rem;
  }
}

/* -------------------------------------------------------------
   TRAVEL FOOTER — responsivo
------------------------------------------------------------- */

/* Responsivo: ocultar colunas e newsletter */
@media (max-width: 760px) {
  .travel-footer__col[aria-label="Destinos"],
  .travel-footer__col[aria-label="Artigos populares"],
  .travel-footer__newsletter {
    display: none;
  }

  .travel-footer__top {
    grid-template-columns: 1fr;
    gap: 0;
    padding-bottom: 1.8rem;
  }

  .travel-footer__brand {
    grid-column: 1;
    grid-row: 1;
    text-align: center;
  }

  .travel-footer__logo {
    justify-content: center;
  }

  .travel-footer__brand-social {
    justify-content: center;
  }

  .travel-footer__inner {
    padding: 2.6rem 0 1rem;
  }

  /* Bottom bar: empilhar verticalmente */
  .travel-footer__bottom {
    flex-direction: column;
    align-items: center;
    gap: 0.9rem;
    text-align: center;
  }

  .travel-footer__bottom p {
    order: unset;
    margin-left: 0;
    font-size: 0.82rem;
    text-align: center;
  }

  .travel-footer__legal {
    flex-wrap: wrap;
    gap: 0.9rem;
    justify-content: center;
  }
}

/* -------------------------------------------------------------
    border-bottom: 1px solid var(--border);
------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .slide,
  .slide-content,
  .slide-meta,
  .progress-bar__fill {
    transition: none;
  }

  body,
  .site-header,
  .header-inner,
  .brand-name,
  .brand-sub,
  .header-nav a,
  .header-social a,
  .header-search input,
  .header-search i,
  .slider-arrow,
  .destinations-inner,
  .destinations-title,
  .dest-name,
  .travel-footer,
  .travel-footer__top,
  .travel-footer__logo,
  .travel-footer__col a,
  .travel-footer__col h4,
  .travel-footer__tagline,
  .travel-footer__col p,
  .travel-footer__bottom p,
  .travel-footer__legal a,
  .travel-footer__legal a::before,
  .travel-footer__brand-social a,
  .theme-toggle-btn {
    transition: none;
  }
}

/* Quick override: esconder o subtítulo do cabeçalho */
.brand-sub { display: none !important; }

/* -------------------------------------------------------------
   TRAVEL FOOTER — large multi-column footer
------------------------------------------------------------- */
.travel-footer {
  margin-top: 2rem;
  background: linear-gradient(180deg, var(--footer-bg) 0%, var(--footer-bg) 100%);
  color: var(--footer-text);
  position: relative;
}

.travel-footer__inner {
  width: min(1220px, calc(100% - 2.4rem));
  margin: 0 auto;
  padding: 4rem 0 1.35rem;
}

.travel-footer__top {
  display: grid;
  /* three equal columns; centre column reserved for 'Artigos Populares' */
  grid-template-columns: 1fr 1fr 1fr;
  gap: 2.2rem;
  padding-bottom: 2.4rem;
  border-bottom: 1px solid var(--footer-border);
}

/* Position specific footer sections into a 3-column layout */
.travel-footer__brand { grid-column: 1; grid-row: 1; }
.travel-footer__col[aria-label="Destinos"] { grid-column: 3; grid-row: 1; }
.travel-footer__col[aria-label="Artigos populares"] { grid-column: 2; grid-row: 1 / span 2; }

.travel-footer__col h4 {
  font-family: var(--brand-sans);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--footer-heading);
  margin-bottom: 1rem;
}

.travel-footer__col ul {
  display: grid;
  gap: 0.75rem;
}

.travel-footer__col a {
  color: var(--footer-link);
  font-family: var(--brand-sans);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.32;
  transition: color 0.2s, opacity 0.2s;
}

.travel-footer__col a:hover {
  color: var(--footer-link-hover);
  opacity: 0.96;
}

a.travel-footer__logo {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--brand-serif);
  font-size: clamp(1.4rem, 2.2vw, 1.9rem);
  font-style: italic;
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 1.15;
  color: #fff;
  margin-bottom: 0.9rem;
}

.travel-footer__logo svg {
  width: 1.05em;
  height: 1.05em;
  flex: 0 0 auto;
  filter: drop-shadow(0 2px 5px rgba(154, 124, 200, 0.28));
}

.travel-footer__tagline {
  max-width: 34ch;
  font-family: var(--brand-sans);
  font-size: 1rem;
  line-height: 1.62;
  color: var(--footer-text-2);
}

.travel-footer__col p {
  max-width: 28ch;
  color: var(--footer-text-2);
  font-family: var(--brand-sans);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.travel-footer__social {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 1rem;
}

.travel-footer__social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--footer-border);
  color: var(--footer-link);
  font-size: 0.9rem;
}

.travel-footer__social a:hover {
  border-color: var(--footer-link-hover);
  color: var(--footer-link-hover);
  opacity: 1;
}

.travel-footer__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--palette-purple);
  color: var(--footer-link);
  padding: 0.58rem 0.9rem;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: transparent;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}

/* Accent-filled mauve button variant — use on primary CTAs */
.btn--mauve {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--palette-purple);
  color: #ffffff;
  border: 1px solid var(--palette-purple);
  padding: 0.58rem 0.9rem;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  transition: background 0.18s ease, box-shadow 0.18s ease, transform 0.12s ease;
  box-shadow: 0 4px 14px rgba(122,115,150,0.12);
}

.btn--mauve:hover,
.btn--mauve:focus {
  background: linear-gradient(180deg, #8b84a6, var(--palette-purple));
  outline: none;
  box-shadow: 0 6px 22px rgba(122,115,150,0.18);
  transform: translateY(-1px);
}

.btn--mauve:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(122,115,150,0.12);
}

.travel-footer__bottom {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 1rem;
  padding-top: 1.25rem;
  flex-wrap: wrap;
}

.travel-footer__bottom p {
  order: 3;
  margin-left: auto;
  font-family: var(--brand-sans);
  font-size: 0.92rem;
  color: var(--footer-text-2);
}

.travel-footer__legal {
  display: flex;
  align-items: center;
  order: 2;
  gap: 1.6rem;
}

.travel-footer__legal a {
  font-family: var(--brand-sans);
  font-size: 0.9rem;
  color: var(--footer-link);
}
.travel-footer__legal a::before {
  content: "\f023";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  display: inline-block;
  margin-right: 0.6rem;
  font-size: 0.9rem;
  vertical-align: middle;
  color: inherit;
}

/* Ícone específico para o link "Todas as Viagens" */
.travel-footer__legal a[href$="/category/viagens/"]::before {
  content: "\f072"; /* fa-plane */
}

.travel-footer__legal a:hover { color: var(--footer-link-hover); }

/* iOS-style switch for theme toggle */
.theme-toggle-btn {
  padding: 0;
  width: 56px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: transparent;
  transition: background 220ms ease, border-color 220ms ease, color 220ms ease;
}

.theme-toggle-btn:hover { border-color: rgba(196,160,220,0.7); }

.switch-track {
  position: relative;
  width: 48px;
  height: 26px;
  border-radius: 999px;
  background: rgba(255,255,255,0.03);
  display: inline-block;
  transition: background 220ms ease, border-color 220ms ease;
  border: 1px solid transparent;
}

.switch-track__icon {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.86rem;
  color: rgba(200,172,232,0.9);
  opacity: 0.95;
}
.switch-track__icon--moon { left: 6px; }
.switch-track__icon--sun { right: 6px; }

.switch-knob {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #2c153f; /* dark default */
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0,0,0,0.36);
  transition: transform 240ms cubic-bezier(.2,.9,.3,1), background 220ms ease, box-shadow 220ms ease;
}

.knob-icon { position: absolute; font-size: 0.86rem; opacity: 0; transform: scale(.9); transition: opacity 180ms ease, transform 180ms ease; color: #fff; }

/* Active states driven by html (early) or body (runtime) theme classes */
html.theme-light .switch-knob,
body.theme-light .switch-knob { transform: translateX(22px); background: #fff; box-shadow: 0 2px 6px rgba(0,0,0,0.12); }
html.theme-dark .switch-knob,
body.theme-dark .switch-knob { transform: translateX(0); background: #2c153f; box-shadow: 0 2px 6px rgba(0,0,0,0.36); }

html.theme-light .switch-track,
body.theme-light .switch-track { background: var(--bg-elevated); border-color: var(--border); }
html.theme-dark .switch-track,
body.theme-dark .switch-track { background: rgba(255,255,255,0.02); border-color: var(--border); }

html.theme-light .knob-sun, body.theme-light .knob-sun { opacity: 1; transform: scale(1); color: #f6b84b; }
html.theme-light .knob-moon, body.theme-light .knob-moon { opacity: 0; transform: scale(.9); }
html.theme-dark .knob-moon, body.theme-dark .knob-moon { opacity: 1; transform: scale(1); color: #fff; }
html.theme-dark .knob-sun, body.theme-dark .knob-sun { opacity: 0; transform: scale(.9); }

.visually-hidden { position: absolute !important; height: 1px; width: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; border: 0; padding: 0; margin: -1px; }

/* -------------------------------------------------------------
   Cookie Consent
------------------------------------------------------------- */
.cookie-consent-root {
  position: fixed;
  inset: auto 0 0;
  z-index: 220;
  pointer-events: none;
}

.cookie-consent-banner,
.cookie-consent-modal,
.cookie-consent-manage {
  pointer-events: auto;
}

.cookie-consent-banner {
  margin: 0 auto;
  width: min(1100px, calc(100% - 2rem));
  margin-bottom: 1rem;
  padding: 1.1rem 1.25rem 1.2rem;
  border: 1px solid var(--border);
  border-radius: 24px;
  background:
    radial-gradient(circle at top left, rgba(122, 115, 150, 0.18), transparent 34%),
    linear-gradient(135deg, rgba(64, 61, 76, 0.97), rgba(46, 43, 56, 0.98));
  color: var(--palette-beige);
  box-shadow: 0 18px 60px rgba(17, 15, 24, 0.35);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.cookie-consent-banner[hidden],
.cookie-consent-modal[hidden],
.cookie-consent-backdrop[hidden],
.cookie-consent-manage[hidden] {
  display: none !important;
}

.cookie-consent-banner__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) auto;
  gap: 1rem 1.5rem;
  align-items: end;
}

.cookie-consent-banner__eyebrow,
.cookie-consent-modal__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 248, 245, 0.74);
}

.cookie-consent-banner__eyebrow::before,
.cookie-consent-modal__eyebrow::before {
  content: "";
  width: 1.7rem;
  height: 1px;
  background: rgba(255, 248, 245, 0.34);
}

.cookie-consent-banner h2,
.cookie-consent-modal h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 2vw, 2rem);
  font-weight: 600;
  line-height: 0.95;
  letter-spacing: 0.01em;
  color: var(--palette-beige);
}

.cookie-consent-banner p,
.cookie-consent-modal p,
.cookie-consent-category p {
  color: rgba(255, 248, 245, 0.78);
  line-height: 1.6;
}

.cookie-consent-banner a,
.cookie-consent-modal a {
  color: var(--palette-rose);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.16rem;
}

.cookie-consent-banner__actions,
.cookie-consent-modal__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.7rem;
}

.cookie-consent-btn {
  min-height: 46px;
  padding: 0.8rem 1.05rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: var(--font-sans);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  transition: transform 160ms ease, box-shadow 160ms ease, background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}

.cookie-consent-btn:hover,
.cookie-consent-btn:focus-visible {
  transform: translateY(-1px);
}

.cookie-consent-btn:focus-visible,
.cookie-consent-toggle input:focus-visible + .cookie-consent-toggle__slider,
.cookie-consent-modal__close:focus-visible {
  outline: 2px solid rgba(255, 248, 245, 0.92);
  outline-offset: 2px;
}

.cookie-consent-btn--primary {
  background: var(--palette-rose);
  color: var(--palette-deep);
  box-shadow: 0 12px 28px rgba(251, 238, 232, 0.16);
}

.cookie-consent-btn--primary:hover,
.cookie-consent-btn--primary:focus-visible {
  background: #ffffff;
}

.cookie-consent-btn--secondary {
  border-color: rgba(255, 248, 245, 0.22);
  background: rgba(255, 248, 245, 0.08);
  color: var(--palette-beige);
}

.cookie-consent-btn--secondary:hover,
.cookie-consent-btn--secondary:focus-visible {
  border-color: rgba(255, 248, 245, 0.42);
  background: rgba(255, 248, 245, 0.14);
}

.cookie-consent-btn--ghost {
  border-color: rgba(255, 248, 245, 0.18);
  color: rgba(255, 248, 245, 0.88);
}

.cookie-consent-btn--ghost:hover,
.cookie-consent-btn--ghost:focus-visible {
  border-color: rgba(255, 248, 245, 0.34);
  background: rgba(255, 248, 245, 0.06);
}

.cookie-consent-manage {
  order: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.72rem 0.95rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(64, 61, 76, 0.92);
  color: var(--palette-beige);
  box-shadow: 0 10px 26px rgba(17, 15, 24, 0.24);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.cookie-consent-manage span {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.cookie-consent-backdrop {
  position: fixed;
  inset: 0;
  z-index: 230;
  background: rgba(17, 15, 24, 0.56);
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
}

.cookie-consent-modal {
  position: fixed;
  left: 50%;
  top: 50%;
  z-index: 240;
  width: min(760px, calc(100% - 2rem));
  max-height: min(88vh, 820px);
  overflow: auto;
  transform: translate(-50%, -50%);
  padding: 1.4rem;
  border: 1px solid var(--border);
  border-radius: 28px;
  background:
    radial-gradient(circle at top left, rgba(122, 115, 150, 0.18), transparent 30%),
    linear-gradient(180deg, rgba(64, 61, 76, 0.985), rgba(46, 43, 56, 0.985));
  color: var(--palette-beige);
  box-shadow: 0 24px 80px rgba(17, 15, 24, 0.42);
}

.cookie-consent-modal__header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.cookie-consent-modal__close {
  flex: none;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(255, 248, 245, 0.18);
  color: var(--palette-beige);
  background: rgba(255, 248, 245, 0.04);
  font-size: 1rem;
}

.cookie-consent-modal__intro {
  margin-bottom: 1.3rem;
}

.cookie-consent-categories {
  display: grid;
  gap: 0.85rem;
  margin-bottom: 1.3rem;
}

.cookie-consent-category {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem;
  align-items: center;
  padding: 1rem;
  border: 1px solid rgba(255, 248, 245, 0.12);
  border-radius: 20px;
  background: rgba(255, 248, 245, 0.05);
}

.cookie-consent-category h3 {
  margin-bottom: 0.24rem;
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--palette-beige);
}

.cookie-consent-category--locked {
  background: rgba(255, 248, 245, 0.08);
}

.cookie-consent-category__status {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: 0.6rem;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 248, 245, 0.68);
}

.cookie-consent-category__status::before {
  content: "";
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: #9bd49f;
}

.cookie-consent-toggle {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.cookie-consent-toggle input {
  position: absolute;
  opacity: 0;
  inset: 0;
}

.cookie-consent-toggle__slider {
  position: relative;
  width: 56px;
  height: 32px;
  border-radius: 999px;
  border: 1px solid rgba(255, 248, 245, 0.18);
  background: rgba(255, 248, 245, 0.10);
  pointer-events: none;
  transition: background-color 180ms ease, border-color 180ms ease;
}

.cookie-consent-toggle__slider::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--palette-beige);
  box-shadow: 0 4px 12px rgba(17, 15, 24, 0.25);
  transition: transform 180ms ease;
}

.cookie-consent-toggle input:checked + .cookie-consent-toggle__slider {
  background: rgba(251, 238, 232, 0.24);
  border-color: rgba(255, 248, 245, 0.34);
}

.cookie-consent-toggle input:checked + .cookie-consent-toggle__slider::after {
  transform: translateX(24px);
}

.cookie-consent-toggle input:disabled + .cookie-consent-toggle__slider {
  opacity: 0.72;
  cursor: not-allowed;
}

body.theme-light .cookie-consent-banner,
body.theme-light .cookie-consent-modal,
body.theme-light .cookie-consent-manage {
  border-color: rgba(64, 61, 76, 0.12);
  color: var(--palette-deep);
}

body.theme-light .cookie-consent-banner {
  background:
    radial-gradient(circle at top left, rgba(122, 115, 150, 0.12), transparent 34%),
    linear-gradient(135deg, rgba(255, 248, 245, 0.98), rgba(251, 238, 232, 0.96));
  box-shadow: 0 18px 44px rgba(64, 61, 76, 0.14);
}

body.theme-light .cookie-consent-modal {
  background:
    radial-gradient(circle at top left, rgba(122, 115, 150, 0.12), transparent 32%),
    linear-gradient(180deg, rgba(255, 248, 245, 0.995), rgba(251, 238, 232, 0.985));
  box-shadow: 0 24px 60px rgba(64, 61, 76, 0.16);
}

body.theme-light .cookie-consent-manage {
  background: rgba(255, 248, 245, 0.94);
  box-shadow: 0 10px 26px rgba(64, 61, 76, 0.14);
}

body.theme-light .cookie-consent-banner__eyebrow,
body.theme-light .cookie-consent-modal__eyebrow,
body.theme-light .cookie-consent-banner p,
body.theme-light .cookie-consent-modal p,
body.theme-light .cookie-consent-category p,
body.theme-light .cookie-consent-manage span,
body.theme-light .cookie-consent-modal__close,
body.theme-light .cookie-consent-category__status,
body.theme-light .cookie-consent-banner h2,
body.theme-light .cookie-consent-modal h2,
body.theme-light .cookie-consent-category h3 {
  color: var(--palette-deep);
}

body.theme-light .cookie-consent-banner__eyebrow::before,
body.theme-light .cookie-consent-modal__eyebrow::before {
  background: rgba(64, 61, 76, 0.24);
}

body.theme-light .cookie-consent-category,
body.theme-light .cookie-consent-modal__close,
body.theme-light .cookie-consent-btn--secondary,
body.theme-light .cookie-consent-btn--ghost,
body.theme-light .cookie-consent-toggle__slider {
  border-color: rgba(64, 61, 76, 0.12);
}

body.theme-light .cookie-consent-category,
body.theme-light .cookie-consent-modal__close,
body.theme-light .cookie-consent-btn--secondary,
body.theme-light .cookie-consent-btn--ghost {
  background: rgba(64, 61, 76, 0.04);
}

body.theme-light .cookie-consent-toggle__slider {
  background: rgba(64, 61, 76, 0.08);
}

body.theme-light .cookie-consent-toggle input:checked + .cookie-consent-toggle__slider {
  background: rgba(122, 115, 150, 0.20);
  border-color: rgba(122, 115, 150, 0.32);
}

body.theme-light .cookie-consent-btn--secondary,
body.theme-light .cookie-consent-btn--ghost,
body.theme-light .cookie-consent-btn--primary:hover,
body.theme-light .cookie-consent-btn--primary:focus-visible {
  color: var(--palette-deep);
}

@media (max-width: 900px) {
  .cookie-consent-banner__inner,
  .cookie-consent-category {
    grid-template-columns: 1fr;
  }

  .cookie-consent-banner__actions,
  .cookie-consent-modal__actions {
    justify-content: flex-start;
  }
}

@media (max-width: 640px) {
  .cookie-consent-root {
    inset: auto 0 calc(env(safe-area-inset-bottom, 0px) + 0.25rem);
  }

  .cookie-consent-banner,
  .cookie-consent-modal {
    width: min(calc(100% - 1rem), 100%);
    border-radius: 22px;
  }

  .cookie-consent-banner {
    margin-bottom: 0.5rem;
    padding: 1rem;
  }

  .cookie-consent-modal {
    padding: 1rem;
  }

  .cookie-consent-btn,
  .cookie-consent-manage {
    width: 100%;
    justify-content: center;
  }
}

/* Icon crossfade for theme toggle — use opacity+transform so changes animate */
.theme-toggle-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
}
.theme-toggle-btn .icon-sun,
.theme-toggle-btn .icon-moon {
  display: inline-block;
  width: 1em;
  height: 1em;
  line-height: 1;
  opacity: 0;
  transform: translateY(-4px) scale(0.94) rotate(-8deg);
  transition: opacity 220ms ease, transform 220ms ease;
  pointer-events: none;
}

/* Active states driven by html (early) or body (runtime) theme classes */
html.theme-light .theme-toggle-btn .icon-sun,
body.theme-light .theme-toggle-btn .icon-sun {
  opacity: 1;
  transform: translateY(0) scale(1) rotate(0deg);
}

html.theme-dark .theme-toggle-btn .icon-moon,
body.theme-dark .theme-toggle-btn .icon-moon {
  opacity: 1;
  transform: translateY(0) scale(1) rotate(0deg);
}

/* ensure only visual difference — keep icons aria-hidden and provide sr-only label */

/* -------------------------------------------------------------
   Light Theme Overrides — contextos específicos do hero
   Tokens CSS tratam a maioria das cores; estas regras cobrem
   elementos que vivem sempre sobre fotografias (hero/slider)
   e precisam de contraste garantido independente do tema.
------------------------------------------------------------- */

/* Header mantém gradiente escuro sobre o hero em ambos os temas */
body.theme-light .header-inner {
  background: linear-gradient(
    to bottom,
    rgba(40, 40, 40, 0.92) 0%,
    rgba(40, 40, 40, 0.00) 100%
  );
}

/* Texto do hero sempre branco (sobre fotografia com overlay) */
body.theme-light .slide-title,
body.theme-light .slide-cta,
body.theme-light .slide-eyebrow,
body.theme-light .slide-date,
body.theme-light .slide-sub {
  color: #ffffff;
}

/* Overlay do slide em modo light — mantém tom da paleta */
body.theme-light .slide-overlay {
  background: linear-gradient(
    160deg,
    var(--overlay-from) 0%,
    var(--overlay-mid) 50%,
    var(--overlay-to) 100%
  );
}

/* Ensure dark theme slide overlay is explicitly neutral (no purple tint) */
body.theme-dark .slide-overlay {
  background: linear-gradient(
    160deg,
    var(--overlay-from) 0%,
    var(--overlay-mid) 50%,
    var(--overlay-to) 100%
  );
}

/* Setas do slider em modo light */
body.theme-light .slider-arrow {
  border-color: var(--border);
  color: var(--palette-deep);
  background: rgba(255, 248, 245, 0.72);
}

body.theme-light .slider-arrow:hover {
  background: rgba(255, 248, 245, 0.96);
  border-color: var(--border-hover);
  color: var(--palette-deep);
}

/* Destinations strip --dark: superfície bege em modo light */
body.theme-light .destinations-inner.destinations--dark {
  background: rgba(255, 248, 245, 0.88);
  border-color: var(--border);
  color: var(--palette-deep);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.10);
}

body.theme-light .destinations-inner.destinations--dark .destinations-title {
  color: var(--palette-deep);
  border-right-color: var(--border);
}

body.theme-light .destinations-inner.destinations--dark .dest-item a {
  color: var(--palette-deep);
}

body.theme-light .destinations-inner.destinations--dark .dest-item a:hover {
  background: linear-gradient(180deg, rgba(64, 61, 76, 0.12) 0%, rgba(64, 61, 76, 0.07) 100%);
  border-color: rgba(64, 61, 76, 0.32);
  color: var(--palette-deep);
}

body.theme-light .destinations-inner.destinations--dark .dest-thumb {
  border-color: var(--border);
}

body.theme-light .destinations-inner.destinations--dark .dest-name {
  color: var(--palette-deep);
}

/* Header links: branco sobre o hero, tema-adaptado quando fixo */
.site-header .header-nav a,
.site-header .header-social a {
  color: #ffffff;
}

body.has-scrolled .site-header .header-nav a,
body.has-scrolled .site-header .header-social a {
  color: var(--header-scrolled-text);
}



/* Social icons under brand */
.travel-footer__brand-social {
  display: flex;
  gap: 0.6rem;
  margin-top: 0.8rem;
  align-items: center;
}
.travel-footer__brand-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 0.35rem;
  color: var(--footer-link);
  background: transparent;
  font-size: 0.95rem;
  transition: color 0.15s, background 0.15s, transform 0.12s;
}
.travel-footer__brand-social a:hover {
  color: var(--footer-link-hover);
  background: rgba(255, 255, 255, 0.04);
  transform: translateY(-2px);
}
.travel-footer__brand-social a i { pointer-events: none; }

.travel-footer__newsletter {
  margin-top: 0.9rem;
  max-width: 34ch;
}
.travel-footer__newsletter-form { width: 100%; }
.travel-footer__newsletter-controls {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  gap: 0;
}
.travel-footer__newsletter-controls input[type="email"]{
  flex: 1;
  padding: 0.75rem 1rem;
  border: 1px solid var(--footer-border);
  border-right: none;
  border-radius: 0;
  background: rgba(255,255,255,0.07);
  color: var(--footer-text);
  font-family: var(--brand-sans);
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
.travel-footer__newsletter-controls input[type="email"]:focus {
  border-color: var(--palette-purple);
  box-shadow: 0 0 0 3px rgba(122,115,150,0.18);
}
.travel-footer__newsletter-controls input::placeholder { color: var(--footer-text-2); opacity: 0.6; }
.travel-footer__newsletter-controls .travel-footer__cta {
  border-radius: 0;
  margin-top: 0;
  white-space: nowrap;
}
.travel-footer__newsletter-note {
  margin-top: 0.55rem;
  font-size: 0.84rem;
  color: var(--footer-text-2);
  line-height: 1.5;
}

@media (max-width: 1024px) {
  .travel-footer__top {
    gap: 1.6rem;
  }
}

@media (max-width: 720px) {
  .travel-footer__newsletter-controls {
    flex-direction: column;
    gap: 0.5rem;
  }

  .travel-footer__newsletter-controls input[type="email"] {
    border-right: 1px solid var(--footer-border);
    border-radius: 0;
  }

  .travel-footer__newsletter-controls .travel-footer__cta {
    border-radius: 0;
    width: 100%;
  }
}

/* -------------------------------------------------------------
   404 Page
------------------------------------------------------------- */
.error-page {
  position: relative;
  min-height: 100dvh;
  padding: clamp(7.5rem, 12vw, 10rem) 1.25rem clamp(3rem, 5vw, 4.5rem);
  overflow: hidden;
  background:
    radial-gradient(circle at 12% 18%, rgba(122, 115, 150, 0.28), transparent 42%),
    radial-gradient(circle at 82% 16%, rgba(251, 238, 232, 0.16), transparent 38%),
    linear-gradient(138deg, #302c3b 4%, #403d4c 46%, #272433 100%);
}

.error-page::before,
.error-page::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.error-page::before {
  width: min(58vw, 620px);
  aspect-ratio: 1;
  left: clamp(-14rem, -11vw, -7rem);
  top: clamp(-16rem, -12vw, -8rem);
  border-radius: 38% 62% 61% 39% / 49% 45% 55% 51%;
  background: linear-gradient(140deg, rgba(251, 238, 232, 0.16), rgba(122, 115, 150, 0.08));
  filter: blur(1px);
  animation: errorBlobFloat 12s ease-in-out infinite alternate;
}

.error-page::after {
  content: "404";
  right: clamp(-0.5rem, 5vw, 2rem);
  bottom: clamp(-2.2rem, -1.5vw, -0.5rem);
  font-family: var(--brand-serif);
  font-size: clamp(6.8rem, 25vw, 18rem);
  line-height: 0.8;
  letter-spacing: -0.05em;
  color: rgba(255, 248, 245, 0.08);
  z-index: 0;
}

.error-shell {
  position: relative;
  z-index: 1;
  width: min(1140px, 100%);
  margin: 0 auto;
  border-radius: clamp(20px, 2.5vw, 34px);
  border: 1px solid rgba(255, 248, 245, 0.16);
  background: linear-gradient(145deg, rgba(255, 248, 245, 0.09), rgba(255, 248, 245, 0.03));
  box-shadow: 0 28px 72px rgba(10, 7, 17, 0.38);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.error-grid {
  display: grid;
  grid-template-columns: 1.25fr minmax(280px, 0.82fr);
  gap: clamp(1.5rem, 3vw, 2.8rem);
  padding: clamp(1.25rem, 2.5vw, 1.8rem);
}

.error-content {
  padding: clamp(1.2rem, 2.5vw, 2rem);
  border-radius: clamp(16px, 2vw, 24px);
  background: linear-gradient(135deg, rgba(255, 248, 245, 0.11), rgba(255, 248, 245, 0.02));
}

.error-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--brand-sans);
  font-size: 0.73rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 248, 245, 0.78);
  margin-bottom: 0.8rem;
}

.error-kicker::before {
  content: "";
  width: 1.7rem;
  height: 1px;
  background: rgba(255, 248, 245, 0.5);
}

.error-title {
  font-family: var(--brand-serif);
  font-size: clamp(2.5rem, 5.7vw, 5.1rem);
  font-weight: 500;
  line-height: 0.95;
  letter-spacing: -0.02em;
  color: var(--palette-beige);
  text-wrap: balance;
}

.error-desc {
  width: min(60ch, 100%);
  margin-top: 1rem;
  color: rgba(255, 248, 245, 0.82);
  font-family: var(--brand-sans);
  font-size: clamp(1rem, 1.15vw, 1.1rem);
  line-height: 1.7;
}

.error-search {
  margin-top: 1.65rem;
  width: min(680px, 100%);
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.45rem;
  border: 1px solid rgba(255, 248, 245, 0.24);
  border-radius: 999px;
  background: rgba(12, 10, 20, 0.38);
}

.error-search input {
  flex: 1;
  min-width: 140px;
  border: 0;
  background: transparent;
  font-family: var(--brand-sans);
  font-size: 0.95rem;
  color: var(--palette-beige);
  padding: 0.65rem 0.9rem;
  outline: none;
}

.error-search input::placeholder {
  color: rgba(255, 248, 245, 0.55);
}

.error-search__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  border: 0;
  border-radius: 999px;
  padding: 0.72rem 1.15rem;
  background: var(--palette-rose);
  color: var(--palette-deep);
  font-family: var(--brand-sans);
  font-size: 0.71rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

.error-search__btn:hover,
.error-search__btn:focus-visible {
  transform: translateY(-1px);
  background: #ffffff;
  box-shadow: 0 12px 24px rgba(6, 4, 12, 0.28);
}

.error-actions {
  margin-top: 1.05rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.error-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: 999px;
  padding: 0.76rem 1.16rem;
  border: 1px solid rgba(255, 248, 245, 0.3);
  font-family: var(--brand-sans);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: transform 180ms ease, background-color 180ms ease, border-color 180ms ease, color 180ms ease;
}

.error-btn:hover,
.error-btn:focus-visible {
  transform: translateY(-1px);
}

.error-btn--primary {
  background: var(--palette-beige);
  color: var(--palette-deep);
  border-color: var(--palette-beige);
}

.error-btn--primary:hover,
.error-btn--primary:focus-visible {
  background: #ffffff;
}

.error-btn--ghost {
  color: var(--palette-beige);
  background: rgba(255, 248, 245, 0.05);
}

.error-btn--ghost:hover,
.error-btn--ghost:focus-visible {
  border-color: rgba(255, 248, 245, 0.62);
  background: rgba(255, 248, 245, 0.12);
}

.error-panel {
  border-radius: clamp(16px, 2vw, 24px);
  padding: clamp(1rem, 2vw, 1.4rem);
  background: linear-gradient(155deg, rgba(18, 14, 29, 0.7), rgba(13, 10, 20, 0.52));
  border: 1px solid rgba(255, 248, 245, 0.12);
}

.error-panel__eyebrow {
  font-family: var(--brand-sans);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 248, 245, 0.7);
}

.error-panel__title {
  margin-top: 0.45rem;
  font-family: var(--brand-serif);
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 600;
  line-height: 1;
  color: var(--palette-beige);
}

.error-links {
  margin-top: 1rem;
  display: grid;
  gap: 0.55rem;
}

.error-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.76rem 0.88rem;
  border: 1px solid rgba(255, 248, 245, 0.14);
  border-radius: 12px;
  background: rgba(255, 248, 245, 0.03);
  color: rgba(255, 248, 245, 0.85);
  font-family: var(--brand-sans);
  font-size: 0.81rem;
  letter-spacing: 0.03em;
  transition: border-color 180ms ease, background-color 180ms ease, transform 180ms ease, color 180ms ease;
}

.error-link i {
  font-size: 0.8rem;
}

.error-link:hover,
.error-link:focus-visible {
  color: #ffffff;
  border-color: rgba(255, 248, 245, 0.4);
  background: rgba(255, 248, 245, 0.09);
  transform: translateX(2px);
}

.error-metrics {
  margin-top: 0.9rem;
  display: grid;
  gap: 0.5rem;
}

.error-metric {
  padding: 0.7rem 0.85rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 248, 245, 0.14);
  background: rgba(255, 248, 245, 0.02);
}

.error-metric strong {
  display: block;
  font-family: var(--brand-serif);
  font-size: 1.7rem;
  font-weight: 600;
  line-height: 1;
  color: var(--palette-beige);
}

.error-metric span {
  display: block;
  margin-top: 0.2rem;
  font-family: var(--brand-sans);
  font-size: 0.72rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: rgba(255, 248, 245, 0.62);
}

body.theme-light .error-page {
  background:
    radial-gradient(circle at 8% 20%, rgba(122, 115, 150, 0.2), transparent 44%),
    radial-gradient(circle at 88% 12%, rgba(251, 238, 232, 0.7), transparent 36%),
    linear-gradient(140deg, #fff9f5 0%, #f6ece7 52%, #efe4de 100%);
}

body.theme-light .error-page::before {
  background: linear-gradient(140deg, rgba(122, 115, 150, 0.2), rgba(251, 238, 232, 0.28));
}

body.theme-light .error-page::after {
  color: rgba(64, 61, 76, 0.08);
}

body.theme-light .error-shell {
  border-color: rgba(64, 61, 76, 0.12);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.74));
  box-shadow: 0 24px 62px rgba(64, 61, 76, 0.16);
}

body.theme-light .error-content {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.88), rgba(251, 238, 232, 0.62));
}

body.theme-light .error-kicker,
body.theme-light .error-desc,
body.theme-light .error-panel__eyebrow {
  color: rgba(64, 61, 76, 0.72);
}

body.theme-light .error-kicker::before {
  background: rgba(64, 61, 76, 0.4);
}

body.theme-light .error-title,
body.theme-light .error-panel__title,
body.theme-light .error-metric strong {
  color: var(--palette-deep);
}

body.theme-light .error-search {
  border-color: rgba(64, 61, 76, 0.2);
  background: rgba(255, 255, 255, 0.8);
}

body.theme-light .error-search input {
  color: var(--palette-deep);
}

body.theme-light .error-search input::placeholder {
  color: rgba(64, 61, 76, 0.44);
}

body.theme-light .error-search__btn {
  background: var(--palette-deep);
  color: var(--palette-beige);
}

body.theme-light .error-search__btn:hover,
body.theme-light .error-search__btn:focus-visible {
  background: #2f2d39;
  box-shadow: 0 10px 24px rgba(64, 61, 76, 0.2);
}

body.theme-light .error-btn {
  border-color: rgba(64, 61, 76, 0.25);
}

body.theme-light .error-btn--primary {
  background: var(--palette-deep);
  color: var(--palette-beige);
  border-color: var(--palette-deep);
}

body.theme-light .error-btn--primary:hover,
body.theme-light .error-btn--primary:focus-visible {
  background: #2f2d39;
}

body.theme-light .error-btn--ghost {
  color: var(--palette-deep);
  background: rgba(64, 61, 76, 0.03);
}

body.theme-light .error-btn--ghost:hover,
body.theme-light .error-btn--ghost:focus-visible {
  border-color: rgba(64, 61, 76, 0.44);
  background: rgba(64, 61, 76, 0.08);
}

body.theme-light .error-panel {
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.9), rgba(251, 238, 232, 0.72));
  border-color: rgba(64, 61, 76, 0.12);
}

body.theme-light .error-link {
  border-color: rgba(64, 61, 76, 0.14);
  background: rgba(64, 61, 76, 0.03);
  color: rgba(64, 61, 76, 0.84);
}

body.theme-light .error-link:hover,
body.theme-light .error-link:focus-visible {
  color: var(--palette-deep);
  border-color: rgba(64, 61, 76, 0.3);
  background: rgba(64, 61, 76, 0.08);
}

body.theme-light .error-metric {
  border-color: rgba(64, 61, 76, 0.14);
  background: rgba(64, 61, 76, 0.03);
}

body.theme-light .error-metric span {
  color: rgba(64, 61, 76, 0.58);
}

@keyframes errorBlobFloat {
  from {
    transform: translate3d(0, 0, 0) rotate(0deg) scale(1);
  }
  to {
    transform: translate3d(18px, 16px, 0) rotate(7deg) scale(1.04);
  }
}

@media (max-width: 1024px) {
  .error-grid {
    grid-template-columns: 1fr;
  }

  .error-panel {
    max-width: 720px;
  }
}

@media (max-width: 720px) {
  .error-page {
    padding-top: clamp(6rem, 20vw, 7rem);
  }

  .error-grid {
    padding: 0.8rem;
    gap: 0.8rem;
  }

  .error-content,
  .error-panel {
    padding: 1rem;
  }

  .error-search {
    flex-direction: column;
    align-items: stretch;
    border-radius: 20px;
    padding: 0.65rem;
  }

  .error-search__btn {
    justify-content: center;
    width: 100%;
  }

  .error-actions {
    flex-direction: column;
  }

  .error-btn {
    justify-content: center;
    width: 100%;
  }
}

/* =============================================================
   BLOG FEED PAGE — /blog/
   Layout editorial full-width, sem sidebar
============================================================= */

/* Hero compacto para o blog */
.archive-hero--blog {
  min-height: 70vh;
  margin-top: 0;
}

/* Contentor da secção */
.blog-feed {
  padding: clamp(3rem, 6vw, 5rem) 0 clamp(4rem, 8vw, 7rem);
  background: var(--bg);
}

.blog-feed__inner {
  width: min(1280px, calc(100% - 2.4rem));
  margin: 0 auto;
}

/* Grelha: 3 col desktop, 2 tablet, 1 mobile */
.blog-feed__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: clamp(1.8rem, 3vw, 2.8rem);
  row-gap: 0;
}

/* ── Card ── */
.bf-card {
  display: grid;
  grid-row: span 5;
  grid-template-rows: subgrid;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: box-shadow 0.25s ease, border-color 0.25s ease;
  margin-bottom: clamp(1.8rem, 3vw, 2.8rem);
}

.bf-card:hover {
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.11);
  border-color: var(--border-hover);
}

/* Imagem */
.bf-card__media-wrap {
  display: block;
  overflow: hidden;
}

.bf-card__media {
  width: 100%;
  aspect-ratio: 16 / 10;
  background-image: var(--bg, none);
  background-size: cover;
  background-position: center;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
  position: relative;
}

.bf-card__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--bg2, var(--bg, none));
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 500ms ease;
  pointer-events: none;
}

.bf-card:hover .bf-card__media::after {
  opacity: 1;
}

.bf-card:hover .bf-card__media {
  transform: scale(1.03);
}

.bf-card__media--placeholder {
  background:
    radial-gradient(circle at top left, rgba(122, 115, 150, 0.18), transparent 55%),
    linear-gradient(135deg, rgba(255, 248, 245, 0.95), rgba(251, 238, 232, 0.88));
  border-bottom: 1px solid var(--border);
}

/* Corpo */
.bf-card__body {
  display: grid;
  grid-row: 2 / 6;
  grid-template-rows: subgrid;
  padding: 1.2rem 1.4rem 1.4rem;
}

/* Categoria */
.bf-card__cat {
  grid-row: 1;
  font-family: var(--brand-sans);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--palette-purple);
  margin: 0;
  padding-bottom: 0.4rem;
  align-self: start;
}

.bf-card__cat a {
  color: inherit;
  transition: opacity 0.2s;
}
.bf-card__cat a:hover { opacity: 0.7; }

/* Título */
.bf-card__title {
  grid-row: 2;
  font-family: var(--brand-serif);
  font-size: clamp(1.05rem, 1.5vw, 1.3rem);
  font-weight: 500;
  line-height: 1.22;
  letter-spacing: -0.01em;
  margin: 0;
  padding-bottom: 0.55rem;
  align-self: start;
}

.bf-card__title a {
  color: var(--text);
  transition: opacity 0.2s;
}
.bf-card__title a:hover { opacity: 0.7; }

/* Excerto */
.bf-card__excerpt {
  grid-row: 3;
  font-family: var(--brand-sans);
  font-size: 0.87rem;
  line-height: 1.62;
  color: var(--text-2);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  align-self: start;
}

/* Rodapé: data + link */
.bf-card__footer {
  grid-row: 4;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-top: 0;
  padding-top: 0.85rem;
  border-top: 1px solid var(--border);
  align-self: end;
}

.bf-card__date {
  font-family: var(--brand-sans);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.bf-card__readmore {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--brand-sans);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--link);
  white-space: nowrap;
  transition: gap 0.2s;
}
.bf-card__readmore:hover { gap: 0.55rem; }
.bf-card__readmore i { font-size: 0.6rem; }

/* Paginação */
.blog-feed-page .page-numbers {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  list-style: none;
  justify-content: center;
  padding: 0;
  margin-top: clamp(2.5rem, 5vw, 4rem);
  border: none;
}

.blog-feed-page .page-numbers li span,
.blog-feed-page .page-numbers li a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.5rem;
  height: 2.5rem;
  padding: 0 0.8rem;
  font-family: var(--brand-sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-2);
  border: 1px solid var(--border);
  background: transparent;
  transition: background 0.18s, border-color 0.18s, color 0.18s;
}

.blog-feed-page .page-numbers li a:hover {
  background: var(--bg-surface);
  border-color: var(--border-hover);
  color: var(--text);
}

.blog-feed-page .page-numbers li .current {
  background: var(--palette-purple);
  border-color: var(--palette-purple);
  color: #fff;
}

.blog-feed__empty {
  font-family: var(--brand-sans);
  text-align: center;
  color: var(--text-muted);
  padding: 4rem 0;
}

/* Responsivo */
@media (max-width: 1024px) {
  .blog-feed__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .blog-feed__grid {
    grid-template-columns: 1fr;
  }

  .archive-hero--blog {
    min-height: 40vh;
  }
}
