/* ═══════════════════════════════════════════════════════════════════════
   LUMINARIE — landing noleggio (page-luminarie.php) + Galleria (page-galleria.php)
   Comportamento: assets/js/luminarie.js

   Linguaggio visivo ispirato alle pagine prodotto DJI: fondo nero pieno,
   titoli grandi e centrati, card con angoli morbidi, foto protagoniste.
   Tutto è sotto `.lum`: non tocca il resto del tema.
   ═══════════════════════════════════════════════════════════════════════ */

.lum {
    --lum-bg: #000;
    --lum-card: #121212;
    --lum-card-2: #1c1c1c;
    --lum-line: rgba(255, 255, 255, 0.1);
    --lum-txt: #f5f5f7;
    --lum-muted: rgba(245, 245, 247, 0.64);
    --lum-gold: #c9a84c;
    --lum-gold-2: #e8c97a;
    --lum-gold-dim: rgba(201, 168, 76, 0.14);
    --lum-radius: 28px;
    --lum-wrap: 1240px;
    --lum-pad: clamp(16px, 4vw, 32px);
    --lum-ease: cubic-bezier(0.22, 0.61, 0.36, 1);

    background: var(--lum-bg);
    color: var(--lum-txt);
    font-family: 'DM Sans', system-ui, -apple-system, sans-serif;
    overflow-x: clip;
}

.lum h1,
.lum h2,
.lum h3,
.lum p,
.lum ul,
.lum ol,
.lum figure {
    margin: 0;
    padding: 0;
}

.lum ul,
.lum ol {
    list-style: none;
}

.lum a {
    text-decoration: none;
}

.lum-ico {
    width: 1.15em;
    height: 1.15em;
    flex-shrink: 0;
}

/* Immagine o video che riempie la sua card */
.lum-cover-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ── TIPOGRAFIA ─────────────────────────────────────────────────────── */
.lum-eyebrow {
    color: var(--lum-gold);
    font-size: clamp(0.85rem, 1.1vw, 1rem);
    font-weight: 600;
    letter-spacing: 0.01em;
    margin-bottom: 14px !important;
}

.lum-h2 {
    font-family: inherit;
    font-size: clamp(2.1rem, 5.2vw, 4rem);
    font-weight: 600;
    line-height: 1.06;
    letter-spacing: -0.03em;
    color: var(--lum-txt);
}

.lum-lead {
    color: var(--lum-muted);
    font-size: clamp(1.05rem, 1.5vw, 1.25rem);
    line-height: 1.5;
    margin-top: 16px !important;
}

/* ── BOTTONI ────────────────────────────────────────────────────────── */
.lum-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

.lum-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 52px;
    padding: 14px 28px;
    border-radius: 999px;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1;
    transition: background-color .3s var(--lum-ease), transform .3s var(--lum-ease), border-color .3s var(--lum-ease);
}

.lum-btn:hover {
    transform: translateY(-2px);
}

.lum-btn--gold {
    background: var(--lum-gold);
    color: #0a0a0a !important;
}

.lum-btn--gold:hover {
    background: var(--lum-gold-2);
}

.lum-btn--ghost {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--lum-txt) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.lum-btn--ghost:hover {
    background: rgba(255, 255, 255, 0.16);
    border-color: rgba(255, 255, 255, 0.35);
}

.lum-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--lum-gold-2) !important;
    font-weight: 600;
}

.lum-link .lum-ico {
    transition: transform .3s var(--lum-ease);
}

.lum-link:hover .lum-ico {
    transform: translateX(4px);
}

/* Cerchio con icona */
.lum-badge {
    display: inline-grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--lum-gold-dim);
    color: var(--lum-gold-2);
    font-size: 1.3rem;
}

/* ── ANIMAZIONI ─────────────────────────────────────────────────────── */
/* .lum-in: entra al caricamento (cover). .lum-reveal: entra allo scroll. */
@keyframes lum-up {
    from { opacity: 0; transform: translateY(26px); }
    to   { opacity: 1; transform: none; }
}

.lum-in {
    opacity: 0;
    animation: lum-up 1s var(--lum-ease) forwards;
}

/* Nascoste solo quando il JS c'è (classe messa da luminarie.js). */
.lum-js .lum-reveal {
    opacity: 0;
    transform: translateY(36px);
    transition: opacity .9s var(--lum-ease), transform .9s var(--lum-ease);
}

