/* 
Theme Name: Hello Elementor Child
Theme URI: https://github.com/elementor/hello-theme-child/
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: 2.0.0
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
*/

/* Add your custom styles here */


/* Menu */

.menu-home-voice a{
    display: none !important;
}

#main-menu-header .menu-item.menu-item-type-post_type.menu-item-object-page.current-page-ancestor a{
  color: var(--e-global-color-accent) !important;
}

#main-menu-header .menu-item.menu-item-type-post_type.menu-item-object-page.current-page-ancestor a:before{
  background-color: var(--e-global-color-ab430b2);
  inset: 0;
  z-index: -1;
  content: "";
  transition: .3s;
  transform: scale(1);
  display: block;
  position: absolute;
  opacity: 1;
}

.single-product .current_page_parent a{
  color: var(--e-global-color-accent) !important;
}

.single-product #main-menu-header .current_page_parent a:before{
  background-color: var(--e-global-color-ab430b2);
  inset: 0;
  z-index: -1;
  content: "";
  transition: .3s;
  transform: scale(1);
  display: block;
  position: absolute;
  opacity: 1;
}

/* Menu Mobile */

@media screen and (max-width: 1024px){
    .menu-menu-mobile-container ul#menu-menu-mobile, .menu-menu-mobile-container ul#menu-menu-mobile .sub-menu{
        list-style-type: none; /* Rimuove i pallini */
        padding-left: 0;       /* Rimuove lo spazio vuoto a sinistra */
        margin-left: 0;        /* Azzera eventuali margini del tema */
        display: flex;
        flex-direction: column;
        gap: 7px;
        padding-top: 10px;
    }

    .menu-menu-mobile-container ul#menu-menu-mobile>li>a{
        color: var(--e-global-color-primary);
        font-family: var(--e-global-typography-f61793b-font-family);
        font-size: var(--e-global-typography-f61793b-font-size);
        text-transform: var(--e-global-typography-f61793b-text-transform);
        line-height: var(--e-global-typography-f61793b-line-height);
        letter-spacing: var(--e-global-typography-f61793b-letter-spacing);
        padding-bottom: 5px;
    }

    .menu-menu-mobile-container ul#menu-menu-mobile>li:not(:first-child){
        border-top: 2px dotted var(--e-global-color-primary);
        padding-top: 5px;
    }
    .menu-menu-mobile-container ul#menu-menu-mobile>li{
        padding-bottom: 10px;
    }

    .menu-menu-mobile-container ul#menu-menu-mobile .sub-menu>li>a{
        color: var(--e-global-color-primary);
        font-size: var(--e-global-typography-text-font-size);
        line-height: var(--e-global-typography-text-line-height);
    }

    .menu-menu-mobile-container ul#menu-menu-mobile .sub-menu>li.menu-special-voice>a{
        color: var(--e-global-color-accent);
    }
}


/* Pulsante Aggiungi al carrello archivio prodotti*/

/* Seleziona il pulsante di aggiunta al carrello quando è vuoto */
.button.add_to_cart_button:empty::before {
    content: "";
    display: inline-block;
    width: 2em;
    height: 2em;
    /* Cambia il colore dell'icona sostituendo il codice %23ffffff (bianco) con quello che preferisci */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23ffffff'%3E%3Cpath d='M11 9h2V6h3V4h-3V1h-2v3H8v2h3v3zm-4 9c-1.1 0-1.99.9-1.99 2S5.9 22 7 22s2-.9 2-2-.9-2-2-2zm10 0c-1.1 0-1.99.9-1.99 2s.89 2 1.99 2 2-.9 2-2-.9-2-2-2zm-9.83-3.25l.03-.12.9-1.63h7.45c.75 0 1.41-.41 1.75-1.03l3.86-7.01L19.42 4l-3.87 7H8.53L4.27 2H1v2h2l3.6 7.59-1.35 2.45c-.16.28-.25.61-.25.96 0 1.1.9 2 2 2h12v-2H7.42c-.13 0-.25-.11-.25-.25z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    vertical-align: middle;
}

.button.add_to_cart_button:empty {
    padding: 10px 15px;
    min-width: 50px;
    text-align: center;
}

/* Nasconde la scritta "Visualizza il carrello" che compare dopo il click nei prodotti dell'archivio */
.elementor-add-to-cart.elementor-product-simple .added_to_cart.wc-forward {
    display: none !important;
}

div.elementor-add-to-cart.elementor-product-simple .button.product_type_simple.added{
    background-color: var(--e-global-color-cfca2b3);
}

.woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles)) a.button.added::after{
    vertical-align: middle;
}

/* Scroll Margin Top per ancore */
@media screen and (max-width: 1024px){
    .ancora-margin-top{
        scroll-margin-top: 6em;
    }
}

