/*Timeline*/
.e-add-timeline {
  /* overflow: hidden; */
}

.e-add-timeline-wrapper {
  position: relative;
  width: 100%;
  max-width: 1024px;
  margin: 0 auto;

  padding-left: 15px;
  padding-right: 15px;
  
  /*padding: 2em 0;*/
  --lineTop: 50px;
  --lineProgress: 0;
  --lineFixed: 0;
  --dateShift: 120%;
}
/*la linea principale*/
.e-add-timeline-wrapper::before {
  /* this is the vertical line */
  content: '';
  position: absolute;
  top: var(--lineTop);
  left: 25px;
  transform: translateX(-50%);
  z-index: 0;
  height: var(--lineFixed);
  width: 4px;
  background: #999;
}
/*la line a che si allunga*/
.e-add-timeline-wrapper::after {
  /* this is the vertical line */
  content: '';
  position: absolute;
  top: var(--lineTop);
  left: 25px;
  transform: translateX(-50%);
  z-index: 1;
  height: var(--lineProgress);
  width: 4px;
  background: #000;

}
@media only screen and (min-width: 1024px) {
  .e-add-timeline {
  }
  .e-add-timeline-wrapper::before {
    left: 50%;
    transform: translateX(-50%);
  }
  .e-add-timeline-wrapper::after {
    left: 50%;
    transform: translateX(-50%);
  }
}

.e-add-timeline__block {
  position: relative;
  margin: 2em 0;
  z-index: 3;
}

.e-add-timeline__block:after {
  /* clearfix */
  content: "";
  display: table;
  clear: both;
}

.e-add-timeline__block:first-child {
  margin-top: 0;
}

.e-add-timeline__block:last-child {
  margin-bottom: 0;
}

@media only screen and (min-width: 1024px) {
  .e-add-timeline__block {
    margin: 4em 0;
  }
}

.e-add-timeline__img {
  position: absolute;
  top: 50px; /* <-------- #top dell'immagine */
  left: 50%;
  width: 100px; /* <-------- la dimensione dell'immagine */
  height: 100px; /* <-------- la dimensione dell'immagine */
  border-radius: 50%;
  overflow: hidden;

  transform-origin: center center;
  
  visibility: visible;

  border: 4px solid #999;
  background-color: #fff;

  transform: translate3D(-50%,-50%,0) scale(1);
  -webkit-transform: translate3D(-50%,-50%,0) scale(1);
  
  will-change: transform;

  transition-property: border;
  -webkit-transition: border;

  transition-duration: 0.5s;
  -webkit-transition-duration: 0.5s;


  /*-webkit-box-shadow: 0 0 0 4px #FF0000, inset 0 2px 0 rgba(0, 0, 0, 0.08), 0 3px 0 4px rgba(0, 0, 0, 0.05);
          box-shadow: 0 0 0 4px #FF0000, inset 0 2px 0 rgba(0, 0, 0, 0.08), 0 3px 0 4px rgba(0, 0, 0, 0.05);*/
}
.e-add-timeline__focus .e-add-timeline__img{
	border: 4px solid #FF0000;

	visibility: visible;

	-webkit-animation: e-add-bounce-image 0.6s cubic-bezier(0,-0.01,.1,1.57) both;
            animation: e-add-bounce-image 0.6s cubic-bezier(0,-0.01,.1,1.57) both;
}
.e-add-timeline__img img{
  object-fit: cover;
}
/* 
.e-add-timeline__img img {
  	display: block;

  	position: relative;
  	left: 50%;
  	top: 50%;
  
  	margin-left: -50%;
  	margin-top: -50%;

  	max-width: inherit;
  	width: 100%;
  	height: 100%;
}
*/

