/*	

	Less+ by Jimmy Rosén, http://www.angrycreative.se/projekt/less-framework
	Based on Less Framework 3 by Joni Korpi, http://lessframework.com
	
*/

/*	Resets
	------	*/

html, body, div, span, object, iframe, h1, h2, h3, h4, h5, h6, 
p, blockquote, pre, a, abbr, address, cite, code, del, dfn, em, 
img, ins, kbd, q, samp, small, strong, sub, sup, var, b, i, 
dl, dt, dd, ol, ul, li, fieldset, form, label, legend, 
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, figure, figcaption, hgroup, 
menu, footer, header, nav, section, summary, time, mark, audio, video {
	margin: 0;
	padding: 0;
	border: 0;
}

article, aside, canvas, figure, figure img, figcaption, hgroup,
footer, header, nav, section, audio, video {
	display: block;
}

a {text-decoration: none}

a img {border: 0;}

figure {position: relative;}
figure img {width: 100%;}

ol, ul {list-style: none}

blockquote {quotes: none}

blockquote:before, blockquote:after, q:before, q:after {
    content: '';
    content: none;
}

del {text-decoration: line-through}

/* tables still need 'cellspacing="0"' in the markup */
table {
    border-collapse: collapse;
    border-spacing: 0;
}



/* Snippets
   -------- */

*, *:before, *:after {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}

.clearfix:before,
.clearfix:after {
    content: " ";
    display: table;
}
 
.clearfix:after {
    clear: both;
}
 
/* IE6/7 support */
.clearfix {
    *zoom: 1;
}

/* Da usare al posto di display:none per nascondere le cose ma lasciarle visibili da screen readers e search bots */
.visuallyhidden {
    position: absolute;
    width: 1px; /* Setting this to 0 make it invisible for VoiceOver */
    height: 1px; /* Setting this to 0 make it invisible for VoiceOver */
    padding: 0;
    margin: -1px;
    border: 0;
    clip: rect(0 0 0 0);
    overflow: hidden;    
}

/* Al posto di position: absolute; left: -9999px; */
.ir {
    text-indent: 100%;
    white-space: nowrap;
    overflow: hidden;
}

/* Retina display, see:http://css-tricks.com/snippets/css/retina-display-media-query/ */
@media
only screen and (-webkit-min-device-pixel-ratio: 2),
only screen and (   min--moz-device-pixel-ratio: 2), /* Looks like a bug, so may want to add: */
only screen and (   -moz-min-device-pixel-ratio: 2),
only screen and (     -o-min-device-pixel-ratio: 2/1),
only screen and (        min-device-pixel-ratio: 2),
only screen and (                min-resolution: 192dpi),
only screen and (                min-resolution: 2dppx) { 
    /* Your retina specific stuff here */
}

.float-left {
    float:left;
}

.float-right {
    float:right;
}



/* ---- STILE ---- */

html {
    height: 100%;
}

::selection {
    background:#e30430;
    color: #000;
}
::-moz-selection {
    background:#e30430;
    color: #000;
}

img::selection      {background: transparent;}
img::-moz-selection {background: transparent;}

body {
    font-family: "ff-tisa-web-pro", 'Georgia', serif;
    line-height: 160%;
    width:100%;
    height: 100%;
    background-color: #FAFAFA;
    -ms-text-size-adjust:100%;
    -webkit-text-size-adjust:100%;
}

img {
    float:left;
}


/* ---- citazione ---- */

/* ROTATOR */

.cbp-qtrotator {
    position: fixed;
    width: 100%;
    min-height: 40px;
    background-color: #000;
    z-index: 10000;
}

.cbp-qtrotator .cbp-qtcontent {
    position: absolute;
    min-height: 40px;
    top: 0;
    z-index: 0;
    opacity: 0;
    width: 100%;
}

.no-js .cbp-qtrotator .cbp-qtcontent {
    border-bottom: none;
}

.cbp-qtrotator .cbp-qtcontent.cbp-qtcurrent,
.no-js .cbp-qtrotator .cbp-qtcontent {
    position: relative; 
    z-index: 10000;
    pointer-events: auto;
    opacity: 1;
}

.cbp-qtrotator .cbp-qtcontent:before,
.cbp-qtrotator .cbp-qtcontent:after {
    content: " ";
    display: table;
}

.cbp-qtrotator .cbp-qtcontent:after {
    clear: both;
}

.cbp-qtprogress {
    position: absolute;
    background: #e30430;
    height: 3px;
    width: 0%;
    top: 40px;
    z-index: 10001;
}

/* */

q {
    background-color: #000;
    display:block;
    min-height: 40px;
    margin-left: 170px;
    font-family: "ff-tisa-web-pro", "Georgia", sans-serif;
    font-size: 14px;
    font-weight: 400;
    font-style: italic;
    color: #FFF;
    vertical-align: center;
}

