/* ══════════════════════════════════════════════════════════════════
   Solidea Handmade — site styles (loaded after style.css).
   Fonts, smooth scroll (Lenis), the design system of the site and the
   restyle of the template's cookie banner (classes .ck-*, built by consent.js).
   ══════════════════════════════════════════════════════════════════ */

/* ── Fonts (self-hosted, latin subset) ── */
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('../fonts/cormorant-garamond-latin-300-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/cormorant-garamond-latin-400-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/cormorant-garamond-latin-600-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: italic;
  font-weight: 300;
  font-display: swap;
  src: url('../fonts/cormorant-garamond-latin-300-italic.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'EB Garamond';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/eb-garamond-latin-400-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'EB Garamond';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/eb-garamond-latin-400-italic.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Jost';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('../fonts/jost-latin-300-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Jost';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/jost-latin-400-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Jost';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/jost-latin-500-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ── Lenis (smooth scroll) ── */
html.lenis,
html.lenis body {
  height: auto;
}

.lenis:not(.lenis-autoToggle).lenis-stopped {
  overflow: clip;
}

.lenis [data-lenis-prevent],
.lenis [data-lenis-prevent-wheel],
.lenis [data-lenis-prevent-touch],
.lenis [data-lenis-prevent-vertical],
.lenis [data-lenis-prevent-horizontal] {
  overscroll-behavior: contain;
}

.lenis.lenis-smooth iframe {
  pointer-events: none;
}

.lenis.lenis-autoToggle {
  transition-property: overflow;
  transition-duration: 1ms;
  transition-behavior: allow-discrete;
}


/* =========================================================
   Solidea Handmade — un solo sistema per tutto il sito
   Colori: i quattro fondi (lino, sabbia, espresso, terracotta)
   arrivano come variabili e cambiano con le sezioni.
   ========================================================= */
:root {
  --espresso-900: #1f1913;
  --espresso-800: #2e251e;
  --espresso-700: #3e332a;
  --taupe-600: #6e6352;
  --taupe-400: #9a8e7b;
  --taupe-200: #c9bfac;
  --sand-300: #dfd2b9;
  --sand-200: #ece1cd;
  --linen-100: #f4eddd;
  --linen-50: #fbf7ef;
  --terracotta-600: #a85c3d;
  --terracotta-500: #be7150;
  --terracotta-300: #dba98e;
  --clay-500: #a33b2a;

  /* tema corrente (animato con lo scroll) */
  --bg: #f4eddd;
  --fg: #2e251e;
  --muted: #6e6352;
  --line: rgba(46, 37, 30, 0.16);
  --accent: #be7150;
  --card: #ece1cd;

  --display: 'Cormorant Garamond', Georgia, serif;
  --italic: 'EB Garamond', Georgia, serif;
  --sans: 'Jost', 'Futura', system-ui, sans-serif;

  --shadow-card: 0 18px 40px -14px rgba(46, 37, 30, 0.3), 0 2px 4px -2px rgba(46, 37, 30, 0.1);
  --shadow-lifted: 0 34px 70px -22px rgba(46, 37, 30, 0.36), 0 3px 8px -4px rgba(46, 37, 30, 0.14);
  --halo: radial-gradient(60% 55% at 50% 45%, rgba(46, 37, 30, 0.09), rgba(46, 37, 30, 0) 70%);
  --ease: cubic-bezier(0.32, 0.72, 0, 1);

  --gutter: clamp(20px, 4vw, 64px);
  --max: 1400px;
  --sec: clamp(104px, 15vh, 192px);
}
/* griglia di 4px: margini e spazi fluidi vengono arrotondati al multiplo di 4 */
@supports (width: round(nearest, 10px, 4px)) {
  :root {
    --gutter: round(nearest, clamp(20px, 4vw, 64px), 4px);
    --sec: round(nearest, clamp(104px, 15vh, 192px), 4px);
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  overflow-x: clip;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 300 16px/1.62 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img {
  display: block;
  max-width: 100%;
}
a {
  color: inherit;
}
h1,
h2,
h3,
p,
dl,
dd,
figure {
  margin: 0;
}
ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}
::selection {
  background: var(--terracotta-300);
  color: var(--espresso-900);
}
:focus-visible {
  outline: 1px solid var(--accent);
  outline-offset: 3px;
}
html.has-cursor,
html.has-cursor * {
  cursor: none !important;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.skip {
  position: fixed;
  left: 16px;
  top: -60px;
  z-index: 300;
  padding: 12px 16px;
  border-radius: 6px;
  background: var(--espresso-800);
  color: var(--sand-200);
  font: 400 11px/1 var(--sans);
  letter-spacing: 0.24em;
  text-transform: uppercase;
  text-decoration: none;
}
.skip:focus {
  top: 16px;
}

/* ============ Griglia e tipografia ============ */
.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.eyebrow {
  font: 400 11px/1.3 var(--sans);
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted);
}
.display {
  font: 300 clamp(52px, 7vw, 112px) / 1 var(--display);
  letter-spacing: -0.005em;
  color: var(--fg);
  text-wrap: balance;
}
.h2 {
  font: 300 clamp(40px, 4.8vw, 72px) / 1.05 var(--display);
  color: var(--fg);
  text-wrap: balance;
}
.lead {
  font: 300 18px/1.65 var(--sans);
  color: var(--muted);
  max-width: 46ch;
}
.lead--italic {
  font: italic 400 clamp(20px, 1.8vw, 24px) / 1.4 var(--italic);
  color: var(--fg);
}
.line {
  padding-bottom: 0.04em;
}
section {
  position: relative;
}
.sec-head {
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: 32px;
  align-items: end;
  margin-bottom: clamp(48px, 7vw, 96px);
  margin-bottom: round(nearest, clamp(48px, 7vw, 96px), 4px);
}
.sec-head__lead {
  font-size: 17px;
  color: var(--muted);
  max-width: 40ch;
}

/* ============ Bottoni ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 24px;
  border-radius: 6px;
  border: 1px solid transparent;
  background: transparent;
  cursor: pointer;
  font: 400 11px/1 var(--sans);
  letter-spacing: 0.24em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  transition:
    background-color 140ms var(--ease),
    color 140ms var(--ease),
    border-color 140ms var(--ease),
    transform 140ms var(--ease);
}
.btn:active {
  transform: scale(0.985);
}
.btn:disabled {
  opacity: 0.4;
}
.btn--primary {
  background: var(--fg);
  color: var(--bg);
}
.btn--primary:hover {
  background: var(--espresso-900);
  color: var(--sand-200);
}
.btn--accent {
  background: var(--terracotta-500);
  color: var(--linen-50);
}
.btn--accent:hover {
  background: var(--terracotta-600);
}
.btn--outline {
  border-color: var(--line);
  color: var(--fg);
}
.btn--outline:hover {
  border-color: var(--fg);
}
.icon-btn {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--fg);
  transition: border-color 140ms var(--ease);
}
.icon-btn:hover {
  border-color: var(--fg);
}
.icon-btn svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.magnet {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: clamp(140px, 13vw, 180px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--fg);
  color: var(--bg);
  font: 400 12px/1 var(--sans);
  letter-spacing: 0.24em;
  text-transform: uppercase;
  text-decoration: none;
  padding-left: 0.24em;
}
.magnet__in {
  pointer-events: none;
}

/* ============ Marchio ============ */
.sun {
  display: block;
  flex: none;
  color: var(--accent);
}
.lockup {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.lockup__words {
  display: grid;
  gap: 4px;
}
.lockup__wm {
  font: 300 28px/0.8 var(--display);
  color: var(--fg);
}
.lockup__hm {
  font: italic 400 11px/1 var(--italic);
  letter-spacing: 0.16em;
  color: var(--accent);
}

/* ============ Cursore ============ */
.cursor {
  --c-dot: #2e251e;
  --c-ring: rgba(251, 247, 239, 0.9);
  position: fixed;
  left: 0;
  top: 0;
  z-index: 400;
  pointer-events: none;
}
/* the cursor lives in the top layer, so it also passes over the cookie banner and panel */
.cursor[popover] {
  inset: 0 auto auto 0;
  width: 0;
  height: 0;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  overflow: visible;
}
.cursor__dot {
  position: absolute;
  width: 12px;
  height: 12px;
  margin: -6px 0 0 -6px;
  border-radius: 50%;
  background: var(--c-dot);
  box-shadow: 0 0 0 1.5px var(--c-ring);
}
/* ============ Tenda tra le pagine ============ */
.curtain {
  position: fixed;
  inset: 0;
  z-index: 250;
  display: grid;
  place-items: center;
  background: var(--espresso-800);
  pointer-events: none;
}
.curtain__mark {
  display: grid;
  justify-items: center;
  gap: clamp(16px, 2.4vw, 32px);
  gap: round(nearest, clamp(16px, 2.4vw, 32px), 4px);
}
.curtain .sun {
  width: clamp(96px, 10vw, 150px);
  height: auto;
  color: var(--terracotta-300);
}
.curtain__name {
  display: grid;
  justify-items: center;
  gap: 8px;
}
.curtain__wm {
  display: flex;
  overflow: hidden;
  padding: 0.04em 0.02em 0.12em;
  font: 300 clamp(64px, 9vw, 136px) / 0.85 var(--display);
  color: var(--linen-100);
}
.curtain__wm span {
  display: block;
}
.curtain__hm {
  font: italic 400 clamp(15px, 1.4vw, 21px) / 1 var(--italic);
  letter-spacing: 0.3em;
  padding-left: 0.3em;
  color: var(--terracotta-300);
}

/* ============ Header ============ */
.header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px var(--gutter);
  transition:
    transform 0.7s var(--ease),
    background-color 0.4s var(--ease),
    padding 0.4s var(--ease),
    box-shadow 0.4s var(--ease);
}
.header.is-solid {
  padding-top: 16px;
  padding-bottom: 16px;
  background: var(--bg);
  box-shadow: 0 1px 0 var(--line);
}
.header.is-hidden {
  transform: translateY(-110%);
}
/* risalendo: la barra riappare color mattone, con due veli che scendono */
.header {
  isolation: isolate;
}
.header::before,
.header::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  clip-path: inset(0 0 100% 0);
  pointer-events: none;
}
.header::after {
  background: var(--terracotta-300);
  transition: clip-path 0s 0.7s;
}
.header::before {
  z-index: 0;
  background: var(--terracotta-600);
  transition: clip-path 0s 0.7s;
}
.header > * {
  position: relative;
  z-index: 1;
}
.header.is-back {
  box-shadow: none;
}
.header.is-back::after {
  clip-path: inset(0 0 0 0);
  transition: clip-path 0.5s var(--ease) 0.05s;
}
.header.is-back::before {
  clip-path: inset(0 0 0 0);
  transition: clip-path 0.7s var(--ease) 0.2s;
}
.header .header__link,
.header .header__menu,
.header .lockup__wm,
.header .lockup__hm,
.header .sun {
  transition: color 0.4s var(--ease) 0.2s, border-color 0.4s var(--ease) 0.2s;
}
.header.is-back .header__link,
.header.is-back .header__menu,
.header.is-back .lockup__wm {
  color: var(--linen-50);
}
.header.is-back .header__menu {
  border-color: rgba(251, 247, 239, 0.4);
}
.header.is-back .sun,
.header.is-back .lockup__hm {
  color: var(--sand-200);
}
.header.is-back .header__link::after {
  background: var(--linen-50);
}
.header__home {
  text-decoration: none;
  position: relative;
  z-index: 2;
}
.header__nav {
  display: flex;
  gap: 32px;
}
.header__link {
  position: relative;
  padding: 8px 0;
  font: 400 11px/1 var(--sans);
  letter-spacing: 0.24em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--fg);
}
.header__link::after {
  content: '';
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 4px;
  height: 1px;
  background: var(--accent);
  transition: right 0.5s var(--ease);
}
.header__link:hover::after,
.header__link.is-on::after {
  right: 0;
}
.header__menu {
  display: none;
  position: relative;
  z-index: 2;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: transparent;
  font: 400 11px/1 var(--sans);
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--fg);
}
.header.is-open .lockup__wm,
.header.is-open .header__menu {
  color: var(--linen-50);
  border-color: rgba(251, 247, 239, 0.4);
  transition-delay: 0s;
}
.header.is-open .sun,
.header.is-open .lockup__hm {
  color: var(--sand-200);
}
.menu {
  position: fixed;
  inset: 0;
  z-index: 90;
  visibility: hidden;
  display: grid;
  align-content: start;
  justify-items: center;
  gap: 48px;
  padding: 128px var(--gutter) 40px;
  text-align: center;
  background: var(--terracotta-600);
  color: var(--linen-50);
}
.menu__list {
  display: grid;
  justify-items: center;
  gap: 4px;
}
.menu__link {
  display: block;
  overflow: hidden;
  text-decoration: none;
  font: 300 clamp(52px, 14vw, 88px) / 1.05 var(--display);
}
.menu__link span {
  display: block;
}
.menu__foot {
  display: flex;
  justify-content: center;
  gap: 16px;
}
.menu__foot a {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 1px solid rgba(251, 247, 239, 0.4);
  color: var(--linen-50);
  text-decoration: none;
}
.menu__foot a:active {
  background: var(--linen-50);
  border-color: var(--linen-50);
  color: var(--terracotta-600);
}
.menu__foot svg {
  width: 22px;
  height: 22px;
}
@media (max-width: 760px) {
  .header__nav {
    display: none;
  }
  .header__menu {
    display: block;
  }
}

/* ============ 1. Hero ============ */
.hero {
  position: relative;
  height: 100svh;
  min-height: 600px;
  display: grid;
  grid-template-rows: 1fr auto;
  padding: 88px 0 clamp(24px, 4vh, 44px);
  padding: 88px 0 round(nearest, clamp(24px, 4vh, 44px), 4px);
  overflow: hidden;
}
.hero__stage {
  display: grid;
  place-content: center;
  justify-items: center;
  gap: clamp(16px, 2.4vh, 28px);
  gap: round(nearest, clamp(16px, 2.4vh, 28px), 4px);
}
.hero .hero__sun {
  width: clamp(64px, 7vw, 104px);
  height: auto;
  color: var(--accent);
}
/* the visual name is a <div aria-hidden>: the heading is the .sr-only <h1> before it.
   font-size keeps the 2em the <h1> had, because .hero__mask uses em */
.hero__name {
  --mx: 0;
  --my: 0;
  font-size: 2em;
  display: grid;
  justify-items: center;
  margin: 0;
  font-weight: 400;
  transform-style: preserve-3d;
}
.hero__name {
  perspective: none;
}
.hero__mask {
  display: block;
  overflow: hidden;
  padding: 0.02em 0.04em 0.1em;
}
.hero__rise {
  position: relative;
  display: block;
}
.hero__wm {
  display: block;
  font: 600 min(31vw, 50svh) / 0.82 var(--display);
  letter-spacing: -0.035em;
  padding-right: 0.035em;
  color: var(--fg);
  white-space: nowrap;
}
/* le trame dentro le lettere */
.hero__layer {
  --px: 0%;
  position: absolute;
  inset: 0;
  color: transparent;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: calc(var(--px) + var(--mx) * 1%) calc(50% + var(--my) * 1%);
  -webkit-background-clip: text;
  background-clip: text;
  /* trame un po' più scure, così il nome resta deciso */
  filter: brightness(0.74) contrast(1.08);
  visibility: hidden;
}
.hero__hm {
  margin-top: 0.3em;
  font: italic 400 clamp(18px, 2.2vw, 34px) / 1 var(--italic);
  letter-spacing: 0.5em;
  padding-left: 0.5em;
  color: var(--accent);
}
.hero__foot {
  display: flex;
  justify-content: space-between;
  align-items: end;
  flex-wrap: wrap;
  gap: 20px 40px;
}
.hero__sub {
  font: 300 clamp(24px, 2.4vw, 36px) / 1.1 var(--display);
  color: var(--fg);
  max-width: 19em;
}
.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
@media (max-width: 760px) {
  .hero {
    padding-top: 84px;
  }
  .hero__wm {
    font-size: 35vw;
  }
  .hero__hm {
    letter-spacing: 0.36em;
  }
}


/* ============ 2. Il filo ============ */
.filo {
  padding: var(--sec) 0;
}
.filo__text {
  font: 300 clamp(34px, 4.3vw, 66px) / 1.2 var(--display);
  color: var(--fg);
  max-width: 21em;
}
.pill {
  display: inline-block;
  width: 2.3em;
  height: 0.8em;
  margin: 0 0.12em;
  border-radius: 999px;
  overflow: hidden;
  vertical-align: -0.06em;
  background: var(--card);
}
.pill img {
  width: 2.3em;
  max-width: none;
  height: 100%;
  object-fit: cover;
}

/* ============ 3. Le forme ============ */
.forme {
  padding: var(--sec) 0;
  overflow: hidden;
}
.forme__list {
  border-top: 1px solid var(--line);
}
.forme__row {
  display: grid;
  grid-template-columns: 6fr 4fr 2fr;
  align-items: center;
  gap: 24px;
  padding: clamp(20px, 2.6vw, 36px) 0;
  padding: round(nearest, clamp(20px, 2.6vw, 36px), 4px) 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
}
.forme__thumb {
  display: none;
}
.forme__name {
  font: 300 clamp(48px, 6.6vw, 104px) / 1 var(--display);
  color: var(--fg);
  transition:
    transform 0.6s var(--ease),
    color 0.3s var(--ease);
}
.forme__row:hover .forme__name {
  transform: translateX(18px);
  font-style: italic;
  color: var(--accent);
}
.forme__text {
  font-size: 16px;
  color: var(--muted);
  max-width: 32ch;
}
.forme__count {
  justify-self: end;
}
.forme__float {
  position: absolute;
  left: 0;
  top: 0;
  width: clamp(200px, 18vw, 280px);
  aspect-ratio: 1;
  margin: calc(clamp(200px, 18vw, 280px) / -2) 0 0 calc(clamp(200px, 18vw, 280px) / -2);
  margin: round(nearest, calc(clamp(200px, 18vw, 280px) / -2), 4px) 0 0 round(nearest, calc(clamp(200px, 18vw, 280px) / -2), 4px);
  pointer-events: none;
  z-index: 5;
  visibility: hidden;
  transform: scale(0.6);
}
.forme__float img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 24px 24px rgba(46, 37, 30, 0.28));
  opacity: 0;
}
@media (max-width: 760px) {
  .forme__row {
    grid-template-columns: 72px 1fr;
    gap: 8px 16px;
  }
  .forme__thumb {
    display: block;
    grid-row: span 2;
    width: 72px;
    height: 72px;
    object-fit: contain;
    border-radius: 12px;
    background: var(--card);
    padding: 8px;
  }
  .forme__name {
    font-size: 40px;
  }
  .forme__text {
    grid-column: 2;
    font-size: 14px;
  }
  .forme__count {
    display: none;
  }
}

