/* ==========================================================================
   Lucio Ciccarone — Photography · Films · Creative
   Design system: ultra-minimal, bianco e nero, tipografia elegante.
   ========================================================================== */

@import url('https://api.fontshare.com/v2/css?f[]=switzer@400,500,600&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Instrument+Serif:ital@0;1&display=swap');

:root{
  /* Colori letterali — NON cambiano mai col tema.
     Servono alla hero (sempre scura, sta sopra le foto) e al cursore
     a diaframma (che usa mix-blend-mode: difference). */
  --white:  #ffffff;
  --black:  #0a0a0a;

  /* Token semantici — questi si invertono nel tema scuro.
     --bg    = sfondo pagina
     --fg    = testo e blocchi pieni
     --on-fg = testo che sta SOPRA un blocco pieno color --fg
     --ink-* = --fg a varie opacità (gerarchia del testo, bordi) */
  --bg:      #ffffff;
  --surface: #fafafa;
  --fg:      #0a0a0a;
  --on-fg:   #ffffff;
  --ink-70: rgba(10,10,10,.7);
  --ink-50: rgba(10,10,10,.5);
  --ink-30: rgba(10,10,10,.3);
  --ink-12: rgba(10,10,10,.12);
  --ink-06: rgba(10,10,10,.06);

  --serif: 'Instrument Serif', 'Iowan Old Style', 'Palatino Linotype', serif;
  --sans:  'Switzer', 'Helvetica Neue', Arial, sans-serif;

  --container: 1280px;
  --nav-h: 100px;

  --ease: cubic-bezier(.22,.68,0,1);

  color-scheme: light;
}

/* Tema scuro: nero pieno stanca l'occhio e schiaccia le foto, quindi
   sfondo grafite e testo bianco caldo appena smorzato. */
:root[data-theme="dark"]{
  --bg:      #101010;
  --surface: #191919;
  --fg:      #f4f2ee;
  --on-fg:   #101010;
  --ink-70: rgba(244,242,238,.72);
  --ink-50: rgba(244,242,238,.52);
  --ink-30: rgba(244,242,238,.34);
  --ink-12: rgba(244,242,238,.16);
  --ink-06: rgba(244,242,238,.08);

  color-scheme: dark;
}

/* i colori del tema si dissolvono invece di scattare */
body, .site-header, .service-card, .site-footer, .scroll-divider a,
.bio-portrait, .ig-tile, .field input, .field select, .field textarea{
  transition: background-color .5s var(--ease), color .5s var(--ease), border-color .5s var(--ease);
}

*, *::before, *::after{ box-sizing: border-box; }
/* Lo scroll fluido è gestito da Lenis (js/effects.js); "scroll-behavior: smooth"
   nativo qui creerebbe un conflitto/doppio-smoothing con Lenis. */
html.lenis, html.lenis body{ height: auto; }
html.lenis.lenis-smooth{ scroll-behavior: auto !important; }
html.lenis.lenis-stopped{ overflow: hidden; }

body{
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

.container{
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 56px;
}

.eyebrow{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--ink-50);
}
.eyebrow::before{
  content:"";
  width: 22px; height: 1px;
  background: var(--fg);
}

h1,h2,h3,h4{
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.04;
  margin: 0;
  color: var(--fg);
  letter-spacing: -0.01em;
}

.italic{ font-style: italic; }

p{ margin: 0; }

/* ==========================================================================
   Buttons & links
   ========================================================================== */

.btn{
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 16px 28px;
  border: 1px solid var(--fg);
  border-radius: 0;
  background: transparent;
  transition: background .35s var(--ease), color .35s var(--ease), transform .35s var(--ease);
}
.btn svg{ width: 14px; height: 14px; transition: transform .35s var(--ease); }
.btn:hover{ background: var(--fg); color: var(--on-fg); transform: translateY(-2px); }
.btn:hover svg{ transform: translate(3px,-3px); }

@keyframes traceIn{ from{ stroke-dashoffset: 1; } to{ stroke-dashoffset: 0; } }

/* la freccia diagonale nei bottoni si disegna quando entra in vista */
.btn svg path{
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  transition: stroke-dashoffset 1.8s var(--ease) .5s;
}
[data-reveal].is-visible .btn svg path{ stroke-dashoffset: 0; }
.nav-cta svg path{ stroke-dashoffset: 0; transition: none; }
.hero .btn svg path{ animation: traceIn 1.6s var(--ease) 2.6s both; }