.cit {
    width: calc(100% - 57px);
    margin: 8px 0;
}

.firma {
    font-family: "Alegreya Sans SC", "Arial", sans-serif;
    font-size: 14px;
    font-weight: 400;
    font-style: normal;
    text-transform: lowercase;
    color: #FFF;
    background-color: black;
    /* cursor: pointer; */
    outline:none;
    border: none;
    margin-left:8px;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    -webkit-border-radius: 0;
    -moz-border-radius: 0;
    border-radius: 0;
    -webkit-box-shadow: none;
    -moz-box-shadow: none;
    box-shadow: none;
}

.firma:before {
    content:"[";
    font-family: "Alegreya Sans SC", "Arial", sans-serif;
    font-size: 16px;
    font-weight: 400;
    color: #e30430;
    padding-right:5px;
}

.firma:after {
    content:"]";
    font-family: "Alegreya Sans SC", "Arial", sans-serif;
    font-size: 16px;
    font-weight: 400;
    color: #e30430;
    padding-left:5px;
}

/*
.expanded {
    width:100%;
    left:0;
    background-color:#000;
    padding:0px 0px 40px 205px;
}

.expanded article {
    width: 710px;
}

.expanded article:before {
    padding-top: 20px;
    margin-left: 20px;
    width: 695px;
    height: 2px;
    background-image: url(../img/trattino333.svg);
    background-size: auto 2px;
    background-repeat: repeat-x;
} */

/* ---- info autore citazione ---- */

.quote article img {
    margin-left:20px;
}


.autore {
    margin-left:20px;
    width: 270px;
    float:left;
}

.autore h3 {
    font-family: "Playfair Display", "Georgia", serif;
    font-style: italic;
    font-size: 24px;
    font-weight: 900;
    color: #FFF;
    margin-bottom:2px;
}

.autore p {
    font-family: "ff-tisa-web-pro", "Georgia", sans-serif;
    font-size: 13px;
    font-weight: 400;
    line-height: 21px;
    color: #FFF;
    margin-top:15px;
}

.infoautore {
    width:270px;
    font-family: "Alegreya Sans SC", "Arial", sans-serif;
    font-size: 13px;
    font-weight: 400;
    text-transform: lowercase;
    color: #999;
}

.quote sidebar {
    width:150px;
    margin-left: 50px;
    float:left;
    font-family: "Alegreya Sans SC", "Arial", sans-serif;
    font-size: 13px;
    line-height:14px;
    font-weight: 400;
    color: #999;
}

.quote sidebar a {
    text-decoration: none;
    color:#FFF;
    -webkit-transition: all 0.2s ease-out;
    -moz-transition: all 0.2s ease-out;
    -ms-transition: all 0.2s ease-out;
    -o-transition: all 0.2s ease-out;
    transition: all 0.2s ease-out;
}

/* ---- WRAPPER ---- */

#wrapper {
    width: 100%;
    height: 100%;
    margin: 0 auto;
    position: relative;
    z-index: 10;
    left: 0;
    -webkit-transition: all 0.3s;
    -moz-transition: all 0.3s;
    -ms-transition: all 0.3s;
    -o-transition: all 0.3s;
    transition: all 0.3s;
}

/* ---- header ---- */

header {
    float:left;
    width:205px;
    height: 100%;
    background-color: #FFF;
    position: fixed;
    top:40px;
}

.logo {
    display: block;
    width:135px;
    height: 92px;
    margin: 55px 35px 65px 35px;
    background-image: url(../img/glifo3.png);
    background-position: center center;
    background-size: 135px 92px;
}

.redhyphen { /* ---- linea rossa sotto logo ---- */
    background-color: #e30430;
    width:75px;
    height:3px;
    margin: 0px 65px 40px 65px;
    display: none;
}

nav li {
    text-align: center;
    /* margin-bottom: 30px; */
    margin-bottom: 40px;
    margin-right: 40px;
    margin-left: 40px;
}

nav li a {
    float: center;
    padding: 3px 6px;
    background-color: transparent;
    text-decoration: none;
    text-transform: lowercase;
    font-family: "Alegreya Sans SC", "Arial", sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: #666;
}

nav li a:hover, nav li a.selected {
    background-color: #e30430;
    color: #FFF;
    -webkit-transition: all 0.2s ease-out;
    -moz-transition: all 0.2s ease-out;
    -ms-transition: all 0.2s ease-out;
    -o-transition: all 0.2s ease-out;
    transition: all 0.2s ease-out;
    margin-left: 3px;
}

/* ---- MAIN / contenuto principale ---- */

main {
    float: left;
    width: calc(100% - 205px);
    margin: 40px 0 0 205px;
}