.lum-js .lum-reveal.is-in {
    opacity: 1;
    transform: none;
}

.lum-d1 { animation-delay: .12s; transition-delay: .12s; }
.lum-d2 { animation-delay: .24s; transition-delay: .24s; }
.lum-d3 { animation-delay: .36s; transition-delay: .36s; }
.lum-d4 { animation-delay: .5s;  transition-delay: .5s; }

/* ── TITOLI CHE SI ACCENDONO ───────────────────────────────────────────
   Stessa accensione dei titoli di "Accendi il tuo Natale": ogni lettera
   emerge dalla sfocatura con un bagliore caldo, una dopo l'altra. Le
   lettere le crea luminarie.js; senza JS il titolo resta normale. */
/* general.css colora ogni <span> col colore del testo del sito: qui
   devono ereditare, altrimenti "il Natale" perde l'oro. */
.lum-heading-visual,
.lum-heading-word,
.lum-heading-letter {
    color: inherit;
}

.lum-heading-word {
    display: inline-block;
    white-space: nowrap;
}

.lum-heading-letter {
    display: inline-block;
    color: inherit;
}

.lum-heading-ignite:not(.lum-heading-lit) .lum-heading-letter {
    opacity: 0;
}

.lum-heading-lit .lum-heading-letter {
    animation: lum-letter-ignite 1150ms cubic-bezier(.2, .65, .25, 1) both;
    animation-delay: var(--lum-letter-delay, 0ms);
}

@keyframes lum-letter-ignite {
    0%   { opacity: 0;   filter: blur(16px);  transform: translateY(.14em) scale(.97); text-shadow: 0 0 36px #f5ca7c; }
    45%  { opacity: .85; filter: blur(4px);   text-shadow: 0 0 24px #f5ca7c, 0 0 55px #e8b35c80; }
    75%  { opacity: 1;   filter: blur(.5px);  transform: translateY(0) scale(1); text-shadow: 0 0 12px #f5ca7c99; }
    100% { opacity: 1;   filter: blur(0);     transform: none; text-shadow: 0 0 0 transparent; }
}

/* ═══ 1. COVER ═════════════════════════════════════════════════════════ */
.lum-hero {
    position: relative;
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: clamp(118px, 15vh, 150px) 0 clamp(20px, 3vh, 36px);
    text-align: center;
    background:
        radial-gradient(ellipse 55% 45% at 50% 32%, rgba(201, 168, 76, 0.2), transparent 70%),
        var(--lum-bg);
}

/* Foto di sfondo della cover: velata in alto per il titolo e sfumata nel
   nero in basso, così il nastro di foto ci scorre sopra senza stacchi. */
.lum-hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}

.lum-hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transform: scale(1.08);
    animation: lum-hero-bg 2.2s var(--lum-ease) forwards;
}

@keyframes lum-hero-bg {
    to { opacity: 1; transform: scale(1); }
}

.lum-hero-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 60% 45% at 50% 35%, rgba(0, 0, 0, 0.45), transparent 75%),
        linear-gradient(180deg, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.62) 40%, rgba(0, 0, 0, 0.82) 70%, #000 100%);
}

.lum-hero-copy,
.lum-reel {
    position: relative;
    z-index: 1;
}

.lum-hero-copy {
    padding: 0 var(--lum-pad);
}

/* Titolo-frase della cover: più piccolo del titolo breve, così titolo e
   nastro di foto stanno insieme nel primo schermo. Doppia classe perché la
   regola .lum-hero-title qui sotto non lo sovrascriva. */
.lum-hero-title.lum-hero-title--long {
    max-width: 20ch;
    margin: 0 auto !important;
    font-size: clamp(1.9rem, 4.1vw, 3.5rem);
    line-height: 1.04;
    letter-spacing: -0.035em;
}

.lum-hero-title--long .lum-gold {
    white-space: nowrap;
}

.lum-hero-sub.lum-hero-sub--long {
    max-width: 52ch;
}

.lum-hero-sub {
    color: rgba(245, 245, 247, 0.82) !important;
    text-shadow: 0 1px 12px rgba(0, 0, 0, 0.5);
}

.lum-hero-title,
.lum-ghero-title {
    font-family: inherit;
    font-size: clamp(2.9rem, 8.4vw, 6.75rem);
    font-weight: 600;
    line-height: 1;
    letter-spacing: -0.045em;
    color: var(--lum-txt);
}

