/* Raffaella Ansaloni — stile "maison" */
:root {
  --ivory: #f3efe8;
  --paper: #faf8f4;
  --stone: #e6e0d6;
  --ink: #0e0d0c;
  --ink-2: #2a2826;
  --muted: #7d776e;
  --gold: #c9b48f;
  --line: rgba(14, 13, 12, 0.14);
  --line-light: rgba(255, 255, 255, 0.22);
  --serif: "Bodoni Moda", "Didot", Georgia, serif;
  --sans: "Jost", system-ui, -apple-system, sans-serif;
  --gutter: clamp(18px, 4vw, 56px);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--ivory); color: var(--ink); font: 300 16px/1.7 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, video { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.02; margin: 0; letter-spacing: -0.01em; }
em { font-style: italic; }
p { margin: 0 0 1em; }
.wrap { width: 100%; max-width: 1360px; margin: 0 auto; padding: 0 var(--gutter); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; z-index: 200; }
.skip:focus { left: 8px; }
.kicker { font: 400 0.7rem/1.4 var(--sans); letter-spacing: 0.32em; text-transform: uppercase; }
.section { padding: clamp(90px, 14vw, 180px) 0; }

/* ---------- Pulsanti ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 14px;
  padding: 18px 34px; font: 400 0.72rem/1 var(--sans); letter-spacing: 0.3em; text-transform: uppercase;
  text-decoration: none; border: 1px solid currentColor; background: transparent; color: inherit; cursor: pointer;
  transition: background 0.5s var(--ease), color 0.5s var(--ease), border-color 0.5s var(--ease);
}
.btn:hover { background: var(--ink); color: var(--ivory); border-color: var(--ink); }
.btn-light { color: #fff; }
.btn-light:hover { background: #fff; color: var(--ink); border-color: #fff; }
.btn-solid { background: var(--ink); color: var(--ivory); border-color: var(--ink); }
.btn-solid:hover { background: transparent; color: var(--ink); }
.btn-lg { padding: 22px 40px; }
.btn-block { display: flex; width: 100%; }
.btn:disabled { opacity: 0.5; cursor: wait; }
.link-line { font: 400 0.72rem/1 var(--sans); letter-spacing: 0.3em; text-transform: uppercase; text-decoration: none; padding-bottom: 8px; background: linear-gradient(currentColor, currentColor) left bottom / 100% 1px no-repeat; transition: background-size 0.6s var(--ease); }
.link-line:hover { background-size: 30% 1px; }

/* ---------- Header + menu ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 90; display: flex; justify-content: space-between; align-items: center;
  padding: 22px var(--gutter); color: #fff; mix-blend-mode: difference; pointer-events: none;
}
.site-header > * { pointer-events: auto; }
.brand img { width: 96px; height: auto; filter: invert(1); }
.header-right { display: flex; align-items: center; gap: 34px; }
.header-link { font: 400 0.7rem/1 var(--sans); letter-spacing: 0.3em; text-transform: uppercase; text-decoration: none; }
.menu-btn { background: none; border: 0; color: inherit; cursor: pointer; display: flex; align-items: center; gap: 14px; font: 400 0.7rem/1 var(--sans); letter-spacing: 0.3em; text-transform: uppercase; padding: 10px 0; }
.menu-lines { width: 30px; height: 7px; position: relative; }
.menu-lines::before, .menu-lines::after { content: ""; position: absolute; left: 0; right: 0; height: 1px; background: currentColor; transition: transform 0.5s var(--ease), top 0.5s var(--ease); }
.menu-lines::before { top: 0; } .menu-lines::after { top: 6px; }
body.menu-open .menu-lines::before { top: 3px; transform: rotate(25deg); }
body.menu-open .menu-lines::after { top: 3px; transform: rotate(-25deg); }

.menu {
  position: fixed; inset: 0; z-index: 80; background: var(--ink); color: var(--ivory);
  display: grid; grid-template-columns: 1.1fr 1fr; clip-path: inset(0 0 100% 0); transition: clip-path 0.9s var(--ease); visibility: hidden;
}
body.menu-open .menu { clip-path: inset(0 0 0 0); visibility: visible; }
.menu-nav { display: flex; flex-direction: column; justify-content: center; padding: 120px var(--gutter) 60px; gap: 6px; }
.menu-nav a { display: flex; align-items: baseline; gap: 22px; text-decoration: none; font: 400 clamp(2.6rem, 6vw, 5.4rem)/1.08 var(--serif); opacity: 0; transform: translateY(30px); transition: opacity 0.6s, transform 0.8s var(--ease), color 0.3s; }
.menu-nav a small { font: 400 0.7rem/1 var(--sans); letter-spacing: 0.3em; color: var(--gold); }
.menu-nav a:hover, .menu-nav a:focus-visible { font-style: italic; color: var(--gold); }
body.menu-open .menu-nav a { opacity: 1; transform: none; }
body.menu-open .menu-nav a:nth-child(2) { transition-delay: 0.05s; }
body.menu-open .menu-nav a:nth-child(3) { transition-delay: 0.1s; }
body.menu-open .menu-nav a:nth-child(4) { transition-delay: 0.15s; }
body.menu-open .menu-nav a:nth-child(5) { transition-delay: 0.2s; }
.menu-side { position: relative; overflow: hidden; }
.menu-side::after { content: ""; position: absolute; inset: 0 0 auto 0; height: 160px; z-index: 1; background: linear-gradient(180deg, rgba(0,0,0,0.55), transparent); }
body.menu-open .site-header { mix-blend-mode: normal; }
.menu-side img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.08); transition: opacity 0.8s var(--ease), transform 1.6s var(--ease); }
.menu-side img.on { opacity: 0.85; transform: none; }
.menu-contacts { position: absolute; left: var(--gutter); bottom: 34px; display: flex; gap: 30px; flex-wrap: wrap; font: 400 0.7rem/1.6 var(--sans); letter-spacing: 0.24em; text-transform: uppercase; color: rgba(243,239,232,0.7); }
.menu-contacts a { text-decoration: none; }

/* ---------- Intro ---------- */
.intro { position: fixed; inset: 0; z-index: 120; background: var(--ink); display: grid; place-items: center; transition: clip-path 1.1s var(--ease); clip-path: inset(0 0 0 0); }
.intro img { width: 70px; opacity: 0; animation: introIn 1.2s var(--ease) 0.15s forwards; }
.intro.out { clip-path: inset(0 0 100% 0); }
@keyframes introIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* ---------- Film (hero) ---------- */
.film { position: relative; height: 100svh; min-height: 560px; overflow: hidden; background: var(--ink); color: #fff; }
.film-frame, .film video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.film-frame { opacity: 0; transform: scale(1.12); transition: opacity 2s ease, transform 9s linear; }
.film-frame.on { opacity: 1; transform: scale(1); }
.film::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0.35), rgba(0,0,0,0.05) 40%, rgba(0,0,0,0.55)); }
.film-content { position: absolute; inset: auto 0 0 0; z-index: 2; padding: 0 var(--gutter) clamp(48px, 9vh, 90px); display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; flex-wrap: wrap; }
.film h1 { font-size: clamp(3.2rem, 10.5vw, 10rem); line-height: 0.92; letter-spacing: -0.02em; }
.film h1 em { display: block; padding-left: 0.6em; }
.film-meta { text-align: right; max-width: 280px; }
.film-meta .kicker { color: rgba(255,255,255,0.8); margin-bottom: 18px; }
.scroll-cue { position: absolute; left: 50%; bottom: 0; z-index: 2; width: 1px; height: 70px; background: rgba(255,255,255,0.25); overflow: hidden; }
.scroll-cue::after { content: ""; position: absolute; left: 0; top: -40%; width: 1px; height: 40%; background: #fff; animation: cue 2.2s var(--ease) infinite; }
@keyframes cue { to { top: 100%; } }
.film-dots { position: absolute; z-index: 2; right: var(--gutter); top: 50%; transform: translateY(-50%); display: flex; flex-direction: column; gap: 10px; }
.film-dots span { width: 1px; height: 26px; background: rgba(255,255,255,0.3); transition: background 0.6s; }
.film-dots span.on { background: #fff; }

/* ---------- Manifesto ---------- */
.manifest { padding: clamp(120px, 20vw, 260px) var(--gutter); text-align: center; background: var(--ivory); }
.manifest p { font: 400 clamp(2rem, 5.4vw, 5rem)/1.1 var(--serif); max-width: 15ch; margin: 0 auto; }
.manifest .kicker { display: block; margin-bottom: 40px; color: var(--muted); }

/* ---------- Espansione (scroll) ---------- */
.expand { height: 260vh; position: relative; background: var(--ivory); }
.expand-sticky { position: sticky; top: 0; height: 100vh; overflow: hidden; display: grid; place-items: center; }
.expand-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; clip-path: inset(var(--iy, 24%) var(--ix, 32%)); transform: scale(var(--sc, 1.15)); will-change: clip-path, transform; }
.expand-sticky::after { content: ""; position: absolute; inset: 0; z-index: 1; background: rgba(0,0,0,0.38); opacity: var(--a2, 0); pointer-events: none; }
.expand-after { text-shadow: 0 2px 30px rgba(0,0,0,0.3); }
.expand-before, .expand-after { position: relative; z-index: 2; font: 400 clamp(2.4rem, 7vw, 6.6rem)/1 var(--serif); text-align: center; pointer-events: none; }
.expand-before { color: var(--ink); opacity: var(--a1, 1); mix-blend-mode: difference; color: #fff; }
.expand-after { position: absolute; color: #fff; opacity: var(--a2, 0); transform: translateY(calc((1 - var(--a2, 0)) * 30px)); }
.expand-after em { display: block; }

/* ---------- Dittico ---------- */
.diptych { display: grid; grid-template-columns: 1fr 1fr; height: 100vh; min-height: 560px; }
.diptych figure { margin: 0; position: relative; overflow: hidden; }
.diptych img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); transition: transform 2.4s var(--ease); }
.diptych figure.in img { transform: scale(1); }
.diptych figcaption { position: absolute; left: 28px; bottom: 26px; color: #fff; font: 400 0.7rem/1 var(--sans); letter-spacing: 0.3em; text-transform: uppercase; }

/* ---------- Immagine piena con frase ---------- */
.still { position: relative; height: 110vh; overflow: hidden; color: #fff; display: grid; place-items: center; text-align: center; }
.still img { position: absolute; inset: -10% 0; width: 100%; height: 120%; object-fit: cover; transform: translateY(var(--py, 0)); }
.still::after { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,0.28); }
.still-text { position: relative; z-index: 2; padding: 0 var(--gutter); }
.still-text p { font: 400 clamp(2.4rem, 7vw, 6.4rem)/1 var(--serif); margin: 0; }
.still-text .kicker { display: block; margin-top: 30px; color: rgba(255,255,255,0.8); }

/* ---------- Trittico (le tre maison) ---------- */
.trio { display: flex; height: 100vh; min-height: 600px; background: var(--ink); }
.trio a { position: relative; flex: 1; overflow: hidden; color: #fff; text-decoration: none; transition: flex 1s var(--ease); display: flex; align-items: flex-end; }
.trio a + a { border-left: 1px solid var(--line-light); }
.trio a:hover { flex: 1.7; }
.trio img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: brightness(0.55); transition: filter 1s var(--ease), transform 2s var(--ease); transform: scale(1.04); }
.trio a:hover img { filter: brightness(0.75); transform: scale(1); }
.trio-body { position: relative; padding: clamp(26px, 3vw, 48px); width: 100%; }
.trio-body small { display: block; font: 400 0.7rem/1 var(--sans); letter-spacing: 0.3em; color: var(--gold); margin-bottom: 18px; }
.trio-body h2 { font-size: clamp(2.6rem, 4.6vw, 4.6rem); }
.trio-body span { display: inline-block; margin-top: 22px; font: 400 0.7rem/1 var(--sans); letter-spacing: 0.3em; text-transform: uppercase; opacity: 0; transform: translateY(10px); transition: opacity 0.6s, transform 0.6s var(--ease); }
.trio a:hover span, .trio a:focus-visible span { opacity: 1; transform: none; }

/* ---------- Maison / Raffaella ---------- */
.maison { display: grid; grid-template-columns: 1.4fr 1fr; min-height: 100vh; background: var(--ivory); }
.maison-img { position: relative; overflow: hidden; }
.maison-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.maison-text { display: flex; flex-direction: column; justify-content: center; padding: clamp(60px, 8vw, 120px) clamp(28px, 5vw, 90px); }
.maison-text .kicker { color: var(--muted); margin-bottom: 30px; }
.maison-text h2 { font-size: clamp(2.6rem, 4.6vw, 4.4rem); margin-bottom: 30px; }
.maison-text p { color: var(--ink-2); max-width: 36ch; }
.maison-sign { width: 170px; margin-top: 34px; }

/* ---------- Stampa + citazione ---------- */
.press-line { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 48px; padding: 50px var(--gutter); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font: italic 400 clamp(1.2rem, 2vw, 1.6rem)/1 var(--serif); color: var(--ink-2); }
.press-line a { text-decoration: none; }
.press-line a:hover { color: var(--muted); }
.voice { text-align: center; padding: clamp(110px, 16vw, 220px) var(--gutter); }
.voice blockquote { margin: 0; }
.voice p { font: italic 400 clamp(3rem, 9vw, 8rem)/1 var(--serif); margin: 0 0 30px; }
.voice footer { font: 400 0.7rem/1 var(--sans); letter-spacing: 0.3em; text-transform: uppercase; color: var(--muted); }

/* ---------- Chiusura ---------- */
.finale { position: relative; min-height: 100vh; display: grid; place-items: center; text-align: center; color: #fff; overflow: hidden; background: var(--ink); }
.finale img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.55; }
.finale-body { position: relative; z-index: 2; padding: 0 var(--gutter); }
.finale h2 { font-size: clamp(3rem, 9vw, 8.4rem); margin-bottom: 44px; }
.finale-links { display: flex; justify-content: center; gap: 36px; margin-top: 40px; flex-wrap: wrap; }

/* ---------- Pagine interne ---------- */
.page-hero { position: relative; height: 100svh; min-height: 560px; display: flex; align-items: flex-end; color: #fff; overflow: hidden; background: var(--ink); }
.page-hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; animation: slowzoom 14s ease-out forwards; }
@keyframes slowzoom { from { transform: scale(1.12); } to { transform: scale(1); } }
.page-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0.3), rgba(0,0,0,0) 40%, rgba(0,0,0,0.55)); }
.page-hero-content { position: relative; z-index: 2; width: 100%; padding: 0 var(--gutter) clamp(48px, 9vh, 90px); display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; flex-wrap: wrap; }
.page-hero .kicker { color: rgba(255,255,255,0.8); margin-bottom: 22px; }
.page-hero h1 { font-size: clamp(3rem, 9vw, 8.4rem); line-height: 0.95; }
.page-hero h1 em { display: block; }

