/*
Theme Name:     Story Child
Author:         Pexeto
Author URI:     http://pexetothemes.com
Template:       thestory
*/

@import url("../thestory/style.css");

/* GENERALI */

h1 {
	font-family: 'Droid serif' !important;
}

/* HEADER */

#header {
	background-color: #333333 !important;
	left: 0;
}

.fixed-header-scroll #header {
    padding-top: 16px;
	padding-bottom: 0;
}

.header-buttons {
	margin-top: 17px;
}

.header-search {
	float: left;
}

.header-wrapper {
	padding-top: 0 !important;
	overflow: hidden;
	max-height: 677px;
	margin-top: 77px;
}

.header-wrapper > .full-bg-image {
	max-width: 1280px;
    margin: 0 auto;
    max-height: 600px;
}

.home .header-wrapper {
	padding-top: 0 !important;
}

.section-header {
	padding-bottom: 3px;
}

.large-header .page-title-wrapper {
	min-height: 300px;
	width: 100%;
}

/* MENU */

.nav-menu ul {
	margin-left: 20px;
	margin-top: 21px;
}

.fixed-header-scroll .nav-menu ul {
	margin-top: 21px;
}

.nav-menu > ul > li > a:after, .nav-menu > div.menu-ul > ul > li > a:after {
	display: none;
}

#menu ul li a:hover {
	color: #7089ac;
}

#menu ul .current-menu-item > a,
#menu > ul > li:hover > a,
.current-menu-ancestor > a {
  -moz-opacity: 1;
  -khtml-opacity: 1;
  -webkit-opacity: 1;
  opacity: 1;
  -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=100)";
  filter: alpha(opacity=100);
}

#menu ul .current-menu-item a,
#menu li:hover a,
#menu .current-menu-parent a,
#menu .current-menu-ancestor a,
#menu .current-page-parent a,
#menu .current-page-ancestor a {
  color: #7089ac;
}

.navigation-container {
	float: none;
}

/* MENU SIDEBAR */

.widget_nav_menu li a:hover {
	color: #7089ac;
}

/* SLIDER */

.nivo-controlNav {
	bottom: 20px;
}

.nivo-controlNav a.active {
	background: #000;
}

#slider-container {
	max-width: 1280px;
    margin: 0 auto;
}

.nivo-slider img {
	max-height: 600px;
}

/* CONTENUTO PAGINE */

/* Azienda */

.page-id-346 #section-1 .cols-wrapper.cols-2 {
	margin-top: 1.9%;
}

.page-id-346 #section-1 .cols-wrapper.cols-2 .col img {
	width: 100%;
}

.page-id-346 #section-1 .cols-wrapper.cols-2 .col img.alignnone {
	margin: 0;
}

.page-id-346 .cols-wrapper.cols-2 .col:first-child {
	width: 38.85%;
	margin-right: 1.9%;
	margin-bottom: 1.9%;
}

.page-id-346 .cols-wrapper.cols-2 .col:nth-child(2) {
	width: 59.25%;
	margin-bottom: 0;
}

.five-img {
	display: flex;
	display: -webkit-flex;
    justify-content: space-between;
	-webkit-justify-content: space-between;
}

.two-img img,
.five-img img {
	margin: 0;
	height: 0%;
}

.five-img img {
	width: 18.5%;
}

/* Download */

.page-id-10 #content-container.layout-full .section-boxed {
	padding: 10px 7%;
}

/* Laminam */

.page-id-118 #content .cols-wrapper.cols-3 {
	padding: 0 2.5%;
}

/* Quarzo */

.page-id-177 #content .cols-wrapper.cols-3 {
	padding: 0 3%;
}

/* Altre generali */

.services-wrapper.cols-wrapper.cols-3,
.vetrina .cols-wrapper.cols-3:first-of-type,
.vetrina h3 + .cols-wrapper.cols-3 {
	margin-top: 20px;
}

.vetrina .cols-wrapper.cols-3 .col {
	margin-bottom: 3.2%;
}

#content-container.content-boxed {
	padding: 70px 7%;
}

#content-container.layout-full {
	padding: 10px 0 !important;
}

#content-container.layout-full .section-boxed {
	padding: 0 7%;
}

.content-box {
	padding: 0px;
	width: 100%;
	-webkit-box-shadow: none;
	-moz-box-shadow: none;
	box-shadow: none;
}

