﻿/* ==========================================================================
   Design System & Variables
   ========================================================================== */
:root {
  /* Colors - Red institutional & Gold accents */
  --primary-color: #AE311E;
  /* Red/Maroon */
  --primary-dark: #8C2215;
  --secondary-color: #1E3A8A;
  /* Navy Blue */
  --accent-gold: #E1972D;
  --accent-green: #00B563;
  --accent-purple: #8259BB;

  --bg-white: #ffffff;
  --bg-light: #F9FAFB;
  --text-dark: #1F2937;
  --text-light: #ffffff;
  --text-muted: #6B7280;

  /* Fonts */
  --font-family: 'Poppins', sans-serif;

  /* Layout */
  --max-width: 1000px;
  --border-radius: 8px;
  --transition: all 0.3s ease;
}

/* ==========================================================================
   Reset & Base Styles
   ========================================================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  color: var(--text-dark);
  background-color: var(--bg-white);
  line-height: 1.6;
  font-size: 16px;
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--accent-gold);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ==========================================================================
   Reusable Utilities
   ========================================================================== */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

.section-padding {
  padding: 80px 0;
}

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

.section-title-img {
  margin: 0 auto 40px auto;
  max-height: 70px;
  width: auto;
}

/* ==========================================================================
   Header Area (Hero)
   ========================================================================== */
.header-area {
  background-image: linear-gradient(rgba(174, 49, 30, 0.5), rgba(174, 49, 30, 0.7)), url('../img/background-topo.webp');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 60px 0;
  text-align: center;
  border-bottom: 4px solid var(--primary-color);
}

.header-banner {
  max-width: 480px;
  width: 100%;
  margin: 0 auto 30px auto;
}

.header-meta {
  background-color: var(--primary-color);
  color: var(--text-light);
  font-weight: 700;
  padding: 10px 25px;
  border-radius: 30px;
  display: inline-block;
  font-size: 1.05rem;
  box-shadow: 0 4px 10px rgba(174, 49, 30, 0.2);
}

/* ==========================================================================
   Sticky Navigation Bar
   ========================================================================== */
.nav-bar {
  background-color: var(--primary-color);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.nav-container {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 60px;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 30px;
}

.nav-links a {
  color: var(--text-light);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 0.5px;
  padding: 10px 15px;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 15px;
  right: 15px;
  height: 2.5px;
  background-color: var(--accent-gold);
  transform: scaleX(0);
  transition: var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text-light);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  transform: scaleX(1);
}

/* ==========================================================================
   Section: Apresentação (Sobre)
   ========================================================================== */
.sobre-section {
  background-color: var(--bg-white);
}

.sobre-wrapper {
  max-width: 850px;
  margin: 0 auto;
}

.sobre-content-box {
  background-color: var(--bg-light);
  border-left: 5px solid var(--primary-color);
  padding: 35px;
  border-radius: 0 var(--border-radius) var(--border-radius) 0;
  margin-top: 30px;
  text-align: justify;
}

.sobre-text {
  font-size: 1.1rem;
  color: #374151;
  margin-bottom: 25px;
}

.sobre-text p {
  margin-bottom: 20px;
}

.sobre-text p:last-child {
  margin-bottom: 0;
}

.sobre-author {
  font-weight: 700;
  color: var(--primary-color);
  font-size: 1.05rem;
}

/* ==========================================================================
   Section: Programação
   ========================================================================== */
.programacao-section {
  background-image: linear-gradient(rgba(249, 250, 251, 0.85), rgba(249, 250, 251, 0.85)), url('../img/background-midle-2.webp');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

.timeline {
  display: flex;
  flex-direction: column;
  gap: 20px;
  text-align: left;
}

.day-header {
  background-color: var(--primary-color);
  color: var(--text-light);
  padding: 15px 25px;
  font-size: 1.3rem;
  font-weight: 700;
  border-radius: var(--border-radius);
  margin-top: 40px;
  margin-bottom: 20px;
  box-shadow: 0 4px 10px rgba(174, 49, 30, 0.15);
}

.day-header:first-of-type {
  margin-top: 0;
}

.event-row {
  display: flex;
  background-color: var(--bg-white);
  border-left: 5px solid var(--primary-color);
  padding: 25px;
  border-radius: 0 var(--border-radius) var(--border-radius) 0;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
  gap: 30px;
  transition: var(--transition);
}

.event-row:hover {
  transform: translateX(4px);
}

.event-time {
  font-weight: 700;
  color: var(--primary-color);
  min-width: 130px;
  font-size: 1.1rem;
}

.event-details {
  flex: 1;
}

.event-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  background-color: #FEE2E2;
  color: var(--primary-color);
  padding: 3px 10px;
  border-radius: 20px;
  margin-bottom: 8px;
}

