/* -------------------------------------------------------------------------------------------------------------------------------- RESET */

html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed,
figure, figcaption, footer, header,
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
    margin: 0;
    padding: 0;
    border: 0;
    font-size: 100%;
    font: inherit;
    vertical-align: baseline;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure,
footer, header, menu, nav, section {
    display: block;
}
body {
    line-height: 1;
    overflow-x: hidden;
    margin: 0;
}
ol, ul {
    list-style: none;
}
blockquote, q {
    quotes: none;
}
blockquote:before, blockquote:after,
q:before, q:after {
    content: '';
    content: none;
}
table {
    border-collapse: collapse;
    border-spacing: 0;
}
a, a:hover, a:visited, a:active{
    text-decoration: none;
    color: inherit;
}
input, textarea{
    border-radius: 0;
}
input:not([type="radio"]) { /*per ipad e safari*/
    -webkit-appearance: none;
    -webkit-border-radius: 0;
}



/* -------------------------------------------------------------------------------------------------------------------------------- FONT */

@font-face {
    font-family: 'replica-light';
    src: url('../fonts/Replica-Light.eot');
    src: url('../fonts/Replica-Light.eot?#iefix') format('embedded-opentype'),
    url('../fonts/Replica-Light.woff2') format('woff2'),
    url('../fonts/Replica-Light.woff') format('woff'),
    url('../fonts/Replica-Light.ttf') format('truetype'),
    url('../fonts/Replica-Light.svg#Replica-Light') format('svg');
    font-weight: 300;
    font-style: normal;
}

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

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



/* -------------------------------------------------------------------------------------------------------------------------------- GLOBAL */

html, body {
    height: 100%;
    margin: 0;
}

body{
    font-family: replica-light, sans-serif;
    font-size: 15px;
    letter-spacing: 0.05rem;
    line-height: 1.3rem;
    color: #444;
    background-color: #f1f1f1;
}

h1{
    font-size: 18px;
}

img{
    /*standard*/
    transition-property: all;
    transition-duration: 0.2s;
    /*Safari e Chrome */
    -webkit-transition-property: all;
    -webkit-transition-duration: 0.2s;
    /*Opera*/
    -o-transition-property: all;
    -o-transition-duration: 0.2s;
    /*Firefox*/
    -moz-transition-property: all;
    -moz-transition-duration: 0.2s;
    width: 100%;
}

strong, b, .strong{
    font-family: replica-regular;
}

.invisible{
    visibility: hidden;
}

#container{
    min-height: 100%;
    height: auto;
    padding: 3rem 1.5rem 1.5rem;
    margin: 0 auto -3.5rem;/* Negative indent footer by its height */
}

header a.logo{
    font-size: 19px;
    font-family: replica-regular;
    letter-spacing: 0.03em;
    background-color: #f1f1f1;
    padding: 10px;
    padding-left: 0;
}

#menu {
    font-size: 18px;
    font-family: 'replica-light';
    position: absolute;
    top: calc(3rem + 20px);
    background-color: #f1f1f1;
    padding: 6px;
    padding-bottom: 0;
    padding-top: 10px;
    margin-left: -6px;
    display: none;
}
#menu a {
    display: block;
    padding-bottom: 6px;
    color: #A9A9A9;
}

.selected{
    color: #444!important;
}

footer{
    padding-right: calc(1.5rem + 20px) !important;
    padding-left: calc(1.5rem + 20px) !important;
    height: 3.5rem;
    line-height: 3.5rem;
    font-size: 0.70rem;
    /* commentare le ultime due righe per lo sticky footer (che segua lo scroll) */
    position: fixed;
    bottom: 10px;
}

main{
    padding: 0!important;
}

/* Gli oggetti con questa classe saranno visibili solo da smartphone dove sovrascrivo con display:block */
.smartphone{
    display: none;
}



/* -------------------------------------------------------------------------------------------------------------------------------- ABOUT */


#about h1{
    margin-top: 60px;
    margin-bottom: 20px;
}

#about a{
    text-decoration: underline;
}


/* -------------------------------------------------------------------------------------------------------------------------------- WORKS */


#works p{
    line-height: 1.2rem;
    margin-bottom: 40px;
}

.thumbnail {
    position: relative;
    height: 195px;
    overflow: hidden;
    margin-bottom: 10px;
}

.thumbnail img {
    position: absolute;
    left: 50%;
    top: 50%;
    height: auto;
    width: 130%;
    -webkit-transform: translate(-50%,-50%);
    -ms-transform: translate(-50%,-50%);
    transform: translate(-50%,-50%);
}
#works .thumbnail img:hover{
    opacity: 0.5;
}

form#search{
    margin-top: 25%;
    padding: 0;
}
form#search input{
    width: 100%;
    height: 30px;
    border: 0;
    background: none;
    font-size: 15px;
    font-family: replica-light;
    letter-spacing: 0.05rem;
}

#work a{
    margin-bottom: 40px;
}

#work-details{
    margin-top: 25%;
    padding: 0;
}
#work-details h1{
    margin-bottom: 20px;
}
#work-details p{
    margin-bottom: 40px;
}
