/* ==========================================================================
   FB Uni + Atlântico Avanti · LP Desenvolvedor Full Stack com IA
   Base: LP tech-project-management (Avanti), recolorida para a parceria FB Uni
   - Verde FB #4E893C (principal) · Roxo Avanti #81319C (secundária)
   - Creme #F6EDDA no lugar do branco · Botões de ação #00EA65 com texto preto
   - Títulos: Poppins (Light 300 + Bold 700) · Texto: Inter Light 300
   ========================================================================== */

/* ---------- 0. Fontes (hospedadas localmente, subconjunto latino) ---------- */
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 300; font-display: swap; src: url("../fonts/poppins-300.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/poppins-400.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/poppins-700.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 300; font-display: swap; src: url("../fonts/inter-300.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/inter-400.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/inter-700.woff2") format("woff2"); }

/* ---------- 1. Tokens ---------- */
:root {
  /* Paleta da parceria */
  --verde: #4e893c;         /* Verde FB: principal */
  --verde-escuro: #3d6d2f;  /* hover e contornos sobre o verde */
  --roxo: #81319c;          /* Roxo Avanti: secundária */
  --creme: #f6edda;         /* claro (substitui o branco) */
  --acao: #00ea65;          /* botões de ação */
  --acao-hover: #00c455;
  --preto: #000000;
  --branco: #ffffff;

  /* Cinzas */
  --cinza-1: #262626;       /* títulos sobre fundo claro */
  --cinza-3: #4a4a4a;       /* texto corrido sobre fundo claro */
  --cinza-atl: #636363;     /* textos de apoio */
  --cinza-5: #d1d1d1;       /* bordas */
  --cinza-6: #dedede;       /* linhas e divisórias */

  /* Papéis de cor */
  --c-title: var(--cinza-1);
  --c-title-accent: var(--verde);
  --c-text: var(--cinza-3);
  --c-text-muted: var(--cinza-atl);
  --c-link: var(--verde);
  --c-link-hover: var(--roxo);
  --c-line: var(--cinza-5);

  /* Tipografia */
  --ff-title: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ff-text: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Escala única (mobile → desktop) */
  --fs-display: clamp(2rem, 1.35rem + 2.6vw, 3rem);       /* 32 → 48  · H1 */
  --fs-h2: clamp(1.75rem, 1.4rem + 1.4vw, 2.25rem);        /* 28 → 36  · títulos de seção */
  --fs-h3: clamp(1.1875rem, 1.1rem + 0.35vw, 1.375rem);    /* 19 → 22  · títulos de card/etapa */
  --fs-h4: 1.125rem;                                       /* 18       · rótulos, módulos */
  --fs-lead: clamp(1.0625rem, 1rem + 0.3vw, 1.25rem);      /* 17 → 20  · parágrafo de abertura */
  --fs-body: clamp(1rem, 0.97rem + 0.12vw, 1.0625rem);     /* 16 → 17  · texto corrido */
  --fs-small: 0.9375rem;                                   /* 15       · meta, rodapé */
  --fs-xs: 0.875rem;                                       /* 14       · links legais */

  --lh-title: 1.2;
  --lh-text: 1.65;

  /* Espaços e forma */
  --container: 75rem;
  --gutter: clamp(1rem, 0.6rem + 2vw, 2rem);
  --section-y: clamp(4rem, 3rem + 4vw, 6.5rem);
  --radius: 1.25rem;
  --radius-pill: 999px;

  /* Movimento */
  --ease-out: cubic-bezier(0.22, 0.61, 0.36, 1);
  --dur-reveal: 640ms;
  --stagger: 110ms;
}

/* ---------- 2. Base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: 1rem;
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  font-family: var(--ff-text);
  font-size: var(--fs-body);
  font-weight: 300;
  line-height: var(--lh-text);
  color: var(--c-text);
  background: var(--creme);
  overflow-x: hidden;
  overflow-x: clip; /* "clip" não cria contêiner de rolagem: evita o tremor do preço fixo no iOS */
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; height: auto; }
b, strong { font-weight: 700; }
em { font-style: italic; }

a { color: var(--c-link); text-decoration: underline; text-underline-offset: 0.18em; transition: color 0.2s ease; }
a:hover { color: var(--c-link-hover); }
:focus-visible { outline: 3px solid var(--roxo); outline-offset: 3px; }
.on-dark :focus-visible { outline-color: var(--acao); }

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--section-y); }
.section--creme { background: var(--creme); }
.section--verde { background: var(--verde); }
.section--roxo { background: var(--roxo); }

