/* Rinnovare Casa Design, landing Progettazione */

:root {
  --dark: #24201e;
  --dark-2: #2f2a27;
  --cream: #f5f2ec;
  --white: #fffdfa;
  --text: #2a2522;
  --text-2: #6f665f;
  --line: #d9d1c6;
  --magenta: #d8196e;
  --magenta-hover: #b3125a;
  --on-dark: #f5f2ec;
  --on-dark-2: #bfb5ab;

  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Jost", "Helvetica Neue", Arial, sans-serif;
  --script: "Great Vibes", cursive;

  --gutter: clamp(20px, 5vw, 72px);
  --maxw: 1240px;
  --section-y: clamp(88px, 12vw, 168px);
  --ease: cubic-bezier(.22, .61, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
@media (prefers-reduced-motion: no-preference) { html:not(.lenis) { scroll-behavior: smooth; } }

body {
  margin: 0;
  background: var(--cream);
  color: var(--text);
  font-family: var(--sans);
  font-weight: 300;
  font-size: clamp(17px, 1.05vw + 12px, 19px);
  line-height: 1.65;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
h1, h2, h3, p, ul, ol, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
em { font-style: italic; }
strong { font-weight: 500; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 16px; top: -100px; z-index: 100; background: var(--dark); color: var(--on-dark); padding: 12px 18px; }
.skip:focus { top: 16px; }
:focus-visible { outline: 2px solid var(--magenta); outline-offset: 3px; }

.container { width: 100%; max-width: calc(var(--maxw) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- Tipografia ---------- */
.eyebrow {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--text-2);
  margin-bottom: 22px;
}
.eyebrow--light { color: var(--on-dark-2); }
.h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(36px, 4.6vw, 64px);
  line-height: 1.08;
  letter-spacing: -.005em;
  max-width: 18ch;
  text-wrap: balance;
}
.h2 em { color: var(--text-2); }
.lead { max-width: 56ch; color: var(--text-2); font-size: 1.06em; }
.rule { display: block; width: 48px; height: 2px; background: var(--magenta); margin: 28px 0; }
.script { font-family: var(--script); font-style: normal; font-weight: 400; color: var(--magenta); letter-spacing: 0; text-transform: none; }

/* ---------- Bottoni ---------- */
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 28px;
  font-family: var(--sans); font-weight: 500; font-size: 13px;
  letter-spacing: .2em; text-transform: uppercase; text-decoration: none;
  border: 1px solid transparent;
  transition: background-color .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
}
.btn--primary { background: var(--magenta); color: #fff; }
.btn--primary:hover { background: var(--magenta-hover); }
.btn--ghost { border-color: currentColor; color: var(--text); }
.btn--ghost:hover { background: var(--text); color: var(--cream); border-color: var(--text); }
.btn--ghost-light { color: var(--on-dark); }
.btn--ghost-light:hover { background: var(--on-dark); color: var(--dark); border-color: var(--on-dark); }
.btn__icon { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.3; stroke-linejoin: round; stroke-linecap: round; }

.icon { width: 40px; height: 40px; fill: none; stroke: var(--magenta); stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; }

/* Box neri claim */
.claim-box {
  display: inline-block;
  background: var(--dark); color: var(--on-dark);
  padding: 20px 28px;
  font-family: var(--sans); font-weight: 500; font-size: 14px;
  letter-spacing: .24em; text-transform: uppercase; line-height: 1.5;
}

/* ---------- Header ---------- */
.site-header {
  position: absolute; inset: 0 0 auto 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 22px var(--gutter);
  color: var(--on-dark);
}
.brand { display: inline-flex; align-items: center; min-height: 44px; color: var(--on-dark); text-decoration: none; }
.brand .logo { display: block; height: 46px; width: auto; }
.header-cta {
  display: inline-flex; align-items: center; min-height: 44px;
  font-size: 12px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; text-decoration: none;
  border-bottom: 1px solid rgba(245, 242, 236, .5);
}
.header-cta:hover { border-color: var(--magenta); }
@media (max-width: 480px) {
  .site-header { padding-top: 14px; }
  .brand .logo { height: 34px; }
  .header-cta { font-size: 11px; letter-spacing: .12em; white-space: nowrap; }
}
@media (max-width: 374px) { .hide-xs { display: none; } }

/* ---------- 1. Hero ---------- */
.hero { position: relative; min-height: 100svh; background: var(--dark); color: var(--on-dark); overflow: hidden; }
.hero__media { position: absolute; inset: 0; margin: 0; }
.hero__img-wrap { position: absolute; inset: 0; overflow: hidden; }
.hero__img-wrap img { width: 100%; height: 100%; object-fit: cover; transform-origin: 50% 50%; }
.hero__media::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to bottom, rgba(36,32,30,.6) 0%, rgba(36,32,30,0) 18%, rgba(36,32,30,.15) 28%, rgba(36,32,30,.82) 48%, rgba(36,32,30,.97) 100%);
}
.hero__label {
  position: absolute; right: var(--gutter); top: 96px; z-index: 2;
  font-family: var(--serif); font-style: italic; font-size: 20px; color: var(--on-dark);
}
.hero__text {
  position: relative; z-index: 3;
  min-height: 100svh;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 120px var(--gutter) 108px;
}
.hero__eyebrow { margin-bottom: 18px; font-size: 11px; letter-spacing: .22em; }
.hero__title { margin: 0; color: var(--on-dark); line-height: 0; }
.hero__logo { display: block; width: clamp(200px, 62vw, 280px); height: auto; }
.hero__lead { max-width: 40ch; color: rgba(245,242,236,.86); }
.hero .rule { margin: 22px 0; }
.hero .btn-row { margin-top: 30px; }

.scroll-cue {
  position: absolute; z-index: 4; left: 50%; bottom: 22px; transform: translateX(-50%);
  display: none; flex-direction: column; align-items: center; gap: 10px;
  min-width: 44px; min-height: 44px;
  font-size: 11px; letter-spacing: .3em; text-transform: uppercase; text-decoration: none; color: var(--on-dark-2);
}
.scroll-cue__line { display: block; width: 1px; height: 48px; background: rgba(245,242,236,.25); position: relative; overflow: hidden; }
.scroll-cue__line::after { content: ""; position: absolute; inset: 0; background: var(--magenta); transform-origin: top; animation: cue 2.2s var(--ease) infinite; }
@keyframes cue { 0% { transform: scaleY(0); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } 50.1% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

@media (max-width: 899px) {
  .hero__img-wrap img { animation: kenburns 24s ease-in-out infinite alternate; }
  .hero__media::after { background: linear-gradient(to bottom, rgba(36,32,30,.62) 0%, rgba(36,32,30,.4) 16%, rgba(36,32,30,.4) 26%, rgba(36,32,30,.82) 48%, rgba(36,32,30,.97) 100%); }
  .hero__label { display: none; }
  .hero__inner { text-align: center; }
  .hero__logo { margin: 0 auto; }
  .hero .rule { margin-left: auto; margin-right: auto; }
  .hero__lead { margin: 0 auto; }
  .hero .btn-row { justify-content: center; }
  .hero .btn-row .btn { flex: 1 1 100%; max-width: 320px; }
}
@keyframes kenburns { from { transform: scale(1.02); } to { transform: scale(1.14) translate(-1.5%, -1%); } }

@media (min-width: 900px) {
  .hero { display: grid; grid-template-columns: minmax(440px, 42%) 1fr; }
  .hero__text { min-height: 100vh; justify-content: center; padding: 140px clamp(40px, 5vw, 88px) 120px var(--gutter); background: var(--dark); }
  .hero__media { position: relative; inset: auto; min-height: 100vh; }
  .hero__media::after { background: linear-gradient(to right, rgba(36,32,30,.35), rgba(36,32,30,0) 30%); }
  .hero__label { top: auto; bottom: 48px; right: 48px; font-size: 24px; text-shadow: 0 1px 12px rgba(0,0,0,.35); }
  .hero__logo { width: clamp(260px, 22vw, 360px); }
  .hero__eyebrow { font-size: 12px; letter-spacing: .26em; }
  .scroll-cue { display: flex; left: calc(21% ); }
}

/* ---------- 2. Manifesto ---------- */
.manifesto { background: var(--cream); padding: var(--section-y) 0 0; }
.manifesto__stage { padding: 0 var(--gutter); max-width: calc(var(--maxw) + 2 * var(--gutter)); margin: 0 auto; display: grid; gap: 48px; }
.manifesto__text .h2 em { color: var(--magenta); }

.compare { position: relative; }
.compare__frame {
  position: relative; aspect-ratio: 3 / 4; overflow: hidden; background: var(--white);
  touch-action: pan-y; user-select: none; -webkit-user-select: none;
}
.compare__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.compare__after { clip-path: inset(0 0 0 var(--pos)); will-change: clip-path; }
.compare__tag {
  position: absolute; top: 16px; z-index: 3;
  font-size: 11px; font-weight: 500; letter-spacing: .24em; text-transform: uppercase;
  background: rgba(36,32,30,.82); color: var(--on-dark); padding: 7px 12px;
}
.compare__tag--before { left: 16px; }
.compare__tag--after { right: 16px; }
.compare__handle {
  position: absolute; top: 0; bottom: 0; left: var(--pos); z-index: 3; width: 2px; margin-left: -1px;
  background: var(--white); pointer-events: none; box-shadow: 0 0 0 .5px rgba(0,0,0,.15);
}
.compare__handle span {
  position: absolute; top: 50%; left: 50%; width: 48px; height: 48px; margin: -24px 0 0 -24px;
  border-radius: 50%; background: var(--magenta); box-shadow: 0 6px 20px rgba(36,32,30,.3);
}
.compare__handle span::before, .compare__handle span::after {
  content: ""; position: absolute; top: 50%; width: 7px; height: 7px; margin-top: -3.5px;
  border: solid #fff; border-width: 0 0 1.5px 1.5px;
}
.compare__handle span::before { left: 13px; transform: rotate(45deg); }
.compare__handle span::after { right: 13px; transform: rotate(-135deg); }
.compare__range {
  position: absolute; inset: 0; z-index: 4; width: 100%; height: 100%; margin: 0;
  opacity: 0; cursor: ew-resize; -webkit-appearance: none; appearance: none; background: transparent;
}
.compare__range::-webkit-slider-thumb { -webkit-appearance: none; width: 56px; height: 100vh; }
.compare__range::-moz-range-thumb { width: 56px; height: 100vh; border: 0; }
.compare__range:focus-visible + * , .compare__frame:focus-within { outline: 2px solid var(--magenta); outline-offset: 3px; }

.manifesto__phrases { margin-top: 28px; display: grid; gap: 4px; }
.manifesto__phrases li { font-family: var(--serif); font-style: italic; font-size: clamp(24px, 3vw, 34px); line-height: 1.2; }
.manifesto__phrases li:nth-child(2) { color: var(--text-2); }
.manifesto__phrases li:nth-child(3) { color: var(--magenta); }

/* Stato "scrub" desktop: il JS aggiunge la classe e pilota la tendina */
.manifesto--scrub .compare__handle,
.manifesto--scrub .compare__range,
.manifesto--scrub .compare__tag { display: none; }
.manifesto--scrub .manifesto__phrases {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; margin: 0;
  display: block; min-height: 40%; padding: 0 36px 40px;
  background: linear-gradient(to top, rgba(36,32,30,.88), rgba(36,32,30,0));
  pointer-events: none;
}
.manifesto--scrub .manifesto__phrases li { position: absolute; left: 36px; right: 36px; bottom: 40px; color: var(--on-dark); font-size: clamp(30px, 2.8vw, 42px); }
.manifesto--scrub .manifesto__phrases li:nth-child(3) { color: #ff6aa6; }

@media (min-width: 900px) {
  .manifesto__stage { grid-template-columns: 1fr minmax(0, 1fr); align-items: center; gap: clamp(48px, 7vw, 120px); }
  .manifesto--scrub .manifesto__stage { min-height: 100vh; padding-top: 6vh; padding-bottom: 6vh; }
  .manifesto--scrub .compare__frame { height: 86vh; aspect-ratio: auto; max-width: calc(86vh * .75); margin-left: auto; }
}

.manifesto__after { padding-bottom: var(--section-y); }
.quote-band {
  margin-top: clamp(72px, 9vw, 128px);
  background: var(--dark); color: var(--on-dark);
  padding: clamp(80px, 11vw, 160px) var(--gutter);
  text-align: center;
}
.rule--center { margin: 0 auto 40px; }
.quote-box {
  max-width: 1100px; margin: 0 auto;
  font-family: var(--serif); font-weight: 500; font-size: clamp(34px, 5.2vw, 76px); line-height: 1.1;
  text-wrap: balance;
}
.quote-box em { color: #ff6aa6; }
.quote-sub { margin: 36px auto 0; color: var(--on-dark-2); max-width: 52ch; }
.benefits { margin-top: clamp(72px, 9vw, 128px); display: grid; gap: 40px 32px; grid-template-columns: 1fr; border-top: 1px solid var(--line); padding-top: 48px; }
.benefit h3 { font-family: var(--sans); font-weight: 500; font-size: 14px; letter-spacing: .2em; text-transform: uppercase; margin: 20px 0 8px; }
.benefit p { color: var(--text-2); font-size: .95em; }
@media (min-width: 600px) { .benefits { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .benefits { grid-template-columns: repeat(5, 1fr); } }

/* ---------- 3. Problema ---------- */
.problem { background: var(--white); }
.problem__grid { display: grid; }
.problem__media { position: relative; overflow: hidden; min-height: 100svh; margin: 0; }
.problem__media > picture img, .problem__img-muted img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.problem__img-muted { position: absolute; inset: 0; opacity: 0; }
.problem__img-muted img { filter: grayscale(1) blur(3px) brightness(.85); transform: scale(1.04); }
.problem__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(36,32,30,.85), rgba(36,32,30,0) 55%); }
.problem__phrase {
  position: absolute; z-index: 2; left: var(--gutter); right: var(--gutter); bottom: clamp(32px, 6vw, 72px);
  font-family: var(--serif); font-weight: 500; font-size: clamp(34px, 4.4vw, 60px); line-height: 1.08; color: var(--on-dark);
  max-width: 14ch;
}
.problem__phrase em { color: #ff6aa6; }
.problem__text { padding: var(--section-y) var(--gutter); }
.fears { display: grid; gap: 0; margin-bottom: 40px; }
.fear { display: flex; align-items: center; gap: 18px; padding: 18px 0; border-bottom: 1px solid var(--line); font-size: 1.1em; }
.fear .icon { width: 30px; height: 30px; flex: none; stroke: var(--text-2); }
.fear__txt { position: relative; }
.strike { position: absolute; left: -4px; right: -4px; top: 55%; height: 2px; background: var(--magenta); transform: scaleX(0); transform-origin: left; }
@media (min-width: 900px) {
  .problem__grid { grid-template-columns: 1fr 1fr; min-height: 100vh; }
  .problem__media { min-height: 100vh; }
  .problem__text { display: flex; flex-direction: column; justify-content: center; padding: 96px clamp(40px, 6vw, 112px); }
}

/* ---------- 4. Metodo ---------- */
.metodo { background: var(--cream); padding-top: var(--section-y); }
.metodo__intro { padding-bottom: 56px; }
.metodo__rail { position: relative; background: var(--dark); overflow: hidden; }
.metodo__track {
  display: flex; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
  scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.metodo__track::-webkit-scrollbar { display: none; }
.step {
  position: relative; flex: 0 0 100%; min-height: 100svh; scroll-snap-align: start; scroll-snap-stop: always;
  display: flex; align-items: flex-end; overflow: hidden; color: var(--on-dark);
}
.step__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.step::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(36,32,30,.92) 0%, rgba(36,32,30,.45) 45%, rgba(36,32,30,.1) 100%); }
.step__card {
  position: relative; z-index: 2; margin: 0 var(--gutter) 96px; max-width: 520px;
  background: rgba(245,242,236,.96); color: var(--text); padding: 36px 32px;
}
.step--core .step__card { background: var(--dark); color: var(--on-dark); outline: 1px solid rgba(245,242,236,.14); }
.step__num {
  display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 50%;
  background: var(--magenta); color: #fff; font-family: var(--serif); font-size: 26px; line-height: 1;
}
.step__title { font-family: var(--sans); font-weight: 500; font-size: 15px; letter-spacing: .3em; text-transform: uppercase; margin: 22px 0 10px; }
.step__card p { color: var(--text-2); }
.step--core .step__card p { color: var(--on-dark-2); }
.step__badge {
  position: absolute; top: -14px; right: 24px;
  background: var(--magenta); color: #fff; padding: 6px 14px;
  font-size: 11px; font-weight: 500; letter-spacing: .26em; text-transform: uppercase;
}
.metodo__dots { position: absolute; left: 0; right: 0; bottom: 36px; z-index: 3; display: flex; justify-content: center; gap: 12px; pointer-events: none; }
.metodo__dots span { width: 8px; height: 8px; border-radius: 50%; background: rgba(245,242,236,.4); transition: background-color .3s, transform .3s; }
.metodo__dots span.is-on { background: var(--magenta); transform: scale(1.3); }
.metodo__progress { display: none; }
.metodo__close { text-align: center; padding-top: clamp(56px, 7vw, 96px); padding-bottom: var(--section-y); font-family: var(--serif); font-style: italic; font-size: clamp(28px, 3.4vw, 44px); line-height: 1.2; }

@media (min-width: 900px) {
  .step__card { margin: 0 0 14vh 8vw; padding: 48px 44px; }
  .metodo__dots { display: none; }
  .metodo__progress {
    display: flex; flex-direction: column; gap: 12px;
    position: absolute; left: 8vw; right: 8vw; bottom: 5vh; z-index: 3; color: var(--on-dark-2);
  }
  .metodo__bar { display: block; height: 2px; background: rgba(245,242,236,.2); overflow: hidden; }
  .metodo__fill { display: block; height: 100%; background: var(--magenta); transform: scaleX(.25); transform-origin: left; }
  .metodo__steps { display: flex; justify-content: space-between; font-size: 12px; letter-spacing: .2em; }
  /* Con il pin attivo lo scroll orizzontale è pilotato dal JS */
  .metodo--pinned .metodo__track { overflow: visible; scroll-snap-type: none; will-change: transform; }
  .metodo--pinned .step { flex-basis: 100vw; min-height: 100vh; }
}

/* ---------- 5. Perché noi ---------- */
.why { background: var(--cream); padding: var(--section-y) 0; border-top: 1px solid var(--line); }
.why__grid { display: grid; gap: 64px; }
.checklist { margin-top: 36px; display: grid; gap: 0; }
.checklist li { display: flex; gap: 16px; align-items: flex-start; padding: 14px 0; border-bottom: 1px solid var(--line); }
.check { flex: none; width: 24px; height: 24px; margin-top: 3px; fill: none; stroke: var(--magenta); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.why__visual { position: relative; }
.why__photo { position: relative; margin: 0; }
.why__photo img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.why__photo figcaption {
  position: absolute; left: 0; top: 0; max-width: 88%;
  background: var(--cream); padding: 12px 18px 12px 0;
  font-size: 11px; font-weight: 500; letter-spacing: .26em; text-transform: uppercase; color: var(--text); line-height: 1.6;
}
.why__box { background: var(--dark); color: var(--on-dark-2); padding: 40px 32px; margin: 24px 0 0; }
.why__box-title { color: var(--on-dark); font-weight: 500; font-size: 15px; letter-spacing: .24em; text-transform: uppercase; line-height: 1.6; margin-bottom: 14px; }
@media (min-width: 900px) {
  .why__grid { grid-template-columns: 1fr 1fr; gap: clamp(56px, 7vw, 120px); align-items: start; }
  .why__visual { padding-top: 40px; }
  .why__photo img { aspect-ratio: 4 / 5; }
  .why__box { position: relative; margin: -120px -24px 0 18%; padding: 48px 44px; z-index: 2; }
}

/* ---------- 6. Professionisti ---------- */
.partner { position: relative; overflow: hidden; background: var(--dark); color: var(--on-dark); padding: var(--section-y) 0; }
.partner__bg { position: absolute; left: 0; top: -12%; width: 100%; height: 124%; object-fit: cover; opacity: .22; }
.partner::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(to bottom, rgba(36,32,30,.6), rgba(36,32,30,.2) 40%, rgba(36,32,30,.75)); }
.partner__inner { position: relative; z-index: 2; }
.partner .lead { color: var(--on-dark-2); }
.partner__cards { display: grid; gap: 20px; margin-top: 56px; }
.pcard { background: rgba(47,42,39,.92); border: 1px solid rgba(245,242,236,.12); padding: 40px 32px; }
.pcard h3 { font-family: var(--serif); font-weight: 500; font-size: clamp(28px, 2.6vw, 36px); margin: 20px 0 20px; }
.pcard ul { display: grid; gap: 14px; }
.pcard li { position: relative; padding-left: 26px; color: var(--on-dark-2); }
.pcard li::before { content: ""; position: absolute; left: 0; top: .8em; width: 12px; height: 2px; background: var(--magenta); }
.pcard strong { color: var(--on-dark); }
@media (min-width: 900px) { .partner__cards { grid-template-columns: 1fr 1fr; gap: 28px; } .pcard { padding: 56px 48px; } }

/* ---------- 7. Marchi ---------- */
.brands { background: var(--white); padding: var(--section-y) 0; }
.brands__grid { margin-top: 56px; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.brand-logo {
  display: grid; place-items: center; aspect-ratio: 3 / 2; padding: 12px;
  border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.brand-logo img { max-height: 32px; max-width: 86%; width: auto; height: auto; object-fit: contain; filter: grayscale(1); opacity: .8; transition: filter .4s, opacity .4s; }
.brand-logo:hover img { filter: none; opacity: 1; }
@media (min-width: 600px) { .brands__grid { grid-template-columns: repeat(5, 1fr); } .brand-logo { aspect-ratio: 3 / 2; } .brand-logo img { max-height: 44px; max-width: 78%; } }
@media (min-width: 1100px) { .brand-logo img { max-height: 52px; } }

/* ---------- 8. Contatti ---------- */
.contact { display: grid; background: var(--dark); color: var(--on-dark); }
.contact__media { position: relative; margin: 0; overflow: hidden; min-height: 70svh; }
.contact__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.contact__dim { position: absolute; inset: 0; background: #000; opacity: 0; }
.contact__text { padding: var(--section-y) var(--gutter); display: flex; flex-direction: column; justify-content: center; }
.contact__title { font-size: clamp(44px, 6vw, 84px); }
.contact__title .script { font-size: 1.2em; line-height: .8; }
.contact .lead { color: var(--on-dark-2); }
.contact .btn-row { margin-top: 36px; }
.contact__addr { margin-top: 40px; font-size: 13px; letter-spacing: .08em; color: var(--on-dark-2); }
@media (min-width: 900px) {
  .contact { grid-template-columns: 5fr 6fr; min-height: 100vh; }
  .contact__media { min-height: 100vh; }
  .contact__text { padding: 120px clamp(40px, 7vw, 128px); }
}

/* ---------- 9. Footer ---------- */
.site-footer { background: var(--dark); border-top: 1px solid rgba(245,242,236,.1); color: var(--on-dark-2); text-align: center; padding: 64px var(--gutter) 64px; font-size: 14px; }
.site-footer__brand { color: var(--on-dark); margin: 0 auto 18px; }
.site-footer__brand .logo--stack { width: 150px; height: auto; margin: 0 auto; }

.site-footer__credits { margin-top: 28px; padding-top: 22px; border-top: 1px solid rgba(245,242,236,.1); font-size: 12px; letter-spacing: .08em; }
.site-footer__credits a { color: var(--on-dark); text-decoration: none; border-bottom: 1px solid rgba(245,242,236,.3); transition: border-color .3s; }
.site-footer__credits a:hover { border-color: var(--magenta); }
/* ---------- Form contatti ---------- */
.cform { margin-top: 56px; padding-top: 40px; border-top: 1px solid rgba(245,242,236,.14); max-width: 640px; }
.cform__intro { margin: 0 0 24px; font-family: var(--serif); font-size: clamp(24px, 2.4vw, 30px); line-height: 1.2; color: var(--on-dark); }
.cform__grid { display: grid; gap: 18px 20px; }
.cform__field { display: flex; flex-direction: column; gap: 8px; }
.cform__field label { font-size: 12px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--on-dark-2); }
.cform__field label span { text-transform: none; letter-spacing: .02em; font-weight: 300; }
.cform input[type="text"], .cform input[type="tel"], .cform input[type="email"], .cform select, .cform textarea {
  width: 100%; min-height: 50px; padding: 12px 14px;
  font: inherit; font-size: 16px; color: var(--on-dark);
  background: rgba(245,242,236,.06); border: 1px solid rgba(245,242,236,.22); border-radius: 0;
  transition: border-color .3s var(--ease), background-color .3s var(--ease);
}
.cform select { appearance: none; padding-right: 40px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23bfb5ab' stroke-width='1.6'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 18px; }
.cform select option { color: var(--text); }
.cform textarea { resize: vertical; min-height: 110px; }
.cform input:focus, .cform select:focus, .cform textarea:focus { outline: none; border-color: var(--magenta); background-color: rgba(245,242,236,.1); }
.cform__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.cform__check { display: flex; gap: 12px; align-items: flex-start; margin-top: 22px; font-size: 14px; line-height: 1.5; color: var(--on-dark-2); cursor: pointer; }
.cform__check input { flex: none; width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--magenta); }
.cform__check a { color: var(--on-dark); }
.cform__submit { margin-top: 26px; border: 0; cursor: pointer; }
.cform__submit:disabled { opacity: .6; cursor: wait; }
.cform__status { margin: 16px 0 0; min-height: 1.5em; font-size: 15px; color: var(--on-dark-2); }
.cform__status.is-ok { color: #8fdcaa; }
.cform__status.is-error { color: #ff9cbf; }
@media (min-width: 600px) {
  .cform__grid { grid-template-columns: 1fr 1fr; }
  .cform__field--wide { grid-column: 1 / -1; }
}

/* ---------- Showroom e mappa ---------- */
.visit { display: grid; background: var(--cream); }
.visit__text { padding: var(--section-y) var(--gutter); display: flex; flex-direction: column; justify-content: center; }
.visit__addr { font-style: normal; font-size: 18px; line-height: 1.7; color: var(--text); margin-bottom: 32px; }
.visit__addr a { color: var(--text); }
.visit__map { position: relative; min-height: 420px; background: var(--dark-2); }
.visit__map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.visit__placeholder {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
  padding: 32px var(--gutter); text-align: center; color: var(--on-dark);
  background:
    radial-gradient(circle at 50% 45%, rgba(216,25,110,.22), transparent 55%),
    repeating-linear-gradient(0deg, rgba(245,242,236,.05) 0 1px, transparent 1px 48px),
    repeating-linear-gradient(90deg, rgba(245,242,236,.05) 0 1px, transparent 1px 48px),
    var(--dark-2);
}
.visit__pin { width: 44px; height: 44px; fill: none; stroke: var(--magenta); stroke-width: 1.4; }
.visit__placeholder p { margin: 0; font-family: var(--serif); font-size: 26px; }
.visit__placeholder .btn { border: 0; cursor: pointer; }
.visit__placeholder small { font-size: 12px; color: var(--on-dark-2); }
@media (min-width: 900px) {
  .visit { grid-template-columns: 5fr 6fr; }
  .visit__map { min-height: 100%; }
  .visit__text { padding: var(--section-y) clamp(40px, 7vw, 128px); }
}

.site-footer__legal { margin-top: 18px; font-size: 12px; letter-spacing: .06em; }
.site-footer__legal a { color: var(--on-dark); }

/* area di tocco 44px senza spostare il layout */
.contact__addr a, .site-footer__credits a, .site-footer__legal a { position: relative; }
.contact__addr a::before, .site-footer__credits a::before, .site-footer__legal a::before { content: ""; position: absolute; inset: -13px -6px; }

/* ---------- Barra CTA mobile ---------- */
.mbar { display: none; }
@media (max-width: 899px) {
  .mbar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
    display: grid; grid-template-columns: 1fr 1fr;
    padding-bottom: env(safe-area-inset-bottom);
    background: var(--dark);
    transform: translateY(110%); transition: transform .45s var(--ease);
    box-shadow: 0 -8px 24px rgba(0,0,0,.18);
  }
  .mbar.is-visible { transform: none; }
  .mbar a {
    display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 58px;
    color: var(--on-dark); text-decoration: none; font-size: 13px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase;
  }
  .mbar a:first-child { background: var(--magenta); color: #fff; }
  .mbar svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; }
  .site-footer { padding-bottom: calc(64px + 58px + env(safe-area-inset-bottom)); }
  html:not(.js) .mbar { transform: none; position: sticky; }
}

/* ---------- Chat Clelia ---------- */
.chat { position: fixed; right: 14px; bottom: max(14px, env(safe-area-inset-bottom)); z-index: 60; font-family: var(--sans); color: var(--text); transition: bottom .45s var(--ease); }
.chat svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.chat svg .fill { fill: currentColor; stroke: none; }
.chat button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
.chat__launcher { position: relative; display: grid; place-items: center; width: 58px; height: 58px; margin-left: auto; border-radius: 50%; background: var(--magenta) !important; color: #fff !important; box-shadow: 0 14px 34px rgba(216,25,110,.35), 0 2px 6px rgba(0,0,0,.15); transition: transform .5s var(--ease), background .3s; }
.chat__launcher:hover { transform: scale(1.06); }
.chat__launcher-icon, .chat__launcher-close { grid-area: 1 / 1; display: grid; place-items: center; transition: transform .5s var(--ease), opacity .3s; }
.chat__launcher-close { opacity: 0; transform: rotate(-90deg) scale(.6); }
.chat.is-open .chat__launcher-icon { opacity: 0; transform: rotate(90deg) scale(.6); }
.chat.is-open .chat__launcher-close { opacity: 1; transform: none; }
.chat.is-open .chat__launcher { background: var(--dark) !important; box-shadow: 0 10px 30px rgba(0,0,0,.25); }
.chat__launcher::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--magenta); opacity: 0; animation: chatping 2.6s var(--ease) infinite; }
.chat.is-open .chat__launcher::after { display: none; }
.chat__badge { position: absolute; top: -2px; right: -2px; display: none; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--dark); color: #fff; font-size: 11px; font-weight: 600; border: 2px solid var(--cream); }
.chat.has-badge .chat__badge { display: grid; }
.chat__panel { position: fixed; left: 8px; right: 8px; bottom: calc(max(8px, env(safe-area-inset-bottom)) + 76px); display: grid; grid-template-rows: auto 1fr auto; height: min(560px, calc(100svh - 190px)); border-radius: 22px; background: var(--cream); box-shadow: 0 30px 80px rgba(36,32,30,.35), 0 0 0 1px rgba(36,32,30,.08); overflow: hidden; opacity: 0; transform: translateY(20px) scale(.96); transform-origin: 100% 100%; transition: opacity .35s, transform .5s var(--ease), bottom .45s var(--ease); }
.chat__panel[hidden] { display: none; }
.chat__panel.is-in { opacity: 1; transform: none; }
.chat__head { display: flex; align-items: center; gap: 12px; padding: 14px 14px 14px 16px; background: var(--dark); color: var(--on-dark); }
.chat__avatar { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--cream); flex: none; }
.chat__who { flex: 1; min-width: 0; }
.chat__title { margin: 0; font-weight: 500; font-size: 16px; line-height: 1.2; }
.chat__title span { font-weight: 300; color: var(--on-dark-2); }
.chat__status { display: flex; align-items: center; gap: 6px; margin: 2px 0 0; font-size: 12px; color: var(--on-dark-2); }
.chat__online { width: 7px; height: 7px; border-radius: 50%; background: #25d366; }
.chat__close { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: rgba(245,242,236,.1) !important; color: var(--on-dark) !important; }
.chat__close svg { width: 18px; height: 18px; }
.chat__body { display: flex; flex-direction: column; gap: 8px; padding: 18px 14px; overflow-y: auto; overscroll-behavior: contain; scroll-behavior: smooth; }
.chat__msg { max-width: 86%; padding: 11px 14px; border-radius: 18px; font-size: 15px; line-height: 1.4; white-space: pre-line; animation: chatin .45s var(--ease) both; }
.chat__msg--bot { align-self: flex-start; background: var(--white); border: 1px solid rgba(36,32,30,.08); border-bottom-left-radius: 6px; }
.chat__msg--user { align-self: flex-end; background: var(--dark); color: var(--on-dark); border-bottom-right-radius: 6px; }
.chat__typing { display: inline-flex; gap: 4px; padding: 14px 16px; }
.chat__typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--text-2); animation: chatdot 1s infinite; }
.chat__typing i:nth-child(2) { animation-delay: .15s; }
.chat__typing i:nth-child(3) { animation-delay: .3s; }
.chat__chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 4px 0 2px; justify-content: flex-end; animation: chatin .45s var(--ease) both; }
.chat .chat__chip { min-height: 40px; padding: 9px 14px; border-radius: 99px; border: 1px solid var(--dark); font-size: 14px; font-weight: 400; text-align: left; transition: background .25s, color .25s; }
.chat .chat__chip:hover, .chat .chat__chip:focus-visible { background: var(--dark); color: var(--on-dark); }
.chat__summary { align-self: stretch; padding: 14px; border-radius: 14px; background: var(--white); border: 1px dashed rgba(36,32,30,.25); font-size: 14px; line-height: 1.5; white-space: pre-line; animation: chatin .45s var(--ease) both; }
.chat__actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; animation: chatin .45s var(--ease) both; }
.chat__send { flex: 1; display: flex; align-items: center; justify-content: center; height: 50px; padding: 0 20px; border-radius: 99px; background: #25d366; color: #fff; font-weight: 500; font-size: 15px; text-decoration: none; transition: background .3s; }
.chat__send:hover { background: #1ebe5b; }
.chat .chat__restart { height: 50px; padding: 0 16px; border-radius: 99px; border: 1px solid rgba(36,32,30,.2); font-size: 14px; }
.chat__input { display: flex; gap: 8px; padding: 10px; border-top: 1px solid rgba(36,32,30,.1); background: var(--cream); }
.chat__input[hidden] { display: none; }
.chat__input input { flex: 1; min-width: 0; height: 46px; padding: 0 16px; border-radius: 99px; border: 1px solid rgba(36,32,30,.18); background: var(--white); font: inherit; font-size: 16px; color: var(--text); }
.chat__input input:focus { outline: none; border-color: var(--magenta); }
.chat .chat__input button { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--magenta); color: #fff; flex: none; }
@keyframes chatping { 0% { opacity: .7; transform: scale(1); } 70%, 100% { opacity: 0; transform: scale(1.5); } }
@keyframes chatin { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes chatdot { 0%, 60%, 100% { opacity: .3; transform: none; } 30% { opacity: 1; transform: translateY(-3px); } }
@media (max-width: 899px) {
  /* sopra la barra WhatsApp/Chiama quando è visibile */
  .mbar.is-visible ~ .chat { bottom: calc(58px + 12px + env(safe-area-inset-bottom)); }
  .mbar.is-visible ~ .chat .chat__panel { bottom: calc(58px + 84px + env(safe-area-inset-bottom)); height: min(560px, calc(100svh - 250px)); }
}
@media (min-width: 900px) {
  .chat { right: 24px; bottom: 24px; }
  .chat__panel { left: auto; right: 24px; bottom: 96px; width: 380px; height: min(580px, calc(100svh - 130px)); }
}
@media (prefers-reduced-motion: reduce) {
  .chat__launcher::after, .chat__msg, .chat__chips, .chat__summary, .chat__actions, .chat__typing i { animation: none; }
}

/* ---------- Cursore ---------- */
.cursor { display: none; }
@media (hover: hover) and (pointer: fine) {
  .has-cursor .cursor {
    display: block; position: fixed; left: 0; top: 0; z-index: 90; pointer-events: none;
    width: 36px; height: 36px; margin: -18px 0 0 -18px; border-radius: 50%;
    border: 1px solid rgba(216,25,110,.7);
    transition: width .3s var(--ease), height .3s var(--ease), margin .3s var(--ease), background-color .3s, opacity .3s;
    opacity: 0; mix-blend-mode: normal;
  }
  .has-cursor .cursor.is-active { opacity: 1; }
  .has-cursor .cursor.is-link { width: 72px; height: 72px; margin: -36px 0 0 -36px; background: rgba(216,25,110,.12); }
}

/* ---------- Reveal (solo con JS attivo) ---------- */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: calc(var(--i, 0) * 90ms); }
.js .reveal.is-in { opacity: 1; transform: none; }

.js .draw path, .js .draw circle { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.4s var(--ease); transition-delay: calc(var(--i, 0) * 140ms + 250ms); }
.js .is-in .draw path, .js .is-in .draw circle { stroke-dashoffset: 0; }

.js .checklist li { opacity: 0; transform: translateX(-12px); transition: opacity .6s var(--ease), transform .6s var(--ease); transition-delay: calc(var(--i) * 110ms); }
.js .checklist .check path { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset .6s var(--ease); transition-delay: calc(var(--i) * 110ms + 200ms); }
.js .checklist.is-in li { opacity: 1; transform: none; }
.js .checklist.is-in .check path { stroke-dashoffset: 0; }

.js .brand-logo { opacity: 0; transform: scale(.94); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: calc(var(--i) * 80ms); }
.js .brands__grid.is-in .brand-logo { opacity: 1; transform: none; }

.js .pcard { opacity: 0; transition: opacity 1s var(--ease), transform 1s var(--ease); }
.js .pcard--left { transform: translateX(-48px); }
.js .pcard--right { transform: translateX(48px); transition-delay: .15s; }
.js .partner__cards.is-in .pcard { opacity: 1; transform: none; }

/* Problema, versione a classi (mobile e fallback) */
.js .fears.io .fear { opacity: 0; transform: translateY(16px); transition: opacity .6s var(--ease), transform .6s var(--ease); transition-delay: calc(var(--i) * 160ms); }
.js .fears.io.is-in .fear { opacity: 1; transform: none; }
.js .fears.io .strike { transition: transform .5s var(--ease); transition-delay: calc(var(--i) * 180ms + 1.6s); }
.js .fears.io.is-in .strike { transform: scaleX(1); }
.js .problem__claim.io { opacity: 0; transform: translateY(16px); transition: opacity .7s var(--ease) 1.1s, transform .7s var(--ease) 1.1s; }
.js .problem__claim.io.is-in { opacity: 1; transform: none; }
.js .problem.io-on .problem__img-muted { transition: opacity 1.6s var(--ease); }
.js .problem.io-on.is-in .problem__img-muted { opacity: .75; }

/* CTA: luce che si accende (mobile) */
.js .contact.io-on .contact__dim { opacity: .4; transition: opacity 2s var(--ease) .2s; }
.js .contact.io-on.is-in .contact__dim { opacity: 0; }

/* ---------- Movimento ridotto ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; }
  .js .reveal, .js .checklist li, .js .brand-logo, .js .pcard, .js .fears.io .fear, .js .problem__claim.io { transform: none !important; }
  .js .reveal { transition: opacity .6s linear; transition-delay: 0s; }
  .hero__img-wrap img { animation: none; }
}
