@media screen and (orientation: landscape) {
    .file_vid #navTop,
    .file_vid #navBottom {
        display: none;
    }
}

input[type='text']:focus,
input[type='password']:focus,
select:focus,
textarea:focus{
  outline: 2px solid #0760cd !important;
}
.logged #pagina_cont{
	min-height:0px;
	padding-bottom:20px;
}
.logged #pagina{
	max-width:100% !important;
	text-align:center;
}
h1 > span{
	display:none;
}
h1 > i{
	font-size: 19px !important;
    color: var(--colore-ombra) !important;
}
h1 > img{
	width:200px;
}
#spiegazione{
	padding-top:30px;
}
#btn_cerca{
	display:inline-block;
	vertical-align:middle;
	margin-top:-32px;
	float:right;
	color:rgba(0,0,0,0.8);
	background-color:#dce5ef;
	border-radius:6px;
	padding:0 40px 0 10px;
	height:32px;
	line-height:32px;
	background-image:url(../_grafiche/lente.png);
	background-position:calc(100% - 5px);
	background-repeat:no-repeat;
	background-size: auto 30px;
	cursor:pointer;
}
body:not(.touch) #btn_cerca:hover{
	background-color:#c7ced7;
}
#ch_filtri.nas,
#btn_cerca.nas{
	display:none;
}
#ch_filtri{
	width: 32px;
    height: 32px;
    float: right;
    margin: 5px;
    margin-left: -42px;
}
body:not(.touch) #ch_filtri:hover{
    background-color: rgba(0, 0, 0, 0.2);
}
#ch_filtri > span.text{
	display:none;
}
#ch_filtri > span.btn{
	display:block;
	width: 32px;
    height: 32px;
    background-image: url(../_grafiche/chiudiSchW.png);
    background-position: center;
    background-repeat: no-repeat;
    background-color: rgba(0, 0, 0, 0.1);
    border-radius: 16px;
    cursor: pointer;
}
#filtri_cont{
	text-align:center;
	padding:0;
	background-color: #FFF;
}
#filtri_cont > div{
	margin:0 20px;
	background-color: #6f88a7;
	border-radius:10px;
}
#filtri_cont:not(.vis){
	display:none;
}

#select_cont{
	padding:0 0 10px 0;
	text-align:center;
}
#select_cont select,
.select_on{
	width:auto;
	margin:0 3px 0 3px;
	display:inline-block;
	vertical-align:middle;
	cursor:pointer;
	color:#999;
}
.select_on{
	border:0;
	color:#FFF !important;
}
body:not(.touch) #select_cont select:hover{
	background-color:rgba(255,255,255,0.8);
}
#tags_cont{
	white-space:nowrap;
	overflow-x:auto;
	overflow-y:hidden;
	height: 53px;
	scrollbar-color: #6f88a7 #333;
}
#tags_cont > span{
	display:inline-block;
	vertical-align:middle;
	padding-right:10px;
	color:#FFF;
}
#tags_cont::-webkit-scrollbar-thumb {
	background-color: rgba(0,0,0,0.2);
	border-radius: 50px;
	min-width: 8px;
	min-height: 8px;
	border:4px solid #6f88a7;
}
body:not(.touch) #tags_cont::-webkit-scrollbar-thumb:hover {
	background-color: rgba(0,0,0,0.5);
}
#tags_cont::-webkit-scrollbar-track {
    background: #6f88a7;   /* colore di fondo */
}
#video_cont{
	background-color:#FFF;
	padding:0 40px 0 40px;
	text-align:center;
}
#video_cont:not(.onsearch) > div{
	border-top: 1px solid rgba(0, 0, 0, 0.1);
}
#video_cont > div{
	padding-top:8px;
}
.video_el{
	width:calc((100% / 3) - 18px);
	display:inline-block;
	vertical-align:top;
	border-radius:8px;
	background-color:rgba(0,0,0,0.0);
	padding:0px;
	margin:9px 9px 21px 9px;
	cursor:pointer;
	
	position: relative; /* importante per i before */
}
body:not(.touch) .video_el::before{
	content: "";
	position: absolute;
	top: 0;
	bottom: 0;
	left: 0;
	right: 0;
	border-radius:12px;
	opacity: 0;
	background-color:rgba(0,10,90,0.1);
	
	/* dietro ai contenuti */
	z-index: 0;
	pointer-events: none;
	
	transition:
		left 0.5s ease,
		right 0.5s ease,
		top 0.5s ease,
		bottom 0.5s ease,
		opacity 0.5s ease;
}
body:not(.touch) .video_el:hover::before,
body:not(.touch) .video_el:focus-visible::before{
	left: -12px;
	right: -12px;
	top: -12px;
	bottom: -12px;
	
	opacity: 1;
	
}
.video_preview{
	position: relative;
    z-index: 1;
	width:100%;
	background-repeat:no-repeat;
	background-position:center;
	background-size:cover;
	border-radius:7px;
	box-shadow:0 0 2px;
	overflow:hidden;
}
.video_preview span.percVis{
	display:block;
	margin-top:222px;
	height:4px;
	background-color:#0760cd;
	margin-top: 56%;
}
.video_title{
	position: relative;
    z-index: 1;
	font-size:15px;
	width:100%;
	text-align:left;
	margin-top:10px;
	color:#000;
	transition: color 0.5s;
	-webkit-transition: color 0.5s;
}
.video_title b{
    display: inline-block;
	font-size:18px;
	margin-bottom:5px;
	text-shadow: 0 0 1px #000;
}
.video_title *{
	color:#000;
	transition: color 0.5s;
	-webkit-transition: color 0.5s;
}

