/*Colore del prezzo "Gratis"*/
.modern-products-grid .product .price {
    font-size: 18px;
    font-weight: bold;
    color: #a2a2a2;
    margin-bottom: 20px;
}
/* Woocommerce info */
.elementor-widget-wpr-page-cart .wc-empty
 -cart-message .woocommerce-info{
 background-color:#bababa !important;

}
/* Stripe cart checkout container */
.cart_totals .wc-proceed-to-checkout .wc-stripe-cart-checkout-container{
	display:none;
	
}


/* Contenitore principale della pagina */
.page-wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Footer bloccato in fondo */
.sticky-footer {
  margin-top: auto;
}


a.button.wc-backward {
  display: none;
  margin-top: 20px; /* Spazio sopra il bottone */
  padding: 12px 24px;
  background-color: #112548 !important;
  color: #ffffff !important;
  font-size: 14px;
  font-weight: 500;
  text-align: center;
  text-decoration: none !important;
  border-radius: 999px !important;
  border: none !important;
  box-shadow: none !important;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

a.button.wc-backward:hover {
  background-color: #0a1a33 !important;
  transform: translateY(-1px);
}

.category-image {
 
    height: 100% !important;
}
.category-image img {
    width: 100%;
    height: auto;
}
/* Product name */
.woocommerce-table--order-details tbody .product-name{
	text-align:center;
}
a.added_to_cart.wc-forward {
  display: inline-block;
  padding: 10px 16px;
  background-color: #1e90ff;
  color: #fff !important;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  border-radius: 8px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

a.added_to_cart.wc-forward:hover {
  background-color: #006edc;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
  transform: translateY(-2px);
}

/* Button */
.woocommerce-table--order-details tfoot
 a{
 color:rgba(0,118,204,0) !important;

}
/* Button */
.woocommerce-MyAccount-orders tr a{
 color:#ffffff !important;
 font-weight:600;
}
/* Button */
.woocommerce-table--order-details tfoot a{
	visibility:hidden;
	
}


/* Button */
.modern-products-grid .product
 .add_to_cart_button{
 color:#ffffff !important;
 text-transform:capitalize;
 font-family:'Poppins', sans-serif;
 font-size:16px !important;
 background-color:#182c4b;
 padding-top:15px;
 padding-bottom:15px;
}
/.wpr-product-price .woocommerce-Price-amount bdi{
  color:#a2a2a2;
}
/* Bdi */
.modern-products-grid .price bdi{
 color:#a2a2a2;
}
/* Heading */
.modern-woocommerce-categories .category-item h3{
	font-size:100%;
}
/* Heading */
.modern-woocommerce-categories .category-item h3{
	font-size:85%;
	line-height:1m;
	column-count:1;
	direction:ltr;
	
}

/* Button */
.modern-products-grid .product .button{
	font-weight:400;
	
}
/* Category text */
.modern-woocommerce-categories .category
 -item .category-text{
 background-color:#f7f7f7;

}
/* Link */
.woocommerce-Addresses .woocommerce
 -Address a{
 text-align:center;
 margin-left:0px;
 width:315px;
}
/* Blocca il footer in basso */
footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #f9f9f9; /* Puoi personalizzare il colore */
    z-index: 1000;
    box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.1); /* Aggiunge un'ombra per separarlo dal contenuto */
}

/* Stile interno del footer (opzionale) */
footer .footer-content {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px 20px;
    font-size: 14px;
    color: #666;
}

/*galleria prodotti categorie */

.modern-products-grid .product {
    text-align: left;
		box-shadow:none;
}

.modern-products-grid .product h2 {
    font-size: 18px;
    font-weight: bold;
    margin: 10px 0 5px 16px;
    color: #182C4B;
}

.modern-products-grid .product .button {
    font-weight: 400;
    word-wrap: break-word;
    margin-top: 15px;
}

.modern-products-grid .price bdi {
    color: #a2a2a2;
    font-size: 20px;
		margin-left: 15px;
    word-wrap: break-word;
}

.modern-products-grid .product .add_to_cart_button {
    color: #ffffff !important;
    text-transform: none;
    font-size: 14px !important;
}

[class*="elementor-widget-wpr-"] a {
    text-decoration: none;
    color: #0076CC !important;
}
/* Button */
.elementor .product .button{
 margin-right:30px;

}

