/*!
Theme Name: Commercial Fasteners
Theme URI: https://www.commercialfasteners.it/
Author: Commercial Fasteners
Description: Tema premium single-page per Commercial Fasteners.
Version: 3.1.0
Tested up to: 6.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: commercial_fasteners
*/

/* ============================================================
   VARIABLES — INDUSTRIAL CELESTE PALETTE
   ============================================================ */
:root {
  /* Backgrounds — dark navy steel */
  --bg:       #04101f;
  --bg-alt:   #071628;
  --bg-card:  #0b1e34;
  --bg-deep:  #020c17;

  /* Accent — celeste / industrial cyan */
  --acc:      #22d3ee;        /* primary — cyan-400 */
  --acc-2:    #0ea5e9;        /* sky-500 — deeper blue */
  --acc-3:    #38bdf8;        /* light variant */
  --acc-dim:  rgba(34, 211, 238, 0.10);
  --acc-rgb:  34, 211, 238;

  /* Text */
  --white:    #eef6ff;
  --text:     #7fa8c8;
  --muted:    rgba(127, 168, 200, 0.45);
  --white-dim: rgba(238, 246, 255, 0.60);

  /* Borders */
  --border:       rgba(34, 211, 238, 0.14);
  --border-hover: rgba(34, 211, 238, 0.40);

  /* Fonts — full industrial sans */
  --f-cond: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  --f-body: 'Barlow', 'Arial', sans-serif;

  /* Misc */
  --ease:   cubic-bezier(0.4, 0, 0.2, 1);
  --t:      0.45s var(--ease);
  --t-fast: 0.22s var(--ease);
  --nav-h:  76px;
  --pad-x:  clamp(22px, 5.5vw, 80px);
  --max:    1360px;
}

/* ============================================================
   RESET
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--f-body);
  font-weight: 400;
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
body.menu-open { overflow: hidden; }
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--acc-2); border-radius: 2px; }

.skip-link { position: absolute; left: -9999px; }
.skip-link:focus {
  position: fixed; top: 10px; left: 10px;
  padding: 8px 16px; background: var(--acc); color: var(--bg);
  font-weight: 700; z-index: 9999; border-radius: 2px;
}

/* ============================================================
   TYPOGRAPHY
   ============================================================ */

/* Industrial display — Barlow Condensed */
.display {
  font-family: var(--f-cond);
  font-weight: 300;
  line-height: 1.0;
  letter-spacing: 0.01em;
  color: var(--white);
}

/* Eyebrow / label */
.eyebrow {
  display: inline-block;
  font-family: var(--f-cond);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.30em;
  text-transform: uppercase;
  color: var(--acc);
}
.eyebrow--line {
  padding-left: 2.8rem;
  position: relative;
}
.eyebrow--line::before {
  content: '';
  position: absolute;
  left: 0; top: 50%;
  transform: translateY(-50%);
  width: 2rem; height: 1px;
  background: var(--acc);
}

/* ============================================================
   LAYOUT
   ============================================================ */
.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad-x);
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--f-cond);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding: 15px 38px;
  transition: var(--t);
  white-space: nowrap;
  border-radius: 1px;
  cursor: pointer;
}

.btn-gold {               /* riutilizziamo il nome, ora è celeste */
  background: var(--acc);
  color: var(--bg);
  border: 1px solid var(--acc);
}
.btn-gold:hover {
  background: transparent;
  color: var(--acc);
  box-shadow: 0 0 20px rgba(var(--acc-rgb), 0.25);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.25);
}
.btn-outline:hover {
  border-color: var(--acc);
  color: var(--acc);
}

/* B2B button in header */
.btn-b2b {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--f-cond);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 9px 20px;
  background: var(--acc);
  color: var(--bg);
  border: 1px solid var(--acc);
  border-radius: 1px;
  transition: var(--t-fast);
  white-space: nowrap;
}
.btn-b2b:hover {
  background: transparent;
  color: var(--acc);
  box-shadow: 0 0 16px rgba(var(--acc-rgb), 0.3);
}

/* Text arrow link */
.text-link {
  font-family: var(--f-cond);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--acc);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: gap var(--t-fast);
}
.text-link:hover { gap: 18px; }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 900;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  transition: background var(--t), height var(--t), top var(--t);
}

/* Admin bar compensation */
.admin-bar .site-header { top: 32px; }
@media screen and (max-width: 782px) {
  .admin-bar .site-header { top: 46px; }
}
.site-header.scrolled {
  background: rgba(4, 16, 31, 0.95);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  height: 62px;
  border-bottom: 1px solid rgba(34, 211, 238, 0.08);
}

.header-inner {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad-x);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex-shrink: 0;
}
.logo img { height: 40px; width: auto; }
.logo-text { display: flex; flex-direction: column; gap: 2px; }
.logo-text b {
  font-family: var(--f-cond);
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--white);
  line-height: 1;
}
.logo-text small {
  font-family: var(--f-cond);
  font-size: 0.58rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--acc);
  font-weight: 500;
  line-height: 1;
}

