h2,
.prezzo:not(strong) {
	font-size: 25px;
	font-weight: bold;
}

body {
	min-height: 100vh;
	margin: 0;
	cursor: default;
	width: 100%;
	display: flex;
	flex-direction: column;
	flex: 1;
	touch-action: pan-x pan-y;
}

form {
	display: none;
	display: block;
	width: 100%;
	height: 100% !important;
}

*:focus {
	outline: none;
}

.prodotti ul a span,
section:has(> figure) h1 span {
	text-transform: none;
	display:inline-block;
}
.prodotti ul a font {
	text-transform: none;
}
.prodotti li {
	transition: background-color 0.3s;
	line-height: 1.2;
}
.prodotti li > a,
.prodotti li > span,
.prodotti.elenco li a,
.prodotti.elenco li > div > div > span{
	font-weight: bold !IMPORTANT;
}


* {
	user-select: none;
	-webkit-user-select: none;
	-webkit-tap-highlight-color: transparent;
}


h1, h2 {
	display: flex;
	width: fit-content;
	position: relative;
	box-sizing: border-box;
}

h3 a {
	display: inline-table;
}

h1,
h2,
h3,
ul,
p {
	margin: 0;
	padding: 0;
}

h1:has(+ button){
	display: inline-block !IMPORTANT;
}

hr {
	margin-bottom: 15px;
}

article h2,
aside h2 {
	margin-bottom: 15px;
	text-shadow: -1px 1px 5px rgba(204, 204, 204, 1);
}

p {
	margin-bottom: 10px;
}

nav {
	list-style-type: none;
	display: flex;
	align-items: start;
}

ul {
	margin-bottom: 15px;
	padding-left: 20px;
	width: auto;
}


span {
	display: inline-block;
}

div {
	position: relative
}


*[onmouseup="list(this)"] {
	cursor: pointer !IMPORTANT;
	margin-left: 0 !IMPORTANT;
	margin-right: 0 !IMPORTANT;
	padding-left: 5px !IMPORTANT;
}


.right:not(strong) {
	float: right;
	text-align: right;
	top: 0;
	right: 0;
}

.right .option {
	text-align: left;
}


.opzioni {
	margin-bottom:20px;
}
.opzioni > div:first-of-type:has(img) {
	min-width: 120px;
	text-align: center;
}
.opzioni div:first-of-type img {
	max-height: 100px;
	margin-bottom:15px;
}
.opzioni tr:hover {
	color: unset;
}
.opzioni table input {
	text-align: center;
}
.opzioni td:not(:first-of-type) {
	width:80px;
}


.destra {
	float: right;
	clear: right;
	margin-left: 15px;
	margin-bottom: 10px;
}

.sinistra {
	float: left;
	clear: left;
	margin-right: 15px;
	margin-bottom: 10px;
}

.centro {
	display: block;
	margin: 0 auto;
	clear: both;
}

.esteso {
	display: block;
	width: 100%;
	clear: both;
}
















header {
	padding: 0;
	position: sticky;
	top: 0;
	z-index: 3;
}
header nav {
	width: 100%;
	margin: 0 auto;
	position: relative;
}
header nav ul {
	margin: 0;
	padding: 0 !important;
	display: flex;
	align-items: center;
	overflow: visible;
	margin-top: 5px;
	margin-bottom: 5px;
	list-style: none;
}
header nav ul li {
	margin: 0;
	padding: 0 !important;
	margin-right: 40px;
	display: inline;
	text-transform: uppercase;
	font-weight: bold !important;
	padding-top: 10px;
	position: relative;
}
header nav li:has(ul) {
	display: flex;
	padding: 0 25px !important;
	padding-top: 15px !important;
	padding-bottom: 15px !important;
	margin-top: 0px;
	margin-left: -25px;
	margin-right: 15px;
	border-radius: 5px 5px 0 0;
	position: relative;
}
header nav li:has(ul) ul {
	margin: 0;
	padding: 0 !important;
	display: flex;
	align-items: flex-start;
	overflow: visible;
	flex-direction: column;
	list-style: none;
	background: #fff;
	position: absolute;
	left: 0;
	margin-top: 40px;
	z-index: 1;
	border-radius: 0 0 5px 5px;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
	max-height: 0;
	opacity: 0;
	overflow: hidden;
	transition: max-height 0.5s ease, opacity 0.5s ease;
}
header nav li:has(ul):hover ul {
	max-height: 100vh;
	opacity: 1;
}
header nav li:has(ul) ul li {
	margin: unset;
	margin-bottom: 20px;
	white-space: nowrap;
	width: auto !important;
}
header nav li:has(ul) ul li:first-of-type{
	margin-top: 10px;
}
header nav ul li ul{
	margin-left: -20px;
}
header nav ul li ul li{
	margin-left: 20px;
	margin-right: 20px;
}
header nav ul li:has(span) div img{
	margin-bottom: 10px;
	cursor: pointer;
	border: 1px transparent solid;
	padding: 3px;
	transition: border-color 0.3s;
	max-height: 16px;
}
header nav ul li:has(span) div:first-of-type {
	z-index: 2;
	position: absolute;
	margin-top: -11px;
	display: flex;
	align-items: center;
	cursor: pointer;
}
header nav ul li:has(span) div:first-of-type span {
	margin-top: -10px;
}
header nav ul li:has(span) div:nth-of-type(2),
header nav li:has(ul) div:nth-of-type(2) {
	max-height: 0;
	opacity: 0;
	overflow: hidden;
	transition: max-height 0.5s ease, opacity 0.5s ease;
}
header nav ul li:has(span):hover div:nth-of-type(2),
header nav li:has(ul):hover div:nth-of-type(2) {
	max-height: 100vh;
	opacity: 1;
	transition: max-height 0.5s ease, opacity 0.5s ease;
}
header nav ul li:has(span) div:nth-of-type(2) {
	background: #fff;
	padding: 0;
	position: absolute;
	padding: 0 25px;
	padding-top: 50px;
	left: -25px;
	margin-top: -25px;
	z-index: 1;
	border-radius: 5px;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}
