/* Site EBI — layout moderno: faixas com ondas, jornada dos ciclos, rolagem animada, barra fixa no celular.
   Camada por cima do portal.css; para voltar ao visual anterior, restaure o ponto v1 (scripts/restaurar-ponto.sh v1). */

/* ---------- 1. Faixas de ponta a ponta, com ritmo de cor e ondas ---------- */
.conteudo.moderno { max-width: none; padding: 0; gap: 0; display: block; }
.conteudo.moderno > .bloco { position: relative; border-radius: 0; box-shadow: none; border: 0; margin: 0; background: var(--sec-bg, #fff);
  padding: clamp(56px, 8vw, 96px) max(20px, calc((100% - 1120px) / 2)); scroll-margin-top: 90px; --onda: var(--sec-onda, #fff); }
.conteudo.moderno > .bloco::before, .rodape::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: clamp(26px, 4.4vw, 62px); transform: translateY(-99%);
  background: var(--onda); pointer-events: none;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 64' preserveAspectRatio='none'%3E%3Cpath d='M0,40 C240,0 480,64 720,32 C960,0 1200,56 1440,16 L1440,64 L0,64 Z'/%3E%3C/svg%3E") center bottom / 100% 100% no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 64' preserveAspectRatio='none'%3E%3Cpath d='M0,40 C240,0 480,64 720,32 C960,0 1200,56 1440,16 L1440,64 L0,64 Z'/%3E%3C/svg%3E") center bottom / 100% 100% no-repeat; }
.conteudo.moderno > #sobre { --sec-bg: var(--creme); }
.conteudo.moderno > #sobre::before { display: none; }
.conteudo.moderno > #metodologia { --sec-bg: linear-gradient(180deg, #eaf8e4, #def2fb); --sec-onda: #eaf8e4; }
.conteudo.moderno > #ecossistema { --sec-bg: #fff; --sec-onda: #fff; }
.conteudo.moderno > #ciclos { --sec-bg: radial-gradient(circle at 15% 10%, rgba(255, 255, 255, .08) 0 2px, transparent 3px) 0 0 / 46px 46px, linear-gradient(180deg, #183a7c, #0f2757); --sec-onda: #183a7c; color: #fff; }
.conteudo.moderno > #materiais { --sec-bg: #fff6dc; --sec-onda: #fff6dc; }
.conteudo.moderno > #apoio { --sec-bg: linear-gradient(180deg, #eef5ff, #e2eeff); --sec-onda: #eef5ff; }
.conteudo.moderno > #agenda { --sec-bg: linear-gradient(180deg, #e9f7e3, #d9f0d0); --sec-onda: #e9f7e3; }
.rodape { position: relative; --onda: var(--azul); }
.conteudo.moderno h2 { font-size: clamp(1.7rem, 3.6vw, 2.6rem); }
.conteudo.moderno .etiqueta { box-shadow: 0 3px 0 #e3b21c; }
.conteudo.moderno .bloco-img-proposta { filter: drop-shadow(0 18px 22px rgba(20, 48, 107, .22)); }

/* Metodologia com a ovelhinha */
.metodo-ovelha { float: right; width: clamp(150px, 20vw, 230px); height: auto; margin: -6px 0 6px 22px; filter: drop-shadow(0 12px 16px rgba(20, 48, 107, .2)); }
.conteudo.moderno #metodologia .passos { clear: both; }
@media (max-width: 700px) { .metodo-ovelha { float: none; display: block; margin: 0 auto 10px; width: 190px; } }

/* ---------- 3. Ciclos como uma jornada ---------- */
.bloco-jornada { text-align: center; }
.bloco-jornada h2, .bloco-jornada > p { color: #fff; }
.bloco-jornada > p { color: #d6e4ff; max-width: 620px; margin-left: auto; margin-right: auto; text-align: center; }
.numeros { list-style: none; display: flex; justify-content: center; flex-wrap: wrap; gap: clamp(20px, 5vw, 64px); margin: 26px 0 46px; padding: 0; }
.numeros b { display: block; font: 800 clamp(2.2rem, 5.4vw, 3.4rem)/1 'Baloo 2', sans-serif; color: #ffd23f; text-shadow: 0 3px 0 rgba(0, 0, 0, .25); }
.numeros span { color: #cfe0ff; font-weight: 800; font-size: .92rem; }
.jornada { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; position: relative; text-align: left; }
.jornada::before { content: ''; position: absolute; left: 12.5%; right: 12.5%; top: 22px; border-top: 4px dotted rgba(255, 255, 255, .55); transform-origin: left center; }
.jn { position: relative; padding-top: 58px; --c: #3fae4a; }
.jn2 { --c: #2f7dd1; } .jn3 { --c: #8e4fd0; } .jn4 { --c: #f39a1e; }
.jn-pin { position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center;
  font: 800 1.35rem 'Baloo 2', sans-serif; color: #fff; background: var(--c); box-shadow: 0 0 0 4px #fff, 0 8px 18px rgba(0, 0, 0, .35); z-index: 1; }
.jn a { display: block; text-decoration: none; color: #fff; border-radius: 22px; overflow: hidden; background: var(--c); box-shadow: 0 14px 30px rgba(0, 0, 0, .3); transition: transform .25s, box-shadow .25s; }
.jn a:hover, .jn a:focus-visible { transform: translateY(-8px) rotate(-.6deg); box-shadow: 0 24px 42px rgba(0, 0, 0, .4); outline: 0; }
.jn img { display: block; width: 100%; height: auto; }
.jn-txt { display: block; padding: 12px 16px 15px; }
.jn-txt em { display: block; font: 800 .78rem 'Baloo 2', sans-serif; font-style: normal; text-transform: uppercase; letter-spacing: .09em; opacity: .92; }
.jn-txt b { display: block; font: 800 1.15rem/1.15 'Baloo 2', sans-serif; margin: 2px 0; }
.jn-txt small { opacity: .92; font-weight: 800; }
@media (max-width: 980px) { .jornada { grid-template-columns: repeat(2, 1fr); row-gap: 8px; } .jornada::before { display: none; } }
@media (max-width: 700px) {
  .jornada { grid-template-columns: 1fr; gap: 16px; padding-left: 38px; }
  .jornada::before { display: block; left: 19px; right: auto; top: 18px; bottom: 18px; border-top: 0; border-left: 4px dotted rgba(255, 255, 255, .55); transform-origin: center top; }
  .jn { padding-top: 0; }
  .jn-pin { left: -38px; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; font-size: 1.15rem; }
  .jn a { display: grid; grid-template-columns: 104px 1fr; align-items: stretch; border-radius: 18px; }
  .jn img { height: 100%; object-fit: cover; }
  .jn-txt { align-self: center; padding: 10px 14px; }
}

/* ---------- 4. Formação + Família + Público numa faixa só ---------- */
.tres { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(18px, 3vw, 40px); }
.tres-col { text-align: center; background: #fff; border-radius: 26px; padding: 26px 24px 28px; box-shadow: 0 12px 30px rgba(29, 59, 122, .1); scroll-margin-top: 110px; transition: transform .25s, box-shadow .25s; }
.tres-col:hover { transform: translateY(-6px); box-shadow: 0 20px 38px rgba(29, 59, 122, .16); }
.tres-col img { width: 84px; height: 84px; display: block; margin: 0 auto 10px; }
.tres-col h2 { font-size: clamp(1.25rem, 2.2vw, 1.6rem) !important; margin: 10px 0 8px; }
.tres-col p { margin: 0; text-align: center; font-size: .96rem; line-height: 1.6; }
@media (max-width: 900px) { .tres { grid-template-columns: 1fr; } }

/* ---------- 5. Agenda sem eventos ---------- */
.agenda-vazia { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; background: #fff; border-radius: 22px; padding: 18px 22px; box-shadow: 0 8px 22px rgba(29, 59, 122, .08); }
.agenda-vazia img { width: 120px; height: auto; flex: none; }
.agenda-vazia p { margin: 0; flex: 1; min-width: 220px; font-weight: 700; color: var(--suave); text-align: left; }
.agenda-vazia .btn-sistema { margin: 0; }

/* ---------- 6. Ecossistema em abas no celular ---------- */
.eco-abas { display: none; gap: 6px; justify-content: center; margin: 4px 0 14px; }
.eco-abas button { border: 0; cursor: pointer; padding: 9px 16px; border-radius: 999px; background: #eef3fb; color: #2459b8; font: 800 .95rem 'Baloo 2', sans-serif; }
.eco-abas button.on { background: #14306b; color: #fff; box-shadow: 0 4px 10px rgba(20, 48, 107, .3); }
@media (max-width: 900px) {
  .eco-fases[data-abas] ~ .eco-abas, .eco-abas.pronto { display: flex; }
  .eco-fases[data-abas] .eco-fase:not(.on) { display: none; }
}

/* ---------- 7/10. Aparecer ao rolar ---------- */
@media (prefers-reduced-motion: no-preference) {
  html.rev [data-rev] { opacity: 0; transform: translateY(30px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); transition-delay: calc(var(--d, 0) * 90ms); }
  html.rev [data-rev].vis { opacity: 1; transform: none; }
  html.rev .jornada::before { transform: scaleX(0); transition: transform 1.4s ease .2s; }
  html.rev .jornada.vis::before { transform: scaleX(1); }
  @media (max-width: 700px) { html.rev .jornada::before { transform: scaleY(0); } html.rev .jornada.vis::before { transform: scaleY(1); } }

  /* 11. brilho passando no botão principal */
  .cta, .btn-grande, .eco-cta, .bf-sistema { position: relative; overflow: hidden; }
  .cta::after, .btn-grande::after, .eco-cta::after, .bf-sistema::after { content: ''; position: absolute; top: 0; bottom: 0; width: 40%; left: -60%;
    background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .65), transparent); transform: skewX(-18deg); animation: brilho 4.2s ease-in-out 1.5s infinite; pointer-events: none; }
  @keyframes brilho { 0%, 55% { left: -60%; } 100% { left: 130%; } }
  /* 8. áreas dos ciclos na hero reagem ao passar o mouse */
  .hot a { transition: transform .2s, box-shadow .2s, background .2s; }
  .hot a:hover { transform: translateY(-6px) scale(1.04); background: radial-gradient(circle at 50% 35%, rgba(255, 255, 255, .3), transparent 70%); }
}

/* ---------- 9. Topbar que encolhe ao rolar ---------- */
@media (min-width: 701px) {
  .topo-barra, .topo .marca-selo { transition: min-height .25s, padding .25s, width .25s, box-shadow .25s; }
  .topo { transition: padding .25s; }
  .topo.rolou { padding-top: 6px; }
  .topo.rolou .topo-barra { min-height: 54px; padding-left: 96px; box-shadow: 0 10px 30px rgba(20, 48, 107, .26), inset 0 0 0 1px rgba(255, 255, 255, .8); }
  .topo.rolou .marca-selo { width: 78px; }
  .topo.rolou .marca em { display: none; }
}

/* ---------- 13/14/15. Celular ---------- */
.barra-fixa { display: none; }
@media (max-width: 700px) {
  body:has(#barra-fixa) { padding-bottom: 86px; }
  .barra-fixa { display: flex; gap: 10px; position: fixed; z-index: 48; left: 12px; right: 12px; bottom: max(12px, env(safe-area-inset-bottom)); transform: translateY(150%); transition: transform .35s cubic-bezier(.2, .8, .2, 1); }
  .barra-fixa.vis { transform: none; }
  .bf-sistema { flex: 1; display: flex; align-items: center; justify-content: center; gap: 10px; padding: 11px 16px; border-radius: 999px; background: linear-gradient(180deg, #ffe066, #ffcc1f); color: #14306b;
    font: 800 1.08rem 'Baloo 2', sans-serif; text-decoration: none; box-shadow: 0 5px 0 #e3a917, 0 14px 28px rgba(20, 48, 107, .35); }
  .bf-sistema b { font-size: 1.4rem; line-height: 0; }
  .bf-sistema .ic-user { width: 28px; height: 28px; }
  .bf-kids { display: grid; place-items: center; padding: 0 16px; border-radius: 999px; background: #fff; box-shadow: 0 5px 0 #c9d6ee, 0 14px 28px rgba(20, 48, 107, .3); text-decoration: none; font-size: 1.05rem; }
  .barra-fixa .av-logado { width: 30px; height: 30px; }
  /* menu do celular: alvos grandes, com ícone */
  .gaveta a { display: flex; align-items: center; gap: 14px; padding: 14px 8px; font-size: 1.1rem; }
  .gaveta a svg { width: 28px; height: 28px; flex: none; fill: none; stroke: var(--azul-linha); stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
  .gaveta a.ativo { background: #eef4ff; border-radius: 12px; }
  /* cartões que deslizam de lado */
  .faixa, .cards { display: flex !important; overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px; padding-bottom: 14px; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .faixa::-webkit-scrollbar, .cards::-webkit-scrollbar { display: none; }
  .faixa { margin-top: 18px !important; border-radius: 22px; background: transparent !important; box-shadow: none !important; }
  .faixa a, .cards article { flex: 0 0 78%; scroll-snap-align: center; border: 0 !important; background: #fff; border-radius: 18px; box-shadow: 0 6px 16px rgba(29, 59, 122, .12); }
  .faixa a:first-child { margin-left: 4px; } .faixa a:last-child { margin-right: 4px; }
  .passos { grid-template-columns: 1fr 1fr !important; gap: 10px; }
  .conteudo.moderno > .bloco { scroll-margin-top: 72px; }
}
@media (max-width: 700px) { .numeros { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 10px; margin: 22px 0 36px; } }
@media (max-width: 700px) { .gaveta { max-height: calc(100vh - 84px) !important; max-height: calc(100dvh - 84px) !important; overflow-y: auto !important; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; } }

/* Outra Regional: a arte do topo traz "Regional Vale do Paraíba" desenhado; o selo abaixo cobre com o nome da Regional do site. */
.arte { container-type: inline-size; }
.hero-regional { display: none; }
body[data-regional-padrao="0"] .hero-regional { display: grid; place-items: center; position: absolute; z-index: 2; left: 45.4%; top: 35.6%; width: 23%; height: 9.2%;
  border-radius: 999px; background: linear-gradient(180deg, #ffe35a 0%, #ffd21f 55%, #ffc400 100%); box-shadow: inset 0 -.25cqw 0 rgba(214, 140, 0, .55), 0 .3cqw .8cqw rgba(20, 48, 107, .25);
  font-family: 'Baloo 2', 'Nunito', system-ui, sans-serif; font-weight: 800; color: #14306b; font-size: 1.72cqw; line-height: 1; padding: 0 1.2cqw; white-space: nowrap; overflow: hidden; pointer-events: none; }
body[data-regional-padrao="0"] .hero-regional > span { display: block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 700px) {
  body[data-regional-padrao="0"] .hero-regional { left: 50.8%; top: 30.9%; width: 45.2%; height: 4.9%; font-size: 3.5cqw; padding: 0 2cqw; box-shadow: inset 0 -.5cqw 0 rgba(214, 140, 0, .55), 0 .6cqw 1.4cqw rgba(20, 48, 107, .25); }
}
/* 05/12: no celular os cartões da 2ª seção cabem na tela (grade 2 colunas, sem arrastar de lado) */
@media (max-width: 700px) {
  .faixa { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)); overflow: visible; scroll-snap-type: none; gap: 10px; padding: 0 2px 4px; margin-left: 14px !important; margin-right: 14px !important; }
  .faixa a { flex: none; min-width: 0; flex-direction: column; justify-content: center; text-align: center; gap: 6px; padding: 14px 8px !important; margin: 0 !important; }
  .faixa a:last-child:nth-child(odd) { grid-column: 1 / -1; flex-direction: row; text-align: left; justify-content: center; }
  .faixa i.ic-img img { width: 40px; height: 40px; }
  .faixa b { font-size: .9rem; overflow-wrap: anywhere; }
  .faixa em { font-size: .72rem; line-height: 1.25; display: block; }
}
/* 05/12: "Acessar o Sistema" do menu ☰ do site com o texto centralizado no botão */
@media (max-width: 700px) { .gaveta a.btn-sistema { justify-content: center; text-align: center; } }
/* 05/12: barra "Acessar o Sistema" fica parada no rodapé — aparece/some no lugar, sem deslizar junto com a rolagem */
@media (max-width: 700px) {
  .barra-fixa { transform: none !important; opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .25s ease, visibility .25s; backface-visibility: hidden; }
  .barra-fixa.vis { opacity: 1; visibility: visible; pointer-events: auto; }
}
