/*
** WE BERRY - CMS 3.0 - ALPHA
*/
//COLOR
@base: #444444;
@shadow: #ccc;
@white: rgb(255,255,255);
@white_transparent_20: rgba(255,255,255,.2);
@white_transparent_50: rgba(255,255,255,.5);
@white_transparent_80: rgba(255,255,255,.8);
@red: rgb(200, 15, 15);
@violet: #7376df;
@darkViolet: #6365d2;
@colorBorder: #dfdfdf;
@colorBorderDark: rgba(0,0,0,.15);
@blue: #3874a8;

// TRANSITION
.transition-properties(...) {
  -webkit-transition: @arguments;
  -moz-transition: @arguments;
  -o-transition: @arguments;
  transition: @arguments;
}

//IMPORT
@import url('../dist/css/bootstrap.min.css');
@import url('../dist/css/bootstrap-fs-modal.min.css');
//@import url('style.css');

//FONT + ICON
@import url('font-awesome.min.css');
@import url('https://fonts.googleapis.com/css?family=Montserrat:300,300i,400,400i,500,500i,600,600i,700,700i');
@MontserratFont: 'Montserrat', 'Helvetica Neue', Helvetica, Arial, sans-serif;
@font-size: 16px;

//dimension base
@width: 1;
@height: 1;

//PATH
@images: "../img";

/* ************************************************ */
/* UTILITY */
/* ************************************************ */
* {
	border-radius: 0;
}

.no-margin	{ margin-left: 0; margin-right: 0; }
.no-padding { padding-left: 0; padding-right: 0; }

.clearfix {
	display: block;
	zoom: 1;

		&:after {
			content: " ";
			display: block;
			font-size: 0;
			height: 0;
			clear: both;
			visibility: hidden;
		}
}

.capitalize.capitalize	{ text-transform: capitalize; }
.uppercase.uppercase		{ text-transform: uppercase; }

.blue { color: @blue; }

html { 
	width: 100vw;
	overflow-x: hidden;
}
html, body {
	margin: 0 auto; padding: 0;
}

body {
	position: relative;
	background-color: @white;
	color: @base; font-family: @MontserratFont; font-size: @font-size;
	
	&.noScroll {
		overflow: hidden;
		height: 100vh;
	}
}

main {
	position: relative;
}

.footer {
	margin: 0; padding: .2rem 0 0 0;
	border-top: 1px solid @colorBorder;
}

.nav-pills .nav-item.show .nav-link,
.nav-pills .nav-link.active {
	background-color: @white;
}

.nav-pills {
	.nav-item.show {
		.nav-link {
			color: @white;
		}
	}
	.nav-link.active {
		color: @base;
		background-color: @white;
	}
}

h1 {
	font-size: @font-size;
	font-size: 2.4rem;
	font-weight: 600;
}

h2 {
	font-size: @font-size;
	font-size: 2.4rem;
	font-weight: 500;
}

h3 {
	font-size: @font-size;
	font-size: 1.8rem;
	font-weight: 500;
}

h4 {
	font-size: @font-size;
	font-size: 1.4rem;
	font-weight: 500;
}

h5 {
	font-size: @font-size;
	font-size: 1rem;
	letter-spacing: .1rem;
	font-weight: 600;
	text-transform: uppercase;
}

h6 {
	font-size: @font-size;
	font-size: .8rem;
	letter-spacing: .1rem;
	font-weight: 500;
	text-transform: uppercase;
}

hr {
	margin: .4rem auto; padding: 0;
	color: @base;
	background-color: @colorBorder;
}

.white { color: @white; }

.page-header.page-header {
	
	h1 { width: auto; }
}

/* ************************************************ */
/* LOGIN */
/* ************************************************ */
	.keyframes(@name,@rules) {
			@-webkit-keyframes @name {
					@rules();
			}
			@-moz-keyframes @name {
					@rules();
			}
			@-ms-keyframes @name {
					@rules();
			}
			@-o-keyframes @name {
					@rules();
			}
			@keyframes @name {
					@rules();
			}
	}

	.keyframes(loginIn, {
			0%    { opacity: 0; }
			50%   { opacity: .7; }
			100%  { opacity: 1; }
	});

