/* Vittoria Italiana - blog: "Il diario della dispensa" in the shop home (vi_blog 1.5.0).
   Sizes in rem (theme: html 20px + body zoom .8 on computers). Colours from vi_style. */
.vbh {
  --vbh-ink: var(--vi-ink, #1c1710);
  --vbh-gold: var(--vi-gold, #f5cd64);
  --vbh-green: var(--vi-green, #1d5a1c);
  --vbh-cream: var(--vi-cream, #fdf8ea);
  --vbh-muted: var(--vi-muted, #5a5142);
  --vbh-line: var(--vi-line, #e6d9b3);
  clear: both;
  margin: 2.5rem 0;
  color: var(--vbh-ink);
}
.vbh *, .vbh *::before, .vbh *::after { box-sizing: border-box; }
.vbh-sr { position: absolute !important; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
.vbh .vbh-head { margin: 0 0 .3rem; text-align: center; font-size: clamp(1.8rem, 3.2vw, 2.5rem); color: var(--vi-ink2, var(--vbh-ink)); }
.vbh .vbh-sub { max-width: 40rem; margin: 0 auto 1.3rem; text-align: center; font-size: 1.05rem; color: var(--vi-mut, var(--vbh-muted)); }

/* phone: one row that scrolls sideways with the finger (next card peeks in) */
.vbh-list {
  display: flex; gap: .9rem; margin: 0 calc(-1 * var(--vi-gutter, 16px)); padding: .2rem var(--vi-gutter, 16px) .8rem;
  list-style: none; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch; scrollbar-width: none;
}
.vbh-list::-webkit-scrollbar { display: none; }
.vbh-item { flex: 0 0 82%; display: flex; margin: 0; scroll-snap-align: start; }

.vbh .vbh-card {
  display: flex; flex-direction: column; width: 100%; overflow: hidden;
  border-radius: 1.1rem; background: #fff; color: var(--vbh-ink); text-decoration: none;
  box-shadow: 0 1px 2px rgba(28, 23, 16, .06), 0 8px 24px rgba(28, 23, 16, .08);
  transition: transform .25s ease, box-shadow .25s ease;
}
.vbh a.vbh-card:hover, .vbh a.vbh-card:focus-visible { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(28, 23, 16, .16); color: var(--vbh-ink); text-decoration: none; }
.vbh a.vbh-card:focus-visible { outline: 3px solid var(--vi-gold-deep, #b8891f); outline-offset: 2px; }
.vbh-img { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; background: #f6eccd; }
.vbh-img img { display: block; width: 100%; height: 100%; max-width: none; object-fit: cover; }
.vbh-body { display: flex; flex-direction: column; align-items: flex-start; gap: .5rem; flex: 1 1 auto; padding: 1rem 1.1rem 1.2rem; }
.vbh .vbh-tag {
  padding: .2rem .65rem; border-radius: 999px; background: var(--vbh-gold); color: var(--vbh-ink);
  font-size: .7rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
}
.vbh .vbh-title { margin: 0; font-family: var(--vi-serif, Georgia, serif); font-size: 1.15rem; line-height: 1.3; color: var(--vbh-ink); text-transform: none; }
.vbh a.vbh-card:hover .vbh-title { color: var(--vbh-green); }
.vbh-text { flex: 1 1 auto; color: var(--vbh-muted); font-size: .9rem; line-height: 1.5; }
.vbh .vbh-read { margin-top: .2rem; color: var(--vbh-green); font-weight: 700; font-size: .95rem; }

/* scheduled article: not a link */
.vbh .vbh-card--soon { background: #fffdf6; border: 2px dashed var(--vbh-line); box-shadow: none; cursor: default; }
.vbh-card--soon .vbh-img img { filter: blur(5px) grayscale(.35); opacity: .6; transform: scale(1.08); }
.vbh-lock {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  display: flex; align-items: center; justify-content: center; width: 3rem; height: 3rem;
  border-radius: 50%; background: var(--vbh-ink); color: var(--vbh-gold); box-shadow: 0 6px 18px rgba(28, 23, 16, .3);
}
.vbh-lock svg { width: 1.4rem; height: 1.4rem; }
.vbh .vbh-when { padding: .3rem .75rem; border-radius: 999px; background: var(--vbh-gold); color: var(--vbh-ink); font-size: .85rem; font-weight: 700; line-height: 1.3; }
.vbh .vbh-card--soon .vbh-tag { background: #f3e6bd; }
.vbh .vbh-card--soon .vbh-title { color: var(--vbh-muted); }

.vbh .vbh-more { margin: .9rem 0 0; text-align: center; }
.vbh .vbh-btn {
  display: inline-flex; align-items: center; gap: .4rem; min-height: 2.75rem; padding: .6rem 1.5rem;
  border-radius: 999px; background: var(--vbh-green); color: #fff; font-weight: 700; text-decoration: none;
}
.vbh .vbh-btn:hover, .vbh .vbh-btn:focus-visible { background: var(--vi-logo-green, #174414); color: var(--vbh-gold); text-decoration: none; }

/* tablet and computer: 3 cards side by side */
@media (min-width: 768px) {
  .vbh-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; margin: 0; padding: .2rem 0 .5rem; overflow: visible; }
  .vbh-item { flex: none; }
}
@media (min-width: 768px) and (max-width: 991px) {
  .vbh-text { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .vbh .vbh-card { transition: none; }
  .vbh a.vbh-card:hover { transform: none; }
}

/* product page block "Ne parliamo nel diario della dispensa" */
.vbp { clear: both; margin: 2rem 0; color: var(--vi-ink, #1c1710); }
.vbp *, .vbp *::before, .vbp *::after { box-sizing: border-box; }
.vbp .vbp-head { margin: 0 0 .8rem; font-size: clamp(1.3rem, 2.6vw, 1.7rem); }
.vbp-list { display: grid; grid-template-columns: 1fr; gap: .8rem; margin: 0; padding: 0; list-style: none; }
.vbp .vbp-card {
  display: flex; align-items: center; gap: .9rem; min-height: 4.5rem; padding: .6rem; border-radius: 1rem;
  background: #fff; color: inherit; text-decoration: none;
  border: 2px solid var(--vi-line, #e6d9b3); transition: border-color .2s, box-shadow .2s;
}
.vbp .vbp-card:hover, .vbp .vbp-card:focus-visible { border-color: var(--vi-green, #1d5a1c); box-shadow: 0 6px 18px rgba(28, 23, 16, .12); color: inherit; text-decoration: none; }
.vbp .vbp-card:focus-visible { outline: 3px solid var(--vi-gold-deep, #b8891f); outline-offset: 2px; }
.vbp-img { flex: none; display: block; width: 4.8rem; height: 4.8rem; overflow: hidden; border-radius: .7rem; background: #f6eccd; }
.vbp-img img { display: block; width: 100%; height: 100%; object-fit: cover; }
.vbp-body { display: flex; flex-direction: column; align-items: flex-start; gap: .25rem; min-width: 0; }
.vbp .vbp-tag { padding: .1rem .55rem; border-radius: 999px; background: var(--vi-gold, #f5cd64); font-size: .68rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.vbp .vbp-title { font-family: var(--vi-serif, Georgia, serif); font-size: 1.05rem; line-height: 1.3; font-weight: 700; }
.vbp .vbp-read { color: var(--vi-green, #1d5a1c); font-weight: 700; font-size: .9rem; }
@media (min-width: 768px) { .vbp-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
