* {
  box-sizing: border-box;
}
*:before,
*:after {
  box-sizing: border-box;
}

svg {
  height: auto;
  max-width: 100%;
}

.text-center {
  text-align: center;
}

.subline {
  color: #768191;
  font-weight: normal;
}

#link-map {
  background-color: #ffffff;
  text-align: center;
  padding: 30px;
}

#link-map h3 {
  width: 100%;
  font-weight: bold;
}

#link-map ul {
  list-style: none;
  display: block;
  margin: auto;
  padding: 10px 0;
}

#link-map ul li {
  float: left;
  padding: 0 14px;
  margin-bottom: 7px;
  border-right: 1px solid black;
  letter-spacing: 5px;
  font-weight: bold;
  text-transform: uppercase;
  font-size: 11px;
  line-height: 1;
  cursor: pointer;
}

#link-map ul li:last-child {
  border-right: 0;
}

#link-map ul li:hover {
  color: #ed1c24;
}

#noscroll {
  overflow: hidden;
}

#map {
  position: relative;
  background-color: #ffffff;
  margin-left: -15px;
  margin-right: -15px;
  height: 665px;
  overflow-x: hidden;
  overflow-y: hidden;
  margin-bottom: -20px;
  cursor: move;
  cursor: grab;
  cursor: -moz-grab;
  cursor: -webkit-grab;
}

#map:active {
  /*pugnetto chiuso quando trascino mappa*/
  cursor: grabbing;
  cursor: -moz-grabbing;
  cursor: -webkit-grabbing;
}

.map-img {
  height: 200%;
  width: 4000px;
  background: url("../img/map.png") no-repeat center center; /*http://via.placeholder.com/2400x500*/
  background-size: cover;
  position: relative;
}

.map-markers {
  list-style: none;
  margin: 0;
  padding: 0;
}
.map-marker {
  position: absolute;
}
.map-marker:before {
  animation-duration: 5s;
  animation-iteration-count: infinite;
  animation-name: pop;
  border-radius: 50%;
  content: "";
  left: 0;
  opacity: 0;
  position: absolute;
  top: 0;
  border: 1px solid #e94258;
  margin: 2em 0 0 0.45em;
  height: 1em;
  width: 2em;
}
.map-marker.grey:before {
  border: 1px solid #71706f;
  margin: 2em 0 0 1.45em;
  height: 1em;
  width: 2em;
  animation-delay: 3s;
}
.map-marker.blu:before {
  border: 1px solid #0703f5;
  margin: 2em 0 0 1.45em;
  height: 1em;
  width: 2em;
  animation-delay: 3s;
}
.map-marker:hover .map-marker-info {
  display: block;
}
.map-marker > a {
  display: block;
  text-indent: -9999px;
  background-color: transparent;
  background-image: url(../img/map-pin.png);
  background-size: unset;
  background-position-x: center;
  width: 3em;
  height: 2.9em;
}
.map-marker.grey > a {
  background-color: transparent;
  background-image: url(../img/map-pin-grey.png);
  background-size: unset;
  width: 3em;
  height: 2.9em;
}

.map-marker.blu > a {
  background-color: transparent;
  background-image: url(../img/map-pin-blu.png);
  background-size: unset;
  width: 3em;
  height: 2.9em;
}

#map-marker-mendrisio {
  left: 31.5%;
  top: 15%;
}
#map-marker-gallarate {
  left: 31.8%;
  top: 17.8%;
}
#map-marker-gallarate {
  left: 31.8%;
  top: 17.8%;
}
#map-marker-andorra {
  left: 27.9%;
  top: 24%;
}
#map-marker-bergamo {
  left: 32.8%;
  top: 18%;
}

#map-marker-roma_partner {
  left: 33.2%;
  top: 25%;
}

#map-marker-bangalore {
  left: 69.8%;
  top: 76%;
}

