/*
Theme Name: Carrozzini
Author: More Interactive Srl
Author URI: http://www.more.it/
Version: 1.0
*/

@font-face {
    font-family: "baskerville_old_faceregular";
    font-style: normal;
    font-weight: normal;
    src: url("assets/fonts/baskvill-webfont.eot?#iefix") format("embedded-opentype"),
        url("assets/fonts/baskvill-webfont.woff") format("woff"),
        url("assets/fonts/baskvill-webfont.ttf") format("truetype"),
        url("assets/fonts/baskvill-webfont.svg#baskerville_old_faceregular") format("svg");
}

* {
    -webkit-tap-highlight-color: transparent;
}

html {
    height: -webkit-fill-available;
}

body {
    font-family: serif;
    font-size: 14px;
    text-transform: uppercase;
    line-height: 16px;
    margin: 0;
    min-height: 100vh;
    min-height: -webkit-fill-available;
}

a {
    color: black;
    text-decoration: none;
}

h1,
h2 {
    font-family: "baskerville_old_faceregular";
}

p {
    margin: 15px 0;
}

img {
    max-width: 100%;
    height: auto;
}

p:first-of-type {
    margin-top: 0;
}
body:not(.single-carrozzini_video) div.site-container,
body:not(.page-contact) div.site-container,
body:not(.page-about) div.site-container {
    //width:90%;
    max-width: 100%;
    //margin-left:auto;
    //margin-right:auto;
    //padding:0 10px;
}

body.single-carrozzini_video div.site-container,
body.page-contact div.site-container,
body.page-about div.site-container {
    width: 90%;
    max-width: 920px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 10px;
}

body.home div.site-container {
    max-width: none;
    text-align: center;
}

div.site-container > header {
    padding-top: 10px;
    position: fixed;
    background: white;
    z-index: 30;
    width: calc(100% - 0px);
    padding-bottom: 20px;
    top: 0;
    left: 0;
}

body.home div.site-container > header {
    position: static;
    width: 100%;
    top: auto;
}

body.tax-carrozzini_video_category div.site-container > header,
body.single-carrozzini_video div.site-container > header {
    height: 70px;
}

div.site-container > header h1 {
    font-size: 36px;
    text-transform: uppercase;
    font-weight: normal;
    margin: 0;
    line-height: 27px;
    padding: 0 5px;
}
@media screen and (min-width: 1024px) {
    body:not(.home) div.site-container > header:not(.home) {
        padding-top: 40px;
        padding-bottom: 30px;
    }
    body:not(.home) div.site-container > header h1 {
        //font-size: 20px;
        float: left;
        padding-right: 20px;
    }
}

@media screen and (min-width: 1024px) {
    body:not(.home) div.site-container > header nav {
        float: right;
    }
}

div.site-container > header ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

div.site-container > header nav ul li {
    float: left;
    font-size: 28px;
    line-height: 30px;
    text-transform: uppercase;
    font-family: "baskerville_old_faceregular";
}

div.site-container > header nav ul li a {
    color: #e9e9f3;
    display: block;
    padding: 0 5px;
}

div.site-container > header nav ul li a:hover {
    color: black;
}

div.site-container > header nav ul li.current-menu-item > a,
div.site-container > header nav ul li.current-menu-ancestor > a {
    color: white;
    background: black;
}

div.site-container > header nav ul li:hover ul,
div.site-container > header nav ul li.current-menu-item ul,
div.site-container > header nav ul li.current-menu-ancestor ul {
    display: block;
}

body.home div.site-container > header nav ul li:hover ul {
    display: none;
}

body.home div.site-container > header nav ul ul {
    position: static;
}

div.site-container > header nav ul ul li {
    //clear:left;
    font-size: 80%;
}

div.site-container > header a.menu-toggle {
    display: none;
}

@media screen and (max-width: 768px) {
    div.site-container > header {
        padding-top: 5px;
    }

    div.site-container > header nav {
        clear: left;
        margin-top: 4px;
        position: absolute;
        z-index: 20;
        background: white;
        display: none;
        width: 100%;
        left: 0;
        padding-bottom: 30px;
    }

    div.site-container > header nav ul {
        display: block;
        width: 100%;
        margin: 0 auto;
    }

    div.site-container > header nav ul li {
        //float:none;
        display: block;
        text-align: center;
        font-size: 22px;
        width: 100%;
    }

    div.site-container > header nav ul ul {
        position: relative !important;
    }

    div.site-container > header nav ul li a {
        display: block;
        color: #999999;
    }

    div.site-container > header a.menu-toggle {
        display: block;
        background: #e9e9e9;
        width: 40px;
        font-size: 40px;
        text-align: center;
        line-height: 40px;
        cursor: pointer;
        position: absolute;
        margin-right: 4px;
        left: 0;
    }

    div.site-container > header h1 {
        font-size: 40px;
        line-height: 40px;
        text-align: center;
        padding: 0 40px;
    }

    body.home div.site-container > header h1 {
        font-size: 5.96vw;
    }
}

