:root {
  --blue: #008fd5;
  --blue-2: #1472e6;
  --blue-deep: #0a4c7a;
  --navy: #0e2a3d;
  --ink: #163042;
  --muted: #5a6d7b;
  --line: #d5e2eb;
  --paper: #f4f8fb;
  --white: #ffffff;
  --max: 1180px;
  --serif: "Source Serif 4", Georgia, serif;
  --sans: "Source Sans 3", "Segoe UI", sans-serif;
  --run: linear-gradient(
    90deg,
    #006aa3 0%,
    var(--blue) 28%,
    #4db6e4 50%,
    var(--blue) 72%,
    #006aa3 100%
  );
  --fs-kicker: 1.08rem;
  --fs-body: 1.08rem;
  --fs-card: 0.98rem;
  --fs-label: 0.82rem;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.55;
  overflow-x: hidden;
}
body.nav-open { overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: var(--blue-deep); }
a:hover { color: var(--blue); }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; letter-spacing: -0.02em; line-height: 1.15; }
h1 { font-size: clamp(2.2rem, 4vw, 3.4rem); margin: 0 0 0.4em; }
h2 { font-size: clamp(1.6rem, 2.4vw, 2.1rem); margin: 0 0 0.45em; }
h3 { font-size: 1.25rem; margin: 0 0 0.35em; }
p { margin: 0 0 0.8em; }
::selection { background: var(--blue); color: white; }
:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}

.wrap { width: min(var(--max), calc(100% - clamp(1.4rem, 5vw, 2.4rem))); margin: 0 auto; }

