/** Shopify CDN: Minification failed

Line 10:0 Unexpected "<"
Line 37:0 Unexpected "<"

**/


/* CSS from section stylesheet tags */
<style>
  .dir-block {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 3rem;
    text-align: center;
  }
  .dir-block img {
    max-width: 100%;
    height: auto;
  }
  .dir-block h2 {
    font-size: 1.5rem;
    margin-top: 1rem;
  }
  .dir-block p {
    font-size: 1rem;
  }
  .dir-block a {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.5rem 1rem;
    background: #000;
    color: #fff;
    text-decoration: none;
  }
</style>
.overlay-grid {
  display: grid;
  gap: 1.5rem;
  padding: 2rem 0;
  margin-bottom: 4rem;
}

/* Forza le colonne a funzionare correttamente */
.overlay-grid.columns-1 {
  grid-template-columns: repeat(1, minmax(0, 1fr));
}

.overlay-grid.columns-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.overlay-grid.columns-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.overlay-grid.columns-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

/* Mobile fallback: 1 colonna */
@media screen and (max-width: 767px) {
  .overlay-grid {
    grid-template-columns: 1fr !important;
  }
}

  .overlay-item {
    position: relative;
    overflow: hidden;
    aspect-ratio: 10 / 12;
    border-radius: 0;
  }

  .overlay-item a {
    display: block;
    height: 100%;
    width: 100%;
    background-size: cover;
    background-position: center;
    position: relative;
    text-decoration: none;
  }

  .overlay-text {
    position: absolute;
    padding: 1rem;
    width: 100%;
    transition: all 0.3s ease;
  }

  .overlay-text-top {
    top: 0;
  }

  .overlay-text-middle {
    top: 50%;
    transform: translateY(-50%);
    text-align: center;
  }

  .overlay-text-bottom {
    bottom: 0;
  }

  .overlay-text h3 {
    margin: 0;
    font-size: 1.25rem;
    transition: font-size 0.5s ease;
  }

  .overlay-text p {
    margin: 0.3rem 0 0;
    font-size: 1rem;
    opacity: 0.9;
    transition: font-size 0.5s ease;
  }

  .overlay-item:hover .overlay-text h3 {
    font-size: 1.5rem;
  }

  .overlay-item:hover .overlay-text p {
    font-size: 1rem;
  }

  @media (max-width: 767px) {
    .overlay-grid {
      grid-template-columns: 1fr !important;
    }
  }