:root {
  --page: #f6f6f3;
  --panel: #fbfbf9;
  --soft: #efefeb;
  --ink: #141816;
  --ink-soft: #6f746f;
  --line: #dedfda;
  --dark: #1e2421;
  --dark-2: #151a18;
  --accent: #cf1e24;
  --accent-soft: rgba(207,30,36,.09);
  --radius-xl: 42px;
  --radius-lg: 30px;
  --radius-md: 22px;
  --ease: cubic-bezier(.22,.78,.3,1);
  --ease-soft: cubic-bezier(.16,1,.3,1);
  --shadow: 0 24px 70px rgba(18, 24, 20, .055);
}

* { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  width: 100%;
}
body {
  margin: 0;
  color: var(--ink);
  background: var(--page);
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  width: 100%;
  position: relative;
}
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
img { display: block; max-width: 100%; }
button { cursor: pointer; }

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -3;
  background:
    radial-gradient(circle at 17% 9%, rgba(255,255,255,.94), transparent 25%),
    linear-gradient(180deg, #f8f8f6 0%, #f3f3f0 100%);
}

.ambient {
  position: fixed;
  z-index: -2;
  font-size: clamp(420px, 43vw, 820px);
  line-height: .7;
  font-weight: 800;
  color: rgba(255,255,255,.68);
  user-select: none;
  pointer-events: none;
}
.ambient-a { left: -7vw; top: 3vh; }
.ambient-r { right: -11vw; top: 33vh; }
.ambient-s { left: -10vw; top: 115vh; transform: rotate(-6deg); }

.site-shell {
  width: min(1720px, calc(100% - 56px));
  margin: 18px auto 46px;
}

.panel { border-radius: var(--radius-xl); overflow: hidden; }
.panel-light { background: rgba(251,251,249,.95); box-shadow: var(--shadow); }
.panel-soft { background: rgba(239,239,235,.94); box-shadow: var(--shadow); }

/* ==================== TOPBAR (sticky dinamico) ==================== */
.topbar {
  position: sticky;
  top: 14px;
  z-index: 200;
  width: min(1720px, calc(100% - 56px));
  margin: 0 auto;
}
.topbar-inner {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  min-width: 0;
  gap: clamp(12px, 1.4vw, 22px);
  padding: clamp(9px, 1vw, 14px) clamp(14px, 1.6vw, 22px);
  border-radius: 999px;
  background: rgba(251,251,249,.86);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  box-shadow: 0 4px 30px rgba(18,24,20,.05);
  border: 1px solid rgba(255,255,255,.6);
  transition: padding .5s var(--ease-soft), background .45s var(--ease-soft), box-shadow .45s var(--ease-soft);
}
.topbar.is-compact .topbar-inner {
  padding: 8px 18px;
  background: rgba(251,251,249,.97);
  box-shadow: 0 14px 40px rgba(18,24,20,.1);
}
.brand { display: inline-flex; flex: 0 0 auto; }
.brand img {
  width: clamp(128px, 8vw, 190px);
  height: auto;
  object-fit: contain;
  object-position: left center;
  filter: drop-shadow(0 3px 5px rgba(15,20,17,.14));
  transition: width .5s var(--ease-soft);
}
.topbar.is-compact .brand img { width: 118px; }

.nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: clamp(10px, 1.3vw, 22px);
  font-size: clamp(12px, .75vw, 13.5px);
  color: #4e534f;
  white-space: nowrap;
}
.nav a { position: relative; padding: 4px 0; }
.nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%; bottom: -6px;
  height: 1.5px;
  background: var(--accent);
  transition: right .25s ease;
}
.nav a:hover::after, .nav a[aria-current="page"]::after { right: 0; }
.nav a[aria-current="page"] { color: var(--ink); font-weight: 500; }
.topbar .nav-close { display: none; }
.topbar .nav-cta-mobile { display: none; }

