/* ALL THE PAGES */

/* HTML5 Browser Support */

header,
section,
footer,
aside,
nav,
main,
article,
figure {
	display: block;
}

/* Body */

body {
	margin: 0;
    padding: 0;
	overflow-x: hidden;
	font-family: 'Lato', sans-serif;
	font-size: 1em;
	height: 100%;
    background-attachment: fixed;
    background-position: 50% 50%;
    background-repeat: no-repeat;
    background-size: cover;
}

* {
    box-sizing: border-box;
}

/* Heading */

h1 {
	margin: 20px 0;
	color: #222222;
    font-size: 1.5em;
	font-weight: 700;
	line-height: 1.4em;
	letter-spacing: 0.1em;
}

h2 {
	margin: 20px 0;
	color: #222222;
    font-size: 1.2em;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

h3 {
	margin: 20px 0;
	color: #222222;
    font-size: 0.9em;
	font-weight: 900;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

/* Paragraph */

p {
	margin: 20px 0;
	color: #767676;
	font-size: 0.9em;
	font-weight: 400;
	line-height: 1.6em;
	letter-spacing: 0.05em;
	text-align: justify;
}

/* Link */

a {
	color: #222222;
	font-weight: 700;
	border: 0;
}

main p a:-webkit-any-link:not(button),
main p a:-webkit-any-link:not(arrow-link),
main li a:-webkit-any-link {
	color: #222222;
	border-bottom: 1px solid #222222;
	text-decoration: none;
	-webkit-transition: all 0.3s ease-in-out 0s;
    transition: all 0.3s ease-in-out 0s;
}

main p a:-webkit-any-link:not(button):hover,
main p a:-webkit-any-link:not(arrow-link):hover {
	color: #004789;
	border-bottom-color: #004789;
}

a.text-link {
	position: relative;
	padding-bottom: 0.6em;
	color: #222222;
	font-size: 0.7em;
	font-weight: 900;
	line-height: 1.6em;
	letter-spacing: 0.2em;
	text-align: justify;
	text-decoration: none;
	border-bottom: 1px solid #222222;
	-webkit-transition: all 0.3s ease-in-out 0s;
    transition: all 0.3s ease-in-out 0s;
}

a.text-link:hover {
	color: #004789;
	border-bottom-color: #004789;
}

/* List */

main ul {
	-webkit-margin-before: 20px;
    -webkit-margin-after: 20px;
    -webkit-padding-start: 1em;
}

main ul li {
	color: #767676;
	font-size: 0.9em;
	font-weight: 400;
	line-height: 2em;
	letter-spacing: 0.05em;
	text-align: justify;
}

/* Button*/

a.button {
	display: inline-block;
	margin-top: 2.2em;
	padding: 1.4em 2em;
	font-size: 0.8em;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-align: center;
	color: #ffffff;
	background-color: #2f72b9;
	text-decoration: none;
	-webkit-transition: all 0.3s ease-in-out 0s;
    transition: all 0.3s ease-in-out 0s;
}

a.button:hover {
	background-color: #004789;
}

/* Image */

img {
    max-width: 100%;
    height: auto;
}

/* Column Layout */

[class*="col-"] {
    float: left;
    padding: 0 20px;
}

.col-1 {
	width: 8.33%;
}

.col-2 {
	width: 16.66%;
}

.col-3 {
	width: 25%;
}

.col-4 {
	width: 33.33%;
}

.col-5 {
	width: 41.66%;
}

.col-6 {
	width: 50%;
}

.col-7 {
	width: 58.33%;
}

.col-8 {
	width: 66.66%;
}

.col-9 {
	width: 75%;
}

.col-10 {
	width: 83.33%;
}

.col-11 {
	width: 91.66%;
}

.col-12 {
	width: 100%;
}

.clearfix::after {
    content: "";
	display: block;
	clear: both;
}

/* Navigation Bar */

nav {
	position: fixed;
	z-index: 1;
	top: 0;
	left: 0;
	width: 100%;
	height: 8vh;
	padding: 0 -webkit-calc(10% + 20px);
	padding: 0 calc(10% + 20px);
	background-color: rgba(34,34,34,0.8);
}

ul#navbar {
    float: right;
	margin: 0;
    padding: 0;
	list-style-type: none;
}

ul#navbar li {
    float: left;
	cursor: pointer;
}

ul#navbar > li > a {
	position: relative;
    display: inline-block;
	padding: 0 1.4em;
    color: #ffffff;
	font-size: 0.7em;
	font-weight: 700;
	line-height: 8vh;
	letter-spacing: 0.2em;
    text-decoration: none;
	-webkit-transition: all 0.3s ease-in-out 0s;
    transition: all 0.3s ease-in-out 0s;
}

ul#navbar li:last-child a {
	padding-right: 0;
}

ul#navbar > li > a.active,
ul#navbar > li > a:hover {
    color: #2f72b9;
}

ul#navbar > li > a:before {
	content: "";
	position: absolute;
	bottom: 2.4vh;
    left: 1.4em;
	width: -webkit-calc(100% - 2.8em);
	width: calc(100% - 2.8em);
    height: 2px;
	background-color: #2f72b9;
    visibility: hidden;
    -webkit-transform: scaleX(0);
    transform: scaleX(0);
	-webkit-transform-origin: 0%;
	transform-origin: 0%;
    -webkit-transition: all 0.3s ease-in-out 0s;
    transition: all 0.3s ease-in-out 0s;
}

ul#navbar > li:last-child > a:before {
	width: -webkit-calc(100% - 1.4em);
	width: calc(100% - 1.4em);
}

ul#navbar > li > a.active:before,
ul#navbar > li > a:hover:before {
	visibility: visible;
    -webkit-transform: scaleX(1);
    transform: scaleX(1);
}

/* Dropdown Menu */

div#dropdown-content {
    position: absolute;
	top: 100%;
	display: none;
	padding: 0.4em 0;
    background-color: rgba(34,34,34,0.8);
}

div#dropdown-content a {
	display: block;
    padding: 0.8em 1.4em;
	color: #ffffff;
	font-size: 0.7em;
	font-weight: 700;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	text-decoration: none;
}

li#dropdown:hover div#dropdown-content {
    display: block;
}

div#dropdown-content a.active,
div#dropdown-content a:hover {
	color: #2f72b9;
}

li#dropdown:hover > a {
    color: #2f72b9 ! important;
}

li#dropdown:hover > a:before {
	visibility: visible ! important;
    -webkit-transform: scaleX(1) ! important;
    transform: scaleX(1) ! important;
}

/* Logo */

img#logo {
	float: left;
	height: 100%;
	padding: 3vh 0;
}

/* Mobile Menu */

div#mobileMenu {
	display: none;
    position: fixed;
    top: 1em;
    right: 30px;
	width: 1.7em;
}

#hamburger {
    -webkit-transform: rotate(0deg);
    -moz-transform: rotate(0deg);
    transform: rotate(0deg);
    -webkit-transition: 0.3s ease-in-out;
    -moz-transition: 0.3s ease-in-out;
    transition: 0.3s ease-in-out;
    cursor: pointer;
}