/* Link "Pular para o conteúdo": invisível até receber foco pelo teclado (Tab) */
.skip-link {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 100;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-pill);
  font-family: var(--ff-title);
  font-weight: 700;
  color: var(--preto);
  background: var(--acao);
  text-decoration: none;
  transform: translateY(-200%);
}
.skip-link:focus { transform: none; color: var(--preto); }
main:focus { outline: none; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}

/* ---------- 3. Tipografia ---------- */
.title {
  font-family: var(--ff-title);
  font-weight: 300;
  line-height: var(--lh-title);
  letter-spacing: -0.01em;
  color: var(--c-title);
  text-wrap: balance;
}
.title strong { font-weight: 700; color: var(--c-title-accent); }

.title--display { font-size: var(--fs-display); }
.title--h2 { font-size: var(--fs-h2); }

.label {
  font-family: var(--ff-title);
  font-size: var(--fs-h4);
  font-weight: 700;
  line-height: 1.35;
  color: var(--c-title);
}

.lead { font-size: var(--fs-lead); }
.center { text-align: center; }
.center .title, .title.center { margin-inline: auto; }

.prose > * + * { margin-top: 1.25em; }

/* rótulo pequeno acima de um título */
.kicker {
  display: block;
  margin-bottom: 0.75rem;
  font-size: var(--fs-h4);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Fundos escuros (verde e roxo): texto branco sólido; Bold dos títulos em creme */
.on-dark,
.on-dark .title,
.on-dark .label { color: var(--branco); }
.on-dark .title strong { color: var(--creme); }
.on-dark { --c-link: var(--branco); --c-link-hover: var(--creme); --c-line: rgba(246, 237, 218, 0.45); }

/* Lista com marcador da marca */
.list > li {
  position: relative;
  padding-left: 1.5rem;
}
.list > li + li { margin-top: 0.85rem; }
.list > li::before {
  content: "";
  position: absolute;
  left: 0.15rem;
  top: 0.62em;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--verde);
}
.on-dark .list > li::before { background: var(--acao); }

/* Lista com seta (Lucide "arrow-up-right") */
.list-seta > li {
  position: relative;
  padding-left: 2rem;
  line-height: 1.45;
}
.list-seta > li + li { margin-top: 1rem; }
.list-seta > li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.05em;
  width: 1.25rem;
  height: 1.25rem;
  background: var(--verde);
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 7h10v10'/%3E%3Cpath d='M7 17 17 7'/%3E%3C/svg%3E") center / contain no-repeat;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 7h10v10'/%3E%3Cpath d='M7 17 17 7'/%3E%3C/svg%3E") center / contain no-repeat;
}
.on-dark .list-seta > li::before { background: var(--creme); }

/* ---------- 4. Botões ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  min-height: 3.5rem;
  padding: 0.75rem 2rem;
  border: 0;
  border-radius: var(--radius-pill);
  font-family: var(--ff-title);
  font-size: 1.1875rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-wrap: balance;
  text-decoration: none;
  color: var(--preto);
  background: var(--acao);
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, transform 0.2s var(--ease-out);
}
button.btn {
  font-family: var(--ff-title);
  border: 0;
  margin: 0;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}
button.btn:focus-visible { outline: 3px solid var(--creme); outline-offset: 3px; box-shadow: 0 0 0 6px var(--preto); }
.btn:hover { color: var(--preto); background: var(--acao-hover); transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn svg { width: 1.375rem; height: 1.375rem; flex: none; fill: currentColor; }
.btn--small { min-height: 2.75rem; padding: 0.5rem 1.5rem; font-size: 1rem; }

/* botão secundário sobre fundo escuro (contorno creme) */
/* botão secundário sobre fundo claro (contorno verde) */
.btn--outline { color: var(--verde-escuro); background: transparent; box-shadow: inset 0 0 0 2px var(--verde); }
.btn--outline:hover { color: var(--branco); background: var(--verde); }
.btn--outline-claro { color: var(--branco); background: transparent; box-shadow: inset 0 0 0 2px var(--creme); }
.btn--outline-claro:hover { color: var(--verde-escuro); background: var(--creme); }

/* Ícones do sprite (Lucide, traço 1.5) */
.icon { width: 1.5rem; height: 1.5rem; flex: none; color: var(--verde); }
.on-dark .icon { color: var(--creme); }

