/* ================================================================
   PANEV ASCENSORI — Editorial Industrial Design v3.0
   Direzione: luxury editorial + italian industrial heritage
   Riferimenti: Pagani, Molteni&C, Domus magazine, Dezeen
   ================================================================ */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,300;0,9..144,400;0,9..144,500;0,9..144,600;0,9..144,700;0,9..144,800;1,9..144,300;1,9..144,400;1,9..144,500;1,9..144,600&family=Inter:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
img, picture, video, svg { max-width: 100%; display: block; }
button { cursor: pointer; border: none; background: none; font: inherit; color: inherit; }
a { text-decoration: none; color: inherit; }
ul, ol { list-style: none; }

:root {
  --panev-blue: #162861;
  --panev-blue-90: #1e3077;
  --panev-blue-75: #475a94;
  --panev-blue-25: #b9c2d7;
  --panev-blue-10: #e8ecf4;
  --panev-blue-5:  #f4f6fa;
  --panev-deep: #0a1438;
  --panev-ink:  #030818;

  --steel: #7d8394;
  --steel-light: #b5bcc8;

  --bone:  #faf8f3;
  --bone-2: #f4f1ea;
  --bone-3: #e9e4d6;
  --ivory: #fffdf7;

  --ink: #0f1114;
  --ink-soft: #2a2e35;
  --gray-700: #3d4048;
  --gray-500: #6a6e78;
  --gray-400: #9298a2;
  --gray-300: #c4c8ce;
  --gray-200: #dcdfe4;
  --gray-100: #ebedef;

  --italy-green: #009246;
  --italy-red:   #ce2b37;
  --success: #15803d;
  --danger:  #b91c1c;

  --bg: var(--bone);
  --bg-alt: var(--bone-2);
  --surface: var(--ivory);
  --border: rgba(10, 20, 56, 0.08);
  --border-strong: rgba(10, 20, 56, 0.16);
  --text: var(--ink);
  --text-soft: var(--gray-700);
  --text-muted: var(--gray-500);

  --font-display: 'Fraunces', 'Times New Roman', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', Menlo, monospace;

  --nav-h: 80px;
  --nav-topbar-h: 38px;
  --nav-total-h: 118px;
  --container: 1440px;
  --container-narrow: 1120px;
  --gutter: clamp(20px, 4vw, 56px);

  --r-xs: 2px; --r-sm: 4px; --r-md: 8px; --r-lg: 16px;

  --ease: 0.32s cubic-bezier(0.22, 1, 0.36, 1);
  --ease-slow: 0.65s cubic-bezier(0.22, 1, 0.36, 1);

  --shadow-xs: 0 1px 2px rgba(3, 8, 24, 0.04);
  --shadow-sm: 0 2px 8px rgba(3, 8, 24, 0.06);
  --shadow: 0 8px 28px rgba(3, 8, 24, 0.08), 0 2px 6px rgba(3, 8, 24, 0.04);
  --shadow-md: 0 16px 40px rgba(3, 8, 24, 0.10), 0 4px 12px rgba(3, 8, 24, 0.05);
  --shadow-lg: 0 24px 60px rgba(3, 8, 24, 0.14), 0 8px 20px rgba(3, 8, 24, 0.06);
  --shadow-xl: 0 40px 100px rgba(3, 8, 24, 0.18), 0 12px 24px rgba(3, 8, 24, 0.08);
  --shadow-brand: 0 12px 32px rgba(22, 40, 97, 0.28);

  --gold: var(--panev-blue);
  --gold-light: var(--panev-blue-90);
  --gold-pale: var(--panev-blue-10);
  --gold-dim: var(--panev-deep);
  --cyan: var(--panev-blue);
  --dark: var(--panev-ink);
  --dark-mid: var(--panev-deep);
  --navy: var(--panev-blue);
  --cream: var(--bone);
  --white: var(--ivory);
  --black: var(--ink);
  --text-primary: var(--text);
  --text-secondary: var(--text-soft);
  --link: var(--panev-blue);
}

html, body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  font-feature-settings: 'cv11', 'ss01';
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* ═══════════════════════════════════════════════════════════════
   BODY BACKGROUND — Layered atmospheric system
   Layer 1: warm paper base tint (subtle warm off-white)
   Layer 2: radial ambient lights (navy top-right, steel bottom-left)
   Layer 3: ultra-fine grid (blueprint paper)
   Layer 4: paper grain noise (texture)
   All static, fixed, non-interactive — pure atmosphere
   ═══════════════════════════════════════════════════════════════ */

html {
  background: var(--bone);
}

body {
  background:
    /* Layer 2a: navy ambient glow top-right */
    radial-gradient(
      ellipse 70% 50% at 100% 0%,
      rgba(22, 40, 97, 0.09) 0%,
      rgba(22, 40, 97, 0.04) 35%,
      transparent 70%
    ),
    /* Layer 2b: steel ambient glow bottom-left */
    radial-gradient(
      ellipse 60% 60% at 0% 100%,
      rgba(125, 131, 148, 0.08) 0%,
      rgba(125, 131, 148, 0.03) 35%,
      transparent 70%
    ),
    /* Layer 2c: warm highlight center */
    radial-gradient(
      ellipse 90% 60% at 50% 10%,
      rgba(255, 253, 247, 0.6) 0%,
      transparent 60%
    ),
    /* Layer 1: base warm paper */
    linear-gradient(180deg, #fbf9f4 0%, var(--bone) 40%, #f6f2eb 100%);
  background-attachment: fixed;
  background-repeat: no-repeat;
}

/* Layer 3: Ultra-fine grid — paper blueprint pattern, fixed */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    linear-gradient(rgba(22, 40, 97, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(22, 40, 97, 0.035) 1px, transparent 1px);
  background-size: 64px 64px;
  background-position: -1px -1px;
  /* fade grid away from center to avoid visual noise at top/bottom */
  mask-image: radial-gradient(ellipse 100% 80% at 50% 50%, black 0%, rgba(0,0,0,0.5) 60%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 100% 80% at 50% 50%, black 0%, rgba(0,0,0,0.5) 60%, transparent 100%);
}

/* Layer 4: Paper grain — fine noise texture over everything */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.55;
  background-image: url("data:image/svg+xml;utf8,<svg viewBox='0 0 320 320' xmlns='http://www.w3.org/2000/svg'><filter id='pg'><feTurbulence type='fractalNoise' baseFrequency='0.92' numOctaves='3' stitchTiles='stitch' seed='7'/><feColorMatrix values='0 0 0 0 0.09 0 0 0 0 0.07 0 0 0 0 0.04 0 0 0 0.08 0'/></filter><rect width='100%' height='100%' filter='url(%23pg)'/></svg>");
  mix-blend-mode: multiply;
}

/* All content must float above bg layers */
header, main, section, footer, .container, nav, #mobile-nav, #cart-sidebar, .toast, #pa-cookie-banner, #pa-cookie-overlay { position: relative; z-index: 2; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
  position: relative;
}
.container-narrow {
  max-width: var(--container-narrow);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* TYPOGRAPHY */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.025em;
  color: var(--ink);
  font-variation-settings: "opsz" 144, "SOFT" 50;
}

.display-1, .hero-title, h1.display-1 {
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 7.5rem);
  font-weight: 300;
  line-height: 0.94;
  letter-spacing: -0.045em;
  font-variation-settings: "opsz" 144, "SOFT" 100;
}
.display-1 em, h1 em, h2 em, .hero-title em {
  font-style: italic;
  font-weight: 400;
  color: var(--panev-blue);
  font-variation-settings: "opsz" 144;
}

.display-2, h2.display-2 {
  font-size: clamp(2.2rem, 5.5vw, 4.8rem);
  font-weight: 300;
  line-height: 1.02;
  letter-spacing: -0.035em;
}

.display-3 {
  font-size: clamp(1.75rem, 3.8vw, 3rem);
  font-weight: 400;
  letter-spacing: -0.03em;
}

h3 { font-size: clamp(1.3rem, 2vw, 1.65rem); font-weight: 500; letter-spacing: -0.02em; }
h4 { font-size: 1.15rem; font-weight: 500; letter-spacing: -0.015em; }

h5, .eyebrow, .overline {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--panev-blue);
  font-feature-settings: 'tnum';
}

p {
  font-size: 1rem;
  line-height: 1.68;
  color: var(--text-soft);
  margin-bottom: 1rem;
}

.lead {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 1.6vw, 1.5rem);
  font-weight: 400;
  line-height: 1.5;
  color: var(--ink-soft);
  letter-spacing: -0.01em;
}
.lead em { font-style: italic; color: var(--panev-blue); font-weight: 500; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  margin-bottom: 1.5rem;
}
.eyebrow::before {
  content: '';
  display: inline-block;
  width: 36px;
  height: 1px;
  background: var(--panev-blue);
  flex-shrink: 0;
}

code, kbd, .mono, .product-codice, [class*="codice"] {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 0.88em;
}

::selection { background: var(--panev-blue); color: var(--ivory); }

/* LINKS */
a { color: var(--link); transition: color var(--ease); }
a:hover { color: var(--panev-blue-90); }

/* BUTTONS */
.btn, button.btn, a.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  padding: 16px 32px;
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  border-radius: 0;
  border: none;
  transition: all var(--ease);
  text-decoration: none !important;
  cursor: pointer;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  transition: transform var(--ease-slow);
}

.btn-primary, .btn.btn-primary, a.btn-primary {
  background: var(--panev-blue);
  color: var(--ivory) !important;
  box-shadow: var(--shadow-brand);
}
.btn-primary::after {
  background: var(--panev-ink);
  transform: translateY(100%);
}
.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 48px rgba(22, 40, 97, 0.38);
}
.btn-primary:hover::after { transform: translateY(0); }
.btn-primary:active { transform: translateY(-1px); }

.btn-outline, .btn.btn-outline, a.btn-outline {
  background: transparent;
  color: var(--panev-blue) !important;
  border: 1.5px solid var(--panev-blue);
}
.btn-outline::after {
  background: var(--panev-blue);
  transform: scaleX(0);
  transform-origin: right;
}
.btn-outline:hover {
  color: var(--ivory) !important;
}
.btn-outline:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.btn-ghost {
  background: transparent;
  color: var(--panev-blue) !important;
  padding: 12px 20px;
}
.btn-ghost:hover { background: var(--panev-blue-10); }

.btn-lg { padding: 20px 40px; font-size: 0.96rem; }
.btn-sm { padding: 10px 20px; font-size: 0.84rem; }
.btn-xl { padding: 24px 48px; font-size: 1rem; }

/* ═══════════════════════════════════════════════════════════════
   NAVBAR — Italian industrial institutional
   Two rows: top utility bar + main nav with centered menu
   ═══════════════════════════════════════════════════════════════ */

/* Container wrapper */
header, #navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  transition: transform var(--ease-slow);
}

/* TOP UTILITY BAR — institutional header */
.nav-topbar {
  background: var(--panev-ink);
  color: rgba(255, 255, 255, 0.78);
  height: 38px;
  font-size: 0.74rem;
  letter-spacing: 0.02em;
  position: relative;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  overflow: hidden;
  transition: height var(--ease-slow), opacity var(--ease-slow);
}
.nav-topbar::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg,
    #009246 0%, #009246 33.33%,
    #ffffff 33.33%, #ffffff 66.66%,
    #ce2b37 66.66%, #ce2b37 100%);
  opacity: 0.85;
  z-index: 2;
}
.nav-topbar::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 40% 100% at 25% 50%, rgba(22, 40, 97, 0.4) 0%, transparent 70%);
  pointer-events: none;
}
.nav-topbar-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  position: relative;
  z-index: 1;
}
.nav-topbar-left, .nav-topbar-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.nav-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-weight: 500;
  color: rgba(255, 255, 255, 0.82);
}
.nav-tag svg { width: 13px; height: 13px; color: var(--panev-blue-25); flex-shrink: 0; }
.nav-tag-mono {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--panev-blue-25);
  letter-spacing: 0.04em;
  margin-left: 2px;
}
.nav-tag-sep {
  width: 1px;
  height: 14px;
  background: rgba(255, 255, 255, 0.18);
  display: inline-block;
}
.nav-tricolor {
  display: inline-flex;
  width: 16px;
  height: 11px;
  border-radius: 1px;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: 0 0 0 0.5px rgba(255, 255, 255, 0.2);
}
.nav-tricolor i { flex: 1; display: block; }

.nav-topbar-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255, 255, 255, 0.82);
  font-weight: 500;
  transition: color var(--ease);
}
.nav-topbar-link:hover { color: var(--ivory); }
.nav-topbar-link svg { width: 13px; height: 13px; color: var(--panev-blue-25); flex-shrink: 0; }
.nav-topbar-sep {
  color: rgba(255, 255, 255, 0.25);
  font-size: 0.72rem;
  line-height: 1;
}
.nav-topbar-urgent { color: #ffb3b3; }
.nav-topbar-urgent:hover { color: #ff8585; }
.nav-topbar-urgent svg, .nav-topbar-urgent .nav-pulse-dot { color: var(--italy-red); }
.nav-pulse-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--italy-red);
  box-shadow: 0 0 0 0 rgba(206, 43, 55, 0.7);
  animation: navPulse 2s infinite;
  flex-shrink: 0;
}
@keyframes navPulse {
  0% { box-shadow: 0 0 0 0 rgba(206, 43, 55, 0.6); }
  70% { box-shadow: 0 0 0 8px rgba(206, 43, 55, 0); }
  100% { box-shadow: 0 0 0 0 rgba(206, 43, 55, 0); }
}

/* MAIN NAV BAR — elegant, editorial, precise */
.nav-main {
  background: rgba(250, 248, 243, 0.88);
  backdrop-filter: blur(28px) saturate(1.6);
  -webkit-backdrop-filter: blur(28px) saturate(1.6);
  border-bottom: 1px solid transparent;
  transition: background var(--ease), border-color var(--ease), box-shadow var(--ease);
}
header.scrolled .nav-main,
#navbar.scrolled .nav-main {
  background: rgba(250, 248, 243, 0.96);
  border-bottom-color: var(--border);
  box-shadow: 0 1px 0 rgba(3, 8, 24, 0.04), 0 8px 24px rgba(3, 8, 24, 0.06);
}
/* Hide topbar on scroll for compactness */
header.scrolled .nav-topbar,
#navbar.scrolled .nav-topbar {
  height: 0;
  opacity: 0;
  border-bottom-color: transparent;
}

.nav-inner {
  height: var(--nav-h);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 2rem;
}

/* BRAND — logo with tricolor signature + institutional meta */
.nav-logo {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
  text-decoration: none;
  transition: transform var(--ease);
}
.nav-logo:hover { transform: translateX(-1px); }

.nav-logo-tricolor {
  display: inline-flex;
  width: 3px;
  height: 36px;
  flex-direction: column;
  flex-shrink: 0;
  border-radius: 1px;
  overflow: hidden;
}
.nav-logo-tricolor i { flex: 1; }

.nav-logo-img { display: inline-flex; align-items: center; flex-shrink: 0; }
.nav-logo-img-tag, .nav-logo-svg {
  height: 40px;
  width: auto;
  max-width: 200px;
  transition: transform var(--ease);
}
.nav-logo:hover .nav-logo-img-tag { transform: scale(1.02); }

.nav-logo-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-left: 14px;
  border-left: 1px solid var(--border-strong);
  margin-left: 4px;
  line-height: 1.2;
}
.nav-logo-meta-top {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.01em;
  font-style: italic;
  font-variation-settings: "opsz" 14;
}
.nav-logo-meta-bot {
  font-family: var(--font-mono);
  font-size: 0.64rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* CENTERED MENU */
.nav-menu {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  height: 100%;
}
.nav-menu a {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 0 18px;
  height: 100%;
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--ink-soft);
  letter-spacing: 0.005em;
  text-decoration: none;
  transition: color var(--ease);
  white-space: nowrap;
}
.nav-menu a .nav-link-label { line-height: 1.2; }
.nav-menu a .nav-link-sub {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-top: 2px;
  transition: color var(--ease);
}
.nav-menu a::before {
  content: '';
  position: absolute;
  top: 0; left: 50%;
  width: 0; height: 2px;
  background: var(--panev-blue);
  transform: translateX(-50%);
  transition: width var(--ease);
}
.nav-menu a::after {
  content: '';
  position: absolute;
  left: 16px; right: 16px;
  bottom: 0;
  height: 1px;
  background: var(--panev-blue);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform var(--ease);
  opacity: 0.6;
}
.nav-menu a:hover, .nav-menu a.active {
  color: var(--panev-blue);
}
.nav-menu a:hover .nav-link-sub, .nav-menu a.active .nav-link-sub {
  color: var(--panev-blue);
}
.nav-menu a:hover::before, .nav-menu a.active::before { width: 50%; }
.nav-menu a:hover::after, .nav-menu a.active::after { transform: scaleX(1); }
.nav-menu a.active::before { background: var(--panev-blue); }

/* Vertical divider between menu items (subtle hairlines like Italian editorial) */
.nav-menu a + a::after {
  content: '';
  position: absolute;
  left: 0; top: 50%;
  transform: translateY(-50%) scaleY(1);
  width: 1px; height: 14px;
  background: var(--border);
  right: auto; bottom: auto;
  opacity: 0.5;
  transition: opacity var(--ease);
}

/* ACTIONS */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

/* CTA button — Italian sartorial, tricolor accent on hover */
.nav-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 11px 20px;
  background: var(--panev-ink);
  color: var(--ivory);
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  transition: all var(--ease);
  position: relative;
  overflow: hidden;
  isolation: isolate;
  border: 1px solid var(--panev-ink);
}
.nav-cta-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--panev-blue);
  transform: translateY(100%);
  transition: transform var(--ease-slow);
}
.nav-cta-btn::after {
  content: '';
  position: absolute;
  left: 0; right: 0;
  bottom: 0;
  height: 2px;
  background: linear-gradient(90deg,
    #009246 0%, #009246 33.33%,
    #ffffff 33.33%, #ffffff 66.66%,
    #ce2b37 66.66%, #ce2b37 100%);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1) 0.1s;
  opacity: 0.9;
}
.nav-cta-btn:hover {
  color: var(--ivory);
  transform: translateY(-1px);
  border-color: var(--panev-blue);
}
.nav-cta-btn:hover::before { transform: translateY(0); }
.nav-cta-btn:hover::after { transform: scaleX(1); }
.nav-cta-btn svg { width: 14px; height: 14px; transition: transform var(--ease); }
.nav-cta-btn:hover svg { transform: translateX(3px); }

/* CART icon button — minimalist */
.nav-cart-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 44px;
  height: 44px;
  padding: 0;
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--border-strong);
  transition: all var(--ease);
  position: relative;
}
.nav-cart-btn svg { width: 18px; height: 18px; }
.nav-cart-btn:hover {
  background: var(--panev-blue);
  color: var(--ivory);
  border-color: var(--panev-blue);
  transform: translateY(-1px);
}
.cart-count {
  position: absolute;
  top: -6px; right: -6px;
  background: var(--italy-red);
  color: var(--ivory);
  min-width: 18px; height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.64rem;
  font-weight: 700;
  font-family: var(--font-mono);
  border: 1.5px solid var(--bone);
  box-shadow: 0 2px 4px rgba(3, 8, 24, 0.15);
}

/* HAMBURGER */
.nav-hamburger {
  display: none;
  width: 44px; height: 44px;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--border-strong);
  transition: all var(--ease);
}
.nav-hamburger:hover { background: var(--panev-blue); border-color: var(--panev-blue); }
.nav-hamburger:hover span,
.nav-hamburger:hover span::before,
.nav-hamburger:hover span::after { background: var(--ivory); }
.nav-hamburger span,
.nav-hamburger span::before,
.nav-hamburger span::after {
  display: block;
  width: 20px; height: 1.5px;
  background: var(--ink);
  position: relative;
  transition: background var(--ease);
}
.nav-hamburger span::before,
.nav-hamburger span::after {
  content: '';
  position: absolute;
  left: 0;
}
.nav-hamburger span::before { top: -6px; }
.nav-hamburger span::after  { top: 6px; }

/* RESPONSIVE NAVBAR */
@media(max-width:1280px){
  .nav-logo-meta { display: none; }
  .nav-menu { gap: 0; }
  .nav-menu a { padding: 0 14px; }
}
@media(max-width:1120px){
  .nav-menu a .nav-link-sub { display: none; }
  .nav-menu a { padding: 0 12px; }
}
@media(max-width:960px){
  .nav-menu { display: none; }
  .nav-hamburger { display: flex; }
  .nav-topbar { display: none; }
  .nav-cta-btn span:not(.nav-tricolor) { display: inline; }
}
@media(max-width:640px){
  .nav-cta-btn span:not(.nav-tricolor) { display: none; }
  .nav-cta-btn { padding: 11px 14px; }
  .nav-cta-btn svg { width: 16px; height: 16px; }
  .nav-actions { gap: 0.35rem; }
}
@media(max-width:480px){
  .nav-logo-img-tag { height: 32px; max-width: 160px; }
  .nav-logo-tricolor { height: 28px; }
}

/* MOBILE NAV — Editorial drawer with tricolor + numbered menu */
#mobile-nav {
  position: fixed;
  top: 0; right: -100%;
  width: min(420px, 100%);
  height: 100vh;
  background: var(--bone);
  box-shadow: -20px 0 60px rgba(3, 8, 24, 0.25);
  padding: 0;
  transition: right var(--ease-slow);
  z-index: 49;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  overflow-x: hidden;
}
#mobile-nav::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg,
    #009246 0%, #009246 33.33%,
    #ffffff 33.33%, #ffffff 66.66%,
    #ce2b37 66.66%, #ce2b37 100%);
}
#mobile-nav.open { right: 0; }

