/* ═══════════════════════════════════════════════════════════════
   GUZTEC - EVENTOS (TOM INSTITUCIONAL E SUAVE)
   Design minimalista, elegante e sofisticado
   ═══════════════════════════════════════════════════════════════ */

/* ─────────────────────────────────────────────────────────────── */
/* 1. HERO SECTION */
/* ─────────────────────────────────────────────────────────────── */

.events-hero {
  position: relative;
  height: 50vh;
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: linear-gradient(135deg, #1A365D 0%, #2D5F8D 100%);
  background-image: url('https://images.unsplash.com/photo-1540575467063-178a50c2df87?w=1600');
  background-size: cover;
  background-position: center;
  background-blend-mode: overlay;
  margin-top: 0 !important; /* Body padding de 320px controla o espaçamento */
}

.events-hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(26, 54, 93, 0.75);
}

.events-hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  padding: 2rem;
}

.events-hero-title {
  font-size: 3rem;
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: 1.5rem;
  font-family: var(--font-heading);
  letter-spacing: -0.02em;
}

.events-hero-subtitle {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.95);
  line-height: 1.8;
  margin-bottom: 2.5rem;
  font-weight: 400;
}

.events-cta-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 2.5rem;
  background: rgba(255, 140, 66, 0.9);
  color: var(--color-white);
  text-decoration: none;
  border-radius: 6px;
  font-weight: 600;
  font-size: 1.05rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(255, 140, 66, 0.3);
}

.events-cta-primary:hover {
  background: rgba(255, 140, 66, 1);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 140, 66, 0.4);
}

/* ─────────────────────────────────────────────────────────────── */
/* 2. PRINCIPAIS EVENTOS */
/* ─────────────────────────────────────────────────────────────── */

.events-featured {
  padding: 5rem 0;
  background: var(--color-white);
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--color-navy-dark);
  margin-bottom: 1rem;
  font-family: var(--font-heading);
}

.section-subtitle {
  text-align: center;
  font-size: 1.125rem;
  color: #64748b;
  max-width: 800px;
  margin: 0 auto 4rem;
  line-height: 1.8;
}

.events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

/* Event Cards - Minimalistas */
.event-card {
  background: var(--color-white);
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 2rem;
  transition: all 0.3s ease;
  position: relative;
}

.event-card:hover {
  border-color: var(--color-gold);
  box-shadow: 0 8px 24px rgba(212, 175, 55, 0.15);
  transform: translateY(-4px);
}

.event-card-featured {
  border-color: var(--color-gold);
  background: linear-gradient(135deg, #fffdf7 0%, #ffffff 100%);
}

.event-badge-new {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: var(--color-gold);
  color: var(--color-navy-dark);
  padding: 0.4rem 0.8rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.event-card-header {
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #f1f5f9;
}

.event-name {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--color-navy-dark);
  margin: 0;
  line-height: 1.3;
}

.event-card-body {
  margin-bottom: 1.5rem;
}

.event-date,
.event-location {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  color: #475569;
  font-size: 1rem;
}

.event-date i,
.event-location i {
  color: var(--color-gold);
  width: 18px;
  text-align: center;
}

.event-category {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.25rem;
}

.badge {
  display: inline-block;
  padding: 0.35rem 0.75rem;
  background: #f1f5f9;
  color: #475569;
  border-radius: 4px;
  font-size: 0.875rem;
  font-weight: 500;
}

.badge-country {
  background: rgba(212, 175, 55, 0.1);
  color: #a67c00;
}

.badge-new-inline {
  display: inline-block;
  background: var(--color-gold);
  color: var(--color-navy-dark);
  padding: 0.25rem 0.5rem;
  border-radius: 3px;
  font-size: 0.75rem;
  font-weight: 700;
  margin: 0 0.5rem;
}

.event-card-footer {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid #f1f5f9;
}

.btn-learn-more {
  width: 100%;
  padding: 0.75rem 1.5rem;
  background: transparent;
  color: var(--color-navy-dark);
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-learn-more:hover {
  background: var(--color-navy-dark);
  color: var(--color-white);
  border-color: var(--color-navy-dark);
}

.events-view-all {
  text-align: center;
  margin-top: 3rem;
}

.link-subtle {
  color: #475569;
  text-decoration: none;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
}

.link-subtle:hover {
  color: var(--color-gold);
  gap: 0.75rem;
}

/* ─────────────────────────────────────────────────────────────── */
/* 3. CALENDÁRIO COMPLETO */
/* ─────────────────────────────────────────────────────────────── */

.events-calendar {
  padding: 5rem 0;
  background: #f8fafc;
}

.calendar-filters {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.filter-label {
  font-weight: 600;
  color: var(--color-navy-dark);
  margin-right: 0.5rem;
}

.filter-btn {
  padding: 0.65rem 1.5rem;
  background: var(--color-white);
  color: #475569;
  border: 1px solid #e2e8f0;
  border-radius: 50px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.95rem;
}

.filter-btn:hover {
  border-color: var(--color-gold);
  color: var(--color-navy-dark);
}

.filter-btn.active {
  background: var(--color-navy-dark);
  color: var(--color-white);
  border-color: var(--color-navy-dark);
}

.calendar-timeline {
  max-width: 900px;
  margin: 0 auto;
}

.month-section {
  margin-bottom: 3rem;
}

.month-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-navy-dark);
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--color-gold);
  font-family: var(--font-heading);
}

