/* ==========================================================================
   Be Art Pantelleria — design system
   Palette: avorio/sabbia (60) · nero lava (30) · colori del logo come
   "colour story" + magenta riservato alle azioni (10).
   ========================================================================== */

@font-face { font-family: 'DM Serif Display'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/dm-serif-display.woff2') format('woff2'); }
@font-face { font-family: 'DM Serif Display'; font-style: italic; font-weight: 400; font-display: swap; src: url('../fonts/dm-serif-display-italic.woff2') format('woff2'); }
@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 400 700; font-display: swap; src: url('../fonts/manrope.woff2') format('woff2'); }

:root {
  /* brand — dai colori del logo */
  --magenta: #D9237A;  --magenta-dark: #B81A66;  --magenta-soft: #F7DCE8;
  --sole: #F0B323;     --cappero: #138F80;       --cappero-dark: #0E7468;
  --zibibbo: #6E2F82;  --tramonto: #E5731F;
  --brand: var(--magenta-dark);  --brand-dark: #9A1555;  --accent: var(--magenta);
  /* neutri */
  --ink: #1B1419;  --ink-2: #2A2128;  --text: #2F282D;  --muted: #5F535A;  --muted-dark: #A89AA1;
  --bg: #F5F0E8;   --bg-alt: #EDE4D8; --paper: #FBF8F3;  --line: #DDD2C4; --line-dark: #3A2F37;
  /* tipografia */
  --font-display: 'DM Serif Display', Georgia, 'Times New Roman', serif;
  --font-body: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  /* sistema */
  --shadow-sm: 0 2px 10px rgba(27,20,25,.06);
  --shadow-md: 0 14px 40px rgba(27,20,25,.10);
  --shadow-lg: 0 30px 80px rgba(27,20,25,.18);
  --radius: 4px; --radius-lg: 10px;
  --container: 1320px; --nav-h: 84px;
  --ease: cubic-bezier(.22,1,.36,1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 100px; -webkit-text-size-adjust: 100%; overflow-x: hidden; }
body { margin: 0; font-family: var(--font-body); font-size: 1.0625rem; line-height: 1.72; color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 1.1em; }
ul { margin: 0; padding: 0; list-style: none; }
button { font: inherit; }
:focus-visible { outline: 2px solid var(--magenta); outline-offset: 3px; }
::selection { background: var(--magenta); color: #fff; }

h1, h2, h3, h4 { font-family: var(--font-display); color: var(--ink); font-weight: 400; line-height: 1.1; margin: 0 0 .5em; letter-spacing: -.005em; }
h1 { font-size: clamp(2.5rem, 6.2vw, 5.4rem); }
h2 { font-size: clamp(2rem, 4vw, 3.4rem); }
h3 { font-size: clamp(1.3rem, 1.8vw, 1.6rem); }
h4 { font-size: 1rem; }
em, .it { font-style: italic; }

.container { width: min(100% - 48px, var(--container)); margin-inline: auto; }
.container-narrow { width: min(100% - 48px, 820px); margin-inline: auto; }
.section { padding: clamp(80px, 11vw, 150px) 0; position: relative; }
.section-tight { padding: clamp(56px, 7vw, 96px) 0; }
.section-alt { background: var(--bg-alt); }
.section-paper { background: var(--paper); }
.section-dark { background: var(--ink); color: #D9CFD5; }
.section-dark h2, .section-dark h3, .section-dark h4 { color: var(--bg); }

.eyebrow { display: inline-flex; align-items: center; gap: 12px; font-family: var(--font-body); font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 22px; }
.eyebrow::before { content: ""; width: 34px; height: 1px; background: currentColor; }
.section-dark .eyebrow { color: var(--muted-dark); }
.lead { font-size: clamp(1.06rem, 1.4vw, 1.22rem); line-height: 1.75; color: var(--text); max-width: 58ch; }
.section-dark .lead { color: #CFC4CA; }
.section-head { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px 80px; align-items: end; margin-bottom: clamp(44px, 6vw, 80px); }
.section-head p { margin: 0; color: var(--muted); max-width: 46ch; }
.section-dark .section-head p { color: var(--muted-dark); }
.section-head.center { grid-template-columns: 1fr; text-align: center; justify-items: center; }
.num { font-family: var(--font-display); font-style: italic; color: var(--magenta-dark); }

/* dot del logo */
.dots { display: inline-flex; gap: 6px; vertical-align: middle; }
.dots i { width: 8px; height: 8px; border-radius: 50%; display: block; }
.dots i:nth-child(1) { background: var(--magenta); } .dots i:nth-child(2) { background: var(--sole); }
.dots i:nth-child(3) { background: var(--cappero); } .dots i:nth-child(4) { background: var(--zibibbo); }
.dots i:nth-child(5) { background: var(--tramonto); }

/* ---------- bottoni ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 16px 30px; font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; border-radius: 999px; border: 1px solid transparent; cursor: pointer; transition: background .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease), transform .35s var(--ease); white-space: nowrap; }
.btn svg { width: 16px; height: 16px; flex: none; }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--ink); }
.btn-dark { background: var(--ink); color: var(--bg); }
.btn-dark:hover { background: var(--brand); }
.btn-outline { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-outline:hover { background: var(--ink); color: var(--bg); }
.section-dark .btn-outline, .on-dark .btn-outline { border-color: rgba(245,240,232,.5); color: var(--bg); }
.section-dark .btn-outline:hover, .on-dark .btn-outline:hover { background: var(--bg); color: var(--ink); }
.btn-light { background: var(--bg); color: var(--ink); }
.btn-light:hover { background: var(--magenta); color: #fff; }
.link-arrow { display: inline-flex; align-items: center; gap: 10px; font-size: .76rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--ink); padding-bottom: 6px; border-bottom: 1px solid currentColor; transition: gap .3s var(--ease), color .3s; }
.link-arrow svg { width: 16px; height: 16px; flex: none; }
.link-arrow:hover { gap: 16px; color: var(--brand); }
.section-dark .link-arrow { color: var(--bg); }

/* ---------- topbar ---------- */
.topbar { background: var(--ink); color: #E6DDE2; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; text-align: center; padding: 10px 16px; }
.topbar a { color: var(--sole); border-bottom: 1px solid rgba(240,179,35,.4); }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 90; background: rgba(245,240,232,.86); -webkit-backdrop-filter: saturate(140%) blur(14px); backdrop-filter: saturate(140%) blur(14px); border-bottom: 1px solid transparent; transition: border-color .3s, background .3s; }
.site-header.scrolled { border-bottom-color: var(--line); background: rgba(245,240,232,.94); }
.nav-inner { height: var(--nav-h); display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.nav-brand img { width: 128px; height: auto; }
.nav-menu { display: flex; align-items: center; gap: clamp(18px, 2.6vw, 38px); }
.nav-menu a { font-size: .76rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--ink); position: relative; padding: 6px 0; }
.nav-menu a:not(.btn)::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--magenta); transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease); }
.nav-menu a:not(.btn):hover::after, .nav-menu a[aria-current="page"]::after { transform: scaleX(1); }
.nav-menu .btn { padding: 12px 22px; color: #fff; }
.nav-menu .btn::after { display: none; }

/* ---------- menu mobile (da templates/menu.css) ---------- */
body.is-locked { position: fixed; width: 100%; overflow: hidden; top: var(--scroll-lock-top, 0); overflow-anchor: none; }
.nav-overlay { display: none; }
/* col body bloccato (position:fixed + top negativo) lo sticky non lavora più: l'header va fissato, altrimenti logo e X restano fuori schermo */
body.is-locked .site-header { position: fixed; top: 0; left: 0; right: 0; }
.site-header.has-menu-open { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--bg); }
.nav-toggle { display: none; width: 48px; height: 48px; border: 1px solid var(--line); border-radius: 50%; background: transparent; cursor: pointer; align-items: center; justify-content: center; flex-direction: column; gap: 5px; }
.nav-toggle span { display: block; width: 18px; height: 1.5px; background: var(--ink); transition: transform .3s var(--ease), opacity .25s var(--ease); }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }
.nav-menu-foot { display: none; }