/* Header with brand */
.mobile-nav-header {
  padding: 28px 32px 24px;
  display: flex;
  align-items: center;
  gap: 14px;
  border-bottom: 1px solid var(--border);
  background: var(--ivory);
  position: relative;
}
.mobile-nav-tricolor {
  display: inline-flex;
  width: 4px;
  height: 44px;
  flex-direction: column;
  flex-shrink: 0;
  border-radius: 1px;
  overflow: hidden;
}
.mobile-nav-tricolor i { flex: 1; }
.mobile-nav-brand {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.02em;
  line-height: 1.15;
}
.mobile-nav-brand-sub {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-top: 4px;
}

/* Menu */
.mobile-nav-menu {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 8px 0;
}
.mobile-nav-menu > a {
  display: grid;
  grid-template-columns: 48px 1fr;
  align-items: center;
  gap: 16px;
  padding: 18px 32px;
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--ink);
  border-bottom: 1px solid var(--border);
  transition: all var(--ease);
  letter-spacing: -0.02em;
  text-decoration: none;
  position: relative;
}
.mobile-nav-menu > a:hover {
  color: var(--panev-blue);
  background: var(--panev-blue-10);
  padding-left: 36px;
}
.mobile-nav-menu > a:hover .mnm-num {
  color: var(--panev-blue);
}
.mnm-num {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  transition: color var(--ease);
}

/* Close */
.mobile-nav-close {
  position: absolute;
  top: 18px; right: 20px;
  width: 40px; height: 40px;
  background: var(--ink);
  color: var(--ivory);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: none;
  transition: all var(--ease);
  z-index: 5;
}
.mobile-nav-close:hover {
  background: var(--panev-blue);
  transform: rotate(90deg);
}
.mobile-nav-close svg { width: 18px; height: 18px; }

/* Footer with CTA + contacts */
.mobile-nav-footer {
  padding: 24px 32px 32px;
  background: var(--bone-2);
  border-top: 1px solid var(--border);
}
.mobile-nav-contacts {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}
.mobile-nav-contacts a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0;
  margin: 0;
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-soft);
  border: none;
  letter-spacing: 0;
  background: transparent !important;
}
.mobile-nav-contacts a:hover {
  padding-left: 0 !important;
  color: var(--panev-blue);
}
.mobile-nav-contacts a svg {
  width: 14px; height: 14px;
  color: var(--panev-blue);
  flex-shrink: 0;
}

/* HERO */
.hero {
  padding: calc(var(--nav-total-h) + 40px) 0 100px;
  background:
    radial-gradient(ellipse 50% 40% at 85% 15%, rgba(22, 40, 97, 0.14) 0%, transparent 55%),
    radial-gradient(ellipse 55% 45% at 5% 90%, rgba(125, 131, 148, 0.12) 0%, transparent 60%),
    radial-gradient(ellipse 30% 30% at 50% 50%, rgba(255, 253, 247, 0.55) 0%, transparent 70%),
    linear-gradient(135deg, #fbf9f4 0%, var(--bone) 50%, #f2eee5 100%);
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  display: flex;
  align-items: center;
  isolation: isolate;
}
/* Layer: blueprint grid */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(22, 40, 97, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(22, 40, 97, 0.05) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse 85% 80% at center, black 20%, transparent 85%);
  -webkit-mask-image: radial-gradient(ellipse 85% 80% at center, black 20%, transparent 85%);
  pointer-events: none;
  z-index: 0;
}
/* Layer: fine crosshair technical marks in corners */
.hero::after {
  content: '';
  position: absolute;
  top: 40px; right: 40px;
  width: 60px; height: 60px;
  background:
    linear-gradient(var(--panev-blue) 1px, transparent 1px) center / 100% 1px no-repeat,
    linear-gradient(90deg, var(--panev-blue) 1px, transparent 1px) center / 1px 100% no-repeat;
  opacity: 0.3;
  pointer-events: none;
  z-index: 0;
}
.hero-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }

.hero-watermark {
  position: absolute;
  font-family: var(--font-display);
  font-size: clamp(20rem, 40vw, 44rem);
  font-weight: 200;
  color: rgba(22, 40, 97, 0.03);
  letter-spacing: -0.08em;
  pointer-events: none;
  line-height: 0.8;
  user-select: none;
  z-index: 0;
  font-variation-settings: "opsz" 144;
}
.hero-watermark.right { right: -4vw; top: 18%; }
.hero-watermark.left  { left: -6vw; bottom: 10%; font-style: italic; }

.hero-container { position: relative; z-index: 2; width: 100%; }

.hero-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4rem;
  align-items: end;
}
@media(max-width:1100px){ .hero-grid { grid-template-columns: 1fr; gap: 3rem; } }

.hero-content { max-width: 920px; }
.hero-title { margin: 0 0 1.5rem; }

.hero-subtitle {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 1.6vw, 1.4rem);
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 620px;
  margin-bottom: 2.5rem;
  font-weight: 400;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
}
@media(max-width:640px){
  .hero-actions { flex-direction: column; width: 100%; }
  .hero-actions .btn { width: 100%; }
}

.hero-trust {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 3rem;
  flex-wrap: wrap;
  font-size: 0.88rem;
  color: var(--text-soft);
}
.hero-trust > span {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}
.hero-trust strong { color: var(--ink); font-weight: 600; }

.hero-spec {
  border-left: 1px solid var(--ink);
  padding: 1.5rem 0 1.5rem 2rem;
  min-width: 280px;
  max-width: 360px;
}
@media(max-width:1100px){ .hero-spec { display: none; } }
.hero-spec-lbl {
  font-family: var(--font-body);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.8rem;
}
.hero-spec-val {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 400;
  line-height: 1.15;
  color: var(--ink);
  letter-spacing: -0.02em;
  margin-bottom: 0.4rem;
}
.hero-spec-val em { font-style: italic; color: var(--panev-blue); }
.hero-spec-meta {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--text-muted);
}

.hero-scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  color: var(--text-muted);
  font-size: 0.68rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  font-family: var(--font-mono);
  z-index: 3;
}
.hero-scroll .scroll-line {
  width: 1px; height: 48px;
  background: linear-gradient(to bottom, var(--panev-blue), transparent);
  animation: scrollPulse 2.2s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}
@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(1); }
  50%      { opacity: 1; transform: scaleY(1.4); }
}

/* STATS */
.stats-bar {
  background: var(--panev-ink);
  color: var(--ivory);
  padding: 90px 0;
  position: relative;
  overflow: hidden;
}
.stats-bar::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(180deg, transparent, black 30%, black 70%, transparent);
}
.stats-bar::after {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 1px;
  background: linear-gradient(90deg, transparent, var(--panev-blue-25), transparent);
}
.stats-intro {
  margin-bottom: 3.5rem;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 2rem;
  flex-wrap: wrap;
}
.stats-intro h2 {
  color: var(--ivory);
  font-size: clamp(1.8rem, 3.5vw, 3rem);
  font-weight: 300;
  max-width: 540px;
}
.stats-intro .eyebrow { color: var(--panev-blue-25); }
.stats-intro .eyebrow::before { background: var(--panev-blue-25); }

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  position: relative;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}
.stat-item {
  padding: 40px 28px;
  text-align: left;
  border-right: 1px solid rgba(255, 255, 255, 0.15);
  position: relative;
}
.stat-item:first-child { padding-left: 0; }
.stat-item:last-child  { padding-right: 0; border-right: none; }
.stat-item::before {
  content: '';
  position: absolute;
  top: 24px; left: 28px;
  width: 6px; height: 6px;
  background: var(--panev-blue-25);
  border-radius: 50%;
}
.stat-item:first-child::before { left: 0; }
.stat-num {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 5.5vw, 4.8rem);
  font-weight: 300;
  line-height: 1;
  color: var(--ivory);
  letter-spacing: -0.045em;
  margin: 1.5rem 0 0.8rem;
  font-variant-numeric: tabular-nums;
}
.stat-lbl {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 500;
  color: rgba(255,255,255,0.85);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  line-height: 1.5;
}
.stat-lbl small {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: rgba(255,255,255,0.5);
  text-transform: none;
  letter-spacing: 0;
  margin-top: 6px;
  font-weight: 400;
}
@media(max-width:768px){
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-item { padding: 32px 20px; border-right: none; border-bottom: 1px solid rgba(255,255,255,0.15); }
  .stat-item:nth-child(odd) { border-right: 1px solid rgba(255,255,255,0.15); }
  .stat-item:nth-last-child(-n+2) { border-bottom: none; }
  .stat-item::before { left: 20px; }
  .stat-item:first-child::before { left: 0; }
}

/* SECTIONS */
section, .section {
  padding: clamp(100px, 14vw, 180px) 0;
  position: relative;
}
/* ==================================================
   ENTERPRISE COMPONENTS — Technical documentation style
   ================================================== */

/* Spec table — densely-packed technical data */
.spec-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-body);
  font-size: 0.9rem;
  margin: 1.5rem 0;
}
.spec-table th,
.spec-table td {
  padding: 14px 20px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}
.spec-table th {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  background: var(--bone-2);
  border-bottom: 1px solid var(--border-strong);
}
.spec-table td {
  color: var(--ink);
}
.spec-table td.num, .spec-table td.mono {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  color: var(--panev-blue);
}
.spec-table tbody tr:hover { background: var(--bone-2); }
.spec-table tbody tr:last-child td { border-bottom: none; }

/* Patent frame — the hero document visual */
.patent-frame {
  background: var(--ivory);
  border: 1px solid var(--border-strong);
  padding: 40px;
  position: relative;
  box-shadow: var(--shadow-lg);
  max-width: 480px;
}
.patent-frame::before {
  content: 'UIBM · REP. ITALIANA';
  position: absolute;
  top: 16px; right: 24px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--panev-blue);
  letter-spacing: 0.2em;
}
.patent-frame-label {
  font-family: var(--font-body);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.patent-frame-number {
  font-family: var(--font-mono);
  font-size: 1.6rem;
  font-weight: 500;
  color: var(--panev-blue);
  letter-spacing: -0.01em;
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
  font-variant-numeric: tabular-nums;
}
.patent-frame-rows {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.patent-frame-row {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 16px;
  font-size: 0.88rem;
  line-height: 1.5;
  align-items: baseline;
}
.patent-frame-row dt {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.patent-frame-row dd {
  color: var(--ink);
  font-weight: 500;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-variant-numeric: tabular-nums;
}
.patent-frame-row.wide dd {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.35;
}
.patent-frame-seal {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-muted);
  letter-spacing: 0.1em;
}
.patent-frame-seal-check {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--italy-green);
  font-weight: 600;
}

/* Process steps — how we work */
.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  position: relative;
}
.process-steps::before {
  content: '';
  position: absolute;
  top: 42px;
  left: 60px;
  right: 60px;
  height: 1px;
  background: repeating-linear-gradient(to right, var(--panev-blue) 0, var(--panev-blue) 6px, transparent 6px, transparent 12px);
  z-index: 0;
}
.process-step {
  padding: 0 24px;
  text-align: center;
  position: relative;
  z-index: 1;
}
.process-step-num {
  width: 84px; height: 84px;
  background: var(--ivory);
  border: 2px solid var(--panev-blue);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 400;
  color: var(--panev-blue);
  margin: 0 auto 20px;
  font-variation-settings: "opsz" 144;
  letter-spacing: -0.03em;
  transition: all var(--ease-slow);
}
.process-step:hover .process-step-num {
  background: var(--panev-blue);
  color: var(--ivory);
  transform: scale(1.05);
}
.process-step-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 500;
  margin-bottom: 8px;
  letter-spacing: -0.015em;
}
.process-step-time {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--panev-blue);
  letter-spacing: 0.08em;
  margin-bottom: 12px;
  text-transform: uppercase;
}
.process-step-desc {
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--text-soft);
}
@media(max-width:900px){
  .process-steps { grid-template-columns: repeat(2, 1fr); gap: 48px 0; }
  .process-steps::before { display: none; }
}
@media(max-width:520px){
  .process-steps { grid-template-columns: 1fr; gap: 40px 0; }
}

/* Feature showcase — the big SVG split */
.feature-showcase {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 6rem;
  align-items: center;
}
@media(max-width:960px){
  .feature-showcase { grid-template-columns: 1fr; gap: 3rem; }
}
.feature-showcase-visual {
  position: relative;
  aspect-ratio: 4/3;
  background: var(--bone-2);
  border: 1px solid var(--border);
  overflow: hidden;
}
.feature-showcase-visual::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(22, 40, 97, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(22, 40, 97, 0.05) 1px, transparent 1px);
  background-size: 24px 24px;
}
.feature-showcase-visual svg {
  position: relative;
  width: 100%;
  height: 100%;
  z-index: 1;
  padding: 40px;
}
.feature-showcase-visual-label {
  position: absolute;
  top: 20px; left: 24px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-muted);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  z-index: 2;
}
.feature-showcase-visual-num {
  position: absolute;
  bottom: 20px; right: 24px;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--panev-blue);
  letter-spacing: 0.1em;
  z-index: 2;
  font-variant-numeric: tabular-nums;
}

.feature-list {
  list-style: none;
  margin-top: 2rem;
}
.feature-list li {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 16px;
  padding: 18px 0;
  border-top: 1px solid var(--border);
  align-items: baseline;
}
.feature-list li:last-child { border-bottom: 1px solid var(--border); }
.feature-list-num {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--panev-blue);
  letter-spacing: 0.1em;
  font-variant-numeric: tabular-nums;
  text-transform: uppercase;
}
.feature-list-content strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 4px;
  letter-spacing: -0.015em;
}
.feature-list-content span {
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--text-soft);
}

/* Testimonial — editorial pull quote */
.quote-card {
  padding: 3.5rem 2.8rem;
  background: var(--ivory);
  border-top: 3px solid var(--panev-blue);
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: all var(--ease);
}
.quote-card:hover {
  background: var(--bone);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.quote-card-marker {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  color: var(--panev-blue);
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  font-weight: 500;
}
.quote-card-text {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 400;
  line-height: 1.45;
  color: var(--ink);
  letter-spacing: -0.015em;
  flex: 1;
  margin-bottom: 2rem;
  font-variation-settings: "opsz" 144;
}
.quote-card-text strong { color: var(--panev-blue); font-weight: 500; }
.quote-card-attribution {
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}
.quote-card-source {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 2px;
}
.quote-card-ref {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}

.quote-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}
@media(max-width:900px){ .quote-grid { grid-template-columns: 1fr; } }

/* CTA banner — enterprise closing */
.cta-banner {
  background: var(--panev-ink);
  color: var(--ivory);
  padding: 100px 0;
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 80% at 70% 50%, rgba(22, 40, 97, 0.35) 0%, transparent 70%);
}
.cta-banner-content {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4rem;
  align-items: center;
}
@media(max-width:900px){ .cta-banner-content { grid-template-columns: 1fr; gap: 2.5rem; } }
.cta-banner h2 {
  font-size: clamp(2rem, 4vw, 3.5rem);
  color: var(--ivory);
  font-weight: 300;
  line-height: 1.1;
  margin-bottom: 1rem;
  letter-spacing: -0.03em;
}
.cta-banner p {
  color: rgba(255,255,255,0.78);
  font-size: 1.1rem;
  max-width: 560px;
}
.cta-banner-actions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.cta-banner-actions .btn-outline {
  color: var(--ivory) !important;
  border-color: rgba(255,255,255,0.4);
}
.cta-banner-actions .btn-outline::after { background: var(--ivory); }
.cta-banner-actions .btn-outline:hover {
  color: var(--panev-ink) !important;
  border-color: var(--ivory);
}
.cta-banner-contact {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.15);
  font-size: 0.9rem;
  color: rgba(255,255,255,0.7);
}
.cta-banner-contact a { color: var(--ivory); font-weight: 500; }

/* Products header editorial */
.products-header {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 3rem;
  margin-bottom: 4rem;
  align-items: end;
}
@media(max-width:900px){ .products-header { grid-template-columns: 1fr; } }

/* SVG icon rendered as SVG not emoji */
.svc-icon svg { width: 28px; height: 28px; stroke: currentColor; fill: none; stroke-width: 1.5; }

/* Universal icon containers — ensure SVGs render at right size */
.bac-icon, .bda-icon, .bcc-logo, .pbc-icon, .cps-icon, .cic-icon, .feat-icon,
.contact-det-icon, .psi-icon, .test-stars {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--panev-blue);
  background: var(--panev-blue-10);
  margin-bottom: 1.2rem;
  flex-shrink: 0;
}
.bac-icon svg, .bda-icon svg, .bcc-logo svg, .pbc-icon svg, .cps-icon svg, .cic-icon svg,
.feat-icon svg, .contact-det-icon svg, .psi-icon svg, .test-stars svg {
  width: 22px;
  height: 22px;
  stroke-width: 1.5;
}

/* In dark sections keep icon readable */
.section-dark .svc-icon,
section[style*="--dark"] .svc-icon {
  background: rgba(255,255,255,0.08);
  color: var(--panev-blue-25);
}
.section-dark .svc-card:hover .svc-icon,
section[style*="--dark"] .svc-card:hover .svc-icon {
  background: var(--panev-blue-25);
  color: var(--panev-ink);
}

/* Logo mark — small circular brand indicator */
.brand-mark {
  width: 44px; height: 44px;
  background: var(--panev-blue);
  color: var(--ivory);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 500;
  letter-spacing: -0.04em;
}
/* ═══════════════════════════════════════════════════════════════
   SECTION BACKGROUNDS — Enriched, atmospheric, never flat
   ═══════════════════════════════════════════════════════════════ */

/* Soft section — warmer paper with subtle gradient */
.section-soft, section.bg-soft {
  background:
    radial-gradient(ellipse 80% 40% at 50% 0%, rgba(22, 40, 97, 0.04) 0%, transparent 70%),
    linear-gradient(180deg, var(--bone-2) 0%, #ede9e0 100%);
  position: relative;
}
.section-soft::before, section.bg-soft::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(22, 40, 97, 0.22) 20%, rgba(22, 40, 97, 0.22) 80%, transparent 100%);
  pointer-events: none;
  z-index: 3;
}

/* Tint section — cool navy wash, subtle gradient, atmospheric */
.section-tint {
  background:
    radial-gradient(ellipse 60% 50% at 25% 30%, rgba(22, 40, 97, 0.09) 0%, transparent 65%),
    radial-gradient(ellipse 60% 50% at 75% 70%, rgba(125, 131, 148, 0.07) 0%, transparent 65%),
    linear-gradient(180deg, var(--panev-blue-5) 0%, #eaeef4 100%);
  position: relative;
}
.section-tint::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--panev-blue-25), transparent);
  pointer-events: none;
  z-index: 3;
}
.section-tint::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(22, 40, 97, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(22, 40, 97, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 70% 80% at center, black 20%, transparent 90%);
  -webkit-mask-image: radial-gradient(ellipse 70% 80% at center, black 20%, transparent 90%);
  z-index: 1;
}
.section-tint > .container { position: relative; z-index: 2; }

/* Warm accent section — deeper bone with ambient glow */
.section-warm {
  background:
    radial-gradient(ellipse 70% 60% at 80% 20%, rgba(199, 154, 62, 0.10) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 20% 80%, rgba(22, 40, 97, 0.05) 0%, transparent 65%),
    linear-gradient(180deg, var(--bone-3) 0%, #e2dccd 100%);
  position: relative;
}

/* Dark section — rich navy with ambient depth + blueprint grid */
.section-dark,
section[style*="--dark"],
section[style*="--panev-deep"],
section[style*="--panev-ink"],
section[style*="background:var(--dark"],
section[style*="background: var(--dark"],
section[style*="background:#0"],
section[style*="background: #0"] {
  background:
    radial-gradient(ellipse 60% 50% at 75% 20%, rgba(22, 40, 97, 0.55) 0%, transparent 60%),
    radial-gradient(ellipse 60% 60% at 20% 85%, rgba(30, 48, 119, 0.35) 0%, transparent 65%),
    linear-gradient(180deg, #020611 0%, var(--panev-ink) 50%, #070d25 100%);
  color: var(--ivory);
  position: relative;
  overflow: hidden;
}
.section-dark::before,
section[style*="--dark"]::before,
section[style*="--panev-deep"]::before,
section[style*="--panev-ink"]::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(185, 194, 215, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(185, 194, 215, 0.06) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(180deg, transparent, black 15%, black 85%, transparent);
  -webkit-mask-image: linear-gradient(180deg, transparent, black 15%, black 85%, transparent);
  pointer-events: none;
  z-index: 0;
}
.section-dark::after,
section[style*="--dark"]::after,
section[style*="--panev-deep"]::after,
section[style*="--panev-ink"]::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(185, 194, 215, 0.35) 30%, rgba(185, 194, 215, 0.35) 70%, transparent 100%);
  pointer-events: none;
  z-index: 1;
}
.section-dark > .container,
section[style*="--dark"] > .container,
section[style*="--panev-deep"] > .container,
section[style*="--panev-ink"] > .container { position: relative; z-index: 2; }
.section-dark h1, .section-dark h2, .section-dark h3, .section-dark h4, .section-dark h5,
.section-dark .display-1, .section-dark .display-2, .section-dark .display-3,
section[style*="--dark"] h1, section[style*="--dark"] h2, section[style*="--dark"] h3, section[style*="--dark"] h4,
section[style*="--dark"] .display-1, section[style*="--dark"] .display-2, section[style*="--dark"] .display-3,
section[style*="--panev-deep"] h1, section[style*="--panev-deep"] h2, section[style*="--panev-deep"] h3,
section[style*="--panev-ink"] h1, section[style*="--panev-ink"] h2, section[style*="--panev-ink"] h3 {
  color: var(--ivory) !important;
}
.section-dark p,
section[style*="--dark"] p,
section[style*="--panev-deep"] p,
section[style*="--panev-ink"] p {
  color: rgba(255,255,255,0.78) !important;
}
.section-dark em,
section[style*="--dark"] em,
section[style*="--panev-deep"] em,
section[style*="--panev-ink"] em {
  color: var(--panev-blue-25) !important;
}
.section-dark .eyebrow,
section[style*="--dark"] .eyebrow,
section[style*="--panev-deep"] .eyebrow,
section[style*="--panev-ink"] .eyebrow {
  color: var(--panev-blue-25);
}
.section-dark .eyebrow::before,
section[style*="--dark"] .eyebrow::before,
section[style*="--panev-deep"] .eyebrow::before,
section[style*="--panev-ink"] .eyebrow::before {
  background: var(--panev-blue-25);
}
.section-dark .lead,
section[style*="--dark"] .lead,
section[style*="--panev-deep"] .lead,
section[style*="--panev-ink"] .lead {
  color: rgba(255,255,255,0.85);
}
/* Buttons in dark sections remain visible */
.section-dark .btn-outline,
section[style*="--dark"] .btn-outline,
section[style*="--panev-deep"] .btn-outline,
section[style*="--panev-ink"] .btn-outline {
  color: var(--ivory) !important;
  border-color: rgba(255,255,255,0.4);
}
.section-dark .btn-outline:hover,
section[style*="--dark"] .btn-outline:hover,
section[style*="--panev-deep"] .btn-outline:hover,
section[style*="--panev-ink"] .btn-outline:hover {
  color: var(--panev-ink) !important;
  border-color: var(--ivory);
}
.section-dark .btn-outline::after,
section[style*="--dark"] .btn-outline::after,
section[style*="--panev-deep"] .btn-outline::after,
section[style*="--panev-ink"] .btn-outline::after { background: var(--ivory); }

