/* ==========================================================================
   Geoprof s.r.l. — foglio di stile personalizzato (sopra Bootstrap 5.3)
   Token dal design-system.md, colori adattati al marchio Geoprof
   (blu e arancio del logo, verde della presentazione aziendale).
   ========================================================================== */

/* ---------- Font self-hosted (nessuna chiamata esterna) ---------- */
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url("../fonts/manrope-latin-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url("../fonts/manrope-latin-ext-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("../fonts/inter-latin-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("../fonts/inter-latin-ext-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---------- Token ---------- */
:root {
  /* palette */
  --gs-navy-900: #0B2A3A;
  --gs-navy-800: #103A4F;
  --gs-navy-700: #16506B;
  --gs-blue-600: #15709F;   /* link su bianco (AA) */
  --gs-sky-400:  #1FA0DA;   /* blu del logo, solo decorativo */
  --gs-sky-100:  #E1F2FA;
  --gs-orange-500: #F0901E; /* arancio del logo */
  --gs-orange-400: #F5A94D;
  --gs-orange-100: #FDEFD9;
  --gs-orange-700: #A85A06; /* arancio per testo su chiaro (AA) */
  --gs-green-600: #1F7A55;
  --gs-green-100: #E3F3EA;
  --gs-mint-50:  #F1F8F4;
  --gs-stone-900: #1C2226;
  --gs-stone-600: #56636B;
  --gs-stone-300: #C9D1D5;
  --gs-stone-100: #EEF1F2;
  --gs-white: #FFFFFF;
  --gs-error-600: #B42318;
  --gs-error-50:  #FEF3F2;

  /* semantici */
  --color-bg: var(--gs-white);
  --color-bg-alt: var(--gs-mint-50);
  --color-bg-inverse: var(--gs-navy-900);
  --color-text: var(--gs-stone-900);
  --color-text-muted: var(--gs-stone-600);
  --color-heading: var(--gs-navy-900);
  --color-link: var(--gs-blue-600);
  --color-border: var(--gs-stone-300);
  --color-primary: var(--gs-navy-900);
  --color-primary-hover: var(--gs-navy-700);
  --color-accent: var(--gs-orange-500);
  --color-focus: var(--gs-blue-600);

  /* tipografia */
  --font-heading: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --fs-display: clamp(2.25rem, 1.5rem + 3vw, 3.75rem);
  --fs-h1: clamp(2rem, 1.55rem + 1.8vw, 3rem);
  --fs-h2: clamp(1.625rem, 1.4rem + 1vw, 2.25rem);
  --fs-h3: clamp(1.2rem, 1.1rem + .4vw, 1.4rem);
  --fs-lead: clamp(1.075rem, 1rem + .35vw, 1.25rem);
  --fs-body: 1.0625rem;
  --fs-small: .875rem;

  /* spazi, forme, ombre, movimento */
  --space-section: clamp(4rem, 3rem + 4vw, 6.5rem);
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 2px rgba(11, 42, 58, .08);
  --shadow-md: 0 8px 20px -6px rgba(11, 42, 58, .16);
  --shadow-lg: 0 22px 44px -14px rgba(11, 42, 58, .28);
  --dur-fast: 150ms;
  --dur-base: 250ms;
  --ease-out: cubic-bezier(.2, .7, .2, 1);
  --header-h: 76px;

  /* Bootstrap */
  --bs-body-font-family: var(--font-body);
  --bs-body-font-size: var(--fs-body);
  --bs-body-line-height: 1.65;
  --bs-body-color: var(--color-text);
  --bs-body-bg: var(--color-bg);
  --bs-link-color: var(--color-link);
  --bs-link-color-rgb: 21, 112, 159;
  --bs-link-hover-color: var(--gs-navy-700);
  --bs-link-hover-color-rgb: 22, 80, 107;
  --bs-border-color: var(--color-border);
  --bs-border-radius: var(--radius-md);
  --bs-primary: var(--gs-navy-900);
  --bs-primary-rgb: 11, 42, 58;
}

/* ---------- Base ---------- */
html { scroll-padding-top: calc(var(--header-h) + 16px); }
body { font-feature-settings: "cv11", "ss01"; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 {
  font-family: var(--font-heading);
  color: var(--color-heading);
  font-weight: 750;
  letter-spacing: -.015em;
  line-height: 1.2;
}
p { max-width: 72ch; }
a { text-underline-offset: .18em; text-decoration-thickness: 1px; }
img { max-width: 100%; height: auto; }
address { font-style: normal; }
main:focus { outline: none; }
::selection { background: var(--gs-orange-100); color: var(--gs-navy-900); }

:focus-visible { outline: 3px solid var(--color-focus); outline-offset: 2px; border-radius: 2px; }
.site-footer :focus-visible, .cta-band :focus-visible, .page-hero :focus-visible { outline-color: var(--gs-orange-400); }

.icon { width: 1.25em; height: 1.25em; flex: none; fill: currentColor; vertical-align: -.2em; }
.icon-xs { width: .8em; height: .8em; vertical-align: 0; }

.skip-link {
  position: absolute; left: 1rem; top: -100px; z-index: 2000;
  background: var(--gs-navy-900); color: #fff; padding: .75rem 1rem; border-radius: var(--radius-md);
  font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 1rem; color: #fff; }

.text-muted-2 { color: var(--color-text-muted); }
.small-muted { font-size: var(--fs-small); color: rgba(255, 255, 255, .7); }
.link-button { background: none; border: 0; padding: 0; color: inherit; text-decoration: underline; text-underline-offset: .18em; cursor: pointer; }

/* ---------- Bottoni ---------- */
.btn {
  --bs-btn-font-family: var(--font-body);
  --bs-btn-font-weight: 600;
  --bs-btn-padding-x: 1.25rem;
  --bs-btn-padding-y: .625rem;
  --bs-btn-border-radius: var(--radius-md);
  --bs-btn-border-width: 1.5px;
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 44px;
  transition: background-color var(--dur-fast), color var(--dur-fast), border-color var(--dur-fast), transform var(--dur-fast), box-shadow var(--dur-fast);
}
.btn-lg { --bs-btn-padding-x: 1.6rem; --bs-btn-padding-y: .8rem; --bs-btn-font-size: 1.0625rem; --bs-btn-border-radius: var(--radius-md); min-height: 52px; }
.btn:active { transform: translateY(1px); }
.btn-primary {
  --bs-btn-bg: var(--gs-navy-900); --bs-btn-border-color: var(--gs-navy-900); --bs-btn-color: #fff;
  --bs-btn-hover-bg: var(--gs-navy-700); --bs-btn-hover-border-color: var(--gs-navy-700); --bs-btn-hover-color: #fff;
  --bs-btn-active-bg: var(--gs-navy-800); --bs-btn-active-border-color: var(--gs-navy-800);
  --bs-btn-disabled-bg: var(--gs-navy-700); --bs-btn-disabled-border-color: var(--gs-navy-700);
  --bs-btn-focus-shadow-rgb: 21, 112, 159;
}
.btn-outline-primary {
  --bs-btn-color: var(--gs-navy-900); --bs-btn-border-color: var(--gs-navy-900);
  --bs-btn-hover-bg: var(--gs-mint-50); --bs-btn-hover-color: var(--gs-navy-900); --bs-btn-hover-border-color: var(--gs-navy-900);
  --bs-btn-active-bg: var(--gs-green-100); --bs-btn-active-color: var(--gs-navy-900); --bs-btn-active-border-color: var(--gs-navy-900);
  background: #fff;
}
.btn-accent {
  --bs-btn-bg: var(--gs-orange-500); --bs-btn-border-color: var(--gs-orange-500); --bs-btn-color: var(--gs-navy-900);
  --bs-btn-hover-bg: var(--gs-orange-400); --bs-btn-hover-border-color: var(--gs-orange-400); --bs-btn-hover-color: var(--gs-navy-900);
  --bs-btn-active-bg: var(--gs-orange-500); --bs-btn-active-color: var(--gs-navy-900);
}
.btn-outline-light { --bs-btn-hover-color: var(--gs-navy-900); }

.link-arrow { display: inline-flex; align-items: center; gap: .4rem; font-weight: 600; color: var(--color-link); text-decoration: none; }
.link-arrow .icon { transition: transform var(--dur-fast) var(--ease-out); }
.link-arrow:hover { text-decoration: underline; }
.link-arrow:hover .icon { transform: translateX(3px); }

.btn-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: var(--radius-md);
  border: 1.5px solid var(--color-border); background: #fff; color: var(--gs-navy-900);
}
.btn-icon .icon { width: 1.35rem; height: 1.35rem; }
.btn-icon:hover { background: var(--gs-mint-50); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 1030;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: saturate(160%) blur(8px);
  border-bottom: 1px solid transparent;
  transition: box-shadow var(--dur-base), border-color var(--dur-base);
}
.site-header > .container-xl { min-height: var(--header-h); }
.site-header.is-scrolled { box-shadow: var(--shadow-sm); border-bottom-color: var(--gs-stone-100); }
.site-logo img { height: 58px; width: auto; display: block; }

.nav-list { display: flex; align-items: center; gap: .25rem; list-style: none; margin: 0; padding: 0; }
.main-nav .nav-link {
  display: inline-flex; align-items: center; gap: .35rem;
  padding: .6rem .8rem; border: 0; background: none;
  font-weight: 600; font-size: .98rem; color: var(--gs-navy-900); text-decoration: none;
  border-radius: var(--radius-md); position: relative;
}
.main-nav .nav-link:hover { background: var(--gs-mint-50); }
.main-nav .nav-link.is-active::after, .main-nav .nav-link[aria-current="page"]::after {
  content: ""; position: absolute; left: .8rem; right: .8rem; bottom: .2rem; height: 2px; background: var(--color-accent); border-radius: 2px;
}
.main-nav .dropdown-toggle::after { display: none; }
.main-nav .dropdown-toggle[aria-expanded="true"] .icon { transform: rotate(180deg); }
.main-nav .dropdown-toggle .icon { transition: transform var(--dur-fast); }

.header-phone { align-items: center; gap: .45rem; font-weight: 600; color: var(--gs-navy-900); text-decoration: none; margin-right: .5rem; white-space: nowrap; }
.header-phone .icon { color: var(--gs-orange-500); }
.header-phone:hover { color: var(--gs-navy-700); text-decoration: underline; }

.mega-menu {
  --bs-dropdown-border-color: var(--gs-stone-100);
  --bs-dropdown-border-radius: var(--radius-lg);
  width: min(720px, 92vw);
  padding: 1rem; margin-top: .75rem !important;
  box-shadow: var(--shadow-lg);
}
.mega-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .25rem; }
.mega-item { display: flex; gap: .9rem; padding: .85rem; border-radius: var(--radius-md); text-decoration: none; color: var(--color-text); }
.mega-item:hover, .mega-item:focus-visible { background: var(--gs-mint-50); }
.mega-item[aria-current="page"] { background: var(--gs-mint-50); }
.mega-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: var(--radius-md); flex: none; }
.mega-icon .icon { width: 1.3rem; height: 1.3rem; }
.mega-title { display: block; font-family: var(--font-heading); font-weight: 700; color: var(--gs-navy-900); }
.mega-text { display: block; font-size: var(--fs-small); color: var(--color-text-muted); line-height: 1.45; margin-top: .15rem; }
.mega-footer { border-top: 1px solid var(--gs-stone-100); margin-top: .75rem; padding: .85rem .85rem .25rem; }

/* accenti per area */
.accent-sky    { --accent: var(--gs-sky-400);    --accent-bg: var(--gs-sky-100);    --accent-ink: #0E5F86; }
.accent-orange { --accent: var(--gs-orange-500); --accent-bg: var(--gs-orange-100); --accent-ink: #8A4B00; }
.accent-green  { --accent: var(--gs-green-600);  --accent-bg: var(--gs-green-100);  --accent-ink: var(--gs-green-600); }
.accent-navy   { --accent: var(--gs-navy-700);   --accent-bg: #E3ECF1;              --accent-ink: var(--gs-navy-700); }
.mega-icon, .service-icon { background: var(--accent-bg); color: var(--accent-ink); }

/* menu mobile */
.mobile-menu { --bs-offcanvas-width: min(420px, 100vw); }
.mobile-menu .offcanvas-header { border-bottom: 1px solid var(--gs-stone-100); min-height: var(--header-h); }
.mobile-nav, .mobile-sub { list-style: none; margin: 0; padding: 0; }
.mobile-nav > li { border-bottom: 1px solid var(--gs-stone-100); }
.mobile-nav a, .mobile-toggle {
  display: flex; align-items: center; justify-content: space-between; width: 100%;
  padding: 1rem .25rem; min-height: 52px; border: 0; background: none; text-align: left;
  font-family: var(--font-heading); font-weight: 700; font-size: 1.125rem; color: var(--gs-navy-900); text-decoration: none;
}
.mobile-toggle[aria-expanded="true"] .icon { transform: rotate(180deg); }
.mobile-sub { padding-bottom: .5rem; }
.mobile-sub a { font-family: var(--font-body); font-weight: 500; font-size: 1rem; padding: .7rem .25rem .7rem 1rem; min-height: 44px; }
.mobile-nav a[aria-current="page"] { color: var(--gs-blue-600); }

/* ---------- Breadcrumb ---------- */
.breadcrumb-bar { background: var(--gs-navy-900); padding-top: 1rem; }
.crumbs { display: flex; flex-wrap: wrap; gap: .35rem; list-style: none; margin: 0; padding: 0; font-size: var(--fs-small); }
.crumbs li { color: rgba(255, 255, 255, .78); }
.crumbs li + li::before { content: "›"; margin-right: .35rem; color: rgba(255, 255, 255, .5); }
.crumbs a { color: #fff; text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }

/* ---------- Motivo "curve di livello" ---------- */
.topo-bg {
  position: absolute; inset: 0; pointer-events: none;
  background: url("../img/topo-lines.svg") center / cover no-repeat;
  opacity: .09;
}
.topo-light { background-image: url("../img/topo-lines-dark.svg"); opacity: .06; }

/* ---------- Hero home ---------- */
.hero {
  position: relative; overflow: hidden;
  padding: clamp(2.5rem, 2rem + 3vw, 5rem) 0 clamp(3rem, 2rem + 4vw, 6rem);
  background: linear-gradient(180deg, #fff 0%, var(--gs-mint-50) 100%);
}
.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .8125rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--gs-green-600); margin-bottom: .75rem;
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--color-accent); border-radius: 2px; }
.eyebrow-light { color: var(--gs-orange-400); }
.hero-title { font-size: var(--fs-display); font-weight: 800; letter-spacing: -.025em; line-height: 1.06; margin-bottom: 1.25rem; max-width: 16ch; }
.hero-lead { font-size: var(--fs-lead); color: var(--color-text-muted); max-width: 56ch; }
.hero-proof { list-style: none; padding: 0; margin: 2rem 0 0; display: flex; flex-wrap: wrap; gap: .6rem 1.5rem; font-size: .95rem; font-weight: 600; color: var(--gs-navy-800); }
.hero-proof li { display: inline-flex; align-items: center; gap: .45rem; }
.hero-proof .icon { color: var(--gs-green-600); }
.hero-media { position: relative; border-radius: var(--radius-lg); overflow: visible; isolation: isolate; }
.hero-media picture { display: block; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); aspect-ratio: 4 / 5; }
.hero-media::before {
  content: ""; position: absolute; inset: 1.25rem -1.25rem -1.25rem 1.25rem; z-index: -1;
  border-radius: var(--radius-lg); border: 2px solid var(--gs-orange-500); opacity: .6;
}
.hero-badge {
  position: absolute; left: -1rem; bottom: 1.5rem;
  display: flex; align-items: center; gap: .75rem;
  background: #fff; border-radius: var(--radius-md); box-shadow: var(--shadow-md);
  padding: .8rem 1rem; font-size: .875rem; max-width: 280px; line-height: 1.35;
}
.hero-badge strong { color: var(--gs-navy-900); }
.hero-badge span span { color: var(--color-text-muted); }
.hero-badge-icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--gs-green-100); color: var(--gs-green-600); flex: none; }
.img-cover { width: 100%; height: 100%; object-fit: cover; display: block; }
.img-contain { width: 100%; height: auto; object-fit: contain; display: block; }

