/* Bowling Chiusi — warm white with the royal blue of the staff polos and the orange of the ball.
   The hero, article headers and footer sit on deep navy so the film and photos stay the stars. */

@font-face { font-family: 'Unbounded'; src: url('/fonts/unbounded-latin.woff2') format('woff2'); font-weight: 200 900; font-display: swap; }
@font-face { font-family: 'Inter'; src: url('/fonts/inter-latin.woff2') format('woff2'); font-weight: 100 900; font-display: swap; }

:root {
  --bg: #f7f5f0;
  --bg-2: #eeeae1;
  --surface: #ffffff;
  --navy: #0f1d3d;
  --line: rgba(19, 32, 61, .10);
  --line-2: rgba(19, 32, 61, .18);
  --tint: rgba(19, 32, 61, .04);
  --tint-2: rgba(19, 32, 61, .08);
  --glass: rgba(255, 255, 255, .82);
  --text: #13203d;
  --muted: #4f5b75;
  --dim: #78829a;
  --blue: #1f4fd8;
  --accent: #f0650a;
  --accent-text: #d4540a;
  --green: #22c55e;
  --grad: linear-gradient(120deg, #f0650a 0%, #ff8f2e 100%);
  --shadow: 0 24px 60px -30px rgba(15, 29, 61, .35);
  --radius: 22px;
  --radius-sm: 12px;
  --head: 'Unbounded', 'Arial Black', system-ui, sans-serif;
  --body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --nav-h: 76px;
}

/* ---------- dark palette (default; the light one above stays available from /admin → Aspetto del sito) ---------- */
html[data-theme="dark"] {
  --bg: #0a101d;
  --bg-2: #0e1628;
  --surface: #131c31;
  --navy: #070b14;
  --line: rgba(255, 255, 255, .09);
  --line-2: rgba(255, 255, 255, .17);
  --tint: rgba(255, 255, 255, .05);
  --tint-2: rgba(255, 255, 255, .10);
  --glass: rgba(19, 28, 49, .72);
  --text: #f1f4fa;
  --muted: #a9b3c7;
  --dim: #7a8499;
  --blue: #6b9bff;
  --accent: #ff7a1a;
  --accent-text: #ff8a2a;
  --grad: linear-gradient(120deg, #ff6a0d 0%, #ff9a3c 100%);
  --shadow: 0 24px 60px -30px rgba(0, 0, 0, .8);
  color-scheme: dark;
}
html[data-theme="dark"] .nav.scrolled { background: rgba(10, 16, 29, .84); }
html[data-theme="dark"] body.menu-open .nav {
  --text: #f1f4fa; --muted: #a9b3c7; --line: rgba(255, 255, 255, .09); --line-2: rgba(255, 255, 255, .17);
  --tint: rgba(255, 255, 255, .05); --tint-2: rgba(255, 255, 255, .10); --accent-text: #ff8a2a;
}
html[data-theme="dark"] .book-form input:not([type="radio"]), html[data-theme="dark"] .book-form select, html[data-theme="dark"] .book-form textarea { color-scheme: dark; }
html[data-theme="dark"] .book-form select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%23a9b3c7' stroke-width='2'/%3E%3C/svg%3E"); }
html[data-theme="dark"] .info-icon, html[data-theme="dark"] .social-big a:hover { background: #2f62e6; }
html[data-theme="dark"] .checks .ico { background: rgba(107, 155, 255, .14); }
html[data-theme="dark"] .card, html[data-theme="dark"] .news-card a, html[data-theme="dark"] .map-card { box-shadow: none; }
html[data-theme="dark"] .book-card { box-shadow: 0 50px 110px -50px rgba(255, 122, 26, .38); }

/* dark ground: the hero over the film, article headers, footer, lightbox, and the bar while it floats over them */
.hero, .page-hero, .footer, .lightbox, .nav:not(.scrolled) {
  --text: #ffffff;
  --muted: rgba(255, 255, 255, .8);
  --dim: rgba(255, 255, 255, .62);
  --line: rgba(255, 255, 255, .14);
  --line-2: rgba(255, 255, 255, .26);
  --tint: var(--tint);
  --tint-2: rgba(255, 255, 255, .16);
  --glass: rgba(15, 29, 61, .4);
  --accent-text: #ff8a2a;
  color: var(--text);
}
/* the phone menu opens on the light ground */
body.menu-open .nav {
  --text: #13203d; --muted: #4f5b75; --line: rgba(19, 32, 61, .10); --line-2: rgba(19, 32, 61, .18);
  --tint: rgba(19, 32, 61, .04); --tint-2: rgba(19, 32, 61, .08); --accent-text: #d4540a;
  color: var(--text);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 12px); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 1.0625rem/1.65 var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
h1, h2, h3, p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
[hidden] { display: none !important; }
::selection { background: var(--accent); color: #fff; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 6px; }

.container { width: min(1240px, 100% - 48px); margin-inline: auto; }
.section { position: relative; padding-block: clamp(80px, 10vw, 140px); }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--accent); color: #fff; padding: 10px 16px; border-radius: 10px; }
.skip:focus { top: 12px; }

/* ---------- type ---------- */
.kicker { display: inline-flex; align-items: center; gap: 12px; margin-bottom: 18px; color: var(--blue); font: 600 .8125rem/1 var(--body); letter-spacing: .18em; text-transform: uppercase; }
.kicker::before { content: ""; width: 28px; height: 2px; border-radius: 2px; background: var(--blue); }
.h1, .h2, .hero-title { font-family: var(--head); font-weight: 700; letter-spacing: -.02em; }
.h1 { font-size: clamp(2.25rem, 1.2rem + 4vw, 4.5rem); line-height: 1.05; }
.h2 { font-size: clamp(2rem, 1.2rem + 2.8vw, 3.4rem); line-height: 1.08; }
.h3 { font: 700 1.25rem/1.2 var(--head); }
.grad { color: var(--accent-text); }
.lead { font-size: clamp(1.125rem, 1rem + .45vw, 1.3125rem); line-height: 1.6; color: var(--text); opacity: .92; }
.muted { color: var(--muted); }
.section-head { max-width: 720px; margin-bottom: clamp(40px, 5vw, 64px); }
.section-sub { margin-top: 16px; color: var(--muted); font-size: 1.125rem; }

/* ---------- buttons, pills, glass ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px; border-radius: 999px; border: 1px solid transparent;
  font: 600 1rem/1 var(--body); cursor: pointer; white-space: nowrap;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background-color .25s, border-color .25s;
}
.btn .ico { width: 18px; height: 18px; transition: transform .25s var(--ease); }
.btn:hover { transform: translateY(-2px); }
.btn:hover .ico { transform: translateX(3px); }
.btn:active { transform: translateY(0); }
.btn-lg { min-height: 56px; padding: 0 28px; font-size: 1.0625rem; }
.btn-sm { min-height: 42px; padding: 0 18px; font-size: .9375rem; }
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 12px 34px -12px rgba(240, 101, 10, .75); }
.btn-primary:hover { box-shadow: 0 18px 44px -12px rgba(240, 101, 10, .95); }
.btn-ghost { background: var(--tint); border-color: var(--line-2); color: var(--text); backdrop-filter: blur(10px); }
.btn-ghost:hover { background: var(--tint-2); border-color: var(--line-2); }
.btn-wa { background: #25d366; color: #062b16; }
.btn-wa:hover { box-shadow: 0 12px 30px -12px rgba(37, 211, 102, .8); }
.btn-wa .ico { width: 20px; height: 20px; }
.btn-wa:hover .ico { transform: none; }
.ico { width: 22px; height: 22px; flex: none; }
.ico-sm { width: 16px; height: 16px; }

.pill {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px;
  background: var(--tint); border: 1px solid var(--line-2); backdrop-filter: blur(10px);
  font-size: .875rem; font-weight: 500; color: var(--text);
}
.status i { width: 8px; height: 8px; border-radius: 50%; background: var(--dim); }
.status.is-open i { background: var(--green); animation: ping 2s infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(46, 229, 157, .7); } 70% { box-shadow: 0 0 0 9px rgba(46, 229, 157, 0); } 100% { box-shadow: 0 0 0 0 rgba(46, 229, 157, 0); } }
.glass { background: var(--glass); border: 1px solid var(--line); box-shadow: var(--shadow); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }

/* ---------- navigation ---------- */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 50; border-bottom: 1px solid transparent; transition: background-color .3s, border-color .3s; }
.nav.scrolled { background: rgba(255, 255, 255, .92); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-bottom-color: var(--line); }
.nav-inner { height: var(--nav-h); display: flex; align-items: center; gap: 28px; }
.logo { display: inline-flex; align-items: center; gap: 12px; font: 500 1.0625rem/1 var(--head); letter-spacing: -.01em; white-space: nowrap; }
.logo b { font-weight: 800; color: var(--accent-text); }
.logo-mark { width: 36px; height: 36px; transition: transform .6s var(--ease); }
.logo:hover .logo-mark { transform: rotate(-200deg); }
.nav-links { display: flex; align-items: center; gap: 30px; margin-inline: auto; }
.nav-links > a { position: relative; font-weight: 500; font-size: .9688rem; color: var(--muted); transition: color .2s; padding-block: 6px; }
.nav-links > a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; border-radius: 2px; background: var(--grad); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.nav-links > a:hover { color: var(--text); }
.nav-links > a:hover::after { transform: scaleX(1); }
.nav-end { display: flex; align-items: center; gap: 16px; }
.social { display: flex; gap: 6px; }
.social a { display: inline-flex; align-items: center; justify-content: center; gap: 10px; color: var(--muted); transition: color .2s, background-color .2s, transform .2s var(--ease); }
.social-nav a, .social-footer a { width: 38px; height: 38px; border-radius: 50%; }
.social-nav a:hover, .social-footer a:hover { color: #fff; background: var(--tint-2); transform: translateY(-2px); }
.social svg { width: 20px; height: 20px; }
.social-menu { display: none; }
.burger { display: none; width: 44px; height: 44px; border: 1px solid var(--line-2); border-radius: 50%; background: var(--tint); cursor: pointer; position: relative; }
.burger span { position: absolute; left: 13px; right: 13px; height: 2px; border-radius: 2px; background: var(--text); transition: transform .3s var(--ease), top .3s var(--ease); }
.burger span:first-child { top: 17px; }
.burger span:last-child { top: 25px; }
.burger[aria-expanded="true"] span:first-child { top: 21px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { top: 21px; transform: rotate(-45deg); }

/* ---------- hero ---------- */
.hero { background: var(--navy); position: relative; min-height: 100svh; display: flex; flex-direction: column; justify-content: flex-end; padding: calc(var(--nav-h) + 40px) 0 40px; overflow: hidden; isolation: isolate; }
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -3; animation: drift 14s var(--ease) both; }
@keyframes drift { from { transform: scale(1.12); } to { transform: scale(1.02); } }
.hero-shade {
  position: absolute; inset: 0; z-index: -2;
  background:
    linear-gradient(to top, var(--navy) 0%, rgba(11, 22, 48, .62) 26%, rgba(11, 22, 48, .08) 58%, rgba(11, 22, 48, .42) 100%),
    linear-gradient(90deg, rgba(11, 22, 48, .74) 0%, rgba(11, 22, 48, .22) 48%, rgba(11, 22, 48, 0) 72%);
}
.hero-glow { position: absolute; z-index: -1; left: -10%; bottom: -20%; width: 70vw; height: 60vh; background: radial-gradient(closest-side, rgba(240, 101, 10, .22), rgba(31, 79, 216, .16) 55%, transparent); filter: blur(30px); pointer-events: none; }
.hero-content { position: relative; }
.hero-content > * { animation: up .9s var(--ease) both; }
.hero-content > :nth-child(2) { animation-delay: .08s; }
.hero-content > :nth-child(3) { animation-delay: .18s; }
.hero-content > :nth-child(4) { animation-delay: .28s; }
@keyframes up { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
.hero-meta { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 26px; }
.hero-title { font-size: clamp(3rem, .8rem + 8.2vw, 8.5rem); line-height: .95; font-weight: 800; letter-spacing: -.035em; text-transform: uppercase; }
.hero-title .grad { filter: drop-shadow(0 0 30px rgba(240, 101, 10, .35)); }
.hero-lead { max-width: 560px; margin-top: 24px; font-size: clamp(1.125rem, 1rem + .5vw, 1.375rem); line-height: 1.55; color: var(--text); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.hero.is-struck .hero-title { animation: shake .6s var(--ease); }
.hero.is-struck .hero-glow { animation: flash 1s var(--ease); }
@keyframes shake { 0%, 100% { transform: none; } 15% { transform: translate(-8px, 4px) rotate(-.8deg); } 35% { transform: translate(7px, -3px) rotate(.6deg); } 55% { transform: translate(-4px, 2px); } 75% { transform: translate(2px, -1px); } }
@keyframes flash { 20% { filter: blur(30px) brightness(2.4); } }

.hero-stats { position: relative; margin-top: clamp(40px, 7vh, 72px); }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border-radius: var(--radius); overflow: hidden; margin: 0; }
.stats div { padding: 22px 26px; display: flex; flex-direction: column-reverse; gap: 4px; }
.stats div + div { border-left: 1px solid var(--line); }
.stats dd { margin: 0; font: 800 clamp(1.8rem, 1.2rem + 1.6vw, 2.6rem)/1 var(--head); color: var(--accent-text); }
.stats dt { color: var(--muted); font-size: .9375rem; }
.replay { position: absolute; right: 0; top: -60px; display: inline-flex; align-items: center; gap: 10px; min-height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line-2); background: rgba(11, 22, 48, .5); backdrop-filter: blur(10px); color: var(--text); font-weight: 600; font-size: .9375rem; cursor: pointer; transition: background-color .2s, transform .2s var(--ease); }
.replay::before { content: ""; border-left: 9px solid currentColor; border-top: 6px solid transparent; border-bottom: 6px solid transparent; }
.replay:hover { background: rgba(240, 101, 10, .3); transform: translateY(-2px); }

/* ---------- chi siamo ---------- */
.about { overflow-x: clip; }
.about::before { content: ""; position: absolute; right: -10%; top: 10%; width: 50vw; height: 60%; background: radial-gradient(closest-side, rgba(31, 79, 216, .10), transparent); filter: blur(20px); pointer-events: none; z-index: -1; }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(48px, 7vw, 100px); align-items: center; }
.about-copy .lead { margin-top: 24px; }
.about-copy > p:not(.kicker):not(.lead) { margin-top: 16px; color: var(--muted); }
.checks { margin-top: 30px; display: grid; gap: 14px; }
.checks li { display: flex; align-items: center; gap: 14px; font-weight: 500; }
.checks .ico { width: 30px; height: 30px; padding: 6px; border-radius: 50%; background: rgba(31, 79, 216, .1); color: var(--blue); }
.about-media { position: relative; padding: 0 0 70px 30px; }
.photo { margin: 0; border-radius: var(--radius); overflow: hidden; }
.photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.photo:hover img { transform: scale(1.04); }
.photo-main { aspect-ratio: 4 / 3.4; box-shadow: 0 40px 80px -30px rgba(15, 29, 61, .45); }
.photo-small { position: absolute; right: -16px; bottom: 0; width: 50%; aspect-ratio: 4 / 3; border: 6px solid var(--bg); border-radius: 20px; }
.badge { position: absolute; left: 0; top: 34px; display: flex; align-items: center; gap: 12px; padding: 14px 20px; border-radius: 18px; animation: float 5s ease-in-out infinite; }
.badge strong { font: 800 2.4rem/1 var(--head); color: var(--accent-text); }
.badge span { font-size: .875rem; line-height: 1.3; color: var(--muted); }
@keyframes float { 50% { transform: translateY(-10px); } }

/* ---------- attività ---------- */
.activities { background: linear-gradient(180deg, transparent, var(--bg-2) 20%, var(--bg-2) 80%, transparent); }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); transition: transform .35s var(--ease), border-color .35s, box-shadow .35s var(--ease); }
.card > img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; transition: transform .7s var(--ease); }
.card-body { position: relative; padding: 0 26px 28px; background: var(--surface); }
.card-icon { position: relative; display: inline-grid; place-items: center; width: 54px; height: 54px; margin-top: -27px; border-radius: 16px; background: var(--grad); color: #fff; box-shadow: 0 10px 26px -10px rgba(240, 101, 10, .9); }
.card h3 { margin-top: 18px; font: 700 1.25rem/1.25 var(--head); }
.card p { margin-top: 10px; color: var(--muted); font-size: 1rem; line-height: 1.6; }
.card:hover { transform: translateY(-8px); border-color: rgba(240, 101, 10, .45); box-shadow: 0 30px 60px -30px rgba(240, 101, 10, .55); }
.card:hover > img { transform: scale(1.06); }

/* ---------- prenota ---------- */
.book-card {
  display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 5vw, 72px);
  padding: clamp(24px, 4.5vw, 60px); border-radius: 32px;
  background: linear-gradient(var(--surface), var(--surface)) padding-box, var(--grad) border-box;
  border: 1px solid transparent;
  box-shadow: 0 40px 90px -40px rgba(15, 29, 61, .35);
  position: relative; overflow: hidden;
}
.book-card::before { content: ""; position: absolute; left: -20%; top: -40%; width: 70%; height: 90%; background: radial-gradient(closest-side, rgba(240, 101, 10, .08), transparent); pointer-events: none; }
.book-intro { position: relative; display: flex; flex-direction: column; }
.book-intro > p:not(.kicker) { margin-top: 18px; color: var(--muted); }
.lanes-box { margin-top: 30px; padding: 26px; border-radius: 20px; background: var(--tint); border: 1px solid var(--line); }
.lanes { font: 800 clamp(2.6rem, 1.8rem + 2.6vw, 3.8rem)/1 var(--head); color: var(--accent-text); display: inline-block; }
.lanes.bump { animation: bump .5s var(--ease); }
@keyframes bump { 40% { transform: scale(1.12); } }
.lanes-for { margin-top: 8px; font-weight: 600; }
.lane-dots { display: grid; grid-template-columns: repeat(14, 1fr); gap: 5px; margin-top: 18px; }
.lane-dots span { height: 34px; border-radius: 4px; background: var(--tint); transition: background-color .3s, box-shadow .3s, transform .3s var(--ease); }
.lane-dots span.on { background: var(--grad); box-shadow: 0 4px 12px -2px rgba(240, 101, 10, .55); transform: scaleY(1.08); }
.lanes-note { margin-top: 12px; font-size: .875rem; color: var(--dim); }
.call { margin-top: auto; padding-top: 26px; display: inline-flex; align-items: center; gap: 10px; color: var(--muted); }
.call .ico { color: var(--accent); }
.call strong { color: var(--text); transition: color .2s; }
.call:hover strong { color: var(--accent); }