#hamburger span {
    position: absolute;
	left: 0;
	width: 100%;
    height: 0.2em;
    background: #ffffff;
    -webkit-transform: rotate(0deg);
    -moz-transform: rotate(0deg);
    transform: rotate(0deg);
    -webkit-transition: 0.3s ease-in-out;
    -moz-transition: 0.3s ease-in-out;
    transition: 0.3s ease-in-out;
}

#hamburger span:nth-child(1) {
    top: 0;
    -webkit-transform-origin: left center;
    -moz-transform-origin: left center;
    transform-origin: left center;
}

#hamburger span:nth-child(2) {
    top: 0.6em;
    -webkit-transform-origin: left center;
    -moz-transform-origin: left center;
	transform-origin: left center;
}

#hamburger span:nth-child(3) {
    top: 1.2em;
    -webkit-transform-origin: left center;
    -moz-transform-origin: left center;
    transform-origin: left center;
}

#hamburger.open span:nth-child(1) {
	top: 0;
    left: 0;
    -webkit-transform: rotate(45deg);
    -moz-transform: rotate(45deg);
    transform: rotate(45deg);
}

#hamburger.open span:nth-child(2) {
    width: 0%;
    opacity: 0;
}

#hamburger.open span:nth-child(3) {
	top: 1.2em;
    left: 0;
    -webkit-transform: rotate(-45deg);
    -moz-transform: rotate(-45deg);
    transform: rotate(-45deg);
}

/* Header */

header {
	position: relative;
	width: 100%;
	height: 68vh;
	padding: 0 -webkit-calc(10% + 20px);
	padding: 0 calc(10% + 20px);
	color:#ffffff;
	background-color: rgba(0,0,0,0.2);
}

/* Intro */

div.intro {
	position: relative;
	top: 50%;
	-webkit-transform: translateY(-50%);
	transform: translateY(-50%);
}

span.heading {
	font-size: 2.1em;
	font-weight: 700;
	line-height: 1.3em;
	letter-spacing: 0.2em;
}

span.breakLine {
	display: block;
	line-height: 0em;
}

span.subheading,
span.breadcrump {
	font-size: 0.9em;
	font-weight: 500;
	line-height: 2.4em;
	letter-spacing: 0.1em;
	color: rgba(255,255,255,0.8);
}

/* Main */

main {
	background-color: #ffffff;
}

/* Section 1 */

section.row-1 {
	padding: 4% 10% 4% 10%;
}

/* Rectangle */

div.rectangle {
	position: relative;
	outline: 1px solid #c4c4c4;
	-webkit-transition: outline-color 0.3s ease-in-out 0s;
	transition: outline-color 0.3s ease-in-out 0s;
	cursor: pointer;
}

div.rectangle.moving {
    height: 100%;
}

div.rectangle.static {
	width: -webkit-calc((100% - 120px) / 3);
	width: calc((100% - 120px) / 3);
    height: 16vw;
	margin: 20px;
	padding: 0;
}

div.rectangle:hover {
	outline-color: #222222;
}

div.icon {
	position: absolute;
	bottom: 100px;
	left: 40px;
	width: 3em;
	height: 3em;
	background-color: #2f72b9;
	background-size: cover;
	-webkit-transition: all 0.3s ease-in-out 0s;
    transition: all 0.3s ease-in-out 0s;
}

div.rectangle:hover > div.icon{
	background-color: #004789;
}

div.rectangle h3 {
	position: absolute;
	bottom: 20px;
	padding: 0 40px;
	line-height: 1.4em;
}

div.rectangle h3 span.breakLine {
	display: inline;
}

/* Form */

div.form label {
	font-size: 0.9em;
    font-weight: 700;
	letter-spacing: 0.05em;
	color: #222222;
}

div.form input:focus,
div.form textarea:focus {
    outline: none;
}

div.form input[type=text],
div.form textarea {
    width: 100%;
	height: 2.8em;
	margin: 8px 0 16px 0;
    padding-left: 1em;
    font-family: Lato, sans-serif;
    font-size: 0.9em;
    font-weight: 400;
	line-height: 2.6em;
    color: #222222;
	-webkit-border-radius: 0;
	-moz-border-radius: 0;
	border-radius: 0;
	overflow: auto;
	resize: none;
	-webkit-appearance: none;
	-moz-appearance: none;
}

div.form input[type=checkbox] {
	margin: 3px 6px 3px 0;
}

div.form span.check-text,
div.form a {
    line-height: 1.6em;
    letter-spacing: 0.05em;
	color: #767676;
}

div.form a {
	text-decoration: none;
	border-bottom: 1px solid rgba(255,255,255,0.8) ! important;
}

div.form span.check-text{
	font-size: 0.9em;
}

div.form input[type=submit] {
	display: block;
	margin: 2.2em 0 20px 0;
	padding: 1.4em 2em;
	font-family: 'Lato', sans-serif;
    font-size: 0.8em;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-align: center;
    color: rgba(255,255,255,0.8);
    background-color: #004789;
    border: none;
	-webkit-border-radius: 0;
	-moz-border-radius: 0;
	border-radius: 0;
    cursor: pointer;
	-webkit-transition: all 0.3s ease-in-out 0s;
	transition: all 0.3s ease-in-out 0s;
	-webkit-appearance: none;
	-moz-appearance: none;
}

div.form input[type=submit]:hover {
	color: rgba(255,255,255,1);
}

/* Service List */

div.service-list {
	width: -webkit-calc(33.3% - 40px);
	width: calc(33.3% - 40px);
	margin: 20px 20px 0 20px;
	padding: 2% 3%;
	background-color: #2f72b9;
}

div.service-list h2 {
	margin-bottom: 0;
	padding-bottom: 20px;
	color: #ffffff;
	border-bottom: 2px solid #ffffff;
}

div.service-list a {
	position: relative;
	display: block;
	padding: 1.4em 0.8em 1.4em 0em;
	font-size: 0.9em;
    letter-spacing: 0.05em;
	color: #ffffff;
	border-bottom: 1px solid rgba(255,255,255,0.6);
	text-decoration: none;
}

div.service-list a i.arrow {
	position: absolute;
	top: 50%;
	right: 0;
	margin-top: -0.4em;
	float: right;
    padding: 0.3em;
	border: solid rgba(255,255,255,0.8);
    border-width: 0 3px 3px 0;
	-webkit-transition: all 0.3s ease-in-out 0s;
	transition: all 0.3s ease-in-out 0s;
}

div.service-list a i.arrow.right {
	-webkit-transform: rotate(-45deg);
    transform: rotate(-45deg);
}

div.service-list a:last-child {
	border-bottom: none;
}

div.service-list a:hover i.arrow {
	border-color: rgba(255,255,255,1);
}

/* Footer */

footer section h3 {
	color: #004789;
}

footer section p,
footer section a {
	color: rgba(255,255,255,0.8);
	font-weight: 400;
	text-decoration: none;
	-webkit-transition: all 0.3s ease-in-out 0s;
    transition: all 0.3s ease-in-out 0s;
}

footer section a:hover {
	color: rgba(255,255,255,1);
	border-bottom: 1px solid #ffffff;
}

section#footer-1 {
	padding: 3% 10%;
	background-color: #2f72b9;
}