@media (max-width: 900px) {
  .nav-toggle { display: flex; position: relative; z-index: 95; background: var(--bg); } /* sopra il pannello: resta la X per chiudere */
  .nav-overlay { display: block; position: fixed; inset: 0; z-index: 89; background: rgba(27,20,25,.5); border: 0; padding: 0; cursor: pointer; opacity: 0; visibility: hidden; transition: opacity .38s var(--ease), visibility 0s linear .38s; }
  .nav-overlay.is-open { opacity: 1; visibility: visible; transition: opacity .38s var(--ease), visibility 0s linear 0s; }
  .nav-menu { position: fixed; inset: 0 0 0 auto; width: min(88vw, 400px); background: var(--bg); flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 0; padding: 92px 30px 32px; box-shadow: var(--shadow-lg); overflow-y: auto; overscroll-behavior: contain; /* chiuso: ritagliato a destra con clip-path invece di translateX(100%), così il pannello non esce mai dallo schermo e non allarga il viewport su mobile */ clip-path: inset(0 0 0 100%); visibility: hidden; transition: clip-path .5s var(--ease), visibility 0s linear .5s; z-index: 91; }
  .nav-menu.is-open { clip-path: inset(0); visibility: visible; transition: clip-path .5s var(--ease), visibility 0s linear 0s; }
  .nav-menu li { border-bottom: 1px solid var(--line); }
  .nav-menu li.nav-cta { border: 0; margin-top: 22px; }
  .nav-menu a:not(.btn) { display: block; padding: 14px 2px; font-family: var(--font-display); font-size: 1.7rem; letter-spacing: 0; text-transform: none; font-weight: 500; }
  .nav-menu a:not(.btn)::after { display: none; }
  .nav-menu a[aria-current="page"] { color: var(--brand); font-style: italic; }
  .nav-menu .btn { width: 100%; padding: 16px; }
  .nav-menu-foot { display: block; margin-top: 18px; line-height: 1.5; font-size: .85rem; color: var(--muted); border: 0 !important; }
  .nav-menu-foot a { font-family: var(--font-body) !important; font-size: .9rem !important; padding: 4px 0 !important; text-transform: none !important; }
}

