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

/* ==============================
   VARIÁVEIS
================================ */
:root {
  --bg: #f6f7f8;
  --bg-card: #ffffff;
  --text-main: #1f2933;
  --text-muted: #5f6c7b;
  --accent: #7a0c0c;
  --accent-soft: #f4eaea;
  --border: #e5e7eb;
  --shadow-soft: 0 10px 28px rgba(0,0,0,0.08);
  --shadow-strong: 0 16px 40px rgba(0,0,0,0.14);
}

/* ==============================
   DARK MODE (automático)
================================ */
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f172a;
    --bg-card: #111827;
    --text-main: #e5e7eb;
    --text-muted: #9ca3af;
    --accent: #c53030;
    --accent-soft: #2a1212;
    --border: #1f2937;
  }
}

/* ==============================
   BASE
================================ */
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI",
               Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text-main);
  line-height: 1.75;
  font-size: 16px;
  scroll-behavior: smooth;
}

/* ==============================
   HEADER
================================ */
header {
  background: linear-gradient(120deg, #1f2933, #111827);
  color: #fff;
  padding: 38px 22px;
}

header h1 {
  font-family: "Georgia", "Times New Roman", serif;
  font-size: 2.2rem;
  letter-spacing: 0.5px;
}

header p {
  margin-top: 6px;
  color: #d1d5db;
}

/* ==============================
   CONTEÚDO
================================ */
section {
  max-width: 1100px;
  margin: 40px auto;
  padding: 0 22px;
  animation: fadeIn 0.6s ease-out;
}

/* ==============================
   TÍTULOS
================================ */
h1, h2 {
  font-family: "Georgia", "Times New Roman", serif;
}

h1 {
  font-size: 2.1rem;
  margin-bottom: 16px;
}

h2 {
  font-size: 1.6rem;
  margin: 48px 0 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--accent-soft);
}

h3 {
  font-size: 1.25rem;
  margin: 26px 0 10px;
}

/* ==============================
   TEXTO
================================ */
p {
  margin-bottom: 16px;
}

em {
  color: var(--text-muted);
}

/* ==============================
   LINKS
================================ */
a {
  color: var(--accent);
  font-weight: 500;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* ==============================
   LISTAS
================================ */
ul {
  margin: 14px 0 20px 20px;
}

li {
  margin-bottom: 10px;
}

/* ==============================
   DESTAQUE DE DATA FIXA
================================ */
.data-fixa {
  background: var(--accent-soft);
  border-left: 4px solid var(--accent);
  padding: 14px 18px;
  border-radius: 10px;
  margin: 22px 0;
  font-weight: 600;
}

/* ==============================
   IMAGENS
================================ */
img {
  width: 100%;
  max-width: 920px;
  display: block;
  margin: 22px auto;
  border-radius: 14px;
  box-shadow: var(--shadow-strong);
  transition: transform 0.3s ease;
}

img:hover {
  transform: scale(1.01);
}

/* ==============================
   MAPA
================================ */
#map {
  height: 520px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-strong);
  margin-bottom: 42px;
}

/* ==============================
   ITINERÁRIO (INDEX)
================================ */
.itinerario li {
  list-style: none;
  background: var(--bg-card);
  padding: 20px;
  border-radius: 14px;
  margin-bottom: 16px;
  box-shadow: var(--shadow-soft);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.itinerario li:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-strong);
}

/* ==============================
   TABELAS
================================ */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 26px 0;
  background: var(--bg-card);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

th, td {
  padding: 14px;
}

th {
  background: var(--accent);
  color: #fff;
}

tr:nth-child(even) td {
  background: rgba(0,0,0,0.03);
}

/* ==============================
   SEPARADORES
================================ */
hr {
  border: none;
  height: 1px;
  background: var(--border);
  margin: 46px 0;
}

/* ==============================
   FOOTER
================================ */
footer {
  text-align: center;
  padding: 42px 20px;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* ==============================
   ANIMAÇÕES
================================ */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ==============================
   RESPONSIVO
================================ */
@media (max-width: 768px) {
  header h1 {
    font-size: 1.7rem;
  }

  h1 {
    font-size: 1.8rem;
  }

  h2 {
    font-size: 1.4rem;
  }

  #map {
    height: 380px;
  }
}
