/* ==========================================================================
   Antonella Marchiselli — PMU Artist
   Tema giorno "Nude" (beige e marrone) · Tema notte "Noir" (nero e avorio)
   ========================================================================== */

@font-face {
  font-family: "Bodoni Moda";
  src: url("assets/fonts/bodoni-moda.woff2") format("woff2");
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Bodoni Moda";
  src: url("assets/fonts/bodoni-moda-italic.woff2") format("woff2");
  font-weight: 400 900;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Jost";
  src: url("assets/fonts/jost.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* ---------- Token ---------- */

:root {
  --font-display: "Bodoni Moda", "Bodoni 72", Didot, Georgia, serif;
  --font-text: "Jost", Futura, "Century Gothic", system-ui, sans-serif;

  --ease-out: cubic-bezier(.2, .7, .1, 1);
  --ease-curtain: cubic-bezier(.77, 0, .18, 1);

  --gutter: clamp(1.5rem, 6vw, 4rem);
  --space: clamp(5rem, 16vw, 9.5rem);
  --measure: 34rem;
  --header-h: 4.5rem;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

/* Giorno — "Nude": i toni dei pigmenti su pelle chiara */
:root,
[data-theme="day"] {
  --bg: #F0E6DB;        /* latte */
  --bg-alt: #E6D6C6;    /* sabbia */
  --ink: #2B1D16;       /* espresso */
  --ink-soft: #6B5244;  /* moka */
  --accent: #9C6F55;    /* cacao, tono pigmento sopracciglia */
  --line: rgb(43 29 22 / .16);
  --btn-bg: #2B1D16;
  --btn-ink: #F6EEE6;
  --scrim: rgb(43 29 22 / .45);
  --blush: #B9786B;     /* rosa nude, per il Lips Blush */
  color-scheme: light;
}

/* Notte — "Noir": bianco e nero, un solo filo di cipria */
[data-theme="night"] {
  --bg: #000000;        /* nero */
  --bg-alt: #141110;    /* carbone caldo */
  --ink: #F1ECE6;       /* avorio */
  --ink-soft: #A69E96;  /* grigio caldo */
  --accent: #D6BCA6;    /* cipria */
  --line: rgb(241 236 230 / .16);
  --btn-bg: #F1ECE6;
  --btn-ink: #000000;
  --scrim: rgb(0 0 0 / .7);
  --blush: #D9A194;
  --blush-alpha: .85;
  color-scheme: dark;
}

/* ---------- Base ---------- */

*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + var(--safe-top));
}
html.is-locked { overflow: hidden; }

body {
  margin: 0;
  min-height: 100vh;
  /* Grana leggera, come carta fotografica: una piccola texture ripetuta che
     scorre con la pagina (nessun livello fisso da ricomporre durante lo scroll) */
  background: var(--bg) url("assets/grain.png");
  color: var(--ink);
  font-family: var(--font-text);
  font-size: 1.0625rem;
  font-weight: 400;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color .6s ease, color .6s ease;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
p { margin: 0; text-wrap: pretty; }
ul { margin: 0; padding: 0; list-style: none; }
figure, blockquote, dl, dd { margin: 0; }

h1, h2, h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-optical-sizing: auto;
  text-wrap: balance;
}
h2 {
  font-size: clamp(2.25rem, 9vw, 3.75rem);
  line-height: 1.06;
  letter-spacing: -.015em;
}
h3 {
  font-size: clamp(2rem, 8vw, 2.75rem);
  line-height: 1.05;
  letter-spacing: -.01em;
}
strong { font-weight: 500; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip {
  position: fixed;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  padding: .75rem 1.25rem;
  background: var(--btn-bg);
  color: var(--btn-ink);
  border-radius: 999px;
  text-decoration: none;
}
.skip:focus { top: calc(1rem + var(--safe-top)); }

.icon {
  width: 1.25rem;
  height: 1.25rem;
  flex: none;
}

/* Dati ancora da ricevere dalla cliente */
.tbd {
  display: inline-block;
  padding: 0 .4em;
  border: 1px dashed currentColor;
  border-radius: .35em;
  font-family: var(--font-text);
  font-style: normal;
  font-size: .78em;
  letter-spacing: .02em;
  line-height: 1.6;
  color: var(--ink-soft);
  vertical-align: .08em;
}

/* ---------- Testi ricorrenti ---------- */

.kicker {
  margin-bottom: 1rem;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.1875rem;
  line-height: 1.3;
  color: var(--ink-soft);
}

.block {
  max-width: calc(var(--measure) + 2 * var(--gutter));
  margin-inline: auto;
  padding: var(--space) var(--gutter);
  text-align: center;
}
.block > h2 { margin-bottom: 1.5rem; }
.block > p + p { margin-top: 1.1rem; }
.block > .btn,
.block > .socials { margin-top: 2.5rem; }

.lead {
  font-size: 1.1875rem;
  line-height: 1.6;
}

/* ---------- Pulsanti ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .65rem;
  min-height: 3.5rem;
  padding: 0 1.9rem;
  border: 1px solid var(--btn-bg);
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-ink);
  font-family: var(--font-text);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: .02em;
  text-decoration: none;
  cursor: pointer;
  transition: transform .3s var(--ease-out), background-color .3s, color .3s, border-color .3s;
}
.btn:hover { background: var(--accent); border-color: var(--accent); color: var(--btn-ink); }
.btn:active { transform: scale(.97); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--ghost:hover { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.btn--lg { min-height: 3.875rem; padding: 0 2.25rem; font-size: 1.0625rem; }

.text-link {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  font-size: 1rem;
  color: var(--ink);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: .35em;
  text-decoration-color: var(--line);
  transition: text-decoration-color .3s;
}
.text-link:hover { text-decoration-color: currentColor; }

.icon-btn,
.round-btn {
  display: inline-grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: inherit;
  cursor: pointer;
  transition: background-color .3s, color .3s, border-color .3s, opacity .3s;
}
.icon-btn:hover { background: var(--line); }

.round-btn { border: 1px solid var(--line); }
.round-btn:hover { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.round-btn:disabled { opacity: .35; cursor: default; background: transparent; color: inherit; border-color: var(--line); }
.round-btn--lg { width: 3.5rem; height: 3.5rem; }
.round-btn--lg .icon { width: 1.5rem; height: 1.5rem; }

/* ---------- Header ---------- */

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: calc(var(--header-h) + var(--safe-top));
  padding: var(--safe-top) calc(var(--gutter) - .5rem) 0 var(--gutter);
  transition: background-color .4s, box-shadow .4s;
}
/* Niente vetro sfocato: sui telefoni va ricalcolato a ogni fotogramma di scroll */
.site-header.is-scrolled {
  background: color-mix(in srgb, var(--bg) 95%, transparent);
  box-shadow: 0 1px 0 var(--line);
}
.site-header__actions { display: flex; gap: .25rem; }

.brand {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  line-height: 1;
  text-decoration: none;
}
/* Il monogramma del logo è una sagoma: prende il colore del tema */
.brand__mark {
  display: block;
  width: 3.5rem;
  aspect-ratio: 480 / 365;
  background: currentColor;
  -webkit-mask: url("assets/logo-am.png") center / contain no-repeat;
  mask: url("assets/logo-am.png") center / contain no-repeat;
}
.brand__sub {
  margin-top: .3rem;
  font-size: .5625rem;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
}

[data-theme="day"] .icon--sun,
[data-theme="night"] .icon--moon { display: none; }

.menu-btn__lines {
  position: relative;
  width: 1.5rem;
  height: 7px;
  border-block: 1.5px solid currentColor;
}

/* Cambio tema manuale: il nuovo tema si apre a cerchio dal pulsante */
html.vt-reveal::view-transition-old(root),
html.vt-reveal::view-transition-new(root) {
  animation: none;
  mix-blend-mode: normal;
}

/* ---------- Menu a tutto schermo ---------- */

.menu,
.sheet,
.lightbox {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  color: var(--ink);
  background: transparent;
  overscroll-behavior: contain;
}
.menu::backdrop,
.sheet::backdrop,
.lightbox::backdrop { background: transparent; }

.menu {
  background: var(--bg);
  opacity: 0;
  transition: opacity .45s ease;
}
.menu.is-open { opacity: 1; }

.menu__inner {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: var(--safe-top) calc(var(--gutter) - .5rem) calc(2rem + var(--safe-bottom)) var(--gutter);
}
.menu__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
}
.menu nav { margin-block: auto; padding-block: 2rem; }
.menu__links { display: grid; gap: .25rem; text-align: center; }
.menu__links a {
  display: inline-block;
  padding: .2rem .5rem;
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 10vw, 3.75rem);
  line-height: 1.2;
  text-decoration: none;
}
.menu__links a:hover { color: var(--accent); }
.menu__links li,
.menu__foot {
  opacity: 0;
  transform: translateY(1.5rem);
  transition: opacity .6s ease, transform .8s var(--ease-out);
}
.menu.is-open .menu__links li,
.menu.is-open .menu__foot { opacity: 1; transform: none; }
.menu.is-open .menu__links li:nth-child(2) { transition-delay: .05s; }
.menu.is-open .menu__links li:nth-child(3) { transition-delay: .1s; }
.menu.is-open .menu__links li:nth-child(4) { transition-delay: .15s; }
.menu.is-open .menu__links li:nth-child(5) { transition-delay: .2s; }
.menu.is-open .menu__links li:nth-child(6) { transition-delay: .25s; }
.menu.is-open .menu__foot { transition-delay: .28s; }
.menu__foot {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .75rem;
}