/* ---------- hero home ---------- */
.hero { position: relative; padding: clamp(40px, 6vw, 80px) 0 clamp(70px, 9vw, 120px); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(30px, 5vw, 80px); align-items: center; }
.hero h1 { margin-bottom: 28px; }
.hero h1 .h1-big { display: block; font-size: clamp(3.2rem, 7.6vw, 6.8rem); line-height: 1; letter-spacing: -.015em; }
.hero h1 .h1-big em { color: var(--brand); }
.hero h1 .h1-sub { display: block; margin-top: 26px; font-family: var(--font-body); font-size: clamp(1rem, 1.35vw, 1.15rem); font-weight: 500; letter-spacing: .02em; line-height: 1.6; color: var(--text); max-width: 44ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.hero-meta { display: flex; gap: 34px; margin-top: 52px; padding-top: 28px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.hero-meta div { font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.hero-meta strong { display: block; font-family: var(--font-display); font-size: 1.9rem; font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--ink); line-height: 1.1; margin-bottom: 4px; }

.hero-media { display: grid; grid-template-columns: 1.55fr 1fr; gap: 16px; align-items: end; }
.hero-media figure { margin: 0; }
.hero-media .hm-img { overflow: hidden; border-radius: var(--radius); background: var(--bg-alt); }
.hero-media .hm-main .hm-img { aspect-ratio: 4 / 5; }
.hero-media .hm-side .hm-img { aspect-ratio: 3 / 4; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-media figcaption { display: flex; flex-direction: column; gap: 2px; margin-top: 12px; font-size: .88rem; line-height: 1.4; color: var(--muted); }
.hero-media figcaption b { font-family: var(--font-display); font-weight: 400; font-size: 1.1rem; color: var(--ink); }

/* ---------- marquee ---------- */
.marquee { background: var(--ink); color: var(--bg); overflow: hidden; padding: 22px 0; border-block: 1px solid var(--line-dark); }
.marquee-track { display: flex; width: max-content; animation: marquee 38s linear infinite; }
.marquee span { font-family: var(--font-display); font-style: italic; font-size: clamp(1.4rem, 2.6vw, 2.2rem); white-space: nowrap; padding: 0 28px; display: inline-flex; align-items: center; gap: 56px; }
.marquee span::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--c, var(--magenta)); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- collezioni (tiles) ---------- */
.tiles { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(14px, 1.6vw, 24px); }
.tile { position: relative; overflow: hidden; border-radius: var(--radius); background: var(--bg-alt); display: block; isolation: isolate; }
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.tile:hover img { transform: scale(1.06); }
.tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(27,20,25,.72)); z-index: 1; }
.tile-body { position: absolute; left: 0; right: 0; bottom: 0; padding: clamp(18px, 2.2vw, 30px); z-index: 2; color: var(--bg); display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; }
.tile-body small { display: block; font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; opacity: .85; margin-bottom: 6px; }
.tile-body h3 { color: var(--bg); margin: 0; font-size: clamp(1.5rem, 2.4vw, 2.3rem); }
.tile-arrow { width: 46px; height: 46px; border-radius: 50%; border: 1px solid rgba(245,240,232,.6); display: grid; place-items: center; flex: none; transition: background .3s, border-color .3s; }
.tile-arrow svg { width: 16px; height: 16px; }
.tile:hover .tile-arrow { background: var(--magenta); border-color: var(--magenta); }
.t-a { grid-column: span 7; aspect-ratio: 7 / 6; } .t-b { grid-column: span 5; aspect-ratio: 5 / 6; }
.t-c { grid-column: span 4; aspect-ratio: 4 / 5; } .t-d { grid-column: span 4; aspect-ratio: 4 / 5; } .t-e { grid-column: span 4; aspect-ratio: 4 / 5; }

/* ---------- colour story ---------- */
.story { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 6vw, 100px); align-items: center; }
.story-media { position: relative; aspect-ratio: 3 / 4; border-radius: var(--radius); overflow: hidden; background: var(--bg-alt); box-shadow: var(--shadow-lg); }
.story-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.04); transition: opacity .7s var(--ease), transform 1.1s var(--ease); }
.story-media img.is-active { opacity: 1; transform: none; }
.story-index { position: absolute; left: 20px; bottom: 18px; z-index: 2; font-family: var(--font-display); font-style: italic; font-size: 1.1rem; color: var(--bg); text-shadow: 0 1px 12px rgba(0,0,0,.45); }
.swatches { display: flex; flex-wrap: wrap; gap: 14px; margin: 34px 0 18px; }
.swatch { width: 54px; height: 54px; border-radius: 50%; border: 1px solid var(--line); background: transparent; padding: 5px; cursor: pointer; transition: border-color .3s, transform .3s var(--ease); }
.swatch span { display: block; width: 100%; height: 100%; border-radius: 50%; background: var(--sw); box-shadow: inset 0 0 0 1px rgba(0,0,0,.08); }
.swatch:hover { transform: translateY(-3px); }
.swatch[aria-pressed="true"] { border-color: var(--ink); border-width: 1.5px; }
.swatch-name { font-family: var(--font-display); font-size: 1.6rem; color: var(--ink); min-height: 1.4em; margin-bottom: 24px; }
.specs { border-top: 1px solid var(--line); margin: 8px 0 34px; }
.specs li { display: flex; justify-content: space-between; gap: 20px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: .92rem; }
.specs li span:first-child { font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); padding-top: 3px; }
.specs li span:last-child { text-align: right; color: var(--ink); }

