:root {
  --purple-50: #f5f3ff;
  --purple-100: #ede9fe;
  --purple-200: #ddd6fe;
  --purple-300: #c4b5fd;
  --purple-400: #a78bfa;
  --purple-500: #8b5cf6;
  --purple-600: #7c3aed;
  --purple-700: #6d28d9;
  --purple-800: #5b21b6;
  --purple-900: #4c1d95;
  --purple-950: #2e1065;
  --black: #0a0a0a;
  --white: #ffffff;
  --gray-light: #f8f7ff;
  --text-muted: #6b7280;
}

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

html,
body {
  overflow-x: hidden;
  width: 100%;
}

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--white);
  color: var(--black);
}

/* ======================== NAV ======================== */

.menu {
  list-style: none;
  display: none;
  gap: 20px;
}

.menu a {
  color: white;
  text-decoration: none;
}

/* Botão hamburguer */
.menu-toggle {
  display: none;
  font-size: 24px;
  background: none;
  border: none;
  color: white;
  cursor: pointer;
}

nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.2rem clamp(1rem, 4vw, 4rem);
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(167, 139, 250, 0.12);
  transition: all 0.3s;
}

.nav-logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--white);
  text-decoration: none;
  letter-spacing: -0.02em;
  flex-shrink: 0;
}

.nav-logo span {
  color: var(--purple-400);
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  transition: color 0.2s;
  cursor: pointer;
  white-space: nowrap;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--purple-300);
}

.nav-cta {
  background: var(--purple-600);
  color: var(--white) !important;
  padding: 0.5rem 1.2rem;
  border-radius: 6px;
  font-size: 0.85rem !important;
  transition: background 0.2s !important;
}

.nav-cta:hover {
  background: var(--purple-500) !important;
  color: var(--white) !important;
}

/* ======================== PAGES ======================== */
.page {
  display: none;
}

.page.active {
  display: block;
}

/* ======================== PAGE BACKGROUNDS ======================== */
#page-extracurriculars,
#page-home,
#page-about,
#page-newsletters {
  background-image:
    linear-gradient(rgba(0, 0, 0, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 0, 0, 0.06) 1px, transparent 1px);
  background-size: 50px 50px;
  background-attachment: fixed;
}

/* ======================== HERO ======================== */
.hero {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 8rem clamp(1rem, 5vw, 4rem) 4rem;
  position: relative;
  overflow: hidden;
  width: 100%;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(109, 40, 217, 0.35) 0%, transparent 65%),
    radial-gradient(ellipse 50% 40% at 80% 80%, rgba(139, 92, 246, 0.15) 0%, transparent 55%),
    radial-gradient(ellipse 40% 30% at 20% 70%, rgba(76, 29, 149, 0.2) 0%, transparent 50%);
}

.hero-badge {
  display: inline-block;
  background: rgba(167, 139, 250);
  border: 1px solid rgba(167, 139, 250, 0.35);
  color: var(--white);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.4rem 1.2rem;
  border-radius: 100px;
  margin-bottom: 1.8rem;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 820px;
  width: 100%;
}

.hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 7vw, 5.5rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
}

.hero h1 em {
  font-style: italic;
  color: var(--purple-400);
}

.hero p {
  font-size: clamp(0.95rem, 2vw, 1.2rem);
  color: rgba(0, 0, 0);
  line-height: 1.7;
  max-width: 600px;
  margin: 0 auto 2.5rem;
  font-weight: 300;
}

.hero-btns {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-primary {
  background: var(--purple-600);
  color: var(--white);
  padding: 0.85rem 2rem;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  display: inline-block;
}

.btn-primary:hover {
  background: var(--purple-500);
  transform: translateY(-1px);
}

.btn-primary a {
  color: var(--white);
  text-decoration: none;
}

.btn-outline {
  background: transparent;
  color: var(--black);
  padding: 0.85rem 2rem;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.25);
  cursor: pointer;
  transition: border-color 0.2s, transform 0.15s;
  display: inline-block;
}

.btn-outline:hover {
  border-color: var(--purple-400);
  transform: translateY(-1px);
}

/* ======================== STATS BAR ======================== */
.stats-bar {
  background: rgba(255, 255, 255, 0.03);
  border-top: 1px solid rgba(167, 139, 250, 0.1);
  border-bottom: 1px solid rgba(167, 139, 250, 0.1);
  padding: clamp(1.5rem, 3vw, 2.5rem) clamp(1rem, 4vw, 4rem);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(1.5rem, 4vw, 4.3rem);
  align-items: center;
  text-align: center;
  width: 100%;
}