/* ---------- Immagini a tutta larghezza (stile "band") ---------- */

.band {
  position: relative;
  overflow: hidden;
  background: var(--bg-alt);
}
.band__inner {
  width: 100%;
  height: 100%;
}
.band img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Parallasse legata allo scroll e calcolata dal browser stesso, fuori dal
   JavaScript: resta agganciata al dito anche su iPhone. Dove non è supportata
   la foto resta ferma. */
@supports (animation-timeline: view()) {
  .band img {
    animation: band-drift linear both;
    animation-timeline: view();
    will-change: transform;
  }
  @keyframes band-drift {
    from { transform: translate3d(0, 6%, 0) scale(1.14); }
    to { transform: translate3d(0, -6%, 0) scale(1.14); }
  }
}

/* Sipario: un velo del colore di fondo che si ritira verso l'alto.
   Anima solo transform, che il telefono gestisce senza ridisegnare. */
.band::after,
.reel::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: var(--bg);
  transform-origin: 50% 0;
  transform: scaleY(0);
  pointer-events: none;
}

/* ---------- Hero ---------- */

.hero {
  padding-top: calc(var(--header-h) + var(--safe-top) + clamp(1.5rem, 7vw, 3rem));
}
.hero__text {
  padding: 0 var(--gutter) clamp(3rem, 12vw, 4.5rem);
  text-align: center;
}
.hero__title {
  font-size: clamp(3rem, 14.8vw, 7.5rem);
  line-height: .9;
  letter-spacing: -.025em;
}
.hero__line {
  display: block;
  overflow: hidden;
  padding: .1em .04em .06em;
  margin: -.1em 0 -.06em;
}
.hero__line > span { display: inline-block; }

