/* ==========================================================================
   Di Palma – correzioni grafiche (plugin dipalma-sito)
   Colori di riferimento del sito: blu #0b5ab5, blu scuro #10243e.
   ========================================================================== */

:root {
	--dp-blue: #0b5ab5;
	--dp-blue-dark: #10243e;
	--dp-border: #dce6f1;
	--dp-muted: #5a6b7f;
}

/* --------------------------------------------------------------------------
   Accessibilità: focus visibile da tastiera su link, pulsanti e campi.
   (Il tema rimuove l'outline: chi naviga con Tab non vedeva dove si trovava.)
   -------------------------------------------------------------------------- */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible,
[role="button"]:focus-visible,
[tabindex]:focus-visible {
	outline: 3px solid var(--dp-blue) !important;
	outline-offset: 2px !important;
	box-shadow: 0 0 0 5px rgba(255, 255, 255, .85) !important;
}

/* Testo per lettori di schermo (usato anche da WooCommerce). */
.screen-reader-text:not(:focus) {
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	width: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute !important;
	word-wrap: normal !important;
}

/* Menu mobile: il tema stampa sempre il titolo "Menu categorie" anche quando
   il menu categorie è disattivato, lasciando una sezione vuota. */
body.dipalma-no-category-menu .site-drawer-body .drawer-heading:has(+ nav.klbth-menu-wrapper:not(.drawer-primary)) {
	display: none !important;
}

/* --------------------------------------------------------------------------
   Negozio: titolo principale (H1) generato dal plugin.
   -------------------------------------------------------------------------- */
.dipalma-shop-title {
	margin: 0 0 18px;
	color: var(--dp-blue-dark);
	font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.1rem);
	line-height: 1.2;
	font-weight: 800;
}

/* Titoli prodotto lunghi nelle schede: mai tagliati a metà parola, altezza uniforme. */
.dipalma-product-card-v2 .dipalma-title-v2 {
	overflow-wrap: break-word;
	hyphens: manual;
}

/* --------------------------------------------------------------------------
   Carrello su smartphone: la tabella era larga 440px e veniva tagliata
   (quantità e prezzi fuori schermo). Ogni riga diventa una scheda.
   -------------------------------------------------------------------------- */
@media (max-width: 767px) {
	.woocommerce-cart .woocommerce-cart-form {
		overflow: visible !important;
	}

	.woocommerce-cart table.shop_table.cart {
		display: block;
		width: 100% !important;
		min-width: 0 !important;
		border: 0 !important;
	}

	.woocommerce-cart table.shop_table.cart thead {
		display: none !important;
	}

	.woocommerce-cart table.shop_table.cart tbody {
		display: block;
		width: 100%;
	}

	.woocommerce-cart table.shop_table.cart tr.cart_item {
		display: grid !important;
		grid-template-columns: 76px minmax(0, 1fr) 36px;
		grid-template-areas:
			"thumb name remove"
			"thumb price price"
			"thumb qty qty"
			"thumb subtotal subtotal";
		box-sizing: border-box;
		width: 100% !important;
		column-gap: 12px;
		row-gap: 6px;
		align-items: center;
		padding: 14px !important;
		margin: 0 0 12px;
		border: 1px solid var(--dp-border);
		border-radius: 10px;
		background: #fff;
	}

	.woocommerce-cart table.shop_table.cart tr.cart_item td {
		display: block !important;
		width: auto !important;
		padding: 0 !important;
		border: 0 !important;
		text-align: left !important;
		min-width: 0;
	}

	.woocommerce-cart table.shop_table.cart td.product-thumbnail { grid-area: thumb; align-self: start; }
	.woocommerce-cart table.shop_table.cart td.product-thumbnail img { width: 76px !important; height: 76px !important; object-fit: contain; }
	.woocommerce-cart table.shop_table.cart td.product-name { grid-area: name; font-weight: 700; line-height: 1.3; overflow-wrap: anywhere; }
	.woocommerce-cart table.shop_table.cart td.product-remove { grid-area: remove; justify-self: end; align-self: start; }
	.woocommerce-cart table.shop_table.cart td.product-remove {
		position: static !important;
		width: 36px !important;
		height: 36px !important;
	}
	.woocommerce-cart table.shop_table.cart td.product-remove a.remove {
		position: static !important;
		transform: none !important;
		display: inline-flex !important;
		align-items: center;
		justify-content: center;
		width: 36px !important;
		height: 36px !important;
		font-size: 22px !important;
	}
	.woocommerce-cart table.shop_table.cart td.product-price { grid-area: price; }
	.woocommerce-cart table.shop_table.cart td.product-quantity { grid-area: qty; }
	.woocommerce-cart table.shop_table.cart td.product-subtotal { grid-area: subtotal; font-weight: 700; }

	.woocommerce-cart table.shop_table.cart td.product-price::before,
	.woocommerce-cart table.shop_table.cart td.product-quantity::before,
	.woocommerce-cart table.shop_table.cart td.product-subtotal::before {
		content: attr(data-title) ": ";
		display: inline-block;
		min-width: 92px;
		color: var(--dp-muted);
		font-size: 13px;
		font-weight: 600;
		float: none !important;
	}

	.woocommerce-cart table.shop_table.cart td.product-quantity .quantity {
		display: inline-flex !important;
		vertical-align: middle;
	}

	/* Riga con codice sconto e "Aggiorna carrello". */
	.woocommerce-cart table.shop_table.cart tr:not(.cart_item) {
		display: block;
		width: 100%;
	}
	.woocommerce-cart table.shop_table.cart td.actions {
		display: block !important;
		width: 100% !important;
		padding: 4px 0 0 !important;
		border: 0 !important;
	}
	.woocommerce-cart table.shop_table.cart td.actions .coupon {
		display: flex !important;
		flex-direction: column;
		gap: 8px;
		width: 100% !important;
		float: none !important;
	}
	.woocommerce-cart table.shop_table.cart td.actions .coupon .input-text,
	.woocommerce-cart table.shop_table.cart td.actions .button {
		width: 100% !important;
		max-width: none !important;
		margin: 0 0 8px !important;
		float: none !important;
	}
}

