/* ─── CSS VARIABLES ─── */
:root {
  --roxo:       #9405AD;
  --lilas:      #DBAAEA;
  --rosa:       #F2668B;
  --rosa-claro: #FFDAE4;
  --branco:     #FFFFFF;
  --cinza-escuro: #1a1a1a;
  --cinza-medio: #4a4a4a;
  --cinza-claro: #f5f5f5;

  --font-titulo: 'Righteous', sans-serif;
  --font-corpo:  'Arial', sans-serif;

  --radius: 16px;
  --radius-sm: 8px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ─── RESET ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-corpo);
  color: var(--cinza-escuro);
  background: var(--branco);
  overflow-x: hidden;
  cursor: auto;
}

@media (prefers-reduced-motion: reduce), (pointer: coarse) {
  .cursor-sparkle { display: none; }
}

.cursor-sparkle {
  position: fixed;
  width: var(--sparkle-size, 7px);
  height: var(--sparkle-size, 7px);
  left: 0;
  top: 0;
  pointer-events: none;
  z-index: 1998;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.98) 0%, rgba(255,218,228,0.92) 28%, rgba(242,102,139,0.84) 58%, rgba(242,102,139,0) 78%);
  box-shadow: 0 0 10px rgba(242,102,139,0.75);
  transform: translate3d(var(--sparkle-x), var(--sparkle-y), 0) scale(1);
  animation: sparkleTrail 620ms ease-out forwards;
}

.cursor-sparkle::after {
  content: '';
  position: absolute;
  inset: 22%;
  background: white;
  clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%);
  opacity: 0.9;
}

@keyframes sparkleTrail {
  0% {
    opacity: 1;
    transform: translate3d(var(--sparkle-x), var(--sparkle-y), 0) scale(0.7) rotate(0deg);
  }
  100% {
    opacity: 0;
    transform: translate3d(calc(var(--sparkle-x) + var(--sparkle-dx)), calc(var(--sparkle-y) + var(--sparkle-dy)), 0) scale(0.05) rotate(120deg);
  }
}
img { display: block; width: 100%; }
a { text-decoration: none; color: inherit; }
.page-section {
  cursor: url('cursor-ada.png') 12 6, auto;
}
.page-section a,
.page-section button,
.page-section select,
.page-section [role="button"] {
  cursor: url('cursor-ada.png') 12 6, pointer;
}
#lang-bar,
.mobile-menu,
nav,
footer {
  cursor: auto;
}
#lang-bar a,
#lang-bar button,
.mobile-menu a,
nav a,
footer a,
footer button {
  cursor: pointer;
}

/* ─── LANGUAGE SWITCHER ─── */
#lang-bar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 2rem;
  height: 52px;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(12px);
  border-bottom: 2px solid var(--rosa-claro);
  gap: 0.5rem;
}
.lang-bar-logo {
  font-family: var(--font-titulo);
  font-size: 1.3rem;
  color: var(--roxo);
  letter-spacing: 0.04em;
  flex-shrink: 0;
}
.lang-bar-logo span { color: var(--rosa); }
.lang-bar-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex: 1;
  justify-content: center;
}
.lang-bar-nav a {
  font-family: var(--font-corpo);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--cinza-medio);
  transition: var(--transition);
  position: relative;
  padding-bottom: 3px;
  text-decoration: none;
}
.lang-bar-nav a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 2px;
  background: var(--rosa);
  transition: var(--transition);
}
.lang-bar-nav a:hover { color: var(--roxo); }
.lang-bar-nav a:hover::after { width: 100%; }
.lang-bar-right {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-shrink: 0;
}
.lang-btn {
  font-family: var(--font-titulo);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  padding: 4px 14px;
  border-radius: 20px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  background: transparent;
}
.lang-btn.active {
  background: var(--roxo);
  color: white;
  border-color: var(--roxo);
}
.lang-btn:not(.active) {
  color: var(--roxo);
  border-color: var(--lilas);
}
.lang-btn:not(.active):hover {
  background: var(--rosa-claro);
}

/* FOTO DA ADA AO LADO DE MFP*/
.lang-bar-logo {
  display: flex;       /* Alinha imagem e texto lado a lado */
  align-items: center; /* Centraliza verticalmente */
  gap: 4px;           /* Espaço entre a logo e o texto MFP */
}

.empresa-logo {
  height: 30px;        /* Ajuste a altura para combinar com o tamanho do texto */
  width: auto;         /* Mantém a proporção da imagem */
  display: block;
}


.lang-bar-logo a {
  cursor: pointer;
  transition: opacity 0.2s;
}

.lang-bar-logo a:hover {
  opacity: 0.8; /* Dá um leve efeito visual ao passar o mouse */
}

.empresa-logo {
  height: 30px; /* Ou o tamanho que preferir */
  width: auto;
}

/* ─── NAV ─── */
nav { display: none; }

/* ─── SECTION WRAPPERS ─── */
.page-section {
  display: none;
  padding-top: 52px; /* lang-bar height only */
}
.page-section.active { display: block; }

/* ─── HERO ─── */

#hero {
  min-height: 100vh;
  background: linear-gradient(135deg, var(--roxo) 0%, #6b00a8 40%, var(--rosa) 100%);
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 8rem 2rem 4rem;
  overflow: hidden;
}

.gooey-section {
  position: relative;
  isolation: isolate;
}

.gooey-layer {
  position: absolute;
  inset: -10%;
  pointer-events: none;
  z-index: 1;
  opacity: 0;
  filter: url('#gooey-lava');
  mix-blend-mode: screen;
  transition: opacity 0.35s ease, transform 0.35s ease;
  transform: scale(0.98);
}

.gooey-section:hover .gooey-layer {
  opacity: 0.42;
  transform: scale(1);
}

