/* ============================================================
   INFRASERVICE SRL — Main Stylesheet
   Industrial Precision Dark Theme
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@400;600;700;800&family=IBM+Plex+Sans:wght@300;400;500;600&family=IBM+Plex+Mono:wght@400;500&display=swap');

:root {
  --navy:        #080E1C;
  --navy-mid:    #0C1830;
  --blue:        #0A2A5C;
  --blue-light:  #0055B8;
  --orange:      #E03020;
  --orange-dark: #B82010;
  --white:       #FFFFFF;
  --light:       #E8EDF6;
  --muted:       #7A9AC4;
  --border:      rgba(0,85,184,0.22);
  --card-bg:     rgba(10,42,92,0.35);
  --font-display: 'Barlow Condensed', sans-serif;
  --font-body:    'IBM Plex Sans', sans-serif;
  --font-mono:    'IBM Plex Mono', monospace;
  --radius:  6px;
  --radius-lg: 12px;
  --shadow: 0 8px 32px rgba(0,0,0,0.35);
  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  background: var(--navy);
  color: var(--light);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  background-image:
    radial-gradient(ellipse 90% 60% at 80% 10%, rgba(0,55,140,0.6) 0%, transparent 55%),
    radial-gradient(ellipse 60% 50% at 10% 40%, rgba(0,85,184,0.2) 0%, transparent 50%),
    radial-gradient(ellipse 50% 40% at 50% 90%, rgba(224,48,32,0.06) 0%, transparent 55%);
  background-attachment: fixed;
}
img { max-width: 100%; display: block; }
a { color: var(--orange); text-decoration: none; transition: color var(--transition); }
a:hover { color: #fff; }

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; line-height: 1.1; letter-spacing: 0.01em; }
h1 { font-size: clamp(2.4rem, 6vw, 5rem); font-weight: 800; }
h2 { font-size: clamp(2rem, 4vw, 3.5rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.9rem); }
h4 { font-size: 1.1rem; font-weight: 600; }
p { margin-bottom: 1rem; color: var(--muted); max-width: 68ch; }
p.lead { font-size: 1.15rem; color: var(--light); font-weight: 300; }

.text-orange { color: var(--orange); }
.text-light  { color: var(--light); }
.text-muted  { color: var(--muted); }
.mono { font-family: var(--font-mono); font-size: 0.82rem; color: var(--orange); letter-spacing: 0.08em; }

.container { width: 100%; max-width: 1920px; margin: 0 auto; padding: 0 5rem; }
.section { padding: 100px 0; }
.section-sm { padding: 60px 0; }
.section-label { font-family: var(--font-mono); font-size: 0.9rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--orange); margin-bottom: 0.75rem; display: block; }
.section-title { margin-bottom: 1.5rem; }
.section-intro { font-size: 1.1rem; color: var(--light); max-width: 600px; margin: 0 auto 3rem; }

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.grid-asymm { display: grid; grid-template-columns: 1fr 1.4fr; gap: 4rem; align-items: center; }

/* HEADER */
.site-header { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; background: rgba(10,22,40,0.92); backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); }
.site-header .container { padding-right: 1.5rem; }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.logo { display: flex; align-items: center; text-decoration: none; background: transparent !important; }
.logo img { height: 44px !important; width: auto; display: block; background: transparent !important; transition: opacity var(--transition); }
.logo:hover img { opacity: 0.85; }

.main-nav { display: flex; align-items: center; gap: 0.25rem; }
.main-nav a { font-family: var(--font-body); font-weight: 500; font-size: 0.88rem; color: var(--muted); padding: 0.5rem 0.9rem; border-radius: var(--radius); letter-spacing: 0.02em; transition: all var(--transition); }
.main-nav a:hover, .main-nav a.active { color: var(--white); background: var(--card-bg); }
.main-nav .nav-cta { background: var(--orange); color: white; padding: 0.5rem 1.25rem; margin-left: 0.5rem; }
.main-nav .nav-cta:hover { background: var(--orange-dark); color: white; }

.nav-dropdown { position: relative; }
.nav-dropdown > a::after { content: ' ▾'; font-size: 0.65rem; }
.dropdown-menu { display: none; position: absolute; top: 100%; left: 0; background: rgba(6,14,28,0.97); border: 1px solid var(--border); border-radius: var(--radius-lg); min-width: 220px; padding: 0.5rem; box-shadow: var(--shadow); max-height: 90vh; overflow-y: auto; }
.nav-dropdown:hover .dropdown-menu { display: block; }
.dropdown-menu a { display: block; padding: 0.5rem 1rem; font-size: 0.85rem; color: var(--muted); border-radius: var(--radius); }
.dropdown-menu a:hover { color: var(--orange); background: rgba(255,107,53,0.08); }

/* LANGUAGE DROPDOWN */
.lang-dropdown { position: relative; margin-left: 0.75rem; padding-left: 0.75rem; border-left: 1px solid var(--border); }
.lang-btn { display: flex; align-items: center; gap: 0.4rem; background: rgba(255,255,255,0.05); border: 1px solid var(--border); color: var(--light); padding: 0.35rem 0.65rem; border-radius: var(--radius); cursor: pointer; font-family: var(--font-body); font-size: 0.8rem; font-weight: 600; letter-spacing: 0.05em; transition: all var(--transition); white-space: nowrap; }
.lang-btn:hover { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.25); color: var(--white); }
.lang-btn[aria-expanded="true"] { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.2); }
.lang-flag { font-size: 1rem; line-height: 1; display: inline-block; }
.lang-code { font-size: 0.78rem; color: inherit; }
.lang-chevron { color: var(--muted); transition: transform var(--transition); flex-shrink: 0; }
.lang-btn[aria-expanded="true"] .lang-chevron { transform: rotate(180deg); }
.lang-menu { display: none; position: absolute; top: calc(100% + 8px); right: 0; background: rgba(6,14,28,0.98); border: 1px solid var(--border); border-radius: var(--radius-lg); min-width: 148px; padding: 0.4rem; box-shadow: 0 8px 32px rgba(0,0,0,0.5); z-index: 1001; backdrop-filter: blur(12px); }
.lang-dropdown.open .lang-menu { display: block; animation: langFadeDown 0.18s ease; }
.lang-menu a { display: flex; align-items: center; gap: 0.6rem; padding: 0.5rem 0.75rem; border-radius: var(--radius); font-size: 0.84rem; color: var(--muted); text-decoration: none; transition: all var(--transition); }
.lang-menu a:hover { color: var(--white); background: rgba(255,255,255,0.07); }
.lang-menu a.active { color: var(--white); font-weight: 600; }
.lang-menu a.active .lang-flag { filter: drop-shadow(0 0 5px rgba(255,107,53,0.6)); }
.lang-menu .lang-name { font-size: 0.84rem; }
@keyframes langFadeDown { from { opacity:0; transform:translateY(-6px); } to { opacity:1; transform:translateY(0); } }

.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 8px; background: none; border: none; }
.hamburger span { display: block; width: 24px; height: 2px; background: var(--light); border-radius: 2px; transition: all var(--transition); }

