/* NEAR — New Energy Alliance for Renewables
   Homepage styles */

:root {
  --c-cyan: #6cf0ff;
  --c-blue: #009fe3;
  --c-deep: #315dab;
  --c-sky: #8ad5e8;

  --c-ink: #0b2240;
  --c-ink-soft: #3a4a63;
  --c-mute: #6b7a8f;
  --c-line: #e3eaf2;
  --c-bg: #ffffff;
  --c-bg-alt: #f5f8fc;
  --c-bg-deep: #0a1e3f;

  --f-display: "Syne", "Inter Tight", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --f-body: "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --pad-section: clamp(72px, 10vw, 140px);
  --pad-gutter: clamp(24px, 5vw, 72px);
  --max-w: 1440px;
}

/* Density variants */
body.density-comfy { --pad-section: clamp(96px, 12vw, 180px); }
body.density-tight { --pad-section: clamp(56px, 7vw, 96px); }

/* Dark (blu notte) */
body.theme-night {
  --c-bg: #071633;
  --c-bg-alt: #0a1e3f;
  --c-ink: #e9f2ff;
  --c-ink-soft: #b9c9e2;
  --c-mute: #7f95b8;
  --c-line: rgba(255,255,255,0.12);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; overflow-x: hidden; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--f-body);
  color: var(--c-ink);
  background: var(--c-bg);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* Type */
h1, h2, h3, h4 {
  font-family: var(--f-display);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.04;
  margin: 0;
  color: var(--c-ink);
  text-wrap: balance;
}
p { margin: 0; text-wrap: pretty; }

.display {
  font-size: clamp(44px, 7vw, 112px);
  font-weight: 400;
  letter-spacing: -0.035em;
  line-height: 0.96;
}
.h1 { font-size: clamp(36px, 4.6vw, 72px); font-weight: 400; letter-spacing: -0.03em; }
.h2 { font-size: clamp(28px, 3vw, 44px); font-weight: 500; }
.h3 { font-size: clamp(20px, 1.5vw, 24px); font-weight: 500; }
.eyebrow {
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--c-blue);
  font-weight: 500;
}
.lead {
  font-size: clamp(18px, 1.4vw, 22px);
  line-height: 1.55;
  color: var(--c-ink-soft);
  font-weight: 400;
}

/* Layout helpers */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding-left: var(--pad-gutter);
  padding-right: var(--pad-gutter);
}
section { position: relative; }
.section-pad { padding-top: var(--pad-section); padding-bottom: var(--pad-section); }

/* Section label */
.section-label {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--c-blue);
  margin-bottom: 28px;
}
.section-label::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--c-blue);
}

/* Nav */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  transition: background 0.3s ease, backdrop-filter 0.3s ease, border-color 0.3s ease;
  border-bottom: 1px solid transparent;
}
.nav.is-solid {
  background: rgba(255,255,255,0.92);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom-color: var(--c-line);
}
body.theme-night .nav.is-solid {
  background: rgba(7,22,51,0.82);
  border-bottom-color: rgba(255,255,255,0.08);
}
.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 18px var(--pad-gutter);
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-logo { display: flex; align-items: center; height: 44px; flex-shrink: 0; }
.nav-logo img,
#near-nav .nav-logo img { height: 44px; width: auto; max-width: none; }
.nav-logo .logo-dark { display: block; }
.nav-logo .logo-light { display: none; }
.nav.is-hero .nav-logo .logo-dark,
body.theme-night .nav-logo .logo-dark { display: none; }
.nav.is-hero .nav-logo .logo-light,
body.theme-night .nav-logo .logo-light { display: block; }
.nav.is-solid:not(.is-hero) .nav-logo .logo-dark { display: block; }
.nav.is-solid:not(.is-hero) .nav-logo .logo-light { display: none; }

/* ── Nav links ─────────────────────────────── */
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0 0 0 auto;
  list-style: none;
  padding: 0;
}
.nav-links > li { position: relative; display: flex; align-items: center; }
.nav-links > li > a {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 500;
  color: var(--c-ink);
  border-radius: 8px;
  transition: background 0.18s, color 0.18s;
  white-space: nowrap;
}
.nav.is-hero .nav-links > li > a { color: rgba(255,255,255,0.9); }
.nav-links > li > a:hover,
.nav-links > li:hover > a {
  background: rgba(49,93,171,0.07);
  color: var(--c-blue);
}
.nav.is-hero .nav-links > li > a:hover,
.nav.is-hero .nav-links > li:hover > a {
  background: rgba(255,255,255,0.12);
  color: #fff;
}