.event-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 8px;
}

.mediator {
  font-size: 0.95rem;
  font-style: italic;
  color: var(--text-muted);
  margin-bottom: 12px;
  display: block;
}

.speaker-list {
  list-style: none;
  padding-left: 0;
}

.speaker-item {
  font-size: 0.95rem;
  color: #4B5563;
  margin-bottom: 8px;
}

.speaker-name {
  font-weight: 700;
  color: var(--text-dark);
}

/* Break / Interval Rows */
.break-row {
  border-left-color: var(--text-muted);
  background-color: #F3F4F6;
}

.break-row .event-time {
  color: var(--text-muted);
}

.break-row .event-title {
  color: var(--text-muted);
  font-style: italic;
  font-weight: 600;
}

/* ==========================================================================
   Section: Informações Úteis (Accordion)
   ========================================================================== */
.info-section {
  background-color: var(--bg-white);
}

.programe-box {
  background-color: #FFFBEB;
  border: 1px solid #FEF3C7;
  padding: 30px;
  border-radius: var(--border-radius);
  max-width: 850px;
  margin: 0 auto 40px auto;
  text-align: left;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.01);
}

.programe-box p {
  margin-bottom: 10px;
  font-size: 1.05rem;
}

.programe-box p:last-child {
  margin-bottom: 0;
}

/* Accordion Component */
.accordion {
  max-width: 850px;
  margin: 0 auto;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.acc-item {
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.acc-item:last-child {
  border-bottom: none;
}

.acc-header {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  color: var(--text-light);
  font-weight: 600;
  font-size: 1.15rem;
  transition: var(--transition);
}

.acc-title-group {
  display: flex;
  align-items: center;
  gap: 15px;
}

.acc-icon {
  width: 28px;
  height: 28px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.acc-chevron {
  font-size: 0.9rem;
  transition: transform 0.3s ease;
}

.acc-item.active .acc-chevron {
  transform: rotate(180deg);
}

/* Accordion Colors */
.acc-item-hospedagem .acc-header {
  background-color: var(--accent-gold);
}

.acc-item-hospedagem .acc-header:hover {
  background-color: #D97706;
}

.acc-item-almoco .acc-header {
  background-color: var(--accent-green);
}

.acc-item-almoco .acc-header:hover {
  background-color: #047857;
}

.acc-item-confrat .acc-header {
  background-color: var(--primary-color);
}

.acc-item-confrat .acc-header:hover {
  background-color: var(--primary-dark);
}

.acc-item-turismo .acc-header {
  background-color: var(--accent-purple);
}

.acc-item-turismo .acc-header:hover {
  background-color: #6D28D9;
}

.acc-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease-out;
  background-color: var(--bg-light);
}

.acc-inner {
  padding: 35px 30px;
}

/* Cards Grid inside Accordion */
.acc-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.acc-card {
  background-color: var(--bg-white);
  border: 1px solid #E5E7EB;
  border-radius: var(--border-radius);
  padding: 20px;
  text-align: left;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
}

.acc-card h4 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 15px;
  border-bottom: 2px solid #F3F4F6;
  padding-bottom: 8px;
}

/* Card Header Colors */
.acc-item-hospedagem .acc-card h4 {
  color: var(--accent-gold);
  border-bottom-color: #FEF3C7;
}

.acc-item-almoco .acc-card h4 {
  color: var(--accent-green);
  border-bottom-color: #D1FAE5;
}

.acc-info-row {
  font-size: 0.9rem;
  margin-bottom: 8px;
  color: #374151;
}

.acc-label {
  font-weight: 700;
  color: #4B5563;
}

.btn-acc-action {
  display: block;
  margin-top: auto;
  padding: 10px 15px;
  color: var(--text-light);
  text-align: center;
  border-radius: 4px;
  font-weight: 600;
  font-size: 0.85rem;
  transition: var(--transition);
}

.acc-item-hospedagem .btn-acc-action {
  background-color: var(--accent-gold);
}

.acc-item-hospedagem .btn-acc-action:hover {
  background-color: #D97706;
}

.acc-item-confrat .btn-acc-action {
  background-color: var(--primary-color);
}

.acc-item-confrat .btn-acc-action:hover {
  background-color: var(--primary-dark);
}

.acc-section-subtitle {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-dark);
  text-align: left;
  margin-top: 30px;
  margin-bottom: 15px;
  border-left: 4px solid var(--accent-green);
  padding-left: 10px;
}