.swoosh {
  display: block;
  width: min(72vw, 21rem);
  height: auto;
  margin-inline: auto;
  color: var(--accent);
}
.hero__swoosh { margin-block: .85rem 1.5rem; }
.swoosh__draw { stroke-dasharray: 1 2; stroke-dashoffset: 0; }

.hero__lead {
  max-width: 18em;
  margin-inline: auto;
  font-size: clamp(1.25rem, 5vw, 1.5rem);
  font-weight: 300;
  line-height: 1.45;
  color: var(--ink-soft);
  text-wrap: balance;
}
.hero__cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .75rem;
  margin-top: 2.25rem;
}
.hero__band { aspect-ratio: 4 / 5; }
.hero__band img { object-position: 50% 20%; }

/* Sequenza d'apertura: nome, tratto, sottotitolo, ritratto */
@keyframes rise { from { transform: translateY(105%); } }
@keyframes fade-up { from { opacity: 0; transform: translateY(14px); } }
@keyframes draw { from { stroke-dashoffset: 1; } }
@keyframes curtain { from { transform: scaleY(1); } }
@keyframes settle { from { transform: scale(1.3); } }

.hero__kicker { animation: fade-up 1s var(--ease-out) .1s both; }
.hero__line > span { animation: rise 1.3s var(--ease-out) .2s both; }
.hero__line + .hero__line > span { animation-delay: .34s; }
.hero__swoosh .swoosh__draw { animation: draw 1.7s cubic-bezier(.6, 0, .25, 1) .85s both; }
.hero__lead { animation: fade-up 1.1s var(--ease-out) 1.25s both; }
.hero__cta { animation: fade-up 1.1s var(--ease-out) 1.4s both; }
.hero__band::after { animation: curtain 1.6s var(--ease-curtain) .45s both; }
.hero__band .band__inner { animation: settle 2.2s var(--ease-out) .45s both; }