.section-dark .btn-ghost,
section[style*="--dark"] .btn-ghost,
section[style*="--panev-deep"] .btn-ghost,
section[style*="--panev-ink"] .btn-ghost {
  color: var(--panev-blue-25) !important;
}
.section-dark .btn-ghost:hover,
section[style*="--dark"] .btn-ghost:hover,
section[style*="--panev-deep"] .btn-ghost:hover,
section[style*="--panev-ink"] .btn-ghost:hover {
  background: rgba(255,255,255,0.08);
  color: var(--ivory) !important;
}

.section-header {
  max-width: 760px;
  margin-bottom: 5rem;
}
.section-header.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-header.center .eyebrow { justify-content: center; }
.section-title, h2.section-title { margin-bottom: 1.5rem; }

.editorial-header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  margin-bottom: 5rem;
  align-items: end;
}
.editorial-header h2 { margin: 0; }
.editorial-header-side { max-width: 440px; }
@media(max-width:900px){
  .editorial-header { grid-template-columns: 1fr; gap: 2rem; }
}

/* PAGE HERO */
.page-hero {
  padding: calc(var(--nav-total-h) + 40px) 0 100px;
  background: var(--bone);
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(22, 40, 97, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(22, 40, 97, 0.03) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(180deg, black 0%, transparent 100%);
  pointer-events: none;
}
.page-hero > .container { position: relative; z-index: 1; }
.page-hero h1 {
  font-size: clamp(2.5rem, 6vw, 5.5rem);
  margin-bottom: 1.5rem;
  font-weight: 300;
  line-height: 1;
  letter-spacing: -0.04em;
}
.page-hero p, .page-hero-sub {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 1.6vw, 1.4rem);
  color: var(--text-soft);
  max-width: 680px;
  line-height: 1.55;
}

.bc, .breadcrumb, nav[aria-label="Breadcrumb"] {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--text-muted);
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.bc a, .breadcrumb a { color: var(--panev-blue); }
.bc a:hover, .breadcrumb a:hover { color: var(--panev-blue-90); }
.bc-sep { color: var(--gray-300); }

/* CARDS */
.card, .feature-card {
  background: var(--ivory);
  border: 1px solid var(--border);
  padding: 2.5rem 2.2rem;
  transition: all var(--ease-slow);
  position: relative;
}
.card:hover, .feature-card:hover {
  background: var(--bone);
  border-color: var(--panev-blue);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.svc-card {
  background: var(--ivory);
  padding: 3rem 2.5rem 2.5rem;
  position: relative;
  transition: all var(--ease);
  overflow: hidden;
}
.svc-card::before {
  content: attr(data-num);
  position: absolute;
  top: 28px;
  right: 28px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.1em;
}
.svc-card::after {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 2px;
  background: var(--panev-blue);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--ease-slow);
}
.svc-card:hover::after { transform: scaleX(1); }
.svc-card:hover {
  background: var(--bone);
}

.svc-icon {
  width: 56px; height: 56px;
  background: var(--panev-blue-10);
  color: var(--panev-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 1.8rem;
  transition: all var(--ease);
}
.svc-card:hover .svc-icon {
  background: var(--panev-blue);
  color: var(--ivory);
}

.svc-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 500;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}
.svc-desc {
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--text-soft);
  margin-bottom: 1.5rem;
}
.svc-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--panev-blue);
  transition: gap var(--ease);
}
.svc-link:hover { gap: 0.8rem; }

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--border);
  border-left: 1px solid var(--border);
}
.services-grid .svc-card {
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
@media(max-width:960px){ .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media(max-width:640px){ .services-grid { grid-template-columns: 1fr; } }

/* PRODUCT CARDS */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 0;
  border-top: 1px solid var(--border);
  border-left: 1px solid var(--border);
}
.product-card {
  background: var(--ivory);
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: all var(--ease);
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.product-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 3px; height: 0;
  background: var(--panev-blue);
  transition: height var(--ease-slow);
}
.product-card:hover {
  background: var(--bone);
  z-index: 2;
}
.product-card:hover::before { height: 100%; }
.product-card-patent {
  background: linear-gradient(180deg, var(--panev-blue-5) 0%, var(--ivory) 60%);
}
.product-card-patent::before { height: 100%; }

.product-thumb {
  aspect-ratio: 4/3;
  background: var(--bone-2);
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}
.product-thumb::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(22, 40, 97, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(22, 40, 97, 0.025) 1px, transparent 1px);
  background-size: 20px 20px;
  pointer-events: none;
}
.product-thumb img, .product-thumb picture {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 20px;
  position: relative;
  z-index: 1;
  transition: transform var(--ease-slow);
}
.product-card:hover .product-thumb img { transform: scale(1.05); }
.product-thumb-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: var(--steel-light);
}

.product-badge {
  position: absolute;
  top: 14px; left: 14px;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 6px 12px;
  background: var(--panev-blue);
  color: var(--ivory);
  font-family: var(--font-body);
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  z-index: 2;
}

.product-info {
  padding: 1.5rem 1.6rem 1.6rem;
  display: flex;
  flex-direction: column;
  flex: 1;
  position: relative;
}

.product-cat {
  font-family: var(--font-body);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--panev-blue);
  margin-bottom: 8px;
}

.product-codice {
  display: inline-block;
  padding: 3px 10px;
  background: var(--panev-ink);
  color: var(--ivory);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  margin-bottom: 12px;
  align-self: flex-start;
}

.product-name {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 10px;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.product-desc-short {
  font-size: 0.86rem;
  line-height: 1.55;
  color: var(--text-muted);
  margin-bottom: 1.2rem;
  flex: 1;
}

.product-footer {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.8rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  margin-top: auto;
}

.product-price {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--ink);
  line-height: 1;
  letter-spacing: -0.02em;
}
.product-price span[style*="color"],
.product-price > span { color: var(--panev-blue) !important; }
.product-price small {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 500;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 4px;
}

.btn-cart {
  padding: 10px 16px;
  background: var(--panev-blue);
  color: var(--ivory);
  border-radius: 0;
  font-size: 0.8rem;
  font-weight: 500;
  transition: all var(--ease);
  white-space: nowrap;
}
.btn-cart:hover {
  background: var(--panev-ink);
  transform: translateY(-2px);
}

/* FILTER */
.filter-bar {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  align-items: center;
  padding: 6px;
  background: var(--ivory);
  border: 1px solid var(--border);
  margin-bottom: 2rem;
}
.filter-btn {
  padding: 12px 22px;
  background: transparent;
  color: var(--text-soft);
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 500;
  transition: all var(--ease);
  letter-spacing: 0.01em;
}
.filter-btn:hover {
  background: var(--panev-blue-10);
  color: var(--panev-blue);
}
.filter-btn.active {
  background: var(--panev-blue);
  color: var(--ivory);
}
.filter-search {
  margin-left: auto;
  position: relative;
  flex: 1;
  max-width: 280px;
  min-width: 180px;
}
.filter-search-ico {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}
.filter-search input {
  width: 100%;
  padding: 12px 14px 12px 40px;
  font-size: 0.88rem;
  background: var(--bone);
  border: 1px solid transparent;
}
.filter-search input:focus { border-color: var(--panev-blue); }

/* FORMS */
.form-group { margin-bottom: 1.4rem; }
label {
  display: block;
  font-family: var(--font-body);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--ink);
  margin-bottom: 8px;
  text-transform: uppercase;
}
label .required { color: var(--danger); font-weight: 400; }

input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]),
textarea, select, .form-control, .form-input, .form-select {
  width: 100%;
  padding: 14px 16px;
  background: var(--ivory);
  color: var(--ink);
  border: 1px solid var(--border-strong);
  border-radius: 0;
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: all var(--ease);
}
input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--panev-blue);
  box-shadow: 0 0 0 3px rgba(22, 40, 97, 0.12);
  background: var(--bone);
}
input::placeholder, textarea::placeholder { color: var(--text-muted); }
textarea { resize: vertical; min-height: 140px; }

input[type="checkbox"], input[type="radio"] { accent-color: var(--panev-blue); }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
@media(max-width:640px){ .form-row { grid-template-columns: 1fr; } }

.form-msg {
  padding: 16px 20px;
  border-radius: 0;
  font-size: 0.88rem;
  margin-bottom: 1.2rem;
  border-left: 3px solid;
}
.form-msg-success {
  background: #f0f9f4;
  color: #14532d;
  border-color: var(--success);
}
.form-msg-error {
  background: #fef2f2;
  color: #7f1d1d;
  border-color: var(--danger);
}

/* FOOTER */
/* ═══════════════════════════════════════════════════════════════
   FOOTER — Institutional Italian industrial
   Structure: top CTA strip + main grid (brand + 4 cols) + bottom bar
   ═══════════════════════════════════════════════════════════════ */
footer, #footer {
  background:
    radial-gradient(ellipse 60% 50% at 20% 30%, rgba(22, 40, 97, 0.45) 0%, transparent 60%),
    radial-gradient(ellipse 70% 60% at 85% 80%, rgba(22, 40, 97, 0.3) 0%, transparent 65%),
    linear-gradient(180deg, #020611 0%, var(--panev-ink) 55%, #050a1c 100%);
  color: var(--ivory);
  padding: 0;
  position: relative;
  overflow: hidden;
}
footer::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(185, 194, 215, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(185, 194, 215, 0.035) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse 80% 80% at center, black 0%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 80% 80% at center, black 0%, transparent 80%);
  pointer-events: none;
  z-index: 0;
}

/* ─── TOP INSTITUTIONAL STRIP ─── */
.footer-strip {
  background: rgba(3, 8, 24, 0.6);
  border-bottom: 1px solid rgba(185, 194, 215, 0.08);
  position: relative;
  z-index: 1;
}
.footer-strip::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg,
    #009246 0%, #009246 33.33%,
    #ffffff 33.33%, #ffffff 66.66%,
    #ce2b37 66.66%, #ce2b37 100%);
  opacity: 0.85;
}
.footer-strip-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  padding: 22px 0;
  flex-wrap: wrap;
}
.footer-strip-left, .footer-strip-right {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.footer-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
}
.footer-tag svg { width: 15px; height: 15px; color: var(--panev-blue-25); flex-shrink: 0; }
.footer-tag-mono {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--panev-blue-25);
  letter-spacing: 0.04em;
  margin-left: 2px;
}
.footer-tag-sep {
  width: 1px; height: 16px;
  background: rgba(255, 255, 255, 0.18);
  display: inline-block;
}
.footer-tricolor-sm {
  display: inline-flex;
  width: 18px;
  height: 12px;
  border-radius: 1px;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: 0 0 0 0.5px rgba(255, 255, 255, 0.2);
}
.footer-tricolor-sm i { flex: 1; display: block; }

.footer-strip-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 10px 20px;
  background: var(--panev-blue);
  color: var(--ivory);
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: all var(--ease);
  border: 1px solid var(--panev-blue-90);
}
.footer-strip-cta svg { width: 14px; height: 14px; transition: transform var(--ease); }
.footer-strip-cta:hover {
  background: var(--ivory);
  color: var(--panev-ink);
  border-color: var(--ivory);
}
.footer-strip-cta:hover svg { transform: translateX(3px); }

/* ─── MAIN FOOTER ─── */
.footer-main {
  padding: 80px 0 40px;
  position: relative;
  z-index: 1;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 2.2fr;
  gap: 5rem;
  margin-bottom: 4rem;
}

/* Brand column */
.footer-brand { max-width: 420px; }
.footer-logo-link {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 1.5rem;
  text-decoration: none;
}
.footer-logo-tricolor {
  display: inline-flex;
  width: 3px;
  height: 42px;
  flex-direction: column;
  flex-shrink: 0;
  border-radius: 1px;
  overflow: hidden;
}
.footer-logo-tricolor i { flex: 1; }
.footer-logo-img-tag, .footer-logo-svg {
  height: 44px;
  width: auto;
  max-width: 210px;
  opacity: 0.95;
  transition: opacity var(--ease);
}
.footer-logo-link:hover .footer-logo-img-tag { opacity: 1; }

.footer-brand-tagline {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.95rem;
  line-height: 1.65;
  margin: 0 0 2rem;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-variation-settings: "opsz" 144;
}

/* Institutional company card */
.footer-inst-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 20px 22px;
  position: relative;
}
.footer-inst-card::before {
  content: 'REGISTRO IMPRESE · MIMIT';
  position: absolute;
  top: -8px;
  left: 16px;
  padding: 2px 8px;
  background: var(--panev-ink);
  font-family: var(--font-mono);
  font-size: 0.62rem;
  color: var(--panev-blue-25);
  letter-spacing: 0.18em;
  font-weight: 600;
}
.footer-inst-row {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 14px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.82rem;
}
.footer-inst-row:last-child { border-bottom: none; padding-bottom: 0; }
.footer-inst-row:first-child { padding-top: 4px; }
.footer-inst-label {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  color: rgba(255, 255, 255, 0.45);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding-top: 2px;
}
.footer-inst-value {
  color: rgba(255, 255, 255, 0.88);
  font-weight: 500;
  line-height: 1.5;
}
.footer-inst-mono {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--panev-blue-25);
  letter-spacing: 0.02em;
}

/* Navigation columns */
.footer-cols {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1.3fr;
  gap: 2.5rem;
}

footer h5 {
  color: var(--ivory);
  margin-bottom: 1.4rem;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  position: relative;
}
footer h5::after {
  content: '';
  position: absolute;
  left: 0; bottom: -1px;
  width: 24px; height: 1px;
  background: var(--panev-blue-25);
}
footer ul li { margin-bottom: 0.65rem; }
footer ul a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.88rem;
  font-weight: 400;
  transition: all var(--ease);
  position: relative;
  padding-left: 0;
}
footer ul a::before {
  content: '';
  display: inline-block;
  width: 0; height: 1px;
  background: var(--panev-blue-25);
  vertical-align: middle;
  margin-right: 0;
  transition: all var(--ease);
}
footer ul a:hover {
  color: var(--ivory);
}
footer ul a:hover::before {
  width: 10px;
  margin-right: 8px;
}

/* Contact column */
.footer-col-contact { }
.footer-contact-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: all var(--ease);
  text-decoration: none;
}
.footer-contact-row:last-child { border-bottom: none; }
.footer-contact-row::before { display: none; }
.footer-contact-row:hover { padding-left: 6px; }
.footer-contact-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}
.footer-contact-value {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--ivory);
  letter-spacing: -0.01em;
  line-height: 1.2;
}
.footer-contact-value.footer-contact-email {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  letter-spacing: 0;
}
.footer-contact-meta {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 0.02em;
}
.footer-contact-urgent .footer-contact-label { color: #ffb3b3; }
.footer-contact-urgent .footer-contact-value { color: var(--ivory); }
.footer-urgent-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--italy-red);
  animation: navPulse 2s infinite;
}

/* Bottom bar */
.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}
.footer-bottom-left { }
.footer-bottom a { color: rgba(255,255,255,0.7); }
.footer-bottom a:hover { color: var(--ivory); }
.footer-copyright {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 4px;
}
.footer-credit {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.45);
  letter-spacing: 0.04em;
  margin: 0;
}
.footer-credit-link {
  color: var(--panev-blue-25) !important;
  font-weight: 600;
  text-decoration: none;
  transition: color var(--ease);
}
.footer-credit-link:hover { color: var(--ivory) !important; }

.footer-social {
  display: inline-flex;
  gap: 8px;
}
.soc-link {
  width: 38px; height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: rgba(255, 255, 255, 0.7) !important;
  border: 1px solid rgba(255, 255, 255, 0.15);
  transition: all var(--ease);
}
.soc-link svg { width: 16px; height: 16px; }
.soc-link:hover {
  background: var(--panev-blue);
  color: var(--ivory) !important;
  border-color: var(--panev-blue);
  transform: translateY(-2px);
}

/* Responsive */
@media(max-width:1100px){
  .footer-grid { grid-template-columns: 1fr; gap: 3rem; }
  .footer-cols { grid-template-columns: repeat(2, 1fr); gap: 2rem; }
}
@media(max-width:768px){
  .footer-main { padding: 60px 0 30px; }
  .footer-strip-inner { flex-direction: column; align-items: flex-start; padding: 16px 0; gap: 1rem; }
  .footer-strip-left { gap: 1rem; font-size: 0.74rem; }
  .footer-strip-right { width: 100%; }
  .footer-strip-cta { width: 100%; justify-content: center; }
  .footer-cols { grid-template-columns: 1fr 1fr; gap: 1.8rem; }
  .footer-col-contact { grid-column: 1 / -1; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 1rem; text-align: left; }
  .footer-inst-row { grid-template-columns: 90px 1fr; gap: 10px; font-size: 0.78rem; }
}
@media(max-width:560px){
  .footer-cols { grid-template-columns: 1fr; }
  .footer-tag-sep { display: none; }
}

/* TOAST */
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--panev-ink);
  color: var(--ivory);
  padding: 16px 22px;
  box-shadow: var(--shadow-lg);
  font-size: 0.9rem;
  opacity: 0;
  transform: translateY(20px);
  transition: all var(--ease);
  z-index: 1000;
  pointer-events: none;
  border-left: 3px solid var(--panev-blue);
}
.toast.show { opacity: 1; transform: translateY(0); }

/* CART SIDEBAR */
#cart-sidebar {
  position: fixed;
  top: 0; right: -460px;
  width: min(460px, 100%);
  height: 100vh;
  background: var(--bone);
  box-shadow: var(--shadow-xl);
  z-index: 101;
  transition: right var(--ease-slow);
  display: flex;
  flex-direction: column;
}
#cart-sidebar.open { right: 0; }
.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(3, 8, 24, 0.6);
  backdrop-filter: blur(4px);
  z-index: 100;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--ease);
}
.cart-overlay.open { opacity: 1; pointer-events: auto; }

/* ==================================================
   COOKIE BANNER — FIXED POSITIONING
   ================================================== */
#pa-cookie-overlay {
  position: fixed;
  inset: 0;
  background: rgba(3, 8, 24, 0.45);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  z-index: 9998;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--ease-slow);
}
#pa-cookie-overlay.pa-visible {
  opacity: 1;
  pointer-events: auto;
}

#pa-cookie-banner {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%) translateY(calc(100% + 48px));
  width: min(720px, calc(100vw - 32px));
  max-height: calc(100vh - 48px);
  background: var(--ivory);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-xl);
  z-index: 9999;
  transition: transform var(--ease-slow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
#pa-cookie-banner.pa-visible {
  transform: translateX(-50%) translateY(0);
}

.pa-cb-inner {
  padding: 28px 32px;
  overflow-y: auto;
}

.pa-cb-content {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 20px;
}
.pa-cb-icon {
  font-size: 1.8rem;
  line-height: 1;
  flex-shrink: 0;
}
.pa-cb-text h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 500;
  color: var(--ink);
  margin: 0 0 8px;
  letter-spacing: -0.02em;
}
.pa-cb-text p {
  font-size: 0.88rem;
  color: var(--text-soft);
  line-height: 1.6;
  margin: 0;
}
.pa-cb-text a {
  color: var(--panev-blue);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.pa-cb-settings {
  margin: 20px 0;
  padding: 16px;
  background: var(--bone-2);
  border-radius: var(--r-sm);
}
.pa-toggle-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.pa-toggle-row:last-child { border-bottom: none; }
.pa-toggle-info strong {
  display: block;
  font-size: 0.88rem;
  color: var(--ink);
  margin-bottom: 4px;
}
.pa-toggle-info span {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.5;
}
.pa-toggle-switch.always-on {
  font-size: 0.72rem;
  color: var(--panev-blue);
  font-weight: 600;
  padding: 4px 10px;
  background: var(--panev-blue-10);
  border-radius: var(--r-xs);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
  flex-shrink: 0;
}
.pa-switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
}
.pa-switch input { opacity: 0; width: 0; height: 0; }
.pa-slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background: var(--gray-300);
  transition: var(--ease);
  border-radius: 24px;
}
.pa-slider::before {
  position: absolute;
  content: "";
  height: 18px; width: 18px;
  left: 3px; bottom: 3px;
  background: var(--ivory);
  transition: var(--ease);
  border-radius: 50%;
  box-shadow: var(--shadow-xs);
}
.pa-switch input:checked + .pa-slider { background: var(--panev-blue); }
.pa-switch input:checked + .pa-slider::before { transform: translateX(20px); }