.section-head { margin-bottom: clamp(48px, 7vw, 90px); }
.section-head .kicker { display: block; color: var(--muted); margin-bottom: 24px; }
.section-head h2 { font-size: clamp(2.6rem, 6vw, 5.4rem); }
.section-head .sub { color: var(--muted); max-width: 46ch; margin: 24px 0 0; }
.center-head { text-align: center; }
.center-head .sub { margin-left: auto; margin-right: auto; }

/* Trittico statico (floral) */
.triptych { display: grid; grid-template-columns: repeat(3, 1fr); height: 100vh; min-height: 560px; }
.triptych figure { margin: 0; position: relative; overflow: hidden; }
.triptych img { width: 100%; height: 100%; object-fit: cover; transition: transform 2s var(--ease); }
.triptych figure:hover img { transform: scale(1.05); }
.triptych figcaption { position: absolute; inset: auto 0 0 0; padding: 30px; color: #fff; font: 400 clamp(2rem, 3.4vw, 3.4rem)/1 var(--serif); background: linear-gradient(0deg, rgba(0,0,0,0.5), transparent); }

/* ---------- Scelte grandi (moduli) ---------- */
.choices { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; margin-bottom: 28px; }
.choices.cols-3 { grid-template-columns: repeat(3, 1fr); }
.choices.cols-4 { grid-template-columns: repeat(4, 1fr); }
.choices.cols-5 { grid-template-columns: repeat(5, 1fr); }
.choice {
  font: inherit; text-align: left; cursor: pointer; color: var(--ink); background: transparent;
  border: 1px solid var(--line); border-radius: 0; padding: 18px 20px; min-height: 66px;
  display: flex; flex-direction: column; justify-content: center; gap: 6px; position: relative;
  transition: border-color 0.4s, background 0.4s, color 0.4s;
}
.choice strong { font: 400 1rem/1.25 var(--sans); }
.choice span { font-size: 0.8rem; color: var(--muted); line-height: 1.35; }
.choice:hover { border-color: var(--ink); }
.choice[aria-checked="true"], .choice[aria-pressed="true"] { background: var(--ink); color: var(--ivory); border-color: var(--ink); }
.choice[aria-checked="true"] span, .choice[aria-pressed="true"] span { color: rgba(243,239,232,0.65); }
.choice[aria-pressed="true"]::after, .choice[aria-checked="true"]::after { content: ""; position: absolute; top: 14px; right: 14px; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }
.choices.big .choice { min-height: 104px; padding: 22px 24px; }
.choices.big .choice strong { font: 400 1.45rem/1.12 var(--serif); }
.choice.photo { min-height: 220px !important; justify-content: flex-end; color: #fff; border: 0; overflow: hidden; background: linear-gradient(180deg, rgba(0,0,0,0) 35%, rgba(0,0,0,0.7)), var(--bg) center / cover; }
.choice.photo strong { font-size: 1.7rem !important; }
.choice.photo:hover { filter: brightness(1.08); }
.choice.photo[aria-checked="true"] { outline: 1px solid var(--ink); outline-offset: 5px; background: linear-gradient(180deg, rgba(0,0,0,0) 35%, rgba(0,0,0,0.7)), var(--bg) center / cover; }
.choice.swatch { padding-top: 78px !important; }
.choice.swatch::before { content: ""; position: absolute; left: 12px; right: 12px; top: 12px; height: 52px; background: var(--sw); }

/* ---------- Campi ---------- */
.field { margin-bottom: 24px; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
label, .label-like { display: block; font: 400 0.68rem/1 var(--sans); letter-spacing: 0.26em; text-transform: uppercase; color: var(--muted); margin: 0 0 12px; }
input, select, textarea { width: 100%; font: 300 1.05rem/1.5 var(--sans); color: var(--ink); background: transparent; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; padding: 8px 0; outline: none; transition: border-color 0.3s; }
input:focus, select:focus, textarea:focus { border-color: var(--ink); }
textarea { resize: vertical; }
.check { display: flex; gap: 12px; align-items: flex-start; text-transform: none; letter-spacing: 0; font: 300 0.9rem/1.5 var(--sans); color: var(--muted); margin: 8px 0 12px; cursor: pointer; }
.check input { width: 20px; height: 20px; flex: none; margin-top: 2px; accent-color: var(--ink); }
.form-error { color: #8a3b2e; font-size: 0.9rem; }

/* ---------- Wizard preventivo ---------- */
.quote-section { background: var(--paper); }
.wizard { max-width: 1040px; margin: 0 auto; position: relative; }
.wz-progress { height: 1px; background: var(--line); }
.wz-progress span { display: block; height: 100%; width: 0; background: var(--ink); transition: width 0.8s var(--ease); }
.wz-count { font: 400 0.68rem/1 var(--sans); letter-spacing: 0.26em; text-transform: uppercase; color: var(--muted); margin: 18px 0 44px; }
.wz-step { display: none; border: 0; padding: 0; margin: 0; min-width: 0; }
.wz-step.is-active { display: block; animation: stepin 0.7s var(--ease); }
@keyframes stepin { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.wz-step legend, .wz-done h3 { font: 400 clamp(2.2rem, 5vw, 3.8rem)/1.05 var(--serif); margin-bottom: 36px; padding: 0; outline: none; }
.wz-step legend small { display: block; font: 300 0.95rem/1.4 var(--sans); color: var(--muted); margin-top: 12px; }
.wz-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 32px; flex-wrap: wrap; }
.wz-nav .btn-lg { margin-left: auto; }
.live-estimate { position: absolute; top: 34px; right: 0; text-align: right; }
.live-estimate span { display: block; font: 400 0.66rem/1 var(--sans); letter-spacing: 0.26em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.live-estimate strong { font: italic 400 1.5rem/1 var(--serif); color: var(--muted); transition: color 0.4s; }
.live-estimate.has-value strong { color: var(--ink); }
.estimate { background: var(--ink); color: var(--ivory); padding: clamp(36px, 5vw, 60px); text-align: center; margin-bottom: 34px; }
.estimate-label { font: 400 0.68rem/1 var(--sans); letter-spacing: 0.3em; text-transform: uppercase; color: var(--gold); }
.estimate-value { font: italic 400 clamp(2.6rem, 7vw, 5rem)/1 var(--serif); margin: 18px 0; }
.estimate-note { font-size: 0.85rem; color: rgba(243,239,232,0.6); margin: 0; }
.summary { display: grid; grid-template-columns: 1fr 1fr; gap: 0 32px; margin: 0; }
.summary div { padding: 14px 0; border-bottom: 1px solid var(--line); }
.summary dt { font: 400 0.64rem/1 var(--sans); letter-spacing: 0.24em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.summary dd { margin: 0; font-size: 0.98rem; }
.wz-done, .cart-done, .b2b-done { text-align: center; padding: 30px 0; }
.wz-done.is-active { display: block; }
.done-mark { width: 60px; margin: 0 auto 26px; filter: brightness(0); }
.wz-done p, .b2b-done p { max-width: 460px; margin: 0 auto 30px; color: var(--muted); }

/* ---------- Noleggio ---------- */
.filters { display: flex; gap: 8px 26px; flex-wrap: wrap; margin-bottom: 56px; border-bottom: 1px solid var(--line); padding-bottom: 18px; }
.filter { font: 400 0.7rem/1 var(--sans); letter-spacing: 0.24em; text-transform: uppercase; padding: 10px 0; border: 0; background: none; color: var(--muted); cursor: pointer; position: relative; }
.filter::after { content: ""; position: absolute; left: 0; right: 0; bottom: -19px; height: 1px; background: var(--ink); transform: scaleX(0); transition: transform 0.5s var(--ease); }
.filter:hover, .filter.is-on { color: var(--ink); }
.filter.is-on::after { transform: scaleX(1); }
.rental-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 64px 28px; }
.rental[hidden] { display: none; }
.rental-img { overflow: hidden; margin-bottom: 22px; background: var(--stone); aspect-ratio: 3 / 4; }
.rental-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.6s var(--ease); }
.rental:hover .rental-img img { transform: scale(1.05); }
.rental-img--contain { background: #fff; }
.rental-img--contain img { object-fit: contain; padding: 9%; box-sizing: border-box; }
.rental-img { position: relative; }
.rental-img .alt { position: absolute; inset: 0; object-fit: cover; padding: 0; opacity: 0; transition: opacity 0.9s var(--ease), transform 1.6s var(--ease); }
.rental-img .alt-hint { position: absolute; left: 14px; bottom: 12px; font: 400 0.6rem/1 var(--sans); letter-spacing: 0.24em; text-transform: uppercase; color: var(--ink); background: rgba(255,255,255,0.82); padding: 8px 12px; transition: opacity 0.5s; }
.rental-img.has-alt:hover .alt, .rental-img.show-alt .alt { opacity: 1; }
.rental-img.has-alt:hover .alt-hint, .rental-img.show-alt .alt-hint { opacity: 0; }
.rental-img.has-alt { cursor: pointer; }
.rental-img--empty { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; text-align: center; }
.rental-img--empty span { font: italic 400 2.2rem/1 var(--serif); }
.rental-img--empty small { font: 400 0.64rem/1 var(--sans); letter-spacing: 0.26em; text-transform: uppercase; color: var(--muted); }
.rental h3 { font-size: 1.8rem; margin-bottom: 8px; }
.rental .desc { font-size: 0.92rem; color: var(--muted); margin-bottom: 8px; }
.rental .size { font: 400 0.66rem/1 var(--sans); letter-spacing: 0.24em; text-transform: uppercase; color: var(--ink-2); margin: 0; }
.rental-actions { margin-top: 18px; }
.rental-actions .btn { padding: 16px; }
.stepper { display: grid; grid-template-columns: 52px 1fr 52px; border: 1px solid var(--ink); height: 50px; }
.stepper button { background: var(--ink); color: var(--ivory); border: 0; font-size: 1.2rem; cursor: pointer; }
.stepper input { border: 0; text-align: center; font: 400 1rem var(--sans); padding: 0; -moz-appearance: textfield; }
.stepper input::-webkit-inner-spin-button { -webkit-appearance: none; }
.cart-fab { position: fixed; left: 50%; transform: translateX(-50%); bottom: 24px; z-index: 70; display: flex; align-items: center; gap: 14px; background: var(--ink); color: var(--ivory); border: 0; padding: 18px 28px; font: 400 0.7rem/1 var(--sans); letter-spacing: 0.26em; text-transform: uppercase; cursor: pointer; box-shadow: 0 14px 34px rgba(0,0,0,0.25); }
.cart-fab[hidden] { display: none; }
.cart-fab.bump { animation: bump 0.5s var(--ease); }
@keyframes bump { 50% { transform: translateX(-50%) scale(1.06); } }
.cart-badge { background: var(--gold); color: var(--ink); min-width: 24px; height: 24px; border-radius: 12px; display: grid; place-items: center; font-size: 0.8rem; padding: 0 6px; letter-spacing: 0; }
.drawer-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,0.45); z-index: 95; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(540px, 100%); background: var(--ivory); z-index: 96; transform: translateX(100%); transition: transform 0.7s var(--ease); display: flex; flex-direction: column; visibility: hidden; }
.drawer.open { transform: none; visibility: visible; }
.drawer-head { display: flex; justify-content: space-between; align-items: center; padding: 26px 30px; border-bottom: 1px solid var(--line); }
.drawer-head h2 { font-size: 2.2rem; }
.drawer-close { width: 44px; height: 44px; border: 1px solid var(--line); background: transparent; font-size: 1.4rem; cursor: pointer; }
.drawer-body { padding: 26px 30px 44px; overflow-y: auto; }
.cart-list { list-style: none; margin: 0 0 12px; padding: 0; }
.cart-list li { display: grid; grid-template-columns: 1fr 150px; gap: 14px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.cart-list .stepper { height: 42px; grid-template-columns: 42px 1fr 42px; }
.cart-name { font: 400 1.25rem/1.2 var(--serif); }
.cart-empty { color: var(--muted); }
.rent-form h3 { font-size: 1.7rem; margin: 30px 0 22px; }
.rent-form .choices { grid-template-columns: 1fr; }

/* ---------- Coordinamento ---------- */
.formats { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.formats li { display: flex; align-items: baseline; gap: 30px; padding: 26px 0; border-bottom: 1px solid var(--line); font: 400 clamp(2rem, 5vw, 4.2rem)/1 var(--serif); transition: padding-left 0.6s var(--ease), font-style 0.3s; }
.formats li:hover { padding-left: 24px; font-style: italic; }
.formats small { font: 400 0.68rem/1 var(--sans); letter-spacing: 0.26em; color: var(--muted); }
.b2b-form { max-width: 1040px; margin: 0 auto; }
.b2b-block { padding-bottom: 34px; margin-bottom: 38px; border-bottom: 1px solid var(--line); }
.b2b-block:last-of-type { border-bottom: 0; }
.b2b-block h3 { font-size: clamp(1.8rem, 3vw, 2.4rem); margin-bottom: 24px; display: flex; align-items: baseline; gap: 18px; flex-wrap: wrap; }
.b2b-block h3 span { font: 400 0.68rem/1 var(--sans); letter-spacing: 0.26em; color: var(--muted); }
.b2b-block h3 small { font: 300 0.9rem var(--sans); color: var(--muted); }
.b2b-block .choices.big .choice { min-height: 82px; }
.b2b-block .choices.big .choice strong { font-size: 1.25rem; }
.b2b-done { max-width: 1040px; margin: 0 auto; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: rgba(243,239,232,0.7); padding: 90px var(--gutter) 34px; font-size: 0.88rem; }
.footer-top { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; flex-wrap: wrap; padding-bottom: 60px; border-bottom: 1px solid rgba(255,255,255,0.12); }
.footer-logo { width: 150px; filter: invert(1); opacity: 0.9; }
.footer-nav { display: flex; gap: 34px; flex-wrap: wrap; }
.footer-nav a { font: 400 0.7rem/1 var(--sans); letter-spacing: 0.28em; text-transform: uppercase; text-decoration: none; }
.footer-nav a:hover { color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap; padding-top: 28px; font-size: 0.78rem; line-height: 1.8; }
.footer-bottom a { text-decoration: none; }
.footer-bottom a:hover { color: #fff; }

.wa-float { position: fixed; right: 20px; bottom: 20px; z-index: 60; width: 54px; height: 54px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; border: 1px solid rgba(255,255,255,0.25); transition: transform 0.4s var(--ease); }
.wa-float:hover { transform: translateY(-3px); }

/* ---------- Animazioni d'ingresso ---------- */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 1.2s var(--ease), transform 1.4s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.lines > span { display: block; overflow: hidden; }
.lines > span > span { display: block; transform: translateY(105%); transition: transform 1.3s var(--ease); }
.lines.in > span > span { transform: none; }
.lines.in > span:nth-child(2) > span { transition-delay: 0.12s; }
.lines.in > span:nth-child(3) > span { transition-delay: 0.24s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .lines > span > span { opacity: 1; transform: none; transition: none; }
  .film-frame, .page-hero-img { transition: opacity 0.6s; transform: none; animation: none; }
  .intro { display: none; }
  .scroll-cue::after { animation: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .choices.cols-4, .choices.cols-5 { grid-template-columns: repeat(3, 1fr); }
  .maison { grid-template-columns: 1fr; }
  .maison-img { min-height: 80vh; }
}
@media (max-width: 860px) {
  .menu { grid-template-columns: 1fr; }
  .menu-side { display: none; }
  .header-link { display: none; }
  .trio { flex-direction: column; height: auto; }
  .trio a { min-height: 70vh; }
  .trio a + a { border-left: 0; border-top: 1px solid var(--line-light); }
  .trio a:hover { flex: 1; }
  .trio-body span { opacity: 1; transform: none; }
  .diptych, .triptych { grid-template-columns: 1fr; height: auto; }
  .diptych figure, .triptych figure { height: 85vh; }
  .film-meta { text-align: left; }
  .film-dots { display: none; }
  .live-estimate { position: sticky; top: auto; bottom: 0; z-index: 5; margin-top: 30px; padding: 16px 20px; background: var(--ink); display: flex; justify-content: space-between; align-items: center; text-align: left; }
  .live-estimate span { color: var(--gold); margin: 0; }
  .live-estimate strong, .live-estimate.has-value strong { color: var(--ivory); }
}
@media (max-width: 640px) {
  .choices.cols-3, .choices.cols-4, .choices.cols-5 { grid-template-columns: 1fr 1fr; }
  .choices.big .choice { min-height: 84px; padding: 16px; }
  .choices.big .choice strong { font-size: 1.15rem; }
  .choice.photo { min-height: 150px !important; }
  .choice.photo strong { font-size: 1.3rem !important; }
  .row { grid-template-columns: 1fr; gap: 0; }
  .summary { grid-template-columns: 1fr; }
  .wz-nav .btn { width: 100%; }
  .wz-nav .wz-back { order: 2; }
  .cart-list li { grid-template-columns: 1fr 130px; }
  .brand img { width: 78px; }
  .wa-float { bottom: 86px; }
  .expand-img { clip-path: inset(var(--iy, 24%) var(--ix, 14%)); }
}

/* ---------- Prima / Dopo ---------- */
.ba-section { background: var(--ink); color: var(--ivory); padding: clamp(90px, 12vw, 160px) 0; }
.ba-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; flex-wrap: wrap; margin-bottom: 44px; }
.ba-head .kicker { display: block; color: var(--gold); margin-bottom: 22px; }
.ba-head h2 { font-size: clamp(2.6rem, 6vw, 5.4rem); }
.ba-tabs { display: flex; gap: 26px; flex-wrap: wrap; }
.ba-tab { background: none; border: 0; color: rgba(243,239,232,0.55); font: 400 0.7rem/1 var(--sans); letter-spacing: 0.28em; text-transform: uppercase; padding: 10px 0; cursor: pointer; border-bottom: 1px solid transparent; transition: color 0.3s, border-color 0.3s; }
.ba-tab:hover, .ba-tab[aria-selected="true"] { color: var(--ivory); border-color: var(--ivory); }
.ba {
  --pos: 50%;
  position: relative; width: 100%; aspect-ratio: 16 / 9; max-height: 86vh; overflow: hidden; background: #000;
  cursor: ew-resize; user-select: none; -webkit-user-select: none; touch-action: pan-y;
}
.ba img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; -webkit-user-drag: none; transition: opacity 0.6s var(--ease); }
.ba-before { clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.ba-before.demo { filter: grayscale(1) brightness(0.62) contrast(0.9) blur(1.5px); }
.ba-line { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 1px; background: rgba(255,255,255,0.9); pointer-events: none; }
.ba-handle {
  position: absolute; top: 50%; left: var(--pos); width: 74px; height: 74px; margin: -37px 0 0 -37px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.9); background: rgba(14,13,12,0.25); backdrop-filter: blur(6px);
  display: grid; place-items: center; color: #fff; font: 400 0.62rem/1 var(--sans); letter-spacing: 0.24em; text-transform: uppercase; pointer-events: none;
  transition: transform 0.4s var(--ease);
}
.ba.dragging .ba-handle { transform: scale(0.88); }
.ba-tag { position: absolute; bottom: 22px; font: 400 0.68rem/1 var(--sans); letter-spacing: 0.3em; text-transform: uppercase; color: #fff; pointer-events: none; transition: opacity 0.3s; }
.ba-tag-before { left: 24px; }
.ba-tag-after { right: 24px; }
.ba-demo-badge { position: absolute; top: 20px; left: 50%; transform: translateX(-50%); background: var(--gold); color: var(--ink); font: 400 0.62rem/1 var(--sans); letter-spacing: 0.22em; text-transform: uppercase; padding: 8px 12px; pointer-events: none; }
.ba-range { position: absolute; opacity: 0; pointer-events: none; }
.ba:has(.ba-range:focus-visible) { outline: 1px solid var(--gold); outline-offset: 6px; }
.ba-caption { display: flex; justify-content: space-between; gap: 20px; margin-top: 20px; font: 400 0.7rem/1.6 var(--sans); letter-spacing: 0.24em; text-transform: uppercase; color: rgba(243,239,232,0.6); }
@media (max-width: 640px) {
  .ba { aspect-ratio: 4 / 5; }
  .ba-handle { width: 60px; height: 60px; margin: -30px 0 0 -30px; }
}

.maison-img img { object-position: center 20%; }
.film h1, .page-hero h1 { text-shadow: 0 2px 40px rgba(0,0,0,0.35); }
.film::after { background: linear-gradient(180deg, rgba(0,0,0,0.35), rgba(0,0,0,0.05) 35%, rgba(0,0,0,0.6)), linear-gradient(90deg, rgba(0,0,0,0.25), transparent 60%); }

/* =================== v4: Portfolio, transizioni, vetro =================== */
/* Lenis */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

/* Tenda tra le pagine */
.curtain { position: fixed; inset: 0; z-index: 150; background: var(--ink); display: grid; place-items: center; pointer-events: none;
  transform: translateY(0); transition: transform 0.9s var(--ease); }
.curtain img { width: 64px; opacity: 1; transition: opacity 0.4s; }
.curtain.gone { transform: translateY(-100%); }
.curtain.gone img { opacity: 0; }
.curtain.from-below { transform: translateY(100%); transition: none; }
html.no-curtain .curtain { display: none; }

/* Sipario sulle immagini */
.clip { overflow: hidden; }
.clip img, .clip video { clip-path: inset(100% 0 0 0); transform: scale(1.25); transition: clip-path 1.4s var(--ease), transform 2s var(--ease); }
.clip.in img, .clip.in video { clip-path: inset(0 0 0 0); transform: scale(1); }

/* Video in apertura */
.film video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* Monogramma di vetro */
.glass-mark { position: absolute; z-index: 1; right: 9vw; top: 50%; width: min(30vw, 380px); aspect-ratio: 684 / 747; transform: translateY(-58%); perspective: 900px; pointer-events: none; }
.glass-inner { position: absolute; inset: 0; transform-style: preserve-3d; transform: rotateY(var(--gy, 0deg)) rotateX(var(--gx, 0deg)); transition: transform 0.25s linear; }
.glass, .glass-sheen, .glass-edge { position: absolute; inset: 0; -webkit-mask: url(img/monogramma.svg) center / contain no-repeat; mask: url(img/monogramma.svg) center / contain no-repeat; }
.glass { backdrop-filter: blur(14px) saturate(1.5) brightness(1.15); -webkit-backdrop-filter: blur(14px) saturate(1.5) brightness(1.15); background: rgba(255,255,255,0.08); }
.glass-sheen { background: linear-gradient(calc(120deg + var(--gy, 0deg)), rgba(255,255,255,0.55) 0%, rgba(255,255,255,0) 35%, rgba(255,255,255,0) 60%, rgba(255,255,255,0.35) 100%); mix-blend-mode: soft-light; }
.glass-edge { transform: translate(2px, 3px); background: rgba(255,255,255,0.18); filter: blur(1px); z-index: -1; }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) { .glass { background: rgba(255,255,255,0.25); } }

/* Portfolio */
.pf { background: var(--ivory); }
.pf-tabs { position: sticky; top: 0; z-index: 20; display: flex; flex-wrap: wrap; gap: 6px 28px; padding: 90px 0 22px; margin-bottom: 40px; background: linear-gradient(var(--ivory) 80%, rgba(243,239,232,0)); }
.pf-tab { background: none; border: 0; padding: 8px 0; cursor: pointer; font: 400 clamp(1.3rem, 2.4vw, 2rem)/1 var(--serif); color: var(--muted); transition: color 0.3s; }
.pf-tab sup { font: 400 0.6rem var(--sans); letter-spacing: 0.1em; margin-left: 2px; }
.pf-tab:hover { color: var(--ink); }
.pf-tab[aria-selected="true"] { color: var(--ink); font-style: italic; }
.pf-grid { column-count: 3; column-gap: 18px; transition: opacity 0.35s; }
.pf-grid.switching { opacity: 0; }
.pf-item { break-inside: avoid; margin: 0 0 18px; overflow: hidden; }
.pf-item[hidden] { display: none; }
.pf-open { display: block; width: 100%; padding: 0; border: 0; background: var(--stone); cursor: zoom-in; overflow: hidden; }
.pf-open img { display: block; width: 100%; height: auto; clip-path: inset(100% 0 0 0); transform: scale(1.2); transition: clip-path 1.2s var(--ease), transform 1.8s var(--ease), filter 0.6s; }
.pf-item.in .pf-open img { clip-path: inset(0 0 0 0); transform: scale(1); }
.pf-item.in .pf-open:hover img { transform: scale(1.04); filter: brightness(1.05); }

.lightbox { position: fixed; inset: 0; z-index: 140; background: rgba(10,9,8,0.96); display: grid; place-items: center; opacity: 0; transition: opacity 0.5s var(--ease); }
.lightbox.open { opacity: 1; }
.lb-img { max-width: 92vw; max-height: 86vh; object-fit: contain; opacity: 0; transform: scale(0.97); transition: opacity 0.5s var(--ease), transform 0.8s var(--ease); }
.lb-img.on { opacity: 1; transform: none; }
.lb-close, .lb-prev, .lb-next { position: absolute; background: none; border: 0; color: var(--ivory); cursor: pointer; font: 400 0.72rem/1 var(--sans); letter-spacing: 0.3em; text-transform: uppercase; padding: 14px; }
.lb-close { top: 18px; right: 18px; }
.lb-prev, .lb-next { top: 50%; transform: translateY(-50%); font-size: 1.6rem; letter-spacing: 0; }
.lb-prev { left: 10px; } .lb-next { right: 10px; }
.lb-count { position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%); margin: 0; color: rgba(243,239,232,0.6); font: 400 0.7rem var(--sans); letter-spacing: 0.3em; }

@media (max-width: 1000px) { .pf-grid { column-count: 2; } }
@media (max-width: 560px) {
  .pf-grid { column-count: 1; }
  .pf-tabs { padding-top: 76px; gap: 4px 18px; }
  .glass-mark { width: 46vw; right: 50%; transform: translate(50%, -75%); }
}
@media (prefers-reduced-motion: reduce) {
  .clip img, .clip video, .pf-open img { clip-path: none; transform: none; transition: none; }
  .curtain { display: none; }
}
body.menu-open .menu-nav a:nth-child(6) { transition-delay: 0.25s; }
.film-content { flex-direction: column; align-items: flex-start; }
.film-meta { text-align: left; display: flex; gap: 40px; align-items: center; max-width: none; }
.film-meta .kicker { margin: 0; }
.glass-mark { top: 40%; right: 11vw; }
.pf-tabs { padding-top: 112px; }
@media (max-width: 560px) { .pf-tabs { padding-top: 92px; } }

/* =================== v5 =================== */
/* Menu: voci che stanno sempre nello schermo, senza sovrapporsi */
.menu-nav { gap: 0; justify-content: center; padding: 110px var(--gutter) 90px; overflow-y: auto; }
.menu-nav a { font-size: clamp(2rem, min(6.2vw, 8.5vh), 4.6rem); line-height: 1.12; padding: 0.08em 0; gap: 18px; }
.menu-nav a small { min-width: 2.4em; }
.menu-nav a[aria-current="page"] { font-style: italic; color: var(--gold); }
.menu-contacts { bottom: 28px; }
@media (max-height: 560px) { .menu-nav a { font-size: clamp(1.6rem, 7.5vh, 3rem); } .menu-contacts { display: none; } }

/* Alias dei vecchi pulsanti */
.btn-dark, .btn-blush { background: var(--ink); color: var(--ivory); border-color: var(--ink); }
.btn-dark:hover, .btn-blush:hover { background: transparent; color: var(--ink); }

/* "Spazi trasformati": inquadratura più in basso, non solo i lampadari */
.expand-img { object-position: 50% 88%; }
img[src*="tavola-372"] { object-position: 50% 88%; }

/* Hero pagine: indice delle sezioni */
.hero-index { display: flex; flex-wrap: wrap; gap: 10px 28px; }
.hero-index a { font: 400 0.7rem/1 var(--sans); letter-spacing: 0.28em; text-transform: uppercase; text-decoration: none; padding-bottom: 6px; border-bottom: 1px solid rgba(255,255,255,0.5); }
.hero-index a:hover { border-color: #fff; }

/* Capitoli Floral design */
.chapter { display: grid; grid-template-columns: 1.35fr 1fr; min-height: 100vh; background: var(--ivory); scroll-margin-top: 0; }
.chapter.flip .chapter-media { order: 2; }
.chapter-media { position: relative; min-height: 70vh; }
.chapter-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.chapter-text { display: flex; flex-direction: column; justify-content: center; padding: clamp(50px, 7vw, 110px) clamp(26px, 5vw, 90px); }
.chapter-text .kicker { color: var(--muted); margin-bottom: 26px; }
.chapter-text h2 { font-size: clamp(3rem, 6.5vw, 6rem); margin-bottom: 26px; }
.chapter-text p { max-width: 30ch; color: var(--ink-2); font-size: 1.05rem; margin-bottom: 30px; }
.chapter-text .link-line { align-self: flex-start; }
.chapter-dark { background: var(--ink); color: var(--ivory); }
.chapter-dark .chapter-text p { color: rgba(243,239,232,0.75); }
.chapter-dark .kicker { color: var(--gold); }
.strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; padding: 6px; background: var(--ivory); }
.strip-dark { background: var(--ink); }
.strip figure { margin: 0; aspect-ratio: 3 / 4; }
.strip img { width: 100%; height: 100%; object-fit: cover; }

/* Preventivo */
.quote-intro { padding: clamp(140px, 18vw, 220px) 0 clamp(40px, 6vw, 70px); background: var(--paper); }
.quote-intro h1 { font-size: clamp(3rem, 8vw, 7rem); margin: 18px 0 40px; }
.quote-intro .kicker { color: var(--muted); }
.quote-how { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; border-top: 1px solid var(--line); padding-top: 26px; }
.quote-how li { display: flex; gap: 16px; align-items: baseline; font-size: 1rem; }
.quote-how span { font: italic 400 2rem/1 var(--serif); color: var(--gold); }
.quote-section { padding: clamp(40px, 6vw, 70px) 0 clamp(90px, 12vw, 150px); }
.contact-cta { text-align: center; padding: clamp(36px, 5vw, 56px) 20px; border: 1px solid var(--line); margin-top: 34px; }
.contact-cta h3 { font-size: clamp(2.2rem, 4vw, 3.2rem); margin-bottom: 10px; }
.contact-cta p { color: var(--muted); margin-bottom: 26px; }
.contact-buttons { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.contact-buttons .btn { min-width: 170px; }
.callback { margin-top: 24px; border-bottom: 1px solid var(--line); padding: 0 0 20px; }
.callback summary { cursor: pointer; padding: 18px 0; font: 400 0.75rem/1 var(--sans); letter-spacing: 0.26em; text-transform: uppercase; list-style: none; }
.callback summary::after { content: " +"; }
.callback[open] summary::after { content: " –"; }
.q-sent { color: var(--ink); font-style: italic; font-family: var(--serif); font-size: 1.4rem; }
.choice[hidden] { display: none; }

/* Portfolio: niente blocco in alto, foto grandi */
.page-portfolio .pf-tabs { position: sticky; top: 0; z-index: 30; margin: 0; padding: 118px var(--gutter) 18px; background: linear-gradient(var(--ivory) 82%, rgba(243,239,232,0)); }
.page-portfolio .pf-grid { column-count: 2; column-gap: 8px; padding: 0 8px 8px; }
.page-portfolio .pf-item { margin-bottom: 8px; }
@media (min-width: 1700px) { .page-portfolio .pf-grid { column-count: 3; } }
@media (max-width: 700px) { .page-portfolio .pf-grid { column-count: 1; padding: 0 0 4px; } .page-portfolio .pf-item { margin-bottom: 4px; } .page-portfolio .pf-tabs { padding-top: 96px; } }
.page-portfolio .site-header, .page-quote .site-header, .page-reviews .site-header, .page-review-form .site-header { mix-blend-mode: normal; color: var(--ink); }
.page-portfolio .brand img, .page-quote .brand img, .page-reviews .brand img, .page-review-form .brand img { filter: none; }
body.menu-open .site-header { color: #fff !important; }
body.menu-open .brand img { filter: invert(1) !important; }

/* Recensioni */
.reviews-hero { padding: clamp(140px, 18vw, 220px) 0 clamp(30px, 5vw, 60px); background: var(--ivory); }
.reviews-hero h1 { font-size: clamp(3rem, 9vw, 8rem); margin-top: 18px; }
.reviews-hero .kicker { color: var(--muted); }
.reviews-hero .sub { color: var(--muted); max-width: 46ch; margin-top: 22px; }
.reviews-list { padding-bottom: clamp(90px, 12vw, 160px); }
.rv { display: grid; grid-template-columns: 70px 1fr; gap: 10px 30px; padding: clamp(36px, 5vw, 60px) 0; border-top: 1px solid var(--line); }
.rv-num { font: italic 400 1.2rem/1 var(--serif); color: var(--gold); padding-top: 10px; }
.rv blockquote { margin: 0; font: 400 clamp(1.5rem, 2.8vw, 2.4rem)/1.3 var(--serif); grid-column: 2; }
.rv-name { grid-column: 2; margin: 14px 0 0; font: 400 0.72rem/1 var(--sans); letter-spacing: 0.3em; text-transform: uppercase; color: var(--muted); }
.rv-photos { grid-column: 2; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 22px; }
.rv-photos img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
@media (max-width: 600px) { .rv { grid-template-columns: 1fr; } .rv blockquote, .rv-name, .rv-photos { grid-column: 1; } }

.narrow-form { max-width: 760px; }
.section-tight { padding: 0 0 clamp(90px, 12vw, 150px); }
.stars { display: flex; gap: 6px; margin-bottom: 28px; }
.stars button { background: none; border: 0; font-size: 2rem; line-height: 1; color: var(--stone); cursor: pointer; padding: 4px; }
.stars button.on { color: var(--gold); }
.dropzone { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 34px 20px; border: 1px dashed var(--muted); text-align: center; cursor: pointer; text-transform: none; letter-spacing: 0; color: var(--ink); font: 400 1rem var(--sans); margin-bottom: 14px; }
.dropzone:hover { border-color: var(--ink); }
.dropzone input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.dropzone small { color: var(--muted); font-size: 0.8rem; }
.thumbs { display: flex; gap: 10px; margin-bottom: 20px; flex-wrap: wrap; }
.thumb { position: relative; width: 110px; height: 110px; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb button { position: absolute; top: 4px; right: 4px; width: 28px; height: 28px; border-radius: 50%; border: 0; background: rgba(0,0,0,0.7); color: #fff; cursor: pointer; }
.rv-done { text-align: center; padding: 40px 0; }
.rv-done h2 { font-size: clamp(2.4rem, 5vw, 3.6rem); margin-bottom: 16px; }

/* Footer contatti */
.footer-contact { display: flex; gap: 28px; flex-wrap: wrap; }
.footer-contact a { font: 400 0.7rem/1 var(--sans); letter-spacing: 0.24em; text-transform: uppercase; text-decoration: none; }
.finale-links { gap: 14px; }
.finale-more { display: inline-block; margin-top: 36px; color: #fff; }

@media (max-width: 860px) {
  .chapter, .chapter.flip { grid-template-columns: 1fr; min-height: 0; }
  .chapter.flip .chapter-media { order: 0; }
  .chapter-media { min-height: 78vh; }
  .strip { grid-template-columns: 1fr 1fr; }
  .strip figure:last-child { display: none; }
  .quote-how { grid-template-columns: 1fr; }
  .page-hero-content { flex-direction: column; align-items: flex-start; }
}
.site-footer { padding-bottom: 96px; }
.page-hero-content { padding-right: calc(var(--gutter) + 70px); }
.page-portfolio .pf-tab { font-size: clamp(1.05rem, 1.7vw, 1.55rem); }
/* Portfolio Natale (pagina Floral design) */
.nat-portfolio { background: var(--ink); color: var(--ivory); padding: clamp(70px, 9vw, 120px) 6px 6px; }
.nat-head { padding: 0 var(--gutter) clamp(36px, 5vw, 60px); }
.nat-head .kicker { color: var(--gold); margin-bottom: 18px; }
.nat-head h3 { font-size: clamp(2.4rem, 5vw, 4.4rem); }
.nat-grid { column-count: 3; column-gap: 6px; }
.nat-grid .pf-item { margin-bottom: 6px; }
.nat-grid .pf-open { background: #1c1a18; }
@media (max-width: 1000px) { .nat-grid { column-count: 2; } }
@media (max-width: 560px) { .nat-grid { column-count: 1; } }
.diptych img[src*="rossella-tavola-centrale"] { object-position: 50% 60%; }

/* =================== v6: solo AR in alto, pulsante Home =================== */
.header-left { display: flex; align-items: center; gap: 22px; pointer-events: auto; }
.brand img { width: 40px; height: auto; filter: none; }
.page-portfolio .brand img, .page-quote .brand img, .page-reviews .brand img, .page-review-form .brand img { filter: invert(1); }
body.menu-open .brand img { filter: none !important; }
.home-link {
  display: inline-flex; align-items: center; gap: 10px; padding: 11px 18px; border: 1px solid currentColor; border-radius: 40px;
  font: 400 0.7rem/1 var(--sans); letter-spacing: 0.26em; text-transform: uppercase; text-decoration: none; color: inherit;
  transition: background 0.4s var(--ease), color 0.4s var(--ease);
}
.home-link:hover { background: #fff; color: #000; }
.page-portfolio .home-link:hover, .page-quote .home-link:hover, .page-reviews .home-link:hover, .page-review-form .home-link:hover { background: var(--ink); color: var(--ivory); }
@media (max-width: 560px) { .brand img { width: 34px; } .home-link { padding: 9px 13px; letter-spacing: 0.2em; } .header-left { gap: 14px; } }

/* Video di apertura (computer): inquadratura che esclude il logo stampato nel video */
.film video.crop-logo { transform: scale(1.5); transform-origin: 15% 0%; }
.brand { transition: opacity 0.6s var(--ease); }
body.at-hero:not(.menu-open) .brand { opacity: 0; pointer-events: none; }
/* Pulsante Home: pieno, fuori dal blocco con fusione colori, sempre leggibile */
.home-link { position: fixed; z-index: 91; top: 26px; left: calc(var(--gutter) + 62px); background: var(--ivory); color: var(--ink); border-color: var(--ivory); box-shadow: 0 6px 20px rgba(0,0,0,0.12); }
.home-link:hover { background: var(--ink) !important; color: var(--ivory) !important; border-color: var(--ink); }
.page-portfolio .home-link, .page-quote .home-link, .page-reviews .home-link, .page-review-form .home-link { background: var(--ink); color: var(--ivory); border-color: var(--ink); }
.page-portfolio .home-link:hover, .page-quote .home-link:hover, .page-reviews .home-link:hover, .page-review-form .home-link:hover { background: var(--ivory) !important; color: var(--ink) !important; }
body.menu-open .home-link { opacity: 0; pointer-events: none; }
@media (max-width: 560px) { .home-link { top: 22px; left: calc(var(--gutter) + 48px); } }

/* Portfolio: barra in alto più sottile (una riga, scorrevole) */
.page-portfolio .pf-tabs {
  top: 0; padding: 78px var(--gutter) 10px; gap: 0 22px; margin: 0;
  flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none;
  background: linear-gradient(var(--ivory) 88%, rgba(243,239,232,0));
}
.page-portfolio .pf-tabs::-webkit-scrollbar { display: none; }
.page-portfolio .pf-tab { font-size: clamp(0.95rem, 1.2vw, 1.15rem); padding: 6px 0; white-space: nowrap; flex: none; }
.page-portfolio .pf-tab sup { font-size: 0.55rem; }
@media (max-width: 700px) { .page-portfolio .pf-tabs { padding-top: 70px; gap: 0 16px; } }

/* Il visore nascosto non deve bloccare i clic */
.lightbox[hidden], .drawer-backdrop[hidden] { display: none !important; }

/* Recensioni: titolo + video verticale */
.rv-split-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(30px, 6vw, 90px); align-items: end; }
.rv-video { margin: 0; position: relative; justify-self: end; width: min(100%, 420px); aspect-ratio: 9 / 16; overflow: hidden; background: var(--ink); }
.rv-video video { width: 100%; height: 100%; object-fit: cover; display: block; }
.rv-sound { position: absolute; right: 14px; bottom: 14px; background: rgba(14,13,12,0.6); color: #fff; border: 1px solid rgba(255,255,255,0.5); border-radius: 30px; padding: 9px 14px; font: 400 0.66rem/1 var(--sans); letter-spacing: 0.24em; text-transform: uppercase; cursor: pointer; backdrop-filter: blur(6px); }
.rv-sound[aria-pressed="true"] { background: #fff; color: var(--ink); }
@media (max-width: 760px) {
  .rv-split-grid { grid-template-columns: 1fr; }
  .rv-video { justify-self: stretch; width: 100%; max-height: 80vh; }
}

/* Preventivo: tre sezioni grandi */
.sections3 .choice.photo { min-height: 62vh !important; max-height: 560px; padding: 28px !important; gap: 10px; }
.sections3 .choice.photo small { font: italic 400 1.1rem/1 var(--serif); color: var(--gold); }
.sections3 .choice.photo strong { font-size: clamp(1.8rem, 2.6vw, 2.6rem) !important; line-height: 1.05; }
.sections3 .choice.photo span { color: rgba(255,255,255,0.85); font-size: 0.85rem; }
.sections3 .choice.photo:hover { transform: translateY(-4px); }
@media (max-width: 860px) {
  .choices.sections3 { grid-template-columns: 1fr !important; }
  .sections3 .choice.photo { min-height: 46vh !important; }
}

/* Preventivo matrimonio: quantità, blocchi, note */
.choices.cols-2 { grid-template-columns: repeat(2, 1fr); }
.choices.cols-5 { grid-template-columns: repeat(5, 1fr); }
.qty-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px 22px; margin: 4px 0 28px; }
.qty label { margin-bottom: 8px; }
.qty input { font: 400 1.4rem/1.2 var(--serif); padding: 6px 0; }
.qty[hidden] { display: none; }
.wz-step [data-show][hidden] { display: none; }
.wz-step .label-like { margin-top: 18px; }
.included { margin: 6px 0 22px; padding: 16px 18px; border-left: 2px solid var(--gold); background: var(--stone); font-size: 0.92rem; }
.send-box { margin-top: 28px; }
@media (max-width: 640px) { .choices.cols-5 { grid-template-columns: 1fr 1fr; } .choices.cols-2 { grid-template-columns: 1fr 1fr; } }

.email-note { margin: 26px 0 8px; font: 400 1.25rem/1.4 var(--serif); }
.callback { margin-top: 8px; border: 0; padding: 0; }

/* ---------- Moodboard: griglie di foto da toccare ---------- */
.choices.tiles { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; }
.choices.tiles.tall { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.choices.tiles .choice { min-height: 170px; }
.choices.tiles .choice.photo { min-height: 190px !important; padding: 14px 16px !important; justify-content: flex-end; gap: 4px; transition: transform 0.5s var(--ease), filter 0.4s; }
.choices.tiles.tall .choice.photo { min-height: 280px !important; }
.choices.tiles .choice.photo strong { font: 400 1.12rem/1.15 var(--serif) !important; }
.choices.tiles .choice.photo span { color: rgba(255,255,255,0.8); font-size: 0.74rem; }
.choices.tiles .choice.photo:hover { transform: translateY(-3px); }
.choice.photo[aria-pressed="true"] { outline: 1px solid var(--ink); outline-offset: 5px; background: linear-gradient(180deg, rgba(0,0,0,0) 35%, rgba(0,0,0,0.7)), var(--bg) center / cover; color: #fff; }
.choice.photo[aria-pressed="true"]::after, .choice.photo[aria-checked="true"]::after { content: "✓"; width: 24px; height: 24px; border-radius: 50%; background: var(--ivory); color: var(--ink); font: 400 0.8rem/24px var(--sans); text-align: center; top: 10px; right: 10px; }
.choices.tiles .choice:not(.photo) { justify-content: flex-end; background: var(--stone); }
.moodboard { margin: 0 0 34px; }
.moodboard.is-empty { display: none; }
.mb-grid { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 150px; grid-auto-flow: dense; gap: 8px; }
.mb-grid figure { margin: 0; position: relative; overflow: hidden; background: var(--stone); }
.mb-grid figure.lead { grid-column: span 2; grid-row: span 2; }
.mb-grid img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mb-grid figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 18px 10px 8px; font: 400 0.62rem/1.2 var(--sans); letter-spacing: 0.14em; text-transform: uppercase; color: #fff; background: linear-gradient(180deg, rgba(0,0,0,0), rgba(0,0,0,0.6)); }
.mb-palette { display: flex; gap: 8px; margin-top: 8px; }
.mb-palette span { flex: 1; height: 34px; background: var(--sw); }
.mb-palette[hidden] { display: none; }
.wz-step .field[hidden] { display: none; }
@media (max-width: 720px) {
  .choices.tiles { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .choices.tiles.tall { grid-template-columns: repeat(2, 1fr); }
  .choices.tiles .choice.photo { min-height: 150px !important; }
  .choices.tiles.tall .choice.photo { min-height: 200px !important; }
  .mb-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 120px; }
  .mb-grid figure.lead { grid-column: span 2; grid-row: span 1; }
}

/* ---------- Colori: cerchi di sfumature ---------- */
.choices.dots { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 14px 10px; }
.dot-family { grid-column: 1 / -1; margin: 10px 0 -4px; font: 400 0.64rem/1 var(--sans); letter-spacing: 0.24em; text-transform: uppercase; color: var(--muted); }
.dot-family:first-child { margin-top: 0; }
.choice.dot, .choice.dot[aria-pressed="true"] { background: transparent; border: 0; padding: 0; min-height: 0; align-items: center; text-align: center; gap: 8px; color: var(--ink); }
.choice.dot::before { content: ""; width: 64px; height: 64px; border-radius: 50%; background: var(--c); border: 1px solid rgba(0,0,0,0.08); box-shadow: 0 0 0 0 var(--ink); transition: transform 0.4s var(--ease), box-shadow 0.3s; }
.choice.dot:hover::before { transform: scale(1.06); }
.choice.dot[aria-pressed="true"]::before { box-shadow: 0 0 0 3px var(--ivory), 0 0 0 4px var(--ink); }
.choice.dot[aria-pressed="true"]::after { display: none; }
.choice.dot strong { font: 400 0.8rem/1.2 var(--sans) !important; }
.mb-palette span { border-radius: 50%; width: 38px; height: 38px; flex: 0 0 38px; border: 1px solid rgba(0,0,0,0.08); }
.mb-palette { flex-wrap: wrap; gap: 10px; }
@media (max-width: 640px) { .choices.dots { grid-template-columns: repeat(4, 1fr); gap: 12px 6px; } .choice.dot::before { width: 52px; height: 52px; } .choice.dot strong { font-size: 0.7rem !important; } }

.wz-step [data-show-when][hidden] { display: none; }

/* ---------- Recensioni: le parole in alto, le foto al passaggio del mouse o del dito ---------- */
.rv { grid-template-columns: 1fr; gap: 0; }
.rv-num { display: none; }
.rv blockquote, .rv-name, .rv-photos { grid-column: 1; }
.rv.has-photos { cursor: pointer; }
.rv.has-photos blockquote { transition: color 0.4s; }
.rv.has-photos:hover blockquote, .rv.has-photos.open blockquote { color: var(--gold); }
.rv-hint { display: block; margin-top: 8px; font: italic 400 0.8rem/1.3 var(--serif); letter-spacing: 0; text-transform: none; color: var(--gold); }
.rv-photos { grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 0; max-height: 0; opacity: 0; overflow: hidden; transition: max-height 0.9s var(--ease), opacity 0.6s, margin-top 0.6s var(--ease); }
.rv-photos img { aspect-ratio: 4 / 5; object-fit: cover; transform: translateY(14px); transition: transform 0.9s var(--ease); }
.rv.has-photos:hover .rv-photos, .rv.has-photos.open .rv-photos { max-height: 60vh; opacity: 1; margin-top: 26px; }
.rv.has-photos:hover .rv-photos img, .rv.has-photos.open .rv-photos img { transform: none; }
.rv-photos img:nth-child(2) { transition-delay: 0.08s; } .rv-photos img:nth-child(3) { transition-delay: 0.16s; }
@media (hover: none) { .rv.has-photos:hover:not(.open) .rv-photos { max-height: 0; opacity: 0; margin-top: 0; } }
@media (max-width: 600px) { .rv-photos { grid-template-columns: 1fr 1fr; } .rv-photos img:nth-child(3) { display: none; } }
@media (prefers-reduced-motion: reduce) { .rv-photos, .rv-photos img { transition: none; } }

/* Foto del moodboard: al passaggio del mouse le scritte spariscono e la foto si vede pulita */
.choice.photo strong, .choice.photo span, .choice.photo small { transition: opacity 0.4s var(--ease); }
@media (hover: hover) {
  .choice.photo:hover strong, .choice.photo:hover span, .choice.photo:hover small { opacity: 0; }
  .choice.photo:hover, .choice.photo[aria-pressed="true"]:hover, .choice.photo[aria-checked="true"]:hover { background: var(--bg) center / cover; }
}

/* Nella griglia delle foto, le voci solo testo restano basse e compatte */
.choices.tiles .choice:not(.photo) { min-height: 0 !important; align-self: start; justify-content: center; padding: 18px 16px !important; }

/* ---------- Pagine legali (privacy, cookie) ---------- */
.legal { padding-top: clamp(150px, 18vw, 220px); }
.legal .section-head { margin-bottom: 48px; }
.legal-body { max-width: 720px; }
.legal-body h3 { font-size: 1.5rem; margin: 44px 0 12px; }
.legal-body h3:first-child { margin-top: 0; }
.legal-body p, .legal-body li { font-size: 1rem; color: var(--ink-2); }
.legal-body ul { padding-left: 20px; margin: 0 0 14px; }
.legal-body li { margin-bottom: 8px; }
.legal-body a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.legal-body .sel { user-select: all; }
