/* =========================================================================
   Webinário IA e o Serviço Social — /webinario-ia
   Abertura em verde-escuro com a imagem "ao vivo pelo Meet"; seções claras
   com títulos diretos. Tipografia sem serifa (Figtree), sem cara de luxo.
   ========================================================================= */

:root {
  --papel: #f4efe6;
  --branco: #ffffff;
  --tinta: #14231f;
  --tinta-2: #55605b;
  --fio: rgba(20, 35, 31, 0.14);
  --verde: #0f2d27;
  --verde-2: #1a4539;
  --creme: #f4efe6;
  --creme-2: rgba(244, 239, 230, 0.76);
  --ouro: #8a6727;       /* dourado para texto em fundo claro */
  --ouro-vivo: #f2c14e;  /* dourado das artes, para fundo escuro */
  --ouro-claro: #fbf1d6;

  --sans: 'Figtree', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  --gutter: 32px;
  --max: 1240px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--papel);
  color: var(--tinta);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, p, ol, ul, dl, dd, figure { margin: 0; padding: 0; }
ol, ul { list-style: none; }
a { color: inherit; }
::selection { background: var(--verde); color: var(--creme); }
:focus-visible { outline: 2px solid var(--ouro-vivo); outline-offset: 3px; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- botão ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 19px 28px;
  background: var(--tinta);
  color: var(--papel);
  font: 700 1rem/1 var(--sans);
  text-decoration: none;
  border-radius: 10px;
  transition: background-color .2s ease, transform .2s ease;
}
.btn span { transition: transform .2s ease; }
.btn:hover { background: #000; }
.btn:hover span { transform: translateX(4px); }
.btn-ouro { background: var(--ouro-vivo); color: var(--tinta); }
.btn-ouro:hover { background: #ffd36b; }
.btn-bloco { width: 100%; }

/* ---------- cabeçalho (faz parte da abertura escura) ---------- */
.top { background: var(--verde); border-bottom: 1px solid rgba(244, 239, 230, 0.1); }
.top-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 76px;
}
.top-logo img { width: 132px; height: auto; }
.top-nav { display: flex; gap: 36px; font-size: .92rem; }
.top-nav a { text-decoration: none; color: var(--creme-2); transition: color .2s ease; }
.top-nav a:hover { color: var(--creme); }
.top-cta {
  text-decoration: none;
  color: var(--creme);
  font-weight: 600;
  font-size: .95rem;
  padding-bottom: 2px;
  border-bottom: 1px solid var(--creme);
}

/* ---------- abertura ---------- */
.hero {
  --hero-gap: 64px;
  position: relative;
  background: var(--verde);
  color: var(--creme);
  padding: 64px 0 96px;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  grid-template-areas:
    "top    foto"
    "bottom foto";
  grid-template-rows: auto 1fr;
  column-gap: var(--hero-gap);
}
.hero-top { grid-area: top; }
.hero-photo { grid-area: foto; align-self: center; }
.hero-bottom { grid-area: bottom; align-self: end; }

.hero-kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: .95rem;
  font-weight: 600;
  color: var(--ouro-vivo);
}
.hero-kicker::before {
  content: "";
  flex: none;
  width: 32px;
  height: 2px;
  background: var(--ouro-vivo);
}
.hero h1 {
  margin-top: 24px;
  color: #fff;
  font-weight: 800;
  font-size: clamp(2.8rem, 5.6vw, 5rem);
  line-height: 1.02;
  letter-spacing: -0.035em;
}
.hero h1 em { font-style: normal; color: var(--ouro-vivo); }
.hero-lede {
  margin-top: 28px;
  max-width: 34em;
  font-size: 1.14rem;
  line-height: 1.65;
  color: var(--creme-2);
}

/* desktop: a arte ocupa toda a metade direita da abertura, do fim da coluna de
   texto até a borda da tela (como na referência), e cresce com a tela */