/* Totali carrello/checkout su smartphone: le opzioni di spedizione occupano tutta la larghezza. */
@media (max-width: 767px) {
	.cart_totals table.shop_table,
	.cart_totals table.shop_table tbody {
		display: block !important;
		width: 100% !important;
	}
	.cart_totals table.shop_table tr {
		display: flex !important;
		justify-content: space-between;
		align-items: baseline;
		gap: 12px;
		width: 100%;
	}
	.cart_totals table.shop_table tr {
		border-bottom: 1px solid #e6ebf1;
		padding: 14px 0;
	}
	.cart_totals table.shop_table tr:last-child {
		border-bottom: 0;
	}
	.cart_totals table.shop_table tr th,
	.cart_totals table.shop_table tr td {
		width: auto !important;
		border: 0 !important;
		padding-top: 0 !important;
		padding-bottom: 0 !important;
	}
	.cart_totals tr.woocommerce-shipping-totals,
	.woocommerce-checkout-review-order-table tr.woocommerce-shipping-totals {
		display: block !important;
		width: 100%;
	}
	.cart_totals tr.woocommerce-shipping-totals th,
	.cart_totals tr.woocommerce-shipping-totals td,
	.woocommerce-checkout-review-order-table tr.woocommerce-shipping-totals th,
	.woocommerce-checkout-review-order-table tr.woocommerce-shipping-totals td {
		display: block !important;
		width: 100% !important;
		box-sizing: border-box;
		text-align: left !important;
		padding-left: 0 !important;
		padding-right: 0 !important;
	}
	.cart_totals tr.woocommerce-shipping-totals td::before {
		display: none !important;
	}
	ul#shipping_method li {
		display: flex !important;
		align-items: flex-start;
		gap: 8px;
		margin: 0 0 10px !important;
		text-align: left !important;
	}
	ul#shipping_method li input[type="radio"] {
		flex: 0 0 auto;
		margin-top: 4px !important;
	}
	ul#shipping_method li label {
		margin: 0 !important;
		line-height: 1.35;
	}
}

/* --------------------------------------------------------------------------
   Checkout: il campo Codice Fiscale è obbligatorio per l'Italia.
   -------------------------------------------------------------------------- */
.woocommerce-checkout .dipalma-fiscal-field abbr.required {
	text-decoration: none;
	border: 0;
}

