/* =========================================================
   FUEGO® — Rimini Nightlife
   Design system + componenti (index + contatti)
   ========================================================= */

/* ---------- Tokens ---------- */
:root {
  --bg: #050505;
  --bg-2: #0b0b0d;
  --bg-3: #111114;
  --surface: rgba(255, 255, 255, 0.035);
  --surface-2: rgba(255, 255, 255, 0.06);
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.16);

  --fire: #ff3d00;
  --ember: #ff8a00;
  --hot: #ff1f4b;
  --fire-soft: rgba(255, 61, 0, 0.16);
  --fire-glow: 0 0 40px rgba(255, 61, 0, 0.45), 0 0 90px rgba(255, 61, 0, 0.18);
  --grad-fire: linear-gradient(100deg, var(--fire) 0%, var(--ember) 55%, #ffc94d 100%);
  --grad-hot: linear-gradient(120deg, var(--hot), var(--fire), var(--ember));

  --text: #f6f3ef;
  --text-2: #b6b0aa;
  --text-3: #7c7570;

  --font-display: 'Bebas Neue', 'Oswald', Impact, sans-serif;
  --font-body: 'Manrope', 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-xl: 32px;

  --container: 1240px;
  --gutter: clamp(20px, 5vw, 64px);
  --section: clamp(80px, 12vw, 150px);

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --dur: 0.7s;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.no-scroll { overflow: hidden; }
img, video, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4, p { margin: 0; }
::selection { background: var(--fire); color: #000; }

:focus-visible { outline: 2px solid var(--ember); outline-offset: 3px; border-radius: 4px; }

/* ---------- Background texture ---------- */
body::before {
  content: '';
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(255, 61, 0, 0.12), transparent 60%),
    radial-gradient(900px 500px at -10% 40%, rgba(255, 138, 0, 0.07), transparent 60%);
}
.grain {
  position: fixed; inset: -50%; z-index: 1; pointer-events: none; opacity: 0.055;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.6 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  animation: grain 0.6s steps(6) infinite;
}
@keyframes grain {
  0%, 100% { transform: translate(0, 0); }
  20% { transform: translate(-3%, 2%); }
  40% { transform: translate(2%, -4%); }
  60% { transform: translate(-1%, 3%); }
  80% { transform: translate(3%, -1%); }
}

main, header, footer { position: relative; z-index: 2; }

/* ---------- Utilities ---------- */
.container { width: min(100% - var(--gutter) * 2, var(--container)); margin-inline: auto; }
.section { padding-block: var(--section); position: relative; }
.section--tight { padding-block: clamp(56px, 8vw, 96px); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12px; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--text-2);
}
.eyebrow::before {
  content: ''; width: 28px; height: 2px; background: var(--grad-fire); border-radius: 2px;
}
.eyebrow--fire { color: var(--ember); }

.display {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 0.92;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}
.h2 { font-size: clamp(44px, 7vw, 96px); }
.h3 { font-size: clamp(30px, 4vw, 48px); }

.section-head {
  display: grid; gap: 18px; margin-bottom: clamp(36px, 5vw, 64px);
  grid-template-columns: 1fr; align-items: end;
}
@media (min-width: 900px) {
  .section-head { grid-template-columns: 1.3fr 1fr; gap: 40px; }
  .section-head .lead { justify-self: end; max-width: 440px; padding-bottom: 6px; }
}
.section-head .lead { color: var(--text-2); font-size: 17px; }

.text-fire {
  background: var(--grad-fire);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.text-outline {
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(255, 255, 255, 0.55);
}

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--text);
  --btn-fg: #000;
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 16px 28px;
  border-radius: 999px;
  font-weight: 800; font-size: 13px; letter-spacing: 0.16em; text-transform: uppercase;
  background: var(--btn-bg); color: var(--btn-fg);
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out), background 0.3s;
  overflow: hidden; isolation: isolate;
  white-space: nowrap;
}
.btn::after {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: var(--grad-fire); opacity: 0;
  transform: translateY(101%);
  transition: transform 0.45s var(--ease-out), opacity 0.2s;
}
.btn:hover::after { transform: translateY(0); opacity: 1; }
.btn:hover { transform: translateY(-2px); box-shadow: var(--fire-glow); color: #000; }
.btn svg { width: 16px; height: 16px; transition: transform 0.35s var(--ease-out); }
.btn:hover svg { transform: translateX(4px); }

.btn--fire { --btn-bg: var(--grad-fire); --btn-fg: #0a0a0a; box-shadow: 0 10px 30px rgba(255, 61, 0, 0.25); }
.btn--fire::after { background: #fff; }
.btn--ghost {
  --btn-bg: transparent; --btn-fg: var(--text);
  border: 1px solid var(--line-strong);
  backdrop-filter: blur(10px);
}
.btn--ghost:hover { border-color: transparent; }
.btn--lg { padding: 20px 40px; font-size: 14px; }
.btn--block { width: 100%; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 700; font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--text);
}
.link-arrow svg { width: 16px; height: 16px; transition: transform 0.3s var(--ease-out); }
.link-arrow:hover svg { transform: translate(3px, -3px); }
.link-arrow:hover { color: var(--ember); }

/* ---------- Scroll progress + cursor ---------- */
.progress {
  position: fixed; top: 0; left: 0; height: 2px; width: 100%; z-index: 1000;
  transform-origin: left; transform: scaleX(0);
  background: var(--grad-fire);
}
.cursor-glow {
  position: fixed; left: 0; top: 0; z-index: 0; pointer-events: none;
  width: 520px; height: 520px; margin: -260px 0 0 -260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 90, 0, 0.16), rgba(255, 90, 0, 0.05) 35%, transparent 65%);
  opacity: 0; transition: opacity 0.6s;
  will-change: transform;
}
@media (pointer: fine) { .cursor-glow.is-on { opacity: 1; } }

/* ---------- Header ---------- */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 900;
  padding: 18px 0;
  transition: transform 0.5s var(--ease-out), padding 0.4s var(--ease-out), background 0.4s, border-color 0.4s;
  border-bottom: 1px solid transparent;
}
.header.is-scrolled {
  padding: 10px 0;
  background: rgba(5, 5, 5, 0.6);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-color: var(--line);
}
.header.is-hidden { transform: translateY(-110%); }
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; }

