/* =============================================
   JUNTA DE FREGUESIA DO PAUL — STYLESHEET
   ============================================= */

/* RESET & BASE */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --green:   #1B4332;
  --green-d: #0F2318;
  --green-l: #2D6A4F;
  --gold:    #C9922A;
  --gold-l:  #DDA84E;
  --navy:    #1E3A5F;
  --cream:   #F8F5EE;
  --cream-d: #EDE8DF;
  --white:   #FFFFFF;
  --text:    #1A1A1A;
  --text-m:  #555550;
  --border:  #E2DDD5;

  --font-h: 'Playfair Display', Georgia, serif;
  --font-b: 'Inter', system-ui, sans-serif;

  --nav-h: 72px;
  --radius: 6px;
  --shadow: 0 4px 24px rgba(0,0,0,0.08);
  --shadow-lg: 0 12px 48px rgba(0,0,0,0.14);
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-b);
  color: var(--text);
  background: var(--white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { display: block; width: 100%; height: 100%; object-fit: cover; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* ── TYPOGRAPHY HELPERS ── */
.section-eyebrow {
  font-family: var(--font-b);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.75rem;
}
.section-eyebrow--light { color: var(--gold-l); }

.section-title {
  font-family: var(--font-h);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 600;
  line-height: 1.15;
  color: var(--green);
  margin-bottom: 1.5rem;
}
.section-title--light { color: var(--white); }
.section-title em { font-style: italic; font-weight: 400; }

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 4rem;
}
.section-desc { color: var(--text-m); font-size: 1.05rem; }

.link-gold {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--gold);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  transition: gap 0.2s;
}
.link-gold:hover { gap: 0.7rem; }

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  border-radius: var(--radius);
  font-family: var(--font-b);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  transition: all 0.25s ease;
  white-space: nowrap;
}
.btn--primary {
  background: var(--green);
  color: var(--white);
  border: 2px solid var(--green);
}
.btn--primary:hover {
  background: var(--gold);
  border-color: var(--gold);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(201,146,42,0.35);
}
.btn--outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.6);
}
.btn--outline:hover {
  background: rgba(255,255,255,0.12);
  border-color: var(--white);
}
.btn--secondary {
  background: var(--cream);
  color: var(--green);
  border: 2px solid var(--border);
}
.btn--secondary:hover {
  background: var(--green);
  color: var(--white);
  border-color: var(--green);
  transform: translateY(-2px);
}
.btn--full { width: 100%; }

