/* Header Astra — fons blanc i alçada controlada */
.site-header,
.ast-primary-header-bar,
#masthead {
  background-color: #ffffff !important;
  min-height: 0 !important;
}

/* Text del menú fosc */
.main-header-menu .menu-item a,
.ast-primary-header-bar .menu-link {
  color: #1a1a1a !important;
  font-size: 0.82rem !important;
  font-weight: 600 !important;
  font-family: 'Montserrat', sans-serif !important;
}

/* Logotip — alçada controlada */
.ast-logo-img,
.custom-logo {
  max-height: 40px !important;
  width: auto !important;
}

/* Elimina padding excessiu del header */
.ast-primary-header-bar .ast-container {
  padding-top: 8px !important;
  padding-bottom: 8px !important;
}/* Text llegible en seccions fosques — global */
[style*="background: #0"],
[id*="diag"], [id*="hero"],
section[style*="background:#0"] {
  color: #ffffff !important;
}/* ═══════════════════════════════════════════════════
   SERVEIS IMMOBILIARIS — CSS ADDICIONAL ASTRA
   Correccions contrast fitxes de producte
   Versió: 1.0 — Maig 2026
   ═══════════════════════════════════════════════════ */

/* ── RESET CONTENIDORS ASTRA ── */
html, body {
  margin: 0 !important;
  padding: 0 !important;
  background: #ffffff !important;
  overflow-x: hidden;
}
.ast-container,
.site-content,
#primary,
.entry-content,
#content,
.ast-article-single,
.ast-separate-container {
  padding: 0 !important;
  margin: 0 !important;
  max-width: 100% !important;
  background: transparent !important;
}

/* ── CORRECCIONS CONTRAST FITXES DE PRODUCTE ── */

/* Labels dades tècniques sobre fons negre — quasi invisibles */
div[style*="rgba(255,255,255,0.4)"],
span[style*="rgba(255,255,255,0.4)"] {
  color: rgba(255,255,255,0.88) !important;
}

/* Text descripcions seccions contacte */
p[style*="rgba(255,255,255,0.65)"] {
  color: #ffffff !important;
}

/* Peu de pàgina — text invisible */
span[style*="rgba(255,255,255,0.2)"],
span[style*="rgba(255,255,255,0.20)"] {
  color: rgba(255,255,255,0.65) !important;
}

/* Credencials agent */
div[style*="rgba(255,255,255,0.4)"][style*="margin-top:2px"] {
  color: rgba(255,255,255,0.80) !important;
}

/* Labels "Preu de venda" etc sobre fons negre */
span[style*="rgba(255,255,255,0.5)"][style*="margin-bottom"] {
  color: rgba(255,255,255,0.88) !important;
}

/* Estalvi destacat label */
div[style*="rgba(255,255,255,0.5)"][style*="margin-bottom:6px"] {
  color: rgba(255,255,255,0.88) !important;
}

/* Descripció "Preu sense despeses de transmissió" */
span[style*="rgba(255,255,255,0.5)"][style*="Preu"] {
  color: rgba(255,255,255,0.80) !important;
}

/* Botons ghost — vores poc visibles */
a[style*="rgba(255,255,255,0.25)"] {
  border-color: rgba(255,255,255,0.55) !important;
}

/* Text email peu contacte */
a[style*="rgba(255,255,255,0.45)"] {
  color: rgba(255,255,255,0.70) !important;
}

/* ── OCULTAR FOOTER ASTRA (dades demo) ── */
.wp-block-template-part[class*="footer"],
footer.wp-block-template-part,
.site-footer {
  display: none !important;
}