/* ---------- rail prodotti ---------- */
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: clamp(240px, 26vw, 340px); gap: clamp(16px, 2vw, 26px); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 26px; scrollbar-width: thin; scrollbar-color: var(--ink) var(--line); }
.rail::-webkit-scrollbar { height: 3px; } .rail::-webkit-scrollbar-track { background: var(--line); } .rail::-webkit-scrollbar-thumb { background: var(--ink); }
.rail > * { scroll-snap-align: start; }
.rail-nav { display: flex; gap: 10px; }
.rail-btn { width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--ink); background: transparent; color: var(--ink); cursor: pointer; display: grid; place-items: center; transition: background .3s, color .3s; }
.rail-btn:hover { background: var(--ink); color: var(--bg); }
.rail-btn svg { width: 18px; height: 18px; }
.section-dark .rail-btn { border-color: var(--bg); color: var(--bg); }
.section-dark .rail-btn:hover { background: var(--bg); color: var(--ink); }

.product { display: block; }
.product-media { position: relative; aspect-ratio: 3 / 4; overflow: hidden; border-radius: var(--radius); background: var(--bg-alt); margin-bottom: 18px; }
.product-media.sq { aspect-ratio: 4 / 5; } /* stessa proporzione per tutte le schede: griglie ordinate */
.product-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.product:hover .product-media img { transform: scale(1.05); }
.product-flag { position: absolute; top: 14px; left: 14px; background: var(--paper); color: var(--ink); font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; padding: 7px 11px; border-radius: 999px; }
.product-ask { position: absolute; left: 14px; right: 14px; bottom: 14px; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 13px; background: var(--ink); color: var(--bg); border-radius: 999px; font-size: .7rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; transform: translateY(calc(100% + 20px)); transition: transform .5s var(--ease), background .3s; }
.product-ask svg { width: 15px; height: 15px; }
.product:hover .product-ask, .product:focus-within .product-ask { transform: none; }
.product-ask:hover { background: var(--brand); }
.product h3 { font-size: 1.3rem; margin: 0 0 4px; }
.product p { font-size: .88rem; color: var(--muted); margin: 0; }
.section-dark .product p { color: var(--muted-dark); }
.product-colors { display: flex; gap: 6px; margin-top: 10px; }
.product-colors i { width: 12px; height: 12px; border-radius: 50%; background: var(--sw); box-shadow: inset 0 0 0 1px rgba(0,0,0,.12); }
@media (hover: none) { .product-ask { transform: none; position: static; margin-top: 12px; } .product-media { margin-bottom: 0; } .product .product-ask { margin-bottom: 16px; } }

.grid-products { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(18px, 2vw, 30px) clamp(16px, 1.8vw, 26px); }
.grid-products.cols-3 { grid-template-columns: repeat(3, 1fr); }

/* ---------- manifesto ---------- */
.manifesto { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(40px, 7vw, 110px); align-items: center; }
.manifesto-media { position: relative; }
.manifesto-media img { border-radius: var(--radius); width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.manifesto-media .stamp { margin: 14px 0 0; font-family: var(--font-display); font-style: italic; font-size: 1.15rem; color: var(--sole); }
blockquote.quote { margin: 0 0 34px; font-family: var(--font-display); font-weight: 400; font-size: clamp(1.9rem, 3.8vw, 3.4rem); line-height: 1.14; color: var(--bg); letter-spacing: -.01em; }
blockquote.quote em { color: var(--sole); }
.signature { display: flex; align-items: center; gap: 16px; font-size: .78rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted-dark); margin-bottom: 40px; }
.signature::before { content: ""; width: 44px; height: 1px; background: currentColor; }
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; border-top: 1px solid var(--line-dark); padding-top: 34px; }
.values h3 { font-size: 1.25rem; margin-bottom: 8px; }
.values p { font-size: .9rem; color: var(--muted-dark); margin: 0; }
.values .v-ico { display: block; width: 34px; height: 34px; margin-bottom: 14px; color: var(--sole); }
.values .v-ico svg { width: 100%; height: 100%; }

/* ---------- editorial split (ricami) ---------- */
.look-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(14px, 1.6vw, 24px); }
.look-row figure { margin: 0; }
.look-row .lr-img { aspect-ratio: 4 / 5; overflow: hidden; border-radius: var(--radius); background: var(--bg-alt); }
.look-row img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.look-row figure:hover img { transform: scale(1.04); }
figcaption, .cap { font-size: .9rem; color: var(--muted); margin-top: 12px; }

