.container-riquadri {
  display: grid;
  max-width: 100%;
  margin: 0px 40px;
  grid-template-columns: 1fr;
  gap: 200px;
}

.riquadro {
  width: 85%;
  padding: 10px;
}

.container-riquadro {
  display: flex;
  flex-direction: row;
  align-items: center;
  border-radius: 16px;
  position: relative;
  background-color: var(--holzhof-color-white);
  z-index: 1;
}

.container-riquadro::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 16px;
  pointer-events: none;
  background-color: var(--holzhof-color-green);
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg width='100%25' height='100%25' xmlns='http://www.w3.org/2000/svg'%3E%3Crect x='3' y='3' width='calc(100%25 - 6px)' height='calc(100%25 - 6px)' fill='none' rx='10' stroke='white' stroke-width='1' stroke-dasharray='10 6'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg width='100%25' height='100%25' xmlns='http://www.w3.org/2000/svg'%3E%3Crect x='3' y='3' width='calc(100%25 - 6px)' height='calc(100%25 - 6px)' fill='none' rx='10' stroke='white' stroke-width='1' stroke-dasharray='10 6'/%3E%3C/svg%3E");
  height: calc(100% + 3px);
  transform: translateY(-1.5px);
}

.testo-container {
  max-width: 50%;
  padding: 20px;
  background-color: var(--holzhof-color-white);
  margin-bottom: 20px;
  margin-top: 20px;
  
  h1 {
    font-size: var(--holzhof-font-size-38);
    line-height: var(--holzhof-line-spacing-50);
    text-transform: uppercase;
    margin-top: 0;
  }

  h2 {
    font-size: var(--holzhof-font-size-38);
    line-height: var(--holzhof-line-spacing-50);
    text-transform: uppercase;
  }

  h3 {
    font-size: var(--holzhof-font-size-24);
    line-height: var(--holzhof-line-spacing-28);
  }

  p {
    font-size: var(--holzhof-font-size-16);
    line-height: var(--holzhof-line-spacing-28);
  }

  a {
    font-size: var(--holzhof-font-size-16);
    line-height: var(--holzhof-line-spacing-28);
    color: var(--holzhof-color-green);
  }
}

.titolo-container {
  margin-bottom: 20px;
}

.corpo-container {
  margin-bottom: 40px;
}

.pulsante-container {
  display: flex;
  .button {
    background: url(../images/pulsante_green.png) no-repeat;
    background-size: 20%;
    background-position: 35px;
    transition: 0.3s;
    border-radius: 27px;
    border: 2px solid var(--holzhof-color-green);
    height: 50px;
    width: 90px;

    &:hover {
      background: url(../images/pulsante_white.png) no-repeat;
      background-size: 20%;
      background-position: 35px;
      transition: 0.3s;
      border-radius: 27px;
      background-color: var(--holzhof-color-green);
    }
  }
}
.contenitore-immagine {
  width: 45%;
  height: auto;
  aspect-ratio: 3 / 2;
}

.contenitore-immagine img {
  border-radius: 16px; /* Bordo rotondo immagine */
  aspect-ratio: 3 / 2;
  object-fit: cover;
  min-height: 120%;
  max-height: 180%;
  position: absolute;
  width: 45%;
  top: 50%;
  transform: translateY(-50%);
}

.dx {
  justify-self: end;
  .bordo-laterale {
    border-top-left-radius: 10px;
    border-bottom-left-radius: 10px;
  }
}

.sx {
  justify-self: start;
  .container-riquadro {
    flex-direction: row-reverse;
  }
  .bordo-laterale {
    border-top-right-radius: 10px;
    border-bottom-right-radius: 10px;
  }
}

.bordo-laterale {
  width: 20px;
  background-color: var(--holzhof-color-green);
  align-self: stretch;
  z-index: 2;
}

/* Modificare media query per gestione quando schermo più piccolo del 1200px - 1300px */
@media (max-width: 1199px) {
  .container-riquadri {
    gap: 100px;
  }
  .riquadro {
    width: 100%;
  }
  .testo-container {
    max-width: 95%;
    padding: 20px;
  }
  .container-riquadro::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 16px;
    pointer-events: none;
    background-color: var(--holzhof-color-green);
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg width='100%25' height='100%25' xmlns='http://www.w3.org/2000/svg'%3E%3Crect x='3' y='3' width='calc(100%25 - 6px)' height='calc(100%25 - 6px)' fill='none' rx='10' stroke='white' stroke-width='1' stroke-dasharray='10 6'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg width='100%25' height='100%25' xmlns='http://www.w3.org/2000/svg'%3E%3Crect x='3' y='3' width='calc(100%25 - 6px)' height='calc(100%25 - 6px)' fill='none' rx='10' stroke='white' stroke-width='1' stroke-dasharray='10 6'/%3E%3C/svg%3E");
  }
  .bordo-laterale {
    display: none;
  }
  .sx {
    .container-riquadro {
      flex-direction: column-reverse;
    }
  }
  .container-riquadro {
    flex-direction: column-reverse;
    margin-left: 50px;
    margin-right: 50px;
  }

  .contenitore-immagine {
    width: 100%;
    display: flex;
    justify-content: center;
  }

  .contenitore-immagine img {
    min-height: auto;
    top: 0%;
    position: relative;
    border-radius: 16px;
    width: 90%;
    aspect-ratio: 5 / 3;
    object-fit: cover;
    transform: translateY(-10%);
  }
}

@media (max-width: 767px) {
  .container-riquadri {
    margin: 0px 30px;
  }
  .riquadro {
    padding: 0px;
  }
  .container-riquadro {
    margin-left: 5px;
    margin-right: 5px;
  }
}

.pulsante-azienda {
  margin-top: 7vh;
}

.center {
  margin-top: 10vh;
  .bottone-grande {
    margin-bottom: 0px;
  }
}
