/* --------------------------------------------------------------------------
   15. Spotlight Hover — tutto il sito si oscura, luce solo sul link
   -------------------------------------------------------------------------- */

.spotlight-host {
    position: relative;
    z-index: 10001;
}.spotlight-overlay {
    position: fixed;
    inset: 0;
    z-index: 10000;
    pointer-events: none;
    background: radial-gradient(
        circle 260px at var(--spot-x, 50%) var(--spot-y, 50%),
        transparent 0%,
        transparent 95%,
        rgba(0, 0, 0, 0.7) 100%
    );
    opacity: 1;
    transition: opacity 300ms ease-out;
}.spotlight-overlay.is-fading {
    opacity: 0;
}@media (prefers-reduced-motion: reduce), (max-width: 1023px) {
    .spotlight-overlay { display: none; }
}/* --------------------------------------------------------------------------
   16. Show Cards — Grande Teatro
   -------------------------------------------------------------------------- */

/* -- Theatrical stage backdrop -- */
.show-stage {
    position: relative;
    overflow: hidden;
}/* Curtain drapes, pelmet, ornaments — removed for cleaner design */

.show-pelmet { display: none; }/* ---- Card ---- */
.show-card {
    position: relative;
    cursor: pointer;
}/* -- Frame: clean border around poster -- */
.show-card .show-card-frame {
    position: relative;
    border-radius: 6px;
    padding: 0;
    background: transparent;
    transition: box-shadow 400ms ease, transform 400ms cubic-bezier(0.23, 1, 0.32, 1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}.show-card:hover .show-card-frame,
.show-card:focus-visible .show-card-frame {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
}.show-card.is-active .show-card-frame {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.45);
}/* -- Inner container (clipping + vignette) -- */
/* Inner poster container */
.show-card-inner {
    position: relative;
    overflow: hidden;
    border-radius: 6px;
    background-color: var(--bg-secondary);
    aspect-ratio: 3 / 4;
}/* Vignette + spotlight removed — clean poster display */

/* Shine sweep removed — cleaner */
.show-card-shine { display: none; }/* -- Poster image — subtle desaturation, full color on hover -- */
.show-card-inner > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 500ms cubic-bezier(0.23, 1, 0.32, 1), filter 400ms ease;
    filter: saturate(0.65) brightness(0.9);
}.show-card:hover .show-card-inner > img,
.show-card:focus-visible .show-card-inner > img {
    transform: scale(1.03);
    filter: saturate(1) brightness(1);
}/* -- Gradient overlay — clean bottom fade for text readability -- */
.show-card-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.25rem;
    z-index: 4;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.8) 0%,
        rgba(0, 0, 0, 0.2) 30%,
        transparent 50%
    );
}/* -- Title (always visible) -- */
.show-card-title {
    font-family: var(--font-heading);
    font-weight: 700;
    color: #ffffff;
    font-size: 0.9375rem;
    line-height: 1.3;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.8);
}@media (min-width: 1024px) {
    .show-card-title { font-size: 1rem; }
}/* -- Genre badge -- */
.show-card-genre {
    display: inline-block;
    align-self: flex-start;
    font-family: var(--font-body);
    font-size: 0.625rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.85);
    background: rgba(var(--accent-rgb), 0.7);
    padding: 0.2rem 0.5rem;
    border-radius: 2px;
    margin-bottom: 0.5rem;
}/* -- "Scopri" CTA on hover -- */
.show-card-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    font-family: var(--font-body);
    font-size: 0.8125rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 0.5rem;
    opacity: 0;
    transition: opacity 300ms ease;
}.show-card:hover .show-card-cta,
.show-card:focus-visible .show-card-cta {
    opacity: 1;
}/* Corner ornaments removed — cleaner card design */
.show-card-corners { display: none; }/* Touch devices — slightly softer treatment */
@media (hover: none) {
    .show-card-inner > img { filter: saturate(0.75) brightness(0.92); }
    .show-card-cta { opacity: 0.6; }
}/* --------------------------------------------------------------------------
   17. Show Modal — Spotlight Cinema (native <dialog>)
   -------------------------------------------------------------------------- */

