/* Exclusivo do conteúdo da home e das rotas que reutilizam home.php. */
html:has(body.pagina-home), body.pagina-home { min-width: 0; }
body.pagina-home[data-page-theme="light"] { color-scheme: light; }
body.pagina-home[data-page-theme="light"] :is(#btn-mudar-tema, #btn-mudar-tema-top, #btn-mudar-tema-lateral) { display: none; }
body.pagina-home {
  --ep-home-header-height: 63px;
  --ep-home-menu-background: var(--ep-topbar-background);
  --ep-home-menu-text: #f3f4f6;
  --ep-home-menu-accent: #fff;
  --ep-home-menu-logo-filter: brightness(0) invert(1);
  --ep-home-hero-background: linear-gradient(90deg, rgba(0, 0, 0, .72), rgba(0, 0, 0, .48) 48%, rgba(0, 0, 0, .08)),
    var(--ep-home-photo-image, url('../../images/bg-header-001.webp?v=181c566df3eb'));
  --ep-home-photo-size: cover;
  --ep-home-photo-position: center top;
  background-color: #fff;
  background-image: none;
}
html.tema-escuro body.pagina-home,
body.pagina-home.tema-escuro {
  --ep-home-hero-background: linear-gradient(90deg, rgba(0, 0, 0, .82), rgba(0, 0, 0, .58) 48%, rgba(0, 0, 0, .22)),
    var(--ep-home-photo-image, url('../../images/bg-header-001.webp?v=181c566df3eb'));
  background-color: #101010;
  background-image: none;
}
body.pagina-home #wrapper { max-width: none; padding-inline: 0; }
body.pagina-home #main { margin-top: 0; }
/* O fundo ganha opacidade sem alterar a legibilidade dos controles. */
body.pagina-home .tetete {
  background: transparent;
  isolation: isolate;
  color: var(--ep-home-menu-text);
  border-bottom: 0;
  box-shadow: none;
}
body.pagina-home .tetete::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: var(--ep-home-menu-background);
  opacity: var(--ep-home-menu-opacity, 1);
  transition: opacity .12s linear;
}
body.pagina-home.ep-home-header-over-hero .tetete {
  --ep-home-menu-text: #fff;
  --ep-home-menu-accent: #fff;
  --ep-home-menu-logo-filter: none;
  background: transparent;
}
body.pagina-home .tetete .top-nav-link,
body.pagina-home .tetete .menu-text,
body.pagina-home .tetete .seletor-objetivo-botao {
  color: var(--ep-home-menu-text);
  opacity: 1;
}
body.pagina-home .tetete .top-nav-link:hover,
body.pagina-home .tetete .top-nav-link.active { color: var(--ep-home-menu-accent); }
body.pagina-home .tetete .top-nav-link-help:hover,
body.pagina-home .tetete .top-nav-link-help:focus-visible { color: #fff; }
body.pagina-home .tetete .top-nav-indicator { background: var(--ep-home-menu-accent); }
body.pagina-home .tetete .logo-link img { filter: var(--ep-home-menu-logo-filter); }
body.pagina-home .tetete #toggle-svg svg { fill: var(--ep-home-menu-text); }
.ep-home {
  --home-bg: #fff;
  --home-surface: #fff;
  --home-soft: #f0f3ef;
  --home-text: #1c272c;
  --home-muted: #526068;
  --home-line: #dce2de;
  --home-accent: #0e3aa9;
  width: 100%;
  overflow-x: clip;
  color: var(--home-text);
  background: var(--home-bg);
  font-size: 17px;
  line-height: 1.6;
  letter-spacing: 0;
  text-align: left;
}
html.tema-escuro .ep-home {
  --home-bg: #101010;
  --home-surface: #181818;
  --home-soft: #222;
  --home-text: #f3f3f3;
  --home-muted: #b6b6b6;
  --home-line: #363636;
  --home-accent: #9eb9ff;
}
.ep-home, .ep-home *, .ep-home *::before, .ep-home *::after { box-sizing: border-box; }
.ep-home :where(h1, h2, h3, p, ul, ol) { margin: 0; padding: 0; }
.ep-home :where(h1, h2, h3) { color: var(--home-text); font-weight: 600; text-transform: none; }
.ep-home a { color: inherit; text-decoration: none; border: 0; }
.ep-home button { font: inherit; letter-spacing: 0; text-transform: none; }
.ep-home [hidden] { display: none !important; }
.ep-home a:focus-visible, .ep-home button:focus-visible, .ep-home summary:focus-visible, .ep-home [tabindex="0"]:focus-visible { outline: 3px solid var(--home-accent); outline-offset: 5px; }
.ep-home .ep-home-shell { width: 100%; margin-inline: 0; padding-inline: clamp(24px, 4vw, 96px); }
.ep-home .ep-home-hero {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  height: min(100svh, var(--ep-home-photo-natural-height, 941px));
  min-height: 0;
  overflow-y: auto;
  padding-block: calc(var(--ep-home-header-height, 63px) + 64px) 0;
  text-align: left;
  background: var(--ep-home-hero-background);
  background-color: #101010;
  /* A foto cobre toda a abertura, preservando a proporção e evitando faixas vazias. */
  background-size: 100% 100%, var(--ep-home-photo-size);
  background-position: left top, var(--ep-home-photo-position);
  background-repeat: no-repeat;
}
.ep-home .ep-home-hero > .ep-home-shell { display: flex; flex: 1 0 auto; align-items: safe center; padding-inline: 8vw; padding-bottom: 48px; }
.ep-home .ep-home-intro { max-width: 760px; width: 60%; margin: 0; }
.ep-home .ep-home-intro h1 {
  max-width: 1000px;
  color: #fff;
  font-size: clamp(30px, 2vw, 36px) !important;
  font-weight: 400;
  line-height: 1.33;
  letter-spacing: -.025em;
  text-wrap: balance;
}
.ep-home .ep-home-intro h1 span { display: block; }
.ep-home .ep-home-lead {
  max-width: 640px;
  margin: 16px 0 0;
  color: #e6edff;
  font-size: clamp(14px, calc(1.15vw - 4px), 18px);
  line-height: 1.35;
  text-wrap: balance;
}
html.tema-escuro .ep-home .ep-home-lead { color: #d4d4d4; }
.ep-home .ep-home-actions { display: flex; justify-content: flex-start; margin-top: 38px; }
.ep-home .ep-home-hero .ep-home-button { width: fit-content; min-height: 50px; padding-block: 10px; border-radius: 34px; background: #cda61a; color: #272b00; font-size: 18px; font-weight: 500; }
.ep-home .ep-home-hero .ep-home-button:hover { background: #b99517; color: #272b00; }
.ep-home .ep-home-hero .ep-home-button:focus-visible { outline-color: #fff; }
.ep-home .ep-home-objective-section { padding-block: clamp(32px, 3.5vw, 48px); background: #dedede; }
.ep-home .ep-home-objective-section .ep-home-choice-label { margin-bottom: 28px; }
html.tema-escuro .ep-home .ep-home-objective-section { background: #101010; }
.ep-home .ep-home-objectives { width: 100%; }
.ep-home .ep-home-objective-grid { --ep-modality-gap: clamp(16px, 3vw, 40px); display: flex; flex-wrap: nowrap; justify-content: center; align-items: flex-start; gap: var(--ep-modality-gap); width: 100%; }
.ep-home .ep-home-button { display: inline-flex; align-items: center; justify-content: center; gap: 26px; min-height: 52px; padding: 14px 23px; border-radius: 6px; background: #0e3aa9; color: #fff; font-size: 16px; font-weight: 600; line-height: 1.4; transition: background .18s; }
.ep-home .ep-home-button:hover { background: #082a82; color: #fff; }
.ep-home .ep-home-button i { flex: 0 0 auto; font-size: 20px; line-height: 1; }
.ep-home .ep-home-choice-label { text-align: center; font-size: clamp(26px, 2.2vw, 32px) !important; font-weight: 400; line-height: 1.3; letter-spacing: -.02em; color: var(--home-muted); margin-bottom: 44px; }
.ep-home .ep-home-objective { display: flex; flex: 0 0 196px; flex-direction: column; justify-content: flex-start; align-items: center; gap: 12px; min-width: 196px; padding: 8px; border-radius: 12px; text-align: center; transition: transform .18s; }
.ep-home .ep-home-objective:hover { transform: translateY(-4px); }
.ep-home .ep-home-modality-logo { display: block; width: min(150px, 100%); height: auto; aspect-ratio: 1; border-radius: 50%; object-fit: cover; }
.ep-home .ep-home-modality-placeholder { display: grid; place-items: center; padding: 24px; border: 1px solid var(--home-line); color: var(--home-accent); }
.ep-home .ep-home-modality-placeholder svg { width: 60%; }
.ep-home .ep-home-modality-caption { max-width: 240px; color: var(--home-muted); font-size: 17px; line-height: 1.4; text-wrap: balance; }
.ep-home .ep-home-objective-grid.is-list { display: grid; grid-template-columns: minmax(0, 1fr); width: max-content; max-width: 100%; margin-inline: auto; gap: 16px; }
.ep-home .ep-home-objective-grid.is-list .ep-home-objective { flex-direction: row; justify-content: flex-start; width: 100%; min-width: 0; gap: 20px; text-align: left; }
.ep-home .ep-home-objective-grid.is-list .ep-home-objective:hover { transform: translateX(4px); }
.ep-home .ep-home-objective-grid.is-list .ep-home-modality-logo { flex: 0 0 auto; width: clamp(88px, 14vw, 120px); }
.ep-home .ep-home-objective-grid.is-list .ep-home-modality-caption { min-width: 0; max-width: 240px; text-wrap: wrap; overflow-wrap: anywhere; }
.ep-home .ep-home-objective.is-saving { opacity: .6; cursor: wait; }
.ep-home .ep-home-pass-note { flex: 0 0 auto; align-self: flex-start; width: fit-content; max-width: calc(100% - 16vw); margin: 0 8vw 15px; padding: 20px 24px; border-radius: 10px; background: rgba(0, 0, 0, .7); color: #fff; text-align: left; }
.ep-home .ep-home-pass-note,
.ep-home .ep-home-pass-note p { color: #fff; font-size: 14px; line-height: 1.6; }
.ep-home .ep-home-pass-note strong { color: #fffb00; font-weight: 700; }
.ep-home .ep-home-objective-error { margin-top: 12px; color: #a42d23; font-size: 16px; }
html.tema-escuro .ep-home .ep-home-objective-error { color: #ffaba3; }
.ep-home .ep-home-about { --home-about-card: #f6f7f8; padding-block: clamp(48px, 6vw, 88px); background: var(--home-bg); }
html.tema-escuro .ep-home .ep-home-about { --home-about-card: #181818; }
.ep-home .ep-home-about-panel { padding: 4px; }
.ep-home .ep-home-about-heading { max-width: 940px; margin-bottom: 32px; }
.ep-home .ep-home-about-heading > p { margin-top: 16px; max-width: 860px; color: var(--home-muted); font-size: 18px; line-height: 1.6; }
.ep-home .ep-home-about-intro-heading { margin-inline: auto; text-align: center; }
.ep-home .ep-home-about-intro-heading > p { margin-inline: auto; }
.ep-home .ep-home-about-intro-heading .ep-home-about-tagline { margin-top: 0; color: var(--home-text); font-size: 22px; font-weight: 600; line-height: 1.4; }
.ep-home .ep-home-about-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; list-style: none; }
.ep-home .ep-home-about-cards > :is(article, li) { min-width: 0; padding: 24px; border: 1px solid var(--home-line); border-radius: 10px; background: var(--home-about-card); }
.ep-home .ep-home-about-introduction .ep-home-about-cards > article { border: 0; border-left: 3px solid var(--home-accent); }
.ep-home .ep-home-about-panel h3 { font-size: 19px !important; line-height: 1.35; letter-spacing: -.015em; }
.ep-home .ep-home-about-cards p { margin-top: 12px; color: var(--home-muted); font-size: 16px; line-height: 1.6; }
@media (max-width: 1000px) {
  .ep-home .ep-home-about-cards { gap: 14px; }
  .ep-home .ep-home-about-cards > :is(article, li) { padding: 20px; }
}
@media (max-width: 640px) {
  .ep-home .ep-home-about-heading > p { font-size: 16px; }
  .ep-home .ep-home-about-cards { grid-template-columns: 1fr; }
  .ep-home .ep-home-about-cards > :is(article, li) { padding: 20px; }
}
.ep-home :where(.ep-home-method, .ep-home-faq) { padding-block: clamp(64px, 7vw, 100px); }
.ep-home :where(.ep-home-method, .ep-home-faq) h2 { font-size: clamp(30px, 2.8vw, 42px) !important; line-height: 1.17; letter-spacing: -.035em; }
.ep-home .ep-home-section-lead { color: var(--home-muted); font-size: 18px; margin-top: 20px; max-width: 520px; }
.ep-home .ep-home-method { background: var(--home-soft); }
.ep-home .ep-home-method-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px; margin-top: 44px; list-style: none; }
.ep-home .ep-home-method-grid > li { position: relative; min-width: 0; padding: 0; }
/* A linha e a ponta pertencem ao mesmo SVG; somente o brilho se movimenta. */
.ep-home .ep-home-step-connector { position: absolute; left: 116px; top: 18px; width: calc(100% - 84px); height: 16px; overflow: visible; pointer-events: none; color: #0e3aa9; }
.ep-home .ep-home-step-connector path { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.ep-home .ep-home-step-connector .ep-home-step-connector-flow { stroke: #94baff; stroke-dasharray: 100 1100; stroke-dashoffset: 100; opacity: 0; animation: ep-home-step-flow 4.8s linear infinite; }
.ep-home .ep-home-method-grid > li:nth-child(2) .ep-home-step-connector-flow { animation-delay: 2.4s; }
.ep-home .ep-home-step { display: inline-flex; align-items: center; justify-content: center; width: 100px; height: 52px; border-radius: 26px; background: #0e3aa9; color: #fff; font-size: 17px; font-weight: 600; line-height: 1; }
@keyframes ep-home-step-flow {
  0% { stroke-dashoffset: 100; opacity: 0; }
  5% { opacity: .8; }
  40% { opacity: .8; }
  45%, 100% { stroke-dashoffset: -1000; opacity: 0; }
}
.ep-home .ep-home-method-grid h3 { font-size: 24px !important; line-height: 1.3; margin-block: 24px 12px; letter-spacing: -.02em; }
.ep-home .ep-home-method-grid p { max-width: 46ch; font-size: 17px; color: var(--home-muted); }
.ep-home .ep-home-faq { background: var(--home-surface); border-top: 1px solid var(--home-line); }
.ep-home .ep-home-faq-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 70px; }
.ep-home .ep-home-faq-intro { align-self: start; }
@media (min-width: 821px) and (min-height: 600px) {
  .ep-home .ep-home-faq-intro { position: sticky; top: calc(var(--ep-home-header-height, 63px) + 28px); }
}
.ep-home .ep-home-faq-list details { border-bottom: 1px solid var(--home-line); }
.ep-home .ep-home-faq-list details:first-child { border-top: 1px solid var(--home-line); }
.ep-home .ep-home-faq-list summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-block: 22px; cursor: pointer; font-size: 18px; font-weight: 600; list-style: none; }
.ep-home .ep-home-faq-list summary::-webkit-details-marker { display: none; }
.ep-home .ep-home-faq-list summary span { color: var(--home-muted); font-size: 24px; font-weight: 400; transition: transform .18s; }
.ep-home .ep-home-faq-list details[open] summary span { transform: rotate(45deg); }
.ep-home .ep-home-faq-list details > p { padding: 0 36px 24px 0; color: var(--home-muted); font-size: 17px; }
.ep-home .ep-home-faq-list .ep-home-faq-points { display: grid; gap: 14px; padding: 0 36px 24px 22px; list-style: disc; color: var(--home-muted); font-size: 17px; }
@media (width < 760px) {
  body.pagina-home { --ep-home-header-height: 50px; }
}
@media (max-width: 820px) {
  body.pagina-home {
    --ep-home-photo-mobile-scale: 1;
    --ep-home-photo-size: var(--ep-home-photo-mobile-size, cover);
    --ep-home-photo-position: left var(--ep-home-photo-mobile-offset, 0px) top var(--ep-home-photo-mobile-top, 0px);
  }
  .ep-home .ep-home-hero { --ep-home-detail-font-size: 16px; height: auto; min-height: min(90svh, 720px); padding-block: calc(var(--ep-home-header-height) + 48px) 0; }
  .ep-home .ep-home-hero > .ep-home-shell { padding-bottom: 32px; }
  .ep-home .ep-home-pass-note { align-self: center; margin-inline: auto; text-align: center; }
  .ep-home .ep-home-intro { width: calc(72vw - 8vw); max-width: none; }
  .ep-home .ep-home-intro h1 { max-width: 650px; font-size: clamp(26px, 3.8vw, 30px) !important; }
  .ep-home .ep-home-lead { max-width: 100%; font-size: var(--ep-home-detail-font-size); line-height: 1.5; }
  .ep-home .ep-home-hero .ep-home-button { width: max-content; max-width: none; flex-shrink: 0; padding-inline: 16px; font-size: var(--ep-home-detail-font-size); text-align: center; white-space: nowrap; }
  .ep-home .ep-home-faq-grid { grid-template-columns: 1fr; gap: 36px; }
  .ep-home .ep-home-method-grid { grid-template-columns: 1fr; gap: 44px; }
  .ep-home .ep-home-method-grid > li { display: grid; grid-template-columns: 100px minmax(0, 1fr); gap: 24px; }
  .ep-home .ep-home-step-connector { top: 64px; bottom: -32px; left: 42px; width: 16px; height: calc(100% - 32px); }

  .ep-home .ep-home-method-grid h3 { margin-top: 0; }
}
@media (max-width: 540px) {
  .ep-home .ep-home-shell { padding-inline: 22px; }
  .ep-home .ep-home-hero { --ep-home-detail-font-size: clamp(15px, 4.1vw, 17px); padding-block: calc(var(--ep-home-header-height) + 32px) 0; }
  .ep-home .ep-home-hero > .ep-home-shell { padding-inline: 24px; padding-bottom: 28px; }
  .ep-home .ep-home-intro { width: calc(72vw - 24px); }
  .ep-home .ep-home-intro h1 { font-size: clamp(24px, 5.3vw, 28px) !important; line-height: 1.33; }
  .ep-home .ep-home-lead { margin-top: 16px; }
  .ep-home .ep-home-actions { margin-top: 30px; }
  .ep-home .ep-home-choice-label { margin-bottom: 28px; }
  .ep-home .ep-home-objective-grid.is-list .ep-home-objective { padding: 4px; gap: 16px; }
  .ep-home .ep-home-pass-note { max-width: calc(100% - 48px); padding: 18px; }
  .ep-home .ep-home-method-grid > li { grid-template-columns: 80px minmax(0, 1fr); gap: 20px; }
  .ep-home .ep-home-step { width: 80px; height: 48px; font-size: 15px; }
  .ep-home .ep-home-step-connector { top: 60px; left: 32px; height: calc(100% - 28px); }

  .ep-home .ep-home-method-grid h3 { font-size: 23px !important; }
  .ep-home .ep-home-faq-list summary { font-size: 17px; }
}
@media (prefers-reduced-motion: reduce) {
  body.pagina-home .tetete::before { transition: none; }
  .ep-home *, .ep-home *::before, .ep-home *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .ep-home .ep-home-step-connector-flow { display: none; }
}