div.site-container > section,
body.single-carrozzini_video article {
    margin-top: 130px;
    padding-top: 24px;
}

@media screen and (max-width: 768px) {
    div.site-container > section,
    body.single-carrozzini_video article {
        margin-top: 90px;
    }
}

@media screen and (max-width: 600px) {
    div.site-container > section,
    body.single-carrozzini_video article {
        margin-top: 130px;
    }
}

section.main h2 {
    font-size: 15px;
    line-height: 17px;
    margin-top: 30px;
    margin-bottom: 15px;
    font-weight: normal;
}

section.main h2:first-of-type {
    margin-top: 0;
}

/** HOME **/

body.home {
    text-align: center;
}

body.home div.site-container > header {
    padding: 0;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    height: auto;
}

body.home div.site-container > header:after {
    content: "";
    display: block;
    clear: both;
}

body.home div.site-container > header h1 {
    font-size: 58px;
    line-height: 81px;
}

body.home div.site-container > header nav ul li {
    float: none;
    font-size: 50px;
    line-height: 64px;
    margin-top: -15px;
}

body.home div.site-container > header nav ul li a {
    display: inline;
    padding: 0;
}

@media screen and (max-width: 768px) {
    body.home div.site-container > header {
        width: 100%;
        left: 0;
        right: 0;
        transform: translateY(-50%);
    }
    body.home div.site-container > header a.menu-toggle {
        display: none;
    }

    body.home div.site-container > header h1 {
        font-size: 36px;
        line-height: 1.1em;
    }

    body.home div.site-container > header nav ul li {
        float: none;
        font-size: 36px;
        line-height: 1.5em;
        margin-top: 0;
    }

    body.home div.site-container > header nav {
        display: block;
        margin: 0 auto;
        position: static;
    }
}

/** GALLERIE **/
div.grid-sizer,
section.gallery article,
.masonryContent article {
    width: 25%;
}

div.grid-sizer.two-columns,
section.gallery article.two-columns,
.masonryContent article.two-columns {
    width: 50%;
}
@media screen and (max-width: 1024px) {
    div.grid-sizer,
    section.gallery article,
    .masonryContent article {
        width: 33.3333%;
    }

    div.grid-sizer.two-columns,
    section.gallery article.two-columns,
    .masonryContent article.two-columns {
        width: 66.6666%;
    }
}

div.grid-sizer.three-columns,
section.gallery article.three-columns,
.masonryContent article.three-columns {
    width: 100%;
}

@media screen and (max-width: 768px) {
    div.grid-sizer.two-columns,
    section.gallery article.two-columns,
    .masonryContent article.two-columns {
        width: 100%;
    }

    div.grid-sizer,
    section.gallery article,
    .masonryContent article {
        width: 49%;
    }
}

@media screen and (max-width: 600px) {
    div.grid-sizer,
    section.gallery article,
    .masonryContent article {
        width: 49%;
    }

    div.gutter-sizer {
        width: 0;
    }
}

div.gutter-sizer {
    width: 0%;
}

section.gallery article,
.masonryContent article {
    position: relative;
    //margin-bottom:15px;
}

section.gallery article img,
.masonryContent article img {
    width: 100% !important;
    height: auto !important;
}

section.video.gallery article {
    display: block;
    float: left;
    //margin-right:2%;
}

section.video article .mejs-container {
    max-width: 100%;
}

section.video.gallery article:nth-child(3n) {
    //margin-right:0;
}

@media screen and (max-width: 768px) {
    section.video.gallery article .wp-video,
    section.video.gallery article img {
        margin: 0 auto;
    }

    section.video.gallery article:nth-child(3n) {
        //margin-right:2%;
    }

    section.video.gallery article:nth-child(2n) {
        margin-right: 0;
    }
}

section.gallery article a div.overlay {
    display: none;
    background: rgba(0, 0, 0, 0.7);
    position: absolute;
    width: 100%;
    height: 100%;
}

section.gallery article a div.overlay .centered-content {
    width: 100%;
    margin: auto;
    position: absolute;
    top: 50%;
    left: 50%;
    -webkit-transform: translate(-50%, -50%);
    -ms-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
}

