/* ============================================================
   Valentine Instagram Feed
   ============================================================ */

.vif-feed {
  margin: 56px 0;
}

/* ---- Intestazione ----------------------------------------- */
.vif-feed__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}

.vif-feed__eyebrow {
  display: block;
  margin-bottom: 4px;
  color: #87684b;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.vif-feed__title {
  margin: 0;
  color: #1f1a17;
  font-size: 28px;
  font-weight: 600;
  line-height: 1.1;
}

.vif-feed__profile {
  flex-shrink: 0;
  color: #87684b;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.vif-feed__profile:hover {
  color: #5c4432;
  text-decoration: underline;
}

/* ---- Riga scrollabile — usa white-space:nowrap ------------ */
.vif-feed__track {
  white-space: nowrap;
  overflow-x: auto;
  overflow-y: visible;
  padding-bottom: 16px;
  /* scrollbar sottile */
  scrollbar-width: thin;
  scrollbar-color: #c9a97a #f5ede4;
}

.vif-feed__track::-webkit-scrollbar {
  height: 5px;
}
.vif-feed__track::-webkit-scrollbar-track {
  background: #f5ede4;
  border-radius: 3px;
}
.vif-feed__track::-webkit-scrollbar-thumb {
  background: #c9a97a;
  border-radius: 3px;
}

/* ---- Card ------------------------------------------------- */
.vif-card {
  display: inline-block;
  white-space: normal;
  vertical-align: top;
  width: 220px;
  margin-right: 14px;
  border-radius: 18px;
  background: #fffaf5;
  box-shadow: 0 6px 24px rgba(62, 38, 18, 0.09);
  text-decoration: none;
  color: inherit;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
  overflow: hidden;
}

.vif-card:last-child {
  margin-right: 0;
}

.vif-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 32px rgba(62, 38, 18, 0.15);
  text-decoration: none;
  color: inherit;
}

/* ---- Immagine 1:1 con padding-top hack ------------------- */
.vif-card__media {
  position: relative;
  width: 100%;
  padding-top: 100%;
  background: #f0e7dd;
}

.vif-card__media img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.vif-card__badge {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 1;
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(20, 14, 10, 0.72);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

/* ---- Testo ----------------------------------------------- */
.vif-card__body {
  padding: 12px 14px 14px;
}

.vif-card__caption {
  margin: 0 0 8px;
  color: #3a2e28;
  font-size: 12px;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.vif-card__meta {
  color: #9e7a52;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.05em;
}

/* ---- Mobile ---------------------------------------------- */
@media (max-width: 767px) {
  .vif-feed {
    margin: 36px 0;
  }

  .vif-feed__head {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 16px;
  }

  .vif-feed__title {
    font-size: 22px;
  }

  .vif-card {
    width: 175px;
    margin-right: 12px;
    border-radius: 14px;
  }
}
