/* ============ Effegi Pose ============ */
:root {
  --calce: #f3efe8;
  --carta: #fbf9f5;
  --ink: #1a1918;
  --ink-2: #5d5850;
  --ink-3: #8c867c;
  --linea: rgba(26, 25, 24, 0.12);
  --ottanio: #1f4d49;
  --cotto: #c26a43;
  --wa: #1f7a54;
  --radius: 22px;
  --serif: 'Marcellus', Georgia, serif;
  --sans: 'Manrope', system-ui, -apple-system, sans-serif;
  --gutter: clamp(16px, 4vw, 48px);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  /* finitura rubinetteria */
  --m1: #f6f8f9; --m2: #9aa4aa; --m3: #eef2f4; --m4: #5f686e; --tap: #b9c2c7;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--calce);
  color: var(--ink);
  font: 400 16px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
.wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: clamp(80px, 12vw, 150px) 0; }
.dark { background: #121211; color: #f1ede6; }

/* ---------- tipografia ---------- */
.kicker { font: 600 12px/1 var(--sans); letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-3); margin: 0 0 18px; }
.kicker.light { color: rgba(255, 255, 255, 0.7); }
.display, .display-m, .display-s { font-family: var(--serif); font-weight: 400; letter-spacing: 0; margin: 0; }
.display { font-size: clamp(44px, 9vw, 104px); line-height: 0.95; }
.display-m { font-size: clamp(34px, 5.6vw, 66px); line-height: 1.08; }
.display-s { font-size: clamp(26px, 3.6vw, 40px); line-height: 1.12; }
.display em, .display-m em, .display-s em { font-style: normal; color: var(--cotto); }
.lead { font-size: clamp(17px, 1.6vw, 20px); color: var(--ink-2); max-width: 34em; margin: 22px 0 0; }
.light { color: rgba(255, 255, 255, 0.86); }
.lead.light { color: rgba(255, 255, 255, 0.78); }
.sec-head { margin-bottom: clamp(36px, 6vw, 64px); }
.note { color: var(--ink-3); font-size: 14px; margin-top: 28px; }

/* ---------- bottoni ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px; border-radius: 999px; border: 0;
  font: 600 15px/1 var(--sans); text-decoration: none; letter-spacing: 0.01em;
  transition: transform 0.25s var(--ease), background 0.25s, box-shadow 0.25s;
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(0.97); }
.btn-dark { background: var(--ink); color: var(--calce); }
.btn-dark:hover { background: #000; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2); }
.btn-light { background: var(--calce); color: var(--ink); }
.btn-ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn-wa { background: var(--wa); color: #fff; }
.btn-wa:hover { background: #17633f; }
.btn-small { min-height: 40px; padding: 0 18px; font-size: 14px; }
.btn-wide { width: 100%; }
.round-btn { width: 48px; height: 48px; border-radius: 50%; border: 1.5px solid var(--ink); background: transparent; font-size: 18px; transition: background 0.2s, color 0.2s; }
.round-btn:hover { background: var(--ink); color: var(--calce); }

/* ---------- logo ---------- */
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.logo-mark { display: grid; grid-template-columns: 9px 9px; gap: 2px; }
.logo-mark i { width: 9px; height: 9px; background: currentColor; border-radius: 1.5px; }
.logo-mark i:last-child { background: var(--cotto); }
.logo-text { font: 400 21px/1 var(--serif); letter-spacing: .02em; }
.logo-text b { font-weight: 400; margin-left: 2px; }

/* ---------- testata ---------- */
.topbar {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: calc(14px + env(safe-area-inset-top)) var(--gutter) 14px;
  color: #fff; transition: background 0.35s, color 0.35s, box-shadow 0.35s, transform 0.4s var(--ease);
}
.topbar.solid { background: rgba(243, 239, 232, 0.86); color: var(--ink); backdrop-filter: blur(16px) saturate(1.4); -webkit-backdrop-filter: blur(16px) saturate(1.4); box-shadow: 0 1px 0 var(--linea); }
.topbar.hide { transform: translateY(-100%); }
.topnav { display: none; gap: 30px; font-size: 14px; font-weight: 500; }
.topnav a { text-decoration: none; opacity: 0.85; position: relative; }
.topnav a::after { content: ''; position: absolute; left: 0; right: 100%; bottom: -6px; height: 1.5px; background: currentColor; transition: right 0.3s var(--ease); }
.topnav a:hover::after { right: 0; }
.topbar .btn-light { background: rgba(255, 255, 255, 0.92); }
.topbar.solid .btn-light { background: var(--ink); color: var(--calce); }
.topcta { display: none; }
@media (min-width: 960px) { .topnav, .topcta { display: inline-flex; } }

/* scene 3D (bagno da provare) */
.scaler { position: absolute; left: 0; top: 0; width: 600px; height: 450px; transform-origin: 0 0; }
.stage { position: absolute; inset: 0; width: 600px; height: 450px; }
.world { position: absolute; left: 0; top: 0; width: 600px; height: 450px; transform-style: preserve-3d; }
.f { position: absolute; left: 0; top: 0; transform-origin: 0 0; backface-visibility: visible; }

/* ======================================================
   BENVENUTO — si entra nello showroom scorrendo
   (lo schermo resta fermo per un tratto, poi il sito riprende a scorrere)
   ====================================================== */
