/* %%%%%%%%%%%  SUGAR CHAR  %%%%%%%%%% */
.sugar-chart-block {
  position: relative;
}
.sugar-chart-block .sugar-cat {
  position: relative;
  background-color: #fff;
}
.sugar-chart-block .block-wine {
  width: 100%;
  position: relative;
  grid-row: 1/2;
  height: 80vh;
}
.sugar-chart-block .block-wine .name {
  font-size: 1.6rem;
  line-height: 1em;
}
.sugar-chart-block .block-wine .title {
  font-size: 2rem;
  line-height: 1em;
}
.sugar-chart-block .block-wine .button {
  margin-top: 0;
}
.sugar-chart-block .block-wine figure {
  height: 40vh;
}

.sugar-chart-block .progress {
  position: sticky;
  top: 4rem;
  pointer-events: none;
  background: transparent;
  height: 100vh;
  display: none !important;
  transition: top 0.5s ease-in-out;
  z-index: 1;
}

.scroll-up .sugar-chart-block .progress {
  top: 7rem;
}

.sugar-chart-block .progress::after {
  content: "";
  position: absolute;
  top: 6rem;
  left: 50%;
  height: calc(100% - 6rem);
  width: 1px;
  background-color: #ac8e59;
  opacity: 0.3;
}

.sugar-chart-block .inner-progress {
  text-align: center;
  color: #000;
  font-size: 2rem;
  height: 4.5rem;
  font-family: Tobias, serif;
  font-weight: 200;
  line-height: 2;
}

.sugar-chart-block .progress span {
  display: inline-block;
  min-width: 5rem;
}

.sugar-chart-block .container {
  position: relative;
  z-index: 2;
}

.sugar-chart-block .sugar-cat:nth-of-type(odd) {
  background-color: #f4f3f3;
}

.sugar-chart-block .block-title {
  padding-top: 4rem;
  padding-bottom: 3rem;
  backdrop-filter: blur(9px);
  background-color: rgba(255, 255, 255, 0.6);
}

.sugar-chart-block .sugar-cat:nth-of-type(odd) .block-title {
  background-color: rgba(244, 243, 243, 0.6);
}

.sugar-chart-block .wines-list {
  width: 52%;
  display: grid;
  grid-template-columns: repeat(30, 1fr);
  grid-template-rows: 80vh;
  justify-items: center;
  align-items: center;
}

.sugar-chart-block .block-wine:nth-of-type(2) {
  grid-row: 2/3;
}

.sugar-chart-block .block-wine:nth-of-type(3) {
  grid-row: 3/4;
}

.sugar-chart-block .block-wine:nth-of-type(4) {
  grid-row: 4/5;
}

.sugar-chart-block .block-wine:nth-of-type(5) {
  grid-row: 5/6;
}

.sugar-chart-block .block-wine:nth-of-type(6) {
  grid-row: 6/7;
}

.sugar-chart-block .block-wine:nth-of-type(7) {
  grid-row: 7/8;
}

.sugar-chart-block .block-wine:nth-of-type(8) {
  grid-row: 8/9;
}

.sugar-chart-block .wine {
  position: absolute;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  width: 16rem;
  text-align: center;
  opacity: 0;
  visibility: hidden;
  z-index: 2;
  transition: opacity 0.5s ease-in-out, visibility 0s 0.5s;
}

.sugar-chart-block .wine.in-view {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.7s ease-in-out, visibility 0s;
}

.sugar-chart-block .wine::before {
  content: "";
  position: absolute;
  top: -1rem;
  right: -1.5rem;
  width: 2rem;
  height: 2rem;
  border-radius: 100%;
  background-color: #ac8e59;
  z-index: 2;
}

.sugar-chart-block .wine::after {
  content: attr(data-grado) " gr/l";
  position: absolute;
  font-size: 2.3rem;
  top: 1.5rem;
  left: 100%;
  white-space: nowrap;
  margin-left: -3rem;
  font-family: Tobias, serif;
  font-weight: 200;
  color: #000;
  z-index: 2;
}

.sugar-chart-block .wine img {
  height: 100%;
  width: 100%;
  object-fit: contain;
  object-position: center;
}

.sugar-chart-block .wine h3 {
  font-size: 2rem;
  font-family: Tobias, serif;
  font-weight: 200;
}

.sugar-chart-block .wine p {
  font-family: Tobias, serif;
  font-weight: 200;
}

#sugar-path {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

#sugar-path polyline {
  stroke: #000;
  stroke-width: 1px;
  fill: none;
}

@media screen and (max-width: 500px) {
  .sugar-chart-block {
    overflow: hidden;
  }
}
@media screen and (min-width: 370px) {
  .sugar-chart-block .wines-list {
    width: 60%;
  }
}
@media screen and (min-width: 400px) {
  .sugar-chart-block .wines-list {
    width: 65%;
  }
}
@media screen and (min-width: 470px) {
  .sugar-chart-block .wines-list {
    width: 70%;
  }
}
@media screen and (min-width: 768px) {
  .sticky {
    position: sticky;
    top: 10rem;
  }
  .sugar-chart-block .container {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    height: 100%;
    z-index: 0;
  }
  .sugar-chart-block .progress {
    display: none !important;
  }
  .sugar-chart-block .block-title {
    text-align: right;
    background-color: transparent !important;
    backdrop-filter: none;
    padding-bottom: 9rem;
    padding-top: 6rem;
  }
  .sugar-chart-block .wines-list {
    width: 50%;
    margin-right: 50%;
  }
}
@media screen and (min-width: 1281px) {
  .sugar-chart-block .wine::after {
    top: -1.8rem;
    margin-left: 2.2rem;
  }
}

/*# sourceMappingURL=atk-merotto-sugar-chart.css.map */
