/* ---------- Font ---------- */
@font-face {
  font-family: "Inter Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(fonts/inter-latin-wght-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(fonts/inter-latin-ext-wght-normal.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---------- Colori ---------- */
:root {
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Inter Variable", "Inter", "Segoe UI Variable Display", "Segoe UI", system-ui, sans-serif;
  --bg: #ffffff;
  --bg-2: #f5f5f7;
  --bg-3: #e8e8ed;
  --text: #1d1d1f;
  --text-2: #6e6e73;
  --text-3: #86868b;
  --line: rgba(0, 0, 0, .1);
  --accent: #0071e3;
  --nav-bg: rgba(255, 255, 255, .72);
  --tile-bg: #f0f0f2;
  --shadow: 0 12px 40px rgba(0, 0, 0, .12);

  --ease: cubic-bezier(.22, 1, .36, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);
  --nav-h: 52px;
  --gutter: clamp(16px, 4vw, 48px);
  --max: 1440px;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #000000;
  --bg-2: #161617;
  --bg-3: #232325;
  --text: #f5f5f7;
  --text-2: #a1a1a6;
  --text-3: #6e6e73;
  --line: rgba(255, 255, 255, .14);
  --accent: #2997ff;
  --nav-bg: rgba(22, 22, 23, .72);
  --tile-bg: #111113;
  --shadow: 0 12px 40px rgba(0, 0, 0, .6);
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #000000;
    --bg-2: #161617;
    --bg-3: #232325;
    --text: #f5f5f7;
    --text-2: #a1a1a6;
    --text-3: #6e6e73;
    --line: rgba(255, 255, 255, .14);
    --accent: #2997ff;
    --nav-bg: rgba(22, 22, 23, .72);
    --tile-bg: #111113;
    --shadow: 0 12px 40px rgba(0, 0, 0, .6);
    color-scheme: dark;
  }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: var(--nav-h); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.47;
  letter-spacing: -0.022em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "cv11", "ss01", "ss03";
  transition: background-color .5s var(--ease), color .5s var(--ease);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
body.locked { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
main { flex: 1; outline: none; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--bg); padding: 8px 14px; border-radius: 10px; }
.skip:focus { left: 8px; }
svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Barra di navigazione ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 40;
  height: calc(var(--nav-h) + env(safe-area-inset-top));
  padding-top: env(safe-area-inset-top);
  background: var(--nav-bg);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid transparent;
  transition: background-color .4s var(--ease), border-color .4s var(--ease), color .4s var(--ease), transform .45s var(--ease);
}
.nav.scrolled { border-bottom-color: var(--line); }
.nav.over-hero:not(.scrolled) {
  background: transparent;
  -webkit-backdrop-filter: none; backdrop-filter: none;
  color: #fff;
}
.nav.hidden { transform: translateY(-100%); }
.nav-inner {
  max-width: var(--max); margin: 0 auto; height: 100%;
  padding: 0 var(--gutter);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.brand { font-weight: 600; font-size: 19px; letter-spacing: -0.03em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nav-links { display: flex; align-items: center; gap: 4px; font-size: 14px; letter-spacing: -0.01em; }
.nav-links a { padding: 6px 12px; border-radius: 980px; opacity: .8; transition: opacity .2s, background-color .2s; }
.nav-links a:hover { opacity: 1; }
.nav-links a.active { opacity: 1; font-weight: 600; }
.icon-btn { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; opacity: .8; transition: opacity .2s, background-color .2s; }
.icon-btn:hover { opacity: 1; background: color-mix(in srgb, currentColor 10%, transparent); }
.icon-btn svg { width: 19px; height: 19px; }
.theme-btn .i-moon { display: none; }
:root[data-theme="dark"] .theme-btn .i-sun { display: none; }
:root[data-theme="dark"] .theme-btn .i-moon { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-btn .i-sun { display: none; }
  :root:not([data-theme="light"]) .theme-btn .i-moon { display: block; }
}

/* ---------- Transizioni di pagina ---------- */
.page { animation: page-in .7s var(--ease) both; }
.page.out { animation: page-out .22s var(--ease-io) both; }
@keyframes page-in { from { opacity: 0; transform: translateY(14px); filter: blur(3px); } }
@keyframes page-out { to { opacity: 0; transform: translateY(-6px); filter: blur(3px); } }

/* Elementi che appaiono durante lo scorrimento */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease), transform 1.1s var(--ease), filter 1.1s var(--ease); transition-delay: var(--d, 0ms); }
/* Testi e titoli entrano con una leggerissima sfocatura che si dissolve */
.reveal:not(.tile):not(.genre):not(.card):not(.split) { filter: blur(8px); }
/* Foto e schede entrano salendo e ingrandendosi, una dopo l'altra (ben visibile, stile Apple) */
.tile.reveal { transform: translateY(56px) scale(.93); transition-duration: 1.2s, 1.3s, 1.1s; }
.genre.reveal, .card.reveal { transform: translateY(70px) scale(.92); }
.reveal.in { opacity: 1; transform: none; }
/* La sfocatura deve sparire sempre quando l'elemento è comparso */
.reveal.in, .reveal.in:not(.tile):not(.genre):not(.card):not(.split) { filter: none; }

/* Titoli che salgono parola per parola da una "fessura" */
.split { opacity: 1 !important; transform: none !important; filter: none !important; }
.split .w { display: inline-block; overflow: hidden; vertical-align: top; padding: 0 .02em .12em; margin: 0 -.02em -.12em; }
.split .w > span { display: inline-block; transform: translateY(110%) rotate(2deg); transform-origin: 0 100%; transition: transform 1.15s var(--ease); transition-delay: calc(var(--i, 0) * 80ms + var(--d, 0ms)); }
.split.in .w > span { transform: none; }

