/*
  ==========================================================================
  LANDING PAGE - ESTILOS GERAIS E DIREÇÃO DE ARTE (CCL #18 UNIFIED WEBSITE)
  ==========================================================================
*/

:root {
  --bg-gradient: linear-gradient(135deg, #ffee75 0%, #ffde59 50%, #fdbb2d 100%);
  --sober-dark: rgba(12, 25, 75, 0.88);     /* Azul Cobalto Sóbrio Unificado (88% opacidade) */
  --sober-mid: rgba(18, 35, 95, 0.76);      /* Azul Marinho Sóbrio (76% opacidade) */
  --sober-light: rgba(22, 42, 110, 0.65);   /* Azul Marinho Translúcido (65% opacidade) */
  --main-color: rgba(12, 25, 75, 0.88);
  --accent-color: rgba(12, 25, 75, 0.95);
  --text-dim: rgba(22, 42, 110, 0.65);

  /* Temas das páginas internas */
  --theme-sobre-bg: #ffffff;
  --theme-sobre-text: #1a1a2e;
  --theme-programa-bg: #fffdf7;
  --theme-programa-text: #0c194b;
  --theme-pessoas-bg: #f5f5f5;
  --theme-pessoas-text: #1a1a2e;
  --theme-galeria-bg: #fffdf7;
  --theme-galeria-text: #1a1a2e;
  --theme-resumos-bg: #ffffff;
  --theme-resumos-text: #1a1a2e;
  --theme-videografia-bg: #fffdf7;
  --theme-videografia-text: #1a1a2e;

  --font-body: 'Jost', sans-serif;
  --font-heading: 'Syne', 'Jost', sans-serif;
}

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

body {
  font-family: var(--font-body);
  font-weight: 300;
  background: var(--bg-gradient);
  background-attachment: fixed;
  color: var(--main-color);
  overflow-x: hidden;
  min-height: 100vh;
}

/* Container do Canvas Three.js (Z-Index 1: Fundo 3D atrás do texto) */
#canvas-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 1;
  pointer-events: none;
}

/* Loader de carregamento */
#loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: var(--bg-gradient);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s ease;
}

.spinner {
  width: 50px;
  height: 50px;
  border: 3px solid rgba(12, 25, 75, 0.15);
  border-left-color: var(--sober-dark);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.loader-text {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  letter-spacing: 1px;
  color: var(--sober-dark);
}

/*
  ==========================================================================
  MENU VERTICAL SUPERIOR DIREITO (TAMANHO IDEAL & TAMANHO DE AMPLIFICAÇÃO)
  ==========================================================================
*/
.ccl-navbar {
  position: fixed;
  top: 30px;
  right: 45px;
  left: auto;
  transform: none;
  width: auto;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
  background: transparent !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border: none !important;
  pointer-events: auto;
}

/* Menu em fundos escuros (programa, galeria): texto claro + hover */
.ccl-navbar.light-nav .nav-links a {
  color: #ffde59;
}

.ccl-navbar.light-nav .nav-links a:hover {
  color: #ffffff !important;
}

.ccl-navbar.light-nav .nav-links a.active {
  color: #ffde59;
}

.ccl-navbar.light-nav .mobile-nav-toggle {
  color: #ffde59;
}

.ccl-brand {
  display: none;
}

.nav-links {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
  gap: 2px;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.5s ease;
}

/* QUANDO O USUÁRIO FAZ SCROLL FORA DO MENU: O MENU REDUZ DE FORMA SUAVE */
body.is-scrolling:not(.menu-hovered) .nav-links {
  transform: scale(0.85) translateY(-5px);
  transform-origin: top right;
  opacity: 0.15;
}

/* TAMANHO IDEAL DO MENU (CALIBRADO) */
.nav-links a {
  color: var(--sober-dark);
  text-decoration: none;
  font-family: var(--font-body); /* mesma fonte dos textos (Jost) */
  font-size: clamp(1.7rem, 3.4vw, 2.7rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.1;
  text-transform: uppercase;
  opacity: 0.22; /* LIGEIRAMENTE TRANSPARENTE SEM FOCO */
  transform-origin: center right;
  will-change: transform, opacity, font-weight, letter-spacing;
  transition: opacity 0.16s ease, color 0.25s ease, transform 0.16s cubic-bezier(0.2, 0.8, 0.2, 1), font-weight 0.16s ease, letter-spacing 0.16s ease;
}

/* Tamanhos e SHADES (tons/opacidade) variados por item — MESMA fonte do menu
   (Jost), sem mudar família, peso, inclinação ou caixa */
.nav-links a:nth-child(1) { font-size: clamp(2.0rem, 4vw, 3.2rem); opacity: 0.30; }
.nav-links a:nth-child(2) { font-size: clamp(1.5rem, 2.7vw, 2.2rem); opacity: 0.16; }
.nav-links a:nth-child(3) { font-size: clamp(2.3rem, 4.4vw, 3.6rem); opacity: 0.34; }
.nav-links a:nth-child(4) { font-size: clamp(1.6rem, 3vw, 2.4rem); opacity: 0.20; }
.nav-links a:nth-child(5) { font-size: clamp(1.8rem, 3.4vw, 2.8rem); opacity: 0.24; }
.nav-links a:nth-child(6) { font-size: clamp(2.1rem, 4.2vw, 3.3rem); opacity: 0.28; }

/* Efeito Dock (macOS): a magnificação e a desestruturação tipográfica são
   controladas por JS (index.html) — aqui só a cor ativa */
.nav-links a.active {
  opacity: 0.85;
  color: var(--sober-dark);
}

/* Mobile Hamburger Toggle */
.mobile-nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--sober-dark);
  font-size: 1.8rem;
  cursor: pointer;
}