/* @p queste correggono peer centrare l'immaginne nel cerchio */
.e-add-timeline__img .e-add-item,
.e-add-timeline__img .e-add-post-image,
.e-add-timeline__img .e-add-img{
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.e-add-timeline__img .e-add-item_imageoricon{
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  line-height: 0;
}
.e-add-posts-container.e-add-timeline .e-add-post-image.e-add-post-overlayimage:not(.e-add-post-bgimage){
  position: static;
}
/* In caso di tablet e mobile i valori dell'immagine sono fissi*/
body[data-elementor-device-mode=tablet] .e-add-timeline__img,
body[data-elementor-device-mode=mobile] .e-add-timeline__img {
    width: 65px;
	height: 65px;
	left: 10px;
}

.e-add-timeline__img.e-add-timeline__img--picture {

}

.e-add-timeline__img.e-add-timeline__img--movie {

}

.e-add-timeline__img.e-add-timeline__img--location {

}


.e-add-timeline__img--hidden,
.e-add-timeline__content--hidden {
    visibility: hidden;
}


@-webkit-keyframes e-add-bounce-image {
  0% {
    /*opacity: 0;*/
    -webkit-transform: translate3D(-50%,-50%,0) scale(0.8);
            transform: translate3D(-50%,-50%,0) scale(0.8);
  }
  60% {
   /* opacity: 1;*/
    -webkit-transform: translate3D(-50%,-50%,0) scale(1.2);
            transform: translate3D(-50%,-50%,0) scale(1.2);
  }
  100% {
    -webkit-transform: translate3D(-50%,-50%,0) scale(1);
            transform: translate3D(-50%,-50%,0) scale(1);
  }
}

@keyframes e-add-bounce-image {
  0% {
    /*opacity: 0;*/
    -webkit-transform: translate3D(-50%,-50%,0) scale(0.8);
            transform: translate3D(-50%,-50%,0) scale(0.8);
  }
  60% {
   /* opacity: 1;*/
    -webkit-transform: translate3D(-50%,-50%,0) scale(1.2);
            transform: translate3D(-50%,-50%,0) scale(1.2);
  }
  100% {
    -webkit-transform: translate3D(-50%,-50%,0) scale(1);
            transform: translate3D(-50%,-50%,0) scale(1);
  }
}



/* ----- content Panel -----*/

.e-add-timeline__content {
  position: relative;

  margin-left: 60px;
  
  background: #ccc;
  
  border-radius: 0.25em;
  padding: 1em;

  display: flex;
  flex-flow: wrap;

  transition: background-color 0.5s;
  -webkit-transition: background-color 0.5s;
}

.e-add-timeline__content:after {
  /* clearfix */
  content: "";
  display: table;
  clear: both;

  transition: background-color 0.5s;
  -webkit-transition: background-color 0.5s;
}

.e-add-timeline__content::before {
  /* triangle next to content block */
  content: '';
  position: absolute;
  top: 50px; /* <-------- #top la freccina */
  right: 100%;
  height: 0;
  width: 0;
  border: 7px solid transparent;
  border-right-color: #ccc;

  transform: translateY(-50%);

  transition: background-color 0.5s;
  -webkit-transition: background-color 0.5s;
}


/*correggo le freccine*/
body[data-elementor-device-mode=tablet] .e-add-timeline__content::before,
body[data-elementor-device-mode=mobile] .e-add-timeline__content::before {
	border-left: 0 solid transparent !important;
}


/*TABLET*/
@media only screen and (min-width: 768px) {
  .e-add-timeline__block:nth-child(odd) .e-add-item_date {
    margin-left: 25px;
  }
  .e-add-timeline__block:nth-child(even) .e-add-item_date {
    margin-right: 25px;
  }
}

/*DESKTOP*/
@media only screen and (min-width: 1024px) {
  .e-add-timeline__content {
    margin-left: 0;
    padding: 1.6em;
    width: 45%; /* <-------- la larghezza */
    /* Force Hardware Acceleration */
    -webkit-transform: translateZ(0);
            transform: translateZ(0);
  }
  .e-add-timeline__content::before {
    /*top: 50px;  <-------- #top la freccina */
    left: 100%;
    border-color: transparent;
    border-left-color: #ccc;
  }
  .e-add-timeline__content .e-add-item_date {
    position: absolute;
    width: 100%;
    left: var(--dateShift); /* <-------- la larghezza */
    top: 50px;
    font-size: 1.6rem;
    line-height: 0;
    display: flex;
    align-items: center;
    transform: translateY(-50%);
  }
  .e-add-timeline__block:nth-child(even) .e-add-timeline__content {
    float: right;
  }
  .e-add-timeline__block:nth-child(odd) .e-add-timeline__content::before {
    border-right: none;
  }
  .e-add-timeline__block:nth-child(even) .e-add-timeline__content::before {
    left: auto;
    right: 100%;
    border-color: transparent;
    border-right-color: #ccc;
    border-left: none;
  }

  .e-add-timeline__block:nth-child(even) .e-add-item_date {
    left: auto;
    right: 122%;
    text-align: right;
    justify-content: flex-end;
  }
  
}

@media only screen and (min-width: 1024px) {
  /* inverse bounce effect on even content blocks */
  .e-add-timeline__block:nth-child(even) .e-add-timeline__content.e-add-timeline__content--bounce-in {
    -webkit-animation: e-add-bounce-content-inverse 0.6s;
            animation: e-add-bounce-content-inverse 0.6s;
  }
}


.e-add-timeline__content.e-add-timeline__content--bounce-in {
    visibility: visible;
    -webkit-animation: e-add-bounce-content 0.6s;
            animation: e-add-bounce-content 0.6s;
  }
@-webkit-keyframes e-add-bounce-content {
  0% {
    opacity: 0;
    -webkit-transform: translateX(-100px);
            transform: translateX(-100px);
  }
  60% {
    opacity: 1;
    -webkit-transform: translateX(20px);
            transform: translateX(20px);
  }
  100% {
    -webkit-transform: translateX(0);
            transform: translateX(0);
  }
}

@keyframes e-add-bounce-content {
  0% {
    opacity: 0;
    -webkit-transform: translateX(-100px);
            transform: translateX(-100px);
  }
  60% {
    opacity: 1;
    -webkit-transform: translateX(20px);
            transform: translateX(20px);
  }
  100% {
    -webkit-transform: translateX(0);
            transform: translateX(0);
  }
}

@-webkit-keyframes e-add-bounce-content-inverse {
  0% {
    opacity: 0;
    -webkit-transform: translateX(100px);
            transform: translateX(100px);
  }
  60% {
    opacity: 1;
    -webkit-transform: translateX(-20px);
            transform: translateX(-20px);
  }
  100% {
    -webkit-transform: translateX(0);
            transform: translateX(0);
  }
}

@keyframes e-add-bounce-content-inverse {
  0% {
    opacity: 0;
    -webkit-transform: translateX(100px);
            transform: translateX(100px);
  }
  60% {
    opacity: 1;
    -webkit-transform: translateX(-20px);
            transform: translateX(-20px);
  }
  100% {
    -webkit-transform: translateX(0);
            transform: translateX(0);
  }
}