:root {
  --primary: #cf1d85;
  /* magenta principal */
  --primary-dark: #a01866;
  /* magenta mais escuro */
  --bg: #f8f5f0;
  --text: #222222;
  --muted: #666666;
  --card-bg: #ffffff;
  --border-radius: 18px;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

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

a {
  color: inherit;
  text-decoration: none;
}

/* HEADER / NAV */

header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(248, 245, 240, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

.nav-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0.6rem 1.5rem;
  /* antes era 0.9rem */
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 800;
}

.logo-sankofa {
  width: 154px;
  height: 94px;
  object-fit: contain;
}

.nav-brand {
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: #42371f;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.9rem;
  color: var(--muted);
}

.logo-mark {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: radial-gradient(circle at 20% 20%,
      #ffffff,
      #ffe5f4 40%,
      var(--primary));
  box-shadow: 0 0 0 4px rgba(207, 29, 133, 0.25),
    0 0 30px rgba(207, 29, 133, 0.4);
  position: relative;
  overflow: hidden;
}

.logo-mark::after {
  content: "";
  position: absolute;
  inset: 40% 12% 12% 45%;
  border-radius: 999px;
  background: radial-gradient(circle at 50% 0%, #fff5cc, transparent 65%);
  opacity: 0.9;
}

nav ul {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  list-style: none;
  font-size: 0.9rem;
}

nav a {
  position: relative;
  padding-bottom: 0.1rem;
  color: var(--muted);
  transition: color 0.2s ease;
}

nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.15rem;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--primary-dark));
  transition: width 0.18s ease;
}

nav a:hover {
  color: var(--text);
}

nav a:hover::after {
  width: 100%;
}

.nav-cta {
  padding: 0.45rem 0.95rem;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  font-size: 0.8rem;
  font-weight: 600;
  background: #ffe5f4;
  transition: background 0.2s ease, transform 0.1s ease, box-shadow 0.1s ease,
    border-color 0.2s ease, color 0.2s ease;
  box-shadow: 0 8px 20px rgba(207, 29, 133, 0.25);
  color: var(--text);
}

.nav-cta:hover {
  background: #ffc7ea;
  border-color: rgba(207, 29, 133, 0.6);
  transform: translateY(-1px);
  box-shadow: 0 10px 26px rgba(207, 29, 133, 0.4);
}

/* MOBILE NAV */

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
}

.nav-toggle span {
  width: 22px;
  height: 2px;
  border-radius: 999px;
  background: var(--text);
}

@media (max-width: 768px) {
  nav ul {
    position: absolute;
    right: 1.5rem;
    top: 3.2rem;
    flex-direction: column;
    background: var(--card-bg);
    padding: 0.8rem 1rem;
    border-radius: 14px;
    box-shadow: var(--shadow);
    border: 1px solid rgba(0, 0, 0, 0.04);
    display: none;
  }

  nav ul.open {
    display: flex;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-desktop-only {
    display: none;
  }
}

/* LAYOUT BASE */

main {
  max-width: 1100px;
  margin: 0 auto;
  /*padding: 2.2rem 1.5rem 3.5rem;*/
  padding: 2.2rem 1.5rem 1.5rem;

}

section {
  margin-bottom: 3.4rem;
  scroll-margin-top: 90px;
  /* altura aproximada do header */
}

.section-header {
  margin-bottom: 1.8rem;
}

.section-eyebrow {
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--primary-dark);
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.section-title {
  font-size: 1.9rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.section-subtitle {
  font-size: 0.95rem;
  color: var(--muted);
  max-width: 900px;
}

/* HERO */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 2.1rem;
  align-items: center;
  margin-top: 1.8rem;
}

/* HERO BADGE – bolinhas das três famílias de cartas */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1.1rem 2.4rem;
  /* mais largo e mais alto */
  border-radius: 999px;
  font-size: 1.15rem;
  /* tamanho forte e legível */
  font-weight: 600;
  letter-spacing: 0.5px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.08);
  margin-bottom: 1.6rem;
  border: 2px solid rgba(0, 0, 0, 0.05);
}