/* ── LAYOUT DE SEÇÕES: PARTE CENTRAL, JUSTIFICADO À ESQUERDA EM UMA COLUNA ─────────── */
#scroll-container {
  position: relative;
  width: 100%;
  z-index: 10; /* Texto na camada 10, acima do canvas 3D */
  display: flex;
  flex-direction: column; /* Seções empilhadas verticalmente ao rolar */
  flex-wrap: nowrap;
  align-items: flex-start;
  justify-content: flex-start;
  min-height: 55vh; /* Respiro uniforme entre seções */
  padding-left: 38.2vw; /* Posição lateral exata na proporção áurea (0.382 / 38.2vw) */
  padding-right: clamp(24px, 4vw, 60px);
  padding-top: 5vh;
  padding-bottom: 5vh;
  box-sizing: border-box;
}

/* Regra base de cada seção: ocupa a largura total dentro da coluna,
   permitindo que o padding-left: 38.2vw do #scroll-container posicione
   o texto à esquerda na proporção áurea, mantendo-as empilhadas. */
.section {
  width: 100%;
  min-height: 55vh;
  box-sizing: border-box;
}

/* O HERO permanece em tela cheia (primeira dobra) */
#hero {
  min-height: 100vh;
  padding-top: 8vh;
  padding-bottom: 8vh;
}