/* Oro pieno (non gradiente): le lettere animate una per una non reggono
   il background-clip:text del contenitore. */
.lum-hero-title .lum-gold {
    color: var(--lum-gold-2);
}

.lum-hero-sub {
    max-width: 34ch;
    margin: 16px auto 24px !important;
    color: var(--lum-muted);
    font-size: clamp(1rem, 1.4vw, 1.2rem);
    line-height: 1.45;
}

/* Nastro di foto che scorre: la seconda copia rende il giro continuo. */
.lum-reel {
    width: 100%;
    margin-top: clamp(22px, 4vh, 44px);
    overflow: hidden;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

@keyframes lum-marquee {
    to { transform: translateX(-50%); }
}

.lum-reel-track {
    display: flex;
    width: max-content;
    animation: lum-marquee 70s linear infinite;
}

.lum-reel:hover .lum-reel-track {
    animation-play-state: paused;
}

.lum-reel-item {
    flex: 0 0 auto;
    height: clamp(160px, 27vh, 300px);
    aspect-ratio: 3 / 4;
    padding-right: 14px;
}

.lum-reel-item:nth-child(even) {
    margin-top: 20px;
}

.lum-reel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 22px;
    display: block;
}

/* ═══ 2. FOTO BOXATA → FULL SCREEN ═════════════════════════════════════ */
/* --p va da 0 (foto in un box) a 1 (foto a tutto schermo): lo scrive il JS
   mentre la sezione scorre. Lo spazio verticale della sezione è la "corsa". */
.lum-zoom {
    --p: 0;
    /* Margini del box all'inizio: sopra parte da sotto il menu fisso
       (--lum-header-h lo misura luminarie.js), ai lati e sotto poco nero. */
    --ins-t: calc(var(--lum-header-h, 110px) + 14px);
    --ins-b: 4vh;
    --ins-x: 9vw;
    position: relative;
    height: 220vh;
    /* La fascia riservata al menu serve solo con la foto agganciata in cima:
       prima si sovrappone al fondo (nero) della cover, così non fa buco. */
    margin: calc(-1 * var(--lum-header-h, 110px)) 0 0;
    /* bianchi-event-light.css dà padding a ogni <section>: qui va azzerato,
       altrimenti restano buchi neri sopra, sotto e ai lati della foto. */
    padding: 0 !important;
}

.lum-zoom-sticky {
    position: sticky;
    top: 0;
    height: 100vh;
    height: 100svh;
    overflow: hidden;
    display: grid;
    place-items: center;
}

.lum-zoom-media {
    position: absolute;
    inset: 0;
    clip-path: inset(
        calc(var(--ins-t) * (1 - var(--p)))
        calc(var(--ins-x) * (1 - var(--p)))
        calc(var(--ins-b) * (1 - var(--p)))
        calc(var(--ins-x) * (1 - var(--p)))
        round calc(32px * (1 - var(--p)))
    );
    will-change: clip-path;
}

.lum-zoom-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(calc(1.3 - 0.3 * var(--p)));
    /* La foto parte spenta e "si accende" nel primo 40% dello scroll. */
    opacity: min(1, calc(0.22 + 1.95 * var(--p)));
    will-change: transform, opacity;
}

.lum-zoom-media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.75));
    /* Si scurisce di nuovo solo per il benvenuto, a foto ormai accesa. */
    opacity: calc((var(--p) - 0.5) * 2);
}

.lum-zoom-copy {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 0 var(--lum-pad);
    opacity: calc((var(--p) - 0.55) * 2.6);
    transform: translateY(calc((1 - var(--p)) * 60px));
}

.lum-zoom-logo {
    display: block;
    width: clamp(96px, 11vw, 150px);
    height: auto;
    margin: 0 auto clamp(14px, 2.5vh, 24px);
    filter: drop-shadow(0 4px 22px rgba(0, 0, 0, 0.55));
}

.lum-zoom-title {
    font-family: inherit;
    font-size: clamp(3.6rem, 13vw, 10.5rem);
    font-weight: 600;
    line-height: 0.95;
    letter-spacing: -0.05em;
    color: #fff;
}