.book-form { position: relative; display: grid; gap: 18px; align-content: start; }
.field { margin: 0; padding: 0; border: 0; min-width: 0; }
.field label, .field legend { display: block; margin-bottom: 8px; padding: 0; font-size: .9375rem; font-weight: 600; }
.opt { color: var(--dim); font-weight: 400; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.book-form input:not([type="radio"]), .book-form select, .book-form textarea {
  width: 100%; min-height: 52px; padding: 13px 16px; border-radius: var(--radius-sm);
  background: var(--tint); border: 1px solid var(--line-2); color: var(--text);
  font: 500 1rem/1.3 var(--body); transition: border-color .2s, box-shadow .2s, background-color .2s;
  color-scheme: light;
}
.book-form ::placeholder { color: var(--dim); }
.book-form input:focus, .book-form select:focus, .book-form textarea:focus { outline: none; border-color: var(--accent); background: var(--surface); box-shadow: 0 0 0 4px rgba(240, 101, 10, .18); }
.book-form select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%234f5b75' stroke-width='2'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 44px; }
.book-form select option { background: var(--surface); }
.book-form textarea { resize: vertical; min-height: 84px; }
.stepper { display: grid; grid-template-columns: 52px 1fr 52px; gap: 8px; }
.stepper button { border: 1px solid var(--line-2); border-radius: var(--radius-sm); background: var(--tint); font-size: 1.4rem; cursor: pointer; transition: background-color .2s, border-color .2s; }
.stepper button:hover { background: rgba(240, 101, 10, .12); border-color: var(--accent); }
.stepper input { text-align: center; font-weight: 700 !important; -moz-appearance: textfield; }
.stepper input::-webkit-inner-spin-button, .stepper input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.choices { display: flex; flex-wrap: wrap; gap: 10px; }
.choices label { position: relative; margin: 0; font-weight: 500; font-size: .9375rem; }
.choices input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.choices span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--tint); transition: background-color .2s, border-color .2s, color .2s; }
.choices label:hover span { border-color: rgba(240, 101, 10, .6); }
.choices input:checked + span { background: var(--grad); border-color: transparent; color: #fff; }
.choices input:focus-visible + span { outline: 2px solid var(--blue); outline-offset: 2px; }
.form-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 4px; }
.form-actions .btn-primary { flex: 1 1 220px; }
.form-actions button:disabled { opacity: .7; cursor: progress; }
.book-msg { font-weight: 500; }
.book-msg:not(:empty) { padding: 14px 16px; border-radius: var(--radius-sm); }
.book-msg.ok { background: rgba(46, 229, 157, .12); border: 1px solid rgba(46, 229, 157, .4); }
.book-msg.err { background: rgba(240, 101, 10, .12); border: 1px solid rgba(240, 101, 10, .45); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- galleria ---------- */
.masonry { columns: 3; column-gap: 18px; }
.masonry li { break-inside: avoid; margin-bottom: 18px; }
.shot { position: relative; display: block; width: 100%; padding: 0; border: 0; border-radius: 18px; overflow: hidden; background: var(--surface); cursor: zoom-in; }
.shot img { width: 100%; transition: transform .7s var(--ease); }
.shot::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(11, 22, 48, .85), transparent 55%); opacity: .7; transition: opacity .3s; }
.shot-cap { position: absolute; left: 18px; right: 18px; bottom: 16px; z-index: 1; color: #fff; text-align: left; font-weight: 600; font-size: .9375rem; line-height: 1.35; transform: translateY(4px); transition: transform .3s var(--ease); }
.shot:hover img { transform: scale(1.06); }
.shot:hover::after { opacity: 1; }
.shot:hover .shot-cap { transform: none; }

.lightbox { width: 100vw; height: 100svh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(8, 14, 32, .96); color: var(--text); }
.lightbox[open] { display: grid; place-items: center; animation: fade .3s ease; }
@keyframes fade { from { opacity: 0; } }
.lightbox::backdrop { background: rgba(8, 14, 32, .9); }
.lightbox img { max-width: min(92vw, 1400px); max-height: 80svh; border-radius: 16px; }
.lb-cap { position: absolute; left: 0; right: 0; bottom: 24px; text-align: center; color: var(--muted); }
.lightbox form { position: absolute; top: 20px; right: 20px; margin: 0; }
.lb-close, .lb-nav { width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--line-2); background: var(--tint); color: var(--text); font-size: 1.6rem; line-height: 1; cursor: pointer; transition: background-color .2s; }
.lb-close { font-size: 1.1rem; }
.lb-close:hover, .lb-nav:hover { background: var(--accent); color: #fff; }
.lb-nav { position: absolute; top: 50%; transform: translateY(-50%); }
.lb-prev { left: 20px; }
.lb-next { right: 20px; }

/* ---------- news ---------- */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.news-card a { display: flex; flex-direction: column; height: 100%; border-radius: var(--radius); overflow: hidden; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); transition: transform .35s var(--ease), border-color .35s, box-shadow .35s; }
.news-img { overflow: hidden; aspect-ratio: 16 / 10; }
.news-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.news-body { display: flex; flex-direction: column; gap: 10px; padding: 24px 26px 28px; flex: 1; }
.news-body time { color: var(--blue); font-size: .875rem; font-weight: 600; }
.news-body h3 { font: 700 1.1875rem/1.3 var(--head); }
.news-body p { color: var(--muted); font-size: 1rem; }
.more { margin-top: auto; padding-top: 8px; display: inline-flex; align-items: center; gap: 8px; font-weight: 600; }
.more .ico { width: 18px; height: 18px; color: var(--accent); transition: transform .25s var(--ease); }
.news-card a:hover { transform: translateY(-6px); border-color: rgba(31, 79, 216, .5); box-shadow: 0 30px 60px -30px rgba(31, 79, 216, .6); }
.news-card a:hover img { transform: scale(1.06); }
.news-card a:hover .more .ico { transform: translateX(4px); }

