/* =========================================================
   SA-TEC — Design System v5 "Circuito"
   Light theme built directly from the real logo palette: the
   brand blue of the wordmark, the two greys of the circuit
   diagram (filled nodes / connecting lines), on a white canvas.
   Blue is reserved for brand voice — logo, links, CTAs, active
   states. The greys carry structure — borders, dividers, muted
   labels — echoing how the logo itself uses grey for the
   circuit graphic and blue only for the "SA-TEC" wordmark.
   ========================================================= */

/* ---------- Tokens ---------- */
:root {
  /* Brand blue — from the client's logo, used for brand voice only */
  --brand-blue: #1A468C;
  --brand-blue-deep: #12315F;
  --brand-blue-light: #4C6FA8;
  --brand-sky: #3E7CC2;
  --brand-blue-soft: rgba(26, 70, 140, 0.08);
  --brand-blue-soft-border: rgba(26, 70, 140, 0.25);
  --white: #FFFFFF;

  /* The two circuit greys from the logo — structure, not brand voice */
  --slate: #4F5A6D;
  --steel: #9DA6AC;

  /* Canvas */
  --surface: #FFFFFF;
  --surface-tint: #F5F7F8;
  --border-hair: #E3E7E9;
  --border-strong: #CBD1D4;

  /* Semantic text */
  --text-primary: #4F5A6D;
  --text-secondary: #76808D;
  --text-tertiary: #9DA6AC;
  --success: #1FBE5A;
  --success-text: #1B8F4C;
  --danger: #C4362E;
  --danger-bg: rgba(196, 54, 46, 0.08);

  /* Typography — condensed engineered display, quiet workhorse body,
     mono for anything that reads like a spec sheet or a nameplate */
  --font-heading: "Big Shoulders Display", "Archivo", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;

  /* Spacing scale */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --space-9: 100px;

  /* Radius — mostly sharp, a machined edge rather than a soft app corner */
  --radius-xs: 2px;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 10px;
  --radius-full: 999px;
  --shadow-sm: 0 1px 3px rgba(43,50,61,0.08), 0 1px 2px rgba(43,50,61,0.05);
  --shadow-md: 0 10px 28px rgba(43,50,61,0.12);
  --shadow-lg: 0 26px 64px rgba(43,50,61,0.16);

  /* Motion */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-cinematic: cubic-bezier(0.25, 1, 0.5, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --dur-fast: 150ms;
  --dur-base: 280ms;
  --dur-slow: 500ms;

  /* Layout */
  --container-max: 1280px;
  --header-h: 92px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: hidden; }
body { overflow-x: hidden; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
body {
  margin: 0;
  min-height: 100dvh;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
}
img, video { max-width: 100%; display: block; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input, textarea, select { font: inherit; color: inherit; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p { margin: 0; }
svg { display: block; }

:focus-visible {
  outline: 2px solid var(--brand-blue);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ---------- Typography ---------- */
h1, h2, h3, h4, .font-heading {
  font-family: var(--font-body);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--text-primary);
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 12.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--steel);
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--border-strong);
  flex: none;
}
/* Accent treatment reserved for the primary hero of each page (blue,
   on the white canvas) — everywhere else the eyebrow stays a quiet
   spec-label so it doesn't repeat like a dashboard tag on every section. */
.eyebrow--accent { color: var(--brand-blue); }
.eyebrow--accent::before { background: var(--brand-blue); }
/* "On a dark/colored band" variant — gradient banners + the cta-band */
.eyebrow--dark, .eyebrow--onphoto { color: rgba(255,255,255,0.92); }
.eyebrow--dark::before, .eyebrow--onphoto::before { background: rgba(255,255,255,0.55); }

.h-display { font-family: var(--font-body); font-size: clamp(2.1rem, 4.8vw, 3.7rem); line-height: 1.12; font-weight: 700; letter-spacing: -0.03em; }
.h1 { font-size: clamp(2rem, 4vw, 3.2rem); font-weight: 700; }
.h2 { font-size: clamp(1.8rem, 3.6vw, 2.8rem); }
.h3 { font-size: clamp(1.2rem, 1.8vw, 1.4rem); font-family: var(--font-body); font-weight: 700; letter-spacing: -0.02em; }
.h4 { font-size: 1.1rem; font-family: var(--font-body); font-weight: 700; letter-spacing: -0.02em; }
.lede { font-size: clamp(1.05rem, 1.4vw, 1.2rem); line-height: 1.65; color: var(--text-secondary); font-weight: 400; }
.lede--dark { color: rgba(255,255,255,0.85); }

.text-muted { color: var(--text-secondary); }
.text-on-dark { color: var(--white); }
.text-on-dark-muted { color: rgba(255,255,255,0.72); }
.mono { font-family: var(--font-mono); }

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--space-5);
}
@media (min-width: 768px) { .container { padding-inline: var(--space-6); } }

.section { padding-block: var(--space-9); position: relative; }
.section--tight { padding-block: var(--space-8); }
@media (max-width: 640px) {
  .section { padding-block: var(--space-8); }
  .section--tight { padding-block: var(--space-7); }
}
.section--dark { background: var(--brand-blue-deep); color: var(--white); }
.section--tint { background: var(--surface-tint); }
.section--overflow-hidden { overflow: hidden; }
.section > .container, .page-hero > .container, .hero__inner { position: relative; z-index: 1; }

/* Shared treatment for the two brand-colored gradient bands
   (see [id="ospedaliero"] on servizi.html, .coverage on chi-siamo.html) */
.band--brand h2, .band--brand .h2 { color: var(--white); }

.grid { display: grid; gap: var(--space-6); }
.grid-2 { grid-template-columns: repeat(1, 1fr); }
.grid-3 { grid-template-columns: repeat(1, 1fr); }
.grid-4 { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 768px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

.stack { display: flex; flex-direction: column; }
.cluster { display: flex; flex-wrap: wrap; align-items: center; }

/* Decorative glow blobs — used sparingly on gradient bands only */
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.25;
}
.blob--blue { background: radial-gradient(circle, rgba(26,70,140,0.4), transparent 70%); }
.blob--sky { background: radial-gradient(circle, rgba(62,124,194,0.3), transparent 70%); }

/* Oversized watermark typography — background texture */
.watermark {
  position: absolute;
  z-index: 0;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(6rem, 18vw, 15rem);
  line-height: 1;
  color: var(--slate);
  opacity: 0.035;
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
  letter-spacing: -0.02em;
}
.watermark--right { right: -2vw; }
.watermark--left { left: -1vw; }
.watermark--top { top: 8%; transform: none; }