/* ---------- natale ---------- */
.xmas { background: radial-gradient(120% 80% at 80% 0%, #3A1830 0%, var(--ink) 55%); color: #E2D8DE; overflow: hidden; }
.xmas h2, .xmas h3 { color: var(--bg); }
.xmas h2 em { color: var(--sole); }
.xmas .lead { color: #CFC4CA; }
.xmas .eyebrow { color: var(--muted-dark); }
.xmas .btn-outline { border-color: rgba(245,240,232,.5); color: var(--bg); }
.xmas .btn-outline:hover { background: var(--bg); color: var(--ink); }
.xmas-grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(36px, 6vw, 90px); align-items: center; }
.xmas-photos { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.xmas-photos figure { margin: 0; border-radius: var(--radius); overflow: hidden; aspect-ratio: 3 / 4; }
.xmas-photos img { width: 100%; height: 100%; object-fit: cover; }
.xmas-lines { display: grid; gap: 0; margin: 30px 0 38px; border-top: 1px solid var(--line-dark); }
.xmas-lines > div { display: grid; grid-template-columns: 60px 1fr; gap: 14px; padding: 20px 0; border-bottom: 1px solid var(--line-dark); }
.xmas-lines b { font-family: var(--font-display); font-style: italic; font-weight: 400; color: var(--sole); font-size: 1.4rem; }
.xmas-lines h3 { font-size: 1.3rem; margin: 0 0 4px; }
.xmas-lines p { margin: 0; font-size: .9rem; color: var(--muted-dark); }
.snow { position: absolute; inset: 0; pointer-events: none; background-image: radial-gradient(rgba(255,255,255,.5) 1px, transparent 1.5px); background-size: 46px 46px; opacity: .08; }

/* ---------- macramè band ---------- */
.band { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(36px, 6vw, 90px); align-items: center; }
.band-media { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3.4; }
.band-media img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- lookbook masonry ---------- */
.masonry { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(12px, 1.4vw, 20px); }
.masonry figure, .masonry a { margin: 0; display: block; aspect-ratio: 4 / 5; border-radius: var(--radius); overflow: hidden; position: relative; background: var(--bg-alt); cursor: zoom-in; }
.masonry img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease); }
.masonry a:hover img { transform: scale(1.04); }
.masonry a .m-cap { position: absolute; left: 12px; bottom: 12px; background: rgba(251,248,243,.94); color: var(--ink); font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; padding: 7px 11px; border-radius: 999px; opacity: 0; transform: translateY(8px); transition: opacity .35s, transform .35s var(--ease); }
.masonry a:hover .m-cap, .masonry a:focus-visible .m-cap { opacity: 1; transform: none; }
.filters { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 44px; }
.filter { border: 1px solid var(--line); background: transparent; color: var(--ink); border-radius: 999px; padding: 10px 20px; font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; cursor: pointer; transition: all .3s; }
.filter:hover { border-color: var(--ink); }
.filter[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.masonry .is-hidden { display: none; }

/* lightbox */
.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(20,14,18,.94); display: none; align-items: center; justify-content: center; padding: 60px 70px; }
.lightbox.is-open { display: flex; }
.lightbox img { max-height: 84vh; max-width: 100%; width: auto; border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.lightbox p { position: absolute; bottom: 22px; left: 0; right: 0; text-align: center; color: #E2D8DE; font-family: var(--font-display); font-style: italic; font-size: 1.15rem; margin: 0; padding: 0 20px; }
.lb-btn { position: absolute; width: 52px; height: 52px; border-radius: 50%; border: 1px solid rgba(245,240,232,.4); background: transparent; color: var(--bg); cursor: pointer; display: grid; place-items: center; }
.lb-btn:hover { background: var(--bg); color: var(--ink); }
.lb-btn svg { width: 18px; height: 18px; }
.lb-close { top: 20px; right: 20px; } .lb-prev { left: 14px; top: 50%; transform: translateY(-50%); } .lb-next { right: 14px; top: 50%; transform: translateY(-50%); }

/* ---------- visita lo store ---------- */
.visit { display: grid; grid-template-columns: 1fr 1fr; border-radius: var(--radius-lg); overflow: hidden; background: var(--paper); box-shadow: var(--shadow-md); }
.visit-media { position: relative; min-height: 420px; }
.visit-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.visit-body { padding: clamp(34px, 5vw, 70px); }
.info-list { margin: 26px 0 34px; border-top: 1px solid var(--line); }
.info-list li { display: grid; grid-template-columns: 30px 1fr; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); align-items: start; }
.info-list svg { width: 20px; height: 20px; color: var(--brand); margin-top: 3px; }
.info-list small { display: block; font-size: .78rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.info-list a, .info-list span { color: var(--ink); font-weight: 500; }
.info-list a:hover { color: var(--brand); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- blog cards ---------- */
.posts { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(22px, 3vw, 44px); }
.post-card { display: grid; grid-template-columns: .9fr 1.1fr; gap: 26px; align-items: center; }
.post-card .pc-media { aspect-ratio: 4 / 5; overflow: hidden; border-radius: var(--radius); }
.post-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease); }
.post-card:hover img { transform: scale(1.05); }
.post-card small { font-size: .78rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.post-card h3 { margin: 10px 0 12px; font-size: clamp(1.35rem, 2vw, 1.8rem); }
.post-card p { font-size: .92rem; color: var(--muted); }

/* ---------- CTA banner ---------- */
.cta-banner { position: relative; padding: clamp(80px, 11vw, 150px) 0; background: var(--magenta-dark); color: #fff; overflow: hidden; text-align: center; }
.cta-banner::before { content: ""; position: absolute; width: 720px; height: 720px; border-radius: 50%; border: 1px solid rgba(255,255,255,.16); left: -240px; top: -340px; }
.cta-banner::after { content: ""; position: absolute; width: 520px; height: 520px; border-radius: 50%; background: rgba(240,179,35,.16); right: -160px; bottom: -280px; }
.cta-banner .container { position: relative; z-index: 1; }
.cta-banner h2 { color: #fff; max-width: 16ch; margin-inline: auto; }
.cta-banner h2 em { color: var(--sole); }
.cta-banner p { color: rgba(255,255,255,.86); max-width: 52ch; margin: 0 auto 36px; }
.cta-banner .btn-row { justify-content: center; }
.cta-banner .btn-outline { border-color: rgba(255,255,255,.6); color: #fff; }
.cta-banner .btn-outline:hover { background: #fff; color: var(--ink); }

/* ---------- page hero (interne) ---------- */
.page-hero { padding: clamp(56px, 8vw, 110px) 0 clamp(50px, 6vw, 80px); border-bottom: 1px solid var(--line); position: relative; overflow: hidden; }
.page-hero h1 { font-size: clamp(2.4rem, 5.6vw, 4.8rem); line-height: 1.04; max-width: 14ch; margin-bottom: 24px; }
.page-hero h1 em { color: var(--brand); }
.page-hero .lead { margin: 0; }
.page-hero-grid { display: grid; grid-template-columns: 1.3fr .7fr; gap: 50px; align-items: end; }
.page-hero-img { aspect-ratio: 4 / 5; border-radius: var(--radius); overflow: hidden; max-width: 340px; justify-self: end; width: 100%; }
.page-hero-img img { width: 100%; height: 100%; object-fit: cover; }
.breadcrumb { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; font-size: .7rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); margin-bottom: 34px; }
.breadcrumb a:hover { color: var(--brand); }
.breadcrumb li + li::before { content: "/"; margin-right: 10px; opacity: .5; }

/* indice collezioni */
.cat-nav { position: sticky; top: var(--nav-h); z-index: 40; background: rgba(245,240,232,.94); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.cat-nav ul { display: flex; gap: 30px; overflow-x: auto; padding: 16px 0; scrollbar-width: none; }
.cat-nav ul::-webkit-scrollbar { display: none; }
.cat-nav a { white-space: nowrap; font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); transition: color .3s; }
.cat-nav a:hover { color: var(--ink); }
.cat-head { display: grid; grid-template-columns: 80px 1fr 1fr; gap: 20px 40px; align-items: end; margin-bottom: 50px; padding-bottom: 30px; border-bottom: 1px solid var(--line); }
.cat-head .num { font-size: 2.6rem; line-height: 1; }
.cat-head h2 { margin: 0; }
.cat-head p { margin: 0; color: var(--muted); }
.section-dark .cat-head { border-color: var(--line-dark); }

/* chi siamo */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 6vw, 100px); align-items: center; }
.split-media { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 5; }
.split-media img { width: 100%; height: 100%; object-fit: cover; }
.split.reverse .split-media { order: 2; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 40px); }
.feature { padding: 38px 32px; background: var(--paper); border-radius: var(--radius); border-top: 3px solid var(--c, var(--magenta)); }
.feature svg { width: 34px; height: 34px; color: var(--c, var(--magenta)); margin-bottom: 20px; }
.feature h3 { font-size: 1.45rem; }
.feature p { margin: 0; color: var(--muted); font-size: .95rem; }
.founders { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px; margin-top: 40px; }
.founder { border-top: 1px solid var(--line); padding-top: 22px; }
.founder h3 { margin-bottom: 6px; }
.founder small { font-size: .7rem; letter-spacing: .2em; text-transform: uppercase; color: var(--brand); }
.founder p { margin: 12px 0 0; color: var(--muted); font-size: .94rem; }

/* ---------- contatti ---------- */
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(40px, 6vw, 100px); align-items: start; }
.form { display: grid; gap: 22px; background: var(--paper); padding: clamp(28px, 4vw, 56px); border-radius: var(--radius-lg); box-shadow: var(--shadow-md); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.field label { display: block; font-size: .78rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.field input, .field select, .field textarea { width: 100%; font: inherit; font-size: 1rem; color: var(--ink); background: transparent; border: 0; border-bottom: 1px solid var(--line); padding: 10px 0 12px; border-radius: 0; transition: border-color .3s; -webkit-appearance: none; appearance: none; }
.field select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%231B1419' stroke-width='1.4'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 4px center; padding-right: 24px; }
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ink); }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: .86rem; color: var(--muted); }
.check input { margin-top: 4px; accent-color: var(--brand); width: 17px; height: 17px; flex: none; }
.check a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.form-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.form-status { font-size: .9rem; color: var(--cappero-dark); min-height: 1.4em; margin: 0; }

/* ---------- articoli / prose ---------- */
.prose { font-size: 1.08rem; line-height: 1.85; }
.prose h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); margin: 1.8em 0 .6em; }
.prose h3 { font-size: 1.4rem; margin: 1.5em 0 .5em; }
.prose ul, .prose ol { padding-left: 1.2em; margin: 0 0 1.2em; }
.prose ul { list-style: none; padding-left: 0; }
.prose ul li { position: relative; padding-left: 26px; margin-bottom: .5em; }
.prose ul li::before { content: ""; position: absolute; left: 0; top: .72em; width: 12px; height: 1px; background: var(--brand); }
.prose a { color: var(--brand); text-decoration: underline; text-underline-offset: 3px; }
.prose figure { margin: 2em 0; } .prose figure img { border-radius: var(--radius); }
.prose .answer { background: var(--paper); border-left: 3px solid var(--magenta); padding: 22px 26px; border-radius: 0 var(--radius) var(--radius) 0; margin: 0 0 2em; }
.prose strong { color: var(--ink); }
.article-meta { display: flex; gap: 20px; flex-wrap: wrap; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.article-cover { aspect-ratio: 16 / 8; border-radius: var(--radius); overflow: hidden; margin: 0 0 56px; }
.article-cover img { width: 100%; height: 100%; object-fit: cover; }
.faq { border-top: 1px solid var(--line); margin-top: 1.4em; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 40px 20px 0; position: relative; font-family: var(--font-display); font-size: 1.25rem; color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 16px; font-family: var(--font-body); font-size: 1.5rem; font-weight: 300; transition: transform .3s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 22px; color: var(--muted); }
.legal h2 { font-size: 1.7rem; margin-top: 1.6em; }

/* ---------- footer ---------- */
.site-footer { background: var(--ink); color: #BFB3BA; padding: clamp(70px, 9vw, 120px) 0 0; font-size: .92rem; }
.footer-top { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 50px; padding-bottom: 70px; }
.footer-logo { width: 150px; height: auto; margin-bottom: 26px; }
.footer-claim { font-family: var(--font-display); font-style: italic; font-size: 1.5rem; line-height: 1.3; color: var(--bg); max-width: 22ch; margin-bottom: 26px; }
.site-footer h4 { font-family: var(--font-body); font-size: .7rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted-dark); margin-bottom: 22px; }
.site-footer li { margin-bottom: 11px; }
.site-footer a { transition: color .3s; }
.site-footer a:hover { color: var(--sole); }
.socials { display: flex; gap: 10px; }
.socials a { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-dark); display: grid; place-items: center; color: var(--bg); }
.socials a:hover { background: var(--magenta); border-color: var(--magenta); color: #fff; }
.socials svg { width: 18px; height: 18px; }
.footer-word { font-family: var(--font-display); font-style: italic; font-size: clamp(4rem, 15vw, 15rem); line-height: .8; color: transparent; -webkit-text-stroke: 1px var(--line-dark); text-align: center; letter-spacing: -.03em; margin: 0; user-select: none; white-space: nowrap; overflow: hidden; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px 30px; padding: 26px 0 30px; border-top: 1px solid var(--line-dark); font-size: .78rem; color: var(--muted-dark); }
.footer-bottom p { margin: 0; }
.footer-bottom a:hover { color: var(--sole); }

/* WhatsApp flottante */
.wa-float { position: fixed; right: 20px; bottom: 20px; z-index: 80; width: 58px; height: 58px; border-radius: 50%; background: #1F8F55; color: #fff; display: grid; place-items: center; box-shadow: 0 12px 30px rgba(0,0,0,.22); transition: transform .3s var(--ease); }
.wa-float:hover { transform: scale(1.07); }
.wa-float svg { width: 28px; height: 28px; }

/* ---------- reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }
.js .reveal.d1 { transition-delay: .08s; } .js .reveal.d2 { transition-delay: .16s; } .js .reveal.d3 { transition-delay: .24s; }

/* ---------- 404 ---------- */
.notfound { min-height: 64vh; display: grid; place-items: center; text-align: center; padding: 80px 0; }
.notfound .big { font-family: var(--font-display); font-style: italic; font-size: clamp(6rem, 20vw, 14rem); line-height: .9; color: var(--brand); margin: 0; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1024px) {
  .footer-top { grid-template-columns: 1fr 1fr; }
  .grid-products { grid-template-columns: repeat(3, 1fr); }
  .values { grid-template-columns: 1fr; gap: 20px; }
}
@media (max-width: 900px) {
  :root { --nav-h: 72px; }
  .hero-grid, .story, .manifesto, .xmas-grid, .band, .visit, .split, .contact-grid, .page-hero-grid { grid-template-columns: 1fr; }
  .section-head { grid-template-columns: 1fr; gap: 18px; }
  .t-a, .t-b { grid-column: span 12; aspect-ratio: 4 / 3.4; }
  .t-c, .t-d, .t-e { grid-column: span 6; }
  .t-e { grid-column: span 12; aspect-ratio: 16 / 10; }
  .split.reverse .split-media { order: 0; }
  .visit-media { min-height: 300px; }
  .posts { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: 1fr; }
  .page-hero-img { display: none; }
  .cat-head { grid-template-columns: 1fr; gap: 10px; }
}
@media (max-width: 768px) {
  .grid-products, .grid-products.cols-3 { grid-template-columns: repeat(2, 1fr); }
  .founders { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .container, .container-narrow { width: min(100% - 32px, var(--container)); }
  .topbar { font-size: .78rem; letter-spacing: .1em; }
  .hero-meta { gap: 22px; }
  .hero-meta strong { font-size: 1.5rem; }
  .footer-top { grid-template-columns: 1fr; gap: 38px; }
  .post-card { grid-template-columns: 1fr; }
  .post-card .pc-media { aspect-ratio: 4 / 3; }
  .btn { padding: 15px 24px; }
  .hero-cta .btn { flex: 1 1 100%; }
  .lightbox { padding: 60px 12px; }
  .lb-prev, .lb-next { top: auto; bottom: 60px; transform: none; }
  .tile-arrow { width: 38px; height: 38px; }
  .swatch { width: 46px; height: 46px; }
}
@media (max-width: 480px) {
  .t-c, .t-d { grid-column: span 12; aspect-ratio: 4 / 4; }
  .grid-products { gap: 22px 12px; }
  .product h3 { font-size: 1.08rem; }
}
/* ---------- mobile ---------- */
.hide-sm { display: inline; }
@media (max-width: 900px) {
  .look-row { grid-template-columns: repeat(2, 1fr); }
  .look-row figure:first-child { grid-column: 1 / -1; }
  .look-row figure:first-child .lr-img { aspect-ratio: 4 / 3; }
  .masonry { grid-template-columns: repeat(3, 1fr); }
  .hero-media { margin-top: 10px; }
}
@media (max-width: 640px) {
  body { font-size: 1rem; }
  .section { padding: 64px 0; }
  .section-tight { padding: 44px 0; }
  .section-head { margin-bottom: 32px; }
  .hide-sm { display: none; }
  .topbar { padding: 9px 12px; letter-spacing: .06em; }
  .nav-brand img { width: 108px; }
  .hero { padding: 26px 0 56px; }
  .hero h1 { margin-bottom: 20px; }
  .hero h1 .h1-sub { margin-top: 18px; }
  .hero-cta { margin-top: 26px; }
  .hero-meta { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 34px; padding-top: 20px; }
  .hero-meta div { font-size: .72rem; letter-spacing: .04em; line-height: 1.35; }
  .hero-meta strong { font-size: 1.12rem; margin-bottom: 6px; }
  .hero-media { gap: 10px; }
  .hero-media figcaption { font-size: .82rem; }
  .btn-row .btn, .form-actions .btn { flex: 1 1 100%; }
  .link-arrow { margin-top: 6px; }
  .tile-body h3 { font-size: 1.45rem; }
  .story-media { aspect-ratio: 4 / 4.4; }
  .swatches { gap: 10px; margin: 24px 0 12px; }
  .specs li { flex-direction: column; gap: 2px; }
  .specs li span:last-child { text-align: left; }
  .rail { grid-auto-columns: 74vw; }
  .rail-nav { display: none; }
  .values { padding-top: 24px; }
  .xmas-lines > div { grid-template-columns: 40px 1fr; }
  .visit-body { padding: 30px 22px; }
  .visit-media { min-height: 240px; }
  .masonry { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .masonry a .m-cap { display: none; }
  .filters { flex-wrap: nowrap; overflow-x: auto; justify-content: flex-start; margin: 0 -16px 28px; padding: 0 16px 4px; scrollbar-width: none; }
  .filters::-webkit-scrollbar { display: none; }
  .filter { flex: none; }
  .page-hero { padding: 36px 0 40px; }
  .breadcrumb { margin-bottom: 20px; }
  .cat-head { margin-bottom: 28px; padding-bottom: 20px; }
  .cat-head .num { font-size: 1.8rem; }
  .grid-products { gap: 26px 12px; }
  .product h3 { font-size: 1.05rem; line-height: 1.25; }
  .product p { font-size: .84rem; line-height: 1.5; }
  .product-ask { padding: 11px 8px; font-size: .72rem; letter-spacing: .04em; gap: 6px; }
  .form { padding: 26px 20px; }
  .cta-banner { padding: 70px 0; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 34px 20px; }
  .footer-top > div:first-child, .footer-top > div:last-child { grid-column: 1 / -1; }
  .footer-word { font-size: 24vw; }
  .footer-bottom { flex-direction: column; gap: 8px; }
  .wa-float { width: 52px; height: 52px; right: 14px; bottom: 14px; }
  .wa-float svg { width: 25px; height: 25px; }
  .prose { font-size: 1.02rem; }
  .article-cover { aspect-ratio: 4 / 3; margin-bottom: 34px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
}
