/*
 * pages/index.css — Estilos EXCLUSIVOS da landing page.
 *
 * Convenções:
 *   .hm-*                → componentes novos da home (home-main)
 *   .stats, .cta-final   → seções legadas mantidas (nomes sem prefixo)
 *
 * Reutilizáveis (.fw-section*, .fw-carousel*, .btn-fw, .bg-s) vivem em
 * theme.css. Blocos de categoria (.fw-catblock-*) em components/catblock.css.
 */

/* ═══════════════════════════════════════════════════
   1. HERO SWIPER — cards de curso em destaque
   ═══════════════════════════════════════════════════ */
.pg-index .hm-hero {
  padding: 28px 0 24px;
  background:
    radial-gradient(1000px 400px at 100% -10%, rgba(109, 62, 196, .12), transparent 60%),
    radial-gradient(800px 340px at 0% 110%, rgba(69, 83, 181, .10), transparent 60%),
    var(--g50);
}
.pg-index .hm-hero-swiper { padding-bottom: 36px; }
.pg-index .hm-hero-swiper .swiper-pagination-bullet-active { background: var(--g0); }
/* Mantém todos os slides com a mesma altura (alinhamento do Swiper) */
.pg-index .hm-hero-swiper .swiper-wrapper { align-items: stretch; }
.pg-index .hm-hero-swiper .swiper-slide { height: auto; display: flex; }
.pg-index .hm-hero-swiper .swiper-slide > .hm-hero-card { width: 100%; }

.pg-index .hm-hero-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 32px;
  align-items: stretch;
  /* Fallback default — cada slide sobrescreve via .is-tema-* abaixo */
  background: linear-gradient(135deg, var(--blue) 0%, var(--purple) 100%);
  color: #fff;
  border-radius: var(--r);
  padding: 40px 48px;
  overflow: hidden;
  /* Altura fixa garante uniformidade entre slides */
  height: 420px;
}
.pg-index .hm-hero-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(600px 280px at 90% 10%, rgba(255, 255, 255, .18), transparent 55%),
    radial-gradient(500px 240px at 10% 100%, rgba(255, 255, 255, .10), transparent 60%);
  pointer-events: none;
}

/* Notebook com pouca altura útil — dois níveis de aperto.
   GA do projeto mostra notebook 1366×768 como resolução desktop nº 1.
   Mas a viewport útil varia muito conforme o setup do navegador
   (favoritos, abas, DevTools), então aplicamos:

   - Nível 1 (≤800px de altura): aperto LEVE — encolhe um pouco,
     mantém a composição visual do hero. Pega usuários de 1080p com
     barras de favoritos/abas (cenário comum).
   - Nível 2 (≤700px de altura): aperto FORTE — esconde descrição,
     reduz tudo, prioriza fazer caber a barra de categorias acima da
     dobra. Pega notebook 1366×768 puro. */

/* ── Nível 1: ajustes leves para viewport ≤800px ──────── */
@media (min-width: 992px) and (max-height: 800px) {
  .pg-index .hm-hero { padding: 20px 0 16px; }
  .pg-index .hm-hero-card {
    height: 360px;
    padding: 28px 40px;
  }
  .pg-index .hm-hero-title { font-size: 2rem; }
  .pg-index .hm-hero-sub { font-size: .95rem; }
}

/* ── Nível 2: aperto forte para viewport ≤700px ────────
   (notebook 1366×768 puro, ou qualquer setup muito carregado) */
