/* ==========================================================================
   /Mattia. — Fotografia. Eventi. Reportage.
   Stile ispirato ad Apple: tipografia grande, superfici pulite, tanto spazio.
   ========================================================================== */

:root {
  --bg: #ffffff;
  --bg-soft: #f5f5f7;
  --bg-dark: #000000;
  --bg-dark-soft: #161617;
  --ink: #1d1d1f;
  --ink-soft: #6e6e73;
  --ink-inverse: #f5f5f7;
  --ink-inverse-soft: #86868b;
  --line: #d2d2d7;
  /* colori del logo: viola → blu */
  --brand-1: #c85cff;
  --brand-2: #6f80ff;
  --brand-grad: linear-gradient(135deg, #b85cff 0%, #6f80ff 100%);
  --blue: #7a5cff;
  --blue-hover: #6a4cf5;
  --blue-link: #6a4cf5;
  --blue-bright: #a78bff;
  --accent-red: #ff453a;
  --radius: 28px;
  --radius-sm: 18px;
  --nav-h: 52px;
  --gutter: clamp(16px, 4vw, 48px);
  --maxw: 1180px;
  --ease: cubic-bezier(.22, .61, .36, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --font: "SF Pro Display", "SF Pro Text", -apple-system, BlinkMacSystemFont, "Inter", "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.47;
  letter-spacing: -0.022em;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video, canvas, svg { display: block; max-width: 100%; }
a { color: var(--blue-link); text-decoration: none; }
a:hover { text-decoration: underline; }
button { font: inherit; cursor: pointer; }
::selection { background: var(--blue); color: #fff; }

.skip-link { position: absolute; left: -999px; top: 8px; background: #fff; padding: 8px 14px; border-radius: 8px; z-index: 999; }
.skip-link:focus { left: 8px; }

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: clamp(80px, 12vw, 160px) 0; position: relative; }
.section--soft { background: var(--bg-soft); }
.section--dark { background: var(--bg-dark); color: var(--ink-inverse); }
.section--dark .muted { color: var(--ink-inverse-soft); }
.center { text-align: center; }
.muted { color: var(--ink-soft); }

/* ---------- Typography ---------- */
.eyebrow { font-size: 17px; font-weight: 600; letter-spacing: -0.01em; margin: 0 0 8px; }
.eyebrow--red { color: var(--accent-red); }
.eyebrow--blue { color: var(--blue-bright); }
.h-hero { font-size: clamp(48px, 9vw, 96px); line-height: 1.02; font-weight: 700; letter-spacing: -0.035em; margin: 0; }
.h1 { font-size: clamp(40px, 6.4vw, 80px); line-height: 1.05; font-weight: 700; letter-spacing: -0.03em; margin: 0; }
.h2 { font-size: clamp(32px, 4.8vw, 56px); line-height: 1.07; font-weight: 700; letter-spacing: -0.028em; margin: 0; }
.h3 { font-size: clamp(24px, 3vw, 32px); line-height: 1.12; font-weight: 700; letter-spacing: -0.02em; margin: 0; }
.lead { font-size: clamp(19px, 2.2vw, 24px); line-height: 1.35; font-weight: 500; letter-spacing: -0.015em; }
.gradient-text {
  background: linear-gradient(90deg, #ff4dff 0%, #c85cff 45%, #6f80ff 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.text-blue { color: var(--blue-bright); }
.text-red { color: var(--accent-red); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 12px 22px; border-radius: 980px;
  font-size: 17px; font-weight: 500; letter-spacing: -0.01em; line-height: 1;
  border: 1px solid transparent; text-decoration: none !important;
  transition: background .25s var(--ease), color .25s var(--ease), transform .3s var(--ease-out), box-shadow .3s var(--ease);
  will-change: transform;
}
.btn--primary { background: var(--brand-grad); color: #fff; }
.btn--primary:hover { background: var(--brand-grad); filter: brightness(1.08); box-shadow: 0 10px 30px -10px rgba(140,92,255,.8); }
.btn--ghost { background: transparent; color: var(--blue-link); border-color: var(--blue-link); }
.btn--ghost:hover { background: var(--blue-link); color: #fff; }
.section--dark .btn--ghost, .on-dark .btn--ghost { color: var(--blue-bright); border-color: var(--blue-bright); }
.section--dark .btn--ghost:hover, .on-dark .btn--ghost:hover { background: var(--blue-bright); color: #000; }
.btn--white { background: #fff; color: #000; }
.btn--white:hover { background: #e8e8ed; }
.btn--sm { min-height: 30px; padding: 7px 14px; font-size: 13px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.center .btn-row { justify-content: center; }
.link-arrow { font-size: 17px; font-weight: 400; display: inline-flex; align-items: center; gap: 4px; }
.link-arrow::after { content: "›"; font-size: 1.2em; line-height: 1; transition: transform .25s var(--ease); }
.link-arrow:hover::after { transform: translateX(3px); }
.lock-ico { width: 14px; height: 14px; flex: none; }

/* ---------- Navigation ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; height: var(--nav-h); z-index: 100;
  background: rgba(22,22,23,.72);
  -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
  color: var(--ink-inverse);
  transition: background .35s var(--ease), transform .45s var(--ease-out);
}
.nav--light { background: rgba(251,251,253,.8); color: var(--ink); border-bottom: 1px solid rgba(0,0,0,.06); }
.nav__inner { height: 100%; display: flex; align-items: center; gap: 24px; max-width: 1024px; margin: 0 auto; padding: 0 var(--gutter); }
.nav__logo { font-weight: 700; font-size: 19px; letter-spacing: -0.03em; color: inherit; text-decoration: none !important; white-space: nowrap; }
.nav__logo { display: flex; align-items: center; gap: 9px; }
.nav__logo img { height: 22px; width: auto; }
.nav__word { font-size: 12.5px; font-weight: 400; letter-spacing: .08em; }
.nav__word b { font-weight: 700; }
.nav__links { display: flex; gap: 28px; margin: 0 auto; padding: 0; list-style: none; }
.nav__links a { color: inherit; opacity: .8; font-size: 13px; letter-spacing: -0.01em; text-decoration: none; transition: opacity .2s; }
.nav__links a:hover, .nav__links a[aria-current="page"] { opacity: 1; }
.nav__cta { margin-left: auto; }
.nav__links + .nav__cta { margin-left: 0; }
.nav__burger { display: none; background: none; border: 0; color: inherit; width: 40px; height: 40px; margin-right: -10px; position: relative; }
.nav__burger span { position: absolute; left: 12px; right: 12px; height: 1.5px; background: currentColor; transition: transform .35s var(--ease-out), top .35s var(--ease-out); }
.nav__burger span:nth-child(1) { top: 16px; }
.nav__burger span:nth-child(2) { top: 23px; }
.nav.is-open .nav__burger span:nth-child(1) { top: 19.5px; transform: rotate(45deg); }
.nav.is-open .nav__burger span:nth-child(2) { top: 19.5px; transform: rotate(-45deg); }

/* Sub-nav stile Apple ("iPhone Duo | Panoramica | Acquista") */
.subnav {
  position: sticky; top: 0; z-index: 90; height: 52px;
  background: rgba(251,251,253,.8); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(0,0,0,.08);
}
.subnav__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; max-width: 1024px; margin: 0 auto; padding: 0 var(--gutter); }
.subnav__title { font-size: 21px; font-weight: 600; letter-spacing: -0.02em; }

@media (max-width: 833px) {
  .nav__burger { display: block; }
  .nav__cta { margin-left: auto !important; }
  .nav__links {
    position: fixed; top: var(--nav-h); left: 0; right: 0; height: calc(100dvh - var(--nav-h));
    flex-direction: column; gap: 0; margin: 0; padding: 20px 40px;
    background: inherit; background: rgba(22,22,23,.97);
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity .35s var(--ease), transform .45s var(--ease-out), visibility .35s;
  }
  .nav--light .nav__links { background: rgba(251,251,253,.98); }
  .nav.is-open .nav__links { opacity: 1; visibility: visible; transform: none; }
  .nav__links a { display: block; font-size: 28px; font-weight: 600; padding: 10px 0; opacity: .92; }
}

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity 1s var(--ease-out), transform 1.1s var(--ease-out); }
.reveal.is-in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .1s; }
.reveal[data-delay="2"] { transition-delay: .2s; }
.reveal[data-delay="3"] { transition-delay: .3s; }
.reveal[data-delay="4"] { transition-delay: .4s; }
.reveal-words .w { display: inline-block; opacity: 0; transform: translateY(.5em); filter: blur(8px); transition: opacity .8s var(--ease-out), transform .9s var(--ease-out), filter .8s var(--ease-out); }
.reveal-words.is-in .w { opacity: 1; transform: none; filter: none; }

/* ==========================================================================
   HOME — Hero cinematografico con la fotocamera che esplode
   ========================================================================== */
.trailer { position: relative; height: 700vh; background: #000; color: #fff; }
.trailer__stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.trailer__canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.trailer__glow {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(60% 50% at 50% 55%, rgba(150,110,255,.18), transparent 70%);
  transition: opacity 1s;
}
.trailer__bars::before, .trailer__bars::after {
  content: ""; position: absolute; left: 0; right: 0; height: var(--bar, 0px); background: #000; z-index: 5; transition: height .1s linear;
}
.trailer__bars::before { top: 0; }
.trailer__bars::after { bottom: 0; }
.trailer__grain {
  position: absolute; inset: -50%; pointer-events: none; z-index: 4; opacity: .06;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  animation: grain 1s steps(6) infinite;
}
@keyframes grain { 0%{transform:translate(0,0)} 20%{transform:translate(-5%,3%)} 40%{transform:translate(3%,-4%)} 60%{transform:translate(-2%,5%)} 80%{transform:translate(4%,2%)} 100%{transform:translate(0,0)} }

.trailer__intro { position: absolute; inset: 0; z-index: 6; display: grid; place-items: center; text-align: center; pointer-events: none; padding: 0 var(--gutter); }
.trailer__intro .kicker { font-size: clamp(13px, 1.4vw, 15px); letter-spacing: .32em; text-transform: uppercase; color: var(--ink-inverse-soft); margin-bottom: 14px; }
.trailer__intro .h-hero { text-shadow: 0 10px 60px rgba(0,0,0,.6); }
.scroll-cue { position: absolute; bottom: 34px; left: 50%; transform: translateX(-50%); z-index: 6; display: flex; flex-direction: column; align-items: center; gap: 10px; font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-inverse-soft); transition: opacity .4s; }
.scroll-cue i { width: 1px; height: 44px; background: linear-gradient(#fff, transparent); animation: cue 2s var(--ease) infinite; transform-origin: top; }
@keyframes cue { 0%{transform:scaleY(0);opacity:1} 60%{transform:scaleY(1);opacity:1} 100%{transform:scaleY(1);opacity:0} }

/* Titoli "trailer" */
.beat {
  position: absolute; z-index: 6; left: 0; right: 0; top: 50%; transform: translateY(-50%);
  text-align: center; padding: 0 var(--gutter); pointer-events: none;
  opacity: 0; will-change: opacity, transform, filter;
}
.beat--low { top: auto; bottom: 12vh; transform: none; }
.beat--high { top: 14vh; transform: none; }
.beat__kicker { font-size: clamp(12px, 1.3vw, 14px); letter-spacing: .38em; text-transform: uppercase; color: var(--ink-inverse-soft); margin-bottom: 12px; }
.beat__title { text-shadow: 0 6px 50px rgba(0,0,0,.85), 0 2px 12px rgba(0,0,0,.6); font-size: clamp(40px, 8vw, 110px); font-weight: 700; line-height: 1; letter-spacing: -0.04em; margin: 0; }
.beat__title--xl { font-size: clamp(52px, 12vw, 170px); }
.beat__sub { text-shadow: 0 2px 20px rgba(0,0,0,.9); font-size: clamp(17px, 2vw, 24px); color: #d2d2d7; font-weight: 500; margin: 16px auto 0; max-width: 34ch; }

/* Etichette che "escono" dai pezzi della fotocamera */
.callout {
  position: absolute; z-index: 6; left: 0; top: 0; pointer-events: none;
  opacity: 0; transform: translate(-50%, -50%);
  font-size: 13px; line-height: 1.3; color: #fff; white-space: nowrap;
}
.callout__dot { position: absolute; left: 0; top: 0; width: 9px; height: 9px; margin: -4.5px 0 0 -4.5px; border-radius: 50%; background: var(--blue-bright); box-shadow: 0 0 0 6px rgba(150,110,255,.18), 0 0 24px rgba(150,110,255,.9); }
.callout__line { position: absolute; left: 0; top: 0; height: 1px; width: var(--len, 90px); background: linear-gradient(90deg, rgba(150,110,255,.9), rgba(255,255,255,.3)); transform-origin: 0 0; }
.callout__label { position: absolute; left: 0; top: 0; padding: 8px 12px; border-radius: 12px; background: rgba(29,29,31,.72); border: 1px solid rgba(255,255,255,.14); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.callout__label b { display: block; font-size: 14px; letter-spacing: -0.01em; }
.callout__label small { color: var(--ink-inverse-soft); font-size: 12px; }
.trailer__flash { position: absolute; inset: 0; z-index: 7; background: #fff; opacity: 0; pointer-events: none; }

.trailer__progress { position: absolute; z-index: 7; right: 22px; top: 50%; transform: translateY(-50%); display: flex; flex-direction: column; gap: 8px; }
.trailer__progress i { width: 3px; height: 22px; border-radius: 3px; background: rgba(255,255,255,.18); overflow: hidden; position: relative; }
.trailer__progress i::after { content: ""; position: absolute; inset: 0; background: #fff; transform: scaleY(var(--p, 0)); transform-origin: top; }
.trailer__cta { position: absolute; z-index: 8; left: 0; right: 0; bottom: 10vh; padding: 0 var(--gutter); opacity: 0; pointer-events: none; }
.trailer__cta .btn-row { justify-content: center; }
.trailer__cta.is-on { pointer-events: auto; }
.trailer__fallback { display: none; }
.no-webgl .trailer { height: auto; }
.no-webgl .trailer__stage { position: relative; height: auto; min-height: 100svh; }
.no-webgl .trailer__canvas, .no-webgl .beat, .no-webgl .callout, .no-webgl .trailer__progress { display: none; }
.no-webgl .trailer__cta { opacity: 1; pointer-events: auto; }

@media (max-width: 734px) {
  .trailer { height: 600vh; }
  .trailer__progress { right: 10px; }
  .callout { font-size: 12px; }
  .callout__label b { font-size: 13px; }

}

/* ---------- Intro hero light ---------- */
.hero-light { padding-top: calc(var(--nav-h) + clamp(40px, 8vw, 90px)); padding-bottom: clamp(60px, 8vw, 100px); text-align: center; background: var(--bg); }
.hero-light .lead { max-width: 40ch; margin: 20px auto 30px; color: var(--ink-soft); }
.status { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--ink-soft); margin-top: 18px; }
.status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #30d158; box-shadow: 0 0 0 0 rgba(48,209,88,.6); animation: pulse 2s infinite; }
@keyframes pulse { 0%{box-shadow:0 0 0 0 rgba(48,209,88,.55)} 70%{box-shadow:0 0 0 10px rgba(48,209,88,0)} 100%{box-shadow:0 0 0 0 rgba(48,209,88,0)} }

/* ---------- Carosello tipo "Prima di tutto, le novità" ---------- */
.rail-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 36px; flex-wrap: wrap; }
.rail {
  display: grid; grid-auto-flow: column; grid-auto-columns: min(372px, 82vw); gap: 20px;
  overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
  padding: 10px max(var(--gutter), calc((100vw - var(--maxw)) / 2 + var(--gutter))) 40px;
  scroll-padding: 0 max(var(--gutter), calc((100vw - var(--maxw)) / 2 + var(--gutter)));
  scrollbar-width: none; cursor: grab;
}
.rail::-webkit-scrollbar { display: none; }
.rail.is-dragging { cursor: grabbing; scroll-snap-type: none; }
.rail-nav { display: flex; gap: 12px; justify-content: flex-end; padding: 0 var(--gutter); max-width: var(--maxw); margin: 0 auto; }
.rail-nav button { width: 36px; height: 36px; border-radius: 50%; border: 0; background: rgba(210,210,215,.64); color: rgba(0,0,0,.56); font-size: 20px; line-height: 1; transition: background .2s, opacity .2s; }
.rail-nav button:hover { background: rgba(223,223,227,.9); }
.rail-nav button:disabled { opacity: .35; cursor: default; }

.tile {
  scroll-snap-align: start; position: relative; border-radius: var(--radius); overflow: hidden;
  aspect-ratio: 372 / 680; background: #000; color: #fff; isolation: isolate;
  transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out);
  text-decoration: none !important;
}
.tile:hover { transform: scale(1.015); box-shadow: 0 30px 60px -30px rgba(0,0,0,.45); }
.tile__media { position: absolute; inset: 0; z-index: -1; transition: transform 1.2s var(--ease-out); }
.tile:hover .tile__media { transform: scale(1.06); }
.tile__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.55) 0%, transparent 35%, transparent 60%, rgba(0,0,0,.7) 100%); }
.tile__body { position: absolute; inset: 0; padding: 30px; display: flex; flex-direction: column; }
.tile__eyebrow { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; opacity: .8; }
.tile__title { font-size: 28px; line-height: 1.14; font-weight: 700; letter-spacing: -0.02em; margin: 6px 0 0; }
.tile__foot { margin-top: auto; display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; font-size: 14px; opacity: .92; }
.tile__plus { width: 36px; height: 36px; flex: none; border-radius: 50%; background: rgba(255,255,255,.2); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); display: grid; place-items: center; font-size: 22px; transition: background .3s, transform .4s var(--ease-out); }
.tile:hover .tile__plus { background: #fff; color: #000; transform: rotate(90deg); }

/* ---------- Segnaposto fotografici (da sostituire con le tue foto) ---------- */
.ph { position: absolute; inset: 0; background-size: cover; background-position: center; }
.ph--1 { background-image: radial-gradient(80% 60% at 30% 20%, #ff9f0a 0%, transparent 60%), radial-gradient(70% 70% at 80% 80%, #bf5af2 0%, transparent 60%), linear-gradient(160deg, #1c1c1e, #000); }
.ph--2 { background-image: radial-gradient(70% 60% at 70% 25%, #f5e1c8 0%, transparent 60%), radial-gradient(80% 60% at 20% 90%, #d4a373 0%, transparent 60%), linear-gradient(160deg, #3a2d22, #0e0a07); }
.ph--3 { background-image: radial-gradient(60% 50% at 50% 30%, #0a84ff 0%, transparent 60%), radial-gradient(60% 60% at 20% 80%, #ff375f 0%, transparent 60%), linear-gradient(160deg, #0b0b1a, #000); }
.ph--4 { background-image: radial-gradient(70% 60% at 30% 30%, #8e8e93 0%, transparent 60%), radial-gradient(70% 70% at 80% 70%, #0a84ff 0%, transparent 65%), linear-gradient(160deg, #1d1d1f, #050505); }
.ph--5 { background-image: radial-gradient(70% 60% at 70% 30%, #30d158 0%, transparent 55%), radial-gradient(60% 60% at 20% 80%, #ffd60a 0%, transparent 60%), linear-gradient(160deg, #0f1a12, #000); }
.ph--6 { background-image: radial-gradient(60% 60% at 40% 30%, #64d2ff 0%, transparent 60%), radial-gradient(70% 70% at 80% 90%, #5e5ce6 0%, transparent 60%), linear-gradient(160deg, #0a1420, #000); }
.ph--7 { background-image: radial-gradient(60% 60% at 60% 30%, #ff453a 0%, transparent 55%), radial-gradient(70% 70% at 20% 80%, #ff9f0a 0%, transparent 60%), linear-gradient(160deg, #1f0a08, #000); }
.ph--8 { background-image: radial-gradient(60% 60% at 30% 40%, #e5e5ea 0%, transparent 60%), radial-gradient(70% 70% at 80% 80%, #ac8e68 0%, transparent 60%), linear-gradient(160deg, #2c2c2e, #0a0a0a); }
.ph[data-label]::before {
  content: attr(data-label); position: absolute; right: 14px; bottom: 12px; z-index: 1;
  font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.45);
}

/* ---------- Formato che si trasforma allo scroll ---------- */
.formats { height: 360vh; position: relative; background: #000; color: #fff; }
/* palco: titolo in alto, cornice nello spazio centrale, testo in basso — nessuna sovrapposizione */
.formats__stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; display: flex; flex-direction: column; align-items: center; gap: clamp(14px, 3vh, 32px); padding: calc(var(--nav-h) + clamp(16px, 4vh, 44px)) var(--gutter) clamp(18px, 5vh, 56px); background: radial-gradient(50% 45% at 50% 55%, rgba(122,92,255,.22), transparent 70%); }
.formats__text { text-align: center; flex: none; }
.formats__box { position: relative; flex: 1 1 auto; min-height: 0; width: 100%; max-width: 1000px; }
/* la cornice riempie lo spazio; la forma visibile è una maschera animata (fluida, niente ricalcolo del layout) */
.formats__frame { position: absolute; inset: 0; clip-path: inset(var(--ct, 0) var(--cl, 0) round 26px); transition: clip-path .9s var(--ease-out); will-change: clip-path; background: #0b0b0f; }
.formats__frame .ph { transition: transform 1.2s var(--ease-out), opacity .8s var(--ease); }
.formats__ratio { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); font-size: var(--rs, 120px); font-weight: 700; letter-spacing: -0.05em; line-height: 1; color: rgba(255,255,255,.88); mix-blend-mode: overlay; pointer-events: none; transition: font-size .6s var(--ease-out); white-space: nowrap; }
.formats__use { flex: none; text-align: center; }
.formats__use p { margin: 0; font-size: clamp(16px, 2vw, 21px); color: #d2d2d7; min-height: 1.5em; }
.formats__chips { display: flex; justify-content: center; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.formats__chips button { border: 0; padding: 6px 14px; border-radius: 980px; font-size: 13px; background: rgba(255,255,255,.08); color: var(--ink-inverse-soft); transition: background .4s, color .4s; }
.formats__chips button:hover { background: rgba(255,255,255,.16); color: #fff; }
.formats__chips button.is-on { background: #fff; color: #000; }

/* ---------- Grid features / bento ---------- */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; }
.card {
  position: relative; border-radius: var(--radius); background: #fff; padding: clamp(28px, 4vw, 44px); overflow: hidden;
  transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out);
  transform-style: preserve-3d;
}
.section--soft .card { background: #fff; }
.section--dark .card { background: var(--bg-dark-soft); }
.card--span2 { grid-column: span 2; }
.card--span3 { grid-column: span 3; }
.card--span4 { grid-column: span 4; }
.card--span6 { grid-column: span 6; }
.card--media { padding: 0; min-height: 420px; color: #fff; }
.card--media .card__in { position: absolute; inset: auto 0 0 0; padding: clamp(28px, 4vw, 44px); background: linear-gradient(transparent, rgba(0,0,0,.6)); }
.card__big { font-size: clamp(40px, 5vw, 64px); font-weight: 700; letter-spacing: -0.04em; line-height: 1; }
.card p { margin: 10px 0 0; }
.card .ico { font-size: 34px; margin-bottom: 18px; display: block; }
[data-tilt] { will-change: transform; }
.spot::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .4s;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(150,110,255,.16), transparent 60%);
}
.spot:hover::before { opacity: 1; }
@media (max-width: 1068px) { .card--span2 { grid-column: span 3; } .card--span4 { grid-column: span 6; } }
@media (max-width: 734px) { .bento { gap: 14px; } .card--span2, .card--span3, .card--span4 { grid-column: span 6; } .card--media { min-height: 360px; } }

/* ---------- Metodo Prima / Durante / Dopo ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: s; }
.step { border-radius: var(--radius); padding: 36px 32px 40px; background: var(--bg-dark-soft); position: relative; overflow: hidden; }
.step__n { font-size: 96px; font-weight: 700; letter-spacing: -0.06em; line-height: .9; color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,.25); margin-bottom: 26px; transition: color .6s, -webkit-text-stroke-color .6s; }
.step:hover .step__n { color: var(--blue-bright); -webkit-text-stroke-color: transparent; }
.step h3 { font-size: 28px; margin: 0 0 10px; letter-spacing: -0.02em; }
.step p { margin: 0; color: var(--ink-inverse-soft); }
@media (max-width: 834px) { .steps { grid-template-columns: 1fr; } }

/* ---------- Watermark ---------- */
.wm-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.wm { position: relative; border-radius: var(--radius-sm); overflow: hidden; aspect-ratio: 4 / 5; cursor: crosshair; }
.wm__mark {
  position: absolute; left: 22px; bottom: 20px; display: flex; align-items: center; gap: 10px;
  color: #fff; font-weight: 600; letter-spacing: -0.01em; font-size: 15px;
  opacity: 0; transform: translateY(12px) scale(.96); transition: opacity .5s var(--ease-out), transform .6s var(--ease-out);
}
.wm__mark i { width: 34px; height: 34px; border-radius: 50%; border: 1.5px solid rgba(255,255,255,.85); display: grid; place-items: center; font-style: normal; font-size: 13px; }
.wm:hover .wm__mark, .wm.is-on .wm__mark { opacity: 1; transform: none; }
.wm__hint { position: absolute; top: 16px; right: 16px; font-size: 12px; padding: 5px 10px; border-radius: 980px; background: rgba(0,0,0,.4); color: #fff; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); transition: opacity .3s; }
.wm:hover .wm__hint, .wm.is-on .wm__hint { opacity: 0; }
@media (max-width: 734px) { .wm-grid { grid-template-columns: 1fr 1fr; gap: 12px; } .wm-grid .wm:last-child { grid-column: span 2; aspect-ratio: 16/10; } }

/* ---------- Benefici (lista con check) ---------- */
.checks { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 40px; margin: 0; padding: 0; list-style: none; }
.checks li { padding: 18px 0 18px 36px; border-top: 1px solid var(--line); position: relative; font-size: 19px; font-weight: 500; }
.checks li::before { content: ""; position: absolute; left: 0; top: 21px; width: 20px; height: 20px; border-radius: 50%; background: var(--blue) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'><path d='M5.5 10.5l3 3 6-7' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/></svg>") center/100% no-repeat; }
@media (max-width: 734px) { .checks { grid-template-columns: 1fr; } .checks li { font-size: 17px; } }

/* ---------- Stories ---------- */
.stories { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.story { position: relative; border-radius: var(--radius-sm); overflow: hidden; aspect-ratio: 4 / 5; color: #fff; text-decoration: none !important; isolation: isolate; }
.story:nth-child(3n+2) { transform: translateY(40px); }
.story .ph { transition: transform 1.1s var(--ease-out), filter .6s; }
.story:hover .ph { transform: scale(1.07); }
.story::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 50%, rgba(0,0,0,.75)); z-index: 0; }
.story__meta { position: absolute; left: 22px; bottom: 20px; z-index: 1; }
.story__meta b { display: block; font-size: 17px; }
.story__meta span { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.72); }
.story__play { position: absolute; right: 18px; top: 18px; z-index: 1; width: 44px; height: 44px; border-radius: 50%; background: rgba(255,255,255,.18); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); display: grid; place-items: center; transform: scale(.8); opacity: 0; transition: .4s var(--ease-out); }
.story:hover .story__play { transform: none; opacity: 1; }
@media (max-width: 834px) { .stories { grid-template-columns: 1fr 1fr; gap: 12px; } .story:nth-child(3n+2) { transform: none; } .story:nth-child(2n) { transform: translateY(30px); } }

/* ---------- Equazione (Empatia + Formazione...) ---------- */
.equation { white-space: nowrap; font-size: clamp(34px, 5.6vw, 84px); font-weight: 700; letter-spacing: -0.04em; line-height: 1.04; }
.equation span { display: block; opacity: .15; transition: opacity .6s var(--ease), transform .8s var(--ease-out); transform: translateX(-12px); }
.equation span.is-on { opacity: 1; transform: none; }
.equation em { font-style: normal; color: var(--blue-bright); }
.equation .eq { color: #ffd60a; }

/* ---------- Split / about ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 6vw, 80px); align-items: center; }
.split__media { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 5; }
@media (max-width: 834px) { .split { grid-template-columns: 1fr; } }

/* ---------- Grande CTA finale ---------- */
.final-cta { text-align: center; padding: clamp(100px, 16vw, 200px) 0; background: #000; color: #fff; position: relative; overflow: hidden; }
.final-cta::before { content: ""; position: absolute; left: 50%; top: 50%; width: 900px; height: 900px; max-width: 160vw; transform: translate(-50%, -50%); background: radial-gradient(closest-side, rgba(122,92,255,.35), transparent); pointer-events: none; }
.final-cta .h1 { position: relative; }
.final-cta p { position: relative; }

/* ---------- Footer ---------- */
.footer { background: var(--bg-soft); color: var(--ink-soft); font-size: 12px; line-height: 1.5; padding: 40px 0 30px; }
.footer a { color: var(--ink); }
.footer__top { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 30px; padding-bottom: 30px; border-bottom: 1px solid var(--line); }
.footer h4 { font-size: 12px; color: var(--ink); margin: 0 0 10px; font-weight: 600; }
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer li { margin: 0 0 8px; }
.footer__brand { display: flex; align-items: center; gap: 14px; color: var(--ink); font-size: 17px; line-height: 1.1; letter-spacing: .06em; margin-bottom: 10px; }
.footer__brand b { font-weight: 700; }
.footer__brand img { height: 44px; width: auto; }
.footer__bottom { display: flex; justify-content: space-between; gap: 20px; padding-top: 18px; flex-wrap: wrap; }
@media (max-width: 734px) { .footer__top { grid-template-columns: 1fr 1fr; } .footer__top > :first-child { grid-column: span 2; } }

/* ---------- Page hero (pagine interne) ---------- */
.page-hero { padding: calc(var(--nav-h) + clamp(60px, 10vw, 120px)) 0 clamp(50px, 8vw, 90px); text-align: center; }
.page-hero .lead { max-width: 36ch; margin: 22px auto 0; color: var(--ink-soft); }
.page-hero.section--dark .lead { color: var(--ink-inverse-soft); }

/* ---------- Servizi dettaglio ---------- */
.service { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(30px, 5vw, 70px); align-items: center; padding: clamp(50px, 8vw, 90px) 0; border-top: 1px solid var(--line); }
.service:first-child { border-top: 0; }
.service:nth-child(even) .service__media { order: 2; }
.service__media { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 5 / 4; }
.service__tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0 26px; padding: 0; list-style: none; }
.service__tags li { font-size: 14px; padding: 6px 14px; border-radius: 980px; background: var(--bg-soft); }
@media (max-width: 834px) { .service { grid-template-columns: 1fr; } .service:nth-child(even) .service__media { order: 0; } }

/* ---------- Prenota ---------- */
.booking { display: grid; grid-template-columns: 1.15fr 1fr; gap: 24px; align-items: start; }
.panel { background: #fff; border-radius: var(--radius); padding: clamp(24px, 3.5vw, 40px); }
.panel h3 { font-size: 24px; margin: 0 0 6px; letter-spacing: -0.02em; }
.panel .muted { margin: 0 0 22px; font-size: 15px; }
.cal__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.cal__head strong { font-size: 19px; text-transform: capitalize; }
.cal__head button { width: 34px; height: 34px; border-radius: 50%; border: 0; background: var(--bg-soft); font-size: 18px; }
.cal__head button:disabled { opacity: .3; cursor: default; }
.cal__grid { display: grid; grid-template-columns: repeat(7, 1fr); column-gap: 0; row-gap: 6px; text-align: center; max-width: 520px; margin: 0 auto; }
.cal__dow { font-size: 12px; color: var(--ink-soft); padding: 4px 0 8px; font-weight: 600; }
/* ogni giorno: cella piena (per la fascia) + cerchio interno col numero */
.cal__day { --d: clamp(38px, 11vw, 46px); height: calc(var(--d) + 4px); border: 0; padding: 0; background: none; font-size: 16px; color: var(--ink); position: relative; display: grid; place-items: center; isolation: isolate; }
.cal__day .n { width: var(--d); height: var(--d); border-radius: 50%; display: grid; place-items: center; transition: background .25s, color .25s, box-shadow .3s, transform .4s var(--ease-out); }
.cal__day:hover:not(:disabled) .n { background: var(--bg-soft); }
.cal__day:disabled { color: #c7c7cc; cursor: default; }
.cal__day.is-today::after { content: ""; position: absolute; left: 50%; bottom: 3px; width: 4px; height: 4px; border-radius: 50%; background: var(--blue); transform: translateX(-50%); z-index: 2; }
/* giorno scelto: cerchio sfumato con i colori del logo */
.cal__day.is-sel .n { background: var(--brand-grad); color: #fff; font-weight: 600; box-shadow: 0 10px 22px -10px rgba(122,92,255,.85); animation: calPop .5s var(--ease-out); }
.cal__day.is-sel.is-today::after { background: #fff; }
/* periodo: fascia continua che unisce i giorni consecutivi */
.cal__day.join-l::before, .cal__day.join-r::before {
  content: ""; position: absolute; z-index: -1; left: 0; right: 0; top: 50%; height: var(--d); transform: translateY(-50%);
  background: linear-gradient(90deg, rgba(184,92,255,.16), rgba(111,128,255,.16));
  animation: calBand .45s var(--ease-out);
}
.cal__day.join-r:not(.join-l)::before { left: 50%; transform-origin: left center; }
.cal__day.join-l:not(.join-r)::before { right: 50%; transform-origin: right center; }
/* giorni intermedi: niente cerchio, testo nei colori del brand */
.cal__day.join-l.join-r .n { background: none; box-shadow: none; color: #7a5cff; animation: none; }
.cal__day.join-l.join-r:hover .n { background: rgba(122,92,255,.12); }
@keyframes calPop { 0% { transform: scale(.6); } 60% { transform: scale(1.12); } 100% { transform: scale(1); } }
@keyframes calBand { from { opacity: 0; } to { opacity: 1; } }
.cal__grid { isolation: isolate; }
.cal__clear { margin-top: 14px; border: 0; background: none; color: var(--blue-link); font-size: 14px; padding: 4px 0; }
.cal__clear:hover { text-decoration: underline; }
.summary .dates span { display: block; }
.summary .dates span + span { margin-top: 4px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { border: 1px solid var(--line); background: #fff; border-radius: 980px; padding: 9px 16px; font-size: 15px; transition: border-color .2s, background .2s, color .2s; }
.chip:hover { border-color: var(--ink-soft); }
.chip.is-on { border-color: var(--blue); background: rgba(122,92,255,.08); color: var(--blue); }
.field { margin: 0 0 18px; }
.field > label, .field > .label { display: block; font-size: 13px; font-weight: 600; color: var(--ink-soft); margin: 0 0 8px; }
.input { width: 100%; font: inherit; font-size: 17px; padding: 14px 16px; border-radius: 12px; border: 1px solid var(--line); background: #fff; color: var(--ink); transition: border-color .2s, box-shadow .2s; }
.input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(122,92,255,.15); }
textarea.input { min-height: 110px; resize: vertical; }
.summary { position: sticky; top: calc(var(--nav-h) + 20px); background: #000; color: #fff; }
.summary dl { margin: 0 0 24px; display: grid; grid-template-columns: auto 1fr; gap: 12px 18px; font-size: 15px; }
.summary dt { color: var(--ink-inverse-soft); }
.summary dd { margin: 0; text-align: right; font-weight: 600; }
.summary .btn { width: 100%; }
.summary small { display: block; margin-top: 14px; color: var(--ink-inverse-soft); font-size: 12px; text-align: center; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--ink-soft); }
.consent input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--blue); }
@media (max-width: 900px) { .booking { grid-template-columns: 1fr; } .summary { position: relative; top: 0; } }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin: 0 auto; }
.faq details { border-top: 1px solid var(--line); padding: 22px 0; }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; font-size: 21px; font-weight: 600; letter-spacing: -0.02em; display: flex; justify-content: space-between; gap: 20px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-weight: 300; font-size: 28px; line-height: .8; transition: transform .35s var(--ease-out); color: var(--blue); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 14px 0 0; color: var(--ink-soft); max-width: 62ch; }

/* ---------- Cursore personalizzato (solo desktop) ---------- */
.cursor { position: fixed; left: 0; top: 0; z-index: 300; pointer-events: none; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; background: #fff; mix-blend-mode: difference; transition: width .3s var(--ease-out), height .3s var(--ease-out), margin .3s var(--ease-out); opacity: 0; }
.cursor.is-on { opacity: 1; }
.cursor.is-hover { width: 56px; height: 56px; margin: -28px 0 0 -28px; }
@media (hover: none), (pointer: coarse) { .cursor { display: none; } }

/* ---------- Riduzione movimento ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .reveal, .reveal-words .w { opacity: 1; transform: none; filter: none; }
}

/* Quando sostituisci un segnaposto con una foto vera (<img>) */
.tile__media img, .story img, .wm img, .split__media img, .service__media img, .formats__frame img, .card--media img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}
.story img, .wm img { transition: transform 1.1s var(--ease-out); }
.story:hover img { transform: scale(1.07); }

/* ---------- Pittogramma del logo come decorazione ---------- */
.deco-mark {
  position: absolute; pointer-events: none; z-index: 0;
  width: min(80vw, 760px); aspect-ratio: 1470 / 1410;
  background: url("../img/logo-outline.svg") center / contain no-repeat;
  opacity: .12;
}
.final-cta .deco-mark { right: -8%; top: 50%; margin-top: -330px; opacity: .14; }
.page-hero .deco-mark { left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(90vw, 620px); opacity: .1; }
.page-hero { position: relative; overflow: hidden; }
.page-hero .wrap { position: relative; z-index: 1; }
.trailer__intro .deco-mark { left: 50%; top: 50%; width: min(80vw, 640px); transform: translate(-50%, -50%); opacity: .09; }
.trailer__intro > div:not(.deco-mark) { position: relative; z-index: 1; }
.wm__mark img { width: 22px; height: auto; }

/* ---------- Video (caricato solo al clic) ---------- */
.video { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 16 / 9; background: #000; cursor: pointer; isolation: isolate; box-shadow: 0 40px 120px -40px rgba(140,92,255,.55); }
.video img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out), filter .6s; }
.video:hover img { transform: scale(1.04); filter: brightness(.8); }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video__play { position: absolute; left: 50%; top: 50%; width: 84px; height: 84px; margin: -42px 0 0 -42px; border-radius: 50%; border: 0; background: rgba(255,255,255,.2); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); color: #fff; font-size: 26px; display: grid; place-items: center; transition: transform .4s var(--ease-out), background .3s; z-index: 1; }
.video:hover .video__play { transform: scale(1.1); background: var(--brand-grad); }
.video__cap { margin-top: 16px; font-size: 14px; color: var(--ink-inverse-soft); }

/* ---------- Chi sono ---------- */
.manifesto { font-size: clamp(30px, 4.6vw, 60px); line-height: 1.12; font-weight: 700; letter-spacing: -0.03em; margin: 0; }
.manifesto .hl, .manifesto .hl .w { background: var(--brand-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 110px; top: 10px; bottom: 10px; width: 2px; background: linear-gradient(var(--brand-1), var(--brand-2)); opacity: .35; }
.timeline li { display: grid; grid-template-columns: 110px 1fr; gap: 40px; padding: 0 0 44px; position: relative; }
.timeline li::before { content: ""; position: absolute; left: 104px; top: 12px; width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 2px solid var(--brand-2); transition: transform .4s var(--ease-out), background .3s; }
.timeline li:hover::before, .timeline li.is-now::before { background: var(--brand-grad); border-color: transparent; transform: scale(1.3); }
.timeline__year { font-size: 28px; font-weight: 700; letter-spacing: -0.03em; color: var(--ink-soft); padding-right: 30px; }
.timeline li.is-now .timeline__year { background: var(--brand-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.timeline h3 { font-size: 24px; letter-spacing: -0.02em; margin: 4px 0 8px; }
.timeline p { margin: 0; color: var(--ink-soft); max-width: 62ch; }
@media (max-width: 640px) {
  .timeline::before { left: 7px; }
  .timeline li { grid-template-columns: 1fr; gap: 4px; padding-left: 36px; }
  .timeline li::before { left: 1px; top: 8px; }
  .timeline__year { font-size: 22px; }
}
.skills { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.skills li { padding: 10px 18px; border-radius: 980px; background: #fff; font-size: 16px; font-weight: 500; transition: transform .3s var(--ease-out), box-shadow .3s; }
.skills li:hover { transform: translateY(-3px); box-shadow: 0 10px 24px -12px rgba(122,92,255,.5); }
.places { display: flex; align-items: center; gap: 12px; margin-top: 30px; flex-wrap: wrap; }
.places span { font-weight: 600; font-size: 17px; color: var(--ink-soft); }
.places span.is-now { background: var(--brand-grad); color: #fff; padding: 8px 16px; border-radius: 980px; }
.places i { flex: 0 0 40px; height: 2px; background: linear-gradient(90deg, var(--line), var(--brand-2)); }
.places small { font-weight: 400; font-size: 13px; opacity: .7; }
.cal__day.no-anim .n, .cal__day.no-anim::before { animation: none; }
.cal { max-width: 520px; margin: 0 auto; }

/* ---------- Schermi bassi (telefono in orizzontale, portatili piccoli) ---------- */
.beat__title { font-size: min(clamp(40px, 8vw, 110px), 11vh); }
.beat__title--xl { font-size: min(clamp(52px, 12vw, 170px), 17vh); }
.trailer__intro .h-hero { font-size: min(clamp(48px, 9vw, 96px), 12vh); }
@media (max-height: 520px) and (orientation: landscape) {
  .beat--high { top: 9vh; }
  .beat--low { bottom: 6vh; }
  .beat__kicker { margin-bottom: 4px; font-size: 11px; }
  .beat__sub { display: none; }
  .trailer__cta { bottom: 5vh; }
  .trailer__cta .btn { min-height: 38px; padding: 9px 18px; font-size: 15px; }

  .scroll-cue { display: none; }
}

/* ---------- Instagram dentro un iPhone ---------- */
.igphone { position: relative; height: 230vh; background: #000; color: var(--ink-inverse); }
.igphone__stage { position: sticky; top: 0; height: 100vh; height: 100svh; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: clamp(30px, 6vw, 100px); max-width: var(--maxw); margin: 0 auto; padding: var(--nav-h) var(--gutter) 0; }
.igphone__text .lead { color: var(--ink-inverse-soft); max-width: 30ch; margin: 20px 0 30px; }
.iphone {
  --pw: min(340px, 72vw, calc((100svh - var(--nav-h) - 60px) / 2.07));
  position: relative; display: block; width: var(--pw); aspect-ratio: 71.5 / 148; border-radius: calc(var(--pw) * .165);
  padding: calc(var(--pw) * .035); font-size: calc(var(--pw) * .041); text-decoration: none !important; color: #fff;
  background: linear-gradient(145deg, #4a4a4f, #1c1c1e 30%, #2c2c2e 70%, #5a5a60);
  box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.18), inset 0 0 0 4px #0a0a0a, 0 50px 100px -30px rgba(140,92,255,.55), 0 30px 60px -30px rgba(0,0,0,.9);
  transform-style: preserve-3d; will-change: transform; transition: box-shadow .5s;
}
.iphone:hover { box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.25), inset 0 0 0 4px #0a0a0a, 0 60px 120px -30px rgba(184,92,255,.75), 0 30px 60px -30px rgba(0,0,0,.9); }
.iphone__btn { position: absolute; width: 3px; background: #3a3a3e; border-radius: 2px; }
.iphone__btn--action { left: -3px; top: 17%; height: 5%; }
.iphone__btn--up { left: -3px; top: 25%; height: 9%; }
.iphone__btn--down { left: -3px; top: 36%; height: 9%; }
.iphone__btn--power { right: -3px; top: 28%; height: 14%; }
.iphone__screen { position: relative; display: block; width: 100%; height: 100%; border-radius: calc(var(--pw) * .135); overflow: hidden; background: #000; }
.iphone__status { position: absolute; z-index: 3; top: 0; left: 0; right: 0; height: 3.4em; display: flex; align-items: center; justify-content: space-between; padding: .6em 1.9em 0 2.1em; background: linear-gradient(#000 70%, rgba(0,0,0,0)); font-size: .95em; }
.iphone__status b { font-weight: 600; }
.iphone__island { position: absolute; left: 50%; top: .75em; width: 31%; height: 1.9em; border-radius: 2em; background: #000; box-shadow: 0 0 0 1px #111; transform: translateX(-50%); }
.iphone__icons { display: flex; gap: .35em; align-items: center; font-style: normal; }
.iphone__icons svg { height: .8em; width: auto; fill: currentColor; }
.iphone__icons svg:last-child { height: .85em; }
.iphone__feed { position: absolute; left: 0; right: 0; top: 3.4em; display: block; will-change: transform; }
.iphone__home { position: absolute; z-index: 3; bottom: .5em; left: 50%; width: 36%; height: .3em; border-radius: 1em; background: #fff; transform: translateX(-50%); opacity: .9; }
.ig-top { display: flex; align-items: center; gap: .9em; padding: .4em 1em .7em; font-size: 1.05em; }
.ig-top b { flex: 1; font-size: 1.15em; letter-spacing: -.01em; }
.ig-top i { font-style: normal; font-size: 1.2em; opacity: .95; }
.ig-profile { display: flex; align-items: center; gap: 1em; padding: .2em 1em .6em; }
.ig-avatar { width: 5.4em; height: 5.4em; flex: none; border-radius: 50%; padding: .18em; background: linear-gradient(45deg, #ffd600, #ff7a00, #ff0069, #d300c5, #7638fa); }
.ig-avatar img { width: 100%; height: 100%; border-radius: 50%; border: .18em solid #000; object-fit: cover; background: #000; }
.ig-name b { display: block; font-size: 1.05em; }
.ig-name small { display: block; color: #a8a8a8; font-size: .9em; margin-top: .15em; }
.ig-bio { display: block; padding: 0 1em .8em; font-size: .92em; line-height: 1.35; }
.ig-actions { display: grid; grid-template-columns: 1fr 1fr; gap: .45em; padding: 0 1em .9em; }
.ig-actions span { text-align: center; padding: .55em 0; border-radius: .55em; background: #262626; font-weight: 600; font-size: .92em; }
.ig-actions .ig-follow { background: #0095f6; }
.ig-hls { display: flex; gap: .9em; padding: 0 1em .9em; overflow: hidden; }
.ig-hl { display: flex; flex-direction: column; align-items: center; gap: .3em; font-size: .78em; flex: none; }
.ig-hl i { width: 4.6em; height: 4.6em; border-radius: 50%; padding: .15em; border: 1px solid #3a3a3a; display: block; }
.ig-hl img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; display: block; }
.ig-tabs { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid #262626; }
.ig-tabs i { font-style: normal; text-align: center; padding: .55em 0; color: #8e8e8e; font-size: 1.1em; }
.ig-tabs i.is-on { color: #fff; box-shadow: inset 0 -1px 0 #fff; }
.ig-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; padding-bottom: 3em; }
.ig-grid img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; display: block; background: #111; }
@media (max-width: 834px) {
  .igphone { height: 250vh; }
  .igphone__stage { grid-template-columns: 1fr; justify-items: center; align-content: center; gap: 22px; text-align: center; padding-top: calc(var(--nav-h) + 10px); }
  .igphone__text .h1 { font-size: clamp(30px, 8vw, 48px); }
  .igphone__text .lead { display: none; }
  .igphone__text .btn-row { justify-content: center; }
  .igphone__text .eyebrow { margin-bottom: 4px; }
  .iphone { --pw: min(300px, 64vw, calc((100svh - var(--nav-h) - 190px) / 2.07)); }
}
@media (max-height: 520px) and (orientation: landscape) {
  .igphone__stage { grid-template-columns: 1fr auto; text-align: left; justify-items: start; }
  .iphone { --pw: calc((100svh - var(--nav-h) - 30px) / 2.07); }
}

/* ---------- Navigazione su schermi stretti ---------- */
.nav__cta { white-space: nowrap; }
@media (max-width: 430px) { .nav__word { display: none; } .nav__logo img { height: 26px; } }

/* ---------- Showreel video: player + elenco ---------- */
.reel { display: grid; grid-template-columns: 1.7fr 1fr; gap: 24px; align-items: start; }
.reel .video__cap b { color: #fff; font-weight: 600; }
.reel--light .video__cap { color: var(--ink-soft); }
.reel--light .video__cap b { color: var(--ink); }
.reel__list { display: flex; flex-direction: column; gap: 6px; max-height: var(--reel-h, 520px); overflow-y: auto; padding-right: 4px; scrollbar-width: thin; scrollbar-color: rgba(167,139,255,.5) transparent; }
.reel__item { display: flex; gap: 14px; align-items: center; text-align: left; padding: 8px; border: 0; border-radius: 14px; background: transparent; color: inherit; transition: background .25s; }
.reel__item:hover { background: rgba(255,255,255,.06); }
.reel__item.is-on { background: rgba(167,139,255,.14); box-shadow: inset 0 0 0 1px rgba(167,139,255,.45); }
.reel--light .reel__item:hover { background: var(--bg-soft); }
.reel--light .reel__item.is-on { background: rgba(122,92,255,.08); box-shadow: inset 0 0 0 1px rgba(122,92,255,.35); }
.reel__thumb { position: relative; width: 132px; flex: none; aspect-ratio: 16 / 9; border-radius: 9px; overflow: hidden; background: #111; }
.reel__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease-out); }
.reel__item:hover .reel__thumb img { transform: scale(1.08); }
.reel__txt b { display: block; font-size: 15px; letter-spacing: -0.01em; }
.reel__txt small { display: block; font-size: 13px; opacity: .65; line-height: 1.35; margin-top: 2px; }
.plat { list-style: none; padding: 0; margin: 0 0 34px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.plat li { padding: 16px 18px; border-radius: 16px; background: rgba(255,255,255,.06); font-size: 14px; color: var(--ink-inverse-soft); transition: background .3s, transform .4s var(--ease-out); }
.plat li:hover { background: rgba(167,139,255,.16); transform: translateY(-3px); }
.plat b { display: block; font-size: 26px; letter-spacing: -0.03em; color: #fff; margin-bottom: 2px; }
.section:not(.section--dark) .plat li { background: var(--bg-soft); color: var(--ink-soft); }
.section:not(.section--dark) .plat b { color: var(--ink); }
@media (max-width: 900px) { .reel { grid-template-columns: 1fr; } .reel__list { max-height: none; } .plat { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Menu desktop: link centrati esattamente sulla pagina ---------- */
@media (min-width: 834px) {
  .nav__inner { display: grid; grid-template-columns: 1fr auto 1fr; }
  .nav__logo { justify-self: start; }
  .nav__links { margin: 0; }
  .nav__cta { justify-self: end; margin: 0 !important; }
}
@media (max-height: 520px) and (orientation: landscape) {
  .formats__stage { gap: 8px; padding-top: calc(var(--nav-h) + 8px); padding-bottom: 10px; }
  .formats__text .eyebrow { display: none; }
  .formats__text .h2 { font-size: 24px; }
  .formats__use p { font-size: 13px; }
  .formats__chips { margin-top: 6px; }
  .formats__chips button { padding: 4px 10px; font-size: 12px; }
}

/* ---------- Foto vere al posto dei segnaposto ---------- */
.ph > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ph.has-foto { background: #111; }
.ph.has-foto::before { display: none; }
.wm.has-foto .ph img { transition: transform 1.1s var(--ease-out); }
.wm.has-foto:hover .ph img { transform: scale(1.05); }
img[data-foto="chi-sono/ritratto"] { object-position: 50% 0; }

/* ---------- Watermark realistici (compaiono al passaggio del mouse / al tocco) ---------- */
.wmk { position: absolute; z-index: 2; pointer-events: none; color: #fff; opacity: 0; transition: opacity .6s var(--ease-out), transform .8s var(--ease-out); filter: drop-shadow(0 1px 6px rgba(0,0,0,.35)); }
.wm:hover .wmk, .wm.is-on .wmk { opacity: .9; transform: none; }
.wmk--corner { right: 5%; bottom: 5%; display: flex; align-items: center; gap: 7px; font-size: clamp(8px, .78vw, 11px); letter-spacing: .08em; white-space: nowrap; transform: translateY(8px); }
.wmk--corner img { height: 2.4em; width: auto; }
.wmk--corner b { font-weight: 700; }
.wmk--center { left: 50%; top: 50%; width: 42%; transform: translate(-50%, -46%) scale(.96); }
.wm:hover .wmk--center, .wm.is-on .wmk--center { opacity: .5; transform: translate(-50%, -50%); }
.wmk--center img { width: 100%; height: auto; }
.wmk--credit { left: 4%; right: 4%; bottom: 4.5%; text-align: center; white-space: nowrap; overflow: hidden; font-size: clamp(8px, .8vw, 11px); letter-spacing: .14em; text-transform: uppercase; transform: translateY(8px); }
.wm__style { position: absolute; z-index: 3; top: 16px; left: 16px; font-size: 12px; font-weight: 600; padding: 5px 11px; border-radius: 980px; background: rgba(255,255,255,.9); color: #1d1d1f; opacity: 0; transform: translateY(-6px); transition: opacity .4s, transform .5s var(--ease-out); }
.wm:hover .wm__style, .wm.is-on .wm__style { opacity: 1; transform: none; }
.wm:hover .wm__hint, .wm.is-on .wm__hint { opacity: 0; }

/* ---------- Demo "foto brandizzate": il cliente vede la sua foto con il suo brand ---------- */
.brandlab { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: center; max-width: 1000px; margin: 0 auto; }
.brandlab__stage { position: relative; aspect-ratio: 4 / 5; border-radius: var(--radius); overflow: hidden; background: #111; box-shadow: 0 40px 90px -40px rgba(0,0,0,.45); isolation: isolate; }
.brandlab__stage .ph { transition: transform 1s var(--ease-out), border-radius 1s; z-index: 1; }
.brandlab__stage[data-v="social"] .ph { transform: scale(.9); border-radius: 18px; overflow: hidden; }
.bl { position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .6s var(--ease-out), transform .7s var(--ease-out); z-index: 2; color: #fff; }
/* 1. logo in angolo */
.bl--corner { transform: translateY(10px); }
.bl-logo { position: absolute; right: 6%; bottom: 6%; display: flex; align-items: center; gap: .55em; font-size: clamp(11px, 1.3vw, 14px); font-weight: 800; letter-spacing: .12em; text-shadow: 0 1px 10px rgba(0,0,0,.4); }
.bl-logo i { width: 2.2em; height: 2.2em; border-radius: 50%; border: 2px solid #fff; display: grid; place-items: center; }
.bl-logo i::after { content: ""; width: .8em; height: .8em; background: #fff; border-radius: 3px; transform: rotate(45deg); }
/* 2. firma dell'evento */
.bl--event { display: flex; flex-direction: column; justify-content: flex-end; align-items: center; padding-bottom: 8%; background: linear-gradient(transparent 60%, rgba(0,0,0,.55)); transform: translateY(10px); }
.bl--event em { font-family: "Snell Roundhand", "Brush Script MT", "Segoe Script", cursive; font-style: normal; font-size: clamp(30px, 4.4vw, 48px); line-height: 1; }
.bl--event span { margin-top: 8px; font-size: clamp(10px, 1.1vw, 12px); letter-spacing: .3em; text-transform: uppercase; }
.bl--event::before { content: ""; width: 40px; height: 1px; background: rgba(255,255,255,.7); order: 1; margin-top: 10px; }
/* 3. cornice social */
.bl--social { z-index: 3; }
.brandlab__stage::before { content: ""; position: absolute; inset: 0; background: linear-gradient(135deg, #b85cff, #6f80ff); opacity: 0; transition: opacity .6s; }
.brandlab__stage[data-v="social"]::before { opacity: 1; }
.bl-top, .bl-bottom { position: absolute; left: 0; right: 0; display: flex; align-items: center; padding: 0 7%; }
.bl-top { top: 1.6%; height: 3.6%; gap: 8px; font-size: clamp(10px, 1.1vw, 13px); }
.bl-top i { width: 1.6em; height: 1.6em; border-radius: 50%; background: #fff; }
.bl-top small { opacity: .8; font-size: .85em; }
.bl-bottom { bottom: 1.4%; height: 3.6%; justify-content: center; font-weight: 700; letter-spacing: .06em; font-size: clamp(11px, 1.2vw, 14px); }
.brandlab__stage[data-v="corner"] .bl--corner,
.brandlab__stage[data-v="event"] .bl--event,
.brandlab__stage[data-v="social"] .bl--social { opacity: 1; transform: none; }
/* opzioni */
.brandlab__opts { display: grid; gap: 10px; }
.brandlab__opts button { position: relative; overflow: hidden; text-align: left; border: 1px solid var(--line); background: #fff; color: var(--ink); border-radius: 18px; padding: 16px 20px; transition: border-color .3s, box-shadow .3s, transform .4s var(--ease-out); }
.brandlab__opts button:hover { transform: translateX(4px); }
.brandlab__opts b { display: block; font-size: 18px; letter-spacing: -0.01em; }
.brandlab__opts span { display: block; font-size: 14px; color: var(--ink-soft); margin-top: 2px; }
.brandlab__opts button.is-on { border-color: transparent; box-shadow: 0 0 0 2px #8a6bff, 0 16px 34px -18px rgba(122,92,255,.7); }
.brandlab__opts button.is-on::after { content: ""; position: absolute; left: 0; bottom: 0; height: 3px; width: 100%; background: var(--brand-grad); transform-origin: left; animation: blBar var(--bl-t, 3.2s) linear forwards; }
.brandlab.is-paused .brandlab__opts button.is-on::after { animation: none; transform: scaleX(1); }
@keyframes blBar { from { transform: scaleX(0); } to { transform: scaleX(1); } }
/* versione per sezione scura e colonna stretta (pagina Servizi) */
.section--dark .brandlab__opts button { background: var(--bg-dark-soft); border-color: #2a2a2e; color: #fff; }
.section--dark .brandlab__opts span { color: var(--ink-inverse-soft); }
.brandlab--compact { grid-template-columns: 1fr; gap: 16px; }
.brandlab--compact .brandlab__opts { grid-template-columns: 1fr 1fr; gap: 8px; }
.brandlab--compact .brandlab__opts button { padding: 12px 14px; }
.brandlab--compact .brandlab__opts b { font-size: 15px; }
.brandlab--compact .brandlab__opts span { display: none; }
@media (max-width: 834px) {
  .brandlab { grid-template-columns: 1fr; }
  .brandlab__opts { grid-template-columns: 1fr 1fr; gap: 8px; }
  .brandlab__opts button { padding: 12px 14px; }
  .brandlab__opts b { font-size: 15px; }
  .brandlab__opts span { display: none; }
}

/* ---------- Carosello su smartphone: riquadri quadrati, si vede il successivo ---------- */
@media (max-width: 600px) {
  .rail { grid-auto-columns: 76vw; gap: 12px; }
  .tile { aspect-ratio: 1 / 1; border-radius: 22px; }
  .tile__body { padding: 20px; }
  .tile__title { font-size: 21px; }
  .tile__foot { font-size: 13px; }
  .tile__plus { width: 30px; height: 30px; font-size: 18px; }
}
@media (max-height: 520px) and (orientation: landscape) {
  .rail { grid-auto-columns: min(300px, 68vh); gap: 12px; }
  .tile { aspect-ratio: 1 / 1; border-radius: 22px; }
  .tile__body { padding: 18px; }
  .tile__title { font-size: 19px; }
  .tile__foot { font-size: 12px; }
}
/* Instagram su smartphone: più respiro tra occhiello, titolo e pulsante */
@media (max-width: 834px) {
  .igphone__stage { gap: 26px; }
  .igphone__text .eyebrow { margin-bottom: 10px; }
  .igphone__text .h1 { margin-bottom: 22px; line-height: 1.08; }
  .iphone { --pw: min(300px, 62vw, calc((100svh - var(--nav-h) - 250px) / 2.07)); }
}
/* Callout del trailer su schermi stretti/bassi: descrizione visibile, testo che va a capo */
@media (max-width: 734px), (max-height: 520px) and (orientation: landscape) {
  .callout__label { white-space: normal; width: max-content; max-width: min(52vw, 220px); padding: 7px 10px; }
  .callout__label b { font-size: 13px; }
  .callout__label small { display: block; font-size: 11px; line-height: 1.3; margin-top: 2px; }
}
