/* ═══════════════════════════════════════════════════
   B&B EUROIMPIANTI — STYLESHEET
   Redesign: Editoriale / TEA-inspired
   Font: Barlow Condensed (headings) + Barlow (body) + Share Tech Mono (mono)
   Brand: Navy #0C0D32 · Giallo Oro #FFD000 · Blu Cobalto #1F21AE
   ═══════════════════════════════════════════════════ */

/* ─── CUSTOM PROPERTIES ─────────────────────────── */
:root {
  --font-heading: 'Barlow Condensed', sans-serif;
  --font-body:    'Barlow', sans-serif;
  --font-mono:    'Share Tech Mono', monospace;

  --brand-blue:   #1F21AE;
  --brand-yellow: #FFD000;

  --black:        #070710;
  --navy:         #0C0D32;
  --navy-lt:      #14163A;
  --white:        #FFFFFF;
  --off-white:    #F5F5F3;
  --light-grey:   #EBEBEB;
  --pale-blue:    #EEF0FF;

  --text:         #0A0A14;
  --text-2:       #3D3D55;
  --text-muted:   #6B6C7B;

  --border:         rgba(0,0,0,0.08);
  --border-strong:  rgba(0,0,0,0.14);
  --border-dark:    rgba(255,255,255,0.09);

  --radius-sm:   3px;
  --radius:      6px;
  --radius-lg:   12px;
  --radius-pill: 100px;
  /* firma editoriale TEA: angolo bottom-left arrotondato */
  --radius-signature: 0 0 0 clamp(60px, 9vw, 123px);

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  --header-h:          70px;
  --header-h-expanded: 230px;
  --container-w: 1400px;
  --section-py:  clamp(80px, 10vw, 140px);

  --amber:    #FFD000;
  --amber-lt: #FFE340;
  --shadow-amber: 0 8px 32px rgba(255,208,0,0.28);
  --shadow-blue:  0 8px 32px rgba(31,33,174,0.20);
  --shadow-lg:    0 20px 60px rgba(0,0,0,0.18);
}

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

html {
  overflow-x: hidden;
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

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

img, svg { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; }
abbr { text-decoration: none; }

/* ─── TYPOGRAPHY ─────────────────────────────────── */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  line-height: 1.05;
  letter-spacing: -0.01em;
  font-weight: 500;
}

/* ─── PLACEHOLDER IMMAGINI ───────────────────────── */
.img-placeholder {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: inherit;
  background: linear-gradient(135deg, #0C0D32 0%, #1A1B5C 60%, #1F21AE 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.img-placeholder::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(31,33,174,0.10) 1px, transparent 1px),
    linear-gradient(90deg, rgba(31,33,174,0.10) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}
.img-placeholder::after {
  content: attr(data-label);
  position: relative;
  z-index: 1;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: rgba(255,208,0,0.45);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-align: center;
  padding: 0 20px;
  line-height: 1.8;
}

/* ─── CONTAINER ──────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--container-w);
  margin-inline: auto;
  padding-inline: clamp(20px, 5vw, 60px);
}

/* ─── SECTION BASE ───────────────────────────────── */
.section {
  position: relative;
  padding-block: var(--section-py);
}

/* ─── SECTION HEADER ─────────────────────────────── */
.section-head {
  max-width: 640px;
  margin-bottom: clamp(48px, 6vw, 80px);
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-heading);
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  font-weight: 500;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--brand-blue);
  margin-bottom: 20px;
}
.section-label::before {
  content: '';
  display: block;
  width: 8px;
  height: 8px;
  background: currentColor;
  border-radius: 50%;
  flex-shrink: 0;
}
.section-label--light { color: var(--brand-yellow); }

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 500;
  color: var(--text);
  letter-spacing: -0.01em;
  line-height: 1.04;
  margin-bottom: 18px;
  text-transform: uppercase;
}
.section-title--light { color: var(--white); }

.section-desc {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text-muted);
  font-weight: 400;
  line-height: 1.72;
}

/* ─── BUTTONS ────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 30px;
  font-family: var(--font-body);
  font-size: 0.80rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border: 2px solid transparent;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.22s var(--ease-out);
  position: relative;
}

.btn--primary {
  background: var(--brand-blue);
  color: var(--white);
  border-color: var(--brand-blue);
}
.btn--primary:hover {
  background: transparent;
  color: var(--brand-blue);
  transform: translateY(-2px);
}

.btn--amber {
  background: var(--brand-yellow);
  color: var(--navy);
  border-color: var(--brand-yellow);
  font-weight: 500;
}
.btn--amber:hover {
  background: transparent;
  color: var(--white);
  border-color: var(--brand-yellow);
  transform: translateY(-2px);
  box-shadow: var(--shadow-amber);
}
.btn--amber:active { transform: translateY(0); }

.btn--ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.28);
}
.btn--ghost:hover {
  border-color: rgba(255,255,255,0.65);
  background: rgba(255,255,255,0.06);
}

.btn--full { width: 100%; justify-content: center; }
.btn--outline-dark {
  background: transparent;
  color: var(--text);
  border-color: var(--text);
}
.btn--outline-dark:hover {
  background: var(--text);
  color: var(--white);
}

/* ─── REVEAL ANIMATIONS ──────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.70s var(--ease-out), transform 0.70s var(--ease-out);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

.reveal--d1 { transition-delay: 0.10s; }
.reveal--d2 { transition-delay: 0.20s; }
.reveal--d3 { transition-delay: 0.30s; }

/* ═══════════════════════════════════════════════════
   HEADER / NAV
   ═══════════════════════════════════════════════════ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-h-expanded);
  transition: background 0.40s, box-shadow 0.35s, border-color 0.35s,
              height 0.45s cubic-bezier(0.4, 0, 0.2, 1);
  border-bottom: 1px solid transparent;
  background: transparent;
}

.header.scrolled {
  height: var(--header-h);
  background: rgba(12,13,50,0.96);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: rgba(255,255,255,0.07);
  box-shadow: 0 1px 0 rgba(255,255,255,0.04);
}

/* Quando il menu mobile è aperto: sfondo solido senza backdrop-filter.
   Con backdrop-filter attivo i browser trattano l'header come containing block
   per i figli position:fixed, confinando il pannello al solo strip dell'header. */
