/*==================================================
=                      Generici                    =
==================================================*/

/* Recupero Font */
@import url(http://fonts.googleapis.com/css?family=Open+Sans:400,300,700);
@import url(http://fonts.googleapis.com/css?family=Josefin+Sans:300,400,700);
@import url(http://fonts.googleapis.com/css?family=Raleway);
@import url(http://fonts.googleapis.com/css?family=Lato:300,400);

* {
	margin: 0;
	padding: 0;
	border: 0;
/* 	box-shadow: inset 0px 0px 1px aqua; */
	font-family: "Lato", sans-serif;
	color: #444;
}

.js div#preloader {
position: fixed;
left: 0;
top: 0;
z-index: 999;
width: 100%;
height: 100%;
overflow: visible;
background: #fff url('../img/preloader.gif') no-repeat center center;
z-index: 999999999;
}



html {
	margin: 0;
	padding: 0;
	border: 0;
	font-size:100%;
	-ms-text-size-adjust:100%;
	-webkit-text-size-adjust:100%;
	background: transparent;
}

body {
	margin: 0;
	padding: 0;
	border: 0;
	background: url('../img/bg_01.gif');
	background-position: center center;
	background-size: auto;
	background-repeat: repeat;
	font: normal 100% 'Open Sans', sans-serif;
}

#container {
	background: white;
	width: 80%;
	max-width: 960px;
	height: auto;
	min-height: 100%;
	margin: auto;
	position: relative;
	display: block;
	box-shadow: 0px 0px 13px rgba(0,0,0,0.5);
	
}

#header {
	margin: 0px;
	width: 80%;
	max-width: 960px;
	height: 50px;
	padding: 0px;
	display: block;
	background: rgba(255,255,255,0.9);
	text-align: center;
	position: fixed;
	top: 0px;
	z-index: 999999;
	text-transform: uppercase;
	-webkit-box-shadow: 0px 5px 5px 0px rgba(50, 50, 50, 0.20);
	-moz-box-shadow:    0px 5px 5px 0px rgba(50, 50, 50, 0.20);
	box-shadow:         0px 5px 5px 0px rgba(50, 50, 50, 0.20);
}



/* Menu */
#navigation {
	margin: 0px;
	width: 80%;
	max-width: 960px;
	height: 50px;
	padding: 0px;
	display: block;
	background: rgba(255,255,255,0.9);
/* 	background: #fff; */
	text-align: center;
	position: fixed;
	top: 0px;
	z-index: 999999;
	text-transform: uppercase;
/*
	-webkit-box-shadow: 0px 5px 5px 0px rgba(50, 50, 50, 0.50);
	-moz-box-shadow:    0px 5px 5px 0px rgba(50, 50, 50, 0.50);
	box-shadow:         0px 5px 5px 0px rgba(50, 50, 50, 0.50);
*/
}

#navigation ul li {
	margin: 10px;
	padding: 0;
	display: inline-block;
	font-size: 16px;
	font-weight: 400;
	font-family: "Josefin Sans", sans-serif;
	padding-top: 8px;

}

#navigation ul li a {
	color: #444;
	text-decoration: none;
}

/* Logo */
.logo {
	width: 150px;
	height: 50px;
	float: left;
	background-image:url('../img/logo_cripak.png');
	background-position: center center;
	background-size: contain;
	background-repeat: no-repeat;
	position: fixed;
	color: transparent;
}



/*==================================================
=                    Formattazione                 =
==================================================*/

p {
	font-size: 1em;
	line-height: 1;
	font-weight: 300;
	color: #444;
	text-rendering: optimizeLegibility;
	margin: 1em;
}

strong, b {
  font-weight: 400;
}

h1 {
	font-size: 3em;
	line-height: 1;
	font-weight: 700;
	color: #444;
	text-rendering: optimizeLegibility;
	margin: 1em;
	text-transform: uppercase;
		font-family: "Josefin Sans", sans-serif;

}

h2 {
	font-size: 2em;
	line-height: 1;
	font-weight: 600;
	color: #444;
	text-rendering: optimizeLegibility;
	margin: 1em;
	text-transform: uppercase;
}

h3 {
	font-size: 1.25em;
	line-height: 1;
	font-weight: 500;
	letter-spacing: 2px;
	color: #444;
	text-rendering: optimizeLegibility;
	margin: 1em;
}

h4 {
	font-size: 1em;
	line-height: 1;
	font-weight: 400;
	color: #444;
	text-rendering: optimizeLegibility;
	margin: 1em;
}

.xbold {
	font-family: "Lato", sans-serif;
	font-size: 1.2em;
	font-weight: 700;
	line-height: 1.5em;
	text-transform: uppercase;
}

