.hc {
  --hc-fade: 900ms;
  --hc-dur: 5s;
  position: relative;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  background: var(--ink);
  touch-action: pan-y;
  -webkit-user-select: none;
  user-select: none;
}
.hc__slide {
  position: absolute;
  top: var(--nav-h); left: 0; right: 0; bottom: 0;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  z-index: 0;
}
.hc__slide.is-leaving { opacity: 1; visibility: visible; z-index: 1; }
.hc__slide.is-active {
  opacity: 1;
  visibility: visible;
  z-index: 2;
}
.hc.is-ready .hc__slide.is-active { transition: opacity var(--hc-fade) ease; }
.hc__slide picture { display: block; width: 100%; height: 100%; }
.hc__photo {
  display: block;
  width: 100%; height: 100%;
  object-fit: cover;
  transform-origin: 50% 50%;
}
.hc.is-ready .hc__slide.is-active .hc__photo,
.hc.is-ready .hc__slide.is-leaving .hc__photo {
  animation: hc-zoom calc(var(--hc-dur) + var(--hc-fade)) linear forwards;
}
@keyframes hc-zoom { from { transform: scale(1); } to { transform: scale(1.04); } }
.hc__ombra {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 520px;
  background: linear-gradient(to top, rgba(18, 23, 30, 0.78) 0%, rgba(18, 23, 30, 0.78) 85%, rgba(18, 23, 30, 0) 100%);
  pointer-events: none;
  z-index: 3;
}
.hc__ombra::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 300px;
  background: linear-gradient(to top, rgba(18, 23, 30, 0.62) 0%, rgba(18, 23, 30, 0.55) 45%, rgba(18, 23, 30, 0) 100%);
}
.hc__testata {
  position: absolute;
  left: var(--margin); right: var(--margin);
  bottom: 108px;
  z-index: 4;
  max-width: 620px;
  pointer-events: none;
}
.hc__title {
  margin: 0 0 24px;
  font-size: var(--t-display);
  line-height: 0.96;
  font-weight: 720;
  letter-spacing: -0.045em;
  color: var(--paper);
}
.hc__line { display: block; }
.hc__lede {
  margin: 0;
  font-size: 24px;
  line-height: 1.45;
  font-weight: 400;
  color: var(--muted-invert);
}
.hc__controls {
  position: absolute;
  right: var(--margin);
  bottom: 28px;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--paper);
}
.hc__counter {
  margin: 0 12px 0 0;
  text-shadow: 0 1px 6px rgba(18, 23, 30, 0.6);
}
.hc__bar {
  position: relative;
  width: 96px;
  height: 2px;
  margin-right: 12px;
  background: rgba(249, 249, 248, 0.32);
  overflow: hidden;
}
.hc__barfill {
  position: absolute;
  inset: 0;
  background: var(--paper);
  transform: scaleX(0);
  transform-origin: 0 50%;
}
.hc.is-ready .hc__barfill { animation: hc-fill var(--hc-dur) linear forwards; }
@keyframes hc-fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.hc.is-ready.is-paused .hc__slide.is-active .hc__photo,
.hc.is-ready.is-paused .hc__slide.is-leaving .hc__photo,
.hc.is-ready.is-paused .hc__barfill { animation-play-state: paused; }
.hc__btn {
  appearance: none;
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  margin: 0;
  padding: 0;
  border: 1px solid rgba(249, 249, 248, 0.55);
  background: rgba(18, 23, 30, 0.35);
  color: var(--paper);
  cursor: pointer;
  transition: background 0.25s ease, border-color 0.25s ease;
}
.hc__btn[hidden] { display: none; }
.hc__btn:hover { background: rgba(18, 23, 30, 0.7); border-color: var(--paper); }
.hc__btn:focus-visible { outline: 2px solid var(--paper); outline-offset: 2px; }
.hc__btn[data-hc-toggle] .hc__ico-play { display: none; }
.hc__btn[data-hc-toggle][aria-pressed="true"] .hc__ico-play { display: block; }
.hc__btn[data-hc-toggle][aria-pressed="true"] .hc__ico-pause { display: none; }
@media (max-width: 767px) {
  .hc__ombra { height: 460px; }
  .hc__testata { bottom: 80px; }
  .hc__title { margin-bottom: 16px; }
  .hc__lede { font-size: 20px; }
  .hc__controls { left: var(--margin); bottom: 16px; }
  .hc__bar { flex: 1 1 auto; width: auto; min-width: 24px; }
  .hc::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 260px;
    background: linear-gradient(to bottom, rgba(18, 23, 30, 0.55) 0%, rgba(18, 23, 30, 0.55) 60%, rgba(18, 23, 30, 0) 100%);
    pointer-events: none;
    z-index: 4;
  }
}
@media (max-width: 359px) {
  .hc__title { font-size: 38px; }
  .hc__counter { margin-right: 8px; }
  .hc__bar { margin-right: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  .hc.is-ready .hc__slide.is-active { transition: none; }
  .hc.is-ready .hc__slide.is-active .hc__photo,
  .hc.is-ready .hc__slide.is-leaving .hc__photo { animation: none; }
  .hc.is-ready .hc__barfill { animation: none; }
}
.hc__controls[hidden] { display: none; }
