/* NEA-UERJ — Base CSS (Dreamweaver CS6 friendly) */

:root{
  --bg: #0B0E2D;        /* azul institucional */
  --accent: #F2B632;    /* dourado */
  --text: #111318;
  --muted: #5E6572;
  --surface: #FFFFFF;
  --soft: #F5F5F5;
  --max: 1100px;
}

*{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin:0;
  font-family: "Open Sans", Arial, sans-serif;
  color: var(--text);
  background: var(--surface);
  line-height: 1.6;
}

img{ max-width:100%; height:auto; display:block; }

a{ color: inherit; text-decoration: none; }
a:hover{ text-decoration: underline; }

.container{
  width: min(var(--max), 92%);
  margin: 0 auto;
}

.skip-link{
  position:absolute; left:-999px; top:auto;
  width:1px; height:1px; overflow:hidden;
}
.skip-link:focus{
  left: 12px; top: 12px; width:auto; height:auto;
  padding:10px 12px;
  background: var(--accent);
  color:#000;
  z-index: 9999;
}

.site-header{
  background: var(--bg);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.header-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding: 12px 0;
  gap: 16px;
}

.brand{
  display:flex;
  align-items:center;
  gap: 6px;
  min-width: 220px;
}
.brand img{
  width: 80px;
  height: 96px;
  object-fit: contain;
}
.brand .title{
  font-family: "Montserrat", Arial, sans-serif;
  font-weight: 700;
  letter-spacing: .5px;
  line-height: 1.1;
}
.brand .subtitle{
  font-size: 12px;
  opacity: .85;
}

.nav-toggle{
  display:none;
  border: 1px solid rgba(255,255,255,.2);
  background: transparent;
  color:#fff;
  padding: 10px 12px;
  border-radius: 10px;
  cursor:pointer;
}

.site-nav ul{
  list-style:none;
  padding:0;
  margin:0;
  display:flex;
  gap: 16px;
  align-items:center;
}
.site-nav a{
  display:inline-block;
  padding: 10px 8px;
  font-size: 14px;
  opacity: .95;
}
.site-nav a.active{
  color: var(--accent);
  text-decoration: none;
}
.site-nav a:hover{
  text-decoration:none;
  opacity: 1;
}

.btn{
  display:inline-block;
  border-radius: 999px;
  padding: 10px 14px;
  font-weight: 600;
  border: 1px solid transparent;
}
.btn-primary{
  background: var(--accent);
  color:#000;
}
.btn-outline{
  border-color: rgba(255,255,255,.35);
  color:#fff;
  background: transparent;
}
.btn-primary:hover, .btn-outline:hover{ text-decoration:none; }

.hero{
  background: linear-gradient(180deg, rgba(11,14,45,1) 0%, rgba(11,14,45,.96) 55%, rgba(245,245,245,1) 56%);
  color:#fff;
  padding: 42px 0 18px;
}
.hero-inner{
  padding-bottom: 18px;
}
.hero h1{
  font-family: "Montserrat", Arial, sans-serif;
  margin:0 0 10px;
  font-size: 34px;
  line-height: 1.15;
}
.hero p{
  margin: 0 0 16px;
  max-width: 70ch;
  opacity: .92;
}
.hero-actions{ display:flex; gap: 10px; flex-wrap: wrap; }

.page-hero{
  background: var(--soft);
  padding: 26px 0;
  border-bottom: 1px solid #e9e9e9;
}
.page-hero h1{
  font-family: "Montserrat", Arial, sans-serif;
  margin:0 0 6px;
}
.page-hero p{ margin:0; color: var(--muted); max-width: 80ch; }

.section{
  padding: 30px 0;
}
.section h2{
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 22px;
  margin:0 0 14px;
}
.section p{ margin: 0 0 12px; color: var(--text); }
.muted{ color: var(--muted); }

.grid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.card{
  background: var(--surface);
  border: 1px solid #eaeaea;
  border-radius: 16px;
  padding: 16px;
}
.card h3{
  font-family: "Montserrat", Arial, sans-serif;
  margin: 0 0 8px;
  font-size: 16px;
}
.card p{ margin:0 0 10px; color: var(--muted); }
.card .link{
  color: var(--bg);
  font-weight: 600;
}

