.ivrea-map-wrap {
  position: relative;
  width: 100%;
  margin: 0 auto;
  border-radius: 5px;
}
.ivrea-map-wrap picture {
  display: block;
}
.ivrea-map-bg {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 5px !important;
}
.ivrea-map-pin {
  position: absolute;
  transform: translate(-50%, -100%);
  cursor: pointer;
  z-index: 10;
}
.ivrea-map-pin img.flag-svg {
  display: block;
  width: auto;
  height: 60px;
  transition: transform 0.2s;
}

/* Red dot marker */
.ivrea-dot {
  display: none; /* Nascosto come richiesto */
  width: 16px;
  height: 16px;
  border-radius: 50%;
}
.ivrea-map-pin--dot {
  display: none; /* Nascosto come richiesto */
  transform: translate(-50%, -50%);
}

/* Info Box - positioned next to the flag */
.ivrea-map-info {
  position: absolute;
  top: 50%;
  left: 100%;
  transform: translate(15px, -50%);
  background: rgba(255, 255, 255, 0.95);
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  pointer-events: none;
  padding: 16px 20px;
  border-radius: 5px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  z-index: 20;
}
.ivrea-map-pin:hover .ivrea-map-info {
  opacity: 1;
  visibility: visible;
  transform: translate(8px, -50%);
}
.ivrea-map-pin:hover {
  z-index: 30;
}

/* Typography styles */
.ivrea-map-date {
  font-family: "Helvetica Now Display", sans-serif;
  font-weight: 700;
  font-style: normal;
  font-size: 16px;
  line-height: 22px;
  letter-spacing: 0;
  font-variant-numeric: lining-nums tabular-nums;
  /* margin-bottom: 10px; */
  color: #000;
}
h4.ivrea-map-title {
  /* font-family: "TINY5x3", monospace; */
  font-weight: 140;
  font-size: 40px;
  line-height: 34px;
  letter-spacing: 0;
  font-variant-numeric: lining-nums tabular-nums;
  text-transform: uppercase;
  margin: -5px 0 15px 0;
  padding: 0;
  color: #000;
}
.ivrea-map-street {
  font-family: "Helvetica Now Display", sans-serif;
  font-weight: 700;
  font-style: normal;
  font-size: 16px;
  line-height: 22px;
  letter-spacing: 0;
  font-variant-numeric: lining-nums tabular-nums;
  color: #737373;
}

/* Mobile responsive */
@media (max-width: 767px) {
  /* Pin positions relative to mobile SVG */
  .ivrea-map-pin--1 {
    top: 40% !important;
    left: 30% !important;
  }
  .ivrea-map-pin--2 {
    top: 75% !important;
    left: 37% !important;
  }
  .ivrea-map-pin--3 {
    top: 47% !important;
    left: 66% !important;
  }
  .ivrea-map-pin--dot {
    top: 16% !important;
    left: 64% !important;
  }

  .ivrea-map-pin img.flag-svg {
    height: 45px;
  }
  .ivrea-dot {
    width: 10px;
    height: 10px;
  }

  /* Info box: wrap text, limit width, keep inside map */
  .ivrea-map-info {
    white-space: normal;
    width: 180px;
  }

  /* Pins on the right half: open box to the LEFT */
  .ivrea-map-pin--3 .ivrea-map-info {
    left: auto;
    right: 100%;
    transform: translate(-8px, -50%);
  }
  .ivrea-map-pin--3:hover .ivrea-map-info {
    transform: translate(-8px, -50%);
  }

  .ivrea-map-date {
    font-size: 14px;
    line-height: 14px;
    margin-bottom: 4px;
  }
  h4.ivrea-map-title {
    font-size: 20px;
    line-height: 18px;
    margin: 0 0 4px 0;
  }
  .ivrea-map-street {
    font-size: 14px;
    line-height: 14px;
  }
}
@media (min-width: 768px) and (max-width: 1024px) {
  .ivrea-map-pin img.flag-svg {
    height: 45px;
  }
  .ivrea-map-date {
    font-size: 13px;
    line-height: 18px;
    margin-bottom: 6px;
  }
  h4.ivrea-map-title {
    font-size: 30px;
    line-height: 26px;
    margin-bottom: 6px;
  }
  .ivrea-map-street {
    font-size: 13px;
    line-height: 18px;
  }
}
