/* Location V2 — editorial / festival preview */

.loc-v2-page {
    --lv2-ease: cubic-bezier(0.16, 1, 0.3, 1);
    --lv2-pad: clamp(1rem, 4vw, 3.5rem);
    background: #030303;
    color: #fff;
    overflow-x: hidden;
}

.loc-v2-page * { box-sizing: border-box; }

.loc-v2-main { position: relative; z-index: 2; }

/* Film grain */
.loc-v2-grain {
    position: fixed;
    inset: 0;
    z-index: 9998;
    pointer-events: none;
    opacity: 0.04;
    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)'/%3E%3C/svg%3E");
}

/* ── HERO: full bleed florence.mp4 ── */
.loc-v2-hero {
    position: relative;
    height: 100vh;
    height: 100dvh;
    min-height: 560px;
    display: flex;
    align-items: flex-end;
    padding: calc(5.5rem + 48px) var(--lv2-pad) var(--lv2-pad);
    overflow: hidden;
}

.loc-v2-hero__video-wrap {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.loc-v2-hero__video-wrap video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    filter: saturate(1.08) contrast(1.06);
}

.loc-v2-hero__veil {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: transparent;
    pointer-events: none;
}

.loc-v2-hero__title-block {
    position: relative;
    z-index: 3;
    width: 100%;
}

.loc-v2-hero__ghost {
    font-family: 'Urban Shadow', Impact, sans-serif;
    font-size: clamp(5rem, 22vw, 16rem);
    line-height: 0.82;
    margin: 0;
    color: transparent;
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.12);
    text-stroke: 1px rgba(255, 255, 255, 0.12);
    user-select: none;
    pointer-events: none;
}