.stat-item {
  flex: 1 1 120px;
  min-width: 100px;
  max-width: 200px;
}

.stat-num {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  font-weight: 700;
  color: var(--purple-300);
  display: block;
  line-height: 1;
  margin-bottom: 0.4rem;
}

.stat-label {
  font-size: 0.82rem;
  color: rgba(0, 0, 0);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 500;
}

/* ======================== SECTION ======================== */
.section {
  padding: clamp(2.5rem, 5vw, 4.4rem) clamp(1rem, 4vw, 4rem);
  max-width: 1200px;
  margin: 0 auto;   /* CORRIGIDO: era margin:20px, causava overflow horizontal */
  width: 100%;
}

.section-tag {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--purple-400);
  margin-bottom: 1rem;
  display: block;
}

.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.6rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
}

.section-sub {
  font-size: clamp(0.9rem, 2vw, 1.05rem);
  color: var(--purple-950);
  line-height: 1.75;
  max-width: 620px;
  font-weight: 300;
}

/* ======================== CARDS ======================== */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}

.card {
  background: rgba(83, 83, 83, 0.04);
  border: 1px solid rgba(167, 139, 250, 0.15);
  border-radius: 16px;
  padding: 2rem;
  transition: border-color 0.2s, background 0.2s;
}

.card:hover {
  border-color: rgba(167, 139, 250, 0.4);
  background: rgba(167, 139, 250, 0.06);
}

.card-icon {
  width: 48px;
  height: 48px;
  background: rgba(109, 40, 217, 0.3);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.2rem;
  font-size: 1.3rem;
  flex-shrink: 0;
}

.card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.7rem;
}

.card p {
  font-size: 0.9rem;
  color: var(--purple-950);
  line-height: 1.65;
  font-weight: 300;
}

/* ======================== DIVIDER ======================== */
.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(167, 139, 250, 0.3), transparent);
  margin: 0 clamp(1rem, 4vw, 4rem);
}

/* ======================== FEATURED SECTION ======================== */
.featured-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}

/* Desktop: quadrado via aspect-ratio */
.featured-visual {
  background: linear-gradient(135deg, rgba(109, 40, 217, 0.2), rgba(76, 29, 149, 0.35));
  border: 1px solid rgba(167, 139, 250, 0.2);
  border-radius: 20px;
  padding: 2.5rem;
  width: 100%;
  aspect-ratio: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.featured-visual .logo {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
}

.featured-visual .logo img {
  width: clamp(100px, 50%, 200px);
  height: auto;
  max-width: 100%;
  display: block;
  object-fit: contain;
}

.featured-visual-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--black);
}

/* ======================== OPP MINI LIST ======================== */
.opp-mini-list {
  list-style: none;
}

.opp-mini-item {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid rgba(167, 139, 250, 0.1);
  font-size: 0.88rem;
  color: var(--purple-600);
}

.opp-mini-dot {
  width: 8px;
  height: 8px;
  background: var(--purple-400);
  border-radius: 50%;
  flex-shrink: 0;
}

.opp-mini-tag {
  margin-left: auto;
  font-size: 0.72rem;
  background: rgba(139, 92, 246, 0.2);
  color: var(--white);
  padding: 0.2rem 0.6rem;
  border-radius: 100px;
  white-space: nowrap;
}

/* ======================== TESTIMONIALS ======================== */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}

.testimonial-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(167, 139, 250, 0.12);
  border-radius: 16px;
  padding: 1.8rem;
}

.testimonial-quote {
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.7;
  font-weight: 300;
  margin-bottom: 1.2rem;
  font-style: italic;
}

.testimonial-author {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--purple-300);
}

.testimonial-role {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.4);
  margin-top: 0.2rem;
}

/* ======================== CTA BLOCK ======================== */
.cta-block {
  background: linear-gradient(135deg, rgba(109, 40, 217, 0.25), rgba(76, 29, 149, 0.4));
  border: 1px solid rgba(167, 139, 250, 0.25);
  border-radius: 24px;
  padding: clamp(2rem, 5vw, 4rem);
  text-align: center;
}

.cta-block h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  font-weight: 700;
  margin-bottom: 1rem;
}

.cta-block p {
  font-size: 1rem;
  color: rgb(0, 0, 0);
  margin-bottom: 2rem;
  font-weight: 300;
}