.elementor-455 .elementor-element.elementor-element-ad8e364 .wpr-grid-item-add-to-cart .inner-block a {
    border-style: none;
    border-radius: 50px 50px 50px 50px;
    color: #FFFFFF !important;
    background-color: #182C4B;
    padding: 8px 25px 8px 25px !important;
}
* {
    box-sizing: border-box;
}

body {
    overflow-x: hidden;
}
/* Button */
.cart_totals .wc-proceed-to-checkout a{
 background-color:#182c4b !important;
 color:#ffffff !important;

}
/* Woocommerce info */
.elementor-widget-wpr-page-checkout
 .woocommerce-form-coupon-toggle
 .woocommerce-info{
 background-color:#5a99d4 !important;
}
/* Link */
.woocommerce-form-coupon-toggle
 .woocommerce-info a{
 color:#dcdce4 !important;

}
.woocommerce-MyAccount-navigation {
    display: none !important;
}
.woocommerce-Button.wc-forward.button {
    display: none !important;
}
.categoria-grigia {
    color: #808080; /* Grigio */
    
}
.breadcrumb-product {
    color: #808080; /* Nome del prodotto in grigio */
  
}
.elementor-page {
    background-color: #f1f2f6 !important;
}
/* Button */
#place_order{
 background-color:#182c4b;
 color:#ffffff;

}
.product {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%; /* Assicura che il contenitore occupi tutta l'altezza disponibile */
}

.woocommerce-loop-product__title {
    flex-grow: 1; /* Fa sì che i titoli più corti occupino lo stesso spazio dei più lunghi */
}
.button.product_type_simple.add_to_cart_button {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    height: 45px; /* Regola l'altezza per garantire uniformità */
    width: 100%; /* Se vuoi che occupi tutta la larghezza disponibile */
}
/* Image */
.woocommerce-product-gallery__wrapper .woocommerce-product-gallery__image img{
	border-width:1px;
	border-style:solid;
	
}

/* Button */
.woocommerce-EditAccountForm p
 .woocommerce-Button{
 background-color:#182c4b;
 color:#ffffff;
}
/* Button (hover) */
.woocommerce-EditAccountForm p
 .woocommerce-Button:{
 border-top-left-radius:10px;
 border-top-right-radius:10px;
 border-bottom-left-radius:10px;
 border-bottom-right-radius:10px;

}
/* ——— Sblocca il form del carrello: full width ——— */
.elementor .wpr-cart-wrapper .woocommerce-cart-form{
  width: 100% !important;
  max-width: none !important;
  display: block; /* non fare da flex-item “shrink” */
}

/* Il wrapper esterno non deve comprimere: meglio block che flex */
.elementor .wpr-cart-wrapper{
  display: block !important;
}

/* ——— Layout 2 colonne 60/40 ——— */
.elementor .wpr-cart-wrapper .wpr-cart-section-wrap{
  display: flex !important;
  flex-wrap: nowrap;
  gap: 22px;
  align-items: flex-start;
}

/* SINISTRA: prodotti = 60% vero, senza max-width del tema */
.elementor .wpr-cart-wrapper .wpr-cart-section-table-wrap{
  flex: 0 1 70% !important;
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;      /* chiave per evitare il collasso */
}

/* DESTRA: totali = 40% fluido */
.elementor .wpr-cart-wrapper .wpr-cart-section-wrap .cart-collaterals{
  flex: 0 1 30% !important;
  width: 100% !important;
  max-width: none !important;
  float: none !important;
}

/* Tabella prodotti a piena larghezza (rimuovi limiti del tema) */
.elementor .wpr-cart-wrapper .wpr-shop-table{
  width: 100% !important;
  max-width: none !important;
  table-layout: auto;
}
.elementor .wpr-cart-wrapper .wpr-shop-table .product-thumbnail{ width: 96px; }
.elementor .wpr-cart-wrapper .wpr-shop-table img{ max-width: 80px; height:auto; }
.elementor .wpr-cart-wrapper .wpr-shop-table .product-name{ white-space: normal; }

/* Bottone pagamento su una riga (desktop) */
.elementor .wpr-cart-wrapper .wc-proceed-to-checkout{ text-align: right; }
.elementor .wpr-cart-wrapper .wc-proceed-to-checkout a.checkout-button{
  display: inline-block !important;
  white-space: nowrap !important;
  width: auto !important;
}