/* Dropdown chevron */
.nav-links > li.menu-item-has-children > a::after {
  content: '';
  display: inline-block;
  width: 8px; height: 8px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  transition: transform 0.2s;
  margin-left: 2px;
}
.nav-links > li.menu-item-has-children:hover > a::after {
  transform: rotate(225deg) translateY(-2px);
}

/* Sub-menu dropdown */
.nav-links .sub-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 210px;
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: 10px;
  box-shadow: 0 12px 40px -8px rgba(0,0,0,0.14);
  padding: 6px;
  list-style: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
  z-index: 200;
}
.nav-links > li:hover > .sub-menu,
.nav-links > li:focus-within > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.nav-links .sub-menu a {
  display: block;
  padding: 9px 14px;
  font-size: 13px;
  font-weight: 500;
  color: var(--c-ink);
  border-radius: 6px;
  transition: background 0.15s, color 0.15s;
}
.nav-links .sub-menu a:hover {
  background: rgba(49,93,171,0.07);
  color: var(--c-blue);
}

/* ── Nav right area ─────────────────────────── */
.nav-right { display: flex; align-items: center; gap: 14px; }

/* ── Language toggle ────────────────────────── */
.lang-switch {
  display: inline-flex;
  align-items: center;
  font-family: var(--f-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  border: 1px solid rgba(49,93,171,0.35);
  border-radius: 999px;
  padding: 3px;
  background: rgba(255,255,255,0.5);
  gap: 0;
}
.nav.is-hero .lang-switch {
  border-color: rgba(255,255,255,0.35);
  background: rgba(255,255,255,0.1);
}
.lang-switch button,
.lang-switch a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 30px;
  padding: 5px 10px;
  border-radius: 999px;
  cursor: pointer;
  background: transparent;
  border: 0;
  color: var(--c-ink);
  font: inherit;
  letter-spacing: inherit;
  text-decoration: none;
  transition: background 0.18s, color 0.18s;
}
.nav.is-hero .lang-switch button,
.nav.is-hero .lang-switch a { color: rgba(255,255,255,0.8); }
.lang-switch button.active,
.lang-switch a.active {
  background: var(--c-deep);
  color: #fff;
}
.nav.is-hero .lang-switch button.active,
.nav.is-hero .lang-switch a.active {
  background: #fff;
  color: var(--c-deep);
}

/* ── Nav CTA button ─────────────────────────── */
.btn-nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 20px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.01em;
  font-family: var(--f-body);
  white-space: nowrap;
  border: 1.5px solid var(--c-blue);
  color: var(--c-blue);
  background: transparent;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.2s;
  text-decoration: none;
}
.btn-nav-cta svg { width: 13px; height: 13px; transition: transform 0.2s; }
.btn-nav-cta:hover {
  background: var(--c-blue);
  color: #fff;
  transform: translateY(-1px);
}
.btn-nav-cta:hover svg { transform: translateX(2px); }
.nav.is-hero .btn-nav-cta {
  border-color: rgba(255,255,255,0.7);
  color: #fff;
}
.nav.is-hero .btn-nav-cta:hover {
  background: #fff;
  color: var(--c-deep);
  border-color: #fff;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.01em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s, color 0.2s, border-color 0.2s;
  font-family: var(--f-body);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--c-deep); color: #fff; }