/* ---------- Comparsa allo scroll ---------- */

.js [data-reveal="fade"],
.js [data-reveal="stagger"] > * {
  transition: opacity 1s ease, transform 1.1s var(--ease-out);
}
.js [data-reveal="fade"]:not(.is-in),
.js [data-reveal="stagger"]:not(.is-in) > * {
  opacity: 0;
  transform: translateY(18px);
}
.js [data-reveal="stagger"] > :nth-child(2) { transition-delay: .08s; }
.js [data-reveal="stagger"] > :nth-child(3) { transition-delay: .16s; }
.js [data-reveal="stagger"] > :nth-child(4) { transition-delay: .24s; }
.js [data-reveal="stagger"] > :nth-child(5) { transition-delay: .32s; }
.js [data-reveal="stagger"] > :nth-child(n+6) { transition-delay: .4s; }

.js [data-reveal="curtain"]::after { transition: transform 1.5s var(--ease-curtain); }
.js [data-reveal="curtain"] .band__inner { transition: transform 2.1s var(--ease-out); }
.js [data-reveal="curtain"]:not(.is-in)::after { transform: scaleY(1); }
.js [data-reveal="curtain"]:not(.is-in) .band__inner { transform: scale(1.3); }

.js .swoosh:not(.hero__swoosh) .swoosh__draw { transition: stroke-dashoffset 1.8s cubic-bezier(.6, 0, .25, 1) .2s; }
.js .block:not(.is-in) .swoosh .swoosh__draw { stroke-dashoffset: 1; }

/* ---------- Chi sono ---------- */

.about__band { aspect-ratio: 3 / 4; }
.about__band img { object-position: 50% 15%; }
.about__text .lead { margin-bottom: 1.5rem; }
.pull {
  margin: 2.25rem auto;
  max-width: 22em;
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.5rem, 6vw, 1.875rem);
  line-height: 1.3;
  text-wrap: balance;
}
.about__text .pull + p { margin-top: 0; }

/* ---------- Trattamenti ---------- */

.services .block { padding-bottom: clamp(2.5rem, 8vw, 4rem); }
.services__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2.25rem 1rem;
  max-width: 72rem;
  margin-inline: auto;
  padding: 0 var(--gutter);
}

.service {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-align: center;
  cursor: pointer;
}
.service__media {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: var(--bg-alt);
}
.service__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease-out);
}
.service:hover .service__media img { transform: scale(1.06); }
.service__plus {
  position: absolute;
  right: .6rem;
  bottom: .6rem;
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background: var(--bg);
  color: var(--ink);
  transition: transform .5s var(--ease-out);
}
.service:hover .service__plus { transform: rotate(90deg); }
.service__name {
  display: block;
  margin-top: 1rem;
  font-family: var(--font-display);
  font-size: clamp(1.375rem, 5.5vw, 1.75rem);
  line-height: 1.15;
}
.service__area {
  display: block;
  margin-top: .3rem;
  font-size: .875rem;
  color: var(--ink-soft);
}

