
:root {
  --bg: #f5f7fa;
  --surface: #ffffff;
  --surface-soft: #f0f4f8;
  --border: #d8e0e8;
  --text: #1f2a37;
  --muted: #5f7287;
  --brand: #1f6aa5;
  --brand-dark: #185681;
  --brand-soft: #e8f2fb;
  --accent: #a71f27;
  --accent-dark: #80181f;
  --accent-soft: #f9e7e8;
  --footer: #25313e;
  --footer-text: #d6e0ea;
  --success: #25d366;
  --shadow: 0 8px 24px rgba(15, 23, 42, 0.09);
  --radius: 12px;
  --transition: 180ms ease;
  --max-width: 1160px;
}

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

html,
body {
  min-height: 100%;
}

body {
  font-family: "Segoe UI", Tahoma, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
}

.site-construction-banner {
  background: #fff4cc;
  border-bottom: 1px solid #ebd89a;
  color: #6a5200;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.2px;
  text-align: center;
  padding: 8px 12px;
}

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

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

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

.container {
  width: min(100% - 36px, var(--max-width));
  margin: 0 auto;
}

.legacy-top {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.legacy-top__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 0;
}

.legacy-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.legacy-brand__img {
  width: 74px;
  height: 104px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: #fff;
  flex-shrink: 0;
}

.legacy-brand__title {
  font-size: 1.9rem;
  line-height: 1;
  font-weight: 700;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}

.legacy-brand__title span {
  color: #cc2b2b;
}

.legacy-brand__subtitle {
  margin-top: 6px;
  font-size: 0.88rem;
  color: var(--accent);
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.legacy-top__right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}

.legacy-top__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid var(--accent);
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.35px;
}

.legacy-top__cta:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
}

.legacy-mini-links {
  display: inline-flex;
  gap: 8px;
  font-size: 0.8rem;
  color: #6f7f90;
}

.legacy-contact-line {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 14px;
  font-size: 0.9rem;
  color: var(--muted);
}

.legacy-contact-line span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.legacy-contact-line a {
  color: #2e4961;
}

.legacy-nav-wrap {
  position: sticky;
  top: 0;
  z-index: 40;
  background: #163650;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.16);
}

.legacy-nav {
  position: relative;
}

.legacy-nav__list {
  list-style: none;
  display: flex;
  align-items: stretch;
}

.legacy-nav__item {
  position: relative;
}

.legacy-nav__link,
.legacy-nav__link--button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 52px;
  padding: 0 14px;
  border: 0;
  background: transparent;
  color: #edf6ff;
  font-size: 0.84rem;
  font-weight: 600;
  letter-spacing: 0.35px;
  text-transform: uppercase;
  cursor: pointer;
  transition: background var(--transition), box-shadow var(--transition);
}

.legacy-nav__link:hover,
.legacy-nav__link--button:hover,
.legacy-nav__link.is-active,
.legacy-nav__link--button.is-active,
.legacy-nav__item.is-open > .legacy-nav__link--button {
  background: #1f4b70;
  box-shadow: inset 0 -3px 0 var(--accent);
}

.legacy-nav__caret {
  font-size: 0.7rem;
}

.legacy-nav__dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 270px;
  list-style: none;
  border: 1px solid var(--border);
  border-radius: 0 0 10px 10px;
  background: #ffffff;
  box-shadow: var(--shadow);
  display: none;
  overflow: hidden;
}

.legacy-nav__dropdown a {
  display: block;
  padding: 11px 14px;
  border-top: 1px solid #eef2f6;
  color: #34516d;
  font-size: 0.83rem;
  text-transform: uppercase;
}

.legacy-nav__dropdown a:hover,
.legacy-nav__dropdown a.is-active {
  background: var(--brand-soft);
  color: #19466c;
}

.legacy-nav__item:hover > .legacy-nav__dropdown,
.legacy-nav__item.is-open > .legacy-nav__dropdown {
  display: block;
}

