﻿/*
    CATALOGO MULTIMEDIALE

    Author: Alberto Cobre
    eMail: a.cobre@ocalab.it
    Company: OOCALAB by PROMOinVIDEO Srl

    rev: 09.05.2018
*/

/************* BASE *************/

html body {
    min-width: 320px;
    min-height: 360px;
    width: 100%;
    height: 100%;
    position: absolute;
    overflow-y: hidden;
    margin: 0;
    font-family: "open_sans", Verdana, Arial;
    font-size: 18px;
    line-height: 1.1em;
    text-align: center;
    color: #303030;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.template {
    display: none;
}

.noselect {
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

p,
h1,
h2,
h3 {
    margin: 0;
    font-weight: normal;
}

a:link {
    color: #6e2a2c;
}

a:visited {
    color: #6e2a2c;
}

.tooltip {
    color: #6e2a2c;
    text-decoration: underline;
    cursor: pointer;
}

.swiper-pagination-switch {
    display: inline-block;
    width: 8px;
    height: 8px;
    margin-right: 5px;
    background: #555;
    opacity: 0.8;
    border-radius: 8px;
    border: 1px solid #fff;
    cursor: pointer;
}

.swiper-scrollbar {
    bottom: auto !important;
}

.swiper-scrollbar-drag {
    background: rgba(250, 255, 255, 0.5) none repeat scroll 0 0;
}

.swiper-active-switch {
    background: #fff;
}

.slide-wrapper {
    width: 100%;
    height: calc(100% - 2px);
    position: relative;
}

.vertical-align {
    top: 50%;
    -webkit-transform: translateY(-45%);
    -moz-transform: translateY(-45%);
    -ms-transform: translateY(-45%);
    -o-transform: translateY(-45%);
    transform: translateY(-45%);
    margin: 0 auto;
}

.grayscale {
    -webkit-filter: grayscale(100%);
    -moz-filter: grayscale(100%);
    -ms-filter: grayscale(100%);
    -o-filter: grayscale(100%);
    filter: grayscale(100%);
    filter: url(grayscale.svg#greyscale);
    /* Firefox 4+ */
    filter: gray;
    /* IE 6-9 */
}

.swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    opacity: 1;
    border: 1px solid #682045;
    background-color: transparent;
}

.swiper-pagination-bullet-active {
    background-color: #6e2a2c;
}
.swiper-container-vertical > .swiper-pagination-bullets {
    left: 10px;
}

/*************  PAGE SECTIONS: COVER *************/

#cover {
    position: absolute;
    z-index: 99;
    left: 0;
    top: 120px;
    bottom: 40px;
    width: 100%;
    display: none;
}

#cover iframe {
    position: relative;
    border: 0;
    background-color: #292929;
    background-size: cover;
}

#cover::before {
    /* won't bother in IE8 */
    position: absolute;
    z-index: 99;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    content: '';
    pointer-events: none;
    -webkit-box-shadow: inset 0 2px 10px 0 rgb(30, 30, 30);
    -moz-box-shadow: inset 0 2px 10px 0 rgb(30, 30, 30);
    box-shadow: inset 0 2px 10px 0 rgb(30, 30, 30);
}

.vlBackground {
    background-repeat: no-repeat;
    background-position: right;
    background-size: contain;
    background-color: #fff;
}

/************* PAGE SECTION: TOP & LOGO *************/

#top {
    width: 100%;
    height: 60px;
    background-color: #fff;
    border-bottom: #682045;
    border-top: 1px solid #682045;
}

#logo {
    width: 100%;
    max-width: 342px;
    min-width: 80px;
    height: 120px;
    -moz-box-sizing: content-box;
    -webkit-box-sizing: content-box;
    box-sizing: content-box;
    float: left;
    background-image: url('../images/logo.svg');
    background-size: 90% auto;
    background-repeat: no-repeat;
    background-position: center;
    cursor: pointer;
}

#home {
    width: 100px;
    height: 100px;
    position: absolute;
    top: 0;
    right: 0;
    z-index: 99;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #fff;
    color: #303030;
    font-size: 15px;
}

#home:hover {
    background-color: #292929;
    color: #fff;
}

@media only screen and (max-width: 1024px) {
    #logo {
        max-width: 200px;
    }
}

