/* ==========================================================================
   KOPIC PRECISION - DESIGN SYSTEM & STYLESHEET
   Industrial CNC Precision Machining (Asportazione Truciolo CNC 5 Assi)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
  /* Brand Tokens */
  --color-primary: #034b22;          /* Forest Green CTA */
  --color-primary-hover: #055e2b;
  --color-primary-light: #e6f4ea;
  
  --color-accent-cream: #faedd9;     /* Warm Cream Bento Card */
  --color-dark-card: #000000;        /* Pitch Black Bento Card */
  --color-dark-bg: #090b0e;
  
  --color-title: #0a0d12;
  --color-body: #334155;
  --color-muted: #64748b;
  --color-border: rgba(0, 0, 0, 0.10);
  --color-border-light: rgba(255, 255, 255, 0.20);
  
  --font-display: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  
  --radius-btn: 3px;
  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-circle: 50%;
  
  --shadow-subtle: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.07);
  --transition: 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font-body);
  color: var(--color-body);
  background-color: #ffffff;
  line-height: 1.6;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

/* ==========================================================================
   HERO FULL VIEWPORT (Takes 100vh Full Screen Space)
   ========================================================================== */
.hero-full-viewport {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 640px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background-color: #dce5ec;
}

/* Full-bleed CNC Machining photograph */
.hero-fullbleed-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  overflow: hidden;
}

.hero-fullbleed-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: right center;
}

.hero-parallax-img {
  position: absolute;
  top: -12%;
  left: 0;
  width: 100%;
  height: 135%;
  object-fit: cover;
  object-position: right center;
  will-change: transform;
  transform: translate3d(0, 0, 0);
  pointer-events: none;
}

/* Atmospheric lighting scrim: keeps text perfectly legible */
.hero-lighting-scrim {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    rgba(240, 244, 248, 0.95) 0%,
    rgba(240, 244, 248, 0.90) 25%,
    rgba(240, 244, 248, 0.75) 45%,
    rgba(240, 244, 248, 0.25) 65%,
    rgba(240, 244, 248, 0.0) 80%
  );
  z-index: 2;
  pointer-events: none;
}

/* Subtle architectural grid lines */
.hero-grid-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 3;
  pointer-events: none;
}

.h-line {
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  background-color: var(--color-border);
}

.h-line.nav-divider { top: 88px; }
.h-line.mid-accent   { top: 148px; left: 15%; width: 85%; }

.v-line {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 1px;
  background-color: var(--color-border);
}

.v-line.col-left { left: 15%; }
.v-line.col-right { left: 62%; }

/* Top Header Bar - Fixed & Sticky on Scroll */
.hero-header-spacer {
  height: 88px;
  width: 100%;
  flex-shrink: 0;
  pointer-events: none;
}

.hero-header-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 1000;
  height: 88px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 3.5rem;
  padding: 0 3.5rem;
  background-color: transparent;
  border-bottom: 1px solid var(--color-border);
  transition: background-color 0.3s ease, height 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease, backdrop-filter 0.3s ease;
}

.hero-header-bar.is-scrolled {
  height: 72px;
  background-color: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.07);
}

.brand-emblem-link {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.origami-logo-mark {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
}

.origami-logo-mark svg {
  width: 100%;
  height: 100%;
  fill: #0a0d12;
}

.brand-text-label {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--color-title);
  line-height: 1;
}

.brand-sub {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--color-primary);
  text-transform: uppercase;
  margin-top: 3px;
}

/* Nav Menu */
.hero-nav-menu {
  display: flex;
  align-items: center;
}

.nav-menu-list {
  display: flex;
  align-items: center;
  gap: 2.75rem;
}

.nav-item-link {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  color: #111827;
  letter-spacing: -0.01em;
  transition: color var(--transition);
}

.nav-item-link:hover,
.nav-item-link.active {
  color: var(--color-primary);
  font-weight: 600;
}

.mobile-nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 30px;
  cursor: pointer;
  margin-left: auto;
}

.mobile-nav-burger span {
  width: 100%;
  height: 2px;
  background-color: #0f172a;
  border-radius: 2px;
}

/* Hero Center Body Content */
.hero-body-content {
  position: relative;
  z-index: 10;
  padding: 0 3.5rem;
  max-width: 680px;
  margin: auto 0;
}

/* Refined H1: smaller, elegant, proportionate */
.hero-main-title {
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 3.2vw, 3.1rem);
  font-weight: 800;
  color: var(--color-title);
  line-height: 1.14;
  letter-spacing: -0.025em;
  margin-bottom: 1.25rem;
}