header nav img{
	max-height:60px;
}
header nav li:not(:first-child) a {
	text-decoration: none;
	float: left;
	line-height: 1.2;
	position: relative;
}
header nav li:not(:first-child) a::after  {
	content: '';
	position: absolute;
	bottom: -10px;
	left: 0;
	width: 0;
	height: 2px;
	transition: width 0.3s ease;
}
header nav li:not(:first-child) a:hover::after,
header nav li:not(:first-child) a.selected::after {
	width: 100%;
}
header aside{
	position: absolute;
	width: fit-content !important;
	top: 20px;
	right: 30px;
}
header nav aside img{
	display: flex;
	float: left;
	cursor: pointer;
	height: 38px;
	margin-left: 25px;
}
header nav aside a {
	position: relative;
	display: flex;
	float: left;
}
header nav aside div {
	position: relative;
	cursor: pointer;
	display: inline-block;
	float: left;
}
























main {
	display: flex;
	flex-direction: column;
	flex: 1;
	width: 100%;
}
main > section {
	padding-bottom: 30px !IMPORTANT;
	padding-top: 20px !IMPORTANT;
}
main::before, main::after {
	position: fixed;
	top: 0;
	width: 50%;
	height: 100%;
	background-size: cover;
}
main {
	background-size: cover;
	background-attachment: fixed;
	background-repeat: no-repeat;
}

main::before {
	left: 0;
	background-position: left center;
}
main::after {
	right: 0;
	background-position: right center;
}

section,
article {
	margin: 0 auto;
	position: relative;
}
section > section {
	width: fit-content !IMPORTANT;
	flex: 1;
	display:inline-table;

}
section > div{
	flex-direction: column;
	margin-bottom: 5px;
}
section > div p,
section > section p,
.testi div {
	margin:0;
}

aside {
	right: 0;
	padding-top: unset !IMPORTANT;
}

.caratteristiche {
	position: relative;
	display: flex;
	flex-direction: column;
	min-height: 44px;
	margin: 15px 0 !IMPORTANT;
}
.caratteristiche li {
	width: fit-content;
	position:relative !IMPORTANT;
}

.abbinati {
	padding: 5px 10px;
	border: 1px #ccc solid;
	margin: 0;
	margin-top: 10px;
	position: relative;
	clear: both;
	width: 100%;
	box-sizing: border-box;
	display: table;
}
.abbinati a{
	text-transform: uppercase;
}
.abbinati div {
	font-size:16px;
	margin-top:5px;
}
.abbinati strong{
	color: #000;
}
.abbinati span:nth-of-type(1){
	color: #990000;
}
.abbinati img{
	float:left;
	margin-right:10px;
	max-height: 70px;
}

.scroll {
	overflow: hidden;
	display: block;	
}
.scroll::-webkit-scrollbar {
	display: none;
}
.scroll ul {
	margin: 0;
	display: flex;
	scroll-behavior: smooth;
	-ms-overflow-style: none;
	scrollbar-width: none;
	overflow: hidden !IMPORTANT;
	max-width: 100vw;
	box-sizing: border-box;
}
.scroll li {
	flex: 0 0 16%;
	height: fit-content;
	padding:0;
}