/* -- Dialog element reset + full-screen overlay -- */
dialog.show-modal {
    /* Reset browser defaults */
    background: transparent;
    border: none;
    padding: 0;
    margin: 0;
    max-width: none;
    max-height: none;
    width: 100%;
    height: 100%;
    /* Full viewport overlay */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 1.5rem;
    color: var(--text-body);
    /* Cinematic entrance — zoom from slight scale + fade */
    opacity: 0;
    transform: scale(0.96);
    transition: opacity 500ms cubic-bezier(0.23, 1, 0.32, 1),
                transform 500ms cubic-bezier(0.23, 1, 0.32, 1);
}dialog.show-modal[open] {
    opacity: 1;
    transform: scale(1);
}/* -- Backdrop — theatrical lights-out -- */
dialog.show-modal::backdrop {
    background: rgba(0, 0, 0, 0.94);
    backdrop-filter: blur(16px) saturate(0.5);
    -webkit-backdrop-filter: blur(16px) saturate(0.5);
    animation: backdropFadeIn 600ms cubic-bezier(0.23, 1, 0.32, 1) both;
}/* -- Film grain noise overlay (on dialog, above backdrop) -- */
dialog.show-modal::before {
    content: "";
    position: fixed;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
    background-repeat: repeat;
    opacity: 0.4;
    pointer-events: none;
    z-index: 0;
    mix-blend-mode: overlay;
    animation: grainShift 0.5s steps(4) infinite;
}/* -- Content wrapper (poster + info) -- */
.show-modal-content {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    max-width: 1100px;
    width: 100%;
    z-index: 1;
}@media (min-width: 768px) {
    dialog.show-modal {
        padding: 3rem;
    }

    .show-modal-content {
        flex-direction: row;
        gap: 3rem;
        align-items: flex-start;
    }
}/* -- Poster — dramatic entrance + spotlight glow -- */
.show-modal-poster {
    flex-shrink: 0;
    position: relative;
    /* Parallax target — JS sets --mx, --my */
    transform: perspective(800px)
               rotateY(calc(var(--mx, 0) * 3deg))
               rotateX(calc(var(--my, 0) * -2deg));
    transition: transform 150ms ease-out;
}/* Spotlight cone behind poster */
.show-modal-poster::before {
    content: "";
    position: absolute;
    top: -25%;
    left: -20%;
    right: -20%;
    bottom: -25%;
    background: radial-gradient(
        ellipse at center,
        rgba(var(--accent-rgb), 0.1) 0%,
        rgba(var(--accent-rgb), 0.04) 40%,
        transparent 70%
    );
    pointer-events: none;
    z-index: -1;
    animation: spotlightPulse 4s ease-in-out infinite alternate;
}dialog.show-modal[open] .show-modal-poster {
    animation: posterEntrance 600ms cubic-bezier(0.23, 1, 0.32, 1) both;
    animation-delay: 100ms;
}/* -- Poster frame: animated rotating accent border -- */
.show-modal-poster-frame {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    /* The rotating gradient sits behind via ::before */
}.show-modal-poster-frame::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 300%;
    height: 300%;
    transform: translate(-50%, -50%) rotate(0deg);
    background: conic-gradient(
        from 0deg,
        transparent 0%,
        rgba(var(--accent-rgb), 0.5) 10%,
        transparent 20%,
        transparent 50%,
        rgba(var(--accent-rgb), 0.3) 60%,
        transparent 70%
    );
    animation: spinBorder 6s linear infinite;
    z-index: 1;
}/* Dark fill inside — creates the "border" illusion */
.show-modal-poster-frame::after {
    content: "";
    position: absolute;
    inset: 2px;
    background: var(--bg-primary);
    border-radius: 7px;
    z-index: 2;
}.show-modal-poster-frame > img {
    position: relative;
    z-index: 3;
    display: block;
    width: 100%;
    max-height: 50vh;
    object-fit: contain;
    border-radius: 7px;
    animation: posterGlow 4s ease-in-out infinite alternate;
}/* -- Shimmer sweep on poster -- */
.show-modal-shimmer {
    position: absolute;
    inset: 0;
    z-index: 4;
    overflow: hidden;
    border-radius: 7px;
    pointer-events: none;
}.show-modal-shimmer::before {
    content: "";
    position: absolute;
    top: -100%;
    left: -60%;
    width: 40%;
    height: 300%;
    background: linear-gradient(
        105deg,
        transparent 40%,
        rgba(255, 255, 255, 0.06) 45%,
        rgba(255, 255, 255, 0.14) 50%,
        rgba(255, 255, 255, 0.06) 55%,
        transparent 60%
    );
    transform: rotate(25deg);
    animation: shimmerSweep 4s ease-in-out infinite;
    animation-delay: 1.5s;
}@media (min-width: 768px) {
    .show-modal-poster {
        width: 40%;
        max-width: 400px;
    }

    .show-modal-poster-frame > img {
        max-height: none;
    }
}/* -- Info -- */
.show-modal-info {
    flex: 1;
    min-width: 0;
}.show-modal-title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: var(--h2-size);
    color: var(--text-heading);
    margin: 0.75rem 0 0;
    line-height: 1.2;
    animation: titleGlow 3s ease-in-out infinite alternate;
}.show-modal-subtitle {
    color: var(--accent-light);
    font-size: 0.875rem;
    font-family: var(--font-body);
    font-weight: 500;
    margin: 0.25rem 0 0;
}/* Accent line — animated width on entrance */
.show-modal-line {
    display: block;
    width: 0;
    height: 2px;
    background: var(--gradient-accent);
    margin: 1rem 0;
    border-radius: 1px;
    transition: width 600ms cubic-bezier(0.23, 1, 0.32, 1);
}dialog.show-modal[open] .show-modal-line {
    width: 56px;
}.show-modal-meta {
    font-size: 0.875rem;
    color: var(--text-body);
    line-height: 1.75;
}.show-modal-meta p {
    margin: 0.25rem 0;
}.show-modal-synopsis h3,
.show-modal-credits h3 {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1rem;
    color: var(--text-heading);
    margin-bottom: 0.5rem;
}.show-modal-synopsis p {
    font-size: 0.9375rem;
    line-height: 1.75;
    color: var(--text-body);
    margin: 0;
}.show-modal-credits {
    font-size: 0.875rem;
    color: var(--text-body);
    line-height: 1.6;
}.show-modal-credits p {
    margin: 0.125rem 0;
}.show-modal-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
}/* -- Stagger animation for info elements — slide from right -- */
.show-modal-stagger {
    opacity: 0;
    transform: translateX(20px);
    transition: opacity 500ms cubic-bezier(0.23, 1, 0.32, 1),
                transform 500ms cubic-bezier(0.23, 1, 0.32, 1);
}dialog.show-modal[open] .show-modal-stagger:nth-child(1) { transition-delay: 250ms; }dialog.show-modal[open] .show-modal-stagger:nth-child(2) { transition-delay: 330ms; }dialog.show-modal[open] .show-modal-stagger:nth-child(3) { transition-delay: 410ms; }dialog.show-modal[open] .show-modal-stagger:nth-child(4) { transition-delay: 490ms; }dialog.show-modal[open] .show-modal-stagger:nth-child(5) { transition-delay: 570ms; }dialog.show-modal[open] .show-modal-stagger:nth-child(6) { transition-delay: 650ms; }dialog.show-modal[open] .show-modal-stagger:nth-child(7) { transition-delay: 730ms; }dialog.show-modal[open] .show-modal-stagger:nth-child(8) { transition-delay: 810ms; }dialog.show-modal[open] .show-modal-stagger:nth-child(9) { transition-delay: 890ms; }dialog.show-modal[open] .show-modal-stagger {
    opacity: 1;
    transform: translateX(0);
}/* -- Close button — spin-in entrance -- */
.show-modal-close {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid rgba(var(--accent-rgb), 0.15);
    background: rgba(var(--accent-rgb), 0.06);
    color: var(--text-muted);
    cursor: pointer;
    z-index: 10;
    opacity: 0;
    transform: rotate(-90deg) scale(0.5);
    transition: color 200ms ease, border-color 200ms ease, background-color 200ms ease,
                transform 200ms ease, opacity 200ms ease;
}dialog.show-modal[open] .show-modal-close {
    opacity: 1;
    transform: rotate(0) scale(1);
    transition: color 200ms ease, border-color 200ms ease, background-color 200ms ease,
                transform 500ms cubic-bezier(0.23, 1, 0.32, 1) 400ms,
                opacity 400ms ease 400ms;
}.show-modal-close:hover {
    color: var(--text-heading);
    border-color: var(--accent);
    background: rgba(var(--accent-rgb), 0.12);
    transform: rotate(90deg) scale(1.1);
}/* -- Nav arrows — fade-slide entrance + breathe -- */
.show-modal-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid rgba(var(--accent-rgb), 0.15);
    background: rgba(var(--accent-rgb), 0.06);
    color: var(--text-muted);
    cursor: pointer;
    z-index: 10;
    opacity: 0;
    transition: color 250ms ease, border-color 250ms ease, background-color 250ms ease,
                transform 250ms cubic-bezier(0.23, 1, 0.32, 1), opacity 250ms ease;
}dialog.show-modal[open] .show-modal-nav {
    opacity: 1;
    animation: navBreathe 3s ease-in-out infinite alternate;
    animation-delay: 1s;
    transition: color 250ms ease, border-color 250ms ease, background-color 250ms ease,
                transform 250ms cubic-bezier(0.23, 1, 0.32, 1),
                opacity 500ms ease 500ms;
}.show-modal-nav:hover {
    color: var(--text-heading);
    border-color: var(--accent);
    background: rgba(var(--accent-rgb), 0.15);
    animation: none;
}.show-modal-prev {
    left: 1rem;
}dialog.show-modal[open] .show-modal-prev {
    animation-name: navBreatheLeft;
}.show-modal-prev:hover {
    transform: translateY(-50%) translateX(-4px) scale(1.1);
}.show-modal-next {
    right: 1rem;
}dialog.show-modal[open] .show-modal-next {
    animation-name: navBreatheRight;
}.show-modal-next:hover {
    transform: translateY(-50%) translateX(4px) scale(1.1);
}/* -- Footer: counter + dots -- */
.show-modal-footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    margin-top: 2rem;
    z-index: 1;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 500ms ease, transform 500ms ease;
}dialog.show-modal[open] .show-modal-footer {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 700ms;
}/* Counter "2 / 9" */
.show-modal-counter {
    font-family: var(--font-display);
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: rgba(var(--accent-rgb), 0.5);
}.show-modal-counter .counter-current {
    color: var(--accent);
    font-weight: 600;
    font-size: 0.875rem;
}/* -- Dots — slide up entrance -- */
.show-modal-dots {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.625rem;
}.show-modal-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(var(--accent-rgb), 0.2);
    border: none;
    padding: 0;
    cursor: pointer;
    transition: background 300ms ease, transform 300ms cubic-bezier(0.23, 1, 0.32, 1),
                box-shadow 300ms ease;
}.show-modal-dot:hover {
    background: rgba(var(--accent-rgb), 0.5);
    transform: scale(1.3);
}.show-modal-dot.is-active {
    background: var(--accent);
    transform: scale(1.4);
    box-shadow: 0 0 12px rgba(var(--accent-rgb), 0.4);
}/* ================================================================
   CROSSFADE — Navigation between shows
   ================================================================ */

