/* Memória FADESP — paleta e tipografia do layout */
@font-face {
  font-family: "Retro Team";
  src: url("../retro-team.otf") format("opentype");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --orange: #d96932;
  --orange-dark: #c45a28;
  --green: #435a43;
  --green-dark: #2d4f35;
  --beige: #e9e4de;
  --beige-light: #f5f2ec;
  --white: #ffffff;
  --text: #1a1a1a;
  --font: "Montserrat", system-ui, sans-serif;
  --font-heading: "Retro Team", "Montserrat", system-ui, sans-serif;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--white);
  line-height: 1.65;
  font-size: 15px;
}

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

a {
  color: var(--green-dark);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.container {
  width: min(1120px, 100% - 48px);
  margin-inline: auto;
}

/* Modal de boas-vindas (home) — tela cheia, fundo escuro, painel branco */
.site-welcome {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: max(20px, env(safe-area-inset-top, 0px)) max(20px, env(safe-area-inset-right, 0px)) max(20px, env(safe-area-inset-bottom, 0px)) max(20px, env(safe-area-inset-left, 0px));
  box-sizing: border-box;
  background: rgba(0, 0, 0, 0.58);
  animation: site-welcome-fade-in 0.35s ease-out both;
  border: none;
  outline: none;
  box-shadow: none;
}

.site-welcome.is-closed {
  display: none !important;
  pointer-events: none;
}

@keyframes site-welcome-fade-in {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.site-welcome__panel {
  width: min(728px, 100%);
  max-height: min(88vh, 100%);
  overflow-y: auto;
  margin: 0;
  padding: clamp(24px, 5vw, 40px);
  /* background: var(--white); */
  color: var(--text);
  /* box-shadow: 0 28px 72px rgba(0, 0, 0, 0.38); */
  border: none;
  outline: none;
  border-radius: 0;
  box-shadow: none;
  text-align: center;
}

.site-welcome .hero__overlay {
  position: relative;
  top: auto;
  right: auto;
  left: auto;
  transform: none;
  width: min(735px, calc(92vw * 1.4));
  max-width: 100%;
  margin: 0 auto;
  animation: none;
  border: none;
  outline: none;
  box-shadow: none;
}

.site-welcome #hero-cta-close {
  display: inline-block;
  border: none;
  outline: none;
  box-shadow: none;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}

.site-welcome #hero-cta-close:hover {
  text-decoration: none;
}

.site-welcome #hero-cta-close .hero__overlay-img,
.site-welcome #hero-cta-close img {
  border: 0;
  outline: none;
  box-shadow: none;
  border-radius: 0;
}

.site-welcome #hero-cta-close:focus,
.site-welcome #hero-cta-close:focus-visible,
.site-welcome #hero-cta-close:active {
  outline: none;
  box-shadow: none;
}

.site-welcome__title {
  margin: 0 0 16px;
  font-family: var(--font-heading);
  font-size: clamp(1.35rem, 3vw, 1.85rem);
  font-weight: 800;
  letter-spacing: 0.06em;
  line-height: 1.2;
  color: var(--text);
}

.site-welcome__text {
  margin: 0 0 24px;
  font-size: clamp(0.92rem, 0.88rem + 0.2vw, 1.02rem);
  line-height: 1.65;
  text-align: left;
}

.site-welcome__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 16px;
}

.site-welcome__actions .btn {
  min-width: 170px;
  text-align: center;
}

.site-welcome__close {
  width: auto;
  border: 1px solid var(--text);
  background: var(--white);
  color: var(--text);
}

.site-welcome__close:hover {
  background: var(--beige-light);
}

body.site-welcome-open {
  overflow: hidden;
}

@media (prefers-reduced-motion: reduce) {
  .site-welcome {
    animation: none !important;
  }
}

/* Header — fundo branco; o hero com baner-fadesp vem logo abaixo */
@keyframes anim-header-in {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes anim-fade-in {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes anim-fade-in-up {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

.site-header {
  position: relative;
  z-index: 30;
  width: 100%;
  background: var(--white);
  --site-header-pad-y: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--site-header-pad-y) min(48px, 5vw);
  animation: anim-header-in 0.55s ease-out both;
}

.site-header__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  box-sizing: border-box;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.logo:hover {
  opacity: 0.92;
}

.logo:active {
  transform: scale(0.98);
}

.logo-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  background: var(--orange);
  color: var(--white);
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.02em;
  line-height: 1.1;
  text-align: center;
  flex-shrink: 0;
}

.logo--large .logo-mark {
  width: 72px;
  height: 72px;
  font-size: 15px;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.logo-line1 {
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: 0.04em;
}

.logo-line2 {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--orange);
  letter-spacing: 0.06em;
}

.logo--large .logo-line1 {
  font-size: 1.6rem;
}

.logo--large .logo-line2 {
  font-size: 1.1rem;
}

.main-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  list-style: none;
  margin: 0;
  padding: 0;
  justify-content: flex-end;
}

.main-nav a {
  font-family: var(--font-heading);
  font-size: calc(11px * 1.4);
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--text);
  text-decoration: none;
  padding: 6px 10px;
  border: 1px solid transparent;
  transition:
    border-color 0.25s ease,
    color 0.25s ease,
    transform 0.25s ease,
    background-color 0.25s ease;
}

.main-nav a:hover {
  color: var(--orange-dark);
  text-decoration: none;
  transform: translateY(-1px);
}

.main-nav a.is-active {
  color: var(--orange);
  border-color: transparent;
}

