/* ============================================================
   Calendário de Eventos SVN — estilos isolados desta página
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

.cal-page {
  font-family: 'Nunito Sans', sans-serif;
  background: #FFF8F3;
  color: #221B19;
  min-height: 100vh;
}

/* ── TOP SECTION (header + hero unidos) ─────────────────── */
.cal-top-section {
  background: linear-gradient(180deg, #000000 0%, #221B19 65%);
}

/* ── NAVBAR ─────────────────────────────────────────────── */
.cal-nav {
  background: transparent;
  padding: 80px 32px 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: static;
}

.cal-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1200px;
  border-bottom: 1px solid #FFF8F3;
  padding-bottom: 50px;
}

.cal-nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #FFF8F3;
  font-family: 'Taviraj', Sans-serif;
  font-size: 30px;
  font-weight: 100;
  text-decoration: none;
}

.cal-nav-brand svg { flex-shrink: 0; }

.cal-nav-actions {
  display: flex;
  gap: 12px;
  align-items: center;
}

.cal-nav-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background-color: #221B197D;
  color: #FFF8F3;
  border: 1px solid #FFF8F37D;
  border-radius: 10px;
  padding: 8px 20px;
  font-family: 'Nunito Sans', sans-serif;
  font-size: 14px;
  font-weight: 400;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.25s cubic-bezier(0.22, 0.61, 0.36, 1), background-color 0.25s cubic-bezier(0.22, 0.61, 0.36, 1);
  white-space: nowrap;
}

.cal-nav-btn:hover { transform: scale(1.05); background-color: #4B3F3C; }

/* ── HERO ────────────────────────────────────────────────── */
.cal-hero-wrap {
  background: transparent;
  padding: 60px 32px 60px;
  display: flex;
  justify-content: center;
}

.cal-hero {
  border-radius: 20px;
  overflow: hidden;
  background: #221B19;
  width: 100%;
  max-width: 1200px;
}

.cal-hero video {
  width: 100%;
  display: block;
  object-fit: cover;
  max-height: 500px;
  border: 1px solid #FFF8F3;
  border-radius: 20px;
}

/* ── MAIN SECTION ────────────────────────────────────────── */
.cal-main {
  padding: 60px 32px;
  background: #FFF8F3;
}

.cal-grid {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 32px;
  align-items: start;
  max-width: 1200px;
  margin: 0 auto;
}

/* ── MINI CALENDÁRIO ─────────────────────────────────────── */
.cal-widget {
  background: #FFF8F3;
  border: 1px solid #F2E8E1;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 2px 12px rgba(34,27,25,0.07);
  position: sticky;
  top: 72px;
}

.cal-widget-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.cal-month-label {
  font-family: 'Taviraj', serif;
  font-weight: 300;
  font-size: 18px;
  color: #221B19;
}

.cal-nav-arrow {
  background: transparent;
  border: none;
  cursor: pointer;
  font-size: 18px;
  color: #221B19;
  padding: 4px 8px;
  border-radius: 6px;
  line-height: 1;
  transition: transform 0.25s cubic-bezier(0.22, 0.61, 0.36, 1), color 0.25s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.cal-nav-arrow:hover { transform: scale(1.05); color: #AC3631; }

.cal-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  margin-bottom: 6px;
}

.cal-weekday {
  text-align: center;
  font-family: 'Nunito Sans', sans-serif;
  font-size: 11px;
  font-weight: 700;
  color: #4B3F3C;
  padding: 4px 0;
}

.cal-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
}

.cal-day {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Nunito Sans', sans-serif;
  font-size: 13px;
  position: relative;
  margin: 0 auto;
  color: #221B19;
  cursor: default;
  user-select: none;
  transition: background 0.12s;
}

.cal-day.other-month {
  color: #C0B8B5;
  pointer-events: none;
}

.cal-day.has-event {
  cursor: pointer;
}

.cal-day.has-event:hover {
  background: #F2E8E1;
}

.cal-day.has-event::after {
  content: '';
  position: absolute;
  bottom: 3px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #AC3631;
}

.cal-day.today {
  background: #AC3631;
  color: white;
}

.cal-day.today::after { display: none; }

.cal-day.selected {
  background: #221B19;
  color: white;
}

.cal-day.selected::after { display: none; }

/* ── EVENTOS LISTA ───────────────────────────────────────── */
.cal-events-col {}

.cal-events-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.cal-events-title {
  font-family: 'Nunito Sans', sans-serif;
  font-weight: 300;
  font-size: 18px;
  color: #221B19;
}

.cal-filters {
  display: flex;
  gap: 12px;
  align-items: center;
}

.cal-select {
  background: #FFF8F3;
  border: 1px solid #D0C8C4;
  border-radius: 12px;
  padding: 8px 40px 8px 14px;
  font-family: 'Nunito Sans', sans-serif;
  font-size: 13px;
  color: #221B19;
  cursor: pointer;
  transition: border-color 0.15s;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23221B19' stroke-width='2'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 18px;
  padding-right: 40px;
  outline: none;
}

#filter-city {
  min-width: 140px;
}

#filter-type {
  min-width: 110px;
}

