:root {
  --bg: #050816;
  --bg-alt: #050b18;
  --primary: #00e0ff;
  --secondary: #ff6bcb;
  --accent: #ffe34d;
  --text: #f5f5f7;
  --muted: #a4acc4;
  --radius-xl: 24px;
  --shadow-soft: 0 18px 50px rgba(0, 0, 0, 0.45);
  --glass: rgba(10, 16, 35, 0.78);
  --border-glass: rgba(255, 255, 255, 0.16);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Poppins", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: radial-gradient(circle at top, #020617 0, #020617 45%, #020617 100%);
  color: var(--text);
  line-height: 1.6;
  scroll-behavior: smooth;
  position: relative;
  min-height: 100vh;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

/* SFONDO ANIMATO A TEMA STRADA + CAMION */

.animated-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  background:
    radial-gradient(circle at top, rgba(56, 189, 248, 0.12), transparent 55%),
    radial-gradient(circle at bottom right, rgba(244, 114, 182, 0.12), transparent 60%),
    radial-gradient(circle at top left, rgba(37, 99, 235, 0.14), transparent 55%),
    #020617;
}

.abg-road-band {
  position: absolute;
  left: -10%;
  right: -10%;
  top: 50%;
  height: 180px;
  transform: translateY(-50%) rotate(-4deg);
  transform-origin: center;
  background: linear-gradient(to bottom, #020617 0, #020617 35%, #020617 35%, #020617 65%, #020617 65%, #020617 100%);
  filter: drop-shadow(0 25px 45px rgba(0, 0, 0, 0.6));
}

.abg-road-inner {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, transparent 0, transparent 34%, #020617 34%, #020617 66%, transparent 66%, transparent 100%);
}

.abg-road-lanes {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 4px;
  transform: translateY(-50%);
  background-image: repeating-linear-gradient(
    to right,
    rgba(248, 250, 252, 0.9) 0,
    rgba(248, 250, 252, 0.9) 40px,
    transparent 40px,
    transparent 70px
  );
  opacity: 0.85;
  animation: bgRoadMove 5s linear infinite;
}

@keyframes bgRoadMove {
  from { transform: translate(-70px, -50%); }
  to { transform: translate(0, -50%); }
}

.abg-cityline {
  position: absolute;
  left: 0;
  right: 0;
  top: 10%;
  height: 40px;
  opacity: 0.5;
  background-image: linear-gradient(
    to right,
    rgba(148, 163, 184, 0.2) 4%,
    rgba(148, 163, 184, 0.4) 8%,
    transparent 10%,
    transparent 16%,
    rgba(148, 163, 184, 0.25) 20%,
    rgba(148, 163, 184, 0.5) 23%,
    transparent 25%
  );
  background-size: 140px 100%;
  animation: bgSkylineMove 35s linear infinite;
}

@keyframes bgSkylineMove {
  from { background-position: 0 0; }
  to { background-position: 220px 0; }
}

.abg-vehicle {
  position: absolute;
  width: 160px;
  height: 56px;
  bottom: 20%;
  will-change: transform;
  z-index: 1;
  animation: var(--drive-anim, driveRight) var(--drive-duration, 16s) linear var(--drive-delay, 0s) infinite;
  animation-fill-mode: both;
}

.abg-vehicle.abg-vehicle-2 {
  bottom: 60%;
  transform: scale(0.8);
  animation-duration: 20s;
  animation-delay: -6s;
  opacity: 0.8;
}

.abg-vehicle.abg-vehicle-3 {
  bottom: 35%;
  transform: scale(0.9);
  animation-duration: 18s;
  animation-delay: -11s;
  opacity: 0.7;
}

@keyframes driveRight {
  0% { transform: translateX(-30vw) scaleX(var(--dir-scale, 1)); }
  100% { transform: translateX(120vw) scaleX(var(--dir-scale, 1)); }
}

@keyframes driveLeft {
  0% { transform: translateX(120vw) scaleX(var(--dir-scale, 1)); }
  100% { transform: translateX(-30vw) scaleX(var(--dir-scale, 1)); }
}

/* Use a directional scale variable so animations keep translating while
   optionally flipping the vehicle horizontally. */
.abg-vehicle {
  --dir-scale: 1;
}
.abg-vehicle.dir-left {
  --dir-scale: -1;
}

.abg-vehicle-body {
  /* Rimorchio: più lungo, angoli arrotondati */
  position: absolute;
  left: 64px;
  right: 10px;
  bottom: 18px;
  height: 36px;
  border-radius: 12px;
  background: linear-gradient(120deg, var(--primary), var(--secondary));
  box-shadow: 0 14px 35px rgba(56, 189, 248, 0.35);
  opacity: 0.95;
  z-index: 1;
}

.abg-vehicle-body::before {
  /* Connettore tra cabina e rimorchio */
  content: "";
  position: absolute;
  left: -14px;
  bottom: 10px;
  width: 14px;
  height: 10px;
  background: rgba(8, 12, 20, 0.9);
  border-radius: 2px;
}

.abg-vehicle-cabin {
  /* Cabina truck: profilo compatto e squadrato */
  position: absolute;
  left: 0;
  bottom: 18px;
  width: 64px;
  height: 36px;
  border-radius: 10px 6px 6px 10px;
  background: radial-gradient(circle at top, #f9fafb, #cbd5f5);
  box-shadow: 0 10px 20px rgba(148, 163, 184, 0.35);
  opacity: 1;
  z-index: 2;
}

.abg-vehicle-window {
  position: absolute;
  /* Posizionato sulla cabina (lato sinistro del vehicle container) */
  left: 10px;
  top: 8px;
  width: 28px;
  height: 16px;
  border-radius: 6px;
  background: linear-gradient(135deg, #dbeafe, #38bdf8);
  z-index: 3;
}

.abg-vehicle-light {
  position: absolute;
  /* Faro anteriore sulla cabina (verso il rimorchio) */
  left: 54px;
  bottom: 10px;
  width: 10px;
  height: 8px;
  border-radius: 8px 0 0 8px;
  background: #fff8d6;
  box-shadow: -6px 0 14px rgba(255, 230, 120, 0.75);
  z-index: 2;
}

.abg-vehicle-body::after {
  /* Luce posteriore sul rimorchio */
  content: "";
  position: absolute;
  right: 8px;
  bottom: 10px;
  width: 8px;
  height: 6px;
  border-radius: 0 8px 8px 0;
  background: #ff6b6b;
  box-shadow: 6px 0 12px rgba(255, 90, 90, 0.6);
}

.abg-vehicle-wheel {
  position: absolute;
  bottom: 4px;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: #020617;
  border: 3px solid #111827;
  box-shadow: 0 4px 0 rgba(15, 23, 42, 0.9);
  overflow: hidden;
  animation: bgWheelSpin 0.7s linear infinite;
}

.abg-vehicle-wheel::after {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: inherit;
  border: 2px solid rgba(249, 250, 251, 0.7);
  border-top-color: transparent;
  border-bottom-color: transparent;
}

.abg-wheel-front {
  /* Ruota anteriore: sotto la cabina */
  left: 18px;
}

.abg-wheel-back {
  /* Ruota posteriore: sotto il rimorchio */
  left: 96px;
}

@keyframes bgWheelSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.abg-glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 20%, rgba(56, 189, 248, 0.12), transparent 60%),
    radial-gradient(circle at 80% 80%, rgba(244, 114, 182, 0.12), transparent 65%);
  mix-blend-mode: screen;
  opacity: 0.7;
  pointer-events: none;
}

/* Layout base */

.page-wrapper {
  min-height: 100vh;
  position: relative;
  z-index: 1;
}

.container {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 clamp(1rem, 3.5vw, 1.5rem);
}

/* Nav */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 20;
  transition: background 0.25s ease, border-bottom 0.25s ease, backdrop-filter 0.25s ease;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  max-width: 1080px;
  margin: 0 auto;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.brand-mark {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: conic-gradient(from 160deg, var(--primary), var(--secondary), var(--accent), var(--primary));
  position: relative;
  overflow: hidden;
}

.brand-mark::after {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: inherit;
  background: rgba(5, 8, 22, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.brand-title {
  font-weight: 700;
  letter-spacing: 0.12em;
  font-size: 0.9rem;
  text-transform: uppercase;
}

.brand-subtitle {
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--muted);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  font-size: 0.9rem;
}

.nav-toggle {
  display: none;
  width: 38px;
  height: 32px;
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(148, 163, 184, 0.45);
  color: var(--muted);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.nav-toggle::before {
  content: "☰";
  font-size: 1.2rem;
  line-height: 1;
  color: #e5e7eb;
}

.nav-toggle span {
  display: none;
}

.nav-link {
  position: relative;
}

.nav-link span {
  position: relative;
  z-index: 1;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.2rem;
  width: 0;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  transition: width 0.25s ease;
}

.nav-link:hover::after {
  width: 100%;
}

.nav-cta {
  padding: 0.55rem 1rem;
  border-radius: 999px;
  background: radial-gradient(circle at top left, var(--primary), var(--secondary));
  border: none;
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 600;
  box-shadow: 0 10px 25px rgba(15, 118, 110, 0.35);
  color: #020617;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}

.nav-cta span {
  transform: translateY(0.5px);
}

.nav-cta:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
  box-shadow: 0 16px 35px rgba(15, 118, 110, 0.45);
}

.nav-cta-icon {
  font-size: 1rem;
}

.nav.scrolled {
  background: rgba(5, 8, 22, 0.9);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(148, 163, 184, 0.2);
}

/* Hero */

.hero {
  position: relative;
  padding-top: 6rem;
  padding-bottom: 4rem;
  overflow: hidden;
}

.hero-gradient {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top left, rgba(56, 189, 248, 0.08), transparent 55%),
    radial-gradient(circle at bottom right, rgba(244, 114, 182, 0.08), transparent 55%);
  opacity: 1;
  pointer-events: none;
  z-index: -1;
}

.hero-grid {
  position: relative;
  max-width: 1080px;
  margin: 0 auto;
  padding: 4rem 1.5rem 2rem;
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1.2fr);
  gap: 2.7rem;
  align-items: center;
}

.hero-kicker {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.hero-kicker-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: radial-gradient(circle, var(--accent), var(--secondary));
  box-shadow: 0 0 0 6px rgba(248, 250, 252, 0.08);
  animation: pulseDot 2s ease-in-out infinite;
}

@keyframes pulseDot {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 0 0 6px rgba(248, 250, 252, 0.08);
  }
  50% {
    transform: scale(1.2);
    box-shadow: 0 0 0 10px rgba(248, 250, 252, 0.04);
  }
}

