:root {
  --accent: #36593B;
  --muted: #6b7280;
  --bg: #F8FEEC;
  --card: #ffffff
}

* {
  box-sizing: border-box
}

body {
  font-family: Inter, system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial;
  margin: 0;
  color: #0f172a;
  background: var(--bg)
}

header {
  background: #fff;
  box-shadow: 0 2px 6px rgba(10, 20, 40, 0.04);
  position: sticky;
  top: 0;
  z-index: 40
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0
}

.brand {
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--accent);
  letter-spacing: 0.2px
}

nav a {
  margin-left: 18px;
  color: var(--muted);
  text-decoration: none;
  font-weight: 500
}

/* Hero */
.hero {
  height: 340px;
  background-size: cover;
  background-position: center;
  border-radius: 8px;
  overflow: hidden;
  margin: 18px 0;
  position: relative
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(3, 7, 18, 0.08), rgba(3, 7, 18, 0.28));
}

.hero-content {
  position: absolute;
  left: 28px;
  bottom: 28px;
  color: #fff;
  z-index: 2
}

.hero-content h1 {
  margin: 0;
  font-size: 2.1rem;
  letter-spacing: 0.4px
}

.hero-photo {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover
}

/* Social icon */
.social {
  display: flex;
  gap: 12px;
  align-items: center
}

.social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 1px 4px rgba(2, 6, 23, 0.06);
  text-decoration: none
}

.social svg {
  width: 20px;
  height: 20px;
  display: block
}

/* Grid */
main {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 24px;
  margin-bottom: 48px
}

/* Agenda Cultural */
.card {
  background: var(--card);
  border-radius: 12px;
  padding: 18px;
  box-shadow: 0 6px 18px rgba(12, 18, 34, 0.06)
}

.agenda h2 {
  margin: 0 0 8px 0;
  font-size: 1.2rem;
  color: #0f172a
}

.agenda p.lead {
  margin: 0 0 14px;
  color: var(--muted)
}

.events {
  display: flex;
  flex-direction: column;
  gap: 12px
}

.event {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 12px;
  border-radius: 8px;
  border: 1px solid #eef2f7
}

.event .date {
  min-width: 74px;
  background: #FFF0D8;
  border-radius: 8px;
  padding: 8px;
  text-align: center;
  font-weight: 700;
  color: var(--accent)
}

.event .info {
  flex: 1
}

.event h3 {
  margin: 0;
  font-size: 1rem
}

.event p {
  margin: 6px 0 0 0;
  color: var(--muted);
  font-size: 0.95rem
}

.event .info a, footer a, .contact a {
  color: var(--accent);
  text-decoration: none; /* Remove o sublinhado padrão (opcional) */
  font-weight: 600;      /* Deixa um pouco mais negrito (opcional) */
}

.event .info a:hover, footer a:hover, .contact a:hover {
  text-decoration: underline;
  opacity: 0.8;
}

.flyer {
  width: 86px;
  height: 86px;
  border-radius: 6px;
  overflow: hidden;
  flex-shrink: 0;
  cursor: pointer;
  border: 1px solid #e6eefc
}

.flyer img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block
}

/* Aside */
aside .card {
  position: sticky;
  top: 88px
}

.contact small {
  display: block;
  color: var(--muted);
  margin-bottom: 6px
}

.contact a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600
}

footer {
  padding: 0px 0;
  margin: 0 0 48px 0;
  color: var(--muted)
}

/* Modal */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(6, 8, 23, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  visibility: hidden;
  opacity: 0;
  transition: all .18s;
  z-index: 1000;
  overflow-y: auto;
}

.modal.open {
  visibility: visible;
  opacity: 1
}

.modal-content {
  max-width: 900px;
  width: 100%;
  background: #fff;
  padding: 12px;
  border-radius: 10px;
  box-shadow: 0 24px 60px rgba(3, 7, 18, 0.5);
  margin: auto;
}

.modal-content img {
  width: 100%;
  height: auto;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 6px;
  display: block
}

.close-btn {
  display: inline-block;
  margin-top: 10px;
  padding: 8px 12px;
  border-radius: 8px;
  background: #f3f4f6;
  border: 0;
  cursor: pointer
}

@media(max-width:900px) {
  main {
    grid-template-columns: 1fr
  }

  aside .card {
    position: static;
    top: auto
  }

  .hero {
    height: 220px
  }
}

.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 12px;
  text-decoration: none;
  text-align: center;
  font-weight: 600;
  color: #fff;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  margin-top: 10px;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(3, 92, 19, 0.3);
}

.btn a {
  color: #fff;
  text-decoration: none;
}

.btn a:hover {
  color: #fff;
}

.btn-primary {
  background: var(--accent);
  background-image: linear-gradient(90deg, #657C69 0%, #C2CBC0 100%);
}

/* Sports Table */
.sports-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 12px;
}

.sports-table th {
  text-align: left;
  color: var(--muted);
  font-weight: 500;
  padding: 8px;
  font-size: 0.9rem;
  border-bottom: 1px solid #eef2f7;
}

.sports-table td {
  padding: 12px 8px;
  border-bottom: 1px solid #eef2f7;
}

.sports-table tr:last-child td {
  border-bottom: 0;
}

/* Gallery Section */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
  margin-top: 20px;
}

.gallery-item {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
  cursor: pointer;
}

.gallery-item:hover {
  transform: scale(1.03);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gallery-label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  padding: 8px;
  font-size: 0.85rem;
  text-align: center;
  backdrop-filter: blur(2px);
}
