
/* MultiFaces - correções de rolagem, responsividade e imagens */
html {
  min-height: 100%;
  height: auto !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
body {
  min-height: 100% !important;
  height: auto !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  position: relative !important;
  max-width: 100vw;
}
body.mf-scroll-unlocked { overflow-y: auto !important; }
.fl-page,
.fl-page-content,
.fl-builder-content,
.fl-builder-content-primary,
.fl-row-content,
.fl-col-content,
.fl-module-content {
  max-width: 100%;
}
.fl-page,
.fl-page-content,
.fl-builder-content {
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  overflow: visible !important;
}
.fl-row[id], [id] { scroll-margin-top: 92px; }
img, picture, video, canvas, svg { max-width: 100%; }
img { height: auto; }
.fl-photo-content,
.fl-photo-content img,
.fl-photo-img,
.fl-slideshow-image img,
.fl-gallery img {
  max-width: 100% !important;
  height: auto !important;
}
iframe { max-width: 100%; }
.mf-img-fallback {
  object-fit: contain !important;
  background: #f3f4f6;
}
/* Evita que elementos antigos criem rolagem horizontal */
.row, .fl-row, .fl-row-content-wrap, .fl-col-group, .container, .container-fluid {
  max-width: 100vw;
}
/* Popups antigos só podem travar a rolagem enquanto realmente visíveis */
.extern[style*="display: none"], .popup-geral[style*="display: none"] { pointer-events: none !important; }
/* Melhora navegação por âncoras em telas pequenas */
@media (max-width: 768px) {
  html, body { width: 100% !important; max-width: 100% !important; }
  .fl-row-content-wrap, .fl-row-content, .fl-col, .fl-col-content { width: 100% !important; max-width: 100% !important; }
  img { max-width: 100% !important; height: auto !important; }
  .fl-row[id], [id] { scroll-margin-top: 72px; }
}