section:has(article):has(aside) aside h2 {
	text-transform: uppercase;
	font-size: inherit;
}
section:has(article):has(aside) aside .selected > a:first-of-type {
	color: #306eff !IMPORTANT;
	font-weight: bold;
	text-shadow: -1px 1px 5px rgba(204, 204, 204, 1);
}
section:has(article):has(aside) aside a:hover {
	text-decoration: underline;
}
section:has(article):has(aside) aside nav > ul {
	list-style-type: none;
	padding: 0;
	margin: 0;
	margin-bottom: 20px;
	width: 100% !IMPORTANT;
}
section:has(article):has(aside) aside nav ul ul {
	list-style-type: none;
	margin: 0;
	margin-top: 10px;
	overflow: hidden;
	transition: height 0.5s ease-in-out;
	padding:0;
}
section:has(article):has(aside) aside nav ul ul li {
	margin: 0;
	margin-top: 10px;
}
section:has(article):has(aside) aside nav ul ul li:last-of-type {
	margin-bottom: 10px;
}
section:has(article):has(aside) aside nav ul img {
	float: right;
	cursor: pointer;
	box-shadow: -1px 1px 5px rgba(0, 0, 0, 0.1);
	margin-top:5px;
}
section:has(article):has(aside) aside nav ul li {
	margin-bottom: 10px;
	display: block;
	align-items: center;
	justify-content: space-between;
}

section:has(article):has(aside) aside nav:first-of-type ul li {
	position: relative;
	padding-left: 35px;
}
section:has(article):has(aside) aside nav:first-of-type ul li::after {
	content: '';
	position: absolute;
	top: 15px;
	left: 0;
	transform: translateY(-15px);
	width: 24px;
	height: 24px;
	mask: url('../images/argomenti.png') no-repeat;
	-webkit-mask: url('../images/argomenti.png') no-repeat;
	background-color: #009900;
	transition: background-color 0.3s ease;
}
section:has(article):has(aside) aside nav:first-of-type ul li:hover::after,
section:has(article):has(aside) aside nav:first-of-type ul li.selected::after {
	background-color: #306eff;
}
section:has(article):has(aside) aside nav:first-of-type ul li.selected {
	color: #306eff !important;
}
section:has(article):has(aside) aside nav ul li:has(img):hover > a {
	text-decoration: underline;
}
section:has(article):has(aside) aside nav:first-of-type ul li a {
	color: #009900;
}
section:has(article):has(aside) aside > nav:not(:first-of-type) li {
	display: inline-flex;
	float: left;
	margin: 0;
	margin-right: 10px;
	margin-top: 5px;
	margin-bottom: 5px;
	position: relative;
}

.argomenti ul {
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}
.argomenti li {
	display: flex;
	position: relative;
	align-items: center;
}
.argomenti li:has(span),
.argomenti li a,
section:has(article):has(aside) aside > nav:not(:first-of-type) li a{
	padding:8px 15px;
	background-color:#e9e9e9;
	font-size:15px;
	transition: background-color 0.2s;
	white-space: nowrap;
}
.argomenti a:hover,
section:has(article):has(aside) aside > nav:not(:first-of-type) li a:hover{
	text-decoration: none;
}
.argomenti li span:nth-of-type(2){
	margin-left:5px;
}
.argomenti a:hover,
section:has(article):has(aside) aside > nav:not(:first-of-type) li:hover a {
	background-color: #306eff;
	color: #e9e9e9 !IMPORTANT;
}
.argomenti .selected a,
section:has(article):has(aside) aside > nav:not(:first-of-type) .selected a {
	background-color: #009900 !IMPORTANT;
	color: #fff !IMPORTANT;
	font-weight: normal;
}

.paginazione {
	display: flex;
	align-items: center;
	overflow: hidden;
	margin: 0 auto;
	width: fit-content;
	height: auto;
	color: #000;
	margin-top: 40px;
	border-top:1px #009900 solid;
	padding-top:10px;
}
.paginazione button,
.paginazione select {
	font-size: 16px;
	background-color: transparent !IMPORTANT;
	width: unset;
	padding: 10px !IMPORTANT;
	min-width: 70px !IMPORTANT;
	display: inline-block;
	text-align: center;
	margin: 0 5px 0 5px;
	cursor: pointer;
	color: #009900 !IMPORTANT;
	border: none;
	box-shadow: inset 0 0 0 1px #ccc !IMPORTANT;
	transition: background-color 0.5s, box-shadow 0.5s;
}
.paginazione button {
	padding-left: 20px;
	padding-right: 20px;
	font-weight:bold;
}
.paginazione select:hover {
	box-shadow: inset 0 0 0 1px #009900 !IMPORTANT;
}
.paginazione button:hover {
	background-color: #009900 !IMPORTANT;
	color:#fff !IMPORTANT;
}
.paginazione button:disabled{
	display:none;
} 

.badge {
	border: 2px #fff solid;
	font-size: 13px;
	font-weight: bold;
	position: absolute;
	bottom: -4px;
	right: -5px;
	background-color: #009900;
	color: white;
	border-radius: 50%;
	width: 20px;
	height: 20px;
	text-align: center;
	line-height: 18px;
	cursor:pointer;
}
.badge:not([data-value]),
.badge[data-value]:not([data-value="0"]) {
	background-color: #990000;
}