/* ── TÍTOL DE PÀGINA WORDPRESS (no el nostre) ── */
.wp-block-post-title,
h1.entry-title {
  display: none !important;
}@media (max-width: 921px) {

  /* Fons blanc al header en mòbil */
  .ast-header-break-point .site-header,
  .ast-header-break-point .ast-primary-header-bar {
    background-color: #ffffff !important;
    border-bottom: 1px solid #e8e8e8 !important;
  }

  /* Icona hamburguesa en cobalt blue */
  .ast-header-break-point .ast-mobile-menu-trigger-minimal svg,
  .ast-header-break-point .menu-toggle svg,
  .ast-header-break-point .ast-button-wrap .menu-toggle {
    color: #1A6ED4 !important;
    fill: #1A6ED4 !important;
  }

  /* Ocultar la barra superior APAI/AICAT en mòbil */
  .ast-header-break-point .ast-above-header-bar {
    display: none !important;
  }

}.si-footer-sig { display: none; }.ast-footer-copyright .ast-copyright-text {
  visibility: hidden;
}
.ast-footer-copyright .ast-copyright-text::before {
  visibility: visible;
  content: '© 2026 IMMOVISTA REAL ESTATE S.L.U. · APAI-436 · AICAT 13635';
}.cf7-landing { max-width: 100%; }
.cf7-row { margin-bottom: 1rem; }
.cf7-row label,
.cf7-col label {
  display: block;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin-bottom: 0.45rem;
}
.cf7-row-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}
.cf7-col {}
.cf7-landing input,
.cf7-landing select,
.cf7-landing textarea {
  width: 100%;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.14);
  color: #ffffff;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.95rem;
  padding: 0.75rem 1rem;
  outline: none;
  box-sizing: border-box;
}
.cf7-landing textarea { min-height: 80px; resize: vertical; }
.cf7-landing input[type="submit"] {
  width: 100%;
  background: #1A6ED4;
  color: #ffffff;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 1.1rem;
  border: none;
  cursor: pointer;
  margin-top: 0.5rem;
}
.cf7-landing input[type="submit"]:hover { background: #1458aa; }
.cf7-legal {
  font-size: 0.76rem;
  color: rgba(255,255,255,0.75);
  margin-top: 1rem;
  line-height: 1.5;
}
.cf7-legal a { color: rgba(255,255,255,0.45); }
@media (max-width: 600px) {
  .cf7-row-2col { grid-template-columns: 1fr; }
}/* ===== WPML Language Switcher — Header ===== */

/* Contenidor del selector al menú */
.main-header-menu .wpml-ls-legacy-dropdown,
.main-header-menu .wpml-ls {
    margin-left: 8px;
}/* ===== WPML Language Switcher — Header ===== */

/* Botó actiu */
.wpml-ls-slot-7 a,
.wpml-ls-slot-7 a:visited {
    background-color: transparent !important;
    border: 1px solid rgba(200, 151, 58, 0.50) !important;
    border-radius: 4px !important;
    color: #ffffff !important;
    font-size: 12px !important;
    padding: 4px 10px !important;
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    transition: all 0.2s ease !important;
}

/* Hover — ara sí funcionarà */
.wpml-ls-slot-7 a:hover {
    background-color: rgba(200, 151, 58, 0.15) !important;
    border-color: #C8973A !important;
    color: #C8973A !important;
}

/* Idioma actiu */
.wpml-ls-slot-7.wpml-ls-current-language a,
.wpml-ls-slot-7.wpml-ls-current-language a:visited {
    background-color: #0F1A2E !important;
    border-color: rgba(200, 151, 58, 0.50) !important;
    color: #C8973A !important;
}

/* Dropdown */
.wpml-ls-legacy-dropdown .wpml-ls-sub-menu {
    background-color: #0F1A2E !important;
    border: 1px solid rgba(200, 151, 58, 0.30) !important;
    border-top: 2px solid #C8973A !important;
    border-radius: 0 0 4px 4px !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.30) !important;
}

.wpml-ls-legacy-dropdown .wpml-ls-sub-menu a,
.wpml-ls-legacy-dropdown .wpml-ls-sub-menu a:visited {
    background-color: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    color: rgba(255, 255, 255, 0.80) !important;
    padding: 8px 14px !important;
}

.wpml-ls-legacy-dropdown .wpml-ls-sub-menu a:hover {
    background-color: rgba(200, 151, 58, 0.10) !important;
    color: #C8973A !important;
    border: none !important;
}

/* Bandera */
.wpml-ls-flag {
    width: 16px !important;
    height: 12px !important;
    border-radius: 2px !important;
}/* ===== TOP BAR — Serveis Immobiliaris ===== */

/* Fons i alçada */
.ast-above-header {
    background-color: #0F1A2E !important;
    border-bottom: 1px solid rgba(200, 151, 58, 0.25);
    min-height: 36px;
    padding: 0 20px;
}

.ast-above-header-wrap {
    min-height: 36px;
    align-items: center;
}