.brand { display: inline-flex; align-items: center; gap: 12px; }
/* Il PNG del logo è 272x251 con margini trasparenti: ritagliamo il cerchio rosso (200x200 a x56,y30) */
.brand__logo {
  position: relative; flex: none; width: 44px; height: 44px; border-radius: 50%; overflow: hidden;
  box-shadow: 0 0 0 1px var(--line-strong), 0 6px 20px rgba(255, 61, 0, 0.25);
  background: #1a0402;
}
.brand__logo img { position: absolute; width: 136%; height: 125.5%; max-width: none; left: -28%; top: -15%; }
.brand__word {
  font-family: var(--font-display); font-size: 26px; letter-spacing: 0.06em; line-height: 1;
  display: inline-flex; align-items: flex-start; gap: 2px;
}
.brand__word sup { font-size: 10px; font-family: var(--font-body); font-weight: 800; margin-top: 2px; }

.nav { display: none; }
@media (min-width: 1100px) {
  .nav { display: flex; align-items: center; gap: 4px; }
}
.nav a {
  position: relative; padding: 10px 14px; border-radius: 999px;
  font-size: 13px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--text-2); transition: color 0.3s, background 0.3s;
}
.nav a:hover, .nav a.is-active { color: var(--text); background: var(--surface-2); }
.nav .btn { margin-left: 10px; padding: 12px 22px; font-size: 12px; color: var(--btn-fg); background: var(--btn-bg); }
.nav .btn:hover { color: #000; }

.burger {
  display: inline-flex; flex-direction: column; justify-content: center; gap: 6px;
  width: 48px; height: 48px; padding: 12px; border-radius: 50%;
  background: var(--surface-2); border: 1px solid var(--line);
  backdrop-filter: blur(10px);
}
@media (min-width: 1100px) { .burger { display: none; } }
.burger span { height: 2px; background: var(--text); border-radius: 2px; transition: transform 0.4s var(--ease-out), opacity 0.3s, width 0.4s; }
.burger span:nth-child(2) { width: 70%; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; width: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* Mobile menu */
.menu {
  position: fixed; inset: 0; z-index: 850;
  background: rgba(5, 5, 5, 0.86);
  backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
  display: flex; flex-direction: column; justify-content: center;
  padding: 100px var(--gutter) 40px;
  clip-path: circle(0 at calc(100% - 44px) 42px);
  transition: clip-path 0.7s var(--ease-in-out);
  visibility: hidden;
}
.menu.is-open { clip-path: circle(150% at calc(100% - 44px) 42px); visibility: visible; }
.menu__list { display: grid; gap: 4px; }
.menu__list a {
  display: flex; align-items: baseline; gap: 16px;
  font-family: var(--font-display); font-size: clamp(44px, 11vw, 72px); line-height: 1; letter-spacing: 0.02em;
  padding: 8px 0; border-bottom: 1px solid var(--line);
  transform: translateY(30px); opacity: 0;
  transition: transform 0.6s var(--ease-out), opacity 0.6s, color 0.3s;
}
.menu__list a:hover { color: var(--ember); }
.menu__list a small { font-family: var(--font-body); font-size: 12px; font-weight: 800; color: var(--fire); letter-spacing: 0.2em; }
.menu.is-open .menu__list a { transform: none; opacity: 1; }
.menu.is-open .menu__list a:nth-child(1) { transition-delay: 0.15s; }
.menu.is-open .menu__list a:nth-child(2) { transition-delay: 0.2s; }
.menu.is-open .menu__list a:nth-child(3) { transition-delay: 0.25s; }
.menu.is-open .menu__list a:nth-child(4) { transition-delay: 0.3s; }
.menu.is-open .menu__list a:nth-child(5) { transition-delay: 0.35s; }
.menu.is-open .menu__list a:nth-child(6) { transition-delay: 0.4s; }
.menu.is-open .menu__list a:nth-child(7) { transition-delay: 0.45s; }
.menu__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-top: 36px; color: var(--text-2); font-size: 13px; }
.menu__foot .socials a { width: 44px; height: 44px; }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100svh; display: grid; align-items: end;
  overflow: hidden; isolation: isolate;
  padding-top: 120px;
}
.hero__media { position: absolute; inset: -8% 0; z-index: -3; will-change: transform; }
.hero__media picture { display: block; width: 100%; height: 100%; }
.hero__media img {
  width: 100%; height: 100%; object-fit: cover; object-position: center 30%;
  transform: scale(1.08);
  animation: heroZoom 12s var(--ease-out) forwards;
  will-change: transform;
}
@keyframes heroZoom { to { transform: scale(1); } }
.hero__shade {
  position: absolute; inset: 0; z-index: -2;
  background:
    linear-gradient(180deg, rgba(5, 5, 5, 0.55) 0%, rgba(5, 5, 5, 0.15) 35%, rgba(5, 5, 5, 0.6) 70%, var(--bg) 100%),
    radial-gradient(70% 60% at 70% 40%, transparent 30%, rgba(5, 5, 5, 0.6) 100%);
}
.hero__embers { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; mix-blend-mode: screen; }

.hero__inner { padding-bottom: clamp(48px, 7vw, 96px); }
.hero__grid { display: grid; gap: 40px; align-items: end; }
@media (min-width: 1024px) { .hero__grid { grid-template-columns: 1.6fr 1fr; } }

.hero__eyebrow { margin-bottom: 22px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px; border-radius: 999px;
  font-size: 11px; font-weight: 800; letter-spacing: 0.2em; text-transform: uppercase;
  background: rgba(255, 255, 255, 0.06); border: 1px solid var(--line-strong);
  backdrop-filter: blur(10px);
}
.pill--live { color: #fff; border-color: rgba(255, 61, 0, 0.5); background: rgba(255, 61, 0, 0.14); }
.pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--fire); box-shadow: 0 0 12px var(--fire); animation: pulse 1.6s infinite; }
@keyframes pulse { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.5); opacity: 0.5; } }

.hero__title {
  font-size: clamp(74px, 15vw, 210px);
  line-height: 0.86; letter-spacing: -0.005em;
  text-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}