/* icone decorative che si tracciano quando la sezione entra in vista
   (non al caricamento pagina — dipendono da [data-reveal].is-visible,
   aggiunta dall'IntersectionObserver in js/main.js solo allo scroll) */
.draw-icon *{
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  transition: stroke-dashoffset 2.3s var(--ease) .2s;
}
[data-reveal].is-visible .draw-icon *{ stroke-dashoffset: 0; }

.btn-solid{
  background: var(--fg);
  color: var(--on-fg);
}
.btn-solid:hover{ background: var(--bg); color: var(--fg); }

.btn-ghost{
  border-color: var(--ink-30);
  color: var(--ink-70);
}
.btn-ghost:hover{ border-color: var(--fg); color: var(--on-fg); }

.text-link{
  position: relative;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding-bottom: 3px;
  background-image: linear-gradient(var(--fg), var(--fg));
  background-size: 0% 1px;
  background-repeat: no-repeat;
  background-position: left bottom;
  transition: background-size .4s var(--ease);
}
.text-link:hover{ background-size: 100% 1px; }

/* ==========================================================================
   Navigation
   ========================================================================== */

.site-header{
  position: sticky;
  top: 0; left: 0; right: 0;
  z-index: 900;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  background: var(--bg);
  transition: border-color .4s var(--ease), box-shadow .4s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled{ border-color: var(--ink-12); }

/* barra di scroll sottilissima, ancorata al fondo della nav */
.scroll-progress{
  position: absolute;
  left: 0; bottom: 0;
  height: 2px;
  width: 100%;
  background: var(--fg);
  transform: scaleX(0);
  transform-origin: left;
  will-change: transform;
}
.site-header .container{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.brand{ display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.brand img{ width: 220px; height: auto; }

/* Il logo è artwork nero su trasparente: nel tema scuro sparirebbe,
   quindi lo invertiamo in bianco. (Quello della hero è già la versione
   bianca e la hero resta scura in entrambi i temi, quindi non si tocca.) */
:root[data-theme="dark"] .brand img,
:root[data-theme="dark"] .footer-brand img{ filter: invert(1); }

/* ==========================================================================
   Selettore lingua IT / EN
   ========================================================================== */

.lang-switch{
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.lang-switch a{
  color: var(--ink-30);
  transition: color .3s var(--ease);
}
.lang-switch a:hover{ color: var(--fg); }
.lang-switch a.is-current{ color: var(--fg); }
.lang-switch .sep{ color: var(--ink-12); }

/* ==========================================================================
   Switcher tema sole/luna
   ========================================================================== */

.theme-toggle{
  position: relative;
  width: 38px; height: 38px;
  flex-shrink: 0;
  border: 1px solid var(--ink-12);
  border-radius: 50%;
  background: transparent;
  color: var(--fg);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color .3s var(--ease), transform .3s var(--ease);
}
.theme-toggle:hover{ border-color: var(--fg); transform: rotate(18deg); }
.theme-toggle svg{
  position: absolute;
  width: 17px; height: 17px;
  transition: opacity .4s var(--ease), transform .5s var(--ease);
}
/* chiaro: mostra la luna (cosa ottieni cliccando) */
.theme-toggle .icon-moon{ opacity: 1; transform: rotate(0) scale(1); }
.theme-toggle .icon-sun{ opacity: 0; transform: rotate(-90deg) scale(.5); }
/* scuro: mostra il sole */
:root[data-theme="dark"] .theme-toggle .icon-moon{ opacity: 0; transform: rotate(90deg) scale(.5); }
:root[data-theme="dark"] .theme-toggle .icon-sun{ opacity: 1; transform: rotate(0) scale(1); }

.nav-links{
  display: flex;
  align-items: center;
  gap: 30px;
  flex-shrink: 0;
}
.nav-links a{
  position: relative;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--ink-70);
  transition: color .3s var(--ease);
}
.nav-links a::after{
  content:"";
  position: absolute;
  left: 0; right: 0; bottom: -6px;
  height: 1px;
  background: var(--fg);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .35s var(--ease);
}
.nav-links a:hover,
.nav-links a.is-active{ color: var(--fg); }
.nav-links a:hover::after,
.nav-links a.is-active::after{ transform: scaleX(1); }

.nav-links a.nav-cta{
  color: var(--on-fg);
  padding: 11px 22px;
  font-size: 12px;
}
.nav-links a.nav-cta::after{ display: none; }
.nav-links a.nav-cta:hover{ color: var(--fg); }

.nav-toggle{
  display: none;
  width: 30px; height: 22px;
  position: relative;
  background: none; border: none;
  z-index: 1000;
}
.nav-toggle span{
  position: absolute; left: 0; right: 0;
  height: 1px; background: var(--fg);
  transition: transform .35s var(--ease), opacity .3s var(--ease), top .35s var(--ease);
}
.nav-toggle span:nth-child(1){ top: 0; }
.nav-toggle span:nth-child(2){ top: 10px; }
.nav-toggle span:nth-child(3){ top: 20px; }
.nav-toggle.is-open span:nth-child(1){ top: 10px; transform: rotate(45deg); }
.nav-toggle.is-open span:nth-child(2){ opacity: 0; }
.nav-toggle.is-open span:nth-child(3){ top: 10px; transform: rotate(-45deg); }

/* ==========================================================================
   Reveal-on-scroll
   ========================================================================== */

[data-reveal]{
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .9s var(--ease), transform .9s var(--ease);
}
[data-reveal].is-visible{ opacity: 1; transform: none; }

/* i titoli si "mettono a fuoco" mentre entrano in vista, come un obiettivo */
[data-reveal] h2{
  filter: blur(16px);
  transition: filter 1.9s var(--ease) .1s;
}
[data-reveal].is-visible h2{ filter: blur(0); }
[data-reveal-delay="1"]{ transition-delay: .1s; }
[data-reveal-delay="2"]{ transition-delay: .2s; }
[data-reveal-delay="3"]{ transition-delay: .3s; }
[data-reveal-delay="4"]{ transition-delay: .4s; }

/* ==========================================================================
   Hero
   ========================================================================== */

.hero{
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--black);
  color: var(--white);
  text-align: center;
}

/* rotating photo background, populated live from the Instagram feed.
   Oversized + offset so the parallax translate (js/effects.js) never
   reveals an edge; .hero's own overflow:hidden clips the rest. */
.hero-bg{
  position: absolute;
  top: -18%; left: 0; right: 0;
  height: 136%;
  z-index: 0;
  background: var(--black);
  will-change: transform;
}
.hero-bg-slide{
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center 22%;
  opacity: 0;
  transition: opacity 1.8s var(--ease);
}
.hero-bg-slide.is-active{ opacity: 1; }
.hero-scrim{
  position: absolute; inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(10,10,10,.6) 0%, rgba(10,10,10,.35) 45%, rgba(10,10,10,.68) 100%);
  pointer-events: none;
}

.hero .container{
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-kicker{
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 40px;
}
.hero-kicker .dot{
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--white);
}
.hero-kicker span{
  font-size: 12px; font-weight: 600;
  letter-spacing: .2em; text-transform: uppercase;
  color: rgba(255,255,255,.75);
}

.hero-logo{
  width: min(90vw, 480px);
  height: auto;
  animation: riseIn 2.4s var(--ease) both .15s;
}
@keyframes riseIn{
  from{ opacity: 0; transform: translateY(24px); filter: blur(14px); }
  to{ opacity: 1; transform: translateY(0); filter: blur(0); }
}

.hero-actions{
  margin-top: 56px;
  display: flex;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
  justify-content: center;
}
.hero .btn-solid{ background: var(--white); color: var(--black); border-color: var(--white); }
.hero .btn-solid:hover{ background: transparent; color: var(--white); }
.hero .text-link{
  color: var(--white);
  background-image: linear-gradient(var(--white), var(--white));
}

.hero-scroll{
  position: absolute;
  bottom: 40px; left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(255,255,255,.7);
}
.hero-scroll .line-anim{
  width: 1px; height: 46px;
  background: rgba(255,255,255,.25);
  position: relative;
  overflow: hidden;
}
.hero-scroll .line-anim::after{
  content:"";
  position: absolute; left: 0; top: -100%;
  width: 100%; height: 100%;
  background: var(--white);
  animation: drip 2.2s ease-in-out infinite;
}
@keyframes drip{
  0%{ top: -100%; }
  60%{ top: 100%; }
  100%{ top: 100%; }
}

/* ==========================================================================
   Section scaffolding
   ========================================================================== */

section{ position: relative; }
.section{ padding: 190px 0; }
.section-tight{ padding: 130px 0; }
.section-head{
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 60px;
  margin-bottom: 88px;
}
.section-head h2{ font-size: clamp(2.1rem, 4vw, 3.4rem); margin-top: 24px; }
.section-head .lede{
  max-width: 34ch;
  color: var(--ink-70);
  font-size: 16px;
  padding-bottom: 6px;
}

.border-top{ border-top: 1px solid var(--ink-12); }

.rule{
  height: 1px;
  background: var(--ink-12);
  border: none;
  margin: 0;
}

/* ==========================================================================
   Philosophy strip
   ========================================================================== */

.philosophy{
  display: grid;
  grid-template-columns: .8fr 1.5fr;
  gap: 110px;
  align-items: center;
}
.philosophy-mark{
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.philosophy-mark img{ width: 100%; max-width: 180px; opacity: .9; }
.philosophy blockquote{
  margin: 0;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.6rem, 3vw, 2.6rem);
  line-height: 1.38;
  color: var(--fg);
}
.philosophy cite{
  display: block;
  margin-top: 28px;
  font-style: normal;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-50);
}

