/* Monteporo – Scheda prodotto (DalPraLab) */
:root{
	--mpp-green:#6E9F12; --mpp-green2:#5A840D; --mpp-red:#B4221B;
	--mpp-cream:#F6EFE4; --mpp-cream2:#FBF8F3; --mpp-line:#ECE2D3; --mpp-line2:#E2D3BE;
	--mpp-ink:#2A2421; --mpp-ink2:#6B615B;
	--mpp-font:'Lato',Helvetica,Arial,sans-serif;
}

/* ---------- Base sito: niente font/colori di default di Divi (Open Sans / azzurro) ---------- */
html body{font-family:'Lato',Helvetica,Arial,Lucida,sans-serif}
html body input,html body textarea,html body select,html body button{font-family:inherit}
html body a{color:#B4221B}
html body a:hover{color:#8E1A14}

/* ---------- Pulsanti WooCommerce uniformi (verde del catalogo) ---------- */
html body .woocommerce a.button:not(.mpc-btn),
html body .woocommerce button.button:not(.mpp-qty__b),
html body .woocommerce input.button,
html body .woocommerce-page a.button:not(.mpc-btn),
html body .woocommerce-page button.button:not(.mpp-qty__b),
html body .woocommerce-page input.button,
html body .et_pb_contact_form_container .et_pb_contact_submit,
html body .woocommerce a.button.alt,
html body .woocommerce button.button.alt,
html body .woocommerce input.button.alt,
html body .woocommerce-page a.button.alt,
html body .woocommerce-page button.button.alt,
html body button.single_add_to_cart_button,
html body .et_pb_module button.single_add_to_cart_button.button,
html body .wc-proceed-to-checkout a.checkout-button,
html body .et_pb_module .wc-proceed-to-checkout a.checkout-button.button,
html body #place_order,
html body .et_pb_module #place_order.button,
html body .woocommerce-mini-cart__buttons a.checkout,
html body .wc-block-components-button.contained,
html body .wc-block-cart__submit-button,
html body .wc-block-components-checkout-place-order-button{
	background:var(--mpp-green)!important;background-image:none!important;
	color:#fff!important;border:0!important;border-radius:999px!important;
	font-family:var(--mpp-font)!important;font-weight:800!important;letter-spacing:0!important;text-transform:none!important;
	box-shadow:0 6px 16px rgba(90,132,13,.26)!important;
	transition:background .2s,box-shadow .2s,transform .15s!important;
}
html body .woocommerce a.button:not(.mpc-btn):hover,
html body .woocommerce button.button:not(.mpp-qty__b):hover,
html body .woocommerce input.button:hover,
html body .woocommerce-page a.button:not(.mpc-btn):hover,
html body .woocommerce-page button.button:not(.mpp-qty__b):hover,
html body .woocommerce-page input.button:hover,
html body .et_pb_contact_form_container .et_pb_contact_submit:hover,
html body .woocommerce a.button.alt:hover,
html body .woocommerce button.button.alt:hover,
html body .woocommerce input.button.alt:hover,
html body .woocommerce-page a.button.alt:hover,
html body .woocommerce-page button.button.alt:hover,
html body button.single_add_to_cart_button:hover,
html body .et_pb_module button.single_add_to_cart_button.button:hover,
html body .wc-proceed-to-checkout a.checkout-button:hover,
html body .et_pb_module .wc-proceed-to-checkout a.checkout-button.button:hover,
html body #place_order:hover,
html body .et_pb_module #place_order.button:hover,
html body .woocommerce-mini-cart__buttons a.checkout:hover,
html body .wc-block-components-button.contained:hover,
html body .wc-block-cart__submit-button:hover,
html body .wc-block-components-checkout-place-order-button:hover{
	background:var(--mpp-green2)!important;color:#fff!important;
	box-shadow:0 8px 20px rgba(90,132,13,.34)!important;
}
html body button.single_add_to_cart_button::after,
html body .wc-proceed-to-checkout a.checkout-button::after,
html body #place_order::after,
html body .woocommerce a.button.alt::after,
html body .woocommerce button.button.alt::after,
html body .woocommerce a.button:not(.mpc-btn)::after,html body .woocommerce button.button::after,html body .et_pb_contact_submit::after{display:none!important}

/* ---------- Scelta formato a schede ---------- */
.mpp-hidden,
body.mpp-on form.mpp-has-cards .reset_variations{display:none!important}

.mpp-formati{margin:6px 0 20px;font-family:var(--mpp-font);color:var(--mpp-ink)}
.mpp-formati *,.mpp-formati *::before,.mpp-formati *::after{box-sizing:border-box}
.mpp-formati__head{display:flex;align-items:baseline;justify-content:space-between;flex-wrap:wrap;gap:4px 12px;margin-bottom:14px}
.mpp-formati__title{font-size:13px;font-weight:800;letter-spacing:.12em;text-transform:uppercase;color:var(--mpp-ink)}
.mpp-formati__note{font-size:12.5px;color:var(--mpp-ink2)}
.mpp-formati__grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(128px,1fr));gap:12px;padding-top:8px}
.mpp-formati__grid.mpp-n2{grid-template-columns:repeat(2,minmax(0,1fr))}
.mpp-formati__grid.mpp-n3{grid-template-columns:repeat(3,minmax(0,1fr))}