@media (min-width: 901px) {
  .hero-top, .hero-bottom { position: relative; z-index: 2; }
  .hero-photo {
    position: absolute; z-index: 1; top: 0; bottom: 0; right: 0;
    left: calc(max(0px, (100% - var(--max)) / 2) + var(--gutter)
      + (min(100%, var(--max)) - 2 * var(--gutter) - var(--hero-gap)) * 7 / 12 - 24px);
    display: flex; align-items: center; justify-content: center;
    pointer-events: none;
  }
  .hero-photo img { width: auto; height: auto; max-width: 100%; max-height: 100%; }
}

.ficha {
  margin-top: 48px;
  border-top: 1px solid rgba(244, 239, 230, 0.5);
}
.ficha div {
  display: grid;
  grid-template-columns: 9.5em 1fr;
  gap: 16px;
  padding: 13px 0;
  border-bottom: 1px solid rgba(244, 239, 230, 0.14);
}
.ficha dt { color: var(--creme-2); font-size: .92rem; }
.ficha dd { font-weight: 600; color: #fff; }

.hero-acao {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px 28px;
  margin-top: 36px;
}
.contagem { font-size: .92rem; color: var(--tinta-2); }
.hero .contagem { color: var(--creme-2); }

/* ---------- seções ---------- */
.sec { padding: 112px 0 0; }
.sec:last-of-type { padding-bottom: 120px; }
.sec-head { max-width: 46em; }
.sec-title {
  font-weight: 800;
  font-size: clamp(2rem, 3.6vw, 2.9rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
}
.sec-lede { margin-top: 12px; font-size: 1.12rem; color: var(--tinta-2); }

/* programação */
.aulas {
  margin-top: 44px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}
.aula {
  display: flex;
  flex-direction: column;
  background: var(--branco);
  border: 1px solid var(--fio);
  border-radius: 16px;
  overflow: hidden;
}
.aula img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.aula-corpo { padding: 22px 24px 28px; }
.aula-data {
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ouro);
}
.aula h3 {
  margin-top: 10px;
  font-size: 1.18rem;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.01em;
}
.aula h3 span { display: block; margin-bottom: 4px; font-size: .9rem; font-weight: 600; color: var(--tinta-2); letter-spacing: 0; }
.aula-corpo > p:not(.aula-data):not(.aula-destaque) { margin-top: 12px; font-size: .98rem; line-height: 1.55; color: var(--tinta-2); }
.aula-destaque {
  display: inline-block;
  margin-top: 16px;
  padding: 8px 12px;
  border-radius: 8px;
  background: var(--ouro-claro);
  font-size: .92rem;
  font-weight: 700;
}

/* o que vai aprender */
.topicos {
  margin-top: 40px;
  counter-reset: t;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 56px;
}
.topicos li {
  counter-increment: t;
  display: grid;
  grid-template-columns: 2.6em 1fr;
  padding: 20px 0 22px;
  border-top: 1px solid var(--fio);
  font-size: 1.12rem;
  line-height: 1.45;
}
.topicos li::before {
  content: counter(t, decimal-leading-zero);
  font-weight: 800;
  font-size: .95rem;
  line-height: 1.55;
  font-variant-numeric: tabular-nums;
  color: var(--ouro);
}

/* o que vai levar */
.levar {
  margin-top: 44px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
}
.levar-item {
  background: var(--branco);
  border: 1px solid var(--fio);
  border-radius: 16px;
  padding: 18px 18px 30px;
}
.levar-item h3 { margin: 24px 12px 0; font-size: 1.3rem; font-weight: 700; line-height: 1.25; letter-spacing: -0.015em; }
.levar-item > p { margin: 10px 12px 0; color: var(--tinta-2); }
.levar-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 200px;
  padding: 28px;
  border-radius: 12px;
  background: var(--verde);
}
.mini-prompt {
  width: min(300px, 100%);
  padding: 18px 20px 20px;
  border-radius: 14px;
  background: var(--branco);
  box-shadow: 0 16px 36px rgba(0, 0, 0, .25);
  transform: rotate(-2deg);
}
.mini-rotulo { display: flex; align-items: center; gap: 8px; font-size: .9rem; font-weight: 700; color: var(--verde); }
.mini-rotulo svg { width: 15px; height: 15px; }
.mini-linha { display: block; height: 8px; margin-top: 10px; border-radius: 99px; background: #e4e7e5; }
.mini-copiar { display: inline-block; margin-top: 14px; padding: 6px 12px; border-radius: 8px; background: var(--verde); color: #fff; font-size: .82rem; font-weight: 700; }
.mini-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; max-width: 360px; }
.mini-chips li {
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--branco);
  color: var(--verde);
  font-size: .9rem;
  font-weight: 700;
}
.mini-chips li:nth-child(3n + 2) { background: var(--ouro-vivo); color: var(--tinta); }

