/*
 * MF Child – Overrides
 *
 * Neutralizza i wrapper di Visual Composer (.vc_row, .vc_column_container,
 * .wpb_wrapper, .wpb_row) per non aggiungere padding/margin/sfondi
 * sotto le sezioni del sito Valeria Manzo, e tiene a bada residui del
 * tema MF parent.
 */

/* ============== WPBakery wrapper reset ============== */
body.vm-site .vc_row,
body.vm-site .wpb_row,
body.vm-site .vc_row-fluid,
body.vm-site .vc_column_container,
body.vm-site .vc_column-inner,
body.vm-site .wpb_wrapper,
body.vm-site .vc_row > .vc_column_container > .vc_column-inner,
body.vm-site .wpb_text_column,
body.vm-site .wpb_content_element {
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

/* `.vc_row` non deve introdurre min-height */
body.vm-site .vc_row { min-height: 0 !important; }

/* `.vc_row` di solito ha negative margin-left/right per il grid bootstrap-like */
body.vm-site .vc_row,
body.vm-site .vc_row-fluid {
  margin-left: 0 !important;
  margin-right: 0 !important;
}

/* WPBakery wrapper text columns: rimuovi i `<p>` automatici */
body.vm-site .wpb_text_column .wpb_wrapper > p:empty { display: none; }

/* Allinea il `<main>` di page.php a tutta larghezza, niente padding */
body.vm-site .vm-page {
  margin: 0;
  padding: 0;
  max-width: none;
  width: 100%;
}

/* ============== Footer wp_nav_menu reset ============== */
body.vm-site .footer-col h4 {
  margin: 0 0 20px 0 !important;
  padding: 0 !important;
}
body.vm-site .footer-links {
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 10px !important;
}
body.vm-site .footer-links li,
body.vm-site .footer-links li.menu-item {
  margin: 0 !important;
  padding: 0 !important;
  display: list-item !important;
  text-align: left !important;
  list-style: none !important;
}
body.vm-site .footer-links a,
body.vm-site .footer-links li a {
  margin: 0 !important;
  padding: 0 !important;
  text-align: left !important;
  display: inline !important;
}

/* ============== Hero / sezioni: neutralizza eventuali residui ============== */
body.vm-site section { width: 100%; }

/* ============== Dropdown menu desktop: assicura il display on hover ============== */
body.vm-site nav#navbar .nav-links li.has-dropdown { position: relative; }
body.vm-site nav#navbar .nav-links li.has-dropdown > .dropdown-menu {
  display: none;
}
body.vm-site nav#navbar .nav-links li.has-dropdown:hover > .dropdown-menu,
body.vm-site nav#navbar .nav-links li.has-dropdown:focus-within > .dropdown-menu {
  display: block !important;
}

/* ============== Wp emoji: nascondi (non serve) ============== */
body.vm-site img.emoji,
body.vm-site img.wp-smiley { display: inline; height: 1em; max-height: 1em; vertical-align: -0.1em; }

/* ============== Typography: forza tipografia del sito ============== */
body.vm-site,
body.vm-site button,
body.vm-site input,
body.vm-site select,
body.vm-site textarea {
  font-family: 'Jost', sans-serif;
}

body.vm-site h1, body.vm-site h2, body.vm-site h3, body.vm-site h4 {
  font-family: 'Cormorant Garamond', serif;
  margin: 0;
  padding: 0;
  line-height: 1.2;
}

/* Footer: forza Jost ovunque (i wrap WP/WPBakery iniettano stili che ereditano male) */
body.vm-site footer,
body.vm-site footer p,
body.vm-site footer a,
body.vm-site footer span,
body.vm-site footer li,
body.vm-site footer ul,
body.vm-site footer .footer-desc,
body.vm-site footer .footer-links,
body.vm-site footer .footer-links a,
body.vm-site footer .footer-bottom,
body.vm-site footer .footer-bottom p {
  font-family: 'Jost', sans-serif !important;
}

body.vm-site footer h4,
body.vm-site footer .footer-col h4 {
  font-family: 'Jost', sans-serif !important;
}

body.vm-site footer .footer-logo {
  font-family: 'Cormorant Garamond', serif !important;
}

/* Nav: forza Jost (header) */
body.vm-site nav#navbar,
body.vm-site nav#navbar a,
body.vm-site nav#navbar li,
body.vm-site nav#navbar ul,
body.vm-site nav#navbar .nav-cta,
body.vm-site .mobile-overlay,
body.vm-site .mobile-overlay a,
body.vm-site .mobile-overlay li {
  font-family: 'Jost', sans-serif !important;
}

/* ============== Strengths-banner: il box CTA deve essere a piena width ============== */
body.vm-site .strengths-banner { width: 100%; }
body.vm-site .strengths-inner { max-width: 1100px; margin: 0 auto; }

/* ============== WordPress admin bar: niente offset al body ============== */
body.vm-site.admin-bar { padding-top: 0; }
body.vm-site.admin-bar nav#navbar { top: 32px; }
@media (max-width: 782px) {
  body.vm-site.admin-bar nav#navbar { top: 46px; }
}
