/* =========================================================
   TOROVICA EDILIZIA — foglio di stile
   Palette ricavata dal logo originale.
   ========================================================= */

:root {
  /* Base scura */
  --ink: #0b0c0d;
  --ink-2: #111315;
  --ink-3: #181b1d;
  --ink-4: #212528;
  --slate: #434b4e;          /* grigio antracite del logo */

  /* Grigi del logo */
  --gray: #a2acae;
  --gray-2: #949da2;
  --stone: #d9d8d4;

  /* Caldi del logo */
  --cream: #feeedf;
  --peach-l: #fdd9b9;
  --peach: #f8caa9;
  --terra: #eda38a;
  --terra-d: #d98b70;

  /* Testo */
  --text: #efe7dd;
  --muted: #a8a19a;
  --muted-2: #8b857f;
  --line: rgba(254, 238, 223, .09);
  --line-2: rgba(254, 238, 223, .18);

  --ff-sans: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --ff-serif: "Instrument Serif", "Times New Roman", Georgia, serif;
  --ff-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --pad: clamp(20px, 5vw, 72px);
  --maxw: 1400px;
  --section: clamp(96px, 13vw, 190px);
  --header-h: 84px;
  --ease: cubic-bezier(.2, .7, .1, 1);
  --ease-io: cubic-bezier(.7, 0, .2, 1);

  color-scheme: dark;
}

/* ---------- Reset essenziale ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--ff-sans);
  font-size: clamp(16px, 1.05vw, 17px);
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
h1, h2, h3, h4, p, figure, blockquote, ul, ol { margin: 0; }
ul[role="list"], ol[role="list"] { list-style: none; padding: 0; }
::selection { background: var(--peach); color: var(--ink); }

:focus-visible { outline: 2px solid var(--peach); outline-offset: 3px; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed; top: 12px; left: 12px; z-index: 1000;
  background: var(--peach); color: var(--ink); padding: 12px 18px; font-weight: 700;
  transform: translateY(-160%); transition: transform .3s var(--ease);
}
.skip-link:focus { transform: none; }

/* Transizioni tra pagine (browser compatibili) */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vt-out .35s var(--ease-io) both; }
::view-transition-new(root) { animation: vt-in .55s var(--ease) both; }
@keyframes vt-out { to { opacity: 0; transform: translateY(-12px); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(16px); } }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--pad); }
.section { padding-block: var(--section); position: relative; }
.section--tight { padding-block: clamp(72px, 9vw, 130px); }
.section--alt { background: var(--ink-2); }
.divider { height: 1px; background: var(--line); border: 0; margin: 0; }

/* ---------- Tipografia ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--ff-mono); font-size: 12px; letter-spacing: .24em; text-transform: uppercase;
  color: var(--muted);
}
.eyebrow::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--terra);
  box-shadow: 0 0 0 4px rgba(237, 163, 138, .14);
}
.eyebrow--plain::before { display: none; }

.display {
  font-weight: 600; letter-spacing: -.04em; line-height: .96;
  font-size: clamp(2.9rem, 7.4vw, 7.6rem);
}
.h2 {
  font-weight: 600; letter-spacing: -.035em; line-height: 1.02;
  font-size: clamp(2.3rem, 5vw, 4.7rem);
}
.h3 {
  font-weight: 600; letter-spacing: -.02em; line-height: 1.15;
  font-size: clamp(1.35rem, 2vw, 1.75rem);
}
.display em, .h2 em, .h3 em, .serif {
  font-family: var(--ff-serif); font-style: italic; font-weight: 400;
  letter-spacing: -.01em; color: var(--peach);
}
.lead { font-size: clamp(1.08rem, 1.45vw, 1.3rem); line-height: 1.6; color: var(--muted); max-width: 60ch; }
.muted { color: var(--muted); }
.mono { font-family: var(--ff-mono); }
.text-peach { color: var(--peach); }
.text-terra { color: var(--terra); }

.section-head { display: grid; gap: 28px; margin-bottom: clamp(48px, 7vw, 96px); }
.section-head--split { grid-template-columns: 1fr; align-items: end; }
@media (min-width: 900px) {
  .section-head--split { grid-template-columns: 1.3fr 1fr; gap: 64px; }
}

/* Barra cromatica: riprende le colonne del logo */
.brand-stripe { display: flex; height: 6px; width: 100%; max-width: 220px; gap: 3px; }
.brand-stripe span { flex: 1; }
.brand-stripe span:nth-child(1) { background: var(--stone); flex: 1.6; }
.brand-stripe span:nth-child(2) { background: var(--gray); }
.brand-stripe span:nth-child(3) { background: var(--gray-2); }
.brand-stripe span:nth-child(4) { background: var(--cream); }
.brand-stripe span:nth-child(5) { background: var(--peach); flex: 1.4; }
.brand-stripe span:nth-child(6) { background: var(--terra); flex: 2; }

/* ---------- Pulsanti ---------- */
.btn {
  --bg: transparent; --fg: var(--text); --bd: var(--line-2);
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 14px;
  min-height: 58px; padding: 0 30px;
  background: var(--bg); color: var(--fg); border: 1px solid var(--bd);
  font-size: 12.5px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  transition: color .45s var(--ease), border-color .45s var(--ease), transform .45s var(--ease);
  white-space: nowrap;
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--fill, var(--cream));
  transform: translateY(101%); transition: transform .55s var(--ease);
}
.btn:hover::before, .btn:focus-visible::before { transform: none; }
.btn:hover, .btn:focus-visible { color: var(--ink); border-color: var(--fill, var(--cream)); }
.btn .arrow { width: 18px; height: 18px; transition: transform .45s var(--ease); flex: none; }
.btn:hover .arrow { transform: translateX(5px); }
.btn svg { flex: none; }

.btn--primary { --bg: var(--peach); --fg: var(--ink); --bd: var(--peach); --fill: var(--cream); }
.btn--terra { --bg: var(--terra); --fg: var(--ink); --bd: var(--terra); --fill: var(--cream); }
.btn--ghost { --fill: var(--cream); }
.btn--wa { --fill: #25d366; }
.btn--wa:hover { color: #06220f; }
.btn--sm { min-height: 46px; padding: 0 20px; font-size: 11.5px; }
.btn--block { width: 100%; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 12.5px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: var(--peach); padding-block: 6px;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  transition: background-size .5s var(--ease), gap .4s var(--ease);
}
.link-arrow:hover { background-size: 100% 1px; gap: 18px; }
.link-arrow svg { width: 16px; height: 16px; }

.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--header-h);
  transition: background-color .5s var(--ease), transform .55s var(--ease), border-color .5s var(--ease), height .4s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
  --header-h: 72px;
  background: rgba(11, 12, 13, .82);
  -webkit-backdrop-filter: saturate(140%) blur(16px);
  backdrop-filter: saturate(140%) blur(16px);
  border-color: var(--line);
}
.site-header.is-hidden { transform: translateY(-100%); }
.site-header .container { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.brand { display: inline-flex; align-items: center; gap: 14px; flex: none; }
.brand .mark { width: 40px; height: auto; transition: transform .6s var(--ease); }
.brand:hover .mark { transform: rotate(-4deg) scale(1.04); }
.brand__word { display: grid; line-height: 1; }
.brand__word b { font-weight: 800; font-size: 17px; letter-spacing: .06em; color: var(--cream); }
.brand__word small { font-weight: 700; font-size: 9.5px; letter-spacing: .5em; color: var(--gray); margin-top: 5px; }

.nav { display: none; }
.nav ul { display: flex; gap: clamp(22px, 2.6vw, 42px); list-style: none; margin: 0; padding: 0; }
.nav a {
  position: relative; font-size: 12px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase;
  color: var(--muted); padding: 10px 0; transition: color .3s var(--ease);
}
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 1px; background: var(--peach);
  transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease);
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--cream); }
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }

.header-actions { display: flex; align-items: center; gap: 12px; }
.header-actions .btn { display: none; }
.header-phone {
  display: none; align-items: center; gap: 10px; font-family: var(--ff-mono); font-size: 13px; color: var(--muted);
  transition: color .3s;
}
.header-phone:hover { color: var(--peach); }

.burger {
  width: 50px; height: 50px; display: grid; place-items: center; border: 1px solid var(--line-2);
  transition: border-color .3s, background-color .3s;
}
.burger:hover { border-color: var(--peach); }
.burger span { display: block; width: 20px; height: 1.5px; background: var(--cream); position: relative; transition: background-color .3s; }
.burger span::before, .burger span::after {
  content: ""; position: absolute; left: 0; width: 100%; height: 1.5px; background: var(--cream);
  transition: transform .45s var(--ease), top .45s var(--ease);
}
.burger span::before { top: -6px; }
.burger span::after { top: 6px; }
.burger[aria-expanded="true"] span { background: transparent; }
.burger[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
.burger[aria-expanded="true"] span::after { top: 0; transform: rotate(-45deg); }

@media (min-width: 1080px) {
  .nav { display: block; }
  .burger { display: none; }
  .header-actions .btn { display: inline-flex; }
}
@media (min-width: 1280px) {
  .header-phone { display: inline-flex; }
}

/* Menu mobile */
.mobile-menu {
  position: fixed; inset: 0; z-index: 99; background: var(--ink);
  display: flex; flex-direction: column; padding: calc(var(--header-h) + 24px) var(--pad) 32px;
  clip-path: inset(0 0 100% 0); visibility: hidden;
  transition: clip-path .7s var(--ease-io), visibility 0s linear .7s;
  overflow-y: auto;
}
.mobile-menu.is-open { clip-path: inset(0 0 0 0); visibility: visible; transition: clip-path .7s var(--ease-io), visibility 0s; }
.mobile-menu ol { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; counter-reset: m; }
.mobile-menu li { overflow: hidden; border-bottom: 1px solid var(--line); }
.mobile-menu a.mm-link {
  display: flex; align-items: baseline; gap: 18px; padding: 14px 0;
  font-size: clamp(2.2rem, 10vw, 3.4rem); font-weight: 600; letter-spacing: -.035em; line-height: 1.05;
  transform: translateY(110%); transition: transform .8s var(--ease), color .3s;
}
.mobile-menu a.mm-link::before {
  counter-increment: m; content: "0" counter(m);
  font-family: var(--ff-mono); font-size: 12px; letter-spacing: .1em; color: var(--terra); font-weight: 400;
}
.mobile-menu a.mm-link[aria-current="page"] { color: var(--peach); }
.mobile-menu.is-open a.mm-link { transform: none; }
.mobile-menu li:nth-child(2) a { transition-delay: .05s; }
.mobile-menu li:nth-child(3) a { transition-delay: .1s; }
.mobile-menu li:nth-child(4) a { transition-delay: .15s; }
.mobile-menu li:nth-child(5) a { transition-delay: .2s; }
.mobile-menu__foot {
  margin-top: auto; padding-top: 36px; display: grid; gap: 18px;
  opacity: 0; transform: translateY(16px); transition: opacity .6s .3s, transform .6s .3s var(--ease);
}
.mobile-menu.is-open .mobile-menu__foot { opacity: 1; transform: none; }
.mobile-menu__contacts { display: grid; gap: 6px; font-family: var(--ff-mono); font-size: 14px; color: var(--muted); }
.mobile-menu__contacts a:hover { color: var(--peach); }
.mobile-menu .btn-row .btn { flex: 1 1 200px; }
body.menu-open { overflow: hidden; }

/* ---------- Marchio (logo SVG) ---------- */
.mark .m-d { fill: var(--slate); }
.mark--anim .m-d { animation: mark-frame 1s var(--ease) .1s both; }
.mark--anim .m-f {
  transform-box: fill-box; transform-origin: 50% 100%;
  animation: mark-rise 1.1s var(--ease) both;
  animation-delay: calc(var(--i) * 75ms + .35s);
}
@keyframes mark-frame { from { opacity: 0; } }
@keyframes mark-rise { from { transform: scaleY(0); } }

/* ---------- Hero Home ---------- */
.hero {
  position: relative; min-height: 100svh; display: flex; flex-direction: column;
  overflow: hidden; isolation: isolate; background: var(--ink);
}
.hero__media { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.hero__media img, .hero__media video {
  width: 100%; height: 115%; object-fit: cover; object-position: center 30%;
  filter: grayscale(.35) contrast(1.05) brightness(.8);
  animation: hero-zoom 22s ease-out both;
  will-change: transform;
}
@keyframes hero-zoom { from { transform: scale(1.14); } to { transform: scale(1); } }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(11,12,13,.94) 0%, rgba(11,12,13,.72) 42%, rgba(11,12,13,.28) 100%),
    linear-gradient(0deg, var(--ink) 0%, rgba(11,12,13,0) 38%),
    linear-gradient(180deg, rgba(11,12,13,.7) 0%, rgba(11,12,13,0) 26%);
}
/* Griglia architettonica sottile */
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(to right, rgba(254,238,223,.05) 1px, transparent 1px);
  background-size: calc((100% - 2 * var(--pad)) / 6) 100%;
  background-position: var(--pad) 0;
  mask-image: linear-gradient(180deg, transparent, #000 30%, #000 70%, transparent);
}
.hero__inner {
  flex: 1; display: grid; align-content: center; gap: 44px;
  padding-top: calc(var(--header-h) + 48px); padding-bottom: 56px;
}
.hero__grid { display: grid; gap: 48px; align-items: center; }
.hero__mark { width: clamp(96px, 20vw, 150px); }
.hero__title { max-width: 14ch; }
.hero__title .line { display: block; overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; }
.hero__title .line > span { display: inline-block; animation: line-up 1.2s var(--ease) both; }
.hero__title .line:nth-child(2) > span { animation-delay: .12s; }
.hero__title .line:nth-child(3) > span { animation-delay: .24s; }
@keyframes line-up { from { transform: translateY(105%); } }
.hero__text { display: grid; gap: 36px; max-width: 640px; animation: fade-up 1.2s .5s var(--ease) both; }
@keyframes fade-up { from { opacity: 0; transform: translateY(24px); } }
.hero__brandcol { display: none; }

.hero__foot {
  border-top: 1px solid var(--line); padding-block: 22px;
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
  font-family: var(--ff-mono); font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted);
  animation: fade-up 1s .9s var(--ease) both;
}
.hero__foot a:hover { color: var(--peach); }
.scroll-cue { display: inline-flex; align-items: center; gap: 14px; }
.scroll-cue i { position: relative; width: 1px; height: 38px; background: var(--line-2); overflow: hidden; }
.scroll-cue i::after {
  content: ""; position: absolute; left: 0; top: -40%; width: 100%; height: 40%; background: var(--peach);
  animation: cue 2.2s var(--ease-io) infinite;
}
@keyframes cue { to { top: 100%; } }
.hero__foot .hide-sm { display: none; }

@media (min-width: 900px) {
  .hero__grid { grid-template-columns: 1fr auto; gap: 64px; }
  .hero__brandcol {
    display: grid; justify-items: center; gap: 22px; padding: 38px 34px 30px;
    border: 1px solid var(--line); background: rgba(11,12,13,.45);
    -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
    animation: fade-up 1.2s .2s var(--ease) both;
  }
  .hero__brandcol .mark { width: clamp(170px, 16vw, 250px); }
  .hero__brandcol .wordmark { text-align: center; line-height: 1; }
  .hero__brandcol .wordmark b { display: block; font-size: clamp(26px, 2.4vw, 36px); font-weight: 800; letter-spacing: .04em; color: var(--cream); }
  .hero__brandcol .wordmark small { display: block; margin-top: 10px; font-size: 12px; font-weight: 700; letter-spacing: .62em; padding-left: .62em; color: var(--gray); }
  .hero__inner > .hero__mark { display: none; }
  .hero__foot .hide-sm { display: inline; }
}