/* CONTEÚDO EM UMA COLUNA JUSTIFICADO À ESQUERDA COM PALETA SÓBRIA UNIFICADA */
.text-block {
  pointer-events: auto;
  max-width: min(540px, 46vw);
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left; /* JUSTIFICADO À ESQUERDA */
  border: none !important;
  padding: 0 !important;
  opacity: 0.15;
  transform: translateY(20px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.section.active .text-block {
  opacity: 1.0;
  transform: translateY(0);
}

.text-block-inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  background: transparent !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  padding: 0 !important;
  border-radius: 0 !important;
  border: none !important;
  box-shadow: none !important;
}

/* ANIMAÇÕES DINÂMICAS DE GRADIENTE E COLORAÇÃO DE TEXTO */
@keyframes textGradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes accentPulse {
  0%, 100% { filter: hue-rotate(0deg) brightness(1); }
  50% { filter: hue-rotate(25deg) brightness(1.22); }
}

/* TÍTULOS PRINCIPAIS — COR SÓLIDA + TEXT-SHADOW (sem background-clip para evitar buracos no fundo amarelo) */
.text-block h2, .hero-title {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: clamp(2.6rem, 5vw, 4rem);
  line-height: 0.95;
  margin-bottom: 14px;
  letter-spacing: -0.03em;
  background: none;
  -webkit-background-clip: unset;
  -webkit-text-fill-color: unset;
  color: #0a183d;
  text-shadow:
    0 1px 0 rgba(61, 27, 84, 0.35),
    0 2px 4px rgba(23, 50, 110, 0.18),
    0 4px 12px rgba(10, 24, 61, 0.10);
  word-break: break-word;
  text-align: left;
  animation: none;
}

/* SUBTÍTULOS — COR SÓLIDA + TEXT-SHADOW */
.text-block h3 {
  font-family: var(--font-heading);
  font-size: clamp(1.05rem, 2vw, 1.45rem);
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 12px;
  background: none;
  -webkit-background-clip: unset;
  -webkit-text-fill-color: unset;
  color: #102454;
  text-shadow:
    0 1px 0 rgba(74, 32, 104, 0.28),
    0 2px 6px rgba(32, 64, 136, 0.14);
  letter-spacing: -0.02em;
  line-height: 1.25;
  text-align: left;
  animation: none;
}

/* TÍTULOS DE SCROLL ADAPTADOS AO MENU — ritmo de escala e shades por seção */
#intro .text-block h2            { font-size: clamp(2.2rem, 4.2vw, 3.4rem); opacity: 0.88; }
#concept .text-block h2          { font-size: clamp(2.6rem, 5vw, 4rem);   opacity: 1.00; }
#mocap .text-block h2            { font-size: clamp(2.0rem, 3.8vw, 3.0rem); opacity: 0.82; }
#destaques .text-block h2        { font-size: clamp(2.4rem, 4.6vw, 3.6rem); opacity: 0.94; }
#galeria-preview .text-block h2  { font-size: clamp(2.1rem, 4vw, 3.2rem); opacity: 0.86; }
#mocap-lab .text-block h2         { font-size: clamp(2.2rem, 4.2vw, 3.4rem); opacity: 0.96; }
#apoio .text-block h2             { font-size: clamp(2.0rem, 3.8vw, 3.0rem); opacity: 0.90; }
#intro .text-block h3            { font-size: clamp(1.05rem, 2vw, 1.40rem); opacity: 0.90; }
#concept .text-block h3          { font-size: clamp(1.20rem, 2.3vw, 1.60rem); opacity: 1.00; }
#mocap .text-block h3            { font-size: clamp(1.00rem, 1.9vw, 1.30rem); opacity: 0.85; }
#destaques .text-block h3        { font-size: clamp(1.15rem, 2.2vw, 1.50rem); opacity: 0.95; }
#galeria-preview .text-block h3  { font-size: clamp(1.05rem, 2vw, 1.35rem); opacity: 0.88; }
#mocap-lab .text-block h3         { font-size: clamp(1.05rem, 2vw, 1.35rem); opacity: 0.92; }
#apoio .text-block h3             { font-size: clamp(1.0rem, 1.9vw, 1.3rem); opacity: 0.88; }

/* DESTAQUES COM GRADIENTE E CICLOS CROMÁTICOS SUAVES */
.accent-char {
  background: linear-gradient(135deg, #2b2877 0%, #4f46e5 50%, #9333ea 100%) !important;
  background-size: 200% 200% !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  font-weight: 900;
  display: inline-block;
  animation: textGradientShift 6s ease-in-out infinite, accentPulse 8s ease-in-out infinite;
}

/* PARÁGRAFOS — RITMO VERTICAL CALMO E LEGÍVEL */
.text-block p {
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.68;
  font-weight: 300;
  color: var(--sober-light);
  margin-bottom: 16px;
  text-align: left;
}

/* TAGLINE DO HERO */
.hero-tagline {
  font-size: clamp(1.25rem, 2.5vw, 1.75rem) !important;
  font-weight: 400 !important;
  line-height: 1.5 !important;
  color: var(--sober-dark) !important;
  margin-bottom: 16px;
}

/* BLOCO INFORMATIVO SEM CAIXAS */
.text-highlight-box {
  background: transparent !important;
  box-shadow: none !important;
  border: none !important;
  padding: 0 !important;
  margin-top: 8px;
  margin-bottom: 16px;
  display: block;
  font-family: var(--font-body);
  font-size: 1.1rem;
  font-weight: 400;
  line-height: 1.6;
  text-align: left;
  color: var(--sober-dark);
}

/* LINKS SUBLINHADOS SÓBRIOS */
.ascii-link {
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--sober-dark);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 1px;
  display: inline-block;
  margin-right: 14px;
  margin-top: 10px;
  transition: opacity 0.2s, transform 0.2s;
  cursor: pointer;
  background: transparent;
  border: none;
}r-dark);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 1px;
  display: inline-block;
  margin-right: 16px;
  margin-top: 8px;
  transition: opacity 0.2s, transform 0.2s;
  cursor: pointer;
  background: transparent;
  border: none;
}