.hero-badge span {
  font-size: 1.6rem;
  font-weight: 700;
}

.hero-badge-dots {
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
}

/* bolinha base */
.hero-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.9), 0 0 10px rgba(0, 0, 0, 0.08);
}

/* cores das cartas */
.hero-dot-lib {
  background: #f20a09;
  /* Libertação */
}

.hero-dot-abol {
  background: #00bf63;
  /* Abolição */
}

.hero-dot-eman {
  background: #efc340;
  /* Emancipação */
}

.pan-dot {
  width: 15px;
  height: 15px;
  border-radius: 50%;
}

.hero-badge-orb {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 20%, #ffffff, #3bb273);
  box-shadow: 0 0 0 3px rgba(59, 178, 115, 0.35);
}

/* texto do badge mais “nome do projeto” */
.hero-badge-label {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-weight: 800;
  color: #5b4a2a;
  /* ou var(--text-strong) se tiver */
}

.hero-title {
  font-size: clamp(1.9rem, 1.9vw + 1rem, 2.4rem);
  line-height: 1.12;
  margin-bottom: 0.75rem;
}

.hero-highlight {
  color: var(--primary-dark);
}

.hero-text {
  font-size: 0.98rem;
  color: var(--muted);
  margin-bottom: 1.2rem;
  max-width: 34rem;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.1rem;
  align-items: center;
}

.hero-tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  font-size: 0.8rem;
}

.hero-tag {
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  color: var(--muted);
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1rem;
}

.btn-primary,
.btn-ghost {
  padding: 0.7rem 1.1rem;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.1s ease, box-shadow 0.1s ease,
    border-color 0.2s ease, color 0.2s ease;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #ffffff;
  box-shadow: 0 10px 24px rgba(207, 29, 133, 0.35);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(207, 29, 133, 0.42);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(0, 0, 0, 0.08);
  color: var(--muted);
}

.btn-ghost:hover {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.16);
  color: var(--text);
}

.hero-card {
  background: radial-gradient(circle at top left, #ffe5f4, #ffffff);
  border-radius: 26px;
  padding: 1.4rem 1.3rem 1.2rem;
  box-shadow: var(--shadow);
  border: 1px solid rgba(207, 29, 133, 0.2);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  position: relative;
  overflow: hidden;
}

.hero-card-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.78rem;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(0, 0, 0, 0.04);
  align-self: flex-start;
  color: var(--muted);
}

.hero-card-main {
  background: #ffffff;
  border-radius: 18px;
  padding: 0.9rem;
  border: 1px dashed rgba(0, 0, 0, 0.06);
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.hero-card-title {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.15rem;
}

.hero-card-text {
  font-size: 0.85rem;
  color: var(--muted);
}

.hero-card-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: 0.4rem;
}

@media (max-width: 840px) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* CARD GENÉRICO */

.card {
  background: var(--card-bg);
  border-radius: var(--border-radius);
  padding: 1.4rem 1.5rem;
  box-shadow: var(--shadow);
}

.card p {
  font-size: 0.95rem;
  color: var(--muted);
  margin-bottom: 0.7rem;
}

/* SOBRE O JOGO */

.game-layout {
  display: block;
  grid-template-columns: minmax(0, 1fr);
  gap: 2rem;
}

.definition-list {
  margin-top: 1.25rem;
  font-size: 0.9rem;
}

/* Bloco de seção */
.def-block {
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  padding: 0.75rem 0;
}

.def-block:last-child {
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

/* Cabeçalho clicável */
.def-toggle {
  background: none;
  border: 0;
  padding: 0.55rem 0;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font: inherit;
  font-weight: 700;
  font-size: 1rem;
  color: #30261a;
  cursor: pointer;
}

/* Ícone (setinha) */
.def-toggle-icon {
  font-size: 0.9rem;
  transform: translateY(1px);
  transition: transform 0.25s ease;
}

/* Conteúdo colapsável */
.def-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
}

