@import url('https://fonts.googleapis.com/css?family=Work+Sans:400,700,800&display=swap');

* {
    --main-color: rgba(141, 21, 21, 0.8);
    --accent-color: rgba(0, 0, 0, 0.8);
    --black: rgb(0, 0, 0);
    --logo-width: 160px;
    --logo-height: 125px;
}

html,
body {
    overflow: hidden;
    width: 100%;
    height: 100%;
    padding: 0;
    margin: 0;
    overflow: hidden;
    font-family: 'Work Sans', "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 15px;
    background-color: #000;
    color: #fff;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    -moz-user-select: none;
    -webkit-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -ms-text-size-adjust: none;
    -moz-text-size-adjust: none;
    -webkit-text-size-adjust: none;
    text-size-adjust: none;
    -webkit-user-drag: none;
    -webkit-touch-callout: none;
    -ms-content-zooming: none;
}




p {
    font-size: 15px;
    vertical-align: middle;
    -o-text-overflow: ellipsis;
    text-overflow: ellipsis;
    white-space: nowrap;
    -moz-user-select: text;
    -webkit-user-select: text;
    -ms-user-select: text;
    user-select: text;
}






.preload {
    background: rgba(0, 0, 0, 1);
    height: 100vh;
    width: 100vw;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 3;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
}

.preload.loadok {
    opacity: 0;
    -webkit-transform: translateY(-100%);
    -ms-transform: translateY(-100%);
    transform: translateY(-100%);
    -webkit-transition: opacity .5s, -webkit-transform 0s .5s;
    transition: opacity .5s, -webkit-transform 0s .5s;
    -o-transition: opacity .5s, transform 0s .5s;
    transition: opacity .5s, transform 0s .5s;
    transition: opacity .5s, transform 0s .5s, -webkit-transform 0s .5s;
}

.preload img {
    max-width: 300px;
}

.animation {
    background: rgba(0, 0, 0, 1);
    background-image: url(../img/WKS_logo.svg);
    background-repeat: no-repeat;
    background-size: contain;
    position: absolute;
    top: 50%;
    left: 50%;
    -webkit-transform: translate(-50%, -50%);
    -ms-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
    width: 200px;
    height: 200px;
}

@media(min-width: 768px) {
    .animation {
        -webkit-animation: animate 2s linear infinite;
        animation: animate 2s linear infinite;
    }

    @-webkit-keyframes animate {
        0% {
            -webkit-transform: translate(-50%, -50%) perspective(400px) rotateX(0deg) rotateY(0deg);
            transform: translate(-50%, -50%) perspective(400px) rotateX(0deg) rotateY(0deg);
        }

        50% {
            -webkit-transform: translate(-50%, -50%) perspective(400px) rotateX(360deg) rotateY(0deg);
            transform: translate(-50%, -50%) perspective(400px) rotateX(360deg) rotateY(0deg);
        }

        100% {
            -webkit-transform: translate(-50%, -50%) perspective(400px) rotateX(360deg) rotateY(360deg);
            transform: translate(-50%, -50%) perspective(400px) rotateX(360deg) rotateY(360deg);
        }
    }

    @keyframes animate {
        0% {
            -webkit-transform: translate(-50%, -50%) perspective(400px) rotateX(0deg) rotateY(0deg);
            transform: translate(-50%, -50%) perspective(400px) rotateX(0deg) rotateY(0deg);
        }

        50% {
            -webkit-transform: translate(-50%, -50%) perspective(400px) rotateX(360deg) rotateY(0deg);
            transform: translate(-50%, -50%) perspective(400px) rotateX(360deg) rotateY(0deg);
        }

        100% {
            -webkit-transform: translate(-50%, -50%) perspective(400px) rotateX(360deg) rotateY(360deg);
            transform: translate(-50%, -50%) perspective(400px) rotateX(360deg) rotateY(360deg);
        }
    }

}




#titleBar {
    position: absolute;
    z-index: 1;
    top: 0;
    left: 0;
    text-align: center;
    height: var(--logo-height);
    width: var(--logo-width);
    background-color: var(--accent-color);
    background-image: url('../img/WKS_logo.svg');
    background-position: 0 0;
    background-repeat: no-repeat;
    background-size: cover;
}

#welcome {
    background: var(--main-color);
    padding: 0;
    width: 100%;
    overflow: hidden;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
    position: fixed;
    bottom: 0;
}

#welcome div {
    padding: 10px 20px;
}

#welcome p {
    margin-bottom: 0;
}

.cont-welcome {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
}

#logoTour {
    height: auto;
    width: 10%;
}

#logoCifra {
    height: 30px;
    width: auto;
    padding: 0;
}