/* ---------- 5. Hero (sem header: logos da parceria no topo do texto) ---------- */
.hero { padding-block: clamp(2.5rem, 1.5rem + 4vw, 5rem); }
.hero .container { display: grid; gap: clamp(2rem, 1rem + 4vw, 4.5rem); }
.hero__text { max-width: 46rem; }
.hero--com-arte .container { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); align-items: center; }
.hero__art { width: 100%; max-width: 40rem; margin-inline: auto; }
.hero__art img { width: 100%; }
.hero__text > * + * { margin-top: 1.5rem; }
.hero__text .lead { max-width: 34rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2.25rem !important; }

/* logos FB Uni + Avanti: mesma altura visual, separados por um fio vertical */
.hero__logos { display: flex; align-items: center; gap: clamp(1rem, 0.5rem + 1.5vw, 1.75rem); margin-bottom: clamp(1.75rem, 1rem + 2vw, 2.75rem); }
.hero__logos img { width: auto; height: clamp(2.5rem, 2rem + 1.4vw, 3.25rem); }
.hero__logos img + .hero__logos-sep + img { height: clamp(2.6rem, 2.1rem + 1.5vw, 3.4rem); }
.hero__logos-sep { align-self: stretch; width: 1px; background: var(--cinza-5); }
.on-dark .hero__logos-sep { background: var(--creme); }

/* foto do hero (provisória, até a ilustração): sangra até o topo, a base e a borda direita, sem triângulo */
.hero--foto { position: relative; overflow: hidden; overflow: clip; }
.hero--foto .container { grid-template-columns: 1fr; min-height: clamp(34rem, 26rem + 14vw, 42rem); align-items: center; }
.hero--foto .hero__text { width: min(36rem, calc(50vw - max(var(--gutter), (100vw - var(--container)) / 2) - 2.5rem)); }
.hero--foto .hero__art { position: absolute; top: 0; right: 0; bottom: 0; width: 48%; max-width: none; margin: 0; }
.hero--foto .hero__art img { width: 100%; height: 100%; object-fit: cover; object-position: 40% 50%; }

/* nível, turma, carga horária: etiquetas com contorno e ícone pequeno (2 x 2 quando a coluna é estreita) */
.hero__meta { display: grid; grid-template-columns: repeat(4, auto); justify-content: start; gap: 0.5rem; }
.hero__meta li {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.3125rem 0.75rem;
  border: 1px solid var(--verde);
  border-radius: var(--radius-pill);
  font-family: var(--ff-title);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.3;
  white-space: nowrap;
  color: var(--c-title);
}
.hero__meta-icon { display: inline-flex; flex: none; }
.hero__meta-icon svg { width: 1rem; height: 1rem; color: var(--verde); }
/* TURMA: sempre preenchida (roxo no hero claro) */
.hero__meta li.is-turma { border-color: var(--roxo); background: var(--roxo); color: var(--branco); }
.hero__meta li.is-turma svg { color: var(--creme); }
.on-dark .hero__meta li { border-color: var(--creme); color: var(--branco); }
.on-dark .hero__meta-icon svg { color: var(--creme); }

/* ---------- 6. Diferenciais: faixa fina roxa ---------- */
.features-wrap { padding-block: clamp(1.25rem, 1rem + 0.8vw, 1.75rem); }
.features {
  display: grid;
  grid-template-columns: repeat(5, auto);
  justify-content: space-between;
  align-items: center;
  gap: 1rem 1.5rem;
}
.features li { display: flex; align-items: center; gap: 0.625rem; line-height: 1.35; font-size: var(--fs-small); white-space: nowrap; color: var(--branco); }
.features .icon { width: 1.5rem; height: 1.5rem; }