section.gallery article a div.overlay .centered-content h1,
section.gallery article a div.overlay .centered-content h2 {
    font-size: 24px;
    font-weight: normal;
    line-height: 1em;
    margin: 0 5%;
}

section.gallery article a div.overlay .centered-content h1,
section.video.gallery article a div.overlay .centered-content h2 {
    text-transform: none;
}

section.masonry.gallery article a:hover div.overlay,
section.video.gallery article a:first-child:hover div.overlay {
    display: block;
}

/** SINGOLA GALLERY */
div.title {
    position: fixed;
    bottom: 0;
    width: 100%;
    background: #fff;
    z-index: 999;
    left: 0;
    text-align: center;
    padding: 15px 0;
}

div.title h1,
div.title h2 {
    display: inline;
    font-size: 28px;
    font-weight: normal;
}

@media screen and (max-width: 600px) {
    div.title h1,
    div.title h2 {
        font-size: 16px;
    }
}

div.title h1 {
    color: #999999;
}

a.toggle {
    display: block;
    position: absolute;
    //top:60px;
    //right:100px;
    top: 6%;
    right: 48%;
    z-index: 2;
    font-size: 0;
    line-height: 0;
    width: 50px;
    height: 33px;
    background: transparent url("assets/img/grid-icon.png");
    margin-top: -40px;
    background-size: contain;
    background-repeat: no-repeat;
    cursor: pointer;
}

a.toggle.masonry {
    background-image: url("assets/img/layout-icon.png");
}

body.single section.masonry {
    display: none;
}

body.single section.slider {
    padding-bottom: 60px;
}

@media screen and (max-width: 767px) {
    a.toggle {
        margin-top: -30px;
        display: none;
    }
}

@media screen and (max-width: 600px) {
    body.single section.masonry {
        display: block;
    }

    body.single section.slider {
        display: none;
    }
}

/** SLIDER **/
section.slider article img {
    margin: 0 auto;
    max-height: 65vh;
}

section.slider article.grouped img {
    float: left;
    max-width: 49%;
    margin-right: 2%;
}

section.slider article.grouped img:last-child {
    margin-right: 0;
}

.slick-slide {
    padding: 0 35px;
    outline: none;
}

.slick-prev,
.slick-next {
    font-size: 0;
    line-height: 0;

    position: absolute;
    height: 100%;
    z-index: 2;

    display: block;

    margin-top: -30px;
    padding: 0;
    padding-left: 20px;
    padding-right: 20px;

    top: 0;

    cursor: pointer;

    color: transparent;
    border: none;
    outline: none;
    background: transparent;
}
.slick-prev:hover,
.slick-prev:focus,
.slick-next:hover,
.slick-next:focus {
    outline: none;
    opacity: 1;
}
.slick-prev.slick-disabled:before,
.slick-next.slick-disabled:before {
    opacity: 0.25;
}

.slick-prev:before,
.slick-next:before {
    width: 30px;
    height: 59px;
    display: inline-block;
    content: "";
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
}

@media screen and (max-width: 768px) {
    .slick-prev:before,
    .slick-next:before {
        width: 20px;
        height: 59px;
        display: inline-block;
        content: "";
    }
}

.slick-prev {
    left: 0;
    padding-right: 50px;
}
.slick-prev:before {
    background-image: url("assets/img/prev.png");
}

.slick-next {
    right: 0;
    padding-left: 50px;
}
.slick-next:before {
    background-image: url("assets/img/next.png");
}

/** VIDEO **/

section.video.gallery article > a {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 1;
}

section.video.gallery article p {
    margin-bottom: 0;
}

section.video.gallery article img {
    display: none;
}

html.touch section.video.gallery article img {
    display: block;
}

html.touch section.video.gallery article div.wp-video {
    display: none;
}

body.single-carrozzini_video article.carrozzini_video a.close {
    font-size: 16px;
    float: right;
    display: inline-block;
    margin: 15px 0 0 0;
    text-transform: none;
    color: #999999;
    font-weight: bold;
}

body.single-carrozzini_video article.carrozzini_video.carrozzini_video_category-features a.close {
    display: none;
}

body.single-carrozzini_video article.carrozzini_video h1,
body.single-carrozzini_video article.carrozzini_video h2 {
    font-weight: normal;
    display: inline-block;
}

body.single-carrozzini_video article.carrozzini_video.carrozzini_video_category-features h1 {
    display: none;
}

body.single-carrozzini_video article.carrozzini_video h1 {
    margin-bottom: 0;
}

body.single-carrozzini_video article.carrozzini_video h2 {
    margin-top: 0;
}

