@import url("fonts.css?v=20260812-2");

:root {
  --azul: #18365f;
  --azul-escuro: #102747;
  --azul2: #245c96;
  --ciano: #22a7df;
  --claro: #f5f8fc;
  --texto: #172033;
  --muted: #65758b;
  --borda: #dbe5ef;
  --foco: #ffbf47;
  --max: 1120px;
  --raio: 12px;
  --sombra: 0 7px 25px rgba(24, 54, 95, 0.08);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  overflow-x: hidden;
  font-family: "Montserrat", Arial, Helvetica, sans-serif;
  color: var(--texto);
  background: #fff;
  line-height: 1.6;
}

a {
  color: var(--azul2);
}

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

button,
input,
select,
textarea {
  font: inherit;
}

:focus-visible {
  outline: 3px solid var(--foco);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 10px;
  left: 10px;
  padding: 10px 14px;
  border-radius: 8px;
  color: var(--azul-escuro);
  background: #fff;
  font-weight: 700;
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.container {
  width: min(var(--max), calc(100% - 32px));
  margin-inline: auto;
}

/* Cabeçalho e navegação */
.top {
  position: sticky;
  z-index: 10;
  top: 0;
  color: #fff;
  background: var(--azul);
  box-shadow: 0 2px 12px rgba(16, 39, 71, 0.15);
}

.nav {
  display: flex;
  align-items: center;
  gap: 22px;
  min-height: 78px;
}

.brand {
  flex: 0 0 auto;
}

.brand img {
  width: 145px;
}

.site-menu {
  display: flex;
  flex: 1;
  align-items: center;
  gap: 18px;
}

.site-menu a {
  padding: 8px 2px;
  color: #fff;
  font-size: 14px;
  text-decoration: none;
  text-underline-offset: 5px;
}

.site-menu a:hover,
.site-menu a[aria-current="page"] {
  text-decoration: underline;
  text-decoration-thickness: 2px;
}

.site-menu .doe {
  margin-left: auto;
  padding: 9px 14px;
  border-radius: 999px;
  background: var(--ciano);
  font-weight: 700;
  text-decoration: none;
}

.content-archive .nav > a:not(:first-child) {
  display: none;
}

.menu-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  padding: 9px 12px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 8px;
  color: #fff;
  background: transparent;
  cursor: pointer;
  font-weight: 700;
}

.menu-icon,
.menu-icon::before,
.menu-icon::after {
  display: block;
  width: 20px;
  height: 2px;
  background: currentColor;
}

.menu-icon {
  position: relative;
}

.menu-icon::before,
.menu-icon::after {
  position: absolute;
  left: 0;
  content: "";
}

.menu-icon::before {
  top: -6px;
}

.menu-icon::after {
  top: 6px;
}

/* Conteúdo */
.hero {
  padding: 72px 0;
  background: linear-gradient(135deg, #eef7fd, #fff);
}

.hero-grid,
.volunteer-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 36px;
  align-items: center;
}

.hero-grid > img,
.volunteer-grid > img {
  width: 100%;
  border-radius: var(--raio);
  object-fit: cover;
}

.eyebrow {
  color: var(--azul2);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  color: var(--azul-escuro);
}

h1 {
  margin: 0.2em 0;
  font-size: clamp(36px, 6vw, 66px);
  line-height: 1.05;
}

h2 {
  font-size: clamp(26px, 4vw, 42px);
  line-height: 1.15;
}

h3 {
  font-size: 22px;
  line-height: 1.3;
}

.lead {
  font-size: 20px;
}

.section {
  padding: 58px 0;
}

.section.alt,
.page-title {
  background: var(--claro);
}

.page-title {
  padding: 55px 0 25px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

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

.card {
  overflow-wrap: anywhere;
  padding: 22px;
  border: 1px solid var(--borda);
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--sombra);
}

a.card {
  color: var(--texto);
  text-decoration: none;
}