/************* PAGE SECTION: CATEGORIA *************/

#categoria {
    height: 100%;
    font-size: 16px;
    line-height: 1.3em;
}

#categoria .swiper-slide {
    width: 19.99%;
    min-width: 100px;
    height: 100%;
    color: #682045;
    border-right: 1px solid #682045;
    background-color: #fff;
    text-align: left;
    cursor: pointer;
    -moz-box-sizing: border-box;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
}

@media only screen and (max-width: 1500px) {
    #categoria {
        font-size: 12px;
    }
}

@media (max-width:800px) {
    #categoria .swiper-slide {
        width: 33%;
    }
}

@media (max-width:600px) {
    #categoria .swiper-slide {
        width: 100%;
    }
}

#categoria .swiper-slide p {
    position: relative;
    text-transform: uppercase;
    font-weight: 600;
    padding: 0 10px;
}

#categoria .swiper-slide img {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    height: 80%;
    margin: auto;
}

#categoria .swiper-slide:first-child {
    border-left: 1px solid #682045;
}

#categoria .swiper-slide:not(.active):hover {
    background-color: #682045;
    color: #fff;
}

#categoria .swiper-slide:active {
    background-color: #682045;
    color: #fff;
}

#categoria .active {
    background-color: #682045;
    color: #fff;
    border: 1px solid #fff;
    /*background-image: url('../images/select.png');
    background-position: center bottom;
    background-repeat: no-repeat;*/
}

/************* PAGE SECTION: FAMIGLIA *************/

#high {
    background-color: #fff;
    border-bottom: 1px solid #682045;
    width: 100%;
    height: 60px;
}

#famiglia {
    width: auto;
    height: calc( 100% - 1px);
    color: #682045;
    background-color: #fff;
    border-top: 1px solid #682045;
    border-right: 1px solid #682045;
    font-weight: 600;
}

#famiglia .swiper-wrapper {
    width: 100%;
}

#famiglia .swiper-slide {
    width: 19.99%;
    height: 100%;
    border-right: 1px solid #682045;
    background-size: 100% 100%;
    text-align: left;
    cursor: pointer;
    -moz-box-sizing: border-box;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
}
#famiglia .swiper-slide:first-child {
    border-left: 1px solid #682045;
}

@media (max-width:1024px) {
    #famiglia {
        font-size: 12px;
    }
}

@media (max-width:800px) {
    #famiglia .swiper-slide {
        width: 33%;
    }
}

@media (max-width:600px) {
    #famiglia .swiper-slide {
        width: 100%;
    }
}

#famiglia .swiper-slide p {
    padding-left: 10px;
    padding-right: 10px;
    position: relative;
    top: 50%;
    -webkit-transform: translateY(-50%);
    -ms-transform: translateY(-50%);
    -moz-transform: translateY(-50%);
    -o-transform: translateY(-50%);
    transform: translateY(-50%);
    margin: 0 auto;
}

#famiglia .swiper-slide:first-child {
    border-left: 1px solid #682045;
}

#famiglia .swiper-slide:not(.active):hover {
    background-color: #682045;
    color: #fff;
}

#famiglia .swiper-slide:active {
    background-color: #682045;
    color: #fff;
}

#famiglia .active {
    background-color: #682045;
    color: #fff;
    border: 1px solid #fff;
}

/************* TEMPLATE: PRODOTTO *************/

#middle {
    position: absolute;
    overflow: hidden;
    width: 100%;
    top: 122px;
    /* section:top + section:high*/
    bottom: 100px;
    /* section:bottom */
}

#prodotto {
    width: 100%;
    height: 100%;
    position: relative;
}

#prodotto .swiper-wrapper {
    width: 100%;
    height: 100%;
    position: absolute;
}

#prodotto .pagination-prodotto {
    display: unset;
}

#prodotto .swiper-slide {
    /* slide-prodotto & slide-gallery */
    width: 100%;
    height: 100%;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    display: flex;
    -ms-flex-direction: row;
    -webkit-flex-direction: row;
    flex-direction: row;
}

#prodotto .slide-gallery-content {
    width: 100%;
    height: 100%;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

#prodotto .slide-prodotto {
    background-color: #fff;
}

/* GALLERY */