/* ======================== EXTRACURRICULARS ======================== */
.filter-row {
  display: flex;
  gap: 0.7rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

.filter-btn {
  background: rgb(231, 231, 231);
  border: 1px solid rgba(167, 139, 250, 0.25);
  color: rgb(0, 0, 0);
  padding: 0.45rem 1.1rem;
  border-radius: 100px;
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  font-family: 'DM Sans', sans-serif;
  white-space: nowrap;
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--purple-700);
  border-color: var(--purple-500);
  color: var(--white);
}

.search-bar {
  width: 100%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgb(0, 0, 0);
  border-radius: 12px;
  padding: 1rem 1.5rem;
  font-size: 1rem;
  color: rgb(0, 0, 0);
  font-family: 'DM Sans', sans-serif;
  margin-bottom: 1.5rem;
  outline: none;
  transition: border-color 0.2s;
}

.search-bar::placeholder {
  color: rgba(0, 0, 0, 0.5);
}

.search-bar:focus {
  border-color: var(--purple-400);
}

.opp-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(340px, 100%), 1fr));
  gap: 1.2rem;
}

.opp-card {
  background: rgba(83, 83, 83, 0.15);
  border: 1px solid rgba(167, 139, 250, 0.12);
  border-radius: 14px;
  padding: 1.6rem;
  transition: all 0.2s;
  cursor: pointer;
}

.opp-card:hover {
  border-color: rgba(167, 139, 250, 0.35);
  background: rgba(167, 139, 250, 0.07);
  transform: translateY(-2px);
}

.opp-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.8rem;
  flex-wrap: wrap;
}

.opp-title {
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.3;
  flex: 1;
  min-width: 0;
}

.opp-type {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.25rem 0.7rem;
  border-radius: 100px;
  white-space: nowrap;
  flex-shrink: 0;
}

.type-pesquisa   { background: rgba(109,  40, 217, 0.3);  color: #000; }
.type-olimpiada  { background: rgba(171,  31, 199, 0.25); color: #000; }
.type-programa   { background: rgba( 48,   5, 150, 0.25); color: #000; }
.type-bolsa      { background: rgba(224,  99, 224, 0.2);  color: #000; }
.type-competicao { background: rgba( 31,   0,  80, 0.25); color: #000; }

.opp-org {
  font-size: 0.82rem;
  color: var(--black);
  margin-bottom: 0.6rem;
}

.opp-desc {
  font-size: 0.87rem;
  color: var(--purple-500);
  line-height: 1.6;
  font-weight: 300;
  margin-bottom: 1rem;
}

.opp-link {
  font-size: 0.9rem;
  margin-bottom: 10px;
  word-break: break-all;
}

.opp-meta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.78rem;
  color: rgb(0, 0, 0);
}

.opp-meta span::before {
  content: "• ";
}

/* ======================== ABOUT ======================== */
.about-hero {
  padding: clamp(7rem, 10vw, 10rem) clamp(1rem, 4vw, 4rem) clamp(2.5rem, 5vw, 5rem);
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: clamp(2rem, 6vw, 6rem);
  align-items: center;
  width: 100%;
}

.about-text h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
}

.about-text p {
  font-size: clamp(0.9rem, 2vw, 1.05rem);
  color: rgb(0, 0, 0);
  line-height: 1.8;
  font-weight: 300;
  margin-bottom: 1.5rem;
}

.about-visual {
  background: linear-gradient(160deg, rgba(109, 40, 217, 0.3), rgba(46, 16, 101, 0.5));
  border: 1px solid rgba(167, 139, 250, 0.2);
  border-radius: 20px;
  padding: 2.5rem;
  aspect-ratio: 0.9;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  justify-content: center;
  width: 100%;
}

.about-visual h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.4rem, 3vw, 2.1rem);
  font-weight: 700;
  color: var(--black);
}

.mission-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.mission-num {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  font-weight: 900;
  color: rgba(0, 0, 0);
  line-height: 1;
  min-width: 2rem;
}

.mission-text h4 {
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.3rem;
  color: var(--purple-500);
}

.mission-text p {
  font-size: 0.82rem;
  color: var(--purple-950);
  line-height: 1.55;
  font-weight: 300;
  margin: 0;
}

.team-card {
  background: rgba(83, 83, 83, 0.15);
  border: 1px solid rgba(167, 139, 250, 0.12);
  border-radius: 16px;
  padding: 1.8rem;
  text-align: center;
  transition: all 0.2s;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.team-card:hover {
  border-color: rgba(167, 139, 250, 0.3);
  background: rgba(167, 139, 250, 0.07);
}

.team-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--purple-700), var(--purple-500));
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--white);
  flex-shrink: 0;
}