/* --------------------------------------------------------------------------
   Smartphone: lo spazio occupato dai pulsanti fissi in basso
   (Catalogo Agri / Garden e assistente) non deve coprire il fondo pagina.
   -------------------------------------------------------------------------- */
@media (max-width: 767px) {
	.site-footer {
		padding-bottom: calc(84px + env(safe-area-inset-bottom, 0px));
	}
}

/* Tablet e desktop: le linguette "Catalogo Agri / Garden" fissate a metà del
   bordo sinistro coprivano titoli, filtri e prodotti. Le portiamo in basso, in riga. */
@media (min-width: 768px) {
	html body #dipalma-floating-cataloghi {
		top: auto !important;
		bottom: calc(16px + env(safe-area-inset-bottom, 0px)) !important;
		left: 16px !important;
		transform: none !important;
		flex-direction: row !important;
		gap: 8px !important;
	}
	html body #dipalma-floating-cataloghi .dipalma-float {
		border-radius: 10px !important;
	}
	.site-footer {
		padding-bottom: 90px;
	}
}

/* Negozio: terzo livello di categorie nei filtri (es. Attrezzature agricole → Trincia). */
.dipalma-child-category.dipalma-grandchild-category {
	padding-left: 28px !important;
}

/* Titolo principale di carrello, checkout, account. */
.dipalma-page-title {
	margin: 24px 0 18px;
	color: var(--dp-blue-dark);
	font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.1rem);
	line-height: 1.2;
	font-weight: 800;
}

/* ==========================================================================
   Revisione grafica (18/11/2026)
   ========================================================================== */

:root {
	--dp-blue-hover: #08488f;
	--dp-text: #2b3a4d;
	--dp-text-soft: #4a5a6e;
	--dp-surface: #f5f8fc;
	--dp-radius: 10px;
}

::selection {
	background: rgba(11, 90, 181, .18);
	color: var(--dp-blue-dark);
}

/* --- Prezzi: "IVA inclusa" discreta accanto al prezzo ------------------- */
.dipalma-iva {
	display: inline-block;
	margin-left: .35em;
	font-size: 13px !important;
	font-weight: 500 !important;
	line-height: 1.2;
	color: var(--dp-text-soft) !important;
	white-space: nowrap;
	vertical-align: middle;
	text-decoration: none !important;
}

/* --- Scheda prodotto: ordine logico titolo → prezzo → acquisto ---------- */
.single-product .product-detail {
	display: flex;
	flex-direction: column;
}
.single-product .product-detail > .product_title { order: 1; }
.single-product .product-detail > .woocommerce-product-rating { order: 2; }
.single-product .product-detail > .price { order: 3; }
.single-product .product-detail > .dipalma-quote-single-wrap,
.single-product .product-detail > form.cart { order: 4; }
.single-product .product-detail > .dipalma-product-info { order: 5; }
.single-product .product-detail > .woocommerce-product-details__short-description { order: 6; }
.single-product .product-detail > .pwb-single-product-brands { order: 7; }
.single-product .product-detail > .product_meta { order: 8; }

.single-product .product-detail > .product_title {
	font-size: clamp(1.35rem, 1.05rem + 1.3vw, 2rem) !important;
	line-height: 1.2 !important;
	letter-spacing: -0.01em;
	text-wrap: balance;
	margin-bottom: 10px !important;
}

.single-product .product-detail > .price {
	margin: 0 0 18px !important;
	line-height: 1.2;
}

/* Prodotti a preventivo: "Prezzo su richiesta" sopra il pulsante, nota sotto. */
.single-product .product-detail .dipalma-quote-price {
	font-size: 1.35rem !important;
}
.single-product .dipalma-quote-single-wrap {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 8px;
	margin: 0 0 18px;
}
.single-product .dipalma-quote-single-wrap .dipalma-quote-help {
	color: var(--dp-text-soft);
	font-size: 14px;
}

