:root {
  --bg: #1a1a1c;
  --panel: rgba(0, 0, 0, 0.65);
  --panelSolid: #0f0f10;
  --text: rgba(255, 255, 255, 0.92);
  --muted: rgba(255, 255, 255, 0.68);
  --faint: rgba(255, 255, 255, 0.4);
  --line: rgba(255, 255, 255, 0.16);
  --accent: #e1062c;
  --accentLink: #b71b32;

  --radius-sm: 8px;
  --radius-md: 12px;

  --timeline-h: 96px;
  --gutter: clamp(28px, 4vw, 120px);
  --slide-padding-top: 48px;
  --suit-header-row-top: 16px;
  --suit-left-offset-top: 52px;
  --section-header-top: calc(var(--slide-padding-top) + var(--suit-header-row-top));

  /* Gerarchia tipografica (riferimento: G4C + slide intermedie) */
  --type-hero-size: clamp(56px, 6vw, 96px);
  --type-title-size: clamp(36px, 3.5vw, 44px);
  --type-title-panel-size: 18px;
  --type-subtitle-size: clamp(14px, 1.15vw, 17px);
  --type-body-size: 16px;
  --type-body-compact-size: 14px;
  --type-body-measure: 54ch;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  overflow: hidden;
}

.app {
  height: 100vh;
  width: 100vw;
  position: relative;
}

.viewport {
  height: 100vh;
  width: 100vw;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  overscroll-behavior: none;
  scrollbar-width: none;
}
.viewport::-webkit-scrollbar {
  display: none;
}

@media (prefers-reduced-motion: reduce) {
  .viewport {
    scroll-behavior: auto;
  }
}

.deck {
  height: 100vh;
  display: flex;
  width: max-content;
}

.slide {
  width: 100vw;
  height: 100vh;
  scroll-snap-align: start;
  position: relative;
  padding: var(--slide-padding-top) var(--gutter) calc(var(--timeline-h) + 24px);
}

.slide--section {
  background-size: cover;
  background-position: center;
}
.slide--section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  pointer-events: none;
}

.bgTexture {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(900px 600px at 35% 25%, rgba(255, 255, 255, 0.055), transparent 60%),
    radial-gradient(900px 600px at 75% 70%, rgba(255, 255, 255, 0.035), transparent 60%),
    radial-gradient(1200px 900px at 50% 50%, rgba(255, 255, 255, 0.02), transparent 70%);
  opacity: 0.9;
  mix-blend-mode: screen;
}

.srOnly {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.btn {
  appearance: none;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  border-radius: 999px;
  padding: 10px 14px;
  font-weight: 600;
  cursor: pointer;
}
.btn:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.5);
  outline-offset: 2px;
}

/* Tipografia condivisa */
.typeHero {
  margin: 0;
  font-size: var(--type-hero-size);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--text);
  text-wrap: balance;
}

.typeTitle {
  margin: 0;
  font-size: var(--type-title-size);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--text);
  text-wrap: balance;
}

.typeTitle--panel {
  font-size: var(--type-title-panel-size);
  letter-spacing: 0.01em;
  line-height: 1.2;
}

.typeSubtitle {
  margin: 0;
  font-size: var(--type-subtitle-size);
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.35;
  color: var(--muted);
  max-width: var(--type-body-measure);
  text-wrap: pretty;
  hyphens: auto;
  orphans: 2;
  widows: 2;
}

.typeBody {
  margin: 0;
  font-size: var(--type-body-size);
  font-weight: 400;
  line-height: 1.5;
  color: var(--muted);
  max-width: var(--type-body-measure);
  text-align: left;
  text-wrap: pretty;
  hyphens: auto;
  hyphenate-limit-chars: 6 3 2;
  orphans: 3;
  widows: 3;
}

.typeBody strong {
  color: var(--text);
  font-weight: 600;
}

.typeBody--compact {
  font-size: var(--type-body-compact-size);
  line-height: 1.5;
}