.hero-title {
  font-size: clamp(2.3rem, 3vw + 1.5rem, 3.4rem);
  line-height: 1.06;
  margin-bottom: 1rem;
}

.hero-title span {
  background: linear-gradient(120deg, var(--primary), var(--secondary), var(--accent));
  -webkit-background-clip: text;
  color: transparent;
}

.hero-subtitle {
  font-size: 0.98rem;
  max-width: 32rem;
  color: var(--muted);
  margin-bottom: 1.6rem;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-bottom: 2rem;
}

.hero-badge {
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(15, 23, 42, 0.9);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #e5e7eb;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.hero-badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--primary);
  animation: badgeBlink 1.6s ease-in-out infinite;
}

@keyframes badgeBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  align-items: center;
}

.btn-primary,
.btn-ghost {
  border-radius: 999px;
  padding: 0.9rem 1.4rem;
  font-size: 0.9rem;
  font-weight: 500;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease, border 0.12s ease;
}

.btn-primary {
  background: radial-gradient(circle at top left, var(--primary), var(--secondary));
  color: #020617;
  box-shadow: 0 16px 45px rgba(59, 130, 246, 0.35);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 20px 55px rgba(59, 130, 246, 0.45);
}

.btn-ghost {
  background: rgba(15, 23, 42, 0.7);
  color: var(--muted);
  border: 1px solid rgba(148, 163, 184, 0.4);
}

