/* ==========================================================================
   Marcelo Souza: Cursos de Trânsito
   Linguagem visual inspirada no padrão de portais de trânsito do estado de SP:
   azul institucional, cards brancos de borda fina, tiles de ícone arredondados,
   tipografia Open Sans. Editar os tokens abaixo para ajustar a marca.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokens
   -------------------------------------------------------------------------- */
:root {
  /* Azuis institucionais: o tom escuro é o azul da logo (#003f87) */
  --azul: #0058af;          /* primário: tiles, botões, links */
  --azul-hover: #00498e;    /* hover */
  --azul-escuro: #003f87;   /* cor da marca: painéis escuros e rodapé */
  --azul-claro: #e6f0fc;    /* fundo suave azulado */
  --azul-borda: #c2e0f4;

  /* Verde de status (badge "ativo") */
  --verde-bg: #e2ffe3;
  --verde-texto: #1b7f2b;

  /* Neutros */
  --tinta: #0f1413;         /* títulos */
  --corpo: #3a3f51;         /* texto */
  --muted: #57595a;         /* apoio */
  --linha: #e2e2e2;         /* bordas de card */
  --cinza: #f9f9f9;         /* faixas de fundo */
  --branco: #ffffff;

  /* WhatsApp */
  --wa: #25d366;
  --wa-escuro: #128c7e;

  /* Medidas */
  --container: 1200px;
  --raio: 16px;
  --raio-sm: 10px;
  --raio-tile: 12px;

  --sombra: 0 2px 10px rgba(15, 20, 19, 0.05);
  --sombra-md: 0 6px 24px rgba(15, 20, 19, 0.1);
  --sombra-menu: 0 16px 48px rgba(15, 20, 19, 0.16);

  --fonte: "Open Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

/* --------------------------------------------------------------------------
   2. Reset e base
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
  -webkit-text-size-adjust: 100%;
}

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

body {
  margin: 0;
  font-family: var(--fonte);
  font-size: 17px;
  line-height: 1.65;
  color: var(--corpo);
  background: var(--branco);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

h1, h2, h3, h4 {
  margin: 0 0 .5em;
  color: var(--tinta);
  line-height: 1.22;
  letter-spacing: -0.015em;
}
h1 { font-size: clamp(2.15rem, 1.4rem + 2.6vw, 3.3rem); font-weight: 300; }
h1 strong { font-weight: 700; color: var(--tinta); }
h2 { font-size: clamp(1.65rem, 1.25rem + 1.5vw, 2.35rem); font-weight: 600; }
h3 { font-size: clamp(1.12rem, 1.04rem + .4vw, 1.3rem); font-weight: 700; }

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }
ul, ol { margin: 0 0 1.1em; padding-left: 1.25em; }
li { margin-bottom: .45em; }
strong { color: var(--tinta); font-weight: 700; }

:focus-visible {
  outline: 3px solid var(--azul);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--azul); color: #fff;
  padding: 12px 20px; border-radius: 0 0 var(--raio-sm) 0; font-weight: 600;
}
.skip-link:focus { left: 0; }

/* --------------------------------------------------------------------------
   3. Layout
   -------------------------------------------------------------------------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 24px; }

.section { padding: clamp(52px, 6.5vw, 92px) 0; }
.section--cinza { background: var(--cinza); }
.section--azul { background: var(--azul-claro); }

.section-head { max-width: 700px; margin-bottom: 40px; }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head p { font-size: 1.05rem; color: var(--muted); margin-bottom: 0; }

.eyebrow {
  display: inline-block; margin-bottom: 12px;
  font-size: .78rem; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--azul);
}

/* Pílula de status, no padrão do "CNH ATIVA" */
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 16px; border-radius: 999px;
  background: var(--verde-bg); color: var(--verde-texto);
  font-size: .86rem; font-weight: 700;
}
.pill__dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.pill--azul { background: var(--azul-claro); color: var(--azul); }

/* Tile de ícone azul arredondado: elemento-assinatura do layout */
.tile {
  display: inline-grid; place-items: center;
  width: 56px; height: 56px; flex: none;
  border-radius: var(--raio-tile);
  background: var(--azul); color: #fff;
}
.tile--sm { width: 40px; height: 40px; border-radius: 9px; }
.tile--escuro { background: var(--azul-escuro); }
.tile--claro { background: var(--azul-claro); color: var(--azul); }