/* ---------- contatti ---------- */
.contact-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(40px, 5vw, 72px); align-items: start; }
.contact-copy .lead { margin-top: 20px; color: var(--muted); }
.contact-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 36px; }
.info { display: flex; gap: 16px; padding: 24px; border-radius: 20px; }
.info h3, .map-body h3, .social-box h3 { font: 700 1.0625rem/1.3 var(--head); margin-bottom: 10px; }
.info-icon { display: inline-grid; place-items: center; flex: none; width: 46px; height: 46px; border-radius: 14px; background: var(--blue); color: #fff; }
.info > div { flex: 1; min-width: 0; }
.staff li { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-bottom: 1px solid var(--line); font-size: .9688rem; }
.staff li:last-child { border-bottom: 0; }
.staff li span:first-child { color: var(--muted); }
.staff a { font-weight: 600; white-space: nowrap; transition: color .2s; }
.staff a:hover { color: var(--accent); }
.note { margin-top: 10px; font-size: .875rem; color: var(--dim); }
.map-card { display: block; border-radius: var(--radius); overflow: hidden; background: var(--surface); border: 1px solid var(--line); transition: border-color .3s, transform .35s var(--ease); }
.map-card > img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: transform .7s var(--ease); }
.map-body { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 16px; padding: 22px 24px; background: var(--surface); }
.map-body > div { flex: 1 1 180px; }
.map-body p { font-size: .9688rem; }
.map-card:hover { border-color: rgba(240, 101, 10, .45); transform: translateY(-4px); }
.map-card:hover > img { transform: scale(1.05); }
.social-box { margin-top: 18px; padding: 22px 24px; border-radius: 20px; }
.social-big { flex-wrap: wrap; gap: 10px; }
.social-big a { min-height: 46px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--tint); color: var(--text); font-weight: 600; font-size: .9375rem; }
.social-big a:hover { background: var(--blue); color: #fff; border-color: transparent; transform: translateY(-2px); }

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--line); padding-top: 72px; background: var(--navy); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; }
.footer-brand p { margin: 18px 0; color: var(--muted); max-width: 30ch; }
.footer h3 { font: 700 .9375rem/1 var(--head); margin-bottom: 18px; }
.footer li, .footer-grid > div > p { margin-bottom: 10px; color: var(--muted); font-size: .9688rem; }
.footer-grid li a, .footer-grid p a { transition: color .2s; }
.footer-grid li a:hover, .footer-grid p a:hover { color: var(--accent); }
.social-footer a { background: var(--tint); }
.footer-legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; margin-top: 56px; padding-block: 26px; border-top: 1px solid var(--line); color: var(--dim); font-size: .875rem; }
.footer-legal a:hover { color: var(--text); }