.content-box h3:first-child,
.content-box p ~ h3,
 #section-1.section-boxed p ~ h3 {
	color: #7089ac;
}

#content-container .section-boxed {
	margin: 20px auto;
}

#content-container .pc-item h2 {
	text-transform: none;
	padding-left: 0px;
}

p img.alignnone {
	display: inline-block;
}

#attachment_59.wp-caption {
	position: relative;
}

.layout-left #content {
	padding-left: 0;
	max-width: 76%;
}

.page-subtitle {
	font-family: "Droid Serif", Helvetica;
	text-transform: none;
	letter-spacing: 1px;
	font-size: 18px;
}

.page-title h1:after {
	display: none;
}

.page-title-wrapper {
	padding-bottom: 0;
}

.page-title-wrapper .page-title .content-boxed h1 {
	width: 50%;
	color: #fff;
	border-bottom: 2px solid #fff;
}

.wp-caption-text {
	position: absolute;
	top: 80%;
	left: 9%;
	text-align: center;
}

/* BOTTONI */

.button {
	text-transform: none;
	letter-spacing: 0;
	font-style: italic;
}

/* LIGHTBOX SINGOLI */

a.lightbox-image img.img-frame:hover {
	opacity: 0.7;
}

.col div a {
	font-size: 16px;
	color: #e7e7e7;
}

.col div a:hover {
	color: #7089ac;
}

.pp_description {
	color: #333;
}

/* SERVICES BOXES */

div.cols-3 .sc-wraper a,
div.cols-2 .sc-wraper h3 a {
	color: #e7e7e7;
}

div.cols-3 .sc-wraper a:hover,
div.cols-2 .sc-wraper h3 a:hover {
	color: #7089ac;
}

.sc-wraper h3 {
	font-weight: lighter;
}

#section-1 .cols-wrapper.cols-3 {
	margin-top: 0;
}

.services-box.col h3 {
	font-family: 'Droid serif' !important;
	font-style: italic;
}

.home #section-2 .service-wrapper {
	display: flex;
	display: -webkit-flex;
	align-items: center;
	-webkit-align-items: center;
	justify-content: space-between;
	-webkit-justify-content: space-between;
	flex-wrap: wrap;
	-webkit-flex-wrap: wrap;
}

#section-2 .services-box.col .services-content .sc-wraper h3 a {
	color: transparent;
	position: absolute;
	top: 0;	
	left: 0;
    width: 100%;
	height: 100%;
	font-size: 20px;
	display: flex;
	display: -webkit-flex;
	justify-content: center;
	align-items: center;
	-webkit-justify-content: center;
	-webkit-align-items: center;
}

.services-content .sc-wraper h3 {
	text-align: center;
}

#section-2 .services-box.col .services-content:hover .sc-wraper h3 a:hover {
	background: rgba(0,0,0,0.7);
	color: #ffffff;
}

div.cols-2 .img-container img:hover,
div.cols-3 .img-container img:hover {
	opacity: 0.7;
}

.page-id-6 .services-box.col {
	width: 31.2%;
	margin-right: 3.2%;
	padding-right: 0;
}

.page-id-6 .services-box.col.nomargin {
	margin-right: 0;
}

.services-box {
	text-align: left;
}

#content .services-wrapper.cols-wrapper.cols-2 .services-box.col {
	width: 48.4%;
	margin-right: 3.2%;
	padding-left: 0;
	padding-right: 0;
}

#content .services-wrapper.cols-wrapper.cols-2 .services-box.col.nomargin {
	margin-right: 0;
}

.services-wrapper.cols-wrapper.cols-2 .services-box .services-content h3 a {
	font-size: 20px;
}

#section-2 div.col div {
	margin-top: 0;
}

#section-2 .services-box {
	text-align: center;
	padding-right: 0;
}

#section-2 .services-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
	height: 100%;
}

#section-2 .services-content .sc-wraper {
	width: 100%;
	height: 100%;
}

#section-2 .services-content .sc-wraper h3 {
	width: 100%;
	height: 100%;
	padding: 0;
}

.services-content {
	padding: 0;
}

.services-content .sc-wraper a {
	color: #7089ac;
}

#section-2 .services-box.col:nth-child(2),
#section-2 .services-box.col:nth-child(5) {
	margin-left: 2%;
	margin-right: 2%;
}

