/*
* ! This Sheet overrides previuos style sheets behaviors.
* ! It will NOT influence general properties or other elements
* than those descripted under.
* ! HTML: corresponding CSS link tag must be placed as the last one.
* 
* It affects:
* 1. Main Video
* 2. Main Image
* 3. Work Videos
*/

body {
    overflow: hidden;
}

@font-face {
  font-family: CooperBlackStd;
  src: url(CooperBlackStd.otf);
  font-display: swap;
}

#innerDiv h1 { font-family:CooperBlackStd}

/* Main Video --------------------------------------------*/

#videoContainer {
    width: 100%;
    height: 85vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    user-select: none;
}

#videoOverlay {
    z-index: 1;
    height: 100%;
}

#preLoad_logo {
    position: fixed;
    width: 100%;
	background:#FFF;
	z-index:9999;
	height:100%;
	padding-top:250px;
}

#preLoad_logo * {
    /* width: 11rem; */
    width: 0;
    height: 1.75rem;
}

#preLoad_logo hr:nth-child(1) {
    animation: preload_logo 0.8s infinite alternate;
}
#preLoad_logo hr:nth-child(2) {
    animation: preload_logo 0.8s 0.18s infinite alternate;
}
#preLoad_logo hr:nth-child(3) {
    animation: preload_logo 0.8s 0.36s infinite alternate;
}

@keyframes preload_logo {
    from {width: 0;}
    to {width: 11rem;}
}

#mainVideo {
    position: absolute;
    top: 0;
    left: 50%;
    width: auto;
    height: 146%;
    max-width: inherit;
    transform: translate(-50%, -250px);
    z-index: 0;
	
    /* background-color: rgb(186, 212, 245); */
    background-color: rgb(68, 73, 78);
    /* animation-name: bkgnAnim;
    animation-duration: 15s;
    animation-iteration-count: infinite; */
}

@keyframes bkgnAnim {
    0% { background-color: red; } /* must be equal to 100%*/
    20% { background-color: blue; }
    40% { background-color: green;}
    60% { background-color: yellow;}
    80% { background-color: orange;}
    100% {background-color: red;} /* must be equal to 0%*/
}

@media screen and (max-width: 769px) {  
    #mainVideo {
        height: 110%;
        transform: translate(-50%, -8%);
    }
}

#innerDiv {
    margin: 50px 100px;
    width: 80%;   
    color: white;
    font-size: 3.5vw;
    line-height: normal;
    z-index: 1;
    position: relative;
    top: -50px;
    /* top: 350px; Modified by the script*/
}

@media screen and (max-width: 1200px) {  
    #innerDiv {
        font-size: 5.5vw;
        width: 80%;
        margin-left:10%;
        margin-right:10%;
    }
}

@media screen and (max-width: 769px) {  
    #innerDiv {
        /* font-size: 7.5vw; */ /*old font-size*/ 
        width: 80%;
        margin-left:10%;
        margin-right:10%;

        font-size: 2.73em; /*on specs doc: o.53em */
        /* background: #000; */
        font-family: roboto;
        padding: 5px;
        opacity: 0.8;
        top: 0;
    }
}

/* @media screen and (max-width: 550px) {  
    #innerDiv {
        font-size: 10.5vw;
    }
} */

/* Image ---------------------------------------------------*/

.hero-body {
    height: 630px;
    background-image:url('https://www.psycode.it/img/background-hero_ok.jpg');
    background-position: center;
    background-size: 100% auto;
    transform:translateY(10px);
    top: -11px;
    position: relative;
}

@media screen and (max-width: 990px) { 
    .hero-body {
        background-size: 125% auto;
    }
}

@media screen and (max-width: 769px) { 
    #videoContainer {
        height: 440px;
    }

	.hero-body {
        background-position: center -0px !important;
        background-size: initial;
        height: 600px;
	} 
}

/* Our Works images & videos  -------------------------------*/
#works>*:active, .slider__arrow:active{ /* deactivate blue highlight on clickable items */
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-tap-highlight-color: transparent; 
}

.columns.is-centered {
    margin: 0px !important;;
    width: 100%;
}

/* .column.is-11 {
    width: 100% !important; 
    padding: 0px;
} */

.slider__arrow--works {
    margin: 0px -40px;
    top: 40%;
}


.slickSlider--works>.slider__item {
    padding: 0;
}


video {
    max-width: 60%;
}

.workVideosCont, .workImgs, .overImg, .darkOverlay {
    width: 100%;
    height: auto;
}

#cosaFacciamoOnImg{
    width: 90%;
}

@media screen and (max-width: 769px){
    #cosaFacciamoOnImg{
        width: auto;
        max-width: initial;
        padding: 0
    }
}

#cosaFacciamoOnImg *{
    text-align: center;
    color:white;
}

#imgSubtitle {
    text-align: left;
    font-size: 1.95em;
    line-height: 1.7;
}

@media screen and (max-width: 769px){
    #imgSubtitle {
        font-size: 1.5rem;
    }   
}

