/*
Theme Name: Enwoo Child
Template: enwoo
*/

/* =====================================================
   CSS PERSONALIZZATO — Mosche Artificiali di Massimo Clini
   Aggiornato: marzo 2026
   ===================================================== */


/* --- TESTO GRIGIO MEDIO (esclude bottoni e amount-cart) --- */
body,
body *:not(i):not(.fa):not([class*="icon"]):not(.amount-cart) {
    color: #555555;
}


/* --- BOTTONI VERDE OLIVA --- */
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit,
.woocommerce #respond input#submit.alt,
.woocommerce a.button.alt,
.woocommerce button.button.alt,
.woocommerce input.button.alt,
.woocommerce .single_add_to_cart_button,
.woocommerce .add_to_cart_button {
    background-color: #5C6B3A !important;
    border-color: #5C6B3A !important;
    color: #ffffff !important;
}
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce .single_add_to_cart_button:hover,
.woocommerce .add_to_cart_button:hover {
    background-color: #4A5630 !important;
    border-color: #4A5630 !important;
    color: #ffffff !important;
}


/* --- BOTTONE RICERCA HEADER --- */
button.header-search-button {
    background-color: #5C6B3A !important;
    color: #ffffff !important;
}
button.header-search-button:hover {
    background-color: #4A5630 !important;
}


/* --- CARRELLO HEADER --- */
.amount-cart {
    background: #5C6B3A !important;
    color: #ffffff !important;
}
.amount-cart::before {
    border-right-color: #5C6B3A !important;
}


/* --- SFONDO GENERALE #f7fafc --- */
body, .site-main, .content-area, #primary, #content, .main-container, .row,
.woocommerce-page #content, .woocommerce-page .site-content,
.tax-product_cat #primary, .post-type-archive-product #primary,
.page-wrapper, .entry-content {
    background-color: #f7fafc !important;
}


/* --- CARD PRODOTTI sfondo #f7fafc --- */
.woocommerce ul.products li.product,
.ma-blog-card {
    background-color: #f7fafc !important;
}


/* --- MEGA MENU --- */
#mega-menu-wrap-main_menu,
#mega-menu-wrap-main_menu #mega-menu-main_menu {
    background-color: #f7fafc !important;
    padding: 0px;
}
#mega-menu-wrap-main_menu #mega-menu-main_menu {
    display: flex !important;
    justify-content: center !important;
    gap: 6px !important;
    width: 100% !important;
    margin: 0 auto;
}
#mega-menu-wrap-main_menu #mega-menu-main_menu > li.mega-menu-item {
    flex: 0 1 auto !important;
    text-align: center !important;
}
#mega-menu-wrap-main_menu #mega-menu-main_menu > li.mega-menu-item > a.mega-menu-link {
    text-align: center !important;
    justify-content: center !important;
    white-space: nowrap !important;
}


/* --- IMMAGINI PRODOTTI UNIFORMI --- */
.woocommerce ul.products li.product a img {
    height: 250px;
    object-fit: cover;
    width: 100%;
    border-radius: 10px;
    border-bottom: 3px solid #cccccc;
    margin-bottom: 10px;
}
.woocommerce ul.products li.product-category a img {
    height: 220px !important;
    object-fit: cover !important;
    width: 100% !important;
}


/* --- VARIANTI CENTRATE --- */
.woocommerce ul.products li.product .variable-items-wrapper {
    justify-content: center;
}
.woocommerce ul.products li.product .quantity {
    margin-bottom: 12px;
}


/* --- NASCONDI ICONA MENU CATEGORIE --- */
li.menu-item-has-children a.envo-categories-menu-first::before {
    display: none;
}


/* --- BARRA RICERCA HEADER 50% --- */
.site-header .woocommerce-product-search,
.site-header form.woocommerce-product-search {
    width: 50% !important;
}


/* --- ELEMENTI NASCOSTI --- */
.archive-product-categories { margin-left: 5px; display: none; }
.page h1.single-title { margin-bottom: 15px; margin-top: 10px; display: none; }
#sidebar, #secondary, .widget-area {
    display: none !important;
    width: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
}


/* --- FIX LAYOUT SENZA SIDEBAR (col-md-9) --- */
.blog .page-area .col-md-9,
.archive .page-area .col-md-9,
article.col-md-9,
.page-area .col-md-9,
#primary.col-md-9 {
    width: 100% !important;
    float: none !important;
    margin-left: 0 !important;
}
#primary,
#main,
.content-area {
    width: 100% !important;
    max-width: 100% !important;
    float: none !important;
    margin: 0 !important;
}


/* --- HEADER + MENU STICKY --- */
.site-header,
#masthead {
    position: sticky !important;
    top: 0 !important;
    z-index: 10000 !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.08);
}
#mega-menu-wrap-main_menu {
    position: sticky !important;
    top: 90px !important;
    z-index: 9999 !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}


/* --- BORDO CASELLA RICERCA OLIVA --- */
.site-header .woocommerce-product-search input[type="search"],
.site-header .woocommerce-product-search select {
    border-color: #5C6B3A !important;
    outline-color: #5C6B3A !important;
}
.site-header .woocommerce-product-search input[type="search"]:focus,
.site-header .woocommerce-product-search select:focus {
    border-color: #5C6B3A !important;
    box-shadow: 0 0 0 2px rgba(92,107,58,0.2) !important;
}


/* --- SFONDO CASELLA RICERCA HEADER --- */
.site-header .woocommerce-product-search input[type="search"],
.site-header .woocommerce-product-search select,
.header-search-form input[type="search"],
.header-search-form select {
    background-color: #EDF2F7 !important;
}


/* --- STILE SELECT/DROPDOWN --- */
select,
.woocommerce select,
.woocommerce-ordering select,
.woocommerce .woocommerce-ordering select {
    border: 1px solid #4A5630 !important;
    color: #4A5630 !important;
    background-color: #EDF2F7 !important;
    border-radius: 4px !important;
}