/* --------------------------------------------------------------------------
   4. Botões
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 26px;
  border: 2px solid transparent; border-radius: 999px;
  font-family: inherit; font-size: 1rem; font-weight: 700; line-height: 1;
  text-decoration: none; cursor: pointer;
  transition: background-color .18s ease, border-color .18s ease, color .18s ease, box-shadow .18s ease;
}
.btn svg { flex: none; }

.btn--azul { background: var(--azul); color: #fff; }
.btn--azul:hover { background: var(--azul-hover); }

.btn--wa { background: var(--wa); color: #06301c; }
.btn--wa:hover { background: #1fbe5b; }

.btn--outline { border-color: var(--azul); color: var(--azul); background: transparent; }
.btn--outline:hover { background: var(--azul-claro); }

.btn--branco { background: #fff; color: var(--azul); }
.btn--branco:hover { background: var(--azul-claro); }

.btn--sm { padding: 10px 18px; font-size: .92rem; }
.btn--block { width: 100%; }

/* Link com seta, no padrão "Acessar Todos ›" */
.link-seta {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 700; font-size: .95rem; color: var(--azul); text-decoration: none;
}
.link-seta::after {
  content: ""; width: 7px; height: 7px;
  border-right: 2px solid currentColor; border-top: 2px solid currentColor;
  transform: rotate(45deg); transition: transform .18s ease;
}
.link-seta:hover::after { transform: rotate(45deg) translate(2px, -2px); }

/* --------------------------------------------------------------------------
   5. Header
   -------------------------------------------------------------------------- */
.header {
  position: sticky; top: 0; z-index: 100;
  background: #fff;
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.header.is-scrolled { border-bottom-color: var(--linha); box-shadow: var(--sombra); }

.header__inner { display: flex; align-items: center; gap: 16px; min-height: 84px; }

.brand { display: flex; align-items: center; text-decoration: none; margin-right: auto; }
.brand img { height: 46px; width: auto; }

.nav { display: flex; align-items: center; gap: 2px; }
.nav > a, .nav__trigger {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 10px 14px; border: 0; border-radius: 8px;
  background: transparent; font-family: inherit; font-size: .98rem; font-weight: 600;
  color: var(--corpo); text-decoration: none; cursor: pointer;
  transition: color .16s ease, background-color .16s ease;
}
.nav > a:hover, .nav__trigger:hover { color: var(--azul); background: var(--azul-claro); }
.nav__trigger::after {
  content: ""; width: 7px; height: 7px;
  border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  transition: transform .2s ease;
}
.nav__trigger[aria-expanded="true"]::after { transform: translateY(1px) rotate(-135deg); }
.nav > .btn { display: none; }

/* Botão de WhatsApp fixo do header (visível só no desktop) */
.header__cta { flex: none; }

/* --------------------------------------------------------------------------
   6. Mega menu de cursos
   -------------------------------------------------------------------------- */
.megamenu {
  position: absolute; top: calc(100% + 1px); left: 0; right: 0;
  z-index: 99;
  padding: 0 24px 26px;
  background: #fff;
  border-radius: 0 0 var(--raio) var(--raio);
  box-shadow: var(--sombra-menu);
  display: none;
}
.megamenu.is-open { display: block; }
.megamenu__inner { max-width: var(--container); margin-inline: auto; padding-top: 30px; }

.megamenu__grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 10px 32px; margin-bottom: 26px;
}
.megamenu__item {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 14px; border-radius: var(--raio-sm);
  text-decoration: none; transition: background-color .16s ease;
}
.megamenu__item:hover { background: var(--cinza); }
.megamenu__item b { display: block; color: var(--tinta); font-size: .99rem; font-weight: 700; }
.megamenu__item span { display: block; margin-top: 2px; font-size: .88rem; color: var(--muted); line-height: 1.5; }
.megamenu__item > .tile {
  display: inline-grid;
  place-items: center;
  margin-top: 0;
  color: #fff;
}

