/* Le regole importanti nel layer hanno precedenza sui colori generati da Divi. */
@layer manigio-palette {
  /* Le scritte sulle immagini seguono il tema Divi originale. */
  @scope (:root) to (.et_pb_slide, .et_pb_promo, .et_pb_fullwidth_header, .onsale, .et_overlay) {
    html, body, #page-container, #et-main-area, #main-content,
    #top-header, #main-header, #main-footer, #footer-bottom,
    .et_pb_section, .et_pb_row, .et_pb_column, .et_pb_slide,
    .et_pb_text, .et_pb_cta, .et_pb_blurb, .et_pb_menu,
    .sub-menu, .et_mobile_menu, .et_pb_toggle, .et_pb_tab,
    .et_pb_tabs_controls, .et_pb_tabs_controls li,
    .woocommerce-tabs, .woocommerce form, .woocommerce table,
    .woocommerce table th, .woocommerce table td,
    .woocommerce-message, .woocommerce-info, .woocommerce-error,
    #payment, #payment .payment_box, #cookie-notice, .widget_shopping_cart {
      background-color: #fff !important;
    }

    body, #page-container :where(h1,h2,h3,h4,h5,h6,p,a,li,span,small,strong,
      em,b,i,del,ins,label,legend,th,td,dt,dd,blockquote,button,input,select,
      textarea,div,summary,address), #cookie-notice, #cookie-notice a {
      color: #000 !important;
      text-shadow: none !important;
    }

    :where(.et_pb_button, .button, button, input[type=submit], .onsale,
      .woocommerce input:not([type=checkbox]):not([type=radio]),
      .woocommerce select, textarea, .et_pb_contact_form input, .cn-button) {
      background-color: #fff !important;
      background-image: none !important;
      color: #000 !important;
      border-color: #000 !important;
    }
    :where(.et_pb_button, .button, .onsale, .cn-button) {
      border: 1px solid #000 !important;
    }
    :where(.et_pb_button,.button,.cn-button,nav a):hover { text-decoration: underline !important; }
    :focus-visible { outline: 2px solid #000 !important; outline-offset: 2px; }
    ::placeholder { color: #444 !important; opacity: 1; }

    #logo { filter: brightness(0) !important; }
    .mobile_menu_bar::before, .et_search_icon::before, .et-social-icon a::before,
    .et_pb_toggle_title::before, .et_pb_button::after { color: #000 !important; }
  }
}

@layer manigio-palette {
  .home .et_pb_cta_0 a.et_pb_promo_button,
  .home .et_pb_cta_1 a.et_pb_promo_button,
  .home .et_pb_cta_2 a.et_pb_promo_button,
  .home .et_pb_cta_3 a.et_pb_promo_button,
  .home .et_pb_cta_4 a.et_pb_promo_button,
  .home .et_pb_cta_5 a.et_pb_promo_button {
    color: #fff !important;
  }
}

@layer manigio-palette {
  :is(.woocommerce-shop, .tax-product_cat) #page-container .et_pb_text.et_clickable .et_pb_text_inner h2 {
    color: #fff !important;
  }
}
@layer manigio-palette {
  #main-header :is(.sub-menu, .et_mobile_menu) { border-top: 0 !important; }
  #main-header :is(.sub-menu, .et_mobile_menu) :is(li.current-menu-item, li.current-menu-item > a, a:hover, a:focus-visible) {
    background-color: #eee !important;
    color: #111 !important;
  }
}

@layer manigio-palette {
  #page-container .products .et_shop_image .et_overlay::before {
    content: "" !important;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(#333, #333) center / 14px 2px no-repeat,
                linear-gradient(#333, #333) center / 2px 14px no-repeat,
                #eee !important;
  }
}

.single-product .et_pb_wc_description .et_pb_module_inner,
.single-product .et_pb_wc_description .et_pb_module_inner p,
.single-product .woocommerce-variation-description p {
  font-weight: 400 !important;
}

/* Larghezza e gerarchia dei titoli restano quelle del layout prodotto. */
@layer manigio-palette {
  .single-product .et_pb_wc_description .et_pb_module_inner p,
  .single-product .woocommerce-variation-description p {
    font-size: 94% !important;
  }
}
