/*
Inspired by
Karma Template
http://www.templatemo.com/tm-403-karma

*/

/* font */
@import url(https://fonts.googleapis.com/css?family=Cinzel);
@import url(https://fonts.googleapis.com/css?family=Cinzel+Decorative);
@import url(https://fonts.googleapis.com/css?family=Libre+Baskerville);


/*-----------------------------------------------------------------------------------*/
/*	GENERAL
/*-----------------------------------------------------------------------------------*/
html { font-size: 1em; }

body { font-family: 'Libre Baskerville', Georgia, serif; overflow-x: hidden; } /*carasmo's comment to hide horizontal scroll bar https://github.com/twbs/bootstrap/issues/10711*/

a { color: #aaa;}
a:hover { color: #444; text-decoration: none;}

h2, p { font-family: 'Libre Baskerville', Georgia, Arial, serif; margin: 15px 0;}

h1 { font-weight: 700; }

h2 { font-size: 1.5em; }

ul { margin: 0; }

section { padding-top: 115px; margin-top: -85px; }
section .outer_container { margin-bottom: 50px; background-color: #eeeeee;  }
section .row { margin-left: 0; margin-right: 0; overflow: hidden; }
section h1 { /*text-transform: uppercase;*/ color: white; margin-top: 0px; margin-bottom: 0px; line-height: 308px; text-align: center; font-family: 'Cinzel Decorative', sans-serif; background-color: #aaa; }

.templatemo_ceo img { margin-bottom: 10px; }
.templatemo_ceo p { text-align: center; }

.container { margin: 0 auto; }

/*http://css-tricks.com/vertically-center-multi-lined-text/*/
.center-row { display: table; }
.center-row .center { display: table-cell; vertical-align: middle; }

/*------------------------------------------------------
	NAVIGATION 
--------------------------------------------------------*/
nav { font-size: 1.2em; font-weight: lighter; }
nav .fa { display: block; text-align: center; margin-bottom: 13px; }

.navbar {
	background: transparent;/*#444444;*/
	min-height: 100px;	
	border-radius: 0px; 
	border: none; 
	margin-bottom: 0px; 
	/*-webkit-box-shadow: 0 2px 4px rgba(1, 1, 1, 0.15);
	-moz-box-shadow: 0 2px 4px rgba(1, 1, 1, 0.15);
	box-shadow: 0 2px 4px rgba(1, 1, 1, 0.15);*/
	-webkit-transition: all 0.4s ease-in-out;
	-moz-transition: all 0.4s ease-in-out;
	-ms-transition: all 0.4s ease-in-out;
	-o-transition: all 0.4s ease-in-out;
	transition: all 0.4s ease-in-out;
}

.scrolled {
	background-color: #fff;
	-webkit-box-shadow: 0 2px 4px rgba(1, 1, 1, 0.15);
	-moz-box-shadow: 0 2px 4px rgba(1, 1, 1, 0.15);
	box-shadow: 0 2px 4px rgba(1, 1, 1, 0.15);
	-webkit-transition: all 150ms ease-in-out 0s;
	-moz-transition: all 150ms ease-in-out 0s;
	-ms-transition: all 150ms ease-in-out 0s;
	-o-transition: all 150ms ease-in-out 0s;
    transition: all 150ms ease-in-out 0s;
}
.navbar-brand img, .lingue img{
	width: 100%;
	max-width: 130px;
	margin-left: 25px;
	-webkit-transition-duration: 1s;
	-moz-transition-duration: 1s;
	-ms-transition-duration: 1s;
	-o-transition-duration: 1s;
	transition-duration: 1s;
}
.scrolled .navbar-brand img{
	width: 65%;
	-webkit-transition-duration: 1s;
	-moz-transition-duration: 1s;
	-ms-transition-duration: 1s;
	-o-transition-duration: 1s;
	transition-duration: 1s;
}
.scrolled .navbar-brand {
    padding: 0;
	-webkit-transition-duration: 1s;
	-moz-transition-duration: 1s;
	-ms-transition-duration: 1s;
	-o-transition-duration: 1s;
	transition-duration: 1s;
}

.navbar-default .navbar-nav>li>a, .lingue>a, .homeCookie>a {
	padding-bottom: 20px;
	color: white;
	text-transform: uppercase;
	-moz-transition: background-color .5s ease;
	-o-transition: background-color .5s ease;
	-webkit-transition: background-color .5s ease;
	transition: background-color .5s ease;
	font-family: 'Cinzel', sans-serif;
	padding-top: 20px;
	height; 100px;
}
.scrolled .navbar-nav>li>a, .scrolled .lingue>a, .scrolled .homeCookie>li>a{
    color: #000;
    padding-bottom: 20px;
    transition: background-color 0.5s ease 0s;
	height; 100px;
}
.lingue>a:hover, .homeCookie>a:hover{
    color: #000;
    padding-bottom: 20px;
    transition: background-color 0.5s ease 0s;
}

.navbar-default .navbar-nav>li>a:hover, .navbar-default .navbar-nav>li>a:focus, .menu ul li a.current, .homeCookie>li>a:hover{
	color: white;
	background-color: #666;
	/*height: 100px;*/
}

.navbar>.container .navbar-brand { margin-left: 0; }
.navbar-collapse .navbar-nav.navbar-right:last-child { /*margin-right: 0; background: rgba(255, 255, 255, 0.53) none repeat scroll 0 0;*/ }
.navbar-collapse .navbar-nav.navbar-right, .homeCookie { background-color: #aaa; box-shadow: 0 2px 4px rgba(1, 1, 1, 0.15);}
.scrolled .navbar-collapse .navbar-nav.navbar-right { background-color: #fff; box-shadow: none; }
.navbar-default .navbar-toggle:hover, .navbar-default .navbar-toggle:focus { background-color: #394665; }

.lingue {
	position: absolute;
    right: 30px;
    top: 18px;
	padding: 5px;
}

.homeCookie {
	position: absolute;
    right: 70px;
    top: 18px;
	padding: 5px;
}
.homeCookie li{
	float: left;
	list-style: outside none none;
	margin-right: 30px;
}
.homeCookie li a {
	color: #fff;
}

/*------------------------------------------------------
	FLEXSLIDER OVERRIDING 
--------------------------------------------------------*/
.flexslider { /*padding-top: 85px;*/ }
.flexslider a:hover, .flexslider a:focus { text-decoration: none; }
.flexslider { border: none;	-webkit-border-radius: 0; border-radius: 0; }
.flexslider .slides li { position: relative; }
.flex-caption {
    position:absolute;
    left:0;
    right:0;
    bottom:0;
    color: white;
    background:rgba(102,102,102,0.8);   
    z-index:1;
    padding: 20px;
    margin: 0;
	font-family: "Cinzel",sans-serif;
}

.slogan {
	bottom: 15%;
    color: #fff;
    font-family: "Cinzel",sans-serif;
    font-size: 42px;
    position: absolute;
    right: 10%;
    z-index: 500;
	text-align: center;
	line-height: 1.2em;
}
.sloganSotto {
	font-size: 34px;
	border-top: 1px solid #fff;
}


/*------------------------------------------------------
	About Us Styles 
--------------------------------------------------------*/
#about h1 { /*background-color: #498fc0;*/ }
#about img { padding: 0; }
#about_content, #tessuti_content { height: 280px; }

/*------------------------------------------------------
	Our Team Styles
--------------------------------------------------------*/
#team .col-md-4 { padding: 5px; }
#team img { margin: 0 auto; margin-bottom: 15px; }
#team h1 { background-color: #498fc0; }
#team p { text-align: center; }
#team_content { height: 280px; }

/*------------------------------------------------------
	Agenti Styles 
--------------------------------------------------------*/
.agenti_buttons .icon-button:last-of-type { margin-bottom: 0; }
.agenti_buttons .icon-button {
	font-size: 400%;
	color: white;
	background-color: #aaa;;
	cursor: pointer;
	display: inline-block;
	margin-bottom: 5px;
	position: relative;
	text-align: center;
	-webkit-user-select: none;
	   -moz-user-select: none;
	    -ms-user-select: none;
	        user-select: none;
	width: 100%;
	height: 100%;
	max-width: 90px;
	max-height: 90px;
	/*line-height: 90px;*/
	font-family: "Cinzel", serif;
	font-size: 16px;
	padding:  30px 0;
}

.agenti_buttons  .icon-button:hover, .agenti_buttons  .icon-button.active {	background-color: #444; }

#agenti h1 { /*background-color: #e98714;*/ }
#agenti .col-md-2 { padding-right: 0; }
#agenti .fa { line-height: 90px; }
#agenti_content { height: 280px; }
#agenti_content .tab-pane {  padding: 15px; }
#agenti_content a { color: #FFFFFF; }

/*http://cssarrowplease.com/*/
.arrow-box { position: relative; color: white; background-color: #444;/*#e98714;*/ border-radius: 4px; margin-left: 30px; height: 100%; min-height: 355px; width: 94%;}
.arrow-left { display: block; width: 30px; height: 58px; background: url(../images/left_arrow.png) no-repeat 0 0; position: absolute; left: 1px; margin-top: 20px; }
.arrow-right { display: block; width: 30px; height: 58px; background: url(../images/right_arrow.png) no-repeat 0 0; position: absolute; right: -30px; margin-top: 20px; }

/*------------------------------------------------------
	Skills Styles 
--------------------------------------------------------*/
.progress { background-color: black; border-radius: 0px; }
.progress.vertical:last-of-type { margin-right: 0; }
.progress-bar {	position:absolute; bottom:0; left:0; } /*http://stackoverflow.com/questions/2015032/align-divs-to-bottom-or-baseline*/
.progress-label { position:absolute; width: 100%; bottom:0; }

/*http://stackoverflow.com/questions/16318375/how-to-align-vertically-a-progress-bar-in-twitter-bootstrap*/
.progress.vertical {
    position: relative;
    width: 19%;
	margin-right: 1.2%; 
    min-height: 240px;
    float: left;
    -webkit-box-shadow: none;
    -moz-box-shadow: none;
    box-shadow: none;
    border: none;
}

#skills h1, .progress-bar { background-color: #e98714; }

/*------------------------------------------------------
	Portfolio Styles 
--------------------------------------------------------*/
.portfolio-item:hover .overlay-p { transition: all 0.3s ease-in-out 0s; visibility: visible; opacity: 1;}
.portfolio-thumb .overlay-p {
 	background-color: rgba(100, 100, 100, 0.7);
 	position: absolute; 
 	visibility: hidden; 
 	top: 0; 
 	left: 0; 
 	width: 100%; 
 	height: 100%;  	
 	opacity: 0;
 }
.portfolio-thumb .overlay-p a { position: absolute; color: white; text-decoration: none; display: block;  width: 100%; height: 100%; text-align: center; }

#portfolio .col-md-4 { max-width: 206px; }
#portfolio .col-md-3 { padding: 0; }
#portfolio .row { margin: 0; }
#portfolio h1 { /*background-color: #00c8c8;*/ height: 290px; }
#portfolio h2 { color: white; padding: 8% 4% 4% 4%; margin: 0; }
#portfolio p { color: white; padding: 0 4% 4% 4%; margin: 0; font-size: .9em; }
#portfolio_content .col-md-4 { padding: 0; }

/*------------------------------------------------------
	Blog Styles 
--------------------------------------------------------*/
.blog_post { position: relative; float: left; width: 50%; }
.blog_posts_container { max-width: 620px; }
.blog_post h2 { position: absolute; background: #a8f662; color: white; top: 0; right: 0; padding: 10px 20px; margin: 0; text-align: center; }

#blog .col-md-7 { padding-right: 46px; overflow: hidden; }
#blog h1 { background-color: #a8f662; }

/*------------------------------------------------------
	Contact Styles 
--------------------------------------------------------*/
.form-group { margin-bottom: 20px; }
.form-control {	border-radius: 0px; }
.form-control:focus {
	border-color: rgb( 226, 90, 148 );
	outline: 0;
	-webkit-box-shadow: inset 0 1px 1px rgba(0,0,0,0.075),0 0 8px rgba(226, 90, 148,0.6);
	box-shadow: inset 0 1px 1px rgba(0,0,0,0.075),0 0 8px rgba(226, 90, 148,0.6);
}

.contact-form .success {
    color: #019edf;
    display: none;
    font-size: 16px;
    margin-bottom: 50px;
    text-align: center;
}
.contact-form .error {
    color: #ff0000;
    display: none;
    font-size: 16px;
    margin-bottom: 50px;
    text-align: center;
}

#contact h1 { /*background-color: #e25a94;*/ }
#contact_content { height: 280px; }

form {
	width: 85%;
	margin-top: 25px;
}


/*------------------------------------------------------
	Map Styles 
--------------------------------------------------------*/
#map h1 { background-color: #e25a94; }

#google_map { width: 100%; height: 280px; outline: 0; border: 0; }

/*------------------------------------------------------
	FOOTER 
--------------------------------------------------------*/
footer { background: #fff; min-height: 141px; color: #444; margin-top: 20px; }
footer img { /*padding-top: 30px; */}
footer strong { padding-top: 30px; display: block; }
footer a { text-decoration: none; color: #444; }
footer a:hover { color: #cbcbcb; text-decoration: none; }
footer .row { height: 100%; }

.back_to_top { background-color: #c5454a; text-align: center; height: 41px; line-height: 41px; 
background:rgba(0, 0, 0, 0) url("../images/back-top-btn.png") no-repeat scroll 0 0;
bottom: 55px;
    cursor: pointer;
    height: 47px;
    position: fixed;
    right: 20px;
    text-align: center;
    text-indent: -9999px;
    width: 47px;
    z-index: 12; } /*http://stackoverflow.com/questions/2939914/vertically-align-text-in-a-div*/

.social_buttons a {	text-decoration: none; }

#templatemo_copyright { font-size: .9em; }

.credits {
	font-size: .9em;
	margin-top: 30px;
}

.cert { padding-right: 25px;}

/*------------------------------------------------------
	BOOTSTRAP OVERRIDING 
--------------------------------------------------------*/
.col-md-4, .col-md-5, .col-md-7, .col-md-8 { padding: 0; }

.btn-primary {
	font-size: 1.7em;
	padding-bottom: 10px;
  	background-color: #444;
  	width: 160px;
  	height: 40px;
  	border: none; /*border-radius: 0px;*/
  	-moz-transition: background-color .5s ease;
  	-o-transition: background-color .5s ease;
  	-webkit-transition: background-color .5s ease;
  	transition: background-color .5s ease;
	font-family: "Cinzel", serif;
}

.btn-primary:hover, .btn-primary:focus, .btn-primary:active, .btn-primary.active {
	background-color: #aaa;
	color: #000;
}

/*------------------------------------------------------
	MEDIA QUERIES 
--------------------------------------------------------*/
@media only screen and (min-width: 1200px){
	h1 { font-size: 4.5em; }
	.agenti_buttons { /*text-align: right;*/ }
	.navbar-default .navbar-nav>li>a:hover, .navbar-default .navbar-nav>li>a:focus, .menu ul li a.current {
		height: 100px;
	}
	#about .col-md-7, #fiere .col-md-7, #tessuti2 .col-md-7, #fb .col-md-7  { padding-left: 50px; }
	#about .col-md-8 , #tessuti2 .col-md-8{ padding-left: 20px; }
	#team .col-md-7 { padding-right: 50px; }
	#skills .col-md-7 { padding-right: 90px; }
	#portfolio .col-md-7 { /*padding-left: 46px;*/ }
	#contact .col-md-7 { padding-left: 50px; }	
}

@media only screen and (min-width: 992px) and (max-width: 1199px) {
	h1 { font-size: 3.5em; }
	.agenti_buttons { text-align: right; }
	.navbar-default .navbar-nav>li>a:hover, .navbar-default .navbar-nav>li>a:focus, .menu ul li a.current {
		height: 100px;
	}
	#about .col-md-7, #tessuti2 .col-md-7  { padding-left: 30px; }
	#about .col-md-8, #tessuti2 .col-md-8 { padding-left: 20px; }
	#team .col-md-7 { padding-right: 30px; }
	#skills .col-md-7 { padding-right: 30px; }
	#portfolio .col-md-7 { padding-left: 30px; }
	#contact .col-md-7 { padding-left: 30px; }
}

@media only screen and (min-width: 768px) and (max-width: 991px) {
	h1 { font-size: 2.5em; }
	nav { font-size: 1em; }
	.btn-primary { font-size: 1.6em; }
	.agenti_buttons { text-align: left; }
	.navbar-default .navbar-nav>li>a:hover, .navbar-default .navbar-nav>li>a:focus, .menu ul li a.current {
		height: 100px;
	}
	#about .col-md-8, #tessuti2 .col-md-8 { padding-left: 0; padding-bottom: 20px; }
	#about img { padding: 0; margin-top: 20px; margin-bottom: 20px;	}
	#agenti .col-md-2, #agenti_content { padding-left: 0; padding-top: 40px; height: 300px; z-index: 200; }
	#agenti .col-sm-12, h1 { 
	padding-left: 0; padding-top: 20px; height: 300px; z-index: 100; 
	}
	#portfolio p { padding: 7.3% 4%; }
	#portfolio .col-md-7, #blog .col-md-7, #contact .col-md-7  { padding-left: 0; padding-top: 20px; }	
	#blog .col-md-7 { padding-right: 0; }
	.slogan {
    bottom: 20%;
    font-size: 34px;
	}
	.agenti_buttons .icon-button {
    font-size: 110%;
	}
	#agenti .col-md-2, #agenti_content {
    height: 400px;
	}
}

@media only screen and (max-width: 767px) and (min-width: 481px) {
	h1 { font-size: 2.5em; }
	nav .fa { display: inline; text-align: left; margin-bottom: 0; margin-right: 10px; }
	.navbar-default .navbar-nav>li>a { padding-top: 15px; padding-bottom: 15px; }
	.navbar-default .navbar-nav>li>a:hover, .navbar-default .navbar-nav>li>a:focus {
		height: 100%;
	}
	.btn-primary { font-size: 1.5em; }
	.agenti_buttons { text-align: left; }
	.agenti_buttons .icon-button { font-size: 210%; }
	.blog_post img { max-width: 100%; }
	#about .col-md-8 , #tessuti2 .col-md-8{ padding-left: 0; padding-bottom: 20px; }	
	#about img { padding: 0; margin-top: 20px; margin-bottom: 20px; }
	#team_content { width: 100%; }
	#agenti .col-md-2, #agenti_content { padding-left: 0; padding-top: 20px; height: 300px; }
	#agenti_tabs { padding-left: 10px; }
	#portfolio .col-md-7, #blog .col-md-7, #contact .col-md-7 { padding-top: 20px; padding-left: 0; }	
	.navbar-brand img {
    width: 50%;
	}
	.lingue {
	position: absolute;
    right: 30px;
    top: -50px;
	}
	.homeCookie {
	position: absolute;
    right: 40px;
    top: -100px;
	padding: 5px;
	}
	.slogan {
    bottom: 25%;
    font-size: 24px;
	}
	.sloganSotto {
    border-top: 1px solid #fff;
    font-size: 24px;
	}
	.agenti_buttons .icon-button {
    font-size: 110%;
	}
	#agenti .col-md-2, #agenti_content {
    height: 400px;
	}
	.arrow-box {
    width: 84%;
	}
	.arrow-right {
    right: 0;
	}
}

@media only screen and (max-width: 480px) {	
	section h1 {	font-size: 1.6em; line-height: 50px; }
	nav .fa { display: inline; text-align: left; margin-bottom: 0; margin-right: 10px; }
	.col-xxs { display:block; float:none; width: 100% }
    .social_buttons { margin-top: 30px; }
    .pull-right { float: left !important; } /*do not pull-right in mobile view*/
    .navbar-default .navbar-nav>li>a:hover, .navbar-default .navbar-nav>li>a:focus {
		height: 100%;
	}
	.navbar-default .navbar-nav>li>a { padding-top: 15px; padding-bottom: 15px; }	
	.btn-primary { font-size: 1.2em; }	
	.agenti_buttons { text-align: left; }
	.agenti_buttons .icon-button { font-size: 190%; }
	.blog_post { width: 50%;}
    .blog_post img { max-width: 100%; }    
	#about .col-md-8, #tessuti2 .col-md-8 { padding-left: 0; padding-bottom: 20px; }
	#about img { padding: 0; margin-top: 20px; margin-bottom: 20px; }
	#team_content { width: 100%; }
	#agenti .col-md-2, #agenti_content { padding-left: 0; padding-top: 20px; height: 300px; }	
	#agenti_tabs { padding-left: 0; }
	#portfolio .col-md-7, #blog .col-md-7, #contact .col-md-7 { padding-top: 10px; padding-left: 0; }	
	.navbar-brand img {
    width: 40%;
	}
	.lingue {
	position: absolute;
    right: 30px;
    top: -50px;
	}
	.slogan {
    bottom: 25%;
    font-size: 24px;
	}
	
	.sloganSotto {
    border-top: 1px solid #fff;
    font-size: 24px;
	}
	.homeCookie {
	position: absolute;
    right: 40px;
    top: -100px;
	padding: 5px;
	}
	.agenti_buttons .icon-button {
    font-size: 110%;
	}
	#agenti .col-md-2, #agenti_content {
    height: 400px;
	}
	.arrow-box {
    width: 84%;
	}
	.arrow-right {
    right: 0;
	}
}

@media only screen and (max-width: 430px) {
	body { font-size: 10px; }
	.btn-primary { font-size: 1.1em; }	
	.blog_post h2 { font-size: 1.1em; padding: 5px 5px; }
	.agenti_buttons .icon-button { font-size: 180%; }
	.navbar-default .navbar-nav>li>a {
		padding-top: 15px;
		padding-bottom: 15px;
	}

	.navbar-default .navbar-nav>li>a:hover, .navbar-default .navbar-nav>li>a:focus {
		height: 100%;
	}
	#agenti_tabs { padding-left: 0; }
}



/* http://codepen.io/minimalmonkey/pen/Ecpla */

/* Wrapper */
.social_buttons .icon-button {
	background-color: #fff; /*#aaa;*/
	cursor: pointer;
	display: inline-block;
	font-size: 2.0rem;
	line-height: 100px;
	margin: 0;
	position: relative;
	text-align: center;
	-webkit-user-select: none;
	   -moz-user-select: none;
	    -ms-user-select: none;
	        user-select: none;
	width: 60px;
	height: 100px;
}

/* Icons */
.icon-button i {
	background: none;
	color: white;
	line-height: 3.6rem;
	-webkit-transition: all 0.3s;
	   -moz-transition: all 0.3s;
	     -o-transition: all 0.3s;
	        transition: all 0.3s;
	width: 3.6rem;
	z-index: 10;
}

.icon-button:hover .fa-twitter,
.icon-button:hover .fa-facebook,
.icon-button:hover .fa-youtube {
	color: #000;
}

/* End minimalmonkey */

/* icona instagram colorata nel footer */
.fa.fa-instagram {
  color: transparent;
  background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
  background: -webkit-radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
  background-clip: text;
  -webkit-background-clip: text;
}