:root {
  --bg: #e6d3ba;
  --paper: #faf4ea;
  --ink: #1a1612;
  --soft: #4a433c;
  --brass: #8a6a3d;
  --wa: #215c3b;
  --line: color-mix(in srgb, var(--ink) 16%, transparent);
  --serif: "Palatino Linotype", Palatino, "Iowan Old Style", Georgia, serif;
  --sans: "Gill Sans", "Trebuchet MS", system-ui, sans-serif;
  --phi: 1.618;
  --max: 38rem;
}
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 9.2rem;
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
body {
  margin: 0;
  background-color: var(--bg);
  background-image: url("/img/sarto-segni.svg"), url("/img/tessuto.svg");
  background-repeat: no-repeat, repeat;
  background-size: min(90rem, 160vw) auto, 140px 140px;
  background-position: center 0, 0 0;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.125rem;
  line-height: 1.618;
  padding-bottom: 2rem;
  position: relative;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brass); text-underline-offset: 0.2em; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}
.skip {
  position: absolute; left: -999px;
  background: var(--ink); color: #fff; padding: 0.7rem 1rem; font-family: var(--sans);
}
.skip:focus { left: 0.6rem; top: 0.6rem; z-index: 80; }
.ph {
  border-bottom: 1px dotted var(--brass);
  padding: 0 0.15em;
}
.wrap {
  width: min(var(--max), calc(100% - 2rem));
  margin-inline: auto;
}
main .wrap {
  background: color-mix(in srgb, var(--paper) 92%, white);
  padding: 1.15rem 1.2rem 1.35rem;
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--ink) 8%, transparent);
}

.site-header {
  position: sticky; top: 0; z-index: 40;
  background: color-mix(in srgb, var(--paper) 96%, white);
  border-bottom: 0;
}
.site-header::after {
  content: "";
  display: block;
  height: 7px;
  background:
    repeating-linear-gradient(
      90deg,
      #c4a35a 0 9px,
      #1a1612 9px 11px,
      #efe3c4 11px 20px,
      #1a1612 20px 22px
    );
  opacity: 0.72;
}
.site-header .wrap {
  display: block;
  width: calc(100% - 1rem);
  max-width: 40rem;
  margin-inline: auto;
  padding: 0.28rem 0 0.12rem;
  text-align: center;
}
.brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  width: 100%;
  margin: 0 auto;
  text-decoration: none;
  color: var(--ink);
}
.brand img {
  display: block;
  width: auto;
  flex: 0 0 auto;
}
.brand img.brand-logo {
  height: 4.35rem;
  width: auto;
  max-width: 42%;
  aspect-ratio: 480 / 297;
}
.brand img.brand-ago {
  height: 2.2rem;
  width: auto;
  max-width: 18%;
  aspect-ratio: 264 / 240;
}
.brand img.brand-forbici {
  height: 2.2rem;
  width: auto;
  max-width: 18%;
  aspect-ratio: 264 / 240;
}
.brand small {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}
.nav {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0 0.45rem;
  width: 100%;
  margin: 0;
  line-height: 1.1;
  font-family: var(--sans);
  font-size: 0.62rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 600;
}
.nav a {
  flex: 0 0 auto;
  width: auto;
  max-width: none;
  white-space: nowrap;
  color: var(--ink);
  text-decoration: none;
  min-height: 24px;
  line-height: 1.1;
  display: inline-flex;
  align-items: center;
  padding: 0 0.1rem;
}
.nav a.chiama, .nav a.wa {
  padding: 0 0.45rem;
  color: #fff;
  letter-spacing: 0.06em;
}
.nav a.chiama { background: var(--ink); }
.nav a.wa { background: var(--wa); }
.nav a.chiama { background: var(--ink); }
.nav a.wa { background: var(--wa); }
.menu-btn { display: none !important; }
.lang {
  display: flex;
  justify-content: center;
  gap: 0.45rem;
  margin: 0;
  line-height: 1.1;
  font-family: var(--sans);
  font-size: 0.58rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 650;
}
.lang a {
  color: var(--soft);
  text-decoration: none;
  min-height: 22px;
  line-height: 1.1;
  display: inline-flex;
  align-items: center;
}
.lang a.is-on { color: var(--ink); }