.btn-ghost:hover {
  background: rgba(15, 23, 42, 0.95);
  border-color: rgba(248, 250, 252, 0.6);
}

.hero-meta {
  margin-top: 1.3rem;
  font-size: 0.76rem;
  color: var(--muted);
}

.hero-meta span {
  color: var(--accent);
  font-weight: 500;
}

/* Hero visual */

.hero-visual {
  position: relative;
}

.hero-card {
  border-radius: var(--radius-xl);
  padding: 1.2rem;
  background: radial-gradient(circle at top left, rgba(56, 189, 248, 0.15), rgba(15, 23, 42, 0.96));
  border: 1px solid var(--border-glass);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(18px);
  position: relative;
  overflow: hidden;
  animation: cardFloat 8s ease-in-out infinite;
}

@keyframes cardFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

.hero-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.hero-card-title {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: #e5e7eb;
}

.hero-card-tag {
  font-size: 0.7rem;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.86);
  border: 1px solid rgba(148, 163, 184, 0.45);
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

.hero-map {
  position: relative;
  margin-top: 0.2rem;
  padding: 1.1rem 1rem 1rem;
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.9);
  border: 1px dashed rgba(148, 163, 184, 0.4);
  overflow: hidden;
}

.hero-map-title {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--muted);
  margin-bottom: 0.4rem;
}