.gooey-blob {
  position: absolute;
  width: var(--blob-size);
  height: var(--blob-size);
  left: var(--blob-left);
  top: var(--blob-top);
  border-radius: 50%;
  opacity: 0.58;
  background:
    radial-gradient(circle at 30% 24%, rgba(255,255,255,0.95) 0 9%, rgba(255,255,255,0) 20%),
    radial-gradient(circle at 38% 30%, rgba(255,218,228,0.92) 0%, rgba(242,102,139,0.74) 46%, rgba(148,5,173,0.46) 100%);
  box-shadow:
    inset -18px -22px 34px rgba(107,0,168,0.22),
    inset 14px 18px 28px rgba(255,255,255,0.24),
    0 18px 34px rgba(148,5,173,0.16);
  animation: gooeyFloat var(--blob-duration) ease-in-out infinite alternate;
  animation-delay: var(--blob-delay);
}

.gooey-blob:nth-child(2n) {
  background:
    radial-gradient(circle at 28% 22%, rgba(255,255,255,0.95) 0 10%, rgba(255,255,255,0) 22%),
    radial-gradient(circle at 42% 32%, rgba(219,170,234,0.88) 0%, rgba(219,170,234,0.68) 42%, rgba(148,5,173,0.46) 100%);
}

.gooey-blob:nth-child(3n) {
  background:
    radial-gradient(circle at 30% 24%, rgba(255,255,255,0.95) 0 8%, rgba(255,255,255,0) 20%),
    radial-gradient(circle at 44% 34%, rgba(255,218,228,0.92) 0%, rgba(255,218,228,0.70) 38%, rgba(242,102,139,0.54) 100%);
}

.gooey-blob::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -10px;
  width: 18px;
  height: 16px;
  background: inherit;
  clip-path: polygon(50% 100%, 0 0, 100% 0);
  transform: translateX(-50%);
  opacity: 0.72;
  filter: blur(1px);
}

.gooey-blob::before {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -76px;
  width: 2px;
  height: 70px;
  background: linear-gradient(180deg, rgba(255,218,228,0.85), rgba(242,102,139,0.18));
  border-radius: 999px;
  transform: translateX(-50%) rotate(var(--string-rotate, -4deg));
  transform-origin: top center;
  opacity: 0.72;
  filter: blur(0.2px);
}

.gooey-blob:nth-child(2n)::before {
  --string-rotate: 5deg;
  height: 82px;
}

.gooey-blob:nth-child(3n)::before {
  --string-rotate: -8deg;
  height: 62px;
}

.gooey-section > *:not(.gooey-layer) {
  position: relative;
  z-index: 2;
}

@keyframes gooeyFloat {
  0% {
    transform: translate3d(0, 0, 0) scale(0.9);
  }
  45% {
    transform: translate3d(var(--blob-x), var(--blob-y), 0) scale(1.12);
  }
  100% {
    transform: translate3d(calc(var(--blob-x) * -0.55), calc(var(--blob-y) * 0.85), 0) scale(0.98);
  }
}

@media (prefers-reduced-motion: reduce) {
  .gooey-layer {
    display: none;
  }
}

#hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 20% 30%, rgba(219,170,234,0.25) 0%, transparent 70%),
    radial-gradient(ellipse 40% 40% at 80% 70%, rgba(255,218,228,0.2) 0%, transparent 70%);
}
.hero-badge {
  display: inline-block;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.4);
  color: white;
  font-family: var(--font-titulo);
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  padding: 6px 20px;
  border-radius: 30px;
  margin-bottom: 1.5rem;
  backdrop-filter: blur(4px);
  animation: fadeSlideUp 0.6s ease both;
}
.hero-title {
  font-family: var(--font-titulo);
  font-size: clamp(2.8rem, 8vw, 6rem);
  color: white;
  line-height: 1.05;
  margin-bottom: 1rem;
  animation: fadeSlideUp 0.7s 0.1s ease both;
}
.hero-title .accent { color: var(--white); }
.hero-subtitle {
  font-size: clamp(1rem, 2.5vw, 1.3rem);
  color: rgba(255,255,255,0.85);
  max-width: 600px;
  line-height: 1.7;
  margin-bottom: 3rem;
  animation: fadeSlideUp 0.7s 0.2s ease both;
}
.hero-cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
  animation: fadeSlideUp 0.7s 0.3s ease both;
}
.btn-primary {
  font-family: var(--font-titulo);
  font-size: 1rem;
  letter-spacing: 0.05em;
  padding: 14px 32px;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.btn-roxo {
  background: white;
  color: var(--roxo);
}
.btn-roxo:hover {
  background: var(--rosa-claro);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}
.btn-outline-white {
  background: transparent;
  color: white;
  border: 2px solid rgba(255,255,255,0.6);
}
.btn-outline-white:hover {
  background: rgba(255,255,255,0.1);
  border-color: white;
  transform: translateY(-2px);
}
.hero-stats {
  display: flex;
  gap: 3rem;
  margin-top: 4rem;
  animation: fadeSlideUp 0.7s 0.4s ease both;
}
.hero-stat {
  text-align: center;
  color: white;
}
.hero-stat-num {
  font-family: var(--font-titulo);
  font-size: 2.2rem;
  color: var(--lilas);
}
.hero-stat-label {
  font-size: 0.8rem;
  opacity: 0.8;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ─── PARCEIROS / PATROCINADORES ─── */
#parceiros {
  padding: 4rem 2rem;
  background: linear-gradient(180deg, white 0%, #fdf4ff 100%);
  overflow: hidden;
}

.parceiros-wrapper {
  max-width: 1100px;
  margin: 0 auto;
}

.institutional-highlight {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin: 2.4rem 0 3rem;
}

.institution-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: center;
  background: white;
  border: 2px solid var(--rosa-claro);
  border-radius: var(--radius-sm);
  padding: 1.25rem;
  box-shadow: 0 14px 34px rgba(148,5,173,0.08);
  text-decoration: none;
  transition: var(--transition);
}

.institution-card:hover {
  border-color: var(--lilas);
  transform: translateY(-3px);
  box-shadow: 0 16px 38px rgba(148,5,173,0.13);
}

.institution-mark {
  width: 88px;
  height: 72px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  background: white;
  border: 2px solid var(--rosa-claro);
  padding: 0.55rem;
  flex-shrink: 0;
}

.institution-mark img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.institution-card h3 {
  color: var(--roxo);
  font-family: var(--font-titulo);
  font-size: 1.05rem;
  line-height: 1.25;
  margin-bottom: 0.25rem;
}

.institution-card p {
  color: var(--cinza-medio);
  font-size: 0.9rem;
  line-height: 1.55;
}

.sponsors-title {
  color: var(--roxo);
  font-family: var(--font-titulo);
  font-size: 1.2rem;
  text-align: center;
  margin-bottom: 1.2rem;
}

.sponsor-marquee {
  width: 100%;
  overflow: hidden;
  position: relative;
  padding: 0.4rem 0;
}

.sponsor-marquee::before,
.sponsor-marquee::after {
  content: '';
  position: absolute;
  top: 0;
  width: 90px;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}

.sponsor-marquee::before {
  left: 0;
  background: linear-gradient(90deg, #fdf4ff, rgba(253,244,255,0));
}

.sponsor-marquee::after {
  right: 0;
  background: linear-gradient(270deg, #fdf4ff, rgba(253,244,255,0));
}

.sponsor-track {
  display: flex;
  gap: 1rem;
  width: max-content;
  animation: sponsorScroll 30s linear infinite;
}

.sponsor-marquee:hover .sponsor-track {
  animation-play-state: paused;
}

.sponsor-logo-card {
  width: 172px;
  height: 92px;
  border: 2px solid var(--rosa-claro);
  border-radius: var(--radius-sm);
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  box-shadow: 0 10px 26px rgba(148,5,173,0.08);
  flex-shrink: 0;
  text-decoration: none;
  transition: var(--transition);
}

.sponsor-logo-card:hover {
  border-color: var(--lilas);
  transform: translateY(-3px);
  box-shadow: 0 14px 32px rgba(148,5,173,0.13);
}

.sponsor-wordmark {
  font-family: var(--font-titulo);
  font-size: 1.05rem;
  line-height: 1.1;
  letter-spacing: 0.02em;
  text-align: center;
}

.sponsor-wordmark.morgan { color: #0c2340; font-family: Georgia, serif; font-weight: 700; }
.sponsor-wordmark.xp { color: #111; font-size: 1.25rem; }
.sponsor-wordmark.bosch { color: #e20015; font-size: 1.15rem; }
.sponsor-wordmark.tractian { color: #171717; font-size: 1.02rem; }
.sponsor-wordmark.griaule { color: #1266a6; font-size: 1.12rem; }
.sponsor-wordmark.google { font-family: Arial, sans-serif; font-weight: 700; letter-spacing: 0; }
.sponsor-wordmark.google .g1 { color: #4285f4; }
.sponsor-wordmark.google .o1 { color: #ea4335; }
.sponsor-wordmark.google .o2 { color: #fbbc05; }
.sponsor-wordmark.google .g2 { color: #4285f4; }
.sponsor-wordmark.google .l { color: #34a853; }
.sponsor-wordmark.google .e { color: #ea4335; }
.sponsor-wordmark.incognia { color: #2f2a85; font-size: 1.1rem; }

@keyframes sponsorScroll {
  from { transform: translateX(0); }
  to { transform: translateX(calc(-50% - 0.5rem)); }
}

/* ─── FLOATING SHAPES ─── */
/*.shape {
  position: absolute;
  border-radius: 50%;
  opacity: 0.15;
  pointer-events: none;
}
.shape-1 { width: 300px; height: 300px; background: var(--lilas); top: -80px; right: -60px; }
.shape-2 { width: 180px; height: 180px; background: white; bottom: 10%; left: 5%; animation: float 6s ease-in-out infinite; }
.shape-3 { width: 80px; height: 80px; background: var(--rosa-claro); top: 40%; right: 10%; animation: float 8s 2s ease-in-out infinite; }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-20px); }
}
@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ─── SOBRE / ABOUT ─── */
.section-header {
  text-align: center;
  margin-bottom: 4rem;
}
.section-tag {
  display: inline-block;
  background: var(--rosa-claro);
  color: var(--roxo);
  font-family: var(--font-titulo);
  font-size: 0.78rem;
  letter-spacing: 0.15em;
  padding: 5px 16px;
  border-radius: 20px;
  margin-bottom: 1rem;
}
.section-title {
  font-family: var(--font-titulo);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  color: var(--roxo);
  line-height: 1.1;
}
.section-desc {
  font-size: 1.05rem;
  color: var(--cinza-medio);
  max-width: 650px;
  margin: 1rem auto 0;
  line-height: 1.8;
}
.section-desc .inline-link {
  color: var(--roxo);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

#sobre {
  padding: 5rem 2rem;
  background: var(--branco);
}
.sobre-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}
.sobre-img-box {
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
}
.img-placeholder {
  background: linear-gradient(135deg, var(--rosa-claro), var(--lilas));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--roxo);
  font-family: var(--font-titulo);
  gap: 0.5rem;
}
.img-placeholder svg { opacity: 0.5; }
.img-placeholder span { font-size: 0.85rem; opacity: 0.7; }
.sobre-content h2 {
  font-family: var(--font-titulo);
  font-size: 2rem;
  color: var(--roxo);
  margin-bottom: 1.2rem;
}
.sobre-content p {
  font-size: 1rem;
  color: var(--cinza-medio);
  line-height: 1.85;
  margin-bottom: 1rem;
}
.sobre-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.5rem;
}
.pill {
  background: var(--rosa-claro);
  color: var(--roxo);
  font-weight: 700;
  font-size: 0.82rem;
  padding: 6px 14px;
  border-radius: 20px;
}

/* ─── COMO FUNCIONA ─── */
#como {
  padding: 5rem 2rem;
  background: linear-gradient(180deg, var(--cinza-claro) 0%, white 100%);
}
.como-wrapper { max-width: 1000px; margin: 0 auto; }
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}
.step-card {
  background: white;
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
  border: 2px solid var(--rosa-claro);
  transition: var(--transition);
  position: relative;
}
.step-card:hover {
  border-color: var(--rosa);
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(148,5,173,0.08);
}
.step-num {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--roxo), var(--rosa));
  color: white;
  font-family: var(--font-titulo);
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
}
.step-card h3 {
  font-family: var(--font-titulo);
  color: var(--roxo);
  font-size: 1.1rem;
  margin-bottom: 0.6rem;
}
.step-card p {
  font-size: 0.9rem;
  color: var(--cinza-medio);
  line-height: 1.7;
}

/* ─── INSCRIÇÃO ─── */
#inscricao {
  padding: 5rem 2rem;
  background: linear-gradient(135deg, var(--roxo) 0%, #6b00a8 50%, var(--rosa) 100%);
  text-align: center;
  position: relative;
  overflow: hidden;
}


#inscricao .section-title { color: white; }
#inscricao .section-desc { color: rgba(255,255,255,0.8); }
#inscricao .section-tag { background: rgba(255,255,255,0.2); color: white; }
.inscricao-cards {
  display: flex;
  gap: 2rem;
  justify-content: center;
  margin-top: 3rem;
  flex-wrap: wrap;
}
.inscricao-card {
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(12px);
  border: 2px solid rgba(255,255,255,0.3);
  border-radius: var(--radius);
  padding: 2.5rem 2rem;
  width: 300px;
  transition: var(--transition);
}
.inscricao-card:hover {
  background: rgba(255,255,255,0.18);
  border-color: white;
  transform: translateY(-6px);
}
.inscricao-card .ic-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}
.inscricao-card h3 {
  font-family: var(--font-titulo);
  color: white;
  font-size: 1.3rem;
  margin-bottom: 0.6rem;
}
.inscricao-card p {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.75);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}
.btn-inscricao {
  display: inline-block;
  background: white;
  color: var(--roxo);
  font-family: var(--font-titulo);
  font-size: 0.95rem;
  padding: 12px 28px;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
}
.btn-inscricao:hover {
  background: var(--rosa-claro);
  transform: scale(1.04);
}

/* Container que envolve o botão */
.como-actions {
    display: flex;      /* Transforma o container em flexbox */
    justify-content: center; /* Centraliza o conteúdo (o botão) horizontalmente */
    width: 100%;        /* Garante que o container ocupe a largura toda da tela */
    margin-top: 3rem;   /* Espaço entre os cards e o botão */
    clear: both;        /* Garante que ele saia de qualquer interferência de floats anteriores */
}

/* Estilo exclusivo para o botão do edital */
.btn-edital-vazado {
    background: var(--roxo);
    color: white;
    font-family: var(--font-titulo);
    font-size: 1.0rem;
    padding: 12px 28px;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    
    /* Largura fixa ou baseada no conteúdo */
    min-width: 300px; 
    display: inline-block; /* Importante para aceitar margens e padding corretamente */
    text-align: center;
}

/* Efeito ao passar o mouse */
.btn-edital-vazado:hover {
    background: white;
    color: var(--roxo);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}


/* ─── PLACAR ─── */
#placar {
  padding: 5rem 2rem;
  background: var(--branco);
}
.placar-wrapper { max-width: 900px; margin: 0 auto; }
.placar-table-wrap {
  background: white;
  border-radius: var(--radius);
  overflow: hidden;
  border: 2px solid var(--rosa-claro);
  margin-top: 2.5rem;
}
.placar-table {
  width: 100%;
  border-collapse: collapse;
}
.placar-table thead {
  background: linear-gradient(90deg, var(--roxo), var(--rosa));
}
.placar-table thead th {
  font-family: var(--font-titulo);
  color: white;
  padding: 1rem 1.2rem;
  text-align: left;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
}
.placar-table tbody tr {
  border-bottom: 1px solid var(--rosa-claro);
  transition: var(--transition);
}
.placar-table tbody tr:hover { background: var(--rosa-claro); }
.placar-table tbody td {
  padding: 0.85rem 1.2rem;
  font-size: 0.95rem;
  color: var(--cinza-escuro);
}
.rank-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px; height: 32px;
  border-radius: 50%;
  font-family: var(--font-titulo);
  font-size: 0.9rem;
}
/*.rank-1 { background: #FFD700; color: #5a4200; } /* aquiiiii
.rank-2 { background: #C0C0C0; color: #333; }
.rank-3 { background: #CD7F32; color: white; }
.rank-prata  { background: #C0C0C0; color: #333; }
.rank-bronze { background: #CD7F32; color: white; }*/
.medal-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.88rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
}
.medal-ouro   { background: #FFF5CC; color: #7a5a00; }
.medal-prata  { background: #F0F0F0; color: #555; }
.medal-bronze { background: #F5E6D8; color: #7a4500; }
.score-bar {
  background: var(--rosa-claro);
  border-radius: 4px;
  height: 8px;
  overflow: hidden;
}
.score-fill {
  height: 100%;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--roxo), var(--rosa));
}

/* ─── GALERIA ─── */
#galeria {
  padding: 5rem 2rem;
  background: var(--cinza-claro);
}
.galeria-wrapper { max-width: 1100px; margin: 0 auto; }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto auto;
  gap: 1rem;
  margin-top: 2.5rem;
}
.gallery-item {
  border-radius: var(--radius-sm);
  overflow: hidden;
  position: relative;
  isolation: isolate;
  background: var(--roxo);
  box-shadow: 0 12px 28px rgba(148, 5, 173, 0.14);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.gallery-item:first-child {
  grid-column: 1 / 3;
  grid-row: 1 / 3;
}
.gallery-item::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(148, 5, 173, 0) 38%, rgba(148, 5, 173, 0.46) 100%),
    radial-gradient(circle at var(--hover-x, 50%) var(--hover-y, 50%), rgba(255, 218, 228, 0.42), rgba(242, 102, 139, 0.18) 28%, rgba(148, 5, 173, 0) 58%);
  opacity: 0;
  transition: opacity 0.35s ease;
}
.gallery-item::after {
  content: '';
  position: absolute;
  inset: 12px;
  z-index: 2;
  pointer-events: none;
  border: 2px solid rgba(255, 255, 255, 0.65);
  border-radius: calc(var(--radius-sm) - 2px);
  opacity: 0;
  transform: scale(0.96);
  transition: opacity 0.35s ease, transform 0.35s ease;
}
.gallery-item img {
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease, filter 0.5s ease;
}
.gallery-item:hover,
.gallery-item:focus-within {
  transform: translateY(-6px) !important;
  box-shadow: 0 18px 42px rgba(148, 5, 173, 0.24);
}
.gallery-item:hover::before,
.gallery-item:focus-within::before,
.gallery-item:hover::after,
.gallery-item:focus-within::after {
  opacity: 1;
}
.gallery-item:hover::after,
.gallery-item:focus-within::after {
  transform: scale(1);
}
.gallery-item:hover img,
.gallery-item:focus-within img {
  transform: scale(1.06);
  filter: saturate(1.12) contrast(1.04) brightness(1.03);
}
.gallery-placeholder {
  width: 100%;
  height: 100%;
  min-height: 200px;
  background: linear-gradient(135deg, var(--lilas), var(--rosa-claro));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--roxo);
  font-family: var(--font-titulo);
  font-size: 0.85rem;
  gap: 0.5rem;
  transition: var(--transition);
  cursor: pointer;
}
.gallery-item:first-child .gallery-placeholder { min-height: 420px; }
.gallery-placeholder svg { opacity: 0.45; }

    /* ───------------------- SEDES LOCAIS ─-----─--------------─ */