.pa-cb-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.pa-cb-btn {
  padding: 12px 20px;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  border-radius: var(--r-sm);
  cursor: pointer;
  transition: all var(--ease);
  border: 1px solid transparent;
}
.pa-cb-settings-btn {
  background: transparent;
  color: var(--text-soft);
  margin-right: auto;
}
.pa-cb-settings-btn:hover { color: var(--ink); background: var(--bone-2); }
.pa-cb-reject {
  background: transparent;
  color: var(--ink);
  border-color: var(--border-strong);
}
.pa-cb-reject:hover {
  background: var(--ink);
  color: var(--ivory);
  border-color: var(--ink);
}
.pa-cb-accept {
  background: var(--panev-blue);
  color: var(--ivory);
  box-shadow: var(--shadow-brand);
}
.pa-cb-accept:hover {
  background: var(--panev-ink);
  transform: translateY(-1px);
}
.pa-cb-save-row {
  margin-top: 16px;
  display: flex;
  justify-content: flex-end;
}
.pa-cb-save {
  background: var(--panev-blue);
  color: var(--ivory);
  padding: 12px 24px;
}
.pa-cb-save:hover { background: var(--panev-ink); }

@media(max-width:640px){
  #pa-cookie-banner {
    left: 16px;
    right: 16px;
    bottom: 16px;
    width: auto;
    transform: translateY(calc(100% + 32px));
  }
  #pa-cookie-banner.pa-visible { transform: translateY(0); }
  .pa-cb-inner { padding: 20px; }
  .pa-cb-actions { flex-direction: column-reverse; }
  .pa-cb-actions .pa-cb-btn { width: 100%; }
  .pa-cb-settings-btn { margin-right: 0; margin-top: 8px; }
}

/* SCROLLBAR */
::-webkit-scrollbar { width: 12px; background: var(--bone); }
::-webkit-scrollbar-thumb {
  background: var(--steel-light);
  border: 3px solid var(--bone);
  border-radius: 6px;
}
::-webkit-scrollbar-thumb:hover { background: var(--panev-blue); }

/* ANIMATIONS */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(32px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.reveal {
  animation: fadeUp 0.85s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.hero-content > * { animation: fadeUp 0.9s cubic-bezier(0.22, 1, 0.36, 1) both; }
.hero-content > *:nth-child(1) { animation-delay: 0.1s; }
.hero-content > *:nth-child(2) { animation-delay: 0.2s; }
.hero-content > *:nth-child(3) { animation-delay: 0.35s; }
.hero-content > *:nth-child(4) { animation-delay: 0.5s; }
.hero-content > *:nth-child(5) { animation-delay: 0.65s; }

.stats-grid .stat-item { animation: fadeUp 0.8s cubic-bezier(0.22, 1, 0.36, 1) both; }
.stats-grid .stat-item:nth-child(1) { animation-delay: 0.05s; }
.stats-grid .stat-item:nth-child(2) { animation-delay: 0.15s; }
.stats-grid .stat-item:nth-child(3) { animation-delay: 0.25s; }
.stats-grid .stat-item:nth-child(4) { animation-delay: 0.35s; }

/* UTILITIES */
.text-center { text-align: center; }
.text-right  { text-align: right; }
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.mt-1 { margin-top: 1rem; } .mb-1 { margin-bottom: 1rem; }
.mt-2 { margin-top: 2rem; } .mb-2 { margin-bottom: 2rem; }
.mt-4 { margin-top: 4rem; }
.flex { display: flex; }
.gap-1 { gap: 1rem; } .gap-2 { gap: 2rem; }
.grid { display: grid; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media(max-width:900px){ .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media(max-width:600px){ .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.divider { height: 1px; background: var(--border); border: none; margin: 2rem 0; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 5px 12px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--panev-blue-10);
  color: var(--panev-blue);
}

.pull-quote {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.5vw, 2.8rem);
  font-weight: 300;
  line-height: 1.2;
  color: var(--ink);
  letter-spacing: -0.025em;
  max-width: 800px;
  position: relative;
  padding-left: 2rem;
  border-left: 2px solid var(--panev-blue);
}
.pull-quote em { color: var(--panev-blue); font-style: italic; }

.editorial-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}
@media(max-width:960px){ .editorial-split { grid-template-columns: 1fr; gap: 3rem; } }

.prose p { margin-bottom: 1.2rem; }
.prose p:last-child { margin-bottom: 0; }
.prose strong { color: var(--ink); font-weight: 600; }

/* RESPONSIVE */
@media(max-width:768px){
  .nav-cart-btn { padding: 8px 14px; font-size: 0.78rem; }
  .nav-cart-btn > span:first-child { display: none; }
  .hero { min-height: auto; padding-top: calc(var(--nav-h) + 40px); padding-bottom: 60px; }
  .hero-watermark { font-size: 14rem; }
}

/* ================================================================
   PAGE-SPECIFIC COMPONENTS — Brevetto / Chi Siamo / Catalogo / Servizi
   Enterprise styling for all custom class names used across inner pages
   ================================================================ */

/* ═══ BREVETTO PAGE ═══ */
.brev-hero {
  padding: calc(var(--nav-total-h) + 40px) 0 80px;
  background: linear-gradient(180deg, var(--bone) 0%, var(--bone-2) 100%);
  position: relative;
  overflow: hidden;
}
.brev-hero-bg {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(22, 40, 97, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(22, 40, 97, 0.04) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(180deg, black 0%, transparent 100%);
  pointer-events: none;
}
.brev-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 900px;
}
.brev-hero-badge-row {
  display: flex; gap: 0.6rem; flex-wrap: wrap; margin-bottom: 2rem;
}
.brev-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 7px 16px;
  font-family: var(--font-body);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--panev-blue);
  background: var(--panev-blue-10);
  border: 1px solid var(--panev-blue-25);
}
.brev-badge-year { background: var(--ivory); }
.brev-badge-uibm { background: var(--panev-blue); color: var(--ivory); border-color: var(--panev-blue); }
.brev-hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 5.5rem);
  font-weight: 300;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--ink);
  margin-bottom: 1.5rem;
}
.brev-accent { font-style: italic; font-weight: 400; color: var(--panev-blue); }
.brev-hero-sub, .brev-hero .patent-hero-text {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 1.6vw, 1.4rem);
  color: var(--text-soft);
  max-width: 680px;
  line-height: 1.55;
  margin-bottom: 2.5rem;
}
.brev-hero-sub strong { color: var(--panev-blue); font-weight: 500; }
.brev-hero-actions {
  display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 3rem;
}

.brev-cert-preview { margin-top: 3rem; }
.brev-cert-card {
  background: var(--ivory);
  border: 1px solid var(--border-strong);
  padding: 32px;
  max-width: 560px;
  box-shadow: var(--shadow-lg);
}
.bcc-header {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-bottom: 20px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--border);
}
.bcc-logo {
  width: 48px; height: 48px;
  background: var(--panev-blue-10);
  color: var(--panev-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.bcc-logo svg { width: 26px; height: 26px; }
.bcc-ministry {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.01em;
  line-height: 1.3;
}
.bcc-dept {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-muted);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-top: 4px;
}
.bcc-title {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 6px;
  line-height: 1.5;
}
.bcc-number {
  font-family: var(--font-mono);
  font-size: 1.6rem;
  font-weight: 500;
  color: var(--panev-blue);
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
  font-variant-numeric: tabular-nums;
}
.bcc-rows { display: flex; flex-direction: column; gap: 10px; }
.bcc-row {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 16px;
  font-size: 0.86rem;
  line-height: 1.5;
}
.bcc-row > span:first-child {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.bcc-row > span:last-child {
  color: var(--ink);
  font-weight: 500;
}
.bcc-footer {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
  font-style: italic;
}
.bcc-seal {
  margin-top: 16px;
  padding: 10px 14px;
  background: #e8f5ec;
  color: var(--italy-green);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  border-left: 3px solid var(--italy-green);
}
.bcc-seal svg { width: 16px; height: 16px; }

.brev-what-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: start;
}
@media(max-width:960px){ .brev-what-grid { grid-template-columns: 1fr; gap: 3rem; } }
.brev-what-text, .patent-what-is { padding-right: 2rem; }
.brev-what-text h3, .patent-what-is h3 {
  font-size: 1.5rem;
  font-weight: 500;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}
.brev-what-text p, .patent-what-is p {
  color: var(--text-soft);
  line-height: 1.7;
  margin-bottom: 1rem;
}

.brev-what-cards { display: flex; flex-direction: column; gap: 1px; background: var(--border); border: 1px solid var(--border); }
.brev-what-card {
  background: var(--ivory);
  padding: 2rem 2.2rem;
  display: block;
  transition: background var(--ease);
  position: relative;
}
.brev-what-card:hover { background: var(--bone); }
.bwc-num {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--panev-blue);
  letter-spacing: 0.14em;
  margin-bottom: 0.8rem;
  padding: 4px 10px;
  background: var(--panev-blue-10);
  border: 1px solid var(--panev-blue-25);
}
.brev-what-card h3, .brev-what-card h4 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 500;
  margin-bottom: 0.8rem;
  letter-spacing: -0.02em;
  color: var(--ink);
  line-height: 1.2;
}
.brev-what-card p {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text-soft);
  margin: 0;
  max-width: none;
}
.bac-icon {
  width: 48px; height: 48px;
  background: var(--panev-blue-10);
  color: var(--panev-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin: 0;
}
.bac-icon svg { width: 22px; height: 22px; }

.brev-advantage-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  margin-top: 3rem;
}
@media(max-width:900px){ .brev-advantage-grid { grid-template-columns: repeat(2, 1fr); } }
@media(max-width:600px){ .brev-advantage-grid { grid-template-columns: 1fr; } }
.brev-adv-card {
  background: var(--ivory);
  padding: 2.5rem 2rem;
  transition: background var(--ease);
}
.brev-adv-card:hover { background: var(--bone); }
.brev-adv-card h4 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 500;
  margin-bottom: 0.8rem;
  letter-spacing: -0.02em;
}
.brev-adv-card p {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--text-soft);
  margin: 0;
}

.brev-data-layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 4rem;
  align-items: start;
}
@media(max-width:900px){ .brev-data-layout { grid-template-columns: 1fr; gap: 2.5rem; } }
.brev-data-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--ivory);
  border: 1px solid var(--border);
}
.brev-data-table th,
.brev-data-table td {
  padding: 14px 18px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
}
.brev-data-table th {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  background: var(--bone-2);
  width: 180px;
}
.brev-data-table td {
  color: var(--ink);
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 0.88rem;
}
.brev-data-table td strong {
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--panev-blue);
  font-size: 1rem;
  letter-spacing: -0.01em;
}
.brev-data-aside { padding: 2rem; background: var(--bone-2); border-left: 3px solid var(--panev-blue); }
.brev-data-aside h4 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 500;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}
.brev-data-aside p {
  font-size: 0.9rem;
  line-height: 1.65;
  color: var(--text-soft);
  margin-bottom: 1rem;
}

.brev-inventors {
  display: block;
  margin-top: 3rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--border);
}
.brev-inv-label {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--panev-blue);
  margin-bottom: 1.2rem;
}
.brev-inv-label::before {
  content: '';
  display: inline-block;
  width: 36px;
  height: 1px;
  background: var(--panev-blue);
  flex-shrink: 0;
}
.brev-inv-name {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.2vw, 1.8rem);
  font-weight: 400;
  letter-spacing: -0.02em;
  color: var(--ink);
  line-height: 1.3;
  margin: 0;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  position: relative;
  padding-left: 28px;
}
.brev-inv-name:last-child { border-bottom: none; }
.brev-inv-name::before {
  content: '·';
  position: absolute;
  left: 0;
  color: var(--panev-blue);
  font-weight: 700;
  font-size: 1.5em;
  line-height: 1;
  top: 50%;
  transform: translateY(-50%);
}

/* FAQ */
.brev-faq {
  max-width: 800px;
  margin: 3rem auto 0;
  border-top: 1px solid var(--border);
}
.brev-faq-item {
  border-bottom: 1px solid var(--border);
}
.brev-faq-q {
  width: 100%;
  padding: 24px 0;
  background: transparent;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  text-align: left;
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.015em;
  transition: color var(--ease);
}
.brev-faq-q:hover { color: var(--panev-blue); }
.brev-faq-arrow {
  flex-shrink: 0;
  font-family: var(--font-mono);
  color: var(--panev-blue);
  font-size: 1.2rem;
  transition: transform var(--ease);
}
.brev-faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.brev-faq-a > div {
  padding: 0 0 24px 0;
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text-soft);
  max-width: 680px;
}
.brev-faq-item.open .brev-faq-arrow { transform: rotate(45deg); }

.bda-card {
  background: var(--panev-ink);
  color: var(--ivory);
  padding: 2rem 2.2rem;
  border-left: 3px solid var(--panev-blue);
  display: block;
  margin-top: 1.5rem;
  position: relative;
  overflow: hidden;
}
.bda-card:first-child { margin-top: 0; }
.bda-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 100% 0%, rgba(22, 40, 97, 0.4) 0%, transparent 70%);
  pointer-events: none;
}
.bda-card > * { position: relative; z-index: 1; }
.bda-icon {
  width: 44px; height: 44px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--panev-blue-25);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.2rem;
}
.bda-icon svg { width: 22px; height: 22px; }
.bda-card h3, .bda-card h4 {
  color: var(--ivory) !important;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 500;
  margin: 0 0 0.7rem;
  letter-spacing: -0.02em;
  line-height: 1.25;
  /* Prevent the vertical-text bug at all costs */
  writing-mode: horizontal-tb !important;
  word-break: normal !important;
  overflow-wrap: break-word !important;
  white-space: normal !important;
  max-width: 100%;
}
.bda-card p {
  color: rgba(255, 255, 255, 0.78) !important;
  font-size: 0.92rem;
  margin: 0 0 1rem;
  line-height: 1.65;
  writing-mode: horizontal-tb !important;
  word-break: normal !important;
  white-space: normal !important;
}
.bda-card .btn {
  margin-top: 0.8rem;
  width: 100% !important;
  display: inline-flex !important;
  justify-content: center !important;
  text-align: center !important;
  white-space: nowrap;
  box-sizing: border-box;
}
.bda-card-cta {
  background: linear-gradient(135deg, var(--panev-ink) 0%, var(--panev-deep) 100%);
  border-left-color: var(--panev-blue-25);
}

/* ═══ CHI SIAMO PAGE ═══ */
.pbc-icon {
  width: 56px; height: 56px;
  background: var(--panev-blue-10);
  color: var(--panev-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}
.pbc-icon svg { width: 26px; height: 26px; }

.about-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}
@media(max-width:960px){ .about-split { grid-template-columns: 1fr; gap: 3rem; } }
.about-img-wrap {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--bone-2);
  border: 1px solid var(--border);
}
.about-img-wrap img, .about-img-wrap picture {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform var(--ease-slow);
}
.about-img-wrap:hover img { transform: scale(1.03); }
.about-img-main { width: 100%; height: 100%; object-fit: cover; }
.about-img-badge {
  position: absolute;
  bottom: 24px; left: 24px;
  background: var(--panev-ink);
  color: var(--ivory);
  padding: 18px 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-left: 3px solid var(--panev-blue-25);
}
.about-img-badge .n {
  font-family: var(--font-display);
  font-size: 2.6rem;
  font-weight: 300;
  line-height: 1;
  color: var(--ivory);
  letter-spacing: -0.03em;
}
.about-img-badge .l {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  line-height: 1.3;
}

.about-text h2 { margin-bottom: 1.5rem; }
.about-text p {
  color: var(--text-soft);
  line-height: 1.7;
  margin-bottom: 1.2rem;
}
.about-text p strong { color: var(--panev-blue); font-weight: 600; }
.about-bullets {
  margin: 2rem 0;
  border-top: 1px solid var(--border);
}
.about-bullet {
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.92rem;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 12px;
  line-height: 1.5;
}
.about-bullet::before {
  content: '';
  width: 14px; height: 2px;
  background: var(--panev-blue);
  flex-shrink: 0;
}

/* ═══ CATALOGO PAGE ═══ */
.cat-hero {
  padding: calc(var(--nav-total-h) + 30px) 0 70px;
  background: var(--bone);
  border-bottom: 1px solid var(--border);
  position: relative;
}
.cat-hero-inner { max-width: 900px; }
.cat-badge-row {
  display: flex; gap: 0.6rem; flex-wrap: wrap; margin-bottom: 1.5rem;
}
.cat-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 6px 14px;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--panev-blue);
  background: var(--panev-blue-10);
  border: 1px solid var(--panev-blue-25);
}
.cat-badge-patent { background: var(--panev-blue); color: var(--ivory); border-color: var(--panev-blue); }

.cat-title {
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 300;
  line-height: 1;
  letter-spacing: -0.04em;
  margin-bottom: 1.5rem;
}
.cat-intro-text {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 1.6vw, 1.4rem);
  color: var(--text-soft);
  max-width: 680px;
  line-height: 1.55;
  margin-bottom: 2.5rem;
}
.cat-intro-text strong { color: var(--panev-blue); font-weight: 500; }
.cat-hero-actions {
  display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 3rem;
}
.cat-download-btn { }

.cat-meta-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin-top: 2rem;
}
@media(max-width:768px){ .cat-meta-row { grid-template-columns: repeat(2, 1fr); } }
.cat-meta-item {
  padding: 18px 16px 18px 0;
  border-right: 1px solid var(--border);
}
.cat-meta-item:last-child { border-right: none; }
.cmi-label {
  display: block;
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 6px;
}
.cmi-val {
  display: block;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.015em;
}

.cat-section-header {
  max-width: 760px;
  margin-bottom: 3rem;
}
.cat-section-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 400;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
}
.cat-section-desc {
  color: var(--text-soft);
  font-size: 1.02rem;
  line-height: 1.65;
}

.cat-type-block {
  background: var(--ivory);
  border: 1px solid var(--border);
  padding: 2.5rem;
  margin-bottom: 2rem;
}
.cat-type-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}
.cat-type-icon {
  width: 48px; height: 48px;
  background: var(--panev-blue);
  color: var(--ivory);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 500;
}
.cat-type-icon svg { width: 22px; height: 22px; }

.cat-system-img-wrap {
  margin: 2rem 0;
  background: var(--bone-2);
  border: 1px solid var(--border);
  padding: 24px;
  text-align: center;
}
.cat-system-img {
  max-width: 100%;
  height: auto;
  margin: 0 auto;
  display: block;
}

.cat-products-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1.5rem;
  font-size: 0.88rem;
}
.cat-products-table th,
.cat-products-table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}
.cat-products-table th {
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  background: var(--bone-2);
}
.cat-products-table td {
  color: var(--ink);
}
.cat-products-table td.mono {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  color: var(--panev-blue);
  font-size: 0.82rem;
}
.cat-products-table tbody tr:hover { background: var(--bone-2); }

.cat-pdf-frame-wrap {
  background: var(--bone-2);
  border: 1px solid var(--border);
  padding: 12px;
  margin-top: 2rem;
}
.cat-pdf-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 16px;
  background: var(--ivory);
  border: 1px solid var(--border);
  margin-bottom: 10px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
}
.cat-pdf-viewer {
  width: 100%;
  height: 720px;
  border: none;
  display: block;
  background: var(--ivory);
}
.cat-pdf-mobile-fallback {
  display: none;
  text-align: center;
  padding: 3rem 1rem;
}
@media(max-width:768px){
  .cat-pdf-viewer { display: none; }
  .cat-pdf-mobile-fallback { display: block; }
}
.cat-viewer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}
.cat-viewer-section { margin-bottom: 3rem; }

/* ═══ SERVIZI PAGE ═══ */
.servizi-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
  margin-bottom: 6rem;
}
.servizi-split:nth-child(even) > .about-img-wrap { order: 2; }
@media(max-width:960px){
  .servizi-split { grid-template-columns: 1fr; gap: 3rem; margin-bottom: 4rem; }
  .servizi-split:nth-child(even) > .about-img-wrap { order: 0; }
}

/* ═══ CONTATTI PAGE already has its own styles, but add fallback for old ones ═══ */
.contact-details { margin-top: 2rem; }
.contact-det {
  display: flex;
  gap: 16px;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}
.contact-det:last-child { border-bottom: none; }
.contact-det-icon {
  width: 40px; height: 40px;
  background: var(--panev-blue-10);
  color: var(--panev-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 500;
}
.contact-det-icon svg { width: 20px; height: 20px; }
.contact-det-txt .lbl {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 4px;
}
.contact-det-txt .val {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 500;
  letter-spacing: -0.015em;
}
.contact-det-txt .val a { color: var(--ink); }
.contact-det-txt .val a:hover { color: var(--panev-blue); }

/* ═══ CARRELLO PAGE ═══ */
.cart-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 3rem;
  align-items: start;
}
@media(max-width:900px){ .cart-layout { grid-template-columns: 1fr; } }

.cart-empty {
  text-align: center;
  padding: 5rem 2rem;
  background: var(--ivory);
  border: 1px solid var(--border);
}
.cart-empty svg { width: 64px; height: 64px; margin: 0 auto 1.5rem; color: var(--gray-300); }

