/* ---------------------------------------------------------------------- */
/*	Basic Elements & Classes
/* ---------------------------------------------------------------------- */

body {
    font-family: 'Nunito', sans-serif;
    font-weight: 300;
    font-size: 14px;
    color: #333;
    background-color: #fff;
    line-height: 24px;
    -webkit-font-smoothing: antialiased;
}

ul, li { margin-left: 0; padding-left: 1.5em; }
ul li { padding: 0.5em 0; }
a, a:hover, a:focus { text-decoration: none; outline: none; color: #c72831; }

.clearfix:before, .clearfix:after {
	content: " ";
	display: table;
}

/* Main Content */

header {
	top: 0;
	width: 100%;
}

footer {
	font-family: 'Nunito', sans-serif;
    font-size: 14px;
    background: #f3f3f3; 
	width: 100%;
	padding-top: 40px;
	margin: 0 auto;  
    padding-left: 12px;
    padding-right: 12px;
    padding-bottom: 20px;
	position: relative;
	clear: both;	
    
}

.container {
	clear: both;
	margin: 0 auto;
	width: 100%;
	min-height: 100%;
    overflow-x: hidden;
}

.content-section {
    padding: 100px 0;
    background-color: #fff;
}

.content {
    width: 95%;
    max-width: 1020px;
    margin: 0 auto;
    text-align: center;
}

.item {
    width: 220px;
    margin: 10px;
    float: left;
}

.content-section:nth-child(2),
.content-section:nth-child(4),
.content-section:nth-child(6),
.content-section:nth-child(8),
.content-section:nth-child(10) { 
    background: #f3f3f3; 
}

.form.content-section {
    background: url(../img/vq_bg.jpg) no-repeat top center;
    background-size: cover;
    color: #fff;
}

.normal-page.content-section:after {
    background: #606060;
    content: '';
    display: block;
    height: 1px;
    width: 300px;
    margin: 150px auto 0 auto;
}

.form.content-section h2 {
    color: #fff;
}

.intro {
    display: table;
    width: 100%;
    height: auto;
    min-height: 665px;
    padding: 100px 0;
    text-align: center;
    color: #fff;
    background: url(../../uploads/b/intro-bg.jpg) no-repeat bottom center scroll;
    background-color: #000;
    -webkit-background-size: cover;
    -moz-background-size: cover;
    background-size: cover;
    -o-background-size: cover;
}

.content {
    padding-left: 12px;
    padding-right: 12px;
}

.container-post-title {
    height: 70px;
    display: block;
    margin-top: 20px;
    margin-bottom: 20px;
}

.post-title {
    font: bold 53px 'Istok Web';
    color: #323232;
    text-transform: uppercase;
    letter-spacing: 5px;
    line-height: 52px;
    margin: 0;
}

.post-subtitle {
    font-family: 'Bitter', sans-serif;
    font-size: 24px;
    margin-bottom: 20px;
    color: #323232;
    text-transform: uppercase;
    line-height: 40px;
    display: block;
    float: left;
    margin: 0;
    width: 100%;
}

.post-body {
    display: block;
    line-height: 24px;
    font-family: 'Nunito', sans-serif;
    font-weight: 300;
    width: 100%;
    text-align: left;
    -webkit-font-smoothing: antialiased;
}

.project-img-container {
    width: 90%; /* or whatever is required */
    text-align: center; /* ensures the image is always in the h-middle */
    overflow: hidden; /* hide the cropped portion */
}

.project-img-container img {
    position: relative; /* allows repositioning */
    left: 100%; /* move the whole width of the image to the right */
    margin-left: -200%; /* magic! */
}


/* Overlay */

#overlayimg:hover {
    opacity: 1;
    padding-top: 0px;
}

#overlayimg {
    background: rgba(22,22,22,0.9);
    text-align: center;
    opacity: 0;
    width: 100%;
    height: 100%;
    float: left;
    z-index: 11;
    position: absolute;
    color: #fff;
    -webkit-transition: all 0.2s linear;
    transition: all 0.2s linear;
    -moz-transition: all 0.2s linear;
    -o-transition: all 0.2s linear;
    transition-delay: 0.1s;
    -webkit-transition-delay: 0.1s;
    -o-transition-delay: 0.1s;
    -moz-transition-delay: 0.1s;
    padding-top: 10px;
}