/* HERO */
.hero { min-height: 100vh; display: flex; align-items: center; position: relative; overflow: hidden; background: transparent; padding-top: 72px; perspective: 1200px; }
.hero-mosaico {
  position: absolute;
  width: 38vmin;
  height: auto;
  pointer-events: none;
  opacity: 0.5;
  z-index: 1;
  top: 0; left: 0;
  transform-origin: center center;
  transform-style: preserve-3d;
  animation:
    ember-x    37s ease-in-out infinite alternate,
    ember-y    26s ease-in-out infinite alternate,
    ember-rotZ 50s linear          infinite,
    ember-rotY 19s ease-in-out     infinite alternate,
    ember-glow 14s ease-in-out     infinite alternate;
}
@keyframes ember-x    { 0% { margin-left: 3vw;  } 100% { margin-left: 78vw; } }
@keyframes ember-y    { 0% { margin-top:  2vh;  } 100% { margin-top:  78vh; } }
@keyframes ember-rotZ { 0% { rotate: 0deg;      } 100% { rotate: 360deg;    } }
@keyframes ember-rotY { 0% { transform: rotateY(0deg);   } 100% { transform: rotateY(180deg); } }
@keyframes ember-glow {
  0%   { filter: drop-shadow(0 0 6px  rgba(255,80,0,0.08)); opacity: 0.4; }
  100% { filter: drop-shadow(0 0 22px rgba(255,80,0,0.28)); opacity: 0.62; }
}
.hero-bg { position: absolute; inset: 0; background: radial-gradient(ellipse 80% 60% at 70% 40%, rgba(0,55,140,0.6) 0%, transparent 70%), radial-gradient(ellipse 40% 40% at 80% 70%, rgba(224,48,32,0.1) 0%, transparent 60%); }
.hero-grid { display: none; }
.hero-content { position: relative; z-index: 2; max-width: 750px; }
.hero-identity {
  position: absolute;
  top: 9rem;
  right: 3rem;
  z-index: 3;
  max-width: 230px;
  background: rgba(8,16,36,0.82);
  border: 1px solid rgba(255,107,53,0.22);
  border-left: 3px solid var(--orange);
  border-radius: var(--radius);
  padding: 1.1rem 1.3rem;
  backdrop-filter: blur(10px);
}
.hero-identity-label {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  color: var(--orange);
  letter-spacing: 0.12em;
  margin-bottom: 0.55rem;
}
.hero-identity-desc {
  font-size: 0.8rem;
  color: var(--light);
  line-height: 1.55;
  margin: 0 0 0.85rem;
}
.hero-identity-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  border-top: 1px solid var(--border);
  padding-top: 0.75rem;
}
.hero-identity-list li {
  font-size: 0.7rem;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.hero-identity-list li::before {
  content: "▸";
  color: var(--orange);
  flex-shrink: 0;
}
.hero-eyebrow { display: inline-flex; align-items: center; gap: 0.5rem; font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--orange); margin-bottom: 1.5rem; padding: 0.4rem 1rem; border: 1px solid rgba(255,107,53,0.3); border-radius: 100px; }
.hero-eyebrow::before { content: ''; width: 8px; height: 8px; background: var(--orange); border-radius: 50%; animation: pulse 2s ease infinite; }
@keyframes pulse { 0%,100% { opacity:1; transform:scale(1); } 50% { opacity:0.5; transform:scale(0.7); } }
.hero h1 { color: var(--white); margin-bottom: 1.5rem; }
.hero h1 em { color: var(--orange); font-style: normal; }
.hero-desc { font-size: 1.15rem; color: var(--muted); margin-bottom: 2.5rem; max-width: 560px; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-stats { position: relative; z-index: 2; display: flex; gap: 3rem; margin-top: 5rem; padding-top: 2rem; border-top: 1px solid var(--border); }
.stat-number { font-family: var(--font-display); font-size: 2.2rem; font-weight: 800; color: var(--white); line-height: 1; }
.stat-number span { color: var(--orange); }
.stat-label { font-size: 0.78rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; margin-top: 0.25rem; }

/* HOME NUMBERS */
.home-numbers-section { padding: 3rem 0; background: rgba(4,10,24,0.7); border-bottom: 1px solid var(--border); }
.home-numbers-grid { display: flex; justify-content: space-around; align-items: center; flex-wrap: wrap; gap: 2rem; }
.home-number-item { text-align: center; }
.home-number-value { font-family: var(--font-display); font-size: clamp(2.6rem, 5vw, 4rem); font-weight: 900; color: var(--white); line-height: 1; }
.home-number-value span { color: var(--orange); }
.home-number-label { font-size: 0.78rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; margin-top: 0.4rem; }
@media (max-width: 600px) {
  .home-numbers-grid { gap: 2rem; }
}

/* HERO VIDEO */
.hero-video-section { position: relative; width: 100%; height: 78vh; min-height: 420px; overflow: hidden; display: flex; align-items: flex-end; justify-content: center; }
.hero-video-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; transition: opacity 1.2s ease; }
.hero-video-overlay { position: absolute; inset: 0; z-index: 2; background: linear-gradient(to bottom, rgba(4,10,24,0.15) 0%, rgba(4,10,24,0.35) 50%, rgba(4,10,24,0.82) 100%); }
.hero-img-slide { position: absolute; inset: 0; z-index: 1; overflow: hidden; transition: opacity 1.2s ease; }
.hero-img-slide img { width: 100%; height: 100%; object-fit: cover; object-position: center; transform-origin: center center; }
.hero-img-slide.playing img { animation: heroKenBurns 12s ease-in-out forwards; }
@keyframes heroKenBurns { from { transform: scale(1.08) translateX(0); } to { transform: scale(1.01) translateX(-1%); } }
.hero-video-content { position: relative; z-index: 3; text-align: center; padding: 0 3rem 3.5rem; max-width: 1350px; width: 100%; }
.hero-video-title { font-family: var(--font-display); font-size: clamp(2.8rem, 7vw, 6.5rem); font-weight: 900; color: var(--white); line-height: 1.1; letter-spacing: -0.02em; margin: 0; text-shadow: 0 4px 32px rgba(0,0,0,0.6); text-transform: uppercase; transition: opacity 0.6s ease; hyphens: none; }
.hero-video-accent { color: var(--orange); }
.hero-letter { display: inline-block; opacity: 0; animation: letterIn 0.45s cubic-bezier(0.22,1,0.36,1) forwards; }
@keyframes letterIn { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 600px) {
  .hero-video-title { font-size: clamp(2rem, 10vw, 3rem); }
  .hero-video-content { padding-bottom: 4rem; }
}