/* Form B2b */
.b2b-registration-form.elementor-form{
    max-width:760px;
    margin:0 0 2.5rem 0;
}
.b2b-registration-form .elementor-form-fields-wrapper{
    padding:0;
}
.b2b-registration-form .elementor-field-group{
    margin-bottom:18px;
}
.b2b-registration-form .elementor-field-label{
    display:block;
    margin-bottom:8px;
    color: var(--e-global-color-c499e27);
    font-size:18px;
}
.b2b-registration-form .elementor-field-label:after{
    content: ' *';
    color:#c92b2b;
    margin-left:6px;
}
.b2b-registration-form .elementor-field{
    width:100%;
    background:#f7f4f1;
    border:1px solid rgba(0,0,0,0.06);
    padding:12px 14px;
    border-radius:2px;
    box-sizing:border-box;
    color:#0a2b25;
    font-size:16px;
}
.b2b-registration-form .elementor-field:focus{
    outline:none;
    box-shadow:0 0 0 3px rgba(201,43,43,0.08);
}
.b2b-registration-form .e-form__buttons{
    text-align:right;
    justify-content: end;
}
.b2b-registration-form .elementor-button{
    background:#b71f1f;
    color:#ffffff;
    border:none;
    padding:12px 28px;
    border-radius:2px;
    text-transform:uppercase;
    letter-spacing:1px;

}
/* Link dei form B2B (Condizioni e Privacy nella registrazione, Logout nel login con classe
   sg-b2b-login): al passaggio del mouse lo stesso rosso dei pulsanti, al posto del viola.
   !important: il colore dei link arriva dal kit e dagli stili del widget di Elementor,
   caricati dopo questo file e con selettori più specifici. */
.b2b-registration-form a:hover,
.b2b-registration-form a:focus,
.sg-b2b-login a:hover,
.sg-b2b-login a:focus{
    color:#b71f1f !important;
}
.b2b-form-errors, .b2b-form-success{
    margin-bottom:18px;
    padding:12px 14px;
    border-radius:4px;
}
.b2b-form-errors{
    background:#fff2f2;
    color:#8a1b1b;
    border:1px solid #f0c6c6;
}
.b2b-form-success{
    background:#eef7ee;
    color:#114d2b;
    border:1px solid #c6e6c6;
}
@media (max-width:480px){
    .b2b-registration-form .elementor-button{width:100%; display:block;}
    .b2b-registration-form{padding:0 10px}
}

/* PAGINA CHECKOUT WOOCOMMERCE */

.checkout.woocommerce-checkout{
  margin-top: 2em;
}

#form-pagamento-2 .col-1,
#form-pagamento-2 .col-2{
  background-color: #fff;
  padding: 16px 30px;
  border-radius: 1em;
}

#form-pagamento-2 .col-1 .woocommerce-billing-fields h3,
#form-pagamento-2 .col-2 #order_review_heading{
  font-family: var(--e-global-typography-primary-font-family), Sans-serif;
  font-size: /*var(--e-global-typography-primary-font-size)*/28px;
  font-weight: var(--e-global-typography-primary-font-weight);
  color: var(--e-global-color-primary);
}

#form-pagamento-2 .col-1 label,
#form-pagamento-2 .col-1 #ship-to-different-address span{
  color: var(--e-global-color-cfca2b3);
  font-family: var(--e-global-typography-accent-font-family), Sans-serif;
  font-size: /*var(--e-global-typography-accent-font-size)*/ 14px;
  font-weight: var(--e-global-typography-accent-font-weight);
  text-transform: var(--e-global-typography-accent-text-transform);
  line-height: var(--e-global-typography-accent-line-height);
}

#form-pagamento-2 .col-1 input,
#form-pagamento-2 .col-1 select,
#form-pagamento-2 .col-1 textarea,
#form-pagamento-2 .col-2 input{
  border: 0 !important;
  background-color: #f9fafa;
  border-radius:0;
  color: #69727d;
}

#form-pagamento-2 .col-1 .select2-selection.select2-selection--single{
  border: 0 !important;
  background-color: #f9fafa;
  color: #69727d;
  border-radius:0;
  font-family: var(--e-global-typography-3e7f905-font-family) !important;
  font-size: 1rem !important;
}

.select2-results .select2-results__options{
  font-family: var(--e-global-typography-3e7f905-font-family) !important;
  font-size: 1rem !important;
}

.woocommerce-form-coupon-toggle .woocommerce-info,
.woocommerce-form-coupon-toggle .woocommerce-info #text{
  border:none;
  border-radius: 1em;
  background: white;
  color: var(--e-global-color-cfca2b3);
  font-family: var(--e-global-typography-accent-font-family), Sans-serif;
  font-size: var(--e-global-typography-accent-font-size);
  /* padding: 1em;*/
  margin:0;
}

.woocommerce-form-coupon-toggle .woocommerce-info:before{
  font-family: "Font Awesome 5 Free";
  content: '\f0a3';
  font-weight: 900;
  color: var(--e-global-color-primary);
}

.woocommerce-form-coupon-toggle .woocommerce-info a{
  color: var(--e-global-color-cfca2b3);
}

.woocommerce-form-coupon-toggle .woocommerce-info a:hover{
  color: var(--e-global-color-accent);
}

#woocommerce-checkout-form-coupon.checkout_coupon.woocommerce-form-coupon{
  margin: 0;
  background: #fff;
  border: 0;
  border-radius: 1em;
}