/* ── REVEAL ANIMATIONS ── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ══════════════════════════════════════════
   NAVIGATION
══════════════════════════════════════════ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, box-shadow 0.3s, padding 0.3s;
}
.nav.scrolled {
  border-color: var(--border);
  box-shadow: 0 2px 20px rgba(0,0,0,0.08);
}
.nav__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
.nav__logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}
.nav__crest svg { width: 36px; height: 44px; flex-shrink: 0; }
.nav__title { display: flex; flex-direction: column; line-height: 1; }
.nav__subtitle {
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-m);
}
.nav__name {
  font-family: var(--font-h);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--green);
  letter-spacing: 0.06em;
}
.nav__links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
}
.nav__links a {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-m);
  padding: 0.5rem 0.75rem;
  border-radius: 4px;
  transition: color 0.2s, background 0.2s;
}
.nav__links a:hover { color: var(--green); background: var(--cream); }
.nav__cta {
  background: var(--green) !important;
  color: var(--white) !important;
  border-radius: 4px;
  padding: 0.5rem 1rem !important;
}
.nav__cta:hover { background: var(--gold) !important; }
.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}
.nav__hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--green);
  border-radius: 2px;
  transition: all 0.3s;
}
.nav__mobile {
  display: none;
  flex-direction: column;
  background: var(--white);
  border-top: 1px solid var(--border);
  padding: 1rem 2rem 1.5rem;
}
.nav__mobile a {
  padding: 0.75rem 0;
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-m);
  border-bottom: 1px solid var(--border);
  display: block;
}
.nav__mobile a:last-child { border-bottom: none; }
.nav__mobile.open { display: flex; }

/* ══════════════════════════════════════════
   HERO
══════════════════════════════════════════ */
.hero {
  position: relative;
  height: 100vh;
  min-height: 640px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.hero__bg {
  position: absolute;
  inset: 0;
  background:
    url('https://picsum.photos/seed/paul-mountain/1920/1080') center/cover no-repeat;
  transform: scale(1.04);
  transition: transform 8s ease;
}
.hero.loaded .hero__bg { transform: scale(1); }
.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    160deg,
    rgba(15,35,24,0.55) 0%,
    rgba(15,35,24,0.85) 60%,
    rgba(15,35,24,0.97) 100%
  );
}
.hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 1.5rem;
  max-width: 860px;
  animation: heroIn 1.2s ease both;
}
@keyframes heroIn {
  from { opacity: 0; transform: translateY(32px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hero__eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.25rem;
  display: block;
}
.hero__title {
  font-family: var(--font-h);
  font-size: clamp(3.5rem, 10vw, 7rem);
  font-weight: 600;
  color: var(--white);
  line-height: 1;
  letter-spacing: -0.02em;
  margin-bottom: 1.25rem;
}
.hero__subtitle {
  font-size: clamp(1rem, 2.2vw, 1.2rem);
  color: rgba(255,255,255,0.78);
  line-height: 1.65;
  margin-bottom: 2.5rem;
  font-weight: 300;
}
.hero__actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}
.hero__scroll {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  color: rgba(255,255,255,0.5);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.hero__scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.4), transparent);
  animation: scrollLine 2s ease-in-out infinite;
}
@keyframes scrollLine {
  0%, 100% { opacity: 0.4; transform: scaleY(1); }
  50% { opacity: 1; transform: scaleY(0.7); }
}

/* ══════════════════════════════════════════
   STATS BAR
══════════════════════════════════════════ */
.stats {
  background: var(--cream);
  border-bottom: 1px solid var(--border);
}
.stats__grid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 2.5rem 0;
}
.stats__item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0 3rem;
  flex: 1;
  justify-content: center;
}
.stats__icon {
  font-size: 1.25rem;
  color: var(--gold);
  flex-shrink: 0;
}
.stats__text {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}
.stats__text strong {
  font-family: var(--font-h);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--green);
  line-height: 1.2;
}
.stats__text span {
  font-size: 0.78rem;
  color: var(--text-m);
  line-height: 1.4;
}
.stats__divider {
  width: 1px;
  height: 52px;
  background: var(--border);
  flex-shrink: 0;
}

/* ══════════════════════════════════════════
   ABOUT
══════════════════════════════════════════ */
.about {
  padding: 7rem 0;
  background: var(--white);
}
.about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: center;
}
.about__image-wrap {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  height: 520px;
}
.about__image-badge {
  position: absolute;
  bottom: 1.5rem;
  left: 1.5rem;
  background: rgba(27,67,50,0.92);
  backdrop-filter: blur(8px);
  color: var(--white);
  padding: 0.875rem 1.25rem;
  border-radius: 4px;
  border-left: 3px solid var(--gold);
}
.about__image-badge span { display: block; font-weight: 600; font-size: 0.95rem; }
.about__image-badge em { font-size: 0.75rem; opacity: 0.7; font-style: normal; }
.about__content { display: flex; flex-direction: column; gap: 0; }
.about__content p {
  color: var(--text-m);
  margin-bottom: 1.1rem;
  font-size: 1rem;
}
.about__facts {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 1.5rem 0 2rem;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.about__fact {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.875rem 0;
  border-bottom: 1px solid var(--border);
}
.about__fact:last-child { border-bottom: none; }
.fact-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-m);
  min-width: 160px;
}
.fact-value {
  font-family: var(--font-h);
  color: var(--green);
  font-size: 0.95rem;
}