/* ---------- 7. Seções com foto sangrando até a borda ---------- */
.split { position: relative; overflow: hidden; }
.split__photo {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 46%;
}
.split--foto-direita .split__photo { right: 0; }
.split--foto-esquerda .split__photo { left: 0; }
.split__photo img { width: 100%; height: 100%; object-fit: cover; }
.split__content { width: 50%; }
.split--foto-esquerda .split__content { margin-left: auto; }
.split--foto-direita .split__content { padding-right: clamp(1rem, 2vw, 2rem); }
/* triângulo "play" da marca na emenda da foto */
.split__photo::before {
  content: "";
  position: absolute;
  z-index: 1;
  top: 50%;
  width: 2.5rem;
  height: 3rem;
  transform: translateY(-50%);
}
.split--foto-direita .split__photo::before { left: -1px; clip-path: polygon(0 0, 100% 50%, 0 100%); }
.split--foto-esquerda .split__photo::before { right: -1px; clip-path: polygon(100% 0, 0 50%, 100% 100%); }
.section--verde .split__photo::before { background: var(--verde); }
.section--creme .split__photo::before { background: var(--creme); }
.split--sem-seta .split__photo::before { display: none; }
.about .split__photo img { object-position: 60% 50%; }
.split__content > .title { margin-bottom: clamp(1.75rem, 1.25rem + 1.5vw, 2.5rem); }

/* O que você vai aprender: 4 módulos em 2x2 */
.learn .split__photo img { object-position: 30% 50%; }
.learn__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.5rem 2rem; }
.learn__tag {
  display: inline-block;
  margin-bottom: 1.25rem;
  padding: 0.25rem 0.875rem;
  border-radius: var(--radius-pill);
  background: var(--creme);
  font-family: var(--ff-title);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1.5;
  color: var(--verde-escuro);
}

/* Público-alvo e pré-requisitos */
.reqs .split__photo img { object-position: 74% 30%; }
.reqs__lead { margin-bottom: clamp(2.5rem, 2rem + 2vw, 3.5rem); }
.reqs .split__content > .title + .lead { margin-top: -0.75rem; }
.reqs .split__content > #req-title { margin-bottom: 0.5rem; }
.reqs__list { display: grid; }
.req {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.25rem;
  align-items: center;
  padding-block: 1.25rem;
}
.req + .req { border-top: 1px solid var(--cinza-5); }
.req__icon {
  display: grid;
  place-items: center;
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 50%;
  background: var(--verde);
}
.req__icon svg { width: 1.5rem; height: 1.5rem; color: var(--creme); }
.req__text { font-family: var(--ff-title); font-size: var(--fs-h4); font-weight: 400; line-height: 1.4; color: var(--c-title); }

/* ---------- 8. Curso (roxo) + preço fixo ---------- */
.course { font-weight: 400; } /* Inter Regular sobre o roxo (muito texto) */
.course__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 21rem);
  grid-template-areas: "titulo preco" "modulos preco";
  column-gap: clamp(2.5rem, 1rem + 5vw, 6rem);
  align-items: start;
}
.course__title { grid-area: titulo; max-width: 48rem; margin-bottom: clamp(2.5rem, 2rem + 2vw, 3.5rem); }
.course__title .kicker { color: var(--creme); }
.course__modules { grid-area: modulos; border-top: 1px solid var(--c-line); }
/* preço: fora de caixa, alinhado ao topo do título e fixo durante a rolagem */
.price {
  grid-area: preco;
  position: sticky;
  top: 1.5rem;
  display: grid;
  gap: 1.25rem;
  scroll-margin-top: 1.5rem;
}
.meta { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.meta li {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 0.875rem;
  border: 1px solid var(--creme);
  border-radius: var(--radius-pill);
  font-size: var(--fs-small);
}
.meta .icon { width: 1.125rem; height: 1.125rem; color: var(--creme); }
/* TURMA no preço (roxo): preenchida em areia */
.meta li.is-turma { background: var(--creme); color: var(--roxo); font-weight: 700; }
.meta li.is-turma .icon { color: var(--roxo); }
.price__main { font-family: var(--ff-title); line-height: 1; padding-top: 1.25rem; border-top: 1px solid var(--creme); }
.price__prefix { display: block; margin-bottom: 0.375rem; font-size: var(--fs-h4); font-weight: 700; }
.price__value { font-size: clamp(2.75rem, 2rem + 2.5vw, 3.75rem); font-weight: 700; letter-spacing: -0.02em; }
.price__value small { font-size: 0.5em; }
.price__cash { margin-top: -0.5rem; color: var(--creme); }
.price .btn { width: 100%; }

.modulo { border-bottom: 1px solid var(--c-line); }
.modulo summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  padding: 1.25rem 0.25rem;
  cursor: pointer;
  list-style: none;
  font-family: var(--ff-title);
  font-size: var(--fs-h4);
  font-weight: 700;
  line-height: 1.4;
}
.modulo summary::-webkit-details-marker { display: none; }
.modulo summary::after {
  content: "";
  flex: none;
  width: 0.625rem;
  height: 0.625rem;
  margin-right: 0.375rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-25%) rotate(45deg);
  transition: transform 0.3s var(--ease-out);
}
.modulo[open] summary::after { transform: translateY(25%) rotate(-135deg); }
.modulo__body { padding: 0 0.25rem 1.75rem; }
.modulo__body > * + * { margin-top: 1em; }
.modulo__body .list { margin-top: 0.75rem; }
.modulo__body .list > li + li { margin-top: 0.4rem; }

