/* ============================================================
   FG2 Elettromeccanica snc — Main Stylesheet
   ============================================================ */

/* ── CSS Variables ────────────────────────────────────────── */
:root {
  --blue:         #1A2B4A;
  --blue-dark:    #0f1a2e;
  --blue-mid:     #243660;
  --orange:       #E8431A;
  --orange-light: #f05a33;
  --bg:           #F5F6F8;
  --surface:      #FFFFFF;
  --text:         #1C1C1E;
  --text2:        #3a3a3c;
  --text3:        #6b6b70;
  --border:       #dde0e8;
  --shadow-sm:    0 1px 4px rgba(0,0,0,.07);
  --shadow-md:    0 4px 20px rgba(0,0,0,.10);
  --shadow-lg:    0 12px 40px rgba(0,0,0,.14);
  --radius:       14px;
  --nav-h:        72px;
}

/* ── Reset & Base ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--blue); border-radius: 3px; }

/* ── Utility ──────────────────────────────────────────────── */
.container {
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: 24px;
}
.section { padding: 88px 0; }
.section-bg { background: var(--surface); }
.tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 12px;
}
.section-title {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  color: var(--blue);
  line-height: 1.18;
  margin-bottom: 16px;
}
.section-sub {
  font-size: 17px;
  color: var(--text3);
  max-width: 560px;
  line-height: 1.7;
}
.text-center { text-align: center; }
.text-center .section-sub { margin-inline: auto; }

/* ── Buttons ──────────────────────────────────────────────── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--orange);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  padding: 14px 30px;
  border-radius: 50px;
  border: 2px solid var(--orange);
  cursor: pointer;
  transition: background .2s, transform .15s, box-shadow .2s;
}
.btn-primary:hover {
  background: var(--orange-light);
  border-color: var(--orange-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(232,67,26,.35);
}
.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  padding: 14px 30px;
  border-radius: 50px;
  border: 2px solid rgba(255,255,255,.4);
  cursor: pointer;
  transition: border-color .2s, background .2s, transform .15s;
}
.btn-outline:hover {
  border-color: #fff;
  background: rgba(255,255,255,.08);
  transform: translateY(-2px);
}
.btn-dark {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--blue);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  padding: 14px 30px;
  border-radius: 50px;
  border: 2px solid var(--blue);
  cursor: pointer;
  transition: background .2s, transform .15s;
}
.btn-dark:hover { background: var(--blue-mid); transform: translateY(-2px); }

/* ── NAV ──────────────────────────────────────────────────── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--nav-h);
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: box-shadow .3s;
}
nav.scrolled { box-shadow: 0 4px 24px rgba(0,0,0,.10); }

.nav-inner {
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: 24px;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-logo {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}
.nav-logo-img {
  height: 44px;
  width: auto;
  display: block;
  object-fit: contain;
}
.footer-brand .nav-logo-img {
  height: 52px;
}
.nav-logo-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
  margin-left: 10px;
}
.nav-logo-name {
  font-size: 13px;
  font-weight: 800;
  color: var(--blue);
  letter-spacing: .02em;
  line-height: 1.2;
}
.nav-logo-sub {
  font-size: 11px;
  font-weight: 500;
  color: var(--text3);
  line-height: 1.2;
}
.footer-brand .nav-logo-name { color: #fff; font-size: 15px; }
.footer-brand .nav-logo-sub { color: rgba(255,255,255,.55); font-size: 12px; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}
.nav-links a {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--text2);
  padding: 8px 12px;
  border-radius: 8px;
  transition: color .2s, background .2s;
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--orange);
  background: rgba(232,67,26,.07);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  background: var(--orange);
  color: #fff !important;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: 10px 20px;
  border-radius: 50px;
  flex-shrink: 0;
  transition: background .2s, transform .15s, box-shadow .2s;
}
.nav-cta:hover {
  background: var(--orange-light);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(232,67,26,.35);
}

/* Hamburger */
.lang-toggle {
  display: flex;
  align-items: center;
  gap: 2px;
  position: absolute;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
}
.lang-btn {
  background: none;
  border: none;
  font-size: 11px;
  font-weight: 700;
  color: var(--text3);
  cursor: pointer;
  padding: 4px 7px;
  border-radius: 5px;
  letter-spacing: 0.06em;
  transition: color .2s, background .2s;
  font-family: inherit;
}
.lang-btn:hover { color: var(--orange); background: rgba(232,67,26,.10); }
.lang-btn.active { color: #fff; background: var(--orange); }
.lang-sep { color: var(--border); font-size: 12px; }

.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  border-radius: 8px;
  margin-left: auto;
}
.nav-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--blue);
  border-radius: 2px;
  transition: transform .3s, opacity .3s, width .3s;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; width: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile overlay */
