/*! HTML5 Boilerplate v4.3.0 | MIT License | http://h5bp.com/ */

/*
 * What follows is the result of much research on cross-browser styling.
 * Credit left inline and big thanks to Nicolas Gallagher, Jonathan Neal,
 * Kroc Camen, and the H5BP dev community and team.
 */

/* ==========================================================================
   Base styles: opinionated defaults
   ========================================================================== */

html,
button,
input,
select,
textarea {
    color: #222;
}

html {
    font-size: 1em;
    line-height: 1.4;
}

/*
 * Remove text-shadow in selection highlight: h5bp.com/i
 * These selection rule sets have to be separate.
 * Customize the background color to match your design.
 */

::-moz-selection {
    background: #b3d4fc;
    text-shadow: none;
}

::selection {
    background: #b3d4fc;
    text-shadow: none;
}

/*
 * A better looking default horizontal rule
 */

hr {
    display: block;
    height: 1px;
    border: 0;
    border-top: 1px solid #ccc;
    margin: 1em 0;
    padding: 0;
}

/*
 * Remove the gap between images, videos, audio and canvas and the bottom of
 * their containers: h5bp.com/i/440
 */

audio,
canvas,
img,
video {
    vertical-align: middle;
}

/*
 * Remove default fieldset styles.
 */

fieldset {
    border: 0;
    margin: 0;
    padding: 0;
}

/*
 * Allow only vertical resizing of textareas.
 */

textarea {
    resize: vertical;
}

/* ==========================================================================
   Browse Happy prompt
   ========================================================================== */

.browsehappy {
    margin: 0.2em 0;
    background: #ccc;
    color: #000;
    padding: 0.2em 0;
}

/* ==========================================================================
   Author's custom styles
   ========================================================================== */


html{
    width: 100%;
    min-height: 100%;
    margin: 0;
    position: relative;
    font-family: 'Zilla Slab', serif;
}

body {
    min-height: 100%;
    transition: background-color .5s;
}


.sidenav {
    height: 100%;
    width: 0;
    position: fixed;
    z-index: 1;
    top: 0;
    left: -2px;
    background-color: #ffffff;
    border-right:2px solid #333333;
    overflow-x: hidden;
    transition: 0.5s;
    padding-top: 10px;
    box-sizing: border-box;
}

.sidenav a {
    padding: 8px 8px 8px 32px;
    text-decoration: none;
    font-size: 1.2em;
    color: #818181;
    display: block;
    transition: 0.3s;
}

.sidenav a:hover {
    color: #cccccc;
}

.sidenav .closebtn {
    position: absolute;
    top: 0;
    right: 25px;
    font-size: 5em;
    margin-left: 50px;
    font-weight: 100;
    line-height: 50px;
    padding-top:0;
}


.m_main_container {
    transition: margin-left .5s;
}

@media screen and (max-height: 450px) {
  .sidenav {padding-top: 15px;}
  .sidenav a {font-size: 18px;}
}

a {
    text-decoration: none;
}
.main_container, .m_main_container {
    max-width:1920px;
    width:100%;
    min-height: 100vh;
    margin-bottom: -100px;
    overflow: hidden;
}

.main_container:after {
    content: "";
    display: block;
    height: 100px;
}

h2 {
   font-weight: 300;
    margin-top: 0;
    margin-bottom: 5px;
}

h3 {
    font-weight: 300;
    margin-top:0;
    margin-bottom: 20px;
}
.header_home {
    width: 100%;
    color: #ffffff;
    padding-top:10px;
}

.menu_home_sx {
    position:relative;
    left: 1%;
    top:18px;
    float:left;
}

.menu_home_dx {
    position: relative;
    right:1%;
    top: 18px;
    float:right;
}

.menu_home_sx span {
    font-weight: 300;
    font-size: 1.2em;
    padding-right:15px;
}

.menu_home_dx span {
    font-weight: 300;
    font-size:  1.2em;
    padding-left:15px;
    vertical-align: middle;
}

a.home_menu_element {
    color: #ffffff;
    padding-bottom:5px;
}

a.home_menu_element_black {
    color: #333333;
    padding-bottom:5px;
}

.menu_titolo_home {
    position: absolute;
    top: 10px;
    text-align: center;
    font-size: 2.5em;
    font-weight: 300;
    left: 44%
}

.m_menu_titolo_home {
    width: 100%;
    font-size: 1.9em;
    font-weight: 300;
    text-align: center;
    margin-top: 10px;
    letter-spacing: -0.02em;
}

.menu_titolo_home a, .m_menu_titolo_home a {
    text-decoration: none;
    color: #333333;
}

