/* ============================================================
   Semeraro Home — stile condiviso delle landing
   (riapertura, porte franche, thank you page, privacy)
   ============================================================ */

:root {
  --white: #FFFFFF;
  --stone: #F3F1EE;        /* pannelli caldi */
  --stone-2: #E8E4DF;
  --line: #E1DCD6;         /* filetti */
  --ink: #1F1C1B;          /* testo, antracite calda */
  --ink-2: #5E5854;        /* testo secondario: 7:1 sul bianco */
  --brand: #933235;        /* bordeaux Semeraro */
  --brand-dark: #7A272B;
  --brand-tint: #F7EEEE;
  --on-dark-2: rgba(255, 255, 255, .82);

  --font: "Albert Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --radius: 4px;
  --radius-lg: 4px;
  --shadow: 0 18px 40px -18px rgba(31, 28, 27, .38), 0 2px 8px rgba(31, 28, 27, .08);
  --ease: cubic-bezier(.16, 1, .3, 1);

  --gutter: clamp(16px, 4.5vw, 48px);
  --maxw: 1240px;
  --section: clamp(64px, 9vw, 128px);
}

/* ---------- base ---------- */

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scrollbar-color: #C9C2BB transparent;
}
html.cfg-open { overflow: hidden; }

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  font-feature-settings: "kern", "liga";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, picture, svg { display: block; max-width: 100%; }
img { height: auto; }

h1, h2, h3, h4 {
  margin: 0;
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
p { margin: 0; text-wrap: pretty; }

a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .2em; }
a:hover { color: var(--brand); }

::selection { background: rgba(147, 50, 53, .18); color: inherit; }
input, textarea { caret-color: var(--brand); }
input[type="checkbox"], input[type="radio"] { accent-color: var(--brand); }

:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.on-dark :focus-visible, .gift :focus-visible, .foot :focus-visible { outline-color: #fff; }

.wrap { width: 100%; max-width: calc(var(--maxw) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.section { padding: var(--section) 0; }
.section--stone { background: var(--stone); }
.section__head { max-width: 760px; margin-bottom: clamp(32px, 4vw, 56px); }
.section__head h2 { font-size: clamp(1.8rem, 1.1rem + 2.4vw, 3rem); }
.section__head p { margin-top: 16px; color: var(--ink-2); font-size: clamp(1.02rem, .98rem + .25vw, 1.15rem); max-width: 62ch; }

/* ---------- pulsanti ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px;
  border: 1.5px solid transparent; border-radius: var(--radius);
  font: 600 1rem/1.2 var(--font); letter-spacing: .005em;
  text-decoration: none; cursor: pointer;
  transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: translateY(1px); }
.btn svg { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.btn--primary { background: var(--brand); color: #fff; }
.btn--primary:hover { background: var(--brand-dark); color: #fff; }
.btn--primary:disabled { background: #C9B7B5; cursor: not-allowed; }
.btn--light { background: #fff; color: var(--brand); }
.btn--light:hover { background: var(--stone); color: var(--brand-dark); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: #fff; }
.btn--ghost-light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .85); }
.btn--ghost-light:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.btn--block { width: 100%; }

.linklike {
  background: none; border: 0; padding: 0; font: inherit; color: var(--brand);
  text-decoration: underline; text-underline-offset: .2em; cursor: pointer;
}

/* ---------- barra superiore e header ---------- */

.topbar {
  background: var(--ink); color: #fff;
  font-size: .8125rem; line-height: 1.35; letter-spacing: .01em;
  text-align: center; padding: 9px var(--gutter);
}
.topbar strong { font-weight: 600; }
.topbar .sep { opacity: .5; margin: 0 .5em; }
/* riapertura: tre messaggi; sul telefono l'extra sconto va su una riga sua */
@media (max-width: 639px) {
  .topbar--doppia { font-size: .75rem; letter-spacing: 0; padding-left: 12px; padding-right: 12px; }
  .topbar--doppia .topbar__sep-extra { display: none; }
  .topbar--doppia .topbar__extra { display: block; }
  .topbar--doppia .topbar__lungo { display: none; }
}

.header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(255, 255, 255, .96);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header__in { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand img { width: 128px; height: auto; }
.brand__home {
  padding-left: 12px; border-left: 1px solid var(--line);
  font-size: .75rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase;
}
.nav { display: none; }
.header .btn { min-height: 42px; padding: 0 16px; font-size: .9375rem; }
.header .btn .long { display: none; }

@media (min-width: 1024px) {
  .brand img { width: 150px; }
  .nav { display: flex; gap: 28px; font-size: .9375rem; }
  .nav a { text-decoration: none; color: var(--ink-2); }
  .nav a:hover { color: var(--ink); }
  .header .btn { min-height: 46px; padding: 0 20px; }
  .header .btn .long { display: inline; }
  .header .btn .short { display: none; }
}

/* ---------- hero con la prima domanda del configuratore ---------- */

.hero { position: relative; background: var(--stone); }
.hero__stage { position: relative; height: clamp(330px, 56svh, 500px); overflow: hidden; background: #2A2624; }
.hero__media, .hero__media img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__media img { object-fit: cover; object-position: 50% 55%; }
.hero__stage::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(22, 19, 18, .08) 0%, rgba(22, 19, 18, .2) 30%, rgba(22, 19, 18, .74) 52%, rgba(22, 19, 18, .9) 100%);
}
.hero__copy {
  position: absolute; z-index: 1; left: var(--gutter); right: var(--gutter); bottom: 60px;
  color: #fff; max-width: 640px;
  text-shadow: 0 1px 14px rgba(0, 0, 0, .3);
}
.hero__copy h1 { font-size: clamp(2rem, 1.3rem + 2.8vw, 3.6rem); font-weight: 400; letter-spacing: -0.025em; line-height: 1.06; }
.hero__copy h1 strong { font-weight: 700; }
.hero__copy p { margin-top: 12px; font-size: clamp(1rem, .95rem + .35vw, 1.25rem); line-height: 1.45; color: var(--on-dark-2); max-width: 46ch; }
.hero__links { display: none; }

.hero__card {
  position: relative; z-index: 2;
  margin: -36px var(--gutter) 0;
  background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow);
  padding: 22px 16px 18px;
}
.hero__card h2 { font-size: 1.375rem; font-weight: 600; letter-spacing: -0.015em; }
.hero__card > p { margin-top: 4px; color: var(--ink-2); font-size: .9375rem; line-height: 1.45; }
.hero__card .btn { margin-top: 16px; }
.hero__card .hero__quick { margin-top: 8px; }

/* v3: il riquadro del hero e' il modulo rapido */
.hero__card { scroll-margin-top: 84px; }
.hero__form { margin-top: 16px; gap: 12px; }
.hero__card .hero__form .btn { margin-top: 4px; }
.hero__stanze { border: 0; margin: 0; padding: 0; min-width: 0; }
.hero__stanze legend { padding: 0; font-size: .875rem; font-weight: 600; }
.hero__stanze legend span { font-weight: 400; color: var(--ink-2); }
.hero__stanze .chips { gap: 6px; margin-top: 8px; }
.hero__stanze .chip span { min-height: 38px; padding: 0 12px; font-size: .875rem; }
.hero__note { margin-top: 10px; text-align: center; font-size: .8125rem; color: var(--ink-2); }
.hero__note b { color: var(--brand); font-weight: 600; white-space: nowrap; }
.hero + * { margin-top: 0; }
.hero-spacer { height: clamp(40px, 6vw, 72px); background: var(--stone); }

/* tessere delle stanze (hero) */
.rooms { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 16px; }
.room {
  position: relative; display: block; width: 100%; aspect-ratio: 4 / 3; padding: 0; border: 0;
  border-radius: var(--radius); overflow: hidden; cursor: pointer; background: #3A3533;
  color: #fff; font: inherit; text-align: left;
  -webkit-tap-highlight-color: transparent;
}
.room img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.room::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(20, 17, 16, 0) 45%, rgba(20, 17, 16, .72) 100%);
  transition: background-color .25s var(--ease);
}
.room span {
  position: absolute; z-index: 1; left: 10px; right: 34px; bottom: 8px;
  font-size: .9375rem; font-weight: 600; line-height: 1.2; letter-spacing: -0.005em;
}
.room i {
  position: absolute; z-index: 1; top: 8px; right: 8px; width: 24px; height: 24px; border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, .9); background: rgba(20, 17, 16, .25);
  transition: background-color .2s var(--ease), border-color .2s var(--ease);
}
.room i::after {
  content: ""; position: absolute; left: 7px; top: 4px; width: 6px; height: 11px;
  border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); opacity: 0;
  transition: opacity .15s;
}
.room:hover img { transform: scale(1.05); }
.room[aria-pressed="true"] { box-shadow: inset 0 0 0 3px var(--brand); }
.room[aria-pressed="true"] i { background: var(--brand); border-color: var(--brand); }
.room[aria-pressed="true"] i::after { opacity: 1; }

