/* Homepage collections grid – [homepage-collezioni] */

.amb-home-col {
  width: 100%;
  font-family: var(--amb-font-body);
}

.amb-home-col__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.55rem 1.75rem;
  width: 100%;
  padding: 0 0 0.5rem;
}

.amb-home-col__card {
  position: relative;
  display: block;
  min-height: clamp(280px, 32vw, 420px);
  border-radius: var(--amb-btn-radius, 6px);
  overflow: hidden;
  text-decoration: none !important;
  color: #fff !important;
  border: 1.5px solid var(--amb-btn-brown, var(--amb-gold, #a05744)) !important;
  box-shadow: -6px 6px 0 0 var(--amb-btn-shadow, #e8d9c4) !important;
  isolation: isolate;
  transition: box-shadow 0.15s ease, border-color 0.15s ease;
}

.amb-home-col__card:hover,
.amb-home-col__card:focus-visible {
  border-color: var(--amb-btn-brown, var(--amb-gold, #a05744)) !important;
  box-shadow: -3px 3px 0 0 var(--amb-btn-shadow, #e8d9c4) !important;
  outline: none;
}

.amb-home-col__media {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: #335da4;
}

.amb-home-col__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.45s ease;
}

.amb-home-col__media--empty {
  background:
    linear-gradient(135deg, rgba(51, 93, 164, 0.95), rgba(3, 32, 70, 0.9));
}

.amb-home-col__shade {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  display: block;
  height: 58%;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0) 0%,
    rgba(0, 0, 0, 0.28) 45%,
    rgba(0, 0, 0, 0.58) 100%
  );
}

.amb-home-col__content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  gap: 0.4rem;
  width: 100%;
  height: 100%;
  min-height: inherit;
  padding: clamp(1.2rem, 2vw, 2rem);
  box-sizing: border-box;
  text-align: left;
}

.amb-home-col__title {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.22em 0.35em;
  width: 100%;
  max-width: none;
  font-size: clamp(1.75rem, 1.3rem + 1.4vw, 2.55rem);
  line-height: 1.12;
  color: #fff;
  text-shadow:
    0 1px 2px rgba(3, 32, 70, 0.55),
    0 4px 18px rgba(3, 32, 70, 0.45),
    0 10px 28px rgba(3, 32, 70, 0.35);
}

.amb-home-col__title-plain {
  font-family: var(--amb-font-display) !important;
  font-weight: 700 !important;
  color: inherit;
}

.amb-home-col__title-script {
  font-family: var(--amb-font-script, "Selima", cursive) !important;
  font-weight: 400 !important;
  font-size: 1.55em;
  line-height: 0.9;
  color: #9fc2f5;
}

.amb-home-col__from {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.25rem 0.4rem;
  width: 100%;
  margin-top: 0.05rem;
  color: rgba(255, 255, 255, 0.95);
  text-shadow:
    0 1px 2px rgba(3, 32, 70, 0.5),
    0 4px 16px rgba(3, 32, 70, 0.4);
}

.amb-home-col__from-prefix {
  font-family: var(--amb-font-body);
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 1.35;
  opacity: 0.95;
  text-transform: none;
}

.amb-home-col__from-amount,
.amb-home-col__from-amount .amount,
.amb-home-col__from-amount .woocommerce-Price-amount,
.amb-home-col__from-amount .woocommerce-Price-currencySymbol {
  font-family: var(--amb-font-body) !important;
  font-size: 0.78rem !important;
  font-weight: 600 !important;
  line-height: 1.35;
  color: #fff !important;
  text-shadow:
    0 1px 2px rgba(3, 32, 70, 0.5),
    0 4px 16px rgba(3, 32, 70, 0.4);
}

.amb-home-col__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.35rem;
  font-family: var(--amb-font-body);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.95);
  padding-bottom: 0.12rem;
  line-height: 1.2;
  text-shadow:
    0 1px 2px rgba(3, 32, 70, 0.5),
    0 4px 14px rgba(3, 32, 70, 0.35);
}

.amb-home-col__cta-arrow {
  font-weight: 700;
}

.amb-home-col__card:hover .amb-home-col__media img,
.amb-home-col__card:focus-visible .amb-home-col__media img {
  transform: scale(1.04);
}

.amb-home-col__card:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

@media (max-width: 720px) {
  .amb-home-col__grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .amb-home-col__card {
    min-height: 250px;
  }

}
