/* =========================================================
   Batalha dos Guararapes — 9ª Edição
   Stylesheet
   ========================================================= */

:root {
  --green-dark: #14301f;
  --green-mid: #1c4029;
  --wood-dark: #2e1d10;
  --wood-mid: #4a2f18;
  --gold: #d4a017;
  --gold-light: #f0c94a;
  --parchment: #efe3c4;
  --parchment-dark: #e1d2a4;
  --teal: #3f7373;
  --teal-dark: #2b5252;
  --ink: #241a10;
  --cream-text: #f7edd2;
  --red-accent: #8a2b1f;

  --font-display: "Cinzel", "Georgia", serif;
  --font-nav: "Oswald", "Arial Narrow", sans-serif;
  --font-body: "Lora", "Georgia", serif;

  --radius-sm: 4px;
  --shadow-card: 0 6px 18px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background-color: var(--parchment);
  background-image:
    repeating-linear-gradient(112deg, rgba(0, 0, 0, 0.05) 0 1px, transparent 1px 3px),
    repeating-linear-gradient(23deg, rgba(0, 0, 0, 0.05) 0 1px, transparent 1px 4px);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  position: relative;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

/* Scroll-in reveal — see js/main.js. Content is fully visible with no
   JS or if the browser skips IntersectionObserver, and honors the
   reduced-motion preference. */
[data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* Ornamental section divider — thin gold rules flanking a small diamond */
.section-divider-wrap {
  padding: 22px 0;
  background: var(--parchment);
}

.section-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 0;
}

.section-divider::before,
.section-divider::after {
  content: "";
  height: 1px;
  width: clamp(50px, 12vw, 120px);
  background: linear-gradient(90deg, transparent, var(--gold));
}

.section-divider::after {
  background: linear-gradient(90deg, var(--gold), transparent);
}

.section-divider .diamond {
  width: 8px;
  height: 8px;
  flex-shrink: 0;
  background: var(--gold);
  transform: rotate(45deg);
}

ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

p {
  text-align: justify;
  hyphens: auto;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  margin: 0 0 0.5em;
  letter-spacing: 0.02em;
}

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

.eyebrow {
  font-family: var(--font-nav);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.8rem;
  color: var(--gold);
  font-weight: 600;
}

.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 28px;
}

.section-heading h2 {
  font-family: var(--font-nav);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  font-size: clamp(1.4rem, 2.4vw, 2rem);
  color: var(--green-dark);
}

.link-arrow {
  display: inline-block;
  font-family: var(--font-nav);
  text-transform: uppercase;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--green-dark);
  border-bottom: 2px solid var(--gold);
  padding: 11px 0 10px;
  white-space: nowrap;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.link-arrow:hover {
  color: var(--gold);
  border-color: var(--green-dark);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-nav);
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.05em;
  font-size: 0.85rem;
  padding: 12px 22px;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

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

.btn-cta {
  background: var(--green-mid);
  color: var(--cream-text);
  border-color: var(--gold);
}

.btn-cta:hover {
  background: var(--gold);
  color: var(--green-dark);
}

.btn-gold {
  background: var(--gold);
  color: var(--ink);
}

.btn-gold:hover {
  background: var(--gold-light);
  box-shadow: var(--shadow-card);
}

.btn-outline {
  background: transparent;
  border-color: var(--gold);
  color: var(--parchment);
}

.btn-outline:hover {
  background: var(--gold);
  color: var(--ink);
}

/* =========================================================
   Header
   ========================================================= */

.site-header {
  background: var(--green-dark);
  border-bottom: 3px solid var(--gold);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  padding-top: 10px;
  padding-bottom: 10px;
}

.logo-link {
  flex-shrink: 0;
  display: block;
  width: 92px;
}

.main-nav {
  flex: 1;
}

.main-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 26px;
  justify-content: center;
}

.main-nav a {
  font-family: var(--font-nav);
  text-transform: uppercase;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--cream-text);
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--gold-light);
  border-color: var(--gold);
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: none;
  border: 1px solid var(--gold);
  color: var(--cream-text);
  font-size: 1.4rem;
  line-height: 1;
  padding: 0;
  border-radius: var(--radius-sm);
  cursor: pointer;
}