/* ---------- Hero pagine interne ---------- */
.page-hero {
  position: relative; overflow: hidden;
  background: radial-gradient(110% 130% at 100% 100%, var(--gs-navy-700) 0%, var(--gs-navy-900) 60%);
  color: #fff;
  padding: clamp(2rem, 1.5rem + 2vw, 3rem) 0 clamp(3rem, 2.5rem + 3vw, 5rem);
}
.breadcrumb-bar + .page-hero { padding-top: clamp(1.5rem, 1rem + 2vw, 2.5rem); }
.page-title { color: #fff; font-size: var(--fs-h1); font-weight: 800; letter-spacing: -.02em; margin-bottom: 1rem; max-width: 22ch; }
.page-lead { font-size: var(--fs-lead); color: rgba(255, 255, 255, .85); max-width: 60ch; margin-bottom: 0; }
.page-hero-media picture { display: block; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); aspect-ratio: 4 / 3; }
.page-title-dark { font-size: var(--fs-h1); font-weight: 800; margin-bottom: 1rem; }

/* ---------- Sezioni ---------- */
.section { padding: var(--space-section) 0; position: relative; }
.section-alt { background: var(--color-bg-alt); }
.section-head { max-width: 720px; margin-bottom: 2.25rem; }
.section-head.text-center .eyebrow { justify-content: center; }
.section-title { font-size: var(--fs-h2); margin-bottom: .75rem; }
.section-lead { font-size: var(--fs-lead); color: var(--color-text-muted); margin-bottom: 0; }
.d-flex > .section-head { margin-bottom: 0; }
.lead-text { font-size: var(--fs-lead); color: var(--gs-stone-900); }