.checkout_coupon.woocommerce-form-coupon .form-row.form-row-last button{
  background: var(--e-global-color-primary);
  border: none;
  color: #fff;
  font-size: 14px;
  font-family: var(--e-global-typography-accent-font-family), Sans-serif;
  font-weight: var(--e-global-typography-text-font-weight);
  padding: 16px;
}

#form-pagamento-2 .col-2 .shop_table.woocommerce-checkout-review-order-table th,
#form-pagamento-2 .col-2 .shop_table.woocommerce-checkout-review-order-table td,
#form-pagamento-2 .col-2 .shop_table.woocommerce-checkout-review-order-table{
  border:none;
  background-color: #fff;
}

#form-pagamento-2 .col-2 .shop_table.woocommerce-checkout-review-order-table th,
#form-pagamento-2 .col-2 .shop_table.woocommerce-checkout-review-order-table .cart-subtotal td,
#form-pagamento-2 .col-2 .shop_table.woocommerce-checkout-review-order-table .order-total .woocommerce-Price-amount.amount{
  font-family: var(--e-global-typography-text-font-family), Sans-serif;
  font-size: var(--e-global-typography-text-font-size);
  font-weight: var(--e-global-typography-text-font-weight) !important;
  line-height: var(--e-global-typography-text-line-height);
  color: var(--e-global-color-accent);
}

#form-pagamento-2 .col-2 .shop_table.woocommerce-checkout-review-order-table .cart_item{
  font-family: var(--e-global-typography-text-font-family), Sans-serif;
  font-size: var(--e-global-typography-text-font-size);
  font-weight: var(--e-global-typography-text-font-weight);
  line-height: var(--e-global-typography-text-line-height);
  color: var(--e-global-color-primary);

}

#form-pagamento-2 .col-2 #shipping_method label{
  color: var(--e-global-color-cfca2b3);
  font-weight: var(--e-global-typography-text-font-weight) !important;
  font-family: var(--e-global-typography-text-font-family), Sans-serif;
  text-transform: uppercase;
}

#form-pagamento-2 .col-2 .woocommerce-checkout-payment {
  background-color: #fff;
}

#form-pagamento-2 .col-2 .payment_box.payment_method_xpay,
#form-pagamento-2 .col-2 .payment_box.payment_method_bacs{
  background-color: #f9fafa;
  color: var(--e-global-color-cfca2b3);
}

#form-pagamento-2 .woocommerce-checkout #payment div.payment_box::before{
  border: #f9fafa; 
}

#form-pagamento-2 .col-2 .wc_payment_methods.payment_methods.methods label{
  text-transform: uppercase;
}

#form-pagamento-2 .col-2 .woocommerce-privacy-policy-text{
  color: var(--e-global-color-cfca2b3);
}

#form-pagamento-2 .col-2 .woocommerce-privacy-policy-text a:hover{
  color: var(--e-global-color-cfca2b3);
}

#form-pagamento-2 .col-2 #payment #place_order{
  font-family: var(--e-global-typography-text-font-family), Sans-serif;
  font-size: var(--e-global-typography-text-font-size);
  font-weight: var(--e-global-typography-text-font-weight);
  line-height: var(--e-global-typography-text-line-height);
  background-color: var(--e-global-color-accent);
  width: 100%;
}

#form-pagamento-2 .woocommerce form .form-row:not(#billing_address_1_field){
  margin: 0 0 15px;
}

#form-pagamento-2 .woocommerce form .form-row label{
  margin-bottom:10px;
}

#form-pagamento-2 .woocommerce-checkout #payment ul.payment_methods li[class*="payment_method_xpay"] label img{
  width:25px;
}

/* Pulsante PayPal bloccato finché non si accettano i termini (assets/js/checkout-paypal-button.js):
   il livello sopra l'iframe di PayPal riceve il clic e fa comparire l'errore */
.sg-paypal-locked{
  position: relative;
  opacity: .5;
}
.sg-paypal-locked::after{
  content: '';
  position: absolute;
  inset: 0;
  z-index: 10;
  cursor: not-allowed;
}
/* Errore sotto la casella dei termini: lo mette lo script (pulsante PayPal o "Effettua
   ordine" fallito). Quello in linea di WooCommerce è nascosto, altrimenti sarebbero due. */
.woocommerce-checkout #payment .sangiobbe-checkout-terms .checkout-inline-error-message{
  display: none;
}
.woocommerce-checkout #payment .sangiobbe-checkout-terms .sg-terms-error{
  margin: 10px 0 0;
  padding: 10px 14px;
  background: #fdecea;
  border-left: 3px solid #b71f1f;
  color: #b71f1f;
  font-size: 14px;
  line-height: 1.4;
}