.ascii-link:hover {
  opacity: 1.0;
  transform: translateX(4px);
}

/* BOTÃO MOCAP MINIMALISTA (configuração discreta, sem caixa) */
.mocap-open-btn {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 400;
  color: var(--sober-light);
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(22, 42, 110, 0.22);
  padding: 4px 2px 2px;
  cursor: pointer;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.mocap-open-btn:hover {
  color: var(--sober-dark);
  border-bottom-color: var(--sober-dark);
}

/* ── Seção Apoio: entidades com links e logos ──────────────────────── */
.apoio-logos {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  max-width: 480px;
}
.apoio-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(12, 25, 75, 0.15);
  border-radius: 12px;
  padding: 10px 16px;
  color: var(--sober-dark);
  text-decoration: none;
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 600;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.apoio-item img.apoio-logo {
  max-height: 34px;
  width: auto;
}
.apoio-item img.apoio-logo-round {
  background: #ffffff;
  border-radius: 50%;
  padding: 3px;
  max-height: 30px;
}
.apoio-item:hover {
  transform: translateY(-3px);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 6px 16px rgba(12, 25, 75, 0.16);
}

/* ── Barra de idiomas (canto superior esquerdo) ────────────────────── */
.lang-bar {
  position: fixed;
  top: 16px;
  left: 16px;
  z-index: 1001;
  display: flex;
  gap: 3px;
  padding: 4px;
  background: rgba(12, 25, 75, 0.88);
  border-radius: 999px;
  box-shadow: 0 4px 14px rgba(12, 25, 75, 0.25);
}
.lang-btn {
  border: none;
  background: transparent;
  color: #ffde59;
  font-family: 'Jost', sans-serif;
  font-weight: 700;
  font-size: 0.72rem;
  line-height: 1;
  padding: 6px 10px;
  border-radius: 999px;
  cursor: pointer;
  letter-spacing: .4px;
  transition: background 0.2s ease, color 0.2s ease;
}
.lang-btn:hover { background: rgba(255, 255, 255, 0.15); }
.lang-btn.active { background: #ffde59; color: #0c194b; }

/* ── Footer: links de logos + selo do CR Dança (jpg com fundo) ────── */
.footer-logos a {
  display: inline-flex;
  align-items: center;
  line-height: 0;
}
.footer-logo-link img {
  background: #ffffff;
  border-radius: 50%;
  padding: 5px;
  max-height: 38px;
}

.ascii-tag-inline {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--accent-color);
  letter-spacing: 1px;
  margin: 4px 8px;
  display: inline-block;
}

/* QUOTE / HIGHLIGHT BOX */
.quote-box {
  border-left: 4px solid var(--accent-color);
  padding-left: 16px;
  margin: 16px 0;
  font-style: italic;
  font-size: 1.15rem;
  color: #333;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.3s, transform 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.3s;
}

/* FEATURE PILLS GRID */
.feature-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
  margin-bottom: 14px;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.3s, transform 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.3s;
}

.pill-tag {
  background: var(--main-color);
  color: #ffde59;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 20px;
  letter-spacing: 0.5px;
}

/* STAT COUNTERS GRID */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 16px;
  margin-bottom: 16px;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.35s, transform 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.35s;
}

.stat-item {
  background: rgba(89, 86, 134, 0.08);
  padding: 12px;
  border-radius: 8px;
  text-align: center;
  border: 1px solid rgba(89, 86, 134, 0.15);
}

.stat-num {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  color: var(--accent-color);
  font-weight: bold;
}

.stat-label {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--main-color);
  margin-top: 4px;
}