/* ============ 4. Come nasce ============ */
.passi {
  height: 100svh;
  display: grid;
  grid-template-rows: 1fr auto;
  grid-template-columns: minmax(0, 1fr);
  padding: 104px 0 32px;
}
.passi__grid {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: clamp(32px, 6vw, 112px);
  gap: round(nearest, clamp(32px, 6vw, 112px), 4px);
  align-items: center;
  min-height: 0;
}
.passi__head {
  display: grid;
  gap: 28px;
  align-content: center;
}
.passi__num {
  position: relative;
  height: 1em;
  overflow: hidden;
  font: 300 clamp(96px, 13vw, 200px) / 1 var(--display);
  color: var(--accent);
}
.passi__num span {
  position: absolute;
  left: 0;
  top: 0;
  line-height: 1;
}
.passi__texts {
  position: relative;
  height: 190px;
}
.passi__step {
  position: absolute;
  inset: 0;
  display: grid;
  align-content: start;
  gap: 16px;
}
.passi__step h3 {
  font: 300 clamp(30px, 3vw, 44px) / 1.1 var(--display);
}
.passi__step p {
  color: var(--muted);
  max-width: 42ch;
  font-size: 17px;
}
.passi__media {
  position: relative;
  height: min(70svh, 700px);
  border-radius: 12px;
  overflow: hidden;
}
.passi__img {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.passi__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.passi__bar {
  position: relative;
  height: 1px;
  margin-top: 24px;
}
.passi__bar::before,
.passi__bar span {
  content: '';
  position: absolute;
  left: var(--gutter);
  right: var(--gutter);
  top: 0;
  height: 1px;
  background: var(--line);
}
.passi__bar span {
  background: var(--accent);
  transform-origin: 0 50%;
  transform: scaleX(0);
}
@media (max-width: 900px) {
  .passi {
    padding-top: 88px;
  }
  .passi__grid {
    grid-template-columns: 1fr;
    gap: 20px;
    align-content: start;
  }
  .passi__head {
    gap: 12px;
  }
  .passi__num {
    font-size: 64px;
  }
  .passi__texts {
    height: 150px;
  }
  .passi__step p {
    font-size: 15px;
  }
  .passi__media {
    height: 34svh;
  }
}

/* ============ 5. Chi c'è dietro ============ */
.dietro {
  padding: var(--sec) 0;
}
.dietro__grid {
  display: grid;
  grid-template-columns: 6fr 5fr;
  gap: clamp(32px, 7vw, 128px);
  gap: round(nearest, clamp(32px, 7vw, 128px), 4px);
  align-items: center;
}
.dietro__media {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: 12px;
  overflow: hidden;
  background: var(--card);
}
.dietro__media img {
  position: absolute;
  left: 0;
  top: -8%;
  width: 100%;
  height: 116%;
  object-fit: cover;
}
.dietro__body {
  display: grid;
  gap: 24px;
  justify-items: start;
}

/* ============ 7. Su misura ============ */
.sumisura {
  padding: var(--sec) 0;
}
.sumisura__panel {
  /* colori fissi: il pannello resta color mattone qualunque sia il fondo */
  --fg: #fbf7ef;
  --muted: rgba(251, 247, 239, 0.84);
  --line: rgba(251, 247, 239, 0.26);
  --accent: #fbf7ef;
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: clamp(32px, 5vw, 88px);
  gap: round(nearest, clamp(32px, 5vw, 88px), 4px);
  align-items: center;
  border-radius: clamp(20px, 2.4vw, 36px);
  background: var(--terracotta-600);
  color: var(--fg);
  padding: clamp(24px, 4vw, 64px);
  padding: round(nearest, clamp(24px, 4vw, 64px), 4px);
  box-shadow: var(--shadow-lifted);
}
.sumisura__demo {
  margin: 0;
  display: grid;
  justify-items: center;
  gap: 16px;
  padding: clamp(24px, 3vw, 40px) clamp(20px, 2.4vw, 32px) clamp(24px, 2.6vw, 36px);
  padding: round(nearest, clamp(24px, 3vw, 40px), 4px) round(nearest, clamp(20px, 2.4vw, 32px), 4px) round(nearest, clamp(24px, 2.6vw, 36px), 4px);
  border-radius: clamp(16px, 1.8vw, 26px);
  background: var(--halo), var(--linen-100);
}
.sumisura__stage {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
}
.sumisura__bag {
  position: absolute;
  inset: 6%;
  width: 88%;
  height: 88%;
  object-fit: contain;
  filter: none;
}
.sumisura__label {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font: 400 11px/1 var(--sans);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--taupe-600);
}
.sumisura__label em {
  display: inline-block;
  min-width: 3.4em;
  font: italic 400 28px/1 var(--italic);
  letter-spacing: 0;
  text-transform: none;
  color: var(--espresso-800);
  animation: sumisura-in 0.6s var(--ease);
}
@keyframes sumisura-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
}
.sumisura__swatches {
  display: flex;
  gap: 8px;
}
.sumisura__swatches li {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  box-shadow: 0 0 0 1px rgba(46, 37, 30, 0.15);
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
.sumisura__swatches li.is-on {
  transform: scale(1.35);
  box-shadow: 0 0 0 2px var(--linen-100), 0 0 0 3px var(--espresso-800);
}
.sumisura__body {
  display: grid;
  gap: 24px;
  justify-items: start;
}
.sumisura__body .display {
  font-size: clamp(48px, 5.4vw, 92px);
  max-width: 8em;
}
.sumisura__body .lead {
  max-width: 40ch;
}
.sumisura__modi {
  display: grid;
  width: 100%;
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}
.sumisura__modi li {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.sumisura__ico {
  width: 26px;
  height: 26px;
  color: var(--accent);
  margin-top: 4px;
}
.sumisura__modi h3 {
  font: italic 400 clamp(22px, 1.9vw, 28px) / 1.1 var(--italic);
  margin-bottom: 4px;
}
.sumisura__modi p {
  color: var(--muted);
  max-width: 46ch;
}
.sumisura__cta {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-top: 12px;
}
.sumisura__cta p {
  font: 300 clamp(20px, 1.8vw, 26px) / 1.25 var(--display);
  max-width: 18em;
}
.magnet.magnet--light {
  background: var(--linen-50);
  color: var(--terracotta-600);
}
@media (max-width: 760px) {
  .sumisura__panel {
    grid-template-columns: 1fr;
  }
  .sumisura__demo {
    width: 100%;
    max-width: 420px;
    justify-self: center;
  }
  .sumisura__cta {
    flex-direction: column;
    align-items: start;
  }
}

/* ============ Footer ============ */
.footer {
  padding-top: var(--sec);
  overflow: hidden;
}
.footer__top {
  display: grid;
  grid-template-columns: 3fr 3fr 4fr 2fr;
  gap: 32px;
  align-items: start;
}
.footer__col {
  display: grid;
  gap: 8px;
  justify-items: start;
}
.footer__col button {
  padding: 0;
  border: 0;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  cursor: pointer;
  text-align: left;
  transition: background-size 0.5s var(--ease);
}
.footer__col button:hover {
  background-size: 100% 1px;
}
.footer__col a,
.footer__col button {
  font: 300 clamp(20px, 1.8vw, 26px) / 1.25 var(--display);
  color: var(--fg);
  text-decoration: none;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  transition: background-size 0.5s var(--ease);
}
.footer__col a:hover {
  background-size: 100% 1px;
}
.footer__col .eyebrow {
  margin-bottom: 8px;
}
.footer__sun {
  justify-self: end;
}
.footer__word {
  margin: clamp(48px, 7vw, 96px) 0 0;
  margin: round(nearest, clamp(48px, 7vw, 96px), 4px) 0 0;
  font: 300 30vw/0.78 var(--display);
  letter-spacing: -0.02em;
  text-align: center;
  color: var(--fg);
  white-space: nowrap;
  user-select: none;
}
.footer__legal {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 24px;
  padding-bottom: 28px;
  border-top: 1px solid var(--line);
}
@media (max-width: 900px) {
  .footer__top {
    grid-template-columns: 1fr 1fr;
  }
  .footer__sun {
    display: none;
  }
}

/* ============ Testata delle pagine interne ============ */
.phead {
  padding: calc(120px + 6vh) 0 clamp(56px, 8vw, 112px);
  padding: round(nearest, calc(120px + 6vh), 4px) 0 round(nearest, clamp(56px, 8vw, 112px), 4px);
}
.phead--solo {
  min-height: 80svh;
}
.phead--solo .wrap {
  display: grid;
  gap: 24px;
  justify-items: start;
}
.phead__grid {
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: clamp(32px, 5vw, 96px);
  gap: round(nearest, clamp(32px, 5vw, 96px), 4px);
  align-items: end;
}
.phead__grid > div:first-child {
  display: grid;
  gap: 20px;
}
.phead__side {
  display: grid;
  gap: 28px;
}

/* ============ Pezzi ============ */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.chip {
  display: inline-flex;
  gap: 8px;
  align-items: baseline;
  padding: 12px 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: transparent;
  font: 400 11px/1 var(--sans);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--fg);
  transition:
    background-color 240ms var(--ease),
    color 240ms var(--ease),
    border-color 240ms var(--ease);
}
.chip:hover {
  border-color: var(--fg);
}
.chip.is-on {
  background: var(--fg);
  border-color: var(--fg);
  color: var(--bg);
}
.chip__n {
  opacity: 0.55;
}
.pgrid {
  padding-bottom: var(--sec);
}
.pgrid__list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
  gap: clamp(40px, 5vw, 72px) clamp(16px, 2vw, 28px);
  gap: round(nearest, clamp(40px, 5vw, 72px), 4px) round(nearest, clamp(16px, 2vw, 28px), 4px);
}
.pgrid__item.is-out {
  display: none;
}

