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

:root {
  --green-950: #0d0d0d;   /* preto principal */
  --green-800: #1a1a1a;   /* cinza escuro */
  --green-700: #2a2a2a;   /* cinza médio */
  --green-100: #f5f5f5;   /* fundo claro */

  --gold-500: #f1c40f;   /* amarelo principal */
  --gold-300: #f7dc6f;   /* amarelo claro */

  --text-900: #111111;
  --text-700: #444444;
  --white: #ffffff;
  --shadow: 0 20px 45px rgba(16, 24, 16, 0.12);
  --radius: 22px;
}

html { scroll-behavior: smooth; }

body {
  font-family: "Inter", sans-serif;
  color: var(--text-900);
  background: #fcfcfa;
  line-height: 1.6;
}

.container { width: min(1120px, calc(100% - 32px)); margin: 0 auto; }
.section { padding: 88px 0; }
.section.alt { background: var(--green-100); }

.section-tag {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--green-700);
  font-size: 0.82rem;
  font-weight: 700;
  margin-bottom: 12px;
}

h1, h2, h3 {
  font-family: "Cormorant Garamond", serif;
  line-height: 1.05;
}

h1 { font-size: clamp(3rem, 6vw, 5.6rem); color: var(--white); margin-bottom: 18px; }
h2 { font-size: clamp(2.2rem, 4vw, 3.2rem); margin-bottom: 18px; color: var(--green-950); }
h3 { font-size: 1.65rem; margin-bottom: 12px; color: var(--green-950); }

p { color: var(--text-700); }
.lead { font-size: 1.15rem; max-width: 720px; }

/* HERO */
/*.hero {
  min-height: 100vh;
  position: relative;
  background:
    linear-gradient(180deg, rgba(15, 30, 20, 0.2), rgba(15, 30, 20, 0.72)),
    radial-gradient(circle at top right, rgba(226, 201, 143, 0.22), transparent 32%),
    linear-gradient(135deg, #16352a, #325841 42%, #5e7a4a);
  overflow: hidden;
}*/
.hero {
  min-height: 100vh;
  position: relative;
  overflow: hidden;

  background:
    linear-gradient(to bottom,
      rgba(0,0,0,0.85) 0%,
      rgba(0,0,0,0.6) 30%,
      rgba(0,0,0,0.3) 70%,
      rgba(0,0,0,0.2) 100%
    ),
    url("assets/hero.jpg");

  background-size: cover;
  background-position: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(transparent 0%, rgba(0,0,0,0.22) 70%,rgba(0,0,0,0.45) 100%);
}
.nav {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 0;
}
.brand {
  color: var(--white);
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.03em;
  text-decoration: none;
}
.brand-wrap { display: inline-flex; align-items: center; gap: 12px; }
.brand-logo {
  width: 48px; height: 48px; object-fit: contain; border-radius: 10px;
  background: rgba(255,255,255,0.94); padding: 4px;
}
.nav-links { list-style: none; display: flex; gap: 24px; }
.nav a { color: rgba(255,255,255,0.92); text-decoration: none; font-weight: 500; }
.nav-links a:hover { color: var(--gold-300); }
.menu-toggle { display: none; border: 0; background: transparent; color: var(--white); font-size: 1.8rem; cursor: pointer; }

.hero-content { position: relative; z-index: 2; padding: 70px 0 90px; max-width: 760px; }
.hero-logo-wrap { margin-bottom: 24px; }
.hero-logo {
  width: 118px; max-width: 28vw; border-radius: 20px; box-shadow: var(--shadow);
  background: rgba(255,255,255,0.96); padding: 10px;
}
.eyebrow {
  display: inline-block; color: var(--gold-300); letter-spacing: 0.18em;
  text-transform: uppercase; font-size: 0.78rem; font-weight: 700; margin-bottom: 20px;
}
.hero-content p { color: rgba(255,255,255,0.9); font-size: 1.1rem; max-width: 640px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }

/* BUTTONS */
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 22px;
  border-radius: 999px; text-decoration: none; font-weight: 700; border: 1px solid transparent;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--gold-500); color: #1b1b1b; }
