/**
 * CONAGRESTE Inclusivo 2026 — estilos da landing
 */

:root {
  --purple-deep: #1e0f3d;
  --purple-mid: #3d2670;
  --cyan: #22d3ee;
  --cyan-soft: rgba(34, 211, 238, 0.16);
  --magenta: #d946ef;
  --gold-light: #fde68a;
  --gold: #eab308;
  --gold-deep: #a16207;
  --surface: rgba(255, 255, 255, 0.06);
  --border: rgba(255, 255, 255, 0.14);
  --text: #f8fafc;
  --muted: #c4c9d6;
  --site-header-h: 3.75rem;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "DM Sans", system-ui, sans-serif;
  color: var(--text);
  background: var(--purple-deep);
  line-height: 1.6;
}

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

a {
  color: var(--cyan);
}

.wrap {
  width: min(1120px, 92vw);
  margin-inline: auto;
}

.gradient-gold {
  background: linear-gradient(110deg, #fff8e7 0%, #e8d5a0 42%, #b8942f 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.gradient-slogan {
  background: linear-gradient(90deg, var(--magenta), #a855f7, #6366f1);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  overflow: visible;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background: linear-gradient(to bottom, rgba(30, 15, 61, 0.92), rgba(30, 15, 61, 0.65));
  border-bottom: 1px solid var(--border);
}

.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: inherit;
}

.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: radial-gradient(circle at 35% 30%, var(--cyan), #0369a1);
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 10px 30px rgba(34, 211, 238, 0.25);
}

.brand-title {
  font-family: Sora, system-ui, sans-serif;
  font-weight: 800;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.2;
}

.brand-title span {
  display: block;
  opacity: 0.75;
  font-weight: 600;
  font-size: 0.65rem;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: flex-end;
}

.nav-links a {
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  border: 1px solid transparent;
  color: var(--muted);
  transition:
    color 0.18s ease,
    border-color 0.18s ease,
    background 0.18s ease;
}

.nav-links a:hover {
  color: var(--text);
  border-color: var(--border);
  background: var(--surface);
}

.nav-links a.nav-section-link.is-active {
  color: #f1f5f9;
  border-color: rgba(34, 211, 238, 0.55);
  background: rgba(34, 211, 238, 0.14);
  box-shadow:
    0 0 0 1px rgba(34, 211, 238, 0.35),
    0 10px 26px rgba(34, 211, 238, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.nav-backdrop {
  display: none;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  transition:
    border-color 0.18s ease,
    background 0.18s ease,
    box-shadow 0.18s ease;
}

.nav-toggle:hover {
  border-color: rgba(34, 211, 238, 0.45);
  background: rgba(34, 211, 238, 0.1);
}

.nav-toggle-bars {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 1px;
  background: currentColor;
  box-shadow: 0 -7px 0 currentColor, 0 7px 0 currentColor;
}

.site-header.is-nav-open .nav-toggle {
  border-color: rgba(34, 211, 238, 0.55);
  background: rgba(34, 211, 238, 0.12);
}

@media (max-width: 1023px) {
  .site-header-inner {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.65rem;
    padding: 0.65rem 0;
  }

  .brand {
    min-width: 0;
  }

  .brand-title {
    font-size: 0.68rem;
  }

  .brand-title span {
    font-size: 0.58rem;
  }

  .brand-mark {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
  }

  .nav-toggle {
    display: inline-flex;
    position: relative;
    z-index: 60;
  }

  .nav-backdrop {
    display: block;
    position: fixed;
    left: 0;
    right: 0;
    top: var(--site-header-h, 3.75rem);
    bottom: 0;
    z-index: 48;
    background: rgba(2, 6, 23, 0.52);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.28s ease, visibility 0.28s ease;
  }

  .site-header.is-nav-open .nav-backdrop {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .nav-links {
    position: fixed;
    left: 0;
    right: 0;
    top: var(--site-header-h, 3.75rem);
    z-index: 50;
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    justify-content: flex-start;
    align-items: stretch;
    gap: 0.45rem;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0.75rem max(1rem, env(safe-area-inset-right, 0px)) max(1rem, env(safe-area-inset-bottom, 0px))
      max(1rem, env(safe-area-inset-left, 0px));
    background: linear-gradient(180deg, rgba(26, 14, 54, 0.98) 0%, rgba(12, 6, 28, 0.98) 100%);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.55);
    max-height: min(28rem, 70vh);
    max-height: min(28rem, 70dvh);
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;

    transform: translate3d(0, -110%, 0);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition:
      transform 0.32s cubic-bezier(0.22, 1, 0.36, 1),
      opacity 0.24s ease,
      visibility 0.24s ease;
  }

  .site-header.is-nav-open .nav-links {
    transform: translate3d(0, 0, 0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .nav-links a {
    width: 100%;
    max-width: none;
    justify-content: center;
    text-align: center;
    padding: 0.6rem 1rem;
  }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  font-family: inherit;
  font-weight: 700;
  font-size: 0.92rem;
  text-decoration: none;
  border-radius: 999px;
  padding: 0.65rem 1.15rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease,
    background 0.15s ease,
    border-color 0.15s ease;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: linear-gradient(110deg, var(--gold-light), var(--gold));
  color: #1a0f2e;
  box-shadow: 0 12px 28px rgba(234, 179, 8, 0.28);
}

.btn-primary:hover {
  box-shadow: 0 14px 36px rgba(234, 179, 8, 0.38);
}

.btn-ghost {
  background: var(--surface);
  border-color: var(--border);
  color: var(--text);
}

.btn-ghost:hover {
  border-color: rgba(34, 211, 238, 0.45);
}

.btn-whatsapp {
  background: linear-gradient(135deg, #22c55e, #16a34a);
  color: #fff;
  box-shadow: 0 10px 26px rgba(34, 197, 94, 0.28);
}

.btn-outline-cyan {
  background: transparent;
  border-color: rgba(34, 211, 238, 0.55);
  color: var(--cyan);
}

.btn-outline-cyan:hover {
  background: var(--cyan-soft);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(3rem, 7vw, 5rem);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 70% 0%, rgba(217, 70, 239, 0.22), transparent 55%),
    radial-gradient(ellipse 70% 50% at 15% 80%, rgba(34, 211, 238, 0.18), transparent 50%),
    linear-gradient(180deg, #12082a, var(--purple-deep));
  z-index: 0;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: center;
}

@media (min-width: 900px) {
  .hero-inner {
    grid-template-columns: 1.05fr 0.95fr;
  }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: var(--cyan-soft);
  border: 1px solid rgba(34, 211, 238, 0.35);
  color: #e0f2fe;
  margin-bottom: 1rem;
}

.hero h1 {
  font-family: Sora, system-ui, sans-serif;
  font-weight: 800;
  font-size: clamp(1.85rem, 4.2vw, 2.85rem);
  line-height: 1.12;
  margin: 0 0 0.75rem;
  text-transform: uppercase;
}

.hero-sub {
  font-size: clamp(1rem, 2.2vw, 1.15rem);
  color: var(--muted);
  max-width: 38ch;
  margin: 0 0 1.25rem;
}

.hero-dates {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: center;
  margin-bottom: 1.35rem;
}

.pill {
  font-size: 0.88rem;
  font-weight: 700;
  padding: 0.45rem 0.9rem;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--border);
  color: #e2e8f0;
}

.pill strong {
  color: var(--cyan);
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-bottom: 1.5rem;
}

.hero-meta {
  font-size: 0.88rem;
  color: var(--muted);
  max-width: 42ch;
}

.hero-meta .gradient-slogan {
  font-weight: 700;
}

.poster-card {
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(34, 211, 238, 0.12);
  background: linear-gradient(145deg, rgba(61, 38, 112, 0.5), rgba(30, 15, 61, 0.9));
}

.poster-card figcaption {
  padding: 0.75rem 1rem;
  font-size: 0.78rem;
  color: var(--muted);
  text-align: center;
  border-top: 1px solid var(--border);
}

.poster-card--identity {
  background: #f8fafc;
  padding: clamp(1rem, 3vw, 1.75rem);
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.35),
    0 0 0 1px rgba(15, 23, 42, 0.08);
}

.poster-card--identity img {
  width: min(100%, 440px);
  margin-inline: auto;
  border-radius: 12px;
}

/* ---------- Sections ---------- */
section[id] {
  scroll-margin-top: 5.5rem;
}

section {
  padding: clamp(2.5rem, 5vw, 4rem) 0;
}

.section-title {
  font-family: Sora, system-ui, sans-serif;
  font-weight: 800;
  font-size: clamp(1.35rem, 2.8vw, 1.75rem);
  margin: 0 0 0.5rem;
}

.section-lead {
  margin: 0 0 1.75rem;
  color: var(--muted);
  max-width: 62ch;
}

.band {
  background: linear-gradient(180deg, rgba(61, 38, 112, 0.35), rgba(30, 15, 61, 0.2));
  border-block: 1px solid var(--border);
}

.link-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
}

.link-card {
  position: relative;
  padding: 1.35rem 1.25rem;
  border-radius: 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  min-height: 180px;
  transition:
    border-color 0.2s ease,
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.link-card:hover {
  border-color: rgba(34, 211, 238, 0.45);
  transform: translateY(-3px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28);
}

.link-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-size: 1.35rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border);
}

.link-card h3 {
  margin: 0;
  font-family: Sora, system-ui, sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
}

.link-card p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--muted);
  flex: 1;
}

