/******************************************************
 * Content
 *
 * @since 1.2.0 27/09/2023
 *****************************************************/
.article-content-in h2,
.article-content-in h3,
.article-content-in h4 {
  margin: 0 0 5px;
}

.article-content-in p,
.article-content-in ul,
.article-content-in ol {
  margin: 0 0 20px;
}

.article-content-in a {
  color: var(--hsbg-primary-color-3);
}

.article-content-in ul,
.article-content-in ol {
  display: flex;
  flex-direction: column;
  list-style: none;
  gap: 10px;
  font-size: var(--hsbg-font-size-p);
  padding: 0;
}

.article-content-in ol li {
  display: flex;
  counter-increment: list-counter 1;
}

.article-content-in ol li:before {
  content: counter(list-counter);
  display: flex;
  justify-content: center;
  align-items: center;
  background: var(--hsbg-neutral-color-1);
  font-size: 14px;
  color: var(--hsbg-neutral-color-10);
  width: 20px;
  min-width: 20px;
  height: 20px;
  border-radius: var(--hsbg-border-radius);
  margin-top: 3px;
  margin-right: 5px;
}

.article-content-in li strong,
.article-content-in li a {
  display: contents;
}

.article-content-in ul li {
  display: flex;
}

.article-content-in .content ul li:before {
  content: '';
  background-color: var(--hsbg-neutral-color-1);
  background-image: url("data:image/svg+xml,%3Csvg width='20px' height='20px' viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Ctitle/%3E%3Cg id='Complete'%3E%3Cg id='arrow-right'%3E%3Cg%3E%3Cpolyline data-name='Right' fill='none' id='Right-2' points='16.4 7 21.5 12 16.4 17' stroke='%23FFF' stroke-linecap='round' stroke-linejoin='round' stroke-width='2'/%3E%3Cline fill='none' stroke='%23FFF' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' x1='2.5' x2='19.2' y1='12' y2='12'/%3E%3C/g%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  background-size: var(--hsbg-font-size-p);
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  justify-content: center;
  align-items: center;
  min-width: var(--hsbg-font-size-p);
  width: var(--hsbg-font-size-p);
  height: var(--hsbg-font-size-p);
  padding: 2px;
  margin-right: 5px;
  margin-top: 2px;
  border-radius: 50%;
}

.wp-block-image img {
  width: 100% !important;
  height: auto !important;
  margin: 0 0 20px;
  border-radius: var(--hsbg-border-radius);
}

/******************************************************
 * Content -> TOC Personalizzata
 *
 * @since 1.2.0 27/09/2023
 *****************************************************/
.article-content-in .toc-per {
  background: var(--hsbg-neutral-color-9);
  border-radius: var(--hsbg-border-radius);
  padding: 10px;
  margin-bottom: 20px;
}

.article-content-in .toc-per .wp-block-group__inner-container {
  display: grid;
  gap: 10px;
}

.article-content-in .toc-per .orizzontale {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  gap: 10px;
}

.article-content-in .toc-per .wp-block-media-text {
  position: relative;
  display: grid;
  align-items: center;
  grid-template-columns: 50px 1fr;
  gap: 5px;
  background: var(--hsbg-neutral-color-10);
  border-radius: var(--hsbg-border-radius);
}

.article-content-in .toc-per .wp-block-media-text__media {
  margin: 5px;
}

.article-content-in .toc-per img {
  border-radius: var(--hsbg-border-radius);
  margin: 5px;
}

.article-content-in .toc-per .wp-block-media-text__content p {
  margin: 0;
}

.article-content-in .toc-per .wp-block-media-text__content a {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  padding: 5px 5px 5px 60px;
  color: inherit;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
}

/******************************************************
 * Content -> Table
 *
 * @since 1.2.0 27/09/2023
 *****************************************************/
.article-content-in .wp-block-table {
  margin: 0 0 20px;
}

.article-content-in .wp-block-table table {
  background: var(--hsbg-neutral-color-9);
  border-collapse: collapse;
  width: 100%;
  border-radius: var(--hsbg-border-radius);
}

.article-content-in .wp-block-table table tr:not(:last-child) {
  border-bottom: 1px solid var(--hsbg-neutral-color-8);
}

.article-content-in .wp-block-table table td:not(:last-child) {
  border-right: 1px solid var(--hsbg-neutral-color-8);
}

.article-content-in .wp-block-table table td {
  padding: 5px;
}

.article-content-in .wp-element-caption {
  font-size: var(--hsbg-font-size-label);
  text-align: center;
  line-height: 1;
  font-style: italic;
  margin-top: 5px;
}

.article-content-in .wp-block-table table thead th {
  background: var(--hsbg-neutral-color-1);
  color: var(--hsbg-neutral-color-10);
}

.article-content-in .wp-block-table table thead th:first-child {
  border-top-left-radius: var(--hsbg-border-radius);
}

.article-content-in .wp-block-table table thead th:last-child {
  border-top-right-radius: var(--hsbg-border-radius);
}

.article-content-in .wp-block-table table thead th:not(:last-child) {
  border-right: 1px solid var(--hsbg-neutral-color-2);
}

/******************************************************
 * Content -> Tabs
 *
 * @since 1.2.0 27/09/2023
 *****************************************************/
.article-content-in .tabs-block {
  margin: 0 0 20px;
}

.article-content-in .tabs-block .tabs {
  display: flex;
  flex-wrap: nowrap;
}

.article-content-in .tabs .wp-block-column {
  display: flex;
  justify-content: center;
  align-items: center;
  background: var(--hsbg-neutral-color-8);
  width: 100%;
  border-right: 1px solid var(--hsbg-neutral-color-7);
  border-top: 1px solid var(--hsbg-neutral-color-7);
  border-bottom: 1px solid var(--hsbg-neutral-color-7);
  color: var(--hsbg-neutral-color-1);
  text-align: center;
  padding: 10px;
  cursor: pointer;
  transition: .5s background;
}

.article-content-in .tabs .wp-block-column:first-child {
  border-top-left-radius: var(--hsbg-border-radius);
  border-left: 1px solid var(--hsbg-neutral-color-7);
}

.article-content-in .tabs .wp-block-column:last-child {
  border-top-right-radius: var(--hsbg-border-radius);
  border-right: 1px solid var(--hsbg-neutral-color-7);
}

.article-content-in .tabs p {
  margin: 0;
  font-weight: 700;
}

.article-content-in .tabs .wp-block-column.active {
  border-bottom: 0;
  background: var(--hsbg-neutral-color-9);
}

.article-content-in .risultati-tabs {
  background: var(--hsbg-neutral-color-9);
  padding: 10px;
  border-bottom-left-radius: var(--hsbg-border-radius);
  border-bottom-right-radius: var(--hsbg-border-radius);
  border: 1px solid var(--hsbg-neutral-color-7);
  border-top: 0;
}

.article-content-in .risultati-tabs .wp-block-column:not(.active) {
  display: none;
}

.article-content-in .risultati-tabs p:last-child {
  margin: 0;
}

/******************************************************
 * Content -> Rank Math FAQ
 *
 * @since 1.2.0 27/09/2023
 *****************************************************/
.article-content-in .rank-math-list {
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  gap: 10px;
}

.article-content-in .rank-math-question {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--hsbg-neutral-color-1);
  font-size: var(--hsbg-font-size-p);
  color: var(--hsbg-neutral-color-10);
  padding: 10px 40px 10px 10px;
  border-top-right-radius: var(--hsbg-border-radius);
  border-top-left-radius: var(--hsbg-border-radius);
  cursor: pointer;
  margin: 0;
}