.legacy-mobile-toggle {
  display: none;
  width: 42px;
  height: 42px;
  margin: 7px 0;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 8px;
  background: transparent;
  color: #eef6ff;
  font-size: 1.25rem;
  cursor: pointer;
}

.legacy-mobile {
  display: none;
  background: #163650;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  padding: 8px 0 12px;
}

.legacy-mobile.is-open {
  display: block;
}

.legacy-mobile__link,
.legacy-mobile__submenu-toggle {
  width: 100%;
  border: 0;
  background: transparent;
  color: #eef5ff;
  padding: 10px 6px;
  text-transform: uppercase;
  font-size: 0.86rem;
  letter-spacing: 0.25px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
}

.legacy-mobile__submenu {
  display: none;
  padding: 4px 0 8px 14px;
}

.legacy-mobile__submenu.is-open {
  display: block;
}

.legacy-mobile__submenu a {
  display: block;
  padding: 8px 0;
  color: #dce9f7;
  font-size: 0.82rem;
  text-transform: uppercase;
}

.breadcrumb-wrap {
  margin-top: 16px;
  border: 1px solid #e2e8ef;
  border-radius: 10px;
  background: #eef2f6;
}

.breadcrumb {
  min-height: 42px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  color: #617283;
  font-size: 0.88rem;
  padding: 0 14px;
}

.breadcrumb a {
  color: #32658f;
  font-weight: 600;
}

.main-content {
  padding: 20px 0 38px;
}

.main-content a:not(.legacy-doc__button):not(.button-primary) {
  color: #2f6694;
  text-decoration: underline;
}

.main-content a:not(.legacy-doc__button):not(.button-primary):hover {
  color: #1f5780;
}

.page-section {
  margin-top: 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 1px 1px rgba(15, 23, 42, 0.02);
  padding: 22px;
}

.page-title {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 10px;
  color: #1f2f3f;
}

.page-title-link {
  color: inherit;
  text-decoration: none;
}

.page-title-link:hover {
  color: #1f6aa5;
}

.page-subtitle {
  color: var(--muted);
  margin-bottom: 14px;
}

.section-divider {
  border-top: 1px solid #e8edf2;
  margin: 12px 0 18px;
}

.section-header--compact {
  margin-top: 26px;
}

.section-header--compact .page-title {
  font-size: 1.45rem;
  margin-bottom: 8px;
}

.info-banner {
  border: 1px solid #cbe2f7;
  background: #eaf4fd;
  color: #2f5e86;
  padding: 10px 12px;
  border-radius: 10px;
  margin-bottom: 14px;
}

.legacy-grid {
  display: grid;
  gap: 16px;
}

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

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

.legacy-grid--4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.legacy-card {
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  background: var(--surface);
}

