:root {
  --navy: #14213D;
  --navy-soft: #2B3A5E;
  --blue: #1B4FD1;
  --blue-light: #4F7BEA;
  --purple: #7B3FE4;
  --green: #22C55E;
  --bg-light: #F2F4F9;
  --bg-light-alt: #E9EDF6;
  --white: #FFFFFF;
  --text-muted: #64708A;
  --border-soft: #DFE4EF;

  --gradient-cta: linear-gradient(90deg, var(--blue) 0%, var(--purple) 100%);
  --gradient-icon: radial-gradient(circle at 30% 30%, #6C93F0, var(--blue) 65%, #14318F 100%);

  --font: 'Poppins', sans-serif;
  --max-width: 1400px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  color: var(--navy);
  background: var(--bg-light);
  line-height: 1.5;
}

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

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

svg {
  width: 1em;
  height: 1em;
}

/* ---------- Shared: section head ---------- */

.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 2.5rem;
  padding: 0 1.5rem;
}

.section-head h2 {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--navy);
  position: relative;
  display: inline-block;
  padding-bottom: 0.9rem;
}

.section-head h2::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 56px;
  height: 4px;
  border-radius: 2px;
  background: var(--gradient-cta);
}

.section-head p {
  margin-top: 0.75rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* ---------- Marquee ---------- */

.marquee {
  overflow: hidden;
  background: var(--gradient-cta);
  padding: 0.6rem 0;
}

.marquee__track {
  display: flex;
  width: max-content;
  animation: marquee-scroll 70s linear infinite;
}

.marquee__track span {
  flex-shrink: 0;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--white);
  white-space: nowrap;
}

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

@media (prefers-reduced-motion: reduce) {
  .marquee__track {
    animation: none;
  }
}

/* ---------- Icon box (hero date) ---------- */

.icon-box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--bg-light-alt);
  color: var(--blue);
  font-size: 0.95rem;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #F5F7FA 0%, #E5EAF2 100%);
}

.hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.9;
}

.hero__inner {
  position: relative;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 3rem 2rem 4rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 2rem;
  align-items: center;
}

.hero__content {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.hero__logo {
  width: min(150px, 45vw);
}

.hero__logo-mobile {
  display: none;
}

.hero__info {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 420px;
}

.hero__subtitle {
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--navy);
}

.hero__subtitle strong {
  color: var(--blue);
}

.hero__date {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--navy);
}

.hero__desc {
  font-size: 1rem;
  color: var(--navy-soft);
  max-width: 400px;
}

.hero__desc strong {
  color: var(--navy);
  font-weight: 700;
}

/* CTA button */

.btn-cta {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 0.6rem;
  align-self: flex-start;
  border: none;
  color: var(--white);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  padding: 1rem 1.9rem;
  border-radius: 12px;
  background: var(--gradient-cta);
  cursor: pointer;
  box-shadow: 0 12px 24px -8px rgba(27, 79, 209, 0.45);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn-cta svg {
  font-size: 1.1rem;
}

.btn-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 28px -8px rgba(27, 79, 209, 0.55);
}

.btn-cta--full {
  align-self: stretch;
  width: 100%;
}

/* Vagas row */

.hero__vagas {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero__vagas-info {
  display: inline-flex;
  align-items: center;
  gap: 0.56rem;
  font-size: 1.19rem;
  font-weight: 600;
  color: var(--navy-soft);
}

.pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  background: var(--white);
  border: 1.5px solid var(--border-soft);
  border-radius: 999px;
  padding: 0.4rem 0.9rem;
}

.pill-badge strong {
  color: var(--blue);
  font-size: 1rem;
  font-weight: 800;
}

/* Hero visual */

.hero__visual {
  position: relative;
  display: flex;
  justify-content: flex-start;
  margin-left: -6rem;
}

.hero__visual img {
  width: 100%;
  max-width: 500px;
}

/* ---------- Turmas ---------- */

.turmas {
  padding: 4.5rem 2rem;
  background: var(--bg-light);
}

.turmas__grid {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.25rem;
}

.turma {
  position: relative;
  font-family: inherit;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  background: var(--white);
  border: 2px solid var(--border-soft);
  border-radius: 18px;
  padding: 1.75rem 1rem;
  cursor: pointer;
  box-shadow: 0 8px 20px -12px rgba(20, 33, 61, 0.15);
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.1s ease;
}

.turma:hover {
  border-color: var(--blue-light);
  transform: translateY(-2px);
}

.turma.is-selected {
  border-color: var(--blue);
  box-shadow: 0 12px 28px -10px rgba(27, 79, 209, 0.35);
}

.turma__check {
  position: absolute;
  top: -10px;
  right: -10px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--gradient-cta);
  color: var(--white);
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  box-shadow: 0 4px 10px -2px rgba(27, 79, 209, 0.5);
}

.turma.is-selected .turma__check {
  display: flex;
}

.turma__icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-light-alt);
  color: var(--blue);
  font-size: 1.1rem;
}

.turma__hora {
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--blue);
  line-height: 1.1;
}