#bottomBar {
    background: rgba(0,0,0,1);
    width: 100%;
    text-align: right;
}


.contenitore {
    height: calc(100vh - 100px);
    width: 100vw;
    overflow: auto;
    position: relative;
}


.cont-pin {
    position: absolute;
    top: 0;
    left: 0;
    min-height: 100%;
    min-width: 100%
}

.imgmap {
    min-height: 100%;
    min-width: 100%;
}

.pin {
    position: absolute;
}

.reception {
    top: 70%;
    left: 50%;
}

.design {
    top: 57%;
    left: 75%;
}


.showroom1 {
    top: 37%;
    left: 68%;

}

.showroom2 {
    top: 40%;
    left: 48%;
}


.production1 {
    top: 28%;
    left: 50%;
}

.production2 {
    top: 18%;
    left: 47%;
}

.production3 {
    top: 10%;
    left: 44%;
}

.production4 {
    top: 13%;
    left: 55%;
}

.production5 {
    top: 28%;
    left: 25%;
}

.prototypes {
    top: 10%;
    left: 25%;
}




@media(orientation:portrait) and (max-width: 451px) {

    #titleBar {
        position: fixed;
        width: 100%;
        height: 50px;
        background-size: contain;
        background-position-x: 50%;
    }

    #welcome {
        bottom: 0;
    }

    #logoTour {
        top: 35%;
    }

}

@media(orientation:landscape) and (max-width: 820px) {

    #titleBar {
        position: fixed;
        width: 100%;
        height: 50px;
        background-size: contain;
        background-position-x: 50%;
    }

    #welcome {
        bottom: 0;
    }

    #logoTour {
        top: 35%;
    }


}




@media(min-width:500px) {
    p {
        font-size: 25px;
    }
}




@media(min-width:768px) {
    p {
        font-size: 30px;
    }

    .contenitore {
        height: calc(100vh - 120px);
    }

}

@media(min-width:992px) {
    p {
        font-size: 45px;
    }

    .contenitore {
        height: calc(100vh - 150px);
    }
}

@media(min-width:1200px) {
    p {
        font-size: 60px;
    }

    .contenitore {
        height: calc(100vh - 180px);
    }
}

@media(orientation : portrait) and (max-width: 450px) {
    .imgmap {
        height: calc(100vh - 150px);
    }

    .contenitore {
        overflow-y: hidden;
    }


}

@media(orientation : landscape) and (max-height: 450px) {
    .imgmap {
        width: 100% !important;
    }

    .contenitore {
        height: calc(100vh - 50px);
        overflow-x: hidden;
    }

    p {
        font-size: 20px;
    }

    #bottomBar {
        display: none;
    }

}



#sceneListToggle {
    /* display: none; */
    position: fixed;
    top: var(--logo-height);
    left: 0;
    width: var(--logo-width);
    height: 40px;
    padding: 5px;
    background-color: var(--accent-color);
}

.mobile #sceneListToggle {
    display: block;
    top: 0px;
    width: 50px;
    height: 70px;
}

#sceneListToggle .text {
    position: absolute;
    top: 5px;
    left: 15px;
    width: 100%;
    line-height: 30px;
}

#sceneListToggle .icon {
    position: absolute;
    top: 10px;
    left: 35%;
    transform: translateX(50%);
    width: 20px;
    height: 20px;
}

.mobile #sceneListToggle .icon {
    top: 25px;
    left: 15px;
    transform: none;
}

#sceneListToggle .icon.on {
    display: none;
}

#sceneListToggle .icon.off {
    display: block;
}

#sceneListToggle.enabled .icon.on {
    display: block;
}

#sceneListToggle.enabled .icon.off {
    display: none;
}

#sceneList {
    position: absolute;
    top: 0;
    left: 0;
    padding-top: calc(var(--logo-height) + 40px);
    width: var(--logo-width);
    max-height: 100%;
    overflow-x: hidden;
    overflow-y: auto;
    margin-left: 0;
    -webkit-transition: transform 0.5s ease-in-out;
    transition: transform 0.5s ease-in-out;
    transform: translateX(-100%);
    text-align: center;
    padding-bottom: 70px;
}

.mobile #sceneList {
    padding-top: 70px;
    padding-bottom: 0;
}

#sceneList .scenes {
    width: 100%;
    /*background-color: rgb(58,68,84);*/
    background-color: var(--main-color);
}

.mobile #sceneList {
    width: 100%;
    height: 100%;
    /*left: -100%;*/
    transform: translateX(-100%);
    background-color: var(--main-color)
}

.mobile #sceneList.enabled {
    transform: translateX(0);
}

.mobile #sceneList .scenes {
    height: 100%;
    background: none;
}

#sceneList.enabled {
    transform: translateX(0);
}