.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15,26,46,.55);
  backdrop-filter: blur(4px);
  z-index: 998;
  opacity: 0;
  transition: opacity .3s;
}
.nav-overlay.open { display: block; opacity: 1; }

/* Mobile menu */
.nav-mobile {
  position: fixed;
  top: 0; right: -320px;
  width: 300px;
  height: 100%;
  background: var(--surface);
  z-index: 999;
  box-shadow: -8px 0 40px rgba(0,0,0,.15);
  transition: right .35s cubic-bezier(.4,0,.2,1);
  overflow-y: auto;
}
.nav-mobile.open { right: 0; }
.nav-mobile-inner {
  display: flex;
  flex-direction: column;
  padding: 96px 32px 40px;
  gap: 4px;
}
.nav-mobile-inner a {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  padding: 14px 16px;
  border-radius: 10px;
  transition: background .2s, color .2s;
}
.nav-mobile-inner a:hover { background: var(--bg); color: var(--orange); }
.nav-mobile-cta {
  margin-top: 20px !important;
  background: var(--orange) !important;
  color: #fff !important;
  text-align: center;
  border-radius: 50px !important;
}
.nav-mobile-cta:hover { background: var(--orange-light) !important; }
.nav-mobile-lang {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 14px 16px;
  margin-top: 8px;
  border-top: 1px solid var(--border);
}
.nav-mobile-lang .lang-btn {
  font-size: 13px;
  padding: 6px 14px;
}
.nav-mobile-lang .lang-sep {
  font-size: 13px;
}

/* ── HERO ─────────────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  padding-top: var(--nav-h);
  background: linear-gradient(135deg, #0f1a2e 0%, #1A2B4A 60%, #243660 100%);
  position: relative;
  overflow: hidden;
}
.hero-bg-pattern {
  position: absolute;
  inset: 0;
  opacity: .04;
  pointer-events: none;
}
.hero-bg-pattern svg { width: 100%; height: 100%; }

.hero-content {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
}
/* hero-split: testo sopra immagine di sfondo (full-width) */
.hero-split {
  position: relative;
  display: flex;
  align-items: center;
  min-height: calc(100vh - var(--nav-h));
  padding: 80px max(24px, calc((100vw - 960px) / 2));
}

/* overlay sfumato per leggibilità */
.hero-split::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    100deg,
    rgba(10, 20, 45, 0.85) 0%,
    rgba(10, 20, 45, 0.55) 55%,
    rgba(10, 20, 45, 0.20) 100%
  );
  z-index: 1;
  pointer-events: none;
}

.hero-text {
  position: relative;
  z-index: 2;
  max-width: 620px;
  display: flex;
  flex-direction: column;
}

