/* eventos/css/style.css
   Portal de Eventos (associado ao NEA-UERJ) — 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;
}

/* Acessibilidade */
.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;
}

/* Header */
.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:10px;
  min-width:0;
  max-width:420px;
}
.brand img{
  width:64px;
  height:64px;
  object-fit:contain;
  flex:0 0 auto;
}
.brand .title{
  font-family:"Montserrat", Arial, sans-serif;
  font-weight:700;
  letter-spacing:.7px;
  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;
}

/* Botões */
.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 interno */
.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;
}

/* Seções */
.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 / Cards */
.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); }
.small{ font-size:13px; opacity:.85; }

/* Tabela */
.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;
}

/* Footer */
.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; }

/* ===== SLIDER (BANNER DINÂMICO) ===== */
.slider{
  width:100%;
  background:var(--soft);
  padding:12px 0;
}

/* recorte aqui */
.slider-inner{
  max-width:1100px;
  margin:0 auto;
  overflow:hidden; /* essencial */
  padding:0;
}

.slides{
  display:flex;
  transition:transform .8s ease-in-out;
  will-change:transform;
}

.slide{
  flex:0 0 100%;
  min-width:100%;
  display:block;
  text-decoration:none;
}

.slide img{
  width:100%;
  height:280px;
  display:block;
  border-radius:12px;
  object-fit:cover;
}

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

/* 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; }

/* ===== Responsivo ===== */
@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;
  }
  .brand img{ width:56px; height:56px; }
  .slide img{ height:210px; border-radius:10px; }
}