/* ══════════════════════════════════════════
   FESTAS
══════════════════════════════════════════ */
.festas {
  padding: 7rem 0;
  background: var(--cream);
}
.festas__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 3.5rem;
}
.festa-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.3s, box-shadow 0.3s;
}
.festa-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}
.festa-card__image {
  position: relative;
  height: 220px;
  overflow: hidden;
}
.festa-card__image img {
  transition: transform 0.5s ease;
}
.festa-card:hover .festa-card__image img { transform: scale(1.05); }
.festa-card__month {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: var(--gold);
  color: var(--white);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.35rem 0.7rem;
  border-radius: 3px;
}
.festa-card__body { padding: 1.75rem; }
.festa-card__body h3 {
  font-family: var(--font-h);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--green);
  margin-bottom: 0.75rem;
  line-height: 1.3;
}
.festa-card__body p {
  font-size: 0.88rem;
  color: var(--text-m);
  line-height: 1.65;
  margin-bottom: 1.25rem;
}
.festa-card__tag {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--gold);
  text-transform: uppercase;
}
.festas__more {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 2rem;
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  flex-wrap: wrap;
}
.festas__more-events { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.mini-event { display: flex; align-items: center; gap: 0.6rem; }
.mini-event__month {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--white);
  background: var(--green);
  padding: 0.2rem 0.55rem;
  border-radius: 3px;
  min-width: 36px;
  text-align: center;
}
.mini-event__name { font-size: 0.88rem; color: var(--text-m); }

/* ══════════════════════════════════════════
   HERÁLDICA
══════════════════════════════════════════ */
.heraldica {
  padding: 7rem 0;
  background: var(--green-d);
  position: relative;
  overflow: hidden;
}
.heraldica::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: rgba(201,146,42,0.04);
  pointer-events: none;
}
.heraldica__grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 6rem;
  align-items: center;
}
.heraldica__crest {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}
.heraldica__svg { width: 180px; height: 216px; filter: drop-shadow(0 8px 32px rgba(0,0,0,0.5)); }
.heraldica__flag {
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: 100px;
  height: 70px;
  border-radius: 2px;
  overflow: hidden;
  border: 2px solid rgba(255,255,255,0.2);
}
.flag-yellow { background: #C9922A; }
.flag-blue   { background: #1E3A5F; }
.heraldica__approved {
  text-align: center;
  font-size: 0.72rem;
  color: rgba(255,255,255,0.45);
  line-height: 1.6;
}
.heraldica__content p {
  color: rgba(255,255,255,0.75);
  margin-bottom: 1.1rem;
  font-size: 0.97rem;
  line-height: 1.75;
}
.heraldica__content strong { color: var(--gold-l); }
.heraldica__content em { font-style: italic; color: rgba(255,255,255,0.6); }
.heraldica__meta {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.12);
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}
.heraldica__meta-item { display: flex; align-items: baseline; gap: 1rem; }
.heraldica__meta-item span {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  min-width: 80px;
}
.heraldica__meta-item em { color: rgba(255,255,255,0.65); font-style: normal; font-size: 0.88rem; }

/* ══════════════════════════════════════════
   ASSOCIAÇÕES
══════════════════════════════════════════ */
.associacoes {
  padding: 7rem 0;
  background: var(--white);
}
.assoc__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
  margin-bottom: 2.5rem;
}
.assoc-card {
  padding: 2rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
  transition: all 0.3s;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.assoc-card:hover {
  border-color: var(--green);
  box-shadow: 0 8px 32px rgba(27,67,50,0.1);
  transform: translateY(-4px);
}
.assoc-card__icon {
  font-size: 1.5rem;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 0.25rem;
}
.assoc-card h3 {
  font-family: var(--font-h);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--green);
  line-height: 1.3;
}
.assoc-card p {
  font-size: 0.85rem;
  color: var(--text-m);
  line-height: 1.65;
  flex: 1;
}
.assoc-card__link {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 0.02em;
  margin-top: auto;
  display: block;
  transition: color 0.2s;
}
.assoc-card__link:hover { color: var(--green); }
.assoc__more {
  text-align: center;
  padding: 1.75rem;
  background: var(--cream);
  border-radius: var(--radius);
  border: 1px dashed var(--border);
}
.assoc__more-text { font-size: 0.88rem; color: var(--text-m); line-height: 1.8; }
.assoc__more-text strong { color: var(--green); }