/* Hero carousel — sfondo a piena larghezza */
.hero-carousel {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: #0f1a2e;
}
.hero-car-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1s ease;
}
.hero-car-slide.active { opacity: 1; animation: imgZoomOut 4s ease-out forwards; }
.hero-car-arr {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255,255,255,.2);
  border: 1px solid rgba(255,255,255,.35);
  color: #fff;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s;
  backdrop-filter: blur(6px);
  outline: none;
}
.hero-car-arr:hover { background: rgba(255,255,255,.38); }
.hero-car-prev { left: 14px; }
.hero-car-next { right: 14px; }
.hero-car-dots {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 5;
}
.hero-car-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,.4);
  border: none;
  cursor: pointer;
  transition: background .3s, transform .3s;
  padding: 0;
}
.hero-car-dot.active { background: #fff; transform: scale(1.35); }

@media (max-width: 860px) {
  .hero-split {
    padding: 60px 24px;
    min-height: 70vh;
  }
  .hero-text { max-width: 100%; }
  .hero-car-dots { bottom: 12px; }
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(232,67,26,.18);
  color: #f87d5c;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 8px 18px;
  border-radius: 50px;
  border: 1px solid rgba(232,67,26,.3);
  margin-bottom: 28px;
}
.hero-badge::before {
  content: '';
  width: 8px; height: 8px;
  background: var(--orange);
  border-radius: 50%;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .5; transform: scale(1.4); }
}
@keyframes imgZoomOut {
  from { transform: scale(1.08); }
  to   { transform: scale(1); }
}

.hero h1 {
  font-size: clamp(40px, 6vw, 68px);
  font-weight: 800;
  color: #fff;
  line-height: 1.1;
  letter-spacing: -.02em;
  margin-bottom: 24px;
  max-width: 820px;
}
.hero h1 span { color: var(--orange); }
.hero p {
  font-size: clamp(16px, 2vw, 20px);
  color: rgba(255,255,255,.72);
  line-height: 1.7;
  margin-bottom: 40px;
  max-width: 600px;
}
.hero-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
}

/* ── STATS BAR ────────────────────────────────────────────── */
.stats-bar {
  background: var(--orange);
  padding: 40px 0;
}
.stats-grid {
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: 24px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
.stat-item {
  text-align: center;
  padding: 16px 20px;
  position: relative;
}
.stat-item:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0; top: 20%; bottom: 20%;
  width: 1px;
  background: rgba(255,255,255,.3);
}
.stat-number {
  display: block;
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 800;
  color: #fff;
  line-height: 1;
  margin-bottom: 6px;
}
.stat-label {
  font-size: 13px;
  font-weight: 600;
  color: rgba(255,255,255,.82);
  letter-spacing: .04em;
  text-transform: uppercase;
}

/* ── CARD ─────────────────────────────────────────────────── */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: box-shadow .3s, transform .3s;
}
.card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

/* ── SERVICE CARDS ────────────────────────────────────────── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}
/* 7 card: l'ultima da sola nella terza riga va centrata */
.services-grid .service-card:last-child:nth-child(3n+1) {
  grid-column: 2 / 3;
}
.service-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: box-shadow .3s, transform .3s, border-color .3s;
}
.service-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
  border-color: rgba(232,67,26,.25);
}
.service-icon {
  width: 52px; height: 52px;
  background: linear-gradient(135deg, var(--orange) 0%, var(--orange-light) 100%);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  box-shadow: 0 4px 14px rgba(232,67,26,.28);
}
.service-icon svg { width: 26px; height: 26px; color: #fff; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.service-card h3 { font-size: 17px; font-weight: 700; color: var(--blue); margin-bottom: 10px; }
.service-card p { font-size: 14px; color: var(--text3); line-height: 1.65; }

/* ── CHI SIAMO ────────────────────────────────────────────── */
.chi-siamo-grid {
  display: grid;
  grid-template-columns: 1fr 520px;
  gap: 56px;
  align-items: start;
  margin-top: 16px;
}
.chi-siamo-text p {
  font-size: 16px;
  color: var(--text2);
  line-height: 1.8;
  margin-bottom: 18px;
}
.highlight-card {
  background: linear-gradient(135deg, rgba(26,43,74,0.65) 0%, rgba(36,54,96,0.65) 100%), url('../immagini/home/30anni.jpg');
  background-size: cover;
  background-position: center;
  border-radius: var(--radius);
  padding: 36px 32px;
  color: #fff;
  position: sticky;
  top: 96px;
  aspect-ratio: 1 / 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.highlight-card h3 { font-size: 20px; font-weight: 700; margin-bottom: 20px; }
.highlight-list { display: flex; flex-direction: column; gap: 14px; }
.highlight-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 14px;
  color: rgba(255,255,255,.88);
  line-height: 1.5;
}
.highlight-list li::before {
  content: '';
  width: 20px; height: 20px;
  background: var(--orange);
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 1px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-size: 12px;
  background-position: center;
  background-repeat: no-repeat;
}

/* ── SETTORI ──────────────────────────────────────────────── */
.settori-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 36px;
}
.settore-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 50px;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text2);
  transition: border-color .2s, color .2s, box-shadow .2s;
}
.settore-badge:hover {
  border-color: var(--orange);
  color: var(--orange);
  box-shadow: 0 2px 12px rgba(232,67,26,.12);
}
.settore-badge svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.settori-desc { font-size: 15px; color: var(--text3); margin-top: 28px; max-width: 680px; line-height: 1.7; }