/* ==========================================================================
   Instagram-synced gallery module
   ========================================================================== */

.ig-module{ position: relative; }
.ig-head{
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 88px;
  flex-wrap: wrap;
}
.ig-head-title{ display: flex; align-items: center; gap: 16px; margin-top: 22px; }
.ig-head-title svg{ width: 28px; height: 28px; color: var(--fg); }
/* pallino pulsante riutilizzabile — indicatore "live" */
.pulse{
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--fg);
  position: relative;
  flex-shrink: 0;
}
.pulse::after{
  content:"";
  position: absolute; inset: -5px;
  border-radius: 50%;
  border: 1px solid var(--fg);
  animation: pulse 2.4s ease-out infinite;
}
@keyframes pulse{
  0%{ transform: scale(.5); opacity: .7; }
  100%{ transform: scale(2.2); opacity: 0; }
}

.ig-followers{ margin-top: 8px; font-size: 13px; color: var(--ink-50); }

.ig-grid{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.ig-grid.ig-grid--wide{ grid-template-columns: repeat(3, 1fr); gap: 28px; }
.ig-tile{
  display: block;
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--ink-06);
}
.ig-tile img{
  width: 100%; height: 100%; object-fit: cover;
  /* "sviluppo Polaroid": la foto entra sovraesposta/slavata e si sviluppa
     al colore naturale quando la griglia entra in vista. */
  filter: brightness(1.9) saturate(0) blur(7px);
  transition: transform .7s var(--ease), filter 2.5s var(--ease);
}
.ig-tile:hover img{ transform: scale(1.06); }
.ig-tile::after{
  content:"";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,10,10,0) 55%, rgba(10,10,10,.55));
  opacity: 0;
  transition: opacity .4s var(--ease);
}
.ig-tile:hover::after{ opacity: 1; }
.ig-tile .ig-icon{
  /* al centro della foto, non in un angolo: così non collide mai con le
     staffe da mirino, che restano libere sui quattro angoli. */
  position: absolute; top: 50%; left: 50%;
  width: 22px; height: 22px;
  color: #fff;
  opacity: 0;
  transform: translate(-50%,-50%) scale(.7);
  transition: opacity .35s var(--ease), transform .35s var(--ease);
  z-index: 3;
}
.ig-tile:hover .ig-icon{ opacity: 1; transform: translate(-50%,-50%) scale(1); }

