@font-face {
	font-family:'Moderat';
	font-style:normal;
	font-weight:medium;
	src:url(fonts/Moderat-Medium.otf);
}

@font-face {
	font-family:'Moderat';
	font-style:normal;
	font-weight:normal;
	src:url(fonts/Moderat-Regular.otf);
}

@font-face {
	font-family:'Stanley';
	font-style:normal;
	font-weight:normal;
	src:url(fonts/Stanley-Regular.otf);
}

* {
	margin: 0;
	padding: 0;
	outline: 0;
	box-sizing: border-box;
  -webkit-touch-callout: none; /* iOS Safari */
    -webkit-user-select: none; /* Safari */
     -khtml-user-select: none; /* Konqueror HTML */
       -moz-user-select: none; /* Firefox */
        -ms-user-select: none; /* Internet Explorer/Edge */
            user-select: none; /* Non-prefixed version, currently
                                  supported by Chrome and Opera */
}

.clearfix {
	clear:both;
}

.clearfix:after {
	clear:both;
	content:".";
	display:block;
	height:0;
	line-height:0;
	visibility:hidden;
}
	
html, body {
	width: 100%;
	height: 100%;
	background-color: #333;
	color: #333;
	overflow: hidden;
	font-family: 'Moderat', sans-serif;
	font-size: 14px;
	line-height: 1.3em;
	font-weight: normal;
}

.overflow {
	height:100%;
	overflow-y: scroll;
	position:relative;
	margin-right:-17px;
	padding:0 57px 40px 40px;
}

@media (max-width: 1023px){
	.overflow {
		padding:0 20px;
	}
}

#webgl, canvas {
	width: 100%;
	height: 100%;
	overflow: hidden;
	padding:0;
	z-index: 1;
	display: block;
}

h1, h2, h3, h4 {
	font-weight: medium;
	line-height: 1em;
	margin-bottom:0.3em;
}

h1 {
	font-size: 2.5em;
}

h2 {
	font-size: 2em;
}

h3 {
	font-size: 1.5em;
}

h4 {
	font-size: 1em;
}

.font-moderat {
	font-family: 'Moderat', sans-serif;
}

.font-stanley {
	font-family: 'Stanley', sans-serif;
}

p {
	margin-bottom:0.5em;
}

a {
	color: inherit;
	font-weight: medium;
	text-decoration: none;
	opacity: 0.8;
}
a:hover {
	opacity: 1;
}

.material-icons, .material-icons-sharp, .material-icons-outlined, .fa {
	font-size: 1.2em !important;
    line-height: inherit !important;
    vertical-align: bottom;
    min-width:1.2em;
}
    
.link {
	display: inline-block;
	border-bottom: solid 3px #333;
	padding-bottom: 5px;
	transition: all 0.3s ease;
	cursor: pointer;
	opacity: 0.8;
	font-size: 1.2em;
	margin-right:5px;
}
.link:hover {
	opacity: 1;
}

.next {
	opacity: 0.8;
	transition: all 0.3s ease;
	cursor: pointer;
	font-size: 1.2em;
}
.next:hover {
	opacity: 1;
}
.next:after {
	content: '›';
	margin-left:8px;
	vertical-align: bottom;
	cursor: pointer;
	transition: all 0.3s ease;
}
.next:hover:after {
	margin-left:12px;
}

b {
	font-weight: medium;
}

i {
	font-family: 'Stanley', sans-serif;
}

.button {
	background-color: #333;
	color:white;
	transition: all 0.5s ease;
	padding:10px 30px;
	cursor: pointer;
	text-align: center;
	margin:0 5px 5px 0;
	font-size: 1.2em;
	display: inline-block;
}

.button:hover {
	background-color: black;
}

@media (max-width: 768px){
	.button {
		width: 100%;
	}
}

/*
hr {
	width:60px;
	color:white;
	margin:30px auto;
}
*/

hr {
	color:#333;
	margin:30px auto;
	border:none;
	border-top: solid 1px #333;
}

img {
	display:block;
	margin:auto;
	max-width: 100%;
}

sub {
	font-size: 12px;
}

.hidden{
	opacity: 0 !important;
}

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

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

.uppercase {
	text-transform: uppercase;
}

#logo_ceramiche_lea {
	position: fixed;
	top: 20px;
	left: 40px;
	z-index: 100;
	height:40px;
	cursor: pointer;
}

@media (max-width: 1023px){
	#logo_ceramiche_lea {
		left: 15px;
		top: 25px;
		height:32px;
	}
}