/* ---------- news page / 404 ---------- */
.page-hero { background: var(--navy); position: relative; min-height: 72svh; display: flex; align-items: flex-end; padding: calc(var(--nav-h) + 60px) 0 64px; overflow: hidden; isolation: isolate; }
.page-hero.lost { min-height: 100svh; }
.page-hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -3; animation: drift 14s var(--ease) both; }
.page-hero-content > * { animation: up .9s var(--ease) both; }
.page-hero-content > :nth-child(2) { animation-delay: .08s; }
.page-hero-content > :nth-child(3) { animation-delay: .16s; }
.page-hero-content > :nth-child(4) { animation-delay: .24s; }
.page-hero-content .pill { margin-bottom: 20px; }
.page-hero-content .h1 { max-width: 20ch; }
.page-hero-content .lead { margin-top: 20px; max-width: 640px; }
.back { display: block; width: fit-content; margin-bottom: 22px; color: var(--muted); font-weight: 500; transition: color .2s; }
.back:hover { color: var(--accent); }
.article { padding-top: 64px; }
.article-grid { display: grid; grid-template-columns: 1fr 340px; gap: clamp(40px, 6vw, 88px); align-items: start; }
.article-body p { margin-bottom: 1.2em; font-size: 1.1875rem; line-height: 1.75; color: var(--text); }
.article-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.article-more { position: sticky; top: calc(var(--nav-h) + 24px); padding: 26px; border-radius: 20px; }
.article-more .h3 { margin-bottom: 8px; }
.article-more a { display: block; padding: 14px 0; border-bottom: 1px solid var(--line); }
.article-more li:last-child a { border-bottom: 0; padding-bottom: 0; }
.article-more time { display: block; color: var(--blue); font-size: .8125rem; font-weight: 600; margin-bottom: 4px; }
.article-more span { font-weight: 600; line-height: 1.4; transition: color .2s; }
.article-more a:hover span { color: var(--accent); }
.strip { padding-top: 40px; }
.strip-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.strip-grid img { aspect-ratio: 4 / 5; object-fit: cover; }

