:root {
	--black: #000000;
	--yellow: #fdcc0d;
}

/* --- Top bar --- */
#ug-topbar-wrapper {
	border-bottom: 2px solid #f7f7f7;
}

#ug-topbar-wrapper .limit-width {
	display: flex;
	padding: 5px 36px 5px 36px;
}

.ug-topbar-area {
	flex: 1;
	font-size: .8em;
}

.ug-area-left {
	text-align: left;
}

.ug-area-center {
	text-align: center;
}

.ug-area-right {
	text-align: right;
}

/* =======================================================================================

Marquee

======================================================================================= */

/* La "finestra" fissa che nasconde ciò che non si vede */
.ug-marquee-banner {
	width: 100%;
	background-color: var(--yellow);
	color: var(--black);
	font-weight: 700;
	overflow: hidden;
	/* Usiamo flexbox per gestire il contenuto */
	display: flex;
	box-sizing: border-box;
	margin-bottom: 22px;
}

/* Il "nastro" mobile che contiene le due copie del testo lunghissimo */
.ug-marquee-track {
	/* Non permettere al contenuto di rimpicciolirsi */
	flex-shrink: 0;
	/* Mette le 2 copie una accanto all'altra */
	display: flex;
	/* Anima questo elemento */
	animation: ug-final-scroll 400s linear infinite;
}

/* Stile del testo stesso */
.ug-marquee-content {
	/* Impedisce al testo di andare a capo */
	white-space: nowrap;
	padding: 12px 0;
	font-size: 16px;
	/* Imposta una dimensione per coerenza */
	/*margin-right: 150px;*/
}

.ug-marquee-content a {
	color: #333;
	text-decoration: none;
}

/* L'animazione per lo scorrimento infinito e fluido */
@keyframes ug-final-scroll {
	from {
		transform: translateX(0%);
	}

	to {
		/* Sposta il nastro verso sinistra della sua metà esatta (la larghezza di una copia) */
		transform: translateX(-50%);
	}
}

/* =======================================================================================

Custom menù

======================================================================================= */

.ug-custom-menu-replacement {
	display: flex;
	height: 100%;
	position: relative;
	justify-content: space-between;
	align-items: center;
	width: 100%;
	z-index: 100;
}

.ug-custom-menu-left {
	flex: 1;
	line-height: 1em;
	text-align: center;
}

.ug-custom-menu-right {
	flex: 1;
	line-height: 1em;
	text-align: center;
}

.ug-custom-menu-search {
	flex: 2;
}

.ug-custom-menu-search input[type=search] {
	border: 2px solid #f2f2f2;
	border-radius: 50px;
}

/* Stile per l'immagine del menu */
.navbar-main .menu-primary-inner>.menu-item>a,
.ug-sub-header-menu>.menu-item>a {
	display: flex;
	align-items: center;
	/* Allinea verticalmente l'immagine e il testo al centro */
}

.menu-item-image {
	max-height: 24px;
	/* Puoi modificare questo valore */
	width: auto;
	margin-right: 8px;
	/* Spazio tra immagine e testo */
	object-fit: contain;
	vertical-align: bottom;
}

/* Stile per il menu "Sub Header" */

.ug-sub-header-menu {
	border-top: 2px solid #f2f2f2;
	padding-bottom: 1em;
	padding-top: 1em;
}

.ug-sub-header-menu a {
	color: #303133;
}

.ug-sub-header-menu>ul {
	display: flex;
}

.ug-sub-header-menu>ul>li {
	flex: 1;
}

.ug-sub-header-menu>ul>li a {
	font-weight: 700;
}

@media (min-width: 960px) {

	.ug-sub-header-menu>ul>.menu-item {
		position: relative !important;
	}

	.ug-sub-header-menu .sub-menu {
		display: block;
		opacity: 0;
		visibility: hidden;
		pointer-events: none;
		position: absolute;
		top: 100%;
		left: 0;
		z-index: 1000;
		background-color: #f1f1f1;
		border: 1px solid #ddd;
		box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
		padding: 12px 12px;
		min-width: 180px;
		transition: opacity 0.2s ease, visibility 0.2s ease;
	}

	.ug-sub-header-menu .sub-menu li a {
		display: block;
		text-align: left;
		padding: 6px 0;
	}

	.ug-sub-header-menu .menu-item:hover>.sub-menu {
		opacity: 1;
		visibility: visible;
		pointer-events: auto;
	}
}