/* =========================================================
   Hero
   ========================================================= */

.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 22% 30%, rgba(240, 201, 74, 0.42), transparent 45%),
    linear-gradient(180deg, rgba(107, 173, 166, 0.8) 0%, rgba(74, 138, 132, 0.82) 45%, rgba(43, 82, 82, 0.88) 100%),
    url("../assets/img/gallery/danca.jpg");
  background-size: auto, auto, cover;
  background-position: center, center, center 22%;
  background-repeat: no-repeat;
  padding: 56px 0 40px;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(115deg, rgba(0, 0, 0, 0.05) 0 2px, transparent 2px 6px),
    repeating-linear-gradient(25deg, rgba(255, 255, 255, 0.04) 0 2px, transparent 2px 8px);
  mix-blend-mode: overlay;
  pointer-events: none;
}

.hero-palms {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-palms::before,
.hero-palms::after {
  content: "";
  position: absolute;
  bottom: 0;
  width: 90px;
  height: 130px;
  background-color: rgba(15, 40, 30, 0.55);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 140'%3E%3Cpath d='M50,140 Q42,95 56,60' stroke='%23000' stroke-width='7' fill='none' stroke-linecap='round'/%3E%3Cg transform='translate(56,60)'%3E%3Cellipse cx='0' cy='-26' rx='4' ry='26' transform='rotate(-65)'/%3E%3Cellipse cx='0' cy='-27' rx='4' ry='27' transform='rotate(-32)'/%3E%3Cellipse cx='0' cy='-28' rx='4' ry='28' transform='rotate(0)'/%3E%3Cellipse cx='0' cy='-27' rx='4' ry='27' transform='rotate(32)'/%3E%3Cellipse cx='0' cy='-26' rx='4' ry='26' transform='rotate(65)'/%3E%3C/g%3E%3C/svg%3E") no-repeat center / contain;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 140'%3E%3Cpath d='M50,140 Q42,95 56,60' stroke='%23000' stroke-width='7' fill='none' stroke-linecap='round'/%3E%3Cg transform='translate(56,60)'%3E%3Cellipse cx='0' cy='-26' rx='4' ry='26' transform='rotate(-65)'/%3E%3Cellipse cx='0' cy='-27' rx='4' ry='27' transform='rotate(-32)'/%3E%3Cellipse cx='0' cy='-28' rx='4' ry='28' transform='rotate(0)'/%3E%3Cellipse cx='0' cy='-27' rx='4' ry='27' transform='rotate(32)'/%3E%3Cellipse cx='0' cy='-26' rx='4' ry='26' transform='rotate(65)'/%3E%3C/g%3E%3C/svg%3E") no-repeat center / contain;
}

.hero-palms::before {
  left: 2%;
}

.hero-palms::after {
  right: 2%;
  transform: scaleX(-1);
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  gap: 32px;
  align-items: center;
}

.hero-badge-wrap {
  position: relative;
  display: flex;
  justify-content: center;
}

.hero-badge-wrap::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 130%;
  height: 130%;
  transform: translate(-50%, -50%);
  background: repeating-conic-gradient(rgba(240, 201, 74, 0.38) 0deg 7deg, transparent 7deg 20deg);
  border-radius: 50%;
  -webkit-mask-image: radial-gradient(circle, black 32%, transparent 68%);
  mask-image: radial-gradient(circle, black 32%, transparent 68%);
  pointer-events: none;
}

.hero-badge-wrap img {
  position: relative;
  width: min(100%, 480px);
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.45));
}

.hero-info-card {
  background: linear-gradient(180deg, #5a3a1f, var(--wood-dark));
  border: 2px solid var(--gold);
  border-radius: var(--radius-sm);
  padding: 28px 30px;
  color: var(--cream-text);
  box-shadow: var(--shadow-card);
}

.hero-info-card .dates {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.6vw, 1.9rem);
  color: var(--gold-light);
  margin-bottom: 6px;
  text-align: left;
}