.hero-map-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.6rem;
}

.pill {
  font-size: 0.72rem;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid rgba(148, 163, 184, 0.6);
  color: #e5e7eb;
}

.hero-map-graph {
  margin-top: 0.6rem;
  height: 90px;
  position: relative;
}

.hero-map-line {
  position: absolute;
  inset: 0.4rem 0.2rem 0.2rem;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(56, 189, 248, 0.15), rgba(244, 114, 182, 0.15));
  overflow: hidden;
}

.hero-map-line::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(to right, rgba(15, 23, 42, 0.3) 30%, transparent 40%);
  background-size: 40px 100%;
  animation: moveStripe 10s linear infinite;
  opacity: 0.7;
}

@keyframes moveStripe {
  from { transform: translateX(0); }
  to { transform: translateX(-40px); }
}

.hero-map-points {
  position: absolute;
  inset: 0.4rem 0.2rem 0.2rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding: 0.3rem 0.6rem;
  pointer-events: none;
}

.hero-map-point {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
}

.hero-map-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: radial-gradient(circle, var(--primary), var(--secondary));
  box-shadow: 0 0 0 6px rgba(56, 189, 248, 0.12);
}

.hero-map-label {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--muted);
}

.hero-floating {
  position: absolute;
  right: -0.4rem;
  bottom: -0.4rem;
  width: 120px;
  height: 120px;
  border-radius: 999px;
  background: radial-gradient(circle at top, rgba(56, 189, 248, 0.28), rgba(15, 23, 42, 0.9));
  border: 1px solid rgba(148, 163, 184, 0.35);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.15rem;
  font-size: 0.7rem;
  text-align: center;
  color: var(--muted);
  backdrop-filter: blur(12px);
  animation: float 6s ease-in-out infinite;
}

.hero-floating strong {
  font-size: 1.2rem;
  color: var(--accent);
}

@keyframes float {
  0%, 100% { transform: translate(4px, 4px); }
  50% { transform: translate(-4px, -4px); }
}

/* Sezioni generali */

section {
  padding: 3.5rem 0;
}

.section-header {
  text-align: left;
  margin-bottom: 1.8rem;
}

.section-kicker {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--muted);
  margin-bottom: 0.3rem;
}

.section-title {
  font-size: 1.5rem;
  margin-bottom: 0.4rem;
}

.section-subtitle {
  font-size: 0.92rem;
  color: var(--muted);
  max-width: 32rem;
}

.glass {
  background: var(--glass);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-glass);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow-soft);
}

/* Chi siamo */

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1.1fr);
  gap: 2rem;
  align-items: start;
}

.about-card {
  padding: 1.5rem 1.6rem;
}

.about-text {
  font-size: 0.95rem;
  color: var(--muted);
  margin-bottom: 1.3rem;
}