/* Refined Subtitle */
.hero-main-description {
  font-size: clamp(1rem, 1.15vw, 1.1rem);
  font-weight: 400;
  color: #334155;
  line-height: 1.6;
  max-width: 530px;
  margin-bottom: 2rem;
}

/* Refined Green CTA Button */
.btn-hire-experts {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background-color: var(--color-primary);
  color: #ffffff;
  padding: 0.95rem 2.25rem;
  font-family: var(--font-body);
  font-size: 0.98rem;
  font-weight: 600;
  border-radius: var(--radius-btn);
  box-shadow: 0 4px 12px rgba(3, 75, 34, 0.22);
  transition: all var(--transition);
}

.btn-hire-experts:hover {
  background-color: var(--color-primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(3, 75, 34, 0.32);
}

/* Subtle Scroll Down Prompt at the Bottom of Hero */
.hero-bottom-bar {
  position: relative;
  z-index: 10;
  padding: 1rem 3.5rem 2rem 3.5rem;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.hero-scroll-cue {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.hero-scroll-cue svg {
  width: 16px;
  height: 16px;
  animation: bounce-cue 1.8s infinite;
}

@keyframes bounce-cue {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(5px); }
  60% { transform: translateY(3px); }
}

/* ==========================================================================
   THE BENTO STRIP SECTION (POSITIONED IMMEDIATELY BELOW THE HERO)
   Visible as soon as the user scrolls!
   ========================================================================== */
.bento-strip-section {
  position: relative;
  z-index: 15;
  width: 100%;
  display: grid;
  grid-template-columns: 260px 1fr 300px;
  align-items: stretch;
  background-color: #ffffff;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

/* 1. Left Bento: Pitch Black Box */
.bento-card-black {
  background-color: var(--color-dark-card);
  color: #ffffff;
  padding: 2.25rem 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 250px;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.bento-black-stat {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 800;
  line-height: 1;
  text-align: right;
  letter-spacing: -0.02em;
  color: #ffffff;
}

.bento-black-label {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  line-height: 1.35;
  color: #ffffff;
}

/* 2. Center Bento: Warm Cream with Specialist */
.bento-card-cream {
  background-color: var(--color-accent-cream);
  padding: 1.5rem 2.5rem 0 2.5rem;
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  align-items: flex-end;
  gap: 1.5rem;
  position: relative;
  overflow: hidden;
  border-right: 1px solid rgba(0, 0, 0, 0.08);
  min-height: 250px;
}

.cream-content-copy {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  padding-bottom: 1.75rem;
  z-index: 2;
}

.cream-main-h2 {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 1.75vw, 1.75rem);
  font-weight: 800;
  color: #111827;
  line-height: 1.24;
  letter-spacing: -0.02em;
  margin-bottom: 1.25rem;
}

.cream-badge-status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: #111827;
}

.status-pulsing-dot {
  width: 8px;
  height: 8px;
  background-color: #16a34a;
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.25);
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(22, 163, 74, 0.6); }
  70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(22, 163, 74, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(22, 163, 74, 0); }
}

.cream-technician-portrait {
  height: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  position: relative;
  z-index: 1;
}

.cream-technician-portrait img {
  max-height: 235px;
  width: auto;
  object-fit: contain;
  object-position: bottom center;
}

/* 3. Right Bento: Quality Inspector & Stacked Typography */
.bento-card-right {
  background: #0d1117;
  color: #ffffff;
  padding: 2rem 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
  min-height: 250px;
  position: relative;
}

.right-inspector-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid #ffffff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.right-inspector-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.right-stacked-typography {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  line-height: 1.42;
  color: #ffffff;
}

/* ==========================================================================
   REST OF SITE SECTIONS (Services, Machinery, Quality, Quote, Footer)
   ========================================================================== */
.container {
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 2.5rem;
}

.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-primary);
  margin-bottom: 0.85rem;
}

.section-kicker::before {
  content: '';
  width: 18px;
  height: 2px;
  background-color: var(--color-primary);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  font-weight: 800;
  color: var(--color-title);
  line-height: 1.18;
  letter-spacing: -0.02em;
  margin-bottom: 1.25rem;
}

.section-description {
  font-size: 1.1rem;
  color: var(--color-muted);
  max-width: 680px;
  line-height: 1.6;
}

/* ==========================================================================
   SERVICES - HORIZONTAL FULL-WIDTH STRIPS (ZERO LAG, DISSOLVE ON HOVER)
   ========================================================================== */
