/* ==========================================================================
   CULTURA TRINACIONAL — Sistema de Design Base
   Baseado nos layouts aprovados: Home, Agenda, Mapa, Cidades
   Paleta: azul-marinho escuro + azul elétrico/cyan + glow premium
   ========================================================================== */

:root {
  /* Fundo */
  --bg-deep: #05070f;
  --bg-base: #0a0e1c;
  --bg-elevated: #0f1526;
  --bg-card: #10182b;
  --bg-card-hover: #141d34;

  /* Azul elétrico / cyan (cor de marca) */
  --brand-cyan: #22d3ee;
  --brand-blue: #2563eb;
  --brand-gradient: linear-gradient(135deg, #2563eb 0%, #22d3ee 100%);

  /* Cores fixas por país (NUNCA mudar — regra do Prompt Mestre) */
  --country-argentina: #38bdf8;   /* azul claro */
  --country-brasil: #22c55e;      /* verde */
  --country-paraguai: #ef4444;    /* vermelho — fixo e obrigatório */
  --brand-gold: #facc15;          /* dourado — 4ª cor da faixa da logo oficial */

  /* Texto */
  --text-primary: #f5f7fb;
  --text-secondary: #a8b3c7;
  --text-muted: #6b7690;

  /* Bordas e sombras */
  --border-subtle: rgba(148, 178, 255, 0.14);
  --border-glow: rgba(34, 211, 238, 0.45);
  --shadow-card: 0 8px 30px rgba(0, 0, 0, 0.45);
  --shadow-glow-cyan: 0 0 24px rgba(34, 211, 238, 0.35);
  --shadow-glow-blue: 0 0 30px rgba(37, 99, 235, 0.35);

  /* Espaçamento e forma */
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-pill: 999px;

  /* Tipografia */
  --font-base: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Navegação mobile fixa */
  --mobile-nav-height: 68px;
  --header-height: 84px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-base);
  background: var(--bg-base);
  color: var(--text-primary);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  padding-bottom: calc(var(--mobile-nav-height) + 12px);
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ==========================================================================
   Cabeçalho
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  height: var(--header-height);
  padding: 0 14px;
  background: rgba(5, 7, 15, 0.85);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-subtle);
}

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

/* Ícone recortado da logo oficial (só o emblema, sem o texto embutido —
   o texto é reconstruído ao lado em .brand-text). */
.brand img.logo {
  height: 52px;
  width: 52px;
  border-radius: 50%;
  object-fit: cover;
  flex: none;
}

/* Grid de 1 coluna com largura "max-content": a coluna assume a largura do
   maior item de texto (nome ou tagline), e a faixa colorida (width:100%)
   estica exatamente até essa largura — nunca fica menor que o texto. */
.brand-text {
  display: grid;
  grid-template-columns: max-content;
  justify-items: start;
  min-width: 0;
}

.brand-text .name {
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.3px;
  line-height: 1.25;
  white-space: nowrap;
}

/* "TRINACIONAL" na logo oficial não é colorido — é uma linha mais fina e
   espaçada abaixo de "CULTURA", não o mesmo peso/cor. */
.brand-text .name .name-accent {
  display: block;
  color: var(--text-primary);
  font-weight: 500;
  font-size: 0.62em;
  letter-spacing: 2px;
}

.brand-text .tagline {
  font-size: 7px;
  letter-spacing: 1px;
  color: var(--text-secondary);
  text-transform: uppercase;
  white-space: nowrap;
  margin-top: 2px;
}

.brand-text .brand-stripe {
  height: 2px;
  width: 100%;
  border-radius: var(--radius-pill);
  margin-top: 3px;
  /* Mesmas 4 cores da faixa da logo oficial (azul, verde, dourado, vermelho) */
  background: linear-gradient(90deg,
    var(--country-argentina) 0%, var(--country-argentina) 25%,
    var(--country-brasil) 25%, var(--country-brasil) 50%,
    var(--brand-gold) 50%, var(--brand-gold) 75%,
    var(--country-paraguai) 75%, var(--country-paraguai) 100%);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: none;
}

.lang-switch {
  display: flex;
  align-items: center;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-pill);
  overflow: hidden;
  font-size: 11px;
  font-weight: 700;
}

.lang-switch button {
  padding: 6px 9px;
  color: var(--text-secondary);
  transition: background 0.2s, color 0.2s;
}

.lang-switch button[aria-pressed="true"] {
  background: var(--brand-gradient);
  color: #04121c;
  border-radius: var(--radius-pill);
}

.menu-toggle {
  width: 36px;
  height: 36px;
  flex: none;
  display: grid;
  place-items: center;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
}

/* Telas maiores têm espaço de sobra: logo, texto e botões de idioma voltam
   a ficar um pouco mais confortáveis, sem risco de sobrepor nada. */