.article-content-in .rank-math-answer {
  background: var(--hsbg-neutral-color-9);
  border-bottom-right-radius: var(--hsbg-border-radius);
  border-bottom-left-radius: var(--hsbg-border-radius);
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.5s;
}

.article-content-in .rank-math-answer p {
  padding: 10px;
  margin: 0;
}

.article-content-in .rank-math-question:before {
  content: '';
  position: absolute;
  right: 14px;
  content: "";
  display: inline-block;
  -webkit-transform: rotate(-30deg);
  transform: rotate(-30deg);
  width: 9px;
  height: 2px;
  background-color: var(--hsbg-neutral-color-10);
  transition: 0.4s ease;
}

.article-content-in .open-faq.rank-math-question:before {
  transform: rotate(30deg);
}

.article-content-in .rank-math-question:after {
  content: '';
  position: absolute;
  right: 20px;
  display: inline-block;
  -webkit-transform: rotate(45deg);
  transform: rotate(30deg);
  width: 9px;
  height: 2px;
  background-color: var(--hsbg-neutral-color-10);
  transition: 0.4s ease;
}

.article-content-in .open-faq.rank-math-question:after {
  transform: rotate(-30deg);
}

/******************************************************
 * Content -> Rank Math How To
 *
 * @since 1.2.0 27/09/2023
 *****************************************************/