/* Carta di un pezzo */
.pcard {
  display: grid;
  gap: 16px;
  text-decoration: none;
  color: var(--fg);
}
.pcard__frame {
  position: relative;
  display: block;
  aspect-ratio: 4 / 5;
  border-radius: 12px;
  overflow: hidden;
  background: var(--halo), var(--card);
  box-shadow: var(--shadow-card);
  transition:
    transform 240ms var(--ease),
    box-shadow 240ms var(--ease);
}
.pcard__cut {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 13%;
  filter: drop-shadow(0 14px 18px rgba(46, 37, 30, 0.22));
  transition: transform 0.8s var(--ease);
}
.pcard__photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.08);
  transition:
    opacity 0.6s var(--ease),
    transform 1.2s var(--ease);
}
@media (hover: hover) {
  .pcard:hover .pcard__frame {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lifted);
  }
  .pcard:hover .pcard__photo {
    opacity: 1;
    transform: scale(1);
  }
}
.pcard__info {
  display: grid;
  gap: 8px;
}
.pcard__name {
  font: italic 400 28px/1 var(--italic);
}
.pcard__price {
  font: 300 19px/1 var(--display);
  color: var(--muted);
}

/* ============ Scheda di un pezzo ============ */
.scheda__main {
  padding: 112px 0 48px;
}
.scheda__grid {
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: clamp(32px, 5vw, 96px);
  gap: round(nearest, clamp(32px, 5vw, 96px), 4px);
  align-items: start;
}
.galleria {
  display: grid;
  gap: 16px;
  min-width: 0;
}
.galleria__main {
  margin: 0;
  height: clamp(360px, calc(100svh - 250px), 780px);
  border-radius: 14px;
  overflow: hidden;
  background: var(--card);
}
.galleria__main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.galleria__main.is-cut {
  background: var(--halo), var(--card);
}
.galleria__main.is-cut img {
  object-fit: contain;
  padding: 9%;
  filter: drop-shadow(0 22px 26px rgba(46, 37, 30, 0.25));
}
.galleria__thumbs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 4px;
  margin: -4px;
}
.galleria__thumb {
  display: block;
  width: clamp(58px, 5vw, 76px);
  aspect-ratio: 1;
  padding: 0;
  border: 0;
  border-radius: 10px;
  overflow: hidden;
  background: var(--card);
  opacity: 0.6;
  cursor: pointer;
  outline: 1px solid transparent;
  outline-offset: 2px;
  transition:
    opacity 0.3s var(--ease),
    outline-color 0.3s var(--ease);
}
.galleria__thumb:hover {
  opacity: 0.9;
}
.galleria__thumb.is-on {
  opacity: 1;
  outline-color: var(--fg);
}
.galleria__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.galleria__thumb.is-cut img {
  object-fit: contain;
  padding: 10%;
}
.scheda__info {
  align-self: stretch;
}
.scheda__sticky {
  position: sticky;
  top: 112px;
  display: grid;
  gap: 16px;
  padding-top: 4px;
}
.crumbs {
  display: flex;
  gap: 8px;
}
.crumbs a {
  text-decoration: none;
}
.crumbs a:hover {
  color: var(--fg);
}
.scheda__name {
  font: italic 400 clamp(64px, 7.4vw, 120px) / 0.95 var(--italic);
  color: var(--fg);
}
.scheda__price {
  font: 300 30px/1 var(--display);
}
.scheda__desc {
  max-width: 50ch;
  color: var(--muted);
}
.scheda__nota {
  font-size: 15px;
}
.scheda__nota a {
  color: var(--fg);
  text-underline-offset: 4px;
}
.spec {
  border-top: 1px solid var(--line);
}
.spec__row {
  display: grid;
  grid-template-columns: 9rem 1fr;
  gap: 16px;
  align-items: baseline;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.spec__row dt {
  font: 500 11px/1.3 var(--sans);
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted);
}
.scheda__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.scheda__cat {
  text-decoration: none;
}
.scheda__cat:hover {
  color: var(--fg);
}
.avviso {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  padding: 24px 24px;
  border-radius: 14px;
  background: rgba(190, 113, 80, 0.12);
  border: 1px solid rgba(190, 113, 80, 0.35);
}
.avviso__ico {
  width: 26px;
  height: 26px;
  color: var(--terracotta-600);
}
.avviso__title {
  font: italic 400 24px/1.15 var(--italic);
  color: var(--fg);
  margin-bottom: 8px;
}
.avviso__text {
  font-size: 15px;
  color: var(--muted);
  margin-bottom: 12px;
}
.avviso__link {
  font: 500 11px/1 var(--sans);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--terracotta-600);
  text-decoration: none;
  background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat;
  padding-bottom: 4px;
}