/* Quando o bloco está aberto */
.def-block.open .def-toggle-icon {
  transform: rotate(90deg);
}

/* Bullet lists dentro do acordeão ganham um espacinho */
.def-block.open .def-content {
  /* o valor real de max-height é ajustado via JS */
  margin-top: 0.75rem;
}

.definition-list dt {
  font-weight: 600;
  margin-top: 0.4rem;
}

.definition-list dd {
  margin-left: 0;
  color: var(--muted);
  margin-bottom: 0.25rem;
}

.objectives-list {
  list-style: none;
  padding-left: 0;
  margin: 0.6rem 0 1.6rem 0;
  font-size: 0.98rem;
  color: #3a3327;
}

.objectives-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  margin-bottom: 0.6rem;
  line-height: 1.5;
}

.obj-number {
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: var(--primary);
  color: white;
  font-size: 0.8rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
}


.info-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  background: #ffe5f4;
  border: 1px solid rgba(207, 29, 133, 0.35);
  color: var(--primary-dark);
  margin-top: 0.4rem;
}

@media (max-width: 840px) {
  .game-layout {
    grid-template-columns: minmax(0, 1fr);
  }
}


/* Estilo das referências no acordeão */
.ref-wrapper {
  font-size: 0.92rem;
  line-height: 1.55;
  color: #3c342d;
}

.ref-wrapper p {
  margin-bottom: 1rem;
}

.ref-wrapper a {
  color: var(--primary);
  word-break: break-all;            /* deixa links grandes quebrarem em mobile */
  text-decoration: none;
  border-bottom: 1px solid rgba(242, 10, 9, 0.3); /* sublinhado editorial elegante */
  transition: 0.2s ease;
}

.ref-wrapper a:hover {
  color: #b10000;
  border-bottom-color: #b10000;
}


/* Lista base de bullets */
.bullet-list {
  list-style: none;
  margin: 0.6rem 0 0.9rem 0;
  /* reduz o espaço inferior */
  padding-left: 1.2rem;
}


.bullet-list li {
  position: relative;
  margin-bottom: 0.45rem;
  line-height: 1.45;
  color: #3a3327;
  font-size: 0.95rem;
}

.bullet-list li::before {
  content: "•";
  position: absolute;
  left: -1rem;
  font-size: 1.05rem;
  line-height: 1;
  top: 0.1rem;
  color: var(--primary-dark);
  /* magenta escuro */
  font-weight: 700;
}

.trail-acc-cards {
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  margin-top: 0.4rem;
  padding-top: 0.4rem;
  font-size: 0.85rem;
  color: #4a3a25;
}

.trail-acc-cards h5 {
  font-size: 0.86rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.25rem;
  color: #7a6c4a;
}

.trail-acc-cards ul {
  list-style: disc;
  padding-left: 1.2rem;
  margin: 0;
}

.trail-acc-cards li+li {
  margin-top: 0.2rem;
}

/* ----- Trilhas dentro de Materiais ----- */

.trail-acc-content {
  padding-top: 0.75rem;
  border-top: 1px solid rgba(0, 0, 0, 0.04);
}

.trail-acc-text {
  font-size: 0.95rem;
  line-height: 1.5;
  margin-bottom: 0.75rem;
}

.trail-acc-scale {
  list-style: none;
  padding-left: 0;
  margin: 0 0 1rem 0;
  font-size: 0.9rem;
}

.trail-acc-scale li+li {
  margin-top: 0.35rem;
}

/* container das cartas */
.trail-cards {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

/* cada carta dentro da trilha */
.trail-card {
  background: #fffaf0;
  /* bem clarinho, combina com o tema */
  border-radius: 10px;
  padding: 0.75rem 0.9rem;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.02);
  border: 1px solid rgba(0, 0, 0, 0.03);
}

