/* CST — Centro Stock Tessuti · direzione: pinterest (sabbia + un solo rosso) */
:root {
  --bg: #F4F2EC;
  --sand: #E6E3D8;
  --sand-2: #DCD8CB;
  --white: #FFFFFF;
  --ink: #1E2440;
  --ink-2: #2B3254;
  --olive: #64625A;
  --line: #C9C6BA;
  --red: #D3172B;
  --red-dark: #A90F20;
  --radius-btn: 16px;
  --radius: 24px;
  --radius-lg: 32px;
  --font: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
  font-stretch: 100%;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 {
  margin: 0;
  font-weight: 800;
  font-stretch: 112%;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  line-height: 1.02;
}
h2 { font-size: clamp(30px, 3.4vw, 46px); margin-bottom: 20px; }
h3 { font-size: 22px; }
p { margin: 0 0 14px; }
.lead { font-size: 19px; color: var(--ink-2); }

.container { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 28px; }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; z-index: 200; background: var(--white); padding: 10px 14px; border-radius: 12px; }

:focus-visible { outline: 3px solid #435EE5; outline-offset: 3px; }

/* ---------- Bottoni ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 20px;
  border-radius: var(--radius-btn);
  border: 2px solid transparent;
  font-family: var(--font); font-weight: 700; font-size: 16px; line-height: 1.15;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .2s, color .2s, transform .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn--lg { min-height: 56px; padding: 15px 24px; font-size: 17px; }
.btn--red { background: var(--red); color: #fff; }
.btn--red:hover { background: var(--red-dark); }
.btn--sand { background: var(--sand); color: var(--ink); }
.btn--sand:hover { background: var(--sand-2); }
.btn--ghost { background: rgba(255,255,255,.55); color: var(--ink); border-color: var(--ink); }
.btn--white { background: #fff; color: var(--red); }
.btn--white:hover { background: var(--bg); }
.btn--outline-white { background: transparent; color: #fff; border-color: #fff; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(244,242,236,.97);
  border-bottom: 1px solid var(--line);
}
.header__row { display: flex; align-items: center; gap: 22px; height: var(--header-h); }
.brand {
  display: flex; align-items: center; gap: 10px;
  flex: 0 0 auto; white-space: nowrap; text-decoration: none;
}
.brand__name {
  font-weight: 800; font-stretch: 112%; text-transform: uppercase;
  font-size: 15px; line-height: 1.05; letter-spacing: .01em;
}
.crop { position: relative; display: block; overflow: hidden; flex: 0 0 auto; }
.crop img { position: absolute; max-width: none; mix-blend-mode: multiply; filter: contrast(1.3) brightness(1.12) grayscale(.2); }
.nav { display: flex; gap: 22px; margin-left: auto; }
.nav a { text-decoration: none; font-weight: 600; font-size: 15px; padding: 10px 0; }
.nav a:hover { color: var(--red); }
.header__actions { display: flex; align-items: center; gap: 10px; }
.btn--call { padding: 10px 14px; }
.call__label { display: none; }
.head__short { display: none; }
.burger {
  display: none; width: 44px; height: 44px; border: 0; border-radius: 14px;
  background: var(--ink); cursor: pointer; padding: 0;
  flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.burger span { display: block; width: 20px; height: 2px; background: #fff; border-radius: 2px; }

/* Menu (fratello dell'header) */
.menu { position: fixed; inset: 0; z-index: 100; background: var(--bg); display: none; }
.menu.is-open { display: block; animation: menuIn .22s ease-out; }
@keyframes menuIn { from { opacity: 0; } to { opacity: 1; } }
.menu__inner {
  height: 100%; overflow-y: auto;
  display: flex; flex-direction: column; gap: 4px;
  padding: calc(var(--header-h) + 16px) 28px 32px;
}
.menu__inner a:not(.btn) {
  display: block; padding: 12px 0; min-height: 44px;
  font-weight: 800; font-stretch: 112%; text-transform: uppercase; font-size: 22px;
  text-decoration: none; border-bottom: 1px solid var(--line);
}
.menu__inner .btn { margin-top: 18px; }
.menu__inner .menu__tel { font-size: 17px; text-transform: none; font-stretch: 100%; border: 0; text-align: center; }
body.menu-open { overflow: hidden; }
body.menu-open .site-header { z-index: 110; }

/* ---------- Hero ---------- */
.hero { position: relative; isolation: isolate; overflow: hidden; }
.hero__bg {
  position: absolute; inset: -40px; z-index: 0;
  background: url("https://storage.googleapis.com/msgsndr/InS5wEWAOpN3opyJmoLp/media/6ae8bae8d40535561ee5c8dc.jpg") 62% 45% / cover no-repeat;
  filter: blur(5px);
  transform: scale(1.06);
}
.hero__veil {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(100deg, rgba(244,242,236,.93) 0%, rgba(244,242,236,.82) 44%, rgba(244,242,236,.42) 100%);
}
.hero__grid {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: minmax(0, 1fr) 440px; gap: 48px; align-items: start;
  padding-block: 56px 64px;
}
.hero__text { padding-top: 24px; }
.tag {
  display: inline-block; margin-bottom: 22px;
  padding: 8px 14px; border-radius: 12px;
  background: rgba(255,255,255,.7); font-weight: 600; font-size: 15px;
}
.hero h1 { font-size: 66px; line-height: 1; margin-bottom: 22px; max-width: 12ch; }
.hero__lead { font-size: 20px; max-width: 34ch; color: var(--ink-2); margin-bottom: 26px; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 30px; }
.proof { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.proof li {
  background: rgba(255,255,255,.78); border-radius: 14px;
  padding: 10px 14px; font-size: 15px; font-weight: 500;
}
.proof strong { color: var(--red); font-weight: 800; font-stretch: 112%; font-size: 19px; margin-right: 4px; }

.capture-panel {
  background: rgba(255,255,255,.94);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 10px;
}
.capture-embed { min-height: 750px; }

/* ---------- Mazzetta (gesto firma) ---------- */
.mazzetta { display: flex; height: 40px; }
.mazzetta span {
  flex: 1; background: var(--c);
  --s: 9px;
  -webkit-mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / var(--s) 100%;
          mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / var(--s) 100%;
}

/* ---------- Sezioni ---------- */
.section { padding-block: 96px 40px; }
.section--white { background: var(--white); }
.section--sand { background: var(--bg); }
.section--navy { background: var(--ink); color: #fff; padding-bottom: 96px; }
.section--red { background: var(--red); color: #fff; padding-bottom: 96px; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split--reverse .split__text { order: 2; }
.split--reverse .split__media { order: 1; margin: 0; }
.rounded { border-radius: var(--radius-lg); width: 100%; }

.materials { list-style: none; margin: 24px 0; padding: 0; display: grid; gap: 10px; }
.materials li {
  display: flex; flex-direction: column;
  padding: 14px 18px; border-radius: 18px; background: var(--bg);
}
.materials strong { font-weight: 800; font-stretch: 112%; text-transform: uppercase; font-size: 16px; }
.materials span { color: var(--olive); font-size: 16px; }

.pins { display: grid; grid-template-columns: 1.1fr 1fr; gap: 14px; align-items: end; }
.pin { margin: 0; }
.pin img { width: 100%; border-radius: var(--radius); object-fit: cover; }
.pin--tall img { aspect-ratio: 4 / 5; }
.pins .pin:not(.pin--tall) img { aspect-ratio: 3 / 4; object-position: 70% 50%; }
.pin figcaption { font-size: 14px; font-weight: 600; color: var(--olive); padding: 8px 4px 0; }

/* Banda CTA */
.band {
  margin-top: 64px;
  display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  padding: 22px 26px; border-radius: var(--radius);
  background: var(--sand);
}
.section--sand .band { background: var(--white); }
.band__text { margin: 0; font-weight: 800; font-stretch: 112%; text-transform: uppercase; font-size: 20px; line-height: 1.15; }

/* Famiglie */
.families { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 12px; }
.family {
  position: relative; margin: 0;
  background: var(--white); border-radius: var(--radius); overflow: hidden;
  padding: 0 22px 22px; display: flex; flex-direction: column;
  transition: transform .2s;
}
.family:hover { transform: translateY(-3px); }
.family__swatch { display: flex; height: 64px; margin: 0 -22px 20px; }
.family__swatch span {
  flex: 1; background: var(--c);
  -webkit-mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / 10px 100%;
          mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / 10px 100%;
}
.family__use { color: var(--red); font-weight: 700; margin: 6px 0 10px; }
.family p:not(.family__use) { font-size: 16px; color: var(--ink-2); }
.family__link { margin-top: auto; font-weight: 700; text-decoration: none; padding-top: 8px; min-height: 44px; display: flex; align-items: center; }
.family__link::after { content: ""; position: absolute; inset: 0; }
.family--photo { padding: 0; }
.family--photo img { width: 100%; height: 100%; object-fit: cover; }

/* Come si compra */
.steps { list-style: none; margin: 26px 0 0; padding: 0; display: grid; gap: 18px; }
.steps li { display: grid; grid-template-columns: 52px 1fr; gap: 16px; align-items: start; }
.steps__n {
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--red); color: #fff;
  display: grid; place-items: center;
  font-weight: 800; font-stretch: 112%; font-size: 22px;
}
.steps strong { display: block; font-size: 18px; margin: 4px 0 2px; }
.steps p { margin: 0; color: var(--olive); font-size: 16px; }

/* Negozi */
.shops { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: center; }
.shops__num {
  font-weight: 900; font-stretch: 125%; font-size: 96px; line-height: 1;
  color: var(--red);
  padding: 48px 32px; border-radius: var(--radius-lg);
  background: var(--ink-2); text-align: center;
}
.section--navy .lead { color: #D9DCE8; }
.ticks { list-style: none; margin: 22px 0 30px; padding: 0; display: grid; gap: 12px; }
.ticks li { padding-left: 30px; position: relative; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: .5em;
  width: 14px; height: 8px; border-left: 3px solid var(--red); border-bottom: 3px solid var(--red);
  transform: rotate(-45deg);
}

/* Mazzette (masonry) */
.head-row { display: flex; justify-content: space-between; align-items: end; gap: 32px; flex-wrap: wrap; margin-bottom: 28px; }
.head-row h2 { margin: 0; }
.head-row p { max-width: 42ch; margin: 0; color: var(--olive); }
.masonry { columns: 3; column-gap: 16px; }
.masonry > * { break-inside: avoid; margin-bottom: 16px; }
.masonry .pin img { aspect-ratio: 3 / 5; object-position: 50% 45%; }
.pin--note {
  background: var(--white); border-radius: var(--radius); padding: 28px;
}
.pin__big { font-weight: 900; font-stretch: 125%; font-size: 72px; line-height: 1; color: var(--red); margin-bottom: 12px; }

/* Chi siamo */
.about { display: grid; grid-template-columns: .7fr 1.3fr; gap: 56px; align-items: center; }
.about__num {
  font-weight: 900; font-stretch: 125%; font-size: 96px; line-height: .9; color: var(--red);
  display: flex; flex-direction: column;
}
.about__num span { font-size: 28px; color: var(--ink); text-transform: uppercase; margin-top: 8px; }
blockquote { margin: 0 0 22px; padding: 22px 26px; background: var(--bg); border-radius: var(--radius); }
blockquote p { font-size: 22px; line-height: 1.35; font-weight: 600; margin-bottom: 10px; }
blockquote footer { color: var(--olive); font-size: 15px; }

/* Dove */
.where { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
address { font-style: normal; font-size: 18px; margin-bottom: 20px; }
.hours { margin: 0 0 20px; display: grid; gap: 6px; max-width: 380px; }
.hours div { display: flex; justify-content: space-between; gap: 16px; border-bottom: 1px solid var(--line); padding: 6px 0; }
.hours dt { font-weight: 600; }
.hours dd { margin: 0; }
.maps-link { font-weight: 700; display: inline-flex; align-items: center; min-height: 44px; }
.where__ship { background: var(--ink); color: #fff; border-radius: var(--radius-lg); padding: 36px; }
.where__big { font-weight: 800; font-stretch: 112%; text-transform: uppercase; font-size: 32px; line-height: 1.05; margin-bottom: 16px; }

/* Finale */
.final { text-align: center; }
.final h2 { font-size: clamp(32px, 4.4vw, 60px); }
.final p { font-size: 20px; max-width: 40ch; margin: 0 auto 28px; }
.final__ctas { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; }

/* Grazie */
.thanks { padding-block: 96px; }
.thanks h1 { font-size: 64px; margin-bottom: 20px; }
.thanks__info { margin-top: 32px; color: var(--olive); font-size: 15px; }

/* Footer */
.site-footer { background: var(--sand); padding: 56px 0 24px; font-size: 16px; }
.footer__grid { display: grid; grid-template-columns: auto 1fr 1fr auto; gap: 40px; align-items: start; }
.footer__logo { border-radius: 20px; }
.footer__title { font-weight: 800; font-stretch: 112%; text-transform: uppercase; margin-bottom: 8px; }
.site-footer a:not(.btn) { display: inline-block; padding: 4px 0; }
.footer__bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 40px; padding-top: 18px; border-top: 1px solid var(--line); color: var(--olive); font-size: 14px; }
.footer__bottom p { margin: 0; }

/* Reveal */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .family { transition: none; }
}

/* ---------- 721–1100: logo + chiama + CTA + burger ---------- */
@media (max-width: 1100px) {
  .nav { display: none; }
  .header__actions { margin-left: auto; }
  .burger { display: flex; }
  .call__num { display: none; }
  .call__label { display: inline; }
  .hero__grid { grid-template-columns: minmax(0, 1fr) 380px; gap: 32px; }
  .hero h1 { font-size: 54px; }
  .families { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .split, .shops, .about, .where { grid-template-columns: 1fr; gap: 36px; }
  .split--reverse .split__text, .split--reverse .split__media { order: initial; }
  .hero__grid { grid-template-columns: 1fr; }
  .hero__capture { max-width: 560px; }
  .masonry { columns: 2; }
}

/* ---------- ≤720: header mobile imposto ---------- */
@media (max-width: 720px) {
  :root { --header-h: 64px; }
  body { font-size: 16px; }
  .container { padding: 0 16px; }
  .header__row { gap: 8px; }
  .brand__name { display: none; }
  .header__actions { gap: 6px; }
  .btn--call { padding: 10px 12px; min-height: 44px; font-size: 15px; }
  .btn--head { padding: 10px 12px; min-height: 44px; font-size: 15px; }
  .head__long { display: none; }
  .head__short { display: inline; }

  .hero__bg {
    inset: -40px -40px auto -40px;
    height: 600px;
    background-position: 72% 55%;
    background-size: cover;
    filter: blur(1.5px);
    transform: scale(1.04);
  }
  .hero__veil {
    background: linear-gradient(180deg,
      rgba(30,36,64,.40) 0px,
      rgba(30,36,64,.62) 240px,
      rgba(30,36,64,.86) 420px,
      rgba(30,36,64,1) 580px);
  }
  .hero { background: var(--ink); color: #fff; }
  .hero__grid { padding-block: 22px 40px; gap: 28px; }
  .hero__text { padding-top: 0; }
  .tag { background: rgba(255,255,255,.16); color: #fff; font-size: 14px; margin-bottom: 14px; padding: 6px 12px; }
  .hero h1 { font-size: 36px; font-stretch: 104%; margin-bottom: 14px; }
  .hero__lead { color: #EEF0F6; font-size: 17px; margin-bottom: 18px; }
  .hero__ctas { margin-bottom: 20px; }
  .hero__ctas .btn--red { width: 100%; }
  .hero__tel { display: none; }
  .proof li { background: rgba(255,255,255,.12); color: #fff; font-size: 14px; }
  .proof strong { color: #fff; }

  h2 { font-size: 30px; }
  .section { padding-block: 64px 32px; }
  .section--navy, .section--red { padding-bottom: 64px; }
  .band { margin-top: 44px; padding: 20px; }
  .band .btn { width: 100%; white-space: normal; text-align: center; }
  .band__text { font-size: 18px; }
  .families { grid-template-columns: 1fr; }
  .family--photo img { aspect-ratio: 4 / 3; }
  .pins { grid-template-columns: 1fr; }
  .masonry { columns: 1; }
  .masonry .pin img { aspect-ratio: 4 / 5; }
  .shops__num, .about__num, .pin__big { font-size: 48px; }
  .shops__num { padding: 28px; }
  .about__num { flex-direction: row; align-items: baseline; gap: 12px; }
  .where__ship { padding: 26px; }
  .where__big { font-size: 26px; }
  .final h2 { font-size: 36px; }
  .final__ctas .btn { width: 100%; white-space: normal; }
  .btn--lg { white-space: normal; text-align: center; }
  .footer__grid { grid-template-columns: 1fr; gap: 24px; }
}

@media (max-width: 360px) {
  .site-header .container { padding: 0 12px; }
  .header__row, .header__actions { gap: 6px; }
  .btn--call { padding: 10px; gap: 6px; }
  .btn--head { padding: 10px; }
  .hero h1 { font-size: 32px; font-stretch: 100%; }
}