body.single-carrozzini_video article.carrozzini_video h2 {
    color: #999999;
}
body.single-carrozzini_video article.carrozzini_video .video {
    position: relative;
}
body.single-carrozzini_video article.carrozzini_video .video video {
    cursor: pointer;
    max-width: 100%;
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    z-index: 3;
}

body.single-carrozzini_video #video {
    height: 0;
    padding-bottom: 56.25%;
    position: relative;
}

.BrightcoveExperience {
    //position:relative;
    //max-height:calc(100vh - 200px);
    //max-width:100%;
    position: absolute;
    height: 100%;
    width: 100% !important;
    left: 0;
    top: 0;
}

body.single-carrozzini_video article div.contents {
    margin-top: 30px;
}

div.next-video,
div.prev-video {
    font-size: 16px;
    margin: 15px 0;
    float: left;
    display: inline-block;
    text-transform: none;
    font-weight: bold;
}

div.next-video a:before,
div.prev-video a:before {
    content: "";
    display: inline-block;
    width: 7px;
    height: 16px;
    background-image: url("assets/img/prev-video.png");
    margin-right: 8px;
    float: left;
}

div.next-video a:before {
    background-image: url("assets/img/next-video.png");
    margin-left: 8px;
    margin-right: 0;
    float: right;
}

div.next-video {
    float: right;
}

div.next-video a,
div.prev-video a {
    color: #999999;
}

/** COOKIE CONSENT **/
.cc_message {
    text-align: left;
    text-transform: none;
}

/**
 * DEMO VIDEO LARGHI
 */
@media screen and (min-width: 1024px) {
    section.video.gallery article {
        width: 50%;
        margin-right: 0;
    }
}

section.video.gallery article:nth-child(odd) {
    clear: left;
}

@media screen and (max-width: 660px) {
    section.video.gallery article {
        width: 100%;
    }
}

@media screen and (max-width: 1023px) {
    section.video.gallery article {
        width: 100%;
    }
}
/**
 * CONTATTI SU DUE COLONNE
 */
@media screen and (min-width: 600px) {
    body.page-contact section.main div {
        width: 50%;
        float: left;
    }
}
body.page-contact section.main div p {
    height: 96px;
}

/**
 *Modals Pics
 */
#photoGallery.hidden,
#movieGallery.hidden {
    opacity: 0;
    pointer-events: none;
}
#photoGallery,
#movieGallery {
    opacity: 1;
    pointer-events: initial;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: rgba(0, 0, 0, 0.83);
    z-index: 30;
    transition: opacity 0.5s ease-in-out;
}

a#Close {
    right: 2%;
    position: absolute;
    top: 4%;
    font-size: 50px;
    cursor: pointer;
    z-index: 999;
    color: #fff;
}

.masonryContent {
    display: none;
    width: 80%;
    margin: 0 auto;
    margin-top: 10%;
}

img.content-img {
    display: block;
    margin: 0 auto;
    max-height: calc(100vh - 80px);
}

.qualcosa {
    position: absolute;
    top: 50%;
    left: 50%;
    -moz-transform: translate(-50%, -50%);
    -webkit-transform: translate(-50%, -50%);
    -ms-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
    height: 0;
    width: 100%;
    max-width: 90%;
    padding-bottom: 56.25%;
}

div.movie_title {
    position: fixed;
    bottom: 0;
    width: 100%;
    background: #fff;
    z-index: 999;
    left: 0;
    text-align: center;
    //padding: 15px 0;
}

@media only screen and (min-width: 769px) and (max-width: 1160px) {
    body:not(.home) div.site-container > header h1 {
        float: none;
        text-align: center;
    }
    body:not(.home) div.site-container > header nav {
        float: none;
        width: 100%;
    }

    div.site-container > header ul {
        width: 70%;
        margin: 0 auto;
    }
}

@media screen and (min-width: 1023px) {
    li.space:before {
        content: "|";
        position: absolute;
        left: 1px;
    }
    li.space {
        position: relative;
        padding-left: 10px;
    }
}

div.site-container > header nav ul ul {
    display: none;
    position: absolute;
    background: transparent;
}
@media screen and (max-width: 800px) {
    div#photoGallery {
        /*padding-top: 12%;*/
    }
    .galleryContent {
        height: 100%;
    }
    body.tax-carrozzini_video_category div.site-container > header,
    body.single-carrozzini_video div.site-container > header {
        height: 85px;
    }

    div.movie_title {
        font-size: 10px;
    }
}
@media screen and (max-width: 800px) and (orientation: landscape) {
    div#photoGallery {
        padding-top: 0;
    }
}
.noscroll {
    overflow: hidden;
}