/* BUTTONS */
.btn { display: inline-flex; align-items: center; gap: 0.5rem; font-family: var(--font-body); font-weight: 600; font-size: 0.9rem; padding: 0.8rem 1.75rem; border-radius: var(--radius); border: none; cursor: pointer; transition: all var(--transition); letter-spacing: 0.02em; text-decoration: none; }
.btn-primary { background: var(--orange); color: white; }
.btn-primary:hover { background: var(--orange-dark); color: white; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(255,107,53,0.35); }
.btn-outline { background: transparent; color: var(--light); border: 1px solid var(--border); }
.btn-outline:hover { border-color: var(--orange); color: var(--orange); background: rgba(255,107,53,0.05); }
.btn-ghost { background: transparent; color: var(--orange); padding: 0; font-weight: 600; }
.datasheet-btns { display: flex; gap: 0.75rem; margin-top: 1.25rem; flex-wrap: wrap; }
.btn-datasheet { display: inline-flex; align-items: center; gap: 0.4rem; font-family: var(--font-mono); font-size: 0.72rem; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; padding: 0.5rem 1rem; border-radius: var(--radius); border: 1px solid var(--border); color: var(--muted); text-decoration: none; transition: all var(--transition); }
.btn-datasheet:hover { border-color: var(--orange); color: var(--orange); background: rgba(255,107,53,0.06); }
.btn-datasheet svg { width: 13px; height: 13px; fill: currentColor; flex-shrink: 0; }
.btn-ghost:hover { color: white; }
.btn-ghost::after { content: ' →'; }

/* CARDS */
.card { background: var(--card-bg); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 2rem; transition: all var(--transition); }
.card:hover { border-color: rgba(255,107,53,0.3); transform: translateY(-4px); box-shadow: 0 16px 40px rgba(0,0,0,0.3); }
.card-icon { width: 48px; height: 48px; background: rgba(255,107,53,0.12); border: 1px solid rgba(255,107,53,0.2); border-radius: var(--radius); display: flex; align-items: center; justify-content: center; margin-bottom: 1.25rem; font-size: 1.4rem; }
.card h3 { color: var(--white); margin-bottom: 0.75rem; font-size: 1.3rem; }
.card p { margin-bottom: 0; font-size: 1rem; }

.product-card { position: relative; overflow: hidden; }
.product-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, var(--orange), transparent); opacity: 0; transition: opacity var(--transition); }
.product-card:hover::before { opacity: 1; }
.product-tag { font-family: var(--font-mono); font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--orange); margin-bottom: 0.5rem; }

/* FEATURE STRIP */
.feature-strip { background: rgba(15,32,64,0.7); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 1.25rem 0; overflow: hidden; backdrop-filter: blur(4px); }
.strip-inner { display: flex; gap: 3rem; animation: strip-scroll 30s linear infinite; width: max-content; }
.strip-item { display: flex; align-items: center; gap: 0.6rem; white-space: nowrap; font-size: 0.95rem; font-weight: 500; color: var(--muted); letter-spacing: 0.05em; }
.strip-item span { color: var(--orange); font-size: 1rem; }
.strip-icon { height: 1.1rem; width: auto; display: block; filter: brightness(0) invert(1); opacity: 0.75; }
@keyframes strip-scroll { 0% { transform:translateX(0); } 100% { transform:translateX(-50%); } }

/* EFD SECTION */
.efd-section { background: rgba(15,32,64,0.6); position: relative; overflow: hidden; backdrop-filter: blur(2px); }
.efd-section::before { content: ''; position: absolute; right: -200px; top: -200px; width: 600px; height: 600px; background: radial-gradient(circle, rgba(224,48,32,0.08) 0%, transparent 70%); pointer-events: none; }
.efd-spec-list { list-style: none; }
.efd-spec-list li { display: flex; align-items: flex-start; gap: 0.75rem; padding: 0.75rem 0; border-bottom: 1px solid var(--border); font-size: 1.15rem; }
.efd-spec-list li:last-child { border-bottom: none; }
.spec-check { color: var(--orange); font-weight: 700; margin-top: 0.1rem; flex-shrink: 0; }
.efd-badge { display: inline-block; background: rgba(255,107,53,0.12); border: 1px solid rgba(255,107,53,0.3); color: var(--orange); font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.1em; padding: 0.3rem 0.75rem; border-radius: 100px; margin-bottom: 1rem; }
.sector-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.5rem; }
.sector-tag { font-size: 0.78rem; font-weight: 500; padding: 0.35rem 0.9rem; background: rgba(30,58,95,0.6); border: 1px solid var(--border); border-radius: 100px; color: var(--muted); cursor: default; }

