:root {
  --brand: #bb9796;        /* rosa del catalogo Salotto Roma (campionato dagli screenshot) */
  --ground: #f5eeed;
  --surface: #ffffff;
  --ink: #3a2424;
  --ink-soft: #6b4d4c;
  --line: #dac6c5;
  --accent: #8a6160;
  --accent-deep: #6f4a49;
  --tint: #e4d5d5;
  --tint-ink: #4a2b2a;
  --error: #9b2c1f;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(90, 26, 44, .07), 0 12px 32px -12px rgba(90, 26, 44, .22);
  --ease: cubic-bezier(.16, 1, .3, 1);
  --font-display: "Marcellus", "Iowan Old Style", "Palatino Linotype", serif;
  --font-body: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --gutter: clamp(16px, 5vw, 56px);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased;
  scrollbar-color: var(--accent) var(--ground);
}
::selection { background: var(--tint); color: var(--tint-ink); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
a { color: inherit; text-underline-offset: .25em; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 400; line-height: 1.12; margin: 0; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
ul { margin: 0; padding: 0; list-style: none; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.demo-bar {
  background: var(--ink);
  color: #f5eeed;
  text-align: center;
  font-size: .875rem;
  padding: 8px var(--gutter);
}

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; gap: 24px;
  padding: 14px var(--gutter);
  background: color-mix(in srgb, var(--ground) 92%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.brand { font-family: var(--font-display); font-size: 1.75rem; line-height: 1.05; text-decoration: none; letter-spacing: .02em; margin-right: auto; display: grid; }
.brand small { font: 500 .6875rem/1.4 var(--font-body); letter-spacing: .22em; text-transform: uppercase; color: var(--ink-soft); }
.site-header nav ul { display: flex; gap: 28px; }
.site-header nav a { text-decoration: none; color: var(--ink-soft); font-weight: 500; }
.site-header nav a:hover { color: var(--ink); text-decoration: underline; }
@media (max-width: 640px) { .site-header nav { display: none; } }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 24px;
  border: 1.5px solid transparent; border-radius: 999px;
  font: 600 1rem var(--font-body);
  text-decoration: none; cursor: pointer;
  transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease);
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-deep); }
.btn-primary:active { transform: translateY(1px); }
.btn-ghost { background: transparent; color: var(--accent); border-color: var(--accent); }
.btn-ghost:hover { background: var(--accent); color: #fff; }
.btn-small { min-height: 40px; padding: 0 20px; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

/* Hero */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 88px);
  align-items: start;
  padding: clamp(40px, 7vw, 96px) var(--gutter) clamp(48px, 7vw, 96px);
  max-width: 1280px; margin: 0 auto;
}
.hero h1 { font-size: clamp(2.5rem, 5.2vw, 4.5rem); }
.lead { margin-top: 24px; max-width: 46ch; font-size: 1.1875rem; color: var(--ink-soft); }
.quick-list { margin-top: 36px; display: grid; gap: 0; max-width: 420px; }
.quick-list li { border-top: 1px solid var(--line); }
.quick-list li:last-child { border-bottom: 1px solid var(--line); }
.quick-list a { display: block; padding: 14px 0; text-decoration: none; font-weight: 500; transition: padding .3s var(--ease), color .2s; }
.quick-list a:hover { padding-left: 10px; color: var(--accent); }

/* Booking */
.booking {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: clamp(20px, 3vw, 36px);
  display: grid; gap: 20px;
  animation: rise .8s var(--ease) both;
}
.booking h2 { font-size: 1.75rem; }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.field { display: grid; gap: 8px; border: 0; padding: 0; margin: 0; min-width: 0; }
.field > label, legend { font-weight: 600; font-size: .9375rem; padding: 0; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
@media (max-width: 520px) { .row { grid-template-columns: 1fr; } }
input, select {
  width: 100%; min-height: 48px; padding: 0 14px;
  border: 1.5px solid var(--line); border-radius: 10px;
  background: #fff; color: var(--ink); font: inherit;
}
input:hover, select:hover { border-color: var(--brand); }
input:focus-visible, select:focus-visible { outline: 3px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
[aria-invalid="true"] { border-color: var(--error); }
.error { color: var(--error); font-size: .9375rem; }

.note { font-size: .9375rem; color: var(--ink-soft); }
.confirm {
  background: var(--tint); color: var(--tint-ink);
  padding: 14px 16px; border-radius: 10px; font-weight: 500;
}

/* Sections */
section:not(.hero) { max-width: 1280px; margin: 0 auto; padding: clamp(48px, 7vw, 96px) var(--gutter); }
section h2 { font-size: clamp(1.875rem, 3.4vw, 2.75rem); }

.treatments { border-top: 1px solid var(--line); }
.t-groups { margin-top: 32px; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 88px); }
@media (max-width: 760px) { .t-groups { grid-template-columns: 1fr; } }
.t-groups h3 { font-size: 1.5rem; margin-bottom: 12px; }
.t-list li {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 10px 0; border-top: 1px solid var(--line); font-weight: 500;
}
.t-list li:last-child { border-bottom: 1px solid var(--line); }
.t-list h3 { font-size: 1.5rem; }
.t-list p { margin-top: 6px; color: var(--ink-soft); max-width: 58ch; }
.dur { color: var(--ink-soft); font-variant-numeric: tabular-nums; white-space: nowrap; }
.treatments .note { margin-top: 16px; }
@media (max-width: 640px) {
  .t-list li { grid-template-columns: 1fr auto; }
  .t-list li > div { grid-column: 1 / -1; }
}

section.about {
  background: var(--brand); color: var(--ink); max-width: none;
  padding-inline: max(var(--gutter), calc((100% - 1280px) / 2 + var(--gutter)));
}
.about > * { max-width: 62ch; }
.about p { margin-top: 20px; color: var(--ink); }
.about h2 { color: var(--ink); }

.hours-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin: 28px 0 36px; }
@media (max-width: 640px) { .hours-grid { grid-template-columns: 1fr; gap: 24px; } }
table { border-collapse: collapse; width: 100%; max-width: 440px; }
th, td { text-align: left; padding: 12px 0; border-bottom: 1px solid var(--line); font-weight: 400; }
th { color: var(--ink-soft); padding-right: 16px; }
td { font-variant-numeric: tabular-nums; }
address { font-style: normal; line-height: 1.9; }
address a { color: var(--accent); font-weight: 500; }

.site-footer {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px 24px;
  padding: 32px var(--gutter); border-top: 1px solid var(--line); color: var(--ink-soft); font-size: .9375rem;
}

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .booking { animation: none; }
  * { transition-duration: .01ms !important; }
}