/* ---------- Copertina (home) ---------- */
.hero {
  position: relative;
  height: 100vh; height: 100svh;
  min-height: 520px;
  overflow: hidden;
  background: #000;
  color: #fff;
  display: flex; align-items: flex-end;
}
.hero-media { position: absolute; inset: 0; will-change: transform; }
.hero-slide { position: absolute; inset: 0; overflow: hidden; opacity: 0; transition: opacity 1.8s var(--ease-io); }
.hero-slide.on { opacity: 1; }
.hero-slide img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-slide .lq { filter: blur(24px); transform: scale(1.1); }
/* Entrata della copertina, poi uno zoom lentissimo "cinematografico" */
.hero-slide .ph { animation: hero-zoom 2.6s var(--ease) both, ken-burns-soft 14s 2.6s cubic-bezier(.25, .1, .25, 1) both; transform-origin: 50% 60%; }
@keyframes hero-zoom { from { transform: scale(1.12); opacity: 0; } 30% { opacity: 1; } to { transform: scale(1.04); } }
@keyframes ken-burns-soft { from { transform: scale(1.04); } to { transform: scale(1); } }
.hero-tag {
  position: absolute; z-index: 2; right: var(--gutter); bottom: 26px;
  font-size: 13px; font-weight: 500; letter-spacing: -0.005em; color: rgba(255,255,255,.9);
  padding: 6px 13px; border-radius: 980px;
  background: rgba(0,0,0,.28); -webkit-backdrop-filter: blur(16px) saturate(180%); backdrop-filter: blur(16px) saturate(180%);
  transition: opacity .5s var(--ease), background-color .2s;
  animation: rise 1.2s var(--ease) 1.1s both;
}
.hero-tag:hover { background: rgba(0,0,0,.45); }
@media (max-width: 760px) { .hero-tag { bottom: 18px; font-size: 12px; } .scroll-cue { display: none; } }
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.35) 0%, rgba(0,0,0,0) 22%, rgba(0,0,0,0) 50%, rgba(0,0,0,.55) 100%);
  pointer-events: none;
}
.hero-text {
  position: relative; z-index: 1;
  width: 100%; max-width: var(--max); margin: 0 auto;
  padding: 0 var(--gutter) clamp(56px, 10vh, 110px);
}
.hero-eyebrow { font-size: clamp(15px, 1.6vw, 19px); font-weight: 500; opacity: .85; margin: 0 0 10px; letter-spacing: -0.01em; }
.hero h1 {
  margin: 0;
  font-size: clamp(44px, 9vw, 120px);
  line-height: 1.02;
  font-weight: 700;
  letter-spacing: -0.045em;
}
.hero-sub { font-size: clamp(19px, 2.4vw, 28px); font-weight: 400; margin: 14px 0 0; opacity: .9; letter-spacing: -0.02em; max-width: 30ch; }
.hero-text > *:not(.split) { animation: rise 1.2s var(--ease) both; }
.hero h1.split { --d: 250ms; }
.hero-text { transform-origin: 0 100%; }
.hero-text > :nth-child(1) { animation-delay: .35s; }
.hero-text > :nth-child(2) { animation-delay: .45s; }
.hero-text > :nth-child(3) { animation-delay: .6s; }
.hero-cta { margin-top: 28px; display: flex; gap: 12px; flex-wrap: wrap; animation-delay: .75s !important; }
@keyframes rise { from { opacity: 0; transform: translateY(30px); } }
.scroll-cue {
  position: absolute; z-index: 1; left: 50%; bottom: 22px; translate: -50% 0;
  width: 26px; height: 42px; border: 1.5px solid rgba(255,255,255,.6); border-radius: 14px;
  animation: rise 1.2s var(--ease) 1s both;
}
.scroll-cue::after {
  content: ""; position: absolute; left: 50%; top: 8px; width: 3px; height: 8px; margin-left: -1.5px;
  border-radius: 2px; background: #fff; animation: cue 1.8s var(--ease-io) infinite;
}
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* ---------- Pulsanti ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 6px;
  height: 44px; padding: 0 22px; border-radius: 980px;
  font-size: 17px; font-weight: 500; letter-spacing: -0.02em;
  background: var(--accent); color: #fff;
  transition: transform .3s var(--ease), translate .3s var(--ease), background-color .2s, opacity .2s, box-shadow .3s var(--ease);
}
.btn:hover { opacity: .92; translate: 0 -1px; box-shadow: 0 6px 18px rgba(0,0,0,.18); }
.btn:active { transform: scale(.97); }
.btn.light { background: rgba(255,255,255,.92); color: #1d1d1f; }
.btn.ghost { background: rgba(255,255,255,.16); color: #fff; -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); }
.link { color: var(--accent); display: inline-flex; align-items: center; gap: 2px; font-weight: 500; }
.link:hover { text-decoration: underline; }
.link svg { width: 16px; height: 16px; stroke-width: 2; }

/* ---------- Sezioni ---------- */
.section { max-width: var(--max); margin: 0 auto; padding: clamp(72px, 11vw, 140px) var(--gutter) 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: clamp(28px, 4vw, 48px); flex-wrap: wrap; }
.eyebrow { color: var(--text-2); font-size: 17px; font-weight: 600; margin: 0 0 6px; letter-spacing: -0.01em; }
.h2 { font-size: clamp(34px, 5vw, 64px); line-height: 1.05; font-weight: 700; letter-spacing: -0.04em; margin: 0; }
.lead { font-size: clamp(19px, 2vw, 24px); line-height: 1.4; color: var(--text-2); letter-spacing: -0.02em; margin: 14px 0 0; max-width: 46ch; }

.page-head { max-width: var(--max); margin: 0 auto; padding: calc(var(--nav-h) + clamp(48px, 9vw, 120px)) var(--gutter) clamp(32px, 5vw, 64px); }
.page-head h1 { font-size: clamp(44px, 8vw, 96px); line-height: 1.02; font-weight: 700; letter-spacing: -0.045em; margin: 0; }
.page-head .meta { color: var(--text-2); font-size: 17px; margin-top: 18px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.dot { width: 3px; height: 3px; border-radius: 50%; background: currentColor; opacity: .6; }
.back { display: inline-flex; align-items: center; gap: 2px; color: var(--accent); font-size: 17px; margin-bottom: 18px; }
.back svg { width: 17px; height: 17px; stroke-width: 2; }
.back:hover { text-decoration: underline; }

/* ---------- Griglia giustificata delle foto ---------- */
.grid-wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.jgrid { display: flex; flex-direction: column; gap: var(--gap, 10px); }
.jrow { display: flex; gap: var(--gap, 10px); }
.tile {
  position: relative; display: block; overflow: hidden;
  border-radius: var(--radius, 6px);
  background: var(--tile-bg);
  isolation: isolate;
  cursor: zoom-in;
  -webkit-tap-highlight-color: transparent;
}
.tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tile .lq { filter: blur(14px); transform: scale(1.15); opacity: .9; }
.tile .ph { opacity: 0; transition: opacity .7s var(--ease), transform 1.1s var(--ease), filter .5s; }
.tile .ph.loaded { opacity: 1; }
.tile::after {
  content: ""; position: absolute; inset: 0; z-index: 2;
  background: linear-gradient(180deg, transparent 55%, rgba(0,0,0,.45));
  opacity: 0; transition: opacity .4s var(--ease);
  pointer-events: none;
}
.tile .cap {
  position: absolute; z-index: 3; left: 14px; right: 14px; bottom: 12px;
  color: #fff; font-size: 14px; font-weight: 500; letter-spacing: -0.01em;
  opacity: 0; transform: translateY(6px); transition: opacity .4s var(--ease), transform .4s var(--ease);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
@media (hover: hover) {
  .tile:hover .ph.loaded { transform: scale(1.035); }
  .tile:hover::after, .tile:hover .cap { opacity: 1; transform: none; }
}
.tile:active .ph { transform: scale(.985); }
.tile.vt-hidden { visibility: hidden; }

/* ---------- Schede gallerie ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: clamp(20px, 3vw, 36px) clamp(16px, 2vw, 24px); }
.card { display: block; -webkit-tap-highlight-color: transparent; }
.card-media { position: relative; aspect-ratio: 4 / 5; overflow: hidden; border-radius: 18px; background: var(--tile-bg); isolation: isolate; }
.card-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.card-media .lq { filter: blur(16px); transform: scale(1.15); }
.card-media .ph { opacity: 0; transition: opacity .7s var(--ease), transform 1.2s var(--ease); }
.card-media .ph.loaded { opacity: 1; }
.card-media .count {
  position: absolute; z-index: 2; top: 14px; right: 14px;
  font-size: 13px; font-weight: 600; color: #fff; padding: 5px 11px; border-radius: 980px;
  background: rgba(0,0,0,.32); -webkit-backdrop-filter: blur(16px) saturate(180%); backdrop-filter: blur(16px) saturate(180%);
}
.card-body { padding: 16px 4px 0; }
.card-body h3 { margin: 0; font-size: 24px; font-weight: 600; letter-spacing: -0.03em; line-height: 1.15; }
.card-body p { margin: 6px 0 0; color: var(--text-2); font-size: 15px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
@media (hover: hover) {
  .card:hover .ph.loaded { transform: scale(1.045); }
  .card:hover h3 { color: var(--accent); }
}
.card h3 { transition: color .2s; }
.card:active .card-media { transform: scale(.985); }
.card-media { transition: transform .4s var(--ease); }

/* ---------- Tipi di fotografia ---------- */
.genres { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: clamp(12px, 1.6vw, 20px); }
.genre {
  position: relative; aspect-ratio: 3 / 4; border-radius: 18px; overflow: hidden; isolation: isolate;
  display: flex; flex-direction: column; justify-content: flex-end;
  background: var(--bg-2);
  transition: opacity 1s var(--ease), transform 1.1s var(--ease), translate .5s var(--ease), box-shadow .5s var(--ease), background-color .3s;
  transition-delay: var(--d, 0ms), var(--d, 0ms), 0s, 0s, 0s;
  -webkit-tap-highlight-color: transparent;
}
/* Le schede si sollevano appena al passaggio del mouse */
@media (hover: hover) {
  .genre:hover { translate: 0 -8px; box-shadow: 0 26px 50px rgba(0,0,0,.22); }
  a.genre:hover .ph.loaded { transform: scale(1.08) !important; }
  .card:hover .card-media { translate: 0 -6px; box-shadow: 0 22px 46px rgba(0,0,0,.2); }
  .next-gal a:hover { translate: 0 -3px; }
}
.card-media, .next-gal a { transition: transform .4s var(--ease), translate .5s var(--ease), box-shadow .5s var(--ease); }
a.genre { color: #fff; }
a.genre:active { transform: scale(.98); }
.genre-media { position: absolute; inset: 0; z-index: -1; }
.genre-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.genre-media .lq { filter: blur(16px); transform: scale(1.15); }
.genre-media .ph { opacity: 0; transition: opacity .7s var(--ease), transform 1.2s var(--ease); }
.genre-media .ph.loaded { opacity: 1; }
.genre-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 45%, rgba(0,0,0,.62)); }
.genre-txt { padding: 18px 18px 16px; }
.genre h3 { margin: 0; font-size: clamp(18px, 1.7vw, 22px); font-weight: 600; letter-spacing: -0.025em; line-height: 1.15; }
.genre-txt > span { display: block; font-size: 13px; margin-top: 5px; opacity: .78; letter-spacing: -0.005em; }
.genre-txt p { margin: 8px 0 0; font-size: 14px; line-height: 1.4; color: var(--text-2); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.genre.is-empty { color: var(--text); }
.genre-icon {
  position: absolute; top: 18px; left: 18px; width: 48px; height: 48px; border-radius: 14px;
  display: grid; place-items: center; background: var(--bg); color: var(--text);
  box-shadow: 0 1px 2px rgba(0,0,0,.06);
}
.genre-icon svg { width: 24px; height: 24px; stroke-width: 1.6; }
.genre .soon {
  display: inline-block; margin-top: 12px; opacity: 1;
  font-size: 12px; font-weight: 600; color: var(--text-2);
  padding: 4px 10px; border-radius: 980px; border: 1px solid var(--line);
}
@media (hover: hover) {
  a.genre:hover .ph.loaded { transform: scale(1.05); }
  .genre.is-empty:hover { background: var(--bg-3); }
}
@media (max-width: 600px) {
  .genres { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .genre { border-radius: 14px; }
  .genre-txt { padding: 12px 12px 12px; }
  .genre-txt p { display: none; }
  .genre-icon { top: 12px; left: 12px; width: 40px; height: 40px; border-radius: 12px; }
  .genre .soon { margin-top: 8px; }
}

/* ---------- Frase grande con testo sfumato ---------- */
.statement { max-width: var(--max); margin: 0 auto; padding: clamp(96px, 14vw, 180px) var(--gutter) 0; text-align: center; }
.statement-big {
  margin: 0 auto; max-width: 18ch;
  font-size: clamp(40px, 6.6vw, 96px); line-height: 1.04; font-weight: 700; letter-spacing: -0.045em;
}
.grad {
  background: linear-gradient(100deg, #ff9f0a 0%, #ff375f 30%, #bf5af2 60%, #0a84ff 90%);
  background-size: 200% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: grad-move 12s ease-in-out infinite alternate;
}
@keyframes grad-move { to { background-position: 100% 0; } }
.statement-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; max-width: 980px; margin: clamp(48px, 7vw, 88px) auto 0; }
.sstat { background: var(--bg-2); border-radius: 22px; padding: 26px 20px; text-align: center; }
.sstat strong { display: block; font-size: clamp(36px, 4.4vw, 56px); font-weight: 700; letter-spacing: -0.04em; line-height: 1.05; font-variant-numeric: tabular-nums; }
.sstat strong.txt { font-size: clamp(22px, 2.4vw, 30px); line-height: 1.2; padding: 8px 0 6px; }
.sstat > span:not(.sicon) { display: block; margin-top: 6px; font-size: 15px; color: var(--text-2); }

/* ---------- Pulsanti "Tutti i lavori" ---------- */
.pill-btn {
  display: inline-flex; align-items: center; gap: 6px; height: 44px; padding: 0 16px 0 20px;
  border-radius: 980px; background: var(--bg-2); color: var(--text);
  font-size: 16px; font-weight: 600; letter-spacing: -0.01em; white-space: nowrap;
  transition: background-color .25s, transform .3s var(--ease), box-shadow .3s var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.pill-btn svg { width: 17px; height: 17px; stroke-width: 2.4; transition: transform .35s var(--ease); }
.pill-btn:hover { background: var(--bg-3); box-shadow: 0 8px 22px rgba(0,0,0,.12); }
.pill-btn:hover svg { transform: translateX(4px); }
.pill-btn:active { transform: scale(.95); }
.big-cta { display: flex; justify-content: center; max-width: var(--max); margin: 0 auto; padding: clamp(36px, 5vw, 60px) var(--gutter) 0; }
.big-btn {
  display: inline-flex; align-items: center; gap: 12px; height: 60px; padding: 0 10px 0 30px;
  border-radius: 980px; background: var(--text); color: var(--bg);
  font-size: 18px; font-weight: 600; letter-spacing: -0.015em;
  box-shadow: 0 10px 30px rgba(0,0,0,.18);
  transition: transform .35s var(--ease), translate .35s var(--ease), box-shadow .35s var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.big-btn small { font-size: 15px; font-weight: 500; opacity: .55; }
.big-btn .arr { width: 40px; height: 40px; margin-left: 8px; border-radius: 50%; display: grid; place-items: center; background: var(--bg); color: var(--text); transition: transform .35s var(--ease); }
.big-btn .arr svg { width: 18px; height: 18px; stroke-width: 2.6; animation: nudge 3.2s var(--ease) infinite; }
@keyframes nudge { 0%, 72%, 100% { transform: none; } 82% { transform: translateX(4px); } 90% { transform: translateX(-1px); } }
.big-btn:hover { translate: 0 -2px; box-shadow: 0 18px 40px rgba(0,0,0,.26); }
.big-btn:hover .arr { transform: translateX(3px) scale(1.06); }
.big-btn:active { transform: scale(.97); }
@media (max-width: 600px) {
  .section-head .pill-btn { height: 40px; font-size: 15px; }
  .big-btn { width: 100%; justify-content: center; height: 58px; padding: 0 10px 0 22px; font-size: 17px; }
  .big-btn .arr { margin-left: auto; }
}

/* ---------- Scatto protagonista ---------- */
.spot-wrap { margin-bottom: clamp(10px, 1.2vw, 14px); }
.spotlight { display: block; width: 100%; aspect-ratio: var(--ar, 1.5); max-height: 82vh; border-radius: 22px !important; cursor: zoom-in; }
.spotlight::after { opacity: 1 !important; background: linear-gradient(180deg, transparent 50%, rgba(0,0,0,.55)) !important; }
.spot-txt { position: absolute; z-index: 3; left: clamp(20px, 3vw, 40px); right: clamp(20px, 3vw, 40px); bottom: clamp(18px, 3vw, 36px); color: #fff; }
.spot-tag { display: inline-block; font-size: 13px; font-weight: 600; padding: 5px 12px; border-radius: 980px; background: rgba(255,255,255,.18); -webkit-backdrop-filter: blur(16px) saturate(180%); backdrop-filter: blur(16px) saturate(180%); }
.spot-txt strong { display: block; margin-top: 10px; font-size: clamp(26px, 3.4vw, 44px); font-weight: 700; letter-spacing: -0.035em; line-height: 1.08; }
.spot-txt em { display: block; margin-top: 6px; font-style: normal; font-size: 14px; opacity: .8; font-variant-numeric: tabular-nums; }
@media (hover: hover) { .spotlight:hover .ph.loaded { transform: scale(1.025); } }

/* ---------- Carosello dei generi ---------- */
.car-nav { display: flex; gap: 10px; }
.car-btn { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--bg-2); color: var(--text); transition: background-color .2s, transform .2s var(--ease); }
.car-btn:hover { background: var(--bg-3); }
.car-btn:active { transform: scale(.92); }
.car-btn svg { width: 20px; height: 20px; stroke-width: 2; }
@media (hover: none) { .car-nav { display: none; } }
.carousel-wrap { max-width: calc(var(--max) + 2 * 48px); margin: 0 auto; }
.carousel {
  display: grid; grid-auto-flow: column; grid-auto-columns: clamp(250px, 23%, 340px); gap: 20px;
  overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none;
  padding: 10px max(var(--gutter), env(safe-area-inset-left)) 30px;
  scroll-padding: 0 max(var(--gutter), env(safe-area-inset-left));
}
.carousel::-webkit-scrollbar { display: none; }
.carousel > * { scroll-snap-align: start; }
.carousel .genre { aspect-ratio: 3 / 4.2; border-radius: 24px; }
.carousel .genre h3 { font-size: clamp(20px, 1.8vw, 26px); }
@media (max-width: 600px) { .carousel { grid-auto-columns: 74%; gap: 12px; } }

/* ---------- Riquadri colorati e attrezzatura ---------- */
.panel { background: var(--bg-2); border-radius: 30px; padding: clamp(32px, 5vw, 72px); overflow: hidden; }
.gear { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.gear-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 28px; }
.gear h3 { margin: 0 0 14px; font-size: 15px; font-weight: 600; color: var(--text-2); }
.pills { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.pills li { display: flex; justify-content: space-between; align-items: center; gap: 14px; background: var(--bg); border-radius: 16px; padding: 14px 18px; font-size: 16px; font-weight: 500; }
.pills li span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pills b { font-size: 13px; font-weight: 600; color: var(--text-2); background: var(--bg-2); padding: 3px 10px; border-radius: 980px; font-variant-numeric: tabular-nums; flex: none; }
@media (max-width: 900px) { .gear { grid-template-columns: 1fr; } }

/* ---------- Telefoni e tablet: animazioni adatte al tocco ---------- */
@media (hover: none), (max-width: 760px) {
  /* niente sfocature (pesanti sui telefoni): solo movimento, più corto e fluido */
  .reveal:not(.tile):not(.genre):not(.card):not(.split) { filter: none; }
  .tile.reveal { transform: translateY(34px) scale(.96); }
  .genre.reveal, .card.reveal { transform: translateY(44px) scale(.95); }
  .split .w > span { transition-duration: .95s; }
  @keyframes page-in { from { opacity: 0; transform: translateY(12px); } }
  @keyframes page-out { to { opacity: 0; } }
  /* effetto "pressione" al tocco, come nelle app Apple */
  .genre, .spotlight, .sstat, .pills li, .car-btn { -webkit-tap-highlight-color: transparent; }
  .genre:active, .spotlight:active { scale: .975; }
  .genre, .spotlight { transition: opacity 1s var(--ease), transform 1.1s var(--ease), scale .25s var(--ease); }
}
/* Impaginazione per telefoni */
@media (max-width: 600px) {
  .statement { padding-top: 88px; }
  .statement-big { font-size: clamp(34px, 10.5vw, 50px); max-width: 13ch; }
  .statement-stats { grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 40px; }
  .sstat { padding: 20px 10px; border-radius: 18px; }
  .sstat span { font-size: 13px; }
  .spotlight { border-radius: 16px !important; max-height: 72vh; }
  .spot-txt strong { font-size: 24px; }
  .panel { border-radius: 24px; padding: 28px 20px; }
  .pills li { padding: 12px 14px; font-size: 15px; border-radius: 14px; }
  .section { padding-top: 76px; }
  .section-head { margin-bottom: 22px; }
}
/* Tablet in verticale */
@media (min-width: 601px) and (max-width: 1024px) {
  .carousel { grid-auto-columns: clamp(240px, 38%, 320px); }
  .statement-stats { grid-template-columns: repeat(2, 1fr); max-width: 640px; }
}

/* ---------- Prossima galleria ---------- */
.next-gal { max-width: var(--max); margin: clamp(72px, 10vw, 120px) auto 0; padding: 0 var(--gutter); }
.next-gal a {
  position: relative; display: flex; align-items: flex-end; overflow: hidden;
  height: clamp(220px, 34vw, 420px); border-radius: 22px; background: #000; color: #fff; isolation: isolate;
}
.next-gal img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .75; transition: transform 1.2s var(--ease), opacity .5s; }
.next-gal a:hover img { transform: scale(1.04); opacity: .85; }
.next-gal .txt { position: relative; padding: clamp(24px, 4vw, 44px); }
.next-gal .txt span { font-size: 15px; font-weight: 600; opacity: .8; }
.next-gal .txt strong { display: block; font-size: clamp(30px, 5vw, 56px); font-weight: 700; letter-spacing: -0.04em; line-height: 1.05; }

/* ---------- Pagina Info ---------- */
.about { max-width: 1100px; margin: 0 auto; padding: calc(var(--nav-h) + clamp(48px, 8vw, 110px)) var(--gutter) 0; display: grid; grid-template-columns: 1fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.about.has-photo { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); }
.about-photo { position: sticky; isolation: isolate; top: calc(var(--nav-h) + 32px); border-radius: 22px; overflow: hidden; background: var(--tile-bg); }
.about-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.about-photo .lq { filter: blur(16px); transform: scale(1.1); }
.about-photo .ph { opacity: 0; transition: opacity .7s var(--ease); }
.about-photo .ph.loaded { opacity: 1; }
body.locked { padding-right: var(--sbw, 0px); }
body.locked .nav { padding-right: var(--sbw, 0px); }
.about h1 { font-size: clamp(44px, 7vw, 80px); line-height: 1.02; font-weight: 700; letter-spacing: -0.045em; margin: 0; }
.about .role { font-size: clamp(21px, 2.4vw, 28px); color: var(--text-2); margin: 10px 0 0; letter-spacing: -0.02em; }
.about .bio { font-size: clamp(19px, 1.8vw, 21px); line-height: 1.55; margin-top: 32px; letter-spacing: -0.015em; }
.about .bio p { margin: 0 0 1em; }
.list { margin-top: 40px; border-radius: 16px; background: var(--bg-2); overflow: hidden; }
.list a, .list div.row {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 15px 18px; font-size: 17px; position: relative;
}
.list > * + *::before { content: ""; position: absolute; top: 0; left: 18px; right: 0; height: 1px; background: var(--line); }
.list a:hover { background: var(--bg-3); }
.list .k { color: var(--text-2); }
.list .v { color: var(--accent); text-align: right; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 40px; }
.stat { background: var(--bg-2); border-radius: 16px; padding: 18px; }
.stat strong { display: block; font-size: 34px; font-weight: 700; letter-spacing: -0.04em; line-height: 1.1; }
.stat span { font-size: 14px; color: var(--text-2); }

/* ---------- Stato vuoto ---------- */
.empty { max-width: 640px; margin: 0 auto; padding: calc(var(--nav-h) + 120px) var(--gutter) 40px; text-align: center; }
.empty h1 { font-size: clamp(36px, 6vw, 56px); letter-spacing: -0.04em; margin: 0 0 12px; }
.empty p { color: var(--text-2); font-size: 19px; }
.empty code { background: var(--bg-2); padding: 2px 8px; border-radius: 6px; font-size: .9em; }

/* ---------- Piè di pagina ---------- */
.footer { max-width: var(--max); width: 100%; margin: clamp(80px, 12vw, 160px) auto 0; padding: 22px var(--gutter) 34px; font-size: 12px; color: var(--text-3); letter-spacing: 0; }
.footer-inner { border-top: 1px solid var(--line); padding-top: 18px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer a:hover { color: var(--text); }
.footer nav { display: flex; gap: 18px; }

/* ---------- Visore a schermo intero ---------- */
.lb { position: fixed; inset: 0; z-index: 60; color: #f5f5f7; touch-action: none; -webkit-user-select: none; user-select: none; }
.lb[hidden] { display: none; }
.lb-bg { position: absolute; inset: 0; background: #000; opacity: 0; transition: opacity .45s var(--ease); }
.lb.open .lb-bg { opacity: 1; }
.lb-stage { position: absolute; inset: 0; overflow: hidden; }
.lb-frame { position: absolute; transform-origin: 0 0; will-change: transform; }
.lb-zoom { position: absolute; inset: 0; transform-origin: 0 0; will-change: transform; }
.lb-zoom img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.lb-lqip { filter: blur(18px); }
.lb-lqip.hide { visibility: hidden; }
.lb-img { opacity: 0; transition: opacity .35s var(--ease); }
.lb-img.ready { opacity: 1; }
/* Versione a piena qualità: sostituisce quella leggera con una dissolvenza lenta e impercettibile */
.lb-full { transition: opacity 1s cubic-bezier(.4, 0, .2, 1); }
.lb.zoomed .lb-stage { cursor: grab; }
.lb.zoomed.panning .lb-stage { cursor: grabbing; }
.lb:not(.zoomed) .lb-frame { cursor: zoom-in; }
.lb-spinner {
  position: absolute; left: 50%; top: 50%; width: 28px; height: 28px; margin: -14px 0 0 -14px;
  border-radius: 50%; border: 2.5px solid rgba(255,255,255,.2); border-top-color: rgba(255,255,255,.85);
  animation: spin .9s linear infinite; opacity: 0; transition: opacity .3s; pointer-events: none;
}
.lb-spinner.on { opacity: 1; transition-delay: .4s; }
@keyframes spin { to { transform: rotate(360deg); } }

.lb-bar {
  position: absolute; left: 0; right: 0; z-index: 5;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: max(10px, env(safe-area-inset-top)) max(12px, env(safe-area-inset-right)) 10px max(12px, env(safe-area-inset-left));
  transition: opacity .35s var(--ease), transform .35s var(--ease);
}
.lb-top { top: 0; background: linear-gradient(180deg, rgba(0,0,0,.5), rgba(0,0,0,0)); }
.lb-title { flex: 1; min-width: 0; text-align: center; line-height: 1.25; }
.lb-title strong { display: block; font-size: 15px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lb-title span { font-size: 12px; color: rgba(255,255,255,.6); letter-spacing: 0; }
.lb-actions { display: flex; gap: 6px; }
.lb-btn {
  width: 40px; height: 40px; flex: none; display: grid; place-items: center; border-radius: 50%;
  background: rgba(40,40,42,.6); -webkit-backdrop-filter: blur(20px) saturate(180%); backdrop-filter: blur(20px) saturate(180%);
  transition: background-color .2s, transform .2s var(--ease);
}
.lb-btn:hover { background: rgba(70,70,74,.75); }
.lb-btn:active { transform: scale(.92); }
.lb-btn svg { width: 20px; height: 20px; }
.lb-btn.on { background: #f5f5f7; color: #1d1d1f; }
.lb-btn[hidden] { display: none; }
.lb-arrow {
  position: absolute; z-index: 3; top: 50%; margin-top: -26px; width: 52px; height: 52px; border-radius: 50%;
  display: grid; place-items: center; background: rgba(40,40,42,.55);
  -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
  transition: opacity .3s var(--ease), background-color .2s, transform .2s var(--ease);
}
.lb-arrow:hover { background: rgba(70,70,74,.75); }
.lb-arrow:active { transform: scale(.92); }
.lb-arrow svg { width: 24px; height: 24px; }
.lb-prev { left: max(16px, env(safe-area-inset-left)); }
.lb-next { right: max(16px, env(safe-area-inset-right)); }
.lb-arrow:disabled { opacity: 0 !important; pointer-events: none; }
.lb.idle .lb-bar, .lb.idle .lb-arrow, .lb.chrome-off .lb-bar, .lb.chrome-off .lb-arrow { opacity: 0; pointer-events: none; }
.lb.idle .lb-top, .lb.chrome-off .lb-top { transform: translateY(-8px); }
.lb:not(.open) .lb-bar, .lb:not(.open) .lb-arrow { opacity: 0; }
/* All'apertura del visore i comandi scivolano in posizione */
.lb:not(.open) .lb-top { transform: translateY(-10px); }
.lb:not(.open) .lb-prev { translate: -8px 0; }
.lb:not(.open) .lb-next { translate: 8px 0; }
.lb-arrow { transition: opacity .3s var(--ease), background-color .2s, transform .2s var(--ease), translate .5s var(--ease); }
@media (hover: none) { .lb-arrow { display: none; } }

.lb-info {
  position: absolute; z-index: 4; top: 0; right: 0; bottom: 0; width: 340px;
  background: rgba(28,28,30,.82); -webkit-backdrop-filter: blur(30px) saturate(180%); backdrop-filter: blur(30px) saturate(180%);
  border-left: 1px solid rgba(255,255,255,.08);
  padding: calc(max(10px, env(safe-area-inset-top)) + 64px) 22px 24px;
  transform: translateX(100%); transition: transform .5s var(--ease);
  overflow-y: auto; touch-action: pan-y; -webkit-user-select: text; user-select: text;
}
.lb.info-open .lb-info { transform: none; }
.lb.info-open .lb-top { background: none; }
@media (min-width: 901px) {
  .lb.info-open .lb-title { padding-right: 340px; }
  .lb.info-open.idle .lb-top, .lb.info-open.idle .lb-actions { opacity: 1; pointer-events: auto; transform: none; }
}
.lb.info-open .lb-next { right: calc(340px + 16px); }
.lb-info-handle { display: none; }
.lb-info h2 { font-size: 24px; font-weight: 700; letter-spacing: -0.03em; margin: 0 0 4px; line-height: 1.15; }
.lb-info .sub { color: rgba(255,255,255,.6); font-size: 14px; margin: 0; }
.lb-info .caption { font-size: 15px; line-height: 1.5; margin: 14px 0 0; color: rgba(255,255,255,.85); }
.lb-info .ex { margin-top: 22px; border-radius: 14px; background: rgba(255,255,255,.07); overflow: hidden; }
.lb-info .ex-top { padding: 14px 16px; }
.lb-info .ex-top strong { display: block; font-size: 15px; font-weight: 600; }
.lb-info .ex-top span { font-size: 13px; color: rgba(255,255,255,.6); }
.lb-info .ex-grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid rgba(255,255,255,.08); }
.lb-info .ex-grid div { padding: 10px 4px; text-align: center; font-size: 13px; font-weight: 500; font-variant-numeric: tabular-nums; }
.lb-info .ex-grid div + div { border-left: 1px solid rgba(255,255,255,.08); }
.lb-info .ex-grid div:empty::before { content: "—"; color: rgba(255,255,255,.3); }
.lb-info .rows { margin-top: 14px; border-radius: 14px; background: rgba(255,255,255,.07); }
.lb-info .rows div { display: flex; justify-content: space-between; gap: 12px; padding: 11px 16px; font-size: 14px; }
.lb-info .rows div + div { border-top: 1px solid rgba(255,255,255,.08); }
.lb-info .rows span:first-child { color: rgba(255,255,255,.6); }
.lb-info .lb-dl-btn { margin-top: 18px; width: 100%; justify-content: center; }

@media (max-width: 900px) {
  .lb-info {
    top: auto; left: 0; width: auto; max-height: 62vh;
    border-left: 0; border-top: 1px solid rgba(255,255,255,.08);
    border-radius: 18px 18px 0 0;
    padding: 10px 20px max(24px, env(safe-area-inset-bottom));
    transform: translateY(100%);
  }
  .lb.info-open .lb-next { right: 16px; }
  .lb-info-handle { display: block; width: 36px; height: 5px; border-radius: 3px; background: rgba(255,255,255,.3); margin: 0 auto 16px; }
  .lb-actions { gap: 4px; }
  .lb-btn { width: 38px; height: 38px; }
  .lb-btn[data-lb="zoom"] { display: none; }
}

/* ---------- Pop-up "Scarica" ---------- */
.dl { position: fixed; inset: 0; z-index: 70; display: flex; align-items: center; justify-content: center; padding: 20px; color: #f5f5f7; }
.dl[hidden] { display: none; }
.dl-bg { position: absolute; inset: 0; background: rgba(0,0,0,.5); opacity: 0; transition: opacity .3s var(--ease); }
.dl-card {
  position: relative; width: 100%; max-width: 440px; padding: 18px;
  background: rgba(32,32,34,.92); -webkit-backdrop-filter: blur(30px) saturate(180%); backdrop-filter: blur(30px) saturate(180%);
  border: 1px solid rgba(255,255,255,.08); border-radius: 22px; box-shadow: 0 30px 80px rgba(0,0,0,.5);
  opacity: 0; transform: scale(.96) translateY(8px); transition: opacity .3s var(--ease), transform .45s var(--ease);
}
.dl.on .dl-bg { opacity: 1; }
.dl.on .dl-card { opacity: 1; transform: none; }
.dl-handle { display: none; }
.dl-head { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.dl-thumb { width: 56px; height: 56px; border-radius: 12px; object-fit: cover; background: #333; flex: none; }
.dl-titles { flex: 1; min-width: 0; }
.dl-titles h3 { margin: 0; font-size: 19px; font-weight: 600; letter-spacing: -0.02em; }
.dl-titles p { margin: 2px 0 0; font-size: 13px; color: rgba(255,255,255,.6); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dl-x { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.1); flex: none; transition: background-color .2s; }
.dl-x:hover { background: rgba(255,255,255,.18); }
.dl-x svg { width: 16px; height: 16px; stroke-width: 2.2; }
.dl-list { border-radius: 14px; background: rgba(255,255,255,.06); overflow: hidden; }
.dl-row { display: flex; align-items: center; gap: 14px; padding: 13px 16px; cursor: pointer; transition: background-color .2s, opacity .3s; -webkit-tap-highlight-color: transparent; }
.dl-row + .dl-row { border-top: 1px solid rgba(255,255,255,.08); }
.dl-row:hover { background: rgba(255,255,255,.07); }
.dl-row:active { background: rgba(255,255,255,.12); }
.dl-row.busy { pointer-events: none; opacity: .55; }
.dl-info { flex: 1; min-width: 0; }
.dl-info strong { display: block; font-size: 15px; font-weight: 600; }
.dl-info span { display: block; font-size: 13px; color: rgba(255,255,255,.7); font-variant-numeric: tabular-nums; }
.dl-info em { display: block; font-style: normal; font-size: 12px; color: rgba(255,255,255,.45); margin-top: 1px; }
.dl-size { display: flex; align-items: center; gap: 10px; font-size: 14px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.dl-size b { font-weight: 600; }
.dl-size svg { width: 30px; height: 30px; padding: 6px; border-radius: 50%; background: var(--accent); color: #fff; stroke-width: 2.2; }
.dl-note { margin: 12px 4px 0; font-size: 12px; color: rgba(255,255,255,.45); }
@media (max-width: 600px) {
  .dl { align-items: flex-end; padding: 0; }
  .dl-card { max-width: none; border-radius: 20px 20px 0 0; padding: 10px 16px calc(18px + env(safe-area-inset-bottom)); transform: translateY(100%); }
  .dl.on .dl-card { transform: none; }
  .dl-handle { display: block; width: 36px; height: 5px; border-radius: 3px; background: rgba(255,255,255,.3); margin: 0 auto 12px; }
}

/* ---------- Avviso ---------- */
.toast {
  position: fixed; z-index: 80; left: 50%; bottom: 28px; translate: -50% 0;
  background: rgba(30,30,32,.9); color: #fff; font-size: 14px; font-weight: 500;
  padding: 10px 18px; border-radius: 980px;
  -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
  opacity: 0; transform: translateY(12px); transition: opacity .35s var(--ease), transform .35s var(--ease);
  pointer-events: none;
}
.toast.on { opacity: 1; transform: none; }

/* ---------- Schermi piccoli ---------- */
@media (max-width: 760px) {
  body { font-size: 16px; }
  .nav-links a { padding: 6px 9px; }
  .stats { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .stat { padding: 14px; }
  .stat strong { font-size: 26px; }
  .about.has-photo { grid-template-columns: 1fr; }
  .about-photo { position: static; }
  .card-media { border-radius: 14px; }
}

/* ---------- Compatibilità con tutti gli schermi ---------- */
/* Margini laterali che rispettano la "tacca" degli iPhone quando sono in orizzontale */
.nav-inner, .section, .grid-wrap, .page-head, .hero-text, .next-gal, .about, .footer, .empty {
  padding-left: max(var(--gutter), env(safe-area-inset-left));
  padding-right: max(var(--gutter), env(safe-area-inset-right));
}
.brand { min-width: 0; flex: 0 1 auto; }
.nav-links { flex: none; }
/* Pop-up sempre dentro lo schermo, anche se basso (telefoni in orizzontale) */
.dl-card { max-height: calc(100vh - 24px); max-height: calc(100dvh - 24px); overflow-y: auto; overscroll-behavior: contain; }

/* Telefoni molto stretti (es. Galaxy Fold chiuso) */
@media (max-width: 340px) {
  :root { --gutter: 14px; }
  .brand { font-size: 16px; }
  .nav-links { gap: 0; font-size: 13px; }
  .nav-links a { padding: 6px 7px; }
  .icon-btn { width: 32px; height: 32px; }
  .hero h1 { font-size: 38px; }
  .hero-cta .btn { height: 40px; padding: 0 16px; font-size: 15px; }
  .genres { grid-template-columns: 1fr; }
  .genre { aspect-ratio: 16 / 10; }
  .lb-actions { gap: 2px; }
  .lb-btn { width: 34px; height: 34px; }
  .lb-btn svg { width: 18px; height: 18px; }
  .dl-row { padding: 12px; gap: 10px; }
  .dl-size svg { display: none; }
  .stats { grid-template-columns: 1fr 1fr; }
}

/* Schermi bassi: telefoni in orizzontale */
@media (max-height: 520px) and (orientation: landscape) {
  .hero { min-height: 100vh; min-height: 100svh; }
  .hero-text { padding-bottom: 28px; }
  .hero h1 { font-size: clamp(34px, 7vw, 64px); }
  .hero-sub { margin-top: 6px; font-size: 17px; }
  .hero-eyebrow { margin-bottom: 4px; font-size: 14px; }
  .hero-cta { margin-top: 14px; }
  .hero-cta .btn { height: 38px; font-size: 15px; }
  .scroll-cue { display: none; }
  .page-head { padding-top: calc(var(--nav-h) + 32px); }
  .genre { aspect-ratio: 4 / 3; }
  .about-photo { position: static; }
}

/* Schermi molto grandi (2K, 4K, ultrawide): un po' più di respiro e foto più grandi */
@media (min-width: 2200px) {
  :root { --max: 1920px; }
  body { font-size: 19px; }
  .nav-links { font-size: 15px; }
}

/* ==========================================================================
   Dettagli grafici in stile Apple
   ========================================================================== */
:root { --hair: rgba(0,0,0,.06); --glow-a: rgba(255,159,10,.20); --glow-b: rgba(191,90,242,.18); --glow-c: rgba(10,132,255,.16); }
:root[data-theme="dark"] { --hair: rgba(255,255,255,.08); --glow-a: rgba(255,159,10,.16); --glow-b: rgba(191,90,242,.16); --glow-c: rgba(10,132,255,.14); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --hair: rgba(255,255,255,.08); --glow-a: rgba(255,159,10,.16); --glow-b: rgba(191,90,242,.16); --glow-c: rgba(10,132,255,.14); } }

/* Simbolo del diaframma accanto al nome */
.brand { display: inline-flex; align-items: center; gap: 8px; }
.logo { width: 20px; height: 20px; stroke-width: 1.6; flex: none; transition: transform .8s var(--ease); }
.brand:hover .logo, .foot-name:hover .logo { transform: rotate(60deg); }
.brand span { overflow: hidden; text-overflow: ellipsis; }

/* Etichette sopra i titoli sfumate a colori, come "Novità" di Apple */
.eyebrow {
  background: linear-gradient(90deg, #ff9f0a, #ff375f 55%, #bf5af2);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  display: inline-block;
}

/* Bagliori colorati sfocati dietro la frase grande */
.statement { position: relative; isolation: isolate; overflow: hidden; overflow: clip; overflow-clip-margin: 60px; }
/* Protezione: nessun elemento decorativo può allargare la pagina oltre lo schermo */
html, body { overflow-x: hidden; overflow-x: clip; }
.statement::before {
  content: ""; position: absolute; z-index: -1; left: 50%; top: 42%; width: min(1100px, 120vw); height: 520px; translate: -50% -50%;
  background:
    radial-gradient(closest-side at 28% 45%, var(--glow-a), transparent),
    radial-gradient(closest-side at 62% 38%, var(--glow-b), transparent),
    radial-gradient(closest-side at 50% 72%, var(--glow-c), transparent);
  filter: blur(40px); animation: glow-drift 18s ease-in-out infinite alternate; pointer-events: none;
}
@keyframes glow-drift { to { transform: translate3d(4%, -3%, 0) scale(1.08) rotate(6deg); } }

/* Riquadri dei numeri: icona e bordo luminoso sottile */
.sstat { position: relative; box-shadow: inset 0 0 0 1px var(--hair), inset 0 1px 0 rgba(255,255,255,.07); transition: transform .4s var(--ease), box-shadow .4s var(--ease); }
@media (hover: hover) { .sstat:hover { transform: translateY(-3px); box-shadow: inset 0 0 0 1px var(--hair), 0 16px 36px rgba(0,0,0,.14); } }
.sicon { display: grid; place-items: center; width: 40px; height: 40px; margin: 0 auto 12px; border-radius: 12px; color: #fff;
  background: linear-gradient(140deg, #ff9f0a, #ff375f); box-shadow: 0 6px 16px rgba(255,55,95,.28); }
.sstat:nth-child(2) .sicon { background: linear-gradient(140deg, #bf5af2, #5e5ce6); box-shadow: 0 6px 16px rgba(94,92,230,.3); }
.sstat:nth-child(3) .sicon { background: linear-gradient(140deg, #0a84ff, #64d2ff); box-shadow: 0 6px 16px rgba(10,132,255,.3); }
.sstat:nth-child(4) .sicon { background: linear-gradient(140deg, #30d158, #66d4cf); box-shadow: 0 6px 16px rgba(48,209,88,.28); }
.sicon svg { display: block; width: 22px; height: 22px; stroke-width: 1.8; color: #fff; }

/* Schede dei generi: freccia in vetro smerigliato e bordo luminoso */
.genre { box-shadow: inset 0 0 0 1px var(--hair); }
a.genre::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(255,255,255,.12); pointer-events: none; }
.genre-go {
  position: absolute; z-index: 2; top: 14px; right: 14px; width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center; color: #fff;
  background: rgba(255,255,255,.18); -webkit-backdrop-filter: blur(18px) saturate(180%); backdrop-filter: blur(18px) saturate(180%);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.22); transition: transform .4s var(--ease), background-color .3s;
}
.genre-go svg { width: 16px; height: 16px; stroke-width: 2.4; }
@media (hover: hover) { a.genre:hover .genre-go { transform: translateX(3px) scale(1.06); background: rgba(255,255,255,.3); } }

/* Carosello "Cosa fotografo": scorre SOLO a destra e a sinistra */
.carousel { overflow-y: hidden; overscroll-behavior: contain; touch-action: pan-x pan-y; }
.carousel .genre, .fb-car .fb-card { -webkit-user-drag: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.carousel img, .fb-car img { -webkit-user-drag: none; pointer-events: none; }
.fb-car { overflow-y: hidden; overscroll-behavior: contain; }

/* Pulsante del tema nel piè di pagina (sul telefono la barra in alto non ha spazio) */
.foot-theme { display: none; }
@media (max-width: 480px) {
  .nav .theme-btn { display: none; }
  .foot-theme {
    display: inline-flex; align-items: center; gap: 8px; min-height: 44px; margin-top: 14px; padding: 0 16px 0 12px;
    border-radius: 980px; background: var(--bg-2); box-shadow: inset 0 0 0 1px var(--hair); font-size: 15px; font-weight: 500;
  }
  .foot-theme svg { width: 18px; height: 18px; }
}

/* Scatto protagonista e pannelli: bordo luminoso sottile */
.spotlight, .panel, .pills li, .car-btn, .pill-btn { box-shadow: inset 0 0 0 1px var(--hair); }
.panel.gear { position: relative; isolation: isolate; }
.panel.gear::before {
  content: ""; position: absolute; z-index: -1; right: -10%; top: -30%; width: 60%; height: 120%;
  background: radial-gradient(closest-side, var(--glow-c), transparent); filter: blur(30px); pointer-events: none;
}

/* Pagine delle gallerie: la copertina sfocata dietro il titolo, come in Foto */
.head-wrap { position: relative; isolation: isolate; overflow: hidden; }
.head-bg {
  position: absolute; z-index: -1; inset: -60px -60px 0; background: center/cover no-repeat;
  filter: blur(60px) saturate(1.5); opacity: .45; transform: scale(1.1);
  -webkit-mask: linear-gradient(180deg, #000 30%, transparent); mask: linear-gradient(180deg, #000 30%, transparent);
  animation: head-in 1.6s var(--ease) both;
}
@keyframes head-in { from { opacity: 0; transform: scale(1.25); } }
.page-head .meta { gap: 10px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 14px 0 6px; border-radius: 980px;
  background: color-mix(in srgb, var(--bg-2) 70%, transparent); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  box-shadow: inset 0 0 0 1px var(--hair); font-size: 14px; font-weight: 500; color: var(--text);
}
.chip .sicon { width: 24px; height: 24px; margin: 0; border-radius: 50%; box-shadow: none; }
.chip .sicon svg { width: 14px; height: 14px; stroke-width: 2; }

/* Piè di pagina a colonne */
.foot-top { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr); gap: 32px; padding: 34px 0 30px; border-top: 1px solid var(--line); }
.foot-name { display: inline-flex; align-items: center; gap: 10px; font-size: 19px; font-weight: 600; color: var(--text); letter-spacing: -0.02em; min-height: 44px; }
.foot-name .logo { width: 22px; height: 22px; }
.foot-brand p { margin: 6px 0 0; font-size: 15px; line-height: 1.5; color: var(--text-2); letter-spacing: -0.01em; }
.foot-col { display: flex; flex-direction: column; align-items: flex-start; }
.foot-col h4 { margin: 0 0 6px; font-size: 13px; font-weight: 600; color: var(--text); letter-spacing: 0; }
.foot-col a { font-size: 14px; color: var(--text-2); padding: 7px 0; letter-spacing: -0.005em; transition: color .2s; }
.foot-col a:hover { color: var(--text); }
.footer .footer-inner { border-top: 1px solid var(--line); }
@media (max-width: 760px) {
  .foot-top { grid-template-columns: 1fr 1fr; gap: 26px 20px; }
  .foot-brand { grid-column: 1 / -1; }
  .foot-col a { display: inline-flex; align-items: center; min-height: 44px; padding: 0; font-size: 15px; }
}

/* ---------- Telefono: pulsanti comodi da toccare (almeno 44 punti, come chiede Apple) ---------- */
@media (max-width: 760px), (hover: none) {
  .brand { display: inline-flex; align-items: center; min-height: 44px; }
  .nav-links { gap: 8px; }
  .nav-links a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 10px; }
  .icon-btn { width: 44px; height: 44px; }
  .brand { font-size: 17px; gap: 7px; }
  .back { min-height: 44px; display: inline-flex; align-items: center; padding-right: 10px; margin-bottom: 8px; }
  .hero-tag { min-height: 44px; display: inline-flex; align-items: center; padding: 0 16px; font-size: 13px; }
  .pill-btn, .section-head .pill-btn { height: 44px; }
  .footer nav { gap: 6px; }
  .footer nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 10px; margin: -12px 0; }
  .lb-actions { gap: 10px; }
  .lb-btn { width: 44px; height: 44px; }
  .lb-btn svg { width: 21px; height: 21px; }
  .dl-x { position: relative; width: 36px; height: 36px; }
  .dl-x::after { content: ""; position: absolute; inset: -6px; } /* area toccabile 48 pt */
}
@media (max-width: 340px) {
  .nav-links { gap: 0; }
  .nav-links a { padding: 0 8px; }
  .icon-btn { width: 44px; height: 44px; }
  .lb-actions { gap: 6px; }
  .lb-btn { width: 42px; height: 42px; }
}

/* ---------- Movimento ridotto ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0ms !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