/* ══════════════════════════════════════════
   LOCAIS
══════════════════════════════════════════ */
.locais {
  padding: 7rem 0;
  background: var(--cream);
}
.locais__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}
.local-card { border-radius: var(--radius); overflow: hidden; cursor: pointer; }
.local-card__image {
  position: relative;
  height: 320px;
  overflow: hidden;
}
.local-card__image img { transition: transform 0.5s ease; }
.local-card:hover .local-card__image img { transform: scale(1.08); }
.local-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15,35,24,0.88) 0%, transparent 55%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.5rem 1.25rem;
  transition: background 0.3s;
}
.local-card:hover .local-card__overlay {
  background: linear-gradient(to top, rgba(15,35,24,0.94) 0%, rgba(15,35,24,0.3) 55%);
}
.local-card__overlay h3 {
  font-family: var(--font-h);
  color: var(--white);
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.3rem;
  line-height: 1.3;
}
.local-card__overlay p { font-size: 0.78rem; color: rgba(255,255,255,0.65); }

/* ══════════════════════════════════════════
   CALENDÁRIO
══════════════════════════════════════════ */
.calendario {
  padding: 7rem 0;
  background: var(--white);
}
.cal__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}
.cal__semester-title {
  font-family: var(--font-h);
  font-size: 1.15rem;
  color: var(--green);
  font-weight: 600;
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--gold);
}
.cal__months { display: flex; flex-direction: column; gap: 0; }
.cal__month {
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}
.cal__month-header {
  padding: 0.875rem 1rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--green);
  background: var(--cream);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  user-select: none;
  transition: background 0.2s;
}
.cal__month-header:hover { background: var(--cream-d); }
.cal__month-header::after {
  content: '＋';
  font-size: 0.9rem;
  color: var(--gold);
  transition: transform 0.3s;
}
.cal__month.open .cal__month-header::after { transform: rotate(45deg); }
.cal__events {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}
.cal__month.open .cal__events { max-height: 400px; }
.cal__events li {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  padding: 0.6rem 1rem;
  font-size: 0.86rem;
  color: var(--text-m);
  border-bottom: 1px solid var(--border);
}
.cal__events li:last-child { border-bottom: none; }
.cal__org {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--white);
  background: var(--green-l);
  padding: 0.15rem 0.45rem;
  border-radius: 3px;
  white-space: nowrap;
  flex-shrink: 0;
}
.cal__legend {
  padding: 2rem;
  background: var(--cream);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}
.cal__legend p { font-size: 0.85rem; color: var(--text-m); margin-bottom: 1rem; font-weight: 600; }
.cal__legend-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 0.4rem 2rem;
}
.cal__legend-grid span { font-size: 0.8rem; color: var(--text-m); }
.cal__legend-grid strong { color: var(--green); }

/* ══════════════════════════════════════════
   CONTACTO
══════════════════════════════════════════ */
.contacto {
  padding: 7rem 0;
  background: var(--cream);
}
.contacto__grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 6rem;
  align-items: start;
}
.contact-items { margin-top: 2rem; display: flex; flex-direction: column; gap: 1.75rem; }
.contact-item { display: flex; align-items: flex-start; gap: 1rem; }
.contact-icon { font-size: 1.1rem; color: var(--gold); margin-top: 0.1rem; flex-shrink: 0; }
.contact-item strong { display: block; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-m); margin-bottom: 0.3rem; }
.contact-item p, .contact-item a { font-size: 0.95rem; color: var(--text); line-height: 1.5; }
.contact-item a { color: var(--gold); font-weight: 500; }
.contact-item a:hover { color: var(--green); }

/* Form */
.form { display: flex; flex-direction: column; gap: 1.25rem; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.form__group { display: flex; flex-direction: column; gap: 0.45rem; }
.form__group label { font-size: 0.78rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-m); }
.form__group input, .form__group textarea {
  padding: 0.875rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font-b);
  font-size: 0.95rem;
  color: var(--text);
  background: var(--white);
  transition: border-color 0.2s, box-shadow 0.2s;
  resize: vertical;
}
.form__group input:focus, .form__group textarea:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(27,67,50,0.1);
}
.form__group textarea { min-height: 130px; }