.trail-card-title {
  font-size: 0.92rem;
  font-weight: 700;
  text-transform: none;
  margin: 0 0 0.35rem 0;
  color: #3a3325;
}

.trail-card-question {
  font-size: 0.9rem;
  margin: 0 0 0.4rem 0;
  color: #534935;
}

.trail-card-list {
  margin: 0;
  padding-left: 1.1rem;
  font-size: 0.9rem;
}

.trail-card-list li+li {
  margin-top: 0.25rem;
}

/* bolinha colorida das trilhas */
.trail-dot {
  position: absolute;
  left: 0;
  top: 0.45rem;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 999px;
}

/* Mini bolinhas para cores das trilhas */
.t-amarelo,
.t-vermelho,
.t-verde {
  position: relative;
  
  padding-left: 0.9rem;
  /* espaço para a bolinha */
}

.t-amarelo::before,
.t-vermelho::before,
.t-verde::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  transform: translateY(-50%);
}

.t-amarelo::before {
  background: #efc340;
}

.t-vermelho::before {
  background: #f20a09;
}

.t-verde::before {
  background: #00bf63;
}



/* Emancipação – amarelo */
.trail-eman {
  background: #efc340;
}

/* Libertação – vermelho */
.trail-lib {
  background: #f20a09;
}

/* Abolição – verde */
.trail-abol {
  background: #00bf63;
}

/* CARTAS INTERATIVAS + CARROSSEL */

.deck-block {
  margin-bottom: 4rem;
  padding-top: 1.4rem;
  /* mais sutil e ainda dá respiro pro título */
  position: relative;
  overflow: visible;
}



.deck-title {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 0.8rem;
  color: var(--primary-dark);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}


.deck-subtitle {
  font-size: 0.95rem;
  color: var(--muted);
  margin-top: -0.1rem;
  margin-bottom: 1.6rem;
  max-width: 900px;
  /* largura maior e mais proporcional */
  margin-left: 0;
  /* alinhar à esquerda */
  margin-right: auto;
  /* respeita o container do main */
  line-height: 1.5;
}




/* Cores dos títulos por conjunto de cartas */

.deck-libertacao .deck-title {
  color: #f20a09;
  /* vermelho Libertação */
}

.deck-abolicao .deck-title {
  color: #00bf63;
  /* verde Abolição */
}

.deck-emancipacao .deck-title {
  color: #efc340;
  /* amarelo Emancipação */
}

.carousel {
  position: relative;            /* referência pros botões absolutos */
  display: flex;
  align-items: center;
  gap: 0.6rem;
}


.carousel-btn {
  background: var(--primary);
  border: none;
  border-radius: 50%;
  width: 46px;
  height: 46px;
  aspect-ratio: 1 / 1;          /* garante círculo perfeito */
  font-size: 1.3rem;
  cursor: pointer;
  color: #fff;
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  z-index: 30;
  transition: all 0.25s ease;
  /* novo: botões flutuando no meio da altura */
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0.75;
}

.carousel-btn:hover {
  transform: translateY(-50%) scale(1.12);
  opacity: 1;               /* mais forte no hover */
}

/* posição */
.carousel-btn.prev { left: -30px; }
.carousel-btn.next { right: -30px; }


/* Cores por trilha */
.deck-libertacao .carousel-btn {
  background: rgba(229, 57, 53, 0.75);     /* vermelho translúcido */
}
.deck-libertacao .carousel-btn:hover {
  background: #d52521;                    /* vermelho sólido */
}

.deck-abolicao .carousel-btn {
  background: rgba(46, 125, 50, 0.75);     /* verde */
}
.deck-abolicao .carousel-btn:hover {
  background: #2e7d32;
}

.deck-emancipacao .carousel-btn {
  background: rgba(249, 168, 37, 0.75);    /* amarelo */
}
.deck-emancipacao .carousel-btn:hover {
  background: #f9a825;
}



