/* Cursos de Confiança: design próprio, sem o tema do WordPress.
   O conteúdo dos posts ainda vem com as classes dos blocos (wp-block-*): o estilo deles fica em "Texto". */

:root {
  --tinta: #10231a;
  --texto: #2b3a33;
  --suave: #5c6b64;
  --fundo: #f6f8f5;
  --cartao: #ffffff;
  --linha: #e0e7e2;
  --verde: #00973a;
  --verde-escuro: #00762d;
  --verde-claro: #e7f5eb;
  --verde-logo: #00b836;
  --raio: 16px;
  --sombra: 0 1px 2px rgba(16, 35, 26, .06), 0 8px 24px rgba(16, 35, 26, .06);
  --largura: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; }
body {
  margin: 0;
  background: var(--fundo);
  color: var(--texto);
  font: 400 17px/1.65 "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
picture { display: block; }
a { color: var(--verde-escuro); }
h1, h2, h3, h4 { color: var(--tinta); line-height: 1.2; letter-spacing: -.02em; margin: 0; }
.wrap { width: 100%; max-width: var(--largura); margin: 0 auto; padding: 0 20px; }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; z-index: 50; background: var(--cartao); padding: 8px 14px; border-radius: 8px; }
:focus-visible { outline: 3px solid var(--verde-logo); outline-offset: 2px; }

/* Botões */
.botao {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 24px; border-radius: 999px;
  background: var(--verde); color: #fff; font-weight: 700; text-decoration: none;
  transition: background .15s, transform .15s;
}
.botao:hover { background: var(--verde-escuro); transform: translateY(-1px); }
.botao-claro { background: var(--cartao); color: var(--tinta); box-shadow: inset 0 0 0 1.5px var(--linha); }
.botao-claro:hover { background: var(--verde-claro); }

/* Topo */
.topo { position: sticky; top: 0; z-index: 20; background: rgba(255, 255, 255, .92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--linha); }
.topo-in { display: flex; align-items: center; justify-content: space-between; min-height: 72px; gap: 24px; }
.marca img { height: 44px; width: auto; }
.menu-botao { display: none; }
.menu ul { display: flex; flex-wrap: wrap; gap: 4px; list-style: none; margin: 0; padding: 0; }
.menu a {
  display: block; padding: 8px 12px; border-radius: 999px;
  color: var(--texto); font-weight: 600; font-size: 15px; text-decoration: none;
}
.menu a:hover, .menu a[aria-current] { background: var(--verde-claro); color: var(--verde-escuro); }