/* ATIVAÇÃO DAS ANIMAÇÕES VIA SCROLLTRIGGER */
.section.active .text-block .section-tag,
.section.active .text-block h1,
.section.active .text-block h2,
.section.active .text-block p,
.section.active .text-block .quote-box,
.section.active .text-block .feature-pills,
.section.active .text-block .stats-grid,
.section.active .text-block .highlights-grid,
.section.active .text-block .cta-group {
  opacity: 1;
  transform: translateY(0);
}

/* CTA GROUP & BOTÕES */
.cta-group {
  margin-top: 24px;
  display: flex;
  gap: 16px;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.4s, transform 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.4s;
  pointer-events: auto;
}

.btn-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-decoration: none;
  border-radius: 6px;
  cursor: pointer;
  transition: transform 0.25s, background-color 0.25s, box-shadow 0.25s;
}

.btn-cta.btn-primary {
  background-color: var(--main-color);
  color: #ffde59;
  border: 2px solid var(--main-color);
}

.btn-cta.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(26, 25, 54, 0.3);
}

.btn-cta.btn-outline {
  background-color: transparent;
  color: var(--main-color);
  border: 2px solid var(--main-color);
}

.btn-cta.btn-outline:hover {
  background-color: var(--main-color);
  color: #ffde59;
  transform: translateY(-3px);
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-heading);
  font-size: 0.85rem;
  letter-spacing: 2px;
  animation: bounce 2s infinite;
  opacity: 0.85;
  color: var(--main-color);
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translate(-50%, 0); }
  40% { transform: translate(-50%, -10px); }
  60% { transform: translate(-50%, -5px); }
}

/* CARDS DE DESTAQUES */
.highlights-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin-top: 20px;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.35s, transform 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.35s;
  pointer-events: auto;
}

.highlight-card {
  background: rgba(255, 255, 255, 0.85);
  padding: 18px;
  border-radius: 10px;
  border: 1px solid rgba(26, 25, 54, 0.12);
  transition: transform 0.25s, box-shadow 0.25s;
}

.highlight-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.1);
}

.highlight-card h4 {
  font-family: var(--font-heading);
  font-size: 1rem;
  margin-bottom: 8px;
  color: var(--main-color);
}

.highlight-card p {
  font-size: 0.95rem;
  margin-bottom: 0;
  opacity: 0.9;
  line-height: 1.4;
}

/* ESTILOS PÁGINAS INTERNAS */
.page-container {
  padding-top: 120px;
  padding-bottom: 80px;
  min-height: 100vh;
  width: 100%;
  box-sizing: border-box;
}

.content-wrapper {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

.page-header {
  margin-bottom: 40px;
}

.page-title {
  font-family: var(--font-heading);
  font-size: 3.2rem;
  margin-bottom: 16px;
  line-height: 1.1;
}

.page-subtitle {
  font-size: 1.3rem;
  opacity: 0.8;
  max-width: 700px;
}

/* SOBRE PAGE */
.sobre-page {
  background-color: var(--theme-sobre-bg);
  color: var(--theme-sobre-text);
}

.sobre-section {
  margin-bottom: 48px;
}

.sobre-section h3 {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  margin-bottom: 20px;
  color: var(--accent-color);
  border-bottom: 2px solid rgba(89, 86, 134, 0.2);
  padding-bottom: 8px;
}

.sobre-section p {
  font-size: 1.15rem;
  line-height: 1.7;
  margin-bottom: 16px;
  color: #333;
}

.institutions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  margin-top: 24px;
}

.institution-card {
  background: #f9f9fb;
  padding: 24px;
  border-radius: 8px;
  border: 1px solid #e5e5ea;
}

.institution-card h4 {
  font-family: var(--font-body);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--accent-color);
}

.institution-card a {
  color: var(--accent-color);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 700;
}

/* PROGRAMA PAGE */
.programa-page {
  background-color: var(--theme-programa-bg);
  color: #0c194b !important;
}

.programa-page .page-title,
.programa-page .page-subtitle,
.programa-page h1,
.programa-page h2,
.programa-page h3,
.programa-page h4,
.programa-page p,
.programa-page span,
.programa-page div:not(.event-card):not(.schedule-column):not(.legend-color),
.programa-page .legend-item {
  color: #0c194b !important;
}

.programa-page .page-subtitle {
  opacity: 0.88;
}