/* Altri pezzi */
.altri {
  padding: 48px 0 var(--sec);
}
.altri__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 48px;
}
.altri__view {
  overflow: hidden;
  padding-bottom: 24px;
}
.altri__track {
  padding: 0 max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter)));
  display: flex;
  gap: clamp(16px, 2vw, 28px);
  gap: round(nearest, clamp(16px, 2vw, 28px), 4px);
  width: max-content;
}
.altri__card {
  width: clamp(230px, 22vw, 320px);
}
.altri__card img {
  pointer-events: none;
}

/* ============ Chi sono ============ */
.coppia {
  padding-bottom: var(--sec);
}
.coppia__grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(16px, 2vw, 28px);
  gap: round(nearest, clamp(16px, 2vw, 28px), 4px);
  align-items: end;
}
.coppia__big,
.coppia__small {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  background: var(--card);
  aspect-ratio: 4 / 5;
}
.coppia__big {
  grid-column: 1 / 8;
}
.coppia__small {
  grid-column: 9 / 13;
  margin-bottom: 12%;
}
.coppia__big img,
.coppia__small img {
  position: absolute;
  left: 0;
  top: -8%;
  width: 100%;
  height: 116%;
  object-fit: cover;
}
.storia {
  padding: var(--sec) 0;
}
.storia__grid {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: clamp(32px, 6vw, 112px);
  gap: round(nearest, clamp(32px, 6vw, 112px), 4px);
  align-items: start;
}
.storia__head {
  position: sticky;
  top: 140px;
  display: grid;
  gap: 32px;
}
.storia__text {
  display: grid;
  gap: 28px;
  font: 300 clamp(24px, 2.2vw, 32px) / 1.4 var(--display);
  max-width: 30em;
}
.valori {
  padding: var(--sec) 0;
}
.valori__list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(24px, 3vw, 48px);
  gap: round(nearest, clamp(24px, 3vw, 48px), 4px);
}
.valori__item {
  display: grid;
  gap: 12px;
  align-content: start;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.valori__item h3 {
  font: italic 400 28px/1.15 var(--italic);
}
.valori__item p {
  color: var(--muted);
}

/* ============ Contatti ============ */
.contatti__hero {
  padding: calc(112px + 4vh) 0 var(--sec);
  padding: round(nearest, calc(112px + 4vh), 4px) 0 var(--sec);
}
.contatti__hero-grid {
  display: grid;
  grid-template-columns: 6fr 5fr;
  gap: clamp(32px, 6vw, 112px);
  gap: round(nearest, clamp(32px, 6vw, 112px), 4px);
  align-items: center;
}
.contatti__intro {
  display: grid;
  gap: 24px;
  justify-items: start;
}
.contatti__intro .display {
  font-size: clamp(56px, 7vw, 116px);
  max-width: 8em;
}
.contatti__intro .lead {
  max-width: 40ch;
}
.contatti__foto {
  position: relative;
  padding: 0 0 18% 14%;
}
.contatti__foto figure {
  margin: 0;
  overflow: hidden;
  border-radius: 16px;
  box-shadow: var(--shadow-card);
}
.contatti__foto img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.contatti__foto-big {
  aspect-ratio: 4 / 5;
}
.contatti__foto-small {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 44%;
  aspect-ratio: 1;
  border: 6px solid var(--linen-100);
}
.canali {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: clamp(48px, 7vw, 104px);
  margin-top: round(nearest, clamp(48px, 7vw, 104px), 4px);
}
.canale {
  position: relative;
  display: grid;
  align-content: end;
  gap: 8px;
  min-height: clamp(200px, 18vw, 260px);
  padding: clamp(24px, 2.4vw, 36px);
  padding: round(nearest, clamp(24px, 2.4vw, 36px), 4px);
  border-radius: 20px;
  text-decoration: none;
  overflow: hidden;
  transition:
    transform 0.6s var(--ease),
    box-shadow 0.6s var(--ease);
}
.canale:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lifted);
}
.canale--scuro {
  background: var(--espresso-800);
  color: var(--linen-100);
}
.canale--terra {
  background: var(--terracotta-500);
  color: var(--linen-50);
}
.canale--chiaro {
  background: var(--sand-200);
  color: var(--espresso-800);
}
.canale .eyebrow {
  color: inherit;
  opacity: 0.75;
}
.canale__ico {
  position: absolute;
  left: clamp(24px, 2.4vw, 36px);
  top: clamp(24px, 2.4vw, 36px);
  width: 34px;
  height: 34px;
}
.canale__go {
  position: absolute;
  right: clamp(20px, 2vw, 30px);
  top: clamp(20px, 2vw, 30px);
  width: 26px;
  height: 26px;
  transition: transform 0.6s var(--ease);
}
.canale:hover .canale__go {
  transform: translate(4px, -4px);
}
.canale__val {
  font: 300 clamp(24px, 2.1vw, 32px) / 1.15 var(--display);
}
.contatti__main {
  padding: var(--sec) 0;
}
.contatti__grid {
  display: grid;
  grid-template-columns: 5fr 6fr;
  gap: clamp(32px, 6vw, 112px);
  gap: round(nearest, clamp(32px, 6vw, 112px), 4px);
  align-items: start;
}
.contatti__come {
  display: grid;
  gap: clamp(32px, 4vw, 56px);
  gap: round(nearest, clamp(32px, 4vw, 56px), 4px);
  position: sticky;
  top: 120px;
}
.passi-mini {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}
.passi-mini li {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 16px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}
.passi-mini__n {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--terracotta-500);
  color: var(--linen-50);
  font: 400 15px/1 var(--sans);
}
.passi-mini h3 {
  font: italic 400 26px/1.15 var(--italic);
  margin-bottom: 8px;
}
.passi-mini p {
  color: var(--muted);
  max-width: 40ch;
}
.contatti__panel {
  border-radius: 12px;
  background: var(--linen-50);
  box-shadow: var(--shadow-card);
  padding: clamp(24px, 3.4vw, 48px);
  padding: round(nearest, clamp(24px, 3.4vw, 48px), 4px);
}
.form {
  display: grid;
  gap: 28px;
}
.form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}
.field {
  display: grid;
  gap: 8px;
}
.field__req {
  color: var(--accent);
}
.field__opt {
  margin-left: 8px;
  opacity: 0.6;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 8px 4px;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  font: 300 17px/1.5 var(--sans);
  color: var(--fg);
  outline: none;
  transition: border-color 140ms var(--ease);
}
.field select {
  appearance: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236E6352' stroke-width='1.5' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 2px center;
  padding-right: 24px;
}
.field textarea {
  resize: vertical;
  min-height: 120px;
  max-height: 320px;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-bottom-color: var(--terracotta-500);
}
.check {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 14px;
  color: var(--muted);
}
.check input {
  width: 16px;
  height: 16px;
  margin-top: 4px;
  accent-color: var(--espresso-800);
}
.form__error {
  color: var(--clay-500);
  font-size: 14px;
}
.form .btn {
  justify-self: start;
}
.done {
  display: grid;
  gap: 16px;
  justify-items: start;
  padding: 24px 0;
}

