/* Site do Colégio Penha Gabriel — mesmo visual do site WordPress antigo. */
@font-face { font-family: Montserrat; font-weight: 100 900; font-display: swap; src: url(/fontes/montserrat.woff2) format("woff2"); }
@font-face { font-family: Poppins; font-weight: 400; font-display: swap; src: url(/fontes/poppins-400.woff2) format("woff2"); }
@font-face { font-family: Poppins; font-weight: 400; font-style: italic; font-display: swap; src: url(/fontes/poppins-400-italico.woff2) format("woff2"); }
@font-face { font-family: Poppins; font-weight: 500; font-display: swap; src: url(/fontes/poppins-500.woff2) format("woff2"); }
@font-face { font-family: Poppins; font-weight: 600; font-display: swap; src: url(/fontes/poppins-600.woff2) format("woff2"); }
@font-face { font-family: Poppins; font-weight: 700; font-display: swap; src: url(/fontes/poppins-700.woff2) format("woff2"); }

:root {
  --vermelho: #9F1D1D;
  --vermelho-vivo: #B7282E;
  --vermelho-marca: #CF1020;
  --azul: #1E2A38;
  --azul-medio: #2C3A4D;
  --dourado: #C6A75E;
  --cinza: #F1F5F9;
  --texto: #2E2E2E;
  --verde: #299734;
  --largura: 1140px;
  color-scheme: only light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: #fff; color: var(--texto); font: 400 15px/1.7 Poppins, system-ui, sans-serif; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: Montserrat, system-ui, sans-serif; line-height: 1.25; margin: 0; }
p { margin: 0 0 .8em; }
.oculto { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.pular { position: absolute; left: -999px; top: 0; background: #fff; padding: 8px 12px; z-index: 50; }
.pular:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--dourado); outline-offset: 2px; }

/* Cabeçalho: uma faixa só, presa no alto (logo, menu e WhatsApp) */
.cabecalho { position: sticky; top: 0; z-index: 20; background: #fff; border-bottom: 1px solid #e7dcc0; }
.cabecalho-dentro { max-width: 1240px; margin: 0 auto; display: flex; align-items: center; gap: 26px; padding: 8px 24px; }
.marca { flex: none; margin-right: auto; display: flex; align-items: center; gap: 10px; text-decoration: none; }
.marca { --emblema: 58px; }
.marca-emblema { display: block; width: var(--emblema); height: var(--emblema); }
/* Em canvas, o emblema leva em volta um fundo branco que some aos poucos (folga de 15% de cada lado). */
canvas.marca-emblema { width: calc(var(--emblema) * 1.3); height: calc(var(--emblema) * 1.3); margin: calc(var(--emblema) * -.15); }
.marca-nome { display: flex; flex-direction: column; font-family: Poppins, system-ui, sans-serif; line-height: 1.12; white-space: nowrap; }
.marca-nome small { font-size: 15px; font-weight: 600; color: #404040; }
.marca-nome strong { position: relative; font-size: 20px; font-weight: 700; color: var(--vermelho-marca); }
/* O navegador Samsung, no modo escuro, apaga os logos e deixa este vermelho rosa; o site.js
   redesenha logos e nome em canvas (que ele não altera) e esconde o texto original. */
.marca-nome canvas { position: absolute; left: -4px; top: -4px; pointer-events: none; }
.marca-nome strong.em-tela > span { visibility: hidden; }
.topo-whats { flex: none; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: 999px; background: var(--verde); color: #fff; text-decoration: none; font: 600 15px/1 Poppins, sans-serif; }
.topo-whats:hover { background: #227d2b; }
.topo-whats svg { width: 19px; height: 19px; fill: currentColor; flex: none; }
.menu { display: flex; align-items: center; gap: 24px; font: 700 16px/1 Montserrat, sans-serif; letter-spacing: .3px; text-transform: uppercase; color: var(--azul); }
.menu .menu-endereco { display: none; }
.menu a { text-decoration: none; padding: 10px 0; }
.menu a:hover, .menu a:focus-visible { color: var(--vermelho-vivo); }
.menu .digital { text-transform: none; }
.grupo { position: relative; display: flex; align-items: center; }
.seta { border: 0; background: none; width: 30px; height: 30px; padding: 0; cursor: pointer; color: inherit; display: grid; place-items: center; }
.seta svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s; }
.grupo.aberto .seta svg { transform: rotate(180deg); }
.sub { display: none; position: absolute; top: 100%; left: 0; min-width: 250px; background: #fff; box-shadow: 0 10px 30px rgb(0 0 0 / .12); border-top: 3px solid var(--vermelho-vivo); padding: 6px 0; font: 500 15px/1.3 Poppins, sans-serif; text-transform: none; }
.sub a { display: block; padding: 11px 18px; }
.sub a:hover { background: var(--cinza); }
.grupo:hover .sub, .grupo:focus-within .sub, .grupo.aberto .sub { display: block; }
.abrir-menu { display: none; }

/* Blocos de título com fios dourados */
.titulo { text-align: center; padding: 26px 16px 22px; border-top: 1px solid var(--dourado); border-bottom: 1px solid var(--dourado); }
.titulo h1, .titulo h2 { color: var(--vermelho); font-weight: 700; font-size: clamp(22px, 3.2vw, 36px); text-transform: uppercase; letter-spacing: .5px; }
.titulo.escuro h1, .titulo.escuro h2 { color: var(--azul); }
.titulo p { margin: 6px auto 0; max-width: 640px; font-size: 15px; }
.titulo .italico { font-style: italic; }
.primeiro { border-top: 0; }
.bloco { max-width: var(--largura); margin: 0 auto; padding: 26px 16px 34px; }
.texto-centro { text-align: center; max-width: 720px; margin: 0 auto 18px; }
.foto { width: 100%; border: 2px solid var(--dourado); border-radius: 18px; }
.foto-limpa { width: 100%; }
.estreita { max-width: 780px; margin-left: auto; margin-right: auto; }
.duas { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; align-items: center; }

/* Botões */
.botoes { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; margin-top: 18px; }
.botao { display: inline-block; text-align: center; line-height: 1.2; background: var(--vermelho-vivo); color: #fff; text-decoration: none; font: 600 18px/1 Montserrat, sans-serif; padding: 15px 26px; border-radius: 12px; box-shadow: 0 6px 16px rgb(0 0 0 / .18); }
.botao:hover { background: var(--vermelho); }
.botao.whats { background: var(--verde); border-radius: 4px; }
.botao.whats:hover { background: #227d2b; }
.botao.claro { background: #fff; color: var(--azul); border: 1px solid #d5dbe3; box-shadow: none; }
/* Movimento leve ao passar o mouse, como no site antigo: os botões sobem para a direita, o da capa
   cresce, os cartões dos segmentos sobem e a foto das notícias aproxima. Só com mouse; como no
   site antigo, vale mesmo quando o computador está com as animações do sistema desligadas. */
.botao, .nivel { transition: transform .3s ease, background-color .2s; }
@media (hover: hover) {
  .botao:hover { transform: translate(5px, -5px); }
  .capa .botao:hover { transform: scale(1.18); }
  .nivel:hover { transform: translateY(-8px); }
  .noticia:hover img { transform: scale(1.1); }
}

/* Início */
.insta { margin-bottom: 34px; }
.insta[hidden] { display: none; }
.insta-topo { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.insta-perfil { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--azul); }
.insta-perfil strong { display: block; font-size: 17px; }
.insta-perfil small { display: block; font-size: 13px; color: #5b6573; }
.insta-anel { padding: 3px; border-radius: 50%; background: conic-gradient(from 200deg, #feda75, #fa7e1e, #d62976, #962fbf, #4f5bd5, #feda75); flex: none; }
.insta-anel img { width: 56px; height: 56px; border-radius: 50%; border: 3px solid #fff; background: #fff; display: block; }
.insta-seguir { background: var(--vermelho-vivo); color: #fff; text-decoration: none; font-weight: 600; font-size: 14px; padding: 9px 22px; border-radius: 8px; }
.insta-seguir:hover { background: var(--vermelho); }
/* Mosaico em linhas: cada post no formato dele (--r = largura ÷ altura, posto pelo site.js);
   numa linha, a largura de cada um é proporcional ao formato, e a altura fica igual. */
.insta-grade { display: flex; flex-direction: column; gap: 10px; }
.insta-linha { display: flex; gap: 10px; }
.insta-linha .insta-post { flex: var(--r, .8) 1 0; min-width: 0; }
.insta-post { position: relative; display: block; overflow: hidden; border-radius: 10px; background: var(--cinza); aspect-ratio: var(--r, .8); }
.insta-post img, .insta-post video { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s ease, opacity .3s; }
.insta-post video { position: absolute; inset: 0; opacity: 0; pointer-events: none; }
.insta-post.tocando video { opacity: 1; }
.insta-tipo { position: absolute; top: 10px; right: 10px; width: 20px; height: 20px; fill: #fff; filter: drop-shadow(0 1px 2px rgb(0 0 0 / .6)); }
.insta-info { position: absolute; inset: auto 0 0; padding: 40px 12px 10px; color: #fff; background: linear-gradient(transparent, rgb(0 0 0 / .78)); display: flex; flex-direction: column; gap: 4px; opacity: 0; transform: translateY(8px); transition: opacity .25s, transform .25s; }
.insta-legenda { font-size: 13px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.insta-info time { font-size: 11.5px; opacity: .85; }
.insta-post:hover :is(img, video), .insta-post:focus-visible :is(img, video) { transform: scale(1.05); }
.insta-post:hover .insta-info, .insta-post:focus-visible .insta-info { opacity: 1; transform: none; }
@media (hover: none) { .insta-info { opacity: 1; transform: none; } .insta-legenda { -webkit-line-clamp: 2; } }
/* Capa da página inicial: o texto alinha com o logo do topo e a foto vai até a borda direita da tela,
   sem moldura; um degradê azul liga o texto à foto e um fio dourado fecha a capa embaixo. */
.capa { background: var(--azul-medio); color: #fff; border-bottom: 3px solid var(--dourado); }
.capa-dentro { display: grid; grid-template-columns: minmax(24px, 1fr) minmax(0, 470px) minmax(0, 722px) minmax(0, 1fr); align-items: center; }
.capa-texto { grid-column: 2; text-align: center; padding: 40px 36px 40px 0; }
.capa-foto { grid-column: 3 / 5; position: relative; align-self: stretch; }
.capa-foto img { display: block; height: clamp(360px, 31vw, 580px); object-fit: cover; object-position: 50% 70%; }
.capa-foto::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 18%; background: linear-gradient(90deg, var(--azul-medio), transparent); pointer-events: none; }
.capa h1 { font-size: clamp(26px, 2.6vw, 38px); font-weight: 700; line-height: 1.3; }
.capa .lema { font-style: italic; margin: 26px 0 30px; letter-spacing: .5px; color: #e5e9ef; }
.capa .lema::before { content: ""; display: block; width: 64px; height: 3px; margin: 0 auto 22px; border-radius: 3px; background: var(--dourado); }
.noticias { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.noticia { text-decoration: none; display: flex; flex-direction: column; gap: 10px; }
.noticia-foto { display: block; overflow: hidden; border-radius: 10px; }
.noticia img { display: block; aspect-ratio: 1200 / 628; object-fit: cover; width: 100%; transition: transform .5s ease; }
.noticia .cat { font-size: 12px; text-transform: uppercase; letter-spacing: .6px; color: var(--vermelho-vivo); }
.noticia h3 { font-size: 18px; color: var(--azul); }
.noticia:hover h3 { color: var(--vermelho-vivo); }
.noticia time { font-size: 13px; color: #6b7280; }
.niveis-fundo { background: var(--cinza); }
.niveis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0 10px; max-width: var(--largura); margin: 0 auto; padding: 8px 16px 0; }
.nivel { text-decoration: none; text-align: center; background: var(--cinza); padding: 22px 16px; box-shadow: 0 14px 30px rgb(0 0 0 / .08); display: flex; flex-direction: column; align-items: center; gap: 14px; }
.nivel .icone { width: 52px; height: 52px; border: 2px solid var(--vermelho-vivo); border-radius: 50%; display: grid; place-items: center; color: var(--vermelho-vivo); font-size: 24px; }
.nivel h3 { font-weight: 500; font-size: 19px; letter-spacing: .8px; color: var(--azul); }
.nivel img { border-radius: 30px; border: 2px solid #b9bec6; }
.nivel p { font-size: 13px; line-height: 1.6; margin: 0; }
.nivel:hover h3 { color: var(--vermelho-vivo); }
.integral { display: grid; grid-template-columns: 1.1fr 1fr; gap: 24px; align-items: start; }
.integral .foto { border-color: #f08080; border-radius: 0; }
.integral ul { padding-left: 1.2em; margin: .4em 0 1em; }
.integral li { margin: .35em 0; }
.porque-fundo { background: var(--cinza); }
.porque { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: repeat(5, auto); grid-auto-flow: column; gap: 30px 70px; list-style: none; padding: 0; margin: 0 auto; max-width: 1000px; counter-reset: item; }
.porque li { counter-increment: item; }
.porque h3 { font-size: 18px; color: var(--azul); margin-bottom: 8px; display: flex; gap: 10px; align-items: baseline; }
.porque h3::before { content: counter(item); flex: none; font: 700 13px/24px Montserrat, sans-serif; width: 24px; height: 24px; text-align: center; color: #fff; background: var(--vermelho-vivo); border-radius: 5px; }
.porque p { margin: 0; line-height: 1.55; }

/* Matrículas 2027 */
.menu .menu-matricula { color: var(--vermelho-vivo); }
/* Faixa da página inicial: cartão vermelho arredondado com desenhos de escola em traço
   (lápis, livro, estrela, avião de papel) ao fundo e um rabisco dourado sob o ano. */
.mat-faixa-fundo { padding: 26px 16px; }
.mat-faixa { position: relative; max-width: 1180px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 18px 40px; flex-wrap: wrap; padding: 30px 40px; border-radius: 22px; color: #fff; background: url(/img/doodles-escola.svg) 0 0 / 280px 210px, linear-gradient(115deg, var(--vermelho-vivo) 0%, var(--vermelho) 100%); box-shadow: 0 18px 36px rgb(159 29 29 / .25); }
.mat-faixa-selo { display: inline-block; padding: 5px 12px; border-radius: 999px; background: var(--dourado); color: var(--azul); font: 700 13px/1.2 Montserrat, sans-serif; letter-spacing: .5px; text-transform: uppercase; transform: rotate(-3deg); }
.mat-faixa-texto strong { display: block; margin-top: 10px; font: 800 clamp(28px, 3.2vw, 40px)/1.1 Montserrat, sans-serif; letter-spacing: .3px; }
.rabisco { position: relative; display: inline-block; }
.rabisco::after { content: ""; position: absolute; left: -4%; right: -4%; bottom: -10px; height: 12px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 12' preserveAspectRatio='none'%3E%3Cpath d='M2 8 C 20 2, 35 11, 55 6 S 95 2, 118 7' fill='none' stroke='%23C6A75E' stroke-width='3.5' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center / 100% 100%; }
.mat-faixa-texto { flex: 1 1 380px; }
.mat-faixa-frase { display: block; margin-top: 14px; font-size: 16px; }
.mat-faixa-botoes { flex: none; display: flex; flex-wrap: wrap; gap: 12px; }
.mat-faixa .botao { font-size: 17px; padding: 14px 22px; white-space: nowrap; border-radius: 999px; }
.mat-faixa .botao.claro { color: var(--vermelho); border-color: #fff; }
.mat-faixa .botao.whats { box-shadow: 0 0 0 2px #fff, 0 6px 16px rgb(0 0 0 / .18); }
.mat-capa { background: var(--azul-medio); color: #fff; }
.mat-capa-dentro { max-width: 1280px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1.15fr; align-items: center; }
.mat-capa-dentro > img { align-self: stretch; width: 100%; height: 100%; object-fit: cover; }
.mat-capa-texto { padding: 40px 40px 40px 32px; }
.mat-selo { display: inline-block; margin: 0 0 14px; padding: 6px 12px; border: 1px solid var(--dourado); border-radius: 999px; color: var(--dourado); font: 600 13px/1.2 Montserrat, sans-serif; letter-spacing: .4px; text-transform: uppercase; }
.mat-capa h1 { font-size: clamp(32px, 4.2vw, 52px); font-weight: 700; line-height: 1.1; letter-spacing: .3px; }
.mat-capa-frase { margin: 14px 0 24px; font-size: 17px; line-height: 1.55; max-width: 34em; color: #e5e9ef; }
.mat-capa-botoes { display: flex; flex-wrap: wrap; gap: 12px; }
.mat-capa .botao.claro { border-color: transparent; }
/* Os três destaques ficam sempre numa linha só, separados por um fio dourado. */
.mat-fatos { list-style: none; padding: 0; margin: 28px 0 0; display: grid; grid-template-columns: repeat(3, auto); justify-content: start; font-size: 13.5px; line-height: 1.4; color: #cbd3dd; }
.mat-fatos li { padding: 0 18px; border-left: 1px solid rgb(198 167 94 / .45); white-space: nowrap; }
.mat-fatos li:first-child { padding-left: 0; border-left: 0; }
.mat-fatos strong { display: block; font: 700 16px/1.3 Montserrat, sans-serif; color: var(--dourado); }
.mat-capa img { border-left: 2px solid var(--dourado); }
.mat-serie-fundo { background: var(--cinza); padding: 40px 16px; scroll-margin-top: 70px; }
.mat-serie { max-width: 1000px; margin: 0 auto; display: grid; grid-template-columns: 1.1fr 1fr; background: #fff; border-radius: 16px; overflow: hidden; box-shadow: 0 14px 30px rgb(0 0 0 / .08); }
.mat-serie-perg { padding: 30px 32px; display: flex; flex-direction: column; align-items: flex-start; }
.mat-serie-perg h2 { font-size: clamp(20px, 2.2vw, 26px); color: var(--vermelho); line-height: 1.25; }
.mat-serie-perg p { margin: 8px 0 20px; font-size: 14px; color: #5b6573; }
.mat-serie-perg label { font: 600 14px/1.2 Montserrat, sans-serif; color: var(--azul); margin-bottom: 8px; }
/* Data de nascimento: campo para digitar (dd/mm/aaaa) e, colado nele, o botão do calendário. */
.mat-data { display: flex; align-items: stretch; max-width: 100%; }
.mat-serie-perg .mat-data > input { font: 500 18px/1.2 Poppins, sans-serif; letter-spacing: .5px; width: 10.5em; min-width: 0; padding: 11px 14px; border: 1.5px solid #b9bec6; border-right: 0; border-radius: 8px 0 0 8px; color: var(--azul); background: #fff; }
.mat-serie-perg .mat-data > input::placeholder { color: #8a929d; }
.mat-serie-perg input:focus { outline: 2px solid var(--dourado); outline-offset: 2px; }
.mat-serie-perg .mat-data-cal { position: relative; display: grid; place-items: center; width: 52px; margin: 0; border: 1.5px solid #b9bec6; border-radius: 0 8px 8px 0; background: #fff; cursor: pointer; }
.mat-data-cal svg { width: 24px; height: 24px; fill: none; stroke: var(--vermelho); stroke-width: 1.8; stroke-linecap: round; }
.mat-data-cal:hover svg, .mat-data-cal:focus-within svg { stroke: var(--vermelho-vivo); }
.mat-data-cal:focus-within { outline: 2px solid var(--dourado); outline-offset: 2px; }
.mat-data-cal input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; border: 0; padding: 0; cursor: pointer; }
.mat-data-dica { margin-top: 8px; font-size: 13px; color: #5b6573; }
.so-leitor { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.mat-serie-resp { background: var(--azul); color: #dfe4ea; padding: 30px 32px; display: flex; flex-direction: column; justify-content: center; gap: 6px; min-height: 230px; }
.mat-serie-rotulo { font: 600 12px/1 Montserrat, sans-serif; letter-spacing: .8px; text-transform: uppercase; color: var(--dourado); }
.mat-serie-resp strong { font: 700 clamp(26px, 3vw, 34px)/1.2 Montserrat, sans-serif; color: #fff; }
.mat-serie-resp p { margin: 0; font-size: 14.5px; line-height: 1.55; }
.mat-serie-resp .mat-serie-nota { margin-top: 4px; padding-top: 10px; border-top: 1px solid rgba(255, 255, 255, .14); font-size: 13px; color: #b8c1cc; }
.mat-serie-acoes { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-top: 12px; }
.mat-serie-acoes[hidden] { display: none; }
.mat-serie-resp .botao { font-size: 16px; padding: 12px 20px; }
.mat-serie-resp .mat-link { color: #fff; }
.mat-serie-resp.mudou strong { animation: mat-surge .35s ease-out; }
@keyframes mat-surge { from { opacity: 0; transform: translateY(6px); } }
.mat-link { color: var(--vermelho-vivo); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.mat-niveis { padding-top: 26px; }
.mat-niveis img { aspect-ratio: 1; object-fit: cover; object-position: top; width: 100%; }
.mat-niveis .nivel p { font: 500 14px/1.4 Poppins, sans-serif; color: #5b6573; }
.mat-integral { text-align: center; margin: 22px auto 34px; padding: 0 16px; max-width: 720px; font-size: 15px; }
.mat-integral a { color: var(--vermelho-vivo); font-weight: 600; }
.passos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; list-style: none; padding: 0; margin: 0 auto; max-width: 1000px; counter-reset: passo; }
.passos li { counter-increment: passo; }
.passos h3 { font-size: 18px; color: var(--azul); margin-bottom: 8px; display: flex; gap: 10px; align-items: baseline; }
.passos h3::before { content: counter(passo); flex: none; font: 700 13px/24px Montserrat, sans-serif; width: 24px; height: 24px; text-align: center; color: #fff; background: var(--vermelho-vivo); border-radius: 5px; }
.passos p { margin: 0; line-height: 1.55; }
.descontos, .prazos { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 22px; max-width: 1000px; margin: 0 auto; }
.descontos > div, .prazos > div { background: var(--cinza); border-radius: 10px; padding: 20px; }
.descontos h3, .prazos h3 { font-size: 18px; color: var(--azul); margin-bottom: 8px; }
.descontos p { margin: 0; line-height: 1.55; }
.prazos ul { margin: 0; padding-left: 1.1em; line-height: 1.55; }
.prazos p:not(.mat-faltam) { margin: 0; line-height: 1.55; }
.prazos li { margin: .25em 0; }
.prazos .agora { box-shadow: inset 0 0 0 2px var(--dourado); }
.renova .prazos > div { background: #fff; }
.prazos .agora h3::after { content: " · agora"; color: var(--vermelho-vivo); }
.mat-faltam { display: inline-block; margin: 0 0 10px; padding: 4px 10px; border-radius: 6px; background: var(--vermelho-vivo); color: #fff; font: 600 13px/1.3 Montserrat, sans-serif; }
.renova { background: var(--cinza); }
.renova .titulo { border-top: 0; }
.mat-historia-fundo { padding: 40px 16px; }
.mat-historia { max-width: 1000px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1.2fr; gap: 36px; align-items: center; }
.mat-historia h2 { font-size: clamp(22px, 2.6vw, 30px); color: var(--vermelho); text-transform: uppercase; letter-spacing: .5px; margin-bottom: 10px; }
.mat-historia p { margin: 0 0 14px; line-height: 1.6; text-align: justify; hyphens: auto; -webkit-hyphens: auto; }
.nota { text-align: center; font-size: 13px; color: #6b7280; margin: 16px 0 0; }

/* História */
.antes-depois { position: relative; overflow: hidden; border-radius: 4px; --corte: 50%; max-width: 1000px; margin: 0 auto; }
.antes-depois img { width: 100%; }
.antes-depois .depois { position: absolute; inset: 0; clip-path: inset(0 0 0 var(--corte)); }
.antes-depois .depois img { height: 100%; object-fit: cover; }
.antes-depois .linha { position: absolute; top: 0; bottom: 0; left: var(--corte); width: 3px; margin-left: -1px; background: #fff; pointer-events: none; }
.antes-depois .linha::after { content: "◂ ▸"; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); background: #fff; border-radius: 50%; width: 38px; height: 38px; display: grid; place-items: center; font-size: 12px; color: var(--azul); }
.antes-depois input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; }
.galeria { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.galeria.tres { grid-template-columns: repeat(3, 1fr); }
.galeria a { display: block; overflow: hidden; border-radius: 6px; }
.galeria img { aspect-ratio: 3 / 2; object-fit: cover; width: 100%; transition: transform .35s ease; }
.galeria a:hover img { transform: scale(1.04); }

/* Nosso Jeito de Ensinar */
.pilares { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; max-width: 1000px; margin: 0 auto; text-align: center; }
.pilares h3 { font-size: 18px; color: var(--azul); margin-bottom: 8px; }
.pilares .emoji { font-size: 34px; display: block; margin-bottom: 8px; }

/* Integral */
.incluido { display: grid; grid-template-columns: repeat(3, auto); justify-content: center; gap: 10px 40px; list-style: none; padding: 0; max-width: 900px; margin: 0 auto; font: 500 17px/1.4 Poppins, sans-serif; }
.incluido li::before { content: "✔ "; color: var(--verde); }

/* CPG News */
.post { max-width: 820px; margin: 0 auto; padding: 0 16px 34px; }
.post .meta { color: #6b7280; font-size: 14px; text-align: center; margin: 8px 0 22px; }
/* Texto corrido justificado, com as palavras divididas em sílabas no fim da linha (português),
   para não abrir buracos entre elas no celular. */
.post p:not(.meta), .duas > p, .integral p { text-align: justify; hyphens: auto; -webkit-hyphens: auto; }
.post h2 { font-size: 22px; color: var(--azul); margin: 1.4em 0 .6em; }
.post blockquote { margin: 1.2em 0; padding: 12px 18px; border-left: 4px solid var(--dourado); background: var(--cinza); font-style: italic; }
.post .fotos { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 1.2em 0; }
.post .fotos img { border-radius: 8px; width: 100%; }
.video { position: relative; aspect-ratio: 16 / 9; margin: 1em 0; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; border-radius: 8px; }
.post .capa-post { border-radius: 10px; margin-bottom: 18px; }

/* Galeria de fotos em tela cheia (site.js) */
.ampliavel { cursor: zoom-in; }
.gt-aberta { overflow: hidden; }
.gt { position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; color: #fff; background: rgb(12 16 22 / var(--fundo, 1)); overflow: hidden; overscroll-behavior: contain; user-select: none; -webkit-user-select: none; -webkit-tap-highlight-color: transparent; }
.gt[open] { display: grid; grid-template-rows: auto minmax(0, 1fr) auto auto; animation: gt-surge .2s ease-out; }
.gt::backdrop { background: transparent; }
.gt-topo { display: flex; align-items: center; gap: 8px; padding: 10px 12px; padding-top: max(10px, env(safe-area-inset-top)); }
.gt-conta { margin-right: auto; padding-left: 6px; font: 500 14px/1 Poppins, sans-serif; color: #cbd5e1; font-variant-numeric: tabular-nums; }
.gt-botao { width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: rgb(255 255 255 / .1); color: #fff; display: grid; place-items: center; cursor: pointer; transition: background .15s; }
.gt-botao:hover { background: rgb(255 255 255 / .22); }
.gt-botao svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.gt-zoom .gt-mais { display: none; }
.gt-palco { position: relative; overflow: hidden; touch-action: none; }
.gt-palco.ampliada { cursor: grab; }
.gt-palco.ampliada:active { cursor: grabbing; }
.gt-trilho, .gt-slide { position: absolute; inset: 0; }
.gt-slide { margin: 0; display: grid; place-items: center; }
.gt-slide img { max-width: none; border-radius: 4px; box-shadow: 0 12px 40px rgb(0 0 0 / .45); -webkit-user-drag: none; transition: opacity .2s; }
.gt-slide.carregando img { opacity: 0; }
.gt-slide.carregando::after { content: ""; position: absolute; width: 34px; height: 34px; border-radius: 50%; border: 3px solid rgb(255 255 255 / .2); border-top-color: #fff; animation: gt-gira .8s linear infinite; }
.gt-seta { position: absolute; top: 50%; width: 52px; height: 52px; margin-top: -26px; background: rgb(0 0 0 / .35); }
.gt-seta svg { width: 26px; height: 26px; }
.gt-ant { left: 16px; }
.gt-prox { right: 16px; }
.gt-uma .gt-seta, .gt-uma .gt-conta { visibility: hidden; }
.gt-legenda { width: 100%; max-width: 900px; margin: 0 auto; padding: 10px 16px 2px; text-align: center; font-size: 14px; line-height: 1.5; color: #e2e8f0; min-height: 2.6em; }
.gt-minis { position: relative; display: flex; gap: 6px; overflow-x: auto; padding: 8px 12px 14px; padding-bottom: max(14px, env(safe-area-inset-bottom)); scrollbar-width: none; touch-action: pan-x; }
.gt-minis[hidden] { display: none; }
.gt-minis::-webkit-scrollbar { display: none; }
.gt-mini { flex: none; width: 64px; height: 48px; padding: 0; border: 2px solid transparent; border-radius: 6px; overflow: hidden; background: #1f2733; opacity: .5; cursor: pointer; transition: opacity .15s, border-color .15s; }
.gt-mini:first-child { margin-left: auto; }
.gt-mini:last-child { margin-right: auto; }
.gt-mini img { width: 100%; height: 100%; object-fit: cover; }
.gt-mini:hover { opacity: .85; }
.gt-mini.ativa { opacity: 1; border-color: var(--dourado); }
@keyframes gt-surge { from { opacity: 0; } }
@keyframes gt-gira { to { transform: rotate(360deg); } }

/* Rodapé */
.rodape { background: var(--azul); color: #fff; padding: 34px 16px 18px; margin-top: 24px; }
.rodape-dentro { max-width: var(--largura); margin: 0 auto; display: grid; grid-template-columns: auto 1fr 1.2fr; gap: 28px; align-items: center; }
.rodape-logo { display: block; width: 150px; max-width: 100%; height: auto; }
.contatos { list-style: none; margin: 0; padding: 0; line-height: 2; font-size: 15px; }
.contatos a { color: #fff; text-decoration: none; }
.contatos a:hover { text-decoration: underline; }
.rodape-frase { font: 600 clamp(22px, 2.6vw, 32px)/1.3 Montserrat, sans-serif; color: var(--dourado); margin: 0; text-align: center; }
.mapa { max-width: var(--largura); margin: 28px auto 0; position: relative; }
.mapa iframe { width: 100%; height: 280px; border: 0; border-radius: 6px; display: block; filter: saturate(.9); }
.visitar { position: absolute; left: 14px; bottom: 14px; background: var(--vermelho-vivo); color: #fff; text-decoration: none; font: 600 16px/1 Montserrat, sans-serif; padding: 12px 18px; border-radius: 8px; }
.rodape-fim { text-align: center; font-size: 13px; color: #b9c2cf; margin: 18px 0 0; }
.rodape-fim a { color: #b9c2cf; }
.subir { position: fixed; right: 16px; bottom: 16px; width: 42px; height: 42px; border-radius: 50%; background: var(--vermelho-vivo); color: #fff; display: grid; place-items: center; text-decoration: none; font-size: 20px; opacity: 0; pointer-events: none; transition: opacity .2s; }
.subir.visivel { opacity: .9; pointer-events: auto; }

/* Tablet e celular */
@media (max-width: 1180px) {
  .cabecalho-dentro { gap: 20px; }
  .menu { font-size: 15px; gap: 18px; }
  .topo-whats { width: 44px; padding: 0; }
  .topo-whats span { display: none; }
}
.menu-fundo { display: none; }
@media (max-width: 900px) {
  .cabecalho-dentro { gap: 10px; padding: 7px 16px; }
  .marca { --emblema: 46px; }
  .marca-nome small { font-size: 12.5px; }
  .marca-nome strong { font-size: 17px; }
  .menu .menu-endereco { display: block; margin-top: 6px; padding: 14px 0 4px; border-top: 1px solid #eee; font: 500 14px/1.4 Poppins, sans-serif; text-transform: none; letter-spacing: 0; color: #5b6573; }
  /* As três linhas são traços de SVG (não fundos de caixa): o modo escuro forçado do navegador Samsung
     clareia traços e textos, mas escurece fundos, e as linhas sumiam. */
  .abrir-menu { display: grid; place-items: center; width: 46px; height: 46px; padding: 0; border: 0; background: var(--cinza); color: var(--azul); border-radius: 8px; cursor: pointer; }
  .abrir-menu svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; overflow: visible; }
  .abrir-menu path { transform-origin: 12px 12px; transition: transform .2s, opacity .2s; }
  .abrir-menu[aria-expanded="true"] path:nth-child(1) { transform: rotate(45deg) translateY(6px); }
  .abrir-menu[aria-expanded="true"] path:nth-child(2) { opacity: 0; }
  .abrir-menu[aria-expanded="true"] path:nth-child(3) { transform: rotate(-45deg) translateY(-6px); }
  .menu { display: none; position: absolute; top: 100%; left: 0; right: 0; background: #fff; flex-direction: column; align-items: stretch; gap: 0; padding: 6px 16px 14px; box-shadow: 0 14px 24px rgb(0 0 0 / .12); font-size: 17px; max-height: calc(100vh - 70px); max-height: calc(100dvh - 70px); overflow-y: auto; overscroll-behavior: contain; }
  .menu.aberto { display: flex; animation: menu-desce .18s ease-out; }
  .menu-fundo { display: block; position: fixed; inset: 0; z-index: 19; background: rgb(15 23 32 / .45); opacity: 0; pointer-events: none; transition: opacity .2s; }
  .menu-aberto .menu-fundo { opacity: 1; pointer-events: auto; }
  .menu-aberto { overflow: hidden; }
  .menu > a, .grupo > a { padding: 13px 0; flex: 1; }
  .grupo { flex-wrap: wrap; border-top: 1px solid #eee; }
  .menu > a { border-top: 1px solid #eee; }
  .menu > a:first-child { border-top: 0; }
  .seta { width: 44px; height: 44px; }
  .sub a { padding: 12px 18px; }
  .sub { position: static; box-shadow: none; border: 0; width: 100%; padding: 0 0 6px 12px; min-width: 0; }
  .grupo:hover .sub, .grupo:focus-within .sub { display: none; }
  .grupo.aberto .sub { display: block; }
  .capa-texto { padding: 30px 24px 30px 0; }
  .capa .lema { margin: 18px 0 24px; }
  .capa .lema::before { margin-bottom: 16px; }
  .niveis { gap: 12px; padding-bottom: 20px; }
  .nivel { padding: 18px 10px; gap: 10px; }
  .nivel h3 { font-size: 16px; letter-spacing: .3px; }
  .nivel .icone { width: 44px; height: 44px; font-size: 20px; }
  .nivel img { border-radius: 18px; }
  .nivel p { font-size: 12.5px; }
  .noticias { gap: 16px; }
  .noticia h3 { font-size: 16px; }
  .galeria { grid-template-columns: 1fr 1fr; }
  .galeria.tres { grid-template-columns: repeat(3, 1fr); }
  .rodape-dentro { grid-template-columns: 1fr; text-align: center; justify-items: center; }
}
@media (max-width: 767px) {
  .capa-dentro, .integral, .duas, .pilares, .noticias { grid-template-columns: 1fr; }
  .capa-texto { grid-column: auto; padding: 22px 16px 26px; }
  .capa-foto { grid-column: auto; }
  .capa-foto img { height: auto; }
  .capa-foto::before { display: none; }
  .capa h1 { font-size: 24px; }
  .capa .lema { margin: 10px 0 16px; }
  .capa .lema::before { width: 48px; margin-bottom: 10px; }
  .noticias { gap: 22px; }
  .niveis { grid-template-columns: 1fr 1fr; gap: 16px; }
  .galeria, .galeria.tres { grid-template-columns: 1fr 1fr; gap: 8px; }
  .galeria > :first-child:nth-last-child(odd) { grid-column: span 2; }
  .gt-seta { width: 40px; height: 40px; margin-top: -20px; background: rgb(0 0 0 / .3); }
  .gt-seta svg { width: 22px; height: 22px; }
  .gt-ant { left: 8px; }
  .gt-prox { right: 8px; }
  .gt-mini { width: 52px; height: 40px; }
  .gt-legenda { font-size: 13px; }
  .gt-slide img { border-radius: 0; box-shadow: none; }
  .insta-grade, .insta-linha { gap: 4px; }
  .insta-post { border-radius: 6px; }
  .insta-info { display: none; }
  .insta-tipo { top: 6px; right: 6px; width: 16px; height: 16px; }
  .insta-seguir { padding: 8px 16px; }
  .insta-perfil strong { font-size: 15px; }
  .insta-perfil small { font-size: 12px; }
  .insta-anel img { width: 46px; height: 46px; }
  body { font-size: 14px; }
  .porque { grid-template-columns: 1fr; grid-template-rows: none; grid-auto-flow: row; gap: 22px; }
  .incluido { grid-template-columns: 1fr 1fr; }
  .passos, .descontos, .prazos { grid-template-columns: 1fr; gap: 14px; }
  .mat-capa-dentro, .mat-serie, .mat-historia { grid-template-columns: 1fr; }
  .mat-faixa-fundo { padding: 18px 12px; }
  .mat-faixa { padding: 24px 18px; text-align: center; justify-content: center; border-radius: 18px; }
  .mat-faixa-texto strong { font-size: 30px; }
  .mat-faixa-frase { font-size: 15px; }
  .mat-faixa-texto { flex-basis: 100%; }
  .mat-faixa-botoes { width: 100%; flex-direction: column; }
  .mat-faixa .botao { font-size: 16px; padding: 13px 18px; }
  .mat-capa img { order: -1; border-left: 0; border-bottom: 2px solid var(--dourado); }
  .mat-capa-dentro > img { height: auto; }
  .mat-capa-texto { padding: 22px 16px 26px; }
  .mat-capa-frase { font-size: 15px; margin: 10px 0 18px; }
  .mat-capa-botoes .botao { flex: 1 1 auto; }
  /* No celular, um destaque por linha, cada um numa linha só. */
  .mat-fatos { margin-top: 18px; grid-template-columns: 1fr; gap: 6px; font-size: 13px; }
  .mat-fatos li { padding: 0; border-left: 0; }
  .mat-fatos strong { display: inline; font-size: 14px; margin-right: 5px; }
  .mat-serie-fundo, .mat-historia-fundo { padding: 26px 16px; }
  .mat-serie-perg, .mat-serie-resp { padding: 22px 18px; }
  .mat-serie-resp { min-height: 0; }
  .mat-historia { gap: 18px; }
  .botao { font-size: 16px; padding: 13px 20px; }
  .post .fotos { gap: 8px; }
  .mapa iframe { height: 220px; }
}
@media (max-width: 380px) {
  .niveis { gap: 10px; padding-left: 12px; padding-right: 12px; }
}
@media (max-height: 520px) {
  .gt-minis { display: none; }
  .gt-legenda { min-height: 0; padding-bottom: 8px; }
}
@media (pointer: coarse) and (min-width: 901px) {
  .menu > a, .grupo > a { padding: 14px 0; }
  .seta { width: 40px; height: 44px; margin: 0 -6px 0 -4px; }
}
@media (hover: none) { .gt-botao:hover { background: rgb(255 255 255 / .1); } }
@keyframes menu-desce { from { opacity: 0; transform: translateY(-6px); } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .gt[open], .menu.aberto { animation: none; }
}