.services-section {
  padding: 6.5rem 0 0 0;
  background-color: #f8fafc;
}

.services-strips-wrapper.full-width {
  margin-top: 3.5rem;
  width: 100%;
}

.services-strips-list {
  display: flex;
  flex-direction: column;
  width: 100%;
  border-top: 1px solid rgba(0, 0, 0, 0.12);
  border-bottom: 1px solid rgba(0, 0, 0, 0.12);
  background-color: #0c1017;
}

.service-strip-item {
  position: relative;
  width: 100%;
  height: 200px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background-color: #0c1017;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: height 0.38s cubic-bezier(0.2, 0.8, 0.2, 1), background-color 0.3s ease;
  will-change: height;
}

.service-strip-item:last-child {
  border-bottom: none;
}

/* Background image layer - hidden at rest, fades in with elegant dissolve */
.stripe-bg-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  pointer-events: none;
  z-index: 1;
  transition: opacity 0.38s ease;
  will-change: opacity;
}

.stripe-bg-layer img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
  filter: brightness(0.96) contrast(1.04);
  transform: scale(1.0);
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}

/* Sfumatura nera da sinistra per garantire massima leggibilità */
.stripe-gradient-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    #0c1017 0%,
    #0c1017 30%,
    rgba(12, 16, 23, 0.92) 46%,
    rgba(12, 16, 23, 0.45) 70%,
    rgba(12, 16, 23, 0.08) 100%
  );
  z-index: 2;
}

/* Content wrapper touching screen edges with generous padding */
.stripe-content-wrap {
  position: relative;
  z-index: 3;
  width: 100%;
  padding: 0 clamp(2rem, 5.5vw, 6.5rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  box-sizing: border-box;
}

.stripe-meta-left {
  display: flex;
  align-items: center;
  gap: clamp(1.5rem, 3.5vw, 4rem);
}

.stripe-index-number {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 3.4vw, 3.4rem);
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.02em;
  line-height: 1;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.85);
  min-width: clamp(55px, 5vw, 85px);
  transition: transform 0.38s cubic-bezier(0.2, 0.8, 0.2, 1);
  will-change: transform;
}

.stripe-title {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 2.9vw, 2.85rem);
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.018em;
  margin: 0;
  line-height: 1.2;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.9);
  transition: color 0.3s ease, transform 0.38s cubic-bezier(0.2, 0.8, 0.2, 1);
  will-change: transform;
}

.stripe-indicator {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.stripe-arrow-icon {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  backdrop-filter: blur(6px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.stripe-arrow-icon svg {
  width: 26px;
  height: 26px;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Hover, Focus & Active Interactions - Smooth Expansion ("si ingrandisce leggermente") */
.service-strip-item:hover,
.service-strip-item:focus,
.service-strip-item.active {
  height: 260px;
  z-index: 5;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.45);
}

.service-strip-item:hover .stripe-bg-layer,
.service-strip-item:focus .stripe-bg-layer,
.service-strip-item.active .stripe-bg-layer {
  opacity: 1;
}

.service-strip-item:hover .stripe-bg-layer img,
.service-strip-item:focus .stripe-bg-layer img,
.service-strip-item.active .stripe-bg-layer img {
  transform: scale(1.04);
}

.service-strip-item:hover .stripe-index-number,
.service-strip-item:focus .stripe-index-number,
.service-strip-item.active .stripe-index-number {
  transform: scale(1.04);
  transform-origin: left center;
}

.service-strip-item:hover .stripe-title,
.service-strip-item:focus .stripe-title,
.service-strip-item.active .stripe-title {
  transform: translateX(10px) scale(1.02);
  transform-origin: left center;
}

.service-strip-item:hover .stripe-arrow-icon,
.service-strip-item:focus .stripe-arrow-icon,
.service-strip-item.active .stripe-arrow-icon {
  background: #22c55e;
  color: #08090a;
  border-color: #22c55e;
  box-shadow: 0 6px 20px rgba(34, 197, 94, 0.5);
  transform: translateX(6px);
}

.service-strip-item:hover .stripe-arrow-icon svg,
.service-strip-item:focus .stripe-arrow-icon svg,
.service-strip-item.active .stripe-arrow-icon svg {
  transform: translateX(3px);
}

/* Services Bento */
.services-section {
  padding: 7rem 0;
  background-color: #f8fafc;
}

.services-bento-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.75rem;
  margin-top: 3.5rem;
}

.bento-service-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all var(--transition);
}

.bento-service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px -4px rgba(0, 0, 0, 0.08);
  border-color: #cbd5e1;
}