.legacy-card__head {
  background: linear-gradient(90deg, #236ca4 0%, #1f679f 74%, #a71f27 100%);
  color: #f5fbff;
  padding: 11px 13px;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.25px;
}

.legacy-card__body {
  padding: 13px;
  color: #4b6076;
}

.legacy-card__body p + p {
  margin-top: 8px;
}

.legacy-card__body ul {
  list-style: none;
  display: grid;
  gap: 6px;
}

.legacy-highlight {
  border: 1px solid #2a6ea3;
  border-radius: 10px;
  background: linear-gradient(135deg, #2f7cb8 0%, #1f669e 100%);
  color: #f4fbff;
  padding: 20px 14px;
}

.legacy-highlight__title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 12px;
  text-transform: uppercase;
}

.legacy-line-list {
  list-style: none;
  display: grid;
  gap: 12px;
}

.legacy-line-list li {
  border-left: 4px solid #5a97c4;
  padding-left: 12px;
  color: #395064;
  font-size: 1rem;
}

.legacy-line-list--compact {
  gap: 10px;
}

.legacy-line-list--compact li {
  font-size: 0.94rem;
}

.legacy-table-wrap {
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
}

.legacy-table-stack {
  display: grid;
  gap: 16px;
}

.legacy-table-wrap--board {
  min-height: 0;
}

.legacy-table-title {
  background: #eaf3fb;
  color: #2f5f87;
  padding: 12px 14px;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.88rem;
}

.legacy-table-summary {
  padding: 12px 14px 0;
  color: #52687c;
  font-size: 0.95rem;
}

.legacy-table {
  width: 100%;
  border-collapse: collapse;
}

/* Garante a mesma proporcao de colunas em todos os quadros da pagina Diretoria. */
.legacy-table--board {
  table-layout: fixed;
}

.legacy-table--board th:nth-child(1),
.legacy-table--board td:nth-child(1) {
  width: 40%;
}

.legacy-table--board th:nth-child(2),
.legacy-table--board td:nth-child(2) {
  width: 50%;
}

.legacy-table--board th:nth-child(3),
.legacy-table--board td:nth-child(3) {
  width: 10%;
  white-space: nowrap;
}

.legacy-table th,
.legacy-table td {
  border: 1px solid #e3eaf1;
  padding: 10px;
  font-size: 0.9rem;
  text-align: left;
}

.legacy-table th {
  background: #f6f9fc;
  color: #335a7d;
  text-transform: uppercase;
  font-size: 0.82rem;
}

.legacy-table tbody tr:nth-child(even) {
  background: #fbfdff;
}

.legacy-table-note {
  display: block;
  margin-top: 4px;
  color: #687b8f;
  font-size: 0.84rem;
}

.legacy-doc-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.legacy-doc {
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
}

.legacy-doc__title {
  background: #eaf3fb;
  color: #2e587b;
  padding: 10px 12px;
  text-transform: uppercase;
  font-size: 0.85rem;
  font-weight: 700;
}

.legacy-doc__body {
  min-height: 118px;
  padding: 13px;
  color: #4c6073;
}

.legacy-doc__body p + p {
  margin-top: 8px;
}

.legacy-doc__actions {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.legacy-doc__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #4f88b7;
  border-radius: 8px;
  background: #edf6ff;
  color: #2e5f87;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 8px 12px;
  cursor: pointer;
}

.legacy-doc__button:hover {
  background: #dbeeff;
}

.legacy-doc__button--accent {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}

.legacy-doc__button--accent:hover {
  background: var(--accent-dark);
}

.legacy-doc__button--ghost {
  border-color: #9cb0c3;
  background: #fff;
  color: #38556f;
}

.legacy-doc__button--ghost:hover {
  background: #f4f8fb;
}

.legacy-doc__meta,
.legacy-card__meta {
  color: #61768b;
  font-size: 0.88rem;
}

.action-form {
  display: grid;
  gap: 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
  padding: 18px;
}

.action-form label {
  display: grid;
  gap: 6px;
  color: #4d6376;
  font-size: 0.9rem;
}

.action-form input,
.action-form textarea,
.action-form select,
.footer-request-form input {
  width: 100%;
  border: 1px solid #cad7e3;
  border-radius: 10px;
  background: #fff;
  color: #243949;
  padding: 11px 12px;
  font: inherit;
}

.action-form textarea {
  min-height: 138px;
  resize: vertical;
}

.action-form__grid {
  display: grid;
  gap: 12px;
}

.action-form__grid--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.action-form__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.action-form__note,
.action-form__status,
.footer-request-form__status {
  color: #5b7083;
  font-size: 0.88rem;
}

.action-form__status,
.footer-request-form__status {
  min-height: 1.2em;
}

.faq-list {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.faq-card {
  height: 100%;
}

.faq-card__question {
  color: #1f4565;
  font-size: 1.05rem;
  line-height: 1.35;
  margin-bottom: 8px;
}

.faq-card__answer {
  color: #4f6578;
}

.associe-page__form-wrap,
.contacts-page__side {
  align-items: start;
}

.legacy-link-list {
  list-style: none;
  display: grid;
  gap: 9px;
}

.legacy-link-list a {
  color: #2f6694;
  text-decoration: underline;
}

.legacy-inline-link {
  color: #2f6694;
  text-decoration: underline;
  font-weight: 600;
}

.legacy-inline-link:hover {
  color: #1f5780;
}

.legacy-split {
  display: grid;
  gap: 18px;
  grid-template-columns: 1.45fr 1fr;
}

.home-hero {
  display: grid;
  gap: 20px;
  grid-template-columns: 1.4fr 1fr;
  align-items: start;
  border-color: #cfdae4;
  background:
    linear-gradient(100deg, #ffffff 0%, #f3f8fd 62%, #eef4fa 100%);
}

.home-hero::before {
  content: "";
  display: block;
  grid-column: 1 / -1;
  height: 4px;
  margin: -22px -22px 0;
  border-radius: 12px 12px 0 0;
  background: linear-gradient(90deg, #c53131 0%, #1f6aa5 44%, #1a557f 100%);
}

.home-hero__content .page-title {
  margin-top: 6px;
}

.home-hero__kicker {
  color: #b43030;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  font-size: 0.8rem;
  font-weight: 800;
}

.home-hero__content .page-subtitle {
  color: #3f566c;
  max-width: 65ch;
}

.home-hero__bullets {
  list-style: none;
  display: grid;
  gap: 7px;
  margin-top: 12px;
}

.home-hero__bullets li {
  position: relative;
  padding-left: 16px;
  color: #35546e;
}

.home-hero__bullets li::before {
  content: "";
  position: absolute;
  top: 9px;
  left: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #c53131;
}

.home-hero__actions {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.home-hero__aside {
  display: grid;
  gap: 12px;
}

.home-hero__media {
  margin: 0;
  border: 1px solid #d3dde8;
  border-radius: 10px;
  background: #fff;
  overflow: hidden;
}

.home-hero__media img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.home-hero__media figcaption {
  padding: 10px 12px;
  color: #4b6379;
  font-size: 0.9rem;
  border-top: 1px solid #e4edf5;
}

.home-fire-card {
  border-color: #d1dce8;
}

.home-fire-card .legacy-card__head {
  background: linear-gradient(90deg, #b53131 0%, #1f6aa5 86%);
}

.home-hero--institutional .page-title {
  max-width: 17ch;
}

.home-services {
  background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
}

.home-events {
  background: linear-gradient(180deg, #ffffff 0%, #f9fbfe 100%);
}

.home-events__grid {
  gap: 14px;
}

.home-events__card {
  overflow: hidden;
}

.home-events__media {
  padding: 10px;
  background: #f4f8fc;
  border-top: 1px solid #dce5ef;
  border-bottom: 1px solid #dce5ef;
}

.home-events__media img {
  width: 100%;
  height: 360px;
  object-fit: contain;
  border: 1px solid #d5dfea;
  border-radius: 8px;
  background: #fff;
}

.home-services__grid {
  gap: 14px;
}

.home-services__card {
  position: relative;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.home-services__card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: #c53131;
}

.home-services__card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 16px rgba(20, 40, 62, 0.1);
}

.legacy-banner {
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow);
}

.legacy-banner__viewport {
  position: relative;
  height: 300px;
}

.legacy-banner__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 260ms ease;
}

.legacy-banner__slide.is-active {
  opacity: 1;
  visibility: visible;
}

.legacy-banner__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.legacy-banner__img--lower {
  object-position: center 78%;
}

.legacy-banner__img--field {
  object-position: center 50%;
}

.legacy-banner__caption {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  border-radius: 8px;
  background: rgba(18, 32, 48, 0.72);
  color: #eef6ff;
  padding: 10px 12px;
  font-size: 0.9rem;
}

.legacy-banner__dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 10px;
  background: #f7fbff;
}

.legacy-banner__dots button {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 0;
  background: #b9c7d5;
  cursor: pointer;
}

.legacy-banner__dots button.is-active {
  background: var(--brand);
}

.cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.trust-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.trust-stats__item {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: linear-gradient(180deg, #ffffff 0%, #f7fbfe 100%);
  padding: 18px 16px;
}

.trust-stats__value {
  color: var(--accent);
  font-size: 1.8rem;
  font-weight: 800;
  line-height: 1;
}

.trust-stats__label {
  margin-top: 8px;
  color: #22394d;
  font-weight: 700;
}

.trust-stats__note {
  margin-top: 6px;
  color: #607487;
  font-size: 0.9rem;
}

.trust-stats--compact {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.section-subtitle {
  color: #264964;
  font-size: 1.2rem;
  font-weight: 700;
}

.section-subtitle--spaced,
.page-copy-spaced {
  margin-top: 18px;
}

.home-benefits {
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
}

.home-benefits__grid,
.associe-flow__grid,
.institutional-page__grid,
.contacts-page__grid,
.home-access__grid,
.home-documents__grid,
.home-news__grid {
  gap: 14px;
}

.home-benefits__card,
.home-access__card {
  position: relative;
}

.home-benefits__card::before,
.home-access__card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--accent);
}

.home-membership-flow,
.associe-page__cta,
.location-page__actions {
  margin-top: 20px;
}

.home-membership-flow {
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid #d8e1ea;
  border-radius: 12px;
  background: linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
}

.home-membership-flow__intro h3 {
  color: #21486a;
  font-size: 1.25rem;
}

.home-membership-flow__steps {
  margin-left: 20px;
  color: #425b70;
  display: grid;
  gap: 8px;
}

.home-updates__title {
  margin-bottom: 14px;
  color: #244b6c;
  font-size: 1.15rem;
}

.home-updates__side {
  display: grid;
  gap: 18px;
}

.home-updates__link {
  margin-top: 12px;
}

.document-repository__toolbar,
.collection-toolbar {
  display: grid;
  gap: 14px;
  margin-bottom: 6px;
}

.document-repository__search input,
.collection-toolbar__search input {
  width: 100%;
  border: 1px solid #c9d6e2;
  border-radius: 10px;
  background: #fff;
  padding: 12px 14px;
  font-size: 0.94rem;
}

.document-repository__chips,
.collection-toolbar__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.document-repository__chips button,
.collection-toolbar__chips button {
  border: 1px solid #cdd8e4;
  border-radius: 999px;
  background: #f7fbff;
  color: #36546d;
  padding: 8px 12px;
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
}

.document-repository__chips button.is-active,
.document-repository__chips button:hover,
.collection-toolbar__chips button.is-active,
.collection-toolbar__chips button:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent-dark);
}

.home-events__grid--compact {
  gap: 14px;
}

.home-events__grid--compact .home-events__media img {
  height: 260px;
}

.event-card__media {
  padding: 10px;
  background: #f4f8fc;
  border-top: 1px solid #dce5ef;
  border-bottom: 1px solid #dce5ef;
}

.event-card__media img {
  width: 100%;
  height: 260px;
  object-fit: contain;
  border: 1px solid #d5dfea;
  border-radius: 8px;
  background: #fff;
}

.event-card--compact .event-card__media img {
  height: 220px;
}

.news-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 10px;
}