/* ---------- 9. Outras formações ---------- */
.others .title { max-width: 44rem; margin-bottom: clamp(2rem, 1.5rem + 2vw, 3rem); }
.others__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1.25rem, 0.5rem + 2vw, 2rem); }
.other {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--creme);
  color: var(--c-text);
}
.other__img { width: 100%; aspect-ratio: 16 / 5; object-fit: cover; }
.other__body { display: flex; flex-direction: column; gap: 0.75rem; flex: 1; padding: clamp(1.5rem, 1rem + 1vw, 2rem); }
.other__kicker { font-family: var(--ff-title); font-size: var(--fs-xs); font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--verde); }
.other__title { font-family: var(--ff-title); font-size: var(--fs-h3); font-weight: 700; line-height: 1.3; color: var(--c-title); }
.other .btn { align-self: flex-start; margin-top: auto; }
.other__body p:not(.other__kicker) { margin-bottom: 0.75rem; }

/* ---------- 10. Certificação (roxo): arte 80% maior, alinhada ao topo do título e fixa na rolagem ---------- */
.certificate { overflow: clip; }
.certificate .container {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(2rem, 1rem + 2vw, 3rem);
  align-items: start;
}
.certificate__art {
  position: sticky;
  top: 2rem;
  justify-self: end;
  width: min(46.8rem, calc(100% + max(var(--gutter), (100vw - var(--container)) / 2) - 0.5rem));
}
.certificate__art img { width: 100%; }
.certificate .title { margin-bottom: 1.5rem; }

/* ---------- 11. Instagram ---------- */
.instagram { position: relative; overflow: visible; padding-block: 0; }
.instagram__mark-wrap { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.instagram__mark {
  position: absolute;
  right: -3rem;
  top: 1.5rem;
  width: 14rem;
  height: 14rem;
  color: var(--verde-escuro);
  fill: var(--verde-escuro);
  pointer-events: none;
}
.instagram__grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 1rem + 4vw, 4.5rem);
  align-items: end;
}
/* desktop: foto maior, colada na base e entrando 15% da altura dela na seção de cima */
.instagram__photo { position: relative; z-index: 2; margin-inline: auto; margin-top: -4.8rem; } /* 15% de 32rem */
.instagram__photo img { width: auto; height: 32rem; }
.instagram__grid > div { align-self: center; padding-block: 3rem; }
.instagram .title { margin-bottom: 1.5rem; }
.instagram__links { display: grid; justify-items: start; gap: 1rem; }
.instagram__links .btn { font-size: 1.0625rem; word-break: break-word; }

/* ---------- 12. Parceria: foto sangrando à direita (componente .split, sem triângulo) ---------- */
.about .title { margin-bottom: 1.75rem; }

/* ---------- 13. Rodapé (verde, logos brancos) ---------- */
.site-footer {
  padding-block: 4rem 2.5rem;
  background: var(--verde);
  color: var(--branco);
  font-size: var(--fs-small);
}
.site-footer__logos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.5rem 2.5rem;
  padding-bottom: 2.5rem;
  margin-bottom: 2.5rem;
  border-bottom: 1px solid rgba(246, 237, 218, 0.45);
}
.site-footer__logos img { width: auto; height: 2.75rem; }
.site-footer__logos img[src*="fbtech"] { height: 1.75rem; }
.site-footer__logos img[src*="atlantico"] { height: 3.25rem; }
.site-footer__logos img[src*="avanti"] { height: 3.5rem; }
.site-footer__main {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem 2.5rem;
}
.site-footer address { font-style: normal; }
.address-line { display: block; }
.site-footer a { color: var(--branco); }
.site-footer a:hover { color: var(--creme); }
.site-footer__contato { display: grid; gap: 0.25rem; }
.site-footer__social-title {
  font-family: var(--ff-title);
  font-size: 1rem;
  font-weight: 700;
  color: var(--branco);
}
.social { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.social a {
  display: inline-grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  border: 1px solid var(--creme);
  color: var(--branco);
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s var(--ease-out);
}
.social a:hover { background: var(--acao); border-color: var(--acao); color: var(--preto); transform: translateY(-2px); }
.social svg { width: 1.25rem; height: 1.25rem; fill: currentColor; color: currentColor; }
.site-footer__legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem 2rem;
  margin-top: 2.5rem;
  padding-top: 1.75rem;
  border-top: 1px solid rgba(246, 237, 218, 0.45);
  font-size: var(--fs-xs);
}
.site-footer__legal a { color: var(--branco); }
.site-footer__legal a:hover { color: var(--creme); }