.hero__title .word { display: inline-block; overflow: hidden; vertical-align: bottom; padding-bottom: 0.06em; margin-bottom: -0.06em; }
.hero__title .word > span { display: inline-block; transform: translateY(110%); animation: rise 1.1s var(--ease-out) forwards; }
.hero__title .word:nth-child(2) > span { animation-delay: 0.12s; }
.hero__title .word:nth-child(3) > span { animation-delay: 0.24s; }
@keyframes rise { to { transform: translateY(0); } }

.hero__title .fire {
  background: var(--grad-fire);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 30px rgba(255, 90, 0, 0.35));
}

.hero__sub { margin-top: 24px; max-width: 520px; font-size: clamp(17px, 1.6vw, 20px); color: var(--text-2); }
.hero__sub strong { color: var(--text); font-weight: 700; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }

.hero__aside {
  display: grid; gap: 14px;
  animation: fadeUp 1.2s var(--ease-out) 0.5s both;
}
@keyframes fadeUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
.glass {
  background: rgba(12, 12, 14, 0.55);
  border: 1px solid var(--line);
  backdrop-filter: blur(20px) saturate(140%); -webkit-backdrop-filter: blur(20px) saturate(140%);
  border-radius: var(--r-lg);
}
.hero__card { padding: 22px 24px; display: grid; gap: 14px; }
.hero__card .k { font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--text-3); font-weight: 800; }
.hero__card .v { font-family: var(--font-display); font-size: 34px; line-height: 1; }
.hero__card .row { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.genres { display: flex; flex-wrap: wrap; gap: 8px; }
.genres span {
  padding: 8px 12px; border-radius: 8px; font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  background: var(--surface-2); border: 1px solid var(--line);
}

.scroll-cue {
  position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%);
  display: none; align-items: center; gap: 10px; font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--text-3);
}
@media (min-width: 1100px) and (min-height: 820px) { .scroll-cue { display: flex; flex-direction: column; } }
.scroll-cue i { width: 1px; height: 46px; background: linear-gradient(var(--text), transparent); animation: cue 1.8s infinite; transform-origin: top; }
@keyframes cue { 0% { transform: scaleY(0); opacity: 0; } 40% { transform: scaleY(1); opacity: 1; } 100% { transform: scaleY(1) translateY(20px); opacity: 0; } }

/* ---------- Marquee ---------- */
.marquee {
  position: relative; overflow: hidden; padding: 18px 0;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.015);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.tilt { overflow: hidden; padding-block: 22px; position: relative; z-index: 3; }
.marquee--fire { background: var(--grad-fire); color: #0a0a0a; border: 0; -webkit-mask-image: none; mask-image: none; width: 106%; margin-left: -3%; transform: rotate(-1.2deg); }
.marquee__track { display: flex; width: max-content; gap: 0; animation: marquee 32s linear infinite; }
.marquee--fast .marquee__track { animation-duration: 20s; }
.marquee--reverse .marquee__track { animation-direction: reverse; }
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
.marquee__item {
  display: inline-flex; align-items: center; gap: 22px; padding-right: 22px;
  font-family: var(--font-display); font-size: clamp(22px, 3vw, 34px); letter-spacing: 0.06em; white-space: nowrap;
}
.marquee__item i { width: 8px; height: 8px; border-radius: 50%; background: var(--fire); flex: none; }
.marquee--fire .marquee__item i { background: #0a0a0a; }

/* ---------- Eventi ---------- */
.events { display: grid; gap: 22px; }
@media (min-width: 760px) { .events { grid-template-columns: repeat(3, 1fr); } }

.event {
  --rx: 0deg; --ry: 0deg;
  position: relative; display: flex; flex-direction: column;
  border-radius: var(--r-lg); overflow: hidden;
  background: var(--bg-2); border: 1px solid var(--line);
  transform: perspective(1000px) rotateX(var(--rx)) rotateY(var(--ry));
  transition: transform 0.25s var(--ease-out), border-color 0.4s, box-shadow 0.4s;
  will-change: transform;
}
.event:hover { border-color: rgba(255, 61, 0, 0.45); box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 61, 0, 0.2), var(--fire-glow); }
.event__media { position: relative; aspect-ratio: 4 / 5; overflow: hidden; }
.event__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease-out), filter 0.6s; }
.event:hover .event__media img { transform: scale(1.06); }
.event__media::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(11, 11, 13, 0.95) 100%);
}
.event__date {
  position: absolute; top: 16px; left: 16px; z-index: 2;
  display: grid; place-items: center; text-align: center;
  padding: 10px 12px; min-width: 66px; border-radius: 12px;
  background: rgba(5, 5, 5, 0.7); border: 1px solid var(--line-strong);
  backdrop-filter: blur(10px);
}
.event__date b { font-family: var(--font-display); font-size: 34px; line-height: 0.9; }
.event__date small { font-size: 10px; font-weight: 800; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ember); }
.event__tag {
  position: absolute; top: 16px; right: 16px; z-index: 2;
  padding: 7px 12px; border-radius: 999px; font-size: 10px; font-weight: 800; letter-spacing: 0.18em; text-transform: uppercase;
  background: var(--grad-fire); color: #0a0a0a;
}
.event__body { position: relative; padding: 22px 22px 24px; margin-top: -60px; z-index: 2; display: grid; gap: 8px; }
.event__title { font-family: var(--font-display); font-size: clamp(34px, 3vw, 44px); line-height: 0.95; }
.event__meta { display: flex; flex-wrap: wrap; gap: 8px 16px; color: var(--text-2); font-size: 13px; }
.event__meta span { display: inline-flex; align-items: center; gap: 6px; }
.event__meta svg { width: 14px; height: 14px; color: var(--ember); }
.event__foot { display: flex; align-items: center; justify-content: space-between; margin-top: 12px; padding-top: 16px; border-top: 1px solid var(--line); }
.event__shine {
  position: absolute; inset: 0; z-index: 3; pointer-events: none;
  background: radial-gradient(500px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, 0.10), transparent 40%);
  opacity: 0; transition: opacity 0.4s;
}
.event:hover .event__shine { opacity: 1; }