/* Back to intro button */
.backToIntro {
  position: absolute;
  top: var(--section-header-top);
  left: var(--gutter);
  z-index: 50;
  appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text);
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0;
  cursor: pointer;
  transition: color 160ms ease;
}
.backToIntro__icon {
  display: block;
  flex-shrink: 0;
  width: 14px;
  height: 14px;
  color: var(--text);
  transition: transform 160ms ease;
}
.backToIntro:hover .backToIntro__icon {
  transform: translateX(-2px);
}
.backToIntro:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.55);
  outline-offset: 2px;
}

.introCredits {
  position: absolute;
  top: var(--section-header-top);
  left: var(--gutter);
  z-index: 50;
  appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text);
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0;
  cursor: pointer;
  transition: color 160ms ease;
}
.introCredits__icon {
  display: block;
  flex-shrink: 0;
  width: 14px;
  height: 14px;
  color: var(--text);
  transition: transform 160ms ease;
}
.introCredits:hover .introCredits__icon {
  transform: translateX(2px);
}
.introCredits:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.55);
  outline-offset: 2px;
}

/* Intro */
.intro {
  display: grid;
  place-items: center;
  text-align: center;
}
.intro__cta {
  margin: 36px auto 0;
  appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: var(--accent);
  color: #fff;
  border-radius: 999px;
  padding: 14px 26px;
  font-family: inherit;
  font-size: var(--type-body-size);
  font-weight: 600;
  line-height: 1.6;
  letter-spacing: 0.01em;
  cursor: pointer;
  box-shadow: 0 14px 30px rgba(225, 6, 44, 0.32);
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}
.intro__cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 38px rgba(225, 6, 44, 0.42);
}
.intro__cta:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.7);
  outline-offset: 3px;
}
.intro__cta svg {
  display: block;
}
.intro__home {
  width: 100%;
  display: grid;
  place-items: center;
}
.intro.intro--credits {
  display: grid;
  grid-template-columns: 3fr 4fr 3fr;
  gap: 36px;
  align-items: start;
  height: 100%;
  place-items: start;
  text-align: left;
}
.intro__credits {
  display: none;
  grid-column: 1;
  width: 100%;
  max-width: 100%;
  padding-top: var(--suit-left-offset-top);
  padding-right: 8px;
  max-height: calc(100vh - var(--slide-padding-top) - var(--suit-left-offset-top) - var(--timeline-h) - 32px);
  overflow-y: auto;
  text-align: left;
  -webkit-overflow-scrolling: touch;
}
.intro--credits .intro__home {
  display: none;
}
.intro--credits .intro__credits {
  display: block;
}
.introCreditsPanel {
  width: 100%;
}
.introCreditsPanel .typeBody {
  max-width: 100%;
}
.introCreditsPanel__title {
  margin: 0 0 8px;
}
.introCreditsPanel__intro {
  margin: 16px 0 20px;
  color: var(--muted);
}
.introCreditsPanel__empty {
  margin: 0;
  color: var(--muted);
}
.introCreditsPanel__list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 16px;
}
.introCreditsPanel__itemText {
  margin: 0 0 6px;
  color: var(--muted);
}
.introCreditsPanel__link {
  color: var(--accentLink);
  font-size: var(--type-body-size);
  font-weight: 600;
  line-height: 1.45;
  text-decoration: none;
  text-wrap: pretty;
}
.introCreditsPanel__link:hover {
  text-decoration: underline;
}
.introCreditsPanel__link:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.45);
  outline-offset: 3px;
  border-radius: 4px;
}

.intro__wrap {
  max-width: 960px;
  padding: 24px;
}
.intro__logo {
  width: 286px;
  max-width: 55vw;
  margin: 0 auto 16px;
}

.intro__subtitle {
  margin: 18px auto 0;
  max-width: min(var(--type-body-measure), 92vw);
  text-align: center;
  font-size: clamp(16px, 1.2vw, 18px);
  font-weight: 400;
  line-height: 1.6;
  letter-spacing: 0.01em;
  color: var(--muted);
  text-wrap: pretty;
  hyphens: auto;
  orphans: 3;
  widows: 3;
}