.event-item {
  display: flex;
  align-items: flex-start;
  gap: 2rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid #e2e8f0;
  transition: all 0.3s ease;
}

.event-item:hover {
  background: rgba(212, 175, 55, 0.05);
  padding-left: 1rem;
  padding-right: 1rem;
  margin-left: -1rem;
  margin-right: -1rem;
  border-radius: 6px;
}

.event-date-col {
  font-weight: 600;
  color: var(--color-navy-dark);
  min-width: 100px;
  font-size: 1rem;
}

.event-info-col {
  flex: 1;
}

.event-info-col strong {
  display: block;
  font-size: 1.125rem;
  color: var(--color-navy-dark);
  margin-bottom: 0.35rem;
}

.event-location-inline {
  color: #64748b;
  font-size: 0.95rem;
}

.calendar-disclaimer {
  text-align: center;
  color: #64748b;
  font-size: 0.95rem;
  margin-top: 3rem;
  font-style: italic;
}

.calendar-disclaimer i {
  color: var(--color-gold);
  margin-right: 0.5rem;
}

/* ─────────────────────────────────────────────────────────────── */
/* 4. OPORTUNIDADE DE CONEXÃO */
/* ─────────────────────────────────────────────────────────────── */

.events-connection {
  padding: 5rem 0;
  background: #f8fafc;
}

.connection-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin: 3rem 0;
}

.connection-card {
  text-align: center;
  padding: 2.5rem 2rem;
  background: var(--color-white);
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  transition: all 0.3s ease;
}

.connection-card:hover {
  border-color: var(--color-gold);
  box-shadow: 0 8px 24px rgba(212, 175, 55, 0.12);
  transform: translateY(-4px);
}

.connection-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(212, 175, 55, 0.1);
  border-radius: 50%;
  color: var(--color-gold);
  font-size: 2rem;
}

.connection-card h3 {
  font-size: 1.5rem;
  color: var(--color-navy-dark);
  margin-bottom: 0.75rem;
  font-weight: 600;
}

.connection-card p {
  color: #64748b;
  font-size: 1rem;
  line-height: 1.6;
}

.connection-cta {
  text-align: center;
  margin-top: 3rem;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 2.5rem;
  background: var(--color-white);
  color: var(--color-navy-dark);
  border: 2px solid var(--color-navy-dark);
  text-decoration: none;
  border-radius: 6px;
  font-weight: 600;
  font-size: 1.05rem;
  transition: all 0.3s ease;
}

.btn-secondary:hover {
  background: var(--color-navy-dark);
  color: var(--color-white);
}

/* ─────────────────────────────────────────────────────────────── */
/* 5. FORMULÁRIO DE CONTATO */
/* ─────────────────────────────────────────────────────────────── */

.events-contact {
  padding: 5rem 0;
  background: var(--color-white);
}

.contact-wrapper {
  max-width: 700px;
  margin: 0 auto;
}

.contact-header {
  text-align: center;
  margin-bottom: 3rem;
}

.contact-form {
  background: #f8fafc;
  padding: 3rem;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
}

.form-group {
  margin-bottom: 1.75rem;
}

.form-group label {
  display: block;
  font-weight: 600;
  color: var(--color-navy-dark);
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.875rem 1.25rem;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  font-size: 1rem;
  font-family: inherit;
  transition: all 0.3s ease;
  background: var(--color-white);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-gold);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.form-group-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.form-group-checkbox input[type="checkbox"] {
  width: auto;
  margin-top: 0.25rem;
  flex-shrink: 0;
}

.form-group-checkbox label {
  font-size: 0.95rem;
  color: #475569;
  line-height: 1.5;
}

.link-privacy {
  color: var(--color-gold);
  text-decoration: none;
  font-weight: 600;
}

.link-privacy:hover {
  text-decoration: underline;
}