/* THERMAL VISUAL */
.thermal-visual { background: linear-gradient(135deg, #1a0a00 0%, #3d1400 30%, #7a2d00 55%, #ff6b35 80%, #ffb300 100%); border-radius: var(--radius-lg); aspect-ratio: 4/3; position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.thermal-visual::after { content: ''; position: absolute; inset: 0; background: repeating-linear-gradient(0deg, transparent, transparent 3px, rgba(0,0,0,0.08) 3px, rgba(0,0,0,0.08) 4px); }
.thermal-overlay { position: relative; z-index: 2; text-align: center; }
.thermal-temp { font-family: var(--font-mono); font-size: 3.5rem; font-weight: 500; color: #fff; text-shadow: 0 0 20px rgba(255,150,0,0.8); }
.thermal-label { font-size: 0.75rem; letter-spacing: 0.15em; text-transform: uppercase; color: rgba(255,255,255,0.7); margin-top: 0.25rem; }
.thermal-crosshair { position: absolute; top: 50%; left: 50%; width: 60px; height: 60px; transform: translate(-50%,-50%); border: 2px solid rgba(255,200,0,0.8); border-radius: 50%; }
.thermal-crosshair::before, .thermal-crosshair::after { content: ''; position: absolute; background: rgba(255,200,0,0.8); }
.thermal-crosshair::before { width: 1px; height: 20px; top: 50%; left: 50%; transform: translate(-50%,-50%); }
.thermal-crosshair::after { width: 20px; height: 1px; top: 50%; left: 50%; transform: translate(-50%,-50%); }

/* PRODUCTS GRID */
.products-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.5rem; }
.product-card-link { text-decoration: none; color: inherit; }

/* APP CARDS */
.app-card { position: relative; overflow: hidden; background: var(--card-bg); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 2rem; min-height: 200px; display: flex; flex-direction: column; justify-content: flex-end; transition: all var(--transition); }
.app-card:hover { border-color: rgba(255,107,53,0.3); transform: translateY(-4px); }
.app-icon { font-size: 2.5rem; margin-bottom: 1rem; }
.app-card h3 { color: var(--white); margin-bottom: 0.5rem; font-size: 1.1rem; }
.app-card p { font-size: 0.85rem; margin-bottom: 0; }

/* PLC STACK */
.auto-diagram { background: var(--card-bg); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 2.5rem; }
.plc-stack { display: flex; flex-direction: column; gap: 0.75rem; }
.plc-layer { padding: 1rem 1.5rem; border-radius: var(--radius); border-left: 3px solid var(--orange); background: rgba(10,22,40,0.5); display: flex; align-items: center; justify-content: space-between; }
.plc-layer h4 { color: var(--white); font-size: 0.95rem; margin: 0; }
.plc-layer .mono { font-size: 0.7rem; }
.plc-arrow { text-align: center; color: var(--orange); font-size: 1.2rem; margin: 0.2rem 0; }

/* REALIZZAZIONI */
.realiz-filters { display: flex; gap: 0.5rem; flex-wrap: wrap; padding-bottom: 2rem; border-bottom: 1px solid var(--border); }
.realiz-filter { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; background: transparent; border: 1px solid var(--border); color: var(--muted); padding: 0.4rem 1rem; border-radius: 100px; cursor: pointer; transition: all var(--transition); }
.realiz-filter:hover { border-color: var(--orange); color: var(--light); }
.realiz-filter.active { background: var(--orange); border-color: var(--orange); color: white; }
.realiz-group { margin-bottom: 5rem; }
.realiz-group:last-child { margin-bottom: 0; }
.realiz-group-header { margin-bottom: 2.5rem; padding-bottom: 1.25rem; border-bottom: 1px solid var(--border); }
.realiz-group-title { font-family: var(--font-display); font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 700; letter-spacing: -0.02em; margin: 0.25rem 0 0; color: var(--text); }
.realiz-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.realiz-card { background: var(--card-bg); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; transition: all var(--transition); display: flex; flex-direction: column; }
.realiz-card:hover { border-color: rgba(255,107,53,0.3); transform: translateY(-4px); box-shadow: 0 12px 40px rgba(0,0,0,0.3); cursor: pointer; }

/* Card preview overlay */
.realiz-preview-overlay {
  position: fixed; inset: 0; z-index: 9000;
  background: rgba(4,8,20,0.88);
  backdrop-filter: blur(6px);
  opacity: 0; pointer-events: none;
  transition: opacity 0.2s ease;
}
.realiz-preview-overlay.active { opacity: 1; pointer-events: auto; }
.realiz-preview-box {
  position: absolute;
  transform: translate(-50%, -50%);
  z-index: 9001;
  background: var(--card-bg);
  border: 1px solid rgba(255,107,53,0.3);
  border-radius: var(--radius-lg);
  width: min(90vw, 820px);
  max-height: 90vh;
  overflow: hidden;
  box-shadow: 0 32px 80px rgba(0,0,0,0.6);
  display: flex; flex-direction: column;
  opacity: 0; pointer-events: none;
  transition: opacity 0.2s ease;
}
.realiz-preview-box.active { opacity: 1; pointer-events: auto; }
.realiz-preview-box img {
  width: 100%; height: auto; display: block;
  max-height: 60vh; object-fit: contain;
  background: #000;
}
.realiz-preview-body { padding: 1.5rem 2rem; overflow-y: auto; }
.realiz-preview-body h3 { font-size: 1.25rem; margin-bottom: 0.5rem; color: var(--white); }
.realiz-preview-body p { color: var(--muted); font-size: 0.9rem; margin: 0; }
.realiz-preview-close {
  position: absolute; top: 0.75rem; right: 0.75rem;
  width: 32px; height: 32px; border-radius: 50%;
  background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.15);
  color: var(--light); font-size: 1rem; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s; flex-shrink: 0;
}
.realiz-preview-close:hover { background: rgba(255,107,53,0.25); }

.realiz-img-placeholder { height: 160px; background: linear-gradient(135deg, rgba(15,32,64,0.8), rgba(0,55,140,0.4)); display: flex; align-items: center; justify-content: center; border-bottom: 1px solid var(--border); }
.realiz-img-real { height: 260px; overflow: hidden; border-bottom: 1px solid var(--border); }
.realiz-img-real img { width: 100%; height: 100%; object-fit: cover; object-position: bottom center; display: block; transition: transform 0.4s ease; }
.realiz-card:hover .realiz-img-real img { transform: scale(1.04); }
.realiz-sector-icon { font-size: 3rem; }
.realiz-body { padding: 1.5rem; flex: 1; display: flex; flex-direction: column; }
.realiz-body h3 { font-size: clamp(1.35rem, 2.5vw, 2rem); }
.realiz-body p { font-size: 1.05rem; }
.product-card .realiz-body .btn { margin-top: auto; }
.realiz-tags { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 0.875rem; }
.realiz-tag { font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; padding: 0.2rem 0.6rem; border-radius: 100px; font-weight: 600; }
.tag-rifiuti    { background: rgba(255,107,53,0.15); color: var(--orange); }
.tag-forni      { background: rgba(255,60,0,0.15);   color: #ff6b35; }
.tag-alimentare { background: rgba(50,200,100,0.12); color: #50c878; }
.tag-fotovoltaico { background: rgba(255,200,0,0.12); color: #ffc800; }
.tag-automazione  { background: rgba(74,158,255,0.12); color: #4a9eff; }
.tag-predittiva   { background: rgba(180,100,255,0.12); color: #b464ff; }
.tag-incollaggio  { background: rgba(0,200,180,0.12);  color: #00c8b4; }
.tag-aeroporti    { background: rgba(0,160,255,0.12);  color: #00a0ff; }
.realiz-system { font-family: var(--font-mono); font-size: 0.65rem; color: var(--muted); padding: 0.2rem 0.6rem; border: 1px solid var(--border); border-radius: 100px; }
.realiz-card h3 { font-size: 1.15rem; font-weight: 700; color: var(--light); margin-bottom: 0.5rem; line-height: 1.3; }
.realiz-meta { display: flex; gap: 1.25rem; font-size: 0.75rem; color: var(--muted); margin-bottom: 0.75rem; font-family: var(--font-mono); }
.realiz-card p { font-size: 1rem; color: var(--muted); line-height: 1.6; margin-bottom: 1.25rem; }
.realiz-kpi { display: flex; gap: 0; border-top: 1px solid var(--border); margin: auto -1.5rem -1.5rem; }
.realiz-kpi > div { flex: 1; padding: 0.875rem 0.5rem; text-align: center; border-right: 1px solid var(--border); display: flex; flex-direction: column; gap: 0.2rem; }
.realiz-kpi > div:last-child { border-right: none; }
.realiz-kpi strong { font-family: var(--font-display); font-size: 1.15rem; font-weight: 800; color: var(--orange); }
.realiz-kpi span { font-size: 0.78rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; font-family: var(--font-mono); }
@media (max-width: 1024px) { .realiz-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 768px)  { .realiz-grid { grid-template-columns: 1fr; } }

/* ── Realiz Carousel ── */
.realiz-carousel-wrapper { position: relative; }
.realiz-carousel-clip { overflow: hidden; }
.realiz-carousel-track { display: flex; transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1); }
.carousel-page { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; flex: 0 0 100%; min-width: 0; }

/* Frecce laterali */
.carousel-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(8,16,40,0.75); border: 1px solid rgba(255,107,53,0.35);
  color: var(--light); width: 3rem; height: 3rem; border-radius: 50%;
  font-size: 1.5rem; cursor: pointer; display: flex; align-items: center;
  justify-content: center; transition: all 0.25s ease; z-index: 4;
  backdrop-filter: blur(8px); line-height: 1;
}
.carousel-btn.prev-btn { left: -1.5rem; }
.carousel-btn.next-btn { right: -1.5rem; }
.carousel-btn:hover:not(:disabled) { background: var(--orange); border-color: var(--orange); color: #fff; transform: translateY(-50%) scale(1.08); }
.carousel-btn:disabled { opacity: 0.2; cursor: default; pointer-events: none; }

/* Barra inferiore: dots + contatore */
.carousel-controls { display: flex; justify-content: center; align-items: center; gap: 1.25rem; margin-top: 1.75rem; }
.carousel-dots { display: flex; gap: 0.45rem; align-items: center; }
.carousel-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--border); cursor: pointer; border: none; padding: 0; transition: all 0.3s ease; }
.carousel-dot.active { background: var(--orange); width: 22px; border-radius: 3px; }
.carousel-counter { font-family: var(--font-mono); font-size: 0.72rem; color: var(--muted); letter-spacing: 0.1em; min-width: 3.5rem; text-align: center; }
.carousel-counter span { color: var(--orange); }

@media (max-width: 1024px) { .carousel-page { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px)  { .carousel-page { grid-template-columns: 1fr; } .carousel-btn.prev-btn { left: -0.75rem; } .carousel-btn.next-btn { right: -0.75rem; } }

/* PARTNERS */
.partners { background: rgba(15,32,64,0.65); padding: 60px 0; border-top: 1px solid var(--border); backdrop-filter: blur(4px); }
.partners-label { text-align: center; font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--muted); margin-bottom: 2rem; }
.logos-marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent); }
.logos-track { display: flex; align-items: center; gap: 3.5rem; width: max-content; padding: 0.75rem 0; }
.logos-track--left  { animation: logos-left  40s linear infinite; }
.logos-track--right { animation: logos-right 40s linear infinite; }
@keyframes logos-left  { 0% { transform: translateX(0);    } 100% { transform: translateX(-50%); } }
@keyframes logos-right { 0% { transform: translateX(-50%); } 100% { transform: translateX(0);    } }
.logos-marquee:hover .logos-track { animation-play-state: paused; }
.partner-logo { display: flex; align-items: center; justify-content: center; opacity: 0.45; transition: opacity var(--transition); flex-shrink: 0; }
.partner-logo:hover { opacity: 1; }
.partner-logo img { width: 130px; height: auto; display: block; object-fit: contain; filter: brightness(0) invert(1); }

/* CTA */
.cta-section { background: linear-gradient(135deg, rgba(8,14,28,0.85) 0%, rgba(0,55,140,0.8) 100%); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); text-align: center; padding: 100px 0; position: relative; overflow: hidden; backdrop-filter: blur(4px); }
.cta-section::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse 60% 80% at 50% 50%, rgba(224,48,32,0.08) 0%, transparent 70%); }
.cta-section h2 { color: var(--white); margin-bottom: 1rem; position: relative; }
.cta-section p { max-width: 560px; margin: 0 auto 2.5rem; font-size: 1.1rem; position: relative; }
.cta-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; position: relative; }