.hero-info-card hr {
  border: none;
  border-top: 1px solid rgba(240, 201, 74, 0.4);
  margin: 16px 0;
}

.hero-info-card .location {
  font-family: var(--font-nav);
  font-size: 0.95rem;
  letter-spacing: 0.03em;
  margin: 0 0 18px;
  text-align: left;
}

.hero-info-card .location strong {
  display: block;
  font-size: 1.02rem;
  margin-bottom: 2px;
}

.hero-info-card .director-pill {
  display: inline-block;
  background: var(--gold);
  color: var(--ink);
  font-family: var(--font-nav);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
}

/* =========================================================
   Sponsors bar
   ========================================================= */

.sponsors {
  background: #ffffff;
  border-bottom: 1px solid rgba(74, 47, 24, 0.25);
  padding: 22px 0;
}

.sponsors .container {
  max-width: 1400px;
}

.sponsors-banner {
  display: block;
  width: 100%;
  height: auto;
}

/* =========================================================
   About section
   ========================================================= */

.about {
  padding-top: 64px;
  padding-bottom: 64px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.9fr);
  gap: 40px;
  align-items: center;
}

.about h2 {
  font-family: var(--font-nav);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--green-dark);
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
}

.about p {
  color: #3c2f1c;
  font-size: 1.02rem;
  margin-bottom: 22px;
  max-width: 46ch;
}

.about-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  margin: 4px 0 26px;
}

.about-stats strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.7rem;
  color: var(--green-dark);
  line-height: 1;
}

.about-stats span {
  font-family: var(--font-nav);
  text-transform: uppercase;
  font-size: 0.68rem;
  letter-spacing: 0.05em;
  color: var(--wood-mid);
}

.about-illustration {
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid rgba(74, 47, 24, 0.35);
  background: var(--wood-dark);
  display: flex;
}

.about-illustration video {
  display: block;
  width: 100%;
  max-height: 560px;
  object-fit: contain;
}

.about-illustration .caption {
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.75rem;
}

/* =========================================================
   Schedule / Datas e horários
   ========================================================= */

.institucional {
  background: var(--green-dark);
  padding: 54px 0;
}

.institucional .section-heading h2 {
  color: var(--gold-light);
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.video-item {
  border: 2px solid var(--gold);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--wood-dark);
  box-shadow: var(--shadow-card);
}

.video-item video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--wood-dark);
}

/* Framed photo — a single contextual image with caption, used where a
   page needs one illustrative photo rather than a full gallery grid. */
.framed-photo {
  max-width: 560px;
  margin: 32px 0;
}

.framed-photo img {
  display: block;
  width: 100%;
  border: 2px solid var(--gold);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-card);
}

/* Photo row — two framed photos side by side, for breaking up long
   text sections without a full gallery grid. */
.photo-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin: 32px 0;
}

.photo-row figure img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: 2px solid var(--gold);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-card);
}

@media (max-width: 640px) {
  .photo-row {
    grid-template-columns: 1fr;
  }
}

/* =========================================================
   Gallery
   ========================================================= */

.gallery {
  padding-top: 60px;
  padding-bottom: 60px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}

.gallery-item {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(74, 47, 24, 0.35);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.gallery-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
}

.gallery-item:hover img {
  transform: scale(1.05);
}

/* =========================================================
   Footer
   ========================================================= */

.site-footer {
  background: linear-gradient(180deg, var(--wood-mid), var(--wood-dark));
  color: var(--cream-text);
  padding: 50px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 32px 28px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(240, 201, 74, 0.2);
}

.footer-grid > div {
  min-width: 0;
}

.footer-brand .logo-link {
  width: 96px;
  margin-bottom: 14px;
}

.footer-brand p {
  font-size: 0.85rem;
  color: rgba(247, 237, 210, 0.75);
  max-width: 26ch;
}