.btn-primary:hover { background: #26498c; color: #fff; }
.btn-outline { border-color: var(--c-line); color: var(--c-ink); }
.btn-outline:hover { background: var(--c-deep); border-color: var(--c-deep); color: #fff; }
.btn-outline-light {
  background: transparent;
  border-color: rgba(255,255,255,0.45);
  color: #fff;
}
.btn-outline-light:hover { background: #fff; border-color: #fff; color: var(--c-deep); }
.btn-ghost-light {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.3);
  color: #fff;
  backdrop-filter: blur(8px);
}
.btn-ghost-light:hover { background: rgba(255,255,255,0.18); border-color: rgba(255,255,255,0.6); color: #fff; }
.btn-white { background: #fff; color: var(--c-deep); }
.btn-white:hover { background: var(--c-cyan); color: var(--c-deep); }

.btn svg { width: 14px; height: 14px; }

/* Reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.9s ease, transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.reveal.in { opacity: 1; transform: none; }

/* ============ HERO ============ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}
.hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
}
.hero-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  animation: kenburns 22s ease-out infinite alternate;
}
@keyframes kenburns {
  from { transform: scale(1.04) translateX(0); }
  to   { transform: scale(1.12) translateX(-1.5%); }
}
.hero-overlay {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(7,22,51,0.25) 0%, rgba(7,22,51,0.0) 30%, rgba(7,22,51,0.55) 75%, rgba(7,22,51,0.85) 100%),
    linear-gradient(90deg, rgba(10,30,63,0.55) 0%, rgba(10,30,63,0.15) 50%, rgba(10,30,63,0) 100%);
}

.hero-inner {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad-gutter) clamp(60px, 9vh, 110px);
  position: relative;
}
.hero-eyebrow {
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--c-cyan);
  margin-bottom: 28px;
  display: inline-flex;
  align-items: center;
  gap: 14px;
}
.hero-eyebrow::before {
  content: ""; width: 40px; height: 1px;
  background: var(--c-cyan);
}
.hero-title {
  font-family: var(--f-display);
  font-size: clamp(42px, 7vw, 108px);
  font-weight: 300;
  letter-spacing: -0.035em;
  line-height: 0.98;
  max-width: 14ch;
  color: #fff;
}
.hero-title em {
  font-style: normal;
  background: linear-gradient(90deg, var(--c-cyan), var(--c-sky));
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  font-weight: 400;
}
.hero-sub {
  margin-top: 28px;
  font-size: clamp(16px, 1.2vw, 19px);
  max-width: 54ch;
  color: rgba(255,255,255,0.82);
  line-height: 1.55;
}
.hero-cta { margin-top: 44px; display: flex; gap: 14px; flex-wrap: wrap; }

/* Hero meta rail — bottom right */
.hero-meta {
  position: absolute;
  right: var(--pad-gutter);
  bottom: clamp(60px, 9vh, 110px);
  display: flex;
  flex-direction: column;
  gap: 14px;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  text-align: right;
}
.hero-meta strong { color: #fff; font-weight: 500; display: block; font-size: 13px; }
.hero-meta-item { border-right: 1px solid rgba(255,255,255,0.28); padding-right: 14px; }

/* Scroll hint */
.hero-scroll {
  position: absolute;
  left: var(--pad-gutter);
  top: 50%;
  transform: rotate(-90deg) translateX(50%);
  transform-origin: left center;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  display: flex;
  align-items: center;
  gap: 10px;
}
.hero-scroll::after {
  content: ""; width: 36px; height: 1px; background: rgba(255,255,255,0.5);
  animation: pulseLine 2.2s ease-in-out infinite;
}
@keyframes pulseLine {
  0%, 100% { opacity: 0.4; transform: scaleX(0.8); transform-origin: left; }
  50% { opacity: 1; transform: scaleX(1.2); }
}

/* Hero variant B: split */
.hero.variant-split { align-items: center; }
.hero.variant-split .hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 60px;
  align-items: center;
  padding-top: 140px;
  padding-bottom: 80px;
}
.hero.variant-split .hero-media { display: none; }
.hero.variant-split .hero-overlay { display: none; }
.hero.variant-split { background: var(--c-bg); color: var(--c-ink); }
.hero.variant-split .hero-title { color: var(--c-ink); }
.hero.variant-split .hero-title em {
  background: linear-gradient(90deg, var(--c-deep), var(--c-blue));
  -webkit-background-clip: text; background-clip: text;
}
.hero.variant-split .hero-sub { color: var(--c-ink-soft); }
.hero.variant-split .hero-eyebrow { color: var(--c-blue); }
.hero.variant-split .hero-eyebrow::before { background: var(--c-blue); }
.hero.variant-split .hero-meta,
.hero.variant-split .hero-scroll { display: none; }
.hero-split-visual {
  position: relative;
  aspect-ratio: 4/5;
  border-radius: 4px;
  overflow: hidden;
  background: var(--c-bg-alt);
}
.hero-split-visual img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
}
.hero-split-badge {
  position: absolute;
  left: 24px; bottom: 24px;
  padding: 12px 18px;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(10px);
  border-radius: 2px;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--c-deep);
}

/* Hero variant C: deep blue graphic */
.hero.variant-graphic { background: var(--c-bg-deep); }
.hero.variant-graphic .hero-media img { opacity: 0.25; mix-blend-mode: screen; animation: none; }
.hero.variant-graphic .hero-overlay {
  background: linear-gradient(135deg, #0a1e3f 0%, #142e63 50%, #315dab 100%);
  opacity: 0.88;
}
.hero.variant-graphic .hero-title em {
  background: linear-gradient(90deg, #fff, var(--c-cyan));
  -webkit-background-clip: text; background-clip: text;
}

/* Hero variant D: minimal light */
.hero.variant-minimal { background: #fff; color: var(--c-ink); }
.hero.variant-minimal .hero-media { opacity: 0.08; }
.hero.variant-minimal .hero-overlay { display: none; }
.hero.variant-minimal .hero-title { color: var(--c-ink); }
.hero.variant-minimal .hero-title em {
  background: linear-gradient(90deg, var(--c-deep), var(--c-blue));
  -webkit-background-clip: text; background-clip: text;
}
.hero.variant-minimal .hero-sub { color: var(--c-ink-soft); }
.hero.variant-minimal .hero-eyebrow { color: var(--c-blue); }
.hero.variant-minimal .hero-eyebrow::before { background: var(--c-blue); }
.hero.variant-minimal .hero-meta { color: var(--c-mute); }
.hero.variant-minimal .hero-meta strong { color: var(--c-ink); }
.hero.variant-minimal .hero-meta-item { border-right-color: var(--c-line); }
.hero.variant-minimal .hero-scroll { color: var(--c-mute); }
.hero.variant-minimal .hero-scroll::after { background: var(--c-line); }

/* ============ INTRO / CHI SIAMO ============ */
.intro { background: var(--c-bg); position: relative; overflow: hidden; }
.intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr);
  gap: clamp(40px, 6vw, 100px);
  align-items: start;
}
.intro-heading {
  position: sticky;
  top: 120px;
}
.intro-heading h2 {
  font-family: var(--f-display);
  font-size: clamp(36px, 4.4vw, 64px);
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1.02;
  max-width: 14ch;
}
.intro-heading h2 .accent {
  color: var(--c-blue);
}
.intro-body > * + * { margin-top: 28px; }
.intro-body p { font-size: clamp(16px, 1.1vw, 18px); color: var(--c-ink-soft); line-height: 1.65; }
.intro-body p.lede {
  font-size: clamp(20px, 1.6vw, 26px);
  color: var(--c-ink);
  line-height: 1.4;
  font-weight: 400;
  letter-spacing: -0.01em;
}

.intro-stats {
  margin-top: 80px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--c-line);
  border-top: 1px solid var(--c-line);
  border-bottom: 1px solid var(--c-line);
}
.stat {
  background: var(--c-bg);
  padding: 40px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.stat-num {
  font-family: var(--f-display);
  font-size: clamp(40px, 4vw, 64px);
  font-weight: 300;
  letter-spacing: -0.03em;
  color: var(--c-deep);
  line-height: 1;
}
.stat-num sup {
  font-size: 0.4em;
  color: var(--c-blue);
  vertical-align: super;
  margin-left: 4px;
  font-weight: 500;
}
.stat-label {
  font-size: 13px;
  color: var(--c-mute);
  line-height: 1.4;
}

/* ============ TECNOLOGIE ============ */
.tech {
  background: var(--c-bg-alt);
  position: relative;
  overflow: hidden;
}
.tech::before {
  content: "";
  position: absolute;
  right: 0; top: 0;
  width: 50%; height: 100%;
  background: url('../images/linee-lato.png') right center / cover no-repeat;
  opacity: 0.25;
  pointer-events: none;
}
.tech-head { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: end; margin-bottom: 72px; }
.tech-head h2 {
  font-family: var(--f-display);
  font-size: clamp(36px, 4.4vw, 64px);
  font-weight: 400;
  letter-spacing: -0.03em;
}

.tech-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.tech-card {
  background: var(--c-bg);
  border: 1px solid var(--c-line);
  border-radius: 4px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 560px;
  transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
  cursor: pointer;
  position: relative;
}
.tech-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 30px 60px -20px rgba(49, 93, 171, 0.25);
  border-color: var(--c-blue);
}
.tech-card-img {
  position: relative;
  height: 280px;
  overflow: hidden;
  background: var(--c-bg-alt);
}
.tech-card-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease;
}
.tech-card:hover .tech-card-img img { transform: scale(1.05); }
.tech-card-tag {
  position: absolute;
  top: 20px; left: 20px;
  padding: 6px 12px;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(8px);
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--c-deep);
  border-radius: 2px;
}
.tech-card-body {
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  flex: 1;
}
.tech-card-body h3 {
  font-family: var(--f-display);
  font-size: 28px;
  font-weight: 500;
  letter-spacing: -0.02em;
}
.tech-card-body p {
  color: var(--c-ink-soft);
  font-size: 15px;
  line-height: 1.55;
}
.tech-specs {
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid var(--c-line);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.tech-spec-label {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-mute);
  margin-bottom: 4px;
}
.tech-spec-val {
  font-family: var(--f-display);
  font-size: 20px;
  font-weight: 400;
  color: var(--c-deep);
  letter-spacing: -0.01em;
}
.tech-card-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  font-size: 13px;
  font-weight: 500;
  color: var(--c-blue);
  font-family: var(--f-mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.tech-card-cta svg { transition: transform 0.3s ease; }
.tech-card:hover .tech-card-cta svg { transform: translateX(6px); }

/* ============ ORIENTE OCCIDENTE ============ */
.bridge {
  background: var(--c-bg-deep);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.bridge::before {
  content: "";
  position: absolute; inset: 0;
  background: url('../images/bg-blue.jpg') center / cover no-repeat;
  opacity: 0.45;
  mix-blend-mode: screen;
  pointer-events: none;
}
.bridge::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(7,22,51,0.7) 0%, rgba(7,22,51,0.4) 50%, rgba(7,22,51,0.95) 100%);
  pointer-events: none;
}
.bridge > .container { position: relative; z-index: 1; }