.header.nav-open {
  background: var(--navy);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.nav {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.nav__logo img {
  height: 210px;
  width: auto;
  display: block;
  transition: height 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

.header.scrolled .nav__logo img {
  height: 48px;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 36px;
  position: absolute;
  top: 20px;
  right: 0;
}

.nav__link {
  font-family: var(--font-body);
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.70);
  position: relative;
  transition: color 0.2s;
}
.nav__link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--brand-yellow);
  transition: width 0.28s var(--ease-out);
}
.nav__link:hover { color: var(--white); }
.nav__link:hover::after,
.nav__link--active::after { width: 100%; }
.nav__link--active { color: var(--white); }

.nav__link--cta {
  background: var(--brand-yellow);
  color: var(--navy) !important;
  font-weight: 500;
  padding: 9px 20px;
  border-radius: 5px;
  letter-spacing: 0.14em;
  border: 2px solid var(--brand-yellow);
}
.nav__link--cta::after { display: none; }
.nav__link--cta:hover {
  background: transparent;
  color: var(--white) !important;
  border-color: var(--brand-yellow);
}

/* Mobile toggle */
.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 28px;
  background: none;
  border: none;
  padding: 4px;
}
.nav__toggle span {
  display: block;
  width: 100%;
  height: 1.5px;
  background: var(--white);
  border-radius: 1px;
  transition: all 0.3s ease;
}
.nav__toggle.is-open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav__toggle.is-open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav__toggle.is-open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ═══════════════════════════════════════════════════
   HERO — editoriale con foto placeholder
   ═══════════════════════════════════════════════════ */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  background: var(--navy);
  overflow: hidden;
  padding-top: var(--header-h);
  border-radius: var(--radius-signature);
}

/* Media: video a pieno schermo */
.hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.55;
}

/* Overlay doppio gradiente (stile TEA) */
.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(303deg, rgba(255,208,0,0.25) 0%, rgba(12,13,50,0) 55%),
    linear-gradient(180deg, rgba(12,13,50,0.15) 0%, rgba(12,13,50,0.88) 100%);
  pointer-events: none;
}

.hero__inner {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: flex-end;
  width: 100%;
  padding-block: clamp(70px, 10vw, 120px);
}

.hero__content { max-width: 740px; }

/* Dot label */
.hero__label {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.50);
  margin-bottom: 28px;
}
.hero__dot {
  display: block;
  width: 8px;
  height: 8px;
  background: var(--brand-yellow);
  border-radius: 50%;
  flex-shrink: 0;
  animation: dotPulse 2s ease-in-out infinite;
}
@keyframes dotPulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(255,208,0,0.4); }
  50% { opacity: 0.8; box-shadow: 0 0 0 6px rgba(255,208,0,0); }
}

.hero__title {
  font-family: var(--font-heading);
  font-size: clamp(3.8rem, 8vw, 7.5rem);
  font-weight: 500;
  line-height: 0.96;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 36px;
}

/* Icon-box descrittivo (stile TEA icon_box_hero) */
.hero__iconbox {
  display: flex;
  align-items: center;
  gap: 0;
  max-width: 560px;
  margin-bottom: 40px;
}
.hero__iconbox-icon {
  flex-shrink: 0;
  width: 60px;
  height: 60px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,208,0,0.20);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-yellow);
  margin-right: 0;
}
.hero__iconbox-icon svg { width: 22px; height: 22px; }
/* Separatore verticale stile TEA */
.hero__iconbox-sep {
  display: block;
  width: 3px;
  height: 60px;
  background: var(--brand-yellow);
  border-radius: 2px;
  flex-shrink: 0;
  margin: 0 22px;
}
.hero__iconbox-text {
  font-family: var(--font-body);
  font-size: 0.96rem;
  font-weight: 400;
  color: rgba(255,255,255,0.60);
  line-height: 1.65;
}

.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

/* ═══════════════════════════════════════════════════
   TRUST BAR — white, certification tags
   ═══════════════════════════════════════════════════ */