/* quem conduz */
.sobre {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 64px;
  align-items: center;
}
.sobre-foto img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 16px; }
.sobre-rotulo { margin-bottom: 10px; font-size: .95rem; font-weight: 700; color: var(--ouro); }
.sobre-cargo { margin-top: 8px; font-weight: 600; font-size: 1.12rem; color: var(--tinta-2); }
.sobre-texto > p:not(.sobre-cargo):not(.sobre-rotulo) { margin-top: 24px; max-width: 32em; font-size: 1.08rem; }
.numeros {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px;
  max-width: 32em;
  margin-top: 40px;
}
.numeros div { border-top: 2px solid var(--tinta); padding-top: 14px; }
.numeros dt { font-weight: 800; font-size: clamp(2rem, 3.2vw, 2.6rem); line-height: 1; letter-spacing: -0.035em; }
.numeros dd { margin-top: 8px; font-size: .92rem; color: var(--tinta-2); }

/* ---------- inscrição (ingresso) ---------- */
.ingresso {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
  margin-top: 44px;
  border: 1px solid var(--tinta);
  border-radius: 16px;
  background: var(--branco);
}
.ingresso-info { padding: 44px 48px 40px; }
.ingresso-canhoto {
  position: relative;
  padding: 44px 40px 40px;
  border-left: 1px dashed var(--tinta);
  display: flex;
  flex-direction: column;
}
/* recortes do canhoto */
.ingresso-canhoto::before,
.ingresso-canhoto::after {
  content: "";
  position: absolute;
  left: -12px;
  width: 22px;
  height: 22px;
  border: 1px solid var(--tinta);
  border-radius: 50%;
  background: var(--papel);
}
.ingresso-canhoto::before { top: -12px; clip-path: inset(50% 0 0 0); }
.ingresso-canhoto::after { bottom: -12px; clip-path: inset(0 0 50% 0); }

.ingresso-tipo { font-size: .9rem; color: var(--tinta-2); }
.ingresso-nome {
  margin-top: 6px;
  font-weight: 800;
  font-size: clamp(1.7rem, 2.8vw, 2.3rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
}
.ingresso-inclui { margin-top: 24px; }
.ingresso-inclui li { position: relative; padding: 8px 0 8px 30px; }
.ingresso-inclui li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.95em;
  width: 14px;
  height: 7px;
  border-left: 2px solid var(--verde-2);
  border-bottom: 2px solid var(--verde-2);
  transform: rotate(-45deg);
}
.ingresso-dados {
  display: grid;
  grid-template-columns: repeat(3, auto);
  justify-content: start;
  gap: 40px;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--fio);
}
.ingresso-dados dt { font-size: .8rem; color: var(--tinta-2); }
.ingresso-dados dd { font-weight: 600; }

.preco {
  margin-top: 10px;
  font-weight: 800;
  font-size: 5.2rem;
  line-height: .9;
  letter-spacing: -0.05em;
}
.preco small { font-size: .3em; font-weight: 700; letter-spacing: 0; }
.preco small:first-child { margin-right: 6px; vertical-align: 1.35em; }
.preco-nota { margin-top: 8px; margin-bottom: 32px; color: var(--tinta-2); font-size: .95rem; }
.ingresso-canhoto .btn { margin-top: auto; }
.ingresso-aviso { margin-top: 14px; font-size: .84rem; line-height: 1.5; color: var(--tinta-2); }
.contagem-centro { margin-top: 20px; }

