/* Il selettore ha una sola fotografia per opera. L’apertura ne svela il campo. */
.film-panel .panel-plane { --frame-position: var(--frame-spine); }
.film-panel.is-active .panel-plane { --frame-position: var(--frame-open); }
.film-panel:not(.is-active) .panel-shade {
  background: linear-gradient(to top, rgb(8 15 14 / .88), rgb(9 16 15 / .45) 23%, transparent 63%);
  opacity: 1;
}
.film-panel:not(.is-active):hover .panel-shade { opacity: .88; }
.panel-spine > span { display: none; }
.panel-spine strong {
  color: #fff9ee;
  text-shadow: 0 1px 2px #121811, 0 0 6px rgb(0 0 0 / .82);
  padding-block: 2px;
}
.panel-spine { bottom: 20px; }
.film-panel:not(.is-active) { border-bottom-color: var(--panel-accent); }
.panel-caption { color: #fff9ee; }
.panel-number { font-variant-numeric: tabular-nums; }

.film-panel.panel-text { background: var(--type-paper); }
.film-panel.panel-text .panel-shade { display: none; }
.panel-text .panel-spine strong {
  color: var(--type-ink);
  background: var(--type-paper);
  text-shadow: none;
  padding: 7px 3px;
}
.panel-text .panel-number { background: var(--type-ink); color: var(--type-paper); }
.type-poster {
  position: absolute;
  inset: 0;
  display: block;
  overflow: hidden;
  container-type: size;
  isolation: isolate;
  text-align: left;
  background: var(--type-paper);
  color: var(--type-ink);
}
.type-letter {
  position: absolute;
  left: .015em;
  top: -.14em;
  font: italic 400 clamp(110px, 84cqh, 530px)/.92 var(--serif);
  letter-spacing: -.105em;
  color: var(--type-mark);
  pointer-events: none;
}
.type-poster::after, .type-poster::before { content: ""; position: absolute; pointer-events: none; }
.type-poster[data-cut="arco"]::before {
  left: 15%; top: -59%; width: 97%; height: 156%;
  border: 2px solid var(--type-mark); border-radius: 50%;
}
.type-poster[data-cut="arco"] .type-letter { left: 12%; top: -.22em; }
.type-poster[data-cut="taglio"]::before {
  right: -24%; top: -52%; height: 150%; width: 56%;
  background: var(--type-mark); transform: rotate(-23deg);
}
.type-poster[data-cut="taglio"] .type-letter {
  top: -.13em; left: -.035em; font-family: var(--sans); font-style: normal; font-weight: 600;
}
.type-poster[data-cut="folio"]::before {
  height: 57%; width: 94%; right: -18%; top: -14%;
  border: 1px solid var(--type-ink); transform: rotate(-14deg); opacity: .6;
}
.type-poster[data-cut="folio"] .type-letter { left: auto; right: 14%; top: -.13em; }
.type-poster[data-cut="margine"]::before {
  top: 0; bottom: 0; right: 14%; width: 1px; background: var(--type-ink); opacity: .6;
}
.type-poster[data-cut="margine"] .type-letter { left: 15%; font-style: normal; }
.type-edition {
  position: absolute; top: 20px; right: 20px; padding: .28em .4em;
  background: var(--type-paper); font: 11px/1 var(--mono); letter-spacing: .07em;
}
.type-title {
  position: absolute; bottom: 7%; left: 6%; right: 7%; width: fit-content; max-width: 87%;
  font: 500 clamp(25px, min(8.2cqw, 16cqh), 83px)/.99 var(--sans);
  letter-spacing: -.06em; text-wrap: balance; overflow-wrap: anywhere;
}
.type-title i { font-family: var(--serif); font-weight: 400; }
.type-title::before {
  display: block; width: 38px; height: 2px; margin-bottom: .32em;
  background: var(--type-ink); content: "";
}
.long-title .type-title { font-size: clamp(23px, min(6.6cqw, 12cqh), 60px); }
.film-panel:not(.is-active) .type-edition, .film-panel:not(.is-active) .type-title { visibility: hidden; }
.film-panel:not(.is-active) .type-letter { top: .1em; left: 9%; right: auto; font-size: 55cqh; }
.film-panel:not(.is-active) .type-poster[data-cut="taglio"]::before { right: -70%; width: 85%; }

@media (max-width: 700px) {
  .front-deck { height: clamp(214px, 58vw, 330px); }
  .film-panel.is-active { flex-basis: calc(100vw - 78px); }
  .film-panel.is-active .panel-plane { --frame-position: var(--frame-mobile); }
  .film-panel[data-work="tim-wifi-go"] .panel-plane { background-size: cover; }
  .film-panel[data-work="tim-wifi-go"] .panel-plane > img { object-fit: cover; }
  .panel-spine { bottom: 9px; }
  .panel-spine strong {
    font-size: 15px; max-height: calc(clamp(214px, 58vw, 330px) - 52px);
    white-space: nowrap; text-overflow: ellipsis;
  }
  .type-edition { top: 12px; right: 13px; font-size: 9px; }
  .type-title { bottom: 8%; left: 6%; }
}
@media (forced-colors: active) {
  .type-poster, .panel-spine strong, .panel-number { forced-color-adjust: auto; }
}