.lang_selector a{
    text-decoration: none;
    color: #ffffff;
}

.lang_selector-black a{
    text-decoration: none;
    color: #333333;
}

.instagram, .instagram_black{
    width: 25px;
    height: 25px;
    background-image: url('../img/instagram-w.png');
    background-position: right;
    background-size: contain;
    background-repeat: no-repeat;
    padding-top: 5px;
    display: inline-block;
    line-height: 2em;
}

.instagram_black {
    background-image: url('../img/instagram-b.png');
}

.footer , .m_footer{
    width: 100%;
    position: absolute;
    bottom: 0;
    left:0;
    text-align: center;
    padding-bottom: 50px;
    color: #ffffff;
    height:140px;
}

.m_footer {
    padding-bottom: 0;
    height: 32px;
}

.footer_page {
    width: 100%;
    text-align: center;
    color: #ffffff;
    height:100px;
    position: absolute;
}

.black {
    color: #333333;
}

.caption_image, .m_caption_image {
    text-align: center;
    margin:auto;
    background-color: #ffffff;
    width: 25%;
    min-height:30px;
    line-height: 30px;
    vertical-align: middle;
    margin-bottom: 80px;
    padding: 10px;
    color: #333333;
    font-size: 1.1em;
}

.m_caption_image {
    width: 100%;
    font-weight: 300;
    font-size: 0.8em;
    margin-bottom: 0;
    padding: 0;
    min-height: 0;
}

#caption{
    display:none;
}

/* Underline From Left */
.hvr-underline-from-left, .hvr-underline-from-left-b  {
    display: inline-block;
    vertical-align: middle;
    -webkit-transform: perspective(1px) translateZ(0);
    transform: perspective(1px) translateZ(0);
    box-shadow: 0 0 1px transparent;
    position: relative;
    overflow: hidden;
}
.hvr-underline-from-left:before,.hvr-underline-from-left-b:before{
    content: "";
    position: absolute;
    z-index: -1;
    left: 0;
    right: 100%;
    bottom: 1px;
    background: #fff;
    height: 3px;
    -webkit-transition-property: right;
    transition-property: right;
    -webkit-transition-duration: 0.3s;
    transition-duration: 0.3s;
    -webkit-transition-timing-function: ease-out;
    transition-timing-function: ease-out;
}
.hvr-underline-from-left:hover:before, .hvr-underline-from-left:focus:before, .hvr-underline-from-left:active:before
,.hvr-underline-from-left-b:hover:before, .hvr-underline-from-left-b:focus:before, .hvr-underline-from-left-b:active:before   {
    right: 0;
}

.hvr-underline-from-left-b:before {
    background: #333333;
}

.page_menu_selected {
    display: inline-block;
    position:relative;
    vertical-align: middle;
    box-shadow: 0 0 1px transparent;
}

.page_menu_selected:after{
    content: "";
    position: absolute;
    left:0;
    right:100%;
    background: #333333;
    height: 3px;
    bottom: 1px;
    width: 100%;
}

.main, .m_main {
    width: 100%;
    overflow: hidden;
    margin-top:100px;
}

.m_main {
    margin-top: 20px;
}

.fluid, .fluid_more, .m_fluid, .fluid_pagina, .m_fluid_pagina{
    padding-left: 1%;
    padding-right: 1%;
    margin: 0 -1% 0 0;
    overflow: hidden;
    -webkit-flex-wrap: wrap;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    -webkit-justify-content: center; /* Safari */
    justify-content:         center;
    -ms-flex-direction: row;
    -webkit-flex-direction: row; /* Safari */
    flex-direction:         row;
    -ms-flex-pack: start;
    -webkit-align-content: flex-start; /* Safari */
    align-content:         flex-start;
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
}

.fluid_more {
    padding-left: 5%;
}

.fluid_pagina, .m_fluid_pagina {
    margin: 0 4% 0 4%;
}

.m_fluid {
    padding-left: 3%;
}


.citazione_container, .m_citazione_container {
    min-width:800px;
    margin: 0 4% 20px 0;
    position:relative;
    text-decoration: none;
    font-size: 14px;
    text-align: left;
    -ms-flex: 0;
    -webkit-flex: 1 1 800px;
    flex:1 1 800px;
    float:left;
    color: #333;
    border-bottom: 1px solid #cccccc;
    padding-bottom: 20px;
}
.colonna1-1 {
    min-width:800px;
    margin: 0 0 0 0;
    position:relative;
    text-decoration: none;
    font-size: 1em;
    text-align: left;
    -ms-flex: 0;
    -webkit-flex: 1 1 800px;
    flex:1 1 800px;
    float:left;
    color: #333;
    padding-bottom: 20px;
}

