/*
Theme Name:     sentieri-digitali-shop
Theme URI:      https://ecom.idra.it/sentieri-digitali/
Template: neve
Author:         Idra srls
Author URI:      https://idra.it/
Description:    sentieri-digitali, child theme for Neve.
Version:        1.0.0
License:        GNU General Public License v2 or later
License URI:    http://www.gnu.org/licenses/gpl-2.0.html
Text Domain:    neve
Tags: blog, custom-logo, e-commerce, rtl-language-support, post-formats, grid-layout, one-column, two-columns, custom-background, custom-colors, custom-header, custom-menu, featured-image-header, featured-images, flexible-header, full-width-template, sticky-post, theme-options, threaded-comments, translation-ready, accessibility-ready, wide-blocks, block-styles
*/

/* font per idra - INIZIO */
.site-footer .idra-footer-name,
.site-footer .idra-footer-name a {
  font-family: "Rotis Semi Sans Std", sans-serif !important;
  font-size: 18px !important;
}
/* font per idra - FINE */

/* IMPOSTAZIONI PAGINA PRIVACY POLICY */

#wp-block-themeisle-blocks-advanced-columns-061d8888 p {
  margin-bottom: 10px
}

#wp-block-themeisle-blocks-advanced-columns-061d8888 h2, h3, h4, h5 {
  margin-bottom: 15px
}

#wp-block-themeisle-blocks-advanced-columns-061d8888 ul {
  margin-top: 10px;
	margin-bottom:15px
}

#wp-block-themeisle-blocks-advanced-columns-061d8888 li {
  margin-top: 0px;
}

/* IMPOSTAZIONI PAGINA COOKIE POLICY */

#wp-block-themeisle-blocks-advanced-columns-1d0bff20 p {
  margin-bottom: 10px
}

#wp-block-themeisle-blocks-advanced-columns-1d0bff20 h2, h3, h4, h5 {
  margin-bottom: 15px
}

#wp-block-themeisle-blocks-advanced-columns-1d0bff20 ul {
  margin-top: 10px;
	margin-bottom:15px
}

#wp-block-themeisle-blocks-advanced-columns-1d0bff20 li {
  margin-top: 0px;
}

/* IMPOSTAZIONI PAGINA CONDIZIONI GENERALI DI VENDITA */

#wp-block-themeisle-blocks-advanced-columns-9c4bc22a p {
  margin-bottom: 10px
}

#wp-block-themeisle-blocks-advanced-columns-9c4bc22a h2, h3, h4, h5 {
  margin-bottom: 15px
}

#wp-block-themeisle-blocks-advanced-columns-9c4bc22a ul {
  margin-top: 10px;
	margin-bottom:15px
}

#wp-block-themeisle-blocks-advanced-columns-9c4bc22a li {
  margin-top: 0px;
}

#wp-block-themeisle-blocks-advanced-columns-9c4bc22a ol {
  margin: 10px 0;
}

/* COLORI PULSANTI COOKIEYES */

.cky-btn-revisit-wrapper {
  background-color: #787554 !important;
}

.cky-btn {
  background-color: #787554 !important;
	color:#fff !important
}

.cky-show-desc-btn {
  color: #787554 !important;
}

# ckySwitchfunctional {
  background-color: #787554 !important;
}


/* dimensione prezzo */
.woocommerce-Price-amount {
  font-size: 24px;
}


/* ==========================================================
   SENTIERI DIGITALI SHOP — PAGINA PRODOTTO
   ========================================================== */

:root {
	--sd-shop-primary: #787554;
	--sd-shop-primary-dark: #54523b;
	--sd-shop-primary-light: #e6e5db;
	--sd-shop-surface: #ffffff;
	--sd-shop-surface-soft: #f7f7f3;
	--sd-shop-border: #deded6;
	--sd-shop-text: #292929;
	--sd-shop-muted: #686868;
	--sd-shop-radius-lg: 24px;
	--sd-shop-radius-md: 14px;
	--sd-shop-shadow: 0 18px 50px rgba(34, 34, 24, 0.08);
}