.benvenuto { position: relative; height: 100vh; height: 100svh; min-height: 560px; background: #1c1916; color: #fff; }
.bv-sticky { position: relative; height: 100%; overflow: hidden; isolation: isolate; }
.bv-3d { position: absolute; inset: 0; perspective: 640px; perspective-origin: 50% 46%; overflow: hidden;
  background: radial-gradient(80% 60% at 50% 45%, #6d655b, #2a2520); }
.bv-world { position: absolute; left: 0; top: 0; width: 100%; height: 100%; transform-style: preserve-3d; will-change: transform; }
.bv-f { position: absolute; transform-origin: 0 0; backface-visibility: visible; }

.bv-floor { background-color: #a9a8a4; background-repeat: no-repeat, repeat; }
.bv-ceil { background-color: #ddd5c9; }
.bv-wall { background-color: #ddd6cb; box-shadow: inset 0 -10px 0 #3a342e; }
.bv-back {
  background:
    radial-gradient(16% 30% at 22% 6%, rgba(255, 236, 205, .6), transparent 70%),
    radial-gradient(16% 30% at 50% 6%, rgba(255, 236, 205, .65), transparent 70%),
    radial-gradient(16% 30% at 78% 6%, rgba(255, 236, 205, .6), transparent 70%),
    linear-gradient(180deg, #cfc7ba, #bdb4a6);
  box-shadow: inset 0 -10px 0 #3a342e;
}
.bv-samples { position: absolute; left: 14%; right: 14%; top: 10%; height: 36%; display: flex; gap: 4%; }
.bv-tile { flex: 1; background: #ccc center / cover; box-shadow: 0 0 0 3px #f6f2ec, 0 18px 30px rgba(0, 0, 0, .35); }

/* travi in legno massello */
.bv-beam {
  background:
    repeating-linear-gradient(0deg, rgba(30, 16, 6, .16) 0 1px, transparent 1px 5px, rgba(255, 220, 180, .05) 5px 7px, transparent 7px 11px),
    linear-gradient(180deg, #8a6243, #6a4729 55%, #4f341f);
}
.bv-beam-under { background: linear-gradient(180deg, #5a3d26, #4a3220); }

/* campioni alle pareti */
.bv-panel { background: #ccc center / cover; box-shadow: 0 0 0 4px #f6f2ec; }
.bv-panel b {
  position: absolute; left: 0; right: 0; top: calc(100% + 12px); text-align: center;
  font: 700 13px/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: #3a342d;
}
.bv-boiserie { background: #ece6db; padding: 6%; display: grid; grid-template-rows: 1.6fr 1fr; gap: 5%; }
.bv-boiserie i { border: 3px solid #f8f4ed; box-shadow: inset 0 0 0 2px rgba(120, 104, 84, .22), 0 0 0 2px rgba(120, 104, 84, .18); }
.bv-carta {
  background-color: #49604f;
  background-image:
    radial-gradient(circle at 50% 100%, transparent 15px, rgba(222, 196, 140, .7) 16px 17px, transparent 18px 25px, rgba(222, 196, 140, .45) 26px 27px, transparent 28px),
    radial-gradient(circle at 50% 100%, transparent 15px, rgba(222, 196, 140, .7) 16px 17px, transparent 18px 25px, rgba(222, 196, 140, .45) 26px 27px, transparent 28px);
  background-size: 56px 28px;
  background-position: 0 0, 28px 14px;
}


/* velature per leggere i testi */
.bv-shade { position: absolute; inset: 0; z-index: 1; pointer-events: none; background:
  linear-gradient(180deg, rgba(14, 12, 10, .6) 0%, rgba(14, 12, 10, 0) 20%),
  linear-gradient(0deg, rgba(14, 12, 10, .85) 0%, rgba(14, 12, 10, .55) 38%, rgba(14, 12, 10, 0) 68%); }
.bv-copy { position: absolute; z-index: 2; left: 0; right: 0; bottom: calc(96px + env(safe-area-inset-bottom)); text-align: center; will-change: opacity, transform; }
.bv-copy::before { content: ''; position: absolute; z-index: -1; left: -20%; right: -20%; top: -30%; bottom: -40%; background: radial-gradient(50% 50% at 50% 55%, rgba(14, 12, 10, .72), rgba(14, 12, 10, 0)); pointer-events: none; }
.bv-kicker { font: 600 12px/1 var(--sans); letter-spacing: .24em; text-transform: uppercase; color: rgba(255, 255, 255, .75); margin: 0 0 16px; text-shadow: 0 1px 12px rgba(0, 0, 0, .8); }
.bv-title { font: 400 clamp(46px, 9vw, 112px)/.95 var(--serif); letter-spacing: .04em; margin: 0; color: #fff; text-shadow: 0 4px 40px rgba(0, 0, 0, .45); }
.bv-list { margin: 16px auto 0; max-width: 40em; font: 500 clamp(11px, 1vw, 13px)/1.8 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: rgba(255, 255, 255, .72); }
.bv-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 1.1em; }
.bv-list span { white-space: nowrap; }
.bv-rule { display: block; width: 56px; height: 2px; margin: 20px auto 0; background: #e9a07c; }
.bv-lead { margin: 14px auto 0; max-width: 34em; font-size: clamp(16px, 1.5vw, 19px); color: rgba(255, 255, 255, .85); }
.bv-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 26px; }
.btn-ghost-light { background: transparent; color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .7); }
.btn-ghost-light:hover { background: rgba(255, 255, 255, .1); }

/* invito a scorrere, ben visibile */
.bv-scroll { position: absolute; z-index: 2; left: 50%; bottom: calc(22px + env(safe-area-inset-bottom)); transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 10px; text-decoration: none; color: #fff; font: 600 11px/1 var(--sans); letter-spacing: .24em; text-transform: uppercase; }
.bv-arrow { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .7); animation: bvBounce 1.8s var(--ease) infinite; }
.bv-arrow svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
@keyframes bvBounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(7px); } }
@media (prefers-reduced-motion: reduce) { .bv-arrow { animation: none; } }

@media (max-width: 699px) {
  .bv-copy { bottom: calc(88px + env(safe-area-inset-bottom)); }
  .bv-list { line-height: 1.9; letter-spacing: .12em; gap: 0 .9em; }
  .bv-actions .btn { min-height: 46px; }
}
@media (max-height: 700px) and (min-width: 700px) { .bv-lead { display: none; } }


/* ======================================================
   REPARTI
   ====================================================== */
.reparti { padding-bottom: 60px; }
.aisle {
  display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 10px var(--gutter) 30px; scroll-padding: 0 var(--gutter);
  scrollbar-width: none; overscroll-behavior-x: contain; outline: none;
}
.aisle::-webkit-scrollbar { display: none; }
@media (min-width: 1240px) { .aisle { padding-left: calc((100vw - 1240px) / 2 + var(--gutter)); scroll-padding-left: calc((100vw - 1240px) / 2 + var(--gutter)); } }
.aisle-card {
  position: relative; flex: 0 0 min(82vw, 420px); height: min(118vw, 600px); scroll-snap-align: start;
  border-radius: 28px; overflow: hidden; cursor: pointer; color: #fff; isolation: isolate;
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.45);
  transition: transform 0.5s var(--ease);
}
.aisle-card:hover { transform: translateY(-6px); }
.aisle-tex { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background-size: cover; background-position: center; transform: scale(1.08); transition: transform 1.2s var(--ease); z-index: -1; }
.aisle-card:hover .aisle-tex { transform: scale(1.14) rotate(0.6deg); }
.aisle-card::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(0,0,0,0) 35%, rgba(0,0,0,.72) 100%); }
.aisle-body { position: absolute; left: 0; right: 0; bottom: 0; padding: 28px; }
.aisle-num { font: 500 13px/1 var(--sans); letter-spacing: 0.2em; opacity: 0.75; }
.aisle-body h3 { font: 400 clamp(30px, 3.6vw, 38px)/1.05 var(--serif); margin: 12px 0 10px; letter-spacing: 0; }
.aisle-body p { margin: 0 0 18px; opacity: 0.88; font-size: 15px; }
.aisle-link { font-weight: 600; font-size: 14px; border-bottom: 1px solid rgba(255, 255, 255, 0.5); padding-bottom: 3px; }
.chrome-tex { background: radial-gradient(80% 60% at 30% 25%, #4a4f53 0%, #1b1d1f 70%); display: grid; place-items: center; }
.aisle-faucet { width: 64%; color: var(--tap); }
.aisle-chrome .aisle-faucet { filter: drop-shadow(0 20px 30px rgba(0,0,0,.5)); }
.aisle-nav { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.aisle-dots { display: flex; gap: 8px; }
.aisle-dots i { width: 8px; height: 8px; border-radius: 4px; background: var(--linea); transition: width 0.3s var(--ease), background 0.3s; }
.aisle-dots i.on { width: 28px; background: var(--ink); }

/* ======================================================
   LAVORI
   ====================================================== */
.lavori { padding-top: 40px; }
.display-m em { font-style: normal; color: var(--cotto); }
.lav-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 760px) { .lav-grid { grid-template-columns: repeat(3, 1fr); gap: 16px; } }
@media (min-width: 1100px) { .lav-grid { grid-template-columns: repeat(4, 1fr); gap: 18px; } }
.lav-more-wrap { display: flex; justify-content: center; margin-top: 28px; }
.lav-more-wrap .btn { min-width: 240px; }
.shot {
  display: block; width: 100%; aspect-ratio: 4 / 5; margin: 0; padding: 0; border: 0; background: #ddd6cb;
  border-radius: 16px; overflow: hidden; position: relative; cursor: zoom-in;
  animation: tileIn 0.6s var(--ease) both; -webkit-tap-highlight-color: transparent;
}
.shot[hidden] { display: none; }
.shot img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.9s var(--ease); }
.shot:hover img { transform: scale(1.05); }
.shot span {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 14px 12px; text-align: left;
  font: 600 13px/1.3 var(--sans); color: #fff; background: linear-gradient(transparent, rgba(0,0,0,.7));
  opacity: 0; transform: translateY(8px); transition: opacity 0.35s, transform 0.4s var(--ease);
}
.shot:hover span, .shot:focus-visible span { opacity: 1; transform: none; }
@media (hover: none) { .shot span { opacity: 1; transform: none; font-size: 12px; padding: 30px 10px 9px; } }

.cantiere { display: grid; gap: 34px; align-items: center; margin-top: clamp(60px, 9vw, 110px); padding: clamp(28px, 5vw, 56px); border-radius: 30px; background: var(--carta); box-shadow: 0 30px 60px -45px rgba(0,0,0,.4); }
@media (min-width: 800px) { .cantiere { grid-template-columns: auto 1fr; gap: 64px; } }
.phone { position: relative; width: min(64vw, 280px); aspect-ratio: 9 / 16; margin: 0 auto; border-radius: 34px; padding: 8px; background: #111; box-shadow: 0 40px 70px -30px rgba(0,0,0,.6), inset 0 0 0 2px #333; }
.phone video { width: 100%; height: 100%; object-fit: cover; border-radius: 27px; display: block; background: #222; }
.phone-play { position: absolute; left: 50%; top: 50%; width: 72px; height: 72px; margin: -36px 0 0 -36px; border-radius: 50%; border: 0; background: rgba(255,255,255,.92); font-size: 24px; padding-left: 5px; box-shadow: 0 10px 30px rgba(0,0,0,.3); }
.phone-play[hidden] { display: none; }
.cantiere-text p:not(.kicker) { color: var(--ink-2); margin: 18px 0 26px; max-width: 30em; }

.pubblici { background: var(--ottanio); color: #fff; padding: clamp(80px, 11vw, 140px) 0; overflow: hidden; }
.pub-grid { display: grid; gap: 44px; align-items: center; }
@media (min-width: 900px) { .pub-grid { grid-template-columns: 1fr 1.2fr; } }
.pub-text .btn { margin-top: 30px; }
.pub-photos { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: auto auto; gap: 12px; }
.pub-photos img { width: 100%; height: 100%; object-fit: cover; border-radius: 18px; box-shadow: 0 30px 50px -30px rgba(0,0,0,.6); }
.pub-photos img:first-child { grid-row: span 2; aspect-ratio: 3 / 4.6; }
.pub-photos img:nth-child(2), .pub-photos img:nth-child(3) { aspect-ratio: 4 / 3.3; }

/* foto a schermo intero */
.lb { position: fixed; inset: 0; z-index: 95; background: #0c0c0b; animation: fade 0.3s both; }
.lb[hidden] { display: none; }
.lb-stage { position: absolute; inset: 0; display: grid; place-items: center; padding: calc(64px + env(safe-area-inset-top)) 12px calc(96px + env(safe-area-inset-bottom)); touch-action: pan-y pinch-zoom; }
.lb-stage img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 10px; opacity: 0; transform: scale(0.97); transition: opacity 0.35s, transform 0.5s var(--ease); user-select: none; -webkit-user-drag: none; }
.lb-stage img.from-r { transform: translateX(40px); }
.lb-stage img.from-l { transform: translateX(-40px); }
.lb-stage img.in { opacity: 1; transform: none; }
.lb-btn { position: absolute; z-index: 2; width: 48px; height: 48px; border-radius: 50%; border: 0; background: rgba(255,255,255,.12); color: #fff; font-size: 20px; backdrop-filter: blur(8px); transition: background 0.2s; }
.lb-btn:hover { background: rgba(255,255,255,.25); }
.lb-x { top: calc(14px + env(safe-area-inset-top)); right: 14px; font-size: 28px; }
.lb-prev, .lb-next { bottom: calc(24px + env(safe-area-inset-bottom)); }
.lb-prev { right: 74px; }
.lb-next { right: 14px; }
@media (min-width: 900px) { .lb-prev, .lb-next { top: 50%; bottom: auto; margin-top: -24px; } .lb-prev { left: 24px; right: auto; } .lb-next { right: 24px; } }
.lb-cap { position: absolute; left: 18px; right: 140px; bottom: calc(24px + env(safe-area-inset-bottom)); color: #fff; }
.lb-cap span { font-size: 12px; letter-spacing: 0.14em; color: rgba(255,255,255,.55); }
.lb-cap p { margin: 4px 0 0; font: 400 19px/1.25 var(--serif); }
@media (min-width: 900px) { .lb-cap { left: 50%; right: auto; transform: translateX(-50%); text-align: center; width: min(600px, 80vw); } }

/* ======================================================
   CAMPIONARIO
   ====================================================== */
.campionario { background: var(--carta); }
.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 calc(var(--gutter) * -1) 28px; padding: 2px var(--gutter); }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; min-height: 42px; padding: 0 18px; border-radius: 999px; border: 1.5px solid var(--linea); background: transparent; font-weight: 600; font-size: 14px; transition: all 0.25s var(--ease); }
.chip.on { background: var(--ink); color: var(--calce); border-color: var(--ink); }
.tile-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
@media (min-width: 700px) { .tile-grid { grid-template-columns: repeat(3, 1fr); gap: 18px; } }
@media (min-width: 1040px) { .tile-grid { grid-template-columns: repeat(4, 1fr); gap: 22px; } }
.tile {
  position: relative; border: 0; padding: 0; background: none; text-align: left;
  display: flex; flex-direction: column; gap: 12px; -webkit-tap-highlight-color: transparent;
  animation: tileIn 0.6s var(--ease) both;
}
@keyframes tileIn { from { opacity: 0; transform: translateY(18px) scale(0.98); } }
.tile.hidden { display: none; }
.tile-face {
  position: relative; aspect-ratio: 1; border-radius: 16px; overflow: hidden;
  background: #e8e3da center / cover;
  box-shadow: 0 1px 0 rgba(255,255,255,.6) inset, 0 18px 36px -22px rgba(0, 0, 0, 0.45);
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
  transform: perspective(700px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
}
.tile-face::after { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at var(--gx, 30%) var(--gy, 20%), rgba(255,255,255,.35), rgba(255,255,255,0) 50%); opacity: 0; transition: opacity 0.4s; }
.tile:hover .tile-face { box-shadow: 0 30px 50px -24px rgba(0, 0, 0, 0.5); }
.tile:hover .tile-face::after { opacity: 1; }
.tile:active .tile-face { transform: scale(0.97); }
.tile-name { font: 400 19px/1.15 var(--serif); letter-spacing: 0; }
.tile-meta { font-size: 13px; color: var(--ink-3); margin-top: -8px; }

/* scheda */
.sheet { position: fixed; inset: 0; z-index: 90; display: flex; align-items: flex-end; justify-content: center; }
.sheet[hidden] { display: none; }
.sheet-bg { position: absolute; inset: 0; background: rgba(15, 14, 13, 0.55); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); animation: fade 0.3s both; }
.sheet-card {
  position: relative; width: 100%; max-height: 92vh; overflow: auto; background: var(--carta);
  border-radius: 28px 28px 0 0; animation: up 0.5s var(--ease) both; padding-bottom: env(safe-area-inset-bottom);
}
.sheet.closing .sheet-card { animation: down 0.3s ease both; }
.sheet.closing .sheet-bg { animation: fade 0.3s reverse both; }
@keyframes up { from { transform: translateY(100%); } }
@keyframes down { to { transform: translateY(100%); } }
@keyframes fade { from { opacity: 0; } }
.sheet-tex { position: relative; height: min(70vw, 420px); background: center / cover; cursor: zoom-in; touch-action: none; overflow: hidden; }
.loupe { position: absolute; width: 150px; height: 150px; border-radius: 50%; pointer-events: none; opacity: 0; transform: translate(-50%, -50%) scale(0.6); transition: opacity 0.2s, transform 0.3s var(--ease); box-shadow: 0 0 0 4px #fff, 0 20px 40px rgba(0, 0, 0, 0.35); background-repeat: no-repeat; }
.loupe.on { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.sheet-x { position: absolute; z-index: 2; top: 14px; right: 14px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, 0.92); font-size: 26px; line-height: 1; box-shadow: 0 6px 20px rgba(0,0,0,.15); }
.sheet-body { padding: 26px var(--gutter) 30px; }
.sheet-data { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 22px 0 26px; }
.sheet-data dt { font-size: 12px; text-transform: uppercase; letter-spacing: 0.14em; color: var(--ink-3); }
.sheet-data dd { margin: 4px 0 0; font-weight: 600; }
.sheet-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.sheet-actions .btn { padding: 0 12px; }
@media (min-width: 800px) {
  .sheet { align-items: center; }
  .sheet-card { width: min(940px, 92vw); border-radius: 28px; display: grid; grid-template-columns: 1.1fr 1fr; animation: pop 0.5s var(--ease) both; }
  .sheet.closing .sheet-card { animation: fade 0.25s reverse both; }
  .sheet-tex { height: auto; min-height: 480px; }
  .sheet-body { padding: 48px 40px; align-self: center; }
  @keyframes pop { from { opacity: 0; transform: scale(0.94) translateY(20px); } }
}

/* ======================================================
   PROVA IL BAGNO (stanza 3D)
   ====================================================== */
.prova-grid { display: grid; gap: 22px; }
.prova-grid > *, .show-grid > *, .idr-grid > * { min-width: 0; }
@media (max-width: 979px) { .room-box { aspect-ratio: 1 / 1; } }
@media (min-width: 980px) { .prova-grid { grid-template-columns: 1.5fr 1fr; gap: 40px; align-items: start; } .room-box { position: sticky; top: 90px; } }
.room-box {
  position: relative; width: 100%; aspect-ratio: 4 / 3.2; border-radius: 26px; overflow: hidden;
  background: #cfc8bd; touch-action: pan-y; cursor: grab; user-select: none; -webkit-user-select: none;
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.5);
}
.room-box:active { cursor: grabbing; }
.room-scaler { position: absolute; left: 0; top: 0; width: 600px; height: 450px; transform-origin: 0 0; }
.room-stage { perspective: 700px; perspective-origin: 300px 235px; }
.room-world { transform-origin: 300px 225px -250px; transition: transform 0.6s var(--ease); }
.room-world.dragging { transition: none; }
.r-wall, .r-floor { background-color: #ddd; background-size: 100% 100%; transition: filter 0.3s; }
.flash { animation: flash 0.6s var(--ease); }
@keyframes flash { 0% { filter: brightness(1.4) saturate(0.6); } 100% { filter: none; } }
.r-floor { width: 600px; height: 800px; transform: translate3d(0, 450px, 300px) rotateX(-90deg); }
.r-floor::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(0,0,0,0) 40%, rgba(0,0,0,.25) 100%); pointer-events: none; }
.r-ceil { width: 600px; height: 800px; transform: translate3d(0, 0, 300px) rotateX(-90deg); background: linear-gradient(180deg, #f6f4ef, #e3ded5); }
.r-left { width: 800px; height: 450px; transform: translate3d(0, 0, 300px) rotateY(90deg); }
.r-left::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.18), rgba(0,0,0,.06)); pointer-events: none; }
.r-right { width: 800px; height: 450px; transform: translate3d(600px, 0, -500px) rotateY(-90deg); }
.r-right::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.02), rgba(0,0,0,.22)); pointer-events: none; }
.r-back { width: 600px; height: 450px; transform: translateZ(-500px); }
.r-back::after { content: ''; position: absolute; inset: 0; background: radial-gradient(80% 70% at 35% 15%, rgba(255,250,240,.22), rgba(0,0,0,.08)); pointer-events: none; }
.r-mirror { position: absolute; left: 92px; top: 52px; width: 176px; height: 170px; border-radius: 88px 88px 6px 6px;
  background: linear-gradient(160deg, #e9eef0 0%, #b9c3c8 45%, #dfe6e9 60%, #9eaab0 100%); box-shadow: 0 10px 24px rgba(0,0,0,.25), inset 0 0 0 3px var(--tap); }
.r-light { position: absolute; left: 140px; top: 34px; width: 80px; height: 6px; border-radius: 3px; background: #fff7e6; box-shadow: 0 0 20px 6px rgba(255, 240, 210, 0.7); }
.r-vanity { position: absolute; left: 70px; top: 262px; width: 220px; height: 100px; }
.r-top { position: absolute; left: 0; right: 0; top: 0; height: 12px; background: linear-gradient(#f7f5f1, #dcd7cf); border-radius: 2px; box-shadow: 0 4px 6px rgba(0,0,0,.15); }
.r-basin { position: absolute; left: 60px; top: -16px; width: 100px; height: 18px; border-radius: 50px 50px 10px 10px; background: linear-gradient(#fff, #e7e3dc); box-shadow: 0 2px 4px rgba(0,0,0,.15); }
.r-tap { position: absolute; left: 92px; top: -54px; width: 38px; height: 38px; }
.r-drawers { position: absolute; left: 0; right: 0; top: 12px; bottom: 0; background: linear-gradient(90deg, #7a5a3e, #8f6c4c 50%, #6d4f35); display: grid; grid-template-columns: 1fr 1fr; gap: 3px; padding: 3px; box-shadow: 0 16px 20px rgba(0,0,0,.25); }
.r-drawers i { background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(0,0,0,.08)); border-radius: 2px; position: relative; }
.r-drawers i::after { content: ''; position: absolute; left: 30%; right: 30%; top: 10px; height: 3px; border-radius: 2px; background: var(--tap); }
.finish { color: var(--tap); filter: drop-shadow(0 2px 2px rgba(0,0,0,.25)); }
.r-shower { position: absolute; left: 448px; top: 40px; width: 120px; height: 380px; }
.r-niche { position: absolute; left: 528px; top: 196px; width: 54px; height: 70px; background: rgba(0,0,0,.18); box-shadow: inset 6px 6px 12px rgba(0,0,0,.35); }
.r-tray { position: absolute; left: 400px; top: 590px; width: 200px; height: 210px; background: linear-gradient(#f4f2ee, #e2ded7); box-shadow: inset 0 0 0 3px #fff, 0 0 0 1px rgba(0,0,0,.08); }
.r-tray::after { content: ''; position: absolute; left: 20px; right: 20px; top: 14px; height: 6px; border-radius: 3px; background: var(--tap); }
.r-rug { position: absolute; left: 110px; top: 470px; width: 150px; height: 90px; border-radius: 8px; background: repeating-linear-gradient(90deg, #efe9df 0 6px, #e5ddd0 6px 12px); box-shadow: 0 2px 4px rgba(0,0,0,.12); }
.r-window { position: absolute; left: 560px; top: 70px; width: 170px; height: 190px; background: linear-gradient(180deg, #dbe8ee, #f6f1e7); box-shadow: inset 0 0 0 8px #f2efe9, 0 0 40px rgba(255, 250, 235, 0.6); }
.r-window::after { content: ''; position: absolute; left: 50%; top: 8px; bottom: 8px; width: 4px; background: #f2efe9; }
.r-towel { position: absolute; left: 290px; top: 150px; width: 90px; height: 6px; background: var(--tap); border-radius: 3px; }
.r-towel i { position: absolute; left: 8px; right: 8px; top: 4px; height: 120px; background: linear-gradient(90deg, #ede6da, #fbf8f2 40%, #e3dbcd); border-radius: 0 0 4px 4px; box-shadow: 0 10px 14px rgba(0,0,0,.15); }
.r-glass { width: 220px; height: 410px; transform: translate3d(400px, 40px, -500px) rotateY(-90deg);
  background: linear-gradient(100deg, rgba(255,255,255,.28) 0%, rgba(220,235,240,.08) 40%, rgba(255,255,255,.18) 70%, rgba(220,235,240,.06) 100%);
  border-left: 0; box-shadow: inset 0 0 0 2px rgba(255,255,255,.35); }
.r-glass::before { content: ''; position: absolute; left: 0; right: 0; top: -2px; height: 4px; background: var(--tap); }
.room-label { position: absolute; left: 14px; top: 14px; padding: 8px 14px; border-radius: 999px; background: rgba(255, 255, 255, 0.85); backdrop-filter: blur(8px); font-size: 13px; font-weight: 600; pointer-events: none; }
.room-reset { position: absolute; right: 14px; top: 14px; width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, 0.85); font-size: 18px; }

.room-panel { display: flex; flex-direction: column; gap: 20px; }
.seg { display: grid; grid-template-columns: repeat(3, 1fr); padding: 5px; border-radius: 999px; background: rgba(26, 25, 24, 0.07); }
.seg-btn { min-height: 44px; border: 0; border-radius: 999px; background: transparent; font-weight: 600; font-size: 14px; transition: background 0.3s var(--ease), box-shadow 0.3s; }
.seg-btn.is-on { background: #fff; box-shadow: 0 4px 14px rgba(0,0,0,.1); }
.swatches { display: grid; grid-auto-flow: column; grid-auto-columns: 92px; gap: 12px; overflow-x: auto; padding: 4px 2px 10px; scrollbar-width: none; scroll-snap-type: x proximity; }
.swatches::-webkit-scrollbar { display: none; }
@media (min-width: 980px) { .swatches { grid-auto-flow: row; grid-template-columns: repeat(4, 1fr); grid-auto-columns: auto; overflow: visible; } }
.sw { border: 0; padding: 0; background: none; text-align: center; scroll-snap-align: start; -webkit-tap-highlight-color: transparent; }
.sw span:first-child { display: block; aspect-ratio: 1; border-radius: 14px; background: center / cover; box-shadow: 0 8px 16px -8px rgba(0,0,0,.4); transition: transform 0.3s var(--ease), box-shadow 0.3s; }
.sw.on span:first-child { box-shadow: 0 0 0 3px var(--carta), 0 0 0 5px var(--ink); transform: scale(0.94); }
.sw small { display: block; margin-top: 8px; font-size: 12px; line-height: 1.25; color: var(--ink-2); font-weight: 600; }
.sw-metal span:first-child { border-radius: 50%; background: linear-gradient(135deg, var(--a), var(--b) 50%, var(--c)); }
.room-summary { display: grid; gap: 1px; background: var(--linea); border-radius: 16px; overflow: hidden; }
.room-summary div { display: flex; justify-content: space-between; gap: 12px; padding: 14px 18px; background: var(--carta); font-size: 15px; }
.room-summary span { color: var(--ink-3); }

/* ======================================================
   IDRAULICA
   ====================================================== */
.idraulica { overflow: hidden; }
.idr-grid { display: grid; gap: 30px; align-items: center; }
@media (min-width: 900px) { .idr-grid { grid-template-columns: 1.1fr 1fr; } }
.idr-visual { position: relative; display: grid; place-items: center; }
.idr-visual::before { content: ''; position: absolute; width: 80%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(255, 220, 180, 0.16), transparent 70%); }
.big-faucet { width: min(100%, 420px); position: relative; }
.w-flow { animation: wFlow .6s linear infinite; }
.w-flow-2 { animation-duration: .45s; }
.w-body { animation: wShimmer 1.2s ease-in-out infinite alternate; }
.w-ring { transform-box: fill-box; transform-origin: 50% 50%; animation: wRing 1.6s ease-out infinite; opacity: 0; }
.w-ring-2 { animation-delay: .8s; }
@keyframes wFlow { to { stroke-dashoffset: -36; } }
@keyframes wShimmer { from { opacity: .75; } to { opacity: 1; } }
@keyframes wRing { from { transform: scale(.35); opacity: .9; } to { transform: scale(1.7); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .w-flow, .w-body, .w-ring { animation: none; } .w-ring { opacity: .5; } }
.finishes { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 32px; }
.finish-btn { display: inline-flex; align-items: center; gap: 10px; min-height: 46px; padding: 0 18px 0 8px; border-radius: 999px; border: 1.5px solid rgba(255,255,255,.18); background: rgba(255,255,255,.04); color: #f1ede6; font-weight: 600; font-size: 14px; transition: all 0.25s; }
.finish-btn i { width: 30px; height: 30px; border-radius: 50%; background: linear-gradient(135deg, var(--a), var(--b) 50%, var(--c)); box-shadow: inset 0 0 0 1px rgba(255,255,255,.3); }
.finish-btn.on { border-color: #f1ede6; background: rgba(255,255,255,.1); }
.shelf { list-style: none; padding: 0; margin: clamp(50px, 8vw, 90px) 0 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: rgba(255,255,255,.1); border-radius: 22px; overflow: hidden; }
@media (min-width: 900px) { .shelf { grid-template-columns: repeat(3, 1fr); } }
.shelf-item { background: #121211; padding: 28px 22px; transition: background 0.3s; }
.shelf-item:hover { background: #1b1a19; }
.shelf-item svg { width: 54px; height: 54px; margin-bottom: 18px; }
.shelf-item h3 { font: 400 22px/1.1 var(--serif); margin: 0 0 8px; }
.shelf-item p { margin: 0; font-size: 14px; color: rgba(241, 237, 230, 0.62); }

/* ======================================================
   COME FUNZIONA
   ====================================================== */
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
@media (min-width: 800px) { .steps { grid-template-columns: repeat(4, 1fr); gap: 20px; } }
.step { padding: 28px 24px 30px; border-radius: var(--radius); background: var(--carta); box-shadow: 0 1px 0 var(--linea); position: relative; overflow: hidden; }
.step-n { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--ink); color: var(--calce); font: 500 18px/1 var(--serif); margin-bottom: 26px; }
.step:nth-child(4) .step-n { background: var(--cotto); }
.step h3 { font: 400 25px/1.1 var(--serif); margin: 0 0 10px; letter-spacing: 0; }
.step p { margin: 0; color: var(--ink-2); font-size: 15px; }

/* ======================================================
   SHOWROOM
   ====================================================== */
.showroom { background: var(--carta); padding-bottom: clamp(110px, 14vw, 160px); }
.show-grid { display: grid; gap: 22px; }
@media (min-width: 900px) { .show-grid { grid-template-columns: 1.15fr 1fr; gap: 36px; align-items: start; } }
.info { margin: 36px 0 30px; display: grid; gap: 0; }
.info div { display: grid; grid-template-columns: 110px 1fr; gap: 16px; padding: 16px 0; border-top: 1px solid var(--linea); }
.info dt { color: var(--ink-3); font-size: 14px; }
.info dd { margin: 0; font-weight: 600; }
.todo { display: inline-block; padding: 2px 10px; border-radius: 6px; background: #fff1b8; color: #6b5300; font-weight: 600; font-size: 14px; border: 1px dashed #c9a400; }
.show-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.ask { background: var(--calce); border-radius: 26px; padding: 28px 22px; display: grid; gap: 16px; box-shadow: 0 30px 60px -40px rgba(0,0,0,.35); }
.ask h3 { font: 400 28px/1.1 var(--serif); margin: 0; }
.ask > p { margin: -8px 0 6px; color: var(--ink-2); }
.ask label { display: grid; gap: 6px; font-size: 13px; font-weight: 600; color: var(--ink-2); }
.ask input, .ask select, .ask textarea { width: 100%; min-height: 50px; padding: 12px 16px; border-radius: 14px; border: 1.5px solid var(--linea); background: #fff; font: 500 16px/1.4 var(--sans); color: var(--ink); appearance: none; -webkit-appearance: none; transition: border-color 0.2s, box-shadow 0.2s; }
.ask select { background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%231a1918' stroke-width='1.6'/%3E%3C/svg%3E") no-repeat right 16px center; }
.ask input:focus, .ask select:focus, .ask textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 4px rgba(26,25,24,.08); }
.ask .bad { border-color: #c0392b; }
.ask label small { font-weight: 500; color: var(--ink-3); }
.ask .check { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; font-weight: 500; color: var(--ink-2); cursor: pointer; }
.ask .check input { flex: none; width: 22px; height: 22px; min-height: 0; margin: 1px 0 0; padding: 0; appearance: auto; -webkit-appearance: checkbox; accent-color: var(--ink); }
.ask-err { margin: 0; color: #b03a2e; font-weight: 600; font-size: 14px; }
.ask-wa { justify-self: center; font-size: 14px; font-weight: 600; color: var(--wa); }
.ask-done { padding: 26px 22px; border-radius: 18px; background: #e8f3ec; color: #17633f; outline: none; }
.ask-done strong { font: 400 26px/1.1 var(--serif); display: block; }
.ask-done p { margin: 8px 0 0; color: var(--ink-2); }
.ask [hidden] { display: none !important; }
/* trappola anti-spam: invisibile alle persone */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
@media (min-width: 600px) { .ask { padding: 36px; } }

/* ---------- footer ---------- */
.footer { background: #121211; color: rgba(241, 237, 230, 0.7); padding: 64px 0 calc(110px + env(safe-area-inset-bottom)); font-size: 15px; }
.foot-grid { display: grid; gap: 30px; }
@media (min-width: 800px) { .foot-grid { grid-template-columns: 2fr 1fr; } .footer { padding-bottom: 40px; } }
.footer p { margin: 0 0 6px; }
.footer strong { color: #f1ede6; }
.logo-foot { color: #f1ede6; margin-bottom: 16px; }
.foot-bottom { display: flex; justify-content: space-between; margin-top: 40px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.1); font-size: 13px; }
.foot-bottom a { text-decoration: none; }

/* ---------- barra in basso (telefono) ---------- */
.dock {
  position: fixed; z-index: 60; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom));
  display: grid; grid-template-columns: repeat(4, 1fr); padding: 6px; border-radius: 22px;
  background: rgba(26, 25, 24, 0.88); backdrop-filter: blur(18px) saturate(1.5); -webkit-backdrop-filter: blur(18px) saturate(1.5);
  box-shadow: 0 20px 40px rgba(0,0,0,.3); transform: translateY(160%); transition: transform 0.5s var(--ease);
}
.dock.show { transform: none; }
.dock a { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px 0 6px; border-radius: 16px; text-decoration: none; color: rgba(255,255,255,.75); font-size: 11px; font-weight: 600; -webkit-tap-highlight-color: transparent; }
.dock a.on { color: #fff; background: rgba(255,255,255,.1); }
.dock svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; stroke-linecap: round; }
.dock .dock-wa { color: #fff; background: var(--wa); }
@media (min-width: 960px) { .dock { display: none; } }

/* ---------- comparse allo scroll ---------- */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.9s var(--ease), transform 1s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

/* ======================================================
   v2 — logo, showroom più realistico, chi siamo, mappa
   ====================================================== */
:root { --it-g: #1f9d48; --it-r: #d8262c; }
.logo-img { width: 44px; height: 44px; border-radius: 50%; display: block; box-shadow: 0 0 0 1px rgba(255,255,255,.18); }
.logo-img-l { width: 72px; height: 72px; }
.logo .logo-text { font-size: 20px; }
.logo-foot { margin-bottom: 18px; }


/* ---------- chi siamo ---------- */
.storia { background: var(--carta); }
.storia-grid { display: grid; gap: 30px; }
@media (min-width: 900px) { .storia-grid { grid-template-columns: .75fr 1.6fr; gap: 80px; align-items: start; } }
.tricolore { display: flex; width: 78px; height: 6px; margin-bottom: 26px; border-radius: 3px; overflow: hidden; box-shadow: 0 0 0 1px var(--linea); }
.tricolore i { flex: 1; }
.tricolore i:nth-child(1), .flag i:nth-child(1) { background: var(--it-g); }
.tricolore i:nth-child(2), .flag i:nth-child(2) { background: #fff; }
.tricolore i:nth-child(3), .flag i:nth-child(3) { background: var(--it-r); }
.storia-num { display: flex; align-items: flex-end; gap: 16px; margin: 0; }
.storia-num span { font: 400 clamp(150px, 19vw, 230px)/.78 var(--serif); letter-spacing: -.02em; color: var(--ink); }
.storia-num small { font: 700 13px/1.35 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--ink-2); padding-bottom: 14px; }
.storia-text .lead { color: var(--ink); max-width: 36em; }
.storia-text p:not(.lead) { color: var(--ink-2); max-width: 36em; font-size: 17px; margin: 18px 0 0; }
.valori { list-style: none; padding: 0; margin: clamp(50px, 7vw, 80px) 0 0; display: grid; gap: 14px; }
@media (min-width: 820px) { .valori { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
.valori li { padding: 28px 24px 30px; border-radius: var(--radius); background: var(--calce); }
.valori h3 { font: 400 24px/1.15 var(--serif); margin: 22px 0 10px; }
.valori p { margin: 0; color: var(--ink-2); font-size: 15px; }
.valori-ico { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: var(--ink); color: var(--calce); }
.valori-ico svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.valori-ico.flag { display: flex; overflow: hidden; background: none; box-shadow: 0 0 0 1px var(--linea); }
.valori-ico.flag i { flex: 1; height: 100%; }
.storia-quote { margin: clamp(60px, 8vw, 100px) auto 0; max-width: 20em; text-align: center; font: 400 clamp(26px, 3.8vw, 44px)/1.2 var(--serif); letter-spacing: 0; color: var(--ink); }

/* ---------- bagno: altezza del rivestimento ---------- */
.r-paint { position: absolute; left: 0; top: 0; width: 100%; height: 0; background: linear-gradient(180deg, #f4f0ea, #ebe5dc); transition: height .7s var(--ease); }
.r-paint::after { content: ''; position: absolute; left: 0; right: 0; bottom: -4px; height: 4px; background: linear-gradient(#e2e2de, #a9a9a4); opacity: 0; transition: opacity .3s; }
.r-paint.on::after { opacity: 1; }
.r-paint-back { width: 400px; }
.r-paint-right { left: 220px; width: 580px; }
.wall-height { display: grid; gap: 10px; padding: 16px 18px; border-radius: 16px; background: rgba(26,25,24,.05); }
.wall-height[hidden] { display: none; }
.wall-height > span { font-weight: 700; font-size: 14px; }
.wall-height small { color: var(--ink-3); font-size: 12px; }
.pills-h { display: flex; flex-wrap: wrap; gap: 8px; }
.pills-h button { min-height: 42px; padding: 0 16px; border-radius: 999px; border: 1.5px solid var(--linea); background: #fff; font-weight: 600; font-size: 14px; transition: all .2s var(--ease); }
.pills-h button.on { background: var(--ink); border-color: var(--ink); color: var(--calce); }

/* ---------- come arrivare ---------- */
.dd-sub { display: block; font-weight: 500; color: var(--ink-3); font-size: 14px; }
.info a { color: inherit; }
.route { order: 3; grid-column: 1 / -1; display: grid; border-radius: 26px; overflow: hidden; background: var(--calce); box-shadow: 0 30px 60px -45px rgba(0,0,0,.4); }
@media (min-width: 900px) { .route { grid-template-columns: 1.25fr 1fr; } }
.route-map {
  position: relative; min-height: 320px; background-color: #e9e4da;
  background-image:
    linear-gradient(28deg, transparent 46%, #fff 46% 50%, transparent 50%),
    linear-gradient(-58deg, transparent 58%, #fbfaf7 58% 61%, transparent 61%),
    repeating-linear-gradient(0deg, transparent 0 62px, rgba(255,255,255,.55) 62px 65px),
    repeating-linear-gradient(90deg, transparent 0 84px, rgba(255,255,255,.55) 84px 87px);
}
.route-map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.route-ph { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 24px; text-align: center; background: radial-gradient(circle at 50% 45%, rgba(255,255,255,.75), rgba(255,255,255,0) 62%); }
.route-ph strong { font: 400 22px/1.2 var(--serif); }
.route-ph small { color: var(--ink-3); font-size: 12px; max-width: 22em; }
.route-pin { width: 46px; height: 46px; fill: var(--cotto); stroke: #fff; stroke-width: 1.4; filter: drop-shadow(0 6px 10px rgba(0,0,0,.25)); }
.route-text { padding: 34px 28px 36px; }
.route-text > p:not(.kicker) { color: var(--ink-2); margin: 16px 0 0; }
.route-btns { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.route-tel { font-size: 15px; }
.route-tel a { font-weight: 700; }

/* campionario con marchi reali */
.chips-brand { margin-top: -16px; }
.chip-brand { min-height: 36px; font-size: 13px; padding: 0 14px; }
.tile-brand { font: 700 11px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--cotto); margin-bottom: -6px; }
.sheet-data .full { grid-column: 1 / -1; }
.sheet-note { margin: -8px 0 22px; font-size: 13px; color: var(--ink-3); }
.sheet-note a { color: var(--ink); font-weight: 600; }
.sw small em { display: block; font-style: normal; font-weight: 500; color: var(--ink-3); font-size: 11px; margin-top: 2px; }

/* campionario da telefono: due file che scorrono in orizzontale */
@media (max-width: 699px) {
  .tile-grid {
    grid-template-columns: none; grid-template-rows: auto auto; grid-auto-flow: column; grid-auto-columns: 42vw;
    gap: 16px 12px; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
    margin: 0 calc(var(--gutter) * -1); padding: 4px var(--gutter) 12px; scroll-padding: 0 var(--gutter);
    scrollbar-width: none;
  }
  .tile-grid::-webkit-scrollbar { display: none; }
  .tile { scroll-snap-align: start; gap: 8px; }
  .tile-name { font-size: 16px; }
  .tile-meta { display: none; }
  .tile-brand { font-size: 10px; margin-bottom: -4px; }
  .tile-hint { display: flex; align-items: center; gap: 8px; margin: 4px 0 0; font-size: 13px; color: var(--ink-3); }
  .tile-hint::after { content: ''; width: 28px; height: 1.5px; background: currentColor; animation: nudge 1.6s var(--ease) infinite; }
}
@keyframes nudge { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(8px); } }
@media (min-width: 700px) { .tile-hint { display: none; } }

/* rubinetteria da telefono: rubinetto piccolo, subito sopra le finiture */
@media (max-width: 899px) {
  .idr-grid { gap: 0; }
  .idr-hero { display: contents; }
  .idr-hero .kicker { order: 1; }
  .idr-hero h2 { order: 2; }
  .idr-hero .lead { order: 3; }
  .idr-visual { order: 4; margin-top: 26px; height: 210px; }
  .idr-visual::before { width: 210px; }
  .big-faucet { width: auto; height: 100%; }
  .finishes {
    order: 5; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 14px 0 0;
    padding: 2px 2px 4px; scroll-snap-type: x proximity; justify-content: flex-start;
  }
  .finishes::-webkit-scrollbar { display: none; }
  .finish-btn { flex: none; scroll-snap-align: start; min-height: 42px; font-size: 13px; padding: 0 14px 0 6px; }
  .finish-btn i { width: 26px; height: 26px; }
  .idraulica .shelf { margin-top: 44px; }
}

/* ======================================================
   Rifiniture UI/UX (13/11/2026)
   ====================================================== */
/* titoli: vanno a capo in modo bilanciato, niente parole orfane */
.display, .display-m, .display-s, .bv-title, .storia-quote, .lead, .aisle-body h3 { text-wrap: balance; }
/* campionario: pulsante "mostra tutte" solo da computer */
@media (max-width: 699px) { #tileMore { display: none; } }
/* bagno da computer: l'elenco delle piastrelle scorre dentro un riquadro,
   così riepilogo e pulsante del preventivo restano a portata di mano */
@media (min-width: 980px) {
  .swatches { max-height: 330px; overflow-y: auto; padding: 6px 6px 14px; margin: 0 -6px; scrollbar-width: thin;
    -webkit-mask-image: linear-gradient(180deg, #000 88%, transparent); mask-image: linear-gradient(180deg, #000 88%, transparent); }
}