/* tendina a otturatore: copre la foto finché la griglia non entra in vista,
   poi si apre lateralmente rivelandola. */
.ig-tile::before{
  content:"";
  position: absolute; inset: 0;
  /* colore dello sfondo pagina, non del testo: così la tendina sembra
     la foto che si materializza, non un pannello che lampeggia */
  background: var(--bg);
  transform-origin: right;
  transform: scaleX(1);
  transition: transform 1.3s cubic-bezier(.65,0,.35,1);
  z-index: 2;
  pointer-events: none;
}
.ig-grid.is-visible .ig-tile::before{ transform: scaleX(0); }

/* staffe da mirino: si materializzano attorno alla foto in hover */
.ig-tile .corner{
  position: absolute;
  width: 16px; height: 16px;
  border: 0 solid #fff;
  opacity: 0;
  z-index: 3;
  transition: opacity .35s var(--ease), transform .35s var(--ease);
}
.ig-tile .corner-tl{ top: 10px; left: 10px; border-top-width: 1.5px; border-left-width: 1.5px; transform: translate(5px,5px); }
.ig-tile .corner-tr{ top: 10px; right: 10px; border-top-width: 1.5px; border-right-width: 1.5px; transform: translate(-5px,5px); }
.ig-tile .corner-bl{ bottom: 10px; left: 10px; border-bottom-width: 1.5px; border-left-width: 1.5px; transform: translate(5px,-5px); }
.ig-tile .corner-br{ bottom: 10px; right: 10px; border-bottom-width: 1.5px; border-right-width: 1.5px; transform: translate(-5px,-5px); }
.ig-tile:hover .corner{ opacity: .85; transform: none; }

