/**************************************************/
/* Basic styles                                   */
/**************************************************/

body {
    background-color: #f6f6f6;
    color: #888888;
    font: 16px/20px 'Quicksand', arial, sans-serif;
    font-weight: 400;
}

a {
	color: #888888;
	text-decoration: underline;
}

a:hover, a:active, a:focus {
    color: #58585a;
    text-decoration: none;
}

/**************************************************/
/* Typography                                     */
/**************************************************/

h2 {
	font-family: 'Quicksand', arial, sans-serif;
    font-weight: 700;
	font-size: 36px;
	line-height: 40px;
	text-transform: uppercase;
    color: #9c9e9f;
}

h3 {
	font-family: 'Quicksand', arial, sans-serif;
    font-weight: 700;
	font-size: 20px;
	line-height: 24px;
	text-transform: uppercase;
    color: #9c9e9f;
}

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

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

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

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

.text-uppercase {
	text-transform: uppercase;
}

.text-capitalize {
	text-transform: capitalize;
}

em {
    font-style: italic;
}

strong {
    font-weight: bold;
}

::selection {
	background: #c0c0c0;
	color: #ffffff;
}

::-moz-selection {
	background: #c0c0c0;
	color: #ffffff;
}

/**************************************************/
/* Section header                                 */
/**************************************************/

.header-top {
    position: absolute;
	width: 100%;
	top: 0;
	left: 0;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    background-color: #ffffff;
}

#nav-link {
    position: relative;
    display: block;
    float: left;
    margin-top: 80px;
    padding: 0;
    list-style: none;
}

#nav-link > li {
    float: left;
}

#nav-link > li a {
    position: relative;
    display: block;
    float: none;
    padding-right: 32px;
    padding-left: 32px;
	font-family: 'Quicksand', arial, sans-serif;
    font-size: 20px;
    line-height: 22px;
    color: #9c9e9f;
    text-decoration: none;
    text-transform: lowercase;
    border-right: 1px solid #9c9e9f;
}

#nav-link > li a:hover {
    color: #58585a;
}

#nav-link > li.active a, #nav-link > li.active a:hover {
    font-weight: 700;
    color: #58585a;
}

#nav-link > li.first a {
    padding-left: 0;
}

#nav-link > li.last a {
    padding-right: 0;
    border-right: none;
}

/**************************************************/
/* Section navigation responsive                  */
/**************************************************/

#menu-responsive {
    display: none;
	width: 100%;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}

#menu-responsive-icon {
    display: block;
	width: 100%;
	padding: 8px 40px 8px 12px;
	font-family: 'Quicksand', arial, sans-serif;
    font-size: 20px;
    line-height: 22px;
    color: #ffffff;
	text-decoration: none;
    text-transform: uppercase;
    background: #58585a url(../img/menu-responsive-icon.png) no-repeat right center;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}

#nav-responsive {
    display: none;
    list-style: none;
}

#nav-responsive > li {
    display: block;
    margin-top: 1px;
    background-color: #9c9e9f;
}

#nav-responsive > li a {
	display: block;
	padding: 8px 12px;
	font-family: 'Quicksand', arial, sans-serif;
    font-size: 20px;
    line-height: 22px;
    color: #ffffff;
	text-decoration: none;
    text-transform: lowercase;
}

#nav-responsive > li a:hover {
    color: #58585a;
}

/**************************************************/
/* Section content                                */
/**************************************************/

.header-container {
    position: relative;
	width: 100%;
    background-color: #ffffff;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}

.content-container {
	width: 100%;
    background-color: #ffffff;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}

.img-border {
    border: 5px solid #f6f6f6;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}

a.link-bold {
    font-size: 18px;
    font-weight: 700;
	color: #888888;
	text-decoration: none;
}

a.link-bold:hover, a.link-bold:active, a.link-bold:focus {
    color: #58585a;
}

#gallery-foto-ita {
    text-align: left;
}

#gallery-foto-eng {
    text-align: right;
}

a.gallery-hidden {
    display: none;
}

/**************************************************/
/* Magnific popup                                 */
/**************************************************/

.message-popup {
    position: relative;
    background: #ffffff;
    color: #888888;
    padding: 20px;
    width: auto;
    max-width: 500px;
    margin: 20px auto;
}

.message-popup strong {
    font-size: 18px;
    font-weight: bold;
}

/**************************************************/
/* Section social stream                          */
/**************************************************/

#social-wall {
    padding: 0;
    min-height: 200px;
}