#login {
	position: relative; z-index: 1;
	animation: loginIn 1s 1 linear;
	-ms-animation: loginIn 1s 1 linear;
	-moz-animation: loginIn 1s 1 linear;
	-webkit-animation: loginIn 1s 1 linear;
	-o-animation: loginIn 1s 1 linear;

	.login-in-shadder {
		position: absolute; top: 0; left: 0;
		display: block; overflow: hidden;
		margin: 0; padding: 0;
		width: 100%; height: 100%;
		background-color: @white_transparent_20;
	}

}

.background-image {
	position: absolute;
	left: 0;
	right: 0;
	z-index: 1;

	display: block;
	overflow: hidden;
	margin: 0 auto; padding: 0;
	width: 100vw; height: 100vh;
	background-image: url("@{images}/bg/index.jpg"); 
	background-size: cover;
	background-position: center center;

	-webkit-filter: blur(8px);
	-moz-filter: blur(8px);
	-o-filter: blur(8px);
	-ms-filter: blur(8px);
	filter: blur(8px);

	opacity: .7;
}

.content {
	position: fixed; top: 0; left: 0; right: 0; z-index: 9999;
	width: 100vw; height: 100vh;
}

.logo_index_box {
	position: relative;
	display: block; overflow: hidden;
	margin: 0; padding: 0;
	width: 100%;
	// background-color: @white_transparent;  
}

.login-content {
		margin-top: 7%; margin-bottom: 7%; padding-bottom: 20px;
		box-shadow: 0 0 30px @shadow;
		background-image: url("@{images}/bg/index.jpg"); 
		background-size: cover;
		background-position: center center;

		// border: 1px solid @colorBorderDark;
		filter: drop-shadow(0 0 0.75rem @base);

		h1, h2 {
			font-size: @font-size;
			padding-bottom: 1.2rem;
			border-bottom: 1px solid @colorBorder;
		}

		.form-group {
			border-radius: 0;
		
		label { 
			margin-bottom: 0;
			color: @base; /* text-shadow: 0 1px 1px @base; */
		}
			input, textarea {
				border-radius: 0;
				border: 1px solid @colorBorderDark;
			}
		select, #site {
			display: block;
			width: 100%;

					padding: .5rem .75rem;
					font-size: 1rem;
					line-height: 1.25;
					color: @base;
					
					background-color: @white;
					background-image: none;
					-webkit-background-clip: padding-box;
					background-clip: padding-box;
					
					border: 1px solid @colorBorderDark;

					-webkit-transition: border-color ease-in-out .15s,-webkit-box-shadow ease-in-out .15s;
					transition: border-color ease-in-out .15s,-webkit-box-shadow ease-in-out .15s;
					-o-transition: border-color ease-in-out .15s,box-shadow ease-in-out .15s;
					transition: border-color ease-in-out .15s,box-shadow ease-in-out .15s;
					transition: border-color ease-in-out .15s,box-shadow ease-in-out .15s,-webkit-box-shadow ease-in-out .15s;
			}
		}
}
.easy-autocomplete.easy-autocomplete {
	width: 100%!important;
}

/* ************************************************ */
/* fine LOGIN */
/* ************************************************ */

/* ************************************************ */
/* SIDEBAR */
/* ************************************************ */
.userLog {
	position: relative; overflow: hidden;
	margin: 0; padding: .2rem .5rem;
	width: 100%;
	background-color: @white;
	
	// background-image: url("@{images}/bg/index.jpg");
	// -webkit-background-size: cover;
	//      -o-background-size: cover;
	//         background-size: cover;
	
	border-top: 1px solid @colorBorderDark; border-bottom: 1px solid @colorBorderDark;
	
		.usernameSidebar {
			overflow: hidden; float: none;
			display: block;
			width: 100%;
			margin: 0; padding: .5rem 0;
			color: @base;
			white-space: nowrap; text-overflow: ellipsis; text-transform: uppercase;
			text-decoration: none;
			
			.uName {
				position: relative;
				display: inline-block;
				white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
				width: 75%;
			}
			
			.uName i {
				position: absolute; top: 0; right: 0;
				color: @blue; font-size: .8em; line-height: 1;
				opacity: 0;
				.transition-properties(all .5s linear);	
			}

			&:hover .uName i { opacity: 1; }

		}

		.profiloImg {
			position: absolute; top: -22%; right: -20%;
			width: 90px; height: 90px;
			/* transition */
			.transition-properties(all .5s linear);	
		}

			&:hover .profiloImg {
				right: -10%;
			}

		span {
			display: block;
			width: 100%;
			margin: 0; padding: 0 0 0 .3rem;
			font-size: 1rem; line-height: 1; font-weight: 400;
		}

		small {
			display: block;
			width: 80%;
			margin: 0; padding: 0 0 0 .3rem;
			clear: left;
		}
}