.trust-bar {
  background: var(--white);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding-block: 20px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.trust-bar__inner {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.5vw, 32px);
  white-space: nowrap;
}
.trust-bar__label {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
  flex-shrink: 0;
  padding-right: clamp(12px, 2vw, 24px);
  border-right: 1px solid var(--border-strong);
}
.trust-bar__list {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: nowrap;
}
.trust-bar__list li {
  font-family: var(--font-body);
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--text-2);
  background: var(--light-grey);
  border: 1px solid rgba(0,0,0,0.10);
  border-radius: var(--radius-sm);
  padding: 0;
  transition: background 0.18s, border-color 0.18s, color 0.18s;
}
.trust-bar__list li:has(.trust-bar__link):hover {
  background: var(--pale-blue);
  border-color: var(--brand-blue);
  color: var(--brand-blue);
}
.trust-bar__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 16px;
  color: inherit;
  text-decoration: none;
  white-space: nowrap;
}
.trust-bar__link--policy {
  color: var(--text-muted);
}
.trust-bar__list li:has(.trust-bar__link--policy):hover {
  background: var(--off-white);
  border-color: var(--border-strong);
  color: var(--text-2);
}

/* ── PAGE HERO BACK BUTTON (certificazioni, politica) ── */
.page-hero__back {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.50);
  text-decoration: none;
  margin-bottom: 28px;
  transition: color 0.18s;
}
.page-hero__back:hover {
  color: var(--brand-yellow);
}
.page-hero__back svg {
  transition: transform 0.18s var(--ease-out);
}
.page-hero__back:hover svg {
  transform: translateX(-3px);
}

/* ═══════════════════════════════════════════════════
   APPROCCIO — light (pale-blue), split editoriale
   ═══════════════════════════════════════════════════ */
.approccio {
  background: var(--pale-blue);
  overflow: hidden;
}

.approccio__layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(48px, 7vw, 100px);
  align-items: start;
  margin-bottom: clamp(60px, 8vw, 100px);
}

.approccio__text {
  font-size: 1.02rem;
  color: var(--text-muted);
  line-height: 1.80;
  margin-bottom: 0;
  max-width: 460px;
}

.approccio__media {
  position: relative;
  min-height: 420px;
  margin-top: clamp(-40px, -5vw, -80px);
}
.approccio__media .img-placeholder,
.approccio__media img {
  min-height: 420px;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 0 0 0 clamp(30px, 5vw, 60px);
}

/* Flow steps (schema processo) */
.flow-steps {
  display: flex;
  align-items: flex-start;
  gap: 0;
  padding-top: clamp(40px, 5vw, 60px);
  border-top: 1px solid var(--border-strong);
  flex-wrap: wrap;
}

.flow-step {
  flex: 1;
  min-width: 120px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 10px;
}

.flow-step__dot {
  width: 10px;
  height: 10px;
  background: var(--brand-blue);
  border-radius: 50%;
  margin-bottom: 16px;
  flex-shrink: 0;
}

.flow-step__title {
  font-family: var(--font-heading);
  font-size: clamp(1.4rem, 2.2vw, 1.9rem);
  font-weight: 500;
  text-transform: uppercase;
  color: var(--text);
  letter-spacing: 0.02em;
  margin-bottom: 8px;
  display: block;
}

.flow-step__text {
  font-family: var(--font-body);
  font-size: clamp(0.88rem, 1.2vw, 1rem);
  color: var(--text-muted);
  line-height: 1.5;
  display: block;
}

.flow-arrow {
  flex-shrink: 0;
  font-size: 1.4rem;
  color: var(--brand-blue);
  margin-top: 0;
  padding-top: 2px;
  align-self: flex-start;
  padding-inline: 4px;
}

/* ═══════════════════════════════════════════════════
   SERVIZI TILES — 2×2 foto piena stile TEA
   ═══════════════════════════════════════════════════ */
.servizi-tiles {
  background: var(--navy);
}

.servizi-tiles__header {
  padding-block: clamp(40px, 5vw, 60px) clamp(20px, 3vw, 32px);
}

.servizi-tiles__title {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-heading);
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.10em;
  color: var(--white);
}

.servizi-tiles__dot {
  display: block;
  width: 10px;
  height: 10px;
  background: var(--brand-yellow);
  border-radius: 50%;
  flex-shrink: 0;
}

.servizi-tiles__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  padding-inline: clamp(20px, 5vw, 60px);
  padding-bottom: clamp(40px, 5vw, 60px);
  max-width: var(--container-w);
  margin-inline: auto;
}

.servizio-tile {
  position: relative;
  min-height: 440px;
  overflow: hidden;
  cursor: pointer;
  display: block;
}

.servizio-tile__media {
  position: absolute;
  inset: 0;
  transition: transform 0.70s var(--ease-out);
}
.servizio-tile__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.servizio-tile:hover .servizio-tile__media {
  transform: scale(1.08);
}

.servizio-tile__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(12,13,50,0.20) 0%, rgba(12,13,50,0.75) 100%);
  transition: background 0.4s;
}
.servizio-tile:hover .servizio-tile__overlay {
  background: linear-gradient(180deg, rgba(12,13,50,0.35) 0%, rgba(12,13,50,0.85) 100%);
}

.servizio-tile__content {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 32px;
  text-align: center;
}

.servizio-tile__dot {
  display: block;
  width: 12px;
  height: 12px;
  background: var(--brand-yellow);
  border-radius: 50%;
}

.servizio-tile__title {
  font-family: var(--font-heading);
  font-size: clamp(1.4rem, 2.8vw, 2rem);
  font-weight: 500;
  text-transform: uppercase;
  color: var(--white);
  letter-spacing: 0.02em;
  line-height: 1.1;
}