/* ---------- Page hero (pagine interne) ---------- */
.page-hero {
  position: relative; isolation: isolate; overflow: hidden;
  padding-top: calc(var(--header-h) + clamp(80px, 12vw, 160px));
  padding-bottom: clamp(64px, 8vw, 110px);
  border-bottom: 1px solid var(--line);
}
.page-hero__media { position: absolute; inset: 0; z-index: -2; }
.page-hero__media img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(.5) brightness(.55); animation: hero-zoom 18s ease-out both; }
.page-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(11,12,13,.96) 10%, rgba(11,12,13,.55) 100%), linear-gradient(0deg, var(--ink), transparent 60%);
}
.page-hero .container { display: grid; gap: 30px; }
.page-hero h1 { max-width: 16ch; }
.page-hero h1 .line { display: block; overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; }
.page-hero h1 .line > span { display: inline-block; animation: line-up 1.1s var(--ease) both; }
.page-hero h1 .line:nth-child(2) > span { animation-delay: .1s; }
.page-hero .lead { animation: fade-up 1s .35s var(--ease) both; }
.breadcrumb { font-family: var(--ff-mono); font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted-2); display: flex; gap: 10px; flex-wrap: wrap; }
.breadcrumb a:hover { color: var(--peach); }
.page-hero__index {
  position: absolute; right: var(--pad); bottom: clamp(40px, 6vw, 90px);
  font-family: var(--ff-serif); font-style: italic; font-size: clamp(6rem, 16vw, 15rem); line-height: .8;
  color: transparent; -webkit-text-stroke: 1px rgba(248, 202, 169, .28); pointer-events: none; user-select: none;
}

/* ---------- Marquee ---------- */
.marquee { border-block: 1px solid var(--line); overflow: hidden; background: var(--ink); }
.marquee__track { display: flex; width: max-content; animation: marquee 48s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__group { display: flex; align-items: center; }
.marquee__item {
  display: inline-flex; align-items: center; gap: clamp(28px, 4vw, 56px); padding: 26px clamp(14px, 2vw, 28px);
  font-size: clamp(1.4rem, 2.8vw, 2.4rem); font-weight: 600; letter-spacing: -.03em; color: var(--stone); white-space: nowrap;
}
.marquee__item:nth-child(even) { font-family: var(--ff-serif); font-style: italic; font-weight: 400; color: var(--peach); }
.marquee__item::after { content: ""; width: 10px; height: 10px; background: var(--terra); flex: none; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Intro ---------- */
.intro { display: grid; gap: clamp(48px, 7vw, 110px); }
.intro__title { font-size: clamp(2.8rem, 7.6vw, 8rem); font-weight: 600; letter-spacing: -.045em; line-height: .95; }
.intro__title span { display: block; }
.intro__title span:nth-child(2) { font-family: var(--ff-serif); font-style: italic; font-weight: 400; color: var(--peach); letter-spacing: -.02em; padding-left: .6em; }
.intro__title span:nth-child(3) { color: var(--terra); padding-left: 1.2em; }
.intro__body { display: grid; gap: 48px; }
.intro__text { display: grid; gap: 22px; align-content: start; }
.intro__text p { color: var(--muted); font-size: 1.08em; }
.intro__text p:first-child { color: var(--text); font-size: clamp(1.2rem, 1.6vw, 1.45rem); line-height: 1.5; font-weight: 500; }
.brand-plaque {
  position: relative; background: #000; border: 1px solid var(--line);
  display: grid; place-items: center; padding: clamp(28px, 4vw, 56px); aspect-ratio: 5 / 4; overflow: hidden;
}
.brand-plaque img { width: min(88%, 440px); transition: transform 1.2s var(--ease); }
.brand-plaque:hover img { transform: scale(1.04); }
.brand-plaque figcaption {
  position: absolute; left: 18px; bottom: 14px; font-family: var(--ff-mono); font-size: 11px; letter-spacing: .2em;
  text-transform: uppercase; color: var(--muted-2);
}
@media (min-width: 960px) {
  .intro__body { grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; }
}

/* Metodo / step */
.steps { display: grid; gap: 0; border-top: 1px solid var(--line); counter-reset: s; }
.step {
  display: grid; gap: 14px; padding: 34px 0; border-bottom: 1px solid var(--line); position: relative;
}
.step__num { font-family: var(--ff-mono); font-size: 12px; letter-spacing: .2em; color: var(--terra); }
.step h3 { font-size: 1.35rem; font-weight: 600; letter-spacing: -.02em; }
.step p { color: var(--muted); font-size: .98em; }
@media (min-width: 760px) {
  .steps { grid-template-columns: repeat(2, 1fr); border-top: 0; }
  .step { padding: 40px 36px 44px 0; border-top: 1px solid var(--line); border-bottom: 0; }
}
@media (min-width: 1100px) {
  .steps { grid-template-columns: repeat(4, 1fr); }
  .step { padding-right: 40px; }
  .step + .step { padding-left: 32px; border-left: 1px solid var(--line); }
  .step::before {
    content: ""; position: absolute; top: -1px; left: 0; height: 2px; width: 0; background: var(--terra);
    transition: width 1.2s var(--ease);
  }
  .step.is-in::before { width: 42%; }
}

/* ---------- Lista servizi (home) con anteprima immagine ---------- */
.svc-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); position: relative; }
.svc-row { border-bottom: 1px solid var(--line); }
.svc-row a {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: clamp(16px, 3vw, 48px);
  padding: clamp(22px, 2.6vw, 36px) 0; position: relative;
  transition: padding .6s var(--ease), color .4s;
}
.svc-row__num { font-family: var(--ff-mono); font-size: 12px; letter-spacing: .14em; color: var(--muted-2); min-width: 2.5ch; }
.svc-row__title { font-size: clamp(1.45rem, 3.4vw, 3rem); font-weight: 600; letter-spacing: -.035em; line-height: 1.08; }
.svc-row__title small { display: block; margin-top: 8px; font-size: .95rem; letter-spacing: 0; font-weight: 400; color: var(--muted); line-height: 1.5; max-width: 52ch; }
.svc-row__go {
  width: 52px; height: 52px; border: 1px solid var(--line-2); display: grid; place-items: center; flex: none;
  transition: background-color .45s var(--ease), border-color .45s var(--ease), transform .45s var(--ease);
}
.svc-row__go svg { width: 18px; height: 18px; transition: transform .45s var(--ease); }
.svc-row__thumb { display: none; }
.svc-row a:hover .svc-row__go, .svc-row a:focus-visible .svc-row__go { background: var(--peach); border-color: var(--peach); color: var(--ink); }
.svc-row a:hover .svc-row__go svg { transform: rotate(-45deg); }
.svc-row a:hover .svc-row__title { color: var(--cream); }
@media (hover: hover) and (min-width: 900px) {
  .svc-row a:hover { padding-left: 24px; }
  .svc-list.has-hover .svc-row a { color: var(--muted-2); }
  .svc-list.has-hover .svc-row a:hover { color: var(--text); }
}
@media (max-width: 899px) {
  .svc-row a { grid-template-columns: 72px 1fr; }
  .svc-row__num { display: none; }
  .svc-row__thumb { display: block; width: 72px; aspect-ratio: 1; object-fit: cover; filter: grayscale(.2); }
  .svc-row__go { display: none; }
}
.svc-float {
  position: fixed; left: 0; top: 0; z-index: 5; pointer-events: none;
  width: clamp(240px, 22vw, 360px); aspect-ratio: 4 / 5; overflow: hidden;
  opacity: 0; transform: translate3d(-50%, -50%, 0) scale(.85);
  transition: opacity .35s var(--ease), transform .5s var(--ease);
}
.svc-float.is-visible { opacity: 1; }
.svc-float img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; opacity: 0; transition: opacity .4s var(--ease); }
.svc-float img.is-active { opacity: 1; }