.loc-v2-hero__title {
    font-family: 'Urban Shadow', Impact, sans-serif;
    font-size: clamp(3.2rem, 14vw, 10rem);
    line-height: 0.88;
    margin: -0.15em 0 0;
    background: linear-gradient(135deg, #fff 20%, rgba(var(--primary-rgb), 1) 55%, #fff 90%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: lv2-shimmer 8s linear infinite;
}

@keyframes lv2-shimmer {
    0% { background-position: 0% center; }
    100% { background-position: 200% center; }
}

.loc-v2-hero__loc {
    font-family: 'Syne', sans-serif;
    font-size: clamp(0.95rem, 2.2vw, 1.35rem);
    font-weight: 600;
    letter-spacing: 0.06em;
    margin: 1.25rem 0 0;
    max-width: 22ch;
    line-height: 1.35;
    color: rgba(255, 255, 255, 0.9);
}

.loc-v2-hero__intro {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-top: 1.75rem;
    max-width: 36ch;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.loc-v2-hero__pin {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
    color: var(--primary-color);
    margin-top: 0.15rem;
}

.loc-v2-hero__intro-main {
    font-family: 'Syne', sans-serif;
    font-size: clamp(1rem, 2.2vw, 1.2rem);
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin: 0 0 0.4rem;
    color: #fff;
}

.loc-v2-hero__intro-sub {
    font-family: 'Syne', sans-serif;
    font-size: clamp(0.85rem, 1.8vw, 1rem);
    line-height: 1.55;
    margin: 0;
    color: rgba(255, 255, 255, 0.65);
}

.loc-v2-hero__rail {
    position: relative;
    z-index: 3;
    grid-column: 2;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.65rem;
    padding-bottom: 0.5rem;
}

.loc-v2-chip {
    font-family: 'Syne', sans-serif;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    padding: 0.55rem 0.9rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    white-space: nowrap;
}

.loc-v2-chip--accent {
    border-color: rgba(var(--primary-rgb), 0.6);
    color: var(--primary-color);
    box-shadow: 0 0 24px rgba(var(--primary-rgb), 0.25);
}

.loc-v2-hero__line {
    position: absolute;
    left: var(--lv2-pad);
    right: var(--lv2-pad);
    bottom: var(--lv2-pad);
    z-index: 3;
    display: flex;
    justify-content: flex-end;
    align-items: flex-end;
    gap: 2rem;
    pointer-events: none;
}

.loc-v2-hero__line p {
    font-family: 'Syne', sans-serif;
    font-size: clamp(0.8rem, 1.6vw, 0.95rem);
    color: rgba(255, 255, 255, 0.55);
    max-width: 36ch;
    line-height: 1.55;
    margin: 0;
    pointer-events: auto;
}

.loc-v2-hero__anchor {
    font-family: 'Syne', sans-serif;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: #fff;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    pointer-events: auto;
    transition: color 0.3s ease;
}

.loc-v2-hero__anchor:hover { color: var(--primary-color); }

.loc-v2-hero__anchor span {
    width: 48px;
    height: 1px;
    background: currentColor;
    transition: width 0.35s var(--lv2-ease);
}

.loc-v2-hero__anchor:hover span { width: 72px; }

/* Marquee band */
.loc-v2-page .text-scroll-one {
    margin: 0;
    border-block: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: clamp(3rem, 8vh, 6rem) 0 clamp(2rem, 5vh, 4rem);
}

.loc-v2-scroll {
    display: flex;
    flex-direction: column;
    gap: 0;
    width: 100%;
}

.loc-v2-scroll--mobile {
    display: none;
}

@media (max-width: 768px) {
    .loc-v2-page .text-scroll-one {
        padding: 2.25rem 0 2rem;
        overflow: visible;
    }

    .loc-v2-scroll--desktop {
        display: none;
    }

    .loc-v2-scroll--mobile {
        display: flex;
        gap: clamp(0.28rem, 1.4vw, 0.5rem);
    }

    .loc-v2-scroll--mobile .scroll-track {
        height: clamp(2.65rem, 11vw, 3.85rem);
        min-height: 0;
        padding: 0.22rem 0;
        overflow: hidden;
        align-items: center;
        margin-bottom: 0;
    }

    .loc-v2-scroll--mobile .scroll-content {
        align-items: center;
    }

    .loc-v2-scroll--mobile .scroll-content span {
        font-size: clamp(3rem, 14vw, 5.2rem);
        line-height: 0.92;
        padding: 0.05em 0;
        display: inline-block;
    }

    .loc-v2-scroll--mobile .scroll-content .star {
        font-size: clamp(1.5rem, 6.5vw, 2.6rem);
        line-height: 1;
        padding: 0;
    }
}

/* ── Panorama + zoom parallax ── */
.loc-v2-pano-scroll {
    position: relative;
    padding: clamp(3rem, 8vh, 5rem) var(--lv2-pad);
    background: #030303;
}

.loc-v2-pano-heading {
    font-family: 'Urban Shadow', Impact, sans-serif;
    font-size: clamp(2.5rem, 8vw, 5rem);
    line-height: 0.9;
    margin: 0 auto clamp(1.25rem, 3vw, 2rem);
    max-width: min(92vw, 1500px);
    width: 100%;
}

.loc-v2-pano-frame {
    position: relative;
    width: min(92vw, 1500px);
    margin: 0 auto;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08), 0 60px 100px rgba(0, 0, 0, 0.7);
    aspect-ratio: 2.35 / 1;
    min-height: 220px;
}

.loc-v2-pano-frame img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transform: scale(1.08);
    will-change: transform;
    backface-visibility: hidden;
}

.loc-v2-pano-frame::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(0deg, rgba(3, 3, 3, 0.35) 0%, transparent 35%);
    pointer-events: none;
}

/* ── Horizontal story scroll ── */
.loc-v2-story {
    padding: clamp(3rem, 8vh, 6rem) 0 clamp(4rem, 12vh, 8rem);
    background: #030303;
}

.loc-v2-story__head {
    padding: 0 var(--lv2-pad) clamp(2rem, 5vw, 3rem);
    max-width: 1600px;
}

.loc-v2-story__head h2 {
    font-family: 'Urban Shadow', Impact, sans-serif;
    font-size: clamp(2.5rem, 7vw, 5rem);
    line-height: 0.9;
    margin: 0 0 1rem;
}

.loc-v2-story__head p {
    font-family: 'Syne', sans-serif;
    color: rgba(255, 255, 255, 0.55);
    max-width: 50ch;
    line-height: 1.6;
    margin: 0;
}

.loc-v2-rail {
    display: flex;
    gap: clamp(0.75rem, 2vw, 1.25rem);
    padding: 0 var(--lv2-pad) 1rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.loc-v2-rail::-webkit-scrollbar { display: none; }

.loc-v2-panel {
    flex: 0 0 min(88vw, 520px);
    scroll-snap-align: start;
    position: relative;
    height: min(72vh, 640px);
    border-radius: 2px;
    overflow: hidden;
    cursor: grab;
}

.loc-v2-panel:active { cursor: grabbing; }

.loc-v2-panel__bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.9s var(--lv2-ease), filter 0.5s ease;
    filter: saturate(1.05) contrast(1.05) brightness(0.9);
}