@media screen and (max-width: 768px){
  #form-pagamento-2 .woocommerce form .form-row,
  #form-pagamento-2 .woocommerce form .form-row.form-row-last button{
    width: 100%;
  }

  /* 1. Allinea il pallino e la label sulla stessa riga */
  #form-pagamento-2 li.wc_payment_method.payment_method_xpay {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
  }

  /* 2. Gestisce lo spazio tra il pallino e il testo */
  #form-pagamento-2 li.wc_payment_method.payment_method_xpay input[type="radio"] {
    margin-right: 12px !important;
    margin-top: 0 !important; /* Rimuove disallineamenti verticali */
  }

  /* 3. Mantiene il testo e l'icona della carta uniti e centrati */
  #form-pagamento-2 li.wc_payment_method.payment_method_xpay label {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px;
    flex: 1; /* Occupa lo spazio rimanente sulla riga */
  }

  /* 4. Forza il box di descrizione ad andare sotto */
  #form-pagamento-2 li.wc_payment_method.payment_method_xpay .payment_box {
    width: 100% !important;
    margin-left: 28px !important; /* Allinea il testo descrittivo sotto la label, non sotto il pallino */
    margin-top: 10px !important;
  }
}

/* Telefono WhatsApp della registrazione rientrato sotto il consenso marketing */
#user-registration-form #customer-phone-wrap{
  box-sizing: border-box;
  padding-left: 28px;
}

/* Verifica numero WhatsApp nella registrazione */
.customer-phone-verify{
  display: flex;
  gap: 8px;
  width: 100%;
}
.customer-phone-verify input{
  flex: 1;
  min-width: 0;
}
.customer-phone-verify button{
  flex-shrink: 0;
  text-transform: uppercase;
}
/* Selettori per ID: battono gli stili di Elementor (registrazione) e WooCommerce (Il mio account) */
#customer-phone-send,
#customer-phone-check{
  border: none;
  border-radius: 0;
  background-color: var(--e-global-color-primary);
  color: #fff;
  cursor: pointer;
}
#customer-phone-send:hover,
#customer-phone-send:focus,
#customer-phone-check:hover,
#customer-phone-check:focus{
  background-color: var(--e-global-color-primary);
  color: #fff;
  opacity: .9;
}
#customer-phone-send.is-secondary,
#customer-phone-send:disabled,
#customer-phone-check:disabled{
  background-color: #d6d3cc;
  color: #000;
  opacity: 1;
  cursor: default;
}
/* Grigio ma ancora cliccabile, per richiedere un nuovo codice */
#customer-phone-send.is-secondary:not(:disabled){
  cursor: pointer;
}
#customer-phone-code-wrap{
  width: 100%;
  margin-top: 12px;
}
.customer-phone-status{
  width: 100%;
  margin: 6px 0 0;
  font-size: 13px;
}
.customer-phone-status.is-ok{
  color: #155724;
}
.customer-phone-status.is-error{
  color: #721c24;
}

#registration-info-tips{
  background-color: #f9fafa;
  color: var(--e-global-color-cfca2b3);
  padding: 12px; 
  margin-bottom: 20px; 
  font-size: 0.8em;
  border-radius: 4px;
}

#registration-info-tips a{
  color: var(--e-global-color-accent);
}


/* Pagina Recap Ordine */

.woocommerce-order-received .woocommerce-thankyou-order-received{
  font-family: var(--e-global-typography-primary-font-family), Sans-serif;
  font-size: 28px;
  font-weight: var(--e-global-typography-primary-font-weight);
  color: var(--e-global-color-primary);
}

.woocommerce-order-received .woocommerce-order-details__title{
  font-family: var(--e-global-typography-primary-font-family), Sans-serif;
  font-size: 28px;
  font-weight: var(--e-global-typography-primary-font-weight);
  color: var(--e-global-color-primary);  
}

.woocommerce-order-received .woocommerce-table.woocommerce-table--custom-fields td{
  text-transform: capitalize;
}

.woocommerce-order-received .woocommerce-table td{
  width:50%;
}

/* Pagina Account */

/* Consensi e preferenze (Dettagli account) */
.customer-account-consents{
  margin-top: 32px;
  padding: 0;
  border: none;
}
.customer-account-consents legend{
  margin-bottom: 16px;
}
.customer-account-consents .customer-consent{
  padding: 16px 20px;
  margin-bottom: 12px;
  background-color: #f7f8f6;
  border-left: 3px solid var(--e-global-color-primary);
}
.customer-account-consents .customer-consent-check{
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0;
  cursor: pointer;
  text-transform: none !important;
}
.customer-account-consents .customer-consent-check input{
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  margin: 3px 0 0;
}
.customer-account-consents .customer-consent-text{
  display: block;
  font-size: 14px;
  line-height: 1.5;
  text-transform: none !important;
}
.customer-account-consents .customer-consent-date{
  display: block;
  margin-top: 4px;
  font-size: 12px;
  color: #6b7280;
}
.customer-account-consents .customer-consent-check + .customer-consent-date{
  margin-left: 26px;
}
.customer-account-consents #customer-phone-wrap{
  margin: 16px 0 0 26px;
  max-width: 480px;
}
.customer-account-consents #customer-phone-wrap label{
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 600;
  text-transform: none !important;
}
.customer-account-consents #customer-phone-wrap input{
  box-sizing: border-box;
  width: 100%;
  padding: 10px 14px;
  font-size: 15px;
  background-color: #fff !important;
  border: 1px solid #c9cdc4 !important;
  border-radius: 4px;
}
.customer-account-consents #customer-phone-wrap input[readonly]{
  background-color: #eef0ec !important;
  color: #555;
  cursor: not-allowed;
}
.customer-account-consents #customer-phone-wrap input:focus{
  border-color: var(--e-global-color-primary) !important;
  outline: none;
  box-shadow: 0 0 0 2px rgba(10, 43, 37, 0.15);
}
.customer-account-consents #customer-phone-wrap .customer-phone-verify button,
.customer-account-consents #customer-phone-wrap .customer-phone-verify button:hover{
  padding: 10px 1.5em;
  border: none;
  border-radius: 0;
  background-color: var(--e-global-color-primary);
  color: #fff;
  font-size: 14px;
}