.single-product .nv-page-title-wrap {
	display: none;
}

.single-product .container,
.single-product .container-fluid {
	max-width: 1240px;
}

.single-product .site-main {
	padding-top: 36px;
	padding-bottom: 72px;
}

.single-product div.product.sd-single-product {
	display: block;
	margin: 0;
	color: var(--sd-shop-text);
}

/* ==========================================================
   HERO: GALLERIA + ACQUISTO
   ========================================================== */

.sd-product-hero {
	display: grid;
	grid-template-columns: minmax(0, 1.08fr) minmax(390px, 0.92fr);
	gap: clamp(38px, 5vw, 76px);
	align-items: start;
}

.sd-product-gallery,
.sd-product-purchase {
	min-width: 0;
}

.single-product div.product .sd-product-gallery .woocommerce-product-gallery,
.single-product div.product .sd-product-purchase.summary {
	float: none;
	width: 100%;
	margin: 0;
}

/* ==========================================================
   GALLERIA
   ========================================================== */

.sd-product-gallery {
	position: relative;
	padding: clamp(22px, 3vw, 42px);
	border: 1px solid var(--sd-shop-border);
	border-radius: var(--sd-shop-radius-lg);
	background:
		radial-gradient(circle at top left, rgba(230, 229, 219, 0.7), transparent 46%),
		var(--sd-shop-surface-soft);
	box-shadow: var(--sd-shop-shadow);
}

.single-product .woocommerce-product-gallery__wrapper {
	display: block;
	min-height: 0;
}

.single-product .woocommerce-product-gallery__image {
	text-align: center;
}

.single-product .woocommerce-product-gallery__image > a {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 500px;
}

.single-product .woocommerce-product-gallery__image img {
	display: block;
	width: auto;
	max-width: 100%;
	height: auto;
	max-height: 500px;
	margin: 0 auto;
	object-fit: contain;
	border-radius: 16px;
}

.single-product .flex-control-thumbs {
	display: grid !important;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: 10px;
	margin: 18px 0 0 !important;
	padding: 0 !important;
	list-style: none !important;
}

.single-product .flex-control-thumbs li {
	width: auto !important;
	float: none !important;
	margin: 0 !important;
	padding: 0 !important;
	list-style: none !important;
}

.single-product .flex-control-thumbs li::before,
.single-product .flex-control-thumbs li::marker {
	content: none !important;
	display: none !important;
}