.hero { padding: 3.236rem 0 2rem; }
h1, .hero h1 {
  font-weight: 500;
  font-size: clamp(2rem, 7.2vw, 2.94rem);
  line-height: 1.12;
  letter-spacing: -0.025em;
  margin: 0 0 1rem;
  max-width: 16ch;
  text-wrap: balance;
}
.lead {
  font-size: 1.2rem;
  color: var(--soft);
  margin: 0 0 1.618rem;
  max-width: 32rem;
}
.kicker {
  font-family: var(--sans);
  font-size: 0.68rem;
  font-weight: 650;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--brass);
  margin: 0 0 0.7rem;
}
.cta-row { display: flex; flex-direction: column; gap: 0.65rem; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0.55rem 1.4rem;
  font-family: var(--sans); font-size: 0.78rem; font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase; text-decoration: none;
  border: 1px solid var(--ink); color: var(--ink); background: transparent;
  width: 100%;
}
.btn-call, .btn-navy { background: var(--ink); color: #fff; }
.btn-wa { background: var(--wa); color: #fff; border-color: var(--wa); }

.problems { list-style: none; padding: 0; margin: 0; }
.problems li {
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 1.15rem;
}

.grid-2 { display: grid; gap: 1rem; }
.card, .step, .offer {
  background: var(--paper);
  border-top: 1px solid var(--ink);
  padding: 1.2rem 0 0.4rem;
}
.card h3, .step h3, .offer h3 {
  margin: 0 0 0.4rem;
  font-size: 1.25rem;
  font-weight: 600;
}
.offer p, .step p { margin: 0; color: var(--soft); }
section { padding: 2.618rem 0; }
main > section:not(.hero) {
  content-visibility: auto;
  contain-intrinsic-size: auto 22rem;
}
section h2 {
  font-size: clamp(1.4rem, 3.5vw, 1.82rem);
  font-weight: 500;
  margin: 0 0 1.1rem;
}
.steps { display: grid; gap: 1rem; }
.step { display: grid; grid-template-columns: 2.4rem 1fr; gap: 0.6rem; border-top: 1px solid var(--ink); padding-top: 0.8rem; }
.num {
  font-family: var(--sans);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  color: var(--brass);
  font-weight: 700;
  padding-top: 0.15rem;
}
.note { color: var(--soft); font-size: 1rem; }
.mass { list-style: none; padding: 0; margin: 0; }
.mass li {
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--line);
  color: var(--soft);
}
.mass li s { color: #8a837a; }

.tessera {
  list-style: none;
  padding: 0;
  margin: 1.2rem 0 1.6rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}
.tessera li {
  width: 3.2rem;
  height: 3.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--ink);
  font-family: var(--sans);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.tessera li.gratis {
  width: auto;
  padding: 0 0.7rem;
  background: var(--ink);
  color: #f6f1e8;
  border-color: var(--ink);
}

.work {
  display: block;
  text-decoration: none;
  color: var(--ink);
  background: var(--paper);
  padding: 1.6rem 1.4rem 1.3rem;
  border: 1px solid var(--line);
}
.work strong {
  display: block;
  font-size: 1.45rem;
  font-weight: 600;
  margin-bottom: 0.45rem;
}
.work span { display: block; color: var(--soft); font-size: 1.05rem; }
.work em {
  display: inline-block;
  margin-top: 1rem;
  font-family: var(--sans);
  font-style: normal;
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brass);
  font-weight: 700;
}

form { display: grid; gap: 0.9rem; }
label { font-size: 1rem; display: grid; gap: 0.35rem; }
input, select, textarea {
  width: 100%; min-height: 48px;
  border: 0; border-bottom: 1px solid var(--ink);
  border-radius: 0; padding: 0.5rem 0;
  font: inherit; background: transparent; color: var(--ink);
}
textarea { min-height: 7.5rem; resize: vertical; }
.honey { position: absolute; left: -9999px; }
.check { display: flex; gap: 0.6rem; align-items: flex-start; font-weight: 400; }
.check input { width: 1.2rem; height: 1.2rem; min-height: 0; margin-top: 0.25rem; }
.faq details { border-bottom: 1px solid var(--line); padding: 0.7rem 0; }
.faq summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; font-weight: 600; }