/* Ordini */

.woocommerce .woocommerce-MyAccount-content .woocommerce-orders-table.woocommerce-MyAccount-orders .woocommerce-button.button.view{
  background-color: var(--e-global-color-primary);
  color: #fff;
  border: none;
  border-radius:0px;
}

.woocommerce .woocommerce-MyAccount-content .woocommerce-table.woocommerce-table--custom-fields.shop_table.custom-fields{
  background-color: #fff;
  background-color: #fff;
  border-color: #d5d8dc;
  border-radius: 3px;
  border-style: solid;
  border-width: 1px 1px 1px 1px;
  padding: 16px 30px 3px 30px;
}

.woocommerce .woocommerce-MyAccount-content .woocommerce-table.woocommerce-table--custom-fields.shop_table.custom-fields td,
.woocommerce .woocommerce-MyAccount-content .woocommerce-table.woocommerce-table--custom-fields.shop_table.custom-fields th {
  font-family: var(--e-global-typography-1376c9f-font-family), Sans-serif;
  font-size: var(--e-global-typography-1376c9f-font-size);
  font-weight: var(--e-global-typography-1376c9f-font-weight);
  line-height: var(--e-global-typography-1376c9f-line-height);
  text-transform:capitalize;
}

.woocommerce .woocommerce-MyAccount-content .woocommerce-table.woocommerce-table--custom-fields.shop_table.custom-fields th{
  border:none;
}

.elementor-widget-woocommerce-my-account .e-my-account-tab:not(.e-my-account-tab__dashboard--custom) .woocommerce .woocommerce-table--order-details.shop_table td,
.elementor-widget-woocommerce-my-account .e-my-account-tab:not(.e-my-account-tab__dashboard--custom) .woocommerce .woocommerce-table--order-details.shop_table th,
.elementor-widget-woocommerce-my-account .e-my-account-tab:not(.e-my-account-tab__dashboard--custom) .woocommerce .woocommerce-table--custom-fields.shop_table td,
.elementor-widget-woocommerce-my-account .e-my-account-tab:not(.e-my-account-tab__dashboard--custom) .woocommerce .woocommerce-table--custom-fields.shop_table th{
  width: 50%;
}

.e-my-account-tab.e-my-account-tab__orders .woocommerce-MyAccount-content-wrapper-no-data .woocommerce-info{
  background-color: #fff;
  border-radius: 1em;
  color: var(--e-global-color-cfca2b3);
  font-family: var(--e-global-typography-accent-font-family), Sans-serif;
  font-size: var(--e-global-typography-accent-font-size);
  border: none;
}

.e-my-account-tab.e-my-account-tab__orders .woocommerce-MyAccount-content-wrapper-no-data .woocommerce-info:before{
  font-family: "Font Awesome 5 Free";
  content: '\f07a';
  font-weight: 900;
  color: var(--e-global-color-primary);
}

.e-my-account-tab.e-my-account-tab__orders .woocommerce-MyAccount-content-wrapper-no-data .woocommerce-info a,
.e-my-account-tab.e-my-account-tab__orders .woocommerce-MyAccount-content-wrapper-no-data .woocommerce-info a:hover{
  background-color: var(--e-global-color-primary) !important;
  color: #fff;
  border: none;
  border-radius:0px;
  font-family: var(--e-global-typography-3e7f905-font-family), Sans-serif;
  font-size: var(--e-global-typography-3e7f905-font-size);
  font-weight: var(--e-global-typography-3e7f905-font-weight);
  text-transform: var(--e-global-typography-3e7f905-text-transform);
}

/* Pagina carrello */

.woocommerce-cart .cart-empty.woocommerce-info{
  background-color: #fff;
  border-radius: 1em;
  color: var(--e-global-color-cfca2b3);
  font-family: var(--e-global-typography-accent-font-family), Sans-serif;
  font-size: var(--e-global-typography-accent-font-size);
  border: none;
}

.woocommerce-cart .cart-empty.woocommerce-info:before{
  font-family: "Font Awesome 5 Free";
  content: '\f07a';
  font-weight: 900;
  color: var(--e-global-color-primary);
}

.woocommerce-cart .button.wc-backward{
  background-color: var(--e-global-color-c499e27);
  font-family: var(--e-global-typography-3e7f905-font-family), Sans-serif;
  font-size: var(--e-global-typography-3e7f905-font-size);
  font-weight: var(--e-global-typography-3e7f905-font-weight);
  text-transform: var(--e-global-typography-3e7f905-text-transform);
  line-height: var(--e-global-typography-3e7f905-line-height);
  fill: var(--e-global-color-secondary);
  color: var(--e-global-color-secondary);
  border-style: none;
  padding: 1em 1em 1em 1em;
}