/* ---------- dúvidas ---------- */
.faq { max-width: 52em; margin-top: 32px; border-top: 1px solid var(--fio); }
.faq details { border-bottom: 1px solid var(--fio); }
.faq summary {
  position: relative;
  list-style: none;
  cursor: pointer;
  padding: 22px 56px 22px 0;
  font-weight: 600;
  font-size: clamp(1.1rem, 1.6vw, 1.25rem);
  line-height: 1.35;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before,
.faq summary::after {
  content: "";
  position: absolute;
  right: 6px;
  top: 50%;
  width: 16px;
  height: 2px;
  background: var(--tinta);
  transition: transform .25s ease;
}
.faq summary::after { transform: rotate(90deg); }
.faq details[open] summary::after { transform: rotate(0deg); }
.faq details p { padding: 0 56px 26px 0; max-width: 40em; color: var(--tinta-2); }
.faq-contato { margin-top: 28px; color: var(--tinta-2); }
.faq-contato a { color: var(--tinta); font-weight: 600; text-underline-offset: 3px; }

/* ---------- rodapé ---------- */
.rodape { margin-top: 0; background: var(--verde); color: var(--creme-2); padding: 56px 0 64px; font-size: .85rem; }
.rodape-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 40px; }
.rodape img { width: 124px; margin-right: auto; opacity: .9; }