.video_vis{
	font-size:12px;
	color:rgba(0,0,0,0.6);
	margin-top: 10px;
    display: block;
}
.tag{
	display: inline-block;
    vertical-align: middle;
    padding: 0 10px;
    background-color: #FFF;
    border-radius: 5px;
    box-shadow: 0 0 2px rgba(0, 0, 0, 0.5);
    height: 32px;
    line-height: 32px;
    margin: 2px 4px;
    cursor: pointer;
}
body:not(.touch) .tag:not(.tagsel):hover{
	background-color:rgba(255,255,255,0.8);
}
.tagsel,
.select_on{
	color:#FFF;
	background-color:var(--colore-blu-scuro);
	background-image:url(../_grafiche/chiudiSchW.png);
	background-repeat:no-repeat;
	background-position:right center;
	background-size: auto 32px;
	padding-right:30px;
}
#ricerca_cont{
	padding-bottom:13px;
}
#ricerca{
	max-width:600px;
}
body:not(.touch) #ricerca:hover{
	background-color:rgba(255,255,255,0.8);
}
#ricerca::placeholder{
	color:#CCC;
	font-style:italic;
}
#btn_ricerca{
	position: relative;
    z-index: 10;
    appearance: none;
    border: 0;
    background-color: rgba(0,0,0,0.1);
    background-image: url(../_grafiche/lente.png);
    background-position: center;
    background-repeat: no-repeat;
    display: inline-block;
    vertical-align: middle;
    width: 40px;
    height: 40px;
   	margin-left: -40px;
    margin-top: -1px;
    padding: 0;
    cursor: pointer;
	border-top-right-radius:6px;
	border-bottom-right-radius:6px;
}
body:not(.touch) #btn_ricerca:hover{
    background-color: rgba(0,0,0,0.2);
}
#btn_annulla{
	position: relative;
    display: none;
    vertical-align: middle;
    z-index: 10;
    background-image:url(../_grafiche/chiudiSchB.png);
    background-position: center;
    background-repeat: no-repeat;
    width: 40px;
    height: 40px;
    margin-left: -80px;
    margin-top: -1px;
    cursor: pointer;
}
#ricerca_cont.act #btn_ricerca{
   	margin-left: 0px;
}
#ricerca_cont.act #btn_annulla{
    display: inline-block;
}
#nores{
	text-align:center;
	padding:50px;
	color:#999;
}


#loader{
	position:fixed;
	z-index:10000;
	top:0;
	left:0;
	width:100%;
	height:calc(100% + 50px);
	background-color:#000;
	background-image:url(../_img/loading2014N.gif);
	background-repeat:no-repeat;
	background-position:center;
	opacity:0;
	transition: transform 0.5s, opacity 0.5s;
	-webkit-transition: transform 0.5s, opacity 0.5s;
}
#loader:not(.vis){
	display:none;
}
#spazio_sotto{
	height:150px;
	background-color:#FFF;
}