@media (max-width: 1000px) {
  .menu-botao {
    display: flex; flex-direction: column; justify-content: center; gap: 5px;
    width: 44px; height: 44px; padding: 0 11px; border: 0; border-radius: 12px; background: transparent; cursor: pointer;
  }
  .menu-botao span { display: block; height: 2px; background: var(--tinta); border-radius: 2px; transition: transform .2s, opacity .2s; }
  .menu-botao[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .menu-botao[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .menu-botao[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .menu { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--cartao); border-bottom: 1px solid var(--linha); box-shadow: var(--sombra); padding: 12px 20px 20px; }
  .menu.aberto { display: block; }
  .menu ul { flex-direction: column; }
  .menu a { padding: 12px 14px; font-size: 17px; }
}

/* Seções e grade */
.secao { padding-top: 56px; padding-bottom: 8px; }
.secao-topo { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.secao-topo h2 { font-size: clamp(22px, 2.6vw, 28px); }
.secao-topo a { font-weight: 700; text-decoration: none; white-space: nowrap; }
.secao-topo a::after { content: " →"; }
.faixa { background: #edf3ee; margin-top: 64px; padding-bottom: 64px; }
.faixa .secao { padding-top: 56px; }
.grade { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 960px) { .grade { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grade { grid-template-columns: 1fr; } }
.sobre-titulo { margin: 0 0 12px; color: var(--verde-escuro); font-size: 13px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }

/* Card */
.card {
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--cartao); border: 1px solid var(--linha); border-radius: var(--raio);
  transition: box-shadow .2s, transform .2s;
}
.card:hover { box-shadow: var(--sombra); transform: translateY(-2px); }
.card-img { display: block; aspect-ratio: 2 / 1; background: var(--verde-claro); overflow: hidden; }
.card-img img { width: 100%; height: 100%; object-fit: cover; }
.card-txt { display: flex; flex-direction: column; gap: 10px; padding: 20px 22px 22px; flex: 1; }
.card h3 { font-size: 19px; }
.card h3 a { color: inherit; text-decoration: none; }
.card h3 a:hover { color: var(--verde-escuro); }
.card p { margin: 0; color: var(--suave); font-size: 15px; line-height: 1.55; }
.card time { margin-top: auto; padding-top: 6px; color: var(--suave); font-size: 13px; }
.selo {
  align-self: flex-start; padding: 4px 10px; border-radius: 999px;
  background: var(--verde-claro); color: var(--verde-escuro);
  font-size: 12px; font-weight: 700; text-decoration: none; letter-spacing: .02em;
}
.card-grande { display: grid; grid-template-columns: 1.15fr 1fr; }
.card-grande .card-img { aspect-ratio: auto; min-height: 100%; }
.card-grande .card-txt { justify-content: center; padding: 36px 40px; gap: 14px; }
.card-grande h3 { font-size: clamp(24px, 2.8vw, 32px); }
.card-grande p { font-size: 17px; }
@media (max-width: 820px) {
  .card-grande { grid-template-columns: 1fr; }
  .card-grande .card-img { aspect-ratio: 2 / 1; }
  .card-grande .card-txt { padding: 22px; }
}

/* Home */
.hero { background: radial-gradient(1200px 500px at 85% -10%, #d6f2de 0, transparent 60%), linear-gradient(180deg, #fff 0, var(--fundo) 100%); border-bottom: 1px solid var(--linha); }
.hero-in { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; padding-top: 72px; padding-bottom: 80px; }
.hero h1 { font-size: clamp(34px, 5vw, 54px); font-weight: 800; letter-spacing: -.035em; }
.hero-lead { margin: 20px 0 0; font-size: clamp(18px, 2vw, 20px); color: var(--suave); max-width: 34em; }
.hero-acoes { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-numeros { display: flex; flex-wrap: wrap; gap: 28px; list-style: none; margin: 36px 0 0; padding: 0; color: var(--suave); font-size: 15px; }
.hero-numeros strong { display: block; color: var(--tinta); font-size: 28px; line-height: 1.1; }
.hero-pilha { position: relative; height: 380px; }
.pilha-item {
  position: absolute; width: 78%; overflow: hidden;
  background: var(--cartao); border-radius: var(--raio); border: 1px solid var(--linha); box-shadow: 0 18px 40px rgba(16, 35, 26, .14);
}
.pilha-item img { width: 100%; aspect-ratio: 2 / 1; object-fit: cover; }
.pilha-item { width: 70%; border: 6px solid #fff; }
.pilha-1 { top: 0; right: 0; z-index: 1; transform: rotate(3deg); }
.pilha-2 { top: 110px; left: 0; z-index: 2; transform: rotate(-4deg); }
.pilha-3 { top: 220px; right: 6%; z-index: 3; transform: rotate(1.5deg); }
@media (max-width: 900px) {
  .hero-in { grid-template-columns: 1fr; padding-top: 48px; padding-bottom: 56px; }
  .hero-pilha { display: none; }
}
.areas { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; list-style: none; margin: 0; padding: 0; }
@media (max-width: 960px) { .areas { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 620px) { .areas { grid-template-columns: repeat(2, 1fr); } }
.areas a {
  display: flex; flex-direction: column; gap: 2px; height: 100%; padding: 16px 18px;
  background: var(--cartao); border: 1px solid var(--linha); border-radius: 14px;
  color: var(--tinta); text-decoration: none; font-weight: 700; line-height: 1.3;
  transition: border-color .15s, background .15s;
}
.areas a:hover { border-color: var(--verde); background: var(--verde-claro); }
.areas small { color: var(--suave); font-weight: 500; font-size: 13px; }

/* Listagens */
.cabeca { background: #fff; border-bottom: 1px solid var(--linha); padding: 48px 0 28px; }
.cabeca h1 { font-size: clamp(30px, 4vw, 42px); font-weight: 800; }
.cabeca p { margin: 12px 0 0; color: var(--suave); max-width: 46em; font-size: 18px; }
.filtros { display: flex; gap: 8px; list-style: none; margin: 28px 0 0; padding: 0 0 4px; overflow-x: auto; scrollbar-width: thin; }
.filtros a {
  display: block; padding: 8px 14px; border-radius: 999px; white-space: nowrap;
  border: 1px solid var(--linha); color: var(--texto); font-size: 14px; font-weight: 600; text-decoration: none;
}
.filtros a:hover { border-color: var(--verde); }
.filtros a[aria-current] { background: var(--tinta); border-color: var(--tinta); color: #fff; }
.paginas { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 48px 0 24px; }
.paginas a, .paginas span {
  min-width: 44px; height: 44px; padding: 0 14px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 999px; border: 1px solid var(--linha); background: var(--cartao); color: var(--texto); font-weight: 700; text-decoration: none;
}
.paginas a:hover { border-color: var(--verde); }
.paginas span[aria-current] { background: var(--verde); border-color: var(--verde); color: #fff; }

/* Post */
.post-topo { max-width: 860px; padding-top: 40px; text-align: center; }
.trilha { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; color: var(--suave); font-size: 14px; }
.trilha a { color: var(--verde-escuro); font-weight: 700; text-decoration: none; }
.post-topo h1 { font-size: clamp(30px, 4.4vw, 46px); font-weight: 800; letter-spacing: -.03em; }
.post-meta { margin: 18px 0 0; color: var(--suave); font-size: 15px; }
.post-capa { max-width: 1000px; margin-top: 32px; }
.post-capa img { width: 100%; border-radius: 20px; box-shadow: var(--sombra); }
.post-grade { display: grid; grid-template-columns: 250px minmax(0, 720px); justify-content: center; gap: 56px; margin-top: 48px; }
.post-grade.sem-sumario { grid-template-columns: minmax(0, 720px); margin-top: 32px; }
.sumario details { position: sticky; top: 96px; }
.sumario summary { cursor: pointer; color: var(--tinta); font-size: 13px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; list-style: none; margin-bottom: 12px; }
.sumario summary::-webkit-details-marker { display: none; }
.sumario ol { list-style: none; margin: 0; padding: 0 0 0 14px; border-left: 2px solid var(--linha); counter-reset: s; }
.sumario li { margin: 0 0 10px; }
.sumario a { color: var(--suave); font-size: 14px; line-height: 1.45; text-decoration: none; display: block; }
.sumario a:hover { color: var(--verde-escuro); }
@media (max-width: 1000px) {
  .post-grade { grid-template-columns: minmax(0, 720px); gap: 28px; margin-top: 32px; }
  .sumario details { position: static; background: var(--cartao); border: 1px solid var(--linha); border-radius: 14px; padding: 16px 18px; }
  .sumario summary { margin: 0; }
  .sumario summary::after { content: " +"; }
  .sumario details[open] summary { margin-bottom: 12px; }
  .sumario details[open] summary::after { content: " −"; }
}

/* Texto dos posts e páginas */
.texto { font-size: 18px; line-height: 1.75; color: var(--texto); min-width: 0; }
.texto > * + * { margin-top: 1.1em; }
.texto p { margin: 0; }
.texto p:empty { display: none; }
.texto h2 { margin-top: 2.2em; font-size: clamp(25px, 3vw, 30px); padding-top: 4px; }
.texto h3 { margin-top: 1.8em; font-size: 21px; }
.texto h4 { margin-top: 1.5em; font-size: 18px; }
.texto h2 + *, .texto h3 + *, .texto h4 + * { margin-top: .7em; }
.texto strong { color: var(--tinta); }
.texto a { text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
.texto ul, .texto ol { margin: 0; padding-left: 1.4em; }
.texto ul { list-style: none; padding-left: 0; }
.texto ul > li { position: relative; padding-left: 1.6em; }
.texto ul > li::before {
  content: ""; position: absolute; left: .2em; top: .62em; width: .5em; height: .5em;
  border-radius: 50%; background: var(--verde-logo);
}
.texto li + li { margin-top: .45em; }
.texto ol > li::marker { color: var(--verde-escuro); font-weight: 800; }
.texto hr { border: 0; height: 1px; background: var(--linha); margin: 2.4em 0; }
.texto blockquote {
  margin-left: 0; margin-right: 0; padding: 18px 24px; border-left: 4px solid var(--verde-logo);
  background: var(--verde-claro); border-radius: 0 14px 14px 0; color: var(--tinta);
}
.texto blockquote p + p { margin-top: .6em; }
.texto cite { display: block; margin-top: 8px; font-size: 15px; color: var(--suave); font-style: normal; }
.texto figure { margin-left: 0; margin-right: 0; }
.texto figure img { border-radius: 14px; }
.texto figcaption { margin-top: 8px; color: var(--suave); font-size: 14px; text-align: center; }
.texto code { background: #edf1ee; padding: 2px 6px; border-radius: 6px; font-size: .9em; }
.texto table { width: 100%; border-collapse: collapse; font-size: 16px; background: var(--cartao); }
.texto .wp-block-table { overflow-x: auto; border: 1px solid var(--linha); border-radius: 14px; }
.texto th, .texto td { padding: 12px 14px; border-bottom: 1px solid var(--linha); text-align: left; vertical-align: top; }
.texto thead th { background: #edf3ee; color: var(--tinta); }
.texto tr:last-child td { border-bottom: 0; }
.texto .wp-block-buttons { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.6em; margin-bottom: .4em; }
.texto .wp-block-button__link {
  display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 14px 28px;
  border-radius: 999px; background: var(--verde); color: #fff; font-weight: 700; text-decoration: none;
  box-shadow: 0 6px 18px rgba(0, 151, 58, .25); transition: background .15s, transform .15s;
}
.texto .wp-block-button__link:hover { background: var(--verde-escuro); transform: translateY(-1px); }
.texto .wp-block-embed__wrapper { position: relative; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; background: #000; }
.texto .wp-block-embed__wrapper iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.texto .wp-block-gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.texto .wp-block-gallery figure { margin: 0; }
.texto .wp-block-columns { display: flex; flex-wrap: wrap; gap: 24px; }
.texto .wp-block-column { flex: 1 1 260px; min-width: 0; }
.texto .wp-block-spacer { height: 24px !important; }
.texto .aligncenter, .texto .aligncenter img { margin-left: auto; margin-right: auto; }

/* Página vazia e 404 */
.vazio { max-width: 640px; padding-top: 96px; padding-bottom: 96px; text-align: center; }
.vazio h1 { font-size: clamp(30px, 4vw, 42px); font-weight: 800; }
.vazio p { color: var(--suave); }

/* Rodapé */
.rodape { margin-top: 80px; background: #fff; border-top: 1px solid var(--linha); }
.faixa + .rodape, main:has(> .faixa:last-child) + .rodape { margin-top: 0; }
.rodape-in { display: grid; grid-template-columns: 1.4fr 1fr .8fr; gap: 40px; padding-top: 56px; padding-bottom: 40px; }
.rodape-marca img { height: 44px; width: auto; }
.rodape-marca p { margin: 16px 0 0; color: var(--suave); font-size: 15px; max-width: 30em; }
.rodape-titulo { margin: 0 0 12px; color: var(--tinta); font-size: 13px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.rodape-col ul { list-style: none; margin: 0; padding: 0; }
.rodape-col li + li { margin-top: 8px; }
.rodape-col a { color: var(--texto); text-decoration: none; font-size: 15px; }
.rodape-col a:hover { color: var(--verde-escuro); text-decoration: underline; }
.rodape-col:first-of-type ul { columns: 2; column-gap: 24px; }
.rodape-base { border-top: 1px solid var(--linha); padding-top: 20px; padding-bottom: 28px; }
.rodape-base p { margin: 0; color: var(--suave); font-size: 14px; }
@media (max-width: 820px) {
  .rodape-in { grid-template-columns: 1fr; gap: 28px; }
}