.carousel-track {
  display: flex;
  overflow-x: auto;
  scroll-behavior: smooth;
  gap: 1.2rem;
  padding: 0.3rem;
}

.carousel-track::-webkit-scrollbar {
  display: none;
}

/* 3D flip das cartas + zoom, tamanho 250x380 */

.card-outer {
  perspective: 1100px;
  width: 260px;
  min-width: 260px;
  max-width: 260px;
  height: 395px;
}

.card-3d {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transform: translateZ(0) rotateY(0deg);
  transition: transform 0.6s cubic-bezier(0.22, 0.61, 0.36, 1),
    box-shadow 0.3s ease;
  cursor: pointer;
  box-shadow: var(--shadow);
  border-radius: 18px;
  pointer-events: auto;
}

/* hover leve quando parada */
.card-3d:hover:not(.flipped):not(.flipping) {
  transform: translateY(-6px) rotateX(3deg) rotateY(-4deg);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.18), 0 0 30px rgba(207, 29, 133, 0.25);
}

/* zoom rápido antes do flip */
.card-3d.flipping {
  transform: scale(1.04) translateY(-4px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.2), 0 0 36px rgba(207, 29, 133, 0.35);
}

/* estado final: virada + leve zoom */
.card-3d.flipped {
  transform: rotateY(180deg) scale(1.04) translateY(-4px) translateZ(15px);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.24), 0 0 48px rgba(207, 29, 133, 0.45);
}

.card-face {
  position: absolute;
  inset: 0;
  border-radius: 18px;
  overflow: hidden;
  backface-visibility: hidden;
  background: var(--card-bg);
  border: 1px solid rgba(0, 0, 0, 0.06);
  display: flex;
  flex-direction: column;
  pointer-events: none;
  /* importante: deixa o clique ir pro card-3d */
}

.card-front {
  background: radial-gradient(circle at top, #ffe5f4, #ffffff);
}

.card-front img {
  width: 250px;
  height: 380px;
  margin: auto;
  display: block;
  margin-top: 7px;
  object-fit: cover;
}

.card-back {
  background: radial-gradient(circle at top, #ffe5f4, #ffffff);
  transform: rotateY(180deg);
  padding: 0;
}

.card-back img {
  width: 250px;
  height: 380px;
  margin: auto;
  display: block;
  margin-top: 7px;
  object-fit: cover;
}

.card-label {
  padding: 0.6rem 0.8rem;
  font-size: 0.85rem;
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem;
  background: #ffffff;
}

.card-label span:first-child {
  font-weight: 600;
  color: var(--text);
}

.card-label-tag {
  font-size: 0.78rem;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: #ffe5f4;
}

.cards-note {
  margin-top: 0.8rem;
  font-size: 0.82rem;
  color: var(--muted);
}

.verso {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.verso.is-visible {
  opacity: 1;
}


/* MAPA DAS TRILHAS */

.map-wrapper {
  display: grid;
  gap: 1rem;
  margin-top: 1rem;
}

#map {
  width: 100%;
  height: 420px;
  border-radius: var(--border-radius);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

/* legenda embaixo do mapa */
.map-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem 1.5rem;
  align-items: center;
  font-size: 0.9rem;
  color: var(--muted);
}

.map-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.map-legend-label strong {
  color: var(--text);
}

/* Filtros do mapa */

.map-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.3rem;
}

.map-filter-btn {
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: #ffffff;
  border-radius: 999px;
  padding: 0.3rem 0.8rem;
  font-size: 0.8rem;
  cursor: pointer;
  color: var(--muted);
  transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease,
    transform 0.1s ease;
}

.map-filter-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.08);
}

.map-filter-btn.is-active {
  background: var(--primary-dark);
  color: #fff;
  border-color: rgba(0, 0, 0, 0.12);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12);
}

