/*! HTML5 Boilerplate v5.2.0 | MIT License | https://html5boilerplate.com/ */

/*
 * What follows is the result of much research on cross-browser styling.
 * Credit left inline and big thanks to Nicolas Gallagher, Jonathan Neal,
 * Kroc Camen, and the H5BP dev community and team.
 */

/* ==========================================================================
   Base styles: opinionated defaults
   ========================================================================== */

html,
body {
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	font-family: 'Roboto', sans-serif;
	overflow: hidden;
}

/*
 * Remove text-shadow in selection highlight:
 * https://twitter.com/miketaylr/status/12228805301
 *
 * These selection rule sets have to be separate.
 * Customize the background color to match your design.
 */

::-moz-selection {
    background: #b3d4fc;
    text-shadow: none;
}

::selection {
    background: #b3d4fc;
    text-shadow: none;
}

/*
 * A better looking default horizontal rule
 */

hr {
    display: block;
    height: 1px;
    border: 0;
    border-top: 1px solid #ccc;
    margin: 1em 0;
    padding: 0;
}

/*
 * Remove the gap between audio, canvas, iframes,
 * images, videos and the bottom of their containers:
 * https://github.com/h5bp/html5-boilerplate/issues/440
 */

audio,
canvas,
iframe,
img,
svg,
video {
    vertical-align: middle;
}

/*
 * Remove default fieldset styles.
 */

fieldset {
    border: 0;
    margin: 0;
    padding: 0;
}

/*
 * Allow only vertical resizing of textareas.
 */

textarea {
    resize: vertical;
}

/* ==========================================================================
   Browser Upgrade Prompt
   ========================================================================== */

.browserupgrade {
    margin: 0.2em 0;
    background: #ccc;
    color: #000;
    padding: 0.2em 0;
}



/* ==========================================================================
   Helper classes
   ========================================================================== */

/*
 * Hide visually and from screen readers:
 */

.hidden {
    display: none !important;
}

/*
 * Hide only visually, but have it available for screen readers:
 * http://snook.ca/archives/html_and_css/hiding-content-for-accessibility
 */

.visuallyhidden {
    border: 0;
    clip: rect(0 0 0 0);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
}

/*
 * Extends the .visuallyhidden class to allow the element
 * to be focusable when navigated to via the keyboard:
 * https://www.drupal.org/node/897638
 */

.visuallyhidden.focusable:active,
.visuallyhidden.focusable:focus {
    clip: auto;
    height: auto;
    margin: 0;
    overflow: visible;
    position: static;
    width: auto;
}

/*
 * Hide visually and from screen readers, but maintain layout
 */

.invisible {
    visibility: hidden;
}

/*
 * Clearfix: contain floats
 *
 * For modern browsers
 * 1. The space content is one way to avoid an Opera bug when the
 *    `contenteditable` attribute is included anywhere else in the document.
 *    Otherwise it causes space to appear at the top and bottom of elements
 *    that receive the `clearfix` class.
 * 2. The use of `table` rather than `block` is only necessary if using
 *    `:before` to contain the top-margins of child elements.
 */

.clearfix:before,
.clearfix:after {
    content: " "; /* 1 */
    display: table; /* 2 */
}

.clearfix:after {
    clear: both;
}

/* ==========================================================================
   EXAMPLE Media Queries for Responsive Design.
   These examples override the primary ('mobile first') styles.
   Modify as content requires.
   ========================================================================== */

@media only screen and (min-width: 35em) {
    /* Style adjustments for viewports that meet the condition */
}

@media print,
       (-webkit-min-device-pixel-ratio: 1.25),
       (min-resolution: 1.25dppx),
       (min-resolution: 120dpi) {
    /* Style adjustments for high resolution devices */
}

/* ==========================================================================
   Print styles.
   Inlined to avoid the additional HTTP request:
   http://www.phpied.com/delay-loading-your-print-css/
   ========================================================================== */

