@-webkit-keyframes AnimazioneH2Social {
  0% {
    left: -50%;
  }
  100% {
    left: 50%;
  }
}

@keyframes AnimazioneH2Social {
  0% {
    left: -50%;
  }
  100% {
    left: 50%;
  }
}

#slide2 h2 {
  text-align: center;
  font-size: 8rem;
  position: absolute;
  top: 50%;
  left: 50%;
  -webkit-transform: translate(-50%, -50%);
          transform: translate(-50%, -50%);
  width: 300%;
  color: white;
  -webkit-animation: AnimazioneH2Social 10s linear infinite;
          animation: AnimazioneH2Social 10s linear infinite;
  text-transform: uppercase;
  white-space: nowrap;
  will-change: contents;
  font-weight: 500;
  will-change: left;
}

#slide2 b {
  -webkit-text-stroke: white 1px;
  color: transparent;
}

@-webkit-keyframes swipeAnimation {
  from {
    left: 53%;
    opacity: 0;
  }
  to {
    left: 47%;
    opacity: 1;
  }
}

@keyframes swipeAnimation {
  from {
    left: 53%;
    opacity: 0;
  }
  to {
    left: 47%;
    opacity: 1;
  }
}

.activateHand {
  -webkit-animation: swipeAnimation infinite 1s;
          animation: swipeAnimation infinite 1s;
}

.AccessHand {
  width: 60px;
  height: 40px;
  position: absolute;
  top: 40%;
  left: 50%;
  -webkit-transform: translate(-50%, -50%);
          transform: translate(-50%, -50%);
  z-index: 10;
  opacity: 0;
}

@-webkit-keyframes facebookParallax {
  from {
    margin-left: -100%;
  }
  to {
    margin-left: 0%;
  }
}

@keyframes facebookParallax {
  from {
    margin-left: -100%;
  }
  to {
    margin-left: 0%;
  }
}

@-webkit-keyframes InstaParallax {
  from {
    margin-left: 0;
  }
  to {
    margin-left: -100%;
  }
}

@keyframes InstaParallax {
  from {
    margin-left: 0;
  }
  to {
    margin-left: -100%;
  }
}

@-webkit-keyframes InstaParallaxR {
  from {
    margin-left: -200%;
  }
  to {
    margin-left: -100%;
  }
}

@keyframes InstaParallaxR {
  from {
    margin-left: -200%;
  }
  to {
    margin-left: -100%;
  }
}

@-webkit-keyframes linkParallax {
  from {
    margin-left: -100%;
  }
  to {
    margin-left: -200%;
  }
}

@keyframes linkParallax {
  from {
    margin-left: -100%;
  }
  to {
    margin-left: -200%;
  }
}

.activateFacebook {
  -webkit-animation: facebookParallax 1s forwards;
          animation: facebookParallax 1s forwards;
}

.activateInstagramLeft {
  -webkit-animation: InstaParallax 1s forwards;
          animation: InstaParallax 1s forwards;
}

.activateInstagramRight {
  -webkit-animation: InstaParallaxR 1s forwards;
          animation: InstaParallaxR 1s forwards;
}

.activateLinkedin {
  -webkit-animation: linkParallax 1s forwards;
          animation: linkParallax 1s forwards;
}

.slidecontainer {
  position: relative;
  width: 300%;
  height: 100%;
  margin-top: 0%;
}

.bgSlides {
  position: absolute;
  height: 100%;
  width: 100%;
  background-attachment: fixed !important;
  background-size: cover !important;
}

.slide1 {
  left: 0;
  top: 0;
  background: url(../facebookbg.jpg);
}

.slide2 {
  width: 100%;
  height: 100%;
  left: 100%;
  top: 0;
  background: url(../Instagrambg.jpg);
}

.slide3 {
  left: 200%;
  top: 0;
  background: url(../Resources/linkbg.jpg);
}

.telSwiper {
  width: 270px !important;
  position: absolute;
  left: 50%;
  top: 50%;
  -webkit-transform: translate(-50%, -50%);
          transform: translate(-50%, -50%);
  height: 600px;
  z-index: 2 !important;
  border-radius: 40px;
}