.bridge-head {
  max-width: 980px;
  margin-bottom: 90px;
}
.bridge-head .eyebrow { color: var(--c-cyan); margin-bottom: 24px; display: inline-block; }
.bridge-head h2 {
  font-family: var(--f-display);
  font-size: clamp(40px, 5.2vw, 84px);
  font-weight: 300;
  letter-spacing: -0.035em;
  line-height: 1;
  color: #fff;
}
.bridge-head h2 em {
  font-style: italic;
  font-weight: 300;
  color: var(--c-cyan);
}

.bridge-axis {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 40px;
  margin-bottom: 80px;
  padding: 40px 0;
  border-top: 1px solid rgba(255,255,255,0.14);
  border-bottom: 1px solid rgba(255,255,255,0.14);
}
.axis-side {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.axis-side.east { text-align: right; }
.axis-label {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--c-cyan);
}
.axis-title {
  font-family: var(--f-display);
  font-size: clamp(24px, 2.2vw, 32px);
  font-weight: 400;
  letter-spacing: -0.02em;
  color: #fff;
}
.axis-body {
  font-size: 14px;
  color: rgba(255,255,255,0.68);
  line-height: 1.55;
  max-width: 40ch;
}
.axis-side.east .axis-body { margin-left: auto; }

.axis-center {
  position: relative;
  width: 220px;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.axis-center svg { width: 100%; height: 100%; }

.bridge-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 60px 40px;
}
.bridge-item {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.bridge-item-num {
  font-family: var(--f-display);
  font-size: 13px;
  letter-spacing: 0.12em;
  color: var(--c-cyan);
  font-family: var(--f-mono);
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255,255,255,0.18);
  margin-bottom: 4px;
}
.bridge-item h4 {
  font-family: var(--f-display);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: #fff;
}
.bridge-item p {
  font-size: 14.5px;
  color: rgba(255,255,255,0.72);
  line-height: 1.6;
}