.hr {
display: inline-block;
position: relative;
    width: 80%;
    margin: 40px auto;
    border: 5;
    height: 1px;
    background-image: -webkit-linear-gradient(left, rgba(0,0,0,0), rgba(0,0,0,0.75), rgba(0,0,0,0));
    background-image:    -moz-linear-gradient(left, rgba(0,0,0,0), rgba(0,0,0,0.75), rgba(0,0,0,0));
    background-image:     -ms-linear-gradient(left, rgba(0,0,0,0), rgba(0,0,0,0.75), rgba(0,0,0,0));
    background-image:      -o-linear-gradient(left, rgba(0,0,0,0), rgba(0,0,0,0.75), rgba(0,0,0,0));
}

.selected {
	color: #01015C;
	text-decoration: underline !important;
}

.selected2 {
	color: #444 !important;
	text-shadow: 0px 0px 1px black;
}

.hidden {
	display: none;
}

.center p {
	text-align: center !important;
}

.blur {
	-webkit-filter: blur(10px);
}

b, strong {
	font-weight: 900;
}

/*==================================================
=                    Generico Scene                =
==================================================*/

.scena {
	margin: 0;
	padding: 0;
	position: relative;
	display: block;
	background: white;
}

.scena h1,.scena h2 {
	width: 100%;
	height: auto;
	bottom: 3%;
	display: block;
	position: absolute;
	color: #fff;
	font-size: 7vw;
	line-height: 1.25em;
	text-transform: uppercase;
	text-shadow: 0px -1px 6px rgba(0, 0, 0, 0.3);
	z-index: 777;
	font-family: "Open Sans", sans-serif;
}

.title_md {
	margin: auto;
	left: 0;
	right: 0;
	text-align: center;
	font-size: 10vw !important;
	bottom: 45% !important;
}

.title_md2 {
	margin: auto;
	left: 0;
	right: 0;
	text-align: center;
	font-size: 5vw !important;
	bottom: 30% !important;
}

.title_sx {
	left: 2vw;
	margin: auto;
	text-align: left;
-moz-transform: skewX(0deg) skewY(-2.2deg);
-webkit-transform: skewX(0deg) skewY(-2.2deg);
-o-transform: skewX(0deg) skewY(-2.2deg);
-ms-transform: skewX(0deg) skewY(-2.2deg);
transform: skewX(0deg) skewY(-2.2deg);
margin-bottom: 0.2em;
line-height: 0.9 !important;
}

.title_dx {
	right: 2vw;
	margin: auto;
	text-align: right;
-moz-transform: skewX(0deg) skewY(2.2deg);
-webkit-transform: skewX(0deg) skewY(2.2deg);
-o-transform: skewX(0deg) skewY(2.2deg);
-ms-transform: skewX(0deg) skewY(2.2deg);
transform: skewX(0deg) skewY(2.2deg);
margin-bottom: 0.2em;
line-height: 0.9 !important;
}

.slideshow {
	margin: 0;
	padding: 0;
	background: silver;
	width: 100%;
	position: relative;
	display: block;
	overflow: hidden;
}

.slideshow:after {
  padding-top: 56.25%; /* 16:9 ratio */
  display: block;
  content: '';
}

.mask_R, .mask_L {
border-bottom: 2px solid #fff;
border-top: 2px solid #fff;
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
}

.mask_R {
	margin: 0;
	padding: 0;
	top: 0;
	bottom: 0;
	left: 0;
	right: 0;
	position: absolute;
	display: block;
	background: url('../img/mask_R.png');
	background-position: center center;
	background-repeat: no-repeat;
	background-size: cover;
	z-index: 999;
}

.mask_L {
	margin: 0;
	padding: 0;
	top: 0;
	bottom: 0;
	left: 0;
	right: 0;
	position: absolute;
	display: block;
	background: url('../img/mask_L.png');
	background-position: center center;
	background-repeat: no-repeat;
	background-size: cover;
	z-index: 999;
}

.px_img {
	margin: 0;
	padding: 0;
	top: 0;
	bottom: 0;
	left: 0;
	right: 0;
	position: absolute;
	display: block;
	background: silver;
	
   -webkit-backface-visibility: hidden;
   -moz-backface-visibility: hidden;
   -ms-backface-visibility: hidden;
   backface-visibility: hidden;

   -webkit-perspective: 1000;
   -moz-perspective: 1000;
   -ms-perspective: 1000;
   perspective: 1000;

   -webkit-transform: translateZ(0);
   -moz-transform: translateZ(0);
   -ms-transform: translateZ(0);
   -o-transform: translateZ(0);
   transform: translateZ(0);
	
}

.descrizione {
	margin: 0;
	padding: 0;
	width: 100%;
	height: auto;
	position: relative;
	display: inline-block;
	overflow: hidden;
	text-align: center;
}