@media (min-width: 640px) {
  .hero__card { max-width: 560px; margin-left: auto; margin-right: auto; padding: 26px 24px 22px; }
  .rooms { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (min-width: 1024px) {
  .hero {
    display: grid; grid-template-columns: minmax(0, 1fr) 440px; gap: 48px; align-items: end;
    min-height: clamp(640px, calc(100svh - 100px), 860px);
    /* il contenuto resta nella colonna del sito (max 1240px) a qualsiasi larghezza:
       l'allineamento sta nel padding, cosi' la colonna della card resta sempre di 440px */
    padding: 96px max(var(--gutter), calc((100% - var(--maxw)) / 2)) 56px;
    max-width: none; background: #2A2624;
  }
  .hero__stage { position: static; height: auto; display: contents; }
  .hero__media { z-index: 0; }
  .hero::after {
    content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
    background:
      linear-gradient(90deg, rgba(22, 19, 18, .74) 0%, rgba(22, 19, 18, .42) 38%, rgba(22, 19, 18, 0) 64%),
      linear-gradient(0deg, rgba(22, 19, 18, .45) 0%, rgba(22, 19, 18, 0) 45%);
  }
  .hero__stage::after { display: none; }
  .hero__copy { position: relative; left: auto; right: auto; bottom: auto; z-index: 1; align-self: end; padding-bottom: 8px; max-width: 720px; }
  .hero__links { display: flex; gap: 12px; margin-top: 28px; }
  .hero__card { margin: 0; max-width: none; padding: 26px 24px 20px; align-self: end; }
  .hero__card h2 { font-size: 1.5rem; }
  .rooms { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .room { aspect-ratio: 16 / 10; }
  .hero-spacer { display: none; }
}

/* ---------- prodotti: il catalogo per stanza ---------- */

.products { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 10px; }
.product { margin: 0; }
.product__img { aspect-ratio: 4 / 5; border-radius: var(--radius); overflow: hidden; background: var(--stone-2); }
.product__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.product:hover .product__img img { transform: scale(1.03); }
.product figcaption { margin-top: 10px; }
.product strong { display: block; font-size: 1.0625rem; font-weight: 600; letter-spacing: -0.01em; line-height: 1.25; }
.product figcaption span { display: block; margin-top: 4px; font-size: .875rem; line-height: 1.45; color: var(--ink-2); }

.proofs { list-style: none; margin: clamp(40px, 5vw, 64px) 0 0; padding: 0; display: grid; border-top: 1px solid var(--ink); }
.proofs li { padding: 18px 0; border-bottom: 1px solid var(--line); }
.proofs b { display: block; font-size: 1.125rem; font-weight: 600; letter-spacing: -0.01em; }
.proofs span { display: block; margin-top: 6px; color: var(--ink-2); max-width: 44ch; }

@media (min-width: 1024px) {
  .products { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 20px; }
  .product strong { font-size: 1.25rem; }
  .product figcaption span { font-size: .9375rem; }
  .proofs { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; border-top: 0; }
  .proofs li { border-bottom: 0; border-top: 1px solid var(--ink); padding: 22px 0 0; }
}

/* ---------- fascia omaggi: primi 100 ---------- */

.gift { background: var(--brand); color: #fff; padding: clamp(56px, 8vw, 104px) 0; }
.gift__head { max-width: 760px; }
.gift h2 { font-size: clamp(1.9rem, 1.2rem + 2.6vw, 3.2rem); }
.gift__head p { margin-top: 14px; color: var(--on-dark-2); max-width: 54ch; font-size: 1.0625rem; }
.gift__items { list-style: none; margin: 32px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.gift__item { background: #fff; color: var(--ink); border-radius: var(--radius); padding: 22px 16px 20px; display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
.gift__item svg { width: 56px; height: 56px; fill: none; stroke: var(--ink); stroke-width: 1.2; stroke-linecap: round; stroke-linejoin: round; }
.gift__item b { display: block; font-size: 1.125rem; font-weight: 600; line-height: 1.2; letter-spacing: -0.01em; }
.gift__item span { display: block; margin-top: 4px; font-size: .875rem; line-height: 1.4; color: var(--ink-2); }
.gift__steps { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 12px; counter-reset: dono; }
.gift__steps li { counter-increment: dono; display: flex; align-items: center; gap: 12px; font-weight: 600; }
.gift__steps li::before {
  content: counter(dono); display: grid; place-items: center; flex: none; width: 32px; height: 32px; border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, .85); font-size: .875rem; font-variant-numeric: tabular-nums;
}
.gift__extra { margin-top: 30px; max-width: 760px; padding: 20px 22px; border: 1px solid rgba(255, 255, 255, .4); border-radius: var(--radius); display: grid; gap: 6px; }
.gift__extra b { font-size: clamp(1.25rem, 1rem + 1vw, 1.625rem); font-weight: 600; line-height: 1.2; letter-spacing: -0.01em; }
.gift__extra p { color: var(--on-dark-2); max-width: 62ch; }
.gift__cta { display: grid; gap: 10px; margin-top: 30px; }
.gift small { display: block; margin-top: 16px; font-size: .8125rem; color: rgba(255, 255, 255, .72); max-width: 70ch; }

@media (min-width: 640px) {
  .gift__cta { display: flex; flex-wrap: wrap; gap: 12px; }
}
@media (min-width: 1024px) {
  .gift__items { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 44px; }
  .gift__item { padding: 30px 26px 28px; gap: 26px; }
  .gift__item svg { width: 76px; height: 76px; }
  .gift__steps { grid-template-columns: repeat(3, auto); justify-content: start; gap: 36px; margin-top: 36px; }
}

/* ---------- modulo veloce "Ti chiamiamo noi" ---------- */

.quick__in { display: grid; gap: 28px; align-items: start; }
.quick h2 { font-size: clamp(1.8rem, 1.1rem + 2.4vw, 3rem); }
.quick__lead { margin-top: 14px; color: var(--ink-2); font-size: 1.0625rem; max-width: 50ch; }
.quick .ticks { margin-top: 22px; }
.quick__card { background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: 22px 16px 18px; }

@media (min-width: 640px) {
  .quick__card { padding: 28px 26px 22px; }
}
@media (min-width: 1024px) {
  .quick__in { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 64px; align-items: center; }
}

/* ---------- mentre arrivano i mobili: i due binari ---------- */

.parallel { display: grid; gap: clamp(32px, 5vw, 72px); align-items: center; }
.parallel__photo { border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4 / 3; background: var(--stone-2); }
.parallel__photo img { width: 100%; height: 100%; object-fit: cover; }
.parallel h2 { font-size: clamp(1.8rem, 1.1rem + 2.4vw, 3rem); }
.parallel__lead { margin-top: 16px; color: var(--ink-2); font-size: 1.0625rem; max-width: 58ch; }

.tracks { margin-top: 32px; display: grid; gap: 14px; }
.track { display: grid; grid-template-columns: 92px 1fr; gap: 12px; align-items: start; }
.track__name { font-size: .8125rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); padding-top: 9px; }
.track ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.track li {
  position: relative; padding: 8px 12px 8px 30px; background: var(--white);
  border: 1px solid var(--line); border-radius: var(--radius); font-size: .9375rem; line-height: 1.35;
}
.track li::before {
  content: ""; position: absolute; left: 12px; top: 50%; width: 8px; height: 8px; margin-top: -4px;
  border-radius: 50%; border: 1.5px solid var(--ink-2);
}
.tracks__end {
  display: flex; align-items: center; gap: 12px; margin-left: 104px;
  padding: 14px 16px; border-radius: var(--radius); background: #fff; color: var(--ink); font-weight: 600;
  border: 1px solid var(--ink);
}
.tracks__end svg { width: 22px; height: 22px; fill: none; stroke: var(--ink); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.tracks__end span { font-weight: 400; color: var(--ink-2); font-size: .875rem; display: block; }

@media (min-width: 1024px) {
  .parallel { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); }
  .parallel__photo { aspect-ratio: 6 / 7; }
  .track { grid-template-columns: 110px 1fr; }
  .track ol { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; }
  .track li { border-radius: 0; border-right-width: 0; padding: 12px 10px 12px 26px; font-size: .875rem; min-height: 64px; display: flex; align-items: center; }
  .track li:first-child { border-radius: var(--radius) 0 0 var(--radius); }
  .track li:last-child { border-radius: 0 var(--radius) var(--radius) 0; border-right-width: 1px; }
  .track li::before { left: 10px; }
  .tracks__end { margin-left: 122px; }
}

/* ---------- servizi: mosaico di foto ---------- */

.services { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 172px; gap: 8px; }
.svc { position: relative; margin: 0; border-radius: var(--radius); overflow: hidden; background: #3A3533; color: #fff; }
.svc img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.svc::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20, 17, 16, 0) 40%, rgba(20, 17, 16, .78) 100%); }
.svc figcaption { position: absolute; z-index: 1; left: 12px; right: 12px; bottom: 11px; }
.svc strong { display: block; font-size: 1.0625rem; font-weight: 600; line-height: 1.2; letter-spacing: -0.01em; }
.svc figcaption span { display: none; font-size: .875rem; line-height: 1.4; color: rgba(255, 255, 255, .86); margin-top: 4px; }
.svc:hover img { transform: scale(1.04); }
.svc--big, .svc--text { grid-column: span 2; }
/* inquadrature dei riquadri: il pavimento, le vetrate */
.svc--pavimenti img { object-position: 50% 100%; }
.svc--big figcaption span { display: block; }
.svc--text { background: var(--ink); display: flex; flex-direction: column; justify-content: flex-end; padding: 18px 16px; }
.svc--text::after { display: none; }
.svc--text strong { font-size: 1.25rem; }
.svc--text p { margin-top: 8px; font-size: .9375rem; line-height: 1.45; color: rgba(255, 255, 255, .8); }

@media (min-width: 1024px) {
  .services { grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: 230px; gap: 10px; }
  .svc figcaption { left: 18px; right: 18px; bottom: 16px; }
  .svc figcaption span { display: block; }
  .svc strong { font-size: 1.1875rem; }
  .svc--big { grid-column: span 2; grid-row: span 2; }
  .svc--text { grid-column: auto; }
  .svc--big strong { font-size: 1.625rem; }
  .svc--wide { grid-column: span 2; }
  .svc--text { padding: 24px 22px; }
}

/* ---------- perche' Semeraro Home: righe foto/testo ---------- */

.why { display: grid; gap: clamp(48px, 7vw, 96px); }
.why__row { display: grid; gap: 22px; align-items: center; }
.why__photo { border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 16 / 10; background: var(--stone-2); }
.why__photo img { width: 100%; height: 100%; object-fit: cover; }
.why h3 { font-size: clamp(1.6rem, 1.1rem + 1.8vw, 2.5rem); max-width: 16ch; }
.why p { margin-top: 16px; color: var(--ink); font-size: 1.125rem; line-height: 1.55; max-width: 44ch; }

@media (min-width: 1024px) {
  .why__row { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 64px; }
  .why__row:nth-child(even) { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
  .why__row:nth-child(even) .why__photo { order: 2; }
}

/* ---------- come funziona ---------- */

.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; counter-reset: passo; border-top: 1px solid var(--line); }
.steps li { counter-increment: passo; display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-content: start; padding: 22px 0; border-bottom: 1px solid var(--line); }
.steps li::before {
  content: counter(passo); display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  border: 1.5px solid var(--ink); color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums;
}
.steps h3 { font-size: 1.1875rem; font-weight: 600; letter-spacing: -0.01em; }
.steps p { margin-top: 6px; color: var(--ink-2); font-size: .9875rem; }

@media (min-width: 1024px) {
  .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 0; gap: 32px; }
  .steps li { grid-template-columns: 1fr; border-bottom: 0; border-top: 1px solid var(--ink); padding: 26px 0 0; gap: 18px; }
}

/* ---------- FAQ ---------- */

.faq { max-width: 860px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 20px 0; font-size: 1.0625rem; font-weight: 600; line-height: 1.35;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 14px; height: 14px;
  background:
    linear-gradient(var(--ink), var(--ink)) center / 14px 1.5px no-repeat,
    linear-gradient(var(--ink), var(--ink)) center / 1.5px 14px no-repeat;
  transition: transform .3s var(--ease);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:hover { color: var(--brand); }
.faq .faq__a { padding: 0 0 22px; color: var(--ink-2); max-width: 68ch; }

/* ---------- dove siamo ---------- */

.visit { display: grid; gap: 16px; }
.place { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 26px 22px; display: flex; flex-direction: column; gap: 10px; }
.place h3 { font-size: 1.3125rem; font-weight: 600; letter-spacing: -0.01em; }
.place p { color: var(--ink-2); }
.place .btn { margin-top: 10px; align-self: flex-start; }
.place--main { background: var(--ink); color: #fff; border-color: var(--ink); }
.place--main p { color: var(--on-dark-2); }

@media (min-width: 1024px) {
  .visit { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
  .place { padding: 34px 32px; }
}

/* ---------- stand (landing B) ---------- */

.stand { display: grid; gap: clamp(32px, 5vw, 72px); align-items: center; }
.stand__photo { border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 3 / 2; background: var(--stone-2); }
.stand__photo img { width: 100%; height: 100%; object-fit: cover; }
.stand h2 { font-size: clamp(1.8rem, 1.1rem + 2.4vw, 3rem); }
.stand__where { margin-top: 12px; color: var(--ink-2); font-size: 1.0625rem; }
.ticks { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 12px; }
.ticks li { position: relative; padding-left: 34px; font-size: 1.0625rem; line-height: 1.45; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: 2px; width: 22px; height: 22px; border-radius: 50%; background: var(--stone-2);
}
.ticks li::after {
  content: ""; position: absolute; left: 8px; top: 6px; width: 5px; height: 10px;
  border: solid var(--ink); border-width: 0 2px 2px 0; transform: rotate(45deg);
}
.stand__cta { margin-top: 26px; }
.tip { margin-top: 26px; padding: 16px 18px; background: var(--stone); border-radius: var(--radius); font-size: .9875rem; color: var(--ink-2); }
.tip b { color: var(--ink); }

@media (min-width: 1024px) {
  .stand { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); }
  .stand__photo { aspect-ratio: 5 / 4; }
}

/* ---------- chiusura ---------- */

.closing { position: relative; color: #fff; background: #1B1817; overflow: hidden; text-align: center; }
.closing__media, .closing__media img { position: absolute; inset: 0; width: 100%; height: 100%; }
.closing__media img { object-fit: cover; }
.closing::after { content: ""; position: absolute; inset: 0; background: rgba(20, 17, 16, .6); }
.closing__in { position: relative; z-index: 1; padding-top: clamp(88px, 12vw, 168px); padding-bottom: clamp(88px, 12vw, 168px); display: flex; flex-direction: column; align-items: center; }
.closing h2 { font-size: clamp(2rem, 1.2rem + 3vw, 3.6rem); max-width: 18ch; }
.closing p { margin-top: 16px; color: var(--on-dark-2); max-width: 48ch; font-size: 1.125rem; }
.closing .btn { margin-top: 30px; }

/* ---------- footer ---------- */

.foot { background: var(--ink); color: rgba(255, 255, 255, .72); font-size: .875rem; padding: 48px 0 calc(40px + env(safe-area-inset-bottom)); }
.foot__in { display: grid; gap: 22px; }
.foot img { width: 132px; }
.foot p { max-width: 70ch; line-height: 1.6; }
.foot a { color: #fff; }
.foot__links { display: flex; flex-wrap: wrap; gap: 8px 22px; }

/* ---------- barra fissa su mobile ---------- */

.sticky {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, .97); border-top: 1px solid var(--line);
  box-shadow: 0 -10px 30px -18px rgba(31, 28, 27, .4);
  transform: translateY(110%); transition: transform .4s var(--ease);
}
.sticky.is-visible { transform: none; }
.sticky .btn { min-height: 46px; padding: 0 14px; flex: 1 1 0; }
html.cfg-open .sticky { transform: translateY(110%); }
@media (min-width: 1024px) { .sticky { display: none; } }
/* spazio in fondo al footer: la barra fissa non copre mai le ultime righe */
@media (max-width: 1023px) {
  body:has(.sticky) .foot { padding-bottom: calc(110px + env(safe-area-inset-bottom)); }
}

/* ============================================================
   CONFIGURATORE (overlay)
   ============================================================ */

.cfg {
  width: 100%; height: 100%; max-width: 100%; max-height: 100%;
  margin: 0; padding: 0; border: 0; background: #fff; color: var(--ink);
  overflow: hidden;
}
.cfg[open] { animation: cfg-in .45s var(--ease) both; }
.cfg::backdrop { background: rgba(22, 19, 18, .55); }
@keyframes cfg-in { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }

.cfg__frame { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; height: 100%; }

.cfg__bar {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px;
  padding: 10px 12px; border-bottom: 1px solid var(--line); background: #fff;
}
.cfg__back, .cfg__close {
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px; min-width: 44px; padding: 0 10px;
  background: none; border: 0; border-radius: var(--radius); color: var(--ink); font: 500 .9375rem var(--font); cursor: pointer;
}
.cfg__back:hover, .cfg__close:hover { background: var(--stone); }
.cfg__back svg, .cfg__close svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.cfg__back[hidden] { display: inline-flex; visibility: hidden; }
.cfg__back span { display: none; }
.cfg__progress { display: grid; gap: 6px; justify-items: center; }
.cfg__count { font-size: .8125rem; font-weight: 600; color: var(--ink-2); letter-spacing: .02em; font-variant-numeric: tabular-nums; }
.cfg__meter { width: min(320px, 100%); height: 4px; border-radius: 2px; background: var(--stone-2); overflow: hidden; }
.cfg__meter i { display: block; height: 100%; width: 100%; background: var(--brand); border-radius: 2px; transform: scaleX(0); transform-origin: left center; transition: transform .5s var(--ease); }

.cfg__body { overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
.cfg__preview { display: none; }
.cfg__stage { padding: 22px var(--gutter) 28px; max-width: 820px; margin: 0 auto; }
.cfg__stage.is-entering { animation: stage-in .42s var(--ease) both; }
@keyframes stage-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

.cfg__q { font-size: clamp(1.55rem, 1.2rem + 1.6vw, 2.25rem); font-weight: 500; letter-spacing: -0.02em; line-height: 1.15; outline: none; }
.cfg__lead { margin-top: 10px; color: var(--ink-2); max-width: 56ch; }

.cfg__foot {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 12px var(--gutter) calc(12px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line); background: #fff;
}
.cfg__foot[hidden] { display: none; }
.cfg__hint { font-size: .875rem; color: var(--ink-2); line-height: 1.35; }
.cfg__next { flex: none; min-width: 140px; }
.cfg__next[hidden] { display: none; }

/* opzioni */
.panes { display: grid; gap: 10px; margin-top: 22px; }
.panes--photo { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.panes--mood { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.panes--icon { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.panes--text { grid-template-columns: 1fr; }

.pane {
  position: relative; display: flex; width: 100%; padding: 0; margin: 0; cursor: pointer;
  border: 1.5px solid var(--line); border-radius: var(--radius); background: #fff; color: var(--ink);
  font: inherit; text-align: left;
  transition: border-color .2s var(--ease), background-color .2s var(--ease), box-shadow .2s var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.pane:hover { border-color: #BFB6AE; }
.pane[aria-pressed="true"] { border-color: var(--brand); background: var(--brand-tint); box-shadow: inset 0 0 0 1px var(--brand); }
.pane__label { font-size: 1rem; font-weight: 600; line-height: 1.3; }
.pane__label small { display: block; margin-top: 3px; font-size: .8125rem; font-weight: 400; color: var(--ink-2); line-height: 1.35; }
.pane__tick {
  position: absolute; top: 10px; right: 10px; width: 22px; height: 22px; border-radius: 50%;
  border: 1.5px solid #BFB6AE; background: #fff;
  transition: background-color .2s var(--ease), border-color .2s var(--ease);
}
.pane__tick::after {
  content: ""; position: absolute; left: 6.5px; top: 3.5px; width: 5px; height: 10px;
  border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); opacity: 0;
}
.pane[aria-pressed="true"] .pane__tick { background: var(--brand); border-color: var(--brand); }
.pane[aria-pressed="true"] .pane__tick::after { opacity: 1; }

.pane--photo, .pane--icon, .pane--text { align-items: stretch; }
.pane--photo { flex-direction: column; overflow: hidden; }
.pane--photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--stone-2); }
.panes--mood .pane--photo img { aspect-ratio: 4 / 5; }
.pane--photo .pane__label { padding: 10px 12px 12px; }
.pane--photo .pane__tick { border-color: rgba(255, 255, 255, .95); background: rgba(20, 17, 16, .28); }
.pane--photo[aria-pressed="true"] .pane__tick { background: var(--brand); border-color: var(--brand); }

.pane--icon { flex-direction: column; gap: 12px; padding: 16px 14px 14px; min-height: 124px; }
.cfg-ico { width: 30px; height: 30px; fill: none; stroke: var(--ink); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.pane--icon .pane__label { font-size: .9375rem; padding-right: 20px; }

.pane--text { align-items: center; min-height: 58px; padding: 14px 44px 14px 16px; }
.pane--text .pane__tick { top: 50%; margin-top: -11px; right: 14px; }

.cfg__group { border: 0; margin: 22px 0 0; padding: 0; min-width: 0; }
.cfg__group legend { padding: 0; font-size: .9375rem; font-weight: 600; color: var(--ink); }
.cfg__group .panes { margin-top: 10px; }

@media (min-width: 640px) {
  .panes--photo { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .panes--icon { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .panes--text { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cfg__back span { display: inline; }
}

@media (min-width: 1024px) {
  .cfg {
    width: min(1180px, calc(100% - 48px)); height: min(840px, calc(100% - 48px));
    margin: auto; border-radius: var(--radius-lg); box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .5);
  }
  .cfg__body { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); overflow: hidden; }
  .cfg__preview { display: block; position: relative; background: #2A2624; overflow: hidden; }
  .cfg__preview-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .6s var(--ease); }
  .cfg__preview-img.is-in { opacity: 1; }
  .cfg__preview::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20, 17, 16, 0) 45%, rgba(20, 17, 16, .82) 100%); }
  .cfg__recap {
    position: absolute; z-index: 1; left: 28px; right: 28px; bottom: 26px; margin: 0; padding: 0; list-style: none;
    display: grid; gap: 8px; color: #fff; font-size: .9375rem; line-height: 1.35;
  }
  .cfg__recap li span { display: block; font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; color: rgba(255, 255, 255, .7); }
  .cfg__stage { overflow-y: auto; max-width: none; margin: 0; padding: 40px 48px 40px; }
  .cfg--final .cfg__body { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); }
  .panes--mood { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .panes--mood .pane--photo img { aspect-ratio: 16 / 10; }
  .cfg__foot { padding: 14px 24px; }
}

/* schermata finale: progetto + modulo */
.cfg__final { display: grid; gap: 26px; }
.cfg__summary { list-style: none; margin: 18px 0 0; padding: 0; border-top: 1px solid var(--line); }
.cfg__summary li { display: grid; grid-template-columns: 92px minmax(0, 1fr) auto; gap: 0 10px; align-items: center; padding: 4px 0; border-bottom: 1px solid var(--line); }
.cfg__summary li span { font-size: .6875rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); line-height: 1.3; }
.cfg__summary li strong { font-weight: 500; font-size: .9375rem; line-height: 1.35; padding: 6px 0; }
.cfg__summary li .linklike { font-size: .8125rem; min-height: 40px; }

.cfg__form { display: grid; gap: 14px; }
.field-row { display: grid; gap: 14px; }
.field { display: grid; gap: 6px; }
.field label { font-size: .875rem; font-weight: 600; }
.field input, .field textarea {
  width: 100%; min-height: 50px; padding: 12px 14px;
  border: 1.5px solid #CFC8C1; border-radius: var(--radius); background: #fff; color: var(--ink);
  font: 400 1rem/1.4 var(--font);
  transition: border-color .15s, box-shadow .15s;
}
.field textarea { min-height: 96px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(31, 28, 27, .12); }
.field__help { font-size: .8125rem; color: var(--ink-2); }
.field__err { font-size: .8125rem; color: var(--brand); font-weight: 600; }
.field.is-invalid input { border-color: var(--brand); }
.field--check label { display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start; font-weight: 400; font-size: .875rem; line-height: 1.45; color: var(--ink-2); cursor: pointer; }
.field--check input { width: 20px; height: 20px; margin: 1px 0 0; min-height: 0; }
.field--check a { color: var(--ink); }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip span {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px;
  border: 1.5px solid #CFC8C1; border-radius: 999px; font-size: .9375rem; font-weight: 500; cursor: pointer;
  transition: background-color .15s, border-color .15s, color .15s;
}
.chip input:checked + span { background: var(--brand); border-color: var(--brand); color: #fff; }
.chip input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 2px; }

.cfg__error { padding: 14px 16px; border-radius: var(--radius); background: var(--brand-tint); color: var(--brand-dark); font-size: .9375rem; line-height: 1.45; }
.cfg__error:focus { outline: none; }
.cfg__submit { margin-top: 4px; }
.cfg__small { text-align: center; font-size: .8125rem; color: var(--ink-2); }

@media (min-width: 640px) {
  .field-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
  .cfg__final { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 40px; align-items: start; }
}

/* ============================================================
   THANK YOU PAGE
   ============================================================ */

.thanks { background: var(--stone); padding: clamp(40px, 7vw, 96px) 0; }
.thanks__in { display: grid; gap: 28px; align-items: start; }
.thanks h1 { font-size: clamp(2rem, 1.3rem + 3vw, 3.4rem); max-width: 18ch; }
.thanks__lead { margin-top: 14px; color: var(--ink-2); font-size: 1.125rem; max-width: 52ch; }
.code-card { background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: 26px 22px; }
.code-card h2 { font-size: 1.125rem; font-weight: 600; letter-spacing: -0.005em; }
.code-card .code {
  margin: 12px 0 8px; font-size: clamp(2.1rem, 1.5rem + 3vw, 3.2rem); font-weight: 600; letter-spacing: .06em;
  color: var(--brand); font-variant-numeric: tabular-nums; line-height: 1.1; word-break: break-all;
}
.code-card p { color: var(--ink-2); font-size: .9375rem; }
.code-card .btn { margin-top: 18px; }
.code-card .copied { margin-top: 8px; font-size: .8125rem; color: var(--brand); min-height: 1.2em; }
.next { list-style: none; margin: 0; padding: 0; counter-reset: passo; display: grid; gap: 0; border-top: 1px solid var(--line); }
.next li { counter-increment: passo; display: grid; grid-template-columns: 36px 1fr; gap: 12px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.next li::before {
  content: counter(passo); display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%;
  border: 1.5px solid var(--ink); color: var(--ink); font-weight: 600; font-size: .875rem;
}
.next b { display: block; }
.next span { color: var(--ink-2); font-size: .9375rem; }
.recap-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; border-top: 1px solid var(--line); }
.recap-list li { padding: 10px 0; border-bottom: 1px solid var(--line); }
.recap-list li span { display: block; font-size: .75rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); }
.block-title { font-size: 1.25rem; font-weight: 600; margin: 34px 0 12px; letter-spacing: -0.01em; }

@media (min-width: 1024px) {
  .thanks__in { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 64px; }
}

/* ============================================================
   PAGINA PRIVACY
   ============================================================ */

.legal { padding: clamp(40px, 6vw, 88px) 0; }
.legal .wrap { max-width: 860px; }
.legal h1 { font-size: clamp(2rem, 1.4rem + 2.4vw, 3rem); }
.legal h2 { font-size: 1.3rem; font-weight: 600; margin: 36px 0 10px; letter-spacing: -0.01em; }
.legal p, .legal li { color: var(--ink-2); max-width: 72ch; }
.legal p + p { margin-top: 12px; }
.legal ul { padding-left: 1.2em; margin: 10px 0 0; }
.legal li + li { margin-top: 6px; }
.legal .updated { margin-top: 10px; font-size: .875rem; }

/* ---------- movimento ridotto ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