/* Pulsanti d'acquisto: il blu del sito al posto del verde predefinito del tema. */
.single-product .single_add_to_cart_button,
.single-product .dipalma-quote-single,
.woocommerce .checkout-button,
.woocommerce #place_order {
	background: var(--dp-blue) !important;
	border-color: var(--dp-blue) !important;
	color: #fff !important;
	min-height: 48px;
	padding-inline: 24px !important;
	border-radius: 8px !important;
	font-weight: 700 !important;
	transition: background-color .15s ease-out;
}
.single-product .single_add_to_cart_button:hover,
.single-product .dipalma-quote-single:hover,
.woocommerce .checkout-button:hover,
.woocommerce #place_order:hover {
	background: var(--dp-blue-hover) !important;
	border-color: var(--dp-blue-hover) !important;
}
.single-product form.cart {
	margin: 0 0 18px !important;
}

/* Riquadro informazioni d'acquisto. */
.dipalma-product-info {
	list-style: none;
	margin: 0 0 22px !important;
	padding: 14px 16px !important;
	display: grid;
	gap: 10px;
	background: var(--dp-surface);
	border: 1px solid var(--dp-border);
	border-radius: var(--dp-radius);
	font-size: 14px;
	line-height: 1.4;
	color: var(--dp-text);
}
.dipalma-product-info li {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	margin: 0 !important;
}
.dipalma-product-info svg {
	flex: 0 0 auto;
	color: var(--dp-blue);
	margin-top: -1px;
}
.dipalma-product-info a {
	color: var(--dp-text);
	text-decoration: underline;
	text-decoration-color: rgba(11, 90, 181, .35);
	text-underline-offset: 3px;
}
.dipalma-product-info a:hover {
	color: var(--dp-blue);
}
.dipalma-product-info .woocommerce-Price-amount {
	font-weight: 700;
}

/* Descrizione breve leggibile (era grigio chiaro a 13px, contrasto insufficiente). */
.single-product .woocommerce-product-details__short-description,
.single-product .woocommerce-product-details__short-description p {
	color: var(--dp-text-soft) !important;
	font-size: 15px !important;
	line-height: 1.6 !important;
	max-width: 65ch;
}

/* Logo del marchio: compatto, non più un blocco di 166px tra prezzo e descrizione. */
.single-product .pwb-single-product-brands {
	margin: 4px 0 16px !important;
}
.single-product .pwb-single-product-brands img {
	/* I loghi sono immagini quadrate 150×150 con molto bianco intorno. */
	height: 72px !important;
	max-height: none !important;
	width: auto !important;
	object-fit: contain;
	margin: -8px 0;
}

/* Descrizione estesa: misura di lettura comoda. */
.single-product .woocommerce-Tabs-panel--description {
	max-width: 75ch;
	color: var(--dp-text);
	font-size: 15px;
	line-height: 1.65;
}

/* --- Prodotti correlati: prezzo e pulsante uno sotto l'altro ------------- */
.related.products .product-cart-form {
	display: flex !important;
	flex-direction: column;
	align-items: stretch;
	gap: 10px;
}
.related.products .product-cart-form .price,
.related.products .dipalma-quote-price {
	font-size: 15px !important;
	line-height: 1.3;
}
.related.products .product-cart-form .button {
	width: 100%;
	min-height: 40px;
	justify-content: center;
	text-align: center;
	margin: 0 !important;
}
.related.products .product-title {
	font-size: 15px !important;
	line-height: 1.35 !important;
}

/* --- Intestazione: "Accedi o registrati" senza maiuscole forzate -------- */
.site-header .sub-text,
.header-main .sub-text {
	text-transform: none !important;
}

/* --- Negozio su smartphone ---------------------------------------------- */
@media screen and (max-width: 900px) {
	/* Il pannello filtri nasce già chiuso: prima compariva e poi scorreva via a ogni caricamento
	   (il suo CSS arriva in fondo alla pagina). */
	.dipalma-shop-sidebar-v2 {
		position: fixed !important;
		top: 0;
		left: 0;
		bottom: 0;
		width: min(360px, 88vw);
		transform: translateX(-105%);
		z-index: 2147483200;
	}
}