/* Section (image left, text right) */
.section {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(420px, 1fr) minmax(420px, 1fr);
  gap: clamp(32px, 5vw, 96px);
  align-items: center;
  height: 100%;
}
.section__media {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
}
.section__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.section__body {
  max-width: min(680px, var(--type-body-measure));
}
.section__title {
  margin-bottom: 8px;
  max-width: var(--type-body-measure);
}
.section__subtitle {
  margin-bottom: 24px;
}
.section__text + .section__text {
  margin-top: 16px;
}
.section__body > .section__text:nth-child(odd) {
  max-width: calc(var(--type-body-measure) * 0.9);
}
.section__body > .section__text:nth-child(even) {
  max-width: var(--type-body-measure);
}

/* Suit view */
.suit {
  display: grid;
  grid-template-columns: 3fr 4fr 3fr;
  gap: 36px;
  height: 100%;
  align-items: stretch;
}

.suit__left {
  padding-top: var(--suit-left-offset-top);
}
.suit__years {
  margin-top: 6px;
}
.suit__intro {
  margin-top: 16px;
  max-width: 100%;
}
.suit__left .typeBody,
.suit__left .typeSubtitle {
  max-width: 100%;
}

.collapse {
  margin-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.collapseItem {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.collapseBtn {
  width: 100%;
  background: transparent;
  border: 0;
  color: var(--text);
  padding: 14px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  font-size: var(--type-body-size);
  font-weight: 600;
  letter-spacing: 0.01em;
}
.collapseBtn:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.4);
  outline-offset: 4px;
  border-radius: 6px;
}
.collapseIcon {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
  flex-shrink: 0;
  position: relative;
  transition: border-color 180ms ease;
}
.collapseIcon::before,
.collapseIcon::after {
  content: none;
}
.collapseItem.isActive .collapseIcon {
  border-color: rgba(225, 6, 44, 0.55);
}
.collapseItem.isActive .collapseIcon::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 10px;
  height: 10px;
  background: var(--accent);
  border-radius: 999px;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 8px rgba(225, 6, 44, 0.6);
}

.collapseBody {
  display: none;
}

.collapseItem.isActive {
  border-radius: 10px;
  background: rgba(225, 6, 44, 0.08);
  box-shadow:
    0 0 0 1px rgba(225, 6, 44, 0.55),
    0 0 18px rgba(225, 6, 44, 0.28);
}

.collapseItem.isActive .collapseBtn span:first-child {
  text-shadow: none;
}
.collapseBody__inner {
  padding: 0 0 16px;
  color: var(--muted);
  line-height: 1.5;
  font-size: 13px;
  max-height: 180px;
  overflow-y: auto;
}
.collapseBulletList {
  margin: 0;
  padding-left: 18px;
}
.collapseBulletList li {
  margin: 0 0 8px;
}
.bulletList {
  margin: 0;
  padding-left: 18px;
}
.bulletList li {
  margin: 0 0 10px;
  text-wrap: pretty;
  hyphens: auto;
  orphans: 2;
  widows: 2;
}
.infoHero {
  margin: 0 0 14px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
}
.infoHero img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  display: block;
}
.bulletList__label {
  color: rgba(255, 255, 255, 0.88);
  font-weight: 800;
}
.bulletList__value {
  margin-top: 4px;
  color: var(--muted);
}
.bulletList__names {
  margin: 0;
  padding-left: 16px;
}
.bulletList__names li {
  margin: 0 0 6px;
}
.astroLink {
  color: var(--accentLink);
  font-weight: 600;
  text-decoration: none;
}
.astroLink:hover {
  text-decoration: underline;
}
.missionLink {
  color: var(--accentLink);
  font-weight: 600;
  text-decoration: none;
  word-break: break-word;
}
.missionLink:hover {
  text-decoration: underline;
}

