:root {
  --bg: #F6F1E8;
  --surface: #FFFFFF;
  --ink: #1A1612;
  --muted: #5A5048;
  --red: #7A1515;
  --red-deep: #5C0F0F;
  --navy: #1B2540;
  --gold: #B08A45;
  --gold-light: #D4B574;
  --gold-ink: #7E5F28;
  --border: #E3DACB;
  --shadow: 0 12px 40px rgba(26,22,18,.10);
  --shadow-lg: 0 24px 60px rgba(26,22,18,.16);
  --radius: 16px;
  --container: 1240px;
  --header-h: 100px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.container { width: min(var(--container), 100% - 2.5rem); margin-inline: auto; }
section[id], header[id] { scroll-margin-top: calc(var(--header-h) + 1rem); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 4px; }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--red); color: #fff; padding: .75rem 1rem; z-index: 1000;
}
.skip-link:focus { left: 1rem; top: 1rem; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  height: var(--header-h);
  transition: background .3s ease, box-shadow .3s ease, backdrop-filter .3s ease;
}
.site-header:not(.scrolled) {
  background: linear-gradient(180deg, rgba(15,8,6,.55) 0%, rgba(15,8,6,0) 100%);
}
.site-header.scrolled {
  background: rgba(246,241,232,.92);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--border);
}
.header-inner { height: 100%; display: flex; align-items: center; gap: 2rem; }
.brand { display: flex; align-items: center; gap: .75rem; line-height: 1; }
.brand-logo { width: 82px; height: auto; flex-shrink: 0; }
.brand-text { display: flex; flex-direction: column; }
.brand-wordmark {
  display: block; width: 116px; height: auto;
  filter: brightness(0) invert(1); transition: filter .3s;
}
.site-header.scrolled .brand-wordmark { filter: none; }
.brand-sub {
  font-size: .68rem; color: rgba(255,255,255,.75); letter-spacing: 1.6px;
  text-transform: uppercase; transition: color .3s; margin-top: .35rem;
}
.site-header.scrolled .brand-sub { color: var(--muted); }

.nav { margin-left: auto; }
.nav ul { list-style: none; display: flex; gap: 1.5rem; margin: 0; padding: 0; }
.nav a {
  font-size: .88rem; font-weight: 500; color: rgba(255,255,255,.9);
  letter-spacing: .3px; position: relative; transition: color .3s;
}
.site-header.scrolled .nav a { color: var(--ink); }
.nav a::after {
  content: ""; position: absolute; left: 0; bottom: -6px;
  width: 0; height: 1.5px; background: var(--red); transition: width .3s ease;
}
.nav a:hover::after { width: 100%; }
.header-social { display: flex; gap: .6rem; }
.header-social a {
  width: 34px; height: 34px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.85); border: 1px solid rgba(255,255,255,.25);
  transition: all .25s;
}
.site-header.scrolled .header-social a { color: var(--ink); border-color: var(--border); }
.header-social a:hover { color: var(--red); border-color: var(--red); }

