/* Moda Immagine — stile del tema (porting della home statica su Elementor v4)
   I selettori dei contenuti sono prefissati con body.mi per avere priorità
   sugli stili base dei widget atomici di Elementor (.elementor .e-*-base). */
/* Moda Immagine — Luxury Hair Spa · Home
   Layout: editoriale a tutta larghezza, ritmo carta / tortora / nero come la stationery,
   tipografia Roomy (la stessa del logo) in maiuscolo + Russolo per il testo.
   v2 — revisione UI/UX: contrasti AA misurati, testo ≥16px, label ≥12px, target ≥24px,
   menu mobile, skip link, motion solo transform/opacity/clip-path, reduced-motion completo.
   v3 — immersiva: GSAP + ScrollTrigger + SplitText + Lenis (self-hosted in assets/vendor). */
@font-face { font-family: "Roomy"; src: url("../fonts/roomy.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "Roomy Serif"; src: url("../fonts/roomy-serif.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "Russolo"; src: url("../fonts/russolo.woff2") format("woff2"); font-weight: 200 800; font-display: swap; }
:root {
  /* colori di brand (esecutivi) */
  --paper: #F2EFEC;       /* fondo principale */
  --sand: #DED9C8;        /* crema del marchio */
  --sage: #B2B1A5;        /* salvia — solo decorativo / stato "spento" */
  --taupe: #9D9684;       /* tortora del logo — solo grafica decorativa (aria-hidden) */
  --taupe-text: #8A8372;  /* tortora per titoli grandi su carta: 3.3:1 (AA testo grande) */
  --taupe-deep: #6E6757;  /* fondo sezioni piene: testo carta 4.9:1 (AA) */
  --ink: #161514;         /* nero caldo: su carta 15.9:1 */
  --line: rgba(22, 21, 20, .16);

  --f-display: "Roomy", "Didot", "Bodoni 72", "Times New Roman", serif;
  --f-serif: "Roomy Serif", "Roomy", Georgia, serif;
  --f-body: "Russolo", "Helvetica Neue", Arial, sans-serif;

  /* motion tokens */
  --ease-out: cubic-bezier(.2, .7, .2, 1);
  --t-fast: 200ms;        /* hover / feedback */
  --t-mid: 320ms;         /* cambi di stato */
  --t-slow: 1100ms;       /* reveal immagini */

  --gut: clamp(16px, 2vw, 28px);
  --hdr: 56px;
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--hdr) + 16px); }
html, body { overflow-x: clip; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-body);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
body.mi img { display: block; max-width: 100%; height: auto; }
body.mi figure { margin: 0; }
body.mi [hidden] { display: none !important; }
body.mi a { color: inherit; text-decoration: none; }
body.mi a, body.mi button { touch-action: manipulation; }
body.mi button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
body.mi svg { display: block; }
body.mi :focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
body.mi main:focus { outline: none; }
body.mi address { font-style: normal; }
body.mi .sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
body.mi .skip {
  position: fixed; z-index: 100; left: var(--gut); top: 8px;
  padding: 12px 18px; background: var(--ink); color: var(--paper);
  transform: translateY(-160%); transition: transform var(--t-fast) var(--ease-out);
}
body.mi .skip:focus { transform: none; }
/* ---------- Elementor (widget atomici v4): azzera padding/min-width predefiniti ---------- *//* .e-con imposta width:100%, position e z-index tramite variabili: si torna ai valori normali dei blocchi */
body.mi .elementor :where(.e-div-block-base, .e-flexbox-base) { padding: 0; min-width: 0; margin: 0; width: auto; height: auto; min-height: 0; max-width: none; position: static; z-index: auto; }
body.mi .elementor :where(.e-heading-base, .e-paragraph-base) { cursor: auto; }
.admin-bar .hdr.hdr { top: 32px; }
@media (max-width: 782px) {
.admin-bar .hdr.hdr { top: 46px; } 
}
/* immagini "sorgente": modificabili in Elementor, spostate dal JS nella posizione finale */
body.mi .applause__src, body.mi .cta__src, body.mi .tip__img { display: none !important; }
body.mi .applause__img .applause__src, body.mi .cta__img .cta__src { display: block !important; }
/* ---------- tipografia ---------- */
body.mi .label {
  font-family: var(--f-body);
  font-weight: 500;
  font-size: 12px;
  line-height: 1.4;
  letter-spacing: .12em;
  text-transform: uppercase;
}
body.mi .display {
  font-family: var(--f-display);
  font-weight: 400;
  text-transform: uppercase;
  line-height: .92;
  letter-spacing: -.005em;
  margin: 0;
}
body.mi h1, body.mi h2, body.mi h3 { margin: 0; font-weight: 400; }
body.mi h2 > .display, body.mi .display > span { display: block; }
body.mi .h-xl { font-size: clamp(56px, 10.2vw, 168px); }
body.mi .h-lg { font-size: clamp(44px, 6.4vw, 104px); }
body.mi .lead {
  font-family: var(--f-display);
  font-weight: 400;
  text-transform: uppercase;
  font-size: clamp(22px, 2.05vw, 32px);
  line-height: 1.1;
  margin: 0;
  text-wrap: balance;
}
body.mi .indent { text-indent: clamp(60px, 11vw, 160px); }
body.mi .indent * { text-indent: 0; }
/* SplitText: parole e righe non ereditano il rientro */
body.mi .body { max-width: 62ch; font-size: 16px; margin: 0; }
body.mi .muted { color: var(--taupe-text); }
body.mi .link-u {
  display: inline-flex; align-items: center;
  min-height: 32px;
  border-bottom: 1px solid currentColor;
  transition: opacity var(--t-fast) var(--ease-out);
}
body.mi .link-u:hover { opacity: .65; }
body.mi .btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 28px;
  font-family: var(--f-body); font-weight: 500; font-size: 13px; letter-spacing: .12em; text-transform: uppercase;
  background: var(--ink); color: var(--paper); border: 1px solid var(--ink);
  transition: background-color var(--t-fast) var(--ease-out), color var(--t-fast) var(--ease-out), transform var(--t-fast) var(--ease-out);
}
body.mi .btn:hover { background: var(--taupe-deep); border-color: var(--taupe-deep); }
body.mi .btn:active { transform: scale(.98); }
body.mi .btn--ghost { background: transparent; color: var(--ink); }
body.mi .btn--ghost:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
/* ---------- header ---------- */
body.mi .hdr {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: calc(var(--hdr) + env(safe-area-inset-top, 0px));
  padding: env(safe-area-inset-top, 0px) var(--gut) 0;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  background: rgba(242, 239, 236, .94);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
  transition: transform 450ms var(--ease-out);
}
body.mi .hdr.is-hidden { transform: translateY(-101%); }
body.mi .hdr__logo { width: clamp(132px, 13vw, 190px); color: var(--ink); grid-column: 2; grid-row: 1; display: flex; align-items: center; min-height: 44px; }
body.mi .hdr__nav { display: none; gap: 6px; grid-column: 1; grid-row: 1; }
body.mi .hdr__nav a, body.mi .hdr__right { display: inline-flex; align-items: center; min-height: 44px; padding: 0 8px; }
body.mi .hdr__nav a:first-child { padding-left: 0; }
body.mi .hdr__nav a { transition: opacity var(--t-fast); }
body.mi .hdr__nav a:hover { opacity: .6; }
body.mi .hdr__right { justify-self: end; gap: 8px; grid-column: 3; grid-row: 1; padding-right: 0; }
body.mi .hdr__right .plus { font-size: 18px; line-height: 0; font-weight: 300; transition: transform var(--t-mid) var(--ease-out); }
body.mi .hdr__right:hover .plus { transform: rotate(90deg); }
body.mi .hdr__menu { grid-column: 1; grid-row: 1; justify-self: start; display: inline-flex; align-items: center; gap: 10px; min-height: 44px; min-width: 44px; }
body.mi .hdr__burger { display: grid; gap: 5px; width: 20px; }
body.mi .hdr__burger i { display: block; height: 1px; background: currentColor; transition: transform var(--t-mid) var(--ease-out); }
body.mi .hdr__menu[aria-expanded="true"] .hdr__burger i:first-child { transform: translateY(3px) rotate(45deg); }
body.mi .hdr__menu[aria-expanded="true"] .hdr__burger i:last-child { transform: translateY(-3px) rotate(-45deg); }
@media (min-width: 900px) {
body.mi .hdr__nav { display: flex; }
body.mi .hdr__menu { display: none; }

}
@media (max-width: 899px) {
body.mi .hdr__right .long { display: none; } 
}
/* menu mobile */
body.mi .mnav {
  position: fixed; inset: 0; z-index: 45;
  background: var(--taupe-deep); color: var(--paper);
  padding: calc(var(--hdr) + env(safe-area-inset-top, 0px) + 6vh) var(--gut) calc(28px + env(safe-area-inset-bottom, 0px));
  display: flex; flex-direction: column; justify-content: space-between;
  overflow: hidden auto;
  animation: mnavIn var(--t-mid) var(--ease-out) both;
}
body.mi .mnav .waves { position: absolute; inset: 0; pointer-events: none; opacity: .5; }
body.mi .mnav__links { position: relative; display: grid; }
body.mi .mnav__links a {
  font-family: var(--f-display); text-transform: uppercase; font-size: clamp(40px, 11vw, 64px); line-height: 1.05;
  min-height: 56px; display: flex; align-items: center; border-bottom: 1px solid rgba(242,239,236,.2);
}
body.mi .mnav__foot { position: relative; display: grid; gap: 6px; margin-top: 6vh; }
@keyframes mnavIn { from { opacity: 0; transform: translateY(-12px); } to { opacity: 1; transform: none; } }
body.menu-open { overflow: hidden; }
body.menu-open .hdr { background: transparent; border-color: transparent; color: var(--paper); backdrop-filter: none; }
body.menu-open .hdr__logo { color: var(--paper); }
/* ---------- hero ---------- */
body.mi .hero {
  position: relative;
  padding-top: var(--hdr);
  min-height: 112vh;
  overflow: clip;
}
body.mi .hero__word {
  position: absolute; left: 0; right: 0; top: calc(var(--hdr) - 1.6vw);
  display: flex; flex-direction: column; align-items: center;
  color: var(--taupe);
  pointer-events: none;
}
body.mi .hero__word span {
  display: block;
  font-family: var(--f-display);
  font-size: 13vw; /* "LUXURY HAIR SPA" su una riga, ~96vw */
  line-height: .86;
  letter-spacing: -.02em;
  white-space: nowrap;
}
body.mi .hero__media {
  position: relative; z-index: 2;
  width: min(42vw, 640px);
  aspect-ratio: 4 / 5;
  margin: 7vw auto 0;
  overflow: hidden;
}
body.mi .hero__media img, body.mi .hero__media .e-image-base { width: 100%; height: 100%; object-fit: cover; object-position: 50% 28%; will-change: transform; }
body.mi .hero__w {
  position: absolute; z-index: 3;
  font-family: var(--f-display);
  font-size: clamp(36px, 4.2vw, 72px);
  line-height: 1;
  text-transform: uppercase;
  will-change: transform;
}
body.mi .hero__w--1 { left: 5%;  top: 64vh; }
/* una riga quasi orizzontale, da sinistra a destra, */
body.mi .hero__w--2 { left: 31%; top: 68vh; }
/* con un leggero scalino: PRENDITI → CURA → DI → TE */
body.mi .hero__w--3 { left: 75%; top: 72vh; }
/* fuori dalla foto: sui capelli scuri non si leggeva */
body.mi .hero__w--4 { right: 6%; top: 76vh; }
body.mi .hero__badge {
  position: absolute; z-index: 3; right: var(--gut); bottom: 6vh;
  width: 96px; color: var(--ink);
}
body.mi .hero__badge text { font-family: var(--f-body); font-size: 10px; letter-spacing: .3em; fill: var(--ink); }
/* ---------- galleria pin ---------- */
body.mi .gallery { position: relative; }
body.mi .gallery__stick {
  position: relative; height: 100vh; height: 100svh; overflow: hidden;
  display: grid; place-items: center;
}
body.mi .gallery__grid {
  position: relative;
  width: calc(100% - 2 * var(--gut));
  height: calc(100svh - 2 * var(--gut) - var(--hdr));
  margin-top: var(--hdr);
}
body.mi .g-item { position: absolute; overflow: hidden; will-change: transform, opacity; }
body.mi .g-item img { width: 100%; height: 100%; object-fit: cover; }
body.mi .g-c { left: 33.6%; width: 32.8%; top: 0; height: 100%; }
body.mi .g-l1 { left: 0; width: 32.2%; top: 0; height: 47%; }
body.mi .g-l2 { left: 0; width: 32.2%; top: 51%; height: 49%; }
body.mi .g-r1 { right: 0; width: 32.2%; top: 0; height: 58%; }
body.mi .g-r2 { right: 0; width: 32.2%; top: 62%; height: 38%; }
/* stato animato (JS): la figura centrale copre lo schermo e si "ritaglia" con clip-path */
body.mi .gallery.is-live .g-c { z-index: 3; will-change: clip-path; }
body.mi .gallery.is-live .g-c img { will-change: transform; }
body.mi .gallery__cap { position: absolute; left: 50%; bottom: 5vh; transform: translateX(-50%); z-index: 4; color: var(--ink); background: var(--paper); padding: 8px 14px; opacity: 0; transition: opacity var(--t-mid); }
body.mi .gallery.is-done .gallery__cap { opacity: 1; }
/* ---------- luxury hair spa ---------- */
body.mi .applause { padding: 16vh var(--gut) 10vh; }
body.mi .applause__title { display: grid; justify-items: center; text-align: center; }
body.mi .applause__h { display: grid; justify-items: center; gap: .1em; }
body.mi .applause__mono { width: clamp(70px, 7vw, 110px); color: var(--taupe); margin-bottom: 2vw; }
body.mi .applause__h > .applause__row { display: flex; align-items: center; gap: .22em; }
body.mi .applause__img { width: 1.6em; height: .62em; overflow: hidden; display: inline-block; }
body.mi .applause__img img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; }
body.mi .reveal-p { margin-top: 18vh; position: relative; }
body.mi .reveal-p .lead .w { color: var(--sage); transition: color var(--t-fast); }
body.mi .reveal-p .lead .w.on { color: var(--ink); }
/* etichetta a sinistra del paragrafo rientrato (desktop) */
body.mi .kicker, body.mi .num { display: block; margin-bottom: 14px; }
@media (min-width: 761px) {
body.mi .reveal-p > .kicker, body.mi .manifesto__text > .kicker, body.mi .panel__text > .kicker, body.mi .step__txt > .num, body.mi .slide__txt > .num {
    position: absolute; top: .55em; left: 0; margin: 0;
  }

}
/* ---------- sezioni piene ---------- */
body.mi .band { background: var(--taupe-deep); color: var(--paper); position: relative; overflow: clip; }
body.mi .band--ink { background: var(--ink); color: var(--sand); }
body.mi .band__in { padding: 14vh var(--gut) 12vh; position: relative; z-index: 1; }
body.mi .band .waves, body.mi .footer .waves { position: absolute; inset: 0; pointer-events: none; opacity: .5; }
body.mi .manifesto h2 { max-width: 13ch; text-wrap: balance; }
body.mi .manifesto__row { display: grid; grid-template-columns: 1fr; gap: 6vh; margin-top: 18vh; }
body.mi .manifesto__text { position: relative; min-width: 0; display: grid; justify-items: start; }
body.mi .manifesto__text .lead { max-width: 30ch; }
body.mi .manifesto__text .link-u { margin-top: 10vh; }
body.mi .manifesto__imgs { display: flex; align-items: flex-end; gap: var(--gut); justify-content: flex-end; }
body.mi .manifesto__imgs > div { overflow: hidden; }
body.mi .manifesto__imgs .mf-a { width: 38%; aspect-ratio: 4/3.4; }
body.mi .manifesto__imgs .mf-b { width: 46%; aspect-ratio: 3/4; }
body.mi .manifesto__imgs img { width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 900px) {
body.mi .manifesto__row { grid-template-columns: 1.15fr 1fr; align-items: end; }

}
/* scorrimento orizzontale */
body.mi .hscroll { position: relative; }
body.mi .hscroll__stick { position: relative; height: 100vh; height: 100svh; overflow: hidden; display: flex; align-items: center; }
body.mi .hscroll__track { display: flex; gap: 6vw; padding: var(--hdr) var(--gut) 6svh; will-change: transform; }
body.mi .panel { flex: 0 0 auto; width: min(1180px, 88vw); display: grid; grid-template-columns: 1fr; gap: 4vh; }
body.mi .panel__text { position: relative; min-width: 0; }
body.mi .panel__text .body { margin-top: 2.4vh; }
body.mi .panel__media { display: grid; grid-template-columns: 1fr 1.3fr; gap: var(--gut); align-items: start; }
body.mi .panel__media > div { overflow: hidden; background: rgba(255,255,255,.08); }
body.mi .panel__media .p1 { aspect-ratio: 4/5; }
body.mi .panel__media .p2 { aspect-ratio: 4/5; margin-top: 10vh; }
body.mi .panel__media img { width: 100%; height: 100%; object-fit: cover; }
body.mi .panel__foot { display: flex; justify-content: space-between; gap: 20px; align-items: end; }
@media (min-width: 900px) {
/* desktop: ogni pannello occupa quasi tutto lo schermo, colonna testo con una misura vera
     (non più "quello che avanza" dalle foto), foto dimensionate su altezza e larghezza */
body.mi .hscroll__track { gap: 14vw; padding: calc(var(--hdr) + 4svh) 8vw 6svh; align-items: center; }
body.mi .panel { width: auto; grid-template-columns: minmax(360px, 30vw) auto; grid-template-rows: auto 1fr; align-items: start; column-gap: 7vw; row-gap: 6svh; min-height: 72svh; }
body.mi .panel__text { padding-top: 2svh; }
body.mi .panel__text .lead { max-width: 24ch; }
body.mi .panel__text .body { margin-top: 4svh; max-width: 44ch; }
body.mi .panel__foot { align-self: end; }
body.mi .panel__media { grid-row: span 2; display: flex; align-items: flex-start; gap: 4vw; }
body.mi .panel__media .p1 { height: min(44svh, 26vw); width: auto; aspect-ratio: 4/5; }
body.mi .panel__media .p2 { height: min(66svh, 38vw); width: auto; aspect-ratio: 4/5; margin-top: 10svh; }

}
/* ---------- metodo / rituale ---------- */
body.mi .method { padding: 16vh var(--gut) 8vh; }
body.mi .method__intro { display: grid; }
body.mi .method__intro > span:nth-child(2) { padding-left: 22vw; color: var(--taupe-text); }
body.mi .method__intro > span:nth-child(3) { padding-left: 44vw; }
body.mi .step { display: grid; grid-template-columns: 1fr; gap: 5vh; margin-top: 16vh; }
body.mi .step__txt { position: relative; min-width: 0; }
body.mi .step__txt .body { margin-top: 2vh; }
body.mi .step__fig { position: relative; }
body.mi .step__fig .frame { overflow: hidden; }
body.mi .step__fig img { width: 100%; height: 100%; object-fit: cover; }
body.mi .step__cap { display: block; margin-top: 14px; }
body.mi .step--a .frame { aspect-ratio: 3/2; }
body.mi .step--b .frame { aspect-ratio: 4/5; }
@media (min-width: 900px) {
body.mi .step { grid-template-columns: 1fr 1fr; column-gap: var(--gut); align-items: start; }
body.mi .step--b .step__fig { order: -1; width: 66%; }
body.mi .step--b .step__txt { margin-top: 34vh; }

}
body.mi .bigshot { position: relative; margin: 22vh 0 0; padding: 0 var(--gut); }
body.mi .bigshot__mono { position: absolute; left: 50%; top: -13vw; margin-left: -23vw; width: 46vw; color: var(--taupe); z-index: 0; }
body.mi .bigshot__frame { position: relative; z-index: 1; width: min(64vw, 980px); margin: 0 auto; aspect-ratio: 1.05/1; overflow: hidden; }
body.mi .bigshot__frame img { width: 100%; height: 100%; object-fit: cover; }
body.mi .bigshot__w { position: absolute; z-index: 2; font-family: var(--f-display); text-transform: uppercase; font-size: clamp(34px, 4.2vw, 72px); line-height: 1; color: var(--ink); will-change: transform; }
body.mi .bigshot__w--1 { left: var(--gut); top: 64%; }
body.mi .bigshot__w--2 { left: 36%; top: 76%; color: var(--paper); }
body.mi .bigshot__w--3 { right: 16%; top: 92%; }
/* ---------- CTA ---------- */
body.mi .cta { padding: 16vh var(--gut) 12vh; }
body.mi .cta__rule { border-top: 1px solid var(--line); padding-top: 22px; }
body.mi .cta__big { margin: 8vh 0 9vh; display: grid; }
body.mi .cta__line { display: flex !important; align-items: center; gap: .25em; flex-wrap: wrap; }
body.mi .cta__img { display: inline-block; width: 1.3em; height: .82em; overflow: hidden; }
body.mi .cta__img img { width: 100%; height: 100%; object-fit: cover; }
body.mi .bookrow {
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  min-height: 76px;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  padding: 20px var(--gut);
  margin-inline: calc(-1 * var(--gut)); /* a tutta larghezza, oltre il margine della sezione */
  position: relative; overflow: hidden; isolation: isolate;
}
body.mi .bookrow__l { display: flex; align-items: center; gap: 26px; }
body.mi .bookrow__arrow { width: 36px; flex: none; transition: transform var(--t-mid) var(--ease-out); }
body.mi .bookrow:hover .bookrow__arrow, body.mi .bookrow:focus-visible .bookrow__arrow { transform: translateX(10px); }
body.mi .bookrow__t { font-family: var(--f-display); text-transform: uppercase; font-size: clamp(22px, 2.2vw, 34px); line-height: 1; }
body.mi .bookrow::before { content: ""; position: absolute; inset: 0; background: var(--sand); transform: scaleY(0); transform-origin: bottom; transition: transform var(--t-mid) var(--ease-out); z-index: -1; }
body.mi .bookrow:hover::before { transform: scaleY(1); }
/* ---------- servizi ---------- */
body.mi .services h2 { max-width: 12ch; text-wrap: balance; }
body.mi .cards { display: grid; grid-template-columns: 1fr; gap: calc(var(--gut) * 1.5); margin-top: 10vh; }
@media (min-width: 760px) {
body.mi .cards { grid-template-columns: repeat(3, 1fr); gap: var(--gut); } 
}
body.mi .card { display: grid; grid-template-rows: auto auto 1fr auto; min-width: 0; justify-items: start; }
body.mi .card__frame { aspect-ratio: 2/3; overflow: hidden; width: 100%; }
body.mi .card__frame > * { transition: transform 700ms var(--ease-out); }
body.mi .card:hover .card__frame > * { transform: scale(1.03); }
body.mi .card h3 { font-family: var(--f-display); text-transform: uppercase; font-size: clamp(24px, 2vw, 32px); margin: 18px 0 8px; line-height: 1; }
body.mi .card p { margin: 0 0 5vh; font-size: 16px; max-width: 36ch; }
/* ---------- placeholder foto ---------- */
body.mi .ph {
  position: relative; width: 100%; height: 100%;
  background: var(--sand);
  display: grid; place-items: center;
  overflow: hidden;
}
body.mi .ph .waves { position: absolute; inset: 0; opacity: 1; }
body.mi .ph__tag { position: relative; z-index: 1; display: grid; justify-items: center; gap: 10px; text-align: center; padding: 10px 14px; color: var(--ink); background: rgba(242,239,236,.85); }
body.mi .ph__tag svg { width: 30px; color: var(--taupe-deep); }
body.mi .band .ph { background: rgba(242, 239, 236, .08); }
body.mi .band .ph__tag { background: rgba(22,21,20,.55); color: var(--paper); }
body.mi .band .ph__tag svg { color: var(--sand); }
/* ---------- parole ---------- */
body.mi .words { padding: 16vh var(--gut) 12vh; }
body.mi .words__head { display: grid; }
body.mi .words__head > span:nth-child(2) { padding-left: 18vw; font-family: var(--f-serif); text-transform: lowercase; color: var(--taupe-text); }
body.mi .words__intro { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-top: 4vh; flex-wrap: wrap; }
body.mi .words__intro p { max-width: 40ch; margin: 0; }
body.mi .slider__nav { display: flex; align-items: center; gap: 18px; }
body.mi .slider__count { font-variant-numeric: tabular-nums; min-width: 3.5em; text-align: center; }
body.mi .slider { margin-top: 10vh; position: relative; }
body.mi .slide { display: grid; grid-template-columns: 1fr; gap: 5vh; }
body.mi .slide[hidden] { display: none !important; }
body.mi .slide__fig { aspect-ratio: 4/5; overflow: hidden; width: min(100%, 520px); }
body.mi .slide__txt { position: relative; min-width: 0; align-self: end; }
body.mi .slide__who { margin-top: 3vh; }
@media (min-width: 900px) {
body.mi .slide { grid-template-columns: 1fr 1fr; column-gap: var(--gut); } 
}
body.mi .slide.is-in .lead, body.mi .slide.is-in .slide__fig { animation: fadeUp 600ms var(--ease-out) both; }
@keyframes fadeUp { from { opacity: .2; transform: translateY(16px); } to { opacity: 1; transform: none; } }
/* ---------- consigli ---------- */
body.mi .tips { padding: 4vh var(--gut) 14vh; }
body.mi .tips__head { display: grid; grid-template-columns: 1fr; gap: 3vh; margin-bottom: 7vh; }
@media (min-width: 900px) {
body.mi .tips__head { grid-template-columns: 1fr 1fr; align-items: end; } 
}
body.mi .tips__head p { max-width: 42ch; margin: 0; }
body.mi .tip {
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  border-top: 1px solid var(--line); padding: 26px 0; min-height: 64px;
  position: relative;
}
body.mi .tips .tip:last-child { border-bottom: 1px solid var(--line); }
body.mi .tip__t { font-family: var(--f-display); text-transform: uppercase; font-size: clamp(26px, 3.6vw, 56px); line-height: 1; transition: transform var(--t-mid) var(--ease-out), color var(--t-fast); }
body.mi .tip:hover .tip__t, body.mi .tip:focus-visible .tip__t { transform: translateX(2vw); color: var(--taupe-deep); }
body.mi .tips { position: relative; }
body.mi .tips__follow { position: fixed; left: 0; top: 0; z-index: 30; width: 240px; aspect-ratio: 4/5; overflow: hidden; pointer-events: none; opacity: 0; transform: translate(-50%, -50%) scale(.6); }
body.mi .tips__follow img { width: 100%; height: 100%; object-fit: cover; }
@media (hover: none), (max-width: 899px) {
body.mi .tips__follow { display: none; } 
}
/* ---------- striscia immagini ---------- */
body.mi .strip { overflow: hidden; position: relative; }
/* scorrimento continuo e costante, solo transform (GPU) */
body.mi .strip__track { display: flex; width: max-content; animation: marquee 80s linear infinite; will-change: transform; backface-visibility: hidden; }
body.mi .strip__track > img { height: clamp(260px, 42vw, 640px); width: auto; max-width: none; aspect-ratio: 3/4; object-fit: cover; flex: none; }
body.mi .strip__track > img:nth-child(3n+2) { aspect-ratio: 4/3; }
@keyframes marquee { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(-50%, 0, 0); } }
/* ---------- contatti ---------- */
body.mi .contact { padding: 8vh var(--gut) 0; }
body.mi .contact h2 span { display: block; color: var(--taupe-text); }
body.mi .contact h2 { margin-top: 6vh; text-wrap: balance; }
body.mi .contact__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6vh; }
body.mi .loc { display: grid; grid-template-columns: 1fr; gap: 40px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 40px 0 48px; margin-top: 8vh; }
body.mi .loc__col { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; min-width: 0; }
body.mi .loc__name { font-family: var(--f-display); text-transform: uppercase; font-size: clamp(24px, 2.2vw, 34px); line-height: 1; }
body.mi .loc__info { display: grid; gap: 4px; font-size: 16px; }
body.mi .loc__info span { user-select: all; }
body.mi .loc__maps { margin-top: 6px; }
body.mi .loc__info a { width: fit-content; }
body.mi .loc__col p.loc__info { margin: 0; max-width: 30ch; }
body.mi .hours { display: grid; grid-template-columns: auto auto; justify-content: start; gap: 4px 26px; font-size: 16px; font-variant-numeric: tabular-nums; }
@media (min-width: 900px) {
body.mi .loc { grid-template-columns: repeat(3, 1fr); column-gap: var(--gut); align-items: start; }
body.mi .loc__name { grid-column: 1 / -1; }
  

}
/* ---------- footer ---------- */
body.mi .footer { position: relative; overflow: clip; padding-top: 5vh; }
body.mi .footer__row { position: relative; z-index: 2; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px 30px; padding: 0 var(--gut) 3vh; }
body.mi .footer__row nav { display: flex; gap: 8px 22px; flex-wrap: wrap; }
body.mi .footer__row nav a { display: inline-flex; align-items: center; min-height: 44px; }
body.mi .footer__big { position: relative; z-index: 1; color: var(--taupe); display: flex; justify-content: center; padding: 2vh var(--gut) calc(4vh + env(safe-area-inset-bottom, 0px)); overflow: hidden; }
body.mi .footer__big svg { width: 100%; height: auto; }
/* ---------- reveal immagini (stato a riposo già visibile) ---------- */
body.mi [data-parallax] { height: 116% !important; }
body.mi .rv { overflow: hidden; }
/* ---------- layout statico: mobile e riduzione movimento ---------- */
@media (max-width: 760px) {
body.mi .hero { min-height: auto; padding-bottom: 14vh; }
body.mi .hero__media { width: 70vw; margin-top: 9vw; }
body.mi .hero__w { font-size: 34px; }
body.mi .hero__w--1 { left: 5%; top: auto; bottom: 26%; }
body.mi .hero__w--2 { left: auto; right: 8%; top: auto; bottom: 22%; }
body.mi .hero__w--3 { left: 28%; right: auto; top: auto; bottom: 10%; }
body.mi .hero__w--4 { left: auto; right: 26%; top: auto; bottom: 6%; }
body.mi .hero__badge { display: none; }
body.mi .indent { text-indent: 0; }
body.mi .method__intro > span:nth-child(2) { padding-left: 12vw; }
body.mi .method__intro > span:nth-child(3) { padding-left: 24vw; }
body.mi .bigshot__frame { width: 100%; }
body.mi .bigshot__mono { width: 80vw; margin-left: -40vw; top: -24vw; }
body.mi .bigshot__w--1 { top: 8%; left: 8%; }
body.mi .bigshot__w--2 { top: 46%; left: 30%; }
body.mi .bigshot__w--3 { top: 82%; right: 8%; }
body.mi .bookrow__l { gap: 14px; }
body.mi .bookrow > .label { display: none; }
body.mi .words__head > span:nth-child(2) { padding-left: 10vw; }
body.mi .contact__ctas .btn { flex: 1 1 100%; }

}
@media (prefers-reduced-motion: reduce) and (min-width: 761px) {
body.mi .gallery { height: auto; }
body.mi .gallery__stick { position: static; }
body.mi .gallery__cap { opacity: 1; }

}
@media (max-width: 760px) {
body.mi .gallery { height: auto; padding-top: var(--hdr); }
body.mi .gallery__stick { position: static; height: auto; display: block; padding: 0 var(--gut); }
body.mi .gallery__grid { height: auto; width: 100%; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
body.mi .g-item { position: static; width: auto !important; height: auto !important; aspect-ratio: 3/4; transform: none !important; opacity: 1 !important; clip-path: none !important; }
body.mi .g-c { grid-column: span 2; aspect-ratio: 4/5; order: -1; }
body.mi .gallery__cap { position: static; transform: none; opacity: 1; background: none; padding: 0; text-align: center; margin-top: 20px; }

}
@media (max-width: 899px), (prefers-reduced-motion: reduce) {
body.mi .hscroll { height: auto !important; }
body.mi .hscroll__stick { position: static; height: auto; display: block; }
body.mi .hscroll__track { flex-direction: column; transform: none !important; padding: 8vh var(--gut); gap: 12vh; }
body.mi .panel { width: 100%; }

}
@media (prefers-reduced-motion: reduce) {
*, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
body.mi .rv { clip-path: none; transform: none; }
body.mi [data-parallax] { height: 100% !important; transform: none !important; }

}
/* =====================================================================
   v3 — strati immersivi
   ===================================================================== *//* loader (solo con JS e solo alla prima visita della sessione) */
body.mi .loader { display: none; }
html.is-loading .loader {
  display: grid; position: fixed; inset: 0; z-index: 200;
  background: var(--taupe-deep); color: var(--paper);
  place-items: center; align-content: center; gap: 28px;
  animation: loaderFailsafe .01s linear 6s forwards; /* se JS si blocca, sparisce comunque */
}
html.is-loading body { overflow: hidden; }
body.mi .loader__waves { position: absolute; inset: 0; opacity: .55; }
body.mi .loader__mono { position: relative; width: clamp(80px, 9vw, 130px); }
body.mi .loader__word { position: relative; width: min(70vw, 520px); clip-path: inset(0 100% 0 0); }
body.mi .loader__count { position: absolute; right: var(--gut); bottom: calc(22px + env(safe-area-inset-bottom, 0px)); font-variant-numeric: tabular-nums; }
@keyframes loaderFailsafe { to { visibility: hidden; opacity: 0; } }
/* cursore personalizzato (solo puntatore fine) */
body.mi .cursor { display: none; }
html.has-cursor .cursor {
  display: grid; place-items: center;
  position: fixed; left: 0; top: 0; z-index: 150; pointer-events: none;
  width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%;
  background: var(--paper); mix-blend-mode: difference;
  transition: width var(--t-mid) var(--ease-out), height var(--t-mid) var(--ease-out), margin var(--t-mid) var(--ease-out);
}
html.has-cursor .cursor.is-link { width: 46px; height: 46px; margin: -23px 0 0 -23px; }
html.has-cursor .cursor.is-label { width: 104px; height: 104px; margin: -52px 0 0 -52px; mix-blend-mode: normal; background: var(--ink); }
body.mi .cursor__label { font-family: var(--f-body); font-weight: 500; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--paper); opacity: 0; transition: opacity var(--t-fast); }
body.mi .cursor.is-label .cursor__label { opacity: 1; }
/* maschere per righe e lettere */
body.mi .line-mask { display: block; overflow: hidden; padding-bottom: .06em; margin-bottom: -.06em; }
body.mi .char-mask { display: inline-block; overflow: hidden; vertical-align: top; }
body.mi .hero__word .char, body.mi .footer__big .char { display: inline-block; will-change: transform; }
/* sezioni che "prendono" lo schermo *//* foto che riempiono la cornice */
body.mi .card__frame img, body.mi .slide__fig img, body.mi .step__fig .frame img, body.mi .panel__media img { display: block; width: 100%; height: 100%; object-fit: cover; }
/* ---------- editor Elementor (niente JS: layout statico, sorgenti visibili) ---------- */
body.mi-editor .applause__src, body.mi-editor .cta__src, body.mi-editor .tip__img { display: block !important; width: 180px; height: auto; margin-top: 12px; outline: 1px dashed var(--taupe); }
body.mi-editor .hero { min-height: 100vh; }
/* ---------- mobile: consigli senza hover (la voce al centro mostra la sua foto) ---------- */
body.mi .tip__thumb { display: none; }
@media (hover: none), (max-width: 899px) {
/* titolo | foto | "Leggi": lo spazio della foto è sempre riservato, così il testo non si sposta */
body.mi .tip { gap: 14px; }
body.mi .tip__t { flex: 1 1 auto; min-width: 0; }
body.mi .tip > .label { order: 2; flex: none; }
body.mi .tip__thumb {
    display: block; order: 1; flex: none; position: relative;
    width: clamp(52px, 15vw, 96px); aspect-ratio: 4/5; overflow: hidden; pointer-events: none;
    transform: scale(0) rotate(-8deg); transform-origin: 50% 60%;
    transition: transform 600ms var(--ease-out);
  }
body.mi .tip__thumb img { width: 100%; height: 100%; object-fit: cover; }
body.mi .tip.is-active .tip__thumb { transform: scale(1) rotate(-4deg); }
body.mi .tip.is-active .tip__t { transform: translateX(8px); color: var(--taupe-deep); }

}
@media (max-width: 760px) {
body.mi .card__frame > * { transition: none; } /* niente transizione CSS sotto al parallax GSAP */

}