#sceneList .scene {
    display: block;
    width: 100%;
    height: 40px;
}

.mobile #sceneList .scene {
    height: 40px;
}

#sceneList .scene .text {
    width: 100%;
    height: 100%;
    padding: 0 15px;
    line-height: 40px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mobile #sceneList .scene .text {
    line-height: 40px;
}

.no-touch #sceneList .scene:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

#sceneList .scene.current {
    background-color: rgba(0, 0, 0, 0.8);
}

.collapse .scene,
.collapsing .scene {
    background-color: rgba(83, 13, 13, 0.7);
}


/* Hide scene list when only a single scene exists */
body.single-scene #sceneList,
body.single-scene #sceneListToggle {
    display: none;
}

#sceneList a,
#sceneList a:hover,
#sceneList a:active,
#sceneList a:visited {
    text-decoration: none !important;
    color: white !important;
}

li.dropdown ul {
    display: none;
    /*To hide the items while loading the page */
}

.accordion-toggle {
    position: relative;
}

.accordion-toggle:after {
    font-family: 'FontAwesome';
    content: "\f078";
    position: absolute;
    top: 12px;
    right: 5px;
    transition: transform 0.2s;
}

.accordion-toggle[aria-expanded=false]:after {
    transform: rotate(-90deg);
}



#fullscreenToggle {
    display: none;
    position: absolute;
    top: 0;
    right: 0;
    width: 40px;
    height: 40px;
    padding: 5px;
    background-color: rgba(103, 115, 131, 0.8);
}

.mobile #fullscreenToggle {
    width: 50px;
    height: 50px;
}

body.fullscreen-enabled #fullscreenToggle {
    display: block;
}

#fullscreenToggle .icon {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 30px;
    height: 30px;
}

.mobile #fullscreenToggle .icon {
    top: 10px;
    right: 10px;
}

#fullscreenToggle .icon.on {
    display: none;
}

#fullscreenToggle .icon.off {
    display: block;
}

#fullscreenToggle.enabled .icon.on {
    display: block;
}

#fullscreenToggle.enabled .icon.off {
    display: none;
}


#sceneListToggle {
    /* display: none; */
    position: fixed;
    top: var(--logo-height);
    left: 0;
    width: var(--logo-width);
    height: 40px;
    padding: 5px;
    background-color: var(--accent-color);
}

.mobile #sceneListToggle {
    display: block;
    top: 0px;
    width: 50px;
    height: 70px;
}

#sceneListToggle .text {
    position: absolute;
    top: 5px;
    left: 15px;
    width: 100%;
    line-height: 30px;
}

#sceneListToggle .icon {
    position: absolute;
    top: 10px;
    left: 35%;
    transform: translateX(50%);
    width: 20px;
    height: 20px;
}

.mobile #sceneListToggle .icon {
    top: 25px;
    left: 15px;
    transform: none;
}

#sceneListToggle .icon.on {
    display: none;
}

#sceneListToggle .icon.off {
    display: block;
}

#sceneListToggle.enabled .icon.on {
    display: block;
}

#sceneListToggle.enabled .icon.off {
    display: none;
}

.video-container {
    width: 100%;
    height: 100%;
}

.video-container video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}


.intro-text.common {position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); text-transform: uppercase; width: 300px; text-align: center;text-shadow: 0px 0px 10px rgba(0,0,0,0.4);}
.intro-text.common h1 {color: #fff; margin: 0 0 15px; font-size: 40px;filter: drop-shadow(0px 0px 6px rgba(0,0,0,0.5));}
.intro-text.common h3 {color: #fff; margin: 0; font-size: 60px;}
.intro-text.common h3 > span{
    display: inline;
}

@media (min-width: 1024px) {
.intro-text.common {width: auto; text-align: left; left: 50%;}
.intro-text.common h1 {font-size: 68px; position: absolute; left: 50px; top: -65px;}
.intro-text.common h1 > span {min-width: 500px; display: inline-block;}
.intro-text.common h1 span:last-child {margin-left: -20px;}
.intro-text.common h3 {font-size: 60px; position: absolute; left: -310px; bottom: -111px;}
.intro-text.common h3 > span{
    display: block;
}
.intro-text.common::after {content: ""; height: 2px; width: 500px; background: #ff0000; position: absolute; transform: translateX(-50%) rotate(105deg);}
}


.mobile #titleBar {
    position: fixed;
    width: calc(100% - 50px);
    height: 70px;
    background-size: contain;
    background-position-x: calc(50% - 25px);
    left: 50px;
  }

  @media (max-width: 815px) and (orientation: landscape){
    .intro-text.common h3 {
        font-size: 28px;
        margin-top: 50px;
    }
  }