.link-card .chev {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--cyan);
}

.link-card.is-sympla .link-icon {
  background: linear-gradient(135deg, rgba(234, 179, 8, 0.25), rgba(234, 179, 8, 0.08));
  border-color: rgba(234, 179, 8, 0.45);
}

.link-card.is-wa .link-icon {
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.25), rgba(34, 197, 94, 0.08));
  border-color: rgba(34, 197, 94, 0.45);
}

.link-card.is-org .link-icon {
  background: linear-gradient(135deg, rgba(217, 70, 239, 0.25), rgba(99, 102, 241, 0.12));
  border-color: rgba(217, 70, 239, 0.4);
}

.link-card.is-ig .link-icon {
  background: linear-gradient(135deg, rgba(240, 148, 51, 0.3), rgba(188, 24, 136, 0.15));
  border-color: rgba(236, 72, 153, 0.5);
}

/* ---------- Carousel ---------- */
.carousel {
  position: relative;
  max-width: min(720px, 100%);
  margin-inline: auto;
}

.carousel-viewport {
  overflow: hidden;
  width: 100%;
  border-radius: 18px;
  background:
    radial-gradient(ellipse 85% 70% at 50% 35%, rgba(34, 211, 238, 0.12), transparent 55%),
    radial-gradient(ellipse 60% 50% at 80% 90%, rgba(217, 70, 239, 0.1), transparent 45%),
    linear-gradient(165deg, rgba(255, 255, 255, 0.07) 0%, rgba(30, 15, 61, 0.35) 100%);
  box-shadow:
    0 24px 56px rgba(0, 0, 0, 0.42),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.carousel-track {
  display: flex;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

.speaker-slide {
  flex: 0 0 auto;
  width: var(--carousel-slide-w, 100%);
  box-sizing: border-box;
  padding: clamp(0.5rem, 2vw, 0.85rem);
  display: flex;
  justify-content: center;
  align-items: center;
}

.speaker-slide img {
  display: block;
  width: 100%;
  max-width: min(680px, 100%);
  height: auto;
  max-height: min(82vh, 880px);
  object-fit: contain;
  border-radius: 14px;
}

.carousel-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 1.25rem;
}

.carousel-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(34, 211, 238, 0.35);
  background: rgba(15, 23, 42, 0.45);
  color: var(--cyan);
  cursor: pointer;
  display: grid;
  place-items: center;
  font-size: 1.35rem;
  line-height: 1;
  transition:
    border-color 0.18s ease,
    background 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.15s ease;
}

