/* ==========================================================================
   Luca Ronzoni Production — Design System
   Palette: bianco / grigio chiaro — linee sottili, minimalismo curato
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;1,300;1,400;1,500&family=Jost:wght@300;400;500&display=swap');

:root {
  --bg: #fafafa;
  --bg-alt: #f1f1f1;
  --bg-deep: #e3e3e3;
  --surface: #ffffff;
  --ink: #202020;
  --ink-soft: #6b6b6b;
  --ink-faint: #a3a3a3;
  --line: rgba(20, 20, 20, 0.13);
  --line-soft: rgba(20, 20, 20, 0.07);
  --line-strong: rgba(20, 20, 20, 0.28);
  --accent: #454545;
  --white: #ffffff;

  --font-display: 'Cormorant Garamond', 'Times New Roman', serif;
  --font-sans: 'Jost', 'Helvetica Neue', Arial, sans-serif;

  --ease: cubic-bezier(0.16, 0.8, 0.24, 1);
  --ease-soft: cubic-bezier(0.33, 1, 0.68, 1);
  --dur: 0.9s;

  --container: 1360px;
  --gutter: clamp(1.5rem, 5vw, 4.5rem);
}

/* ---------- Reset ---------- */
* , *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * , *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-weight: 300;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4, p { margin: 0; }

::selection { background: var(--ink); color: var(--bg); }

:focus-visible {
  outline: 1px solid var(--accent);
  outline-offset: 4px;
}

/* ---------- Typography helpers ---------- */
.eyebrow {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--ink-soft);
  font-weight: 400;
}

.display {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 300;
  color: var(--ink);
  line-height: 1.08;
}

.lede {
  font-family: var(--font-sans);
  font-weight: 300;
  color: var(--ink-soft);
  line-height: 1.75;
  max-width: 34em;
}

