html {
  scroll-behavior: smooth;
}

:root {
  --preto: #000000;
  --amarelo: #f1c40f;
  --amarelo-escuro: #d4a40c;
  --cinza-escuro: #111318;
  --texto-claro: #f8f8f8;
  --cinza-fundo: #0b0d12;
  --cinza-box: #111318;
  --muted: #aaaaaa;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background: var(--cinza-escuro);
  color: var(--texto-claro);
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

a {
  color: inherit;
  text-decoration: none;
}

/* HEADER / TOPO */
header {
  background: var(--preto);
  border-bottom: 3px solid var(--amarelo);
  position: sticky;
  top: 0;
  z-index: 10;
}

.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 16px;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
}

.logo-area {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-img {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid var(--amarelo);
}

.nav-title {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 18px;
}

.nav-links {
  display: flex;
  gap: 24px;
  font-size: 15px;
}

.nav-links a {
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition: border-color 0.3s;
}

.nav-links a:hover {
  border-bottom-color: var(--amarelo);
}

/* HERO */
.hero {
  padding: 100px 0 60px;
  background: radial-gradient(circle at top left, #222737, #070809);
  border-bottom: 3px solid var(--amarelo);
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  gap: 40px;
  align-items: center;
}

.hero h1 {
  font-family: 'Montserrat', sans-serif;
  font-size: 42px;
  margin-bottom: 16px;
  color: var(--amarelo);
}

.hero h2 {
  font-size: 22px;
  margin-bottom: 24px;
  max-width: 520px;
}

.hero p {
  font-size: 16px;
  max-width: 520px;
  margin-bottom: 32px;
  color: #d0d0d0;
}

.btn-primary {
  display: inline-block;
  background: var(--amarelo);
  color: #000;
  padding: 12px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 16px;
  transition: background 0.3s;
}

.btn-primary:hover {
  background: var(--amarelo-escuro);
}

.hero-badge {
  border: 2px solid var(--amarelo);
  border-radius: 999px;
  padding: 8px 16px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  margin-bottom: 16px;
}

.hero-card {
  border-radius: 16px;
  border: 1px solid #333;
  background: rgba(0,0,0,0.6);
  padding: 20px 24px;
  font-size: 15px;
}

/* CONTEÚDO GERAL */
section {
  padding: 60px 0;
}

section h3 {
  font-family: 'Montserrat', sans-serif;
  font-size: 28px;
  margin-bottom: 16px;
  color: var(--amarelo);
}

section p.section-subtitle {
  font-size: 16px;
  margin-bottom: 32px;
  color: #d0d0d0;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
}

.card {
  border-radius: 16px;
  background: #0b0c10;
  border: 1px solid #262626;
  padding: 24px;
  font-size: 15px;
}

.pill {
  display: inline-flex;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 13px;
  border: 1px solid var(--amarelo);
  margin-bottom: 12px;
}

/* TABELAS / HORÁRIOS */
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}

th, td {
  padding: 12px 16px;
  border-bottom: 1px solid #333;
  text-align: left;
}

th {
  background: #111;
  color: var(--amarelo);
  font-weight: 600;
}

/* NOTÍCIAS */
.news-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.news-card {
  border-radius: 16px;
  background: #0b0c10;
  border: 1px solid #333;
  padding: 20px;
  font-size: 15px;
}

.news-card h4 {
  font-family: 'Montserrat', sans-serif;
  margin-bottom: 8px;
  font-size: 20px;
  color: var(--amarelo);
}

.news-meta {
  font-size: 13px;
  color: #bbbbbb;
  margin-bottom: 12px;
}

.btn-link {
  margin-top: 12px;
  display: inline-block;
  font-size: 14px;
  color: var(--amarelo);
}

/* GALERIA - CORRIGIDA E IMAGENS PEQUENAS */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  background: #111;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 20px rgba(241,196,15,0.15);
}

.gallery-item img {
  width: 100%;
  height: 180px; /* ALTURA PEQUENA E UNIFORME */
  object-fit: cover; /* Preenche sem distorcer */
  display: block;
  border-radius: 12px;
}

.gallery-item .legenda {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0,0,0,0.75);
  color: white;
  padding: 10px 12px;
  font-size: 13px;
  text-align: center;
  opacity: 0.9; /* Sempre visível, mas suave */
  transition: opacity 0.3s ease;
}

.gallery-item:hover .legenda {
  opacity: 1;
}

/* CONTATO */
.contact-box {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
  font-size: 15px;
}

/* RODAPÉ */
main {
  flex: 1;
}

footer {
  border-top: 1px solid #333;
  padding: 24px 0 32px;
  font-size: 13px;
  text-align: center;
  background: #050506;
}

/* COMPENSAÇÃO DO HEADER FIXO */
#inicio, #sobre, #horarios, #noticias, #galeria, #contato {
  scroll-margin-top: 100px;
}

/* RESPONSIVO */
@media (max-width: 768px) {
  .hero-inner {
    grid-template-columns: 1fr;
  }
  .nav-links {
    display: none;
  }
  .gallery-grid {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  }
  .gallery-item img {
    height: 140px; /* ainda menor em mobile */
  }
}

/* ADMIN (mantido seu bloco, só limpo) */
.admin-header {
  background: #000;
  border-bottom: 3px solid var(--amarelo);
  padding: 12px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.admin-header h1 {
  font-size: 20px;
  margin: 0;
  color: var(--amarelo);
}

.admin-header nav a,
.admin-header nav span {
  margin-left: 12px;
  font-size: 14px;
}

.admin-container {
  max-width: 1000px;
  margin: 30px auto;
  padding: 0 20px;
}

.tabela-admin {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.tabela-admin th,
.tabela-admin td {
  padding: 10px 12px;
  border-bottom: 1px solid #222;
}

.tabela-admin th {
  background: #0a0b0f;
  color: var(--amarelo);
  text-align: left;
  font-weight: 600;
}

input[type="text"],
input[type="password"],
textarea,
input[type="file"] {
  width: 100%;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid #333;
  background: #050607;
  color: var(--texto-claro);
  font-size: 14px;
  margin-bottom: 12px;
}

textarea {
  min-height: 120px;
}

button,
.btn {
  background: var(--amarelo);
  border: none;
  color: #000;
  padding: 10px 18px;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 600;
  font-size: 14px;
  transition: background 0.3s;
}

button:hover,
.btn:hover {
  background: var(--amarelo-escuro);
}

.erro {
  color: #ff6b6b;
  margin-bottom: 10px;
}