/* ── PERCHÉ SCEGLIERCI (dark) ─────────────────────────────── */
.section-dark {
  background: linear-gradient(135deg, var(--blue-dark) 0%, var(--blue) 100%);
  color: #fff;
}
.section-dark .section-title { color: #fff; }
.section-dark .section-sub { color: rgba(255,255,255,.72); }
.perche-grid {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-top: 48px;
  flex-wrap: wrap;
}
.perche-card {
  flex: 0 1 300px;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius);
  padding: 28px 24px;
  text-align: center;
  transition: background .3s, transform .3s;
}
.perche-card:hover { background: rgba(255,255,255,.12); transform: translateY(-4px); }
.perche-icon {
  width: 52px; height: 52px;
  background: rgba(232,67,26,.2);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}
.perche-icon svg { width: 26px; height: 26px; stroke: var(--orange); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.perche-card h3 { font-size: 16px; font-weight: 700; color: #fff; margin-bottom: 10px; }
.perche-card p { font-size: 13px; color: rgba(255,255,255,.65); line-height: 1.6; }

/* ── PT STAT GRID ─────────────────────────────────────────── */
.pt-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 56px;
}

/* ── HIKOKI SECTION ───────────────────────────────────────── */
.hikoki-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.hikoki-text .tag { margin-bottom: 10px; }
.hikoki-text h2 { font-size: clamp(28px, 3.5vw, 40px); font-weight: 800; color: var(--blue); margin-bottom: 16px; line-height: 1.2; }
.hikoki-text p { font-size: 16px; color: var(--text3); line-height: 1.75; margin-bottom: 16px; }
.hikoki-card {
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-mid) 100%);
  border-radius: 20px;
  padding: 48px 40px;
  color: #fff;
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
  overflow: hidden;
}
.hikoki-card::before {
  content: '';
  position: absolute;
  top: -40px; right: -40px;
  width: 180px; height: 180px;
  background: rgba(255,255,255,.05);
  border-radius: 50%;
}
.hikoki-card::after {
  content: '';
  position: absolute;
  bottom: -60px; left: -30px;
  width: 220px; height: 220px;
  background: rgba(232,67,26,.08);
  border-radius: 50%;
}
.hikoki-logo-text {
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -.02em;
  position: relative; z-index: 1;
}
.hikoki-logo-text span { color: var(--orange); }
.hikoki-card p { font-size: 15px; color: rgba(255,255,255,.8); line-height: 1.7; position: relative; z-index: 1; }
.hikoki-card .btn-primary { align-self: flex-start; position: relative; z-index: 1; }