#section-2 .services-box.col {
	width: 32% !important;
}

.services-default .col {
	margin: 12px 0;
	padding-left: 0%;
}

.services-default img {
	width: 100%;
}

/* GALLERY */

/*.quick-gallery {
	display: none;
	margin-top: 20px !important;
	margin-left: -10px !important;
}

.qg-overlay {
	opacity: 1 !important;
	position: relative !important;
	height: 44px !important;
	background-color: #333 !important;
	transition: none !important;
	-webkit-transition: none !important;
}

.qg-overlay .icon-circle {
	display: none !important;
}

.qg-overlay .qg-title {
	text-align: left !important;
	text-transform: none !important;
	letter-spacing: 0 !important;
	bottom: 22% !important;
	font-size: 16px !important;
	transition: none !important;
	-webkit-transition: none !important;
}

.qg-img a:hover > .qg-overlay > .qg-title {
	color: #7089ac !important;
}

.qg-img img {
	max-height: 158px;
}*/

/* CONTACT FORM */

input[type=text], 
input[type=password], 
textarea, 
input[type=search], 
input[type=email], 
input[type=date], 
input[type=time], 
input[type=url], 
input[type=number], 
input[type=tel] {
	font-size: inherit;
}

/* SIDEBAR */

aside#text-2 {
	margin-top: 12px;
}

.sidebar-box .title {
	font-style: normal !important;
}

/* PAGINA DI RICERCA */

.search.search-results .page-title-wrapper {
	min-height: 400px;
	height: 400px;
}

.search.search-results #content-container {
	padding-top: 0;
}

.search-no-results .page-title h1 {
	font-size: 35px;
}

/* FOOTER */

.copyrights {
	color: #b3b3b1 !important;
}

.footer-nav, .copyrights {
	font-size: 11px;
}

.footer-bottom .section-boxed {
	border-top: 1px solid #e7e7e7;
	padding-top: 10px;
}

.footer-nav, .copyrights {
	text-transform: none;
	letter-spacing: 0;
}

.footer-nav li a {
	margin-left: 0px;
	margin-right: 2px;
}

.footer-nav li a:hover {
	color: #7089ac;
}

.footer-nav li:after {
	content: "|";
	margin-left: 1px;
	margin-right: 1px;
}

.scroll-to-top {
	background: #7089ac;
	bottom: 70px;
}

.scroll-to-top:hover {
	opacity: 0.7 !important;
}

.cols-wrapper.footer-widgets.section-boxed.cols-4 {
	display: none;
}

/* MEDIA QUERIES */

@media screen and (min-width: 768px) and (max-width: 1279px) {
	#section-2 .services-box.col {
		width: 32.1%;
	}
}

@media(max-width: 1112px) {
	.copyrights, .footer-nav {
		display: block;
		text-align: center;
		float: none;
		margin: 10px auto;
	}
	
	.scroll-to-top {
		bottom: 50px;
	}
}

@media screen and (max-width: 1024px) {
	.large-header .page-title-wrapper {
		min-height: 0 !important;
		height: 485px !important;
	}
	
	#section-2 .services-content {
		position: relative;
		margin-top: 6px !important;
	}
	
	#section-2 .services-box.col .services-content .sc-wraper h3 a {
		position: relative;
		color: #e7e7e7;
		display: ruby;
		display: initial;
	}
	
	#section-2 .services-box.col .services-content .sc-wraper h3 a:hover {
		background: none !important;
		color: #7089ac !important;
	}
}

@media screen and (min-width: 1019px) and (max-width: 1036px) {
	#slider-container .nivo-wrapper {
		min-height: 0px !important;
	}
}

@media screen and (max-width: 1000px) {
	.fixed-header #header {
		position: fixed;
	}
	
	.page-title-wrapper {
		padding-top: 77px;
	}
	
	.footer-bottom .social-icons li {
		background: none;
	}
	
	.header-wrapper {
		margin-top: 0;
	}
	
	.large-header .page-title-wrapper {
		margin-top: 0;
	}
	
	.mob-nav-menu ul li.current-menu-item > a {
		color: #333333;
		font-weight: bold;
	}
}

@media screen and (min-width: 800px) {}

