.back-button,
#block-back div:last-child p {
  background-color: #FFF;
  outline: none;
  border: 1px var(--border_gray) solid;
  padding: 7px 3em 7px 3em;
  border-radius: 50px;
  font-size: 13px;
  width: fit-content;
  margin: 37px auto 0 auto;
  position: relative;
  line-height: 25px;
}

#block-back div:last-child p::before {
  content: '';
  content: url(../../assets/icons/icon_arrow_left.svg);
  background-repeat: no-repeat;
  background-size: contain;
  position: absolute;
  top: 50%;
  left: 1em;
  transform: translateY(-50%);
  display: block;
}

#block-views-block-custom-title-block-2.block {
  position: relative;
}
#block-views-block-custom-title-block-2.block * {
  cursor: pointer;
}

#block-views-block-custom-title-block-2 .node-readmore {
  position: absolute;
  top: 50%;
  right: 2em;
  transform: translateY(-50%);
}

#block-views-block-custom-title-block-2 .node-readmore a {
  font-size: 0px;
  content: '';
}

#block-views-block-custom-title-block-2 .node-readmore a::after {
  content: url(../../assets/icons/icon_arrow_right.svg);
  display: block;
  position: absolute;
  top: 0;
  right: 2rem;
}

#block-back div:last-child p:hover {
  background-color: var(--border_gray);
  cursor: pointer;
}

.region-page-title { margin-bottom: 3rem; }

body[data-once*="ictpSearch"] .region-page-title { margin-bottom: 0; }

.region-page-title > div {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 50px 15px 20px;
}

@media (min-width: 1024px) {
  .region-page-title > div {
    padding: 70px 15px 20px;
  } 
}

.region-page-title>div:nth-child(2) {
  display: block;
  background-color: #FFF;
  border-bottom: 1px var(--border_gray) solid;
}

.region-page-title>div:nth-child(1),
.region-page-title>div:nth-child(3) {
  display: none;
}

.region-page-title h1 {
  margin-bottom: 0;
}

.back-button:hover {
  background-color: var(--border_gray);
}



/*
OCCHIELLO / DATA
*/
.view-custom-title .views-field-field-news-date time {
  margin-bottom: 10px;
  display: block;
  font-size: 0.875rem;
  font-weight: 300;
}

@media (min-width: 576px) {
  .view-custom-title .views-field-field-news-date time {
    font-size:1.25rem;
  }
}

@media (min-width: 1200px) {
  .region-page-title {
    display: flex;
    flex-direction: row;
  }

  /* BACK SECTION */
  .region-page-title>div:nth-child(1) {
    border-bottom: 1px var(--border_gray) solid;
    padding: 40px 2vw;
    display: flex;
  }

  .region-page-title>div:nth-child(2),
  .region-page-title>div:nth-child(3) {
    display: block;
    background-color: #FFF;
    position: relative;
    border-bottom: 1px var(--border_gray) solid;
  }

  /* .region-page-title>div:nth-child(3) {
    background-image: url("../../assets/icons/icon_arrow_right.svg");
    background-position: 94% 90%;
    background-repeat: no-repeat;
    background-size: auto;
  } */


  .region-page-title>div:nth-child(3):before {
    width: 1px;
    height: 70%;
    background-color: var(--border_gray);
    position: absolute;
    content: "";
    top: 50%;
    transform: translateY(-50%);
    left: 0;
  }

  .region-page-title>div:nth-child(3) .node-readmore {
    padding: 0;
  }

  .region-page-title>div:nth-child(3) .node-readmore>a {
    color: blue;
  }

  .region-page-title>div:nth-child(3) .node-readmore>a:hover {
    color: red;
  }


  /* senza next layout*/
  .hide-next-page .region-page-title>div:nth-child(3) {
    display: none;
  }

  #block-views-block-custom-title-all-terms.block-views-blockcustom-title-term-block-2,
  .hide-next-page .region-page-title>div:nth-child(2) {
    width: 80%;
    padding-right: 20%;
  }


  /* next occhiello */
  .region-page-title div#block-views-block-custom-title-block-2>h2 {
    font-size: 13px;
    color: #CCCCCC;
    font-weight: 300;
    margin-top: 0;
    margin-bottom: 0.5rem;
  }

  /*titolo next*/
  .views-field-field-ref-page-next h2 {
    margin-top: 0;
  }

  .views-field-field-ref-page-next h2 a::after {
    content: '';
    width: 1.2em;
    height: 1.2em;
    position: absolute;
    /* bottom: 1.1em; */
    bottom: 50px;
    right: 1em;
    background-image: url("../../assets/icons/icon_arrow_right.svg");
    background-position: center center;
    background-repeat: no-repeat;
    background-size: contain;
  }

  .contextual-region { position: unset; }

  .views-field-field-ref-page-next span {
    color: var(--text_color);
    font-size: 24px;
  }

  .field--name-field-page-subtitle {
    font-size: 20px;
    font-weight: 300;
  }
}

@media (min-width: 1400px) {

  .view-custom-title .views-field-field-news-date time {
    margin-bottom: 4px;
  }

  .back-button,
  #block-back div:last-child p {
    margin: 54px auto 0 auto;
  }

  .region-page-title>div:nth-child(3) {
    background-position:92% 86%;
  }

  .view-custom-title .views-field-field-news-date time {
    font-size:1.375rem;
  }

  #block-views-block-custom-title-all-terms.block-views-blockcustom-title-term-block-2,
  .hide-next-page .region-page-title>div:nth-child(2) {
    padding: 60px 20% 50px 0px;
  }

  .region-page-title>div:nth-child(3) {
    padding: 60px 8vw 50px 2vw;
  }

  /*titolo next*/
  .views-field-field-ref-page-next span {
    font-size: 28px;
  }

  .field--name-field-page-subtitle {
    font-size: 24px;
  }
}

@media (min-width: 1700px) {
  .region-page-title>div:nth-child(3) {
    background-position: 93% 86%;
  }
}