.thumbGrid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
.thumb {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
  position: relative;
  padding: 0;
  display: block;
}
.thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 60%, rgba(0, 0, 0, 0.25));
  opacity: 0;
  transition: opacity 120ms ease;
}
.thumb:hover::after {
  opacity: 1;
}
.thumb--video::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 46px;
  height: 46px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.55);
}
.thumb--video::after {
  opacity: 1;
}
.thumb--video .playIcon {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-40%, -50%);
  width: 0;
  height: 0;
  border-top: 9px solid transparent;
  border-bottom: 9px solid transparent;
  border-left: 14px solid rgba(255, 255, 255, 0.92);
  z-index: 2;
}
.thumb--videoNoThumb {
  background: rgba(255, 255, 255, 0.06);
}
.thumb:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.55);
  outline-offset: 2px;
}

.imgPreview {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  place-items: center;
  padding: 32px;
  background: rgba(0, 0, 0, 0.78);
  pointer-events: none;
}
.imgPreview.isOpen {
  display: grid;
}
.imgPreview__img {
  max-width: min(980px, 92vw);
  max-height: 86vh;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
  background: #000;
}

/* Lightbox gallery (images) */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: none;
  place-items: center;
  padding: 28px;
  background: rgba(0, 0, 0, 0.82);
}
.lightbox.isOpen {
  display: grid;
}
.lightbox__dialog {
  position: relative;
  width: min(1040px, 94vw);
  height: min(760px, 86vh);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 72px 88px;
  overflow: hidden;
}
.lightbox__stage {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
}
.lightbox__frame {
  position: relative;
  display: inline-block;
  line-height: 0;
  max-width: min(864px, calc(94vw - 176px));
  max-height: min(616px, calc(86vh - 144px));
}
.lightbox__img {
  display: block;
  width: auto;
  height: auto;
  max-width: min(864px, calc(94vw - 176px));
  max-height: min(616px, calc(86vh - 144px));
  object-fit: contain;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
  background: #000;
  opacity: 0;
  transition: opacity 160ms ease;
}
.lightbox__img.isReady {
  opacity: 1;
}
.lightbox__credit {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 28px 40px;
  margin: 0 auto;
  text-align: center;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.78);
  opacity: 0;
  visibility: hidden;
  transition: opacity 180ms ease, visibility 180ms ease;
  transition-delay: 0ms;
  pointer-events: none;
}
.lightbox__frame:hover .lightbox__credit.isAvailable {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition-delay: 200ms;
}
.lightbox__creditTitle,
.lightbox__creditPlace,
.lightbox__creditDesc,
.lightbox__creditLine {
  margin: 0 auto;
  text-align: center;
}
.lightbox__creditTitle {
  max-width: 52ch;
  color: var(--text);
}
.lightbox__creditPlace {
  font-size: var(--type-body-size);
  font-weight: 600;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.92);
}
.lightbox__creditDesc {
  max-width: min(54ch, 90%);
  color: var(--muted);
  text-wrap: pretty;
}
.lightbox__creditLine {
  color: var(--muted);
}
.lightbox__creditLink {
  color: var(--accentLink);
  font-weight: 600;
  text-decoration: none;
}
.lightbox__creditLink:hover {
  text-decoration: underline;
}
.lightbox__creditLink:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.45);
  outline-offset: 3px;
  border-radius: 4px;
}
.lightbox__close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 64px;
  height: 64px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.92);
  font-size: 36px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}
.lightbox__close:hover {
  background: rgba(255, 255, 255, 0.14);
}
.lightbox__close:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.55);
  outline-offset: 2px;
}
.lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 64px;
  height: 64px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(0, 0, 0, 0.55);
  color: rgba(255, 255, 255, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  line-height: 1;
  cursor: pointer;
}
.lightbox__nav:hover {
  background: rgba(0, 0, 0, 0.7);
}
.lightbox__nav:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.55);
  outline-offset: 2px;
}
.lightbox__nav:disabled {
  opacity: 0.25;
  cursor: default;
}
.lightbox__nav--prev {
  left: 10px;
}
.lightbox__nav--next {
  right: 10px;
}