/* ---------- Layout ---------- */
.wrap {
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.hairline { border: none; border-top: 1px solid var(--line); margin: 0; }

/* ---------- Buttons ---------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.72rem 1.6rem;
  border: 1px solid var(--ink);
  color: var(--ink);
  background: transparent;
  font-family: var(--font-sans);
  font-size: 0.64rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 400;
  overflow: hidden;
  isolation: isolate;
  transition: color var(--dur) var(--ease);
}
.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--ink);
  transform: translateY(101%);
  transition: transform 0.6s var(--ease);
  z-index: -1;
}
.btn:hover, .btn:focus-visible { color: var(--bg); }
.btn:hover::before, .btn:focus-visible::before { transform: translateY(0); }
.btn .arrow { transition: transform 0.6s var(--ease); }
.btn:hover .arrow { transform: translateX(6px); }

.btn--light { border-color: rgba(255,255,255,0.75); color: #fff; }
.btn--light::before { background: #fff; }
.btn--light:hover, .btn--light:focus-visible { color: var(--ink); }

/* ---------- Header / Nav ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 1.6rem 0;
  transition: background var(--dur) var(--ease), padding var(--dur) var(--ease), border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.is-solid {
  background: rgba(250, 248, 244, 0.98);
  border-bottom-color: var(--line);
  padding: 1.15rem 0;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.wordmark {
  font-family: var(--font-sans);
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.86rem;
  color: #fff;
  white-space: nowrap;
  transition: color var(--dur) var(--ease);
}
.wordmark span {
  font-family: inherit;
  font-style: normal;
  font-weight: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  font-size: inherit;
}
.is-solid .wordmark,
.subpage .wordmark { color: var(--ink); }

.main-nav { display: flex; align-items: center; gap: 2.6rem; }
.main-nav a {
  font-size: 0.74rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: #fff;
  padding-bottom: 0.35rem;
  border-bottom: 1px solid transparent;
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
body:not(.subpage) .site-header:not(.is-solid) .main-nav a,
body:not(.subpage) .site-header:not(.is-solid) .wordmark { text-shadow: 0 1px 14px rgba(0,0,0,0.5); }
.is-solid .main-nav a, .subpage .main-nav a { color: var(--ink); }
.main-nav a:hover, .main-nav a.is-active { border-bottom-color: currentColor; }
.main-nav a.is-active { color: var(--accent); }

.nav-toggle {
  display: none;
  width: 30px; height: 20px;
  position: relative;
  background: none; border: none; padding: 0;
}
.nav-toggle span {
  position: absolute; left: 0; right: 0; height: 1px;
  background: #fff;
  transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease), background var(--dur) var(--ease);
}
.is-solid .nav-toggle span, .subpage .nav-toggle span { background: var(--ink); }
.nav-toggle span:first-child { top: 0; }
.nav-toggle span:last-child { bottom: 0; }
.nav-toggle.is-open span { background: var(--ink) !important; }
.nav-toggle.is-open span:first-child { transform: translateY(9.5px) rotate(45deg); }
.nav-toggle.is-open span:last-child { transform: translateY(-9.5px) rotate(-45deg); }

.mobile-nav {
  position: fixed;
  inset: 0;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 1.6rem;
  padding: 0 var(--gutter);
  transform: translateY(-100%);
  transition: transform 0.7s var(--ease);
  z-index: 90;
}
.mobile-nav.is-open { transform: translateY(0); }
.mobile-nav a {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 2.4rem;
  font-weight: 300;
  color: var(--ink);
}
.mobile-nav-social {
  display: flex; gap: 1.6rem;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  width: 100%;
}
.mobile-nav-social a {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  height: 100svh;
  min-height: 560px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--ink);
}
.hero-media {
  position: absolute;
  inset: -6% -6%;
  will-change: transform;
}
.hero-media .ph { width: 100%; height: 100%; }
.hero-media picture,
.hero-media img { width: 100%; height: 100%; display: block; object-fit: cover; }
.hero-scrim {
  position: absolute;
  inset: 0;
  /* velo scuro generale (più forte in alto, dove sta il menu, e in basso) + alone dietro al nome */
  background:
    radial-gradient(ellipse 72% 40% at 50% 46%, rgba(10,10,10,0.30) 0%, rgba(10,10,10,0) 100%),
    linear-gradient(180deg, rgba(12,12,12,0.58) 0%, rgba(12,12,12,0.38) 24%, rgba(12,12,12,0.38) 55%, rgba(12,12,12,0.80) 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 4.5rem var(--gutter) clamp(6.5rem, 14vh, 8rem);
  text-align: center;
  color: #fff;
  text-shadow: 0 2px 28px rgba(0,0,0,0.45);
}
.hero-name {
  font-family: var(--font-sans);
  font-weight: 300;
  letter-spacing: 0.36em;
  text-transform: uppercase;
  font-size: clamp(1.5rem, 5vw, 3rem);
}
.hero-name span {
  display: block;
  font-family: inherit;
  font-style: normal;
  font-weight: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  font-size: clamp(2.1rem, 7.2vw, 4.6rem);
  margin-top: 0.4rem;
}
.hero-tagline {
  margin-top: 1.4rem;
  font-size: 0.78rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.95);
  font-weight: 400;
}
.hero-tagline span { margin: 0 0.6em; opacity: 0.6; }

.scroll-cue {
  position: absolute;
  bottom: 1.6rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  color: rgba(255,255,255,0.85);
}
.scroll-cue .line {
  width: 1px; height: 32px;
  background: rgba(255,255,255,0.55);
  overflow: hidden;
  position: relative;
}
.scroll-cue .line::after {
  content: '';
  position: absolute;
  left: 0; top: -100%; width: 100%; height: 100%;
  background: #fff;
  animation: cue-drip 2.2s var(--ease-soft) infinite;
}
@keyframes cue-drip {
  0% { top: -100%; }
  60% { top: 100%; }
  100% { top: 100%; }
}
.scroll-cue span {
  font-size: 0.62rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}