.linkSiteHome {
	position: relative;
	margin: 0; padding: .2rem 0;
	background-color: @white;
	border-bottom: 1px solid @colorBorder;
	
	.transition-properties(all .1s linear);	
	
	a {
		display: inline-block;
		margin: 0; padding: 0 0 0 1rem;
		width: 100%;
		color: @blue;
		text-decoration: none;
	}

	&:hover {
		background-color: @blue;
		
		a {
			color: @white;
		}
	}
}

.sidebar {
	position: fixed;
	top: 0;
	bottom: 0;
	left: 0;
	padding: 0 20px;
	padding-left: 0;
	padding-right: 0;
	z-index: 1000;
	overflow-x: hidden;
	overflow-y: auto;
	/* Scrollable contents if viewport is shorter than content. */
	border-right: 1px solid @colorBorder;
	background: @blue;
	
	hr {
		margin: .5rem auto;
		width: 100%;
		color: @white;
		background: @white;
	}

	a.link {
		color: #fff;
		text-transform: uppercase;
		font-size: .7rem;
		letter-spacing: .2rem;
		padding: .75rem 1rem;
	}

	em {
		font-size: 1rem;
	}

	h1 {
		color: #fff;
		border: none;
		font-size: 0.9rem;
		padding: 0rem 1rem;
		text-transform: uppercase;
		letter-spacing: .2rem;
	}

	.site-title {
		margin-top: .5rem;
		margin-bottom: 1.75rem;

			a {
				font-size: .9rem;
				padding-left: 0;
				padding-right: 0;
				cursor: pointer;
		}
			a:hover {
				background: none !important;
		}
	}
		
	.nav {
		margin-bottom: 20px;
	}

	.nav-item {
		width: 100%;
	}

	.nav-item + .nav-item {
		margin-left: 0;
	}

	.nav-link {
		border-radius: 0;
	}

	// DropDown menu 
		#navBar {

			.nav-item .submenu {
			  width: 100%; overflow: hidden;
			  margin: 0; padding: .6rem;
			  color: @white;
			  background: @base;
			  
			  & > a {
			  	clear: both;
					display: block;
				  width: 100%;
				  margin: 0; padding: .6rem;
				  color: @white; font-size: .7rem; line-height: .9; text-decoration: none; letter-spacing: .1rem; text-transform: uppercase;
				  border: none; border-radius: 0;
				  background: transparent;
				  
					\
				  
				  &:hover {
				  	padding-left: .8rem;
				  }

				  .badge.badge {
				  	color: @blue;letter-spacing: 0; font-size: .7rem; font-weight: 400;
				  }

				}

				& > a.activeTab {
					position: relative;
					padding-left: .7rem;
					font-weight: 600;
					
					&::before {
						margin: 0; padding: 0;
						content: '\2022 ';
						font-size: 1rem; line-height: 1; font-weight: 600;
					}
				}

			}

	}
	// ./ ACCORDION

	.logout-button {
		position: absolute; bottom: 0; left: 0;
		display: block; overflow: hidden;
		width: 100%;
		text-align: center;
		color: @white; line-height: 2.5rem;
		border-radius: 0;
		text-decoration: none;

		.transition-properties(all .5s linear);
		
		&:hover {
			color: @base;
			background-color: @white;
		}

	}
}
	
