/* Background section */
.background-section, .background-section h3,.background-section .block--subtitle{
    color: #fff;
}

.background-section .block-text.left {
    display: flex;
    flex-direction: column;
    max-width: clamp(580px, 34.634vw, 555px);
}
.background-section .block-text.center {
    display: flex;
    flex-direction: column;
    max-width: clamp(530px, 28.905vw, 665px);
}
.background-section-content {
    margin: 0 5%;
    z-index: 5;
    position: relative;
}
.background-section-content.center {
    display: flex;
    justify-content: center;
    text-align: center;
    align-items: center;
}
.background-section-content.center .block-text.center {
    justify-content: center;
    align-items: center;
}
.background-section-content.center .block-text.center h3{
    text-align: center;
}
.background-section-content .block--paragraph{
    margin-top: 15px;
}
.background-section-content .block--button{
    margin-top: clamp(40px, 2.603vw, 50px);
}
.block-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 3;
}
.block-background:before {
    content: '';
    display: flex;
    width: 100%;
    height: 100%;
    background: #00000041;
    z-index: 4;
    position: absolute;
    top: 0;
    left: 0;
}
.block-background img{
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.section.background-section .column {
    overflow: hidden;
}
.background-section-content .block--title{
    text-wrap: balance;
}
/* Parallax background (solo quando c'è la classe parallax_effect) */
.block-background.parallax_effect img{
  will-change: transform;
  transform: translate3d(0,0,0);
  transition: none;

  /* fondamentale per vedere il movimento */
  height: 100%;
  width: 100%;
  object-fit: cover;
}
.block-background.parallax_effect{
    transform: scale(1.20);
}
.background-section .block-background .block--image {
    height: 100%;
}
.background-section .block-text.center .block--paragraph {
    max-width: clamp(380px, 23.176vw, 445px);
}
@media(min-width: 1025px){
    .parallax-gradient .block-background:before {
        background: #000;
        background: linear-gradient(90deg, rgb(0 0 0 / 70%) 0%, rgb(0 0 0 / 35%) 40%, rgb(0 0 0 / 0%) 55%);
    }   
}
@media(max-width: 10124px){
    .custom-background-position-on-mobile .block-background .block--image img {
        object-position: 70%;
    }
}