#lavoro {
    width: 422px;
    height: 456px;
    padding-top: 15px;
    overflow: hidden;
}

#lavoro h2, h4 {
    font-family: 'Bitter', sans-serif;
    text-transform: uppercase;
}

#lavoro h2 {
    font-size: 28px;
}

.intro .intro-body .brand-heading {
    font: bold 60px 'Istok Web';
    margin-bottom: 20px;
    text-transform: uppercase;
    line-height: 66px;  
}

.clipwrapper{
    width: 250px;
    height: 250px;
    padding-top: 15px;
    float: left;
}

.clipwrapper img{
    width: 230px;
    height: 230px;
    -ms-object-fit: cover;
    -moz-object-fit: cover;
    -o-object-fit: cover;
    -webkit-object-fit: cover;
    object-fit: cover;
    overflow: hidden;
}	

/* Circle Button */

.btn {
    text-transform: uppercase;
    font-weight: 400;
    -webkit-transition: all .3s ease-in-out;
    -moz-transition: all .3s ease-in-out;
    transition: all .3s ease-in-out;
}

.btn-circle {
    width: 70px;
    height: 70px;
    margin-top: 15px;
    padding: 7px 16px;
    border: 2px solid #fff;
    border-radius: 35px;
    font-size: 40px;
    color: #fff;
    background: 0 0;
    -webkit-transition: background .3s ease-in-out;
    -moz-transition: background .3s ease-in-out;
    transition: background .3s ease-in-out;
}

.btn-circle:hover,
.btn-circle:focus {
    outline: 0;
    color: #fff;
    background: rgba(255,255,255,.1);
}

/* Navigation */

.nav li {
    background: rgba(33, 33, 33, 0.8);
}

.nav li a {		
	color: #fff;
    display: block;
	text-align: left;	
	text-decoration: none;	
    text-transform: none;
	padding: 8px 20px 0 50px;
}
.nav a:hover, #menu a:active {	
	color: #7e94ac;
}

.wpcf7-text, .wpcf7-textarea {
    font-family: 'Nunito', sans-serif;
    font-weight: 300;
    background: none;
    outline: none;
    border: 2px solid #fff;
    font-size: 14px;
    text-transform: uppercase;
    color: #fff;
    padding: 20px;
    box-sizing: border-box;
    border-radius: 0;
    width: 100%;
    margin-bottom: 20px;
}

.wpcf7-text::-webkit-input-placeholder, 
.wpcf7-textarea::-webkit-input-placeholder { color:#fff; }

.wpcf7-text::-moz-placeholder, 
.wpcf7-textarea::-moz-placeholder { color:#fff; }

.wpcf7-text:focus, .wpcf7-textarea:focus {
    border: 2px solid #fff;
    outline: none;
    -webkit-box-shadow: none;
    box-shadow: none;
}

.wpcf7-submit {
    outline: none;
    border: 0;
    float: right;
    font-size: 14px;
    font-family: 'Nunito', sans-serif;
    font-weight: 300;
    padding: 20px inherit;
    width: 150px;
}

.antispam { display:none; }

/* Portfolio */

#portfolio .portfolio-item {
    right: 0;
    margin: 0 0 15px;
}

#portfolio .portfolio-item .portfolio-link {
    display: block;
    position: relative;
    margin: 0 auto;
    max-width: 400px;
}

#portfolio .portfolio-item .portfolio-link .caption {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    background: rgba(24,188,156,.9);
    -webkit-transition: all ease .5s;
    -moz-transition: all ease .5s;
    transition: all ease .5s;
}

#portfolio .portfolio-item .portfolio-link .caption:hover {
    opacity: 1;
}

#portfolio .portfolio-item .portfolio-link .caption .caption-content {
    position: absolute;
    top: 50%;
    width: 100%;
    height: 20px;
    margin-top: -12px;
    text-align: center;
    font-size: 20px;
    color: #fff;
}

#portfolio .portfolio-item .portfolio-link .caption .caption-content i {
    margin-top: -12px;
}