.ug-sub-header-menu .ug-menu-item-button>a {
	background-color: var(--yellow);
	color: #ffffff;
	padding: 8px 15px !important;
	border: 1px solid var(--yellow);
	border-radius: 130px;
	transition: background-color 0.3s ease;
	margin: 5px 0;
}

/* Stile per il pulsante al passaggio del mouse */
.ug-sub-header-menu .ug-menu-item-button>a:hover {
	background-color: transparent;
	color: var(--yellow);
}

/* =======================================================================================

Custom form style - ISI Configuratore v2.0

======================================================================================= */

/* Import Mona Sans from GitHub */
@font-face {
	font-family: 'Mona Sans';
	src: url('https://github.com/github/mona-sans/raw/main/fonts/webfonts/MonaSans-Regular.woff2') format('woff2');
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: 'Mona Sans';
	src: url('https://github.com/github/mona-sans/raw/main/fonts/webfonts/MonaSans-SemiBold.woff2') format('woff2');
	font-weight: 600;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: 'Mona Sans';
	src: url('https://github.com/github/mona-sans/raw/main/fonts/webfonts/MonaSans-Bold.woff2') format('woff2');
	font-weight: 700;
	font-style: normal;
	font-display: swap;
}

/* --- ULTRA-SPECIFIC SELECTORS (override any theme) --- */
.woocommerce .custom-measurement-form-wrapper,
.woocommerce .isi-configurator,
body .custom-measurement-form-wrapper,
body .isi-configurator,
.custom-measurement-form-wrapper,
.isi-configurator {
	font-family: 'Mona Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
	background-color: #f5f5f5 !important;
	border: none !important;
	border-radius: 16px !important;
	margin-bottom: 1.5em !important;
	padding: 28px !important;
	box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06) !important;
}

.custom-measurement-form-wrapper h3,
.isi-configurator h3 {
	font-family: 'Mona Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
	font-size: 1.35em !important;
	font-weight: 700 !important;
	margin-bottom: 1.25em !important;
	margin-top: 0 !important;
	color: #1a1a1a !important;
	letter-spacing: -0.02em !important;
}

/* --- Dimensions Row (side by side) --- */
.isi-dimensions-row {
	display: grid !important;
	grid-template-columns: 1fr 1fr !important;
	gap: 16px !important;
	margin-bottom: 1.25em !important;
}

@media (max-width: 480px) {
	.isi-dimensions-row {
		grid-template-columns: 1fr !important;
	}
}

/* --- Input con suffisso (cm) e icona --- */
.isi-input-group {
	display: flex !important;
	align-items: stretch !important;
	border: 1px solid #e0e0e0 !important;
	border-radius: 10px !important;
	overflow: hidden !important;
	background: #fff !important;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.isi-input-group:focus-within {
	border-color: #1a1a1a !important;
	box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.05) !important;
}

.isi-input-icon {
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	padding: 0 12px !important;
	color: #999 !important;
}

.isi-input-icon svg {
	width: 18px !important;
	height: 18px !important;
}

.isi-input-group input {
	flex: 1 !important;
	border: none !important;
	padding: 14px 12px !important;
	font-size: 15px !important;
	font-family: 'Mona Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
	background: transparent !important;
	outline: none !important;
	min-width: 0 !important;
	color: #1a1a1a !important;
	box-shadow: none;
}

.isi-input-group input::placeholder {
	color: #aaa !important;
}

.isi-input-suffix {
	display: flex !important;
	align-items: center !important;
	background: #f9f9f9 !important;
	padding: 14px 14px !important;
	color: #666 !important;
	font-weight: 500 !important;
	font-size: 13px !important;
	border-left: 1px solid #eee !important;
}

/* --- Form field base --- */
.isi-form-field {
	margin-bottom: 0 !important;
}

.isi-form-field label,
.custom-measurement-form-wrapper .ug-form-field label {
	font-family: 'Mona Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
	color: #1a1a1a;
	display: block;
	font-size: 13px;
	font-weight: 600;
	margin-bottom: 8px;
}

.isi-form-field .isi-hint,
.custom-measurement-form-wrapper .ug-form-field small {
	display: none;
	/* Hide hints in new design */
}

/* --- Dropdown Select --- */
.isi-select-wrapper {
	position: relative;
}