.lightbox__svg {
  display: block;
}

/* Video lightbox */
.vlightbox {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: none;
  place-items: center;
  padding: 28px;
  background: rgba(0, 0, 0, 0.82);
}
.vlightbox.isOpen {
  display: grid;
}
.vlightbox__dialog {
  position: relative;
  width: min(1200px, 94vw);
  height: min(760px, 86vh);
  display: grid;
  place-items: center;
  padding: 72px 88px;
}
.vlightbox__stage {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
}
.vlightbox__fallback {
  width: min(720px, 92%);
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.45);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
  padding: 18px 18px 16px;
  display: grid;
  gap: 10px;
}
.vlightbox__fallbackTitle {
  font-weight: 800;
  color: rgba(255, 255, 255, 0.92);
}
.vlightbox__fallbackText {
  color: rgba(255, 255, 255, 0.68);
  line-height: 1.5;
}
.vlightbox__fallbackBtn {
  justify-self: start;
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.92);
  border-radius: 999px;
  padding: 10px 14px;
  font-weight: 800;
  cursor: pointer;
}
.vlightbox__fallbackBtn:hover {
  background: rgba(255, 255, 255, 0.12);
}
.vlightbox__frame,
.vlightbox__video {
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
  background: #000;
}
.vlightbox__close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 64px;
  height: 64px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.92);
  font-size: 36px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}
.vlightbox__close:hover {
  background: rgba(255, 255, 255, 0.14);
}
.vlightbox__close:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.55);
  outline-offset: 2px;
}
.vlightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 64px;
  height: 64px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(0, 0, 0, 0.55);
  color: rgba(255, 255, 255, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  cursor: pointer;
}
.vlightbox__nav:hover {
  background: rgba(0, 0, 0, 0.7);
}
.vlightbox__nav:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.55);
  outline-offset: 2px;
}
.vlightbox__nav:disabled {
  opacity: 0.25;
  cursor: default;
}
.vlightbox__nav--prev {
  left: 10px;
}
.vlightbox__nav--next {
  right: 10px;
}
.collapseItem[aria-expanded="true"] .collapseBody {
  max-height: 220px;
}

.suit__center {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  background:
    radial-gradient(900px 600px at 50% 40%, rgba(255, 255, 255, 0.05), transparent 60%),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.suitToggle3d {
  position: absolute;
  top: var(--suit-header-row-top);
  right: 14px;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(0, 0, 0, 0.42);
  color: rgba(255, 255, 255, 0.92);
  font-weight: 800;
  letter-spacing: 0.02em;
  cursor: pointer;
}
.suit__center:has(.viewSwitch) .suitToggle3d {
  right: 108px;
}
.suitToggle3d:hover {
  background: rgba(0, 0, 0, 0.55);
}
.suitToggle3d:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.55);
  outline-offset: 2px;
}
.suitToggle3d__dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 0 3px rgba(225, 6, 44, 0.2);
}