.bento-service-card.span-8 { grid-column: span 8; }
.bento-service-card.span-4 { grid-column: span 4; }
.bento-service-card.span-6 { grid-column: span 6; }

.service-card-body {
  padding: 2.25rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.service-meta-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.35rem 0.75rem;
  background: var(--color-primary-light);
  color: var(--color-primary);
  border-radius: 2px;
  margin-bottom: 1rem;
  width: fit-content;
}

.service-card-title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--color-title);
  margin-bottom: 0.85rem;
}

.service-card-desc {
  color: var(--color-muted);
  font-size: 0.96rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.service-spec-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.service-spec-tag {
  font-size: 0.82rem;
  font-weight: 600;
  color: #334155;
  background: #f1f5f9;
  padding: 0.35rem 0.7rem;
  border-radius: 2px;
  border: 1px solid #e2e8f0;
}

.service-card-media {
  height: 240px;
  overflow: hidden;
}

.service-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.bento-service-card:hover .service-card-media img {
  transform: scale(1.05);
}

/* Machinery Showcase */
.machinery-section {
  padding: 7rem 0;
  background-color: #ffffff;
}

.machinery-grid-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  margin-top: 3.5rem;
}

.machinery-image-box {
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
  border: 1px solid #e2e8f0;
}

.machinery-features-list {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.machinery-feature-item {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
}

.feature-number {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--color-primary);
  background: var(--color-primary-light);
  width: 44px;
  height: 44px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.feature-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-title);
  margin-bottom: 0.35rem;
}

.feature-desc {
  color: var(--color-muted);
  font-size: 0.95rem;
  line-height: 1.5;
}

/* Quality Section (Dark) */
.quality-section {
  padding: 7rem 0;
  background-color: var(--color-dark-bg);
  color: #ffffff;
}

.quality-section .section-title { color: #ffffff; }
.quality-section .section-description { color: #94a3b8; }

.quality-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  margin-top: 4rem;
}

.quality-metrics-bento {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.quality-metric-card {
  background: #12161c;
  border: 1px solid #242c38;
  border-radius: 4px;
  padding: 2rem;
  transition: all var(--transition);
}

.quality-metric-card:hover {
  border-color: #22c55e;
  transform: translateY(-3px);
}

.quality-val {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1;
  margin-bottom: 0.5rem;
}

.quality-val span { color: #22c55e; }

.quality-lbl {
  font-size: 0.9rem;
  font-weight: 600;
  color: #cbd5e1;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.quality-sub {
  font-size: 0.85rem;
  color: #64748b;
  line-height: 1.4;
}

/* Quote Section */
.quote-section {
  padding: 7rem 0;
  background-color: #ffffff;
}

.quote-layout {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 4rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 3.5rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
}

.quote-info {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.quote-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: #1e293b;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  font-family: inherit;
  font-size: 0.95rem;
  background-color: #ffffff;
  color: #0f172a;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(3, 75, 34, 0.15);
}

.cad-upload-zone {
  border: 2px dashed #cbd5e1;
  border-radius: 4px;
  padding: 2rem;
  text-align: center;
  background: #ffffff;
  cursor: pointer;
  transition: all var(--transition);
}

.cad-upload-zone:hover,
.cad-upload-zone.dragover {
  border-color: var(--color-primary);
  background: var(--color-primary-light);
}

.cad-upload-zone svg {
  width: 40px;
  height: 40px;
  color: var(--color-primary);
  margin: 0 auto 0.75rem auto;
}

.upload-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  color: #0f172a;
  margin-bottom: 0.25rem;
}

.upload-subtitle {
  font-size: 0.82rem;
  color: #64748b;
}

.file-preview-list {
  margin-top: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.file-preview-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #f1f5f9;
  padding: 0.5rem 0.75rem;
  border-radius: 2px;
  font-size: 0.85rem;
  font-weight: 500;
  color: #1e293b;
}

.btn-submit-quote {
  background-color: var(--color-primary);
  color: #ffffff;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.05rem;
  padding: 1.15rem;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  box-shadow: 0 4px 12px rgba(3, 75, 34, 0.25);
  margin-top: 0.5rem;
}

.btn-submit-quote:hover {
  background-color: var(--color-primary-hover);
  transform: translateY(-2px);
}

/* Secondary Pages Header & Banner */
.site-header.solid-header {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid #e2e8f0;
  box-shadow: var(--shadow-subtle);
  z-index: 50;
  height: 84px;
  display: flex;
  align-items: center;
}

.header-container {
  width: 100%;
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 2.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.main-nav .nav-links {
  display: flex;
  align-items: center;
  gap: 2.75rem;
}

.main-nav .nav-link {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.95rem;
  color: #1a202c;
  padding: 0.35rem 0;
}

.main-nav .nav-link:hover,
.main-nav .nav-link.active {
  color: var(--color-primary);
  font-weight: 600;
}

.header-actions {
  display: flex;
  align-items: center;
}

.btn-header-rfq {
  background-color: var(--color-primary);
  color: #ffffff;
  padding: 0.65rem 1.35rem;
  border-radius: 3px;
  font-size: 0.88rem;
  font-weight: 600;
  transition: all var(--transition);
}

.btn-header-rfq:hover {
  background-color: var(--color-primary-hover);
}

.mobile-nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 30px;
}

.mobile-nav-toggle span {
  width: 100%;
  height: 2px;
  background-color: #0f172a;
}

.page-hero-banner {
  padding: 120px 0 60px 0;
  background-color: #f1f4f6;
  border-bottom: 1px solid #e2e8f0;
}

.banner-content { max-width: 800px; }

.banner-title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 3.8vw, 3.2rem);
  font-weight: 800;
  color: var(--color-title);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 1.25rem;
}