.servizio-tile__arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 8px;
  color: var(--brand-yellow);
  transition: transform 0.28s var(--ease-out);
}
.servizio-tile:hover .servizio-tile__arrow {
  transform: translateX(6px);
}
.servizio-tile__arrow svg { width: 36px; height: 20px; }

/* Badge cert nella tile */
.servizio-tile__badge {
  position: absolute;
  bottom: 20px;
  right: 20px;
  z-index: 3;
  font-family: var(--font-body);
  font-size: 0.58rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--navy);
  background: var(--brand-yellow);
  padding: 4px 10px;
  border-radius: 3px;
}

/* ═══════════════════════════════════════════════════
   CHI SIAMO — dark navy, split editoriale
   ═══════════════════════════════════════════════════ */
.chi-siamo {
  background: var(--navy);
  position: relative;
  overflow: hidden;
}

.chi-siamo__layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(48px, 7vw, 100px);
  align-items: center;
}

.chi-siamo__content .section-title { max-width: 480px; }

.chi-siamo__text {
  font-size: 0.98rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.80;
  margin-bottom: 16px;
}
.chi-siamo__text strong { color: var(--white); font-weight: 600; }

.chi-siamo__sede {
  margin-block: 26px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border-dark);
  max-height: 220px;
}
.chi-siamo__sede img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
  filter: brightness(0.80) saturate(0.80);
  transition: filter 0.4s, transform 0.4s var(--ease-out);
}
.chi-siamo__sede:hover img {
  filter: brightness(0.95) saturate(1);
  transform: scale(1.03);
}

/* Cert badges */
.cert-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-block: 24px 30px;
}
.cert-badge {
  font-family: var(--font-body);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--brand-yellow);
  border: 1px solid rgba(255,208,0,0.30);
  padding: 5px 12px;
  border-radius: 3px;
  background: rgba(255,208,0,0.05);
}

/* Stats grid */
.chi-siamo__stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(12px, 2vw, 18px);
}

.stat-card {
  padding: clamp(28px, 3.5vw, 38px);
  border-radius: var(--radius);
  border: 1px solid var(--border-dark);
  background: rgba(255,255,255,0.03);
  position: relative;
  overflow: hidden;
  transition: background 0.28s, border-color 0.28s;
}
.stat-card:hover {
  background: rgba(255,208,0,0.05);
  border-color: rgba(255,208,0,0.25);
}
.stat-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--brand-yellow), transparent);
  opacity: 0;
  transition: opacity 0.28s;
}
.stat-card:hover::after { opacity: 1; }

.stat-card__unit {
  display: block;
  font-family: var(--font-body);
  font-size: 0.58rem;
  font-weight: 500;
  color: rgba(255,208,0,0.40);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.stat-card__num {
  font-family: var(--font-heading);
  font-size: clamp(2.8rem, 4.5vw, 3.6rem);
  font-weight: 500;
  color: var(--brand-yellow);
  line-height: 1;
  letter-spacing: -0.02em;
  display: inline;
}
.stat-card__sym {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 500;
  color: var(--brand-yellow);
  vertical-align: super;
  line-height: 1;
  display: inline;
}
.stat-card__lbl {
  display: block;
  font-family: var(--font-body);
  font-size: 0.65rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  margin-top: 10px;
}

/* Certification logos */
.cert-logos {
  grid-column: span 2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  padding: 16px 18px;
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-sm);
  flex-wrap: wrap;
}
.cert-logos img {
  height: 42px;
  width: auto;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: 0.50;
  transition: opacity 0.28s;
}
.cert-logos:hover img { opacity: 0.82; }

/* ═══════════════════════════════════════════════════
   PROMESSE — bianco, 4 colonne (sostituisce processo)
   ═══════════════════════════════════════════════════ */
.promesse {
  background: var(--white);
}

.promesse-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 2.5vw, 32px);
}

.promessa-card {
  padding: clamp(28px, 3.5vw, 44px) clamp(20px, 2.5vw, 28px);
  border: 1px dotted rgba(31,33,174,0.22);
  border-radius: clamp(28px, 4vw, 44px);
  position: relative;
  transition: border-color 0.28s;
}
.promessa-card:hover {
  border-color: rgba(31,33,174,0.45);
}

.promessa-card__dot {
  display: block;
  width: 10px;
  height: 10px;
  background: var(--brand-yellow);
  border-radius: 50%;
  margin-bottom: 20px;
}

.promessa-card__title {
  font-family: var(--font-heading);
  font-size: 1.10rem;
  font-weight: 500;
  text-transform: uppercase;
  color: var(--text);
  letter-spacing: 0.01em;
  margin-bottom: 12px;
  line-height: 1.2;
}

.promessa-card__text {
  font-size: 0.90rem;
  color: var(--text-muted);
  line-height: 1.72;
}

/* ═══════════════════════════════════════════════════
   PROGETTI — sfondo chiaro, griglia immagini
   ═══════════════════════════════════════════════════ */
.progetti {
  background: var(--off-white);
}

.progetti__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 2vw, 22px);
}
.progetti__cta {
  margin-top: clamp(36px, 5vw, 56px);
  display: flex;
  justify-content: center;
}

.pcard {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--border);
  transition: transform 0.30s var(--ease-out), box-shadow 0.30s;
  position: relative;
}
.pcard:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 40px rgba(0,0,0,0.09);
}

