/**
 * PROGRAMAS NUTRICIONAIS - CSS DA PÁGINA
 */

.programas-page {
  min-height: 100vh;
  background-color: #f8fafc;
}

/* HERO */

.hero-programas {
  background: radial-gradient(circle at top left, #174283 0%, #0b1b33 45%, #020617 100%);
  padding: 7rem 2rem 4.5rem;
  text-align: center;
  color: #ffffff;
}

.hero-programas-container {
  max-width: 1100px;
  margin: 0 auto;
}

.hero-programas-textos {
  max-width: 900px;
  margin: 0 auto;
}

.hero-programas-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.38rem 0.85rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.35);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.8rem;
}

.hero-programas-tag i {
  font-size: 0.85rem;
}

.page-title {
  font-size: 2.35rem;
  font-weight: 800;
  margin-bottom: 0.8rem;
  font-family: 'Montserrat', sans-serif;
}

.hero-programas-subtitulo {
  font-size: 1rem;
  max-width: 720px;
  margin: 0 auto;
  opacity: 0.96;
}

/* PROGRAMA REVITALIZAR */

.programa-revitalizar {
  padding: 70px var(--espacamento-lg);
  background: #ffffff;
}

.revitalizar-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 40px;
  align-items: center;
}

.revitalizar-texto .pill {
  display: inline-block;
  padding: 5px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  background: rgba(23, 66, 131, 0.08);
  color: #174283;
  margin-bottom: 12px;
}

.revitalizar-texto h2 {
  font-family: var(--fonte-titulos);
  font-size: 30px;
  font-weight: 800;
  margin-bottom: 18px;
  color: #111827;
}

.revitalizar-texto p {
  font-size: 16px;
  line-height: 1.7;
  color: #4b5563;
  margin-bottom: 14px;
}

.revitalizar-texto a {
  color: #174283;
  font-weight: 600;
  text-decoration: underline;
}

/* VÍDEO EM DESTAQUE */

.revitalizar-video {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.revitalizar-video-titulo {
  font-family: var(--fonte-titulos);
  font-size: 18px;
  font-weight: 700;
  color: #111827;
}

.revitalizar-video .video-thumb {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(15, 46, 76, 0.32);
  background: #020617;
}

.revitalizar-video .video-thumb iframe {
  width: 100%;
  height: 315px;
  display: block;
}

.video-caption {
  font-size: 13px;
  color: #6b7280;
  margin-top: 8px;
}

/* ===========================
   RESULTADOS DO PROGRAMA
   =========================== */

.resultados-programa {
  padding: 80px var(--espacamento-lg);
  background: radial-gradient(circle at top left, #174283 0%, #0b1b33 45%, #020617 100%);
  color: #ffffff;
}

.resultados-container {
  max-width: 1120px;
  margin: 0 auto;
}

/* Cabeçalho */

.resultados-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
  margin-bottom: 28px;
}

.resultados-header-left {
  max-width: 620px;
}

.resultados-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  background: rgba(248, 175, 65, 0.14);
  color: #fde68a;
  border: 1px solid rgba(248, 175, 65, 0.35);
  margin-bottom: 10px;
}

.resultados-chip i {
  font-size: 13px;
}

.resultados-titulo {
  font-family: 'Montserrat', sans-serif;
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 0.4rem;
}

.resultados-subtitulo {
  font-size: 0.95rem;
  color: #e5e7eb;
  line-height: 1.6;
}

/* Destaque numérico */

.resultados-highlight {
  background: rgba(15, 23, 42, 0.7);
  border-radius: 18px;
  padding: 12px 16px;
  border: 1px solid rgba(248, 175, 65, 0.4);
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 210px;
}

.highlight-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #fde68a;
}

.highlight-number {
  font-size: 24px;
  font-weight: 800;
  color: #fbbf24;
}

.highlight-note {
  font-size: 11px;
  color: #e5e7eb;
}

/* Shell principal – imagem + texto */

.resultado-main-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr);
  gap: 28px;
  align-items: stretch;
}