.topbar .topbar-cta {
  flex: 0 0 auto;
  background: var(--accent);
  color: #fff;
  min-height: clamp(38px, 3vw, 46px);
  padding: 0 clamp(14px, 1.4vw, 22px);
  font-size: clamp(11.5px, .75vw, 12.5px);
  gap: 8px;
}
.topbar-cta:hover { background: #ac171c; }

.menu-toggle { display: none; border: 0; background: transparent; width: 40px; height: 40px; padding: 8px; flex: 0 0 auto; }
.menu-toggle span { display: block; height: 1.5px; background: var(--ink); margin: 8px 0; border-radius: 2px; transition: transform .35s var(--ease), opacity .35s var(--ease); }
.menu-toggle.is-open span:nth-child(1) { transform: translateY(4.5px) rotate(45deg); }
.menu-toggle.is-open span:nth-child(2) { opacity: 0; }
.menu-toggle.is-open span:nth-child(3) { transform: translateY(-4.5px) rotate(-45deg); }

.nav-overlay {
  position: fixed; inset: 0;
  background: rgba(10,13,11,.4);
  backdrop-filter: blur(3px);
  opacity: 0; pointer-events: none;
  transition: opacity .45s var(--ease-soft);
  z-index: 250;
}
.nav-overlay.is-open { opacity: 1; pointer-events: auto; }

/* ==================== BUTTONS ==================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  min-height: 56px;
  padding: 0 28px;
  border: 0;
  border-radius: 999px;
  font-size: 13px;
  transition: transform .3s var(--ease), background .25s ease, box-shadow .3s var(--ease), color .25s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-dark { background: var(--dark); color: #fff; }
.btn-dark:hover { background: #111512; box-shadow: 0 16px 34px rgba(15,20,17,.22); }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: #ac171c; box-shadow: 0 16px 34px rgba(207,30,36,.28); }
.btn-outline { background: transparent; color: var(--ink); border: 1.5px solid var(--line); }
.btn-outline:hover { border-color: var(--ink); box-shadow: none; }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { box-shadow: 0 16px 34px rgba(15,20,17,.12); }
.btn-block { width: 100%; }
.btn span { font-size: 16px; }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }

/* ==================== HERO (home) ==================== */
.hero-section {
  display: grid;
  grid-template-columns: 1.06fr .94fr;
  gap: 20px;
  min-height: 820px;
  margin-top: 16px;
}
.hero-copy {
  min-width: 0;
  padding: 40px 42px 40px;
  display: grid;
  grid-template-rows: 1fr auto;
}
.hero-content { align-self: center; padding: 20px 0 44px; }
.eyebrow {
  margin: 0 0 24px;
  font-size: 12px;
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: .13em;
  color: #848984;
}
h1,h2,h3,p { margin-top: 0; }
h1 {
  margin-bottom: 22px;
  font-size: clamp(62px, 5.5vw, 102px);
  line-height: .94;
  letter-spacing: -.055em;
  font-weight: 500;
}
.hero-lead {
  max-width: 720px;
  margin: 0 0 34px;
  font-size: 19px;
  line-height: 1.55;
  color: var(--ink-soft);
}
.hero-cta-row { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.link-inline { font-size: 13px; color: var(--ink-soft); position: relative; padding-bottom: 3px; border-bottom: 1px solid var(--line); transition: border-color .25s ease, color .25s ease; }
.link-inline:hover { color: var(--ink); border-color: var(--ink); }

.hero-values {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.value-card {
  min-height: 164px;
  border-radius: 24px;
  padding: 28px 24px 22px;
  background: #fff;
  box-shadow: 0 15px 36px rgba(15,20,17,.025);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.value-card:hover { transform: translateY(-5px); box-shadow: 0 22px 50px rgba(15,20,17,.09); }
.value-icon { display: inline-block; width: 30px; height: 30px; margin-bottom: 18px; stroke-width: 1.6; }
.value-card strong { display: block; font-size: 32px; line-height: 1.05; font-weight: 500; letter-spacing: -.03em; }
.value-card p { margin: 10px 0 0; max-width: 160px; font-size: 12px; line-height: 1.4; color: #7b807b; }

.hero-visual { position: relative; min-height: 820px; background: #ddd; }
.hero-visual > img { width: 100%; height: 100%; object-fit: cover; object-position: 46% center; transition: transform 1.4s var(--ease-soft); }
.hero-visual:hover > img { transform: scale(1.045); }
.contact-pill {
  position: absolute; right: 26px; top: 26px;
  min-height: 48px; padding: 0 22px;
  border-radius: 999px; background: rgba(255,255,255,.96);
  display: flex; align-items: center; gap: 11px;
  font-size: 13px; font-weight: 500;
  box-shadow: 0 12px 35px rgba(0,0,0,.06);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.contact-pill:hover { transform: translateY(-3px); box-shadow: 0 18px 40px rgba(0,0,0,.14); }
.whatsapp-icon {
  width: 24px; height: 24px; flex: 0 0 auto;
  border-radius: 50%; background: #25d366; color: #fff;
  display: grid; place-items: center; font-size: 13px;
}
.hero-caption {
  position: absolute; left: 34px; bottom: 34px;
  max-width: 360px; color: #fff;
  font-size: 26px; line-height: 1.18; letter-spacing: -.03em;
  text-shadow: 0 3px 20px rgba(0,0,0,.25);
}

/* ==================== PAGE HERO (pagine interne) ==================== */
.page-hero {
  position: relative;
  min-height: 62vh;
  border-radius: var(--radius-xl);
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  margin-top: 16px;
  margin-bottom: 20px;
  box-shadow: var(--shadow);
}
.page-hero img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover;
  transform: scale(1.01);
  transition: transform 1.6s var(--ease-soft);
}
.page-hero:hover img { transform: scale(1.06); }
.page-hero::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,14,11,.05) 30%, rgba(8,10,9,.82) 100%);
}
.page-hero-content { position: relative; z-index: 2; color: #fff; padding: 56px 60px 60px; width: 100%; text-align: center; display: flex; flex-direction: column; align-items: center; }
.breadcrumb { display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 11px; text-transform: uppercase; letter-spacing: .12em; color: rgba(255,255,255,.68); margin-bottom: 20px; }
.breadcrumb a { color: rgba(255,255,255,.68); transition: color .2s ease; }
.breadcrumb a:hover { color: #fff; }
.page-hero h1 { color: #fff; font-size: clamp(46px, 6vw, 84px); max-width: 900px; margin: 0 auto 24px; }
.page-hero-lead { max-width: 640px; font-size: 17px; line-height: 1.6; color: rgba(255,255,255,.82); margin: 0 auto; }

.section-head { display: grid; grid-template-columns: 1fr minmax(300px, 470px); gap: 48px; align-items: end; margin-bottom: 36px; }
.section-head h2 { margin-bottom: 0; }
.section-head > p { margin: 0 0 10px; font-size: 14px; line-height: 1.55; color: #737873; }
.section-head.is-center { grid-template-columns: 1fr; text-align: center; justify-items: center; }
.section-head.is-center p { max-width: 620px; }

/* ==================== METHOD (home) ==================== */
.method-section {
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  gap: 72px;
  padding: 104px 80px 88px;
  align-items: center;
}
.method-copy h2,
.projects-heading h2,
.journey-top h2,
h2.display,
.section-head h2 {
  margin-bottom: 20px;
  font-size: clamp(54px, 4.5vw, 82px);
  line-height: .98;
  letter-spacing: -.05em;
  font-weight: 500;
}
.section-lead {
  max-width: 760px;
  margin: 0;
  font-size: 17px;
  line-height: 1.58;
  color: #6f746f;
}
.technical-visual {
  position: relative;
  margin-top: 36px;
  width: 100%;
  min-height: 470px;
  overflow: hidden;
}
.technical-visual img {
  width: 100%;
  height: 470px;
  object-fit: contain;
  object-position: left bottom;
  mix-blend-mode: multiply;
  opacity: .94;
}
.sketch-note {
  position: absolute; left: 10px; bottom: 20px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 20px; line-height: 1.1; font-style: italic;
  color: #4c504d; transform: rotate(-6deg);
}
.feature-stack { display: grid; gap: 18px; }
.feature-card {
  min-height: 154px;
  display: grid;
  grid-template-columns: 148px 1fr 42px;
  gap: 22px;
  align-items: center;
  padding: 10px 18px 10px 10px;
  border-radius: 24px;
  background: var(--dark);
  color: #fff;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.feature-card:hover { transform: translateY(-4px); box-shadow: 0 22px 46px rgba(10,14,11,.28); }
.feature-card .img-clip { width: 148px; height: 134px; border-radius: 17px; overflow: hidden; }
.feature-card img { width: 148px; height: 134px; object-fit: cover; border-radius: 17px; transition: transform .7s var(--ease-soft); }
.feature-card:hover img { transform: scale(1.08); }
.feature-text h3 { margin: 0 0 10px; font-size: 20px; font-weight: 500; letter-spacing: -.02em; }
.feature-text p { margin: 0; max-width: 380px; font-size: 13px; line-height: 1.5; color: #bcc1bd; }
.round-arrow {
  width: 38px; height: 38px; border-radius: 50%;
  background: #fff; color: var(--dark);
  display: grid; place-items: center;
  font-size: 24px;
  transition: transform .35s var(--ease), background .35s ease, color .35s ease;
}
.feature-card:hover .round-arrow { background: var(--accent); color: #fff; transform: rotate(45deg); }

/* ==================== PROJECTS carousel (home) ==================== */
.projects-section { padding: 64px 56px 42px; }
.projects-viewport { overflow: hidden; }
.projects-track { display: flex; gap: 14px; transition: transform .6s var(--ease-soft); will-change: transform; }
.project-card {
  position: relative;
  flex: 0 0 calc((100% - 42px)/4);
  min-width: 0;
  height: 420px;
  border-radius: 22px;
  overflow: hidden;
  background: #ccc;
}
.project-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease-soft); }
.project-card:hover img { transform: scale(1.06); }
.project-card::after {
  content: ""; position: absolute; inset: 42% 0 0;
  background: linear-gradient(transparent, rgba(0,0,0,.78));
}
.project-overlay { position: absolute; z-index: 2; left: 20px; right: 20px; bottom: 20px; color: #fff; }
.project-overlay strong { display: block; font-size: 18px; font-weight: 500; }
.project-overlay span { display: block; margin-top: 5px; font-size: 11px; color: rgba(255,255,255,.72); }
.project-tag { position: absolute; z-index: 2; left: 20px; top: 20px; font-size: 10px; text-transform: uppercase; letter-spacing: .1em; color: #fff; background: rgba(255,255,255,.16); backdrop-filter: blur(6px); padding: 6px 12px; border-radius: 999px; }
.projects-actions { margin-top: 28px; display: flex; align-items: center; justify-content: space-between; }
.carousel-controls { display: flex; gap: 10px; }
.carousel-btn {
  width: 48px; height: 48px; border: 0; border-radius: 50%;
  background: #fff; color: var(--ink); font-size: 24px;
  transition: transform .25s var(--ease), opacity .2s ease, background .25s ease, color .25s ease;
}
.carousel-btn:hover:not(:disabled) { transform: translateY(-3px); background: var(--dark); color: #fff; }
.carousel-btn:disabled { opacity: .35; cursor: default; transform: none; }

/* ==================== DETAIL / SERVIZI grid (home + servizi) ==================== */
.detail-section { padding: 76px 30px 78px; }
.detail-section > h2 { text-align: center; margin-bottom: 42px; font-size: clamp(48px, 4vw, 72px); line-height: 1; letter-spacing: -.05em; font-weight: 500; }
.detail-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 12px; }
.detail-grid.cols-3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
.detail-card { position: relative; min-height: 260px; padding: 30px 30px 28px; border-radius: 24px; transition: transform .4s var(--ease), box-shadow .4s var(--ease); }
.detail-card:hover { transform: translateY(-6px); }
.detail-light { background: rgba(249,249,247,.84); }
.detail-light:hover { box-shadow: 0 26px 54px rgba(15,20,17,.08); }
.detail-dark { background: var(--dark); color: #fff; }
.detail-dark:hover { box-shadow: 0 26px 54px rgba(10,14,11,.3); }
.detail-num { font-size: 10px; color: #8e938e; }
.detail-card h3 { margin: 52px 0 13px; font-size: 19px; font-weight: 500; letter-spacing: -.02em; }
.detail-card p { max-width: 280px; margin: 0; font-size: 13px; line-height: 1.5; color: #777c77; }
.detail-dark p { color: #b6bbb7; }
.detail-arrow { position: absolute; right: 22px; bottom: 22px; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--dark); color: #fff; transition: transform .35s var(--ease), background .3s ease; }
.detail-dark .detail-arrow { background: #fff; color: var(--dark); }
.detail-card:hover .detail-arrow { transform: rotate(45deg); background: var(--accent); color: #fff; }

/* icon marks (servizi / chi siamo / ambienti, no external icon lib) */
.icon-mark { display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: rgba(20,24,22,.06); margin-bottom: 18px; }
.detail-dark .icon-mark { background: rgba(255,255,255,.1); }
.icon-mark svg { width: 22px; height: 22px; stroke-width: 1.6; }

/* ==================== JOURNEY tabs (home + servizi) ==================== */
.journey-section { padding: 28px 56px 80px; }
.journey-top { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: end; }
.journey-top h2 { margin: 0; justify-self: end; }
.journey-left { align-self: stretch; display: flex; flex-direction: column; justify-content: flex-end; }
.journey-tabs { display: flex; width: fit-content; padding: 5px; border-radius: 999px; background: #e6e7e3; }
.journey-tab { border: 0; border-radius: 999px; padding: 12px 20px; background: transparent; color: #717671; font-size: 12px; transition: color .3s ease; }
.journey-tab.is-active { background: var(--dark); color: #fff; }
.journey-panel { display: none; grid-template-columns: repeat(3,1fr); margin-top: 34px; border-top: 1px solid var(--line); }
.journey-panel.cols-6 { grid-template-columns: repeat(6,1fr); }
.journey-panel.is-active { display: grid; }
.journey-panel article { min-height: 210px; padding: 30px 30px 16px 8px; border-right: 1px solid var(--line); transition: opacity .3s ease; }
.journey-panel article:last-child { border-right: 0; }
.journey-panel span { display: block; margin-bottom: -2px; font-size: 46px; line-height: 1; font-weight: 600; color: #e2e4df; }
.journey-panel h3 { margin: 13px 0 10px; font-size: 17px; font-weight: 500; }
.journey-panel p { max-width: 360px; margin: 0; font-size: 13px; line-height: 1.5; color: #747974; }

/* ==================== CTA BANNER (tutte le pagine) ==================== */
.cta-banner {
  position: relative;
  background: var(--dark);
  color: #fff;
  border-radius: var(--radius-xl);
  padding: 78px 60px;
  margin: 22px 0;
  text-align: center;
  overflow: hidden;
  isolation: isolate;
}
.cta-banner::before {
  content: "";
  position: absolute; z-index: -1;
  width: 620px; height: 620px;
  right: -220px; top: -260px;
  background: radial-gradient(circle, rgba(207,30,36,.35), transparent 68%);
  filter: blur(10px);
}
.cta-banner::after {
  content: "";
  position: absolute; z-index: -1;
  width: 480px; height: 480px;
  left: -180px; bottom: -240px;
  background: radial-gradient(circle, rgba(255,255,255,.07), transparent 70%);
}
.cta-banner .eyebrow { color: rgba(255,255,255,.55); }
.cta-banner h2 { font-size: clamp(38px, 4.4vw, 60px); letter-spacing: -.04em; margin-bottom: 16px; max-width: 780px; margin-left: auto; margin-right: auto; }
.cta-banner p { max-width: 560px; margin: 0 auto 32px; color: #c3c8c4; font-size: 16px; line-height: 1.6; }
.cta-banner .cta-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ==================== GALLERY / AMBIENTI / PROGETTI ==================== */
.filter-tabs { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 34px; }
.filter-tab {
  padding: 11px 21px; border-radius: 999px; background: #fff; font-size: 12px;
  border: 1px solid var(--line); color: var(--ink-soft);
  transition: background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease), transform .3s var(--ease);
}
.filter-tab:hover { transform: translateY(-2px); border-color: var(--ink); color: var(--ink); }
.filter-tab.is-active { background: var(--dark); color: #fff; border-color: var(--dark); }

.grid-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.gallery-card {
  position: relative; border-radius: 22px; overflow: hidden; height: 380px;
  background: #ccc; box-shadow: 0 10px 30px rgba(15,20,17,.05);
  transition: opacity .4s var(--ease), transform .4s var(--ease);
}
.gallery-card.is-filtered-out { display: none; }
.gallery-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease-soft); }
.gallery-card:hover img { transform: scale(1.06); }
.gallery-card::after { content: ""; position: absolute; inset: 40% 0 0; background: linear-gradient(transparent, rgba(0,0,0,.8)); }
.gallery-overlay { position: absolute; z-index: 2; left: 20px; right: 20px; bottom: 20px; color: #fff; }
.gallery-overlay strong { display: block; font-size: 17px; font-weight: 500; }
.gallery-overlay span { display: block; margin-top: 5px; font-size: 11px; color: rgba(255,255,255,.72); text-transform: uppercase; letter-spacing: .08em; }
.gallery-card--tall { height: 540px; grid-row: span 2; }

.masonry-note { text-align: center; margin-top: 40px; font-size: 13px; color: var(--ink-soft); }

/* ==================== CHI SIAMO: timeline / stats ==================== */
.timeline { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 40px; }
.timeline-item { padding: 32px 28px; border-radius: 24px; background: var(--panel); box-shadow: 0 12px 34px rgba(15,20,17,.04); position: relative; }
.timeline-item strong.timeline-tag { display: inline-block; font-size: 11px; text-transform: uppercase; letter-spacing: .1em; color: var(--accent); margin-bottom: 14px; }
.timeline-item h3 { font-size: 20px; margin: 0 0 10px; font-weight: 500; }
.timeline-item p { font-size: 14px; line-height: 1.6; color: var(--ink-soft); margin: 0; }

.split-block { display: grid; grid-template-columns: .9fr 1.1fr; gap: 60px; align-items: center; padding: 90px 60px; }
.split-block.is-reverse { grid-template-columns: 1.1fr .9fr; }
.split-block.is-reverse .split-media { order: 2; }
.split-media { border-radius: var(--radius-lg); overflow: hidden; height: 520px; box-shadow: var(--shadow); }
.split-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-soft); }
.split-media:hover img { transform: scale(1.05); }
.split-copy h2 { font-size: clamp(38px, 3.6vw, 56px); letter-spacing: -.04em; line-height: 1.04; margin-bottom: 20px; }
.split-copy p { font-size: 16px; line-height: 1.65; color: var(--ink-soft); margin: 0 0 16px; }
.tag-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.tag-chip { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; padding: 9px 16px; border-radius: 999px; background: var(--soft); color: #545954; }

/* ==================== SHOWROOM ==================== */
.showroom-info { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin: 40px 0; }
.info-card { padding: 30px 28px; border-radius: 24px; background: var(--panel); box-shadow: 0 12px 34px rgba(15,20,17,.04); transition: transform .35s var(--ease); }
.info-card:hover { transform: translateY(-5px); }
.info-card .icon-mark { margin-bottom: 20px; }
.info-card h3 { font-size: 16px; margin: 0 0 8px; font-weight: 500; }
.info-card p, .info-card a.plain { font-size: 14px; line-height: 1.6; color: var(--ink-soft); margin: 0; display: block; }
.info-card a.plain:hover { color: var(--ink); }
.map-frame { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); height: 420px; border: 0; width: 100%; filter: grayscale(.15) contrast(1.03); }

.social-row { display: flex; gap: 12px; margin-top: 22px; flex-wrap: wrap; }
.social-badge { display: inline-flex; align-items: center; gap: 9px; padding: 10px 18px; border-radius: 999px; background: var(--soft); font-size: 12px; color: #545954; }
.social-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }

/* ==================== CONTATTI / FORM ==================== */
.contact-layout { display: grid; grid-template-columns: .8fr 1.2fr; gap: 60px; padding: 20px 56px 90px; align-items: start; }
.contact-form-panel { background: var(--panel); border-radius: var(--radius-lg); padding: 46px; box-shadow: var(--shadow); }
.form-field { margin-bottom: 20px; }
.form-field label { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-soft); margin-bottom: 9px; }
.form-field input, .form-field textarea, .form-field select {
  width: 100%; border-radius: 15px; border: 1.5px solid var(--line);
  padding: 15px 17px; background: #fff; color: var(--ink);
  transition: border-color .25s ease, box-shadow .25s ease;
}
.form-field textarea { resize: vertical; min-height: 120px; }
.form-field input:focus, .form-field textarea:focus, .form-field select:focus {
  outline: none; border-color: var(--dark); box-shadow: 0 0 0 4px rgba(30,36,33,.06);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-hint { font-size: 12px; color: #9aa09a; margin-top: 22px; text-align: center; }
.checkbox-field { display: flex; align-items: flex-start; gap: 10px; font-size: 12.5px; color: var(--ink-soft); margin-bottom: 22px; }
.checkbox-field input { width: 17px; height: 17px; margin-top: 1px; accent-color: var(--dark); }

/* ==================== PREVENTIVO WIZARD ==================== */
.wizard-wrap { padding: 20px 40px 100px; }
.wizard { max-width: 920px; margin: 0 auto; }
.wizard-steps { display: flex; justify-content: space-between; position: relative; margin-bottom: 54px; }
.wizard-steps::before {
  content: ""; position: absolute; top: 19px; left: 19px; right: 19px; height: 2px; background: var(--line); z-index: 0;
}
.wizard-steps .step-fill {
  content: ""; position: absolute; top: 19px; left: 19px; height: 2px; background: var(--accent); z-index: 1;
  width: 0%; transition: width .55s var(--ease-soft);
}
.wizard-step { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 10px; flex: 1; }
.wizard-step-dot {
  width: 40px; height: 40px; border-radius: 50%; background: #fff; border: 2px solid var(--line);
  display: grid; place-items: center; font-size: 13px; color: var(--ink-soft); font-weight: 500;
  transition: border-color .35s var(--ease), background .35s var(--ease), color .35s var(--ease), transform .35s var(--ease);
}
.wizard-step-label { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-soft); text-align: center; max-width: 100px; display: none; }
.wizard-step.is-active .wizard-step-dot { border-color: var(--dark); background: var(--dark); color: #fff; transform: scale(1.08); }
.wizard-step.is-active .wizard-step-label { color: var(--ink); }
.wizard-step.is-done .wizard-step-dot { border-color: var(--accent); background: var(--accent); color: #fff; }
.wizard-step.is-done .wizard-step-dot::after { content: "✓"; }
.wizard-step.is-done .wizard-step-dot span { display: none; }

.wizard-panel { display: none; }
.wizard-panel.is-active { display: block; animation: fadeSlideIn .55s var(--ease-soft); }
@keyframes fadeSlideIn { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }

.wizard-panel h2 { font-size: clamp(30px, 3vw, 42px); letter-spacing: -.03em; margin-bottom: 10px; }
.wizard-panel > p.wizard-sub { color: var(--ink-soft); font-size: 15px; margin-bottom: 34px; max-width: 560px; }

.option-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; }
.option-card {
  border: 1.5px solid var(--line); border-radius: 20px; padding: 24px 22px; text-align: left;
  background: #fff; transition: border-color .3s var(--ease), background .3s var(--ease), color .3s var(--ease), transform .3s var(--ease);
  display: block; width: 100%;
}
.option-card:hover { transform: translateY(-3px); border-color: #b9beb9; }
.option-card strong { display: block; font-size: 16px; margin-bottom: 6px; font-weight: 500; }
.option-card span.option-desc { font-size: 12.5px; color: var(--ink-soft); line-height: 1.5; display: block; }
.option-card .option-check { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--line); margin-bottom: 14px; transition: .3s var(--ease); }
.option-card.is-selected { border-color: var(--dark); background: var(--dark); color: #fff; }
.option-card.is-selected span.option-desc { color: #bcc1bd; }
.option-card.is-selected .option-check { background: var(--accent); border-color: var(--accent); }
.option-card.is-selected .option-check::after { content: "✓"; font-size: 11px; color: #fff; }

.wizard-nav { display: flex; justify-content: space-between; align-items: center; margin-top: 46px; gap: 14px; }
.wizard-error { color: var(--accent); font-size: 12.5px; margin-top: 14px; display: none; }
.wizard-error.is-visible { display: block; }

.summary-list { display: grid; gap: 14px; margin-bottom: 10px; }
.summary-row { display: flex; justify-content: space-between; gap: 20px; padding: 16px 20px; border-radius: 16px; background: var(--panel); font-size: 14px; }
.summary-row dt { color: var(--ink-soft); }
.summary-row dd { margin: 0; font-weight: 500; text-align: right; max-width: 60%; }

.success-panel { text-align: center; padding: 40px 10px 10px; }
.success-check {
  width: 88px; height: 88px; border-radius: 50%; background: #e8f5ec; color: #1e824c;
  display: grid; place-items: center; font-size: 40px; margin: 0 auto 26px;
  animation: popIn .55s var(--ease-soft);
}
@keyframes popIn { 0% { transform: scale(.4); opacity: 0; } 70% { transform: scale(1.08); opacity: 1; } 100% { transform: scale(1); } }
.success-panel h2 { font-size: clamp(30px, 3vw, 44px); margin-bottom: 14px; }
.success-panel p { color: var(--ink-soft); font-size: 15px; max-width: 480px; margin: 0 auto 30px; line-height: 1.6; }

.spinner { width: 17px; height: 17px; border-radius: 50%; border: 2px solid rgba(255,255,255,.4); border-top-color: #fff; animation: spin .7s linear infinite; display: none; }
.is-loading .spinner { display: inline-block; }
.is-loading .btn-label { opacity: .7; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ==================== REVEAL / STAGGER ==================== */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease-soft), transform .8s var(--ease-soft); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.reveal-group > * { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease-soft), transform .7s var(--ease-soft); }
.reveal-group.is-visible > * { opacity: 1; transform: translateY(0); }
.reveal-group.is-visible > *:nth-child(1) { transition-delay: .02s; }
.reveal-group.is-visible > *:nth-child(2) { transition-delay: .09s; }
.reveal-group.is-visible > *:nth-child(3) { transition-delay: .16s; }
.reveal-group.is-visible > *:nth-child(4) { transition-delay: .23s; }
.reveal-group.is-visible > *:nth-child(5) { transition-delay: .30s; }
.reveal-group.is-visible > *:nth-child(6) { transition-delay: .37s; }

/* ==================== FOOTER ==================== */
.footer { background: var(--dark-2); color: #fff; padding: 60px 58px 24px; }
.footer-main { display: grid; grid-template-columns: 1.2fr .6fr .6fr .6fr; gap: 48px; align-items: start; }
.footer-brand img { width: 310px; height: auto; object-fit: contain; object-position: left center; }
.footer-brand p { max-width: 380px; margin: 18px 0 0; font-size: 14px; line-height: 1.5; color: #a5aaa6; }
.footer-col { display: flex; flex-direction: column; gap: 10px; padding-top: 12px; }
.footer-col span.col-label { font-size: 10px; text-transform: uppercase; letter-spacing: .13em; color: #757b77; margin-bottom: 2px; }
.footer-col strong, .footer-col a { font-size: 14px; line-height: 1.5; font-weight: 400; color: #e5e7e5; position: relative; width: fit-content; }
.footer-col a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -2px; height: 1px; background: var(--accent); transition: right .25s ease; }
.footer-col a:hover::after { right: 0; }
.footer-social { display: flex; gap: 10px; margin-top: 4px; }
.footer-social span { font-size: 11px; padding: 8px 14px; border-radius: 999px; background: rgba(255,255,255,.07); color: #b7bcb8; }
.footer-bottom { margin-top: 44px; padding-top: 20px; border-top: 1px solid #303532; display: flex; justify-content: space-between; gap: 20px; font-size: 10px; color: #777d79; flex-wrap: wrap; }

/* ==================== WHATSAPP FLOTTANTE ==================== */
.whatsapp-fab {
  position: fixed;
  right: 26px;
  bottom: 26px;
  z-index: 210;
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  animation: whatsappBounce 2.8s ease-in-out infinite;
}
.whatsapp-fab-icon {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  flex: 0 0 auto;
  background: #25d366;
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 27px;
  box-shadow: 0 10px 30px rgba(37,211,102,.4), 0 2px 10px rgba(0,0,0,.14);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.whatsapp-fab:hover .whatsapp-fab-icon,
.whatsapp-fab:focus-visible .whatsapp-fab-icon {
  transform: scale(1.08);
  box-shadow: 0 14px 38px rgba(37,211,102,.5), 0 4px 14px rgba(0,0,0,.18);
}
.whatsapp-fab-bubble {
  position: relative;
  background: #fff;
  color: var(--ink);
  font-size: 13.5px;
  font-weight: 500;
  line-height: 1.35;
  white-space: nowrap;
  padding: 12px 18px;
  border-radius: 14px;
  box-shadow: 0 12px 32px rgba(15,20,17,.14);
  opacity: 0;
  transform: translateX(8px) scale(.94);
  transition: opacity .35s var(--ease-soft), transform .35s var(--ease-soft);
  pointer-events: none;
}
.whatsapp-fab-bubble::after {
  content: "";
  position: absolute;
  right: -5px;
  top: 50%;
  width: 10px;
  height: 10px;
  background: #fff;
  transform: translateY(-50%) rotate(45deg);
  border-radius: 2px;
}
.whatsapp-fab:hover .whatsapp-fab-bubble,
.whatsapp-fab:focus-visible .whatsapp-fab-bubble {
  opacity: 1;
  transform: translateX(0) scale(1);
}
@keyframes whatsappBounce {
  0%, 100% { transform: translateY(0); }
  8% { transform: translateY(-9px); }
  16% { transform: translateY(0); }
  22% { transform: translateY(-4px); }
  28% { transform: translateY(0); }
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 1280px) {
  .site-shell, .topbar { width: min(1180px, calc(100% - 36px)); }
  .hero-section { min-height: 760px; }
  .hero-visual { min-height: 760px; }
  .hero-copy { padding: 30px 30px 32px; }
  .method-section { padding: 86px 44px 70px; gap: 48px; }
  .feature-card { grid-template-columns: 118px 1fr 36px; }
  .feature-card img, .feature-card .img-clip { width: 118px; height: 112px; }
  .project-card { height: 360px; }
  .split-block { padding: 70px 44px; gap: 44px; }
  .split-media { height: 440px; }
  .grid-gallery { grid-template-columns: repeat(2, 1fr); }
  .contact-layout { padding: 20px 40px 80px; gap: 40px; }
}

/* Nav breakpoint: hamburger sotto 1300px. Sopra, il menu desktop è fluido
   (clamp) e dimensionato con largo margine per non andare mai in overflow. */
@media (max-width: 1299px) {
  .topbar-cta { display: none; }
  .menu-toggle { display: block; }
  .nav {
    position: fixed; top: 0; right: 0; height: 100dvh; width: min(380px, 88vw);
    margin-left: 0; flex-direction: column; align-items: stretch; justify-content: flex-start;
    gap: 2px; background: #fbfbf9; z-index: 260;
    padding: 96px 32px 40px; transform: translateX(100%);
    transition: transform .6s var(--ease-soft);
    box-shadow: -30px 0 70px rgba(0,0,0,.14);
    font-size: 22px; color: var(--ink);
  }
  .nav.is-open { transform: translateX(0); }
  .nav a { padding: 15px 2px; border-bottom: 1px solid var(--line); opacity: 0; transform: translateY(16px); transition: opacity .5s var(--ease-soft), transform .5s var(--ease-soft); }
  .nav.is-open a { opacity: 1; transform: translateY(0); }
  .nav.is-open a:nth-child(1) { transition-delay: .08s; }
  .nav.is-open a:nth-child(2) { transition-delay: .14s; }
  .nav.is-open a:nth-child(3) { transition-delay: .20s; }
  .nav.is-open a:nth-child(4) { transition-delay: .26s; }
  .nav.is-open a:nth-child(5) { transition-delay: .32s; }
  .nav.is-open a:nth-child(6) { transition-delay: .38s; }
  .nav.is-open a:nth-child(7) { transition-delay: .44s; }
  .topbar .nav-close {
    display: flex; position: absolute; top: 26px; right: 28px; width: 40px; height: 40px;
    border-radius: 50%; background: var(--soft); align-items: center; justify-content: center; font-size: 16px;
    opacity: 0; transform: translateY(-8px); transition: opacity .5s var(--ease-soft) .1s, transform .5s var(--ease-soft) .1s;
  }
  .nav.is-open .nav-close { opacity: 1; transform: translateY(0); }
  .topbar .nav-cta-mobile {
    display: inline-flex; margin-top: 22px; background: var(--accent); color: #fff;
    opacity: 0; transform: translateY(16px); transition: opacity .5s var(--ease-soft) .48s, transform .5s var(--ease-soft) .48s;
    border-bottom: 0; justify-content: center;
  }
  .nav.is-open .nav-cta-mobile { opacity: 1; transform: translateY(0); }
}

@media (max-width: 980px) {
  .site-shell, .topbar { width: min(760px, calc(100% - 24px)); margin-top: 12px; }
  .hero-section { grid-template-columns: 1fr; min-height: auto; }
  .hero-copy { min-height: 680px; }
  .hero-visual { min-height: 480px; }
  .method-section { grid-template-columns: 1fr; padding-left: 30px; padding-right: 30px; }
  .technical-visual { min-height: 420px; }
  .technical-visual img { height: 420px; }
  .feature-stack { grid-template-columns: 1fr; }
  .project-card { flex-basis: calc((100% - 14px)/2); height: 400px; }
  .detail-grid, .detail-grid.cols-3 { grid-template-columns: repeat(2,1fr); }
  .journey-top { grid-template-columns: 1fr; gap: 28px; }
  .journey-top h2 { justify-self: start; }
  .journey-panel.cols-6 { grid-template-columns: repeat(2,1fr); }
  .journey-panel.cols-6 article { border-right: 0; border-bottom: 1px solid var(--line); }
  .footer-main { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .split-block, .split-block.is-reverse { grid-template-columns: 1fr; }
  .split-block.is-reverse .split-media { order: 0; }
  .split-media { height: 360px; }
  .timeline { grid-template-columns: 1fr; }
  .showroom-info { grid-template-columns: 1fr; }
  .grid-gallery { grid-template-columns: 1fr 1fr; }
  .contact-layout { grid-template-columns: 1fr; }
  .page-hero { min-height: 50vh; }
  .wizard-step-label { display: none !important; }
  .cta-banner { padding: 60px 34px; }
}

@media (max-width: 700px) {
  :root { --radius-xl: 28px; --radius-lg: 22px; }
  .ambient { font-size: clamp(220px, 62vw, 380px); }
  .ambient-a { left: -10vw; }
  .ambient-r { right: -14vw; }
  .ambient-s { left: -13vw; }
  .site-shell, .topbar { width: calc(100% - 16px); margin-bottom: 22px; }
  .topbar { top: 8px; }
  .topbar-inner { padding: 11px 16px; gap: 14px; }
  .brand img { width: 152px; }
  .topbar.is-compact .brand img { width: 122px; }
  .hero-copy { min-height: auto; padding: 22px 18px 24px; }
  .hero-content { padding: 30px 0 36px; }
  h1 { font-size: clamp(48px, 14vw, 72px); }
  .hero-lead { font-size: 16px; }
  .hero-values { grid-template-columns: 1fr; }
  .value-card { min-height: 130px; }
  .hero-visual { min-height: 420px; }
  .contact-pill { right: 16px; top: 16px; }
  .hero-caption { left: 22px; bottom: 24px; font-size: 22px; }

  .method-section { padding: 60px 14px 46px; gap: 26px; }
  .method-copy h2, .projects-heading h2, .journey-top h2, h2.display, .section-head h2 { font-size: 42px; }
  .section-lead { font-size: 15px; }
  .technical-visual { min-height: 280px; margin-top: 24px; }
  .technical-visual img { height: 280px; }
  .sketch-note { font-size: 15px; }
  .feature-card { grid-template-columns: 84px 1fr 30px; gap: 12px; min-height: 118px; padding: 8px 10px 8px 8px; }
  .feature-card img, .feature-card .img-clip { width: 84px; height: 100px; }
  .feature-text h3 { font-size: 15px; }
  .feature-text p { font-size: 11px; }
  .round-arrow { width: 30px; height: 30px; }

  .section-head { grid-template-columns: 1fr; gap: 10px; }
  .section-head > p { font-size: 12.5px; }
  .projects-section { padding: 36px 14px 24px; }
  .project-card { flex-basis: 82%; height: 380px; }
  .projects-actions .btn { padding: 0 20px; }

  .detail-section { padding: 50px 2px 50px; }
  .detail-section > h2 { font-size: 40px; margin-bottom: 26px; }
  .detail-grid, .detail-grid.cols-3 { grid-template-columns: 1fr; }
  .detail-card { min-height: 190px; }

  .journey-section { padding: 16px 6px 50px; }
  .journey-tabs { width: 100%; }
  .journey-tab { flex: 1; padding-left: 8px; padding-right: 8px; }
  .journey-panel.is-active, .journey-panel.cols-6.is-active { grid-template-columns: 1fr; }
  .journey-panel article { min-height: auto; border-right: 0; border-bottom: 1px solid var(--line); padding: 22px 6px 20px; }
  .journey-panel article:last-child { border-bottom: 0; }

  .page-hero { min-height: 46vh; border-radius: var(--radius-xl); }
  .page-hero-content { padding: 34px 22px 34px; }
  .breadcrumb { display: none; }

  .split-block, .split-block.is-reverse { padding: 46px 18px; }
  .split-media, .split-block.is-reverse .split-media { height: 280px; }
  .timeline-item { padding: 26px 22px; }

  .grid-gallery { grid-template-columns: 1fr; }
  .gallery-card, .gallery-card--tall { height: 300px; grid-row: auto; }
  .contact-layout { padding: 12px 14px 60px; }
  .contact-form-panel { padding: 26px; }
  .form-row { grid-template-columns: 1fr; }
  .map-frame { height: 300px; }

  .wizard-wrap { padding: 10px 14px 60px; }
  .wizard-steps { margin-bottom: 34px; }
  .wizard-step-dot { width: 32px; height: 32px; font-size: 11px; }
  .wizard-steps::before, .wizard-steps .step-fill { top: 15px; left: 15px; right: 15px; }
  .option-grid { grid-template-columns: 1fr; }
  .wizard-nav { flex-wrap: wrap; }

  .cta-banner { padding: 46px 20px; border-radius: var(--radius-xl); }

  .footer { padding: 36px 22px 20px; }
  .footer-main { grid-template-columns: 1fr; gap: 26px; }
  .footer-brand { grid-column: auto; }
  .footer-brand img { width: 250px; }
  .footer-bottom { flex-direction: column; }

  .whatsapp-fab { right: 16px; bottom: 16px; gap: 8px; }
  .whatsapp-fab-icon { width: 50px; height: 50px; font-size: 23px; }
  .whatsapp-fab-bubble { white-space: normal; max-width: 160px; font-size: 12.5px; padding: 10px 14px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .reveal, .reveal-group > * { opacity: 1; transform: none; }
}