.swiper-gallery {
    width: 100%;
}

#prodotto .prodotto-background {
    width: 30%;
    height: 100%;
    float: right;
    margin-right: 10%;
    background-color: #303030;
    position: relative;
    font-size: 36pt;
}

#prodotto .product-details {
    width: 50%;
    /*background-color: white;*/
    -moz-box-sizing: padding-box;
    -webkit-box-sizing: padding-box;
    box-sizing: padding-box;
    padding: 2%;
    text-align: left;
}

/* TABELLE */

.product-table {
    margin-top: 10px;
}

.cella-base {
    display: inline-block;
    padding: 2px 5px;
    margin: 2px 5px 2px 0;
    min-width: 40px;
    text-align: center;
}

.cella-bordo {
    border: 1px solid #333;
}

.cella-fill {
    color: #fff;
    background-color: #6e2a2c;
}

.cella-title {
    color: #333;
    border-bottom: 1px dotted #333;
}

#prodotto .product-image {
    width: 50%;
    display: block;
    background-image: url('../images/placeholder.jpg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    position: relative;
    /* for preload center */
}

#prodotto .prodotto-change {
    position: absolute;
    right: 0;
    padding: 10px;
    z-index: 99;
    opacity: .5;
    cursor: pointer;
    display: none;
}

#prodotto h1 {
    font-weight: normal;
    color: #6e2a2c;
    line-height: .5em;
    font-weight: 700;
    margin-top: 2%;
}

#prodotto h3 {
    font-weight: 100;
    color: #6e2a2c;
    line-height: 1em;
    margin-top: 3%;
}

#prodotto .product-sep {
    font-size: 42px;
    font-weight: 100;
    color: #6e2a2c;
    line-height: .5em;
    margin-bottom: 3%;
}

#prodotto .title-sep {
    font-weight: 900;
}

#prodotto .description,
#prodotto .ingredienti,
#prodotto .allergeni,
#prodotto .notes {
    margin-top: 10px;
    line-height: 1.2em;
}

/* ############################# ATTRIBUTES */

#prodotto .optional-div {
    display: flex;
}

#prodotto .optional-item {
    text-align: center;
    width: 150px;
    margin: 0 0 5px 0;
}

#prodotto .optional-text {
    color: #6e2a2c;
    font-size: 12px;
    word-wrap: none;
    text-transform: uppercase;
    text-decoration: underline;
}

#prodotto .slide-ingredienti-title {
    color: #6e2a2c;
    font-size: 14px;
    text-transform: uppercase;
    background-color: #eeeeee;
    padding: 5px;
    margin: 15px 0;
}

#prodotto .ingredienti span {
    padding: 5px;
    border: 1px solid #eee;
    line-height: 2.3em;
    white-space: nowrap;
}

#prodotto .allergeni span {
    padding: 5px;
    border: 1px solid #eee;
    line-height: 2.3em;
    white-space: nowrap;
    font-family: "montserrat-semibold";
    background-color: #FAEBD7;
}

@media only screen and (max-height: 600px) and (max-width: 800px) {
    #middle {
        line-height: 1.3;
    }
    #prodotto .slide-gallery {
        display: block;
    }
    #prodotto .product-title {
        font-size: 28px;
    }
    #prodotto .product-text {
        margin-top: 0;
        font-size: 12px;
    }
    .slide-ingredienti-title {
        font-size: 16px;
        padding-bottom: 0;
    }
}

@media only screen and (max-width: 800px) {
    #prodotto .product-details {
        width: 100%;
    }
    #prodotto .product-image {
        width: 100%;
        height: 50%;
        background-position: center;
    }
}

@media only screen and (max-height: 700px) {
    #middle {
        top: 100px;
    }
    #prodotto .product-title {
        font-size: 32px;
    }
    #prodotto .product-text {
        margin-top: 2%;
    }
    #prodotto .slide-ingredienti-title {
        font-size: 22px;
    }
}

@media only screen and (max-width: 600px) {
    #prodotto .slide-gallery {
        display: block;
    }
    #prodotto .product-details {
        width: 100%;
    }
    #prodotto h2 {
        margin-top: 0;
    }
    #prodotto .product-image {
        width: 100%;
        height: 100%;
        background-position: center;
    }
    #prodotto .prodotto-change {
        display: block;
    }
}