.pcard__img {
  position: relative;
  min-height: 220px;
  overflow: hidden;
}
.pcard__img .img-placeholder {
  min-height: 220px;
  transition: transform 0.60s var(--ease-out);
}
.pcard:hover .pcard__img .img-placeholder {
  transform: scale(1.10);
}
/* Linea gialla sotto l'immagine (stile TEA grid_image::after) */
.pcard__img::after {
  content: '';
  display: block;
  margin-left: 5%;
  width: 95%;
  height: 3px;
  background: var(--brand-yellow);
  position: relative;
  z-index: 2;
}

.pcard__tag {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 3;
  font-family: var(--font-body);
  font-size: 0.60rem;
  font-weight: 500;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--navy);
  background: var(--brand-yellow);
  padding: 4px 9px;
  border-radius: 3px;
}

.pcard__body { padding: 22px 22px 18px; }

.pcard__title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 500;
  text-transform: uppercase;
  color: var(--text);
  letter-spacing: -0.01em;
  margin-bottom: 8px;
}
.pcard__text {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.70;
  margin-bottom: 16px;
}
.pcard__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}
.pcard__meta {
  font-family: var(--font-body);
  font-size: 0.70rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.pcard__year {
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--brand-blue);
  letter-spacing: 0.04em;
  line-height: 1;
}

/* ═══════════════════════════════════════════════════
   FAQ — navy dark
   ═══════════════════════════════════════════════════ */
.faq {
  background: var(--navy);
  position: relative;
}

.faq-list {
  max-width: 780px;
  margin-inline: auto;
}
.faq-item {
  border-bottom: 1px dotted rgba(255,208,0,0.18);
}
.faq-item:first-child {
  border-top: 1px dotted rgba(255,208,0,0.18);
}
.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: none;
  border: none;
  padding: 22px 0;
  font-family: var(--font-body);
  font-size: 0.96rem;
  font-weight: 400;
  color: rgba(255,255,255,0.70);
  text-align: left;
  cursor: pointer;
  transition: color 0.2s;
}
.faq-q:hover { color: var(--white); }
.faq-icon {
  flex-shrink: 0;
  font-size: 1.4rem;
  font-weight: 300;
  color: rgba(255,208,0,0.50);
  line-height: 1;
  transition: transform 0.32s var(--ease-out), color 0.2s;
}
.faq-item.is-open .faq-icon {
  transform: rotate(45deg);
  color: var(--brand-yellow);
}
.faq-a {
  height: 0;
  overflow: hidden;
  transition: height 0.38s var(--ease-out);
}
.faq-a p {
  font-family: var(--font-body);
  font-size: 0.93rem;
  font-weight: 400;
  color: rgba(255,255,255,0.50);
  line-height: 1.80;
  padding-bottom: 22px;
}

/* ═══════════════════════════════════════════════════
   CONTATTI — navy (dark)
   ═══════════════════════════════════════════════════ */
.contatti {
  background: var(--navy);
}

.contatti__layout {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(48px, 7vw, 90px);
  align-items: start;
}

.contatti__sub {
  font-size: 0.98rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.78;
  margin-bottom: 30px;
  max-width: 400px;
}

/* Contact details */
.contact-details {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 28px;
}
.contact-details__item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.90rem;
  color: rgba(255,255,255,0.65);
}
.contact-details__item a { color: rgba(255,255,255,0.65); }
.contact-details__item a:hover { color: var(--brand-yellow); }
.contact-details__icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--brand-yellow);
  margin-top: 1px;
}
.contact-details__icon svg { width: 20px; height: 20px; }

/* Map */
.contatti__map {
  width: 100%;
  margin-top: 8px;
}
.contatti__map iframe {
  width: 100%;
  height: 210px;
  border: none;
  border-radius: var(--radius-sm);
  display: block;
  filter: saturate(0.85) brightness(0.92);
}
.contatti__map-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  padding: 11px 20px;
  background: var(--brand-yellow);
  color: var(--navy);
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: var(--radius-sm);
  transition: background 0.18s, transform 0.18s;
}
.contatti__map-link:hover {
  background: #e8be00;
  transform: translateY(-1px);
}

