* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg: #f4f9ff;
  --bg-soft: #edf5ff;
  --card: rgba(255, 255, 255, 0.82);
  --card-border: rgba(96, 165, 250, 0.18);
  --text: #1e3a5f;
  --muted: #6b85a6;
  --accent: #60a5fa;
  --accent-2: #bfdbfe;
  --shadow: 0 14px 35px rgba(59, 130, 246, 0.10);
}

body {
  font-family: Arial, sans-serif;
  background:
    radial-gradient(circle at top left, rgba(147, 197, 253, 0.14), transparent 30%),
    radial-gradient(circle at top right, rgba(191, 219, 254, 0.16), transparent 28%),
    linear-gradient(180deg, #ffffff 0%, #f7fbff 45%, #eef6ff 100%);
  color: var(--text);
  min-height: 100vh;
}

.hero {
  max-width: 1240px;
  margin: 0 auto;
  padding: 42px 18px 24px;
}

.hero-box {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(96, 165, 250, 0.14);
  border-radius: 28px;
  padding: 32px 26px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(237, 245, 255, 0.92));
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

.hero-box::before {
  content: "";
  position: absolute;
  inset: auto -70px -90px auto;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(96, 165, 250, 0.14), transparent 65%);
  pointer-events: none;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(96, 165, 250, 0.10);
  border: 1px solid rgba(96, 165, 250, 0.18);
  color: #2563eb;
  font-size: 0.92rem;
  margin-bottom: 18px;
  font-weight: 700;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 1.06;
  margin-bottom: 14px;
  max-width: 760px;
  color: #1d4f91;
}

.hero p {
  max-width: 720px;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.65;
}

.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 18px 40px;
}

.painel {
  background: rgba(255, 255, 255, 0.70);
  border: 1px solid rgba(96, 165, 250, 0.12);
  border-radius: 24px;
  padding: 22px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
  margin-bottom: 26px;
}

.topo {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  align-items: center;
}

.campo {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(96, 165, 250, 0.12);
  color: var(--text);
  font-size: 1rem;
}

.campo span {
  font-size: 1.1rem;
  opacity: 0.9;
}

.resumo {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.info-box {
  padding: 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid rgba(96, 165, 250, 0.10);
}

.info-box small {
  display: block;
  color: #60a5fa;
  margin-bottom: 8px;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.info-box strong,
.info-box span {
  display: block;
  font-size: 1rem;
  color: var(--text);
  word-break: break-word;
}

.status {
  color: var(--muted);
}

/* GALERIA */

.galeria {
  column-count: 4;
  column-gap: 20px;
}

.card {
  position: relative;
  break-inside: avoid;
  margin-bottom: 20px;
  overflow: hidden;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid var(--card-border);
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.card:hover {
  transform: translateY(-6px);
  border-color: rgba(96, 165, 250, 0.30);
}

.card img {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
  cursor: pointer;
  background: #dbeafe;
}

.card-body {
  padding: 16px;
}

.card-body h3 {
  font-size: 1rem;
  margin-bottom: 8px;
  color: #1d4f91;
  word-break: break-word;
}

.card-body p {
  font-size: 0.9rem;
  color: var(--muted);
  word-break: break-word;
  line-height: 1.5;
}

.card-download {
  display: inline-block;
  margin-top: 12px;
  padding: 10px 14px;
  border-radius: 12px;
  background: rgba(96, 165, 250, 0.14);
  border: 1px solid rgba(96, 165, 250, 0.22);
  color: #2563eb;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 700;
  transition: transform 0.2s ease, background 0.2s ease;
  cursor: pointer;
}

.card-download:hover {
  transform: translateY(-1px);
  background: rgba(96, 165, 250, 0.22);
}

.tag-foto {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(255, 255, 255, 0.82);
  color: #2563eb;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 0.78rem;
  border: 1px solid rgba(96, 165, 250, 0.14);
  backdrop-filter: blur(8px);
  font-weight: 700;
  z-index: 2;
}

.vazio {
  column-span: all;
  padding: 34px 24px;
  text-align: center;
  border-radius: 22px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.70);
  border: 1px solid rgba(96, 165, 250, 0.10);
  box-shadow: var(--shadow);
}

.indicador-carregando {
  width: 100%;
  text-align: center;
  margin-top: 16px;
  color: var(--muted);
  font-weight: 700;
}

/* MODAL */

.modal {
  position: fixed;
  inset: 0;
  background: rgba(29, 78, 145, 0.35);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 999;
  backdrop-filter: blur(6px);
}

.modal.ativo {
  display: flex;
}

.modal-conteudo {
  max-width: 1100px;
  width: 100%;
  position: relative;
  text-align: center;
}

.modal img {
  max-width: 100%;
  max-height: 82vh;
  border-radius: 22px;
  box-shadow: 0 20px 45px rgba(59, 130, 246, 0.18);
}

.fechar {
  position: absolute;
  top: -12px;
  right: -4px;
  width: 46px;
  height: 46px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.82);
  color: #2563eb;
  font-size: 1.3rem;
  cursor: pointer;
}

.modal-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.82);
  color: #2563eb;
  font-size: 1.4rem;
  cursor: pointer;
  backdrop-filter: blur(8px);
}

.modal-anterior {
  left: 10px;
}

.modal-proximo {
  right: 10px;
}

.legenda {
  color: white;
  margin-top: 16px;
  font-size: 1rem;
  text-shadow: 0 2px 8px rgba(29, 78, 145, 0.18);
}

.modal-download {
  display: inline-block;
  margin-top: 14px;
  padding: 11px 16px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(96, 165, 250, 0.20);
  color: #2563eb;
  text-decoration: none;
  font-weight: 700;
  cursor: pointer;
}

@media (max-width: 1100px) {
  .galeria {
    column-count: 3;
  }
}

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

  .galeria {
    column-count: 2;
  }
}

@media (max-width: 640px) {
  .hero {
    padding-top: 24px;
  }

  .hero-box {
    padding: 24px 18px;
    border-radius: 22px;
  }

  .painel {
    padding: 16px;
    border-radius: 20px;
  }

  .galeria {
    column-count: 1;
  }

  .modal-nav {
    width: 44px;
    height: 44px;
    font-size: 1.1rem;
  }
}