/* Botões, cards, carrosséis, modal, PIX, redes sociais e animações. */

.back-to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  bottom: calc(24px + env(safe-area-inset-bottom, 0px));
  z-index: 40;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border: 1px solid rgba(2,39,75,.15);
  border-radius: 50%;
  background: var(--amarelo);
  color: var(--azul);
  box-shadow: 0 4px 18px rgba(1,12,24,.25);
  text-decoration: none;
}
.back-to-top[hidden] { display: none; }
.back-to-top:hover { background: var(--amarelo-hover); color: var(--azul); }
@media (max-width: 600px) {
  .back-to-top { right: 16px; bottom: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); width: 48px; height: 48px; }
}

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 28px; border-radius: 999px;
  font-weight: 700; text-decoration: none; border: 2px solid transparent;
  transition: background .2s, color .2s, transform .2s;
}

.btn:hover { transform: translateY(-1px); }

.btn-sm { min-height: 44px; padding: 0 20px; }

.btn-yellow { background: var(--amarelo); color: var(--azul); }

.btn-yellow:hover { background: var(--amarelo-hover); color: var(--azul); }

.btn-outline { border-color: var(--amarelo); color: var(--branco); }

.btn-outline:hover { background: var(--amarelo); color: var(--azul); }

.btn-navy { background: var(--azul); color: var(--branco); }

.btn-navy:hover { background: var(--azul-noite); color: var(--branco); }

.kicker {
  font-family: var(--f-titulo); font-weight: 600; font-size: 13px;
  letter-spacing: .3em; color: var(--ouro-escuro); margin-bottom: 12px;
  display: flex; align-items: center; gap: 14px;
}

.kicker-light { color: var(--gelo); font-family: var(--f-texto); font-weight: 500; }

.kicker-yellow { color: var(--amarelo); }

.kicker-muted { color: var(--ardosia); }

.kicker .line { width: 40px; height: 2px; background: var(--amarelo); }

.lead { font-size: 20px; line-height: 1.55; color: var(--gelo); max-width: 560px; }

.actions { display: flex; flex-wrap: wrap; gap: 14px; }

.quote { margin: 8px 0 0; padding: 20px 24px; background: var(--nevoa); border-radius: 14px; }

.quote p { font-family: var(--f-titulo); font-weight: 600; font-size: 20px; line-height: 1.4; color: var(--azul); }

.quote cite { display: block; margin-top: 8px; font-style: normal; font-size: 15px; color: var(--ardosia); }

.subtitle { font-family: var(--f-titulo); font-weight: 600; font-size: 20px; line-height: 1.35; color: var(--azul); }

.quote-long { padding: 28px 28px 24px; border-left: 4px solid var(--amarelo); }

.quote-long p { font-family: var(--f-texto); font-weight: 400; font-size: 17px; line-height: 1.65; color: var(--grafite); margin: 0; }

.quote-long p + p { margin-top: 12px; }

.quote-long cite { margin-top: 16px; font-weight: 700; color: var(--azul); }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; margin-bottom: 40px; }

.card { background: var(--branco); border-radius: var(--raio); padding: 28px; display: flex; flex-direction: column; gap: 10px; }

.card svg { width: 32px; height: 32px; fill: none; stroke: var(--azul); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.card p { color: var(--ardosia); }

.mv-card { background: var(--branco); border-radius: var(--raio-lg); padding: 32px 28px; box-shadow: 0 1px 3px rgba(2,39,75,.08); }

.mv-card h3 { margin-bottom: 12px; }

.mv-card p { margin: 0; line-height: 1.6; }

.gallery-carousel { position: relative; }

.gallery {
  display: grid; grid-auto-columns: 50%; grid-auto-flow: column; gap: 0;
  overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  scrollbar-width: none;
}

.gallery::-webkit-scrollbar { display: none; }

.gallery-slide { position: relative; min-width: 0; overflow: hidden; scroll-snap-align: start; background: var(--azul-noite); }

.gallery-image-button { display: block; width: 100%; padding: 0; border: 0; background: transparent; cursor: zoom-in; }

.gallery-image-button::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(1, 12, 24, .08) 25%, rgba(1, 12, 24, .78) 100%); pointer-events: none; }

.gallery-image-button:focus-visible { outline-offset: -5px; }

.gallery img { width: 100%; aspect-ratio: 2 / 1; object-fit: cover; object-position: center 40%; transition: transform .25s ease; }

.gallery-image-button:hover img, .gallery-image-button:focus-visible img { transform: scale(1.06); }

.gallery-arrow {
  position: absolute; top: 50%; z-index: 2; transform: translateY(-50%);
  display: grid; place-items: center; width: 60px; height: 60px; padding: 0; border: 1px solid rgba(2,39,75,.12); border-radius: 50%;
  background: var(--branco); color: var(--azul); box-shadow: 0 4px 18px rgba(1,12,24,.3);
  cursor: pointer; transition: background .2s, color .2s;
}

.gallery-arrow svg { width: 30px; height: 30px; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }

.gallery-arrow[data-gallery-direction="-1"] { left: 16px; }
.gallery-arrow[data-gallery-direction="1"] { right: 16px; }

.gallery-arrow:hover:not(:disabled) { background: var(--amarelo); }

.gallery-arrow:disabled { color: var(--ardosia); cursor: default; }

.gallery-lightbox {
  position: fixed; width: min(92vw, 1000px); max-width: none; max-height: 90vh; padding: 48px 0 0;
  border: 0; background: transparent;
}

.gallery-lightbox::backdrop { background: rgba(1, 12, 24, .88); }

