/* Portal EBI — layout reconstruído em HTML/CSS a partir da arte aprovada */
:root {
  --azul: #1d3b7a; --azul-escuro: #152f66; --azul-2: #2f6fd6; --verde: #4caf3c; --amarelo: #ffd23f;
  --laranja: #f39a1e; --roxo: #8e4fd0; --creme: #fff8ea; --branco: #fff; --texto: #213052; --suave: #5b6b8c;
  --raio: 22px; --sombra: 0 10px 30px rgba(29, 59, 122, .12);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 86px; }
body { margin: 0; padding-top: 72px; font-family: 'Nunito', system-ui, sans-serif; color: var(--texto); background: var(--creme); }
img { max-width: 100%; display: block; }

/* ---------- Barra superior ---------- */
.topo {
  position: fixed; inset: 0 0 auto 0; z-index: 50; display: flex; align-items: center; gap: 18px;
  padding: 8px 20px; background: rgba(255, 255, 255, .97); backdrop-filter: blur(8px);
  box-shadow: 0 4px 18px rgba(29, 59, 122, .14); min-height: 72px;
}
.marca { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--azul);
  background: #fff; border: 2px solid #d9e6fb; border-radius: 999px; padding: 4px 16px 4px 6px; box-shadow: 0 3px 10px rgba(29,59,122,.08); }
.marca img { width: 44px; height: 42px; border-radius: 50%; object-fit: cover; }
.marca strong { display: block; font-family: 'Baloo 2', sans-serif; font-size: 1rem; line-height: 1.1; }
.marca em { display: inline-block; font-style: normal; font-weight: 800; font-size: .7rem; background: var(--amarelo); padding: 1px 10px; border-radius: 999px; }
.menu { display: flex; gap: 6px; margin-left: auto; }
.menu a { display: flex; flex-direction: column; align-items: center; gap: 2px; text-decoration: none;
  color: var(--azul); font-weight: 800; font-size: .76rem; padding: 6px 10px; border-radius: 14px; }