/* ---------- Card servizi (pagina Servizi) ---------- */
.svc-grid { display: grid; gap: clamp(20px, 2.4vw, 34px); }
@media (min-width: 760px) { .svc-grid { grid-template-columns: repeat(2, 1fr); } }

.svc-card {
  position: relative; display: flex; flex-direction: column; background: var(--ink-2);
  border: 1px solid var(--line); overflow: hidden;
  transition: border-color .5s var(--ease), transform .7s var(--ease), background-color .5s;
}
.svc-card:hover { border-color: rgba(248, 202, 169, .4); background: var(--ink-3); }
.svc-card__media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; }
.svc-card__media img {
  width: 100%; height: 100%; object-fit: cover; filter: grayscale(.45) brightness(.82);
  transform: scale(1.02); transition: transform 1.4s var(--ease), filter 1s var(--ease);
}
.svc-card:hover .svc-card__media img { transform: scale(1.09); filter: grayscale(0) brightness(.95); }
.svc-card__media::after {
  content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(17,19,21,.95), transparent 55%);
}
.svc-card__num {
  position: absolute; z-index: 1; left: 28px; bottom: 18px;
  font-family: var(--ff-serif); font-style: italic; font-size: clamp(3.8rem, 6vw, 5.6rem); line-height: .8; color: var(--peach);
  transition: transform .8s var(--ease);
}
.svc-card:hover .svc-card__num { transform: translateY(-6px); }
.svc-card__tag {
  position: absolute; z-index: 1; top: 18px; right: 18px;
  font-family: var(--ff-mono); font-size: 11px; letter-spacing: .18em; text-transform: uppercase;
  padding: 7px 11px; background: rgba(11,12,13,.7); border: 1px solid var(--line-2); color: var(--cream);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.svc-card__body { display: grid; gap: 18px; padding: 10px 28px 30px; flex: 1; align-content: start; }
.svc-card__body h2 { font-size: clamp(1.5rem, 2.2vw, 2rem); font-weight: 600; letter-spacing: -.03em; line-height: 1.1; }
.svc-card__body p { color: var(--muted); }
.svc-card__list { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.svc-card__list li {
  font-size: 12.5px; padding: 6px 12px; border: 1px solid var(--line-2); color: var(--stone); border-radius: 100px;
}
.svc-card__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; padding-top: 22px; border-top: 1px solid var(--line); align-items: center; justify-content: space-between; }
.svc-card__wa { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; color: var(--muted); transition: color .3s; }
.svc-card__wa:hover { color: #6ee7a0; }
.svc-card__wa svg { width: 18px; height: 18px; }
.svc-card::before {
  content: ""; position: absolute; left: 0; top: 0; z-index: 2; height: 3px; width: 100%;
  background: linear-gradient(90deg, var(--stone) 0 18%, var(--gray) 18% 30%, var(--cream) 30% 44%, var(--peach) 44% 64%, var(--terra) 64%);
  transform: scaleX(0); transform-origin: left; transition: transform .9s var(--ease);
}
.svc-card:hover::before { transform: scaleX(1); }

/* ---------- Lavori: griglia home ---------- */
.works-grid { display: grid; gap: clamp(14px, 1.6vw, 22px); grid-template-columns: 1fr; }
.work {
  position: relative; overflow: hidden; background: var(--ink-3); display: block; cursor: zoom-in;
  aspect-ratio: 4 / 3; width: 100%; text-align: left;
}
.work img {
  width: 100%; height: 100%; object-fit: cover;
  transform: scale(1.03); transition: transform 1.4s var(--ease), filter .9s var(--ease);
  filter: grayscale(.25) brightness(.9);
}
.work::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(11,12,13,.9) 0%, rgba(11,12,13,0) 55%);
  opacity: .75; transition: opacity .6s var(--ease);
}
.work__cap {
  position: absolute; z-index: 1; left: clamp(18px, 2vw, 28px); right: clamp(18px, 2vw, 28px); bottom: clamp(16px, 2vw, 26px);
  display: flex; justify-content: space-between; align-items: end; gap: 16px;
}
.work__cap .cat { display: block; font-family: var(--ff-mono); font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--peach); margin-bottom: 6px; }
.work__cap .ttl { display: block; font-size: clamp(1.05rem, 1.5vw, 1.35rem); font-weight: 600; letter-spacing: -.02em; line-height: 1.2; color: var(--cream); }
.work__zoom {
  width: 44px; height: 44px; flex: none; display: grid; place-items: center; border: 1px solid rgba(254,238,223,.35);
  color: var(--cream); background: rgba(11,12,13,.35);
  opacity: 0; transform: scale(.7) rotate(-45deg); transition: opacity .5s var(--ease), transform .6s var(--ease), background-color .3s;
}
.work__zoom svg { width: 18px; height: 18px; }
.work:hover img, .work:focus-visible img { transform: scale(1.1); filter: grayscale(0) brightness(1); }
.work:hover::after { opacity: 1; }
.work:hover .work__zoom, .work:focus-visible .work__zoom { opacity: 1; transform: none; }
.work:hover .work__zoom { background: var(--peach); color: var(--ink); border-color: var(--peach); }
@media (hover: none) { .work__zoom { opacity: 1; transform: none; } }

@media (min-width: 700px) {
  .works-grid { grid-template-columns: repeat(2, 1fr); }
  .works-grid .work:first-child { grid-column: 1 / -1; aspect-ratio: 16 / 8; }
}
@media (min-width: 1000px) {
  .works-grid { grid-template-columns: repeat(12, 1fr); grid-auto-rows: clamp(110px, 10vw, 150px); }
  .works-grid .work { aspect-ratio: auto; height: 100%; }
  .works-grid .work:nth-child(1) { grid-column: 1 / 8; grid-row: span 4; aspect-ratio: auto; }
  .works-grid .work:nth-child(2) { grid-column: 8 / 13; grid-row: span 2; }
  .works-grid .work:nth-child(3) { grid-column: 8 / 13; grid-row: span 2; }
  .works-grid .work:nth-child(4) { grid-column: 1 / 6; grid-row: span 3; }
  .works-grid .work:nth-child(5) { grid-column: 6 / 13; grid-row: span 3; }
}