/* Scheda trattamento: dal basso su telefono, finestra centrata su desktop */
.sheet {
  display: grid;
  align-items: end;
}
.sheet:not([open]) { display: none; }
.sheet__scrim {
  position: absolute;
  inset: 0;
  background: var(--scrim);
  opacity: 0;
  transition: opacity .45s ease;
}
.sheet.is-open .sheet__scrim { opacity: 1; }
/* Il pannello resta fermo (con la X sempre visibile), scorre solo .sheet__scroll */
.sheet__panel {
  position: relative;
  display: flex;
  flex-direction: column;
  max-height: calc(100svh - 2.5rem - var(--safe-top));
  overflow: hidden;
  background: var(--bg);
  border-radius: 1.5rem 1.5rem 0 0;
  transform: translateY(100%);
  transition: transform .55s var(--ease-out);
}
.sheet__scroll {
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: var(--line) transparent;
}
.sheet.is-open .sheet__panel { transform: none; }
.sheet__close {
  position: absolute;
  top: .75rem;
  right: .75rem;
  z-index: 1;
  background: var(--bg);
}
.sheet__close:hover { background: var(--bg-alt); }
.sheet__img {
  width: 100%;
  height: min(38svh, 20rem);
  object-fit: cover;
  object-position: 50% 45%;
}
.sheet__body {
  padding: 2rem var(--gutter) calc(2.5rem + var(--safe-bottom));
  text-align: center;
}
.sheet__body .kicker { margin-bottom: .5rem; }
.sheet__tagline {
  margin: .75rem 0 1.5rem;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.25rem;
  line-height: 1.35;
  color: var(--ink-soft);
}
.sheet__body p + p { margin-top: 1rem; }
.sheet__body .btn { margin-top: 2rem; }

/* La tecnica si disegna quando la scheda si apre:
   prima il tratteggio del disegno preliminare, poi il lavoro vero e proprio */
.technique {
  max-width: 19rem;
  margin: 0 auto 1.75rem;
}
.technique svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}
.technique figcaption {
  margin-top: .4rem;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1rem;
  color: var(--ink-soft);
}
.tq-guide {
  fill: none;
  stroke: var(--ink-soft);
  stroke-width: .75;
  stroke-dasharray: 2 3.5;
  opacity: .6;
}
.tq-hair path {
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.1;
  stroke-linecap: round;
  stroke-dasharray: 1 2;
}
.tq-pixel circle { fill: var(--accent); }
.tq-pixel circle,
.tq-bloom {
  transform-box: fill-box;
  transform-origin: center;
}
.tq-line {
  fill: none;
  stroke: var(--ink-soft);
  stroke-width: 1;
  stroke-linecap: round;
  stroke-dasharray: 1 2;
}
.tq-fill { fill: var(--blush); opacity: var(--blush-alpha, .55); }
.tq-iris { fill: none; stroke: var(--ink-soft); stroke-width: .9; }
.tq-pupil { fill: var(--ink-soft); }
.tq-liner { fill: var(--ink); }
.tq-liner-draw { stroke-dasharray: 1 2; }

@keyframes tq-fade { from { opacity: 0; } }
@keyframes tq-pop { from { opacity: 0; transform: scale(0); } }
@keyframes tq-bloom { from { transform: scale(0); } }

.js .sheet:not(.is-shown) :is(.tq-guide, .tq-pixel circle, .tq-iris, .tq-pupil) { opacity: 0; }
.js .sheet:not(.is-shown) :is(.tq-hair path, .tq-line, .tq-liner-draw) { stroke-dashoffset: 1; }
.js .sheet:not(.is-shown) .tq-bloom { transform: scale(0); }

.sheet.is-shown .tq-guide { animation: tq-fade .6s ease .35s both; }
.sheet.is-shown .tq-hair path { animation: draw .5s ease-out calc(.8s + var(--i) * 45ms) both; }
.sheet.is-shown .tq-pixel circle { animation: tq-pop .4s var(--ease-out) calc(.8s + var(--d)) both; }
.sheet.is-shown .tq-line { animation: draw 1.1s cubic-bezier(.6, 0, .25, 1) calc(.45s + var(--i, 0) * .35s) both; }
.sheet.is-shown :is(.tq-iris, .tq-pupil) { animation: tq-fade .8s ease 1s both; }
.sheet.is-shown .tq-bloom { animation: tq-bloom 1.5s var(--ease-out) 1.4s both; }
.sheet.is-shown .tq-liner-draw { animation: draw 1.3s cubic-bezier(.6, 0, .25, 1) 1.5s both; }

