.hero-carousel {
  --hero-dark: #1d161b;
  --hero-coral: #ff6551;
  color: var(--light);
  background: var(--hero-dark);
}
.carousel-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.story-viewport {
  position: relative;
  overflow: hidden;
}
.hero-carousel:not(.is-ready) .story-panel:not(:first-child) {display: none}
.is-ready .story-viewport {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  overscroll-behavior-x: contain;
}
.story-panel {
  position: relative;
  isolation: isolate;
  flex: 0 0 100%;
  min-width: 0;
  min-height: clamp(425px,36vw,530px);
  display: grid;
  align-items: center;
  overflow: hidden;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}
.story-panel::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: min(16vw,195px);
  height: 6px;
  z-index: 1;
  background: var(--hero-coral);
  clip-path: polygon(12px 0,100% 0,100% 100%,0 100%);
  pointer-events: none;
}
.story-media {
  position: absolute;
  z-index: -1;
  inset: 0 0 0 31%;
  margin: 0;
}
.story-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 57% 45%;
}
.story-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg,var(--hero-dark),rgba(29,22,27,.65) 21%,transparent 53%),
    linear-gradient(0deg,rgba(18,13,18,.73),transparent 26%);
}
.story-media figcaption {
  position: absolute;
  z-index: 1;
  right: max(23px,calc((100vw - 1240px) / 2));
  bottom: 14px;
  color: #f7ebe8;
  font-size: .63rem;
  letter-spacing: .11em;
  font-weight: 800;
  text-transform: uppercase;
}
.story-shell {padding-block: 46px}
.story-content {max-width: min(57%,680px)}
.story-title {
  margin-block: 17px 15px;
  font: 800 clamp(3.45rem,6.8vw,7rem)/.88 var(--display);
  letter-spacing: -.01em;
  text-transform: uppercase;
}
.story-welcome .story-title {
  font-size: clamp(5rem,9.25vw,9rem);
  line-height: .8;
  transform: skewX(-7deg);
  transform-origin: left bottom;
}
.story-title em {font-style: normal;color: var(--hero-coral)}
.story-intro {font-size: .98rem;color: #f3e9e6;max-width: 39ch}
.story-content .eyebrow i {background: var(--hero-coral)}
.story-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  gap: 12px;
  margin-top: 14px;
  color: var(--light);
  font-weight: 800;
  text-decoration: none;
  border-bottom: 1px solid var(--hero-coral);
}
.story-link:hover {color: #ffac9e}
.story-link::after {content: "";position: absolute;inset: 0}
.story-link:focus-visible {outline: 2px solid #ffb2a5;outline-offset: 4px}
.story-kids .story-media {
  background: #22191e url(assets/angolo-rosso.svg) 85% center/cover;
}
.story-kids .story-media img {
  position: absolute;
  right: max(23px,calc((100vw - 1240px) / 2));
  top: 50%;
  transform: translateY(-50%) rotate(-3deg);
  width: 58%;
  height: auto;
  max-height: 88%;
  object-fit: contain;
  filter: drop-shadow(0 12px 20px #171017);
}
.story-score {
  display: grid;
  align-items: center;
  justify-items: end;
  padding-right: max(8vw,35px);
  overflow: hidden;
  background:
    repeating-linear-gradient(0deg,transparent 0 34px,rgba(255,255,255,.075) 34px 35px),
    repeating-linear-gradient(90deg,transparent 0 34px,rgba(255,255,255,.075) 34px 35px),
    linear-gradient(144deg,#241919 0%,#70352f 46%,#bd493a 100%);
}
.story-riccione .story-score {
  background:
    repeating-linear-gradient(0deg,transparent 0 34px,rgba(255,255,255,.075) 34px 35px),
    repeating-linear-gradient(90deg,transparent 0 34px,rgba(255,255,255,.075) 34px 35px),
    linear-gradient(144deg,#231d24 0%,#394b71 53%,#27374e 100%);
}
.score-card {
  z-index: 1;
  position: relative;
  transform: rotate(-7deg);
  width: min(39vw,540px);
  padding: 19px 25px 24px;
  border: 1px solid rgba(255,240,231,.62);
  background: #1e171d;
  text-align: center;
  box-shadow: 11px 13px 0 rgba(24,17,22,.45);
}
.score-card small, .score-card span {
  display: block;
  font: 800 .82rem/1.2 var(--body);
  letter-spacing: .16em;
  text-transform: uppercase;
}
.score-card b {
  display: block;
  font: 800 clamp(7rem,17vw,14rem)/.83 var(--display);
  color: #ff715d;
  padding-bottom: 9px;
}
.story-riccione .score-card b {color: #b7cdf2}
.hero-deck {
  position: relative;
  border-top: 1px solid #624045;
  background: #241c21;
}
.hero-deck-inner {
  display: grid;
  grid-template-columns: minmax(0,1fr) auto;
  align-items: center;
  gap: 18px;
  padding-block: 15px;
}
.hero-deck .start-options {margin: 0;width: 100%}
.hero-deck .start-card {min-height: 66px}
.story-controls {display: flex;align-items: center;gap: 11px}
.story-arrow,.story-dots button {
  color: var(--light);
  background: transparent;
  border: 0;
  cursor: pointer;
}
.story-arrow {
  border: 1px solid #735f67;
  font: 700 1.2rem/1 system-ui,sans-serif;
  width: 44px;
  height: 44px;
}
.story-arrow:hover {background: #45343c}
.story-progress {text-align: center}
.story-count {
  display: block;
  margin-bottom: -3px;
  color: #e0ccd1;
  font-size: .68rem;
  letter-spacing: .12em;
  line-height: 1.1;
}
.story-count b {color: var(--light)}
.story-dots {display: flex}
.story-dots button {
  padding: 0;
  width: 28px;
  height: 27px;
  display: grid;
  place-items: center;
}
.story-dots button::after {
  content: "";
  width: 14px;
  height: 4px;
  background: #9a858d;
}
.story-dots button[aria-current]::after {
  height: 6px;
  background: var(--hero-coral);
}
.story-dots button:hover::after {background: #fff6ee}
.hero-deck :focus-visible {outline: 2px solid #ffb2a5;outline-offset: 3px}
@media(max-width: 860px) {
  .story-content {max-width: 62%}
  .story-score {padding-right: 5vw}
}
@media(max-width: 640px) {
  .story-panel {
    min-height: clamp(400px,106vw,505px);
    align-items: stretch;
  }
  .story-panel::before {height: 5px}
  .story-shell {display: grid;align-items: end;padding-block: 23px 20px}
  .story-content {max-width: 100%}
  .story-welcome .story-shell {align-items: stretch}
  .story-welcome .story-content {display: flex;flex-direction: column}
  .story-welcome .story-intro {margin-top: auto}
  .story-title {font-size: clamp(2.7rem,10.2vw,4.1rem);margin-block: 7px 8px}
  .story-welcome .story-title {font-size: clamp(3.75rem,17vw,6.8rem);margin-top: 13px}
  .story-content .eyebrow {font-size: .62rem}
  .story-intro {font-size: .84rem}
  .story-media {inset: 0 0 auto;height: 65%}
  .story-media::after {
    background: linear-gradient(0deg,var(--hero-dark),transparent 40%);
  }
  .story-welcome .story-media {inset: 110px 0 49px;height: auto}
  .story-welcome .story-media img {object-position: 67% center}
  .story-welcome .story-media::after {
    background:
      linear-gradient(180deg,var(--hero-dark),rgba(29,22,27,.07) 37%,transparent 51%),
      linear-gradient(0deg,var(--hero-dark),transparent 37%);
  }
  .story-media figcaption {right: 19px;bottom: 14px;font-size: .5rem}
  .story-kids .story-media {height: 62%}
  .story-kids .story-media img {width: 75%;right: 12.5%;top: 45%;max-height: 82%}
  .story-link {margin-top: 4px;font-size: .84rem}
  .story-score {height: 56%;padding: 5px 0 10px;justify-items: center}
  .score-card {width: 53%;padding: 12px 10px 15px}
  .score-card small,.score-card span {font-size: .65rem}
  .score-card b {font-size: clamp(5.15rem,24vw,7.8rem)}
  .hero-deck-inner {grid-template-columns: 1fr;gap: 11px;padding-block: 10px 14px}
  .story-controls {order: -1;justify-content: space-between}
  .hero-deck .start-card {min-height: 58px}
  .story-dots button {width: 32px}
}