/* ---------- Services zoom (GSAP: zooms in centered, scrolls large, retracts) ---------- */
.word-zoom {
  position: relative;
  height: 100vh;
  overflow: hidden;
  /* clip (a differenza di hidden) non crea un contenitore scorrevole: il focus da tastiera
     sulle parole non puo' piu' spostare di lato sfondo e indicatore. */
  overflow: clip;
  background: #f2f2f2;
  display: flex;
  align-items: center;
  justify-content: center;
}
.word-zoom-bg { position: absolute; inset: 0; z-index: 0; }
.word-zoom-bg-item {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  filter: blur(3px) saturate(0.9);
  transform: scale(1.06);
}
.word-zoom-bg-item:first-child { opacity: 1; }
/* foto verticale (insegna Relais & Chateaux con i bassotti): in schermo largo si vede la fascia con insegna e statue */
.word-zoom-bg-item:nth-child(1) { object-position: 50% 62%; }
.word-zoom-bg-item:nth-child(2) { object-position: 50% 42%; }
.word-zoom-bg-item:nth-child(3) { object-position: 50% 42%; }
.word-zoom-bg-item:nth-child(4) { object-position: 50% 43%; }
.word-zoom-scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: radial-gradient(ellipse at center, rgba(255,255,255,0.5) 0%, rgba(255,255,255,0.72) 55%, rgba(255,255,255,0.9) 100%);
}
.word-zoom-track {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: clamp(2.6rem, 6.5vw, 5.5rem);
  white-space: nowrap;
  will-change: transform, opacity;
}
.word-zoom-item {
  display: inline-block;
  font-family: var(--font-sans);
  font-weight: 400;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-size: clamp(2.2rem, 7vw, 5.6rem);
  cursor: pointer;
  background-image: linear-gradient(180deg, var(--ink) 0%, #7a7a7a 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  transition: background-image 0.3s var(--ease);
}
.word-zoom-item:hover {
  background-image: linear-gradient(180deg, var(--accent) 0%, var(--accent) 100%);
}
@media (prefers-reduced-motion: reduce) {
  .word-zoom { height: auto; padding: clamp(3rem, 8vh, 5rem) 0; }
  .word-zoom-track { flex-wrap: wrap; justify-content: center; white-space: normal; }
}

/* ---------- Section rhythm ---------- */
.section { padding: clamp(5rem, 12vh, 9rem) 0; }
.section--tight { padding: clamp(3.5rem, 8vh, 6rem) 0; }
.section-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.4rem;
  margin-bottom: clamp(3rem, 7vh, 5rem);
}
.section-head .display { font-size: clamp(2.1rem, 4.6vw, 3.4rem); }

/* ---------- Portfolio teaser (home) ---------- */
.teaser {
  position: relative;
  min-height: 84vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--ink);
}
.teaser-media { position: absolute; inset: -6%; will-change: transform; }
.teaser-media .ph { width: 100%; height: 100%; }
.teaser-media img { width: 100%; height: 100%; display: block; object-fit: cover; }
.teaser-scrim {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 62% 55% at 50% 50%, rgba(10,10,10,0.42) 0%, rgba(10,10,10,0) 100%),
    rgba(12,12,12,0.50);
}
.teaser-content {
  position: relative; z-index: 2;
  text-align: center;
  color: #fff;
  padding: 0 var(--gutter);
}
.teaser-content .eyebrow { color: rgba(255,255,255,0.75); }
.teaser-content .display {
  color: #fff;
  font-size: clamp(2.2rem, 5.4vw, 4rem);
  margin: 1.1rem 0 2rem;
}
.teaser-content .lede { color: rgba(255,255,255,0.94); margin: 0 auto 2.4rem; }
.teaser-content { text-shadow: 0 2px 24px rgba(0,0,0,0.45); }