.banner-lead {
  font-size: 1.15rem;
  color: var(--color-muted);
  line-height: 1.6;
}

.tech-table-wrapper {
  overflow-x: auto;
  margin: 2.5rem 0;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.tech-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.95rem;
}

.tech-table th {
  background-color: #f8fafc;
  padding: 1.15rem 1.5rem;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--color-title);
  border-bottom: 2px solid #e2e8f0;
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
}

.tech-table td {
  padding: 1.15rem 1.5rem;
  border-bottom: 1px solid #e2e8f0;
  color: #334155;
}

.tech-table tr:last-child td { border-bottom: none; }
.tech-table tr:hover td { background-color: #f8fafc; }

/* Site Footer - Simplified Minimal Layout */
.site-footer {
  background-color: var(--color-dark-bg);
  color: #94a3b8;
  padding: 4.5rem 0 2.25rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1.25fr;
  gap: clamp(2rem, 5vw, 5.5rem);
  margin-bottom: 3.5rem;
  align-items: start;
}

.footer-brand-col {
  display: flex;
  flex-direction: column;
}

.footer-brand-col .brand-emblem-link,
.footer-brand-col .brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
}

.footer-brand-col .brand-title,
.footer-brand-col .logo-title {
  color: #ffffff;
}

.footer-title {
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 700;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1.35rem;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links a {
  color: #94a3b8;
  font-size: 0.95rem;
  text-decoration: none;
  transition: color 0.2s ease, transform 0.2s ease;
  display: inline-block;
}

.footer-links a:hover {
  color: #ffffff;
  transform: translateX(3px);
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid #242c38;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
  color: #64748b;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-privacy-link {
  color: #94a3b8;
  text-decoration: none;
  font-size: 0.88rem;
  transition: color 0.2s ease;
}

.footer-privacy-link:hover {
  color: #ffffff;
  text-decoration: underline;
}

/* ==========================================================================
   GOOGLE REVIEWS HORIZONTAL MARQUEE
   ========================================================================== */
.reviews-section {
  padding: 6.5rem 0;
  background-color: var(--color-dark-bg);
  color: #ffffff;
  overflow: hidden;
  position: relative;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.reviews-header-centered {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  margin-bottom: 3.5rem;
}

.reviews-main-title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 4.2vw, 3.5rem);
  font-weight: 800;
  color: #ffffff;
  line-height: 1.14;
  letter-spacing: -0.025em;
  text-align: center;
  margin-bottom: 1.25rem;
}

.google-badge-clean {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 9999px;
  padding: 0.65rem 1.4rem;
}

.google-score-bold {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.15rem;
  color: #ffffff;
}

.google-stars-gold {
  color: #fbbc05;
  font-size: 1.15rem;
  letter-spacing: 2px;
  line-height: 1;
}

.google-reviews-label {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  color: #94a3b8;
}

.reviews-marquee-outer {
  position: relative;
  width: 100%;
  overflow: hidden;
  padding: 0.5rem 0;
}

.reviews-marquee-outer::before,
.reviews-marquee-outer::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 140px;
  z-index: 2;
  pointer-events: none;
}