/* ---------- 14. CTA flutuante + WhatsApp (mesma altura) ---------- */
.floating-bar {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 0.625rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(1rem);
  transition: opacity 0.3s var(--ease-out), transform 0.3s var(--ease-out), visibility 0s linear 0.3s;
}
.floating-bar.is-shown {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity 0.3s var(--ease-out), transform 0.3s var(--ease-out), visibility 0s;
}
.floating-bar__cta { min-height: 3.25rem; padding-inline: 1.75rem; box-shadow: 0 0.5rem 1.5rem rgba(38, 38, 38, 0.3); }
.floating-bar__whats {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 50%;
  background: #25d366;  /* verde oficial do WhatsApp */
  color: var(--branco);
  box-shadow: 0 0.5rem 1.5rem rgba(38, 38, 38, 0.3);
  transition: background-color 0.2s ease, transform 0.2s var(--ease-out);
}
.floating-bar__whats:hover { color: var(--branco); background: #1ebe5b; transform: translateY(-2px); }
.floating-bar__whats svg { width: 1.75rem; height: 1.75rem; fill: currentColor; }

/* ==========================================================================
   15. Animações de entrada
   - Só acontecem uma vez (sem animação de saída).
   - Itens que entram juntos na tela aparecem em sequência (stagger via --i).
   - Sem JS ou com "reduzir movimento": conteúdo sempre visível.
   ========================================================================== */
@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] {
    opacity: 0;
    transform: translate3d(0, 1.5rem, 0);
    transition:
      opacity var(--dur-reveal) var(--ease-out),
      transform var(--dur-reveal) var(--ease-out);
    transition-delay: calc(var(--i, 0) * var(--stagger));
  }
  .js [data-reveal="fade"] { transform: none; }
  .js [data-reveal="zoom"] { transform: scale(0.94); }
  .js [data-reveal].is-visible { opacity: 1; transform: none; }

  /* Módulos: abre/fecha com altura animada nos navegadores que suportam */
  @supports (interpolate-size: allow-keywords) {
    .modulo { interpolate-size: allow-keywords; }
    .modulo::details-content {
      block-size: 0;
      overflow: hidden;
      transition: block-size 0.35s var(--ease-out), content-visibility 0.35s allow-discrete;
    }
    .modulo[open]::details-content { block-size: auto; }
  }
}

/* ---------- 16. Responsivo ---------- */
/* selos do hero em 2 x 2 quando a coluna de texto fica estreita */
@media (min-width: 861px) and (max-width: 1180px), (max-width: 520px) {
  .hero__meta { grid-template-columns: repeat(2, auto); }
}