/* Form */
.contatti__form {
  background: var(--off-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: clamp(28px, 4vw, 44px);
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.form-field label {
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.form-field abbr { color: var(--brand-blue); }

.form-field input,
.form-field select,
.form-field textarea {
  background: var(--white);
  border: none;
  border-bottom: 1.5px solid var(--border-strong);
  border-radius: 0;
  padding: 10px 4px;
  font-family: var(--font-body);
  font-size: 0.92rem;
  color: var(--text);
  transition: border-color 0.22s;
  width: 100%;
  appearance: none;
}
.form-field textarea { resize: vertical; min-height: 120px; }
.form-field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236B6C7B' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 4px center;
  padding-right: 24px;
  cursor: pointer;
}
.form-field select option { background: var(--white); color: var(--text); }
.form-field input::placeholder,
.form-field textarea::placeholder { color: var(--text-muted); opacity: 0.45; }
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-bottom-color: var(--brand-blue);
}

.form__note {
  font-size: 0.74rem;
  color: var(--text-muted);
  line-height: 1.6;
}
.form__note a { color: var(--brand-blue); text-decoration: underline; text-underline-offset: 2px; }

.form__success {
  font-family: var(--font-body);
  font-size: 0.82rem;
  color: #1A7A3A;
  padding: 11px 14px;
  background: rgba(26,122,58,0.07);
  border: 1px solid rgba(26,122,58,0.20);
  border-radius: var(--radius-sm);
  display: none;
  letter-spacing: 0.04em;
}
.form__success.is-visible { display: block; }

/* ═══════════════════════════════════════════════════
   FOOTER CTA BAND — gradiente prima del footer
   ═══════════════════════════════════════════════════ */
.footer-cta-band {
  background: var(--navy);
}

.footer-cta-band__inner {
  background: linear-gradient(101deg, #0C0D32 0%, #1F21AE 100%);
  border-radius: var(--radius-signature);
  padding: clamp(48px, 6vw, 80px) clamp(32px, 5vw, 72px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}

.footer-cta-band__title {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 500;
  color: var(--white);
  text-transform: uppercase;
  line-height: 1.1;
}

/* ═══════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════ */
.footer {
  background: var(--navy);
}

.footer__wrap {
  background: var(--navy);
  border-radius: 0 0 0 clamp(80px, 11vw, 152px);
  overflow: hidden;
}

.footer__inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: clamp(28px, 4vw, 52px);
  padding-top: clamp(52px, 7vw, 80px);
  padding-bottom: clamp(44px, 6vw, 64px);
}

.footer__logo {
  height: 240px;
  width: auto;
  margin-bottom: 14px;
}

.footer__tagline {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 500;
  text-transform: uppercase;
  color: rgba(255,255,255,0.28);
  line-height: 1.65;
  letter-spacing: 0.02em;
  margin-bottom: 22px;
}

.footer__social {
  display: flex;
  gap: 8px;
}
.footer__social-link {
  width: 32px;
  height: 32px;
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.35);
  transition: all 0.22s;
}
.footer__social-link:hover {
  border-color: var(--brand-yellow);
  color: var(--brand-yellow);
  background: rgba(255,208,0,0.07);
  transform: translateY(-2px);
}

.footer__nav-title {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 18px;
}
.footer__nav ul {
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.footer__nav a {
  font-size: 0.95rem;
  font-weight: 500;
  color: rgba(255,255,255,0.72);
  transition: color 0.2s, padding-left 0.2s;
}
.footer__nav a:hover { color: var(--white); padding-left: 4px; }

.footer__contact p,
.footer__contact a {
  font-size: 0.95rem;
  font-weight: 500;
  color: rgba(255,255,255,0.72);
  line-height: 1.65;
  display: block;
  margin-bottom: 7px;
}
.footer__contact a:hover { color: var(--white); }
.footer__hours { margin-top: 10px; }

.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.05);
  padding-block: 16px;
}
.footer__bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.footer__bottom p,
.footer__bottom a {
  font-family: var(--font-body);
  font-size: 0.68rem;
  color: rgba(107,108,123,0.65);
  letter-spacing: 0.04em;
}
.footer__bottom a:hover { color: rgba(255,255,255,0.60); }

/* ═══════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════ */

/* ─── Tablet 1150 ─────────────────────────────────── */
@media (max-width: 1150px) {
  .promesse-grid { grid-template-columns: repeat(2, 1fr); }
  .progetti__grid { grid-template-columns: repeat(2, 1fr); }
  .approccio__layout { grid-template-columns: 1fr; gap: 40px; }
  .approccio__media { margin-top: 0; }
  .footer__inner { grid-template-columns: 1fr 1fr; row-gap: 36px; }
  .footer__brand { grid-column: span 2; }
}

/* ─── Tablet 900 ──────────────────────────────────── */
@media (max-width: 900px) {
  .servizi-tiles__grid { grid-template-columns: 1fr; }
  .chi-siamo__layout { grid-template-columns: 1fr; gap: 52px; }
  .chi-siamo__stats { grid-template-columns: repeat(4, 1fr); }
  .contatti__layout { grid-template-columns: 1fr; gap: 52px; }
  .footer-cta-band__inner { flex-direction: column; align-items: flex-start; }
}

/* ─── Mobile 768 ──────────────────────────────────── */
@media (max-width: 768px) {
  :root { --section-py: 72px; }

  /* Nav mobile */
  .nav__toggle { display: flex; position: relative; z-index: 101; }
  .nav__links {
    position: fixed;
    inset: 0 0 0 28%;
    background: var(--navy);
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 20px;
    padding: 0 32px 48px;
    transform: translateX(100%);
    transition: transform 0.38s var(--ease-out);
    border-left: 1px solid rgba(255,255,255,0.06);
    z-index: 99;
  }
  .nav__links.is-open { transform: translateX(0); }
  .nav__link { font-size: 0.88rem; padding: 12px 0; color: rgba(255,255,255,0.75) !important; }
  .nav__link--cta { padding: 10px 18px; }

  /* Nav compatto su mobile: niente header espanso */
  :root { --header-h-expanded: 104px; }
  .nav__logo img { height: 90px; }
  .header.scrolled .nav__logo img { height: 46px; }

  /* Hero */
  .hero__inner { padding-block: 56px 72px; }

  /* Servizi */
  .servizio-tile { min-height: 320px; }

  /* Stats */
  .chi-siamo__stats { grid-template-columns: 1fr 1fr; }

  /* Projects */
  .progetti__grid { grid-template-columns: 1fr; }

  /* Form */
  .form-row { grid-template-columns: 1fr; }

  /* Footer */
  .footer__inner { grid-template-columns: 1fr; }
  .footer__brand { grid-column: auto; }
  .footer__bottom-inner { flex-direction: column; text-align: center; gap: 6px; }

  /* Promesse */
  .promesse-grid { grid-template-columns: 1fr 1fr; gap: 12px; }

  /* FAQ */
  .faq-q { font-size: 0.88rem; }

  /* Flow */
  .flow-steps {
    flex-direction: column;
    align-items: center;
    gap: 16px;
  }
  .flow-step {
    width: 100%;
    max-width: 340px;
    flex-direction: row;
    align-items: center;
    text-align: left;
    gap: 16px;
    padding: 16px 20px;
    background: rgba(31,33,174,0.06);
    border-radius: var(--radius);
  }
  .flow-step__dot { margin-bottom: 0; flex-shrink: 0; }
  .flow-step__title { margin-bottom: 2px; font-size: 1.1rem; }
  .flow-step__text { font-size: 0.82rem; }
  .flow-arrow { transform: rotate(90deg); align-self: center; font-size: 1.1rem; }

  /* Pagine servizio: colonne 01/02 in colonna su mobile */
  .service-intro__layout { grid-template-columns: 1fr; }
}