.acquisto {
	position: relative;
	width: 100% !IMPORTANT;
}
.acquisto {
	display:flex;
	flex-direction:column;
}
.acquisto ul {
	list-style: none;
	padding: 0;
	margin: 0;
}
.acquisto ul > ul > li {
	display: flex;
	align-items: center;
}
.acquisto li > div{
	width: fit-content;
}

#opzioni > div:first-of-type:has(span:nth-of-type(2)) > span {
	cursor: pointer !IMPORTANT;
}

#prezzi ul li {
	display:block;
	margin-bottom: 15px;
}

.caratteristiche strong,
.caratteristiche span{
	display:inline-flex;
	width: fit-content;
}

small {
	color: #aaa8a4;
}

.product-selector {
	margin: 15px 0;
}
.product-selector .numeratore{

	margin-right: 10px;
	margin-bottom: 10px;
}

.prodotti .numeratore {
	float: unset;
	margin-top: 10px;
	margin-bottom: 10px;
	max-width: 100%;
}
.prodotti .numeratore span:not(:is(button span)) {
	float: unset;
	margin: 0 10px;
	cursor: pointer;
}

.numeratore {
	float: left;
	margin: 0 auto;
	display: flex;
	flex-direction: row;
	align-items: center;
	box-shadow: 0 0 0 1px #ccc !IMPORTANT;
	color: #000;
	background: #FFF;
	width: fit-content;
	height: 45px;
}
.numeratore button {
	height:100%;
	padding: 0 10px !IMPORTANT;
	background-color: transparent !IMPORTANT;

}
.numeratore input {
	border: 0 !IMPORTANT;
	width: 40px !IMPORTANT;
	padding: 0 !IMPORTANT;
	color: #000;
	font-weight: bold;
	min-width: 35px;
	text-align: center;
	margin: 0;
	margin-top: -3px;
}

.testi {
	display: flex;
	flex-wrap: wrap;
	flex-direction:column;
	align-items: center;
	clear: both;
	width: 100% !IMPORTANT;
	margin-bottom: 20px !IMPORTANT;
}
.testi section{
	font-size: 20px;
}
.testi:not(:has(section)) nav{
	margin-bottom:unset;
}
.testi nav{
	width:100%;
	margin-bottom:30px;
	display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: start;
}
.testi > section{
	display:inline-block;
	width:100% !IMPORTANT;
}
.testi > section:not(:first-of-type) {
	display: none;
}
.testi h3 {
	display:none !IMPORTANT;
}
.testi nav ul {
	list-style-type: none;
	padding: 0;
	margin: 0;
	display:flow;
    padding: 0;
    margin: 0;
	width:100%;
}
.testi h3,
.testi nav li {
    position: relative;
    margin-right: 50px;
    padding: 5px 0;
    text-transform: uppercase;
    font-weight: bold;
    cursor: pointer;
    padding-left: 42px;
    color: #009900;
    height: fit-content;
    list-style: none;
    white-space: nowrap;
	display: inline-table;
    vertical-align: top;
	min-height:30px;
}
.testi h3::before,
.testi nav li::before {
	content: '';
	position: absolute;
	bottom: 0;
	left: 0;
	width: 0;
	height: 2px;
	background-color: #306eff;
	transition: width 0.2s ease;
}
.testi nav li.selected::before {
	width: 100%;
}
.testi h3::after,
.testi nav li::after {
	content: '';
	position: absolute;
	top: 50%;
	left: 0;
	transform: translateY(-50%);
	width: 24px;
	height: 24px;
	background-size: cover;
	mask: url('../images/argomenti.png') no-repeat;
	-webkit-mask: url('../images/argomenti.png') no-repeat;
	background-color: #009900;
	transition: background-color 0.5s ease;
}
.testi nav li.selected::after {
	background-color: #306eff;
}
.testi nav li.selected {
	color: #306eff !important;
}
.testi nav li:hover::after {
	background-color: #306eff;
}
.testi nav li:hover {
	color: #306eff;
}


header nav,
main > section{
	width: 1330px;
	padding: 0 30px;
	box-sizing: border-box;
}

section:has(article):has(aside) article {
	display: flex-inline;
	width: 73% !IMPORTANT;
	float: left;
}
section:has(article):has(aside) article:nth-of-type(2) {
	width: 100% !IMPORTANT;
}
section:has(article):has(aside) aside {
	float: right;
	font-size: inherit;
	width: 25%;
	/*top: 110px;*/
}
section:not(:has(section)) > ul,
section:not(:has(section)) ol {
	margin-left: 0;
	padding-left: 0;
	list-style-position: inside;
}
section:not(:has(section)) ul ul ul{
	list-style-type: disc;
}
section:not(:has(section)) ul ul ul li::marker {
	color: #990000;
}