.woocommerce-cart .button.wc-backward:hover{
  background-color: var(--e-global-color-c499e27);
  font-family: var(--e-global-typography-3e7f905-font-family), Sans-serif;
  font-size: var(--e-global-typography-3e7f905-font-size);
  font-weight: var(--e-global-typography-3e7f905-font-weight);
  text-transform: var(--e-global-typography-3e7f905-text-transform);
  line-height: var(--e-global-typography-3e7f905-line-height);
  fill: var(--e-global-color-secondary);
  color: var(--e-global-color-accent);
  border-style: none;
  padding: 1em 1em 1em 1em;
}


.e-cart__container .ppcp-messages {
    display: none !important;
}

/* Avviso catena del freddo nel carrello */
.e-cart__container .sg-avviso-spedizione-row td {
    display: block;
    width: 100%;
    padding: 0;
    text-align: left !important;
}
.e-cart__container .sg-avviso-spedizione-row td::before {
    display: none;
}
.e-cart__container .sg-avviso-spedizione,
.e-cart__container .sg-avviso-spedizione p {
    text-align: left !important;
}
.e-cart__container .sg-avviso-spedizione {
    margin: 1em 0 1.5em;
    font-family: var(--e-global-typography-text-font-family), Sans-serif;
    color: var(--e-global-color-text);
}
.e-cart__container .sg-avviso-spedizione .sg-avviso-spedizione__titolo {
    margin: 0 0 .3em;
    font-size: 1.2em;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .03em;
    color: var(--e-global-color-accent);
}
.e-cart__container .sg-avviso-spedizione .sg-avviso-spedizione__testo {
    margin: 0;
    line-height: 1.5;
    color: var(--e-global-color-text);
}
.e-cart__container .sg-avviso-spedizione strong {
    font-weight: 700;
    color: var(--e-global-color-text);
}

/* Checkout: pulsante accedi/registrati per utenti non loggati (stile del pulsante "Iscriviti" del footer) */
.sg-checkout-login {
    font-family: var(--e-global-typography-text-font-family), Sans-serif;
    color: var(--e-global-color-text);
}
.sg-checkout-login > p {
    margin: 0 0 2em;
    padding: 1em 1.5em;
    background-color: var(--e-global-color-accent);
    color: var(--e-global-color-eb2f770);
}
/* Il template Accedi/Registrati ha un padding di 5vw pensato per la pagina account: qui lo allineo al resto della pagina */
.sg-checkout-login > .elementor > .e-con.e-con {
    --padding-top: 0;
    --padding-right: 0;
    --padding-bottom: 0;
    --padding-left: 0;
}
.sg-checkout-login .sg-checkout-login__button,
.sg-checkout-login .sg-checkout-login__button:visited {
    display: inline-block;
    padding: 1em 2em;
    border: none;
    background-color: var(--e-global-color-accent);
    color: var(--e-global-color-c499e27);
    font-family: var(--e-global-typography-text-font-family), Sans-serif;
    font-size: 1em;
    font-weight: normal;
    line-height: 1;
    text-transform: uppercase;
    text-decoration: none;
    transition: all .3s;
}
.sg-checkout-login .sg-checkout-login__button:hover,
.sg-checkout-login .sg-checkout-login__button:focus {
    background-color: var(--e-global-color-primary);
    color: var(--e-global-color-c499e27);
}

/* Pulsanti del recupero password (shortcode customer_lost_password_form), come gli altri form */
.customer-lost-password.woocommerce button.button,
.customer-lost-password.woocommerce button.button:hover,
.customer-lost-password.woocommerce button.button:focus{
  padding: 20px 40px;
  border: none;
  border-radius: 0;
  background-color: var(--e-global-color-primary);
  color: #fff;
  font-family: var(--e-global-typography-accent-font-family), Sans-serif;
  font-size: 16px;
  font-weight: var(--e-global-typography-text-font-weight);
  text-transform: uppercase;
}
.customer-lost-password.woocommerce button.button:hover,
.customer-lost-password.woocommerce button.button:focus{
  opacity: .9;
}

/* Conferma password reimpostata, sopra il widget Login */
.sg-login-successo {
    margin: 0 0 1.25em;
    padding: .75em 1em;
    background-color: #d4edda;
    color: #155724;
}

/* Errore login del widget Elementor (pagina account e pagamento) */
.sg-login-errore {
    margin: 0 0 1.25em;
    padding: .75em 1em;
    background-color: var(--e-global-color-accent);
    color: var(--e-global-color-eb2f770);
}

/* ── Form del tema: aspetto comune ─────────────────────────────────────────
   Stessa veste per accesso, registrazione, recupero password e iscrizione
   alla newsletter: etichette verdi sopra il campo, campi bianchi con bordo
   chiaro, caselle di consenso allineate al testo.

   I pulsanti restano quelli del sito: verde pieno, squadrati, maiuscolo.
   I campi del consenso marketing in "Il mio account" hanno regole proprie
   più sotto (stanno dentro un fieldset, non in un form del tema). */