/* Desktop: moldura em U (referência header.png) — laterais até ao topo, sem borda superior, base junto ao texto */
@media (min-width: 901px) {
  .site-header {
    /* altura do bloco do link ativo (padding vertical + uma linha) para fechar o U na base do texto */
    --nav-active-link-h: calc(10px + 1lh);
  }

  .site-header__bar {
    align-items: stretch;
  }

  .site-header .logo {
    align-self: center;
  }

  .main-nav {
    display: flex;
    align-items: stretch;
  }

  .main-nav ul {
    align-items: stretch;
    height: 100%;
  }

  .main-nav li {
    display: flex;
    align-items: center;
    position: relative;
  }

  .main-nav li:has(a.is-active)::before {
    content: '';
    position: absolute;
    left: 2px;
    right: 2px;
    top: calc(-1 * var(--site-header-pad-y));
    height: calc(var(--site-header-pad-y) + (100% + var(--nav-active-link-h)) / 2);
    border-left: 1px solid var(--orange);
    border-right: 1px solid var(--orange);
    border-bottom: 1px solid var(--orange);
    border-top: none;
    pointer-events: none;
    z-index: 0;
    box-sizing: border-box;
  }

  .main-nav a {
    position: relative;
    z-index: 1;
  }

  .main-nav a.is-active {
    padding: 5px 6px;
  }

  .main-nav a.is-active:hover {
    transform: none;
    color: var(--orange-dark);
  }
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--text);
  background: var(--white);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  margin-inline: auto;
  transition: transform 0.3s ease, opacity 0.25s ease;
}

/* Hero — banner em largura total; altura natural da imagem (sem crop) */
.hero {
  position: relative;
  display: block;
  isolation: isolate;
  margin-top: 0;
  padding-top: 0;
}

.hero__bg {
  position: relative;
  z-index: 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: 100%;
  margin: 0;
  padding: 0;
  line-height: 0;
  background-color: var(--beige-light);
}

.hero__bg-img {
  display: block;
  width: 100%;
  height: auto;
  margin-top: -7%;
  order: 1;
  animation: anim-fade-in 0.85s ease-out 0.06s both;
}

/* Páginas internas: banner com metade da altura natural, overlay escuro e título branco */
.hero.hero--compact .hero__bg {
  max-height: calc(100vw * 1213 / 1920 / 2);
  overflow: hidden;
}

.hero.hero--compact .hero__bg-img {
  /* margin-top: 0; */
  width: 100%;
  height: 100%;
  min-height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero__scrim {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: rgba(0, 0, 0, 0.5);
  pointer-events: none;
}

.hero__page-title-wrap {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px min(24px, 5vw);
  pointer-events: none;
}

.hero__page-title {
  margin: 0;
  max-width: min(22ch, 92vw);
  font-family: var(--font-heading);
  font-size: clamp(1.15rem, 3.2vw + 0.5rem, 2.1rem);
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1.15;
  text-align: center;
  text-transform: uppercase;
  color: #ffffff;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.55);
}

/* Entre a fachada (hero__bg) e o menu (site-header): acima da foto, abaixo do menu */
.hero__border {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1;
  width: 100%;
  height: clamp(56px, 12vw, 120px);
  margin: 0;
  padding: 0;
  overflow: hidden;
  line-height: 0;
  pointer-events: none;
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.hero__border img {
  display: block;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  object-fit: cover;
  object-position: top center;
  flex-shrink: 0;
  align-self: flex-start;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.hero__overlay {
  position: absolute;
  z-index: 5;
  top: 50%;
  right: min(48px, 4vw);
  left: auto;
  transform: translateY(-50%);
  margin: 0;
  width: min(404px, 47vw);
  max-width: 100%;
  box-sizing: border-box;
  box-shadow: none;
  filter: none;
  animation: anim-fade-in 0.7s ease-out 0.22s both;
}

.hero__overlay-img {
  display: block;
  width: 100%;
  height: auto;
  box-shadow: none;
  filter: none;
}

.hero__overlay.is-hidden {
  display: none;
}

.hero__overlay-close {
  position: absolute;
  top: 8%;
  right: 8%;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: transparent;
  color: transparent;
  font-size: 0;
  line-height: 0;
  cursor: pointer;
  display: block;
  padding: 0;
  z-index: 2;
}

.hero__overlay-close:hover {
  background: rgba(0, 0, 0, 0.06);
}

.hero__overlay-close:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 2px;
}

/* Área clicável sobre o botão Formulário no PNG */
.hero__overlay-cta {
  position: absolute;
  bottom: 10%;
  left: 50%;
  transform: translateX(-50%);
  width: min(72%, 140px);
  height: 18%;
  min-height: 32px;
  z-index: 1;
  border-radius: 6px;
}

.hero__overlay-cta:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 4px;
}

.btn {
  display: inline-block;
  padding: 12px 28px;
  font-family: var(--font);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-align: center;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition:
    background 0.25s ease,
    transform 0.2s ease,
    box-shadow 0.25s ease;
}

.btn--primary {
  background: var(--orange);
  color: var(--white);
  width: 100%;
}

.btn--primary:hover {
  background: var(--orange-dark);
  text-decoration: none;
  transform: translateY(-1px);
}

/* Faixa decorativa logo abaixo da foto do hero; repeat só em X */
.hero__pattern {
  position: relative;
  z-index: 4;
  display: block;
  width: 100%;
  height: clamp(18px, 3.2vw, 36px);
  margin: 0;
  padding: 0;
  flex-shrink: 0;
  align-self: stretch;
  order: 2;
  line-height: 0;
  background-color: #ffffff;
  background-image: url("../faixa-fadesp.png");
  background-repeat: repeat-x;
  background-position: left center;
  background-size: auto 100%;
}

/* Sections */
.section {
  position: relative;
  padding: 72px 0;
}

.section--about {
  background: var(--white);
  padding-left: max(clamp(20px, 5vw, 40px), env(safe-area-inset-left, 0px));
  padding-right: max(clamp(20px, 5vw, 40px), env(safe-area-inset-right, 0px));
  margin-top: 32px;
  overflow-x: clip;
}

.section--director {
  padding-left: max(clamp(12px, 3.5vw, 24px), env(safe-area-inset-left, 0px));
  padding-right: max(0px, env(safe-area-inset-right, 0px));
  /* sem overflow-x: clip aqui — permite position:sticky na foto */
}

/* Layout mensagem do diretor: grid + coluna de accent com mesma altura do conteúdo */
.director-layout {
  display: flex;
  align-items: stretch;
  width: min(1520px, 100% - clamp(16px, 4vw, 32px));
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
  gap: clamp(16px, 3vw, 32px);
}

.section--director .director-layout .container.director-grid {
  flex: 1;
  min-width: 0;
  width: auto;
  margin-left: 0;
  margin-right: 0;
}

/* Coluna direita: verde e laranja 40px; bege estica até acompanhar a altura do texto */
.section--director .section__accent.section__accent--right {
  position: relative;
  left: auto;
  right: auto;
  top: auto;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: flex-start;
  gap: 16px;
  flex: 0 0 auto;
  align-self: stretch;
  background: none;
  width: 40px;
  min-height: 0;
}

.section--director .section__accent--right .section__accent-block {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}

.section--director .section__accent--right .section__accent-block--stretch {
  flex: 1 1 auto;
  min-height: 40px;
  height: auto;
  width: 40px;
  background: #dfd2ca;
}

.section__accent-block--beige {
  background: #dfd2ca;
}

/* Mesmo recuo horizontal que .section--director + mesma faixa útil que .director-layout */
.section--stats {
  background: var(--white);
  padding-left: max(clamp(20px, 5vw, 40px), env(safe-area-inset-left, 0px));
  padding-right: max(clamp(20px, 5vw, 40px), env(safe-area-inset-right, 0px));
}

.section--stats .container {
  /* ~20% mais estreito que a faixa útil padrão (80% de min(1520px, 100% − gutters)) */
  width: min(1216px, calc((100% - clamp(24px, 6vw, 56px)) * 0.8));
  margin-left: 0;
  margin-right: auto;
  max-width: 100%;
  padding-inline: clamp(16px, 3.5vw, 36px);
  box-sizing: border-box;
  text-align: left;
}

@media (max-width: 1200px) {
  .section--stats .container {
    width: 100%;
    max-width: 100%;
    margin-right: 0;
  }
}

.section--seals {
  background: var(--white);
  padding-left: max(clamp(20px, 5vw, 40px), env(safe-area-inset-left, 0px));
  padding-right: max(clamp(20px, 5vw, 40px), env(safe-area-inset-right, 0px));
}

.section--seals .container {
  width: min(1520px, 100% - clamp(24px, 6vw, 56px));
  margin-left: auto;
  margin-right: auto;
  max-width: 100%;
  box-sizing: border-box;
}

.seals__title {
  margin: 0 0 clamp(20px, 3vw, 28px);
  font-size: calc(1.4rem * 1.4);
  font-weight: 800;
  letter-spacing: 0.08em;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--orange);
  text-align: left;
  line-height: 1.2;
  color: var(--text);
}