/* ---------- Reels ---------- */
.reels {
  display: grid; gap: 40px; align-items: center;
}
@media (min-width: 1024px) { .reels { grid-template-columns: 1fr 1.2fr; gap: 64px; } }
.reels__copy { display: grid; gap: 22px; }
.reels__copy p { color: var(--text-2); font-size: 17px; max-width: 460px; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 10px; }
.stat { padding: 18px 16px; border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--line); }
.stat b { display: block; font-family: var(--font-display); font-size: 40px; line-height: 1; }
.stat span { font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-3); font-weight: 800; }

.phones { display: flex; justify-content: center; gap: clamp(14px, 3vw, 28px); }
.phone {
  position: relative; width: min(46%, 300px); aspect-ratio: 9 / 17.5;
  border-radius: 38px; padding: 10px;
  background: linear-gradient(160deg, #2a2a2e, #0b0b0d);
  box-shadow: 0 40px 90px rgba(0, 0, 0, 0.7), inset 0 0 0 1px rgba(255, 255, 255, 0.12);
  cursor: pointer;
  transition: transform 0.6s var(--ease-out);
}
.phone:nth-child(2) { transform: translateY(40px); }
.phone:hover { transform: translateY(-6px) scale(1.02); }
.phone:nth-child(2):hover { transform: translateY(34px) scale(1.02); }
.phone::before {
  content: ''; position: absolute; top: 20px; left: 50%; transform: translateX(-50%);
  width: 34%; height: 22px; border-radius: 999px; background: #000; z-index: 3;
}
.phone__screen { position: relative; width: 100%; height: 100%; border-radius: 30px; overflow: hidden; background: #000; }
.phone video { width: 100%; height: 100%; object-fit: cover; }
.phone__ui {
  position: absolute; inset: auto 12px 14px 12px; z-index: 2;
  display: flex; align-items: center; justify-content: space-between;
}
.phone__ui .tag { font-size: 11px; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8); max-width: calc(100% - 52px); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.phone__ui .iconbtn { flex: none; }
@media (max-width: 600px) { .phone__ui .tag { font-size: 9px; letter-spacing: 0.1em; } .phone__ui .iconbtn { width: 34px; height: 34px; } }
.iconbtn {
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(0, 0, 0, 0.55); border: 1px solid rgba(255, 255, 255, 0.2); backdrop-filter: blur(8px);
}
.iconbtn svg { width: 16px; height: 16px; }
.phone .ic-on { display: none; }
.phone.is-unmuted .ic-on { display: block; }
.phone.is-unmuted .ic-off { display: none; }
.phone__play {
  position: absolute; inset: 0; z-index: 2; display: grid; place-items: center;
  background: rgba(0, 0, 0, 0.25); transition: opacity 0.4s;
}
.phone__play span { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: var(--grad-fire); color: #000; box-shadow: var(--fire-glow); }
.phone__play svg { width: 22px; height: 22px; margin-left: 3px; }
.phone.is-playing .phone__play { opacity: 0; pointer-events: none; }

/* ---------- Galleria / archivio ---------- */
.gallery { display: grid; gap: 16px; }
.strip { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.strip__track { display: flex; gap: 16px; width: max-content; animation: marquee 48s linear infinite; }
.strip--reverse .strip__track { animation-direction: reverse; animation-duration: 56s; }
.strip:hover .strip__track { animation-play-state: paused; }
.poster {
  position: relative; flex: none; width: clamp(180px, 22vw, 280px); aspect-ratio: 1; border-radius: var(--r-md); overflow: hidden;
  border: 1px solid var(--line); background: var(--bg-2); cursor: zoom-in;
  transition: transform 0.5s var(--ease-out), border-color 0.4s;
}
.poster img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease-out), filter 0.5s; filter: saturate(0.85) contrast(1.05); }
.poster:hover { transform: translateY(-6px) rotate(-0.6deg); border-color: rgba(255, 61, 0, 0.5); }
.poster:hover img { transform: scale(1.08); filter: none; }
.poster::after {
  content: '+'; position: absolute; right: 12px; bottom: 12px; width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center; font-family: var(--font-display); font-size: 22px;
  background: var(--grad-fire); color: #000; opacity: 0; transform: scale(0.6); transition: 0.35s var(--ease-out);
}
.poster:hover::after { opacity: 1; transform: none; }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 1100; display: grid; place-items: center; padding: 24px;
  background: rgba(3, 3, 3, 0.9); backdrop-filter: blur(16px);
  opacity: 0; visibility: hidden; transition: opacity 0.4s, visibility 0.4s;
}
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox img {
  max-width: min(92vw, 720px); max-height: 86vh; border-radius: var(--r-md);
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.8), 0 0 0 1px var(--line-strong);
  transform: scale(0.92); transition: transform 0.5s var(--ease-out);
}
.lightbox.is-open img { transform: none; }
.lightbox__close { position: absolute; top: 20px; right: 20px; }

/* ---------- Contest ---------- */
.contest {
  position: relative; border-radius: var(--r-xl); overflow: hidden;
  background: var(--bg-2); border: 1px solid var(--line);
  display: grid;
}
@media (min-width: 900px) { .contest { grid-template-columns: 0.9fr 1.1fr; } }
.contest__poster { position: relative; min-height: 380px; }
.contest__poster img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.contest__poster::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent 60%, var(--bg-2) 100%), linear-gradient(0deg, var(--bg-2) 0%, transparent 30%);
}
@media (max-width: 899px) { .contest__poster::after { background: linear-gradient(0deg, var(--bg-2) 0%, transparent 40%); } }
.contest__body { padding: clamp(28px, 4vw, 56px); display: grid; gap: 22px; align-content: center; }
.contest__title { font-size: clamp(56px, 8vw, 110px); line-height: 0.88; }
.contest__soon {
  display: inline-flex; align-items: center; gap: 12px; width: fit-content;
  font-family: var(--font-display); font-size: 26px; letter-spacing: 0.1em; color: var(--ember);
}
.contest__soon i { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--ember); box-shadow: 0 0 14px var(--ember); animation: pulse 1.4s infinite; }
.infolist { display: grid; gap: 12px; }
.infolist > a, .infolist > div {
  display: flex; align-items: center; gap: 14px; padding: 14px 16px;
  border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--line);
  transition: border-color 0.3s, background 0.3s, transform 0.3s var(--ease-out);
}
.infolist > a:hover { border-color: rgba(255, 61, 0, 0.5); background: var(--surface-2); transform: translateX(4px); }
.infolist svg { width: 20px; height: 20px; color: var(--ember); flex: none; }
.infolist b { font-weight: 800; }
.infolist small { color: var(--text-3); font-size: 12px; display: block; letter-spacing: 0.1em; text-transform: uppercase; }