.media-frame { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); background: #fff; }
.media-frame picture { display: block; }
.media-frame .img-cover { aspect-ratio: 4 / 5; max-height: 560px; }
.col-md-5 .media-frame .img-cover, .col-lg-4 .media-frame .img-cover { aspect-ratio: 3 / 4; }
.media-frame-light { padding: .75rem; border: 1px solid var(--gs-stone-100); box-shadow: var(--shadow-sm); }
.media-frame-light picture { border-radius: var(--radius-md); overflow: hidden; }

/* ---------- Card servizio ---------- */
.service-card {
  position: relative; height: 100%;
  display: flex; flex-direction: column; gap: .75rem;
  background: #fff; border: 1px solid var(--gs-stone-100); border-radius: var(--radius-lg);
  padding: 1.75rem 1.5rem 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: transform var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out), border-color var(--dur-base);
}
.service-card::before { content: ""; position: absolute; top: -1px; left: 1.5rem; right: 1.5rem; height: 3px; border-radius: 0 0 3px 3px; background: var(--accent); }
.service-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--gs-stone-300); }
.service-card:focus-within { box-shadow: var(--shadow-md); }
.service-icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 12px; }
.service-icon .icon { width: 1.5rem; height: 1.5rem; }
.service-card-title { font-size: var(--fs-h3); margin: .25rem 0 0; }
.service-card-title a { color: var(--gs-navy-900); text-decoration: none; }
.service-card-title a:focus-visible { outline: none; }
.service-card-title a:focus-visible::after { outline: 3px solid var(--color-focus); outline-offset: 3px; border-radius: var(--radius-lg); }
.service-card p { color: var(--color-text-muted); margin: 0; flex: 1; }
.service-card-more { display: inline-flex; align-items: center; gap: .4rem; font-weight: 600; font-size: .95rem; color: var(--gs-blue-600); }
.service-card:hover .service-card-more .icon { transform: translateX(3px); }
.service-card-more .icon { transition: transform var(--dur-fast); }

/* ---------- Feature ---------- */
.feature-card { background: #fff; border: 1px solid var(--gs-stone-100); border-radius: var(--radius-lg); padding: 1.5rem; height: 100%; box-shadow: var(--shadow-sm); }
.section-alt .feature-card { border-color: transparent; }
.feature-icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--gs-green-100); color: var(--gs-green-600); margin-bottom: 1rem; }
.feature-icon .icon { width: 1.4rem; height: 1.4rem; }
.feature-title { font-size: 1.15rem; margin-bottom: .5rem; }
.feature-card p { color: var(--color-text-muted); }

.feature-list { list-style: none; padding: 0; margin: 1.5rem 0; display: grid; gap: 1.1rem; }
.feature-list li { display: flex; gap: 1rem; align-items: flex-start; }
.feature-list strong { font-family: var(--font-heading); color: var(--gs-navy-900); }
.feature-list-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: #fff; color: var(--gs-green-600); box-shadow: var(--shadow-sm); flex: none; }

.check-list { list-style: none; padding: 0; margin: 0 0 1rem; display: grid; gap: .6rem; }
.check-list li { display: flex; gap: .6rem; align-items: flex-start; }
.check-list .icon { color: var(--gs-green-600); margin-top: .2rem; }
@media (min-width: 768px) { .check-list-2col { grid-template-columns: 1fr 1fr; column-gap: 2rem; } }

.summary-box { background: var(--gs-mint-50); border-radius: var(--radius-lg); padding: 1.75rem; border-left: 4px solid var(--gs-green-600); }