section#footer-1 img#footer-logo {
	float: left;
	width: auto;
	padding: 20px 0 20px 20px;
}

section#footer-1 div.col-4 {
	float: right;
	padding: 0;
	width: 50%;
}

section#footer-1 p {
	line-height: 2.2em;
}

section#footer-2 {
	padding: 0 10%;
	background-color: #004789;
}

section#footer-2 p {
	font-size: 0.7em;
}

section#footer-2 div:nth-child(2) p {
	text-align: right;
}

/* HOMEPAGE */

/* Body */

#homepage {
	background-image: url("../img/safelab-chi-siamo.jpg");
}

/* Header */

#homepage header {
	height: 92vh;
}

/* Scroll Down */

div#scroll a {
    position: absolute;
	bottom: 4em;
	left: 50%;
	margin-left: -1em;
	width: 2em;
	height: 2em;
    border-right: 5px solid #ffffff;
	border-bottom: 5px solid #ffffff;
	-webkit-border-radius: 0 0 0.5em 0;
	-moz-border-radius: 0 0 0.5em 0;
	border-radius: 0 0 0.5em 0;
	text-decoration: none;
	-webkit-transition: border-color 0.3s ease-in-out 0s;
	transition: border-color 0.3s ease-in-out 0s;
	-webkit-animation: scrolling 1.5s infinite;
    animation: scrolling 1.5s infinite;
}

div#scroll a:hover {
    border-color: #2f72b9;
}

@-webkit-keyframes scrolling {
    0% {
        -webkit-transform: rotate(45deg) translate(0,0);
		filter: alpha(opacity=0);
        opacity: 0;
    }
    50% {
		filter: alpha(opacity=1);
        opacity: 1;
    }
    100% {
        -webkit-transform: rotate(45deg) translate(1em,1em);
		filter: alpha(opacity=0);
        opacity: 0;
    }
}

@keyframes scrolling {
    0% {
        transform: rotate(45deg) translate(0,0);
		filter: alpha(opacity=0);
        opacity: 0;
    }
    50% {
		filter: alpha(opacity=1);
        opacity: 1;
    }
    100% {
        transform: rotate(45deg) translate(1em,1em);
		filter: alpha(opacity=0);
        opacity: 0;
    }
}

/* Main */

#homepage main {
	padding-top: 8vh;
}

/* Section 1 */

#homepage section.row-1 {
	padding-top: 0;
}

/* Section 2 */

#homepage section.row-2 {
	position: relative;
	padding: 4% 10%;
	background-color: #f7f7f7;
}

#homepage section.row-2 div.col-8 {
	padding-bottom: 20px;
}

#homepage section.row-2 div.col-8 p {
	margin: 0;
	color: #222222;
}

div.target {
	padding-top: 20px;
}

#homepage section.row-2 div.target:nth-child(even) {
	clear: left;
}

div.target table tr td:nth-child(1) {
	width: 20%;
}

div.target img {
	-webkit-filter: grayscale(100%);
    filter: grayscale(100%);
	filter: opacity(=0.4);
	opacity: 0.4;
}

div.target p {
	margin: 0;
	padding-left: 3%;
	color: #222222;
	font-weight: 700;
	text-align: left;
	text-transform: uppercase;
}

#homepage section.row-2 a.button {
	float: left;
	clear: left;
	margin: 4% 0 0 20px;
}

img#safety-helmet {
	position: absolute;
	top: -7%;
    left: 63%;
    height: 125%;
	pointer-events: none;
}

/* Section 3 */

#homepage section.row-3 {
	padding: 2% 10%;
	background-color: #004789;
}

#homepage section.row-3 div.col-8 {
	float: none;
	margin: 0 auto;
}

#homepage section.row-3 table td:nth-child(1) {
	width: 66.6%;
	padding-right: 20px;
}

#homepage section.row-3 table td:nth-child(2) {
	width: 33.3%;
	text-align: center;
}

#homepage section.row-3 table td h2,
#homepage section.row-3 table td p {
	color: #ffffff;
}

#homepage section.row-3 table td p {
	font-weight: 300;
}

#homepage section.row-3 a.button {
	margin: 0;
	color: #ffffff;
	background-color: #004789;
	border: 1px solid #ffffff;
	-webkit-transition: all 0.3s ease-in-out 0s;
    transition: all 0.3s ease-in-out 0s;
}

#homepage section.row-3 a.button:hover {
	color: #004789;
	background-color: #ffffff;
}

/* Section 4 */

#homepage section.row-4 {
	padding: 4% -webkit-calc(10% + 20px);
	padding: 4% calc(10% + 20px);
	overflow: hidden;
}

div#service-gallery {
	position: relative;
	height: 16vw;
}

div.owl-carousel {
	z-index: 0;

}
div.owl-carousel div.owl-stage-outer {
	overflow: visible;
}

div.owl-item {
    height: 16vw;
	outline: 1px solid #c4c4c4;
	-webkit-transition: outline-color 0.3s ease-in-out 0s;
	transition: outline-color 0.3s ease-in-out 0s;
	cursor: pointer;
}

div.owl-item:hover {
	outline-color: #222222;
}

#homepage div.owl-stage div.owl-item:nth-child(6) div.icon,
#homepage div.owl-stage div.owl-item:nth-child(15) div.icon {
	background-image: url("../img/safelab-service-1.png");
}

#homepage div.owl-stage div.owl-item:nth-child(7) div.icon,
#homepage div.owl-stage div.owl-item:nth-child(16) div.icon {
	background-image: url("../img/safelab-service-5.png");
}

#homepage div.owl-stage div.owl-item:nth-child(8) div.icon,
#homepage div.owl-stage div.owl-item:nth-child(17) div.icon {
	background-image: url("../img/safelab-service-2.png");
}

#homepage div.owl-stage div.owl-item:nth-child(9) div.icon,
#homepage div.owl-stage div.owl-item:nth-child(18) div.icon {
	background-image: url("../img/safelab-service-3.png");
}

#homepage div.owl-stage div.owl-item:nth-child(1) div.icon,
#homepage div.owl-stage div.owl-item:nth-child(10) div.icon {
	background-image: url("../img/safelab-service-6.png");
}

#homepage div.owl-stage div.owl-item:nth-child(2) div.icon,
#homepage div.owl-stage div.owl-item:nth-child(11) div.icon {
	background-image: url("../img/safelab-service-7.png");
}

#homepage div.owl-stage div.owl-item:nth-child(3) div.icon,
#homepage div.owl-stage div.owl-item:nth-child(12) div.icon {
	background-image: url("../img/safelab-service-9.png");
}

#homepage div.owl-stage div.owl-item:nth-child(4) div.icon,
#homepage div.owl-stage div.owl-item:nth-child(13) div.icon {
	background-image: url("../img/safelab-service-10.png");
}

#homepage div.owl-stage div.owl-item:nth-child(5) div.icon,
#homepage div.owl-stage div.owl-item:nth-child(14) div.icon {
	background-image: url("../img/safelab-service-11.png");
}

div.owl-item h3 {
	position: absolute;
	bottom: 20px;
	padding: 0 40px;
}