/* ---------- Buttons — machined rectangle, not a soft pill ---------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: 50px;
  padding: 0 var(--space-5);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 14.5px;
  letter-spacing: 0.01em;
  white-space: nowrap;
  transition: transform var(--dur-fast) var(--ease-out),
              box-shadow var(--dur-base) var(--ease-out),
              background var(--dur-base) var(--ease-out),
              color var(--dur-base) var(--ease-out),
              border-color var(--dur-base) var(--ease-out);
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn svg { width: 18px; height: 18px; flex: none; }

.btn--primary {
  background: var(--brand-blue);
  color: var(--white);
  box-shadow: var(--shadow-sm);
}
.btn--primary:hover { background: var(--brand-blue-deep); box-shadow: var(--shadow-md); }

.btn--whatsapp {
  background: #1FBE5A;
  color: #06210F;
}
.btn--whatsapp:hover { background: #29CE67; }

.btn--ghost-dark, .btn--ghost-light {
  background: var(--white);
  color: var(--text-primary);
  border: 1.5px solid var(--border-strong);
}
.btn--ghost-dark:hover, .btn--ghost-light:hover { border-color: var(--brand-blue); color: var(--brand-blue); }

.btn--sm { min-height: 42px; padding: 0 var(--space-4); font-size: 13.5px; }
.btn--block { width: 100%; }

/* ---------- Header / Nav — flat technical bar, not a floating capsule ---------- */
.site-header {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid transparent;
  transition: box-shadow var(--dur-base) var(--ease-out), border-color var(--dur-base) var(--ease-out);
}
.site-header.is-scrolled { border-bottom-color: var(--border-hair); box-shadow: var(--shadow-sm); }
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-5);
  height: 100%;
}

.brand { display: flex; align-items: center; gap: var(--space-2); flex: none; }
.brand__mark {
  height: 60px;
  width: auto;
  object-fit: contain;
  object-position: left center;
}

.nav-desktop { display: none; }
@media (min-width: 960px) {
  .nav-desktop { display: flex; align-items: center; gap: var(--space-6); }
}
@media (min-width: 960px) and (max-width: 1119px) {
  .site-header .container { gap: var(--space-3); }
  .nav-desktop { gap: var(--space-4); }
  .header-actions { gap: var(--space-2); }
}
.nav-desktop a {
  position: relative;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-secondary);
  padding-block: 6px;
  transition: color var(--dur-fast) var(--ease-out);
}
.nav-desktop a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%; bottom: -2px;
  height: 2px;
  background: var(--brand-blue);
  transition: right var(--dur-base) var(--ease-out);
}
.nav-desktop a:hover, .nav-desktop a[aria-current="page"] { color: var(--text-primary); }
.nav-desktop a:hover::after, .nav-desktop a[aria-current="page"]::after { right: 0; }

.header-actions { display: flex; align-items: center; gap: var(--space-3); }
[data-show-desktop] { display: none !important; }
@media (min-width: 960px) { [data-show-desktop] { display: inline-flex !important; } }

/* Flags — inline SVG data URIs, so they render on every OS (Windows
   has no flag emoji) and need no extra requests. */
.flag {
  display: inline-block;
  flex: none;
  width: 22px;
  height: 15px;
  border-radius: 2px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  box-shadow: 0 0 0 1px rgba(0,0,0,0.14);
}
.flag--it { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 3 2'%3E%3Crect width='1' height='2' fill='%23009246'/%3E%3Crect x='1' width='1' height='2' fill='%23ffffff'/%3E%3Crect x='2' width='1' height='2' fill='%23ce2b37'/%3E%3C/svg%3E"); }
.flag--fr { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 3 2'%3E%3Crect width='1' height='2' fill='%230055a4'/%3E%3Crect x='1' width='1' height='2' fill='%23ffffff'/%3E%3Crect x='2' width='1' height='2' fill='%23ef4135'/%3E%3C/svg%3E"); }
.flag--de { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 5 3'%3E%3Crect width='5' height='1' fill='%23000000'/%3E%3Crect y='1' width='5' height='1' fill='%23dd0000'/%3E%3Crect y='2' width='5' height='1' fill='%23ffce00'/%3E%3C/svg%3E"); }
.flag--es { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 3 2'%3E%3Crect width='3' height='2' fill='%23aa151b'/%3E%3Crect y='0.5' width='3' height='1' fill='%23f1bf00'/%3E%3C/svg%3E"); }
.flag--en { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 30'%3E%3CclipPath id='s'%3E%3Cpath d='M0,0 v30 h60 v-30 z'/%3E%3C/clipPath%3E%3CclipPath id='t'%3E%3Cpath d='M30,15 h30 v15 z v15 h-30 z h-30 v-15 z v-15 h30 z'/%3E%3C/clipPath%3E%3Cg clip-path='url(%23s)'%3E%3Cpath d='M0,0 v30 h60 v-30 z' fill='%23012169'/%3E%3Cpath d='M0,0 L60,30 M60,0 L0,30' stroke='%23ffffff' stroke-width='6'/%3E%3Cpath d='M0,0 L60,30 M60,0 L0,30' clip-path='url(%23t)' stroke='%23c8102e' stroke-width='4'/%3E%3Cpath d='M30,0 v30 M0,15 h60' stroke='%23ffffff' stroke-width='10'/%3E%3Cpath d='M30,0 v30 M0,15 h60' stroke='%23c8102e' stroke-width='6'/%3E%3C/g%3E%3C/svg%3E"); }

/* Language dropdown */
.lang-menu { position: relative; }
.lang-menu__toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 10px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-xs);
  background: var(--white);
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: border-color var(--dur-fast) var(--ease-out);
}
.lang-menu__toggle:hover, .lang-menu__toggle[aria-expanded="true"] { border-color: var(--brand-blue); }
.lang-menu__chev { width: 14px; height: 14px; transition: transform var(--dur-fast) var(--ease-out); }
.lang-menu__toggle[aria-expanded="true"] .lang-menu__chev { transform: rotate(180deg); }
.lang-menu__list {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  z-index: 120;
  min-width: 170px;
  margin: 0;
  padding: 6px;
  list-style: none;
  background: var(--white);
  border: 1px solid var(--border-hair);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
}
.lang-menu__list[hidden] { display: none; }
.lang-menu__list button {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 9px 10px;
  border-radius: var(--radius-xs);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
  text-align: left;
  cursor: pointer;
  transition: background var(--dur-fast) var(--ease-out);
}
.lang-menu__list button:hover { background: var(--surface-tint); }
.lang-menu__list button[aria-selected="true"] { background: var(--brand-blue-soft); color: var(--brand-blue); font-weight: 700; }

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-xs);
  color: var(--text-primary);
}
.nav-toggle:hover { background: var(--surface-tint); }
@media (min-width: 960px) { .nav-toggle { display: none; } }
.nav-toggle svg { width: 22px; height: 22px; }

.nav-mobile {
  position: fixed;
  inset: var(--header-h) 0 0 0;
  z-index: 90;
  background: rgba(255,255,255,0.98);
  padding: var(--space-6) var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  transform: translateY(-8px);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--dur-base) var(--ease-out), transform var(--dur-base) var(--ease-out), visibility var(--dur-base);
}
.nav-mobile.is-open { opacity: 1; transform: translateY(0); visibility: visible; }
@media (min-width: 960px) { .nav-mobile { display: none; } }
.nav-mobile a:not(.btn) {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.7rem;
  color: var(--text-primary);
  padding-block: var(--space-3);
  border-bottom: 1px solid var(--border-hair);
}
.nav-mobile .btn { margin-top: var(--space-5); }