.cart-items { background: var(--ivory); border: 1px solid var(--border); }
.cart-item {
  display: grid;
  grid-template-columns: 80px 1fr auto auto;
  gap: 20px;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
  align-items: center;
}
.cart-item:last-child { border-bottom: none; }
.cart-item-thumb {
  width: 80px; height: 80px;
  background: var(--bone-2);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.cart-item-thumb img { max-width: 100%; max-height: 100%; object-fit: contain; padding: 8px; }
.cart-item-info h4 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 500;
  margin-bottom: 4px;
  letter-spacing: -0.015em;
}
.cart-item-info .cart-item-codice {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
}
.cart-item-qty {
  display: flex;
  align-items: center;
  gap: 8px;
}
.cart-item-qty button {
  width: 32px; height: 32px;
  background: var(--bone-2);
  border: 1px solid var(--border);
  font-weight: 600;
  color: var(--ink);
  transition: background var(--ease);
}
.cart-item-qty button:hover { background: var(--panev-blue); color: var(--ivory); }
.cart-item-qty input {
  width: 48px;
  text-align: center;
  padding: 6px;
  font-family: var(--font-mono);
  font-size: 0.92rem;
  border: 1px solid var(--border);
}
.cart-item-price {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--panev-blue);
  letter-spacing: -0.01em;
  text-align: right;
  min-width: 80px;
}
.cart-item-remove {
  width: 32px; height: 32px;
  background: transparent;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--ease);
}
.cart-item-remove:hover { background: var(--danger); color: var(--ivory); }

.cart-summary {
  background: var(--bone-2);
  border: 1px solid var(--border);
  padding: 2rem;
  position: sticky;
  top: calc(var(--nav-h) + 24px);
}
.cart-summary h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
  letter-spacing: -0.02em;
}
.cart-summary-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  font-size: 0.92rem;
}
.cart-summary-total {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 2px solid var(--ink);
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--panev-blue);
}
.cart-form-card {
  background: var(--ivory);
  border: 1px solid var(--border);
  padding: 2rem;
  margin-top: 1.5rem;
}

/* ═══ SUCCESS PAGE ═══ */
.success-icon {
  width: 96px; height: 96px;
  background: #e8f5ec;
  color: var(--italy-green);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 2rem;
}
.success-icon svg { width: 48px; height: 48px; stroke-width: 2; }

/* ═══ 404 PAGE ═══ */
.err-404 {
  text-align: center;
  padding: 6rem 2rem;
}
.err-404 h1 {
  font-family: var(--font-display);
  font-size: clamp(6rem, 15vw, 12rem);
  font-weight: 200;
  color: var(--panev-blue);
  line-height: 1;
  margin-bottom: 1rem;
  letter-spacing: -0.05em;
}

/* ═══ ADMIN/LEGAL PAGES — unified prose ═══ */
.legal-content {
  max-width: 760px;
  margin: 0 auto;
}
.legal-content h2 {
  font-family: var(--font-display);
  font-size: 1.8rem;
  margin: 3rem 0 1rem;
  letter-spacing: -0.02em;
}
.legal-content h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  margin: 2rem 0 1rem;
}
.legal-content p, .legal-content li {
  color: var(--text-soft);
  line-height: 1.7;
  margin-bottom: 1rem;
}
.legal-content ul { padding-left: 2rem; list-style: disc; }
.legal-content strong { color: var(--ink); }

/* Toast icon */
.toast-ico {
  display: inline-block;
  margin-right: 8px;
  color: var(--italy-green);
  font-weight: 700;
}

/* Form block fallback */
.form-block { display: flex; flex-direction: column; gap: 1rem; }
.form-card {
  background: var(--ivory);
  border: 1px solid var(--border);
  padding: 2.2rem;
}
.form-lbl {
  display: block;
  font-family: var(--font-body);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--ink);
  margin-bottom: 8px;
  text-transform: uppercase;
}
.form-textarea {
  width: 100%;
  padding: 14px 16px;
  background: var(--ivory);
  color: var(--ink);
  border: 1px solid var(--border-strong);
  border-radius: 0;
  font-family: var(--font-body);
  font-size: 0.95rem;
  resize: vertical;
  min-height: 140px;
  transition: all var(--ease);
}
.form-textarea:focus {
  outline: none;
  border-color: var(--panev-blue);
  box-shadow: 0 0 0 3px rgba(22, 40, 97, 0.12);
}


/* ================================================================
   ORPHAN CLASSES CLEANUP — All page-specific components
   ================================================================ */

/* Legal pages (privacy/cookie/termini) */
.legal-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 4rem;
  max-width: 1200px;
  margin: 0 auto;
  align-items: start;
}
@media(max-width:900px){ .legal-layout { grid-template-columns: 1fr; } }
.legal-toc {
  position: sticky;
  top: calc(var(--nav-h) + 20px);
  padding: 1.5rem;
  background: var(--bone-2);
  border-left: 3px solid var(--panev-blue);
}
.legal-toc-inner { font-size: 0.88rem; }
.legal-toc h4 {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--panev-blue);
  margin-bottom: 1rem;
}
.legal-toc ol { list-style: decimal; padding-left: 1.5rem; margin: 0; }
.legal-toc li { margin-bottom: 0.5rem; }
.legal-toc a { color: var(--text-soft); font-size: 0.86rem; }
.legal-toc a:hover { color: var(--panev-blue); }

.legal-body {
  max-width: 780px;
}
.legal-body h2 {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 500;
  margin: 3rem 0 1rem;
  padding-top: 1rem;
  letter-spacing: -0.02em;
}
.legal-body h2:first-child { margin-top: 0; padding-top: 0; }
.legal-body h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 500;
  margin: 2rem 0 1rem;
}
.legal-body p, .legal-body li {
  color: var(--text-soft);
  line-height: 1.7;
  margin-bottom: 1rem;
}
.legal-body ul { padding-left: 2rem; list-style: disc; margin-bottom: 1rem; }
.legal-body ol { padding-left: 2rem; list-style: decimal; margin-bottom: 1rem; }
.legal-body strong { color: var(--ink); font-weight: 600; }

.legal-info-box, .legal-notice, .legal-note {
  background: var(--panev-blue-10);
  border-left: 3px solid var(--panev-blue);
  padding: 1.2rem 1.5rem;
  margin: 1.5rem 0;
  font-size: 0.92rem;
  color: var(--ink);
}
.legal-footer-note {
  margin-top: 4rem;
  padding: 1.5rem;
  background: var(--bone-2);
  border: 1px solid var(--border);
  font-size: 0.86rem;
  color: var(--text-muted);
  font-style: italic;
}
.legal-table-wrap { overflow-x: auto; margin: 1.5rem 0; }
.legal-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
  background: var(--ivory);
  border: 1px solid var(--border);
}
.legal-table th, .legal-table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  border-right: 1px solid var(--border);
}
.legal-table th {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--panev-blue);
  background: var(--bone-2);
}
.page-header {
  padding: calc(var(--nav-total-h) + 30px) 0 60px;
  background: var(--bone);
  border-bottom: 1px solid var(--border);
}

/* Cookie type cards */
.cookie-type-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin: 2rem 0;
}
@media(max-width:720px){ .cookie-type-grid { grid-template-columns: 1fr; } }
.cookie-type-card {
  background: var(--ivory);
  border: 1px solid var(--border);
  padding: 1.8rem;
}
.cookie-type-card.necessari { border-left: 3px solid var(--italy-green); }
.cookie-type-card.analitici { border-left: 3px solid var(--panev-blue); }
.cookie-type-card.consenso { border-left: 3px solid var(--accent-warm, #c79a3e); }
.cookie-type-card h4 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 500;
  margin-bottom: 0.8rem;
}
.always-on {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 3px 8px;
  background: var(--italy-green);
  color: var(--ivory);
  margin-left: 8px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Browser links in cookie page */
.browser-links {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 0.8rem;
  margin: 1.5rem 0;
}
.browser-link {
  padding: 12px 16px;
  background: var(--ivory);
  border: 1px solid var(--border);
  color: var(--ink);
  font-size: 0.88rem;
  font-weight: 500;
  text-align: center;
  transition: all var(--ease);
}
.browser-link:hover {
  background: var(--panev-blue);
  color: var(--ivory);
  border-color: var(--panev-blue);
}

/* Contatti — fallback in case new styles missing */
.contact-layout {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 3rem;
  align-items: start;
}
@media(max-width:960px){ .contact-layout { grid-template-columns: 1fr; gap: 2rem; } }
.contact-info-col { display: flex; flex-direction: column; gap: 1rem; }
.contact-form-col { }
.contact-card {
  background: var(--ivory);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 1.4rem 1.6rem;
  transition: all var(--ease);
}
.contact-card:hover {
  border-color: var(--panev-blue);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.cc-label {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--panev-blue);
  margin-bottom: 0.6rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.cc-value {
  display: block;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.1;
  margin-bottom: 0.35rem;
  letter-spacing: -0.01em;
}
.cc-value:hover { color: var(--panev-blue); }
.cc-meta { font-size: 0.82rem; color: var(--text-muted); }
.cc-email {
  display: inline-block;
  margin-top: 0.6rem;
  font-size: 0.88rem;
  color: var(--panev-blue);
  font-weight: 500;
}
.cc-email:hover { text-decoration: underline; }
.cc-addr { font-size: 0.92rem; line-height: 1.5; color: var(--ink); }
.contact-card-hero {
  background: linear-gradient(135deg, var(--panev-blue-10), var(--ivory));
  border-color: var(--panev-blue-25);
}
.contact-card-urgent {
  border-color: var(--italy-red);
  background: linear-gradient(135deg, #fef2f2, var(--ivory));
}
.contact-card-urgent .cc-label { color: var(--italy-red); }
.cc-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--italy-red);
  display: inline-block;
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.3); }
}

.orari-card {
  background: var(--bone-2);
  padding: 1.4rem 1.6rem;
  border: 1px solid var(--border);
}
.orari-card h4 {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--panev-blue);
  margin-bottom: 1rem;
}
.orari-row {
  display: flex;
  justify-content: space-between;
  padding: 0.6rem 0;
  font-size: 0.88rem;
  color: var(--text-soft);
  border-bottom: 1px solid var(--border);
}
.orari-row:last-child { border-bottom: none; }
.orari-row span:last-child {
  font-family: var(--font-mono);
  font-weight: 500;
  color: var(--ink);
}

/* Form header + badges */
.form-header {
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}
.form-badge {
  display: inline-block;
  padding: 5px 14px;
  background: var(--panev-blue-10);
  color: var(--panev-blue);
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.8rem;
}
.form-header h3 {
  font-size: 1.8rem;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 0.4rem;
  letter-spacing: -0.02em;
}
.form-subtitle {
  color: var(--text-soft);
  font-size: 0.95rem;
  line-height: 1.55;
}
.form-hint {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 0.3rem;
  font-style: italic;
}
.form-check-row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.75rem;
  align-items: start;
  padding: 1rem;
  background: var(--bone-2);
  border: 1px solid var(--border);
}
.form-check-row input[type="checkbox"] {
  width: 18px; height: 18px;
  margin-top: 2px;
  cursor: pointer;
}
.form-check-row label {
  font-size: 0.82rem !important;
  font-weight: 400 !important;
  color: var(--text-soft) !important;
  line-height: 1.5;
  letter-spacing: 0 !important;
  text-transform: none !important;
  cursor: pointer;
}
.form-check-row label a {
  color: var(--panev-blue);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.btn-full, .btn-lg { width: 100%; padding: 18px; font-size: 1rem; margin-top: 1.2rem; }
.btn-text-danger { color: var(--danger) !important; background: transparent; }
.form-footer-note {
  text-align: center;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 1.2rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--border);
}
.honeypot {
  position: absolute !important;
  left: -9999px !important;
  top: -9999px !important;
  opacity: 0 !important;
  pointer-events: none !important;
}
.form-success-msg {
  text-align: center;
  padding: 3rem 1rem;
  animation: fadeUp 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.form-success-ico {
  width: 72px; height: 72px;
  margin: 0 auto 1.5rem;
  border-radius: 50%;
  background: #dcfce7;
  color: #16a34a;
  display: flex;
  align-items: center;
  justify-content: center;
}
.form-success-msg h4 {
  font-size: 1.6rem;
  color: var(--ink);
  margin-bottom: 0.8rem;
  font-weight: 500;
}
.form-success-footer {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  flex-wrap: wrap;
}

/* Map card */
.map-card {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  background: var(--ivory);
}
@media(max-width:800px){ .map-card { grid-template-columns: 1fr; } }
.map-placeholder {
  min-height: 360px;
  background: var(--gray-100);
}
.map-placeholder iframe { display: block; width: 100%; height: 100%; border: 0; }
.map-info {
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.map-info h3 {
  font-size: 1.5rem;
  color: var(--ink);
  margin-top: 0.5rem;
  line-height: 1.3;
}

/* Patent details (prodotti.html hero sections) */
.patent-hero {
  padding: calc(var(--nav-total-h) + 30px) 0 60px;
  background: var(--bone);
  border-bottom: 1px solid var(--border);
}
.patent-hero-text {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 1.6vw, 1.3rem);
  color: var(--text-soft);
  line-height: 1.6;
  max-width: 720px;
}
.patent-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 3.5rem);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
}
.patent-number, .patent-badge, .patent-badge-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 6px 14px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--panev-blue);
  background: var(--panev-blue-10);
  border: 1px solid var(--panev-blue-25);
  letter-spacing: 0.02em;
  margin-right: 0.5rem;
}
.patent-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--border);
  border-left: 1px solid var(--border);
  margin-top: 2rem;
}
@media(max-width:900px){ .patent-grid { grid-template-columns: repeat(2, 1fr); } }
@media(max-width:600px){ .patent-grid { grid-template-columns: 1fr; } }
.patent-benefit-card {
  padding: 2rem;
  background: var(--ivory);
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.patent-benefit-card h4 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 500;
  margin-bottom: 0.8rem;
  letter-spacing: -0.015em;
}
.patent-desc {
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--text-soft);
}
.patent-content { padding: 2rem 0; }
.patent-detail, .pd-label, .pd-value { font-family: var(--font-mono); font-size: 0.86rem; }
.pd-label { color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.72rem; margin-bottom: 4px; }
.pd-value { color: var(--ink); font-weight: 500; }

.patent-seal {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  background: #e8f5ec;
  border-left: 3px solid var(--italy-green);
  margin: 1rem 0;
}
.patent-seal-icon {
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  color: var(--italy-green);
}
.patent-seal-icon svg { width: 22px; height: 22px; stroke-width: 2; }
.patent-seal-label {
  font-family: var(--font-body);
  font-size: 0.82rem;
  color: var(--italy-green);
  font-weight: 600;
}
.patent-seal-inner { display: flex; align-items: center; gap: 8px; }

.patent-faq-answer { padding: 0 0 1.5rem; color: var(--text-soft); line-height: 1.7; }

/* Product modal */
.pm-overlay {
  position: fixed; inset: 0;
  background: rgba(3, 8, 24, 0.7);
  backdrop-filter: blur(6px);
  z-index: 102;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  opacity: 0;
  transition: opacity var(--ease);
}
.pm-overlay.open { display: flex; opacity: 1; }
.pm-content {
  background: var(--ivory);
  max-width: 900px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}
@media(max-width:768px){ .pm-content { grid-template-columns: 1fr; } }
.pm-img {
  background: var(--bone-2);
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
}
.pm-img img { max-width: 100%; max-height: 100%; object-fit: contain; }
.pm-info { padding: 2.5rem; display: flex; flex-direction: column; }
.pm-close {
  position: absolute;
  top: 16px; right: 16px;
  width: 40px; height: 40px;
  background: var(--ivory);
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  cursor: pointer;
  z-index: 2;
}
.pm-cat {
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--panev-blue);
  margin-bottom: 8px;
}
.pm-name {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
  letter-spacing: -0.025em;
  line-height: 1.15;
}
.pm-desc {
  color: var(--text-soft);
  line-height: 1.65;
  margin-bottom: 1.5rem;
  flex: 1;
}
.pm-specs {
  background: var(--bone-2);
  padding: 1.2rem;
  margin-bottom: 1.5rem;
  font-size: 0.88rem;
}
.pm-specs div {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  border-bottom: 1px solid var(--border);
}
.pm-specs div:last-child { border-bottom: none; }
.pm-specs span:first-child { color: var(--text-muted); }
.pm-specs span:last-child { font-family: var(--font-mono); color: var(--ink); font-weight: 500; }
.pm-price {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 500;
  color: var(--panev-blue);
  margin-bottom: 1.2rem;
  letter-spacing: -0.02em;
}
.pm-qty-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.2rem;
}
.pm-qty-label {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.pm-qty-ctrl {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--border);
}
.pm-qty-b {
  width: 36px; height: 36px;
  background: var(--bone-2);
  border: none;
  font-weight: 600;
  color: var(--ink);
}
.pm-qty-b:hover { background: var(--panev-blue); color: var(--ivory); }
.pm-qty-val {
  min-width: 48px;
  text-align: center;
  font-family: var(--font-mono);
  font-weight: 600;
}

/* Cart page */
.cart-page-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 3rem;
  align-items: start;
}
@media(max-width:900px){ .cart-page-layout { grid-template-columns: 1fr; } }
.cart-items-col { min-width: 0; }
.cart-summary-col { }
.cart-summary-card {
  background: var(--ivory);
  border: 1px solid var(--border);
  padding: 2rem;
  position: sticky;
  top: calc(var(--nav-h) + 24px);
}
.cart-col-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}
.cart-col-head h2 {
  font-size: 1.5rem;
  font-weight: 500;
  letter-spacing: -0.02em;
}
.cart-page-item {
  display: grid;
  grid-template-columns: 80px 1fr auto auto;
  gap: 20px;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
  align-items: center;
}
.cart-page-item:last-child { border-bottom: none; }
.summary-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  font-size: 0.92rem;
  color: var(--text-soft);
}
.summary-divider { height: 1px; background: var(--border); margin: 0.8rem 0; }
.summary-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 1rem 0;
  border-top: 2px solid var(--ink);
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 500;
  color: var(--panev-blue);
  letter-spacing: -0.02em;
}
.checkout-note {
  margin-top: 1rem;
  padding: 1rem;
  background: var(--panev-blue-10);
  border-left: 3px solid var(--panev-blue);
  font-size: 0.82rem;
  color: var(--text-soft);
  line-height: 1.55;
}
.stripe-pay-btn { width: 100%; margin-top: 1rem; }
.stripe-spinner, .success-spinner {
  display: inline-block;
  width: 16px; height: 16px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: var(--ivory);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.cancelled-bar {
  padding: 1rem 1.5rem;
  background: #fef3c7;
  border-left: 3px solid #d97706;
  margin-bottom: 2rem;
  font-size: 0.9rem;
  color: #92400e;
}

/* Success page */
.success-order-card {
  max-width: 620px;
  margin: 2rem auto;
  padding: 2.5rem;
  background: var(--ivory);
  border: 1px solid var(--border);
}
.success-checkmark, .checkmark-circle {
  width: 96px; height: 96px;
  background: #e8f5ec;
  color: var(--italy-green);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 2rem;
}
.success-checkmark svg, .checkmark-circle svg { width: 48px; height: 48px; stroke-width: 2.5; }

.payment-methods {
  display: flex;
  gap: 0.8rem;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 1rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* 404 / error pages */
.error-nav-card {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  max-width: 720px;
  margin: 2rem auto 0;
}
.error-nav-card > a {
  padding: 1.2rem 1.5rem;
  background: var(--ivory);
  border: 1px solid var(--border);
  color: var(--ink);
  font-weight: 500;
  transition: all var(--ease);
}
.error-nav-card > a:hover {
  background: var(--panev-blue);
  color: var(--ivory);
  border-color: var(--panev-blue);
}

/* Catalogo PDF specific */
.cpdf-fallback-icon { font-size: 2.5rem; color: var(--panev-blue); margin-bottom: 1rem; }
.cpdf-info { color: var(--text-soft); line-height: 1.6; margin-bottom: 1.5rem; }
.cpdf-open-btn { background: var(--panev-blue); color: var(--ivory); padding: 14px 28px; }
.cpdf-dot {
  display: inline-block;
  width: 8px; height: 8px;
  background: var(--panev-blue);
  border-radius: 50%;
}

/* Brevetto data table additional */
.bdt-header, .bdt-row { display: contents; }
.bdt-verify {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--italy-green);
  font-weight: 600;
  font-size: 0.82rem;
}
.bwc-num {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--panev-blue);
  letter-spacing: 0.05em;
  font-weight: 600;
}

/* Misc */
.ctc-header { margin-bottom: 1.5rem; }
.ctc-badge {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--panev-blue);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}
/* Catalog table — flex rows, ivory bg for readability */
.cat-products-table {
  background: var(--ivory);
  border: 1px solid var(--border);
  padding: 1rem 1.5rem;
}
.cpt-header {
  display: grid;
  grid-template-columns: 1.4fr 0.7fr 0.7fr 0.9fr 0.6fr 1fr;
  gap: 12px;
  padding: 10px 0;
  margin-bottom: 0.5rem;
  border-bottom: 1px solid var(--border-strong);
  font-family: var(--font-body);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.cpt-patent {
  background: transparent !important;
  color: var(--ink) !important;
  padding: 0 !important;
  font-size: inherit !important;
  letter-spacing: normal !important;
  font-weight: normal !important;
}
.cpt-row {
  display: grid;
  grid-template-columns: 1.4fr 0.7fr 0.7fr 0.9fr 0.6fr 1fr;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.88rem;
  font-family: var(--font-mono);
  color: var(--ink);
  align-items: center;
}
.cpt-row:last-child { border-bottom: none; }
.cpt-row:hover { background: var(--bone-2); }
.cpt-row .cod-label {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--panev-blue);
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: none;
}
.cpt-row > span:last-child {
  color: var(--panev-blue) !important;
  font-weight: 700 !important;
  font-family: var(--font-display);
  font-size: 1rem;
  text-align: right;
}