.team-name {
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 0.3rem;
}

.team-role {
  font-size: 0.8rem;
  color: var(--purple-400);
  margin-bottom: 0.4rem;
  font-weight: 500;
}

.team-area {
  font-size: 0.78rem;
  color: var(--black);
  font-weight: 300;
}

/* ======================== NEWSLETTERS ======================== */
.newsletter-hero {
  padding: clamp(7rem, 10vw, 10rem) clamp(1rem, 4vw, 4rem) clamp(2.5rem, 5vw, 5rem);
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
  width: 100%;
}

.newsletter-hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 1.2rem;
}

.newsletter-hero p {
  font-size: clamp(0.9rem, 2vw, 1.1rem);
  color: black;
  line-height: 1.75;
  font-weight: 300;
  margin-bottom: 3rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.newsletter-form-box {
  background: var(--purple-200);
  border-radius: 20px;
  padding: clamp(1.5rem, 4vw, 3rem);
  max-width: 580px;
  margin: 0 auto 5rem;
  width: 100%;
}

.form-group {
  margin-bottom: 1.2rem;
  text-align: left;
}

.form-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: rgb(0, 0, 0);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.5rem;
}

.form-input {
  width: 100%;
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(167, 139, 250, 0.2);
  border-radius: 10px;
  padding: 0.85rem 1.2rem;
  font-size: 0.95rem;
  color: var(--black);
  font-family: 'DM Sans', sans-serif;
  outline: none;
  transition: border-color 0.2s, background 0.2s;
}

.form-input::placeholder {
  color: #000000;
}

.form-input:focus {
  border-color: var(--purple-400);
  background: rgba(255, 255, 255, 0.08);
}

.checkbox-group {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 0.7rem;
  margin-bottom: 1.5rem;
}

.checkbox-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  cursor: pointer;
  padding: 0.6rem 0.9rem;
  border-radius: 8px;
  border: 1px solid rgba(82, 14, 114);
  transition: all 0.2s;
}

.checkbox-item:hover {
  border-color: rgba(167, 139, 250, 0.35);
  background: rgba(167, 139, 250, 0.06);
}

.checkbox-item input[type="checkbox"] {
  accent-color: var(--purple-500);
  width: 15px;
  height: 15px;
  cursor: pointer;
  flex-shrink: 0;
}

.checkbox-item label {
  font-size: 0.85rem;
  color: rgb(0, 0, 0);
  cursor: pointer;
}

.success-msg {
  display: none;
  text-align: center;
  padding: 1.5rem;
  background: rgba(5, 150, 105, 0.15);
  border: 1px solid rgba(5, 150, 105, 0.3);
  border-radius: 12px;
  margin-top: 1rem;
}

.success-msg p {
  color: #000000;
  font-weight: 500;
  font-size: 0.95rem;
  margin: 0;
}

.editions-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 4rem) 6rem;
  width: 100%;
}

.editions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr));
  gap: 1.2rem;
  margin-top: 2.5rem;
}

.edition-card {
  background: rgba(83, 83, 83, 0.15);
  border: 1px solid rgba(167, 139, 250, 0.12);
  border-radius: 14px;
  padding: 1.6rem;
  display: flex;
  gap: 1.2rem;
  transition: all 0.2s;
  cursor: pointer;
}

.edition-card:hover {
  border-color: rgba(167, 139, 250, 0.3);
  background: rgba(167, 139, 250, 0.06);
}

.edition-num {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  font-weight: 900;
  color: rgba(167, 139, 250, 0.25);
  line-height: 1;
  min-width: 2.5rem;
  flex-shrink: 0;
}

.edition-title {
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 0.4rem;
}

.edition-date {
  font-size: 0.78rem;
  color: var(--purple-400);
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.edition-desc {
  font-size: 0.83rem;
  color: var(--purple-950);
  line-height: 1.55;
  font-weight: 300;
}

/* ======================== FOOTER ======================== */
footer {
  background: var(--white);
  border-top: 1px solid var(--purple-500);
  padding: clamp(2rem, 4vw, 3rem) clamp(1rem, 4vw, 4rem);
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: clamp(1.5rem, 3vw, 3rem);
  width: 100%;
}

.footer-logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  font-weight: 900;
  margin-bottom: 0.8rem;
  display: block;
}

.footer-logo span {
  color: var(--purple-400);
}

.footer-tagline {
  font-size: 0.85rem;
  color: rgb(0, 0, 0);
  line-height: 1.6;
  font-weight: 300;
}