.megamenu__faixa {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 18px; padding: 24px 28px;
  border-radius: var(--raio);
  background: linear-gradient(120deg, var(--azul-hover), var(--azul-escuro));
  color: #cfe2f5;
}
.megamenu__faixa b { display: block; color: #fff; font-size: 1.16rem; font-weight: 700; margin-bottom: 2px; }

@media (max-width: 1040px) { .megamenu__grid { grid-template-columns: repeat(2, 1fr); } }

/* --------------------------------------------------------------------------
   7. Menu mobile
   -------------------------------------------------------------------------- */
.nav-toggle {
  display: none; width: 46px; height: 46px; padding: 0;
  border: 1px solid var(--linha); border-radius: 10px; background: #fff;
  cursor: pointer; align-items: center; justify-content: center;
}
.nav-toggle span {
  display: block; position: relative;
  width: 19px; height: 2px; border-radius: 2px; background: var(--tinta);
  transition: background-color .2s ease;
}
.nav-toggle span::before, .nav-toggle span::after {
  content: ""; position: absolute; left: 0;
  width: 19px; height: 2px; border-radius: 2px; background: var(--tinta);
  transition: transform .22s ease;
}
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 1000px) {
  .nav-toggle { display: inline-flex; order: 3; }
  .header__cta { display: none; }
  .nav {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    max-height: calc(100vh - 84px); overflow-y: auto;
    padding: 12px 24px 24px;
    background: #fff; border-bottom: 1px solid var(--linha);
    box-shadow: var(--sombra-md);
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav > a, .nav__trigger {
    justify-content: space-between;
    padding: 15px 12px; border-radius: 0;
    border-bottom: 1px solid var(--linha); font-size: 1rem;
  }
  .nav > .btn { display: inline-flex; margin-top: 16px; border-bottom: 0; }
  /* no mobile o mega menu vira lista simples dentro do menu */
  .megamenu {
    position: static; display: none;
    padding: 0; border-radius: 0; box-shadow: none;
    border-bottom: 1px solid var(--linha);
  }
  .megamenu.is-open { display: block; }
  .megamenu__inner { padding-top: 6px; }
  .megamenu__grid { grid-template-columns: 1fr; gap: 0; margin-bottom: 14px; }
  .megamenu__item { align-items: center; padding: 12px 8px; }
  .megamenu__item > span:not(.tile) { display: block; margin-top: 0; }
  .megamenu__item > span:not(.tile) > span { display: none; }
  .megamenu__faixa { display: none; }
}

/* --------------------------------------------------------------------------
   8. Hero
   -------------------------------------------------------------------------- */
.hero { padding: clamp(46px, 5.5vw, 76px) 0 clamp(20px, 3vw, 34px); background: #fff; }
.hero__grid {
  display: grid; grid-template-columns: 1.05fr .95fr;
  gap: clamp(32px, 5vw, 64px); align-items: center;
}
.hero h1 { margin: 18px 0; }
.hero h1 strong { color: var(--azul); }
.hero__lead { font-size: 1.12rem; color: var(--muted); max-width: 54ch; }
.hero__acoes { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }

/* Card de lista de cursos do hero */
.hero__card {
  padding: 8px 26px 18px;
  border: 1px solid var(--linha); border-radius: var(--raio);
  background: #fff;
}
.hero__card h2 {
  margin: 22px 0 6px;
  font-size: .82rem; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--muted);
}
.hero__lista { list-style: none; margin: 0; padding: 0; }
.hero__lista li { margin: 0; border-bottom: 1px solid var(--linha); }
.hero__lista li:last-child { border-bottom: 0; }
.hero__lista a {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 4px;
  color: var(--tinta); font-weight: 600; font-size: .98rem; text-decoration: none;
  transition: color .16s ease;
}
.hero__lista a:hover { color: var(--azul); }
.hero__lista a::after {
  content: ""; margin-left: auto; flex: none;
  width: 8px; height: 8px;
  border-right: 2px solid var(--azul); border-top: 2px solid var(--azul);
  transform: rotate(45deg);
}

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

/* --------------------------------------------------------------------------
   9. Faixa de cards de destaque (padrão do painel do portal)
   -------------------------------------------------------------------------- */
.painel {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
  padding-bottom: clamp(52px, 6.5vw, 88px);
}
.painel__card {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 18px;
  padding: 28px;
  border: 1px solid var(--linha); border-radius: var(--raio); background: #fff;
}
.painel__card b { display: block; font-size: 1.85rem; font-weight: 700; color: var(--tinta); line-height: 1.2; }
.painel__card span {
  display: block; margin-top: 6px;
  font-size: .82rem; font-weight: 700; letter-spacing: .09em;
  text-transform: uppercase; color: var(--muted);
}
.painel__card .tile {
  display: inline-grid;
  place-items: center;
  margin-top: 0;
  color: #fff;
}
.painel__card p { margin-top: 10px; font-size: .94rem; color: var(--muted); }

.painel__destaque {
  display: flex; flex-direction: column;
  padding: 28px;
  border-radius: var(--raio);
  background: linear-gradient(160deg, var(--azul-hover), var(--azul-escuro));
  color: #cfe2f5;
}
.painel__destaque-topo { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.painel__destaque h2 {
  margin: 0; font-size: .82rem; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: #fff;
}
.painel__destaque p { margin: 18px 0 0; font-size: .97rem; }
.painel__destaque .btn { margin-top: auto; align-self: flex-start; }
.painel__destaque .btn:first-of-type { margin-top: 24px; }

@media (max-width: 940px) { .painel { grid-template-columns: 1fr 1fr; } .painel__destaque { grid-column: 1 / -1; } }
@media (max-width: 620px) { .painel { grid-template-columns: 1fr; } }

/* --------------------------------------------------------------------------
   10. Cards de curso
   -------------------------------------------------------------------------- */
.cursos { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }

.curso-card {
  display: flex; flex-direction: column;
  padding: 28px;
  border: 1px solid var(--linha); border-radius: var(--raio);
  background: #fff; text-decoration: none;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.curso-card:hover {
  border-color: var(--azul-borda);
  box-shadow: var(--sombra-md);
  transform: translateY(-3px);
}
.curso-card .tile { margin-bottom: 20px; }
.curso-card h3 { margin-bottom: 10px; }
.curso-card p { font-size: .95rem; color: var(--muted); margin-bottom: 22px; }
.curso-card .link-seta { margin-top: auto; }

/* --------------------------------------------------------------------------
   11. Como funciona
   -------------------------------------------------------------------------- */
.etapas { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: etapa; }
.etapa { position: relative; padding-top: 62px; }
.etapa::before {
  counter-increment: etapa; content: counter(etapa);
  position: absolute; top: 0; left: 0; z-index: 1;
  display: grid; place-items: center;
  width: 46px; height: 46px; border-radius: var(--raio-tile);
  background: var(--azul); color: #fff; font-weight: 700; font-size: 1.05rem;
}
.etapa::after {
  content: ""; position: absolute; top: 22px; left: 58px; right: -24px; height: 2px;
  background: repeating-linear-gradient(90deg, var(--azul-borda) 0 9px, transparent 9px 18px);
}
.etapa:last-child::after { display: none; }
.etapa h3 { margin-bottom: 8px; font-size: 1.06rem; }
.etapa p { font-size: .94rem; color: var(--muted); }

@media (max-width: 900px) {
  .etapas { grid-template-columns: repeat(2, 1fr); gap: 30px; }
  .etapa:nth-child(2n)::after { display: none; }
}
@media (max-width: 560px) {
  .etapas { grid-template-columns: 1fr; gap: 24px; }
  .etapa::after { display: none; }
  .etapa { padding-top: 0; padding-left: 66px; min-height: 46px; }
}

/* --------------------------------------------------------------------------
   12. Sobre
   -------------------------------------------------------------------------- */
.sobre__grid { display: grid; grid-template-columns: 1fr .82fr; gap: clamp(30px, 4.5vw, 60px); align-items: start; }
.sobre__painel { padding: 30px; border: 1px solid var(--linha); border-radius: var(--raio); background: #fff; }
.sobre__painel h3 { margin-bottom: 20px; font-size: 1.05rem; }

.checklist { list-style: none; margin: 0; padding: 0; }
.checklist li { position: relative; margin-bottom: 14px; padding-left: 34px; font-size: .97rem; }
.checklist li:last-child { margin-bottom: 0; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: 2px;
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--azul-claro);
}
.checklist li::after {
  content: ""; position: absolute; left: 6.5px; top: 6px;
  width: 6px; height: 11px;
  border-right: 2px solid var(--azul); border-bottom: 2px solid var(--azul);
  transform: rotate(42deg);
}
@media (max-width: 880px) { .sobre__grid { grid-template-columns: 1fr; } }

/* --------------------------------------------------------------------------
   13. FAQ
   -------------------------------------------------------------------------- */
.faq { max-width: 840px; margin-inline: auto; }
.faq__item {
  margin-bottom: 12px; overflow: hidden;
  border: 1px solid var(--linha); border-radius: var(--raio-sm); background: #fff;
  transition: border-color .18s ease;
}
.faq__item[open] { border-color: var(--azul-borda); }
.faq__item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  padding: 18px 22px;
  font-size: 1.01rem; font-weight: 700; color: var(--tinta);
  cursor: pointer; list-style: none;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: ""; flex: none; width: 10px; height: 10px;
  border-right: 2.5px solid var(--azul); border-bottom: 2.5px solid var(--azul);
  transform: rotate(45deg) translate(-2px, -2px);
  transition: transform .22s ease;
}
.faq__item[open] summary::after { transform: rotate(-135deg) translate(-4px, -4px); }
.faq__resposta { padding: 0 22px 20px; font-size: .98rem; }

/* --------------------------------------------------------------------------
   14. CTA final
   -------------------------------------------------------------------------- */
.cta {
  padding: clamp(46px, 5.5vw, 74px) clamp(26px, 5vw, 62px);
  border-radius: var(--raio);
  background: linear-gradient(150deg, var(--azul-hover), var(--azul-escuro));
  color: #cfe2f5; text-align: center;
}
.cta h2 { color: #fff; margin-bottom: 14px; }
.cta p { max-width: 56ch; margin-inline: auto; }
.cta .btn { margin-top: 28px; }

/* --------------------------------------------------------------------------
   15. Rodapé
   -------------------------------------------------------------------------- */
.footer { padding: 56px 0 28px; background: var(--azul-escuro); color: #b6cde2; font-size: .94rem; }
.footer__grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px; padding-bottom: 34px;
  border-bottom: 1px solid rgba(255, 255, 255, .16);
}
.footer h4 {
  margin-bottom: 16px;
  font-size: .78rem; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: #fff;
}
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer li { margin-bottom: 10px; }
.footer a { color: #b6cde2; text-decoration: none; transition: color .16s ease; }
.footer a:hover { color: #fff; text-decoration: underline; }
/* No rodapé escuro a logo entra como símbolo + texto em branco, porque o
   lettering original é preto e sumiria no azul. */
.footer__marca { margin-bottom: 18px; }
.footer__marca img { height: 56px; width: auto; }
.footer__marca b { display: block; color: #fff; font-size: 1.16rem; font-weight: 700; line-height: 1.2; }
.footer__marca span {
  display: block; margin-top: 2px;
  font-size: .68rem; font-weight: 600; letter-spacing: .16em;
  text-transform: uppercase; color: #8fb0cc;
}
.footer__brand p { max-width: 38ch; font-size: .93rem; }
.footer__bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px;
  padding-top: 22px; font-size: .85rem; color: #8fb0cc;
}
@media (max-width: 760px) { .footer__grid { grid-template-columns: 1fr; gap: 30px; } }

/* --------------------------------------------------------------------------
   16. Botão flutuante de WhatsApp
   -------------------------------------------------------------------------- */
.wa-float {
  position: fixed; right: 18px; bottom: 18px; z-index: 90;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 20px 14px 16px; border-radius: 999px;
  background: var(--wa); color: #06301c;
  font-weight: 700; font-size: .95rem; text-decoration: none;
  box-shadow: 0 8px 26px rgba(37, 211, 102, .42);
  transition: background-color .18s ease;
}
.wa-float:hover { background: #1fbe5b; }
@media (max-width: 560px) { .wa-float { padding: 15px; } .wa-float span { display: none; } }

/* --------------------------------------------------------------------------
   17. Páginas de curso
   -------------------------------------------------------------------------- */
.page-hero {
  padding: 30px 0 clamp(36px, 4.5vw, 56px);
  background: var(--azul-claro);
  border-bottom: 1px solid var(--azul-borda);
}
.page-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(360px, 1.05fr);
  gap: clamp(32px, 5vw, 68px);
  align-items: center;
}
.page-hero__topo { display: flex; align-items: flex-start; gap: 20px; }
.page-hero h1 { margin: 10px 0 14px; max-width: 22ch; font-weight: 700; font-size: clamp(1.9rem, 1.3rem + 2vw, 2.85rem); }
.page-hero p { max-width: 58ch; font-size: 1.05rem; color: var(--corpo); }
.page-hero .btn { margin-top: 24px; }
.page-hero__media {
  display: block;
  margin: 0;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  border: 5px solid rgba(255, 255, 255, .86);
  border-radius: var(--raio);
  background: #d4e5f6;
  box-shadow: var(--sombra-md);
}
.page-hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.breadcrumb {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  margin-bottom: 24px; font-size: .88rem; color: var(--muted);
}
.breadcrumb a { color: var(--azul); text-decoration: none; font-weight: 600; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb span { opacity: .5; }

.curso-layout { display: grid; grid-template-columns: 1fr 356px; gap: clamp(30px, 4vw, 54px); align-items: start; }
.curso-corpo h2 { margin-top: 44px; font-size: clamp(1.35rem, 1.18rem + .7vw, 1.75rem); }
.curso-corpo h2:first-of-type { margin-top: 0; }

.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 28px; padding: 0; list-style: none; }
.tags li {
  margin: 0; padding: 7px 15px;
  border-radius: 999px; background: var(--azul-claro);
  font-size: .85rem; font-weight: 700; color: var(--azul);
}

.aviso {
  margin: 26px 0; padding: 20px 24px;
  border: 1px solid var(--azul-borda); border-left: 4px solid var(--azul);
  border-radius: var(--raio-sm); background: var(--azul-claro);
  font-size: .96rem;
}
.aviso strong { display: block; margin-bottom: 4px; }

.sidecard {
  position: sticky; top: 108px;
  padding: 28px;
  border: 1px solid var(--linha); border-radius: var(--raio);
  background: #fff; box-shadow: var(--sombra);
}
.sidecard h3 { margin-bottom: 6px; font-size: 1.16rem; }
.sidecard > p { font-size: .94rem; color: var(--muted); }
.sidecard dl { margin: 22px 0; padding: 0; }
.sidecard dt {
  font-size: .73rem; font-weight: 700; letter-spacing: .09em;
  text-transform: uppercase; color: var(--muted);
}
.sidecard dd { margin: 4px 0 16px; font-size: .97rem; font-weight: 600; color: var(--tinta); }
.sidecard dd:last-of-type { margin-bottom: 0; }
.sidecard__rodape { margin-top: 14px; font-size: .84rem; color: var(--muted); text-align: center; }

@media (max-width: 920px) {
  .page-hero__grid { grid-template-columns: 1fr; }
  .page-hero__media { aspect-ratio: 3 / 2; }
  .curso-layout { grid-template-columns: 1fr; }
  .sidecard { position: static; }
}

@media (max-width: 560px) {
  .page-hero__topo { flex-direction: column; gap: 0; }
  .page-hero__topo > .tile { width: 46px; height: 46px; }
  .page-hero h1 { margin-top: 14px; }
  .page-hero__media { border-width: 3px; }
}

/* Outros cursos */
.relacionados { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 16px; }
.relacionados a {
  display: flex; align-items: center; gap: 14px;
  padding: 20px;
  border: 1px solid var(--linha); border-radius: var(--raio-sm); background: #fff;
  font-weight: 700; color: var(--tinta); text-decoration: none;
  transition: border-color .18s ease, box-shadow .18s ease;
}
.relacionados a:hover { border-color: var(--azul-borda); box-shadow: var(--sombra); }
.relacionados .rel-texto span {
  display: block; margin-top: 3px;
  font-size: .87rem; font-weight: 400; color: var(--muted);
}
