@charset "UTF-8";
:root {
  --blue: #0c4da1;
  --green: #52ae32;
  --ink: #1f2428;
  --muted: #4a535b;
  --paper: #f7f8f8;
  --serif: Georgia, "Times New Roman", serif;
  --sans: "Neo Sans Pro", "Arial", sans-serif;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.55;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  font: inherit;
}
main {
  flex: 1;
  display: flex;
  flex-direction: column;
}
.site-header {
  min-height: 86px;
  padding: 10px clamp(18px, 4vw, 64px);
  background: var(--blue);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  color: #fff;
}
.brand img {
  display: block;
  width: auto;
  height: 68px;
  max-width: 210px;
  object-fit: contain;
}
.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(18px, 3.6vw, 58px);
}
.site-nav a {
  font-weight: 700;
  font-size: clamp(14px, 1.15vw, 18px);
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.site-nav a:hover,
.site-nav a:focus-visible {
  color: #b9e79d;
}
.menu-toggle {
  display: none;
  color: #fff;
  border: 1px solid #ffffff77;
  border-radius: 99px;
  background: transparent;
  padding: 10px 16px;
}
.page-intro {
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(42px, 7vw, 92px) 24px 34px;
}
.page-intro h1 {
  margin: 0;
  color: var(--blue);
  font-size: clamp(34px, 5vw, 60px);
  line-height: 1.05;
}
.page-intro > p:last-child {
  max-width: 980px;
  color: var(--muted);
  font-size: clamp(16px, 1.4vw, 20px);
  line-height: 1.5;
}
.eyebrow {
  margin: 0 0 12px;
  color: var(--green);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.history-hero {
  position: relative;
  min-height: 0;
  flex: 1 0 auto;
  max-width: 1600px;
  margin: auto;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  align-items: center;
  overflow: hidden;
  padding: 68px clamp(36px, 7vw, 100px) clamp(36px, 7vw, 100px);
}
.history-hero:before {
  content: "";
  position: absolute;
  inset: 0 0 0 35%;
  background:
    linear-gradient(90deg, var(--paper), #f7f8f800 65%),
    url("./nossa-historia-bg.webp") center/cover no-repeat;
  opacity: 0.85;
}
.history-copy {
  position: relative;
  z-index: 1;
  max-width: 650px;
}
.history-wordmark {
  width: clamp(180px, 19vw, 270px);
  height: auto;
  margin-bottom: 30px;
}
.history-copy p {
  font-size: clamp(16px, 1.15vw, 18px);
  font-weight: 600;
}
.history-image {
  display: none;
}
.button {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
  padding: 14px 24px;
  border-radius: 999px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.button-blue {
  background: var(--blue);
  color: #fff;
}
.button-blue:hover {
  background: var(--green);
}
.photo-grid,
.video-grid {
  max-width: 1180px;
  margin: 0 auto;
  padding: 20px 24px 90px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 34px 24px;
}
.photo-grid figure {
  margin: 0;
}
.photo-open,
.video-open {
  position: relative;
  display: block;
  width: 100%;
  border: 0;
  padding: 0;
  background: #dce3e8;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
}
.photo-open img {
  display: block;
  width: 100%;
  aspect-ratio: 3/2;
  object-fit: cover;
  transition: transform 0.5s;
}
.photo-open:hover img,
.video-open:hover img {
  transform: scale(1.04);
}
.photo-grid figcaption {
  padding: 12px 8px;
  color: var(--ink);
  font-weight: 600;
}
.lightbox,
.video-dialog {
  width: min(92vw, 1000px);
  max-height: 90vh;
  border: 0;
  border-radius: 12px;
  padding: 20px;
  background: #0b1f3d;
  color: white;
}
.lightbox::backdrop,
.video-dialog::backdrop {
  background: #081a38e8;
  backdrop-filter: blur(5px);
}
.lightbox > img {
  display: block;
  max-width: 100%;
  max-height: 72vh;
  margin: auto;
  object-fit: contain;
}
.lightbox > p {
  text-align: center;
}
.dialog-close {
  display: block;
  margin: 0 0 12px auto;
  width: 42px;
  height: 42px;
  border: 1px solid #ffffff88;
  border-radius: 50%;
  background: transparent;
  color: #fff;
  font-size: 25px;
  cursor: pointer;
}
.video-card h2 {
  font-size: 20px;
  color: var(--blue);
}
.video-card p {
  color: var(--muted);
}
.video-open img {
  display: block;
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  transition: transform 0.5s;
}
.play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  padding-left: 3px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  font-size: 17px;
}
.video-pending {
  aspect-ratio: 16/9;
  display: grid;
  place-items: center;
  background: #000;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}
.timeline-hero {
  min-height: 58vh;
  padding: clamp(70px, 12vw, 160px) 8vw;
  background: linear-gradient(135deg, #0c4da1, #1678c4);
  color: white;
}
.timeline-hero h1 {
  max-width: 850px;
  font-family: var(--serif);
  font-size: clamp(48px, 8vw, 100px);
  line-height: 0.98;
  margin: 12px 0 24px;
}
.timeline-hero > p:not(.eyebrow) {
  max-width: 640px;
  font-size: clamp(18px, 2vw, 24px);
}
.timeline-hero .eyebrow {
  color: #b7e99a;
}
.button-light {
  background: #fff;
  color: var(--blue);
}
.timeline-section {
  max-width: 980px;
  margin: auto;
  padding: 72px 24px 100px;
}
.timeline-section h2 {
  font-family: var(--serif);
  font-size: clamp(36px, 5vw, 58px);
  font-weight: 400;
  color: var(--blue);
}
.timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 24px;
  padding: 22px 0 26px;
  border-top: 1px solid #cbd4d8;
}
.timeline-item > span {
  font-family: var(--serif);
  font-size: 32px;
  color: var(--green);
}
.timeline-item h3 {
  margin: 0;
  color: var(--blue);
  font-size: 22px;
}
.timeline-item p {
  margin: 8px 0;
  color: var(--muted);
}
.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 32px clamp(24px, 7vw, 110px);
  background: var(--blue);
  color: #fff;
}
.site-footer address {
  font-style: normal;
}
.site-footer p {
  margin: 0;
}
.site-footer a:hover {
  color: #b9e79d;
}
.social-links {
  display: flex;
  gap: 10px;
}
.social-links a {
  width: 38px;
  height: 38px;
  border: 1px solid #ffffff66;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  transition: background-color .2s, border-color .2s;
}
.social-links a:hover,
.social-links a:focus-visible {
  color: #fff;
  background: #ffffff26;
  border-color: #fff;
}
.social-links svg {
  display: block;
  width: 20px;
  height: 20px;
}
.footer-logo-link {
  display: block;
  line-height: 0;
}
.footer-logo {
  display: block;
  width: auto;
  height: 48px;
  max-width: 180px;
  object-fit: contain;
}
@media (max-width: 760px) {
  main {
  flex: 1;
  display: flex;
  flex-direction: column;
}
.site-header {
    min-height: 74px;
  }
  .brand img {
    height: 54px;
  }
  .menu-toggle {
    display: block;
  }
  .site-nav {
    display: none;
    position: absolute;
    z-index: 5;
    top: 74px;
    left: 0;
    right: 0;
    padding: 18px 24px 24px;
    background: var(--blue);
    flex-direction: column;
    align-items: flex-start;
  }
  .site-nav.is-open {
    display: flex;
  }
  .history-hero {
    min-height: auto;
    padding: 46px 24px 70px;
    display: block;
  }
  .history-hero:before {
    inset: 25% 0 0 0;
    background:
      linear-gradient(180deg, var(--paper), #f7f8f800 50%),
      url("./nossa-historia-bg.webp") center/cover no-repeat;
  }
  .history-copy p {
    font-size: 16px;
  }
  .photo-grid,
  .video-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px 14px;
    padding: 12px 16px 60px;
  }
  .page-intro {
    padding: 44px 20px 24px;
  }
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }
  .footer-logo-link {
    align-self: flex-start;
  }
  .timeline-item {
    grid-template-columns: 82px 1fr;
    gap: 12px;
  }
  .timeline-item > span {
    font-size: 26px;
  }
}
@media (max-width: 460px) {
  .photo-grid,
  .video-grid {
    grid-template-columns: 1fr;
  }
  .timeline-item {
    grid-template-columns: 1fr;
    gap: 2px;
  }
  .timeline-hero {
    min-height: 52vh;
  }
}
.youtube-frame {
  aspect-ratio: 16/9;
  overflow: hidden;
  border-radius: 8px;
  background: #000;
}
.youtube-frame iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}
.video-dialog {
  padding: 16px;
}
.video-message {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  margin: 0;
  padding: 24px;
  text-align: center;
  color: #fff;
}
.youtube-frame {
  position: relative;
}
.video-message[hidden] {
  display: none;
}
.video-dialog {
  width: min(92vw, 1100px);
  max-width: calc(100vw - 32px);
  max-height: calc(100vh - 32px);
  padding: 16px;
}
.video-dialog .youtube-frame {
  display: block;
  position: relative;
  width: 100%;
  height: auto;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: #000;
}
.video-dialog .youtube-frame iframe {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  min-width: 100%;
  min-height: 100%;
  border: 0;
  outline: 0;
}
/* Disposição das páginas de fotos e vídeos no desktop */
.archive-layout {
  width: 100%;
  max-width: none;
  min-height: 0;
  flex: 1 0 auto;
  margin: 0 auto;
  padding: 68px max(24px, calc((100vw - 1200px) / 2 + 24px)) 52px;
  display: grid;
  grid-template-columns: minmax(0, .34fr) minmax(0, .66fr);
  gap: 88px;
  align-items: start;
  background: url("./fundo-galeria-cheio.png") center / cover no-repeat;
}
/* No desktop o fundo acompanha a janela (e não a altura total da página),
   assim a composição — inclusive os arcos laterais — não é cortada quando há muitos itens. */
@media (min-width: 901px) and (hover: hover) {
  .archive-layout {
    background: #fff url("./fundo-galeria-cheio.png") center bottom / 100% auto no-repeat fixed;
  }
}
.archive-layout .page-intro { max-width: none; margin: 0; padding: 0; }
.archive-layout .page-intro h1 { font-size: clamp(38px, 4vw, 50px); line-height: 1.04; }
.archive-layout .page-intro > p:last-child { font-size: 17px; line-height: 1.48; }
.archive-layout .photo-grid,
.archive-layout .video-grid {
  width: 100%; max-width: none; margin: 0; padding: 0;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px 24px; align-content: center;
}
.archive-layout .photo-open img,
.archive-layout .video-open img { aspect-ratio: 3 / 2; border-radius: 12px; }
.archive-layout .photo-grid figcaption { padding: 10px 8px; font-size: 14px; line-height: 1.35; font-weight: 600; }
.archive-layout .video-card h2 { margin: 10px 8px 0; font-size: 14px; line-height: 1.35; }
@media (max-width: 900px) {
  .archive-layout { min-height: 0; padding: 48px 24px 64px; grid-template-columns: 1fr; gap: 32px; }
  .archive-layout .page-intro { max-width: 720px; }
}
@media (max-width: 620px) {
  .archive-layout { padding: 38px 18px 52px; }
  .archive-layout .photo-grid,
  .archive-layout .video-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 14px; }
}
@media (max-width: 460px) {
  .archive-layout .photo-grid,
  .archive-layout .video-grid { grid-template-columns: 1fr; }
}