.menu a i { font-style: normal; font-size: 1.15rem; line-height: 1; padding: 6px 9px; border-radius: 10px; }
.menu a:hover { background: #eaf2ff; }
.menu a.ativo i { background: var(--azul-2); }
.btn-sistema { background: var(--azul); color: #fff; text-decoration: none; font-weight: 800; padding: 10px 20px;
  border-radius: 999px; white-space: nowrap; box-shadow: var(--sombra); }
.btn-sistema:hover { background: var(--azul-2); }
.burger { display: none; margin-left: auto; font-size: 1.5rem; background: none; border: 0; color: var(--azul); cursor: pointer; }
.gaveta { display: none; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; min-height: 620px;
  background: linear-gradient(180deg, #3f9fe0 0%, #7ec4f2 42%, #c2e8fd 68%, #d9f2ff 100%); }
.paisagem { position: absolute; inset: 0; pointer-events: none; }
.morros { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 62%; }
.nuvem { position: absolute; background: #fff; opacity: .92; border-radius: 999px; }
.nuvem::before, .nuvem::after { content: ''; position: absolute; background: #fff; border-radius: 50%; }
.n1 { top: 9%; left: 30%; width: 120px; height: 34px; }
.n1::before { width: 52px; height: 52px; top: -24px; left: 18px; }
.n1::after { width: 38px; height: 38px; top: -14px; left: 62px; }
.n2 { top: 16%; right: 6%; width: 150px; height: 40px; }
.n2::before { width: 62px; height: 62px; top: -28px; left: 24px; }
.n2::after { width: 44px; height: 44px; top: -16px; left: 78px; }
.n3 { top: 36%; right: 30%; width: 90px; height: 26px; opacity: .8; }
.n3::before { width: 38px; height: 38px; top: -16px; left: 14px; }
.n3::after { width: 28px; height: 28px; top: -10px; left: 44px; }

.cena { position: absolute; left: 0; bottom: 0; width: 46%; max-width: 640px; min-width: 330px; height: auto; z-index: 2; }

.hero-inner { position: relative; z-index: 3; max-width: 680px; margin-left: clamp(330px, 46%, 660px);
  padding: 44px 28px 56px 8px; display: grid; justify-items: center; text-align: center; gap: 14px; }

.logo-ebi { margin: 0; display: flex; align-items: center; gap: 14px; font-family: 'Baloo 2', sans-serif; position: relative; }
.logo-ebi .faisca { position: absolute; left: -34px; top: -6px; color: var(--amarelo); font-size: 1.6rem;
  text-shadow: 10px 22px 0 var(--amarelo); transform: rotate(-15deg); }
.logo-ebi .ebi { font-size: clamp(3.6rem, 7vw, 5.6rem); font-weight: 800; color: var(--azul-escuro); line-height: .9;
  text-shadow: 3px 3px 0 #fff, -3px 3px 0 #fff, 3px -3px 0 #fff, -3px -3px 0 #fff, 0 3px 0 #fff, 0 -3px 0 #fff, 3px 0 0 #fff, -3px 0 0 #fff, 0 10px 22px rgba(21, 47, 102, .35); }
.logo-ebi .resto { font-size: clamp(1.5rem, 2.6vw, 2.2rem); font-weight: 800; color: var(--azul-escuro); line-height: 1.02; text-align: left;
  text-shadow: 2px 2px 0 #fff, -2px 2px 0 #fff, 2px -2px 0 #fff, -2px -2px 0 #fff, 0 8px 18px rgba(21, 47, 102, .3); }

.badge-regional { background: var(--amarelo); color: var(--azul-escuro); font-family: 'Baloo 2', sans-serif; font-weight: 800;
  font-size: clamp(1.1rem, 2vw, 1.5rem); padding: 8px 28px; border-radius: 18px; box-shadow: 0 6px 16px rgba(21, 47, 102, .25); }
.sub { margin: 0; color: var(--azul-escuro); font-weight: 800; font-size: clamp(.95rem, 1.5vw, 1.12rem); line-height: 1.5;
  text-shadow: 0 1px 0 rgba(255,255,255,.6); }

/* Trilha dos ciclos */
.trilha { position: relative; display: flex; align-items: flex-start; gap: 18px; margin-top: 10px; padding: 0 10px; }
.trilha::before { content: ''; position: absolute; left: -24px; right: -10px; top: 118px; border-top: 4px dashed #fff; opacity: .95; }
.pino { position: relative; z-index: 1; width: 108px; height: 122px; border-radius: 50% 50% 50% 50% / 46% 46% 54% 54%;
  display: grid; align-content: center; justify-items: center; gap: 1px; text-decoration: none; color: #fff;
  box-shadow: 0 8px 18px rgba(21, 47, 102, .28), inset 0 -6px 0 rgba(0, 0, 0, .12); transition: transform .15s; }
.pino:hover { transform: translateY(-4px); }
.pino::after { content: ''; position: absolute; left: 50%; bottom: -14px; transform: translateX(-50%);
  border: 12px solid transparent; border-top-width: 16px; border-bottom: 0; }
.pino i { font-style: normal; font-size: 1.25rem; line-height: 1; }
.pino b { font-family: 'Baloo 2', sans-serif; font-size: 1.05rem; line-height: 1.1; }
.pino span { font-size: .66rem; font-weight: 800; line-height: 1.15; text-align: center; opacity: .95; }
.p1 { background: linear-gradient(160deg, #7ecb4a, #4a9e2e); } .p1::after { border-top-color: #4a9e2e; }
.p2 { background: linear-gradient(160deg, #4aa5f0, #2163c6); } .p2::after { border-top-color: #2163c6; }
.p3 { background: linear-gradient(160deg, #ffb43c, #ee7f14); } .p3::after { border-top-color: #ee7f14; }
.p4 { background: linear-gradient(160deg, #b27ae8, #7c3fc4); } .p4::after { border-top-color: #7c3fc4; }
.bandeira { position: relative; align-self: flex-end; width: 5px; height: 86px; margin-bottom: -4px;
  background: #efe8d6; border-radius: 3px; box-shadow: 0 4px 10px rgba(21,47,102,.25); }
.bandeira::before { content: ''; position: absolute; top: 2px; left: 5px; border-top: 15px solid transparent;
  border-bottom: 15px solid transparent; border-left: 34px solid var(--laranja); filter: drop-shadow(0 3px 4px rgba(21,47,102,.25)); }

.cta { display: inline-flex; align-items: center; gap: 10px; margin-top: 16px; background: var(--amarelo);
  color: var(--azul-escuro); font-family: 'Baloo 2', sans-serif; font-weight: 800; font-size: 1.25rem;
  text-decoration: none; padding: 14px 34px; border-radius: 999px; box-shadow: 0 7px 0 #e3b21c, 0 14px 26px rgba(21, 47, 102, .3); transition: transform .15s; }
.cta:hover { transform: translateY(-2px); }
.cta i { font-style: normal; }
.cta b { font-size: 1.5rem; line-height: 0; }

/* ---------- Faixa de recursos ---------- */
.faixa { position: relative; z-index: 4; max-width: 1240px; margin: -34px auto 0; display: grid;
  grid-template-columns: repeat(5, 1fr); background: #fff; border-radius: 26px; box-shadow: 0 14px 34px rgba(29, 59, 122, .16); overflow: hidden; }
.faixa a { display: flex; align-items: center; gap: 12px; padding: 20px 18px; text-decoration: none; color: var(--texto); }
.faixa a + a { border-left: 1px solid #eef2fa; }
.faixa a:hover { background: #f6faff; }
.faixa i { font-style: normal; font-size: 1.7rem; }
.faixa b { display: block; font-family: 'Baloo 2', sans-serif; color: var(--azul); font-size: .95rem; line-height: 1.15; }
.faixa em { font-style: normal; font-size: .76rem; color: var(--suave); font-weight: 700; }

/* ---------- Três colunas ---------- */
.colunas { max-width: 1240px; margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; padding: 34px 20px 42px; }
.colunas a { display: flex; gap: 14px; align-items: flex-start; text-decoration: none; color: var(--texto); }
.colunas i { font-style: normal; font-size: 1.9rem; line-height: 1; }
.colunas b { display: block; font-family: 'Baloo 2', sans-serif; color: var(--azul); font-size: 1.15rem; margin-bottom: 4px; }
.colunas em { font-style: normal; color: var(--suave); font-weight: 600; line-height: 1.55; font-size: .92rem; }
.colunas a:hover b { color: var(--azul-2); }

.colinas { line-height: 0; }
.colinas svg { width: 100%; height: 60px; }

/* ---------- Seções ---------- */
.conteudo { max-width: 1120px; margin: 0 auto; padding: 32px 20px 60px; display: grid; gap: 28px; }
.bloco { background: var(--branco); border-radius: var(--raio); padding: 36px 40px; box-shadow: var(--sombra); }
.bloco-verde { background: linear-gradient(135deg, #effae9, #e3f4ff); }
.bloco-creme { background: #fffdf6; border: 2px solid #ffeec2; }
#sobre { display: grid; grid-template-columns: 1fr 260px; gap: 28px; align-items: center; }
.bloco-img { width: 260px; border-radius: var(--raio); }
.etiqueta { display: inline-block; background: var(--amarelo); color: var(--azul); font-weight: 800; font-size: .8rem; padding: 3px 14px; border-radius: 999px; }
h2 { font-family: 'Baloo 2', sans-serif; color: var(--azul); font-size: 2rem; margin: 10px 0 8px; line-height: 1.1; }
h3 { font-family: 'Baloo 2', sans-serif; color: var(--azul); margin: 0 0 6px; }
p { line-height: 1.65; color: var(--suave); }

.passos { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 18px; }
.passos div { background: #fff; border-radius: 18px; padding: 18px; display: grid; gap: 4px; }
.passos b { width: 34px; height: 34px; border-radius: 50%; background: var(--verde); color: #fff; display: grid; place-items: center; font-family: 'Baloo 2'; }
.passos span { color: var(--suave); font-size: .92rem; }

.ciclos { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 16px; }
.ciclo { border-radius: 24px; padding: 22px; color: #fff; box-shadow: var(--sombra); }
.ciclo span { font-family: 'Baloo 2'; font-weight: 800; font-size: 1.5rem; }
.ciclo h3 { color: #fff; font-size: 1.1rem; }
.ciclo p { color: rgba(255, 255, 255, .9); margin: 0; font-weight: 700; }
.c1 { background: linear-gradient(160deg, #6cc644, #3e9b2c); }
.c2 { background: linear-gradient(160deg, #46a3f2, #1f63c9); }
.c3 { background: linear-gradient(160deg, #ffb13b, #ef7d12); }
.c4 { background: linear-gradient(160deg, #b27ae8, #7c3fc4); }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 16px 0 22px; }
.cards article { background: #fff; border-radius: 18px; padding: 20px; box-shadow: 0 4px 14px rgba(29, 59, 122, .08); }
.cards p { margin: 0; }
.btn-grande { display: inline-block; background: var(--amarelo); color: var(--azul); font-weight: 800; text-decoration: none; padding: 14px 26px; border-radius: 999px; box-shadow: 0 6px 0 #e3b21c; }

.agenda { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 10px; }
.agenda li { background: #fff; border-radius: 16px; padding: 14px 18px; display: flex; gap: 14px; align-items: baseline; flex-wrap: wrap; }
.agenda time { font-weight: 800; color: var(--azul-2); text-transform: capitalize; }
.agenda span { color: var(--suave); }
.agenda .vazio { color: var(--suave); }

.rodape { background: var(--azul); color: #fff; display: flex; align-items: center; gap: 14px; padding: 24px max(20px, calc((100% - 1120px) / 2)); }
.rodape img { width: 54px; height: 52px; border-radius: 50%; object-fit: cover; border: 3px solid #fff; }
.rodape strong { display: block; font-family: 'Baloo 2'; font-size: 1.1rem; }
.rodape span { opacity: .85; }
.rodape .btn-sistema { margin-left: auto; background: var(--amarelo); color: var(--azul); }

/* ---------- Tablet / celular ---------- */
@media (max-width: 1180px) {
  .menu a { padding: 6px 6px; font-size: .7rem; }
  .pino { width: 94px; height: 108px; }
  .trilha::before { top: 104px; }
  .faixa { grid-template-columns: repeat(3, 1fr); margin-left: 16px; margin-right: 16px; }
  .faixa a + a { border-left: 0; }
  .faixa a { border-top: 1px solid #eef2fa; }
  .faixa a:nth-child(-n+3) { border-top: 0; }
}
@media (max-width: 980px) {
  .menu { display: none; }
  .topo .topo-btn { margin-left: auto; }
  .hero { min-height: 0; }
  .cena { position: relative; width: min(78%, 420px); margin: 0 auto; display: block; }
  .hero-inner { margin: 0 auto; padding: 36px 20px 10px; }
  .hero { display: flex; flex-direction: column-reverse; }
  .passos, .ciclos { grid-template-columns: repeat(2, 1fr); }
  .cards { grid-template-columns: 1fr; }
  .colunas { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  body { padding-top: 62px; }
  .topo { min-height: 62px; }
  .topo .topo-btn { display: none; }
  .marca strong { font-size: .9rem; }
  .burger { display: block; }
  .gaveta { display: grid; position: fixed; z-index: 49; top: 62px; left: 0; right: 0; background: #fff; padding: 8px 16px 16px;
    box-shadow: var(--sombra); transform: translateY(-130%); transition: transform .25s; }
  .gaveta.aberta { transform: none; }
  .gaveta a { padding: 12px 6px; color: var(--azul); font-weight: 800; text-decoration: none; border-bottom: 1px solid #eef2fa; }
  .gaveta .btn-sistema { margin-top: 10px; text-align: center; color: #fff; border: 0; }
  .logo-ebi { gap: 10px; }
  .logo-ebi .faisca { display: none; }
  .trilha { flex-wrap: wrap; justify-content: center; gap: 14px; }
  .trilha::before { display: none; }
  .bandeira { display: none; }
  .faixa { grid-template-columns: 1fr; }
  .faixa a { border-top: 1px solid #eef2fa; }
  .faixa a:first-child { border-top: 0; }
  .bloco { padding: 26px 20px; }
  #sobre { grid-template-columns: 1fr; }
  .bloco-img { width: 200px; margin: 0 auto; }
  h2 { font-size: 1.6rem; }
  .passos, .ciclos { grid-template-columns: 1fr; }
  .rodape { flex-wrap: wrap; }
  .rodape .btn-sistema { margin-left: 0; }
}