/* ---------- Lavori: pagina portfolio ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: clamp(32px, 4vw, 56px); }
.filter {
  padding: 12px 20px; border: 1px solid var(--line-2); font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: var(--muted); transition: color .3s, border-color .3s, background-color .3s;
  display: inline-flex; gap: 10px; align-items: center;
}
.filter sup { font-family: var(--ff-mono); font-size: 10px; color: var(--muted-2); letter-spacing: 0; top: 0; }
.filter:hover { color: var(--cream); border-color: var(--cream); }
.filter[aria-pressed="true"] { background: var(--peach); border-color: var(--peach); color: var(--ink); }
.filter[aria-pressed="true"] sup { color: var(--ink); }

.masonry { columns: 1; column-gap: clamp(14px, 1.6vw, 22px); }
@media (min-width: 640px) { .masonry { columns: 2; } }
@media (min-width: 1100px) { .masonry { columns: 3; } }
.masonry .work { aspect-ratio: auto; margin-bottom: clamp(14px, 1.6vw, 22px); break-inside: avoid; }
.masonry .work img { height: auto; }
.masonry .work.is-hidden { display: none; }
.masonry .work.is-entering { animation: work-in .8s var(--ease) both; }
@keyframes work-in { from { opacity: 0; transform: translateY(24px) scale(.98); } }

.demo-note {
  display: block; padding: 14px 18px; margin-bottom: 32px;
  border: 1px dashed rgba(237, 163, 138, .45); color: var(--muted); font-size: 14px; max-width: 760px;
}
.demo-note b { color: var(--peach); font-weight: 600; }

/* ---------- Prima / Dopo ---------- */
.ba-grid { display: grid; gap: clamp(28px, 3vw, 44px); }
@media (min-width: 1000px) { .ba-grid { grid-template-columns: repeat(2, 1fr); } }
.ba { display: grid; gap: 18px; }
.ba__frame {
  --pos: 50%;
  position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--ink-3); user-select: none; touch-action: pan-y;
}
.ba__frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.ba__after { clip-path: inset(0 0 0 var(--pos)); }
.ba__before.is-demo { filter: grayscale(1) sepia(.25) contrast(.8) brightness(.62) blur(.4px); }
.ba__handle {
  position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; margin-left: -1px; background: var(--cream); pointer-events: none;
}
.ba__handle::after {
  content: ""; position: absolute; top: 50%; left: 50%; width: 58px; height: 58px; transform: translate(-50%, -50%);
  border-radius: 50%; background: var(--cream) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230b0c0d' stroke-width='1.8'%3E%3Cpath d='M9 6l-6 6 6 6M15 6l6 6-6 6'/%3E%3C/svg%3E") center / 24px no-repeat;
  box-shadow: 0 10px 30px rgba(0,0,0,.4);
}
.ba__label {
  position: absolute; top: 16px; z-index: 1; font-family: var(--ff-mono); font-size: 11px; letter-spacing: .2em; text-transform: uppercase;
  padding: 7px 11px; background: rgba(11,12,13,.72); color: var(--cream); pointer-events: none;
}
.ba__label--before { left: 16px; }
.ba__label--after { right: 16px; background: var(--peach); color: var(--ink); }
.ba__range {
  position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize;
  -webkit-appearance: none; appearance: none; touch-action: pan-y;
}
.ba__range:focus-visible + .ba__handle::after { outline: 2px solid var(--peach); outline-offset: 4px; }
.ba__meta { display: flex; justify-content: space-between; gap: 16px; align-items: baseline; flex-wrap: wrap; }
.ba__meta h3 { font-size: 1.3rem; font-weight: 600; letter-spacing: -.02em; }
.ba__meta p { color: var(--muted); font-size: .95rem; }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 300; background: rgba(8, 9, 10, .97);
  display: grid; grid-template-rows: auto 1fr auto; opacity: 0; visibility: hidden;
  transition: opacity .45s var(--ease), visibility 0s linear .45s;
}
.lightbox.is-open { opacity: 1; visibility: visible; transition: opacity .45s var(--ease), visibility 0s; }
.lightbox__top { display: flex; justify-content: space-between; align-items: center; padding: 18px var(--pad); font-family: var(--ff-mono); font-size: 12px; letter-spacing: .16em; color: var(--muted); }
.lightbox__stage { position: relative; display: grid; place-items: center; padding: 0 clamp(8px, 7vw, 110px); min-height: 0; }
.lightbox__stage img {
  max-width: 100%; max-height: calc(100svh - 180px); object-fit: contain; box-shadow: 0 30px 80px rgba(0,0,0,.6);
  transition: opacity .35s var(--ease), transform .5s var(--ease);
}
.lightbox__stage img.is-loading { opacity: 0; transform: scale(.97); }
.lightbox__cap { padding: 18px var(--pad) 26px; display: flex; gap: 16px; align-items: baseline; flex-wrap: wrap; }
.lightbox__cap .cat { font-family: var(--ff-mono); font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--peach); }
.lightbox__cap .ttl { font-size: 1.15rem; font-weight: 600; color: var(--cream); }
.lb-btn {
  width: 52px; height: 52px; display: grid; place-items: center; border: 1px solid var(--line-2); color: var(--cream);
  background: rgba(11,12,13,.6); transition: background-color .3s, color .3s, border-color .3s;
}
.lb-btn:hover { background: var(--peach); color: var(--ink); border-color: var(--peach); }
.lb-btn svg { width: 20px; height: 20px; }
.lb-prev, .lb-next { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; }
.lb-prev { left: clamp(8px, 2vw, 32px); }
.lb-next { right: clamp(8px, 2vw, 32px); }
@media (max-width: 640px) { .lb-prev, .lb-next { top: auto; bottom: -70px; transform: none; } .lb-prev { left: auto; right: 78px; } .lb-next { right: var(--pad); } }

/* ---------- CTA finale ---------- */
.cta {
  position: relative; isolation: isolate; overflow: hidden;
  padding-block: clamp(110px, 14vw, 200px);
  border-top: 1px solid var(--line);
}
.cta__media { position: absolute; inset: 0; z-index: -2; }
.cta__media img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(.8) brightness(.35); }
.cta::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(ellipse at 20% 50%, rgba(11,12,13,.5), rgba(11,12,13,.92) 70%); }
.cta__inner { display: grid; gap: 40px; }
.cta__title { font-size: clamp(2.8rem, 7.8vw, 8rem); font-weight: 600; letter-spacing: -.045em; line-height: .95; max-width: 13ch; }
.cta__title em { font-family: var(--ff-serif); font-style: italic; font-weight: 400; color: var(--peach); letter-spacing: -.02em; }
.cta__row { display: grid; gap: 32px; }
@media (min-width: 960px) { .cta__row { grid-template-columns: 1fr auto; align-items: end; } }
.cta__contacts { display: grid; gap: 8px; font-family: var(--ff-mono); font-size: 15px; color: var(--muted); }
.cta__contacts a { transition: color .3s; }
.cta__contacts a:hover { color: var(--peach); }