.home-access {
  background: linear-gradient(180deg, #ffffff 0%, #f9fbfd 100%);
}

/* Galeria dedicada em estilo legado, inspirada na referencia visual. */
.gallery-legacy__title {
  margin: 0;
  color: #2f3f4c;
  font-size: 2.05rem;
  font-weight: 400;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.gallery-legacy__rule {
  border-top: 1px solid #dce4eb;
  margin: 14px 0 16px;
}

.gallery-legacy__intro {
  color: #304555;
  font-size: 1rem;
  line-height: 1.55;
}

.gallery-legacy__highlight {
  margin-top: 12px;
  margin-bottom: 22px;
  padding: 12px 14px;
  border: 1px solid #c9ddc2;
  border-radius: 6px;
  background: #dcead7;
  color: #476252;
}

.gallery-legacy__grid {
  display: grid;
  gap: 18px 24px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.gallery-legacy__item {
  min-width: 0;
}

.gallery-legacy__item-title {
  margin-bottom: 8px;
  color: #5f84a1;
  text-align: center;
  font-size: 1.05rem;
  font-weight: 500;
}

.gallery-legacy__media {
  margin: 0;
}

.gallery-legacy__media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: 1px solid #d9e1e8;
  background: #edf3f8;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.gallery-legacy__item:hover .gallery-legacy__media img {
  transform: translateY(-1px);
  box-shadow: 0 8px 14px rgba(31, 50, 71, 0.12);
}

.gallery-legacy__media figcaption {
  margin-top: 8px;
  color: #6186a4;
  text-align: center;
  font-size: 1rem;
}

.legacy-panel {
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface-soft);
  padding: 14px;
}

.legacy-panel h3 {
  margin-bottom: 8px;
  font-size: 1.2rem;
}

.legacy-year-section {
  margin-top: 18px;
  scroll-margin-top: 84px;
}

.legacy-year-section:first-of-type {
  margin-top: 0;
}

.legacy-year-section > h3 {
  margin-bottom: 10px;
  font-size: 1.25rem;
  color: #2f628c;
}

.associe-page__intro,
.contacts-page,
.institutional-page__intro,
.diretoria-page__intro,
.location-page {
  align-items: start;
}

.institutional-page__grid,
.associe-flow__grid {
  margin-top: 18px;
}

.history-timeline {
  display: grid;
  gap: 14px;
}

.history-timeline__item {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 18px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
  padding: 16px;
}

.history-timeline__period {
  color: var(--accent);
  font-size: 1.1rem;
  font-weight: 800;
}

.history-timeline__content h2 {
  font-size: 1.15rem;
  color: #204563;
}

.history-timeline__content p {
  margin-top: 6px;
  color: #516779;
}

.history-table {
  margin-top: 20px;
}

.location-map {
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  min-height: 360px;
}

.location-map iframe {
  width: 100%;
  min-height: 360px;
  border: 0;
}

.contacts-page__highlight,
.legacy-highlight {
  border-color: #cbced9;
  background: linear-gradient(135deg, #fdfefe 0%, #f3f7fc 100%);
  color: #324b61;
}

.contacts-page__actions {
  margin-top: 16px;
}

.events-page__hero,
.event-detail__hero,
.event-detail__content,
.article-detail__hero,
.document-detail__hero {
  align-items: start;
}

.events-page__actions,
.event-detail__actions,
.article-detail__actions,
.document-detail__actions {
  margin-top: 16px;
}

.event-detail__media,
.article-detail__media {
  margin: 0;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
}

.event-detail__media img,
.article-detail__media img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.event-detail__media figcaption,
.article-detail__media figcaption {
  padding: 10px 12px;
  color: #586f82;
  border-top: 1px solid #e7eef5;
  font-size: 0.9rem;
}

.article-detail__aside {
  display: grid;
  gap: 14px;
}

.article-detail__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.article-detail__tags span {
  border: 1px solid #d8e2eb;
  border-radius: 999px;
  background: #f5f9fd;
  color: #385972;
  font-size: 0.82rem;
  padding: 6px 10px;
}

.article-detail__body {
  margin-top: 18px;
  display: grid;
  gap: 14px;
  color: #405769;
}

.article-detail__body p {
  margin: 0;
}

.button-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--brand-dark);
  border-radius: 8px;
  background: var(--brand);
  color: #fff;
  padding: 10px 14px;
  font-weight: 700;
  cursor: pointer;
}