#sedes-section {
  padding: 5rem 2rem;
  background: var(--branco);
}
.sedes-wrapper { max-width: 1100px; margin: 0 auto; }

#sedes-section .section-header { margin-bottom: 1.5rem; }

.sedes-inscricao-banner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1.25rem;
  align-items: center;
  background: linear-gradient(135deg, #fff 0%, var(--rosa-claro) 100%);
  color: var(--cinza-escuro);
  border: 2px solid var(--rosa-claro);
  border-radius: var(--radius-sm);
  padding: 1.35rem 1.5rem;
  margin: 0 0 2.5rem;
  box-shadow: 0 14px 34px rgba(148,5,173,0.10);
}

.home-sedes-banner {
  border-radius: 0;
  border-left: 0;
  border-right: 0;
  margin: 0;
  padding: 1.25rem max(2rem, calc((100vw - 1100px) / 2 + 2rem));
}

.sedes-inscricao-banner h3 {
  font-family: var(--font-titulo);
  color: var(--roxo);
  font-size: clamp(1.15rem, 3vw, 1.65rem);
  line-height: 1.2;
  margin-bottom: 0.35rem;
}

.sedes-inscricao-banner p {
  color: var(--cinza-medio);
  font-size: 0.98rem;
  line-height: 1.6;
}

