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

/* =========================
   BASE
========================= */
html {
  scroll-behavior: smooth;
}

:root {
  --scroll: 0%;
}

body {
  font-family: "Libre Baskerville", serif;
  color: #222;
  line-height: 1.75;
  background:
    radial-gradient(circle at 20% 10%, rgba(255,255,255,0.55), transparent 40%),
    radial-gradient(circle at 80% 0%, rgba(255,255,255,0.35), transparent 45%),
    #fff7f7;
}

/* barra de progresso */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: var(--scroll);
  background: #c6a96b;
  z-index: 2000;
  pointer-events: none;
}

::selection {
  background: rgba(143, 122, 73, 0.28);
  color: #1a1713;
}

.container {
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 20px;
}

/* =========================
   ACESSIBILIDADE / FOCO
========================= */
a:focus-visible {
  outline: 2px solid #8f7a49;
  outline-offset: 3px;
  border-radius: 4px;
}

/* =========================
   SCROLLBAR
========================= */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: #eee7da;
}

::-webkit-scrollbar-thumb {
  background: #a8925f;
  border-radius: 999px;
}

::-webkit-scrollbar-thumb:hover {
  background: #8f7a49;
}

/* Firefox */
* {
  scrollbar-width: thin;
  scrollbar-color: #a8925f #eee7da;
}

/* =========================
   HEADER
========================= */
header {
  position: relative;
  background:
    radial-gradient(circle at 30% 20%, rgba(255,255,255,0.06), transparent 35%),
    linear-gradient(180deg, #1b1b1b 0%, #0a0a0a 100%);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  padding: 60px 0 48px;
  text-align: center;
  color: #fff;
}

header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(212, 191, 132, 0.92),
    transparent
  );
}

header .container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

header h1 {
  font-family: "Playfair Display", serif;
  font-size: 56px;
  line-height: 1.1;
  letter-spacing: 1.2px;
  margin: 0;
}

.subtitle {
  max-width: 980px;
  margin: 16px auto 0;
  color: rgba(255,255,255,0.88);
  font-size: 15px;
  line-height: 1.6;
  font-style: italic;
  letter-spacing: 0.2px;
}

/* =========================
   NAVBAR
========================= */
.topnav {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(223, 210, 173, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid rgba(255,255,255,0.18);
  border-bottom: 1px solid rgba(111, 92, 47, 0.55);
  box-shadow: 0 8px 22px rgba(0,0,0,0.08);
}

.topnav .container {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
}

.navlink {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 12px 12px;
  text-align: center;
  text-decoration: none;
  color: #211c16;
  font-size: 11px;
  line-height: 1.25;
  letter-spacing: 0.15px;
  font-weight: 600;
  white-space: normal;
  word-break: normal;
  overflow-wrap: break-word;
  background: transparent;
  border-left: 1px solid rgba(80, 60, 20, 0.14);
  position: relative;
  transition:
    background-color 0.25s ease,
    color 0.25s ease,
    box-shadow 0.25s ease,
    transform 0.25s ease;
}

.navlink:last-child {
  border-right: 1px solid rgba(80, 60, 20, 0.14);
}

.navlink:hover {
  background: rgba(143, 122, 73, 0.16);
  color: #111;
}

.navlink::after {
  content: "";
  position: absolute;
  left: 18%;
  bottom: 10px;
  width: 64%;
  height: 2px;
  background: #8f7a49;
  opacity: 0;
  transform: scaleX(0.85);
  transition:
    opacity 0.25s ease,
    transform 0.25s ease;
}

.navlink:hover::after {
  opacity: 1;
  transform: scaleX(1);
}

.navlink.active {
  background: rgba(143, 122, 73, 0.92);
  color: #fff;
  font-weight: 600;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.05);
}

.navlink.active::after {
  opacity: 1;
  transform: scaleX(1);
  background: #f1e1b0;
}

/* =========================
   WRAPPER GERAL
========================= */
.content {
  width: 100%;
  margin-top: 0;
  padding-top: 40px;
}

