/* =========================================================
   Siti vetrina DualisStudio — base condivisa.
   Ogni sito ridefinisce i token in :root e aggiunge il suo stile.
   ========================================================= */
:root {
  --bg: #f4f2ee; --bg-2: #ebe7e0; --ink: #171512; --ink-2: #4a4640; --muted: #8a857c;
  --line: rgba(23, 21, 18, .12); --accent: #b5643c; --on-accent: #fff;
  --f-head: Georgia, serif; --f-body: system-ui, sans-serif; --f-mono: ui-monospace, monospace;
  --head-weight: 400; --head-track: -.02em; --head-case: none;
  --radius: 4px; --gutter: clamp(16px, 4vw, 56px); --max: 1440px; --nav-h: 76px;
  --ease: cubic-bezier(.16, 1, .3, 1);
}
*, *::before, *::after { box-sizing: border-box; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.6 var(--f-body); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
::selection { background: var(--accent); color: var(--on-accent); }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.eyebrow { font: 500 12px/1.3 var(--f-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.h1, .h2, .h3 { font-family: var(--f-head); font-weight: var(--head-weight); letter-spacing: var(--head-track); text-transform: var(--head-case); margin: 0; }
.h1 { font-size: clamp(48px, 8.4vw, 150px); line-height: .92; }
.h2 { font-size: clamp(36px, 5vw, 84px); line-height: .98; }
.h3 { font-size: clamp(22px, 2vw, 30px); line-height: 1.1; }
.lead { font-size: clamp(17px, 1.3vw, 20px); color: var(--ink-2); max-width: 48ch; margin: 0; }
.mask { display: block; overflow: hidden; padding: .14em 0 .08em; margin: -.14em 0 -.08em; }
.mask > span { display: inline-block; }

.btn {
  display: inline-flex; align-items: center; gap: 12px; height: 54px; padding: 0 26px; border-radius: var(--radius);
  background: var(--ink); color: var(--bg); font: 500 15px/1 var(--f-body); letter-spacing: .01em;
  position: relative; overflow: hidden; isolation: isolate; transition: color .45s var(--ease);
}
.btn::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--accent); transform: scaleX(0); transform-origin: right; transition: transform .6s var(--ease); }
.btn:hover::before { transform: scaleX(1); transform-origin: left; }
.btn:hover { color: var(--on-accent); }
.btn--line { background: transparent; color: currentColor; box-shadow: inset 0 0 0 1px currentColor; }
.btn svg { width: 16px; height: 16px; transition: transform .5s var(--ease); }
.btn:hover svg { transform: translateX(4px); }

/* nav */
.v-nav { position: fixed; inset: 0 0 auto; z-index: 50; height: var(--nav-h); transition: background-color .5s, color .5s, transform .6s var(--ease), box-shadow .5s; color: var(--nav-ink, #fff); }
.v-nav.is-solid { background: color-mix(in srgb, var(--bg) 86%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); color: var(--ink); box-shadow: 0 1px 0 var(--line); }
.v-nav.is-hidden { transform: translateY(-100%); }
.v-nav .wrap { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.v-logo { font: var(--logo-font, 600 20px/1 var(--f-head)); letter-spacing: var(--logo-track, .2em); text-transform: uppercase; }
.v-links { display: flex; gap: 32px; list-style: none; margin: 0; padding: 0; font-size: 14.5px; }
.v-links a { position: relative; opacity: .85; transition: opacity .3s; }
.v-links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease); }
.v-links a:hover { opacity: 1; }
.v-links a:hover::after { transform: scaleX(1); transform-origin: left; }
.v-nav .btn { height: 44px; padding: 0 18px; font-size: 14px; }
@media (max-width: 900px) { .v-links { display: none; } }

/* hero a tutto schermo */
.v-hero { position: relative; min-height: 100svh; display: flex; align-items: flex-end; color: var(--hero-ink, #fff); overflow: hidden; }
.v-hero__media { position: absolute; inset: 0; z-index: -1; }
.v-hero__media img { width: 100%; height: 115%; object-fit: cover; object-position: var(--hero-pos, center); will-change: transform; }
.v-hero__media::after { content: ""; position: absolute; inset: 0; background: var(--hero-shade, linear-gradient(180deg, rgba(0,0,0,.35), rgba(0,0,0,0) 30%, rgba(0,0,0,.05) 55%, rgba(0,0,0,.55))); }
.v-hero .wrap { width: 100%; padding-top: calc(var(--nav-h) + 40px); padding-bottom: clamp(32px, 7vh, 80px); }
.v-hero__grid { display: grid; grid-template-columns: 1.4fr .6fr; gap: 32px; align-items: end; }
.v-hero__side { display: grid; gap: 22px; justify-items: start; }
.v-hero__side p { margin: 0; font-size: 16.5px; opacity: .9; max-width: 38ch; }
@media (max-width: 900px) { .v-hero__grid { grid-template-columns: 1fr; } }

/* sezioni */
.v-sec { padding: clamp(80px, 14vh, 170px) 0; position: relative; }
.v-head { display: flex; justify-content: space-between; align-items: end; gap: 32px; flex-wrap: wrap; margin-bottom: clamp(36px, 7vh, 80px); }
.v-head .eyebrow { display: block; margin-bottom: 18px; }

/* prodotti */
.v-products { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(14px, 1.6vw, 24px); }
.v-card { display: block; }
.v-card__img { position: relative; aspect-ratio: 3 / 4; overflow: hidden; border-radius: var(--radius); background: var(--bg-2); }
.v-card__img img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.02); transition: transform 1.4s var(--ease); }
.v-card:hover .v-card__img img { transform: scale(1.08); }
.v-card__tag { position: absolute; top: 14px; left: 14px; padding: 6px 10px; border-radius: var(--radius); background: var(--bg); color: var(--ink); font: 500 11px/1 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; }
.v-card__quick { position: absolute; left: 14px; right: 14px; bottom: 14px; height: 48px; display: grid; place-items: center; border-radius: var(--radius); background: var(--ink); color: var(--bg); font-size: 14px; transform: translateY(130%); transition: transform .6s var(--ease); }
.v-card:hover .v-card__quick { transform: none; }
.v-card__info { display: flex; justify-content: space-between; gap: 16px; padding-top: 16px; }
.v-card__info b { display: block; font-weight: 500; font-size: 17px; }
.v-card__info span { color: var(--muted); font-size: 14.5px; }
.v-card__price { font-weight: 500; white-space: nowrap; }
@media (max-width: 900px) { .v-products { grid-template-columns: 1fr; } .v-card__quick { transform: none; } }

/* blocco immagine + testo */
.v-split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 110px); align-items: center; }
.v-split__img { position: relative; overflow: hidden; border-radius: var(--radius); aspect-ratio: 4 / 5; }
.v-split__img img { width: 100%; height: 118%; object-fit: cover; }
@media (max-width: 900px) { .v-split { grid-template-columns: 1fr; } }