.dcsns-toolbar {
    display: none;
}

/*********************************************/
/* CSS TOP LINK                              */
/*********************************************/

a#top-link {
    display: block;
    position: fixed;
	width: 60px;
	height: 60px;
    bottom: 50px;
    right: 50px;
    background: transparent url(../img/top.png) no-repeat;
    z-index: 10;
}

/**************************************************/
/* Section form                                   */
/**************************************************/

.form-contatti input, .form-contatti textarea {
	display: block;
	width: 100%;
    height: auto;
    padding: 6px;
    font: 14px/18px arial, helvetica, sans-serif;
    background-color: #efefef;
    color: #9c9e9f;
	border: 2px solid #9c9e9f;
    /* Css3 radius */
    border-radius: 6px;
    -moz-border-radius: 6px;
    -webkit-border-radius: 6px;
    -ms-border-radius: 6px;
    /* Css3 border-box */
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}

.form-contatti textarea {
	resize: vertical;
}

.form-contatti input:focus, .form-contatti textarea:focus {
    background-color: #ffffff;
}

a.button-send {
    display: block;
    width: 100%;
	background-color: #9c9e9f;
    color: #ffffff;
    padding: 12px 12px;
    font-weight: bold;
	text-align: left;
    text-decoration: none;
	border: none;
	cursor: pointer;
    /* Css3 radius */
    border-radius: 6px;
    -moz-border-radius: 6px;
    -webkit-border-radius: 6px;
    -ms-border-radius: 6px;
    /* Css3 border-box */
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}

a.button-send:hover, a.button-send:focus {
    background-color: #58585a;
}

a.button-send:focus {
    outline: 0;
}

/**************************************************/
/* Section footer                                 */
/**************************************************/

footer {
    width: 100%;
    height: auto;
    background-color: #58585a;
}

.footer-container {
	width: 100%;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    color: #f0f0f0;
}

.subfooter-container {
    position: relative;
	width: 100%;
    height: 42px;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}

#privacy-credits {
    position: absolute;
	width: 230px;
    height: 42px;
	top: 0;
	right: 0;
}

#facebook-icon {
    position: absolute;
    width: 42px;
    height: 42px;
    top: 0;
    left: 0;
}

#privacy-policy {
    position: absolute;
    overflow: hidden;
    width: 105px;
    height: 21px;
    top: 13px;
    left: 72px;
}

#logo-emmequadro-footer {
    position: absolute;
    width: 23px;
    height: 24px;
    top: 9px;
    right: 0;
}

/**************************************************/
/* Responsive breakpoints                         */
/**************************************************/

@media screen and (max-width: 991px) { /* Menu responsive */
	#nav-link {
	    display: none;
    }

    #menu-responsive {
	    display: block;
    }

    .logo-subpage {
        width: 142px;
        margin-right: auto;
        margin-left: auto;
        text-align: center;
    }

    .form-contatti textarea {
        height: 188px;
    }
}

@media only screen and (max-width: 479px) { /* EXTRA SMALL - XS */
    .header-container {
        padding: 10px 10px 0 10px;
    }

    .content-container {
        padding: 10px;
    }

    .footer-container {
        padding: 10px 5px;
    }

    .logo-footer-subpage {
        width: 230px;
        margin-right: auto;
        margin-left: auto;
        text-align: center;
    }

    .text-footer {
        text-align: center;
        font-size: 12px;
        line-height: 18px;
    }

    #privacy-credits {
        right: auto;
    	left: 50%;
        margin-left: -115px;
    }

    p ~ p {
        margin-top: 10px;
    }

    p.small ~ p {
        margin-top: 5px;
    }

    a#top-link {
        bottom: 10px;
        right: 10px;
    }

    .stream li {
        width: 100%;
	    margin: 0 15px 15px 0;
    }
}

