/* ===========================
   MANGAL DAS GARÇAS
   Visitas Monitoradas
   CSS Mobile-First
   =========================== */

@import url('https://fonts.googleapis.com/css2?family=Merriweather:wght@700&family=Lato:wght@400;600&display=swap');

/* === RESET === */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* === BASE === */
body {
  font-family: 'Lato', sans-serif;
  background: #f0f4f3;
  color: #333;
  font-size: 16px;
  line-height: 1.6;
}

/* ===========================
   HEADER
   =========================== */
.vm-header {
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  position: relative;
  overflow: hidden;
  min-height: 70px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.vm-header-wave {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.08;
}

.vm-logo {
  height: 48px;
  object-fit: contain;
  position: relative;
  z-index: 2;
}

.vm-header-info {
  display: none; /* oculto no mobile */
}

.vm-sociais {
  display: flex;
  align-items: center;
  gap: 10px;
  position: relative;
  z-index: 2;
}

.vm-sociais a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #f0f9f5;
  transition: background 0.2s, transform 0.2s;
  text-decoration: none;
}

.vm-sociais a:hover {
  background: #a8d5c2;
  transform: translateY(-2px);
}

.vm-sociais svg {
  width: 16px;
  height: 16px;
  fill: #1e3a5f;
}

/* ===========================
   CONTEÚDO PRINCIPAL
   =========================== */
.vm-inner {
  padding: 24px 12px;
}

.vm-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.07);
  max-width: 900px;
  margin: 0 auto;
  padding: 28px 20px 32px;
}

/* === TÍTULO === */
.vm-titulo {
  font-family: 'Merriweather', serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: #1e3a5f;
  text-align: center;
  margin-bottom: 16px;
  line-height: 1.3;
}

/* === DESCRIÇÃO === */
.vm-desc {
  font-size: 0.95rem;
  color: #5a7a6e;
  text-align: center;
  line-height: 1.8;
  margin: 0 auto 8px;
  border-top: 2px solid #a8d5c2;
  border-bottom: 2px solid #a8d5c2;
  padding: 14px 8px;
}

/* === BOTÃO === */
.vm-btn-wrap {
  display: flex;
  justify-content: center;
  margin: 24px 0 32px;
}

.vm-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #2563eb;
  color: #fff;
  font-family: 'Lato', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  padding: 14px 24px;
  border-radius: 8px;
  text-decoration: none;
  letter-spacing: 0.3px;
  text-align: center;
  width: 100%;
  justify-content: center;
  transition: background 0.2s;
}

.vm-btn:hover {
  background: #1a4fc4;
  color: #fff;
}

/* === SEPARADOR === */
.vm-hr {
  border: none;
  border-top: 1px solid #e2ece8;
  margin-bottom: 28px;
}

/* ===========================
   COLUNAS (mobile = 1 coluna)
   =========================== */
.vm-colunas {
  display: flex;
  flex-direction: column;
  gap: 36px;
}

/* === TÍTULOS DAS COLUNAS === */
.vm-col-titulo {
  font-family: 'Merriweather', serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: #1e3a5f;
  margin-bottom: 14px;
}

/* ===========================
   MATÉRIAS
   =========================== */
.vm-materias {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.vm-materia {
  display: block;
  background: #e8f4ee;
  border-radius: 10px;
  padding: 14px 16px;
  text-decoration: none;
  color: #1e3a5f;
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.4;
  border-left: 4px solid #a8d5c2;
  transition: background 0.2s, transform 0.2s;
}

.vm-materia:hover {
  background: #c8e6d8;
  transform: translateX(3px);
  color: #1e3a5f;
}

.vm-materia-sub {
  display: block;
  font-size: 0.78rem;
  font-weight: 400;
  color: #5a7a6e;
  margin-top: 4px;
}

/* ===========================
   GALERIA
   =========================== */
.vm-galeria {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.vm-foto {
  background: #c8e6d8;
  border-radius: 10px;
  aspect-ratio: 4/3;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.vm-foto:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.15);
}

.vm-foto:hover .vm-foto-overlay {
  opacity: 1;
}

.vm-foto-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  opacity: 0;
  transition: opacity 0.2s;
  border-radius: 10px;
}

.vm-foto img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.vm-ver-todas {
  display: block;
  text-align: center;
  margin-top: 12px;
  font-size: 0.85rem;
  color: #2563eb;
  cursor: pointer;
  text-decoration: underline;
  background: none;
  border: none;
  font-family: 'Lato', sans-serif;
  width: 100%;
  padding: 8px 0;
}

/* ===========================
   LIGHTBOX
   =========================== */
.vm-lb {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.92);
  z-index: 99999;
  align-items: center;
  justify-content: center;
}

.vm-lb.ativo {
  display: flex;
}

.vm-lb-inner {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 95vw;
}

.vm-lb img {
  max-width: 85vw;
  max-height: 80vh;
  border-radius: 10px;
  object-fit: contain;
  display: block;
}

.vm-lb-nav {
  background: rgba(255,255,255,0.15);
  border: none;
  color: #fff;
  font-size: 1.8rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  flex-shrink: 0;
}