.isi-select {
	width: 100%;
	padding: 14px 44px 14px 16px;
	border: 1px solid #e0e0e0;
	border-radius: 10px;
	font-size: 14px;
	font-family: 'Mona Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
	font-weight: 500;
	background-color: #fff;
	appearance: none;
	-webkit-appearance: none;
	-moz-appearance: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 16px center;
	cursor: pointer;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
	color: #1a1a1a;
}

.isi-select:focus {
	outline: none;
	border-color: #333;
}

.isi-select:hover {
	border-color: #ccc;
}

/* --- Section header --- */
.isi-section {
	margin-bottom: 1.5em;
}

.isi-section h4 {
	font-weight: 600;
	font-size: 14px;
	color: #1a1a1a;
	margin-bottom: 12px;
	margin-top: 0;
}

/* --- Color Swatches --- */
.isi-swatch-group {
	display: flex;
	gap: 20px;
	flex-wrap: wrap;
}

.isi-swatch {
	display: flex;
	flex-direction: column;
	align-items: center;
	cursor: pointer;
	padding: 8px;
	border-radius: 8px;
	transition: background-color 0.2s ease;
}

.isi-swatch:hover {
	background-color: #f5f5f5;
}

.isi-swatch input[type="radio"] {
	display: none;
}

.isi-swatch-circle {
	width: 48px;
	height: 48px;
	border-radius: 50%;
	border: 3px solid transparent;
	box-shadow: 0 0 0 1px #ddd;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.isi-swatch input[type="radio"]:checked+.isi-swatch-circle {
	border-color: #1a1a1a;
	box-shadow: 0 0 0 1px #1a1a1a;
}

.isi-swatch-label {
	font-size: 12px;
	margin-top: 8px;
	text-align: center;
	color: #333;
	font-weight: 500;
}

.isi-swatch-price {
	font-size: 11px;
	color: #888;
	margin-top: 2px;
}

/* --- Checkbox / Radio options --- */
.isi-option-group {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.isi-option-item {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 12px 16px;
	border: 1px solid #e0e0e0;
	border-radius: 8px;
	cursor: pointer;
	transition: border-color 0.2s ease, background-color 0.2s ease;
}

.isi-option-item:hover {
	background-color: #fafafa;
	border-color: #ccc;
}

.isi-option-item input[type="checkbox"],
.isi-option-item input[type="radio"] {
	width: 18px;
	height: 18px;
	margin: 0;
	accent-color: #1a1a1a;
}

.isi-option-item.selected {
	border-color: #1a1a1a;
	background-color: #f9f9f9;
}

.isi-option-label {
	flex: 1;
	font-size: 14px;
	color: #333;
}

.isi-option-price {
	font-size: 13px;
	color: #666;
	font-weight: 500;
}

/* --- Price display container --- */
.isi-price-container {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 20px 0;
	border-top: 1px solid #e0e0e0;
	margin-top: 20px;
	gap: 20px;
}

.isi-price-wrapper {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
}

.isi-price-label {
	font-family: 'Mona Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
	font-size: 13px;
	color: #666;
	margin-bottom: 4px;
}

.isi-price-value {
	font-family: 'Mona Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
	font-size: 32px;
	font-weight: 700;
	color: #1a1a1a;
	letter-spacing: -0.02em;
}

.isi-price-value .isi-currency {
	font-size: 20px;
	font-weight: 600;
}

/* --- Quantity Selector --- */
.isi-quantity-wrapper {
	display: flex;
	align-items: center;
	gap: 16px;
}

.isi-quantity-selector {
	display: flex;
	align-items: center;
	border: 1px solid #e0e0e0;
	border-radius: 10px;
	overflow: hidden;
	background: #fff;
}

.isi-quantity-selector button {
	width: 40px;
	height: 40px;
	border: none;
	background: transparent;
	cursor: pointer;
	font-size: 18px;
	color: #1a1a1a;
	transition: background-color 0.2s ease;
	display: flex;
	align-items: center;
	justify-content: center;
}

.isi-quantity-selector button:hover {
	background: #f5f5f5;
}

.isi-quantity-selector button:active {
	background: #eee;
}

.isi-quantity-selector input {
	width: 48px;
	height: 40px;
	border: none;
	border-left: 1px solid #e0e0e0;
	border-right: 1px solid #e0e0e0;
	text-align: center;
	font-size: 15px;
	font-weight: 600;
	font-family: 'Mona Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
	color: #1a1a1a;
	outline: none;
	-moz-appearance: textfield;
}

.isi-quantity-selector input::-webkit-inner-spin-button,
.isi-quantity-selector input::-webkit-outer-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

/* --- Action Row (qty + price + button) --- */
.isi-action-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 16px;
	padding-top: 20px;
	border-top: 1px solid #e0e0e0;
	margin-top: 20px;
}