.lum-zoom-copy p {
    margin-top: 18px;
    font-size: clamp(1.15rem, 2.2vw, 1.75rem);
    font-weight: 500;
    line-height: 1.35;
    color: rgba(255, 255, 255, 0.86);
}

/* ═══ SEZIONI ══════════════════════════════════════════════════════════ */
.lum-sect {
    max-width: calc(var(--lum-wrap) + 2 * var(--lum-pad));
    margin: 0 auto;
    padding: clamp(80px, 11vw, 150px) var(--lum-pad) 0;
}

/* Subito dopo la foto a tutto schermo basta poco respiro. */
.lum-zoom + .lum-sect {
    padding-top: clamp(48px, 6vw, 88px);
}

.lum-sect--bleed {
    max-width: none;
    padding-left: 0;
    padding-right: 0;
}

.lum-head {
    text-align: center;
    margin-bottom: clamp(36px, 5vw, 64px);
}

.lum-head--split {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px 48px;
    text-align: left;
    max-width: var(--lum-wrap);
    margin-left: auto;
    margin-right: auto;
    padding: 0 var(--lum-pad);
    box-sizing: content-box;
}

.lum-head--split .lum-lead {
    max-width: 30ch;
    margin: 0 !important;
}

/* ═══ 3. PER CHI ═══════════════════════════════════════════════════════ */
.lum-for {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.lum-for-card {
    position: relative;
    aspect-ratio: 4 / 5;
    border-radius: var(--lum-radius);
    overflow: hidden;
    background: var(--lum-card);
    isolation: isolate;
}

.lum-for-card .lum-cover-img {
    z-index: -2;
    transition: transform 1.2s var(--lum-ease);
}

.lum-for-card:hover .lum-cover-img {
    transform: scale(1.05);
}

.lum-for-card::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 30%, rgba(0, 0, 0, 0.6) 55%, rgba(0, 0, 0, 0.92) 100%);
}

.lum-for-body {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: clamp(24px, 3vw, 40px);
}

.lum-for-body h3 {
    margin-top: 16px;
    font-family: inherit;
    font-size: clamp(1.6rem, 2.6vw, 2.25rem);
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.1;
    color: #fff;
}

.lum-for-body > p {
    margin-top: 8px;
    color: rgba(255, 255, 255, 0.78);
    font-size: 1.1rem;
}

.lum-checks {
    display: grid;
    gap: 10px;
    margin: 20px 0 22px !important;
}

.lum-checks li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1rem;
    color: #fff;
}

.lum-checks .lum-ico {
    color: var(--lum-gold-2);
}

/* ═══ 4. COME FUNZIONA ═════════════════════════════════════════════════ */
.lum-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    counter-reset: none;
}

.lum-step {
    position: relative;
    padding: 28px 26px 30px;
    border-radius: 24px;
    background: var(--lum-card);
    border: 1px solid var(--lum-line);
}

.lum-step-n {
    position: absolute;
    top: 26px;
    right: 26px;
    color: rgba(255, 255, 255, 0.28);
    font-size: 0.95rem;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

.lum-step h3 {
    margin-top: 28px;
    font-family: inherit;
    font-size: 1.4rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: var(--lum-txt);
}

.lum-step p {
    margin-top: 6px;
    color: var(--lum-muted);
    font-size: 1rem;
    line-height: 1.45;
}

.lum-banner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: fit-content;
    margin: 28px auto 0 !important;
    padding: 16px 26px !important;
    border-radius: 999px;
    border: 1px solid rgba(201, 168, 76, 0.4);
    background: var(--lum-gold-dim);
    color: var(--lum-gold-2);
    font-size: clamp(1rem, 1.6vw, 1.2rem);
    text-align: center;
}

.lum-banner .lum-ico {
    font-size: 1.3em;
}

/* ═══ 5. BENTO ═════════════════════════════════════════════════════════ */
.lum-bento {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-auto-rows: clamp(220px, 23vw, 300px);
    gap: 16px;
}

.lum-tile {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    background: var(--lum-card);
    isolation: isolate;
}

.lum-tile .lum-cover-img {
    z-index: -2;
    transition: transform 1.2s var(--lum-ease);
}

.lum-tile:hover .lum-cover-img {
    transform: scale(1.05);
}

.lum-tile::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0) 38%);
}

.lum-tile figcaption {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    padding: clamp(20px, 2.4vw, 30px);
    font-size: clamp(1.25rem, 2vw, 1.75rem);
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.15;
    color: #fff;
}