.footer-col h4 {
  font-family: var(--font-nav);
  text-transform: uppercase;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  color: var(--gold-light);
  margin-bottom: 14px;
}

.footer-col ul li {
  margin-bottom: 2px;
}

.footer-col a,
.footer-col p {
  font-size: 0.88rem;
  color: rgba(247, 237, 210, 0.85);
  text-align: left;
  overflow-wrap: break-word;
}

.footer-col a {
  display: inline-block;
  max-width: 100%;
  padding: 11px 0;
}

.footer-col a:hover {
  color: var(--gold-light);
}

.social-icons {
  display: flex;
  gap: 12px;
  margin-top: 4px;
}

.social-icons a {
  width: 44px;
  height: 44px;
  border: 1px solid var(--gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cream-text);
  transition: background 0.2s ease, color 0.2s ease;
}

.social-icons a:hover {
  background: var(--gold);
  color: var(--ink);
}

.icon-social {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
}

.footer-bottom {
  text-align: center;
  font-size: 0.8rem;
  color: rgba(247, 237, 210, 0.6);
  padding: 18px 0;
}

/* =========================================================
   Generic page hero (inner pages)
   ========================================================= */

.page-hero {
  padding: 70px 0 46px;
  text-align: center;
  color: var(--cream-text);
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: -16px;
  background: url("../assets/img/gallery/herois.jpg") center 35% / cover no-repeat;
  filter: blur(7px) brightness(0.6) saturate(1.1);
  transform: scale(1.06);
  z-index: 0;
}

.page-hero--espetaculo::before {
  background-image: url("../assets/img/gallery/batalha-13.jpg");
}

.page-hero--galeria::before {
  background-image: url("../assets/img/gallery/batalha-cena-final-andre-coelho.jpg");
}

.page-hero--edicoes::before {
  background-image: url("../assets/img/gallery/chegada-nassau.jpg");
}

.page-hero--parceiros::before {
  background-image: url("../assets/img/gallery/corte.jpg");
}

.page-hero--historia::before {
  background-image: url("../assets/img/gallery/dias-cardoso.jpg");
}

.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(63, 115, 115, 0.6), rgba(43, 82, 82, 0.8));
  z-index: 1;
}

.page-hero .container {
  position: relative;
  z-index: 2;
}

.page-hero h1 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  color: var(--gold-light);
}

.page-hero p {
  font-family: var(--font-nav);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.85rem;
  color: rgba(247, 237, 210, 0.85);
  text-align: center;
}

.page-section {
  padding: 56px 0;
}

.page-section.alt {
  background: var(--parchment-dark);
}

.content-block {
  max-width: 70ch;
}

.content-block p {
  color: #3c2f1c;
  margin-bottom: 18px;
}

/* Fact list — credits/colophon style definition list, used wherever
   the content is reference data (ficha técnica, contact details)
   rather than prose. */

.fact-list {
  margin: 0;
  border-top: 1px solid rgba(74, 47, 24, 0.3);
}

.fact-row {
  display: grid;
  grid-template-columns: minmax(140px, 200px) 1fr;
  gap: 10px 24px;
  padding: 16px 0;
  border-bottom: 1px solid rgba(74, 47, 24, 0.3);
}

.fact-row dt {
  font-family: var(--font-nav);
  text-transform: uppercase;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--wood-mid);
  font-weight: 600;
  padding-top: 2px;
}

.fact-row dd {
  margin: 0;
  font-size: 0.96rem;
  color: var(--ink);
}

/* Feature quote — for a single passage that deserves emphasis
   (e.g. the "why this matters" paragraph), set off with rules
   instead of boxed into a card. */

.feature-quote {
  border-top: 1px solid var(--gold);
  border-bottom: 1px solid var(--gold);
  padding: 30px 0;
}

.feature-quote p {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.1rem, 1.9vw, 1.35rem);
  color: var(--green-dark);
  line-height: 1.6;
  max-width: 62ch;
  margin: 0;
}

/* Testimonial cards — name, photo and quote, used on the Parceiros page. */

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
}