/* Tablet: simpler layout */
@media(max-width:900px){
  .cat-products-table { padding: 0.8rem 1rem; }
  .cpt-header { font-size: 0.6rem; gap: 8px; }
  .cpt-row { gap: 8px; font-size: 0.82rem; }
}

/* MOBILE: stacked card layout */
@media(max-width:640px){
  .cat-products-table {
    padding: 0;
    background: transparent;
    border: none;
  }
  .cpt-header { display: none; }
  .cpt-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 6px 10px;
    padding: 14px 18px;
    margin-bottom: 10px;
    background: var(--ivory) !important;
    border: 1px solid var(--border);
    border-left: 3px solid var(--panev-blue);
    font-size: 0.84rem;
    position: relative;
  }
  .cpt-row:last-child { margin-bottom: 0; }
  .cpt-row .cod-label {
    grid-column: 1 / -1;
    font-size: 0.76rem;
    margin-bottom: 4px;
    padding-bottom: 6px;
    border-bottom: 1px solid var(--border);
    color: var(--panev-blue) !important;
    font-weight: 700 !important;
    letter-spacing: 0.04em;
  }
  .cpt-row > span:not(.cod-label):not(:last-child) {
    color: var(--text-soft);
    font-size: 0.82rem;
    display: inline-flex;
    gap: 6px;
  }
  .cpt-row > span:not(.cod-label):not(:last-child)::before {
    content: '·';
    color: var(--panev-blue);
  }
  .cpt-row > span:last-child {
    grid-column: 2;
    grid-row: span 10;
    align-self: center;
    color: var(--panev-blue) !important;
    font-weight: 700 !important;
    font-family: var(--font-display);
    font-size: 1.1rem !important;
  }
}
.cod-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.range-red { color: var(--italy-red); font-weight: 600; }
.right-card {
  padding: 1.5rem;
  background: var(--ivory);
  border: 1px solid var(--border);
}
.right-icon {
  width: 40px; height: 40px;
  background: var(--panev-blue-10);
  color: var(--panev-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}
.right-icon svg { width: 20px; height: 20px; }
.rights-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
}

.wide { grid-column: 1 / -1; }
.footer {}  /* Just a duplicate class alias */


/* ================================================================
   COMPREHENSIVE RESPONSIVE — All breakpoints audit
   Mobile-first fallbacks for every component
   ================================================================ */

/* ═══ 1200px ═══ Tablet landscape, small desktop */
@media(max-width:1200px){
  .hero-spec { max-width: 320px; }
  .patent-frame { max-width: 420px; padding: 32px; }
}

/* ═══ 1100px ═══ Hero stack */
@media(max-width:1100px){
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .patent-frame {
    max-width: 100%;
    margin-top: 2rem;
  }
}

/* ═══ 960px ═══ Tablet */
@media(max-width:960px){
  :root { --nav-h: 72px; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-showcase { grid-template-columns: 1fr; gap: 3rem; }
  .feature-showcase-visual { aspect-ratio: 16/10; }
  .editorial-split { grid-template-columns: 1fr; gap: 3rem; }
  .editorial-header { grid-template-columns: 1fr; gap: 2rem; }
  .about-split { grid-template-columns: 1fr; gap: 3rem; }
  .contact-layout { grid-template-columns: 1fr; gap: 2rem; }
  .contact-info-col { order: 2; }
  .map-card { grid-template-columns: 1fr; }
  .brev-what-grid { grid-template-columns: 1fr; gap: 3rem; }
  .brev-data-layout { grid-template-columns: 1fr; gap: 2.5rem; }
  .cta-banner-content { grid-template-columns: 1fr; gap: 2.5rem; }
  .section, section { padding: clamp(70px, 10vw, 120px) 0; }
  .products-header { grid-template-columns: 1fr; gap: 1.5rem; }
  .stats-intro { flex-direction: column; gap: 1.5rem; }
}

/* ═══ 900px ═══ Tablet portrait */
@media(max-width:900px){
  .hero-title { font-size: clamp(2.5rem, 7vw, 4.5rem); }
  .display-2, h2.display-2 { font-size: clamp(2rem, 5vw, 3.5rem); }
  .process-steps {
    grid-template-columns: repeat(2, 1fr);
    gap: 48px 0;
  }
  .process-steps::before { display: none; }
  .quote-grid { grid-template-columns: 1fr; gap: 1px; }
  .patent-grid { grid-template-columns: repeat(2, 1fr); }
  .brev-advantage-grid { grid-template-columns: repeat(2, 1fr); }
  .cart-page-layout { grid-template-columns: 1fr; gap: 2rem; }
  .cart-summary-card { position: static; margin-top: 2rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .legal-layout { grid-template-columns: 1fr; gap: 2rem; }
  .legal-toc { position: static; }
  .bda-card { grid-template-columns: 1fr; text-align: center; gap: 1.5rem; }
  .bda-icon { margin: 0 auto; }
}

/* ═══ 768px ═══ Large mobile / small tablet */
@media(max-width:768px){
  :root { --nav-h: 68px; --gutter: 20px; }
  body { font-size: 15px; }

  /* Hero */
  .hero {
    min-height: auto;
    padding-top: calc(var(--nav-h) + 40px);
    padding-bottom: 60px;
  }
  .hero-title { font-size: clamp(2.2rem, 8vw, 3.8rem); }
  .hero-subtitle { font-size: 1.05rem; }
  .hero-trust { gap: 1.2rem; flex-direction: column; }
  .hero-trust > span { font-size: 0.85rem; }
  .hero-watermark { display: none; }
  .hero-spec { display: none; }
  .patent-frame { padding: 24px; }
  .patent-frame-number { font-size: 1.3rem; }
  .patent-frame::before { position: static; margin-bottom: 16px; display: block; }
  .hero-scroll { display: none; }

  /* Navbar */
  .nav-cart-btn { padding: 8px 14px; font-size: 0.78rem; }
  .nav-cart-btn > span:first-child { display: none; }

  /* Stats */
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-item { padding: 32px 20px; border-right: none; border-bottom: 1px solid rgba(255,255,255,0.15); }
  .stat-item:nth-child(odd) { border-right: 1px solid rgba(255,255,255,0.15); }
  .stat-item:nth-last-child(-n+2) { border-bottom: none; }
  .stat-item::before { left: 20px; }
  .stat-item:first-child::before { left: 0; }
  .stat-num { font-size: 2.4rem; }

  /* Cards */
  .services-grid { grid-template-columns: 1fr; }
  .svc-card { padding: 2.2rem 1.8rem; }
  .svc-card::before { position: static; display: block; margin-bottom: 12px; font-size: 0.7rem; }

  /* Page hero */
  .page-hero, .brev-hero, .cat-hero, .patent-hero {
    padding: calc(var(--nav-h) + 40px) 0 60px;
  }
  .page-hero h1, .brev-hero-title, .cat-title, .patent-title {
    font-size: clamp(2rem, 7vw, 3.2rem);
  }
  .page-hero p, .cat-intro-text, .brev-hero-sub {
    font-size: 1rem;
  }

  /* Feature Showcase */
  .feature-showcase-visual { aspect-ratio: 4/3; }
  .feature-showcase-visual svg { padding: 20px; }
  .feature-showcase-visual-label,
  .feature-showcase-visual-num { font-size: 0.62rem; }

  /* Process */
  .process-steps { grid-template-columns: 1fr; gap: 40px 0; }
  .process-step-num { width: 72px; height: 72px; font-size: 1.8rem; }

  /* Quote cards */
  .quote-card { padding: 2.5rem 2rem; }
  .quote-card-text { font-size: 1.1rem; }

  /* CTA banner */
  .cta-banner { padding: 70px 0; }
  .cta-banner h2 { font-size: clamp(1.6rem, 5vw, 2.4rem); }

  /* Forms */
  .form-row { grid-template-columns: 1fr; }
  .form-card { padding: 1.8rem; }
  input, textarea, select, .form-input, .form-textarea, .form-select,
  input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]) {
    font-size: 16px !important;  /* prevents iOS zoom on focus */
  }
  .form-check-row { grid-template-columns: 24px 1fr; }

  /* Product cards */
  .products-grid { grid-template-columns: 1fr 1fr; }
  .product-info { padding: 1.2rem 1.2rem 1.4rem; }
  .product-name { font-size: 1.1rem; }
  .product-price { font-size: 1.3rem; }

  /* Filter bar */
  .filter-bar { flex-direction: column; align-items: stretch; }
  .filter-search { max-width: 100%; margin-left: 0; }
  .filter-btn { text-align: left; padding: 10px 16px; }

  /* Contact cards */
  .contact-card { padding: 1.2rem; }
  .cc-value { font-size: 1.25rem; }

  /* Patent frame layout */
  .patent-grid { grid-template-columns: 1fr; }
  .brev-advantage-grid { grid-template-columns: 1fr; }

  /* Tables become cards-like */
  .brev-data-table, .cat-products-table, .legal-table, .spec-table {
    font-size: 0.82rem;
  }
  .brev-data-table th, .brev-data-table td,
  .cat-products-table th, .cat-products-table td,
  .legal-table th, .legal-table td {
    padding: 10px 12px;
  }
  .brev-data-table th { width: auto; }

  /* Table horizontal scroll for very wide ones */
  .cat-products-table,
  .spec-table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    white-space: nowrap;
  }

  /* Cart page item stacks */
  .cart-page-item, .cart-item {
    grid-template-columns: 64px 1fr;
    gap: 14px;
  }
  .cart-page-item > *:nth-child(3),
  .cart-page-item > *:nth-child(4),
  .cart-item > *:nth-child(3),
  .cart-item > *:nth-child(4) {
    grid-column: 2 / -1;
  }
  .cart-item-qty { justify-content: flex-start; }

  /* Product modal stacks */
  .pm-content { grid-template-columns: 1fr; }
  .pm-img { aspect-ratio: 16/10; padding: 20px; }
  .pm-info { padding: 1.8rem; }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .footer-brand { grid-column: 1 / -1; }

  /* Buttons resize */
  .btn, a.btn, button.btn { padding: 14px 24px; font-size: 0.88rem; }
  .btn-lg { padding: 16px 28px; font-size: 0.92rem; }
  .btn-xl { padding: 18px 32px; font-size: 0.95rem; }
  .hero-actions .btn { width: 100%; }

  /* Buttons inside hero should flex properly */
  .hero-actions { flex-direction: column; width: 100%; gap: 0.75rem; }

  /* Editorial elements on mobile */
  .editorial-header { gap: 1.5rem; margin-bottom: 3rem; }
  .section-header { margin-bottom: 3rem; }

  /* Map card */
  .map-placeholder { min-height: 300px; }
  .map-info { padding: 1.8rem; }

  /* Cookie banner */
  #pa-cookie-banner {
    left: 12px !important;
    right: 12px !important;
    bottom: 12px !important;
    width: auto !important;
    max-width: none !important;
    transform: translateY(calc(100% + 32px)) !important;
  }
  #pa-cookie-banner.pa-visible { transform: translateY(0) !important; }
  .pa-cb-inner { padding: 20px; }
  .pa-cb-actions { flex-direction: column-reverse; gap: 8px; }
  .pa-cb-actions .pa-cb-btn { width: 100%; }
  .pa-cb-settings-btn { margin-right: 0 !important; margin-top: 6px; }
  .pa-toggle-row { flex-direction: column; gap: 10px; align-items: flex-start; }

  /* Cat meta */
  .cat-meta-row { grid-template-columns: repeat(2, 1fr); }
  .cat-meta-item { padding: 14px 14px 14px 0; }
  .cat-meta-item:nth-child(even) { border-right: none; padding-right: 0; }
}

/* ═══ 640px ═══ Regular mobile */
@media(max-width:640px){
  :root { --gutter: 16px; }

  .display-1, .hero-title, h1.display-1 {
    font-size: clamp(2rem, 9vw, 3rem);
    line-height: 1;
  }
  .display-2 { font-size: 1.8rem; }
  .display-3 { font-size: 1.5rem; }
  .section-header { margin-bottom: 2.5rem; }
  .lead { font-size: 1rem; }

  /* Stats */
  .stat-num { font-size: 2rem; }
  .stat-lbl { font-size: 0.7rem; }

  /* Products */
  .products-grid { grid-template-columns: 1fr; }
  .product-thumb { aspect-ratio: 3/2; }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr; }

  /* Page hero actions */
  .brev-hero-actions, .cat-hero-actions { flex-direction: column; width: 100%; }
  .brev-hero-actions .btn, .cat-hero-actions .btn { width: 100%; }

  /* Quote card */
  .quote-card { padding: 2rem 1.5rem; }
  .quote-card-text { font-size: 1rem; line-height: 1.5; }

  /* Patent frame — more compact */
  .patent-frame-row { grid-template-columns: 100px 1fr; gap: 10px; font-size: 0.82rem; }

  /* Tables to cards */
  .bcc-row { grid-template-columns: 110px 1fr; gap: 12px; }

  /* Cookie banner icon smaller */
  .pa-cb-content { gap: 12px; }
  .pa-cb-icon { font-size: 1.4rem; }
  .pa-cb-text h3 { font-size: 1.1rem; }
  .pa-cb-text p { font-size: 0.82rem; }

  /* Contact card */
  .contact-card { padding: 1rem 1.2rem; }
  .cc-value { font-size: 1.1rem; }
}

/* ═══ 480px ═══ Small mobile */
@media(max-width:480px){
  .hero-title { font-size: 2.1rem; }
  .hero-subtitle { font-size: 0.95rem; }
  .display-2 { font-size: 1.6rem; }
  .brev-hero-title, .cat-title, .page-hero h1 { font-size: 1.8rem; }
  .btn, a.btn, button.btn { padding: 13px 20px; font-size: 0.84rem; }
  .btn-lg { padding: 14px 24px; }

  /* Stats more compact */
  .stat-item { padding: 24px 14px; }
  .stat-num { font-size: 1.8rem; margin-top: 1rem; }
  .stat-lbl { font-size: 0.65rem; }
  .stat-lbl small { font-size: 0.62rem; }

  /* Patent frame vertical-first */
  .patent-frame { padding: 20px; }
  .patent-frame-row { grid-template-columns: 1fr; gap: 2px; }
  .patent-frame-row dt { font-size: 0.65rem; }
  .patent-frame-row dd { font-size: 0.84rem; padding-bottom: 8px; border-bottom: 1px dashed var(--border); }
  .patent-frame-row.wide dd { font-size: 0.95rem; }

  /* Cookie banner full bleed */
  #pa-cookie-banner {
    left: 8px !important;
    right: 8px !important;
    bottom: 8px !important;
    border-radius: 4px !important;
  }
  .pa-cb-inner { padding: 16px; }

  /* Footer */
  footer { padding: 70px 0 30px; }
  .footer-grid { gap: 1.5rem; margin-bottom: 2.5rem; }

  /* Hero trust compact */
  .hero-trust > span { font-size: 0.8rem; }

  /* Section padding tighter */
  section, .section { padding: 60px 0 !important; }
}

/* ═══ Landscape phones ═══ */
@media(max-height:500px) and (orientation:landscape){
  .hero { min-height: 0; padding: 90px 0 40px; }
  .hero-scroll { display: none; }
}

/* Reduce motion support */
@media(prefers-reduced-motion:reduce){
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .hero-scroll .scroll-line { animation: none; }
  html { scroll-behavior: auto; }
}


/* ================================================================
   RESPONSIVE REFINEMENT — Unified breakpoints for all devices
   Breakpoints: 1280 (desktop), 1024 (tablet-land), 768 (tablet), 640 (mobile-l), 480 (mobile)
   ================================================================ */

/* ─── 1280px and below: tighten typography on smaller desktops ─── */
@media(max-width:1280px){
  :root { --container: 100%; --gutter: 32px; }
  .hero { padding-top: calc(var(--nav-h) + 56px); }
  .display-1, .hero-title, h1.display-1 { font-size: clamp(2.8rem, 7vw, 6rem); }
}

/* ─── 1024px: tablet landscape ─── */
@media(max-width:1024px){
  :root { --nav-h: 72px; --gutter: 28px; }
  section, .section { padding: clamp(80px, 10vw, 120px) 0; }

  /* Hero: keep 2-col but tighter */
  .hero-grid { gap: 3rem; }
  .hero-subtitle { max-width: 100%; }

  /* Patent frame shrinks */
  .patent-frame { padding: 28px; max-width: 100%; }
  .patent-frame-number { font-size: 1.4rem; }

  /* Stats */
  .stats-grid { grid-template-columns: repeat(4, 1fr); gap: 0; }
  .stat-num { font-size: clamp(2.2rem, 4.5vw, 3.8rem); }

  /* Services */
  .services-grid { grid-template-columns: repeat(2, 1fr); }

  /* Editorial header */
  .editorial-header { gap: 2.5rem; }

  /* Feature showcase */
  .feature-showcase { gap: 3rem; }

  /* Contact layout */
  .contact-layout { grid-template-columns: 340px 1fr; gap: 2rem; }
}