@media (min-width: 992px) and (max-height: 700px) {
  .pg-index .hm-hero { padding: 14px 0 10px; }
  .pg-index .hm-hero-swiper { padding-bottom: 24px; }
  .pg-index .hm-hero-card {
    height: 270px;
    padding: 20px 32px;
    gap: 12px;
  }
  .pg-index .hm-hero-copy { gap: 10px; }
  .pg-index .hm-hero-eyebrow { padding: 4px 12px; font-size: .7rem; }
  .pg-index .hm-hero-title { font-size: 1.6rem; line-height: 1.1; }
  /* Sub é redundante com título + meta nessa altura; remover libera
     ~30px e faz a barra de categorias caber inteira acima da dobra. */
  .pg-index .hm-hero-sub-row,
  .pg-index .hm-hero-sub { display: none; }
  .pg-index .hm-hero-meta { gap: 6px 18px; margin: 0; }
  .pg-index .hm-hero-meta li { font-size: .85rem; }
  .pg-index .hm-hero-meta li strong { font-size: .95rem; }
  .pg-index .hm-hero-actions { margin-top: 0; gap: 12px; }
  .pg-index .hm-hero-btn {
    padding: 10px 20px;
    min-height: 42px;
    font-size: .9rem;
  }
  .pg-index .hm-hero-note { font-size: .78rem; }
}

/* ─── Variantes de cor por slide ─── */
.pg-index .hm-hero-card.is-tema-indigo {
  background: linear-gradient(135deg, #4553b5 0%, #6d3ec4 100%);
}
.pg-index .hm-hero-card.is-tema-teal {
  background: linear-gradient(135deg, #0d6b66 0%, #1fa0a4 60%, #2f9e5a 100%);
}
.pg-index .hm-hero-card.is-tema-sunset {
  background: linear-gradient(135deg, #b0255c 0%, #d4620a 60%, #e8a238 100%);
}

.pg-index .hm-hero-copy {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
  min-width: 0;
}
.pg-index .hm-hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, .18);
  color: #fff;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .3px;
  align-self: flex-start;
  backdrop-filter: blur(4px);
}
.pg-index .hm-hero-eyebrow i { color: var(--yellow); }
.pg-index .hm-hero-title {
  color: #fff;
  font-size: 2.4rem;
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -.5px;
  margin: 0;
}
/* Thumb embutido ao lado da descrição: só aparece no mobile. */
.pg-index .hm-hero-sub-row { display: contents; }
.pg-index .hm-hero-thumb { display: none; }
.pg-index .hm-hero-sub {
  color: rgba(255, 255, 255, .92);
  font-size: 1rem;
  line-height: 1.55;
  margin: 0;
  max-width: 560px;
}
.pg-index .hm-hero-meta {
  list-style: none;
  padding: 0;
  margin: 8px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 18px 28px;
  color: #fff;
}
.pg-index .hm-hero-meta li {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  font-size: .95rem;
}
.pg-index .hm-hero-meta li strong { font-weight: 800; font-size: 1.1rem; }
.pg-index .hm-hero-meta li small { font-size: .8rem; color: rgba(255, 255, 255, .8); font-weight: 600; }
.pg-index .hm-hero-meta li i { color: var(--yellow); font-size: 1rem; }
.pg-index .hm-hero-meta li:nth-child(2) i,
.pg-index .hm-hero-meta li:nth-child(3) i { color: rgba(255, 255, 255, .9); }

.pg-index .hm-hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 8px;
}
.pg-index .hm-hero-btn {
  padding: 14px 26px;
  min-height: 52px;
  font-size: .95rem;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .15);
}
.pg-index .hm-hero-note {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: rgba(255, 255, 255, .92);
  font-size: .82rem;
  font-weight: 700;
}
.pg-index .hm-hero-note i { color: #8ceab0; }

.pg-index .hm-hero-img {
  position: relative;
  z-index: 1;
  border-radius: var(--r-sm);
  overflow: hidden;
  height: 100%;
  width: 100%;
  display: block;
  background: rgba(0, 0, 0, .08);
}
.pg-index .hm-hero-img img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
.pg-index .hm-hero-img-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--g0);
  color: var(--blue);
  padding: 6px 12px;
  border-radius: 999px;
  font-size: .75rem;
  font-weight: 800;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .15);
}
.pg-index .hm-hero-img-badge i { font-size: .78rem; }