.sedes-banner-copy {
  display: grid;
  gap: 0.55rem;
}

.sedes-banner-copy .banner-line {
  display: block;
  font-family: var(--font-corpo);
}

.sedes-banner-copy .banner-warning {
  display: inline-block;
  color: var(--roxo);
  font-weight: 700;
  background: rgba(255,255,255,0.72);
  border-left: 4px solid var(--rosa);
  border-radius: var(--radius-sm);
  padding: 0.55rem 0.75rem;
}

.sedes-banner-copy .banner-closing {
  color: var(--cinza-escuro);
  font-family: var(--font-titulo);
  font-size: 1rem;
  line-height: 1.35;
}

.btn-sedes-banner {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: 50px;
  background: linear-gradient(135deg, var(--roxo), var(--rosa));
  color: white;
  font-family: var(--font-titulo);
  font-size: 0.9rem;
  padding: 0 1.4rem;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
  white-space: nowrap;
}

.btn-sedes-banner:hover {
  background: var(--roxo);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(148,5,173,0.22);
}

.sedes-map-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.8fr);
  gap: 1.25rem;
  align-items: stretch;
  margin: 2.5rem 0 3rem;
}

.sedes-filters {
  display: grid;
  grid-template-columns: minmax(240px, 1.2fr) repeat(2, minmax(160px, 1fr)) minmax(190px, auto) auto;
  gap: 0.85rem;
  align-items: end;
  background: white;
  border: 2px solid var(--rosa-claro);
  border-radius: var(--radius-sm);
  padding: 1rem;
  margin: 3rem 0 1.25rem;
  box-shadow: 0 16px 40px rgba(148,5,173,0.10);
}

.sedes-filter-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.sedes-filter-field label {
  color: var(--roxo);
  font-family: var(--font-titulo);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.sedes-filter-field input,
.sedes-filter-field select {
  width: 100%;
  min-height: 42px;
  border: 2px solid var(--rosa-claro);
  border-radius: var(--radius-sm);
  background: var(--branco);
  color: var(--cinza-escuro);
  font: 700 0.95rem var(--font-corpo);
  padding: 0 0.85rem;
  cursor: pointer;
  transition: var(--transition);
}

.sedes-filter-field input {
  cursor: text;
}

.sedes-filter-field input::placeholder {
  color: rgba(74,74,74,0.58);
  font-weight: 400;
}

.sedes-filter-field input:focus,
.sedes-filter-field select:focus {
  outline: none;
  border-color: var(--roxo);
  box-shadow: 0 0 0 3px rgba(148,5,173,0.12);
}

.btn-filter-reset {
  min-height: 42px;
  border: 2px solid var(--lilas);
  border-radius: 50px;
  background: white;
  color: var(--roxo);
  cursor: pointer;
  font-family: var(--font-titulo);
  font-size: 0.85rem;
  padding: 0 1.25rem;
  transition: var(--transition);
  white-space: nowrap;
}

.btn-filter-reset:hover {
  background: var(--rosa-claro);
  border-color: var(--rosa);
}

.sedes-filter-count {
  color: var(--cinza-medio);
  font-size: 0.88rem;
  line-height: 1.5;
  margin: -0.45rem 0 1.2rem;
}

#sedes-map {
  min-height: 460px;
  border: 2px solid var(--rosa-claro);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--rosa-claro);
  z-index: 1;
}