/* sequenza a cascata: ogni tessera si apre con un piccolo ritardo in più */
.ig-grid.is-visible .ig-tile:nth-child(1)::before{ transition-delay: .00s; }
.ig-grid.is-visible .ig-tile:nth-child(2)::before{ transition-delay: .15s; }
.ig-grid.is-visible .ig-tile:nth-child(3)::before{ transition-delay: .30s; }
.ig-grid.is-visible .ig-tile:nth-child(4)::before{ transition-delay: .45s; }
.ig-grid.is-visible .ig-tile:nth-child(5)::before{ transition-delay: .60s; }
.ig-grid.is-visible .ig-tile:nth-child(6)::before{ transition-delay: .75s; }
.ig-grid.is-visible .ig-tile:nth-child(7)::before{ transition-delay: .90s; }
.ig-grid.is-visible .ig-tile:nth-child(8)::before{ transition-delay: 1.05s; }
.ig-grid.is-visible .ig-tile:nth-child(9)::before{ transition-delay: 1.20s; }
.ig-grid.is-visible .ig-tile:nth-child(10)::before{ transition-delay: 1.35s; }
.ig-grid.is-visible .ig-tile:nth-child(11)::before{ transition-delay: 1.50s; }
.ig-grid.is-visible .ig-tile:nth-child(12)::before{ transition-delay: 1.65s; }

.ig-grid.is-visible .ig-tile:nth-child(1) img{ transition-delay: .30s; }
.ig-grid.is-visible .ig-tile:nth-child(2) img{ transition-delay: .45s; }
.ig-grid.is-visible .ig-tile:nth-child(3) img{ transition-delay: .60s; }
.ig-grid.is-visible .ig-tile:nth-child(4) img{ transition-delay: .75s; }
.ig-grid.is-visible .ig-tile:nth-child(5) img{ transition-delay: .90s; }
.ig-grid.is-visible .ig-tile:nth-child(6) img{ transition-delay: 1.05s; }
.ig-grid.is-visible .ig-tile:nth-child(7) img{ transition-delay: 1.20s; }
.ig-grid.is-visible .ig-tile:nth-child(8) img{ transition-delay: 1.35s; }
.ig-grid.is-visible .ig-tile:nth-child(9) img{ transition-delay: 1.50s; }
.ig-grid.is-visible .ig-tile:nth-child(10) img{ transition-delay: 1.65s; }
.ig-grid.is-visible .ig-tile:nth-child(11) img{ transition-delay: 1.80s; }
.ig-grid.is-visible .ig-tile:nth-child(12) img{ transition-delay: 1.95s; }
.ig-grid.is-visible .ig-tile img{ filter: brightness(1) saturate(1) blur(0); }

/* placeholder state, shown until the live feed is connected */
.ig-tile--empty{
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    repeating-linear-gradient(135deg, var(--ink-06) 0 2px, transparent 2px 14px),
    var(--surface);
}
.ig-tile--empty svg{ width: 24px; height: 24px; color: var(--ink-30); }

.ig-fallback-note{
  margin-top: 28px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: var(--ink-50);
}
.ig-fallback-note svg{ width: 16px; height: 16px; flex-shrink: 0; }

/* ==========================================================================
   Services teaser / cards
   ========================================================================== */

.service-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.service-card{
  background: var(--bg);
  border: 1px solid var(--ink-12);
  padding: 64px 44px;
  display: flex;
  flex-direction: column;
  min-height: 360px;
  transition: border-color .4s var(--ease);
}
.service-card:hover{ border-color: var(--fg); }
.service-card .num{
  font-family: var(--serif);
  font-style: italic;
  font-size: 14px;
  color: var(--ink-50);
  margin-bottom: 36px;
}
.service-card h3{ font-size: 1.7rem; margin-bottom: 20px; }
.service-card p{ color: var(--ink-70); font-size: 15px; line-height: 1.7; flex-grow: 1; }
.service-card .text-link{ margin-top: 32px; align-self: flex-start; }

/* ==========================================================================
   CTA band
   ========================================================================== */

