body, html {
  margin: 0;
  padding: 0;
}
p, h3 {
  line-height: 1.3;
}
div.container {
  margin: 0;
  padding: 0;
}
div.header-wrapper {
  position: relative;
  min-height: 200px;
  margin-bottom: 1.5em;
}
section.header {
  position: absolute;
  background: #36f;
  background: -moz-linear-gradient(right, #3366ff, #2244aa);
  background: -webkit-linear-gradient(right, #3366ff, #2244aa);
  background: -o-linear-gradient(right, #3366ff, #2244aa);
  background: linear-gradient(to left, #3366ff, #2244aa);
  margin: 0;
  padding-top: 1em;
  width: 100%;
  font-family: Comfortaa, sans-serif;
}
section.content {
  padding: 2em 3em 3em 5em;
}
h1 {
  font-weight: normal;
  font-size: 2.7em;
  color: white;
  margin-bottom: 0.2em;
}
#header_bookshelf {
  float: right;
  max-height: 180px;
}
header#header {
  padding: 1em 2em 1em 2em;
  margin-bottom: 4.2em;
}
#header-portfolio {
  color: #bbf;
}
h2 {
  font-size: 1em;
  margin-bottom: 0;
}
.realizzazione {
  margin: 2em 0;
  min-height: 220px;
}
.coverimage {
  height: 200px;
  float: left;
  margin: 0 1.5em .5em 0;
  -moz-box-shadow: 0 0 10px grey;
  -webkit-box-shadow: 0 0 10px grey;
  box-shadow: 0 0 10px grey;
}
.coverimage:hover {
  transform: translate(-2px, -2px);
  -moz-box-shadow: 3px 3px 13 px grey;
  -webkit-box-shadow: 3px 3px 13px grey;
  box-shadow: 3px 3px 13px grey;
}
.vedi-presentazione {
  display: none;
}
.presentazione-button {
  margin: 0.5em 0 2em;
}
.portfolio-presentazione {
  margin: 1.3em 0;
}
.portfolio-presentazione h3 {
  margin-bottom: 0;
}
p.portfolio-svagolavoro {
  display: inline-block;
  margin-top: 1em;
}
p.portfolio-svagolavoro img {
  float:left;
  position:relative;
  top:-1em;
  margin-right:10px;
}
header.software {
  margin-bottom: 1em;
}
header.software h3 {
  margin-bottom: 0.3em;
}
hr {
  color: #36f;
  position: relative;
  left: -1.4em;
  margin: 0;
}
header.header-section {
  max-width: 38%;
  min-width: 200px;
  margin-top: 1.8em;
  margin-bottom: 1.8em;
  font-variant: small-caps;
  font-size: 2em;
  color: #36f;
  text-indent: -1.4em;
}
section.footer {
  font-family: sans-serif;
  text-align: center;
  margin: 1em;
  font-size: 0.8em;
  background-color: #36f;
  position: absolute;
/*  height: 3em;*/
  width:100%;
  margin:0;
  padding:1.2em 0 .5em;
  color: white;
}
section.footer a {
  color: #8fe;
}
#email {
  margin-top: 3.5em;
  margin-left: -2.2em;
  margin-bottom: -2em;
  font-family: sans-serif;
  text-align: right;
}
#email img {
  position: relative;
  margin-right: 0.5em;
  margin-left: 0.5em;
  top:0.8em;
  -moz-transform: rotate(35deg);
  -webkit-transform: rotate(35deg);
  -o-transform: rotate(35deg);
  transform: rotate(35deg);
  -moz-transition: -moz-transform .3s linear;
  -webkit-transition: -webkit-transform .3s linear;
  -o-transition: -o-transform .3s linear;
  transition: transform .3s linear;
}
#email a {
  color: #25e;
  padding: 1em;
  text-decoration: none;
}
#email img:hover {
  -moz-transform: rotate(395deg);
  -webkit-transform: rotate(395deg);
  -o-transform: rotate(395deg);
  transform: rotate(+395deg);
}
section.info-bio h2:hover {
  cursor: pointer;
}
section.info-bio h2 img {
  height: 0.5em;
  float: right;
  position: relative;
  top: 0.5em;
  right: 1.43em;
}
section.info-bio h2 img.rotata {
  transform: rotate(270deg);
}
@media screen and (min-width:681px) {
  section.content {
/*    background: url(/static_files/images/letter-book-semi-trasp_2pag.png) no-repeat 90% 50%;*/
    background-size: 34%;
  }
}
@media screen and (max-width:680px) {
  section.content {
    padding: 5.5em 3em 3em 5em;
  }
  #email {
    margin-top: 4em;
    margin-bottom: -2.5em;
  }
  .coverimage {
    float: none;
  }
}
@media screen and (max-width:490px) {
  div.container {
    overflow: hidden;
  }
  section.header img {
    display: none;
  }
  .coverimage {
    max-width: 100%;
    height: auto;
  }
  section.content {
    padding: 5.5em .5em 3em;
  }
  header.header-section {
    text-indent: 0;
  }
  section.info-bio h2 img {
    right: 0.03em;
  }
  hr {
    left: 0;
  }
  #email span {
    font-size: .9em;
  }
}