.site-footer {
  margin-top: 2.5rem;
  padding: 1.4rem 0 1.2rem;
  border-top: 0;
  background: color-mix(in srgb, var(--paper) 92%, white);
  font-family: var(--sans);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.site-footer a { color: var(--ink); text-decoration: none; font-weight: 650; }

.hero-fig { margin: 1.6rem 0 0; }
.sarto-grid {
  display: grid;
  gap: 1rem;
}
.sarto-stage {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1.618 / 1;
  background: #2a241c;
  user-select: none;
}
.sarto-stage picture,
.sarto-stage img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.sarto-stage img {
  object-fit: cover;
  display: block;
  pointer-events: none;
}
.sarto-spot {
  position: absolute;
  z-index: 2;
  width: 9px;
  height: 9px;
  margin: -4.5px 0 0 -4.5px;
  padding: 0;
  border: 1.5px solid #f7efe0;
  border-radius: 999px;
  background: color-mix(in srgb, #8a6a3d 85%, transparent);
  cursor: pointer;
}
.sarto-spot::after {
  content: "";
  position: absolute;
  inset: -16px;
}
.sarto-spot[data-part="collo"] { left: 70%; top: 20%; }
.sarto-spot[data-part="spalla"] { left: 76%; top: 30%; }
.sarto-spot[data-part="cravatta"] { left: 71%; top: 39%; }
.sarto-spot[data-part="petto"] { left: 66%; top: 48%; }
.sarto-spot[data-part="manica"] { left: 81%; top: 54%; }
.sarto-spot[data-part="tasca"] { left: 75%; top: 61%; }
.sarto-spot[data-part="vita"] { left: 72%; top: 76%; }
.sarto-spot.is-on,
.sarto-spot:hover,
.sarto-spot:focus-visible {
  background: #f7efe0;
  border-color: #1a1612;
}
.sarto-hint {
  position: absolute;
  left: 0.75rem;
  bottom: 0.65rem;
  z-index: 2;
  margin: 0;
  font-family: var(--sans);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: color-mix(in srgb, #f7efe0 82%, transparent);
  pointer-events: none;
}
.sarto-sheet {
  background: var(--paper);
  border-top: 1px solid var(--ink);
  padding: 1rem 0 0.2rem;
  min-height: 8.5rem;
}
.sarto-sheet h3 {
  margin: 0.15rem 0 0.5rem;
  font-size: 1.45rem;
  font-weight: 500;
}
.sarto-sheet p { margin: 0; color: var(--soft); }
.misure {
  margin-top: 0.4rem;
}
.count {
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--brass);
  text-align: right;
}
.page-fig { margin: 1.1rem 0 0; }
.page-fig img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #2a241c;
}
.prezzo {
  font-family: var(--sans);
  font-size: 0.92rem;
  letter-spacing: 0.04em;
  margin: 0 0 1.2rem;
  color: var(--ink);
}
.mestieri {
  list-style: none;
  padding: 0;
  margin: 0 0 1.2rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.7rem;
}
.mestieri figure { margin: 0; }
.mestieri img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  background: #2a241c;
}
.mestieri figcaption {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.4rem 0 0;
  color: var(--ink);
}
@media (min-width: 820px) {
  .mestieri { gap: 0.9rem; }
}
.nav a[data-tel], .nav a[data-wa] {
  min-height: 44px;
}
.site-footer a[data-tel], .site-footer a[data-wa] { text-transform: none; letter-spacing: 0.04em; }
.grazie-at {
  margin: 1.1rem 0 0;
  text-align: center;
  text-transform: none;
  letter-spacing: 0.04em;
  font-family: var(--serif);
  font-size: 0.68rem;
  font-style: italic;
  color: var(--ink);
  opacity: 1;
  line-height: 1.25;
}
.grazie-at img {
  height: 1.7rem;
  width: auto;
  margin: 0 auto 0.25rem;
  opacity: 1;
}
.grazie-at span,
.grazie-at small {
  display: block;
}
.grazie-at small {
  font-size: 0.58rem;
  opacity: 0.72;
  letter-spacing: 0.08em;
  font-style: italic;
}

@media (min-width: 820px) {
  html { scroll-padding-top: 8.6rem; }
  .brand img.brand-logo { height: 4.85rem; }
  .brand img.brand-ago,
  .brand img.brand-forbici { height: 2.45rem; }
  .nav { font-size: 0.7rem; gap: 0 0.65rem; line-height: 1.05; }
  .nav a { min-height: 26px; line-height: 1.05; }
  .lang a { min-height: 22px; }
  .cta-row { flex-direction: row; }
  .btn { width: auto; min-width: 13rem; }
  .grid-2 { grid-template-columns: 1fr 1fr; gap: 2rem; }
}