/************ MENU ICONS ****************/

#menu {
	position: fixed;
	top: 20px;
	right: 40px;
	color:white;
	z-index: 2;
	opacity: 1;
	text-align:right;
}

@media (max-width: 1023px){
	#menu {
		right: 15px;
		max-width: calc(100% - 135px);
	}
}

#menu a {
	display:inline-block;
	min-width:40px;
	height:40px;
	text-align: center;
	vertical-align: middle;
	line-height: 40px;
	font-size: 18px;
	background-position: center center;
	background-size: auto 75%;
	background-repeat: no-repeat;
	transition: all 0.2s ease;
	margin-left:10px;
	text-shadow: 0px 0px 2px black;
}

#menu a:hover {
	transform: scale(1.05);
	opacity: 1;
}

#menu  #menu_icon_vr {
	display:none;
}

#menu  #menu_icon_gyro {
	display:none;
}

#menu  #menu_icon_cursor {
	display:none;
}

/*
#menu a:hover , #menu a.active {
	background-color: rgba(255,255,255,0.1);
}

#menu  #menu_icon_vr {
	background-image: url(images/gui/icon_cardboard.png);
	display:none;
}

#menu  #menu_icon_gyro {
	background-image: url(images/gui/icon_mobile.png);
	display:none;
}

#menu  #menu_icon_cursor {
	background-image: url(images/gui/icon_touch.png);
	display:none;
}

#menu  #menu_icon_places {
	background-image: url(images/gui/icon_places.png);
}

#menu  #menu_icon_materials {
	background-image: url(images/gui/icon_materials.png);
}

#menu  #menu_icon_scenes {
	background-image: url(images/gui/icon_scenes.png);
}

#menu  #menu_icon_guide {
	background-image: url(images/gui/icon_help.png);
}
*/

/************ MENU CONTENTS ****************/

.menu_box {
	position: fixed;
	top: 0;
	right: 0;
	width:100%;
	height: 100%;
	overflow: hidden;
	z-index: 3;
	background-color: #7b7b7b;
	padding: 100px 0 0;
	transition: all 0.5s ease;
	transform: translateX(100%);
}

.menu_box.open {
	transform: translateX(0);
}

.close {
	position: absolute;
	top: 20px;
	right: 40px;
	display:block;
/* 	float:left; */
	width:40px;
	height:40px;
	text-align: center;
	line-height: 35px;
	font-size: 30px;
	transition: all 0.2s ease;
	cursor: pointer;
}

@media (max-width: 1023px){
	.close {
		right: 20px;
	}
}

.close:hover {
	background-color: rgba(255,255,255,0.1);
}

.back {
	position: absolute;
	top: 20px;
	right: 90px;
	display:block;
/* 	float:left; */
	height:40px;
	padding: 0 10px;
	text-align: center;
	line-height: 35px;
	font-size: 30px;
	transition: all 0.2s ease;
	cursor: pointer;
}

@media (max-width: 1023px){
	.close {
		right: 70px;
	}
}

.back:hover {
	background-color: rgba(255,255,255,0.1);
}

#vr_close {
	display:none;
}

/************ MENU GENERAL & LANG ****************/

#menu_general, #menu_box_lang {
	min-width: 250px;
	background-color: #eee;
}

@media (min-width: 1024px){
	#menu_general, #menu_box_lang {
		width:33%;
	}
}

#menu_general a, #menu_box_lang a {
	display:block;
	margin-bottom: 1.2em;
	font-size: 18px;
	transition: all 0.2s ease;
}

#menu_general a:hover, #menu_box_lang a:hover {
	padding-left: 5px;
}

/************ MENU SHARE ****************/

#menu_box_share {
	min-width: 250px;
	background-color: #eee;
}

@media (min-width: 1024px){
	#menu_box_share {
		width:50%;
	}
}

/************ COLS ****************/

.col-1 {
	width:100%;
	padding: 20px 0 10px;
}

.col-12 {
	float:left;
	width:calc(50% - 20px);
	padding: 10px 0;
	margin: 0 20px 0 0;
}

@media (max-width: 768px){

	.col-12 {
		width:calc(100% - 20px);
	}

}

.col-14 {
	float:left;
	width:calc(50% - 20px);
	padding: 10px 0;
	margin: 0 20px 0 0;
}

@media (min-width: 1025px){

	.col-14 {
		width:calc(25% - 20px);
	}

}

@media (max-width: 768px){

	.col-14 {
		width:calc(100% - 20px);
	}

}