@media (max-width: 720px) {
  .map-filters {
    gap: 0.4rem;
  }

  .map-filter-btn {
    font-size: 0.78rem;
    padding: 0.25rem 0.7rem;
  }
}


/* bolinhas já aproveitando as classes das trilhas */
.trail-dot {
  width: 14px;
  height: 14px;
  border-radius: 999px;
  display: inline-block;
}

/* se já existirem essas classes de cor, ótimo.
   se não, podemos garantir aqui: */
.trail-lib {
  background: #e53935; /* vermelho */
}

.trail-abo {
  background: #2e7d32; /* verde */
}

.trail-ema {
  background: #f9a825; /* amarelo */
}

@media (max-width: 720px) {
  #map {
    height: 320px;
  }
}


/* GALERIA DE DINÂMICAS */

.session-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}

.session-item {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background: #ddd;
  box-shadow: var(--shadow);
  cursor: pointer; /* novo */
}

.session-item img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  transition: transform 0.25s ease-out; /* novo */
}
.session-item:hover img {
  transform: scale(1.03);
}

.session-caption {
  position: absolute;
  left: 10px;
  bottom: 10px;
  right: 10px;
  background: rgba(0, 0, 0, 0.55);
  color: #ffffff;
  font-size: 0.8rem;
  padding: 0.35rem 0.5rem;
  border-radius: 999px;
  text-align: center;
}

/* LIGHTBOX DAS FOTOS DE REGISTROS */
.photo-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  z-index: 1000;
}

.photo-lightbox.open {
  opacity: 1;
  pointer-events: auto;
}

.photo-lightbox-content {
  position: relative;
  max-width: min(960px, 100%);
  max-height: 90vh;
  margin: 0;
}

.photo-lightbox-content img {
  width: 100%;
  height: auto;
  max-height: 80vh;
  display: block;
  border-radius: 18px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.55);
  background: #000;
}

.photo-lightbox-content figcaption {
  margin-top: 0.75rem;
  text-align: center;
  font-size: 0.9rem;
  color: #f5f5f5;
}

.photo-lightbox-close {
  position: absolute;
  top: -12px;
  right: -12px;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: none;
  background: rgba(255, 255, 255, 0.9);
  color: #333;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
}

.photo-lightbox-close:hover {
  background: #ffffff;
}



/* VÍDEOS */

.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.4rem;
}

.video-card {
  background: var(--card-bg);
  border-radius: var(--border-radius);
  padding: 1rem;
  box-shadow: var(--shadow);
}

.video-wrapper {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: 12px;
  background: #000;
  margin-bottom: 0.7rem;
}

.video-wrapper iframe,
.video-wrapper video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-card h3 {
  font-size: 0.98rem;
  margin-bottom: 0.25rem;
}

.video-card p {
  font-size: 0.85rem;
  color: var(--muted);
}

/* EQUIPE */

.team-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.6rem;
}

@media (max-width: 800px) {
  .team-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

.team-card {
  background: var(--card-bg);
  border-radius: 22px;
  padding: 1.1rem 1.3rem;
  box-shadow: var(--shadow);
  border: 1px solid rgba(0, 0, 0, 0.04);
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr);
  gap: 0.9rem;
  align-items: flex-start;
}

/* transforma o bloco de texto (a segunda <div> dentro do card)
   em uma coluna flex que ocupa toda a altura */
.team-card>div:last-child {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  height: 100%;
}

/* foto sempre coladinha no topo */
.team-avatar-wrap {
  align-self: flex-start;
  position: relative;
  width: 90px;
  height: 90px;
  border-radius: 999px;
  padding: 2px;
  background: conic-gradient(from 140deg,
      var(--primary),
      #ffb6e5,
      #ff7ac1,
      var(--primary));
  box-shadow: 0 0 30px rgba(207, 29, 133, 0.45);
}

.team-avatar-inner {
  width: 100%;
  height: 100%;
  border-radius: inherit;
  overflow: hidden;
  background: #ffe6f5;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #4b0030;
  font-weight: 700;
  font-size: 1.4rem;
}