/* Desktop nav */
.nav-desktop { flex: 1; display: flex; justify-content: center; }
.nav-desktop ul { display: flex; gap: 36px; align-items: center; }
.nav-desktop a {
  font-family: var(--f-cond);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  position: relative;
  padding-bottom: 3px;
  transition: color var(--t-fast);
}
.nav-desktop a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 100%;
  height: 1px;
  background: var(--acc);
  transition: right var(--t);
}
.nav-desktop a:hover,
.nav-desktop a.active { color: var(--white); }
.nav-desktop a:hover::after,
.nav-desktop a.active::after { right: 0; }

.header-right {
  display: flex; align-items: center; gap: 18px; flex-shrink: 0;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 26px; height: 18px;
  cursor: pointer; z-index: 1010;
}
.hamburger span {
  display: block; height: 1px;
  background: var(--white);
  transition: var(--t);
  transform-origin: center;
}
.hamburger.active span:nth-child(1) { transform: translateY(8.5px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.active span:nth-child(3) { transform: translateY(-8.5px) rotate(-45deg); }

/* ============================================================
   MOBILE MENU
   ============================================================ */
.mobile-menu {
  position: fixed; inset: 0;
  background: var(--bg-deep);
  z-index: 950;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity var(--t);
}
.mobile-menu.open { opacity: 1; pointer-events: all; }
.mobile-menu::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 70% 50% at 50% 40%, rgba(var(--acc-rgb),0.07), transparent 70%);
  pointer-events: none;
}
.mobile-menu ul { text-align: center; }
.mobile-menu ul li a {
  display: block;
  font-family: var(--f-cond);
  font-size: clamp(2.4rem, 8vw, 4.5rem);
  font-weight: 300;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--white);
  padding: 8px 30px;
  opacity: 0; transform: translateY(20px);
  transition: opacity 0.4s ease, transform 0.4s ease, color 0.2s;
}
.mobile-menu.open ul li a { opacity: 1; transform: none; }
.mobile-menu.open ul li:nth-child(1) a { transition-delay: 0.05s; }
.mobile-menu.open ul li:nth-child(2) a { transition-delay: 0.10s; }
.mobile-menu.open ul li:nth-child(3) a { transition-delay: 0.15s; }
.mobile-menu.open ul li:nth-child(4) a { transition-delay: 0.20s; }
.mobile-menu.open ul li:nth-child(5) a { transition-delay: 0.25s; }
.mobile-menu ul li a:hover { color: var(--acc); }
.mobile-menu-b2b {
  margin-top: 40px;
  opacity: 0; transform: translateY(16px);
  transition: opacity 0.4s ease 0.32s, transform 0.4s ease 0.32s;
}
.mobile-menu.open .mobile-menu-b2b { opacity: 1; transform: none; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  width: 100%; height: 100vh; min-height: 600px;
  overflow: hidden;
  display: flex; align-items: flex-end; justify-content: flex-start;
}

.hero .swiper,
.hero-video-wrap {
  position: absolute; inset: 0; z-index: 0;
}
.hero .swiper-wrapper { height: 100%; }
.hero .swiper-slide {
  position: relative; overflow: hidden; height: 100%;
}
.hero .swiper-slide img,
.hero-video-wrap video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  pointer-events: none;
}
.hero .swiper-slide-active img { animation: kb 9s ease-out forwards; }
@keyframes kb { from { transform: scale(1.07); } to { transform: scale(1); } }

/* Overlay — dark navy gradient, more opaque at bottom-left for text */
.hero-overlay {
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(to top,   rgba(4,16,31,0.92) 0%, rgba(4,16,31,0.35) 50%, rgba(4,16,31,0.14) 100%),
    linear-gradient(to right, rgba(4,16,31,0.78) 0%, transparent 65%);
}

/* Cyan scan-line effect — subtle industrial feel */
.hero::after {
  content: '';
  position: absolute; inset: 0; z-index: 2;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 3px,
    rgba(34, 211, 238, 0.012) 3px,
    rgba(34, 211, 238, 0.012) 4px
  );
  pointer-events: none;
}

.hero-content {
  position: relative; z-index: 5;
  padding: 0 var(--pad-x) clamp(60px, 11vh, 120px);
  max-width: 950px; width: 100%;
}

.hero-eyebrow { display: block; margin-bottom: 18px; animation: fadeUp 0.8s var(--ease) 0.3s both; }

.hero-title {
  font-family: var(--f-cond);
  font-weight: 200;
  font-size: clamp(4rem, 9.5vw, 10rem);
  line-height: 0.95;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 22px;
  animation: fadeUp 0.9s var(--ease) 0.45s both;
}
/* Highlighted word in title */
.hero-title .hl {
  color: var(--acc);
  font-weight: 700;
  display: block;
}

.hero-sub {
  font-family: var(--f-cond);
  font-size: clamp(0.8rem, 1.5vw, 1rem);
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--white-dim);
  margin-bottom: 36px;
  animation: fadeUp 0.9s var(--ease) 0.6s both;
}