/* ─── Mobile 480 ──────────────────────────────────── */
@media (max-width: 480px) {
  .hero__ctas { flex-direction: column; }
  .hero__ctas .btn { width: 100%; justify-content: center; }
  .chi-siamo__stats { grid-template-columns: 1fr; }
  .promesse-grid { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════════════════
   PAGINE SERVIZI (invariate per ora)
   ═══════════════════════════════════════════════════ */
.service-hero { min-height: 72vh; }

.service-hero__illustration {
  position: absolute;
  right: 6%;
  bottom: 0;
  width: 36%;
  max-width: 500px;
  height: 90%;
  z-index: 1;
  pointer-events: none;
  color: white;
  opacity: 0.14;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
}
.service-hero__illustration svg { width: 100%; height: 100%; }

.service-breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 0.62rem;
  color: rgba(255,255,255,0.35);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 22px;
}
.service-breadcrumb a { color: rgba(255,255,255,0.35); transition: color 0.2s; }
.service-breadcrumb a:hover { color: rgba(255,255,255,0.70); }
.service-breadcrumb__sep { opacity: 0.30; margin-inline: 2px; }

.hero__back {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255,255,255,0.60);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  margin-bottom: 28px;
  transition: color 0.2s, gap 0.2s;
}
.hero__back:hover { color: var(--amber); gap: 16px; }
.hero__back svg { flex-shrink: 0; transition: transform 0.2s; }
.hero__back:hover svg { transform: translateX(-5px); }

.service-intro__layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: start;
}
.service-intro__text {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.78;
  margin-bottom: 14px;
}

.info-box {
  background: var(--pale-blue);
  border: 1px solid rgba(31,33,174,0.12);
  border-left: 3px solid var(--brand-blue);
  border-radius: var(--radius);
  padding: 18px 22px;
  margin-top: 28px;
}
.info-box__title {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 500;
  text-transform: uppercase;
  color: var(--brand-blue);
  margin-bottom: 8px;
}
.info-box__text {
  font-size: 0.90rem;
  color: var(--text-2);
  line-height: 1.70;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(16px, 2.5vw, 28px);
  margin-top: 28px;
}
.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
}
.feature-item__icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  background: rgba(31,33,174,0.06);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-blue);
}
.feature-item__icon svg { width: 18px; height: 18px; }
.feature-item__title {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 500;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 4px;
}
.feature-item__text {
  font-size: 0.84rem;
  color: var(--text-muted);
  line-height: 1.65;
}

.cta-section {
  background: var(--navy);
  border-radius: var(--radius-signature);
  padding: clamp(48px, 7vw, 80px) clamp(32px, 5vw, 72px);
  text-align: center;
}
.cta-section .section-title { margin-bottom: 12px; }
.cta-section .section-desc { color: rgba(255,255,255,0.50); max-width: 480px; margin-inline: auto; margin-bottom: 32px; }

/* ═══════════════════════════════════════════════════
   PAGINE SERVIZI — hero elementi
   ═══════════════════════════════════════════════════ */

/* SVG circuito di sfondo */
.hero__circuit {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* Glow decorativo */
.hero__glow {
  position: absolute;
  bottom: -15%;
  right: 8%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(31,33,174,0.30) 0%, transparent 70%);
  z-index: 0;
  pointer-events: none;
}

/* Dot piccolo nel label hero delle pagine servizi */
.hero__label-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  background: var(--brand-yellow);
  border-radius: 50%;
  flex-shrink: 0;
}

/* Sottotitolo hero */
.hero__sub {
  font-family: var(--font-body);
  font-size: clamp(0.95rem, 1.5vw, 1.08rem);
  color: rgba(255,255,255,0.65);
  line-height: 1.72;
  max-width: 520px;
  margin-bottom: 36px;
}

/* Watermark decorativo — posizionato in assoluto, non nel flusso */
.hero__watermark {
  position: absolute;
  bottom: -0.12em;
  right: -0.04em;
  font-family: var(--font-heading);
  font-size: clamp(7rem, 15vw, 17rem);
  font-weight: 800;
  text-transform: uppercase;
  color: rgba(255,255,255,0.04);
  line-height: 1;
  letter-spacing: -0.04em;
  pointer-events: none;
  user-select: none;
  z-index: 1;
  white-space: nowrap;
  margin: 0;
}

