/* Ingresso SNKS Roma: due composizioni intere, senza ritaglio. */
.site-loader {
  background: transparent;
  color: #211b19;
  isolation: isolate;
}
.site-loader::after,
.loader-panel::after { display: none; }
.loader-panel {
  overflow: hidden;
  background: #f4eddf;
  border: 0;
  box-shadow: none;
  transition: transform 1.15s cubic-bezier(.77,0,.18,1) .18s;
}
.loader-panel::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 100vw;
  border: 0;
  box-shadow: none;
  background: url("assets/ingresso-desktop.webp") center / contain no-repeat;
}
.loader-panel-right::before { left: -100%; }
/* The controls share the exact contained artwork rectangle, including its letterboxing. */
.entry-ui {
  position: absolute;
  inset: auto;
  top: 50%;
  left: 50%;
  width: min(100vw, 177.6833vh);
  height: min(100vh, 56.2799vw);
  transform: translate(-50%, -50%);
  z-index: 3;
  pointer-events: none;
}
.entry-logo {
  position: absolute;
  top: 12%;
  left: 50%;
  width: clamp(82px, 12%, 154px);
  aspect-ratio: 1298 / 960;
  perspective: 600px;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  pointer-events: auto;
  cursor: pointer;
  transform: translateX(-50%);
  transition: opacity .25s ease, translate .4s ease;
}
.entry-action {
  position: absolute;
  top: 43%;
  left: 50%;
  width: min(420px, 36vw);
  transform: translateX(-50%);
  text-align: center;
}
.entry-sticker {
  position: relative;
  display: block;
  width: 100%;
  height: clamp(72px, 7.8vw, 105px);
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  color: #fff9ed;
  cursor: pointer;
  pointer-events: auto;
  -webkit-tap-highlight-color: transparent;
  filter: drop-shadow(0 7px 6px #5d211a2b);
  transition: filter .2s ease, scale .2s ease;
}
.entry-sticker:hover { scale: 1.025; filter: drop-shadow(0 10px 8px #5d211a38); }
.entry-sticker:active { scale: .985; }
.entry-sticker:focus { outline: none; }
.entry-sticker:focus-visible {
  filter: drop-shadow(0 0 2px #fff9ed) drop-shadow(0 0 6px #b80b10);
}
.sticker-half {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background:
    repeating-linear-gradient(165deg, transparent 0 14px, #fff5 15px, transparent 16px 27px),
    linear-gradient(120deg, #c91617, #c4090b 55%, #d8261f);
  transition: transform .38s ease, opacity .35s ease;
}
.sticker-half span {
  font-family: var(--display), Impact, sans-serif;
  font-size: clamp(30px, 3.4vw, 48px);
  line-height: 1;
  letter-spacing: .035em;
  white-space: nowrap;
  text-shadow: 0 1px 0 #76201f38;
}
.sticker-half-left {
  clip-path: polygon(1% 7%, 5% 1%, 12% 3%, 25% 0, 38% 2%, 50% 0, 49.6% 8%, 50.3% 17%, 49.7% 26%, 50.3% 36%, 49.7% 47%, 50.2% 57%, 49.7% 67%, 50.2% 77%, 49.7% 87%, 50% 100%, 35% 98%, 21% 100%, 8% 97%, 1% 99%, 0 84%, 1% 69%, 0 48%, 1% 33%, 0 19%);
}
.sticker-half-right {
  clip-path: polygon(50% 0, 64% 2%, 78% 0, 94% 2%, 100% 11%, 99% 25%, 100% 43%, 99% 66%, 100% 84%, 98% 98%, 86% 100%, 70% 98%, 50% 100%, 49.7% 87%, 50.2% 77%, 49.7% 67%, 50.2% 57%, 49.7% 47%, 50.3% 36%, 49.7% 26%, 50.3% 17%, 49.6% 8%);
}
.sticker-half-right::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 5%;
  bottom: 5%;
  border-left: 1px dashed #fff9ed80;
}
.sticker-fold {
  position: absolute;
  top: 2%;
  right: 0;
  width: 23px;
  height: 22px;
  background: linear-gradient(45deg, #ae0c09, #f7d9c6 56%, #fff7ed 70%);
  clip-path: polygon(0 0, 100% 100%, 0 84%);
  filter: drop-shadow(-2px 3px 2px #570b0a60);
  transition: opacity .15s ease;
}
.entry-tagline {
  position: relative;
  margin: 19px auto 0;
  width: 100%;
  color: #b80b10;
  font-family: var(--display), Impact, sans-serif;
  font-size: clamp(18px, 1.65vw, 25px);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: .035em;
  text-transform: uppercase;
  transform: rotate(-1deg);
  text-shadow: .35px .25px 0 #910d0c70;
  transition: opacity .2s ease;
}
.entry-tagline span,
.entry-tagline strong {
  display: block;
  width: fit-content;
  margin-inline: auto;
  white-space: nowrap;
}
.entry-tagline strong {
  position: relative;
  margin-top: 4px;
  padding-bottom: 8px;
  font-size: 1.27em;
  font-weight: 400;
  letter-spacing: .055em;
}
.entry-tagline strong::after {
  content: "";
  position: absolute;
  left: 3%;
  right: 2%;
  bottom: 0;
  height: 2px;
  background: #b80b10;
  clip-path: polygon(0 20%, 24% 0, 57% 35%, 100% 5%, 97% 75%, 53% 80%, 18% 100%, 0 75%);
  opacity: .7;
}
@supports (background-clip: text) {
  .entry-tagline span,
  .entry-tagline strong {
    background-image: repeating-linear-gradient(173deg, #b80b10 0 6px, #b80b10b3 6px 6.6px, #b80b10 7px 14px);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
  }
}
.is-opening .sticker-half-left { transform: translate(-45px,-4px) rotate(-7deg); opacity: 0; }
.is-opening .sticker-half-right { transform: translate(45px,4px) rotate(7deg); opacity: 0; }
.is-opening .sticker-fold,
.is-opening .entry-tagline,
.is-opening .entry-logo { opacity: 0; }
.is-opening .entry-logo { translate: 0 -12px; }
.is-opening .entry-sticker { pointer-events: none; }
@media (max-width: 900px) and (orientation: portrait) {
  .loader-panel::before { background-image: url("assets/ingresso-mobile.webp"); }
  .entry-ui { width: min(100vw, 56.2799vh); height: min(100vh, 177.6833vw); }
  .entry-logo { top: 12%; width: clamp(86px, 28%, 135px); }
  .entry-action { top: 41%; width: min(77vw, 320px); }
  .entry-sticker { height: clamp(68px, 18vw, 83px); }
  .sticker-half span { font-size: clamp(27px, 7.6vw, 35px); }
  .entry-tagline { margin-top: 19px; font-size: clamp(17px, 4.7vw, 21px); line-height: 1.12; }
}
@media (max-height: 480px) and (orientation: landscape) {
  .entry-logo { top: 10%; width: 78px; }
  .entry-action { top: 43%; width: min(34vw, 275px); }
  .entry-sticker { height: 58px; }
  .sticker-half span { font-size: 28px; }
  .entry-tagline { margin-top: 11px; font-size: 14px; }
  .entry-tagline strong { margin-top: 2px; padding-bottom: 5px; }
}
@media (prefers-reduced-motion: reduce) {
  .site-loader { display: none; }
  .loader-panel, .sticker-half, .entry-logo, .entry-sticker { transition: none; }
}

/* Exact original alpha silhouette, stacked in depth; no external 3D dependency. */
.entry-logo-spin {
  display: block;
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  animation: entry-logo-turn 10s linear infinite;
  will-change: transform;
}
.entry-logo-depth,
.entry-logo-face {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  backface-visibility: visible;
}
.entry-logo-depth {
  background: linear-gradient(160deg, #ef3c39, #94070d 35%, #560408 85%);
  -webkit-mask: url("assets/logo-red.png") center / 100% 100% no-repeat;
  mask: url("assets/logo-red.png") center / 100% 100% no-repeat;
  transform: translateZ(var(--depth));
}
.entry-logo-face-front { transform: translateZ(6px); }
.entry-logo-face-back { transform: translateZ(-6px); filter: brightness(.8); }
.entry-logo::after {
  content: "";
  position: absolute;
  width: 70%;
  height: 5px;
  left: 15%;
  bottom: -10px;
  border-radius: 50%;
  background: #5414131f;
  filter: blur(3px);
  animation: entry-logo-shadow 10s linear infinite;
}
.entry-logo:focus-visible { outline: 2px solid #b80b10; outline-offset: 8px; }
.entry-logo-paused .entry-logo-spin,
.entry-logo-paused::after,
.entry-logo-suspended .entry-logo-spin,
.entry-logo-suspended::after,
.is-opening .entry-logo-spin,
.is-opening .entry-logo::after { animation-play-state: paused; }
@keyframes entry-logo-turn {
  from { transform: rotateX(-5deg) rotateY(0deg); }
  to { transform: rotateX(-5deg) rotateY(360deg); }
}
@keyframes entry-logo-shadow {
  0%, 50%, 100% { transform: scaleX(1); opacity: .8; }
  25%, 75% { transform: scaleX(.3); opacity: .4; }
}
@media (max-height: 360px) and (orientation: landscape) {
  .entry-logo { top: 7%; width: 62px; }
  .entry-action { top: 46%; }
  .entry-sticker { height: 44px; }
  .sticker-half span { font-size: 23px; }
  .entry-tagline { margin-top: 9px; font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .entry-logo-spin, .entry-logo::after { animation: none; will-change: auto; }
}