.topLogo {
	position: relative;
	overflow: hidden;
	margin: 0 auto; padding: .5rem .1rem;
	width: 100%; height: auto;
	background-color: @white;

	a {
		margin: 0; padding: .2rem 0;
		text-decoration: center;
		vertical-align: middle;
		opacity: 1;
		
			img {
				display: inline-block;
				margin: 0 auto;
			}
			.transition-properties(all .5s linear);
			&:hover {
				opacity: .5;
			}

	}
}

#wrapper.toggled .sidebar-nav {
	display: none; }

#menu-toggle {
	position: absolute;
	top: 1rem;
	right: 1rem; }

.sidebar a:focus, .sidebar a:visited, .sidebar a:hover, .sidebar a:active {
	}

@media screen and (max-width: 576px) {
	#wrapper .sidebar-nav {
		display: none; }

	#wrapper.toggled .sidebar-nav {
		display: block !important; }

	.sidebar {
		position: inherit;
		padding-bottom: 0px;
		margin-bottom: 1rem; }

	#menu-toggle {
		background-color: @blue; } }
@media screen and (min-width: 576px) {
	#wrapper.toggled .sidebar-nav {
		display: block; }

	#menu-toggle {
		display: none; } }

/* ************************************************ */
/* fine SIDEBAR */
/* ************************************************ */

/* ************************************************ */
/* UTILITYBAR */
/* ************************************************ */

.utilityBar {
	display: block; overflow: hidden;
	margin: 0; padding: 0.2rem 0;
	width: 100%; height: auto;
	background-color: @blue;

	a {
		display: inline-block;
		margin: 0 1rem; padding: 0;
		color: @white; text-transform: uppercase
	}
}

/* ************************************************ */
/* fine UTILITYBAR */
/* ************************************************ */


/* ************************************************ */
/* LISTA */
/* ************************************************ */

.listBox {
	position: relative;
	display: block;
	margin: 0 auto; padding: .5rem 0 .5rem 0;
	
	.position-sticky.position-sticky.secondLine {
		top: 1.9rem;
	}
	
	.topActionBar {
		position: relative; z-index: 10; left: 0; top: 0;
		margin: 0; padding: .2rem 0 .2rem 0;
		width: 100%; min-height: 40px; /* overflow: hidden; */
		color: @base;
		background: @white;
		border-bottom: 1px solid @colorBorder;
		
		.form-check {
			display: inline-block;
		}
		
		.actionGroup {
			position: relative;
			display: inline-block;
			margin: 0 .2rem; padding: 0;
			
			span {
				display: none;
			}
		}
		
		button.badge {
			margin: 0 .1rem;
			border: none;
			
			&:hover {
				cursor: pointer;
			}
		}
	}
} /* ./#listBox */

/* PAGINAZIONE LISTA */
.navLista {
	display: block;
	margin: 0; padding: 0 .2rem;
	list-style: none;
	vertical-align: middle;
	
	border: 1px solid @colorBorder;
	-webkit-border-radius: .25rem;
	        border-radius: .25rem;

	li {
		display: inline-block;
		margin: 0; padding: .1rem .2rem;
		font-size: .9em; line-height: .9;
		
		&.select {
			// border: 1px solid @colorBorder;
		}
		
		a {
			display: inline-block;
			margin: 0; padding: .2rem;
		}
		
		select.btnSelect {
			display: inline-block;
		    -webkit-appearance: button;
		       -moz-appearance: button;
		            appearance: button;
		    width: auto;
		    text-align: center;
		    border: none;
		    background-color: @white_transparent_20;
		    -webkit-border-radius: .25rem;
		            border-radius: .25rem;
		    
		    &:hover {
		    	cursor: pointer;
		    	color: @white;
		    	background-color: @blue;
		    }
		    
		    &.btn-mini {
		    	height: auto;
		    	font-size: .9em; line-height: .9;
		    	padding-right: .2rem;
		    }

		    &.btn-mini + .caret {
		    	position: relative;
		    	display: inline-block;
		    	margin-left: 0;
		    	margin-top: 2px;
		    }
		}

	}
}