@media screen and (max-width: 1024px) {
	/* Schede prodotto: testi a 10,5-11px erano illeggibili su telefono e tablet. */
	html body .dipalma-product-card-v2 .dipalma-title-v2 {
		font-size: 13px !important;
		line-height: 1.35 !important;
		height: auto !important;
		min-height: calc(13px * 1.35 * 3) !important;
		-webkit-line-clamp: 3 !important;
		letter-spacing: 0 !important;
	}
	html body .dipalma-product-card-v2 .dipalma-price-v2,
	html body .dipalma-product-card-v2 .dipalma-price-v2 .amount,
	html body .dipalma-product-card-v2 .dipalma-quote-price {
		font-size: 15px !important;
		line-height: 1.25 !important;
	}
	html body .dipalma-product-card-v2 .dipalma-price-v2 del,
	html body .dipalma-product-card-v2 .dipalma-price-v2 del .amount {
		font-size: 12.5px !important;
	}
	html body .dipalma-product-card-v2 .dipalma-button-v2,
	html body .dipalma-product-card-v2 .button {
		font-size: 13px !important;
		line-height: 1.2 !important;
		min-height: 44px !important;
	}
	html body .dipalma-product-card-v2 .dipalma-stock-v2 {
		font-size: 12.5px !important;
	}
	html body .dipalma-results-v2 {
		font-size: 13px !important;
		color: var(--dp-text-soft) !important;
	}
	html body .dipalma-product-card-v2 .dipalma-iva {
		display: block;
		margin: 2px 0 0;
		font-size: 11.5px !important;
	}
}

/* --- Contrasto: i grigi del tema erano sotto 4.5:1 su bianco ------------ */
:root {
	--color-text-description: #5a6b7f; /* era #868E96 (3.3:1) → 5.4:1 */
	--color-text-light: #64748b;       /* era #B8BDC1 (1.9:1) → 4.8:1 */
	--color-form-placeholder: #6b7785; /* era #ADB5BD (2.1:1) → 4.6:1 */
}

/* Briciole di pane. */
.klb-breadcrumb,
.klb-breadcrumb a,
.woocommerce-breadcrumb,
.woocommerce-breadcrumb a {
	color: #5a6b7f !important;
}
.klb-breadcrumb a:hover,
.woocommerce-breadcrumb a:hover {
	color: var(--dp-blue) !important;
}

/* Contatti: link in blu (erano nel rosso "errore" del tema). */
.elementor-widget-partdo-contact-icon-box a,
.elementor-widget-partdo-address-box a {
	color: var(--dp-blue) !important;
	text-decoration: underline;
	text-underline-offset: 3px;
}

/* Footer: testi chiari sul blu (erano #212529, 3:1). */
.site-footer,
.site-footer p,
.site-footer .widget_contact,
.site-footer .company-works,
.site-footer .widget-body {
	color: #eaf1fa !important;
}
.site-footer a {
	color: #ffffff !important;
}
.site-footer a:hover {
	text-decoration: underline;
	text-underline-offset: 3px;
}

/* --- Pulsanti di account e moduli: azione principale in blu ------------- */
.woocommerce-form-login__submit,
.woocommerce-form-register__submit,
.woocommerce-ResetPassword .button,
.woocommerce-EditAccountForm .button,
.woocommerce-address-fields .button,
.woocommerce-MyAccount-content .button,
.track_order .button,
.wpcf7-submit {
	background: var(--dp-blue) !important;
	border: 1px solid var(--dp-blue) !important;
	color: #fff !important;
	min-height: 46px;
	padding: 10px 24px !important;
	border-radius: 8px !important;
	font-weight: 700 !important;
	transition: background-color .15s ease-out;
}
.woocommerce-form-login__submit:hover,
.woocommerce-form-register__submit:hover,
.woocommerce-ResetPassword .button:hover,
.woocommerce-EditAccountForm .button:hover,
.woocommerce-address-fields .button:hover,
.woocommerce-MyAccount-content .button:hover,
.track_order .button:hover,
.wpcf7-submit:hover {
	background: var(--dp-blue-hover) !important;
	border-color: var(--dp-blue-hover) !important;
}

/* Azioni secondarie del carrello: contorno blu, non grigio spento. */
.woocommerce-cart .coupon .button,
.woocommerce-cart button[name="update_cart"] {
	background: #fff !important;
	border: 1px solid var(--dp-blue) !important;
	color: var(--dp-blue) !important;
	border-radius: 8px !important;
	font-weight: 700 !important;
	min-height: 44px;
}
.woocommerce-cart button[name="update_cart"]:disabled {
	border-color: var(--dp-border) !important;
	color: #8592a3 !important;
}

