/* === CSS VARIABLES DO TEMA === */
:root {
  --wp--style--root--padding-top: 0px;
  --wp--style--root--padding-bottom: 0px;
  --wp--style--root--padding-left: 0px;
  --wp--style--root--padding-right: 0px;
  --wp--style--global--content-size: 100%;
  --wp--style--global--wide-size: 100%;
}

/* === SCROLLBAR === */
html {
  scrollbar-gutter: stable;
  overflow-x: hidden;
}

/* === TIPOGRAFIA GLOBAL === */
*, *::before, *::after { box-sizing: border-box; }
body, p, li, td, input, textarea, select, button {
  font-family: 'Montserrat', sans-serif;
  font-size: 15px; line-height: 1.65; color: #333;
}
h1, h2, h3, h4 { font-family: 'Montserrat', sans-serif; font-weight: 700; line-height: 1.2; }
h1 { font-size: clamp(1.6rem, 3.5vw, 2.2rem); }
h2 { font-size: clamp(1.3rem, 2.5vw, 1.7rem); }
h3 { font-size: 1.1rem; }
h4 { font-size: 1rem; }

/* === GAP HEADER → HERO === */
.wp-site-blocks {
  gap: 0 !important;
  row-gap: 0 !important;
  padding: 0 !important;
}
header.wp-block-template-part { margin-bottom: 0 !important; }
main, [role="main"] { margin-top: 0 !important; padding-top: 0 !important; }
.wp-block-post { margin-top: 0 !important; padding-top: 0 !important; }
.is-layout-flow > * { margin-block-start: 0 !important; }
.is-layout-constrained > * { margin-block-start: 0 !important; }

/* === ESCONDER TÍTULO === */
.page .wp-block-post-title,
.page h1.entry-title {
  display: none !important;
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* === POST CONTENT FULL WIDTH === */
.page .wp-block-post-content,
.page .wp-block-post-content.is-layout-constrained,
.page .wp-block-post-content.is-layout-flow {
  max-width: 100% !important;
  width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
}
.page .wp-block-post-content > * {
  max-width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

/* === HERO ALTURA === */
.wp-block-cover.alignfull,
.wp-block-cover.alignfull.has-background {
  min-height: 92vh !important;
}

/* === VER IMÓVEL === */
.rmx-imovel-wrap { max-width: 1100px; margin: 0 auto; padding: 0 2rem; }

/* === FORMULÁRIOS JETPACK === */
.wp-block-jetpack-contact-form input,
.wp-block-jetpack-contact-form textarea,
.wp-block-jetpack-contact-form select {
  font-family: 'Montserrat', sans-serif !important;
  font-size: 14px !important; width: 100%;
  padding: 12px 14px; border: 1px solid #ddd;
  border-radius: 6px; background: #fff; margin-bottom: 16px;
}

/* === WHATSAPP FLOAT === */
.whatsapp-float {
  position: fixed; bottom: 24px; right: 24px; z-index: 999;
  background: #25D366; border-radius: 50%; width: 54px; height: 54px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2); text-decoration: none;
}
.whatsapp-float svg { width: 28px; height: 28px; fill: #fff; }

/* === FOOTER === */
footer a { color: rgba(255,255,255,0.75) !important; text-decoration: none; }
footer a:hover { color: #CC0000 !important; }
footer h2, footer h3, footer h4, footer .wp-block-heading { color: #CC0000 !important; }
footer p, footer address, footer li { color: rgba(255,255,255,0.65) !important; }
footer .wp-block-site-tagline { color: rgba(255,255,255,0.55) !important; }

/* === MOBILE === */
@media (max-width: 768px) {
  .wp-block-columns { flex-direction: column !important; }
  .wp-block-column { flex-basis: 100% !important; }
  body, p { font-size: 14px; }
  h1 { font-size: 1.5rem; }
  h2 { font-size: 1.25rem; }

  div[style*="grid-template-columns:repeat(3"] { grid-template-columns: 1fr !important; gap: 20px !important; }
  div[style*="grid-template-columns:1fr 1fr"] { grid-template-columns: 1fr !important; }
  div[style*="grid-template-columns:repeat(4"] { grid-template-columns: repeat(2, 1fr) !important; }
  div[style*="grid-template-columns:repeat(3,1fr)"] { grid-template-columns: 1fr !important; gap: 20px !important; }
  div[style*="max-width:1200px"], div[style*="max-width: 1200px"], div[style*="max-width:720px"] {
    padding-left: 1.2rem !important; padding-right: 1.2rem !important;
  }
  .wp-block-cover.alignfull, .wp-block-cover.alignfull.has-background { min-height: 100vh !important; }

  .rmx-layout { grid-template-columns: 1fr !important; }
  .rmx-layout > * { min-width: 0 !important; }
  .rmx-right, .rmx-left { min-width: 0 !important; overflow-x: hidden !important; }
  .sticky-cta { padding: 14px !important; box-sizing: border-box !important; overflow: hidden !important; }
  .sticky-cta * { box-sizing: border-box !important; max-width: 100% !important; }
  .rmx-bwa, .rmx-btel { font-size: 12px !important; padding: 11px 12px !important; }
  .rmx-sform input, .rmx-sform textarea { max-width: 100% !important; box-sizing: border-box !important; }
  .rmx-pg { padding: 0 8px 40px !important; overflow-x: hidden !important; }
}
@font-face { font-display: swap; }
/* === LOGIN CENTRADO === */
.um-form,
.um-outercontainer,
.um-login,
.um-register {
  max-width: 460px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

.page .wp-block-post-content:has(.um) {
  display: flex !important;
  justify-content: center !important;
  padding: 40px 20px !important;
}

/* === LOGO FOOTER MENOR === */
footer .wp-block-site-logo img {
  max-width: 120px !important;
  height: auto !important;
}
/* === LOGO FOOTER === */
.wp-image-43 {
  max-width: 160px !important;
  width: 160px !important;
  height: auto !important;
}
/* Lojas grid mobile */
@media (max-width: 768px) {
  div[style*="grid-template-columns:1fr 1fr"] {
    grid-template-columns: 1fr !important;
  }
}
.rmx-nimgs {
  position: absolute !important;
  bottom: 8px !important;
  right: 8px !important;
  background: rgba(0,0,0,.65) !important;
  color: #fff !important;
  font-size: 11px !important;
  padding: 3px 8px !important;
  border-radius: 6px !important;
  z-index: 2 !important;
}
.rmx-cimg { position: relative !important; }
.rmx-pag ul {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: wrap !important;
  gap: 5px !important;
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
  justify-content: center !important;
}