/*
Theme Name: Gabriele Romanato
Theme URI: http://gabrieleromanato.name/
Author: Gabriele Romanato
Author URI: http://gabrieleromanato.name/
Description: My blog theme!
Version: 1.0
*/

@import url(https://fonts.googleapis.com/css?family=Hind:400,300,700);
@import url(https://fonts.googleapis.com/css?family=Poppins:400,700,300);

/*= HTML elements reset (selective) */



html, body, h1, h2, h3, h4, h5, h6, p, ul, ol,
blockquote, address, dl, dt, dd, form {
	margin: 0;
	padding: 0;
	font-size: 100%;
	font-style: normal;
	list-style: none;
}

article, aside, nav, section, header, hgroup, footer, figure, figcaption {
	display: block;
	margin: 0;
	padding: 0;
}

input, select {
	font: 1em 'Hind', Verdana, sans-serif;
	vertical-align: baseline;
}

*:focus {
	outline-style: none;
}

/*= General elements */

html, body {
	width: 100%;
}

body {
	font: 100%/1 'Hind', Verdana, sans-serif;
	color: #444;
	background: #fff;
	-webkit-font-smoothing: antialiased;
}

/* = Links */

a:link,
a:visited {
	color: #31aae2;
	text-decoration: none;
}

a:hover {
	text-decoration: underline;
}

.more-link,
a.more-link {
	font-weight: 900;
	transition: all 400ms ease-in;
	background: #31aae2;
	color: #fff;
	display: inline-block;
	padding: 0.5em 1.5em;
	border: none;
	text-transform: uppercase;
	text-decoration: none;
}
.content-section-title.outline:after {
	border-top-color: #31aae2;
}


/*= Headings */

h1, h2, h3, h4, h5, h6 {
	font-weight: normal;
	color: #000;
	font-family: 'Poppins', Verdana, sans-serif;
}

.post h2, .post h3, .post h4, .post h5, .post h6 {
	line-height: 1.3;
}

h1 a:link,
h1 a:visited {
	color: #000;
	text-decoration: none;
}

h2 a:link,
h2 a:visited,
h3 a:link,
h3 a:visited,
h4 a:link,
h4 a:visited {
	color: #000;
	text-decoration: none;
}

h1 a:hover {
	color: #000;
	text-decoration: none;
		
}

h2 a:hover,
h3 a:hover,
h4 a:hover {
	text-decoration: none;
	color: #000;	
}



/* = Accessibility */

#accessibility {

	position: absolute;
	top: -1000em;

}

/*= Classes */

.row {
	width: 100%;
}

.col {
	float: left;
}

.col-inner {
	padding: 0 5%;
}

.col-12 {
	width: 8.3333%;
}

.col-11 {
	width: 9.0909%;
}

.col-10 {
	width: 10%;
}

.col-9 {
	width: 11.1111%;
}

.col-8 {
	width: 12.5%;
}

.col-7 {
	width: 14.2857%;
}

.col-6 {
	width: 16.6666%;
}

.col-5 {
	width: 20%;
}

.col-4 {
	width: 25%;
}

.col-3 {
	width: 33.3333%;
}

.col-2 {
	width: 50%;
}

.aligncenter {
	margin-left: auto;
	margin-right: auto;
}

.grid-960 {
	max-width: 960px;
}

.content-section {
	margin-top: 2em;
	margin-bottom: 2em;
	line-height: 1.4;
	text-align: center;
}

.content-section p {
	margin-bottom: 0.5em;
}

.content-section-title {
	font-size: 2em;
	text-transform: uppercase;
	font-weight: 900;
}

.alt-bg {
	background: #000;
	color: #fff;
	padding: 1em 0;
}

.alt-bg * {
	color: #fff;
}

.outline:after {
	content: ' ';
	display: block;
	margin: 0.4em auto;
	width: 2em;
	border-top: 1px solid;
}

.avatar {
	width: 150px;
	height: 150px;
	margin-top: 0.5em;
	margin-bottom: 0.5em;
}

.avatar img {
	border-radius: 50%;
}

.responsive {
	display: block;
	max-width: 100%;
	height: auto;
}

.parallax {
	width: 100%;
	height: 400px;
	background-size: cover;
	background-repeat: no-repeat;
	background-position: 50% 50%;
	background-attachment: fixed;
}

.clearfix:after {
	content: '.';
	display: block;
	height: 0;
	clear: both;
	visibility: hidden;
	overflow: hidden;
}

.no-scroll {
	overflow: hidden;
}

.hidden-accessible {
	position: absolute;
	top: -99999em;
}

@media screen and (max-width: 768px) {
	.parallax {
		height: 200px;
	}
}

.fade-out {
	opacity: 0;
	transition: opacity 1s ease-in;
}

.fade-in {
	opacity: 1;
}

.center-text {
	text-align: center;
}

.animated {
	animation-duration: 1s;
	animation-fill-mode: both;
	opacity: 0;
}

/*= Effects */

@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translate3d(0, 100%, 0);
  }

  100% {
    opacity: 1;
    transform: none;
  }
}