.colonna1-2 {
    min-width:800px;
    margin: 0 3% 0 0;
    position:relative;
    text-decoration: none;
    font-size: 1em;
    text-align: left;
    -ms-flex: 0;
    -webkit-flex: 1 1 800px;
    flex:1 1 800px;
    float:left;
    color: #333;
    padding-bottom: 20px;
}

.m_fluid .colonna1-2 {
    min-width:275px;
    margin: 0 0 0 0;
    position:relative;
    text-decoration: none;
    font-size: 1em;
    text-align: left;
    -ms-flex: 0;
    -webkit-flex: 1 1 275px;
    flex:1 1 275px;
    float:left;
    color: #333;
    padding-bottom:20px;
}

.m_citazione_container{
    min-width: 290px;
    -webkit-flex: 1 1 290px;
    flex: 1 1 290px;
    margin: 0 7.5% 10px 4.5%;
}

.m_citazione_container:last-of-type {
    border-bottom:0;
}

.catalogo_container, .m_catalogo_container{
    min-width:400px;
    margin: 0 1% 20px 0;
    position:relative;
    text-decoration: none;
    font-size: 14px;
    text-align: left;
    -ms-flex: 0;
    -webkit-flex: 1 1 300px;
    flex:1 1 300px;
    float:left;
    color: #333;
}

.m_catalogo_container {
    min-width:300px;
    margin: 0 3% 20px 0;
}

.dettaglio_mostra_container, .m_dettaglio_mostra_container{
    min-width:125px;
    margin: 0 1% 20px 0;
    position:relative;
    text-decoration: none;
    font-size: 14px;
    text-align: left;
    -ms-flex: 0;
    -webkit-flex: 1 1 200px;
    flex:1 1 200px;
    float:left;
    color: #333;
}

.m_dettaglio_mostra_container {
    min-width: 140px;
    -ms-flex: 1 1 140px;
    flex: 1 1 140px;
    margin: 0 3% 3% 0;
}

.mostra_container{
    min-width:300px;
    margin: 0 6% 20px 0;
    position:relative;
    text-decoration: none;
    font-size: 14px;
    text-align: left;
    -ms-flex: 0;
    -webkit-flex: 1 1 300px;
    flex:1 1 300px;
    float:left;
    color: #333;
}
.press_container, .m_press_container{
    min-width:320px;
    margin: 0 6% 100px 0;
    position:relative;
    text-decoration: none;
    font-size: 14px;
    text-align: left;
    -ms-flex: 0;
    -webkit-flex: 1 1 320px;
    flex:1 1 320px;
    float:left;
    color: #333;
}

.m_press_container {
    margin: 0 3% 3% 0;
    min-width:290px;
    -webkit-flex: 1 1 290px;
    flex:1 1 290px;
}

.dettaglio_catalogo_container, .m_dettaglio_catalogo_container{
    min-width:125px;
    margin: 0 1% 10px 0;
    position:relative;
    text-decoration: none;
    font-size: 14px;
    text-align: left;
    -ms-flex: 0;
    -webkit-flex: 1 1 200px;
    flex:1 1 200px;
    float:left;
    color: #333;
}

.m_dettaglio_catalogo_container {
   min-width: 125px;
    -webkit-flex: 1 1 125px;
    flex: 1 1 125px;
    margin: 0 3% 3% 0;
}

.catalogo_container:empty, .m_catalogo_container:empty{
    padding:0;
    border:0;
    height: 0;
}

.dettaglio_catalogo_container:empty{
    padding:0;
    border:0;
    height: 0;
}

.mostra_container:empty, .dettaglio_mostra_container:empty, .citazione_container:empty, .press_container:empty, .m_dettaglio_mostra_container:empty, .m_dettaglio_catalogo_container:empty{
    padding:0;
    border:0;
    height: 0;
}

.immagine_copertina {
    width: 100%;
    padding-bottom:75%;
}

.immagine_catalogo {
    width:100%;
    padding-bottom: 75%;
}

.immagine_mostra, .m_immagine_mostra {
    width:100%;
    padding-bottom: 125%;
}

.immagine_dettaglio_mostra {
    width: 100%;
    padding-bottom: 75%;
}

.immagine_libro {
    margin-right: 20px;
}

.immagine_press {
    width:100%;
    padding-bottom: 125%;
}

.didascalia_catalogo, .didascalia_libro{
    width: 100%;
    margin-top:15px;
    text-align: center;
    vertical-align: middle;
    font-size: 1.2em;
    color: #333333;
}