/* ---------- Hero (secondary/legacy grid hero — kept for reference sections) ---------- */
.hero {
  position: relative;
  padding-top: calc(var(--header-h) + var(--space-8));
  padding-bottom: var(--space-9);
  background: var(--surface);
}
.hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  gap: var(--space-8);
  align-items: center;
  grid-template-columns: 1fr;
}
@media (min-width: 1024px) {
  .hero__inner { grid-template-columns: 1.05fr 0.95fr; gap: var(--space-8); }
}
.hero__badges { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-6); }
.hero__badge {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-secondary);
}
.hero__badge svg { width: 18px; height: 18px; color: var(--brand-blue-light); flex: none; }
.hero__cta { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-7); }

.hero__media-wrap { position: relative; overflow: visible; }
.hero__media {
  position: relative;
  aspect-ratio: 4 / 5;
  max-width: 480px;
  margin-inline: auto;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.hero__media img { width: 100%; height: 100%; object-fit: cover; will-change: transform; }
@media (min-width: 1024px) {
  .hero__media { margin-inline: 0 0 0 auto; margin-left: 40px; }
}

.float-card {
  position: absolute;
  z-index: 2;
  background: var(--white);
  border: 1px solid var(--border-hair);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: var(--space-4) var(--space-5);
  display: flex;
  align-items: center;
  gap: var(--space-3);
}
.float-card__icon {
  width: 46px; height: 46px; flex: none;
  border-radius: var(--radius-sm);
  background: var(--brand-blue-soft);
  color: var(--brand-blue);
  display: flex; align-items: center; justify-content: center;
}
.float-card__icon svg { width: 22px; height: 22px; }
.float-card__num { font-family: var(--font-heading); font-weight: 700; font-size: 1.7rem; color: var(--text-primary); line-height: 1; }
.float-card__label { font-size: 12px; color: var(--text-secondary); margin-top: 2px; }
.float-card--top { top: -22px; left: -32px; }
.float-card--bottom { bottom: -22px; right: -32px; }
@media (max-width: 480px) {
  .float-card { padding: var(--space-3) var(--space-4); }
  .float-card--top { left: -6px; top: -14px; }
  .float-card--bottom { right: -6px; bottom: -14px; }
}

/* ---------- Hero — static, on-brand storefront photo ---------- */
.hero-static {
  position: relative;
  min-height: 88vh;
  min-height: 88svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background:
    linear-gradient(180deg, rgba(8,20,42,0.74) 0%, rgba(8,20,42,0.62) 45%, rgba(8,20,42,0.74) 78%, var(--surface) 100%),
    url("/assets/img/hero/porta-automatica-reception.jpeg");
  background-size: cover;
  background-position: center 42%;
}

.hero-doors__content {
  position: relative;
  z-index: 3;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: calc(var(--header-h) + var(--space-6)) var(--space-5) var(--space-7);
  max-width: 780px;
  margin-inline: auto;
}
.hero-doors__content .eyebrow { justify-content: center; }
.hero-doors__content .h-display {
  margin-top: var(--space-5);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: clamp(2.1rem, 4.8vw, 3.7rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
  color: var(--white);
  text-shadow: 0 4px 28px rgba(0,0,0,0.4);
}
.hero-doors__content .lede { margin-top: var(--space-5); max-width: 46ch; color: rgba(255,255,255,0.92); text-shadow: 0 2px 16px rgba(0,0,0,0.35); }
.hero-doors__cta { display: flex; flex-wrap: wrap; gap: var(--space-3); justify-content: center; margin-top: var(--space-7); }

/* Nameplate — the physical shop signage in miniature: a blue plate
   riveted to the bottom edge of the hero, the one place all the
   headline numbers live (no repeats elsewhere) */
.nameplate {
  position: relative;
  z-index: 3;
  display: flex;
  flex-wrap: wrap;
  background: var(--brand-blue);
}
.nameplate__item {
  flex: 1 1 0;
  min-width: 150px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: var(--space-6) var(--space-4);
  text-align: center;
  border-right: 1px solid rgba(255,255,255,0.15);
}
.nameplate__item:last-child { border-right: 0; }
.nameplate__icon { width: 30px; height: 30px; margin-bottom: 4px; color: rgba(255,255,255,0.78); }
.nameplate__num { font-family: var(--font-body); font-weight: 700; font-size: clamp(2.3rem, 4.2vw, 3.1rem); letter-spacing: -0.02em; color: var(--white); line-height: 1; }
.nameplate__label { font-size: 13px; color: rgba(255,255,255,0.78); letter-spacing: 0.02em; }
@media (max-width: 767px) {
  .nameplate__item { min-width: 50%; flex: 1 1 50%; }
  .nameplate__item:nth-child(2n) { border-right: 0; }
  .nameplate__item:nth-child(-n+2) { border-bottom: 1px solid rgba(255,255,255,0.15); }
}

/* ---------- Spec list — homepage services teaser (catalogue rows) ---------- */
.spec-list { border-top: 1px solid var(--border-hair); }
.spec-row {
  display: grid;
  grid-template-columns: auto auto 1fr auto auto;
  align-items: center;
  gap: var(--space-5);
  padding: var(--space-5) var(--space-3);
  border-bottom: 1px solid var(--border-hair);
  transition: background var(--dur-base) var(--ease-out);
}
.spec-row:hover { background: var(--surface-tint); }
.spec-row__code { font-family: var(--font-mono); font-size: 12.5px; color: var(--text-tertiary); transition: color var(--dur-base) var(--ease-out); }
.spec-row:hover .spec-row__code { color: var(--brand-blue); }
.spec-row__media { width: 76px; height: 56px; border-radius: var(--radius-sm); overflow: hidden; flex: none; background: var(--surface-tint); }
.spec-row__media img { width: 100%; height: 100%; object-fit: cover; }
.spec-row__body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.spec-row__title { font-family: var(--font-body); font-weight: 700; font-size: 1.05rem; color: var(--text-primary); }
.spec-row__desc { font-size: 13.5px; color: var(--text-secondary); max-width: 52ch; }
.spec-row__tag {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--brand-blue-light);
  white-space: nowrap;
  display: none;
}
.spec-row__arrow { width: 18px; height: 18px; color: var(--text-tertiary); transition: transform var(--dur-base) var(--ease-out), color var(--dur-base) var(--ease-out); flex: none; }
.spec-row:hover .spec-row__arrow { transform: translateX(4px); color: var(--brand-blue); }
@media (max-width: 767px) {
  .spec-row { grid-template-columns: auto 1fr auto; }
  .spec-row__code, .spec-row__tag { display: none; }
}
@media (min-width: 1024px) { .spec-row__tag { display: inline; } }

/* ---------- Cards — white panel, hairline border, soft shadow ---------- */
.card {
  position: relative;
  background: var(--white);
  border: 1px solid var(--border-hair);
  border-radius: var(--radius-md);
  padding: var(--space-6);
  box-shadow: var(--shadow-sm);
  transition: border-color var(--dur-base) var(--ease-out), transform var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out);
}
.card:hover { border-color: var(--border-strong); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px; height: 48px;
  border-radius: var(--radius-sm);
  background: var(--brand-blue-soft);
  color: var(--brand-blue-light);
  margin-bottom: var(--space-4);
  transition: color var(--dur-base) var(--ease-out);
}
.card:hover .card__icon { color: var(--brand-blue); }
.card__icon svg { width: 24px; height: 24px; }
.card--dark { background: var(--brand-blue-deep); color: var(--white); }