/* ---------- Applicazioni ---------- */
.app-grid { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 576px) { .app-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1200px) { .app-grid { grid-template-columns: repeat(4, 1fr); } }
.app-item {
  display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: .9rem; align-items: center;
  height: 100%; padding: 1.1rem 1.2rem; border-radius: var(--radius-md);
  background: #fff; border: 1px solid var(--gs-stone-100); text-decoration: none; color: var(--color-text);
  transition: border-color var(--dur-fast), box-shadow var(--dur-fast), transform var(--dur-fast);
}
.app-item:hover { border-color: var(--gs-sky-400); box-shadow: var(--shadow-sm); transform: translateY(-2px); }
.app-icon { grid-row: span 2; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--gs-sky-100); color: #0E5F86; }
.app-title { font-weight: 650; color: var(--gs-navy-900); line-height: 1.3; }
.app-service { font-size: .8125rem; color: var(--color-text-muted); }

/* ---------- Processo ---------- */
.process { list-style: none; padding: 0; margin: 0; display: grid; gap: 1.5rem; counter-reset: step; }
@media (min-width: 768px) { .process { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1200px) { .process { grid-template-columns: repeat(4, 1fr); } }
.process-step { position: relative; background: #fff; border-radius: var(--radius-lg); padding: 1.5rem; border: 1px solid var(--gs-stone-100); }
.section-alt .process-step { border-color: transparent; box-shadow: var(--shadow-sm); }
.process-top { display: flex; align-items: center; gap: .75rem; margin-bottom: 1rem; }
.process-num { font-family: var(--font-heading); font-weight: 800; font-size: 1.75rem; color: var(--gs-orange-700); line-height: 1; font-variant-numeric: tabular-nums; }
.process-icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--gs-sky-100); color: #0E5F86; margin-left: auto; }
.process-title { font-size: 1.15rem; margin-bottom: .5rem; }
.process-step p { color: var(--color-text-muted); margin: 0; }
@media (min-width: 1200px) {
  .process-step:not(:last-child)::after {
    content: ""; position: absolute; top: 2.3rem; right: -1.5rem; width: 1.5rem; height: 2px;
    background: repeating-linear-gradient(90deg, var(--gs-stone-300) 0 4px, transparent 4px 8px);
  }
}

/* ---------- Fascia NTC ---------- */
.ntc-band { background: linear-gradient(135deg, var(--gs-green-100), var(--gs-sky-100)); border-radius: 24px; padding: clamp(1.5rem, 1rem + 3vw, 3.5rem); }

/* ---------- Metodi MASW/HVSR ---------- */
.method-card { position: relative; height: 100%; background: #fff; border-radius: var(--radius-lg); border: 1px solid var(--gs-stone-100); padding: 1.5rem; box-shadow: var(--shadow-sm); }
.method-card::before { content: ""; position: absolute; top: -1px; left: 1.5rem; right: 1.5rem; height: 3px; border-radius: 0 0 3px 3px; background: var(--gs-green-600); }
.method-card .media-frame picture { aspect-ratio: 16 / 10; background: #fff; }
.method-card .media-frame .img-contain { height: 100%; }
.method-abbr { font-family: var(--font-heading); font-weight: 800; font-size: 1.75rem; color: var(--gs-green-600); margin: 0; letter-spacing: .02em; }
.method-title { font-size: 1.1rem; color: var(--color-text-muted); font-weight: 600; margin-bottom: 1rem; }

/* ---------- Clienti / team ---------- */
.client-grid { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.client-item { display: flex; align-items: center; gap: 1rem; background: #fff; border-radius: var(--radius-lg); padding: 1.25rem 1.5rem; font-family: var(--font-heading); font-weight: 700; font-size: 1.1rem; color: var(--gs-navy-900); box-shadow: var(--shadow-sm); }
.client-icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 12px; background: var(--gs-orange-100); color: #8A4B00; flex: none; }

.person-card { text-align: center; background: #fff; border-radius: var(--radius-lg); padding: 2rem 1.5rem; box-shadow: var(--shadow-sm); height: 100%; }
.person-avatar {
  display: grid; place-items: center; width: 84px; height: 84px; margin: 0 auto 1rem; border-radius: 50%;
  background: linear-gradient(135deg, var(--gs-navy-700), var(--gs-navy-900)); color: #fff;
  font-family: var(--font-heading); font-weight: 800; font-size: 1.6rem; letter-spacing: .02em;
  box-shadow: 0 0 0 4px #fff, 0 0 0 6px var(--gs-orange-500);
}
.person-name { font-size: 1.15rem; margin-bottom: .15rem; }
.person-role { color: var(--color-text-muted); font-size: .95rem; margin: 0 auto .75rem; }
.person-phone { display: inline-flex; align-items: center; gap: .4rem; font-weight: 600; text-decoration: none; min-height: 44px; }
.person-phone:hover { text-decoration: underline; }

/* ---------- CTA band ---------- */
.cta-band { position: relative; overflow: hidden; background: var(--gs-navy-900); color: #fff; padding: clamp(3.5rem, 3rem + 3vw, 5.5rem) 0; }
.cta-band .topo-bg { opacity: .1; }
.cta-title { color: #fff; font-size: var(--fs-h2); margin-bottom: .75rem; }
.cta-lead { color: rgba(255, 255, 255, .82); font-size: var(--fs-lead); margin: 0; }
.cta-people { list-style: none; padding: 0; margin: 0; display: grid; gap: .75rem; }
.cta-people li {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .25rem 1rem;
  background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); border-radius: var(--radius-md); padding: .9rem 1.1rem;
}
.cta-person { font-weight: 600; }
.cta-people a { color: var(--gs-orange-400); font-weight: 700; text-decoration: none; display: inline-flex; align-items: center; gap: .4rem; min-height: 32px; }
.cta-people a:hover { text-decoration: underline; }

/* ---------- Moduli ---------- */
.section-form { scroll-margin-top: var(--header-h); }
.section-form:focus { outline: none; }
.form-panel { background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-md); padding: clamp(1.25rem, 1rem + 2vw, 2.5rem); border: 1px solid var(--gs-stone-100); }
.gp-form .form-label { font-weight: 600; color: var(--gs-navy-900); margin-bottom: .35rem; }
.gp-form .req { color: var(--gs-error-600); }
.gp-form .form-control, .gp-form .form-select { min-height: 48px; border-width: 1.5px; border-color: var(--gs-stone-300); border-radius: var(--radius-md); font-size: 1rem; }
.gp-form textarea.form-control { min-height: 140px; }
.gp-form .form-control:focus, .gp-form .form-select:focus, .gp-form .form-check-input:focus {
  border-color: var(--gs-blue-600); box-shadow: 0 0 0 .25rem rgba(21, 112, 159, .2);
}
.gp-form [aria-invalid="true"] { border-color: var(--gs-error-600) !important; }
.gp-form .form-check-input { width: 1.25em; height: 1.25em; margin-top: .2em; border-width: 1.5px; border-color: var(--gs-stone-600); }
.gp-form .form-check-input:checked { background-color: var(--gs-navy-900); border-color: var(--gs-navy-900); }
.gp-form .form-check-label { font-size: .95rem; }
.form-hint { font-size: var(--fs-small); color: var(--color-text-muted); margin: .35rem 0 0; }
.field-error { display: flex; gap: .35rem; align-items: flex-start; color: var(--gs-error-600); font-size: var(--fs-small); font-weight: 600; margin: .35rem 0 0; }
.field-error .icon { margin-top: .1rem; }
.form-errors { background: var(--gs-error-50); border: 1.5px solid var(--gs-error-600); color: var(--gs-error-600); border-radius: var(--radius-md); padding: 1rem 1.25rem; margin-bottom: 1.5rem; }
.form-errors a { color: var(--gs-error-600); font-weight: 600; }
.form-errors:focus { outline: 3px solid var(--gs-error-600); outline-offset: 2px; }
.hp-field { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
[data-submit][aria-busy="true"] { opacity: .8; pointer-events: none; }
[data-submit][aria-busy="true"] .icon { animation: gp-pulse 1s infinite; }
@keyframes gp-pulse { 50% { opacity: .3; } }

.contact-card { background: #fff; border-radius: var(--radius-lg); padding: 1.5rem; box-shadow: var(--shadow-sm); border: 1px solid var(--gs-stone-100); }
.contact-card-title { font-size: 1.15rem; margin-bottom: 1rem; }
.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; }
.contact-list li { display: flex; gap: .85rem; align-items: flex-start; }
.contact-icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--gs-orange-100); color: #8A4B00; flex: none; }
.contact-label { display: block; font-size: var(--fs-small); color: var(--color-text-muted); }
.contact-list a { font-weight: 600; text-decoration: none; word-break: break-word; }
.contact-list a:hover { text-decoration: underline; }
.info-box { background: var(--gs-mint-50); border-radius: var(--radius-lg); padding: 1.25rem 1.5rem; }
.info-box h2 { display: flex; align-items: center; gap: .5rem; }
.info-box ul { padding-left: 1.1rem; color: var(--color-text-muted); font-size: .95rem; }
.info-box li + li { margin-top: .35rem; }

/* ---------- Grazie / 404 ---------- */
.thanks { min-height: 55vh; display: flex; align-items: center; background: var(--gs-mint-50); }
.thanks-box { max-width: 640px; }
.thanks-box p { margin-left: auto; margin-right: auto; }
.thanks-icon { display: inline-grid; place-items: center; width: 80px; height: 80px; border-radius: 50%; background: var(--gs-green-100); color: var(--gs-green-600); margin-bottom: 1.5rem; }
.thanks-icon .icon { width: 2.5rem; height: 2.5rem; }
.error-code { font-family: var(--font-heading); font-weight: 800; font-size: clamp(4rem, 3rem + 6vw, 7rem); line-height: 1; color: var(--gs-orange-700); margin: 0 auto .5rem; }

/* ---------- Progetti ---------- */
.filter-bar { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1rem; }
.chip { display: inline-flex; align-items: center; min-height: 40px; padding: .4rem 1rem; border-radius: 999px; border: 1.5px solid var(--gs-stone-300); color: var(--gs-navy-900); text-decoration: none; font-weight: 600; font-size: .95rem; }
.chip:hover { border-color: var(--gs-navy-900); }
.chip.is-active { background: var(--gs-navy-900); border-color: var(--gs-navy-900); color: #fff; }
.project-card { position: relative; height: 100%; background: #fff; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--gs-stone-100); box-shadow: var(--shadow-sm); transition: box-shadow var(--dur-base), transform var(--dur-base); }
.project-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.project-media picture { display: block; aspect-ratio: 3 / 2; }
.project-body { padding: 1.25rem 1.5rem 1.5rem; }
.project-title { font-size: 1.15rem; margin: .6rem 0 .35rem; }
.project-title a { color: var(--gs-navy-900); text-decoration: none; }
.project-meta { font-size: var(--fs-small); color: var(--color-text-muted); }
.tag { display: inline-block; padding: .2rem .6rem; border-radius: 999px; background: var(--accent-bg); color: var(--accent-ink); font-size: .8125rem; font-weight: 700; }

/* ---------- Testi lunghi ---------- */
.prose { max-width: 760px; }
.prose h2 { font-size: 1.4rem; margin-top: 2.25rem; margin-bottom: .75rem; }
.prose p, .prose li { color: var(--gs-stone-900); }
.facts { display: grid; grid-template-columns: minmax(120px, auto) 1fr; gap: .6rem 1.25rem; margin: 0; }
.facts dt { font-weight: 600; color: var(--color-text-muted); }
.facts dd { margin: 0; }

/* ---------- Footer ---------- */
.site-footer { position: relative; overflow: hidden; background: #081F2B; color: rgba(255, 255, 255, .8); padding: 4rem 0 2rem; font-size: .95rem; }
.site-footer .topo-bg { opacity: .05; }
.footer-logo img { width: 190px; height: auto; }
.footer-claim { margin: 1.25rem 0; max-width: 34ch; }
.footer-title { font-family: var(--font-body); font-size: .8125rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--gs-orange-400); margin-bottom: 1rem; }
.footer-links, .footer-contacts, .footer-legal { list-style: none; padding: 0; margin: 0; }
.footer-links li + li { margin-top: .5rem; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-links a { display: inline-block; padding: .15rem 0; }
.footer-contacts { display: grid; gap: .9rem; }
.footer-contacts li { display: flex; gap: .7rem; align-items: flex-start; }
.footer-contacts .icon { color: var(--gs-orange-400); margin-top: .2rem; }
.footer-social { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: rgba(255, 255, 255, .08); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid rgba(255, 255, 255, .12); font-size: var(--fs-small); color: rgba(255, 255, 255, .7); }
.footer-bottom p { max-width: none; }
.footer-legal { display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; }
.footer-legal .link-button { color: #fff; text-decoration: none; }
.footer-legal .link-button:hover { text-decoration: underline; }

/* ---------- CTA fissa mobile ---------- */
.sticky-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 1020;
  display: grid; grid-template-columns: 1fr 1.6fr; gap: .5rem;
  padding: .6rem 1rem calc(.6rem + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, .97); box-shadow: 0 -6px 18px rgba(11, 42, 58, .12);
  transform: translateY(110%); transition: transform var(--dur-base) var(--ease-out);
}
.sticky-cta.is-visible { transform: none; }

/* ---------- Banner cookie ---------- */
.consent { position: fixed; z-index: 1090; left: 1rem; right: 1rem; bottom: 1rem; display: flex; justify-content: center; }
.consent-inner { position: relative; max-width: 720px; width: 100%; background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); border: 1px solid var(--gs-stone-100); padding: 1.25rem 3rem 1.25rem 1.5rem; }
.consent-title { font-family: var(--font-heading); font-weight: 750; color: var(--gs-navy-900); margin-bottom: .35rem; }
.consent-inner p { font-size: .95rem; }
.consent-actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.consent-actions .btn { flex: 1 1 160px; }
.consent-close { position: absolute; top: .5rem; right: .5rem; width: 44px; height: 44px; border: 0; background: none; color: var(--gs-stone-600); border-radius: var(--radius-md); }

/* ---------- Responsive ---------- */
@media (max-width: 991.98px) {
  :root { --header-h: 68px; }
  .site-logo img { height: 42px; }
  .hero-media { max-width: 460px; margin: 0 auto; }
  .hero-media::before { inset: .75rem -.75rem -.75rem .75rem; }
  .hero-badge { left: .75rem; right: .75rem; bottom: .75rem; max-width: none; }
  .page-hero-media { max-width: 560px; }
}
@media (max-width: 575.98px) {
  .mega-grid { grid-template-columns: 1fr; }
  .hero-title { max-width: none; }
  .btn-lg { width: 100%; }
  .hero .d-flex.gap-3 > .btn, .page-hero .d-flex.gap-3 > .btn, .cta-band .d-flex.gap-3 > .btn { flex: 1 1 100%; }
  .facts { grid-template-columns: 1fr; gap: .1rem; }
  .facts dd { margin-bottom: .6rem; }
  body.has-sticky-cta .site-footer { padding-bottom: 6rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

@media print {
  .site-header, .site-footer, .sticky-cta, .consent, .cta-band, .skip-link { display: none !important; }
  .page-hero { background: none; color: #000; }
  .page-title, .page-lead { color: #000; }
}

.container-xl { --bs-gutter-x: 2rem; }
@media (min-width: 768px) { .container-xl { --bs-gutter-x: 3rem; } }

/* ==========================================================================
   v2 — menu per aree, pagine area, footer credits, animazioni
   ========================================================================== */

/* menu desktop più compatto per 7 voci */
@media (min-width: 1200px) {
  .main-nav .nav-link { padding: .55rem .6rem; font-size: .94rem; }
  .main-nav .nav-link.is-active::after, .main-nav .nav-link[aria-current="page"]::after { left: .6rem; right: .6rem; }
}
@media (max-width: 1199.98px) {
  :root { --header-h: 68px; }
  .site-logo img { height: 46px; }
}
.mega-menu { width: min(760px, 94vw); }
.mega-lead { display: flex; gap: .9rem; padding: .85rem; border-radius: var(--radius-md); text-decoration: none; color: var(--color-text); background: var(--gs-mint-50); }
.mega-lead:hover, .mega-lead:focus-visible { background: var(--gs-green-100); }
.mega-label { font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--gs-green-600); margin: 1rem .85rem .35rem; }

/* pagine area: griglia attività */
.activity-grid { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; grid-template-columns: 1fr; counter-reset: act; }
@media (min-width: 768px) { .activity-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1200px) { .activity-grid { grid-template-columns: repeat(3, 1fr); } }
.activity-item {
  position: relative; display: flex; align-items: center; gap: 1rem;
  background: #fff; border: 1px solid var(--gs-stone-100); border-radius: var(--radius-lg);
  padding: 1.25rem 1.25rem 1.25rem 1.1rem; box-shadow: var(--shadow-sm); overflow: hidden;
  transition: transform var(--dur-base) var(--ease-out), box-shadow var(--dur-base), border-color var(--dur-base);
}
.activity-item::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--accent, var(--gs-green-600)); transform: scaleY(0); transform-origin: bottom; transition: transform 400ms var(--ease-out); }
.activity-item:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: var(--gs-stone-300); }
.activity-item:hover::before { transform: scaleY(1); }
.activity-num { position: absolute; right: .9rem; top: .6rem; font-family: var(--font-heading); font-weight: 800; font-size: .8rem; color: var(--gs-stone-300); }
.activity-icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 12px; flex: none; background: var(--accent-bg); color: var(--accent-ink); }
.activity-icon .icon { width: 1.35rem; height: 1.35rem; }
.activity-text { font-weight: 600; color: var(--gs-navy-900); line-height: 1.4; padding-right: 1.25rem; }

/* 5 aree in una riga su schermi larghi */
@media (min-width: 1400px) { .area-row > .col-xxl { flex: 1 0 0; } }

/* footer credits */
.footer-credits { margin: 1rem 0 0; font-size: .8125rem; color: rgba(255, 255, 255, .6); max-width: none; }
.footer-credits a { color: var(--gs-orange-400) !important; font-weight: 600; }

/* ---------- Animazioni ---------- */
@keyframes gp-fade-up { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes gp-media-in { from { opacity: 0; transform: translateY(24px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes gp-frame-in { from { opacity: 0; transform: translate(-12px, -12px); } to { opacity: .6; transform: none; } }
@keyframes gp-scan { 0% { transform: translateY(-10%); opacity: 0; } 8% { opacity: 1; } 55% { opacity: 1; } 65% { transform: translateY(110%); opacity: 0; } 100% { transform: translateY(110%); opacity: 0; } }
@keyframes gp-drift { from { transform: translate3d(0, 0, 0) scale(1.08); } to { transform: translate3d(-3%, 2%, 0) scale(1.08); } }
@keyframes gp-badge-in { from { opacity: 0; transform: translateX(-16px); } to { opacity: 1; transform: none; } }
@keyframes gp-pulse-ring { 0% { box-shadow: 0 0 0 0 rgba(31, 122, 85, .35); } 70% { box-shadow: 0 0 0 12px rgba(31, 122, 85, 0); } 100% { box-shadow: 0 0 0 0 rgba(31, 122, 85, 0); } }

@media (prefers-reduced-motion: no-preference) {
  /* ingresso hero */
  .hero-anim { opacity: 0; animation: gp-fade-up 700ms var(--ease-out) forwards; animation-delay: calc(var(--d, 0) * 110ms + 80ms); }
  .hero-anim-media picture { animation: gp-media-in 900ms var(--ease-out) 200ms both; }
  .hero-anim-media::before { animation: gp-frame-in 900ms var(--ease-out) 650ms both; }
  .hero-anim-media .hero-badge { animation: gp-badge-in 600ms var(--ease-out) 1000ms both; }
  .hero-badge-icon { animation: gp-pulse-ring 2.4s ease-out 1.6s 3; }

  /* linea di scansione "georadar" sulla foto hero */
  .scan-line {
    position: absolute; left: 0; right: 0; top: 0; height: 100%; pointer-events: none; z-index: 1;
    border-radius: var(--radius-lg); overflow: hidden;
  }
  .scan-line::after {
    content: ""; position: absolute; left: 0; right: 0; top: 0; height: 90px;
    background: linear-gradient(180deg, rgba(31, 160, 218, 0) 0%, rgba(31, 160, 218, .22) 70%, rgba(240, 144, 30, .9) 98%, rgba(240, 144, 30, 0) 100%);
    animation: gp-scan 6s cubic-bezier(.45, 0, .55, 1) 1.4s infinite;
    opacity: 0;
  }

  /* curve di livello in lento movimento */
  .topo-drift { animation: gp-drift 40s ease-in-out infinite alternate; will-change: transform; }

  /* rivelazione allo scroll (attiva solo con JavaScript) */
  .js .reveal { opacity: 0; transform: translateY(22px); transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out); transition-delay: calc(var(--i, 0) * 80ms); }
  .js .reveal.is-visible { opacity: 1; transform: none; }

  /* fasi del processo: connettore che si disegna */
  @media (min-width: 1200px) {
    .js .process-step:not(:last-child)::after { transform: scaleX(0); transform-origin: left; transition: transform 600ms var(--ease-out); transition-delay: calc(var(--i, 0) * 80ms + 500ms); }
    .js .process-step.is-visible:not(:last-child)::after { transform: scaleX(1); }
  }

  /* icone delle card: piccolo sollevamento */
  .service-icon, .feature-icon, .app-icon, .activity-icon { transition: transform var(--dur-base) var(--ease-out); }
  .service-card:hover .service-icon, .feature-card:hover .feature-icon, .app-item:hover .app-icon, .activity-item:hover .activity-icon { transform: translateY(-3px) rotate(-4deg); }

  /* bottone primario: riflesso al passaggio */
  .btn-primary, .btn-accent { position: relative; overflow: hidden; }
  .btn-primary::after, .btn-accent::after {
    content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%;
    background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .28), transparent);
    transform: skewX(-20deg); transition: left 600ms var(--ease-out); pointer-events: none;
  }
  .btn-primary:hover::after, .btn-accent:hover::after { left: 120%; }
}
.main-nav .nav-link, .site-header .btn { white-space: nowrap; }
.nav-list { flex-wrap: nowrap; }
.main-nav { min-width: 0; }

/* ==========================================================================
   v3 — Prove di carico su piastra
   ========================================================================== */

/* menu Geotecnica: due voci principali affiancate */
.mega-top { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
.mega-lead[aria-current="page"] { background: var(--gs-green-100); }

/* attività collegate a una pagina */
.activity-item.has-link { border-color: var(--accent); }
.activity-item.has-link::before { transform: scaleY(1); }
a.activity-text { text-decoration: none; color: var(--gs-blue-600); }
a.activity-text:hover { text-decoration: underline; }
.activity-arrow { width: 1em; height: 1em; }

/* blocco in evidenza (immagine + testo) */
.feature-split { background: #fff; border-radius: 24px; overflow: hidden; box-shadow: var(--shadow-md); border: 1px solid var(--gs-stone-100); }
.feature-split-media { height: 100%; min-height: 280px; }
.feature-split-media picture { display: block; height: 100%; }
.feature-split-media .img-cover { aspect-ratio: auto; max-height: none; min-height: 280px; }
.feature-split-body { padding: clamp(1.5rem, 1rem + 3vw, 3.25rem); }
.mini-kpis { list-style: none; padding: 0; margin: 1.5rem 0; display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.mini-kpis li { background: var(--gs-mint-50); border-radius: var(--radius-md); padding: 1rem 1.1rem; border-left: 3px solid var(--gs-orange-500); }
.mini-kpi-value { display: block; font-family: var(--font-heading); font-weight: 800; font-size: 1.35rem; color: var(--gs-navy-900); }
.mini-kpi-label { display: block; font-size: var(--fs-small); color: var(--color-text-muted); line-height: 1.4; }

/* scelta del metodo */
.method-switch { display: grid; gap: 1rem; }
.method-pick {
  display: flex; align-items: center; gap: 1rem; padding: 1.25rem 1.4rem;
  background: #fff; border-radius: var(--radius-lg); border: 1px solid var(--gs-stone-100); box-shadow: var(--shadow-sm);
  text-decoration: none; color: var(--color-text); position: relative; overflow: hidden;
  transition: transform var(--dur-base) var(--ease-out), box-shadow var(--dur-base);
}
.method-pick::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--accent); }
.method-pick:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.method-pick-icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 12px; background: var(--accent-bg); color: var(--accent-ink); flex: none; }
.method-pick-icon .icon { width: 1.5rem; height: 1.5rem; }
.method-pick-abbr { display: block; font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-ink); }
.method-pick-title { display: block; font-family: var(--font-heading); font-weight: 750; font-size: 1.1rem; color: var(--gs-navy-900); line-height: 1.3; }
.method-pick-std { display: block; font-size: var(--fs-small); color: var(--color-text-muted); }
.method-pick-arrow { margin-left: auto; width: 1.5rem; height: 1.5rem; color: var(--accent-ink); transition: transform var(--dur-base) var(--ease-out); }
.method-pick:hover .method-pick-arrow { transform: translateY(3px); }

/* parametri, strumentazione, formula, soglie */
.param-list { display: grid; gap: .75rem; margin: 0; }
.param-list > div { display: flex; gap: 1rem; align-items: baseline; background: #fff; border-radius: var(--radius-md); padding: .8rem 1rem; box-shadow: var(--shadow-sm); }
.param-list dt { font-family: var(--font-heading); font-weight: 800; color: var(--gs-navy-900); min-width: 4.5rem; }
.param-list dd { margin: 0; color: var(--color-text-muted); }
.equip-card { background: #fff; border-radius: var(--radius-lg); padding: 1.5rem; box-shadow: var(--shadow-sm); border: 1px solid var(--gs-stone-100); }
.equip-title { display: flex; align-items: center; gap: .5rem; text-transform: uppercase; letter-spacing: .06em; font-size: .8125rem; color: var(--gs-green-600); margin-bottom: 1rem; }
.equip-card .check-list li { font-size: .95rem; }
.formula { margin: 1.75rem 0 0; background: var(--gs-navy-900); color: #fff; border-radius: var(--radius-lg); padding: 1.5rem 1.75rem; position: relative; overflow: hidden; }
.formula::after { content: ""; position: absolute; inset: 0; background: url("../img/topo-lines.svg") center / cover no-repeat; opacity: .07; pointer-events: none; }
.formula-expr { font-family: var(--font-heading); font-weight: 800; font-size: clamp(1.35rem, 1.1rem + 1.2vw, 2rem); letter-spacing: .01em; margin: 0 0 1rem; color: #fff; }
.formula-legend { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: .4rem 1.5rem; margin: 0; font-size: .9rem; }
.formula-legend > div { display: flex; gap: .5rem; }
.formula-legend dt { color: var(--gs-orange-400); font-weight: 700; min-width: 3.2rem; }
.formula-legend dd { margin: 0; color: rgba(255, 255, 255, .85); }
.threshold-card { height: 100%; background: var(--gs-mint-50); border-radius: var(--radius-lg); padding: 1.25rem 1.5rem; border-left: 4px solid var(--gs-green-600); }
.threshold-key { font-family: var(--font-heading); font-weight: 800; font-size: 1.4rem; color: var(--gs-navy-900); margin-bottom: .35rem; }
.std-row { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1rem; margin-top: 2rem; }
.std-label { font-size: .8125rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--color-text-muted); }
.std-list { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem; padding: 0; margin: 0; }
.std-list li { padding: .3rem .8rem; border-radius: 999px; border: 1.5px solid var(--gs-stone-300); font-size: .875rem; font-weight: 600; color: var(--gs-navy-900); background: #fff; }

/* prove eseguite */
.case-card { background: #fff; border-radius: 24px; padding: clamp(1.25rem, 1rem + 2vw, 2.5rem); box-shadow: var(--shadow-md); border: 1px solid var(--gs-stone-100); }
.case-head { margin-bottom: 1.5rem; }
.case-title { font-size: clamp(1.3rem, 1.15rem + .6vw, 1.6rem); margin: .75rem 0 .5rem; }
.case-meta { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem 1.5rem; padding: 0; margin: 0; color: var(--color-text-muted); font-size: .95rem; }
.case-meta li { display: inline-flex; align-items: center; gap: .4rem; }
.case-meta .icon { color: var(--gs-orange-700); }
.kpi-row { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 768px) { .kpi-row.kpi-3 { grid-template-columns: repeat(3, 1fr); } .kpi-row.kpi-4 { grid-template-columns: repeat(4, 1fr); } }
.kpi { position: relative; background: var(--gs-navy-900); color: #fff; border-radius: var(--radius-lg); padding: 1.1rem 1.25rem 1.2rem; overflow: hidden; }
.kpi::after { content: ""; position: absolute; left: 1.25rem; right: 1.25rem; bottom: 0; height: 3px; background: var(--gs-orange-500); border-radius: 3px 3px 0 0; }
.kpi-label { display: block; font-size: .8125rem; color: rgba(255, 255, 255, .75); }
.kpi-value { display: block; font-family: var(--font-heading); font-weight: 800; font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.1rem); line-height: 1.15; font-variant-numeric: tabular-nums; }
.kpi-unit { display: block; font-size: .8125rem; color: var(--gs-orange-400); font-weight: 600; }

/* grafico carico–cedimento */
.chart-card { background: var(--gs-mint-50); border-radius: var(--radius-lg); padding: 1.25rem 1.25rem 1rem; }
.chart-title { font-weight: 700; color: var(--gs-navy-900); margin-bottom: .75rem; }
.plate-chart { width: 100%; height: auto; display: block; }
.pc-grid { stroke: #D5DEE2; stroke-width: 1; }
.pc-tick { font-size: 12px; fill: var(--gs-stone-600); font-family: var(--font-body); }
.pc-axis { font-size: 13px; fill: var(--gs-navy-900); font-weight: 600; font-family: var(--font-body); }
.pc-line { fill: none; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.pc-line.pc-c1 { stroke: var(--gs-navy-700); }
.pc-line.pc-un { stroke: var(--gs-stone-600); stroke-dasharray: .02 .015; stroke-width: 2; }
.pc-line.pc-c2 { stroke: var(--gs-orange-500); }
.pc-dot { stroke: #fff; stroke-width: 2; }
.pc-dot.pc-c1 { fill: var(--gs-navy-700); }
.pc-dot.pc-un { fill: var(--gs-stone-600); }
.pc-dot.pc-c2 { fill: var(--gs-orange-500); }
.pc-label { font-size: 13px; font-weight: 700; font-family: var(--font-body); }
.pc-label.pc-c1 { fill: var(--gs-navy-700); }
.pc-label.pc-c2 { fill: var(--gs-orange-700); }
.pc-label.pc-un { fill: var(--gs-stone-600); }
.readings { margin-top: 1rem; background: #fff; border: 1px solid var(--gs-stone-100); border-radius: var(--radius-md); padding: .75rem 1rem; }
.readings summary { cursor: pointer; font-weight: 600; color: var(--gs-blue-600); min-height: 32px; display: flex; align-items: center; }
.readings table { margin-top: .75rem; font-variant-numeric: tabular-nums; }

/* barra dei valori Evd */
.evd-scale { padding: 2.25rem .25rem .5rem; }
.evd-track { position: relative; height: 18px; border-radius: 999px; background: var(--gs-green-100); }
.evd-fail { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 999px 0 0 999px; background: repeating-linear-gradient(135deg, #F6D5CF 0 6px, #FBE9E6 6px 12px); }
.evd-range { position: absolute; top: 3px; bottom: 3px; border-radius: 999px; background: linear-gradient(90deg, var(--gs-orange-400), var(--gs-orange-500)); box-shadow: 0 2px 6px rgba(240, 144, 30, .35); transform-origin: left; }
.evd-threshold, .evd-mean { position: absolute; top: -8px; bottom: -8px; width: 0; border-left: 2px solid var(--gs-error-600); }
.evd-mean { border-left-color: var(--gs-navy-900); }
.evd-threshold span, .evd-mean span { position: absolute; bottom: calc(100% + 4px); left: 0; white-space: nowrap; font-size: .75rem; font-weight: 700; padding: .1rem .45rem; }
.evd-threshold span { color: var(--gs-error-600); background: #fff; border: 1px solid #F1C4BD; transform: translateX(calc(-100% + 1px)); border-radius: 999px 0 0 999px; }
.evd-mean span { color: #fff; background: var(--gs-navy-900); transform: translateX(-1px); border-radius: 0 999px 999px 0; }
.evd-ticks { position: relative; height: 1.4rem; margin-top: .4rem; font-size: .75rem; color: var(--gs-stone-600); font-variant-numeric: tabular-nums; }
.evd-ticks span { position: absolute; transform: translateX(-50%); }
.evd-ticks span:first-child { transform: none; }
.evd-ticks span:last-child { transform: translateX(-100%); }
.evd-unit { font-size: .8125rem; color: var(--color-text-muted); margin: .25rem 0 0; }
.evd-dots { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; margin-top: 1rem; }
.evd-dot { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; }
.evd-dot .icon { width: .95rem; height: .95rem; }
.evd-dot.is-ok { background: var(--gs-green-100); color: var(--gs-green-600); }
.evd-dot.is-low { background: var(--gs-orange-100); color: #8A4B00; }
.evd-dots-label { margin-left: .5rem; font-weight: 700; color: var(--gs-navy-900); font-size: .95rem; }
.case-result { margin-top: 1.25rem; padding: 1rem 1.25rem; border-left: 3px solid var(--gs-green-600); background: var(--gs-mint-50); border-radius: 0 var(--radius-md) var(--radius-md) 0; }
.case-photo { margin: 0; }
.case-photo .media-frame .img-cover { aspect-ratio: 4 / 3; }
.case-photo figcaption { font-size: var(--fs-small); color: var(--color-text-muted); margin-top: .5rem; }

@media (max-width: 991.98px) {
  .feature-split-media .img-cover { aspect-ratio: 16 / 10; min-height: 0; }
}
@media (max-width: 575.98px) {
  .mega-top { grid-template-columns: 1fr; }
  .mini-kpis { grid-template-columns: 1fr; }
  .pc-tick { font-size: 24px; }
  .pc-axis, .pc-label { font-size: 26px; }
  .kpi-row.kpi-3 .kpi:last-child { grid-column: 1 / -1; }
}

/* animazioni della pagina (solo se l'utente non ha ridotto il movimento) */
@keyframes gp-grow-x { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes gp-pop { from { opacity: 0; transform: scale(.6); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: no-preference) {
  .js .chart-card .pc-line { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1400ms var(--ease-out); }
  .js .chart-card .pc-line.pc-un { stroke-dasharray: .02 .015; stroke-dashoffset: 0; opacity: 0; transition: opacity 600ms ease 900ms; }
  .js .chart-card .pc-line.pc-c2 { transition-delay: 1100ms; }
  .js .chart-card .pc-dot { opacity: 0; transition: opacity 400ms ease 1200ms; }
  .js .chart-card.is-visible .pc-line { stroke-dashoffset: 0; }
  .js .chart-card.is-visible .pc-line.pc-un, .js .chart-card.is-visible .pc-dot { opacity: 1; }
  .js .chart-card .evd-range { transform: scaleX(0); }
  .js .chart-card.is-visible .evd-range { animation: gp-grow-x 1100ms var(--ease-out) 250ms forwards; }
  .js .chart-card .evd-dot { opacity: 0; }
  .js .chart-card.is-visible .evd-dot { animation: gp-pop 380ms var(--ease-out) forwards; animation-delay: calc(900ms + var(--n, 0) * 70ms); }
  .method-pick-icon { transition: transform var(--dur-base) var(--ease-out); }
  .method-pick:hover .method-pick-icon { transform: translateY(-3px) rotate(-4deg); }
}