.box_0 {
	margin: 0;
/*
	margin-top: 10px;
	margin-bottom: 10px;
*/
	padding: 0;
	width: 100%;
	height: auto;
	position: relative;
	display: inline-block;
	overflow: hidden;
	text-align: center;
/* 		box-shadow: inset 0px 0px 1px purple; */

}

.box_1 {
	margin: 0;
/*
	margin-top: 10px;
	margin-bottom: 10px;
*/
	padding: 0;
	width: 33.33333%;
	height: auto;
	position: relative;
	display: inline-block;
	overflow: hidden;
	text-align: center;
	float: left;
/* 	box-shadow: inset 0px 0px 1px green; */
}

.box_1b {
	margin: 0;
	padding: 0;
	height: auto;
	width: 33.33333%;
	height: auto;
	position: relative;
	display: inline-block;
	overflow: hidden;
	text-align: center;
/* 	box-shadow: inset 0px 0px 1px green; */
}

.box_2 {
	margin: 0;
/*
	margin-top: 10px;
	margin-bottom: 10px;
*/
	padding: 0;
	width: 50%;
	height: auto;
	position: relative;
	display: inline-block;
	overflow: hidden;
	text-align: center;
	float: left;
/* 	box-shadow: inset 0px 0px 1px blue; */
}

.box_0 p, .box_1 p, .box_1b p, .box_2 p {
	font-family: "Raleway", sans-serif;
	font-size: 0.8em;
	font-weight: 300;
	line-height: 1.3em;
	letter-spacing: 2px;

	margin: 1.5em;
/*
    text-align: justify;
    text-justify: inter-word;
*/
    text-align: left;
}

.box_0 p {
    text-align: center;

}

.box_0 img, .box_1 img, .box_1b img, .box_2 img {
	height: auto;
/* 	width: auto; */
	margin: auto;
	color: #444;
	display: block;
	position: relative;
/* 	box-shadow: 0px 0px 1px red; */
}


.spazio_a_capo br {
	line-height: 1.5em;
}

.icon {
	position: relative;
}

.icon:before{
	content: "";
	display: block;
	padding-top: 55%; 	/* ratio */
/* 	background: yellow; */
}

.icon img, .icon h3, .icon p {
	position:  absolute;
	top: 0;
	left: 0;
	bottom: 0;
	right: 0;
}

.icon img {
	width: auto;
	height: 110%;
}



/*==================================================
=                     Variazioni                   =
==================================================*/


#contatti a {
	text-decoration: none !important;
}

#contatti h3 {
	font-size: 1.1em;
	line-height: 1.5;
	font-weight: 300;
}

.white {
	color: #fff;
}

.special_1 {
		font-size: 1.2em;

}

.spacing p {
	padding-left: 50px;
	padding-top: 50px;
}

.spacing2 p {
	padding-right: 50px;
	padding-top: 50px;
}

.blank {
	opacity: 0;
}

.spacer {
	height: 80px;
}


/*==================================================
=                         Footer                   =
==================================================*/

#footer {
	background: #01015C;
  height: auto;
  width: 100%;
  display: inline-block;
  bottom: 0;
  position: relative;
  display: block;
}

#footer h3 {
	color: #fff;
	line-height: 1;
  padding: 0em;
  font-weight: 300;
}

#footer p {
	color: #848484;
	line-height: 1.8;
  padding: 0em;
}

#footer hr {
    width: 50%;
    margin: 20px auto;
    border: 0;
    height: 1px;
    background:  white;
}

/*==================================================
=                    Specifico Scene               =
==================================================*/


#intro {
	padding-top: 50px;
}

#intro h3 {
	font-size: 2em;
	line-height: 1.5;
	font-weight: 300;
	text-rendering: optimizeLegibility;
	margin: 1em;
}

#intro .px_img {
	background: url('../img/px_intro.jpg') no-repeat;
	background-position: center bottom;
	background-size: 100% auto;
}

#chi_siamo .px_img {
	background: url('../img/px_chi_siamo.jpg') no-repeat;
	background-position: center bottom;
	background-size: 100% auto;
}

#lavorazioni .px_img {
	background: url('../img/px_le_lavorazioni.jpg') no-repeat;
	background-position: center bottom;
	background-size: 140% auto;
}

#materiali .px_img {
	background: url('../img/px_materiali.jpg') no-repeat;
	background-position: center bottom;
	background-size: 100% auto;
}


#iv_gamma .px_img {
	background: url('../img/px_iv_gamma.jpg') no-repeat;
	background-position: center bottom;
	background-size: 100% auto;
}

#da_forno .px_img {
	background: url('../img/px_da_forno.jpg') no-repeat;
	background-position: center bottom;
	background-size: 100% auto;
}

#caseari .px_img {
	background: url('../img/px_caseari_x.jpg') no-repeat;
	background-position: center bottom;
	background-size: 100% auto;
}