.telefono {
  position: absolute;
  top: 50%;
  left: 50%;
  -webkit-transform: translate(-50%, -50%);
          transform: translate(-50%, -50%);
  width: 320px;
  height: 620px;
  z-index: 3;
  pointer-events: none;
}

.screen {
  position: absolute;
  top: 53%;
  left: 50%;
  -webkit-transform: translate(-50%, -50%);
          transform: translate(-50%, -50%);
  width: 270px;
  height: 640px;
  border-radius: 40px;
  background: #3b5998;
  z-index: 1;
}

#insta {
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

#linkedin {
  background-color: white;
}

.socialIcon {
  position: absolute;
  -webkit-transform: translate(-50%, -50%);
          transform: translate(-50%, -50%);
  width: 70px;
  height: 70px;
  border-radius: 0;
  background: none;
  top: 50%;
  left: 50%;
  z-index: 1;
}

.twoblocks {
  background: none;
  color: white;
  position: absolute;
  top: 70%;
  left: 50%;
  -webkit-transform: translate(-50%, -50%);
          transform: translate(-50%, -50%);
  color: white;
  text-transform: uppercase;
  border-radius: 0;
  width: 120px;
  height: 55px;
  outline: none !important;
  border: none !important;
  z-index: 200 !important;
}

.twoblocks::before {
  content: "";
  border: solid white 2px;
  width: 100%;
  height: 100%;
  display: block;
  position: absolute;
  top: 0;
  -webkit-transition: all 500ms;
  transition: all 500ms;
  -webkit-transform-origin: bottom right;
          transform-origin: bottom right;
  z-index: -1;
  left: 0;
  border-radius: 20px;
}

.twoblocks::after {
  content: "";
  width: 100%;
  height: 100%;
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  background-color: #C5B7AC;
  -webkit-transition: all 500ms;
  transition: all 500ms;
  -webkit-transform-origin: top left;
          transform-origin: top left;
  -webkit-transform: scale(0);
          transform: scale(0);
  z-index: -1;
  border-radius: 20px;
}

.twoblocks:hover::before {
  -webkit-transform: scale(0);
          transform: scale(0);
}

.twoblocks:hover::after {
  -webkit-transform: scale(1);
          transform: scale(1);
}

#linkedinB {
  color: black;
}

#linkedinB:hover {
  color: white;
}

#linkedinB::before {
  border: solid black 2px;
}

@-webkit-keyframes socialTextAnimation {
  from {
    height: 0;
  }
  to {
    height: 100%;
  }
}

@keyframes socialTextAnimation {
  from {
    height: 0;
  }
  to {
    height: 100%;
  }
}

.activateSocialText {
  -webkit-animation: socialTextAnimation 1s forwards;
          animation: socialTextAnimation 1s forwards;
}

.openSocial {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 0%;
  z-index: 15;
  background: rgba(255, 255, 255, 0.45);
  -webkit-box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
          box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  -webkit-animation-delay: 1s;
          animation-delay: 1s;
  overflow: hidden;
  will-change: height;
}

.openSocial p {
  opacity: 0;
  -webkit-animation-delay: 1.3s;
          animation-delay: 1.3s;
  position: absolute;
  width: 35%;
  height: 50%;
  left: 12%;
  top: 32%;
  pointer-events: none;
  font-size: 18px;
  line-height: 3vh;
  will-change: contents;
}

.socialTitolo {
  position: absolute;
  left: 6%;
  top: 0%;
  pointer-events: none;
  width: 40%;
  height: auto;
}