.gallery-lightbox-image { width: auto; max-width: 100%; max-height: 82vh; margin: 0 auto; object-fit: contain; }

.gallery-lightbox-close {
  position: absolute; top: 8px; right: 12px; width: 40px; height: 40px; border: 0; border-radius: 50%;
  background: rgba(1, 12, 24, .65); color: var(--branco); font: 32px/1 var(--f-texto); cursor: pointer;
}

@media (max-width: 600px) {
  .gallery-arrow { width: 52px; height: 52px; }
  .gallery { grid-auto-columns: 100%; }
  .gallery img { aspect-ratio: 4 / 3; }
  .gallery-arrow[data-gallery-direction="-1"] { left: 8px; }
  .gallery-arrow[data-gallery-direction="1"] { right: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  .gallery, .gallery img { scroll-behavior: auto; transition: none; }
}

.support-card { background: var(--branco); border-radius: var(--raio); padding: 32px; display: flex; flex-direction: column; gap: 12px; }

.support-card h2, .support-card h3 { font-size: 26px; font-weight: 800; }

.support-card p { color: var(--ardosia); }

.support-card a { margin-top: auto; font-weight: 700; }

.support-card-dark { background: var(--azul); color: var(--branco); }

.support-card-dark h2, .support-card-dark h3 { color: var(--branco); }

.support-card-dark p { color: var(--azul-gelo); }

.support-card-dark p a { color: var(--amarelo); }

.pix { margin-top: auto; background: rgba(255,255,255,.08); border-radius: 10px; padding: 14px 16px; display: flex; flex-direction: column; gap: 4px; }

.pix span { font-size: 13px; color: var(--azul-gelo); }

.pix strong { color: var(--branco); }

.pix .pix-key { font-family: ui-monospace, monospace; font-size: 20px; color: var(--amarelo); }

.copy-btn {
  align-self: flex-start; margin-top: 6px; min-height: 44px; padding: 0 18px; border-radius: 999px;
  border: 2px solid var(--amarelo); background: transparent; color: var(--branco);
  font: 700 14px var(--f-texto); cursor: pointer;
}

.copy-btn:hover { background: var(--amarelo); color: var(--azul); }

.sponsors-carousel { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; }

.sponsors-grid {
  display: grid; grid-auto-columns: calc((100% - 32px) / 3); grid-auto-flow: column; gap: 16px;
  overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  scrollbar-width: none;
}

.sponsors-grid::-webkit-scrollbar { display: none; }

.sponsor-slide { min-width: 0; scroll-snap-align: start; }

.sponsors-arrow {
  display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%;
  background: var(--azul); color: var(--branco); cursor: pointer; transition: background .2s, opacity .2s;
}

.sponsors-arrow:hover:not(:disabled) { background: var(--azul-noite); }

.sponsors-arrow:disabled { opacity: .4; cursor: default; }

.sponsors-grid img { max-height: 64px; width: auto; margin: 0 auto; filter: grayscale(1); opacity: .85; transition: filter .2s, opacity .2s; }

.sponsors-grid a:hover img { filter: none; opacity: 1; }

.sponsor-card { margin: 0; border-radius: 12px; overflow: hidden; background: var(--branco); }

.sponsor-card img { display: block; width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; max-height: none; filter: none; opacity: 1; }

.sponsor-card figcaption { padding: 10px 12px; font-size: 14px; font-weight: 600; color: var(--azul); text-align: center; }

.sponsor-ph {
  min-height: 88px; border: 2px dashed var(--azul-gelo); border-radius: 12px;
  display: flex; align-items: center; justify-content: center; color: var(--ardosia); font-size: 14px;
}

@media (max-width: 600px) {
  .sponsors-grid { grid-auto-columns: 100%; }
}

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

.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }

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

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }

  .btn, .nav a::after { transition: none; }
}

.gallery-instagram {
  display: flex;
  align-items: center;
  gap: 14px;
  max-width: 100%;
  padding: 18px 20px;
  border: 1px solid var(--gelo);
  border-radius: 16px;
  background: var(--nevoa);
  color: var(--azul);
  text-decoration: none;
  transition: border-color .2s, background .2s, box-shadow .2s;
}

.gallery-instagram-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  border-radius: 14px;
  background: var(--azul);
  color: var(--amarelo);
}

.gallery-instagram-copy { display: flex; flex-direction: column; gap: 3px; min-width: 0; }

.gallery-instagram-eyebrow { color: var(--ouro-escuro); font-size: 10px; letter-spacing: .18em; }

.gallery-instagram-title { font-family: var(--f-titulo); font-size: 18px; line-height: 1.3; }

.gallery-instagram-profile { color: var(--ardosia); font-size: 12px; font-weight: 500; }

.gallery-instagram-arrow { flex-shrink: 0; font-size: 26px; line-height: 1; margin-left: 6px; color: var(--ouro-escuro); }

.gallery-instagram:hover { border-color: var(--ouro-escuro); background: #fff; box-shadow: 0 8px 24px rgba(2,39,75,.08); }

@media (max-width: 600px) {
  .gallery-instagram { width: 100%; padding: 16px; gap: 12px; }

  .gallery-instagram-icon { width: 40px; height: 40px; border-radius: 12px; }

  .gallery-instagram-title { font-size: 16px; }

  .gallery-instagram-profile { font-size: 11px; }

  .gallery-instagram-arrow { margin-left: auto; }
}

@media (prefers-reduced-motion: reduce) {
  .gallery-instagram { transition: none; }
}
