:root {
  --azul-escuro: #10263f;
  --bege-pergaminho: #f2e6cc;
  --marrom-antigo: #6a4a2f;
  --texto: #1f1f1f;
  --fundo: #fbf8f2;
  --branco: #ffffff;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Source Sans 3", sans-serif;
  color: var(--texto);
  background: radial-gradient(circle at top right, #fff7e9, var(--fundo));
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

h1,
h2,
h3,
.logo {
  font-family: "Merriweather", serif;
  color: var(--azul-escuro);
  margin-top: 0;
}

.container {
  width: min(1100px, 92%);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(16, 38, 63, 0.95);
  backdrop-filter: blur(4px);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 70px;
}

.logo {
  color: var(--bege-pergaminho);
  text-decoration: none;
  font-weight: 700;
}

.site-nav {
  display: flex;
  gap: 1rem;
}

.site-nav a {
  color: #f7f2e7;
  text-decoration: none;
  padding: 0.25rem 0.4rem;
  border-bottom: 2px solid transparent;
}

.site-nav a:hover,
.site-nav a.active {
  border-bottom-color: var(--bege-pergaminho);
}

.menu-toggle {
  display: none;
  border: 1px solid #d9c8a8;
  background: transparent;
  color: #fff;
  font-size: 1.25rem;
  padding: 0.3rem 0.6rem;
  border-radius: 6px;
  cursor: pointer;
}

.hero {
  position: relative;
  min-height: 60vh;
  overflow: hidden;
}

.hero img {
  width: 100%;
  height: 60vh;
  object-fit: cover;
  filter: saturate(0.85);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(16, 38, 63, 0.9), rgba(106, 74, 47, 0.5));
  display: flex;
  align-items: center;
}

.hero h1,
.hero p {
  color: #fff;
  max-width: 800px;
}

.section {
  padding: 3rem 0;
}

.image-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  text-align: center;
  margin-bottom: 1.5rem;
}

.image-cell figure {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.image-cell img {
  display: block;
}

.card {
  background: var(--branco);
  border: 1px solid #e4d7be;
  border-radius: 12px;
  padding: 1.2rem;
  box-shadow: 0 8px 24px rgba(16, 38, 63, 0.08);
}

.parchment {
  background: linear-gradient(145deg, #f5ead4, #efe1c0);
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.highlights {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, 1fr);
}

.countdown {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--marrom-antigo);
}

.btn {
  display: inline-block;
  border: 0;
  border-radius: 8px;
  background: var(--marrom-antigo);
  color: #fff;
  padding: 0.75rem 1.2rem;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
  opacity: 0.95;
}

.btn-small {
  padding: 0.5rem 1rem;
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
}

th,
td {
  text-align: left;
  padding: 0.8rem;
  border-bottom: 1px solid #e8ddc7;
}

th {
  background: #1c3552;
  color: #fff;
}

.form {
  max-width: 640px;
}

.form label {
  display: block;
  margin: 0.8rem 0 0.3rem;
  font-weight: 600;
}

.form input,
.form select {
  width: 100%;
  padding: 0.7rem;
  border-radius: 8px;
  border: 1px solid #cab99a;
  font-size: 1rem;
}

.form input:focus,
.form select:focus {
  outline: 2px solid #2e5b8a;
  border-color: #2e5b8a;
}

.form-msg {
  margin-top: 0.8rem;
  font-weight: 600;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.speaker-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
}

.timeline {
  padding-left: 1.2rem;
}

.articles {
  display: grid;
  gap: 1rem;
}

.site-footer {
  background: #10263f;
  color: #f2e6cc;
  padding: 1rem 0;
  margin-top: 2rem;
  margin-top: auto;
}

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: 0.5s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 900px) {
  .card-grid,
  .highlights,
  .grid-2 {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .menu-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    right: 4%;
    top: 70px;
    background: #10263f;
    border: 1px solid #314d69;
    border-radius: 10px;
    padding: 0.6rem;
    display: none;
    flex-direction: column;
    min-width: 220px;
  }

  .site-nav.open {
    display: flex;
  }
}

.lista-letras {
  list-style: none;
  counter-reset: item;
}

.lista-letras li {
  counter-increment: item;
}

.lista-letras li::before {
  content: counter(item, lower-alpha) ") ";
}