.show-modal-poster.is-changing {
    opacity: 0;
    transform: perspective(800px) scale(0.92) rotateY(5deg);
    transition: opacity 250ms ease, transform 300ms ease;
}.show-modal-info.is-changing {
    opacity: 0;
    transition: opacity 200ms ease;
}.show-modal-poster.is-entering {
    animation: posterEntrance 500ms cubic-bezier(0.23, 1, 0.32, 1) both;
}/* ================================================================
   RESPONSIVE — Mobile
   ================================================================ */

@media (max-width: 767px) {
    .show-modal-nav {
        width: 38px;
        height: 38px;
    }

    .show-modal-prev {
        left: 0.5rem;
    }

    .show-modal-next {
        right: 0.5rem;
    }

    .show-modal-close {
        top: 0.75rem;
        right: 0.75rem;
        width: 38px;
        height: 38px;
    }

    .show-modal-dots {
        margin-top: 1.5rem;
    }
}/* ================================================================
   REDUCED MOTION
   ================================================================ */

@media (prefers-reduced-motion: reduce) {
    dialog.show-modal,
    dialog.show-modal::backdrop,
    dialog.show-modal::before,
    .show-modal-stagger,
    .show-modal-close,
    .show-modal-nav,
    .show-modal-footer,
    .show-modal-line {
        animation: none !important;
        transition-duration: 0.01ms !important;
    }

    .show-modal-poster,
    .show-modal-poster::before,
    .show-modal-poster-frame::before,
    .show-modal-poster-frame > img,
    .show-modal-shimmer::before,
    .show-modal-title {
        animation: none !important;
        transition-duration: 0.01ms !important;
    }

    .show-modal-poster {
        transform: none !important;
    }

    .show-modal-stagger {
        opacity: 1 !important;
        transform: none !important;
    }

    .show-modal-line {
        width: 56px !important;
    }

    .show-modal-footer {
        opacity: 1 !important;
        transform: none !important;
    }
}