.viewSwitch {
  position: absolute;
  top: var(--suit-header-row-top);
  right: 14px;
  z-index: 4;
  appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
}
.viewSwitch__label {
  transition: color 180ms ease;
}
.viewSwitch:not(.isOn) .viewSwitch__label:first-child,
.viewSwitch.isOn .viewSwitch__label:last-child {
  color: rgba(255, 255, 255, 0.92);
}
.viewSwitch__track {
  position: relative;
  width: 36px;
  height: 20px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.24);
  transition: background 220ms ease;
  flex-shrink: 0;
}
.viewSwitch.isOn .viewSwitch__track {
  background: rgba(225, 6, 44, 0.34);
}
.viewSwitch__thumb {
  position: absolute;
  top: 50%;
  left: 2px;
  width: 16px;
  height: 16px;
  border-radius: 999px;
  background: #ffffff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.28);
  transform: translateY(-50%);
  transition: transform 220ms ease, background 220ms ease, box-shadow 220ms ease;
}
.viewSwitch.isOn .viewSwitch__thumb {
  transform: translate(16px, -50%);
  background: var(--accent);
  box-shadow: 0 1px 6px rgba(225, 6, 44, 0.45);
}
.viewSwitch:hover .viewSwitch__track {
  background: rgba(255, 255, 255, 0.3);
}
.viewSwitch.isOn:hover .viewSwitch__track {
  background: rgba(225, 6, 44, 0.42);
}
.viewSwitch:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.55);
  outline-offset: 4px;
  border-radius: 999px;
}
.suitStage {
  position: absolute;
  inset: 0;
}
.suitStage.isHidden {
  opacity: 0;
  pointer-events: none;
}
.suitStage3d {
  position: absolute;
  inset: 0;
  z-index: 2;
  opacity: 0;
  pointer-events: none;
  transition: opacity 200ms ease;
}
.suitStage3d.isVisible {
  opacity: 1;
  pointer-events: auto;
}
.suitStage3d model-viewer {
  width: 100%;
  height: 100%;
  background: transparent;
}
.suitStage3d__fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  text-align: center;
  color: rgba(255, 255, 255, 0.72);
}
.suitImg {
  position: absolute;
  left: 50%;
  top: 54%;
  transform: translate(-50%, -50%) scale(var(--suit-scale, 1));
  width: min(360px, 30vw);
  max-height: 75%;
  opacity: 0.98;
  user-select: none;
  pointer-events: none;
  filter: drop-shadow(0 28px 36px rgba(0, 0, 0, 0.35));
}
.pin {
  position: absolute;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.85);
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.25);
  display: grid;
  place-items: center;
  font-weight: 800;
  cursor: pointer;
  transform: translate(-50%, -50%);
  transition: transform 120ms ease, box-shadow 120ms ease;
}
.pin:hover {
  transform: translate(-50%, -50%) scale(1.06);
}
.pin:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.5);
  outline-offset: 2px;
}
.pin.isActive {
  transform: translate(-50%, -50%) scale(1.18);
  border-color: rgba(255, 255, 255, 0.7);
  box-shadow:
    0 0 0 4px rgba(225, 6, 44, 0.22),
    0 0 18px rgba(225, 6, 44, 0.55),
    0 18px 28px rgba(0, 0, 0, 0.35);
}

/* Side panel */
.sidePanel {
  position: relative;
  border-radius: var(--radius-md);
  background: var(--panel);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
  overflow: hidden;
  display: grid;
  grid-template-rows: auto auto 1fr;
  min-height: 0;
  transition: transform 200ms ease, opacity 200ms ease;
}
.sidePanel.isClosed {
  transform: translateX(18px);
  opacity: 0;
  pointer-events: none;
}
.sidePanel__header {
  padding: 16px 16px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.sidePanel__title {
  margin: 0;
  font-size: var(--type-body-size);
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.4;
  color: var(--text);
}
.iconBtn {
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  width: 34px;
  height: 34px;
  border-radius: 10px;
  cursor: pointer;
}
.iconBtn:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.5);
  outline-offset: 2px;
}
.tabs {
  display: flex;
  gap: 8px;
  padding: 10px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.tabBtn {
  flex: 1;
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  border-radius: 999px;
  padding: 9px 10px;
  font-weight: 700;
  cursor: pointer;
}
.tabBtn[aria-selected="true"] {
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.08);
}
.tabBtn:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.5);
  outline-offset: 2px;
}
.sidePanel__body {
  overflow-y: auto;
  padding: 14px 16px 18px;
  min-height: 0;
  font-size: var(--type-body-size);
  line-height: 1.5;
  color: var(--muted);
}
.sidePanel__body .typeBody,
.sidePanel__body .bulletList {
  max-width: none;
}
.sidePanel__body .bulletList__label {
  font-weight: 600;
  color: var(--text);
}
.sidePanel__body .bulletList__value {
  font-weight: 400;
  color: var(--muted);
}