.menu {
	position: fixed;
	list-style: none;
	background: #fff;
	padding: 15px 30px;
	box-sizing: border-box;
	right: 0;
	top: 0;
	margin: 0;
	z-index: 4;
	line-height: 2.3;
	width: 300px;
	height: 100vh;
	box-shadow: none;
	transform: translateX(100%);
	transition: transform 0.5s ease, box-shadow 0.5s ease, box-shadow 2s ease;
	overflow-y: auto;
}
.menu > ul{
	list-style: none;
}
.menu.show {
    transform: translateX(0);
	box-shadow:-5px 0px 5px rgba(0, 0, 0, 0.2);
}

.prodotti ul {
	padding: 0;
	list-style: none;
	overflow: auto;
}
.prodotti li {
	width: 100%;
	max-width: 31.96%;
	display: inline-block;
	text-align: center !IMPORTANT;
	margin-right: 2%;
	margin-bottom: 30px;
	/*font-weight: bold;*/
	vertical-align: top;
	position: relative;
	height: auto;
	float: left;
	box-sizing: border-box;
}
.prodotti:not(.scroll) li:nth-child(3n) {
	margin-right: 0;
}
.prodotti:not(.scroll) li:nth-child(3n+1) {
	clear: left;
}
.prodotti li img {
	max-width: 100%;
	/*max-height: 370px;*/
	max-height: 250px;
	display: block;
	margin: auto;
}


.prodotti.elenco ul:not(.correlate) li {
	max-width: unset;
	text-align: left !important;
	margin-right: unset;
	margin: 0 !important;
	margin-bottom: 10px;
	padding: 20px !important;
	box-sizing: border-box !important;
	border-radius: 5px;
}

.prodotti.elenco ul:not(.correlate) li:hover {
	background: #fbfbfb !important;
}

.prodotti.elenco ul:not(.correlate) li:hover .numeratore {
	opacity: 1;
	transition: max-height 0.7s ease, opacity 0.7s ease;
}

.prodotti.elenco ul:not(.correlate) li > div > div > span:first-of-type {
	margin-top: 15px;
}

/* Contenitore principale: flex row, immagine allineata in alto */
.prodotti.elenco ul:not(.correlate) li > div:not(.numeratore) {
	display: flex;
	flex-direction: row;
	align-items: flex-start; /* immagine in alto */
	gap: 15px;
	max-width: 100%;
	box-sizing: border-box;
	/* background: pink;  */ /* puoi togliere o tenere per debug */
}

/* Immagine */
.prodotti.elenco ul:not(.correlate) li > div:not(.numeratore) > a > img {
	max-height: 130px;
	display: block; /* elimina spazi bianchi sotto */
	flex-shrink: 0; /* evita rimpicciolimento */
	align-self: flex-start; /* forza immagine in alto */
	margin: 0; /* rimuovi margini */
}

/* Contenuto testo accanto all’immagine */
.prodotti.elenco ul:not(.correlate) li > div:not(.numeratore) > div {
	flex: 1 1 0;
	min-width: 0;
	box-sizing: border-box;
	margin: 0;
}



/* Numeratore */
.prodotti.elenco .numeratore {
	float: right;
	margin: 0 !important;
	margin-right: 20px !important;
	box-sizing: border-box;
	opacity: 0;
	overflow: hidden;
	
}



aside figure {
	margin: 10px 0 15px 0;
	position: relative;
	display: flex;
}
aside figure img {
	width: 100%;
	margin:0 !IMPORTANT;
	opacity: 0;
	display:none;
	transition: opacity 0.3s ease;
}
aside figure img.selected{
	display: unset;
	opacity: unset;
}

section:has(> figure) {
	display: flex;
}

section:has(> figure) figure {
	position: sticky;
	top: 110px;
	align-self: flex-start;
	display: flex;
	flex-direction: column;
	width: 46%;
	height: calc(97vh - 110px); /* dinamico: occupa tutto lo spazio disponibile */
	/*margin: 0 30px 0 15px;*/
	margin-left: 0;
	margin-right: 30px;
	margin-bottom: 0;
	overflow: hidden;
	box-sizing: border-box;
	min-height: 0;
	max-height:	750px;
}

section:has(> figure):not(:has(div:nth-of-type(2) img:nth-of-type(2))) > figure {
	height: unset;
}
section:has(> figure):not(:has(div:nth-of-type(2) img:nth-of-type(2))) > figure img{
	height:	calc(97vh - 110px);
}

figure > div:nth-of-type(1) {
	flex: 0 0 78%; /* occupa sempre 70% di figure */
	display: flex;
	justify-content: center;
	align-items: center;
	width: 100%;
	box-sizing: border-box;
	min-height: 0; /* evita overflow con flex */
	margin-bottom: 2%;
	max-height: 600px;
}
figure2 > div:nth-of-type(2) {
	 /*flex: 0 0 22%; occupa sempre 30% di figure */
	display: flex;
	justify-content: center;
	align-items: center;
	width: 100%;
	overflow-x: auto;
	overflow-y: hidden;
	background: yellow;
	scrollbar-width: none;
	-ms-overflow-style: none;
	box-sizing: border-box;
	min-height: 0; /* evita overflow con flex */
}

