/* =========================================================
   Matteo Gelfusa — Osteopata D.O.
   Design: Liquid Glass · Editorial · Sky/Deep-Blue palette
   ========================================================= */

/* ---------- RESET ---------- */
*,*::before,*::after{box-sizing:border-box}
html,body,h1,h2,h3,h4,p,ul,blockquote,figure{margin:0;padding:0}
ul{list-style:none}
img,picture,svg,video{display:block;max-width:100%;height:auto}
button{border:0;background:none;font:inherit;color:inherit;cursor:pointer}
a{color:inherit;text-decoration:none}
:focus-visible{outline:2px solid var(--primary);outline-offset:3px;border-radius:6px}

/* ---------- TOKENS ---------- */
:root{
  /* palette — derived from logo (sky → deep navy) + warm off-white */
  --bg:            #eff4fa;
  --bg-2:          #f7f9fc;
  --bg-cream:      #f4f0e9;
  --ink:           #0a1829;
  --ink-2:         #1b2d47;
  --ink-soft:      #3a4f6d;
  --ink-muted:     #64748b;

  --primary:       #1a5cab;
  --primary-2:     #2d78d3;
  --sky:           #77b8e0;
  --sky-soft:      #aed6ec;
  --sky-50:        #d6eaf6;
  --navy:          #0c1b2e;
  --navy-2:        #132d4d;

  --accent:        #3cb6a8;      /* dettaglio verde-acqua */
  --line:          rgba(10,24,41,.10);

  /* glass tokens */
  --glass-bg:          rgba(255,255,255,.45);
  --glass-bg-strong:   rgba(255,255,255,.62);
  --glass-border:      rgba(255,255,255,.7);
  --glass-highlight:   rgba(255,255,255,.85);
  --glass-shadow:      0 10px 40px -10px rgba(10,24,41,.18), 0 2px 6px rgba(10,24,41,.06);
  --glass-shadow-lg:   0 30px 80px -20px rgba(10,24,41,.35), 0 8px 24px rgba(10,24,41,.08);

  --glass-dark-bg:     rgba(12,27,46,.42);
  --glass-dark-border: rgba(255,255,255,.18);

  /* radii */
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-xl: 32px;
  --r-2xl: 42px;

  /* fonts */
  --f-display: "Fraunces", "Times New Roman", serif;
  --f-script:  "Cormorant Garamond", "Times New Roman", serif;
  --f-body:    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* easings */
  --ease-out: cubic-bezier(.22,.61,.36,1);
  --ease-io:  cubic-bezier(.7,0,.3,1);

  /* container */
  --container: 1280px;
  --gutter: clamp(20px, 4vw, 48px);

  /* header */
  --nav-h: 78px;
}

@media (max-width: 720px){
  :root{ --nav-h: 68px; }
}

/* ---------- BASE ---------- */
html{
  scroll-behavior:auto; /* smooth handled by Lenis */
  scroll-padding-top: calc(var(--nav-h) + 30px);
  overflow-x: clip;
  max-width: 100%;
}

body{
  font-family: var(--f-body);
  font-size: clamp(15px, 1.05vw, 17px);
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  min-height: 100vh;
  position: relative;
}

body.menu-open{ overflow:hidden; }

