/* ==========================================================================
   Expressive & Geometric Design System — 3º Congresso APAE/PE
   With GSAP + ScrollSmoother Ready Layout
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Sofia+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,400&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL,GRAD@24,300,0,0');

.material-symbols-outlined {
  font-variation-settings:
  'FILL' 0,
  'wght' 300,
  'GRAD' 0,
  'opsz' 24;
  display: inline-block;
  vertical-align: middle;
  color: #0e3f8a;
}

:root {
  /* Official Color Palette */
  --apae-yellow: #FECC15;
  --apae-blue-dark: #0E3F8A;
  --apae-blue-light: #3A8DC7;
  --apae-green: #82AB33;

  /* Accent Palette */
  --accent-cream: #FAF8F5;
  --accent-soft-yellow: #FFF9E5;
  --accent-soft-blue: #EBF4FC;
  --accent-soft-green: #F0F7E6;

  /* Surfaces & Typography */
  --bg-main: #FAF8F5;
  --bg-card: #FFFFFF;
  --text-main: #0E1726;
  --text-muted: #475569;
  --border-light: #E2E8F0;

  /* Elevation & Radius */
  --shadow-sm: 0 4px 14px rgba(14, 63, 138, 0.06);
  --shadow-md: 0 12px 32px rgba(14, 63, 138, 0.10);
  --shadow-lg: 0 24px 48px rgba(14, 63, 138, 0.15);

  --radius-pill: 999px;
  --radius-lg: 28px;
  --radius-md: 20px;
  --radius-sm: 12px;

  --transition-bounce: 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  --transition-smooth: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-family: 'Sofia Sans', sans-serif;
  font-size: 16px;
  color: var(--text-main);
  background-color: var(--bg-main);
  -webkit-font-smoothing: antialiased;
}

body {
  line-height: 1.6;
  overflow-x: hidden;
}

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

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

.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 2;
}

/* Floating Organic Geometric Shape Accents (Larger on Desktop with Rounded Corners) */
.shape-float {
  position: absolute;
  pointer-events: none;
  z-index: 1;
  opacity: 0.85;
  filter: drop-shadow(0 14px 28px rgba(14, 63, 138, 0.1));
  transition: transform 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.shape-organic-1 {
  width: 240px;
  height: 220px;
  background: var(--apae-yellow);
  border-radius: 60% 40% 70% 30% / 50% 60% 40% 50%;
  left: -30px;
  top: 8%;
}

.shape-organic-2 {
  width: 280px;
  height: 260px;
  background: var(--apae-blue-light);
  border-radius: 40% 60% 30% 70% / 60% 30% 70% 40%;
  right: -40px;
  top: 14%;
}

.shape-organic-3 {
  width: 210px;
  height: 210px;
  background: var(--apae-green);
  border-radius: 50% 50% 40% 60% / 60% 40% 60% 40%;
  bottom: 8%;
  left: 4%;
}

.shape-organic-4 {
  width: 260px;
  height: 200px;
  background: #f6bf08;
  border-radius: 70% 30% 50% 50% / 30% 60% 40% 70%;
  bottom: 12%;
  right: 4%;
}

.shape-organic-pill {
  width: 230px;
  height: 110px;
  background: #82AB33;
  border-radius: 999px;
  transform: rotate(-18deg);
  left: 2%;
  top: 48%;
}

@media (max-width: 992px) {
  .shape-organic-1 { width: 140px; height: 130px; }
  .shape-organic-2 { width: 150px; height: 140px; }
  .shape-organic-3 { width: 120px; height: 120px; }
  .shape-organic-4 { width: 140px; height: 110px; }
  .shape-organic-pill { width: 130px; height: 65px; }
}

/* Header & Sticky Nav */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(250, 248, 245, 0.94);
  backdrop-filter: blur(12px);
  border-bottom: 3px solid var(--apae-yellow);
  padding: 14px 0;
  transition: var(--transition-smooth);
}

.nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.mobile-nav-toggle {
  display: none !important;
  background: transparent;
  border: 2px solid var(--apae-blue-dark);
  color: var(--apae-blue-dark);
  border-radius: var(--radius-sm);
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-bounce);
  padding: 0;
  flex-shrink: 0;
}

.mobile-nav-toggle:hover,
.mobile-nav-toggle:focus-visible {
  background: var(--apae-yellow);
}