.sedes-map-details {
  background: white;
  border: 2px solid var(--rosa-claro);
  border-radius: var(--radius-sm);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  min-height: 260px;
}

.sedes-map-eyebrow {
  color: var(--rosa);
  font-family: var(--font-titulo);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.sedes-map-title {
  color: var(--roxo);
  font-family: var(--font-titulo);
  font-size: 1.35rem;
  line-height: 1.2;
}

.sedes-map-text {
  color: var(--cinza-medio);
  font-size: 0.92rem;
  line-height: 1.65;
}

.sedes-map-contact {
  border-top: 1px solid var(--rosa-claro);
  padding-top: 0.85rem;
  color: var(--cinza-medio);
  font-size: 0.86rem;
  line-height: 1.55;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.sedes-map-contact strong {
  color: var(--cinza-escuro);
  display: block;
  margin-bottom: 0.15rem;
}

.sedes-map-contact a {
  color: var(--roxo);
  word-break: break-word;
}

.sedes-map-pin {
  display: block;
  position: relative;
  width: 24px;
  height: 24px;
  border-radius: 50% 50% 50% 0;
  border: 3px solid white;
  transform: rotate(-45deg);
  box-shadow: 0 5px 14px rgba(26,26,26,0.28);
}

.sedes-map-pin::after {
  content: '';
  position: absolute;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: white;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.sedes-map-pin.brasil { background: var(--roxo); }
.sedes-map-pin.exterior { background: var(--rosa); }

.sede-popup {
  min-width: 220px;
  color: var(--cinza-medio);
  font-family: var(--font-corpo);
  line-height: 1.45;
}

.sede-popup strong {
  color: var(--roxo);
  display: block;
  font-family: var(--font-titulo);
  font-size: 1rem;
  line-height: 1.25;
  margin-bottom: 0.35rem;
}

.sede-popup a {
  color: var(--roxo);
  font-weight: 700;
}

.sedes-subtitulo {
  font-family: var(--font-titulo);
  font-size: 1.3rem;
  color: var(--roxo);
  margin: 3rem 0 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.sedes-subtitulo::after {
  content: '';
  flex: 1;
  height: 2px;
  background: linear-gradient(90deg, var(--lilas), transparent);
  border-radius: 2px;
}

.sedes-overview {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
  margin: 1.5rem 0;
}
.sedes-overview div {
  position: relative;
  background: white;
  border: 2px solid var(--rosa-claro);
  border-radius: var(--radius);
  padding: 1rem;
  text-align: center;
  transition: var(--transition);
}
.sedes-overview div:hover {
  border-color: var(--rosa);
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(148,5,173,0.08);
}
.sedes-overview strong {
  display: block;
  color: var(--roxo);
  font-family: var(--font-titulo);
  font-size: 1.45rem;
  line-height: 1;
}
.sedes-overview span {
  display: block;
  color: var(--cinza-medio);
  font-size: 0.78rem;
  margin-top: 0.35rem;
}

.sedes-guide {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
}
.sedes-guide-step {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.35rem 0.75rem;
  align-items: start;
  background: white;
  border: 2px solid var(--rosa-claro);
  border-radius: var(--radius);
  padding: 1rem;
  transition: var(--transition);
}
.sedes-guide-step:hover {
  border-color: var(--rosa);
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(148,5,173,0.08);
}
.sedes-guide-number {
  grid-row: span 2;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--roxo), var(--rosa));
  color: white;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-titulo);
}
.sedes-guide-step strong {
  color: var(--roxo);
  font-family: var(--font-titulo);
  font-size: 0.95rem;
}
.sedes-guide-step p {
  color: var(--cinza-medio);
  font-size: 0.84rem;
  line-height: 1.45;
  margin: 0;
}

.sedes-filter-toggle {
  align-self: end;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--cinza-escuro);
  font-family: var(--font-titulo);
  font-size: 0.82rem;
  cursor: pointer;
  user-select: none;
}
.sedes-filter-toggle input {
  width: 18px;
  height: 18px;
  accent-color: var(--roxo);
}

.sedes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.sede-card {
  background:
    linear-gradient(145deg, rgba(255,255,255,0.90), rgba(255,255,255,0.62)),
    radial-gradient(circle at 10% 0%, rgba(255,255,255,0.92), transparent 32%),
    radial-gradient(circle at 100% 100%, rgba(219,170,234,0.38), transparent 38%),
    radial-gradient(circle at 8% 100%, rgba(255,218,228,0.42), transparent 34%);
  backdrop-filter: blur(20px) saturate(1.35);
  -webkit-backdrop-filter: blur(20px) saturate(1.35);
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,0.72);
  padding: 1.75rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.75rem;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.82),
    inset 0 -22px 48px rgba(148,5,173,0.06),
    0 18px 46px rgba(148,5,173,0.12);
}
.sede-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, rgba(255,255,255,0.70), rgba(255,255,255,0) 32%),
    radial-gradient(circle at 20% 12%, rgba(255,255,255,0.92), transparent 18%),
    linear-gradient(90deg, rgba(148,5,173,0.10), rgba(242,102,139,0.08));
  opacity: 0.7;
  pointer-events: none;
  transition: var(--transition);
}
.sede-card::after {
  content: '';
  position: absolute;
  inset: 1px;
  border-radius: calc(var(--radius) - 1px);
  border: 1px solid rgba(255,255,255,0.48);
  pointer-events: none;
}
.sede-card:hover {
  border-color: rgba(255,255,255,0.92);
  transform: translateY(-6px);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.92),
    inset 0 -28px 58px rgba(148,5,173,0.08),
    0 24px 60px rgba(148,5,173,0.20);
}
.sede-card[data-sede-id] { cursor: pointer; }
.sede-card.is-selected {
  border-color: rgba(148,5,173,0.42);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.92),
    0 0 0 3px rgba(148,5,173,0.10),
    0 24px 60px rgba(148,5,173,0.20);
}
.sede-card:hover::before { opacity: 0.95; }

.sede-card > * {
  position: relative;
  z-index: 1;
}