.card img {
  width: 100%;
  border-radius: var(--raio);
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.article {
  max-width: 820px;
}

.article > img,
.article-cover {
  width: 100%;
  margin: 24px 0;
  border-radius: var(--raio);
}

.article > img {
  max-height: 560px;
  object-fit: cover;
}

.article li {
  margin-bottom: 8px;
}

.button {
  display: inline-block;
  padding: 11px 16px;
  border: 0;
  border-radius: 9px;
  color: #fff;
  background: var(--azul);
  box-shadow: 0 4px 12px rgba(24, 54, 95, 0.16);
  cursor: pointer;
  font-weight: 700;
  text-decoration: none;
  transition: background-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.button:hover {
  background: var(--azul2);
  box-shadow: 0 7px 18px rgba(24, 54, 95, 0.22);
  transform: translateY(-2px);
}

.button:active {
  transform: translateY(0);
}

.button:disabled,
.button[aria-disabled="true"] {
  color: #eef4fa;
  background: #6f8195;
  box-shadow: none;
  cursor: not-allowed;
  transform: none;
}

.meta {
  color: var(--muted);
  font-size: 14px;
}

.form-status {
  max-width: 720px;
  padding: 10px 12px;
  border-left: 4px solid var(--ciano);
  background: #eef7fd;
}

.notice {
  padding: 16px;
  border: 1px solid #ead57d;
  border-radius: var(--raio);
  background: #fff8d8;
}

.form {
  display: grid;
  gap: 12px;
  max-width: 720px;
}

.form label {
  font-weight: 700;
}

.form input,
.form textarea,
.form select {
  width: 100%;
  padding: 12px;
  border: 1px solid #9daec0;
  border-radius: 8px;
  color: var(--texto);
  background: #fff;
}

.form input:focus,
.form textarea:focus,
.form select:focus {
  border-color: var(--azul2);
}

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

.timeline {
  padding-left: 20px;
  border-left: 4px solid var(--ciano);
}

.timeline article {
  display: grid;
  grid-template-columns: 148px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  margin: 0 0 28px;
}

.timeline article img {
  grid-row: span 2;
  width: 148px;
  border-radius: 8px;
}

.timeline article h3,
.timeline article p {
  margin-top: 0;
}

.doc {
  padding: 18px 0;
  border-bottom: 1px solid var(--borda);
  overflow-wrap: anywhere;
}

.doc:last-child {
  border-bottom: 0;
}

.source {
  margin-top: 22px;
  padding-top: 12px;
  border-top: 1px dashed var(--borda);
  color: #637083;
  font-size: 13px;
  overflow-wrap: anywhere;
}

.toc {
  columns: 2;
  gap: 28px;
}

.toc a {
  display: block;
  margin: 4px 0;
}

.badge {
  display: inline-block;
  padding: 5px 10px;
  border-radius: 999px;
  color: #164f78;
  background: #e8f4fb;
  font-size: 12px;
  font-weight: 700;
}

/* Rodapé */
.footer {
  padding: 42px 0;
  color: #fff;
  background: var(--azul-escuro);
}

.footer a {
  color: #fff;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}

.footer-logo {
  width: 190px;
}

.footer hr {
  border: 0;
  border-top: 1px solid #35506f;
}

/* Entradas discretas ativadas pelo JavaScript */
.js .reveal {
  transition: opacity 480ms ease, transform 480ms ease;
}

.js .reveal:not(.is-visible) {
  opacity: 0;
  transform: translateY(16px);
}

@media (max-width: 1000px) {
  .js .menu-toggle {
    display: inline-flex;
  }

  .nav {
    flex-wrap: wrap;
    padding: 12px 0;
  }

  .js .site-menu {
    display: none;
    flex: 0 0 100%;
    align-items: stretch;
    gap: 4px;
    padding: 6px 0 12px;
  }

  .js .site-menu.is-open {
    display: flex;
  }

  .site-menu {
    flex-wrap: wrap;
  }

  .site-menu a {
    padding: 9px 10px;
  }

  .site-menu .doe {
    margin-left: 0;
    text-align: center;
  }
}

@media (max-width: 800px) {
  .hero {
    padding: 52px 0;
  }

  .hero-grid,
  .volunteer-grid,
  .grid,
  .grid.two,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .timeline article {
    grid-template-columns: 100px minmax(0, 1fr);
  }

  .timeline article img {
    width: 100px;
  }

  .toc {
    columns: 1;
  }
}

@media (max-width: 480px) {
  .container {
    width: min(var(--max), calc(100% - 24px));
  }

  .brand img {
    width: 128px;
  }

  .menu-label {
    font-size: 14px;
  }

  .section {
    padding: 44px 0;
  }

  .page-title {
    padding: 42px 0 22px;
  }

  .timeline article {
    display: block;
  }

  .timeline article img {
    width: 120px;
    margin-bottom: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }

  .js .reveal:not(.is-visible) {
    opacity: 1;
    transform: none;
  }
}

/* Camada visual unificada das páginas internas */
:root {
  --max: 76rem;
  --raio: 0.75rem;
  --sombra: 0 0.75rem 2.2rem rgba(24, 54, 95, 0.09);
}

body {
  font-family: "Montserrat", Arial, Helvetica, sans-serif;
  color: #172033;
  background: #fff;
  line-height: 1.65;
}

main {
  overflow-x: clip;
}

h1,
h2,
h3,
.site-menu,
.button {
  font-family: "Montserrat", Arial, Helvetica, sans-serif;
  letter-spacing: -0.025em;
}

p,
li,
address {
  text-wrap: pretty;
}

.top {
  z-index: 50;
  background: #18365f;
  box-shadow: 0 0.45rem 1.8rem rgba(9, 27, 50, 0.12);
}

.top-utility {
  min-height: 2.25rem;
  color: #d9e6f4;
  background: #102747;
  font-size: 0.72rem;
}

.top-utility__inner {
  display: flex;
  min-height: 2.25rem;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.top-utility p {
  margin: 0;
}

.top-utility__actions {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.top-utility button {
  padding: 0;
  border: 0;
  color: #fff;
  background: transparent;
  cursor: pointer;
  font-size: inherit;
  font-weight: 700;
}

.nav {
  min-height: 5rem;
  gap: clamp(1.25rem, 3vw, 3rem);
}

.brand img {
  width: 9.6rem;
}

.site-menu {
  justify-content: flex-end;
  gap: clamp(0.75rem, 1.35vw, 1.4rem);
}

.site-menu > a:first-child[href$="index.html"] {
  display: none;
}

.site-menu a {
  position: relative;
  padding: 0.75rem 0;
  color: #fff;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.site-menu a:not(.doe)::after {
  position: absolute;
  right: 0;
  bottom: 0.35rem;
  left: 0;
  height: 2px;
  background: #22a7df;
  content: "";
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}

.site-menu a:hover::after,
.site-menu a:focus-visible::after {
  transform: scaleX(1);
}

.site-menu .doe {
  margin-left: 0.4rem;
  padding: 0.72rem 1.05rem;
  border-radius: 0.4rem;
  color: #102747;
  background: #54c3ef;
  box-shadow: 0 0.45rem 1rem rgba(9, 27, 50, 0.16);
}

.legacy-accessibility-panel {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  background: #102747;
}

.legacy-accessibility-panel__inner {
  display: flex;
  min-height: 4rem;
  align-items: center;
  gap: 0.75rem;
}

.legacy-accessibility-panel__inner strong {
  margin-right: auto;
}

.legacy-accessibility-panel button,
.legacy-search-dialog button {
  padding: 0.55rem 0.8rem;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 0.35rem;
  color: inherit;
  background: transparent;
  cursor: pointer;
}

.legacy-search-dialog {
  width: min(44rem, calc(100% - 2rem));
  max-height: min(44rem, calc(100vh - 2rem));
  padding: 0;
  overflow: auto;
  border: 0;
  border-radius: 0.8rem;
  color: #172033;
  background: #fff;
  box-shadow: 0 2rem 6rem rgba(9, 27, 50, 0.3);
}

.legacy-search-dialog::backdrop {
  background: rgba(9, 27, 50, 0.72);
}

.legacy-search-dialog__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.5rem;
  color: #fff;
  background: #18365f;
}

.legacy-search-dialog__header h2 {
  margin: 0.2rem 0 0;
  color: #fff;
  font-size: clamp(1.7rem, 5vw, 2.5rem);
}

.legacy-search-field {
  display: grid;
  gap: 0.45rem;
  padding: 1.5rem;
  font-weight: 700;
}

.legacy-search-field input {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid #cbd8e5;
  border-radius: 0.4rem;
}

.legacy-search-results {
  display: grid;
  gap: 0.5rem;
  padding: 0 1.5rem 1.5rem;
}

.legacy-search-results a {
  display: grid;
  gap: 0.2rem;
  padding: 0.85rem 1rem;
  border: 1px solid #dbe5ef;
  border-radius: 0.4rem;
  color: #172033;
  text-decoration: none;
}

.legacy-search-results a:hover {
  border-color: #22a7df;
  background: #f5f8fc;
}

.legacy-search-results small {
  color: #65758b;
}

.page-title {
  padding: clamp(4.5rem, 9vw, 7.5rem) 0 clamp(3.5rem, 7vw, 5.5rem);
  border-bottom: 1px solid #dbe5ef;
  background: #f5f8fc;
}

.page-title .container {
  display: grid;
  gap: 0.8rem;
}

.page-title h1 {
  max-width: 20ch;
  margin: 0;
  overflow-wrap: normal;
  color: #102747;
  font-size: clamp(2.8rem, 5.7vw, 5.5rem);
  hyphens: none;
  line-height: 0.98;
  text-wrap: balance;
  word-break: normal;
}

.page-title .lead,
.page-title > .container > p:not(.meta) {
  max-width: 46rem;
  margin: 0;
  color: #52657a;
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
}

.page-title .badge {
  width: fit-content;
  color: #245c96;
  background: transparent;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.section {
  padding: clamp(4.5rem, 8vw, 7rem) 0;
}

.section.alt {
  background: #f5f8fc;
}

.section h2 {
  margin-top: 0;
  font-size: clamp(2.1rem, 4vw, 4rem);
  line-height: 1.05;
}

.section h3 {
  font-size: clamp(1.25rem, 2vw, 1.7rem);
}

.hero-grid,
.volunteer-grid {
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: clamp(2rem, 6vw, 6rem);
}

.hero-grid > img,
.volunteer-grid > img {
  min-height: 29rem;
  border-radius: 0;
  object-fit: cover;
}

.grid {
  gap: 1.25rem;
}

.card {
  padding: clamp(1.4rem, 3vw, 2rem);
  border: 1px solid #dbe5ef;
  border-radius: 0.75rem;
  box-shadow: 0 0.75rem 2rem rgba(24, 54, 95, 0.07);
}

.card:has(> img) {
  display: flex;
  overflow: hidden;
  flex-direction: column;
  padding: 0 0 1.6rem;
}

.card:has(> img) > img {
  margin-bottom: 1.25rem;
  border-radius: 0;
}

.card:has(> img) > :not(img) {
  margin-right: 1.4rem;
  margin-left: 1.4rem;
}

.card:has(> img) > .button {
  margin-top: auto;
}

.card .badge {
  width: fit-content;
  color: #245c96;
  background: transparent;
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.article {
  max-width: 56rem;
  font-size: 1.08rem;
}

.article > p,
.article > ul,
.article > ol {
  max-width: 47rem;
}

.article > img,
.article-cover {
  width: 100%;
  margin: 0 0 clamp(2rem, 5vw, 4rem);
  border-radius: 0.75rem;
  box-shadow: var(--sombra);
}

.article h2,
.article h3 {
  margin-top: 2.2em;
}

.button {
  border-radius: 0.4rem;
  background: #18365f;
  box-shadow: none;
}

.button:hover {
  background: #245c96;
}

.form {
  gap: 1rem;
}

.form label {
  display: grid;
  gap: 0.4rem;
  color: #18365f;
  font-size: 0.9rem;
}

.form input,
.form textarea,
.form select {
  min-height: 3.25rem;
  border: 1px solid #bdcada;
  border-radius: 0.4rem;
}

.form input:focus,
.form textarea:focus,
.form select:focus {
  outline: 3px solid rgba(34, 167, 223, 0.2);
  border-color: #245c96;
}

section#doacoes {
  border-block: 1px solid #dbe5ef;
  background: #edf6fc;
}

section#doacoes .form {
  padding: clamp(1.4rem, 4vw, 2.25rem);
  border: 1px solid #dbe5ef;
  border-radius: 0.75rem;
  background: #fff;
  box-shadow: var(--sombra);
}

.timeline {
  border-left-color: #22a7df;
}

.timeline article {
  margin-bottom: 2.25rem;
  padding: 1.25rem;
  border: 1px solid #dbe5ef;
  border-radius: 0.75rem;
  background: #fff;
}

.source {
  margin-bottom: 2rem;
  color: #65758b;
}

.footer {
  padding: clamp(3.5rem, 7vw, 5.5rem) 0 2rem;
  color: #c3d4e8;
  background: #091b32;
}

.footer-grid {
  grid-template-columns: minmax(0, 0.9fr) minmax(20rem, 1.1fr);
  gap: clamp(2rem, 8vw, 7rem);
}

.footer strong {
  color: #fff;
  font-family: "Montserrat", Arial, Helvetica, sans-serif;
  font-size: 1.05rem;
}

.footer-logo {
  width: 11rem;
}

html[data-font-scale="large"] {
  font-size: 118%;
}

html[data-contrast="high"] body,
html[data-contrast="high"] .page-title,
html[data-contrast="high"] .section,
html[data-contrast="high"] .card {
  color: #fff;
  background: #000;
}

html[data-contrast="high"] h1,
html[data-contrast="high"] h2,
html[data-contrast="high"] h3,
html[data-contrast="high"] a {
  color: #ffea00;
}

@media (max-width: 1120px) {
  .js .menu-toggle {
    display: inline-flex;
  }

  .nav {
    flex-wrap: wrap;
    padding-block: 0.75rem;
  }

  .js .site-menu {
    display: none;
    width: 100%;
    flex: 0 0 100%;
    align-items: stretch;
    flex-direction: column;
    gap: 0;
    padding: 0.5rem 0 1rem;
  }

  .js .site-menu.is-open {
    display: flex;
    max-height: calc(100vh - 7rem);
    overflow-y: auto;
  }

  .site-menu a {
    padding: 0.8rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  }

  .site-menu a::after {
    display: none;
  }

  .site-menu .doe {
    margin: 0.75rem 0 0;
    text-align: center;
  }
}

@media (max-width: 800px) {
  .hero-grid,
  .volunteer-grid,
  .grid,
  .grid.two,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero-grid > img,
  .volunteer-grid > img {
    min-height: 23rem;
  }

  .legacy-accessibility-panel__inner {
    align-items: stretch;
    flex-direction: column;
    padding-block: 1rem;
  }

  .legacy-accessibility-panel__inner strong {
    margin-right: 0;
  }
}

@media (max-width: 640px) {
  .top-utility p {
    display: none;
  }

  .top-utility__inner {
    justify-content: flex-end;
  }

  .brand img {
    width: 8.5rem;
  }

  .page-title {
    padding-block: 3.5rem;
  }

  .page-title h1 {
    font-size: clamp(2.35rem, 11vw, 3.35rem);
  }

  .section {
    padding-block: 3.8rem;
  }

  .timeline article {
    padding: 1rem;
  }
}