.turma__label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--navy-soft);
}

.turma__status {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 0.2rem;
}

.turma__status i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  display: inline-block;
}

/* ---------- Inscrição ---------- */

.inscricao {
  padding: 0 2rem 4.5rem;
  background: var(--bg-light);
}

.inscricao__card {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 3rem;
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 28px;
  padding: 3rem;
  box-shadow: 0 30px 60px -30px rgba(20, 33, 61, 0.25);
}

.inscricao__aside h2 {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.inscricao__aside p {
  color: var(--text-muted);
  font-size: 0.95rem;
  max-width: 320px;
}

.inscricao__aside hr {
  border: none;
  border-top: 1px solid var(--border-soft);
  margin: 1.5rem 0;
  max-width: 240px;
}

.inscricao__seguro {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  max-width: 300px;
}

.inscricao__seguro svg {
  flex-shrink: 0;
  color: var(--blue);
  font-size: 1.4rem;
  margin-top: 0.1rem;
}

.inscricao__seguro span {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.form {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.form__row {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form__row label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--navy-soft);
}

.form__row input {
  font-family: inherit;
  font-size: 0.95rem;
  padding: 0.85rem 1rem;
  border-radius: 10px;
  border: 1.5px solid var(--border-soft);
  background: var(--white);
  color: var(--navy);
}

.form__row input:focus {
  outline: none;
  border-color: var(--blue);
}

.form__readonly {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.85rem 1rem;
  border-radius: 10px;
  border: 1.5px solid var(--border-soft);
  background: var(--bg-light-alt);
  color: var(--navy);
}

.form__readonly svg {
  color: var(--text-muted);
  font-size: 1.1rem;
}

.form__nota {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  color: var(--text-muted);
  text-align: center;
}

/* ---------- Beneficios ---------- */

.beneficios {
  padding: 4.5rem 2rem;
  background: var(--bg-light-alt);
}

.beneficios__grid {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.5rem;
}

.beneficio {
  text-align: center;
  background: var(--white);
  border-radius: 20px;
  padding: 2.5rem 1.5rem;
  box-shadow: 0 10px 24px -14px rgba(20, 33, 61, 0.18);
}

.beneficio__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: var(--gradient-icon);
  color: var(--white);
  font-size: 1.6rem;
  margin-bottom: 1.25rem;
  box-shadow: 0 10px 20px -6px rgba(27, 79, 209, 0.5), inset 0 2px 4px rgba(255,255,255,0.4);
}

.beneficio h3 {
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  margin-bottom: 0.6rem;
  color: var(--navy);
}

.beneficio p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ---------- Speaker ---------- */

.speaker-section {
  padding: 0 2rem 4.5rem;
  background: var(--bg-light-alt);
}

.speaker-card {
  max-width: var(--max-width);
  margin: 0 auto;
  background: var(--white);
  border-radius: 24px;
  padding: 2.5rem;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 2.5rem;
  align-items: center;
  box-shadow: 0 20px 40px -24px rgba(20, 33, 61, 0.2);
}

.speaker-card__photo {
  width: 150px;
  height: 175px;
  border-radius: 18px;
  object-fit: cover;
  flex-shrink: 0;
}

.speaker-card__label {
  font-size: 0.85rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--navy-soft);
  margin-bottom: 0.3rem;
}

.speaker-card__label strong {
  color: var(--navy);
}

.speaker-card__role {
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.6rem;
}

.speaker-card__bio {
  font-size: 0.88rem;
  color: var(--text-muted);
  max-width: 480px;
}

.speaker-card__social {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.1rem;
}

.speaker-card__social a {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--navy);
  background: var(--bg-light-alt);
  border: 1.5px solid var(--border-soft);
  border-radius: 999px;
  padding: 0.5rem 1rem;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.1s ease;
}

.speaker-card__social a svg {
  color: var(--blue);
  font-size: 1.05rem;
}

.speaker-card__social a:hover {
  background: var(--white);
  border-color: var(--blue-light);
  transform: translateY(-1px);
}

.speaker-card__topics {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.speaker-card__topics li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy-soft);
  white-space: nowrap;
}

.speaker-card__topics svg {
  color: var(--blue);
  font-size: 1.1rem;
}

/* ---------- Footer ---------- */

.footer {
  background: var(--navy);
  padding: 3.5rem 2rem 1.5rem;
}

.footer__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 2rem;
  align-items: center;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.footer__brand {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.footer__brand img {
  width: 80px;
  flex-shrink: 0;
  filter: brightness(0) invert(1);
  opacity: 0.95;
}

.footer__brand p {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.65);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.footer__brand p strong {
  color: var(--white);
}

.footer__label {
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 0.6rem;
}

.footer__col {
  text-align: center;
}

.footer__logo {
  max-height: 28px;
  width: auto;
  margin: 0 auto;
  opacity: 0.95;
}

.footer__copy {
  text-align: center;
  padding-top: 1.5rem;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.5);
}

/* ---------- Responsive ---------- */