.reviews-marquee-outer::before {
  left: 0;
  background: linear-gradient(to right, var(--color-dark-bg) 0%, transparent 100%);
}

.reviews-marquee-outer::after {
  right: 0;
  background: linear-gradient(to left, var(--color-dark-bg) 0%, transparent 100%);
}

.reviews-track {
  display: flex;
  gap: 1.5rem;
  width: max-content;
  animation: scrollReviews 55s linear infinite;
}

.reviews-track:hover {
  animation-play-state: paused;
}

@keyframes scrollReviews {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.review-box {
  width: 350px;
  flex-shrink: 0;
  background: #121824;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 12px;
  padding: 1.6rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.review-box:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.25);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
}

.review-box-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.reviewer-profile {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.reviewer-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  flex-shrink: 0;
}

.reviewer-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.98rem;
  color: #ffffff;
  line-height: 1.2;
}

.reviewer-source {
  font-family: var(--font-body);
  font-size: 0.78rem;
  color: #94a3b8;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.15rem;
}

.reviewer-source strong {
  color: #e2e8f0;
}

.review-stars-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.85rem;
}

.review-stars {
  color: #fbbc05;
  font-size: 1.05rem;
  letter-spacing: 1px;
}

.review-time-tag {
  font-family: var(--font-body);
  font-size: 0.78rem;
  color: #64748b;
  margin-left: auto;
}

.review-body-text {
  font-family: var(--font-body);
  font-size: 0.92rem;
  line-height: 1.55;
  color: #cbd5e1;
  min-height: 48px;
}

.review-body-placeholder {
  color: #94a3b8;
  font-style: italic;
  font-size: 0.86rem;
}

/* ==========================================================================
   CONTACT DIRECT SECTION (NERO COME IL FOOTER)
   ========================================================================== */
.contact-cta-section {
  padding: 6.5rem 0;
  background-color: var(--color-dark-bg);
  position: relative;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.contact-cta-card {
  background-color: var(--color-dark-bg);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 4.5rem 3.5rem;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.contact-cta-title {
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 3.5vw, 3.2rem);
  font-weight: 800;
  color: #ffffff;
  line-height: 1.15;
  letter-spacing: -0.025em;
  max-width: 820px;
  margin-bottom: 1.25rem;
}

.contact-cta-desc {
  font-family: var(--font-body);
  font-size: 1.1rem;
  color: #94a3b8;
  max-width: 700px;
  line-height: 1.6;
  margin-bottom: 2.75rem;
}

/* Phone Spotlight Box - Massive, Elegant Typography */
.phone-spotlight-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #121824;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 16px;
  padding: 2.75rem 3.5rem;
  width: 100%;
  max-width: 680px;
  margin: 0 auto;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
  transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.phone-spotlight-box:hover {
  border-color: rgba(255, 255, 255, 0.32);
  transform: translateY(-3px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.55);
}

.phone-spotlight-tag {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #94a3b8;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.85rem;
}

.phone-spotlight-num-link {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.03em;
  line-height: 1.05;
  text-decoration: none;
  margin-bottom: 1.75rem;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.phone-spotlight-num-link:hover {
  opacity: 0.95;
  transform: scale(1.02);
}

.btn-phone-call-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  background: #ffffff;
  color: #090b0e;
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  padding: 0.95rem 2.25rem;
  border-radius: 8px;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(255, 255, 255, 0.15);
  transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-phone-call-action:hover {
  background: #e2e8f0;
  color: #000000;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(255, 255, 255, 0.25);
}

.contact-info-boxes-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  width: 100%;
  max-width: 780px;
  margin-top: 3rem;
  padding-top: 2.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-info-box {
  display: flex;
  align-items: center;
  gap: 1.15rem;
  background: #121824;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 1.25rem 1.5rem;
  text-decoration: none;
  color: #ffffff;
  text-align: left;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.contact-info-box:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.25);
}

.info-box-icon {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  flex-shrink: 0;
}

.info-box-text {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.info-box-label {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #94a3b8;
}

.info-box-val {
  font-family: var(--font-display);
  font-size: 0.98rem;
  font-weight: 700;
  color: #ffffff;
  word-break: break-word;
}

/* ==========================================================================
   DARK STICKY HEADER (Matches index.html design system)
   ========================================================================== */
.site-header.dark-header {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(12, 16, 23, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  z-index: 100;
  height: 84px;
  display: flex;
  align-items: center;
}

.site-header.dark-header .header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 clamp(1.5rem, 5vw, 4.5rem);
}

.site-header.dark-header .brand-title {
  color: #ffffff;
}

.site-header.dark-header .nav-links {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  list-style: none;
}

.site-header.dark-header .nav-link {
  color: #94a3b8;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.2s ease;
  text-decoration: none;
}

.site-header.dark-header .nav-link:hover,
.site-header.dark-header .nav-link.active {
  color: #ffffff;
  font-weight: 600;
}

.site-header.dark-header .mobile-nav-toggle span {
  background-color: #ffffff;
}

/* ==========================================================================
/* ==========================================================================
   ABOUT PAGE (AZIENDA.HTML) - CLEAN & FOCUSED LAYOUT
   ========================================================================== */
.about-hero-simple {
  position: relative;
  background-color: #0c1017;
  color: #ffffff;
  padding: 5rem 0 4.5rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.about-hero-content {
  max-width: 860px;
}

.about-breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: #94a3b8;
  margin-bottom: 1.25rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
}

.about-breadcrumb a {
  color: #64748b;
  transition: color 0.2s;
}

.about-breadcrumb a:hover {
  color: #22c55e;
}

.about-hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 4.4vw, 3.8rem);
  font-weight: 800;
  color: #ffffff;
  line-height: 1.12;
  letter-spacing: -0.025em;
  margin-bottom: 1.25rem;
}