.legend-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 32px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.7);
  border-radius: 6px;
  border: 1px solid rgba(12, 25, 75, 0.12);
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #0c194b;
  font-weight: 600;
}

.legend-color {
  width: 14px;
  height: 14px;
  border-radius: 3px;
}

.schedule-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 16px;
  overflow-x: auto;
}

.schedule-column {
  background: #ffffff;
  border-radius: 8px;
  padding: 12px;
  border: 1px solid #e3e3e3;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.schedule-column h4 {
  font-family: var(--font-heading);
  font-size: 1rem;
  text-align: center;
  padding-bottom: 12px;
  margin-bottom: 12px;
  border-bottom: 1px solid #e0e0e0;
  color: #0c194b;
}

.event-card {
  padding: 12px;
  border-radius: 6px;
  margin-bottom: 12px;
  color: #000000;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  position: relative;
  border: 1px solid rgba(0,0,0,0.06);
}

.event-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.event-card .time {
  font-size: 0.8rem;
  font-weight: 700;
  opacity: 0.85;
  margin-bottom: 4px;
  color: #000000;
}

.event-card .title {
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.3;
  color: #000000;
}

.event-card .venue {
  font-size: 0.75rem;
  margin-top: 6px;
  opacity: 0.75;
  color: #000000;
}