/* ——— Responsive ——— */
@media (max-width: 1200px){
  .elementor .wpr-cart-wrapper .wpr-cart-section-wrap{ gap: 24px; }
  .elementor .wpr-cart-wrapper .wpr-cart-section-table-wrap{ flex-basis: 65% !important; }
  .elementor .wpr-cart-wrapper .wpr-cart-section-wrap .cart-collaterals{ flex-basis: 35% !important; }
}
@media (max-width: 992px){
  .elementor .wpr-cart-wrapper .wpr-cart-section-wrap{ flex-direction: column; }
  .elementor .wpr-cart-wrapper .wpr-cart-section-table-wrap,
  .elementor .wpr-cart-wrapper .wpr-cart-section-wrap .cart-collaterals{
    flex-basis: auto !important;
    max-width: none !important;
    width: 100% !important;
  }
  .elementor .wpr-cart-wrapper .wc-proceed-to-checkout{ text-align: left; }
  .elementor .wpr-cart-wrapper .wc-proceed-to-checkout a.checkout-button{
    display:block !important;
    width:100% !important;
    white-space: normal !important;
  }
}
/* Solo carrello */
body.woocommerce-cart .cart_totals .woocommerce-shipping-destination{
  display: none !important;          /* nasconde "Spedizione a MILANO." */
}
body.woocommerce-cart .cart_totals .woocommerce-shipping-calculator,
body.woocommerce-cart .cart_totals .shipping-calculator-button{
  display: none !important;          /* nasconde "Modifica indirizzo" e il form */
}
body.woocommerce-cart .woocommerce-message{
  color:#FFFFFF !important;
  background-color:#182c4b !important;
  border-color:#FFFFFF !important;
}
body.woocommerce-cart .woocommerce-message::before{ color:#FFFFFF !important; }
body.woocommerce-cart .woocommerce-message a:not(.button){ color:#FFFFFF !important; text-decoration:underline; }
body.woocommerce-cart .woocommerce-message .button{
  background:#FFFFFF !important; color:#182c4b !important; border-color:#FFFFFF !important;
}
body.woocommerce-cart .woocommerce-message .button:hover{
  background:transparent !important; color:#FFFFFF !important; border-color:#FFFFFF !important;
}
/* ===== Assicura che ogni card sia il riferimento per il badge ===== */
.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product{
  position: relative !important;   /* fondamentale per evitare badge “attaccato a destra” */
  overflow: visible;
  z-index: 1;
}

/* ===== Badge moderno “Già nel carrello” (solo quando stampato dal PHP) ===== */
.gm-in-cart-badge{
  position: absolute;
  top: 10px; right: 10px;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  background: #182C4B;
  color: #fff;
  font: 600 12px/1 "Poppins", sans-serif;
  box-shadow: 0 6px 16px rgba(0,0,0,.18);
  z-index: 3;
}
.gm-in-cart-badge .gm-ico{ width: 14px; height: 14px; fill: currentColor; display:block; }
/* in pagina prodotto: badge statico sotto al titolo */
.single-product .gm-in-cart-badge{ position: static; margin: 6px 0 4px; }

/* ===== Pulsante “Visualizza dettagli” – identico allo stile richiesto ===== */
.gm-view-details-wrap{ margin-top: 14px; }

/* Evita eredità del viola di Woo (.button.alt) sovrascrivendo con più specificità */
.woocommerce ul.products li.product a.button.gm-view-details.single_add_to_cart_button{
  font-family: "Poppins", Sans-serif;
  font-size: 16px;
  font-weight: 400;
  color: #FFFFFF !important;
  background-color: #182C4B !important;
  border: none;
  border-radius: 40px;
  display: block;
  width: 100%;
  text-align: center;
  padding: 14px 18px;
  transition: background-color .3s ease, transform .05s ease;
  box-shadow: 0 4px 14px rgba(24,44,75,.20);
  margin: 0 auto;                 /* centrato nella card */
}

/* Hover/active coerenti al tuo stile */
.woocommerce ul.products li.product a.button.gm-view-details.single_add_to_cart_button:hover{
  background-color: #0F1E34 !important;
  color: #fff !important;
}
.woocommerce ul.products li.product a.button.gm-view-details.single_add_to_cart_button:active{
  transform: translateY(1px);
}

/* opzionale: allinea spaziature col tema */
.woocommerce ul.products li.product .woocommerce-LoopProduct-link{ margin-bottom: 10px; }

/* Responsiveness: badge + bottone su schermi piccoli */
@media (max-width: 480px){
  .gm-in-cart-badge{ top: 8px; right: 8px; padding: 5px 8px; font-size: 11px; }
  .woocommerce ul.products li.product a.button.gm-view-details.single_add_to_cart_button{ padding: 13px 16px; }
}
/* Button */
.elementor .gm-view-details-wrap a {
  font-weight:600 !important;
  text-align:center;
  background-color:#172c4b !important;
  padding-top:15px !important;
  padding-bottom:15px !important;
  text-transform:capitalize !important;
  color:#ffffff !important;
}

/* Button */
.elementor .e-con-boxed .e-con-inner
 .elementor-widget-shortcode .elementor
 -widget-container .elementor-shortcode
 .modern-products-grid .product .gm
 -view-details-wrap a {
  margin-left:10% !important;
  margin-right:10% !important;
}

/* Button (hover) */
.elementor .gm-view-details-wrap a:hover {
  background-color:#398ac6 !important;
  color:#ffffff !important;
  transform:translatex(0px) translatey(0px) !important;
}

/* Cart badge */
.elementor .product .gm-in-cart-badge {
  position:relative;
}

/* View details wrap */
.elementor .product .gm-view-details-wrap {
  text-align:center;
  float:left;
}

/* Button */
.elementor .e-lazyloaded .gm-view-details-wrap a {
  font-family:'Poppins', sans-serif;
  font-weight:400 !important;
  font-size:16px;
  text-transform:none;
  white-space:nowrap;
  width:219px;
  height:47px;
}
/* ===== Responsive: pulsante Visualizza dettagli ===== */

/* Tablet e giù: centrato senza margini fissi */
@media (max-width: 768px){
  .elementor .gm-view-details-wrap a{
    display:block;
    margin-left:auto !important;
    margin-right:auto !important;
    width: 88%;                 /* un po' più stretto per respiro */
    height: 47px;               /* mantiene l’altezza */
    font-size: 16px;
    white-space: nowrap;        /* niente a capo su tablet */
    padding-top:15px !important;
    padding-bottom:15px !important;
  }
  /* override dei margini al 10% della griglia moderna */
  .elementor .e-con-boxed .e-con-inner
  .elementor-widget-shortcode .elementor
  -widget-container .elementor-shortcode
  .modern-products-grid .product .gm
  -view-details-wrap a{
    margin-left:auto !important;
    margin-right:auto !important;
  }
}

/* Mobile piccolo */
@media (max-width: 480px){
  .elementor .gm-view-details-wrap a{
    width: 92%;                 /* quasi full-width */
    height: 44px;               /* leggermente più basso */
    font-size: 15px;
    white-space: normal;        /* consenti eventuale a capo su schermi stretti */
    padding-top:12px !important;
    padding-bottom:12px !important;
  }
}

/* Extra small (es. 320px) */
@media (max-width: 360px){
  .elementor .gm-view-details-wrap a{
    width: 94%;
    font-size: 14px;
    height: 42px;
  }
}
/* Centra davvero il pulsante nella card prodotto */
.modern-products-grid .product .gm-view-details-wrap{
  float: none !important;        /* elimina il float che lo spinge a sinistra */
  display: flex;                 /* centro con flex */
  justify-content: center;
  width: 100%;
  margin-top: 12px;
}

/* Mantieni dimensioni/stile e centra l'anchor */
.modern-products-grid .product .gm-view-details-wrap a{
  display: inline-block;
  width: 219px;
  height: 47px;
  line-height: 47px;             /* testo centrato verticalmente */
  margin: 0 auto;                /* ulteriore sicurezza di centraggio */
  font-family: 'Poppins', sans-serif;
  font-weight: 400 !important;
  font-size: 16px;
  white-space: nowrap;
  background-color: #172c4b !important;
  color: #ffffff !important;
  border-radius: 40px;
}

/* Hover richiesto: sfondo #398ac6 e testo bianco */
.modern-products-grid .product .gm-view-details-wrap a:hover{
  background-color: #398ac6 !important;
  color: #ffffff !important;
}

/* Responsive: su schermi piccoli lascia più respiro ma resta centrato */
@media (max-width: 480px){
  .modern-products-grid .product .gm-view-details-wrap a{
    width: 92%;
    height: 44px;
    line-height: 44px;
  }
}
/* Button */
.elementor .gm-view-details-wrap a{
	
}

/* 481px and larger screen sizes */
@media (min-width:481px){

	/* Button */
	.elementor .gm-view-details-wrap a{
		line-height:1em !important;
	}
	
}
/* Button */
.elementor .e-con-boxed .e-con-inner .elementor-widget-shortcode .elementor-widget-container .elementor-shortcode .modern-products-grid .product .gm-view-details-wrap a{
	font-weight:500 !important;
}

/* Button */
.elementor .gm-view-details-wrap a{
	
}
/* Messaggi WooCommerce personalizzati */
.wpr-checkout-notice .woocommerce-message,
.woocommerce-notices-wrapper .woocommerce-message {
    background-color: #e6f3fb !important;   /* celeste chiaro */
    color: #182c4b !important;              /* testo blu scuro */
    border: 2px solid #182c4b !important;   /* bordo blu scuro */
    border-radius: 10px;
    padding: 15px 20px;
    font-family: "Poppins", sans-serif;
    font-size: 15px;
    font-weight: 400;

    display: flex !important;
    flex-direction: row !important;         /* testo a sinistra, pulsante a destra */
    justify-content: space-between;
    align-items: center;
}

/* Pulsante dentro al messaggio */
.wpr-checkout-notice .woocommerce-message .button,
.woocommerce-notices-wrapper .woocommerce-message .button {
    background-color: #182c4b !important;  /* blu scuro */
    color: #ffffff !important;             /* testo bianco */
    border-radius: 40px;
    padding: 8px 20px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    text-decoration: none;
}

/* Hover pulsante */
.wpr-checkout-notice .woocommerce-message .button:hover,
.woocommerce-notices-wrapper .woocommerce-message .button:hover {
    background-color: #398ac6 !important;  /* blu hover */
    color: #ffffff !important;             /* testo bianco */
}
/* === CARD ARCHIVIO (modern-products-grid) === */

/* Numero prezzo (bdi) */
.modern-products-grid li.product a .price .woocommerce-Price-amount bdi{
  color:#34495e !important;
  font-family:'Poppins', sans-serif !important;
  font-weight:600 !important;
}

/* Suffix "iva esclusa" (small) */
.modern-products-grid li.product a .price small.woocommerce-price-suffix{
  color:#34495e !important;
  font-family:'Poppins', sans-serif !important;
  font-weight:600 !important;
}

/* Riga IVA incl. (contenitore) — stessa linea e allineamento del prezzo */
.modern-products-grid li.product a .price .gm-prezzo-ivato{
  display:block !important;
  text-align:left !important;
  margin-left:1px !important;   /* identico al margine che usi per il prezzo */
  margin-top:4px !important;
  line-height:1 !important;
  font-size:.65em !important;
}

/* Etichetta "IVA incl." */
.modern-products-grid li.product a .price .gm-prezzo-ivato .gm-prezzo-label{
  color:#34495e !important;
  font-weight:600 !important;
  font-family:'Poppins', sans-serif !important;
  text-transform:lowercase !important;
  margin-left:2px !important;
}

/* Valore "IVA incl." (bdi interno) */
.modern-products-grid li.product a .price .gm-prezzo-ivato .gm-prezzo-valore .woocommerce-Price-amount bdi{
  font-weight:400 !important;
  color:#425b7e !important; /* se preferisci blu: #0a2d4d */
}
/* === SINGOLO PRODOTTO — WPR Product Price === */

/* numero prezzo */
.single-product .elementor-widget-wpr-product-price .wpr-product-price .woocommerce-Price-amount bdi{
  color:#34495e !important;
  font-family:'Poppins', sans-serif !important;
  font-weight:600 !important;
}

/* suffix "iva esclusa" */
.single-product .elementor-widget-wpr-product-price .wpr-product-price small{
  color:#34495e !important;
  font-family:'Poppins', sans-serif !important;
  font-weight:600 !important;
}

/* riga IVA incl. (contenitore) */
.single-product .elementor-widget-wpr-product-price .wpr-product-price .gm-prezzo-ivato{
  display:block !important;
  text-align:left !important;
  margin-top:6px !important;
  line-height:1.2 !important;
  font-size:.95em !important;
}

/* etichetta "IVA incl." */
.single-product .elementor-widget-wpr-product-price .wpr-product-price .gm-prezzo-ivato .gm-prezzo-label{
  color:#425b7e !important;               /* o #34495e se preferisci */
  font-family:'Poppins', sans-serif !important;
  font-weight:400 !important;
  text-transform:lowercase !important;
  margin-left:15px !important;
 font-size:19px !important;
  font-weight:400 !important;
}

/* valore "IVA incl." */
.single-product .elementor-widget-wpr-product-price .wpr-product-price .gm-prezzo-ivato .gm-prezzo-valore .woocommerce-Price-amount bdi{
  color:#425b7e !important;               /* o #0a2d4d */
  font-size:19px !important;
  font-weight:400 !important;
}