.fadeInUp {
   animation-name: fadeInUp;
}
	
/*= Layout */

/*= Loader */

#preload-site {
  	text-align: center;
  	background: #fff;
  	font-size: 2em;
  	color: #fff;
  	position: absolute;
  	top: 0;
  	left: 0;
  	width: 100%;
  	height: 100%;
  	z-index: 9999999;
  	transition: left 400ms ease-in;
}

#loading {
  animation: loading 3s infinite;
  border-radius: 100%;
  background: transparent;
  height: 0.2em;
  width: 0.2em;
  margin: 10em auto;
}

@keyframes loading {
	0%,
  100%{
    box-shadow:  1em 0.8em 0 0 #000,
                 0em 1.6em 0 0 #31aae2,
                 2em 1.6em 0 0 #000,
                 1em 2.4em 0 0 #31aae2,
                 0em 3.2em 0 0 #000,
                 2em 3.2em 0 0 #31aae2,
                 1em 4.0em 0 0 #000;
  }
  
  50% {
    box-shadow: 0em  2.4em 0 0 #000,
                2em  3.2em 0 0 #31aae2,
                0em  3.2em 0 0 #000,
                1em  2.4em 0 0 #31aae2,
                2em  1.6em 0 0 #000,
                0em  1.6em 0 0 #31aae2,
                2em  2.4em 0 0 #000;
  }
  
    
}

/*= Wrapper */

#site-contents {
	width: 100%;
	margin: 0;
}
#site {
	width: 100%;
	opacity: 0;
	transition: opacity 1s ease-in;
}

#site.loaded {
	opacity: 1;
}


/*= Header */

#header {
	width: 100%;
	background: #fff;
}

#header.fixed {
	position: fixed;
	top: 0;
	left: 0;
	z-index: 999999999999999;
	border-bottom: 1px solid #ddd;
}


#header-container {
	width: 100%;
	padding: 1em 0;
}

#branding {
	float: left;
	padding-left: 1em;	
}

#open-menu-wrapper {
	float: right;
	padding-right: 1em;
	min-height: 23px;
	line-height: 23px;
	margin: 0.4em 0 0 0;
	text-align: left;
}

#open-menu {
	display: block;
	padding-left: 42px;
	background: url(images/open-menu-sprite.png) no-repeat 0 0;
	min-height: 23px;
	text-transform: uppercase;
	color: #000;
}

#open-menu:hover {
	text-decoration: none;
	
}

#open-menu.active {
	background-position: 0 100%;
}

@media screen and (max-width: 768px) {
	#branding {
		float: none;
		text-align: center;
		margin: 10px auto;
	}

	#open-menu-wrapper {
		float: none;
		text-align: center;
		margin: 10px 0;
	}

	#open-menu {
		display: inline-block;
	}
}

/*= Search form */

#searchform {
	text-align: center;
}

#searchform ::-webkit-input-placeholder { 
    color: #d0d0d0;
}

#searchform :-moz-placeholder {
    color: #d0d0d0;
}

#searchform ::-moz-placeholder { 
    color: #d0d0d0;
}

#searchform :-ms-input-placeholder {
    color: #d0d0d0;
}


#s {
	width: 250px;
	background: transparent url(images/icon-search.png) no-repeat 100% 50%;
	border: 1px solid #d0d0d0;
	color: #d0d0d0;
	border-width: 0 0 1px 0;
	padding: 0.4em 32px 0.4em 0;
	transition: all 400ms ease-in;
}

#s:focus {
	outline: none;
	border-color: #fff;
	color: #fff;
}

/*= Site title and description */

#site-title {
	color: #000;
	font-size: 1.4em;
	font-weight: 900;
	text-transform: uppercase;
	padding-top: 0.3em;
}


#site-title a, 
#site-title a:hover {
	color: #000;
}



#site-description {
	display: none;
}

/*= Sub-header */