.owl-theme .owl-nav.disabled+.owl-dots {
	display: none;
}

/* Section 5 */

section#map {
	height: 400px;
}

/* SERVIZI */

/* Body */

#services {
	background-image: url("../img/safelab-servizi.jpg");
	background-position: 50% 140%;
}

/* Section 1 */

#services section.row-1 {
	padding-bottom: 0;
}

/* Section 2 */

#services section.row-2 {
	padding: -webkit-calc(4% - 20px) 10% 4% 10%;
	padding: calc(4% - 20px) 10% 4% 10%;
}

#services div.service {
	width: -webkit-calc((100% - 120px) / 3);
	width: calc((100% - 120px) / 3);
    height: 16vw;
	padding: 0;
	margin: 20px;
}

#services section.row-2 > a:nth-child(1) div.icon {
	background-image: url("../img/safelab-service-1.png");
}

#services section.row-2 > a:nth-child(2) div.icon {
	background-image: url("../img/safelab-service-5.png");
}

#services section.row-2 > a:nth-child(3) div.icon {
	background-image: url("../img/safelab-service-2.png");
}

#services section.row-2 > a:nth-child(4) div.icon {
	background-image: url("../img/safelab-service-3.png");
}

#services section.row-2 > a:nth-child(5) div.icon {
	background-image: url("../img/safelab-service-6.png");
}

#services section.row-2 > a:nth-child(6) div.icon {
	background-image: url("../img/safelab-service-7.png");
}

#services section.row-2 > a:nth-child(7) div.icon {
	background-image: url("../img/safelab-service-9.png");
}

#services section.row-2 > a:nth-child(8) div.icon {
	background-image: url("../img/safelab-service-10.png");
}

#services section.row-2 > a:nth-child(9) div.icon {
	background-image: url("../img/safelab-service-11.png");
}

/* SERVICE ITEM */

/* Body */

#service-1 {
	background-image: url("../img/safelab-rspp.jpg");
	background-position: 50% 80%;
}

#service-2 {
	background-image: url("../img/safelab-sistemi-gestione.jpg");
	background-position: 50% 110%;
}

#service-3 {
	background-image: url("../img/safelab-valutazione-rischi.jpg");
	background-position: 50% 100%;
}

#service-4 {
	background-image: url("../img/safelab-formazione.jpg");
}

#service-5 {
	background-image: url("../img/safelab-ambiente.jpg");
}

#service-6 {
	background-image: url("../img/safelab-prevenzione-incendi.jpg");
	background-position: 50% 140%;
}

#service-7 {
	background-image: url("../img/safelab-errore.jpg");
	background-position: 50% 100%;
}

#service-8 {
	background-image: url("../img/safelab-grazie.jpg");
	background-position: 50% 130%;
}

#service-9 {
	background-image: url("../img/safelab-privacy.jpg");
	background-position: 50% 100%;
}

/* Supplementary content */

div.supplementary-content {
	text-align: right;
}

/* Arrow */

.service-item i.arrow {
	display: inline-block;
	margin-right: 1em;
    padding: 0.2em;
	border: solid #222222;
    border-width: 0 2px 2px 0;
	-webkit-transition: all 0.3s ease-in-out 0s;
	transition: all 0.3s ease-in-out 0s;
}

.service-item i.right {
	-webkit-transform: rotate(-45deg);
    transform: rotate(-45deg);
}

.service-item i.left {
	-webkit-transform: rotate(135deg);
    transform: rotate(135deg);
}

.service-item i.arrow:hover {
	border-color: #004789;
}

/* Service Form */

div.service-form {
	width: -webkit-calc(33.3% - 40px);
	width: calc(33.3% - 40px);
	margin: 20px 20px 0 20px;
	padding: 2% 3%;
	background-color: #2f72b9;
}

div.service-form h2,
div.service-form p {
	color: #ffffff;
}

div.service-form label {
	color: #ffffff;
}

div.service-form label span {
	color: rgba(255,255,255,0.6);
}

div.service-form input[type=text],
div.service-form textarea {
    border: none;
}

div.service-form textarea {
	height: 15.6em;
}

div.service-form span.check-text,
div.service-form a {
	color: rgba(255,255,255,0.8);
}

div.service-form input[type=submit] {
	margin: 2.2em auto 20px auto;
}

/* PORTFOLIO */

/* Body */

#portfolio {
	background-image: url("../img/safelab-portfolio.jpg");
	background-position: 50% 140%;
}

/* List */

#portfolio main ul li {
	float: left;
	width: 50%;
}

/* Section 2 */

#portfolio section.row-2 {
	padding: 4% 10%;
	background-image: url("../img/handshake.jpg");
	background-color: #f7f7f7;
    background-position: 100% 0%;
    background-repeat: no-repeat;
    background-size: contain;
}

div#portfolio-gallery img {
	width: -webkit-calc((80% - 80px) / 8);
    width: calc((80% - 80px) / 8);
    margin: 0 20px;
}

/* CONTATTI */

/* Body */

#contacts {
	background-color: #f7f7f7;
}

/* Header */

div#map {
	position: absolute;
	top: 0;
	left: 0;
	height: 68vh;
	width: 100%;
}

#contacts div.intro {
	pointer-events: none;
}

#contacts span.breadcrump,
#contacts span.heading {
	color: #222222;
}

/* Section 1 */

#contacts section.row-1 {
	padding-bottom: 0;
}

#contacts section.row-1 > a:nth-child(1) div.icon {
	background-image: url("../img/safelab-phone.png");
}

#contacts section.row-1 > a:nth-child(2) div.icon {
	background-image: url("../img/safelab-mail.png");
}

#contacts section.row-1 > a:nth-child(3) div.icon {
	background-image: url("../img/safelab-address.png");
}

/* Section 2 */

#contacts section.row-2 {
	padding: -webkit-calc(4% - 40px) 10% 4% 10%;
	padding: calc(4% - 40px) 10% 4% 10%;
}

/* Contact Form */

div#contact-form {
	margin-top: 20px;
}

div#contact-form form div.col-6:nth-child(odd) {
	padding-left: 0px;
}

div#contact-form form div.col-6:nth-child(even) {
	padding-right: 0px;
}

div#contact-form label {
	color: #222222;
}

div#contact-form label span {
	color: rgba(34,34,34,0.6);
}

div#contact-form input[type=text],
div#contact-form textarea {
    border: 1px solid #c4c4c4;
	background-color: #f7f7f7;
}

div#contact-form textarea {
	height: 10.4em;
}

div#contact-form span.check-text,
div#contact-form a {
	color: #767676;
}

div#contact-form a {
	border-bottom: 1px solid #767676 ! important;
}

/* Section 3 */

#contacts section.row-3 {
	padding: 4% 10%;
	background-color: #f7f7f7;
	background-image: url("../img/man-holding-safety-helmet.jpg");
	background-position: 100% 0%;
    background-repeat: no-repeat;
    background-size: contain;
}

#contacts section.row-3 div.team {
	margin: 20px 0;
}

#contacts section.row-3 div.team:nth-child(2),
#contacts section.row-3 div.team:nth-child(4) {
	clear: left;
}