.cta-band{
  padding: 130px 0;
  text-align: center;
  border-top: 1px solid var(--ink-12);
}
.cta-band h2{
  font-size: clamp(2.2rem, 5.5vw, 4.4rem);
  max-width: 18ch;
  margin: 0 auto 44px;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer{
  background: var(--bg);
  color: var(--fg);
  padding: 120px 0 40px;
  border-top: 1px solid var(--ink-12);
}
.footer-top{
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 60px;
  padding-bottom: 90px;
}
.footer-brand img{ width: 240px; height: auto; margin-bottom: 26px; }
.footer-brand p{ color: var(--ink-50); font-size: 14.5px; max-width: 32ch; }
.footer-col h4{
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-50);
  margin-bottom: 28px;
}
.footer-col ul{ display: flex; flex-direction: column; gap: 16px; }
.footer-col a{
  font-size: 14.5px;
  color: var(--ink-70);
  transition: color .3s var(--ease);
}
.footer-col a:hover{ color: var(--fg); }
.footer-social{ display: flex; gap: 14px; margin-top: 4px; }
.footer-social a{
  width: 40px; height: 40px;
  border: 1px solid var(--ink-12);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: border-color .3s var(--ease), background .3s var(--ease), color .3s var(--ease);
}
.footer-social a:hover{ border-color: var(--fg); background: var(--fg); color: var(--on-fg); }
.footer-social svg{ width: 16px; height: 16px; }

.footer-bottom{
  padding-top: 30px;
  border-top: 1px solid var(--ink-12);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--ink-50);
  letter-spacing: .02em;
}

/* ==========================================================================
   Inner page header (used on legal pages)
   ========================================================================== */

.page-header{ padding: 90px 0 80px; }
.page-header h1{ font-size: clamp(2.6rem, 6vw, 4.6rem); margin-top: 20px; }
.page-header .lede{
  margin-top: 24px;
  max-width: 56ch;
  font-size: 17px;
  color: var(--ink-70);
}

/* ==========================================================================
   Chi sono
   ========================================================================== */

.bio-layout{
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 110px;
  align-items: start;
}
.bio-portrait{
  position: sticky;
  top: calc(var(--nav-h) + 40px);
  aspect-ratio: 4/5;
  background: var(--surface);
  border: 1px solid var(--ink-12);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.bio-portrait img{ width: 100%; height: 100%; object-fit: cover; }
.bio-portrait .placeholder-fill{
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  color: var(--ink-30); text-align: center; padding: 30px;
}
.bio-portrait .placeholder-fill svg{ width: 32px; height: 32px; }
.bio-portrait .placeholder-fill span{ font-size: 12px; letter-spacing: .05em; }

.bio-copy p{ color: var(--ink-70); font-size: 17px; line-height: 1.75; margin-bottom: 30px; }
.bio-copy p:last-child{ margin-bottom: 0; }
.bio-copy .drop-cap:first-letter{
  font-family: var(--serif);
  font-size: 3.6rem;
  float: left;
  line-height: .8;
  padding: 6px 10px 0 0;
  color: var(--fg);
  font-style: italic;
}

.facts-row{
  margin-top: 76px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--ink-12);
  border-bottom: 1px solid var(--ink-12);
}
.fact{
  padding: 44px 36px;
  border-right: 1px solid var(--ink-12);
}
.fact:first-child{ padding-left: 0; }
.fact:last-child{ border-right: none; padding-right: 0; }
.fact h3{
  font-size: 1.15rem;
  font-style: italic;
  font-weight: 400;
  margin-bottom: 12px;
}
.fact p{ font-size: 13px; line-height: 1.6; color: var(--ink-50); }

/* ==========================================================================
   Servizi
   ========================================================================== */

.services-minimal{
  border-top: 1px solid var(--ink-12);
}
.service-row{
  display: grid;
  grid-template-columns: 56px 1fr 1.6fr;
  gap: 40px;
  align-items: baseline;
  padding: 40px 0;
  border-bottom: 1px solid var(--ink-12);
}
.service-num{
  font-family: var(--serif);
  font-style: italic;
  color: var(--ink-50);
  font-size: 14px;
}
.service-row h3{ font-size: 1.6rem; }
.service-row p{ color: var(--ink-70); font-size: 15px; }

.services-note{
  margin-top: 32px;
  font-size: 13.5px;
  color: var(--ink-50);
}

/* ==========================================================================
   Recensioni Google
   ========================================================================== */

.reviews-score{
  display: flex;
  align-items: baseline;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 22px;
}
.reviews-score .score{
  font-family: var(--serif);
  font-size: 2.6rem;
  line-height: 1;
}
.reviews-stars{ display: inline-flex; gap: 3px; }
.reviews-stars svg{ width: 15px; height: 15px; fill: var(--fg); }
.reviews-count{ font-size: 13.5px; color: var(--ink-50); }