/* Separator made of two dashes + accent bar */
.hero-sep {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 32px;
  animation: fadeUp 0.9s var(--ease) 0.65s both;
}
.hero-sep span { display: block; height: 1px; }
.hero-sep .l1 { width: 40px; background: var(--acc); }
.hero-sep .l2 { width: 18px; background: rgba(var(--acc-rgb),0.35); }

.hero-actions {
  display: flex; gap: 14px; flex-wrap: wrap;
  animation: fadeUp 0.9s var(--ease) 0.75s both;
}

/* Pagination — bottom right */
.hero .swiper-pagination {
  bottom: 36px; right: var(--pad-x);
  left: auto; width: auto; z-index: 10;
  display: flex; gap: 6px; align-items: center;
}
.hero .swiper-pagination-bullet {
  width: 5px; height: 5px;
  background: rgba(255,255,255,0.3);
  border-radius: 0; opacity: 1;
  transition: var(--t); margin: 0 !important;
}
.hero .swiper-pagination-bullet-active {
  width: 28px; background: var(--acc);
  box-shadow: 0 0 8px rgba(var(--acc-rgb),0.6);
}

/* Scroll indicator — right side vertical */
.hero-scroll {
  position: absolute; right: var(--pad-x); top: 50%;
  transform: translateY(-50%); z-index: 10;
  display: flex; flex-direction: column;
  align-items: center; gap: 10px;
  animation: fadeIn 1s var(--ease) 1.2s both;
}
.hero-scroll span {
  font-family: var(--f-cond);
  font-size: 0.55rem; letter-spacing: 0.28em;
  text-transform: uppercase; color: var(--muted);
  writing-mode: vertical-rl;
}
.hero-scroll-line {
  width: 1px; height: 70px;
  background: rgba(255,255,255,0.12); overflow: hidden; position: relative;
}
.hero-scroll-line::after {
  content: '';
  position: absolute; top: -100%; left: 0;
  width: 100%; height: 100%;
  background: linear-gradient(to bottom, var(--acc), var(--acc-2));
  animation: scrollDrop 2.2s ease-in-out infinite;
}
@keyframes scrollDrop {
  0%   { top: -100%; opacity: 1; }
  100% { top: 200%;  opacity: 0; }
}

/* ============================================================
   INTRO STATEMENT
   ============================================================ */
.intro-section {
  padding: clamp(90px, 14vw, 160px) 0;
  position: relative; overflow: hidden;
}
.intro-section::before {
  content: '';
  position: absolute;
  top: 0; left: var(--pad-x);
  width: 1px; height: 70px;
  background: linear-gradient(to bottom, var(--acc), transparent);
}

.intro-inner {
  max-width: var(--max); margin: 0 auto;
  padding: 0 var(--pad-x);
  display: grid; grid-template-columns: auto 1fr auto;
  gap: 60px; align-items: center;
}
.intro-num {
  font-family: var(--f-cond);
  font-size: 6rem; font-weight: 700; line-height: 1;
  color: rgba(34, 211, 238, 0.05);
  letter-spacing: 0.05em;
  user-select: none;
}
.intro-text {
  font-family: var(--f-cond);
  font-size: clamp(1.6rem, 3vw, 2.8rem);
  font-weight: 300;
  line-height: 1.3;
  letter-spacing: 0.01em;
  color: var(--white);
  text-transform: uppercase;
}
.intro-text .hl { color: var(--acc); font-weight: 600; }
.intro-link { align-self: flex-end; }

/* ============================================================
   SECTORS — 2×2 IMAGE GRID
   ============================================================ */
.sectors-section { position: relative; }

.sectors-header {
  padding: clamp(70px, 9vw, 110px) var(--pad-x) clamp(50px, 7vw, 80px);
  max-width: var(--max); margin: 0 auto;
  display: flex; align-items: flex-end;
  justify-content: space-between; gap: 40px;
}
.sectors-header h2 {
  font-family: var(--f-cond);
  font-size: clamp(2.8rem, 6vw, 6rem);
  font-weight: 300; text-transform: uppercase;
  letter-spacing: 0.04em; color: var(--white); line-height: 1.0;
}
.sectors-header p { max-width: 360px; font-size: 0.9rem; color: var(--muted); line-height: 1.8; }

.sectors-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 520px 520px;
}

.sector-item { position: relative; overflow: hidden; cursor: default; display: block; color: inherit; }
a.sector-item { cursor: pointer; }
.sector-item img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.9s var(--ease);
  filter: brightness(0.45) saturate(0.55) hue-rotate(190deg);
}
.sector-item:hover img {
  transform: scale(1.06);
  filter: brightness(0.35) saturate(0.45) hue-rotate(190deg);
}

.sector-content {
  position: absolute; inset: 0;
  padding: 44px; display: flex;
  flex-direction: column; justify-content: flex-end;
}
.sector-content::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(4,16,31,0.82) 0%, transparent 55%);
  pointer-events: none;
}
/* Cyan left border on hover */
.sector-content::after {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--acc), var(--acc-2));
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform var(--t);
}
.sector-item:hover .sector-content::after { transform: scaleY(1); }
.sector-content > * { position: relative; z-index: 1; }