/* ═══════════════════════════════════════════════════
   2. CATEGORIAS (pills horizontais)
   ═══════════════════════════════════════════════════ */
.pg-index .hm-cats {
  padding: 14px 0 18px;
  background: var(--g0);
  border-bottom: 1px solid var(--g100);
}
.pg-index .hm-cats-scroll {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  padding: 4px 2px;
  scrollbar-width: none;
  cursor: grab;
  user-select: none;
}
.pg-index .hm-cats-scroll.is-dragging { cursor: grabbing; scroll-snap-type: none; }
.pg-index .hm-cats-scroll.is-dragging .hm-cat-pill { pointer-events: none; }
.pg-index .hm-cats-scroll::-webkit-scrollbar { display: none; }
.pg-index .hm-cat-pill {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border: 1.5px solid var(--g200);
  border-radius: 999px;
  background: var(--g0);
  color: var(--g800);
  font-size: .85rem;
  font-weight: 700;
  white-space: nowrap;
  text-decoration: none;
  transition: all .15s ease;
  scroll-snap-align: start;
}
.pg-index .hm-cat-pill i { color: var(--blue); font-size: 1rem; }
.pg-index .hm-cat-pill:hover,
.pg-index .hm-cat-pill:focus-visible {
  border-color: var(--blue);
  background: var(--blue-bg);
  color: var(--blue);
}

/* ═══════════════════════════════════════════════════
   3. SEÇÕES DE CURSOS (header + swiper/grid + cta)
   ═══════════════════════════════════════════════════ */
.pg-index .hm-section-cta {
  display: flex;
  justify-content: center;
  margin-top: 48px;
}
@media (max-width: 768px) {
  .pg-index .hm-section-cta { margin-top: 36px; }
}

/* ─── Seção "Cursos mais procurados" ─── */
.pg-index .hm-procurados-head {
  text-align: center;
  margin: 0 auto 28px;
  max-width: 720px;
}
.pg-index .hm-procurados-kicker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(212, 98, 10, .12), rgba(201, 138, 8, .14));
  color: var(--orange);
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .6px;
  text-transform: uppercase;
  margin-bottom: 12px;
  border: 1px solid rgba(212, 98, 10, .18);
}
.pg-index .hm-procurados-kicker i { color: var(--orange); font-size: .82rem; }
.pg-index .hm-procurados-title {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.2;
  color: var(--g900);
  letter-spacing: -.5px;
  margin: 0 0 10px;
}
.pg-index .hm-procurados-title span {
  background: linear-gradient(135deg, var(--blue) 0%, var(--purple) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.pg-index .hm-procurados-desc {
  font-size: 1rem;
  line-height: 1.55;
  color: var(--g600);
  margin: 0;
}

/* Garante que os cards dentro do .fw-carousel-slide esticam para
   uniformizar alturas (mesmo padrão do curso-detalhe.php). */
.pg-index .hm-procurados-carousel .fw-carousel-slide { height: auto; }
.pg-index .hm-procurados-carousel .fw-carousel-slide > .fw-card-curso { height: 100%; }

/* ═══════════════════════════════════════════════════
   4. COMO FUNCIONA (premium compacto)
   ═══════════════════════════════════════════════════ */
.pg-index .hm-steps-section {
  padding: 28px 0 30px;
  background:
    radial-gradient(600px 220px at 0% 0%, rgba(69, 83, 181, .05), transparent 60%),
    radial-gradient(600px 220px at 100% 100%, rgba(109, 62, 196, .05), transparent 60%),
    var(--g0);
  border-top: 1px solid var(--g100);
  border-bottom: 1px solid var(--g100);
}
.pg-index .hm-steps-head {
  text-align: center;
  margin: 0 auto 20px;
  max-width: 600px;
}
.pg-index .hm-steps-kicker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--blue-bg);
  color: var(--blue);
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .6px;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.pg-index .hm-steps-kicker i { color: var(--blue); font-size: .78rem; }
.pg-index .hm-steps-title {
  font-size: 1.25rem;
  font-weight: 800;
  line-height: 1.3;
  color: var(--g900);
  letter-spacing: -.2px;
  margin: 0;
}
.pg-index .hm-steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  position: relative;
}
/* Linha tracejada conectando os 4 passos */
.pg-index .hm-steps::before {
  content: "";
  position: absolute;
  top: 30px;
  left: calc(12.5% + 24px);
  right: calc(12.5% + 24px);
  height: 2px;
  background-image: linear-gradient(90deg, var(--g200) 50%, transparent 50%);
  background-size: 8px 2px;
  background-repeat: repeat-x;
  pointer-events: none;
  z-index: 0;
}
.pg-index .hm-step {
  position: relative;
  z-index: 1;
  background: var(--g0);
  border: 1px solid var(--g100);
  border-radius: var(--r-sm);
  padding: 16px 14px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.pg-index .hm-step:hover {
  transform: translateY(-2px);
  border-color: var(--blue-bg);
  box-shadow: 0 8px 20px rgba(26, 29, 43, .07);
}
.pg-index .hm-step-num {
  position: absolute;
  top: -8px;
  right: 12px;
  font-size: .66rem;
  font-weight: 800;
  letter-spacing: .4px;
  color: var(--g400);
  background: var(--g0);
  padding: 1px 7px;
  border-radius: 999px;
  border: 1px solid var(--g100);
}
.pg-index .hm-step-icon {
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue-bg) 0%, #f2edfc 100%);
  color: var(--blue);
  font-size: 1.1rem;
}
.pg-index .hm-step-title {
  font-size: .88rem;
  font-weight: 800;
  color: var(--g900);
  line-height: 1.25;
  flex: 1;
  min-width: 0;
}
.pg-index .hm-step-desc {
  display: none; /* desc removido do visual compacto — o title já comunica */
}