/* "Il nostro servizio" (home) — numbered steps, USP cards, livelier hover */
.h2--sans { font-family: var(--font-body); font-weight: 700; font-size: clamp(1.8rem, 3.6vw, 2.8rem); line-height: 1.15; letter-spacing: -0.03em; }
.process-grid { display: grid; gap: var(--space-6); grid-template-columns: 1fr; }
@media (min-width: 640px) { .process-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .process-grid { grid-template-columns: repeat(3, 1fr); } }
.card--process { transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease; }
/* !important: the scroll-reveal script leaves an inline transform on these cards */
.card--process:hover { transform: translateY(-6px) !important; box-shadow: 0 22px 44px rgba(26,70,140,0.18); border-color: var(--brand-blue); }
.card--process .card__icon { background: #DCE8F8; color: var(--brand-blue); }
.card__step { position: absolute; top: var(--space-5); right: var(--space-5); font-family: var(--font-body); font-size: 12px; font-weight: 700; letter-spacing: 0.08em; color: var(--text-tertiary); }
.card--usp { border: 2px solid var(--brand-blue); padding: calc(var(--space-6) - 1px); box-shadow: var(--shadow-md); }
.card__badge {
  position: absolute;
  top: -12px;
  left: var(--space-6);
  padding: 4px 12px;
  background: var(--brand-blue);
  color: var(--white);
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.3;
}
/* Legacy service card (still referenced on a couple of pages) */
.service-card {
  display: flex;
  flex-direction: column;
  border-radius: 1rem;
  overflow: hidden;
  background: var(--white);
  border: 1px solid #F1F5F9;
  box-shadow: var(--shadow-sm);
  transition: border-color var(--dur-base) var(--ease-out), transform var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out);
}
.service-card:hover { border-color: var(--border-strong); transform: translateY(-4px) !important; box-shadow: var(--shadow-md); }
.service-card__media { position: relative; aspect-ratio: 4/3; overflow: hidden; background: var(--surface-tint); }
.service-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 500ms var(--ease-out); }
.service-card:hover .service-card__media img { transform: scale(1.05); }
.service-card__body { padding: var(--space-5); display: flex; flex-direction: column; gap: var(--space-3); flex: 1; }
.service-card__tag {
  align-self: flex-start;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #2563EB;
  font-weight: 700;
  letter-spacing: 0.08em;
}

/* Placeholder media — reserves the image slot on a card before the real
   photo is ready, so the layout doesn't shift when it's swapped in later. */
.service-card__media--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface-tint);
  border-bottom: 1px dashed var(--border-strong);
}
.service-card__placeholder-icon { width: 34px; height: 34px; color: var(--text-tertiary); }

/* Logo carousel — step-through alternative to the auto-scrolling marquee */
.logo-carousel { display: flex; align-items: center; gap: var(--space-5); }
.logo-carousel__viewport { flex: 1; overflow: hidden; }
.logo-carousel__track { display: flex; gap: var(--space-8); transition: transform 0.45s var(--ease-out); }
.logo-carousel__item { flex: 0 0 calc((100% - var(--space-8) * 3) / 4); display: flex; align-items: center; justify-content: center; }
.logo-carousel__item img { max-height: 56px; width: auto; object-fit: contain; transition: transform var(--dur-base); }
.logo-carousel__item img:hover { transform: scale(1.05); }
.logo-carousel__btn {
  flex: none;
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border-hair);
  background: var(--white);
  color: var(--text-secondary);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: border-color var(--dur-base), color var(--dur-base);
}
.logo-carousel__btn svg { width: 18px; height: 18px; }
.logo-carousel__btn:hover { border-color: var(--brand-blue); color: var(--brand-blue); }
@media (max-width: 767px) {
  .logo-carousel__item { flex: 0 0 calc((100% - var(--space-8)) / 2); }
}

/* Connected step-flow — for genuine sequences (a real process), where
   numbering and a connecting line carry information a card grid can't:
   this happened, then this, then this. */
.step-flow { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-6); position: relative; }
.step-flow::before { content: ""; position: absolute; top: 24px; left: 12.5%; right: 12.5%; height: 1px; background: var(--border-strong); z-index: 0; }
.step-flow__item { position: relative; z-index: 1; text-align: center; padding-inline: var(--space-3); }
.step-flow__num {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--brand-blue);
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-weight: 500; font-size: 1.05rem;
  margin-inline: auto;
  box-shadow: 0 0 0 6px var(--surface);
}
.step-flow__title { margin-top: var(--space-4); font-family: var(--font-body); font-weight: 700; font-size: 1.05rem; color: var(--text-primary); }
.step-flow__desc { margin-top: 6px; font-size: 14px; color: var(--text-secondary); }
@media (max-width: 767px) {
  .step-flow { grid-template-columns: 1fr; gap: var(--space-7); }
  .step-flow::before { display: none; }
  .step-flow__item { text-align: left; padding-left: 64px; padding-inline: 0 0 0 64px; }
  .step-flow__num { position: absolute; left: 0; top: 0; margin: 0; }
  .step-flow__item:not(:last-child)::after { content: ""; position: absolute; left: 23px; top: 48px; bottom: calc(var(--space-7) * -1); width: 1px; background: var(--border-strong); }
}

/* Stats — .stat__num--dark is for use on the two brand-blue gradient
   bands; .stat__num--light is for use on the plain white canvas */
.stat { text-align: left; }
.stat__num { font-family: var(--font-mono); font-weight: 500; font-size: clamp(2.2rem, 4vw, 3.2rem); line-height: 1; }
.stat__num--light { color: var(--text-primary); }
.stat__num--dark { color: var(--white); }
.stat__label { margin-top: var(--space-2); font-size: 14px; color: var(--text-secondary); }