/* ══════════════════════════════════════════
   FOOTER
══════════════════════════════════════════ */
.footer {
  background: var(--green-d);
  color: rgba(255,255,255,0.75);
  padding: 5rem 0 0;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1.2fr 1fr;
  gap: 3.5rem;
  padding-bottom: 4rem;
}
.footer__logo {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  margin-bottom: 1.25rem;
}
.footer__logo div { display: flex; flex-direction: column; line-height: 1.2; }
.footer__logo span { font-size: 0.65rem; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255,255,255,0.5); }
.footer__logo strong { font-family: var(--font-h); font-size: 1.25rem; color: var(--white); letter-spacing: 0.06em; }
.footer__brand p { font-size: 0.82rem; line-height: 1.6; color: rgba(255,255,255,0.45); }
.footer__tagline { margin-top: 1rem !important; font-style: italic; font-family: var(--font-h); font-size: 0.9rem !important; color: rgba(255,255,255,0.4) !important; }
.footer__nav h4, .footer__links h4, .footer__social h4 {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.25rem;
}
.footer__nav ul, .footer__links ul { display: flex; flex-direction: column; gap: 0.6rem; }
.footer__nav a, .footer__links a {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.6);
  transition: color 0.2s;
}
.footer__nav a:hover, .footer__links a:hover { color: var(--white); }
.social-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.88rem;
  color: rgba(255,255,255,0.6);
  transition: color 0.2s;
  margin-bottom: 2rem;
  border: 1px solid rgba(255,255,255,0.15);
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
}
.social-link:hover { color: var(--white); border-color: rgba(255,255,255,0.35); }
.footer__contact-info { font-size: 0.82rem; line-height: 1.7; color: rgba(255,255,255,0.45); }
.footer__contact-info strong { display: block; font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold); margin-bottom: 0.4rem; }
.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 1.5rem 0;
}
.footer__bottom-line {
  height: 2px;
  background: linear-gradient(to right, transparent, var(--gold), transparent);
  margin-bottom: 1.5rem;
  opacity: 0.4;
}
.footer__bottom p { font-size: 0.78rem; text-align: center; color: rgba(255,255,255,0.3); }

/* ══════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════ */
@media (max-width: 1024px) {
  .about__grid { grid-template-columns: 1fr; gap: 3rem; }
  .about__image-wrap { height: 380px; }
  .heraldica__grid { grid-template-columns: 1fr; gap: 4rem; text-align: center; }
  .heraldica__crest { margin: 0 auto; }
  .heraldica__meta-item { justify-content: center; }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 2.5rem; }
}

@media (max-width: 768px) {
  :root { --nav-h: 64px; }

  .nav__links { display: none; }
  .nav__hamburger { display: flex; }

  .hero__title { font-size: 3.5rem; }
  .hero__actions { flex-direction: column; align-items: center; }
  .btn { width: 100%; max-width: 300px; }

  .stats__grid { flex-direction: column; padding: 2rem 0; gap: 0; }
  .stats__item { padding: 1.25rem 2rem; justify-content: flex-start; width: 100%; }
  .stats__divider { width: 80%; height: 1px; }

  .festas__grid { grid-template-columns: 1fr; }
  .festas__more { flex-direction: column; }

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

  .locais__grid { grid-template-columns: 1fr 1fr; }
  .local-card__image { height: 220px; }

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

  .contacto__grid { grid-template-columns: 1fr; gap: 3rem; }
  .form__row { grid-template-columns: 1fr; }

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

  .section-title { font-size: 1.9rem; }
}

@media (max-width: 480px) {
  .container { padding: 0 1.25rem; }
  .locais__grid { grid-template-columns: 1fr; }
  .festas__more-events { flex-direction: column; }
  .cal__legend-grid { grid-template-columns: 1fr; }
}