/* ── PREVENTIVO FORM ──────────────────────────────────────── */
.form-wrap { max-width: 680px; margin: 0 auto; }
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 40px;
}
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group.full { grid-column: 1 / -1; }
.form-group label { font-size: 13px; font-weight: 600; color: var(--text2); }
.form-group input,
.form-group select,
.form-group textarea {
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: 10px;
  padding: 13px 16px;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  color: var(--text);
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(232,67,26,.12);
}
.form-group textarea { resize: vertical; min-height: 120px; }
.form-group.error input,
.form-group.error textarea { border-color: #e53e3e; }
.form-error { font-size: 12px; color: #e53e3e; margin-top: 4px; display: none; }
.form-group.error .form-error { display: block; }
.form-submit { margin-top: 24px; text-align: center; }
.form-success {
  display: none;
  background: #d4edda;
  border: 1px solid #c3e6cb;
  color: #155724;
  border-radius: 10px;
  padding: 16px 24px;
  margin-top: 20px;
  font-size: 15px;
  font-weight: 600;
  text-align: center;
}
.form-success.show { display: block; }

/* ── FOOTER ───────────────────────────────────────────────── */
footer {
  background: var(--blue-dark);
  color: rgba(255,255,255,.8);
  padding-top: 64px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.footer-brand .nav-logo { color: #fff; font-size: 28px; margin-bottom: 16px; display: inline-block; }
.footer-brand p { font-size: 14px; color: rgba(255,255,255,.55); line-height: 1.75; max-width: 280px; }
.footer-col h4 { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,.45); margin-bottom: 18px; }
.footer-col ul { display: flex; flex-direction: column; gap: 12px; }
.footer-col ul li a,
.footer-col ul li span {
  font-size: 14px;
  color: rgba(255,255,255,.72);
  transition: color .2s;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}
.footer-col ul li a:hover { color: var(--orange); }
.footer-col ul li svg { width: 16px; height: 16px; flex-shrink: 0; margin-top: 2px; stroke: var(--orange); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
  font-size: 13px;
  color: rgba(255,255,255,.4);
  flex-wrap: wrap;
  gap: 8px;
}
.footer-bottom a { color: rgba(255,255,255,.5); }
.footer-bottom a:hover { color: var(--orange); }

/* ── FLOATING PHONE ───────────────────────────────────────── */
.float-phone {
  position: fixed;
  bottom: 28px; right: 28px;
  width: 56px; height: 56px;
  background: var(--orange);
  border-radius: 50%;
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 24px rgba(232,67,26,.45);
  z-index: 900;
  transition: transform .2s, box-shadow .2s;
}
.float-phone:hover { transform: scale(1.1); box-shadow: 0 10px 32px rgba(232,67,26,.55); }
.float-phone svg { width: 26px; height: 26px; stroke: #fff; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ── SUB-PAGE HERO ────────────────────────────────────────── */
.sub-hero {
  min-height: 520px;
  padding-top: var(--nav-h);
  background: linear-gradient(135deg, #0f1a2e 0%, #1A2B4A 65%, #243660 100%);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.sub-hero-bg {
  position: absolute;
  inset: 0;
  opacity: .04;
  pointer-events: none;
}

/* ── POWER-TOOLS PHOTO STRIP ──────────────────────────────── */
.pt-photo-strip {
  position: relative;
  height: 340px;
  overflow: hidden;
}
.pt-strip-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1s ease;
}
.pt-strip-slide.active { opacity: 1; }
.pt-strip-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(15,26,46,.7) 0%, rgba(15,26,46,.3) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}
.pt-strip-overlay span {
  font-size: clamp(18px, 2.5vw, 30px);
  font-weight: 700;
  color: #fff;
  letter-spacing: .04em;
  text-align: center;
  padding: 0 24px;
  text-shadow: 0 2px 16px rgba(0,0,0,.5);
}

/* ── SUB-HERO VIDEO BACKGROUND ────────────────────────────── */
.sub-hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

/* ── POWER-TOOLS IMAGE HERO ───────────────────────────────── */
.pt-img-hero { background: #0f1a2e; }
.pt-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1s ease;
}
.pt-slide.active { opacity: 1; }
.pt-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(15,26,46,.82) 0%, rgba(26,43,74,.65) 100%);
  z-index: 1;
}
.sub-hero-content {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin-inline: auto;
  padding: 40px 24px;
}
.sub-hero-content .breadcrumb {
  font-size: 13px;
  color: rgba(255,255,255,.5);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.sub-hero-content .breadcrumb a { color: rgba(255,255,255,.55); transition: color .2s; }
.sub-hero-content .breadcrumb a:hover { color: var(--orange); }
.sub-hero-content .breadcrumb span { color: rgba(255,255,255,.3); }
.sub-hero-content h1 {
  font-size: clamp(32px, 4.5vw, 54px);
  font-weight: 800;
  color: #fff;
  letter-spacing: -.02em;
  line-height: 1.15;
  margin-bottom: 16px;
}
.sub-hero-content p {
  font-size: 18px;
  color: rgba(255,255,255,.7);
  max-width: 520px;
  line-height: 1.65;
}

/* ── INFO CARD ────────────────────────────────────────────── */
.info-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px;
  box-shadow: var(--shadow-md);
}
.info-card h3 { font-size: 18px; font-weight: 700; color: var(--blue); margin-bottom: 20px; }
.info-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.info-row:last-child { border-bottom: none; }
.info-row svg { width: 18px; height: 18px; stroke: var(--orange); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; margin-top: 2px; }
.info-row-label { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--text3); margin-bottom: 3px; }
.info-row-val { font-size: 15px; color: var(--text2); font-weight: 500; }
.info-row-val a { color: var(--blue); transition: color .2s; }
.info-row-val a:hover { color: var(--orange); }