/* ---------- Clients marquee ---------- */
.clients { background: var(--bg-alt); }
.marquee {
  overflow: hidden;
  position: relative;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 2.4rem 0;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 8%, #000 92%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 8%, #000 92%, transparent 100%);
  cursor: grab;
  touch-action: pan-y;
}
.marquee.is-dragging { cursor: grabbing; }
.marquee-track {
  display: flex;
  align-items: center;
  width: max-content;
  gap: clamp(2.5rem, 6vw, 5.5rem);
  will-change: transform;
}
.marquee-track a,
.marquee-track img { -webkit-user-drag: none; user-select: none; }
.marquee-item {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.3rem, 2.4vw, 1.9rem);
  color: var(--ink-faint);
  white-space: nowrap;
  transition: color 0.4s var(--ease);
}
.marquee-item:hover { color: var(--ink); }
/* Loghi forniti bianchi (pensati per sfondi scuri) — invert() li rende scuri
   per leggerli sulla fascia clienti, chiara. */
.marquee-item img {
  height: clamp(31px, 4vw, 45px);
  width: auto;
  filter: invert(1) opacity(0.5);
  transition: filter 0.4s var(--ease);
}
.marquee-item:hover img { filter: invert(1) opacity(1); }
/* Federale ha un logo molto orizzontale: ad altezza piena risultava troppo largo
   rispetto agli altri, quindi lo riduco solo per lui. */
.marquee-item img[src*="federale"] { height: clamp(22px, 2.8vw, 32px); }
.marquee-item img[src*="damiani"] { height: clamp(25px, 3.2vw, 36px); }
.marquee-item img[src*="relais"] { height: clamp(48px, 6vw, 70px); }
/* Together: il logo contiene anche la frase sotto, quindi serve piu' altezza per tenerla leggibile. */
.marquee-item img[src*="together"] { height: clamp(42px, 5.2vw, 62px); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--line);
}
.footer-inner {
  padding: 3.4rem 0 2.6rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.8rem;
}
.footer-brand {
  font-family: var(--font-sans);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.82rem;
  color: var(--ink);
  white-space: nowrap;
}
.footer-brand span {
  font-family: inherit;
  font-style: normal;
  font-weight: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  font-size: inherit;
  color: inherit;
}
.footer-social { display: flex; gap: 1.3rem; }
.footer-social a {
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--ink);
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.footer-social a:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.footer-social svg { width: 17px; height: 17px; }
.footer-meta {
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: var(--ink-faint);
  width: 100%;
  text-align: center;
  padding-top: 1.8rem;
  margin-top: 0.4rem;
  border-top: 1px solid var(--line-soft);
}

