html {
   max-width: 100%;
   height: 100%;
}
body {
   margin: 0;
   background-color: #212121;
   background-repeat: no-repeat;
   background-position: 60px 60px;
   font-family: sans-serif;
   padding-top: 65px;
   padding-left: 65px;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
}

* {
   box-sizing: border-box;
}

p, a {
   margin: 0;
   padding: 0;
   text-decoration: none;
   text-align: center;
   display: inline-block;
   vertical-align: middle;
   width: 100%;
   color: inherit;
}

canvas {
	border-radius: 9mm;/*inherit;*/
}

input[type=text], select, textarea {
   height: 100%;
   width: 100%;
   display: inline-block;
   border-radius: 4px;
   background-color: white;
   border: 0px;
   text-align: center;
}

input:read-only, textarea:read-only {
  background-color: #ccc;
}

.colore input[type=text] {
   width: 310px;
}

#righeord input[type=text] {
   font-size: 12px;
}

label {
   color: black;
   display: inline-block;
   line-height: 32px;
   font-size: 18px;
   line-height: 1;
   vertical-align: text-bottom;
}

.frame label {
   color: white;
}

.colore label {
   color: white;
   vertical-align: middle;
   text-align: center;
}

#righeord label, #fineord label {
   font-size: 14px;
   padding-top: 8px;
}

.header {
	display:flex;
	min-width: 1080px;
	width: 1080px;
	flex-wrap: wrap;
	flex: 0 0 auto;
}

.titolo {
   color: #AE8B61;
   font-weight: bold;
   font-size: 20px;
}

:root {
  --but-C-w: 118px;
  --but-L-w: 310px;
	color-scheme: dark;
}
.colore * {
   margin-top: 3px; 
   display: block;
}

.container {
   border-radius: 10px;
   background-color: #ae8b61;
   padding: 3px 12px;
   margin-top: 26px;
   float: right;
}

.btn {
   width:156px;
}

.small {
   width:280px;
}

.large {
	min-width: 966px;/*966*/
	width: 966px;
}

.hfill {
	width: 100%;
}

.frame {
   border-radius: 10mm;
   background-color: #323232;
   border: #AE8B61 3px solid;/*1mm solid;*/
	border-left-width: 4px;
   padding: 3px;
   margin: 5mm 0;
   display: flex;
	flex-wrap: wrap;
   align-items: center;
}
#v3d_div {
	border-left-width: 3px;
	padding: 0;
}
.tab {
	border: none;
	display: flex;
	margin-top: 5mm;
}

.lefttab {
	background-image: url(lefttab.svg);
}

.righttab {
	background-image: url(righttab.svg);
	width: 967px;
	margin-left: -1px;
}

.tabcontent {
  border-top: none;
  border-top-left-radius: 0;
  border-top-right-radius: 0;
  margin-top: 0px;
  align-items: flex-start;
}

.tabcontent:last-of-type {
  padding-bottom: 6mm;
}

.centered {
   justify-content: center;
}

.toend {
   justify-content: flex-end;
}

.tostart {
   justify-content: flex-start;
}

.padded {
   padding: 0 8mm 8mm 8mm;
   margin-top: 8mm;
}

.menu-C {
	width: calc(var(--but-C-w)*3 + 42px);
	padding: 0 0 8mm 0;
}

.maxVlimit {
	max-height: 180mm; /*190mm*/
	overflow: auto;
}

@supports (overflow: overlay) {
	.maxVlimit {
		overflow: overlay;
	}
	
}

@supports (scrollbar-width: none) {
	.maxVlimit {
		/*scrollbar-width: none;*/
	}
}

@supports not (scrollbar-width: none) {
	.menu-C {
		width: calc(var(--but-C-w)*3 + 20px);
	}

	.maxVlimit {
		scrollbar-gutter: stable;
	}
}

.buttab {
   display: flex;
   align-items: center;
   height:114px;
   width: 50%;
   padding-bottom: 24px;
   color: white;
   cursor: pointer;
}