.customer-registration-form,
.newsletter-signup-form,
.b2b-registration-form,
form.elementor-login,
.customer-lost-password form{
  --sg-green: var(--e-global-color-primary, #06514e);
  --sg-field-border: #cfc6b4;
}

.customer-registration-form .elementor-field-group,
.newsletter-signup-form .elementor-field-group,
form.elementor-login .elementor-field-group,
.customer-lost-password form p{
  margin-bottom: 18px;
}

.customer-registration-form .elementor-field-label,
.newsletter-signup-form .elementor-field-label,
form.elementor-login .elementor-field-label,
.customer-lost-password form label{
  display: block;
  margin-bottom: 6px;
  color: var(--sg-green);
  font-family: var(--e-global-typography-text-font-family), Sans-serif;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.3;
  text-transform: none;
}

.customer-registration-form input:not([type="checkbox"]),
.newsletter-signup-form input:not([type="checkbox"]),
form.elementor-login input:not([type="checkbox"]),
.customer-lost-password form input.woocommerce-Input{
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--sg-field-border);
  border-radius: 6px;
  background-color: #fff;
  color: var(--sg-green);
  font-family: var(--e-global-typography-text-font-family), Sans-serif;
  /* 16px: sotto questa misura iOS ingrandisce la pagina al focus */
  font-size: 16px;
  font-weight: 400;
  line-height: 1.3;
  transition: border-color .2s;
}

.customer-registration-form input:not([type="checkbox"]):focus,
.newsletter-signup-form input:not([type="checkbox"]):focus,
form.elementor-login input:not([type="checkbox"]):focus,
.customer-lost-password form input.woocommerce-Input:focus{
  outline: 2px solid rgba(6, 81, 78, .2);
  outline-offset: 1px;
  border-color: var(--sg-green);
}

.customer-registration-form input::placeholder,
.newsletter-signup-form input::placeholder,
form.elementor-login input::placeholder{
  color: #8b8574;
}

.customer-registration-form small,
.newsletter-signup-form small{
  display: block;
  margin-top: 4px;
  font-size: 13px;
  line-height: 1.4;
}

/* Caselle di consenso: casella e testo sulla stessa riga, testo più piccolo */
.customer-registration-form .elementor-field-type-checkbox .elementor-field-label,
.newsletter-signup-form .elementor-field-type-checkbox .elementor-field-label,
.b2b-registration-form .elementor-field-type-checkbox .elementor-field-label,
form.elementor-login .elementor-field-type-checkbox label{
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.45;
  cursor: pointer;
}
.customer-registration-form .elementor-field-type-checkbox .elementor-field-label::after,
.newsletter-signup-form .elementor-field-type-checkbox .elementor-field-label::after,
.b2b-registration-form .elementor-field-type-checkbox .elementor-field-label::after{
  /* L'asterisco del tema finisce in fondo alla riga flex, lontano dal testo:
     l'obbligo è già nella frase e nell'attributo required. */
  display: none;
}
.customer-registration-form input[type="checkbox"],
.newsletter-signup-form input[type="checkbox"],
.b2b-registration-form input[type="checkbox"],
form.elementor-login input[type="checkbox"]{
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  accent-color: var(--sg-green);
}
/* Il form B2B dà a tutti i .elementor-field padding, sfondo e bordo dei campi di testo */
.b2b-registration-form input[type="checkbox"]{
  padding: 0;
}

/* Pulsanti: quelli del sito (verde pieno, squadrati, maiuscolo) */
.customer-registration-form button[type="submit"],
.newsletter-signup-form button[type="submit"],
form.elementor-login button[type="submit"]{
  width: auto;
  padding: 20px 40px;
  border: none;
  border-radius: 0;
  background-color: var(--sg-green);
  color: #fff;
  font-family: var(--e-global-typography-accent-font-family), Sans-serif;
  font-size: 16px;
  font-weight: var(--e-global-typography-text-font-weight);
  text-transform: uppercase;
  cursor: pointer;
}
.customer-registration-form button[type="submit"]:hover,
.customer-registration-form button[type="submit"]:focus,
.newsletter-signup-form button[type="submit"]:hover,
.newsletter-signup-form button[type="submit"]:focus,
form.elementor-login button[type="submit"]:hover,
form.elementor-login button[type="submit"]:focus{
  background-color: var(--sg-green);
  opacity: .9;
}

/* Il widget Login di Elementor impone misura del campo e spaziatura dalle
   impostazioni del widget (.elementor-widget-login .elementor-field-group
   .elementor-field, più specifico delle regole comuni qui sopra): senza questo
   blocco i suoi campi resterebbero più alti e distanziati degli altri. */
.elementor-widget-login form.elementor-login .elementor-field-group{
  margin-bottom: 18px;
}
.elementor-widget-login form.elementor-login .elementor-field-group .elementor-field:not([type="checkbox"]){
  font-size: 16px;
  line-height: 1.3;
}
.elementor-widget-login form.elementor-login .elementor-field-subgroup label{
  font-size: 14px;
}