#map-marker-srilanka {
  left: 67.2%;
  top: 81%;
}
#map-marker-katmandu {
  left: 68.3%;
  top: 60%;
}
#map-marker-sanbenedetto {
  left: 33.4%;
  top: 21%;
}
#map-marker-doha {
  left: 52.5%;
  top: 57%;
}
#map-marker-xiamen {
  left: 85.4%;
  top: 58%;
}
#map-marker-ponte-de-sor {
  left: 23%;
  top: 31.5%;
}
#map-marker-dubai {
  left: 55.1%;
  top: 54.5%;
}
#map-marker-bangalore {
  left: 65.8%;
  top: 72%;
}
#map-marker-abudhabi {
  left: 54%;
  top: 57.5%;
}

#map-marker-seoul {
  left: 90.5%;
  top: 35%;
}
#map-marker-lahore {
  left: 63%;
  top: 43%;
}
#map-marker-muharraq {
  left: 51.8%;
  top: 52%;
}
#map-marker-karachi {
  left: 60.5%;
  top: 56.5%;
}
#map-marker-jeddah {
  left: 46.2%;
  top: 58%;
}
#map-marker-salem {
  left: 66.5%;
  top: 75%;
}

.map-marker-info {
  display: none;
  left: 50%;
  position: absolute;
  bottom: 29px;
  transform: translate(-50%, -2em);
  width: 22em;
  z-index: 999;
}

.sotto .map-marker-info-inner:after {
  border-left: 0.75em solid transparent;
  border-right: 0.75em solid transparent;
  border-bottom: 1em solid #fff;
  border-top: 0;
  content: "";
  height: 0;
  left: 50%;
  position: absolute;
  top: -13px;
  transform: translateX(-50%);
  width: 0;
}

.sotto .map-marker-info-inner:before {
  border-left: 0.75em solid transparent;
  border-right: 0.75em solid transparent;
  border-bottom: 0.99em solid #71706f;
  border-top: 0;
  content: "";
  height: 0;
  left: 50%;
  position: absolute;
  top: -14px;
  transform: translateX(-50%);
  width: 0;
}

.map-marker-info.sotto {
  top: 90px;
}

.map-marker-info.sinistra {
  left: -185px;
  top: -112px;
}

.map-marker-info.destra {
  left: 251px;
  top: -109px;
}

.sinistra .map-marker-info-inner:after {
  border-left: 0.75em solid transparent;
  border-right: 0.75em solid transparent;
  border-bottom: 1em solid #fff;
  border-top: 0;
  content: "";
  height: 0;
  left: 348px;
  position: absolute;
  top: 159px;
  transform: rotate(90deg);
  width: 0;
}

.sinistra .map-marker-info-inner:before {
  border-left: 0.75em solid transparent;
  border-right: 0.75em solid transparent;
  border-bottom: 0.99em solid #71706f;
  border-top: 0;
  content: "";
  height: 0;
  left: 349.5px;
  position: absolute;
  top: 159px;
  transform: rotate(90deg);
  width: 0;
}

.destra .map-marker-info-inner:after {
  border-left: 0.75em solid transparent;
  border-right: 0.75em solid transparent;
  border-bottom: 1em solid #fff;
  border-top: 0;
  content: "";
  height: 0;
  left: -16px;
  position: absolute;
  top: 150px;
  transform: rotate(-90deg);
  width: 0;
}

.destra .map-marker-info-inner:before {
  border-left: 0.75em solid transparent;
  border-right: 0.75em solid transparent;
  border-bottom: 0.99em solid #71706f;
  border-top: 0;
  content: "";
  height: 0;
  left: -18px;
  position: absolute;
  top: 150px;
  transform: rotate(-90deg);
  width: 0;
}

.map-marker-info header {
  background-color: #ffffff;
  border-radius: 0.5em 0.5em 0 0;
  color: black;
  text-transform: uppercase;
  padding: 0.9em 2em 0.1em;
  text-align: center;
}

.map-marker-info header h6 {
  border-top: 1px solid rgba(0, 0, 0, 1);
  padding-top: 0.5rem;
}