.lum-tile--a { grid-column: span 7; grid-row: span 2; }
.lum-tile--b { grid-column: span 5; }
.lum-tile--d { grid-column: span 5; grid-row: span 2; }
.lum-tile--e { grid-column: span 7; }
.lum-tile--f { grid-column: span 12; }

.lum-tile--a figcaption,
.lum-tile--f figcaption {
    text-align: center;
    font-size: clamp(1.5rem, 3vw, 2.5rem);
}

/* ═══ 6. CAROSELLO ═════════════════════════════════════════════════════ */
/* Le slide partono allineate al contenuto e quella dopo "spunta" a destra. */
.lum-carousel {
    --edge: max(var(--lum-pad), calc((100vw - var(--lum-wrap)) / 2));
}

.lum-carousel-track {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--edge);
    padding: 0 var(--edge) !important;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.lum-carousel-track::-webkit-scrollbar {
    display: none;
}

.lum-slide {
    position: relative;
    flex: 0 0 clamp(250px, 29vw, 390px);
    aspect-ratio: 4 / 5;
    border-radius: 24px;
    overflow: hidden;
    background: var(--lum-card);
    scroll-snap-align: start;
}

.lum-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 1.2s var(--lum-ease);
}

.lum-slide:hover img {
    transform: scale(1.05);
}

.lum-slide-cap {
    position: absolute;
    left: 16px;
    bottom: 16px;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    font-size: 0.95rem;
    font-weight: 600;
    color: #fff;
}

.lum-carousel-ui {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    max-width: var(--lum-wrap);
    margin: 24px auto 0;
    padding: 0 var(--lum-pad);
    box-sizing: content-box;
}

.lum-progress {
    position: relative;
    flex: 0 1 200px;
    height: 3px;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.15);
    overflow: hidden;
}

.lum-progress span {
    position: absolute;
    inset: 0 auto 0 0;
    width: 20%;
    border-radius: 3px;
    background: var(--lum-gold);
    transition: width .2s linear;
}

.lum-arrows {
    display: flex;
    gap: 10px;
}

.lum-arrow {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: var(--lum-card-2);
    color: #fff;
    font-size: 1.25rem;
    cursor: pointer;
    transition: background-color .3s var(--lum-ease), opacity .3s var(--lum-ease);
}

.lum-arrow:hover:not(:disabled) {
    background: #2c2c2c;
}

.lum-arrow:disabled {
    opacity: 0.35;
    cursor: default;
}

/* ═══ 7. ANTEPRIMA GALLERIA ════════════════════════════════════════════ */
.lum-wall {
    position: relative;
    max-height: 980px;
    overflow: hidden;
}

.lum-masonry {
    column-count: 5;
    column-gap: 12px;
}

.lum-masonry-item {
    display: block;
    break-inside: avoid;
    margin-bottom: 12px;
    border-radius: 16px;
    overflow: hidden;
    background: var(--lum-card);
}

.lum-masonry-item img {
    display: block;
    width: 100%;
    height: auto;
    transition: transform 1s var(--lum-ease);
}

.lum-masonry-item:hover img {
    transform: scale(1.05);
}

.lum-wall-fade {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 360px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 28px;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.85) 55%, #000 100%);
}

/* ═══ 8. CONFIGURATORE: solo un po' d'aria sopra ═══════════════════════ */
.lum #configuratore {
    margin-top: clamp(80px, 11vw, 150px);
}

/* ═══ 9. CTA FINALE ════════════════════════════════════════════════════ */
.lum-final {
    position: relative;
    display: grid;
    place-items: center;
    min-height: 88vh;
    padding: 120px var(--lum-pad);
    text-align: center;
    overflow: hidden;
    isolation: isolate;
}

.lum-final .lum-cover-img {
    z-index: -2;
}

.lum-final::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, 0.55) 30%, rgba(0, 0, 0, 0.55) 70%, #000 100%);
}

.lum-final .lum-actions {
    margin-top: 32px;
}

/* ═══ PREVENTIVO SU WHATSAPP (partial-whatsapp.php) ═══════════════════ */
/* Link sotto i pulsanti della cover (lavori / come funziona). */
.lum-hero-link {
    margin-top: 18px;
    font-size: 0.98rem;
}