/* Registrazione: l'informativa privacy sotto i campi, prima del pulsante
   (lo snippet aggiungeva "Conferma password" dopo l'informativa). */
form.woocommerce-form-register {
	display: flex;
	flex-direction: column;
}
form.woocommerce-form-register > * { order: 1; }
form.woocommerce-form-register > .woocommerce-privacy-policy-text { order: 5; }
form.woocommerce-form-register > p.form-row:has(.woocommerce-form-register__submit),
form.woocommerce-form-register > .woocommerce-form-row:has(.woocommerce-form-register__submit) { order: 6; }
form.woocommerce-form-register .woocommerce-privacy-policy-text p {
	font-size: 13px;
	color: var(--dp-text-soft);
}

/* Carrello, checkout e account: niente linguette "Catalogo" che distraggono dal completare l'ordine. */
body.woocommerce-cart #dipalma-floating-cataloghi,
body.woocommerce-checkout #dipalma-floating-cataloghi,
body.woocommerce-account #dipalma-floating-cataloghi {
	display: none !important;
}

/* Checkout: campi e riepilogo più ordinati su telefono. */
.woocommerce-checkout .woocommerce-billing-fields h3,
.woocommerce-checkout #order_review_heading,
.woocommerce-checkout .woocommerce-additional-fields h3 {
	font-size: 1.15rem !important;
	color: var(--dp-blue-dark);
	margin: 8px 0 14px !important;
}
.woocommerce form .form-row label {
	font-weight: 600;
	color: var(--dp-text);
}
.woocommerce form .form-row .input-text,
.woocommerce form .form-row select,
.woocommerce form .form-row textarea {
	min-height: 46px;
	font-size: 16px !important; /* evita lo zoom automatico di iPhone sui campi */
}
.woocommerce-checkout #payment .payment_box {
	background: var(--dp-surface) !important;
	color: var(--dp-text) !important;
	border-radius: 8px;
	font-size: 14px;
	line-height: 1.5;
}
.woocommerce-checkout #payment .payment_box::before {
	border-bottom-color: var(--dp-surface) !important;
}

/* Prodotti correlati: pulsanti allineati in fondo alla scheda anche con titoli di lunghezza diversa. */
.related.products .product-wrapper,
.related.products .product-content {
	height: 100%;
}
.related.products .product-content {
	display: flex;
	flex-direction: column;
}
.related.products .content-wrapper {
	display: flex;
	flex-direction: column;
	flex: 1 1 auto;
}
.related.products .product-cart-form {
	margin-top: auto;
}

/* --- Pagine di testo (condizioni, privacy, cookie, spedizioni): lettura comoda --- */
.klb-post,
body.page-id-3558 .elementor-widget-text-editor,
body.page-id-3831 .elementor-widget-text-editor {
	max-width: 75ch;
	margin-inline: auto;
	color: var(--dp-text);
	font-size: 16px;
	line-height: 1.65;
}
.klb-post h2,
body.page-id-3558 .elementor-widget-text-editor h2,
body.page-id-3831 .elementor-widget-text-editor h2 {
	font-size: clamp(1.2rem, 1.05rem + .6vw, 1.5rem) !important;
	line-height: 1.25 !important;
	color: var(--dp-blue-dark);
	margin: 2em 0 .6em !important;
}
.klb-post h3,
body.page-id-3558 .elementor-widget-text-editor h3,
body.page-id-3831 .elementor-widget-text-editor h3 {
	font-size: 1.1rem !important;
	margin: 1.6em 0 .5em !important;
}
body.page-id-3558 .elementor-widget-text-editor hr,
body.page-id-3831 .elementor-widget-text-editor hr {
	display: none;
}
.klb-post ul,
body.page-id-3558 .elementor-widget-text-editor ul,
body.page-id-3831 .elementor-widget-text-editor ul {
	padding-left: 1.2em;
}
.klb-post li,
body.page-id-3558 .elementor-widget-text-editor li {
	margin-bottom: .35em;
}
.klb-post li p,
body.page-id-3558 .elementor-widget-text-editor li p,
body.page-id-3831 .elementor-widget-text-editor li p {
	margin: 0;
}
.klb-post blockquote,
body.page-id-3558 .elementor-widget-text-editor blockquote {
	margin: 1em 0;
	padding: 16px 18px;
	background: var(--dp-surface);
	border: 1px solid var(--dp-border);
	border-radius: 8px;
	font-size: 15px;
}
.klb-page-title {
	max-width: 75ch;
	margin-inline: auto !important;
}