.carousel-btn:hover:not(:disabled) {
  border-color: rgba(34, 211, 238, 0.65);
  background: rgba(34, 211, 238, 0.14);
  box-shadow: 0 0 24px rgba(34, 211, 238, 0.2);
}

.carousel-btn:active:not(:disabled) {
  transform: scale(0.96);
}

.carousel-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.carousel-dots {
  display: flex;
  gap: 0.4rem;
}

.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  padding: 0;
  background: rgba(255, 255, 255, 0.25);
  cursor: pointer;
}

.carousel-dot[aria-current="true"] {
  background: var(--cyan);
  width: 22px;
  border-radius: 999px;
}

/* ---------- Gallery ---------- */
.gallery-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, 1fr);
}

@media (min-width: 720px) {
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.gallery-item {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: 16px;
  overflow: hidden;
  border: 1px dashed rgba(255, 255, 255, 0.22);
  background: linear-gradient(135deg, rgba(61, 38, 112, 0.4), rgba(30, 15, 61, 0.85));
  display: flex;
  align-items: flex-end;
}

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

.gallery-caption {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: 0.65rem 0.85rem;
  font-size: 0.78rem;
  font-weight: 600;
  background: linear-gradient(to top, rgba(15, 8, 35, 0.92), transparent);
  color: #e2e8f0;
}

.gallery-hint {
  margin-top: 1rem;
  font-size: 0.86rem;
  color: var(--muted);
}

/* ---------- Footer ---------- */
.site-footer {
  padding: 2rem 0 2.5rem;
  border-top: 1px solid var(--border);
  background: #12082a;
}

.footer-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  justify-content: space-between;
  align-items: flex-start;
}