@-webkit-keyframes iconOpacity {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes iconOpacity {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.activateIconOpacity {
  -webkit-animation: iconOpacity 2s forwards;
          animation: iconOpacity 2s forwards;
}

.social3DImage {
  width: 300px;
  height: 300px;
  position: absolute;
  left: 70%;
  top: 30%;
  opacity: 0;
  z-index: 15;
  -webkit-perspective: 1000px;
          perspective: 1000px;
  -webkit-transform-style: preserve-3d;
          transform-style: preserve-3d;
  pointer-events: none;
  -webkit-animation-delay: 1s;
          animation-delay: 1s;
  will-change: left;
}

.closeSocial {
  width: 20px;
  height: 20px;
  position: absolute;
  left: 95%;
  top: 5%;
  z-index: 16;
  opacity: 0;
  -webkit-transition: all 2s;
  transition: all 2s;
  -webkit-transition-delay: 3s;
          transition-delay: 3s;
  cursor: pointer;
}

.miniIconContainer {
  width: 350px;
  height: 350px;
  position: absolute;
  left: 65%;
  top: 30%;
  z-index: 20 !important;
}

.miniIcon {
  width: 50px;
  height: 50px;
  background-size: contain;
  position: absolute;
  background: url(../Resources/like.png);
  opacity: 0;
  -webkit-animation-delay: 1.3s;
          animation-delay: 1.3s;
  will-change: left;
}

.miniIcon:nth-child(3) {
  top: 0;
  left: 50%;
}

.miniIcon:nth-child(1) {
  top: 60%;
  left: 20%;
}

.miniIcon:nth-child(2) {
  top: 40%;
  left: 60%;
}

#glass {
  border-radius: 10px;
  border: none;
  width: 120px;
  height: 60px;
  color: white;
  background-image: -webkit-gradient(linear, left top, right top, from(#3B5998), to(#00A9C1));
  background-image: linear-gradient(to right, #3B5998, #00A9C1);
  position: absolute;
  top: 70%;
  left: 12%;
  z-index: 17;
  text-transform: uppercase;
  overflow: hidden;
  -webkit-transition: all 500ms;
  transition: all 500ms;
  letter-spacing: 2px;
  font-size: 12px;
  outline: none;
  -webkit-box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
          box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
  opacity: 0;
  -webkit-animation-delay: 2s;
          animation-delay: 2s;
}

@-webkit-keyframes glass1 {
  0% {
    left: -200px;
  }
  100% {
    left: 200px;
  }
}

@keyframes glass1 {
  0% {
    left: -200px;
  }
  100% {
    left: 200px;
  }
}

@-webkit-keyframes glass2 {
  0% {
    top: 200px;
  }
  100% {
    top: -200px;
  }
}

@keyframes glass2 {
  0% {
    top: 200px;
  }
  100% {
    top: -200px;
  }
}

@-webkit-keyframes glass3 {
  0% {
    right: -200px;
  }
  100% {
    right: 200px;
  }
}

@keyframes glass3 {
  0% {
    right: -200px;
  }
  100% {
    right: 200px;
  }
}

@-webkit-keyframes glass4 {
  0% {
    top: -200px;
  }
  100% {
    top: 200px;
  }
}

@keyframes glass4 {
  0% {
    top: -200px;
  }
  100% {
    top: 200px;
  }
}

#glass span:nth-child(1) {
  position: absolute;
  top: 0;
  left: -200px;
  display: block;
  width: 80%;
  height: 3px;
  background-image: -webkit-gradient(linear, left top, right top, from(transparent), to(white));
  background-image: linear-gradient(to right, transparent, white);
}

#glass span:nth-child(2) {
  position: absolute;
  right: 0;
  top: 200px;
  display: block;
  width: 3px;
  height: 80%;
  background-image: -webkit-gradient(linear, left bottom, left top, from(transparent), to(white));
  background-image: linear-gradient(to top, transparent, white);
}

#glass span:nth-child(3) {
  position: absolute;
  bottom: 0;
  right: -200px;
  display: block;
  width: 100%;
  height: 3px;
  background-image: -webkit-gradient(linear, right top, left top, from(transparent), to(white));
  background-image: linear-gradient(to left, transparent, white);
}

#glass span:nth-child(4) {
  position: absolute;
  left: 0;
  top: -200px;
  width: 3px;
  height: 100%;
  display: block;
  background-image: -webkit-gradient(linear, left top, left bottom, from(transparent), to(white));
  background-image: linear-gradient(to bottom, transparent, white);
}

#glass:hover span:nth-child(1) {
  -webkit-animation: glass1 0.8s linear forwards;
          animation: glass1 0.8s linear forwards;
}

#glass:hover span:nth-child(2) {
  -webkit-animation: glass2 0.8s linear forwards;
          animation: glass2 0.8s linear forwards;
}

#glass:hover span:nth-child(3) {
  -webkit-animation: glass3 0.8s linear forwards;
          animation: glass3 0.8s linear forwards;
}

