* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  scroll-behavior: smooth;
}

body {
  background: linear-gradient(to bottom, #f3ede3, #fff9f0);
  color: #3a2f28;
  line-height: 1.7;
  background-image: url('https://cdn.pixabay.com/photo/2015/07/02/10/28/field-828624_1280.jpg');
  background-attachment: fixed;
  background-size: cover;
  backdrop-filter: brightness(0.95);
}

header {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  height: 100px;
  background-color: #4b2e19;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  flex-direction: column;
  padding: 0.5rem;
}

header h1 {
  font-size: 2rem;
  padding: 0.5rem 1rem;
}

.header-image img {
  max-height: 60px;
  border-radius: 8px;
  margin-top: 0.3rem;
}

nav {
  margin-top: 110px;
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 0 1rem;
}

nav button {
  background-color: #a0522d;
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1rem;
  transition: background 0.3s;
}

nav button:hover {
  background-color: #8b4513;
}

main {
  max-width: 1200px;
  margin: 2rem auto;
  padding: 2rem 1rem;
  background-color: rgba(255, 255, 255, 0.85);
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.page {
  display: none;
}

.page.active {
  display: block;
}

h2 {
  margin-top: 1.5rem;
  color: #6b4226;
}

p {
  margin: 0.8rem 0 1.5rem 0;
  font-size: 1.1rem;
  text-align: justify;
}

footer {
  text-align: center;
  padding: 1.5rem 0;
  background-color: #4b2e19;
  color: white;
  font-weight: bold;
  margin-top: 2rem;
  box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.25);
  border-radius: 0 0 12px 12px;
}

/* Imagens abaixo do texto */
.topic-image {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 1rem auto 2rem auto;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}