.button-primary:hover {
  background: var(--brand-dark);
}

.footer-legacy {
  margin-top: 36px;
  background: var(--footer);
  color: var(--footer-text);
}

.footer-legacy__inner {
  display: grid;
  grid-template-columns: 1fr 1.2fr 1fr;
  gap: 24px;
  padding: 32px 0 36px;
}

.footer-legacy h3 {
  font-size: 1.35rem;
  margin-bottom: 12px;
  color: #f2f8ff;
}

.footer-legacy ul {
  list-style: none;
  display: grid;
  gap: 8px;
}

.footer-legacy li,
.footer-legacy p {
  font-size: 0.94rem;
  color: #cfdae6;
}

.footer-legacy__actions {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.footer-request-form {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.footer-request-form__actions {
  display: grid;
  gap: 10px;
}

.footer-legacy__action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid #728599;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  color: #f3f8ff;
  font-weight: 600;
}

.footer-legacy__action:hover {
  background: rgba(255, 255, 255, 0.08);
}

.footer-legacy__action--primary {
  border-color: var(--accent);
  background: var(--accent);
}

.footer-legacy__action--primary:hover {
  background: var(--accent-dark);
}

.whatsapp-float {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 90;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 999px;
  background: var(--success);
  color: #fff;
  box-shadow: 0 10px 24px rgba(18, 76, 43, 0.34);
  padding: 10px 13px;
  font-size: 0.88rem;
  font-weight: 700;
}

.whatsapp-float svg {
  width: 20px;
  height: 20px;
}

.whatsapp-float:hover {
  background: #1dad56;
}

.is-hidden {
  display: none !important;
}

@media (max-width: 1040px) {
  .legacy-top__inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .legacy-top__right {
    align-items: flex-start;
  }

  .legacy-top__cta {
    align-self: stretch;
  }

  .legacy-contact-line {
    justify-content: flex-start;
  }

  .legacy-nav__list {
    display: none;
  }

  .legacy-mobile-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .legacy-split,
  .legacy-grid--2,
  .legacy-grid--3,
  .legacy-grid--4,
  .footer-legacy__inner,
  .trust-stats,
  .trust-stats--compact,
  .history-timeline__item,
  .action-form__grid--2 {
    grid-template-columns: 1fr;
  }

  .faq-list {
    grid-template-columns: 1fr;
  }

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

  .legacy-banner__viewport {
    height: 250px;
  }

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

  .gallery-legacy__title {
    font-size: 1.9rem;
  }

  .home-events__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .history-timeline__item {
    gap: 10px;
  }

  .event-card__media img {
    height: 220px;
  }

}

@media (max-width: 640px) {
  .container {
    width: min(100% - 22px, var(--max-width));
  }

  .legacy-brand__img {
    width: 60px;
    height: 84px;
  }

  .legacy-brand__title {
    font-size: 1.4rem;
  }

  .legacy-brand__subtitle {
    font-size: 0.95rem;
  }

  .legacy-contact-line {
    gap: 9px;
    font-size: 0.84rem;
  }

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

  .legacy-table--board {
    table-layout: auto;
  }

  .legacy-table--board th:nth-child(1),
  .legacy-table--board td:nth-child(1),
  .legacy-table--board th:nth-child(2),
  .legacy-table--board td:nth-child(2),
  .legacy-table--board th:nth-child(3),
  .legacy-table--board td:nth-child(3) {
    width: auto;
    white-space: normal;
  }

  .home-hero__kicker {
    font-size: 0.74rem;
  }

  .home-events__grid {
    grid-template-columns: 1fr;
  }

  .home-events__media img {
    height: 300px;
  }

  .home-events__grid--compact .home-events__media img {
    height: 240px;
  }

  .event-card__media img,
  .event-card--compact .event-card__media img {
    height: 220px;
  }

  .legacy-banner__viewport {
    height: 205px;
  }

  .gallery-legacy__grid {
    grid-template-columns: 1fr;
  }

  .gallery-legacy__title {
    font-size: 1.7rem;
  }

  .gallery-legacy__item-title,
  .gallery-legacy__media figcaption {
    font-size: 0.96rem;
  }

  .whatsapp-float {
    right: 12px;
    bottom: 12px;
    padding: 9px 12px;
  }

  .whatsapp-float span {
    display: none;
  }
}