.team-avatar-inner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.team-role {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--primary-dark);
  margin-bottom: 0.2rem;
  font-weight: 700;
}

.team-name {
  font-weight: 600;
  font-size: 1.1rem;
  margin-bottom: 0.15rem;
}

.team-bio {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 0.4rem;
}

.team-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.4rem;
}

/* empurra tags + botões para o final da coluna */
.team-tags {
  margin-top: auto;
}

.team-social {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.5rem;
}

/* BOTÕES SOCIAIS NOS CARDS DA EQUIPE */

.team-social {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.55rem;
}

.social-btn {
  font-size: 0.78rem;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  font-weight: 600;
  border: 1px solid rgba(0, 0, 0, 0.1);
  transition: transform 0.12s ease, background 0.15s ease;
}

.social-btn:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
}

.chip {
  font-size: 0.78rem;
  padding: 0.22rem 0.6rem;
  border-radius: 999px;
  background: #f5f1e3;
  color: var(--muted);
}

/* FEEDBACKS – CAMINHO COM SANKOFA */

.feedback-board {
  background: var(--card-bg);
  border-radius: 24px;
  padding: 1.6rem 1.5rem;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.feedback-board::before {
  content: "";
  position: absolute;
  inset: 18% 0 18% 0;
  background-image: radial-gradient(circle,
      rgba(0, 0, 0, 0.07) 1px,
      transparent 1px);
  background-size: 32px 32px;
  opacity: 0.4;
  pointer-events: none;
}

.feedback-track {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  z-index: 1;
  margin-top: 0.4rem;
}

.feedback-track::before {
  content: "";
  position: absolute;
  left: 8px;
  right: 8px;
  top: 50%;
  height: 2px;
  background-image: linear-gradient(to right,
      rgba(0, 0, 0, 0.14) 50%,
      rgba(0, 0, 0, 0) 0);
  background-size: 10px 2px;
  background-repeat: repeat-x;
  opacity: 0.4;
}

.feedback-token {
  flex: 1 1 260px;
  max-width: 320px;
  background: #ffe5f4;
  /* fundo rosado, combinando com o resto */
  border-radius: 18px;
  padding: 0.85rem 0.9rem;
  border: 1px solid rgba(207, 29, 133, 0.35);
  /* magenta */
  box-shadow: 0 6px 18px rgba(207, 29, 133, 0.25);
  position: relative;
}

/* alternância claro/escuro */
.feedback-token:nth-child(even) {
  background: var(--primary-dark);
  border-color: rgba(0, 0, 0, 0.16);
}

.feedback-text {
  font-size: 0.86rem;
  color: var(--muted);
  margin-bottom: 0.45rem;
}

.feedback-meta {
  font-size: 0.78rem;
  display: flex;
  justify-content: space-between;
  gap: 0.4rem;
  color: var(--primary-dark);
}

.feedback-label {
  font-weight: 600;
}

/* ajustar cores internas quando fundo é escuro */
.feedback-token:nth-child(even) .feedback-text,
.feedback-token:nth-child(even) .feedback-meta {
  color: #fff7dd;
}

.feedback-token:nth-child(even) .feedback-label {
  color: #ffffff;
}

/* Sankofa marker */

.feedback-token::after {
  content: "";
  position: absolute;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background-color: var(--primary);
  background-image: url("img/sankofa_bird_no_bg.png");
  background-size: 90%;
  background-position: center;
  background-repeat: no-repeat;
  top: 50%;
  right: -12px;
  transform: translateY(-50%);
  box-shadow: 0 0 0 4px rgba(207, 29, 133, 0.35);
}

.feedback-token:last-child::after {
  display: none;
}

@media (max-width: 720px) {
  .feedback-track::before {
    display: none;
  }

  .feedback-token {
    flex: 1 1 100%;
    max-width: none;
  }

  .feedback-token::after {
    display: none;
  }
}

/* CONTATO / RODAPÉ */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(0, 0.9fr);
  gap: 2.2rem;
  align-items: flex-start;
  margin-top: 1.4rem;
}