.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: .5rem; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: #fff; margin: 5px 0; transition: .25s; }
.site-header.scrolled .nav-toggle span { background: var(--ink); }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100vh;
  display: flex; align-items: center; overflow: hidden; color: #fff;
}
.hero-media { position: absolute; inset: 0; }
.hero-media img {
  width: 100%; height: 100%; object-fit: cover;
  object-position: center 18%;
  animation: kenburns 22s ease-in-out infinite alternate;
}
@keyframes kenburns {
  from { transform: scale(1); }
  to { transform: scale(1.05); }
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(15,8,6,.25) 0%, rgba(15,8,6,.55) 45%, rgba(15,8,6,.85) 100%);
}
.hero-grain {
  position: absolute; inset: 0; opacity: .12; pointer-events: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/></svg>");
}
.hero-content { position: relative; z-index: 2; max-width: 820px; padding-block: 6rem 4rem; }
.hero-eyebrow {
  font-size: .85rem; letter-spacing: 3px; text-transform: uppercase;
  color: var(--gold-light); margin: 0 0 1.25rem; font-weight: 500;
}
.hero h1 {
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(2.6rem, 6.5vw, 4.6rem); line-height: 1.05;
  margin: 0 0 1.25rem; font-weight: 700; letter-spacing: -0.5px;
}
.hero-subtitle {
  display: block; font-size: .42em; font-weight: 500;
  color: rgba(255,255,255,.85); letter-spacing: 2px;
  text-transform: uppercase; margin-top: .6rem;
  font-family: "Inter", sans-serif;
}
.hero-lead {
  font-size: 1.2rem; max-width: 560px; opacity: .9;
  margin: 0 0 2.25rem; font-weight: 300;
}
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: .95rem 1.9rem; border-radius: 999px; font-weight: 600; font-size: .95rem;
  transition: transform .25s ease, background .25s ease, color .25s ease, box-shadow .25s ease;
  border: 1.5px solid transparent; letter-spacing: .3px;
}
.btn:hover { transform: translateY(-3px); }
.btn-primary { background: var(--red); color: #fff; box-shadow: 0 8px 24px rgba(122,21,21,.35); }
.btn-primary:hover { background: var(--red-deep); box-shadow: 0 12px 32px rgba(122,21,21,.45); }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.5); }
.btn-ghost:hover { background: rgba(255,255,255,.12); border-color: #fff; }

.scroll-indicator {
  position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%);
  width: 26px; height: 40px; border: 1.5px solid rgba(255,255,255,.5);
  border-radius: 999px; display: flex; justify-content: center; padding-top: 8px;
}
.scroll-indicator span {
  width: 3px; height: 8px; background: #fff; border-radius: 2px;
  animation: scrollDot 1.8s ease-in-out infinite;
}
@keyframes scrollDot {
  0% { transform: translateY(0); opacity: 1; }
  100% { transform: translateY(12px); opacity: 0; }
}

/* ---------- Números ---------- */
.numeros {
  background: var(--red-deep); color: #fff; padding: 3.5rem 0;
  position: relative; overflow: hidden;
}
.numeros::before {
  content: ""; position: absolute; inset: 0; opacity: .08;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='120' height='120'><path d='M60 0 L120 60 L60 120 L0 60 Z' fill='none' stroke='%23fff' stroke-width='1'/></svg>");
  background-size: 120px 120px;
}
.numeros-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem;
  position: relative; z-index: 1;
}
.numero { text-align: center; }
.numero-valor {
  display: block; font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(2.2rem, 4vw, 3.2rem); font-weight: 700;
  color: var(--gold-light); line-height: 1;
}
.numero-label {
  display: block; margin-top: .6rem; font-size: .82rem;
  letter-spacing: 1.2px; text-transform: uppercase; opacity: .85;
}

/* ---------- Sections ---------- */
.section { padding: 6.5rem 0; }
.section-alt { background: var(--surface); }
.section-head { max-width: 720px; margin-bottom: 3rem; }
.eyebrow {
  font-size: .78rem; letter-spacing: 3px; text-transform: uppercase;
  color: var(--gold-ink); font-weight: 600; margin: 0 0 .6rem;
  display: flex; align-items: center; gap: .75rem;
}
.eyebrow::before {
  content: ""; width: 32px; height: 1px; background: var(--gold);
}
.section-head h2 {
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(2rem, 4vw, 2.9rem); margin: 0 0 .85rem;
  color: var(--ink); font-weight: 700; letter-spacing: -0.3px;
}
.section-lead { color: var(--muted); font-size: 1.08rem; margin: 0; max-width: 620px; }