.single-product .flex-control-thumbs img {
	aspect-ratio: 1 / 1;
	object-fit: cover;
	padding: 4px;
	border: 1px solid var(--sd-shop-border);
	border-radius: 10px;
	background: #fff;
	opacity: 0.72;
	transition: opacity 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.single-product .flex-control-thumbs img:hover,
.single-product .flex-control-thumbs img.flex-active {
	opacity: 1;
	border-color: var(--sd-shop-primary);
	transform: translateY(-2px);
}

/* ==========================================================
   COLONNA ACQUISTO
   ========================================================== */

.sd-product-purchase-inner {
	position: sticky;
	top: 112px;
}

.single-product .product_title {
	margin: 0 0 16px;
	font-size: clamp(2.05rem, 3vw, 3.25rem);
	line-height: 1.08;
	letter-spacing: -0.035em;
	color: var(--sd-shop-text);
}

.single-product .woocommerce-product-rating {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 16px;
}

.single-product div.product p.price,
.single-product div.product span.price {
	margin: 0 0 24px;
	font-size: clamp(1.65rem, 2vw, 2.2rem);
	font-weight: 700;
	line-height: 1.1;
	color: var(--sd-shop-primary-dark);
}

.single-product .woocommerce-product-details__short-description {
	margin: 0 0 26px;
	font-size: 1.04rem;
	line-height: 1.72;
	color: var(--sd-shop-muted);
}

.single-product .woocommerce-product-details__short-description p:last-child {
	margin-bottom: 0;
}

/* ==========================================================
   FORM ACQUISTO E PERSONALIZZAZIONE
   ========================================================== */

.single-product div.product form.cart {
	display: block;
	margin: 0;
	padding: 22px;
	border: 1px solid var(--sd-shop-border);
	border-radius: var(--sd-shop-radius-md);
	background: var(--sd-shop-surface);
	box-shadow: 0 12px 30px rgba(30, 30, 20, 0.06);
}

.single-product div.product form.cart::after {
	content: "";
	display: block;
	clear: both;
}

/* Campi del plugin di personalizzazione */
.single-product form.cart input[type="text"],
.single-product form.cart input[type="email"],
.single-product form.cart input[type="file"],
.single-product form.cart textarea,
.single-product form.cart select {
	width: 100%;
	min-height: 46px;
	padding: 11px 13px;
	border: 1px solid var(--sd-shop-border);
	border-radius: 9px;
	background: #fff;
	color: var(--sd-shop-text);
}

.single-product form.cart input:focus,
.single-product form.cart textarea:focus,
.single-product form.cart select:focus {
	border-color: var(--sd-shop-primary);
	outline: 3px solid rgba(120, 117, 84, 0.14);
}

.single-product form.cart label {
	display: block;
	margin-bottom: 7px;
	font-size: 0.92rem;
	font-weight: 700;
	color: var(--sd-shop-text);
}

.single-product form.cart small,
.single-product form.cart .description {
	display: block;
	margin-top: 6px;
	font-size: 0.8rem;
	line-height: 1.45;
	color: var(--sd-shop-muted);
}

/* Quantità e carrello sulla stessa riga */
.single-product form.cart {
	display: grid !important;
	grid-template-columns: 80px max-content;
	gap: 20px;
	align-items: stretch;
}

/* Il box della personalizzazione occupa tutta la riga superiore. */
.single-product form.cart > .tools-pers-fields {
	grid-column: 1 / -1;
	width: 100%;
	margin: 0;
}

/* Quantità nella prima colonna. */
.single-product form.cart > .quantity {
	grid-column: 1;
	grid-row: 2;
	width: 80px !important;
	margin: 0 !important;
	float: none !important;
}

.single-product form.cart > .quantity .qty {
	display: block;
	width: 80px !important;
	min-width: 80px !important;
	max-width: 80px !important;
	height: 52px;
	min-height: 52px;
	margin: 0 !important;
	padding: 8px 22px 8px 8px;
	border: 1px solid var(--sd-shop-border);
	border-radius: 10px;
	background: #fff;
	font-weight: 600;
	text-align: center;
}

/* Pulsante nella seconda colonna, accanto alla quantità. */
.single-product form.cart > button.single_add_to_cart_button,
.single-product form.cart > .single_add_to_cart_button {
	grid-column: 2;
	grid-row: 2;
	width: auto !important;
	min-height: 52px;
	margin: 0 !important;
	padding: 13px 24px;
	float: none !important;
	border: 0;
	border-radius: 10px;
	background: var(--sd-shop-primary);
	font-weight: 700;
	letter-spacing: 0.01em;
	box-shadow: 0 8px 20px rgba(84, 82, 59, 0.18);
	transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.single-product form.cart > button.single_add_to_cart_button:hover,
.single-product form.cart > button.single_add_to_cart_button:focus,
.single-product form.cart > .single_add_to_cart_button:hover,
.single-product form.cart > .single_add_to_cart_button:focus {
	background: var(--sd-shop-primary-dark);
	transform: translateY(-1px);
	box-shadow: 0 12px 24px rgba(84, 82, 59, 0.24);
}

/* ==========================================================
   PAGAMENTI RAPIDI
   ========================================================== */

/*
 * Apple Pay, Google Pay e PayPal sono generati dai rispettivi plugin.
 * Qui si interviene soltanto sui contenitori esterni, senza forzare
 * altezza o struttura interna degli iframe.
 */
.single-product .wcpay-payment-request-wrapper,
.single-product .wc-stripe-product-checkout-container,
.single-product #wc-stripe-express-checkout-element,
.single-product .wc-stripe-express-checkout-element,
.single-product .ppc-button-wrapper,
.single-product .paypal-buttons,
.single-product .ppcp-button-apm,
.single-product .ppcp-button-container {
	width: 100% !important;
	max-width: 100% !important;
	margin-top: 16px !important;
}

.single-product .wcpay-payment-request-wrapper iframe,
.single-product .wc-stripe-product-checkout-container iframe,
.single-product #wc-stripe-express-checkout-element iframe,
.single-product .wc-stripe-express-checkout-element iframe,
.single-product .ppc-button-wrapper iframe,
.single-product .paypal-buttons iframe,
.single-product .ppcp-button-apm iframe,
.single-product .ppcp-button-container iframe {
	display: block;
	width: 100% !important;
	max-width: 100% !important;
	max-height: none !important;
	border-radius: 10px;
}

/* ==========================================================
   META E RASSICURAZIONI
   ========================================================== */

.single-product .product_meta {
	margin-top: 22px;
	padding-top: 18px;
	border-top: 1px solid var(--sd-shop-border);
	font-size: 0.88rem;
	line-height: 1.7;
	color: var(--sd-shop-muted);
}

.single-product .product_meta > span {
	display: block;
}

.single-product .product_meta a {
	color: var(--sd-shop-primary-dark);
}

.sd-product-assurances {
	display: grid;
	gap: 10px;
	margin-top: 22px;
	padding: 18px 20px;
	border-radius: var(--sd-shop-radius-md);
	background: var(--sd-shop-primary-light);
}

.sd-product-assurance {
	display: grid;
	grid-template-columns: 22px minmax(0, 1fr);
	gap: 10px;
	align-items: start;
	font-size: 0.9rem;
	line-height: 1.45;
	color: var(--sd-shop-primary-dark);
}

.sd-product-assurance-icon {
	display: inline-grid;
	place-items: center;
	width: 20px;
	height: 20px;
	margin-top: 1px;
	border-radius: 50%;
	background: var(--sd-shop-primary);
	color: #fff;
	font-size: 0.72rem;
	font-weight: 800;
}

/* ==========================================================
   DESCRIZIONE E CONTENUTI
   ========================================================== */

.sd-product-content {
	clear: both;
	margin-top: clamp(34px, 4vw, 58px);
}

.single-product .woocommerce-tabs {
	margin: 0 0 60px;
	padding: clamp(28px, 4vw, 56px);
	padding-bottom: clamp(28px, 3vw, 40px);
	border: 1px solid var(--sd-shop-border);
	border-radius: var(--sd-shop-radius-lg);
	background: var(--sd-shop-surface);
	box-shadow: var(--sd-shop-shadow);
}

.single-product .woocommerce-tabs ul.tabs {
	display: flex;
	gap: 28px;
	margin: 0 0 38px !important;
	padding: 0 !important;
	border-bottom: 1px solid var(--sd-shop-border);
}

.single-product .woocommerce-tabs ul.tabs::before,
.single-product .woocommerce-tabs ul.tabs li::before,
.single-product .woocommerce-tabs ul.tabs li::after {
	display: none !important;
}

.single-product .woocommerce-tabs ul.tabs li {
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	border-radius: 0 !important;
	background: transparent !important;
}

.single-product .woocommerce-tabs ul.tabs li a {
	display: block;
	padding: 0 0 14px !important;
	border-bottom: 3px solid transparent;
	font-weight: 700 !important;
	color: var(--sd-shop-muted) !important;
}

.single-product .woocommerce-tabs ul.tabs li.active a {
	border-bottom-color: var(--sd-shop-primary);
	color: var(--sd-shop-text) !important;
}

.single-product .woocommerce-Tabs-panel {
	max-width: 920px;
	margin: 0 auto;
	font-size: 1rem;
	line-height: 1.78;
	color: #4f4f4f;
}

.single-product .woocommerce-Tabs-panel > h2:first-child {
	display: none;
}

.single-product .woocommerce-Tabs-panel h2 {
	margin-top: 2.2em;
	margin-bottom: 0.8em;
	font-size: clamp(1.55rem, 2vw, 2.1rem);
	line-height: 1.2;
	letter-spacing: -0.02em;
	color: var(--sd-shop-text);
}

.single-product .woocommerce-Tabs-panel h3 {
	margin-top: 1.8em;
	font-size: 1.3rem;
	color: var(--sd-shop-text);
}

.single-product .woocommerce-Tabs-panel ul {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px 28px;
	margin: 1.2em 0 1.8em;
	padding: 0;
	list-style: none;
}

.single-product .woocommerce-Tabs-panel li {
	position: relative;
	padding-left: 24px;
}

.single-product .woocommerce-Tabs-panel li::before {
	content: "✓";
	position: absolute;
	top: 0;
	left: 0;
	color: var(--sd-shop-primary);
	font-weight: 800;
}

.single-product .woocommerce-Tabs-panel p {
	margin-bottom: 1.15em;
}

.single-product .woocommerce-Tabs-panel > *:last-child {
	margin-bottom: 0;
}

/* ==========================================================
   CORRELATI E UPSELL
   ========================================================== */

.single-product .nv-index-posts.nv-shop.col {
	margin-bottom: 30px;
}

.single-product .up-sells,
.single-product .related {
	margin-top: 72px;
}

.single-product .up-sells > h2,
.single-product .related > h2 {
	margin-bottom: 28px;
	font-size: clamp(1.7rem, 2.5vw, 2.4rem);
	letter-spacing: -0.025em;
}

.single-product ul.products li.product {
	overflow: hidden;
	border: 1px solid var(--sd-shop-border);
	border-radius: 16px;
	background: #fff;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.single-product ul.products li.product:hover {
	transform: translateY(-4px);
	box-shadow: 0 14px 34px rgba(30, 30, 20, 0.1);
}

/* ==========================================================
   TABLET
   ========================================================== */

@media (max-width: 960px) {
	.sd-product-hero {
		grid-template-columns: 1fr;
		gap: 34px;
	}

	.sd-product-purchase-inner {
		position: static;
	}

	.single-product .woocommerce-product-gallery__image > a {
		min-height: 400px;
	}

	.single-product .woocommerce-product-gallery__image img {
		max-height: 400px;
	}

	.sd-product-content {
		margin-top: 36px;
	}
}

/* ==========================================================
   MOBILE
   ========================================================== */

@media (max-width: 600px) {
	.single-product .site-main {
		padding-top: 18px;
		padding-bottom: 44px;
	}

	.sd-product-hero {
		gap: 26px;
	}

	.sd-product-gallery {
		padding: 14px;
		border-radius: 16px;
	}

	.single-product .woocommerce-product-gallery__image > a {
		min-height: 0;
	}

	.single-product .woocommerce-product-gallery__image img {
		width: 100%;
		max-height: none;
	}

	.single-product .product_title {
		font-size: clamp(1.8rem, 9vw, 2.45rem);
	}

	.single-product div.product form.cart {
		padding: 16px;
	}

	.single-product form.cart {
		grid-template-columns: 68px minmax(0, 1fr);
		gap: 10px;
	}

	.single-product form.cart > .quantity {
		width: 68px !important;
	}

	.single-product form.cart > .quantity .qty {
		width: 68px !important;
		min-width: 68px !important;
		max-width: 68px !important;
	}

	.single-product form.cart > button.single_add_to_cart_button,
	.single-product form.cart > .single_add_to_cart_button {
		width: 100% !important;
		min-width: 0;
		padding-right: 10px;
		padding-left: 10px;
	}

	.sd-product-content {
		margin-top: 28px;
	}

	.single-product .woocommerce-tabs {
		padding: 22px 18px 24px;
		border-radius: 16px;
	}

	.single-product .woocommerce-tabs ul.tabs {
		gap: 18px;
		overflow-x: auto;
	}

	.single-product .woocommerce-tabs ul.tabs li a {
		white-space: nowrap;
	}

	.single-product .woocommerce-Tabs-panel ul {
		grid-template-columns: 1fr;
	}

	.sd-product-assurances {
		padding: 16px;
	}
}

/* ==========================================================
   HOME — PRODOTTO SINGOLO TRAMITE SHORTCODE
   ========================================================== */

/* Nasconde descrizione completa e recensioni soltanto
   nel prodotto incorporato nella home. */
.home .sd-home-product .woocommerce-tabs.wc-tabs-wrapper {
	display: none !important;
}

/* Evita che compaiano anche upsell e prodotti correlati. */
.home .sd-home-product .up-sells,
.home .sd-home-product .related {
	display: none !important;
}

/* Elimina eventuale spazio residuo sotto la scheda prodotto. */
.home .sd-home-product .product {
	margin-bottom: 0;
}

.home .sd-home-product .sd-product-content {
	display: none !important;
}

/* ==========================================================
   MESSAGGIO PAYPAL PAY LATER SPOSTATO
   Pagina prodotto, carrello e checkout
   ========================================================== */

.single-product .sd-paylater-relocated,
.woocommerce-cart .sd-paylater-relocated,
.woocommerce-checkout .sd-paylater-relocated {
	clear: both;
	display: block !important;
	flex: 0 0 100%;
	grid-column: 1 / -1;
	order: 99;
	width: 100% !important;
	max-width: 100% !important;
	margin: 12px 0 14px !important;
	padding: 0 !important;
	text-align: center;
	font-size: 0.82rem;
	line-height: 1.45;
	color: var(--sd-shop-muted);
}

/* Neutralizza i margini aggiunti dal plugin PayPal. */
.single-product .sd-paylater-relocated > *,
.woocommerce-cart .sd-paylater-relocated > *,
.woocommerce-checkout .sd-paylater-relocated > * {
	margin-top: 0 !important;
	margin-bottom: 0 !important;
}

/* Separazione ordinata tra Stripe e PayPal nella pagina prodotto. */
.single-product .ppc-button-wrapper,
.single-product .ppcp-button-wrapper,
.single-product .ppcp-button-container,
.single-product [class*="paypal-buttons"] {
	margin-top: 22px !important;
}

/* Checkout: crea una riga completa sotto i quattro pulsanti rapidi. */
.woocommerce-checkout
.wc-block-components-express-payment
.sd-paylater-relocated,
.woocommerce-checkout
[class*="express-payment"]
.sd-paylater-relocated {
	flex-basis: 100% !important;
	width: 100% !important;
	max-width: 100% !important;
}

/* Mobile */
@media (max-width: 600px) {
	.single-product .sd-paylater-relocated,
	.woocommerce-cart .sd-paylater-relocated,
	.woocommerce-checkout .sd-paylater-relocated {
		margin: 10px 0 12px !important;
		font-size: 0.78rem;
	}
}

.sd-bacs-confirmation-message {
    margin: 18px 0 28px;
    padding: 16px 18px;
    border-left: 4px solid #787554;
    background: #f5f4ef;
}

.sd-bacs-confirmation-message p {
    margin: 0;
    line-height: 1.6;
}


/* Colore messaggio WooCommerce */
.woocommerce .woocommerce-message, .woocommerce-page .woocommerce-message {
  background: var(--nv-primary-accent);
}