@media (min-width: 420px) {
  .site-header { padding: 0 20px; gap: 16px; }
  .brand { gap: 10px; }
  .brand img.logo { height: 58px; width: 58px; }
  .brand-text .name { font-size: 15px; letter-spacing: 0.5px; }
  .brand-text .tagline { font-size: 8px; }
  .header-actions { gap: 12px; }
  .lang-switch { font-size: 12.5px; }
  .lang-switch button { padding: 7px 12px; }
  .menu-toggle { width: 42px; height: 42px; }
}

@media (min-width: 640px) {
  .brand img.logo { height: 66px; width: 66px; }
  .brand-text .name { font-size: 16px; }
  .brand-text .tagline { font-size: 9px; }
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  position: relative;
  overflow: hidden;
  min-height: 460px;
  display: flex;
  align-items: flex-start;
  /* Fallback enquanto não há slides cadastrados em site_hero_slides */
  background: var(--hero-image, linear-gradient(135deg, #0b1a3a, #06101f));
  background-size: cover;
  background-position: center;
}

/* Carrossel de fotos do hero — populado via JS a partir de site_hero_slides.
   Fica vazio (sem filhos) quando não há slides, e o .hero acima mostra o
   gradiente de fallback normalmente. */
.hero-slides {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.4s ease;
}
.hero-slide.active { opacity: 1; }

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  /* Mais escuro em cima (onde o título fica) e embaixo (transição pro resto
     da página), mais claro no meio pra deixar a foto aparecer. */
  background: linear-gradient(180deg, rgba(5,7,15,0.78) 0%, rgba(5,7,15,0.3) 32%, rgba(5,7,15,0.4) 70%, var(--bg-base) 100%);
}

.hero-content { position: relative; z-index: 2; padding: 24px 20px 28px; width: 100%; }

.hero-tag {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 2;
  text-align: right;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--text-primary);
  text-shadow: 0 1px 6px rgba(0,0,0,0.6);
}

.hero-tag-bar {
  height: 2px;
  width: 100%;
  margin-top: 6px;
  border-radius: var(--radius-pill);
  background: linear-gradient(90deg,
    var(--country-argentina) 0%, var(--country-argentina) 25%,
    var(--country-brasil) 25%, var(--country-brasil) 50%,
    var(--brand-gold) 50%, var(--brand-gold) 75%,
    var(--country-paraguai) 75%, var(--country-paraguai) 100%);
}

.hero h1 {
  font-size: clamp(28px, 7vw, 48px);
  font-weight: 800;
  line-height: 1.1;
  max-width: 640px;
  margin-bottom: 14px;
}

.hero .slogan {
  font-size: clamp(16px, 3.4vw, 20px);
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.country-bar {
  height: 5px;
  width: 220px;
  border-radius: var(--radius-pill);
  /* 4 cores da logo: azul, verde, amarelo e vermelho, em segmentos separados */
  background: linear-gradient(90deg,
    #20aaff 0%, #20aaff 23.5%, transparent 23.5%, transparent 25.5%,
    #2bc676 25.5%, #2bc676 49%, transparent 49%, transparent 51%,
    #f8cc38 51%, #f8cc38 74.5%, transparent 74.5%, transparent 76.5%,
    #f04c5d 76.5%, #f04c5d 100%);
  margin-bottom: 24px;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.hero-dots {
  display: flex;
  gap: 8px;
  margin-top: 14px;
}
.hero-dots:empty { display: none; }
.hero-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.35);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: background 0.2s, width 0.2s;
}
.hero-dot.active {
  background: var(--brand-cyan);
  width: 22px;
  border-radius: var(--radius-pill);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 24px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 15px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn:active { transform: scale(0.97); }

.btn-primary {
  background: var(--brand-gradient);
  color: #04121c;
  box-shadow: var(--shadow-glow-blue);
}

.btn-outline {
  border: 1px solid var(--border-glow);
  color: var(--text-primary);
  background: rgba(34, 211, 238, 0.06);
}

/* ==========================================================================
   Seções
   ========================================================================== */

.section { padding: 40px 0 8px; }

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.section-head h2 { font-size: 22px; font-weight: 800; }

.section-sub {
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 2px;
}

.section-head .see-all {
  font-size: 14px;
  font-weight: 700;
  color: var(--brand-cyan);
  white-space: nowrap;
  flex: none;
}

.hscroll {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding: 4px 20px 12px;
  margin: 0 -20px;
  scroll-snap-type: x proximity;
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.hscroll::-webkit-scrollbar { display: none; }

/* ==========================================================================
   Card de Cidade
   ========================================================================== */

.city-card {
  position: relative;
  flex: 0 0 150px;
  scroll-snap-align: start;
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background: var(--bg-card);
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border-subtle);
}

.city-card img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
}

.city-card::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(5,7,15,0.92) 100%);
}

.city-card .info {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 14px;
  z-index: 2;
}

.city-card .name { font-weight: 800; font-size: 15px; line-height: 1.15; }
.city-card .country { font-size: 12px; color: var(--text-secondary); margin-bottom: 8px; }