/* ---------- Reveal-on-scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 1.1s var(--ease), transform 1.1s var(--ease);
}
.reveal.in-view { opacity: 1; transform: none; }
.reveal-1.in-view { transition-delay: 0.08s; }
.reveal-2.in-view { transition-delay: 0.16s; }
.reveal-3.in-view { transition-delay: 0.24s; }
.reveal-4.in-view { transition-delay: 0.32s; }

/* ---------- Placeholder media blocks ---------- */
.ph {
  position: relative;
  background: linear-gradient(145deg, var(--t1, #f0f0f0) 0%, var(--t2, #d6d6d6) 48%, var(--t3, #aeaeae) 100%);
  overflow: hidden;
}
.ph::before {
  content: '';
  position: absolute; inset: 0;
  opacity: 0.5;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.35'/%3E%3C/svg%3E");
}
.ph::after {
  content: attr(data-label);
  position: absolute;
  left: 1.1rem; bottom: 1rem;
  font-family: var(--font-sans);
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(32,32,32,0.55);
}
.ph[data-tone="1"] { --t1:#f1f1f1; --t2:#dcdcdc; --t3:#b8b8b8; }
.ph[data-tone="2"] { --t1:#eaeaea; --t2:#d2d2d2; --t3:#a8a8a8; }
.ph[data-tone="3"] { --t1:#eeeeee; --t2:#d6d6d6; --t3:#9c9c9c; }
.ph[data-tone="4"] { --t1:#e4e4e4; --t2:#c6c6c6; --t3:#8e8e8e; }
.ph[data-tone="5"] { --t1:#f2f2f2; --t2:#dcdcdc; --t3:#b0b0b0; }

/* ---------- Sub-page hero (portfolio & galleries) ---------- */
.page-hero {
  position: relative;
  padding: clamp(6.5rem, 15vh, 9rem) var(--gutter) clamp(2.5rem, 6vh, 4rem);
  text-align: center;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--line);
}
.page-hero .eyebrow { justify-content: center; display: flex; }
.page-hero .display { font-size: clamp(2.6rem, 7vw, 5rem); margin-top: 1rem; }
.page-hero .display--quote {
  font-size: clamp(2rem, 4.6vw, 3.4rem);
  max-width: 46ch;
  margin-left: auto;
  margin-right: auto;
}
.page-hero .lede { margin: 1.4rem auto 0; text-align: center; }
/* Pagine di galleria (Eventi, Automotive, Reel): titolo e frase d'apertura piu' grandi */
.page-hero--lg .display { font-size: clamp(3.4rem, 10vw, 7rem); margin-top: 1.2rem; line-height: 1.02; }
.page-hero--lg .lede { font-size: clamp(1.05rem, 1.6vw, 1.3rem); max-width: 36em; margin-top: 1.8rem; }
.breadcrumb {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 1.6rem;
}
.breadcrumb:hover { color: var(--ink); }

/* ---------- Portfolio category grid ---------- */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.6rem, 3.2vw, 3rem);
}
.cat-tile {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--surface);
  display: flex;
  align-items: flex-end;
}
.cat-tile .ph {
  position: absolute; inset: 0;
  transition: transform 1.1s var(--ease);
}
.cat-tile .cat-cover {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1.1s var(--ease);
}
.cat-tile:hover .ph,
.cat-tile:hover .cat-cover { transform: scale(1.06); }
.cat-tile-scrim {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(20,20,20,0) 45%, rgba(20,20,20,0.62) 100%);
  z-index: 1;
}
.cat-tile-body {
  position: relative; z-index: 2;
  padding: 2.4rem;
  color: #fff;
  width: 100%;
}
.cat-index {
  font-size: 0.68rem; letter-spacing: 0.2em; color: rgba(255,255,255,0.7);
}
.cat-name {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.9rem, 3.4vw, 2.6rem);
  margin-top: 0.4rem;
}
.cat-link {
  display: inline-flex; align-items: center; gap: 0.6rem;
  margin-top: 1rem;
  font-size: 0.68rem; letter-spacing: 0.22em; text-transform: uppercase;
  padding-bottom: 0.3rem;
  border-bottom: 1px solid rgba(255,255,255,0.55);
}
.cat-tile:hover .cat-link .arrow { transform: translateX(5px); }
.cat-link .arrow { display: inline-block; transition: transform 0.5s var(--ease); }

/* ---------- Gallery (masonry) ---------- */
.gallery {
  columns: 3 280px;
  column-gap: 1.4rem;
}
.gallery-item {
  break-inside: avoid;
  margin-bottom: 1.4rem;
  cursor: zoom-in;
  position: relative;
}
.gallery-item .ph { transition: transform 0.9s var(--ease), filter 0.9s var(--ease); }
.gallery-item:hover .ph { transform: scale(1.015); filter: brightness(1.04); }
.gallery-item[data-ratio="portrait"] .ph { aspect-ratio: 3/4; }
.gallery-item[data-ratio="landscape"] .ph { aspect-ratio: 4/3; }
.gallery-item[data-ratio="square"] .ph { aspect-ratio: 1/1; }
.gallery-item[data-ratio="wide"] .ph { aspect-ratio: 16/9; }
/* Foto reali: nessun ratio forzato, ogni scatto mantiene le sue proporzioni naturali */
.gallery-item img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.9s var(--ease), filter 0.9s var(--ease);
}
.gallery-item:hover img { transform: scale(1.015); filter: brightness(1.04); }