.col-15 {
	float:left;
	width:calc(50% - 20px);
	padding: 10px 0;
	margin: 0 20px 0 0;
}

@media (min-width: 1025px){

	.col-15 {
		width:calc(20% - 20px);
	}

}

@media (max-width: 768px){

	.col-15 {
		width:calc(100% - 20px);
	}

}

/************ LISTS ****************/

ul {
	margin: 20px 0;
}

ul li {
	list-style-type: none;
	padding: 10px 10px;
	border-bottom:solid 1px #333;
	cursor: pointer;
	transition: all 0.3s ease;
}
ul li:hover {
	background-color: rgba(255,255,255,0.1);
}

ul li.active:after {
	content:'✓';
	float:right;
	margin:0 20px;
}

ul li.capolista {
	padding: 10px 0 20px;
	margin-top: 10px;
	cursor: default;
	text-transform: uppercase;
	font-weight: medium;
}

ul li.capolista:hover {
	background-color: transparent;
}


/************ SPLASH SCREEN ****************/

#splash_screen {
	z-index: 3;
}

#splash_screen .splash_txt, #splash_screen .splash_img {
	margin: 60px 0;
}

#splash_devices {
	opacity:0.5;
	margin-bottom:20px;
}

#splash_devices img {
	margin:0 15px 15px 0;
	width:100px;
}

@media (min-width: 1025px) and (min-height: 700px){
	#splash_screen .splash_txt {
		display:inline-block;
		vertical-align: middle;
		width: 33%;
		margin: 20px 3% 20px 0;
	}
	#splash_screen .splash_img {
		display:inline-block;
		vertical-align: middle;
		width: 63%;
		margin: 20px 0 20px 0;
		cursor: pointer;
	}
	#splash_devices {
		position:absolute;
		bottom:50px;
		width:calc(100% - 100px);
		margin:0;
	}
	#splash_devices img {
	}
}

#notice_gyro {
	background-color: #a69897;
}

/************ GUIDA ****************/

#menu_box_guide h2 {
	margin-top:30px;
}

.istruzione {
	margin-bottom:30px;
	vertical-align: top;
}

@media (max-width: 1023px){

	.istruzione {
		width:auto;
		margin:0 0 30px;
	}
	
}

.istruzione b {
	font-size: 2em;
}


/************** SCENES ****************/

#preset_container {
	display: none;
}

#preview_container {
	display: none;
}

.collection_thumb {
	overflow: hidden;
	opacity: 0.8;
	transition: all 0.3s ease;
	cursor: pointer;
}

.collection_thumb:hover {
	opacity: 1;
}

.collection_thumb .thumb_img {
	overflow: hidden;
}

/*
#preset_container .thumb_img {
	max-height: 150px;
}
*/

#preset_container .collection_thumb .thumb_img {
	width: 100%;
}

.collection_thumb img {
	transition: all 0.5s ease;
	transform: scale(1);
	z-index: 1;
	width:100%;
}

.collection_thumb:hover img {
	transform: scale(1.05);
}

.collection_thumb .thumb_text {
	background-color: #bbb;
	padding: 10px 25px;
	z-index: 2;
	min-height: 94px;
}

.collection_thumb .thumb_link {
	background-color: #ddd;
	z-index: 2;
	display: flex;
	justify-content: space-between;
}

.collection_thumb .thumb_link span {
	text-transform: uppercase;
	transition: all 0.3s ease;
	padding: 10px;
	flex-basis: 50%;
	text-align: center;
}

.collection_thumb .thumb_link span:first-child {
	border-right: solid 1px #bbb;
}

.collection_thumb .thumb_link span:hover {
	transform: scale(1.1);
}

.collection_thumb .thumb_text h3 + p {
	display:block;
	/*min-height: 3em;*/
}

.collection_thumb:hover p.next {
}

/************ PLACES ****************/

#sezione_mappa {
	width:40%;
	display:inline-block;
	vertical-align: top;
}

#sezione_mappa #mappa {
	background-image: url(images/gui/mappa_ambiente.png);
	background-position: center center;
	background-repeat: no-repeat;
	background-size: contain;
	padding-top:100%;
	position:relative;
}

#sezione_mappa img {
	max-width: 100%;
	max-height: 400px;
	opacity: 0.3;
}

#sezione_mappa .pin {
	position:absolute;
	display:block;
	width:15px;
	height:15px;
	border-radius: 50%;
	background-color: white;
	transform: translate(-50%,-50%);
	transition: all 0.2s ease;
	cursor: pointer;
	opacity: 0.5;
}