/* Testi minimi leggibili su telefono e tablet. */
@media screen and (max-width: 1024px) {
	html body .dipalma-sale-v2 {
		font-size: 11.5px !important;
		letter-spacing: .02em;
	}
	html body .dipalma-mobile-category-name,
	html body .dipalma-order-v2 label,
	html body .dipalma-shop-toolbar-v2 label {
		font-size: 13px !important;
	}
}
html body #dipalma-floating-cataloghi .dipalma-float .dipalma-label small {
	font-size: 9.5px !important;
	letter-spacing: .06em;
}
html body #dipalma-floating-cataloghi .dipalma-float .dipalma-label strong {
	font-size: 13px !important;
}

/* Prodotti della home: pulsante carrello con area di tocco adeguata. */
.product-wrapper .product-buttons .button,
.content-wrapper .product-cart-form a.button.primary {
	min-width: 40px;
	min-height: 40px;
}

/* --- Stati vuoti --------------------------------------------------------- */
.dipalma-noresults-help {
	margin-top: 18px;
	padding: 18px 20px;
	max-width: 62ch;
	background: var(--dp-surface);
	border: 1px solid var(--dp-border);
	border-radius: var(--dp-radius);
	color: var(--dp-text);
	font-size: 15px;
	line-height: 1.5;
}
.dipalma-noresults-help p {
	margin: 0 0 12px;
}
.dipalma-noresults-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 0 !important;
}
.dipalma-btn-primary,
.woocommerce-cart .cart-empty-page .return-to-shop .button {
	background: var(--dp-blue) !important;
	border: 1px solid var(--dp-blue) !important;
	color: #fff !important;
	min-height: 46px;
	padding: 11px 22px !important;
	border-radius: 8px !important;
	font-weight: 700 !important;
	display: inline-flex !important;
	align-items: center;
}
.dipalma-btn-primary:hover,
.woocommerce-cart .cart-empty-page .return-to-shop .button:hover {
	background: var(--dp-blue-hover) !important;
	border-color: var(--dp-blue-hover) !important;
}
.dipalma-btn-secondary {
	background: #fff !important;
	border: 1px solid var(--dp-blue) !important;
	color: var(--dp-blue) !important;
	min-height: 46px;
	padding: 11px 22px !important;
	border-radius: 8px !important;
	font-weight: 700 !important;
	display: inline-flex !important;
	align-items: center;
}

/* Carrello vuoto: messaggio in tono normale (era tutto maiuscolo in un riquadro grigio). */
.woocommerce-cart .cart-empty-page .cart-empty,
.woocommerce-cart .cart-empty-page .wc-empty-cart-message .cart-empty {
	background: transparent !important;
	border: 0 !important;
	text-transform: none !important;
	letter-spacing: 0 !important;
	font-size: 1.15rem !important;
	font-weight: 700 !important;
	color: var(--dp-blue-dark) !important;
	padding: 0 !important;
	margin: 12px 0 16px !important;
}
.woocommerce-cart .cart-empty-page .cart-empty::before {
	display: none !important;
}