#contacts div.team h3 span {
	font-size: 0.7em;
	font-weight: 400;
}

#contacts div.team a,
#contacts div.team a:-webkit-any-link {
	line-height: 2.6em;
	color: #222222;
	border-bottom: 1px solid #222222;
	text-decoration: none;
	-webkit-transition: all 0.3s ease-in-out 0s;
    transition: all 0.3s ease-in-out 0s;
}

#contacts div.team a:hover,
#contacts div.team a:-webkit-any-link:hover {
	color: #004789;
	border-bottom-color: #004789;
}

#contacts div.team a:nth-child(6) {
	border-bottom: none;
}

img#linkedin {
	margin-top: 1em;
}

/* GRAZIE */

/* Body */

#thankyou {
	background-image: url("../img/safelab-grazie.jpg");
	background-position: 50% 100%;
}

/* Header */

#thankyou header {
    height: 100vh;
}

/* PRIVACY */

/* Body */

#privacy {
	background-image: url("../img/safelab-privacy.jpg");
	background-position: 50% 100%;
}

/* ERRORE */

/* Body */

#error {
	background-image: url("https://safelab.online/img/safelab-errore.jpg");
	background-position: 50% 50%;
}

/* Header */

#error header {
    height: 100vh;
}



/* Media-queries */

@media only screen and (-webkit-min-device-pixel-ratio: 1.25),
only screen and ( min-device-pixel-ratio: 1.25),
only screen and ( min-resolution: 200dpi),
only screen and ( min-resolution: 1.25dppx) {
	-webkit-font-smoothing: subpixel-antialiased;
}