/* Mark colorato nel titolo h1 */
.hero__title mark {
  background: none;
  color: var(--brand-yellow);
}

/* ─── CHECKLIST ──────────────────────────────────── */
.checklist {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.checklist__item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.93rem;
  color: var(--text-2);
  line-height: 1.55;
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  background: var(--off-white);
  border: 1px solid var(--border);
}
.checklist__icon {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  color: var(--brand-blue);
  margin-top: 1px;
}

/* ─── QUALIFICHE ─────────────────────────────────── */
.quals-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(14px, 2vw, 22px);
  margin-top: 36px;
}
.qual-card {
  padding: 24px 26px;
  border: 1px solid var(--border-dark);
  border-radius: var(--radius);
  background: rgba(255,255,255,0.03);
  transition: background 0.28s, border-color 0.28s;
}
.qual-card:hover {
  background: rgba(255,208,0,0.05);
  border-color: rgba(255,208,0,0.22);
}
.qual-card__abbr {
  display: block;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 500;
  text-transform: uppercase;
  color: var(--brand-yellow);
  letter-spacing: 0.02em;
  margin-bottom: 10px;
}
.qual-card__text {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.62);
  line-height: 1.72;
}

/* ─── BIGCARD — altri servizi ────────────────────── */
.bigcard-grid {
  display: grid;
  gap: clamp(14px, 2.5vw, 24px);
}
.bigcard-grid--3 { grid-template-columns: repeat(3, 1fr); }

.bigcard {
  position: relative;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(28px, 3.5vw, 40px) clamp(22px, 3vw, 32px);
  overflow: hidden;
  transition: transform 0.28s var(--ease-out), box-shadow 0.28s;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.bigcard:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-blue);
}

.bigcard__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.05;
}
.bigcard__bg--sicur  { background: linear-gradient(135deg, #1F21AE 0%, #0C0D32 100%); }
.bigcard__bg--anti   { background: linear-gradient(135deg, #AE1F1F 0%, #320C0C 100%); }
.bigcard__bg--solar  { background: linear-gradient(135deg, #AE991F 0%, #32280C 100%); }
.bigcard__bg--elettr { background: linear-gradient(135deg, #1F21AE 0%, #0C0D32 100%); }

.bigcard__badge {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-self: flex-start;
  font-family: var(--font-body);
  font-size: 0.58rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--navy);
  background: var(--brand-yellow);
  padding: 4px 10px;
  border-radius: 3px;
}

.bigcard__num {
  position: absolute;
  top: 14px;
  right: 18px;
  z-index: 1;
  font-family: var(--font-heading);
  font-size: 3.2rem;
  font-weight: 800;
  color: rgba(31,33,174,0.07);
  line-height: 1;
  letter-spacing: -0.04em;
  pointer-events: none;
}

/* Icone bigcard: dimensione fissa e contenuta */
.bigcard__icon {
  position: relative;
  z-index: 1;
  width: 52px;
  height: 52px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(31,33,174,0.07);
  border: 1px solid rgba(31,33,174,0.14);
  border-radius: var(--radius);
  color: var(--brand-blue);
}
.bigcard__icon svg {
  width: 26px;
  height: 26px;
}

.bigcard__title {
  position: relative;
  z-index: 1;
  font-family: var(--font-heading);
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  font-weight: 500;
  text-transform: uppercase;
  color: var(--text);
  letter-spacing: -0.01em;
  line-height: 1.1;
}

.bigcard__text {
  position: relative;
  z-index: 1;
  font-size: 0.90rem;
  color: var(--text-muted);
  line-height: 1.70;
  flex: 1;
}

.bigcard__link {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--brand-blue);
  margin-top: 4px;
  transition: gap 0.22s var(--ease-out), color 0.22s;
}
.bigcard__link:hover { gap: 14px; color: var(--navy); }

/* ─── FORM HEADER ────────────────────────────────── */
.form-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-strong);
  margin-bottom: 4px;
}
.form-header__code {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.form-header__id {
  font-family: var(--font-mono);
  font-size: 0.70rem;
  color: var(--brand-blue);
  letter-spacing: 0.06em;
}

/* ─── SEZIONE ALTRI SERVIZI ──────────────────────── */
.altri-servizi {
  background: var(--pale-blue);
}

/* ─── Animazioni circuit ─────────────────────────── */
.trace {
  fill: none;
  stroke: rgba(31,33,174,0.18);
  stroke-width: 1.5;
  stroke-linecap: round;
}
.circuit-node {
  fill: rgba(31,33,174,0.25);
}
.circuit-node--hot {
  fill: var(--brand-yellow);
  opacity: 0.55;
}
.circuit-comp {
  fill: none;
  stroke: rgba(255,208,0,0.40);
  stroke-width: 1.5;
  stroke-linecap: round;
}

/* ─── Responsive servizi ─────────────────────────── */
@media (max-width: 900px) {
  .bigcard-grid--3 { grid-template-columns: 1fr 1fr; }
  .quals-grid { grid-template-columns: 1fr; }
  .service-intro__layout { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .bigcard-grid--3 { grid-template-columns: 1fr; }
  .hero__watermark { display: none; }
}