/* ---------- Chi siamo ---------- */
.about { display: grid; gap: 40px; align-items: center; }
@media (min-width: 1024px) { .about { grid-template-columns: 1fr 1fr; gap: 72px; } }
.about__media { position: relative; }
.about__media img { border-radius: var(--r-xl); aspect-ratio: 4 / 5; object-fit: cover; width: 100%; filter: saturate(0.95); }
.about__badge {
  position: absolute; right: -10px; bottom: 30px; padding: 18px 20px; border-radius: var(--r-md);
  display: grid; gap: 4px; min-width: 190px;
  animation: floaty 6s ease-in-out infinite;
}
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.about__badge b { font-family: var(--font-display); font-size: 40px; line-height: 1; }
.about__badge span { font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--text-2); font-weight: 800; }
.about__ring {
  position: absolute; left: -30px; top: -30px; width: 150px; height: 150px;
  animation: spin 18s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.about__ring text { font-family: var(--font-body); font-weight: 800; font-size: 12.5px; letter-spacing: 0.32em; fill: var(--text-2); }
@media (max-width: 1023px) { .about__ring { left: 14px; top: -40px; width: 110px; height: 110px; } .about__badge { right: 14px; } }
.about__copy { display: grid; gap: 22px; }
.about__copy .big { font-size: clamp(22px, 2.4vw, 30px); line-height: 1.3; font-weight: 500; }
.about__copy .big em { font-style: normal; color: var(--ember); }
.about__copy p { color: var(--text-2); font-size: 17px; }
.about__cta { display: flex; flex-wrap: wrap; gap: 12px; }


/* ---------- Guest list / forms ---------- */
.guest {
  position: relative; border-radius: var(--r-xl); overflow: hidden; display: grid;
  background: var(--bg-2); border: 1px solid var(--line);
}
@media (min-width: 960px) { .guest { grid-template-columns: 1fr 1fr; } }
.guest__side {
  position: relative; padding: clamp(28px, 4vw, 56px); display: grid; gap: 20px; align-content: space-between;
  background:
    radial-gradient(600px 400px at 0% 0%, rgba(255, 61, 0, 0.35), transparent 60%),
    radial-gradient(500px 500px at 100% 100%, rgba(255, 138, 0, 0.18), transparent 60%),
    var(--bg-3);
  overflow: hidden;
}
.guest__side::after {
  content: 'FUEGO'; position: absolute; right: -20px; bottom: -40px; font-family: var(--font-display); font-size: 220px; line-height: 1;
  color: transparent; -webkit-text-stroke: 1px rgba(255, 255, 255, 0.08); pointer-events: none;
}
.guest__side .display { font-size: clamp(48px, 6vw, 84px); line-height: 0.9; position: relative; }
.guest__side p { color: var(--text-2); max-width: 420px; position: relative; }
.perks { display: grid; gap: 10px; position: relative; }
.perks li { display: flex; align-items: center; gap: 12px; font-weight: 600; }
.perks svg { width: 18px; height: 18px; color: var(--ember); flex: none; }
.guest__form { padding: clamp(28px, 4vw, 56px); }

.form { display: grid; gap: 16px; }
.form__row { display: grid; gap: 16px; }
@media (min-width: 620px) { .form__row { grid-template-columns: 1fr 1fr; } }
.field { position: relative; display: grid; gap: 8px; }
.field label { font-size: 11px; font-weight: 800; letter-spacing: 0.18em; text-transform: uppercase; color: var(--text-3); }
.field input, .field select, .field textarea {
  width: 100%; padding: 16px 18px; border-radius: 14px;
  background: var(--surface); border: 1px solid var(--line); color: var(--text);
  transition: border-color 0.3s, background 0.3s, box-shadow 0.3s;
  -webkit-appearance: none; appearance: none;
}
.field textarea { resize: vertical; min-height: 140px; }
.field select { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23ff8a00' stroke-width='2.5'><path d='m6 9 6 6 6-6'/></svg>"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 44px; }
.field select option { background: #111; color: #fff; }
.field input::placeholder, .field textarea::placeholder { color: var(--text-3); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--fire); background: rgba(255, 61, 0, 0.05);
  box-shadow: 0 0 0 4px rgba(255, 61, 0, 0.14);
}
.form__note { font-size: 12px; color: var(--text-3); }
.form .btn { margin-top: 6px; }
.btn.is-loading { pointer-events: none; opacity: 0.7; }
.btn.is-loading svg { animation: spin 1s linear infinite; }

/* Toast */
.toast {
  position: fixed; left: 50%; bottom: 28px; z-index: 1200; transform: translate(-50%, 30px);
  padding: 14px 22px; border-radius: 999px; font-weight: 700; font-size: 14px;
  background: #fff; color: #000; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
  opacity: 0; visibility: hidden; transition: 0.45s var(--ease-out);
  display: inline-flex; align-items: center; gap: 10px; max-width: calc(100vw - 32px);
}
.toast.is-show { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.toast--ok { background: var(--grad-fire); }
.toast--err { background: #ff2a2a; color: #fff; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 40px; align-items: start; }
@media (min-width: 1024px) { .faq { grid-template-columns: 1fr 1.4fr; } }
.faq__head { display: grid; gap: 16px; }
@media (min-width: 1024px) { .faq__head { position: sticky; top: 110px; } }
.faq__head p { color: var(--text-2); }
.faq__list { display: grid; gap: 10px; }
.faq__item { border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); overflow: hidden; transition: border-color 0.3s, background 0.3s; }
.faq__item[open] { border-color: rgba(255, 61, 0, 0.4); background: var(--surface-2); }
.faq__item summary {
  list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 22px 24px; cursor: pointer; font-weight: 700; font-size: 17px;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary .plus {
  position: relative; width: 34px; height: 34px; flex: none; border-radius: 50%; border: 1px solid var(--line-strong);
  transition: transform 0.4s var(--ease-out), background 0.3s, border-color 0.3s;
}
.faq__item summary .plus::before, .faq__item summary .plus::after {
  content: ''; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; background: currentColor; transform: translate(-50%, -50%);
}
.faq__item summary .plus::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq__item[open] summary .plus { transform: rotate(45deg); background: var(--grad-fire); color: #000; border-color: transparent; }
.faq__body { padding: 0 24px 24px; color: var(--text-2); max-width: 640px; overflow: hidden; }
.faq__body a { color: var(--ember); font-weight: 700; }

/* ---------- Mega CTA ---------- */
.cta {
  position: relative; overflow: hidden; text-align: center; padding-block: clamp(90px, 14vw, 180px);
  isolation: isolate;
}
.cta__bg {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(60% 80% at 50% 120%, rgba(255, 61, 0, 0.55), transparent 60%),
    radial-gradient(40% 40% at 20% 20%, rgba(255, 138, 0, 0.18), transparent 60%);
}
.cta__title { font-size: clamp(64px, 12vw, 190px); line-height: 0.86; }
.cta__title .line { display: block; }
.cta p { margin: 22px auto 0; max-width: 520px; color: var(--text-2); font-size: 17px; }
.cta .btn { margin-top: 36px; }
.cta__glow {
  position: absolute; left: 50%; bottom: -200px; z-index: -1; width: 900px; height: 500px; transform: translateX(-50%);
  background: radial-gradient(circle, rgba(255, 61, 0, 0.55), transparent 60%); filter: blur(40px);
  animation: breathe 5s ease-in-out infinite;
}
@keyframes breathe { 0%, 100% { opacity: 0.7; transform: translateX(-50%) scale(1); } 50% { opacity: 1; transform: translateX(-50%) scale(1.12); } }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding: clamp(48px, 6vw, 80px) 0 32px; background: var(--bg-2); }
.footer__grid { display: grid; gap: 36px; }
@media (min-width: 900px) { .footer__grid { grid-template-columns: 1.5fr 1fr 1fr 1fr; } }
.footer__brand { display: grid; gap: 16px; align-content: start; }
.footer__brand p { color: var(--text-2); max-width: 340px; font-size: 15px; }
.footer h4 { font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--text-3); margin-bottom: 18px; font-weight: 800; }
.footer__col li + li { margin-top: 10px; }
.footer__col a { color: var(--text-2); transition: color 0.3s; font-size: 15px; }
.footer__col a:hover { color: var(--ember); }
.socials { display: flex; gap: 10px; }
.socials a {
  width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center;
  background: var(--surface-2); border: 1px solid var(--line); transition: 0.35s var(--ease-out);
}
.socials a:hover { transform: translateY(-4px); background: var(--grad-fire); color: #000; border-color: transparent; box-shadow: var(--fire-glow); }
.socials svg { width: 20px; height: 20px; }
.footer__bottom {
  margin-top: clamp(40px, 6vw, 72px); padding-top: 24px; border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px;
  font-size: 13px; color: var(--text-3);
}
.footer__word {
  margin-top: 40px; font-family: var(--font-display); font-size: clamp(90px, 22vw, 340px); line-height: 0.8; text-align: center;
  color: transparent; -webkit-text-stroke: 1px rgba(255, 255, 255, 0.08);
  user-select: none; pointer-events: none;
}

/* ---------- Contatti page ---------- */
.page-hero {
  position: relative; padding: 170px 0 80px; overflow: hidden; isolation: isolate;
}
.page-hero__media { position: absolute; inset: 0; z-index: -2; }
.page-hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; opacity: 0.5; }
.page-hero__shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(5, 5, 5, 0.6), var(--bg)); }
.page-hero__title { font-size: clamp(64px, 13vw, 170px); line-height: 0.88; margin-top: 20px; }
.page-hero p { margin-top: 20px; max-width: 560px; color: var(--text-2); font-size: 18px; }

.cards { display: grid; gap: 16px; }
@media (min-width: 760px) { .cards { grid-template-columns: repeat(3, 1fr); } }
.card {
  position: relative; display: grid; gap: 14px; padding: 30px 28px; border-radius: var(--r-lg);
  background: var(--surface); border: 1px solid var(--line); overflow: hidden;
  transition: transform 0.5s var(--ease-out), border-color 0.4s, background 0.4s;
}
.card:hover { transform: translateY(-6px); border-color: rgba(255, 61, 0, 0.45); background: var(--surface-2); }
.card__icon { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: var(--fire-soft); color: var(--ember); border: 1px solid rgba(255, 61, 0, 0.3); }
.card__icon svg { width: 22px; height: 22px; }
.card h3 { font-family: var(--font-display); font-size: 30px; line-height: 1; }
.card p { color: var(--text-2); font-size: 15px; }
.card .link-arrow { margin-top: 6px; }
.card__num { position: absolute; right: 18px; top: 14px; font-family: var(--font-display); font-size: 64px; line-height: 1; color: transparent; -webkit-text-stroke: 1px rgba(255, 255, 255, 0.1); }

.contact-layout { display: grid; gap: 40px; align-items: start; }
@media (min-width: 1024px) { .contact-layout { grid-template-columns: 0.9fr 1.1fr; gap: 64px; } }
.contact-layout .sticky { display: grid; gap: 22px; }
@media (min-width: 1024px) { .contact-layout .sticky { position: sticky; top: 110px; } }
.contact-layout .sticky p { color: var(--text-2); font-size: 17px; }
.form-card { padding: clamp(24px, 3.5vw, 44px); border-radius: var(--r-xl); background: var(--bg-2); border: 1px solid var(--line); }

.join {
  position: relative; border-radius: var(--r-xl); overflow: hidden; padding: clamp(32px, 5vw, 72px);
  background:
    radial-gradient(700px 400px at 100% 0%, rgba(255, 61, 0, 0.35), transparent 60%),
    radial-gradient(500px 500px at 0% 100%, rgba(255, 138, 0, 0.15), transparent 60%),
    var(--bg-3);
  border: 1px solid var(--line);
  display: grid; gap: 28px;
}
@media (min-width: 1024px) { .join { grid-template-columns: 1.2fr 1fr; align-items: center; } }
.join .display { font-size: clamp(52px, 8vw, 110px); line-height: 0.88; }
.join p { color: var(--text-2); font-size: 17px; max-width: 520px; margin-top: 18px; }
.roles { display: grid; gap: 12px; }
.role {
  display: flex; align-items: center; gap: 16px; padding: 18px 20px; border-radius: var(--r-md);
  background: rgba(5, 5, 5, 0.5); border: 1px solid var(--line); backdrop-filter: blur(10px);
  transition: transform 0.4s var(--ease-out), border-color 0.3s;
}
.role:hover { transform: translateX(6px); border-color: rgba(255, 61, 0, 0.5); }
.role svg { width: 22px; height: 22px; color: var(--ember); flex: none; }
.role b { display: block; font-weight: 800; }
.role span { font-size: 13px; color: var(--text-2); }
.join .btn { margin-top: 28px; }

.map { position: relative; width: 100%; height: clamp(360px, 42vw, 560px); border-radius: var(--r-xl); overflow: hidden; border: 1px solid var(--line); }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: grayscale(1) invert(0.92) contrast(1.1) hue-rotate(180deg) brightness(0.9); }
.map__pin {
  position: absolute; left: 20px; bottom: 20px; padding: 16px 18px; display: grid; gap: 4px; max-width: 300px;
}
.map__pin b { font-family: var(--font-display); font-size: 26px; line-height: 1; }
.map__pin span { color: var(--text-2); font-size: 14px; }