.about-highlights {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
  margin-bottom: 0.4rem;
}

.about-highlight {
  padding: 0.9rem 1rem;
  border-radius: 18px;
  border: 1px solid rgba(148, 163, 184, 0.55);
  background: rgba(15, 23, 42, 0.95);
  font-size: 0.8rem;
}

.about-highlight-title {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: #e5e7eb;
  margin-bottom: 0.3rem;
}

.about-highlight strong {
  color: var(--accent);
}

.about-meta {
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 0.7rem;
}

.about-meta span {
  color: #e5e7eb;
  font-weight: 500;
}

.timeline {
  padding: 1.4rem 1.5rem;
}

.timeline-list {
  list-style: none;
  border-left: 1px dashed rgba(148, 163, 184, 0.6);
  margin-left: 0.6rem;
  padding-left: 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  font-size: 0.83rem;
}

.timeline-item {
  position: relative;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -1.63rem;
  top: 0.2rem;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: radial-gradient(circle, var(--primary), var(--secondary));
  box-shadow: 0 0 0 5px rgba(56, 189, 248, 0.14);
}

.timeline-label {
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--muted);
  margin-bottom: 0.15rem;
}

.timeline-text strong {
  color: #e5e7eb;
}

/* Servizi */

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.1rem;
}

.service-card {
  padding: 1.2rem 1.1rem;
  border-radius: 20px;
  background: radial-gradient(circle at top left, rgba(56, 189, 248, 0.14), rgba(15, 23, 42, 0.98));
  border: 1px solid rgba(148, 163, 184, 0.45);
  font-size: 0.86rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  position: relative;
  overflow: hidden;
  transform-origin: center top;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 50px rgba(15, 23, 42, 0.8);
  border-color: rgba(248, 250, 252, 0.65);
}

.service-chip {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--muted);
}

.service-title {
  font-size: 0.96rem;
  font-weight: 600;
}

.service-tagline {
  font-size: 0.8rem;
  color: var(--muted);
}

.service-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  margin-top: 0.2rem;
}

.service-pill {
  font-size: 0.7rem;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid rgba(148, 163, 184, 0.5);
  color: #e5e7eb;
}

.service-glow {
  position: absolute;
  width: 120px;
  height: 120px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.3), transparent 60%);
  right: -40px;
  bottom: -40px;
  opacity: 0.6;
}

/* Valori */

.values-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.value-card {
  padding: 1.2rem 1.1rem;
  border-radius: 20px;
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid rgba(148, 163, 184, 0.5);
  font-size: 0.84rem;
  position: relative;
  overflow: hidden;
}

.value-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top, rgba(56, 189, 248, 0.08), transparent 55%);
  opacity: 0;
  transition: opacity 0.2s ease;
  pointer-events: none;
}

.value-card:hover::after {
  opacity: 1;
}

.value-label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--muted);
  margin-bottom: 0.2rem;
}

.value-title {
  font-size: 0.98rem;
  margin-bottom: 0.4rem;
}

/* Info & contatti */

.info-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.1fr);
  gap: 1.7rem;
  align-items: start;
}

.info-card,
.contact-card {
  padding: 1.3rem 1.4rem 1.4rem;
}

.info-list {
  list-style: none;
  display: grid;
  gap: 0.45rem;
  font-size: 0.88rem;
}

.info-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--muted);
}

.info-value {
  color: #e5e7eb;
}

.contact-list {
  list-style: none;
  display: grid;
  gap: 0.6rem;
  font-size: 0.9rem;
}

.contact-item span {
  display: block;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--muted);
  margin-bottom: 0.15rem;
}

.contact-cta {
  margin-top: 1.2rem;
  font-size: 0.82rem;
  color: var(--muted);
}

.contact-cta strong {
  color: #e5e7eb;
}

/* Footer */

.footer {
  padding: 2rem 0 2.5rem;
  border-top: 1px solid rgba(148, 163, 184, 0.25);
  margin-top: 2rem;
  font-size: 0.75rem;
  color: var(--muted);
  background: radial-gradient(circle at top, rgba(15, 23, 42, 0.9), rgba(15, 23, 42, 0.95));
  backdrop-filter: blur(10px);
}