body:not(.touch).show{
	overflow:hidden;
}
body.file_vid:not(.landscape) #loader{
	display:block !important;
	background-color:#45455f;
	background-image:url(../_grafiche/logo_bianco_luminoso.webp), none, linear-gradient(130deg,#302685 0%, #45455f 100%) !important;
	background-position:8px 7px, center calc(100% - 90px), center !important;
	background-size:auto 30px, 120px, auto !important;
}
body.file_vid.show:not(.landscape) #loader{
	opacity:1 !important;
}

body.file_vid.landscape #loader{
	display:block !important;
	height: 100dvh;
	background-color:#000;
}
body.file_vid.landscape{
	background-color:#000;
}
body.file_vid.landscape #testata,
body.file_vid.landscape #menu_cont,
body.file_vid.landscape #pagina_cont,
body.file_vid.landscape #piede_cont,
body.file_vid.landscape #video_cont,
body.file_vid.landscape #filtri_cont,
body.file_vid.landscape #spazio_sotto{
	visibility:hidden;
}
body.file_vid.landscape{
	height: 300px;
}
#file_close{
	position:fixed;
	z-index:11020;
	top:10px;
	right:12px;
	width:30px;
	height:30px;
	opacity:0;
	cursor:pointer;
	background-image:url(../_grafiche/chiudiSchW.png);
	background-position:center;
	background-repeat:no-repeat;
	transition: opacity 0.5s;
	-webkit-transition: opacity 0.5s;
}
#file_title{
	position: fixed;
    z-index: 11010;
    top: 0px;
    left: 0;
    width: calc(100%);
    height: 50px;
    color: #FFF;
	opacity:0;
    line-height: 50px;
    padding-left: 65px;
    padding-right: 65px;
    text-align: center;
    -webkit-user-select: none !important;
    -webkit-touch-callout: none !important;
    user-select: none !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
	transition: opacity 0.5s;
	-webkit-transition: opacity 0.5s;
}
body:not(.file_img):not(.file_vid):not(.file_fil):not(.file_tst) #file_title,
body:not(.file_img):not(.file_vid):not(.file_fil):not(.file_tst) #file_close,
body:not(.file_img):not(.file_vid):not(.file_fil):not(.file_tst) #placeholders,
body:not(.file_vid) #controllers{
	display:none;
}
.landscape #file_title{
	background-color:rgba(0,0,0,0.6);
}
.landscape #file_title.nas{
	display:none;
}
#placeholders{
	position:fixed;
	z-index:11000;
	top:50px;
	left:10px;
	width:calc(100% - 20px);
	height:calc(100% - 60px);
	background-color:#000;
	background-position:center;
	background-repeat:no-repeat;
	border-radius:10px;
	overflow:hidden;
	opacity:0;
	box-shadow:0 0 15px rgba(0,0,0,0.3);
	transition: transform 0.5s, opacity 0.5s;
	-webkit-transition: transform 0.5s, opacity 0.5s;
}
@media (max-width: 685px){
	#placeholders{
		transform:scale(0.62);
	}
}
@media (min-width: 686px){
	body:not(.landscape) #placeholders{
		transform:scale(0.82);
	}
}
#placeholders.loading{
	background-image:url(../_grafiche/loading2014N.gif);
}
.show #placeholders{
	opacity:1 !important;
	transform:scale(1) !important;
}
.show #file_title,
.show #file_close,
.show #controllers{
	opacity:1 !important;
}

body:not(.file_vid) #vid_placeholder{
	display:none !important;
}

#placeholders > iframe,
#placeholders > div{
	width:100%;
	height:500px;
	background-color:#000;
	background-position:center;
	background-repeat:no-repeat;
	background-size:contain;
	text-align:center;
}

#correlati_cont{
	position: absolute;
    z-index: 11020;
    display: block;
    bottom: 0;
    left: 10px;
    width: 100%;
    height: 260px;
    background-color: rgba(0, 0, 0, 0.6);
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
    padding: 20px;
    text-align: center;
    overflow-x: auto;
    white-space: nowrap;
}
#correlati_cont:not(.vis){
	display:none;
}
#correlati_cont > div{
	display:inline-block;
	vertical-align:middle;
	height:220px;
	cursor:pointer;
	border-radius:10px;
	margin: 0 10px;
	transition:background-color 0.5s;
	-webkit-transition:background-color 0.5s;
}
body:not(.touch) #correlati_cont > div:hover{
	background-color:rgba(0,0,0,0.2);
}
#correlati_cont > div > div.preview{
	border-radius:7px;
	background-color:#000;
	background-position:center;
	background-repeat:no-repeat;
	background-size:cover;
	width:320px;
	height:180px;
	border:1px solid #FFF;
	box-shadow:0 0 4px #000;
}
#correlati_cont > div > div.title{
	width:320px;
	height:400px;
	color:#FFF;
	overflow:hidden;
	padding-top:10px;
}

