/* ==========================================
   LA PIAZZETTA – HOME GALLERY TEASER
   Scope: public Home page only
========================================== */

.lp-home-gallery{
  position: relative;
  padding-top: clamp(28px, 5vw, 70px);
  padding-bottom: clamp(38px, 6vw, 78px);
}

.lp-home-gallery--after-special .lp-home-gallery{
  padding-top: clamp(12px, 2.2vw, 28px);
}

.lp-gallery-shell{
  position: relative;
  display: grid;
  grid-template-columns: minmax(260px, 0.78fr) minmax(0, 1.22fr);
  gap: clamp(26px, 4vw, 56px);
  align-items: center;
  background: linear-gradient(
    90deg,
    rgba(255,252,247,0.92) 0%,
    rgba(255,252,247,0.72) 46%,
    rgba(255,252,247,0.18) 100%
  );
  padding: clamp(20px, 3vw, 34px);
  overflow: hidden;
}

.lp-gallery-shell::before{
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      90deg,
      rgba(183,150,99,0.58) 0%,
      rgba(183,150,99,0.06) 38%,
      rgba(183,150,99,0.06) 62%,
      rgba(183,150,99,0.58) 100%
    ) top / 100% 2px no-repeat,
    linear-gradient(
      180deg,
      rgba(183,150,99,0.58) 0%,
      rgba(183,150,99,0.10) 100%
    ) left / 2px 100% no-repeat,
    linear-gradient(
      180deg,
      rgba(183,150,99,0.58) 0%,
      rgba(183,150,99,0.10) 100%
    ) right / 2px 100% no-repeat;
  pointer-events: none;
}

.lp-gallery-shell::after{
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 6px;
  background:
    linear-gradient(
      90deg,
      rgba(183,150,99,0.58) 0%,
      rgba(183,150,99,0.06) 38%,
      rgba(183,150,99,0.06) 62%,
      rgba(183,150,99,0.58) 100%
    ) top / 100% 1px no-repeat,
    linear-gradient(
      90deg,
      rgba(183,150,99,0.58) 0%,
      rgba(183,150,99,0.06) 38%,
      rgba(183,150,99,0.06) 62%,
      rgba(183,150,99,0.58) 100%
    ) bottom / 100% 2px no-repeat;
  pointer-events: none;
}

.lp-gallery-copy{
  position: relative;
  z-index: 2;
  padding-left: clamp(6px, 1vw, 14px);
}

.lp-gallery-copy .lp-title{
  margin: 0 0 12px;
  color: var(--lp-bg-dark);
}

.lp-gallery-copy .lp-lead{
  margin: 0;
  width: min(46ch, 100%);
  line-height: 1.8;
  color: rgba(42,37,33,0.78);
}

.lp-gallery-link{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  margin-top: 24px;
  background: var(--lp-bg-warm);
  color: var(--lp-cream);
  border: 1px solid rgba(58,29,22,0.10);
  box-shadow: 0 8px 18px rgba(58,29,22,0.10);
  font-family: "Inter", sans-serif;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-decoration: none;
  transition:
    background-color 0.25s ease,
    transform 0.25s ease,
    box-shadow 0.25s ease,
    color 0.25s ease;
}

.lp-gallery-link,
.lp-gallery-link:visited,
.lp-gallery-link:hover,
.lp-gallery-link:focus,
.lp-gallery-link:active{
  color: var(--lp-cream);
  text-decoration: none;
}

.lp-gallery-link:hover,
.lp-gallery-link:focus{
  background: var(--lp-bg-dark);
  transform: translateY(-1px);
  box-shadow: 0 12px 22px rgba(58,29,22,0.14);
}

.lp-gallery-grid{
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.1fr 0.82fr 0.82fr;
  grid-template-rows: 170px 170px;
  gap: clamp(10px, 1.4vw, 16px);
}

.lp-gallery-item{
  position: relative;
  display: block;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  background: var(--lp-cream);
  border: 1px solid rgba(58,29,22,0.08);
  box-shadow: 0 18px 34px rgba(58,29,22,0.08);
  text-decoration: none;
}

.lp-gallery-item::after{
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(58,29,22,0.00) 45%,
    rgba(58,29,22,0.16) 100%
  );
  opacity: 0;
  transition: opacity 0.28s ease;
  pointer-events: none;
}

.lp-gallery-item:hover::after,
.lp-gallery-item:focus::after{
  opacity: 1;
}

.lp-gallery-img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  filter: saturate(0.98) contrast(1.03) brightness(0.99);
  transition: transform 0.45s cubic-bezier(.19,1,.22,1), filter 0.35s ease;
}

.lp-gallery-item:hover .lp-gallery-img,
.lp-gallery-item:focus .lp-gallery-img{
  transform: scale(1.045);
  filter: saturate(1.04) contrast(1.04) brightness(1);
}

.lp-gallery-item--1{
  grid-row: span 2;
}

.lp-gallery-item--4{
  grid-column: span 2;
}

.lp-gallery-shell--empty{
  grid-template-columns: 1fr;
  text-align: center;
}

.lp-gallery-shell--empty .lp-gallery-copy{
  padding: clamp(18px, 3vw, 34px);
  margin: 0 auto;
}

.lp-gallery-shell--empty .lp-lead{
  margin: 0 auto;
}

@media (max-width: 991.98px){
  .lp-gallery-shell{
    grid-template-columns: 1fr;
    background: rgba(255,252,247,0.74);
  }

  .lp-gallery-copy{
    text-align: center;
    padding-left: 0;
  }

  .lp-gallery-copy .lp-lead{
    margin: 0 auto;
  }

  .lp-gallery-grid{
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: none;
  }

  .lp-gallery-item,
  .lp-gallery-item--1,
  .lp-gallery-item--4{
    grid-column: auto;
    grid-row: auto;
    aspect-ratio: 1 / 1;
  }

  .lp-gallery-item--1{
    aspect-ratio: 4 / 3;
    grid-column: span 2;
  }

  .lp-gallery-item--4{
    aspect-ratio: 2 / 1;
    grid-column: span 2;
  }
}

@media (max-width: 575.98px){
  .lp-home-gallery--after-special .lp-home-gallery{
    padding-top: 8px;
  }

  .lp-gallery-shell{
    padding: 18px 14px;
  }

  .lp-gallery-grid{
    gap: 10px;
  }

  .lp-gallery-link{
    width: 100%;
  }
}