.loc-v2-panel:hover .loc-v2-panel__bg {
    transform: scale(1.08);
    filter: saturate(1.15) brightness(1);
}

.loc-v2-panel__veil {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.92) 0%, rgba(0, 0, 0, 0.15) 55%, transparent 100%);
}

.loc-v2-panel__body {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 1.75rem;
    z-index: 2;
}

.loc-v2-panel__body h3 {
    font-family: 'Urban Shadow', Impact, sans-serif;
    font-size: clamp(1.6rem, 4vw, 2.4rem);
    margin: 0 0 0.65rem;
    line-height: 0.95;
}

.loc-v2-panel__body p {
    font-family: 'Syne', sans-serif;
    font-size: 0.9rem;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.78);
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.loc-v2-rail-hint {
    padding: 1rem var(--lv2-pad) 0;
    font-family: 'Syne', sans-serif;
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.35);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.loc-v2-rail-hint::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, rgba(255,255,255,0.2), transparent);
}

/* ── CTA block ── */
.loc-v2-outro {
    padding: clamp(5rem, 14vh, 10rem) var(--lv2-pad) clamp(6rem, 16vh, 12rem);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.loc-v2-outro::before {
    content: 'DOA';
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    font-family: 'Urban Shadow', Impact, sans-serif;
    font-size: clamp(12rem, 40vw, 28rem);
    color: rgba(255, 255, 255, 0.02);
    pointer-events: none;
    white-space: nowrap;
}

.loc-v2-outro h2 {
    position: relative;
    font-family: 'Urban Shadow', Impact, sans-serif;
    font-size: clamp(2.5rem, 8vw, 5rem);
    margin: 0 auto 1.5rem;
    line-height: 0.9;
    padding-top: 0.06em;
    overflow: visible;
}

.loc-v2-outro .loc-v2-heading--split {
    display: block;
    text-align: center;
    width: 100%;
    max-width: 20ch;
}

.loc-v2-outro h2 br {
    display: block;
    margin-top: -0.03em;
    line-height: 0;
}

.loc-v2-outro__btns {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    max-width: 1000px;
    margin: 0 auto;
}

.loc-v2-outro__btns .reach-btn {
    width: 100%;
    max-width: 1000px;
}

/* Preview badge */
.loc-v2-preview-badge {
    position: fixed;
    bottom: 1rem;
    right: 1rem;
    z-index: 9999;
    font-family: 'Syne', sans-serif;
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    background: var(--primary-color);
    color: #000;
    padding: 0.45rem 0.75rem;
    border-radius: 2px;
    pointer-events: none;
}

/* Sponsor + footer — come location.html / altre pagine del sito */
.loc-v2-page .sponsor-section {
    position: relative;
    z-index: 1000 !important;
    background-color: #000 !important;
    background-image: none !important;
    transform: none !important;
    -webkit-transform: none !important;
    width: 100%;
    left: auto;
    right: auto;
    margin-left: 0;
    margin-right: 0;
    isolation: isolate;
}

.loc-v2-page .sponsor-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-color: #000;
    z-index: -1;
}

.loc-v2-page .footer-image-container,
.loc-v2-page .footer-container {
    position: relative;
    z-index: 100 !important;
}

.loc-v2-page .footer-container {
    background-color: #000 !important;
    background-image: none !important;
    transform: none !important;
    -webkit-transform: none !important;
}

.loc-v2-page .footer-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #0e0e0e;
    z-index: -1;
}

.loc-v2-page .sponsor-title {
    position: relative;
    z-index: 2;
    text-align: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

.loc-v2-page .sponsor-carousel-wrapper {
    position: relative;
    z-index: 1;
}

.loc-v2-page .sponsor-carousel-wrapper::before,
.loc-v2-page .sponsor-carousel-wrapper::after {
    content: '' !important;
    z-index: 30 !important;
    width: clamp(72px, 20vw, 280px) !important;
}

.loc-v2-page .sponsor-carousel,
.loc-v2-page #sponsorCarousel {
    position: relative;
    z-index: 1 !important;
}

.loc-v2-page .footer-content {
    position: relative;
    z-index: 101 !important;
}

@media (max-width: 900px) {
    .loc-v2-hero {
        padding-bottom: 3rem;
    }

    .loc-v2-hero__ghost { display: none; }

    .loc-v2-panel {
        flex: 0 0 92vw;
        height: min(65vh, 520px);
    }
}