.smart #correlati_cont,
.landscape #correlati_cont{
	height:200px;
	left:0;
	width:100%;
	border-radius:0;
}
.landscape #correlati_cont{
    bottom: 40px;
}
.smart. #correlati_cont{
    bottom: 0px;
}
.smart #correlati_cont > div,
.landscape #correlati_cont > div{
	height:160px;
}
.smart #correlati_cont > div > div.preview,
.landscape #correlati_cont > div > div.preview{
	width:284px;
	height:160px;
}
.smart #correlati_cont > div > div.title,
.landscape #correlati_cont > div > div.title{
	position:relative;
	z-index:10;
	margin-top:-40px;
	text-shadow:0 0 2px #000;
	font-weight:bold;
	padding-left:10px;
	padding-right:10px;
	width:284px;
	height:40px;
	text-overflow:ellipsis;
	white-space:nowrap;
}

#audio_langs:not(.vis){
	display:none;
}
#audio_langs{
	position: fixed;
    z-index: 11080;
    bottom: 57px;
    left: calc(50% + 200px);
    overflow: hidden;
    background-color: var(--colore-buio);
    width: 150px;
    border-radius: 6px;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
	border: 1px solid rgba(255, 255, 255, 0.5);
}
#audio_langs > div{
	height:32px;
	line-height:32px;
	text-align:center;
	color:#000;
	cursor:pointer;
	text-align:center;
}
body:not(.touch) #audio_langs > div:not(.sel):hover{
	background-color:rgba(255, 255, 255, 0.1); !important;
}
#audio_langs > div.sel{
	background-color:rgba(255, 255, 255, 0.3); !important;
	background-image:url(../_grafiche/ico_check.png);
	background-repeat:no-repeat;
	background-size: auto 20px;
    background-position: 7px center;
}



#cover_controllers{
	position: fixed;
    z-index: 11041;
    bottom: 15px;
    height: 40px;
    left: 50%;
    margin-left:-340px;
    width: 680px;
}
#cover_controllers.nas,
body:not(.file_vid) #cover_controllers{
	display:none;
}
#controllers{
	position: fixed;
    z-index: 11040;
    bottom: 15px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.2);
    left: 50%;
    margin-left:-342px;
    width: 684px;
	opacity:0;
    border-radius: 6px;
    overflow: hidden;
	touch-action: none;
  -webkit-user-select: none !important;   /* iOS Safari */
  -webkit-touch-callout: none !important; /* iOS Safari */
  user-select: none !important;           /* altri browser */
	transition: opacity 0.5s;
	-webkit-transition: opacity 0.5s;
}
body:not(.playable) #controllers{
	opacity:0.3;
}
#controllers,
#controllers *{
    color: #FFF;
}
#controllers > div:not(#cursorVideo){
	display:inline-block;
	vertical-align:middle;
	height:40px;
	margin-right: -4px;
	background-repeat:no-repeat;
	background-position:center;
}
#playBut{
	width:40px;
    background: url(../_grafiche/playBut.png) no-repeat center center;
	cursor:pointer;
}
#ccBut{
	width:40px;
    background: url(../_grafiche/ccBut.png) no-repeat center center;
	cursor:pointer;
}
#ccBut.disabled,
#langsBut.disabled{
	opacity:0.2;
	cursor:default !important;
}
#ccBut.off{
    background-image: url(../_grafiche/ccBut_off.png) !important;
}
#langsBut{
	width:40px;
    background: url(../_grafiche/langsBut.png) no-repeat center center;
	cursor:pointer;
}
#contTB{
	padding-left: 9px;
    padding-right: 9px;
	width:426px;
}
#timelineBar{
	margin-top: 16px;
    width: 100%;
    height: 8px;
    padding: 0px;
    line-height: 1px;
    margin-bottom: 0px;
    background-color: rgba(255, 255, 255, 0.2);
	border-radius:4px;
	touch-action: none;
  -webkit-user-select: none !important;   /* iOS Safari */
  -webkit-touch-callout: none !important; /* iOS Safari */
  user-select: none !important;           /* altri browser */
}
#visteVideoDiv{
	padding:0px;
	margin-left:1px;
	width:406px;
	height:2px;
	line-height:2px;
	padding-left:3px;
}
#visteVideoDiv > div{
	width:0.25%;/*1px;*/
	height:2px;
	float:left;
}
#timeVideo {
    width: 100px;
    height: 40px;
    line-height: 42px;
    text-align: center;
    font-size: 11px;
    cursor: default;
}
#contVL {
    width: 36px;
    background: url(../_grafiche/volBut.png) no-repeat center center;
    cursor: pointer;
}
#cursorVideo {
    position: absolute;
    left: -50px;
    margin-top: -28px;
    z-index: 7502;
    width: 15px;
    height: 16px;
    cursor: default;
    background-color: #FFF;
    border-radius: 20px;
    box-shadow: 0 0 5px #000;
	touch-action: none;
  -webkit-user-select: none !important;   /* iOS Safari */
  -webkit-touch-callout: none !important; /* iOS Safari */
  user-select: none !important;           /* altri browser */
}
#timeVideo{
	color:#FFF;
}
#user_btns{
	text-align:center;
	background-color:rgba(0,0,0,0.1);
	border-radius:20px;
	display:inline-block;
	margin-top:30px;
}
#user_btns > div{
	display:inline-block;
	margin:20px;
	width:150px;
	text-align:center;
}