.sector-num {
  font-family: var(--f-cond);
  font-size: 5rem; font-weight: 700; letter-spacing: 0.05em;
  color: rgba(34, 211, 238, 0.08);
  line-height: 1; position: absolute; top: 28px; right: 32px; z-index: 1;
}
.sector-tag {
  font-family: var(--f-cond);
  font-size: 0.62rem; font-weight: 600;
  letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--acc); margin-bottom: 8px;
}
.sector-title {
  font-family: var(--f-cond);
  font-size: clamp(2rem, 3.5vw, 3.5rem);
  font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--white); line-height: 1.0; margin-bottom: 10px;
}
.sector-desc {
  font-size: 0.86rem; color: rgba(238,246,255,0.62);
  line-height: 1.7; max-width: 380px;
  max-height: 0; overflow: hidden; opacity: 0;
  transition: max-height 0.5s var(--ease), opacity 0.5s var(--ease);
}
.sector-item:hover .sector-desc { max-height: 100px; opacity: 1; }
.sector-norms { display: flex; gap: 7px; flex-wrap: wrap; margin-top: 14px; }
.sector-norm {
  font-family: var(--f-cond);
  font-size: 0.6rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  color: rgba(var(--acc-rgb), 0.8);
  border: 1px solid rgba(var(--acc-rgb), 0.28);
  padding: 3px 10px; border-radius: 1px;
}

/* ============================================================
   CHI SIAMO — 50/50 SPLIT
   ============================================================ */
.about-section {
  display: grid; grid-template-columns: 1fr 1fr;
  min-height: 85vh;
}
.about-image { position: relative; overflow: hidden; }
.about-image img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.9s var(--ease);
  filter: brightness(0.75) saturate(0.65) hue-rotate(195deg);
}
.about-section:hover .about-image img { transform: scale(1.03); }

.about-content {
  background: var(--bg-alt);
  display: flex; flex-direction: column; justify-content: center;
  padding: clamp(50px, 8vw, 100px) clamp(40px, 6vw, 90px);
  position: relative; overflow: hidden;
}
/* Ghost text bg */
.about-content::before {
  content: '30';
  position: absolute; right: -0.1em; bottom: -0.15em;
  font-family: var(--f-cond);
  font-size: 18rem; font-weight: 800; line-height: 1;
  letter-spacing: -0.05em;
  color: rgba(34, 211, 238, 0.03);
  user-select: none; pointer-events: none;
}
/* Top accent line */
.about-content::after {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--acc), transparent);
}
.about-content > * { position: relative; z-index: 1; }

.about-eyebrow { margin-bottom: 20px; }
.about-title {
  font-family: var(--f-cond);
  font-size: clamp(2.2rem, 4vw, 4.5rem);
  font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--white); line-height: 1.0; margin-bottom: 22px;
}
.about-title .hl { color: var(--acc); font-weight: 300; display: block; }
.about-divider {
  width: 40px; height: 2px;
  background: linear-gradient(90deg, var(--acc), var(--acc-2));
  margin-bottom: 26px;
}
.about-body {
  font-size: 0.93rem; color: var(--muted);
  line-height: 1.85; max-width: 480px; margin-bottom: 18px;
}
.about-features { display: flex; flex-direction: column; gap: 14px; margin-bottom: 34px; }
.about-feature {
  display: flex; align-items: flex-start; gap: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(34, 211, 238, 0.07);
}
.about-feature:last-child { border-bottom: none; }
.about-feature-icon {
  color: var(--acc); font-size: 0.85rem;
  margin-top: 3px; flex-shrink: 0;
}
.about-feature-body strong {
  display: block;
  font-family: var(--f-cond);
  font-size: 0.85rem; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--white); margin-bottom: 3px;
}
.about-feature-body span { font-size: 0.84rem; color: var(--muted); line-height: 1.6; }

/* ============================================================
   PRODOTTI — PORTFOLIO GRID
   ============================================================ */
.products-section { padding: clamp(80px, 10vw, 130px) 0 0; }

.products-header {
  max-width: var(--max); margin: 0 auto;
  padding: 0 var(--pad-x) clamp(50px, 7vw, 80px);
  display: flex; align-items: flex-end;
  justify-content: space-between; gap: 40px;
}
.products-header h2 {
  font-family: var(--f-cond);
  font-size: clamp(2.8rem, 5.5vw, 6rem);
  font-weight: 300; text-transform: uppercase;
  letter-spacing: 0.04em; color: var(--white); line-height: 1.0;
}
.products-header p { max-width: 360px; font-size: 0.9rem; color: var(--muted); line-height: 1.8; }

.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 420px;
}
.product-item { position: relative; overflow: hidden; cursor: default; display: block; color: inherit; }
a.product-item { cursor: pointer; }
.product-item:first-child { grid-column: span 1; }

.product-item img {
  width: 100%; height: 100%; object-fit: cover;
  filter: brightness(0.42) saturate(0.5) hue-rotate(195deg);
  transition: transform 0.9s var(--ease), filter 0.9s var(--ease);
}
.product-item:hover img {
  transform: scale(1.06);
  filter: brightness(0.30) saturate(0.4) hue-rotate(195deg);
}