.mejs-overlay-play {
    display: none !important;
}

.slick-initialized .slick-slide {
    height: calc(100vh);
    position: relative;
}

.slick-initialized .slick-slide img {
    position: relative;
    top: 50%;
    transform: translateY(-50%);
}

@media screen and (min-width: 1400px) {
    .BrightcoveExperience {
        max-height: calc(100vh - 200px);
    }
}

@media screen and (min-width: 801px) and (max-width: 1024px) and (orientation: landscape) {
    .qualcosa {
        max-width: 70%;
        padding-bottom: calc(56.25% * 0.7);
        margin-top: -20px;
    }
}
@media screen and (max-width: 800px) and (orientation: landscape) {
    .qualcosa {
        max-width: 60%;
        padding-bottom: calc(56.25% * 0.6);
        top: 36%;
    }
}
@media screen and (min-width: 1025px) {
    .qualcosa {
        max-width: 66%;
        padding-bottom: calc(56.25% * 0.7);
        margin-top: -20px;
    }
}

.netflix {
    display: inline-block;
    text-transform: capitalize;
    text-align: center;
    margin-top: 20px;
    font-size: 20px;
}

.netflix a {
    display: inline-block;
    margin-top: -3px;
    margin-left: 5px;
    vertical-align: middle;
}

.archive_gallery {
    height: 100vh;
    padding: 100px 0 0 0;
    position: relative;
    overflow: hidden;
    box-sizing: border-box;
}
.archive_gallery .slider,
.archive_gallery .slick-list,
.archive_gallery .slick-track,
.archive_gallery .slick-slide {
    width: 100%;
    height: 100%;
}
.archive_gallery .slick-list {
    padding: 0!important
}
.archive_gallery .slick-slide {
    padding: 30px 25px 60px 25px;
    overflow: hidden;
    box-sizing: border-box;
    width: auto;
    opacity: .35;
    transition: all .4s ease;
}
.archive_gallery .slick-slide.slick-center {
    opacity: 1;
}
.archive_gallery .slick-slide img {
    width: auto;
    height: 100%;
    max-width: 100%;
}
.archive_gallery .slick-slide .bottom {
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    padding-bottom: 20px;
}
.archive_gallery .slick-slide .bottom h1 {
    text-transform: none;
    font-weight: 400;
    margin: 0;
}
.archive_gallery .sliderCount {
    position: absolute;
    top: 100px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 20px;
    font-family: "baskerville_old_faceregular";
}

@media screen and (max-width: 1024px) {
    .archive_gallery .slick-slide img {
        height: 80%;
    }
    .archive_gallery {
        padding-top: 127px;
    }
    .archive_gallery .sliderCount {
        top: 127px;
    }
}
@media screen and (max-width: 768px) {
    .archive_gallery {
        height: 100vh;
    }
}
@media screen and (max-width: 600px) {
    .archive_gallery .slick-slide img {
        height: auto;
        width: 300px;
    }
}

.slider-features {
    height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 120px;
}
.slider-features .slick-slide {
    padding: 0 20px;
    width: 919px;
    opacity: .3;
    transition: all .4s ease;
}
.slider-features .slick-slide.slick-center {
    opacity: 1;
}
.slider-features .slick-slide .link {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
}
.slider-features > div,
.slider-features > div > div,
.slider-features > div > div > div {
    height: auto !important;
}
.slider-features .slick-slide img {
    display: inline-block;
    transform: none;
    top: 0;
}
.slider-features .slick-slide .video p {
    position: relative;
}
.slider-features .slick-slide .video video {
    width: 100%;
    max-width: 100% !important;
    height: auto!important;
    cursor: pointer;
}
.slider-features .slick-slide .contents {
    max-width: 100%;
}
.slider-features .slick-slide .contents img {
    max-width: 100%;
    width: auto;
}
@media screen and (max-width: 1440px) {
    .slider-features .slick-slide {
        width: 700px !important;
    }
}
@media screen and (max-width: 1024px) {
    .slider-features .slick-slide {
        width: 500px !important;
        padding: 0 10px;
    }
}
@media screen and (max-width: 600px) {
    .slider-features .slick-slide {
        width: 200px !important;
    }
    .slider-features h2 {
        font-size: 14px;
    }
}
.slider-features h1,
.slider-features h2 {
    font-weight: normal;
    display: inline-block;
}

.slider-features h1 {
    margin-bottom: 0;
}

.slider-features h2 {
    margin-top: 0;
    color: #999999;
}