/* ---------- Reveal ---------- */
/* Usa `translate` (proprietà separata) così non entra in conflitto con i transform di tilt/hover */
.reveal { opacity: 0; translate: 0 32px; transition: opacity 0.9s var(--ease-out), translate 0.9s var(--ease-out); }
.reveal.is-in { opacity: 1; translate: 0 0; }
.event.reveal { transition: opacity 0.9s var(--ease-out), translate 0.9s var(--ease-out), transform 0.25s var(--ease-out), border-color 0.4s, box-shadow 0.4s; }
.card.reveal { transition: opacity 0.9s var(--ease-out), translate 0.9s var(--ease-out), transform 0.5s var(--ease-out), border-color 0.4s, background 0.4s; }
.btn.reveal { transition: opacity 0.9s var(--ease-out), translate 0.9s var(--ease-out), transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out), background 0.3s; }
.reveal[data-delay="1"] { transition-delay: 0.08s; }
.reveal[data-delay="2"] { transition-delay: 0.16s; }
.reveal[data-delay="3"] { transition-delay: 0.24s; }
.reveal[data-delay="4"] { transition-delay: 0.32s; }

/* Split text (per-word reveal of headings) */
.split .w { display: inline-block; overflow: hidden; vertical-align: bottom; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.split .w > span { display: inline-block; transform: translateY(110%); transition: transform 1s var(--ease-out); }
.split.is-in .w > span { transform: none; }
/* background-clip:text non si propaga agli inline-block figli: sposta il gradiente sulla parola */
.split .text-fire { background: none; color: inherit; }
.split .text-fire .w > span { background: var(--grad-fire); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; translate: 0 0; }
  .split .w > span, .hero__title .word > span { transform: none; }
  .grain, .cursor-glow { display: none; }
  .marquee__track, .strip__track { animation: none; }
}