@media screen and (max-width: 768px) {	
	.header-wrapper .page-title-wrapper {
		height: 372px !important;
	}
	
	.cols-3 .col:nth-of-type(3n) {
		margin-right: 0px;
	}
	
	.img-container {
		text-align: center;
	}
	
	.layout-left #content {
		max-width: 100%;
	}
	
	.page-id-6 .services-wrapper .services-box.col:nth-child(3) {
		margin-right: 3.2%;
	}
	
	.page-id-6 #content {
		max-width: 100%;
	}
	
	.page-id-8 #content {
		max-width: 100%;
	}
	
	.services-default.services-wrapper {
		text-align: center;
	}
	
	.services-default.cols-3 .col {
		width: 48.4%;
	}
	
	.services-default .img-container img {
		width: 100%;
	}
	
	#section-2.services-wrapper {
		text-align: center;
		padding-left: 0;
	}
	
	#sidebar {
		text-align: center;
	}

	#sidebar .menu li {
		background-color: #7089ac;
		text-transform: uppercase;
	}
	
	.vetrina .cols-3 {
		text-align: center;
	}
	
	.vetrina .cols-3 .col:nth-of-type(n) {
		margin-right: 3.2%;
	}
	
	.vetrina .cols-3 .col:nth-of-type(2n) {
		margin-right: 0;
	}
	
	.vetrina .cols-3 .col a > img {
		width: 100%;
	}
	
	.widget_nav_menu li.current-menu-item > a {
		color: #333333 !important;
	}

	.widget_nav_menu li a,
	.widget_nav_menu li a:hover {
		color: #e7e7e7;
	}
}

@media(max-width: 767px) {
	.services-default.services-wrapper.cols-3 .col:nth-of-type(n) {
		margin-right: 3.2%;
	}
	
	.services-default.services-wrapper.cols-3 .col:nth-of-type(2n) {
		margin-right: 0;
	}
}

@media screen and (max-width: 640px) {
	.header-wrapper .page-title-wrapper {
		height: 310px !important;
	}
	
	.five-img {
		display: inline-block;
	}
	
	.five-img img {
		width: auto;
		float: left;
	}
	
	.five-img {
		display: inline-block;
	}
	
	.five-img img:first-child,
	.five-img img:nth-child(3) {
		float: left;
		margin: 15px auto;
	}
	
	.five-img img:nth-child(2),
	.five-img img:nth-child(4) {
		float: right;
		margin: 15px auto;
	}
	
	.five-img img:nth-child(5) {
		margin: 15px auto;
	}
	
	.page-id-346 #section-1 .cols-wrapper.cols-2 .col {
		width: 100%;
		margin: 15px auto;
	}
}

@media screen and (max-width: 639px) {
	.header-wrapper {
		overflow: visible;
	}
	
	.page-title-wrapper .page-title .content-boxed h1 {
		font-size: 30px !important;
	}
	
	.home .section-boxed p > img,
	.page-id-346 .section-boxed#section-1 p > img {
		float: none;
		display: block;
		margin: 0 auto 30px auto;
	}
	
	#attachment_59 {
		float: none;
		margin: auto auto 30px auto;
	}
}

@media screen and (min-width: 539px) and (max-width: 767px) {
	#section-2.services-wrapper {
		text-align: center;
		padding-left: 0;
	}
	
	#section-2.services-wrapper .services-box.col {
		width: 45% !important;
	}
	#section-2 .services-box.col:nth-child(2) {
		margin-right: 0;
	}
	
	#section-2 .services-box.col:nth-child(4) {
		margin-left: 2%;
	}
	
	#section-2 .services-box.col:nth-child(5) {
		margin-left: 0;
		margin-right: 3.2%;
	}
	
	#section-2 .services-box.col:nth-child(6) {
		margin-left: 2%;
	}
}

@media screen and (max-width: 538px) {
	#section-2 .services-box.col {
		width: 368px !important;
	}
	
	#section-2.services-wrapper {
		text-align: center;
		padding-left: 0;
	}
	
	#section-2 .services-box.col .services-content .sc-wraper h3 a {
		width: 368px;
	}
	
	#section-2 .services-box.col:nth-child(3) {
		margin-right: 0;
	}
}