/* ── MAP ──────────────────────────────────────────────────── */
.map-wrap {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
}
.map-wrap iframe { display: block; width: 100%; border: none; }

/* ── CATEGORY CARDS (Power Tools) ────────────────────────── */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
  margin-top: 40px;
}
.cat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  display: flex;
  align-items: center;
  gap: 18px;
  transition: box-shadow .3s, transform .3s, border-color .3s;
}
.cat-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
  border-color: rgba(232,67,26,.25);
}
.cat-icon {
  width: 48px; height: 48px;
  background: var(--bg);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.cat-icon svg { width: 26px; height: 26px; stroke: var(--blue); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.cat-card h3 { font-size: 15px; font-weight: 700; color: var(--blue); }
.cat-card p { font-size: 13px; color: var(--text3); margin-top: 4px; }

/* ── CTA BANNER ───────────────────────────────────────────── */
.cta-banner {
  background: linear-gradient(135deg, var(--orange) 0%, var(--orange-light) 100%);
  border-radius: 20px;
  padding: 48px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  margin-top: 48px;
  box-shadow: 0 12px 40px rgba(232,67,26,.28);
}
.cta-banner h3 { font-size: 26px; font-weight: 800; color: #fff; line-height: 1.2; }
.cta-banner p { font-size: 15px; color: rgba(255,255,255,.85); margin-top: 8px; }
.cta-banner-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  color: var(--orange);
  font-size: 15px;
  font-weight: 700;
  padding: 14px 30px;
  border-radius: 50px;
  flex-shrink: 0;
  transition: transform .15s, box-shadow .2s;
}
.cta-banner-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,.15); }

