:root {
    --bg: #09070f;
    --gold: #f5c518;
    --purple: #7a3e9d;
    --text: #f7f4ef;
    --muted: #c4b8c8;
    --line: rgba(255,255,255,0.12);
    --card: rgba(255,255,255,0.045);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html { background: var(--bg); }
body {
    margin: 0;
    font-family: Outfit, "Segoe UI", sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.5;
}
body.festa-viva { background: transparent; position: relative; }
body.festa-viva > .bozza-bar,
body.festa-viva > header,
body.festa-viva > .mobile-links,
body.festa-viva > main,
body.festa-viva > footer { position: relative; z-index: 1; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.bozza-bar {
    background: #2a2210;
    color: #f6e7b2;
    text-align: center;
    font-size: 13px;
    letter-spacing: 0.03em;
    padding: 8px 16px;
}
.bozza-bar strong { color: var(--gold); }

header {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 14px 4vw;
    background: rgba(9,7,15,0.9);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }
.brand img { width: 44px; height: 44px; object-fit: contain; }
.brand span { font-weight: 800; letter-spacing: -0.03em; font-size: 18px; }
nav { display: flex; align-items: center; gap: 16px; color: var(--muted); font-weight: 600; font-size: 14px; }
nav a:hover, nav a.is-here { color: var(--gold); }
.nav-actions { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }
.mobile-links { display: none; }

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 999px;
    font-weight: 700;
    border: 0;
    cursor: pointer;
    font-family: inherit;
    text-align: center;
}
.btn-gold { background: var(--gold); color: #1a1403; }
.btn-gold:hover { background: #ffd84a; }
.btn-ghost { background: transparent; color: var(--text); border: 1px solid rgba(255,255,255,0.28); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }
.btn-sm { padding: 10px 16px; font-size: 14px; }
.btn-lg { padding: 16px 26px; font-size: 16px; }
.btn-wa { background: #25d366; color: #04210f; }
.btn-wa:hover { background: #3ee07a; }

.hero {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 48px;
    align-items: center;
    padding: 56px 6vw 72px;
    position: relative;
    overflow: hidden;
}
.hero-poster {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: calc(100vh - 130px);
    padding: 48px 24px 120px;
    background: transparent;
}
.festa-foto,
.festa-luci-sposta,
.riflettore,
.faro {
    position: absolute;
    z-index: -1;
    pointer-events: none;
}
.festa-foto {
    top: 0;
    left: 0;
    right: 0;
    height: calc(100vh + 260px);
    background:
        linear-gradient(to bottom, rgba(5, 5, 5, 0.38) 0%, rgba(5, 5, 5, 0.5) 46%, rgba(9, 7, 15, 0.94) 100%),
        url("https://images.unsplash.com/photo-1514525253161-7a46d19cd819?q=80&w=1920&auto=format&fit=crop") center 30% / cover no-repeat;
    -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 68%, transparent 100%);
    mask-image: linear-gradient(to bottom, #000 0%, #000 68%, transparent 100%);
}
.festa-luci-sposta {
    position: fixed;
    inset: -12%;
}
.festa-luci {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 42% 36% at 12% 18%, rgba(245, 197, 24, 0.2), transparent 70%),
        radial-gradient(ellipse 48% 42% at 86% 8%, rgba(122, 62, 157, 0.34), transparent 72%),
        radial-gradient(ellipse 36% 32% at 78% 72%, rgba(245, 197, 24, 0.12), transparent 70%),
        radial-gradient(ellipse 40% 34% at 18% 78%, rgba(196, 72, 168, 0.18), transparent 72%),
        radial-gradient(circle at 48% 42%, rgba(255, 236, 170, 0.07), transparent 28%),
        radial-gradient(circle at 62% 28%, rgba(255, 255, 255, 0.08), transparent 8%),
        radial-gradient(circle at 30% 48%, rgba(245, 197, 24, 0.16), transparent 7%),
        radial-gradient(circle at 84% 46%, rgba(176, 92, 230, 0.2), transparent 9%);
    animation: fluttuano 20s ease-in-out infinite alternate;
}
.riflettore {
    position: fixed;
    left: 50%;
    top: 40vh;
    width: min(980px, 92vw);
    height: 480px;
    transform: translate(-50%, -50%);
    background: radial-gradient(ellipse at center, rgba(255, 220, 140, 0.22) 0%, rgba(245, 197, 24, 0.1) 34%, rgba(122, 62, 157, 0.05) 58%, transparent 74%);
    filter: blur(6px);
    transition: top 0.7s ease;
}
@keyframes fluttuano {
    from { transform: translate3d(0, 0, 0) scale(1); }
    to { transform: translate3d(-2.5%, 2%, 0) scale(1.06); }
}
.faro {
    position: fixed;
    top: 40vh;
    width: 62vw;
    height: 190px;
    filter: blur(3px);
    transition: top 0.7s ease;
}
.faro-sx {
    left: -6vw;
    transform: translateY(-50%) rotate(14deg);
    transform-origin: 0% 50%;
    background: linear-gradient(90deg, rgba(255, 248, 220, 0.72), rgba(245, 197, 24, 0.28) 18%, rgba(245, 197, 24, 0.08) 48%, transparent 76%);
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 34%, #000 66%, transparent 100%);
    mask-image: linear-gradient(to bottom, transparent 0%, #000 34%, #000 66%, transparent 100%);
}
.faro-dx {
    right: -6vw;
    transform: translateY(-50%) rotate(-14deg);
    transform-origin: 100% 50%;
    background: linear-gradient(270deg, rgba(244, 220, 255, 0.7), rgba(176, 92, 230, 0.26) 18%, rgba(245, 197, 24, 0.08) 48%, transparent 76%);
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 34%, #000 66%, transparent 100%);
    mask-image: linear-gradient(to bottom, transparent 0%, #000 34%, #000 66%, transparent 100%);
    animation: entra-dx 1.4s cubic-bezier(.16, .84, .32, 1) both;
}
.faro-sx { animation: entra-sx 1.4s cubic-bezier(.16, .84, .32, 1) both; }
@keyframes entra-sx {
    from { opacity: 0; transform: translateY(-50%) translateX(-22%) rotate(34deg); }
    to { opacity: 1; transform: translateY(-50%) rotate(14deg); }
}
@keyframes entra-dx {
    from { opacity: 0; transform: translateY(-50%) translateX(22%) rotate(-34deg); }
    to { opacity: 1; transform: translateY(-50%) rotate(-14deg); }
}
@media (prefers-reduced-motion: reduce) {
    .festa-luci { animation: none; }
    .riflettore, .faro { transition: none; }
    .faro-sx, .faro-dx { animation: none; }
}
@media (max-width: 800px) {
    .riflettore { width: 100vw; height: 340px; }
    .faro { width: 78vw; height: 130px; }
}
.hero-poster::before { display: none; }
.hero-logo {
    width: min(260px, 68vw);
    margin: 0 auto 28px;
    border-radius: 6px;
    box-shadow: 0 16px 40px rgba(0,0,0,0.45);
}
.hero-poster h1 {
    max-width: 980px;
    text-shadow: 0 4px 18px rgba(0,0,0,0.9);
}
.hero-poster .lead {
    margin-left: auto;
    margin-right: auto;
    text-shadow: 0 2px 12px rgba(0,0,0,0.9);
}
.hero-poster .cta-row { justify-content: center; }
.come-top {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 36px;
    align-items: center;
    margin-bottom: 36px;
}
.come-top .section-lead { margin-bottom: 0; }
.page-hero::before {
    content: "";
    position: absolute;
    width: 520px;
    height: 520px;
    right: -80px;
    top: -140px;
    background: radial-gradient(circle, rgba(122,62,157,0.42), transparent 68%);
    pointer-events: none;
}
.hero-copy, .stage, .page-hero .wrap { position: relative; z-index: 1; }
.eyebrow {
    display: inline-block;
    color: var(--gold);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    margin-bottom: 16px;
}
h1 {
    margin: 0 0 18px;
    font-size: clamp(38px, 4.4vw, 64px);
    line-height: 0.98;
    letter-spacing: -0.045em;
    font-weight: 800;
    max-width: 740px;
}
h1 em { font-style: normal; color: var(--gold); }
.lead { margin: 0 0 26px; max-width: 580px; font-size: 19px; color: #ebe4ea; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 16px; }
.micro { margin: 0; color: var(--muted); font-size: 15px; max-width: 540px; }

.stage { display: flex; justify-content: center; }
.phone-wrap { width: 290px; }
.phone {
    width: 290px;
    background: #120e18;
    border: 10px solid #1c1824;
    border-radius: 36px;
    box-shadow: 0 30px 80px rgba(0,0,0,0.45), 0 0 0 1px rgba(255,255,255,0.08);
    overflow: hidden;
}
.phone-top { padding: 22px 16px 8px; text-align: center; }
.phone-top img { width: 68px; margin: 0 auto 8px; }
.phone-top strong { display: block; font-size: 12px; letter-spacing: 0.08em; color: var(--gold); }
.phone-body { padding: 8px 12px 16px; }
.rank {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    margin: 0 0 10px;
    padding: 8px 10px;
    border-radius: 10px;
    background: rgba(245,197,24,0.1);
    border: 1px solid rgba(245,197,24,0.35);
    font-size: 12px;
}
.rank small { color: var(--gold); font-weight: 800; letter-spacing: 0.04em; flex: 0 0 auto; }
.rank strong { font-size: 11px; letter-spacing: -0.03em; white-space: nowrap; }
.mission {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-top: 2px solid var(--gold);
    border-radius: 12px;
    padding: 10px;
    margin-bottom: 8px;
}
.mission-row { display: flex; justify-content: space-between; gap: 8px; align-items: flex-start; }
.mission b { font-size: 13px; display: block; }
.mission span { font-size: 11px; color: #b7adba; }
.pts { background: #f8fafc; color: #111; font-size: 11px; font-weight: 800; border-radius: 6px; padding: 3px 6px; white-space: nowrap; }
.pill { display: block; margin-top: 8px; text-align: center; border-radius: 8px; font-size: 11px; font-weight: 800; letter-spacing: 0.04em; padding: 7px; }
.pill-foto { background: #3b82f6; }
.pill.fatta { background: #14532d; color: #86efac; }
.rank.sale { background: rgba(245,197,24,0.28); }
.pill-qr { background: #8b5cf6; }
.sponsor-mini {
    margin-top: 4px;
    border: 1px solid rgba(245,197,24,0.45);
    border-radius: 12px;
    padding: 10px;
    text-align: center;
    font-size: 11px;
    color: var(--gold);
    background: linear-gradient(135deg, rgba(245,197,24,0.16), rgba(0,0,0,0.2));
}
.phone-note { text-align: center; color: var(--muted); font-size: 12px; margin: 12px 0 0; }

section { padding: 72px 6vw; }
.wrap { max-width: 1120px; margin: 0 auto; }
.narrow { max-width: 760px; }
h2 { margin: 0 0 12px; font-size: clamp(30px, 3.6vw, 44px); letter-spacing: -0.04em; line-height: 1.05; }
.section-lead { margin: 0 0 32px; color: var(--muted); font-size: 18px; max-width: 680px; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.step { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 26px 22px 28px; }
.num { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--gold); color: #1a1403; font-weight: 800; margin-bottom: 18px; }
.step h3 { margin: 0 0 8px; font-size: 22px; letter-spacing: -0.03em; }
.step p { margin: 0; color: var(--muted); }

.band {
    margin: 0 6vw;
    border-radius: 28px;
    padding: 48px;
    background:
        radial-gradient(520px 220px at 100% 0%, rgba(122,62,157,0.35), transparent 60%),
        linear-gradient(180deg, #1a1424, #120e18);
    border: 1px solid rgba(245,197,24,0.28);
}
.band-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 32px; align-items: center; }
.band p { color: #ebe4ea; font-size: 18px; margin: 0 0 14px; }
.band p:last-child { margin-bottom: 0; }
.outcomes { display: grid; gap: 12px; }
.outcome { background: rgba(0,0,0,0.28); border-radius: 16px; padding: 16px 18px; border: 1px solid rgba(255,255,255,0.08); }
.outcome strong { display: block; color: var(--gold); margin-bottom: 2px; }
.link-gold { color: var(--gold); font-weight: 700; border-bottom: 1px solid rgba(245,197,24,0.4); }

.audience { display: grid; grid-template-columns: 1.25fr 1fr; gap: 16px; }
.aud {
    border-radius: 22px;
    padding: 28px;
    border: 1px solid var(--line);
    background: var(--card);
    min-height: 168px;
    display: flex;
    flex-direction: column;
    transition: border-color 0.2s, transform 0.2s;
}
.aud:hover { border-color: rgba(245,197,24,0.55); transform: translateY(-3px); }
.aud.main {
    background: radial-gradient(420px 200px at 0% 0%, rgba(245,197,24,0.18), transparent 60%), #16111c;
    border-color: rgba(245,197,24,0.5);
    grid-row: span 3;
    min-height: 100%;
    justify-content: flex-end;
}
.tag { align-self: flex-start; background: var(--gold); color: #1a1403; font-size: 12px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; border-radius: 999px; padding: 5px 10px; margin-bottom: auto; }
.aud h3 { margin: 0 0 8px; font-size: 28px; letter-spacing: -0.03em; }
.aud p { margin: 0 0 16px; color: var(--muted); font-size: 16px; }
.aud .more { margin-top: auto; color: var(--gold); font-weight: 700; font-size: 14px; }

.included { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 40px; align-items: start; }
.due-mani { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 28px; align-items: start; }
.due-mani h3 { margin: 0 0 14px; font-size: 22px; letter-spacing: -0.03em; }
.checks { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 0; padding: 0; list-style: none; }
.checks.una { grid-template-columns: 1fr; }
.checks.ruolo li::before { content: "→ "; }

body.anteprima-sfondo .quadri-festa { position: fixed; inset: 0; z-index: -1; pointer-events: none; }
body.anteprima-sfondo .quadro-festa {
    position: absolute; inset: 0; opacity: 0;
    background-size: cover; background-position: center 42%;
    transition: opacity 0.55s ease;
}
body.anteprima-sfondo .q-matrimoni {
    background-image:
        linear-gradient(90deg, rgba(9,7,15,0.78), rgba(9,7,15,0.38) 58%, rgba(9,7,15,0.5)),
        linear-gradient(to bottom, rgba(9,7,15,0.4), rgba(9,7,15,0.22) 40%, rgba(9,7,15,0.72)),
        url("https://images.unsplash.com/photo-1511285560929-80b456fea0bc?q=80&w=2000&auto=format&fit=crop");
    background-position: center 72%, center 72%, center 72%;
}
body.anteprima-sfondo .q-paese {
    background-image:
        linear-gradient(90deg, rgba(9,7,15,0.72), rgba(9,7,15,0.28) 62%, rgba(9,7,15,0.48)),
        linear-gradient(to bottom, rgba(9,7,15,0.45), rgba(9,7,15,0.18) 45%, rgba(9,7,15,0.7)),
        url("https://images.unsplash.com/photo-1761774805205-1707c369cae9?q=80&w=2000&auto=format&fit=crop");
    background-position: center 42%, center 42%, center 42%;
}
body.anteprima-sfondo .q-aziende {
    background-image:
        linear-gradient(90deg, rgba(9,7,15,0.78), rgba(9,7,15,0.4) 55%, rgba(9,7,15,0.5)),
        linear-gradient(to bottom, rgba(9,7,15,0.62), rgba(9,7,15,0.35) 40%, rgba(9,7,15,0.75)),
        url("https://images.unsplash.com/photo-1758691737492-48e8fdd336f7?q=80&w=2000&auto=format&fit=crop");
    background-position: center 68%, center 68%, center 68%;
}
body.anteprima-sfondo .q-compleanni {
    background-image:
        linear-gradient(90deg, rgba(9,7,15,0.72), rgba(9,7,15,0.32) 55%, rgba(9,7,15,0.48)),
        linear-gradient(to bottom, rgba(9,7,15,0.42), rgba(9,7,15,0.22) 42%, rgba(9,7,15,0.72)),
        url("https://images.unsplash.com/photo-1758275557598-00d4d4b78ef0?q=80&w=2000&auto=format&fit=crop");
    background-position: center 42%, center 42%, center 42%;
}
body.anteprima-sfondo .feste-sequenza { position: relative; z-index: 1; }
body.anteprima-sfondo .scena-festa {
    min-height: 100vh;
    display: flex;
    align-items: flex-end;
    padding: 16vh 0 8vh;
}
body.anteprima-sfondo .scena-festa .aud,
body.anteprima-sfondo .scena-festa .aud.main {
    max-width: 520px;
    min-height: 0;
    grid-row: auto;
    background: rgba(9, 7, 15, 0.82);
    backdrop-filter: blur(10px);
}
body.anteprima-sfondo .scena-festa h2,
body.anteprima-sfondo .scena-festa .section-lead { text-shadow: 0 3px 18px rgba(0,0,0,0.85); }
body.anteprima-sfondo.quadri-accesi .faro,
body.anteprima-sfondo.quadri-accesi .riflettore,
body.anteprima-sfondo.quadri-accesi .festa-luci { opacity: 0; }
@media (max-width: 800px) {
    body.anteprima-sfondo .scena-festa { min-height: 100svh; padding-bottom: 32px; }
    body.anteprima-sfondo .scena-festa .aud { max-width: none; }
}
@media (prefers-reduced-motion: reduce) {
    body.anteprima-sfondo .quadro-festa { transition: none; }
}

body.festa-viva .hero-poster {
    min-height: calc(100svh - 74px);
    height: calc(100svh - 74px);
    padding: 0;
    justify-content: flex-end;
}
body.festa-viva .hero-centro {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 12px 24px 18px;
    width: 100%;
}
body.festa-viva .hero-logo { width: min(150px, 26vw); margin-bottom: 12px; }
body.festa-viva .hero-poster h1 { font-size: clamp(30px, 3.6vw, 52px); margin-bottom: 14px; }
body.festa-viva .hero-poster .lead { display: none; }
body.festa-viva .striscia-feste {
    width: 100%;
    height: 34vh;
    min-height: 210px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}
body.festa-viva .striscia-feste a {
    position: relative;
    display: block;
    overflow: hidden;
    min-height: 210px;
    color: #fff;
}
body.festa-viva .striscia-feste .q {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center 40%;
}
body.festa-viva .striscia-feste .q::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(9,7,15,0.84), rgba(9,7,15,0.08) 58%);
}
body.festa-viva .striscia-feste strong,
body.festa-viva .striscia-feste span {
    position: absolute;
    z-index: 1;
    left: 16px;
    right: 12px;
    text-align: left;
}
body.festa-viva .striscia-feste strong {
    bottom: 34px;
    font-size: clamp(18px, 1.5vw, 24px);
    letter-spacing: -0.03em;
    text-shadow: 0 2px 10px rgba(0,0,0,0.7);
}
body.festa-viva .striscia-feste span {
    bottom: 14px;
    color: var(--gold);
    font-size: 13px;
    font-weight: 700;
}
body.festa-viva .striscia-feste .q-matrimoni {
    background-image: url("https://images.unsplash.com/photo-1511285560929-80b456fea0bc?q=80&w=900&auto=format&fit=crop");
    background-position: center 55%;
}
body.festa-viva .striscia-feste .q-paese {
    background-image: url("https://images.unsplash.com/photo-1761774805205-1707c369cae9?q=80&w=900&auto=format&fit=crop");
    background-position: center 42%;
}
body.festa-viva .striscia-feste .q-aziende {
    background-image: url("https://images.unsplash.com/photo-1758691737492-48e8fdd336f7?q=80&w=900&auto=format&fit=crop");
    background-position: center 62%;
}
body.festa-viva .striscia-feste .q-compleanni {
    background-image: url("https://images.unsplash.com/photo-1758275557598-00d4d4b78ef0?q=80&w=900&auto=format&fit=crop");
    background-position: center 42%;
}
@media (max-width: 800px) {
    body.festa-viva .hero-poster { height: auto; min-height: 0; }
    body.festa-viva .hero-logo { width: min(150px, 42vw); }
    body.festa-viva .hero-poster h1 { font-size: 32px; }
    body.festa-viva .striscia-feste {
        grid-template-columns: 1fr 1fr;
        height: auto;
    }
    body.festa-viva .striscia-feste a { min-height: 190px; }
}
.dopo-contatto { margin-bottom: 28px; }
.checks li { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 16px 16px 16px 18px; font-weight: 600; }
.checks li::before { content: "✓ "; color: var(--gold); }

.contact { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 28px; background: #100c16; border: 1px solid var(--line); border-radius: 28px; padding: 28px; }
form { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
form .btn { grid-column: 1 / -1; }
label { display: grid; gap: 6px; font-size: 13px; color: var(--muted); font-weight: 600; }
label.full { grid-column: 1 / -1; }
input, select, textarea { width: 100%; background: #09070f; color: var(--text); border: 1px solid rgba(255,255,255,0.14); border-radius: 12px; padding: 12px 14px; font: inherit; font-size: 15px; }
textarea { min-height: 96px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 2px solid rgba(245,197,24,0.45); border-color: var(--gold); }
.side-card { background: linear-gradient(180deg, rgba(37,211,102,0.12), rgba(255,255,255,0.03)); border: 1px solid rgba(37,211,102,0.35); border-radius: 20px; padding: 24px; display: flex; flex-direction: column; gap: 14px; }
.side-card h3 { margin: 0; font-size: 26px; letter-spacing: -0.03em; }
.side-card p { margin: 0; color: #d9d0dc; }
.phone-link { font-size: 20px; font-weight: 800; color: var(--gold); }

.page-hero { position: relative; overflow: hidden; padding: 64px 6vw 28px; }
.page-hero h1 { font-size: clamp(36px, 4vw, 58px); }
.back { display: inline-block; margin-bottom: 18px; color: var(--muted); font-size: 14px; font-weight: 600; }
.back:hover { color: var(--gold); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.note {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 24px;
}
.note h3 { margin: 0 0 8px; font-size: 22px; letter-spacing: -0.03em; }
.note p { margin: 0; color: var(--muted); }

footer { padding: 28px 6vw 40px; color: #8d8492; font-size: 13px; display: flex; justify-content: space-between; gap: 12px; }

@media (max-width: 1100px) {
    nav { display: none; }
    .mobile-links {
        display: flex;
        flex-wrap: wrap;
        gap: 8px 14px;
        padding: 10px 16px 12px;
        background: #100c16;
        border-bottom: 1px solid var(--line);
        font-size: 14px;
        font-weight: 600;
    }
    .mobile-links a.is-here { color: var(--gold); }
    .brand span { display: none; }
    .btn-sm { white-space: nowrap; padding: 9px 12px; font-size: 13px; }
    .hero, .band-grid, .audience, .included, .due-mani, .contact, .steps, .checks, form, .split, .come-top { grid-template-columns: 1fr; }
    .hero-poster { min-height: 0; padding-bottom: 72px; }
    .festa-luci { animation-duration: 32s; }
    .aud.main { grid-row: auto; min-height: 0; }
    .hero { padding: 36px 20px 48px; }
    .band { margin: 0 16px; padding: 28px 20px; }
    section { padding: 52px 20px; }
    .page-hero { padding: 36px 20px 12px; }
    header { padding: 12px 16px; }
    footer { flex-direction: column; padding: 20px 16px 32px; }
}

body { overflow-x: clip; }
.phone-wrap, .phone { width: min(290px, 100%); }
.codice-wrap { position: relative; }
button.btn-nav, .btn-nav { font-family: inherit; }
.codice-pannello {
    position: absolute;
    right: 0;
    top: calc(100% + 12px);
    width: min(340px, calc(100vw - 24px));
    background: rgba(8, 8, 8, 0.96);
    border: 1px solid rgba(245, 197, 24, 0.45);
    border-radius: 14px;
    padding: 16px;
    box-shadow: 0 18px 40px rgba(0,0,0,0.55);
    text-align: left;
    z-index: 30;
}
.codice-pannello[hidden] { display: none; }
.codice-pannello label { margin-bottom: 8px; color: var(--gold); font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; font-size: 13px; }
.codice-row { display: flex; gap: 8px; }
.codice-pannello input { flex: 1; min-width: 0; }
.codice-pannello button[type="submit"] { background: var(--gold); color: #1a1403; border: 0; border-radius: 10px; padding: 0 16px; font-weight: 800; cursor: pointer; }
.codice-errore { margin: 12px 0 0; color: #fecaca; background: rgba(127, 29, 29, 0.45); border: 1px solid rgba(248, 113, 113, 0.45); border-radius: 10px; padding: 10px 12px; font-size: 14px; }

.page-hero { min-height: 72vh; display: flex; align-items: center; }
.cielo { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.page-hero .wrap { position: relative; z-index: 1; }

body.tema-matrimoni {
    background: transparent;
    position: relative;
    z-index: 0;
}
body.tema-matrimoni::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background:
        linear-gradient(90deg, rgba(9, 7, 15, 0.86) 0%, rgba(9, 7, 15, 0.74) 34%, rgba(9, 7, 15, 0.5) 62%, rgba(9, 7, 15, 0.42) 100%),
        linear-gradient(to bottom, rgba(9, 7, 15, 0.72) 0%, rgba(9, 7, 15, 0.55) 28%, rgba(9, 7, 15, 0.46) 52%, rgba(9, 7, 15, 0.8) 78%, rgba(9, 7, 15, 0.92) 100%),
        url("https://images.unsplash.com/photo-1511285560929-80b456fea0bc?q=80&w=2000&auto=format&fit=crop") center 72% / cover no-repeat;
}
body.tema-matrimoni .cielo {
    background: none;
    animation: none;
}
body.tema-matrimoni .page-hero h1,
body.tema-matrimoni .page-hero .lead,
body.tema-matrimoni .page-hero .eyebrow {
    text-shadow: 0 3px 18px rgba(0, 0, 0, 0.85);
}
body.tema-matrimoni .step,
body.tema-matrimoni .note,
body.tema-matrimoni .contact {
    background: rgba(9, 7, 15, 0.82);
    backdrop-filter: blur(10px);
}
body.tema-paese {
    background: transparent;
    position: relative;
    z-index: 0;
}
body.tema-paese::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background:
        radial-gradient(circle at 92% 6%, rgba(9, 7, 15, 0.82), transparent 26%),
        linear-gradient(90deg, rgba(9, 7, 15, 0.72) 0%, rgba(9, 7, 15, 0.42) 36%, rgba(9, 7, 15, 0.22) 68%, rgba(9, 7, 15, 0.48) 100%),
        linear-gradient(to bottom, rgba(9, 7, 15, 0.55) 0%, rgba(9, 7, 15, 0.22) 28%, rgba(9, 7, 15, 0.18) 55%, rgba(9, 7, 15, 0.62) 82%, rgba(9, 7, 15, 0.9) 100%),
        url("https://images.unsplash.com/photo-1761774805205-1707c369cae9?q=80&w=2000&auto=format&fit=crop") center 42% / cover no-repeat;
}
body.tema-paese .cielo,
body.tema-paese .page-hero::before {
    background: none;
    animation: none;
    display: none;
}
body.tema-paese .page-hero h1,
body.tema-paese .page-hero .lead,
body.tema-paese .page-hero .eyebrow {
    text-shadow: 0 3px 18px rgba(0, 0, 0, 0.85);
}
body.tema-paese .step,
body.tema-paese .note,
body.tema-paese .contact {
    background: rgba(9, 7, 15, 0.82);
    backdrop-filter: blur(10px);
}
body.tema-aziende {
    background: transparent;
    position: relative;
    z-index: 0;
}
body.tema-aziende::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background:
        linear-gradient(90deg, rgba(9, 7, 15, 0.82) 0%, rgba(9, 7, 15, 0.58) 38%, rgba(9, 7, 15, 0.46) 100%),
        linear-gradient(to bottom, rgba(9, 7, 15, 0.84) 0%, rgba(9, 7, 15, 0.58) 24%, rgba(9, 7, 15, 0.42) 52%, rgba(9, 7, 15, 0.78) 80%, rgba(9, 7, 15, 0.92) 100%),
        url("https://images.unsplash.com/photo-1758691737492-48e8fdd336f7?q=80&w=2000&auto=format&fit=crop") center 68% / cover no-repeat;
}
body.tema-aziende .cielo,
body.tema-aziende .page-hero::before {
    background: none;
    animation: none;
    display: none;
}
body.tema-aziende .page-hero h1,
body.tema-aziende .page-hero .lead,
body.tema-aziende .page-hero .eyebrow,
body.tema-aziende h2,
body.tema-aziende .section-lead {
    text-shadow: 0 3px 18px rgba(0, 0, 0, 0.85);
}
body.tema-aziende .step,
body.tema-aziende .note,
body.tema-aziende .contact {
    background: rgba(9, 7, 15, 0.82);
    backdrop-filter: blur(10px);
}
body.tema-compleanni,
body.tema-commercianti {
    background: transparent;
    position: relative;
    z-index: 0;
}
body.tema-compleanni::before,
body.tema-commercianti::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
}
body.tema-compleanni::before {
    background:
        linear-gradient(90deg, rgba(9, 7, 15, 0.8) 0%, rgba(9, 7, 15, 0.55) 40%, rgba(9, 7, 15, 0.4) 100%),
        linear-gradient(to bottom, rgba(9, 7, 15, 0.5) 0%, rgba(9, 7, 15, 0.32) 30%, rgba(9, 7, 15, 0.4) 58%, rgba(9, 7, 15, 0.78) 82%, rgba(9, 7, 15, 0.92) 100%),
        url("https://images.unsplash.com/photo-1758275557598-00d4d4b78ef0?q=80&w=2000&auto=format&fit=crop") center 42% / cover no-repeat;
}
body.tema-commercianti::before {
    background:
        linear-gradient(90deg, rgba(9, 7, 15, 0.8) 0%, rgba(9, 7, 15, 0.55) 42%, rgba(9, 7, 15, 0.42) 100%),
        linear-gradient(to bottom, rgba(9, 7, 15, 0.74) 0%, rgba(9, 7, 15, 0.46) 26%, rgba(9, 7, 15, 0.38) 55%, rgba(9, 7, 15, 0.76) 82%, rgba(9, 7, 15, 0.92) 100%),
        url("https://images.unsplash.com/photo-1441984904996-e0b6ba687e04?q=80&w=2000&auto=format&fit=crop") 72% 62% / cover no-repeat;
}
body.tema-compleanni .cielo,
body.tema-compleanni .page-hero::before,
body.tema-commercianti .cielo,
body.tema-commercianti .page-hero::before {
    background: none;
    animation: none;
    display: none;
}
body.tema-compleanni .page-hero h1,
body.tema-compleanni .page-hero .lead,
body.tema-compleanni .page-hero .eyebrow,
body.tema-compleanni h2,
body.tema-compleanni .section-lead,
body.tema-commercianti .page-hero h1,
body.tema-commercianti .page-hero .lead,
body.tema-commercianti .page-hero .eyebrow,
body.tema-commercianti h2,
body.tema-commercianti .section-lead {
    text-shadow: 0 3px 18px rgba(0, 0, 0, 0.85);
}
body.tema-compleanni .step,
body.tema-compleanni .note,
body.tema-compleanni .contact,
body.tema-commercianti .step,
body.tema-commercianti .note,
body.tema-commercianti .contact {
    background: rgba(9, 7, 15, 0.82);
    backdrop-filter: blur(10px);
}

@keyframes respiro { from { opacity: 0.72; } to { opacity: 1; } }
@keyframes passa { from { background-position: 100% 0; } to { background-position: 0 0; } }
@keyframes palloncino { from { transform: translateY(0); } to { transform: translateY(-18px); } }
@keyframes vetrina-luce { from { opacity: 0.45; } to { opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
    .cielo, .cielo i, .cielo span { animation: none; }
}
@media (max-width: 800px) {
    .hero-poster { padding: 18px 16px 28px; }
    .hero-logo { width: min(188px, 48vw); margin-bottom: 14px; }
    .hero-poster h1 { font-size: 32px; }
    .hero-poster .lead { font-size: 16px; margin-bottom: 18px; }
    .page-hero { min-height: 48vh; align-items: flex-end; padding-bottom: 28px; }
    .page-hero h1 { font-size: 34px; }
    .cta-row .btn { width: 100%; }
    .faro-sx, .faro-dx { opacity: 0.4; }
    .codice-pannello { position: fixed; left: 12px; right: 12px; top: 68px; width: auto; }
    .contact { padding: 16px; }
    .side-card .btn { width: 100%; }
    body.tema-matrimoni::before {
        background:
            linear-gradient(to bottom, rgba(9, 7, 15, 0.4) 0%, rgba(9, 7, 15, 0.55) 42%, rgba(9, 7, 15, 0.82) 100%),
            url("https://images.unsplash.com/photo-1511285560929-80b456fea0bc?q=80&w=1400&auto=format&fit=crop") 62% 38% / cover no-repeat;
    }
    body.tema-paese::before {
        background:
            linear-gradient(to bottom, rgba(9, 7, 15, 0.5) 0%, rgba(9, 7, 15, 0.32) 42%, rgba(9, 7, 15, 0.78) 100%),
            url("https://images.unsplash.com/photo-1761774805205-1707c369cae9?q=80&w=1400&auto=format&fit=crop") center 40% / cover no-repeat;
    }
    body.tema-aziende::before {
        background:
            linear-gradient(to bottom, rgba(9, 7, 15, 0.62) 0%, rgba(9, 7, 15, 0.46) 40%, rgba(9, 7, 15, 0.84) 100%),
            url("https://images.unsplash.com/photo-1758691737492-48e8fdd336f7?q=80&w=1400&auto=format&fit=crop") center 62% / cover no-repeat;
    }
    body.tema-compleanni::before {
        background:
            linear-gradient(to bottom, rgba(9, 7, 15, 0.48) 0%, rgba(9, 7, 15, 0.38) 42%, rgba(9, 7, 15, 0.82) 100%),
            url("https://images.unsplash.com/photo-1758275557598-00d4d4b78ef0?q=80&w=1400&auto=format&fit=crop") center 40% / cover no-repeat;
    }
    body.tema-commercianti::before {
        background:
            linear-gradient(to bottom, rgba(9, 7, 15, 0.58) 0%, rgba(9, 7, 15, 0.42) 40%, rgba(9, 7, 15, 0.84) 100%),
            url("https://images.unsplash.com/photo-1441984904996-e0b6ba687e04?q=80&w=1400&auto=format&fit=crop") 70% 58% / cover no-repeat;
    }
}

.dopo-passeggiata { margin-top: 36px; }
.dopo-passeggiata .stage { margin-bottom: 28px; }

.passeggiata { position: relative; height: 300vh; max-width: 1120px; margin: 0 auto; }
.passeggiata-fissa {
    position: sticky;
    top: 76px;
    z-index: 2;
    height: min(640px, calc(100svh - 108px));
    display: flex;
    flex-direction: column;
}
.passo-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 12px; }
.passo-testo { margin: 0; min-height: 2.4em; font-size: 20px; font-weight: 800; letter-spacing: -0.03em; }
.tappe { display: flex; gap: 6px; flex: 0 0 auto; }
.tappe span { width: 8px; height: 8px; border-radius: 99px; background: rgba(255,255,255,0.28); transition: width 0.3s, background 0.3s; }
.tappe span.qui { width: 22px; background: var(--gold); }

.palco {
    position: relative;
    flex: 1;
    min-height: 300px;
    overflow: hidden;
    border-radius: 28px;
    border: 1px solid rgba(245,197,24,0.32);
    background:
        radial-gradient(circle at 82% 12%, rgba(255,214,120,0.22), transparent 16%),
        radial-gradient(circle at 12% 0%, rgba(122,62,157,0.5), transparent 34%),
        linear-gradient(#141028, #2a1844);
}
.lucine {
    position: absolute;
    z-index: 6;
    top: 8px;
    left: 0;
    right: 0;
    height: 22px;
    pointer-events: none;
    background:
        radial-gradient(circle, #ffe58a 3px, transparent 4px) 0 6px / 26px 22px repeat-x,
        radial-gradient(circle, #ff7ad9 3px, transparent 4px) 13px 6px / 26px 22px repeat-x;
}
.scorri-hint {
    position: absolute;
    z-index: 6;
    top: 36px;
    right: 14px;
    margin: 0;
    background: var(--gold);
    color: #1a1403;
    font-weight: 800;
    font-size: 13px;
    border-radius: 999px;
    padding: 7px 12px;
    animation: bob-hint 1s ease-in-out infinite;
}
.scorri-hint[hidden] { display: none; }
@keyframes bob-hint { from { transform: translateY(0); } to { transform: translateY(5px); } }

.pista { position: absolute; left: 0; top: 0; height: 100%; width: 300%; will-change: transform; }
.suolo {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 18%;
    background:
        repeating-linear-gradient(90deg, rgba(255,255,255,0.05) 0 2px, transparent 2px 42px),
        linear-gradient(#5a3b28, #2a1810);
    border-top: 3px solid rgba(245,197,24,0.28);
}
.lampione { position: absolute; bottom: 16%; width: 6px; height: 38%; background: #3a3348; border-radius: 4px; }
.lampione::before {
    content: "";
    position: absolute;
    top: -16px;
    left: 50%;
    width: 26px;
    height: 26px;
    transform: translateX(-50%);
    background: radial-gradient(circle, #ffe58a 0 6px, rgba(245,197,24,0.35) 7px, transparent 14px);
}

.incontro {
    position: absolute;
    bottom: 16%;
    height: 68%;
    width: 200px;
    transform: translateX(-50%);
    display: flex;
    align-items: flex-end;
    justify-content: center;
}
.incontro-qr { left: 27%; }
.incontro-artista { left: 48%; }
.incontro-banco { left: 69%; }
.badge-punti { display: none; }
.etichetta {
    position: absolute;
    z-index: 4;
    top: 0;
    left: 50%;
    width: 230px;
    margin: 0;
    transform: translateX(-50%);
    background: rgba(12, 9, 20, 0.92);
    border: 1px solid rgba(245, 197, 24, 0.55);
    border-radius: 14px;
    padding: 8px 10px;
    color: #f7f4ef;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.3;
    text-align: center;
}
.etichetta b { display: block; color: var(--gold); font-size: 12px; margin-bottom: 2px; }

.totem { width: 118px; height: auto; margin-top: 92px; display: flex; flex-direction: column; align-items: center; }
.scheda {
    width: 118px;
    background: #fffef8;
    border-radius: 14px;
    padding: 10px 10px 8px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.28);
    text-align: center;
}
.qr-svg { width: 100%; height: auto; display: block; }
.scheda b { display: block; margin-top: 4px; color: #1a1408; font-size: 13px; letter-spacing: 0.04em; }
.asta { width: 12px; height: 78px; flex: none; background: linear-gradient(#8a5a32, #5c3a20); border-radius: 0 0 6px 6px; }
.incontro-qr.vicino .scheda { animation: lampo-scheda 0.45s ease; }
@keyframes lampo-scheda { 30% { box-shadow: 0 0 24px 6px rgba(255,255,255,0.75); } }

.pittore { position: relative; width: 96px; height: 228px; transition: transform 0.35s ease; z-index: 1; }
.incontro-artista.vicino .pittore { transform: translateX(-26px) rotate(-8deg); }
.basco { position: absolute; left: 10px; top: 0; width: 76px; height: 28px; background: #7a3e9d; border-radius: 34px 34px 8px 8px; }
.basco::after { content: ""; position: absolute; right: -4px; top: 8px; width: 14px; height: 14px; background: #f5c518; border-radius: 50%; }
.faccia { position: absolute; left: 16px; top: 20px; width: 64px; height: 58px; background: #ffd0ae; border-radius: 50%; }
.faccia i { position: absolute; top: 22px; width: 8px; height: 10px; background: #1a1408; border-radius: 50%; }
.faccia i:first-child { left: 14px; }
.faccia i:nth-child(2) { right: 14px; }
.faccia b { position: absolute; left: 20px; bottom: 10px; width: 22px; height: 8px; border-bottom: 3px solid #d36b6b; border-radius: 0 0 12px 12px; }
.maglia {
    position: absolute;
    left: 8px;
    top: 72px;
    width: 80px;
    height: 108px;
    border-radius: 18px 18px 10px 10px;
    background: repeating-linear-gradient(90deg, #f5c518 0 10px, #7a3e9d 10px 20px);
}
.maglia::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: -32px; height: 34px; background: #2a2340; border-radius: 0 0 8px 8px; }
.cavalletto { position: relative; width: 104px; height: 196px; margin-left: 6px; }
.tela { position: absolute; top: 10px; left: 8px; width: 86px; height: 72px; background: #fffaf0; border: 4px solid #8a5a32; overflow: hidden; }
.tela span { position: absolute; border-radius: 50%; }
.tela span:nth-child(1) { width: 28px; height: 28px; background: #f5c518; left: 6px; top: 8px; }
.tela span:nth-child(2) { width: 22px; height: 22px; background: #e85d8c; right: 6px; top: 16px; }
.tela span:nth-child(3) { width: 34px; height: 16px; background: #7a3e9d; left: 12px; bottom: 6px; border-radius: 8px; }
.cavalletto i { position: absolute; bottom: 0; width: 4px; height: 92px; background: #8a5a32; }
.cavalletto i:first-of-type { left: 22px; transform: rotate(10deg); transform-origin: bottom; }
.cavalletto i:nth-of-type(2) { right: 22px; transform: rotate(-10deg); transform-origin: bottom; }

.incontro-banco { flex-direction: column; align-items: stretch; justify-content: flex-end; width: 220px; }
.incontro-banco strong {
    align-self: center;
    margin-bottom: 6px;
    background: #1a1408;
    color: var(--gold);
    font-size: 13px;
    letter-spacing: 0.04em;
    padding: 4px 10px;
    border-radius: 999px;
}
.tenda {
    height: 36px;
    background: repeating-linear-gradient(90deg, #f5c518 0 14px, #7a3e9d 14px 28px);
    clip-path: polygon(0 0, 100% 0, 100% 58%, 90% 100%, 80% 58%, 70% 100%, 60% 58%, 50% 100%, 40% 58%, 30% 100%, 20% 58%, 10% 100%, 0 58%);
}
.banco { position: relative; height: 64px; background: linear-gradient(#c4884a, #8a5a32); border-radius: 4px 4px 6px 6px; }
.banco::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 10px; background: #e2b070; border-radius: 4px 4px 0 0; }
.barattolo { position: absolute; left: 22px; bottom: 52px; width: 22px; height: 32px; background: #efeaf2; border: 2px solid #fff; border-radius: 4px 4px 6px 6px; }
.barattolo::before { content: ""; position: absolute; left: 2px; right: 2px; top: 8px; bottom: 6px; background: #7a3e9d; opacity: 0.85; }
.fiore { position: absolute; right: 34px; bottom: 64px; width: 16px; height: 16px; background: #e85d8c; border-radius: 50%; box-shadow: -8px 2px 0 #f5c518, 8px 2px 0 #ff8fb8; }
.fiore::before { content: ""; position: absolute; left: 6px; top: 14px; width: 3px; height: 16px; background: #3f8f4a; }

.omino {
    position: absolute;
    z-index: 5;
    left: 8%;
    bottom: 16%;
    width: 16em;
    height: 22em;
    font-size: 11px;
    pointer-events: none;
}
.pioggia { position: absolute; left: -10%; right: -20%; top: -2.4em; height: 16em; z-index: 7; overflow: visible; }
.punto-cade {
    position: absolute;
    top: 0;
    font-size: 15px;
    font-weight: 800;
    color: #1a1403;
    background: #fff8dc;
    border: 2px solid var(--gold);
    border-radius: 999px;
    padding: 2px 7px;
    box-shadow: 0 8px 14px rgba(0,0,0,0.35);
    animation: cade-punto 1.5s ease-in forwards;
}
@keyframes cade-punto {
    0% { opacity: 0; transform: translate3d(var(--x), -24px, 0) scale(0.6); }
    14% { opacity: 1; }
    72% { opacity: 1; transform: translate3d(0, 64px, 0) scale(1); }
    100% { opacity: 0; transform: translate3d(0, 96px, 0) scale(0.92); }
}
.omino.premiato .busto { box-shadow: 0 0 0 4px rgba(245,197,24,0.35); }

.testa { position: absolute; left: 3.2em; top: 0; width: 8.8em; height: 8.2em; background: #ffd0ae; border-radius: 46% 46% 42% 42%; }
.capelli { position: absolute; left: -0.5em; top: -0.45em; width: 9.8em; height: 3.5em; background: #2b2344; border-radius: 5em 5em 1.2em 1.2em; }
.capelli::after { content: ""; position: absolute; left: 0.8em; right: 0.8em; bottom: -0.55em; height: 1.1em; background: #2b2344; border-radius: 0 0 1em 1em; }
.occhio { position: absolute; top: 3.5em; width: 1.55em; height: 1.75em; background: #fff; border-radius: 50%; }
.occhio::before { content: ""; position: absolute; left: 0.45em; top: 0.45em; width: 0.75em; height: 0.9em; background: #1a1408; border-radius: 50%; }
.occhio::after { content: ""; position: absolute; left: 0.35em; top: 0.35em; width: 0.35em; height: 0.35em; background: #fff; border-radius: 50%; }
.o1 { left: 1.7em; }
.o2 { left: 5.15em; }
.guancia { position: absolute; top: 5.15em; width: 1.35em; height: 0.7em; background: #f3a3a8; border-radius: 50%; }
.g1 { left: 0.7em; }
.g2 { right: 0.75em; }
.bocca { position: absolute; left: 3.15em; top: 5.7em; width: 2.3em; height: 0.9em; border-bottom: 0.28em solid #d36b6b; border-radius: 0 0 2em 2em; }
.busto {
    position: absolute;
    left: 3.7em;
    top: 7.7em;
    width: 8.2em;
    height: 7.2em;
    background: linear-gradient(#ffe56a, #f5c518);
    border-radius: 2.2em 2.2em 1.6em 1.6em;
}
.busto::after { content: ""; position: absolute; left: 2.4em; right: 2.4em; bottom: 1.1em; height: 1.6em; background: #e2b30f; border-radius: 0 0 1em 1em; }
.braccio { position: absolute; top: 8.5em; width: 2.15em; height: 5.5em; background: #ffd0ae; border-radius: 1.2em; transform-origin: 50% 0.7em; transition: transform 0.28s ease; }
.braccio-libero { left: 2.3em; transform: rotate(18deg); z-index: 0; }
.braccio-tel { left: 10.4em; z-index: 3; transform: rotate(16deg); }
.braccio-tel::after { content: ""; position: absolute; left: 0.1em; bottom: -0.45em; width: 1.9em; height: 1.6em; background: #ffd0ae; border-radius: 50%; z-index: 2; }
.cellulare { position: absolute; left: 0.55em; top: 4.3em; width: 3.5em; height: 5.5em; background: #1b1524; border: 0.18em solid #f5c518; border-radius: 0.55em; z-index: 3; }
.schermo { position: absolute; inset: 0.32em; background: #2a2150; border-radius: 0.28em; }
.schermo::after { content: ""; position: absolute; left: 50%; top: 46%; width: 1.15em; height: 1.15em; transform: translate(-50%, -50%); border: 0.14em solid #f5c518; border-radius: 50%; }
.flash { position: absolute; left: 1.15em; top: -0.35em; width: 0.95em; height: 0.5em; background: #fff; border-radius: 0.2em; opacity: 0; }
.scontrino {
    position: absolute;
    left: 2.6em;
    top: 1.4em;
    width: 3.8em;
    height: 4.8em;
    background: repeating-linear-gradient(#fffef8, #fffef8 0.42em, #e4dcc8 0.42em, #e4dcc8 0.52em);
    border-radius: 0.15em;
    opacity: 0;
    transform: translateY(0.8em) rotate(8deg);
    z-index: 4;
    box-shadow: 0 0.25em 0.4em rgba(0,0,0,0.25);
}
.scontrino i {
    position: absolute;
    left: 0.35em;
    top: 1.3em;
    font-style: normal;
    font-size: 0.85em;
    font-weight: 800;
    color: #15803d;
    border: 0.14em solid #15803d;
    border-radius: 50%;
    padding: 0.15em 0.2em;
    opacity: 0;
}
.gamba { position: absolute; top: 14.5em; width: 2.35em; height: 6.8em; background: #4a3568; border-radius: 1em; transform-origin: 50% 0.4em; }
.gamba::after { content: ""; position: absolute; left: -0.45em; bottom: -0.35em; width: 3.3em; height: 1.45em; background: #f7f4ef; border-radius: 1em 1.2em 0.5em 0.5em; box-shadow: inset 0 -0.38em 0 #f5c518; }
.gamba-a { left: 4.5em; transform: rotate(4deg); }
.gamba-b { left: 8.3em; transform: rotate(-4deg); }
.ombra { position: absolute; left: 3.2em; bottom: 0.1em; width: 9.5em; height: 1.15em; background: rgba(0,0,0,0.35); border-radius: 50%; }

.omino.cammina .gamba-a { animation: passo 0.36s ease-in-out infinite alternate; }
.omino.cammina .gamba-b { animation: passo 0.36s ease-in-out infinite alternate-reverse; }
.omino.cammina .braccio-tel { animation: dondola 0.36s ease-in-out infinite alternate; }
.omino.cammina .braccio-libero { animation: dondola 0.36s ease-in-out infinite alternate-reverse; }
.omino.cammina .testa, .omino.cammina .busto { animation: bob-corpo 0.36s ease-in-out infinite; }
@keyframes passo { from { transform: rotate(24deg); } to { transform: rotate(-22deg); } }
@keyframes dondola { from { transform: rotate(6deg); } to { transform: rotate(26deg); } }
@keyframes bob-corpo { from { transform: translateY(0); } to { transform: translateY(-0.28em); } }

.omino.azione-foto .braccio-tel { transform: rotate(-128deg); }
.omino.azione-foto .flash { animation: lampo 0.55s ease; }
.omino.azione-selfie .braccio-tel { transform: rotate(-148deg); }
.omino.azione-selfie .testa { transform: rotate(6deg); transform-origin: 50% 100%; }
.omino.azione-selfie .flash { animation: lampo 0.55s 0.12s ease; }
.omino.azione-scontrino .braccio-tel { transform: rotate(-36deg); }
.omino.azione-scontrino .scontrino { opacity: 1; top: 5em; left: 3.6em; transform: rotate(30deg); transition: opacity 0.2s, transform 0.25s; }
.omino.azione-scontrino .scontrino i { animation: timbro 0.35s 0.32s both; }
@keyframes lampo {
    0% { opacity: 0; box-shadow: 0 0 0 0 #fff; }
    35% { opacity: 1; box-shadow: 0 0 18px 8px rgba(255,255,255,0.85); }
    100% { opacity: 0; box-shadow: 0 0 0 0 #fff; }
}
@keyframes timbro { from { opacity: 0; transform: scale(1.7) rotate(-16deg); } to { opacity: 1; transform: scale(1) rotate(-8deg); } }

@media (max-width: 800px) {
    .passeggiata { height: 250vh; }
    .passeggiata-fissa { top: 64px; height: min(520px, calc(100svh - 84px)); }
    .passo-testo { font-size: 16px; }
    .omino { font-size: 8.4px; left: 3%; }
    .incontro { width: 150px; }
    .etichetta { width: 168px; font-size: 11px; padding: 6px 8px; transform: translateX(calc(-50% - 42px)); }
    .etichetta b { font-size: 11px; }
    .incontro-qr { left: 44%; }
    .incontro-artista { left: 66%; }
    .incontro-banco { left: 86%; }
    .incontro-banco { width: 168px; }
    .pittore { transform: scale(0.82); transform-origin: bottom center; }
    .incontro-artista.vicino .pittore { transform: scale(0.82) translateX(-16px) rotate(-8deg); }
}
@media (prefers-reduced-motion: reduce) {
    .passeggiata, .passeggiata.ferma { height: auto; }
    .passeggiata-fissa { position: relative; top: auto; height: auto; }
    .palco { min-height: 0; overflow: visible; background: transparent; border: 0; }
    .lucine, .scorri-hint, .lampione, .suolo, .omino { display: none; }
    .pista { position: relative; width: auto; height: auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; transform: none !important; }
    .incontro { position: relative; left: auto !important; transform: none; width: auto; height: 280px; border-radius: 18px; border: 1px solid rgba(245,197,24,0.28); background: linear-gradient(#1b1430, #1b1430 68%, #3a2618 68%); }
    .badge-punti { display: block; position: absolute; top: 10px; right: 10px; background: var(--gold); color: #1a1403; font-style: normal; font-weight: 800; font-size: 14px; border-radius: 999px; padding: 4px 8px; }
    .scorri-hint { animation: none; }
}
@media (prefers-reduced-motion: reduce) and (max-width: 800px) {
    .pista { grid-template-columns: 1fr; }
    .incontro { height: 240px; }
}
