﻿/*
    VIDEOLIBRO

    Author: Alberto Cobre
    eMail: a.cobre@promonivideo.it
    Company: PROMOinVIDEO Srl

    rev: 25.02.2016
*/

/************* BASE *************/
html body {
    min-width: 320px;
    min-height: 320px;

    width: 100%;
    height: 100%;
    position: absolute;

    overflow-y: hidden;
    margin: 0;

    font-family: "OpenSans-Regular", Verdana, Arial;
    font-size: 18px;
    line-height: 1.1em;
    text-align: center;
    color: #000;

    -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: #970a2c;
}

a:visited {
    color: #970a2c;
}

.tooltip {
    color: #970a2c;
    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(-50%);
    -moz-transform: translateY(-50%);
    -ms-transform: translateY(-50%);
    -o-transform: translateY(-50%);
    transform: translateY(-50%);
    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-button-disabled {
    opacity: .2;
}
.swiper-pagination-bullet {
    width: 15px;
    height: 15px;
    opacity: .5;
}
.swiper-pagination-bullet-active {
    opacity: 1;
    background-color: #FFCE11;
}
/*************  PAGE SECTIONS: COVER *************/
#cover {
    position: absolute;
    z-index: 99;

    left: 0;
    top: 128px;
    bottom: 33px;

    width: 100%;
    display: none;
}

#cover iframe {
    position: relative;
    border: 0;
}

#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(100, 100, 100);
    -moz-box-shadow:    inset 0 2px 10px 0 rgb(100, 100, 100);
    box-shadow:         inset 0 2px 10px 0 rgb(100, 100, 100);

}
.background {
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    background-color: #fff;
}

/************* PAGE SECTION: TOP & LOGO *************/
#top {
    width: Calc(100%-20px);
    padding: 0 10px;
    height: 113px;

    background-color: #fff;
    border-top: 3px solid #FFCE11;

    display: flex;
}

    #logo {
        width: 15%;
        max-width: 210px;
        min-width: 80px;
        height: 98px;
        margin: 15px 20px 0 20px;
        cursor: pointer;

        -moz-box-sizing:  content-box;
        -webkit-box-sizing:  content-box;
        box-sizing:  content-box;

        background-image: url('../images/logo.png');
        background-size: 100% auto;
        background-color: #fff;
        background-repeat: no-repeat;
        background-position: center;
    }
    #lang {
        width: 100px;
        height: 113px;
        cursor: pointer;
        
        line-height: 113px;
    }
@media only screen and (max-width : 400px) {
    #logo {
        height: 50px;
    }
}
/************* PAGE SECTION: CATEGORIA *************/
#cat {
    width: Calc(100% - 380px);
    height: 100%;
    display: flex;

    font-size: 18px;
    line-height: 1.3em;
    flex-grow: 2;
}
#categoria {
    width: Calc(100% - 100px);
    height: 100%;
}

#categoria .swiper-slide {
    width: 12%;
    height: 100%;

    background-color: #fff;
    
    text-align: center;
    cursor: pointer; 

    -moz-box-sizing: border-box;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
}

#categoria .slide-link {
    color: #13275c;
    text-decoration: none;
    font-weight: 900;
}

#categoria .slide-wrapper {
    display: table;
    max-width: 160px;
    
}

#categoria .swiper-slide p {
    position: relative;
    display: table-cell;
    vertical-align: middle;
    padding: 0 20px 0 20px;
}
#categoria .swiper-slide img{
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    margin: auto;
}

#categoria .swiper-slide:not(.active):hover .slide-link, #lang a:not(.active):hover {
    color: #FFCE11;
}

#categoria .swiper-slide:active .slide-link {
    color: #13275c;
}

#categoria .active .slide-link, #lang .active   {
    color: #FFCE11;
    font-family: "OpenSans-Bold";
    font-weight: 900;
}

.categoria-arrow {
    width: 50px;
    height: 100%;
    text-align: center;
    cursor: pointer;
    align-items: center;
    line-height: 66px;
    display: none;
}
.categoria-arrow i {
    display: table-cell;
    vertical-align: middle;
    color: #a0a8cf;
}
.categoria-arrow:hover i {
    color: #13275c;
}
.categoria-arrow:active i {
    color: #FFCE11;
}

@media (max-width:1150px) {
    #categoria .swiper-slide {
        width: 25%;
    }
    .categoria-arrow {
        display: table;
    }
}
@media (max-width:800px) {
    #categoria .swiper-slide {
        width: 33%;
        font-size: 14px;
    }
}
@media (max-width:670px) {
    #categoria .swiper-slide {
        width: 100%;
        font-size: 18px;


    }
    #categoria .slide-wrapper {
        max-width: 100%;
    }
}