.lum-btn--lg {
    min-height: 60px;
    padding: 18px 34px;
    font-size: 1.08rem;
}

.lum-wa {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
    gap: clamp(32px, 5vw, 72px);
    padding: clamp(32px, 5vw, 72px);
    border-radius: var(--lum-radius);
    border: 1px solid rgba(201, 168, 76, 0.28);
    background:
        radial-gradient(ellipse 60% 80% at 100% 0%, rgba(201, 168, 76, 0.2), transparent 70%),
        radial-gradient(ellipse 50% 60% at 0% 100%, rgba(201, 168, 76, 0.08), transparent 70%),
        var(--lum-card);
    overflow: hidden;
}

.lum-wa .lum-h2 {
    font-size: clamp(2rem, 4.4vw, 3.4rem);
}

.lum-wa .lum-lead {
    max-width: 34ch;
}

.lum-wa-actions {
    justify-content: flex-start;
}

.lum-wa-actions .lum-ico {
    font-size: 1.2em;
}

.lum-wa-note {
    margin-top: 16px !important;
    color: var(--lum-muted);
    font-size: 0.95rem;
}

.lum-wa-note a {
    color: var(--lum-txt) !important;
    font-weight: 600;
    white-space: nowrap;
}

/* Anteprima della chat */
.lum-wa-chat {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 380px;
    justify-self: center;
    border-radius: 26px;
    overflow: hidden;
    background: #0b141a;
    border: 1px solid var(--lum-line);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55), 0 0 0 8px rgba(255, 255, 255, 0.03);
    color: var(--lum-txt) !important;
    transform: rotate(1.5deg);
    transition: transform .5s var(--lum-ease);
}

.lum-wa-chat:hover {
    transform: rotate(0) translateY(-4px);
}

.lum-wa-chat-head {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 18px;
    background: #1f2c33;
}

.lum-wa-chat-head strong {
    display: block;
    font-size: 1rem;
}

.lum-wa-chat-head small {
    display: block;
    color: var(--lum-muted);
    font-size: 0.8rem;
}

.lum-wa-avatar {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--lum-gold);
    color: #0a0a0a;
    font-size: 1.15rem;
}

.lum-wa-chat-body {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 20px 16px 22px;
    min-height: 260px;
    background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(201, 168, 76, 0.06), transparent 70%), #0b141a;
}

.lum-wa-bubble {
    max-width: 85%;
    padding: 10px 14px;
    border-radius: 14px 14px 14px 4px;
    background: #1f2c33;
    font-size: 0.95rem;
    line-height: 1.4;
}

.lum-wa-bubble--me {
    align-self: flex-end;
    border-radius: 14px 14px 4px 14px;
    background: #005c4b;
}

.lum-wa-typing {
    display: inline-flex;
    gap: 4px;
    width: fit-content;
    padding: 12px 14px;
    border-radius: 14px 14px 14px 4px;
    background: #1f2c33;
}

.lum-wa-typing i {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--lum-muted);
    animation: lum-wa-dot 1.2s infinite ease-in-out;
}

.lum-wa-typing i:nth-child(2) { animation-delay: .15s; }
.lum-wa-typing i:nth-child(3) { animation-delay: .3s; }

@keyframes lum-wa-dot {
    0%, 60%, 100% { opacity: .35; transform: none; }
    30%           { opacity: 1; transform: translateY(-3px); }
}

.lum-wa-chat-foot {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px;
    background: var(--lum-gold);
    color: #0a0a0a;
    font-weight: 600;
    font-size: 0.95rem;
}

@media (max-width: 900px) {
    .lum-wa { grid-template-columns: 1fr; }
    .lum-wa-chat { transform: none; }
}

@media (max-width: 560px) {
    .lum-wa { padding: 28px 20px; border-radius: 22px; }
    .lum-wa-chat-body { min-height: 0; }
    .lum-wa-note a { white-space: normal; }
}

@media (prefers-reduced-motion: reduce) {
    .lum-wa-typing i { animation: none; }
}

/* ═══ GALLERIA (page-galleria.php) ═════════════════════════════════════ */
.lum-ghero {
    padding: clamp(150px, 20vh, 210px) var(--lum-pad) 0;
    text-align: center;
    background: radial-gradient(ellipse 55% 60% at 50% 20%, rgba(201, 168, 76, 0.16), transparent 70%);
}

