/* ============================================================
   MOMENTI INTERIOR — products.css
   ============================================================ */

.products {
  padding-block: var(--space-32) var(--space-24);
  background: var(--color-bg);
}

/* ── HEADER ── */
.products__header {
  padding-inline: var(--container-pad);
  max-width: var(--container-max);
  margin-inline: auto;
  margin-bottom: var(--space-16);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-4);
}

.products__header .section-intro {
  margin-top: var(--space-2);
}

/* ── GRID ── */
.products__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 2px;
  padding-inline: var(--container-pad);
  max-width: var(--container-max);
  margin-inline: auto;
}

/* ── CARD BASE ── */
.product-card {
  background: var(--color-surface);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
  border: 1px solid var(--color-border);
  transition: border-color var(--transition-base);
}

.product-card:hover {
  border-color: var(--color-border-hover);
}

/* ── FEATURED CARD (col 1, span 2 rows) ── */
.product-card--featured {
  grid-row: span 2;
}

/* ── MEDIA ── */
.product-card__media {
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}

.product-card--featured .product-card__media {
  height: clamp(600px, 70vh, 820px);
}

.product-card:not(.product-card--featured) .product-card__media {
  height: clamp(360px, 42vh, 480px);
}

.product-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform var(--transition-smooth), opacity var(--transition-base);
  filter: brightness(0.88) saturate(0.9);
}

.product-card__img--hover {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity var(--transition-slow), transform var(--transition-smooth);
  filter: brightness(0.88) saturate(0.9);
}

.product-card:hover .product-card__img {
  transform: scale(1.05);
  opacity: 0;
}

.product-card:hover .product-card__img--hover {
  opacity: 1;
  transform: scale(1.05);
}

/* ── BADGE ── */
.product-card__badge {
  position: absolute;
  top: var(--space-5);
  left: var(--space-5);
  font-family: var(--font-body);
  font-size: 9px;
  font-weight: var(--font-weight-medium);
  letter-spacing: var(--letter-spacing-widest);
  text-transform: uppercase;
  padding: 6px 14px;
  background: rgba(26, 25, 22, 0.75);
  backdrop-filter: blur(8px);
  color: var(--color-text-secondary);
  border: 1px solid var(--color-border);
  z-index: 1;
}

.product-card__badge--primary {
  background: rgba(201, 169, 110, 0.15);
  border-color: rgba(201, 169, 110, 0.4);
  color: var(--color-gold);
}

/* ── CONTENT ── */
.product-card__content {
  padding: var(--space-8) var(--space-8) var(--space-10);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  flex: 1;
}

.product-card--featured .product-card__content {
  padding: var(--space-10) var(--space-10) var(--space-12);
}

/* ── META (number + category) ── */
.product-card__meta {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.product-card__number {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: var(--font-weight-regular);
  color: var(--color-panel);
  line-height: 1;
  letter-spacing: var(--letter-spacing-tight);
}

.product-card--featured .product-card__number {
  font-size: 52px;
}

.product-card__category {
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: var(--font-weight-medium);
  letter-spacing: var(--letter-spacing-widest);
  text-transform: uppercase;
  color: var(--color-gold);
  border-left: 1px solid var(--color-border);
  padding-left: var(--space-4);
}

/* ── TITOLO ── */
.product-card__title {
  font-family: var(--font-display);
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-regular);
  color: var(--color-text-primary);
  line-height: var(--line-height-snug);
  letter-spacing: var(--letter-spacing-tight);
}

.product-card--featured .product-card__title {
  font-size: var(--font-size-2xl);
}

/* ── DESCRIZIONE ── */
.product-card__desc {
  font-family: var(--font-body);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-light);
  color: var(--color-text-secondary);
  line-height: var(--line-height-loose);
}

/* ── FEATURES LIST ── */
.product-card__features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin-top: var(--space-2);
}

.product-card__features li {
  font-family: var(--font-body);
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-light);
  color: var(--color-text-muted);
  letter-spacing: 0.04em;
  padding-left: var(--space-5);
  position: relative;
}

.product-card__features li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 12px;
  height: 1px;
  background: var(--color-gold);
  opacity: 0.5;
}

/* ── LINK ── */
.product-card__content .btn-link {
  margin-top: auto;
  padding-top: var(--space-4);
}

/* ── RESPONSIVE ── */
@media (max-width: 1100px) {
  .products__grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
  }

  .product-card--featured {
    grid-column: span 2;
    grid-row: span 1;
  }

  .product-card--featured .product-card__media {
    height: clamp(420px, 55vw, 560px);
  }

  .product-card:not(.product-card--featured) .product-card__media {
    height: clamp(320px, 40vw, 440px);
  }
}

@media (max-width: 680px) {
  .products__grid {
    grid-template-columns: 1fr;
  }

  .product-card--featured {
    grid-column: span 1;
  }

  .product-card--featured .product-card__media {
    height: clamp(340px, 60vw, 460px);
  }

  .product-card:not(.product-card--featured) .product-card__media {
    height: clamp(280px, 50vw, 380px);
  }
}