.butrow {
   display: flex;
	flex-wrap: wrap;
	gap: 5mm;
}

.halfrow {
	flex-basis: 50%;
}

.butrow-int {
   padding: 8mm;
   margin-top: -8mm;
	gap: 0;
}

.butrow-ext {
}

.nogap {
	gap: 0;
}

.but {
   display: flex;
   align-items: center;
   height: 48px;
   border-radius: 20px;
   background-color: #424242;
   border: #AE8B61 2px solid;
   cursor: pointer;
   color: white;
}

.but-A,
.but-A[data-part] .but-P {
	border-color: #51749e;
	filter: invert(100%);
}

.but-A[data-color] {
   border-radius: 50%;
   border: #AE8B61 3px solid;
   filter: none;
}

.but-A[data-part] {
   filter: none;
}

div[data-part] {
	cursor: pointer;
/*    margin-bottom: 8mm; */
   color: white;
   font-size: 12pt;
}

div[data-part] img {
	border-radius: 10px;
	margin-bottom: -2px;
}

.but-G {
   width: 323px;
}

.but-C {
	width: var(--but-C-w);
	height: var(--but-C-w);
	background-repeat: no-repeat;
	background-size: var(--but-L-w);
	border: none;
	border-radius: 10px;
	margin: 2px;
}
.but-C:not(.but-C-X) {
	transform: rotate(90deg);
	background-color: #cccccc;
}
.but-C p {
	margin-top: calc(var(--but-C-w)*60/100);
	margin-left: auto;
	margin-right: auto;
	background-color: #70706f;
	width: auto;
	padding: 2px 5px;
	border-radius: 5px;
	
}
.but-C:not(.but-C-X) p {
	position: absolute;
	left: 50%;
	transform: rotate(-90deg);
	margin: auto;/* auto auto 16px;*/
	
}
.but-C-X {
	width: calc(var(--but-C-w)*3 + 12px);
	background-size: calc(var(--but-C-w)*3 + 12px);
	/*border-radius: 30mm;*/
	margin: 10px 0 3px 0;
	background-color: #70706f;
}

.but-C-X p {
  margin: auto;
  font-size: 36px;
  max-width: calc(var(--but-C-w)*2);
}

.but-O {
   width: 270px;
   height: 130px;
	background-position: center;
	background-repeat: no-repeat;
}

.but-O a  {
	height: 100%;
}

.but-P {
   min-width: 94px;
   height: 35px;
   padding: 0px 5px;
   font-size: 16pt;
}

.but-Q {
   width: 48px;
}

.buttab a  {
   font-size: 29pt;
}

.but-P a {
   font-size: 12pt;
}

.but-P p {
   font-size: 16pt;
   color: white;
}

.but-L {
   width: var(--but-L-w);
   margin-bottom: 4px;
}

.main-but {
   width: 68px;
   height: 68px;
   line-height: 68px;
   margin-left: 5px;
   padding: 3px;
}

.main-but a {
   line-height: 1.2;
   font-size: 11px;
   color: black;
   width: 100%;
}

.main-but:last-of-type {
   margin-left: 0;
}

.img-K {
	width: var(--but-L-w);
	height: 60px;
	background-size: var(--but-L-w);
	background-position: center;
	background-repeat: no-repeat;
	background-size: contain;
	background-color: transparent;
}

.img-K[data-lock="0"][data-name="FRONTE"],
.img-K[data-lock="0"][data-name="RETRO"] {
	background-image: url("LUCCHETTO_DISATTIVO.png");
}

.img-K[data-lock="1"][data-name="FRONTE"],
.img-K[data-lock="1"][data-name="RETRO"] {
	background-image: url("LUCCHETTO_ATTIVO.png");
}

.img-L {
	width: var(--but-L-w);
	height: 56px;
	background-size: var(--but-L-w);
	border-radius: 25px;
	background-color: #cccccc;
}

#info {
	background-image: url("info.png");
	background-position: center;
	background-repeat: no-repeat;
	width: 100%;
	height: 100%;
}

