html.intro-active, html.intro-pending { overflow: hidden; }
dialog.ingresso {
  --gate-ink: #191a18;
  --gate-steel: #898b81;
  --gate-orange: #ff8a2b;
  position: fixed;
  inset: 0;
  width: 100%;
  max-width: none;
  height: 100%;
  height: 100dvh;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  overflow: auto;
  color: #f8f7f1;
  background: var(--gate-ink);
  overscroll-behavior: contain;
}
.ingresso::backdrop { background: #191a18; }
.ingresso [hidden] { display: none !important; }
.ingresso button:focus-visible { outline: 3px solid #fff; outline-offset: 4px; }
.ingresso-gate {
  isolation: isolate;
  position: relative;
  min-height: 100%;
  overflow: hidden;
  display: grid;
  grid-template-rows: auto 1fr;
}
.ingresso-photo, .ingresso-wash {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}
.ingresso-photo {
  left: 36%;
  background: #292b27 url('./assets/passaggio.webp') center 49% / cover no-repeat;
  filter: saturate(.74) contrast(1.12);
}
.ingresso-wash {
  background: linear-gradient(90deg, #181a18 0%, #181a18 30%, #181a18ec 39%, #181a18b5 49%, #191a1820 68%, transparent 88%),
    linear-gradient(0deg, #15161272 0%, transparent 28%, transparent 80%, #15161243 100%);
}
.ingresso-header, .ingresso-main {
  width: 100%;
  padding-inline: clamp(24px, 6.4vw, 112px);
}
.ingresso-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding-block: max(24px, env(safe-area-inset-top)) 16px;
}
.ingresso-brand { width: clamp(150px, 12.1vw, 208px); height: auto; }
.ingresso-skip, .ingresso-tools button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 41px;
  padding: 0 15px;
  border: 1px solid #92948a;
  background: #191b18e8;
  color: #f7f7f0;
  border-radius: 2px;
  font-size: .87rem;
  font-weight: 600;
}
.ingresso .skip-chevron { display: inline-block; width: .48em; height: .48em; border: solid var(--gate-orange); border-width: 2px 2px 0 0; transform: rotate(45deg); margin-inline: .15em; }
.ingresso-skip:hover, .ingresso-tools button:hover { border-color: var(--gate-orange); background: #272a25; }
.ingresso-main {
  align-self: center;
  padding-top: 44px;
  padding-bottom: clamp(98px, 14vh, 160px);
}
.ingresso-label {
  display: flex;
  align-items: center;
  gap: 11px;
  font-family: 'Geist Mono', ui-monospace, monospace;
  text-transform: uppercase;
  letter-spacing: .11em;
  color: #efeee8;
  font-weight: 500;
  font-size: clamp(.67rem, .82vw, .85rem);
  line-height: 1.4;
}
.ingresso-label>span { height: 3px; width: 28px; background: var(--gate-orange); }
.ingresso-label b { color: var(--gate-orange); font-weight: 600; }
.ingresso h2 {
  margin: clamp(20px, 2.6vw, 40px) 0 clamp(31px, 3.6vw, 58px);
  font-size: clamp(4rem, 7.8vw, 9.3rem);
  letter-spacing: -.048em;
  font-weight: 810;
  line-height: .86;
}
.ingresso h2 em { font-style: normal; color: var(--gate-orange); }
.ingresso-switchboard {
  position: relative;
  display: inline-grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  padding: 13px 14px;
  border-inline: 3px solid #66695f;
  background:
    radial-gradient(circle, #aeb1a5 0 1px, #3d4139 1.5px 3px, transparent 3.5px) left -3px top -3px / 9px 9px no-repeat,
    radial-gradient(circle, #aeb1a5 0 1px, #3d4139 1.5px 3px, transparent 3.5px) right -3px bottom -3px / 9px 9px no-repeat,
    linear-gradient(#85887d, #4b4e46 2px, #252823 3px, transparent 4px) top / 100% 4px no-repeat,
    linear-gradient(0deg, #85887d, #4b4e46 2px, #252823 3px, transparent 4px) bottom / 100% 4px no-repeat,
    #1d201cf0;
}
.ingresso-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 53px;
  padding: 0 clamp(16px, 1.55vw, 28px);
  border: 1px solid transparent;
  border-radius: 1px;
  font-size: clamp(.89rem, 1.02vw, 1.03rem);
  line-height: 1.2;
  font-weight: 710;
  white-space: nowrap;
}
.ingresso-action.sonora { background: var(--gate-orange); color: #191a16; }
.ingresso-action.sonora:hover { background: #ffa24f; }
.ingresso-action.silenziosa { border-color: #85897c; background: #292c26; color: #f9f9f1; }
.ingresso-action.silenziosa:hover { background: #373b33; border-color: #d4d6ca; }
.speaker-icon { position: relative; display: block; width: 20px; height: 17px; flex: none; }
.speaker-icon i {
  position: absolute;
  inset: 1px 9px 1px 0;
  background: currentColor;
  clip-path: polygon(0 35%, 37% 35%, 100% 0, 100% 100%, 37% 65%, 0 65%);
}
.speaker-icon b::before, .speaker-icon b::after { content: ''; position: absolute; }
.speaker-icon:not(.speaker-off) b::before, .speaker-icon:not(.speaker-off) b::after {
  border: 1.6px solid transparent;
  border-right-color: currentColor;
  border-radius: 50%;
}
.speaker-icon:not(.speaker-off) b::before { inset: 3px 4px 3px 5px; }
.speaker-icon:not(.speaker-off) b::after { inset: 0 0 0 4px; }
.speaker-off b::before, .speaker-off b::after {
  width: 8px; height: 1.5px; right: -1px; top: 8px; background: currentColor; transform: rotate(48deg);
}
.speaker-off b::after { transform: rotate(-48deg); }
.ingresso-sill {
  position: absolute;
  pointer-events: none;
  right: 0;
  bottom: max(22px, env(safe-area-inset-bottom));
  left: 0;
  height: 5px;
  border-top: 1px solid #a5a69b91;
  border-bottom: 2px solid #2f342de6;
  background: #6b6d6294;
}
.ingresso-sill i {
  position: absolute; width: 21px; height: 10px; top: -4px;
  border: 1px solid #909487; border-radius: 2px; background: #505449;
}
.ingresso-sill i:first-child { left: 6.4%; }
.ingresso-sill i:last-child { right: 6.4%; }
.ingresso-player {
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  background: #090a09;
}
.ingresso-tools {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  flex: none;
  padding: max(8px, env(safe-area-inset-top)) clamp(10px, 2vw, 32px) 8px;
  color: #d7d9d0;
  background: #151714;
  border-bottom: 1px solid #30332d;
}
.ingresso-tools>span {
  font-family: 'Geist Mono', ui-monospace, monospace;
  text-transform: uppercase;
  font-size: .72rem;
  letter-spacing: .08em;
}
.ingresso-tools>div { margin-left: auto; display: flex; gap: 8px; }
.ingresso-tools button { min-height: 37px; padding: 0 11px; }
.ingresso video#film-video {
  flex: 1;
  width: 100%;
  min-width: 0;
  height: 0;
  min-height: 0;
  max-height: none;
  max-width: none;
  object-fit: contain;
  background: #090a09;
}
.ingresso [data-intro-status]:empty { display: none; }
.ingresso [data-intro-status] {
  position: absolute;
  top: 62px;
  left: 50%;
  transform: translateX(-50%);
  width: max-content;
  max-width: calc(100% - 32px);
  padding: 10px 16px;
  border: 1px solid #676a60;
  background: #191c18f2;
  line-height: 1.4;
  font-size: .94rem;
}
@media (min-width: 1650px) {
  .ingresso-photo { background-position: 48% 46%; }
}
@media (max-width: 760px) {
  .ingresso-photo { left: 13%; background-position: center 46%; }
  .ingresso-wash {
    background: linear-gradient(90deg, #171a17eb, #171a17ab 37%, transparent 88%),
      linear-gradient(0deg, #151715e8, #151715ae 35%, #15171518 77%, #151715a1);
  }
  .ingresso-main { align-self: end; padding-bottom: clamp(70px, 12svh, 110px); }
  .ingresso h2 { font-size: clamp(4.3rem, 12.7vw, 6.1rem); }
}
@media (max-width: 500px) {
  .ingresso-header, .ingresso-main { padding-inline: 22px; }
  .ingresso-header { align-items: center; padding-top: max(18px, env(safe-area-inset-top)); }
  .ingresso-brand { width: 139px; }
  .ingresso-skip { min-height: 39px; padding-inline: 9px; font-size: .78rem; gap: 5px; }
  .ingresso-photo { left: 0; background-position: 52% 28%; }
  .ingresso-wash { background: linear-gradient(0deg, #161916f7 1%, #161916e5 33%, #161916a8 59%, #14171340 83%, #10130e9c); }
  .ingresso h2 { font-size: clamp(4.15rem, 15.1vw, 5.2rem); margin: 20px 0 28px; }
  .ingresso-switchboard { grid-template-columns: 1fr; width: min(100%, 345px); gap: 7px; padding: 10px 11px; }
  .ingresso-action { min-height: 46px; }
  .ingresso-tools>span { font-size: .62rem; }
  .ingresso-tools button { font-size: .75rem; min-height: 38px; padding-inline: 8px; gap: 4px; }
  .ingresso-tools>div { gap: 5px; }
}
@media (max-height: 540px) and (min-width: 501px) {
  .ingresso-header { padding-block: 13px 4px; }
  .ingresso-brand { width: 130px; }
  .ingresso-main { padding-top: 14px; padding-bottom: 31px; }
  .ingresso h2 { margin: 13px 0 20px; font-size: clamp(3rem, 13vh, 5rem); }
  .ingresso-switchboard { padding-block: 8px; }
  .ingresso-action { min-height: 40px; }
  .ingresso-sill { bottom: 7px; }
}

.ingresso.is-leaving, .ingresso.is-leaving::backdrop {
  opacity: 0;
  transition: opacity 320ms ease-out;
}
@media (prefers-reduced-motion: reduce) {
  .ingresso.is-leaving, .ingresso.is-leaving::backdrop { transition: none; }
}