.v-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 48px; border-top: 1px solid var(--line); }
.v-stats div { padding-top: 22px; }
.v-stats b { display: block; font: var(--head-weight) clamp(36px, 3.6vw, 56px)/1 var(--f-head); letter-spacing: var(--head-track); }
.v-stats span { color: var(--muted); font-size: 14.5px; }

.v-marquee { overflow: hidden; padding: 26px 0; border-block: 1px solid var(--line); white-space: nowrap; }
.v-marquee__row { display: inline-flex; gap: 48px; padding-right: 48px; animation: v-marquee 30s linear infinite; font: var(--head-weight) clamp(28px, 3vw, 46px)/1 var(--f-head); letter-spacing: var(--head-track); text-transform: var(--head-case); }
.v-marquee__row i { color: var(--accent); font-style: normal; }
@keyframes v-marquee { to { transform: translateX(-100%); } }

.v-features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.v-features > div { background: var(--bg); padding: 30px 26px 34px; }
.v-features span { font: 500 12px var(--f-mono); color: var(--accent); letter-spacing: .1em; }
.v-features h3 { margin: 26px 0 10px; font: 500 20px/1.2 var(--f-body); }
.v-features p { margin: 0; color: var(--ink-2); font-size: 15px; }
@media (max-width: 1000px) { .v-features { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .v-features { grid-template-columns: 1fr; } }

.v-cta { position: relative; overflow: hidden; color: #fff; border-radius: var(--radius); padding: clamp(48px, 9vw, 130px) clamp(24px, 5vw, 80px); isolation: isolate; }
.v-cta > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.v-cta::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(0,0,0,.7), rgba(0,0,0,.15)); }

.v-footer { padding: 60px 0 40px; border-top: 1px solid var(--line); font-size: 14.5px; color: var(--ink-2); }
.v-footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 32px; }
.v-footer b { display: block; color: var(--ink); margin-bottom: 12px; font-weight: 500; }
.v-footer a:hover { color: var(--accent); }
.v-footer__bottom { margin-top: 48px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 13px; color: var(--muted); }
@media (max-width: 800px) { .v-footer__grid { grid-template-columns: 1fr 1fr; } }

/* pillola "concept DualisStudio" */
.v-demo {
  position: fixed; right: 16px; bottom: 16px; z-index: 60; display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 16px 10px 12px; border-radius: 999px; background: #0a0a0b; color: #f1eee8;
  font: 500 12px/1 system-ui, sans-serif; letter-spacing: .02em; box-shadow: 0 10px 30px -10px rgba(0,0,0,.5);
  transition: transform .5s var(--ease);
}
.v-demo:hover { transform: translateY(-3px); }
.v-demo i { width: 8px; height: 8px; border-radius: 50%; background: #ff4a1c; }

/* animazioni d'ingresso */
.js [data-r] { opacity: 0; translate: 0 40px; transition: opacity 1.1s var(--ease), translate 1.2s var(--ease); transition-delay: var(--d, 0s); }
.js [data-r].in { opacity: 1; translate: none; }
.js [data-clip] { clip-path: inset(12% 12% 12% 12% round var(--radius)); transition: clip-path 1.6s var(--ease); }
.js [data-clip].in { clip-path: inset(0 0 0 0 round var(--radius)); }
@media (prefers-reduced-motion: reduce) {
  .js [data-r], .js [data-clip] { opacity: 1; translate: none; clip-path: none; transition: none; }
  .v-marquee__row { animation: none; }
}