/* ---------- History ---------- */
.history-grid {
  display: grid; grid-template-columns: 1.05fr 1fr; gap: 4rem; align-items: start;
}
.history-text p { margin: 0 0 1.15rem; color: var(--ink); font-size: 1.02rem; }
.history-text a { color: var(--red); font-weight: 600; }
.history-text a:hover { text-decoration: underline; }
.lead-para { font-size: 1.12rem !important; color: var(--ink); }
.quote {
  margin: 2rem 0; padding: 1.5rem 1.75rem;
  border-left: 3px solid var(--gold);
  background: linear-gradient(90deg, rgba(176,138,69,.08), transparent);
  border-radius: 0 10px 10px 0;
}
.quote p {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.25rem; font-style: italic; color: var(--red-deep);
  margin: 0; line-height: 1.4;
}
.history-note {
  font-size: .88rem; color: var(--muted); font-style: italic;
  padding-top: 1rem; border-top: 1px solid var(--border);
}
.history-images { display: grid; gap: 1.5rem; position: sticky; top: calc(var(--header-h) + 2rem); }
.img-card { margin: 0; position: relative; }
.img-card img {
  border-radius: var(--radius); box-shadow: var(--shadow);
  width: 100%; height: auto; transition: transform .4s ease;
}
.img-card:hover img { transform: scale(1.02); }
.img-card figcaption {
  font-size: .75rem; color: var(--muted); margin-top: .6rem;
  letter-spacing: .3px;
}

/* ---------- Culture ---------- */
.culture-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; margin-bottom: 3rem;
}
.culture-card {
  background: var(--bg); padding: 2rem 1.6rem; border-radius: var(--radius);
  border: 1px solid var(--border); transition: transform .3s ease, box-shadow .3s ease, border-color .3s;
  position: relative; overflow: hidden;
}
.culture-card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--red), var(--gold)); transform: scaleX(0);
  transform-origin: left; transition: transform .35s ease;
}
.culture-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.culture-card:hover::before { transform: scaleX(1); }
.culture-icon { color: var(--red); margin-bottom: 1.25rem; }
.culture-card h3 {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.2rem; margin: 0 0 .6rem; color: var(--ink);
}
.culture-card p { font-size: .92rem; color: var(--muted); margin: 0; line-height: 1.55; }
.culture-banner {
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg);
  position: relative; margin: 0;
}
.culture-banner img { width: 100%; height: auto; transition: transform .6s ease; }
.culture-banner:hover img { transform: scale(1.03); }
.culture-banner figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 1rem 1.25rem; color: #fff; font-size: .8rem; letter-spacing: .3px;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,.7));
}

/* ---------- Agenda ---------- */
.agenda-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.agenda-card {
  display: flex; gap: 1.5rem; padding: 1.75rem;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); transition: transform .3s, box-shadow .3s;
}
.agenda-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.agenda-date {
  flex-shrink: 0; width: 78px; text-align: center;
  background: var(--red); color: #fff; border-radius: 12px;
  padding: .75rem .5rem; align-self: flex-start;
}
.agenda-day { display: block; font-family: "Playfair Display", Georgia, serif; font-size: 2rem; font-weight: 700; line-height: 1; }
.agenda-month { display: block; font-size: .7rem; letter-spacing: 1px; margin-top: .35rem; opacity: .9; }
.agenda-body h3 { font-family: "Playfair Display", Georgia, serif; font-size: 1.15rem; margin: 0 0 .35rem; }
.agenda-body p { margin: 0 0 .5rem; color: var(--muted); font-size: .92rem; }
.agenda-place { font-size: .82rem; color: var(--gold-ink); font-weight: 500; }
.agenda-note { font-size: .82rem; color: var(--muted); font-style: italic; margin-top: 1.5rem; }
.agenda-card--cta {
  background: linear-gradient(135deg, rgba(176,138,69,.12), rgba(122,21,21,.06));
  border-color: rgba(176,138,69,.5);
}
.agenda-date--cta {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: .4rem; background: var(--navy);
}
.agenda-date--cta .agenda-month { margin-top: 0; }
.agenda-link { display: inline-block; margin-top: .35rem; color: var(--red); font-weight: 600; font-size: .9rem; }
.agenda-link:hover { text-decoration: underline; }