.top {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(8px);
  padding-top: env(safe-area-inset-top);
  transition: box-shadow .35s ease;
}
.top::after {
  content: "";
  display: block;
  height: 6px;
  background: var(--run);
  background-size: 220% 100%;
  animation: run-line 14s linear infinite;
}
.top.scrolled { box-shadow: 0 12px 32px rgba(14, 42, 61, .1); }
.top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 108px;
}
.brand img {
  height: 82px;
  width: auto;
  transition: transform .4s ease;
}
.brand:hover img { transform: scale(1.05); }
.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: white;
  color: var(--navy);
  border-radius: 8px;
  padding: 0.45rem 0.7rem;
  font: inherit;
  font-size: 0.95rem;
  cursor: pointer;
}
.top-end {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-left: auto;
}
.nav {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 0.2rem;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.nav a {
  color: var(--navy);
  text-decoration: none;
  font-size: 1.05rem;
  font-weight: 700;
  padding: 0.62rem 0.72rem;
  border-radius: 12px;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background .25s ease, color .25s ease, transform .25s ease;
}
.nav a:hover, .nav a.on { background: var(--blue); color: white; }
.nav a:hover { transform: translateY(-1px); }

.hero {
  position: relative;
  overflow: hidden;
  background: #063552;
  color: white;
  padding: 5.4rem 0 5rem;
  min-height: 620px;
  display: flex;
  align-items: center;
}
.hero.classic {
  background: #063552;
  min-height: 380px;
  height: min(42vw, 430px);
  align-items: center;
  padding: 1.1rem 0 4.2rem;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(6, 28, 46, .18) 0%, rgba(6, 28, 46, .08) 46%, rgba(6, 28, 46, .22) 100%);
}
.hero .wrap { position: relative; z-index: 2; }
.hero-slides {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-slide {
  position: absolute;
  inset: 0;
  background: center 28% / cover no-repeat;
  opacity: 0;
  transform: scale(1);
  transition: opacity .7s ease;
}
.hero-slide.on {
  opacity: 1;
  z-index: 1;
  animation: hero-ken 8s ease-in-out infinite alternate;
}
.hero-stage {
  display: flex;
  justify-content: flex-end;
}
.hero-panel {
  width: min(22rem, 100%);
  background: rgba(255, 255, 255, 0.84);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 4px;
  padding: 1rem 1.1rem 0.95rem;
  color: var(--navy);
  text-align: center;
  box-shadow: 0 14px 32px rgba(6, 28, 46, 0.16);
}
.hero-bubble {
  display: grid;
  place-items: center;
  width: 2.2rem;
  height: 2.2rem;
  margin: 0 auto 0.45rem;
  color: var(--blue);
}
.hero-bubble svg { width: 1.85rem; height: 1.85rem; }
.hero-captions { position: relative; min-height: 5.2rem; }
.hero-caption {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.hero-caption.on {
  position: relative;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.hero-caption.on h1 {
  animation: hero-in .45s ease both;
}
.hero-caption.on p {
  animation: hero-in .45s ease .08s both;
}
.hero-panel h1 {
  font-size: clamp(1.4rem, 2vw, 1.75rem);
  color: var(--blue);
  margin: 0 0 0.3em;
  text-shadow: none;
}
.hero-panel p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.4;
}
.hero-panel-nav {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 0.35rem;
  margin-top: 0.9rem;
}
.hero-arrow {
  display: grid;
  place-items: center;
  width: 2.3rem;
  flex: 0 0 2.3rem;
  border: 0;
  background: var(--blue);
  color: white;
  cursor: pointer;
  border-radius: 2px;
  transition: background .2s ease;
}
.hero-arrow svg { width: 1.1rem; height: 1.1rem; }
.hero-arrow:hover { background: var(--blue-deep); }
.hero-more {
  flex: 1 1 auto;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
  border-radius: 2px;
  padding: 0.58rem 0.8rem;
}
.hero-more:hover {
  transform: none;
  box-shadow: none;
}
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: var(--fs-kicker);
  font-weight: 700;
  margin-bottom: 0.8rem;
  color: #d7f1fb;
}
.kicker::before {
  content: "";
  width: 28px;
  height: 3px;
  border-radius: 99px;
  background: currentColor;
  opacity: 0.9;
}
.hero p.lead { font-size: var(--fs-body); max-width: 38rem; color: #f3fbff; }
.actions { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-top: 1.4rem; }
.btn {
  display: inline-block;
  text-decoration: none;
  background: white;
  color: var(--blue-deep);
  font-weight: 700;
  padding: 0.75rem 1.15rem;
  border-radius: 999px;
  border: 2px solid white;
  cursor: pointer;
  transition: background .25s ease, color .25s ease, transform .25s ease, box-shadow .25s ease;
}
.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(8, 40, 70, .18);
  background: transparent;
  color: white;
}
.btn:active { transform: translateY(0); }
.btn.ghost { background: transparent; color: white; }
.btn.ghost:hover { background: white; color: var(--blue-deep); }
.btn.solid { background: var(--blue-deep); color: white; border-color: var(--blue-deep); }
.btn.solid:hover { background: var(--navy); border-color: var(--navy); color: white; }
.hero-more:hover {
  transform: none;
  box-shadow: none;
}

.hero-copy {
  position: relative;
  max-width: 38rem;
  padding: 0.15rem 0 0.4rem 1.15rem;
  text-shadow: 0 10px 28px rgba(6, 28, 46, .35);
}
.hero-copy::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.15rem;
  bottom: 0.35rem;
  width: 3px;
  border-radius: 99px;
  background: linear-gradient(180deg, #4db6e4, var(--blue), #006aa3);
}

/* Home institucional (especificação §4) */
.hero.institutional {
  min-height: min(72vh, 560px);
  height: auto;
  align-items: flex-end;
  padding: 4.5rem 0 3.6rem;
  background-color: #061c2e;
  background-image:
    linear-gradient(105deg, rgba(6, 28, 46, .82) 0%, rgba(6, 28, 46, .55) 48%, rgba(6, 28, 46, .35) 100%),
    image-set(
      url("../img/banner-1.webp") type("image/webp"),
      url("../img/banner-1.jpg") type("image/jpeg")
    );
  background-position: center 28%;
  background-size: cover;
  background-repeat: no-repeat;
}
.hero.institutional::after { display: none; }
.hero.institutional .hero-copy {
  max-width: 40rem;
  padding-left: 1.15rem;
}
.hero.institutional h1 {
  color: white;
  font-size: clamp(2rem, 4.2vw, 3.1rem);
  margin-bottom: 0.45em;
}
.hero.institutional .lead {
  font-size: 1.12rem;
  max-width: 36rem;
  color: #e8f4fb;
  margin-bottom: 0;
}
.hero.institutional .actions { margin-top: 1.5rem; }
.hero.institutional .btn.ghost {
  border-color: rgba(255, 255, 255, 0.65);
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  margin-top: -2.4rem;
  position: relative;
  z-index: 3;
  box-shadow: 0 12px 28px rgba(10, 76, 122, .08);
}
.stat {
  background: white;
  padding: 1.35rem 1.2rem 1.25rem;
  text-align: left;
}
.stat b {
  display: block;
  font-family: var(--serif);
  font-size: clamp(1.8rem, 3vw, 2.35rem);
  color: var(--blue-deep);
  line-height: 1.05;
  letter-spacing: -0.02em;
}
.stat span {
  display: block;
  margin-top: 0.35rem;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 600;
}
.stats-note {
  margin: 0.85rem 0 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.fronts {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}
.front {
  background: white;
  border: 1px solid var(--line);
  border-left: 3px solid var(--blue);
  border-radius: 4px 12px 12px 4px;
  padding: 1.25rem 1.3rem 1.2rem;
}
.front h3 { margin: 0 0 0.35em; font-size: 1.2rem; }
.front p { margin: 0; color: var(--muted); font-size: var(--fs-card); }

.know-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.85rem;
}
.know {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.85rem;
  min-height: 9.5rem;
  padding: 1.15rem 1.15rem 1.1rem;
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
  text-decoration: none;
  color: inherit;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.know:hover {
  border-color: var(--blue);
  color: inherit;
  box-shadow: 0 8px 22px rgba(10, 76, 122, .08);
}
.know h3 { margin: 0; font-size: 1.15rem; }
.know p { margin: 0; color: var(--muted); font-size: var(--fs-card); flex: 1; }
.know .more {
  font-weight: 700;
  color: var(--blue-deep);
  font-size: 0.92rem;
}
.know .more::after { content: " →"; }

.transparency {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2rem;
  align-items: center;
  background: white;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.8rem 1.7rem;
}
.transparency p { color: var(--muted); }
.transparency-links {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.transparency-links a {
  text-decoration: none;
  font-weight: 700;
  color: var(--navy);
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--paper);
  transition: border-color .2s ease, color .2s ease, background .2s ease;
}
.transparency-links a:hover {
  border-color: var(--blue);
  color: var(--blue-deep);
  background: white;
}

.toc {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 1.2rem 0 0;
}
.toc a {
  text-decoration: none;
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--navy);
  padding: 0.45rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: white;
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.toc a:hover,
.toc a.on {
  background: var(--blue);
  border-color: var(--blue);
  color: white;
}
.anchor-block { scroll-margin-top: 7.2rem; }
.anchor-block + .anchor-block { margin-top: 2.4rem; }

.sector-note {
  max-width: 44rem;
  margin-bottom: 1.6rem;
  color: var(--muted);
  font-size: var(--fs-body);
}
.account {
  position: relative;
  flex-shrink: 0;
  margin-left: 0.2rem;
  padding-left: 0.7rem;
  border-left: 1px solid var(--line);
}
a.account-btn { text-decoration: none; }
.account-btn {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1.5px solid var(--line);
  background: white;
  color: var(--blue);
  border-radius: 999px;
  cursor: pointer;
  transition: background .2s ease, color .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.account-btn svg { width: 22px; height: 22px; pointer-events: none; }
.account-btn:hover {
  background: var(--blue);
  color: white;
  border-color: var(--blue);
  box-shadow: 0 8px 18px rgba(0, 143, 213, .28);
}

.section { padding: 4rem 0; }
.section.alt {
  background:
    radial-gradient(900px 240px at 8% 0%, rgba(0, 143, 213, .08), transparent 55%),
    var(--paper);
}
.section-head { max-width: 40rem; margin-bottom: 1.8rem; }
.section-head p { color: var(--muted); font-size: var(--fs-body); }

.tiles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  width: min(var(--max), calc(100% - clamp(1.4rem, 5vw, 2.4rem)));
  margin: -3.2rem auto 0;
  position: relative;
  z-index: 4;
  box-shadow: 0 18px 40px rgba(10, 76, 122, .16);
  border-radius: 16px;
  overflow: hidden;
}
.tiles a {
  position: relative;
  background: var(--blue);
  color: white;
  text-decoration: none;
  padding: 1.5rem 1.3rem 2.4rem;
  min-height: 210px;
  overflow: hidden;
  transition: background .25s ease;
}
.tiles a:nth-child(2) { background: #1aa0dc; }
.tiles a:nth-child(3) { background: #3db4e0; }
.tiles a:hover { color: white; background: #007bb8; }
.tiles a:nth-child(2):hover { background: #1590c8; }
.tiles a:nth-child(3):hover { background: #2aa6d2; }
.tiles a::after {
  content: "→";
  position: absolute;
  right: 1.15rem;
  bottom: 1rem;
  font-size: 1.2rem;
  line-height: 1;
  opacity: 0.72;
  transition: transform .25s ease, opacity .25s ease;
}
.tiles a:hover::after { opacity: 1; transform: translateX(4px); }
.tiles h2 { color: white; margin-bottom: 0.35rem; }
.tiles p { color: #f4fbff; margin: 0; }
.tile-ico {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  margin-bottom: 0.75rem;
  color: white;
  background: rgba(255,255,255,0.16);
  border-radius: 16px;
}
.tile-ico svg { width: 34px; height: 34px; }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.classic-cards { margin-top: 0; }

.who { padding-top: 3.2rem; padding-bottom: 1.2rem; }
.who-block { max-width: 42rem; }
.kicker.dark { color: var(--blue); }
.who-block p { color: var(--muted); font-size: var(--fs-body); }
.who-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.4rem;
  align-items: center;
  margin-top: 1.3rem;
}
.who-actions a:not(.btn) {
  font-weight: 700;
  text-decoration: none;
  color: var(--blue-deep);
}
.who-actions a:not(.btn)::after { content: " →"; }
.who-actions a:not(.btn):hover { color: var(--blue); }

.logo-strip {
  position: relative;
  height: 220px;
  background: linear-gradient(180deg, #e7f3fb 0%, #f4f8fb 100%);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.search-bar + .logo-strip { border-top: 0; }
.logo-strip.featured { height: 280px; }
.logo-strip canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 2;
  pointer-events: none;
}
.logo-strip.featured canvas { pointer-events: auto; cursor: default; }
.search-bar {
  padding: 1.15rem 0 1.25rem;
  background: white;
  border-bottom: 1px solid var(--line);
}
.search-bar .section-head { margin-bottom: 1.1rem; }
.search-bar .tools { margin: 0; align-items: center; }
.search-bar .empty { margin: 0.7rem 0 0; }
.search-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.8rem 2rem;
  align-items: start;
}
.search-top-actions {
  margin: 0;
  padding-top: 0.2rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.member-modal {
  width: min(780px, calc(100vw - 1.6rem));
  max-height: min(88dvh, 840px);
  border: 0;
  padding: 0;
  background: transparent;
  overflow: visible;
}
.member-modal::backdrop {
  background: rgba(14, 42, 61, 0.58);
  backdrop-filter: blur(5px);
}
.member-sheet {
  position: relative;
  background: white;
  border-radius: 20px;
  max-height: min(88dvh, 840px);
  overflow: auto;
  box-shadow: 0 28px 64px rgba(8, 40, 70, 0.28);
}
.member-close {
  position: sticky;
  top: 0.6rem;
  float: right;
  z-index: 2;
  margin: 0.6rem 0.7rem 0 0;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 999px;
  background: var(--paper);
  color: var(--navy);
  font: inherit;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
}
.member-close:hover { background: var(--line); }
.ficha-card {
  display: grid;
  grid-template-columns: minmax(160px, 220px) 1fr;
  gap: 1.8rem;
  align-items: start;
  padding: 1.5rem 1.4rem 1.4rem;
  clear: both;
}
.ficha-logo {
  display: grid;
  place-items: center;
  min-height: 140px;
  background: var(--paper);
  border-radius: 14px;
  padding: 1rem;
}
.ficha-logo img { max-height: 110px; width: auto; }
.ficha-mark {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.35rem;
  color: var(--navy);
  text-align: center;
}
.ficha-meta { color: var(--muted); }
.ficha-quote {
  margin: 1.1rem 0 0;
  padding: 0.2rem 0 0.2rem 1rem;
  border-left: 3px solid var(--blue);
}
.ficha-quote p { color: var(--ink); font-size: 1.05rem; }
.ficha-quote footer {
  margin-top: 0.8rem;
  color: var(--muted);
  font-size: 0.9rem;
}
.ficha-actions { margin: 1.2rem 0 0; }
.ficha-actions .btn { text-decoration: none; }
.logo-rail {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 1.1rem 1.8rem;
}
.logo-rail img {
  height: 56px;
  width: auto;
  max-width: 180px;
  object-fit: contain;
}
.strip-fallback {
  position: relative;
  z-index: 0;
  height: 100%;
  align-content: center;
  padding: 0 1.2rem;
}
.logo-strip.featured .strip-fallback,
.logo-strip.featured .strip-fallback[hidden] {
  display: none;
}
.logo-strip.featured.is-fallback .strip-fallback {
  display: flex;
}
.logo-strip.featured.is-fallback canvas {
  display: none;
}
.strip-fallback button {
  border: 0;
  background: white;
  border-radius: 16px;
  padding: 1rem 1.2rem;
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(10, 76, 122, .1);
}
.strip-fallback[hidden] { display: none; }
.card.photo {
  min-height: 240px;
  color: white;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(6, 28, 46, .12), rgba(6, 28, 46, .8)),
    var(--photo) center / 108% no-repeat;
  border: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  transition: transform .35s ease, box-shadow .35s ease, background-size .5s ease;
}
.card.photo:hover {
  color: white;
  border-color: transparent;
  background-size: auto, 116%;
}
.card.photo p, .card.photo .more { color: #e8f6fd; }
.card {
  display: block;
  background: white;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.3rem 1.25rem 1.2rem;
  text-decoration: none;
  color: inherit;
  min-height: 180px;
  transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease;
}
.card:hover {
  border-color: var(--blue);
  color: inherit;
  transform: translateY(-8px);
  box-shadow: 0 18px 40px rgba(10, 76, 122, .12);
}
.card p { color: var(--muted); margin: 0; }
.card .more { display: inline-block; margin-top: 0.9rem; font-weight: 700; color: var(--blue-deep); }
.card .more::after { content: " →"; }

.split { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 2.5rem; align-items: start; }
.split > div:last-child {
  padding-left: 1.6rem;
  border-left: 3px solid var(--blue);
}
.benefits { margin: 0; padding: 0; list-style: none; }
.benefits li {
  padding: 0.85rem 0 0.85rem 2.2rem;
  border-bottom: 1px solid var(--line);
  position: relative;
}
.benefits li::before {
  content: "";
  width: 0.7rem; height: 0.7rem; border-radius: 50%;
  background: var(--blue);
  position: absolute; left: 0.2rem; top: 1.15rem;
}

.links { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.links a {
  text-decoration: none;
  border: 1px solid var(--line);
  background: white;
  color: var(--navy);
  font-weight: 700;
  padding: 0.7rem 1rem;
  border-radius: 999px;
  transition: transform .25s ease, border-color .25s ease, color .25s ease;
}
.links a:hover {
  border-color: var(--blue);
  color: white;
  background: var(--blue);
  transform: translateY(-2px);
}

.page-hero {
  position: relative;
  background:
    radial-gradient(900px 220px at 0% 0%, rgba(0, 143, 213, .12), transparent 58%),
    var(--paper);
  padding: 3rem 0 2.4rem;
  overflow: hidden;
}
.page-hero::after {
  content: "";
  display: block;
  height: 4px;
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--run);
  background-size: 220% 100%;
  animation: run-line 14s linear infinite;
}
.page-hero .kicker { color: var(--blue); font-size: var(--fs-kicker); }
.page-hero p:not(.kicker) { max-width: 40rem; color: var(--muted); font-size: var(--fs-body); }

.prose { max-width: 44rem; }
.prose h2 { margin: 1.4rem 0 0.5rem; font-size: 1.35rem; }
.prose ul { margin: 0 0 1rem; padding-left: 1.2rem; }
.prose li { margin: 0.35rem 0; }
.story {
  display: grid;
  grid-template-columns: minmax(220px, 320px) 1fr;
  gap: 2.2rem;
  align-items: center;
  margin-bottom: 2.2rem;
}
.story-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(circle at 50% 50%, white 0%, #e7f3fb 72%);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1.8rem 1.3rem;
  min-height: 190px;
  box-shadow: inset 0 0 0 8px rgba(0, 143, 213, .06);
}
.story-mark img { width: 100%; height: auto; }
.prose p { font-size: var(--fs-body); }

.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 1.5rem; }
.value {
  background: white;
  border-top: 4px solid var(--blue);
  border-radius: 0 0 14px 14px;
  padding: 1.1rem 1.15rem;
  box-shadow: 0 1px 0 var(--line);
  transition: transform .35s ease, box-shadow .35s ease;
}
.value:hover { transform: translateY(-6px); box-shadow: 0 16px 32px rgba(10, 76, 122, .1); }
.value p { color: var(--muted); font-size: var(--fs-card); margin: 0; }
.value span { display: block; color: var(--blue); font-weight: 700; font-size: var(--fs-label); letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 0.35rem; }

.tools { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-bottom: 1.2rem; }
.tools input, .tools select, .form input, .form textarea, .form select {
  font: inherit;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.7rem 0.8rem;
  background: white;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.tools input:focus, .tools select:focus, .form input:focus, .form textarea:focus, .form select:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(0, 143, 213, .15);
}
.tools input { min-width: min(100%, 280px); }
.tools select { min-width: 180px; }

.empty { color: var(--muted); margin-top: 0; }
.empty[hidden] { display: none; }

.laws {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.9rem;
}
.law {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1rem 1.05rem;
  background: white;
  border: 1px solid var(--line);
  border-radius: 14px;
  text-decoration: none;
  color: inherit;
  min-height: 100%;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.law:hover {
  transform: translateY(-4px);
  border-color: var(--blue);
  box-shadow: 0 3px 0 var(--blue), 0 12px 28px rgba(10, 76, 122, .1);
}
.law:hover h3 { color: var(--blue); }
.law b { color: var(--blue-deep); font-size: var(--fs-label); letter-spacing: 0.04em; text-transform: uppercase; }
.law h3 { margin: 0.15rem 0 0.2rem; font-size: 1.25rem; }
.law p { margin: 0; color: var(--muted); font-size: var(--fs-card); }
.catalog {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.9rem;
}
.catalog li {
  margin: 0;
  background: white;
  border: 1px solid var(--line);
  border-radius: 14px;
  min-height: 100%;
}
.catalog li[hidden] { display: none; }
.catalog a {
  display: block;
  height: 100%;
  padding: 1rem 1.05rem;
  text-decoration: none;
  font-weight: 700;
  color: var(--navy);
  border-radius: 14px;
  transition: color .2s ease, box-shadow .25s ease, border-color .25s ease;
}
.catalog a:hover {
  color: var(--blue-deep);
  box-shadow: 0 3px 0 var(--blue), 0 12px 28px rgba(10, 76, 122, .1);
}
.catalog small {
  display: block;
  font-weight: 400;
  color: var(--muted);
  margin-top: 0.4rem;
  line-height: 1.4;
}
.law > div { display: flex; flex-direction: column; gap: 0.35rem; flex: 1; }

.form { position: relative; display: grid; gap: 0.75rem; background: white; border: 1px solid var(--line); border-radius: 16px; padding: 1.2rem; }
.form label { display: grid; gap: 0.3rem; font-weight: 600; font-size: 0.95rem; }
.form textarea { min-height: 140px; resize: vertical; }
.form input[type="file"] {
  font-size: 0.86rem;
  padding: 0.45rem 0.5rem;
  background: var(--paper);
}
.form-row, .form-files {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}
.form-check {
  display: flex !important;
  align-items: flex-start;
  gap: 0.55rem;
  font-weight: 400 !important;
  font-size: 0.92rem;
  color: var(--navy);
  grid-template-columns: none;
}
.form-check input {
  width: 1.15rem;
  height: 1.15rem;
  margin-top: 0.2rem;
  flex: 0 0 auto;
}
.form-check > span {
  flex: 1 1 auto;
  min-width: 0;
  line-height: 1.45;
}
.form .hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.form .captcha input {
  max-width: 8rem;
}
.perks {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.9rem;
}
.perk {
  background: white;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1rem 1.05rem 1.1rem;
  min-height: 100%;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.perk:hover {
  transform: translateY(-4px);
  border-color: var(--blue);
  box-shadow: 0 3px 0 var(--blue), 0 12px 28px rgba(10, 76, 122, .1);
}
.perk b {
  color: var(--blue);
  font-size: var(--fs-label);
  letter-spacing: 0.08em;
}
.perk h3 { margin: 0.35rem 0 0.4rem; font-size: 1.25rem; }
.perk p { margin: 0; color: var(--muted); font-size: var(--fs-card); }
.join-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 2rem;
  align-items: start;
}
#pedido { scroll-margin-top: 7.2rem; }
.page-hero .who-actions { margin-top: 1.15rem; }
.docs-title { margin: 1.4rem 0 0.4rem; }
.docs { margin: 0; padding: 0; list-style: none; }
.docs li {
  padding: 0.65rem 0 0.65rem 2rem;
  border-bottom: 1px solid var(--line);
  position: relative;
}
.docs li::before {
  content: "";
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 50%;
  background: var(--blue);
  position: absolute;
  left: 0.25rem;
  top: 1rem;
}
.note { color: var(--muted); font-size: 0.92rem; }
.ok { display: none !important; }
.form-err { display: none !important; }
.abe-popup {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 1.2rem;
  background: rgba(12, 28, 48, 0.45);
}
.abe-popup-card {
  width: min(420px, 100%);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.25rem 1.2rem 1.1rem;
  box-shadow: 0 18px 50px rgba(12, 28, 48, 0.22);
  display: grid;
  gap: 0.75rem;
}
.abe-popup-card.is-ok { border-color: #b7e0c6; }
.abe-popup-card.is-err { border-color: #f0b6bc; }
.abe-popup-title {
  margin: 0;
  font-weight: 700;
  font-size: 1.05rem;
}
.abe-popup-card.is-ok .abe-popup-title { color: #145c32; }
.abe-popup-card.is-err .abe-popup-title { color: #8a1c28; }
.abe-popup-msg {
  margin: 0;
  color: var(--ink);
  line-height: 1.45;
}
.abe-popup-close { justify-self: end; min-width: 5.5rem; }

.address { font-size: var(--fs-body); }
a.perk { text-decoration: none; color: inherit; }
a.perk:hover { color: inherit; }
a.perk:hover h3 { color: var(--blue); }
.contact-map {
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  background: var(--paper);
  min-height: 280px;
}
.contact-map iframe {
  display: block;
  width: 100%;
  height: 320px;
  border: 0;
}
#mensagem { scroll-margin-top: 7.2rem; }

.foot {
  position: relative;
  background:
    radial-gradient(700px 220px at 100% 0%, rgba(0, 143, 213, .22), transparent 55%),
    var(--navy);
  color: #d5e3ec;
  padding: 2.6rem 0 calc(1.6rem + env(safe-area-inset-bottom));
}
.foot::before {
  content: "";
  display: block;
  height: 6px;
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  background: var(--run);
  background-size: 220% 100%;
  animation: run-line 14s linear infinite;
}
.foot-grid { display: grid; grid-template-columns: 1.25fr 0.9fr 1.45fr; gap: 1.5rem; }
.foot strong {
  display: block;
  color: white;
  padding-bottom: 0.4rem;
  margin-bottom: 0.45rem;
  border-bottom: 2px solid rgba(0, 143, 213, .45);
  width: fit-content;
}
.foot a { color: white; text-decoration: none; }
.foot a:hover { color: #4db6e4; }
.foot p { margin: 0.3rem 0; }
.foot-index {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin: 0;
  width: fit-content;
}
.foot-index a {
  display: block;
  white-space: nowrap;
  line-height: 1.35;
}
.legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 1.6rem;
  margin-top: 1.4rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255,255,255,0.12);
  font-size: 0.88rem;
  color: #9fb4c2;
}
.legal-nav { display: flex; flex-wrap: wrap; gap: 0.9rem 1.2rem; }
.legal-nav a { color: #d7e8f2; font-weight: 700; text-decoration: none; }
.legal-nav a:hover { color: white; }
.skip {
  position: absolute;
  left: 0.8rem;
  top: -5rem;
  z-index: 40;
  background: var(--navy);
  color: white;
  padding: 0.55rem 0.9rem;
  border-radius: 8px;
  font-weight: 700;
  text-decoration: none;
}
.skip:focus, .skip:focus-visible {
  top: calc(0.55rem + env(safe-area-inset-top));
  color: white;
}
.cookie-bar {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: calc(1rem + env(safe-area-inset-bottom));
  z-index: 30;
  width: min(40rem, calc(100% - 2rem));
  margin: 0 auto;
  background: var(--navy);
  color: white;
  padding: 1rem 1.1rem;
  border-radius: 14px;
  display: grid;
  gap: 0.75rem;
}
.cookie-bar p { margin: 0; color: #d7e8f2; font-size: 0.95rem; }
.cookie-bar a { color: white; font-weight: 700; }
.cookie-bar .btn {
  width: fit-content;
  justify-self: start;
  background: white;
  color: var(--navy);
  border-color: white;
}
.cookie-bar .btn:hover {
  background: var(--paper);
  color: var(--navy);
  transform: none;
  box-shadow: none;
}
.dev {
  display: inline-flex;
  align-items: center;
  gap: 0.32rem;
  margin: 0;
  width: fit-content;
  background: rgba(255, 255, 255, .96);
  color: var(--navy);
  border-radius: 7px;
  padding: 0.18rem 0.45rem 0.18rem 0.22rem;
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.01em;
  line-height: 1;
}
.dev img {
  display: block;
  height: 16px;
  width: auto;
}

.reveal { opacity: 0; transform: translateY(22px); }
.reveal.in { opacity: 1; transform: none; transition: opacity .6s ease, transform .6s ease; }

@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}
@keyframes run-line {
  from { background-position: 0 0; }
  to { background-position: -220% 0; }
}
@keyframes hero-ken {
  from { transform: scale(1); }
  to { transform: scale(1.12); }
}
@keyframes hero-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  *:not(.top):not(.foot):not(.page-hero),
  *:not(.top):not(.foot):not(.page-hero)::before,
  *:not(.top):not(.foot):not(.page-hero)::after {
    animation: none !important;
    transition: none !important;
  }
  .reveal { opacity: 1; transform: none; }
  .hero.classic .hero-slide {
    transition: opacity .7s ease !important;
  }
  .hero.classic .hero-slide.on {
    animation: hero-ken 8s ease-in-out infinite alternate !important;
  }
  .hero.classic .hero-caption.on h1 {
    animation: hero-in .45s ease both !important;
  }
  .hero.classic .hero-caption.on p {
    animation: hero-in .45s ease .08s both !important;
  }
}

@media (hover: none) {
  .nav a:hover { transform: none; }
  .btn:hover { transform: none; box-shadow: none; }
  .card:hover, .value:hover, .perk:hover { transform: none; }
  .law:hover, .catalog a:hover { transform: none; }
}

@media (max-width: 1180px) {
  .brand img { height: 68px; }
  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    min-width: 44px;
    font-size: 1.05rem;
    padding: 0.55rem 0.9rem;
  }
  .nav {
    display: none;
    position: absolute;
    left: 0; right: 0; top: 100%;
    z-index: 21;
    background: white;
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: stretch;
    padding: 0.7rem;
    max-height: min(80vh, calc(100dvh - 5.5rem));
    overflow: auto;
    -webkit-overflow-scrolling: touch;
  }
  .nav.open { display: flex; }
  .nav a { font-size: 1.15rem; padding: 0.9rem 1rem; }
  .top-row { position: relative; }
  .account {
    margin-left: 0;
    padding-left: 0;
    border-left: 0;
  }
  .hero.classic {
    min-height: 340px;
    height: auto;
    align-items: center;
    padding: 1rem 0 3.4rem;
  }
  .hero-panel { width: min(20rem, 100%); }
}

@media (max-width: 900px) {
  .split, .cards, .values, .join-grid, .foot-grid, .story, .tiles,
  .stats, .fronts, .know-grid, .transparency { grid-template-columns: 1fr; }
  .stats { margin-top: 0; }
  .hero.institutional {
    min-height: 0;
    padding: 3.2rem 0 2.6rem;
    align-items: flex-end;
    background-image:
      linear-gradient(180deg, rgba(6, 28, 46, .78) 0%, rgba(6, 28, 46, .7) 100%),
      image-set(
        url("../img/banner-1.webp") type("image/webp"),
        url("../img/banner-1.jpg") type("image/jpeg")
      );
    background-position: center 30%;
    background-size: cover;
    background-repeat: no-repeat;
  }
  .hero.institutional .hero-copy { max-width: none; }
  .split > div:last-child {
    padding-left: 0;
    border-left: 0;
    margin-top: 0.6rem;
    padding-top: 1.2rem;
    border-top: 3px solid var(--blue);
  }
  .hero-copy { max-width: none; }
  .hero.classic {
    padding: 0 0 2rem;
    min-height: 360px;
    height: auto;
    align-items: flex-end;
  }
  .hero-stage { justify-content: stretch; }
  .hero-panel { width: 100%; }
  .hero-captions { min-height: 4.6rem; }
  .hero-panel h1 { font-size: 1.4rem; }
  .tiles {
    width: 100%;
    margin: 0;
    border-radius: 0;
    box-shadow: none;
  }
  .tiles a { min-height: 0; padding: 1.25rem 1.3rem; }
  .logo-strip { height: 168px; }
  .logo-strip.featured { height: 220px; }
  .ficha-card { grid-template-columns: 1fr; }
  .member-modal { width: calc(100vw - 1.2rem); }
  .laws, .catalog, .perks { grid-template-columns: 1fr 1fr; }
  .brand img { height: 56px; }
  .top-row { min-height: 76px; }
  .section { padding: 2.6rem 0; }
  .page-hero { padding: 1.8rem 0 1.4rem; }
  .tools { flex-direction: column; align-items: stretch; }
  .tools input, .tools select, .search-bar .btn { width: 100%; min-width: 0; min-height: 48px; }
  .search-top { grid-template-columns: 1fr; }
  .search-top-actions { justify-content: flex-start; padding-top: 0; }
  .form .btn { width: 100%; text-align: center; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .legal { flex-direction: column; align-items: flex-start; }
  .dev img { height: 15px; }
  .brand img { height: 48px; }
  .top-row { min-height: 64px; gap: 0.6rem; }
  .account-btn { width: 42px; height: 42px; }
  .who-actions .btn, .actions .btn, .form .btn { width: 100%; text-align: center; }
  .hero p.lead,
  .who-block p,
  .page-hero p:not(.kicker),
  .section-head p,
  .prose p,
  .address { font-size: 1.02rem; }
  .section { padding: 2rem 0; }
  .who { padding-top: 2rem; }
  .logo-strip.featured { height: 196px; }
  .ficha-card { padding: 1.1rem 1rem 1.05rem; }
  .ficha-quote p { font-size: 1rem; }
  .ficha-actions .btn { width: 100%; text-align: center; }
  .card.photo { min-height: 200px; }
  .foot { padding: 1.8rem 0 calc(1.3rem + env(safe-area-inset-bottom)); }
  .form { padding: 1rem; }
  .laws, .catalog, .perks { grid-template-columns: 1fr; }
  .form-row, .form-files { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .know-grid { grid-template-columns: 1fr; }
  .anchor-block { scroll-margin-top: 5.5rem; }
}