.about-hero-lead {
  font-size: clamp(1.1rem, 1.4vw, 1.3rem);
  color: #94a3b8;
  line-height: 1.65;
  max-width: 780px;
}

/* Story Section */
.about-story-section {
  padding: 6.5rem 0;
  background-color: #ffffff;
}

.about-story-layout {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 4.5rem;
  align-items: center;
}

.about-text-content {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  font-size: 1.05rem;
  line-height: 1.75;
  color: #4b5563;
  margin-top: 1.5rem;
  margin-bottom: 2.5rem;
}

.about-text-content p {
  margin: 0;
}

.about-highlights-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid #e2e8f0;
}

.about-highlight-box {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.highlight-number {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.02em;
  line-height: 1;
}

.highlight-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.about-story-visual {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.12);
  border: 1px solid #e2e8f0;
  position: relative;
  min-height: 440px;
}

.about-story-visual img {
  width: 100%;
  height: 120%;
  min-height: 480px;
  object-fit: cover;
  will-change: transform;
  transform: translate3d(0, 0, 0) scale(1.05);
}

/* Services Overview Section (Di cosa ci occupiamo) */
.about-services-overview {
  padding: 6.5rem 0;
  background-color: #f8fafc;
  border-top: 1px solid var(--color-border-subtle);
  border-bottom: 1px solid var(--color-border-subtle);
}

.services-cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.75rem;
  margin-top: 3.5rem;
}

.service-simple-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 2.25rem 1.75rem;
  display: flex;
  flex-direction: column;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: var(--shadow-subtle);
}

.service-simple-card:hover {
  transform: translateY(-4px);
  border-color: #cbd5e1;
  box-shadow: var(--shadow-lg);
}

.service-card-num {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 800;
  color: #22c55e;
  margin-bottom: 1.25rem;
  line-height: 1;
}

.service-card-heading {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 0.85rem;
  letter-spacing: -0.015em;
}

.service-card-text {
  font-size: 0.95rem;
  color: #64748b;
  line-height: 1.6;
  margin: 0;
}

/* General CTA Section */
.about-cta-simple {
  padding: 6rem 0;
  background-color: #0c1017;
  color: #ffffff;
}

.cta-simple-box {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: clamp(2.5rem, 5vw, 4rem);
  text-align: center;
  max-width: 860px;
  margin: 0 auto;
}

.cta-simple-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.2vw, 2.75rem);
  font-weight: 800;
  color: #ffffff;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 0.75rem 0 1.25rem 0;
}

.cta-simple-desc {
  font-size: 1.05rem;
  color: #94a3b8;
  line-height: 1.65;
  max-width: 620px;
  margin: 0 auto 2.25rem auto;
}

.cta-simple-actions {
  display: flex;
  justify-content: center;
}

/* ==========================================================================
   SERVICE MODAL POPUP (FINESTRELLA DETTAGLIO SERVIZIO)
   ========================================================================== */
.service-popup-backdrop {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(10, 13, 18, 0.78);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.28s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.28s ease;
}

