/* Estilos globais para o site do 89º COPTREL */
:root {
  --verde: #48B063;
  --azul: #4CA3C3;
  --rosa: #EBC0B8;
  --vermelho: #D13540;
  --amarelo: #F1C41D;
  --branco: #FFFFFF;
  --cinza-claro: #F5F5F5;
  --cinza-escuro: #333333;
}

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

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: var(--cinza-escuro);
  overflow-x: hidden;
}

.App {
  width: 100%;
  overflow-x: hidden;
}

/* Novo Cabeçalho com fundo claro */
.hero-section-new {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background-color: var(--cinza-claro);
  padding: 3rem 1rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.hero-content-new {
  text-align: center;
  max-width: 800px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-logo-new {
  max-width: 700px;
  height: auto;
  margin-bottom: 1.5rem;
}

.hero-location {
  color: var(--cinza-escuro);
  font-size: 1.5rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
}

.hero-date-box {
  background-color: var(--vermelho);
  color: white;
  padding: 0.8rem 2rem;
  font-size: 1.2rem;
  font-weight: bold;
  border-radius: 8px;
  display: inline-block;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

@media (max-width: 768px) {
  .hero-logo-new {
    max-width: 400px;
  }
  
  .hero-location {
    font-size: 1.2rem;
  }
  
  .hero-date-box {
    font-size: 1rem;
    padding: 0.6rem 1.5rem;
  }
}

/* Seções de conteúdo */
.section {
  padding: 5rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.section-title {
  font-size: 3rem;
  margin-bottom: 3rem;
  text-align: center;
  font-weight: bold;
}

.white-text {
  color: white;
}

.section-content {
  max-width: 1200px;
  width: 100%;
}

/* Cores de fundo das seções */
.bg-white {
  background-color: var(--branco);
}

.bg-yellow {
  background-color: var(--amarelo);
}

.bg-blue {
  background-color: var(--azul);
}

.bg-green {
  background-color: var(--verde);
}

.bg-pink {
  background-color: var(--rosa);
}

.bg-red {
  background-color: var(--vermelho);
}

.bg-dark-blue {
  background-color: #1e4b6d;
}

/* Cards */
.cards-container {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2rem;
  margin-top: 2rem;
}

.card {
  background-color: white;
  border-radius: 20px;
  padding: 2rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  width: 100%;
  max-width: 350px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: center;
}

.white-card {
  background-color: white;
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.card-icon {
  font-size: 3rem;
  margin-bottom: 1.5rem;
  color: var(--azul);
}

.card-title {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  font-weight: bold;
}

.card-content {
  font-size: 1rem;
  color: #666;
}

/* Cards com cores específicas */
.card-green {
  background-color: rgba(72, 176, 99, 0.2);
}

.card-blue {
  background-color: rgba(76, 163, 195, 0.2);
}

.card-pink {
  background-color: rgba(235, 192, 184, 0.2);
}

/* Programação */
.program-container {
  display: flex;
  width: 100%;
  max-width: 1200px;
  background-color: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.program-tabs {
  display: flex;
  flex-direction: column;
  background-color: var(--cinza-claro);
  padding: 1rem 0;
  min-width: 150px;
}

.program-tab {
  padding: 1rem 2rem;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 500;
  text-align: center;
  border-radius: 50px;
  margin: 0.5rem 1rem;
}

.program-tab.active {
  background-color: var(--verde);
  color: white;
}

.program-content {
  flex: 1;
  padding: 2rem;
}

.program-timeline {
  position: relative;
  padding-left: 2rem;
}

.program-timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 2px;
  background-color: var(--verde);
}

.timeline-item {
  position: relative;
  margin-bottom: 2rem;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -2.5rem;
  top: 0.5rem;
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  background-color: var(--verde);
}

.timeline-time {
  font-weight: bold;
  color: var(--verde);
  margin-bottom: 0.5rem;
}

.timeline-title {
  font-size: 1.2rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
}

.timeline-subtitle {
  color: #666;
}

.timeline-description {
  color: #666;
}

/* Botão de link */
.link-button {
  display: inline-block;
  background-color: var(--azul);
  color: white;
  padding: 1rem 2rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  margin-top: 2rem;
  transition: all 0.3s ease;
}

.link-button:hover {
  background-color: var(--verde);
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* Passeios */
.tours-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 2rem;
  width: 100%;
}

.tour-card {
  background-color: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, height 0.3s ease;
  cursor: pointer;
  position: relative;
}

.tour-card:hover {
  transform: translateY(-10px);
}

.tour-card.expanded {
  grid-column: 1 / -1;
  transform: none;
}

.tour-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.tour-card.expanded .tour-image {
  height: 300px;
}

.tour-content {
  padding: 1.5rem;
}

.tour-title {
  font-size: 1.2rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
}

.tour-card.expanded .tour-title {
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

.tour-description {
  color: #666;
  font-size: 0.9rem;
}

.tour-expanded {
  animation: fadeIn 0.5s ease;
}

.tour-description-expanded {
  color: #444;
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.tour-close-button {
  background-color: var(--vermelho);
  color: white;
  border: none;
  padding: 0.5rem 1.5rem;
  border-radius: 50px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
}

.tour-close-button:hover {
  background-color: #b02c36;
  transform: translateY(-3px);
}

/* Contato */
.contact-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 800px;
}

.contact-info {
  background-color: white;
  border-radius: 20px;
  padding: 2rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  width: 100%;
  text-align: center;
  margin-bottom: 2rem;
}

.contact-item {
  margin-bottom: 1rem;
}

.contact-label {
  font-weight: bold;
  margin-right: 0.5rem;
}

/* Acessibilidade */
.accessibility-buttons {
  position: fixed;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  z-index: 1000;
}

.accessibility-button {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: var(--azul);
  color: white;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
  border: none;
  font-size: 1.2rem;
}

.accessibility-button:hover {
  background-color: var(--verde);
  transform: scale(1.1);
}

/* Responsividade */
@media (max-width: 768px) {
  .hero-content {
    padding: 1rem;
  }
  
  .hero-logo {
    max-width: 90%;
  }
  
  .hero-info {
    font-size: 1.2rem;
  }
  
  .section {
    padding: 3rem 1rem;
  }
  
  .section-title {
    font-size: 2rem;
    margin-bottom: 2rem;
  }
  
  .cards-container {
    flex-direction: column;
    align-items: center;
  }
  
  .card {
    max-width: 100%;
  }
  
  .program-container {
    flex-direction: column;
  }
  
  .program-tabs {
    flex-direction: row;
    overflow-x: auto;
    padding: 1rem;
    min-width: auto;
  }
  
  .program-tab {
    margin: 0 0.5rem;
    white-space: nowrap;
  }
  
  .accessibility-buttons {
    right: 10px;
  }
  
  .accessibility-button {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }
}

/* Animações */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}


/* ===== Programação - Dia 9 ===== */
.program-controls {
  display: flex; flex-wrap: wrap; gap: .5rem; margin: 1rem 0 1.25rem;
}
.program-controls .pill {
  border: 1px solid rgba(0,0,0,.12);
  padding: .5rem .85rem; border-radius: 999px; cursor: pointer;
  font-weight: 600; font-size: .95rem; background: #fff; transition: .2s;
}
.program-controls .pill[aria-pressed="true"] {
  background: #0a3d91; color: #fff; border-color: #0a3d91;
}
.program-grid {
  display: grid; gap: 1rem;
  grid-template-columns: 1fr;
}
@media (min-width: 992px) {
  .program-grid { grid-template-columns: 1fr 1fr; }
  .track--abertura { grid-column: 1 / -1; }
}
.track {
  background: #fff; border: 1px solid rgba(0,0,0,.08);
  border-radius: 16px; padding: 1rem 1.25rem;
  box-shadow: 0 6px 18px rgba(0,0,0,.04);
}
.track h3 {
  margin: 0 0 .25rem; font-size: 1.15rem;
}
.track .locations {
  display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: .75rem;
}
.badge {
  border: 1px dashed rgba(0,0,0,.2);
  padding: .25rem .5rem; border-radius: 8px; font-size: .8rem;
  background: #f7f9ff;
}
.timeline {
  list-style: none; margin: 0; padding: 0;
  border-left: 3px solid #e7ecff;
}
.timeline li {
  position: relative; padding: .75rem 0 .75rem 1rem;
}
.timeline li::before {
  content: ""; position: absolute; left: -9px; top: 1.1rem;
  width: 12px; height: 12px; border-radius: 50%; background: #0a3d91;
}
.time {
  display: inline-block; min-width: 64px; font-weight: 700;
  margin-right: .5rem; font-variant-numeric: tabular-nums;
}
.item-title { font-weight: 600; }
.meta {
  font-size: .9rem; color: #444; margin-top: .15rem;
}
.hide { display: none !important; }
/* Seções de conteúdo */
.section {
  padding: 5rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.section-title {
  font-size: 3rem;
  margin-bottom: 3rem;
  text-align: center;
  font-weight: bold;
}

.white-text {
  color: white;
}

.section-content {
  max-width: 1200px;
  width: 100%;
}

/* Overrides para casar com a paleta do site */
.program-controls .pill[aria-pressed="true"] {
  background: var(--azul); border-color: var(--azul); color: #fff;
}
.track { box-shadow: 0 6px 18px rgba(0,0,0,.06); }
.program-timeline::before,
.timeline-item::before,
.timeline-time { color: var(--verde); background-color: initial; }

/* === Hotfix iOS/Safari: remover numeração do <ol> na timeline === */
ol.timeline,
#dia1 ol.timeline,
#dia2 ol.timeline {
  list-style: none !important;
  padding-left: 0 !important;
  margin-left: 0 !important;
  -webkit-padding-start: 0 !important; /* iOS */
}
ol.timeline > li {
  list-style: none !important;
}
ol.timeline > li::marker {
  content: "" !important; /* iOS/Safari */
}

/* ajuste fino para não cortar as bolinhas e alinhar melhor a linha */
.program-container { overflow: visible; } /* se a bolinha cortar, deixe visível */
.timeline li { padding-left: 1.1rem; }   /* leve recuo para o texto */
.timeline li::before { left: -6px; }     /* aproxima o ponto da barra */

/* mantém o verde nas timelines dos dois dias */
#dia1 .timeline { border-left: 3px solid var(--verde); }
#dia1 .timeline li::before { background: var(--verde); }
#dia1 .time { color: var(--verde); }

#dia2 .timeline { border-left: 3px solid var(--verde); }
#dia2 .timeline li::before { background: var(--verde); }
#dia2 .time { color: var(--verde); }
