.atf-patologia {
  height: 517px;
  position: relative;
  overflow: hidden;
}

.atf-patologia .container {
  height: 100%;
}

.atf-patologia .img-wrapper {
  height: 283px;
  overflow: hidden;
  position: absolute;
  width: calc(100% - 80px);
  display: flex;
  align-items: center;
  justify-content: center;
  bottom: 74px;
  left: 50%;
  transform: translateX(-50%);
  z-index: -1;
  border-radius: 24px;
}

.atf-patologia .img-wrapper img {
  width: 100%;
  height: auto;
  object-fit: cover;
  object-position: 0px 150px;
}

.patologia-content h3,
.patologia-content p {
  margin-bottom: 32px;
}

.patologia-content img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 24px;
}

.article-section {
  margin-bottom: 56px;
}

.article-section img {
  max-height: 350px;
  width: fit-content;
  max-width: 100%;
  object-fit: contain;
  position: relative;
  left: 50%;
  transform: translateX(-50%);
}

.article-body{
  position: relative;
}

.article-body .blue-bg {
  background: transparent !important;
}

.blue-bg h2, .blue-bg h3 {
  margin-bottom: 32px;
  position: relative;
  left: -20px;
}

.blue-bg .img-bg {
  position: absolute;
  right: 0px;
  top: 42%;
  z-index: 1;
  object-fit: contain;
  height: 1559px;
  width: 1031px;
}

.blue-bg::before {
  content: "";
  position: absolute;
  z-index: -1;
  width: 100vw;
  height: 100%;
  bottom: 0;
  background: var(--light-blue);
  top: 30px;
  left: -12px;
}

@media screen and (min-width: 566px) {
  .blue-bg::before {
    left: calc((100vw - 540px) / 2* -1 - 12px);
  }
}

@media screen and (min-width: 768px) {
  .blue-bg::before {
    left: calc((100vw - 720px) / 2* -1 - 12px);
  }
}

@media screen and (min-width: 992px) {
  .blue-bg::before {
    left: calc((100vw - 960px) / 2* -1 - 20px);
    top: 65px;
    height: calc(100% + 84px);
  }
}

@media screen and (min-width: 1200px) {
  .blue-bg::before {
    left: calc((100vw - 1140px) / 2* -1 - 20px);
  }
}

@media screen and (min-width: 1400px) {
  .blue-bg::before {
    left: calc((100vw - 1320px) / 2* -1 - 20px);
  }
}

.treatment .accordion {
  margin-top: 40px;
  position: relative;
  z-index: 2;
  width: 100%
}

.treatment .accordion .top {
  padding-right: 30px;
}

.treatment .accordion p {
  margin-bottom: 0px;
  white-space: nowrap;
}

.treatment .accordion .top .title::after {
  top: 65%;
}

.articles-slider,
.related-slider {
  margin-top: 74px !important;
}

.faqs-wrapper {
  margin-top: 64px;
  display: flex;
  justify-content: space-between;
  row-gap: 16px;
  column-gap: 24px;
  flex-wrap: wrap;
}

.faqs-wrapper .accordion {
  width: calc(50% - 12px);
  background: var(--light-blue);
  height: fit-content;
}

.faqs-wrapper .accordion .top .title {
  max-width: 90%;
}

.sidebar {
  margin-top: 56px;
  position: sticky;
  top: 130px;
  z-index: 2;
}

.structure-box {
  height: fit-content;
  width: 90%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  position: fixed;
  left: 50%;
  padding: 16px 24px;
  transform: translateX(-50%);
  bottom: 20px;
  z-index: 10;
  background: var(--light-blue);
  box-shadow: 0px 4px 10px 0px rgba(0, 96, 156, 0.18);
}

.structure-box .title {
  color: var(--secondary);
  font-size: 16px;
  font-weight: 700;
  line-height: 20px;
  text-transform: uppercase;
  margin-bottom: 23px;
}

.structure-box .links-container {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  margin-top: 16px;
  position: relative;
}

.structure-box .links-container::before {
  content: "";
  width: 1px;
  background-color: #E0E0E0;
  height: calc(100% - 45px);
  position: absolute;
  left: 14px;
  top: 14px;
}