@media only screen and (min-width: 480px) and (max-width: 767px) { /* SMALL - S */
    .header-container {
        padding: 20px 20px 0 20px;
    }

    .content-container {
        padding: 20px;
    }

    .footer-container {
        padding: 20px 10px;
    }

    .subfooter-container {
        margin-top: 20px;
    }

    .logo-footer-subpage {
        width: 230px;
        margin-right: auto;
        margin-left: auto;
        text-align: center;
    }

    .text-footer {
        text-align: center;
        font-size: 12px;
        line-height: 18px;
    }

    #privacy-credits {
        right: auto;
    	left: 50%;
        margin-left: -115px;
    }

    p ~ p {
        margin-top: 20px;
    }

    p.small ~ p {
        margin-top: 10px;
    }

    a#top-link {
        bottom: 20px;
        right: 20px;
    }

    .stream li {
        width: 100%;
	    margin: 0 15px 15px 0;
    }
}

@media only screen and (min-width: 768px) and (max-width: 991px) { /* MEDIUM - M */
    .header-top {
        height: 88px;
    }

    .header-container {
        padding: 30px 30px 0 30px;
    }

    .content-container {
        padding: 30px;
    }

    .footer-container {
        padding: 30px 15px;
    }

    .subfooter-container {
        margin-top: 15px;
    }

    .text-footer {
        text-align: right;
        font-size: 12px;
        line-height: 18px;
    }

    p ~ p {
        margin-top: 30px;
    }

    p.small ~ p {
        margin-top: 15px;
    }

    a#top-link {
        bottom: 30px;
        right: 30px;
    }

    .stream li {
        width: 100%;
	    margin: 0 30px 30px 0;
    }
}

@media only print, only screen and (min-width: 992px) and (max-width: 1199px) { /* LARGE - L */
    .header-top {
        height: 114px;
    }

    .header-container {
        padding: 40px 40px 0 40px;
    }

    .content-container {
        padding: 40px;
    }

    .footer-container {
        padding: 40px 20px;
    }

    .subfooter-container {
        margin-top: 20px;
    }

    .text-footer {
        text-align: right;
        font-size: 12px;
        line-height: 32px;
    }

    p ~ p {
        margin-top: 40px;
    }

    p.small ~ p {
        margin-top: 20px;
    }

    #nav-link {
        margin-top: 64px;
    }

    #nav-link > li a {
        padding-right: 16px;
        padding-left: 16px;
    }

    .form-contatti textarea {
        height: 140px;
    }

    a#top-link {
        bottom: 40px;
        right: 40px;
    }

    .stream li {
	    margin: 0 62px 62px 0;
    }
}

@media only screen and (min-width: 1200px) and (max-width: 1439px) { /* EXTRA LARGE - XL */
    .header-top {
        height: 138px;
    }

    .header-container {
        padding: 50px 50px 0 50px;
    }

    .content-container {
        padding: 50px;
    }

    .footer-container {
        padding: 50px 25px;
    }

    .subfooter-container {
        margin-top: 25px;
    }

    .text-footer {
        text-align: right;
        font-size: 14px;
        line-height: 38px;
    }

    p ~ p {
        margin-top: 50px;
    }

    p.small ~ p {
        margin-top: 25px;
    }

    #nav-link {
        margin-top: 78px;
    }

    #nav-link > li a {
        padding-right: 32px;
        padding-left: 32px;
    }

    .form-contatti textarea {
        height: 188px;
    }

    a#top-link {
        bottom: 50px;
        right: 50px;
    }

    .stream li {
	    margin: 0 35px 35px 0;
    }
}

@media only screen and (min-width: 1440px) { /* EXTRA EXTRA LARGE - XXL */
    .header-top {
        height: 165px;
    }

    .header-container {
        padding: 60px 60px 0 60px;
    }

    .content-container {
        padding: 60px;
    }

    .footer-container {
        padding: 60px 30px;
    }

    .subfooter-container {
        margin-top: 30px;
    }

    .text-footer {
        text-align: right;
        line-height: 46px;
    }

    p ~ p {
        margin-top: 60px;
    }

    p.small ~ p {
        margin-top: 30px;
    }

    #nav-link {
        margin-top: 95px;
    }

    #nav-link > li a {
        padding-right: 48px;
        padding-left: 48px;
    }

    .form-contatti textarea {
        height: 252px;
    }

    a#top-link {
        bottom: 60px;
        right: 60px;
    }

    .stream li {
	    margin: 0 28px 28px 0;
    }
}