/* PRÉVIA: contato em formato de card com sombra */
.contact-details {
  position: relative;
  max-width: 650px;

  background: var(--card-bg);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);

  padding: 1.2rem 1.5rem 1.3rem 1.8rem;
  /* mais “respiro” */
}

/* faixa dourada fininha na esquerda, por cima do card */
.contact-details::before {
  content: "";
  position: absolute;
  left: 0;
  top: 12px;
  bottom: 12px;
  width: 4px;
  border-radius: 999px;
  background: var(--primary-dark);
}

.contact-details p {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 0.45rem;
}

.contact-details strong,
.contact-details b {
  color: var(--text);
}

.contact-list {
  list-style: none;
  font-size: 0.9rem;
  margin-top: 0.6rem;
}

.contact-list li+li {
  margin-top: 0.25rem;
}

.contact-label {
  font-weight: 600;
  color: var(--text);
}


/* Detalhes visuais extras do contato */

.contact-heading {
  margin-bottom: 0.8rem;
}

.contact-name {
  font-weight: 700;
  font-size: 1rem;
  color: var(--text);
}

.contact-role {
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 0.15rem;
}

.contact-social {
  margin-top: 0.9rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}


.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.7rem;
}

.social-pill {
  font-size: 0.82rem;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  color: var(--muted);
}

.newsletter-card {
  background: var(--card-bg);
  border-radius: var(--border-radius);
  padding: 1.1rem 1.3rem;
  box-shadow: var(--shadow);
  max-width: 380px;
  margin-left: auto;
  /* encosta no lado direito */
}

/* Deixa o botão da newsletter com a mesma carinha dos outros CTAs */
.newsletter-title {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: var(--text);
}

.newsletter-card p {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 0.6rem;
}

.newsletter-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.newsletter-form input[type="email"] {
  flex: 1 1 180px;
  padding: 0.55rem 0.8rem;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  font-size: 0.9rem;
  background: #ffffff;
  color: var(--text);
}

.newsletter-form input[type="email"]::placeholder {
  color: #999999;
}

.newsletter-form input[type="email"].input-error {
  border-color: #f20a09;
  outline: 2px solid rgba(242, 10, 9, 0.38);
}

/* mensagem da newsletter com animação suave */
.newsletter-message {
  font-size: 0.8rem;
  color: #3bb273;
  margin-top: 0.3rem;
  display: none;
  opacity: 0;
  transform: translateY(4px);
}

.newsletter-message.show {
  display: block;
  animation: fadeInUp 0.28s ease-out forwards;
}

footer {
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  padding: 1.2rem 1.5rem 2rem;
  font-size: 0.78rem;
  color: var(--muted);
  background: #f3eee3;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.7rem;
}

/* animação genérica */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}


@media (max-width: 840px) {
  main {
    padding-inline: 1.1rem;
  }

  .nav-container {
    padding-inline: 1.1rem;
  }

  .contact-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* HALOS TEMÁTICOS NAS CARTAS POR CONJUNTO */

.deck-libertacao .card-3d {
  box-shadow: var(--shadow), 0 0 0 3px rgba(242, 10, 9, 0.28);
  /* vermelho #F20A09 bem suave */
}

.deck-abolicao .card-3d {
  box-shadow: var(--shadow), 0 0 0 3px rgba(0, 191, 99, 0.32);
  /* verde #00BF63 bem suave */
}

.deck-emancipacao .card-3d {
  box-shadow: var(--shadow), 0 0 0 3px rgba(239, 195, 64, 0.35);
  /* amarelo #EFC340 bem suave */
}

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

  .newsletter-card {
    margin: 0;
    max-width: 100%;
  }
}