.structure-box .link-group {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  flex-direction: row;
  width: 100%;
  margin-bottom: 18px;
}

.structure-box .link-group div {
  border-radius: 50%;
  height: 10px;
  width: 10px;
  background-color: #E0E0E0;
  margin: 10px;
  position: relative;
}

.structure-box .link-group a {
  font-size: 14px;
  text-decoration: none;
  color: var(--dark-blue);
  white-space: normal;
  font-weight: 500;
}

.structure-box .structure-content {
  display: flex;
  height: fit-content;
  width: 100%;
  margin-top: 0px;
  padding: 0px;
  overflow: hidden;
  transition: all 0.2s ease-in-out;
  position: relative;
  flex-direction: column;
  position: relative;
}

.structure-box .close-icon {
  display: none;
  position: absolute;
  top: 0px;
  right: 0px;
  margin: 11px;
  z-index: 5;
  height: 15px !important;
  width: auto !important;
  object-fit: contain !important;
  filter: invert(32%) sepia(88%) saturate(1062%) hue-rotate(166deg) brightness(91%) contrast(101%);
  cursor: pointer;
  transform: rotate(180deg);
}

.mobile-progress-bar {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  height: 100%;
}

.mobile-progress-outer {
  width: 100%;
  height: 2px;
  border-radius: 8px;
  background-color: white;
  margin-right: 17px;
}

.mobile-progress-inner {
  width: 0px;
  height: 2px;
  border-radius: 8px;
  background-color: var(--primary);
  max-width: 100%;
}

.mobile-widget-toggler {
  height: 15px !important;
  width: auto !important;
  object-fit: contain !important;
  cursor: pointer;
}

.article-progress {
  width: 1px;
  background-color: var(--primary);
  height: 0px;
  max-height: calc(100% - 45px);
  position: absolute;
  left: 14px;
  top: 14px;
}

progress {
  border-radius: 4px;
  height: 1px;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  border: none;
  background-color: transparent !important;
  color: var(--primary);
  width: 100%;
}

progress.vertical {
  transform: rotate(90deg);
  position: absolute;
  top: calc(50% - 24px);
  left: -12px;
  max-width: 50px;
}

progress::-webkit-progress-value {
  background-color: var(--primary) !important;
}

progress::-webkit-progress-bar {
  background-color: transparent !important;
}

progress::-moz-progress-bar {
  background-color: transparent !important;
  color: var(--primary) !important;
}

.first-dot {
  position: relative;
  height: 7px;
  width: 7px;
  top: 0px;
  left: 0px;
  z-index: 9;
  border-radius: 50%;
  cursor: pointer;
  background: var(--primary);
  margin: 10px;
}

.first-step {
  position: relative;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  margin-bottom: 18px;
  gap: 12px;
}

.introduzione {
  font-weight: 600;
  font-size: 16px;
  position: relative;
  left: 0px;
  top: 0px;
  color: var(--primary);
  cursor: pointer;
}

.progressBarVerticale {
  height: fit-content;
  width: 100%;
}

.progressBar_step {
  position: relative;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  margin-bottom: 18px;
  gap: 12px;
}

a.label-anchor {
  position: relative;
  bottom: 0;
  left: 0px;
  width: 260px;
  color: var(--dark-blue);
  text-decoration: none;
  cursor: pointer;
  font-size: 16px;
  font-weight: 600;
  line-height: 20px;
}

a.label-anchor.passed {
  color: var(--primary);
}

.dot {
  position: relative;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--dark-blue);
  height: 7px;
  width: 7px;
  bottom: 0px;
  left: 0px;
  z-index: 9;
  margin: 10px;
}

.dot.passed {
  height: 7px;
  width: 7px;
  background: var(--primary);
}

.related-box {
  background-color: var(--light-blue);
  padding: 24px;
  margin-top: 34px;
  display: flex;
  flex-direction: column;
  border-radius: 20px;
  box-shadow: 0px 9px 10px 0px rgba(0, 96, 156, 0.2);
}

.related-box .title {
  color: var(--secondary);
  font-size: 16px;
  font-weight: 700;
  line-height: 20px;
  text-transform: uppercase;
  margin-bottom: 25px;
}

