/* archive-eventos.css */

.eventos-archive {
  padding: 0 2rem 2rem; /* remove padding no topo para o hero encostar no header */
  max-width: 1200px;
  margin: auto;
}

/* Hero de eventos */
.eventos-hero {
  position: relative;
  height: 320px;
  border-radius: 0;
  overflow: hidden;
  margin-bottom: 1.5rem;
  background: #000;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}
.eventos-hero .hero-bg { position: absolute; inset: 0; }
.eventos-hero .hero-bg img { width: 100%; height: 100%; object-fit: cover; display: block; opacity: .8; }
.eventos-hero-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.45) 0%, rgba(0,0,0,.25) 40%, rgba(0,0,0,.35) 100%); }
.eventos-hero-content { position: relative; z-index: 1; color: #fff; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; padding: 20px; gap: 8px; }
.eventos-hero-content .tag { align-self: flex-start; background: rgba(255,255,255,.15); border: 1px solid rgba(255,255,255,.25); color: #fff; padding: 4px 10px; border-radius: 999px; font-size: .85rem; font-weight: 700; letter-spacing: .02em; }
.eventos-hero-content h1 { margin: 0; font-size: 2rem; font-weight: 800; text-shadow: 0 2px 14px rgba(0,0,0,.45); }

@media (max-width: 768px) {
  .eventos-hero { height: 220px; }
  .eventos-hero-content h1 { font-size: 1.5rem; }
}

.eventos-header {
  text-align: center;
  margin-bottom: 2rem;
}

.eventos-header h2 {
  font-size: 2.2rem;
  color: var(--vermelho-principal);
}

.eventos-header p {
  font-size: 1.1rem;
  color: var(--cinza);
  margin-top: 0.5rem;
}

/* Filtro (chips) */
.eventos-filtro-chips { margin-top: 1rem; display: flex; gap: .5rem; justify-content: center; flex-wrap: wrap; }
.eventos-filtro-chips .chip {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .5rem .85rem;
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 999px;
  color: #333;
  text-decoration: none !important;
  font-weight: 600;
  font-size: .92rem;
  transition: background .2s ease, color .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.eventos-filtro-chips .chip:hover { border-color: var(--vermelho-principal); color: var(--vermelho-principal); box-shadow: 0 2px 8px rgba(0,0,0,.06); }
.eventos-filtro-chips .chip.active { background: var(--vermelho-principal); border-color: var(--vermelho-principal); color: #fff; box-shadow: 0 4px 14px rgba(168,9,39,.25); }

.eventos-lista {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.evento-card {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0,0,0,0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  display: flex;
  flex-direction: column;
}

.evento-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}

.evento-card a {
  color: inherit;
  text-decoration: none;
  display: block;
  height: 100%;
}

.evento-thumb { aspect-ratio: 16 / 9; overflow: hidden; background: #f6f6f6; }
.evento-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }

.evento-info {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: .5rem;
  flex: 1;
}

.evento-info h2 {
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
  color: var(--preto);
}

.evento-data {
  font-size: 0.95rem;
  color: var(--cinza);
  margin-bottom: 0.5rem;
}

.evento-excerpt {
  font-size: .95rem;
  color: var(--cinza);
  margin-bottom: 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.btn-ver {
  display: inline-block;
  background: var(--vermelho-principal);
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  font-size: 0.9rem;
  transition: background 0.3s ease;
}

.btn-ver:hover {
  background: #b20000;
}

/* Paginação */
.pagination { margin-top: 1rem; display: flex; justify-content: center; }
.pagination .page-numbers { display: inline-block; margin: 0 .25rem; padding: .5rem .75rem; border: 1px solid #eee; border-radius: 6px; }
.pagination .current { background: var(--vermelho-principal); border-color: var(--vermelho-principal); color: #fff; }
.pagination a.page-numbers:hover { border-color: var(--vermelho-principal); color: var(--vermelho-principal); }

@media (max-width: 768px) {
  .eventos-header h1 {
    font-size: 2rem;
  }

  .evento-info h2 {
    font-size: 1.2rem;
  }
}