.isi-action-left {
	display: flex;
	align-items: center;
	gap: 16px;
}

.isi-action-right {
	display: flex;
	align-items: center;
	gap: 20px;
}

/* --- Add to cart button --- */
.isi-add-to-cart,
.isi-configurator .single_add_to_cart_button {
	background: #1a1a1a;
	color: #ffffff;
	border: none;
	padding: 16px 32px;
	border-radius: 50px;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	transition: background-color 0.2s ease, transform 0.1s ease;
	white-space: nowrap;
}

.isi-add-to-cart:hover,
.isi-configurator .single_add_to_cart_button:hover {
	background: #333;
}

.isi-add-to-cart:active,
.isi-configurator .single_add_to_cart_button:active {
	transform: scale(0.98);
}

/* --- Legacy compatibility --- */
.custom-measurement-form-wrapper .ug-form-field-checkbox label,
.custom-measurement-form-wrapper .ug-form-field-radio label {
	font-weight: 400;
}

.custom-measurement-form-wrapper .ug-form-field input {
	margin-top: 0;
}

.custom-measurement-form-wrapper h4:not([class*="fontsize-"]) {
	font-weight: 600;
	font-size: 14px;
}

/* --- Responsive --- */
@media (max-width: 600px) {
	.isi-price-container {
		flex-direction: column;
		align-items: stretch;
		gap: 16px;
	}

	.isi-price-wrapper {
		text-align: center;
	}

	.isi-add-to-cart,
	.isi-configurator .single_add_to_cart_button {
		width: 100%;
		text-align: center;
	}

	.isi-swatch-group {
		justify-content: center;
	}
}

@media (max-width: 959px) {

	#ug-topbar-wrapper .limit-width {
		display: block;
	}

	#ug-topbar-wrapper .limit-width .ug-area-left,
	#ug-topbar-wrapper .limit-width .ug-area-center,
	#ug-topbar-wrapper .limit-width .ug-area-right {
		text-align: center;
	}


	/* Nasconde l'intero contenitore del Sub-Header Menu */
	.ug-sub-header-menu {
		display: none !important;
	}

}

@media (max-width: 959px) {

	/* Su mobile, il menu custom è SEMPRE nascosto */
	.ug-custom-menu-wrapper {
		display: none !important;
	}
}

/* --- VISTA DESKTOP (da 960px in su) --- */
@media (min-width: 960px) {

	/*
     * Di base, il menu custom (se esiste) è nascosto
     * e quello originale è visibile.
    */
	.ug-custom-menu-wrapper {
		display: none;
	}

	.ug-original-menu-wrapper {
		display: block;
		/* O 'contents' a seconda del tema */
	}

	/*
     * MA, se il body ha la classe .ug-custom-menu-active,
     * invertiamo la situazione!
    */
	.ug-custom-menu-active .ug-custom-menu-wrapper {
		display: flex !important;
		/* Mostriamo il menu custom */
	}

	.ug-custom-menu-active .ug-original-menu-wrapper {
		display: none !important;
		/* E nascondiamo quello originale */
	}
}

/* =======================================================================================

Style for the discount percentage badge added to the price.

======================================================================================= */
.price {
	position: relative;
	display: inline-block;
	/* Ensures the container wraps the price correctly */
	padding-right: 65px;
	/* IMPORTANT: Adds space on the right for the badge to live in */
}

/* 2. Style for the badge itself (unchanged) */
.ug-discount-percentage-badge {
	position: absolute;
	top: 50%;
	/* Center vertically */
	right: 0;
	/* Align to the far right of the new padding area */
	transform: translateY(-50%);
	/* Fine-tune vertical centering */
	background-color: var(--yellow);
	color: #ffffff;
	font-size: 0.7em;
	font-weight: bold;
	padding: 3px 8px;
	border-radius: 4px;
	white-space: nowrap;
	/* Ensures the text inside the badge doesn't wrap */
	/* The margin-left is no longer needed */
}