/* FOOTER */
.site-footer { background: rgba(4,10,20,0.92); border-top: 1px solid var(--border); padding: 80px 0 0; backdrop-filter: blur(8px); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr 0.7fr; gap: 3rem; padding-bottom: 60px; border-bottom: 1px solid var(--border); }
.footer-linkedin { display: inline-flex; align-items: center; gap: 0.5rem; font-size: 0.85rem; color: var(--muted); transition: color var(--transition); text-decoration: none; }
.footer-linkedin:hover { color: #0a66c2; }
.footer-brand p { font-size: 0.88rem; margin-top: 1rem; max-width: 320px; }
.footer-col h4 { font-family: var(--font-display); font-size: 0.9rem; font-weight: 700; color: var(--white); letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 1.25rem; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 0.6rem; }
.footer-col ul li a { font-size: 0.85rem; color: var(--muted); transition: color var(--transition); }
.footer-col ul li a:hover { color: var(--orange); }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; padding: 1.5rem 0; font-size: 0.78rem; color: var(--muted); }
.footer-legal { display: flex; gap: 1.5rem; }
.footer-legal a { color: var(--muted); font-size: 0.78rem; }
.footer-legal a:hover { color: var(--orange); }

/* PAGE HERO */
.page-hero { padding: 180px 0 100px; background: transparent; position: relative; overflow: hidden; border-bottom: 1px solid var(--border); }
.page-hero::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse 60% 60% at 80% 50%, rgba(30,58,95,0.5) 0%, transparent 70%), radial-gradient(ellipse 30% 30% at 20% 80%, rgba(255,107,53,0.08) 0%, transparent 60%); }
.page-hero-content { position: relative; z-index: 2; }
.page-hero h1 { color: var(--white); margin-bottom: 1rem; }
.page-hero .lead { max-width: 600px; }
.breadcrumb { display: flex; gap: 0.5rem; align-items: center; font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.1em; color: var(--muted); margin-bottom: 2rem; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--orange); }
.breadcrumb-sep { color: var(--border); }

/* SPEC TABLE */
.spec-table { width: 100%; border-collapse: collapse; }
.spec-table tr { border-bottom: 1px solid var(--border); }
.spec-table td { padding: 0.875rem 0; font-size: 1rem; }
.spec-table td:first-child { color: var(--muted); width: 40%; }
.spec-table td:last-child { color: var(--white); font-family: var(--font-mono); font-size: 0.92rem; }

/* CONTACT FORM */
.contact-form { max-width: 680px; }
.form-group { margin-bottom: 1.5rem; }
.form-group label { display: block; font-size: 0.82rem; font-weight: 500; color: var(--muted); letter-spacing: 0.05em; text-transform: uppercase; margin-bottom: 0.5rem; }
.form-group input, .form-group textarea, .form-group select { width: 100%; background: rgba(30,58,95,0.2); border: 1px solid var(--border); border-radius: var(--radius); padding: 0.875rem 1rem; color: var(--white); font-family: var(--font-body); font-size: 0.9rem; transition: border-color var(--transition); }
.form-group input:focus, .form-group textarea:focus, .form-group select:focus { outline: none; border-color: var(--orange); }
.form-group textarea { min-height: 140px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }


/* Card image zoom on hover */
.card:hover img { transform: scale(1.05); }

/* AZIENDA SPLIT */
@media (max-width: 768px) {
  .azienda-split { grid-template-columns: 1fr !important; }
  .azienda-split > div:first-child { min-height: 280px !important; }
}