/* Alinhamento do header ao início do conteúdo */
@media (min-width: 901px) {
  .site-header {
    padding-left: max(24px, calc((100vw - 1200px) / 2 + 24px));
  }
  .history-hero {
    width: 100%;
    max-width: none;
    margin: 0;
    padding-left: max(24px, calc((100vw - 1200px) / 2 + 24px));
  }
}
@media (max-width: 900px) {
  .site-header { padding-left: 24px; }
}
@media (max-width: 620px) {
  .site-header { padding-left: 18px; }
}


/* Efeito luminoso do menu ativo e do mouse over */
.site-nav a {
  position: relative;
  display: flex;
  height: 66px;
  align-items: center;
  color: #fff;
  transition: color .25s ease;
}
.site-nav a:hover,
.site-nav a:focus-visible,
.site-nav a.is-active { color: #fff; }
.site-nav a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 12px;
  width: 100%;
  height: 3px;
  opacity: 0;
  transform: translateX(-50%) scaleX(.6);
  transform-origin: center;
  background: linear-gradient(90deg, rgba(82,174,50,0), #52ae32 28%, #39c25a 50%, #2e8bd8 78%, rgba(46,139,216,0));
  box-shadow: 0 0 10px rgba(82,174,50,.55);
  transition: opacity .25s ease, transform .25s ease;
}
.site-nav a:hover::after,
.site-nav a:focus-visible::after,
.site-nav a.is-active::after {
  opacity: 1;
  transform: translateX(-50%) scaleX(1);
}
@media (max-width: 760px) {
  .site-nav a { height: auto; min-height: 40px; }
  .site-nav a::after { bottom: 2px; }
}




/* ---------- Aviso de cookies ---------- */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 14px 24px;
  background: #fff;
  color: #555;
  border-top: 1px solid #ddd;
  box-shadow: 0 -2px 8px #0000001f;
}
.cookie-banner[hidden] {
  display: none;
}
.cookie-banner__text {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
}
.cookie-banner__link {
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}
.cookie-banner__link:hover,
.cookie-banner__link:focus-visible {
  color: var(--blue);
}
.cookie-banner__btn {
  flex-shrink: 0;
  min-height: 34px;
  padding: 0 18px;
  border: 0;
  border-radius: 3px;
  background: #23862a;
  color: #fff;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: background-color .2s;
}
.cookie-banner__btn:hover,
.cookie-banner__btn:focus-visible {
  background: #1b6c21;
}