/************* PAGE SECTION: FAMIGLIA *************/
#high {
    background-color: #fff;
    display: block;
    width: 100%;
    height: 15px;
}

#famiglia {
    width: auto;
    height: 100%;

    border-top: 1px solid #000;
}

#famiglia .slide-link {
    color: #fff;
    text-decoration: none;
}

#famiglia .swiper-wrapper {
    width: 100%;
}

#famiglia .swiper-slide {
    width: 19.99%;
    min-width: 200px;
    height: 100%;

    background-size: 100% 100%;

    text-align: center;
    cursor: pointer;

    -moz-box-sizing: border-box;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    
    border-right: 1px solid #2C2C2A;
}
    @media (max-width:800px) {
        #famiglia .swiper-slide {
            width: 33%;
        }
    }
    @media (max-width:600px) {
        #famiglia .swiper-slide {
            width: 100%;
        }
    }

#famiglia .swiper-slide .slide-wrapper {
        /*border: 1px solid #505050;*/
}
#famiglia .swiper-slide:first-child {
	/*border-left: none;*/
}

    #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:not(.active):hover {
    background-color: #2C2C2A;
}

#famiglia .swiper-slide:active {
    background-color: #2C2C2A;
}
#famiglia .active {
    background-color: #e80716;
}
/************* TEMPLATE: PRODOTTO *************/
#middle {
    position: absolute;
    overflow: hidden;

    width: 100%;
    top: 128px; /* section:top + section:high*/
    bottom: 100px; /* section:bottom */

    background-color: #2C2C2A;
}

#prodotto {
    width: 100%;
    height: 100%;

    position: relative;
}

#prodotto .swiper-wrapper {
    width: 100%;
    height: 100%;
    position: absolute;
}
#prodotto .pagination-prodotto {
    display: none;
}

    #prodotto .swiper-slide { /* slide-prodotto & slide-gallery */
        width: 100%;
        height: 100%;
        background-size: contain;
        background-repeat: no-repeat;
        background-position: center;
        display: flex;
    }
    #prodotto .slide-gallery-content {
        width: 100%;
        height: 100%;

        background-size: contain;
        background-repeat: no-repeat;
        background-position: center;
        background-color: #2C2C2A;
    }
    #prodotto .slide-prodotto {
        background-color: #2C2C2A/
    }
    /* GALLERY */
    .swiper-gallery {
        width: 100%;
        height: 100%;
    }
#prodotto .prodotto-background {
    width: 30%;
    height: 100%;

    float: right;
    margin-right: 10%;

    position: relative;

    font-size: 36pt;
}
    #prodotto .product-details {
        width: 50%;
        height: 100%;
        /*background-color: white;*/

        -moz-box-sizing: padding-box;
        -webkit-box-sizing: padding-box;
        box-sizing: padding-box;

        padding: 2%;
        text-align: left;
        float:left;
    }

    /* TABELLE */
    .product-table {
        margin-top: 10px;
    }
    .cella-base {
        display: inline-block;
        padding: 2px 10px;
        margin:  2px 5px 2px 0;
        min-width: 30px;
        text-align: center;
    }
    .cella-bordo {
        border: 1px solid #333;
    }
    .cella-fill {
        color: #fff;
        background-color: #e80716;
    }

#prodotto .product-image {
    width: 50%;
    height: 100%;
    display: inline-block;
    background-image: url('../images/placeholder.jpg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    position: relative; /* for preload center */
}

#prodotto h2{
    font-family: "OpenSans-Regular";
    font-size: 42px;
    font-weight: normal;
    color: #FFCE11;
    line-height: 1.2em;
    margin-top: 3%;
    text-transform: uppercase;
}
#prodotto h3{
    font-family: "OpenSans-Bold";
    font-size: 16px;
    color: #FFCE11;
    line-height: 1em;
    margin-top: 20px;

}

#prodotto .description p
{
    font-family: "OpenSans-Regular";
    color: #fff;
    margin-top: 10px;
}

