/* Peregrinos da Fé · Acervo Clóvis Alves Ribeiro
   Layout baseado no arquivo "Acervo Peregrinos da Fé" (Figma), 2026. */

:root {
  --navy: #03022e;
  --navy-2: #0c0f6b;
  --blue: #0016af;
  --blue-soft: #3748c0;
  --orange: #e58d21;
  --orange-hover: #f29d33;
  --orange-soft: #f2c68f;
  --green: #bdffb8;
  --white: #ffffff;
  --ink: #03022e;
  --muted: #4d4d6a;
  --container: 56.25rem;
  --gutter: 1.5rem;
  --radius: 0.625rem;
  --row: 15rem;
  --font: "Noto Sans", Arial, sans-serif;
  --font-heading: "Alumni Sans", "Arial Narrow", Arial, sans-serif;
}

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

/* Acima de 1440 px (largura do layout no Figma) o site cresce na mesma proporção. */
html { font-size: max(16px, 1.1111vw); scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
}

[hidden] { display: none !important; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button, input, textarea, select { font: inherit; }
h1, h2, h3, h4, h5, h6, button, .button, .header-link, .main-nav a,
.round-button__label, .collection-card span, .weather-card dd,
.campaign-metric strong, .cost-card span, .info-cta p, .director__name { font-family: var(--font-heading); }

.icon { width: 1em; height: 1em; flex: 0 0 auto; }

.skip-link {
  position: absolute;
  left: 1rem;
  top: -80px;
  z-index: 1000;
  padding: 0.625rem 0.875rem;
  background: var(--orange);
  color: var(--navy);
  font-weight: 700;
  text-decoration: none;
  border-radius: 0.5rem;
}
.skip-link:focus { top: 0.75rem; }

:focus-visible { outline: 0.1875rem solid var(--orange); outline-offset: 0.1875rem; }

.container {
  width: min(var(--container), 100% - 2 * var(--gutter));
  margin-inline: auto;
}
.container--narrow { width: min(49.25rem, 100% - 2 * var(--gutter)); }

.visually-hidden {
  position: absolute !important;
  width: 0.0625rem; height: 0.0625rem;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---------- Botões ---------- */

.button {
  display: inline-flex;
  min-height: 2.875rem;
  padding: 0.5rem 1.375rem;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  border: 0;
  border-radius: var(--radius);
  font-family: var(--font-heading);
  font-size: 1.375rem;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .16s ease, transform .16s ease, color .16s ease;
}
.button .icon { font-size: 1.625rem; }
.button--orange { background: var(--orange); color: var(--navy); }
.button--orange:hover { background: var(--orange-hover); transform: translateY(-1px); }
.button--wide { width: min(26.5rem, 100%); }
.button--ghost { background: transparent; color: var(--white); }
.button--ghost .icon { color: var(--orange); }
.button--ghost:hover, .button--ghost:focus-visible { background: var(--orange); color: var(--navy); }
.button--ghost:hover .icon, .button--ghost:focus-visible .icon { color: inherit; }
.button[disabled] { opacity: .6; cursor: progress; transform: none; }

.round-button {
  display: inline-grid;
  width: 3rem;
  height: 3rem;
  place-items: center;
  border-radius: 50%;
  background: var(--blue);
  color: var(--white);
  transition: background-color .16s ease, transform .16s ease;
}
.round-button .icon { font-size: 1.5625rem; }
.round-button:hover, .round-button:focus-visible { background: var(--orange); color: var(--navy); }
.round-button__label { display: none; }

@media (min-width: 901px) {
  .round-button--about:hover, .round-button--about:focus-visible { display: inline-flex; width: auto; padding: 0 1rem; border-radius: var(--radius); gap: 0.625rem; }
  .round-button--about:hover .round-button__label, .round-button--about:focus-visible .round-button__label { display: inline; font-size: 1.3125rem; font-weight: 700; white-space: nowrap; }
}

/* ---------- Cabeçalho ---------- */

.site-header { background: var(--white); }
.site-header__inner {
  display: flex;
  min-height: 9.375rem;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.brand { display: flex; min-width: 0; align-items: center; gap: 1.25rem; text-decoration: none; color: var(--blue); }
.brand img { flex-shrink: 0; width: 15.9375rem; height: auto; }
.brand__tagline { min-width: 0; align-self: flex-end; padding-bottom: 0.25rem; font-size: 1.125rem; line-height: 1.35; color: var(--blue); overflow-wrap: anywhere; }
.header-actions { display: flex; flex-shrink: 0; align-items: center; gap: 1.5rem; }
.header-link {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  margin-right: 0.875rem;
  padding: 0.625rem 0.875rem;
  border-radius: var(--radius);
  color: var(--blue);
  font-size: 1.3125rem;
  font-weight: 700;
  text-decoration: none;
}
.header-link .icon { font-size: 1.5rem; }
.header-link:hover, .header-link:focus-visible { background: var(--blue); color: var(--white); }

/* ---------- Foto de abertura ---------- */

.hero-photo { position: relative; background: var(--navy); }
.hero-photo img { width: 100%; height: clamp(16.25rem, 44vw, 50.625rem); object-fit: cover; }

/* ---------- Navegação principal ---------- */

.main-nav { position: relative; z-index: 2; background: var(--navy); }
.main-nav__list {
  display: flex;
  min-height: 5.75rem;
  margin: 0 auto;
  padding: 0;
  align-items: center;
  justify-content: space-between;
  list-style: none;
}
.main-nav a {
  display: inline-flex;
  min-height: 3.75rem;
  width: 100%;
  padding: 0.5rem 0.75rem;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  border-radius: var(--radius);
  color: var(--white);
  font-size: 1.375rem;
  font-weight: 700;
  text-decoration: none;
  transition: background-color .16s ease, color .16s ease;
}
.main-nav a .icon { font-size: 1.625rem; color: var(--orange); }
.main-nav a:hover, .main-nav a:focus-visible { background: var(--orange); color: var(--navy); }
.main-nav a:hover .icon, .main-nav a:focus-visible .icon { color: inherit; }

/* ---------- Títulos e texto ---------- */

.section-title {
  margin: 0 0 1.75rem;
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: .005em;
  text-transform: uppercase;
}
.section-title--orange { color: var(--orange); }
.section-title--blue { color: var(--blue); }
.section-title--center { text-align: center; }

.prose p { margin: 0 0 1.35em; }
.prose p:last-child { margin-bottom: 0; }
.prose strong { font-weight: 800; }

/* ---------- Apresentação (home) ---------- */

.intro {
  position: relative;
  overflow: hidden;
  background: var(--navy);
  color: var(--white);
}
.intro__content { position: relative; z-index: 1; padding: 2.125rem 0 3.25rem; }
.intro__content .section-title { max-width: 32.5rem; font-size: 2.375rem; }
.intro__text { max-width: 36.875rem; font-size: 16px; }
.intro__illustration {
  position: absolute;
  z-index: 0;
  right: -7.625rem;
  bottom: -1.4375rem;
  width: 41.0625rem;
  max-width: none;
  pointer-events: none;
}

/* ---------- Mosaico justificado ---------- */

.mosaic-section { background: var(--white); }
.page-home .mosaic-section { background: var(--navy); }
.mosaic {
  display: flex;
  flex-wrap: wrap;
  margin: 0;
  padding: 0;
  list-style: none;
}
.mosaic::after { content: ""; flex-grow: 999999; }
.mosaic__item {
  position: relative;
  flex-grow: calc(var(--r) * 100);
  flex-basis: calc(var(--r) * var(--row));
  overflow: hidden;
  background: #1b1a45;
}
.mosaic__item::before { content: ""; display: block; padding-bottom: calc(100% / var(--r)); }
.mosaic__item a { position: absolute; inset: 0; display: block; }
.mosaic__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease, filter .25s ease; }
.mosaic__item a:hover img,
.mosaic__item a:focus-visible img { transform: scale(1.04); }
.mosaic__item a:focus-visible { outline: 0.25rem solid var(--orange); outline-offset: -4px; z-index: 1; }
.mosaic__item.is-current a::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 0.3125rem solid var(--orange);
  pointer-events: none;
}
.mosaic__item.is-hidden { display: none; }
.mosaic.is-justified { display: block; font-size: 0; line-height: 0; }
.mosaic.is-justified::after { content: none; }
.mosaic.is-justified .mosaic__item { display: inline-block; vertical-align: top; }
.mosaic.is-justified .mosaic__item::before { content: none; }
.mosaic.is-justified .mosaic__item.is-hidden,
.mosaic.is-justified .mosaic__item.is-dropped { display: none; }
.mosaic-more { display: flex; justify-content: center; padding: 2rem var(--gutter) 2.5rem; background: var(--white); }

/* ---------- Caminho da Fé ---------- */

.route {
  display: grid;
  grid-template-columns: minmax(0, 691fr) minmax(0, 749fr);
  background: var(--navy);
  color: var(--white);
}
.route__copy {
  padding: 2.75rem 2rem 2.125rem max(var(--gutter), calc((100vw - var(--container)) / 2));
}
.route__copy .section-title { margin-bottom: 1.875rem; }
.route__text { max-width: 24rem; font-size: 16px; }
.route__hint {
  max-width: 25.5rem;
  margin: 2.25rem 0 0;
  padding-bottom: 0.75rem;
  border-bottom: 0.125rem solid var(--orange);
  color: var(--orange);
  font-size: 16px;
}
.day-list { max-width: 24.6875rem; margin: 0.625rem 0 0; padding: 0; list-style: none; }
.day-list li { border-bottom: 0.0625rem solid rgba(229, 141, 33, .7); }
.day-list button {
  display: grid;
  width: calc(100% + 1.5rem);
  min-height: 3.75rem;
  margin: 0 -0.75rem;
  padding: 0.375rem 0.75rem;
  grid-template-columns: 3.875rem 1fr 2.125rem 1fr;
  align-items: center;
  border: 0;
  border-radius: var(--radius);
  background: transparent;
  color: var(--white);
  text-align: center;
  cursor: pointer;
  font-size: 1.25rem;
  line-height: 1.05;
}
.day-list button .day-list__day { color: var(--orange); font-size: 1.875rem; font-weight: 700; text-align: left; }
.day-list button .icon { font-size: 1.625rem; color: var(--orange); justify-self: center; }
.day-list button:hover { background: rgba(255, 255, 255, .06); }
.day-list button[aria-pressed="true"] { background: var(--orange); color: var(--navy); font-weight: 700; }
.day-list button[aria-pressed="true"] .day-list__day,
.day-list button[aria-pressed="true"] .icon { color: var(--navy); }
.day-list li:has(button[aria-pressed="true"]) { border-bottom-color: transparent; }

.route__map { position: relative; min-height: 48.75rem; background: var(--green); }
/* Mapa: mesmo comportamento e aparência do mapa da Romaria 2026 */
.route-map,
.route-map.leaflet-container { position: absolute; inset: 0; z-index: 1; background: #dcd8cc; font-family: var(--font); }
.route-map .leaflet-tile-pane { filter: saturate(.64) contrast(1.04); }
.route-map .leaflet-control-zoom a { color: #101010; font-family: var(--font); }
.route-map .leaflet-control-attribution { font-family: var(--font); font-size: 10px; }
.route-map__loading { position: absolute; z-index: 650; inset: 0; display: grid; margin: 0; place-items: center; background: #e7e4db; color: #181816; font-weight: 700; }
.map-label {
  position: absolute;
  z-index: 500;
  top: 20px;
  left: 20px;
  max-width: calc(100% - 105px);
  overflow: hidden;
  padding: 10px 13px;
  background: #101010;
  color: #f4a52c;
  font-family: var(--font);
  font-size: 10.5px;
  font-weight: 900;
  letter-spacing: .1em;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.route-map__reset {
  position: absolute;
  z-index: 500;
  top: 66px;
  left: 20px;
  min-height: 42px;
  padding: 0 14px;
  border: 2px solid #101010;
  background: #f5f1e8;
  color: #101010;
  cursor: pointer;
  font-family: var(--font);
  font-size: 10.5px;
  font-weight: 900;
  letter-spacing: .06em;
  text-transform: uppercase;
  box-shadow: 0 6px 22px rgba(0, 0, 0, .18);
}
.route-map__reset:hover { background: #f4a52c; }
.route-marker-shell { border: 0; background: transparent; }
.route-marker {
  display: grid;
  width: 48px;
  height: 48px;
  border: 4px solid #f5f1e8;
  border-radius: 50%;
  place-items: center;
  background: #101010;
  color: #f4a52c;
  font-family: var(--font-heading);
  font-size: 18px;
  box-shadow: 0 8px 22px rgba(0, 0, 0, .28);
  transition: transform 160ms ease, background 160ms ease, color 160ms ease;
}
.route-marker.is-active { background: #244cff; color: #fff; transform: scale(1.12); }
.route-map .leaflet-tooltip { border: 0; border-radius: 0; background: #101010; color: #f5f1e8; font-family: var(--font); font-size: 11.5px; font-weight: 900; box-shadow: 0 7px 22px rgba(0, 0, 0, .22); }
.route-map .leaflet-tooltip-top::before { border-top-color: #101010; }

.weather-card {
  position: absolute;
  z-index: 600;
  right: max(1rem, calc(100% - 37.375rem - 1rem));
  bottom: 1.625rem;
  left: 1rem;
  max-width: 37.375rem;
  padding: 1.625rem 1.5rem 1.125rem;
  border-radius: 1rem;
  background: var(--orange);
  color: var(--navy);
  box-shadow: 0 0.5rem 1.125rem rgba(3, 2, 46, .22);
}
.weather-card__grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1.05fr;
  gap: 1rem 1.25rem;
}
.weather-card dt { font-size: 16px; text-transform: uppercase; }
.weather-card dd { display: flex; margin: 0.375rem 0 0; align-items: center; gap: 0.625rem; color: var(--white); font-size: 1.5625rem; line-height: 1; }
.weather-card dd .icon { color: var(--navy); font-size: 1.875rem; }
.weather-card__distance dd { font-size: 3.375rem; font-weight: 800; }
.weather-card__total dd { font-size: 1.5625rem; }
.weather-card__total dt { visibility: hidden; height: 0; }
.weather-card__note { margin: 0.375rem 0 0; font-size: 16px; text-align: right; color: var(--navy); }
.weather-card__state { margin: 0; font-size: 16px; }

/* ---------- Diário da estrada ---------- */

.diary { padding: 3.125rem 0 2.5rem; }
.diary__intro { max-width: 40rem; margin: -6px 0 2.25rem; font-size: 16px; }
.diary-tabs {
  display: flex;
  margin: 0 0 2.5rem;
  padding: 0;
  justify-content: space-between;
  gap: 0.375rem;
  list-style: none;
}
.diary-tabs button {
  min-width: 6.25rem;
  min-height: 2.375rem;
  padding: 0.125rem 0.75rem;
  border: 0;
  border-radius: var(--radius);
  background: transparent;
  color: var(--blue);
  font-size: 1.875rem;
  line-height: 1;
  cursor: pointer;
}
.diary-tabs button:hover { background: rgba(0, 22, 175, .07); }
.diary-tabs button[aria-selected="true"] { background: var(--orange); color: var(--white); font-weight: 700; }
.diary-entry__meta {
  display: flex;
  flex-wrap: wrap;
  margin: 0 0 1.375rem;
  padding: 0;
  justify-content: space-between;
  gap: 1rem;
  color: var(--blue);
  font-size: 16px;
  text-transform: uppercase;
  list-style: none;
}
.diary-entry h3 { margin: 0 0 1.5rem; font-size: 1.875rem; font-weight: 700; line-height: 1.1; }
.diary-entry__text { font-size: 16px; }
.diary-entry__text p { margin: 0 0 1.3em; }
.diary-photo { margin: 2.125rem 0 0; }
.diary-photo__frame { position: relative; width: 100%; height: min(40rem, 100vw); margin: 0 auto; }
.diary-photo__frame img { width: 100%; height: 100%; object-fit: contain; }
.diary-photo__controls {
  display: flex;
  margin-top: 1rem;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.diary-photo__nav { display: flex; align-items: center; gap: 0.75rem; color: var(--blue); font-size: 16px; }
.icon-button {
  display: inline-grid;
  width: 2.25rem;
  height: 2.25rem;
  padding: 0;
  place-items: center;
  border: 0;
  background: transparent;
  color: var(--blue);
  cursor: pointer;
}
.icon-button .icon { font-size: 2.125rem; }
.icon-button:hover { color: var(--orange); }
.diary-source {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  color: var(--navy);
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
}
.diary-source .icon { font-size: 1.25rem; }
.diary-source:hover { color: var(--blue); }
.diary-empty { padding: 1.875rem 0; color: var(--muted); }

/* ---------- Formulário de contribuição ---------- */

.contribute-section { padding: 3.25rem 0 3.375rem; background: var(--navy); color: var(--white); text-align: center; }
.contribute-section h2 { margin: 0 0 1.875rem; color: var(--orange); font-size: 2.5rem; font-weight: 700; line-height: 1.05; }
.contribute-section > .container > p { margin: 0 0 1.625rem; font-size: 16px; }
.contribute-form { margin-top: 2.25rem; text-align: left; }
.form-grid {
  display: grid;
  grid-template-columns: 12rem minmax(0, 14.5rem) minmax(0, 21.25rem);
  gap: 1.625rem 1.5rem;
}
.form-grid .field--name { grid-column: 1 / 3; }
.form-grid .field--email { grid-column: 3; }
.form-grid .field--phone { grid-column: 1; }
.form-grid .field--message { grid-column: 2 / 4; }
.field { display: grid; gap: 0.75rem; color: var(--orange); font-size: 16px; text-transform: uppercase; }
.field input,
.field textarea {
  width: 100%;
  min-height: 3.875rem;
  padding: 0.875rem 1.375rem;
  border: 0.125rem solid transparent;
  border-radius: var(--radius);
  background: var(--white);
  color: var(--navy);
  font-size: 16px;
  font-weight: 600;
  text-transform: none;
}
.field textarea { min-height: 8.75rem; resize: vertical; }
.field input::placeholder,
.field textarea::placeholder { color: #2f4b7c; opacity: .85; }
.field input:focus,
.field textarea:focus { border-color: var(--orange); outline: none; }
.check {
  display: flex;
  margin: 1.375rem 0 0;
  align-items: flex-start;
  gap: 0.75rem;
  color: var(--orange);
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
}
.check input { width: 1.5rem; height: 1.5rem; margin: 0; flex: 0 0 auto; accent-color: var(--orange); }
.form-privacy { margin: 0.625rem 0 0 2.25rem; color: rgba(255, 255, 255, .72); font-size: 16px; }
.contribute-form .button { display: flex; margin: 1.625rem auto 0; }
.form-status { margin: 1.125rem 0 0; text-align: center; font-size: 16px; }
.form-status.is-error { color: #ffb3a7; }
.form-status.is-success { color: var(--green); }
.hp-field { position: absolute; left: -9999px; width: 0.0625rem; height: 0.0625rem; overflow: hidden; }

/* ---------- Rodapé ---------- */

.site-footer__brand { position: relative; overflow: hidden; background: var(--navy-2); color: var(--white); }
.site-footer__inner {
  position: relative;
  z-index: 1;
  display: flex;
  min-height: 14.5rem;
  flex-direction: column;
  justify-content: center;
  gap: 1.125rem;
}
.site-footer__logo { display: grid; gap: 0.375rem; color: var(--orange); text-decoration: none; font-size: 16px; }
.site-footer__logo img { width: 20.25rem; }
.site-footer__instagram { display: inline-flex; width: max-content; align-items: center; gap: 0.5rem; color: var(--white); font-size: 16px; text-decoration: none; }
.site-footer__instagram .icon { font-size: 1.375rem; color: var(--orange); }
.site-footer__instagram:hover span { text-decoration: underline; }
.site-footer__clovis {
  position: absolute;
  right: -3.8125rem;
  bottom: -0.75rem;
  width: 31.25rem;
  max-width: none;
  pointer-events: none;
}
.site-footer__logos { background: var(--white); padding: 0.875rem 0 0.625rem; }
.site-footer__logos-inner img { width: 32.8125rem; height: auto; }
.site-credit {
  margin: 0.25rem 0 0;
  padding: 0 0.875rem;
  text-align: right;
  color: #4b4b4b;
  font-family: var(--font);
  font-size: 0.75rem;
  font-weight: 700;
}
.site-credit a { color: #8b5a1b; text-decoration: none; margin-left: 0.375rem; }
.site-credit a:hover { text-decoration: underline; }

/* ---------- Destaques (carrossel) ---------- */

.highlights { padding: 1.875rem 0 2.125rem; background: var(--white); }
.highlights .section-title { margin-bottom: 1.875rem; font-size: 2.375rem; }
.carousel {
  position: relative;
  width: min(65rem, 100%);
  margin: 0 auto;
  padding: 0 4.375rem;
}
.carousel__viewport { overflow: hidden; }
.carousel__track {
  display: flex;
  margin: 0;
  padding: 0;
  gap: 0.75rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  list-style: none;
}
.carousel__track::-webkit-scrollbar { display: none; }
.carousel__item { flex: 0 0 calc((100% - 1.5rem) / 3); scroll-snap-align: start; }
.collection-card {
  position: relative;
  display: grid;
  aspect-ratio: 289 / 218;
  overflow: hidden;
  place-items: center;
  color: var(--white);
  text-decoration: none;
}
.collection-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.collection-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(3, 2, 46, .12);
  transition: background-color .2s ease;
}
.collection-card span {
  position: relative;
  z-index: 1;
  padding: 0 0.75rem;
  font-size: 2.375rem;
  font-weight: 400;
  line-height: 1;
  text-align: center;
  text-transform: uppercase;
  text-shadow: 0 0.0625rem 0.375rem rgba(0, 0, 0, .55);
  transition: font-weight .2s ease;
}
.collection-card:hover::after,
.collection-card:focus-visible::after,
.collection-card.is-current::after { background: rgba(0, 22, 175, .6); }
.collection-card:hover span,
.collection-card:focus-visible span,
.collection-card.is-current span { font-weight: 800; }
.carousel__arrow {
  position: absolute;
  top: calc(50% - 1.375rem);
  display: grid;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  place-items: center;
  border: 0;
  background: transparent;
  color: var(--blue);
  cursor: pointer;
  transform: translateY(-50%);
}
.carousel__arrow .icon { font-size: 2.125rem; }
.carousel__arrow:hover { color: var(--orange); }
.carousel__arrow[disabled] { opacity: .3; cursor: default; }
.carousel__arrow--prev { left: 0.75rem; }
.carousel__arrow--next { right: 0.75rem; }
.carousel__dots { display: flex; margin-top: 1.375rem; justify-content: center; gap: 1.375rem; }
.carousel__dots button {
  width: 0.75rem;
  height: 0.75rem;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #b98a52;
  cursor: pointer;
}
.carousel__dots button[aria-current="true"] { background: var(--blue); }

/* ---------- Foto em destaque (página da foto) ---------- */

.photo-view { padding: 0 0 1.25rem; background: var(--white); scroll-margin-top: 0; }
.photo-view__stage { --photo-height: min(82vh, 40rem); position: relative; width: min(65rem, 100%); margin: 0 auto; padding: 0 4.375rem; }
.photo-view__figure { margin: 0; }
.photo-view__image { display: flex; height: var(--photo-height); align-items: center; justify-content: center; }
.photo-view__image img { width: 100%; height: 100%; object-fit: contain; animation: photo-in .25s ease; }
.photo-view.is-loading .photo-view__image img { opacity: .55; transition: opacity .15s ease; }
@keyframes photo-in { from { opacity: 0; } to { opacity: 1; } }
.photo-view__arrow {
  position: absolute;
  top: calc(var(--photo-height) * 0.5);
  display: grid;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  place-items: center;
  color: var(--blue);
  text-decoration: none;
  transform: translateY(-50%);
}
.photo-view__arrow .icon { font-size: 2.125rem; }
.photo-view__arrow:hover { color: var(--orange); }
.photo-view__arrow--prev { left: 0.75rem; }
.photo-view__arrow--next { right: 0.75rem; }
.photo-view__caption {
  display: flex;
  margin: 0 3.125rem;
  padding: 1.625rem 0 1.75rem;
  justify-content: space-between;
  gap: 1.5rem;
  border-bottom: 0.125rem solid var(--orange-soft);
}
.photo-view__caption h1,
.photo-view__caption h2 { margin: 0 0 0.375rem; font-size: 1.375rem; font-weight: 800; line-height: 1.15; }
.photo-view__caption p { margin: 0; font-size: 16px; }
.photo-view__owner { flex: 0 1 auto; text-align: right; }
.photo-view__owner p + p { margin-top: 0.375rem; }
.photo-view__owner b { color: var(--blue-soft); font-weight: 700; }
.photo-view__counter { color: var(--muted); font-size: 16px; }

/* ---------- Página de acervo pessoal ---------- */

.collection-intro { padding: 0.625rem 0 2.125rem; background: var(--white); }
.collection-intro__text { max-width: 47.5rem; margin: 0 auto; text-align: center; font-size: 16px; }

.info-cta { padding: 2.5rem 0; background: var(--white); text-align: center; }
.info-cta p { margin: 0 0 1.125rem; color: var(--blue); font-size: 1.625rem; font-weight: 700; }

/* ---------- Modal ---------- */

.modal {
  width: min(40rem, calc(100% - 2rem));
  max-height: calc(100% - 2rem);
  padding: 0;
  border: 0;
  border-radius: 1rem;
  background: var(--navy);
  color: var(--white);
  box-shadow: 0 1.5rem 3.75rem rgba(0, 0, 0, .45);
}
.modal::backdrop { background: rgba(3, 2, 46, .72); }
.modal__body { padding: 2.125rem 2rem 1.875rem; }
.modal__close {
  position: absolute;
  top: 0.875rem;
  right: 0.875rem;
  display: grid;
  width: 2.5rem;
  height: 2.5rem;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--white);
  cursor: pointer;
}
.modal__close .icon { font-size: 1.75rem; }
.modal__close:hover { color: var(--orange); }
.modal h2 { margin: 0 2.75rem 0.75rem 0; color: var(--orange); font-size: 2.125rem; line-height: 1.05; }
.modal p { margin: 0 0 1.125rem; font-size: 16px; }
.modal .field { margin-top: 1rem; }
.modal .check { font-size: 16px; }
.modal .button { margin-top: 1.375rem; }

/* ---------- Sobre o acervo ---------- */

.about { padding: 2.875rem 0 3.5rem; background: var(--navy); color: var(--white); }
.about h1 { margin-bottom: 2.25rem; }
.about h2 { margin: 0 0 1.875rem; font-size: 2rem; font-weight: 700; line-height: 1.1; }
.about__block { padding-bottom: 2.375rem; margin-bottom: 2.375rem; border-bottom: 0.125rem solid var(--orange); }
.about__block:last-child { margin-bottom: 0; padding-bottom: 0; border-bottom: 0; }
.team-photos { display: grid; margin: 2.125rem 0 1.875rem; grid-template-columns: 300fr 170fr 300fr 170fr; gap: 0.625rem; }
.team-photos img { width: 100%; height: 14.125rem; object-fit: cover; }
.team-list { display: grid; margin: 0 auto; padding: 0; width: min(40rem, 100%); grid-template-columns: 1fr 1fr; gap: 1.625rem 2.5rem; list-style: none; text-align: center; }
.team-list strong { display: block; font-size: 16px; font-weight: 700; }
.team-list span { display: block; margin-top: 0.5rem; color: var(--orange); font-size: 16px; }
.funding { padding: 2.75rem 0 3.125rem; background: var(--white); }
.funding h2 { margin: 0 0 1.875rem; color: var(--blue); font-size: 2.375rem; font-weight: 700; line-height: 1.05; }
.funding .prose { font-size: 16px; }
.funding-logos { margin-top: 2.875rem; }
.funding-logos img { width: 100%; height: auto; }
.film { padding: 2.875rem 0 3.75rem; background: var(--navy); color: var(--white); }
.film h2 { margin: 0 0 1.875rem; color: var(--orange); font-size: 2.5rem; font-weight: 700; line-height: 1.05; }
.film h3 { margin: 0 0 1.875rem; font-size: 2rem; font-weight: 700; line-height: 1.1; }
.film .prose { font-size: 16px; }
.film__cta { margin: 1.875rem 0 1.125rem; color: var(--orange); font-size: 16px; font-weight: 700; }

/* ---------- Página de apoio ---------- */

.support-hero { position: relative; overflow: hidden; background: var(--navy); color: var(--white); }
.support-hero__inner { display: grid; padding: 3rem 0 3.25rem; grid-template-columns: minmax(0, 1fr) minmax(0, 22.5rem); gap: 2.75rem; align-items: start; }
.support-hero h1 { margin: 0 0 1.375rem; color: var(--orange); font-size: 2.875rem; font-weight: 800; line-height: .98; text-transform: uppercase; }
.support-hero__lead { margin: 0 0 1rem; font-size: 16px; font-weight: 700; }
.support-hero__text { margin: 0 0 1.625rem; font-size: 16px; }
.campaign-card { padding: 1.5rem 1.375rem; border-radius: 1rem; background: var(--orange); color: var(--navy); box-shadow: 0 0.5rem 1.125rem rgba(0, 0, 0, .25); }
.campaign-metric span { display: block; font-size: 16px; text-transform: uppercase; }
.campaign-metric strong { display: block; margin-top: 0.25rem; color: var(--white); font-size: 2.125rem; line-height: 1; }
.support-section { padding: 3.25rem 0; }
.support-section--navy { background: var(--navy); color: var(--white); }
.support-section--navy .section-title { color: var(--orange); }
.support-section .prose { font-size: 16px; }
.cost-grid { display: grid; margin: 1.875rem 0 0; padding: 0; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.875rem; list-style: none; }
.cost-card { padding: 1.125rem 1rem; border: 0.125rem solid var(--orange); border-radius: 0.75rem; }
.cost-card span { display: block; color: var(--orange); font-size: 2rem; font-weight: 800; line-height: 1; }
.cost-card p { margin: 0.625rem 0 0; font-size: 16px; }
.director { display: grid; grid-template-columns: 16.25rem minmax(0, 1fr); gap: 2.25rem; align-items: start; }
.director img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.director__name { margin: 0 0 0.75rem; color: var(--blue); font-size: 1.625rem; font-weight: 800; }
.memory-wall { display: grid; margin-top: 0.625rem; gap: 0.75rem; }
.memory-wall img { width: 100%; }

/* Página de apoiadores (campanha encerrada) */
.support-hero__eyebrow { margin: 0 0 0.75rem; color: var(--orange-soft); font-size: 16px; font-weight: 700; text-transform: uppercase; }
.campaign-card--done { display: grid; gap: 1.125rem; }
.campaign-card__status { margin: 0; padding-bottom: 0.875rem; border-bottom: 1px solid rgba(3, 2, 46, .25); font-size: 16px; font-weight: 800; text-transform: uppercase; }
.campaign-card--done .campaign-metric strong { font-size: 2.75rem; }
.supporters-list { columns: 3 13rem; column-gap: 2.5rem; margin: 0; padding: 0; list-style: none; font-size: 16px; line-height: 1.5; }
.supporters-list li { break-inside: avoid; padding: 0.3125rem 0; border-bottom: 1px solid rgba(229, 141, 33, .35); }
.support-follow { text-align: center; }
.support-follow p { margin: 0 0 1.375rem; font-size: 16px; }
.support-follow .button .icon { font-size: 1.5rem; }

/* ---------- Responsivo ---------- */

@media (max-width: 1100px) {
  .route { grid-template-columns: 1fr; }
  .route__copy { padding: 2.5rem var(--gutter) 1.875rem; }
  .route__copy > * { max-width: var(--container); margin-left: auto; margin-right: auto; }
  .route__text, .route__hint, .day-list { max-width: none; }
  .route__map { min-height: 38.75rem; }
  .intro__illustration { width: 32.5rem; right: -150px; opacity: .35; }
}

@media (max-width: 900px) {
  .brand__tagline { font-size: 16px; }
  :root { --row: 11.25rem; }
  .main-nav__list { flex-wrap: wrap; justify-content: center; gap: 0.625rem 1.625rem; padding: 1.125rem 0; }
  .header-link span { display: none; }
  .header-link { margin-right: 0; padding: 0; width: 3rem; height: 3rem; justify-content: center; border: 0.125rem solid var(--blue); border-radius: 50%; }
  .header-actions { gap: 0.75rem; }
  .form-grid { grid-template-columns: 1fr 1fr; }
  .form-grid .field--name, .form-grid .field--email, .form-grid .field--phone, .form-grid .field--message { grid-column: auto; }
  .form-grid .field--message { grid-column: 1 / -1; }
  .diary-tabs { flex-wrap: wrap; justify-content: center; }
  .diary-tabs button { min-width: 5.25rem; font-size: 1.625rem; }
  .carousel__item { flex-basis: calc((100% - 0.75rem) / 2); }
  .support-hero__inner, .director { grid-template-columns: 1fr; }
  .cost-grid { grid-template-columns: 1fr 1fr; }
  .site-footer__clovis { width: 26.25rem; right: -170px; opacity: .55; }
}

@media (max-width: 640px) {
  :root { --gutter: 1rem; --row: 8.125rem; }
  body { font-size: 16px; }
  .site-header__inner { min-height: 6.5rem; }
  .brand { flex-direction: column; align-items: flex-start; gap: 0.375rem; }
  .brand img { width: 11.25rem; }
  .brand__tagline { align-self: auto; padding-bottom: 0; }
  .round-button, .header-link { width: 2.625rem; height: 2.625rem; }
  .round-button .icon { font-size: 1.375rem; }
  .main-nav__list { display: grid; grid-template-columns: 1fr 1fr; gap: 0.875rem 1rem; }
  .main-nav a { font-size: 1.25rem; }
  .intro__content .section-title { font-size: 2rem; }
  .intro__illustration { width: 22.5rem; right: -140px; bottom: -10px; opacity: .25; }
  .route__map { display: flex; min-height: 0; flex-direction: column; padding-bottom: 1rem; }
  .route-map, .route-map.leaflet-container { position: relative; inset: auto; height: 26.25rem; }
  .weather-card { position: relative; right: auto; bottom: auto; left: auto; margin: 0 0.75rem; padding: 1.125rem 1rem 0.875rem; }
  .weather-card__grid { grid-template-columns: 1fr 1fr; }
  .weather-card__distance { order: -2; }
  .weather-card__total { order: -1; align-self: end; }
  .weather-card dd { font-size: 1.375rem; }
  .weather-card .weather-card__distance dd { font-size: 2.75rem; }
  .day-list button { grid-template-columns: 3.25rem 1fr 1.5rem 1fr; font-size: 1.125rem; }
  .day-list button .day-list__day { font-size: 1.625rem; }
  .diary-entry__meta { flex-direction: column; gap: 0.25rem; font-size: 16px; }
  .diary-photo__controls { flex-direction: column; align-items: flex-start; }
  .form-grid { grid-template-columns: 1fr; }
  .carousel { padding: 0 2.875rem; }
  .carousel__arrow--prev { left: 0.125rem; }
  .carousel__arrow--next { right: 0.125rem; }
  .carousel__item { flex-basis: 100%; }
  .collection-card span { font-size: 2rem; }
  .photo-view__stage { padding: 0; }
  .photo-view__arrow { top: calc(var(--photo-height) + 1rem); transform: none; }
  .photo-view__arrow--prev { left: 1rem; }
  .photo-view__arrow--next { right: 1rem; }
  .photo-view__caption { margin: 0 1rem; padding-top: 4rem; flex-direction: column; gap: 0.875rem; }
  .photo-view__owner { text-align: left; }
  .team-photos { grid-template-columns: 1fr 1fr; }
  .team-photos img { height: 11.25rem; }
  .team-list { grid-template-columns: 1fr; }
  .cost-grid { grid-template-columns: 1fr; }
  .site-footer__logo img { width: 15rem; }
  .site-footer__logos-inner img { width: 100%; }
  .site-credit { text-align: center; }
  .site-footer__clovis { width: 21.25rem; right: -170px; bottom: -80px; opacity: .4; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .carousel__track { scroll-behavior: auto; }
}
.support-section--navy .director__name { color: var(--orange-soft); }