.dropdown-menu, .sidebarRight {
	
	.filtro {
		display: block;
		width: 100%;
		margin: 0 0 .2rem 0; padding: .15rem 0 .15rem .6rem;
		font-size: .85rem; line-height: 1;
		
		a {
			color: @base;
			
			&:hover {
				color: @blue;
			}
		}

		& .filtro {
			margin: .4rem 0; padding: .2rem 0 0 .5rem;
			
			a {
			color: @base;
			
				&:hover {
					color: @blue;
				}
			}

		}

	}

	& .filterResult {
		position: relative; overflow: hidden scroll;
		margin: 0 auto; padding: 0;
		min-height: auto; max-height: 55vh;
		background-color: @white_transparent_20;
	}
	& .filterResult.noScroll {
		position: relative; overflow: hidden;  
		min-height: auto; max-height: 100%;
	}
}

/* ASSOCIA DI MAZZA MODAL */
.associaRicercaBox {
	margin: 0 0 .3rem 0; padding: 0 0 0 0;
	border-bottom: 1px solid @colorBorder;
	
	& .form-group {
		margin: 0 0 .3rem 0; padding: 0 0 .1rem 0;
	}
}

.listCont {
	position: relative;
	display: block;
	margin: 0; padding: 0;
	min-height: 100%;
	
	table {
		
		tr {
			
			td {
				padding: .2rem .5rem;

				strong, small {
					display: inline-block;
					font-size: .8rem; line-height: .9;
				}
			}
			td.titolo {
				.azioni {
					display: block;
					margin: .2rem 0 0 0; padding: .1rem 0;
					opacity: 0;
					
					.transition-properties(all .2s linear);
					
					&:hover span {
						cursor: pointer;
					}
					
					select.btnSelect {
						display: inline-block;
						margin: 0; padding: .1rem;
					    -webkit-appearance: button;
					       -moz-appearance: button;
					            appearance: button;
					    width: auto;
					    font-size: .7em; line-height: 1; text-align: center;
					    border: none;
					    background-color: @white_transparent_20;
					    -webkit-border-radius: .2rem;
					            border-radius: .2rem;
					    
					    vertical-align: middle;
					    
					    option { margin: 0; padding: .1rem; }
					    
					    &:hover {
					    	cursor: pointer;
					    	color: @white;
					    	background-color: @blue;
					    }
					    
					    &.btn-mini {
					    	height: auto;
					    	font-size: .7em; line-height: 1;
					    	padding-right: .2rem;
					    }
							
							.check, .checkFocus { text-align: center; }
							/*
					    &.btn-mini + .caret {
					    	position: relative;
					    	display: inline-block;
					    	margin-left: -2px;
					    	margin-top: 2px;
					    }
					    */
					}
				}
			}
			td:hover.titolo .azioni {
				opacity: 1;
			}
		}
	}

	.infoExtra {
		position: relative;
		margin: 0 .1rem 0 0; padding: .1rem 0 0 0;
		border-top: 1px solid @colorBorder;
		
		&.show { display: block; }
		&.hide { display: none; }
		
		span {
			display: inline-block;
			font-size: .8em; list-style: 1rem; font-weight: 200;
		}

		.langList {
			display: block;
			margin: 0; padding: 0;

			img {
				display: inline-block;
				width: auto; height: .9rem;
				margin: 0; padding: 0;
				
				&.void {
					-webkit-filter: grayscale(100%);
					filter: grayscale(100%);
				}
			}
		}
	}
}

/* MODAL ASSOCIA / FILTRA lista */
.attivaFiltro {
	display: none;
}


/* ************************************************ */
/* ./ LISTA */
/* ************************************************ */

/* ---------------------------------------------------
    SIDEBAR STYLE
----------------------------------------------------- */

.innerWrapper {
		position: relative;
    display: flex;
    width: 100%;
    align-items: stretch;
}

#sidebarRight {
	display: block;
	min-width: 30vw; max-width: 30vw; height: 100%;
	background: @white;
	color: @base;
	border-left: 1px solid @colorBorder;
	transition: all 0.3s;
    
    &.hide {
			/* display: none;*/ overflow: hidden;
			margin-right: -30vw;
			height: 100vh;
    }

    .sidebar-header {
        padding: .2rem 0;
        background: @blue;
        
        .titolo {
        	display: inline-block;
					margin: 0 1rem; padding: 0;
					color: @white;
					text-transform: uppercase;
        }
    }

    .innerCatBar {
    	padding: .5rem .5rem 0 1rem;
    	
    	.filtro {
    		padding-top: 0; padding-bottom: 0;
    		
    		a {
    			display: block;
    			padding: .3rem;
    			text-decoration: none; line-height: 1;
    			
    			&:hover,
    			&:hover i,
    			&.active,
    			&.active i {
    				color: @white;
    				background-color: @blue;
    				-webkit-border-radius: .25rem;
    				        border-radius: .25rem;
    			}
    		}
    	}
    }
}