html body .mpp-formati button.mpp-f{
	position:relative;display:flex;flex-direction:column;align-items:center;justify-content:flex-start;gap:3px;
	width:100%;min-height:0;margin:0;padding:18px 8px 14px;
	background:#fff;border:1.5px solid var(--mpp-line2);border-radius:16px;box-shadow:none;
	font-family:var(--mpp-font);font-size:14px;line-height:1.2;color:var(--mpp-ink);text-align:center;text-transform:none;letter-spacing:0;
	cursor:pointer;transition:border-color .18s,box-shadow .18s,background .18s,transform .15s;
	-webkit-tap-highlight-color:transparent;
}
html body .mpp-formati button.mpp-f::after,html body .mpp-formati button.mpp-f::before{content:none}
html body .mpp-formati button.mpp-f:hover{border-color:#CDB896;transform:translateY(-1px)}
html body .mpp-formati button.mpp-f:focus-visible{outline:3px solid rgba(110,159,18,.35);outline-offset:2px}
html body .mpp-formati button.mpp-f.is-on{
	border-color:var(--mpp-green);background:#F6F9EE;
	box-shadow:inset 0 0 0 1px var(--mpp-green),0 10px 22px rgba(90,132,13,.16);
}
html body .mpp-formati button.mpp-f.is-out{opacity:.55;cursor:not-allowed;background:var(--mpp-cream2);transform:none}

.mpp-f__check{position:absolute;top:9px;right:9px;width:22px;height:22px;border-radius:50%;border:1.5px solid var(--mpp-line2);background:#fff;display:flex;align-items:center;justify-content:center;color:transparent;transition:all .18s}
.mpp-f.is-on .mpp-f__check{background:var(--mpp-green);border-color:var(--mpp-green);color:#fff}

.mpp-f__size{width:44px;height:44px;display:flex;align-items:center;justify-content:center;margin-bottom:4px}
.mpp-f__size i{display:block;width:40px;height:40px;border-radius:50%;background:radial-gradient(circle at 35% 30%,#fff 0,var(--mpp-cream) 55%,#EBDcc4 100%);border:2px solid #E3CFB1;transform-origin:center;transition:all .18s}
.mpp-f.is-on .mpp-f__size i{background:radial-gradient(circle at 35% 30%,#fff 0,#E4EFCB 60%,#CFE2A6 100%);border-color:var(--mpp-green)}

.mpp-f__tier{font-size:11px;font-weight:800;letter-spacing:.1em;text-transform:uppercase;color:var(--mpp-ink2)}
.mpp-f__w{font-size:16px;font-weight:800;color:var(--mpp-ink);white-space:nowrap}
.mpp-f__p{margin-top:6px;font-size:19px;font-weight:900;color:var(--mpp-ink);white-space:nowrap}
.mpp-f__p del{font-size:12.5px;font-weight:400;color:var(--mpp-ink2);margin-right:2px}
.mpp-f__u{font-size:12px;color:var(--mpp-ink2);white-space:nowrap}
.mpp-f__badge{position:absolute;top:-10px;left:50%;transform:translateX(-50%);white-space:nowrap;background:var(--mpp-red);color:#fff;font-size:10.5px;font-weight:800;letter-spacing:.06em;text-transform:uppercase;padding:4px 9px;border-radius:999px;box-shadow:0 4px 10px rgba(180,34,27,.25)}
.mpp-f__badge--out{background:#8B817A;box-shadow:none}

/* Riepilogo variante selezionata (prezzo + disponibilità di WooCommerce) */
body.mpp-on form.mpp-has-cards .single_variation_wrap .woocommerce-variation{margin:0 0 14px;font-family:var(--mpp-font)}
body.mpp-on form.mpp-has-cards .woocommerce-variation-price .price{font-size:24px!important;font-weight:900;color:var(--mpp-ink)!important}
body.mpp-on form.mpp-has-cards .woocommerce-variation-availability p{margin:4px 0 0;font-size:13px;font-weight:700}
body.mpp-on form.mpp-has-cards .woocommerce-variation-availability .in-stock{color:var(--mpp-green2)}
body.mpp-on form.mpp-has-cards .woocommerce-variation-description p{font-size:14px;color:var(--mpp-ink2);margin:0 0 6px}

/* ---------- Quantità + Aggiungi al carrello ---------- */
html body.mpp-on form.cart:not(.variations_form),
html body.mpp-on form.cart .woocommerce-variation-add-to-cart{
	display:flex!important;flex-wrap:wrap;align-items:stretch;gap:12px;
}
html body.mpp-on form.cart:not(.variations_form)::before,html body.mpp-on form.cart:not(.variations_form)::after,
html body.mpp-on form.cart .woocommerce-variation-add-to-cart::before,html body.mpp-on form.cart .woocommerce-variation-add-to-cart::after{display:none!important}
html body.mpp-on form.cart:not(.variations_form) > *:not(.quantity):not(.single_add_to_cart_button),
html body.mpp-on form.cart .woocommerce-variation-add-to-cart > *:not(.quantity):not(.single_add_to_cart_button){flex:1 1 100%}

html body.mpp-on form.cart div.quantity.mpp-qty:not(#mpp_a):not(#mpp_b):not(#mpp_c){
	display:flex!important;align-items:center;justify-content:space-between;gap:2px;
	float:none!important;flex:0 0 auto;width:auto!important;height:56px;margin:0!important;padding:0 6px!important;
	border:1.5px solid var(--mpp-line2)!important;border-radius:999px!important;background:#fff!important;
}
html body.mpp-on form.cart div.quantity.mpp-qty input.qty:not(#mpp_a):not(#mpp_b):not(#mpp_c){
	width:46px!important;min-width:0!important;height:44px!important;margin:0!important;padding:0!important;
	border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;
	font-family:var(--mpp-font)!important;font-size:18px!important;font-weight:800!important;line-height:44px!important;color:var(--mpp-ink)!important;text-align:center!important;
	-moz-appearance:textfield;appearance:textfield;
}
html body.mpp-on form.cart div.quantity.mpp-qty input.qty::-webkit-outer-spin-button,
html body.mpp-on form.cart div.quantity.mpp-qty input.qty::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}
html body.mpp-on form.cart .mpp-qty__b:not(#mpp_a):not(#mpp_b):not(#mpp_c){
	flex:none;width:42px;height:42px;padding:0;margin:0;border:0;border-radius:50%;
	background:var(--mpp-cream);color:var(--mpp-ink);display:flex;align-items:center;justify-content:center;cursor:pointer;
	transition:background .18s,transform .12s;-webkit-tap-highlight-color:transparent;
}
html body.mpp-on form.cart .mpp-qty__b:not(#mpp_a):not(#mpp_b):not(#mpp_c):hover{background:var(--mpp-line2)}
html body.mpp-on form.cart .mpp-qty__b:active{transform:scale(.92)}
html body.mpp-on form.cart .mpp-qty__b:not(#mpp_a):not(#mpp_b):not(#mpp_c):disabled{opacity:.38;cursor:default;transform:none}

html body.mpp-on form.cart button.single_add_to_cart_button.button:not(#mpp_a):not(#mpp_b):not(#mpp_c){
	flex:1 1 220px;display:inline-flex!important;align-items:center;justify-content:center;gap:10px;
	height:56px!important;min-height:56px;margin:0!important;padding:0 26px!important;float:none!important;
	font-size:17px!important;line-height:1!important;
}
html body.mpp-on form.cart button.single_add_to_cart_button.button:not(#mpp_a):not(#mpp_b):not(#mpp_c)::before{
	content:""!important;display:block!important;position:static!important;opacity:1!important;width:20px;height:20px;flex:none;margin:0!important;
	background:currentColor;
	-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 8h14l-1.2 11.2a2 2 0 0 1-2 1.8H8.2a2 2 0 0 1-2-1.8z'/%3E%3Cpath d='M9 8V6a3 3 0 0 1 6 0v2'/%3E%3C/svg%3E") center/contain no-repeat;
	mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 8h14l-1.2 11.2a2 2 0 0 1-2 1.8H8.2a2 2 0 0 1-2-1.8z'/%3E%3Cpath d='M9 8V6a3 3 0 0 1 6 0v2'/%3E%3C/svg%3E") center/contain no-repeat;
}
html body.mpp-on form.cart button.single_add_to_cart_button.button:active{transform:scale(.98)}
html body.mpp-on form.cart button.single_add_to_cart_button.button.disabled:not(#mpp_a):not(#mpp_b):not(#mpp_c){opacity:.45!important;box-shadow:none!important;cursor:not-allowed}

@media (max-width:480px){
	.mpp-formati__grid{gap:8px}
	html body .mpp-formati button.mpp-f{padding:16px 4px 12px;border-radius:14px}
	.mpp-f__check{top:6px;right:6px;width:19px;height:19px}
	.mpp-f__size{width:36px;height:36px}
	.mpp-f__size i{width:32px;height:32px}
	.mpp-f__tier{font-size:10px;letter-spacing:.06em}
	.mpp-f__w{font-size:14px}
	.mpp-f__p{font-size:17px}
	.mpp-f__u{font-size:11px}
	.mpp-f__badge{font-size:9px;padding:3px 7px;letter-spacing:.03em}
	html body.mpp-on form.cart:not(.variations_form),html body.mpp-on form.cart .woocommerce-variation-add-to-cart{gap:10px}
	html body.mpp-on form.cart button.single_add_to_cart_button.button:not(#mpp_a):not(#mpp_b):not(#mpp_c){flex:1 1 0;min-width:0;white-space:nowrap;padding:0 14px!important;font-size:15px!important;gap:8px}
	html body.mpp-on form.cart div.quantity.mpp-qty:not(#mpp_a):not(#mpp_b):not(#mpp_c){padding:0 5px!important}
	html body.mpp-on form.cart div.quantity.mpp-qty input.qty:not(#mpp_a):not(#mpp_b):not(#mpp_c){width:32px!important}
	html body.mpp-on form.cart .mpp-qty__b:not(#mpp_a):not(#mpp_b):not(#mpp_c){width:36px;height:36px}
}
@media (max-width:400px){
	html body.mpp-on form.cart button.single_add_to_cart_button.button:not(#mpp_a):not(#mpp_b):not(#mpp_c)::before{display:none!important}
}

/* Pagamento rapido (Stripe): separatore in italiano, nascosto se non ci sono pulsanti */
html body.mpp-on #fkwcs-payment-request-separator label{font-size:0!important}
html body.mpp-on #fkwcs-payment-request-separator label::after{content:"oppure";font-size:13px;color:var(--mpp-ink2);font-family:var(--mpp-font)}
html body.mpp-on .fkwcs_stripe_smart_button_wrapper:not(:has(iframe)) #fkwcs-payment-request-separator{display:none!important}

/* Checkout FunnelKit: il riepilogo ordine aveva Open Sans impostato nel modulo */
html body [class*="wfacp"] *:not(i):not([class*="icon"]):not([class*="dashicons"]):not(#mpp_a):not(#mpp_b){font-family:'Lato',Helvetica,Arial,Lucida,sans-serif!important}
html body [class*="wfacp"] a:not(.button):not([class*="btn"]):not(#mpp_a):not(#mpp_b){color:#B4221B!important}