.acc-section-subtitle:first-of-type {
  margin-top: 0;
}

/* ==========================================================================
   Section: Inscrições
   ========================================================================== */
.inscricao-section {
  background-color: var(--bg-light);
  text-align: center;
  padding: 60px 0;
}

.btn-inscricao-banner {
  max-width: 480px;
  width: 100%;
  margin: 0 auto;
  transition: var(--transition);
}

.btn-inscricao-banner:hover {
  transform: scale(1.02);
}

/* ==========================================================================
   Section: Footer / Realizadores
   ========================================================================== */
.footer-banner-area {
  background-color: var(--bg-white);
  padding: 50px 0;
  border-top: 1px solid #E5E7EB;
}

.realizacao-group {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.org-block {
  text-align: center;
}

.org-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 25px;
}

.logos-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 50px;
  flex-wrap: wrap;
}

.logos-container img {
  max-height: 55px;
  width: auto;
  transition: var(--transition);
}

.logos-container img:hover {
  transform: translateY(-2px);
}

.footer-area {
  background-color: var(--primary-color);
  padding: 30px 0;
  border-top: 4px solid var(--accent-gold);
}

.footer-text {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
}

/* ==========================================================================
   Media Queries (Responsive)
   ========================================================================== */
@media (max-width: 900px) {
  .event-row {
    flex-direction: column;
    gap: 10px;
  }

  .event-time {
    min-width: auto;
  }
}

@media (max-width: 600px) {
  .nav-links {
    gap: 15px;
  }

  .nav-links a {
    font-size: 0.85rem;
    padding: 8px 10px;
  }

  .section-padding {
    padding: 60px 0;
  }

  .acc-inner {
    padding: 20px 15px;
  }
}
/* ==========================================================================
   Menu HambÃºrguer Responsivo (Mobile)
   ========================================================================== */
.nav-toggle {
  display: none;
}

@media (max-width: 768px) {
  .nav-container {
    position: relative;
    display: flex;
    justify-content: space-between !important;
    align-items: center;
    width: 100%;
    padding: 0 20px;
  }

  /* Esconde o menu desktop e o posiciona em absoluto */
  .nav-links, .nav-menu {
    display: none !important;
    flex-direction: column;
    position: absolute !important;
    top: 100% !important; /* Posiciona logo abaixo da barra de navegaÃ§Ã£o */
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    margin: 0 !important;
    transform: none !important;
    padding: 20px 0 !important;
    gap: 10px !important;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
    z-index: 999 !important;
  }

  .nav-links.open, .nav-menu.open {
    display: flex !important;
  }

  .nav-links li, .nav-menu li {
    width: 100% !important;
    text-align: center !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .nav-links a, .nav-menu a {
    display: block !important;
    padding: 12px 20px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  /* Hamburger Menu Toggle Button */
  .nav-toggle {
    display: flex !important;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
    margin-left: auto; /* Alinha o botÃ£o Ã  direita */
  }

  .nav-toggle .hamburger-bar {
    width: 100%;
    height: 3px;
    background-color: currentColor;
    border-radius: 2px;
    transition: all 0.3s ease;
  }

  /* TransiÃ§Ã£o do HambÃºrguer para 'X' */
  .nav-toggle.active .hamburger-bar:nth-child(1) {
    transform: translateY(7.5px) rotate(45deg);
  }

  .nav-toggle.active .hamburger-bar:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle.active .hamburger-bar:nth-child(3) {
    transform: translateY(-7.5px) rotate(-45deg);
  }
}