/* ---------- Contatti ---------- */
.quick { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
@media (min-width: 640px) { .quick { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .quick { grid-template-columns: repeat(4, 1fr); } }
.quick a {
  position: relative; display: grid; gap: 38px; padding: clamp(26px, 3vw, 40px); background: var(--ink);
  overflow: hidden; isolation: isolate; transition: color .5s var(--ease);
}
.quick a::before {
  content: ""; position: absolute; inset: 0; z-index: -1; background: var(--c, var(--peach));
  transform: translateY(101%); transition: transform .6s var(--ease);
}
.quick a:hover::before, .quick a:focus-visible::before { transform: none; }
.quick a:hover, .quick a:focus-visible { color: var(--ink); }
.quick a:hover .quick__sub, .quick a:focus-visible .quick__sub { color: rgba(11,12,13,.75); }
.quick__icon { width: 54px; height: 54px; border: 1px solid currentColor; display: grid; place-items: center; opacity: .9; }
.quick__icon svg { width: 22px; height: 22px; }
.quick__label { font-size: clamp(1.3rem, 1.8vw, 1.6rem); font-weight: 600; letter-spacing: -.02em; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.quick__label svg { width: 20px; height: 20px; transition: transform .5s var(--ease); }
.quick a:hover .quick__label svg { transform: rotate(-45deg); }
.quick__sub { display: block; margin-top: 6px; font-family: var(--ff-mono); font-size: 13px; color: var(--muted); font-weight: 400; letter-spacing: 0; transition: color .5s; }
.quick a.is-wa { --c: #25d366; }

.contact-layout { display: grid; gap: clamp(56px, 7vw, 110px); }
@media (min-width: 1000px) { .contact-layout { grid-template-columns: 5fr 7fr; } }
.contact-aside { display: grid; gap: 28px; align-content: start; }
.info-card {
  border: 1px solid var(--line); padding: 26px; display: grid; gap: 14px; background: var(--ink-2);
}
.info-card__k { font-family: var(--ff-mono); font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted-2); }
.info-card__v { font-size: clamp(1.2rem, 1.7vw, 1.5rem); font-weight: 600; letter-spacing: -.01em; color: var(--cream); word-break: break-word; }
.info-card__v a:hover { color: var(--peach); }
.info-card__row { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.copy-btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border: 1px solid var(--line-2);
  font-size: 12px; color: var(--muted); transition: color .3s, border-color .3s;
}
.copy-btn:hover { color: var(--cream); border-color: var(--cream); }
.copy-btn svg { width: 14px; height: 14px; }
.copy-btn.is-done { color: var(--ink); background: var(--peach); border-color: var(--peach); }

.placeholder {
  display: inline-block; font-family: var(--ff-mono); font-size: .85em; color: var(--terra);
  border: 1px dashed rgba(237, 163, 138, .55); padding: 2px 8px; font-weight: 400; letter-spacing: 0;
}

/* Modulo */
.form { display: grid; gap: 22px; }
.form__grid { display: grid; gap: 22px; }
@media (min-width: 640px) { .form__grid { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: 10px; position: relative; }
.field--full { grid-column: 1 / -1; }
.field label, .field .label { font-family: var(--ff-mono); font-size: 11.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.field label .req { color: var(--terra); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--cream);
  background: var(--ink-2); border: 1px solid var(--line-2); border-radius: 0;
  padding: 16px 18px; min-height: 58px;
  transition: border-color .3s, background-color .3s, box-shadow .3s;
  -webkit-appearance: none; appearance: none;
}
.field textarea { min-height: 170px; resize: vertical; line-height: 1.6; }
.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f8caa9' stroke-width='1.6'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center; background-size: 20px; padding-right: 48px;
}
.field select option { background: var(--ink-2); color: var(--cream); }
.field input::placeholder, .field textarea::placeholder { color: #6f6a65; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: rgba(254,238,223,.32); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--peach); background: var(--ink-3); box-shadow: 0 0 0 3px rgba(248, 202, 169, .14); }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: #e2725b; }
.field__err { font-size: 13px; color: #f09a86; min-height: 0; }
.check { display: flex; gap: 14px; align-items: flex-start; font-size: 14px; color: var(--muted); cursor: pointer; }
.check input { flex: none; width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--peach); cursor: pointer; }
.check a { color: var(--peach); text-decoration: underline; text-underline-offset: 3px; }
.form__foot { display: flex; flex-wrap: wrap; gap: 18px; align-items: center; justify-content: space-between; padding-top: 8px; }
.form__note { font-size: 13px; color: var(--muted-2); max-width: 44ch; }
.form-status {
  display: none; padding: 20px 22px; border: 1px solid var(--peach); background: rgba(248, 202, 169, .08); color: var(--cream);
}
.form-status.is-visible { display: grid; gap: 12px; }
.form-status.is-error { border-color: #e2725b; background: rgba(226, 114, 91, .08); }
.form-status .btn-row { margin-top: 4px; }

/* ---------- Social ---------- */
.social-grid { display: grid; gap: clamp(16px, 2vw, 26px); }
@media (min-width: 900px) { .social-grid { grid-template-columns: repeat(3, 1fr); } }
.social-card {
  position: relative; isolation: isolate; overflow: hidden; display: grid; gap: 56px; align-content: space-between;
  padding: clamp(28px, 3vw, 44px); min-height: clamp(340px, 34vw, 480px);
  border: 1px solid var(--line); background: var(--ink-2); transition: border-color .5s var(--ease), color .5s var(--ease);
}
.social-card::before {
  content: ""; position: absolute; inset: 0; z-index: -1; background: var(--c);
  clip-path: circle(0% at 100% 0%); transition: clip-path .9s var(--ease-io);
}
.social-card:not(.is-pending):hover::before, .social-card:not(.is-pending):focus-visible::before { clip-path: circle(150% at 100% 0%); }
.social-card:not(.is-pending):hover { color: var(--ink); border-color: transparent; }
.social-card[data-network="instagram"] { --c: linear-gradient(135deg, var(--peach-l), var(--terra)); }
.social-card[data-network="facebook"] { --c: linear-gradient(135deg, var(--stone), var(--gray)); }
.social-card[data-network="tiktok"] { --c: linear-gradient(135deg, var(--cream), var(--peach)); }
.social-card__top { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.social-card__icon { width: 64px; height: 64px; }
.social-card__arrow { width: 56px; height: 56px; border: 1px solid currentColor; display: grid; place-items: center; opacity: .8; transition: transform .6s var(--ease); }
.social-card__arrow svg { width: 22px; height: 22px; }
.social-card:not(.is-pending):hover .social-card__arrow { transform: rotate(-45deg); }
.social-card h2 { font-size: clamp(2.2rem, 4vw, 3.4rem); font-weight: 600; letter-spacing: -.04em; line-height: 1; }
.social-card p { color: var(--muted); margin-top: 12px; transition: color .5s; }
.social-card:not(.is-pending):hover p { color: rgba(11,12,13,.75); }
.social-card__handle { font-family: var(--ff-mono); font-size: 13px; letter-spacing: .06em; margin-top: 18px; display: inline-block; }
.social-card.is-pending { cursor: default; }
.social-card.is-pending .social-card__arrow { opacity: .3; }
.social-card .badge-pending {
  display: none; font-family: var(--ff-mono); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--terra);
  border: 1px dashed rgba(237, 163, 138, .55); padding: 5px 9px; width: fit-content;
}
.social-card.is-pending .badge-pending { display: inline-block; }

.feed { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
@media (min-width: 900px) { .feed { grid-template-columns: repeat(6, 1fr); } }
.feed a { position: relative; aspect-ratio: 1; overflow: hidden; display: block; }
.feed img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease), filter .6s; filter: grayscale(.3); }
.feed a::after { content: ""; position: absolute; inset: 0; background: rgba(248, 202, 169, .0); transition: background-color .5s; }
.feed a:hover img { transform: scale(1.08); filter: grayscale(0); }
.feed a:hover::after { background: rgba(11, 12, 13, .25); }

.social-icons { display: flex; gap: 10px; }
.social-icons a {
  width: 46px; height: 46px; display: grid; place-items: center; border: 1px solid var(--line-2); color: var(--stone);
  transition: background-color .3s, color .3s, border-color .3s;
}
.social-icons a:hover { background: var(--peach); color: var(--ink); border-color: var(--peach); }
.social-icons a.is-pending { opacity: .45; }
.social-icons a.is-pending:hover { background: transparent; color: var(--stone); border-color: var(--line-2); }
.social-icons svg { width: 18px; height: 18px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink-2); border-top: 1px solid var(--line); padding-top: clamp(72px, 9vw, 130px); position: relative; overflow: hidden; }
.footer-grid { display: grid; gap: 48px; padding-bottom: clamp(56px, 7vw, 96px); }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .footer-grid { grid-template-columns: 1.5fr 1fr 1.2fr 1.1fr; gap: 56px; } }
.footer-brand { display: grid; gap: 26px; align-content: start; }
.footer-brand .brand .mark { width: 54px; }
.footer-brand .brand__word b { font-size: 21px; }
.footer-brand p { color: var(--muted); max-width: 38ch; }
.footer-col h2 { font-family: var(--ff-mono); font-size: 11.5px; font-weight: 400; letter-spacing: .22em; text-transform: uppercase; color: var(--muted-2); margin-bottom: 22px; }
.footer-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.footer-col a { color: var(--stone); transition: color .3s; }
.footer-col a:hover { color: var(--peach); }
.footer-col .big { font-size: 1.15rem; font-weight: 600; color: var(--cream); }
.footer-legal { font-size: 14px; color: var(--muted); display: grid; gap: 6px; }
.footer-bottom {
  border-top: 1px solid var(--line); padding-block: 26px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px 28px;
  font-size: 13px; color: var(--muted-2);
}
.footer-bottom nav { display: flex; gap: 22px; flex-wrap: wrap; }
.footer-bottom a:hover { color: var(--peach); }
.footer-giant {
  font-weight: 800; letter-spacing: -.02em; line-height: .78; white-space: nowrap; text-align: center;
  font-size: clamp(4rem, 18.5vw, 20rem); color: transparent; -webkit-text-stroke: 1px rgba(162, 172, 174, .16);
  user-select: none; pointer-events: none; margin-bottom: -.12em; padding-top: 10px;
}

/* ---------- WhatsApp flottante ---------- */
.wa-fab {
  position: fixed; right: clamp(16px, 2.2vw, 30px); bottom: clamp(16px, 2.2vw, 30px); z-index: 90;
  display: inline-flex; align-items: center; gap: 0; height: 62px; padding: 0; border-radius: 40px;
  background: #25d366; color: #06220f; box-shadow: 0 14px 40px rgba(0,0,0,.45), 0 0 0 0 rgba(37, 211, 102, .5);
  animation: wa-pulse 3.2s ease-out 2.5s infinite;
  transition: transform .4s var(--ease), gap .45s var(--ease), padding .45s var(--ease);
}
.wa-fab__icon { width: 62px; height: 62px; display: grid; place-items: center; flex: none; }
.wa-fab__icon svg { width: 30px; height: 30px; }
.wa-fab__label {
  max-width: 0; overflow: hidden; white-space: nowrap; font-weight: 700; font-size: 14px; letter-spacing: .02em;
  transition: max-width .5s var(--ease), padding .5s var(--ease);
}
.wa-fab:hover { transform: translateY(-3px); }
@media (hover: hover) {
  .wa-fab:hover .wa-fab__label, .wa-fab:focus-visible .wa-fab__label { max-width: 220px; padding-right: 24px; }
}
@keyframes wa-pulse {
  0% { box-shadow: 0 14px 40px rgba(0,0,0,.45), 0 0 0 0 rgba(37, 211, 102, .45); }
  70%, 100% { box-shadow: 0 14px 40px rgba(0,0,0,.45), 0 0 0 18px rgba(37, 211, 102, 0); }
}
body.menu-open .wa-fab, body.lb-open .wa-fab { opacity: 0; pointer-events: none; }

/* ---------- Testi legali ---------- */
.prose { max-width: 820px; display: grid; gap: 18px; color: var(--muted); }
.prose h2 { font-size: 1.5rem; font-weight: 600; color: var(--cream); letter-spacing: -.02em; margin-top: 28px; }
.prose ul { padding-left: 1.2em; display: grid; gap: 6px; }
.prose a { color: var(--peach); text-decoration: underline; text-underline-offset: 3px; }
.notice {
  padding: 18px 22px; border: 1px dashed rgba(237, 163, 138, .6); color: var(--peach-l); background: rgba(237, 163, 138, .06);
}

/* ---------- Animazioni allo scroll ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(36px); transition: opacity 1s var(--ease), transform 1.1s var(--ease); transition-delay: var(--d, 0s); }
.js [data-reveal="fade"] { transform: none; }
.js [data-reveal="left"] { transform: translateX(-40px); }
.js [data-reveal="mask"] { opacity: 1; transform: none; clip-path: inset(100% 0 0 0); transition: clip-path 1.3s var(--ease-io); transition-delay: var(--d, 0s); }
.js [data-reveal="mask"] img { transform: scale(1.25); transition: transform 1.8s var(--ease); transition-delay: var(--d, 0s); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
.js [data-reveal="mask"].is-in { clip-path: inset(0 0 0 0); }
.js [data-reveal="mask"].is-in img { transform: scale(1.03); }

.js .reveal-lines .line { display: block; overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; }
.js .reveal-lines .line > span { display: inline-block; transform: translateY(105%); transition: transform 1.1s var(--ease); }
.js .reveal-lines .line:nth-child(2) > span { transition-delay: .09s; }
.js .reveal-lines .line:nth-child(3) > span { transition-delay: .18s; }
.js .reveal-lines.is-in .line > span { transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; scroll-behavior: auto !important; }
  .marquee__track { animation: none; }
  .js [data-reveal], .js [data-reveal="mask"], .js [data-reveal="mask"] img, .js .reveal-lines .line > span { opacity: 1; transform: none; clip-path: none; }
}

/* ---------- Utility ---------- */
.mt-s { margin-top: 18px; }
.mt-m { margin-top: 36px; }
.mt-l { margin-top: clamp(48px, 6vw, 80px); }
.center { text-align: center; }
.row-between { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 28px; }

/* ---------- Prima / Dopo in evidenza (foto verticali) ---------- */
.ba-feature { display: grid; gap: clamp(28px, 4vw, 72px); align-items: center; }
.ba-feature .ba__frame { aspect-ratio: 3 / 4; }
.ba-feature .ba__before { object-position: 50% 30%; }
.ba-feature__text { display: grid; gap: 18px; align-content: center; max-width: 520px; }
.ba-feature__text .h3 { font-size: clamp(1.7rem, 2.8vw, 2.5rem); }
@media (min-width: 900px) {
  .ba-feature { grid-template-columns: minmax(0, 560px) 1fr; }
}

/* Logo vettoriale nella sezione "L'impresa" */
.brand-plaque { align-content: center; justify-items: center; gap: clamp(18px, 2.5vw, 30px); }
.brand-plaque .plaque__mark { width: min(46%, 240px); transition: transform 1.2s var(--ease); }
.brand-plaque:hover .plaque__mark { transform: scale(1.04); }
.plaque__word { display: grid; justify-items: center; line-height: 1; color: var(--slate); }
.plaque__word b { font-weight: 800; font-size: clamp(2.2rem, 4.6vw, 3.6rem); letter-spacing: .02em; }
.plaque__word small { font-weight: 700; font-size: clamp(.95rem, 1.8vw, 1.35rem); letter-spacing: .32em; padding-left: .32em; margin-top: .45em; }

/* ---------- Mezzi ---------- */
.mezzi-grid { display: grid; gap: clamp(14px, 1.6vw, 22px); }
@media (min-width: 760px) { .mezzi-grid { grid-template-columns: repeat(3, 1fr); } }
.mezzo {
  position: relative; isolation: isolate; overflow: hidden; aspect-ratio: 3 / 4;
  background: var(--ink-3); border: 1px solid var(--line);
  display: flex; flex-direction: column; justify-content: flex-end;
}
.mezzo__media { position: absolute; inset: 0; z-index: -2; }
.mezzo__media img {
  width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(.55) brightness(.8) contrast(1.05);
  transform: scale(1.02); transition: transform 1.6s var(--ease), filter 1s var(--ease);
}
.mezzo::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(0deg, rgba(11,12,13,.96) 0%, rgba(11,12,13,.55) 38%, rgba(11,12,13,0) 65%);
  transition: background-color .6s var(--ease);
}
.mezzo::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 3px; width: 100%;
  background: linear-gradient(90deg, var(--stone) 0 18%, var(--gray) 18% 30%, var(--cream) 30% 44%, var(--peach) 44% 64%, var(--terra) 64%);
  transform: scaleX(0); transform-origin: left; transition: transform .9s var(--ease);
}
.mezzo:hover .mezzo__media img { transform: scale(1.08); filter: grayscale(0) brightness(.92) contrast(1.02); }
.mezzo:hover::after { transform: scaleX(1); }
.mezzo__num {
  position: absolute; top: 18px; left: 24px;
  font-family: var(--ff-serif); font-style: italic; font-size: clamp(3.4rem, 5vw, 4.8rem); line-height: .8; color: var(--peach);
  text-shadow: 0 4px 24px rgba(0,0,0,.45);
}
.mezzo__tag {
  position: absolute; top: 20px; right: 18px;
  font-family: var(--ff-mono); font-size: 11px; letter-spacing: .18em; text-transform: uppercase;
  padding: 7px 11px; background: rgba(11,12,13,.7); border: 1px solid var(--line-2); color: var(--cream);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.mezzo__body { padding: clamp(22px, 2.4vw, 32px); display: grid; gap: 0; }
.mezzo__body h3 { font-size: clamp(1.5rem, 2.2vw, 2rem); font-weight: 600; letter-spacing: -.03em; line-height: 1.1; color: var(--cream); }
.mezzo__more { display: grid; grid-template-rows: 1fr; transition: grid-template-rows .7s var(--ease), opacity .6s var(--ease); }
.mezzo__more > * { min-height: 0; }
.mezzo__more p { color: var(--stone); font-size: .97em; margin-top: 14px; overflow: hidden; }
.mezzo__list { list-style: none; padding: 0; margin: 16px 0 0; display: flex; flex-wrap: wrap; gap: 8px; overflow: hidden; }
.mezzo__list li { font-size: 12.5px; padding: 6px 12px; border: 1px solid rgba(254,238,223,.28); color: var(--cream); border-radius: 100px; background: rgba(11,12,13,.35); }
@media (hover: hover) and (min-width: 760px) {
  .mezzo__more { grid-template-rows: 0fr 0fr; opacity: 0; }
  .mezzo:hover .mezzo__more, .mezzo:focus-within .mezzo__more { grid-template-rows: 1fr 1fr; opacity: 1; }
  .mezzo:hover::before { background-color: rgba(11,12,13,.25); }
}

.mezzi-plus { list-style: none; padding: 0; margin: clamp(40px, 5vw, 72px) 0 0; display: grid; gap: 0; border-top: 1px solid var(--line); }
.mezzi-plus li { display: grid; gap: 8px; padding: 28px 0; border-bottom: 1px solid var(--line); }
.mezzi-plus__k { font-family: var(--ff-mono); font-size: 11.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--terra); }
.mezzi-plus strong { font-size: 1.2rem; font-weight: 600; letter-spacing: -.02em; color: var(--cream); }
.mezzi-plus li > span:last-child { color: var(--muted); font-size: .97em; }
@media (min-width: 900px) {
  .mezzi-plus { grid-template-columns: repeat(3, 1fr); }
  .mezzi-plus li { padding: 34px 32px 34px 0; border-bottom: 0; }
  .mezzi-plus li + li { padding-left: 32px; border-left: 1px solid var(--line); }
}
.mezzi-cta {
  margin-top: clamp(32px, 4vw, 56px); padding: clamp(24px, 3vw, 36px);
  display: flex; flex-wrap: wrap; gap: 20px 32px; align-items: center; justify-content: space-between;
  background: var(--ink-2); border: 1px solid var(--line);
}
.mezzi-cta p { font-size: clamp(1.1rem, 1.6vw, 1.35rem); font-weight: 500; color: var(--cream); max-width: 40ch; }