.related-box .links {
  display: flex;
  flex-direction: column;
  gap: 19px;
}

.related-box .link-wrapper {
  display: flex;
  align-items: flex-start;
  font-size: 16px;
  font-weight: 500;
  line-height: 20px;
  color: var(--dark-blue);
  gap: 12px;
}

.related-box .link-wrapper a {
  text-decoration: none;
  transition: all 0.2s ease-in-out;
}

.related-box .link-wrapper a:hover {
  color: var(--primary);
  transition: all 0.2s ease-in-out;
}

.gallery-slider {
  width: 100%;
  height: fit-content;
  overflow: hidden;
  margin: 24px 0px;
  position: relative;
}

.gallery-slider .slide {
  overflow: hidden;
  height: 100%;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 16px;
  padding: 0px 50px;
}

.gallery-slider .slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 8px;
}

.gallery-slider .slide p {
  margin: 12px 0px;
  text-align: center;
  width: 100%;
  font-style: italic;
  font-weight: 600;
}

.gallery-slider .slide-counter {
  margin: 16px auto 0px;
}

.gallery-slider .arrows-container {
  padding: 0px;
}

.article-section video {
  width: 100%;
  height: auto;
  max-height: 400px;
  object-fit: contain;
  border-radius: 8px;
  padding: 0px;
  overflow: hidden;
  background: black;
  margin: 10px 0px;
}

.article-section iframe {
  width: 100%;
  border-radius: 12px;
}

@media screen and (min-width:1200px) {
  .structure-box {
    margin-top: 48px;
    background-color: var(--light-blue);
    padding: 24px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    height: fit-content;
    border-radius: 20px;
    position: static;
    transform: none;
    box-shadow: 0px 9px 10px 0px rgba(0, 96, 156, 0.05);
  }

  .structure-box .links-container {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    margin-top: 24px;
    position: relative;
  }

  .structure-box .links-container::before {
    content: "";
    width: 1px;
    background-color: #E0E0E0;
    height: calc(100% - 45px);
    position: absolute;
    left: 14px;
    top: 14px;
  }

  .structure-box .link-group {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    flex-direction: row;
    width: 100%;
    margin-bottom: 18px;
  }

  .structure-box .link-group div {
    border-radius: 50%;
    height: 10px;
    width: 10px;
    background-color: #E0E0E0;
    margin: 10px;
    position: relative;
  }

  .structure-box .link-group a,
  .introduzione {
    text-decoration: none;
    color: var(--primary);
    font-size: 16px;
    font-weight: 600;
    line-height: 20px;
  }

  .structure-box .close-icon {
    display: none;
  }

  .article-progress {
    width: 1px;
    background-color: var(--primary);
    height: 0px;
    max-height: calc(100% - 45px);
    position: absolute;
    left: 14px;
    top: 14px;
  }

  .mobile-progress-bar {
    display: none;
  }

  progress.vertical {
    transform: rotate(90deg);
    position: absolute;
    top: calc(50% - 18px);
    left: -17px;
    max-width: 60px;
    background: transparent;
  }

  .related-box {
    box-shadow: 0px 9px 10px 0px rgba(0, 96, 156, 0.05);
  }
}

@media screen and (max-width: 1200px) {
  .atf-patologia {
    height: fit-content;
    position: relative;
  }

  .atf-patologia .container {
    padding-left: 20px;
    padding-right: 20px;
    padding-bottom: 70px;
  }

  .atf-patologia h1 {
    padding: 0px;
  }

  .atf-patologia .img-wrapper {
    position: static;
    width: 100%;
    bottom: 0px;
    left: 0px;
    transform: none;
    z-index: 0;
    border-radius: 24px;
  }
}

@media screen and (max-width: 991px) {
  .atf-patologia .img-wrapper img {
    height: 100%;
    object-position: center;
  }

  .blue-bg h2, .blue-bg h3 {
    left: 0px;
  }

  .faqs-wrapper {
    margin-top: 32px;
  }

  .faqs-wrapper .accordion {
    width: 100%;
  }

  .articles-slider,
  .related-slider {
    margin-top: 32px !important;
  }

  .sidebar {
    margin-top: 24px;
  }

  .article-body + .section-patient {
    padding-top: 16px;
  }
}