@media (max-width: 1024px) {
  .features { grid-template-columns: repeat(3, auto); justify-content: start; gap: 1rem 2rem; }
  .features li { white-space: normal; }
  .learn__grid { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  .hero .container,
  .certificate .container,
  .instagram__grid,
  .about .container { grid-template-columns: 1fr; }
  .hero--com-arte .container { grid-template-columns: 1fr; }
  .hero { overflow: hidden; overflow: clip; }
  /* hero: foto embaixo do texto, colada nas bordas e na base */
  .hero--foto { padding-bottom: 0; }
  .hero--foto .container { min-height: 0; }
  .hero--foto .hero__text { width: auto; }
  .hero--foto .hero__art { position: relative; width: auto; height: 18rem; margin-inline: calc(var(--gutter) * -1); }
  .certificate__art { position: static; justify-self: start; width: min(100%, 34rem); }
  /* celular/tablet: seção mais baixa, foto à direita colada na base, subindo até a linha do 2º botão */
  .instagram { overflow: hidden; }
  .instagram__grid { display: block; min-height: 22.5rem; }
  .instagram__grid > div { position: relative; z-index: 3; padding-block: 2.5rem; }
  .instagram__photo { position: absolute; right: 0; bottom: 0; margin: 0; }
  .instagram__photo img { height: 12.5rem; }

  /* foto no topo da seção, conteúdo abaixo */
  .split { padding-top: 0; }
  .split__photo { position: relative; width: auto; height: 16rem; margin-bottom: var(--section-y); }
  .split__photo::before { display: none; }
  .split__content { width: auto; padding-right: 0 !important; }

  /* curso: preço vira barra compacta fixa no topo da tela */
  .course__grid { grid-template-columns: 1fr; grid-template-areas: "titulo" "preco" "modulos"; }
  .course__title { margin-bottom: 1.5rem; }
  .price {
    top: 0;
    z-index: 20;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 0.25rem 1rem;
    margin: 0 calc(var(--gutter) * -1) 2rem;
    padding: 1.5rem var(--gutter) 1rem; /* texto mais afastado do topo quando a barra fixa */
    background: var(--roxo);
    box-shadow: 0 0.5rem 1rem -0.75rem rgba(38, 38, 38, 0.6);
    transform: translateZ(0); /* camada própria: sem tremor ao fixar */
    will-change: transform;
  }
  .price .meta { grid-column: 1 / -1; }
  .price__main { grid-column: 1; padding-top: 0; border-top: 0; }
  .price__prefix { margin-bottom: 0.125rem; font-size: 0.875rem; }
  .price__value { font-size: 1.875rem; white-space: nowrap; }
  .price__cash { grid-column: 1; margin-top: 0; font-size: var(--fs-small); }
  .price .btn { grid-column: 2; grid-row: 2 / span 2; align-self: end; width: auto; min-height: 3rem; padding-inline: 1.25rem; font-size: 1.0625rem; }

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

}

@media (max-width: 600px) {
  .hero__actions .btn { width: 100%; }
  .btn { padding-inline: 1.25rem; }

  .hero__meta li { font-size: 0.75rem; padding-inline: 0.625rem; }

  /* diferenciais: um abaixo do outro, ícone ao lado do texto */
  /* faixa: um tópico por linha, com respiro */
  .features-wrap { padding-block: 1.75rem; }
  .features { grid-template-columns: 1fr; gap: 1.125rem; }
  .features li { font-size: var(--fs-small); white-space: normal; }

  .price .meta { display: none; }
  .price .btn { grid-row: 1 / span 2; } /* sem os selos: botão alinhado à base de "ou R$ 998,99 à vista" */

  .modulo summary { font-size: 1.0625rem; }

  .instagram__mark { width: 10rem; height: 10rem; right: -3rem; top: auto; bottom: 2rem; }
  .instagram__links .btn { font-size: 0.9375rem; padding-inline: 1rem; }

  .site-footer__logos { justify-content: center; gap: 1.5rem 2rem; }
  .site-footer__logos img[src*="fbuni"],
  .site-footer__logos img[src*="fbtech"] { width: 8.5rem; height: auto; } /* FB Uni e FB Tech com a mesma largura */
  .site-footer__main { flex-direction: column; align-items: center; text-align: center; }
  .social { justify-content: center; }
  .site-footer__legal { flex-direction: column; align-items: center; }

  .floating-bar { right: 1rem; left: 1rem; bottom: 1rem; }
  .floating-bar__cta { flex: 1; }
}

@media (max-width: 380px) {
  .hero__meta li { font-size: 0.6875rem; letter-spacing: 0.02em; }
}

/* ==========================================================================
   Popup do Yayforms sempre à frente
   - O popup (.yf-v1-popup) fica pré-carregado e invisível dentro de .yf-host;
     no clique a camada recebe .is-open.
   - Enquanto aberto: fica na camada mais alta e os elementos fixos/animados
     da página (barra flutuante, preço fixo, animações) saem da frente.
   ========================================================================== */
.yf-v1-popup {
  z-index: 2147483647 !important;
  isolation: isolate;
  transform: translateZ(0);
}
body:has(.yf-host.is-open) .floating-bar,
body:has(.yf-host.is-open) .skip-link { display: none !important; }
body:has(.yf-host.is-open) .price,
body:has(.yf-host.is-open) [data-reveal] {
  z-index: auto !important;
  transform: none !important;
  will-change: auto !important;
}