.lum-filters {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin: clamp(40px, 6vw, 72px) auto 32px;
    padding: 0 var(--lum-pad);
}

.lum-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    padding: 10px 18px;
    border-radius: 999px;
    border: 1px solid var(--lum-line);
    background: var(--lum-card);
    color: var(--lum-txt);
    font: 600 0.95rem/1 'DM Sans', system-ui, sans-serif;
    cursor: pointer;
    transition: background-color .3s var(--lum-ease), border-color .3s var(--lum-ease), color .3s var(--lum-ease);
}

.lum-chip span {
    color: var(--lum-muted);
    font-weight: 500;
    font-variant-numeric: tabular-nums;
}

.lum-chip:hover {
    border-color: rgba(255, 255, 255, 0.3);
}

.lum-chip.is-active {
    background: var(--lum-gold);
    border-color: var(--lum-gold);
    color: #0a0a0a;
}

.lum-chip.is-active span {
    color: rgba(10, 10, 10, 0.6);
}

/* Masonry a 5 colonne sopra il componente condiviso bel_gallery() */
.lum-gallery .bel-gal {
    --gap: 12px;
    --radius: 16px;
    max-width: 1680px;
    padding: 0 var(--lum-pad);
}

.lum-gallery .bel-gal-grid {
    column-count: 5;
}

.lum-gallery .bel-gal-item.is-filtered {
    display: none;
}

/* ═══ RESPONSIVE ═══════════════════════════════════════════════════════ */
@media (max-width: 1280px) {
    .lum-gallery .bel-gal-grid { column-count: 4; }
}

@media (max-width: 1024px) {
    .lum-steps { grid-template-columns: repeat(2, 1fr); }
    .lum-masonry { column-count: 4; }

    .lum-bento { grid-template-columns: repeat(2, 1fr); }
    .lum-tile--a,
    .lum-tile--f { grid-column: span 2; grid-row: span 1; }
    .lum-tile--b,
    .lum-tile--d,
    .lum-tile--e { grid-column: span 1; grid-row: span 1; }
}

@media (max-width: 900px) {
    .lum-gallery .bel-gal-grid { column-count: 3; }
}

@media (max-width: 760px) {
    .lum-zoom {
        --ins-x: 5vw;
        --ins-b: 3vh;
        height: 190vh;
    }

    .lum-for { grid-template-columns: 1fr; }
    .lum-for-card { aspect-ratio: 3 / 4; }

    .lum-masonry { column-count: 3; }
    .lum-wall { max-height: 760px; }

    .lum-head--split {
        flex-direction: column;
        align-items: flex-start;
    }

    .lum-banner { border-radius: 20px; }
}

@media (max-width: 560px) {
    .lum-steps { grid-template-columns: 1fr; }
    .lum-masonry { column-count: 2; }
    .lum-wall { max-height: 640px; }

    .lum-bento { grid-template-columns: 1fr; grid-auto-rows: 260px; }
    .lum-tile--a,
    .lum-tile--f { grid-column: span 1; }

    .lum-gallery .bel-gal-grid { column-count: 2; }

    .lum-filters {
        flex-wrap: nowrap;
        justify-content: flex-start;
        overflow-x: auto;
        scrollbar-width: none;
    }

    .lum-chip { flex: 0 0 auto; }
    .lum-gallery .bel-gal { --gap: 8px; --radius: 12px; }

    .lum-actions .lum-btn { flex: 1 1 100%; min-height: 46px; padding: 12px 20px; }
    .lum-hero .lum-actions { gap: 8px; }
    .lum-hero-sub { font-size: 0.98rem; margin: 12px auto 18px !important; }
    .lum-reel-item { height: 170px; }
    .lum-reel-item:nth-child(even) { margin-top: 14px; }
}

/* ═══ MOVIMENTO RIDOTTO ════════════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
    .lum-in,
    .lum-js .lum-reveal {
        opacity: 1;
        transform: none;
        animation: none;
        transition: none;
    }

    .lum-reel-track { animation: none; }
    .lum-heading-ignite .lum-heading-letter { animation: none !important; opacity: 1; filter: none; transform: none; text-shadow: none; }
    .lum-hero-bg img { opacity: 1; transform: none; animation: none; }

    .lum-zoom { --p: 1; height: auto; }
    .lum-zoom-sticky { position: relative; }
}