.cal-select:hover { border-color: #AC3631; }

.cal-btn-filter {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  border: 1px solid #D0C8C4;
  background: #FFF8F3;
  color: #221B19;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.25s cubic-bezier(0.22, 0.61, 0.36, 1), border-color 0.25s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.cal-btn-filter:hover { transform: scale(1.05); border-color: #AC3631; }

.cal-filter-search {
  border: 1px solid #D0C8C4;
  border-radius: 12px;
  padding: 8px 12px;
  background: #FFF8F3;
  color: #221B19;
  font-family: 'Nunito Sans', sans-serif;
  font-size: 13px;
  outline: none;
  transition: border-color 0.25s cubic-bezier(0.22, 0.61, 0.36, 1);
  width: 150px;
}

.cal-filter-search:focus {
  border-color: #AC3631;
  box-shadow: 0 0 0 3px rgba(172, 54, 49, 0.1);
}

.cal-filter-search::placeholder {
  color: #A89E96;
}

.cal-btn-clear {
  border: 1px solid #D0C8C4;
  border-radius: 12px;
  padding: 8px 16px;
  background: #FFF8F3;
  color: #221B19;
  font-family: 'Nunito Sans', sans-serif;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  transition: transform 0.25s cubic-bezier(0.22, 0.61, 0.36, 1), border-color 0.25s cubic-bezier(0.22, 0.61, 0.36, 1);
  outline: none;
}

.cal-btn-clear:hover { transform: scale(1.05); border-color: #AC3631; }

.cal-filters-divider {
  border-bottom: 1px solid #E8E0DA;
  margin: 20px 0;
}

/* ── EVENT CARD ──────────────────────────────────────────── */
.cal-card {
  background: #221B19 url('/img/background-card.png') no-repeat;
  background-size: cover;
  background-position: center;
  border-radius: 20px;
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
  margin-bottom: 16px;
  min-height: 160px;
  transition: transform 0.35s cubic-bezier(0.22, 0.61, 0.36, 1), box-shadow 0.35s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.cal-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(172, 54, 49, 0.2);
}

.cal-card-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  border-radius: 20px;
  padding: 5px 14px;
  font-family: 'Nunito Sans', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.cal-card-badge.presencial {
  background: #AC3631;
  color: white;
}

.cal-card-badge.online {
  background: #AC3631;
  color: white;
}

.cal-card-title {
  font-family: 'Nunito Sans', sans-serif;
  font-weight: 100;
  font-size: 20px;
  color: #FFF8F3;
  line-height: 1.3;
  padding-right: 110px;
  margin-bottom: 5px;
}

.cal-card-row-2 {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.cal-card-date {
  font-family: 'Nunito Sans', sans-serif;
  font-size: 15px;
  color: #F2E8E1;
}

.cal-link-btn {
  background: transparent;
  border: 1px solid #4B3F3C;
  border-radius: 10px;
  padding: 6px 10px;
  cursor: pointer;
  color: #FFF8F3;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.25s cubic-bezier(0.22, 0.61, 0.36, 1), border-color 0.25s cubic-bezier(0.22, 0.61, 0.36, 1);
  flex-shrink: 0;
}

.cal-link-btn:hover { transform: scale(1.05); border-color: #AC3631; }

.cal-cal-btn {
  background: transparent;
  border: 1px solid #4B3F3C;
  color: #FFF8F3;
  border-radius: 10px;
  padding: 6px 12px;
  font-size: 15px;
  font-family: 'Nunito Sans', sans-serif;
  cursor: pointer;
  transition: transform 0.25s cubic-bezier(0.22, 0.61, 0.36, 1), border-color 0.25s cubic-bezier(0.22, 0.61, 0.36, 1);
  flex-shrink: 0;
}

.cal-cal-btn:hover {
  transform: scale(1.05);
  border-color: #AC3631;
}

.cal-card-location {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Nunito Sans', sans-serif;
  font-size: 15px;
  color: #F2E8E1;
  margin-bottom: 0;
}

.cal-card-location svg {
  flex-shrink: 0;
  color: #F2E8E1;
}

.cal-avatars {
  position: absolute;
  right: 24px;
  bottom: 24px;
  display: flex;
  align-items: center;
  gap: 0;
}

.cal-avatar {
  width: 65px;
  height: 65px;
  border-radius: 50%;
  border: 2px solid #221B19;
  object-fit: cover;
  background: #4B3F3C;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Nunito Sans', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: #FFF8F3;
  flex-shrink: 0;
  overflow: hidden;
}

.cal-avatar:not(:first-child) {
  margin-left: -18px;
}

.cal-empty {
  text-align: center;
  font-family: 'Nunito Sans', sans-serif;
  font-size: 15px;
  color: #4B3F3C;
  padding: 48px 0;
}

/* ── FOOTER ──────────────────────────────────────────────── */
.cal-footer {
  border-top: 1px solid #F2E8E1;
  padding: 32px 16px;
  background: #FFF8F3;
}

.cal-footer img {
  max-height: 40px;
  object-fit: contain;
  display: block;
  margin: 0 auto;
}

/* ── RESPONSIVE ──────────────────────────────────────────── */
@media (max-width: 900px) {
  .cal-grid {
    grid-template-columns: 1fr;
  }
  .cal-widget {
    position: static;
  }
}

@media (max-width: 600px) {
  .cal-nav-btn span { display: none; }
  .cal-card-title { font-size: 18px; padding-right: 90px; }
}
