:root {
  --noite: #0f3038;        /* petróleo profundo, fundo noturno */
  --petroleo: #123c45;     /* cor principal da marca */
  --petroleo-2: #1d5260;
  --rosado: #f6dfd4;       /* rosado da marca */
  --rosado-2: #fbefe9;
  --chama: #f3b660;        /* luz da lamparina */
  --nevoa: #eef3f2;        /* fundo claro frio */
  --papel: #ffffff;
  --tinta: #14272c;
  --tinta-2: #3d4f54;
  --linha: #d4dfdd;
  --wa: #1f8f4e;

  --serif: "Alegreya", Georgia, serif;
  --sans: "Source Sans 3", system-ui, sans-serif;
  --medida: 68ch;
  --borda: 18px;
  --gutter: clamp(16px, 4vw, 40px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.1875rem;          /* 19px: leitura confortável para quem tem 50+ */
  line-height: 1.6;
  color: var(--tinta);
  background: var(--papel);
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--chama); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; font-variant-numeric: lining-nums; line-height: 1.12; margin: 0; letter-spacing: -0.01em; }
h2 { font-size: clamp(2rem, 4.2vw, 3.1rem); text-wrap: balance; }
h3 { font-weight: 600; }
h3 { font-size: 1.45rem; }
p { margin: 0 0 1em; }
.wrap { width: min(1180px, 100% - 2 * var(--gutter)); margin-inline: auto; }
.lead { font-size: 1.3rem; color: var(--tinta-2); max-width: 40ch; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.icon { width: 1.2em; height: 1.2em; flex: none; fill: currentColor; }

/* Botões */
.btn {
  display: inline-flex; align-items: center; gap: .6em;
  font: 700 1.05rem/1 var(--sans);
  padding: .95em 1.4em; border-radius: 999px; border: 0;
  text-decoration: none; cursor: pointer;
  transition: transform .15s ease, background-color .2s ease;
}
.btn:active { transform: scale(.97); }
.btn-wa { background: var(--wa); color: #fff; }
.btn-wa:hover { background: #18773f; }
.btn-luz { background: var(--chama); color: var(--noite); }
.btn-luz:hover { background: #f7c77f; }
.btn-linha { background: transparent; color: inherit; box-shadow: inset 0 0 0 2px currentColor; }

/* Cabeçalho */
.topo {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--noite) 92%, transparent);
  backdrop-filter: blur(10px);
  color: #fff;
}
.topo .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 72px; }
.topo img { height: 50px; width: auto; }
.topo nav { display: flex; align-items: center; gap: 28px; }
.topo nav a:not(.btn) { text-decoration: none; opacity: .82; font-weight: 500; }
.topo nav a:not(.btn):hover { opacity: 1; }
.topo .btn { padding: .7em 1.1em; font-size: .98rem; }
@media (max-width: 860px) { .topo nav a:not(.btn) { display: none; } }

/* Hero noturno com a lamparina */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  background: radial-gradient(120% 90% at 78% 85%, #17434d 0%, var(--noite) 55%, #0a2329 100%);
  color: #fff;
  padding: clamp(48px, 8vw, 110px) 0 clamp(56px, 8vw, 120px);
}
.hero .wrap { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.hero h1 { font-size: clamp(2.6rem, 5.8vw, 4.6rem); font-weight: 500; max-width: 13ch; text-wrap: balance; }
.hero .sub { margin: 1.4rem 0 2.2rem; font-size: 1.28rem; color: #cfe0e0; max-width: 42ch; }
.hero .acoes { display: flex; flex-wrap: wrap; gap: 14px; }
.hero .acoes .btn-linha { color: #fff; }
.garantias { display: flex; flex-wrap: wrap; gap: 10px 28px; margin: 2.4rem 0 0; padding: 0; list-style: none; color: #c9dcdd; font-size: 1.05rem; }
.garantias li { display: flex; gap: .5em; align-items: center; }
.garantias svg { color: var(--chama); }

.retrato { position: relative; justify-self: end; width: min(100%, 440px); }
.retrato img { border-radius: 220px 220px var(--borda) var(--borda); aspect-ratio: 582 / 575; object-fit: cover; width: 100%;
  filter: brightness(.82) contrast(1.05); }
.retrato::after { /* o halo da chama: aceso no carregamento */
  content: ""; position: absolute; left: 50%; top: 93%; width: 150%; aspect-ratio: 1; translate: -50% -50%;
  background: radial-gradient(circle, rgb(243 182 96 / .55) 0%, rgb(243 182 96 / .18) 22%, transparent 55%);
  mix-blend-mode: screen; pointer-events: none;
  animation: acender 2.2s cubic-bezier(.2,.7,.2,1) .3s both, respirar 5s ease-in-out 2.5s infinite;
}
.hero::before { /* luz que se espalha pelo ambiente */
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(60% 70% at 80% 95%, rgb(243 182 96 / .16), transparent 70%);
  animation: acender 2.6s ease .5s both;
}
.retrato figcaption { position: absolute; left: 50%; bottom: -2.1rem; translate: -50% 0; white-space: nowrap;
  font-family: var(--serif); font-style: italic; font-size: 1.05rem; color: #e9d9c6; }
@keyframes acender { from { opacity: 0; scale: .6; } 60% { opacity: 1; } to { opacity: 1; scale: 1; } }
@keyframes respirar { 0%,100% { opacity: 1; } 50% { opacity: .78; } }
.hero h1, .hero .sub, .hero .acoes, .garantias { animation: surgir .9s ease both; }
.hero .sub { animation-delay: .15s; } .hero .acoes { animation-delay: .3s; } .garantias { animation-delay: .45s; }
@keyframes surgir { from { opacity: 0; translate: 0 12px; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .retrato { justify-self: center; width: min(64%, 270px); order: -1; margin-bottom: 1.6rem; }
}

/* Seções */
section { padding: clamp(64px, 9vw, 120px) 0; }
.cabeca { display: grid; gap: 1rem; align-content: start; margin-bottom: clamp(32px, 5vw, 56px); max-width: 760px; }

/* Situações */
.situacoes .wrap { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 6vw, 96px); }
.situacoes h2 { text-wrap: balance; }
.lista-sit { list-style: none; margin: 0; padding: 0; }
.lista-sit li { display: grid; grid-template-columns: 2.6rem 1fr; gap: 1rem; padding: 1.4rem 0; border-top: 1px solid var(--linha); }
.lista-sit li:last-child { border-bottom: 1px solid var(--linha); }
.lista-sit svg { width: 2rem; height: 2rem; fill: none; stroke: var(--petroleo-2); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; margin-top: .2rem; }
.lista-sit strong { display: block; font-family: var(--serif); font-size: 1.35rem; font-weight: 500; }
.lista-sit span { color: var(--tinta-2); }
@media (max-width: 860px) { .situacoes .wrap { grid-template-columns: 1fr; } }

/* Serviços */
.servicos { background: var(--nevoa); }
.serv { border-top: 1px solid var(--linha); }
.serv:last-of-type { border-bottom: 1px solid var(--linha); }
.serv summary {
  list-style: none; cursor: pointer; display: grid; grid-template-columns: 1fr auto; gap: 8px 32px; align-items: center;
  padding: 1.6rem .25rem;
}
.serv summary::-webkit-details-marker { display: none; }
.serv h3 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.serv .resumo { grid-column: 1; color: var(--tinta-2); }
.serv .mais { grid-row: 1 / span 2; grid-column: 2; width: 48px; height: 48px; border-radius: 50%; border: 1.5px solid var(--petroleo);
  display: grid; place-items: center; transition: transform .3s ease, background-color .2s; }
.serv .mais svg { width: 20px; height: 20px; stroke: var(--petroleo); stroke-width: 2; fill: none; }
.serv[open] .mais { transform: rotate(45deg); background: var(--petroleo); }
.serv[open] .mais svg { stroke: #fff; }
.serv summary:hover h3 { color: var(--petroleo-2); }
.serv .corpo { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: end; padding: 0 .25rem 1.8rem; }
.serv .corpo ul { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 10px; }
.serv .corpo li { background: var(--papel); border-radius: 999px; padding: .45em 1em; font-size: 1rem; }
.serv[open] .corpo { animation: abrir .35s ease; }
@keyframes abrir { from { opacity: 0; translate: 0 -6px; } }
.link-perg { font-weight: 700; color: var(--petroleo); background: none; border: 0; padding: .4em 0; cursor: pointer; font: 700 1.02rem var(--sans);
  text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1.5px; }
.nota-serv { margin-top: 2rem; color: var(--tinta-2); max-width: 60ch; }
@media (max-width: 640px) { .serv .corpo { grid-template-columns: 1fr; } }

/* Como funciona — sequência real */
.como { background: var(--petroleo); color: #fff; }
.como .lead { color: #c3d7d8; }
.passos { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; counter-reset: p; }
.passos li { counter-increment: p; position: relative; padding: 0 28px 0 0; }
.passos li::before {
  content: counter(p); display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%;
  font: 600 1.5rem var(--serif); font-variant-numeric: lining-nums; background: var(--noite); color: var(--chama); box-shadow: 0 0 0 1.5px rgb(243 182 96 / .5);
  margin-bottom: 1.2rem; position: relative; z-index: 1;
}
.passos li::after { content: ""; position: absolute; top: 26px; left: 52px; right: 0; height: 1.5px; background: rgb(243 182 96 / .35); }
.passos li:last-child::after { display: none; }
.passos h3 { font-size: 1.4rem; margin-bottom: .5rem; }
.passos p { color: #c3d7d8; font-size: 1.05rem; }
@media (max-width: 860px) {
  .passos { grid-template-columns: 1fr; gap: 28px; }
  .passos li { padding: 0 0 0 76px; }
  .passos li::before { position: absolute; left: 0; top: 0; margin: 0; }
  .passos li::after { top: 52px; bottom: -28px; left: 26px; right: auto; width: 1.5px; height: auto; }
}

/* Responsável técnica */
.quem .wrap { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.quem figure { margin: 0; position: relative; }
.quem figure img { border-radius: var(--borda); aspect-ratio: 4 / 4.4; object-fit: cover; object-position: 60% 30%; width: 100%; }
.quem figcaption { margin-top: 1rem; font-size: 1rem; color: var(--tinta-2); }
.quem figcaption strong { display: block; font-family: var(--serif); font-size: 1.35rem; color: var(--tinta); font-weight: 500; }
.valores { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 32px; margin: 2rem 0 0; }
.valores dt { font-family: var(--serif); font-size: 1.3rem; color: var(--petroleo); }
.valores dd { margin: .2rem 0 0; color: var(--tinta-2); font-size: 1.05rem; }
@media (max-width: 860px) { .quem .wrap { grid-template-columns: 1fr; } .quem figure { max-width: 420px; } }

/* Cursos (home) */
.cursos-home { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.cursos-home figure { margin: 0; }
.cursos-home figure img { border-radius: var(--borda); aspect-ratio: 4 / 3.4; object-fit: cover; object-position: 50% 35%; width: 100%; }
.cursos-home figcaption { margin-top: .7rem; color: var(--tinta-2); font-size: 1rem; }
.proximo { background: var(--nevoa); border-radius: var(--borda); padding: clamp(24px, 4vw, 40px); }
.proximo .quando { color: var(--petroleo-2); font-weight: 700; font-size: 1.05rem; margin-bottom: .4rem; }
.proximo h3 { font-size: clamp(1.8rem, 3.4vw, 2.4rem); margin-bottom: 1.2rem; }
.ficha { display: grid; grid-template-columns: auto 1fr; gap: .5rem 1.4rem; margin: 0 0 1.6rem; }
.ficha dt { color: var(--tinta-2); }
.ficha dd { margin: 0; font-weight: 500; }
.proximo .acoes { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; }
.link-seta { font-weight: 700; color: var(--petroleo); text-underline-offset: 4px; text-decoration-thickness: 1.5px; }
@media (max-width: 860px) { .cursos-home { grid-template-columns: 1fr; } }

/* Página de cursos */
.hero-cursos { background: var(--noite); color: #fff; padding: clamp(48px, 7vw, 96px) 0; position: relative; overflow: hidden; isolation: isolate; }
.hero-cursos::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(50% 80% at 85% 100%, rgb(243 182 96 / .16), transparent 70%); }
.hero-cursos h1 { font-size: clamp(2.4rem, 5vw, 4rem); max-width: 16ch; text-wrap: balance; }
.hero-cursos .sub { margin: 1.2rem 0 0; font-size: 1.25rem; color: #cfe0e0; max-width: 46ch; }
.curso { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: start; }
.curso h2 { margin-bottom: 1rem; }
.curso .cartaz img { border-radius: var(--borda); width: 100%; max-width: 460px; box-shadow: 0 30px 60px -30px rgb(18 60 69 / .5); }
.selo-data { display: inline-block; background: var(--chama); color: var(--noite); font-weight: 700; border-radius: 999px; padding: .35em .9em; font-size: 1rem; margin-bottom: 1rem; }
.programa { margin-top: 1.6rem; counter-reset: mod; }
.programa details { border-top: 1px solid var(--linha); }
.programa details:last-of-type { border-bottom: 1px solid var(--linha); }
.programa summary { cursor: pointer; list-style: none; padding: 1rem 2.2rem 1rem 0; position: relative; font-family: var(--serif); font-size: 1.25rem; font-weight: 600; counter-increment: mod; }
.programa summary::before { content: counter(mod) ". "; color: var(--petroleo-2); font-variant-numeric: lining-nums; }
.programa summary::-webkit-details-marker { display: none; }
.programa summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 10px; height: 10px; border: solid var(--petroleo); border-width: 0 2px 2px 0; translate: 0 -70%; rotate: 45deg; transition: rotate .25s; }
.programa details[open] summary::after { rotate: -135deg; translate: 0 -20%; }
.programa ul { margin: 0 0 1rem; padding-left: 1.2rem; color: var(--tinta-2); font-size: 1.05rem; }
.aviso { font-size: 1rem; color: var(--tinta-2); border-left: 3px solid var(--chama); padding: .2rem 0 .2rem 1rem; margin-top: 1.6rem; max-width: 60ch; }
.galeria { display: grid; grid-template-columns: repeat(6, 1fr); grid-auto-rows: 180px; gap: 12px; margin-top: clamp(32px, 5vw, 56px); }
.galeria figure { margin: 0; overflow: hidden; border-radius: 14px; }
.galeria img { width: 100%; height: 100%; object-fit: cover; }
.galeria .g1 { grid-column: span 3; grid-row: span 2; }
.galeria .g2 { grid-column: span 2; }
.galeria .g5 { grid-column: span 1; grid-row: span 2; }
.galeria .g3, .galeria .g4 { grid-column: span 1; }
.galeria .g1 img { object-position: 50% 30%; }
@media (max-width: 860px) {
  .curso { grid-template-columns: 1fr; }
  .galeria { grid-template-columns: 1fr 1fr; grid-auto-rows: 150px; }
  .galeria .g1 { grid-column: span 2; grid-row: span 2; }
  .galeria .g2 { grid-column: span 2; }
  .galeria .g5 { grid-column: span 1; grid-row: span 2; }
  .galeria .g3, .galeria .g4 { grid-column: span 1; }
}
}

/* Avaliações (espaço reservado) */
.avaliacoes { background: var(--nevoa); }
.aval-grade { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.aval { background: var(--papel); border-radius: var(--borda); padding: 28px; border: 1.5px dashed #b7c9c7; }
.aval .estrelas { color: var(--chama); letter-spacing: 2px; font-size: 1.2rem; }
.aval p { font-family: var(--serif); font-style: italic; font-size: 1.2rem; color: var(--tinta-2); margin: .8rem 0 1rem; }
.aval small { color: var(--tinta-2); font-size: .95rem; }
@media (max-width: 860px) { .aval-grade { grid-template-columns: 1fr; } }

/* Monte sua mensagem */
.mensagem { background: var(--rosado); }
.mensagem .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
.perg { border: 0; margin: 0 0 1.8rem; padding: 0; min-width: 0; }
.perg legend { font-family: var(--serif); font-size: 1.35rem; margin-bottom: .8rem; padding: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  font: 500 1.02rem var(--sans); color: var(--tinta); background: var(--rosado-2);
  border: 1.5px solid transparent; border-radius: 999px; padding: .6em 1.1em; cursor: pointer;
  transition: background-color .15s, border-color .15s, transform .12s;
}
.chip:hover { border-color: var(--petroleo-2); }
.chip:active { transform: scale(.96); }
.chip[aria-pressed="true"] { background: var(--petroleo); color: #fff; border-color: var(--petroleo); }
.campo { font: 500 1.05rem var(--sans); padding: .7em 1em; border-radius: 12px; border: 1.5px solid #d9bfb2; background: var(--rosado-2); width: min(100%, 320px); color: var(--tinta); }
.campo:focus { outline: 3px solid var(--petroleo-2); outline-offset: 1px; }

.celular { position: sticky; top: 96px; background: #e9e1d8; border-radius: 28px; padding: 18px; box-shadow: 0 30px 60px -30px rgb(18 60 69 / .45); }
.celular .barra { display: flex; align-items: center; gap: 12px; background: var(--petroleo); color: #fff; border-radius: 28px 28px 0 0; margin: -18px -18px 18px; padding: 14px 18px; }
.celular .avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--noite) url(logo.png) center / 82% no-repeat; flex: none; }
.celular .barra small { display: block; opacity: .75; font-size: .85rem; }
.balao { background: #d9fdd3; border-radius: 14px 4px 14px 14px; padding: 14px 16px 10px; margin-left: 12%; font-size: 1.05rem; line-height: 1.5; color: #111b21; white-space: pre-line; min-height: 7em; }
.balao .hora { display: block; text-align: right; font-size: .78rem; color: #667781; margin-top: 4px; }
.balao.mudou { animation: pulso .35s ease; }
@keyframes pulso { 50% { background: #c4f5bb; } }
.celular .btn { width: 100%; justify-content: center; margin-top: 18px; }
.celular .dica { text-align: center; font-size: .92rem; color: var(--tinta-2); margin: 10px 0 0; }
@media (max-width: 860px) { .mensagem .wrap { grid-template-columns: 1fr; } .celular { position: static; } }

/* Perguntas */
.faq .wrap { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(32px, 6vw, 96px); }
.faq details { border-top: 1px solid var(--linha); }
.faq details:last-child { border-bottom: 1px solid var(--linha); }
.faq summary { cursor: pointer; list-style: none; padding: 1.25rem 2.5rem 1.25rem 0; position: relative; font-family: var(--serif); font-size: 1.3rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 12px; height: 12px; border: solid var(--petroleo); border-width: 0 2px 2px 0; translate: 0 -70%; rotate: 45deg; transition: rotate .25s; }
.faq details[open] summary::after { rotate: -135deg; translate: 0 -20%; }
.faq details p { color: var(--tinta-2); max-width: var(--medida); padding-bottom: .6rem; }
@media (max-width: 860px) { .faq .wrap { grid-template-columns: 1fr; } }

/* Rodapé */
.rodape { background: var(--noite); color: #c3d7d8; padding: 72px 0 40px; font-size: 1.05rem; }
.rodape .grade { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 40px; }
.rodape h3 { color: #fff; font-size: 1.2rem; margin-bottom: .8rem; }
.rodape a { text-decoration: none; }
.rodape a:hover { color: #fff; text-decoration: underline; }
.rodape ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.rodape .base { margin-top: 56px; padding-top: 24px; border-top: 1px solid rgb(255 255 255 / .12); display: flex; flex-wrap: wrap; gap: 12px 28px; justify-content: space-between; font-size: .95rem; }
.rodape img { height: 42px; width: auto; margin-bottom: 1rem; }
@media (max-width: 860px) { .rodape .grade { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .rodape .grade { grid-template-columns: 1fr; } }

/* WhatsApp flutuante (mobile) */
.wa-flutua { position: fixed; right: 16px; bottom: 16px; z-index: 30; width: 60px; height: 60px; border-radius: 50%; background: var(--wa); color: #fff;
  display: none; place-items: center; box-shadow: 0 10px 24px -8px rgb(0 0 0 / .45); }
.wa-flutua svg { width: 30px; height: 30px; }
@media (max-width: 860px) { .wa-flutua { display: grid; } }


/* Páginas de texto (privacidade, termos, 404) */
.texto-legal > * { max-width: 70ch; }
.texto-legal h2 { font-size: clamp(1.5rem, 2.4vw, 1.9rem); margin: 2.4rem 0 .8rem; color: var(--petroleo); }
.texto-legal p, .texto-legal li { font-size: 1.15rem; line-height: 1.65; color: var(--tinta-2); }
.texto-legal ul { padding-left: 1.2rem; }
.texto-legal li { margin-bottom: .6rem; }
.texto-legal a:not(.btn) { color: var(--petroleo); }
.texto-legal .atualizada { margin-top: 2.4rem; font-size: 1rem; }
@media (max-width: 860px) { .rodape { padding-bottom: 96px; } }