.footer-note {
  font-size: 0.82rem;
  color: var(--muted);
  max-width: 48ch;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

code {
  font-size: 0.78em;
  background: rgba(255, 255, 255, 0.08);
  padding: 0.15rem 0.35rem;
  border-radius: 6px;
}

/* ---------- Local / Maps ---------- */
.map-shell {
  display: grid;
  gap: clamp(1.25rem, 3vw, 1.75rem);
}

@media (min-width: 840px) {
  .map-shell {
    grid-template-columns: minmax(0, 1.12fr) minmax(260px, 0.42fr);
    align-items: start;
  }
}

.map-embed-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  min-height: 260px;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.2);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.3);
}

.map-embed-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.map-sidebar {
  padding: 1.15rem 1.25rem;
  border-radius: 18px;
  background: var(--surface);
  border: 1px solid var(--border);
}

.map-sidebar h3 {
  margin: 0 0 0.5rem;
  font-family: Sora, sans-serif;
  font-size: 1rem;
}

.map-sidebar address {
  font-style: normal;
  margin: 0 0 0.95rem;
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.55;
}

/* ---------- Programação ---------- */
.schedule-block {
  margin-bottom: clamp(1.85rem, 4vw, 2.65rem);
}

.schedule-block:last-child {
  margin-bottom: 0;
}

.schedule-heading {
  font-family: Sora, sans-serif;
  font-weight: 800;
  font-size: 1.08rem;
  margin: 0 0 0.35rem;
  color: #f1f5f9;
}

.schedule-sub {
  margin: 0 0 0.95rem;
  font-size: 0.89rem;
  color: var(--muted);
}

.schedule-table-wrap {
  overflow-x: auto;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.12);
}

.schedule-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.schedule-table th,
.schedule-table td {
  padding: 0.7rem 0.95rem;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--border);
}

.schedule-table th {
  font-family: Sora, sans-serif;
  font-weight: 700;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--cyan);
  background: rgba(34, 211, 238, 0.06);
}

.schedule-table tr:last-child td {
  border-bottom: none;
}

.schedule-table tbody tr:hover td {
  background: rgba(255, 255, 255, 0.03);
}

.schedule-time {
  font-weight: 700;
  color: var(--gold-light);
  white-space: nowrap;
  width: 5.75rem;
}

.course-columns {
  display: grid;
  gap: 1rem;
}

@media (min-width: 760px) {
  .course-columns {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