.testimonial-card {
  background: var(--parchment);
  border: 1px solid rgba(74, 47, 24, 0.25);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-card);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.testimonial-card .avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--gold);
  flex-shrink: 0;
}

.testimonial-card .avatar img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.testimonial-card .avatar.avatar--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--wood-mid);
  color: var(--cream-text);
  font-family: var(--font-display);
  font-size: 1.6rem;
}

.testimonial-card blockquote {
  margin: 0;
  font-style: italic;
  color: var(--ink);
  line-height: 1.6;
}

.testimonial-card .testimonial-author {
  display: flex;
  align-items: center;
  gap: 14px;
}

.testimonial-card .testimonial-author strong {
  display: block;
  color: var(--green-dark);
  font-family: var(--font-nav);
  font-size: 0.95rem;
}

.testimonial-card .testimonial-author span {
  display: block;
  font-family: var(--font-nav);
  font-size: 0.78rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--wood-mid);
}

/* Numbered list — enumerated options (e.g. ways to take part),
   set as a roman-numeral list rather than a grid of cards. */

.numbered-list {
  display: grid;
  gap: 0;
}

.numbered-item {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 18px;
  padding: 20px 0;
  border-bottom: 1px solid rgba(74, 47, 24, 0.25);
}

.numbered-item:first-child {
  padding-top: 0;
}

.numbered-item:last-child {
  border-bottom: none;
}

.numbered-item .num {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--gold);
}

.numbered-item h3 {
  color: var(--green-dark);
  font-size: 1.05rem;
  margin: 0 0 4px;
}

.numbered-item p {
  font-size: 0.92rem;
  color: #3c2f1c;
  margin: 0;
}

/* News list — stacked, hairline-separated entries (like a paper's
   index), used instead of a card grid for headline-style content. */

.news-list {
  display: grid;
}

.news-item {
  padding: 22px 0;
  border-bottom: 1px solid rgba(74, 47, 24, 0.3);
}

.news-item:first-child {
  padding-top: 0;
}

.news-item h3 {
  color: var(--green-dark);
  font-size: 1.12rem;
}

.news-item p {
  font-size: 0.92rem;
  color: #3c2f1c;
  margin: 0;
}

/* Forms */

.form-grid {
  display: grid;
  gap: 16px;
  max-width: 620px;
}

.form-grid label {
  display: block;
  font-family: var(--font-nav);
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  color: var(--wood-mid);
  margin-bottom: 6px;
}

.form-grid input,
.form-grid textarea,
.form-grid select {
  width: 100%;
  padding: 12px 12px;
  border: 1px solid rgba(74, 47, 24, 0.4);
  border-radius: var(--radius-sm);
  background: #fff;
  font-family: var(--font-body);
  font-size: 0.95rem;
}

.form-grid input:focus,
.form-grid textarea:focus,
.form-grid select:focus {
  outline: 2px solid var(--gold);
  outline-offset: 1px;
}

.timeline {
  border-left: 3px solid var(--gold);
  margin-left: 12px;
  padding-left: 24px;
  display: grid;
  gap: 26px;
}

.timeline-item .year {
  font-family: var(--font-display);
  color: var(--green-dark);
  font-size: 1.15rem;
  text-align: left;
}

.timeline-item p {
  color: #3c2f1c;
  font-size: 0.92rem;
  margin: 4px 0 0;
}

/* Contact page two-column layout */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}

/* =========================================================
   Responsive
   ========================================================= */

@media (max-width: 980px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .hero-inner {
    grid-template-columns: 1fr;
  }

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

  .about-illustration {
    order: -1;
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 760px) {
  .fact-row {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  body.nav-open {
    overflow: hidden;
  }

  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--green-dark);
    border-bottom: 3px solid var(--gold);
    visibility: hidden;
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.22s ease, transform 0.22s ease, visibility 0s linear 0.22s;
  }

  .main-nav.open {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.22s ease, transform 0.22s ease;
  }

  .main-nav ul {
    flex-direction: column;
    gap: 0;
    padding: 8px 24px 18px;
  }

  .main-nav a {
    display: block;
    padding: 12px 0;
    border-bottom: 1px solid rgba(240, 201, 74, 0.15);
  }

  .header-inner {
    position: relative;
  }

  .btn-cta {
    display: inline-flex;
    margin-left: auto;
    padding: 9px 14px;
    font-size: 0.72rem;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  #galeria .gallery-item:nth-child(n + 5) {
    display: none;
  }

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

/* =========================================================
   Orientações modal — floating panel with event guidance,
   triggered from the "Orientações" button in the header.
   ========================================================= */

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(20, 16, 8, 0.72);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 200;
}