/* Gallery */
.shots { margin-top: 32px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.shot { margin: 0; position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3; background: var(--tint); }
.shot.s1 { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; min-height: 240px; }
.shot img { width: 100%; height: 100%; object-fit: cover; display: block; }
.shot.missing img { display: none; }
.shot.missing::after {
  content: "Foto in arrivo"; position: absolute; inset: 0;
  display: grid; place-items: center;
  color: var(--tint-ink); font-weight: 500; font-size: .9375rem;
}
@media (max-width: 640px) {
  .shots { grid-template-columns: 1fr 1fr; }
  .shot.s1 { grid-column: span 2; grid-row: auto; aspect-ratio: 4 / 3; }
}

/* FAQ */
.faq-list { margin-top: 28px; width: 100%; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 18px 0; font-weight: 600; overflow-wrap: anywhere; }
@media (max-width: 640px) { .faq summary { padding: 16px 0; } }
.faq summary:hover { color: var(--accent); }
.faq details p { padding: 0 0 18px; color: var(--ink-soft); max-width: none; }

/* Tecnologie (contenuto) */
.tech { border-top: 1px solid var(--line); }
.tech-intro { margin-top: 16px; max-width: 62ch; color: var(--ink-soft); }
.tech-feature {
  margin-top: 32px; padding: clamp(20px, 3vw, 36px);
  background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow);
  display: grid; grid-template-columns: 1fr 1.4fr; gap: clamp(24px, 4vw, 56px);
}
@media (max-width: 760px) { .tech-feature { grid-template-columns: 1fr; } }
.tech-feature h3 { font-size: clamp(1.5rem, 2.6vw, 2rem); }
.tech-lead { margin-top: 10px; color: var(--ink-soft); }
.tech-meta { margin-top: 16px; font-weight: 600; color: var(--accent-deep); }
.tech-actions li { padding: 12px 0; border-top: 1px solid var(--line); display: grid; gap: 2px; }
.tech-actions li:first-child { border-top: 0; padding-top: 0; }
.tech-actions strong { font-family: var(--font-display); font-weight: 400; font-size: 1.25rem; }
.tech-actions span { color: var(--ink-soft); }
.tech-others-title { margin-top: 40px; font-size: 1.5rem; }
.tech-others { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 8px; }
.tech-chip {
  min-height: 44px; padding: 8px 16px; border: 1.5px solid var(--line); border-radius: 999px;
  background: var(--surface); color: var(--ink); font: 500 1rem/1.2 var(--font-body); cursor: pointer;
  transition: background .2s var(--ease), border-color .2s var(--ease);
}
.tech-chip:hover { border-color: var(--brand); }
.tech-chip[aria-expanded="true"] { background: var(--tint); border-color: var(--tint-ink); color: var(--tint-ink); }
.tech-detail {
  margin-top: 16px; max-width: 62ch; padding: 20px 24px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
}
.tech-detail[hidden] { display: none; }
.tech-detail h4 { margin: 0 0 8px; font: 400 1.375rem/1.2 var(--font-display); }
.tech-detail p + p { margin-top: 10px; }
.tech-cta { color: var(--ink-soft); font-size: .9375rem; }
.tech-cta a { color: var(--accent-deep); font-weight: 600; }
.tech .note { margin-top: 20px; }