#worksMediaTextContainer {
    width: 100%;
}

@media screen and (min-width: 769px){
    #worksMediaVideosContainer.column.is-6-widescreen.is-7-desktop.is-8-tablet {
        width: 90%;
    }
}

@media screen and (max-width: 769px){
    .slider__arrow--works{
        display: none;
    }
    .slickSlider--works {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        justify-content: center;
    }
    .slickSlider--works>.slider__item {
        flex-basis: 50%;
    }
    
    .column.is-6-widescreen.is-7-desktop.is-8-tablet {
        padding: 0;
        width: unset;
        max-width: unset;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    #workCenterColumn {
        display: flex;
    }
	
	.imgphone { display:none}
}
/* #worksMediaVideosContainer{
    width: 90% !important;
} */

.workVideosCont {
    overflow: hidden;
}

.mediaCont {
    position: relative;
    margin: 1px 10px;
    cursor: pointer;
}
.mediaCont:first-child {
    z-index: 1;
}

.mediaCont * {
    pointer-events: none;
}

.overImg, .workImgs {
    position: relative;
    height: 100%;
    opacity: 1;
    -webkit-transition: transform 0.25s;
    transition: transform 0.25s;

    /* Unselectable properties */
    -moz-user-select: -moz-none;
    -khtml-user-select: none;
    -webkit-user-select: none;
    /*
        Introduced in IE 10.
        See http://ie.microsoft.com/testdrive/HTML5/msUserSelect/
    */
    -ms-user-select: none;
    user-select: none;
    overflow: hidden;
}

.workImgs {
    -webkit-transform: scale(1.021);
    transform: scale(1.021);
}

/* Work videos: disables transition for mouse hover */
/* @media screen and (max-width: 769px){
    .overImg {
        transition: unset;
    }
} */

/* disabling this, on mobile the "click" works */
@media screen and (min-width: 769px){
    .hoverCont:hover .overImg {
        -webkit-transform: translateY(-100%);
        transform: translateY(-100%);
    }
}

.clickedImg {
    -webkit-transform: translateY(-100%);
    transform: translateY(-100%);
}

.underImg {
    position: absolute;
    top: 0px;
    left: 50%;
    width: 100%;
    height: 100%;
    max-width: unset;
    transform: translate(-50%, 0);
    z-index: -1;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.workVideo {
    transform: scale(1.7);
    position: absolute;
    top: 20%;
    z-index: -1;
    user-select: none;
    pointer-events: none;
}

.videoCompInfo {
    position: relative;
    top: 10%;
    /* left: 50%; */
    /* transform: translate(-50%, -50%); */
    color: white;
    text-align: left;
    font-size: 200%;
    /* width: 70%; */
    line-height: 50px;
    z-index: 1;
    opacity: 0;
    transition: opacity 1.15s, top 0.7s ease-out;
}

@media screen and (max-width: 1100px){
    .videoCompInfo {
        font-size: 140%;
        line-height: 34px;
    }    
    .videoCompInfo img {
        width: 10%;
    }
}

@media screen and (max-width: 769px){
    .videoCompInfo {
        transition: unset;
    }    
}

@media screen and (max-width: 670px){
    .videoCompInfo {
        font-size: 3vw;
        line-height: 200%;
    }    
    .videoCompInfo img {
        width: 10%;
    }   
}

.statsUp {
    opacity: 1;
    top: 0;
}

.videoCompInfo * {
    display: inline-block !important;
}
.videoCompInfo h1 {
    vertical-align: 7px;
}
.videoCompInfo h1:last-child {
    vertical-align: 3px;
}

.darkOverlay {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1;
}
.underOverlay{
    z-index: 0;
}

.outerImageEl{
    position: absolute;
    z-index: 1;
    top: 82%;
    left: 50%;
    transform: translate(-50%, 0);
    color: white;
    font-size: 130%;
    width: 100%;
}

.compLogo {
    position: absolute;
    top: 50%;
    left: 50%;
    -webkit-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
    width: 60%;
    z-index: 2;
}

.arrowUp {
    position: relative;
    animation-name: movement;
    animation-duration: .5s;
    animation-direction: alternate;
    animation-iteration-count: infinite;
    animation-timing-function: ease-out;
}

@media screen and (max-width: 769px) { 
    .outerImageEl{
        font-size: 2.8vw;
        top: 75%;
    }
    .arrowUp {
        animation-name: none;
    }
}

@keyframes movement {
    from {top: 4px}
    to {top: -4px}
}

@media screen and (max-width: 1125px) { 
    .workVideosCont {
        flex-direction: column;
        max-width: 480px;
        margin-left: auto !important;
        margin-right: auto !important;
    }
    .mediaCont {
        margin: 0px 1px;
    }
    .mediaCont:first-child {
        border-bottom-color: white;
        border-bottom-style: solid;
        border-bottom-width: 3px;
    }
}

/* Work video descriptions ------------------------------- */

.videoDescrCont {
    height: 0;
    opacity: 0;
    position: relative;
    z-index: -1;
    transition: height 0.5s, opacity 0.5s;
}
@media screen and (min-width: 769px) {
    .videoDescrCont {
        display: none;
    }
}

.videoclicked {
    height: 45vw; /* transition is slow on window resizing */
    opacity: 1
}

@media screen and (max-width: 340px) {
    .videoclicked {
        height: 50vw;
    }       
}

.videoDescrInner {
    position: absolute;
    width: 200%;
    height: 99%;
    z-index: 9999;
    text-align: left;
    display: flex;
    align-items: center;
    padding: 5%;
}

.descrcontent {
    display: none;
}
.descrClicked {
    display: block;
}
.descrcontent.descrText {
    margin: 5%;
    flex-basis: 50%;
}
.descrcontent.descrLogo {
    width: 40%;
}

.videoDescription_Desktop{
    color: white;
    font-size: 1.2vw;
    position: relative;
    z-index: 1;
    width: 80%;
    margin-bottom: 4%;
    text-align: left;
    line-height: 130%;
}

@media screen and (max-width: 1500px) {
    .videoDescription_Desktop {
        font-size: 1.6vw;
    }
}

/* Footer ------------------------------------ */
#mainContainer {
    margin-bottom: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    padding-top: 20px;
}