@media all and (min-width: 768px) and (max-width: 1025px) {

	/* ALL THE PAGES */

	body {
		background-size: auto 55vh;
	}

	[class*="col-"] {
		width: 100%;
	}

	nav {
		height: 6vh;
		padding: 0 40px;
	}

	img#logo {
		padding: 2vh 0;
	}

	ul#navbar {
		position: fixed;
		top: 0;
		left: 0;
		width: 40vw;
		height: 100vh;
		background-color: #252525;
		left: -65vw;
		box-shadow:5px 0px 10px 0px rgba(0,0,0,0.1);
		-webkit-transform: translateX(0px);
        transform: translateX(0px);
		-webkit-transition: all 0.3s ease-in-out 0s;
		transition: all 0.3s ease-in-out 0s;
	}

	.slideIn {
		-webkit-transform: translateX(+65vw) ! important;
        transform: translateX(+65vw) ! important;
    }

	.scroll {
		overflow: hidden;
	}

	ul#navbar li {
		float: none;
	}

	ul#navbar > li > a {
		display: block;
		padding-left: 40px;
		line-height: 6vh;
		color: rgba(255,255,255,0.8);
	}

	ul#navbar > li > a.active,
	ul#navbar > li > a:hover {
		color: #fff;
		background-color: #004789;
	}

	ul#navbar > li > a:before {
		content: none;
	}

	li#dropdown:hover > a {
		color: #ffffff ! important;
	}

	div#dropdown-content {
		position: relative;
		display: block;
		Background-color: #252525;
	}

	div#dropdown-content a {
		padding: 1.2em 1.4em 1.2em 5.6em;
		letter-spacing: 0.1em;
		color: rgba(255,255,255,0.8);
		text-transform: initial;
	}

	div#mobileMenu {
		display: block;
		top: 1.2em;
		right: 40px;
	}

	header {
		height: 50vh;
		padding: 0 40px;
	}

	span.subheading,
	span.breadcrump {
		font-size: 0.7em;
		line-height: 1.8em;
	}
	span.heading {
		font-size: 1.2em;
	}

	span.breakLine {
		display: block;
	}

	section.row-1 {
		padding: 20px 20px 40px 20px;
	}

	div.icon {
		bottom: 70px;
		left: 25px;
		width: 2em;
		height: 2em;
		background-color: transparent;
	}

	div.rectangle:hover > div.icon {
		background-color: transparent;
	}

	div.rectangle h3 {
		bottom: 0px;
		margin-bottom:15px;
		padding: 0 25px;
	}

	div.rectangle h3 span.breakLine {
		display: block;
	}

	div.service-form {
		width: -webkit-calc(50% - 40px);
		width: calc(50% - 40px);
		padding: 1% 3%;
	}

	div.service-form textarea {
		height: 10.4em;
	}

	div.service-list {
		width: -webkit-calc(50% - 40px);
		width: calc(50% - 40px);
		padding: 1% 3%;
	}

	div.service-list i.arrow {
		margin-right: 0.1em;
	}

	section#footer-1 {
		padding: 20px 20px 15px 20px;
	}

	section#footer-1 div.col-4 {
		width: 66.6%;
	}

	section#footer-1 div.col-4 > div.col-6 {
		width: 50%;
	}

	section#footer-2 {
		padding: 0 20px;
	}

	section#footer-2 div:nth-child(1) p {
		margin-bottom: 0;
	}

	section#footer-2 div:nth-child(2) p {
		text-align: left;
		margin-top: 0;
	}

	/* HOMEPAGE */

	#homepage {
		background-image: url("../img/safelab-chi-siamo-mobile.jpg");
		background-position: 80% 0;
		background-size: auto 70vh;
	}

	#homepage header {
		height: 70vh;
	}

	div#scroll a {
		width: 1.5em;
		height: 1.5em;
		border-right: 4px solid #ffffff;
		border-bottom: 4px solid #ffffff;
		-webkit-border-radius: 0 0 0.4em 0;
		-moz-border-radius: 0 0 0.4em 0;
		border-radius: 0 0 0.4em 0;
	}

	#homepage main {
		padding-top: 0;
	}

	#homepage section.row-1 {
		padding-top: 20px;
	}

	#homepage section.row-1 div.col-8 p:nth-child(1) {
		margin-top: 0;
	}

	#homepage section.row-2 {
		padding: 20px 20px 20px 20px;
		text-align: center;
		background-image: url("../img/safelab-safety-helmet-mobile.png");
		background-position: 100% 0;
		background-size: auto;
		background-repeat: no-repeat;
	}

	#homepage div.target {
		width: 50%;
	}

	img#safety-helmet {
		display: none;
	}

	#homepage section.row-2 a.button {
		margin: 2.2em auto 20px 50%;
		display: block;
		-webkit-transform: translateX(-50%);
		transform: translateX(-50%);
	}

	#homepage section.row-3 {
		padding: 20px;
	}

	#homepage section.row-3 table td {
		width: 50% ! important;
		padding-right: 0;
	}

	#homepage section.row-4 {
		padding: 40px;
	}

	div#service-gallery {
		height: 20vw;
	}

	#homepage div.owl-stage div.owl-item:nth-child(4) div.icon,
	#homepage div.owl-stage div.owl-item:nth-child(10) div.icon {
		background-image: url("../img/safelab-service-mobile-1.png");
	}

	#homepage div.owl-stage div.owl-item:nth-child(5) div.icon,
	#homepage div.owl-stage div.owl-item:nth-child(11) div.icon {
		background-image: url("../img/safelab-service-mobile-5.png");
	}

	#homepage div.owl-stage div.owl-item:nth-child(6) div.icon,
	#homepage div.owl-stage div.owl-item:nth-child(12) div.icon {
		background-image: url("../img/safelab-service-mobile-2.png");
	}

	#homepage div.owl-stage div.owl-item:nth-child(1) div.icon,
	#homepage div.owl-stage div.owl-item:nth-child(7) div.icon {
		background-image: url("../img/safelab-service-mobile-3.png");
	}

	#homepage div.owl-stage div.owl-item:nth-child(2) div.icon,
	#homepage div.owl-stage div.owl-item:nth-child(8) div.icon {
		background-image: url("../img/safelab-service-mobile-6.png");
	}

	#homepage div.owl-stage div.owl-item:nth-child(3) div.icon,
	#homepage div.owl-stage div.owl-item:nth-child(9) div.icon {
		background-image: url("../img/safelab-service-mobile-7.png");
	}

	section#map {
		height: 24vh;
	}

	/* SERVIZI */

	#services {
		background-image: url("../img/safelab-servizi-mobile.jpg");
		background-position: 50% 0;
	}

	#services section.row-1 div.col-8 p:nth-child(1) {
		margin-top: 0px;
	}

	#services section.row-2 {
		padding: 20px 40px 10px 40px;
	}

	div.rectangle.static {
		width: -webkit-calc((100% - 60px) / 3);
		width: calc((100% - 60px) / 3);
		height: 20vw;
		margin: 0 30px 30px 0;
	}

	#services section.row-2 a:nth-child(3n) > div {
		margin-right: 0;
	}

	#services section.row-2 > a:nth-child(1) div.icon {
		background-image: url("../img/safelab-service-mobile-1.png");
	}

	#services section.row-2 > a:nth-child(2) div.icon {
		background-image: url("../img/safelab-service-mobile-5.png");
	}

	#services section.row-2 > a:nth-child(3) div.icon {
		background-image: url("../img/safelab-service-mobile-2.png");
	}

	#services section.row-2 > a:nth-child(4) div.icon {
		background-image: url("../img/safelab-service-mobile-3.png");
	}

	#services section.row-2 > a:nth-child(5) div.icon {
		background-image: url("../img/safelab-service-mobile-6.png");
	}

	#services section.row-2 > a:nth-child(6) div.icon {
		background-image: url("../img/safelab-service-mobile-7.png");
	}

	/* SERVICE ITEM */

	#service-1 {
		background-image: url("../img/safelab-rspp-mobile.jpg");
	}

	#service-2 {
		background-image: url("../img/safelab-sistemi-gestione-mobile.jpg");
	}

	#service-3 {
		background-image: url("../img/safelab-valutazione-rischi-mobile.jpg");
	}

	#service-4 {
		background-image: url("../img/safelab-formazione-mobile.jpg");
	}

	#service-5 {
		background-image: url("../img/safelab-ambiente-mobile.jpg");
	}

	#service-6 {
		background-image: url("../img/safelab-prevenzione-incendi-mobile.jpg");
	}

	#service-7 {
		background-image: url("../img/safelab-errore-mobile.jpg");
	}

	#service-8 {
		background-image: url("../img/safelab-grazie-mobile.jpg");
	}

	#service-9 {
		background-image: url("../img/safelab-privacy-mobile.jpg");
	}

	#service-1,
	#service-2,
	#service-3,
	#service-4,
	#service-5,
	#service-6,
	#service-7,
	#service-8,
	#service-9	{
		background-position: 50% 0;
		background-size: auto 60vh;
	}

	.service-item section.row-1 div.col-8 {
		width: 50%;
	}

	/* PORTFOLIO */

	#portfolio {
		background-image: url("../img/safelab-portfolio-mobile.jpg");
		background-position: 50% 0;
	}

	#portfolio section.row-1 div.col-8 {
		width: 50%;
	}

	#portfolio main ul li {
		float: none;
		width: 100%;
	}

	#portfolio section.row-2 {
		padding: 20px 20px 10px 20px;
		background-image: url("../img/handshake-mobile.png");
		background-size: cover;
	}

	div#portfolio-gallery img {
		width: -webkit-calc((100% - 120px) / 8);
		width: calc((100% - 120px) / 8);
	}

	/* CONTATTI */

	div#map {
		height: 50vh;
	}

	#contacts div.intro {
		display: none;
	}

	#contacts section.row-1 {
		padding: 40px 40px 0 40px;
	}

	#contacts section.row-1 > a:nth-child(3) div {
		margin-right: 0;
	}

	#contacts section.row-1 > a:nth-child(1) div.icon {
		background-image: url("../img/safelab-phone-mobile.png");
	}

	#contacts section.row-1 > a:nth-child(2) div.icon {
		background-image: url("../img/safelab-mail-mobile.png");
	}

	#contacts section.row-1 > a:nth-child(3) div.icon {
		background-image: url("../img/safelab-address-mobile.png");
	}

	#contacts section.row-2 {
		padding: 0 20px 20px 20px;
	}

	#contacts section.row-2 div.col-4 {
		width: 33.3%;
	}

	#contacts section.row-2 div.col-8 {
		width: 66.6%;
	}

	div#contact-form input[type=submit] {
		margin: 2.2em auto 20px auto;
	}

	div#contact-form form div.col-6 {
		padding: 0;
	}

	#contacts section.row-3 {
		padding: calc(4% - 40px) 10% 4% 10%;
		background-image: url("../img/man-holding-safety-helmet-mobile.png");
		background-position: 100% 0;
		background-size: auto 100%;
	}

	#contacts section.row-3 div.team {
		width: 50%;
		margin-top: 0;
	}

	#contacts div.team a {
		line-height: 2em;
	}

	/* GRAZIE */

	#thankyou {
		background-image: url("../img/safelab-grazie-mobile.jpg");
		background-position: 40% 0;
		background-size: auto 100vh;
	}

	/* PRIVACY */

	#privacy {
		background-image: url("../img/safelab-privacy-mobile.jpg");
		background-position: 50% 0;
	}

	#privacy section.row-1 div.col-8 {
		width: 50%;
	}

	/* GRAZIE */

	#error {
		background-image: url("https://safelab.online/img/safelab-errore-mobile.jpg");
		background-position: 50% 0;
		background-size: auto 100vh;
	}

}



@media all and (min-width: 768px) and (max-width: 1025px) and (min-aspect-ratio: 13/9) {

	/* ALL THE PAGES */

	div#mobileMenu {
		top: 0.8em;
	}

	/* HOMEPAGE */

	#homepage {
		background-position: 50% 50%;
		background-size: 110vw auto;
	}

	/* SERVIZI */

	#services {
		background-position: 50% 50%;
		background-size: 110vw auto;
	}

	/* SERVICE ITEM */

	#service-1,
	#service-2,
	#service-3
	#service-4,
	#service-5,
	#service-6,
	#service-7,
	#service-8	{
		background-position: 50% 50%;
		background-size: 110vw auto;
	}

	/* PORTFOLIO */

	#portfolio{
		background-position: 50% 50%;
		background-size: 110vw auto;
	}

	/* GRAZIE */

	#thankyou {
		background-size: cover;
	}

	/* PRIVACY */

	#privacy {
		background-position: 50% 50%;
		background-size: 110vw auto;
	}

	/* ERRORE */

	#error {
		background-size: cover;
	}

}