.bridge-quote {
  margin-top: 100px;
  padding-top: 60px;
  border-top: 1px solid rgba(255,255,255,0.18);
  max-width: 900px;
}
.bridge-quote blockquote {
  font-family: var(--f-display);
  font-size: clamp(22px, 2.2vw, 32px);
  font-weight: 300;
  font-style: italic;
  letter-spacing: -0.015em;
  line-height: 1.35;
  color: rgba(255,255,255,0.92);
  margin: 0;
  position: relative;
  padding-left: 40px;
}
.bridge-quote blockquote::before {
  content: "";
  position: absolute;
  left: 0; top: 8px;
  width: 3px; height: calc(100% - 16px);
  background: linear-gradient(180deg, var(--c-cyan), var(--c-blue));
}
.bridge-quote cite {
  display: block;
  margin-top: 24px;
  font-style: normal;
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--c-cyan);
}

/* ============ SUPPLY CHAIN ============ */
.supply { background: var(--c-bg); position: relative; overflow: hidden; }
.supply-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: end;
  margin-bottom: 60px;
}
.supply-head h2 {
  font-family: var(--f-display);
  font-size: clamp(36px, 4.4vw, 64px);
  font-weight: 400;
  letter-spacing: -0.03em;
}
.supply-chain {
  position: relative;
  padding-top: 40px;
}
.chain-track {
  position: absolute;
  left: 0; right: 0; top: 80px;
  height: 1px;
  background: var(--c-line);
}
.chain-steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 24px;
  position: relative;
}
.chain-step {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-top: 0;
}
.chain-dot {
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--c-bg);
  border: 2px solid var(--c-blue);
  position: relative;
  z-index: 2;
  margin-top: 33px;
  margin-bottom: 20px;
}
.chain-step:nth-child(odd) .chain-dot { background: var(--c-blue); }
.chain-step-num {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--c-blue);
}
.chain-step h4 {
  font-family: var(--f-display);
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--c-ink);
}
.chain-step p {
  font-size: 13.5px;
  color: var(--c-ink-soft);
  line-height: 1.55;
}