/* In evidenza, listino, tagline */
.t-rich li { align-items: flex-start; padding: 16px 0; }
.t-rich li > div { display: grid; gap: 6px; max-width: 58ch; }
.t-rich strong { font-family: var(--font-display); font-weight: 400; font-size: 1.25rem; }
.t-rich .dur { white-space: normal; font-size: .9375rem; }
.t-rich p { margin: 0; }
.benefits { margin-top: 8px; display: grid; gap: 8px; color: var(--ink-soft); font-weight: 400; }
.benefits li { display: block; padding: 0; border: 0; font-weight: 400; }
.benefits b { color: var(--ink); font-weight: 600; }
.listino { border-top: 1px solid var(--line); }
.price-table { margin: 24px 0; width: 100%; max-width: 640px; border-collapse: collapse; }
.price-table th, .price-table td { padding: 10px 0; border-top: 1px solid var(--line); text-align: left; font-weight: 500; }
.price-table td { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; padding-left: 16px; }
.price-table tr:last-child th, .price-table tr:last-child td { border-bottom: 1px solid var(--line); }
.about .tagline { font-family: var(--font-display); font-size: 1.25rem; color: var(--ink); }

/* Mappa (Google Maps, da indirizzo) */
.map { margin: 0; }
.map iframe { display: block; width: 100%; height: clamp(260px, 38vw, 380px); border: 1px solid var(--line); border-radius: var(--radius); background: var(--tint); }
.map-links { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 12px; font-weight: 600; }
.map-links a { color: var(--accent-deep); }

.ico { display: inline-block; width: 22px; height: 22px; background: currentColor; -webkit-mask: var(--i) center / contain no-repeat; mask: var(--i) center / contain no-repeat; flex: none; }
.ico-facebook { --i: url(img/icon-facebook.png); }
.ico-instagram { --i: url(img/icon-instagram.png); }
.ico-whatsapp { --i: url(img/icon-whatsapp.png); }
.social-icons { display: flex; gap: 12px; margin-top: 20px; }
.social-icons a { display: grid; place-items: center; width: 48px; height: 48px; border: 1.5px solid var(--line); border-radius: 50%; color: var(--accent-deep); transition: background .25s var(--ease), border-color .25s var(--ease); }
.social-icons a:hover { background: var(--tint); border-color: var(--brand); }
.social-icons .ico { width: 24px; height: 24px; }

.site-footer .social-icons { margin-top: 0; margin-left: auto; }

.contact-list { display: grid; gap: 10px; margin-top: 12px; }
.contact-list li { display: flex; align-items: center; gap: 12px; }
.contact-list .ci { flex: none; color: var(--accent-deep); }
.contact-list a { padding: 4px 0; }

.opt { font-weight: 400; color: var(--ink-soft); }
.send { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 420px) { .send { grid-template-columns: 1fr; } }

.field { grid-template-rows: auto auto; align-content: start; }
.field > .error { margin: 0; line-height: 1.35; }

section.hours { padding-bottom: clamp(16px, 2vw, 24px); }
section.faq { padding-top: clamp(32px, 4vw, 56px); }