.footer-legal a { transition: color .3s; }
.footer-legal a:hover { color: var(--peach); }

/* ---------- Instagram (pagina Social) ---------- */
.ig-card {
  position: relative; isolation: isolate; overflow: hidden; display: grid;
  border: 1px solid var(--line); background: var(--ink-2);
  transition: border-color .5s var(--ease);
}
.ig-card:hover { border-color: rgba(248, 202, 169, .45); }
.ig-card::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(circle at 0% 100%, rgba(237, 163, 138, .22), transparent 55%);
}
.ig-card__info { display: grid; gap: clamp(28px, 3vw, 44px); align-content: space-between; padding: clamp(28px, 4vw, 60px); }
.ig-card__icon {
  width: 76px; height: 76px; display: grid; place-items: center; color: var(--ink);
  background: linear-gradient(135deg, var(--peach-l), var(--terra));
}
.ig-card__icon svg { width: 40px; height: 40px; }
.ig-card__handle { font-size: clamp(2rem, 4.4vw, 3.8rem); font-weight: 600; letter-spacing: -.04em; line-height: 1; color: var(--cream); word-break: break-word; }
.ig-card__text { color: var(--muted); margin-top: 18px; max-width: 44ch; }
.ig-card__btn { justify-self: start; }
.ig-card:hover .ig-card__btn::before { transform: none; }
.ig-card:hover .ig-card__btn { color: var(--ink); border-color: var(--cream); }
.ig-card:hover .ig-card__btn .arrow { transform: translateX(5px); }
.ig-card__mosaic { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 3px; min-height: 340px; }
.ig-card__mosaic img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 1; filter: grayscale(.3); transition: transform 1.4s var(--ease), filter .8s var(--ease); }
.ig-card:hover .ig-card__mosaic img { filter: grayscale(0); transform: scale(1.04); }
.ig-card__go {
  position: absolute; top: 50%; left: 50%; width: 76px; height: 76px; transform: translate(-50%, -50%) rotate(-45deg);
  display: grid; place-items: center; border-radius: 50%; background: var(--cream); color: var(--ink);
  box-shadow: 0 16px 40px rgba(0,0,0,.45); transition: transform .6s var(--ease);
}
.ig-card__go svg { width: 26px; height: 26px; }
.ig-card:hover .ig-card__go { transform: translate(-50%, -50%) rotate(0deg) scale(1.08); }
@media (min-width: 900px) {
  .ig-card { grid-template-columns: 1.05fr 1fr; }
  .ig-card__mosaic { overflow: hidden; }
}

