/* Colégio Rui Barbosa: complementos do site novo (carrossel próprio, baterias, 404). */

/* ---------- carrossel do topo (mesmas medidas do anterior) ---------- */
.crb-hero{position:relative;padding:min(8.446%, calc(450px - 27.846%)) 0}
.crb-hero--vazio{display:none}
.crb-hero__palco{position:relative}
.crb-hero__slides{position:relative;aspect-ratio:1616/900;overflow:hidden}
.crb-hero__slide{position:absolute;inset:0;opacity:0;visibility:hidden;transition:opacity .7s ease,visibility 0s linear .7s}
.crb-hero__slide.is-ativo{opacity:1;visibility:visible;z-index:1;transition:opacity .7s ease}
.crb-hero__slide a,.crb-hero__slide picture{display:block;width:100%;height:100%}
.crb-hero__slide img{display:block;width:100%;height:100%;object-fit:contain}
.crb-hero__seta{position:absolute;top:50%;z-index:2;width:40px;height:40px;margin-top:-20px;border:0;border-radius:50%;background:#fff;color:#aaa;display:flex;align-items:center;justify-content:center;cursor:pointer;padding:0;transition:color .2s ease}
.crb-hero__seta:hover{color:#000}
.crb-hero__seta:focus-visible,.crb-hero__ponto:focus-visible{outline:3px solid #ffcc2e;outline-offset:2px}
.crb-hero__seta--ant{left:40px}
.crb-hero__seta--prox{right:40px}
.crb-hero__pontos{position:absolute;left:0;right:0;bottom:20px;z-index:2;display:flex;justify-content:center;gap:16px}
.crb-hero__ponto{width:24px;height:24px;border:0;border-radius:50%;background:#e5e5e5;padding:0;cursor:pointer}
.crb-hero__ponto:hover{background:#d5d5d5}
.crb-hero__ponto[aria-current="true"]{background:#004bbf;box-shadow:0 0 0 2px #fff}
@media (max-width:479.98px){
  .crb-hero{padding:10.67% 0}
  .crb-hero__slides{aspect-ratio:750/1552}
}
@media (prefers-reduced-motion:reduce){.crb-hero__slide,.crb-hero__slide.is-ativo{transition:none}}

/* espaço das seções ainda sem conteúdo (mesma altura de antes) */
.crb-espaco{height:100px}

/* ---------- página de baterias ---------- */
.crb-subtitulo{margin:12px 0 0;color:#dfe8ff;font-size:20px;line-height:30px}
.crb-bat{display:flex;flex-direction:column;gap:0;padding:8px 0 24px;color:#21215d}
.crb-bat h2{margin:0;font-family:Quicksand,sans-serif;font-weight:700;font-size:28px;line-height:36px;color:#002e76}
.crb-bat__filtro{display:flex;align-items:center;gap:16px;flex-wrap:wrap;margin:24px 0 0}
.crb-bat__rotulo{font-family:Inter,sans-serif;font-weight:600;font-size:16px;color:#21215d}
.crb-bat__chips{display:flex;gap:8px;flex-wrap:wrap}
.crb-chip{min-height:44px;padding:0 20px;border-radius:999px;border:2px solid #c9d3ea;background:#fff;color:#002e76;font-family:Inter,sans-serif;font-weight:600;font-size:16px;cursor:pointer}
.crb-chip:hover{border-color:#002e76}
.crb-chip[aria-pressed="true"]{background:#002e76;border-color:#002e76;color:#fff}
.crb-chip:focus-visible,.crb-btn:focus-visible,.crb-btn-o:focus-visible{outline:3px solid #ffcc2e;outline-offset:2px}
.crb-bat__semana{margin-top:40px}
.crb-bat__cab{display:flex;align-items:baseline;justify-content:space-between;gap:16px;flex-wrap:wrap;margin-bottom:16px}
.crb-bat__cab p{margin:0;font-family:Inter,sans-serif;font-size:16px;color:#4a4f6a}
.crb-bat__cards{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}
.crb-bat__card{background:#fff;border:1px solid #e3e6ee;border-radius:20px;padding:24px;display:flex;flex-direction:column;gap:20px}
.crb-bat__card[hidden],.crb-btn-o[hidden],.crb-bat__linha[hidden]{display:none}
.crb-bat__topo{display:flex;align-items:center;justify-content:space-between;gap:8px}
.crb-bat__meta{font-family:Inter,sans-serif;font-size:14px;color:#5a5f7a}
.crb-bat__card h3{margin:0;font-family:Quicksand,sans-serif;font-weight:700;font-size:32px;line-height:36px;color:#002e76}
.crb-bat__cards--um{grid-template-columns:minmax(0,1fr)}
.crb-bat__cards--um .crb-bat__card{flex-direction:row;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:20px 24px;padding:24px 28px}
.crb-bat__cards--um .crb-btn{min-width:240px}
.crb-tag{display:inline-flex;align-items:center;height:28px;padding:0 12px;border-radius:999px;font-family:Inter,sans-serif;font-weight:600;font-size:14px}
.crb-tag--exatas{background:#002e76;color:#fff}
.crb-tag--humanas{background:#ffcc2e;color:#002e76}
.crb-btn{display:flex;align-items:center;justify-content:center;gap:8px;min-height:48px;padding:0 20px;border-radius:12px;background:#ffcc2e;color:#002e76;font-family:Inter,sans-serif;font-weight:700;font-size:16px;text-decoration:none}
.crb-btn:hover{background:#ffd95c;color:#002e76}
.crb-bat__vazio,.crb-bat__vazio-ant{margin:12px 0 0;font-family:Inter,sans-serif;font-size:16px;color:#4a4f6a}
.crb-bat__anteriores{margin-top:48px}
.crb-bat__anteriores h2{margin-bottom:16px}
.crb-bat__lista{display:flex;flex-direction:column;background:#fff;border:1px solid #e3e6ee;border-radius:20px;overflow:hidden}
.crb-bat__linha{display:flex;align-items:center;gap:24px;flex-wrap:wrap;padding:20px 24px;border-top:1px solid #e3e6ee}
.crb-bat__linha:first-child{border-top:0}
.crb-bat__quando{display:flex;align-items:center;gap:12px;width:240px;font-family:Inter,sans-serif;font-weight:600;font-size:16px;color:#21215d}
.crb-bat__quando .crb-tag{height:26px;padding:0 10px;font-size:13px}
.crb-bat__links{display:flex;gap:8px;flex-wrap:wrap}
.crb-btn-o{display:inline-flex;align-items:center;gap:8px;min-height:44px;padding:0 16px;border:1px solid #c9d3ea;border-radius:12px;background:#fff;color:#002e76;font-family:Inter,sans-serif;font-weight:600;font-size:15px;text-decoration:none}
.crb-btn-o:hover{background:#eef3ff;color:#002e76}
.crb-btn-o svg{width:18px;height:18px}
.crb-bat__ajuda{margin:24px 0 0;font-family:Inter,sans-serif;font-size:15px;line-height:24px;color:#4a4f6a}
.crb-bat__ajuda a{color:#004bbf;font-weight:600}
@media (max-width:960px){.crb-bat__cards{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:600px){
  .crb-subtitulo{font-size:17px;line-height:26px}
  .crb-bat h2{font-size:24px;line-height:32px}
  .crb-bat__chips{display:grid;grid-template-columns:repeat(auto-fit,minmax(64px,1fr));width:100%}
  .crb-chip{padding:0 6px;font-size:14px}
  .crb-bat__cards{gap:12px}
  .crb-bat__card{padding:16px;border-radius:18px;gap:12px}
  .crb-bat__card h3{font-size:26px;line-height:30px}
  .crb-bat__meta{font-size:12px;white-space:nowrap}
  .crb-so-pc{display:none}
  .crb-bat__card .crb-tag{height:24px;padding:0 10px;font-size:12px}
  .crb-btn{min-height:46px;font-size:15px;padding:0 12px}
  .crb-bat__cards--um .crb-btn{min-width:0;width:100%}
  .crb-bat__linha{flex-direction:column;align-items:stretch;gap:12px;padding:16px}
  .crb-bat__quando{width:auto}
  .crb-bat__links{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px}
  .crb-btn-o{justify-content:center;padding:0 4px;font-size:14px;gap:4px}
  .crb-btn-o svg{width:16px;height:16px}
}

/* ---------- página não encontrada ---------- */
.crb-404{padding:16px 0 64px;font-family:Inter,sans-serif;color:#21215d}
.crb-404 p{font-size:18px;line-height:28px;margin:0 0 24px}
.crb-404__acoes{display:flex;gap:12px;flex-wrap:wrap}
.crb-404__acoes .crb-btn{display:inline-flex}

/* ---------- botão do WhatsApp (fixo no canto, todas as páginas) ---------- */
.crb-zap,.crb-zap:visited,.crb-zap:hover,.crb-zap:focus{color:#fff;text-decoration:none}
.crb-zap{position:fixed;right:24px;bottom:24px;z-index:1000;display:inline-flex;align-items:center;gap:10px;height:56px;padding:0 22px 0 18px;border-radius:999px;background:#15803d;font-family:Inter,sans-serif;font-weight:700;font-size:16px;line-height:1;box-shadow:0 8px 24px rgba(0,0,0,.22),0 2px 6px rgba(0,0,0,.12);transition:background-color .2s ease,transform .2s ease}
.crb-zap:hover{background:#116a32;transform:translateY(-2px)}
.crb-zap:focus-visible{outline:3px solid #ffcc2e;outline-offset:3px}
.crb-zap svg{flex:none;width:24px;height:24px}
@media (max-width:600px){.crb-zap{right:16px;bottom:calc(16px + env(safe-area-inset-bottom,0px));height:52px;padding:0 18px 0 14px;font-size:15px;gap:8px}}
@media (prefers-reduced-motion:reduce){.crb-zap{transition:none}.crb-zap:hover{transform:none}}
@media print{.crb-zap{display:none}}
/* espaço no fim da página para o botão não cobrir a última linha do rodapé */
body:has(> .crb-zap)::after{content:"";display:block;height:64px}
@media (max-width:600px){body:has(> .crb-zap)::after{height:56px}}

/* título da página no banner azul (era h2, virou h1 para o Google) */
.banner-top h1{color:#fff;font-size:40px;font-weight:500;line-height:1.2;margin:0;padding:0}
@media (max-width:600px){.banner-top h1{font-size:30px}}