.sede-status-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: center;
  border-radius: 999px;
  padding: 0.32rem 0.7rem;
  font-family: var(--font-titulo);
  font-size: 0.72rem;
  line-height: 1;
  border: 1px solid transparent;
}
.sede-status-badge.open {
  background: rgba(18, 148, 84, 0.10);
  border-color: rgba(18, 148, 84, 0.24);
  color: #10784a;
}
.sede-status-badge.soon {
  background: rgba(148, 5, 173, 0.08);
  border-color: rgba(148, 5, 173, 0.18);
  color: var(--roxo);
}

.sede-logo-wrap {
  width: 88px;
  height: 88px;
  border-radius: 18px;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 3px solid var(--lilas);
  flex-shrink: 0;
  box-shadow: 0 8px 22px rgba(148,5,173,0.08);
}
.sede-logo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 10px;
}
.sede-logo-wrap img.is-low-res-logo {
  width: 58px;
  height: 58px;
  padding: 0;
}
.sede-logo-placeholder {
  font-size: 2rem;
}

.sede-nome {
  font-family: var(--font-titulo);
  color: var(--roxo);
  font-size: 1.05rem;
  line-height: 1.3;
}
.sede-instituicao {
  font-size: 0.8rem;
  color: var(--cinza-medio);
  margin-top: -6px;
}
.sede-card mark {
  background: var(--amarelo);
  color: var(--cinza-escuro);
  border-radius: 4px;
  padding: 0 2px;
}
.sede-local {
  font-size: 0.85rem;
  color: var(--cinza-medio);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}
.sede-embaixador {
  font-size: 0.82rem;
  color: var(--cinza-medio);
  line-height: 1.6;
  border-top: 1px solid var(--rosa-claro);
  padding-top: 0.75rem;
  width: 100%;
}
.sede-embaixador strong {
  color: var(--cinza-escuro);
  display: block;
  font-size: 0.88rem;
  margin-bottom: 2px;
}
.sede-embaixador a {
  color: var(--roxo);
  word-break: break-all;
  transition: var(--transition);
}
.sede-embaixador a:hover { color: var(--rosa); }
.btn-copy-contact,
.btn-sede-secondary {
  border: 1px solid var(--lilas);
  background: white;
  color: var(--roxo);
  border-radius: 999px;
  cursor: pointer;
  font-family: var(--font-titulo);
  font-size: 0.72rem;
  padding: 0.42rem 0.72rem;
  transition: var(--transition);
}
.btn-copy-contact {
  margin-top: 0.45rem;
}
.btn-copy-contact:hover,
.btn-sede-secondary:hover {
  border-color: var(--roxo);
  background: var(--rosa-claro);
}
.sede-actions-row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  width: 100%;
}
.sede-action-feedback {
  min-height: 1rem;
  color: var(--roxo);
  font-family: var(--font-titulo);
  font-size: 0.72rem;
  opacity: 0;
  transition: opacity 0.2s ease;
  word-break: break-all;
}
.sede-action-feedback.show {
  opacity: 1;
}

.btn-sede {
  display: inline-block;
  background: linear-gradient(135deg, var(--roxo), var(--rosa));
  color: white;
  font-family: var(--font-titulo);
  font-size: 0.85rem;
  padding: 10px 22px;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  margin-top: auto;
  letter-spacing: 0.03em;
}
.btn-sede:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(148,5,173,0.3);
  color: white;
}

.sede-form-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  background: rgba(26,26,26,0.52);
  backdrop-filter: blur(5px);
}

.sede-form-modal.open { display: flex; }

.sede-form-modal-card {
  width: min(460px, 100%);
  background: white;
  border: 2px solid var(--rosa-claro);
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
  box-shadow: 0 24px 60px rgba(26,26,26,0.22);
  position: relative;
}

.sede-form-modal-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  background: linear-gradient(135deg, var(--roxo), var(--rosa));
  color: white;
  font-size: 1.6rem;
}

.sede-form-modal-card h3 {
  color: var(--roxo);
  font-family: var(--font-titulo);
  font-size: 1.35rem;
  line-height: 1.25;
  margin-bottom: 0.65rem;
}

.sede-form-modal-card p {
  color: var(--cinza-medio);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1.35rem;
}

.btn-modal-close {
  border: none;
  background: linear-gradient(135deg, var(--roxo), var(--rosa));
  color: white;
  border-radius: 50px;
  padding: 0.75rem 1.5rem;
  font-family: var(--font-titulo);
  cursor: pointer;
  transition: var(--transition);
}

.btn-modal-close:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(148,5,173,0.22);
}

.sedes-empty {
  text-align: center;
  color: var(--cinza-medio);
  font-size: 0.95rem;
  padding: 2rem;
  background: var(--rosa-claro);
  border-radius: var(--radius);
  opacity: 0.7;
}

@media (max-width: 768px) {
  .sedes-inscricao-banner {
    grid-template-columns: 1fr;
    padding: 1.2rem;
  }

  .home-sedes-banner {
    padding: 1rem 1.25rem;
  }

  .btn-sedes-banner {
    width: 100%;
    white-space: normal;
  }

  .sedes-overview,
  .sedes-guide {
    grid-template-columns: 1fr;
  }

  .sedes-filters {
    grid-template-columns: 1fr;
  }
  .sedes-map-layout {
    grid-template-columns: 1fr;
  }
  #sedes-map {
    min-height: 340px;
  }
  .sedes-grid {
    grid-template-columns: 1fr;
  }
}

/* ─── FOOTER ─── */
footer {
  background: var(--cinza-escuro);
  color: rgba(255,255,255,0.7);
  padding: 3rem 2rem;
  text-align: center;
}
.footer-logo {
  font-family: var(--font-titulo);
  font-size: 1.8rem;
  color: white;
  margin-bottom: 0.5rem;
}
.footer-logo span { color: var(--lilas); }
footer p { font-size: 0.85rem; line-height: 1.8; }
.footer-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin: 1.2rem 0;
  flex-wrap: wrap;
}
.footer-links a {
  color: rgba(255,255,255,0.6);
  font-size: 0.85rem;
  transition: var(--transition);
}
.footer-links a:hover { color: var(--lilas); }
.footer-social-links {
  margin-top: 0.2rem;
}
.footer-social-links a {
  font-family: var(--font-titulo);
  color: rgba(255,255,255,0.82);
  letter-spacing: 0.03em;
}