/* ============ Mobile ============ */
@media (max-width: 900px) {
  .sec-head,
  .dietro__grid,
  .phead__grid,
  .scheda__grid,
  .storia__grid,
  .contatti__grid {
    grid-template-columns: 1fr;
  }
  .storia__head {
    position: static;
  }
  .scheda__sticky {
    position: static;
  }
  .valori__list {
    grid-template-columns: 1fr;
  }
  .coppia__big {
    grid-column: 1 / 13;
  }
  .coppia__small {
    grid-column: 6 / 13;
    margin: -30% 0 0;
  }
  .form__row {
    grid-template-columns: 1fr;
  }

  .contatti__come {
    position: static;
  }
  .canale {
    min-height: 0;
    padding-top: 84px;
  }
}
@media (max-width: 560px) {
  .spec__row {
    grid-template-columns: 7.5rem 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}

/* ============ Footer: dati e informazioni legali ============ */
.footer__dati {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 32px;
  align-items: start;
  padding-top: 28px;
  padding-bottom: 28px;
  border-top: 1px solid var(--line);
}
.footer__chi {
  display: grid;
  gap: 8px;
}
.footer__chi p {
  max-width: 46ch;
  font-size: 15px;
  color: var(--muted);
}
.footer__info {
  display: grid;
  grid-template-columns: repeat(3, auto);
  justify-content: end;
  gap: 16px 40px;
}
.footer__info li {
  display: grid;
  gap: 8px;
}
.footer__info a {
  font-size: 15px;
  color: var(--fg);
  text-decoration: none;
}
.footer__info a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}
.footer__col--cta a {
  font-size: clamp(26px, 2.4vw, 34px);
  max-width: 12em;
}
.footer__legal {
  align-items: center;
}
.footer__policy {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
}
.footer__policy a,
.footer__policy button {
  padding: 0;
  border: 0;
  background: none;
  font: 400 10px/1.4 var(--sans);
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--fg);
  text-decoration: none;
  opacity: 0.8;
  cursor: pointer;
}
.footer__policy a:hover,
.footer__policy button:hover {
  opacity: 1;
  text-decoration: underline;
  text-underline-offset: 4px;
}
@media (max-width: 900px) {
  .footer__dati {
    grid-template-columns: 1fr;
  }
  .footer__info {
    grid-template-columns: 1fr;
    justify-content: start;
  }
}

/* ============ Pagine legali ============ */
.legale__body {
  padding-bottom: var(--sec);
}
.legale__grid {
  display: grid;
  grid-template-columns: 4fr 8fr;
  gap: clamp(32px, 6vw, 112px);
  gap: round(nearest, clamp(32px, 6vw, 112px), 4px);
  align-items: start;
}
.legale__aside {
  position: sticky;
  top: 112px;
  display: grid;
  gap: 40px;
}
.legale__toc,
.legale__docs {
  display: grid;
  gap: 12px;
  justify-items: start;
}
.legale__toc ol {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: toc;
  display: grid;
  gap: 4px;
}
.legale__toc li {
  counter-increment: toc;
}
.legale__toc button {
  display: flex;
  gap: 12px;
  padding: 8px 0;
  border: 0;
  background: none;
  text-align: left;
  font-size: 15px;
  color: var(--muted);
  cursor: pointer;
  transition: color 140ms var(--ease);
}
.legale__toc button::before {
  content: counter(toc, decimal-leading-zero);
  font: 400 11px/1.9 var(--sans);
  letter-spacing: 0.12em;
  color: var(--accent);
}
.legale__toc button:hover {
  color: var(--fg);
}
.legale__docs a {
  font: 300 24px/1.2 var(--display);
  color: var(--fg);
  text-decoration: none;
}
.legale__docs a:hover {
  text-decoration: underline;
  text-underline-offset: 5px;
  text-decoration-thickness: 1px;
}
.legale__docs .btn {
  margin-top: 8px;
}
.legale__text {
  display: grid;
  gap: 56px;
  max-width: 68ch;
}
.legale__sec {
  display: grid;
  gap: 16px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.legale__sec h2 {
  font: 300 clamp(28px, 2.6vw, 38px) / 1.15 var(--display);
  outline: none;
}
.legale__sec p,
.legale__sec li {
  font-size: 17px;
  color: var(--muted);
}
.legale__sec ul {
  display: grid;
  gap: 8px;
  padding-left: 1.2em;
  list-style: disc;
}
.legale__sec li::marker {
  color: var(--accent);
}
@media (max-width: 900px) {
  .legale__grid {
    grid-template-columns: 1fr;
  }
  .legale__aside {
    position: static;
  }
}

/* ============ Domande frequenti ============ */
.faq {
  border-top: 1px solid var(--line);
}
.faq__item {
  border-bottom: 1px solid var(--line);
}
.faq__q {
  margin: 0;
  font: inherit;
}
.faq__q button {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 24px 0;
  border: 0;
  background: none;
  text-align: left;
  font: 300 clamp(22px, 2vw, 28px) / 1.25 var(--display);
  color: var(--fg);
  cursor: pointer;
}
.faq__q button:hover span:first-child {
  font-style: italic;
}
.faq__sign {
  position: relative;
  width: 18px;
  height: 18px;
  flex: none;
}
.faq__sign::before,
.faq__sign::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 1px;
  background: var(--accent);
  transition: transform 0.5s var(--ease);
}
.faq__sign::after {
  transform: rotate(90deg);
}
.faq__item.is-open .faq__sign::after {
  transform: rotate(0deg);
}
.faq__a {
  height: 0;
  overflow: hidden;
}
.faq__a p {
  padding: 0 48px 28px 0;
  max-width: 64ch;
  font-size: 17px;
  color: var(--muted);
}
.domande__body {
  padding-bottom: var(--sec);
}
.domande__gruppo {
  display: grid;
  grid-template-columns: 4fr 8fr;
  gap: clamp(32px, 6vw, 112px);
  gap: round(nearest, clamp(32px, 6vw, 112px), 4px);
  align-items: start;
  margin-bottom: clamp(64px, 8vw, 120px);
  margin-bottom: round(nearest, clamp(64px, 8vw, 120px), 4px);
}
.domande__titolo {
  font-size: clamp(32px, 3.4vw, 48px);
  position: sticky;
  top: 120px;
}
.domande__fine {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 40px;
  border-top: 1px solid var(--line);
}
.domande__fine .lead {
  font: 300 clamp(28px, 3vw, 40px) / 1.1 var(--display);
  color: var(--fg);
}
.contatti__faq {
  padding: var(--sec) 0;
}
.contatti__faq-grid {
  display: grid;
  grid-template-columns: 4fr 8fr;
  gap: clamp(32px, 6vw, 112px);
  gap: round(nearest, clamp(32px, 6vw, 112px), 4px);
  align-items: start;
}
.contatti__faq-head {
  display: grid;
  gap: 20px;
  justify-items: start;
  position: sticky;
  top: 120px;
}
@media (max-width: 900px) {
  .domande__gruppo,
  .contatti__faq-grid {
    grid-template-columns: 1fr;
  }
  .domande__titolo,
  .contatti__faq-head {
    position: static;
  }
}

/* ============ 3. Il flusso ============ */
.flusso {
  padding: var(--sec) 0 calc(var(--sec) * 0.8);
  overflow: hidden;
}
.flusso__head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: clamp(40px, 6vw, 88px);
  margin-bottom: round(nearest, clamp(40px, 6vw, 88px), 4px);
}
.flusso__stage {
  --fw: clamp(180px, 17vw, 260px);
  position: relative;
  height: calc(var(--fw) * 1.25 + 180px);
  perspective: 1400px;
  pointer-events: none;
  user-select: none;
}
.flusso__card {
  position: absolute;
  left: 0;
  top: 90px;
  width: var(--fw);
  aspect-ratio: 4 / 5;
  will-change: transform;
}
.flusso__face {
  width: 100%;
  height: 100%;
  display: grid;
  grid-template-rows: 1fr auto;
  border-radius: 14px;
  background: var(--halo), var(--sand-200);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}
.flusso__cut {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: contain;
  padding: 14% 12% 2%;
  filter: drop-shadow(0 14px 14px rgba(46, 37, 30, 0.2));
}
.flusso__foot {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  padding: 8px 16px 16px;
}
.flusso__name {
  font: italic 400 22px/1 var(--italic);
  color: var(--espresso-800);
}
.flusso__foot .eyebrow {
  font-size: 9px;
  color: var(--taupe-600);
  white-space: nowrap;
}
@media (max-width: 760px) {
  .flusso__stage {
    --fw: 150px;
    height: calc(var(--fw) * 1.25 + 110px);
  }
  .flusso__card {
    top: 55px;
  }
  .flusso__name {
    font-size: 18px;
  }
}
@media (max-width: 760px) {
  .galleria__main {
    height: auto;
    aspect-ratio: 1;
  }
}