/* ═══════════════════════════════════════════════════
   5. NÚMEROS (stats premium compacto)
   ═══════════════════════════════════════════════════ */
.pg-index .stats {
  position: relative;
  background:
    radial-gradient(500px 220px at 10% 0%, rgba(69, 83, 181, .22), transparent 55%),
    radial-gradient(500px 220px at 90% 100%, rgba(109, 62, 196, .22), transparent 55%),
    linear-gradient(135deg, #12152a 0%, #1a1d2b 50%, #262a40 100%);
  color: #fff;
  padding: 36px 24px;
  overflow: hidden;
}
.pg-index .stats::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .03) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
  mask-image: radial-gradient(800px 400px at 50% 50%, #000, transparent 70%);
  -webkit-mask-image: radial-gradient(800px 400px at 50% 50%, #000, transparent 70%);
}
.pg-index .stats-inner {
  position: relative;
  max-width: var(--container-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(240px, 1fr) 2fr;
  gap: 32px;
  align-items: center;
}
.pg-index .stats-head {
  text-align: left;
  margin: 0;
  max-width: none;
}
.pg-index .stats-kicker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .08);
  color: #fff;
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .6px;
  text-transform: uppercase;
  margin-bottom: 10px;
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, .08);
}
.pg-index .stats-kicker i { color: var(--yellow); font-size: .78rem; }
.pg-index .stats-lead {
  font-size: .88rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, .72);
  margin: 0;
}
.pg-index .stats-grid {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.pg-index .stat-card {
  position: relative;
  background: linear-gradient(180deg, rgba(255, 255, 255, .06) 0%, rgba(255, 255, 255, .02) 100%);
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: var(--r-sm);
  padding: 16px 16px 14px;
  display: grid;
  grid-template-columns: 40px 1fr;
  grid-template-rows: auto auto;
  column-gap: 12px;
  row-gap: 2px;
  align-items: center;
  overflow: hidden;
  transition: transform .25s ease, border-color .25s ease;
}
.pg-index .stat-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, .2);
}
.pg-index .stat-icon {
  grid-row: 1 / span 2;
  font-size: 1.15rem;
  color: var(--yellow);
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(201, 138, 8, .14);
  border: 1px solid rgba(201, 138, 8, .28);
}
.pg-index .stat-card:nth-child(2) .stat-icon {
  color: #8eb0ff;
  background: rgba(69, 83, 181, .18);
  border-color: rgba(142, 176, 255, .3);
}
.pg-index .stat-card:nth-child(3) .stat-icon {
  color: #8ceab0;
  background: rgba(47, 158, 90, .16);
  border-color: rgba(140, 234, 176, .3);
}
.pg-index .stat-value { line-height: 1; }
.pg-index .stat-num {
  display: inline-block;
  font-size: 1.7rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.5px;
  background: linear-gradient(135deg, #ffffff 0%, #c4c8dc 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.pg-index .stat-label {
  font-size: .78rem;
  color: rgba(255, 255, 255, .82);
  font-weight: 700;
  line-height: 1.2;
}
.pg-index .stat-sub {
  display: none; /* sublinha oculta no visual compacto */
}

/* ═══════════════════════════════════════════════════
   6. BLOCOS DE CATEGORIA — visual movido para
   assets/css/components/catblock.css (.fw-catblock-*).
   ═══════════════════════════════════════════════════ */

/* ═══════════════════════════════════════════════════
   7. DEPOIMENTOS — premium, sem setas (mobile-first)
   ═══════════════════════════════════════════════════ */
.pg-index .hm-testi-section {
  background:
    radial-gradient(1000px 480px at 85% -10%, rgba(99, 102, 241, .08), transparent 60%),
    radial-gradient(900px 420px at 10% 110%, rgba(20, 184, 166, .06), transparent 60%),
    var(--g0);
  border-top: 1px solid var(--g100);
  border-bottom: 1px solid var(--g100);
}

.pg-index .hm-testi-head {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 36px;
}
.pg-index .hm-testi-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--blue-bg);
  color: var(--blue);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .4px;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.pg-index .hm-testi-title {
  font-size: clamp(1.55rem, 2.6vw, 2.15rem);
  font-weight: 800;
  line-height: 1.2;
  color: var(--g900);
  margin: 0 0 10px;
}
.pg-index .hm-testi-title span {
  background: linear-gradient(120deg, var(--blue), #8b5cf6);
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
}
.pg-index .hm-testi-desc {
  font-size: .98rem;
  color: var(--g600, #6b7280);
  margin: 0;
}

.pg-index .hm-testi-swiper { padding: 8px 4px 52px; }
.pg-index .hm-testi-swiper .swiper-wrapper { align-items: stretch; }
.pg-index .hm-testi-swiper .swiper-slide { height: auto; display: flex; }

.pg-index .hm-testi-card {
  position: relative;
  background: var(--g0);
  border: 1px solid var(--g100);
  border-radius: 18px;
  padding: 28px 24px 22px;
  box-shadow: 0 4px 16px rgba(26, 29, 43, .04);
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 100%;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.pg-index .hm-testi-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 18px;
  padding: 1px;
  background: linear-gradient(135deg, rgba(99, 102, 241, .35), rgba(20, 184, 166, .25));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
          mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  opacity: 0;
  transition: opacity .25s ease;
  pointer-events: none;
}
.pg-index .hm-testi-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 32px rgba(26, 29, 43, .09);
  border-color: transparent;
}
.pg-index .hm-testi-card:hover::before { opacity: 1; }

.pg-index .hm-testi-mark {
  position: absolute;
  top: 10px;
  right: 16px;
  font-size: 3.4rem;
  line-height: 1;
  color: var(--blue);
  opacity: .1;
  pointer-events: none;
}

.pg-index .hm-testi-stars {
  display: inline-flex;
  gap: 2px;
  color: #f59e0b;
  font-size: .95rem;
}

.pg-index .hm-testi-quote {
  font-size: 1rem;
  line-height: 1.65;
  color: var(--g800);
  font-weight: 500;
  margin: 0;
  flex: 1;
  quotes: "\201C" "\201D";
}
.pg-index .hm-testi-quote::before { content: open-quote; margin-right: 2px; }
.pg-index .hm-testi-quote::after  { content: close-quote; margin-left: 2px; }

.pg-index .hm-testi-author {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 14px;
  border-top: 1px dashed var(--g100);
}
.pg-index .hm-testi-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), #8b5cf6);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: .88rem;
  letter-spacing: .5px;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(99, 102, 241, .28);
}
.pg-index .hm-testi-meta { min-width: 0; }
.pg-index .hm-testi-name {
  font-size: .95rem;
  font-weight: 800;
  color: var(--g900);
  line-height: 1.25;
}
.pg-index .hm-testi-course {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .78rem;
  color: var(--blue);
  font-weight: 600;
  margin-top: 2px;
}
.pg-index .hm-testi-course i { font-size: .9rem; }