/* ---------- Informes ---------- */
.informes {
  background: var(--navy); color: #F5EFE6;
  position: relative; overflow: hidden;
}
.informes::before {
  content: ""; position: absolute; inset: 0; opacity: .05;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='140' height='140'><path d='M70 0 L140 70 L70 140 L0 70 Z' fill='none' stroke='%23fff' stroke-width='1'/></svg>");
  background-size: 140px 140px;
}
.informes .container { position: relative; z-index: 1; }
.informes .eyebrow { color: var(--gold-light); }
.informes .eyebrow::before { background: var(--gold-light); }
.informes .section-head h2 { color: #F5EFE6; }
.informes .section-lead { color: rgba(245,239,230,.72); }
.notice-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.notice {
  position: relative; padding: 1.75rem;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: var(--radius);
}
.notice::before {
  content: ""; position: absolute; left: 0; top: 1.5rem; bottom: 1.5rem; width: 2px;
  background: linear-gradient(var(--gold-light), var(--red));
}
.notice-meta { display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; margin-bottom: .85rem; }
.notice-tag {
  font-size: .68rem; letter-spacing: 1.5px; text-transform: uppercase;
  font-weight: 600; color: var(--gold-light);
  background: rgba(212,181,116,.14); padding: .3rem .65rem; border-radius: 999px;
}
.notice time { font-size: .78rem; color: rgba(245,239,230,.6); }
.notice h3 {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.2rem; margin: 0 0 .5rem; color: #F5EFE6;
}
.notice p { font-size: .92rem; color: rgba(245,239,230,.78); margin: 0 0 .75rem; }
.notice p:last-child { margin-bottom: 0; }
.notice-link { color: var(--gold-light); font-weight: 600; font-size: .9rem; }
.notice-link:hover { text-decoration: underline; }
.notice-note {
  font-size: .82rem; color: rgba(245,239,230,.55);
  font-style: italic; margin-top: 1.5rem;
}

/* ---------- Gallery ---------- */
.gallery-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 220px; gap: 1rem;
}
.gallery-item {
  border: none; padding: 0; background: none; cursor: pointer;
  border-radius: 12px; overflow: hidden; position: relative;
}
.gallery-item img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .5s ease;
}
.gallery-item:hover img { transform: scale(1.08); }
.gallery-caption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: .85rem 1rem;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,.7));
  color: #fff; font-size: .82rem; letter-spacing: .3px;
  transform: translateY(100%); transition: transform .35s ease;
}
.gallery-item:hover .gallery-caption { transform: translateY(0); }
.gallery-item--wide { grid-column: span 2; grid-row: span 2; }
.gallery-item--wide-end { grid-column: span 2; }
.gallery-cta {
  display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-end;
  gap: .3rem; padding: 1.4rem; border-radius: 12px; color: #fff;
  background: linear-gradient(140deg, var(--red-deep), var(--red));
  box-shadow: 0 10px 28px rgba(92,15,15,.25);
  transition: transform .3s ease, box-shadow .3s ease;
}
.gallery-cta svg { margin-bottom: auto; opacity: .85; }
.gallery-cta span:first-of-type {
  font-family: "Playfair Display", Georgia, serif; font-size: 1.05rem; line-height: 1.25;
}
.gallery-cta span:last-of-type { font-size: .8rem; color: var(--gold-light); letter-spacing: .5px; }
.gallery-cta:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