/* RESPONSIVE */
@media (max-width: 1024px) {
  .container { padding: 0 2.5rem; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .grid-asymm { grid-template-columns: 1fr; gap: 3rem; }
}
@media (max-width: 768px) {
  .container { padding: 0 1.25rem; }
  .section { padding: 70px 0; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .main-nav { display: none; }
  .main-nav.open { display: flex; flex-direction: column; position: fixed; top: 72px; left: 0; right: 0; bottom: 0; background: var(--navy); padding: 2rem; gap: 0.5rem; overflow-y: auto; z-index: 999; }
  .main-nav.open a { padding: 0.875rem 1rem; font-size: 1rem; }
  .lang-dropdown { border-left: none; padding-left: 0; margin-left: 0; margin-top: 0.5rem; }
  .lang-btn { width: 100%; justify-content: space-between; padding: 0.875rem 1rem; font-size: 1rem; background: rgba(255,255,255,0.04); }
  .lang-menu { position: static; box-shadow: none; background: rgba(255,255,255,0.04); animation: none !important; margin-top: 0.25rem; }
  .lang-dropdown.open .lang-menu { display: block; }
  .hamburger { display: flex; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-stats { flex-wrap: wrap; gap: 2rem; }
  .hero-mosaico { display: none; }
  .hero-identity { display: none; }
  .form-row { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 1rem; text-align: center; }
}

/* ANIMATIONS */
.fade-in { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }
.stagger-1 { transition-delay: 0.1s; }
.stagger-2 { transition-delay: 0.2s; }
.stagger-3 { transition-delay: 0.3s; }
.stagger-4 { transition-delay: 0.4s; }

/* UTILITIES */
.text-center { text-align: center; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.divider { height: 1px; background: var(--border); margin: 3rem 0; }
.tag { display: inline-block; font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase; padding: 0.25rem 0.6rem; background: rgba(255,107,53,0.1); border: 1px solid rgba(255,107,53,0.2); border-radius: 3px; color: var(--orange); margin-right: 0.4rem; margin-bottom: 0.4rem; }

/* ============================================================
   INFRASERVICE — Enhanced Animations & Modern Effects
   ============================================================ */

/* ── Page entrance transition ── */
body { animation: pageEnter 0.5s ease forwards; }
@keyframes pageEnter {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Scrolled header ── */
.site-header.scrolled {
  background: rgba(4, 10, 20, 0.97);
  box-shadow: 0 4px 30px rgba(0,0,0,0.5);
  border-bottom-color: rgba(255,107,53,0.2);
}
.site-header { transition: background 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease; }

/* ── Card glow on hover ── */
.card {
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 0 0 rgba(255,107,53,0);
}
.card:hover {
  border-color: rgba(255,107,53,0.4);
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.35), 0 0 30px rgba(255,107,53,0.08);
}

/* ── Product tag shimmer ── */
.product-tag {
  position: relative;
  overflow: hidden;
}
.product-tag::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.15) 50%, transparent 100%);
  transform: translateX(-100%);
  animation: shimmer 3s ease infinite;
}
@keyframes shimmer {
  0%   { transform: translateX(-100%); }
  40%, 100% { transform: translateX(200%); }
}

/* ── Section title underline ── */
.section-title { position: relative; display: inline-block; }
.section-title::after {
  content: '';
  position: absolute;
  bottom: -8px; left: 0;
  width: 0; height: 3px;
  background: linear-gradient(90deg, var(--orange), transparent);
  border-radius: 2px;
  transition: width 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}
.section-title.visible::after { width: 60%; }

/* ── Button ripple ── */
.btn { position: relative; overflow: hidden; }
.btn .ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,0.25);
  transform: scale(0);
  animation: ripple 0.6s linear;
  pointer-events: none;
}
@keyframes ripple {
  to { transform: scale(4); opacity: 0; }
}

/* ── Thermal visual pulse ── */
.thermal-crosshair {
  animation: crosshairPulse 2.5s ease infinite;
}
@keyframes crosshairPulse {
  0%, 100% { transform: translate(-50%,-50%) scale(1); opacity: 1; }
  50%       { transform: translate(-50%,-50%) scale(1.15); opacity: 0.7; }
}

.hero-content { position: relative; z-index: 2; }

/* ── Feature strip speed on hover ── */
.feature-strip:hover .strip-inner { animation-play-state: paused; }

/* ── Stat numbers glow ── */
.stat-number {
  text-shadow: 0 0 0 transparent;
  transition: text-shadow 0.4s ease;
}
.stat-number:hover { text-shadow: 0 0 20px rgba(255,107,53,0.4); }

/* ── Nav links animated underline ── */
.main-nav > a,
.main-nav .nav-dropdown > a {
  position: relative;
}
.main-nav > a:not(.nav-cta)::after,
.main-nav .nav-dropdown > a::after {
  content: '';
  position: absolute;
  bottom: 4px; left: 0.9rem; right: 0.9rem;
  height: 1px;
  background: var(--orange);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.25s ease;
}
.main-nav > a:not(.nav-cta):hover::after,
.main-nav > a.active::after,
.main-nav .nav-dropdown > a:hover::after,
.main-nav .nav-dropdown > a.active::after { transform: scaleX(1); }

/* ── Image card zoom smoother ── */
.card img {
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1) !important;
}
.card:hover img { transform: scale(1.06) !important; }
.card:hover img.no-zoom { transform: none !important; }

/* ── EFD badge pulse ── */
.efd-badge {
  animation: badgePulse 3s ease infinite;
}
@keyframes badgePulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255,107,53,0.3); }
  50%       { box-shadow: 0 0 0 6px rgba(255,107,53,0); }
}

/* ── Hero eyebrow dot ── */
.hero-eyebrow::before {
  animation: pulse 1.5s ease infinite !important;
}

/* ── Dropdown menu smooth ── */
.dropdown-menu {
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
  display: block !important;
  pointer-events: none;
  margin-top: 0;
  top: 100%;
  max-height: 90vh;
  overflow-y: auto;
  z-index: 9999;
}
.nav-dropdown.open .dropdown-menu,
.nav-dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: all;
}
.nav-dropdown > a { position: relative; }
.nav-dropdown > a::before {
  content: '';
  position: absolute;
  bottom: -14px; left: 0; right: 0;
  height: 14px;
}

/* ── Custom scrollbar ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--navy); }
::-webkit-scrollbar-thumb { background: var(--blue); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--orange); }

/* ── Selection color ── */
::selection { background: rgba(255,107,53,0.3); color: white; }

/* ── Btn primary hover glow ── */
.btn-primary {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}
.btn-primary:hover {
  box-shadow: 0 8px 30px rgba(255,107,53,0.45), 0 0 0 1px rgba(255,107,53,0.3) !important;
}

/* ── App cards hover ── */
.app-card {
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1) !important;
}
.app-card:hover {
  border-color: rgba(255,107,53,0.35) !important;
  transform: translateY(-6px) !important;
  box-shadow: 0 12px 40px rgba(0,0,0,0.3), 0 0 25px rgba(255,107,53,0.07) !important;
}

/* ── Fade-in stagger smoother ── */
.fade-in {
  transition: opacity 0.7s cubic-bezier(0.4,0,0.2,1), transform 0.7s cubic-bezier(0.4,0,0.2,1) !important;
}

/* ============================================================
   INFRASERVICE — Advanced Dynamic Effects v2
   ============================================================ */

/* ── Z-index layering: canvas behind everything ── */
.hero-content, .container, .section, footer { position: relative; z-index: 1; }

/* ── Particle canvas — fixed global ── */
#hero-canvas {
  position: fixed; inset: 0; z-index: 0;
  pointer-events: none; opacity: 0.45;
}

/* ── Typewriter cursor ── */
.typewriter-cursor {
  display: inline-block;
  width: 3px; height: 0.85em;
  background: var(--orange);
  margin-left: 4px;
  vertical-align: middle;
  animation: blink 1s step-end infinite;
}
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0} }