.resultado-main-media-bloco {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Imagem grande */

.resultado-main-media {
  background: rgba(15, 23, 42, 0.85);
  border-radius: 24px;
  padding: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
  min-height: 320px;
}

.resultado-main-figure {
  position: absolute;
  inset: 10px;
  opacity: 0;
  transform: scale(0.96);
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.resultado-main-figure.ativo {
  position: relative;
  inset: 0;
  opacity: 1;
  transform: scale(1);
}

.resultado-main-figure img {
  width: 100%;
  height: 100%;
  max-height: 460px;
  object-fit: contain;
  object-position: center;
  display: block;
}

/* Lupa de zoom */

.resultado-zoom-lens {
  position: absolute;
  border: 2px solid #e5e7eb;
  border-radius: 50%;
  cursor: none;
  width: 140px;
  height: 140px;
  pointer-events: none;
  background-repeat: no-repeat;
  box-shadow: 0 10px 30px rgba(0,0,0,0.45);
  z-index: 2;
  opacity: 0;
  transition: opacity 0.15s ease;
}

.resultado-zoom-lens.ativo {
  opacity: 1;
}

/* Botão tela cheia */

.resultado-fullscreen-btn {
  position: absolute;
  bottom: 14px;
  right: 14px;
  z-index: 3;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: none;
  background: rgba(15, 23, 42, 0.8);
  color: #f9fafb;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 15px;
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.resultado-fullscreen-btn:hover {
  background: rgba(15, 23, 42, 0.95);
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(0,0,0,0.45);
}

/* Miniaturas */

.resultado-thumbs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 4px 2px 2px;
}

.resultado-thumb {
  flex: 0 0 auto;
  border: none;
  background: transparent;
  color: #e5e7eb;
  font-size: 11px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  opacity: 0.65;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.resultado-thumb img {
  width: 64px;
  height: 44px;
  border-radius: 8px;
  object-fit: cover;
  object-position: center;
  border: 2px solid transparent;
}

.resultado-thumb span {
  white-space: nowrap;
}

.resultado-thumb:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.resultado-thumb.ativo {
  opacity: 1;
}

.resultado-thumb.ativo img {
  border-color: #22c55e;
}

/* Conteúdo do resultado */

.resultado-main-conteudo {
  background: radial-gradient(circle at top left, rgba(15, 23, 42, 0.96), rgba(15, 23, 42, 0.9));
  border-radius: 24px;
  padding: 20px 22px 18px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.55);
  display: none;
  flex-direction: column;
  gap: 10px;
}

.resultado-main-conteudo.ativo {
  display: flex;
}

.resultado-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 11px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  background: rgba(6, 104, 57, 0.28);
  color: #bbf7d0;
  border: 1px solid rgba(187, 247, 208, 0.5);
}

.resultado-main-conteudo h3 {
  font-family: var(--fonte-titulos);
  font-size: 19px;
  font-weight: 800;
}

.resultado-main-resumo {
  font-size: 13px;
  line-height: 1.6;
  color: #e5e7eb;
}

/* Métricas em chips */

.resultado-metricas {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 6px 0 4px;
}

.metrica {
  background: rgba(15, 23, 42, 0.9);
  border-radius: 14px;
  padding: 6px 10px;
  border: 1px solid rgba(148, 163, 184, 0.6);
  min-width: 110px;
}

.metrica-label {
  display: block;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #9ca3af;
  margin-bottom: 2px;
}

.metrica-valor {
  font-size: 14px;
  font-weight: 700;
  color: #e5e7eb;
}

.resultado-main-depo {
  font-size: 13px;
  line-height: 1.6;
  color: #e5e7eb;
  font-style: italic;
}

.resultado-main-local {
  font-size: 12px;
  color: #d1d5db;
}

/* Lightbox */

.resultado-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9998;
  display: none;
  align-items: center;
  justify-content: center;
}

.resultado-lightbox.ativo {
  display: flex;
}

.resultado-lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
}

.resultado-lightbox-content {
  position: relative;
  z-index: 2;
  max-width: 90vw;
  max-height: 90vh;
  border-radius: 16px;
  overflow: hidden;
  background: #020617;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.85);
  padding: 10px;
}

.resultado-lightbox-content img {
  display: block;
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
}

.resultado-lightbox-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: none;
  background: rgba(15, 23, 42, 0.88);
  color: #f9fafb;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 16px;
}

/* WHATSAPP FLUTUANTE */

.whatsapp-floating {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 9999;
  display: flex;
  flex-direction: column-reverse;
  align-items: flex-end;
  gap: 6px;
}

.whatsapp-floating-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background-color: #25d366;
  color: #fff;
  text-decoration: none;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
  font-size: 28px;
}

.whatsapp-floating-message {
  position: relative;
  max-width: 220px;
  background: linear-gradient(135deg, #e0ebff 0%, #c7dafc 100%);
  color: #111827;
  border-radius: 18px;
  padding: 8px 12px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.3;
  border: 1px solid rgba(0, 0, 0, 0.03);
  text-align: left;
  word-break: break-word;
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.whatsapp-floating-message.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* RESPONSIVO */

@media (max-width: 1024px) {
  .hero-programas {
    padding: 5rem 1.4rem 3.2rem;
  }

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

  .resultado-main-shell {
    grid-template-columns: minmax(0, 1fr);
  }

  .resultados-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .resultados-highlight {
    align-self: stretch;
  }

  .revitalizar-video .video-thumb iframe {
    height: 260px;
  }
}

@media (max-width: 768px) {
  .page-title {
    font-size: 1.9rem;
  }

  .hero-programas-subtitulo {
    font-size: 0.95rem;
  }

  .programa-revitalizar {
    padding: 60px var(--espacamento-lg);
  }

  .resultados-programa {
    padding: 60px var(--espacamento-lg);
  }

  .resultado-main-figure img {
    max-height: 260px;
  }

  .whatsapp-floating {
    bottom: 16px;
    right: 16px;
  }

  .whatsapp-floating-message {
    max-width: 190px;
    font-size: 12px;
  }

  .revitalizar-video .video-thumb iframe {
    height: 220px;
  }
}

@media (max-width: 480px) {
  .page-title {
    font-size: 1.7rem;
  }

  .resultado-main-conteudo {
    padding: 16px 16px 18px;
  }

  .resultado-main-figure img {
    max-height: 220px;
  }

  .whatsapp-floating-message {
    display: none;
  }

  .revitalizar-video .video-thumb iframe {
    height: 200px;
  }
}