/* MO SNACK · stile principale (mobile first) */

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}
html.menu-open { overflow: hidden; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--ink);
  -webkit-font-smoothing: antialiased;
}

main { padding-top: var(--header-h); background: var(--paper); }

img, svg { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
address { font-style: normal; }
button { font: inherit; color: inherit; }

:focus-visible { outline: 2px solid var(--focus, var(--ink)); outline-offset: 3px; }
.site-header, .hero, .section--ink, .final, .footer, .dock { --focus: var(--green-bright); }

.container { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }

.skip-link {
  position: fixed; left: 12px; top: -80px; z-index: 100;
  padding: .75rem 1rem; border-radius: 8px; background: #fff; color: var(--ink); font-weight: 700;
}
.skip-link:focus { top: 12px; }

/* ---------- tipografia ---------- */
.h2 {
  font-size: clamp(1.95rem, 1.2rem + 2.6vw, 3.1rem);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -.03em;
  max-width: 24ch;
  text-wrap: balance;
}
.h2--sm { font-size: clamp(1.75rem, 1.15rem + 2.1vw, 2.7rem); max-width: 24ch; }
.h2--xl { font-size: clamp(2.25rem, 1rem + 5vw, 4.75rem); max-width: 17ch; letter-spacing: -.035em; line-height: 1.02; }
.accent { color: var(--green-deep); }
.section--ink .accent, .final .accent, .hero .accent, .page-head .accent { color: var(--green-bright); }
/* pallino arancione: lo stesso accento del logo, riusato come punto decorativo dopo un titolo */
.accent .dot { display: inline-block; width: .16em; height: .16em; margin: 0 0 .55em .06em; border-radius: 50%; background: var(--orange); vertical-align: top; }

.eyebrow {
  margin-bottom: 1.25rem;
  font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--green-deep);
}
.section--ink .eyebrow { color: var(--green-bright); }
.section--green .eyebrow { color: var(--ink); }

.lead {
  margin-top: 1.4rem;
  max-width: 36rem;
  font-size: clamp(1.06rem, 1rem + .35vw, 1.28rem);
  line-height: 1.55;
  color: var(--text-soft);
}
.section--ink .lead, .final .lead { color: var(--on-dark-soft); }
.section--green .lead { color: var(--ink); }

.prose { margin-top: 1.75rem; max-width: 34rem; color: var(--text-soft); font-size: 1.0625rem; line-height: 1.7; }
.prose p + p { margin-top: 1.1em; }

/* ---------- pulsanti ---------- */
.btn {
  --bg: var(--green-bright); --fg: var(--ink); --bg-h: #fff; --fg-h: var(--ink); --bd: transparent;
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: .7em;
  min-height: 48px; padding: 0 1.35rem;
  border: 1.5px solid var(--bd); border-radius: var(--radius);
  background: var(--bg); color: var(--fg);
  font-size: .98rem; font-weight: 700; line-height: 1; letter-spacing: -.005em; white-space: nowrap;
  cursor: pointer;
  transition: color var(--dur-fast) ease, border-color var(--dur-fast) ease, transform var(--dur-fast) ease;
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--bg-h); transform: translateY(101%);
  transition: transform .45s var(--ease);
}
.btn__icon { width: 1.15em; height: 1.15em; flex: none; transition: transform .35s var(--ease); }
.btn:active { transform: translateY(1px); }
@media (hover: hover) {
  .btn:hover { color: var(--fg-h); }
  .btn:hover::before { transform: none; }
  .btn:hover .btn__icon:not(.btn__icon--wa) { transform: translateX(4px); }
}
.btn:focus-visible::before { transform: none; }
.btn:focus-visible { color: var(--fg-h); }