/* Cyan top border on hover */
.product-item::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: 2px; z-index: 5;
  background: linear-gradient(90deg, var(--acc), var(--acc-2));
  transform: scaleX(0); transform-origin: left;
  transition: transform var(--t);
}
.product-item:hover::before { transform: scaleX(1); }

.product-overlay {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 38px;
  background: linear-gradient(to top, rgba(4,16,31,0.85) 0%, transparent 52%);
  transition: background var(--t);
}
.product-item:hover .product-overlay {
  background: linear-gradient(to top, rgba(4,16,31,0.95) 0%, rgba(4,16,31,0.18) 100%);
}

.product-tag {
  font-family: var(--f-cond); font-size: 0.65rem; font-weight: 700;
  letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--acc); margin-bottom: 6px;
}
.product-title {
  font-family: var(--f-cond);
  font-size: clamp(1.6rem, 2.8vw, 2.8rem);
  font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--white); line-height: 1.0; margin-bottom: 0;
  transition: margin var(--t);
}
.product-item:hover .product-title { margin-bottom: 12px; }

.product-desc {
  font-size: 0.84rem; color: rgba(238,246,255,0.6); line-height: 1.7;
  max-height: 0; overflow: hidden; opacity: 0;
  transition: max-height 0.5s var(--ease), opacity 0.5s var(--ease);
}
.product-item:hover .product-desc { max-height: 80px; opacity: 1; }

.product-materials {
  display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px;
  max-height: 0; overflow: hidden; opacity: 0;
  transition: max-height 0.5s var(--ease) 0.08s, opacity 0.5s var(--ease) 0.08s;
}
.product-item:hover .product-materials { max-height: 50px; opacity: 1; }
.product-mat {
  font-family: var(--f-cond);
  font-size: 0.6rem; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--acc);
  border: 1px solid rgba(var(--acc-rgb), 0.32);
  padding: 3px 10px; border-radius: 1px;
}

/* ============================================================
   STATS
   ============================================================ */
.stats-section {
  padding: clamp(70px, 10vw, 120px) 0;
  position: relative; overflow: hidden;
  background: var(--bg-alt);
}
.stats-section::before,
.stats-section::after {
  content: '';
  position: absolute; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(var(--acc-rgb),0.3), transparent);
}
.stats-section::before { top: 0; }
.stats-section::after  { bottom: 0; }
.stats-section .glow {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 800px; height: 500px; border-radius: 50%;
  background: radial-gradient(ellipse, rgba(var(--acc-rgb), 0.07) 0%, transparent 65%);
  pointer-events: none;
}
.stats-inner {
  max-width: var(--max); margin: 0 auto; padding: 0 var(--pad-x);
  display: grid; grid-template-columns: repeat(4, 1fr);
  position: relative; z-index: 1;
}
.stat { text-align: center; padding: 20px; position: relative; }
.stat::after {
  content: '';
  position: absolute; right: 0; top: 50%;
  height: 50%; width: 1px;
  background: rgba(var(--acc-rgb), 0.1);
  transform: translateY(-50%);
}
.stat:last-child::after { display: none; }
.stat-num {
  display: block;
  font-family: var(--f-cond);
  font-size: clamp(3.5rem, 7vw, 7rem);
  font-weight: 200; letter-spacing: 0.02em;
  color: var(--white); line-height: 1; margin-bottom: 10px;
}
.stat-num .g {
  color: var(--acc);
  text-shadow: 0 0 20px rgba(var(--acc-rgb), 0.5);
}
.stat-label {
  font-family: var(--f-cond);
  font-size: 0.65rem; font-weight: 600;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--muted);
}

/* ============================================================
   CERTIFICAZIONI
   ============================================================ */
.certs-section {
  padding: clamp(80px, 10vw, 130px) 0;
  background: var(--bg); position: relative;
}
.certs-section::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(var(--acc-rgb),0.2), transparent);
}

.certs-inner {
  max-width: var(--max); margin: 0 auto; padding: 0 var(--pad-x);
  display: grid; grid-template-columns: 1fr 2fr;
  gap: 80px; align-items: start;
}

.certs-left h2 {
  font-family: var(--f-cond);
  font-size: clamp(2.4rem, 4.5vw, 4.5rem);
  font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--white); line-height: 1.0; margin: 16px 0 22px;
}
.certs-left p { font-size: 0.9rem; color: var(--muted); line-height: 1.8; margin-bottom: 30px; }

.certs-right {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 1px; background: rgba(var(--acc-rgb), 0.06);
}
.cert-item {
  background: var(--bg);
  padding: 34px 30px; position: relative; transition: background var(--t-fast);
}
.cert-item:hover { background: rgba(var(--acc-rgb), 0.04); }
.cert-item::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 100%;
  height: 2px; background: linear-gradient(90deg, var(--acc), var(--acc-2));
  transition: right var(--t);
}
.cert-item:hover::before { right: 0; }
.cert-icon { font-size: 1.2rem; color: var(--acc); margin-bottom: 14px; opacity: 0.85; }
.cert-name {
  font-family: var(--f-cond);
  font-size: 1rem; font-weight: 700; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--white); margin-bottom: 8px;
}
.cert-desc { font-size: 0.82rem; color: var(--muted); line-height: 1.65; }