main section {
    margin-bottom: 40px;
}

main  article p {
    position: relative;
    z-index: 1; /* needed for setting pseudo-element z-index */
    overflow: hidden;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

main article p a {
    position: relative;
    display: inline-block;
    outline: none;
    color: #000;
    vertical-align: bottom;
    text-decoration: none;
    white-space: nowrap;
}

main  article p a::before,
main  article p a::after {
    pointer-events: none;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    -webkit-font-smoothing: antialiased;
    font-smoothing: antialiased;
}

main article, main address {
    float: left;
    margin-left: 15px;
    width: 495px;
}

main article h2 {
    font-family: "Playfair Display", "Georgia", serif;
    font-style: italic;
    font-size: 24px;
    line-height: 32px;
    font-weight: 900;
    color: #000;
    margin-bottom: 20px;
}

main article p {
    font-size: 16px;
}

main .single-project article p {
    font-size: 16px;
    display: inline;
}

main article p a {
    text-decoration: none;
    color:#000;
    -webkit-transition: color 0.3s;
    transition: color 0.3s;
    -webkit-perspective: 600px;
    perspective: 600px;
    -webkit-perspective-origin: 50% 100%;
    perspective-origin: 50% 100%;
}

main article p a:before, main article p a:after {
    position: absolute;
    top: 0;
    left: -3px;
    z-index: -1;
    box-sizing: content-box;
    padding: 0 3px;
    width: 100%;
    height: 100%;
    content: '';
}

main article p a:before {
    background-color: #e30430;
    -webkit-transition: -webkit-transform 0.2s;
    transition: transform 0.2s;
    -webkit-transition-timing-function: cubic-bezier(0.7,0,0.3,1);
    transition-timing-function: cubic-bezier(0.7,0,0.3,1);
    -webkit-transform: rotateX(90deg);
    transform: rotateX(90deg);
    -webkit-transform-origin: 50% 100%;
    transform-origin: 50% 100%;
}

main article p a:hover:before, main article p a:focus:before {
    -webkit-transform: rotateX(0deg);
    transform: rotateX(0deg);
}

main article p a:after {
    border-bottom: 2px solid #e30430;
}

main sidebar {
    float: left;
    margin-left: 50px;
    width:150px;
}

main sidebar, main sidebar a {
    font-family: "Alegreya Sans SC", "Arial", sans-serif;
    font-size: 13px;
    line-height:14px;
    font-weight: 400;
    color: #999;
    text-transform: lowercase;
    text-decoration: none;
}

main sidebar a:hover {
    color: #000;
    text-decoration: none;
    -webkit-transition: all 0.2s ease-out;
    -moz-transition: all 0.2s ease-out;
    -ms-transition: all 0.2s ease-out;
    -o-transition: all 0.2s ease-out;
    transition: all 0.2s ease-out;
}

.home {
    margin-bottom: 80px;
}

.home h2 {
    margin-bottom: 40px;
}

.aiap {
    display: block;
    width:136px;
    height: 82px;
    margin: 42px 0px 42px 0px;
    background-image: url(../img/aiap.png);
    background-position: left top;
    background-size: 136px auto;
    background-repeat: no-repeat;
    opacity: 0.4;
}

.aiap:hover {
    opacity: 1;
}

.seguici {
    line-height: 24px;
}

.facebook:before {
    content: "\e60d";
}

.google+:before {
    content: "\e60e";
}

main footer {
    float: left;
    margin-left: 15px;
    width: 495px;
    font-family: "Alegreya Sans SC", "Verdana", sans-serif;
    font-size: 12px;
    line-height:14px;
    font-weight: 400;
    color: #999;
    text-transform: lowercase;
    padding: 20px 0;
    clear: both;
}

a.privacy {
    text-decoration: underline;
    color: #999;
}

a.privacy:hover {
    color: #000;
    -webkit-transition: all 0.2s ease-out;
    -moz-transition: all 0.2s ease-out;
    -ms-transition: all 0.2s ease-out;
    -o-transition: all 0.2s ease-out;
    transition: all 0.2s ease-out;
}

/* ---- PAGINE GENERALE ---- */

.studio, .lettere, .maps, .single-project, .copertina, .copertina-news {
    width:710px;
}

.grid-wrap {
    width: 795px;
}

.studio, .maps {
    height:370px;
}

/* ---- PAGINA STUDIO ---- */

.studio {
    background-image: url(../img/studio.jpg);
    background-position: top center;
    background-size: auto 370px;
}

.lettere {
    margin-left: 15px;
}

.lettere article {
    float:left;
    width:215px;
    min-height: 420px;
    padding-top: 100px;
    margin: 0 25px 30px 0;
}

.lettere article:nth-child(3n+0) {
    margin-right: 0px;
}

.lettere article h4 {
    font-family: "ff-tisa-web-pro", "Georgia", sans-serif;
    font-size: 17px;
    font-weight: 400;
    font-style: normal;
    color: #e30430;
    padding-bottom: 5px;
}

.lettere article h5 {
    height: 30px;
    font-family: "Alegreya Sans SC", "Arial", sans-serif;
    font-size: 13px;
    line-height:14px;
    font-weight: 400;
    color: #999;
    text-transform: lowercase;
}

.lettere article p {
    font-family: "ff-tisa-web-pro", "Georgia", sans-serif;
    font-size: 14px;
    font-weight: 400;
    font-style: normal;
    line-height: 140%;
    color: #000;
}

.luciano {
    background-image: url(../img/lettere/luciano.png);
    background-size:80px;
    background-repeat: no-repeat;
}

.sonia {
    background-image: url(../img/lettere/sonia.png);
    background-size:80px;
    background-repeat: no-repeat;
    
}

.fabiane {
    background-image: url(../img/lettere/fabiane.png);
    background-size:80px;
    background-repeat: no-repeat;
    
}

.roberto {
    background-image: url(../img/lettere/roberto.png);
    background-size:80px;
    background-repeat: no-repeat;
}

.dalila {
    background-image: url(../img/lettere/dalila.png);
    background-size:80px;
    background-repeat: no-repeat;
}

.marco {
    background-image: url(../img/lettere/marco.png);
    background-size:80px;
    background-repeat: no-repeat;
}

.antonio {
    background-image: url(../img/lettere/antonio.png);
    background-size:80px;
    background-repeat: no-repeat;
}

.rosanna {
    background-image: url(../img/lettere/rosanna.png);
    background-size:80px;
    background-repeat: no-repeat;
}

.laura {
    background-image: url(../img/lettere/laura.png);
    background-size:80px;
    background-repeat: no-repeat;
}

/* ---- PAGINA CONTATTI ---- */

.contatti address {
    float:left;
    width:215px;
    margin-bottom: 50px;
}

.contatti address h4 {
    font-family: "Alegreya Sans SC", "Arial", sans-serif;
    font-size: 17px;
    font-weight: 400;
    font-style: normal;
    color: #e30430;
    padding-bottom: 15px;
    text-transform: lowercase;
}

.contatti address p  {
    font-family: "ff-tisa-web-pro", "Georgia", sans-serif;
    font-size: 14px;
    font-weight: 400;
    font-style: normal;
    line-height: 140%;
    color: #000;
}

.contatti p span {
    font-family: "Alegreya Sans SC", "Arial", sans-serif;
    font-weight: 400;
    color: #e30430;
}

.telefono {
    margin-top: 37px;
}

.mail {
    margin-top: 10px;
}

.mail a {
    text-decoration: none;
    color: #e30430;
}

.mail a:hover {
    color: #000;
    -webkit-transition: all 0.2s ease-out;
    -moz-transition: all 0.2s ease-out;
    -ms-transition: all 0.2s ease-out;
    -o-transition: all 0.2s ease-out;
    transition: all 0.2s ease-out;
}

a.dest {
    display: block;
    margin-left: 15px;
    padding: 5px 0;
    font-family: "Alegreya Sans SC", "Arial", sans-serif;
    font-weight: 400;
    font-size: 13px;
    color: #000;
    text-transform: lowercase;
}

a.dest:hover {
    color: #e30430;
}

/* ---- PAGINA PROGETTI ---- */

.grid li {
    width: 230px;
    float: left;
}

.grid-wrap figure {
    float: left;
    margin: 0 10px 10px 0;
    background-color: #42668a;
    position: relative;
    z-index: 1;
    display: inline-block;
    overflow: hidden;
}

.grid-wrap figcaption {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    padding: 20px;
}

.grid-wrap figure img {
    position: relative;
    display: block;
}

figure.effect h2 {
    font-family: "Playfair Display", "Georgia", serif;
    font-style: italic;
    font-size: 24px;
    line-height: 32px;
    font-weight: 900;
    color: #FFF;
    margin-bottom: 5px;
}

figure.effect h3, .text-box article h3 {
    font-family: "Alegreya Sans SC", "Arial", sans-serif;
    font-size: 14px;
    line-height: 14px;
    font-weight: 400;
    font-style: normal;
    text-transform: lowercase;
    color: #999;
}

/* effetto hover */

figure.effect {
    background: #000;
}

figure.effect img {
    width: -webkit-calc(100% + 20px);
    width: calc(100% + 20px);
    -webkit-transition: opacity 0.35s, -webkit-transform 0.35s;
    transition: opacity 0.35s, transform 0.35s;
    -webkit-transform: translate3d(-10px,0,0);
    transform: translate3d(-10px,0,0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

figure.effect:hover img {
    opacity: 0.3;
    -webkit-transform: translate3d(0,0,0);
    transform: translate3d(0,0,0);
}

figure.effect h2 {
    position: relative;
    overflow: hidden;
    padding-bottom: 15px;
    padding-left: 2px;
    -webkit-transition: -webkit-transform 0.35s;
    transition: transform 0.35s;
    -webkit-transform: translate3d(-120%,0,0);
    transform: translate3d(-120%,0,0);
}

figure.effect h2::after {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-image: url(../img/trattino.svg);
    background-repeat: no-repeat;
    content: '';
    -webkit-transition: -webkit-transform 0.35s;
    transition: transform 0.35s;
    -webkit-transform: translate3d(-100%,0,0);
    transform: translate3d(-100%,0,0);
}

figure.effect:hover h2::after, figure.effect:hover h2 {
    -webkit-transform: translate3d(0,0,0);
    transform: translate3d(0,0,0);
}

figure.effect h3 {
    padding-top: 10px;
    opacity: 0;
    -webkit-transition: opacity 0.35s, -webkit-transform 0.35s;
    transition: opacity 0.35s, transform 0.35s;
    -webkit-transform: translate3d(100%,0,0);
    transform: translate3d(100%,0,0);
}

figure.effect:hover h3 {
    opacity: 1;
    -webkit-transform: translate3d(0,0,0);
    transform: translate3d(0,0,0);
}

/* text-box */

.text-box {
    background-image: url(../img/bg-text-box.svg);
    background-size: 20px 20px;
    background-repeat: repeat;
    background-position: left top;
    float: left;
    margin: 0 10px 10px 0;
    position: relative;
    z-index: 1;
    display: inline-block;
    overflow: hidden;
}

.text-box article {
    position: absolute;
    width: calc(100% - 40px);
    height: calc(100% - 40px);
    margin: 20px;
    background-color: #FFF;
    padding: 20px;
}

.text-box article h2 {
    color: #000
}

a.text-box:hover, a.text-box:hover article {
    background-color: #e30430;
    -webkit-transition: all 0.2s ease-out;
    -moz-transition: all 0.2s ease-out;
    -ms-transition: all 0.2s ease-out;
    -o-transition: all 0.2s ease-out;
    transition: all 0.2s ease-out;
}

a.text-box:hover article h2, a.text-box:hover article h3 {
    color: #FFF;
    -webkit-transition: all 0.2s ease-out;
    -moz-transition: all 0.2s ease-out;
    -ms-transition: all 0.2s ease-out;
    -o-transition: all 0.2s ease-out;
    transition: all 0.2s ease-out;
}

/* ---- PAGINA SINGOLO PROGETTO ---- */

section.single-project nav {
    margin:13px 0 0 -6px;
}

section.single-project nav a {
    color:#999;
    position:relative;
    font-size: 18px;
    font-family: 'icomoon';
    speak: none;
    font-style: normal;
    font-weight: normal;
    font-variant: normal;
    text-transform: none;
    line-height: 1;

    /* Better Font Rendering =========== */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

section.single-project nav a:hover {
    color:#000;
    -webkit-transition: all 0.2s ease-out;
    -moz-transition: all 0.2s ease-out;
    -ms-transition: all 0.2s ease-out;
    -o-transition: all 0.2s ease-out;
    transition: all 0.2s ease-out;
}

section.single-project nav a.layout:after {
    content: "\e605";
}

section.single-project nav a.arrow-left:after {
    font-family: 'icomoon';
    content: "\e608";
}

section.single-project nav a.arrow-right:after {
    font-family: 'icomoon';
    content: "\e609";
}

.single-project sidebar p {
    color: #999;
    margin-bottom: 10px;
}

.single-project sidebar a {
    color: #000;
}

.single-project sidebar a:hover {
    color: #999;
    -webkit-transition: all 0.2s ease-out;
    -moz-transition: all 0.2s ease-out;
    -ms-transition: all 0.2s ease-out;
    -o-transition: all 0.2s ease-out;
    transition: all 0.2s ease-out;
}

.copertina figure {
    float: left;
    position: relative;
    z-index: 1;
    display: inline-block;
    overflow: hidden;
}

.copertina figure img {
    position: relative;
    display: block;
    height: 370px;
    width: auto;
    margin-left: -120px; /* [950(larghezza img copertina)-710(larghezza box copertina)]/2=120 */
}

.copertina figcaption {
    padding: 385px 0 0 15px;
}

.copertina figcaption h3 {
    font-family: "Alegreya Sans SC", "Arial", sans-serif;
    font-size: 14px;
    line-height: 14px;
    font-weight: 400;
    font-style: normal;
    text-transform: lowercase;
    color: #999;
}

.gallery {
    max-width: 720px;
}

.gallery img {
    margin: 0 10px 10px 0; 
}

.gallery img.wd350 {
    width: 350px;
}

.gallery img.wd409 {
    width: 409px;
}

.gallery img.wd138 {
    width: 138px;
}

.gallery img.wd230 {
    width: 230px;
}

img.grey-border, iframe.grey-border {
    border: solid 15px #f0f0f0;
}

.gallery iframe {
    width: 710px;
    height: 412px;
}

/* ---- PAGINA NEWS ---- */

.news sidebar p {
    color: #999;
    margin-bottom: 10px;
}

.news sidebar a {
    color: #000;
}

.news sidebar a:hover {
    color: #999;
    -webkit-transition: all 0.2s ease-out;
    -moz-transition: all 0.2s ease-out;
    -ms-transition: all 0.2s ease-out;
    -o-transition: all 0.2s ease-out;
    transition: all 0.2s ease-out;
}

.copertina-news figure {
    float: left;
    position: relative;
    z-index: 1;
    display: inline-block;
    margin-top: 50px;
}

.copertina-news figure img {
    position: relative;
    display: block;
    height: 370px;
    width: auto;
}

.copertina-news figure time {
    position: absolute;
    left: 555px;
    top: 0;
    margin-top: -20px;
    width: 80px;
    height: 90px;
    padding: 23px 0px;
    background-color: #e30430;
    text-align: center;
    font-family: "Alegreya Sans SC", "Arial", sans-serif;
    font-style: normal;
    text-align: center;
}

.copertina-news figure time .day {
    font-size: 54px;
    font-weight: 900;
    color: #FFF;
    margin: 3px 0 10px 0;
}

.copertina-news figure time .month {
    font-size: 13px;
    line-height: 13px;
    font-weight: 400;
    text-transform: uppercase;
    color: #000;
}

.mobile {
    display: none;
}


/*  -------- 1200 CSS -------- */

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

    .mobile {
        display: none;
    }

    body {
        background: url(../img/bg-image.png) 1440px 0 no-repeat;
        background-color: #fafafa;
        background-size: 1000px auto;
        background-position-x: 1440px;
        background-repeat: no-repeat;
    }

    .expanded article {
    width: 950px;
    }

    .expanded article:before {
        width: 930px;
    }

    .autore, .infoautore {
        width: 470px;
    }

    main article, main address {
        width: 655px;
    }

    .studio, .lettere, .maps, .single-project, .copertina, .copertina-news, .news {
        width:950px;
    }

    .lettere article:nth-child(3n+0) {
        margin-right: 25px;
    }

    .lettere article:nth-child(4n+0) {
        margin-right: 0px;
    }

    .grid-wrap {
        min-width: 960px;
    }

    .gallery {
        min-width: 720px;
    }

    .copertina figure img {
        margin-left: 0;
    }

    .copertina-news figure time {
        left:720px;
    }

}

/*  -------- 768 CSS -------- */

@media only screen and (max-width: 1000px) and (min-width: 768px) {

    body {
        background-color: transparent;
    }

    /* CITAZIONI */

    q {
        width: 710px;
        margin: 0 auto;
    }

    .expanded {
        padding-left:15px;
    }

    .expanded article {
        width: 710px;
        margin: 0 auto;
    }

    .expanded article:before {
        margin-left: 0px;
    }

    .expanded article img {
        margin:0;
    }

    .expanded article sidebar {
        width: 150px;
    }

    /* WRAPPER */

    #wrapper {
        margin: 0 auto;
        width: 710px;
    }

    /* HEADER */

    header {
        width: 710px;
        height: 140px;
        position: relative;
        margin: 0;
    }

    .redhyphen {
        display: none;
    }

    .header-left {
        float: left;
        width: 170px;
    }

    .logo {
        margin: 20px auto;
    }

    header nav {
        float: left;
        width:540px;
        margin-top: 58px;
    }

    header nav ul li {
        float: left;
        text-align: center;
        /* width: 25%; da rimettere quando ci sarà news */
        width: 50%;
        margin: 0;
    }

    /* MAIN */

    main {
        width: 710px;
        margin: 38px auto 0;
    }

    .studio, .lettere, .maps, .single-project, .copertina, .copertina-news, .news {
        width:710px;
    }

    .grid-wrap, .gallery {
        width:720px;
    }

    .pjwd170{
        width:230px;
        height: 200px;
    }
    .pjwd230{
        width:230px;
        height: 200px;
    }
    .pjwd290{
        width:230px;
        height: 200px;
    }
    .pjwd350{
        width:230px;
        height: 200px;
    }
    .pjwd410{
        width:230px;
        height: 200px;
    }

    .copertina-news figure:first-child {
        margin-top: 0px; 
    }

}

/*  -------- 480 CSS -------- */

@media only screen and (max-width: 767px) and (min-width: 480px) {

    .mobile {
        display: block;
    }

    .desktop {
        display: none;
    }

    body {
        background-color: transparent;
        height: auto;
    }

    /* CITAZIONI */

    q {
        width: 710px;
        margin: 0 auto;
    }

    .expanded {
        padding-left:15px;
    }

    .expanded article {
        width: 710px;
        margin: 0 auto;
    }

    .expanded article:before {
        margin-left: 0px;
    }

    .expanded article img {
        margin:0;
    }

    .expanded article sidebar {
        width: 150px;
    }

    /* WRAPPER */

    #wrapper {
        margin: 0 auto;
        width: 480px;
        height: 100%;
    }

    /* HEADER */

    header {
        width: 480px;
        height: 165px;
        position: relative;
        margin: 0 10px;
        top:0px;
    }

    .redhyphen {
        background-color: #e30430;
        width:75px;
        height:3px;
        margin: 30px auto;
    }

    .header-left {
        width: 480px;
    }

    .logo {
        margin: 20px auto;
    }

    header nav {
        float: left;
        width:450px;
        margin-top: 0px;
    }



    header nav ul li {
        float: left;
        text-align: center;
        /* width: 25%; da rimettere quando ci sarà news */
        width: 50%;
        margin: 0;
    }

    /* MAIN */

    main {
        width: 480px;
        margin: 10px auto 0;
    }

    main section {
        margin-left: 10px;
        margin-right: 10px;
    }

    main section.grid-wrap {
        margin-right: 0px;
    }

    main article, main address {
        width: 460px;
        margin-left: 0px;
    }

    main sidebar {
        width: 460px;
        margin-left: 0px;
    }

    main .single-project sidebar, main .news sidebar {
        margin-top: 20px;
    }

    main sidebar .social {
        float: left;
        width: 50%;
        margin-top: 40px;
    }

    .aiap {
        margin: 0px;
    }

    .studio, .lettere, .maps, .single-project, .copertina, .copertina-news, .news {
        width:460px;
    }

    .studio, .maps, .copertina {
        height: 240px;
        background-size: auto 240px;
    }

    .lettere {
        margin-left: 10px;
    }

    .lettere article:nth-child(3n+0) {
        margin-right: 25px;
    }

    .lettere article:nth-child(2n+0) {
        margin-right: 0px;
    }

    .grid-wrap {
        width: 470px;
        margin-right: 0px;
    }

    section.single-project nav {
        margin: -5px 0 15px 0;
    }

    section.single-project nav a {
        padding: 0 5px;
    }

    .copertina figure img {
        margin-left: -78px; /* [616(larghezza img copertina ridimensionata con h240)-460(larghezza box copertina)]/2=78 */
    }

    .nav-projects {
        margin: 0;
        text-align: center;
    }

    .pjwd170{
        width:225px;
        height: 200px;
    }
    .pjwd230{
        width:225px;
        height: 200px;
    }
    .pjwd290{
        width:225px;
        height: 200px;
    }
    .pjwd350{
        width:225px;
        height: 200px;
    }
    .pjwd410{
        width:225px;
        height: 200px;
    }

    main footer {
        width: 460px;
        margin-left: 10px;
        margin-right: 10px;
    }

    .copertina-news {
        margin-bottom: 30px;
    }

    .copertina figcaption {
        padding: 250px 0 0 0;
    }

    .copertina-news figure img, .copertina figure img {
        height: 240px;
        width: auto;
    }

    .copertina-news figure:first-child {
        margin-top: 0px; 
    }

    .copertina-news figure time {
        left:345px;
        width: 75px;
        height: 85px;
        margin-top: -10px;
        padding: 16px 0px;
    }

    .copertina-news figure time .day {
        font-size: 48px;
    }

    .copertina-news figure time .month {
        font-size: 11px;
    }

    .gallery img, .gallery img.wd350, .gallery img.wd230, .gallery img.wd409 {
        width: 100%;
        height: auto;
    }

    .gallery img.wd138 {
        width: 50%;
        height: auto;
    }

    .gallery iframe {
    width: 460px;
    height: 271px;
    }

    a.dest {
    display: block;
    margin-left: 0;
    }

}

/*  -------- 320 CSS -------- */

@media only screen and (max-width: 479px) {

    .mobile {
        display: block;
    }

    .desktop {
        display: none;
    }

    body {
        background-color: transparent;
    }

    /* CITAZIONI */

    q {
        width: 710px;
        margin: 0 auto;
    }

    .expanded {
        padding-left:15px;
    }

    .expanded article {
        width: 710px;
        margin: 0 auto;
    }

    .expanded article:before {
        margin-left: 0px;
    }

    .expanded article img {
        margin:0;
    }

    .expanded article sidebar {
        width: 150px;
    }

    /* WRAPPER */

    #wrapper {
        margin: 0 auto;
        width: 320px;
        height: 100%;
    }

    /* HEADER */

    header {
        width: 300px;
        height: 165px;
        position: relative;
        margin: 0 10px;
        top:0px;
    }

    .redhyphen {
        background-color: #e30430;
        width:75px;
        height:3px;
        margin: 30px auto;
    }

    .header-left {
        width: 300px;
    }

    .logo {
        margin: 20px auto;
    }

    header nav {
        float: left;
        width:290px;
        margin-top: 0px;
    }

    header nav ul li {
        float: left;
        text-align: center;
        /* width: 25%; da rimettere quando ci sarà news */
        width: 50%;
        margin: 0;
    }

    /* MAIN */

    main {
        width: 320px;
        margin: 10px auto 0;
    }

    main section {
        margin-left: 10px;
        margin-right: 10px;
    }

    main section.grid-wrap {
        margin-right: 0px;
    }

    main article, main address {
        width: 300px;
        margin-left: 0px;
    }

    main sidebar {
        width: 300px;
        margin-left: 0px;
    }

    main .single-project sidebar, main .news sidebar {
        margin-top: 20px;
    }

    main sidebar .social {
        float: left;
        width: 50%;
        margin-top: 40px;
    }

    .aiap {
        margin: 0px;
    }

    .studio, .lettere, .contatti, .maps, .single-project, .copertina, .copertina-news {
        width:300px;
        height: 165px;
    }

    .single-project {
        height: auto;
    }

    .studio, .maps {
        height: 165px;
        background-size: auto 165px;
    }

    .lettere {
        margin-left: 10px;
    }

    .lettere article:nth-child(3n+0) {
        margin-right: 0px;
    }

    .lettere article:nth-child(2n+0) {
        margin-right: 0px;
    }

    .lettere article {
        width: 300px;
        margin: 0 0 25px 0;
        min-height: 0;
    }

    article.fabiane h5, article.dalila h5, article.marco h5, article.rosanna h5, article.antonio h5 {
        height: 24px;
    }

    .grid-wrap {
        width: 310px;
        margin-right: 0px;
    }

    section.single-project nav {
        margin: -5px 0 15px 0;
    }

    section.single-project nav a {
        padding: 0 5px;
    }

    .copertina figure img {
        margin-left: -62px; /* [424(larghezza img copertina ridimensionata con h165)-300(larghezza box copertina)]/2=62 */
    }

    .nav-projects {
        margin: 0;
        text-align: center;
    }

    .grid li {
        width:150px;
    }

    figure.effect h2 {
        font-size: 18px;
        line-height: 22px;
        padding-bottom: 10px;
    }

    figure.effect h3 {
        font-family: "Alegreya Sans SC", "Arial", sans-serif;
        font-size: 11px;
        line-height: 11px;
        padding-top: 5px;
    }

    .text-box {
        background-size: 15px 15px;
        margin: 0 5px 5px 0;
    }

    .text-box article {
        width: calc(100% - 20px);
        height: calc(100% - 20px);
        margin: 10px;
        padding: 10px;
    }

    .text-box article h2 {
        font-size: 18px;
        line-height: 22px;
        margin-bottom: 5px;
    }

    .text-box article h3 {
        font-size: 11px;
        line-height: 11px;
    }

    main footer {
        width: 300px;
        margin-left: 10px;
        margin-right: 10px;
    }

    .copertina figcaption {
        padding: 170px 0 0 0;
    }

    .copertina-news {
        margin-bottom: 30px;
    }

    .copertina-news figure img, .copertina figure img {
        height: 165px;
        width: auto;
    }

    .copertina-news figure:first-child {
        margin-top: 0px; 
    }

    .copertina-news figure time {
        left:215px;
        width: 75px;
        height: 85px;
        margin-top: -10px;
        padding: 16px 0px;
    }

    .copertina-news figure time .day {
        font-size: 48px;
    }

    .copertina-news figure time .month {
        font-size: 11px;
    }

    .contatti address {
        margin-bottom: 10px;
    }

    .telefono {
        margin-top: 0px;
    }

    .gallery img, .gallery img.wd350, .gallery img.wd230, .gallery img.wd409 {
        width: 100%;
        height: auto;
    }

    .gallery img.wd138 {
        width: 50%;
        height: auto;
    }

    .gallery iframe {
    width: 300px;
    height: 181px;
    }

    a.dest {
    display: block;
    margin-left: 0;
    }

}