/* ---------- Prima e dopo ---------- */

.portfolio .block { padding-bottom: clamp(2.5rem, 8vw, 4rem); }
.quote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.3125rem, 5vw, 1.625rem);
  line-height: 1.4;
  color: var(--ink-soft);
}

.strip { overflow-x: clip; }
.strip__track {
  position: relative;
  display: flex;
  gap: .75rem;
  overflow-x: auto;
  padding: 0 var(--gutter);
  scroll-snap-type: x mandatory;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
}
.strip__track::-webkit-scrollbar { display: none; }
.strip__track > li {
  flex: none;
  scroll-snap-align: center;
}
.filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .4rem;
  margin: 0 auto 2rem;
  padding: 0 1rem;
}
.chip {
  min-height: 2.75rem;
  padding: 0 .9rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: .9375rem;
  cursor: pointer;
  transition: background-color .3s, color .3s, border-color .3s;
}
.chip:hover { border-color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--bg); }

.strip__track { transition: opacity .3s ease, transform .3s ease; }
.strip.is-switching .strip__track { opacity: 0; transform: translateY(10px); }

/* --focus (0–1) arriva dallo script: 1 = foto al centro */
.strip__item {
  display: block;
  height: clamp(17rem, 78vw, 27rem);
  padding: 0;
  border: 0;
  background: var(--bg-alt);
  overflow: hidden;
  cursor: zoom-in;
  opacity: calc(.4 + .6 * var(--focus, 1));
  transform: scale(calc(.86 + .14 * var(--focus, 1)));
}
.strip__item img {
  width: auto;
  height: 100%;
  transition: transform 1.2s var(--ease-out);
}
.strip__item:hover img { transform: scale(1.04); }


.strip__controls {
  display: flex;
  align-items: center;
  gap: 1rem;
  max-width: 34rem;
  margin: 1.75rem auto 0;
  padding: 0 var(--gutter);
}
.strip__progress {
  position: relative;
  flex: 1;
  height: 1px;
  background: var(--line);
}
.strip__progress > span {
  position: absolute;
  inset: -.5px auto -.5px 0;
  width: 100%;
  background: var(--ink);
  transform-origin: left;
  transform: scaleX(var(--progress, .15));
  transition: transform .25s linear;
}