/* ---------- progress, marquee, party, steps, phone bar ---------- */
.progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 60; background: var(--grad); transform: scaleX(0); transform-origin: left; }
.marquee { overflow: hidden; background: var(--grad); color: #fff; padding-block: 16px; }
.marquee-track { display: flex; align-items: center; gap: 34px; width: max-content; animation: slide 36s linear infinite; }
.marquee span { font: 700 clamp(1.05rem, .9rem + .7vw, 1.5rem)/1 var(--head); text-transform: uppercase; letter-spacing: .02em; white-space: nowrap; }
.marquee i { width: 12px; height: 12px; border-radius: 50%; background: #fff; opacity: .85; flex: none; }
@keyframes slide { to { transform: translateX(-50%); } }

.party-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 96px); align-items: center; }
.party-photo { margin: 0; border-radius: 28px; overflow: hidden; transform: rotate(-2.5deg); box-shadow: 0 40px 80px -36px rgba(0, 0, 0, .55); border: 6px solid var(--surface); }
.party-photo img { width: 100%; aspect-ratio: 1 / 0.92; object-fit: cover; transition: transform .8s var(--ease); }
.party-photo:hover img { transform: scale(1.05); }
.party-copy .lead { margin-top: 22px; color: var(--muted); }

.steps { list-style: none; margin: 0 0 28px; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: none; }
.steps li { display: flex; align-items: center; gap: 16px; padding: 18px 22px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); }
.steps b { display: grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: 50%; background: var(--grad); color: #fff; font: 800 1.1rem/1 var(--head); }
.steps strong { display: block; font-weight: 700; }
.steps span { display: block; color: var(--muted); font-size: .9375rem; line-height: 1.4; }

.staff li.today span { color: var(--accent-text); font-weight: 700; }

.mobilebar { display: none; }
@media (max-width: 960px) {
  .party-grid { grid-template-columns: 1fr; }
  .party-photo { max-width: 520px; }
  .steps { grid-template-columns: 1fr; gap: 10px; }
}
@media (max-width: 640px) {
  .mobilebar {
    position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 45;
    display: grid; grid-template-columns: 1fr 1fr 1.25fr; gap: 6px; padding: 6px;
    border-radius: 20px; background: color-mix(in srgb, var(--surface) 92%, transparent); border: 1px solid var(--line-2);
    backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); box-shadow: 0 18px 40px -16px rgba(0, 0, 0, .6);
    transform: translateY(140%); transition: transform .4s var(--ease);
  }
  .mobilebar.on { transform: none; }
  .mobilebar a { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; border-radius: 14px; font-weight: 700; font-size: .9375rem; }
  .mobilebar .ico { width: 19px; height: 19px; }
  .mobilebar .primary { background: var(--grad); color: #fff; }
  .footer-legal { padding-bottom: 96px; }
}
@media (prefers-reduced-motion: reduce) { .marquee-track { animation: none; } }

/* ---------- reveal ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(30px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: calc(var(--i, 0) * 90ms); }
.js [data-reveal].in { opacity: 1; transform: none; }
.js .card[data-reveal].in, .js .news-card[data-reveal].in { transition: opacity .9s var(--ease), transform .35s var(--ease), border-color .35s, box-shadow .35s; transition-delay: 0s; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .social-nav { display: none; }
  .nav-links { gap: 22px; }
  .cards, .news-grid { grid-template-columns: 1fr 1fr; }
  .news-grid > :nth-child(3) { display: none; }
  .contact-cards { grid-template-columns: 1fr; }
}
@media (max-width: 960px) {
  :root { --nav-h: 68px; }
  .burger { display: inline-block; }
  .nav-end { margin-left: auto; }
  .nav-links {
    position: fixed; inset: 0; z-index: -1; margin: 0;
    flex-direction: column; justify-content: center; gap: 10px;
    background: color-mix(in srgb, var(--bg) 97%, transparent);
    opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s;
  }
  .nav-links.open { opacity: 1; visibility: visible; }
  .nav-links > a { font: 700 1.75rem/1.4 var(--head); color: var(--text); }
  .nav-links > a::after { display: none; }
  .social-menu { display: flex; margin-top: 28px; gap: 12px; }
  .social-menu a { width: 50px; height: 50px; border-radius: 50%; background: var(--tint); color: var(--text); }
  .menu-open { overflow: hidden; }
  .about-grid, .book-card, .contact-grid, .article-grid { grid-template-columns: 1fr; }
  .about-media { max-width: 620px; }
  .article-more { position: static; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stats div:nth-child(3) { border-left: 0; }
  .stats div:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .masonry { columns: 2; }
  .strip-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .container { width: calc(100% - 40px); }
  .logo { font-size: .9375rem; gap: 10px; }
  .logo-mark { width: 32px; height: 32px; }
  .nav-end { gap: 10px; }
  .nav-end .btn-sm { padding: 0 14px; }
  .hero { padding-bottom: 24px; }
  .hero-shade { background: linear-gradient(to top, var(--navy) 0%, rgba(11, 22, 48, .8) 42%, rgba(11, 22, 48, .35) 72%, rgba(11, 22, 48, .65) 100%); }
  .hero-cta .btn { flex: 1 1 100%; }
  .hero-stats { margin-top: 32px; }
  .stats div { padding: 16px 18px; }
  .replay { top: -52px; right: auto; left: 0; }
  .cards, .news-grid { grid-template-columns: 1fr; }
  .news-grid > :nth-child(3) { display: block; }
  .row2 { grid-template-columns: 1fr; }
  .about-media { padding: 0 0 50px 0; }
  .badge { left: 12px; top: 12px; padding: 10px 14px; }
  .badge strong { font-size: 1.8rem; }
  .photo-small { right: -6px; }
  .lane-dots { gap: 3px; }
  .lane-dots span { height: 26px; }
  .masonry { column-gap: 12px; }
  .masonry li { margin-bottom: 12px; }
  .shot-cap { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .lb-nav { top: auto; bottom: 70px; transform: none; }
  .page-hero { min-height: 64svh; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
}