#sub-header {
	width: 100%;
	height: 400px;
	background: #000 url(images/sub-header.jpg) no-repeat 50% 50%;
	background-size: cover;
	color: #fff;
	text-align: center;
}

@media screen and (max-width: 768px) {
	#sub-header {
		height: 250px;
	}
}

#sub-header-content {
	width: 100%;
	height: 100%;
	background-color: rgba( 0, 0, 0, 0.5 );
}

#section-title {
	font-size: 2.5em;
	color: #fff;
	text-transform: uppercase;
	padding-top: 8%;
	font-weight: 900;
}

#section-description {
	color: #fff;
}

@media screen and (max-width: 768px) {
	#section-title {
		font-size: 22px;
		padding-top: 80px;
	}
}




/*= Scroll up/down */

#scroll-down-wrapper,
#scroll-up-wrapper {
	text-align: center;
	margin: 1.5em 0;
	display: block;
}

#scroll-down,
#scroll-up {
	display: inline-block;
	width: 73px;
	text-indent: -99999em;
	height: 36px;
	background-repeat: no-repeat;
	background-image: url(images/down-up-sprite.png);
}

#scroll-up {
	background-position: 0 100%;
}

@media screen and (max-width: 768px) {
	#scroll-down-wrapper,
	#scroll-up-wrapper {
		display: none;
	}
}

/* = Navigation */

#navigation {
	width: 100%;
	position: absolute;
	right: 0;
	background: rgba(0, 0, 0, 0.8);
	z-index: 9999999999999;
	display: none;
}

#navigation ul {
	padding: 15% 0 0 0;
}

#navigation li {
	display: block;
}

#navigation a {
	display: block;
	padding: 1em;
	color: #d0d0d0;
	text-align: center;
	text-transform: uppercase;
	transition: all 400ms ease-in;
}

#navigation a:after {
	content: ' ';
	display: block;
	margin: 0.4em auto;
	width: 2em;
	border-top: 1px solid;
}

#navigation li.current-menu-item a,
#navigation li a:hover {
	color: #fff;
	text-decoration: none;
}

#navigation li.current-menu-item a {
	font-weight: 900;
}

/*= Main content */

#content {
	
}

.content-section {
	margin-top: 2em;
	margin-bottom: 2em;
	line-height: 1.4;
	text-align: center;
}

.content-section p {
	margin-bottom: 0.5em;
}

.content-section-title {
	font-size: 2em;
	text-transform: uppercase;
	font-weight: 900;
}

/*= 404 */

#error-404 {
	text-align: center;
	font-size: 2em;
	margin: 1em 0;
	color: #000;
	font-weight: 900;
	text-transform: uppercase;
}

#error-404:before {
	content: ':-(';
	display: block;
	text-align: center;
	margin-bottom: 0.4em;
	font-size: 1.5em;
	color: #aaa;
}


/*= Footer */

#footer {
	width: 100%;
	background: #2d2d2d;
	color: #fff;
}

#footer-container {
	padding: 1.5em 0;
	font-size: 90%;
	text-align: center;
}

#footer p a,
#footer p a:hover {
	color: #fff;
	margin-left: 0.4em;
}

#footer p a:before {
	content: '|';
	margin-right: 0.4em;
}

#social {
	margin: 1.5em 0;
}

#social li {
	display: inline-block;
	margin: 0 0.5em;
}

#social li a,
#social li a:hover {
	display: inline-block;
	width: 36px;
	height: 33px;
	text-decoration: none;
	text-indent: -99999em;
	background-repeat: no-repeat;
	background-image: url(images/social-sprite.png);
}

#social #facebook {
	width: 33px;
	background-position: -36px 0;
}

#social #google-plus {
	background-position: -68px 0;	
}

#social #linkedin {
	background-position: -102px 0;	
}

/*= Posts */

.post {
	position: relative;
	margin: 0 0 2.5em 0;
}

#posts-wrapper {
	margin-bottom: 1.5em;
}

/*= Posts */

.post {
	margin-bottom: 2em;
}

.post-title {
	font-size: 1.3em;
	font-weight: bold;
	text-transform: uppercase;
	color: #000;
}

.post-title a {
	transition: all 400ms ease-in;
	color: #000;
}

.post-title a:hover {
	color: #31aae2;
}

.post-title a:after {
	content: '\2192';
	padding-left: 0.5em;
}

.post-more {
	margin-top: 1.6em;
}

.post-thumb {
	display: none;
}