@media only screen and (max-width: 400px) {
    .description {
        display: none;
    }
}

/************* SLIDE BAR *************/

.slide-bar {
    position: absolute;
    height: 80px;
    bottom: 0;
    right: 0;
    width: 100%;
    text-align: center;
    -ms-flex-direction: row-reverse;
    -webkit-flex-direction: row-reverse;
    flex-direction: row-reverse;
    display: flex;
    z-index: 99;
}

.slide-bar img {
    cursor: pointer;
    margin: 20px;
}

.slide-button {
    width: 30%;
    height: 100%;
    min-width: 150px;
    max-width: 214px;
    margin: 0 10px;
    float: right;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    display: none;
    position: relative;
}

.slide-button img {
    position: absolute;
    margin: auto;
    top: 0;
    bottom: 0;
    width: 100%;
}

.slide-button .img-hover {
    opacity: 0;
}

.mfp-content {
    /*max-width: 100% !important;*/
    /*max-height: 100% !important;*/
}
.mfp-optional {
        position: relative;
        background: #FFF;
        padding: 40px;
        width: auto;
        max-width: 500px;
        margin: 40px auto;
}

.mfp-iframe-holder {
    /*padding: 50px !important;*/
}

@media only screen and (max-width: 800px) {
    .slide-bar {
        -ms-flex-direction: column-reverse;
        -webkit-flex-direction: column-reverse;
        flex-direction: column-reverse;
        right: 0;
        bottom: 40px;
        height: 150px;
        width: auto;
    }
    .slide-button {
        height: 22%;
    }
}

/************* TEMPLATE: PRODOTTO-BAR *************/

#bottom {
    background-color: #682045;
    position: absolute;
    bottom: 40px;
    width: 100%;
    height: 60px;
}

#prodottobar {
    float: left;
    width: calc(100% - 60px);
    height: 100%;
    margin: 0;
    font-size: 16px;
    line-height: 1.2em;
    color: #fff;
}

#prodottobar .swiper-wrapper {
    width: 100%;
    min-width: 50px;
}

#prodottobar .swiper-slide {
    width: 200px;
    height: 100%;
    padding-left: 10px;
    padding-right: 10px;
    text-align: left;
    cursor: pointer;
}

#prodottobar .swiper-slide:first-child {
    border-left: none;
}

#prodottobar .swiper-slide p {
    position: relative;
}

#prodottobar .swiper-slide:not(.active):hover {
    background-color: #fff;
    color: #682045;
}

#prodottobar .swiper-slide:active {
    background-color: #fff;
}

#prodottobar .active {
    background-color: #fff;
    color: #682045;
    border: 1px solid #682025;
    /*background-image: url('../images/select.png');
    background-position: center bottom;
    background-repeat: no-repeat;*/
}

.prodottobar-arrow {
    float: left;
    width: 30px;
    height: 100%;
    text-align: center;
    cursor: pointer;
    line-height: 70px;
    background-color: #d3bdc9;
}

.prodottobar-arrow i {
    color: #682045;
}

.prodottobar-arrow:hover i {
    color: #fff;
}

.prodottobar-arrow:active i {
    color: fff;
}

@media (max-width:400px) {
    #prodottobar .swiper-slide {
        width: 100%;
    }
}

@media (max-height:600px) {
    #bottom {
        display: none;
    }
    #middle {
        bottom: 20px;
    }
    #prodotto .pagination-prodotto {
        display: unset;
    }
}

/************* TEMPLATE: FOOTER *************/

#footer {
    -moz-box-sizing: padding-box;
    -webkit-box-sizing: padding-box;
    box-sizing: padding-box;
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 40px;
    background-color: #330c1f;
    text-align: right;
    font-size: 12px;
    color: #fff;
}

#footer p,
#footer span {
    margin-right: 10px;
    line-height: 40px;
}

.footer-left {
    padding-left: 20px;
    float: left;
}

.footer-right {
    padding-right: 10px;
    float: right;
}

@media only screen and (max-width: 480px) {
    #footer {
        text-align: center;
    }
    #footer p {
        margin-right: 0;
    }
    #footer .footer-left {
        margin-left: 0;
    }
    #footer .footer-right {
        display: none;
    }
}