figure > div:nth-of-type(2) {
	white-space: nowrap;
	overflow: hidden;
	width: 100%;
	text-align: center;
	padding: 0;
	overflow-x: auto;
	scrollbar-width: none;
}

figure > div:nth-of-type(1) img,
figure > div:nth-of-type(1) video {
	max-width: 100%;
	max-height: 100% !IMPORTANT;
	object-fit: contain;
	transition: opacity 0.3s ease-in-out;
}
figure > div:nth-of-type(2) img,
figure > div:nth-of-type(2) video {
	max-height: 100%;
	max-width: 100%;
	border: 2px #ccc solid;
	border-radius: 5px;
	padding: 3px;
	background: #f0f0f0;
	cursor: pointer;
	margin-right: 5px;
	box-sizing: border-box;
	transition: border-color 0.2s;
	object-fit: contain;
	width: auto;
	height: auto;
}
figure > div:nth-of-type(2)::-webkit-scrollbar {
	display: none;
}
/* Nascondi anteprima se c'è solo una immagine o un video */
figure > div:nth-of-type(2):has(img):not(:has(img:nth-of-type(n+2))),
figure > div:nth-of-type(2):has(video):not(:has(video:nth-of-type(n+2))) {
	display: none;
}

section:has(> figure) figure div:nth-child(2) img:not(:last-child) {
	margin-right: 1%;
}
figure div:nth-child(2) img[draggable="true"],
figure div:nth-child(2) video[draggable="true"] {
	cursor: grab;
}
figure div:nth-child(2) img[draggable="true"]:active,
figure div:nth-child(2) video[draggable="true"]:active {
	cursor: grabbing; /*  Cursore durante il trascinamento */
}

section:has(> figure) {
	padding-bottom: 30px;
	display: flex;
}
section:has(> figure) > section {
	width: unset;
	display: table;
	padding: 0 !IMPORTANT;
	margin:0;

}

.box .numeratore {
	margin-left: 1px;
	margin-bottom: 1px;
}

.scroll button:nth-of-type(2) {
	display: none;
}

.scroll:has(li:nth-of-type(6)) button:nth-of-type(2) {
	display: unset;
}

@media screen and (min-height: 1000px) {

	header nav img {
		max-height: 80px;
	}
	header nav ul {
		margin-top: 10px;
		margin-bottom: 10px;
	}
	header aside {
		top: 35px;
	}
	
}
@media screen and (min-height: 700px) {
	section:has(> figure) figure {
		width: 52%;
		max-height: 750px;
	}
}
/* Layout "landskape" (grandi schermi) */
@media screen and (min-width: 1601px) {

	header nav,
	main > section{
		width: 80%;
		max-width: 1600px;
	}
	figure > div:nth-of-type(1) img,
	figure > div:nth-of-type(1) video {
		height: calc(90vh - 110px) !IMPORTANT;
	}
	/*section:has(> figure) figure {
		max-width: unset;
		width: 50%;
		max-height: 780px;
	}
	figure div:nth-of-type(1) {
		max-width: 100%;
	}
	figure div:nth-of-type(1) img,
	figure div:nth-of-type(1) video {
		max-width: unset;
		max-height: 600px;
	}*/
	}

/* Layout "desktop" (pc e laptop) */
@media screen and (max-width: 1350px) {

	header nav,
	main > section{
		width: 100% !IMPORTANT;
	}

	.scroll ul {
		margin-right: -50px;
		padding-right: 50px;
	}
}