.vm-lb-nav:hover {
  background: rgba(255,255,255,0.3);
}

.vm-lb-fechar {
  position: fixed;
  top: 16px;
  right: 16px;
  background: rgba(0,0,0,0.4);
  border: none;
  color: #fff;
  font-size: 1.5rem;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.vm-lb-contador {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  color: #fff;
  font-size: 0.85rem;
  opacity: 0.6;
  font-family: 'Lato', sans-serif;
  letter-spacing: 1px;
  background: rgba(0,0,0,0.3);
  padding: 4px 14px;
  border-radius: 20px;
}

/* ===========================
   RODAPÉ
   =========================== */
.vm-footer {
  background: #1a2e2a;
  padding: 36px 16px 20px;
  margin-top: 0;
}

.vm-footer-grid {
  display: flex;
  flex-direction: column;
  gap: 28px;
  max-width: 900px;
  margin: 0 auto 24px;
}

.vm-footer-col-titulo {
  font-family: 'Merriweather', serif;
  font-size: 0.85rem;
  font-weight: 700;
  color: #a8d5c2;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 14px;
  padding-left: 10px;
  border-left: 3px solid #a8d5c2;
}

.vm-footer-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
}

.vm-footer-item svg {
  width: 16px;
  height: 16px;
  fill: #a8d5c2;
  flex-shrink: 0;
  margin-top: 2px;
}

.vm-footer-item span,
.vm-footer-item a {
  font-size: 0.85rem;
  color: #b0c4be;
  line-height: 1.5;
  text-decoration: none;
}

.vm-footer-item a:hover {
  color: #a8d5c2;
}

.vm-footer-horario-item {
  margin-bottom: 10px;
}

.vm-footer-horario-label {
  font-size: 0.75rem;
  color: #7a9e8e;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 2px;
}

.vm-footer-horario-val {
  font-size: 0.9rem;
  color: #b0c4be;
  font-weight: 600;
}

.vm-footer-sociais {
  display: flex;
  gap: 12px;
  margin-top: 4px;
}

.vm-footer-sociais a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(168,213,194,0.1);
  border: 1px solid rgba(168,213,194,0.2);
  transition: background 0.2s, transform 0.2s;
}

.vm-footer-sociais a:hover {
  background: rgba(168,213,194,0.25);
  transform: translateY(-2px);
}

.vm-footer-sociais svg {
  width: 16px;
  height: 16px;
  fill: #a8d5c2;
}

.vm-footer-divider {
  border: none;
  border-top: 1px solid rgba(168,213,194,0.1);
  max-width: 900px;
  margin: 0 auto 16px;
}

.vm-footer-copy {
  text-align: center;
  font-size: 0.75rem;
  color: #5a7a6e;
  max-width: 900px;
  margin: 0 auto;
  line-height: 1.6;
}

.vm-footer-copy a {
  color: #7a9e8e;
  text-decoration: none;
}

.vm-footer-copy a:hover {
  color: #a8d5c2;
}

/* ===========================
   TABLET (min 600px)
   =========================== */
@media (min-width: 600px) {
  .vm-header {
    padding: 14px 24px;
    min-height: 80px;
  }

  .vm-logo {
    height: 56px;
  }

  .vm-sociais {
    gap: 12px;
  }

  .vm-sociais a {
    width: 36px;
    height: 36px;
  }

  .vm-inner {
    padding: 32px 20px;
  }

  .vm-card {
    padding: 36px 32px 40px;
  }

  .vm-titulo {
    font-size: 2rem;
  }

  .vm-btn {
    width: auto;
    padding: 14px 32px;
  }

  .vm-footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}

/* ===========================
   DESKTOP (min 900px)
   =========================== */
@media (min-width: 900px) {
  .vm-header {
    padding: 16px 40px;
    min-height: 90px;
  }

  .vm-logo {
    height: 64px;
  }

  .vm-header-info {
    display: block;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.78rem;
    color: #5a7a6e;
    letter-spacing: 0.5px;
    font-weight: 600;
    text-transform: uppercase;
    z-index: 2;
    white-space: nowrap;
  }

  .vm-sociais a {
    width: 38px;
    height: 38px;
  }

  .vm-sociais svg {
    width: 18px;
    height: 18px;
  }

  .vm-inner {
    padding: 40px 24px;
  }

  .vm-card {
    padding: 52px 48px 48px;
    border-radius: 20px;
  }

  .vm-titulo {
    font-size: 2.2rem;
  }

  .vm-desc {
    max-width: 620px;
    padding: 16px 0;
    font-size: 0.97rem;
  }

  .vm-colunas {
    flex-direction: row;
    gap: 40px;
  }

  .vm-colunas > div {
    flex: 1;
  }

  .vm-lb img {
    max-width: 78vw;
    max-height: 85vh;
  }

  .vm-lb-nav {
    width: 54px;
    height: 54px;
    font-size: 2.2rem;
  }

  .vm-lb-inner {
    gap: 16px;
  }

  .vm-footer {
    padding: 48px 40px 24px;
  }

  .vm-footer-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
  }
}