/* Norms strip */
.norms-strip {
  max-width: var(--max); margin: 60px auto 0;
  padding: 0 var(--pad-x);
}
.norms-strip-inner {
  border: 1px solid rgba(var(--acc-rgb), 0.1);
  padding: 22px 30px;
  display: flex; align-items: center; gap: 22px; flex-wrap: wrap;
}
.norms-label {
  font-family: var(--f-cond);
  font-size: 0.64rem; font-weight: 700; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--muted);
  padding-right: 22px;
  border-right: 1px solid rgba(var(--acc-rgb), 0.12);
  flex-shrink: 0;
}
.norms-tags { display: flex; flex-wrap: wrap; gap: 7px; }
.norm-tag {
  font-family: var(--f-cond);
  font-size: 0.62rem; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: rgba(var(--acc-rgb), 0.75);
  border: 1px solid rgba(var(--acc-rgb), 0.2);
  padding: 4px 12px; border-radius: 1px;
  transition: var(--t-fast);
}
.norm-tag:hover {
  color: var(--acc); border-color: rgba(var(--acc-rgb), 0.5);
  background: rgba(var(--acc-rgb), 0.07);
  box-shadow: 0 0 10px rgba(var(--acc-rgb), 0.15);
}

/* ============================================================
   CONTATTI — 50/50
   ============================================================ */
.contact-section {
  display: grid; grid-template-columns: 1fr 1fr;
  min-height: 85vh;
}

/* Left — image + info */
.contact-left { position: relative; overflow: hidden; }
.contact-left-img { position: absolute; inset: 0; }
.contact-left-img img {
  width: 100%; height: 100%; object-fit: cover;
  filter: brightness(0.3) saturate(0.4) hue-rotate(195deg);
}
.contact-left-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(4,16,31,0.65) 0%, rgba(4,16,31,0.30) 100%);
}
/* Vertical cyan accent line */
.contact-left::before {
  content: '';
  position: absolute; top: 0; right: 0; bottom: 0;
  width: 1px; z-index: 10;
  background: linear-gradient(to bottom, transparent, var(--acc), transparent);
  opacity: 0.4;
}
.contact-left-content {
  position: relative; z-index: 2;
  height: 100%; display: flex;
  flex-direction: column; justify-content: flex-end;
  padding: clamp(36px, 6vw, 80px);
}
.contact-left-title {
  font-family: var(--f-cond);
  font-size: clamp(2.2rem, 4.5vw, 4.5rem);
  font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--white); line-height: 1.0; margin-bottom: 30px;
}
.contact-left-title .hl { color: var(--acc); font-weight: 300; display: block; }
.contact-details { display: flex; flex-direction: column; gap: 18px; }
.contact-detail { display: flex; align-items: flex-start; gap: 14px; }
.contact-detail-icon {
  color: var(--acc); font-size: 0.82rem;
  margin-top: 4px; flex-shrink: 0; width: 18px; text-align: center;
}
.contact-detail-body { flex: 1; }
.contact-detail-body strong {
  display: block;
  font-family: var(--f-cond);
  font-size: 0.62rem; font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 3px;
}
.contact-detail-body span,
.contact-detail-body a {
  font-size: 0.9rem; color: rgba(238,246,255,0.78); line-height: 1.5; display: block;
}
.contact-detail-body a:hover { color: var(--acc); }

/* Right — form */
.contact-right {
  background: var(--bg-alt);
  display: flex; flex-direction: column; justify-content: center;
  padding: clamp(50px, 8vw, 100px) clamp(40px, 6vw, 90px);
  position: relative;
}
.contact-right::after {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--acc), transparent);
}
.contact-form-title {
  font-family: var(--f-cond);
  font-size: clamp(2rem, 3.5vw, 3.5rem);
  font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--white); line-height: 1.0; margin-bottom: 8px;
}
.contact-form-sub {
  font-size: 0.86rem; color: var(--muted); margin-bottom: 32px; line-height: 1.6;
}