.seals__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 3vw, 32px);
  align-items: stretch;
  justify-items: stretch;
}

.seals__item {
  display: grid;
  grid-template-rows: minmax(200px, 1fr) auto;
  align-content: stretch;
  justify-items: center;
  margin: 0;
  width: 100%;
  max-width: none;
  min-height: clamp(260px, 36vw, 400px);
  padding: clamp(16px, 3vw, 28px);
  background: var(--white);
  border: 2px solid var(--orange);
  border-radius: 4px;
  box-sizing: border-box;
  box-shadow: 0 2px 16px rgba(217, 105, 50, 0.08);
}

.seals__item img {
  grid-row: 1;
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: min(240px, 32vh);
  margin: 0;
  object-fit: contain;
  align-self: center;
  justify-self: center;
}

.seals__caption {
  grid-row: 2;
  width: 100%;
  margin: 14px 0 0;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: center;
  color: var(--green-dark);
}

@media (max-width: 720px) {
  .seals__grid {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .seals__item {
    max-width: 360px;
    width: 100%;
    min-height: clamp(300px, 42vw, 420px);
  }

  .seals__item img {
    max-height: min(300px, 40vh);
  }
}

.section--form {
  background: var(--beige);
  padding-top: 56px;
  padding-bottom: 80px;
  padding-left: max(clamp(20px, 5vw, 40px), env(safe-area-inset-left, 0px));
  padding-right: max(clamp(20px, 5vw, 40px), env(safe-area-inset-right, 0px));
}

.section__accent {
  position: absolute;
  left: 0;
  top: 72px;
}

.section__accent--left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  background: none;
  width: auto;
  height: auto;
}

.section__accent-block {
  display: block;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}

.section__accent-block--green {
  background: #475440;
}

.section__accent-block--orange {
  background: #dc6932;
}


.section__accent-block--tall {
  height: clamp(100px, 14vw, 168px);
  min-height: 100px;
  background-color: #DFD2CA;
}

/* Sobre: sem CSS Grid — blocos, margens e position:absolute no selo */
.about-grid {
  display: block;
}

.about-wrap {
  display: block;
  width: min(1520px, 100% - clamp(24px, 6vw, 56px));
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding-inline: clamp(16px, 3.5vw, 36px);
  box-sizing: border-box;
}

.about-wrap .about-grid__content {
  display: block;
  width: 100%;
}

/* Página História — texto longo, largura de leitura, sem selo lateral */
.section--about.page-historia {
  margin-top: 0;
}

.section--about.page-historia .about-wrap {
  width: min(42rem, 100% - clamp(24px, 5vw, 48px));
  margin-left: auto;
  margin-right: auto;
  padding-right: max(clamp(16px, 4vw, 32px), env(safe-area-inset-right, 0px));
}

@media (min-width: 901px) {
  .section--about.page-historia .about-wrap {
    padding-right: max(clamp(24px, 3vw, 48px), env(safe-area-inset-right, 0px));
  }
}