.map-marker-info main {
  background-color: #fff;
  border-radius: 0 0 0.5em 0.5em;
  color: #7e7e7e;
  padding: 0 3em 0.1em;
}
.map-marker-info main p {
  font-size: 13px;
  text-align: center;
}
.map-marker-info-inner {
  border-radius: 0.5em;
  box-shadow: 0 0 0.25em rgba(0, 0, 0, 0.3);
  font-size: 0.875em;
}
.map-marker-info-inner:after {
  border-left: 0.75em solid transparent;
  border-right: 0.75em solid transparent;
  border-top: 1em solid #fff;
  content: "";
  height: 0;
  left: 50%;
  position: absolute;
  top: 99.1%;
  transform: translateX(-50%);
  width: 0;
}
.map-marker-info-inner:before {
  border-left: 0.75em solid transparent;
  border-right: 0.75em solid transparent;
  border-top: 0.99em solid #71706f;
  content: "";
  height: 0;
  left: 50%;
  position: absolute;
  top: 100%;
  transform: translateX(-50%);
  width: 0;
}

.animate {
  animation-duration: 1s;
  animation-fill-mode: both;
}

@keyframes bounce-in {
  0%,
  20%,
  40%,
  60%,
  80%,
  100% {
    transition-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);
  }
  0% {
    opacity: 0;
    transform: scale3d(0.3, 0.3, 0.3);
  }
  20% {
    transform: scale3d(1.1, 1.1, 1.1);
  }
  40% {
    transform: scale3d(0.9, 0.9, 0.9);
  }
  60% {
    opacity: 1;
    transform: scale3d(1.03, 1.03, 1.03);
  }
  80% {
    transform: scale3d(0.97, 0.97, 0.97);
  }
  100% {
    opacity: 1;
    transform: scale3d(1, 1, 1);
  }
}
.animate-bounce-in {
  animation-duration: 0.5s;
  animation-name: bounce-in;
  border: 0.1em solid;
  border-radius: 8px;
  border-color: #7e7e7e;
}

@keyframes pop {
  0% {
    transform: scale(0);
  }
  8% {
    opacity: 0.4;
  }
  10% {
    opacity: 0;
    transform: scale(1);
  }
}
.animate-pop {
  animation-duration: 1s;
  animation-name: pop;
}

/***************    MOBILE    ***************/

@media (max-width: 767px) {
  .map-marker > a {
    background-image: url(../img/map-pin_tablet.png);
    width: 1.3em;
    height: 1.7em;
  }
  .map-marker.grey > a {
    background-image: url(../img/map-pin-grey_tablet.png);
    width: 1.3em;
    height: 1.7em;
  }
  .map-marker.blu > a {
    background-image: url(../img/map-pin-blu_tablet.png);
    width: 1.3em;
    height: 1.7em;
  }
  .map-marker-info {
    bottom: 11px;
    width: 18em;
    line-height: 1.4;
  }
  .map-marker-info.sotto {
    top: 74px;
  }
  .map-marker-info main p {
    font-size: 10px;
  }

  .map-marker-info header h6 {
    font-size: 0.5rem;
  }
  .map-marker-info header h5 {
    font-size: 1rem;
  }
  .map-marker-info header {
    padding: 0.8em 0.5em 0.3em;
  }
  .map-marker-info main {
    padding: 0 0em 0.1em;
  }
  .map-img {
    width: 2945px;
  }
  #map-marker-ponte-de-sor {
    left: 44.3%;
  }
  #map-marker-roma_partner {
    left: 49.7%;
  }
  #map-marker-sanbenedetto {
    left: 50%;
    top: 15%;
  }
  #map-marker-gallarate {
    left: 49.2%;
    top: 11%;
  }
  #map-marker-grottammare {
    left: 50.3%;
    top: 13%;
  }
  #map-marker-bergamo {
    left: 49.7%;
    top: 11%;
  }
  #map-marker-mendrisio {
    left: 49.5 %;
    top: 8%;
  }
  #map-marker-muharraq {
    left: 60.5%;
    top: 54%;
  }
  #map-marker-dubai {
    left: 61.5%;
    top: 57.5%;
  }
  #map-marker-srilanka {
    left: 68.7%;
  }
  #map-marker-doha {
    left: 60.8%;
    top: 58%;
  }
  #map-marker-xiamen {
    left: 79.5%;
  }
  #map-marker-seoul {
    left: 81.6%;
  }
}