.btn-submit {
  width: 100%;
  padding: 1rem 2rem;
  background: var(--color-navy-dark);
  color: var(--color-white);
  border: none;
  border-radius: 6px;
  font-weight: 600;
  font-size: 1.05rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

.btn-submit:hover {
  background: #0f2444;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(26, 54, 93, 0.3);
}

.form-message {
  margin-top: 1.5rem;
  padding: 1rem;
  border-radius: 6px;
  text-align: center;
  font-weight: 500;
  display: none;
}

.form-message.success {
  background: #d1fae5;
  color: #065f46;
  border: 1px solid #a7f3d0;
  display: block;
}

.form-message.error {
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #fecaca;
  display: block;
}

/* ─────────────────────────────────────────────────────────────── */
/* 6. MODAL */
/* ─────────────────────────────────────────────────────────────── */

.modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  overflow-y: auto;
  padding: 2rem;
}

.modal.active {
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-content {
  background: var(--color-white);
  border-radius: 12px;
  max-width: 600px;
  width: 100%;
  position: relative;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.modal-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: none;
  border: none;
  font-size: 2rem;
  color: #94a3b8;
  cursor: pointer;
  line-height: 1;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.modal-close:hover {
  background: #f1f5f9;
  color: var(--color-navy-dark);
}

.modal-body {
  padding: 3rem;
}

.modal-body h2 {
  font-size: 2rem;
  color: var(--color-navy-dark);
  margin-bottom: 1.5rem;
  font-family: var(--font-heading);
}

.modal-body p {
  color: #475569;
  line-height: 1.8;
  margin-bottom: 1rem;
}

.modal-body .modal-info {
  background: #f8fafc;
  padding: 1.5rem;
  border-radius: 8px;
  margin: 1.5rem 0;
}

.modal-body .modal-info strong {
  color: var(--color-navy-dark);
  display: block;
  margin-bottom: 0.5rem;
}

.modal-body .btn-modal {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  background: var(--color-navy-dark);
  color: var(--color-white);
  text-decoration: none;
  border-radius: 6px;
  font-weight: 600;
  margin-top: 1.5rem;
  transition: all 0.3s ease;
}

.modal-body .btn-modal:hover {
  background: #0f2444;
}

/* ─────────────────────────────────────────────────────────────── */
/* 7. FOOTER */
/* ─────────────────────────────────────────────────────────────── */

.events-footer {
  background: #f8fafc;
  padding: 3rem 0;
  border-top: 1px solid #e2e8f0;
}

.footer-contact {
  text-align: center;
  margin-bottom: 1.5rem;
}

.footer-contact p {
  color: #475569;
  font-size: 1.05rem;
}

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

.footer-contact a:hover {
  text-decoration: underline;
}

.footer-links {
  text-align: center;
  margin-bottom: 1.5rem;
}

.footer-links a {
  color: #64748b;
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: var(--color-navy-dark);
}

.footer-links span {
  color: #cbd5e1;
  margin: 0 0.75rem;
}

.footer-backtop {
  text-align: center;
}

.back-to-top {
  color: #64748b;
  text-decoration: none;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
}

.back-to-top:hover {
  color: var(--color-gold);
  transform: translateY(-2px);
}

/* ─────────────────────────────────────────────────────────────── */
/* 8. RESPONSIVO */
/* ─────────────────────────────────────────────────────────────── */

@media (max-width: 768px) {
  .events-hero {
    height: 60vh;
    margin-top: 154px; /* Ajuste para mobile */
  }

  .events-hero-title {
    font-size: 2rem;
  }

  .events-hero-subtitle {
    font-size: 1.05rem;
  }

  .section-title {
    font-size: 2rem;
  }

  .section-subtitle {
    font-size: 1rem;
  }

  .events-grid {
    grid-template-columns: 1fr;
  }

  .connection-options {
    grid-template-columns: 1fr;
  }

  .calendar-filters {
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 1rem;
  }

  .event-item {
    flex-direction: column;
    gap: 0.75rem;
  }

  .event-date-col {
    min-width: auto;
  }

  .contact-form {
    padding: 2rem 1.5rem;
  }

  .modal-body {
    padding: 2rem 1.5rem;
  }
}

@media (max-width: 480px) {
  .events-hero-title {
    font-size: 1.75rem;
  }

  .events-cta-primary {
    padding: 0.875rem 2rem;
    font-size: 0.95rem;
  }

  .event-card {
    padding: 1.5rem;
  }

  .section-title {
    font-size: 1.75rem;
  }
}

/* ═══════════════════════════════════════════════════════════════
   FIM - EVENTOS
   ═══════════════════════════════════════════════════════════════ */
