/* ==========================================================================
   Sangiorgio Pubblicità — foglio di stile (v2, "interattivo")
   Font, immagini e librerie sono ospitati sul sito: nessuna richiesta esterna.
   Le animazioni partono solo se il browser lo consente (prefers-reduced-motion)
   e il sito resta completo anche senza JavaScript.
   ========================================================================== */

/* ---------- Font ---------- */
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/barlow-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-style: italic; font-weight: 400; font-display: swap; src: url("../fonts/barlow-latin-400-italic.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/barlow-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/barlow-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/barlow-condensed-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/barlow-condensed-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-style: normal; font-weight: 800; font-display: swap; src: url("../fonts/barlow-condensed-latin-800-normal.woff2") format("woff2"); }
@font-face { font-family: "Instrument Serif"; font-style: italic; font-weight: 400; font-display: swap; src: url("../fonts/instrument-serif-latin-400-italic.woff2") format("woff2"); }

/* ---------- Token ---------- */
:root {
  color-scheme: light;
  --navy: #133758;
  --navy-deep: #0b2440;
  --navy-ink: #071a2f;
  --navy-soft: #1d4a73;
  --sky: #66b9dd;
  --sky-soft: #a9d7ee;
  --accent: #c44900;
  --accent-hover: #a63d00;
  --accent-text: #b84300;
  --accent-on-dark: #f28c3e;
  --water: #63b6e2;
  --water-deep: #3f97cc;
  --asphalt: #222c36;

  --paper: #f3f1ec;
  --paper-2: #e8e5de;
  --white: #ffffff;
  --ink: #14202b;
  --muted: #4f5b66;
  --line: #d9d5cc;
  --line-dark: rgba(255, 255, 255, 0.14);
  --on-dark: #ffffff;
  --on-dark-muted: #c3d1df;
  --logo-tile: #f0f2ef;

  --font-body: "Barlow", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Barlow Condensed", "Arial Narrow", system-ui, sans-serif;
  --font-serif: "Instrument Serif", Georgia, "Times New Roman", serif;

  --fs-xs: 0.8125rem;
  --fs-sm: 0.9375rem;
  --fs-base: 1.0625rem;
  --fs-lg: clamp(1.125rem, 1.05rem + 0.35vw, 1.32rem);
  --fs-mega: clamp(3.4rem, 0.9rem + 10.4vw, 12.5rem);
  --fs-h1: clamp(3.2rem, 1.2rem + 7.6vw, 9rem);
  --fs-h2: clamp(2.5rem, 1.35rem + 4.2vw, 5.6rem);
  --fs-h3: clamp(1.4rem, 1.2rem + 0.6vw, 1.75rem);
  --fs-statement: clamp(1.9rem, 0.95rem + 3.3vw, 4.6rem);

  --gutter: clamp(16px, 4vw, 48px);
  --section: clamp(64px, 8vw, 128px);
  --radius: 6px;
  --radius-lg: 14px;
  --shadow: 0 14px 40px -18px rgba(7, 26, 47, 0.35);
  --shadow-lg: 0 40px 80px -30px rgba(7, 26, 47, 0.55);
  --header-h: 84px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: no-preference) { html:not(.lenis) { scroll-behavior: smooth; } }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-stopped { overflow: clip; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-smooth iframe { pointer-events: none; }
.lenis.lenis-smooth .map iframe { pointer-events: auto; }
body {
  margin: 0; font-family: var(--font-body); font-size: var(--fs-base); line-height: 1.65;
  color: var(--ink); background: var(--white); overflow-x: hidden;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
body.nav-open { overflow: hidden; }
img, video, svg, canvas, iframe { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
strong { font-weight: 600; color: var(--navy); }
button, input, select, textarea { font: inherit; color: inherit; }
:where(ul[class], ol[class]) { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4 {
  margin: 0 0 0.5em; font-family: var(--font-display); font-weight: 800; line-height: 0.92;
  text-transform: uppercase; letter-spacing: 0; color: var(--navy); text-wrap: balance;
}
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); font-weight: 700; line-height: 1.05; letter-spacing: 0.01em; }
h4 { font-size: 1.15rem; font-weight: 700; letter-spacing: 0.02em; }
/* Accento serif corsivo dentro i titoli */
.serif, h1 em, h2 em, .mega em {
  font-family: var(--font-serif); font-style: italic; font-weight: 400; text-transform: none;
  letter-spacing: -0.01em; font-size: 1.04em; line-height: 0.8;
}
:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; border-radius: 2px; }
::selection { background: var(--accent-on-dark); color: var(--navy-ink); }

.icon { width: 1.25em; height: 1.25em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.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: absolute; left: 16px; top: -100px; z-index: 2000; background: var(--navy); color: #fff; padding: 12px 18px; border-radius: var(--radius); font-weight: 600; text-decoration: none; }
.skip-link:focus { top: 12px; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: 1440px; margin-inline: auto; padding-inline: var(--gutter); }
.container--narrow { max-width: 1040px; }
.section { padding-block: var(--section); position: relative; }
.section--tight { padding-block: calc(var(--section) * 0.6); }
.section--paper { background: var(--paper); }
.section--navy { background: var(--navy); color: var(--on-dark-muted); }
.section--deep { background: var(--navy-deep); color: var(--on-dark-muted); }
.section--navy :is(h1, h2, h3), .section--deep :is(h1, h2, h3) { color: var(--on-dark); }
.section--navy strong, .section--deep strong { color: var(--on-dark); }
.section--navy h2 em, .section--deep h2 em, .page-hero h1 em { color: var(--accent-on-dark); }
h2 em { color: var(--accent-text); }

.section-head { max-width: 900px; margin-bottom: clamp(40px, 6vw, 80px); }
.section-head p:not(.eyebrow) { font-size: var(--fs-lg); color: var(--muted); max-width: 640px; }
.section--navy .section-head p:not(.eyebrow), .section--deep .section-head p:not(.eyebrow) { color: var(--on-dark-muted); }
.section-head--split { max-width: none; display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 20px 48px; }
.section-head--split > div { max-width: 900px; }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .eyebrow { margin-inline: auto; }
.section-head--center p:not(.eyebrow) { margin-inline: auto; }

.eyebrow {
  display: flex; align-items: center; gap: 10px; width: fit-content; margin: 0 0 22px; line-height: 1.2;
  font-family: var(--font-display); font-weight: 700; font-size: 0.95rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--accent-text);
}
.eyebrow .dots { width: 22px; height: auto; }
.section--navy .eyebrow, .section--deep .eyebrow, .on-dark .eyebrow { color: var(--accent-on-dark); }
.lead { font-size: var(--fs-lg); line-height: 1.6; color: var(--muted); }
.count-sup { font-family: var(--font-display); font-weight: 600; font-size: 0.32em; vertical-align: top; letter-spacing: 0.04em; color: var(--accent-on-dark); margin-left: 0.2em; }

.dots { display: inline-block; flex: none; }
.dots .d-sky { fill: var(--sky); }
.dots .d { fill: currentColor; }

/* ---------- Testo "roll" (hover) ---------- */
.roll { position: relative; display: inline-block; overflow: hidden; vertical-align: top; line-height: 1.35; margin-block: -0.1em; }
.roll > span { display: inline-block; transition: transform 0.55s var(--ease-out); }
.roll::after {
  content: attr(data-text); position: absolute; left: 0; top: 100%; white-space: nowrap;
  transition: transform 0.55s var(--ease-out);
}
:is(a, button):hover > .roll > span, :is(a, button):hover > .roll::after,
:is(a, button):focus-visible > .roll > span, :is(a, button):focus-visible > .roll::after { transform: translateY(-100%); }

/* ---------- Pulsanti ---------- */
.btn {
  --btn-bg: var(--accent); --btn-fg: #fff; --btn-bd: var(--accent); --btn-fill: var(--navy-ink); --btn-fill-fg: #fff;
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 54px; padding: 14px 28px; border: 2px solid var(--btn-bd); border-radius: 999px;
  background: var(--btn-bg); color: var(--btn-fg);
  font-family: var(--font-display); font-weight: 700; font-size: 1.12rem; letter-spacing: 0.08em; text-transform: uppercase;
  text-decoration: none; line-height: 1.1; cursor: pointer;
  transition: color 0.45s var(--ease-out), border-color 0.45s var(--ease-out);
}
.btn::before {
  content: ""; position: absolute; z-index: -1; left: 50%; top: 100%; width: 140%; aspect-ratio: 1;
  border-radius: 50%; background: var(--btn-fill); transform: translate(-50%, 0) scale(0.2);
  transition: transform 0.6s var(--ease-out);
}
.btn:hover::before, .btn:focus-visible::before { transform: translate(-50%, -60%) scale(1); }
.btn:hover, .btn:focus-visible { color: var(--btn-fill-fg); border-color: var(--btn-fill); }
.btn .icon { width: 1.1em; height: 1.1em; transition: transform 0.45s var(--ease-out); }
.btn:hover .icon--arrow { transform: translateX(4px); }
.btn--ghost-light { --btn-bg: transparent; --btn-fg: #fff; --btn-bd: rgba(255, 255, 255, 0.5); --btn-fill: #fff; --btn-fill-fg: var(--navy-ink); }
.btn--outline { --btn-bg: transparent; --btn-fg: var(--navy); --btn-bd: var(--navy); --btn-fill: var(--navy); --btn-fill-fg: #fff; }
.btn--light { --btn-bg: #fff; --btn-fg: var(--navy-ink); --btn-bd: #fff; --btn-fill: var(--accent); --btn-fill-fg: #fff; }
.btn--sm { min-height: 44px; padding: 9px 20px; font-size: 1rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

.btn-circle {
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-grid; place-content: center; justify-items: center; gap: 6px;
  width: clamp(150px, 15vw, 210px); aspect-ratio: 1; border-radius: 50%;
  background: var(--accent); color: #fff; text-decoration: none; text-align: center;
  font-family: var(--font-display); font-weight: 700; font-size: clamp(1.1rem, 0.9rem + 0.6vw, 1.45rem); letter-spacing: 0.08em; text-transform: uppercase; line-height: 1.05;
}
.btn-circle::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: 50%; background: #fff; transform: scale(0); transition: transform 0.6s var(--ease-out); }
.btn-circle:hover::before, .btn-circle:focus-visible::before { transform: scale(1); }
.btn-circle:hover, .btn-circle:focus-visible { color: var(--navy-ink); }
.btn-circle .icon { width: 28px; height: 28px; transform: rotate(-45deg); transition: transform 0.5s var(--ease-out); }
.btn-circle:hover .icon { transform: rotate(0); }

.link-arrow {
  display: inline-flex; align-items: center; gap: 10px; text-decoration: none;
  font-family: var(--font-display); font-weight: 700; font-size: 1.08rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--accent-text);
}
.link-arrow .icon { transition: transform 0.45s var(--ease-out); }
.link-arrow:hover .icon { transform: translateX(5px); }
.section--navy .link-arrow, .section--deep .link-arrow { color: var(--accent-on-dark); }

/* ---------- Cursore personalizzato (solo mouse) ---------- */
.cursor { position: fixed; left: 0; top: 0; z-index: 3000; pointer-events: none; display: none; }
.has-cursor .cursor { display: block; }
.cursor__dot, .cursor__ring { position: fixed; left: 0; top: 0; border-radius: 50%; will-change: transform; }
.cursor__dot { width: 8px; height: 8px; margin: -4px 0 0 -4px; background: var(--accent-on-dark); transition: opacity 0.3s, width 0.3s, height 0.3s, margin 0.3s; }
.cursor__ring {
  width: 44px; height: 44px; margin: -22px 0 0 -22px; border: 1.5px solid rgba(242, 140, 62, 0.7);
  display: grid; place-items: center;
  transition: width 0.45s var(--ease-out), height 0.45s var(--ease-out), margin 0.45s var(--ease-out), background-color 0.45s, border-color 0.45s, opacity 0.3s;
}
.cursor__label {
  font-family: var(--font-display); font-weight: 700; font-size: 0.95rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: #fff; opacity: 0; transform: scale(0.6); transition: opacity 0.3s, transform 0.45s var(--ease-out); white-space: nowrap;
}
.cursor.is-link .cursor__ring { width: 64px; height: 64px; margin: -32px 0 0 -32px; border-color: var(--accent-on-dark); background: rgba(242, 140, 62, 0.12); }
.cursor.is-label .cursor__ring { width: 96px; height: 96px; margin: -48px 0 0 -48px; border-color: transparent; background: var(--accent); }
.cursor.is-label .cursor__label { opacity: 1; transform: none; }
.cursor.is-label .cursor__dot { opacity: 0; }
.cursor.is-hidden .cursor__dot, .cursor.is-hidden .cursor__ring, .cursor.is-off .cursor__dot, .cursor.is-off .cursor__ring { opacity: 0; }
.cursor.is-down .cursor__ring { width: 34px; height: 34px; margin: -17px 0 0 -17px; }
@media (hover: hover) and (pointer: fine) {
  .has-cursor, .has-cursor a, .has-cursor button, .has-cursor [data-cursor] { cursor: none; }
  .has-cursor :is(input, textarea, select, iframe, label) { cursor: auto; }
}

/* ---------- Grana ---------- */
.grain {
  position: fixed; inset: 0; z-index: 2500; pointer-events: none; opacity: 0.06;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
@media (prefers-reduced-motion: no-preference) { .grain { animation: grain 1.2s steps(6) infinite; } }
@keyframes grain { 0%, 100% { background-position: 0 0; } 20% { background-position: -37px 21px; } 40% { background-position: 23px -48px; } 60% { background-position: -51px -12px; } 80% { background-position: 34px 39px; } }

/* ---------- Barra di avanzamento ---------- */
.progress { position: fixed; left: 0; top: 0; z-index: 1200; width: 100%; height: 3px; background: var(--accent-on-dark); transform: scaleX(0); transform-origin: 0 50%; pointer-events: none; }

/* ---------- Preloader (solo prima visita della sessione) ---------- */
.preloader { display: none; }
.is-preloading .preloader {
  position: fixed; inset: 0; z-index: 2200; display: grid; place-items: center; background: var(--navy-ink); color: #fff;
}
.preloader__inner { display: grid; justify-items: center; gap: 18px; text-align: center; }
.preloader .dots { width: 64px; color: #fff; }
.preloader__count {
  font-family: var(--font-display); font-weight: 800; font-size: clamp(5rem, 2rem + 14vw, 15rem); line-height: 0.85;
  letter-spacing: -0.01em; font-variant-numeric: tabular-nums;
}
.preloader__label { font-family: var(--font-display); font-weight: 700; letter-spacing: 0.24em; text-transform: uppercase; color: var(--on-dark-muted); font-size: 0.95rem; }
.preloader__label em { font-family: var(--font-serif); font-style: italic; letter-spacing: 0; text-transform: none; font-size: 1.5em; color: var(--accent-on-dark); font-weight: 400; }
.preloader__bar { width: min(280px, 60vw); height: 2px; background: rgba(255, 255, 255, 0.15); overflow: hidden; }
.preloader__bar span { display: block; height: 100%; background: var(--accent-on-dark); transform: scaleX(0); transform-origin: 0 50%; }

/* ---------- Transizione tra pagine ---------- */
.curtain {
  position: fixed; inset: 0; z-index: 2100; pointer-events: none; display: grid; place-items: center;
  visibility: hidden; perspective: 1400px;
}
.curtain__slats { position: absolute; inset: 0; display: flex; }
.curtain__slats span {
  flex: 1 0 0; margin-right: -1px; transform: rotateY(90deg);
  background: linear-gradient(90deg, #0d2742, var(--navy-ink) 60%, #05121f);
}
.curtain .dots { position: relative; width: 72px; color: #fff; opacity: 0; }
.is-entering .curtain { visibility: visible; }
.is-entering .curtain__slats span { transform: none; }
.is-entering .curtain .dots { opacity: 1; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 1000; color: #fff;
  transition: background-color 0.45s, color 0.45s, transform 0.6s var(--ease-out), box-shadow 0.45s;
}
.site-header::before {
  content: ""; position: absolute; inset: 0 0 -40px 0; z-index: -1; pointer-events: none;
  background: linear-gradient(180deg, rgba(7, 26, 47, 0.55), rgba(7, 26, 47, 0)); transition: opacity 0.45s;
}
.site-header.is-solid { background: rgba(255, 255, 255, 0.96); color: var(--navy); box-shadow: 0 10px 30px -22px rgba(7, 26, 47, 0.5); }
.site-header.is-solid::before { opacity: 0; }
.site-header.is-hidden { transform: translateY(-105%); }
.page-light .site-header { background: #fff; color: var(--navy); }
.page-light .site-header::before { opacity: 0; }
.page-light main { padding-top: var(--header-h); }
.site-header__inner { display: flex; align-items: center; gap: 24px; height: var(--header-h); }
.brand { position: relative; display: inline-flex; flex: none; margin-right: auto; }
.brand img { width: auto; height: 48px; transition: opacity 0.45s; }
.brand .brand__dark { position: absolute; left: 0; top: 0; opacity: 0; }
.site-header.is-solid .brand__dark, .page-light .brand__dark { opacity: 1; }
.site-header.is-solid .brand__light, .page-light .brand__light { opacity: 0; }

.nav { display: flex; align-items: center; gap: 28px; }
.nav__list { display: flex; align-items: center; gap: 4px; }
.nav__item { position: relative; }
.nav__link {
  display: inline-flex; align-items: center; padding: 10px 14px;
  font-family: var(--font-display); font-weight: 600; font-size: 1.12rem; letter-spacing: 0.08em; text-transform: uppercase;
  text-decoration: none; color: inherit; position: relative;
}
.nav__link::after {
  content: ""; position: absolute; left: 50%; bottom: 2px; width: 6px; height: 6px; margin-left: -3px; border-radius: 50%;
  background: var(--accent-on-dark); transform: scale(0); transition: transform 0.4s var(--ease-out);
}
.nav__link[aria-current="page"]::after, .nav__item--active > .nav__link::after { transform: scale(1); }
.nav__sub-toggle { display: inline-grid; place-items: center; width: 30px; height: 30px; margin-left: 0; border: 0; background: none; color: inherit; cursor: pointer; }
.nav__item--has-sub > .nav__link { padding-right: 2px; }
.nav__sub-toggle .icon { width: 16px; height: 16px; transition: transform 0.3s; }
.nav__sub {
  position: absolute; top: calc(100% + 10px); left: -12px; min-width: 320px; padding: 12px;
  background: #fff; color: var(--ink); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: opacity 0.3s, transform 0.45s var(--ease-out), visibility 0.3s;
}
.nav__sub::before { content: ""; position: absolute; left: 0; right: 0; top: -12px; height: 12px; }
.nav__item--has-sub:hover .nav__sub, .nav__item--has-sub:focus-within .nav__sub, .nav__item--has-sub.is-open .nav__sub { opacity: 1; visibility: visible; transform: none; }
.nav__item--has-sub:hover .nav__sub-toggle .icon, .nav__item--has-sub.is-open .nav__sub-toggle .icon { transform: rotate(180deg); }
.nav__sub a { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: var(--radius); text-decoration: none; font-weight: 500; transition: background 0.25s, padding 0.35s var(--ease-out); }
.nav__sub a .icon { color: var(--accent-text); width: 20px; height: 20px; }
.nav__sub a:hover, .nav__sub a[aria-current="page"] { background: var(--paper); padding-left: 18px; }
.nav__actions { display: flex; align-items: center; gap: 18px; }
.nav__phone { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; letter-spacing: 0.04em; }
.nav__phone .icon { color: var(--accent-on-dark); }
.site-header.is-solid .nav__phone .icon, .page-light .nav__phone .icon { color: var(--accent-text); }
.nav__extra { display: none; }
/* Lingua: IT / EN */
.lang { display: inline-flex; align-items: center; gap: 7px; font-family: var(--font-display); font-weight: 700; font-size: 1rem; letter-spacing: 0.1em; }
.lang__cur { position: relative; }
.lang__cur::after { content: ""; position: absolute; left: 0; right: 0.1em; bottom: -3px; height: 2px; background: var(--accent-on-dark); }
.site-header.is-solid .lang__cur::after, .page-light .lang__cur::after { background: var(--accent-text); }
.lang__sep { opacity: 0.45; font-weight: 400; }
.lang__alt { color: inherit; text-decoration: none; padding: 8px 2px; background: linear-gradient(currentColor, currentColor) 0 calc(100% - 5px) / 0 1px no-repeat; transition: background-size 0.35s var(--ease-out); }
.lang__alt:hover, .lang__alt:focus-visible { background-size: 100% 1px; }

.nav-toggle {
  display: none; position: relative; width: 50px; height: 50px; margin-right: -8px; border: 0; background: none; color: inherit; cursor: pointer;
}
.nav-toggle span { position: absolute; left: 12px; right: 12px; height: 2px; background: currentColor; border-radius: 2px; transition: transform 0.45s var(--ease-out), top 0.45s var(--ease-out), opacity 0.3s; }
.nav-toggle span:nth-child(1) { top: 18px; }
.nav-toggle span:nth-child(2) { top: 24px; }
.nav-toggle span:nth-child(3) { top: 30px; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { top: 24px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { top: 24px; transform: rotate(-45deg); }

/* Header: completo da 1400px, compatto (senza telefono) fino a 1200px, sotto il menu a scomparsa */
.nav__link, .nav__phone, .nav__actions .btn { white-space: nowrap; }
@media (max-width: 1399px) {
  .nav__phone { display: none; }
  .nav { gap: 18px; }
  .nav__link { padding-inline: 10px; }
  .nav__actions { gap: 16px; }
}
@media (max-width: 1199px) {
  :root { --header-h: 70px; }
  .brand img { height: 40px; }
  .nav-toggle { display: block; z-index: 2; }
  body.nav-open .site-header { background: transparent; color: #fff; box-shadow: none; transform: none; }
  body.nav-open .site-header .brand__dark { opacity: 0; }
  body.nav-open .site-header .brand__light { opacity: 1; }
  .site-header .brand { z-index: 2; }
  .nav {
    position: fixed; inset: 0; z-index: 1; height: 100dvh;
    display: flex; flex-direction: column; align-items: stretch; gap: 0;
    padding: calc(var(--header-h) + 20px) var(--gutter) 32px; overflow-y: auto;
    background: var(--navy-ink); color: #fff;
    clip-path: circle(0% at calc(100% - 40px) 35px); visibility: hidden;
    transition: clip-path 0.8s var(--ease-out), visibility 0.8s;
  }
  .nav.is-open { clip-path: circle(150% at calc(100% - 40px) 35px); visibility: visible; }
  .nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav__item { border-bottom: 1px solid var(--line-dark); opacity: 0; transform: translateY(30px); transition: opacity 0.5s, transform 0.7s var(--ease-out); transition-delay: calc(0.15s + var(--i, 0) * 0.06s); }
  .nav.is-open .nav__item { opacity: 1; transform: none; }
  .nav__item--has-sub { display: flex; flex-wrap: wrap; align-items: center; }
  .nav__item--has-sub > .nav__link { flex: 1; }
  .nav__link { padding: 14px 0; font-size: clamp(2rem, 1.4rem + 3vw, 2.8rem); font-weight: 800; letter-spacing: 0.02em; }
  .nav__link::after { left: auto; right: 0; bottom: 50%; margin: 0 0 -3px; }
  .nav__link[aria-current="page"], .nav__item--active > .nav__link { color: var(--accent-on-dark); }
  .nav__sub-toggle { width: 50px; height: 50px; margin: 0; }
  .nav__sub-toggle .icon { width: 26px; height: 26px; }
  .nav__item--has-sub:hover .nav__sub-toggle .icon { transform: none; }
  .nav__item--has-sub.is-open .nav__sub-toggle .icon { transform: rotate(180deg); }
  .nav__sub {
    position: static; flex-basis: 100%; min-width: 0; padding: 0 0 14px; margin: 0; display: none;
    background: none; color: #fff; box-shadow: none; border-radius: 0; opacity: 1; visibility: visible; transform: none;
  }
  .nav__sub::before { display: none; }
  .nav__item--has-sub.is-open .nav__sub { display: block; }
  .nav__item--has-sub:focus-within .nav__sub { display: none; }
  .nav__item--has-sub.is-open:focus-within .nav__sub { display: block; }
  .nav__sub a { padding: 10px 4px; font-size: 1.1rem; color: var(--on-dark-muted); }
  .nav__sub a:hover, .nav__sub a[aria-current="page"] { background: rgba(255, 255, 255, 0.06); color: #fff; }
  .nav__sub a .icon { color: var(--accent-on-dark); }
  .nav__actions { flex-direction: column; align-items: stretch; gap: 14px; margin-top: 28px; opacity: 0; transition: opacity 0.6s 0.5s; }
  .nav.is-open .nav__actions { opacity: 1; }
  .nav__actions .btn { width: 100%; }
  .nav__phone { display: inline-flex; justify-content: center; font-size: 1.4rem; padding: 8px; }
  .nav__actions .lang { justify-content: center; font-size: 1.25rem; padding: 4px; }
  .nav__actions .lang__cur::after { background: var(--accent-on-dark); }
  .nav__phone .icon, .site-header.is-solid .nav__phone .icon { color: var(--accent-on-dark); }
  .nav__extra { display: block; margin-top: auto; padding-top: 28px; font-size: var(--fs-sm); color: var(--on-dark-muted); opacity: 0; transition: opacity 0.6s 0.6s; }
  .nav.is-open .nav__extra { opacity: 1; }
  .nav__extra a { color: #fff; }
}

/* ---------- HERO home + cartellone (scroll) ---------- */
.hero { position: relative; background: var(--navy-ink); color: #fff; }
.hero__stage { position: relative; height: 100svh; min-height: 620px; overflow: hidden; }
.hero__media { position: absolute; inset: 0; overflow: hidden; will-change: clip-path; }
.hero__media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(7, 26, 47, 0.82) 0%, rgba(7, 26, 47, 0.45) 55%, rgba(7, 26, 47, 0.2) 100%),
    linear-gradient(0deg, rgba(7, 26, 47, 0.85) 0%, rgba(7, 26, 47, 0) 50%);
}
.hero__frame, .hero__legs, .hero__after, .hero__try, .trivision, .tv-toggle { display: none; }
.hero__content {
  position: relative; z-index: 2; height: 100%;
  display: grid; grid-template-rows: auto 1fr auto; padding-top: calc(var(--header-h) + clamp(16px, 3vh, 40px)); padding-bottom: clamp(28px, 5vh, 56px);
}
.hero__top { display: flex; justify-content: space-between; gap: 24px; font-family: var(--font-display); font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; font-size: 0.95rem; color: var(--on-dark-muted); }
.hero__top b { color: #fff; font-weight: 700; }
.hero__years { text-align: right; }
.hero__years strong { display: block; color: #fff; font-family: var(--font-serif); font-style: italic; font-weight: 400; text-transform: none; letter-spacing: 0; font-size: 2rem; line-height: 1; }
.hero__title {
  align-self: end; margin: 0 0 clamp(20px, 3vh, 36px); color: #fff;
  font-size: var(--fs-mega); line-height: 0.84; letter-spacing: -0.005em;
}
.hero__title .line { display: block; overflow: hidden; padding: 0.14em 0.1em 0.24em; margin: -0.14em -0.1em -0.2em; }
.hero__title .line > span { display: inline-block; }
.hero__title em { color: var(--accent-on-dark); }
.hero__bottom { display: grid; grid-template-columns: minmax(0, 560px) auto; justify-content: space-between; align-items: end; gap: 24px 40px; }
.hero__bottom .lead { color: var(--on-dark-muted); margin: 0 0 22px; }
.hero__scroll { display: inline-flex; align-items: center; gap: 14px; font-family: var(--font-display); font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; font-size: 0.85rem; color: var(--on-dark-muted); text-decoration: none; }
.hero__scroll i { position: relative; display: block; width: 1px; height: 64px; background: rgba(255, 255, 255, 0.25); overflow: hidden; }
.hero__scroll i::after { content: ""; position: absolute; left: 0; top: 0; width: 1px; height: 40%; background: #fff; animation: scrolldown 2.2s var(--ease) infinite; }
@keyframes scrolldown { 0% { transform: translateY(-100%); } 100% { transform: translateY(260%); } }
.hero__video-toggle {
  position: absolute; right: var(--gutter); bottom: clamp(28px, 5vh, 56px); z-index: 3;
  display: none; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.4); background: rgba(7, 26, 47, 0.35); color: #fff; cursor: pointer;
}
.hero__video-toggle .icon { width: 16px; height: 16px; }
.hero__video-toggle .icon--play { display: none; }
.hero__video-toggle[aria-pressed="true"] .icon--pause { display: none; }
.hero__video-toggle[aria-pressed="true"] .icon--play { display: block; }
@media (max-width: 760px) {
  .hero__bottom { grid-template-columns: 1fr; }
  .hero__scroll { display: none; }
  .hero__top { font-size: 0.78rem; }
  .hero__years strong { font-size: 1.5rem; }
  .hero__video-toggle { display: grid; }
}

/* Stato "cartellone" (abilitato da JS) */
.motion-ok .hero__frame {
  display: block; position: absolute; z-index: 1; pointer-events: none;
  left: var(--bb-x, 15%); top: var(--bb-y, 25%); width: var(--bb-w, 70%); height: var(--bb-h, 35%);
  border-radius: 8px; box-shadow: 0 0 0 clamp(6px, 0.9vw, 12px) #1b232b, 0 40px 80px -20px rgba(0, 0, 0, 0.7); opacity: 0;
}
.motion-ok .hero__legs { display: block; position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.hero__legs span {
  position: absolute; top: calc(var(--bb-y, 25%) + var(--bb-h, 35%)); bottom: 0; width: clamp(10px, 1.3vw, 20px);
  background: linear-gradient(90deg, #3c4650, #8d969f 45%, #3c4650); transform-origin: 50% 100%; transform: scaleY(0);
}
.hero__legs span:nth-child(1) { left: calc(var(--bb-x, 15%) + var(--bb-w, 70%) * 0.24); }
.hero__legs span:nth-child(2) { left: calc(var(--bb-x, 15%) + var(--bb-w, 70%) * 0.76 - clamp(10px, 1.3vw, 20px)); }
.motion-ok .hero__after {
  display: grid; align-items: end; justify-items: center; text-align: center;
  position: absolute; z-index: 2; left: 0; right: 0; top: var(--header-h); height: calc(var(--bb-y, 25%) - var(--header-h) - clamp(18px, 3vh, 40px));
  padding-inline: var(--gutter); pointer-events: none;
}
.hero__step { grid-area: 1 / 1; display: flex; flex-direction: column; align-items: center; }
.motion-ok .hero__after, .motion-ok .hero__step:not(:first-child) > * { opacity: 0; visibility: hidden; }
/* Pausa della rotazione: sotto il cartellone, allineata al suo bordo destro */
.motion-ok .tv-toggle {
  display: grid; place-items: center; position: absolute; z-index: 3; width: 40px; height: 40px; padding: 0; border-radius: 50%;
  top: calc(var(--bb-y, 25%) + var(--bb-h, 35%) + clamp(18px, 2.4vh, 26px)); left: calc(var(--bb-x, 15%) + var(--bb-w, 70%) - 40px);
  border: 1px solid rgba(255, 255, 255, 0.35); background: rgba(7, 26, 47, 0.55); color: #fff; cursor: pointer;
  opacity: 0; visibility: hidden; transition: background-color 0.3s, border-color 0.3s;
}
.tv-toggle:hover { background: var(--accent); border-color: var(--accent); }
.tv-toggle .icon { width: 14px; height: 14px; }
.tv-toggle .icon--play { display: none; }
.tv-toggle[aria-pressed="true"] .icon--pause { display: none; }
.tv-toggle[aria-pressed="true"] .icon--play { display: block; }
.motion-ok .hero__try {
  display: flex; justify-content: center; position: absolute; z-index: 3; left: 0; right: 0; bottom: clamp(16px, 4vh, 40px);
  padding-inline: var(--gutter); pointer-events: none; opacity: 0; visibility: hidden;
}
.hero__try .btn { pointer-events: auto; }

/* Trivision: lamelle a prisma triangolare (tre facce), costruite da motion.js */
.motion-ok .trivision {
  display: block; position: absolute; left: var(--bb-x, 15%); top: var(--bb-y, 25%); width: var(--bb-w, 70%); height: var(--bb-h, 35%);
  background: #0a1118; perspective: calc(var(--bb-w, 900px) * 1.5); opacity: 0; visibility: hidden;
  --r: calc(var(--bb-w, 900px) / var(--n, 20) * 0.2887);
}
.tv-slat {
  position: absolute; top: 0; bottom: 0; left: calc(var(--i) * 100% / var(--n)); width: calc(100% / var(--n));
  transform-style: preserve-3d; transform: translateZ(calc(var(--r) * -1));
}
.tv-prism { position: absolute; inset: 0; transform-style: preserve-3d; }
.tv-face {
  position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden;
  background-repeat: no-repeat; background-size: calc(var(--n) * 100%) 100%;
  background-position: calc(var(--i) / (var(--n) - 1) * 100%) 0;
  box-shadow: inset 1px 0 rgba(0, 0, 0, 0.45);
}
.tv-face::after { content: ""; position: absolute; inset: 0; background: #03080e; opacity: var(--sh, 0); }
.tv-face--a { transform: translateZ(var(--r)); background-color: #0f4c78; background-image: url("../img/campagna-emergere.webp"); }
.tv-face--b { transform: rotateY(120deg) translateZ(var(--r)); background-color: #0b2440; background-image: var(--tv-b, none); }
.tv-face--c { transform: rotateY(240deg) translateZ(var(--r)); background-color: #f3f1ec; background-image: var(--tv-c, none); }
.hero__after-title { margin: 0; font-family: var(--font-display); font-weight: 800; text-transform: uppercase; line-height: 0.9; color: #fff; font-size: clamp(2rem, 1rem + 4.6vw, 6rem); text-wrap: balance; }
.hero__after-title em { font-family: var(--font-serif); font-weight: 400; font-style: italic; text-transform: none; color: var(--accent-on-dark); }
.hero__after .eyebrow { margin-inline: auto; margin-bottom: 12px; color: var(--accent-on-dark); }
.hero__formats {
  display: none; position: absolute; z-index: 2; left: 0; right: 0; bottom: clamp(16px, 4vh, 40px);
  justify-content: center; gap: 8px; flex-wrap: wrap; padding-inline: var(--gutter);
}
.motion-ok .hero__formats { display: flex; }
.hero__formats li {
  padding: 8px 16px; border: 1px solid var(--line-dark); border-radius: 999px; background: rgba(7, 26, 47, 0.6);
  font-family: var(--font-display); font-weight: 700; letter-spacing: 0.08em; color: #fff; opacity: 0;
}

/* ---------- Statement con parole che si accendono ---------- */
.statement-section { background: var(--paper); }
.statement {
  margin: 0; max-width: 1280px; font-family: var(--font-display); font-weight: 800; text-transform: uppercase;
  font-size: var(--fs-statement); line-height: 1.04; color: var(--navy); letter-spacing: 0;
}
.statement .w { display: inline; }
.statement .w { --c: var(--navy); }
.statement .w--em { --c: var(--accent-text); }
.motion-ok .statement .w { --lit: 0; color: #7f8790; color: color-mix(in srgb, var(--c) calc(var(--lit) * 100%), #7f8790); }
.motion-ok .statement .w--em em { color: inherit; }
.statement em { font-family: var(--font-serif); font-weight: 400; font-style: italic; text-transform: none; color: var(--accent-text); letter-spacing: -0.01em; }
.pill {
  display: inline-block; vertical-align: middle; width: 2.1em; height: 0.82em; margin: -0.1em 0.12em 0; border-radius: 999px; overflow: hidden;
  background: var(--paper-2);
}
.pill img { width: 100%; height: 100%; object-fit: cover; }
.statement-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 32px 64px; margin-top: clamp(48px, 7vw, 96px); align-items: end; }
.statement-meta p { max-width: 520px; color: var(--muted); font-size: var(--fs-lg); }
@media (max-width: 860px) { .statement-meta { grid-template-columns: 1fr; } }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: clamp(56px, 8vw, 110px); border-top: 1px solid var(--line); }
.stat { padding: 28px 24px 0 0; }
.stat + .stat { padding-left: 24px; border-left: 1px solid var(--line); }
.stat__value { display: block; font-family: var(--font-display); font-weight: 800; line-height: 0.9; font-size: clamp(3rem, 1.8rem + 3.6vw, 6rem); color: var(--navy); font-variant-numeric: tabular-nums; }
.stat__value small { font-size: 0.5em; color: var(--accent-text); margin-left: 0.05em; }
.stat__label { display: block; margin-top: 10px; font-size: var(--fs-sm); color: var(--muted); max-width: 220px; line-height: 1.4; }
@media (max-width: 760px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat, .stat + .stat { padding: 22px 12px 22px 0; border-left: 0; }
  .stat:nth-child(even) { padding-left: 18px; border-left: 1px solid var(--line); }
  .stat:nth-child(n + 3) { border-top: 1px solid var(--line); }
}

/* ---------- Marquee testuale (velocità legata allo scroll) ---------- */
.ticker { overflow: hidden; padding-block: clamp(28px, 4vw, 56px); background: var(--white); border-block: 1px solid var(--line); }
.ticker__row { display: flex; width: max-content; white-space: nowrap; will-change: transform; }
.ticker__row + .ticker__row { margin-top: 6px; }
.ticker__group { display: flex; align-items: center; }
.ticker__item {
  display: inline-flex; align-items: center; gap: clamp(18px, 2.5vw, 40px); padding-right: clamp(18px, 2.5vw, 40px);
  font-family: var(--font-display); font-weight: 800; text-transform: uppercase; font-size: clamp(3rem, 1.5rem + 6.5vw, 8.5rem); line-height: 1; color: var(--navy);
}
.ticker__row--outline .ticker__item { color: transparent; -webkit-text-stroke: 1.5px var(--navy); }
.ticker__item em { font-family: var(--font-serif); font-weight: 400; font-style: italic; text-transform: none; color: var(--accent-text); -webkit-text-stroke: 0; }
.ticker__item .dots { width: clamp(28px, 3vw, 52px); color: var(--navy); }
.no-motion .ticker__row, html:not(.motion-ok) .ticker__row { animation: ticker 45s linear infinite; }
.no-motion .ticker__row--outline, html:not(.motion-ok) .ticker__row--outline { animation-direction: reverse; }
@keyframes ticker { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .ticker__row { animation: none !important; } }

/* ---------- Lista servizi con anteprima che segue il cursore ---------- */
.svc-list { border-top: 1px solid var(--line-dark); }
.svc-row a {
  position: relative; display: grid; grid-template-columns: 64px 1fr auto 56px; align-items: center; gap: 24px;
  padding: clamp(18px, 2.4vw, 32px) 0; border-bottom: 1px solid var(--line-dark); text-decoration: none; color: #fff; overflow: hidden;
}
.svc-row a::before {
  content: ""; position: absolute; inset: 0; z-index: 0; background: var(--accent); transform: scaleY(0); transform-origin: 50% 100%;
  transition: transform 0.6s var(--ease-out);
}
.svc-row a > * { position: relative; z-index: 1; }
.svc-row__num { font-family: var(--font-display); font-weight: 600; letter-spacing: 0.1em; color: var(--on-dark-muted); transition: color 0.4s; }
.svc-row .svc-row__name {
  margin: 0; color: inherit; letter-spacing: 0;
  font-family: var(--font-display); font-weight: 800; text-transform: uppercase; line-height: 0.95;
  font-size: clamp(2rem, 1rem + 3.6vw, 4.6rem); transition: transform 0.6s var(--ease-out);
}
.svc-row__meta { font-family: var(--font-display); font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--on-dark-muted); text-align: right; transition: color 0.4s; }
.svc-row__arrow { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; border: 1px solid var(--line-dark); transition: transform 0.6s var(--ease-out), background 0.4s, border-color 0.4s; }
.svc-row__arrow .icon { transform: rotate(-45deg); transition: transform 0.6s var(--ease-out); }
.svc-row__thumb { display: none; }
@media (hover: hover) {
  .svc-row a:hover::before, .svc-row a:focus-visible::before { transform: scaleY(1); }
  .svc-row a:hover .svc-row__name { transform: translateX(clamp(8px, 1.5vw, 24px)); }
  .svc-row a:hover .svc-row__num, .svc-row a:hover .svc-row__meta { color: #fff; }
  .svc-row a:hover .svc-row__arrow { background: #fff; border-color: #fff; color: var(--accent); }
  .svc-row a:hover .svc-row__arrow .icon { transform: rotate(0); }
}
@media (max-width: 760px) {
  .svc-row a { grid-template-columns: 76px 1fr 40px; gap: 14px; }
  .svc-row__num, .svc-row__meta { display: none; }
  .svc-row__thumb { display: block; grid-column: 1; grid-row: 1; width: 76px; height: 56px; border-radius: 8px; overflow: hidden; }
  .svc-row__thumb img { width: 100%; height: 100%; object-fit: cover; }
  .svc-row__name { grid-column: 2; font-size: clamp(1.5rem, 1rem + 2.4vw, 2rem); }
  .svc-row__arrow { grid-column: 3; width: 40px; height: 40px; }
}
/* Versione chiara della lista */
.svc-list--light { border-top-color: var(--line); }
.svc-list--light .svc-row a { color: var(--navy); border-bottom-color: var(--line); }
.svc-list--light .svc-row__num, .svc-list--light .svc-row__meta { color: var(--muted); }
.svc-list--light .svc-row__arrow { border-color: var(--line); }
.svc-list--light .svc-row a::before { background: var(--navy); }
@media (hover: hover) {
  .svc-list--light .svc-row a:hover { color: #fff; }
  .svc-list--light .svc-row a:hover .svc-row__arrow { color: var(--navy); }
}
.svc-preview {
  position: fixed; left: 0; top: 0; z-index: 900; width: clamp(260px, 24vw, 380px); aspect-ratio: 4 / 3;
  pointer-events: none; opacity: 0; transform: scale(0.6); border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-lg); display: none;
}
.has-cursor .svc-preview { display: block; }
.svc-preview img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; clip-path: inset(100% 0 0 0); transition: clip-path 0.7s var(--ease-out); }
.svc-preview img.is-active { clip-path: inset(0 0 0 0); z-index: 1; }

/* ---------- Galleria orizzontale "Sulle strade" ---------- */
.works { background: var(--paper); overflow: hidden; }
.works__pin { position: relative; padding-block: clamp(72px, 9vw, 120px); }
.works__track { display: flex; align-items: center; gap: clamp(16px, 2.4vw, 40px); padding-inline: var(--gutter); width: max-content; }
.works__intro { width: min(560px, 82vw); flex: none; padding-right: clamp(16px, 4vw, 64px); }
.works__intro h2 { margin-bottom: 20px; }
.works__intro p { color: var(--muted); font-size: var(--fs-lg); }
.works__hint { display: inline-flex; align-items: center; gap: 12px; margin-top: 18px; font-family: var(--font-display); font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent-text); }
.works__item { position: relative; flex: none; margin: 0; text-decoration: none; color: var(--navy); }
.works__media { position: relative; overflow: hidden; border-radius: var(--radius-lg); background: var(--paper-2); }
.works__media img { width: 100%; height: 100%; object-fit: cover; transition: filter 0.5s; }
.works__item--tall .works__media { width: clamp(260px, 26vw, 420px); aspect-ratio: 4 / 5; }
.works__item--wide .works__media { width: clamp(320px, 42vw, 700px); aspect-ratio: 16 / 10; }
.works__item--mid .works__media { width: clamp(280px, 32vw, 520px); aspect-ratio: 1 / 1; }
.works__item figcaption { display: flex; justify-content: space-between; gap: 16px; margin-top: 14px; font-family: var(--font-display); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.works__item figcaption span:last-child { color: var(--muted); font-weight: 600; }
.works__item:hover .works__media img { filter: saturate(1.15); }
/* Galleria che si trascina (mouse) o si sfoglia col dito, con frecce e barra: non allunga la pagina */
.works__track {
  width: auto; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x proximity; scroll-padding-inline: var(--gutter);
  scrollbar-width: none; padding-bottom: 8px; cursor: grab;
}
.works__track::-webkit-scrollbar { display: none; }
.works__track.is-dragging { cursor: grabbing; scroll-snap-type: none; }
.works__track.is-dragging .works__item { pointer-events: none; }
.works__item { scroll-snap-align: start; }
.works__item, .works__item img, .slide img { -webkit-user-drag: none; user-select: none; }
.works__ui { display: flex; align-items: center; gap: 20px; margin-top: clamp(20px, 2.4vw, 32px); }
.works__progress { position: relative; flex: 1; height: 2px; background: var(--line); overflow: hidden; }
.works__progress span { display: block; height: 100%; background: var(--accent); transform: scaleX(0); transform-origin: 0 50%; }
@media (max-width: 760px) {
  .works__track { flex-wrap: nowrap; align-items: flex-start; }
  .works__intro { width: 82vw; }
  .works__item--tall .works__media, .works__item--wide .works__media, .works__item--mid .works__media { width: 78vw; aspect-ratio: 4 / 3; }
}

/* ---------- Processo: la strada che si costruisce ---------- */
.process__grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(40px, 7vw, 120px); align-items: start; }
.process__head { position: sticky; top: calc(var(--header-h) + 40px); }
.process__head p:not(.eyebrow) { font-size: var(--fs-lg); color: var(--muted); max-width: 460px; }
.process__road { position: relative; padding-left: clamp(84px, 9vw, 120px); }
.process__road ol { list-style: none; margin: 0; padding: 0; }
.road { position: absolute; left: 0; top: 0; bottom: 0; width: clamp(48px, 5vw, 64px); border-radius: 999px; background: var(--paper-2); overflow: hidden; }
.road__fill {
  position: absolute; inset: 0; transform-origin: 50% 0; border-radius: 999px;
  background: repeating-linear-gradient(180deg, transparent 0 22px, rgba(255, 255, 255, 0.85) 22px 46px) 50% 0 / 4px 100% no-repeat, var(--asphalt);
}
.road-step { position: relative; padding-block: clamp(28px, 4vw, 52px); border-bottom: 1px solid var(--line); transition: opacity 0.6s; }
.road-step:last-child { border-bottom: 0; }
.road-step::before {
  content: ""; position: absolute; left: calc(-1 * clamp(84px, 9vw, 120px) + clamp(48px, 5vw, 64px) / 2 - 11px); top: clamp(34px, 4.4vw, 60px);
  width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 5px solid var(--paper-2); box-shadow: 0 0 0 2px var(--paper-2);
  transition: background 0.5s, border-color 0.5s, transform 0.5s var(--ease-out); z-index: 1;
}
.road-step.is-active::before { background: var(--accent-on-dark); border-color: #fff; transform: scale(1.25); }
.motion-ok .road-step h3 { color: var(--muted); transition: color 0.5s; }
.motion-ok .road-step.is-active h3 { color: var(--navy); }
.road-step__num { display: block; margin-bottom: 14px; }
.road-step__num::before { content: attr(data-n); display: block; font-family: var(--font-display); font-weight: 800; font-size: clamp(3rem, 2rem + 3vw, 5rem); line-height: 0.8; color: transparent; -webkit-text-stroke: 1.5px var(--navy); transition: color 0.5s; }
.road-step.is-active .road-step__num::before { color: var(--navy); }
.road-step h3 { display: flex; align-items: center; gap: 12px; font-size: clamp(1.6rem, 1.3rem + 1vw, 2.3rem); }
.road-step h3 .icon { color: var(--accent-text); width: 30px; height: 30px; }
.road-step p { color: var(--muted); max-width: 520px; font-size: 1.08rem; }
@media (max-width: 900px) { .process__grid { grid-template-columns: 1fr; } .process__head { position: static; } }

/* ---------- 82% ---------- */
.why { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 100px); align-items: end; }
@media (max-width: 900px) { .why { grid-template-columns: 1fr; } }
.why__big { display: block; font-family: var(--font-display); font-weight: 800; line-height: 0.8; font-size: clamp(8rem, 3rem + 20vw, 22rem); color: var(--accent-on-dark); letter-spacing: -0.02em; margin: 0; font-variant-numeric: tabular-nums; }
.section:not(.section--navy):not(.section--deep) .why__big { color: var(--accent); }
.why__big-text { font-size: clamp(1.25rem, 1rem + 0.9vw, 1.8rem); line-height: 1.35; color: #fff; max-width: 540px; margin: 0; }
.section:not(.section--navy):not(.section--deep) .why__big-text { color: var(--ink); }
.reasons { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: clamp(56px, 7vw, 96px); }
@media (max-width: 1100px) { .reasons { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .reasons { grid-template-columns: 1fr; } }
.reason { padding: 28px; border-radius: var(--radius-lg); border: 1px solid var(--line-dark); background: rgba(255, 255, 255, 0.03); transition: background 0.4s, transform 0.5s var(--ease-out); }
.reason:hover { background: rgba(255, 255, 255, 0.07); transform: translateY(-6px); }
.reason__icon { display: inline-grid; place-items: center; width: 52px; height: 52px; margin-bottom: 22px; border-radius: 50%; background: var(--accent); color: #fff; }
.reason__icon .icon { width: 24px; height: 24px; }
.reason h3 { font-size: 1.5rem; margin-bottom: 10px; }
.reason p { font-size: var(--fs-sm); }
.section:not(.section--navy):not(.section--deep) .reason { border-color: var(--line); background: #fff; }
.section:not(.section--navy):not(.section--deep) .reason p { color: var(--muted); }

/* ---------- "Emergi": il banco di pesci ---------- */
.emergi {
  position: relative; isolation: isolate; overflow: hidden; min-height: min(100svh, 980px);
  display: flex; align-items: center; color: var(--navy-ink);
  background: radial-gradient(120% 90% at 70% 10%, #8fd0f0 0%, var(--water) 45%, var(--water-deep) 100%);
}
.emergi__canvas { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; }
.emergi__content { position: relative; padding-block: var(--section); }
.emergi__box { max-width: 680px; }
.emergi h2 { color: var(--navy-ink); font-size: clamp(3rem, 1.4rem + 6vw, 7.5rem); }
.emergi h2 em { color: #d8452a; }
.emergi .eyebrow { color: var(--navy-ink); }
.emergi p:not(.eyebrow) { font-size: var(--fs-lg); max-width: 520px; color: #10304f; }
.emergi__hint {
  position: absolute; right: var(--gutter); bottom: clamp(20px, 4vw, 40px); z-index: 1; margin: 0;
  display: inline-flex; align-items: center; gap: 10px; padding: 10px 16px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.75); backdrop-filter: blur(6px);
  font-family: var(--font-display); font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; font-size: 0.9rem; color: var(--navy-ink);
}
.emergi__hint i { width: 10px; height: 10px; border-radius: 50%; background: #e8562c; box-shadow: 0 0 0 4px rgba(232, 86, 44, 0.25); }
html:not(.js) .emergi__hint { display: none; }

/* ---------- Clienti ---------- */
.logo-rows { display: grid; gap: 14px; overflow: hidden; padding-block: 10px; }
.logo-row { display: flex; width: max-content; gap: 14px; will-change: transform; }
.logo-row__group { display: flex; gap: 14px; }
.logo-tile { display: block; flex: none; width: clamp(120px, 12vw, 168px); padding: 10px; background: var(--logo-tile); border-radius: var(--radius-lg); transition: transform 0.45s var(--ease-out), box-shadow 0.45s; }
.logo-tile img { width: 100%; height: auto; aspect-ratio: 1; object-fit: contain; border-radius: var(--radius); filter: grayscale(1); opacity: 0.8; transition: filter 0.45s, opacity 0.45s; }
.logo-tile:hover { transform: translateY(-6px) rotate(-2deg); box-shadow: var(--shadow); }
.logo-tile:hover img { filter: none; opacity: 1; }
.logo-rows .logo-row { animation: ticker 60s linear infinite; }
.logo-rows .logo-row:nth-child(2) { animation-direction: reverse; animation-duration: 70s; }
.logo-rows:hover .logo-row { animation-play-state: paused; }
.logos { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.logos .logo-tile { width: auto; }
@media (max-width: 900px) { .logos { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 600px) { .logos { grid-template-columns: repeat(3, 1fr); gap: 8px; } }
@media (hover: none) { .logo-tile img { filter: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .logo-rows .logo-row { animation: none; width: auto; flex-wrap: wrap; justify-content: center; }
  .logo-rows .logo-row:nth-child(2) { display: none; }
  .logo-row__group { flex-wrap: wrap; justify-content: center; }
  .logo-row__group[aria-hidden="true"] { display: none; }
}

/* ---------- Recensioni (slider) ---------- */
.reviews { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(40px, 6vw, 100px); align-items: start; }
@media (max-width: 900px) { .reviews { grid-template-columns: 1fr; } }
.reviews__note { margin: 18px 0 0; font-size: var(--fs-sm); color: var(--muted); }
.quote-slider { position: relative; }
.quote-slider__viewport { position: relative; display: grid; }
.quote-slide { grid-area: 1 / 1; margin: 0; }
.js .quote-slide { opacity: 0; visibility: hidden; transform: translateY(24px); transition: opacity 0.6s, transform 0.8s var(--ease-out), visibility 0.6s; }
.js .quote-slide.is-active { opacity: 1; visibility: visible; transform: none; }
html:not(.js) .quote-slider__viewport { gap: 40px; }
html:not(.js) .quote-slide { grid-area: auto; }
.quote-slide blockquote { margin: 0 0 28px; }
.quote-slide blockquote p {
  font-family: var(--font-serif); font-style: italic; font-size: clamp(1.7rem, 1.1rem + 2vw, 3.1rem); line-height: 1.14; color: var(--navy-ink); letter-spacing: -0.01em;
}
.quote-slide blockquote p::before { content: "“"; color: var(--accent-text); }
.quote-slide blockquote p::after { content: "”"; color: var(--accent-text); }
.quote-slide figcaption { display: flex; align-items: center; gap: 14px; font-weight: 600; color: var(--navy); }
.quote__avatar { display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--navy); color: #fff; font-family: var(--font-display); font-weight: 700; font-size: 1.25rem; }
.quote-slider__ui { display: flex; align-items: center; gap: 18px; margin-top: 36px; }
html:not(.js) .quote-slider__ui { display: none; }
.quote-slider__btn { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; border: 1px solid var(--line); background: #fff; color: var(--navy); cursor: pointer; transition: background 0.3s, color 0.3s, border-color 0.3s; }
.quote-slider__btn:hover { background: var(--navy); border-color: var(--navy); color: #fff; }
.quote-slider__count { font-family: var(--font-display); font-weight: 700; letter-spacing: 0.1em; color: var(--navy); font-variant-numeric: tabular-nums; }
.quote-slider__bar { flex: 1; height: 2px; background: var(--line); overflow: hidden; }
.quote-slider__bar span { display: block; height: 100%; background: var(--accent); transform-origin: 0 50%; transform: scaleX(0); }
.quote-slider.is-playing .quote-slider__bar span { animation: qbar var(--qdur, 7s) linear forwards; }
@keyframes qbar { to { transform: scaleX(1); } }

/* ---------- CTA finale ---------- */
.cta-big { position: relative; overflow: hidden; background: var(--navy-ink); color: var(--on-dark-muted); }
.cta-big__inner { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 40px 64px; }
.cta-big h2 { color: #fff; font-size: clamp(3rem, 1.1rem + 7.6vw, 10rem); line-height: 0.86; margin: 0; }
.cta-big h2 em { color: var(--accent-on-dark); }
.cta-big__links { display: flex; flex-wrap: wrap; gap: 14px 40px; margin-top: clamp(36px, 5vw, 64px); padding-top: 28px; border-top: 1px solid var(--line-dark); }
.cta-big__links a { display: inline-flex; align-items: center; gap: 12px; color: #fff; text-decoration: none; font-family: var(--font-display); font-weight: 700; font-size: clamp(1.2rem, 1rem + 0.8vw, 1.7rem); letter-spacing: 0.04em; }
.cta-big__links .icon { color: var(--sky); }
.cta-big__links a:hover { color: var(--accent-on-dark); }
@media (max-width: 760px) { .cta-big__inner { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.site-footer { position: relative; background: var(--navy-deep); color: var(--on-dark-muted); font-size: var(--fs-sm); overflow: hidden; }
.site-footer a { color: var(--on-dark-muted); text-decoration: none; transition: color 0.3s; }
.site-footer a:hover { color: #fff; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 40px; padding-block: clamp(64px, 8vw, 110px) 40px; }
@media (max-width: 960px) { .footer-top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) {
  .footer-top { grid-template-columns: 1fr 1fr; gap: 32px 20px; }
  .footer-brand, .footer-top > div:last-child { grid-column: 1 / -1; }
}
.footer-brand p { max-width: 320px; font-size: var(--fs-lg); color: #fff; line-height: 1.4; }
.footer-brand p em { font-family: var(--font-serif); color: var(--accent-on-dark); font-size: 1.15em; }
.site-footer h2 { margin-bottom: 18px; font-size: 1rem; font-weight: 700; letter-spacing: 0.2em; color: var(--accent-on-dark); }
.footer-links { display: grid; gap: 10px; }
.footer-contacts { display: grid; gap: 14px; }
.footer-contacts li { display: flex; gap: 12px; align-items: flex-start; }
.footer-contacts .icon { color: var(--sky); margin-top: 2px; }
.socials { display: flex; gap: 10px; margin-top: 22px; }
.socials a { display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; border: 1px solid currentColor; transition: background 0.3s, color 0.3s, border-color 0.3s; }
.site-footer .socials a { color: #fff; border-color: var(--line-dark); }
.socials a:hover, .site-footer .socials a:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.socials .icon { width: 20px; height: 20px; }
.footer-word .fw { display: inline-block; }
.footer-word {
  overflow: hidden; padding-top: 0.06em;
  display: flex; align-items: flex-end; justify-content: center; gap: 0.06em; padding-inline: var(--gutter); margin: 0;
  font-family: var(--font-display); font-weight: 800; text-transform: uppercase; line-height: 0.76;
  font-size: clamp(3.4rem, 16.4vw, 20rem); color: #fff; padding-bottom: 0.08em; letter-spacing: -0.01em; user-select: none; white-space: nowrap;
}
.footer-word .dots { width: 0.42em; color: #fff; margin-bottom: 0.08em; }
.footer-bottom { border-top: 1px solid var(--line-dark); }
.footer-bottom__inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-block: 22px; font-size: var(--fs-xs); }
.to-top { display: inline-flex; align-items: center; gap: 8px; background: none; border: 0; padding: 0; color: #fff; cursor: pointer; font: inherit; }
.to-top .icon { transform: rotate(-90deg); }

/* ---------- Header pagine interne ---------- */
.page-hero {
  position: relative; isolation: isolate; overflow: hidden; display: flex; align-items: flex-end;
  min-height: clamp(560px, 86svh, 920px); padding-block: calc(var(--header-h) + 40px) clamp(40px, 6vw, 80px);
  background: var(--navy-ink); color: var(--on-dark-muted);
}
.page-hero--short { min-height: clamp(460px, 64svh, 680px); }
.page-hero__bg { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.page-hero__bg img { width: 100%; height: 115%; object-fit: cover; }
.page-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(7, 26, 47, 0.92) 0%, rgba(7, 26, 47, 0.7) 50%, rgba(7, 26, 47, 0.35) 100%),
              linear-gradient(0deg, rgba(7, 26, 47, 0.85) 0%, rgba(7, 26, 47, 0) 55%);
}
.page-hero h1 { color: #fff; margin-bottom: clamp(20px, 3vw, 36px); max-width: 1200px; }
.page-hero__index { font-family: var(--font-display); font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--accent-on-dark); margin-bottom: 16px; }
.page-hero__bottom { display: grid; grid-template-columns: minmax(0, 680px) auto; justify-content: space-between; align-items: end; gap: 24px 48px; }
.page-hero .lead { color: var(--on-dark-muted); margin: 0; }
@media (max-width: 900px) { .page-hero__bottom { grid-template-columns: 1fr; } }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 6px 10px; margin: 0 0 24px; padding: 0; list-style: none; font-size: var(--fs-sm); }
.breadcrumb li { display: inline-flex; align-items: center; gap: 10px; }
.breadcrumb li + li::before { content: "/"; color: rgba(255, 255, 255, 0.4); }
.breadcrumb a { color: var(--sky); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb [aria-current] { color: #fff; }

/* ---------- Split / collage ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 7vw, 120px); align-items: center; }
.split--top { align-items: start; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }
.prose { font-size: 1.12rem; }
.prose p { color: var(--ink); }
.collage { position: relative; padding: 0 0 clamp(48px, 7vw, 90px) clamp(40px, 7vw, 90px); }
.collage__main { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); }
.collage__main img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.collage__small { position: absolute; left: 0; bottom: 0; width: 48%; border: 6px solid #fff; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); }
.collage__small img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.since-badge {
  position: absolute; right: -10px; bottom: 6%; z-index: 2; display: grid; place-content: center; text-align: center;
  width: clamp(120px, 13vw, 160px); aspect-ratio: 1; border-radius: 50%; background: var(--accent); color: #fff; box-shadow: var(--shadow); overflow: hidden;
  font-family: var(--font-display); text-transform: uppercase;
}
.since-badge small { font-weight: 700; font-size: 0.85rem; letter-spacing: 0.18em; }
.since-badge strong { color: #fff; font-weight: 800; font-size: clamp(2.2rem, 1.6rem + 1.6vw, 2.9rem); line-height: 1; }
.since-badge--spin { animation: spin 18s linear infinite; }
@media (max-width: 600px) { .since-badge { right: 0; } }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .since-badge--spin { animation: none; } }
.badge-ring { position: absolute; inset: 0; }
.badge-ring text { font-family: var(--font-display); font-weight: 700; font-size: 11px; letter-spacing: 3.2px; text-transform: uppercase; fill: #fff; }
.since-badge__core { position: relative; display: grid; justify-items: center; }

/* ---------- Scheda tecnica ---------- */
.specs { margin: 0; padding: clamp(26px, 3vw, 40px); background: var(--paper); border-radius: var(--radius-lg); }
.specs h3 { display: flex; align-items: center; gap: 10px; font-size: 1.5rem; margin-bottom: 18px; }
.specs h3 .icon { color: var(--accent-text); }
.specs dl { margin: 0; display: grid; }
.specs dl > div { display: grid; grid-template-columns: minmax(120px, 0.8fr) 1.2fr; gap: 12px; padding: 15px 0; border-bottom: 1px solid var(--line); }
.specs dl > div:last-child { border-bottom: 0; }
.specs dt { font-family: var(--font-display); font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
.specs dd { margin: 0; font-weight: 600; color: var(--navy); }
.specs .btn { width: 100%; margin-top: 24px; }
@media (max-width: 420px) { .specs dl > div { grid-template-columns: 1fr; gap: 2px; } }

/* ---------- Slider immagini trascinabile ---------- */
.slider { position: relative; }
.slider__track {
  display: flex; gap: clamp(12px, 1.6vw, 24px); overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x proximity; scrollbar-width: none; padding-inline: var(--gutter); scroll-padding-inline: var(--gutter);
  cursor: grab;
}
.slider__track::-webkit-scrollbar { display: none; }
.slider__track.is-dragging { cursor: grabbing; scroll-snap-type: none; }
.slider__track.is-dragging .slide { pointer-events: none; }
.slide {
  position: relative; flex: none; width: clamp(280px, 40vw, 640px); padding: 0; border: 0; border-radius: var(--radius-lg); overflow: hidden;
  background: var(--paper-2); scroll-snap-align: start; cursor: inherit;
}
.slide:nth-child(even) { width: clamp(240px, 30vw, 480px); }
.slide img { width: 100%; height: clamp(240px, 32vw, 500px); object-fit: cover; transition: transform 0.9s var(--ease-out); pointer-events: none; user-select: none; -webkit-user-drag: none; }
.slide:hover img { transform: scale(1.05); }
.slide figcaption, .slide__cap { position: absolute; left: 14px; bottom: 14px; right: 14px; text-align: left; padding: 8px 12px; border-radius: 8px; background: rgba(7, 26, 47, 0.72); color: #fff; font-size: var(--fs-xs); opacity: 0; transform: translateY(8px); transition: 0.4s var(--ease-out); }
.slide:hover .slide__cap, .slide:focus-visible .slide__cap { opacity: 1; transform: none; }
.slider__ui { display: flex; align-items: center; gap: 20px; margin-top: 24px; }
.slider__bar { flex: 1; height: 2px; background: var(--line); overflow: hidden; }
.slider__bar span { display: block; height: 100%; width: 100%; background: var(--navy); transform-origin: 0 50%; transform: scaleX(0.2); }
.slider__hint { font-family: var(--font-display); font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); font-size: 0.9rem; }
.slider__btns { display: flex; gap: 10px; }

.lightbox { width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(4, 14, 26, 0.97); color: #fff; }
.lightbox[open] { display: grid; grid-template-rows: 1fr auto; place-items: center; }
.lightbox::backdrop { background: rgba(4, 14, 26, 0.9); }
.lightbox__figure { margin: 0; padding: 64px clamp(16px, 7vw, 96px) 12px; display: grid; place-items: center; width: 100%; height: 100%; min-height: 0; }
.lightbox__figure img { max-width: 100%; max-height: calc(100vh - 150px); width: auto; height: auto; border-radius: var(--radius); box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5); }
.lightbox[open] .lightbox__figure img { animation: lbin 0.6s var(--ease-out); }
@keyframes lbin { from { opacity: 0; transform: scale(0.96); } }
.lightbox__caption { padding: 0 16px 24px; text-align: center; color: var(--on-dark-muted); font-size: var(--fs-sm); }
.lightbox__btn { position: absolute; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.3); background: rgba(255, 255, 255, 0.08); color: #fff; cursor: pointer; transition: background 0.2s; }
.lightbox__btn:hover { background: rgba(255, 255, 255, 0.2); }
.lightbox__btn .icon { width: 22px; height: 22px; }
.lightbox__close { top: 14px; right: 14px; }
.lightbox__prev { left: 14px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 14px; top: 50%; transform: translateY(-50%); }
@media (max-width: 700px) { .lightbox__prev, .lightbox__next { top: auto; bottom: 16px; transform: none; } .lightbox__caption { padding-bottom: 80px; } }

/* ---------- Blocchi informativi ---------- */
.info-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2vw, 28px); counter-reset: info; }
@media (max-width: 960px) { .info-grid { grid-template-columns: 1fr; } }
.info { position: relative; padding: clamp(28px, 3vw, 40px); background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); transition: transform 0.6s var(--ease-out), box-shadow 0.6s, border-color 0.4s; }
.info:hover { transform: translateY(-8px); box-shadow: var(--shadow); border-color: transparent; }
.info::after { counter-increment: info; content: "0" counter(info); position: absolute; right: 28px; top: 22px; font-family: var(--font-display); font-weight: 800; font-size: 3.4rem; line-height: 1; color: transparent; -webkit-text-stroke: 1px var(--line); }
.info__icon { display: inline-grid; place-items: center; width: 58px; height: 58px; margin-bottom: 22px; border-radius: 50%; background: var(--navy); color: #fff; }
.info__icon .icon { width: 26px; height: 26px; }
.info h3 { margin-bottom: 12px; }
.info p { color: var(--muted); }

/* ---------- Tab circuiti ---------- */
.tabs__list { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 24px; }
.tabs__tab { display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 10px 22px; border: 2px solid var(--line); border-radius: 999px; background: #fff; cursor: pointer; font-family: var(--font-display); font-weight: 700; font-size: 1.12rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--navy); transition: border-color 0.3s, background 0.3s, color 0.3s; }
.tabs__tab:hover { border-color: var(--navy); }
.tabs__tab[aria-selected="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }
.tabs__dot { width: 14px; height: 14px; border-radius: 50%; box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.85); }
.tabs__dot--giallo { background: #f2c230; }
.tabs__dot--blu { background: #2f7fd0; }
.tabs__dot--rosso { background: #d8332f; }
.tabs__panel { padding: clamp(20px, 3vw, 40px); background: #fff; border-radius: var(--radius-lg); border: 1px solid var(--line); }
.tabs__panel[hidden] { display: none; }
.tabs__panel h3 { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.locations { columns: 3 260px; column-gap: 32px; }
.locations li { display: flex; gap: 10px; break-inside: avoid; padding: 10px 0; border-bottom: 1px dashed var(--line); font-size: var(--fs-sm); }
.locations .icon { color: var(--accent-text); width: 18px; height: 18px; margin-top: 3px; }
.tabs__panel.is-animating .locations li { animation: locin 0.6s var(--ease-out) backwards; animation-delay: calc(var(--i, 0) * 18ms); }
@keyframes locin { from { opacity: 0; transform: translateY(10px); } }
.js .tabs__panel-title { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
html:not(.js) .tabs__list { display: none; }
html:not(.js) .tabs__panel + .tabs__panel { margin-top: 20px; }

/* ---------- Banda CTA ---------- */
.cta-band {
  position: relative; overflow: hidden; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px 48px;
  padding: clamp(32px, 5vw, 72px); border-radius: var(--radius-lg); background: var(--navy-ink); color: var(--on-dark-muted);
}
.cta-band::after { content: ""; position: absolute; right: -60px; top: 50%; width: 360px; height: 312px; transform: translateY(-50%); background: url("../img/pattern-dots.svg") center / contain no-repeat; opacity: 0.8; pointer-events: none; }
.cta-band > * { position: relative; z-index: 1; }
.cta-band h2 { color: #fff; font-size: clamp(2rem, 1.3rem + 2.6vw, 3.8rem); margin-bottom: 10px; }
.cta-band h2 em { color: var(--accent-on-dark); }
.cta-band p { margin: 0; max-width: 620px; }

/* ---------- Contatti ---------- */
.contact { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
@media (max-width: 960px) { .contact { grid-template-columns: 1fr; } }
.contact-cards { display: grid; gap: 16px; }
.contact-card { padding: 28px; background: var(--paper); border-radius: var(--radius-lg); }
.contact-card h2 { display: flex; align-items: center; gap: 12px; font-size: 1.5rem; font-weight: 700; margin-bottom: 14px; }
.contact-card h2 .icon { color: var(--accent-text); width: 24px; height: 24px; }
.contact-card p { margin-bottom: 10px; }
.big-link { font-family: var(--font-display); font-weight: 800; font-size: clamp(2rem, 1.4rem + 1.6vw, 2.8rem); color: var(--navy); text-decoration: none; letter-spacing: 0.01em; line-height: 1.1; }
.big-link:hover { color: var(--accent-text); }
.mail-list { display: grid; gap: 2px; }
.mail-list li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 16px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.mail-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.mail-list span { font-family: var(--font-display); font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
.mail-list a { color: var(--navy); font-weight: 500; text-decoration: none; overflow-wrap: anywhere; }
.mail-list a:hover { color: var(--accent-text); text-decoration: underline; }
.contact-card .socials { margin-top: 0; }
.contact-card .socials a { color: var(--navy); }
.contact-card .socials a:hover { color: #fff; }

.form-card { padding: clamp(28px, 4vw, 56px); background: var(--navy-ink); color: var(--on-dark-muted); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }
.form-card h2 { color: #fff; font-size: clamp(2.2rem, 1.6rem + 2vw, 3.6rem); margin-bottom: 10px; }
.form-card h2 em { color: var(--accent-on-dark); }
.form-card > p { margin-bottom: 30px; }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 26px 28px; }
.field { position: relative; display: grid; gap: 6px; }
.field--full { grid-column: 1 / -1; }
@media (max-width: 600px) { .form { grid-template-columns: 1fr; } }
.field label { font-family: var(--font-display); font-weight: 700; font-size: 0.95rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--on-dark-muted); transition: color 0.3s; }
.field label .req { color: var(--accent-on-dark); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 52px; padding: 10px 0; background: transparent; border: 0; border-bottom: 1.5px solid rgba(255, 255, 255, 0.28); border-radius: 0;
  color: #fff; font-size: 1.12rem; transition: border-color 0.3s;
}
.field textarea { min-height: 130px; resize: vertical; line-height: 1.5; }
.field select { appearance: none; -webkit-appearance: none; padding-right: 36px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 4px center; background-size: 18px; }
.field select option { color: var(--ink); }
.field::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--accent-on-dark); transform: scaleX(0); transform-origin: 0 50%; transition: transform 0.6s var(--ease-out); }
.field:has(textarea)::after { bottom: 6px; }
.field:focus-within::after { transform: scaleX(1); }
.field:focus-within label { color: #fff; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: none; }
.field.has-error input, .field.has-error textarea { border-bottom-color: #ff8a80; }
.field__error { display: none; color: #ffb4ab; font-size: var(--fs-xs); font-weight: 500; }
.field.has-error .field__error { display: block; order: 3; }
.consent { grid-column: 1 / -1; display: flex; gap: 12px; align-items: flex-start; font-size: var(--fs-sm); }
.consent input { width: 20px; height: 20px; margin-top: 2px; flex: none; accent-color: var(--accent); }
.consent.has-error { color: #ffb4ab; }
.form__actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; }
.form__note { font-size: var(--fs-xs); margin: 0; flex: 1; min-width: 220px; }
.form__status { grid-column: 1 / -1; display: none; padding: 14px 16px; border-radius: var(--radius); background: rgba(102, 185, 221, 0.15); color: #fff; font-weight: 500; }
.form__status a { color: var(--accent-on-dark); }
.form__status.is-visible { display: block; }
.map { margin-top: clamp(32px, 4vw, 56px); border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); background: var(--paper-2); }
.map iframe { width: 100%; height: clamp(320px, 40vw, 480px); border: 0; filter: saturate(0.8); }
.map__bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; background: #fff; border-top: 1px solid var(--line); font-size: var(--fs-sm); }
.map__bar span { display: inline-flex; align-items: center; gap: 8px; }
.map__bar a { font-weight: 600; color: var(--accent-text); }

/* ---------- 404 ---------- */
.notfound { text-align: center; padding-block: clamp(80px, 12vw, 160px); }
.notfound__code { font-family: var(--font-display); font-weight: 800; font-size: clamp(8rem, 4rem + 16vw, 16rem); line-height: 0.8; color: var(--navy); margin: 0 0 24px; }
.notfound__code em { font-family: var(--font-serif); font-weight: 400; color: var(--accent); }
.notfound p:not(.notfound__code) { max-width: 520px; margin: 18px auto 30px; color: var(--muted); font-size: var(--fs-lg); }
.notfound .btn-row { justify-content: center; }

/* ---------- Stati iniziali delle animazioni (solo con .motion-ok) ---------- */
.motion-ok [data-reveal] { opacity: 0; transform: translateY(40px); }
.motion-ok [data-split]:not(.is-split) { opacity: 0; }
/* Ingresso della hero in CSS: parte subito, senza aspettare gli script (più veloce sui telefoni) */
@media (prefers-reduced-motion: no-preference) {
  .motion-ok .hero__title .line > span { animation: heroLine 1.5s var(--ease-out) 0.1s both; }
  .motion-ok .hero__title .line + .line > span { animation-delay: 0.2s; }
  .motion-ok .hero__title .line + .line + .line > span { animation-delay: 0.3s; }
  .motion-ok [data-hero-in] { animation: heroIn 1.2s var(--ease-out) 0.55s both; }
  .motion-ok .hero__bottom[data-hero-in] { animation-delay: 0.7s; }
  .motion-ok .hero__media video { animation: heroZoom 2.6s var(--ease-out) both; }
  .hero-wait .hero__title .line > span, .hero-wait [data-hero-in], .hero-wait .hero__media video { animation-play-state: paused; }
}
@keyframes heroLine { from { transform: translateY(150%); } }
@keyframes heroIn { from { opacity: 0; transform: translateY(30px); } }
@keyframes heroZoom { from { transform: scale(1.3); } }
.motion-ok [data-img-reveal] { clip-path: inset(100% 0 0 0); }
/* La maschera che fa salire le righe dei titoli lascia spazio ad accenti (À, È), code (g, p) e corsivi inclinati */
[data-split] > [class*="mask"] { padding: 0.2em 0.14em 0.3em; margin: -0.2em -0.14em -0.3em; pointer-events: none; }
[data-split] > [class*="mask"] > * { pointer-events: auto; }


/* ---------- Stampa ---------- */
@media print {
  .site-header, .nav, .hero__media, .cursor, .grain, .progress, .curtain, .preloader, .emergi__canvas, .map, .lightbox { display: none !important; }
  .hero, .page-hero, .section--navy, .section--deep, .cta-big, .site-footer { background: #fff !important; color: #000 !important; }
  .hero__stage { height: auto; }
  h1, h2, h3 { color: #000 !important; }
}

/* ==========================================================================
   Impianti: mappa interattiva, schede, selezione per il preventivo
   ========================================================================== */
.page-dark .site-header, .page-dark .site-header.is-solid { background: var(--navy-ink); color: #fff; box-shadow: none; }
.page-dark .site-header::before { opacity: 0; }
.page-dark .site-header .brand__dark, .page-dark .site-header.is-solid .brand__dark { opacity: 0; }
.page-dark .site-header .brand__light, .page-dark .site-header.is-solid .brand__light { opacity: 1; }
.page-dark .site-header .nav__phone .icon { color: var(--accent-on-dark); }
.page-dark main { padding-top: var(--header-h); }

.imp { display: grid; grid-template-columns: minmax(360px, 470px) 1fr; height: calc(100svh - var(--header-h)); min-height: 600px; background: var(--navy-ink); color: var(--on-dark-muted); }
.imp-panel { display: flex; flex-direction: column; min-height: 0; overflow-y: auto; overscroll-behavior: contain; border-right: 1px solid var(--line-dark); scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, 0.25) transparent; }
.imp-panel__head { padding: 28px 28px 10px; }
.imp-panel__head h1 { color: #fff; font-size: clamp(2.6rem, 1.8rem + 2.4vw, 4rem); margin-bottom: 14px; }
.imp-panel__head h1 em { color: var(--accent-on-dark); }
.imp-panel__head .breadcrumb { margin-bottom: 18px; }
.imp-lead { font-size: var(--fs-sm); margin: 0; }
.imp-filters { position: sticky; top: 0; z-index: 3; display: grid; gap: 10px; padding: 16px 28px 14px; background: rgba(7, 26, 47, 0.95); border-bottom: 1px solid var(--line-dark); }
@supports (backdrop-filter: blur(6px)) { .imp-filters { background: rgba(7, 26, 47, 0.82); backdrop-filter: blur(10px); } }
.imp-search { display: flex; align-items: center; gap: 10px; padding: 0 16px; border: 1px solid var(--line-dark); border-radius: 999px; background: rgba(255, 255, 255, 0.05); transition: border-color 0.3s; }
.imp-search:focus-within { border-color: var(--accent-on-dark); }
.imp-search .icon { color: var(--sky); }
.imp-search input { flex: 1; min-width: 0; height: 46px; border: 0; background: none; color: #fff; font-size: 1rem; outline: none; }
.imp-search input::placeholder { color: rgba(195, 209, 223, 0.7); }
.imp-select select {
  width: 100%; height: 46px; padding: 0 44px 0 18px; border: 1px solid var(--line-dark); border-radius: 999px; color: #fff; font-size: 1rem; cursor: pointer; appearance: none; -webkit-appearance: none;
  background: rgba(255, 255, 255, 0.05) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 16px center / 16px;
}
.imp-select select:focus-visible { outline: 3px solid var(--sky); outline-offset: 2px; }
.imp-select option { color: var(--ink); background: #fff; }
.imp-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.imp-chip { min-height: 38px; padding: 6px 16px; border: 1px solid var(--line-dark); border-radius: 999px; background: none; color: #fff; cursor: pointer; font-family: var(--font-display); font-weight: 700; font-size: 1rem; letter-spacing: 0.06em; transition: background 0.25s, border-color 0.25s; }
.imp-chip small { margin-left: 4px; font-size: 0.8em; opacity: 0.65; }
.imp-chip:hover { border-color: var(--accent-on-dark); }
.imp-chip[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); }
.imp-count { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0; font-size: var(--fs-sm); }
.imp-count b { color: #fff; font-family: var(--font-display); font-size: 1.25rem; }
.imp-reset { padding: 0; border: 0; background: none; color: var(--accent-on-dark); font: inherit; font-weight: 600; text-decoration: underline; cursor: pointer; }
.imp-list { padding: 10px 14px 120px; }
.imp-item { position: relative; display: flex; align-items: center; gap: 6px; border-radius: var(--radius-lg); transition: background 0.25s, box-shadow 0.25s; }
.imp-item:hover, .imp-item.is-hover { background: rgba(255, 255, 255, 0.05); }
.imp-item.is-active { background: rgba(242, 140, 62, 0.14); box-shadow: inset 3px 0 0 var(--accent-on-dark); }
.imp-item[hidden] { display: none; }
.imp-item__link { flex: 1; min-width: 0; display: flex; align-items: center; gap: 14px; padding: 10px 12px; color: inherit; text-decoration: none; border-radius: var(--radius-lg); }
.imp-item__img { flex: none; width: 104px; height: 64px; border-radius: 8px; overflow: hidden; background: var(--navy-soft); }
.imp-item__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease-out); }
.imp-item:hover .imp-item__img img { transform: scale(1.08); }
.imp-item__body { display: grid; min-width: 0; line-height: 1.3; }
.imp-item__code { font-family: var(--font-display); font-weight: 700; font-size: 0.85rem; letter-spacing: 0.12em; color: var(--accent-on-dark); }
.imp-item__label { color: #fff; font-weight: 600; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.imp-item__meta { font-size: var(--fs-xs); }
.imp-add {
  flex: none; display: grid; place-items: center; width: 42px; height: 42px; margin-right: 8px; border: 1px solid var(--line-dark); border-radius: 50%;
  background: none; color: #fff; cursor: pointer; transition: background 0.25s, border-color 0.25s, color 0.25s, transform 0.4s var(--ease-out);
}
.imp-add:hover { border-color: var(--accent-on-dark); color: var(--accent-on-dark); }
.imp-add[aria-pressed="true"] { background: var(--sky); border-color: var(--sky); color: var(--navy-ink); transform: rotate(360deg); }
.imp-add .icon { width: 18px; height: 18px; }
.sel-ico-on { display: none; }
[aria-pressed="true"] > .sel-ico-add { display: none; }
[aria-pressed="true"] > .sel-ico-on { display: inline-block; }
.imp-empty { padding: 20px 28px; }
.imp-mapwrap { position: relative; min-height: 0; }
.imp-map { position: absolute; inset: 0; background: #dcdcd6; }
.imp-noscript { margin: 0; padding: 40px; color: var(--navy); }

/* Leaflet: stile della mappa */
.leaflet-container { font-family: var(--font-body); background: #dcdcd6; }
.imp-tiles { filter: grayscale(0.92) sepia(0.08) contrast(0.96) brightness(1.03); }
.leaflet-bar { border: 0 !important; box-shadow: var(--shadow) !important; border-radius: 12px !important; overflow: hidden; }
.leaflet-bar a { width: 40px !important; height: 40px !important; line-height: 40px !important; color: var(--navy-ink) !important; font-size: 20px !important; border-color: var(--line) !important; }
.leaflet-bar a:hover { background: var(--paper) !important; }
.leaflet-control-attribution { font-size: 11px; background: rgba(255, 255, 255, 0.85) !important; }
.leaflet-control-attribution a { color: var(--navy); }
.pin-wrap { background: none; border: 0; }
.pin { position: relative; display: grid; place-items: center; width: 34px; height: 34px; cursor: pointer; }
.pin__dot {
  width: 16px; height: 16px; border-radius: 50%; background: var(--accent);
  box-shadow: 0 0 0 3px #fff, 0 4px 12px rgba(7, 26, 47, 0.45); transition: transform 0.35s var(--ease-out), background 0.3s;
}
.pin__count {
  position: absolute; top: -2px; right: -4px; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 10px;
  background: var(--navy-ink); color: #fff; font: 700 11px/19px var(--font-display); letter-spacing: 0.04em; text-align: center; box-shadow: 0 0 0 2px #fff;
}
.pin:hover .pin__dot, .pin.is-hover .pin__dot { transform: scale(1.35); }
.pin.is-selected .pin__dot { background: var(--sky); }
.pin.is-active .pin__dot { transform: scale(1.55); background: var(--navy-ink); box-shadow: 0 0 0 4px var(--accent-on-dark), 0 6px 16px rgba(7, 26, 47, 0.5); }
.pin.is-active::before {
  content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--accent);
  animation: ping 1.8s var(--ease-out) infinite;
}
.leaflet-marker-icon:focus-visible { outline: none; }
.leaflet-marker-icon:focus-visible .pin__dot { box-shadow: 0 0 0 3px #fff, 0 0 0 6px var(--sky); }
@keyframes ping { 0% { transform: scale(0.5); opacity: 1; } 100% { transform: scale(2.2); opacity: 0; } }

.imp-card {
  position: absolute; z-index: 800; left: 20px; bottom: 20px; width: min(390px, calc(100% - 40px)); max-height: calc(100% - 40px); overflow: auto;
  background: var(--navy-ink); color: var(--on-dark-muted); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); animation: cardin 0.5s var(--ease-out);
}
.imp-card[hidden] { display: none; }
@keyframes cardin { from { opacity: 0; transform: translateY(16px); } }
.imp-card__img { display: block; }
.imp-card__img img { width: 100%; aspect-ratio: 16 / 7; object-fit: cover; }
.imp-card__close { position: absolute; top: 10px; right: 10px; z-index: 1; display: grid; place-items: center; width: 38px; height: 38px; border: 0; border-radius: 50%; background: rgba(7, 26, 47, 0.75); color: #fff; cursor: pointer; }
.imp-card__close .icon { width: 18px; height: 18px; }
.imp-card__body { padding: 16px 18px 18px; }
.imp-card__zone { display: flex; align-items: center; gap: 6px; margin: 0 0 8px; font-family: var(--font-display); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent-on-dark); font-size: 0.9rem; }
.imp-card__rows { display: grid; gap: 2px; margin-bottom: 12px; }
.imp-card__row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line-dark); }
.imp-card__row a { display: grid; color: #fff; text-decoration: none; font-weight: 600; line-height: 1.3; }
.imp-card__row a:hover { color: var(--accent-on-dark); }
.imp-card__row b { font-family: var(--font-display); letter-spacing: 0.1em; color: var(--accent-on-dark); }
.imp-card__row small { font-weight: 400; color: var(--on-dark-muted); }
.imp-card__row .imp-add { margin: 0; }
.imp-card .link-arrow { font-size: 0.95rem; }

@media (max-width: 900px) {
  .imp { display: flex; flex-direction: column; height: auto; min-height: 0; }
  .imp-panel { display: contents; }
  .imp-panel__head { order: 1; padding: 24px var(--gutter) 18px; }
  .imp-mapwrap { order: 2; height: 62svh; min-height: 380px; }
  .imp-filters { order: 3; position: static; padding: 16px var(--gutter); }
  .imp-list { order: 4; padding: 8px calc(var(--gutter) - 10px) 110px; }
  .imp-empty { order: 5; padding-inline: var(--gutter); }
  .imp-card { left: 10px; right: 10px; bottom: 10px; width: auto; }
  .imp-card__img img { aspect-ratio: 16 / 5; }
}

/* Barra "impianti nella richiesta" */
.sel-tray {
  position: fixed; z-index: 950; left: 50%; bottom: 20px; transform: translateX(-50%);
  display: flex; align-items: center; gap: 16px; max-width: calc(100% - 24px); padding: 8px 8px 8px 22px;
  border-radius: 999px; background: #fff; color: var(--navy-ink); box-shadow: 0 20px 50px -12px rgba(7, 26, 47, 0.55);
  animation: trayin 0.6s var(--ease-out);
}
.sel-tray[hidden] { display: none; }
@keyframes trayin { from { opacity: 0; transform: translate(-50%, 30px); } }
.sel-tray__text { display: flex; align-items: center; gap: 10px; margin: 0; font-weight: 600; white-space: nowrap; }
.sel-tray__text .icon { color: var(--accent-text); }
.sel-tray__text b { font-family: var(--font-display); font-size: 1.3rem; }
.sel-tray__clear { padding: 0; border: 0; background: none; color: var(--muted); font: inherit; font-size: var(--fs-sm); text-decoration: underline; cursor: pointer; }
.sel-tray .btn { white-space: nowrap; }
@media (max-width: 600px) {
  .sel-tray { left: 10px; right: 10px; bottom: 10px; transform: none; justify-content: space-between; gap: 10px; padding-left: 16px; }
  @keyframes trayin { from { opacity: 0; transform: translateY(30px); } }
  .sel-tray__clear { display: none; }
  .sel-tray__text { font-size: var(--fs-sm); }
  .sel-tray .btn { padding-inline: 16px; }
}

/* Scheda impianto */
.imp-photo { margin: 0; }
.imp-photo__frame { overflow: hidden; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }
.imp-photo img { width: 100%; height: auto; }
.imp-photo figcaption { margin-top: 12px; font-size: var(--fs-sm); color: var(--muted); }
.specs__title { display: flex; align-items: center; gap: 10px; font-size: 1.5rem; font-weight: 700; margin-bottom: 18px; }
.specs__title .icon { color: var(--accent-text); }
.specs dd a { color: var(--accent-text); }
.specs__actions { display: grid; gap: 10px; margin-top: 24px; }
.specs__actions .btn { width: 100%; }
.btn[aria-pressed="true"] { --btn-bg: var(--sky); --btn-bd: var(--sky); --btn-fg: var(--navy-ink); }
.btn--ghost-light[aria-pressed="true"] { --btn-bg: var(--sky); --btn-bd: var(--sky); --btn-fg: var(--navy-ink); }
.imp-near { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(32px, 5vw, 80px); align-items: start; }
@media (max-width: 900px) { .imp-near { grid-template-columns: 1fr; } }
.near-list { display: grid; gap: 10px; margin-bottom: 28px; }
.near { display: flex; align-items: center; gap: 16px; padding: 10px; border-radius: var(--radius-lg); border: 1px solid var(--line-dark); color: #fff; text-decoration: none; transition: background 0.3s, border-color 0.3s; }
.near:hover { background: rgba(255, 255, 255, 0.05); border-color: var(--accent-on-dark); }
.near__img { flex: none; width: 110px; height: 66px; border-radius: 8px; overflow: hidden; }
.near__img img { width: 100%; height: 100%; object-fit: cover; }
.near__body { display: grid; line-height: 1.3; font-weight: 600; }
.near__body b { font-family: var(--font-display); letter-spacing: 0.1em; color: var(--accent-on-dark); }
.near__body small { font-weight: 400; color: var(--on-dark-muted); }
.imp-mini { height: clamp(360px, 42vw, 520px); border-radius: var(--radius-lg); overflow: hidden; background: #dcdcd6; }
.pin.is-current .pin__dot { background: var(--accent); }

/* Selezione nel modulo contatti */
.sel-box { padding: 18px 20px; border: 1px dashed rgba(242, 140, 62, 0.6); border-radius: var(--radius-lg); background: rgba(242, 140, 62, 0.08); }
.sel-box[hidden] { display: none; }
.sel-box__title { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; font-family: var(--font-display); font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: #fff; }
.sel-box__title .icon { color: var(--accent-on-dark); }
.sel-chips { display: grid; gap: 8px; margin-bottom: 12px; }
.sel-chip { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 8px 8px 14px; border-radius: 10px; background: rgba(255, 255, 255, 0.06); font-size: var(--fs-sm); }
.sel-chip b { font-family: var(--font-display); letter-spacing: 0.08em; color: var(--accent-on-dark); }
.sel-chip button { flex: none; width: 32px; height: 32px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, 0.1); color: #fff; font-size: 1.2rem; line-height: 1; cursor: pointer; }
.sel-chip button:hover { background: var(--accent); }
.sel-box__more { color: var(--accent-on-dark); font-size: var(--fs-sm); font-weight: 600; }

/* Home: sagoma di Taranto con i puntini */
.mapteaser__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 100px); align-items: center; }
@media (max-width: 900px) { .mapteaser__grid { grid-template-columns: 1fr; } }
.mapteaser__text p:not(.eyebrow) { font-size: var(--fs-lg); max-width: 520px; }
.mapteaser__stats { display: flex; flex-wrap: wrap; gap: 20px 48px; margin: 32px 0 36px; }
.mapteaser__stats li { display: grid; gap: 6px; }
.mapteaser__stats b { font-family: var(--font-display); font-weight: 800; font-size: clamp(3.2rem, 2rem + 3.4vw, 5.6rem); line-height: 0.85; color: #fff; }
.mapteaser__stats li > span { font-size: var(--fs-sm); max-width: 160px; line-height: 1.35; }
.mapteaser__map { position: relative; display: block; width: 100%; max-width: 600px; justify-self: center; }
.mapteaser__map img { width: 100%; height: auto; transition: transform 1.2s var(--ease-out); }
.mapteaser__map:hover img { transform: scale(1.015); }
.mapteaser__dots { position: absolute; inset: 0; }
.mt-dot {
  position: absolute; width: 11px; height: 11px; margin: -5.5px 0 0 -5.5px; border-radius: 50%; background: var(--accent-on-dark);
  box-shadow: 0 0 0 3px rgba(242, 140, 62, 0.22), 0 0 14px 3px rgba(242, 140, 62, 0.55); transition: box-shadow 0.3s, background 0.3s;
}
.mt-dot--pulse::after { content: ""; position: absolute; inset: -7px; border-radius: 50%; border: 1.5px solid var(--accent-on-dark); animation: ping 2.6s var(--ease-out) infinite; }
.mt-dot:hover { z-index: 2; background: #fff; box-shadow: 0 0 0 5px rgba(242, 140, 62, 0.9), 0 0 22px 6px rgba(242, 140, 62, 0.7); }
.mt-dot:hover::before {
  content: attr(data-label); position: absolute; left: 50%; bottom: calc(100% + 10px); transform: translateX(-50%);
  padding: 6px 10px; border-radius: 8px; background: #fff; color: var(--navy-ink); white-space: nowrap; font: 600 12px/1.2 var(--font-body);
}
.mapteaser__sea { position: absolute; transform: translate(-50%, -50%); font-family: var(--font-serif); font-style: italic; font-size: clamp(1rem, 0.75rem + 0.9vw, 1.6rem); color: rgba(169, 215, 238, 0.6); white-space: nowrap; pointer-events: none; }
.mapteaser__sea--piccolo { left: 64%; top: 31%; }
.mapteaser__sea--grande { left: 13%; top: 57%; }
.mapteaser__more { position: absolute; right: 2%; top: 3%; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line-dark); background: rgba(7, 26, 47, 0.6); font-family: var(--font-display); font-weight: 700; letter-spacing: 0.08em; color: #fff; font-size: 0.9rem; }
.mapteaser__credit { margin-top: 18px; font-size: var(--fs-xs); opacity: 0.6; text-align: right; }
@media (prefers-reduced-motion: reduce) { .mt-dot--pulse::after, .pin.is-active::before { animation: none; } }
.cluster-wrap { background: none; border: 0; }
.cluster {
  display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; cursor: pointer;
  background: var(--navy-ink); color: #fff; box-shadow: 0 0 0 4px rgba(232, 107, 24, 0.85), 0 0 0 9px rgba(232, 107, 24, 0.25), 0 8px 20px rgba(7, 26, 47, 0.45);
  transition: transform 0.35s var(--ease-out);
}
.cluster b { font-family: var(--font-display); font-weight: 800; font-size: 1.15rem; }
.cluster:hover { transform: scale(1.12); }
.page-hero--imp h1 { font-size: clamp(2.6rem, 1.4rem + 4.6vw, 6.2rem); }
.imp-photo img { aspect-ratio: auto; max-height: 72vh; object-fit: cover; }
.imp-detail { margin-top: clamp(48px, 6vw, 88px); }
.page-hero h1, .imp-item__label, .near__body, .imp-card__row a { overflow-wrap: anywhere; hyphens: auto; }
@media (max-width: 600px) { .sel-tray__long { display: none; } .page-hero--imp h1 { font-size: clamp(2.2rem, 1.2rem + 5vw, 3rem); } }
[data-img-reveal] { overflow: hidden; }

/* ==========================================================================
   "Il tuo manifesto in strada"
   ========================================================================== */
.mk__grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(320px, 1fr); gap: clamp(24px, 3vw, 48px); align-items: start; }
@media (max-width: 1000px) { .mk__grid { grid-template-columns: minmax(0, 1fr); } }
.mk__stage, .mk__panel { min-width: 0; }
.mk__frame { position: relative; border-radius: var(--radius-lg); overflow: hidden; background: var(--navy-ink); box-shadow: var(--shadow-lg); touch-action: manipulation; user-select: none; -webkit-user-select: none; }
.mk-canvas { display: block; width: 100%; height: auto; }
.mk-fallback { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity 0.6s; }
html:not(.js) .mk-canvas { display: none; }
html:not(.js) .mk-fallback { position: static; }
.mk.is-ready .mk-fallback { opacity: 0; pointer-events: none; }
.mk__frame::after {
  content: ""; position: absolute; right: 16px; top: 16px; width: 26px; height: 26px; border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.35); border-top-color: #fff; opacity: 0; transition: opacity 0.3s;
}
.mk.is-loading .mk__frame::after { opacity: 1; animation: mkspin 0.8s linear infinite; }
@keyframes mkspin { to { transform: rotate(360deg); } }
.mk__frame.is-switching .mk-canvas { animation: mkfade 0.6s var(--ease-out); }
@keyframes mkfade { from { opacity: 0.25; transform: scale(1.015); } }
.mk__hold {
  position: absolute; left: 14px; bottom: 14px; margin: 0; padding: 7px 12px; border-radius: 999px; background: rgba(7, 26, 47, 0.72);
  color: #fff; font-size: var(--fs-xs); font-weight: 600; pointer-events: none; transition: opacity 0.3s;
}
.mk__frame.is-original .mk__hold { opacity: 0; }
html:not(.js) .mk__hold { display: none; }
.mk__scenes { display: flex; gap: 10px; margin-top: 14px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, 0.25) transparent; }
html:not(.js) .mk__scenes { display: none; }
.mk-scene {
  flex: none; display: grid; width: 168px; padding: 0; border: 2px solid transparent; border-radius: 12px; overflow: hidden;
  background: rgba(255, 255, 255, 0.05); color: var(--on-dark-muted); text-align: left; cursor: pointer; transition: border-color 0.3s, background 0.3s;
}
.mk-scene img { width: 100%; height: 72px; object-fit: cover; }
.mk-scene span { display: grid; padding: 8px 10px 10px; font-size: 0.78rem; line-height: 1.3; }
.mk-scene b { color: #fff; font-family: var(--font-display); letter-spacing: 0.06em; font-size: 0.95rem; }
.mk-scene:hover { background: rgba(255, 255, 255, 0.09); }
.mk-scene[aria-checked="true"] { border-color: var(--accent-on-dark); background: rgba(242, 140, 62, 0.12); }
.mk__panel { display: grid; gap: 22px; padding: clamp(22px, 2.6vw, 34px); border-radius: var(--radius-lg); background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line-dark); }
html:not(.js) .mk__tabs, html:not(.js) .mk__tabpanel, html:not(.js) .mk__actions { display: none; }
.mk__tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 5px; border-radius: 999px; background: rgba(255, 255, 255, 0.06); }
.mk-tab {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 8px 12px; border: 0; border-radius: 999px;
  background: none; color: var(--on-dark-muted); cursor: pointer; font-family: var(--font-display); font-weight: 700; font-size: 1rem; letter-spacing: 0.06em; text-transform: uppercase;
}
.mk-tab .icon { width: 18px; height: 18px; }
.mk-tab[aria-selected="true"] { background: #fff; color: var(--navy-ink); }
.mk__tabpanel { display: grid; gap: 16px; }
.mk__tabpanel[hidden] { display: none; }
.mk-drop {
  display: grid; justify-items: center; gap: 6px; padding: 26px 18px; border: 2px dashed rgba(255, 255, 255, 0.28); border-radius: var(--radius-lg);
  text-align: center; cursor: pointer; transition: border-color 0.3s, background 0.3s;
}
.mk-drop .icon { width: 40px; height: 40px; color: var(--accent-on-dark); margin-bottom: 4px; }
.mk-drop b { color: #fff; font-family: var(--font-display); font-size: 1.3rem; letter-spacing: 0.04em; text-transform: uppercase; }
.mk-drop span { font-size: var(--fs-sm); }
.mk-drop u { color: var(--accent-on-dark); }
.mk-drop small { font-size: var(--fs-xs); opacity: 0.8; }
.mk-drop:hover, .mk-drop.is-over { border-color: var(--accent-on-dark); background: rgba(242, 140, 62, 0.08); }
.mk-drop:focus-within { outline: 3px solid var(--sky); outline-offset: 3px; }
.mk-fit { display: flex; flex-wrap: wrap; gap: 8px; }
.mk-fit button, .mk-themes button { cursor: pointer; }
.mk-fit button { min-height: 38px; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line-dark); background: none; color: #fff; font-size: var(--fs-sm); font-weight: 600; }
.mk-fit button[aria-checked="true"] { background: var(--accent); border-color: var(--accent); }
.mk__file { margin: 0; font-size: var(--fs-sm); color: #fff; overflow-wrap: anywhere; }
.mk__label { margin: 0; font-family: var(--font-display); font-weight: 700; font-size: 0.95rem; letter-spacing: 0.1em; text-transform: uppercase; }
.mk-themes { display: flex; gap: 12px; }
.mk-theme { position: relative; width: 48px; height: 48px; padding: 0; border-radius: 50%; border: 2px solid rgba(255, 255, 255, 0.3); background: var(--bg); overflow: hidden; }
.mk-theme span { position: absolute; right: -8px; bottom: -8px; width: 30px; height: 30px; border-radius: 50%; background: var(--ac); }
.mk-theme::before { content: "Aa"; position: absolute; left: 7px; top: 9px; color: var(--fg); font: 800 15px/1 var(--font-display); }
.mk-theme[aria-checked="true"] { border-color: #fff; box-shadow: 0 0 0 3px var(--accent-on-dark); }
.mk__info { padding-top: 18px; border-top: 1px solid var(--line-dark); }
.mk__scene-title { margin: 0; color: #fff; font-family: var(--font-display); font-weight: 800; font-size: 1.6rem; text-transform: uppercase; line-height: 1; }
.mk__scene-sub { margin: 6px 0 10px; font-size: var(--fs-sm); }
.mk__actions { display: grid; gap: 10px; }
.mk__actions .btn { width: 100%; }
.mk__actions [hidden] { display: none; }
.mk__note { margin: 0; font-size: var(--fs-xs); opacity: 0.85; }
.imp-try {
  display: flex; align-items: center; gap: 10px; margin-top: 16px; padding: 12px 14px; border-radius: 12px;
  background: rgba(242, 140, 62, 0.12); border: 1px solid rgba(242, 140, 62, 0.4); color: #fff; text-decoration: none; font-weight: 600; font-size: var(--fs-sm);
  transition: background 0.3s;
}
.imp-try .icon { color: var(--accent-on-dark); flex: none; }
.imp-try span { flex: 1; }
.imp-try:hover { background: rgba(242, 140, 62, 0.22); }
@media (max-width: 420px) { .mk-tab { font-size: 0.85rem; padding-inline: 8px; } .mk-tab .icon { display: none; } }

/* Prestazioni: niente grana animata sui touch, animazioni ferme fuori schermo */
@media (hover: none) { .grain { display: none; } }
.logo-rows.is-paused .logo-row { animation-play-state: paused; }
/* etichette leggibili su tutti gli sfondi scuri */
.cta-big .eyebrow, .imp .eyebrow, .page-hero .eyebrow { color: var(--accent-on-dark); }