.reviews-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 64px;
}
.review{
  border-top: 1px solid var(--ink-12);
  padding-top: 30px;
  display: flex;
  flex-direction: column;
}
.review .reviews-stars{ margin-bottom: 22px; }
.review blockquote{
  margin: 0;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.28rem;
  line-height: 1.5;
  color: var(--fg);
  flex-grow: 1;
}
.review .review-by{
  margin-top: 26px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-50);
}

.reviews-note{
  margin-top: 44px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 13px;
  color: var(--ink-50);
}
.reviews-note svg{ width: 16px; height: 16px; flex-shrink: 0; margin-top: 2px; }

/* ==========================================================================
   Contatti
   ========================================================================== */

.contact-layout{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 110px;
}
.contact-info-list{ display: flex; flex-direction: column; gap: 42px; }
.contact-info-item{ display: flex; gap: 20px; }
.contact-info-item .icon{
  width: 46px; height: 46px; flex-shrink: 0;
  border: 1px solid var(--ink-12);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.contact-info-item .icon svg{ width: 18px; height: 18px; color: var(--fg); }
.contact-info-item h4{
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-50);
  margin-bottom: 6px;
}
.contact-info-item a, .contact-info-item p{ font-size: 16.5px; }

.field{ margin-bottom: 32px; }
.field label{
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-50);
  margin-bottom: 10px;
}
.field input, .field select, .field textarea{
  width: 100%;
  border: none;
  border-bottom: 1px solid var(--ink-12);
  background: transparent;
  padding: 12px 2px;
  font-family: var(--sans);
  font-size: 15.5px;
  color: var(--fg);
  transition: border-color .3s var(--ease);
}
.field input:focus, .field select:focus, .field textarea:focus{
  outline: none;
  border-color: var(--fg);
}
.field textarea{ resize: vertical; min-height: 110px; }
.field-row{ display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }

.form-note{
  margin-top: 20px;
  font-size: 12px;
  color: var(--ink-50);
  display: flex; gap: 10px;
}
.form-note svg{ width: 15px; height: 15px; flex-shrink: 0; margin-top: 1px; }

/* ==========================================================================
   Scroll dividers — hairline seam with a bouncing arrow between sections
   ========================================================================== */

.scroll-divider{
  position: relative;
  height: 1px;
  background: var(--ink-12);
}
.scroll-divider a{
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--bg);
  border: 1px solid var(--ink-12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-50);
  transition: border-color .35s var(--ease), color .35s var(--ease), transform .35s var(--ease);
}
.scroll-divider a svg{
  width: 16px; height: 16px;
  animation: arrowBounce 2.2s ease-in-out infinite;
}
.scroll-divider a:hover{
  border-color: var(--fg);
  color: var(--fg);
  transform: translate(-50%, -50%) scale(1.08);
}
@keyframes arrowBounce{
  0%, 100%{ transform: translateY(0); }
  50%{ transform: translateY(5px); }
}

@media (max-width: 560px){
  .scroll-divider a{ width: 38px; height: 38px; }
  .scroll-divider a svg{ width: 14px; height: 14px; }
}

/* ==========================================================================
   Cursore personalizzato (solo desktop con mouse — js/effects.js)
   ========================================================================== */

body.has-custom-cursor,
body.has-custom-cursor a,
body.has-custom-cursor button,
body.has-custom-cursor input,
body.has-custom-cursor textarea,
body.has-custom-cursor select,
body.has-custom-cursor .ig-tile{
  cursor: none;
}

.cursor-aperture{
  position: fixed;
  top: 0; left: 0;
  width: 36px; height: 36px;
  margin: -18px 0 0 -18px;
  pointer-events: none;
  z-index: 9999;
  mix-blend-mode: difference;
  opacity: 1;
  transition: opacity .3s ease;
}
.cursor-aperture svg{ width: 100%; height: 100%; display: block; overflow: visible; }

/* ogni lamella ruota attorno al proprio perno (transform-origin inline,
   calcolato per punto), come le lamelle vere di un diaframma fotografico.
   Geometria presa da un'icona reale di diaframma (6 lamelle a bordo curvo). */

/* anello fisso, sempre sopra le lamelle: "inquadra" il diaframma dall'esterno
   così il contorno resta un cerchio pulito qualunque sia l'apertura. Lo
   spessore cambia insieme alla rotazione delle lamelle — più cicciotto
   quando sono chiuse (per coprire lo spazio vuoto vicino al bordo), più
   sottile quando sono aperte (per lasciare vedere di più il pinwheel). */