/* ============ PARTNER ============ */
.partners { background: var(--c-bg-alt); border-top: 1px solid var(--c-line); border-bottom: 1px solid var(--c-line); }
.partners-inner {
  padding: 60px 0;
}
.partners-label {
  text-align: center;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--c-mute);
  margin-bottom: 36px;
}
.partners-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0;
  border-left: 1px solid var(--c-line);
}
.partner-cell {
  aspect-ratio: 2/1;
  border-right: 1px solid var(--c-line);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--f-display);
  font-size: 17px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--c-mute);
  opacity: 0.7;
  transition: opacity 0.3s, color 0.3s;
}
.partner-cell:hover { opacity: 1; color: var(--c-deep); }

/* ============ NEWS ============ */
.news { background: var(--c-bg); }
.news-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 60px;
  gap: 40px;
}
.news-head h2 {
  font-family: var(--f-display);
  font-size: clamp(36px, 4.4vw, 64px);
  font-weight: 400;
  letter-spacing: -0.03em;
}
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.news-card {
  display: flex;
  flex-direction: column;
  gap: 20px;
  cursor: pointer;
  transition: transform 0.3s ease;
}
.news-card:hover { transform: translateY(-4px); }
.news-thumb {
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--c-bg-alt);
  position: relative;
}
.news-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.news-card:hover .news-thumb img { transform: scale(1.04); }
.news-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-mute);
}
.news-meta .tag { color: var(--c-blue); }
.news-meta .dot { width: 3px; height: 3px; background: var(--c-line); border-radius: 50%; }
.news-card h3 {
  font-family: var(--f-display);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.018em;
  line-height: 1.2;
  color: var(--c-ink);
}
.news-card p {
  font-size: 15px;
  color: var(--c-ink-soft);
  line-height: 1.55;
}

/* ============ CTA BAND ============ */
.cta-band {
  position: relative;
  padding: clamp(80px, 10vw, 140px) 0;
  background: linear-gradient(135deg, var(--c-deep) 0%, #1e4589 50%, var(--c-blue) 100%);
  color: #fff;
  overflow: hidden;
}
.cta-band::before {
  content: "";
  position: absolute; inset: 0;
  background: url('../images/bg-lines-01.jpg') right bottom / cover no-repeat;
  opacity: 0.3;
  mix-blend-mode: screen;
}
.cta-band > .container { position: relative; z-index: 1; }
.cta-band-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 60px;
  align-items: end;
}
.cta-band h2 {
  font-family: var(--f-display);
  font-size: clamp(36px, 4.6vw, 68px);
  font-weight: 300;
  letter-spacing: -0.03em;
  line-height: 1.02;
  color: #fff;
  max-width: 16ch;
}
.cta-band h2 em {
  font-style: normal;
  color: var(--c-cyan);
}
.cta-band .cta-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
}