/* ── OFFER CARDS ──────────────────────────────────────────── */
.offers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
  margin-top: 40px;
}
.offers-grid-4 {
  grid-template-columns: repeat(4, 1fr) !important;
}
@media (max-width: 900px) {
  .offers-grid-4 { grid-template-columns: repeat(2, 1fr) !important; }
}
@media (max-width: 560px) {
  .offers-grid-4 { grid-template-columns: 1fr !important; }
}
.offer-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow .3s, transform .3s;
  display: flex;
  flex-direction: column;
}
.offer-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.offer-card-header {
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-mid) 100%);
  padding: 28px;
  position: relative;
}
.offer-badge {
  display: inline-block;
  background: var(--orange);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  padding: 4px 12px;
  border-radius: 50px;
  margin-bottom: 12px;
}
.offer-card-header h3 { font-size: 20px; font-weight: 800; color: #fff; }
.offer-card-body { padding: 24px 28px; display: flex; flex-direction: column; flex: 1; }
.offer-card-body p { font-size: 14px; color: var(--text3); line-height: 1.7; margin-bottom: 20px; }
.offer-card-body .offer-specs { flex: 1; }
.offer-card-body .offer-pricing { margin-top: auto; }

/* ── DIRECTIONS ───────────────────────────────────────────── */
.directions-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 40px;
}
.direction-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: box-shadow .3s, transform .3s;
}
.direction-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.direction-from {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}
.direction-from svg { width: 20px; height: 20px; stroke: var(--orange); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.direction-from strong { font-size: 16px; font-weight: 700; color: var(--blue); }
.direction-card ol { padding-left: 20px; }
.direction-card ol li { font-size: 14px; color: var(--text3); line-height: 1.65; margin-bottom: 8px; }
.direction-card ol li:last-child { margin-bottom: 0; }

/* ── CONTATTACI CARDS ─────────────────────────────────────── */
.contatti-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 900px;
  margin: 0 auto;
}
.contatto-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 28px;
  text-align: center;
  transition: box-shadow .3s, transform .3s, border-color .3s;
}
.contatto-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
  border-color: rgba(232,67,26,.25);
}
.contatto-icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, var(--orange) 0%, var(--orange-light) 100%);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  box-shadow: 0 4px 14px rgba(232,67,26,.28);
}
.contatto-icon svg { width: 26px; height: 26px; stroke: #fff; }
.contatto-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text3);
  margin-bottom: 10px;
}
.contatto-value {
  font-size: 18px;
  font-weight: 700;
  color: var(--blue);
  line-height: 1.3;
  margin-bottom: 10px;
}
.contatto-value a { color: var(--blue); transition: color .2s; }
.contatto-value a:hover { color: var(--orange); }
.contatto-note {
  font-size: 13px;
  color: var(--text3);
  line-height: 1.5;
}
.contatto-note a { color: var(--orange); font-weight: 600; }
.contatto-note a:hover { text-decoration: underline; }

@media (max-width: 680px) {
  .contatti-grid { grid-template-columns: 1fr; max-width: 400px; }
}

/* ── HIKOKI CATALOG CARDS ─────────────────────────────────── */
.hikoki-cat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 48px;
}
.hikoki-cat-grid-2 {
  grid-template-columns: repeat(2, 1fr) !important;
}
.hikoki-cat-grid-2 .hikoki-cat-cover-img {
  height: auto;
  aspect-ratio: 210 / 297;
}
@media (max-width: 560px) {
  .hikoki-cat-grid-2 { grid-template-columns: 1fr !important; }
}
.hikoki-cat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  text-align: left;
  padding: 0;
  transition: box-shadow .3s, transform .3s, border-color .3s;
  display: flex;
  flex-direction: column;
  font-family: 'Inter', sans-serif;
}
.hikoki-cat-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-5px);
  border-color: rgba(232,67,26,.3);
}
.hikoki-cat-cover {
  position: relative;
  height: 180px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  padding: 20px;
  overflow: hidden;
}
.hikoki-cat-cover-img {
  padding: 8px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 220px;
  overflow: hidden;
}
.hikoki-cat-cover-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  transition: transform .4s ease;
  animation: imgZoomOut 1.4s ease-out forwards;
}
.hikoki-cat-card:hover .hikoki-cat-cover-img img {
  transform: scale(1.03);
}
.hikoki-cat-logo {
  font-size: 22px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -.02em;
  margin-bottom: 6px;
  position: relative;
  z-index: 1;
}
.hikoki-cat-logo span { color: var(--orange); }
.hikoki-cat-cover-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255,255,255,.65);
  position: relative;
  z-index: 1;
}
.hikoki-cat-pages-icon {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 64px;
  height: 52px;
  opacity: .6;
}
.hikoki-cat-body {
  padding: 18px 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}
.hikoki-cat-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--blue);
}
.hikoki-cat-desc {
  font-size: 12px;
  color: var(--text3);
  line-height: 1.55;
  flex: 1;
}
.hikoki-cat-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  color: var(--orange);
  margin-top: 4px;
}

@media (max-width: 900px) {
  .hikoki-cat-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .hikoki-cat-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .hikoki-cat-cover { height: 140px; }
}