.btn-cookie {
  min-height: 44px;
  padding: 0 22px;
  border-radius: 999px;
  font: inherit;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s;
}
.btn-cookie--primary {
  border: 2px solid var(--blue);
  background: var(--blue);
  color: #fff;
}
.btn-cookie--primary:hover,
.btn-cookie--primary:focus-visible {
  background: #093d80;
  border-color: #093d80;
}
/* ---------- Modal Política / Termos ---------- */
.legal-dialog {
  width: min(92vw, 760px);
  max-height: 86vh;
  padding: 0;
  border: 0;
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  overflow: hidden;
}
.legal-dialog[open] {
  display: flex;
  flex-direction: column;
}
.legal-dialog::backdrop {
  background: #081a38cc;
  backdrop-filter: blur(4px);
}
.legal-dialog__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 24px;
  border-bottom: 1px solid #e3e6ea;
}
.legal-dialog__header h2 {
  margin: 0;
  font-size: 22px;
  color: var(--blue);
}
.legal-dialog__close {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border: 1px solid #d4d9df;
  border-radius: 50%;
  background: #fff;
  color: var(--ink);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}
.legal-dialog__close:hover,
.legal-dialog__close:focus-visible {
  border-color: var(--blue);
  color: var(--blue);
}
.legal-dialog__body {
  flex: 1;
  overflow-y: auto;
  padding: 20px 24px;
  line-height: 1.65;
}
.legal-dialog__body > :first-child {
  margin-top: 0;
}
.legal-dialog__footer {
  display: flex;
  justify-content: flex-end;
  padding: 14px 24px;
  border-top: 1px solid #e3e6ea;
}

@media (max-width: 760px) {
  .cookie-banner {
    flex-direction: column;
    gap: 10px;
    padding: 14px 16px;
    text-align: center;
  }
  .cookie-banner__btn {
    width: 100%;
    min-height: 40px;
  }
  .legal-dialog__header,
  .legal-dialog__body,
  .legal-dialog__footer {
    padding-left: 18px;
    padding-right: 18px;
  }
}