.country-tag {
  display: inline-flex;
  height: 3px;
  width: 34px;
  border-radius: var(--radius-pill);
}
.country-tag[data-country="AR"] { background: var(--country-argentina); }
.country-tag[data-country="BR"] { background: var(--country-brasil); }
.country-tag[data-country="PY"] { background: var(--country-paraguai); }

/* ==========================================================================
   Card de Evento
   ========================================================================== */

.event-card {
  position: relative;
  flex: 0 0 220px;
  scroll-snap-align: start;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--bg-card);
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border-subtle);
}

.event-card .cover {
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--bg-elevated);
}
.event-card .cover img { width: 100%; height: 100%; object-fit: cover; }

.event-card .category-tag {
  position: absolute; top: 10px; left: 10px;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  background: var(--brand-gradient);
  color: #04121c;
}

.event-card .fav-btn {
  position: absolute; top: 10px; right: 10px;
  width: 32px; height: 32px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: rgba(5,7,15,0.55);
  backdrop-filter: blur(4px);
  color: #fff;
}
.event-card .fav-btn[aria-pressed="true"] { color: #ef4444; }

.event-card .recency-tag {
  position: absolute; top: 10px; left: 10px;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  font-size: 11px;
  font-weight: 800;
  text-transform: none;
  letter-spacing: 0.2px;
  color: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.35);
}
.event-card .recency-tag[data-recency="just_in"] {
  background: linear-gradient(135deg,#16a34a,#4ade80);
  color: #04160b;
}
.event-card .recency-tag[data-recency="new"] {
  background: linear-gradient(135deg,#2563eb,#38bdf8);
}

.category-chip {
  display: inline-flex;
  align-self: flex-start;
  margin-top: 6px;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  background: transparent;
  border: 1.5px solid currentColor;
}
.category-chip[data-cat="music"] { color:#38bdf8; }
.category-chip[data-cat="theatre"] { color:#4ade80; }
.category-chip[data-cat="arts"] { color:#facc15; }
.category-chip[data-cat="crafts"] { color:#d97706; }
.category-chip[data-cat="capoeira"] { color:#14b8a6; }
.category-chip[data-cat="carnival"] { color:#ec4899; }
.category-chip[data-cat="cinema"] { color:#a78bfa; }
.category-chip[data-cat="circus"] { color:#f97316; }
.category-chip[data-cat="community"] { color:#eab308; }
.category-chip[data-cat="dance"] { color:#fb7185; }
.category-chip[data-cat="fairs"] { color:#fb923c; }
.category-chip[data-cat="festivities"] { color:#e879f9; }
.category-chip:not([data-cat="music"]):not([data-cat="theatre"]):not([data-cat="arts"]):not([data-cat="crafts"]):not([data-cat="capoeira"]):not([data-cat="carnival"]):not([data-cat="cinema"]):not([data-cat="circus"]):not([data-cat="community"]):not([data-cat="dance"]):not([data-cat="fairs"]):not([data-cat="festivities"]) { color:#ef4444; }

.sponsored-tag {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 3px 9px;
  border-radius: var(--radius-pill);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  background: linear-gradient(135deg,#d97706,#facc15);
  color: #1c1204;
  margin-bottom: 6px;
}

.event-card .body { padding: 12px 14px 16px; }
.event-card .title {
  font-weight: 700; font-size: 14.5px; line-height: 1.3;
  margin-bottom: 8px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.event-card .meta {
  display: flex; align-items: center; gap: 6px;
  font-size: 12.5px; color: var(--text-secondary);
  margin-bottom: 3px;
}

/* Cores de categoria (aplicadas via data-attribute no JS) */
.category-tag[data-cat="musica"] { background: linear-gradient(135deg,#2563eb,#22d3ee); color:#04121c; }
.category-tag[data-cat="cultura"] { background: linear-gradient(135deg,#16a34a,#4ade80); color:#04160b; }
.category-tag[data-cat="artes-cenicas"] { background: linear-gradient(135deg,#dc2626,#f87171); color:#1c0505; }
.category-tag[data-cat="gastronomia"] { background: linear-gradient(135deg,#d97706,#facc15); color:#1c1204; }

/* ==========================================================================
   Estados vazio / carregando / erro
   ========================================================================== */

.state-box {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 10px;
  padding: 32px 20px;
  color: var(--text-muted);
  text-align: center;
  font-size: 14px;
}

.skeleton {
  background: linear-gradient(90deg, var(--bg-card) 25%, var(--bg-card-hover) 37%, var(--bg-card) 63%);
  background-size: 400% 100%;
  animation: skeleton-loading 1.4s ease infinite;
  border-radius: var(--radius-md);
}
@keyframes skeleton-loading {
  0% { background-position: 100% 50%; }
  100% { background-position: 0 50%; }
}

/* ==========================================================================
   Rodapé
   ========================================================================== */

.site-footer {
  margin-top: 48px;
  padding: 32px 20px 24px;
  border-top: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-size: 13px;
  text-align: center;
}
.site-footer a { color: var(--brand-cyan); }

/* ==========================================================================
   Navegação mobile fixa
   ========================================================================== */

.mobile-nav {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 200;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  height: var(--mobile-nav-height);
  background: rgba(5, 7, 15, 0.92);
  backdrop-filter: blur(16px);
  border-top: 1px solid var(--border-subtle);
}

.mobile-nav a {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
}

.mobile-nav a svg { width: 22px; height: 22px; }

.mobile-nav a[aria-current="page"] { color: var(--brand-cyan); }

/* ==========================================================================
   Responsivo — desktop
   ========================================================================== */

@media (min-width: 900px) {
  body { padding-bottom: 0; }
  .mobile-nav { display: none; }
  .hero { min-height: 620px; }
  .city-card { flex-basis: 200px; }
  .event-card { flex-basis: 280px; }
}


/* Identidade visual oficial no cabeçalho */
.brand-wordmark {
  display: block;
  width: 135px;
  height: 50px;
  object-fit: cover;
  object-position: center 45%;
  flex-shrink: 0;
}

@media (min-width: 640px) {
  .brand-wordmark {
    width: 170px;
    height: 58px;
  }
}

@media (min-width: 1024px) {
  .brand-wordmark {
    width: 195px;
    height: 64px;
  }
}


/* Home integrada ao final da capa */
.hero-dots {
  width: 100%;
  justify-content: center;
}

.home-main {
  position: relative;
  z-index: 3;
  margin-top: -18px;
  padding-top: 6px;
  padding-bottom: 28px;
  border: 1px solid rgba(34, 211, 238, 0.22);
  border-bottom: 0;
  border-radius: 28px 28px 0 0;
  background:
    radial-gradient(circle at 50% 0%, rgba(12, 61, 105, 0.28), transparent 34%),
    linear-gradient(180deg, rgba(5, 23, 48, 0.98), var(--bg-base) 42%);
  box-shadow: 0 -16px 40px rgba(0, 0, 0, 0.3);
}

.home-section {
  padding: 24px 0 8px;
}

.home-section + .ad-slot + .home-section,
.home-section.highlights-section {
  padding-top: 28px;
}

.section-title-line {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 13px;
}

.section-title-copy {
  min-width: 0;
}

.section-icon {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  color: var(--brand-cyan);
  filter: drop-shadow(0 0 8px rgba(34, 211, 238, 0.42));
}

.section-icon-star {
  width: 42px;
  height: 42px;
  flex-basis: 42px;
}

.home-section .section-head {
  align-items: center;
  margin-bottom: 14px;
}

.home-section .section-head h2 {
  font-size: clamp(22px, 4vw, 30px);
}

.home-section .section-sub {
  margin-top: 3px;
}

@media (min-width: 640px) {
  .highlights-section .section-title-copy {
    display: flex;
    align-items: baseline;
    gap: 16px;
  }

  .home-main {
    margin-top: -24px;
    padding-left: 24px;
    padding-right: 24px;
  }
}

@media (min-width: 900px) {
  .hero {
    min-height: 500px;
  }

  .home-main {
    margin-top: -28px;
  }

  .today-section .event-card {
    flex-basis: 250px;
  }

  .highlights-section .event-card {
    flex-basis: 225px;
  }
}


/* Indicadores próximos ao painel de conteúdo */
.hero-dots {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: -54px;
  width: auto;
}

@media (min-width: 900px) {
  .hero-dots {
    bottom: -92px;
  }
}


/* Capa compacta: botões, indicadores e conteúdo mais próximos */
.hero {
  min-height: 430px;
}

.hero-dots {
  position: static;
  width: 100%;
  margin-top: 12px;
  justify-content: center;
}

.home-main {
  margin-top: -14px;
}

@media (min-width: 900px) {
  .hero {
    min-height: 390px;
  }

  .hero-dots {
    position: static;
    margin-top: 12px;
  }

  .home-main {
    margin-top: -18px;
  }
}


/* Ajuste específico da Home para celular */
@media (max-width: 639px) {
  .hero {
    min-height: 350px;
  }

  .hero-content {
    padding: 18px 16px 14px;
  }

  .hero h1 {
    margin-bottom: 8px;
  }

  .hero .slogan {
    margin-bottom: 12px;
  }

  .hero-actions {
    gap: 8px;
  }

  .hero-dots {
    margin-top: 8px;
  }

  .home-main {
    margin-top: -8px;
  }
}


/* Encaixe do painel sobre a base da foto no celular */
@media (max-width: 639px) {
  .hero {
    min-height: 340px;
  }

  .home-main {
    margin-top: -24px;
  }
}


/* Aproximação final entre indicadores e painel no celular */
@media (max-width: 639px) {
  .home-main {
    margin-top: -38px;
  }
}


/* Painel ainda mais próximo dos indicadores no celular */
@media (max-width: 639px) {
  .home-main {
    margin-top: -52px;
  }
}


/* Ajuste fino: painel 20px mais alto no celular */
@media (max-width: 639px) {
  .home-main {
    margin-top: -72px;
  }
}


/* Alinhamento uniforme dos títulos das seções no celular */
@media (max-width: 639px) {
  .home-section .section-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
  }

  .home-section .section-title-line {
    gap: 8px;
    min-width: 0;
  }

  .home-section .section-icon,
  .home-section .section-icon-star {
    width: 32px;
    height: 32px;
    flex-basis: 32px;
  }

  .home-section .section-head h2 {
    font-size: 19px;
    line-height: 1.1;
    white-space: nowrap;
  }

  .home-section .section-head .see-all {
    font-size: 11px;
    white-space: nowrap;
  }
}


/* Remove a faixa da capa e sobe o conjunto em 20px */
.hero {
  min-height: 410px;
}

.hero .country-bar {
  display: none;
}

.hero .slogan {
  margin-bottom: 24px;
}

@media (min-width: 900px) {
  .hero {
    min-height: 370px;
  }
}

@media (max-width: 639px) {
  .hero {
    min-height: 320px;
  }

  .hero .slogan {
    margin-bottom: 20px;
  }
}


/* Assinatura territorial da capa */
.hero-tag {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(19px, 2.2vw, 28px);
  font-weight: 400;
  line-height: 0.98;
  letter-spacing: -0.35px;
  white-space: nowrap;
  background: linear-gradient(180deg, #ffffff 0%, #f5fbff 52%, #cbdbe8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: none;
  filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.78));
}

.hero-tag-bar {
  margin-top: 8px;
}

@media (max-width: 639px) {
  .hero-tag {
    top: 18px;
    right: 14px;
    font-size: 17px;
    line-height: 0.98;
  }
}


/* Botão principal da capa com azul mais vivo */
.hero .btn-primary {
  background: linear-gradient(135deg, #2563eb 0%, #0ea5e9 52%, #22d3ee 100%);
  border: 1px solid rgba(125, 235, 255, 0.7);
  box-shadow:
    0 0 0 1px rgba(37, 99, 235, 0.35),
    0 0 18px rgba(34, 211, 238, 0.62),
    0 0 38px rgba(37, 99, 235, 0.42);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.hero .btn-primary:hover {
  filter: saturate(1.18) brightness(1.1);
  box-shadow:
    0 0 0 1px rgba(125, 235, 255, 0.55),
    0 0 24px rgba(34, 211, 238, 0.78),
    0 0 48px rgba(37, 99, 235, 0.5);
}


/* Refinamento cinematográfico do HERO — 2026-09-23 */
.hero-slide {
  overflow: hidden;
  background: #07111f;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  filter: contrast(1.06) brightness(1.04) saturate(1.04);
  transform: scale(1.018);
  transition: transform 7s cubic-bezier(0.2, 0.65, 0.3, 1), filter 0.8s ease;
  will-change: transform;
}

.hero-slide.active img {
  transform: scale(1.045);
}

.hero-slide--argentina img { object-position: 50% 48%; }
.hero-slide--brasil img { object-position: 50% 51%; }
.hero-slide--paraguai img { object-position: 50% 49%; }

.hero::before {
  background:
    linear-gradient(90deg,
      rgba(2, 8, 20, 0.52) 0%,
      rgba(3, 10, 24, 0.36) 30%,
      rgba(3, 10, 24, 0.16) 58%,
      rgba(3, 10, 24, 0.04) 82%,
      rgba(3, 10, 24, 0.04) 100%),
    linear-gradient(180deg,
      rgba(2, 7, 17, 0.14) 0%,
      rgba(2, 7, 17, 0.06) 48%,
      rgba(5, 7, 15, 0.38) 100%);
}

.hero h1 {
  color: #fff;
  text-wrap: balance;
  text-shadow: 0 3px 18px rgba(0, 0, 0, 0.72);
}

.hero .slogan {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.18em 0.42em;
  width: fit-content;
  max-width: min(100%, 620px);
  margin-bottom: 18px;
  padding: 9px 13px;
  border: 1px solid rgba(203, 230, 255, 0.2);
  border-radius: 12px;
  background: rgba(2, 10, 24, 0.38);
  color: #fff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  font-size: clamp(14px, 2.5vw, 19px);
  font-weight: 560;
  line-height: 1.28;
  letter-spacing: -0.01em;
}

.hero .slogan-part {
  display: inline-flex;
  align-items: baseline;
  gap: 0.24em;
  white-space: nowrap;
}

.hero .slogan-number {
  font-size: 1.1em;
  font-weight: 800;
  line-height: 1;
  text-shadow: 0 0 12px currentColor;
}

.hero .slogan-number-ar { color: #5cc8f5; }
.hero .slogan-number-br { color: #b9cf3b; }
.hero .slogan-number-py { color: #f06161; }

.hero .slogan-separator {
  font-weight: 800;
  opacity: 0.82;
}
.hero .slogan-separator-ar { color: #77d5f8; }
.hero .slogan-separator-py { color: #e5c34a; }

.hero-actions {
  align-items: center;
}

.hero .btn {
  min-height: 48px;
  padding: 13px 22px;
  border: 1px solid transparent;
  font-size: 14px;
  letter-spacing: 0.01em;
  box-shadow: none;
}

.hero .btn-primary {
  color: #fff;
  background: linear-gradient(135deg, #1557e8 0%, #058de8 55%, #18c5e8 100%);
  border-color: rgba(143, 230, 255, 0.72);
  box-shadow:
    0 8px 24px rgba(2, 86, 214, 0.34),
    0 0 24px rgba(34, 211, 238, 0.38),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.hero .btn-outline {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.58);
  background: rgba(3, 11, 25, 0.48);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

@media (hover: hover) and (pointer: fine) {
  .hero .btn:hover {
    transform: translateY(-2px);
  }

  .hero .btn-primary:hover {
    filter: brightness(1.08);
    box-shadow:
      0 11px 30px rgba(2, 86, 214, 0.42),
      0 0 30px rgba(34, 211, 238, 0.5),
      inset 0 1px 0 rgba(255, 255, 255, 0.24);
  }

  .hero .btn-outline:hover {
    border-color: rgba(255, 255, 255, 0.82);
    background: rgba(8, 22, 42, 0.66);
  }
}

@media (max-width: 639px) {
  .hero-slide--argentina img { object-position: 55% 50%; }
  .hero-slide--brasil img { object-position: 52% 51%; }
  .hero-slide--paraguai img { object-position: 56% 50%; }

  .hero::before {
    background:
      linear-gradient(90deg,
        rgba(2, 8, 20, 0.54) 0%,
        rgba(3, 10, 24, 0.32) 52%,
        rgba(3, 10, 24, 0.12) 84%,
        rgba(3, 10, 24, 0.05) 100%),
      linear-gradient(180deg,
        rgba(2, 7, 17, 0.16) 0%,
        rgba(2, 7, 17, 0.08) 45%,
        rgba(5, 7, 15, 0.4) 100%);
  }

  .hero h1 {
    max-width: calc(100% - 4px);
    font-size: clamp(27px, 8.3vw, 34px);
    line-height: 1.04;
  }

  .hero .slogan {
    max-width: calc(100vw - 32px);
    padding: 8px 10px;
    gap: 0.16em 0.34em;
    border-radius: 10px;
    font-size: clamp(12.5px, 3.7vw, 15px);
    line-height: 1.22;
  }

  .hero-actions {
    flex-wrap: nowrap;
    width: 100%;
  }

  .hero .btn {
    flex: 1 1 0;
    justify-content: center;
    min-width: 0;
    min-height: 48px;
    padding: 11px 12px;
    font-size: clamp(12px, 3.5vw, 14px);
    white-space: nowrap;
  }

  .hero .btn svg {
    width: 17px;
    height: 17px;
    flex: 0 0 auto;
  }
}

@media (max-width: 359px) {
  .hero .slogan {
    max-width: calc(100vw - 28px);
    font-size: 12px;
    gap: 0.12em 0.28em;
  }

  .hero .btn {
    padding-inline: 9px;
    font-size: 11.5px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-slide img,
  .hero-slide.active img {
    transform: scale(1.025);
    transition: none;
  }
}


/* Ampliação discreta da marca, preservando a linha e os controles atuais. */
.site-header .brand img.logo,
.site-header .brand-wordmark {
  transform: scale(1.1024);
  transform-origin: center;
}


/* Países legíveis separadamente, sem aumentar a largura do cabeçalho.
   Recorta apenas a linha pequena embutida; nome e faixa permanecem intactos. */
.site-header .brand:has(.brand-wordmark) {
  position: relative;
  --country-line-width: 148.824px;
  --country-line-font: 6.4px;
  --country-line-bottom: -1px;
}
.site-header .brand-wordmark { clip-path: inset(0 0 15% 0); }
.site-header .brand:has(.brand-wordmark)::after {
  content: "ARGENTINA • BRASIL • PARAGUAI" / "";
  position: absolute;
  right: -6.912px;
  bottom: var(--country-line-bottom);
  width: var(--country-line-width);
  color: #fff;
  font-family: var(--font-base);
  font-size: var(--country-line-font);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.15px;
  text-align: center;
  white-space: nowrap;
  pointer-events: none;
}
@media (min-width: 420px) and (max-width: 639px) {
  .site-header .brand:has(.brand-wordmark) { --country-line-bottom: 2px; }
}
@media (min-width: 640px) {
  .site-header .brand-wordmark { clip-path: inset(0 0 11% 0); }
  .site-header .brand:has(.brand-wordmark) {
    --country-line-width: 187.408px;
    --country-line-font: 8px;
    --country-line-bottom: 1px;
  }
  .site-header .brand:has(.brand-wordmark)::after { right: -8.704px; }
}
@media (min-width: 1024px) {
  .site-header .brand-wordmark { clip-path: inset(0 0 10% 0); }
  .site-header .brand:has(.brand-wordmark) {
    --country-line-width: 214.968px;
    --country-line-font: 9.2px;
    --country-line-bottom: -3px;
  }
  .site-header .brand:has(.brand-wordmark)::after { right: -9.984px; }
}

/* A linha dos países acompanha o idioma selecionado. */
html:lang(es) .site-header .brand:has(.brand-wordmark)::after {
  content: "ARGENTINA • BRASIL • PARAGUAY" / "";
}

/* Celulares estreitos (< 390px): o seletor de idioma encostava no logo.
   Reduz o conjunto do logo por inteiro (mantém a linha dos países alinhada)
   e deixa o seletor um pouco mais compacto. */
@media (max-width: 389px) {
  .site-header .brand { transform: scale(.92); transform-origin: left center; }
  .header-actions { gap: 6px; }
  .lang-switch button { padding: 6px 7px; }
}
@media (max-width: 359px) {
  .site-header .brand { transform: scale(.74); }
  .lang-switch { font-size: 10.5px; }
  .lang-switch button { padding: 5px 6px; }
  .menu-toggle { width: 32px; height: 32px; }
}

/* ==========================================================================
   Evento em destaque / patrocinado (etapa 3)
   Contorno dourado discreto + selo. Dourado = 4ª cor oficial da logo.
   ========================================================================== */
.event-card.is-featured,
.agenda-card.is-featured {
  border-color: color-mix(in srgb, var(--brand-gold) 70%, transparent);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--brand-gold) 55%, transparent), 0 10px 30px -12px color-mix(in srgb, var(--brand-gold) 45%, transparent), var(--shadow-card);
}
.event-card.is-featured .cover::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 3px;
  background: linear-gradient(90deg, #d97706, var(--brand-gold), #d97706);
}
.featured-tag {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  margin-bottom: 6px;
  padding: 3px 9px;
  border-radius: var(--radius-pill);
  font-size: 11px;
  font-weight: 800;
  color: #3a2a02;
  background: linear-gradient(135deg, #fde68a, var(--brand-gold));
}
.agenda-card .featured-tag { margin: 0 0 5px; font-size: 10px; padding: 3px 8px; }


/* ==========================================================================
   EXPERIÊNCIA NO COMPUTADOR (tela de 1100px ou mais)
   Tudo aqui fica dentro de @media (min-width: 1100px): celular e tablet
   continuam exatamente como estavam.
   ========================================================================== */
@media (min-width: 1100px) {

  /* Menu principal no cabeçalho, ocupando o espaço ao lado do logo
     (no celular ele continua na barra de baixo) */
  .mobile-nav {
    display: flex !important;
    position: fixed;
    top: calc((var(--header-height) - 54px) / 2);
    bottom: auto; right: auto;
    left: 50%;
    transform: translateX(-50%);
    width: auto;
    height: 54px;
    padding: 5px;
    align-items: center;
    gap: 4px;
    background: rgba(148, 163, 184, .08) !important;
    border: 1px solid var(--border-subtle) !important;
    border-radius: var(--radius-pill);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    z-index: 101;
  }
  .mobile-nav a {
    flex-direction: row;
    gap: 9px;
    height: 44px;
    padding: 0 22px;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: .01em;
    border-radius: var(--radius-pill);
    color: var(--text-secondary);
    transition: background .18s ease, color .18s ease, box-shadow .18s ease;
  }
  .mobile-nav a svg { width: 19px; height: 19px; }
  .mobile-nav a:hover { background: rgba(148, 163, 184, .16); color: var(--text-primary); }
  .mobile-nav a[aria-current="page"] {
    background: rgba(34, 211, 238, .16);
    color: var(--brand-cyan);
    box-shadow: inset 0 0 0 1px rgba(34, 211, 238, .38);
  }

  /* Cabeçalho alinhado com o conteúdo */
  .site-header { padding: 0 clamp(16px, 2.6vw, 48px); }

  /* Capa da Home: texto centralizado, maior e no meio da foto */
  .hero { min-height: 560px; align-items: center; }
  .hero-content {
    max-width: 1180px;
    margin: 0 auto;
    padding: 36px 20px 64px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .hero h1 {
    max-width: 1000px;
    font-size: clamp(54px, 5.2vw, 88px);
    line-height: 1.04;
    letter-spacing: -0.02em;
    margin-bottom: 22px;
  }
  .hero .slogan {
    margin-left: auto;
    margin-right: auto;
    padding: 12px 22px;
    font-size: clamp(18px, 1.5vw, 24px);
    border-radius: 14px;
    margin-bottom: 30px;
  }
  .hero-actions { justify-content: center; gap: 16px; }
  .hero-actions .btn { padding: 15px 30px; font-size: 16px; }
  .hero-tag { right: clamp(20px, 3vw, 56px); }

  /* Faixas da Home: em vez de rolar de lado, mostram os cards em grade */
  .home-main .hscroll {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    overflow: visible;
    padding: 4px 0 14px;
    margin: 0;
    scroll-snap-type: none;
  }
  .home-main .hscroll > .event-card,
  .home-main .hscroll > .city-card {
    flex: none;
    width: auto;
    max-width: none;
    min-width: 0;
  }
  .home-main .hscroll > :nth-child(n+9) { display: none; }

  /* Cards respondem ao mouse */
  .event-card { transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
  .event-card:hover { transform: translateY(-4px); box-shadow: 0 14px 34px rgba(0, 0, 0, .38); }

  /* Link "Voltar" alinhado ao conteúdo */
  .back-link.container { display: flex; }

  /* Rodapé mais respirado */
  .site-footer { padding-top: 34px; padding-bottom: 34px; }
}

@media (min-width: 1100px) and (max-width: 1299px) {
  .mobile-nav a { padding: 0 15px; font-size: 14px; }
  .mobile-nav a svg { display: none; }
}

@media (min-width: 1500px) {
  .home-main .hscroll { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .home-main .hscroll > :nth-child(n+9) { display: block; }
  .home-main .hscroll > :nth-child(n+11) { display: none; }
}

/* ===== PC: botão voltar (Agenda, Mapa, Cidades) ===== */
.pc-back-row { display: none; }
@media (min-width: 1100px) {
  .pc-back-row { display: flex; padding-top: 18px; padding-bottom: 0; position: relative; z-index: 5; }
  .pc-back {
    display: inline-flex; align-items: center; justify-content: center;
    width: 46px; height: 46px; border-radius: 50%;
    color: var(--text-primary, #fff); text-decoration: none;
    background: rgba(148, 163, 184, .10); border: 1px solid var(--border-subtle, rgba(255,255,255,.14));
    transition: background .18s ease, transform .18s ease, border-color .18s ease;
  }
  .pc-back:hover { background: rgba(34, 211, 238, .18); border-color: rgba(34, 211, 238, .55); transform: translateX(-2px); }
  .pc-back:focus-visible { outline: 2px solid #22d3ee; outline-offset: 3px; }
  .pc-back svg { width: 22px; height: 22px; }
}

/* ===== PC: mais espaço entre a faixa colorida e "ARGENTINA • BRASIL • PARAGUAI" ===== */
@media (min-width: 1100px) {
  .site-header .brand:has(.brand-wordmark) { --country-line-bottom: -9px; }
}

/* "por <quem publicou>" nos cartões de evento */
.event-card .ct-by { display: flex; align-items: center; gap: 6px; min-width: 0; }
.event-card .ct-by img { flex: none; border-radius: 2px; box-shadow: 0 0 0 1px rgba(148, 163, 184, .35); }
.event-card .ct-by span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Carrossel do hero — fotos 4 e 5 (Hernandarias e Presidente Franco):
   enquadramento para mostrar a placa com o nome da cidade, a bandeira do Paraguai e a paisagem. */
.hero-slide--hernandarias img { object-position: 85% 60%; }
.hero-slide--presidente-franco img { object-position: 85% 94%; }

@media (max-width: 639px) {
  .hero-slide--hernandarias img { object-position: 94% 50%; }
  .hero-slide--presidente-franco img { object-position: 96% 50%; }
  /* Presidente Franco: sobe a bandeira para ela não ficar atrás dos botões */
  .hero-slide.hero-slide--presidente-franco img,
  .hero-slide.active.hero-slide--presidente-franco img {
    transform-origin: 85% 58%;
    transform: translateY(-18%) scale(1.4);
  }
}

/* Etiqueta discreta com bandeira e nome da cidade no topo do hero (só celular) — fotos 4 e 5 */
.hero-slide-label { display: none; }
@media (max-width: 639px) {
  .hero-slide-label{position:absolute;top:12px;right:12px;z-index:3;display:inline-flex;align-items:center;gap:5px;padding:3px 8px 3px 5px;border-radius:999px;background:rgba(6,16,34,.5);border:1px solid rgba(255,255,255,.3);-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);box-shadow:0 2px 8px rgba(0,0,0,.3);pointer-events:none;color:#fff;font-size:8px;font-weight:800;line-height:1;letter-spacing:.08em;text-transform:uppercase;white-space:nowrap}
  .hero-slide-flag{display:inline-block;width:13px;height:9px;border-radius:3px;background:linear-gradient(#d52b1e 0 33.3%,#fff 33.3% 66.6%,#0038a8 66.6% 100%);box-shadow:0 0 0 1px rgba(255,255,255,.4)}
  .hero-slide-label b{font-weight:800}
}