/* Timeline (chi siamo) — chronology with icon nodes, white cards and a highlight aside */
.timeline-layout { margin-top: var(--space-8); display: grid; gap: var(--space-7); grid-template-columns: 1fr; align-items: start; }
@media (min-width: 1024px) {
  .timeline-layout { grid-template-columns: repeat(12, 1fr); gap: var(--space-8); }
  .timeline { grid-column: span 7; }
  .timeline-aside { grid-column: span 5; position: sticky; top: calc(var(--header-h) + var(--space-6)); }
}
.timeline { position: relative; display: grid; gap: var(--space-6); padding-left: 64px; }
.timeline::before { content: ""; position: absolute; left: 19px; top: 20px; bottom: 20px; width: 2px; background: #BFDBFE; }
.timeline__item { position: relative; }
.timeline__node {
  position: absolute; left: -64px; top: 16px;
  width: 40px; height: 40px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--brand-blue); color: #fff;
  box-shadow: 0 0 0 4px #EFF6FF;
  transition: box-shadow .3s ease, transform .3s ease, background .3s ease;
}
.timeline__node svg { width: 20px; height: 20px; }
.timeline__card {
  background: #fff; border: 1px solid #F1F5F9; border-radius: 1rem; padding: var(--space-6);
  box-shadow: var(--shadow-sm);
  transition: transform .3s ease, box-shadow .3s ease;
}
.timeline__item:hover .timeline__card { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.timeline__item:hover .timeline__node { transform: scale(1.1); background: #2563EB; box-shadow: 0 0 0 6px rgba(37,99,235,.22), 0 0 20px rgba(37,99,235,.55); }
.timeline__year { display: inline-block; padding: 4px 12px; background: #DBEAFE; color: #1D4ED8; border-radius: 999px; font-size: 12px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; line-height: 1.4; }
.timeline__card .h4 { margin-top: var(--space-3); }
.timeline__card p { margin-top: var(--space-2); font-size: 15px; line-height: 1.6; color: #4B5563; }
.timeline-aside__card { background: #fff; border-radius: 1rem; overflow: hidden; border: 1px solid #F1F5F9; box-shadow: var(--shadow-md); }
.timeline-aside__card img { display: block; width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.timeline-aside__stats { display: grid; grid-template-columns: repeat(3, 1fr); background: linear-gradient(135deg, var(--brand-blue-deep), var(--brand-blue)); color: #fff; }
.timeline-aside__stats > div { padding: var(--space-5) var(--space-3); text-align: center; display: flex; flex-direction: column; gap: 4px; }
.timeline-aside__stats > div + div { border-left: 1px solid rgba(255,255,255,0.18); }
.timeline-aside__stats strong { font-size: clamp(1.4rem, 2.4vw, 1.9rem); font-weight: 700; letter-spacing: -0.03em; line-height: 1.1; }
.timeline-aside__stats span { font-size: 12.5px; line-height: 1.3; color: rgba(255,255,255,0.85); }

/* Logo strip + marquee */
.logo-strip { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-7); }
.logo-strip img { max-height: 40px; width: auto; object-fit: contain; }
.logo-strip--plain img { opacity: 0.75; filter: grayscale(1); transition: opacity var(--dur-base) var(--ease-out), filter var(--dur-base) var(--ease-out); }
.logo-strip--plain img:hover { opacity: 1; filter: grayscale(0); }

/* Showcase variant — logo + short relationship caption, no card chrome */
.logo-strip--showcase { justify-content: space-between; gap: var(--space-8); row-gap: var(--space-6); padding-block: var(--space-4); border-top: 1px solid var(--border-hair); border-bottom: 1px solid var(--border-hair); }
.logo-strip__item { display: flex; flex-direction: column; align-items: center; gap: 12px; flex: 1 1 140px; }
.logo-strip__item img { max-height: 52px; width: auto; object-fit: contain; opacity: 0.85; filter: grayscale(1); transition: opacity var(--dur-base) var(--ease-out), filter var(--dur-base) var(--ease-out), transform var(--dur-base) var(--ease-spring); }
.logo-strip__item:hover img { opacity: 1; filter: grayscale(0); transform: scale(1.05); }
.logo-strip__caption { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.02em; color: var(--text-tertiary); text-align: center; }
.client-badge {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 13px;
  color: var(--white);
  background: linear-gradient(135deg, var(--brand-blue-deep), var(--brand-blue) 70%);
  border: none;
  padding: 10px 20px;
  border-radius: var(--radius-lg);
}

.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent); mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent); }
.marquee__track { display: flex; align-items: center; gap: var(--space-9); width: max-content; animation: marquee 32s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__track img { max-height: 90px; width: auto; object-fit: contain; opacity: 0.85; transition: opacity var(--dur-base); }
.marquee__track img:hover { opacity: 1; }
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* Portfolio gallery */
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2px; background: var(--border-hair); }
@media (min-width: 640px) { .gallery { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .gallery { grid-template-columns: repeat(4, 1fr); } }
.gallery__item {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--white);
  cursor: zoom-in;
}
.gallery__item img, .gallery__item video { width: 100%; height: 100%; object-fit: cover; transition: transform var(--dur-slow) var(--ease-out); }
.gallery__item:hover img, .gallery__item:hover video { transform: scale(1.06); }
.gallery__item::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(18,49,95,0.45), transparent 45%);
  opacity: 0;
  transition: opacity var(--dur-base) var(--ease-out);
}
.gallery__item:hover::after { opacity: 1; }
.gallery__play {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 52px; height: 52px;
  border-radius: 50%;
  background: rgba(20, 24, 30, 0.55);
  backdrop-filter: blur(2px);
  display: flex; align-items: center; justify-content: center;
  color: var(--white);
  pointer-events: none;
  z-index: 1;
  transition: transform var(--dur-base) var(--ease-out), background var(--dur-base);
}
.gallery__play svg { width: 20px; height: 20px; margin-left: 2px; }
.gallery__item:hover .gallery__play { transform: translate(-50%, -50%) scale(1.1); background: var(--brand-blue); }

/* Italy map — pins are rendered by main.js from the inline JSON city list */
.italy-map { margin-top: var(--space-8); display: grid; gap: var(--space-8); align-items: center; justify-items: center; }
@media (min-width: 900px) { .italy-map { grid-template-columns: minmax(300px, 480px) minmax(280px, 420px); justify-content: center; gap: var(--space-9); justify-items: stretch; } }
.italy-map__figure { position: relative; width: 100%; max-width: 480px; margin-inline: auto; }
.italy-map__badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 var(--space-4);
  padding: 8px 16px;
  background: var(--white);
  border: 1px solid var(--border-hair);
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-primary);
}
.italy-map__badge-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--brand-blue); box-shadow: 0 0 0 4px rgba(26,70,140,0.16); flex: none; }
.italy-map__svg { display: block; width: 100%; height: auto; }
.italy-map__regions path { fill: #DCE3EC; fill-rule: evenodd; stroke: #FFFFFF; stroke-width: 1; stroke-linejoin: round; }
.italy-map__regions path.is-hq { fill: #C7D4E6; }
.italy-map__pin { cursor: default; outline: none; }
.italy-map__hit { fill: transparent; }
.italy-map__halo { fill: var(--brand-blue); opacity: 0.28; transform-box: fill-box; transform-origin: center; animation: map-pulse 2.8s var(--ease-out) infinite; animation-delay: calc(var(--i, 0) * 0.35s); }
.italy-map__dot { fill: var(--brand-blue); stroke: #FFFFFF; stroke-width: 1.5; transition: transform 0.3s ease, filter 0.3s ease; transform-box: fill-box; transform-origin: center; }
.italy-map__marker { fill: var(--brand-blue); stroke: #FFFFFF; stroke-width: 2; stroke-linejoin: round; filter: drop-shadow(0 2px 3px rgba(18,49,95,0.35)); transition: transform 0.3s ease, filter 0.3s ease; transform-box: fill-box; transform-origin: 50% 100%; }
.italy-map__marker-eye { fill: #FFFFFF; }
.italy-map__pin:hover .italy-map__dot, .italy-map__pin:focus-visible .italy-map__dot, .italy-map__pin.is-active .italy-map__dot { transform: scale(1.3); filter: drop-shadow(0 0 5px rgba(26,70,140,0.65)); }
.italy-map__pin:hover .italy-map__marker, .italy-map__pin:focus-visible .italy-map__marker, .italy-map__pin.is-active .italy-map__marker { transform: scale(1.2); filter: drop-shadow(0 0 6px rgba(26,70,140,0.6)); }
@keyframes map-pulse { 0% { transform: scale(1); opacity: 0.32; } 100% { transform: scale(3.2); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .italy-map__halo { animation: none; opacity: 0.18; } }

/* Pin tooltip — positioned over the figure by main.js */
.italy-map__tooltip {
  position: absolute;
  z-index: 5;
  padding: 7px 12px;
  background: var(--brand-blue-deep);
  color: var(--white);
  border-radius: var(--radius-sm);
  box-shadow: 0 8px 22px rgba(18,49,95,0.28);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, calc(-100% - 6px));
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.italy-map__tooltip::after {
  content: "";
  position: absolute;
  left: var(--arrow-x, 50%);
  top: 100%;
  width: 9px; height: 9px;
  background: var(--brand-blue-deep);
  transform: translate(-50%, -50%) rotate(45deg);
}
.italy-map__tooltip.is-visible { opacity: 1; transform: translate(-50%, calc(-100% - 12px)); }

/* CTA card */
.italy-map__cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-7);
  text-align: center;
  background: var(--white);
  border: 1px solid var(--border-hair);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}
@media (min-width: 900px) { .italy-map__cta { align-items: flex-start; text-align: left; } }
.italy-map__cta-title {
  margin: 0;
  font-family: var(--font-body);
  font-size: clamp(1.9rem, 3.2vw, 2.6rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}
.italy-map__cta-sub { margin: 0; font-size: 17px; line-height: 1.6; color: #4A5568; max-width: 36ch; }
.italy-map__cta .btn--cta { margin-top: var(--space-3); }
.btn--cta {
  gap: 10px;
  background: linear-gradient(135deg, var(--brand-blue) 0%, #2A5BA8 100%);
  transition: all 0.3s ease;
}
.btn--cta svg { transition: transform 0.3s ease; }
.btn--cta:hover { background: linear-gradient(135deg, #2A5BA8 0%, #3E7CC2 100%); box-shadow: 0 12px 28px rgba(26,70,140,0.35); transform: translateY(-2px); }
.btn--cta:hover svg { transform: translateX(4px); }

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: var(--space-5);
  background: rgba(20, 24, 30, 0.94);
}
.lightbox.is-open { display: flex; }
.lightbox img, .lightbox video { max-width: min(90vw, 1000px); max-height: 82vh; border-radius: var(--radius-sm); box-shadow: var(--shadow-lg); }
.lightbox__close {
  position: absolute;
  top: var(--space-5); right: var(--space-5);
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--white);
  border: 1px solid var(--border-hair);
  color: var(--text-primary);
  display: flex; align-items: center; justify-content: center;
}
.lightbox__close:hover { border-color: var(--brand-blue); color: var(--brand-blue); }
.lightbox__nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 50px; height: 50px; border-radius: 50%;
  background: var(--white); border: 1px solid var(--border-hair); color: var(--text-primary);
  display: flex; align-items: center; justify-content: center;
}
.lightbox__nav:hover { border-color: var(--brand-blue); color: var(--brand-blue); }
.lightbox__nav--prev { left: var(--space-5); }
.lightbox__nav--next { right: var(--space-5); }
@media (max-width: 640px) { .lightbox__nav { width: 42px; height: 42px; } }

/* ---------- Forms ---------- */
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: var(--space-4); }
.field label { font-weight: 600; font-size: 14px; color: var(--text-primary); }
.field .required { color: var(--brand-blue); }
.field input,
.field select,
.field textarea {
  min-height: 48px;
  padding: 0 var(--space-4);
  border: 1.5px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--text-primary);
  font-size: 15px;
  transition: border-color var(--dur-fast) var(--ease-out);
}
.field textarea { padding-block: var(--space-3); min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--brand-blue);
}
.field small { font-size: 12.5px; color: var(--text-tertiary); }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--danger); }
.field__error { display: none; font-size: 12.5px; color: var(--danger); font-weight: 600; }
.field.has-error .field__error { display: block; }

.radio-group { display: flex; flex-wrap: wrap; gap: var(--space-3); }
.radio-card {
  flex: 1 1 180px;
  border: 1.5px solid var(--border-strong);
  border-radius: var(--radius-sm);
  padding: var(--space-3) var(--space-4);
  cursor: pointer;
  background: var(--white);
  transition: border-color var(--dur-fast), background var(--dur-fast);
}
.radio-card input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.radio-card:has(input:checked) { border-color: var(--brand-blue); background: var(--brand-blue-soft); }
.radio-card__title { font-weight: 700; font-size: 14.5px; color: var(--text-primary); }
.radio-card__desc { font-size: 12.5px; color: var(--text-secondary); margin-top: 2px; }

.form-note {
  display: flex;
  gap: var(--space-2);
  align-items: flex-start;
  font-size: 13px;
  color: var(--text-secondary);
  background: var(--surface-tint);
  border: 1px solid var(--border-hair);
  border-radius: var(--radius-sm);
  padding: var(--space-3) var(--space-4);
}

.form-status {
  display: none;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 14px;
  margin-top: var(--space-4);
}
.form-status.is-visible { display: flex; }
.form-status--success { background: rgba(31,190,90,0.1); color: var(--success-text); border: 1px solid rgba(31,190,90,0.3); }
.form-status--error { background: var(--danger-bg); color: var(--danger); border: 1px solid rgba(196,54,46,0.3); }

/* ---------- CTA band — a solid brand-blue panel (the signage colour) ---------- */
.cta-band {
  position: relative;
  border-radius: var(--radius-lg);
  padding: var(--space-8) var(--space-6);
  background: linear-gradient(135deg, var(--brand-blue-deep), var(--brand-blue) 70%);
  color: var(--white);
  overflow: hidden;
  text-align: center;
  box-shadow: var(--shadow-lg);
}
.cta-band .h2 { color: var(--white); }
.cta-band > * { position: relative; z-index: 1; }

/* ---------- Footer ---------- */
.site-footer { background: var(--surface); color: var(--text-secondary); padding-block: var(--space-8) var(--space-6); border-top: 1px solid var(--border-hair); }
.site-footer h4 { color: var(--text-primary); font-family: var(--font-mono); font-weight: 500; font-size: 12.5px; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: var(--space-4); }
.site-footer a { transition: color var(--dur-fast) var(--ease-out); }
.site-footer a:hover { color: var(--brand-blue); }
.footer-grid { display: grid; gap: var(--space-7); grid-template-columns: 1fr; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.footer-contact-item { display: flex; gap: var(--space-3); align-items: flex-start; margin-bottom: var(--space-3); font-size: 14.5px; }
.footer-contact-item svg { width: 20px; height: 20px; flex: none; color: var(--brand-blue-light); margin-top: 2px; }
.footer-bottom {
  margin-top: var(--space-7);
  padding-top: var(--space-5);
  border-top: 1px solid var(--border-hair);
  display: flex; flex-wrap: wrap; gap: var(--space-3);
  align-items: center; justify-content: space-between;
  font-size: 13px;
  font-family: var(--font-mono);
}
.emergency-pill {
  display: inline-flex; align-items: center; gap: var(--space-2);
  background: var(--brand-blue-soft);
  border: 1px solid var(--brand-blue-soft-border);
  color: var(--brand-blue);
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 12.5px; font-weight: 500;
}
.emergency-pill .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 3px rgba(31,190,90,0.25); animation: pulseDot 2s ease-in-out infinite; }
@keyframes pulseDot {
  0%, 100% { box-shadow: 0 0 0 3px rgba(31,190,90,0.25); }
  50% { box-shadow: 0 0 0 7px rgba(31,190,90,0.1); }
}
.social-links { display: flex; gap: var(--space-3); }
.social-links a {
  width: 38px; height: 38px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--border-hair);
  color: var(--text-secondary);
  transition: color var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out), background var(--dur-fast) var(--ease-out);
}
.social-links a:hover { color: var(--white); background: var(--brand-blue); border-color: var(--brand-blue); }
.social-links svg { width: 18px; height: 18px; }
.emergency-pill--floating {
  position: absolute;
  z-index: 3;
  top: 20px;
  left: 20px;
  background: rgba(255,255,255,0.92);
  box-shadow: var(--shadow-md);
}

