/*
Theme Name: Edipro BeTheme Child
Description: Personalizzazioni minime Edipro per BeTheme 28.x.
Author: VirtualTag
Template: betheme
Version: 1.3.6
*/

/* Il BeTheme nuovo usa contenitori da 1220 px; il live li limita a 1122 px. */
@media only screen and (min-width: 1240px) {
  #Wrapper,
  .with_aside .content_wrapper {
    max-width: 1142px;
  }

  .layout-full-width #Wrapper {
    max-width: 100% !important;
  }

  .section_wrapper,
  .container {
    max-width: 1122px;
  }
}

/* Allineamento menu desktop al BeTheme 17.8.8 del live. */
.menu > li > a {
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: uppercase;
}

#Top_bar .menu > li > a span:not(.description) {
  padding-right: 13px;
  padding-left: 13px;
}

#Top_bar .menu > li.current-menu-item > a,
#Top_bar .menu > li.current_page_item > a,
#Top_bar .menu > li.current-menu-ancestor > a,
#Top_bar .menu > li.current_page_ancestor > a,
#Top_bar .menu > li.hover > a {
  color: #f90;
}

/* Footer uniforme: nessuna fascia bianca e contrasto coerente col live. */
#Footer,
#Footer .widgets_wrapper,
#Footer .footer_copy,
.edipro-footer-cta {
  background-color: #545454;
  color: #ccc;
}

#Footer .container,
#Footer .column,
#Footer .columns,
#Footer .widget,
#Footer p {
  color: #ccc;
}

#Footer a {
  color: #ccc !important;
}

.edipro-footer-cta__inner {
  align-items: center;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0 auto;
  max-width: 1100px;
}

.edipro-footer-cta__item {
  align-items: center;
  display: flex;
  justify-content: center;
  padding: 20px 0;
  text-align: center;
}

.edipro-footer-cta__link {
  background: transparent;
  border: 1px solid #ccc;
  border-radius: 0;
  box-sizing: border-box;
  color: #ccc;
  display: inline-flex;
  font-size: 14px;
  font-weight: 400;
  justify-content: center;
  line-height: 20px;
  min-height: 42px;
  padding: 10px 12px;
  align-items: center;
  text-align: center;
  text-decoration: none;
  width: 170px;
}

.edipro-footer-cta__link:focus,
.edipro-footer-cta__link:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

@media (max-width: 767px) {
  .edipro-footer-cta__inner {
    grid-template-columns: 1fr;
  }

  .edipro-footer-cta__item {
    padding: 10px 0;
  }

  #Footer .footer_copy .one,
  #Footer .footer_copy .copyright {
    text-align: center;
  }
}


/* Lista prodotti come sul live: testo allineato in alto a sinistra accanto all'immagine. */
.woocommerce ul.products.list li.product {
  align-items: flex-start;
}

.woocommerce ul.products.list li.product .desc {
  padding-left: 20px;
  text-align: left;
}

.woocommerce ul.products.list li.product h4.mfn-woo-product-title {
  margin-bottom: 15px;
  text-align: left;
}

/* Griglia colonne BeBuilder: il CSS storico del live mette margin 0 1% su .column;
   con Betheme 28 (colonne flex in border-box) le colonne non ci stanno piu e vanno a capo.
   Lo spazio viene ricreato con un padding interno equivalente. */
.mcb-wrap-inner > .mcb-column {
  margin-left: 0 !important;
  margin-right: 0 !important;
  padding-left: 1%;
  padding-right: 1%;
}

h1, h2, h3, h4, h5, h6 {
  word-break: normal;
}

/* Shop su mobile: categorie a tendina in cima alla pagina (come sul live),
   lista colorata e ricerca restano nella sidebar su desktop. */
#woocommerce_product_categories-3 {
  display: none;
}

@media only screen and (max-width: 767px) {
  .woocommerce-page .content_wrapper {
    display: flex;
    flex-direction: column;
  }

  .woocommerce-page .content_wrapper > .sidebar {
    order: -1;
  }

  .woocommerce-page .sidebar #woocommerce_product_categories-2,
  .woocommerce-page .sidebar .widget_product_search {
    display: none;
  }

  .woocommerce-page .sidebar #woocommerce_product_categories-3 {
    display: block;
  }
}

/* Ritocchi finali per allineare lo staging al live. */

/* Barra del menu bianca semitrasparente sopra l'header (come Betheme 17). */
#Top_bar {
  background-color: rgba(255, 255, 255, 0.7);
}

/* Widget ricerca prodotti: campo e pulsante Cerca come sul live. */
.widget_product_search .search-field {
  width: 230px;
  max-width: 100%;
  margin: 0 0 20px;
  font-size: 13px;
}

.widget_product_search form button[type="submit"] {
  display: inline-block;
  margin: 0 7px 15px 0;
  padding: 11px 20px;
  border: 0;
  border-radius: 5px;
  background-color: #2991d6;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.03);
  color: #fff;
  font-size: 13px;
  cursor: pointer;
}

/* Tendina categorie (mobile): testo centrato nel campo. */
.widget_product_categories .select2-container .select2-selection--single {
  height: auto;
  padding: 0;
}

.widget_product_categories .select2-container .select2-selection--single .select2-selection__rendered {
  line-height: 28px;
}

.widget_product_categories .select2-container .select2-selection__arrow {
  top: 50% !important;
  transform: translateY(-50%);
}

/* Betheme 29: le sezioni sono contenitori flex e non lasciano piu "sbordare" il contenuto.
   La striscia .bluesotto (alta 67px nel CSS storico) contiene il banner Diventa Rivenditore:
   la lasciamo crescere, cosi la sezione successiva parte sotto il banner come sul live. */
.section.bluesotto {
  height: auto !important;
  min-height: 67px;
}

/* Betheme 29: i wraps affiancati vanno di nuovo in float come in Betheme 28,
   altrimenti i blocchi impilati in colonna (es. Agende e Calendari) vanno a capo. */
.section_wrapper.mfn-wrapper-for-wraps {
  display: block;
}

.section_wrapper.mfn-wrapper-for-wraps > .wrap {
  float: left;
}

.section_wrapper.mfn-wrapper-for-wraps::after {
  content: "";
  display: table;
  clear: both;
}