.service-popup-backdrop.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.service-popup-window {
  background: #ffffff;
  width: 100%;
  max-width: 860px;
  max-height: 90vh;
  border-radius: 12px;
  box-shadow: 0 30px 70px -15px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: scale(0.95) translateY(14px);
  transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.28s ease;
  position: relative;
}

.service-popup-backdrop.active .service-popup-window {
  transform: scale(1) translateY(0);
}

/* Modal Header Bar */
.service-popup-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.75rem;
  background-color: #0c1017;
  color: #ffffff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.service-popup-meta {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.service-popup-num {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 800;
  color: #22c55e;
  line-height: 1;
}

.service-popup-badge {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  color: #cbd5e1;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: rgba(255, 255, 255, 0.08);
  padding: 0.25rem 0.65rem;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.service-popup-close-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ffffff;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.35rem;
  line-height: 1;
  transition: all 0.2s ease;
}

.service-popup-close-btn:hover {
  background: #ef4444;
  border-color: #ef4444;
  color: #ffffff;
  transform: rotate(90deg);
}

/* Modal Content Scrollable Area */
.service-popup-content-scroll {
  overflow-y: auto;
  padding: 0;
  flex: 1;
  overscroll-behavior: contain;
}

/* Hero visual inside modal */
.service-popup-hero {
  position: relative;
  width: 100%;
  height: 230px;
  overflow: hidden;
  background-color: #0f172a;
}

.service-popup-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.service-popup-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(12, 16, 23, 0.15) 0%, rgba(12, 16, 23, 0.88) 100%);
  display: flex;
  align-items: flex-end;
  padding: 1.5rem 2.25rem;
}

.service-popup-hero-title {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.3vw, 1.85rem);
  font-weight: 800;
  color: #ffffff;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 0;
}

/* Body container */
.service-popup-body {
  padding: 2rem 2.25rem;
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.service-popup-desc-text {
  font-size: 1.02rem;
  color: #334155;
  line-height: 1.75;
  margin: 0;
}

/* Metrics pill cards */
.service-popup-metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.service-popup-metric-item {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 1rem 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.service-metric-val {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.service-metric-val span {
  color: #16a34a;
}

.service-metric-lbl {
  font-size: 0.76rem;
  font-weight: 600;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* 2-column detailed breakdown */
.service-popup-details-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.75rem;
}

.service-popup-detail-col {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 1.5rem;
}

.service-detail-heading {
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 700;
  color: #0f172a;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.service-detail-heading svg {
  color: #22c55e;
  flex-shrink: 0;
}

.service-specs-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.service-specs-list li {
  font-size: 0.92rem;
  color: #475569;
  line-height: 1.55;
  position: relative;
  padding-left: 1.35rem;
}

.service-specs-list li::before {
  content: "•";
  position: absolute;
  left: 0.25rem;
  color: #22c55e;
  font-weight: bold;
  font-size: 1.1rem;
  line-height: 1;
}

/* Material tags pills */
.service-tags-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.service-tag-pill {
  font-size: 0.8rem;
  font-weight: 600;
  background: #ffffff;
  color: #1e293b;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  padding: 0.35rem 0.75rem;
  line-height: 1.2;
}

/* Applications Banner */
.service-popup-applications {
  background: #f1f5f9;
  border-left: 3px solid #22c55e;
  border-radius: 6px;
  padding: 1.15rem 1.35rem;
  font-size: 0.92rem;
  color: #334155;
  line-height: 1.65;
}

.service-popup-applications strong {
  color: #0f172a;
}

/* Modal Bottom Action Footer */
.service-popup-footer {
  padding: 1.25rem 2.25rem;
  background-color: #f8fafc;
  border-top: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.service-popup-footer-text {
  font-size: 0.88rem;
  color: #64748b;
  margin: 0;
}

.service-popup-actions {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.btn-popup-secondary {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: #334155;
  padding: 0.75rem 1.4rem;
  border-radius: 6px;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-popup-secondary:hover {
  background: #e2e8f0;
  color: #0f172a;
}

.btn-popup-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: #22c55e;
  color: #ffffff;
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(34, 197, 94, 0.25);
  transition: all 0.2s ease;
  cursor: pointer;
  border: none;
}

.btn-popup-primary:hover {
  background-color: #16a34a;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(34, 197, 94, 0.35);
}

/* Service Card link on about page */
.service-card-action-link {
  margin-top: 1.25rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: #16a34a;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: gap 0.2s ease;
}

.service-simple-card:hover .service-card-action-link {
  gap: 0.7rem;
}

body.modal-open {
  overflow: hidden !important;
}