/* Event Types Colors — fundos claros com texto preto */
.bg-lab { background-color: #e9e6fa; }
.bg-lecture { background-color: #fde9c9; }
.bg-movement { background-color: #e3e7ff; }
.bg-workshop { background-color: #d7f5e6; }
.bg-seminar { background-color: #efe8fd; }
.bg-showcase { background-color: #fde3e8; }
.bg-opening { background-color: #fef3c7; }
.bg-social { background-color: #dbe8ff; }

/* PESSOAS PAGE */
.pessoas-page {
  background-color: var(--theme-pessoas-bg);
  color: var(--theme-pessoas-text);
}

.people-group {
  margin-bottom: 48px;
}

.people-group h3 {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  margin-bottom: 24px;
  color: var(--accent-color);
  border-bottom: 2px solid #e0e0e0;
  padding-bottom: 6px;
}

.people-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
}

.person-card {
  background: #ffffff;
  padding: 20px;
  border-radius: 8px;
  border: 1px solid #e8e8e8;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  transition: transform 0.2s, box-shadow 0.2s;
}

.person-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.08);
}

.person-card .name {
  font-family: var(--font-body);
  font-size: 1.15rem;
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 6px;
}

.person-card .affiliation {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 12px;
}

.person-card .resumo-link {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--accent-color);
  text-decoration: none;
}

.person-card .resumo-link:hover {
  color: #1a1a2e;
}

/* Tabela de Participantes */
.participants-table {
  width: 100%;
  border-collapse: collapse;
  background: #ffffff;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #e8e8e8;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.participants-table th,
.participants-table td {
  text-align: left;
  padding: 10px 14px;
  border-bottom: 1px solid #f0f0f0;
  font-size: 0.92rem;
  color: #1a1a2e;
}
.participants-table th {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  letter-spacing: .4px;
  background: var(--main-color, #0c194b);
  color: #ffffff;
}
.participants-table tbody tr:hover { background: #faf8ff; }
.participants-table td:nth-child(2) { white-space: nowrap; }

/* Wordcloud de países */
.wordcloud {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 18px 28px;
  padding: 28px 16px;
  background: #ffffff;
  border-radius: 8px;
  border: 1px solid #e8e8e8;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.wordcloud .wc-word {
  font-family: var(--font-heading);
  font-weight: 800;
  color: var(--accent-color, #4f46e5);
  line-height: 1;
  opacity: 0.92;
  transition: transform .2s, opacity .2s;
  cursor: default;
}
.wordcloud .wc-word:hover {
  transform: scale(1.12);
  opacity: 1;
  color: #f59e0b;
}
.wordcloud .wc-count {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.62rem;
  color: #999;
  vertical-align: super;
  margin-left: 2px;
}

/* GALERIA — dias (dinâmica) */
.galeria-dia { margin-bottom: 40px; }
.galeria-dia-titulo {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  color: var(--accent-color);
  border-bottom: 2px solid #e0e0e0;
  padding-bottom: 6px;
  margin-bottom: 18px;
}
/* Páginas claras: títulos de seção em azul cobalto escuro (não brancos) */
.galeria-page .galeria-dia-titulo,
.videografia-page .galeria-dia-titulo {
  color: var(--sober-dark);
  border-bottom-color: rgba(12, 25, 75, 0.15);
}
.galeria-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
}
.galeria-item {
  display: block;
  margin: 0;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #e8e8e8;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  background: #fff;
  line-height: 0;
  transition: transform .2s, box-shadow .2s;
}
.galeria-item:hover { transform: translateY(-3px); box-shadow: 0 8px 20px rgba(0,0,0,0.14); }
.galeria-item a { display: block; line-height: 0; }
.galeria-item img { width: 100%; height: 160px; object-fit: cover; display: block; }
.galeria-credito {
  line-height: 1.3;
  padding: 7px 9px 9px;
  font-size: 0.8rem;
  color: #333;
  background: #fff;
  font-family: var(--font-body);
  font-weight: 400;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.88);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  padding: 24px;
  flex-direction: column;
}
.lightbox.open { display: flex; }
.lightbox-content {
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
}
.lightbox img, .lightbox video { max-width: 92vw; max-height: 82vh; border-radius: 8px; box-shadow: 0 10px 40px rgba(0,0,0,.6); }
.lightbox video { background: #000; }
.lightbox-credit {
  margin-top: 12px;
  color: rgba(255,255,255,.85);
  font-size: 0.9rem;
  font-family: var(--font-body);
  text-align: center;
}
.lightbox-close {
  position: absolute;
  top: 18px;
  right: 24px;
  background: none;
  border: none;
  color: #fff;
  font-size: 2.4rem;
  cursor: pointer;
  line-height: 1;
}

/* Item de vídeo na galeria: thumb + ícone de play sobreposto */
.galeria-item-video { position: relative; }
.galeria-item-video a { position: relative; display: block; }
.galeria-item-video .galeria-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.55);
  color: #fff;
  font-size: 1.4rem;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,.8);
  pointer-events: none;
  transition: transform .2s ease, background .2s ease;
}
.galeria-item-video a:hover .galeria-play {
  transform: translate(-50%, -50%) scale(1.12);
  background: rgba(0,0,0,0.7);
}
.galeria-dia-subtitulo {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  letter-spacing: 2px;
  color: #555;
  margin: 4px 0 12px;
  text-transform: uppercase;
}

/* VÍDEO — destaque + grade + áudio */
.video-destaque {
  margin-bottom: 40px;
}
.video-destaque-titulo {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  color: var(--accent-color);
  border-bottom: 2px solid #e0e0e0;
  padding-bottom: 6px;
  margin-bottom: 18px;
}
/* Videografia (fundo claro): título do destaque e texto em azul/cinza escuro */
.videografia-page .video-destaque-titulo {
  color: var(--sober-dark);
  border-bottom-color: rgba(12, 25, 75, 0.15);
}
.videografia-page .video-destaque .essay-info h3 { color: #1a1a2e; }
.videografia-page .video-destaque .essay-info p  { color: #555; }
.video-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0,0,0,0.18);
}
.video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.video-frame video { width: 100%; height: 100%; display: block; object-fit: contain; }
.video-destaque .essay-info h3 { font-size: 1.1rem; color: #1a1a2e; margin: 14px 0 6px; }
.video-destaque .essay-info p { color: #555; }

.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 16px;
}
.video-grid .video-card {
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.video-grid .video-frame { aspect-ratio: 16/9; border-radius: 0; box-shadow: none; }
.video-nome { font-size: 0.82rem; color: #666; font-family: var(--font-body); }
.video-ampliar {
  display: block;
  width: 100%;
  padding: 8px 0;
  border: none;
  border-top: 1px solid #e8e8e8;
  background: #fafafa;
  color: #595686;
  font: 700 0.72rem/1 'Jost', sans-serif;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  transition: background .15s, color .15s;
}
.video-ampliar:hover { background: #595686; color: #fff; }
.video-credito {
  font-size: 0.82rem;
  color: #666;
  font-family: var(--font-body);
  font-weight: 400;
}


/* GALERIA PAGE */
.galeria-page {
  background-color: var(--theme-galeria-bg);
  color: var(--theme-galeria-text);
}

.essay-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 32px;
}

.essay-card {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #e8e8e8;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.essay-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
}

.essay-cover {
  display: block;
  position: relative;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: #f0f0f0;
}

.essay-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.45s ease, filter 0.45s ease;
}

.essay-card:hover .essay-cover img {
  transform: scale(1.05);
  filter: saturate(1.15);
}

.essay-count {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(0, 0, 0, 0.62);
  color: #ffde59;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  padding: 4px 10px;
  border-radius: 20px;
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 222, 89, 0.35);
}

.essay-info {
  padding: 20px;
}

.essay-info h3 {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  margin-bottom: 8px;
  color: var(--sober-dark);
}

.essay-info p {
  font-size: 0.95rem;
  color: #555;
  line-height: 1.5;
}

/* RESUMOS PAGE FRAME */
.resumos-page {
  background-color: var(--theme-resumos-bg);
  color: var(--theme-resumos-text);
  padding-bottom: 0;
}

/* VIDEOGRAFIA PAGE */
.videografia-page {
  background-color: var(--theme-videografia-bg);
  color: var(--theme-videografia-text);
}

.video-frame {
  aspect-ratio: 16 / 9;
  background: #0a0a0a;
  overflow: hidden;
}

.video-frame video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* FOOTER GLOBAL */
.ccl-footer {
  background-color: #121124;
  color: #ffffff;
  padding: 60px 40px 30px 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.95rem;
  position: relative;
  z-index: 10;
  pointer-events: auto;
}

/* Na home (index.html), o footer é filho do #scroll-container que tem
   padding-left:38.2vw. Compensa para ocupar 100vw. */
#scroll-container .ccl-footer {
  left: -38.2vw;
  width: 100vw;
  box-sizing: border-box;
}

.footer-content {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-col h4 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: #ffde59;
  margin-bottom: 16px;
}

.footer-col p {
  line-height: 1.6;
  opacity: 0.8;
  margin-bottom: 12px;
}

.footer-col a {
  color: #ffde59;
  text-decoration: none;
  transition: opacity 0.2s;
}

.footer-col a:hover {
  opacity: 0.7;
}

.social-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-bottom {
  max-width: 1100px;
  margin: 0 auto;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
}

.footer-credits {
  max-width: 1100px;
  margin: 12px auto 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.85);
  text-align: center;
}
.footer-credits span {
  opacity: 0.95;
}

/* Logos no bloco Realização & Apoio do footer */
.footer-col-logos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
}
.footer-col-logos a {
  display: inline-flex;
  align-items: center;
  line-height: 0;
}
.footer-col-logos img {
  height: 24px;
  width: auto;
  max-width: 75px;
  object-fit: contain;
  background: #ffffff;
  padding: 3px 5px;
  border-radius: 4px;
  opacity: 0.9;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.footer-col-logos img.logo-round {
  border-radius: 50%;
  padding: 2px;
}
.footer-col-logos img:hover {
  opacity: 1;
  transform: translateY(-2px);
}

.footer-logos {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 24px;
  padding: 22px 0 4px;
}

.footer-logos img {
  max-height: 38px;
  width: auto;
  opacity: 0.9;
  transition: opacity 0.2s;
  background: #ffffff;
  padding: 5px;
  border-radius: 6px;
  object-fit: contain;
}

.footer-logos img:nth-child(1) {
  max-height: 30px; /* UEMG horizontal */
}

.footer-logos img:hover {
  opacity: 1;
}

.footer-support {
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.6);
  padding: 8px 0 0;
}

/* Breakpoints Responsivos */
@media (max-width: 1024px) {
  .schedule-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .section, .section.right, .section.center {
    padding-left: clamp(20px, 6vw, 36px);
    padding-right: 20px;
    min-height: 50vh;
  }

  .text-block {
    max-width: 100%;
  }

  .ccl-navbar {
    padding: 16px 20px;
  }
  
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: rgba(26, 25, 54, 0.98);
    flex-direction: column;
    padding: 20px;
    gap: 16px;
  }

  .nav-links.mobile-open {
    display: flex;
  }

  .mobile-nav-toggle {
    display: block;
  }

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

  .text-block-inner {
    padding: 24px 28px;
  }

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