/* CF7 */
.wpcf7-form p { margin-bottom: 16px; }
.wpcf7-form label {
  display: block;
  font-family: var(--f-cond);
  font-size: 0.62rem; font-weight: 700;
  letter-spacing: 0.20em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 7px;
}
.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form input[type="tel"],
.wpcf7-form select,
.wpcf7-form textarea {
  width: 100%;
  background: rgba(34, 211, 238, 0.03);
  border: none;
  border-bottom: 1px solid rgba(var(--acc-rgb), 0.18);
  color: var(--white);
  font-family: var(--f-body);
  font-size: 0.9rem;
  padding: 12px 4px;
  outline: none;
  border-radius: 0;
  transition: border-color var(--t-fast);
  -webkit-appearance: none;
}
.wpcf7-form input:focus,
.wpcf7-form textarea:focus {
  border-bottom-color: var(--acc);
  box-shadow: 0 1px 0 var(--acc);
}
.wpcf7-form input::placeholder,
.wpcf7-form textarea::placeholder { color: rgba(255,255,255,0.2); font-size: 0.85rem; }
.wpcf7-form textarea { height: 120px; resize: vertical; }
.wpcf7-form input[type="submit"],
.wpcf7-form .wpcf7-submit {
  width: 100%;
  background: var(--acc);
  color: var(--bg);
  border: 1px solid var(--acc);
  font-family: var(--f-cond);
  font-size: 0.78rem; font-weight: 700;
  letter-spacing: 0.22em; text-transform: uppercase;
  padding: 16px; cursor: pointer;
  transition: var(--t); border-radius: 0; margin-top: 8px;
}
.wpcf7-form input[type="submit"]:hover {
  background: transparent; color: var(--acc);
  box-shadow: 0 0 20px rgba(var(--acc-rgb), 0.3);
}
.wpcf7-response-output {
  margin-top: 14px !important; padding: 12px 16px !important;
  font-family: var(--f-cond) !important; font-size: 0.78rem !important;
  letter-spacing: 0.05em !important;
  border: none !important; border-radius: 0 !important;
}
.wpcf7-mail-sent-ok  { background: rgba(34,211,238,0.08) !important; color: var(--acc) !important; border: 1px solid rgba(var(--acc-rgb),0.25) !important; }
.wpcf7-mail-sent-ng,
.wpcf7-validation-errors { background: rgba(239,68,68,0.08) !important; color: #f87171 !important; border: 1px solid rgba(248,113,113,0.2) !important; }
.wpcf7-not-valid-tip { color: #f87171 !important; font-size: 0.7rem !important; margin-top: 5px !important; }
.wpcf7-spinner { display: none !important; }

.cf7-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.cf7-row > p { margin-bottom: 0; }

/* ============================================================
   FOOTER
   ============================================================ */
.cf-footer {
  background: var(--bg-deep);
  border-top: 1px solid rgba(var(--acc-rgb), 0.08);
  padding: clamp(60px, 8vw, 100px) 0 0;
}

.cf-container {
  max-width: var(--max); margin: 0 auto; padding: 0 var(--pad-x);
}

.cf-footer__grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 60px; padding-bottom: clamp(50px, 7vw, 80px);
}

.cf-footer__brand-name {
  font-family: var(--f-cond);
  font-size: 1rem; font-weight: 800;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--white); margin-bottom: 4px;
}
.cf-footer__brand-tagline {
  display: block;
  font-family: var(--f-cond);
  font-size: 0.6rem; letter-spacing: 0.28em;
  text-transform: uppercase; color: var(--acc);
  font-weight: 500; margin-bottom: 16px;
}
.cf-footer__brand-text {
  font-size: 0.87rem; color: var(--muted);
  line-height: 1.85; margin-bottom: 22px; max-width: 300px;
}
.cf-footer__socials { display: flex; gap: 9px; }
.cf-footer__social {
  width: 33px; height: 33px;
  border: 1px solid rgba(var(--acc-rgb), 0.12);
  display: flex; align-items: center; justify-content: center;
  color: var(--muted); font-size: 0.78rem; transition: var(--t-fast);
}
.cf-footer__social:hover {
  border-color: var(--acc); color: var(--acc);
  box-shadow: 0 0 12px rgba(var(--acc-rgb), 0.2);
}

.cf-footer__col-title {
  font-family: var(--f-cond);
  font-size: 0.64rem; font-weight: 700;
  letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--white); margin-bottom: 18px;
  padding-bottom: 11px;
  border-bottom: 1px solid rgba(var(--acc-rgb), 0.08);
}
.cf-footer__links { display: flex; flex-direction: column; gap: 10px; list-style: none; margin: 0; padding: 0; }
.cf-footer__links a {
  font-family: var(--f-cond);
  font-size: 0.85rem; font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--muted); transition: color var(--t-fast);
}
.cf-footer__links a:hover { color: var(--acc); }

.cf-footer__contact-item {
  display: flex; align-items: flex-start; gap: 10px; margin-bottom: 12px;
}
.cf-footer__contact-item i { color: var(--acc); font-size: 0.76rem; margin-top: 4px; flex-shrink: 0; }
.cf-footer__contact-item span,
.cf-footer__contact-item a {
  font-size: 0.85rem; color: var(--muted); line-height: 1.5;
}
.cf-footer__contact-item a:hover { color: var(--acc); }

.cf-footer__bottom {
  border-top: 1px solid rgba(var(--acc-rgb), 0.07);
  padding: 20px 0;
}
.cf-footer__bottom-inner {
  display: flex; align-items: center;
  justify-content: space-between; gap: 20px;
}
.cf-footer__copyright {
  font-family: var(--f-cond);
  font-size: 0.72rem; color: var(--muted); letter-spacing: 0.08em;
}
.cf-footer__legal-links { display: flex; gap: 20px; list-style: none; margin: 0; padding: 0; }
.cf-footer__legal-links a {
  font-family: var(--f-cond);
  font-size: 0.7rem; color: var(--muted); transition: color var(--t-fast);
  letter-spacing: 0.06em;
}
.cf-footer__legal-links a:hover { color: var(--acc); }