@media (min-width: 1801px){
	.video_el{
		width:calc((100% / 4) - 18px);
	}
}
@media (max-width: 1200px){
	.video_el{
		width:calc((100% / 2) - 18px);
	}
}
@media (max-width: 984px){
	#video_cont{
		text-align:center;
	}
}
@media (max-width: 984px) and (min-width:686px){
	.video_el{
		width:100%;
	}
	.video_preview,
	.video_title{
		display:inline-block;
		vertical-align:top;
		width:calc(50% - 4px)
	}
	.video_title{
		padding-left:15px;
	}
}
@media (max-width: 750px){
	#ch_filtri{
        width: 100%;
        padding: 10px 10px 0 15px;
        text-align: left;
        border-radius: 0;
        float: none;
        margin: 0;
	}
	#ch_filtri > span.text{
		display:inline;
		line-height:32px;
		color:#FFF;
	}
	#ch_filtri > span.btn{
		display:inline;
		line-height:32px;
		color:#FFF;
        float: right;
        background-color: transparent;
	}
	#ricerca {
		margin-top:10px;
	}
	#btn_cerca{
		margin-right:-14px;
	}
}
@media (max-width: 685px){
	#controllers,
	#cover_controllers{
		width: 100%;
		left: 0;
		margin-left: 0;
		border-radius: 0;
		bottom: 0;
	}
	#contTB{
		width: calc(100% - 256px);
	}
	#video_cont{
		width:100%;
	}
	.video_el{
		width:calc(100% - 20px);
	}
	#visteVideoDiv{
		width: calc(100% - 4px);
	}
	#audio_langs {
		left:auto;
		right:5px;
		bottom:40px;
	}
	#correlati_cont,
	#placeholders{
		border-radius:0;
	}
	body.video_h.file_vid #loader {
		background-image: url(../_grafiche/logo_bianco_luminoso.webp), url(../_grafiche/rotate.png), linear-gradient(130deg, #302685 0%, #45455f 100%) !important;
	}
	#filtri_cont{
		padding-left:0px;
		padding-right:0px;
	}
	#filtri_cont > div{
		border-radius:0;
		margin:0;
	}
	#ricerca_cont{
		padding-left:10px;
		padding-right:10px;
	}
	.select_on,
	#select_cont select{
		width:30% !important;
	}
	.select_on{
		overflow:hidden;
		white-space:nowrap;
		text-overflow:ellipsis;
	}
	#tags_cont{
		padding:0 10px 10px 10px;
	}
}
@media (max-width: 550px){
	#contTM{
		display:none !important;
	}
	#contTB{
		width: calc(100% - 156px);
	}
	#video_cont{
		padding:0;
	}
	#btn_cerca{
		margin-top: 20px;
        margin-bottom: -10px;
	}
	#video_cont > div {
		border-top: none !important;
	}
}
@media (max-width: 450px){
	.video_el{
		padding:16px;
		margin:1px;
		width:100%;
		border-radius:0;
	}
	.video_preview{
		width:100%;
		height:auto;
	}
	.video_title{
		width:100%;
	}
}