/* --- Home su smartphone: i 4 settori su due colonne (prima uno sotto l'altro, ~1.800px) --- */
@media (max-width: 767px) {
	.elementor-element-7b186000 > .elementor-container {
		display: flex !important;
		flex-wrap: wrap !important;
	}
	.elementor-element-7b186000 > .elementor-container > .elementor-column {
		width: 50% !important;
		max-width: 50% !important;
		flex: 0 0 50% !important;
	}
	.elementor-element-7b186000 > .elementor-container > .elementor-column > .elementor-widget-wrap {
		padding: 6px 6px 18px !important;
	}
	.elementor-element-7b186000 .elementor-widget-html img,
	.elementor-element-7b186000 .elementor-widget-html > .elementor-widget-container > div {
		height: 120px !important;
		max-height: 120px !important;
		object-fit: contain !important;
	}
	.elementor-element-7b186000 .elementor-heading-title {
		font-size: 17px !important;
		line-height: 1.25 !important;
	}
	.elementor-element-7b186000 .elementor-widget-text-editor {
		font-size: 13.5px !important;
		line-height: 1.45 !important;
		margin-bottom: 8px !important;
	}
	.elementor-element-7b186000 .elementor-widget-text-editor p {
		margin: 0 !important;
	}
	.elementor-element-7b186000 .elementor-button {
		min-height: 42px;
		padding: 10px 18px !important;
	}
}
@media (max-width: 767px) {
	.elementor-element-7b186000 > .elementor-container > .elementor-column > .elementor-widget-wrap {
		display: flex !important;
		flex-direction: column !important;
		height: 100%;
	}
	.elementor-element-7b186000 .elementor-widget-button {
		margin-top: auto !important;
	}
}
@media (max-width: 767px) {
	/* "Perché Di Palma": 4 punti su due colonne. */
	.elementor-element-4c89abc2 > .elementor-container {
		display: flex !important;
		flex-wrap: wrap !important;
	}
	.elementor-element-4c89abc2 > .elementor-container > .elementor-column {
		width: 50% !important;
		max-width: 50% !important;
		flex: 0 0 50% !important;
	}
	.elementor-element-4c89abc2 > .elementor-container > .elementor-column > .elementor-widget-wrap {
		padding: 8px 8px 16px !important;
	}
	.elementor-element-4c89abc2 .elementor-heading-title {
		font-size: 17px !important;
	}
	/* "Raccolta Olive": immagine meno alta. */
	.elementor-element-71100629 .elementor-element-f70a136 .elementor-widget-container > div {
		height: 240px !important;
	}
	.elementor-element-71100629 .elementor-element-f70a136 img {
		height: 100% !important;
		max-height: 240px !important;
		width: 100% !important;
		object-fit: contain !important;
	}
}

/* --- Footer: indirizzo su mappa e social --------------------------------- */
.site-footer a.dipalma-footer-map {
	display: inline-block;
	text-decoration: none !important;
}
.site-footer .dipalma-footer-map-label {
	display: inline-block;
	margin-top: 4px;
	font-size: 13px;
	text-decoration: underline;
	text-underline-offset: 3px;
	opacity: .9;
}
.site-footer .dipalma-footer-social {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 14px;
}
.site-footer .dipalma-footer-social a {
	display: inline-flex;
	align-items: center;
	min-height: 36px;
	padding: 6px 14px;
	border: 1px solid rgba(255, 255, 255, .55);
	border-radius: 999px;
	font-size: 13px;
	font-weight: 600;
	text-decoration: none !important;
}
.site-footer .dipalma-footer-social a:hover {
	background: rgba(255, 255, 255, .12);
}

/* Contatti: testi descrittivi e etichette leggibili (grigi impostati nei widget Elementor). */
body.page-id-2144 p.elementor-heading-title,
body.page-id-2144 span.elementor-heading-title,
body.page-id-2144 .elementor-widget-partdo-address-box,
body.page-id-2144 .elementor-widget-partdo-contact-icon-box {
	color: var(--dp-text-soft) !important;
}
body.page-id-2144 .elementor-widget-partdo-address-box .title,
body.page-id-2144 .elementor-widget-partdo-contact-icon-box .title,
body.page-id-2144 .elementor-widget-partdo-address-box h6,
body.page-id-2144 .elementor-widget-partdo-contact-icon-box h6 {
	color: var(--dp-text-soft) !important;
}

/* Footer: riga del copyright leggibile; lo spazio per i pulsanti fissi è dentro il footer (niente fascia bianca). */
.site-footer .footer-copyright,
.site-footer .footer-copyright *,
.site-footer .copyright,
.site-footer .site-copyright {
	color: #dfe9f6 !important;
}

/* Mini carrello: prezzi delle righe nel colore del testo (il rosso del tema sembrava uno sconto o un errore). */
.woocommerce-mini-cart .quantity,
.woocommerce-mini-cart .quantity .amount,
.cart-dropdown .quantity .amount {
	color: var(--dp-text) !important;
}
