/* Linea del tempo del Presepio di Venegazzù */
.vz-tl {
  --gold: #c9a24a;
  --gold-light: #e8cf8c;
  --gold-dark: #7d5f17;
  --night: #16211c;
  position: relative;
  list-style: none;
  max-width: 1100px;
  margin: 2rem auto 4rem;
  padding: 0;
}

/* linea centrale */
.vz-tl::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  transform: translateX(-50%);
  background: linear-gradient(180deg, transparent, var(--gold) 4%, var(--gold) 96%, transparent);
}

.vz-tl-item {
  position: relative;
  width: 50%;
  padding: 0 3rem 3rem;
  box-sizing: border-box;
}
.vz-tl-left { margin-right: 50%; text-align: right; }
.vz-tl-right { margin-left: 50%; }

.vz-tl-dot {
  position: absolute;
  top: 1.6rem;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--gold);
  box-shadow: 0 0 0 5px rgba(201, 162, 74, 0.18);
  z-index: 1;
}
.vz-tl-left .vz-tl-dot { right: -8px; }
.vz-tl-right .vz-tl-dot { left: -8px; }
.vz-tl-tappa .vz-tl-dot { width: 22px; height: 22px; top: 1.4rem; background: var(--gold); }
.vz-tl-left.vz-tl-tappa .vz-tl-dot { right: -11px; }
.vz-tl-right.vz-tl-tappa .vz-tl-dot { left: -11px; }

.vz-tl-card {
  display: inline-block;
  width: 100%;
  max-width: 440px;
  overflow: hidden;
  text-align: left;
  background: #fff;
  border: 1px solid rgba(201, 162, 74, 0.3);
  border-radius: 14px;
  box-shadow: 0 12px 30px rgba(22, 33, 28, 0.1);
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.5s;
}
.vz-tl-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 44px rgba(22, 33, 28, 0.18), 0 0 0 1px var(--gold-light);
}
.vz-tl-tappa .vz-tl-card { border-top: 4px solid var(--gold); }

.vz-tl-img {
  display: block;
  width: 100%;
  height: 230px;
  object-fit: cover;
  transition: transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}
.vz-tl-card:hover .vz-tl-img { transform: scale(1.05); }

.vz-tl-body { padding: 1.2rem 1.4rem 1.4rem; }

.vz-tl-year {
  margin: 0 0 0.2rem;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 2.6rem;
  font-weight: 600;
  line-height: 1;
  color: var(--night);
}
.vz-tl-title {
  margin: 0.3rem 0 0.4rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.85rem;
  color: var(--gold-dark);
}
.vz-tl-text { margin: 0 0 0.8rem; line-height: 1.65; }

.vz-tl-link {
  display: inline-flex;
  gap: 0.4rem;
  font-weight: 700;
  color: var(--gold-dark);
  text-decoration: none;
}
.vz-tl-link span { transition: transform 0.35s; }
.vz-tl-link:hover span, .vz-tl-link:focus-visible span { transform: translateX(5px); }
.vz-tl-link:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

/* mobile: una sola colonna con la linea a sinistra */
@media (max-width: 760px) {
  .vz-tl::before { left: 14px; }
  .vz-tl-item, .vz-tl-left, .vz-tl-right { width: 100%; margin: 0; padding: 0 0 2rem 2.6rem; text-align: left; }
  .vz-tl-left .vz-tl-dot, .vz-tl-right .vz-tl-dot { left: 6px; right: auto; }
  .vz-tl-left.vz-tl-tappa .vz-tl-dot, .vz-tl-right.vz-tl-tappa .vz-tl-dot { left: 3px; }
  .vz-tl-img { height: 200px; }
}

@media (prefers-reduced-motion: reduce) {
  .vz-tl-card, .vz-tl-img { transition: none; }
}

/* card attaccate alla linea centrale */
.vz-tl-card { display: block; }
.vz-tl-left .vz-tl-card { margin-left: auto; }
@media (max-width: 760px) { .vz-tl-left .vz-tl-card { margin-left: 0; } }

/* annate senza foto: invito a mandarne una */
.vz-tl-ph {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  height: 230px;
  padding: 1.5rem;
  text-align: center;
  text-decoration: none;
  background: radial-gradient(ellipse at 50% 30%, #2c4a3b 0%, #16211c 75%);
  color: #fff;
}
.vz-tl-ph-star { font-size: 3rem; line-height: 1; color: var(--gold-light); text-shadow: 0 0 24px rgba(232, 207, 140, 0.6); }
.vz-tl-ph-text { font-size: 1rem; max-width: 26ch; color: #f4ecd6; }
.vz-tl-ph:hover .vz-tl-ph-text, .vz-tl-ph:focus-visible .vz-tl-ph-text { text-decoration: underline; }
.vz-tl-ph:focus-visible { outline: 3px solid var(--gold); outline-offset: -3px; }
@media (max-width: 760px) { .vz-tl-ph { height: 200px; } }