/* ── SEDE PHOTO SLIDER ────────────────────────────────────── */
.sede-slider-section {
  background: var(--blue-dark);
  padding: 80px 0;
  overflow: hidden;
}
.sede-slider-section .tag { color: rgba(255,255,255,.55); }
.sede-slider-section .section-title { color: #fff; margin-bottom: 32px; }
.sede-slider-wrap {
  position: relative;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding-inline: 24px;
}
.sede-slider {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  aspect-ratio: 16/9;
  background: var(--blue-mid);
}
.sede-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity .8s ease;
}
.sede-slide.active { opacity: 1; animation: imgZoomOut 4.5s ease-out forwards; }
.sede-slide-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 12px;
  color: rgba(255,255,255,.3);
  font-size: 14px;
  font-weight: 500;
}
.sede-slide-placeholder svg { opacity: .3; }
.sede-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
}
.sede-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,.3);
  cursor: pointer;
  transition: background .3s, transform .3s;
  border: none;
  padding: 0;
}
.sede-dot.active {
  background: var(--orange);
  transform: scale(1.3);
}
.sede-arr {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255,255,255,.18);
  border: 1px solid rgba(255,255,255,.35);
  color: #fff;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s;
  backdrop-filter: blur(6px);
  outline: none;
}
.sede-arr:hover { background: rgba(255,255,255,.35); }
.sede-arr-prev { left: 36px; }
.sede-arr-next { right: 36px; }

/* ── REVEAL ANIMATION ─────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: .1s; }
.reveal-delay-2 { transition-delay: .2s; }
.reveal-delay-3 { transition-delay: .3s; }
.reveal-delay-4 { transition-delay: .4s; }

/* ── RESPONSIVE ───────────────────────────────────────────── */

/* 900px — hamburger menu attivo */
@media (max-width: 900px) {
  .nav-links,
  .nav-cta,
  .lang-toggle { display: none; }
  .nav-hamburger { display: flex; }
  .float-phone { display: flex; }

  .sub-hero { min-height: 360px; }
  .hero-car-arr { display: none; }

  .chi-siamo-grid { grid-template-columns: 1fr; }
  .hikoki-wrap { grid-template-columns: 1fr; }
  .pt-stat-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid .stat-item:nth-child(2)::after { display: none; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .directions-grid { grid-template-columns: 1fr; }
  .ds-grid { grid-template-columns: 1fr; }
  .ds-dir-grid { grid-template-columns: 1fr; }
  .ds-map-wrap { min-height: 320px; }
  .ds-map-wrap iframe { min-height: 320px; }
  .contatti-grid { grid-template-columns: 1fr; max-width: 420px; }
}

/* 680px */
@media (max-width: 680px) {
  .nav-logo-sub { display: none; }
  .sub-hero { min-height: 280px; }
  .sub-hero-content { padding: 28px 20px; }
  .hikoki-cat-grid { grid-template-columns: repeat(2, 1fr); }
}

/* 560px */
@media (max-width: 560px) {
  .section { padding: 60px 0; }

  .hero-split { padding: 48px 20px; min-height: 80vh; }
  .hero-btns { flex-direction: column; align-items: stretch; }
  .hero-btns .btn-primary,
  .hero-btns .btn-outline { justify-content: center; }

  .perche-card { flex: 0 1 100%; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .form-group.full { grid-column: 1; }
  .cta-banner { flex-direction: column; text-align: center; }
  .cta-banner-btn { width: 100%; justify-content: center; }
  .services-grid { grid-template-columns: 1fr; }
  .services-grid .service-card:last-child:nth-child(3n+1) { grid-column: auto; }
  .cat-grid { grid-template-columns: 1fr; }
  .offers-grid { grid-template-columns: 1fr; }
  .hikoki-cat-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .hikoki-cat-cover { height: 140px; }
  .ds-dir-grid { gap: 14px; }
}

/* 420px */
@media (max-width: 420px) {
  .stats-grid { grid-template-columns: 1fr; }
  .stat-item::after { display: none !important; }
  .hikoki-cat-grid { grid-template-columns: 1fr; }
  .nav-logo-name { font-size: 11px; }
}