@media (max-width: 960px) {
  .hero__inner {
    grid-template-columns: 1fr;
  }

  .hero__logo-mobile {
    display: block;
    width: min(150px, 45vw);
    margin: 0 auto 1.5rem;
    order: -2;
  }

  .hero__content .hero__logo {
    display: none;
  }

  .hero__visual {
    order: -1;
    flex-direction: column;
    margin-left: 0;
    justify-content: center;
  }

  .turmas__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .beneficios__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .speaker-card {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .speaker-card__photo {
    margin: 0 auto;
  }

  .speaker-card__topics {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
  }

  .footer__inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer__brand {
    flex-direction: column;
    gap: 1rem;
  }

  .footer__brand img {
    margin: 0 auto;
  }
}

@media (max-width: 560px) {
  .hero__inner {
    padding: 2rem 1.25rem 3rem;
  }

  .turmas, .beneficios {
    padding: 3rem 1.25rem;
  }

  .turmas__grid, .beneficios__grid {
    grid-template-columns: 1fr 1fr;
    gap: 0.9rem;
  }

  .inscricao {
    padding: 0 1.25rem 3rem;
  }

  .inscricao__card {
    padding: 1.75rem;
    border-radius: 20px;
  }

  .speaker-section {
    padding: 0 1.25rem 3rem;
  }

  .speaker-card {
    padding: 1.75rem;
  }

  .btn-cta {
    align-self: stretch;
    width: 100%;
  }
}

/* ============================================================
   ADIÇÕES — controle de vagas, alerta e tela de obrigado
   (anexado ao CSS original; nada acima foi alterado)
   ============================================================ */

/* honeypot: fora da tela, invisível para pessoas */
.form__row--hp {
  position: absolute !important;
  left: -9999px !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* alerta de bloqueio / erro do formulário */
.form-alert {
  background: #FEF2F2;
  border: 1px solid #FCA5A5;
  color: #B91C1C;
  border-radius: 10px;
  padding: 0.85rem 1rem;
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1.45;
}

/* turma esgotada */
.turma.is-esgotado {
  cursor: not-allowed;
  opacity: 0.6;
  filter: grayscale(0.35);
}
.turma.is-esgotado:hover {
  transform: none;
  box-shadow: none;
}
.turma.is-esgotado .turma__status {
  color: #DC2626;
}
.turma.is-esgotado .turma__status i {
  background: #DC2626;
}

/* botão de envio em estado bloqueado */
.btn-cta[disabled] {
  opacity: 0.65;
  cursor: not-allowed;
  pointer-events: none;
}

/* ---------- tela de obrigado ---------- */
.obrigado {
  min-height: calc(100vh - 160px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 1.5rem;
}

.obrigado__card {
  background: var(--white);
  border: 1px solid var(--border-soft);
  border-radius: 20px;
  box-shadow: 0 24px 60px -28px rgba(20, 33, 61, 0.25);
  max-width: 560px;
  width: 100%;
  padding: 3rem 2.5rem;
  text-align: center;
}

.obrigado__logo {
  width: 110px;
  margin: 0 auto 1.5rem;
}

.obrigado__check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--green);
  color: var(--white);
  margin-bottom: 1.25rem;
}
.obrigado__check svg {
  width: 30px;
  height: 30px;
}

.obrigado__card h1 {
  font-size: clamp(1.5rem, 3vw, 1.9rem);
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.obrigado__info {
  color: var(--navy-soft);
  font-size: 1rem;
  margin-bottom: 0.4rem;
}

.obrigado__nota {
  color: var(--text-muted);
  font-size: 0.88rem;
  margin-bottom: 1.8rem;
}

.obrigado__acoes {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.9rem;
  margin-bottom: 1.8rem;
}

.obrigado__ics {
  font-size: 0.85rem;
  color: var(--blue);
  text-decoration: underline;
}
.obrigado__ics:hover { color: var(--purple); }

.obrigado__voltar {
  display: inline-block;
  font-size: 0.88rem;
  color: var(--text-muted);
}
.obrigado__voltar:hover { color: var(--navy); }

.footer--slim {
  padding: 1.5rem 0;
}
.footer--slim .footer__copy {
  margin: 0;
}

@media (max-width: 560px) {
  .obrigado__card { padding: 2.2rem 1.4rem; }
}

/* ============================================================
   AJUSTES v2 — mobile e obrigado (pedidos do DA)
   ============================================================ */

/* anti-estouro lateral no mobile */
html, body { overflow-x: hidden; }
body { max-width: 100vw; }

@media (max-width: 960px) {
  .hero__visual { align-items: center; }
}

@media (max-width: 560px) {
  .hero__visual img { max-width: 340px; }
  .turma { padding: 1.25rem 0.6rem; gap: 0.4rem; }
  .turma__hora { font-size: 1.35rem; }
  .turma__icon { width: 34px; height: 34px; }
  .beneficio { padding: 1.75rem 1rem; }
  .speaker-card__topics li { white-space: normal; }
}

/* obrigado sem a nota de e-mail: espaco antes dos botoes */
.obrigado__info { margin-bottom: 1.8rem; }