/* =========================================================
   V2 — rifiniture
   ========================================================= */

/* Scrollbar */
html { scrollbar-color: #3a1a10 var(--bg); scrollbar-width: thin; }
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: linear-gradient(var(--fire), var(--ember)); border-radius: 999px; border: 2px solid var(--bg); }

/* Intro loader */
.loader {
  position: fixed; inset: 0; z-index: 3000; display: grid; place-items: center;
  background: var(--bg); color: var(--text);
  transition: transform 0.9s var(--ease-in-out), visibility 0s linear 0.9s;
  animation: loaderAuto 0s 4s forwards; /* fallback se JS non parte */
}
.loader.is-done { transform: translateY(-101%); visibility: hidden; }
@keyframes loaderAuto { to { visibility: hidden; transform: translateY(-101%); } }
.loader__inner { display: grid; justify-items: center; gap: 22px; }
.loader__word {
  font-family: var(--font-display); font-size: clamp(64px, 12vw, 140px); line-height: 1; letter-spacing: 0.06em;
  display: inline-flex; align-items: flex-start; gap: 4px; overflow: hidden;
}
.loader__word > span { display: inline-block; transform: translateY(110%); animation: rise 0.9s var(--ease-out) 0.1s forwards; }
.loader__word sup { font-family: var(--font-body); font-size: 0.16em; font-weight: 800; margin-top: 0.2em; }
.loader__bar { width: min(260px, 60vw); height: 2px; background: var(--line); border-radius: 2px; overflow: hidden; }
.loader__bar i { display: block; height: 100%; width: 100%; background: var(--grad-fire); transform-origin: left; transform: scaleX(0); animation: loadBar 1.1s var(--ease-in-out) 0.2s forwards; }
@keyframes loadBar { to { transform: scaleX(1); } }
.loader__tag { font-size: 11px; letter-spacing: 0.3em; text-transform: uppercase; color: var(--text-3); font-weight: 800; }
/* le animazioni dell'hero partono solo quando il loader è andato via */
body:not(.is-ready) .hero__title .word > span,
body:not(.is-ready) .hero__media img,
body:not(.is-ready) .hero__aside { animation-play-state: paused; }

