/* Font ospitati localmente (SIL Open Font License) — nessuna richiesta a server di terze parti */
/* latin-ext */
@font-face {
  font-family: 'Instrument Serif';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/instrument-serif-italic-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Instrument Serif';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/instrument-serif-italic-latin.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;
}
/* latin-ext */
@font-face {
  font-family: 'Instrument Serif';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/instrument-serif-normal-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Instrument Serif';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/instrument-serif-normal-latin.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;
}
/* latin-ext */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url(fonts/inter-normal-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url(fonts/inter-normal-latin.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;
}

/* TrattoNaturale — linguaggio visivo ispirato a beautifului.dev
   (superfici con hairline, ombre stratificate, raggi 8/10/14, easing morbidi) */
:root {
  color-scheme: light;
  --font-sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-serif: "Instrument Serif", ui-serif, Georgia, serif;

  /* chiaro, caldo */
  --page: oklch(97.6% .008 95);
  --surface: oklch(99.6% .003 95);
  --inset: oklch(95.4% .01 95);
  --ink: oklch(22% .02 150);
  --ink-2: oklch(44% .02 150);
  --ink-3: oklch(60% .015 150);
  --line: oklch(91.5% .01 95);
  --line-strong: oklch(87% .012 95);

  /* bosco */
  --forest: oklch(23% .035 152);
  --forest-2: oklch(28% .04 150);
  --forest-line: oklch(100% 0 0 / .1);
  --on-forest: oklch(96% .01 120);
  --on-forest-2: oklch(80% .02 130);

  /* accenti dal logo */
  --leaf: oklch(82% .18 128);
  --accent: oklch(52% .14 138);
  --accent-ink: oklch(43% .12 140);
  --accent-tint: oklch(94.5% .045 128);
  --whatsapp: #25d366;

  --shadow-xs: 0 0 4px 0 #0000000a;
  --shadow-sm: 0 18px 47px 0 #00000008, 0 7.5px 19px 0 #00000005, 0 4px 10.5px 0 #00000005, 0 2.3px 5.8px 0 #00000003, 0 1.2px 3.1px 0 #00000003;
  --shadow-lg: 0 25px 50px 0 #0000000d, 0 12px 24px 0 #0000000a, 0 6px 12px 0 #00000008, 0 3px 6px 0 #00000005;
  --shadow-btn: 0 0 0 1px var(--line-strong), var(--shadow-xs);
  --shadow-card: 0 0 0 1px var(--line), var(--shadow-sm);
  --shadow-raised: 0 0 0 1px var(--line), var(--shadow-lg);

  --radius-chip: 6px;
  --radius-control: 10px;
  --radius-card: 14px;
  --radius-window: 22px;

  --ease-out-strong: cubic-bezier(.23, 1, .32, 1);
  --ease-link: cubic-bezier(.16, 1, .3, 1);

  --container: 76rem;
  --gutter: clamp(1rem, 4vw, 2.5rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 6rem; }
body {
  margin: 0; font-family: var(--font-sans); font-size: 1rem; line-height: 1.6;
  color: var(--ink); background: var(--page);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p, blockquote, figure { margin: 0; }
h1, h2, h3 { font-weight: 600; letter-spacing: -.035em; line-height: 1.05; text-wrap: balance; }
h1 em, h2 em, h3 em, .serif { font-family: var(--font-serif); font-style: italic; font-weight: 400; letter-spacing: -.01em; }
p { text-wrap: pretty; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--leaf); color: var(--forest); }

.container { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 0; }
.skip:focus { left: 1rem; top: 1rem; z-index: 100; background: var(--surface); padding: .5rem .75rem; border-radius: var(--radius-control); box-shadow: var(--shadow-raised); }
.icon { width: 1.125rem; height: 1.125rem; flex: none; }

/* ---------- Header flottante ---------- */
.header { position: fixed; inset: .75rem 0 auto; z-index: 60; pointer-events: none; }
.header__bar {
  pointer-events: auto; position: relative;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  height: 3.75rem; padding: 0 .5rem 0 1rem;
  background: color-mix(in oklab, var(--surface) 78%, transparent);
  backdrop-filter: saturate(1.6) blur(12px); -webkit-backdrop-filter: saturate(1.6) blur(12px);
  border-radius: 16px;
  box-shadow: 0 0 0 1px #ffffff59, 0 8px 30px #0000001f;
  transition: background-color .3s, box-shadow .3s;
}

.header.is-scrolled .header__bar { background: color-mix(in oklab, var(--surface) 90%, transparent); box-shadow: 0 0 0 1px var(--line), var(--shadow-lg); }
.brand img { width: 150px; }

.nav { position: relative; display: flex; gap: 2px; }
.nav a {
  position: relative; z-index: 1; padding: .45rem .8rem; border-radius: var(--radius-control);
  font-size: .875rem; font-weight: 500; color: var(--ink-2); text-decoration: none; transition: color .15s;
}
.nav a:hover, .nav a.is-active { color: var(--ink); }
.nav a.is-active::after { content: ""; position: absolute; left: 50%; bottom: 3px; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: var(--accent); }
.nav__glider {
  position: absolute; top: 0; left: 0; height: 100%; width: 0; border-radius: var(--radius-control);
  background: color-mix(in oklab, var(--ink) 6%, transparent); opacity: 0; pointer-events: none;
  transition: transform .35s var(--ease-link), width .35s var(--ease-link), opacity .2s;
}
.header__actions { display: flex; align-items: center; gap: .375rem; }
.header__actions .menu-btn { display: none; }

/* ---------- Bottoni ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  height: 2.875rem; padding: 0 1.25rem; border: 0; border-radius: 999px;
  font: 500 .9375rem/1 var(--font-sans); text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform .25s var(--ease-out-strong), background-color .2s, box-shadow .2s, color .2s;
}
.btn:active { transform: scale(.97); }
.btn--sm { height: 2.5rem; padding: 0 1rem; font-size: .875rem; }
.btn--leaf { background: var(--leaf); color: var(--forest); box-shadow: inset 0 1px 0 #ffffff66, 0 6px 20px color-mix(in oklab, var(--leaf) 35%, transparent); }
.btn--leaf:hover { background: oklch(86% .17 126); }
.btn--dark { background: var(--forest); color: var(--on-forest); box-shadow: inset 0 1px 0 #ffffff1a, 0 1px 2px #0000002e; }
.btn--dark:hover { background: var(--forest-2); }
.btn--glass { color: #fff; background: #0b140d59; box-shadow: inset 0 0 0 1px #ffffff4d; }
.btn--glass:hover { background: #0b140d80; }
.btn--light { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-btn); }
.btn--light:hover { background: var(--inset); }
.btn--wa { background: var(--whatsapp); color: #06301a; }
.btn--wa:hover { background: #3ee07a; }
.btn .arrow { transition: transform .3s var(--ease-out-strong); }
.btn:hover .arrow { transform: translateX(3px); }

.icon-btn {
  text-decoration: none;
  display: inline-grid; place-items: center; width: 2.875rem; height: 2.875rem; border-radius: 50%;
  color: #fff; background: #0b140d59; box-shadow: inset 0 0 0 1px #ffffff40;
  transition: transform .25s var(--ease-out-strong), background-color .2s;
}
.icon-btn:hover { background: #0b140d8c; transform: translateY(-2px); }

.eyebrow {
  display: inline-flex; align-items: center; gap: .55rem;
  font-size: .75rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-ink);
}
.eyebrow::before { content: ""; width: 1.5rem; height: 1px; background: currentColor; opacity: .6; }
.on-dark .eyebrow { color: var(--leaf); }

/* ---------- Hero a tutto schermo ---------- */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: flex-end; color: #fff; overflow: hidden; isolation: isolate; background: var(--forest); }
.hero__bg { position: absolute; inset: 0; z-index: -2; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; animation: kenburns 2.8s var(--ease-out-strong) both; }
.hero__bg { will-change: transform; transform-origin: 50% 100%; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, #0f1a1259 0%, #0000 22%, #0000 42%, #0b140dcc 100%),
    radial-gradient(120% 70% at 0% 100%, #0b140db3, #0000 60%);
}
@keyframes kenburns { from { transform: scale(1.18); } to { transform: scale(1); } }
.hero__inner { padding-block: 8rem clamp(2rem, 6vw, 4rem); display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 2rem; }
.hero__content { display: grid; gap: 1.5rem; max-width: 52rem; }
.badge {
  display: inline-flex; align-items: center; gap: .55rem; width: fit-content;
  height: 2rem; padding: 0 .85rem 0 .7rem; border-radius: 999px;
  font-size: .8125rem; font-weight: 500; color: #fff;
  background: #0b140d59; box-shadow: inset 0 0 0 1px #ffffff40;
}
.pulse { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--leaf); }
.pulse::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--leaf); animation: pulse 2.2s ease-out infinite; }
@keyframes pulse { from { transform: scale(1); opacity: .7; } to { transform: scale(3); opacity: 0; } }
.hero__brand { font-size: clamp(3.25rem, 11vw, 9.5rem); letter-spacing: -.055em; line-height: .9; }
.hero__brand em { color: var(--leaf); letter-spacing: -.02em; padding-right: .04em; }
.hero__sub { font-size: clamp(1rem, 1.8vw, 1.25rem); color: #ffffffd9; max-width: 34rem; letter-spacing: .01em; }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: .625rem; }
.hero__social { display: flex; gap: .5rem; margin-left: .25rem; }

.hero__card {
  width: 17rem; padding: 1.25rem; border-radius: var(--radius-card);
  background: #0b140da6; box-shadow: inset 0 0 0 1px #ffffff2e, 0 20px 50px #00000040;
  display: grid; gap: .9rem;
}
.hero__card-row { display: flex; align-items: center; gap: .75rem; font-size: .875rem; color: #ffffffd9; }
.hero__card-row b { display: block; color: #fff; font-size: .9375rem; font-weight: 600; }
.hero__card-row + .hero__card-row { padding-top: .9rem; border-top: 1px solid #ffffff1f; }
.hero__card .tile { background: #ffffff1a; color: var(--leaf); box-shadow: inset 0 0 0 1px #ffffff26; }

.scroll-cue { position: absolute; left: 50%; bottom: 1.25rem; translate: -50% 0; width: 22px; height: 36px; border-radius: 11px; box-shadow: inset 0 0 0 1.5px #ffffff80; }
.scroll-cue::after { content: ""; position: absolute; left: 50%; top: 7px; width: 3px; height: 7px; margin-left: -1.5px; border-radius: 2px; background: #fff; animation: cue 1.8s var(--ease-out-strong) infinite; }
@keyframes cue { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(10px); opacity: 0; } 100% { opacity: 0; } }

/* Entrata hero a cascata */
/* visibile di base: è l'animazione (fill "both") a partire da invisibile, così se non gira il testo c'è comunque */
.js .hero [data-in] { animation: rise 1.1s var(--ease-out-strong) both; animation-delay: calc(var(--i, 0) * 120ms + 350ms); }
@keyframes rise { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
@keyframes rise-soft { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.hero__content { will-change: transform, opacity; }

/* ---------- Marquee ---------- */
.marquee { background: var(--forest); color: var(--on-forest); overflow: hidden; border-top: 1px solid var(--forest-line); }
.marquee__track { display: flex; width: max-content; animation: marquee 38s linear infinite; }
.marquee__group { display: flex; align-items: center; gap: 2.5rem; padding: 1.15rem 1.25rem; font-size: clamp(1.25rem, 2.6vw, 1.75rem); white-space: nowrap; }
.marquee__group span:nth-child(odd) { font-family: var(--font-serif); font-style: italic; }
.marquee__group i { width: 9px; height: 9px; border-radius: 50%; background: var(--leaf); flex: none; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Sezioni ---------- */
.section { padding-block: clamp(4.5rem, 10vw, 8rem); }
.section-head { display: grid; gap: 1rem; }
.section-head h2 { font-size: clamp(2.25rem, 5.5vw, 4.25rem); }
.section-head--split { grid-template-columns: 1fr 1fr; align-items: end; gap: 1.5rem 4rem; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-head--split .eyebrow { grid-column: 1 / -1; }
.lead { font-size: clamp(1.0625rem, 1.4vw, 1.1875rem); color: var(--ink-2); }
.on-dark { background: var(--forest); color: var(--on-forest); }
.on-dark .lead { color: var(--on-forest-2); }

/* ---------- Prodotti ---------- */
.products { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.product {
  position: relative; overflow: hidden; isolation: isolate; aspect-ratio: 3 / 4;
  border-radius: var(--radius-window); box-shadow: var(--shadow-raised); color: #fff; background: var(--forest);
}
.product img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1.2s var(--ease-out-strong); }
.product::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, #0000 45%, #0b140de6 100%); transition: opacity .4s; }
.product:hover img { transform: scale(1.07); }
.product__num { position: absolute; top: 1rem; left: 1rem; }
.product__body { position: absolute; inset: auto 0 0; padding: 1.5rem; display: flex; align-items: end; justify-content: space-between; gap: 1rem; }
.product h3 { font-family: var(--font-serif); font-style: italic; font-weight: 400; font-size: clamp(2.5rem, 4.5vw, 3.5rem); letter-spacing: -.01em; line-height: 1; }
.product__tag { font-size: .8125rem; color: #ffffffcc; margin-top: .35rem; }
.product__arrow {
  display: grid; place-items: center; width: 2.75rem; height: 2.75rem; border-radius: 50%; flex: none;
  background: var(--leaf); color: var(--forest);
  transform: translateY(8px) rotate(-45deg); opacity: 0; transition: transform .45s var(--ease-out-strong), opacity .3s;
}
.product:hover .product__arrow, .product:focus-within .product__arrow { transform: none; opacity: 1; }

.pill {
  display: inline-flex; align-items: center; height: 1.75rem; padding: 0 .7rem; border-radius: 999px;
  font-size: .75rem; font-weight: 600; letter-spacing: .06em; color: #fff;
  background: #0b140d66; box-shadow: inset 0 0 0 1px #ffffff40;
}

/* ---------- Filosofia (scuro) ---------- */
.philosophy { position: relative; overflow: hidden; }
.philosophy::before {
  content: ""; position: absolute; width: 60rem; height: 60rem; right: -20rem; top: -30rem; border-radius: 50%;
  background: radial-gradient(closest-side, color-mix(in oklab, var(--leaf) 16%, transparent), transparent);
  pointer-events: none;
}
.statement { position: relative; font-size: clamp(1.625rem, 3.6vw, 3rem); line-height: 1.18; letter-spacing: -.03em; font-weight: 500; max-width: 62rem; margin-top: 1.5rem; color: var(--on-forest-2); }
.statement mark { background: none; color: var(--on-forest); }
.statement em { font-family: var(--font-serif); font-weight: 400; color: var(--leaf); letter-spacing: -.01em; }
.pillars { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin: clamp(3rem, 6vw, 5rem) 0 0; padding: 0; list-style: none; }
.pillar {
  padding: 1.75rem; border-radius: var(--radius-card);
  background: linear-gradient(180deg, #ffffff0f, #ffffff05); box-shadow: inset 0 0 0 1px var(--forest-line);
  transition: transform .45s var(--ease-out-strong), background-color .3s, box-shadow .3s;
}
.pillar:hover { transform: translateY(-4px); box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--leaf) 45%, transparent); }
.pillar__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 2.5rem; }
.pillar__n { font-family: var(--font-serif); font-style: italic; font-size: 1.5rem; color: var(--on-forest-2); }
.pillar h3 { font-size: 1.5rem; letter-spacing: -.025em; margin-bottom: .4rem; }
.pillar p { color: var(--on-forest-2); }
.tile { display: grid; place-items: center; width: 2.75rem; height: 2.75rem; border-radius: var(--radius-control); flex: none; }
.tile svg { width: 1.3rem; height: 1.3rem; }
.pillar .tile { background: color-mix(in oklab, var(--leaf) 16%, transparent); color: var(--leaf); box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--leaf) 28%, transparent); }

/* ---------- Chi siamo ---------- */
.about { display: grid; grid-template-columns: 5fr 6fr; gap: clamp(2.5rem, 6vw, 6rem); align-items: start; }
.about__media { position: sticky; top: 6.5rem; }
.about__frame { overflow: hidden; border-radius: var(--radius-window); box-shadow: var(--shadow-raised); }
.about__frame img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 20% 50%; }
.about__badge {
  position: absolute; right: -1.25rem; bottom: 2rem; display: flex; align-items: center; gap: .85rem;
  padding: .9rem 1.1rem .9rem .9rem; border-radius: var(--radius-card);
  background: var(--surface); box-shadow: var(--shadow-raised);
}
.about__badge .tile { background: var(--accent-tint); color: var(--accent-ink); }
.about__badge b { display: block; font-size: .9375rem; }
.about__badge span { font-size: .8125rem; color: var(--ink-3); }
.about__text .section-head { margin-bottom: 1.75rem; }
.prose { display: grid; gap: 1.15rem; color: var(--ink-2); font-size: 1.0625rem; }
.prose strong { color: var(--ink); font-weight: 600; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); margin: 1rem 0; border-block: 1px solid var(--line); }
.stat { padding: 1.4rem 0; }
.stat + .stat { padding-left: 1.5rem; border-left: 1px solid var(--line); }
.stat b { display: block; font-size: clamp(2.25rem, 4.5vw, 3.25rem); font-weight: 600; letter-spacing: -.05em; line-height: 1; color: var(--ink); }
.stat b small { font-size: .45em; letter-spacing: 0; font-weight: 500; color: var(--ink-3); margin-left: .15em; }
.stat > span { display: block; margin-top: .45rem; font-size: .875rem; color: var(--ink-3); }

/* ---------- Citazione ---------- */
.quote { position: relative; isolation: isolate; overflow: hidden; color: #fff; text-align: center; padding-block: clamp(6rem, 14vw, 11rem); }
.quote > img { position: absolute; inset: -10% 0; width: 100%; height: 120%; object-fit: cover; z-index: -2; will-change: transform; }
.quote::after { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(90% 90% at 50% 50%, #0b140d8c, #0b140de0); }
.quote blockquote { max-width: 60rem; margin-inline: auto; }
.quote blockquote p { font-family: var(--font-serif); font-size: clamp(2rem, 5.2vw, 4.25rem); line-height: 1.08; letter-spacing: -.015em; }
.quote blockquote p::before { content: "“"; display: block; font-size: 1.6em; line-height: .6; color: var(--leaf); margin-bottom: .2em; }
.quote footer { margin-top: 1.75rem; font-size: .8125rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: #ffffffb3; }

/* ---------- Servizi (bento) ---------- */
.bento { display: grid; grid-template-columns: repeat(4, 1fr); grid-template-rows: auto auto; gap: 1.25rem; grid-template-areas: "text text big big" "a b big big"; }
.bento__text { grid-area: text; display: grid; align-content: start; gap: 1.1rem; padding: clamp(.5rem, 2vw, 1rem) clamp(0rem, 2vw, 1.5rem) 1rem 0; }
.bento__text h2 { font-size: clamp(2.25rem, 4.6vw, 3.75rem); }
.bento__text .btn { width: fit-content; margin-top: .5rem; }
.bento figure { position: relative; overflow: hidden; border-radius: var(--radius-window); box-shadow: var(--shadow-raised); background: var(--inset); }
.bento figure img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out-strong); }
.bento figure:hover img { transform: scale(1.05); }
.bento__big { grid-area: big; min-height: 32rem; }
.bento__a { grid-area: a; aspect-ratio: 1; }
.bento__b { grid-area: b; aspect-ratio: 1; }

/* ---------- Contatti ---------- */
.contact { position: relative; overflow: hidden; isolation: isolate; border-radius: calc(var(--radius-window) + 6px); padding: clamp(1.75rem, 5vw, 4rem); display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.contact::before {
  content: ""; position: absolute; width: 40rem; height: 40rem; left: -14rem; bottom: -24rem; border-radius: 50%; z-index: -1;
  background: radial-gradient(closest-side, color-mix(in oklab, var(--leaf) 20%, transparent), transparent);
}
.contact h2 { font-size: clamp(2.5rem, 6vw, 4.75rem); margin: 1rem 0 1.25rem; }
.contact h2 em { color: var(--leaf); }
.contact__actions { display: flex; flex-wrap: wrap; gap: .625rem; margin-top: 2rem; }
.contact__actions .btn--light { background: #ffffff14; color: var(--on-forest); box-shadow: inset 0 0 0 1px var(--forest-line); }
.contact__actions .btn--light:hover { background: #ffffff24; }

.contact-list { display: grid; padding: .5rem; border-radius: var(--radius-card); background: #ffffff0a; box-shadow: inset 0 0 0 1px var(--forest-line); }
.contact-row { display: flex; align-items: center; gap: 1rem; padding: 1rem; border-radius: 10px; transition: background-color .2s; }
.contact-row:hover { background: #ffffff0d; }
.contact-row + .contact-row { box-shadow: 0 -1px 0 var(--forest-line); }
.contact-row .tile { background: color-mix(in oklab, var(--leaf) 14%, transparent); color: var(--leaf); }
.contact-row__text { flex: 1; min-width: 0; display: grid; }
.contact-row__label { font-size: .75rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--on-forest-2); }
.contact-row__value { font-weight: 500; color: var(--on-forest); text-decoration: none; overflow-wrap: anywhere; }
a.contact-row__value:hover { color: var(--leaf); }
.copy {
  position: relative; flex: none; display: grid; place-items: center; width: 2.25rem; height: 2.25rem;
  border: 0; border-radius: 9px; background: #ffffff12; color: var(--on-forest-2);
  box-shadow: inset 0 0 0 1px var(--forest-line); cursor: pointer;
  transition: transform .2s var(--ease-out-strong), color .15s, background-color .15s;
}
.copy:hover { color: var(--on-forest); background: #ffffff1f; }
.copy:active { transform: scale(.9); }
.copy svg { width: 1rem; height: 1rem; transition: opacity .18s, transform .25s var(--ease-out-strong); }
.copy .i-check { position: absolute; opacity: 0; transform: scale(.5); color: var(--leaf); }
.copy.is-copied .i-copy { opacity: 0; transform: scale(.5); }
.copy.is-copied .i-check { opacity: 1; transform: scale(1); }

/* ---------- Footer ---------- */
.footer { background: var(--forest); color: var(--on-forest-2); padding-block: 4rem 2rem; font-size: .9375rem; margin-top: clamp(4.5rem, 10vw, 8rem); }
.footer__top { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 2rem; padding-bottom: 2.5rem; border-bottom: 1px solid var(--forest-line); }
.footer__logo { display: inline-block; padding: .65rem .9rem; border-radius: 12px; background: var(--surface); }
.footer__logo img { width: 150px; }
.footer__claim { margin-top: 1rem; max-width: 22rem; }
.footer__cols { display: flex; flex-wrap: wrap; gap: 3rem; }
.footer__col { display: grid; gap: .5rem; align-content: start; }
.footer__col .footer__title { font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: var(--on-forest); margin-bottom: .35rem; }
.footer a { color: var(--on-forest-2); text-decoration: none; transition: color .15s; }
.footer a:hover { color: var(--leaf); }
.footer__social { display: flex; gap: .5rem; }
.footer__social a { display: grid; place-items: center; width: 2.5rem; height: 2.5rem; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--forest-line); }
.footer__social a:hover { background: #ffffff12; }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .75rem 2rem; padding-top: 1.5rem; font-size: .8125rem; }
.footer__bottom nav { display: flex; gap: 1.25rem; }

/* ---------- WhatsApp flottante ---------- */
.fab {
  position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 55;
  display: grid; place-items: center; width: 3.5rem; height: 3.5rem; border-radius: 50%;
  background: var(--whatsapp); color: #fff; box-shadow: 0 10px 30px #25d36659, 0 2px 6px #00000026;
  transform: scale(.6); opacity: 0; pointer-events: none;
  transition: transform .45s var(--ease-out-strong), opacity .3s;
}
.fab.is-visible { transform: none; opacity: 1; pointer-events: auto; }
.fab:hover { transform: scale(1.06); }
.fab svg { width: 1.75rem; height: 1.75rem; }

/* ---------- Pagine legali ---------- */
.legal { padding-block: 8rem 2rem; }
.legal__doc { max-width: 46rem; margin-inline: auto; padding: clamp(1.5rem, 5vw, 3.5rem); background: var(--surface); border-radius: var(--radius-window); box-shadow: var(--shadow-card); }
.legal h1 { font-size: clamp(2.25rem, 5vw, 3.25rem); margin: 1rem 0 1.75rem; }
.legal h2 { font-size: 1.1875rem; letter-spacing: -.02em; margin: 2.25rem 0 .5rem; }
.legal p, .legal li { color: var(--ink-2); }
.legal p + p { margin-top: .75rem; }
.legal ul { padding-left: 1.25rem; margin: .5rem 0 1rem; }
.legal li + li { margin-top: .25rem; }
.legal + .footer { margin-top: 4rem; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .hero__card { display: none; }
  .hero__inner { grid-template-columns: 1fr; }
  .bento { grid-template-columns: 1fr 1fr; grid-template-areas: "text text" "big big" "a b"; }
  .bento__big { min-height: 0; aspect-ratio: 4 / 3; }
  .about__badge { right: 1rem; }
}
@media (max-width: 900px) {
  .section-head--split, .about, .contact { grid-template-columns: 1fr; }
  .about__media { position: relative; top: 0; }
  .about__frame img { aspect-ratio: 4 / 3; }
  .products { grid-template-columns: 1fr 1fr; }
  .products .product:last-child { grid-column: span 2; aspect-ratio: 16 / 10; }
  .pillars { grid-template-columns: 1fr; }
  .pillar__top { margin-bottom: 1.5rem; }
}
@media (max-width: 860px) {
  .header__actions .menu-btn { display: inline-grid; place-items: center; width: 2.5rem; height: 2.5rem; padding: 0; }
  .header__actions .header__cta { display: none; }
  .nav {
    position: absolute; top: calc(100% + .5rem); left: 0; right: 0;
    flex-direction: column; padding: .5rem; background: var(--surface); border-radius: 16px;
    box-shadow: 0 0 0 1px var(--line), var(--shadow-lg);
    opacity: 0; transform: translateY(-8px) scale(.98); transform-origin: top; pointer-events: none;
    transition: opacity .2s, transform .35s var(--ease-out-strong);
  }
  .nav.is-open { opacity: 1; transform: none; pointer-events: auto; }
  .nav a { padding: .85rem 1rem; font-size: 1.0625rem; }
  .nav a:hover { background: var(--inset); }
  .nav a.is-active::after { left: auto; right: 1rem; top: 50%; bottom: auto; margin-top: -2px; }
  .nav__glider { display: none; }
}
@media (max-width: 600px) {
  .header { inset: .5rem 0 auto; }
  .brand img { width: 128px; }
  .products { grid-template-columns: 1fr; }
  .products .product:last-child { grid-column: auto; aspect-ratio: 3 / 4; }
  .product { aspect-ratio: 4 / 5; }
  .stats { grid-template-columns: 1fr; }
  .stat + .stat { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
  .stat { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; padding: 1rem 0; }
  .stat > span { margin: 0; }
  .about__badge { position: static; margin-top: -2.5rem; margin-inline: 1rem; position: relative; }
  .hero__social { margin-left: 0; }
  .contact { border-radius: var(--radius-window); padding: 1.75rem 1rem 1rem; }
  .contact > div:first-child { padding-inline: .5rem; }
  .contact-list { padding: .25rem; }
  .contact-row { gap: .75rem; padding: .85rem .75rem; }
  .contact-row .tile { width: 2.25rem; height: 2.25rem; }
  .contact-row .tile svg { width: 1.1rem; height: 1.1rem; }
  .scroll-cue { display: none; }
  .fab { right: 1rem; bottom: 1rem; }
}

/* ==========================================================
   Movimento — solo transform/opacity (GPU), niente layout
   ========================================================== */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

/* Comparsa generica */
.js .reveal { opacity: 0; transform: translate3d(0, 40px, 0); transition: opacity 1s var(--ease-out-strong), transform 1.2s var(--ease-out-strong); transition-delay: var(--d, 0ms); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* Titoli parola per parola */
.w { display: inline-block; overflow: hidden; vertical-align: top; padding: 0 .06em .12em 0; margin: 0 -.06em -.12em 0; }
.w > span { display: inline-block; transform: translate3d(0, 110%, 0) rotate(4deg); transform-origin: 0 100%; transition: transform 1.1s var(--ease-out-strong); transition-delay: calc(var(--wi, 0) * 55ms + var(--d, 0ms)); }
.is-in .w > span, .w.is-in > span { transform: none; }
.js [data-split].reveal { opacity: 1; transform: none; }

/* Immagini che si aprono */
.js .reveal-img { clip-path: inset(14% 10% 14% 10% round var(--radius-window)); transition: clip-path 1.4s var(--ease-out-strong); transition-delay: var(--d, 0ms); }
.js .reveal-img img { transform: scale(1.25); transition: transform 1.8s var(--ease-out-strong); transition-delay: var(--d, 0ms); }
.js .reveal-img.is-in { clip-path: inset(0 0 0 0 round var(--radius-window)); }
.js .reveal-img.is-in img { transform: scale(1); }
.js .product.reveal-img, .js .bento figure.reveal-img { opacity: 1; transform: none; }
@media (hover: hover) { .product:hover img, .bento figure:hover img { transform: scale(1.06) !important; } }
/* dopo l'ingresso lo zoom risponde in fretta, con una molla */
.js .reveal-img.is-settled img { transition: transform var(--dur-move) var(--spring); transition-delay: 0ms; }

/* Linee che si disegnano */
.js .eyebrow::before { transform: scaleX(0); transform-origin: left; transition: transform 1s var(--ease-out-strong) .2s; }
.js .is-in .eyebrow::before, .js .eyebrow.is-in::before { transform: none; }

/* Statement: le parole chiave si illuminano */
.statement mark, .statement em { transition: color 1.2s var(--ease-out-strong) .4s; }
.js .statement:not(.is-lit) mark { color: var(--on-forest-2); }
.js .statement:not(.is-lit) em { color: var(--on-forest-2); }

/* Marquee: pausa al passaggio */
.marquee:hover .marquee__track { animation-play-state: paused; }

/* Touch: feedback e freccia sempre visibile */
@media (hover: none) {
  .product__arrow { transform: none; opacity: 1; }
  .product:active img { transform: scale(1.04); }
  .pillar:active, .btn:active, .icon-btn:active { transform: scale(.97); }
}

/* ==========================================================
   Mobile
   ========================================================== */
@media (max-width: 600px) {
  :root { --gutter: 1.125rem; }
  .section { padding-block: 4.5rem; }

  /* header compatto e pulito */
  .header__bar { height: 3.5rem; padding: 0 .375rem 0 .875rem; border-radius: 14px; background: color-mix(in oklab, var(--surface) 92%, transparent); }
  .header__actions .menu-btn { width: 2.625rem; height: 2.625rem; box-shadow: none; background: var(--inset); }

  /* hero */
  .hero__bg img { object-position: 46% 50%; }
  .hero::after { background: linear-gradient(180deg, #0f1a1266 0%, #0000 20%, #0000 35%, #0b140de6 78%, #0b140d 100%); }
  .hero__inner { padding-block: 6rem 1.75rem; }
  .hero__content { gap: 1.1rem; }
  .hero__brand { font-size: clamp(3.5rem, 19vw, 5.5rem); line-height: .86; }
  .hero__brand em { display: block; }
  .hero__sub { font-size: 1.0625rem; max-width: 20rem; }
  .hero__actions { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; margin-top: .4rem; }
  .hero__actions .btn { width: 100%; padding: 0 .75rem; font-size: .875rem; height: 3rem; }
  .hero__social { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
  .hero__social .icon-btn { width: 100%; height: 2.75rem; border-radius: 999px; gap: .5rem; display: inline-flex; justify-content: center; align-items: center; font-size: .875rem; font-weight: 500; }
  .hero__social .icon-btn::after { content: attr(aria-label); }

  .marquee__group { gap: 1.75rem; padding: .9rem 1rem; font-size: 1.25rem; }

  /* titoli */
  .section-head h2, .bento__text h2 { font-size: clamp(2.25rem, 11vw, 2.875rem); }
  .section-head--split { margin-bottom: 2rem; }

  /* prodotti in carosello */
  .products { display: flex; gap: .75rem; overflow-x: auto; scroll-snap-type: x mandatory; margin-inline: calc(-1 * var(--gutter)); padding: 0 var(--gutter) .5rem; scrollbar-width: none; overscroll-behavior-x: contain; }
  .products::-webkit-scrollbar { display: none; }
  .products .product, .products .product:last-child { flex: 0 0 80%; aspect-ratio: 3 / 4; scroll-snap-align: center; grid-column: auto; }
  .product h3 { font-size: 2.75rem; }
  .carousel-dots { display: flex; justify-content: center; gap: .4rem; margin-top: 1rem; }
  .carousel-dots i { width: 6px; height: 6px; border-radius: 99px; background: var(--line-strong); transition: width .4s var(--ease-out-strong), background-color .3s; }
  .carousel-dots i.is-on { width: 22px; background: var(--accent); }

  /* filosofia */
  .statement { font-size: 1.5rem; line-height: 1.25; }
  .pillars { gap: .625rem; margin-top: 2.5rem; }
  .pillar { padding: 1.25rem; display: grid; grid-template-columns: auto 1fr; gap: .25rem 1rem; align-items: start; }
  .pillar__top { grid-row: span 2; margin: 0; }
  .pillar__n { display: none; }
  .pillar h3 { font-size: 1.1875rem; margin: .1rem 0 0; }
  .pillar p { font-size: .9375rem; }

  /* chi siamo */
  .about__frame img { aspect-ratio: 1; }
  .prose { font-size: 1rem; }

  /* citazione */
  .quote { padding-block: 5.5rem; }
  .quote blockquote p { font-size: 2rem; }

  /* servizi */
  .bento { gap: .625rem; }
  .bento__big { aspect-ratio: 4 / 3; }
  .bento figure { border-radius: var(--radius-card); }

  .footer { margin-top: 4.5rem; padding-top: 3rem; }
  .footer__cols { gap: 2rem 2.5rem; }
}
@media (min-width: 601px) { .carousel-dots { display: none; } }

/* Riduzione movimento: niente parallasse, zoom continui o scorrimento fluido;
   restano dissolvenze e piccoli spostamenti */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero__bg img, .marquee__track, .pulse::after, .scroll-cue::after { animation: none !important; }
  .js .hero [data-in] { animation-name: rise-soft; }
  .js .reveal { transform: translate3d(0, 12px, 0); transition: opacity .9s ease, transform .9s ease; }
  .w > span { transform: none !important; }
  .js [data-split]:not(.reveal [data-split]) { opacity: 0; transition: opacity .9s ease; }
  .js [data-split].is-in { opacity: 1; }
  .js .reveal-img { clip-path: none; opacity: 0; transition: opacity 1s ease; }
  .js .reveal-img.is-in { clip-path: none; opacity: 1; }
  .js .reveal-img img { transform: none; transition: transform .6s ease; }
}

/* ==========================================================
   Passaggio "Apple design"
   - molle al posto delle curve fisse (smorzamento 1.0 di base,
     0.8 solo dove serve un minimo di fisicità)
   - feedback alla pressione, istantaneo
   - hover solo dove esiste un puntatore
   - menu che nasce dal pulsante, con velo per mettere a fuoco
   - materiali che rispettano trasparenza e contrasto ridotti
   ========================================================== */
:root {
  /* molla critica (damping 1.0) — usare con --dur-move (response 0.4) o --dur-snappy (0.3) */
  --spring: linear(0, 0.0228, 0.0786, 0.1529, 0.2356, 0.3202, 0.4023, 0.4795, 0.5502, 0.6138, 0.6703, 0.7199, 0.7631, 0.8004, 0.8323, 0.8596, 0.8827, 0.9023, 0.9188, 0.9326, 0.9442, 0.9539, 0.9619, 0.9686, 0.9742, 0.9788, 0.9825, 0.9857, 0.9883, 0.9904, 0.9921, 0.9936, 0.9948, 0.9957, 0.9965, 0.9972, 0.9977, 0.9981, 0.9985, 0.9988, 1);
  /* molla sotto-smorzata (damping 0.8) — piccolo superamento, per oggetti "lanciati" */
  --spring-bounce: linear(0, 0.02, 0.0713, 0.143, 0.2265, 0.3153, 0.4045, 0.4906, 0.5712, 0.645, 0.7109, 0.7689, 0.8189, 0.8615, 0.897, 0.9263, 0.9499, 0.9687, 0.9832, 0.9942, 1.0023, 1.0079, 1.0117, 1.0139, 1.015, 1.0151, 1.0147, 1.0138, 1.0127, 1.0114, 1.01, 1.0087, 1.0074, 1.0062, 1.0051, 1.0042, 1.0033, 1.0026, 1.002, 1.0014, 1);
  --dur-move: 590ms;   /* response 0.4 */
  --dur-snappy: 440ms; /* response 0.3 */
  --dur-sheet: 400ms;  /* response 0.3, damping 0.8 */
}

html { -webkit-tap-highlight-color: transparent; }
body { font-optical-sizing: auto; }
a, button { touch-action: manipulation; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Tipografia: tracking per dimensione */
.lead, .prose { letter-spacing: -.003em; }
.hero__sub { letter-spacing: 0; }
.contact-row__label, .footer__col .footer__title, .eyebrow { letter-spacing: .12em; }

/* Risposta: la pressione si vede subito, il rilascio torna con una molla */
.btn, .icon-btn, .copy, .product, .pillar, .fab, .contact-row {
  transition-property: transform, background-color, box-shadow, color, opacity;
  transition-duration: var(--dur-snappy);
  transition-timing-function: var(--spring);
}
.btn:active, .icon-btn:active, .copy:active, .fab:active { transform: scale(.96); transition: transform 90ms ease-out; }
.product:active, .pillar:active { transform: scale(.98); transition: transform 90ms ease-out; }
.contact-row:active { background: #ffffff14; transition-duration: 60ms; }
.nav a:active { opacity: .6; transition: opacity 60ms; }

/* Hover solo con puntatore (niente stati "appiccicati" su touch) */
@media (hover: none) {
  .icon-btn:hover, .pillar:hover, .fab:hover { transform: none; }
  .btn .arrow, .btn:hover .arrow { transform: none; }
}
@media (hover: hover) {
  .fab:hover { transform: scale(1.06); }
}

.header__bar { transition: background-color .3s, box-shadow .3s; }
/* vibrancy: testo sul vetro un filo più pesante e contrastato */
.nav a { color: color-mix(in oklab, var(--ink) 78%, transparent); letter-spacing: .005em; }

/* Icona menu: le due linee diventano una X — il controllo mostra dove porta */
.burger { position: relative; width: 18px; height: 12px; display: block; }
.burger i { position: absolute; left: 0; right: 0; height: 2px; border-radius: 2px; background: currentColor; transition: transform var(--dur-snappy) var(--spring); }
.burger i:first-child { top: 1px; }
.burger i:last-child { bottom: 1px; }
.menu-btn[aria-expanded="true"] .burger i:first-child { transform: translateY(4px) rotate(45deg); }
.menu-btn[aria-expanded="true"] .burger i:last-child { transform: translateY(-4px) rotate(-45deg); }

/* Velo: mette a fuoco il menu, tocco fuori = chiude */
.scrim { position: fixed; inset: 0; z-index: 58; background: #0b140d59; opacity: 0; pointer-events: none; transition: opacity var(--dur-snappy) var(--spring); }
body.menu-open .scrim { opacity: 1; pointer-events: auto; }

@media (max-width: 860px) {
  /* il pannello nasce dal pulsante (in alto a destra) e ci ritorna */
  .nav {
    left: auto; width: min(18rem, 100%); transform-origin: calc(100% - 1.25rem) -0.5rem;
    transform: scale(.6); opacity: 0;
    transition: transform var(--dur-sheet) var(--spring-bounce), opacity 180ms ease;
  }
  .nav.is-open { transform: none; opacity: 1; transition: transform var(--dur-sheet) var(--spring-bounce), opacity 120ms ease; }
  .nav a { font-weight: 500; }
  .nav a + a::before { content: ""; position: absolute; left: 1rem; right: 1rem; top: 0; height: 1px; background: var(--line); transition: opacity .15s; }
  .nav a:hover + a::before, .nav a:hover::before { opacity: 0; }
}

/* Pulsante WhatsApp: compare con molla critica (non è un oggetto lanciato) */
.fab { transition: transform var(--dur-move) var(--spring), opacity .25s ease; }

/* Copia: feedback di completamento con un piccolo "pop" */
.copy .i-check { transition: opacity .15s, transform var(--dur-snappy) var(--spring-bounce); }

/* Trasparenza ridotta: materiali pieni */
@media (prefers-reduced-transparency: reduce) {
  .header__bar, .header.is-scrolled .header__bar { background: var(--surface); backdrop-filter: none; -webkit-backdrop-filter: none; }
  .badge, .btn--glass, .icon-btn, .hero__card, .pill { background: #0b140de0; }
  .scrim { background: #0b140d99; }
}

/* Contrasto elevato: superfici quasi piene e bordi definiti */
@media (prefers-contrast: more) {
  :root {
    --ink-2: oklch(30% .02 150); --ink-3: oklch(38% .02 150);
    --line: oklch(62% .01 95); --line-strong: oklch(45% .01 95);
    --on-forest-2: oklch(93% .01 120); --forest-line: oklch(100% 0 0 / .45);
  }
  .header__bar { background: var(--surface); box-shadow: 0 0 0 1.5px var(--ink); backdrop-filter: none; }
  .badge, .btn--glass, .icon-btn, .hero__card, .pill { background: #0b140df0; box-shadow: inset 0 0 0 1.5px #fff; }
  .hero::after { background: linear-gradient(180deg, #0b140d80, #0b140df0); }
  .nav a { color: var(--ink); }
}

/* Riduzione movimento: dissolvenze al posto di molle e scale */
@media (prefers-reduced-motion: reduce) {
  .nav, .nav.is-open { transform: none !important; transition: opacity .2s ease !important; }
  .btn:active, .icon-btn:active, .copy:active, .fab:active, .product:active, .pillar:active { transform: none; opacity: .75; }
  .burger i { transition: none; }
}

/* Finito l'ingresso, gli elementi tornano reattivi: molle brevi, nessun ritardo */
.js .reveal.is-settled {
  transition: transform var(--dur-snappy) var(--spring), opacity .3s ease, background-color .2s, box-shadow .3s;
  transition-delay: 0ms;
}
.js .reveal.is-settled:active { transition-duration: 90ms; }

/* Destinazioni delle ancore: ricevono il focus via script, senza contorno */
[tabindex="-1"]:focus { outline: none; }

/* Senza stili inline (CSP rigida): sprite SVG, ritardi dell'hero, footer legale */
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.hero [data-in="1"] { --i: 1; }
.hero [data-in="2"] { --i: 2; }
.hero [data-in="3"] { --i: 3; }
.hero [data-in="4"] { --i: 4; }
.footer__bottom--flush { padding-top: 0; }

/* ---------- Footer centrato su mobile ---------- */
.nowrap { white-space: nowrap; }
@media (max-width: 600px) {
  .footer { text-align: center; padding-bottom: 6.5rem; } /* spazio per il pulsante WhatsApp */
  .footer__top { flex-direction: column; align-items: center; gap: 2.5rem; }
  .footer__top > div:first-child { display: grid; justify-items: center; }
  .footer__claim { margin-inline: auto; }
  .footer__cols { width: 100%; flex-direction: column; align-items: center; gap: 2rem; }
  .footer__col { justify-items: center; }
  .footer__social { justify-content: center; }
  .footer__bottom { flex-direction: column; align-items: center; gap: 1rem; }
  .footer__bottom nav { justify-content: center; flex-wrap: wrap; gap: .5rem 1.25rem; }
  .footer__legal span:not(.footer__sep) { display: block; }
  .footer__legal .footer__sep { display: none; }
  .footer__legal #year { display: inline; }
}

/* ==========================================================
   Revisione mobile
   ========================================================== */

/* Aree sicure iPhone (notch / Dynamic Island / barra home), con viewport-fit=cover */
.header { padding-inline: env(safe-area-inset-left) env(safe-area-inset-right); top: max(.75rem, env(safe-area-inset-top)); }
.fab { right: max(1.25rem, env(safe-area-inset-right)); bottom: max(1.25rem, env(safe-area-inset-bottom)); }
/* aree sicure nel margine esterno (non nel padding: la barra dell'header è anch'essa un .container) */
.container { width: min(100% - 2 * max(var(--gutter), env(safe-area-inset-left), env(safe-area-inset-right)), var(--container)); }

@media (max-width: 600px) {
  .header { top: max(.5rem, env(safe-area-inset-top)); }
  .fab { right: max(1rem, env(safe-area-inset-right)); bottom: max(1rem, env(safe-area-inset-bottom)); }
  .footer { padding-bottom: calc(6.5rem + env(safe-area-inset-bottom)); }

  /* Etichette: tracking più stretto, così stanno su una riga */
  .eyebrow { letter-spacing: .08em; }

  /* Chi siamo: il badge si centra sotto la foto (annulla lo spostamento del layout tablet) */
  .about__badge { right: auto; bottom: auto; margin: -2.25rem auto 0; width: calc(100% - 2rem); }

  /* Contatti: WhatsApp a tutta larghezza, gli altri due affiancati */
  .contact .lead { text-wrap: wrap; }
  .contact__actions { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; margin-top: 1.5rem; }
  .contact__actions .btn { width: 100%; }
  .contact__actions .btn--wa { grid-column: 1 / -1; height: 3.125rem; font-size: 1rem; }

  /* Footer: bersagli di tocco più ampi */
  .footer__col { gap: 0; }
  .footer__col a, .footer__col > span { padding-block: .5rem; }
  .footer__col .footer__title { margin-bottom: .25rem; }
  .footer__social { gap: .75rem; }
  .footer__social a { width: 2.875rem; height: 2.875rem; }
  .footer__bottom nav a { padding-block: .5rem; }
}
@media (max-width: 600px) {
  .footer__social { margin-top: .5rem; }
  /* le colonne non si allargano oltre lo schermo e il testo dei pulsanti può andare a capo */
  .hero__actions, .hero__social, .contact__actions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero__actions .btn, .contact__actions .btn { white-space: normal; text-align: center; line-height: 1.15; }
}
@media (max-width: 340px) {
  .hero__brand { font-size: 3.25rem; }
  .hero__actions .btn { font-size: .8125rem; padding: 0 .5rem; }
}

/* Tablet: pilastri compatti come su mobile (icona a fianco, niente spazio vuoto) */
@media (min-width: 601px) and (max-width: 900px) {
  .pillars { gap: .75rem; margin-top: 3rem; }
  .pillar { padding: 1.5rem; display: grid; grid-template-columns: auto 1fr auto; gap: .25rem 1.25rem; align-items: start; }
  .pillar__top { display: contents; }
  .pillar__top .tile { grid-row: span 2; }
  .pillar__n { grid-column: 3; grid-row: 1; }
  .pillar h3 { grid-column: 2; grid-row: 1; font-size: 1.25rem; margin: .15rem 0 0; }
  .pillar p { grid-column: 2; grid-row: 2; }
}

/* H1 dell'home = marchio + frase descrittiva (SEO), aspetto invariato */
.hero h1 { display: grid; gap: 1.5rem; margin: 0; }
.hero__brand { display: block; }
.hero h1 .hero__sub { display: block; font-weight: 400; line-height: 1.6; letter-spacing: 0; text-wrap: pretty; }
.footer__title { margin: 0; font-weight: 600; }
@media (max-width: 600px) { .hero h1 { gap: 1.1rem; } }

/* Pulsante "Contattaci" nell'header: verde del marchio, angoli concentrici con la barra
   (raggio barra 18px − spazio interno 8px = 10px), ombra leggera */
.header__bar { border-radius: 18px; }
.header__cta {
  height: 2.75rem; padding: 0 .95rem 0 1.15rem; border-radius: 10px;
  font-size: .875rem; font-weight: 600; letter-spacing: .005em;
  box-shadow: inset 0 1px 0 #ffffff80, 0 0 0 1px color-mix(in oklab, var(--accent) 30%, transparent), 0 2px 8px color-mix(in oklab, var(--leaf) 35%, transparent);
}
.header__cta .arrow { width: 1rem; height: 1rem; }
@media (hover: hover) {
  .header__cta:hover { box-shadow: inset 0 1px 0 #ffffff80, 0 0 0 1px color-mix(in oklab, var(--accent) 40%, transparent), 0 4px 14px color-mix(in oklab, var(--leaf) 45%, transparent); }
}

/* Sottotitolo dell'home: una riga quando c'è spazio; se va a capo, righe bilanciate */
.hero h1 .hero__sub { max-width: 46rem; text-wrap: balance; }
@media (max-width: 600px) { .hero h1 .hero__sub { max-width: 22rem; } }

/* Pagine legali: data, sottosezioni, link leggibili */
.legal__meta { font-size: .875rem; color: var(--ink-3); margin: -.75rem 0 1.75rem; }
.legal h3 { font-size: 1rem; letter-spacing: -.01em; margin: 1.5rem 0 .4rem; color: var(--ink); }
.legal h2 + h3 { margin-top: .75rem; }
.legal strong { color: var(--ink); font-weight: 600; }
.legal__doc a:not(.btn) { color: var(--accent-ink); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 2px; overflow-wrap: anywhere; }
.legal__doc a:not(.btn):hover { text-decoration-thickness: 2px; }
.legal ul + p { margin-top: .75rem; }
@media (max-width: 600px) { .legal { padding-top: 6rem; } .legal__doc { padding: 1.5rem 1.25rem; } }