/* ---------- Social ---------- */
.social-section { text-align: center; }
.social-section .section-head { margin-inline: auto; }
.social-cards { display: flex; justify-content: center; gap: 1.5rem; flex-wrap: wrap; }
.social-card {
  display: flex; align-items: center; gap: 1.1rem;
  padding: 1.5rem 2.25rem; border: 1px solid var(--border);
  border-radius: var(--radius); background: var(--surface);
  min-width: 240px; transition: transform .3s, border-color .3s, box-shadow .3s;
}
.social-card:hover {
  transform: translateY(-4px); border-color: var(--red);
  box-shadow: var(--shadow); color: var(--red);
}
.social-card strong { display: block; font-size: 1.05rem; font-family: "Playfair Display", Georgia, serif; }
.social-card span { font-size: .85rem; color: var(--muted); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 3rem; align-items: start; }
.contact-info { display: grid; gap: 1.75rem; }
.contact-item {
  padding-left: 1.25rem; border-left: 2px solid var(--gold);
}
.contact-label {
  font-size: .72rem; letter-spacing: 2px; text-transform: uppercase;
  color: var(--gold-ink); font-weight: 600; display: block; margin-bottom: .4rem;
}
.contact-item p { margin: 0; line-height: 1.6; }
.contact-item a { color: var(--red); font-weight: 500; }
.contact-item a:hover { text-decoration: underline; }
.contact-cta {
  margin: 0; padding: 1.25rem 1.5rem; font-size: .95rem;
  background: rgba(176,138,69,.08); border: 1px solid var(--border);
  border-left: 3px solid var(--red); border-radius: 0 10px 10px 0;
}
.contact-cta a { color: var(--red); font-weight: 600; }
.contact-cta a:hover { text-decoration: underline; }
.contact-map {
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg);
  aspect-ratio: 4/3; position: relative;
}
.contact-map::before {
  content: ""; position: absolute; inset: 0; border: 1px solid var(--border);
  border-radius: var(--radius); pointer-events: none; z-index: 2;
}
.contact-map iframe { width: 100%; height: 100%; border: 0; }

/* ---------- Affiliation ---------- */
.affiliation {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 2.25rem 0;
}
.affiliation-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 2rem; flex-wrap: wrap;
}
.affiliation-partner { display: flex; align-items: center; gap: 1.1rem; min-width: 0; }
.affiliation-partner--link .affiliation-text strong { transition: color .2s; }
.affiliation-partner--link:hover .affiliation-text strong { color: var(--red); }
.affiliation-logo { width: 120px; height: auto; flex-shrink: 0; }
.affiliation-logo--sociedade { width: 156px; }
.affiliation-divider { width: 1px; align-self: stretch; min-height: 64px; background: var(--border); }
.affiliation-text { display: flex; flex-direction: column; line-height: 1.35; min-width: 0; }
.affiliation-label {
  font-size: .7rem; letter-spacing: 2px; text-transform: uppercase;
  color: var(--gold-ink); font-weight: 600;
}
.affiliation-text strong { font-size: .9rem; color: var(--ink); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy); color: #C9C2B5; padding: 3rem 0 2rem;
  position: relative;
}
.site-footer::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--red), var(--gold), var(--red));
}
.footer-inner { text-align: center; }
.footer-brand {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.25rem; color: #F5EFE6; margin: 0 0 .75rem;
}
.footer-nav {
  display: flex; justify-content: center; flex-wrap: wrap;
  gap: .5rem 1.25rem; margin-bottom: 1.25rem;
}
.footer-nav a { font-size: .85rem; transition: color .2s; }
.footer-nav a:hover { color: var(--gold-light); }
.footer-copy { font-size: .85rem; margin: 0 0 .45rem; }
.footer-legal { font-size: .75rem; color: rgba(201,194,181,.75); margin: 0 0 .6rem; }
.footer-credits { font-size: .75rem; opacity: .6; margin: 0; }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(10,6,4,.94);
  display: none; align-items: center; justify-content: center;
  backdrop-filter: blur(4px);
}
.lightbox.open { display: flex; }
.lightbox-img {
  max-width: 88vw; max-height: 82vh; object-fit: contain;
  border-radius: 6px; box-shadow: 0 20px 60px rgba(0,0,0,.5);
}
.lightbox-close, .lightbox-prev, .lightbox-next {
  position: absolute; background: rgba(255,255,255,.1); color: #fff;
  border: 1px solid rgba(255,255,255,.2);
  width: 46px; height: 46px; border-radius: 50%;
  font-size: 1.5rem; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s;
}
.lightbox-close:hover, .lightbox-prev:hover, .lightbox-next:hover { background: rgba(255,255,255,.22); }
.lightbox-close { top: 1.5rem; right: 1.5rem; }
.lightbox-prev { left: 1.5rem; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 1.5rem; top: 50%; transform: translateY(-50%); }
.lightbox-caption {
  position: absolute; bottom: 2.9rem; left: 50%; transform: translateX(-50%);
  max-width: 80vw; text-align: center;
  color: #fff; font-size: .9rem; letter-spacing: .3px;
}
.lightbox-counter {
  position: absolute; bottom: 1.4rem; left: 50%; transform: translateX(-50%);
  color: rgba(255,255,255,.7); font-size: .85rem; letter-spacing: 1px;
}