/* Hero: gradiente vivo su FIRE + glow pulsante */
.hero__title .fire {
  background-size: 200% 100%;
  animation: fireShift 5s ease-in-out infinite alternate, fireGlow 3s ease-in-out infinite;
}
@keyframes fireShift { from { background-position: 0% 50%; } to { background-position: 100% 50%; } }
@keyframes fireGlow {
  0%, 100% { filter: drop-shadow(0 0 22px rgba(255, 90, 0, 0.35)); }
  50% { filter: drop-shadow(0 0 46px rgba(255, 120, 0, 0.6)); }
}
.hero__glow {
  position: absolute; z-index: -2; border-radius: 50%; filter: blur(90px); pointer-events: none; mix-blend-mode: screen;
  animation: blobFloat 14s ease-in-out infinite alternate;
}
.hero__glow--1 { width: 520px; height: 520px; left: -160px; bottom: -120px; background: rgba(255, 61, 0, 0.35); }
.hero__glow--2 { width: 460px; height: 460px; right: -140px; top: 10%; background: rgba(255, 138, 0, 0.22); animation-delay: -6s; }
@keyframes blobFloat { from { transform: translate(0, 0) scale(1); } to { transform: translate(40px, -60px) scale(1.15); } }

/* Blob decorativi nelle sezioni */
.section--glow { overflow: clip; }
.blob {
  position: absolute; z-index: -1; border-radius: 50%; filter: blur(100px); pointer-events: none; opacity: 0.5;
  animation: blobFloat 18s ease-in-out infinite alternate;
}
.blob--fire { background: rgba(255, 61, 0, 0.28); }
.blob--ember { background: rgba(255, 138, 0, 0.18); }

/* Eyebrow con numero sezione */
.eyebrow .num { color: var(--text-3); font-variant-numeric: tabular-nums; }

/* Bottoni: riflesso che scorre */
.btn::before {
  content: ''; position: absolute; top: 0; bottom: 0; left: -40%; width: 30%; z-index: 1;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.45), transparent);
  transform: skewX(-20deg) translateX(-200%); transition: transform 0.9s var(--ease-out);
  pointer-events: none;
}
.btn:hover::before { transform: skewX(-20deg) translateX(600%); }
.btn > * { position: relative; z-index: 2; }

/* Event card: bordo gradiente al passaggio */
.event::before {
  content: ''; position: absolute; inset: 0; z-index: 5; border-radius: inherit; padding: 1.5px; pointer-events: none;
  background: linear-gradient(140deg, var(--fire), transparent 35%, transparent 65%, var(--ember));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0; transition: opacity 0.45s;
}
.event:hover::before { opacity: 1; }
.event__body .link-arrow { transition: color 0.3s, gap 0.3s; }
.event:hover .event__body .link-arrow { color: var(--ember); gap: 12px; }

/* Reels: alone dietro gli smartphone */
.phones { position: relative; }
.phones::before {
  content: ''; position: absolute; z-index: -1; inset: 10% 5%; border-radius: 50%; filter: blur(80px);
  background: radial-gradient(circle, rgba(255, 61, 0, 0.35), rgba(255, 138, 0, 0.1) 50%, transparent 70%);
  animation: breathe 6s ease-in-out infinite;
}

/* Poster: didascalia in hover */
.poster figcaption {
  position: absolute; inset: auto 0 0 0; padding: 40px 14px 14px; margin: 0;
  font-size: 12px; font-weight: 700; letter-spacing: 0.06em; line-height: 1.3; color: #fff;
  background: linear-gradient(0deg, rgba(5, 5, 5, 0.95), transparent);
  transform: translateY(100%); transition: transform 0.45s var(--ease-out);
  pointer-events: none;
}
.poster:hover figcaption { transform: none; }
.poster::after { z-index: 2; }

/* Stat: numero con gradiente */
.stat b { background: var(--grad-fire); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Card contatti: bordo gradiente hover */
.card::before {
  content: ''; position: absolute; inset: 0; border-radius: inherit; padding: 1.5px; pointer-events: none;
  background: linear-gradient(140deg, var(--fire), transparent 40%, transparent 60%, var(--ember));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0; transition: opacity 0.45s;
}
.card:hover::before { opacity: 1; }

/* Torna su */
.totop {
  position: fixed; right: 22px; bottom: 22px; z-index: 800;
  width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(12, 12, 14, 0.7); border: 1px solid var(--line-strong); backdrop-filter: blur(12px);
  opacity: 0; visibility: hidden; transform: translateY(16px);
  transition: 0.45s var(--ease-out);
}
.totop.is-show { opacity: 1; visibility: visible; transform: none; }
.totop:hover { background: var(--grad-fire); color: #000; border-color: transparent; box-shadow: var(--fire-glow); }
.totop svg { width: 18px; height: 18px; }
@media (max-width: 1099px) { .totop { bottom: 92px; right: 16px; } }

/* Barra CTA mobile */
.mobile-cta {
  position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 800;
  display: none; gap: 8px; padding: 8px; border-radius: 999px;
  background: rgba(12, 12, 14, 0.75); border: 1px solid var(--line-strong);
  backdrop-filter: blur(18px) saturate(140%); -webkit-backdrop-filter: blur(18px) saturate(140%);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
  transform: translateY(120%); opacity: 0; transition: 0.5s var(--ease-out);
}
.mobile-cta.is-show { transform: none; opacity: 1; }
.mobile-cta .btn { flex: 1; padding: 14px 16px; font-size: 12px; }
@media (max-width: 1099px) { .mobile-cta { display: flex; } body.menu-open .mobile-cta { transform: translateY(120%); opacity: 0; } }

/* Divisori sezione con gradiente */
.section + .section::before {
  content: ''; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: min(100% - var(--gutter) * 2, var(--container)); height: 1px;
  background: linear-gradient(90deg, transparent, var(--line-strong) 20%, var(--line-strong) 80%, transparent);
}
.cta.section::before { display: none; }

/* Header: logo hover */
.brand__logo { transition: box-shadow 0.4s; }
.brand:hover .brand__logo { box-shadow: 0 0 0 1px rgba(255, 61, 0, 0.6), 0 6px 24px rgba(255, 61, 0, 0.45); }

/* Reduced motion per le novità */
@media (prefers-reduced-motion: reduce) {
  .loader { display: none; }
  .hero__title .fire, .hero__glow, .blob, .phones::before { animation: none; }
  body:not(.is-ready) .hero__title .word > span, body:not(.is-ready) .hero__media img, body:not(.is-ready) .hero__aside { animation-play-state: running; }
}