.modal-overlay[hidden] {
  display: none;
}

.modal-box {
  background: var(--parchment);
  border: 4px dashed var(--gold);
  outline: 1px solid rgba(74, 47, 24, 0.3);
  outline-offset: -9px;
  border-radius: 18px;
  box-shadow: var(--shadow-card);
  max-width: 660px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  padding: 36px clamp(20px, 4vw, 42px);
  position: relative;
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--gold);
  border-radius: 50%;
  background: var(--green-dark);
  color: var(--cream-text);
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
}

.modal-close:hover {
  background: var(--gold);
  color: var(--green-dark);
}

.modal-header {
  text-align: center;
  margin-bottom: 20px;
}

.modal-header .modal-emoji {
  display: block;
  font-size: 2.4rem;
  margin-bottom: 6px;
}

.modal-box h2 {
  color: var(--green-dark);
  padding-right: 0;
}

.modal-box h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--wood-dark);
  font-family: var(--font-nav);
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin: 26px 0 14px;
}

.modal-box h3:first-of-type {
  margin-top: 0;
}

.orientacao-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 12px;
}

.orientacao-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: #fff;
  border: 2px solid var(--gold-light);
  border-radius: 14px;
  padding: 14px 16px;
}

.orientacao-item .orientacao-icon {
  font-size: 1.5rem;
  line-height: 1;
  flex-shrink: 0;
}

.orientacao-item strong {
  display: block;
  color: var(--green-dark);
  font-family: var(--font-nav);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin-bottom: 2px;
}

.orientacao-item p {
  margin: 0;
  color: var(--ink);
  font-size: 0.9rem;
  line-height: 1.45;
}

.orientacao-item:nth-child(4n + 1) { border-color: var(--gold); background: #fffdf5; }
.orientacao-item:nth-child(4n + 2) { border-color: #9cbf9c; background: #f6faf6; }
.orientacao-item:nth-child(4n + 3) { border-color: #d9a86a; background: #fff8f0; }
.orientacao-item:nth-child(4n + 4) { border-color: #8fb3c7; background: #f3f9fb; }

/* =========================================================
   Gallery lightbox — click a gallery photo to view it enlarged.
   ========================================================= */

.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 8, 4, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 300;
}

.lightbox-overlay[hidden] {
  display: none;
}

.lightbox-overlay img {
  max-width: 100%;
  max-height: 88vh;
  border: 2px solid var(--gold);
  border-radius: var(--radius-sm);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
}

.lightbox-close {
  position: fixed;
  top: 20px;
  right: 24px;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--gold);
  border-radius: 50%;
  background: rgba(20, 16, 8, 0.8);
  color: var(--cream-text);
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
}

.lightbox-close:hover {
  background: var(--gold);
  color: var(--green-dark);
}

.lightbox-nav {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--gold);
  border-radius: 50%;
  background: rgba(20, 16, 8, 0.8);
  color: var(--cream-text);
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
}

.lightbox-nav:hover {
  background: var(--gold);
  color: var(--green-dark);
}

.lightbox-prev {
  left: 16px;
}

.lightbox-next {
  right: 16px;
}

@media (max-width: 640px) {
  .lightbox-nav {
    width: 42px;
    height: 42px;
    font-size: 1.4rem;
  }

  .lightbox-prev {
    left: 6px;
  }

  .lightbox-next {
    right: 6px;
  }
}

.gallery-item {
  cursor: zoom-in;
}