.btn-primary:hover { background: var(--gold-300); }
.btn-secondary { background: transparent; border-color: rgba(255,255,255,0.35); color: var(--white); }
.btn-secondary:hover { border-color: var(--gold-300); color: var(--gold-300); }
.btn-wikiloc { background: #2ecc71; color: #fff; }
.btn-wikiloc:hover { background: #27ae60; }
.btn-gpx { background: #34495e; color: #fff; }
.btn-gpx:hover { background: #2c3e50; }
.disabled { opacity: 0.6; cursor: not-allowed; pointer-events: none; }

/* LAYOUT */
.intro-grid, .two-col, .contact-grid, .footer-grid, .section-head, .cta-box {
  display: grid; gap: 28px;
}
.intro-grid, .two-col, .contact-grid, .footer-grid {
  grid-template-columns: 1.1fr 1fr; align-items: start;
}
.section-head { grid-template-columns: 1fr auto; margin-bottom: 32px; align-items: end; }

.card, .stage, .stat-card {
  background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow);
}
.card { padding: 28px; }
.highlight { border: 1px solid rgba(198, 163, 90, 0.35); }
.highlight ul { padding-left: 20px; color: var(--text-700); }
.highlight-note { margin-top: 18px; }

.stats-grid, .support-grid, .gallery-grid, .stages {
  display: grid; gap: 20px;
}
.stats-grid { grid-template-columns: repeat(4, 1fr); margin-bottom: 26px; }
.stat-card { padding: 26px; }
.stat-number {
  display: block; color: var(--green-800); font-size: 2rem;
  font-family: "Cormorant Garamond", serif; font-weight: 700;
}
.stat-label { color: var(--text-700); font-size: 0.95rem; }
.stages { grid-template-columns: repeat(4, 1fr); }
.stage { padding: 22px; }
.support-grid { grid-template-columns: repeat(4, 1fr); }

.map-actions {
  margin-top: 30px;
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  justify-content: center;
}

/* GALLERY */
.gallery-grid {
  grid-template-columns: 1.2fr 1fr 1fr;
  grid-template-rows: 240px 240px;
}
.gallery-item {
  position: relative;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  padding: 24px;
  color: var(--white);
  font-weight: 700;
  font-size: 1.05rem;
  background-color: #1a1a1a;
  background-size: cover;
  background-position: center;
  border: 0;
}
.gallery-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.45);
  z-index: 1;
}
.gallery-item span,
.gallery-item small {
  position: relative;
  z-index: 2;
}
.album-card {
  width: 100%;
  text-align: left;
  cursor: pointer;
  flex-direction: column;
  justify-content: end;
  align-items: flex-start;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.album-card:hover { transform: translateY(-3px); }
.album-card small {
  display: block;
  margin-top: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(255,255,255,0.88);
}
.gallery-item.tall { grid-row: span 2; }
.gallery-item.wide { grid-column: span 2; }

.album-paisagens { background-image: url("assets/gallery/capas/paisagens.jpg"); }
.album-caminho { background-image: url("assets/gallery/capas/caminho.jpg"); }
.album-cultura { background-image: url("assets/gallery/capas/cultura.jpg"); }
.album-cafe { background-image: url("assets/gallery/capas/cafe.jpg"); }

/* CTA */
.cta { background: linear-gradient(135deg, #000000, #1a1a1a);}
.cta-box { grid-template-columns: 1fr auto; align-items: center; }
.cta h2, .cta p, .cta .section-tag { color: var(--white); }

/* CONTACT */
.contact-list { margin-top: 22px; display: grid; gap: 10px; }
.contact-form {
  display: grid; gap: 14px; background: var(--white); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 28px;
}
.contact-form label { display: grid; gap: 8px; color: var(--green-950); font-weight: 600; }
.contact-form input, .contact-form textarea {
  width: 100%; border: 1px solid #d6ddd6; background: #fff; border-radius: 14px; padding: 14px 16px; font: inherit;
}
.contact-form input:focus, .contact-form textarea:focus {
  outline: 2px solid rgba(198, 163, 90, 0.25); border-color: var(--gold-500);
}

/* FOOTER */
.footer { background: #000000; color: rgba(255,255,255,0.82); padding: 34px 0; }
.footer h3, .footer p { color: rgba(255,255,255,0.82); }
.footer-brand { display: flex; align-items: center; gap: 16px; }
.footer-logo {
  width: 74px; height: 74px; object-fit: contain; border-radius: 16px;
  background: rgba(255,255,255,0.94); padding: 6px;
}

/* MODAL */
.modal { position: fixed; inset: 0; display: none; z-index: 50; }
.modal.open { display: block; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,0.72); backdrop-filter: blur(4px); }
.modal-dialog {
  position: relative; z-index: 1; width: min(1100px, calc(100% - 24px)); max-height: calc(100vh - 24px);
  overflow: auto; margin: 12px auto; background: #fbfcf8; border-radius: 28px;
  box-shadow: 0 30px 90px rgba(0,0,0,0.28); padding: 28px;
}
.modal-close {
  position: absolute; top: 16px; right: 18px; border: 0; background: rgba(255,255,255,0.08);
  width: 42px; height: 42px; border-radius: 999px; font-size: 1.8rem; line-height: 1; cursor: pointer;
}
.modal-header { padding-right: 52px; margin-bottom: 18px; }
.modal-tag { margin-bottom: 6px; }
.modal-slider { display: grid; grid-template-columns: 56px 1fr 56px; gap: 14px; align-items: center; }
.modal-stage {
  min-height: 460px; background: linear-gradient(135deg, #f5f5f5, #ececec); border-radius: 24px;
  display: grid; place-items: center; overflow: hidden; position: relative;
}
.modal-stage img { width: 100%; height: min(70vh, 640px); object-fit: cover; display: none; }
.modal-stage.has-image img { display: block; }
.modal-empty { text-align: center; max-width: 420px; padding: 24px; }
.modal-empty strong { display: block; color: var(--green-950); font-size: 1.4rem; margin-bottom: 8px; }
.modal-nav {
  border: 0; background: #111111;; color: #ffffff; width: 56px; height: 56px;
  border-radius: 999px; cursor: pointer; font-size: 2rem;
}
.modal-nav[disabled] { opacity: 0.35; cursor: not-allowed; }
.modal-meta {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 4px 6px; color: var(--text-700); font-weight: 600;
}
.modal-thumbs { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 12px; }
.thumb {
  border: 2px solid transparent; background: #fff; border-radius: 16px; overflow: hidden;
  cursor: pointer; min-height: 88px; padding: 0;
}
.thumb.active { border-color: var(--gold-500); }
.thumb img { width: 100%; height: 88px; object-fit: cover; display: block; }
.thumb-label {
  display: grid; place-items: center; width: 100%; height: 88px; padding: 8px; text-align: center;
  color: #333; background: linear-gradient(135deg, #f3f3f3, #e9e9e9); font-size: 0.92rem; font-weight: 600;
}

/* RESPONSIVE */
@media (max-width: 1024px) {
  .stats-grid, .support-grid, .stages { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: 1fr 1fr; grid-template-rows: 220px 220px 220px; }
  .gallery-item.tall, .gallery-item.wide { grid-column: auto; grid-row: auto; }
  .modal-slider { grid-template-columns: 48px 1fr 48px; }
  .modal-nav { width: 48px; height: 48px; }
}

@media (max-width: 800px) {
  .menu-toggle { display: block; }
  .nav-links {
    position: absolute; right: 0; top: 74px; background: rgba(16,26,20,0.98);
    border: 1px solid rgba(255,255,255,0.08); border-radius: 18px; padding: 18px;
    width: min(280px, calc(100vw - 32px)); display: none; flex-direction: column; gap: 14px;
  }
  .nav-links.open { display: flex; }
  .intro-grid, .two-col, .contact-grid, .footer-grid, .section-head, .cta-box { grid-template-columns: 1fr; }
  .stats-grid, .support-grid, .stages, .gallery-grid { grid-template-columns: 1fr; }
  .section { padding: 72px 0; }
  .hero-content { padding-top: 56px; }
  .brand-wrap span { font-size: 0.96rem; }
  .footer-brand { align-items: flex-start; }
  .modal-dialog {
    width: min(100%, calc(100% - 10px)); max-height: calc(100vh - 10px);
    margin: 5px auto; padding: 18px; border-radius: 20px;
  }
  .modal-slider { grid-template-columns: 1fr; }
  .modal-stage { min-height: 280px; }
  .modal-stage img { height: 42vh; }
  .modal-nav { width: 100%; height: 46px; border-radius: 14px; }
}