/* Sezione "L'impresa" senza riquadro logo */
@media (min-width: 960px) {
  .intro__body--single { grid-template-columns: minmax(0, 760px); margin-left: auto; }
}
.mobile-menu li:nth-child(6) a { transition-delay: .25s; }

/* ---------- Menu a tendina: versione editoriale ---------- */
.mobile-menu {
  background:
    radial-gradient(120% 60% at 100% 100%, rgba(237, 163, 138, .16), transparent 60%),
    radial-gradient(80% 40% at 0% 0%, rgba(162, 172, 174, .07), transparent 60%),
    var(--ink);
}
.mm-head {
  display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: clamp(10px, 3vh, 28px);
  opacity: 0; transform: translateY(10px); transition: opacity .6s .15s, transform .6s .15s var(--ease);
}
.mobile-menu.is-open .mm-head { opacity: 1; transform: none; }
.mm-head .brand-stripe { max-width: 120px; height: 4px; }
.mobile-menu ol { gap: 0; }
.mobile-menu li { border-bottom: 1px solid var(--line); }
.mobile-menu li:first-child { border-top: 1px solid var(--line); }
.mobile-menu a.mm-link {
  position: relative; display: grid; grid-template-columns: 34px 1fr auto; align-items: baseline; gap: 0 10px;
  padding: clamp(10px, 1.8vh, 18px) 0;
  font-family: var(--ff-serif); font-weight: 400; font-style: normal;
  font-size: clamp(2.7rem, 12.5vw, 4.4rem); letter-spacing: -.015em; line-height: 1;
  color: var(--cream);
}
.mobile-menu a.mm-link::before {
  align-self: center; font-size: 11px; letter-spacing: .14em; color: var(--muted-2);
  transition: color .4s;
}
.mm-txt {
  display: inline-block; transform-origin: left center;
  transition: transform .6s var(--ease), color .4s var(--ease), letter-spacing .6s var(--ease);
}
.mm-sub {
  font-family: var(--ff-mono); font-size: 10.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted-2);
  align-self: center; text-align: right; white-space: nowrap; transition: color .4s, transform .6s var(--ease);
}
.mobile-menu a.mm-link::after {
  content: ""; position: absolute; left: 44px; right: 0; bottom: -1px; height: 1px; background: var(--peach);
  transform: scaleX(0); transform-origin: left; transition: transform .7s var(--ease);
}
.mobile-menu a.mm-link:hover .mm-txt, .mobile-menu a.mm-link:focus-visible .mm-txt, .mobile-menu a.mm-link:active .mm-txt,
.mobile-menu a.mm-link[aria-current="page"] .mm-txt {
  font-style: italic; color: var(--peach); transform: translateX(10px);
}
.mobile-menu a.mm-link:hover::after, .mobile-menu a.mm-link:focus-visible::after, .mobile-menu a.mm-link[aria-current="page"]::after { transform: scaleX(1); }
.mobile-menu a.mm-link:hover::before, .mobile-menu a.mm-link[aria-current="page"]::before { color: var(--terra); }
.mobile-menu a.mm-link:hover .mm-sub, .mobile-menu a.mm-link[aria-current="page"] .mm-sub { color: var(--peach); transform: translateX(-4px); }
.mobile-menu a.mm-link[aria-current="page"] .mm-sub::before { content: "● "; color: var(--terra); }
@media (max-width: 359px) { .mm-sub { display: none; } }