.mobile-nav-toggle .material-symbols-outlined {
  font-size: 1.8rem;
  color: var(--apae-blue-dark);
}

.brand-logo {
  height: 52px;
  width: auto;
  transition: var(--transition-bounce);
}

.brand-logo:hover {
  transform: scale(1.04);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}

.nav-link {
    font-weight: 600;
    font-size: 1rem;
    color: var(--apae-blue-dark);
    transition: var(--transition-smooth);
    text-transform: uppercase;
}

.nav-link:hover {
    font-weight: 800;
}

/* ==========================================================================
   BUTTON STYLES (CTA1 & CTA2 as requested - NO RED #D52524)
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: 'Sofia Sans', sans-serif;
  font-weight: 900;
  font-size: 1.15rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 16px 36px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: var(--transition-bounce);
  box-shadow: var(--shadow-md);
  text-align: center;
}

/* CTA1: Outline 2px #0E3F8A, text #0E3F8A. Hover: bg #FECC15, text #0E3F8A */
.btn-cta1 {
  background: transparent;
  border: 2px solid #0E3F8A;
  color: #0E3F8A;
}

.btn-cta1:hover {
  background: #FECC15;
  border-color: #FECC15;
  color: #0E3F8A;
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(254, 204, 21, 0.4);
}

/* CTA2: Background #FECC15 no border, text #0E3F8A. Hover: bg #0E3F8A, text #FECC15 */
.btn-cta2 {
  background: #FECC15;
  border: none;
  color: #0E3F8A;
}

.btn-cta2:hover {
  background: #0E3F8A;
  color: #FECC15;
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(14, 63, 138, 0.4);
}