/* ============ FOOTER ============ */
.footer {
  background: #071633;
  color: rgba(255,255,255,0.8);
  padding: 100px 0 40px;
  position: relative;
  overflow: hidden;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr 1.2fr;
  gap: 40px;
  margin-bottom: 80px;
}
.footer-brand img { height: 56px; width: auto; margin-bottom: 22px; }
.footer-brand p {
  font-size: 14px;
  line-height: 1.55;
  color: rgba(255,255,255,0.55);
  max-width: 34ch;
}
.footer-col h5 {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--c-cyan);
  margin-bottom: 22px;
  font-weight: 500;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.footer-col a {
  font-size: 14px;
  color: rgba(255,255,255,0.7);
  transition: color 0.2s;
}
.footer-col a:hover { color: #fff; }

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.footer-contact .line { font-size: 14px; color: rgba(255,255,255,0.7); }
.footer-contact .line strong { color: #fff; font-weight: 500; display: block; margin-bottom: 2px; }

.footer-bottom {
  padding-top: 30px;
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  font-size: 12px;
  font-family: var(--f-mono);
  letter-spacing: 0.12em;
  color: rgba(255,255,255,0.45);
}
.footer-bottom a { color: inherit; }
.footer-bottom a:hover { color: #fff; }

/* ============ TWEAKS PANEL ============ */
.tweaks-panel {
  position: fixed;
  right: 20px; bottom: 20px;
  width: 320px;
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  background: rgba(255,255,255,0.98);
  backdrop-filter: blur(18px);
  border: 1px solid var(--c-line);
  border-radius: 4px;
  box-shadow: 0 30px 80px -20px rgba(11,34,64,0.4);
  z-index: 9999;
  font-family: var(--f-body);
  color: var(--c-ink);
}
.tweaks-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--c-line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 500;
}
.tweaks-close {
  background: transparent; border: 0; cursor: pointer;
  font-size: 16px; color: var(--c-mute); padding: 0;
}
.tweaks-body { padding: 20px; display: flex; flex-direction: column; gap: 22px; }
.tweak-group label.title {
  display: block;
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--c-mute);
  margin-bottom: 10px;
  font-weight: 500;
}
.tweak-options {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
}
.tweak-chip {
  padding: 8px 10px;
  background: var(--c-bg-alt);
  border: 1px solid transparent;
  border-radius: 3px;
  font-size: 12px;
  font-family: var(--f-body);
  cursor: pointer;
  text-align: center;
  color: var(--c-ink-soft);
  transition: all 0.2s;
}
.tweak-chip:hover { border-color: var(--c-line); }
.tweak-chip.active { background: var(--c-deep); color: #fff; border-color: var(--c-deep); }

.tweak-swatches { display: flex; gap: 8px; }
.tweak-swatch {
  flex: 1; aspect-ratio: 1;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
  position: relative;
  transition: transform 0.2s, border-color 0.2s;
}
.tweak-swatch:hover { transform: scale(1.08); }
.tweak-swatch.active { border-color: var(--c-ink); }
.tweak-swatch::after {
  content: attr(data-name);
  position: absolute; top: calc(100% + 4px); left: 50%;
  transform: translateX(-50%);
  font-family: var(--f-mono); font-size: 9px;
  color: var(--c-mute); white-space: nowrap;
  text-transform: uppercase; letter-spacing: 0.1em;
}

.tweak-toggle-row {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 13px;
}
.tweak-switch {
  width: 34px; height: 20px;
  background: var(--c-line);
  border-radius: 999px;
  position: relative;
  cursor: pointer;
  transition: background 0.2s;
  border: 0;
  padding: 0;
}
.tweak-switch::after {
  content: ""; position: absolute; top: 2px; left: 2px;
  width: 16px; height: 16px; border-radius: 50%;
  background: #fff;
  transition: transform 0.2s;
}
.tweak-switch.on { background: var(--c-deep); }
.tweak-switch.on::after { transform: translateX(14px); }

/* ---- Mobile nav ---- */
.nav-hamburger {
  display: none;
  background: transparent;
  border: 0;
  cursor: pointer;
  padding: 6px;
  flex-direction: column;
  gap: 5px;
  margin-left: auto;
}
.nav-hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}
.nav.is-hero .nav-hamburger { color: #fff; }
.nav.is-solid:not(.is-hero) .nav-hamburger { color: var(--c-ink); }
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-mobile-drawer {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(7,22,51,0.98);
  z-index: 99;
  flex-direction: column;
  padding: 100px 32px 40px;
  overflow-y: auto;
  gap: 0;
}
.nav-mobile-drawer.open { display: flex; }
/* Top-level menu items */
.nav-mobile-links {
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-mobile-links > li > a {
  color: #fff;
  font-family: var(--f-display);
  font-size: clamp(22px, 6vw, 32px);
  font-weight: 500;
  letter-spacing: -0.02em;
  padding: 16px 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  display: block;
  text-decoration: none;
  transition: color 0.2s;
}
.nav-mobile-links > li > a:hover { color: var(--c-cyan); }

/* Sub-menu items (WordPress outputs .sub-menu) */
.nav-mobile-links .sub-menu {
  list-style: none;
  margin: 0;
  padding: 0 0 8px 20px;
}
.nav-mobile-links .sub-menu a {
  display: block;
  color: rgba(255,255,255,0.65);
  font-family: var(--f-body);
  font-size: 17px;
  font-weight: 400;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  text-decoration: none;
  transition: color 0.2s;
  letter-spacing: 0;
}
.nav-mobile-links .sub-menu a:hover { color: var(--c-cyan); }

.nav-mobile-cta {
  margin-top: 32px;
}
/* CTA button inside drawer — reset inherited text styles */
.nav-mobile-cta a.btn {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0;
  padding: 14px 28px;
  border-bottom: none;
  display: inline-block;
}
.nav-mobile-close {
  position: absolute;
  top: 20px; right: 20px;
  background: transparent;
  border: 0;
  color: #fff;
  font-size: 28px;
  cursor: pointer;
  padding: 8px;
  line-height: 1;
}

/* ---- Responsive */
@media (max-width: 960px) {
  .intro-grid { grid-template-columns: 1fr; }
  .intro-heading { position: static; }
  .intro-stats { grid-template-columns: repeat(2, 1fr); }
  .tech-head, .supply-head, .news-head { grid-template-columns: 1fr; gap: 24px; }
  .tech-cards { grid-template-columns: 1fr; }
  .bridge-axis { grid-template-columns: 1fr; gap: 24px; }
  .axis-side.east { text-align: left; }
  .axis-side.east .axis-body { margin-left: 0; }
  .axis-center { width: 100%; height: 80px; }
  .bridge-grid { grid-template-columns: 1fr; gap: 32px; }
  .chain-steps { grid-template-columns: 1fr 1fr; }
  .chain-track { display: none; }
  .chain-dot { margin-top: 0; }
  .partners-grid { grid-template-columns: repeat(3, 1fr); }
  .news-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .cta-band-grid { grid-template-columns: 1fr; }
  .hero.variant-split .hero-inner { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .hero-meta { display: none; }
  .hero-scroll { display: none; }

  /* ── Nav mobile: nascondi CTA desktop, mostra solo lang + hamburger ── */
  .btn-nav-cta { display: none; }
  .nav-inner { gap: 12px; }
  .nav-right { gap: 10px; }
  .nav-hamburger { display: flex; flex-shrink: 0; }

  /* ── Footer: 2 colonne a 960px ── */
  .footer { padding: 72px 0 32px; }
  .footer-grid { gap: 28px; }
}

/* ── Mobile stretto ≤ 600px ───────────────────────────────── */
@media (max-width: 600px) {
  /* Nav */
  .nav-inner { padding: 14px var(--pad-gutter); gap: 8px; }
  .near-lang-switch { gap: 4px; }
  .near-lang-switch a { font-size: 11px; padding: 3px 6px; }

  /* Sezioni: riduzione padding verticale */
  .section-pad { padding-top: 56px; padding-bottom: 56px; }
  .page-hero + .section-pad { padding-top: 36px; }

  /* Page hero */
  .page-hero { padding: 100px 0 28px; }

  /* Footer: colonna singola */
  .footer-grid { grid-template-columns: 1fr; gap: 32px; margin-bottom: 48px; }
  .footer { padding: 56px 0 28px; }
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    font-size: 11px;
  }
  .footer-brand p { max-width: 100%; }

  /* CTA band */
  .cta-band-grid { gap: 20px; }
  .cta-band h2 { font-size: clamp(22px, 6vw, 32px); }

  /* Partners: 3→2 colonne */
  .partners-grid { grid-template-columns: repeat(2, 1fr); }

  /* Stats: 2→2 già ok, ma riduci testo */
  .intro-stats { gap: 16px; }

  /* Hero homepage */
  .hero-inner { gap: 32px; }

  /* Chain steps: 2→1 */
  .chain-steps { grid-template-columns: 1fr; }
}