.footer-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.6rem;
  align-items: center;
}

.footer-tag {
  text-transform: uppercase;
  letter-spacing: 0.18em;
}

/* Modal */

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(5, 8, 22, 0.6);
  backdrop-filter: blur(6px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 40;
}

.modal-overlay.open {
  display: flex;
}

.modal {
  width: 100%;
  max-width: 640px;
  margin: 1rem;
  border-radius: var(--radius-xl);
  background: var(--glass);
  border: 1px solid var(--border-glass);
  box-shadow: var(--shadow-soft);
  max-height: 80vh;
  overflow: auto;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.2rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.25);
}

.modal-title {
  font-weight: 600;
}

.modal-close {
  background: rgba(15, 23, 42, 0.8);
  color: var(--muted);
  border: 1px solid rgba(148, 163, 184, 0.45);
  border-radius: 10px;
  padding: 0.25rem 0.6rem;
  cursor: pointer;
}

.modal-content {
  padding: 1rem 1.2rem 1.2rem;
}

.info-value {
  overflow-wrap: anywhere;
}

@media (prefers-reduced-motion: reduce) {
  .abg-road-lanes,
  .abg-cityline,
  .abg-vehicle,
  .abg-vehicle-wheel,
  .hero-floating,
  .hero-badge-dot,
  .hero-card,
  .hero-map-line::after {
    animation: none !important;
  }
}

/* Utility: reveal on scroll */

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.4s ease-out, transform 0.4s ease-out;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */

@media (max-width: 900px) {
  .hero-grid,
  .about-grid,
  .info-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-grid {
    gap: 2.2rem;
  }

  .hero-visual {
    order: -1;
  }

  .services-grid,
  .values-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .nav-inner {
    padding-inline: 1rem;
  }

  .nav-links {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .nav.open .nav-links {
    display: flex;
    position: fixed;
    top: 56px;
    left: 0;
    right: 0;
    background: rgba(5, 8, 22, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(148, 163, 184, 0.2);
    padding: 0.8rem 1rem;
    flex-direction: column;
    gap: 0.8rem;
    z-index: 25;
  }

  .nav.open .nav-cta {
    align-self: flex-start;
  }

  .hero-grid {
    padding-top: 4.2rem;
  }

  .hero-title {
    font-size: 2.1rem;
  }

  .about-highlights {
    grid-template-columns: minmax(0, 1fr);
  }

  section {
    padding: 3rem 0;
  }

  .abg-road-band {
    height: 150px;
  }
}

@media (max-width: 560px) {
  .services-grid,
  .values-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-card {
    padding: 1rem 0.9rem 1.1rem;
  }

  .hero-floating {
    transform: scale(0.9);
    right: -10px;
    bottom: -10px;
  }

  .abg-vehicle {
    width: 130px;
  }
}

/* FAQ Section */
.faq-grid {
  display: grid;
  gap: 1.5rem;
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid var(--border-glass);
  border-radius: 16px;
  padding: 0;
  overflow: hidden;
  transition: all 0.3s ease;
}

.faq-item:hover {
  border-color: rgba(56, 189, 248, 0.3);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.faq-item[open] {
  background: rgba(15, 23, 42, 0.85);
  border-color: rgba(56, 189, 248, 0.4);
}

.faq-summary {
  padding: 1.2rem 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 500;
  color: var(--text);
  list-style: none; /* Remove default marker */
}

.faq-summary::-webkit-details-marker {
  display: none;
}

.faq-summary::after {
  content: "+";
  font-size: 1.5rem;
  color: var(--primary);
  transition: transform 0.3s ease;
  line-height: 1;
}

.faq-item[open] .faq-summary::after {
  transform: rotate(45deg);
}

.faq-content {
  padding: 0 1.5rem 1.5rem;
  color: var(--muted);
  line-height: 1.6;
  border-top: 1px solid transparent;
}

.faq-item[open] .faq-content {
  border-top-color: rgba(255, 255, 255, 0.05);
  padding-top: 1rem;
}