@media print {
    *,
    *:before,
    *:after {
        background: transparent !important;
        color: #000 !important; /* Black prints faster:
                                   http://www.sanbeiji.com/archives/953 */
        box-shadow: none !important;
        text-shadow: none !important;
    }

    a,
    a:visited {
        text-decoration: underline;
    }

    a[href]:after {
        content: " (" attr(href) ")";
    }

    abbr[title]:after {
        content: " (" attr(title) ")";
    }

    /*
     * Don't show links that are fragment identifiers,
     * or use the `javascript:` pseudo protocol
     */

    a[href^="#"]:after,
    a[href^="javascript:"]:after {
        content: "";
    }

    pre,
    blockquote {
        border: 1px solid #999;
        page-break-inside: avoid;
    }

    /*
     * Printing Tables:
     * http://css-discuss.incutio.com/wiki/Printing_Tables
     */

    thead {
        display: table-header-group;
    }

    tr,
    img {
        page-break-inside: avoid;
    }

    img {
        max-width: 100% !important;
    }

    p,
    h2,
    h3 {
        orphans: 3;
        widows: 3;
    }

    h2,
    h3 {
        page-break-after: avoid;
    }
}

body, html {
	height: 100%;
	width: 100%;
}

body {
	background: url(http://www.pamali.it/wp-includes/project/img/pamali-project.jpg) center center no-repeat;
	background-size: cover;
}

#container {
	height: 100%;
	width: 100%;
	background: url(http://www.pamali.it/wp-includes/project/img/pamali-project.jpg) center center no-repeat;
	background-size: cover;
}

.video-wrapper {
	top: 0;
	left: 0;
	position: absolute;
	height: 100%;
	width: 100%;
	background: url(../img/pamali-project-wrappers.jpg) center center no-repeat;  
	background-size: cover;
	z-index: 1000;
	display: table;
	display: none;
}

.vimeo-wrapper {
	max-width: 1100px;
	position: relative;
	display: table-cell;
	vertical-align: middle;
	text-align: center;
}

.vimeo-standard {
	height: 619px;
	width: 1100px;
	display: inline-block;
}

iframe {
	width: 100%;
	height: 100%;
}

body.mobile .video-wrapper {
	display: none
}

@media (max-width:1360px) {
.vimeo-wrapper {
	max-width: 960px;
}

.vimeo-standard {
	height: 540px;
	width: 960px;
}
}


@media (max-width:1023px) {
.vimeo-standard {
	float: none;
	width: 90%;
	margin: 0 auto;
	padding-bottom: 10px;
	height: auto;
}

.vimeo-standard {
	height: 400px;
}
}

@media (max-width:640px) {
.vimeo-standard {
	height: 350px;
}
}

@media (max-width:480px) {
.vimeo-standard {
	height: 250px;
}
}

@media (max-height:800px) and (min-width:1025px) {
.vimeo-wrapper {
	max-width: 800px;
}

.vimeo-standard {
	height: 450px;
	width: 800px;
}
}

.clearfix:before,
.clearfix:after {
	content: " "; /* 1 */
	display: table; /* 2 */
}

.clearfix:after {
	clear: both;
}

img.logo {
	position: absolute;
	width: 340px;
	top: 13px;
	left: 50%;
	margin: 0 auto 0 -178px;
	z-index: 500;
}

.project-wrapper,
.contacts-wrapper,
.biopizza-wrapper,
.pamarte-wrapper {
	width: 100%;
	height: 100%;
	top: 0;
	position: fixed;
	background: url(../img/pamali-project-wrappers.jpg) center center no-repeat;  
	background-size: cover;
	z-index: -1;
	opacity: 0;
	-moz-transition: all 0.3s;
	-o-transition: all 0.3s;
	-webkit-transition: all 0.3s;
	transition: all 0.3s;
	overflow: scroll;
	display: table;
}

.wrapper-content-outer {
    display: table-cell;
    text-align: center;
    vertical-align: middle
}

.wrapper-content-inner {
	width: 705px;
	display: inline-block;
    vertical-align: top;
}

.wrapper-content-inner h1 {
	font-size: 30px;
	text-align: center;
	color: #FFF;
	letter-spacing: 3px;
}

.wrapper-content-inner h2 {
	font-size: 23px;
	line-height: 31px;
	color: #F36;
	font-weight: 300;
}

.wrapper-content-inner p {
	font-size: 23px;
	line-height: 31px;
	color: #FFF;
}

.wrapper-content-inner p.language {
	text-align: center;
	font-size: 18px;
	line-height: 0;
}

.wrapper-content-inner strong {
	font-weight: 900;
}

.wrapper-content-inner a  {
	color: #FFF;
}

.project-wrapper,
.biopizza-wrapper,
.contacts-wrapper,
.pamarte-wrapper {
	display: block;
}

.project-wrapper .wrapper-content-inner,
.biopizza-wrapper .wrapper-content-inner,
.contacts-wrapper .wrapper-content-inner,
.pamarte-wrapper .wrapper-content-inner {
	text-align: left;
	display: block;
	width: 700px;
	float: none;
	margin: 0 auto;
	padding: 100px 0;
	vertical-align: auto;
}

.contacts-wrapper .wrapper-content-inner {
	text-align: center;
}

.show-overlay {
	opacity: 1;
	z-index: 1000;
}

p.alemans {
	width: 320px;
	position: absolute;
	text-align: center;
	bottom: 25px;
	left: 50%;
	margin-left: -140px;
	color: #CCC;
	font-size: 14px;
}

p.alemans a {
	color: #CCC;
}

p.alemans a:hover {
	color: #F36;
}

.alemans-logo {
	position: absolute;
	display: inline-block;
	width: 51px;
	height: 70px;
	margin: -40px 0 0 -61px;
	background-image: url(../img/alemans-logo-footer.svg);
	background-repeat: no-repeat;
}

/* Close Button
================================================== */
.close-wrapper,
.close-video-wrapper {
	width: 80px;
	height: 80px;
	position: fixed;
	margin: 0;
	padding: 0;
	right: 35px;
	top: 35px;
	border: none;
	background: url(../img/close-wrapper.svg) no-repeat center center;
	text-indent: 200%;
	color: transparent;
	outline: none;
	z-index: 1000;
	-webkit-transition: all 0.2s;
	transition: all 0.2s;
	cursor: pointer;	 
}

.close-wrapper:after,
.close-video-wrapper:after {
	display: block;
	content: 'CLOSE';
	font-family: Arial, Helvetica, sans-serif;
	letter-spacing: 2px;
	font-size: 14px;
	color: #fff;
	margin: 23px 0 0 -148Px;
	position: absolute;
}

.close-wrapper:hover,
.close-video-wrapper:hover {
	-webkit-transform: scale(0.8);
	-moz-transition: scale(0.8);
	-o-transition: scale(0.8);
	transition: scale(0.8);
}


/* Social Icons
================================================== */
.social-icons {
	width: 282px;
	float: none;
	margin: 50px auto 0 auto;
}

.social-item {
	width: 94px;
	float: left;
	position: relative;
}

.social-item img {
	width: 94px;
}

.hover-effect {
	display: none;
	position: absolute;
	top: 0;
	left: 0;
	z-index: 100;
}


/* Navigation
================================================== */
nav {
	position: absolute;
	left: 0;
	width: 100%;
	text-align: center;
	z-index: 1000;
	top: 30%;
	z-index: 500;
}

.nav-item {
	display: inline-block;
	position: relative;
	font-size: 1.3rem;
	height: 2rem;
	text-transform: uppercase;
	color: #FFF;
	margin: 1rem 7rem;
	cursor: pointer;
	overflow: hidden;
	font-weight: 900;
	letter-spacing: 3px;
	-webkit-transition: all 0.3s;
	-moz-transition: all 0.3s;
	-ms-transition: all 0.3s;
	-o-transition: all 0.3s;
	transition: all 0.3s;
	text-shadow: 0 0 7px rgba(0, 0, 1, .75);
}

nav.project-nav {
	bottom: inherit;
	top: 55%;
	width: 340px;
	margin: 0 0 0 -170px;
	left: 50%;
}

nav.wrapper-nav {
	position: relative;
	left: auto;
	top: auto;
	margin: 50px auto 0 auto;
}

nav.project-nav .nav-item {
	border: 2px solid #FFF;
	padding: 22px 30px 18px 30px;
	margin: 0;
	width: 275px;
	border-radius: 5px;
	background: rgba(0, 0, 0, 0.45);
	cursor: pointer !important;
	text-shadow: none;
}

nav.wrapper-nav .nav-item {
	font-size: 1.4rem;
	padding: 22px 30px 18px 28px;
}

.nav-item:hover {
	color: #F36;
}

nav.project-nav .nav-item:hover {
	border: 2px solid #F36;
	background: #F36;
	color: #222;
}

.play-desktop-video,
.play-mobile-video {
	bottom: 25px;
	width: 125px;
	height: 125px;
	margin: 0 0 0 -62px;
	right: 25px;
	position: absolute;
	z-index: 1;
	-webkit-transition: all 0.2s;
	transition: all 0.2s;
	cursor: pointer;
}

.play-desktop-video:hover,
.play-mobile-video:hover {
	-webkit-transform: scale(0.8);
	-moz-transition: scale(0.8);
	-o-transition: scale(0.8);
	transition: scale(0.8);
}

.play-mobile-video {
	display: none;
}

@-webkit-keyframes heartbeat {
  0% {
    -moz-transform: scale(1);
    -ms-transform: scale(1);
    -webkit-transform: scale(1);
    transform: scale(1);
  }
  14% {
    -moz-transform: scale(1.05);
    -ms-transform: scale(1.05);
    -webkit-transform: scale(1.05);
    transform: scale(1.05);
  }
  28% {
    -moz-transform: scale(1);
    -ms-transform: scale(1);
    -webkit-transform: scale(1);
    transform: scale(1);
  }
  42% {
    -moz-transform: scale(1.05);
    -ms-transform: scale(1.05);
    -webkit-transform: scale(1.05);
    transform: scale(1.05);
  }
  70% {
    -moz-transform: scale(1);
    -ms-transform: scale(1);
    -webkit-transform: scale(1);
    transform: scale(1);
  }
}
@-moz-keyframes heartbeat {
  0% {
    -moz-transform: scale(1);
    -ms-transform: scale(1);
    -webkit-transform: scale(1);
    transform: scale(1);
  }
  14% {
    -moz-transform: scale(1.05);
    -ms-transform: scale(1.05);
    -webkit-transform: scale(1.05);
    transform: scale(1.05);
  }
  28% {
    -moz-transform: scale(1);
    -ms-transform: scale(1);
    -webkit-transform: scale(1);
    transform: scale(1);
  }
  42% {
    -moz-transform: scale(1.05);
    -ms-transform: scale(1.05);
    -webkit-transform: scale(1.05);
    transform: scale(1.05);
  }
  70% {
    -moz-transform: scale(1);
    -ms-transform: scale(1);
    -webkit-transform: scale(1);
    transform: scale(1);
  }
}
@-o-keyframes heartbeat {
  0% {
    -moz-transform: scale(1);
    -ms-transform: scale(1);
    -webkit-transform: scale(1);
    transform: scale(1);
  }
  14% {
    -moz-transform: scale(1.05);
    -ms-transform: scale(1.05);
    -webkit-transform: scale(1.05);
    transform: scale(1.05);
  }
  28% {
    -moz-transform: scale(1);
    -ms-transform: scale(1);
    -webkit-transform: scale(1);
    transform: scale(1);
  }
  42% {
    -moz-transform: scale(1.05);
    -ms-transform: scale(1.05);
    -webkit-transform: scale(1.05);
    transform: scale(1.05);
  }
  70% {
    -moz-transform: scale(1);
    -ms-transform: scale(1);
    -webkit-transform: scale(1);
    transform: scale(1);
  }
}
@keyframes heartbeat {
  0% {
    -moz-transform: scale(1);
    -ms-transform: scale(1);
    -webkit-transform: scale(1);
    transform: scale(1);
  }
  14% {
    -moz-transform: scale(1.05);
    -ms-transform: scale(1.05);
    -webkit-transform: scale(1.05);
    transform: scale(1.05);
  }
  28% {
    -moz-transform: scale(1);
    -ms-transform: scale(1);
    -webkit-transform: scale(1);
    transform: scale(1);
  }
  42% {
    -moz-transform: scale(1.05);
    -ms-transform: scale(1.05);
    -webkit-transform: scale(1.05);
    transform: scale(1.05);
  }
  70% {
    -moz-transform: scale(1);
    -ms-transform: scale(1);
    -webkit-transform: scale(1);
    transform: scale(1);
  }
}

.heartbeat {
	-webkit-animation: heartbeat 1300ms ease 0s infinite normal;
  -khtml-animation: heartbeat 1300ms ease 0s infinite normal;
  -moz-animation: heartbeat 1300ms ease 0s infinite normal;
  -ms-animation: heartbeat 1300ms ease 0s infinite normal;
  -o-animation: heartbeat 1300ms ease 0s infinite normal;
  animation: heartbeat 1300ms ease 0s infinite normal;
}

@media screen and (max-width: 1460px) {
.secondary {
	margin: 1rem 5rem;
}
}

@media screen and (max-width: 1200px) {
.secondary {
	font-size: 1.3rem;
	margin: 1rem 4rem;
}
}

@media screen and (max-width: 1023px) {
.secondary {
	font-size: 1.1rem;
	margin: 1rem 1.5rem;
}
}

@media (max-width:1024px) {
.play-desktop-video,
.play-mobile-video {
	bottom: 25px;
	width: 125px;
	height: 125px;
	margin-left:-62px;
	right: auto;
	left: 50%;
	position: absolute;
	z-index: 1;
}
}

@media (max-width:1023px) {
.wrapper-content-inner,
.project-wrapper .wrapper-content-inner,
.biopizza-wrapper .wrapper-content-inner,
.contacts-wrapper .wrapper-content-inner,
.pamarte-wrapper .wrapper-content-inner {
	width: 90%;
	display: block;
	float: none;
	margin: 0 auto;
	padding: 100px 0;
}

.wrapper-content-outer {
    display: block;
	float: none;
	margin: 0 auto;
	overflow: scroll;
	height: 100%;
}

.wrapper-content-inner h2,
.wrapper-content-inner p {
	font-size: 16px;
	line-height: 24px;
}

nav {
	top: 30%;
}

nav.project-nav {
	top: 55%;
}

nav.project-nav .nav-item {
	padding: 18px 20px 8px 20px;
	width: 170px;
	font-size: 0.75rem;
	height: 1.5rem;
}

nav.wrapper-nav .nav-item {
	font-size: 0.9rem;
	height: 1.3rem;
}

.social-icons {
	margin: 25px auto 0 auto;
}

.close-wrapper,
.close-video-wrapper {
	right: 50%;
	margin-right: -40px;
	top: 15px;
}
}

@media screen and (max-width: 320px) {
img.logo {
	width: 200px;
	margin: 0 auto 0 -100px;
}

nav {
	top: 27%;
}

nav.project-nav {
	top: 60%;
}

.secondary {
	font-size: 0.9rem;
}

nav.project-nav {
	width: 264px;
	margin: 0 0 0 -132px;
}

nav.wrapper-nav {
	width: 264px;
	margin: 0 auto;
	position: relative;
	float: none;
}
}