/* ============================================================
   FIT&JOY — redesign stile Apple
   Font di sistema (SF Pro su macOS/iOS), palette apple-like:
   bianco #fbfbfd · grigio #f5f5f7 · testo #1d1d1f · blu #0071e3
   ============================================================ */

* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg: #fbfbfd;
  --bg-gray: #f5f5f7;
  --ink: #1d1d1f;
  --muted: #6e6e73;
  --blue: #0071e3;
  --radius: 28px;
}

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

/* ---------- Nav vetro ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  background: rgba(251, 251, 253, 0.72);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  transition: background 0.3s ease;
}
.nav-inner {
  max-width: 1024px; margin: 0 auto; padding: 0 22px;
  height: 48px; display: flex; align-items: center; gap: 28px;
}
.nav-logo { font-weight: 700; font-size: 17px; letter-spacing: -0.02em; }
.nav-logo span { color: var(--blue); }
.nav-links { display: flex; gap: 24px; margin: 0 auto; }
.nav-links a {
  font-size: 12px; color: rgba(29, 29, 31, 0.8);
  transition: color 0.2s ease;
}
.nav-links a:hover { color: var(--ink); }
.nav-cta {
  font-size: 12px; background: var(--blue); color: #fff;
  padding: 6px 14px; border-radius: 980px; white-space: nowrap;
  transition: background 0.2s ease;
}
.nav-cta:hover { background: #0077ed; }

/* ---------- Hero ---------- */
.hero {
  padding: 140px 22px 0; text-align: center;
  background: #000; color: #f5f5f7; overflow: hidden;
}
.hero-eyebrow { font-size: 17px; color: #86868b; font-weight: 600; }
.hero-title {
  font-size: clamp(56px, 10vw, 112px);
  line-height: 1.03; letter-spacing: -0.02em; font-weight: 700;
  margin-top: 10px;
  background: linear-gradient(180deg, #fff 55%, #a1a1a6);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.hero-sub {
  font-size: clamp(19px, 2.4vw, 26px); color: #a1a1a6;
  margin-top: 18px; font-weight: 500;
}
.hero-cta {
  margin-top: 28px; display: flex; gap: 26px;
  justify-content: center; align-items: center; flex-wrap: wrap;
}
.btn-primary {
  background: var(--blue); color: #fff; font-size: 17px;
  padding: 12px 24px; border-radius: 980px; font-weight: 500;
  transition: background 0.2s ease, transform 0.2s ease;
}
.btn-primary:hover { background: #0077ed; transform: scale(1.02); }
.btn-link { color: #2997ff; font-size: 17px; }
.btn-link:hover { text-decoration: underline; }


/* ---------- Statement ---------- */
.statement {
  padding: 140px 22px; text-align: center;
  max-width: 900px; margin: 0 auto;
}
.statement h2 {
  font-size: clamp(34px, 5.4vw, 60px); line-height: 1.1;
  letter-spacing: -0.015em; font-weight: 700;
}
.grad {
  background: linear-gradient(90deg, #0090f7, #ba62fc 45%, #f2416b 75%, #f55600);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.statement p { margin-top: 16px; font-size: 21px; color: var(--muted); }

/* ---------- Pannelli ---------- */
.panels { padding: 0 12px 12px; max-width: 1440px; margin: 0 auto; }
.panel {
  border-radius: var(--radius); overflow: hidden;
  text-align: center; margin-bottom: 12px;
  background: var(--bg-gray);
}
.panel-dark { background: #000; color: #f5f5f7; }
.panel-copy { padding: 64px 24px 0; }
/* marchio FIT&JOY sopra il titolo (era watermark sull'immagine) */
.panel-brand {
  font-weight: 800; letter-spacing: -0.01em; font-size: clamp(15px, 1.9vw, 20px);
  margin-bottom: 14px; color: #f5f5f7;
}
.panel-brand span { color: var(--blue); }
.panel-brand em {
  font-style: normal; font-weight: 500; color: #a1a1a6;
  letter-spacing: 0.14em; text-transform: uppercase; font-size: 0.62em; margin-left: 6px;
}
.panel-light .panel-brand { color: var(--ink); }
.panel-light .panel-brand em { color: var(--muted); }
.panel h3 {
  font-size: clamp(32px, 4.6vw, 56px); font-weight: 700; letter-spacing: -0.015em;
}
.panel-tag { font-size: clamp(19px, 2.2vw, 28px); margin-top: 6px; font-weight: 500; }
.panel-light .panel-tag { color: var(--muted); }
.panel-dark .panel-tag { color: #a1a1a6; }
.panel-text {
  max-width: 560px; margin: 14px auto 0; font-size: 17px;
}
.panel-dark .panel-text { color: #a1a1a6; }
.panel-copy .btn-link { display: inline-block; margin-top: 14px; }
.panel-media { margin-top: 40px; }
.panel-media img { width: 100%; height: 100%; object-fit: cover; }
.panel-full .panel-media img { max-height: 620px; }

.panel-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 12px;
}
.panel-grid .panel { margin-bottom: 0; display: flex; flex-direction: column; }
/* immagine a filo dei bordi del pannello: niente banda grigia attorno */
.panel-grid .panel-media { margin-top: 32px; flex: 1; }
.panel-grid .panel-media img {
  height: 100%; min-height: 300px;
  width: 100%; object-fit: cover; display: block;
}

/* ---------- Extras ---------- */
.extras {
  max-width: 1024px; margin: 0 auto;
  padding: 120px 22px; display: grid;
  grid-template-columns: repeat(3, 1fr); gap: 48px;
}
.extra-kicker { color: var(--blue); font-weight: 600; font-size: 14px; }
.extra h4 { font-size: 24px; letter-spacing: -0.01em; margin-top: 6px; }
.extra p:last-child { margin-top: 8px; color: var(--muted); font-size: 15px; }

/* ---------- Orari ---------- */
.orari {
  background: #000; color: #f5f5f7;
  padding: 120px 22px; text-align: center;
}
.orari h2 {
  font-size: clamp(36px, 5.4vw, 64px); font-weight: 700;
  letter-spacing: -0.015em; line-height: 1.06;
}
.orari-table {
  max-width: 560px; margin: 48px auto 0;
}
.orow {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 18px 4px; border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 19px;
}
.orow span { color: #a1a1a6; }
.orow em { font-style: normal; font-size: 14px; color: #6e6e73; }
.orow strong { font-weight: 600; font-variant-numeric: tabular-nums; }

/* ---------- Finale ---------- */
.finale { padding: 140px 22px; text-align: center; }
.finale h2 { font-size: clamp(44px, 7vw, 80px); font-weight: 700; letter-spacing: -0.02em; }
.finale p { margin-top: 14px; font-size: 21px; color: var(--muted); }

/* ---------- Footer ---------- */
.footer {
  background: var(--bg-gray); color: var(--muted);
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  font-size: 13px;
}
.footer-inner {
  max-width: 1024px; margin: 0 auto; padding: 48px 22px 24px;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px;
}
.ftitle { font-weight: 600; color: var(--ink); margin-bottom: 10px; }
.fcol a { display: block; padding: 4px 0; }
.fcol a:hover { text-decoration: underline; }
.footer-legal {
  max-width: 1024px; margin: 0 auto; padding: 16px 22px 32px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px;
}

/* ---------- Reveal on scroll ---------- */
.reveal {
  opacity: 0; transform: translateY(28px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.is-in { opacity: 1; transform: none; }
.d1 { transition-delay: 0.08s; }
.d2 { transition-delay: 0.16s; }
.d3 { transition-delay: 0.24s; }
.d4 { transition-delay: 0.32s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { transition: none; opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .panel-grid { grid-template-columns: 1fr; }
  .extras { grid-template-columns: 1fr; gap: 36px; padding: 88px 22px; }
  .footer-inner { grid-template-columns: 1fr; }
  .hero { padding-top: 110px; }
}

/* h1 solo per screen reader / SEO */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  margin: -1px; padding: 0; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.hero-sub { margin-top: 22px; font-size: clamp(24px, 3.2vw, 34px); color: #f5f5f7; font-weight: 600; }

/* ============ HERO coreografata ============ */
.hero {
  position: relative; min-height: 100vh;
  padding: 0 22px; display: flex;
  align-items: center; justify-content: center;
  text-align: center; background: #000; color: #f5f5f7; overflow: hidden;
}

/* HERO semplificato (senza reel): scritta + CTA statiche, centrate */
.hero-simple { flex-direction: column; padding-top: 48px; }
.hero-simple .hero-intro {
  position: static; inset: auto; animation: none; visibility: visible;
}
.hero-simple .hero-sub {
  font-size: clamp(30px, 6vw, 68px); line-height: 1.06;
}
.hero-simple .hero-cta { position: static; margin-top: 40px; opacity: 1; animation: none; }

/* FASE 1 — la scritta: fade-in poi fade-out via animation */
.hero-intro {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; padding: 0 22px;
  animation: introInOut 4.6s ease forwards;
}
@keyframes introInOut {
  0%   { opacity: 0; transform: translateY(20px); }
  14%  { opacity: 1; transform: translateY(0); }
  74%  { opacity: 1; transform: translateY(0); }
  100% { opacity: 0; transform: translateY(-24px); visibility: hidden; }
}
.hero-intro .hero-eyebrow { font-size: clamp(15px,2vw,19px); color: #86868b; font-weight: 600; }
.hero-intro .hero-sub {
  margin-top: 16px; font-size: clamp(28px,5vw,56px); line-height: 1.08;
  font-weight: 700; letter-spacing: -0.02em; color: #f5f5f7; max-width: 900px;
}

/* FASE 2 — i 3 reel: entrano in sequenza, poi restano affiancati e centrati, riempiendo l'hero */
.hero-reels {
  position: absolute; inset: 0;
  display: flex; gap: 14px; align-items: stretch; justify-content: center;
  padding: 84px 20px 96px;
}
.reel {
  flex: 1 1 0; min-width: 0; max-width: 460px;
  border-radius: 20px; overflow: hidden;
  box-shadow: 0 30px 60px rgba(0,0,0,0.5);
  opacity: 0; transform: translateY(40px) scale(.96);
  animation: reelEnter .9s cubic-bezier(.16,1,.3,1) forwards;
}
.reel video, .reel img { width: 100%; height: 100%; object-fit: cover; display: block; }
@keyframes reelEnter { to { opacity: 1; transform: none; } }
/* entrata in sequenza: dopo la scritta (~4.3s), uno alla volta */
.reel-a { animation-delay: 4.3s; }
.reel-b { animation-delay: 4.9s; }
.reel-c { animation-delay: 5.5s; }

/* CTA fisse in basso */
.hero-cta-fixed { position: absolute; bottom: 30px; left: 0; right: 0; z-index: 10; opacity: 0; animation: reelEnter .8s ease 6.1s forwards; }

@media (prefers-reduced-motion: reduce) {
  .hero-intro { animation: none; }
  .reel, .hero-cta-fixed { opacity: 1; transform: none; animation: none; }
}

@media (max-width: 760px) {
  .hero-reels { gap: 8px; padding: 72px 10px 90px; }
  .reel { border-radius: 14px; }
}

.fj-staffhead { max-width: 780px; margin: 0 auto; padding: 0 22px; text-align: center; }
.fj-staffsec .staff-kicker { color: #2997ff; font-weight: 600; font-size: 14px; }
.fj-staffsec .staff-title { font-size: clamp(34px,5vw,60px); font-weight: 700; letter-spacing: -0.02em; margin-top: 6px; color: #f5f5f7; }
.fj-staffsec .staff-sub { margin: 14px auto 0; max-width: 560px; font-size: 18px; color: #a1a1a6; }

.fj-ring {
  position: relative; height: 720px; margin-top: 40px;
  display: flex; align-items: center; justify-content: center;
  perspective: 2100px; cursor: grab; user-select: none; -webkit-user-select: none;
}
.fj-ring.dragging { cursor: grabbing; }
.fj-stage { position: relative; width: 1px; height: 1px; transform-style: preserve-3d; will-change: transform; }
.fj-slot {
  position: absolute; left: 50%; top: 50%;
  width: 260px; height: 410px; margin: -205px 0 0 -130px;
  backface-visibility: hidden; transition: opacity .25s linear;
}
/* niente cerchio, niente riquadro: SOLO la persona scontornata che fluttua in 3D + nome/ruolo sotto */
.fj-tcard {
  position: relative; width: 100%; height: 100%;
  display: flex; flex-direction: column; align-items: center; justify-content: flex-end;
  background: none; box-shadow: none;
  transform-style: preserve-3d; transition: transform .25s ease;
}
.fj-photo {
  width: 100%; aspect-ratio: 72 / 100; flex: 0 0 auto;
  background-size: contain; background-repeat: no-repeat; background-position: center center;
  filter: drop-shadow(0 22px 26px rgba(0,0,0,.34));
}
/* testo sotto la persona, centrato, senza sfondo né riquadro */
.fj-cap {
  margin-top: 12px; text-align: center; padding: 0 6px; flex: 0 0 auto;
}
.fj-cap strong { display: block; font-size: 17px; font-weight: 600; letter-spacing: -0.01em; color: #1d1d1f; }
.fj-cap span { display: block; margin-top: 2px; font-size: 13px; color: #86868b; }
.fj-cue {
  position: absolute; bottom: 14px; left: 0; right: 0; text-align: center; z-index: 5; pointer-events: none;
  font-size: 12px; letter-spacing: .08em; color: rgba(255,255,255,.4);
}
@media (max-width: 760px) {
  .fj-ring { height: 520px; perspective: 1100px; }
  .fj-slot { width: 210px; height: 340px; margin: -170px 0 0 -105px; }
}
@media (prefers-reduced-motion: reduce) { .fj-tcard { transition: none; } }