@media all and (max-width: 767px) {

	/* ALL THE PAGES */

	body {
		background-size: auto 50vh;
	}

	[class*="col-"] {
		width: 100%;
	}

	nav {
		padding: 0 30px;
	}

	ul#navbar {
		position: fixed;
		top: 0;
		left: 0;
		width: 75vw;
		height: 100vh;
		background-color: #252525;
		left: -100vw;
		box-shadow:5px 0px 10px 0px rgba(0,0,0,0.1);
		-webkit-transform: translateX(0px);
        transform: translateX(0px);
		-webkit-transition: all 0.3s ease-in-out 0s;
		transition: all 0.3s ease-in-out 0s;
	}

	.slideIn {
		-webkit-transform: translateX(+100vw) ! important;
        transform: translateX(+100vw) ! important;
    }

	.scroll {
		overflow: hidden;
	}

	ul#navbar li {
		float: none;
	}

	ul#navbar > li > a {
		display: block;
		color: rgba(255,255,255,0.8);
	}

	ul#navbar > li > a.active,
	ul#navbar > li > a:hover {
		color: #fff;
		background-color: #004789;
	}

	ul#navbar > li > a:before {
		content: none;
	}

	li#dropdown:hover > a {
		color: #ffffff ! important;
	}

	div#dropdown-content {
		position: relative;
		display: block;
		Background-color: #252525;
	}

	div#dropdown-content a {
		padding: 1.2em 1.4em 1.2em 2.8em;
		letter-spacing: 0.1em;
		color: rgba(255,255,255,0.8);
		text-transform: initial;
	}

	div#mobileMenu {
		display: block;
	}

	header {
		height: 50vh;
		padding: 0 30px;
	}

	span.subheading,
	span.breadcrump {
		font-size: 0.7em;
		line-height: 1.8em;
	}
	span.heading {
		font-size: 1.2em;
	}

	span.breakLine {
		display: inline;
	}

	section.row-1 {
		padding: 20px 10px 40px 10px;
	}

	div.icon {
		bottom: 70px;
		left: 30px;
		background-color: #ffffff;
	}

	div.rectangle:hover > div.icon {
		background-color: #ffffff;
	}

	div.service-form {
		width: -webkit-calc(100% - 40px);
		width: calc(100% - 40px);
		margin-top: 40px;
		padding-right: 5%;
		padding-left: 5%;
	}

	div.service-form textarea {
		height: 10.4em;
	}

	div.service-list {
		width: -webkit-calc(100% - 40px);
		width: calc(100% - 40px);
		margin-top: 40px;
		padding-right: 5%;
		padding-left: 5%;
	}

	div.service-list i.arrow {
		margin-right: 0.1em;
	}

	section#footer-1 {
		padding: 20px 10px 15px 10px;
	}

	section#footer-1 div.col-4 {
		float: none;
	}

	section#footer-1 > a:nth-child(1) {
		display: none;
	}

	section#footer-2 {
		padding: 10px 10px 10px 10px;
	}

	section#footer-2 div:nth-child(2) p {
		text-align: left;
		margin-top: 0px;
	}

	/* HOMEPAGE */

	#homepage {
		background-image: url("../img/safelab-chi-siamo-mobile.jpg");
		background-position: 80% 0;
		background-size: auto 80vh;
	}

	#homepage header {
		height: 80vh;
	}

	div#scroll a {
		width: 1.5em;
		height: 1.5em;
		border-right: 4px solid #ffffff;
		border-bottom: 4px solid #ffffff;
		-webkit-border-radius: 0 0 0.4em 0;
		-moz-border-radius: 0 0 0.4em 0;
		border-radius: 0 0 0.4em 0;
	}

	#homepage main {
		padding-top: 0;
	}

	#homepage section.row-1 {
		padding-top: 20px;
	}

	#homepage section.row-1 div.col-8 p:nth-child(1) {
		margin-top: 0;
	}

	#homepage section.row-2 {
		padding: 20px 10px 40px 10px;
		text-align: center;
		background-image: url("../img/safelab-safety-helmet-mobile.png");
		background-position: 100% 0;
		background-size: auto;
		background-repeat: no-repeat;
	}

	img#safety-helmet {
		display: none;
	}

	#homepage section.row-3 {
		padding: 20px 10px 20px 10px;
	}

	#homepage section.row-3 table td {
		display: block;
		width: 100% ! important;
		padding-right: 0 ! important;
	}

	#homepage section.row-3 h2 {
		text-align: center;
	}

	#homepage section.row-3 a.button {
		margin: 10px 0 20px 0;
	}

	#homepage section.row-4 {
		padding: 40px 30px;
	}

	div#service-gallery,
	div.owl-item {
		height: 48vw;
	}

	#homepage div.owl-stage div.owl-item:nth-child(4) div.icon,
	#homepage div.owl-stage div.owl-item:nth-child(10) div.icon {
		background-image: url("../img/safelab-service-mobile-1.png");
	}

	#homepage div.owl-stage div.owl-item:nth-child(5) div.icon,
	#homepage div.owl-stage div.owl-item:nth-child(11) div.icon	{
		background-image: url("../img/safelab-service-mobile-5.png");
	}

	#homepage div.owl-stage div.owl-item:nth-child(6) div.icon,
	#homepage div.owl-stage div.owl-item:nth-child(12) div.icon {
		background-image: url("../img/safelab-service-mobile-2.png");
	}

	#homepage div.owl-stage div.owl-item:nth-child(1) div.icon,
	#homepage div.owl-stage div.owl-item:nth-child(7) div.icon {
		background-image: url("../img/safelab-service-mobile-3.png");
	}

	#homepage div.owl-stage div.owl-item:nth-child(2) div.icon,
	#homepage div.owl-stage div.owl-item:nth-child(8) div.icon {
		background-image: url("../img/safelab-service-mobile-6.png");
	}

	#homepage div.owl-stage div.owl-item:nth-child(3) div.icon,
	#homepage div.owl-stage div.owl-item:nth-child(9) div.icon {
		background-image: url("../img/safelab-service-mobile-7.png");
	}


	section#map {
		height: 50vh;
	}

	/* SERVIZI */

	#services {
		background-image: url("../img/safelab-servizi-mobile.jpg");
		background-position: 50% 0;
	}

	#services section.row-1 div.col-8 p:nth-child(1) {
		margin-top: 0px;
	}

	#services section.row-2 {
		padding: 20px 30px 10px 30px;
	}

	div.rectangle.static {
		width: 100%;
		height: 48vw;
		margin: 0 0 30px 0;
	}

	#services section.row-2 > a:nth-child(1) div.icon {
		background-image: url("../img/safelab-service-mobile-1.png");
	}

	#services section.row-2 > a:nth-child(2) div.icon {
		background-image: url("../img/safelab-service-mobile-5.png");
	}

	#services section.row-2 > a:nth-child(3) div.icon {
		background-image: url("../img/safelab-service-mobile-2.png");
	}

	#services section.row-2 > a:nth-child(4) div.icon {
		background-image: url("../img/safelab-service-mobile-3.png");
	}

	#services section.row-2 > a:nth-child(5) div.icon {
		background-image: url("../img/safelab-service-mobile-6.png");
	}

	#services section.row-2 > a:nth-child(6) div.icon {
		background-image: url("../img/safelab-service-mobile-7.png");
	}

	div.rectangle h3 {
		bottom: 0px;
		padding: 0 30px;
	}

	/* SERVICE ITEM */

	#service-1 {
		background-image: url("../img/safelab-rspp-mobile.jpg");
	}

	#service-2 {
		background-image: url("../img/safelab-valutazione-rischi-mobile.jpg");
	}

	#service-3 {
		background-image: url("../img/safelab-medicina-lavoro-mobile.jpg");
	}

	#service-4 {
		background-image: url("../img/safelab-formazione-mobile.jpg");
	}

	#service-5 {
		background-image: url("../img/safelab-sistemi-gestione-mobile.jpg");
	}

	#service-6 {
		background-image: url("../img/safelab-ambiente-mobile.jpg");
	}

	#service-7 {
		background-image: url("../img/safelab-prevenzione-incendi-mobile.jpg");
	}

	#service-8 {
		background-image: url("../img/safelab-consulenza-energetica-mobile.jpg");
	}

	#service-1,
	#service-2,
	#service-3,
	#service-4,
	#service-5,
	#service-6,
	#service-7,
	#service-8	{
		background-position: 50% 0;
	}

	/* PORTFOLIO */

	#portfolio {
		background-image: url("../img/safelab-portfolio-mobile.jpg");
		background-position: 50% 0;
	}

	#portfolio main ul li {
		width: 100%;
	}

	#portfolio section.row-2 {
		padding: 20px 10px 10px 10px;
		background-image: url("../img/handshake-mobile.png");
		background-size: cover;
	}

	div#portfolio-gallery img {
		width: -webkit-calc((100% - 70px) / 4);
		width: calc((100% - 70px) / 4);
	}

	/* CONTATTI */

	div#map {
		height: 50vh;
	}

	#contacts div.intro {
		display: none;
	}

	#contacts section.row-1 {
		padding: 40px 30px 0 30px;
	}

	#contacts section.row-1 > a:nth-child(1) div.icon {
		background-image: url("../img/safelab-phone-mobile.png");
	}

	#contacts section.row-1 > a:nth-child(2) div.icon {
		background-image: url("../img/safelab-mail-mobile.png");
	}

	#contacts section.row-1 > a:nth-child(3) div.icon {
		background-image: url("../img/safelab-address-mobile.png");
	}

	#contacts section.row-2 {
		padding: 0 10px 20px 10px;
	}

	#contacts div#contact-form {
		margin-top: 0;
	}

	div#contact-form input[type=submit] {
		margin: 2.2em auto 20px auto;
	}

	div#contact-form form div.col-6 {
		padding: 0;
	}

	#contacts section.row-3 {
		padding: 20px 10px 20px 10px;
		background-image: url("../img/man-holding-safety-helmet-mobile.png");
		background-position: 70% 0;
		background-size: cover;
	}

	#contacts div.team a {
		line-height: 2em;
	}

	/* GRAZIE */

	#thankyou {
		background-image: url("../img/safelab-grazie-mobile.jpg");
		background-position: 40% 0;
		background-size: auto 100vh;
	}

	/* PRIVACY */

	#privacy {
		background-image: url("../img/safelab-privacy-mobile.jpg");
		background-position: 50% 0;
	}

	/* ERRORE */

	#error {
		background-image: url("https://safelab.online/img/safelab-errore-mobile.jpg");
		background-position: 50% 0;
		background-size: auto 100vh;
	}

}