@media screen and (max-width: 520px) {	
	.five-img {
		display: flex;
		display: -webkit-flex;
		flex-direction: column;
		-webkit-flex-direction: column;
		align-items: center;
		-webkit-align-items: center;
	}
	
	.five-img img {
		width: auto;
		margin-bottom: 16px;
	}
	
	.services-default .services-box.col {
		width: auto !important;
	}
	
	.services-default .img-container img {
		width: auto;
	}
	
	.vetrina .cols-3 .col a > img {
		width: auto;
	}
}
.wp-caption-text{
	position: static;
	text-align: left;
	min-height: 40px;
}
.col .alignnone{
	margin: 0;
}
.wp-caption a{
	padding: 0;
}
.text-center{
	text-align: center;
}
.button--cta{
	display: inline-block;
	vertical-align: middle;
	margin: 0 15px;
}
.nivo-caption{
	left: 50%;
	transform: translate(-50%, 50%);
	margin: 0;
	bottom: 50%;
	background-color: transparent;
	border: none;
	border-bottom: 2px solid white;
	font-family: "Droid serif";
	font-size: 45px;
	font-weight: 400;
	font-style: italic;
	text-align: center;
	text-transform: none;
}
.home #submit-form{
	text-align: left;
	margin: 0 auto;
}
@media screen and (max-width: 480px) {	
	.page-id-346 #section-1 > h2 + p > img {
		display: block;
		float: none;
		width: 100%;
		margin-left: 0;
	}
	.nivo-caption{
		font-size: 18px;
		width: 90%;
		margin: 0 auto;
	}
}

@media screen and (max-width: 426px) {
	#section-2 .services-box.col .services-content .sc-wraper h3 a {
		width: 100% !important;
	}
}

.s4w-certificati { list-style:none; padding:0; margin-left:0; width: 100%;  display:inline-block; margin:20px 0;}
.s4w-certificati li { margin:0; display:inline-block; vertical-align:bottom; margin-right:10px; }
.s4w-certificati li p {margin-bottom: 0;}
.s4w-certificati li:nth-child(1) img { max-width:120px; }
.s4w-certificati li:nth-child(2) img { max-width:207px; }
@media screen and (max-width: 426px) {
.s4w-certificati li:nth-child(1) img { max-width:60px; }
.s4w-certificati li:nth-child(2) img { max-width:103px; }
}

.s4w-box {
  margin-bottom: 40px;
}
.s4w-box .s4w-box__body {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;
  margin: 15px 0 0;
}
.s4w-box .s4w-box__image {
  -webkit-box-flex: 0;
      -ms-flex-positive: 0;
          flex-grow: 0;
  -ms-flex-item-align: start;
      align-self: flex-start;
  max-width: 300px;
  
}
.s4w-box .s4w-box__content {
  -webkit-box-flex: 1;
      -ms-flex-positive: 1;
          flex-grow: 1;
  margin: 0 0 0 20px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;
}
.s4w-box .s4w-box__content p {
  margin-top: 0;
}
.s4w-box .s4w-box__button {
  white-space: nowrap;
  -ms-flex-item-align: end;
      align-self: flex-end;
}
.s4w-box .s4w-box__button p {
  margin: 0;
}

@media screen and (max-width: 426px) {
  .s4w-box .s4w-box__body {
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
        -ms-flex-direction: column;
            flex-direction: column;
  }
  .s4w-box .s4w-box__content {
    margin: 15px 0;
  }
  .s4w-box .s4w-box__button {
    -ms-flex-item-align: end;
        align-self: flex-end;
  }
  .s4w-box .s4w-box__image {
    margin: 0 auto;
    max-width: 350px;
  }

}

.custom-container {
    max-width: 120rem;
    margin: 0 auto;
}

.prfesr-link {
    margin: 2em auto;
    padding: 1em 5em;
    position: relative;
    -webkit-box-sizing: border-box;
    box-sizing: border-box
}

.prfesr-img,.prfesr-link {
    display: inline-block;
    width: 100%
}

.prfesr-img {
    height: auto
}

@media screen and (min-width: 1700px) {
    .prfesr-link {
        padding:1em 2em
    }
}

@media screen and (min-width: 600px) {
    .prfesr-section .desktop-only {
        display:inline-block
    }

    .prfesr-section .mobile-only {
        display: none
    }
}

@media screen and (max-width: 599px) {
    .prfesr-link {
        margin:4em auto
    }

    .prfesr-section .desktop-only {
        display: none
    }

    .prfesr-section .mobile-only {
        display: inline-block
    }
}