/* Il bordo esterno resta fisso (r + metà spessore = sempre 24): quando lo
   spessore cresce, "mangia" solo verso il centro — il cerchio esterno non
   si allarga mai, cambia solo quanto si vede del pinwheel dentro. */
.aperture-ring{
  fill: none;
  stroke: var(--white);
  stroke-width: 8;
  r: 20;
  transition: stroke-width .45s cubic-bezier(.16,1,.3,1), r .45s cubic-bezier(.16,1,.3,1);
}

.blade{
  fill: var(--white);
  /* senza questo, Safari interpreta transform-origin in coordinate diverse
     da Chrome/Firefox (fill-box invece di view-box) e le lamelle ruotano
     attorno al perno sbagliato, uscendo dalla maschera circolare. */
  transform-box: view-box;
  transform: rotate(15deg);
  transition: transform .45s cubic-bezier(.16,1,.3,1);
}

/* hover su link/pulsanti/foto: il diaframma si apre di più */
.cursor-aperture.is-hover .blade{
  transform: rotate(38deg);
}
.cursor-aperture.is-hover .aperture-ring{
  stroke-width: 17;
  r: 15.5;
}

/* click: scatta chiuso come un otturatore, poi torna ad aprirsi */
.cursor-aperture.is-active .blade{
  transform: rotate(-3deg);
  transition: transform .12s cubic-bezier(.4,0,1,1);
}
.cursor-aperture.is-active .aperture-ring{
  stroke-width: 11;
  r: 18.5;
  transition: stroke-width .12s cubic-bezier(.4,0,1,1), r .12s cubic-bezier(.4,0,1,1);
}

/* ==========================================================================
   Floating WhatsApp button
   ========================================================================== */

.whatsapp-float{
  position: fixed;
  right: 28px; bottom: 28px;
  z-index: 950;
  width: 58px; height: 58px;
  border-radius: 50%;
  background: var(--fg);
  color: var(--on-fg);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 30px rgba(10,10,10,.22);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.whatsapp-float svg{ width: 26px; height: 26px; }
.whatsapp-float:hover{
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 14px 36px rgba(10,10,10,.3);
}
.whatsapp-float:active{ transform: translateY(-1px) scale(.98); }

@media (max-width: 560px){
  .whatsapp-float{ right: 18px; bottom: 18px; width: 52px; height: 52px; }
  .whatsapp-float svg{ width: 23px; height: 23px; }
}

/* ==========================================================================
   Utility banner (build note)
   ========================================================================== */

.build-note{
  background: var(--fg);
  color: var(--on-fg);
  font-size: 13px;
  text-align: center;
  padding: 10px 20px;
  letter-spacing: .02em;
}
.build-note b{ font-weight: 700; }
.build-note a{ text-decoration: underline; text-underline-offset: 2px; color: var(--on-fg); }

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 980px){
  .container{ padding: 0 26px; }
  .nav-links{
    position: fixed; inset: 0;
    top: var(--nav-h);
    z-index: 970;
    background: var(--bg);
    flex-direction: column;
    justify-content: center;
    gap: 34px;
    transform: translateX(100%);
    transition: transform .5s var(--ease);
  }
  .nav-links.is-open{ transform: translateX(0); }
  .nav-links a{ font-size: 22px; }
  .nav-cta{ display: none; }
  .nav-toggle{ display: block; }

  .philosophy{ grid-template-columns: 1fr; gap: 50px; }
  .philosophy-mark img{ max-width: 120px; }

  .service-grid{ grid-template-columns: 1fr; }
  .ig-grid{ grid-template-columns: repeat(2, 1fr); }
  .ig-grid.ig-grid--wide{ grid-template-columns: repeat(2, 1fr); }

  .footer-top{ grid-template-columns: 1fr 1fr; row-gap: 50px; }

  .bio-layout{ grid-template-columns: 1fr; gap: 46px; }
  .bio-portrait{ position: static; max-width: 340px; }
  .facts-row{ grid-template-columns: 1fr; }
  .fact{ border-right: none; border-bottom: 1px solid var(--ink-12); }
  .fact:last-child{ border-bottom: none; }

  .service-row{ grid-template-columns: 1fr; gap: 10px; }

  .contact-layout{ grid-template-columns: 1fr; gap: 60px; }
  .field-row{ grid-template-columns: 1fr; }
}

@media (max-width: 560px){
  .section{ padding: 90px 0; }
  .section-head{ flex-direction: column; align-items: flex-start; gap: 18px; }
  .ig-grid{ grid-template-columns: repeat(2, 1fr); }
  .ig-grid.ig-grid--wide{ grid-template-columns: 1fr; }
}