/* ─── 960px: below tablet landscape ─── */
@media(max-width:960px){
  /* Hero collapses to single column */
  .hero-grid { grid-template-columns: 1fr; }
  .patent-frame {
    max-width: 480px;
    margin: 0 auto;
  }

  /* CTA banner */
  .cta-banner-content { grid-template-columns: 1fr; gap: 2rem; }
  .cta-banner h2 br { display: none; }

  /* All splits single col */
  .editorial-split, .feature-showcase, .about-split,
  .brev-what-grid, .servizi-split {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .editorial-split:nth-child(even) > .about-img-wrap,
  .servizi-split:nth-child(even) > .about-img-wrap { order: 0; }

  /* Contact full width */
  .contact-layout { grid-template-columns: 1fr; gap: 2rem; }

  /* Editorial header stacks */
  .editorial-header { grid-template-columns: 1fr; gap: 1.5rem; }
  .editorial-header-side { max-width: 100%; }

  /* Products header */
  .products-header { grid-template-columns: 1fr; gap: 1.5rem; }

  /* Brevetto data layout */
  .brev-data-layout { grid-template-columns: 1fr; gap: 2rem; }

  /* Cart layouts */
  .cart-layout, .cart-page-layout { grid-template-columns: 1fr; gap: 2rem; }
  .cart-summary, .cart-summary-card { position: static; }

  /* Legal */
  .legal-layout { grid-template-columns: 1fr; gap: 2rem; }
  .legal-toc { position: static; }

  /* Map */
  .map-card { grid-template-columns: 1fr; }
}

/* ─── 768px: tablet portrait ─── */
@media(max-width:768px){
  :root { --nav-h: 64px; --gutter: 20px; }
  section, .section { padding: 70px 0; }
  html, body { font-size: 15px; }

  /* Hide nav menu - use hamburger */
  .nav-menu { display: none; }
  .nav-hamburger { display: flex; }
  .nav-logo-img-tag, .nav-logo-svg { height: 36px; }

  /* Hero mobile */
  .hero { min-height: auto; padding-top: calc(var(--nav-h) + 40px); padding-bottom: 60px; }
  .display-1, .hero-title, h1.display-1 {
    font-size: clamp(2.2rem, 9vw, 3.4rem);
    line-height: 1.02;
  }
  .hero-subtitle { font-size: 1rem; line-height: 1.55; margin-bottom: 2rem; }
  .hero-title br { display: none; }
  .hero-actions { flex-direction: column; width: 100%; gap: 0.8rem; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .hero-trust { gap: 1rem; flex-direction: column; align-items: flex-start; }
  .hero-trust > span { display: block; }
  .hero-scroll { display: none; }

  /* Patent frame on mobile */
  .patent-frame { padding: 24px 20px; }
  .patent-frame-row { grid-template-columns: 100px 1fr; gap: 10px; }
  .patent-frame-number { font-size: 1.25rem; margin-bottom: 20px; padding-bottom: 18px; }
  .patent-frame::before { font-size: 0.6rem; top: 12px; right: 16px; }

  /* Display titles */
  .display-2, h2.display-2 { font-size: clamp(1.8rem, 6vw, 2.6rem); line-height: 1.05; }
  .display-2 br { display: none; }
  .display-3 { font-size: clamp(1.4rem, 5vw, 2rem); }
  .lead { font-size: 1rem; line-height: 1.55; }

  /* Stats — 2 col */
  .stats-bar { padding: 60px 0; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-intro { flex-direction: column; gap: 1rem; align-items: flex-start; margin-bottom: 2rem; }
  .stat-item { padding: 28px 16px; border-right: none; border-bottom: 1px solid rgba(255,255,255,0.15); }
  .stat-item:nth-child(odd) { border-right: 1px solid rgba(255,255,255,0.15); }
  .stat-item:nth-last-child(-n+2):nth-child(n+3) { border-bottom: none; }
  .stat-num { font-size: 2.2rem; margin: 1rem 0 0.6rem; }
  .stat-lbl { font-size: 0.7rem; letter-spacing: 0.1em; }
  .stat-item::before { left: 16px; top: 16px; }
  .stat-item:first-child::before { left: 0; }

  /* Services */
  .services-grid { grid-template-columns: 1fr; }
  .svc-card { padding: 2rem 1.5rem; }
  .svc-card::before { top: 16px; right: 16px; font-size: 0.64rem; }
  .svc-icon { width: 44px; height: 44px; margin-bottom: 1.2rem; }
  .svc-icon svg { width: 22px; height: 22px; }
  .svc-title { font-size: 1.3rem; }

  /* Feature showcase */
  .feature-showcase-visual { aspect-ratio: 16/11; }

  /* Process steps mobile */
  .process-steps { grid-template-columns: 1fr; gap: 36px; }
  .process-steps::before { display: none; }
  .process-step { padding: 0; text-align: left; display: grid; grid-template-columns: 64px 1fr; gap: 16px; align-items: flex-start; }
  .process-step-num { width: 64px; height: 64px; font-size: 1.5rem; margin: 0; }
  .process-step-title { margin-top: 4px; }

  /* Quote grid */
  .quote-grid { grid-template-columns: 1fr; gap: 1px; }
  .quote-card { padding: 2rem 1.8rem; }
  .quote-card-text { font-size: 1.1rem; line-height: 1.45; }

  /* CTA banner */
  .cta-banner { padding: 70px 0; }
  .cta-banner h2 { font-size: clamp(1.7rem, 6vw, 2.4rem); }
  .cta-banner p { font-size: 1rem; }
  .cta-banner-actions .btn-lg { width: 100%; font-size: 0.92rem; padding: 16px 24px; }

  /* Page hero */
  .page-hero { padding: calc(var(--nav-h) + 40px) 0 60px; }
  .page-hero h1 { font-size: clamp(2rem, 7vw, 3.4rem); }
  .page-hero p, .page-hero-sub { font-size: 1rem; }

  /* Buttons */
  .btn { padding: 14px 24px; font-size: 0.88rem; }
  .btn-lg { padding: 16px 28px; font-size: 0.92rem; }
  .btn-xl { padding: 18px 32px; font-size: 0.96rem; }

  /* Products grid */
  .products-grid { grid-template-columns: repeat(2, 1fr); }
  .product-thumb { aspect-ratio: 1; }
  .product-info { padding: 1rem 1.1rem 1.1rem; }
  .product-name { font-size: 1rem; }
  .product-price { font-size: 1.2rem; }

  /* Filter bar */
  .filter-bar { padding: 4px; gap: 2px; }
  .filter-btn { padding: 10px 14px; font-size: 0.76rem; }
  .filter-search { max-width: 100%; width: 100%; margin-left: 0; margin-top: 6px; }

  /* Footer */
  footer, #footer { padding: 60px 0 30px; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; margin-bottom: 2rem; }
  .footer-bottom { flex-direction: column; text-align: center; gap: 0.6rem; font-size: 0.76rem; }

  /* Navbar */
  .nav-cart-btn { padding: 8px 14px; font-size: 0.78rem; }
  .nav-cart-btn > span:first-child { display: none; }

  /* Mobile nav — NEW drawer keeps its own CSS; just ensure width on tiny screens */
  #mobile-nav { width: 100%; }

  /* Tables responsive */
  .brev-data-table, .cat-products-table, .legal-table, .spec-table {
    font-size: 0.82rem;
  }
  .brev-data-table th, .brev-data-table td,
  .cat-products-table th, .cat-products-table td,
  .legal-table th, .legal-table td,
  .spec-table th, .spec-table td { padding: 10px 12px; }

  /* Table scroll wrapper for very wide tables */
  .legal-table-wrap, .table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 1rem -20px;
    padding: 0 20px;
  }

  /* Advantage grid */
  .brev-advantage-grid { grid-template-columns: 1fr; }
  .brev-adv-card { padding: 1.8rem 1.5rem; }

  /* Inventors */
  .brev-inventors { grid-template-columns: 1fr; gap: 1rem; }
  .brev-inv-name { font-size: 1.4rem; }

  /* BDA card */
  .bda-card { grid-template-columns: 1fr; padding: 2rem 1.5rem; gap: 1rem; text-align: left; }

  /* FAQ */
  .brev-faq-q { font-size: 1rem; padding: 20px 0; gap: 1rem; }
  .brev-faq-a > div { font-size: 0.9rem; }

  /* Catalogo meta row */
  .cat-meta-row { grid-template-columns: repeat(2, 1fr); }
  .cat-meta-item { border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 14px 12px; }
  .cat-meta-item:nth-child(2n) { border-right: none; }
  .cat-meta-item:nth-last-child(-n+2) { border-bottom: none; }

  /* Cart items */
  .cart-item, .cart-page-item {
    grid-template-columns: 60px 1fr;
    gap: 12px 16px;
    padding: 16px 0;
  }
  .cart-item-thumb { width: 60px; height: 60px; grid-row: span 2; }
  .cart-item-qty, .cart-item-price, .cart-item-remove {
    grid-column: 2;
  }
  .cart-item-qty { justify-content: flex-start; }
  .cart-item-qty button { width: 28px; height: 28px; }
  .cart-item-price { font-size: 1rem; text-align: left; }

  /* Contact cards */
  .cc-value { font-size: 1.25rem; }
  .contact-card { padding: 1.2rem 1.3rem; }

  /* Forms */
  input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]),
  textarea, select, .form-control, .form-input, .form-select, .form-textarea {
    padding: 12px 14px;
    font-size: 16px; /* prevents iOS zoom */
  }
  .form-row { grid-template-columns: 1fr; gap: 0; }

  /* Product modal */
  .pm-content { grid-template-columns: 1fr; max-height: 95vh; }
  .pm-info { padding: 1.8rem; }
  .pm-name { font-size: 1.4rem; }
  .pm-img { aspect-ratio: 4/3; padding: 24px; }

  /* Cookie banner mobile already handled */
  #pa-cookie-banner { bottom: 12px; }

  /* Hero spec sidebar hide on tablet */
  .hero-spec { display: none; }

  /* Watermarks smaller */
  .hero-watermark { font-size: 10rem; opacity: 0.5; }

  /* Stats intro */
  .stats-intro h2 { font-size: 1.6rem; }
}

/* ─── 640px: large mobile ─── */
@media(max-width:640px){
  :root { --gutter: 16px; }

  .display-1, .hero-title, h1.display-1 { font-size: clamp(2rem, 10vw, 2.8rem); }
  .display-2, h2.display-2 { font-size: clamp(1.6rem, 7vw, 2.2rem); }
  .page-hero h1 { font-size: clamp(1.8rem, 8vw, 2.6rem); }

  /* Products in 1 column on mobile for readability */
  .products-grid { grid-template-columns: 1fr; }

  /* Stats in 1 col? No, keep 2 col for compactness */
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-num { font-size: 1.8rem; }
  .stat-lbl { font-size: 0.64rem; }

  /* Footer */
  .footer-logo-img-tag { height: 38px; }

  /* Patent frame row labels smaller */
  .patent-frame-row { grid-template-columns: 90px 1fr; gap: 8px; font-size: 0.82rem; }
  .patent-frame-row dt { font-size: 0.62rem; }

  /* Feature showcase SVG */
  .feature-showcase-visual svg { padding: 16px; }

  /* BC / breadcrumb */
  .bc, .breadcrumb { font-size: 0.68rem; flex-wrap: wrap; }

  /* Filter bar */
  .filter-btn { font-size: 0.72rem; padding: 8px 12px; }

  /* Toast */
  .toast { bottom: 16px; right: 16px; left: 16px; font-size: 0.82rem; padding: 12px 16px; }

  /* Cookie banner */
  #pa-cookie-banner { left: 12px; right: 12px; bottom: 12px; }
  .pa-cb-inner { padding: 18px; }
  .pa-cb-text h3 { font-size: 1.1rem; }
  .pa-cb-text p { font-size: 0.82rem; }

  /* Hide watermarks on small mobile */
  .hero-watermark { display: none; }

  /* Eyebrow smaller */
  .eyebrow { font-size: 0.66rem; letter-spacing: 0.14em; }
}

/* ─── 480px: small mobile ─── */
@media(max-width:480px){
  :root { --nav-h: 58px; --gutter: 14px; }
  html, body { font-size: 14.5px; }

  .display-1, .hero-title, h1.display-1 { font-size: 2rem; letter-spacing: -0.03em; }
  .display-2, h2.display-2 { font-size: 1.6rem; }
  .display-3 { font-size: 1.3rem; }
  h3 { font-size: 1.1rem; }

  .nav-logo-img-tag { height: 30px; max-width: 170px; }
  .nav-cart-btn { padding: 6px 10px; font-size: 0.74rem; }

  section, .section { padding: 50px 0; }
  .stats-bar { padding: 50px 0; }

  /* Buttons fullwidth */
  .btn { padding: 12px 18px; font-size: 0.84rem; }
  .btn-lg { padding: 14px 22px; }

  /* Cards */
  .svc-card, .quote-card { padding: 1.6rem 1.2rem; }
  .svc-title { font-size: 1.2rem; }

  /* Product modal */
  .pm-img { padding: 16px; }
  .pm-info { padding: 1.4rem 1.2rem; }

  /* Filter */
  .filter-bar { flex-wrap: wrap; }
  .filter-btn { flex: 1 1 auto; min-width: calc(50% - 2px); text-align: center; }

  /* Hero trust smaller */
  .hero-trust { font-size: 0.8rem; gap: 0.6rem; }

  /* Cookie actions fullwidth stacked */
  .pa-cb-actions { flex-direction: column-reverse; gap: 8px; }
  .pa-cb-actions .pa-cb-btn { width: 100%; }
  .pa-cb-settings-btn { order: 99; }
}

/* ─── Ultra-small: <360px (old phones) ─── */
@media(max-width:360px){
  :root { --gutter: 12px; }
  .display-1, .hero-title, h1.display-1 { font-size: 1.75rem; }
  .display-2, h2.display-2 { font-size: 1.4rem; }
  .nav-cart-btn .cart-count { display: none; }
}

/* ─── Landscape phone: handle short height ─── */
@media(max-height:500px) and (orientation:landscape){
  .hero { min-height: auto; padding-top: calc(var(--nav-h) + 20px); padding-bottom: 40px; }
  .hero-scroll { display: none; }
  #mobile-nav { padding-top: 70px; overflow-y: auto; }
}

/* ─── Print styles ─── */
@media print {
  header, footer, #cart-sidebar, .cart-overlay, #mobile-nav, #pa-cookie-banner, #pa-cookie-overlay,
  .hero-scroll, .toast, .btn, .hero-actions, .cta-banner-actions {
    display: none !important;
  }
  body { background: white; color: black; font-size: 11pt; }
  body::before { display: none; }
  .hero, .page-hero { padding-top: 20pt; }
  * { box-shadow: none !important; transition: none !important; }
}

/* ─── Reduced motion preference ─── */
@media (prefers-reduced-motion: reduce){
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .hero-scroll .scroll-line { animation: none; }
}

/* ─── Force all images to never overflow ─── */
img, picture, video, svg { max-width: 100%; height: auto; }

/* ════════════════════════════════════════════════════════════════
   READABILITY CONTRAST FIX — Enterprise-grade legibility audit
   Ensures every piece of text is readable on its actual background,
   regardless of the parent section. This layer OVERRIDES generic
   "section-dark → white" rules where a lighter card sits inside a
   dark section (card keeps dark text on its own light background).
   ════════════════════════════════════════════════════════════════ */

/* ─── 1. LIGHT CARDS inside DARK sections keep dark text ─── */
.section-dark .brev-adv-card,
.section-dark .brev-what-card,
.section-dark .brev-data-aside,
.section-dark .cat-type-block,
.section-dark .quote-card,
.section-dark .svc-card,
.section-dark .card,
.section-dark .feature-card,
.section-dark .pbc-card,
.section-dark .patent-benefit-card,
.section-dark .right-card,
.section-dark .cookie-type-card,
.section-dark .contact-card,
.section-dark .orari-card,
.section-dark .form-card,
section[style*="--dark"] .brev-adv-card,
section[style*="--dark"] .brev-what-card,
section[style*="--dark"] .brev-data-aside,
section[style*="--dark"] .cat-type-block,
section[style*="--dark"] .quote-card,
section[style*="--dark"] .svc-card,
section[style*="--panev-deep"] .brev-adv-card,
section[style*="--panev-deep"] .brev-what-card,
section[style*="--panev-deep"] .brev-data-aside,
section[style*="--panev-deep"] .cat-type-block,
section[style*="--panev-deep"] .quote-card,
section[style*="--panev-deep"] .svc-card,
section[style*="--panev-ink"] .brev-adv-card,
section[style*="--panev-ink"] .brev-what-card,
section[style*="--panev-ink"] .brev-data-aside,
section[style*="--panev-ink"] .cat-type-block,
section[style*="--panev-ink"] .quote-card,
section[style*="--panev-ink"] .svc-card {
  background: var(--ivory);
  color: var(--ink);
}
.section-dark .brev-adv-card h1, .section-dark .brev-adv-card h2, .section-dark .brev-adv-card h3, .section-dark .brev-adv-card h4, .section-dark .brev-adv-card h5,
.section-dark .brev-what-card h1, .section-dark .brev-what-card h2, .section-dark .brev-what-card h3, .section-dark .brev-what-card h4, .section-dark .brev-what-card h5,
.section-dark .brev-data-aside h1, .section-dark .brev-data-aside h2, .section-dark .brev-data-aside h3, .section-dark .brev-data-aside h4,
.section-dark .cat-type-block h1, .section-dark .cat-type-block h2, .section-dark .cat-type-block h3, .section-dark .cat-type-block h4,
.section-dark .quote-card h1, .section-dark .quote-card h2, .section-dark .quote-card h3, .section-dark .quote-card h4,
.section-dark .svc-card h1, .section-dark .svc-card h2, .section-dark .svc-card h3, .section-dark .svc-card h4,
.section-dark .card h1, .section-dark .card h2, .section-dark .card h3, .section-dark .card h4,
.section-dark .patent-benefit-card h1, .section-dark .patent-benefit-card h2, .section-dark .patent-benefit-card h3, .section-dark .patent-benefit-card h4,
section[style*="--dark"] .brev-adv-card h4, section[style*="--dark"] .brev-what-card h4,
section[style*="--panev-deep"] .brev-adv-card h4, section[style*="--panev-deep"] .brev-what-card h4,
section[style*="--panev-ink"] .brev-adv-card h4, section[style*="--panev-ink"] .brev-what-card h4 {
  color: var(--ink) !important;
}
.section-dark .brev-adv-card p, .section-dark .brev-adv-card span,
.section-dark .brev-what-card p, .section-dark .brev-what-card span,
.section-dark .brev-data-aside p, .section-dark .brev-data-aside span,
.section-dark .cat-type-block p, .section-dark .cat-type-block span,
.section-dark .quote-card p, .section-dark .quote-card span,
.section-dark .svc-card p, .section-dark .svc-card span,
.section-dark .card p,
.section-dark .patent-benefit-card p,
section[style*="--dark"] .brev-adv-card p, section[style*="--dark"] .brev-what-card p,
section[style*="--panev-deep"] .brev-adv-card p, section[style*="--panev-deep"] .brev-what-card p,
section[style*="--panev-ink"] .brev-adv-card p, section[style*="--panev-ink"] .brev-what-card p {
  color: var(--text-soft) !important;
}
.section-dark .brev-adv-card strong, .section-dark .brev-what-card strong,
.section-dark .brev-data-aside strong, .section-dark .cat-type-block strong,
.section-dark .quote-card strong, .section-dark .svc-card strong,
.section-dark .patent-benefit-card strong {
  color: var(--panev-blue) !important;
}

/* ─── 2. LIGHT TABLES inside DARK sections ─── */
.section-dark .brev-data-table,
.section-dark .cat-products-table,
.section-dark .spec-table,
.section-dark .legal-table,
section[style*="--dark"] .brev-data-table,
section[style*="--dark"] .cat-products-table,
section[style*="--panev-deep"] .brev-data-table,
section[style*="--panev-deep"] .cat-products-table,
section[style*="--panev-ink"] .brev-data-table,
section[style*="--panev-ink"] .cat-products-table {
  background: var(--ivory);
  color: var(--ink);
}
.section-dark .brev-data-table th,
.section-dark .cat-products-table th,
.section-dark .spec-table th,
section[style*="--dark"] .brev-data-table th,
section[style*="--dark"] .cat-products-table th,
section[style*="--panev-deep"] .brev-data-table th,
section[style*="--panev-deep"] .cat-products-table th,
section[style*="--panev-ink"] .brev-data-table th,
section[style*="--panev-ink"] .cat-products-table th {
  background: var(--panev-blue) !important;
  color: var(--ivory) !important;
  border-bottom: 1px solid var(--panev-blue-90);
}
.section-dark .brev-data-table td,
.section-dark .cat-products-table td,
.section-dark .spec-table td,
section[style*="--dark"] .brev-data-table td,
section[style*="--dark"] .cat-products-table td,
section[style*="--panev-deep"] .brev-data-table td,
section[style*="--panev-deep"] .cat-products-table td,
section[style*="--panev-ink"] .brev-data-table td,
section[style*="--panev-ink"] .cat-products-table td {
  color: var(--ink) !important;
  background: var(--ivory);
  border-bottom: 1px solid var(--border);
}
.section-dark .brev-data-table td.mono,
.section-dark .cat-products-table td.mono,
.section-dark .brev-data-table td:first-child,
.section-dark .cat-products-table td:first-child,
section[style*="--dark"] .brev-data-table td:first-child,
section[style*="--dark"] .cat-products-table td:first-child,
section[style*="--panev-deep"] .brev-data-table td:first-child,
section[style*="--panev-deep"] .cat-products-table td:first-child,
section[style*="--panev-ink"] .brev-data-table td:first-child,
section[style*="--panev-ink"] .cat-products-table td:first-child {
  color: var(--panev-blue) !important;
  font-weight: 600;
}
.section-dark .brev-data-table td strong,
section[style*="--dark"] .brev-data-table td strong,
section[style*="--panev-ink"] .brev-data-table td strong {
  color: var(--panev-blue) !important;
}
/* Rows hover on dark tables */
.section-dark .brev-data-table tbody tr:hover td,
.section-dark .cat-products-table tbody tr:hover td,
section[style*="--dark"] .brev-data-table tbody tr:hover td,
section[style*="--panev-ink"] .brev-data-table tbody tr:hover td {
  background: var(--bone-2);
}
/* Zebra stripes subtle for readability */
.section-dark .brev-data-table tbody tr:nth-child(even) td,
.section-dark .cat-products-table tbody tr:nth-child(even) td,
section[style*="--dark"] .brev-data-table tbody tr:nth-child(even) td,
section[style*="--panev-ink"] .brev-data-table tbody tr:nth-child(even) td {
  background: var(--bone);
}