.kv {
  display: grid;
  gap: 12px;
}
.kvRow {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 12px;
  align-items: start;
}
.kvLabel {
  color: var(--faint);
  font-weight: 700;
}
.kvValue {
  color: var(--muted);
  line-height: 1.45;
}
.kvRow {
  padding: 2px 0;
}
.mediaList {
  display: grid;
  gap: 14px;
}
.mediaFigure {
  margin: 0;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
}
.mediaFigure img {
  width: 100%;
  display: block;
  height: 220px;
  object-fit: cover;
}
.mediaCaption {
  padding: 10px 12px 12px;
  color: var(--muted);
  font-size: 14px;
}
.videoCard {
  display: grid;
  gap: 8px;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
}
.videoCard a {
  color: var(--text);
  font-weight: 700;
  text-decoration: none;
}
.videoCard a:hover {
  text-decoration: underline;
}
.videoMeta {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.4;
}

/* Timeline */
.timeline {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 20px;
  height: var(--timeline-h);
  padding: 0 var(--gutter);
  display: grid;
  align-items: end;
  pointer-events: none;
  transition: opacity 220ms ease;
}
.timeline.isHidden {
  opacity: 0;
  pointer-events: none;
}
.timeline.isHidden .dot {
  pointer-events: none;
}
.timeline__line {
  position: absolute;
  left: var(--gutter);
  right: var(--gutter);
  bottom: 45px;
  height: 2px;
  background: rgba(255, 255, 255, 0.12);
}
.timeline__progress {
  position: absolute;
  left: var(--gutter);
  bottom: 45px;
  height: 2px;
  width: 0;
  background: rgba(255, 255, 255, 0.92);
  transform-origin: 0 50%;
  transition: width 220ms ease;
}
.timeline__items {
  position: relative;
  height: 100%;
  pointer-events: none;
}
.dot {
  position: absolute;
  bottom: 0;
  transform: translateX(-50%);
  pointer-events: auto;
  cursor: pointer;
  display: block;
  border: 0;
  background: transparent;
  color: var(--muted);
  height: var(--timeline-h);
  padding: 0;
}
.dot:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.5);
  outline-offset: 6px;
  border-radius: 10px;
}
.dot__circle {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  /* Centra il cerchio sulla linea (che sta a bottom: 46px) */
  bottom: calc(46px - 7px);
  width: 14px;
  height: 14px;
  border-radius: 999px;
  border: 2px solid #3b3b3f;
  background: #2a2a2e; /* secondari: pieno (no trasparenza) */
}
.dot[data-kind="main"] .dot__circle {
  width: 18px;
  height: 18px;
  border-width: 2px;
  bottom: calc(46px - 9px);
  border-color: #56565c;
  background: #3f3f45; /* principali: pieno grigio (no trasparenza) */
}
.dot.isVisited .dot__circle {
  background: #ffffff;
  border-color: #ffffff;
  box-shadow: none;
}
.dot.isActive .dot__circle,
.dot.isActive.isVisited .dot__circle {
  background: #ffffff;
  border-color: #ffffff;
  box-shadow:
    0 0 0 4px rgba(225, 6, 44, 0.28),
    0 0 14px rgba(225, 6, 44, 0.5);
}
.dot__label {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 8px; /* sotto la linea */
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
  color: rgba(255, 255, 255, 0.42);
}
.dot.isActive .dot__label {
  color: rgba(255, 255, 255, 0.92);
}
.dot[data-kind="minor"] .dot__label {
  display: none;
}

@media (max-width: 1180px) {
  .section {
    grid-template-columns: 1fr;
    align-content: start;
    padding-top: 40px;
  }
  .suit {
    grid-template-columns: 3fr 4fr 3fr;
    gap: 24px;
  }
}