/* Layout "tablet" (orizzontale) */
@media screen and (max-width: 992px) {

	header nav li:not(:first-of-type):not(:last-of-type):not(:nth-of-type(2)):not(:nth-of-type(5)) {
		display: none;
	}
	header nav aside img:last-child {
		display: unset !IMPORTANT;
	}

	/*figure div:nth-of-type(1) {
		height:75%;
	}
	figure div:nth-of-type(2) {
		height:25%;width: 45%;
	}*/
	section:has(> figure) figure {
		width: 55%;
	}
	.testi nav {
		display: none;
	}
	.testi > section:not(:first-of-type) {
		display: unset;
	}
	.testi h3 {
		display: table !IMPORTANT;
		margin: unset;
		width: 100%;
		box-sizing: border-box;
		cursor: default;
	}

	section:has(article):has(aside) aside {
		margin-top:20px;
		width:100%;
	}
	section:has(article):has(aside) aside h2{
		border-bottom:1px #009900 solid;
		width:100%;
	}
	section:has(article):has(aside) aside ul {
		padding: 0;
	}
	section:has(article):has(aside) aside li {
		display: inline;
		margin: 0;
		margin-right: 10px;
		margin-top: 5px;
		margin-bottom: 5px;
		position: relative;
		width: fit-content;
		float:left;
	}
	section:has(article):has(aside) aside li img,
	section:has(article):has(aside) aside li ul{
		display:none !IMPORTANT;
	}
	section:has(article):has(aside) aside li a {
		padding:8px 15px;
		background-color:#e9e9e9;
		font-size:15px;
		transition: background-color 0.2s;
	}
	section:has(article):has(aside) aside a:hover {
		text-decoration: underline;
	}
	section:has(article):has(aside) article {
		width: 100% !IMPORTANT;
	}
	section:has(article):has(aside) .prodotti {
		display: table;

	}
	section:has(article):has(aside) aside nav:first-of-type ul li,
	section:has(article):has(aside) aside nav:first-of-type ul li::after {
		position: static;
		padding-left: 0;
		vertical-align: baseline;
		content: none;
	}

	.prodotti:not(.scroll) {
		position: unset;
	}
	.prodotti li,
	.prodotti li:nth-child(3n) {
		width: 100%;
		max-width: 23.5%;
		margin-right: 2% !IMPORTANT;
		clear: unset !IMPORTANT;
	}
	.prodotti:not(.scroll) li:nth-child(4n) {
		margin-right: 0 !IMPORTANT;
	}
	.prodotti li:nth-child(4n+1) {
		clear: left !IMPORTANT;
	}

}

/* Layout "tablet" (verticale) */
@media screen and (max-width: 890px) {

	/*figure div:nth-of-type(1) {
		height: 67%;
	}
	figure div:nth-of-type(2) {
		height: 30%;
	}*/

}

/* Layout "mobile" (smartphone in orizzontale) */
@media screen and (max-width: 755px) {

	* {
		user-select: none;
		-webkit-user-select: none;
		-webkit-tap-highlight-color: transparent;
	}

	header nav li:not(:first-of-type):not(:last-of-type) {
		display: none;
	}

	/*section:has(> figure) > section {
		width: 100%;
		display: unset;
		float: unset;
		padding: 0 !IMPORTANT;
	}*/
	section:has(> figure) {
		display: block;
	}

	section:has(> figure) figure {
		float: unset !IMPORTANT;
		margin-left: 0;
		padding: 0;
		width: 100% !IMPORTANT;
		position: relative;
		margin-bottom: 15px;
		/*display: table;*/
	}
	section:has(> figure) figure {
		/*margin: 0 30px 0 0;*/
		top: unset;
		/*flex-direction: unset;*/
		justify-content: unset;
		align-items: unset;
		max-width: unset;
	}
	section:has(> figure) figure {
		height: auto;
	}
	/*
	
	figure div:nth-of-type(2) {
		text-align: unset;
		white-space: nowrap;
	}*/
	figure div:nth-of-type(2) img,
	figure div:nth-of-type(2) video {
		height: 120px;
	}

	figure div:nth-of-type(1) button:nth-of-type(1),
	figure div:nth-of-type(1) button:nth-of-type(2) {
		display: none !IMPORTANT;
	}

	.scroll ul {
		display: table;
	}
	.scroll li {
		width: 24%;
	}
	.scroll > button:nth-of-type(1),
	.scroll > button:nth-of-type(2) {
		display: none !IMPORTANT;
	}

	.right:has(.totale),
	.right:not(:has(.totale)){
	/*.right{*/
		float: none !IMPORTANT;
		/*position: static;*/
		text-align: left;
		margin-top: 10px;
	}

	.qrcode {
		display: none !IMPORTANT;
	}

	.dots {
		display: none;
	}

	.prodotti li,
	.prodotti li:nth-child(3n),
	.prodotti li:nth-child(4n),
	.prodotti li:nth-child(4n+1) {
		width: 100%;
		max-width: 31.96%;
		margin-right: 2% !IMPORTANT;
		clear: unset !IMPORTANT;
	}
	.prodotti li:nth-child(3n) {
		margin-right: 0 !IMPORTANT;
	}
	.prodotti li:nth-child(3n+1) {
		clear: left !IMPORTANT;
		
	}
}