/* ---------- WhatsApp ---------- */
.whatsapp-float {
  position: fixed; right: 1.5rem; bottom: 1.5rem; z-index: 60;
  width: 60px; height: 60px; border-radius: 50%;
  background: #25D366; color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 28px rgba(37,211,102,.45);
  transition: transform .25s;
}
.whatsapp-float:hover { transform: scale(1.08); }
.whatsapp-float[hidden] { display: none; }
.whatsapp-float.unavailable { background: #9CA3AF; box-shadow: none; cursor: default; }
.whatsapp-tooltip {
  position: absolute; right: 72px; bottom: 14px;
  background: var(--ink); color: #fff; font-size: .78rem;
  padding: .45rem .8rem; border-radius: 8px; white-space: nowrap;
  opacity: 0; pointer-events: none; transition: opacity .25s;
}
.whatsapp-float:hover .whatsapp-tooltip { opacity: 1; }
.whatsapp-float.has-number .whatsapp-tooltip { display: none; }

/* ---------- Reveal animations ---------- */
.reveal {
  opacity: 0; transform: translateY(28px);
  transition: opacity .8s ease, transform .8s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal.delay-1 { transition-delay: .1s; }
.reveal.delay-2 { transition-delay: .2s; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .header-social { display: none; }
}
@media (max-width: 960px) {
  .history-grid, .contact-grid { grid-template-columns: 1fr; }
  .history-images { position: static; }
  .culture-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 200px; }
  .gallery-item--wide-end { grid-column: span 1; }
  .gallery-cta { grid-column: span 2; }
  .numeros-grid { grid-template-columns: repeat(2, 1fr); }
  .agenda-grid { grid-template-columns: 1fr; }
  .notice-grid { grid-template-columns: 1fr; }
  .affiliation-inner { flex-direction: column; align-items: flex-start; }
  .affiliation-divider { display: none; }
}
@media (max-width: 1000px) {
  .nav-toggle { display: block; }
  .nav {
    position: absolute; top: var(--header-h); left: 0; right: 0;
    background: rgba(246,241,232,.98); border-bottom: 1px solid var(--border);
    max-height: 0; overflow: hidden; transition: max-height .3s ease;
  }
  .nav.open { max-height: 420px; }
  .nav ul { flex-direction: column; padding: 1.25rem 1.5rem; gap: 1rem; }
  .nav a { color: var(--ink); }
  .header-social { display: none; }
  body.nav-open .site-header { background: rgba(246,241,232,.98); box-shadow: 0 1px 0 var(--border); }
  body.nav-open .brand-wordmark { filter: none; }
  body.nav-open .brand-sub { color: var(--muted); }
  body.nav-open .nav-toggle span { background: var(--ink); }
}
@media (max-width: 640px) {
  .hero { min-height: 88vh; align-items: flex-end; }
  .hero-content { padding-block: 4rem 3.5rem; }
  .scroll-indicator { display: none; }
  .culture-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr; grid-auto-rows: 240px; }
  .gallery-item--wide { grid-column: span 1; grid-row: span 1; }
  .gallery-item--wide-end, .gallery-cta { grid-column: span 1; }
  .numeros-grid { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
  .section { padding: 4.5rem 0; }
  .affiliation-inner { gap: 1.25rem; }
  .affiliation-logo { width: 108px; }
  .affiliation-logo--sociedade { width: 140px; }
  .container { width: min(var(--container), 100% - 1.5rem); }
  .whatsapp-float { right: 1rem; bottom: 1rem; }
}
@media (max-width: 460px) {
  .brand-sub { display: none; }
  .brand-wordmark { width: 92px; }
  .brand-logo { width: 68px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .hero-media img { animation: none; }
  .reveal { opacity: 1; transform: none; }
}