#glass:hover span:nth-child(4) {
  -webkit-animation: glass4 1s linear forwards;
          animation: glass4 1s linear forwards;
}

#glass::before {
  content: "";
  position: absolute;
  display: block;
  height: 100%;
  width: 30%;
  opacity: 0.5;
  top: 50%;
  left: -100px;
  -webkit-transform: translate(-50%, -50%);
          transform: translate(-50%, -50%);
  background-color: white;
  -webkit-filter: blur(10px);
          filter: blur(10px);
}

#glass:hover::before {
  -webkit-transform: translate(-50%, -50%) translateX(300px);
          transform: translate(-50%, -50%) translateX(300px);
  -webkit-transition: all 500ms;
  transition: all 500ms;
  -webkit-transition-delay: 0.5s;
          transition-delay: 0.5s;
}

@-webkit-keyframes glassB1A {
  to {
    background-image: -webkit-gradient(linear, left top, right top, from(#3B5998), to(#00A9C1));
    background-image: linear-gradient(to right, #3B5998, #00A9C1);
    opacity: 1;
  }
}

@keyframes glassB1A {
  to {
    background-image: -webkit-gradient(linear, left top, right top, from(#3B5998), to(#00A9C1));
    background-image: linear-gradient(to right, #3B5998, #00A9C1);
    opacity: 1;
  }
}

@-webkit-keyframes glassB2A {
  to {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    opacity: 1;
  }
}

@keyframes glassB2A {
  to {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    opacity: 1;
  }
}

@-webkit-keyframes glassB3A {
  to {
    background-image: -webkit-gradient(linear, left top, right top, from(#3B5998), to(#00A9C1));
    background-image: linear-gradient(to right, #3B5998, #00A9C1);
    opacity: 1;
  }
}

@keyframes glassB3A {
  to {
    background-image: -webkit-gradient(linear, left top, right top, from(#3B5998), to(#00A9C1));
    background-image: linear-gradient(to right, #3B5998, #00A9C1);
    opacity: 1;
  }
}

.glassB1 {
  -webkit-animation: glassB1A forwards 1s;
          animation: glassB1A forwards 1s;
}

.glassB2 {
  -webkit-animation: glassB2A forwards 1s;
          animation: glassB2A forwards 1s;
}

.glassB3 {
  -webkit-animation: glassB3A forwards 1s;
          animation: glassB3A forwards 1s;
}

@media (max-width: 480px) {
  .telSwiper {
    width: 250px !important;
    height: 530px;
  }
  .telefono {
    width: 290px;
    height: 550px;
  }
  .screen {
    width: 250px;
    height: 560px;
  }
  #slide2 h2 {
    display: none;
  }
  .socialTitolo {
    width: 80%;
    height: auto;
    left: 10%;
    top: 0%;
  }
  .openSocial p {
    width: 80%;
    top: 30%;
    line-height: 1.2rem;
    font-size: 16px;
    left: 10% !important;
  }
  .openSocial hr {
    display: none;
  }
  #glass {
    top: 80%;
  }
  .social3DImage {
    left: 65%;
    width: 100px;
    height: 100px;
    top: 80% !important;
  }
  .miniIconContainer {
    display: none;
  }
  .closeSocial {
    left: 95%;
    top: 2%;
    -webkit-transition: all 0s;
    transition: all 0s;
    width: 15px;
    height: 15px;
  }
}

@media (min-width: 481px) and (max-width: 1024px) {
  .socialTitolo {
    width: 55%;
    height: auto;
    left: 3%;
    top: 0;
  }
  .openSocial p {
    width: 50%;
    top: 20%;
  }
  #glass {
    top: 80%;
  }
  .social3DImage {
    left: 65%;
  }
}

@media screen and (min-width: 1030px) and (max-width: 1466px) {
  .telSwiper {
    width: 230px !important;
    height: 490px;
  }
  .telefono {
    width: 260px;
    height: 500px;
  }
  .screen {
    width: 230px;
    height: 510px;
  }
  .socialTitolo {
    width: 40%;
    height: auto;
    top: 0%;
  }
  .openSocial p {
    width: 40%;
    top: 35%;
    left: 12%;
    font-size: 16px;
  }
}
