/* 
Theme Name: Hello Elementor Child
Theme URI: https://github.com/elementor/hello-theme/
Description: Hello Elementor Child is a child theme of Hello Elementor, created by Elementor team
Author: Elementor Team
Author URI: https://elementor.com/
Template: hello-elementor
Version: 1.0.1
Text Domain: hello-elementor-child
License: GNU General Public License v3 or later.
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Tags: flexible-header, custom-colors, custom-menu, custom-logo, editor-style, featured-images, rtl-language-support, threaded-comments, translation-ready
*/

/* Nascondi il container originale del cart (spostato via JS nella navbar) */
.elementor-element-8ce6419 {
    display: none !important;
}

/* Container social icons: flex row per allineare cart accanto a Instagram */
[data-id="d2dc5ca"] .elementor-widget-container {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Cart icon nella navbar */
.pessano-nav-cart {
    display: flex;
    align-items: center;
}
.pessano-nav-cart .elementor-menu-cart__toggle .elementor-button {
    background: none !important;
    border: none !important;
    padding: 0 !important;
    color: #786a56 !important;
}
.pessano-nav-cart .elementor-menu-cart__toggle .elementor-button-icon svg,
.pessano-nav-cart .elementor-menu-cart__toggle .elementor-button-icon i {
    font-size: 20px !important;
    width: 20px !important;
    height: 20px !important;
}
/* Badge contatore */
.pessano-nav-cart .elementor-button-icon-qty {
    background: #c5a467 !important;
    color: #fff !important;
    min-width: 16px;
    height: 16px;
    font-size: 10px;
    line-height: 16px;
    border-radius: 50%;
}
/* Nascondi il testo "0,00€" nel toggle */
.pessano-nav-cart .elementor-button-text {
    display: none !important;
}

/* Mini-cart dropdown: nascondi prezzi e totali */
.widget_shopping_cart .woocommerce-mini-cart-item .woocommerce-Price-amount,
.widget_shopping_cart .woocommerce-mini-cart__total,
.elementor-menu-cart__product-price,
.elementor-menu-cart__subtotal {
    display: none !important;
}

/* Override globale bottoni WooCommerce: noce scuro (richiesta Stefano 07/03 + 13/03) */
.woocommerce .button.alt,
.woocommerce .button.checkout,
.woocommerce #respond input#submit.alt,
.woocommerce a.button.alt,
.woocommerce button.button.alt,
.woocommerce input.button.alt,
.woocommerce #place_order {
    background-color: #3E2723 !important;
    color: #fff !important;
    border: none !important;
    border-radius: 3px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 600;
}
.woocommerce .button.alt:hover,
.woocommerce .button.checkout:hover,
.woocommerce a.button.alt:hover,
.woocommerce button.button.alt:hover,
.woocommerce input.button.alt:hover,
.woocommerce #place_order:hover {
    background-color: #2C1A15 !important;
    color: #fff !important;
}

/* === Mini-cart sidebar fix colori (Radar 2026-03-16) === */

/* Bottoni "Vedi la tua richiesta" / "Invia richiesta" → noce scuro come gli altri */
.elementor-menu-cart__footer-buttons .elementor-button {
    background-color: #3E2723 !important;
    color: #fff !important;
    border: none !important;
    border-radius: 3px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 600;
}
.elementor-menu-cart__footer-buttons .elementor-button:hover {
    background-color: #2C1A15 !important;
    color: #fff !important;
}

/* Quantità prodotto ("1 ×") — testo scuro leggibile */
.elementor-menu-cart__product .product-quantity,
.elementor-menu-cart__product .quantity {
    color: #353131 !important;
}

/* Bottone rimuovi (×) — visibile */
.elementor-menu-cart__product .remove,
.elementor-menu-cart__product .remove_from_cart_button {
    color: #786a56 !important;
    opacity: 1 !important;
}
.elementor-menu-cart__product .remove:hover,
.elementor-menu-cart__product .remove_from_cart_button:hover {
    color: #c00 !important;
}

/* === Fix colore link WooCommerce: via viola, usa noce/ocra (2026-03-25) === */
.woocommerce a:not(.button):not(.elementor-button),
.woocommerce-page a:not(.button):not(.elementor-button),
.woocommerce .product_meta a,
.woocommerce .posted_in a,
.woocommerce .tagged_as a,
.woocommerce-message a,
.woocommerce-info a,
.woocommerce .wc-block-components-product-name a {
    color: #786a56 !important;
}
.woocommerce a:not(.button):not(.elementor-button):hover,
.woocommerce-page a:not(.button):not(.elementor-button):hover,
.woocommerce .product_meta a:hover,
.woocommerce .posted_in a:hover {
    color: #D1A245 !important;
}

/* Bottone 'Torna al catalogo' nel carrello */
.woocommerce .return-to-shop a.button,
.wc-block-cart a.wc-block-components-button,
.wp-element-button {
    background-color: #3E2723 !important;
    color: #fff !important;
}

/* Sottotitoli categoria prodotti - marroncino */
[data-id="5c88f72"] .elementor-heading-title,
[data-id="5c88f72"] .elementor-heading-title a {
    color: #786a56 !important;
}

/* === Fix bottoni sidebar mini-cart: testo bianco su noce scuro (2026-04-02) === */
.elementor-menu-cart__footer-buttons .elementor-button.elementor-button--view-cart,
.elementor-menu-cart__footer-buttons .elementor-button.elementor-button--checkout,
.elementor-menu-cart__footer-buttons a.elementor-button,
.elementor-menu-cart__container .elementor-menu-cart__footer-buttons a {
    color: #fff !important;
    background-color: #3E2723 !important;
}
.elementor-menu-cart__footer-buttons .elementor-button.elementor-button--view-cart:hover,
.elementor-menu-cart__footer-buttons .elementor-button.elementor-button--checkout:hover,
.elementor-menu-cart__footer-buttons a.elementor-button:hover,
.elementor-menu-cart__container .elementor-menu-cart__footer-buttons a:hover {
    color: #fff !important;
    background-color: #2C1A15 !important;
}

/* === Layout prodotto: testo a sinistra, foto a destra (2026-04-02) === */
.elementor-element-95ccded > .e-con-inner {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    gap: 40px;
    align-items: flex-start;
}
/* Colonna sinistra: testo */
.elementor-element-2ec51da {
    flex: 1 1 50% !important;
    max-width: 50% !important;
    order: 1 !important;
}
/* Colonna destra: immagini */
.elementor-element-d5825ed {
    flex: 1 1 50% !important;
    max-width: 50% !important;
    order: 2 !important;
}

/* Mobile: torna a colonna */
@media (max-width: 767px) {
    .elementor-element-95ccded > .e-con-inner {
        flex-direction: column !important;
    }
    .elementor-element-2ec51da,
    .elementor-element-d5825ed {
        flex: 1 1 100% !important;
        max-width: 100% !important;
    }
}

/* === Fix testo bottoni sidebar: span era display:none (2026-04-03) === */
.elementor-menu-cart__footer-buttons .elementor-button .elementor-button-text {
    display: inline !important;
    color: #fff !important;
}