/* =========================
   PAGE SHELL
========================= */
.page-shell {
  max-width: 880px;
  margin: 40px auto 0;
  background: #f6f3ec;
  padding: 54px;
  border-radius: 14px;
  box-shadow: 0 18px 40px rgba(0,0,0,0.10);
  border: 1px solid rgba(0,0,0,0.05);
  animation: fadeUp 0.45s ease;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.page-title {
  margin: 0 0 12px;
  font-family: "Playfair Display", serif;
  font-size: 2.2rem;
  line-height: 1.2;
  letter-spacing: 0.5px;
  color: #1f1a14;
}

.page-body {
  color: #2b2722;
  line-height: 1.95;
  font-size: 1.05rem;
  letter-spacing: 0.2px;
  text-align: justify;
  max-width: 720px;
  margin: 0 auto;
}

.page-body p {
  margin: 0 0 1.4em;
}

.page-body h3 {
  margin-top: 2em;
  margin-bottom: 0.7em;
  font-family: "Playfair Display", serif;
  color: #1f1a14;
}

.lead {
  font-size: 1.18rem;
  line-height: 1.8;
  color: #3b342d;
  margin-bottom: 1.6em;
}

/* =========================
   SEPARADOR
========================= */
.sep {
  border: none;
  border-top: 1px solid rgba(0,0,0,0.18);
  margin: 10px 0 22px;
}

/* =========================
   IMAGENS
========================= */
.post-figure {
  margin: 30px 0;
  text-align: center;
}

.post-img {
  display: block;
  margin: 34px auto;
  width: 76%;
  max-width: 780px;
  height: auto;
  border-radius: 10px;
  border: 1px solid rgba(0,0,0,0.12);
  box-shadow: 0 16px 35px rgba(0,0,0,0.16);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.post-img:hover {
  transform: scale(1.015);
  box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

.post-caption {
  margin-top: 10px;
  font-size: 13px;
  letter-spacing: 0.2px;
  opacity: 0.8;
  text-align: center;
  font-style: italic;
}

/* =========================
   HOME CARDS
========================= */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 18px;
  margin-bottom: 50px; 
}


.card {
  display: block;
  position: relative;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  background: #fbf8f0;
  border: 1px solid rgba(0,0,0,0.10);
  border-radius: 12px;
  padding: 16px 16px 18px;
  box-shadow: 0 10px 22px rgba(0,0,0,0.10);
  transition: all 0.25s ease;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(255,255,255,0.18),
    rgba(255,255,255,0.00) 45%
  );
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 30px rgba(0,0,0,0.14);
}

.card:hover::before {
  opacity: 1;
}

.card__tag {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(143,122,73,0.15);
  border: 1px solid rgba(143,122,73,0.25);
  margin-bottom: 10px;
}

.card__title {
  font-family: "Playfair Display", serif;
  font-size: 18px;
  letter-spacing: 0.3px;
  margin-bottom: 8px;
}

.card__text {
  font-size: 14px;
  line-height: 1.6;
  opacity: 0.92;
}

/* =========================
   ARTICLE HELPERS
========================= */
.article {
  max-width: 860px;
  margin: 0 auto;
  padding-top: 10px;
}

.article p {
  margin: 0 0 1.05em;
  line-height: 1.85;
}

.article h1 {
  line-height: 1.15;
  margin: 0 0 0.6em;
}

.article h2 {
  margin: 1.6em 0 0.55em;
  line-height: 1.2;
}

.article h3 {
  margin: 1.2em 0 0.5em;
  line-height: 1.25;
}

.article img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 14px;
  margin: 0.9em 0 1.2em;
}

.article hr {
  margin: 1.6em 0;
  opacity: 0.22;
}

.article .lead {
  font-size: 1.08em;
  line-height: 1.9;
  margin: 10px 0 18px;
}

/* =========================
   FACTS / TOC / CALLOUT
========================= */
.fact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 18px 0 26px;
}

.fact-card {
  border: 1px solid rgba(0,0,0,0.10);
  border-radius: 14px;
  padding: 14px;
  background: #fff;
}

.fact-k {
  display: block;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.65;
  margin-bottom: 6px;
}

.fact-v {
  display: block;
  font-size: 16px;
  line-height: 1.3;
}

.toc {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(0,0,0,0.10);
  border-radius: 14px;
  background: #fff;
  margin: 10px 0 30px;
}