/* Sticky mobile call bar */
.mobile-call-bar {
  position: fixed;
  bottom: 0; inset-inline: 0;
  z-index: 95;
  display: flex;
  gap: 1px;
  background: var(--border-hair);
  border-top: 1px solid var(--border-hair);
  box-shadow: 0 -8px 24px rgba(43,50,61,0.12);
}
@media (min-width: 768px) { .mobile-call-bar { display: none; } }
.mobile-call-bar a {
  flex: 1;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 56px;
  background: var(--white);
  color: var(--text-primary);
  font-weight: 700;
  font-size: 13.5px;
}
.mobile-call-bar a.is-primary { background: var(--brand-blue); color: #fff; }
.mobile-call-bar a.is-whatsapp { background: #1FBE5A; color: #06210F; }
.mobile-call-bar svg { width: 19px; height: 19px; }
body.has-mobile-bar { padding-bottom: 56px; }
@media (min-width: 768px) { body.has-mobile-bar { padding-bottom: 0; } }

/* ---------- Reveal / entrance animation hooks ---------- */
/* JS animates the CHILDREN of a [data-reveal-group]/[data-hero-in="stagger"]
   container, never the container itself — so only hide what actually gets
   revealed. Hiding the container too (as a blanket [data-reveal]{opacity:0}
   once did) leaves it permanently invisible, masking every child underneath
   regardless of the child's own opacity. */
[data-reveal]:not([data-reveal-group]) { opacity: 0; }
[data-reveal-group] > * { opacity: 0; }
[data-hero-in]:not([data-hero-in="stagger"]) { opacity: 0; }
[data-hero-in="stagger"] > * { opacity: 0; }
.no-js [data-reveal]:not([data-reveal-group]),
.no-js [data-reveal-group] > *,
.no-js [data-hero-in]:not([data-hero-in="stagger"]),
.no-js [data-hero-in="stagger"] > * { opacity: 1; }

/* ---------- Intro splash — brand-blue sliding doors ---------- */
body.intro-active { overflow: hidden; }
.intro-splash {
  position: fixed;
  inset: 0;
  z-index: 999;
  pointer-events: none;
}
.intro-splash__half {
  --pane-x: 7.5%;   /* glass inset inside each leaf: pane ≈ 85% of the leaf */
  --pane-y: 7.5vh;
  position: absolute;
  top: 0;
  bottom: 0;
  width: 50%;
  pointer-events: auto;
  will-change: transform;
  animation-duration: 1s;
  animation-timing-function: cubic-bezier(0.76, 0, 0.24, 1);
  animation-delay: 0.2s;
  animation-fill-mode: forwards;
}
.intro-splash__half--left { left: 0; animation-name: intro-slide-left; }
.intro-splash__half--right { right: 0; animation-name: intro-slide-right; }
/* translate3d keeps the leaf (and the backdrop-filter glass inside it) on the GPU
   compositor for the whole slide. */
@keyframes intro-slide-left { from { transform: translate3d(0,0,0); } to { transform: translate3d(-100%,0,0); } }
@keyframes intro-slide-right { from { transform: translate3d(0,0,0); } to { transform: translate3d(100%,0,0); } }

/* The opaque frame of the door leaf: a solid brand-blue rectangle with a
   window punched out of it (even-odd clip-path), so the glass pane below
   really sits over the live page instead of over more blue. It's a sibling
   of the glass, not an ancestor, so it doesn't interfere with backdrop-filter. */
.intro-splash__half::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--brand-blue-deep);
  clip-path: polygon(evenodd,
    0 0, 100% 0, 100% 100%, 0 100%, 0 0,
    var(--pane-x) var(--pane-y), var(--pane-x) calc(100% - var(--pane-y)), calc(100% - var(--pane-x)) calc(100% - var(--pane-y)), calc(100% - var(--pane-x)) var(--pane-y), var(--pane-x) var(--pane-y));
}