#rank-math-howto {
  display: grid;
}

#rank-math-howto img {
  border-radius: var(--hsbg-border-radius);
  margin: 0 0 20px;
}

#rank-math-howto .rank-math-steps {
  display: flex;
  overflow-x: scroll;
  scroll-snap-type: x mandatory;
  gap: 10px;
  padding: 30px 20px;
  margin: -30px -20px -10px;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

#rank-math-howto .rank-math-steps::-webkit-scrollbar {
  display: none;
}

#rank-math-howto .rank-math-step-title {
  background: var(--hsbg-neutral-color-1);
  border-top-left-radius: var(--hsbg-border-radius);
  border-top-right-radius: var(--hsbg-border-radius);
  color: var(--hsbg-neutral-color-10);
  padding: 10px 40px 10px 10px;
  font-size: var(--hsbg-font-size-p);
  margin: 0;
}

#rank-math-howto .rank-math-step {
  position: relative;
  background: var(--hsbg-neutral-color-9);
  min-width: 300px;
  width: 300px;
  height: 380px;
  scroll-snap-align: center;
  counter-increment: numcard;
  border-radius: var(--hsbg-border-radius);
}

#rank-math-howto .rank-math-step:before {
  content: counter(numcard);
  position: absolute;
  top: 5px;
  right: 5px;
  background: var(--hsbg-neutral-color-3);
  color: var(--hsbg-neutral-color-9);
  font-weight: 700;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  z-index: 1;
}

#rank-math-howto .rank-math-steps img {
  border-radius: 0;
}

#rank-math-howto .rank-math-step-content p {
  padding: 10px;
  margin: 0;
}

/*-----------------------------------------------------
 * DESKTOP
------------------------------------------------------*/
@media(min-width: 960px) {

  /******************************************************
   * Content -> Rank Math How To
   *
   * @since 1.2.0 27/09/2023
   *****************************************************/
  #rank-math-howto .rank-math-steps {
    flex-direction: column;
  }

  #rank-math-howto .rank-math-step {
    width: 100%;
    height: auto;
  }

  #rank-math-howto .rank-math-step-content {
    display: grid;
    grid-template-columns: 1fr 3fr;
  }

  #rank-math-howto .rank-math-steps img {
    border-bottom-left-radius: var(--hsbg-border-radius);
    height: 100%;
    object-fit: cover;
  }
}

/*-----------------------------------------------------
 * MOBILE
------------------------------------------------------*/
@media(max-width:767px) {

  /******************************************************
   * Content -> TOC Personalizzata
   *
   * @since 1.2.0 27/09/2023
   *****************************************************/
  .article-content-in .toc-per .orizzontale {
    grid-template-columns: 1fr;
  }

  /******************************************************
   * Content -> Tabs
   *
   * @since 1.2.0 27/09/2023
   *****************************************************/
  .article-content-in .tabs p {
    font-size: var(--hsbg-font-size-label);
  }
}