.didascalia_catalogo {
    height:50px;
    overflow: hidden;
}

.didascalia_dettaglio_catalogo, .m_didascalia_dettaglio_catalogo {
    width: 100%;
    text-align: center;
    margin-top:5px;
    font-size: 1.1em;
    font-weight: 300;
    color: #333333;
}

.m_didascalia_dettaglio_catalogo {
    line-height: 1.2em;
    padding-bottom: 5px;
}

.sx {
    width:45%;
    float: left;
}

.sxform {
    float: left;
    width: 20%;
}
.detail {
    border: 1px solid black;
    padding-top: 5px;
    padding-bottom: 5px;
    width:80%;
    margin:auto;
    text-align: center;
    margin-top:5px;
}

.bottone100, .bottone100_mobile {
    width:56%;
    border:1px solid black;
    padding-top: 5px;
    padding-bottom: 5px;
}

.bottone100_mobile {
    width: 80%;
    margin:auto;
}

.form_mobile {
    width: 98%;
    margin:auto;
}

input.forminput, input.m_forminput {
    padding:8px;
    text-align: center;
    width:80%;
    box-sizing: border-box;
}

input.m_forminput {
    margin-bottom:16px;
}

select {
    background-color: white;
    width:80%;
    box-sizing: border-box;
    text-align-all: center;
    text-align-last: center;
    padding:8px;
}

option {
    backgroundo-color: white;
    text-align: center;
}

.to_right {
    text-align: right;
    margin-right: 20px;
}

.dx {
    width: 30%;
    float:left;
}

.citazione, .m_citazione {
    font-size: 1.3em;
    font-style: italic;
}

.m_citazione {
    line-height: 1.2em;
}

.m_citazione, .m_citazione_nome, .m_citazione_data {
    text-align: center;
}

.m_citazione_nome, .m_citazione_data {
    font-size: 1.1em;
}

.citazione_nome {

}

.citazione_data {

}

.titolo_mostra, .m_titolo_mostra {
    width: 100%;
    text-align: center;
    font-size: 1.5em;
}

.m_titolo_mostra {
    margin:auto;
    width: 94%;
    font-weight: 300;
    line-height: 1.1em;
    padding-bottom:5px;
}

.sottotitolo_mostra, .m_sottotitolo_mostra {
    width: 75%;
    text-align: center;
    margin:auto;
    margin-bottom:10px;
    font-size: 1.2em;
    font-weight: 300;
}

.m_sottotitolo_mostra {
    width: 85%;
    font-size: 1.1em;
    line-height: 1.1em;
}

.data_mostra, .m_data_mostra {
    width:100%;
    text-align: center;
    font-style: italic;
    font-weight: 300;
    font-size: 1.1em;
}

.m_data_mostra {
    width: 94%;
    margin:auto;
    line-height: 1.1em;
}

.sliderItem {
    height: 400px;
    width: 600px;

}

.videos {
    height: 300px;
    width: 96%;
    margin: auto;
    margin-bottom: 20px;
}
.anteprima_video {
    width: 400px !important;
    height: 300px !important;
    margin-right: 20px;
}

.video_container, .m_video_container{
    padding-right: 10px;
    padding-left: 10px;
    width: 300px;
    height: 300px;
    position: relative;
    cursor:pointer;
}


.video_container:before, .m_video_container:before {
position:absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    -webkit-transform: translate(-50%, -50%);
    content: "\f144";
    font-family: FontAwesome;
    font-size: 100px;
    color: #fff;
    opacity: .8;
    text-shadow: 0px 0px 30px rgba(0, 0, 0, 0.5);
}

.video_container:hover:before, .m_video_container:hover:before {
    color: #eee;
}

.slick-prev:before {
    content: "";
    font-family: 'FontAwesome';
    font-size: 22px;
    color: #333333;
}
.slick-next:before {
    content: "";
    font-family: 'FontAwesome';
    font-size: 22px;
    color: #333333;
}

.lg-backdrop.in {
    opacity:0.9;
}

.lg-actions .lg-next, .lg-actions .lg-prev {
    font-size: 2em;
    color: #ffffff;
}

.lg-toolbar .lg-close:after {
    font-size:  2em;
    right: 20px;
    color: #ffffff;
}

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

#my-icon{
    color: #ffffff;
    position: absolute;
    top:15px;
}

.hamburger .hamburger-inner, .hamburger .hamburger-inner:after, .hamburger .hamburger-inner:before {
    background-color: #333333;
}