/* Text genèric dins la top bar */
.ast-above-header,
.ast-above-header a {
    color: rgba(255, 255, 255, 0.75);
    font-family: 'DM Sans', sans-serif;
    font-size: 12px;
    letter-spacing: 0.03em;
    text-decoration: none;
}

.ast-above-header a:hover {
    color: #C8973A;
    transition: color 0.2s ease;
}

/* ===== SELECTOR D'IDIOMA WPML ===== */

.ast-above-header .wpml-ls,
.ast-above-header .wpml-ls-statics-shortcode_actions {
    margin: 0;
    padding: 0;
}

.ast-above-header .wpml-ls-legacy-dropdown,
.ast-above-header .wpml-ls-legacy-list-horizontal {
    background: transparent;
    border: none;
}

/* Element actiu (idioma actual) */
.ast-above-header .wpml-ls-current-language > a {
    color: #C8973A !important;
    font-weight: 600;
    padding: 8px 10px;
    background: transparent !important;
    border: none !important;
}

/* Idiomes no actius */
.ast-above-header .wpml-ls-item a {
    color: rgba(255, 255, 255, 0.70) !important;
    padding: 8px 10px;
    background: transparent !important;
    border: none !important;
    font-size: 12px;
}

.ast-above-header .wpml-ls-item a:hover {
    color: #C8973A !important;
    background: transparent !important;
}

/* Separador entre idiomes (mode llista horitzontal) */
.ast-above-header .wpml-ls-legacy-list-horizontal .wpml-ls-item:not(:last-child)::after {
    content: '·';
    color: rgba(255, 255, 255, 0.30);
    margin: 0 2px;
}

/* Dropdown */
.ast-above-header .wpml-ls-legacy-dropdown .wpml-ls-sub-menu {
    background-color: #0F1A2E;
    border: 1px solid rgba(200, 151, 58, 0.30);
    border-top: 2px solid #C8973A;
    min-width: 120px;
}

.ast-above-header .wpml-ls-legacy-dropdown .wpml-ls-sub-menu a {
    color: rgba(255, 255, 255, 0.75) !important;
    padding: 8px 14px !important;
    font-size: 12px;
}

.ast-above-header .wpml-ls-legacy-dropdown .wpml-ls-sub-menu a:hover {
    background-color: rgba(200, 151, 58, 0.10) !important;
    color: #C8973A !important;
}

/* Banderes */
.ast-above-header .wpml-ls-flag {
    width: 16px;
    height: 16px;
    margin-right: 4px;
    vertical-align: middle;
    border-radius: 2px;
}

/* Selector del menú principal — per si queda algun residu */
.wpml-ls-slot-7 a,
.wpml-ls-slot-7 a:visited {
    background-color: transparent !important;
    border: 1px solid rgba(200, 151, 58, 0.50) !important;
    border-radius: 4px !important;
    color: #ffffff !important;
    font-size: 12px !important;
    padding: 4px 10px !important;
    transition: all 0.2s ease !important;
}

.wpml-ls-slot-7 a:hover {
    background-color: rgba(200, 151, 58, 0.15) !important;
    border-color: #C8973A !important;
    color: #C8973A !important;
}.wpml-ls-statics-shortcode_actions {
    display: flex;
    flex-direction: row;
    gap: 12px;
    align-items: center;
}

.wpml-ls-statics-shortcode_actions ul {
    display: flex;
    flex-direction: row;
    gap: 12px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.wpml-ls-statics-shortcode_actions li {
    margin: 0;
}.lang-switcher {
    display: flex;
    gap: 14px;
    align-items: center;
}
.lang-switcher a {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #0F1A2E;
    font-size: 13px;
    text-decoration: none;
}/* Oculta el H1 del tema Astra a les landings amb H1 propi */
.page-id-3026 .entry-title,
.page-id-2060 .entry-title,
.page-id-3017 .entry-title,
.page-id-3021 .entry-title,
.page-id-836 .entry-title,
.page-id-3185 .entry-title,
.page-id-3144 .entry-title,
.page-id-3139 .entry-title,
.page-id-1661 .entry-title,
.page-id-3006 .entry-title,
.page-id-291 .entry-title,
.page-id-609 .entry-title,
.page-id-1604 .entry-title {
  display: none;
}