/* ============================================================
   BACK TO TOP
   ============================================================ */
.cf-back-to-top {
  position: fixed; bottom: 30px; right: 30px;
  width: 42px; height: 42px;
  border: 1px solid rgba(var(--acc-rgb), 0.2);
  background: var(--bg-alt);
  display: flex; align-items: center; justify-content: center;
  color: var(--acc); font-size: 0.82rem;
  z-index: 800; opacity: 0; transform: translateY(14px);
  pointer-events: none; transition: var(--t); cursor: pointer;
}
.cf-back-to-top.show {
  opacity: 1; transform: none; pointer-events: all;
}
.cf-back-to-top:hover {
  background: var(--acc); color: var(--bg);
  border-color: var(--acc);
  box-shadow: 0 0 20px rgba(var(--acc-rgb), 0.4);
}

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: none; }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.reveal {
  opacity: 0; transform: translateY(28px);
  transition: opacity 0.75s var(--ease), transform 0.75s var(--ease);
}
.reveal.from-left  { transform: translateX(-28px); }
.reveal.from-right { transform: translateX(28px); }
.reveal.visible    { opacity: 1; transform: none; }

.stagger > *:nth-child(1) { transition-delay: 0s; }
.stagger > *:nth-child(2) { transition-delay: 0.09s; }
.stagger > *:nth-child(3) { transition-delay: 0.18s; }
.stagger > *:nth-child(4) { transition-delay: 0.27s; }
.stagger > *:nth-child(5) { transition-delay: 0.36s; }
.stagger > *:nth-child(6) { transition-delay: 0.45s; }

/* ============================================================
   RESPONSIVE — TABLET
   ============================================================ */
@media (max-width: 1100px) {
  .sectors-grid { grid-template-rows: 420px 420px; }
  .products-grid { grid-auto-rows: 360px; }
  .product-item:first-child { grid-column: span 1; }
  .products-header { flex-direction: column; align-items: flex-start; gap: 16px; }
  .about-section, .contact-section { grid-template-columns: 1fr; }
  .about-image, .contact-left { min-height: 50vw; max-height: 60vh; }
  .contact-left-content { padding: clamp(30px,5vw,60px); justify-content: flex-end; }
  .certs-inner { grid-template-columns: 1fr; gap: 40px; }
  .cf-footer__grid { grid-template-columns: 1fr 1fr; gap: 40px; }
  .cf-footer__grid > div:first-child { grid-column: 1 / -1; }
  .intro-inner { grid-template-columns: 1fr; gap: 24px; }
  .intro-num { display: none; }
  .sectors-header { flex-direction: column; align-items: flex-start; gap: 16px; }
  .sectors-header p { max-width: 100%; }
}

/* ============================================================
   RESPONSIVE — MOBILE
   ============================================================ */
@media (max-width: 768px) {
  :root { --nav-h: 62px; --pad-x: 20px; }

  .nav-desktop { display: none; }
  .hamburger   { display: flex; }

  .hero-title { font-size: clamp(3rem, 12vw, 5.5rem); }
  .hero-actions { flex-direction: column; align-items: flex-start; }
  .hero .swiper-pagination { bottom: 22px; }
  .hero-scroll { display: none; }

  .sectors-grid { grid-template-columns: 1fr; grid-template-rows: repeat(4, 340px); }
  .products-grid { grid-template-columns: 1fr; grid-auto-rows: 280px; }

  .stats-inner { grid-template-columns: 1fr 1fr; }
  .stat::after { display: none; }

  .certs-right { grid-template-columns: 1fr; }

  .norms-strip-inner { flex-direction: column; align-items: flex-start; }
  .norms-label { border-right: none; border-bottom: 1px solid rgba(var(--acc-rgb),0.1); padding: 0 0 12px; width: 100%; }

  .cf-footer__grid { grid-template-columns: 1fr; gap: 34px; }
  .cf-footer__bottom-inner { flex-direction: column; text-align: center; gap: 14px; }
  .cf-footer__legal-links { flex-wrap: wrap; justify-content: center; }

  .cf-back-to-top { bottom: 18px; right: 18px; }

  .cf7-row { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .hero-title { font-size: clamp(2.4rem, 13vw, 4rem); }
  .sectors-grid { grid-template-rows: repeat(4, 300px); }
}

/* ============================================================
   WP COMPAT
   ============================================================ */
.alignleft   { float: left; margin-right: 1.5em; }
.alignright  { float: right; margin-left: 1.5em; }
.aligncenter { display: block; margin: 0 auto; }
.screen-reader-text {
  border: 0; clip: rect(1px,1px,1px,1px); clip-path: inset(50%);
  height: 1px; margin: -1px; overflow: hidden; padding: 0;
  position: absolute; width: 1px; word-wrap: normal !important;
}