.pg-index .hm-testi-pagination {
  position: static !important;
  margin-top: 8px;
  display: flex;
  justify-content: center;
  gap: 6px;
}
.pg-index .hm-testi-pagination .swiper-pagination-bullet {
  width: 8px;
  height: 8px;
  background: var(--g200, #e5e7eb);
  opacity: 1;
  transition: width .25s ease, background .25s ease;
}
.pg-index .hm-testi-pagination .swiper-pagination-bullet-active {
  width: 24px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--blue), #8b5cf6);
}

/* ═══════════════════════════════════════════════════
   8. TRUST BAR
   ═══════════════════════════════════════════════════ */
.pg-index .hm-trust {
  padding: 28px 0;
  background: var(--g50);
  border-top: 1px solid var(--g100);
  border-bottom: 1px solid var(--g100);
}
.pg-index .hm-trust-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 16px 40px;
}
.pg-index .hm-trust-item {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--g800);
}
.pg-index .hm-trust-item i {
  font-size: 1.8rem;
  color: var(--blue);
  flex: 0 0 auto;
}
.pg-index .hm-trust-item strong {
  display: block;
  font-size: .88rem;
  font-weight: 800;
  color: var(--g900);
  line-height: 1.2;
}
.pg-index .hm-trust-item small {
  display: block;
  font-size: .75rem;
  color: var(--g400);
  font-weight: 600;
  margin-top: 2px;
}