.page-historia__title {
  margin: 0 0 clamp(20px, 4vw, 28px);
  font-size: calc(1.35rem * 1.4);
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 12px 0;
  border-bottom: 2px solid var(--orange);
  text-align: left;
  line-height: 1.2;
}

.page-historia__article {
  text-align: justify;
}

.page-historia__article p {
  margin: 0 0 clamp(1em, 3vw, 1.35em);
  font-size: clamp(0.94rem, 0.88rem + 0.35vw, 1.06rem);
  line-height: 1.68;
}

.page-historia__article p:last-child {
  margin-bottom: 0;
}

/* Galeria — Fotos históricas */
.section--gallery {
  background: var(--white);
  padding-left: max(clamp(12px, 3.5vw, 24px), env(safe-area-inset-left, 0px));
  padding-right: max(0px, env(safe-area-inset-right, 0px));
  margin-top: 0;
  overflow-x: clip;
}

.gallery-page__title {
  margin: 0 0 12px;
  font-size: calc(1.4rem * 1.4);
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 12px 0;
  border-bottom: 2px solid var(--orange);
  text-align: left;
  line-height: 1.2;
}

.gallery-page__intro {
  margin: 0 0 clamp(24px, 4vw, 36px);
  max-width: 42rem;
  font-size: clamp(0.94rem, 0.88rem + 0.35vw, 1.02rem);
  line-height: 1.65;
  color: var(--text);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
  gap: clamp(18px, 3vw, 28px);
  list-style: none;
  margin: 0;
  padding: 0;
}

.gallery-grid__item {
  margin: 0;
  padding: 0;
}

/* Cartão: área de foto fixa 4:3; texto com título + descrição fora do botão */
.gallery-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  border: 1px solid rgba(26, 26, 26, 0.1);
  background: var(--beige-light);
  overflow: hidden;
  transition:
    box-shadow 0.28s ease,
    transform 0.28s ease;
}

.gallery-card:hover {
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.12);
  transform: translateY(-3px);
}

.gallery-card__zoom {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  border: none;
  background: #e0dcd4;
  cursor: zoom-in;
  text-align: left;
  font: inherit;
  color: inherit;
  flex-shrink: 0;
}

.gallery-card__zoom:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 2px;
  position: relative;
  z-index: 1;
}

.gallery-card__media {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #e0dcd4;
}

.gallery-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.35s ease;
}

.gallery-card:hover .gallery-card__media img {
  transform: scale(1.04);
}

.gallery-card__body {
  padding: 14px 16px 18px;
  border-top: 2px solid rgba(217, 105, 50, 0.35);
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.gallery-card__title {
  margin: 0;
  font-family: var(--font);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  line-height: 1.35;
  color: var(--text);
  text-transform: uppercase;
}

.gallery-card__desc {
  margin: 0;
  font-size: 0.84rem;
  line-height: 1.58;
  color: var(--text);
  font-weight: 500;
}

.gallery-dialog {
  width: min(96vw, 1080px);
  max-height: 92vh;
  padding: 0;
  border: none;
  background: var(--white);
  color: var(--text);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.4);
}

.gallery-dialog::backdrop {
  background: rgba(26, 26, 26, 0.75);
}

.gallery-dialog__box {
  position: relative;
  padding: clamp(12px, 3vw, 20px);
  padding-top: clamp(40px, 8vw, 52px);
}

.gallery-dialog__close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(26, 26, 26, 0.2);
  background: var(--white);
  color: var(--text);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    background 0.2s ease,
    border-color 0.2s ease;
}

.gallery-dialog__close:hover {
  background: var(--beige-light);
  border-color: var(--orange);
}

.gallery-dialog__close:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 2px;
}

.gallery-dialog__figure {
  margin: 0;
}

.gallery-dialog__img {
  display: block;
  width: 100%;
  max-height: min(72vh, 820px);
  height: auto;
  object-fit: contain;
  margin: 0 auto;
}

.gallery-dialog__caption {
  margin: 16px 0 0;
  padding: 0 clamp(8px, 2vw, 16px);
  text-align: center;
}

.gallery-dialog__title {
  display: block;
  margin: 0 0 8px;
  font-family: var(--font);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  line-height: 1.35;
  text-transform: uppercase;
  color: var(--text);
}

.gallery-dialog__desc {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.55;
  font-weight: 500;
  color: var(--text);
}

.gallery-dialog__desc:empty {
  display: none;
}

/* Página Downloads */
.section--downloads {
  background: var(--white);
  padding-left: max(clamp(12px, 3.5vw, 24px), env(safe-area-inset-left, 0px));
  padding-right: max(0px, env(safe-area-inset-right, 0px));
  margin-top: 0;
  overflow-x: clip;
}

.downloads-page__title {
  margin: 0 0 12px;
  font-size: calc(1.4rem * 1.4);
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 12px 0;
  border-bottom: 2px solid var(--orange);
  text-align: left;
  line-height: 1.2;
}

.downloads-page__intro {
  margin: 0 0 clamp(28px, 4vw, 40px);
  max-width: 42rem;
  font-size: clamp(0.94rem, 0.88rem + 0.35vw, 1.02rem);
  line-height: 1.65;
  color: var(--text);
}

.downloads-block {
  margin-bottom: clamp(36px, 5vw, 52px);
}

.downloads-block:last-child {
  margin-bottom: 0;
}

.downloads-block__heading {
  margin: 0 0 16px;
  font-family: var(--font-heading);
  font-size: calc(1.05rem * 1.35);
  font-weight: 800;
  letter-spacing: 0.06em;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--beige);
  color: var(--text);
}

.downloads-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.downloads-list li {
  margin: 0;
  padding: 0;
  border-bottom: 1px solid rgba(26, 26, 26, 0.08);
}

.downloads-list li:last-child {
  border-bottom: none;
}

.downloads-list a {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 14px 4px 14px 0;
  font-size: clamp(0.9rem, 0.85rem + 0.25vw, 1rem);
  font-weight: 600;
  line-height: 1.45;
  color: var(--green-dark);
  text-decoration: none;
}