.list{
  margin: 0;
  padding-left: 18px;
}
.kpi{
  display:flex;
  gap: 10px;
  flex-wrap: wrap;
}
.badge{
  display:inline-block;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--soft);
  border: 1px solid #e9e9e9;
  font-size: 13px;
}

.table{
  width:100%;
  border-collapse: collapse;
  overflow:hidden;
  border-radius: 14px;
  border: 1px solid #eaeaea;
}
.table th, .table td{
  padding: 12px 10px;
  border-bottom: 1px solid #efefef;
  text-align:left;
  font-size: 14px;
}
.table th{
  background: var(--soft);
  font-weight: 700;
}

.site-footer{
  background: var(--bg);
  color:#fff;
  padding: 22px 0;
  margin-top: 26px;
}
.footer-grid{
  display:grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 18px;
  align-items:start;
}
.footer-grid a{ color: #fff; opacity:.92; }
.footer-grid a:hover{ opacity:1; text-decoration:none; }
.small{ font-size: 13px; opacity: .85; }

/* Responsive */
@media (max-width: 960px){
  .grid{ grid-template-columns: 1fr 1fr; }
  .footer-grid{ grid-template-columns: 1fr; }
}

@media (max-width: 768px){
  .nav-toggle{ display:inline-block; }
  .site-nav{ display:none; }
  .site-nav.open{ display:block; }
  .site-nav ul{
    flex-direction: column;
    align-items:flex-start;
    padding: 8px 0 14px;
    gap: 6px;
  }
  .hero h1{ font-size: 28px; }
  .brand{ min-width: auto; }
}

/* BANNERS (estáticos) */
.banner-topo,
.banner-final {
  width: 100%;
  background-size: cover;
  background-position: center;
  position: relative;
  color: #fff;
}

.banner-topo {
  min-height: 420px;
  background-image: url('../img/banner-topo.jpg');
  display: flex;
  align-items: center;
}

.banner-final {
  min-height: 280px;
  background-image: url('../img/banner-final.jpg');
  display: flex;
  align-items: center;
}

.banner-topo::before,
.banner-final::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(11,14,45,0.65);
}

.banner-conteudo {
  position: relative;
  max-width: 1100px;
  padding: 20px;
  margin: 0 auto;
}

.banner-conteudo h1,
.banner-conteudo h2 {
  font-family: "Montserrat", Arial, sans-serif;
  margin-bottom: 10px;
}

@media (max-width: 768px) {
  .banner-topo { min-height: 360px; }
  .banner-final { min-height: 240px; }
}

/* ===== SLIDER HOME (CORRIGIDO) ===== */

.slider{
  width: 100%;
  background: var(--soft);
  padding: 12px 0; /* discreto */
}

/* O recorte deve acontecer AQUI (no quadro com max-width) */
.slider-inner{
  max-width: 1100px;
  margin: 0 auto;
  overflow: hidden;   /* <-- ESSENCIAL para não vazar slides */
  padding: 0;         /* <-- evita “vazamento” por padding interno */
}

/* Se quiser respiro lateral, use no slider (já tem 12px no container global),
   ou use este padding externo:
   .slider{ padding:12px 12px; }
*/

.slides{
  display: flex;
  transition: transform 0.8s ease-in-out;
  will-change: transform;
  gap: 0;             /* garante que não há espaço entre slides */
}

.slide{
  flex: 0 0 100%;
  min-width: 100%;    /* <-- força 1 slide ocupar 100% do quadro */
  display: block;
  text-decoration: none;
}

.slide img{
  width: 100%;
  height: 280px;       /* menor (ajuste se quiser) */
  display: block;
  border-radius: 12px;
  object-fit: cover;
}

/* Telas grandes */
@media (min-width: 1100px){
  .slide img{ height: 320px; }
}

/* Mobile */
@media (max-width: 768px){
  .slider{ padding: 10px 0; }
  .slide img{ height: 210px; border-radius: 10px; }
}

/* Dots */
.dots{
  display: flex;
  gap: 8px;
  justify-content: center;
  padding: 10px 0 0;
}

.dot{
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #cfcfcf;
  display: inline-block;
  cursor: pointer;
}

.dot.is-active{ background: #333; }