#gelati_ghiaccioli .px_img {
	background: url('../img/px_gelati_ghiaccioli.jpg') no-repeat;
	background-position: center bottom;
	background-size: 100% auto;
}

#pasta .px_img {
	background: url('../img/px_pasta_2.jpg') no-repeat;
	background-position: center bottom;
	background-size: 100% auto;
}

#caffe .px_img {
	background: url('../img/px_caffe.jpg') no-repeat;
	background-position: center bottom;
	background-size: 100% auto;
}

#contatti .px_img {
	background: url('../img/px_contatti.jpg') no-repeat;
	background-position: center bottom;
	background-size: 100% auto;
}

/*==================================================
=                      Menu Res                    =
==================================================*/

/*Strip the ul of padding and list styling*/
#nav {
	margin: auto;
	padding:0;
	position: fixed;
	z-index: 99999;
	width: 80%;
	height: auto;
	display: block;
	height: auto;
	max-width: 960px;
}


#nav ul {
	list-style-type:none;
	margin:0;
	padding:0;
	position: absolute;
	right: 0;
}

/*Create a horizontal list with spacing*/
#nav li {
	display:inline-block;
	float: left;
	margin-right: 0px;
}

/*Style for menu links*/
#nav li a {
	display:block;
	min-width:140px;
	height: 50px;
	text-align: center;
	line-height: 50px;
	font-family: "Josefin Sans", sans-serif;
	color: #929292;
	text-decoration: none;
}

/*Hover state for top level links*/
#nav li:hover a {
	color: #2f3036;
}

/*Style for dropdown links*/
#nav li:hover ul a {
	background: #f3f3f3;
	color: #2f3036;
	height: 40px;
	line-height: 40px;
}

/*Hover state for dropdown links*/
#nav li:hover ul a:hover {
	background: #444;
	color: #fff;
}

/*Hide dropdown links until they are needed*/
#nav li ul {
	display: none;
}

/*Make dropdown links vertical*/
#nav li ul li {
	display: block;
	float: none;
}

/*Prevent text wrapping*/
#nav li ul li a {
	width: auto;
	min-width: 100px;
	padding: 0 20px;
	
	left: -75px;
	position: relative;
}



/*Display the dropdown on hover*/
#nav ul li a:hover + .hidden, #nav .hidden:hover {
	display: block;
}

/*Style 'show menu' label button and hide it by default*/
.show-menu {
	font-family: "Josefin Sans", sans-serif;
	text-decoration: none;
	color: #fff;
	background: #01015C;
	text-align: right;
	padding: 12px 20px;
	display: none;
}

/*Hide checkbox*/
#nav input[type=checkbox]{
    display: none;
}

/*Show menu when invisible checkbox is checked*/
#nav input[type=checkbox]:checked ~ #menu{
    display: block;
}


/*Responsive Styles*/

@media screen and (max-width : 960px){
	/*Make dropdown links appear inline*/
	#nav ul {
		position: static;
		display: none;
	}
	/*Create vertical spacing*/
	#nav li {
		margin-bottom: 0px;
	}
	/*Make all menu links full width*/
	#nav ul li, #nav li a {
		width: 100%;
	}
	/*Display 'show menu' link*/
	.show-menu {
		display:block;
	}

#nav li ul li a {left: 0;}

.logo {background-image: url('../img/logo_cripak2.png');}
  

#nav li a {
	background: silver;
	color: #fff;
}

/*Hover state for top level links*/
#nav li:hover a {
	background: gray;
	color: #fff;
}


}


/*==================================================
=                   Media Queries                 =
==================================================*/

/* Large desktop */
@media (min-width: 1200px) {
}
 
/* Portrait tablet to landscape and desktop */
@media (min-width: 980px) and (max-width: 1100px) {
#nav li a {min-width: 120px;}
}

/* Portrait tablet to landscape and desktop */
@media (min-width: 768px) and (max-width: 979px) {
.box_1 {width: 100%;}
.box_1b {width: 100%;}
.white {display: none;}
.box_0 p, .box_1 p, .box_1b p, .box_2 p {padding-left: 0px;}
#nav li a {min-width: 100px;}

.blank {display: none;}
}
 
/* Landscape phone to portrait tablet */
@media (max-width: 767px) {
.box_1 {width: 100%;}
.box_1b {width: 100%;}
.box_2 {width: 100%;}
#navigation {display: none;}
#intro h3 { font-size: 1.25em;}
.spacing p {padding-left: 0px; padding-top: 0px}
.spacing2 p {padding-right: 0px; padding-top: 0px}
.blank {display: none;}
}

/* Landscape phones and down */
@media (max-width: 480px) {
#navigation {display: none;}
.blank {display: none;}
}



/*==================================================
=                  Test Stop Motion                =
==================================================*/