.downloads-list a:hover {
  color: var(--orange-dark);
  text-decoration: underline;
}

.downloads-list a::before {
  content: "";
  flex-shrink: 0;
  width: 10px;
  height: 10px;
  margin-top: 0.35em;
  background: var(--orange);
  border-radius: 1px;
}

.downloads-logo-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(20px, 4vw, 40px);
  align-items: start;
}

.downloads-logo-col__title {
  margin: 0 0 14px;
  font-family: var(--font);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--green-dark);
}

@media (max-width: 900px) {
  .downloads-logo-grid {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 901px) {
  .about-wrap {
    padding-right: calc(min(600px, 42vw) + clamp(8px, 1.5vw, 20px));
  }

  @media (max-width: 1200px) {
    .about-grid__stamp {
      width: min(480px, 38vw);
    }

    .about-wrap {
      padding-right: calc(min(480px, 38vw) + clamp(12px, 2vw, 24px));
    }
  }
}

@media (max-width: 900px) {

  .section.section--about,
  .section.section--stats,
  .section.section--seals {
    padding-left: max(clamp(20px, 6vw, 36px), env(safe-area-inset-left, 0px));
    padding-right: max(clamp(20px, 6vw, 36px), env(safe-area-inset-right, 0px));
    padding-top: clamp(40px, 11vw, 72px);
    padding-bottom: clamp(40px, 11vw, 72px);
  }

  .section.section--director,
  .section.section--gallery,
  .section.section--downloads,
  .section.section--form {
    padding-left: max(clamp(0px, 3vw, 16px), env(safe-area-inset-left, 0px));
    padding-right: max(clamp(0px, 3vw, 16px), env(safe-area-inset-right, 0px));
    padding-top: clamp(40px, 11vw, 72px);
    padding-bottom: clamp(40px, 11vw, 72px);
  }

  .site-footer {
    padding-left: max(clamp(0px, 3vw, 16px), env(safe-area-inset-left, 0px));
    padding-right: max(clamp(0px, 3vw, 16px), env(safe-area-inset-right, 0px));
  }

  .about-wrap {
    width: auto;
    max-width: none;
    margin-left: 0;
    margin-right: 0;
    padding-left: max(clamp(4px, 1vw, 10px), env(safe-area-inset-left, 0px));
    padding-right: max(clamp(4px, 1vw, 10px), env(safe-area-inset-right, 0px));
  }

  .section--stats .container {
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
    padding-left: max(clamp(4px, 1vw, 10px), env(safe-area-inset-left, 0px));
    padding-right: max(clamp(4px, 1vw, 10px), env(safe-area-inset-right, 0px));
  }

  .section--director .director-layout,
  .section--gallery .container,
  .section--downloads .container,
  .section--form .container,
  .site-footer .container {
    width: auto;
    max-width: none;
    margin-left: 0;
    margin-right: 0;
    padding-left: max(clamp(12px, 4vw, 20px), env(safe-area-inset-left, 0px));
    padding-right: max(clamp(12px, 4vw, 20px), env(safe-area-inset-right, 0px));
  }

  .director-layout {
    flex-direction: column;
    gap: 20px;
  }

  .section--director .section__accent.section__accent--right {
    flex-direction: row;
    align-items: stretch;
    justify-content: flex-end;
    width: 100%;
    height: auto;
    align-self: flex-end;
  }

  .section--director .section__accent--right .section__accent-block--stretch {
    flex: 1 1 auto;
    width: auto;
    min-width: 40px;
    height: 40px;
    min-height: 40px;
  }
}

@media (max-width: 600px) {

  .about-grid__content,
  .director-grid__text {
    text-align: left;
  }
}

.about-grid__intro {
  padding-top: 8px;
}

.about-grid__content {
  text-align: justify;
  max-width: none;
}

.about-grid__content p {
  margin: 0 0 clamp(1em, 3vw, 1.35em);
  font-size: clamp(0.94rem, 0.88rem + 0.35vw, 1.06rem);
  line-height: 1.68;
}

.about-grid__content p:last-child {
  margin-bottom: 0;
}

.about-grid__stamp {
  position: absolute;
  top: clamp(56px, 12vw, 72px);
  right: 0;
  display: block;
  width: min(600px, min(42vw, 90%));
  max-width: 100%;
  margin: 0;
  padding: 0;
  text-align: right;
  pointer-events: none;
}

@keyframes about-stamp-slide-in {
  from {
    opacity: 0;
    transform: translate3d(-56px, 0, 0);
  }

  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

.about-grid__stamp img {
  width: 100%;
  max-width: none;
  height: auto;
  object-fit: contain;
  display: inline-block;
  vertical-align: top;
}

.js-animations .about-grid__stamp:not(.is-in-view) img {
  opacity: 0;
  transform: translate3d(-40px, 0, 0);
}

.about-grid__stamp.is-in-view img {
  animation: about-stamp-slide-in 0.9s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@media (max-width: 900px) {
  .about-grid__stamp {
    position: static;
    width: 100%;
    margin-top: clamp(24px, 6vw, 40px);
    padding-right: 0;
    text-align: right;
    pointer-events: auto;
  }

  .about-grid__stamp img {
    width: auto;
    max-width: min(320px, 85vw);
    margin-left: auto;
    margin-right: 0;
    display: block;
  }
}

.stamp-watermark {
  position: absolute;
  inset: -20px -40px 0 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.18;
  pointer-events: none;
  border: 3px dashed rgba(67, 90, 67, 0.35);
  border-radius: 4px;
  transform: rotate(-4deg);
}

.stamp-watermark__year {
  font-size: 4.5rem;
  font-weight: 800;
  color: var(--green);
  letter-spacing: 0.05em;
}

/* Director */
.director-grid {
  display: grid;
  grid-template-columns: minmax(240px, 320px) 1fr;
  gap: 48px 56px;
  align-items: start;
}

.director-grid__photo {
  position: sticky;
  top: clamp(1rem, 4vw, 2.5rem);
  align-self: start;
}

.director-grid__photo figure {
  margin: 0;
}

.director-grid__photo img {
  width: 100%;
  max-width: 320px;
  height: auto;
  object-fit: cover;
  border-radius: 2px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
  clip-path: polygon(0 8px, 3% 0, 7% 6px, 12% 0, 18% 8px, 100% 8px, 100% 100%, 0 100%);
}

.director-grid__caption {
  display: flex;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: 8px;
  margin-top: 12px;
  width: 100%;
  max-width: 320px;
}

.director-grid__swatch {
  display: block;
  box-sizing: border-box;
}

.director-grid__swatch--green,
.director-grid__swatch--orange {
  flex-shrink: 0;
}

.director-grid__swatch--green {
  width: 40px;
  height: 40px;
  background: #475440;
}

.director-grid__swatch--orange {
  width: 40px;
  height: 40px;
  background: #dc6932;
}

.director-grid__swatch--beige {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1 1 auto;
  min-width: 0;
  min-height: 40px;
  padding: 6px 10px;
  background: #dfd2ca;
  font-size: 0.65rem;
  font-weight: 600;
  line-height: 1.25;
  color: var(--text);
  text-align: center;
}

.director-grid__text h2 {
  margin: 0 0 8px;
  font-size: calc(1.15rem * 1.4);
  font-weight: 800;
  letter-spacing: 0.06em;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--beige);
}

.director-grid__text {
  text-align: justify;
}

.director-grid__lead {
  font-weight: 700;
  font-size: 1.05rem;
  margin: 0 0 clamp(12px, 3vw, 16px);
}

.director-grid__text p {
  margin: 0 0 clamp(1em, 3vw, 1.35em);
  font-size: clamp(0.94rem, 0.88rem + 0.35vw, 1.06rem);
  line-height: 1.68;
}

.director-grid__sign {
  margin-top: 1.5em;
  margin-bottom: 0 !important;
}

/* Stats */
.stats__title {
  margin: 0 0 28px;
  font-size: calc(1.4rem * 1.4);
  font-weight: 800;
  letter-spacing: 0.08em;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--orange);
  text-align: left;
}

.stats__grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0;
  width: 100%;
  max-width: 100%;
  font-family: var(--font-heading);
}