/* Aliases for backwards compatibility */
.btn-primary { extend .btn-cta2; background: #FECC15; color: #0E3F8A; border: none; }
.btn-primary:hover { background: #0E3F8A; color: #FECC15; }

.btn-outline-blue { extend .btn-cta1; background: transparent; border: 2px solid #0E3F8A; color: #0E3F8A; }
.btn-outline-blue:hover { background: #FECC15; border-color: #FECC15; color: #0E3F8A; }

.btn-red { extend .btn-cta2; background: #FECC15; color: #0E3F8A; border: none; }
.btn-red:hover { background: #0E3F8A; color: #FECC15; }


/* ==========================================================================
   SECTION HEADERS (User exact CSS requirements)
   ========================================================================== */
.section-header-center {
  text-align: center;
  max-width: 100%;
  margin: 40px auto 64px auto;
}

.section-tag {
  display: inline-block;
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 4.5px;
  color: var(--apae-blue-dark);
  /* background: #f6bf08; */
  border: 1px solid rgb(246 191 8);
  padding: 16px 24px;
  border-radius: var(--radius-pill);
  margin-bottom: 16px;
}

.section-title {
  font-size: 4rem;
  font-weight: 900;
  line-height: 1.15;
  color: #0e3f8a;
  margin-bottom: 16px;
  letter-spacing: -1.6px;
}

.section-subtitle {
  font-size: 1.25rem;
  color: var(--text-muted);
  max-width: 760px;
  margin: 0 auto;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero-section {
  position: relative;
  padding: 140px 0 90px 0;
  background: var(--bg-main);
  overflow: hidden;
}

.hero-main-logo-wrapper {
  text-align: center;
  margin-bottom: 40px;
}

.hero-main-logo {
  max-width: 660px;
  width: 100%;
  margin: 0 auto;
  filter: drop-shadow(0 14px 28px rgba(14, 63, 138, 0.15));
}

.hero-pills-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 36px;
  align-items: stretch;
}

.hero-pill-yellow {
  background: var(--apae-yellow);
  color: var(--apae-blue-dark);
  border-radius: var(--radius-pill);
  padding: 44px 40px;
  display: flex;
  align-items: center;
  gap: 24px;
  box-shadow: var(--shadow-md);
  transition: var(--transition-bounce);
}

.hero-pill-yellow:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.hero-pill-icon {
  font-size: 3rem;
  background: rgba(255, 255, 255, 0.4);
  width: 76px;
  height: 76px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.hero-pill-yellow-title {
  font-size: 2.2rem;
  font-weight: 900;
  line-height: 1.2;
}

.hero-pill-yellow-subtitle {
  font-size: 1.15rem;
  font-weight: 700;
  margin-top: 4px;
  opacity: 0.9;
}

.hero-pill-blue {
    background: var(--apae-blue-dark);
    color: #FFFFFF;
    border-radius: var(--radius-pill);
    padding: 44px 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.45;
    box-shadow: var(--shadow-md);
    transition: var(--transition-bounce);
}

.hero-pill-blue:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.hero-cta-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.hero-cta-row .btn {
  min-width: 280px;
}

/* ==========================================================================
   MARQUEE INFINITO (Google Labs Style Ticker)
   ========================================================================== */
.marquee-section {
  background: var(--apae-blue-dark);
  color: #FFFFFF;
  padding: 16px 0;
  overflow: hidden;
  border-top: 3px solid var(--apae-yellow);
  border-bottom: 3px solid var(--apae-yellow);
  white-space: nowrap;
}

.marquee-track {
  display: inline-flex;
  gap: 32px;
  animation: marquee-scroll 25s linear infinite;
}

.marquee-item {
    display: inline-flex;
    align-items: center;
    gap: 16px;
    font-weight: 600;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.marquee-item .star {
  color: var(--apae-yellow);
}

@keyframes marquee-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ==========================================================================
   GALERIA CARROSSEL LENTO DE IMAGENS (Google / Material Design Style)
   ========================================================================== */
.gallery-carousel-section {
  padding: 30px 0 50px 0;
  background: var(--bg-main);
  overflow: hidden;
}

.gallery-carousel-container {
  width: 100%;
  overflow: hidden;
  position: relative;
}

.gallery-carousel-track {
  display: flex;
  gap: 24px;
  width: max-content;
  animation: gallery-slow-scroll 45s linear infinite;
}

.gallery-carousel-track:hover {
  animation-play-state: paused;
}

.gallery-card {
  height: 240px;
  width: auto;
  flex-shrink: 0;
  border-radius: 24px;
  overflow: hidden;
  border: none;
  box-shadow: 0 12px 32px rgba(14, 63, 138, 0.12);
  transition: var(--transition-bounce);
  background: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-card:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 18px 40px rgba(14, 63, 138, 0.22);
}

.gallery-card img {
  height: 100%;
  width: auto;
  max-width: none;
  object-fit: contain;
  display: block;
}

@keyframes gallery-slow-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ==========================================================================
   ACCESSIBILITY & REDUCED MOTION (WCAG 2.1 AA / AAA Standards)
   ========================================================================== */
.skip-link {
  position: absolute;
  top: -100px;
  left: 24px;
  background: var(--apae-yellow);
  color: var(--apae-blue-dark);
  padding: 12px 24px;
  font-weight: 800;
  border-radius: var(--radius-pill);
  z-index: 10000;
  transition: top 0.2s ease;
  box-shadow: var(--shadow-lg);
}

.skip-link:focus {
  top: 24px;
}

:focus-visible {
  outline: 3px solid var(--apae-blue-dark);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  .marquee-track,
  .gallery-carousel-track {
    animation: none !important;
  }
  .gallery-carousel-container {
    overflow-x: auto;
  }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ==========================================================================
   SOBRE / O EVENTO
   ========================================================================== */
.sobre-section {
  padding: 100px 0;
  background: #FFFFFF;
  position: relative;
}

.diferenciais-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 28px;
}

.diferencial-card {
    background: #fcca15;
    border-radius: 32px;
    padding: 36px 32px;
    transition: var(--transition-bounce);
    position: relative;
    overflow: hidden;
}

.diferencial-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  background: #FFFFFF;
}

.diferencial-icon-bubble {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 20px;
  background: var(--accent-soft-yellow);
}

.diferencial-title {
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--apae-blue-dark);
  margin-bottom: 10px;
}

.diferencial-text {
  font-size: 1.05rem;
  color: var(--text-muted);
}

/* ==========================================================================
   GOOGLE LABS INPIRED COMPONENTS (Marquee & Interactive Filters)
   ========================================================================== */

/* 1. Marquee Infinito (Google Labs Ticker) */
.marquee-section {
  background: var(--apae-blue-dark);
  color: #FFFFFF;
  padding: 16px 0;
  overflow: hidden;
  position: relative;
  white-space: nowrap;
  border-top: 3px solid var(--apae-yellow);
  border-bottom: 3px solid var(--apae-yellow);
}

.marquee-track {
  display: inline-flex;
  gap: 40px;
  animation: marqueeScroll 25s linear infinite;
}

.marquee-item {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  font-weight: 900;
  font-size: 1.25rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

.marquee-item span.star {
  color: var(--apae-yellow);
  font-size: 1.4rem;
}

@keyframes marqueeScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* 2. Filtro de Palestrantes em Pílula (Google Labs Filter) */
.filter-pill-container {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 44px;
}

.filter-btn {
    background: #FFFFFF;
    border: 2px solid var(--apae-blue-dark);
    color: var(--apae-blue-dark);
    font-weight: 600;
    font-size: 0.85rem;
    padding: 16px 24px;
    border-radius: var(--radius-pill);
    cursor: pointer;
    transition: var(--transition-bounce);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--apae-blue-dark);
  color: var(--apae-yellow);
  border-color: var(--apae-blue-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.palestrante-card.hidden {
  display: none !important;
}
.publico-section {
  padding: 100px 0;
  background: linear-gradient(135deg, #94b650 0%, #577f08 100%);
  color: #FFFFFF;
  position: relative;
  overflow: hidden;
}

.publico-section .section-tag {
  background: transparent;
  color: #FECC15;
  border-color: #FECC15;
}

.publico-section .section-title {
  color: #FFFFFF;
}

.publico-section .section-subtitle {
  color: #E2E8F0;
}

.pill-cloud {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  max-width: 1000px;
  margin: 0 auto;
}

.publico-pill {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  border: 2px solid rgba(255, 255, 255, 0.3);
  color: #FFFFFF;
  font-weight: 800;
  font-size: 1.15rem;
  padding: 16px 32px;
  border-radius: var(--radius-pill);
  transition: var(--transition-bounce);
}

.publico-pill:nth-child(odd) { transform: rotate(-1.5deg); }
.publico-pill:nth-child(even) { transform: rotate(1.5deg); }
.publico-pill:nth-child(3n) { transform: rotate(-2.5deg); }

.publico-pill:hover {
  background: var(--apae-yellow);
  color: var(--apae-blue-dark);
  border-color: var(--apae-yellow);
  transform: scale(1.08) rotate(0deg) !important;
  box-shadow: 0 10px 24px rgba(254, 204, 21, 0.35);
}

/* ==========================================================================
   ESPAÇOS / O QUE VOCÊ VAI ENCONTRAR NO CONGRESSO
   ========================================================================== */
.espacos-section {
  padding: 100px 0;
  background: #FFFFFF;
  position: relative;
}

.espacos-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.espaco-card {
  background: var(--bg-main);
  border: 2px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 40px 36px;
  transition: var(--transition-bounce);
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
}

.espaco-card:hover {
  transform: translateY(-6px);
  border-color: var(--apae-yellow);
  box-shadow: var(--shadow-md);
  background: #FFFFFF;
}

.espaco-card-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 8px;
}

.espaco-icon {
  font-size: 2.2rem;
  color: var(--apae-blue-dark);
}

.espaco-card-title {
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--apae-blue-dark);
  letter-spacing: -0.5px;
}

.espaco-card-subtitle {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--apae-green);
  margin-bottom: 16px;
}

.espaco-card-text {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.espaco-card-text + .espaco-card-text {
  margin-top: 12px;
}

.espacos-bottom-subtitle {
  text-align: center;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--apae-blue-dark);
  max-width: 860px;
  margin: 48px auto 0 auto;
  line-height: 1.5;
}

@media (max-width: 992px) {
  .espacos-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .espaco-card {
    padding: 30px 24px;
  }
  .espacos-bottom-subtitle {
    font-size: 1.15rem;
    margin-top: 32px;
  }
}

/* ==========================================================================
   SUA INSCRIÇÃO INCLUI / KIT DO PARTICIPANTE
   ========================================================================== */
.inscricao-inclui-section {
  padding: 80px 0;
  background: var(--bg-main);
  position: relative;
}

.inscricao-inclui-card {
  background: #FFFFFF;
  border: 2px solid var(--apae-yellow);
  border-radius: var(--radius-lg);
  padding: 56px 48px;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}

.inscricao-content-wrapper {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 40px;
  align-items: center;
}

.inscricao-image-wrapper {
  position: relative;
  border-radius: 0;
  overflow: hidden;
  box-shadow: none;
  border: none;
  background: transparent;
  transition: none;
}

.inscricao-image-wrapper:hover {
  transform: none;
  box-shadow: none;
}

.inscricao-image-slider {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 12px;
}

.kit-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.kit-slide-1 {
  animation: kitCrossfade1 7s infinite ease-in-out;
}

.kit-slide-2 {
  animation: kitCrossfade2 7s infinite ease-in-out;
}

@keyframes kitCrossfade1 {
  0%, 45% { opacity: 1; }
  50%, 95% { opacity: 0; }
  100% { opacity: 1; }
}

@keyframes kitCrossfade2 {
  0%, 45% { opacity: 0; }
  50%, 95% { opacity: 1; }
  100% { opacity: 0; }
}

.kit-badge {
    display: block;
    font-weight: 400;
    font-size: 0.65rem;
    color: var(--apae-blue-dark);
    background: transparent;
    border: none;
    padding: 6px 0 0 0;
    border-radius: 0;
    text-transform: none;
    letter-spacing: 0;
    box-shadow: none;
    position: relative;
    bottom: auto;
    left: auto;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.beneficios-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.beneficio-item {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--accent-soft-yellow);
  border: 1px solid rgba(254, 204, 21, 0.4);
  padding: 16px 20px;
  border-radius: var(--radius-md);
  transition: var(--transition-bounce);
}

.beneficio-item:hover {
  transform: translateY(-3px);
  background: #FFFFFF;
  border-color: var(--apae-yellow);
  box-shadow: var(--shadow-sm);
}

.beneficio-icon {
  font-size: 1.8rem;
  color: var(--apae-green);
  flex-shrink: 0;
}

.beneficio-text {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--apae-blue-dark);
  line-height: 1.35;
}

.beneficio-highlight {
  background: var(--apae-blue-dark);
  border-color: var(--apae-blue-dark);
}

.beneficio-highlight .beneficio-icon {
  color: var(--apae-yellow);
}

.beneficio-highlight .beneficio-text {
  color: #FFFFFF;
}

.beneficio-highlight:hover {
  background: #061F47;
  border-color: #061F47;
}

@media (max-width: 992px) {
  .inscricao-content-wrapper {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

@media (max-width: 768px) {
  .inscricao-inclui-card {
    padding: 36px 20px;
  }
  .beneficios-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

/* ==========================================================================
   TEMAS EM DESTAQUE (TAG RETANGULAR NA ESQUERDA & CARROSSEL PARALELO NA DIREITA)
   ========================================================================== */
.temas-section {
  padding: 60px 0;
  background: #FECC15;
  overflow: hidden;
}

.temas-container-row {
  display: flex;
  align-items: center;
  gap: 32px;
}

.temas-left-col {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.section-tag-rect {
  display: inline-flex;
  align-items: center;
  font-weight: 600;
  font-size: 1.5rem;
  color: var(--apae-blue-dark);
  background: transparent;
  border: none;
  padding: 0;
  margin: 0;
  white-space: nowrap;
  line-height: 1;
  letter-spacing: -0.5px;
  text-transform: none;
}

.temas-right-col {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
}

.temas-marquee-wrapper {
  width: 100%;
  overflow: hidden;
  position: relative;
  height: 64px;
  mask-image: linear-gradient(to right, transparent, black 4%, black 96%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 4%, black 96%, transparent);
}

.temas-marquee-track {
  display: flex;
  align-items: center;
  gap: 16px;
  width: max-content;
  animation: temas-marquee-left 25s linear infinite;
  height: 64px;
}

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

.tema-card-rect {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--apae-blue-dark);
  color: var(--apae-blue-dark);
  font-weight: 700;
  font-size: 0.8rem;
  padding: 14px 20px;
  border-radius: 16px;
  white-space: nowrap;
  transition: var(--transition-bounce);
  cursor: default;
  text-transform: uppercase;
  line-height: 1;
  box-sizing: border-box;
  height: 60px;
}

.tema-card-rect:hover {
  background: var(--apae-blue-dark);
  color: #FECC15;
  border-color: var(--apae-blue-dark);
  transform: translateY(-2px);
}

@keyframes temas-marquee-left {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@media (max-width: 768px) {
  .temas-container-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
  .section-tag-rect {
    font-size: 1.6rem;
  }
  .temas-right-col {
    width: 100%;
  }
}

/* ==========================================================================
   PALESTRANTES
   ========================================================================== */
.filter-pill-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-bottom: 44px;
}

.filter-btn {
  font-family: 'Sofia Sans', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--apae-blue-dark);
  background: var(--bg-main);
  border: 1.5px solid var(--apae-blue-dark);
  border-radius: var(--radius-pill);
  padding: 10px 22px;
  cursor: pointer;
  transition: var(--transition-bounce);
  white-space: nowrap;
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--apae-blue-dark);
  color: var(--apae-yellow);
  border-color: var(--apae-blue-dark);
  box-shadow: var(--shadow-sm);
}

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

.palestrante-card {
  border-radius: var(--radius-lg);
  padding: 28px 20px;
  text-align: center;
  border: 1px solid #f6bf08;
  transition: var(--transition-bounce);
  position: relative;
  background: var(--bg-main);
}

.palestrante-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: var(--apae-blue-dark);
  background: #FFFFFF;
}

.palestrante-photo-wrapper {
  width: 200px;
  height: auto;
  margin: 0 auto 20px auto;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.palestrante-photo {
  width: 100%;
  height: auto;
  object-fit: cover;
  background: #FFFFFF;
  position: relative;
  z-index: 2;
  border: 3px solid #FFFFFF;
}

.palestrante-nome {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--apae-blue-dark);
  margin-bottom: 6px;
  letter-spacing: -1px;
}

.palestrante-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  color: #0e3f8a;
  background: #f6bf08;
  padding: 6px 14px;
  border-radius: 8px;
  text-transform: uppercase;
}

/* ==========================================================================
   FAQ REDESIGNED (Inspired by modern clean 2-column FAQ card layout)
   ========================================================================== */
.faq-section {
  padding: 100px 0;
  background: var(--bg-main);
}

.faq-card-box {
  background: #FFFFFF;
  border-radius: 36px;
  padding: 56px 48px;
  box-shadow: 0 16px 44px rgba(14, 63, 138, 0.07);
  border: 1px solid var(--border-light);
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 48px;
  align-items: start;
}

.faq-left-col {
  display: flex;
  flex-direction: column;
  height: 100%;
  justify-content: space-between;
}

.faq-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--apae-blue-dark);
  background: var(--accent-soft-blue);
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  width: max-content;
  margin-bottom: 20px;
}

.faq-card-title {
  font-size: 2.8rem;
  font-weight: 900;
  color: var(--apae-blue-dark);
  line-height: 1.15;
  letter-spacing: -1px;
  margin-bottom: 36px;
}

.faq-left-cta {
  background: var(--accent-cream);
  border-radius: 20px;
  padding: 28px 24px;
  border: 1px solid #E2E8F0;
  margin-top: auto;
}

.faq-cta-title {
  font-size: 1.2rem;
  font-weight: 900;
  color: var(--apae-blue-dark);
  margin-bottom: 8px;
}

.faq-cta-sub {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.45;
  margin-bottom: 20px;
}

.faq-cta-btn {
  width: 100%;
  font-size: 1rem;
  padding: 14px 24px;
}

.faq-container {
  width: 100%;
}

.faq-item {
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 18px;
  margin-bottom: 14px;
  overflow: hidden;
  transition: var(--transition-smooth);
}

.faq-item:hover,
.faq-item.open {
  border-color: var(--apae-blue-light);
  background: #FFFFFF;
  box-shadow: 0 6px 20px rgba(14, 63, 138, 0.06);
}

.faq-question {
  width: 100%;
  padding: 22px 24px;
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--apae-blue-dark);
  text-align: left;
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.faq-num {
  font-size: 0.95rem;
  font-weight: 800;
  color: #94A3B8;
  width: 28px;
  flex-shrink: 0;
}

.faq-question-text {
  flex: 1;
  font-family: 'Sofia Sans', sans-serif;
}

.faq-toggle-icon {
  font-size: 1.5rem;
  color: var(--apae-blue-dark);
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.faq-answer {
  padding: 0 24px 22px 68px;
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.6;
  display: none;
}

@media (max-width: 992px) {
  .faq-card-box {
    grid-template-columns: 1fr;
    padding: 36px 24px;
    gap: 32px;
  }
  .faq-card-title {
    font-size: 2.2rem;
    margin-bottom: 24px;
  }
  .faq-answer {
    padding-left: 24px;
  }
}

/* ==========================================================================
   SEÇÃO REDE FEAPAES-PE (32 APAEs & MAPA PE EM AZUL)
   ========================================================================== */
.rede-section {
  padding: 100px 0;
  background: #FFFFFF;
  position: relative;
  text-align: center;
}

.rede-map-wrapper {
    max-width: 960px;
    margin: 24px auto 32px auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

.rede-map-svg {
  width: 100%;
  max-height: 400px;
  object-fit: contain;
  filter: drop-shadow(0 14px 28px rgba(14, 63, 138, 0.18));
}

.rede-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px;
  max-width: 1000px;
  margin: 0 auto;
}

.rede-stat-card {
  background: var(--bg-main);
  border: 2px solid var(--apae-yellow);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  text-align: center;
  transition: var(--transition-bounce);
}

.rede-stat-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: var(--apae-blue-dark);
}

.rede-stat-number {
  font-size: 3.2rem;
  font-weight: 900;
  color: var(--apae-blue-dark);
  line-height: 1;
  margin-bottom: 8px;
}

.rede-stat-label {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-main);
}

/* CTA Final (com slideshow de background a 20% de transparência) */
.cta-final-section {
  padding: 110px 0;
  background: linear-gradient(135deg, var(--apae-blue-dark) 0%, #061F47 100%);
  color: #FFFFFF;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-bg-slideshow {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  opacity: 0.2; /* 20% de transparência */
}

.cta-bg-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  animation: ctaSlideshow 20s infinite ease-in-out;
}

.cta-slide-1 { animation-delay: 0s; }
.cta-slide-2 { animation-delay: 4s; }
.cta-slide-3 { animation-delay: 8s; }
.cta-slide-4 { animation-delay: 12s; }
.cta-slide-5 { animation-delay: 16s; }

@keyframes ctaSlideshow {
  0% { opacity: 0; transform: scale(1.04); }
  6% { opacity: 1; }
  22% { opacity: 1; }
  28% { opacity: 0; transform: scale(1); }
  100% { opacity: 0; }
}

.cta-final-title {
  font-size: 3.4rem;
  font-weight: 900;
  margin-bottom: 18px;
}

.cta-final-text {
  font-size: 1.35rem;
  max-width: 720px;
  margin: 0 auto 40px auto;
  opacity: 0.95;
}

/* FOOTER */
.site-footer {
  background: #fcf7e4;
  color: #0E3F8A;
  padding: 60px 0 40px 0;
  font-size: 0.95rem;
  border-top: 3px solid #0E3F8A;
}

.footer-grid {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 36px;
  text-align: center;
}

.footer-logo {
  height: 64px;
  width: auto;
}

.footer-images {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 48px;
}

.footer-img {
  max-height: 95px;
  width: auto;
  object-fit: contain;
}

.footer-copyright {
    border-top: 1px solid rgb(254 204 21);
    padding-top: 24px;
    width: 100%;
    font-size: 0.85rem;
    font-weight: 500;
    color: #0E3F8A;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* ==========================================================================
   RESPONSIVENESS (MOBILE & TABLET BREAKPOINTS)
   ========================================================================== */
@media (max-width: 992px) {
  .hero-pills-grid { grid-template-columns: 1fr; }
  .hero-title { font-size: 2.8rem; }
  .section-title { font-size: 2.8rem; }
  .hero-pill-yellow { border-radius: var(--radius-lg); }
  .hero-pill-blue { border-radius: var(--radius-lg); }

  /* Mobile Nav Drawer Toggle */
  .mobile-nav-toggle {
    display: flex !important;
  }

  .header-cta-btn {
    padding: 10px 20px;
    font-size: 0.9rem;
  }

  .nav-links {
    position: fixed;
    top: 76px;
    left: 0;
    width: 100%;
    height: calc(100vh - 76px);
    background: rgba(250, 248, 245, 0.98);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 28px;
    padding: 40px 24px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-16px);
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1), transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.3s;
    z-index: 999;
    border-bottom: 4px solid var(--apae-yellow);
    box-shadow: var(--shadow-lg);
    overflow-y: auto;
  }

  .nav-links.open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }

  .nav-link {
    font-size: 1.3rem;
    font-weight: 700;
  }

  body.menu-open {
    overflow: hidden;
  }
}