::selection{ background: var(--navy); color:#fff; }

.container{
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
  position: relative;
}

/* ---------- TYPOGRAPHY ---------- */
.section__title, h1, h2, h3{
  font-family: var(--f-display);
  font-weight: 400;
  line-height: 1.04;
  letter-spacing: -0.02em;
  color: var(--ink);
  font-variation-settings: "SOFT" 50, "opsz" 144;
}
h1{ font-size: clamp(3rem, 8vw, 7rem); }
.section__title{
  font-size: clamp(2.2rem, 5vw, 4.25rem);
  font-variation-settings: "SOFT" 30, "opsz" 144, "wght" 350;
}
.section__title em{
  font-style: italic;
  font-family: var(--f-display);
  font-variation-settings: "SOFT" 100, "opsz" 144, "wght" 400;
  color: var(--primary);
}
.section__title em.text-white{ color: #fff; }
.section__title--light{ color:#fff; }
.section__title--light em{ color: var(--sky-soft); }

.eyebrow{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--f-body);
  font-size: .78rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--ink-soft);
  font-weight: 500;
  margin-bottom: 20px;
}
.eyebrow::before{
  content:""; width: 32px; height: 1px;
  background: linear-gradient(to right, transparent, var(--primary));
}
.eyebrow--light{ color: rgba(255,255,255,.85); }
.eyebrow--light::before{ background: linear-gradient(to right, transparent, var(--sky-soft)); }

.prose p + p{ margin-top: 1.1em; }
.section__title + .prose{ margin-top: clamp(28px, 4vw, 52px); }
.prose strong{ font-weight: 600; color: var(--ink); }
.prose em{ font-family: var(--f-script); font-size: 1.08em; color: var(--primary); }

.bullets{
  display: grid; gap: 10px;
  margin: 1.2em 0;
}
.bullets li{
  position: relative;
  padding-left: 24px;
  color: var(--ink-soft);
}
.bullets li::before{
  content:""; position:absolute; left:0; top:.75em;
  width: 12px; height: 1px;
  background: var(--primary);
}
.bullets strong{ color: var(--ink); }

.hl{
  color: var(--primary);
  font-family: var(--f-display);
  font-style: italic;
  font-variation-settings: "SOFT" 100, "opsz" 144, "wght" 450;
}

.pullquote{
  font-family: var(--f-display);
  font-variation-settings: "SOFT" 80, "opsz" 144, "wght" 320;
  font-style: italic;
  font-size: clamp(1.4rem, 2.2vw, 2rem);
  line-height: 1.2;
  color: var(--navy);
  margin: 2.2rem 0;
  padding-left: 24px;
  border-left: 2px solid var(--primary);
  display: grid;
  gap: 4px;
}

/* ---------- BUTTONS ---------- */
.btn{
  --btn-bg: var(--primary);
  --btn-fg: #fff;
  --btn-border: transparent;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  border: 1px solid var(--btn-border);
  font-weight: 500;
  font-size: .95rem;
  letter-spacing: .005em;
  transition: transform .25s var(--ease-out), box-shadow .25s var(--ease-out), background .25s;
  position: relative;
  overflow: hidden;
  will-change: transform;
  white-space: nowrap;
}
.btn--primary{
  background: linear-gradient(135deg, var(--primary) 0%, var(--navy-2) 100%);
  box-shadow: 0 8px 24px -6px rgba(26,92,171,.55), inset 0 1px 0 rgba(255,255,255,.28);
}
.btn--primary:hover{
  transform: translateY(-2px);
  box-shadow: 0 14px 32px -8px rgba(26,92,171,.7), inset 0 1px 0 rgba(255,255,255,.35);
}
.btn--primary::before{
  content:""; position:absolute; inset:0;
  background: linear-gradient(135deg, rgba(255,255,255,.18), transparent 60%);
  pointer-events:none;
}
.btn--ghost{
  background: rgba(255,255,255,.45);
  color: var(--ink);
  border: 1px solid rgba(10,24,41,.12);
  backdrop-filter: blur(14px) saturate(180%);
  -webkit-backdrop-filter: blur(14px) saturate(180%);
}
.btn--ghost:hover{
  background: rgba(255,255,255,.75);
  transform: translateY(-2px);
  border-color: rgba(10,24,41,.2);
}
.btn--lg{ padding: 17px 28px; font-size: 1rem; }
.btn--sm{ padding: 10px 16px; font-size: .85rem; }

.link-btn{
  text-decoration: underline;
  text-underline-offset: 3px;
  color: inherit;
  padding: 0;
}

/* ---------- GLASS ---------- */
.glass{
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  box-shadow: var(--glass-shadow);
  border-radius: var(--r-lg);
  position: relative;
}
.glass::before{
  content:"";
  position:absolute; inset:0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, var(--glass-highlight) 0%, transparent 40%, transparent 60%, rgba(255,255,255,.35) 100%);
  -webkit-mask:
     linear-gradient(#000 0 0) content-box,
     linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  pointer-events: none;
  opacity: .9;
}
.glass--lg{
  box-shadow: var(--glass-shadow-lg);
  border-radius: var(--r-2xl);
}
.glass--dark{
  background: var(--glass-dark-bg);
  border: 1px solid var(--glass-dark-border);
  color: #fff;
  box-shadow: 0 20px 60px -20px rgba(0,0,0,.6);
}
.glass--dark::before{
  background: linear-gradient(135deg, rgba(255,255,255,.28) 0%, transparent 40%, transparent 60%, rgba(255,255,255,.12) 100%);
}

/* ---------- AURORA BACKGROUND ---------- */
.aurora{
  position: fixed; inset: 0;
  z-index: -1;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 20% 0%, #d6eaf6 0%, transparent 45%),
    radial-gradient(ellipse at 100% 80%, #e9e2d2 0%, transparent 50%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 50%, var(--bg) 100%);
}
.blob{
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: .55;
  will-change: transform;
}
.blob-1{ width: 520px; height: 520px; left:-10%; top:-5%;
  background: radial-gradient(circle, #7db9e0, transparent 70%); }
.blob-2{ width: 620px; height: 620px; right:-15%; top:20%;
  background: radial-gradient(circle, #a8d0e6, transparent 70%); }
.blob-3{ width: 480px; height: 480px; left:30%; top:55%;
  background: radial-gradient(circle, #c7dce8, transparent 70%); }
.blob-4{ width: 580px; height: 580px; right:-5%; bottom:-10%;
  background: radial-gradient(circle, #d8c5a5, transparent 70%); opacity: .35; }

.grain{
  position:absolute; inset:0; pointer-events:none; opacity:.06;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9'/></filter><rect width='100%' height='100%' filter='url(%23n)' opacity='0.5'/></svg>");
}
@media (max-width: 900px), (pointer: coarse){
  .aurora{
    position: absolute;
    min-height: 100%;
    background:
      radial-gradient(ellipse at 60% 0%, rgba(214,234,246,.9) 0%, transparent 52%),
      linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 52%, var(--bg) 100%);
  }
  .blob,
  .grain{
    display: none;
  }
}

/* ---------- NAV ---------- */
.nav{
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  width: 100%;
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: clamp(18px, 3vw, 32px);
  padding: 12px clamp(20px, 4vw, 48px);
  border-radius: 0;
  background: rgba(255,255,255,.62);
  border: 0;
  border-bottom: 1px solid rgba(255,255,255,.6);
  backdrop-filter: blur(22px) saturate(180%);
  -webkit-backdrop-filter: blur(22px) saturate(180%);
  box-shadow: 0 6px 24px -14px rgba(10,24,41,.14), inset 0 1px 0 rgba(255,255,255,.7);
  transition: box-shadow .35s, background .35s, padding .35s;
}
.nav.is-scrolled{
  background: rgba(255,255,255,.86);
  box-shadow: 0 10px 32px -14px rgba(10,24,41,.22), inset 0 1px 0 rgba(255,255,255,.8);
}

.nav__brand{
  display: flex; align-items: center; gap: 12px;
  padding: 2px 4px;
}
.nav__logo{ border-radius: 50%; filter: drop-shadow(0 4px 10px rgba(10,24,41,.18)); }
.nav__wordmark{ display:grid; line-height: 1; }
.nav__name{ font-family: var(--f-display); font-weight: 500; font-size: 1.08rem; font-variation-settings: "SOFT" 50,"opsz" 144; letter-spacing: -.01em; }
.nav__role{ font-size: .72rem; color: var(--ink-soft); letter-spacing: .1em; text-transform: uppercase; margin-top: 2px; }

.nav__links{
  display: flex; justify-content: center; gap: 4px;
}
.nav__links a{
  position: relative;
  padding: 8px 14px;
  font-size: .92rem;
  color: var(--ink-soft);
  border-radius: 999px;
  transition: color .25s, background .25s;
}
.nav__links a:hover{ color: var(--ink); background: rgba(255,255,255,.55); }

.nav__cta{ padding: 12px 20px; font-size: .9rem; }

.nav__burger{
  display: none;
  width: 42px; height: 42px;
  border-radius: 50%;
  background: rgba(255,255,255,.6);
  border: 1px solid rgba(10,24,41,.1);
  position: relative;
  z-index: 110;
  cursor: pointer;
}
.nav__burger span{
  position: absolute; left: 50%; top: 50%;
  width: 18px; height: 1.5px;
  background: var(--ink);
  transform: translate(-50%,-50%);
  transition: transform .35s var(--ease-out), opacity .25s;
}
.nav__burger span:nth-child(1){ transform: translate(-50%, calc(-50% - 5px)); }
.nav__burger span:nth-child(3){ transform: translate(-50%, calc(-50% + 5px)); }
body.menu-open .nav__burger span:nth-child(1){ transform: translate(-50%, -50%) rotate(45deg); }
body.menu-open .nav__burger span:nth-child(2){ opacity: 0; }
body.menu-open .nav__burger span:nth-child(3){ transform: translate(-50%, -50%) rotate(-45deg); }

@media (max-width: 1024px){
  .nav__links, .nav__cta{ display: none; }
  .nav{
    display: flex;
    justify-content: space-between;
    align-items: center;
    grid-template-columns: none;
    width: 100%;
    top: 0; left: 0; right: 0;
    transform: none;
    padding: 10px 12px 10px clamp(10px, 3vw, 18px);
    border-radius: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  .nav.is-scrolled{
    background: rgba(255,255,255,.78);
    backdrop-filter: blur(18px) saturate(180%);
    -webkit-backdrop-filter: blur(18px) saturate(180%);
    box-shadow: 0 8px 24px -14px rgba(10,24,41,.25);
  }
  /* Brand: nome più grande, ruolo centrato sotto */
  .nav__name{ font-size: 1.3rem; }
  .nav__role{ font-size: .7rem; text-align: center; }
  .nav__wordmark{ text-align: center; }
  /* Burger completamente a destra, ben visibile */
  .nav .nav__burger,
  header.nav button.nav__burger{
    display: block !important;
    width: 44px; height: 44px;
    background: rgba(255,255,255,.85);
    border: 1px solid rgba(10,24,41,.15);
    box-shadow: 0 6px 18px -10px rgba(10,24,41,.3);
    flex-shrink: 0;
    z-index: 110;
  }
  .nav__burger span{ width: 20px; height: 2px; background: var(--ink); }
}
@media (max-width: 900px), (pointer: coarse){
  .nav,
  .nav.is-scrolled{
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    transition: none;
  }
  .nav.is-scrolled{
    background: rgba(246,250,253,.96);
    box-shadow: 0 4px 16px -12px rgba(10,24,41,.22);
  }
}

/* ---------- MOBILE MENU ---------- */
.mobile-menu{
  position: fixed; inset: 0; z-index: 99;
  background: rgba(10,24,41,.92);
  backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  opacity: 0; visibility: hidden;
  transition: opacity .4s var(--ease-out), visibility 0s linear .4s;
}
.mobile-menu.is-open{
  opacity: 1; visibility: visible;
  transition: opacity .4s var(--ease-out), visibility 0s;
}
.mobile-menu__inner{
  padding: calc(var(--nav-h) + 30px) var(--gutter) 40px;
  display: grid;
  gap: 4px;
  max-width: 560px;
  margin: 0 auto;
}
/* Quando il menu è aperto: brand e burger devono essere bianchi sul navy. */
body.menu-open .nav{
  background: transparent !important;
  border: 0;
  box-shadow: none !important;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
body.menu-open .nav__name{ color: #fff; }
body.menu-open .nav__role{ color: rgba(255,255,255,.75); }
body.menu-open .nav__burger span{ background: #fff; }
.mobile-menu a{
  font-family: var(--f-display);
  font-variation-settings: "SOFT" 40,"opsz" 144;
  font-size: clamp(2rem, 7vw, 3rem);
  color: #fff;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,.12);
  transition: transform .25s, color .25s;
  opacity: 0; transform: translateY(10px);
}
.mobile-menu.is-open a{
  opacity: 1; transform: translateY(0);
  transition: opacity .5s var(--ease-out), transform .5s var(--ease-out);
}
.mobile-menu.is-open a:nth-child(1){ transition-delay: .12s; }
.mobile-menu.is-open a:nth-child(2){ transition-delay: .17s; }
.mobile-menu.is-open a:nth-child(3){ transition-delay: .22s; }
.mobile-menu.is-open a:nth-child(4){ transition-delay: .27s; }
.mobile-menu.is-open a:nth-child(5){ transition-delay: .32s; }
.mobile-menu.is-open a:nth-child(6){ transition-delay: .37s; }
.mobile-menu.is-open a:nth-child(7){ transition-delay: .42s; }

.mobile-menu__cta{
  margin-top: 20px;
  justify-content: center;
  font-size: 1rem !important;
  border-bottom: 0 !important;
  opacity: 1 !important; transform: none !important;
}

/* ---------- HERO ---------- */
.hero{
  position: relative;
  min-height: 100svh;
  padding: calc(var(--nav-h) + 28px) 0 0;
  display: block;
  overflow: hidden;
}
@media (max-width: 900px){
  .hero{
    --hero-portrait-w: 72vw;
    height: 100svh;
    min-height: 100svh;
    padding: calc(var(--nav-h) + 16px) 0 0;
    display: flex;
    flex-direction: column;
  }
  .hero__content{
    position: relative;
    flex: 1 1 auto;
    min-height: calc(40px + var(--hero-portrait-w) * 1.5);
  }
}
@media (max-width: 520px){
  .hero{ --hero-portrait-w: 70vw; }
}

/* Filigrana greca: ENORME, in foreground, parallax-driven by scroll/mouse.
   Outer div = centering (CSS transform), inner span = animation target (GSAP transform). */
.hero__watermark{
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
  /* deve restare DIETRO al portrait (z=5) e davanti alle particelle (z=1) */
  z-index: 2;
  mix-blend-mode: multiply;
}
.hero__watermark-inner{
  display: inline-block;
  font-family: var(--f-script);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(12rem, 32vw, 38rem);
  line-height: .85;
  letter-spacing: -0.02em;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(26, 92, 171, .22);
  text-shadow: 0 0 80px rgba(26,92,171,.08);
  opacity: .85;
  will-change: transform, letter-spacing;
}
@media (max-width: 900px){
  .hero__watermark{ top: 42%; left: 40%; }
  .hero__watermark-inner{
    font-size: 60vw;
    opacity: .8;
    -webkit-text-stroke: 1.5px rgba(26, 92, 171, .2);
    line-height: .82;
  }
}

.hero__bg{
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 60% 40% at 90% 20%, rgba(26,92,171,.18), transparent 70%),
    radial-gradient(ellipse 40% 30% at 10% 80%, rgba(232,214,176,.35), transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.hero__content{
  position: relative;
  /* SOPRA al watermark greco (z=2) — testo e portrait in primo piano */
  z-index: 4;
  width: min(1320px, 100%);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: clamp(30px, 5vw, 60px);
  align-items: end;  /* portrait aderisce al bottom; il testo usa align-self:start */
  min-height: calc(100svh - var(--nav-h) - 28px);
}
.hero__text{ align-self: start; }
@media (max-width: 900px){
  .hero__content{
    display: block;
    position: relative;
    padding: 0 var(--gutter);
    gap: 0;
  }
}

.hero__logo{
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: center;
  justify-self: start;
  width: clamp(120px, 14vw, 200px);
  height: auto;
  border-radius: 50%;
  filter: drop-shadow(0 16px 36px rgba(10,24,41,.25));
  opacity: 0;
  transform: scale(.6) rotate(-18deg);
  animation:
    heroLogoIn 900ms var(--ease-out) 350ms forwards,
    heroLogoFloat 7s ease-in-out 1.3s infinite;
  will-change: transform;
}
@keyframes heroLogoIn{
  0%   { opacity: 0; transform: scale(.55) rotate(-18deg); }
  60%  { opacity: 1; transform: scale(1.05) rotate(6deg); }
  100% { opacity: 1; transform: scale(1) rotate(0deg); }
}
@keyframes heroLogoFloat{
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50%      { transform: translateY(-10px) rotate(3deg); }
}
@media (prefers-reduced-motion: reduce){
  .hero__logo{
    animation: none;
    opacity: 1;
    transform: none;
  }
}

.hero__kicker{
  display: inline-flex; align-items: center; gap: 10px;
  padding: 9px 18px;
  background: linear-gradient(135deg, rgba(255,255,255,.85), rgba(255,255,255,.55));
  border: 1px solid rgba(119,184,224,.35);
  backdrop-filter: blur(14px) saturate(180%);
  -webkit-backdrop-filter: blur(14px) saturate(180%);
  box-shadow: 0 6px 20px -10px rgba(26,92,171,.18);
  border-radius: 999px;
  font-size: .78rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 24px;
}
.hero__dot{
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(60,182,168,.2);
  animation: pulse 2s infinite;
}
@keyframes pulse{
  0%,100%{ box-shadow: 0 0 0 4px rgba(60,182,168,.2); }
  50%{ box-shadow: 0 0 0 8px rgba(60,182,168,.05); }
}

.hero__title{
  font-variation-settings: "SOFT" 40, "opsz" 144, "wght" 380;
  margin-bottom: 24px;
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: clamp(20px, 3vw, 48px);
  align-items: center;
}
.hero__line{ display: block; grid-column: 1; }
.hero__line--italic{
  font-style: italic;
  font-variation-settings: "SOFT" 100, "opsz" 144, "wght" 380;
  margin-left: clamp(20px, 5vw, 60px);
  /* Gradient blu-celeste sul nome italic, più leggibile e più "wow" */
  background: linear-gradient(135deg, var(--primary) 0%, #4a90d8 50%, #77b8e0 100%);
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.hero__motto{
  font-family: var(--f-script);
  font-style: italic;
  font-size: clamp(1.2rem, 1.8vw, 1.45rem);
  color: var(--ink-soft);
  display: flex; align-items: baseline; gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}
.hero__motto [lang="grc"]{ font-size: 1.05em; color: var(--primary); }
.hero__motto-sep{ color: var(--sky); }

.hero__lead{
  font-size: clamp(1.05rem, 1.3vw, 1.18rem);
  color: var(--ink-soft);
  max-width: 52ch;
  margin-bottom: 36px;
  line-height: 1.55;
}
/* Inside the hero lead: bump up the highlight italic words a touch. */
.hero__lead .hl{
  font-size: 1.15em;          /* ~15% larger than surrounding body */
  font-variation-settings: "SOFT" 100, "opsz" 144, "wght" 500;
  vertical-align: -0.02em;    /* compensate the slight baseline shift */
}

.hero__cta{ display: flex; gap: 14px; flex-wrap: wrap; }
.hero__cta--docked{ display: none; }

/* Mobile: CTA agganciati al fondo della hero, sempre nella prima schermata */
@media (max-width: 900px){
  .hero__cta--inline{ display: none; }
  .hero__cta--docked{
    display: flex;
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 10px var(--gutter) calc(env(safe-area-inset-bottom, 0px) + 14px);
    gap: 10px;
    z-index: 5;
    background: linear-gradient(to top, rgba(239,244,250,.98) 55%, rgba(239,244,250,0));
  }
  .hero__cta--docked .btn{
    flex: 1;
    justify-content: center;
    font-size: .92rem;
    padding: 14px 14px;
    pointer-events: auto;
  }
  /* Testo sopra la foto; il titolo può estendersi per ospitare il logo,
     motto/lead confinati a sinistra per non coprire il volto */
  .hero__text{
    position: relative;
    z-index: 3;
    padding-bottom: 104px;
    max-width: 100%;
  }
  .hero__lead, .hero__motto{ max-width: 42%; }
  /* Badge "10+ anni" nascosto su mobile */
  .hero__badge{ display: none; }

  /* === RITOCCHI MOBILE PER EFFETTO WOW === */

  /* Logo accanto a "Matteo" su mobile (prima riga), "Gelfusa" sotto a tutta larghezza */
  .hero__logo{
    width: clamp(96px, 26vw, 160px);
    grid-row: 1;
    margin-left: clamp(26px, 8vw, 82px);
  }
  .hero__title{ column-gap: clamp(12px, 3vw, 22px); }
  .hero__line--italic{ grid-column: 1 / -1; }

  /* Titolo più grande su mobile */
  .hero__title{
    font-size: clamp(3.4rem, 16vw, 5.6rem);
    line-height: .92;
    margin-bottom: 22px;
  }
  .hero__line--italic{ margin-left: clamp(28px, 10vw, 56px); }

  /* Motto greco: epigrafe su mobile — greco in corsivo, traduzione in maiuscoletto */
  .hero__motto{
    margin-bottom: 30px;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    flex-wrap: nowrap;
    padding-left: 16px;
    border-left: 2px solid rgba(119, 184, 224, 0.5);
  }
  .hero__motto-sep{ display: none; }
  .hero__motto [lang="grc"]{
    font-size: 1.4rem;
    letter-spacing: 0.01em;
    line-height: 1.1;
  }
  .hero__motto em{
    font-family: var(--f-body);
    font-style: normal;
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--ink-soft);
    opacity: 0.7;
    line-height: 1;
    margin-top: 2px;
  }

  /* Lead text più leggibile su sfondo foto */
  .hero__lead{
    font-size: 1rem;
    line-height: 1.55;
  }

  /* Sfuma delicata sul top dell'img per integrarla con la filigrana greca alle spalle.
     Applicata all'img (non al parent) così non entra in conflitto col clip-path animato. */
  .hero__portrait img{
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 14%, black 100%);
            mask-image: linear-gradient(to bottom, transparent 0%, black 14%, black 100%);
  }

  /* Aura luminosa più intensa dietro al busto, pulsante */
  .hero__portrait-glow{
    inset: 25% 5% 20% 5%;
    background:
      radial-gradient(ellipse at 50% 55%, rgba(26,92,171,.38), rgba(119,184,224,.22) 40%, transparent 70%);
    filter: blur(45px);
    animation: floatGlow 6s ease-in-out infinite;
  }

  /* CTA docked con fade più elegante e subtle drop shadow */
  .hero__cta--docked{
    padding: 10px var(--gutter) calc(env(safe-area-inset-bottom, 0px) + 14px);
    background: linear-gradient(to top,
      rgba(239,244,250,1) 20%,
      rgba(239,244,250,.78) 58%,
      rgba(239,244,250,0) 100%);
  }
  .hero__cta--docked .btn{
    font-size: .95rem;
    padding: 15px 14px;
    border-radius: 999px;
  }
  .hero__cta--docked .btn--primary{
    box-shadow: 0 10px 28px -8px rgba(26,92,171,.6), inset 0 1px 0 rgba(255,255,255,.32);
  }

  .chi-sono{
    margin-top: 0;
    padding-top: clamp(80px, 12vw, 140px);
  }
}

@media (max-width: 520px){
  .hero__cta--docked{
    padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 14px);
  }

  .chi-sono{
    margin-top: 0;
    padding-top: clamp(80px, 12vw, 140px);
  }
}

/* hero portrait (cutout PNG senza sfondo, appoggiato al bordo inferiore) */
.hero__portrait{
  position: relative;
  aspect-ratio: 2/3;
  max-width: 560px;
  /* l'altezza non può superare lo spazio verticale disponibile nell'hero */
  max-height: calc(100svh - var(--nav-h) - 40px);
  margin-left: auto;
  width: 100%;
  border-radius: 0;
  overflow: visible;
  background: transparent;
  box-shadow: none;
  /* IN PRIMO PIANO sopra al watermark greco */
  z-index: 5;
  /* Ombre 3D drammatiche: vicina + media + lunga, più piccolo highlight in alto */
  filter:
    drop-shadow(0  4px  8px rgba(10, 24, 41, .35))
    drop-shadow(0 14px 28px rgba(10, 24, 41, .28))
    drop-shadow(0 40px 70px rgba(10, 24, 41, .22))
    drop-shadow(0 -2px 1px rgba(255, 255, 255, .15));
}
@media (max-width: 900px){
  .hero__portrait{
    position: absolute;
    top: clamp(72px, 12svh, 118px);
    right: calc(-1 * var(--gutter));
    bottom: auto;
    width: 72%;
    max-width: 460px;
    height: auto;
    max-height: none;
    min-height: 0;
    margin: 0;
    aspect-ratio: 2 / 3;
    z-index: 1;
  }
}
@media (max-width: 520px){
  .hero__portrait{ width: 70%; }
}
.hero__portrait picture{ position: relative; z-index: 1; display: block; height: 100%; }
.hero__portrait img{
  width: 100%; height: 100%;
  object-fit: contain;
  object-position: center bottom;
}
@media (max-width: 900px){
  .hero__portrait img{
    object-fit: contain;
    object-position: center top;
  }
}
.hero__portrait-glow{
  position: absolute;
  inset: 10% 5% 5% 5%;
  border-radius: 50%;
  background: radial-gradient(ellipse at 50% 50%, rgba(119,184,224,.55), rgba(168, 208, 230, .25) 45%, transparent 75%);
  filter: blur(50px);
  z-index: 0;
  animation: floatGlow 8s ease-in-out infinite;
}
@media (max-width: 900px), (pointer: coarse){
  .hero__portrait-glow{
    display: none;
  }
}
@keyframes floatGlow{
  0%,100%{ transform: translate(0,0); }
  50%{ transform: translate(-15px,20px); }
}

.hero__badge{
  position: absolute;
  bottom: 10%; right: 0;
  padding: 14px 18px;
  border-radius: var(--r-md);
  max-width: 220px;
  background: rgba(255,255,255,.65);
  border: 1px solid rgba(255,255,255,.8);
  backdrop-filter: blur(18px) saturate(180%);
  -webkit-backdrop-filter: blur(18px) saturate(180%);
  z-index: 2;
}
.hero__badge-num{
  font-family: var(--f-display);
  font-size: 2rem;
  font-variation-settings: "SOFT" 80,"opsz" 144,"wght" 400;
  line-height: 1; color: var(--navy);
}
.hero__badge-num span{ color: var(--primary); }
.hero__badge-txt{ font-size: .78rem; color: var(--ink-soft); margin-top: 4px; line-height: 1.3; }

.hero__chip{
  position: absolute;
  top: 20px; right: 20px;
  padding: 10px 14px;
  border-radius: 999px;
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .78rem; color: #fff;
  background: rgba(12,27,46,.45);
  border: 1px solid rgba(255,255,255,.2);
  max-width: calc(100% - 40px);
}
.hero__chip-icon{ color: var(--sky-soft); display: inline-flex; }

/* scroll indicator — centrato */
.hero__scroll{
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  font-size: .7rem; letter-spacing: .2em; text-transform: uppercase;
  color: var(--ink-soft);
  z-index: 2;
}
.hero__scroll-line{
  width: 1px; height: 50px;
  background: linear-gradient(to bottom, transparent, var(--primary) 80%);
  position: relative; overflow: hidden;
}
.hero__scroll-line::after{
  content: ""; position: absolute;
  top: -50%; left: 0; width: 100%; height: 50%;
  background: var(--primary);
  animation: scrollDown 2s var(--ease-io) infinite;
}
@keyframes scrollDown{
  0%{ top: -50%; } 100%{ top: 100%; }
}
@media (max-width: 900px){ .hero__scroll{ display: none; } }

/* ---------- SECTION GENERIC ---------- */
.section{
  position: relative;
  padding: clamp(80px, 12vw, 140px) 0;
}
.section__head{
  max-width: 780px;
  margin-bottom: clamp(50px, 8vw, 90px);
}
.section__lead{
  font-size: clamp(1.05rem, 1.3vw, 1.18rem);
  color: var(--ink-soft);
  margin-top: 20px;
  max-width: 60ch;
}

.grid-2{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 90px);
  align-items: center;
}
@media (max-width: 900px){
  .grid-2{ grid-template-columns: 1fr; }
  /* Su mobile vogliamo sempre prima il testo (DOM-first) e poi la foto,
     anche nelle sezioni che su desktop usano l'inversione. */
  .grid-2--reverse > *:first-child{ order: 0; }
  /* Chi Sono: il media è il primo nel DOM ma su mobile va dopo il testo. */
  .chi-sono .chi-sono__text{ order: 1; }
  .chi-sono .chi-sono__media{ order: 2; }
}

/* ---------- CHI SONO ---------- */
.chi-sono__media{
  position: relative;
  aspect-ratio: 3/4;
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--glass-shadow-lg);
}
.chi-sono__media img{
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 1.5s var(--ease-out);
}
.chi-sono__media:hover img{ transform: scale(1.04); }

.chi-sono__sticker{
  position: absolute;
  bottom: 24px; right: 24px;
  padding: 14px 18px;
  background: rgba(255,255,255,.7);
  border-radius: var(--r-md);
  text-align: right;
}
.chi-sono__sticker span{
  display: block;
  font-family: var(--f-display);
  font-size: 1.8rem;
  line-height: 1;
  font-variation-settings: "SOFT" 80,"opsz" 144,"wght" 450;
  color: var(--primary);
}
.chi-sono__sticker small{
  font-size: .7rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

/* ---------- FILOSOFIA ---------- */
.filosofia{
  background: var(--navy);
  color: #fff;
  overflow: hidden;
  border-radius: 0;
}
.filosofia::before{
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(12,27,46,.4), rgba(12,27,46,.9) 60%, rgba(12,27,46,.98));
  z-index: 1;
}
.filosofia__bg{
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  z-index: 0;
}
/* Desktop: l'img occupa solo la metà destra, con fade morbido sul bordo sinistro
   così si fonde con il navy della sezione senza linea netta. */
@media (min-width: 900px){
  .filosofia__bg{
    left: 35%;
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 22%, black 100%);
            mask-image: linear-gradient(to right, transparent 0%, black 22%, black 100%);
  }
}
.filosofia__bg img{
  width: 100%; height: 100%; object-fit: cover; object-position: center;
  opacity: .55;
  will-change: transform;
}

/* ---------- PARTICELLE MISTICHE ---------- */
.filosofia__particles{
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 1;
}
.particle{
  position: absolute;
  bottom: -20px;
  width: var(--size, 4px);
  height: var(--size, 4px);
  border-radius: 50%;
  background: radial-gradient(circle,
    rgba(255,255,255,.95) 0%,
    rgba(174,214,236,.75) 35%,
    rgba(119,184,224,.25) 70%,
    transparent 100%);
  box-shadow:
    0 0 8px rgba(255,255,255,.6),
    0 0 18px rgba(119,184,224,.45);
  opacity: 0;
  animation-name: particleFloat;
  animation-timing-function: cubic-bezier(.4, .05, .6, 1);
  animation-iteration-count: infinite;
  will-change: transform, opacity;
}
.particle--star{
  background: radial-gradient(circle,
    rgba(255,247,220,1) 0%,
    rgba(255,235,180,.75) 30%,
    rgba(255,215,140,.25) 60%,
    transparent 100%);
  box-shadow:
    0 0 10px rgba(255,235,180,.7),
    0 0 24px rgba(255,200,120,.4);
  animation-name: particleFloatStar;
}
@keyframes particleFloat{
  0%   { transform: translate3d(0, 0, 0) scale(.5); opacity: 0; }
  8%   { opacity: .75; }
  50%  { transform: translate3d(calc(var(--drift, 0px) * .5), -55vh, 0) scale(1); opacity: 1; }
  92%  { opacity: .5; }
  100% { transform: translate3d(var(--drift, 0px), -110vh, 0) scale(.25); opacity: 0; }
}
@keyframes particleFloatStar{
  0%   { transform: translate3d(0, 0, 0) scale(.3) rotate(0deg); opacity: 0; }
  12%  { opacity: .9; }
  50%  { transform: translate3d(calc(var(--drift, 0px) * .7), -45vh, 0) scale(1.1) rotate(180deg); opacity: 1; }
  88%  { opacity: .6; }
  100% { transform: translate3d(var(--drift, 0px), -100vh, 0) scale(.2) rotate(360deg); opacity: 0; }
}

/* rays di luce statiche ma con breathe animation */
.filosofia__rays{
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: .5;
  mix-blend-mode: screen;
  background:
    radial-gradient(ellipse 40% 30% at 70% 50%, rgba(119,184,224,.25), transparent 70%),
    radial-gradient(ellipse 30% 20% at 80% 30%, rgba(174,214,236,.2), transparent 70%);
  animation: raysBreathe 8s ease-in-out infinite;
}
@keyframes raysBreathe{
  0%,100% { opacity: .4; transform: scale(1); }
  50%     { opacity: .7; transform: scale(1.05); }
}

@media (prefers-reduced-motion: reduce){
  .particle, .filosofia__rays{ animation: none; opacity: .3; }
}
.filosofia__inner{ position: relative; z-index: 2; }

.filosofia__card{
  max-width: 780px;
  padding: clamp(28px, 4vw, 44px);
  border-radius: var(--r-xl);
  margin: 40px 0;
  color: rgba(255,255,255,.92);
  font-size: clamp(1rem, 1.15vw, 1.1rem);
}
.filosofia__card p{ margin-bottom: 1em; }
.filosofia__card p:last-child{ margin-bottom: 0; }
.filosofia__card strong{ color: #fff; font-weight: 500; }
.filosofia__card em{ color: var(--sky-soft); font-family: var(--f-script); font-size: 1.1em; }

.filosofia__highlight{
  font-family: var(--f-display);
  font-variation-settings: "SOFT" 100,"opsz" 144,"wght" 400;
  font-style: italic;
  font-size: 1.25em;
  color: #fff;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,.2);
  margin-top: 20px !important;
}

.filosofia__triad{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 50px;
}
@media (max-width: 780px){
  .filosofia__triad{ grid-template-columns: 1fr; }
}
.triad__item{
  padding: 28px;
  border-radius: var(--r-lg);
}
.triad__item h3{
  font-size: 1.6rem;
  font-variation-settings: "SOFT" 50,"opsz" 144,"wght" 450;
  margin-bottom: 8px;
  color: #fff;
}
.triad__item p{ color: rgba(255,255,255,.75); font-size: .95rem; }

/* ---------- TRATTAMENTI ---------- */
.trattamenti .section__head{ max-width: 1100px; }

.treatments{
  display: grid;
  gap: clamp(60px, 8vw, 100px);
}
.treatment{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(30px, 5vw, 70px);
  align-items: start;
}
.treatment--reverse .treatment__media{ order: 2; }
@media (max-width: 900px){
  .treatment, .treatment--reverse{ grid-template-columns: 1fr; }
  /* Su mobile: prima il testo, poi la foto (per ogni card, anche le reverse). */
  .treatment .treatment__body,
  .treatment--reverse .treatment__body{ order: 1; }
  .treatment .treatment__media,
  .treatment--reverse .treatment__media{ order: 2; }
}

.treatment__media{
  border-radius: var(--r-xl);
  overflow: hidden;
  position: relative;
  box-shadow: 0 18px 40px -24px rgba(10,24,41,.22);
  aspect-ratio: 3 / 2;
}
.treatment__media picture{ display: block; width: 100%; height: 100%; }
.treatment__media::after{
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(160deg, transparent 60%, rgba(12,27,46,.4) 100%);
  pointer-events: none;
}
.treatment__media img{
  display: block;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
  object-position: center;
  transition: transform 1.4s var(--ease-out);
}
.treatment:hover .treatment__media img{ transform: scale(1.05); }

.treatment__num{
  display: inline-block;
  font-family: var(--f-display);
  font-variation-settings: "SOFT" 100,"opsz" 144,"wght" 350;
  font-style: italic;
  font-size: 1.4rem;
  color: var(--primary);
  margin-bottom: 12px;
}
.treatment__body h3{
  font-family: var(--f-display);
  font-variation-settings: "SOFT" 40,"opsz" 144,"wght" 420;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  margin-bottom: 14px;
  line-height: 1.1;
  letter-spacing: -.015em;
}
.treatment__sub{
  font-family: var(--f-script);
  font-style: italic;
  font-size: 1.25rem;
  color: var(--primary);
  margin-bottom: 18px;
  line-height: 1.35;
}
.treatment__body p{ color: var(--ink-soft); }

/* ---------- COLLABORAZIONI ---------- */
.collab__media{
  position: relative;
  aspect-ratio: 4/5;
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--glass-shadow-lg);
}
.collab__media img{
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 1.5s var(--ease-out);
}
.collab__media:hover img{ transform: scale(1.04); }
.collab__quote{
  position: absolute;
  top: 20px; left: 20px;
  padding: 10px 14px;
  border-radius: 999px;
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .78rem;
  background: rgba(255,255,255,.6);
}
.collab__quote svg{ color: var(--primary); }

/* ---------- SEDI ---------- */
.sedi__grid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 3vw, 40px);
}
@media (max-width: 900px){ .sedi__grid{ grid-template-columns: 1fr; } }

.sede{
  padding: clamp(24px, 3vw, 34px);
  border-radius: var(--r-xl);
  display: flex; flex-direction: column; gap: 24px;
}
.sede__tag{
  display: inline-block;
  padding: 6px 12px;
  background: var(--navy);
  color: #fff;
  font-size: .7rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  border-radius: 999px;
  margin-bottom: 14px;
}
.sede__head h3{
  font-family: var(--f-display);
  font-variation-settings: "SOFT" 40,"opsz" 144,"wght" 400;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  line-height: 1.1;
  margin-bottom: 6px;
}
.sede__head h3 span{
  color: var(--primary);
  font-style: italic;
  font-family: var(--f-script);
  font-size: .75em;
}
.sede__head p{ color: var(--ink-soft); }

.sede__map{
  border-radius: var(--r-lg);
  overflow: hidden;
  aspect-ratio: 16/10;
  border: 1px solid var(--line);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.6);
  background: #e2e8f0;
}
.sede__map iframe{
  width: 100%; height: 100%;
  border: 0; display: block;
  filter: saturate(.9) contrast(.95);
}

.sede__foot{ display: flex; justify-content: flex-end; }

/* ---------- CONTATTI ---------- */
.contatti__inner{
  padding: clamp(40px, 5vw, 70px);
  padding-right: clamp(40px, 7vw, 110px);
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(30px, 5vw, 60px);
  align-items: center;
  background: linear-gradient(160deg, rgba(255,255,255,.7), rgba(255,255,255,.45));
  border-radius: var(--r-2xl);
  overflow: hidden;
  position: relative;
}
.contatti__inner::after{
  content: "";
  position: absolute;
  inset: -40%;
  background: radial-gradient(circle at 80% 20%, rgba(119,184,224,.35), transparent 40%);
  pointer-events: none;
  z-index: -1;
}
@media (max-width: 900px){
  .contatti__inner{ grid-template-columns: 1fr; }
}

.contatti__lead{
  color: var(--ink-soft);
  margin-top: 16px;
  font-size: 1.05rem;
  max-width: 40ch;
}

.contatti__actions{
  display: grid;
  gap: 22px;
}

.contatti__info{
  display: grid;
  gap: 2px;
  border-top: 1px solid var(--line);
  padding-top: 22px;
  margin-top: 4px;
}
.contatti__row{
  display: flex; flex-direction: column; align-items: flex-start;
  gap: 6px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  transition: color .25s var(--ease-out), transform .25s var(--ease-out);
}
.contatti__row:last-child{ border-bottom: 0; }
.contatti__row:hover{ transform: translateX(4px); color: var(--primary); }
.contatti__label{
  font-size: .72rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--ink-soft);
  opacity: .75;
}
.contatti__value{
  font-family: var(--f-display);
  font-variation-settings: "SOFT" 50,"opsz" 144,"wght" 500;
  font-size: clamp(1.3rem, 1.8vw, 1.55rem);
  letter-spacing: -.005em;
  line-height: 1.15;
}

/* ---------- FOOTER ---------- */
.footer{
  background: var(--navy);
  color: rgba(255,255,255,.75);
  padding: 70px 0 30px;
  position: relative;
  overflow: hidden;
}
.footer::before{
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(26,92,171,.35), transparent 50%);
  pointer-events: none;
}
.footer__inner{
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 50px;
  border-bottom: 1px solid rgba(255,255,255,.1);
  position: relative;
}
@media (max-width: 820px){
  .footer__inner{ grid-template-columns: 1fr 1fr; }
  .footer__brand{ grid-column: 1 / -1; }
}
@media (max-width: 500px){
  .footer__inner{ grid-template-columns: 1fr; }
}

.footer__brand{
  display: flex; align-items: center; gap: 16px;
}
.footer__brand img{ border-radius: 50%; filter: drop-shadow(0 4px 10px rgba(0,0,0,.3)); }
.footer__name{
  font-family: var(--f-display);
  font-variation-settings: "SOFT" 50,"opsz" 144,"wght" 500;
  font-size: 1.3rem;
  color: #fff;
}
.footer__role{
  font-size: .78rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: rgba(255,255,255,.6);
  margin-top: 4px;
}

.footer__col h4{
  font-family: var(--f-body);
  font-size: .8rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--sky-soft);
  margin-bottom: 14px;
  font-weight: 500;
}
.footer__col p{ margin-bottom: 6px; font-size: .92rem; }
.footer__col a:hover{ color: #fff; }

.footer__socials{ display: flex; gap: 10px; }
.social{
  width: 40px; height: 40px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  transition: background .25s, transform .25s, color .25s;
}
.social:hover{
  background: rgba(255,255,255,.18);
  color: var(--sky-soft);
  transform: translateY(-2px);
}

.footer__bottom{
  padding-top: 26px;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 12px;
  font-size: .82rem;
  color: rgba(255,255,255,.55);
}
.footer__legal{ display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.footer__legal a:hover, .footer__legal button:hover{ color: #fff; }

/* ---------- COOKIE BANNER ---------- */
.cookie-banner{
  position: fixed;
  bottom: 20px; left: 20px; right: 20px;
  z-index: 200;
  padding: 18px 22px;
  border-radius: var(--r-lg);
  background: rgba(255,255,255,.75);
  border: 1px solid rgba(255,255,255,.8);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  box-shadow: var(--glass-shadow-lg);
  display: flex; align-items: center; gap: 18px;
  max-width: 780px;
  margin: 0 auto;
  font-size: .92rem;
  transform: translateY(calc(100% + 40px));
  transition: transform .6s var(--ease-out);
}
.cookie-banner.is-visible{ transform: translateY(0); }
.cookie-banner strong{ display: block; margin-bottom: 4px; color: var(--ink); }
.cookie-banner a{ color: var(--primary); text-decoration: underline; text-underline-offset: 2px; }
.cookie-banner__actions{ flex-shrink: 0; }
@media (max-width: 640px){
  .cookie-banner{ flex-direction: column; align-items: stretch; gap: 12px; }
  .cookie-banner__actions{ display: flex; justify-content: flex-end; }
}

/* ---------- REVEAL ANIMATIONS ---------- */
[data-reveal]{
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1.1s var(--ease-out), transform 1.1s var(--ease-out);
  will-change: opacity, transform;
}
[data-reveal].is-in{
  opacity: 1;
  transform: translateY(0);
}
@media (max-width: 900px), (pointer: coarse){
  [data-reveal]{
    transform: translateY(16px);
    transition-duration: .55s;
  }
}

/* stagger via delay attribute (handled in JS for robust fallback) */
[data-reveal-delay="100"]{ transition-delay: .1s; }
[data-reveal-delay="150"]{ transition-delay: .15s; }
[data-reveal-delay="200"]{ transition-delay: .2s; }
[data-reveal-delay="300"]{ transition-delay: .3s; }

/* reduced motion */
@media (prefers-reduced-motion: reduce){
  *,*::before,*::after{ animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  [data-reveal]{ opacity: 1; transform: none; }
}

/* ---------- LEGAL PAGES ---------- */
.legal-page{
  padding: calc(var(--nav-h) + 60px) 0 80px;
}
.legal-page .container{ max-width: 820px; }
.legal-page h1{
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  margin-bottom: 20px;
}
.legal-page h2{
  font-size: 1.5rem;
  margin: 40px 0 14px;
  color: var(--primary);
  font-variation-settings: "SOFT" 40,"opsz" 144,"wght" 450;
}
.legal-page p, .legal-page li{
  color: var(--ink-soft);
  margin-bottom: 10px;
}
.legal-page ul{
  list-style: disc;
  padding-left: 20px;
  margin-bottom: 14px;
}
.legal-page .back-link{
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--primary);
  margin-bottom: 30px;
  font-size: .95rem;
}
.legal-page .back-link:hover{ text-decoration: underline; }
.legal-page .updated{
  font-size: .85rem;
  color: var(--ink-muted);
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 30px;
}

/* =========================================================
   ──────────  RESN-INSPIRED CINEMATIC LAYER  ──────────
   Scroll-driven 3D scenes · pinned chapters · custom cursor
   ========================================================= */

/* ---------- WebGL canvas (persistent, fixed, behind content) ---------- */
.scene-canvas{
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  /* sits ABOVE aurora blobs but BELOW all content/UI */
  z-index: 1;
  pointer-events: none;
  opacity: 0;
  transition: opacity 1.2s var(--ease-out);
  will-change: opacity;
}
.scene-canvas.is-ready{ opacity: 1; }
/* Canvas always full opacity — readability handled via text-halo on prose. */
@media (max-width: 900px), (pointer: coarse){
  .scene-canvas{ display: none !important; }
}

/* Aurora keeps original z-index: -1 (bottom decorative layer).
   Canvas sits on top of it but BELOW all interactive content. */
main, .footer{
  position: relative;
  z-index: 2;
}
/* Nav, mobile menu, cookie banner already have higher z-index in their own rules. */
.cursor{ z-index: 9999; }
.chapters{ z-index: 40; }

/* On low-end / no-webgl: hide canvas entirely */
.no-webgl .scene-canvas{ display: none; }

/* ---------- Custom cursor (desktop, hover-capable only) ---------- */
/* Subtle decorative overlay — system cursor stays visible. */
.cursor{
  position: fixed;
  top: 0; left: 0;
  width: 0; height: 0;
  pointer-events: none;
  mix-blend-mode: multiply;
  display: none;
  opacity: 0;
  transition: opacity .35s var(--ease-out);
}
body.has-custom-cursor .cursor{ display: block; opacity: 1; }
.cursor__dot,
.cursor__ring{
  position: absolute;
  top: 0; left: 0;
  border-radius: 999px;
  transform: translate(-50%, -50%);
  will-change: transform, width, height, opacity;
}
.cursor__dot{
  width: 0; height: 0;
  background: var(--primary);
  transition: width .25s var(--ease-out), height .25s var(--ease-out);
}
.cursor__ring{
  width: 28px; height: 28px;
  border: 1.5px solid rgba(26,92,171,.55);
  transition: width .35s var(--ease-out), height .35s var(--ease-out),
              border-color .25s var(--ease-out), background-color .25s var(--ease-out);
}
body.cursor-hover .cursor__ring{
  width: 56px; height: 56px;
  border-color: var(--primary);
  background: rgba(26,92,171,.06);
}

/* ---------- Chapter indicator (right side, vertical) ---------- */
.chapters{
  position: fixed;
  top: 50%;
  right: clamp(14px, 2vw, 28px);
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  gap: 14px;
  pointer-events: none;
  font-family: var(--f-body);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  opacity: 0;
  transition: opacity .6s var(--ease-out), color .4s var(--ease-out);
  z-index: 40;
}
.chapters.is-visible{ opacity: 1; }
.chapters.on-dark{ color: rgba(255,255,255,.7); }
.chapters__line{
  width: 1px;
  height: 60px;
  background: currentColor;
  opacity: .35;
}
.chapters__list{
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-end;
}
.chapters__list li{
  display: flex;
  align-items: center;
  gap: 10px;
  opacity: .72;
  transition: opacity .35s var(--ease-out), transform .35s var(--ease-out);
  font-size: 11px;
  font-weight: 500;
}
.chapters__list li span{
  font-feature-settings: "tnum";
  opacity: .85;
}
.chapters__list li.is-active{
  opacity: 1;
  transform: translateX(-6px);
}
@media (max-width: 900px){ .chapters{ display: none; } }

/* ---------- Hero: bigger, more cinematic ---------- */
.hero{
  /* keep existing layout; layer 3D depth via gradient overlay */
  isolation: isolate;
}
.hero__title .hero__line{
  display: block;
  will-change: transform;
}
.hero__title .hero__line--italic{
  /* very Resn: oversized italic display */
  font-style: italic;
  font-variation-settings: "SOFT" 90, "opsz" 144, "wght" 380;
}

/* Hero 3D tilt wrapper for portrait — slight depth on mouse move */
.hero__portrait{
  transform-style: preserve-3d;
  perspective: 1200px;
  will-change: transform;
}
.hero__portrait > picture{
  display: block;
  transform-style: preserve-3d;
  transition: transform .8s var(--ease-out);
}

/* ---------- Pinned section: Filosofia becomes a scene ---------- */
.scene-pin{
  position: relative;
}
.scene-pin__viewport{
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

/* Filosofia: fade in/out the triad cards on scroll progress */
.filosofia .filosofia__card,
.filosofia .filosofia__triad{
  will-change: transform, opacity;
}
.filosofia .triad__item{
  transform-style: preserve-3d;
  transition: transform .9s var(--ease-out), box-shadow .6s var(--ease-out);
}
.filosofia .triad__item:hover{
  transform: translateY(-6px) rotateX(4deg) rotateY(-3deg);
}

/* ---------- Trattamenti: 3D card tilt on hover + scroll skew ---------- */
.treatment{
  perspective: 1400px;
}
.treatment__media{
  transform-style: preserve-3d;
  will-change: transform;
  transition: transform .9s var(--ease-out), box-shadow .6s var(--ease-out);
  box-shadow: 0 30px 80px -30px rgba(10,24,41,.4);
}
@media (hover: hover){
  .treatment__media:hover{
    transform: rotateX(2deg) rotateY(-3deg) translateZ(20px);
  }
}
.treatment__num{
  font-family: var(--f-display);
  font-style: italic;
  font-variation-settings: "SOFT" 100, "opsz" 144, "wght" 300;
  font-size: clamp(3rem, 6vw, 5rem);
  line-height: 1;
  color: var(--primary);
  display: inline-block;
}

/* ---------- Section dividers: oversized "marquee" titles ---------- */
.scene-marquee{
  position: relative;
  overflow: hidden;
  padding: clamp(30px, 5vw, 90px) 0;
  font-family: var(--f-display);
  font-variation-settings: "SOFT" 80, "opsz" 144, "wght" 350;
  font-size: clamp(4rem, 14vw, 13rem);
  line-height: .92;
  letter-spacing: -0.04em;
  white-space: nowrap;
  color: transparent;
  -webkit-text-stroke: 1px rgba(10,24,41,.22);
  pointer-events: none;
  user-select: none;
  z-index: 3;
}
.scene-marquee--alt{
  -webkit-text-stroke: 1px rgba(10,24,41,.16);
  font-size: clamp(3rem, 10vw, 9rem);
}
.scene-marquee__track{
  display: inline-block;
  will-change: transform;
  padding-left: 100%; /* start off-screen right */
}
.scene-marquee__track > span{
  padding-right: .35em;
  display: inline-block;
}
.scene-marquee__track > span em{
  font-style: italic;
  font-variation-settings: "SOFT" 100, "opsz" 144, "wght" 380;
  -webkit-text-stroke: 0;
  color: var(--primary);
  -webkit-text-fill-color: var(--primary);
}
.scene-marquee--alt .scene-marquee__track > span em{
  color: var(--ink-soft);
  -webkit-text-fill-color: var(--ink-soft);
}

/* Force first paint visibility for hero text (avoid flash on slow JS) */
.hero__text[data-reveal]{ opacity: 1; transform: none; }

/* ---------- Text-halo: keeps prose readable against the live 3D scene ----------
   A subtle multi-layer text-shadow in the section's bg color creates a
   localized "punch-through" effect — the text stays crisp while the 3D
   continues to animate everywhere. */
.prose,
.bullets,
.bullets li,
.section__lead,
.contatti__lead,
.section__head .eyebrow,
.eyebrow,
.treatment__sub,
.treatment__body p,
.chi-sono__text p,
.collab__media + div p,
.pullquote{
  text-shadow:
    0 0 6px var(--bg),
    0 0 12px var(--bg),
    0 0 18px rgba(239, 244, 250, .5);
}
/* Bigger halo for h2 / display titles where wireframe would be most visible */
.section__title,
h1, h2{
  text-shadow:
    0 0 10px var(--bg),
    0 0 20px var(--bg);
}

/* Adjust halo color per body palette so it actually matches the section bg */
body[data-bg="sand"] .prose,
body[data-bg="sand"] .bullets,
body[data-bg="sand"] .bullets li,
body[data-bg="sand"] .section__lead,
body[data-bg="sand"] .eyebrow,
body[data-bg="sand"] .treatment__sub,
body[data-bg="sand"] .treatment__body p,
body[data-bg="sand"] .chi-sono__text p,
body[data-bg="sand"] .pullquote,
body[data-bg="sand"] .section__title,
body[data-bg="sand"] h1, body[data-bg="sand"] h2{
  text-shadow:
    0 0 8px var(--bg-cream),
    0 0 16px var(--bg-cream),
    0 0 24px rgba(244, 240, 233, .6);
}
body[data-bg="dusk"] .glass--dark,
body[data-bg="dusk"] .filosofia__card{ /* dark sections — keep readable on dark */
  text-shadow: none;
}
body[data-bg="twilight"] .contatti__inner *{
  text-shadow: none;
}
/* Strong halo never applies to oversized marquee (we WANT it to interact) */
.scene-marquee, .scene-marquee *{ text-shadow: none !important; }
.hero__watermark, .hero__watermark *{ text-shadow: none !important; }

/* ---------- Cinematic body palette transitions per section ---------- */
/* Body smoothly morphs between palette states as the user scrolls. */
body{
  transition: background-color 1.2s var(--ease-out);
}
body[data-bg="dawn"]   { background-color: #eff4fa; }   /* hero default */
body[data-bg="sand"]   { background-color: #f4f0e9; }   /* chi-sono — warm cream */
body[data-bg="dusk"]   { background-color: #0c1b2e; }   /* filosofia — deep navy */
body[data-bg="mist"]   { background-color: #e7eef5; }   /* trattamenti */
body[data-bg="twilight"]{ background-color: #1b2d47; }  /* contatti — deep ink */

/* Lift content readability when bg goes dark */
body[data-bg="dusk"],
body[data-bg="twilight"]{
  color: #f1f5fa;
}
body[data-bg="dusk"] .nav__name,
body[data-bg="twilight"] .nav__name,
body[data-bg="dusk"] .nav__role,
body[data-bg="twilight"] .nav__role,
body[data-bg="dusk"] .nav__links a,
body[data-bg="twilight"] .nav__links a{ color: #f1f5fa; }
body[data-bg="dusk"] .scroll-bar,
body[data-bg="twilight"] .scroll-bar{ background: rgba(255,255,255,.08); }

/* ---------- Scroll progress bar (top thin line) ---------- */
.scroll-bar{
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: 2px;
  background: rgba(10,24,41,.06);
  z-index: 80;
  pointer-events: none;
}
.scroll-bar__fill{
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--sky), var(--primary), var(--accent));
  transform-origin: 0 0;
  transition: width .12s linear;
  box-shadow: 0 0 12px rgba(45,120,211,.5);
}

/* ---------- Hero: more cinematic typography & dynamics ---------- */
.hero__title{
  transform-style: preserve-3d;
  perspective: 800px;
  position: relative;
  z-index: 5; /* sopra le particelle/watermark, sotto al portrait? portrait è laterale */
}
.hero__line{
  transform-style: preserve-3d;
}

/* "Gelfusa" — più drammatico: italic, weight pesante, colore vibrante, alone luminoso.
   IMPORTANTE: resetto background gradient + text-fill-color trasparente
   ereditati dalla regola originale (riga ~623) — quella usa
   background-clip:text ma si rompe quando i caratteri sono splittati. */
.hero__line--italic{
  display: inline-block;
  font-style: italic;
  font-variation-settings: "SOFT" 100, "opsz" 144, "wght" 480;
  color: var(--primary-2) !important;
  -webkit-text-fill-color: var(--primary-2) !important;
  background: none !important;
  -webkit-background-clip: initial !important;
          background-clip: initial !important;
  /* Glow azzurro dietro al cognome */
  filter: drop-shadow(0 4px 24px rgba(45, 120, 211, .35));
  position: relative;
  overflow: visible;
  padding: 0.05em 0.08em;
  margin: 0 -0.06em;
  line-height: 1.05;
}

/* Per-character spans (inserted by JS) — animation target.
   Forzo currentColor così i caratteri non possono ereditare nessun "transparent". */
.hero__char{
  display: inline-block;
  will-change: transform, opacity;
  overflow: visible;
  padding: 0.04em 0.02em;
  color: inherit !important;
  -webkit-text-fill-color: currentColor !important;
}

/* ---------- Glitch RGB hover on section titles ---------- */
/* Chromatic aberration via duplicate text in pseudo elements. */
.section__title{
  position: relative;
  cursor: default;
  transition: text-shadow .35s var(--ease-out);
}
@media (hover: hover){
  .section__title:hover{
    text-shadow:
      -2px 0 0 rgba(255, 60, 90, .55),
       2px 0 0 rgba(60, 182, 168, .55),
       0  2px 0 rgba(45,120,211, .35);
    animation: glitch-jitter .45s steps(2) 1;
  }
}
@keyframes glitch-jitter{
  0%   { transform: translate(0, 0); }
  20%  { transform: translate(-2px, 1px); }
  40%  { transform: translate(2px, -1px); }
  60%  { transform: translate(-1px, 2px); }
  80%  { transform: translate(1px, -2px); }
  100% { transform: translate(0, 0); }
}

/* ---------- 3D tilt + sheen overlay on media (chi-sono, collab, treatment) ---------- */
.chi-sono__media,
.collab__media,
.treatment__media{
  perspective: 1400px;
  transform-style: preserve-3d;
  will-change: transform;
}
.chi-sono__media picture,
.collab__media picture,
.treatment__media picture{
  display: block;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  /* short transition for responsive mouse tracking, longer ease-back on leave */
  transition: transform .25s var(--ease-out);
  will-change: transform;
}
.chi-sono__media:not(:hover) picture,
.collab__media:not(:hover) picture,
.treatment__media:not(:hover) picture{
  transition: transform .8s var(--ease-out);
}
/* Sheen layer — radial highlight that follows mouse, only visible on hover */
.chi-sono__media .sheen,
.collab__media .sheen,
.treatment__media .sheen{
  position: absolute;
  inset: 0;
  background: radial-gradient(
    420px circle at var(--mx, 50%) var(--my, 50%),
    rgba(255,255,255,.32) 0%,
    rgba(255,255,255,0) 55%
  );
  mix-blend-mode: overlay;
  opacity: 0;
  transition: opacity .4s var(--ease-out);
  pointer-events: none;
  z-index: 2;
  will-change: background, opacity;
}
.chi-sono__media:hover .sheen,
.collab__media:hover .sheen,
.treatment__media:hover .sheen{ opacity: 1; }

/* Drop shadow that intensifies with tilt */
.chi-sono__media,
.collab__media{
  transition: box-shadow .5s var(--ease-out);
}
.chi-sono__media:hover,
.collab__media:hover{
  box-shadow:
    0 40px 80px -30px rgba(10,24,41,.45),
    0 16px 36px -16px rgba(26,92,171,.25);
}

/* Floating animation on stickers (subtle bob) */
@keyframes floaty{
  0%,100% { transform: translateY(0); }
  50%     { transform: translateY(-8px); }
}
.chi-sono__sticker,
.hero__badge,
.collab__quote{
  animation: floaty 5.5s ease-in-out infinite;
}
.hero__badge{ animation-duration: 6.5s; animation-delay: -2s; }
.collab__quote{ animation-duration: 7s; animation-delay: -1s; }
@media (prefers-reduced-motion: reduce){
  .chi-sono__sticker,
  .hero__badge,
  .collab__quote{ animation: none; }
}

/* ---------- Filosofia eyebrow + glass card readability against dark body ---------- */
body[data-bg="dusk"] .nav.is-scrolled{
  background: rgba(12,27,46,.55);
}
body[data-bg="twilight"] .nav.is-scrolled{
  background: rgba(27,45,71,.55);
}

/* ---------- Scroll story: contatti immersive cinema moment ---------- */
.contatti{ position: relative; perspective: 1600px; }
.contatti::before{
  content: "";
  position: absolute;
  inset: -10% -5% auto -5%;
  height: 80%;
  background: radial-gradient(60% 50% at 50% 50%, rgba(45,120,211,.18), transparent 70%);
  filter: blur(40px);
  z-index: -1;
  pointer-events: none;
}

/* Contatti card: dark glass + 3D tilt + glow halo when bg is twilight */
.contatti__inner{
  transform-style: preserve-3d;
  will-change: transform, box-shadow;
  transition: transform .35s var(--ease-out), box-shadow .5s var(--ease-out);
  position: relative;
}
/* Pre-card glow halo (animated pulse) */
.contatti__inner::before{
  content: "";
  position: absolute;
  inset: -8%;
  border-radius: inherit;
  background:
    radial-gradient(50% 40% at 30% 30%, rgba(119,184,224,.55), transparent 70%),
    radial-gradient(50% 40% at 80% 80%, rgba(60,182,168,.45), transparent 70%);
  filter: blur(45px);
  opacity: .6;
  z-index: -1;
  pointer-events: none;
  animation: contattiHalo 9s ease-in-out infinite;
}
@keyframes contattiHalo{
  0%,100% { transform: translate(0,0) scale(1); opacity: .55; }
  50%     { transform: translate(2%, -2%) scale(1.08); opacity: .8; }
}
@media (prefers-reduced-motion: reduce){
  .contatti__inner::before{ animation: none; }
}

/* DARK GLASS variant when body is twilight (the "cinema" state) */
body[data-bg="twilight"] .contatti__inner{
  background: linear-gradient(160deg, rgba(20,38,62,.72), rgba(12,27,46,.55));
  border: 1px solid rgba(255,255,255,.10);
  box-shadow:
    0 50px 120px -40px rgba(0,0,0,.55),
    inset 0 1px 0 rgba(255,255,255,.08);
}
body[data-bg="twilight"] .contatti__lead{ color: rgba(241,245,250,.78); }
body[data-bg="twilight"] .contatti__value{ color: #ffffff; }
body[data-bg="twilight"] .contatti__label{ color: rgba(241,245,250,.62); }
body[data-bg="twilight"] .contatti__row{ border-bottom-color: rgba(255,255,255,.10); }
body[data-bg="twilight"] .contatti__row:hover{
  color: var(--sky);
  padding-left: 6px;
}
body[data-bg="twilight"] .contatti__info{ border-top-color: rgba(255,255,255,.10); }
body[data-bg="twilight"] .contatti .eyebrow{ color: rgba(241,245,250,.55); }
body[data-bg="twilight"] .contatti .eyebrow::before{ background: rgba(241,245,250,.4); }
body[data-bg="twilight"] .contatti__inner::after{
  background: radial-gradient(circle at 80% 20%, rgba(119,184,224,.55), transparent 40%);
}

/* Tilt-on-hover (subtle, the whole card lifts) */
@media (hover: hover){
  .contatti__inner:hover{
    box-shadow:
      0 60px 140px -40px rgba(0,0,0,.6),
      0 0 80px rgba(119,184,224,.25),
      inset 0 1px 0 rgba(255,255,255,.10);
  }
}

/* ---------- Reduced motion: kill all 3D / scene effects ---------- */
@media (prefers-reduced-motion: reduce){
  .scene-canvas{ display: none !important; }
  .chapters{ display: none !important; }
  .cursor{ display: none !important; }
  body{ cursor: auto !important; }
  .hero, .filosofia, .chapters{ cursor: auto !important; }
  .treatment__media,
  .filosofia .triad__item{ transform: none !important; }
}

/* ---------- Chi sono: titolo più sobrio ---------- */
.chi-sono .section__title{
  font-size: clamp(1.9rem, 3.2vw, 2.8rem);
  line-height: 1.15;
}
.chi-sono .section__title em{
  color: color-mix(in srgb, var(--primary) 70%, var(--ink));
  font-variation-settings: "SOFT" 100, "opsz" 144, "wght" 350;
}