/* Layout "smartphone" (verticale) */
@media screen and (max-width: 593px) {

	h1 {
		font-size: 18px;
		margin-bottom: 10px;
	}

	h2 {
		font-size: 18px;
	}

	header nav .login {
		display: none;
	}
	header nav img {
		max-height: 50px;
	}
	header nav aside img {
		margin-left: 20px;
		height: 35px;
	}

	header nav ul li:has(span) div:nth-of-type(2) {
		padding-left: 16px;
		padding-right: 16px;
		left: -33px;
	}
	header nav ul li:has(span) div:first-of-type {
		left: -18px;
	}

	/*section:has(> figure) figure {
		display: block;
		margin: 0;
		padding: 0;
		width: 100%;
	
	}*/

	section:has(> figure) figure img:not(:first-child):hover {
		border-color: unset;
	}
	figure div:nth-of-type(2) img,
	figure div:nth-of-type(2) video {
		height: 70px;
	}

	/*figure div:nth-child(2) img,
	figure div:nth-child(2) video {
		max-width: 22.5%;
		height: 70px;
	}
	figure div:nth-of-type(1) {
		min-height: 315px;
	}
	figure div:nth-of-type(1) img {
		max-height: 315px;
	}*/

	.prodotti li,
	.prodotti li:nth-child(3n),
	.prodotti li:nth-child(4n),
	.prodotti li:nth-child(4n+1) {
		width: 100%;
		max-width: 49%;
		margin-right: 0 !IMPORTANT;
		clear: unset !IMPORTANT;
	}
	.prodotti li:nth-child(3n+1) {
		clear: unset !IMPORTANT;
	}
	.prodotti li:nth-child(2n+1) {
		clear: left !IMPORTANT;
		margin-right: 2% !IMPORTANT;
	}

	.prodotti.elenco .numeratore {
		opacity: unset !IMPORTANT;
	}
	.prodotti.elenco ul:not(.correlate) li {
		padding: 10px 0 !IMPORTANT;
		margin-bottom: 15px !IMPORTANT;
	}
	/*.prodotti .numeratore {
		display: none;
	}*/
	.articolo div:first-of-type {
		width: 100% !IMPORTANT;
		float: unset !IMPORTANT;
		padding: 0 !IMPORTANT;
		text-align: left !IMPORTANT;
	}
	.articolo div:first-of-type img {
		max-width: 100%;
		max-height: unset;
		width: 100%;
		height: unset;
	}
	.articolo .prezzo:not(:nth-last-of-type(1)) {
		float: unset;
		text-align: left;
	}

	.menu {
		padding-bottom: 80px;
	}

	.scroll {
		margin: 0 !important;
		max-width: unset;
		padding: 0;
		width: 100%;
	}
	.scroll ul {
		width: 100%;
		padding: 0;
		margin: 0;
	}

	.no-mobile {
		display: none !IMPORTANT;
	}

	label,
	select {
		width: 100% !IMPORTANT;
		margin-bottom: 10px;
	}

	.paginazione button,
	.paginazione select {
		min-width: 45px !IMPORTANT;
		max-width: 23% !IMPORTANT;
	}
	.paginazione select {
		text-align-last: center !IMPORTANT;
	}

	#totale span:has(span) {
		font-size: 70%;
	}

	.sinistra,
	.centro,
	.destra {
		display: block;
		width: 100%;
		clear: both;
	}

	.intestazione {
		top: 25px !IMPORTANT;
		margin-top: -10px !IMPORTANT;
		padding-top: 0;
	}
	.intestazione small:first-of-type {
		max-width: unset;
		float: unset;
		white-space: unset;
		margin: 0;
		margin-bottom: 20px;
		display: block;
	}

}

/*@media screen and (max-width: 360px) {*/
@media screen and (max-width: 385px) {
	header nav,
	main > section {
		padding: 0 15px;
	}
	header nav aside{
		right: 15px;
	}
	header nav .login,
	header nav aside > img {
		display: none;
	}
	.prodotti.elenco ul:not(.correlate) li > div:not(.numeratore) > a > img {
		max-height: 140px !IMPORTANT;
	}
}

/*  Layout "smartwatch" */
@media screen and (max-width: 350px) {

	figure div:nth-of-type(1) {
		display: none;
	}
	section:has(> figure) figure {
		max-height: unset;
	}
	figure div:nth-of-type(2) img,
	figure div:nth-of-type(2) video {
		display: block;
		height: unset;
		max-width: 100%;
		border: unset !IMPORTANT;
		border-radius: unset;
		padding: unset;
		background: unset;
		cursor: default;
		margin-right: unset;
		margin-bottom: 20px;
	}
	figure div:nth-child(2) button:nth-of-type(1),
	figure div:nth-child(2) button:nth-of-type(2) {
		display: none !IMPORTANT;
	}

	header nav aside > a {
		display: none;
	}

	.prodotti:not(.elenco) li,
	.prodotti:not(.elenco) li:nth-child(3n),
	.prodotti:not(.elenco) li:nth-child(4n),
	.prodotti:not(.elenco) li:nth-child(4n+1) {
		max-width: unset !IMPORTANT;
		margin-right: 0 !IMPORTANT;
		margin-bottom: 20px;
		padding-bottom: 20px;
	}
	.prodotti:not(.elenco) li a {
		width: 100%;
	}
	.prodotti:not(.elenco) .numeratore {
		display: inherit;
	}

	.paginazione button:first-of-type,
	.paginazione button:last-of-type {
		display: none;
	}

	.paginazione select {
		max-width: unset !IMPORTANT;
	}
}