/* Bowling Space Legnano. Colori presi dai render: magenta e viola dei soffitti, teal delle piste, arancio dei portali. */
@font-face { font-family: 'Michroma'; src: url('../fonts/michroma.woff2') format('woff2'); font-display: swap; }
@font-face { font-family: 'Hanken Grotesk'; src: url('../fonts/hanken-grotesk.woff2') format('woff2'); font-weight: 100 900; font-display: swap; }
@font-face { font-family: 'Orbitron'; src: url('../fonts/orbitron.woff2') format('woff2'); font-weight: 400 900; font-display: swap; }
@font-face { font-family: 'Share Tech Mono'; src: url('../fonts/sharetechmono.woff2') format('woff2'); font-display: swap; }

:root {
  --page: #07040f;
  --glow-a: #ff4fd8;
  --glow-b: #8a5cff;
  --surface: rgba(255, 255, 255, .05);
  --surface-2: #140d22;
  --line: rgba(255, 255, 255, .14);
  --line-strong: rgba(255, 255, 255, .3);
  --text: #fdf8ff;
  --muted: #bdb3cc;
  --magenta: #ff4fd8;
  --violet: #8a5cff;
  --teal: #2ff0d6;
  --orange: #ff8a3c;
  --grad: linear-gradient(95deg, #ff7ce0 0%, #b08cff 50%, #5ff3df 100%);
  --grad-hot: linear-gradient(95deg, #ffb066 0%, #ff4fd8 100%);
  --display: 'Michroma', 'Eurostile', Arial, sans-serif;
  --score: 'Orbitron', 'Michroma', Arial, sans-serif;
  --body: 'Hanken Grotesk', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'Share Tech Mono', ui-monospace, Menlo, monospace;
  --gutter: clamp(20px, 4.4vw, 72px);
  --radius: 22px;
  --ease: cubic-bezier(.16, 1, .3, 1);
  color-scheme: dark;
}
@property --page { syntax: '<color>'; inherits: true; initial-value: #07040f; }
@property --glow-a { syntax: '<color>'; inherits: true; initial-value: #ff4fd8; }
@property --glow-b { syntax: '<color>'; inherits: true; initial-value: #8a5cff; }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; background: var(--page); }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: clip; }
body { margin: 0; background: var(--page); color: var(--text); font: 400 clamp(1rem, .96rem + .2vw, 1.125rem)/1.6 var(--body); -webkit-font-smoothing: antialiased; overflow-x: clip; }
body.menu-open { overflow: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 400; }
p { margin: 0; }
::selection { background: var(--magenta); color: #000; }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: fixed; left: 12px; top: -60px; z-index: 100; background: #fff; color: #000; padding: 10px 16px; border-radius: 8px; }
.skip-link:focus { top: 12px; }
.wrap { width: 100%; max-width: 1440px; margin-inline: auto; padding-inline: var(--gutter); }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
em.grad { font-style: normal; }
main, .site-footer { position: relative; z-index: 1; }

/* Grana leggera su tutta la pagina, come nei render */
.grain { position: fixed; inset: 0; z-index: 60; pointer-events: none; opacity: .06; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }

/* ---------- Pulsanti ---------- */
.btn { --b: var(--magenta); position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 28px; border: 0; border-radius: 999px; background: var(--text); color: #12081c; font: 600 .82rem/1 var(--display); letter-spacing: .08em; text-transform: uppercase; text-decoration: none; cursor: pointer; overflow: hidden; isolation: isolate; transition: transform .5s var(--ease), box-shadow .5s var(--ease); }
.btn::before { content: ''; position: absolute; inset: 0; z-index: -1; background: var(--grad); transform: translateY(101%); transition: transform .6s var(--ease); }
.btn:hover { transform: translateY(-2px); box-shadow: 0 14px 40px -12px var(--magenta); }
.btn:hover::before { transform: none; }
.btn-line { background: transparent; color: var(--text); box-shadow: inset 0 0 0 1.5px var(--line-strong); }
.btn-line:hover { color: #12081c; box-shadow: inset 0 0 0 1.5px transparent, 0 14px 40px -12px var(--teal); }
.btn-hot { background: var(--grad-hot); color: #1a0710; }
.btn-hot::before { background: var(--text); }
.btn-small { min-height: 40px; padding: 0 18px; font-size: .7rem; }
.btn:disabled { opacity: .6; cursor: progress; }
.arrow-link { display: inline-flex; align-items: center; gap: 10px; color: var(--teal); font: 500 .74rem/1 var(--display); letter-spacing: .1em; text-transform: uppercase; text-decoration: none; }
.arrow-link::after { content: '→'; font-family: var(--body); font-size: 1.1rem; transition: transform .4s var(--ease); }
.arrow-link:hover::after { transform: translateX(6px); }

.eyebrow { display: inline-flex; align-items: center; gap: 12px; color: var(--glow-a); font: 400 .8rem/1 var(--mono); letter-spacing: .24em; text-transform: uppercase; transition: color 1s; }
.pulse { position: relative; width: 9px; height: 9px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 12px var(--teal); }
.pulse::after { content: ''; position: absolute; inset: -6px; border-radius: 50%; border: 1px solid var(--teal); animation: pulse 2s infinite; }
@keyframes pulse { from { transform: scale(.4); opacity: 1; } to { transform: scale(1.6); opacity: 0; } }

/* ---------- Navbar ---------- */
.site-header { position: fixed; inset: 0 0 auto; z-index: 50; padding: 14px var(--gutter); pointer-events: none; }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 20px; max-width: 1440px; margin-inline: auto; padding: 8px 8px 8px 16px; border-radius: 999px; background: rgba(12, 7, 22, .55); backdrop-filter: blur(16px) saturate(1.4); -webkit-backdrop-filter: blur(16px) saturate(1.4); box-shadow: inset 0 0 0 1px var(--line); pointer-events: auto; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; font: 400 .86rem/1 var(--display); letter-spacing: .06em; text-transform: uppercase; }
.brand small { display: block; margin-top: 5px; color: var(--magenta); font: .66rem/1 var(--mono); letter-spacing: .3em; }
.brand img { width: auto; height: 34px; transition: filter .5s; }
.brand:hover img { filter: drop-shadow(0 0 10px rgba(255, 79, 216, .8)); }
.nav-menu { display: flex; align-items: center; gap: 10px; }
.nav-links { display: flex; gap: 2px; margin: 0; padding: 0; list-style: none; }
.nav-links a { position: relative; display: block; padding: 12px 12px; border-radius: 999px; color: var(--muted); font: 500 .9rem/1 var(--body); text-decoration: none; transition: color .3s, background .3s; }
.nav-links a i, .nav-full { display: none; }
.nav-links a:hover, .nav-links a.is-active { color: var(--text); background: rgba(255, 255, 255, .07); }
.nav-links a.is-active::after { content: ''; position: absolute; left: 50%; bottom: 4px; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: var(--magenta); box-shadow: 0 0 8px var(--magenta); }
.nav-cta { padding: 13px 22px; border-radius: 999px; background: var(--grad); color: #12081c; font: 600 .74rem/1 var(--display); letter-spacing: .08em; text-transform: uppercase; text-decoration: none; transition: filter .3s; }
.nav-cta:hover { filter: brightness(1.15); }
.nav-toggle { display: none; }

@media (max-width: 1180px) {
  .nav-toggle { position: relative; z-index: 2; display: inline-flex; align-items: center; gap: 10px; height: 44px; padding: 0 18px; border: 0; border-radius: 999px; background: rgba(255, 255, 255, .08); cursor: pointer; }
  .nav-toggle span { display: none; }
  .nav-toggle b { font: 500 .72rem/1 var(--display); letter-spacing: .1em; text-transform: uppercase; }
  .nav-menu { position: fixed; inset: 0; z-index: 1; flex-direction: column; align-items: stretch; justify-content: center; gap: 30px; padding: 100px var(--gutter) 40px; background: #07040f; clip-path: circle(0 at calc(100% - 60px) 40px); visibility: hidden; transition: clip-path .8s var(--ease), visibility 0s .8s; }
  .nav-menu.is-open { clip-path: circle(150% at calc(100% - 60px) 40px); visibility: visible; transition: clip-path .9s var(--ease); }
  .nav-links { flex-direction: column; gap: 0; }
  .nav-links a { display: flex; align-items: baseline; gap: 18px; padding: 14px 0; border-radius: 0; border-bottom: 1px solid var(--line); background: none !important; color: var(--text); font: 400 clamp(1.3rem, 6vw, 2rem)/1.1 var(--display); text-transform: uppercase; }
  .nav-links a i { display: inline; color: var(--magenta); font: .8rem var(--mono); font-style: normal; }
  .nav-short { display: none; }
  .nav-full { display: inline; }
  .nav-links a[aria-current] { color: var(--magenta); }
  .nav-links a.is-active::after { display: none; }
  .nav-cta { align-self: flex-start; padding: 18px 30px; }
}

/* ---------- Hero: la pista 3D ---------- */
.hero { position: relative; height: 520vh; }
.hero-sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
#lane3d { position: absolute; inset: 0; width: 100%; height: 100%; display: block; opacity: 0; transition: opacity 1.4s ease; }
.lane-ready #lane3d { opacity: 1; }
.hero-poster { position: absolute; inset: 0; background: #07040f url('../img/hero-poster.webp') center / cover no-repeat; opacity: .5; transition: opacity 1.4s ease; }
.lane-ready .hero-poster { opacity: 0; }
.no-webgl .hero-poster { opacity: .7; }
.hero-vignette { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(120% 90% at 50% 45%, transparent 45%, rgba(7, 4, 15, .75) 100%), linear-gradient(to bottom, rgba(7, 4, 15, .55), transparent 22%, transparent 70%, rgba(7, 4, 15, .9)); }

.chapter { position: absolute; inset: 0; z-index: 2; display: flex; pointer-events: none; will-change: opacity, transform; }
.chapter.is-live, .chapter-0 { pointer-events: auto; }
.chapter-0 { align-items: flex-end; padding-bottom: clamp(70px, 11vh, 130px); }
.c0-inner { display: grid; gap: 22px; }
.hero-title { display: grid; font: 400 clamp(2.2rem, 7.6vw, 8.6rem)/.9 var(--display); letter-spacing: -.02em; text-transform: uppercase; }
.ht-line { display: block; overflow: hidden; padding-bottom: .04em; }
.ht-line > span { display: inline-block; }
.ht-line:nth-child(2) { padding-left: 1.1em; }
.hero-foot { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px; }
.hero-sub { max-width: 40ch; color: var(--muted); font-size: clamp(1rem, .95rem + .3vw, 1.2rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Il tabellone: barra bassa e compatta, il tiro resta visibile sopra */
.chapter-board { align-items: flex-end; padding-bottom: clamp(28px, 6vh, 64px); }
.board-wrap { display: grid; gap: 12px; }
.board-title { font: 400 .74rem/1 var(--mono); letter-spacing: .3em; text-transform: uppercase; color: var(--muted); }
.board { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); margin: 0; padding: 0; list-style: none; border: 1px solid rgba(255, 255, 255, .28); border-radius: 12px; background: rgba(9, 5, 18, .55); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); overflow: hidden; }
.board li { position: relative; display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; align-items: end; gap: 2px 14px; padding: 14px 18px; border-left: 1px solid rgba(255, 255, 255, .2); }
.board li:first-child { border-left: 0; }
.f-num { grid-column: 1 / -1; font: .66rem/1 var(--mono); color: var(--muted); letter-spacing: .14em; }
.board b { font: 800 clamp(1.5rem, 2.6vw, 2.4rem)/1 var(--score); background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.board .is-new b { background: var(--grad-hot); -webkit-background-clip: text; background-clip: text; font-size: clamp(1.1rem, 1.9vw, 1.7rem); }
.f-lab { font: 500 .7rem/1.2 var(--display); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); padding-bottom: 3px; }
.board li { opacity: 0; transform: translateY(14px); transition: opacity .5s var(--ease), transform .7s var(--ease); }
.chapter-board.is-live .board li { opacity: 1; transform: none; }
.chapter-board.is-live .board li:nth-child(2) { transition-delay: .06s; }
.chapter-board.is-live .board li:nth-child(3) { transition-delay: .12s; }
.chapter-board.is-live .board li:nth-child(4) { transition-delay: .18s; }
.chapter-board.is-live .board li:nth-child(5) { transition-delay: .24s; }

/* STRIKE: in basso sulla pista vuota, così birilli e parete LED restano liberi */
.chapter-strike { flex-direction: column; align-items: center; justify-content: flex-end; gap: 14px; padding-bottom: clamp(40px, 9vh, 96px); text-align: center; }
.strike-word { display: flex; font: 900 clamp(2.6rem, 7.4vw, 7.4rem)/.9 var(--score); letter-spacing: .02em; }
.strike-word span, .strike-word em { display: inline-block; font-style: normal; background: linear-gradient(180deg, #fff 30%, #ffc2ef); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 0 18px rgba(255, 79, 216, .7)); transform: translateY(30%) scale(.7); opacity: 0; }
.strike-word em { background: var(--grad-hot); -webkit-background-clip: text; background-clip: text; margin-left: .05em; }
.is-strike .strike-word span, .is-strike .strike-word em { animation: strike .8s var(--ease) forwards; }
.is-strike .strike-word :nth-child(2) { animation-delay: .04s; }
.is-strike .strike-word :nth-child(3) { animation-delay: .08s; }
.is-strike .strike-word :nth-child(4) { animation-delay: .12s; }
.is-strike .strike-word :nth-child(5) { animation-delay: .16s; }
.is-strike .strike-word :nth-child(6) { animation-delay: .2s; }
.is-strike .strike-word :nth-child(7) { animation-delay: .3s; }
@keyframes strike { 0% { transform: translateY(50%) scale(.5) rotate(-10deg); opacity: 0; } 60% { transform: translateY(-4%) scale(1.06) rotate(2deg); opacity: 1; } 100% { transform: none; opacity: 1; } }
.strike-sub { padding: 10px 18px; border-radius: 999px; background: rgba(9, 5, 18, .55); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: inset 0 0 0 1px var(--line); font: 400 clamp(.66rem, 1vw, .8rem)/1.3 var(--display); letter-spacing: .14em; text-transform: uppercase; opacity: 0; transform: translateY(10px); transition: opacity .6s .45s, transform .8s .45s var(--ease); }
.is-strike .strike-sub { opacity: 1; transform: none; }
.chapter-end { align-items: flex-end; justify-content: center; padding-bottom: clamp(36px, 8vh, 80px); }
.end-title { display: inline-flex; align-items: center; gap: 12px; padding: 12px 20px; border-radius: 999px; background: rgba(9, 5, 18, .55); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: inset 0 0 0 1px var(--line); font: 400 clamp(.72rem, 1.1vw, .9rem)/1 var(--display); letter-spacing: .12em; text-transform: uppercase; }

.hero-scroll { position: absolute; z-index: 3; left: 50%; bottom: 24px; display: flex; flex-direction: column; align-items: center; gap: 10px; transform: translateX(-50%); color: var(--muted); font: .7rem/1 var(--mono); letter-spacing: .3em; text-transform: uppercase; transition: opacity .5s; }
.hero-scroll span { width: 22px; height: 36px; border: 1.5px solid var(--line-strong); border-radius: 12px; position: relative; }
.hero-scroll span::after { content: ''; position: absolute; left: 50%; top: 7px; width: 4px; height: 7px; margin-left: -2px; border-radius: 2px; background: var(--magenta); animation: wheel 1.8s infinite; }
@keyframes wheel { 0% { transform: translateY(0); opacity: 1; } 80% { transform: translateY(12px); opacity: 0; } 100% { opacity: 0; } }
.hero-scroll.is-gone { opacity: 0; }

@media (max-width: 760px) {
  .hero { height: 460vh; }
  .chapter-0 { padding-bottom: 92px; }
  .ht-line:nth-child(2) { padding-left: .5em; }
  .hero-actions { width: 100%; }
  .hero-actions .btn { flex: 1 1 auto; padding-inline: 16px; }
  .br-desk { display: none; }
  .board { grid-template-columns: repeat(3, 1fr); }
  .board li { padding: 10px 12px; grid-template-columns: 1fr; border-top: 1px solid rgba(255, 255, 255, .2); }
  .board li:nth-child(-n+3) { border-top: 0; }
  .board li:nth-child(4) { border-left: 0; }
  .board li:nth-child(5) { grid-column: span 2; }
  .hero-scroll { display: none; }
}
@media (max-height: 560px) and (min-width: 761px) {
  .hero-title { font-size: min(9vw, 22vh); }
  .chapter-0 { padding-bottom: 40px; }
}

/* ---------- Sezioni ---------- */
.section { position: relative; padding-block: clamp(90px, 14vw, 180px); }
.section-head { display: grid; gap: 20px; margin-bottom: clamp(40px, 6vw, 76px); }
.section h2, .section .h2 { max-width: 18ch; font: 400 clamp(2rem, 4.8vw, 4.4rem)/1.05 var(--display); letter-spacing: -.01em; text-transform: uppercase; }
.w-mask { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .06em; margin-bottom: -.06em; }
.w { display: inline-block; }
.lead { font-size: clamp(1.15rem, 1rem + .6vw, 1.5rem); line-height: 1.45; color: var(--text); }

/* Alone di colore che segue le sezioni */
main::before { content: ''; position: fixed; inset: -20vh -10vw auto; height: 90vh; z-index: -1; pointer-events: none; background: radial-gradient(40% 50% at 15% 30%, color-mix(in srgb, var(--glow-a) 22%, transparent), transparent 70%), radial-gradient(40% 50% at 90% 10%, color-mix(in srgb, var(--glow-b) 22%, transparent), transparent 70%); opacity: .7; }

/* Il locale */
.locale-head { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 60px; align-items: end; margin-bottom: clamp(50px, 7vw, 90px); }
.locale-head .eyebrow { grid-column: 1 / -1; }
.locale-copy { display: grid; gap: 18px; color: var(--muted); }
@media (max-width: 900px) { .locale-head { grid-template-columns: 1fr; } }

/* Il viaggio orizzontale */
.voyage { position: relative; }
.voyage-track { display: flex; gap: clamp(20px, 3vw, 44px); padding-inline: var(--gutter); }
.room { flex: 0 0 auto; width: min(46vw, 760px); display: grid; gap: 16px; transform-style: preserve-3d; }
.room-card { position: relative; aspect-ratio: 16 / 10; border-radius: var(--radius); overflow: hidden; box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .9), inset 0 0 0 1px var(--line); }
.room-card img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.12); }
.room-card::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(7, 4, 15, .5), transparent 40%); }
.room p { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; color: var(--muted); }
.room p b { color: var(--text); font: 400 1rem/1 var(--display); letter-spacing: .06em; text-transform: uppercase; }
.voyage-meter { height: 2px; margin: 40px var(--gutter) 0; background: var(--line); border-radius: 2px; overflow: hidden; }
.voyage-meter span { display: block; height: 100%; width: 100%; background: var(--grad); transform-origin: left; transform: scaleX(0); }
@media (max-width: 900px) {
  .voyage-track { overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 10px; scrollbar-width: none; }
  .voyage-track::-webkit-scrollbar { display: none; }
  .room { width: 84vw; scroll-snap-align: center; }
  .voyage-meter { display: none; }
}

/* ---------- Playground ---------- */
.playground { position: relative; min-height: 120vh; display: grid; align-items: center; padding-block: 120px; overflow: hidden; }
.pg-stage { position: absolute; inset: 0; perspective: 1000px; pointer-events: none; }
.pg-scene { position: absolute; inset: 0; transform-style: preserve-3d; }
.pg-shape { position: absolute; transform-style: preserve-3d; }
.pg-cube { --s: clamp(90px, 12vw, 180px); top: 14%; right: 12%; width: var(--s); height: var(--s); animation: tumble 18s linear infinite; }
.pg-cube i { position: absolute; inset: 0; border: 1.5px solid rgba(255, 138, 60, .9); background: rgba(255, 138, 60, .07); box-shadow: inset 0 0 30px rgba(255, 79, 216, .3); }
.pg-cube i:nth-child(1) { transform: translateZ(calc(var(--s) / 2)); }
.pg-cube i:nth-child(2) { transform: rotateY(180deg) translateZ(calc(var(--s) / 2)); }
.pg-cube i:nth-child(3) { transform: rotateY(90deg) translateZ(calc(var(--s) / 2)); }
.pg-cube i:nth-child(4) { transform: rotateY(-90deg) translateZ(calc(var(--s) / 2)); }
.pg-cube i:nth-child(5) { transform: rotateX(90deg) translateZ(calc(var(--s) / 2)); }
.pg-cube i:nth-child(6) { transform: rotateX(-90deg) translateZ(calc(var(--s) / 2)); }
.pg-cube-sm { --s: clamp(46px, 5vw, 80px); top: auto; bottom: 16%; right: auto; left: 8%; animation-duration: 12s; animation-direction: reverse; }
.pg-cube-sm i { border-color: var(--teal); background: rgba(47, 240, 214, .07); }
@keyframes tumble { from { transform: rotateX(0) rotateY(0); } to { transform: rotateX(360deg) rotateY(720deg); } }
.pg-ring { top: 56%; right: 26%; width: clamp(140px, 18vw, 280px); aspect-ratio: 1; border-radius: 50%; border: 10px solid transparent; background: linear-gradient(#000, #000) padding-box, var(--grad) border-box; mask: radial-gradient(circle, transparent 62%, #000 63%); -webkit-mask: radial-gradient(circle, transparent 62%, #000 63%); animation: ring 10s linear infinite; opacity: .85; }
.pg-ring-sm { top: 10%; right: auto; left: 30%; width: clamp(60px, 7vw, 110px); animation-duration: 7s; }
@keyframes ring { from { transform: rotateX(68deg) rotateZ(0); } to { transform: rotateX(68deg) rotateZ(360deg); } }
.pg-ball { top: 64%; left: 58%; width: clamp(70px, 8vw, 130px); aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle at 32% 30%, #fff 0, #ff9de9 8%, var(--magenta) 30%, #5b1a8a 70%, #1b0630 100%); box-shadow: 0 0 80px rgba(255, 79, 216, .5); animation: bob 5s ease-in-out infinite; }
.pg-pin { top: 22%; left: 12%; width: clamp(30px, 3.4vw, 54px); aspect-ratio: 1 / 3; background: radial-gradient(ellipse 50% 20% at 50% 12%, #fff 98%, transparent 100%), linear-gradient(transparent 36%, #e0204a 36%, #e0204a 40%, transparent 40%, transparent 43%, #e0204a 43%, #e0204a 47%, transparent 47%), radial-gradient(ellipse 50% 42% at 50% 68%, #fff 98%, transparent 100%), linear-gradient(90deg, transparent 32%, #fff 32%, #fff 68%, transparent 68%); background-size: 100% 100%; filter: drop-shadow(0 0 20px rgba(255, 255, 255, .4)); animation: pinwobble 4s ease-in-out infinite; }
@keyframes pinwobble { 50% { transform: rotate(14deg) translateY(-12px); } }
.pg-copy { position: relative; display: grid; justify-items: start; gap: 26px; }
.pg-copy .lead { max-width: 46ch; color: var(--muted); }
.pg-title { display: grid; gap: 8px; }
.pg-word { position: relative; font: 900 clamp(1.9rem, 8.6vw, 10rem)/.9 var(--score); letter-spacing: -.02em; background: var(--grad-hot); -webkit-background-clip: text; background-clip: text; color: transparent; }
.pg-word::before, .pg-word::after { content: attr(data-word); position: absolute; inset: 0; background: inherit; -webkit-background-clip: text; background-clip: text; color: transparent; opacity: .7; animation: glitch 3.5s infinite steps(1); pointer-events: none; }
.pg-word::after { animation-delay: .25s; filter: hue-rotate(140deg); }
@keyframes glitch { 0%, 88%, 100% { transform: none; clip-path: inset(0 0 100% 0); } 90% { transform: translate(-6px, 2px); clip-path: inset(20% 0 50% 0); } 93% { transform: translate(5px, -2px); clip-path: inset(60% 0 10% 0); } 96% { transform: translate(-3px, 0); clip-path: inset(40% 0 35% 0); } }

/* ---------- Galleria ---------- */
.grid-gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-flow: dense; gap: 14px; }
.shot { margin: 0; position: relative; border-radius: 16px; overflow: hidden; }
.shot-wide { grid-column: span 2; }
.zoom { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.shot img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; transition: transform 1.2s var(--ease), filter .6s; }
.shot-wide img { aspect-ratio: 16 / 7.6; }
.shot:hover img { transform: scale(1.06); filter: saturate(1.2); }
.shot figcaption { position: absolute; left: 14px; right: 14px; bottom: 12px; font-size: .86rem; color: #fff; text-shadow: 0 1px 10px #000; opacity: 0; transform: translateY(8px); transition: .5s var(--ease); pointer-events: none; }
.shot:hover figcaption { opacity: 1; transform: none; }
.gallery-foot { display: grid; justify-items: center; gap: 18px; margin-top: 40px; text-align: center; }
@media (max-width: 999px) { .grid-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .grid-gallery { grid-template-columns: 1fr; } .shot-wide { grid-column: auto; } .shot-wide img { aspect-ratio: 16 / 10; } .shot figcaption { opacity: 1; transform: none; } }

/* ---------- Orari ---------- */
.orari-grid { display: grid; grid-template-columns: 1.1fr 1fr; grid-template-areas: 'head table' 'card table'; gap: 40px clamp(30px, 6vw, 100px); align-items: start; }
.orari-head { grid-area: head; display: grid; gap: 22px; }
.live { display: inline-flex; align-items: center; gap: 12px; justify-self: start; padding: 12px 18px; border-radius: 999px; background: rgba(47, 240, 214, .08); box-shadow: inset 0 0 0 1px rgba(47, 240, 214, .35); font: 1rem var(--mono); letter-spacing: .04em; }
.live b { font-weight: 400; }
.live.is-closed { background: rgba(255, 138, 60, .08); box-shadow: inset 0 0 0 1px rgba(255, 138, 60, .4); }
.live.is-closed .pulse { background: var(--orange); box-shadow: 0 0 12px var(--orange); }
.live.is-closed .pulse::after { border-color: var(--orange); }
.hours { grid-area: table; width: 100%; border-collapse: collapse; font-family: var(--mono); }
.hours tr { position: relative; border-bottom: 1px solid var(--line); transition: background .4s; }
.hours th { padding: 20px 0; text-align: left; font: 400 clamp(.9rem, 1.4vw, 1.1rem)/1 var(--display); text-transform: uppercase; letter-spacing: .06em; }
.hours td { padding: 20px 0 20px 20px; text-align: right; font: 600 clamp(1.1rem, 2vw, 1.6rem)/1 var(--score); font-variant-numeric: tabular-nums; color: var(--muted); }
.hours td:last-child { color: var(--text); }
.hours td + td::before { content: '→'; margin-right: 16px; color: var(--magenta); font-family: var(--body); }
.hours .late td:last-child { color: var(--orange); }
.hours tr.is-today { background: linear-gradient(90deg, rgba(255, 79, 216, .14), transparent); }
.hours tr.is-today th::after { content: 'Oggi'; margin-left: 12px; padding: 4px 8px; border-radius: 6px; background: var(--magenta); color: #12081c; font: 700 .6rem/1 var(--display); vertical-align: middle; }
.hours tr.is-today th { padding-left: 14px; }
.address-card { grid-area: card; display: flex; align-items: center; gap: 28px; padding: 28px; border-radius: var(--radius); background: linear-gradient(150deg, rgba(47, 240, 214, .1), rgba(138, 92, 255, .08)); box-shadow: inset 0 0 0 1px var(--line); transform: rotateX(var(--rx, 0)) rotateY(var(--ry, 0)); transition: transform .6s var(--ease); }
.address-card > div { display: grid; gap: 14px; justify-items: start; }
.addr-label { font: .78rem var(--mono); color: var(--teal); letter-spacing: .2em; text-transform: uppercase; }
.addr { font: 400 clamp(1.1rem, 1.8vw, 1.5rem)/1.35 var(--display); }
.radar { flex: 0 0 auto; width: clamp(110px, 12vw, 170px); fill: none; stroke: rgba(47, 240, 214, .35); stroke-width: 1; }
.radar-sweep { transform-origin: 100px 100px; animation: spin 4s linear infinite; }
.radar-sweep path { fill: rgba(47, 240, 214, .18); stroke: none; }
.radar-dot { fill: var(--magenta); stroke: none; filter: drop-shadow(0 0 8px var(--magenta)); }
@media (max-width: 900px) { .orari-grid { grid-template-columns: 1fr; grid-template-areas: 'head' 'table' 'card'; } .address-card { flex-direction: column; align-items: flex-start; } }

/* ---------- FAQ ---------- */
.faq-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 40px clamp(30px, 6vw, 100px); align-items: start; }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list details:first-child { border-top: 1px solid var(--line); }
.faq-list summary { display: flex; justify-content: space-between; gap: 20px; padding: 24px 0; cursor: pointer; list-style: none; font: 500 1.1rem/1.35 var(--body); }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: '+'; flex: 0 0 auto; color: var(--magenta); font: 1.5rem/1 var(--display); transition: transform .4s var(--ease); }
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list details p { padding-bottom: 26px; color: var(--muted); max-width: 60ch; }
@media (max-width: 900px) { .faq-grid { grid-template-columns: 1fr; } }

/* ---------- Contatti ---------- */
.contact-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(30px, 5vw, 80px); align-items: start; }
.contact-form { display: grid; gap: 18px; padding: clamp(22px, 3vw, 40px); border-radius: var(--radius); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: grid; gap: 8px; }
.field > span { font: .76rem var(--mono); color: var(--muted); letter-spacing: .12em; text-transform: uppercase; }
.field em { font-style: normal; opacity: .7; text-transform: none; letter-spacing: 0; }
input, select, textarea { width: 100%; padding: 15px 16px; border: 1px solid var(--line); border-radius: 12px; background: rgba(0, 0, 0, .3); color: var(--text); font: 400 1rem/1.4 var(--body); transition: border-color .3s, box-shadow .3s; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--magenta); box-shadow: 0 0 0 4px rgba(255, 79, 216, .18); }
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%; background-size: 5px 5px; background-repeat: no-repeat; }
select option { background: #140d22; }
textarea { resize: vertical; }
.is-invalid input, .is-invalid textarea { border-color: var(--orange); }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: .9rem; color: var(--muted); cursor: pointer; }
.check input { flex: 0 0 auto; width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--magenta); }
.check.is-invalid span { color: var(--orange); }
.hp { position: absolute; left: -9999px; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; }
.form-msg { font-size: .92rem; }
.form-msg[data-kind='ok'] { color: var(--teal); }
.form-msg[data-kind='error'] { color: var(--orange); }
.contact-side { display: grid; gap: 36px; }
.contact-list { display: grid; gap: 22px; margin: 0; }
.contact-list dt { font: .74rem var(--mono); color: var(--magenta); letter-spacing: .2em; text-transform: uppercase; margin-bottom: 6px; }
.contact-list dd { margin: 0; }
.socials { display: flex; gap: 18px; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.site-footer { padding-top: 40px; border-top: 1px solid var(--line); background: linear-gradient(to bottom, transparent, rgba(255, 79, 216, .06)); }
.footer-marquee { overflow: hidden; padding-block: 30px 60px; }
.footer-marquee > div { display: flex; width: max-content; animation: marquee 40s linear infinite; }
.footer-marquee span { font: 400 clamp(2rem, 6vw, 5rem)/1 var(--display); text-transform: uppercase; white-space: nowrap; color: transparent; -webkit-text-stroke: 1px rgba(255, 255, 255, .28); }
@keyframes marquee { to { transform: translateX(-50%); } }
.footer-top { display: grid; grid-template-columns: 1.5fr .8fr 1fr 1fr; gap: 40px; padding-bottom: 50px; }
.footer-mark { display: grid; gap: 14px; align-content: start; }
.footer-mark img { width: clamp(200px, 22vw, 280px); }
.footer-addr { color: var(--muted); }
.footer-col { display: grid; gap: 10px; align-content: start; }
.footer-col h3 { font: .76rem var(--mono); color: var(--muted); letter-spacing: .2em; text-transform: uppercase; margin-bottom: 6px; }
.footer-col a, .footer-col span { color: var(--text); text-decoration: none; }
.footer-col a:hover { color: var(--magenta); }
.footer-col small { display: block; color: var(--muted); font-size: .8rem; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; padding-block: 24px 34px; border-top: 1px solid var(--line); color: var(--muted); font-size: .86rem; }
.footer-bottom a { margin-left: 20px; text-decoration: none; }
.footer-bottom a:hover { color: var(--text); }
@media (max-width: 800px) { .footer-top { grid-template-columns: 1fr 1fr; } .footer-mark { grid-column: 1 / -1; } }

/* ---------- Lightbox ---------- */
.lightbox { width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(5, 2, 10, .94); color: var(--text); }
.lightbox::backdrop { background: rgba(0, 0, 0, .6); }
.lightbox[open] { display: grid; place-items: center; }
.lightbox figure { margin: 0; display: grid; gap: 14px; justify-items: center; padding: 70px 70px 30px; }
.lightbox img { max-width: 100%; max-height: calc(100vh - 140px); border-radius: 12px; }
.lightbox figcaption { color: var(--muted); font-size: .95rem; text-align: center; }
.lb-btn { position: absolute; width: 52px; height: 52px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .1); font-size: 1.8rem; line-height: 1; cursor: pointer; transition: background .3s; }
.lb-btn:hover { background: var(--magenta); color: #000; }
.lb-close { top: 18px; right: 18px; }
.lb-prev { left: 18px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 18px; top: 50%; transform: translateY(-50%); }
@media (max-width: 640px) { .lightbox figure { padding: 70px 12px 20px; } .lb-prev, .lb-next { top: auto; bottom: 18px; transform: none; } }

/* ---------- Banner cookie ---------- */
.cookie-banner { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 70; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; max-width: 760px; margin-inline: auto; padding: 16px 20px; border-radius: 16px; background: #140d22; box-shadow: inset 0 0 0 1px var(--line), 0 20px 50px rgba(0, 0, 0, .5); font-size: .9rem; }
.cookie-banner[hidden] { display: none; }
.cookie-banner div { display: flex; gap: 10px; }

/* ---------- Pagine legali ---------- */
.legal { max-width: 760px; margin: 0 auto; padding: 120px var(--gutter); display: grid; gap: 18px; }
.legal h1 { font: 400 2rem/1.1 var(--display); text-transform: uppercase; }
.legal h2 { font: 400 1.1rem/1.2 var(--display); margin-top: 16px; text-transform: uppercase; }
.legal p { color: var(--muted); }
.legal .btn { justify-self: start; margin-top: 20px; }

/* ---------- Movimento ridotto: hero statica, testi in colonna ---------- */
.static-hero .hero { height: auto; }
.static-hero .hero-sticky { position: relative; height: auto; display: flex; flex-direction: column; gap: 60px; padding-bottom: 70px; }
.static-hero #lane3d { height: 100%; opacity: .6; }
.static-hero .chapter { position: relative; inset: auto; opacity: 1 !important; visibility: visible !important; transform: none !important; }
.static-hero .chapter-0 { min-height: 100svh; }
.static-hero .chapter-board .board li { opacity: 1; transform: none; }
.static-hero .chapter-strike, .static-hero .hero-scroll { display: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* Leggibilità del testo sopra la pista */
.chapter-0::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgba(7, 4, 15, .82) 0%, rgba(7, 4, 15, .25) 45%, transparent 70%); }
.hero-sub { text-shadow: 0 2px 18px rgba(0, 0, 0, .8); }
@media (max-width: 560px) { .brand img { height: 28px; } }
/* Titoli divisi in parole: il gradiente va su ogni parola, altrimenti le maschere lo nascondono */
.grad .w-mask { color: var(--text); }
.grad .w { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; padding-right: .04em; }
h2 em.grad:has(.w) { background: none; }
@media (max-width: 560px) {
  .hours th { font-size: .78rem; }
  .hours td { padding-left: 10px; font-size: 1rem; }
  .hours td + td::before { margin-right: 8px; }
  .hours tr.is-today th::after { display: block; width: max-content; margin: 6px 0 0; }
}

/* ================= Sito a più pagine ================= */

/* Titolo della home: il nome resta grande, la frase SEO sta sotto in piccolo */
.ht-tag { display: block; margin-top: .9em; font: 400 clamp(.74rem, 1.2vw, 1.05rem)/1.35 var(--display); letter-spacing: .14em; color: var(--text); text-shadow: 0 2px 14px rgba(0, 0, 0, .8); }
.pg-h2 { font: 400 clamp(1.2rem, 2.2vw, 1.9rem)/1.15 var(--display); text-transform: uppercase; max-width: 26ch; }

/* Percorso sopra la testata */
.crumbs { display: flex; gap: 10px; padding-top: 112px; color: var(--muted); font: .74rem/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--text); }
.crumbs [aria-current] { color: var(--glow-a); }

/* Testata delle pagine interne: testo a sinistra, render inclinato e oggetto 3D a destra */
.page-hero { position: relative; display: grid; align-items: center; min-height: calc(100svh - 112px); padding-block: 34px clamp(60px, 8vw, 110px); }
.ph-grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(30px, 5vw, 90px); align-items: center; }
.ph-copy { display: grid; gap: 22px; justify-items: start; }
.ph-copy h1 { font: 400 clamp(1.7rem, 3.1vw, 3.2rem)/1.08 var(--display); letter-spacing: -.01em; text-transform: uppercase; }
.ph-copy .lead { font-size: clamp(1.05rem, .98rem + .35vw, 1.28rem); }
.ph-copy p:not(.lead):not(.eyebrow) { color: var(--muted); max-width: 62ch; }
.ph-copy .hero-actions { margin-top: 8px; }
.ph-card { --rx: 0deg; --ry: 0deg; position: relative; margin: 0; border-radius: var(--radius); overflow: hidden; transform: perspective(1400px) rotateX(var(--rx)) rotateY(calc(var(--ry) - 9deg)); box-shadow: -30px 40px 100px -40px var(--glow-a), inset 0 0 0 1px var(--line); transition: transform .6s var(--ease); }
.ph-card.is-tilting { transition: transform .12s linear; }
.ph-card img { width: 100%; aspect-ratio: 4 / 4.4; object-fit: cover; }
.ph-card::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(200deg, transparent 55%, rgba(7, 4, 15, .6)); }
.ph-object { position: absolute; z-index: 2; right: max(12px, calc((100vw - 1440px) / 2 + 12px)); bottom: 2%; width: min(32vw, 470px); aspect-ratio: 1; pointer-events: none; }
.ph-object canvas { display: block; width: 100%; height: 100%; opacity: 0; transition: opacity 1s ease; }
.ph-object canvas.is-ready { opacity: 1; }
.ph-solo .ph-object { top: 50%; bottom: auto; right: max(var(--gutter), calc((100vw - 1440px) / 2 + var(--gutter))); width: min(46vw, 660px); transform: translateY(-46%); }
@media (max-width: 900px) {
  .crumbs { padding-top: 96px; }
  .page-hero { min-height: 0; }
  .ph-grid { grid-template-columns: 1fr; }
  .ph-card img { aspect-ratio: 16 / 11; }
  .ph-card { transform: perspective(1400px) rotateY(-5deg); }
  .ph-object { right: -4vw; bottom: auto; top: auto; width: min(62vw, 360px); margin-top: -40px; position: relative; justify-self: end; grid-row: 2; }
  .page-hero:not(.ph-solo) .ph-object { position: absolute; bottom: 20px; }
  .ph-solo .ph-object { position: relative; order: 2; transform: none; width: min(86vw, 440px); right: auto; margin: 10px auto 0; }
  .ph-solo { display: flex; flex-direction: column; }
}

/* Blocchi delle attività: foto e testo alternati, la foto si apre come una porta */
.feature { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(30px, 6vw, 100px); align-items: center; padding-block: clamp(36px, 5vw, 70px); perspective: 1600px; scroll-margin-top: 100px; }
.feature:nth-of-type(even) > :first-child { order: 2; }
.feature-media { --rx: 0deg; --ry: 0deg; position: relative; margin: 0; border-radius: var(--radius); overflow: hidden; transform: rotateX(var(--rx)) rotateY(var(--ry)); box-shadow: 0 40px 90px -40px rgba(0, 0, 0, .9), 0 30px 80px -50px var(--glow-a), inset 0 0 0 1px var(--line); transition: transform .6s var(--ease); }
.feature-media.is-tilting { transition: transform .12s linear; }
.feature-media .zoom { overflow: hidden; }
.feature-media img { width: 100%; aspect-ratio: 16 / 11; object-fit: cover; transform: scale(1.12); }
.feature-media::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(500px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, .14), transparent 40%); opacity: 0; transition: opacity .4s; }
.feature-media:hover::after { opacity: 1; }
.feature-copy { display: grid; gap: 18px; justify-items: start; }
.feature-copy p { color: var(--muted); max-width: 60ch; }
.feature-n { font: 800 clamp(2.6rem, 5vw, 4.6rem)/1 var(--score); color: transparent; -webkit-text-stroke: 1px var(--line-strong); letter-spacing: .02em; }
.section .feature h2 { max-width: 22ch; font-size: clamp(1.4rem, 2.5vw, 2.3rem); line-height: 1.12; }
.feature-glyph { position: relative; display: grid; place-content: center; justify-items: center; gap: 14px; aspect-ratio: 16 / 11; border-radius: var(--radius); overflow: hidden; text-align: center; background: radial-gradient(70% 80% at 30% 20%, color-mix(in srgb, var(--glow-a) 32%, transparent), transparent 70%), radial-gradient(70% 80% at 80% 90%, color-mix(in srgb, var(--glow-b) 36%, transparent), transparent 70%), #0e0819; box-shadow: inset 0 0 0 1px var(--line); }
.feature-glyph::before { content: ''; position: absolute; inset: 0; background: repeating-linear-gradient(90deg, rgba(255, 255, 255, .05) 0 1px, transparent 1px 60px), repeating-linear-gradient(0deg, rgba(255, 255, 255, .05) 0 1px, transparent 1px 60px); mask: radial-gradient(circle, #000, transparent 75%); -webkit-mask: radial-gradient(circle, #000, transparent 75%); }
.feature-glyph span { position: relative; font: 900 clamp(4rem, 11vw, 9rem)/.9 var(--score); background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 0 30px rgba(255, 79, 216, .45)); animation: glow 4s ease-in-out infinite; }
.feature-glyph small { position: relative; font: .8rem/1.4 var(--mono); letter-spacing: .24em; text-transform: uppercase; color: var(--muted); }
@keyframes glow { 50% { filter: drop-shadow(0 0 50px rgba(47, 240, 214, .55)); transform: scale(1.03); } }
@media (max-width: 900px) {
  .feature { grid-template-columns: 1fr; gap: 26px; }
  .feature:nth-of-type(even) > :first-child { order: 0; }
}

/* Tre passi per la festa */
.steps-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 2vw, 26px); margin: 0; padding: 0; list-style: none; perspective: 1400px; }
.steps-list li { --rx: 0deg; --ry: 0deg; position: relative; display: grid; gap: 18px; align-content: start; padding: clamp(24px, 3vw, 40px); border-radius: var(--radius); background: linear-gradient(160deg, rgba(255, 255, 255, .08), rgba(255, 255, 255, .02)); box-shadow: inset 0 0 0 1px var(--line); transform: rotateX(var(--rx)) rotateY(var(--ry)); transition: transform .6s var(--ease); }
.steps-list li.is-tilting { transition: transform .12s linear; }
.step-n { font: 900 clamp(3rem, 6vw, 5rem)/1 var(--score); background: var(--grad-hot); -webkit-background-clip: text; background-clip: text; color: transparent; }
.steps-list p { font-size: 1.08rem; }
@media (max-width: 800px) { .steps-list { grid-template-columns: 1fr; } }

/* Continua a giocare: collegamenti alle altre attività */
.more-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 16px; perspective: 1400px; }
.more-card { --rx: 0deg; --ry: 0deg; display: grid; grid-template-rows: auto 1fr; border-radius: 18px; overflow: hidden; text-decoration: none; background: rgba(255, 255, 255, .04); box-shadow: inset 0 0 0 1px var(--line); transform: rotateX(var(--rx)) rotateY(var(--ry)); transition: transform .6s var(--ease), box-shadow .5s; }
.more-card.is-tilting { transition: transform .12s linear, box-shadow .5s; }
.more-card:hover { box-shadow: inset 0 0 0 1px rgba(255, 79, 216, .6), 0 30px 70px -30px var(--magenta); }
.more-media { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; background: radial-gradient(100% 100% at 30% 20%, rgba(255, 138, 60, .45), transparent 60%), radial-gradient(100% 100% at 90% 90%, rgba(255, 79, 216, .5), transparent 60%), #1a0b22; }
.more-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.more-card:hover .more-media img { transform: scale(1.08); }
.more-body { display: grid; gap: 6px; padding: 18px 20px 22px; }
.more-body b { font: 400 .95rem/1.2 var(--display); text-transform: uppercase; letter-spacing: .04em; }
.more-body span { color: var(--muted); font-size: .92rem; }
.more-blobs i { position: absolute; border-radius: 50%; animation: bounce 1.6s cubic-bezier(.5, 0, .5, 1) infinite alternate; }
.more-blobs i:nth-child(1) { left: 18%; bottom: 14%; width: 26%; aspect-ratio: 1; background: radial-gradient(circle at 30% 30%, #ffd2a8, var(--orange) 50%, #8a2c00); }
.more-blobs i:nth-child(2) { left: 46%; bottom: 14%; width: 18%; aspect-ratio: 1; background: radial-gradient(circle at 30% 30%, #b8fff5, var(--teal) 50%, #006a5c); animation-delay: -.5s; }
.more-blobs i:nth-child(3) { left: 66%; bottom: 14%; width: 22%; aspect-ratio: 1; background: radial-gradient(circle at 30% 30%, #ffd0f4, var(--magenta) 50%, #6a0a55); animation-delay: -1s; }
@keyframes bounce { from { transform: translateY(0) scale(1.12, .86); } 30% { transform: translateY(-20%) scale(.96, 1.06); } to { transform: translateY(-60%) scale(1); } }

/* Fascia finale: preventivo e indicazioni */
.cta-band { position: relative; padding-block: clamp(40px, 6vw, 80px) clamp(70px, 9vw, 120px); }
.cta-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 30px; }
.cta-inner > div:first-child { display: grid; gap: 16px; max-width: 760px; }
.cta-title { font: 400 clamp(1.4rem, 3vw, 2.6rem)/1.15 var(--display); text-transform: uppercase; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.cta-band .wrap { padding-block: clamp(30px, 4vw, 56px); border-radius: calc(var(--radius) + 8px); background: radial-gradient(80% 140% at 0% 0%, rgba(255, 138, 60, .22), transparent 60%), radial-gradient(80% 140% at 100% 100%, rgba(255, 79, 216, .25), transparent 60%), rgba(255, 255, 255, .03); box-shadow: inset 0 0 0 1px var(--line); max-width: calc(1440px - 2 * var(--gutter)); width: calc(100% - 2 * var(--gutter)); }

/* Area bimbi: quattro card con icone che rimbalzano */
.kids-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(14px, 2vw, 24px); perspective: 1400px; }
.kid-card { --rx: 0deg; --ry: 0deg; display: grid; gap: 16px; align-content: start; justify-items: start; padding: clamp(26px, 3.4vw, 46px); border-radius: var(--radius); background: radial-gradient(90% 90% at 0% 0%, rgba(255, 138, 60, .16), transparent 60%), rgba(255, 255, 255, .04); box-shadow: inset 0 0 0 1px var(--line); transform: rotateX(var(--rx)) rotateY(var(--ry)); transition: transform .6s var(--ease); }
.kid-card.is-tilting { transition: transform .12s linear; }
.section .kid-card h2 { font-size: clamp(1.2rem, 2vw, 1.7rem); line-height: 1.15; max-width: 22ch; }
.kid-card p { color: var(--muted); }
.kid-icon { position: relative; width: 64px; height: 64px; }
.kid-icon::before, .kid-icon::after { content: ''; position: absolute; }
.kid-jump::before { left: 14px; bottom: 0; width: 36px; height: 36px; border-radius: 50%; background: radial-gradient(circle at 30% 30%, #ffd2a8, var(--orange) 55%, #8a2c00); animation: bounce .8s cubic-bezier(.5, 0, .5, 1) infinite alternate; }
.kid-jump::after { left: 8px; right: 8px; bottom: -4px; height: 4px; border-radius: 50%; background: rgba(0, 0, 0, .5); }
.kid-shield::before { inset: 4px 10px; border-radius: 10px 10px 50% 50%; background: linear-gradient(160deg, var(--teal), #0a6d63); box-shadow: 0 0 24px rgba(47, 240, 214, .5); }
.kid-shield::after { left: 25px; top: 18px; width: 12px; height: 22px; border: solid #07040f; border-width: 0 4px 4px 0; transform: rotate(45deg); }
.kid-rain::before { left: 6px; top: 8px; width: 52px; height: 26px; border-radius: 26px; background: linear-gradient(#fff, #c9c0ff); box-shadow: 10px -10px 0 -2px #e8e2ff; }
.kid-rain::after { left: 14px; top: 40px; width: 4px; height: 12px; border-radius: 2px; background: var(--teal); box-shadow: 12px 6px 0 var(--teal), 24px 0 0 var(--teal), 36px 6px 0 var(--teal); animation: rain 1s linear infinite; }
@keyframes rain { from { transform: translateY(-6px); opacity: 0; } 30% { opacity: 1; } to { transform: translateY(10px); opacity: 0; } }
.kid-cake::before { left: 8px; right: 8px; bottom: 4px; height: 30px; border-radius: 8px; background: repeating-linear-gradient(0deg, var(--magenta) 0 8px, #ffd0f4 8px 12px); }
.kid-cake::after { left: 30px; top: 6px; width: 5px; height: 20px; border-radius: 2px; background: #fff; box-shadow: 0 -8px 10px -2px var(--orange); animation: flame .4s ease-in-out infinite alternate; }
@keyframes flame { to { box-shadow: 0 -10px 14px 0 var(--yellow, #ffd23c); } }
.kids-note { margin-top: 28px; }
.kids-note p { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: baseline; padding: 18px 22px; border-radius: 16px; background: rgba(255, 138, 60, .1); box-shadow: inset 0 0 0 1px rgba(255, 138, 60, .4); color: var(--muted); }
.kids-note b { color: var(--orange); font: 400 .8rem/1 var(--display); letter-spacing: .1em; text-transform: uppercase; }
@media (max-width: 800px) { .kids-grid { grid-template-columns: 1fr; } }

/* Contatti e orari */
.orari-grid { grid-template-areas: 'head table'; }
@media (max-width: 900px) { .orari-grid { grid-template-areas: 'head' 'table'; } }
.contact-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.orari-note { margin-top: 30px; max-width: 70ch; color: var(--muted); }
.route { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }
.route li { display: grid; gap: 4px; padding-left: 20px; border-left: 2px solid var(--glow-a); color: var(--muted); }
.route b { color: var(--text); font: 400 .8rem/1.2 var(--display); letter-spacing: .1em; text-transform: uppercase; }
.contact-grid > .section-head { margin-bottom: 0; }
.contact-grid .contact-list { margin-top: 18px; }

@media (max-width: 1000px) { .footer-top { grid-template-columns: 1fr 1fr; } .footer-mark { grid-column: 1 / -1; } }
.orari-head .address-card { grid-area: auto; }
/* Il blur della barra farebbe da contenitore al menu fisso: a menu aperto si toglie */
body.menu-open .nav { backdrop-filter: none; -webkit-backdrop-filter: none; background: transparent; box-shadow: none; }
@media (max-width: 1180px) {
  .nav-menu { justify-content: flex-start; overflow-y: auto; padding-top: 110px; }
  .nav-links a { font-size: clamp(1.1rem, 5vw, 1.7rem); padding: 13px 0; }
}


/* ================= Esperienza ================= */

/* Cielo stellato dietro a tutto */
.space { position: fixed; inset: 0; z-index: 0; width: 100%; height: 100%; pointer-events: none; }

/* Sipario: caricamento e cambio pagina. Si apre e si chiude come un cerchio */
@property --r { syntax: '<percentage>'; inherits: false; initial-value: 0%; }
.curtain { --r: 0%; --cx: 50%; --cy: 50%; position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; visibility: hidden; pointer-events: none; clip-path: circle(var(--r) at var(--cx) var(--cy)); background: radial-gradient(60% 60% at 20% 15%, rgba(255, 79, 216, .35), transparent 70%), radial-gradient(60% 60% at 85% 90%, rgba(47, 240, 214, .25), transparent 70%), radial-gradient(50% 50% at 80% 10%, rgba(138, 92, 255, .35), transparent 70%), #07040f; }
.curtain.is-on, .is-loading .curtain, .is-entering .curtain { visibility: visible; pointer-events: auto; }
.is-loading .curtain, .is-entering .curtain { --r: 150%; animation: curtain-failsafe 0s 7s forwards; }
@keyframes curtain-failsafe { to { visibility: hidden; pointer-events: none; } }
.curtain-inner { display: grid; justify-items: center; gap: 26px; }
.curtain-inner img { width: clamp(180px, 26vw, 320px); filter: drop-shadow(0 0 30px rgba(255, 79, 216, .6)); }
.curtain-count { display: flex; align-items: baseline; gap: 12px; font: .74rem/1 var(--mono); letter-spacing: .3em; text-transform: uppercase; color: var(--muted); }
.curtain-count b { min-width: 1.4em; text-align: right; font: 900 clamp(2.4rem, 6vw, 4rem)/1 var(--score); background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.curtain-count[hidden] { display: none; }
.is-loading body, .is-entering body { overflow: hidden; }

/* Velocità di scroll: le foto si inclinano appena */
.grid-gallery .shot { transform: skewY(var(--skew, 0deg)); will-change: transform; }
.footer-marquee > div { will-change: transform; }
.footer-marquee span { -webkit-text-stroke-color: color-mix(in srgb, #fff calc(28% + var(--speed, 0) * 60%), transparent); }

/* Attività impilate (solo desktop, attivate da JS se ogni blocco sta nello schermo) */
.features.is-stack .wrap { perspective: 1800px; }
.features.is-stack .feature { position: sticky; top: calc(92px + var(--i, 0) * 12px); margin-bottom: 28px; padding: clamp(26px, 3vw, 46px); border-radius: calc(var(--radius) + 10px); background: linear-gradient(160deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .015)), #0c0718; box-shadow: inset 0 0 0 1px var(--line), 0 -30px 80px -40px rgba(0, 0, 0, .9); will-change: transform; }
.features.is-stack .feature:last-of-type { margin-bottom: 0; }
.features.is-stack .feature-media img, .features.is-stack .feature-glyph { aspect-ratio: 16 / 10; }

/* Testata interna: oggetto più grande, foto con profondità */
.ph-object { width: min(36vw, 540px); }
.ph-card img { transform: scale(1.12); will-change: transform; }
.ph-hint { display: inline-flex; align-items: center; gap: 10px; color: var(--muted); font: .7rem/1 var(--mono); letter-spacing: .2em; text-transform: uppercase; }
.ph-hint::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--glow-a); box-shadow: 0 0 12px var(--glow-a); animation: pulse-dot 1.6s ease-in-out infinite; }
.ph-object .ph-hint { position: absolute; left: 50%; bottom: 2px; transform: translateX(-50%); white-space: nowrap; text-shadow: 0 1px 8px #000; }
@media (pointer: coarse) { .ph-hint { display: none; } }
@keyframes pulse-dot { 50% { transform: scale(1.8); opacity: .4; } }
@media (max-width: 900px) { .ph-object { width: min(62vw, 360px); } .ph-solo .ph-object { width: min(86vw, 440px); } }

/* Link del menu: la parola sale e viene sostituita da se stessa in colore */
@media (min-width: 1181px) {
  .nav-links a .nav-short { display: inline-block; transition: transform .5s var(--ease), text-shadow .5s; }
  .nav-links a:hover .nav-short { transform: translateY(-2px); text-shadow: 0 0 16px var(--magenta); }
}
/* Barra che si compatta dopo il primo scroll */
.site-header { transition: padding .6s var(--ease); }
.site-header.is-scrolled { padding-block: 8px; }
.site-header.is-scrolled .nav { background: rgba(12, 7, 22, .78); }

/* Card: bordo di luce che gira al passaggio del mouse */
@property --spin { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
.more-card, .kid-card, .steps-list li { position: relative; }
.more-card::before, .kid-card::before, .steps-list li::before { content: ''; position: absolute; inset: 0; z-index: 2; border-radius: inherit; padding: 1.5px; background: conic-gradient(from var(--spin), transparent 0 60%, var(--magenta), var(--teal), transparent 95%); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); opacity: 0; transition: opacity .5s; pointer-events: none; animation: spin-border 3.5s linear infinite paused; }
.more-card:hover::before, .kid-card:hover::before, .steps-list li:hover::before { opacity: 1; animation-play-state: running; }
@keyframes spin-border { to { --spin: 360deg; } }

/* Niente sforamenti laterali su mobile */
html { overflow-x: clip; }
@media (max-width: 900px) { .page-hero:not(.ph-solo) .ph-object { right: 0; } .page-hero { overflow-x: clip; } }


/* ================= Telefono e popup dell'apertura ================= */
.addr-tel, .footer-tel, .contact-tel { color: var(--teal); font: 400 1rem/1.2 var(--display); letter-spacing: .06em; text-decoration: none; }
.addr-tel:hover, .footer-tel:hover, .contact-tel:hover { color: var(--text); }
.footer-tel { justify-self: start; }

.opening { width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 20px; border: 0; background: transparent; color: var(--text); overflow: auto; perspective: 1400px; }
.opening[open] { display: grid; place-items: center; }
.opening::backdrop { background: radial-gradient(70% 70% at 50% 40%, rgba(138, 92, 255, .25), transparent 70%), rgba(5, 2, 10, .78); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.opening-card { position: relative; display: grid; justify-items: center; gap: 18px; width: min(560px, 100%); padding: clamp(34px, 5vw, 56px) clamp(22px, 4vw, 48px) clamp(28px, 4vw, 44px); border-radius: calc(var(--radius) + 10px); overflow: hidden; text-align: center; background: radial-gradient(90% 70% at 15% 0%, rgba(255, 79, 216, .32), transparent 60%), radial-gradient(90% 70% at 100% 100%, rgba(47, 240, 214, .22), transparent 60%), #0c0718; box-shadow: inset 0 0 0 1px var(--line-strong), 0 40px 120px -30px rgba(255, 79, 216, .55); }
.opening-card::before { content: ''; position: absolute; inset: 0; border-radius: inherit; padding: 1.5px; background: conic-gradient(from var(--spin), transparent 0 55%, var(--magenta), var(--teal), transparent 95%); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); animation: spin-border 4s linear infinite; pointer-events: none; }
.opening-close { position: absolute; top: 14px; right: 14px; z-index: 2; width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .08); font-size: 1.6rem; line-height: 1; cursor: pointer; transition: background .3s, color .3s; }
.opening-close:hover { background: var(--magenta); color: #12081c; }
.opening-logo { position: relative; width: clamp(170px, 34vw, 230px); }
.opening-kicker { position: relative; display: inline-flex; align-items: center; gap: 10px; color: var(--teal); font: .72rem/1 var(--mono); letter-spacing: .24em; text-transform: uppercase; }
.opening-title { position: relative; display: grid; gap: 6px; }
.opening-title span { font: 400 clamp(.9rem, 2.4vw, 1.1rem)/1 var(--display); letter-spacing: .3em; text-transform: uppercase; color: var(--muted); }
.opening-title b { font: 900 clamp(1.9rem, 7vw, 3.2rem)/1.02 var(--score); background: var(--grad-hot); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 0 24px rgba(255, 79, 216, .45)); }
.opening-count { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; width: 100%; margin: 0; }
.opening-count span { display: grid; gap: 6px; padding: 12px 4px; border-radius: 12px; background: rgba(255, 255, 255, .05); box-shadow: inset 0 0 0 1px var(--line); color: var(--muted); font: .62rem/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; }
.opening-count b { color: var(--text); font: 700 clamp(1.3rem, 4.4vw, 1.9rem)/1 var(--score); font-variant-numeric: tabular-nums; letter-spacing: 0; }
.opening-text { position: relative; max-width: 40ch; color: var(--muted); }
.opening-actions { position: relative; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.opening-stars i { position: absolute; width: 3px; height: 3px; border-radius: 50%; background: #fff; box-shadow: 0 0 8px #fff; animation: twinkle 2.4s ease-in-out infinite; }
.opening-stars i:nth-child(1) { top: 14%; left: 12%; }
.opening-stars i:nth-child(2) { top: 26%; right: 18%; animation-delay: -.6s; }
.opening-stars i:nth-child(3) { bottom: 22%; left: 8%; animation-delay: -1.2s; }
.opening-stars i:nth-child(4) { bottom: 12%; right: 10%; animation-delay: -1.8s; }
.opening-stars i:nth-child(5) { top: 8%; left: 55%; animation-delay: -.9s; }
.opening-stars i:nth-child(6) { top: 48%; right: 5%; animation-delay: -1.5s; }
@keyframes twinkle { 50% { opacity: .2; transform: scale(.5); } }
@media (max-width: 480px) { .opening-actions .btn { flex: 1 1 100%; } }
.contact-grid > .section-head { grid-template-columns: minmax(0, 1fr); }

/* Popup apertura: versione compatta */
.opening-card { gap: 12px; width: min(400px, 100%); padding: 30px 22px 24px; border-radius: var(--radius); }
.opening-close { top: 8px; right: 8px; width: 36px; height: 36px; font-size: 1.3rem; }
.opening-logo { width: 140px; }
.opening-kicker { font-size: .62rem; letter-spacing: .2em; }
.opening-title { gap: 4px; }
.opening-title span { font-size: .8rem; }
.opening-title b { font-size: clamp(1.5rem, 6vw, 2rem); }
.opening-count { gap: 6px; }
.opening-count span { gap: 4px; padding: 8px 2px; border-radius: 10px; font-size: .52rem; }
.opening-count b { font-size: clamp(1.05rem, 4vw, 1.3rem); }
.opening-actions { gap: 8px; margin-top: 4px; }
@media (max-width: 480px) { .opening-actions .btn { flex: 1 1 auto; } .opening-card { width: min(340px, 100%); } }
.opening-kicker { white-space: nowrap; gap: 8px; }
.opening-kicker .pulse { width: 6px; height: 6px; }
.opening-actions .btn { white-space: nowrap; }

/* Contatti: il titolo resta nella sua colonna e non invade il modulo */
.contact-grid > .section-head h2 { font-size: clamp(1.8rem, 2.8vw, 2.9rem); }

/* WhatsApp: link nei recapiti e pulsante click to chat */
.wa-ico { width: 1.15em; height: 1.15em; flex: none; }
.footer-wa, .addr-wa, .contact-wa { display: inline-flex; align-items: center; gap: 8px; }
.wa-fab { position: fixed; right: clamp(14px, 2vw, 26px); bottom: clamp(14px, 2vw, 26px); z-index: 45; display: inline-flex; align-items: center; gap: 10px; height: 52px; padding: 0 20px 0 15px; border-radius: 999px; background: radial-gradient(120% 140% at 0% 0%, rgba(47, 240, 214, .28), transparent 60%), #0c0718; color: var(--text); font: 600 .72rem/1 var(--display); letter-spacing: .08em; text-transform: uppercase; text-decoration: none; box-shadow: inset 0 0 0 1.5px rgba(47, 240, 214, .55), 0 14px 40px -12px rgba(47, 240, 214, .7); transition: transform .5s var(--ease), box-shadow .5s var(--ease), opacity .5s; }
.wa-fab .wa-ico { width: 24px; height: 24px; color: var(--teal); }
.wa-fab::after { content: ''; position: absolute; inset: -1px; border-radius: inherit; box-shadow: 0 0 0 1px var(--teal); opacity: 0; animation: wa-ring 3.2s 2s infinite; pointer-events: none; }
.wa-fab:hover { transform: translateY(-3px); box-shadow: inset 0 0 0 1.5px var(--teal), 0 18px 50px -12px var(--teal); }
@keyframes wa-ring { 0% { opacity: .8; transform: scale(1); } 70%, 100% { opacity: 0; transform: scale(1.25); } }
.is-loading .wa-fab, .is-entering .wa-fab { opacity: 0; }
@media (max-width: 700px) { .wa-fab { width: 54px; height: 54px; padding: 0; justify-content: center; } .wa-fab span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); } .wa-fab .wa-ico { width: 26px; height: 26px; } }
@media (prefers-reduced-motion: reduce) { .wa-fab::after { animation: none; } }
.footer-col p { white-space: nowrap; }
@media (max-width: 700px) { .footer-bottom { padding-bottom: 76px; } }

/* Prestazioni: velo scuro sulle schede coperte (sostituisce il filtro) e animazioni ferme fuori schermo */
.features.is-stack .feature::after { content: ''; position: absolute; inset: 0; border-radius: inherit; background: #05030a; opacity: var(--dim, 0); pointer-events: none; }
.is-off *, .is-off *::before, .is-off *::after { animation-play-state: paused !important; }

/* WhatsApp: pulsante tondo e compatto, si nasconde mentre scorri verso il basso e sul footer */
.wa-fab { width: 52px; height: 52px; padding: 0; justify-content: center; transition: transform .5s var(--ease), box-shadow .5s var(--ease), opacity .4s; }
.wa-fab span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wa-fab .wa-ico { width: 25px; height: 25px; }
.wa-fab::after { content: none; animation: none; }
.wa-fab.is-hidden { opacity: 0; transform: translateY(130%); pointer-events: none; }
@media (max-width: 700px) { .wa-fab { width: 48px; height: 48px; right: 12px; bottom: 12px; } .footer-bottom { padding-bottom: 0; } }

/* Credits: logo Alessio Fusè con zoom all'hover */
.footer-bottom .credits a { display: inline-flex; align-items: center; gap: .5em; margin-left: 0; text-decoration: none; }
.footer-bottom .credits img { display: block; width: auto; height: 22px; transition: transform .3s cubic-bezier(.34, 1.56, .64, 1); transform-origin: center; }
.footer-bottom .credits a:hover img, .footer-bottom .credits a:focus-visible img { transform: scale(1.35); }
@media (prefers-reduced-motion: reduce) { .footer-bottom .credits img { transition: none; } }
/* credits responsive */
.footer-bottom { align-items: center; }
.footer-bottom p { margin: 0; }
.footer-bottom .credits { line-height: 0; }
@media (max-width: 700px) {
  .footer-bottom { flex-direction: column; justify-content: center; text-align: center; gap: 14px; padding-block: 22px 28px; }
  .footer-bottom .credits img { height: 26px; }
}
/* small phones: long uppercase words in headings */
.section-head { grid-template-columns: minmax(0, 1fr); }
@media (max-width: 400px) {
  .section h2, .section .h2 { font-size: min(2rem, 7.8vw); }
  .section h2, .section h3, .section .h2 { overflow-wrap: break-word; hyphens: auto; }
}
/* tour virtuale (coming soon) */
.tour { margin-top: clamp(40px, 6vw, 72px); }
.tour-frame { position: relative; aspect-ratio: 16 / 9; border-radius: calc(var(--radius) + 8px); overflow: hidden; box-shadow: inset 0 0 0 1px var(--line); background: radial-gradient(70% 90% at 15% 10%, rgba(138, 92, 255, .32), transparent 60%), radial-gradient(70% 90% at 90% 100%, rgba(255, 79, 216, .26), transparent 60%), url(/img/corridoio-portale-800.webp) center / cover; }
.tour-frame::before { content: ''; position: absolute; inset: 0; background: rgba(7, 4, 15, .72); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.tour-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; z-index: 1; }
.tour-soon { position: relative; z-index: 1; height: 100%; display: grid; place-content: center; justify-items: center; gap: 14px; padding: 24px; text-align: center; }
.tour-ico { width: clamp(48px, 7vw, 76px); fill: none; stroke: var(--teal); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 0 10px rgba(47, 240, 214, .6)); }
.tour-title { margin: 0; font: 400 clamp(2rem, 6vw, 4.6rem)/1 var(--display); text-transform: uppercase; background: linear-gradient(90deg, var(--magenta), var(--violet), var(--teal)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.tour-text { margin: 0; max-width: 40ch; color: var(--muted); }
@media (max-width: 600px) { .tour-frame { aspect-ratio: 4 / 5; } }
/* mobile/tablet: il 3D apre la pagina, sopra il titolo; mai sopra foto o testi */
@media (max-width: 900px) {
  .page-hero:not(.ph-solo) { grid-template-columns: minmax(0, 1fr); padding-top: 8px; padding-bottom: 28px; }
  .page-hero:not(.ph-solo) > .wrap { grid-row: 2; }
  .page-hero:not(.ph-solo) .ph-object { position: relative; grid-row: 1; inset: auto; justify-self: center; width: min(52vw, 230px); margin: 0 auto 6px; }
}
.lightbox figcaption { display: none; }
/* Biliardo, solo telefono/tablet: il 3D sta tra i pulsanti e la prima foto */
@media (max-width: 900px) {
  .page-hero:has(#object3d[data-object="billiard"]) > .ph-grid { display: contents; }
  .page-hero:has(#object3d[data-object="billiard"]) .ph-copy { grid-row: 1; width: 100%; max-width: 1440px; margin-inline: auto; padding-inline: var(--gutter); }
  .page-hero:has(#object3d[data-object="billiard"]) .ph-object { grid-row: 2; margin: -8px auto -14px; }
  .page-hero:has(#object3d[data-object="billiard"]) .ph-card { grid-row: 3; width: calc(100% - 2 * var(--gutter)); justify-self: center; }
}