.col-label {
   float: left;
   height: 32px;
   max-width: 32%;
}

.col-label2 {
   float: left;
   height: 32px;
   max-width: 32%;
   margin-left: 50px;
}

#fineord .col-label {
   width: 128px;
   max-width: unset; 
   text-align: center;
}

.col-data {
   float: right;
   height: 32px;
   width: 68%;
}

.col-data:first-child {
   float: right;
   height: 32px;
   width: 100%;
}

#intro .col-data {
   width: 50%;
}

#anag .col-data {
   width: 85%;
}

#fineord .col-data {
   width: 52px;
}

.col-button {
 float: right; 
 width: 80px;  
}

.col-ord {
   float: left;
   height: 32px;
   margin-right: 16px;
   text-align: center;
}

.col-ord-1 {
 width: 60px;  
}

.col-ord-2 {
 width: 40px;  
}

.col-ord-3 {
 width: 110px;  
}

.col-ord-4 {
 width: 86px;  
}

.col-ord-5 {
 width: 80px;  
}

.col-ord-6 {
 width: 70px;
 padding-left: 20px;
 padding-right: 20px;  
 margin-right: 0px;
}

.col-ord-7 {
 width: 40px;
 padding-left: 0px;
 padding-right: 10px;  
 margin-right: 0px;
}

.ord-button {
 float: right; 
 width: 32px;
 margin-left:15px;  
}

.ord-button:last-of-type {
   margin-left: 0;
}

.full-but {
   height: 37px;
   line-height: 37px;
   border-radius: 10px;
   background-color: #ae8b61;
   float: right;
   width: 100%;
}

.full-but a {
   font-size: 18px;
   color: black;
   width: 100%;
}

.row {
   padding-top: 8px;
}

.row:after {
   content: "";
   display: table;
   clear: both;
}

.row:last-of-type {
   padding-bottom: 8px;
}

.frame .row {
   padding-top: 18px; 
}

.frame .row:last-of-type {
   padding-bottom: 18px; 
}

#righeord .row {
   padding-top: 14px; 
}

#righeord .row:last-of-type {
   padding-bottom: 14px; 
}

.autocomplete {
  position: relative;
  display: inline-block;
}

.autocomplete-items {
  border: 1px solid #d4d4d4;
  border-bottom: none;
  border-top: none;
  z-index: 99;
  /*position the autocomplete items to be the same width as the container:*/
  top: 100%;
  left: 0;
  right: 0;
  opacity: 0.99;
}

.autocomplete-items div {
  position: relative;
  padding: 10px;
  cursor: pointer;
  background-color: #fff; 
  border-bottom: 1px solid #d4d4d4; 
}

/*when hovering an item:*/
.autocomplete-items div:hover {
  background-color: #e9e9e9; 
}

/*when navigating through the items using the arrow keys:*/
.autocomplete-active {
  background-color: DodgerBlue !important; 
  color: #ffffff; 
}

.popup {
  display: none; /* Hidden by default */
  position: fixed; /* Stay in place */
  z-index: 1; /* Sit on top */
  top: 0;
  height: 100%;
  padding: 100px; /* Location of the box */
  overflow: auto; /* Enable scroll if needed */
  background-color: transparent;
}

/* Modal Content (image) */
.popup-content {
  margin: auto;
  display: block;
  width: 100%;
  border: 15px solid #AE8B61; 
}

/* Add Animation */
.popup-content, #caption {  
  -webkit-animation-name: zoom;
  -webkit-animation-duration: 0.6s;
  animation-name: zoom;
  animation-duration: 0.6s;
}

@-webkit-keyframes zoom {
  from {-webkit-transform:scale(0)} 
  to {-webkit-transform:scale(1)}
}

@keyframes zoom {
  from {transform:scale(0)} 
  to {transform:scale(1)}
}

.close {
   margin-left: 30px;
   margin-top: 30px;
   position: absolute;
}

.insensitive {
  pointer-events: none;
  color: #606060;
}

.hidden {
	display: none;
}