/* Galleria a schermo intero: sempre scura, per giudicare bene i colori */
.lightbox {
  background: rgb(0 0 0 / .95);
  color: #F1ECE6;
  opacity: 0;
  transition: opacity .4s ease;
}
.lightbox[open] { display: flex; flex-direction: column; }
.lightbox.is-open { opacity: 1; }
.lightbox__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: calc(var(--header-h) + var(--safe-top));
  padding: var(--safe-top) calc(var(--gutter) - .5rem) 0 var(--gutter);
}
.lightbox__count { font-size: .9375rem; letter-spacing: .06em; }
.lightbox .icon-btn:hover { background: rgb(255 255 255 / .12); }
.lightbox__track {
  flex: 1;
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding-bottom: var(--safe-bottom);
}
.lightbox__track::-webkit-scrollbar { display: none; }
.lightbox__slide {
  flex: 0 0 100%;
  display: grid;
  place-items: center;
  padding: 0 1rem 2rem;
  scroll-snap-align: center;
}
.lightbox__slide img {
  width: 100%;
  height: 100%;
  max-width: 56rem;
  max-height: calc(100svh - var(--header-h) - 5rem);
  object-fit: contain;
}
.lightbox__nav {
  position: absolute;
  top: 50%;
  translate: 0 -50%;
  display: none;
  border-color: rgb(255 255 255 / .25);
}
.lightbox__nav:hover { background: #F1ECE6; color: #000; border-color: #F1ECE6; }
.lightbox__nav--prev { left: 1.5rem; }
.lightbox__nav--next { right: 1.5rem; }

/* ---------- Recensioni ---------- */

.reviews .block { padding-bottom: clamp(2.5rem, 8vw, 4rem); }
.reviews__list {
  display: grid;
  gap: 3.5rem;
  max-width: 62rem;
  margin-inline: auto;
  padding: 0 var(--gutter) var(--space);
}
.review {
  max-width: 30rem;
  margin-inline: auto;
  text-align: center;
}
.stars {
  display: inline-flex;
  gap: .2rem;
  color: var(--accent);
}
.stars .icon { width: 1rem; height: 1rem; }
.review blockquote {
  margin: 1.25rem 0 1.25rem;
  font-family: var(--font-display);
  font-size: clamp(1.125rem, 4.4vw, 1.3125rem);
  line-height: 1.6;
}
.review blockquote p::before { content: "“"; }
.review blockquote p::after { content: "”"; }
.review figcaption { font-size: .9375rem; color: var(--ink-soft); }

/* ---------- Domande frequenti ---------- */

.faq .block { padding-bottom: clamp(2.5rem, 8vw, 4rem); }
.faq__list {
  max-width: 44rem;
  margin-inline: auto;
  padding: 0 var(--gutter) var(--space);
}
.faq__item {
  border-top: 1px solid var(--line);
  interpolate-size: allow-keywords;
}
.faq__item:last-child { border-bottom: 1px solid var(--line); }
.faq__item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  min-height: 3.5rem;
  padding: 1.1rem 0;
  font-family: var(--font-display);
  font-size: clamp(1.1875rem, 4.6vw, 1.4375rem);
  line-height: 1.3;
  list-style: none;
  cursor: pointer;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary:hover { color: var(--accent); }

/* Più che diventa meno */
.faq__icon {
  position: relative;
  flex: none;
  width: 1rem;
  height: 1rem;
}
.faq__icon::before,
.faq__icon::after {
  content: "";
  position: absolute;
  inset: 50% 0 auto;
  height: 1.5px;
  margin-top: -.75px;
  background: currentColor;
  transition: transform .45s var(--ease-out);
}
.faq__icon::after { transform: rotate(90deg); }
.faq__item[open] .faq__icon::after { transform: rotate(0deg); }

.faq__answer {
  padding: 0 2.25rem 1.5rem 0;
  color: var(--ink-soft);
}

/* Apertura morbida dove il browser lo permette, istantanea altrove */
.faq__item::details-content {
  block-size: 0;
  overflow: hidden;
  transition: block-size .5s var(--ease-out), content-visibility .5s allow-discrete;
}
.faq__item[open]::details-content { block-size: auto; }

/* ---------- Il trattamento in video ---------- */

.process .block { padding-bottom: clamp(2.5rem, 8vw, 4rem); }
.reel {
  position: relative;
  width: min(100%, 86svh * 9 / 16);
  aspect-ratio: 9 / 16;
  margin: 0 auto;
  overflow: hidden;
  background: var(--bg-alt);
}
.reel__video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.reel__toggle {
  position: absolute;
  right: .9rem;
  bottom: .9rem;
  border-color: rgb(255 255 255 / .45);
  background: rgb(0 0 0 / .35);
  color: #fff;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.reel__toggle:hover { background: #fff; border-color: #fff; color: #000; }
.reel.is-playing .icon--play,
.reel:not(.is-playing) .icon--pause { display: none; }

/* ---------- Contatti ---------- */

.contact { background: var(--bg-alt); transition: background-color .6s ease; }
.contact__swoosh { width: min(46vw, 12rem); margin-bottom: 1.75rem; }
.socials {
  display: flex;
  justify-content: center;
  gap: 1rem;
}
.info {
  display: grid;
  gap: 1.25rem;
  margin-top: 3rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--line);
}
.info dt {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.0625rem;
  color: var(--ink-soft);
}
.info dd { margin-top: .15rem; }
.maps-link { gap: .4rem; }
.maps-link .icon { width: 1.125rem; height: 1.125rem; }

.site-footer {
  padding: 2rem var(--gutter) calc(2.5rem + var(--safe-bottom));
  background: var(--bg-alt);
  border-top: 1px solid var(--line);
  font-size: .875rem;
  color: var(--ink-soft);
  text-align: center;
  transition: background-color .6s ease;
}

/* ---------- Pulsante "Prenota" fisso ---------- */

.fab {
  position: fixed;
  right: 1rem;
  bottom: calc(1rem + var(--safe-bottom));
  z-index: 30;
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  min-height: 3.25rem;
  padding: 0 1.4rem 0 1.15rem;
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-ink);
  font-weight: 500;
  letter-spacing: .02em;
  text-decoration: none;
  box-shadow: 0 10px 30px -10px rgb(43 29 22 / .45);
  opacity: 0;
  transform: translateY(140%);
  pointer-events: none;
  transition: opacity .4s ease, transform .6s var(--ease-out), background-color .3s;
}
.fab.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.fab:hover { background: var(--accent); }