.post-meta {
	margin-bottom: 1.5em;
	padding: 0 0 0.4em 0;
	text-align: center;
}

.post-content {
}

@media screen and (max-width: 768px) {
	.post-meta {
		padding: 0 1em;
	}
}

.in-list .post-content {
	line-height: 1.4;
	font-size: 16px;
}

.post.project p {
	margin-top: 1em;
}

.in-list .post-title {
	text-align: center;
}

.in-list .post-content {
	text-align: center;
}

.post-meta span {
	margin-right: 0.5em;
	color: #777;
}

.post-meta span:after {
	content: '/';
	padding-left: 0.5em;
}

.post-meta > span:last-child:after {
	content: none;
}

.post-meta a {
	color: #777;
}

.post-meta a:hover {
	color: #000;
	text-decoration: none;
}

.single-post .post-content {
	line-height: 1.4;
	padding: 0;
}

@media screen and (max-width: 768px) {
	.single-post .post-content {
		padding: 0 1em;
	}	
}

.single-post .post-content p {
	margin-bottom: 1em;
}
.single-post .post-content > p:first-child {
	font-size: 1.2em;
	color: #000;
	text-align: center;
}

.single-post .post-content ul,
.single-post .post-content ol {
	margin: 1em 0 1em 2.5em;
}

.single-post .post-content ul {
	list-style: disc;
}

.single-post .post-content ol {
	list-style: decimal;
}

.single-post .post-content dl {
	margin: 1em 0;
}

.single-post .post-content dt {
	margin-bottom: 0.6em;
}

.single-post .post-content dd {
	margin: 0 0 1em 2.5em;
}

.single-post .post-content h2 {
	font-size: 1.8em;
	font-weight: bold;
}

.single-post .post-content h3 {
	font-size: 1.6em;
}

.single-post .post-content h4 {
	font-size: 1.4em;
}

.single-post .post-content h5,
.single-post .post-content h6 {
	font-size: 1.2em;
	text-transform: uppercase;
}

.single-post .post-content h2,
.single-post .post-content h3,
.single-post .post-content h4,
.single-post .post-content h5,
.single-post .post-content h6 {
	margin-bottom: 0.6em;
}

.post-content kbd,
.post-content code {
	font: 0.85em Menlo, 'Courier New', monospace;
}

.post-content pre {
	margin: 1em 0;
	padding: 1em 2em;
	white-space: pre-wrap;
	word-break: break-word;
	background: #f6f7f9;
	border: 1px solid #f1f1f1;
}

.single-post .post-content blockquote {
	margin: 1em 0;
	color: #777;
	padding: 1.5em 2em 1.5em 4.5em;
	border: 1px solid #f1f1f1;
	background: transparent url(images/icon-quote.png) no-repeat 2% 50%;
}

.single-post .post-content table {
	margin: 1em 0;
	width: 100%;
	border-collapse: collapse;
	border-spacing: 0;
}

.single-post .post-content caption {
	text-align: left;
	font-weight: bold;
	padding-bottom: 0.5em;
}

.single-post .post-content th,
.single-post .post-content td {
	padding: 0.4em;
	vertical-align: middle;
}

.single-post .post-content th {
	text-transform: uppercase;
	color: #000;
	text-align: center;
	border-bottom: 1px solid #ddd;
}

.single-post .post-content table tr:nth-child(even) {
	background: #f6f6f6;
}


/*= Images */

.post img {
	max-width: 100%;
	height: auto;
	display: block;
	margin: 0 auto;
}

.featured-image {
	display: none;
}

/*= Video */

.video-wrapper {
	padding: 0.5em;
	border: 1px solid #ddd;
	background: #f6f6f6;
	display: block;
	margin: 1em 0;
}

.video-wrapper p {
	text-align: center;
	margin: 0;
	padding: 0.5em 0 0 0;
}

/*= Pagination */

#pagination {
  	margin: 2em 0;
  	text-align: center;
}
#pagination a,
#pagination a:hover,
#pagination strong {
  	display: inline-block;
  	margin: 0 0.5em;
  	width: 2em;
  	height: 2em;
  	line-height: 2;
  	text-align: center;
  	border: 1px solid #ddd;
  	color: #777;
  	text-decoration: none;
  	transition: all 400ms ease-in;
}
#pagination strong,
#pagination a:hover {
  	color: #fff;
  	border-color: #31aae2;
  	background: #31aae2;
}

#pagination > :first-child {
	margin: 0 0.5em 0 0;
}