/* ─── 3. FAQ on dark sections ─── */
.section-dark .brev-faq,
section[style*="--dark"] .brev-faq,
section[style*="--panev-deep"] .brev-faq,
section[style*="--panev-ink"] .brev-faq {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding: 0 2rem;
}
.section-dark .brev-faq-item,
section[style*="--dark"] .brev-faq-item,
section[style*="--panev-deep"] .brev-faq-item,
section[style*="--panev-ink"] .brev-faq-item {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.section-dark .brev-faq-q,
section[style*="--dark"] .brev-faq-q,
section[style*="--panev-deep"] .brev-faq-q,
section[style*="--panev-ink"] .brev-faq-q {
  color: var(--ivory) !important;
  font-weight: 500;
}
.section-dark .brev-faq-q:hover,
section[style*="--dark"] .brev-faq-q:hover,
section[style*="--panev-deep"] .brev-faq-q:hover,
section[style*="--panev-ink"] .brev-faq-q:hover {
  color: var(--panev-blue-25) !important;
}
.section-dark .brev-faq-arrow,
section[style*="--dark"] .brev-faq-arrow,
section[style*="--panev-deep"] .brev-faq-arrow,
section[style*="--panev-ink"] .brev-faq-arrow {
  color: var(--panev-blue-25);
}
.section-dark .brev-faq-a,
.section-dark .brev-faq-a > div,
.section-dark .patent-faq-answer,
section[style*="--dark"] .brev-faq-a,
section[style*="--dark"] .brev-faq-a > div,
section[style*="--panev-deep"] .brev-faq-a,
section[style*="--panev-deep"] .brev-faq-a > div,
section[style*="--panev-ink"] .brev-faq-a,
section[style*="--panev-ink"] .brev-faq-a > div {
  color: rgba(255, 255, 255, 0.78) !important;
}

/* ─── 4. LIGHT SECTION typography fixes (brevetto "cosa protegge") ─── */
/* Fix the numbered 01/02 labels - must be visible, not tiny grey */
.brev-what-card h4,
.brev-adv-card h4,
.patent-benefit-card h4,
.pbc-card h4 {
  color: var(--ink) !important;
  font-weight: 500 !important;
}
.brev-what-card p,
.brev-adv-card p {
  color: var(--text-soft) !important;
  font-size: 0.94rem;
  line-height: 1.65;
  /* Prevent vertical text flow bug shown in screenshot */
  word-break: normal !important;
  overflow-wrap: normal !important;
  white-space: normal !important;
  hyphens: none !important;
  writing-mode: horizontal-tb !important;
  text-orientation: mixed !important;
}

/* The "01" "02" markers become visible and editorial */
.brev-what-card::before,
.brev-adv-card::before {
  font-size: 0.74rem !important;
  font-weight: 600 !important;
  color: var(--panev-blue) !important;
  letter-spacing: 0.14em !important;
  opacity: 1 !important;
}

/* ─── 5. SCHEDA TECNICA — Image 4 fix ─── */
/* The ufficiale data block: needs line breaks and spacing */
.brev-data-aside,
.patent-data-official {
  background: var(--ivory);
  border-left: 3px solid var(--panev-blue);
  padding: 2rem 2.2rem;
}
.brev-data-aside p,
.patent-data-official p {
  color: var(--text-soft) !important;
  font-size: 0.95rem;
  line-height: 1.75;
}
.brev-data-aside strong,
.patent-data-official strong {
  color: var(--panev-blue) !important;
  font-weight: 600;
  display: inline;
}

/* Dark cards on light bg (the ministry cards in image 4) */
.section-warm .dark-inline-card,
.dark-inline-card,
[class*="dark-card"] {
  background: var(--panev-ink);
  color: var(--ivory);
  padding: 2rem;
  position: relative;
}
[class*="dark-card"] h1, [class*="dark-card"] h2,
[class*="dark-card"] h3, [class*="dark-card"] h4, [class*="dark-card"] h5 {
  color: var(--ivory) !important;
}
[class*="dark-card"] p { color: rgba(255, 255, 255, 0.8) !important; }

/* Right cards on patent page — dark boxes with scrolling text */
.right-card {
  background: var(--panev-ink);
  color: var(--ivory);
  padding: 2rem;
  border: none;
}
.right-card h3, .right-card h4 {
  color: var(--ivory) !important;
}
.right-card p {
  color: rgba(255, 255, 255, 0.8) !important;
  line-height: 1.7;
}
.right-card .right-icon {
  background: rgba(255, 255, 255, 0.08);
  color: var(--panev-blue-25);
}

/* ─── 6. CTA banner (image 6) — stronger text on light bg ─── */
.section-warm .lead,
.section-soft .lead,
.section-tint .lead {
  color: var(--ink-soft) !important;
}

/* Subtitles on CTA banners with light bg must be legible */
section.section-warm p,
section.section-soft p,
section.section-tint p {
  color: var(--text-soft);
}
section.section-warm .subtitle,
section.section-soft .subtitle,
section.section-tint .subtitle {
  color: var(--ink-soft) !important;
  font-size: 1.05rem;
  line-height: 1.65;
}

/* ─── 7. Product filter bar contrast ─── */
.filter-btn { color: var(--ink-soft) !important; }
.filter-btn.active { color: var(--ivory) !important; }

/* ─── 8. Patent hero pill badges (image 6) ─── */
.patent-badge, .patent-badge-tag, .patent-number {
  color: var(--panev-blue) !important;
  background: var(--ivory);
  border: 1px solid var(--panev-blue-25);
  font-weight: 600;
}
.patent-badge:first-child {
  background: var(--panev-blue-10);
}

/* ─── 9. Generic safeguard: any <p> inside a dark section that's NOT inside a card ─── */
.section-dark > .container p:not(.quote-card p):not(.brev-adv-card p):not(.brev-what-card p):not(.svc-card p),
section[style*="--panev-ink"] > .container p:not(.quote-card p):not(.brev-adv-card p):not(.brev-what-card p):not(.svc-card p) {
  color: rgba(255, 255, 255, 0.82);
}

/* ─── 10. Quote cards — always light on their own background ─── */
.quote-card { background: var(--ivory) !important; }
.quote-card .quote-card-text { color: var(--ink) !important; }
.quote-card .quote-card-source { color: var(--ink) !important; }
.quote-card .quote-card-ref { color: var(--text-muted) !important; }
.quote-card .quote-card-marker { color: var(--panev-blue) !important; }

/* ─── 11. Patent number pill (image 6 badges at top) ─── */
.brev-hero-badge-row .brev-badge-pill,
.patent-badge-row .patent-badge,
.cat-badge-row .cat-badge {
  color: var(--panev-blue) !important;
  background: var(--ivory);
  border: 1px solid var(--panev-blue-25);
  font-weight: 600;
  letter-spacing: 0.1em;
}
.brev-badge-uibm, .cat-badge-patent {
  background: var(--panev-blue) !important;
  color: var(--ivory) !important;
  border-color: var(--panev-blue) !important;
}

/* ─── 12. Ensure no TEXT is ever written vertically (broken layout fix) ─── */
.brev-what-card, .brev-adv-card, .svc-card, .quote-card, .card,
.feature-card, .pbc-card, .patent-benefit-card,
.brev-data-table td, .cat-products-table td {
  writing-mode: horizontal-tb !important;
  word-break: normal !important;
  overflow-wrap: break-word !important;
  white-space: normal !important;
}


/* ════════════════════════════════════════════════════════════════
   FINAL READABILITY GUARD — Catch-all for any text on dark
   ════════════════════════════════════════════════════════════════ */

/* Universal: dark cards with any heading or paragraph */
.bda-card h1, .bda-card h2, .bda-card h3, .bda-card h4, .bda-card h5, .bda-card h6,
.right-card h1, .right-card h2, .right-card h3, .right-card h4, .right-card h5, .right-card h6,
[class*="dark-card"] h1, [class*="dark-card"] h2, [class*="dark-card"] h3, [class*="dark-card"] h4 {
  color: var(--ivory) !important;
}
.bda-card a:not(.btn),
.right-card a:not(.btn) {
  color: var(--panev-blue-25) !important;
}
.bda-card a:not(.btn):hover,
.right-card a:not(.btn):hover {
  color: var(--ivory) !important;
}

/* Buttons inside dark cards — keep solid contrast */
.bda-card .btn-primary,
.right-card .btn-primary {
  background: var(--panev-blue);
  color: var(--ivory) !important;
  border: 1px solid var(--panev-blue);
  box-shadow: 0 8px 24px rgba(22, 40, 97, 0.35);
}
.bda-card .btn-primary:hover,
.right-card .btn-primary:hover {
  background: var(--ivory);
  color: var(--panev-blue) !important;
  border-color: var(--ivory);
}

/* CRITICAL: prevent vertical text on ANY card-like component */
.bda-card *, .right-card *, .brev-what-card *, .brev-adv-card *,
.svc-card *, .quote-card *, .card *, .feature-card * {
  writing-mode: horizontal-tb !important;
}
.bda-card h1, .bda-card h2, .bda-card h3, .bda-card h4, .bda-card p,
.right-card h1, .right-card h2, .right-card h3, .right-card h4, .right-card p,
.brev-what-card h1, .brev-what-card h2, .brev-what-card h3, .brev-what-card h4, .brev-what-card p,
.brev-adv-card h1, .brev-adv-card h2, .brev-adv-card h3, .brev-adv-card h4, .brev-adv-card p,
.svc-card h1, .svc-card h2, .svc-card h3, .svc-card h4, .svc-card p,
.quote-card h1, .quote-card h2, .quote-card h3, .quote-card h4, .quote-card p {
  word-break: normal !important;
  overflow-wrap: break-word !important;
  white-space: normal !important;
  hyphens: none !important;
  min-width: 0;
  max-width: 100%;
}

/* Buttons inside narrow cards: never overflow */
.bda-card .btn,
.right-card .btn,
.cta-banner-actions .btn,
.brev-adv-card .btn,
.quote-card .btn {
  white-space: nowrap;
  text-overflow: clip;
  overflow: visible;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}


/* ════════════════════════════════════════════════════════════════
   ABOUT-BULLETS on dark sections — visibility fix
   ════════════════════════════════════════════════════════════════ */
.section-dark .about-bullets,
section[style*="--dark"] .about-bullets,
section[style*="--panev-deep"] .about-bullets,
section[style*="--panev-ink"] .about-bullets {
  border-top-color: rgba(255, 255, 255, 0.15);
}
.section-dark .about-bullet,
section[style*="--dark"] .about-bullet,
section[style*="--panev-deep"] .about-bullet,
section[style*="--panev-ink"] .about-bullet {
  color: rgba(255, 255, 255, 0.88) !important;
  border-bottom-color: rgba(255, 255, 255, 0.12) !important;
}
.section-dark .about-bullet::before,
section[style*="--dark"] .about-bullet::before,
section[style*="--panev-deep"] .about-bullet::before,
section[style*="--panev-ink"] .about-bullet::before {
  background: var(--panev-blue-25) !important;
}

/* Servizi page — split panels with about-bullets need contrast everywhere */
.servizi-split p,
.about-text p {
  color: var(--text-soft);
  line-height: 1.65;
}
.section-dark .servizi-split p,
.section-dark .about-text p,
section[style*="--dark"] .servizi-split p,
section[style*="--dark"] .about-text p,
section[style*="--panev-deep"] .servizi-split p,
section[style*="--panev-deep"] .about-text p,
section[style*="--panev-ink"] .servizi-split p,
section[style*="--panev-ink"] .about-text p {
  color: rgba(255, 255, 255, 0.78) !important;
}
.section-dark .servizi-split p strong,
.section-dark .about-text p strong,
section[style*="--dark"] .servizi-split p strong,
section[style*="--dark"] .about-text p strong,
section[style*="--panev-deep"] .servizi-split p strong,
section[style*="--panev-deep"] .about-text p strong,
section[style*="--panev-ink"] .servizi-split p strong,
section[style*="--panev-ink"] .about-text p strong {
  color: var(--panev-blue-25) !important;
}

/* Eyebrow "Servizio 02" on dark — already covered by section-dark .eyebrow */
/* Make sure h2 display title in servizi splits is white */
.section-dark .servizi-split h2,
.section-dark .servizi-split h3,
.section-dark .servizi-split .display-2,
.section-dark .servizi-split .display-3,
section[style*="--dark"] .servizi-split h2,
section[style*="--dark"] .servizi-split h3,
section[style*="--panev-deep"] .servizi-split h2,
section[style*="--panev-deep"] .servizi-split h3,
section[style*="--panev-ink"] .servizi-split h2,
section[style*="--panev-ink"] .servizi-split h3 {
  color: var(--ivory) !important;
}


/* ════════════════════════════════════════════════════════════════
   MOBILE NAV — Strict svg/icon sizing + override any bleed
   ════════════════════════════════════════════════════════════════ */
#mobile-nav svg {
  max-width: none !important;
  height: auto;
}
.mobile-nav-contacts a svg,
.mobile-nav-close svg {
  width: 16px !important;
  height: 16px !important;
  flex: 0 0 16px !important;
}
.mobile-nav-close svg {
  width: 18px !important;
  height: 18px !important;
  flex: 0 0 18px !important;
}

/* Make sure the menu item grid layout renders as stacked vertical menu, 
   not inline — override any late-stage global rules */
.mobile-nav-menu { display: flex !important; flex-direction: column !important; }
.mobile-nav-menu > a {
  display: grid !important;
  grid-template-columns: 48px 1fr !important;
  align-items: center !important;
  gap: 16px !important;
  padding: 18px 32px !important;
  width: 100% !important;
  text-align: left !important;
  border-bottom: 1px solid var(--border) !important;
}

/* Contacts block: compact flex rows, not grid */
.mobile-nav-contacts { display: flex !important; flex-direction: column !important; gap: 10px !important; }
.mobile-nav-contacts a {
  display: inline-flex !important;
  align-items: center !important;
  gap: 10px !important;
  padding: 8px 0 !important;
  width: auto !important;
  border: none !important;
  background: transparent !important;
  font-family: var(--font-body) !important;
  font-size: 0.9rem !important;
  font-weight: 500 !important;
  color: var(--text-soft) !important;
  letter-spacing: 0 !important;
  text-align: left !important;
  grid-template-columns: none !important;
}

/* ════════════════════════════════════════════════════════════════
   BREV-WHAT-CARD — absolute final lock, mobile-first
   ════════════════════════════════════════════════════════════════ */
.brev-what-card {
  display: block !important;
  padding: 2rem 1.8rem !important;
  width: 100% !important;
  box-sizing: border-box !important;
}
.brev-what-card > * {
  display: block !important;
  width: auto !important;
  max-width: 100% !important;
  writing-mode: horizontal-tb !important;
}
.brev-what-card .bwc-num {
  display: inline-block !important;
  width: auto !important;
  max-width: none !important;
  margin-bottom: 1rem !important;
  float: none !important;
}
.brev-what-card h3,
.brev-what-card h4 {
  display: block !important;
  width: 100% !important;
  margin: 0 0 0.7rem !important;
  writing-mode: horizontal-tb !important;
  word-break: normal !important;
  white-space: normal !important;
  overflow-wrap: break-word !important;
}
.brev-what-card p {
  display: block !important;
  width: 100% !important;
  margin: 0 !important;
  writing-mode: horizontal-tb !important;
  word-break: normal !important;
  white-space: normal !important;
  overflow-wrap: break-word !important;
  hyphens: none !important;
  min-width: 0 !important;
  flex: none !important;
}

/* And on mobile, extra safety */
@media(max-width:720px){
  .brev-what-text, .patent-what-is { padding-right: 0 !important; }
  .brev-what-card { padding: 1.6rem 1.3rem !important; }
  .brev-what-card h3, .brev-what-card h4 { font-size: 1.2rem !important; }
  .brev-what-card p { font-size: 0.92rem !important; line-height: 1.65 !important; }
}

/* ════════════════════════════════════════════════════════════════
   FINAL READABILITY ENFORCEMENT — Nuclear option
   Catches every case where a light card sits inside a dark section
   ════════════════════════════════════════════════════════════════ */

/* Any heading INSIDE a light card, NO MATTER what parent section, stays dark */
.brev-adv-card h1, .brev-adv-card h2, .brev-adv-card h3, .brev-adv-card h4, .brev-adv-card h5, .brev-adv-card h6,
.brev-what-card h1, .brev-what-card h2, .brev-what-card h3, .brev-what-card h4, .brev-what-card h5, .brev-what-card h6,
.brev-data-aside h1, .brev-data-aside h2, .brev-data-aside h3, .brev-data-aside h4, .brev-data-aside h5,
.patent-benefit-card h1, .patent-benefit-card h2, .patent-benefit-card h3, .patent-benefit-card h4, .patent-benefit-card h5,
.pbc-card h1, .pbc-card h2, .pbc-card h3, .pbc-card h4, .pbc-card h5,
.cat-type-block h1, .cat-type-block h2, .cat-type-block h3, .cat-type-block h4,
.quote-card h1, .quote-card h2, .quote-card h3, .quote-card h4,
.svc-card h1, .svc-card h2, .svc-card h3, .svc-card h4,
.card > h1, .card > h2, .card > h3, .card > h4,
.contact-card h1, .contact-card h2, .contact-card h3, .contact-card h4,
.orari-card h1, .orari-card h2, .orari-card h3, .orari-card h4,
.form-card h1, .form-card h2, .form-card h3, .form-card h4,
.feature-card h1, .feature-card h2, .feature-card h3, .feature-card h4 {
  color: var(--ink) !important;
}

.brev-adv-card p, .brev-adv-card span:not(.btn span),
.brev-what-card p, .brev-what-card span:not(.btn span),
.brev-data-aside p, .brev-data-aside span,
.patent-benefit-card p, .patent-benefit-card span:not(.btn span),
.pbc-card p, .pbc-card span:not(.btn span),
.cat-type-block p, .cat-type-block span:not(.btn span),
.quote-card p:not(.quote-card-text), .quote-card span:not(.btn span),
.svc-card p, .svc-card span:not(.btn span),
.feature-card p, .feature-card span:not(.btn span),
.contact-card p, .contact-card span:not(.btn span),
.orari-card p, .orari-card span:not(.btn span),
.form-card p, .form-card span:not(.btn span) {
  color: var(--text-soft) !important;
}

.brev-adv-card strong, .brev-what-card strong, .brev-data-aside strong,
.patent-benefit-card strong, .pbc-card strong, .cat-type-block strong,
.quote-card strong, .svc-card strong, .feature-card strong {
  color: var(--panev-blue) !important;
}

/* Quote-card text (large quote) — should stay dark on its light bg */
.quote-card .quote-card-text { color: var(--ink) !important; }
.quote-card .quote-card-source { color: var(--ink) !important; }
.quote-card .quote-card-ref { color: var(--text-muted) !important; }

/* eyebrow / small labels inside light cards */
.brev-adv-card .eyebrow, .brev-what-card .eyebrow,
.patent-benefit-card .eyebrow, .pbc-card .eyebrow,
.cat-type-block .eyebrow, .quote-card .eyebrow, .svc-card .eyebrow,
.feature-card .eyebrow {
  color: var(--panev-blue) !important;
}

/* ─── FAQ on ANY dark section (including inline style="background:var(--dark-mid)") ─── */
section[style*="dark-mid"] .brev-faq-q,
section[style*="dark"] .brev-faq-q,
.section-dark .brev-faq-q {
  color: var(--ivory) !important;
}
section[style*="dark-mid"] .brev-faq-arrow,
section[style*="dark"] .brev-faq-arrow,
.section-dark .brev-faq-arrow {
  color: var(--panev-blue-25) !important;
}
section[style*="dark-mid"] .brev-faq-a,
section[style*="dark-mid"] .brev-faq-a > div,
section[style*="dark"] .brev-faq-a,
section[style*="dark"] .brev-faq-a > div,
.section-dark .brev-faq-a,
.section-dark .brev-faq-a > div {
  color: rgba(255, 255, 255, 0.78) !important;
}
section[style*="dark-mid"] .brev-faq,
section[style*="dark"] .brev-faq,
.section-dark .brev-faq {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
section[style*="dark-mid"] .brev-faq-item,
section[style*="dark"] .brev-faq-item,
.section-dark .brev-faq-item {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* ─── Eyebrow on dark sections (including dark-mid inline) ─── */
section[style*="dark-mid"] .eyebrow,
section[style*="dark"] .eyebrow {
  color: rgba(255, 255, 255, 0.72) !important;
}
section[style*="dark-mid"] .eyebrow::before,
section[style*="dark"] .eyebrow::before {
  background: var(--panev-blue-25) !important;
}

/* ─── Extended dark section detection for headings ─── */
section[style*="dark-mid"] h1, section[style*="dark-mid"] h2, section[style*="dark-mid"] h3, section[style*="dark-mid"] h4 {
  color: var(--ivory);
}
/* But NOT when heading is inside a light card */
section[style*="dark-mid"] .brev-adv-card h3,
section[style*="dark-mid"] .brev-adv-card h4,
section[style*="dark-mid"] .brev-what-card h3,
section[style*="dark-mid"] .brev-what-card h4,
section[style*="dark-mid"] .patent-benefit-card h3,
section[style*="dark-mid"] .patent-benefit-card h4,
section[style*="dark-mid"] .pbc-card h3,
section[style*="dark-mid"] .pbc-card h4,
section[style*="dark-mid"] .svc-card h3,
section[style*="dark-mid"] .svc-card h4,
section[style*="dark-mid"] .quote-card h3,
section[style*="dark-mid"] .quote-card h4 {
  color: var(--ink) !important;
}

/* ════════════════════════════════════════════════════════════════
   TABLE STAFFE on dark section — mobile card layout
   ════════════════════════════════════════════════════════════════ */
@media(max-width:768px){
  .cat-products-table,
  .section-dark .cat-products-table,
  section[style*="dark"] .cat-products-table,
  .brev-data-table {
    display: block;
    width: 100%;
    border: none;
  }
  .cat-products-table thead { display: none; }
  .cat-products-table tbody { display: block; width: 100%; }
  .cat-products-table tr {
    display: block;
    margin-bottom: 12px;
    padding: 14px 16px;
    background: var(--panev-blue) !important;
    border-radius: 2px;
    page-break-inside: avoid;
  }
  .cat-products-table tbody tr:nth-child(even),
  .section-dark .cat-products-table tbody tr:nth-child(even) td {
    background: var(--panev-blue) !important;
  }
  .cat-products-table td {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 6px 0 !important;
    border: none !important;
    background: transparent !important;
    color: var(--ivory) !important;
    font-size: 0.85rem !important;
    text-align: left !important;
    gap: 12px;
  }
  /* Show column label before each cell */
  .cat-products-table td::before {
    content: attr(data-label);
    font-family: var(--font-mono);
    font-size: 0.66rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.55);
    flex-shrink: 0;
  }
  .cat-products-table td:first-child {
    font-family: var(--font-mono);
    font-weight: 600;
    color: var(--ivory) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15) !important;
    padding-bottom: 10px !important;
    margin-bottom: 6px !important;
    font-size: 0.88rem !important;
  }
  .cat-products-table td:first-child::before {
    content: 'CODICE';
  }
  .cat-products-table td:last-child {
    font-weight: 700;
    color: var(--ivory) !important;
    font-size: 1rem !important;
    border-top: 1px solid rgba(255, 255, 255, 0.15) !important;
    padding-top: 10px !important;
    margin-top: 6px !important;
  }
  .cat-products-table td:last-child::before {
    content: 'PREZZO';
  }

  /* brev-data-table — same stacked treatment */
  .brev-data-table { border: none; background: transparent; }
  .brev-data-table tbody, .brev-data-table tr { display: block; width: 100%; }
  .brev-data-table tr {
    background: var(--ivory) !important;
    padding: 12px 16px;
    margin-bottom: 8px;
    border-left: 3px solid var(--panev-blue);
  }
  .brev-data-table td {
    display: flex !important;
    justify-content: flex-start !important;
    gap: 16px;
    padding: 4px 0 !important;
    border: none !important;
    background: transparent !important;
    color: var(--ink) !important;
    font-size: 0.88rem !important;
  }
  .brev-data-table td:first-child {
    color: var(--text-muted) !important;
    font-family: var(--font-mono);
    font-size: 0.7rem !important;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    flex: 0 0 130px;
  }
}

/* cat-type-block (product table container) on dark section — must be light inside */
section[style*="dark-mid"] .cat-type-block,
section[style*="dark"] .cat-type-block,
.section-dark .cat-type-block {
  background: var(--ivory) !important;
  color: var(--ink) !important;
}
section[style*="dark-mid"] .cat-type-block h3,
section[style*="dark-mid"] .cat-type-block h4,
section[style*="dark-mid"] .cat-type-block p,
section[style*="dark"] .cat-type-block h3,
section[style*="dark"] .cat-type-block h4,
section[style*="dark"] .cat-type-block p,
.section-dark .cat-type-block h3,
.section-dark .cat-type-block h4,
.section-dark .cat-type-block p {
  color: var(--ink) !important;
}
section[style*="dark-mid"] .cat-type-block p,
section[style*="dark"] .cat-type-block p,
.section-dark .cat-type-block p {
  color: var(--text-soft) !important;
}