/* ---------- dados antes do checkout ---------- */
.pre {
  width: min(460px, calc(100% - 32px));
  max-height: calc(100% - 32px);
  margin: auto;
  padding: 0;
  border: 0;
  border-radius: 18px;
  background: var(--branco);
  color: var(--tinta);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .35);
}
.pre::backdrop { background: rgba(8, 26, 22, .72); }
.pre[open] { animation: pre-entra .22s ease-out; }
@keyframes pre-entra { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.pre-form { position: relative; padding: 34px 32px 28px; }
.pre-fechar {
  position: absolute; top: 12px; right: 12px;
  width: 40px; height: 40px; border: 0; border-radius: 50%;
  background: transparent; color: var(--tinta-2);
  font: 400 1.8rem/1 var(--sans); cursor: pointer;
}
.pre-fechar:hover { background: var(--papel); color: var(--tinta); }
.pre-passo { font-size: .8rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ouro); }
.pre h2 { margin-top: 8px; padding-right: 28px; font-size: 1.5rem; font-weight: 800; line-height: 1.2; letter-spacing: -0.02em; }
.pre-texto { margin-top: 10px; font-size: .95rem; line-height: 1.5; color: var(--tinta-2); }
.pre label { display: block; margin-top: 18px; font-size: .88rem; font-weight: 600; }
.pre input {
  display: block; width: 100%; margin-top: 6px; padding: 14px 16px;
  border: 1.5px solid rgba(20, 35, 31, .2); border-radius: 10px;
  background: #fff; color: var(--tinta);
  font: 500 1rem/1.2 var(--sans);
}
.pre input:focus { outline: none; border-color: var(--verde-2); box-shadow: 0 0 0 3px rgba(26, 69, 57, .15); }
.pre-erro { min-height: 1.4em; margin-top: 12px; font-size: .88rem; font-weight: 600; color: #b3261e; }
.pre .btn { margin-top: 6px; }
.pre .btn:disabled { opacity: .7; cursor: wait; }
.pre-nota { margin-top: 14px; font-size: .8rem; line-height: 1.45; text-align: center; color: var(--tinta-2); }
@media (max-width: 480px) {
  .pre-form { padding: 30px 22px 22px; }
  .pre input { font-size: 16px; } /* evita o zoom automático do iPhone */
}

/* ---------- barra mobile ---------- */
.barra { display: none; }

/* ---------- responsivo ---------- */
@media (max-width: 1080px) {
  .hero { --hero-gap: 40px; }
  .aulas { grid-template-columns: minmax(0, 1fr); max-width: 760px; }
  .aula { flex-direction: row; }
  .aula img { width: 44%; flex: none; aspect-ratio: auto; height: auto; object-fit: cover; }
}

@media (max-width: 900px) {
  :root { --gutter: 22px; }
  body { font-size: 16px; }

  .top-inner { height: 64px; }
  .top-nav { display: none; }
  .top-logo img { width: 118px; }

  .hero { padding: 36px 0 72px; }
  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "top" "foto" "bottom";
    grid-template-rows: auto;
  }
  .hero-kicker { font-size: .86rem; align-items: flex-start; }
  .hero-kicker::before { width: 20px; margin-top: .7em; }
  .hero h1 { margin-top: 18px; font-size: clamp(2.3rem, 10.4vw, 3.6rem); }
  .hero-lede { margin-top: 20px; font-size: 1.04rem; }
  .hero-photo { margin-top: 28px; margin-right: 0; }
  .hero-photo img { width: 100%; max-width: 440px; margin: 0 auto; }
  .ficha { margin-top: 28px; }
  .ficha div { grid-template-columns: 7.2em 1fr; }
  .hero-acao { flex-direction: column; align-items: stretch; gap: 14px; margin-top: 28px; }
  .hero-acao .btn { width: 100%; }
  .contagem { text-align: center; }

  .sec { padding-top: 80px; }
  .sec:last-of-type { padding-bottom: 96px; }
  .sec-lede { font-size: 1.04rem; }

  .aulas { margin-top: 32px; gap: 20px; }
  .aula { flex-direction: column; }
  .aula img { width: 100%; aspect-ratio: 16 / 9; }
  .aula-corpo { padding: 20px 20px 24px; }

  .topicos { grid-template-columns: minmax(0, 1fr); margin-top: 28px; }
  .topicos li { font-size: 1.05rem; padding: 18px 0 20px; }

  .levar { grid-template-columns: minmax(0, 1fr); margin-top: 32px; gap: 20px; }
  .levar-visual { min-height: 170px; padding: 24px 18px; }

  .sobre { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .sobre-foto { max-width: 420px; }
  .numeros { gap: 20px; margin-top: 30px; }

  .ingresso { grid-template-columns: minmax(0, 1fr); margin-top: 32px; }
  .ingresso-info { padding: 30px 22px 26px; }
  .ingresso-canhoto { padding: 30px 22px 26px; border-left: 0; border-top: 1px dashed var(--tinta); }
  .ingresso-canhoto::before,
  .ingresso-canhoto::after { top: -12px; bottom: auto; }
  .ingresso-canhoto::before { left: -12px; clip-path: inset(0 0 0 50%); }
  .ingresso-canhoto::after { left: auto; right: -12px; clip-path: inset(0 50% 0 0); }
  .ingresso-dados { justify-content: space-between; gap: 16px; }
  .preco { font-size: 4.4rem; }
  .contagem-centro { text-align: left; }

  .faq summary { padding-right: 44px; }
  .faq details p { padding-right: 0; }

  .rodape { padding-bottom: 104px; }
  .rodape-inner { flex-direction: column; align-items: flex-start; gap: 8px; }
  .rodape img { margin: 0 0 12px; }

  .barra {
    display: flex;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 50;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 12px var(--gutter) calc(12px + env(safe-area-inset-bottom));
    background: var(--verde);
    color: var(--creme-2);
    font-size: .84rem;
    transform: translateY(110%);
    transition: transform .3s ease;
  }
  .barra.on { transform: translateY(0); }
  .barra strong { display: block; color: var(--creme); font-size: 1rem; font-weight: 700; }
  .barra-btn {
    padding: 13px 20px;
    background: var(--ouro-vivo);
    color: var(--tinta);
    font-weight: 700;
    text-decoration: none;
    border-radius: 10px;
    white-space: nowrap;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