.footerCol {
    width: 80% !important;
}

.footer__logo {
    position: initial;
}

#footerCompanyLogos {
    width: 93% !important;
}
#footerCompanyLogos * {
    margin: 10px;
}

@media screen and (max-width: 769px) {
    #bottom_logo {
        padding-bottom: 15px;
    }
}

.companies_slider .slick-slide img {
    display: initial;
}

#company_slider_container {
    display: flex;
    width: 100%;
}

/* @media screen and (max-width: 540px) {
    .videoCompInfo {
        width: 88%; 
    }
    .videoCompInfo h1 {
        font-size: 5vw;
    }
    .videoCompInfo img {
        width: 9%;
    }
} */

/* @media screen and (max-width: 500px) {
    .videoCompInfo {
        line-height: 25px;
    }
} */

/* ----------------------------------------- */
 /*
 * Changes made in script main.css:
 * 
 * line 5423 - .title: user-select: none;
 * 
 * For IE 11
 * line 9397 - flex: from 0 to 1
 * line 8989 - flex: from 0 to 1
 *
  */

/* Timeline styles */
.timeline {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 0;
}

.timeline::before {
  content: '';
  position: absolute;
  width: 2px;
  background: #1e90ff;
  top: 0;
  bottom: 0;
  left: 50%;
  margin-left: -1px;
}

.timeline-item {
  padding: 0px 40px;
  position: relative;
  width: 50%;
  box-sizing: border-box;
}

.timeline-item:nth-child(odd) {
  left: 0;
  text-align: right;
}

.timeline-item:nth-child(even) {
  left: 50%;
  text-align: left;
}

.timeline-content {
  padding: 20px;
  position: relative;
}

.timeline-date {
  font-weight: bold;
  color: #1e90ff;
  margin-bottom: 10px;
  font-size: 1.5rem;
}

.timeline-marker {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid #1e90ff;
  background: white;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
}

.timeline-item:nth-child(odd) .timeline-marker {
  right: -12px;
}

.timeline-item:nth-child(even) .timeline-marker {
  left: -12px;
}

.timeline-marker span {
  position: absolute;
  width: 100%;
  text-align: center;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  color: #1e90ff;
  font-weight: bold;
}

.timeline-text {
  margin: 0;
  font-size: 1rem;
  line-height: 1.5;
}

.timeline-subtitle {
  color: #666;
  font-size: 0.9rem;
  margin-top: 5px;
}

.timeline-marker::after {
  content: '';
  position: absolute;
  width: 40px;
  height: 2px;
  background: #1e90ff;
  top: 50%;
  transform: translateY(-50%);
}

.timeline-item:nth-child(odd) .timeline-marker::after {
  right: 100%;
}

.timeline-item:nth-child(even) .timeline-marker::after {
  left: 100%;
}

/* Responsive Timeline */
@media screen and (max-width: 768px) {
  .timeline::before {
    left: 40px;
  }
  
  .timeline-item {
    width: 100%;
    padding-left: 70px;
    padding-right: 20px;
  }
  
  .timeline-item:nth-child(odd) {
    left: 0;
    text-align: left;
  }
  
  .timeline-item:nth-child(even) {
    left: 0;
  }
  
  .timeline-item:nth-child(odd) .timeline-marker {
    left: 28px;
    right: auto;
  }
  
  .timeline-item:nth-child(even) .timeline-marker {
    left: 28px;
  }

  /* Adjust connecting lines for mobile */
  .timeline-marker::after {
    width: 30px;
  }
  
  .timeline-item:nth-child(odd) .timeline-marker::after,
  .timeline-item:nth-child(even) .timeline-marker::after {
    left: 100%;
    right: auto;
  }
}