#portfolio .portfolio-item .portfolio-link .caption .caption-content h3,
#portfolio .portfolio-item .portfolio-link .caption .caption-content h4 {
    margin: 0;
}

#portfolio * {
    z-index: 2;
}

.portfolio-modal .close-modal {
    position: absolute;
    top: 25px;
    right: 25px;
    width: 75px;
    height: 75px;
    background-color: transparent;
    cursor: pointer;
    z-index: 999;
}

.portfolio-modal .close-modal .lr {
    z-index: 1051;
    width: 1px;
    height: 75px;
    margin-left: 35px;
    background-color: #2c3e50;
    -webkit-transform: rotate(45deg);
    -ms-transform: rotate(45deg);
    transform: rotate(45deg);
}

.portfolio-modal .close-modal .lr .rl {
    z-index: 1052;
    width: 1px;
    height: 75px;
    background-color: #2c3e50;
    -webkit-transform: rotate(90deg);
    -ms-transform: rotate(90deg);
    transform: rotate(90deg);
}

.portfolio-modal .close-modal:hover .lr .rl , .portfolio-modal .close-modal:hover .lr  {
   background-color: #000; 
}

@media(min-width:767px) {
    
    /* Navigation */

    .nav ul {	
        padding: 0;	
        margin: 0 auto;	
        display: inline-block;		
        position: relative;
        vertical-align: baseline;
    }
    .nav li {	
        float: left;
        border-bottom: transparent 5px solid;
        padding: 0.5em 0 0 0;
        text-align: center;	
        background-color: transparent;
    }
    .nav li:hover {	
        border-bottom: #333 5px solid;
    }
    .nav li a {
        color: #333;
		font-weight: 600;
        text-align: right;
        text-transform: uppercase; 
        padding: 8px 20px;
    }
    .nav a:hover, #menu a:active {	
        color: #333;
		font-weight: normal;
    }
    #portfolio .portfolio-item {
        margin: 0 0 30px;
    }
}

/* Rb-Grid */

.rb-grid {
	list-style: none;
	text-align: center;
	margin: 0 auto;
}

.rb-grid li {
	color: #333;
	display: block;
	float: left;
	cursor: pointer;
	position: relative;
}

.rb-grid li h3 {
    font-family: 'Bitter', sans-serif;
    font-size: 28px;
	line-height: 46px;
	text-align: left;
	width: 100%;
	font-weight: 100;
	float: left;
}

.rb-grid li h4 {
    color: #c72831;
}

/*
.projectdescription ul {
  float: left;
  width: 100%;
  padding: 0;
  margin: 0 0 2em 0;
  list-style-type: none;
}

.projectdescription li {
  float: left;
  width: 33.3%;
  padding: 0;
  margin: 0;
  background-color: #000;
  border: 10px solid #fff;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
}
*/

.projectdescription img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  margin: auto;
}

.projectdescription {
    font-size: 14px;
    line-height: 22px;
    text-align: left;
    padding: 2% 2% 2% 0;
    float: left;
    width: 100%;
    color: #414141;
    margin-bottom: 20px;
}
.projectdescription p {
	padding-bottom: 10px;
}

@media screen and (max-width: 63.125em) {
	
	.rb-grid { padding-left: 0; }
    .rb-grid li { width: 100%; text-align: left; }

	.rb-grid li[class^="icon-"]: before,
	.rb-grid li[class*=" icon-"]: before {
		font-size: 6em;
		left: auto;
		right: 0;
		line-height: 2.5;
	}

	.rb-grid li > div { text-align: center; }
    
    .projectdescription ul li img {
        width: 100%;
        height: auto;
    }
    
    
    .post-title { font-size: 1.8em; }
    #lavoro { width: 100%; height: 100%; }
    #lavoro h2 { font-size: 1.3em; padding-right: 17px; }
    
    .intro .intro-body .brand-heading  {
        font-size: 1.8em;
        line-height: 30px;
    }
}
    
/* Footer Links */

#footer li {	
	float: left;
}

#footer a {
	color: #333;
}

#footer a:hover {
	text-decoration: underline;
}

#footer a:after {
	content: "";
	padding-left: 15px;
}
