/* Sistema EBI — tela de entrada reconstruída em HTML/CSS a partir da arte aprovada */
:root {
  --azul: #1d3b7a; --azul-escuro: #152f66; --azul-2: #2f6fd6; --amarelo: #ffd23f;
  --creme: #fff8ea; --texto: #213052; --suave: #5b6b8c;
  --sombra: 0 10px 30px rgba(29, 59, 122, .14);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: 'Nunito', system-ui, sans-serif; color: var(--texto);
  background: linear-gradient(180deg, #5cb1e8 0%, #8fd0f6 30%, #cdeafd 55%, #eaf7ff 75%, #fff 100%); min-height: 100vh; }
img { max-width: 100%; display: block; }

.palco { position: relative; max-width: 1440px; margin: 0 auto; overflow: hidden; min-height: 100vh; display: flex; flex-direction: column; }

/* Paisagem */
.paisagem { position: absolute; inset: 0; pointer-events: none; }
.morros { position: absolute; left: 0; right: 0; top: 150px; width: 100%; height: 300px; }
.nuvem { position: absolute; background: #fff; opacity: .95; border-radius: 999px; }
.nuvem::before, .nuvem::after { content: ''; position: absolute; background: #fff; border-radius: 50%; }
.n1 { top: 100px; left: 26%; width: 120px; height: 34px; }
.n1::before { width: 50px; height: 50px; top: -22px; left: 16px; }
.n1::after { width: 36px; height: 36px; top: -13px; left: 60px; }
.n2 { top: 70px; right: 8%; width: 150px; height: 40px; }
.n2::before { width: 60px; height: 60px; top: -26px; left: 24px; }
.n2::after { width: 42px; height: 42px; top: -15px; left: 76px; }
.n3 { top: 215px; left: 42%; width: 96px; height: 28px; opacity: .85; }
.n3::before { width: 40px; height: 40px; top: -17px; left: 14px; }
.n3::after { width: 28px; height: 28px; top: -10px; left: 48px; }
.n4 { top: 180px; right: 2%; width: 90px; height: 26px; opacity: .8; }
.n4::before { width: 36px; height: 36px; top: -15px; left: 12px; }
.n4::after { width: 26px; height: 26px; top: -9px; left: 44px; }
.moita { position: absolute; background: #79c155; border-radius: 50% 50% 40% 40%; }
.moita::before { content: ''; position: absolute; background: #8ed06a; border-radius: 50%; inset: 12% 20% 30% 15%; }
.m1 { left: -40px; top: 210px; width: 150px; height: 120px; }
.m2 { left: 40px; top: 290px; width: 110px; height: 90px; background: #5eae3e; }
.m3 { right: -30px; top: 250px; width: 140px; height: 110px; }

/* Logo mascote */
.selo { position: absolute; z-index: 6; top: 6px; left: 14px; width: 170px; }
.selo img { filter: drop-shadow(0 6px 14px rgba(21, 47, 102, .25)); }

/* Menu superior */
.nav-pill { position: relative; z-index: 5; display: flex; align-items: center; gap: 10px;
  margin: 14px 18px 0 200px; padding: 8px 10px; background: #fff; border-radius: 999px; box-shadow: var(--sombra); }
.nav-itens { display: flex; align-items: center; gap: 2px; flex: 1; justify-content: space-evenly; flex-wrap: wrap; }
.nav-itens a { display: inline-flex; align-items: center; gap: 7px; padding: 9px 13px; border-radius: 999px;
  text-decoration: none; color: var(--azul); font-weight: 800; font-size: .88rem; white-space: nowrap; }
.nav-itens a i { font-style: normal; font-size: 1rem; line-height: 1; }
.nav-itens a:hover { background: #eaf2ff; }
.nav-itens a.ativo { background: var(--azul-2); color: #fff; box-shadow: 0 4px 10px rgba(47, 111, 214, .35); }
.lupa { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; border: 0;
  background: #fff; box-shadow: 0 0 0 2px #e3edfb inset; font-size: 1.05rem; text-decoration: none; }
.lupa:hover { background: #eaf2ff; }
.btn-professor { display: inline-flex; align-items: center; gap: 8px; background: var(--azul-2); color: #fff;
  text-decoration: none; font-weight: 800; font-size: .92rem; padding: 11px 20px; border-radius: 999px;
  box-shadow: 0 6px 14px rgba(47, 111, 214, .4); white-space: nowrap; }
.btn-professor:hover { background: var(--azul); }
.burger { display: none; font-size: 1.5rem; background: none; border: 0; color: var(--azul); cursor: pointer; }
.gaveta { display: none; }

/* Hero */
.hero { position: relative; z-index: 2; display: grid; grid-template-columns: 1.05fr 1fr; align-items: center;
  gap: 10px; padding: 34px 30px 0 60px; }
.hero-texto h1 { position: relative; margin: 10px 0 18px; font-family: 'Baloo 2', sans-serif; font-weight: 800;
  color: var(--azul-escuro); font-size: clamp(2.4rem, 4.6vw, 4rem); line-height: 1.04;
  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, .3); }
.faisca { position: absolute; top: -26px; left: -6px; color: var(--amarelo); font-size: 1.5rem;
  text-shadow: 14px 10px 0 var(--amarelo); transform: rotate(-12deg); }
.fita { display: inline-block; background: var(--amarelo); color: var(--azul-escuro); font-weight: 800;
  font-size: clamp(.95rem, 1.6vw, 1.2rem); padding: 10px 26px; border-radius: 6px; transform: rotate(-1.5deg);
  box-shadow: 0 8px 18px rgba(21, 47, 102, .22); }
.ovelhinha { width: 100%; max-width: 560px; justify-self: end; margin-bottom: -26px; }

/* Cards de módulos */
.modulos { position: relative; z-index: 3; display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px;
  padding: 10px 28px 0; }
.modulos a { display: grid; justify-items: center; align-content: center; gap: 8px; background: #fff;
  border-radius: 22px; padding: 22px 10px; text-decoration: none; box-shadow: 0 10px 24px rgba(29, 59, 122, .14);
  transition: transform .15s; }
.modulos a:hover { transform: translateY(-4px); }
.modulos i { font-style: normal; font-size: 2rem; line-height: 1; }
.modulos b { font-family: 'Baloo 2', sans-serif; color: var(--azul); font-size: .92rem; line-height: 1.15; text-align: center; }

/* Bloco inferior */
.painel { position: relative; z-index: 3; display: grid; grid-template-columns: 1fr 2px 1.7fr; gap: 30px;
  background: #fff; border-radius: 34px 34px 0 0; margin: 26px 20px 0; padding: 36px 40px 30px; flex: 1;
  box-shadow: 0 -8px 30px rgba(29, 59, 122, .08); }
.rede h2 { position: relative; margin: 0 0 12px; font-family: 'Baloo 2', sans-serif; color: var(--azul-escuro);
  font-size: clamp(1.3rem, 2vw, 1.6rem); line-height: 1.2; }
.faisca2 { position: absolute; top: -18px; left: -22px; color: var(--amarelo); font-size: 1.1rem;
  text-shadow: 10px 8px 0 var(--amarelo); transform: rotate(-12deg); }
.rede p { margin: 0 0 18px; color: var(--suave); font-weight: 600; line-height: 1.6; font-size: .95rem; }
.btn-conheca { display: inline-flex; align-items: center; gap: 8px; background: var(--azul); color: #fff;
  text-decoration: none; font-weight: 800; padding: 11px 24px; border-radius: 999px; box-shadow: var(--sombra); }
.btn-conheca:hover { background: var(--azul-2); }
.divisor { background: #e6edf8; border-radius: 2px; }
.ciclos-aprend h2 { display: flex; align-items: center; gap: 10px; margin: 0 0 16px;
  font-family: 'Baloo 2', sans-serif; color: var(--azul-escuro); font-size: clamp(1.3rem, 2vw, 1.6rem); }
.ciclos-aprend h2 i { font-style: normal; font-size: 1.4rem; }
.ciclo-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.cc { display: grid; justify-items: center; align-content: center; gap: 6px; border-radius: 22px;
  padding: 24px 12px; text-decoration: none; box-shadow: 0 8px 20px rgba(29, 59, 122, .1); transition: transform .15s; }
.cc:hover { transform: translateY(-4px); }
.cc i { font-style: normal; font-size: 1.8rem; line-height: 1; }
.cc b { font-family: 'Baloo 2', sans-serif; color: var(--azul-escuro); font-size: 1.15rem; }
.cc span { color: var(--texto); font-weight: 700; font-size: .82rem; text-align: center; line-height: 1.25; }
.c1 { background: linear-gradient(180deg, #eef9ef, #d9f0dc); }
.c2 { background: linear-gradient(180deg, #f1f9e7, #e2f2cf); }
.c3 { background: linear-gradient(180deg, #fdf4cd, #fae9a8); }
.c4 { background: linear-gradient(180deg, #f2ecfc, #e5d9f8); }

.rodape-verde { line-height: 0; margin-top: auto; }
.rodape-verde svg { width: 100%; height: 54px; }

/* ---------- Tablet / celular ---------- */
@media (max-width: 1180px) {
  .nav-itens a { font-size: .78rem; padding: 8px 9px; }
  .modulos { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 920px) {
  .selo { width: 130px; }
  .nav-pill { margin-left: 150px; }
  .nav-itens, .lupa { display: none; }
  .btn-professor { margin-left: auto; }
  .burger { display: block; }
  .gaveta { display: grid; position: absolute; z-index: 9; top: 74px; left: 18px; right: 18px; background: #fff;
    border-radius: 22px; 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-professor { margin-top: 10px; justify-content: center; border: 0; }
  .hero { grid-template-columns: 1fr; padding: 26px 20px 0; text-align: center; }
  .hero-texto h1 { margin-top: 0; }
  .faisca { left: 10px; }
  .ovelhinha { justify-self: center; margin-bottom: -14px; max-width: 420px; }
  .painel { grid-template-columns: 1fr; margin: 22px 12px 0; padding: 28px 22px 24px; }
  .divisor { display: none; }
  .ciclo-cards { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .modulos { grid-template-columns: repeat(2, 1fr); gap: 12px; padding: 8px 14px 0; }
  .ciclo-cards { grid-template-columns: 1fr 1fr; }
}