/* The glass pane — light, barely-tinted frosted glass (the page stays clearly
   visible), set in a brushed-steel / chrome frame. Same inset as the window above. */
.intro-splash__glass {
  position: absolute;
  inset: var(--pane-y) var(--pane-x);
  background:
    linear-gradient(160deg, rgba(255,255,255,0.10) 0%, rgba(15,30,60,0.12) 60%, rgba(15,30,60,0.2) 100%) padding-box;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  border: 4px solid #b8c2cc;
  border-image: linear-gradient(135deg, #e2e8f0 0%, #94a3b8 28%, #ffffff 50%, #64748b 74%, #cbd5e1 100%) 1;
  box-shadow: inset 0 0 10px rgba(255,255,255,0.2), 0 0 12px rgba(0,0,0,0.3);
}.no-js .intro-splash { display: none; }
@media (prefers-reduced-motion: reduce) { .intro-splash { display: none; } }

/* ---------- Breadcrumb / page header ---------- */
.page-hero {
  position: relative;
  padding-top: calc(var(--header-h) + var(--space-7));
  padding-bottom: var(--space-7);
  background: var(--surface);
  color: var(--text-primary);
  overflow: hidden;
  border-bottom: 1px solid var(--border-hair);
}
.breadcrumb { display: flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 12.5px; color: var(--text-tertiary); margin-bottom: var(--space-4); }
.breadcrumb a:hover { color: var(--brand-blue); }

/* ---------- Misc ---------- */
.divider { height: 1px; background: var(--border-hair); border: 0; margin-block: var(--space-7); }
.tag-list { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.tag { font-family: var(--font-mono); font-size: 12.5px; font-weight: 500; color: var(--brand-blue); background: var(--brand-blue-soft); padding: 6px 12px; border-radius: var(--radius-xs); }
.icon-check { color: var(--brand-blue); width: 20px; height: 20px; flex: none; }
.check-list li { display: flex; gap: var(--space-3); align-items: flex-start; padding-block: 6px; }

.skip-link {
  position: absolute; left: 8px; top: -60px;
  background: var(--brand-blue); color: var(--white);
  padding: 10px 16px; border-radius: var(--radius-xs);
  z-index: 300; font-weight: 700; font-size: 14px;
  transition: top var(--dur-fast) var(--ease-out);
}
.skip-link:focus { top: 8px; }

::selection { background: var(--brand-blue); color: var(--white); }

/* ---- Home: logos strip + "Perché scegliere" refinements ---- */
.logos-section { background: #F8FAFC; }
.logos-section .logo-carousel__item img {
  max-height: 44px; max-width: 100%; width: auto; object-fit: contain;
  filter: grayscale(100%); opacity: 0.7;
  transition: filter .3s ease, opacity .3s ease, transform .3s ease;
}
.logos-section .logo-carousel__item img:hover { filter: none; opacity: 1; }
.value-img { border-radius: 1rem; overflow: hidden; box-shadow: 0 10px 15px -3px rgba(0,0,0,.1), 0 4px 6px -4px rgba(0,0,0,.1); }
.value-img img { display: block; }
.check-list--badge li { gap: var(--space-4); padding-block: 10px; }
.check-badge { flex: none; width: 24px; height: 24px; margin-top: 1px; border-radius: 50%; background: #2563EB; color: #fff; display: inline-flex; align-items: center; justify-content: center; }
.check-badge svg { width: 13px; height: 13px; }
.value-desc { font-size: 14px; margin-top: 2px; color: #4B5563; line-height: 1.55; }

/* ---- Home: "Cosa facciamo" product grid ---- */
.products-grid { display: grid; gap: var(--space-6); grid-template-columns: 1fr; }
@media (min-width: 768px)  { .products-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .products-grid { grid-template-columns: repeat(3, 1fr); } }
.service-card { transition: border-color .3s ease, transform .3s ease, box-shadow .3s ease; }
.service-card__desc { font-size: 14px; line-height: 1.55; color: #4B5563; }
.service-card__cta { margin-top: auto; padding-top: var(--space-2); align-self: flex-end; display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; color: var(--brand-blue); transition: color .3s ease; }
.service-card__cta svg { width: 16px; height: 16px; transition: transform .3s ease; }
.service-card:hover .service-card__cta { color: var(--brand-blue-deep); }
.service-card:hover .service-card__cta svg { transform: translateX(4px); }

/* ---- Contatti: orari + sede cards ---- */
.contact-cards { display: grid; gap: var(--space-6); grid-template-columns: 1fr; align-items: stretch; }
@media (min-width: 900px) { .contact-cards { grid-template-columns: repeat(2, 1fr); gap: var(--space-7); } }
.contact-card { display: flex; flex-direction: column; background: #fff; border-radius: 1rem; box-shadow: 0 10px 15px -3px rgba(0,0,0,.1), 0 4px 6px -4px rgba(0,0,0,.1); padding: var(--space-6); }
@media (min-width: 640px) { .contact-card { padding: var(--space-7); } }
.contact-card__title { margin-top: 12px; }
.hours-table { margin: var(--space-5) 0; border: 1px solid var(--border-hair); border-radius: 12px; overflow: hidden; }
.hours-row { display: flex; justify-content: space-between; gap: var(--space-4); padding: 13px var(--space-5); border-bottom: 1px solid var(--border-hair); font-size: 15px; }
.hours-row:last-child { border-bottom: 0; }
.hours-row--closed { background: var(--surface-tint); }
.hours-row--closed strong { color: var(--text-tertiary); font-weight: 600; }
.callout-24h { margin-top: auto; display: flex; align-items: center; gap: var(--space-4); flex-wrap: wrap; padding: var(--space-4) var(--space-5); background: linear-gradient(135deg, #EFF6FF, #DBEAFE); border: 1px solid #BFDBFE; border-radius: 12px; }
.callout-24h__icon { flex: none; width: 44px; height: 44px; border-radius: 50%; background: #fff; color: var(--brand-blue); display: inline-flex; align-items: center; justify-content: center; box-shadow: 0 2px 6px rgba(37,99,235,.15); }
.callout-24h__icon svg { width: 22px; height: 22px; }
.callout-24h__text { flex: 1 1 200px; display: flex; flex-direction: column; gap: 2px; font-size: 14px; line-height: 1.45; color: #1E3A8A; }
.callout-24h__text strong { font-size: 15px; color: var(--brand-blue-deep); }
.callout-24h__btn { flex: none; }
.contact-address { margin-top: var(--space-4); display: flex; gap: var(--space-3); align-items: flex-start; font-weight: 600; color: var(--text-primary); }
.contact-address svg { flex: none; width: 22px; height: 22px; color: var(--brand-blue); margin-top: 1px; }
.contact-map { margin-top: var(--space-4); flex: 1; min-height: 260px; border-radius: 12px; overflow: hidden; border: 1px solid var(--border-hair); }
.contact-map iframe { display: block; width: 100%; height: 100%; min-height: 260px; }
.contact-directions { margin-top: var(--space-4); width: 100%; justify-content: center; gap: var(--space-3); }
.contact-directions svg { width: 18px; height: 18px; }
.quick-contacts { margin-top: var(--space-5); padding-top: var(--space-5); border-top: 1px solid var(--border-hair); display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); flex-wrap: wrap; }
.quick-contacts__label { font-size: 14px; font-weight: 600; color: var(--text-secondary); }
.quick-contacts__list { display: flex; gap: var(--space-3); flex-wrap: wrap; }
.quick-contact { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 999px; background: var(--brand-blue-soft); color: var(--brand-blue); font-size: 14px; font-weight: 600; transition: background .2s ease, color .2s ease, transform .2s ease; }
.quick-contact svg { width: 18px; height: 18px; }
.quick-contact:hover { background: var(--brand-blue); color: #fff; transform: translateY(-2px); }
.quick-contact--wa { background: #E7F9EE; color: #16A34A; }
.quick-contact--wa:hover { background: #25D366; color: #fff; }

/* ---- Servizi: alternating text / image sections ---- */
.split-text { order: 1; }
.split-media { order: 2; }
@media (min-width: 768px) {
  .split--flip .split-media { order: 1; }
  .split--flip .split-text { order: 2; }
}