/* ---------------------------------------------------
    CONTENT STYLE
----------------------------------------------------- */

.innerContent {
	position: relative;
	width: 100%; min-height: 100vh;
	
	.transition-properties(all .2s linear);
	
}

/* ---------------------------------------------------
    MEDIAQUERIES
----------------------------------------------------- */

@media (max-width: 768px) {
    #sidebar {
        margin-left: -250px;
    }
    #sidebar.active {
        margin-left: 0;
    }
    #sidebarCollapse span {
        display: none;
    }
}

/* ************************************************ */
/* CUSTOM */
/* ************************************************ */

/* BREAD CRUMB */
.breadcrumb.custom {
	display: block;
	width: 100%;
	margin: 0; padding: 0 0 0 .2rem;
	background: transparent;
	
	.breadcrumb-item {
		display: inline-block;
		a {
			display: inline-block;
		}
	}
	
}

/* CATEGORIE */
.boxTopCat {
	position: relative; overflow: hidden;
	margin: 0; padding: .5rem 0;
	width: 100%; min-height: 100%;
}

/* MODAL HEADER COLOR */
.modal {
	z-index: 99999;
}
.modal-header {
		color: @white;
		padding: .5rem 1.5rem;
	  border-bottom: 1px solid @colorBorder;
	  -webkit-border-top-left-radius: 0;
	  -webkit-border-top-right-radius: 0;
	  -moz-border-radius-topleft: 0;
	  -moz-border-radius-topright: 0;
	   border-top-left-radius: 0;
	   border-top-right-radius: 0;
	  
		&.modal-header-primary	{ background-color: @blue; }
		&.modal-header-success	{ background-color: #5cb85c; }
		&.modal-header-warning	{ background-color: #f0ad4e; color: #000; }
		&.modal-header-danger		{ background-color: #d9534f; }
		&.modal-header-info			{ background-color: #5bc0de; }
		&.modal-header-primary	{ background-color: #428bca; }
}

div[class*="modal-header-"] .close {
		color: @white;
		text-shadow: none;
		-webkit-box-shadow: none;
		        box-shadow: none;
}

.modal-content {
	-webkit-border-radius: 0;
	        border-radius: 0;
	
	.nav-pills .nav-item.show .nav-link,
	.nav-pills .nav-link.active {
		color: @white;
		background-color: @blue;
	}
}

/* TABLE STATUS BORDER */
.table-status-pub { border-left: 1rem solid #5cb85c; }
.table-status-arc { border-left: 1rem solid #f0ad4e; }
.table-status-boz { border-left: 1rem solid #5bc0de; }

/* FULL PAGE modal : screen-100 */
.screen-100.modal.show {
	.modal-dialog.modal-dialog { 
		position: fixed; z-index: inherit; top: 0; left: 0; right: 0; bottom: 0;
		display: block;
		margin: 0; padding: 0;
		min-width: 100vw; max-width: 100vw; width: 100vw;
		min-height: 100vh; max-height: 100vh; height: 100vh;
		
		.modal-content.modal-content {
			position: fixed; z-index: inherit; top: 0; left: 0; right: 0; bottom: 0;
			margin: 0; padding: 0;
			min-width: 100vw; max-width: 100vw; width: 100vw;
			min-height: 100vh; max-height: 100vh; height: 100vh;
		}
	}
}

/* ************************************************ */
/* fine CUSTOM */
/* ************************************************ */



/* ************************************************ */
/* MEDIAQUERY */
/* ************************************************ */

@media only screen and (min-width: 500px) {
}

@media only screen and (min-width: 600px) {
}

/* ************************************************ */
/* fine MEDIAQUERY */
/* ************************************************ */