/* Azioni di servizio ("Reinvia codice", "Cambia email"): link, non pulsanti */
.customer-registration-form button[name="customer_step"],
.customer-registration-form button[name="customer_step"]:hover,
#newsletter-resend,
#newsletter-resend:hover,
#newsletter-restart,
#newsletter-restart:hover{
  width: auto;
  padding: 0;
  border: none;
  border-radius: 0;
  background: none;
  color: var(--sg-green);
  font-size: 14px;
  font-weight: 400;
  letter-spacing: normal;
  text-transform: none;
  text-decoration: underline;
  opacity: 1;
}
.customer-registration-form .elementor-field-group:has(button[name="customer_step"]),
#newsletter-otp-actions{
  margin-top: 14px;
  font-size: 14px;
}

/* Codice OTP: si legge una cifra alla volta */
#customer-field-otp,
#newsletter-field-otp{
  max-width: 220px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 22px;
  letter-spacing: .35em;
  text-align: center;
}

/* ── Iscrizione alla newsletter: la scheda ─────────────────────────────────
   Il form sta in una sezione verde scura, dove le etichette del tema sono
   illeggibili. Invece di colorare il testo per quella sezione, il form ha la
   sua scheda chiara: resta leggibile ovunque lo si metta. */
.newsletter-signup-form{
  box-sizing: border-box;
  width: 100%;
  max-width: 540px;
  margin: 0;
  padding: 28px;
  border-radius: 10px;
  background-color: #f7f4ef;
  color: var(--sg-green);
  box-shadow: 0 8px 28px rgba(0, 0, 0, .18);
  font-size: 16px;
  line-height: 1.45;
}
.newsletter-signup-form a{
  color: var(--sg-green);
  text-decoration: underline;
}
#newsletter-otp-actions{
  text-align: center;
}

/* Esito dell'ultima chiamata: un solo riquadro, riusato per attesa, conferma
   ed errori (il form non ricarica più la pagina, quindi i messaggi del PHP
   non ci sono più). */
.newsletter-signup-message{
  margin-bottom: 20px;
  padding: 12px 16px;
  border: 1px solid transparent;
  border-radius: 4px;
  font-size: 14px;
  line-height: 1.45;
}
.newsletter-signup-message ul{
  margin: 0;
  padding-left: 20px;
}
.newsletter-signup-message.is-info{
  background-color: #eef2f1;
  border-color: #cfdad7;
  color: #1f3d34;
}
.newsletter-signup-message.is-success{
  background-color: #d4edda;
  border-color: #c3e6cb;
  color: #155724;
}
.newsletter-signup-message.is-error{
  background-color: #f8d7da;
  border-color: #f5c6cb;
  color: #721c24;
}

/* Attesa: rotella sul pulsante e campi spenti, così non si chiedono due
   codici di fila (ogni messaggio WhatsApp ha un costo). */
.newsletter-signup-form .elementor-button-content-wrapper{
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.newsletter-spinner{
  display: none;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, .4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: newsletter-spin .7s linear infinite;
}
.newsletter-signup-form.is-loading .newsletter-spinner{
  display: inline-block;
}
.newsletter-signup-form.is-loading{
  cursor: progress;
}
.newsletter-signup-form.is-loading .elementor-field-group input{
  opacity: .6;
  pointer-events: none;
}
.newsletter-signup-form button[disabled]{
  opacity: .75;
  cursor: progress;
}
@keyframes newsletter-spin{
  to{ transform: rotate(360deg); }
}
@media (prefers-reduced-motion: reduce){
  .newsletter-spinner{ animation-duration: 0s; }
}

/* ELENCO INFORMATIVE (shortcode [privacy_policy_list])
   Il markup usa classi Bootstrap, che sul sito non è caricato: qui l'impaginazione
   in linea (icona a sinistra, titolo e "Scarica il file PDF" a destra).
   Verde del sito, rosso dei pulsanti al passaggio del mouse. */
.sg-policy-list{
  --sg-policy-green: var(--e-global-color-primary, #06514e);
  --sg-policy-red: #b71f1f;
  list-style: none;
  margin: 0;
  padding: 0;
}
.sg-policy-list > div{
  margin-bottom: 8px;
}
.sg-policy-list a{
  display: block;
  padding: 8px 0;
  color: var(--sg-policy-green) !important;
  text-decoration: none;
  transition: color .2s ease;
}
.sg-policy-list a:hover,
.sg-policy-list a:focus{
  color: var(--sg-policy-red) !important;
}
.sg-policy-list a > div{
  display: flex;
  align-items: center;
  gap: 16px;
}
.sg-policy-list svg{
  flex-shrink: 0;
  display: block;
}
.sg-policy-list p{
  margin: 0;
  line-height: 1.3;
}
.sg-policy-list .small{
  font-size: .85em;
}
.sg-policy-list .fst-italic{
  margin-top: 2px;
  font-style: italic;
}
.sg-policy-list-updated{
  margin-top: 28px;
  color: var(--e-global-color-primary, #06514e);
}

.woocommerce #tab-info-aggiuntive table.shop_attributes td{
  padding: 5px 15px;
}

.woocommerce #tab-info-aggiuntive table.shop_attributes p{
  padding: 0px 0px;
}