.hamburger.white_h .hamburger-inner, .hamburger.white_h .hamburger-inner:after, .hamburger.white_h .hamburger-inner:before {
    background-color: #ffffff;
}
.m_pubblicazioni {
    width: 85%;
    margin:auto;
    text-align: center;
    line-height: 1.1em;
}

.m_pubblicazioni h2 {
    padding-bottom: 5px;
}

.m_voce_menu_home {
    width:250px;
}

.is-active {
    display:none;
    transition: 0s;
}

.lang_selector_mobile{
    margin-bottom:20px;
}

.indirizzo_email:hover{
    color:#333333;
}

.stop-scrolling {
    height: 100%;
    overflow: hidden;
}

/* The Modal (background) */
.modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1; /* Sit on top */
    padding-top: 100px; /* Location of the box */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgb(0,0,0); /* Fallback color */
    background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
}

/* Modal Content */
.modal-content, .modal-content_full{
    background-color: #fefefe;
    margin: auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
}

.modal-content_full {
    width: 40%;
    margin-top: 250px;
}

/* The Close Button */
.close {
    color: #aaaaaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: #000;
    text-decoration: none;
    cursor: pointer;
}

/* ==========================================================================
   Helper classes
   ========================================================================== */

/*
 * Image replacement
 */

.ir {
    background-color: transparent;
    border: 0;
    overflow: hidden;
    /* IE 6/7 fallback */
    *text-indent: -9999px;
}

.ir:before {
    content: "";
    display: block;
    width: 0;
    height: 150%;
}

/*
 * Hide from both screenreaders and browsers: h5bp.com/u
 */

.hidden {
    display: none !important;
    visibility: hidden;
}

/*
 * Hide only visually, but have it available for screenreaders: h5bp.com/v
 */

.visuallyhidden {
    border: 0;
    clip: rect(0 0 0 0);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
}

/*
 * Extends the .visuallyhidden class to allow the element to be focusable
 * when navigated to via the keyboard: h5bp.com/p
 */

.visuallyhidden.focusable:active,
.visuallyhidden.focusable:focus {
    clip: auto;
    height: auto;
    margin: 0;
    overflow: visible;
    position: static;
    width: auto;
}

/*
 * Hide visually and from screenreaders, but maintain layout
 */

.invisible {
    visibility: hidden;
}

/*
 * Clearfix: contain floats
 *
 * For modern browsers
 * 1. The space content is one way to avoid an Opera bug when the
 *    `contenteditable` attribute is included anywhere else in the document.
 *    Otherwise it causes space to appear at the top and bottom of elements
 *    that receive the `clearfix` class.
 * 2. The use of `table` rather than `block` is only necessary if using
 *    `:before` to contain the top-margins of child elements.
 */

.clearfix:before,
.clearfix:after {
    content: " "; /* 1 */
    display: table; /* 2 */
}

.clearfix:after {
    clear: both;
}

/*
 * For IE 6/7 only
 * Include this rule to trigger hasLayout and contain floats.
 */

.clearfix {
    *zoom: 1;
}

/* ==========================================================================
   EXAMPLE Media Queries for Responsive Design.
   These examples override the primary ('mobile first') styles.
   Modify as content requires.
   ========================================================================== */

@media only screen and (min-width: 35em) {
    /* Style adjustments for viewports that meet the condition */
}

@media print,
       (-o-min-device-pixel-ratio: 5/4),
       (-webkit-min-device-pixel-ratio: 1.25),
       (min-resolution: 120dpi) {
    /* Style adjustments for high resolution devices */
}

/* ==========================================================================
   Print styles.
   Inlined to avoid required HTTP connection: h5bp.com/r
   ========================================================================== */

@media print {
    * {
        background: transparent !important;
        color: #000 !important; /* Black prints faster: h5bp.com/s */
        box-shadow: none !important;
        text-shadow: none !important;
    }

    a,
    a:visited {
        text-decoration: underline;
    }

    a[href]:after {
        content: " (" attr(href) ")";
    }

    abbr[title]:after {
        content: " (" attr(title) ")";
    }

    /*
     * Don't show links for images, or javascript/internal links
     */

    .ir a:after,
    a[href^="javascript:"]:after,
    a[href^="#"]:after {
        content: "";
    }

    pre,
    blockquote {
        border: 1px solid #999;
        page-break-inside: avoid;
    }

    thead {
        display: table-header-group; /* h5bp.com/t */
    }

    tr,
    img {
        page-break-inside: avoid;
    }

    img {
        max-width: 100% !important;
    }

    @page {
        margin: 0.5cm;
    }

    p,
    h2,
    h3 {
        orphans: 3;
        widows: 3;
    }

    h2,
    h3 {
        page-break-after: avoid;
    }
}