@media (max-width: 768px) {
    /* Hero: evita taglio ascender con background-clip */
    .loc-v2-hero__title-block {
        overflow: visible;
        padding-top: 0.15rem;
    }

    .loc-v2-hero__title {
        margin-top: 0;
        line-height: 1;
        padding: 0.06em 0 0.04em;
        overflow: visible;
    }

    /* L'AREA: hero visivo su mobile — full bleed, più alto */
    .loc-v2-pano-scroll {
        padding: 2rem 0 2.75rem;
    }

    .loc-v2-pano-heading {
        padding: 0 var(--lv2-pad);
        margin-bottom: 1.35rem;
        font-size: clamp(2.75rem, 11vw, 4rem);
        text-align: left;
    }

    .loc-v2-pano-frame {
        width: 100vw;
        max-width: 100vw;
        margin-left: calc(50% - 50vw);
        margin-right: calc(50% - 50vw);
        border-radius: 0;
        aspect-ratio: auto;
        min-height: min(68vh, 520px);
        height: min(68vh, 520px);
        box-shadow: none;
    }

    .loc-v2-pano-frame::after {
        background: linear-gradient(0deg, rgba(3, 3, 3, 0.55) 0%, transparent 40%);
    }

    .loc-v2-pano-frame img {
        transform: none !important;
        will-change: auto !important;
        object-position: center 35%;
    }

    /* Outro: interlinea più stretta su mobile */
    .loc-v2-outro h2 {
        line-height: 0.5;
        padding-top: 0.06em;
        padding-bottom: 0.04em;
    }

    .loc-v2-outro h2 br {
        margin-top: -0.2em;
    }

    .loc-v2-outro__btns .doa-nav-btn {
        --dnb-font: clamp(0.95rem, 3.8vw, 1.28rem);
        --dnb-pad-y: 0.65rem;
        --dnb-pad-x: 1.2rem;
    }

    /* Sponsor: annulla breakout 100vw (clippato da overflow-x su .loc-v2-page) */
    .loc-v2-page .sponsor-section {
        width: 100% !important;
        max-width: 100% !important;
        left: auto !important;
        right: auto !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding-left: 1.4rem !important;
        padding-right: 1.4rem !important;
        overflow: hidden;
        visibility: visible !important;
        opacity: 1 !important;
    }

    .loc-v2-page .sponsor-title {
        width: 100% !important;
        max-width: 100% !important;
        text-align: center !important;
    }

    .loc-v2-page .sponsor-carousel-wrapper {
        width: 100vw !important;
        max-width: 100vw !important;
        margin-left: calc(50% - 50vw) !important;
        margin-right: calc(50% - 50vw) !important;
        min-height: 120px !important;
        height: auto !important;
        overflow-x: hidden !important;
        overflow-y: visible !important;
    }

    .loc-v2-page .sponsor-carousel-wrapper::before {
        background: linear-gradient(to right, #000 0%, #000 12%, transparent 100%) !important;
    }

    .loc-v2-page .sponsor-carousel-wrapper::after {
        background: linear-gradient(to left, #000 0%, #000 12%, transparent 100%) !important;
    }

    .loc-v2-page .sponsor-carousel,
    .loc-v2-page #sponsorCarousel {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        min-height: 90px !important;
        animation: sponsor-scroll var(--sponsor-duration, 22s) linear infinite !important;
    }

    .loc-v2-page .sponsor-logo {
        flex: 0 0 calc(var(--sponsor-item-width, 140px) * var(--sponsor-logo-scale, 1)) !important;
        width: calc(var(--sponsor-item-width, 140px) * var(--sponsor-logo-scale, 1)) !important;
        height: calc(var(--sponsor-item-height, 90px) * var(--sponsor-logo-scale, 1)) !important;
        min-width: calc(var(--sponsor-item-width, 140px) * var(--sponsor-logo-scale, 1)) !important;
        min-height: calc(var(--sponsor-item-height, 90px) * var(--sponsor-logo-scale, 1)) !important;
    }

    .loc-v2-page .sponsor-logo img {
        display: block !important;
        max-width: 100% !important;
        max-height: 100% !important;
        object-fit: contain !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    .loc-v2-hero__title { animation: none; background: #fff; -webkit-background-clip: text; }
    .loc-v2-panel__bg { transition: none; }
    .loc-v2-pano-frame img {
        transform: none !important;
        will-change: auto;
    }
}