/* ── Card gradient border on hover ── */
.card.product-card {
  background-clip: padding-box;
  position: relative;
}
.card.product-card::before {
  content: '';
  position: absolute; inset: -1px;
  border-radius: calc(var(--radius-lg) + 1px);
  background: linear-gradient(135deg, rgba(255,107,53,0), rgba(255,107,53,0));
  z-index: -1;
  transition: background 0.4s ease;
}
.card.product-card:hover::before {
  background: linear-gradient(135deg, rgba(255,107,53,0.5), rgba(42,82,152,0.3), rgba(255,107,53,0.5));
  animation: borderSpin 3s linear infinite;
}
@keyframes borderSpin {
  0%   { background: linear-gradient(0deg,   rgba(255,107,53,0.5), rgba(42,82,152,0.3), rgba(255,107,53,0.1)); }
  25%  { background: linear-gradient(90deg,  rgba(255,107,53,0.5), rgba(42,82,152,0.3), rgba(255,107,53,0.1)); }
  50%  { background: linear-gradient(180deg, rgba(255,107,53,0.5), rgba(42,82,152,0.3), rgba(255,107,53,0.1)); }
  75%  { background: linear-gradient(270deg, rgba(255,107,53,0.5), rgba(42,82,152,0.3), rgba(255,107,53,0.1)); }
  100% { background: linear-gradient(360deg, rgba(255,107,53,0.5), rgba(42,82,152,0.3), rgba(255,107,53,0.1)); }
}

/* ── Scan line overlay on thermal sections ── */
.efd-section::after {
  content: '';
  position: absolute; inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent, transparent 2px,
    rgba(255,107,53,0.015) 2px, rgba(255,107,53,0.015) 4px
  );
  pointer-events: none; z-index: 0;
  animation: scanMove 8s linear infinite;
}
@keyframes scanMove {
  from { background-position: 0 0; }
  to   { background-position: 0 200px; }
}

/* ── Counter number color transition ── */
.counter {
  display: inline-block;
  transition: color 0.3s ease;
}

/* ── Glitch effect on hover for section labels ── */
.section-label {
  position: relative;
  display: inline-block;
}
.section-label:hover {
  animation: glitch 0.4s ease;
}
@keyframes glitch {
  0%  { transform: translate(0); }
  20% { transform: translate(-2px, 1px); filter: brightness(1.5); }
  40% { transform: translate(2px, -1px); }
  60% { transform: translate(-1px, 2px); filter: brightness(0.8); }
  80% { transform: translate(1px, -2px); }
  100%{ transform: translate(0); filter: brightness(1); }
}

/* ── Floating badge on product cards ── */
.card.product-card .product-tag {
  position: relative;
  animation: floatTag 3s ease-in-out infinite;
}
@keyframes floatTag {
  0%,100% { transform: translateY(0); }
  50%      { transform: translateY(-2px); }
}

/* ── Hero content reveal ── */
.hero-content > * {
  opacity: 0;
  transform: translateY(30px);
  animation: heroReveal 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}
.hero-content > *:nth-child(1) { animation-delay: 0.1s; }
.hero-content > *:nth-child(2) { animation-delay: 0.25s; }
.hero-content > *:nth-child(3) { animation-delay: 0.4s; }
.hero-content > *:nth-child(4) { animation-delay: 0.55s; }
.hero-content > *:nth-child(5) { animation-delay: 0.7s; }
@keyframes heroReveal {
  to { opacity: 1; transform: translateY(0); }
}

/* ── Thermal visual animated gradient ── */
.thermal-visual {
  animation: thermalPulse 4s ease-in-out infinite;
}
@keyframes thermalPulse {
  0%,100% { filter: brightness(1) saturate(1); }
  50%      { filter: brightness(1.1) saturate(1.15); }
}

/* ── CTA section animated background ── */
.cta-section::after {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 40% 40% at var(--mx,50%) var(--my,50%),
    rgba(255,107,53,0.12) 0%, transparent 70%);
  pointer-events: none; z-index: 0;
  transition: --mx 0.3s ease, --my 0.3s ease;
}

/* ── Spec-check icon bounce ── */
.spec-check {
  display: inline-block;
  transition: transform 0.2s ease;
}
.efd-spec-list li:hover .spec-check {
  transform: translateX(4px) scale(1.2);
  color: #fff;
}

/* ── Footer logo glow ── */
.logo:hover 

/* ── Datasheet button pulse ── */
.btn-datasheet {
  position: relative;
  overflow: hidden;
}
.btn-datasheet::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,107,53,0.08), transparent);
  transform: translateX(-100%);
  transition: transform 0.5s ease;
}
.btn-datasheet:hover::before { transform: translateX(100%); }

/* ── Pillola di Termografia ── */
@keyframes pillola-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255,200,0,0.5); }
  50%       { box-shadow: 0 0 0 10px rgba(255,200,0,0); }
}
#pillola-btn {
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  border: 1px solid rgba(255,200,0,0.4);
  background: rgba(255,200,0,0.06);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-right: 0.75rem;
  animation: pillola-pulse 2.5s ease-in-out infinite;
  transition: all var(--transition);
}
#pillola-btn:hover { border-color: #ffc800; background: rgba(255,200,0,0.15); transform: scale(1.1); }
#pillola-btn svg { width: 1.2rem; height: 1.2rem; }

#pillola-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9100;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(4px);
}
#pillola-modal.open { display: block; }
#pillola-box {
  background: rgba(6,18,48,0.92);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,200,0,0.35);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  max-width: 580px;
  width: calc(100% - 2rem);
  position: fixed;
  top: 50vh;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: fadeInUp 0.3s ease;
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translate(-50%, calc(-50% + 16px)); }
  to   { opacity: 1; transform: translate(-50%, -50%); }
}
#pillola-box .pillola-label {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #ffc800;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
#pillola-box h3 {
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--light);
  margin-bottom: 0.75rem;
  line-height: 1.35;
}
#pillola-box p {
  font-size: 1.18rem;
  color: var(--muted);
  line-height: 1.7;
  margin: 0;
}
#pillola-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  color: var(--muted);
  cursor: pointer;
  font-size: 1.2rem;
  line-height: 1;
  padding: 0.25rem;
  transition: color var(--transition);
}
#pillola-close:hover { color: var(--light); }
@media (max-width: 480px) {
  #pillola-btn { bottom: 1.25rem; left: 1.25rem; }
  #pillola-modal { padding: 1rem; }
  #pillola-box { max-width: 100%; }
}

/* ============================================================
   INFRASERVICE — Cart System (globale)
   ============================================================ */
.header-right-wrap { display: flex; align-items: center; }

.cart-icon-btn {
  position: relative; display: flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; background: rgba(255,255,255,0.05);
  border: 1px solid var(--border); border-radius: var(--radius);
  color: var(--light); cursor: pointer; transition: all var(--transition);
  margin-left: 0.75rem; padding: 0; flex-shrink: 0;
}
.cart-icon-btn:hover { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.22); color: var(--white); }

.cart-badge {
  position: absolute; top: -7px; right: -7px;
  background: var(--orange); color: #fff;
  font-family: var(--font-mono); font-size: 0.62rem; font-weight: 700;
  min-width: 18px; height: 18px; border-radius: 100px;
  display: flex; align-items: center; justify-content: center;
  padding: 0 3px; pointer-events: none;
}
.cart-badge.hidden { display: none; }