/* ---------- Reel grid (vertical video cards) ---------- */
.reel-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 340px));
  justify-content: center;
  gap: 1.4rem;
}
.reel-card { position: relative; aspect-ratio: 9/16; overflow: hidden; cursor: pointer; }
.reel-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.9s var(--ease); }
.reel-card:hover img { transform: scale(1.04); }
.reel-card:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.reel-card .ph { position: absolute; inset: 0; transition: transform 0.9s var(--ease); }
.reel-card:hover .ph { transform: scale(1.04); }
.reel-play {
  position: absolute; inset: 0; z-index: 2;
  display: flex; align-items: flex-end; justify-content: center;
  padding-bottom: 2rem; /* in basso: al centro della copertina c'e' il logo */
}
.reel-play span {
  width: 52px; height: 52px;
  border: 1px solid rgba(255,255,255,0.85);
  border-radius: 50%;
  background: rgba(20,20,20,0.42);
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  transition: transform 0.5s var(--ease), background 0.5s var(--ease);
}
.reel-card:hover .reel-play span { transform: scale(1.08); background: rgba(20,20,20,0.62); }
.reel-scrim { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,20,20,0) 55%, rgba(20,20,20,0.68) 100%); z-index: 1; }
.reel-title {
  position: absolute; left: 1.2rem; bottom: 1.1rem; z-index: 2;
  color: #fff; font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase;
}

/* ---------- About / Bio ---------- */
.bio-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1fr);
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: center;
}
.bio-media { position: relative; aspect-ratio: 4 / 5; overflow: hidden; }
.bio-media .ph { width: 100%; height: 100%; }
/* Titolo, paragrafi, linea e tag condividono la stessa colonna: stessi bordi destro e sinistro */
.bio-text { max-width: 37rem; }
.bio-text .eyebrow { margin-bottom: 1.2rem; }
.bio-text .display { font-size: clamp(1.9rem, 3.6vw, 2.8rem); margin-bottom: 1.6rem; text-wrap: balance; }
.bio-text .lede { max-width: none; text-wrap: pretty; }
.bio-text p + p { margin-top: 1.2rem; }
.bio-tags {
  display: flex; flex-wrap: wrap; gap: 0.8rem;
  margin-top: 2.2rem;
  padding-top: 2.2rem;
  border-top: 1px solid var(--line);
}
.bio-tags span {
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
  padding: 0.55rem 1.1rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
}
.bio-cta { margin-top: 2.4rem; }
.google-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
  transition: color var(--dur) var(--ease);
}
.google-badge:hover { color: var(--ink); }
.google-badge .stars { color: var(--accent); letter-spacing: 0.1em; }
@media (max-width: 800px) {
  .bio-grid { grid-template-columns: 1fr; }
  .bio-media { aspect-ratio: 16/10; }
}

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 400;
  background: rgba(20, 20, 20, 0.94);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden;
  transition: opacity 0.5s var(--ease);
  padding: 5vh 5vw;
}
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox-frame {
  position: relative;
  width: min(1000px, 90vw);
  height: min(720px, 86vh);
}
.lightbox-frame .ph { position: absolute; inset: 0; width: 100%; height: 100%; }
.lightbox-frame img { width: 100%; height: 100%; object-fit: contain; display: block; }
.lightbox-frame video { display: block; margin: 0 auto; height: 100%; width: auto; max-width: 100%; aspect-ratio: 9 / 16; object-fit: contain; }
.lightbox-close, .lightbox-prev, .lightbox-next {
  position: absolute;
  background: none; border: 1px solid rgba(255,255,255,0.4);
  color: #fff; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.4s var(--ease), border-color 0.4s var(--ease);
}
.lightbox-close:hover, .lightbox-prev:hover, .lightbox-next:hover { background: rgba(255,255,255,0.12); border-color: rgba(255,255,255,0.8); }
.lightbox-close { top: 1.5rem; right: 1.5rem; width: 40px; height: 40px; }
.lightbox-prev, .lightbox-next { top: 50%; transform: translateY(-50%); width: 44px; height: 44px; }
.lightbox-prev { left: max(1rem, 2vw); }
.lightbox-next { right: max(1rem, 2vw); }
@media (max-width: 640px) {
  .lightbox-prev { left: 0.2rem; }
  .lightbox-next { right: 0.2rem; }
}