/* ═══════════════════════════════════════════════════
   9. CTA FINAL
   ═══════════════════════════════════════════════════ */
.pg-index .cta-final {
  background: linear-gradient(135deg, var(--blue) 0%, var(--purple) 100%);
  color: #fff;
  padding: 64px 24px;
  text-align: center;
}
.pg-index .cta-final-inner { max-width: 640px; margin: 0 auto; }
.pg-index .cta-final h2 {
  color: #fff;
  font-size: 2rem;
  line-height: 1.2;
  margin-bottom: 12px;
}
.pg-index .cta-final p {
  color: rgba(255, 255, 255, .88);
  font-size: 1rem;
  margin-bottom: 22px;
}
.pg-index .cta-final-perks {
  list-style: none;
  padding: 0;
  margin: 0 0 26px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 22px;
}
.pg-index .cta-final-perks li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #fff;
  font-weight: 700;
  font-size: .9rem;
}
.pg-index .cta-final-perks i { color: #8ceab0; }
.pg-index .cta-final .btn-fw {
  padding: 14px 28px;
  min-height: 52px;
  font-size: .95rem;
}
.pg-index .cta-final small {
  display: block;
  margin-top: 14px;
  font-size: .82rem;
  color: rgba(255, 255, 255, .8);
}

/* ═══════════════════════════════════════════════════
   RESPONSIVO
   ═══════════════════════════════════════════════════ */
@media (max-width: 991.98px) {
  /* Hero */
  .pg-index .hm-hero { padding: 20px 0 20px; }
  .pg-index .hm-hero-card {
    grid-template-columns: 1fr;
    padding: 28px 24px;
    height: auto;
    min-height: 520px;
    gap: 22px;
  }
  .pg-index .hm-hero-img {
    order: -1;
    height: 200px;
    flex: 0 0 200px;
  }
  .pg-index .hm-hero-title { font-size: 1.8rem; }
  .pg-index .hm-hero-sub { font-size: .95rem; }
  .pg-index .hm-hero-meta { gap: 12px 20px; }
  .pg-index .hm-hero-meta li { font-size: .88rem; }
  .pg-index .hm-hero-meta li strong { font-size: 1rem; }

  /* Cursos mais procurados — tablet */
  .pg-index .hm-procurados-title { font-size: 1.55rem; }
  .pg-index .hm-procurados-desc { font-size: .95rem; }

  /* Como funciona — tablet: 2x2 compacto */
  .pg-index .hm-steps-section { padding: 24px 0 28px; }
  .pg-index .hm-steps-title { font-size: 1.15rem; }
  .pg-index .hm-steps { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .pg-index .hm-steps::before { display: none; }

  /* Stats — tablet: empilha head acima + 3 cards */
  .pg-index .stats { padding: 32px 24px; }
  .pg-index .stats-inner {
    grid-template-columns: 1fr;
    gap: 18px;
    text-align: center;
  }
  .pg-index .stats-head { text-align: center; }
  .pg-index .stats-grid { grid-template-columns: repeat(3, 1fr); gap: 10px; }

  /* Depoimentos */
  .pg-index .hm-testi-title { font-size: 1.55rem; }

  /* Trust bar */
  .pg-index .hm-trust { padding: 20px 0; }
  .pg-index .hm-trust-inner {
    justify-content: flex-start;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 24px;
    padding: 0 20px;
    scrollbar-width: none;
  }
  .pg-index .hm-trust-inner::-webkit-scrollbar { display: none; }
  .pg-index .hm-trust-item { flex: 0 0 auto; }
  .pg-index .hm-trust-item i { font-size: 1.5rem; }
}

@media (max-width: 575.98px) {
  /* Hero mobile — layout híbrido: eyebrow + (thumb 72px | título) lado a lado,
     depois descrição (2 linhas), meta em 3 colunas e CTA. Imagem grande
     removida. Padding interno generoso para respiro. */
  .pg-index .hm-hero { padding: 12px 0 6px; }
  .pg-index .hm-hero-swiper { padding-bottom: 38px; }
  .pg-index .hm-hero-swiper .swiper-pagination { bottom: 8px; }
  .pg-index .hm-hero-card {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 22px 20px 20px;
    border-radius: var(--r);
    min-height: 0;
    height: auto;
    overflow: hidden;
  }

  /* Imagem grande do rodapé some no mobile; usamos um thumb pequeno embutido */
  .pg-index .hm-hero-img { display: none; }

  /* Copy em coluna */
  .pg-index .hm-hero-copy {
    padding: 0;
    gap: 12px;
  }

  /* Eyebrow: respiro do topo (não fica "colado") */
  .pg-index .hm-hero-eyebrow {
    padding: 5px 12px;
    font-size: .72rem;
    align-self: flex-start;
  }

  /* Título: um pouco menor que o tablet (1.8rem) */
  .pg-index .hm-hero-title { font-size: 1.55rem; margin: 0; }

  /* Linha da descrição: thumb pequeno à esquerda + descrição à direita */
  .pg-index .hm-hero-sub-row {
    display: flex;
    align-items: center;
    gap: 14px;
  }
  .pg-index .hm-hero-thumb {
    display: block;
    flex: 0 0 84px;
    width: 84px;
    height: 84px;
    border-radius: var(--r-sm);
    overflow: hidden;
    background: rgba(0, 0, 0, .12);
    box-shadow: 0 2px 8px rgba(0, 0, 0, .2);
  }
  .pg-index .hm-hero-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }

  /* Descrição: 3 linhas ao lado do thumb */
  .pg-index .hm-hero-sub {
    flex: 1;
    min-width: 0;
    font-size: .88rem;
    line-height: 1.5;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  /* Meta em 3 colunas iguais, centralizadas, com ícone acima */
  .pg-index .hm-hero-meta {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4px;
    margin-top: 2px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, .2);
  }
  .pg-index .hm-hero-meta li {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 3px;
    font-size: .78rem;
  }
  .pg-index .hm-hero-meta li i {
    display: inline-block;
    font-size: 1.05rem;
    margin-bottom: 2px;
  }
  .pg-index .hm-hero-meta li strong { font-size: 1.05rem; line-height: 1.1; }
  .pg-index .hm-hero-meta li small {
    display: block;
    font-size: .72rem;
    color: rgba(255, 255, 255, .75);
    font-weight: 600;
    line-height: 1.25;
  }

  /* CTA */
  .pg-index .hm-hero-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    margin: 2px 0 0;
  }
  .pg-index .hm-hero-btn {
    width: 100%;
    justify-content: center;
    min-height: 48px;
    padding: 12px 18px;
    font-size: .9rem;
  }
  .pg-index .hm-hero-note {
    width: 100%;
    justify-content: flex-start;
    font-size: .75rem;
    font-weight: 600;
  }

  /* Categorias pills */
  .pg-index .hm-cats { padding: 10px 0 12px; }
  .pg-index .hm-cat-pill { padding: 9px 14px; font-size: .8rem; }

  /* Cursos mais procurados — mobile */
  .pg-index .hm-procurados-head { text-align: left; margin-bottom: 18px; }
  .pg-index .hm-procurados-kicker { font-size: .66rem; margin-bottom: 8px; }
  .pg-index .hm-procurados-title { font-size: 1.35rem; }
  .pg-index .hm-procurados-desc { font-size: .88rem; }

  /* CTA do card de curso — remove ícone "play" somente no mobile da home */
  .pg-index .fw-card-curso-cta i { display: none; }

  /* Como funciona — mobile: 2x2 enxuto */
  .pg-index .hm-steps-section { padding: 22px 0 24px; }
  .pg-index .hm-steps-head { margin-bottom: 14px; }
  .pg-index .hm-steps-title { font-size: 1.05rem; line-height: 1.3; }
  .pg-index .hm-steps { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .pg-index .hm-step { padding: 12px 12px; gap: 10px; }
  .pg-index .hm-step-icon { flex: 0 0 34px; width: 34px; height: 34px; font-size: 1rem; }
  .pg-index .hm-step-num { display: none; } /* remove no mobile, economiza ruído */
  .pg-index .hm-step-title { font-size: .8rem; }

  /* Stats — mobile: head compacto + 3 cards empilhados */
  .pg-index .stats { padding: 26px 18px; }
  .pg-index .stats-inner { gap: 14px; }
  .pg-index .stats-kicker { font-size: .62rem; }
  .pg-index .stats-lead { font-size: .82rem; }
  .pg-index .stats-grid { grid-template-columns: 1fr; gap: 8px; }
  .pg-index .stat-card { padding: 12px 14px; }
  .pg-index .stat-num { font-size: 1.5rem; }
  .pg-index .stat-icon { width: 36px; height: 36px; font-size: 1rem; }

  /* Depoimentos */
  .pg-index .hm-testi-head { margin-bottom: 24px; }
  .pg-index .hm-testi-card { padding: 24px 20px 18px; border-radius: 16px; }
  .pg-index .hm-testi-mark { font-size: 2.6rem; top: 6px; right: 12px; }
  .pg-index .hm-testi-quote { font-size: .95rem; }

  /* CTA final */
  .pg-index .cta-final { padding: 44px 18px; }
  .pg-index .cta-final h2 { font-size: 1.45rem; }
  .pg-index .cta-final p { font-size: .92rem; }
  .pg-index .cta-final .btn-fw { width: 100%; justify-content: center; }
}