/* ---------- Tablet ---------- */

@media (min-width: 640px) {
  .hero__band,
  .about__band {
    width: min(100% - 2 * var(--gutter), 32rem);
    margin-inline: auto;
  }
  .services__grid { gap: 3rem 1.5rem; }
  .sheet { align-items: center; justify-items: center; padding: 2rem; }
  /* Foto a sinistra ferma, testo a destra che scorre: la rotella funziona ovunque */
  .sheet__panel {
    --panel-h: min(42rem, 100svh - 4rem);
    width: min(100%, 56rem);
    max-height: var(--panel-h);
    border-radius: 0;
    opacity: 0;
    transform: translateY(1.5rem) scale(.98);
    transition: transform .55s var(--ease-out), opacity .4s ease;
  }
  .sheet.is-open .sheet__panel { opacity: 1; transform: none; }
  .sheet__scroll {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    align-items: start;
  }
  .sheet__img {
    position: sticky;
    top: 0;
    height: var(--panel-h);
  }
  .sheet__body {
    padding: 3.5rem 3rem;
    text-align: left;
  }
  .sheet__body .technique { margin-inline: 0; }
  .lightbox__nav { display: inline-grid; }
}

/* ---------- Desktop: impaginazione editoriale a due colonne ---------- */

@media (min-width: 1024px) {
  :root { --header-h: 5.5rem; }
  .brand__mark { width: 4.25rem; }

  .hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
    gap: 4rem;
    min-height: 100svh;
    max-width: 82rem;
    margin-inline: auto;
    padding: calc(var(--header-h) + 1rem) var(--gutter) 3rem;
  }
  .hero__band {
    order: -1;
    justify-self: end;
    width: auto;
    height: min(78svh, 44rem);
    margin: 0;
  }
  .hero__text { padding: 0; }
  .hero__title { font-size: clamp(4.5rem, 7vw, 7rem); }

  .about {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
    gap: 4rem;
    max-width: 82rem;
    margin-inline: auto;
    padding: var(--space) var(--gutter);
  }
  .about__band {
    order: 2;
    justify-self: start;
    width: min(100%, 32rem);
    margin: 0;
  }
  .about__text { padding: 0; justify-self: end; }

  .services__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2rem; }

  /* Video a sinistra e testo a destra: alterna con "Chi sono" */
  .process {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
    gap: 4rem;
    max-width: 82rem;
    margin-inline: auto;
    padding: var(--space) var(--gutter);
  }
  .process .process__text { order: 2; justify-self: start; padding: 0; }
  .reel {
    justify-self: end;
    width: auto;
    height: min(82svh, 46rem);
    margin: 0;
  }
  .strip__item { height: 28rem; }
  .reviews__list { grid-template-columns: 1fr 1fr; gap: 5rem; }
  .fab { right: 2rem; bottom: 2rem; }
}

/* ---------- Movimento ridotto ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-delay: 0s !important;
    transition-duration: .01ms !important;
    transition-delay: 0s !important;
  }
  .band img { animation: none !important; transform: none; }
}