/* ---------- Legal pages (Privacy / Cookie / Note legali) ---------- */
.legal-content {
  max-width: 42em;
  margin: 0 auto;
}
.legal-content h2 {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.4rem, 2.6vw, 1.9rem);
  color: var(--ink);
  margin-top: 3rem;
}
.legal-content h2:first-child { margin-top: 0; }
.legal-content p, .legal-content li {
  font-family: var(--font-sans);
  font-weight: 300;
  color: var(--ink-soft);
  line-height: 1.8;
  margin-top: 1.1rem;
}
.legal-content ul { margin-top: 1.1rem; padding-left: 1.3rem; }
.legal-content li { margin-top: 0.5rem; list-style: disc; }
.legal-content a { color: var(--ink); border-bottom: 1px solid var(--line-strong); transition: color 0.3s var(--ease), border-color 0.3s var(--ease); }
.legal-content a:hover { color: var(--accent); border-color: var(--accent); }
.legal-content strong { font-weight: 500; color: var(--ink); }
.legal-note {
  margin-top: 3rem;
  padding: 1.4rem 1.6rem;
  border: 1px solid var(--line);
  font-size: 0.82rem;
  color: var(--ink-faint);
  line-height: 1.7;
}

/* ---------- Footer legal links ---------- */
.footer-legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1.4rem;
  margin-top: 0.9rem;
  padding-top: 0.9rem;
  border-top: 1px solid var(--line-soft);
}
.footer-legal a {
  font-size: 0.66rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-faint);
  transition: color 0.3s var(--ease);
}
.footer-legal a:hover { color: var(--ink); }
.footer-legal a.is-active { color: var(--accent); }

/* ---------- Cookie consent banner ---------- */
.cookie-banner {
  position: fixed;
  left: 1.2rem; right: 1.2rem; bottom: 1.2rem;
  z-index: 300;
  max-width: 560px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  box-shadow: 0 12px 40px rgba(0,0,0,0.12);
  padding: 1.6rem 1.8rem;
  transform: translateY(140%);
  transition: transform 0.6s var(--ease);
}
.cookie-banner.is-visible { transform: translateY(0); }
.cookie-banner p {
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: 0.82rem;
  line-height: 1.65;
  color: var(--ink-soft);
}
.cookie-banner a { color: var(--ink); border-bottom: 1px solid var(--line-strong); }
.cookie-banner a:hover { color: var(--accent); border-color: var(--accent); }
.cookie-banner-actions {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  margin-top: 1.2rem;
}
.cookie-banner .btn { padding: 0.62rem 1.4rem; font-size: 0.62rem; }
.cookie-banner-dismiss {
  background: none; border: none; padding: 0;
  font-family: var(--font-sans);
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-faint);
  border-bottom: 1px solid transparent;
  transition: color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.cookie-banner-dismiss:hover { color: var(--ink); border-color: var(--ink); }
@media (max-width: 560px) {
  .cookie-banner { left: 0.8rem; right: 0.8rem; bottom: 0.8rem; padding: 1.1rem 1.3rem; }
  .cookie-banner p { font-size: 0.74rem; line-height: 1.55; }
  .cookie-banner-actions { margin-top: 0.9rem; gap: 1.1rem; }
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .main-nav { display: none; }
  .nav-toggle { display: block; }
  .cat-grid { grid-template-columns: 1fr; }
  .gallery { columns: 2 200px; }
  .footer-inner { justify-content: center; text-align: center; }
}
@media (max-width: 560px) {
  .gallery { columns: 1; }
  .hero-tagline { font-size: 0.68rem; letter-spacing: 0.2em; }
  .hero-tagline span { margin: 0 0.4em; }
  .wordmark { font-size: 0.62rem; letter-spacing: 0.1em; }
}