#prodotto .prodotto-change {
    position: absolute;
    color: #fff;
    font-size: 24px;
    right: 0;
    padding: 10px;
    z-index: 99;
    opacity: .5;
    cursor: pointer;
    display: none;
}
/************* SLIDE BAR *************/
.slide-bar {
    position: absolute;
    height: 85px;
    bottom: 0;
    left: 0;
    width: 100%;
    text-align: center;

    -ms-flex-direction: row;
    -webkit-flex-direction: row;
    flex-direction: row;

    display: flex;
    z-index: 99;
}
.slide-bar img {
    cursor: pointer;
    margin: 20px;
}
.slide-button {
    width: 20%;
    height: 100%;
    min-width: 150px;
    max-width: 190px;
    margin: 0 20px;
    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-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;
        height: 150px;
        width: auto;
    }
    .slide-button {
        height: 33%;
    }
}
/************* TEMPLATE: PRODOTTO-BAR *************/
#bottom {
    background-color: #fff;

    position:absolute;
    bottom: 33px;

    width: 100%;
    height: 55px;

    border-top: 1px solid #000;
}

#prodottobar {
    float: left;
 
    width: calc(100% - 100px);
    height: 100%;

    margin: 0;

    font-family: "OpenSans-Regular";
    font-size: 18px;
    line-height: 1.2em;
}

#prodottobar .swiper-wrapper {
    width: 100%;
    min-width: 50px;
}

#prodottobar .swiper-slide {
    width: 150px;
    height: 100%;

    padding-left: 10px;
    padding-right: 10px;
   
    text-align: center;
    cursor: pointer;
}
#prodottobar .swiper-slide:first-child {
	border-left: none;
}

#prodottobar .swiper-slide p {
    position: relative;
}

#prodottobar .swiper-slide:not(.active):hover {
    background-color: #FFCE11;
}

#prodottobar .swiper-slide:active {
    background-color: #FFCE11;
}

#prodottobar .active .slide-link  {
    color: #13275c;
    font-family: "OpenSans-Bold";
    /*background-image: url('../images/select.png');
    background-position: center bottom;
    background-repeat: no-repeat;*/
}
#prodottobar .slide-link {
    color: #a0a8cf;
    text-decoration: none;
    text-transform: uppercase;
    height: 100%;
    display: block;
}


.prodottobar-arrow {
    float: left;
    width: 50px;
    height: 100%;
    
    text-align: center;
    cursor: pointer;

    line-height: 66px;
}
.prodottobar-arrow i {
    color: #a0a8cf;
}
.prodottobar-arrow:hover i {
    color: #13275c;
}
.prodottobar-arrow:active i {
    color: #FFCE11;
}

/************* TEMPLATE: FOOTER *************/
#footer {
    -moz-box-sizing: padding-box;
    -webkit-box-sizing: padding-box;
    box-sizing: padding-box;

    position: absolute;
    bottom: 0;
    width: 100%;
    height: 33px;

    background-color: #FFCE11;
    text-align: right;
    font-size: 11px;
    line-height: 33px;
    color: #13275c;
}
#footer a {
    color: #13275c;
}

.footer-text {
    position: absolute;
    width: 100%;
    height: 20px;
    
    font-size: 10px;
    padding: 0 10px;
}
.footer-left {
    margin-left: 10px;
    float: left;
}
.footer-right {
    margin-right: 10px;
    float: right;
}


@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;
    }
}

@media only screen and (max-height : 700px) {
    #top, #lang, #logo {
        height: 57px;
        line-height: 57px;
        min-width: 0;
        padding: 0;
    }
    #logo {
        margin: 0 0 0 5px;
    }
    #cat {
        width: Calc(100% - 160px);
    } 
    #lang {
        width: 70px;
    }
    #categoria .swiper-slide p {
        padding: 0;
        font-size: 10px;
        line-height: 12px;
    }
    #middle {
        top: 60px;
    }
    #prodotto .product-title {
        font-size: 32px;
    }
    #prodotto .product-text{
        margin-top: 2%;
    }
    .slide-ingredienti-title {
        font-size: 22px;
    }
}
@media only screen and (max-height : 600px) and (max-width : 800px) {
    #middle {
        line-height: 1.3;
    }
   #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 (max-width:400px) {
    #prodottobar .swiper-slide {
        width: 100%;
    }
}
@media (max-height:600px) {
    #bottom {
        display: none;
    }
    #middle {
        bottom: 20px;
    }
    #prodotto .pagination-prodotto {
        display: unset;
    }
    #footer {
        height: 20px;
        line-height: 20px;
    }
}

@media only screen and (max-width : 480px) {
    #footer {
        text-align: center;
    }
    #footer .footer-left {
        margin-left: 0;
        width: 100%;
    }
    #footer .footer-right {
        display: none;
    }
}