.cart-panel {
  position: fixed; top: 80px; right: 1.5rem; width: 320px;
  background: rgba(6,14,28,0.98); border: 1px solid var(--border);
  border-radius: var(--radius-lg); box-shadow: 0 20px 60px rgba(0,0,0,0.65);
  backdrop-filter: blur(18px); z-index: 1100;
  display: none; flex-direction: column;
  max-height: calc(100vh - 100px); overflow: hidden;
}
.cart-panel.open { display: flex; animation: cartFadeIn 0.18s ease; }
@keyframes cartFadeIn { from { opacity:0; transform:translateY(-8px); } to { opacity:1; transform:translateY(0); } }
.cart-panel-header { display: flex; align-items: center; justify-content: space-between; padding: 1rem 1.2rem; border-bottom: 1px solid var(--border); }
.cart-panel-header span { font-family: var(--font-display); font-size: 0.95rem; font-weight: 700; color: var(--white); letter-spacing: 0.06em; text-transform: uppercase; }
.cart-panel-close { background: none; border: none; color: var(--muted); cursor: pointer; width: 28px; height: 28px; display: flex; align-items: center; justify-content: center; border-radius: 4px; font-size: 1rem; transition: color var(--transition); }
.cart-panel-close:hover { color: var(--white); }
.cart-panel-items { flex: 1; overflow-y: auto; padding: 0.4rem 0; }
.cart-empty { padding: 1.5rem 1.2rem; color: var(--muted); font-size: 0.85rem; text-align: center; margin: 0; }
.cart-item { display: flex; align-items: center; padding: 0.6rem 1.2rem; border-bottom: 1px solid rgba(0,85,184,0.1); }
.cart-item:last-child { border-bottom: none; }
.cart-item-name { flex: 1; font-size: 0.87rem; color: var(--light); font-weight: 500; }
.cart-item-remove { background: none; border: none; color: var(--muted); cursor: pointer; width: 24px; height: 24px; display: flex; align-items: center; justify-content: center; border-radius: 4px; font-size: 0.9rem; transition: color var(--transition); margin-left: 0.5rem; flex-shrink: 0; }
.cart-item-remove:hover { color: var(--orange); }
.cart-panel-footer { padding: 1rem 1.2rem; border-top: 1px solid var(--border); }
.cart-panel-footer .btn { width: 100%; justify-content: center; }

.btn-cart {
  display: flex; align-items: center; justify-content: center; gap: 0.4rem;
  width: 100%; margin-top: 1rem;
  background: rgba(224,48,32,0.1); border: 1px solid rgba(224,48,32,0.3);
  color: var(--orange); padding: 0.65rem 1.25rem;
  border-radius: var(--radius); font-family: var(--font-body);
  font-weight: 600; font-size: 0.88rem; cursor: pointer; letter-spacing: 0.02em;
  transition: all var(--transition);
}
.btn-cart:hover { background: var(--orange); color: #fff; border-color: var(--orange); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(224,48,32,0.25); }
.btn-cart.added { background: rgba(0,85,184,0.12); border-color: rgba(0,85,184,0.35); color: var(--muted); transform: none; box-shadow: none; cursor: default; }
.btn-cart svg { width: 15px; height: 15px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }

.cart-modal-overlay {
  position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
  background: rgba(0,0,0,0.75); backdrop-filter: blur(6px);
  z-index: 9999; display: none;
  align-items: center; justify-content: center;
  padding: 1rem; box-sizing: border-box;
}
@keyframes modalBgIn  { from { opacity:0; } to { opacity:1; } }
@keyframes modalSlideIn { from { opacity:0; transform:translateY(16px); } to { opacity:1; transform:translateY(0); } }
.cart-modal {
  background: var(--navy-mid); border: 1px solid var(--border);
  border-radius: var(--radius-lg); box-shadow: 0 24px 80px rgba(0,0,0,0.75);
  width: 100%; max-width: 500px; max-height: 90vh; overflow-y: auto;
  padding: 2rem; position: relative; margin: auto;
  animation: modalSlideIn 0.22s ease;
}
.cart-modal-close {
  position: absolute; top: 1.2rem; right: 1.2rem;
  background: rgba(255,255,255,0.06); border: 1px solid var(--border);
  color: var(--muted); cursor: pointer; width: 30px; height: 30px;
  border-radius: var(--radius); font-size: 0.85rem;
  display: flex; align-items: center; justify-content: center; transition: all var(--transition);
}
.cart-modal-close:hover { color: var(--white); background: rgba(255,255,255,0.1); }
.cart-modal h3 { font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; color: var(--white); margin-bottom: 0.2rem; }
.cart-modal-subtitle { font-size: 0.82rem; color: var(--muted); margin-bottom: 1.25rem; max-width: none; }
.cart-modal-products { background: rgba(0,0,0,0.2); border: 1px solid var(--border); border-radius: var(--radius); padding: 0.6rem 0.9rem; margin-bottom: 1.5rem; }
.cart-modal-products ul { list-style: none; padding: 0; margin: 0; }
.cart-modal-products li { display: flex; align-items: center; gap: 0.5rem; font-size: 0.86rem; color: var(--light); padding: 0.28rem 0; border-bottom: 1px solid rgba(0,85,184,0.1); }
.cart-modal-products li:last-child { border-bottom: none; }
.cart-modal-products li::before { content: '\203A'; color: var(--orange); font-weight: 700; flex-shrink: 0; }

.cart-form { display: flex; flex-direction: column; gap: 0.9rem; }
.cart-form .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.9rem; }
.cart-form .form-group { display: flex; flex-direction: column; gap: 0.35rem; }
.cart-form label { font-family: var(--font-mono); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.07em; text-transform: uppercase; color: var(--muted); }
.cart-form input, .cart-form textarea { background: rgba(255,255,255,0.04); border: 1px solid var(--border); border-radius: var(--radius); color: var(--white); font-family: var(--font-body); font-size: 0.9rem; padding: 0.6rem 0.85rem; width: 100%; outline: none; resize: none; transition: border-color var(--transition); }
.cart-form input:focus, .cart-form textarea:focus { border-color: var(--orange); }
.cart-form input::placeholder, .cart-form textarea::placeholder { color: rgba(122,154,196,0.42); }
.cart-form input.field-error { border-color: #e03020; background: rgba(224,48,32,0.08); }
.cart-form input.field-error:focus { border-color: #e03020; }
.field-error-msg { font-size: 0.72rem; color: #e05040; margin-top: 0.2rem; display: none; }
.field-error-msg.show { display: block; }
.cart-form .btn-submit { background: var(--orange); color: #fff; border: none; cursor: pointer; justify-content: center; margin-top: 0.25rem; }
.cart-form .btn-submit:hover { background: var(--orange-dark); }
.cart-form-privacy { display: flex; flex-direction: column; gap: 0.2rem; margin-top: 0.25rem; }
.cart-privacy-label { display: flex; align-items: flex-start; gap: 0.6rem; cursor: pointer; }
.cart-privacy-label input[type="checkbox"] { width: auto; margin-top: 3px; flex-shrink: 0; accent-color: var(--orange); cursor: pointer; }
.cart-privacy-label span { font-size: 0.8rem; color: var(--muted); line-height: 1.5; }
.cart-privacy-label span a { color: var(--orange); }
.cart-privacy-label.field-error span { color: #e05040; }

@media (max-width: 768px) {
  .cart-panel { right: 1rem; left: 1rem; width: auto; }
  .cart-form .form-row { grid-template-columns: 1fr; }
}

