@import url(https://fonts.googleapis.com/css?family=Lato:300,400,700);

*{
    margin: 0;
    padding: 0;
}

html{
    height: 100%;
    min-width: 320px;
}

body {
    height:100%;
    text-align:center;
    font-family: 'Lato',Calibri,Arial,sans-serif;
    font-size: 16px;
}

.nascosto{
    /*visibility: hidden;*/
    /*opacity: 0;*/
    top: -100px;
    -webkit-transition: all 0.5s ease;
    -moz-transition: all 0.5s ease;
    -o-transition: all 0.5s ease;
    -ms-transition: all 0.5s ease;
    transition: all 0.7s ease;
}

header{
    position: absolute;
    top: 0px;
    left: 0px;
    width: 100%;
    z-index: 100;

    -webkit-transition: all 0.9s ease;
    -moz-transition: all 0.9s ease;
    -o-transition: all 0.9s ease;
    -ms-transition: all 0.9s ease;
    transition: all 0.9s ease;
}

nav {
  margin: 20px auto;
}
 
nav ul {
  overflow: auto;
  list-style-type: none;
  text-align: center;
  margin-left: 2px; 
}
 
nav ul li {
    height: 25px;
    width: 180px;
    display: inline-block;
    margin-right: 0px;
    /*border-right: 2px solid #aaa;*/
    /*padding: 0 10px;*/
}
 
nav ul li:last-child {
  border-right: none;
}
 
nav ul li a {
    width: 100%;
  text-decoration: none;
  /*color: #ccc;*/
  color: #6FAAB8;
  font: 25px/1 Helvetica, Verdana, sans-serif;
  text-transform: uppercase;
 
  -webkit-transition: all 0.5s ease;
  -moz-transition: all 0.5s ease;
  -o-transition: all 0.5s ease;
  -ms-transition: all 0.5s ease;
  transition: all 0.5s ease;
}

nav ul li:nth-child(-n+2) a {     
  color: #fff;
}

 
nav ul li a:hover {
  color: #888;
}
 








#sebastian {
    position: relative;
    overflow: auto;
    width: 100%;
    height:100%;
    left:-50%;
    color: white;
    background-color: #185D6E;
    -webkit-transition: all 600ms ease-out;
    transition: 0.6s;
}


#profilo1 {
    position: fixed;
    top: 0px;
    left: 0;
    width: 50%;
    height: 100%;
    background-color: #6FAAB8;
    display: table;
    -webkit-transition: all 600ms ease-out;
    transition: 0.6s;
}

#profilo1 img{
    border-radius: 50%;
    max-width: 22%;
    height: auto;
    opacity: 0.7;
    -webkit-transition: all 600ms ease-out;
    transition: 0.6s;
    border: 5px solid #fff;
}

#sebastian.attivo{
    /*width: 100%;*/
    left: 0;
    -webkit-transition: all 600ms ease-out;
    transition : 0.6s;
    /*background-color:green;*/
 /*   -webkit-transition: all 500ms ease-out 0;
    -moz-transition: background-color 500ms ease-out 0;
    -o-transition: background-color 500ms ease-out 0;
    transition: background-color 500ms ease-out 0;*/
}

.attivo #profilo1 {
    position: fixed;
    top: 0;
    width: 25%;
    left : 75%;
    -webkit-transition: all 600ms ease-out;
    transition: 0.6s;
}

.attivo #contenuto {
    left : 0;
    -webkit-transition: all 600ms ease-out;
    transition: 0.6s;
}

.attivo  #profilo1 img {
    border: 2px solid #fff;
}


.description {
    position: relative;
    font-size: 2em;
    font-weight: 300;
    display: table-cell;
    vertical-align: middle;
    text-align: center;
    -webkit-transition: all 600ms ease-out;
    transition: 0.6s;
}
.attivo .description {
    font-size: 1em;
    transition: 0.6s;
}

.description span {
    font-size: 2em;
    font-weight: 300;
    padding: 0.1em;
    -webkit-transition: all 600ms ease-out;
    transition: 0.6s;
}

.description hr{
    clear: both;
    margin: auto;
    max-width: 30%;
    background-color: white;
    border: 0;
    height: 2px;
    -webkit-transition: all 600ms ease-out;
    transition: 0.6s;
}
.description p{
    font-variant: small-caps;
    font-weight: 600;  
    -webkit-transition: all 600ms ease-out;
    transition: 0.6s;  
}
.description span{
    display: inline-block;
}

.innerPage{
        /*word-wrap:normal;*/
        /*max-height: 90%;*/
        overflow: hidden;
        text-align: right;
        margin : 2em 1.5em  1em 1em;
}




#contenuto {
    text-align: right;
    position: absolute;
    left: -75%;
    width: 75%;
    max-width: 75%;
    height: 100%;
    max-height : 100%;
    color: white; 
    font-size: 1.4em;
    font-weight: 300;
    /*white-space : nowrap;*/
    -webkit-transition: all 600ms ease-out;
    transition: 0.6s;
}

#contenuto p{
    font-size: 1.2em;
    margin: 1em 0;
}
#contenuto h2{
    font-size: 2.4em;
    font-weight: 300;
    margin: 0 0 1em 0;
}
#contenuto a{
    color: #CCC;
    text-decoration: none;
}

section{
    padding-left: 1em;   
}

@media screen and (max-width: 980px)
{
    body{
        font-size: 10px;
    }
    #profilo1 img{
        max-width: 55%;
        height: auto;
        -webkit-transition: all 600ms ease-out;
        transition: 0.6s;
    }
}

@media screen and (max-width: 560px)
{
    body{
        font-size: 10px;
    }

    .small-hide{
            font-size: 0.5em;
            opacity: 1;
            -webkit-transition: all 600ms ease-out;
            transition: 0.6s;
    }
 
    .attivo .small-hide{
        opacity: 0;
        -webkit-transition: all 400ms ease-out;
        transition: 0.4s;
    }

    #profilo1 img{
        max-width: 80px;
        height: auto;
        -webkit-transition: all 600ms ease-out;
        transition: 0.6s;
    }
    .attivo #profilo1 img{
        max-width: 60px;
        height: auto;
        -webkit-transition: all 600ms ease-out;
        transition: 0.6s;
    }
}
