.info-grid {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 10;
  height: 100%;
  width: 100%;
  pointer-events: none;
  transform: translateX(-110%);
  transition: transform ease 800ms;
}

.mediterranean + .button-wrapper + .info-grid .title-card {
  top: -20%;
}

.info-grid.show {
  transform: translateX(0);
  transition: transform ease 800ms;
}

.info-grid .grid {
  position: absolute;
  z-index: 9;
  top: 15%;
  left: 0;
  padding: 4rem 2rem 1rem 2rem;
  width: 23rem;
  height: fit-content;
  background-color: var(--transparent_blue);
  transition: background-color ease 500ms;
}

.info-grid.porti .grid,
.info-grid .grid.no-title {
  padding: 2rem;
}

.info-grid .grid::after {
  content: "";
  background-color: var(--darkblue_map);
  width: 90%;
  height: 1rem;
  left: 0;
  bottom: -1rem;
  opacity: 0.15;
  display: block;
  position: absolute;
}

/* -------------------------------------------------------- */
.info-grid .title-card {
  padding: 1rem 3rem 1rem 1rem;
  background-color: #fff;
  position: fixed;
  z-index: 10;
  width: fit-content;
  top: 9%;
  left: 2.5rem;
  box-shadow: -0.5rem 0.5rem 0 var(--darkblue_map);
}

.info-grid.porti .title-card {
  position: relative;
  background-color: transparent;
  box-shadow: none;
  font-size: 2.2rem;
  left: 0;
  top: 0;
  padding: 0 0 1rem 0;
}

.info-grid .title-card h2 {
  margin: 0;
  width: fit-content;
  color: #000;
  text-transform: uppercase;
  font-weight: 500;
  font-size: 2.5rem;
}
.info-grid .title-card h3 {
  color: var(--maincolor_map);
  font-weight: 500;
  font-size: 1rem;
  margin: 0;
}

.info-grid.porti .title-card * {
  color: #fff;
  font-weight: 500;
}

/* -------------------------------------------------------- */
.table-entry {
  display: flex;
  flex-direction: column;
  margin: 0.4rem 0;
  /* justify-content: space-between;
    align-items: center; */
  padding: 0;
}

.table-entry.subgrid {
  display: grid;
  grid-template-areas:
    "num labels"
    "sub sub";
}

.info-grid.porti .table-entry:not(:last-child) {
  border-bottom: 1px solid var(--maincolor_map);
}

.table-entry:not(:last-child) {
  border-bottom: 1px solid #999;
  transition: border ease 500ms;
  padding-bottom: 0.4rem;
}

/* -------------------------------------------------------- */
.table-entry .labels {
  text-align: right;
  display: flex;
  flex-direction: column;
  margin-left: auto;
}

.table-entry .label {
  color: #ededed;
  font-weight: 300;
  font-size: 0.7rem;
}

.info-grid.porti .label {
  font-size: 0.9rem;
  color: #fff;
}

.info-grid.fvg .label {
  font-size: 1.1rem;
  color: #fff;
}

.table-entry .small-label {
  color: var(--maincolor_map);
  font-size: 0.6rem;
  margin-top: 0.25rem;
}

/* -------------------------------------------------------- */
.table-entry .num {
  color: #fff;
  font-size: 1.8rem;
  font-weight: 300;
  text-align: left;
  position: relative;
}

.info-grid.fvg .table-entry .num {
  font-size: 2.2rem;
}

.table-entry .num span {
  position: absolute;
  top: 0.25rem;
  left: calc(100% + 0.5rem);
  font-size: 1rem;
  color: var(--maincolor_map);
}

/* -------------------------------------------------------- */
.table-entry.subgrid > * {
  width: unset;
}
.table-entry.subgrid .labels {
  grid-area: labels;
}
.table-entry.subgrid .num {
  grid-area: num;
}
.table-entry.subgrid .subdata {
  grid-area: sub;
}

.table-entry .subdata {
  width: calc(100% - 2.5rem);
  margin: 0.5rem 0 0.5rem 2.5rem;
  border-left: 1px solid #999;
}

.table-entry .subdata div {
  color: #fff;
  padding: 0.5rem 0 0.5rem 1rem;
  font-size: 0.75rem;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: baseline;
}
.table-entry .subdata div:not(:last-child) {
  border-bottom: 1px solid #999;
}

.table-entry .subdata div .sublabel {
  font-size: 0.75rem;
}
.table-entry .subdata div .subnum {
  font-size: 1rem;
}

@media (min-width: 1200px) {
  .table-entry {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 0;
  }

  .info-grid:not(.porti) .table-entry .num {
    padding-left: 3rem;
  }
  .table-entry:not(.subgrid) .num {
    max-width: 45%;
  }

  .table-entry:not(.subgrid) .labels {
    max-width: 55%;
  }

  .info-grid:not(.porti) .table-entry .num:before {
    content: "";
    width: 2.2rem;
    height: 2.2rem;
    background-color: var(--darkblue_map);
    opacity: 0.5;
    position: absolute;
    display: block;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
  }

  .info-grid:not(.porti) .table-entry .num:after {
    content: "";
    width: 2.2rem;
    height: 2.2rem;
    position: absolute;
    display: block;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    background-repeat: no-repeat;
    background-position: center center;
    background-size: 60%;
  }
  .table-entry .num.railway:after {
    background-image: url(../../images/icons/icon_railway.svg);
  }
  .table-entry .num.airport:after {
    background-image: url(../../images/icons/icon_airport.svg);
  }
  .table-entry .num.autostrada:after {
    background-image: url(../../images/icons/icon_autostrtada.svg);
  }
  .table-entry .num.country:after {
    background-image: url(../../images/icons/icon_country.svg);
  }
  .table-entry .num.ferry:after {
    background-image: url(../../images/icons/icon_ferry.svg);
  }
  .table-entry .num.maritime:after {
    background-image: url(../../images/icons/icon_maritime.svg);
  }
  .table-entry .num.teu:after {
    background-image: url(../../images/icons/icon_teu.svg);
  }
  .table-entry .num.tons:after {
    background-image: url(../../images/icons/icon_tons.svg);
  }
  .table-entry .num.train:after {
    background-image: url(../../images/icons/icon_train.svg);
  }
  .table-entry .num.vehicle:after {
    background-image: url(../../images/icons/icon_vehicle.svg);
  }
}

@media (min-width: 1400px) {
  .table-entry {
    margin: 0.6rem 0;
  }

  .table-entry:not(:last-child) {
    padding-bottom: 0.6rem;
  }
}