.toc a {
  text-decoration: none;
  padding: 8px 10px;
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,0.10);
  color: inherit;
  font-size: 14px;
  opacity: 0.85;
}

.toc a:hover {
  opacity: 1;
}

.callout {
  border-left: 4px solid rgba(0,0,0,0.35);
  background: rgba(0,0,0,0.03);
  padding: 14px 16px;
  border-radius: 12px;
  margin: 22px 0;
}

/* =========================
   FOOTER
========================= */
footer {
  text-align: center;
  padding: 25px 0;
  background: #000;
  color: #fff;
  font-size: 14px;
}

/* =========================
   RESPONSIVO
========================= */
@media (min-width: 900px) {
  .fact-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .article {
    font-size: 19px;
    padding: 36px 18px;
  }
}

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

@media (max-width: 900px) {
  .topnav .container {
    display: flex;
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
    scrollbar-width: thin;
  }

  .navlink {
    flex: 0 0 auto;
    min-height: 48px;
    padding: 0 16px;
    white-space: nowrap;
    font-size: 12px;
    border-left: none;
    border-right: 1px solid rgba(80, 60, 20, 0.14);
  }

  .navlink:first-child {
    border-left: 1px solid rgba(80, 60, 20, 0.14);
  }
}

@media (max-width: 700px) {
  header {
    padding: 42px 0 34px;
  }

  header h1 {
    font-size: 36px;
  }

  .subtitle {
    font-size: 14px;
    margin-top: 12px;
  }

  .content {
    padding-top: 24px;
  }

  .page-shell {
    margin-top: 24px;
    padding: 28px 22px;
  }

  .page-title {
    font-size: 1.8rem;
  }

  .page-body {
    font-size: 1rem;
    line-height: 1.8;
  }

  .post-img {
    width: 100%;
    border-radius: 8px;
  }
}

@media (max-width: 480px) {
  .article {
    font-size: 16.5px;
    line-height: 1.7;
  }

  .card-grid {
    grid-template-columns: 1fr;
  }
}

/* =========================
   BACK TO TOP
========================= */
.back-to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 46px;
  height: 46px;
  border: none;
  border-radius: 999px;
  background: rgba(143, 122, 73, 0.92);
  color: #fff;
  font-size: 20px;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(0,0,0,0.18);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition:
    opacity 0.25s ease,
    visibility 0.25s ease,
    transform 0.25s ease,
    background-color 0.25s ease;
  z-index: 1200;
}

.back-to-top:hover {
  background: #7e6a3f;
  transform: translateY(0) scale(1.05);
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* =========================
   TIMELINE
========================= */
.timeline-section {
  margin-top: 40px;
}

.timeline-section h3 {
  margin-bottom: 20px;
}

.timeline {
  position: relative;
  margin-top: 20px;
  padding-left: 28px;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 0;
  left: 8px;
  width: 2px;
  height: 100%;
  background: rgba(143, 122, 73, 0.35);
}

.timeline-item {
  position: relative;
  margin-bottom: 28px;
}

.timeline-dot {
  position: absolute;
  left: -28px;
  top: 6px;
  width: 14px;
  height: 14px;
  border-radius: 999px;
  background: #8f7a49;
  border: 2px solid #f6f3ec;
  box-shadow: 0 0 0 3px rgba(143, 122, 73, 0.14);
}

.timeline-content {
  background: #fbf8f0;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 12px;
  padding: 16px 18px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.06);
}

.timeline-date {
  display: inline-block;
  margin-bottom: 8px;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #7a6a49;
}

.timeline-content h4 {
  margin: 0 0 8px;
  font-family: "Playfair Display", serif;
  font-size: 1.1rem;
  color: #1f1a14;
}

.timeline-content p {
  margin: 0;
  color: #3a342d;
  line-height: 1.75;
}



/* =========================
   video
========================= */
.video-section {
  margin: 20px 0;
}

.video-section video {
  width: 100%;
  border-radius: 10px;
}

.youtube-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  background: #0000007b;
  color: white;
  padding: 10px 14px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: 0.2s;
}

.youtube-btn:hover {
  background: #cc0000;
  transform: translateY(-1px);
}

.youtube-btn i {
  font-size: 18px;
}