.stats__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 18px 12px;
  min-height: 0;
  border: none;
  border-right: 1px solid var(--orange);
}

.stats__item:last-child {
  border-right: none;
}

/* ≤1200px: 2 linhas × 3 colunas — só divisões entre cartões, sem linha extra sob o rótulo */
@media (max-width: 1200px) {
  .stats__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .stats__item {
    border-bottom: none;
  }

  .stats__item:nth-child(3n) {
    border-right: none;
  }

  .stats__item:nth-child(-n + 3) {
    border-bottom: 1px solid var(--orange);
  }

  .section--stats .stats__label {
    border-bottom: none;
    padding-bottom: 4px;
    margin-bottom: 6px;
  }
}

/* ≤640px: uma coluna (empilhado) — só linhas entre cartões, sem borda extra no interior */
@media (max-width: 640px) {
  .stats__grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .section--stats .stats__item {
    border: none;
    border-right: none;
    border-top: none;
    border-left: none;
    border-bottom: 1px solid var(--orange);
  }

  .section--stats .stats__item:last-child {
    border-bottom: none;
  }
}

.stats__label {
  display: block;
  width: 100%;
  font-size: clamp(18px, calc(0.55rem * 1.4 + 0.35vw * 1.4), 17px);
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1.35;
  padding-bottom: 8px;
  margin-bottom: 8px;
  border-bottom: 1px solid var(--orange);
  color: var(--text);
  box-sizing: border-box;
}

.stats__value {
  display: block;
  font-size: clamp(2.24rem, calc(1.15rem * 1.4 + 1.45vw * 1.4), 2.94rem);
  font-weight: 800;
  line-height: 1;
}

/* Form */
.form-block {
  max-width: 520px;
}

.form-block h2 {
  margin: 0 0 8px;
  font-size: 1.15rem;
  letter-spacing: 0.06em;
}

.form-block>p {
  margin: 0 0 24px;
  font-size: 0.95rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 600;
}

.contact-form input,
.contact-form textarea {
  font-family: var(--font);
  font-size: 1rem;
  padding: 10px 12px;
  border: 1px solid #ccc;
  border-radius: 2px;
}

.contact-form .btn {
  width: auto;
  align-self: flex-start;
  margin-top: 8px;
}

.memoria-form__intro {
  margin: 0 0 clamp(24px, 4vw, 36px);
  max-width: 42rem;
  font-size: clamp(0.94rem, 0.88rem + 0.35vw, 1.02rem);
  line-height: 1.65;
  color: var(--text);
}

.memoria-form__optional {
  font-weight: 500;
  font-size: 0.8em;
  color: #555;
}

.memoria-form__required {
  font-weight: 700;
  font-size: 0.8em;
  color: var(--orange-dark);
}

.memoria-form__hint {
  display: block;
  margin-top: 6px;
  font-size: 0.8rem;
  font-weight: 500;
  color: #555;
  line-height: 1.4;
}

.memoria-form input[type="file"] {
  padding: 8px 0;
  font-size: 0.9rem;
}

.memoria-form button[type="submit"]:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

/* Home — formulário memória (layout em grelha + zona de upload) */
.memoria-form--home {
  max-width: 720px;
  margin: 0 auto;
}

.memoria-form-home__title {
  margin: 0 0 clamp(12px, 2vw, 18px);
  font-family: var(--font-heading);
  font-size: calc(1.25rem * 1.35);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text);
  padding-bottom: 12px;
  border-bottom: 2px solid var(--orange);
  text-align: left;
  line-height: 1.2;
}