.footer-col h4 {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgb(0, 0, 0);
  margin-bottom: 1rem;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 0.6rem;
}

.footer-col ul li a {
  font-size: 0.87rem;
  color: rgb(0, 0, 0);
  text-decoration: none;
  cursor: pointer;
  transition: color 0.2s;
}

.footer-col ul li a:hover {
  color: var(--purple-300);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 1.5rem clamp(1rem, 4vw, 4rem);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--white);
  width: 100%;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.footer-bottom p {
  font-size: 0.8rem;
  color: rgb(0, 0, 0);
}

/* ======================== ANIMATIONS ======================== */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.page.active .hero-content,
.page.active .about-text,
.page.active .newsletter-hero h1,
.page.active .newsletter-hero p {
  animation: fadeUp 0.6s ease both;
}

/* ======================== TABLET (769px – 1024px) ======================== */
@media (max-width: 1024px) {
  footer {
    grid-template-columns: 1fr 1fr;
  }

  .featured-split {
    gap: 2.5rem;
  }

  .about-hero {
    gap: 3rem;
  }
}

/* ======================== MOBILE (≤ 768px) ======================== */
@media (max-width: 768px) {
  .menu {
    position: absolute;
    top: 60px;
    right: 0;
    background: #1e1e2f;
    flex-direction: column;
    width: 200px;
    display: none;
    padding: 1rem;
  }

  .menu.active {
    display: flex;
  }

  .menu-toggle {
    display: block;
  }
  nav {
    padding: 1rem 1.2rem;
  }

  .nav-links {
    display: none;
  }

  .hero {
    padding: 7rem 1.2rem 3rem;
  }

  .hero-btns {
    flex-direction: column;
    align-items: center;
  }

  .btn-primary,
  .btn-outline {
    width: 100%;
    max-width: 320px;
    text-align: center;
  }

  /* Stats: grid 2 colunas — nunca vai cortar */
  .stats-bar {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    padding: 1.5rem 1.2rem;
    margin-bottom: 25px;
  }

  .stat-item {
    max-width: none;
  }

  .section {
    padding: 2.5rem 1.2rem;
  }

  /* Featured: coluna única, altura fixa compacta, sem aspect-ratio */
  .featured-split {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .featured-visual {
    aspect-ratio: auto;
    height: 200px;
    padding: 1.2rem;
  }

  .featured-visual .logo img {
    width: clamp(80px, 40%, 140px);
  }

  .about-hero {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 6rem 1.2rem 2.5rem;
  }

  .about-visual {
    aspect-ratio: auto;
    min-height: 0;
    padding: 1.8rem;
  }

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

  .newsletter-hero {
    padding: 6rem 1.2rem 2.5rem;
  }

  .newsletter-form-box {
    padding: 1.5rem 1.2rem;
    margin-bottom: 3rem;
  }

  .checkbox-group {
    grid-template-columns: 1fr 1fr;
  }

  .editions-section {
    padding: 0 1.2rem 3rem;
  }

  .editions-grid   { grid-template-columns: 1fr; }
  .opp-grid        { grid-template-columns: 1fr; }
  .cards-grid      { grid-template-columns: 1fr; }

  footer {
    grid-template-columns: 1fr 1fr;
    padding: 2rem 1.2rem;
    gap: 1.5rem;
  }

  .footer-bottom {
    padding: 1rem 1.2rem;
    flex-direction: column;
    text-align: center;
  }

  .divider {
    margin: 0 1.2rem;
  }

  .cta-block {
    padding: 2rem 1.2rem;
    border-radius: 16px;
  }

  .filter-btn {
    font-size: 0.78rem;
    padding: 0.4rem 0.9rem;
  }
}

/* ======================== PEQUENO (≤ 480px) ======================== */
@media (max-width: 480px) {
  .featured-visual {
    height: 170px;
  }

  .featured-visual .logo img {
    width: clamp(70px, 35%, 120px);
  }

  .checkbox-group {
    grid-template-columns: 1fr;
  }

  footer {
    grid-template-columns: 1fr;
  }
}

/* ======================== MUITO PEQUENO (≤ 400px) ======================== */
@media (max-width: 400px) {
  nav {
    padding: 0.9rem 1rem;
  }

  .nav-logo {
    font-size: 1.2rem;
  }

  .stats-bar {
    gap: 1rem;
    padding: 1.2rem 1rem;
  }

  .stat-num {
    font-size: 1.6rem;
  }

  .stat-label {
    font-size: 0.72rem;
  }

  .featured-visual {
    height: 150px;
  }
}