.btn--ghost { --bg: transparent; --fg: var(--on-dark); --bg-h: var(--on-dark); --fg-h: var(--ink); --bd: rgba(245, 241, 235, .38); }
.btn--dark  { --bg: var(--ink); --fg: #fff; --bg-h: var(--green-bright); --fg-h: var(--ink); }
.section--green .btn--dark { --bg-h: #fff; }
.btn--sm { min-height: 44px; padding: 0 1.1rem; font-size: .9rem; }
.btn--lg { min-height: 56px; padding: 0 1.7rem; font-size: 1.02rem; }
.btn--block { width: 100%; }
.btn__icon--wa { width: 1.3em; height: 1.3em; }

/* ---------- header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--header-h);
  background: var(--ink);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease;
}
.site-header.is-scrolled { border-bottom-color: var(--line-dark); }
.site-header__bar { position: relative; z-index: 1; height: 100%; display: flex; align-items: center; gap: 12px; }

.brand { display: block; flex: none; }
.brand img { height: 34px; width: auto; }

.nav, .site-header__cta { display: none; }

.wa-pill {
  margin-left: auto;
  display: inline-flex; align-items: center; gap: 8px;
  height: 44px; padding: 0 16px 0 12px;
  border-radius: 999px; background: var(--green-bright); color: var(--ink);
  font-size: .9rem; font-weight: 700;
  transition: background-color var(--dur-fast) ease;
}
.wa-pill svg { width: 22px; height: 22px; }
@media (hover: hover) { .wa-pill:hover { background: #fff; } }

.burger {
  position: relative; flex: none; width: 44px; height: 44px;
  border: 0; border-radius: 10px; background: transparent; cursor: pointer;
}
.burger span {
  position: absolute; left: 11px; right: 11px; height: 2px; border-radius: 2px; background: #fff;
  transition: transform .4s var(--ease), top .4s var(--ease);
}
.burger span:nth-child(1) { top: 16px; }
.burger span:nth-child(2) { top: 26px; }
.burger[aria-expanded="true"] span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { top: 21px; transform: rotate(-45deg); }

/* menu mobile */
.menu {
  position: fixed; inset: 0; z-index: 0;
  padding-top: var(--header-h);
  background: var(--ink);
  clip-path: inset(0 0 100% 0);
  visibility: hidden;
  transition: clip-path .55s var(--ease-in-out), visibility 0s linear .55s;
  overflow-y: auto;
}
.menu.is-open { clip-path: inset(0); visibility: visible; transition-delay: 0s; }
.menu__nav { min-height: 100%; display: flex; flex-direction: column; justify-content: space-between; gap: 28px; padding-block: 12px max(28px, env(safe-area-inset-bottom)); }
.menu__nav li { border-bottom: 1px solid var(--line-dark); }
.menu__nav li a {
  display: block; padding: .55em 0;
  font-size: clamp(1.7rem, 7.4vw, 2.3rem); font-weight: 800; letter-spacing: -.03em; line-height: 1.15; color: #fff;
}
.menu__nav li a[aria-current="page"] { color: var(--green-bright); }
.menu__actions { display: grid; gap: 10px; }
.menu li, .menu__actions { opacity: 0; transform: translate3d(0, 14px, 0); transition: opacity .5s ease, transform .6s var(--ease); }
.menu.is-open li, .menu.is-open .menu__actions { opacity: 1; transform: none; transition-delay: calc(.18s + var(--i, 0) * 45ms); }

@media (min-width: 1100px) {
  .brand img { height: 42px; }
  .site-header__bar { gap: 32px; }
  .wa-pill, .burger, .menu { display: none; }
  .nav { display: block; flex: 1; }
  .nav__list { display: flex; justify-content: flex-end; gap: clamp(16px, 2vw, 30px); }
  .nav a {
    position: relative; display: block; padding: 10px 0;
    font-size: .875rem; font-weight: 600; color: var(--on-dark-soft);
    transition: color var(--dur-fast) ease;
  }
  .nav a::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: 4px; height: 2px;
    background: var(--green-bright); transform: scaleX(0); transform-origin: left;
    transition: transform .4s var(--ease);
  }
  .nav a:hover, .nav a[aria-current="page"] { color: #fff; }
  .nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
  /* "Servizi" apre un sottomenu (Tutti i servizi, Porta un amico): con il mouse o con Tab */
  .nav__group { position: relative; }
  .nav__group > a { padding-right: 16px; }
  .nav__group::before {
    content: ""; position: absolute; right: 0; top: 50%; width: 10px; height: 10px; margin-top: -5px; pointer-events: none;
    background: var(--on-dark-soft);
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") center / contain no-repeat;
            mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") center / contain no-repeat;
  }
  .nav__group:has([aria-current="page"]) > a { color: #fff; }
  .nav__sub {
    position: absolute; top: 100%; left: -18px; min-width: 210px; padding: 8px 18px;
    background: var(--ink); border: 1px solid var(--line-dark); border-radius: 10px;
    opacity: 0; visibility: hidden; transform: translate3d(0, 6px, 0);
    transition: opacity .25s ease, transform .3s var(--ease), visibility 0s linear .3s;
  }
  .nav__group:hover .nav__sub, .nav__group:focus-within .nav__sub { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
  .nav a { white-space: nowrap; }
  .site-header__cta { display: inline-flex; }
}
/* portatili piccoli: 9 voci + pulsante non ci stanno; "Contatti" resta comunque nella barra */
@media (min-width: 1100px) and (max-width: 1279px) {
  .site-header__cta { display: none; }
}

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; background: var(--ink); color: var(--on-dark); }

.hero__media {
  position: relative; height: clamp(320px, 108vw, 62svh); max-height: 620px;
  -webkit-mask-image: linear-gradient(to bottom, #000 58%, transparent 100%);
          mask-image: linear-gradient(to bottom, #000 58%, transparent 100%);
}
.hero__media picture { display: block; height: 100%; will-change: transform; transform: translate3d(0, var(--py, 0px), 0); }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 46% 42%; }

.hero__copy { position: relative; z-index: 1; margin-top: -48px; padding: 0 var(--gutter) 56px; }

.hero__title {
  font-size: clamp(2.15rem, 9.3vw, 3.4rem);
  font-weight: 800; line-height: 1.03; letter-spacing: -.038em; color: #fff;
}
.hero__title .line { display: block; }
.hero__lead { margin-top: 1.3rem; max-width: 30rem; font-size: clamp(1.02rem, .96rem + .3vw, 1.2rem); line-height: 1.55; color: #d8cfc4; }
.hero__actions { margin-top: 2rem; display: grid; gap: 10px; }

@media (min-width: 560px) {
  .hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
}

/* fascia "cosa installiamo" e scrim di leggibilità */
.hero__shade { display: none; }
.hero__strip { position: relative; z-index: 1; padding-inline: var(--gutter); }
.hero__strip-in { display: grid; gap: 14px; padding-block: 18px; border-top: 1px solid var(--line-dark); }
.hero__cats { display: flex; flex-wrap: wrap; gap: 4px 22px; font-size: .95rem; font-weight: 600; }
.hero__cats a { color: #fff; transition: color var(--dur-fast) ease; }
.hero__more { display: inline-flex; align-items: center; gap: .55em; width: fit-content; font-size: .9rem; font-weight: 600; color: var(--on-dark-soft); transition: color var(--dur-fast) ease; }
.hero__more svg { width: 1.05em; height: 1.05em; transition: transform .35s var(--ease); }
@media (hover: hover) {
  .hero__cats a:hover, .hero__more:hover { color: var(--green-bright); }
  .hero__more:hover svg { transform: translateX(4px); }
}

@media (min-width: 1000px) {
  .hero { display: grid; grid-template-rows: 1fr auto; min-height: clamp(620px, calc(100svh - var(--header-h)), 860px); }
  .hero__media { position: absolute; inset: 0; height: auto; max-height: none; -webkit-mask-image: none; mask-image: none; }
  .hero__media picture { position: absolute; inset: -44px 0 0 0; height: auto; }
  .hero__media img { object-position: 72% 50%; }
  .hero__shade {
    display: block; position: absolute; inset: 0;
    background:
      linear-gradient(0deg, rgba(21, 17, 15, .82) 0, rgba(21, 17, 15, 0) 24%),
      linear-gradient(90deg, rgba(21, 17, 15, .88) 0, rgba(21, 17, 15, .72) 30%, rgba(21, 17, 15, .18) 56%, rgba(21, 17, 15, 0) 70%);
  }
  .hero__copy { position: relative; z-index: 1; grid-row: 1; align-self: center; margin: 0; padding: 64px 24px 48px max(var(--gutter), calc((100vw - var(--max)) / 2)); }
  .hero__title { font-size: clamp(2.6rem, calc(4.5vw - 4px), 3.75rem); }
  .hero__lead { max-width: 28rem; }
  .hero__actions { margin-top: 2.4rem; }
  .hero__strip { grid-row: 2; background: rgba(21, 17, 15, .9); padding-inline: 0; }
  .hero__strip-in { grid-template-columns: 1fr auto; align-items: center; border-top: 0; padding-block: 20px; }
}

/* ---------- sezioni ---------- */
.section { padding-block: var(--section-y); }
.section--paper { background: var(--paper); }
.section--cream { background: var(--cream); }
.section--white { background: #fff; }
.section--ink   { background: var(--ink); color: var(--on-dark); }
.section--green { background: var(--green); color: var(--ink); }

/* testata delle pagine interne */
.page-head { background: var(--ink); color: #fff; padding-block: clamp(56px, 10vw, 128px) clamp(48px, 8vw, 104px); }
.page-head .eyebrow { color: var(--green-bright); }
.page-head .lead { color: var(--on-dark-soft); max-width: 40rem; }
.page-head .accent { color: var(--green-bright); }
.page-head--green { background: var(--green); color: var(--ink); }
.page-head--green .eyebrow, .page-head--green .lead { color: var(--ink); }
.h1 { font-size: clamp(2.1rem, 1.1rem + 4vw, 4rem); font-weight: 800; line-height: 1.04; letter-spacing: -.035em; max-width: 21ch; text-wrap: balance; }

.link-arrow {
  display: inline-flex; align-items: center; gap: .6em;
  padding-bottom: 4px; border-bottom: 2px solid currentColor;
  font-weight: 700; letter-spacing: -.005em;
  transition: color var(--dur-fast) ease;
}
.link-arrow svg { width: 1.1em; height: 1.1em; transition: transform .35s var(--ease); }
@media (hover: hover) {
  .link-arrow:hover { color: var(--green-deep); }
  .section--green .link-arrow:hover { color: #fff; }
  .link-arrow:hover svg { transform: translateX(4px); }
}

/* home: promessa */
.statement { font-size: clamp(1.9rem, 1rem + 3.6vw, 3.6rem); font-weight: 800; line-height: 1.08; letter-spacing: -.035em; max-width: 22ch; text-wrap: balance; }
.section--paper .statement .accent { color: var(--green-deep); }
.intro { display: grid; gap: 40px; align-items: end; }
.intro__side { max-width: 26rem; }
.intro__side p { margin-bottom: 1.5rem; font-size: 1.125rem; line-height: 1.6; color: var(--text-soft); }
@media (min-width: 900px) { .intro { grid-template-columns: minmax(0, 1.5fr) minmax(0, .8fr); gap: clamp(48px, 8vw, 120px); } }

/* home: anteprime */
.teaser { display: grid; gap: 40px; }
.rows { border-bottom: 1px solid var(--line); }
.rows li { border-top: 1px solid var(--line); }
.rows__link {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding-block: 1.4rem;
  font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.4rem); font-weight: 800; letter-spacing: -.03em; line-height: 1.15;
  transition: color var(--dur-fast) ease;
}
.rows__link svg { flex: none; width: .8em; height: .8em; transition: transform .35s var(--ease); }
@media (hover: hover) {
  .rows__link:hover { color: var(--green-deep); }
  .rows__link:hover svg { transform: translateX(6px); }
}
.environments { margin-bottom: 1.75rem; max-width: 30ch; font-size: clamp(1.35rem, 1rem + 1.2vw, 2rem); font-weight: 700; line-height: 1.3; letter-spacing: -.02em; }
@media (min-width: 900px) { .teaser { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(48px, 8vw, 120px); align-items: start; } }

.band { display: grid; gap: 36px; align-items: center; }
.band__actions { display: grid; gap: 1.6rem; justify-items: start; }
@media (min-width: 900px) { .band { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(48px, 8vw, 120px); } }

/* recensioni (vedi commento ANTEPRIMA nella pagina: testi di esempio, non recensioni vere) */
.reviews__head { max-width: 40rem; }
.reviews__list { margin-top: clamp(32px, 5vw, 56px); display: grid; gap: 18px; }
.review { padding: 1.6rem; border: 1px solid var(--line); border-radius: var(--radius); }
.review__stars { color: var(--orange); letter-spacing: .15em; font-size: .9rem; }
.review__text { margin-top: .9rem; font-size: 1.05rem; font-weight: 600; letter-spacing: -.01em; line-height: 1.5; }
.review__by { margin-top: 1.1rem; font-size: .85rem; color: var(--text-soft); }
@media (min-width: 800px) { .reviews__list { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.reviews__foot { margin-top: clamp(24px, 4vw, 40px); }

/* chi siamo */
.about { display: grid; gap: 56px; }
.prose--lg { margin-top: 0; font-size: clamp(1.06rem, 1rem + .35vw, 1.22rem); }
.about__pledge { margin-top: 2.75rem; padding-top: 2rem; border-top: 1px solid var(--line); }
.pledge { font-size: clamp(1.3rem, 1rem + 1.4vw, 1.9rem); font-weight: 800; line-height: 1.2; letter-spacing: -.025em; }
.about__figure { align-self: start; overflow: hidden; border-radius: 4px; background: var(--cream); }
.about__figure img { width: 100%; aspect-ratio: 5 / 5.4; object-fit: cover; object-position: 50% 30%; }
@media (min-width: 900px) {
  .about { grid-template-columns: minmax(0, 1.3fr) minmax(0, .8fr); gap: clamp(48px, 7vw, 110px); align-items: start; }
  .about__figure img { aspect-ratio: 434 / 620; }
}

/* foto intera, senza ritaglio (es. allestimento aree ristoro) */
.about__figure--full img { aspect-ratio: auto; }

/* la storia: fascia verde del marchio, titolo e foto a sinistra, testo e firma a destra */
.story__grid { display: grid; gap: 40px; }
.story__title {
  font-size: clamp(1.9rem, 1rem + 3.6vw, 3.4rem); font-weight: 800; line-height: 1.08; letter-spacing: -.03em;
  max-width: 14ch; text-wrap: balance;
}
.story .accent { color: #fff; }
.story__portrait { width: min(100%, 420px); margin-top: clamp(28px, 4vw, 48px); overflow: hidden; border-radius: 4px; background: var(--ink); }
.story__portrait img { width: 100%; }
.story__sign { margin-top: 2rem; }
/* la firma ha lo sfondo bianco nel file: "multiply" lo fa sparire sul verde */
.story__signature { height: 64px; width: auto; mix-blend-mode: multiply; }
.story__role { margin-top: .4rem; font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.story__body { max-width: 38rem; font-size: 1.0625rem; line-height: 1.7; }
.story__body p + p { margin-top: 1.1em; }
.story__close { margin-top: 2rem !important; padding-top: 1.6rem; border-top: 2px solid var(--ink); font-size: clamp(1.25rem, 1rem + 1vw, 1.6rem); font-weight: 800; line-height: 1.25; letter-spacing: -.02em; }

@media (min-width: 1000px) {
  .story__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(48px, 7vw, 110px); align-items: start; }
  .story__side { position: sticky; top: calc(var(--header-h) + 32px); }
}

/* servizi: elenchi semplici, senza numeri */
.services { display: grid; gap: 48px; }
.list { border-bottom: 1px solid var(--line); }
.list__item { position: relative; padding-block: 1.7rem; border-top: 1px solid var(--line); }
.list__item h2, .list__item h3 { font-size: clamp(1.35rem, 1.1rem + 1vw, 1.9rem); font-weight: 700; letter-spacing: -.025em; line-height: 1.2; transition: color var(--dur-fast) ease; }
.list__item p { margin-top: .55rem; max-width: 34rem; color: var(--text-soft); }
.list--links h3 a::before { content: ""; position: absolute; inset: 0; }
.list--links h3 a::after {
  content: ""; display: inline-block; width: .7em; height: .7em; margin-left: .45em; vertical-align: -.02em;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 12h15m-6-6 6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 12h15m-6-6 6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: transform .35s var(--ease);
}
@media (hover: hover) {
  .list--links .list__item:hover h3 { color: var(--green-deep); }
  .list--links .list__item:hover h3 a::after { transform: translateX(5px); }
}
.services__figure { width: min(70%, 320px); overflow: hidden; border-radius: 4px; background: var(--cream); }
.services__figure img { width: 100%; }
@media (min-width: 900px) {
  .services { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(48px, 8vw, 120px); align-items: start; }
  .services__figure { width: 100%; max-width: 340px; justify-self: end; position: sticky; top: calc(var(--header-h) + 32px); }
  .services--more { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); }
}

/* soluzioni */
.custom { display: grid; gap: 48px; }
.block h2 { font-size: clamp(1.4rem, 1.1rem + 1.1vw, 1.9rem); font-weight: 800; letter-spacing: -.028em; line-height: 1.15; }
.block p { margin-top: .6rem; max-width: 30rem; color: var(--text-soft); }
.block + .block { margin-top: 2.25rem; }
.custom__figure { overflow: hidden; border-radius: 4px; background: var(--ink); }
.custom__figure img { width: 100%; }
.custom__params { margin-top: 3rem; }
.custom__params .label { font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--text-soft); }
.custom__params ul { margin-top: 1rem; border-bottom: 1px solid var(--line); }
.custom__params li { padding: 1rem 0; border-top: 1px solid var(--line); font-size: clamp(1.05rem, .95rem + .4vw, 1.25rem); font-weight: 700; letter-spacing: -.015em; }
@media (min-width: 900px) {
  .custom { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(48px, 7vw, 110px); align-items: start; }
  .custom__figure { position: sticky; top: calc(var(--header-h) + 32px); }
}

/* per chi */
.directory { border-bottom: 1px solid var(--line); }
.directory__row { display: grid; gap: .5rem; padding-block: 1.6rem; border-top: 1px solid var(--line); }
.directory__row h2 { font-size: clamp(1.45rem, 1.05rem + 1.7vw, 2.4rem); font-weight: 800; letter-spacing: -.03em; line-height: 1.1; transition: transform .5s var(--ease), color var(--dur-fast) ease; }
.directory__row p { color: var(--text-soft); max-width: 30rem; }
@media (hover: hover) { .directory__row:hover h2 { transform: translateX(8px); color: var(--green-deep); } }
@media (min-width: 800px) {
  .directory__row { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); align-items: baseline; column-gap: 48px; padding-block: 2rem; }
}

/* assistenza */
.support { display: grid; gap: 48px; }
.support__ask { margin-bottom: 1rem; font-size: 1.15rem; font-weight: 700; letter-spacing: -.01em; }
.support__phone { display: block; width: fit-content; margin-top: 1.1rem; font-size: 1.35rem; font-weight: 800; letter-spacing: -.02em; border-bottom: 2px solid transparent; transition: border-color var(--dur-fast) ease; }
@media (hover: hover) { .support__phone:hover { border-bottom-color: var(--ink); } }
.support__list { border-bottom: 1px solid rgba(21, 17, 15, .28); }
.support__list li { padding: .9rem 0; border-top: 1px solid rgba(21, 17, 15, .28); font-size: clamp(1.7rem, 1.05rem + 2.6vw, 3rem); font-weight: 800; letter-spacing: -.03em; line-height: 1.1; }
@media (min-width: 900px) {
  .support { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(48px, 8vw, 120px); align-items: center; }
}

/* come funziona: il furgone percorre la linea mentre si scorre */
.journey { --van-w: clamp(150px, 42vw, 300px); --journey-len: 300svh; background: var(--ink); color: var(--on-dark); --focus: var(--green-bright); }
.journey .eyebrow { color: var(--green-bright); }
.journey__stage { padding-block: var(--section-y); }
.journey__scene { margin-top: clamp(40px, 7vw, 80px); }
.journey__track { position: relative; margin-inline: calc(var(--van-w) / 2); }
.journey__rail { position: relative; height: calc(var(--van-w) * .405); }
.journey__van {
  position: absolute; left: 0; bottom: -3px; width: var(--van-w); max-width: none; height: auto;
  transform: translate3d(-50%, 0, 0); will-change: transform;
  filter: drop-shadow(0 8px 10px rgba(0, 0, 0, .35));
}
.journey__line { position: relative; height: 2px; background: rgba(245, 241, 235, .22); }
.journey__progress { position: absolute; inset: 0; background: var(--green-bright); transform-origin: left; transform: scaleX(0); }
.journey__dot {
  position: absolute; top: 50%; left: calc(var(--at) * 25%); width: 14px; height: 14px; margin: -7px 0 0 -7px;
  border-radius: 50%; background: var(--ink); border: 2px solid rgba(245, 241, 235, .5);
  transition: background-color .3s ease, border-color .3s ease;
}
.journey__dot.is-on { background: var(--green-bright); border-color: var(--green-bright); }
.journey__steps { margin-top: 2rem; display: grid; gap: .9rem; }
.journey__step { font-size: 1.15rem; font-weight: 700; letter-spacing: -.02em; line-height: 1.25; }

@media (max-width: 859px) {
  .journey.is-scrolly { height: calc(100svh - var(--header-h) + var(--journey-len)); }
  .journey.is-scrolly .journey__steps { display: block; position: relative; height: 5rem; }
  .journey.is-scrolly .journey__step {
    position: absolute; inset: 0 0 auto 0; text-align: center; font-size: 1.6rem; text-wrap: balance;
    opacity: 0; transform: translate3d(0, 12px, 0);
    transition: opacity .45s var(--ease), transform .45s var(--ease);
  }
  .journey.is-scrolly .journey__step.is-current { opacity: 1; transform: none; }
}
@media (min-width: 860px) {
  .journey { --van-w: clamp(260px, 25vw, 380px); --journey-len: 260svh; }
  .journey.is-scrolly { height: calc(100svh - var(--header-h) + var(--journey-len)); }
  .journey__steps { display: block; position: relative; height: 6rem; margin-top: 2.25rem; }
  .journey__step { position: absolute; top: 0; left: calc(var(--at) * 25%); width: 12rem; text-align: center; font-size: 1.2rem; text-wrap: balance; transform: translateX(-50%); }
  .journey.is-scrolly .journey__step { opacity: 0; transform: translate3d(-50%, 12px, 0); transition: opacity .5s var(--ease), transform .5s var(--ease); }
  .journey.is-scrolly .journey__step.is-on { opacity: 1; transform: translate3d(-50%, 0, 0); }
}
.journey.is-scrolly .journey__stage {
  position: sticky; top: var(--header-h); height: calc(100svh - var(--header-h));
  padding-block: clamp(28px, 5svh, 64px); display: flex; flex-direction: column; overflow: hidden;
}
.journey.is-scrolly .journey__scene { flex: 1; display: flex; align-items: center; margin-top: 0; }
.journey.is-scrolly .journey__track { width: 100%; }

/* cta finale */
.final { position: relative; overflow: hidden; background: var(--ink); color: #fff; padding-block: clamp(88px, 14vw, 190px); }
.final__bg {
  position: absolute; inset: 0;
  background: url("../assets/img/pattern-scuro.webp") center / cover no-repeat;
}
.final__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--ink) 8%, rgba(21, 17, 15, .72) 55%, rgba(21, 17, 15, .3) 100%); }
.final__inner { position: relative; }
.final .h2 { color: #fff; }
.final .lead { margin-top: 1.5rem; }
.final__actions { margin-top: 2.5rem; display: grid; gap: 10px; }
@media (min-width: 560px) { .final__actions { display: flex; flex-wrap: wrap; gap: 12px; } }


/* contatti + form */
.contact { display: grid; gap: 48px; }
.details { border-bottom: 1px solid var(--line); align-self: start; }
.details > div { padding: 1.05rem 0; border-top: 1px solid var(--line); }
.details dt { font-size: .76rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--text-soft); }
.details dd { margin-top: .3rem; font-size: 1.15rem; font-weight: 600; line-height: 1.4; }
.details a { border-bottom: 2px solid transparent; transition: border-color var(--dur-fast) ease; }
@media (hover: hover) { .details a:hover { border-bottom-color: var(--green); } }

.form { display: grid; gap: 18px; align-content: start; }
.field { display: grid; gap: 7px; }
.field label { font-size: .9rem; font-weight: 600; }
.field label small { font-weight: 500; color: var(--text-soft); }
.field input:not([type="checkbox"]), .field select, .field textarea {
  width: 100%; min-height: 52px; padding: 0 14px;
  border: 1.5px solid rgba(21, 17, 15, .28); border-radius: 10px;
  background: #fff; color: var(--ink);
  font: inherit; font-size: 1rem; line-height: 1.4;
  transition: border-color var(--dur-fast) ease, box-shadow var(--dur-fast) ease;
}
.field textarea { padding: 14px; min-height: 120px; resize: vertical; }
.field select { appearance: none; padding-right: 40px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2315110f' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 20px; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(14, 169, 75, .35); }
.form.was-validated .field :invalid { border-color: #b3261e; }
.field__error { font-size: .85rem; font-weight: 600; color: #b3261e; }
.field--check { grid-template-columns: auto 1fr; align-items: start; gap: 12px; }
.field--check input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--green-deep); }
.field--check label { font-weight: 500; font-size: .92rem; line-height: 1.5; }
.field--check a { text-decoration: underline; text-underline-offset: 3px; }
.form__foot { display: grid; gap: 14px; align-items: center; }
.form__note { font-size: .86rem; line-height: 1.5; color: var(--text-soft); max-width: 28rem; }
.form__status { font-weight: 600; }
.form__status:empty { display: none; }
.form__status a { text-decoration: underline; text-underline-offset: 3px; }
.field label small a { text-decoration: underline; text-underline-offset: 3px; }
.field__label { font-size: .9rem; font-weight: 600; }
.field__label small { font-weight: 500; color: var(--text-soft); }

/* lavora con noi: caricamento del CV */
.upload { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }
.upload label { cursor: pointer; }
.upload input:focus-visible + label { outline: 2px solid var(--ink); outline-offset: 3px; }
.upload__name { min-width: 0; max-width: 20rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .92rem; color: var(--text-soft); }

/* porta un amico: invito da condividere */
.share { display: grid; gap: 20px; max-width: 34rem; }
.share__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.share__intro { font-size: 1.0625rem; line-height: 1.65; color: var(--text-soft); }

@media (min-width: 640px) {
  .form { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 18px; }
  .field--wide, .form__status { grid-column: 1 / -1; }
  .form__foot { grid-template-columns: auto minmax(0, 1fr); gap: 24px; }
}
@media (min-width: 900px) {
  .contact { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(48px, 8vw, 120px); align-items: start; }
}

/* ---------- footer ---------- */
.footer { background: var(--ink-3); color: var(--on-dark-soft); padding: 72px 0 calc(32px + 76px); font-size: .95rem; }
.footer a { transition: color var(--dur-fast) ease; }
@media (hover: hover) { .footer a:hover { color: #fff; } }
.footer__grid { display: grid; gap: 44px; }
.footer__brand img { width: 176px; height: auto; }
.footer__nav ul { display: grid; grid-template-columns: repeat(2, max-content); gap: .7rem 2.5rem; }
.footer__contacts { display: grid; gap: .6rem; align-content: start; }
.footer__legal { margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line-dark); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; font-size: .82rem; }
@media (min-width: 800px) {
  .footer__grid { grid-template-columns: 1.1fr 1fr 1.3fr; gap: 48px; }
}
@media (min-width: 1100px) { .footer { padding-bottom: 32px; } }


/* ---------- briciole di pane e pagine dedicate ---------- */
.crumbs { margin-bottom: 1.6rem; font-size: .82rem; font-weight: 600; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: .3rem .55rem; }
.crumbs li { color: var(--on-dark-soft); }
.crumbs li + li::before { content: "/"; margin-right: .55rem; opacity: .55; }
.crumbs a { color: var(--on-dark-soft); transition: color var(--dur-fast) ease; }
.crumbs [aria-current] { color: #fff; }
.page-head--green .crumbs li, .page-head--green .crumbs a { color: rgba(21, 17, 15, .75); }
@media (hover: hover) { .crumbs a:hover { color: #fff; } .page-head--green .crumbs a:hover { color: var(--ink); } }

.landing { display: grid; gap: 0; }
.landing__block { display: grid; gap: .9rem; padding-block: clamp(1.8rem, 3vw, 2.6rem); border-top: 1px solid var(--line); }
.landing__block:last-child { border-bottom: 1px solid var(--line); }
.landing__block h2 { font-size: clamp(1.35rem, 1.1rem + 1vw, 1.9rem); font-weight: 800; letter-spacing: -.028em; line-height: 1.15; }
.landing__body { max-width: 42rem; color: var(--text-soft); font-size: 1.0625rem; line-height: 1.7; }
.landing__body p + p, .landing__body p + ul { margin-top: 1rem; }
.landing__body a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--green); text-underline-offset: 3px; text-decoration-thickness: 2px; }
.landing__list { display: grid; gap: .2rem; }
.landing__list li { padding: .45rem 0; border-top: 1px solid var(--line); font-weight: 600; color: var(--ink); }
.landing__list--cols { display: block; column-width: 13rem; column-gap: 2rem; }
.landing__list--cols li { break-inside: avoid; }
.section--white .landing h2.h2 { margin-bottom: clamp(1.4rem, 3vw, 2.4rem); }
.faq__item { padding-block: 1.4rem; border-top: 1px solid var(--line); }
.faq__item:last-child { border-bottom: 1px solid var(--line); }
.faq dt { font-size: 1.15rem; font-weight: 700; letter-spacing: -.015em; line-height: 1.3; }
.faq dd { margin-top: .5rem; max-width: 42rem; color: var(--text-soft); line-height: 1.65; }
.faq dd a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--green); text-underline-offset: 3px; }
@media (min-width: 900px) {
  .landing__block { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); column-gap: clamp(48px, 8vw, 120px); align-items: start; }
  .landing__block--wide { grid-template-columns: 1fr; }
  .landing__block--wide .landing__body { max-width: none; }
  .landing__list--cols { column-width: 13rem; }
  .faq { max-width: 52rem; }
}

/* footer: link alle pagine per zona e servizio */
.footer__seo { margin-top: 48px; padding-top: 28px; border-top: 1px solid var(--line-dark); display: grid; gap: 28px; }
.footer__seo h2 { margin-bottom: .8rem; font-size: .76rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #fff; }
.footer__seo ul { display: grid; gap: .5rem; font-size: .9rem; }
@media (min-width: 800px) { .footer__seo { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px; } }

/* ---------- barra azioni mobile ---------- */
.dock {
  position: fixed; inset: auto 0 0 0; z-index: 40;
  display: flex; gap: 10px;
  padding: 10px var(--gutter) max(10px, env(safe-area-inset-bottom));
  background: var(--ink); border-top: 1px solid var(--line-dark);
  transform: translate3d(0, 110%, 0); visibility: hidden;
  transition: transform .5s var(--ease), visibility 0s linear .5s;
}
.dock.is-visible { transform: none; visibility: visible; transition-delay: 0s; }
.dock .btn { flex: 1; min-height: 52px; }
.dock__wa {
  flex: none; width: 52px; height: 52px; display: grid; place-items: center;
  border: 1.5px solid rgba(245, 241, 235, .38); border-radius: var(--radius); color: var(--green-bright);
}
.dock__wa svg { width: 26px; height: 26px; }
@media (min-width: 1100px) { .dock { display: none; } }

/* ---------- pagina privacy ---------- */
.doc .notice { padding: 1rem 1.25rem; border-left: 4px solid var(--orange); background: #fff; color: var(--ink); max-width: 42rem; font-weight: 600; }
.doc h2 { margin-top: 2.5rem; font-size: 1.3rem; font-weight: 700; letter-spacing: -.02em; }
.doc h3 { margin-top: 1.5rem; font-size: 1.05rem; font-weight: 700; letter-spacing: -.01em; }
.doc a { text-decoration: underline; text-underline-offset: 3px; }
.doc strong { color: var(--ink); }
.doc p, .doc li { margin-top: .8rem; max-width: 42rem; color: var(--text-soft); }
.doc .notice + h2 { margin-top: 2rem; }

/* ---------- bozza: segnalazione dei testi da confermare ---------- */
html.has-draft [data-draft] { border-bottom: 2px dotted var(--orange); cursor: help; }

/* ---------- utilità ---------- */
.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.btn--ghost-dark { --bg: transparent; --fg: var(--ink); --bg-h: var(--ink); --fg-h: #fff; --bd: rgba(21, 17, 15, .35); }
.page-head__cta { margin-top: 2rem; }

/* elenco servizi a due colonne */
.list--wide { border-top: 1px solid var(--line); border-bottom: 0; }
.list--wide .list__item { border-top: 0; border-bottom: 1px solid var(--line); }
@media (min-width: 900px) {
  .list--wide { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(48px, 8vw, 120px); }
}

/* ---------- catalogo modelli ---------- */
.models { margin-top: clamp(36px, 6vw, 64px); display: flex; flex-wrap: wrap; justify-content: center; gap: 56px clamp(32px, 5vw, 72px); --h: clamp(300px, 32vw, 430px); }
.model { width: max(210px, calc(var(--h) * var(--ar))); max-width: 100%; display: flex; flex-direction: column; align-items: flex-start; }
.model__img { position: relative; container-type: inline-size; align-self: center; height: var(--h); aspect-ratio: var(--ar); }
.model__img img { height: 100%; width: auto; max-width: none; filter: drop-shadow(0 18px 16px rgba(21, 17, 15, .2)); }
.model__slot {
  position: absolute; left: calc(var(--sx) * 1%); top: calc(var(--sy) * 1%); width: calc(var(--sw) * 1%); height: calc(var(--sh) * 1%);
  display: grid; place-items: center; border: 1px dashed rgba(110, 101, 92, .55); border-radius: 4px;
  font-size: max(7px, calc(var(--sw) * .155cqw)); white-space: nowrap; font-weight: 700; letter-spacing: -.01em; color: rgba(110, 101, 92, .95);
}
.model h3 { margin-top: 1.6rem; font-size: 1.15rem; font-weight: 700; letter-spacing: -.02em; line-height: 1.25; }
.model p { margin-top: .4rem; color: var(--text-soft); font-size: .95rem; line-height: 1.5; }
.model .link-arrow { margin-top: 1rem; font-size: .92rem; }
@media (max-width: 699px) {
  .models {
    --h: 340px; flex-wrap: nowrap; justify-content: flex-start; gap: 36px;
    overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); scrollbar-width: none;
    margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); padding-bottom: 8px;
  }
  .models::-webkit-scrollbar { display: none; }
  .model { flex: none; scroll-snap-align: start; width: max(230px, calc(var(--h) * var(--ar))); }
}

/* ---------- configuratore del logo ---------- */
.conf { display: grid; gap: 40px; }
.conf__stage { display: grid; place-items: center; padding: clamp(16px, 3vw, 36px); border-radius: 4px; background: var(--paper); }
.conf__stage canvas { display: block; width: auto; height: min(70vh, 640px); max-width: 100%; filter: drop-shadow(0 22px 18px rgba(21, 17, 15, .22)); }
.conf__group { margin: 2rem 0 0; padding: 0; border: 0; min-width: 0; }
.conf__group legend, .conf__label { display: block; margin-bottom: .7rem; padding: 0; font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--text-soft); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip span {
  display: block; padding: .75rem 1.1rem; border: 1.5px solid rgba(21, 17, 15, .28); border-radius: 999px;
  font-size: .92rem; font-weight: 600; line-height: 1.2; transition: background-color var(--dur-fast) ease, color var(--dur-fast) ease, border-color var(--dur-fast) ease;
}
.chip input:checked + span { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 3px; }
@media (hover: hover) { .chip input:not(:checked):hover + span { border-color: var(--ink); } }
.conf__upload { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }
.conf__upload label { cursor: pointer; }
.conf__upload input:focus-visible + label { outline: 2px solid var(--ink); outline-offset: 3px; }
.conf__filename { min-width: 0; max-width: 16rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .92rem; color: var(--text-soft); }
.conf__remove { padding: 4px 0; border: 0; border-bottom: 2px solid currentColor; background: none; font-size: .9rem; font-weight: 700; cursor: pointer; }
.conf__msg { margin-top: .7rem; font-size: .9rem; font-weight: 600; color: var(--text-soft); }
.conf__msg:empty { display: none; }
.conf__msg.is-error { color: #b3261e; }
.conf input[type="range"] { width: min(100%, 22rem); accent-color: var(--green-deep); }
.conf__form { margin-top: 2.5rem; padding-top: 2rem; border-top: 1px solid var(--line); }
.conf__fields { display: grid; gap: 16px; }
.conf__actions { margin-top: 1.5rem; display: grid; gap: 10px; }
.conf__hint { margin-top: 1rem; font-size: .86rem; line-height: 1.5; color: var(--text-soft); max-width: 30rem; }
.conf__form .form__status { margin-top: 1rem; }
@media (min-width: 640px) {
  .conf__fields { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 16px; }
  .conf__actions { display: flex; flex-wrap: wrap; }
}
@media (min-width: 960px) {
  .conf { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(48px, 7vw, 100px); align-items: start; }
  .conf__preview { position: sticky; top: calc(var(--header-h) + 24px); }
  .conf__stage canvas { height: min(74vh, 720px); }
  .conf__group:first-of-type { margin-top: 2rem; }
}

/* browser senza unità svh (iOS < 15.4): si usa vh */
@supports not (height: 100svh) {
  .journey { --journey-len: 300vh; }
  .journey.is-scrolly { height: calc(100vh - var(--header-h) + var(--journey-len)); }
  .journey.is-scrolly .journey__stage { height: calc(100vh - var(--header-h)); }
  .hero__media { height: clamp(320px, 108vw, 62vh); }
}