/* ─── RESPONSIVO ─── */
        /* ─── HAMBURGER ─── */
  .hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 4px;
    background: none;
    border: none;
  }
  .hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--roxo);
    border-radius: 2px;
    transition: var(--transition);
  }
  .mobile-menu {
    display: none;
    position: fixed;
    top: 52px;
    left: 0; right: 0;
    background: rgba(255,255,255,0.98);
    backdrop-filter: blur(12px);
    border-bottom: 2px solid var(--rosa-claro);
    flex-direction: column;
    padding: 1rem 2rem;
    gap: 0;
    z-index: 999;
  }
  .mobile-menu.open { display: flex; }
  .mobile-menu a {
    font-family: var(--font-corpo);
    font-size: 1rem;
    font-weight: 700;
    color: var(--cinza-medio);
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--rosa-claro);
    text-decoration: none;
    transition: var(--transition);
  }
  .mobile-menu a:last-child { border-bottom: none; }
  .mobile-menu a:hover { color: var(--roxo); }

  @media (max-width: 768px) {
    .lang-bar-nav { display: none; }  /* esconde nav do topo */
    .hamburger { display: flex; }     /* mostra ícone ≡ */

  .sobre-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .institutional-highlight { grid-template-columns: 1fr; }
  .institution-card { grid-template-columns: 1fr; text-align: center; }
  .institution-mark { margin: 0 auto; }
  .sponsor-logo-card { width: 150px; height: 84px; }
  
  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .gallery-item:first-child { grid-column: 1 / 3; grid-row: auto; }
  .gallery-item:first-child .gallery-placeholder { min-height: 250px; }
  }
  .hero-stats { gap: 1.5rem; }




/* ========================================= */
/* AJUSTE DA FOTO ADA NA HOME (FLEXBOX)      */
/* ========================================= */

.hero-ada-container {
  /* Sem position: absolute! Deixamos o Flexbox do #hero alinhar */
  display: flex;
  justify-content: center;
  /* 1. DIMINUIR ESPAÇO PARA BAIXO (entre Ada e o Texto) */
  margin-bottom: -1rem; /* Era 1.5rem, diminuí para 0.5rem */

  /* 2. DIMINUIR ESPAÇO PARA CIMA (entre Barra Branca e Ada) */
  /* Como o #hero tem um padding-top de 8rem, vamos compensar aqui */
  margin-top: -7rem; 

  z-index: 10;
}

.hero-ada-img {
  height: 150px;
  width: auto;
}

/* Ajuste apenas do tamanho da imagem no celular */
@media (max-width: 768px) {
.hero-ada-container {
  /* Se no celular ela ainda estiver longe do topo, aumente o negativo */
  margin-top: -12rem; 

  /* ADICIONE ESTA LINHA AQUI: */
  pointer-events: none;
  
  /* Se quiser ela mais grudada no título no celular: */
  margin-bottom: 0.1rem; 
}
  .hero-ada-img {
    height: 120px; 
  }
}

.hero-cta {
  position: relative; /* Necessário para o z-index funcionar */
  z-index: 20;        /* Maior que o da Ada */
  pointer-events: auto; /* Garante que ele seja clicável */
}


    /* ───────────────── CELULAR ───────────────── */

/* Faz o wrapper da tabela ter rolagem horizontal no celular */
.placar-table-wrap {
  width: 100%;
  overflow-x: auto; /* Cria a barra de rolagem */
  -webkit-overflow-scrolling: touch; /* Deixa a rolagem "macia" no iPhone/iOS */
}

/* Garante que a tabela não fique espremida antes de rolar */
.placar-table {
  min-width: 600px; /* Ajuste esse valor se achar que as colunas estão muito finas */
  width: 100%;
}

/* Regras apenas para telas de celular (menores que 768px) */
@media (max-width: 768px) {
  
  .gallery-grid {
    display: flex !important;
    flex-direction: column !important; /* Empilha as fotos uma embaixo da outra */
    gap: 15px; /* Espaço entre as fotos */
  }

  .gallery-item {
    /* Ignora os "grid-column" que estão direto no HTML */
    grid-column: unset !important; 
    width: 100%;
  }

  .gallery-item img {
    /* Reduz a altura no celular para não ficar uma tripa gigante ocupando toda a tela */
    height: 250px !important; 
  }
}
/* ─── FASES ───── */
@media (max-width: 768px) {
#fases .sobre-grid {
  display: flex !important;
  flex-direction: column !important; 
  gap: 20px !important;
  /* MUDANÇA AQUI: de 15px para 2rem */
  padding: 0 2rem;
}

#fases .sobre-img-box {
  order: -1; /* No celular, a imagem sobe para cima do texto para ficar mais bonito */
}
  }

  /* Dentro do seu @media (max-width: 768px) */

  /* ─── SEÇÃO FASES ───── */
#fases .sobre-grid {
    display: flex !important; /* Sobrescreve o grid do HTML */
    flex-direction: column !important; 
    gap: 20px !important;
    padding: 0 2rem; /* Margem interna para o texto não colar na borda da tela */
}

  #fases .sobre-img-box {
  order: -1; /* Joga a imagem para cima do texto no celular */
  width: 100%;
  }

  #fases .sobre-img-box img {
  height: 300px !important; /* Altura ajustada para telas pequenas */
  border-radius: 12px;
  }

  #fases .sobre-content {
  text-align: left; /* Mantém o texto alinhado à esquerda ou use center se preferir */
  }

  #fases h2 {
  font-size: 1.5rem; /* Diminui um pouco o título no celular para não quebrar linhas estranhas */
  margin-top: 10px;
  }

      /* ───────────────── ACABA CELULAR ───────────────── */

/* ─── UTILITIES ─── */
.container { max-width: 1100px; margin: 0 auto; }
.mt-1 { margin-top: 1rem; }
.text-center { text-align: center; }