.memoria-form-home__intro {
  text-align: left;
}

.memoria-form-home__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(14px, 2.5vw, 20px);
  margin-bottom: 4px;
}

.memoria-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: left;
}

.memoria-field__label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--green-dark);
}

.memoria-field__control {
  width: 100%;
  margin: 0;
  padding: 12px 14px;
  font-family: var(--font);
  font-size: 0.95rem;
  line-height: 1.45;
  color: var(--text);
  background: var(--white);
  border: 1px solid #d4cfc7;
  border-left: 4px solid rgba(71, 84, 64, 0.35);
  border-radius: 2px;
  box-sizing: border-box;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.memoria-field__control::placeholder {
  color: #888;
}

.memoria-field__control:hover {
  border-color: rgba(217, 105, 50, 0.45);
}

.memoria-field__control:focus {
  outline: none;
  border-color: var(--orange);
  border-left-color: var(--green-dark);
  box-shadow: 0 0 0 2px rgba(217, 105, 50, 0.18);
}

.memoria-field__control--textarea {
  min-height: 120px;
  resize: vertical;
}

.memoria-field--full {
  margin-top: 4px;
}

.memoria-upload--home {
  margin: clamp(16px, 2.5vw, 22px) 0 8px;
}

.memoria-upload__legend {
  display: block;
  margin-bottom: 10px;
}

.memoria-upload__inner {
  position: relative;
  min-height: 152px;
  border-radius: 4px;
  overflow: hidden;
}

.memoria-upload__native {
  position: absolute;
  inset: 0;
  z-index: 3;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  opacity: 0;
  cursor: pointer;
  font-size: 0;
}

.memoria-upload__surface {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 152px;
  padding: clamp(20px, 4vw, 28px) 18px;
  text-align: center;
  pointer-events: none;
  background: linear-gradient(165deg, #fcfaf8 0%, #efe9e2 100%);
  border: 2px dashed rgba(217, 105, 50, 0.42);
  border-radius: 4px;
  transition:
    border-color 0.22s ease,
    border-style 0.22s ease,
    box-shadow 0.22s ease;
}

.memoria-upload__inner:focus-within .memoria-upload__surface {
  border-color: var(--orange);
  border-style: solid;
  box-shadow: 0 10px 32px rgba(45, 79, 53, 0.08);
}

.memoria-upload__icon {
  display: block;
  width: 52px;
  height: 52px;
  margin-bottom: 12px;
  border-radius: 10px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.95), rgba(233, 228, 222, 0.65));
  border: 2px solid rgba(217, 105, 50, 0.35);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.memoria-upload__icon::after {
  content: "";
  display: block;
  width: 22px;
  height: 22px;
  margin: 14px auto 0;
  border-right: 3px solid var(--orange);
  border-bottom: 3px solid var(--orange);
  transform: rotate(45deg) translate(-2px, -4px);
  opacity: 0.85;
}

.memoria-upload__cta {
  display: block;
  margin: 0 0 8px;
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 700;
  color: var(--green-dark);
  line-height: 1.35;
}

.memoria-upload__hint {
  font-size: 0.82rem;
  font-weight: 500;
  color: #5a5a5a;
  line-height: 1.4;
}

.memoria-upload__list {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  text-align: left;
}

.memoria-upload__empty {
  margin: 0;
  padding: 10px 0 0;
  font-size: 0.88rem;
  font-style: italic;
  color: #777;
}

.memoria-upload__file-name {
  margin: 0;
  padding: 8px 0;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text);
  border-bottom: 1px solid rgba(26, 26, 26, 0.08);
}

.memoria-upload__file-name:last-child {
  border-bottom: none;
}

.memoria-form-home__actions {
  margin-top: clamp(12px, 2vw, 18px);
  padding-top: 4px;
}

.memoria-form-home__submit {
  min-width: min(100%, 220px);
}

@media (max-width: 640px) {
  .memoria-form-home__grid {
    grid-template-columns: 1fr;
  }
}

/* Modais — envio / resultado (formulário memória) */
.memoria-modal {
  width: min(92vw, 420px);
  max-width: 100%;
  padding: 0;
  border: none;
  border-radius: 4px;
  background: var(--white);
  color: var(--text);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.38);
}

.memoria-modal::backdrop {
  background: rgba(26, 26, 26, 0.72);
}

.memoria-modal__panel {
  padding: clamp(24px, 5vw, 32px);
  text-align: center;
}

.memoria-modal__panel--loading {
  padding-top: clamp(28px, 6vw, 36px);
}

.memoria-modal__loading-title {
  margin: 0 0 8px;
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--green-dark);
}

.memoria-modal__loading-hint {
  margin: 16px 0 0;
  font-size: 0.88rem;
  line-height: 1.5;
  color: #444;
}

.memoria-modal__spinner {
  width: 48px;
  height: 48px;
  margin: 20px auto 0;
  border: 3px solid rgba(217, 105, 50, 0.25);
  border-top-color: var(--orange);
  border-radius: 50%;
  animation: memoria-modal-spin 0.75s linear infinite;
}

@keyframes memoria-modal-spin {
  to {
    transform: rotate(360deg);
  }
}

.memoria-modal__heading {
  margin: 0 0 12px;
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  line-height: 1.25;
  color: var(--green-dark);
}

.memoria-modal--result.memoria-modal--error .memoria-modal__heading {
  color: var(--orange-dark);
}

.memoria-modal__text {
  margin: 0 0 22px;
  font-size: 0.95rem;
  line-height: 1.6;
  text-align: left;
  color: var(--text);
}

.memoria-modal__btn {
  min-width: 140px;
}

.memoria-modal--loading::backdrop {
  cursor: wait;
}

/* Footer — mesma faixa útil e recuo que .section--director / .about-wrap / .section--stats */
.site-footer {
  background: var(--beige);
  padding-top: 48px;
  padding-left: max(clamp(12px, 3.5vw, 24px), env(safe-area-inset-left, 0px));
  padding-right: max(0px, env(safe-area-inset-right, 0px));
}