.ug-circular-discount-badge-inline {
	background-color: var(--yellow);
	border-radius: 4px;
	color: #ffffff;
	display: inline-block;
	font-size: .3em;
	line-height: 1em;
	padding: 3px 8px;
	text-align: center;
	transform: translateY(-100%);
}

.ug-vat-excluded-label {
	color: #777777;
	font-size: .5em;
	margin-top: 0;
	white-space: nowrap
}

.single-product .ug-vat-excluded-label {
	font-size: .4em;
}

.single-product del {
	color: rgba(119, 119, 119, 0.65);
	font-size: .6em;
}

del .ug-price-prefix,
del .ug-price-suffix,
.single-product del .ug-price-prefix,
.single-product del .ug-price-suffix {
	font-size: inherit;
}

/* Discount tag (red price tag shape) */
.ug-discount-tag {
	display: inline-block;
	position: relative;
	background-color: #cc0000;
	color: #ffffff;
	font-size: .45em;
	font-weight: 700;
	padding: 6px 12px 6px 18px;
	margin-left: 6px;
	white-space: nowrap;
	vertical-align: middle;
	line-height: 1.2;
	clip-path: polygon(15% 0%, 100% 0%, 100% 100%, 15% 100%, 0% 50%);
}

.ug-price-prefix {
	font-size: .7em;
	font-weight: normal;
}

.ug-price-suffix {
	font-size: .7em;
}

.single-product .ug-price-suffix,
.woocommerce-Price-currencySymbol {
	font-size: .4em;
}

/* Tooltip for section titles */
.isi-tooltip-wrapper {
	position: relative;
	display: inline-block;
	margin-left: 5px;
	vertical-align: middle;
}

.isi-tooltip-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 16px;
	height: 16px;
	border-radius: 50%;
	background-color: #cccccc;
	color: #ffffff;
	font-size: 11px;
	font-weight: 700;
	cursor: help;
	line-height: 1;
}

.isi-tooltip-text {
	visibility: hidden;
	opacity: 0;
	position: absolute;
	bottom: 130%;
	left: 50%;
	transform: translateX(-50%);
	background-color: #333333;
	color: #ffffff;
	font-size: 12px;
	font-weight: 400;
	padding: 6px 10px;
	border-radius: 4px;
	white-space: normal;
	min-width: 160px;
	max-width: 260px;
	text-align: center;
	z-index: 100;
	transition: opacity .2s ease, visibility .2s ease;
	pointer-events: none;
	line-height: 1.4;
}

.isi-tooltip-text::after {
	content: '';
	position: absolute;
	top: 100%;
	left: 50%;
	transform: translateX(-50%);
	border-width: 5px;
	border-style: solid;
	border-color: #333333 transparent transparent transparent;
}

.isi-tooltip-wrapper:hover .isi-tooltip-text {
	visibility: visible;
	opacity: 1;
}

/* Calculate price button */
.ug-calculate-price-wrapper {
	margin-top: .8em;
}

.ug-calculate-price-btn {
	display: inline-block;
	background-color: #fdcc0d;
	color: #ffffff;
	font-size: 14px;
	font-weight: 600;
	padding: 10px 10px;
	border: 2px solid #fdcc0d;
	border-radius: 10em;
	text-decoration: none;
	text-align: center;
	width: 100%;
	box-sizing: border-box;
	cursor: pointer;
	transition: all .2s ease;
}

.ug-calculate-price-btn:hover {
	background-color: transparent;
	color: #fdcc0d;
	text-decoration: none;
}

@media (max-width: 960px) {
	.ug-discount-percentage-badge {
		position: static;
	}
}

/* =======================================================================================

Custom meta.

======================================================================================= */

.detail-container .detail-label {
	min-width: 150px;
}

/* =======================================================================================

Checkout checkboxes.

======================================================================================= */

.ug-checkbox-full-width {
	width: 100%;
	margin-bottom: 10px;
}

.ug-checkbox-full-width .required {
	color: red;
	font-weight: bold;
}

/* =======================================================================================

Stuff.

======================================================================================= */

p,
li,
dt,
dd,
dl,
address,
label,
small,
pre,
code,
span.tab-excerpt {
	line-height: 1.25;
}