@media all and (max-width: 767px) and (min-aspect-ratio: 13/9) {

	/* ALL THE PAGES */

	nav {
		height: 8vw;
	}

	ul#navbar {
		overflow: scroll;
	}

	ul#navbar > li > a {
		line-height: 8vw;
	}

	img#logo {
		padding: 2.75vw 0;
	}

	div.intro {
		-webkit-transform: translateY(-35%);
		transform: translateY(-35%);
	}

	div.service-list {
		width: -webkit-calc(50% - 40px);
		width: calc(50% - 40px);
		margin-top: 20px;
	}

	section#footer-1 > a:nth-child(1) {
		display: block;
	}

	section#footer-1 img#footer-logo {
		width: 20%;
	}

	section#footer-1 div.col-4 {
		width: 66.6%;
	}

	section#footer-1 div.col-4 div.col-6 {
		width: 50%;
	}

	div.rectangle.static {
		width: -webkit-calc((100% - 20px) / 2);
		width: calc((100% - 20px) / 2);
		height: 24vw;
		margin: 0 20px 20px 0;
	}

	/* HOMEPAGE */

	#homepage {
		background-position: 50% 100%;
		background-size: 100vw auto;
	}

	div#scroll {
		display: none;
	}

	#homepage section.row-2 div.target {
		width: 50%;
	}

	div.target table {
		min-height: 30vh;
	}

	div#service-gallery {
		height: 24vw;
	}

	div.icon {
		width: 2em;
		height: 2em;
	}

	/* SERVIZI */

	#services {
		background-position: 50% 100%;
		background-size: 100vw auto;
	}

	#services section.row-2 a:nth-child(even) div.rectangle.static {
		margin-right: 0;
	}

	/* SERVICE ITEM */

	#service-1,
	#service-2,
	#service-3,
	#service-4,
	#service-5,
	#service-6,
	#service-7,
	#service-8	{
		background-position: 50% 100%;
		background-size: 100vw auto;
	}

	.service-item section.row-1 div.col-8 {
		width: 50%;
	}

	div.service-form {
		width: -webkit-calc(50% - 40px);
		width: calc(50% - 40px);
		margin-top: 20px;
	}

	/* PORTFOLIO */

	#portfolio {
		background-position: 50% 100%;
		background-size: 100vw auto;
	}

	#portfolio section.row-1 div.col-8 {
		width: 50%;
	}

	div#portfolio-gallery img {
		width: -webkit-calc((100% - 20px) / 4);
		width: calc((100% - 20px) / 4);
	}

	/* CONTATTI */

	#contacts section.row-1 a:nth-child(even) div.rectangle.static {
		margin-right: 0;
	}

	div#contact-form form div.col-6 {
		width: -webkit-calc((100% - 20px) / 2);
		width: calc((100% - 20px) / 2);
	}

	div#contact-form form div.col-6:nth-child(odd) {
		margin-right: 20px;
	}

	#contacts section.row-3 div.team {
		width: 50%;
	}

	#contacts section.row-3 div.team {
		margin-top: 0;
	}

	/* GRAZIE */

	#thankyou {
		background-position: 50% 100%;
		background-size: 100vw auto;
	}

	/* PRIVACY */

	#privacy {
		background-position: 50% 100%;
		background-size: 100vw auto;
	}

	#privacy section.row-1 div.col-8 {
		width: 50%;
	}

	/* ERRORE */

	#error {
		background-position: 50% 100%;
		background-size: 100vw auto;
	}

}