@media (max-width: 768px) {
  .filter-pill-container {
    justify-content: flex-start;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 12px;
    margin-bottom: 28px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .filter-pill-container::-webkit-scrollbar {
    display: none;
  }

  .filter-btn {
    flex-shrink: 0;
    font-size: 0.9rem;
    padding: 8px 18px;
  }

  .section-title {
    font-size: 2.3rem;
  }

  .diferenciais-grid,
  .espacos-grid,
  .rede-stats-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
  }
}

@media (max-width: 600px) {
  .hero-title { font-size: 2.1rem; }
  .section-title { font-size: 2.0rem; }

  /* Redução de espaçamento entre seções no mobile */
  .hero-section {
    padding: 85px 0 25px 0;
  }

  .gallery-carousel-section {
    padding: 20px 0 30px 0;
  }

  .sobre-section,
  .publico-section,
  .espacos-section,
  .inscricao-inclui-section,
  .palestrantes-section,
  .rede-section,
  .faq-section {
    padding: 45px 0;
  }

  .temas-section {
    padding: 32px 0;
  }

  .cta-final-section {
    padding: 50px 0;
  }

  .section-header-center {
    margin: 20px auto 28px auto;
  }

  .espacos-bottom-subtitle {
    margin: 28px auto 0 auto;
    font-size: 1.15rem;
  }

  .inscricao-inclui-card,
  .faq-card-box {
    padding: 28px 18px;
  }

  .hero-main-logo-wrapper {
    margin-bottom: 16px;
  }

  .hero-main-logo {
    max-width: 88%;
  }

  .hero-pills-grid {
    gap: 12px;
    margin-bottom: 16px;
  }

  .shape-organic-1 {
    width: 100px;
    height: 90px;
    left: -20px;
    top: 2%;
  }

  .shape-organic-2 {
    width: 110px;
    height: 100px;
    right: -20px;
    top: 1%;
  }

  /* hero-pill-yellow compacto para dar máxima visibilidade ao botão CTA */
  .hero-pill-yellow {
    background: var(--apae-yellow);
    color: var(--apae-blue-dark);
    border-radius: 20px;
    padding: 14px 18px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: var(--shadow-md);
    flex-direction: row;
    text-align: left;
  }

  .hero-pill-icon {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
  }

  .hero-pill-icon .material-symbols-outlined {
    font-size: 1.8rem !important;
  }

  .hero-pill-yellow-title {
    font-size: 1.25rem;
    line-height: 1.15;
  }

  .hero-pill-yellow-subtitle {
    font-size: 0.88rem;
    margin-top: 2px;
  }

  .hero-pill-blue {
    padding: 18px 20px;
    border-radius: 20px;
    font-size: 0.9rem;
    line-height: 1.4;
  }

  .hero-cta-row {
    margin-top: 12px;
  }

  .btn {
    width: 100%;
    max-width: 100%;
    padding: 14px 24px;
    font-size: 1rem;
  }

  .header-actions .btn {
    width: auto;
    padding: 8px 16px;
    font-size: 0.85rem;
  }

  /* Galeria sem cortes no mobile */
  .gallery-card {
    height: 170px;
    border-radius: 18px;
  }

  .gallery-card img {
    max-height: 170px;
  }

  /* Seção Para Quem É otimizada no mobile (Design alinhado e limpo) */
  .pill-cloud {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    width: 100%;
    max-width: 320px;
    margin: 0 auto;
  }

  .publico-pill {
    width: 100%;
    justify-content: center;
    text-align: center;
    transform: none !important;
    padding: 12px 20px;
    font-size: 1rem;
    border-radius: var(--radius-pill);
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1.5px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
  }

  .publico-pill:hover {
    transform: scale(1.02) !important;
  }

  .footer-images {
    gap: 24px;
    flex-direction: column;
  }

  .footer-img {
    max-height: 65px;
  }
}