.site-footer .container {
  width: min(1520px, 100% - clamp(16px, 4vw, 32px));
  margin-left: auto;
  margin-right: auto;
  max-width: 100%;
  box-sizing: border-box;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 32px;
  padding-bottom: 40px;
}

.footer-col {
  text-align: center;
}

.footer-col:not(:last-child) {
  border-right: 1px solid var(--orange);
  padding-right: 24px;
}

.footer-col h3 {
  margin: 0 0 10px;
  font-size: calc(11px * 1.4);
  font-weight: 800;
  letter-spacing: 0.06em;
}

.footer-col p {
  margin: 0;
  font-size: 12px;
  line-height: 1.6;
}

.footer-col a {
  transition: color 0.25s ease, opacity 0.25s ease;
}

.footer-swatches {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 12px;
}

.footer-col--infos {
  text-align: center;
}

.footer-col--infos .footer-swatches {
  justify-content: center;
}

.footer-col--infos .footer-swatches::before,
.footer-col--infos .footer-swatches::after {
  width: 40px;
  height: 40px;
}

.footer-swatches::before,
.footer-swatches::after {
  content: "";
  width: 72px;
  height: 72px;
}

.footer-swatches::before {
  background: var(--green);
}

.footer-swatches::after {
  background: var(--orange);
}

.footer-col--brand {
  display: flex;
  justify-content: center;
  align-items: center;
}

.footer-logo {
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer-logo__img {
  display: block;
  max-width: min(220px, 100%);
  width: auto;
  height: auto;
}

.site-footer__bar {
  height: 12px;
  background: #d4cfc7;
}

/* Backdrop do menu mobile (só visível ≤900px quando aberto) */
.nav-backdrop {
  display: none;
}

/* Mobile nav */
@media (max-width: 900px) {
  .site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 110;
  }

  body {
    padding-top: 96px;
  }

  .site-header__bar {
    align-items: center;
  }

  .main-nav li::before {
    content: none !important;
  }

  .section__accent--left {
    display: none;
  }

  .nav-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 25;
    background: rgba(26, 26, 26, 0.48);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition:
      opacity 0.28s ease,
      visibility 0.28s ease;
  }

  body.nav-open .nav-backdrop {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  body.nav-open {
    overflow: hidden;
  }

  html,
  body {
    overflow-x: hidden;
  }

  .main-nav {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(300px, 88vw);
    min-height: 100vh;
    min-height: 100dvh;
    max-height: 100vh;
    max-height: 100dvh;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    box-sizing: border-box;
    padding:
      max(80px, calc(env(safe-area-inset-top) + 56px)) 24px max(24px, env(safe-area-inset-bottom)) max(24px, env(safe-area-inset-right));
    background-color: #ffffff;
    background-color: var(--white);
    box-shadow: -8px 0 32px rgba(0, 0, 0, 0.18);
    transform: translateX(100%);
    transition: transform 0.28s ease;
    z-index: 100;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
  }

  .main-nav.is-open {
    transform: translateX(0);
  }

  .main-nav ul {
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    height: auto;
  }

  .main-nav li,
  .main-nav a {
    width: 100%;
  }

  .main-nav a {
    overflow-wrap: anywhere;
    word-break: normal;
  }

  .nav-toggle {
    display: flex;
    z-index: 101;
  }

  .site-header.nav-open .nav-toggle span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

  .site-header.nav-open .nav-toggle span:nth-child(2) {
    opacity: 0;
  }

  .site-header.nav-open .nav-toggle span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  .hero {
    min-height: 0;
  }

  .hero__overlay {
    top: 50%;
    left: 50%;
    right: auto;
    transform: translate(-50%, -50%);
    width: min(404px, 88vw);
    max-width: 100%;
  }

  .director-grid {
    grid-template-columns: 1fr;
  }

  .director-grid__photo {
    position: static;
  }

  .director-grid__photo img {
    max-width: none;
  }

  .stats__item {
    padding: 14px 8px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  /* Separador vertical só entre as duas colunas de cada linha */
  .footer-col {
    border-right: none;
    padding-right: 0;
  }

  .footer-col:nth-child(odd):not(:last-child) {
    border-right: 1px solid var(--orange);
    padding-right: 16px;
  }

  .footer-col--brand {
    grid-column: 1 / -1;
    justify-content: center;
  }

}

@media (max-width: 540px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid .footer-col:not(:last-child) {
    border-right: none;
    padding-right: 0;
    border-bottom: 1px solid var(--orange);
    padding-bottom: 24px;
    margin-bottom: 24px;
  }

  .logo-line1 {
    font-size: 1.1rem;
  }

  .logo-mark {
    width: 48px;
    height: 48px;
    font-size: 11px;
  }
}

/* Animações ao scroll + acessibilidade */
.js-animations .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 0.65s cubic-bezier(0.22, 0.61, 0.36, 1),
    transform 0.65s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.js-animations .reveal.reveal--visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {

  .site-header,
  .hero__bg-img,
  .hero__overlay {
    animation: none !important;
  }

  .nav-backdrop,
  .main-nav {
    transition: none !important;
  }

  .gallery-card,
  .gallery-card__media img {
    transition: none !important;
  }

  .gallery-card:hover {
    transform: none !important;
  }

  .gallery-card:hover .gallery-card__media img {
    transform: none !important;
  }

  .js-animations .reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  .logo,
  .main-nav a,
  .btn,
  .footer-col a,
  .nav-toggle span {
    transition: none !important;
  }

  .main-nav a:hover {
    transform: none !important;
  }

  .logo:active {
    transform: none !important;
  }

  .btn--primary:hover {
    transform: none !important;
  }

  .about-grid__stamp img {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
  }

  .memoria-modal__spinner {
    animation: none;
  }
}