/* ============ Tablet e telefono ============ */
@media (max-width: 1024px) {
  :root {
    --sec: 96px;
  }
  .hero {
    height: auto;
    min-height: 0;
    padding: 128px 0 56px;
    gap: 64px;
  }
  .hero__foot {
    gap: 16px 32px;
  }
}
@media (max-width: 900px) {
  /* chi c'è dietro: foto più bassa */
  .dietro__media {
    aspect-ratio: 4 / 3;
  }
}
@media (max-width: 760px) {
  :root {
    --sec: 64px;
    --gutter: 20px;
  }
  /* hero compatta: niente vuoti tra nome e testo */
  .hero {
    padding: 112px 0 48px;
    gap: 48px;
  }
  .hero__stage {
    gap: 16px;
  }
  .hero__sub {
    font-size: 26px;
  }
  .hero__foot {
    display: grid;
    gap: 20px;
  }
  /* il flusso occupa meno altezza */
  .flusso {
    padding-bottom: 32px;
  }
  .flusso__head {
    margin-bottom: 24px;
  }
  /* prodotti: due per riga */
  .pgrid__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px 12px;
  }
  .pcard {
    gap: 12px;
  }
  .pcard__info {
    gap: 4px;
  }
  .pcard__info .eyebrow {
    font-size: 9px;
    letter-spacing: 0.16em;
  }
  .pcard__name {
    font-size: 22px;
  }
  .pcard__price {
    font-size: 15px;
  }
  .pcard__cut {
    padding: 12%;
  }
  .phead {
    padding: 112px 0 32px;
  }
  /* scheda prodotto */
  .scheda__main {
    padding: 96px 0 24px;
  }
  .scheda__grid {
    gap: 32px;
  }
  .altri {
    padding-top: 24px;
  }
  /* contatti */
  .contatti__hero-grid,
  .canali {
    grid-template-columns: 1fr;
  }
  .contatti__hero {
    padding: 112px 0 var(--sec);
  }
  .contatti__hero-grid {
    gap: 32px;
  }
  .contatti__foto {
    padding: 0 0 12% 12%;
  }
  .canali {
    margin-top: 40px;
    gap: 12px;
  }
  .canale {
    padding: 72px 20px 20px;
  }
  .canale__ico {
    left: 20px;
    top: 20px;
    width: 28px;
    height: 28px;
  }
  .contatti__grid {
    gap: 40px;
  }
  .contatti__panel {
    padding: 24px 20px;
  }
  /* su misura */
  .sumisura__panel {
    padding: 20px 20px 32px;
    gap: 32px;
  }
  .sumisura__demo {
    padding: 20px 16px 20px;
  }
  .sumisura__stage {
    aspect-ratio: 4 / 3;
  }
  .sumisura__cta {
    flex-direction: row;
    align-items: center;
    gap: 20px;
  }
  .sumisura__cta .magnet {
    width: 112px;
  }
  .sumisura__cta p {
    font-size: 19px;
  }
  /* footer */
  .footer {
    padding-top: var(--sec);
  }
}
@media (max-width: 760px) {
  /* il pulsante tondo "raccontamela": testo che sta nel cerchio */
  .sumisura__cta .magnet {
    width: 128px;
    font-size: 10px;
    letter-spacing: 0.14em;
    padding-left: 0.14em;
  }
  /* il pannello scuro resta distinto anche quando il fondo diventa scuro */

  .altri__head {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  .flusso__head {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* footer: icone di contatto */
.footer__icons {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}
.footer__icons a {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid var(--line);
  color: var(--fg);
  background: none;
  transition: background-color 0.3s var(--ease), border-color 0.3s var(--ease), color 0.3s var(--ease);
}
.footer__icons a:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--espresso-800);
}
.footer__icons svg {
  width: 20px;
  height: 20px;
}
.footer__icon-txt {
  display: none;
}

@media (max-width: 760px) {
  /* come nasce: stessa sezione bloccata del computer, impaginata per il telefono */
  .passi {
    height: 100svh;
    padding: 80px 0 20px;
  }
  .passi__grid {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    min-height: 0;
  }
  .passi__head {
    display: contents;
  }
  .passi__head h2 {
    order: 1;
    font-size: 30px;
    text-align: left;
  }
  .passi__media {
    order: 2;
    flex: 1 1 auto;
    height: auto;
    min-height: 0;
  }
  .passi__num {
    order: 3;
    font-size: 48px;
  }
  .passi__texts {
    order: 4;
    height: 132px;
    flex: none;
  }
  .passi__step {
    gap: 8px;
  }
  .passi__step h3 {
    font-size: 26px;
  }
  .passi__step p {
    font-size: 15px;
  }
  .passi__bar {
    margin-top: 12px;
  }
}

/* prodotti: filtro per categoria */
.filtri {
  display: grid;
  gap: 12px;
  min-width: 0;
}
.filtri__label {
  display: none;
}
@media (max-width: 760px) {
  .lead.prodotti__lead {
    font-size: 15px;
    line-height: 1.6;
  }
  .filtri__label {
    display: block;
  }
  /* categorie su una riga sola, da scorrere col dito */
  .chips {
    flex-wrap: nowrap;
    overflow-x: auto;
    margin: 0 calc(var(--gutter) * -1);
    padding: 0 var(--gutter) 4px;
    scroll-padding: 0 var(--gutter);
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .chips::-webkit-scrollbar {
    display: none;
  }
  .chip {
    flex: none;
    white-space: nowrap;
  }
}

/* ============ Footer su telefono ============ */
@media (max-width: 760px) {
  .footer {
    padding-top: 56px;
  }
  .footer__top {
    grid-template-columns: 1fr 1fr;
    gap: 40px 16px;
  }
  /* 1. contatto: titolo e tre pulsanti grandi, chiari e leggibili */
  .footer__col--cta {
    order: -1;
    grid-column: 1 / -1;
    justify-items: stretch;
    gap: 12px;
  }
  .footer__col.footer__col--cta > a {
    font-size: 30px;
    line-height: 1.15;
    max-width: 11em;
    margin-bottom: 8px;
  }
  .footer__icons {
    display: grid;
    gap: 8px;
    margin-top: 4px;
  }
  .footer__icons a {
    display: grid;
    grid-template-columns: 44px 1fr;
    align-items: center;
    gap: 16px;
    width: 100%;
    height: auto;
    max-width: none;
    padding: 12px 16px 12px 12px;
    border-radius: 16px;
    text-align: left;
    justify-items: start;
    border: 0;
    background: var(--linen-100);
    color: var(--espresso-800);
    text-decoration: none;
  }
  .footer__icons a:hover,
  .footer__icons a:active {
    background: var(--sand-200);
    color: var(--espresso-800);
  }
  .footer__icons svg {
    width: 44px;
    height: 44px;
    padding: 12px;
    border-radius: 50%;
    background: var(--terracotta-600);
    color: var(--linen-50);
  }
  .footer__icon-txt {
    display: grid;
    gap: 4px;
    min-width: 0;
    font: 400 16px/1.2 var(--sans);
    overflow-wrap: anywhere;
  }
  .footer__icon-txt small {
    font: 500 10px/1 var(--sans);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--taupe-600);
  }
  /* 2. link: due colonne ben separate */
  .footer__col:not(.footer__col--cta) {
    gap: 12px;
    padding-top: 24px;
    border-top: 1px solid var(--line);
  }
  .footer__col .eyebrow {
    margin-bottom: 4px;
  }
  .footer__col:not(.footer__col--cta) a,
  .footer__col:not(.footer__col--cta) button {
    font-size: 18px;
    line-height: 1.2;
  }
  /* 3. il nome */
  .footer__word {
    margin-top: 48px;
    font-size: 31vw;
  }
  /* 4. dati: solo la frase sull'attività, centrata (i contatti sono già nei pulsanti) */
  .footer__dati {
    grid-template-columns: 1fr;
    justify-items: center;
    padding-top: 24px;
    padding-bottom: 20px;
    text-align: center;
  }
  .footer__chi .eyebrow,
  .footer__info {
    display: none;
  }
  .footer__chi p {
    font-size: 13px;
    line-height: 1.6;
    max-width: 30ch;
  }
  .footer__legal {
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding-top: 20px;
    padding-bottom: 96px;
    text-align: center;
  }
  .footer__legal .eyebrow {
    font-size: 9px;
  }
}

/* ══════════════════════════════════════════════════════════════════
   Static version: rules that replace the inline styles of the mockup
   ══════════════════════════════════════════════════════════════════ */

/* Without JavaScript the curtain lifts by itself (with JavaScript solidea.js controls it) */
.curtain {
  animation: curtain-out 0.4s 1.4s forwards;
}
@keyframes curtain-out {
  to {
    visibility: hidden;
    opacity: 0;
  }
}

/* Hero: bag textures inside the letters */
.hero__layer--1 { background-image: url('../img/trame/trama-confetti.webp'); }
.hero__layer--2 { background-image: url('../img/trame/trama-navy.webp'); }
.hero__layer--3 { background-image: url('../img/trame/trama-rainbow.webp'); }
.hero__layer--4 { background-image: url('../img/trame/trama-berry.webp'); }

/* "Su misura": swatches and the same bag recoloured (data-colore set by solidea.js) */
.sumisura__swatches .sw-1 { background: #1c8fc2; }
.sumisura__swatches .sw-2 { background: #e682a3; }
.sumisura__swatches .sw-3 { background: #7fb47c; }
.sumisura__swatches .sw-4 { background: #a985e3; }
.sumisura__swatches .sw-5 { background: #f2925e; }
.sumisura__bag[data-colore='1'] { filter: hue-rotate(140deg) saturate(0.55) brightness(1.35); }
.sumisura__bag[data-colore='2'] { filter: hue-rotate(280deg) saturate(0.35) brightness(1.3); }
.sumisura__bag[data-colore='3'] { filter: hue-rotate(70deg) saturate(0.5) brightness(1.3); }
.sumisura__bag[data-colore='4'] { filter: hue-rotate(175deg) saturate(0.6) brightness(1.45); }
.sumisura__label em { animation: none; }
.sumisura__label em.is-new { animation: sumisura-in 0.6s var(--ease); }

/* Product page: colour variants */
.varianti {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
}
.varianti[hidden] { display: none; }
.varianti__list {
  display: flex;
  gap: 8px;
}
.varianti__dot {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 50%;
  background: none;
  cursor: pointer;
  transition: border-color 0.3s var(--ease);
}
.varianti__dot span {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--card);
  box-shadow: inset 0 0 0 1px rgba(46, 37, 30, 0.15);
}
.varianti__dot.is-on { border-color: var(--fg); }
.varianti__dot.is-off span { opacity: 0.35; }
.varianti__nome {
  font: italic 400 20px/1 var(--italic);
  color: var(--fg);
}
.galleria__thumbs[hidden] { display: none; }
.form__error[hidden] { display: none; }

/* ══════════════════════════════════════════════════════════════════
   Cookie banner of the template (consent.js), in the style of the site.
   Only CSS: markup and logic stay those of the template.
   Fixed colours: the page colours change with the sections, the banner does not.
   ══════════════════════════════════════════════════════════════════ */
.ck-banner,
.ck-panel,
.ck-fab {
  --fg: #2e251e;
  --muted: #6e6352;
  --border: rgba(46, 37, 30, 0.16);
  --surface: #fbf7ef;
  --accent: #2e251e;
  --accent-hover: #1f1913;
  --accent-fg: #fbf7ef;
  --switch-off: #9a8e7b;
  --shadow: var(--shadow-lifted);
  --r-s: 6px;
  --r-l: 12px;
  --font: var(--sans);
  font-family: var(--sans);
}
.ck-banner {
  left: var(--gutter);
  bottom: 24px;
  translate: none;
  z-index: 150;
  width: min(460px, calc(100vw - 2 * var(--gutter)));
  grid-template-columns: 1fr;
  gap: 16px;
  padding: 28px 28px 24px;
  border: 0;
}
.ck-b-txt { padding-right: 32px; }
.ck-t {
  font: 300 30px/1.1 var(--display);
  letter-spacing: 0;
  text-transform: none;
  color: var(--fg);
}
.ck-d {
  margin-top: 8px;
  font: 300 14px/1.6 var(--sans);
  color: var(--muted);
}
.ck-d a,
.ck-link { color: var(--fg); }
.ck-act {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.ck-btn {
  min-height: 48px;
  padding: 16px 8px;
  font: 400 10px/1 var(--sans);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border-radius: 6px;
}
.ck-btn-p { background: var(--espresso-800); color: var(--linen-50); }
.ck-btn-p:hover { background: var(--espresso-900); color: var(--sand-200); }
.ck-btn-s { border-color: var(--border); color: var(--fg); }
.ck-btn-s:hover { border-color: var(--fg); color: var(--fg); }
.ck-more {
  justify-self: center;
  font: 400 10px/1.4 var(--sans);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--fg);
  text-decoration: none;
  background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat;
  padding-bottom: 4px;
}
.ck-more:hover { color: var(--terracotta-600); }
.ck-x {
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 20px;
  color: var(--fg);
}
.ck-x:hover { border-color: var(--fg); background: none; }
.ck-panel {
  left: var(--gutter);
  bottom: 76px;
  z-index: 150;
  width: min(420px, calc(100vw - 2 * var(--gutter)));
  padding: 28px 24px 24px;
  border: 0;
}
.ck-panel .ck-t { padding-right: 40px; }
.ck-list { border-top: 1px solid var(--border); }
.ck-list label {
  font: 400 11px/1 var(--sans);
  letter-spacing: 0.24em;
  text-transform: uppercase;
}
.ck-list span { font-size: 13px; }
.ck-sw { border-color: var(--switch-off); background: var(--sand-300); }
.ck-sw::before { background: var(--linen-50); box-shadow: 0 1px 2px rgba(46, 37, 30, 0.25); }
.ck-sw:checked { background: #c8623a; border-color: #c8623a; }
.ck-sw:checked::before { background: #fff; }
.ck-sw:checked:disabled { opacity: 0.75; }
.ck-link {
  font: 400 10px/1.4 var(--sans);
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
/* fixed button: round, with a cookie icon instead of the word */
.ck-fab {
  left: 14px;
  bottom: 14px;
  z-index: 140;
  width: 40px;
  min-height: 0;
  height: 40px;
  padding: 0;
  border-radius: 50%;
  font-size: 0;
  color: var(--espresso-800);
  background: var(--linen-50);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
  transition: border-color 0.2s, opacity 0.4s var(--ease);
}
.ck-fab::before {
  content: '';
  position: absolute;
  inset: 0;
  margin: auto;
  width: 20px;
  height: 20px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 2a10 10 0 1 0 10 10 4 4 0 0 1-5-5 4 4 0 0 1-5-5'/%3E%3Cpath d='M8.5 8.5v.01'/%3E%3Cpath d='M16 15.5v.01'/%3E%3Cpath d='M12 12v.01'/%3E%3Cpath d='M11 17v.01'/%3E%3Cpath d='M7 14v.01'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 2a10 10 0 1 0 10 10 4 4 0 0 1-5-5 4 4 0 0 1-5-5'/%3E%3Cpath d='M8.5 8.5v.01'/%3E%3Cpath d='M16 15.5v.01'/%3E%3Cpath d='M12 12v.01'/%3E%3Cpath d='M11 17v.01'/%3E%3Cpath d='M7 14v.01'/%3E%3C/svg%3E") center / contain no-repeat;
}
.ck-fab:hover { border-color: var(--espresso-800); color: var(--espresso-800); }
@media (max-width: 760px) {
  .ck-banner {
    left: 12px;
    right: 12px;
    bottom: 12px;
    width: auto;
    padding: 24px 20px 20px;
  }
  .ck-act .ck-btn { font-size: 10px; }
  .ck-fab {
    left: 20px;
    bottom: 20px;
  }
  .ck-panel {
    left: 12px;
    bottom: 72px;
    width: calc(100vw - 24px);
  }
}

/* ══════════════════ Prodotti: testata, barra filtri sticky, ricerca ══════════════════ */
.phead--prodotti {
  padding-bottom: clamp(32px, 4vw, 56px);
}
.prodhead {
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: clamp(32px, 5vw, 96px);
  align-items: end;
}
.prodhead__title {
  display: grid;
  gap: 20px;
  justify-items: start;
}
.prodhead__title .display {
  font-size: clamp(76px, 11vw, 184px);
  line-height: 0.9;
}
.prodhead .prodotti__lead {
  max-width: 44ch;
  justify-self: end;
  margin-bottom: 0.4em;
}
/* the bar sticks under the header; when the header comes back it slides down with it */
.filtrobar {
  position: sticky;
  top: 0;
  z-index: 80; /* under the mobile menu (90) and the header (100) */
  background: var(--bg);
  border-block: 1px solid var(--line);
  transition:
    top 0.7s var(--ease),
    background-color 0.4s var(--ease);
}
html.nav-su .filtrobar {
  top: var(--nav-h, 0px);
}
.filtrobar__inner {
  display: flex;
  align-items: center;
  gap: 24px;
  padding-block: 14px;
}
.filtrobar .filtri {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 1;
  min-width: 0;
}
.filtrobar .filtri__label {
  display: block;
  flex: none;
}
.filtrobar .chips {
  flex-wrap: nowrap;
  overflow-x: auto;
  min-width: 0;
  padding-block: 2px;
  scrollbar-width: none;
}
.filtrobar .chips::-webkit-scrollbar {
  display: none;
}
.filtrobar .chip {
  flex: none;
  white-space: nowrap;
  padding: 10px 14px;
}
.cerca {
  position: relative;
  flex: none;
  width: clamp(220px, 24vw, 320px);
  color: var(--fg);
}
.cerca__icon {
  position: absolute;
  left: 2px;
  top: 50%;
  translate: 0 -50%;
  opacity: 0.6;
  pointer-events: none;
}
.cerca input {
  width: 100%;
  padding: 10px 32px 10px 30px;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  font: 300 16px/1.4 var(--sans);
  color: var(--fg);
  transition: border-color 0.24s var(--ease);
}
.cerca input::placeholder {
  color: var(--muted);
}
.cerca input::-webkit-search-cancel-button {
  display: none;
}
.cerca input:focus,
.cerca input:focus-visible {
  outline: none;
  border-bottom-color: var(--fg);
  box-shadow: 0 1px 0 var(--fg);
}
.cerca__x {
  position: absolute;
  right: 0;
  top: 50%;
  translate: 0 -50%;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--fg);
}
.cerca__x:hover {
  background: var(--line);
}
.cerca__x[hidden] {
  display: none;
}
.pgrid {
  padding-top: clamp(40px, 5vw, 72px);
}
.pgrid__vuoto {
  display: grid;
  gap: 20px;
  justify-items: start;
  padding: 24px 0 48px;
}
.pgrid__vuoto[hidden] {
  display: none;
}
@media (max-width: 900px) {
  .prodhead {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .prodhead .prodotti__lead {
    justify-self: start;
  }
}
@media (max-width: 760px) {
  .filtrobar__inner {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding-block: 10px 12px;
  }
  .cerca {
    width: 100%;
    order: -1;
  }
  .cerca input {
    font-size: 16px; /* 16px: iOS does not zoom on focus */
    padding-block: 8px;
  }
  .filtrobar .filtri {
    gap: 0;
  }
  .filtrobar .filtri__label {
    display: none;
  }
  .filtrobar .chips {
    margin: 0 calc(var(--gutter) * -1);
    padding: 2px var(--gutter);
    scroll-padding: 0 var(--gutter);
  }
  .filtrobar .chip {
    padding: 9px 12px;
  }
}

/* ══════════════════ Chi sono: hero con testo e foto affiancati ══════════════════ */
.chi-hero {
  padding-bottom: clamp(64px, 8vw, 120px);
}
.chi-hero__grid {
  display: grid;
  grid-template-columns: 6fr 5fr;
  gap: clamp(40px, 6vw, 112px);
  align-items: center;
}
.chi-hero__text {
  display: grid;
  gap: 28px;
  align-content: center;
}
.chi-hero .display {
  font-size: clamp(48px, 5.4vw, 96px);
}
.chi-hero__media {
  position: relative;
  padding: 0 0 14% 16%;
}
.chi-hero__big,
.chi-hero__small {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: 12px;
  background: var(--card);
  aspect-ratio: 4 / 5;
}
.chi-hero__big {
  width: min(100%, calc(66svh * 0.8));
  margin-left: auto;
}
.chi-hero__small {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 44%;
  box-shadow: 0 0 0 6px var(--bg);
}
.chi-hero__big img,
.chi-hero__small img {
  position: absolute;
  left: 0;
  top: -8%;
  width: 100%;
  height: 116%;
  object-fit: cover;
}
@media (max-width: 900px) {
  .chi-hero__grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .chi-hero__media {
    padding: 0 0 18% 0;
  }
  .chi-hero__big {
    width: 84%;
  }
  .chi-hero__small {
    width: 46%;
  }
}

/* ══════════════════ Cookie banner più compatto sul telefono ══════════════════ */
@media (max-width: 760px) {
  .ck-banner {
    gap: 12px;
    padding: 18px 16px 14px;
    max-height: calc(100dvh - 24px);
  }
  .ck-b-txt {
    padding-right: 40px;
  }
  .ck-t {
    font-size: 22px;
  }
  .ck-d {
    margin-top: 4px;
    font-size: 13px;
    line-height: 1.5;
  }
  .ck-btn {
    min-height: 42px;
    padding: 12px 6px;
  }
  .ck-x {
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
  }
  .ck-panel {
    padding: 20px 16px 16px;
    bottom: 12px;
    max-height: calc(100dvh - 24px);
  }
  .ck-list label {
    font-size: 10px;
  }
  .ck-list span {
    font-size: 12px;
    line-height: 1.45;
  }
}

/* ══════════════════ Chi sono: colonna "Com’è iniziata" ══════════════════ */
.storia__head {
  gap: 28px;
}
.storia__foto {
  position: relative;
  margin: 0;
  width: min(100%, 380px);
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 12px;
  background: var(--card);
}
.storia__foto img {
  position: absolute;
  left: 0;
  top: -8%;
  width: 100%;
  height: 116%;
  object-fit: cover;
}
.storia__fatti {
  display: grid;
  gap: 0;
  width: min(100%, 380px);
  margin: 0;
  border-top: 1px solid var(--line);
}
.storia__fatti > div {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 16px;
  align-items: baseline;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.storia__fatti dd {
  margin: 0;
  font: 300 15px/1.45 var(--sans);
  color: var(--fg);
}
@media (max-width: 900px) {
  .storia__head {
    grid-template-columns: 1fr;
  }
  .storia__foto {
    width: 100%;
    aspect-ratio: 4 / 3;
  }
  .storia__fatti {
    width: 100%;
  }
}

/* ══════════════════ Prodotti: menu a tendina "Categoria" e "Filtra per" ══════════════════ */
.filtrobar__inner {
  position: relative;
}
.filtrobar__tools {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 0;
}
.filtrobar__count {
  margin: 0 0 0 8px;
  font: 400 11px/1 var(--sans);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}
.tendina {
  position: relative;
}
.tendina__btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  font: 400 11px/1 var(--sans);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--fg);
  cursor: pointer;
  transition:
    border-color 0.24s var(--ease),
    background-color 0.24s var(--ease),
    color 0.24s var(--ease);
}
.tendina__btn:hover,
.tendina.is-open .tendina__btn {
  border-color: var(--fg);
}
.tendina__btn:focus-visible {
  outline: 2px solid var(--terracotta-600);
  outline-offset: 3px;
}
.tendina__chev {
  transition: rotate 0.3s var(--ease);
}
.tendina.is-open .tendina__chev {
  rotate: 180deg;
}
.tendina__n {
  display: inline-grid;
  place-items: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: #c8623a;
  color: #fff;
  font-size: 10px;
  letter-spacing: 0;
}
.tendina__n[hidden] {
  display: none;
}
.tendina__panel {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  z-index: 5;
  display: grid;
  gap: 20px;
  width: 300px;
  max-height: min(70svh, 520px);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 20px;
  border-radius: 12px;
  background: var(--linen-50);
  box-shadow: var(--shadow-lifted);
}
.tendina__panel[hidden] {
  display: none;
}
.tendina__group {
  margin: 0;
  padding: 0;
  border: 0;
  min-width: 0;
}
.tendina__group legend.eyebrow {
  margin-bottom: 8px;
}
.tendina__list {
  display: grid;
}
.tendina__sub {
  margin: 14px 0 4px;
}
.opzione {
  display: grid;
  grid-template-columns: 18px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 9px 4px;
  border-radius: 6px;
  font: 300 15px/1.3 var(--sans);
  color: var(--fg);
  cursor: pointer;
}
.opzione:hover {
  background: rgba(46, 37, 30, 0.05);
}
.opzione input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}
.opzione__box {
  width: 18px;
  height: 18px;
  border: 1px solid var(--switch-off, #9a8e7b);
  border-radius: 4px;
  background: transparent;
  transition:
    background-color 0.2s var(--ease),
    border-color 0.2s var(--ease),
    box-shadow 0.2s var(--ease);
}
.opzione input[type='radio'] + .opzione__box {
  border-radius: 50%;
}
.opzione input:checked + .opzione__box {
  border-color: #c8623a;
  background: #c8623a
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 5 5 9-10'/%3E%3C/svg%3E")
    center / 12px no-repeat;
}
.opzione input[type='radio']:checked + .opzione__box {
  background: #c8623a;
  box-shadow: inset 0 0 0 4px var(--linen-50);
}
.opzione input:focus-visible + .opzione__box {
  outline: 2px solid var(--terracotta-600);
  outline-offset: 2px;
}
.opzione__n {
  font-size: 12px;
  color: var(--muted);
}
.tendina__reset {
  justify-self: start;
  padding: 0 0 4px;
  border: 0;
  background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat;
  font: 400 10px/1.4 var(--sans);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--fg);
  cursor: pointer;
}
.tendina__reset:hover {
  color: var(--terracotta-600);
}
@media (max-width: 760px) {
  .filtrobar__tools {
    gap: 8px;
  }
  .tendina {
    position: static;
    flex: 1;
  }
  .tendina__btn {
    width: 100%;
    justify-content: center;
    min-height: 42px;
    padding: 0 12px;
  }
  .tendina__panel {
    left: var(--gutter);
    right: var(--gutter);
    width: auto;
    top: calc(100% + 6px);
    max-height: 60svh;
  }
  .filtrobar__count {
    display: none;
  }
}

/* ══════════════════ Footer: il nome non deve essere tagliato ══════════════════
   le maschere dell'animazione sono alte quanto la riga (0.78em): si allargano
   sopra e sotto senza spostare l'impaginazione */
.footer__word .footer__mask {
  padding: 0.16em 0.02em 0.1em;
  margin: -0.16em -0.02em -0.1em;
}

/* ══════════════════ Sul mattone: testi, bordi e icone bianchi ══════════════════ */
.btn--accent,
.btn--accent:hover {
  color: #fff;
}
.header.is-back .header__link,
.header.is-back .header__menu,
.header.is-back .lockup__wm,
.header.is-back .sun,
.header.is-back .lockup__hm {
  color: #fff;
}
.header.is-back .header__menu {
  border-color: rgba(255, 255, 255, 0.55);
}
.header.is-back .header__link::after {
  background: #fff;
}
.menu {
  color: #fff;
}
.menu__foot a {
  border-color: rgba(255, 255, 255, 0.55);
  color: #fff;
}
.menu__foot a:active {
  background: #fff;
  border-color: #fff;
  color: var(--terracotta-600);
}
.sumisura__panel {
  --fg: #fff;
  --muted: rgba(255, 255, 255, 0.86);
  --line: rgba(255, 255, 255, 0.34);
  --accent: #fff;
}
@media (max-width: 760px) {
  .footer__icons svg {
    color: #fff;
  }
}

/* barra filtri dei prodotti: color mattone come la barra di navigazione */
.filtrobar {
  --fg: #fff;
  --muted: rgba(255, 255, 255, 0.82);
  --line: rgba(255, 255, 255, 0.5);
  background: var(--terracotta-600);
  border-block: 0;
  color: #fff;
}
.filtrobar .tendina__btn {
  border-color: rgba(255, 255, 255, 0.6);
  color: #fff;
}
.filtrobar .tendina__btn:hover,
.filtrobar .tendina.is-open .tendina__btn {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.12);
}
.filtrobar .tendina__btn:focus-visible,
.filtrobar .cerca input:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}
.filtrobar .tendina__n {
  background: #fff;
  color: var(--terracotta-600);
}
.filtrobar .filtrobar__count {
  color: rgba(255, 255, 255, 0.85);
}
.filtrobar .cerca,
.filtrobar .cerca input,
.filtrobar .cerca__x {
  color: #fff;
}
.filtrobar .cerca__icon {
  opacity: 1;
}
.filtrobar .cerca input {
  border-bottom-color: rgba(255, 255, 255, 0.6);
}
.filtrobar .cerca input::placeholder {
  color: rgba(255, 255, 255, 0.8);
}
.filtrobar .cerca input:focus {
  border-bottom-color: #fff;
  box-shadow: 0 1px 0 #fff;
}
.filtrobar .cerca__x:hover {
  background: rgba(255, 255, 255, 0.16);
}
/* the drop-down panels stay light, with the normal colours */
.filtrobar .tendina__panel {
  --fg: #2e251e;
  --muted: #6e6352;
  --line: rgba(46, 37, 30, 0.16);
  color: var(--fg);
}
/* once the brick veils have come down, the header itself turns brick:
   no light hairline at its bottom edge when the filter bar sits under it */
.header.is-back {
  background-color: var(--terracotta-600);
  transition:
    transform 0.7s var(--ease),
    background-color 0s linear 0.9s,
    padding 0.4s var(--ease),
    box-shadow 0.4s var(--ease);
}
.header::after {
  bottom: 1px;
}
.header.is-open .lockup__wm,
.header.is-open .header__menu,
.header.is-open .sun,
.header.is-open .lockup__hm {
  color: #fff;
}
.header.is-open .header__menu {
  border-color: rgba(255, 255, 255, 0.55);
}
