@font-face {
	font-family: 'bariol';
	src: url('webfont/bariol_serif_regular-webfont.eot');
	src: url('webfont/bariol_serif_regular-webfont.eot?#iefix') format('embedded-opentype'),
		 url('webfont/bariol_serif_regular-webfont.woff2') format('woff2'),
		 url('webfont/bariol_serif_regular-webfont.woff') format('woff'),
		 url('webfont/bariol_serif_regular-webfont.ttf') format('truetype'),
		 url('webfont/bariol_serif_regular-webfont.svg') format('svg');
	font-weight: normal;
	font-style: normal;
}

@font-face {
	font-family: 'bariol_italic';
	src: url('webfont/bariol_serif_regular_italic-webfont.eot');
	src: url('webfont/bariol_serif_regular_italic-webfont.eot?#iefix') format('embedded-opentype'),
		 url('webfont/bariol_serif_regular_italic-webfont.woff2') format('woff2'),
		 url('webfont/bariol_serif_regular_italic-webfont.woff') format('woff'),
		 url('webfont/bariol_serif_regular_italic-webfont.ttf') format('truetype'),
		 url('webfont/bariol_serif_regular_italic-webfont.svg') format('svg');
	font-weight: normal;
	font-style: italic;
}

@font-face {
	font-family: 'bariol_bold';
	src: url('webfont/bariol_serif_bold-webfont.eot');
	src: url('webfont/bariol_serif_bold-webfont.eot?#iefix') format('embedded-opentype'),
		 url('webfont/bariol_serif_bold-webfont.woff2') format('woff2'),
		 url('webfont/bariol_serif_bold-webfont.woff') format('woff'),
		 url('webfont/bariol_serif_bold-webfont.ttf') format('truetype'),
		 url('webfont/bariol_serif_bold-webfont.svg') format('svg');
	font-weight: bold;
	font-style: normal;
}

@font-face {
	font-family: 'bariol_bold_italic';
	src: url('webfont/bariol_serif_bold_italic-webfont.eot');
	src: url('webfont/bariol_serif_bold_italic-webfont.eot?#iefix') format('embedded-opentype'),
		 url('webfont/bariol_serif_bold_italic-webfont.woff2') format('woff2'),
		 url('webfont/bariol_serif_bold_italic-webfont.woff') format('woff'),
		 url('webfont/bariol_serif_bold_italic-webfont.ttf') format('truetype'),
		 url('webfont/bariol_serif_bold_italic-webfont.svg') format('svg');
	font-weight: bold;
	font-style: italic;
}

@font-face {
	font-family: 'bariol_reg';
	src: url('webfont/bariol_regular-webfont.eot');
	src: url('webfont/bariol_regular-webfont.eot?#iefix') format('embedded-opentype'),
		 url('webfont/bariol_regular-webfont.woff2') format('woff2'),
		 url('webfont/bariol_regular-webfont.woff') format('woff'),
		 url('webfont/bariol_regular-webfont.ttf') format('truetype'),
		 url('webfont/bariol_regular-webfont.svg') format('svg');
	font-weight: normal;
	font-style: normal;
}

* {
	box-sizing: border-box;
	-webkit-box-sizing: border-box;
	-moz-box-sizing: border-box;
}

BODY, HTML {
	margin: 0;
}

BODY {
	background-color: #F2F2F3;
	color: #323234;
	font: normal 16px 'bariol';
	padding-top: 50px;
}

I {
	font-family: 'bariol_italic', serif;
}

A IMG {
	border: none;
}

P {
	text-align: justify;
}

A {
	color: #00ABB2;
	font-family: 'bariol_italic', serif;
	text-decoration: none;
	position: relative;
}

A:before {
	content: "";
	position: absolute;
	width: 100%;
	height: 2px;
	bottom: -1px;
	left: 0;
	background-color: #00ABB2;
	visibility: hidden;
  -webkit-transform: scaleX(0);
  transform: scaleX(0);
  -webkit-transition: all 0.3s ease-out 0s;
  transition: all 0.3s ease-out 0s;
}

A:hover:before {
	visibility: visible;
  -webkit-transform: scaleX(1);
  transform: scaleX(1);
}

DIV.selected A:before,
DIV#portfolio A:before {
	display: none;
}

A:focus, A:hover {
	text-decoration: none;
	color: #00ABB2;
}

NAV#main_menu A {
	font-family: 'bariol_reg', sans-serif;
	font-size: 15px;
	text-transform: uppercase;
}

NAV#main_menu A:before {
	display: none;
}

NAV#main_menu A:hover {
	color: white;
}

A#logo_link_home {
	float: left;
	top: 11px;
	left: 15px;
}

SPAN#logo_link A:before {
	display: none;
}

P, DIV {
	line-height: 1.6;
	font-size: 18px;
}

H1, H2, H3,
H4, H5, H6 {
	margin: 0;
	line-height: normal;
}

H1, H2, H3 {
	font-family: 'bariol_reg', sans-serif;
}

H2 {
	color: #00ABB2;
}

.content {
	width: 95%;
	margin: 0 auto;
}

.mobile_y {
  display: none;
}

::-moz-selection {
	/*background: #00ABB2;*/
	background: rgba(0,170,177,0.6);
}
	
::selection {
	background: rgba(0,170,177,0.6);
}

.blue {
	color: #00ABB2;
}

#credits {
	display: none;
}

#header {
	position: fixed;
	width: 100%;
	left: 0;
	top: 0;
	text-align: right;
	background: #323234;
	z-index: 99;
	height: 57px;
}

#main_menu DIV {
	display: inline-block;
	padding: 17px 15px 0 0;
}

#header A {
	color: #00ABB2;
	transition: .5s;
}

#header DIV.selected A {
	color: #eceded;
}

#header DIV.selected A:hover {
	border-bottom: none;
}

FOOTER DIV {
	text-align: center;
	font-size: 13px;
	background: #1e1e1e;
	color: #8f9196;
	padding: 7px 7px 4px;
}

FOOTER A {
	color: #8f9196;
}

FOOTER A:before {
	display: none;
}

.no_pad {
  padding: 0 !important;
  margin: 0 !important;
}

DIV.section {
  padding: 8% 0;
}

.section_title {
  /*font-family: 'Cookie', cursive;*/
	font-family: 'Dancing Script', cursive;
  padding-bottom: 8%;
  text-align: center;
  font-size: 80px;
  color: #00ABB2;
	text-shadow: 3px 3px 0 rgba(255,255,255,0.9);
}

#recapiti H1.section_title {
	text-shadow: 3px 3px 0 rgba(0,0,0,0.3);
}

@media screen and (min-width: 1045px) {

	.content {
		max-width: 1045px;
	}

}

@media screen and (max-width: 500px) {
	
	P {
		text-align: left;
	}
	
	NAV#main_menu A {
		font-size: 13px;
	}
	
	.mobile_n {
		display: none !important;
	}
  
  .mobile_y {
    display: block;
  }
	
}