#sezione_mappa .pin:hover, #sezione_mappa .pin.active {
	width:25px;
	height:25px;
	opacity: 1;
}

#sezione_elenco {
	width:40%;
	margin-left:10%;
	display:inline-block;
	vertical-align: top;
}

/************ MATERIALS ****************/

.sezione_materiali {
	transition: all 0.5s ease;
}

.sezione_materiali h2 {
	transition: all 0.5s ease;
	cursor: pointer;
	white-space: nowrap;
}

.sezione_materiali h2 span {
	font-size: 14px;
	font-weight: normal;
	margin-left:10px;
}

.sezione_materiali ul {
	overflow: hidden;
	opacity:0;
	max-height:0;
	transition: all 0.5s ease;
}

.sezione_materiali.open ul {
	opacity:1;
	max-height:1400px;
}

.sezione_materiali .thumb {
	display: inline-block;
	margin-right:10px;
	vertical-align: middle;
	transition: all 0.5s ease;
	max-height:60px;
	max-width:60px;
	opacity:1;
}

.sezione_materiali .thumb.mini {
	display: none;
	margin-right:2px;
	max-width: 37px;
	float:right;
}

.sezione_materiali.open .thumb.mini {
	display: block;
}

.capolista .thumb {
	max-width:30px;
}

.sezione_materiali.open .thumb {
	opacity:1;
}

.sezione_materiali .square {
	display: block;
	margin-bottom:10px;
	vertical-align: middle;
	transition: all 0.5s ease;
	border: solid 2px #333;
}

@media (min-width: 1025px){
	
	.sezione_materiali {
		width:10%;
		display:inline-block;
		vertical-align: top;
	}
	
	.sezione_materiali h2 {
		transform: rotate(90deg);
		transform-origin: bottom left;
	}
	
	.sezione_materiali ul {
		max-width:0;
	}
	
	.sezione_materiali.open {
		width:55%;
	}
	
	.sezione_materiali.open h2 {
		transform: rotate(0deg);
	}
	
	.sezione_materiali.open ul {
		max-width:80%;
	}
	
}

@media (max-width: 1023px){

	#sezione_mappa {
		width:auto;
		max-width: 400px;
		margin:20px 0;
		display:block;
	}
	
	#sezione_elenco {
		width:auto;
		margin:20px 0;
		display:block;
	}

	.sezione_materiali {
		width:100% !important;
		display:block;
	}
	
}

/************ FINISH INFO ****************/

#finish_info {
	position: fixed;
	top: 82px;
	left: -100%;
	width:100%;
	max-height: calc(100% - 82px);
	overflow-y: auto;
	z-index: 1;
	background-color: #d4d4d4;
	padding:25px 25px 50px;
	transition: all 0.5s ease;
}

#finish_info.open {
	left:0;
}

#finish_info .close {
	right: 25px;
}

#finish_info div .symbol {
	position:absolute;
	top:69px;
	right:25px;
	width:30px;
}

#finish_info div .side_thumb {
	max-width:100px;
	margin:20px 0;
}

@media (min-width: 769px){

	#finish_info {
		padding:25px 25px 25px 250px;
		top: 50%;
		transform: translateY(-50%);
		max-width: 768px;
	}

	#finish_info.open {
		left: 50%;
		transform: translate(-50%,-50%);
	}
	
	#finish_info div .side_thumb {
		position:absolute;
		top:25px;
		left:25px;
		margin:0;
		max-width:200px;
	}

}

@media (min-width: 1025px){

	#finish_info {
		padding:25px 25px 25px 250px;
		top: 50%;
		transform: translateY(-50%);
		max-width: 768px;
	}

}

input, select, textarea, button {
	padding:0.8em;
	margin: 10px 0;
	display: block;
	width:100%;
	font-family: sans-serif;
	font-size: 14px;
	color:#333;
	border:none;
	border-radius: 0;
}

input[type="checkbox"] {
	width: auto;
	margin: 0 10px 0 0;
	display: inline-block;
	vertical-align: middle;
	padding: 0;
}

#editor {
	position: fixed;
	top: 50%;
	left: 50%;
	transform: translate(-50%,-50%);
	max-height:calc(90%);
	width:75%;
	max-width:600;
	overflow-y: auto;
	box-shadow: 0px 0px 5px rgba(0,0,0,0.5);
	border-radius: 3px;
	display:none;
	padding:15px;
	background-color: rgba(0,0,0,0.9);
	color:white;
}
