/* ============================================================
   FOGLIARINO — Component styles
   ============================================================ */

/* ============== NAVBAR ============== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  width: 100%;
  background: var(--bg);
  transition: box-shadow .2s ease, background .2s ease, padding .2s ease;
  border-bottom: 1px solid transparent;
}
.navbar.scrolled {
  background: rgba(247, 246, 242, 0.94);
  -webkit-backdrop-filter: saturate(120%) blur(14px);
  backdrop-filter: saturate(120%) blur(14px);
  border-bottom-color: var(--line);
  box-shadow: 0 4px 24px -16px rgba(14,15,17,.08);
}
/* shrink slightly on scroll */
.navbar.scrolled .navbar-inner { min-height: 84px; }
.navbar.scrolled .wm-xl img { height: 46px !important; transition: height .25s ease; }
.wm-xl img { transition: height .25s ease; }

.top-strip {
  background: var(--ink);
  color: rgba(255,255,255,.78);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.top-strip-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 34px;
}
.top-strip-right {
  display: flex;
  align-items: center;
  gap: 14px;
}
.ts-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: inherit;
}
.ts-link:hover { color: #fff; }
.ts-sep { opacity: .4; }
@media (max-width: 720px) {
  .top-strip-left { display: none; }
  .top-strip-right { width: 100%; justify-content: center; }
  .ts-mobile-hide { display: none; }
}

.navbar-main { background: transparent; }
.navbar-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 32px;
  min-height: 108px;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
}
.nav-links-left { justify-content: flex-end; }
.nav-links-right { justify-content: flex-start; }
.nav-center {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0 24px;
  position: relative;
}
.nav-center::before,
.nav-center::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 18px;
  height: 1px;
  background: var(--line-2);
  opacity: .9;
}
.nav-center::before { right: 100%; }
.nav-center::after { left: 100%; }
.nav-item {
  position: relative;
}
.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 12px 18px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.005em;
  color: var(--ink);
  border-radius: var(--r-sm);
  position: relative;
  transition: color .15s ease;
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 6px;
  height: 1.5px;
  background: var(--brand);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform .25s cubic-bezier(.2,.6,.2,1);
}
.nav-link:hover { color: var(--brand); }
.nav-link:hover::after { transform: scaleX(1); }
.nav-mobile-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--line-2);
  border-radius: var(--r-md);
  padding: 10px;
  color: var(--ink);
  position: absolute;
  right: var(--gutter);
  top: 50%;
  transform: translateY(-50%);
}
@media (max-width: 1100px) {
  .nav-links { display: none; }
  .nav-mobile-toggle { display: inline-flex; }
  .navbar-inner { grid-template-columns: 1fr; justify-items: center; min-height: 88px; }
  .nav-center::before, .nav-center::after { display: none; }
}

/* DROPDOWN */
.nav-dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(-8px);
  margin-top: 4px;
  width: 720px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
  z-index: 50;
}
.nav-dropdown.open {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.nav-dropdown-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  padding: 28px;
}
.nav-drop-eyebrow {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 14px;
}
.nav-drop-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.nav-drop-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 0;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  border-bottom: 1px dashed var(--line);
  transition: color .15s ease, padding .2s ease;
}
.nav-drop-link:hover { color: var(--brand); padding-left: 4px; }
.nav-drop-link .arrow, .nav-drop-link svg { opacity: .4; transition: opacity .15s ease, transform .2s ease; }
.nav-drop-link:hover svg { opacity: 1; transform: translateX(3px); color: var(--brand); }

.nav-drop-feature {
  background: var(--surface-2);
  border-radius: var(--r-md);
  padding: 20px;
}
.nav-drop-feature-tag {
  display: inline-block;
  background: var(--ink);
  color: #fff;
  padding: 4px 8px;
  border-radius: var(--r-sm);
  font-size: 10px;
  margin-bottom: 12px;
}
.nav-drop-feature-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 19px;
  letter-spacing: -0.01em;
  margin-bottom: 6px;
}
.nav-drop-feature-desc {
  font-size: 13px;
  color: var(--ink-muted);
  margin-bottom: 14px;
  line-height: 1.5;
}

/* MOBILE DRAWER */
.mobile-drawer {
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 200;
  transform: translateX(100%);
  transition: transform .3s cubic-bezier(.4,0,.2,1);
  display: flex;
  flex-direction: column;
}
.mobile-drawer.open { transform: none; }
.mobile-drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
}
.mobile-close {
  background: transparent;
  border: 1px solid var(--line-2);
  border-radius: var(--r-md);
  padding: 10px;
}
.mobile-nav {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 20px;
  overflow-y: auto;
}
.mobile-nav-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 4px;
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 600;
  border-bottom: 1px solid var(--line);
}
.mobile-nav-link svg { opacity: .3; }
.mobile-drawer-foot {
  padding: 24px 20px 32px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.mobile-contact {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--ink-2);
}

/* ============== HERO ============== */
.hero {
  position: relative;
  min-height: 100vh;
  height: clamp(720px, 100vh, 980px);
  overflow: hidden;
  color: #fff;
  margin-top: -142px;
  padding-top: 142px;
  display: flex;
  flex-direction: column;
  background: #14181B;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 42%;
  transform: scale(1.02);
  filter: contrast(1.08) saturate(1.08) brightness(.96);
}
/* ===== Hero slideshow ===== */
.hero-slider { position: absolute; inset: 0; z-index: 0; }
.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 42%;
  filter: contrast(1.08) saturate(1.08) brightness(.96);
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 1200ms ease;
  will-change: opacity, transform;
}
.hero-slide.active {
  opacity: 1;
  z-index: 1;
  animation: hero-ken 7s ease-out forwards;
}
@keyframes hero-ken {
  from { transform: scale(1.04); }
  to   { transform: scale(1.13); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-slide { transition: opacity 300ms ease; }
  .hero-slide.active { animation: none; transform: scale(1.04); }
}

/* Prev / next arrows */
.hero-nav {
  position: absolute;
  top: 46%;
  transform: translateY(-50%);
  z-index: 6;
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  color: #fff;
  border: 1px solid rgba(255,255,255,.35);
  background: rgba(12,17,20,.30);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  border-radius: 50%;
  transition: background .2s ease, border-color .2s ease, transform .2s ease;
}
.hero-nav:hover { background: var(--brand); border-color: var(--brand); }
.hero-nav:active { transform: translateY(-50%) scale(.94); }
.hero-nav-prev { left: clamp(12px, 3vw, 44px); }
.hero-nav-next { right: clamp(12px, 3vw, 44px); }
.hero-nav-prev svg { transform: scaleX(-1); }

/* Dots */
.hero-dots {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: clamp(124px, 13vw, 210px);
  z-index: 6;
  display: flex;
  align-items: center;
  gap: 9px;
  max-width: 92%;
  flex-wrap: wrap;
  justify-content: center;
}
.hero-dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(255,255,255,.5);
  box-shadow: 0 1px 3px rgba(0,0,0,.45);
  transition: width .25s ease, background .25s ease, border-radius .25s ease;
}
.hero-dot:hover { background: rgba(255,255,255,.85); }
.hero-dot.active {
  width: 26px;
  border-radius: 5px;
  background: var(--brand);
}
/* Cinematic top-to-mid gradient — darkens upper third to ground the title */
.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg,
      rgba(10,15,18, calc(var(--hero-darkness, .55) * 1.25)) 0%,
      rgba(10,15,18, calc(var(--hero-darkness, .55) * 0.85)) 28%,
      rgba(10,15,18, calc(var(--hero-darkness, .55) * 0.35)) 50%,
      rgba(10,15,18, 0.0) 78%);
}
/* Soft edge vignette — corners get gently darkened, mid stays clean */
.hero-vignette {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 140% 100% at 50% 35%, transparent 35%, rgba(0,0,0,.4) 100%);
  pointer-events: none;
  mix-blend-mode: multiply;
}
/* Localized spotlight — soft elliptical darkening RIGHT behind the headline,
   no hard edges, no rectangle — just a smudge of shadow to ground the type. */
.hero-spotlight {
  position: absolute;
  top: 18%;
  left: 50%;
  transform: translate(-50%, 0);
  width: min(1100px, 92%);
  height: 380px;
  background:
    radial-gradient(ellipse 55% 60% at 50% 50%,
      rgba(8,12,16,.55) 0%,
      rgba(8,12,16,.34) 35%,
      rgba(8,12,16,.16) 60%,
      transparent 80%);
  pointer-events: none;
  filter: blur(22px);
  z-index: 3;
}
/* Disable old lens flares */
.hero-flare { display: none; }
.hero-grain {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(255,255,255,.018) 0, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(255,255,255,.014) 0, transparent 50%);
  mix-blend-mode: screen;
  pointer-events: none;
}

/* Text in upper portion so machinery stays unobscured */
.hero-content {
  position: relative;
  z-index: 4;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  max-width: 1320px;
  padding-top: 0;
  padding-bottom: 0;
}
/* Neutralize trailing margin so the block is optically centered */
.hero-content > *:last-child { margin-bottom: 0; }
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: rgba(255,255,255,.92);
  margin-bottom: 28px;
  justify-content: center;
  text-shadow: 0 1px 6px rgba(0,0,0,.65), 0 0 24px rgba(0,0,0,.4);
}
.hero-eyebrow-bar {
  display: inline-block;
  width: 32px;
  height: 1.5px;
  background: var(--brand);
  box-shadow: 0 0 12px rgba(229,48,42,.5);
}
.hero-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(40px, 5.6vw, 84px);
  line-height: 1.0;
  letter-spacing: -0.03em;
  margin: 0 0 26px 0;
  max-width: 1100px;
  text-wrap: balance;
  color: #fff;
  /* Directional cinematic shadow: tight contact + soft drop + atmospheric glow */
  text-shadow:
    0 1px 1px rgba(0,0,0,.55),
    0 4px 16px rgba(0,0,0,.5),
    0 18px 48px rgba(0,0,0,.35);
}
.hero-subclaim {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  font-family: var(--font-mono);
  font-size: clamp(11px, 0.95vw, 13px);
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(255,255,255,.95);
  margin: 0 0 40px 0;
  white-space: nowrap;
  text-shadow: 0 1px 4px rgba(0,0,0,.7), 0 0 20px rgba(0,0,0,.4);
}
.hero-subclaim-line {
  display: inline-block;
  width: 56px;
  height: 1px;
  background: rgba(255,255,255,.55);
  box-shadow: 0 0 8px rgba(0,0,0,.4);
}
.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
  filter: drop-shadow(0 8px 24px rgba(0,0,0,.3));
}

/* Big elegant bottom curve — light bg dips down into hero at center */
.hero-curve {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  width: 100%;
  height: clamp(110px, 12vw, 200px);
  display: block;
  z-index: 5;
  pointer-events: none;
  filter: drop-shadow(0 -6px 24px rgba(0,0,0,.18));
}

.hero-cue {
  position: absolute;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  z-index: 6;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: var(--ink-muted);
  font-size: 10px;
}
.hero-cue-line {
  width: 1px;
  height: 28px;
  background: linear-gradient(to bottom, rgba(0,0,0,.4), transparent);
  position: relative;
  overflow: hidden;
}
.hero-cue-line::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, var(--brand), transparent);
  animation: scroll-cue 1.8s ease-in-out infinite;
}
@keyframes scroll-cue {
  0% { transform: translateY(-100%); }
  100% { transform: translateY(100%); }
}

@media (max-width: 900px) {
  .hero { height: auto; min-height: 620px; }
  .hero-content { padding-top: 0; }
  .hero-cue { display: none; }
  .hero-subclaim { gap: 10px; }
  .hero-subclaim-line { width: 24px; }
  .hero-nav { width: 42px; height: 42px; }
  .hero-dots { bottom: clamp(96px, 22vw, 150px); }
}
@media (max-width: 560px) {
  .hero-nav { display: none; }
  .hero-dots { gap: 7px; }
  .hero-dot { width: 7px; height: 7px; }
  .hero-dot.active { width: 20px; }
  .hero-subclaim { flex-wrap: wrap; justify-content: center; }
  .hero-bg { background-position: 65% 50%; }
}

/* ============== SECTION HEAD (shared) ============== */
.section-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  margin-bottom: 64px;
  align-items: end;
}
.section-head-left .eyebrow { margin-bottom: 20px; }
.section-head-left .h-1 em {
  font-style: normal;
  color: var(--brand);
  font-weight: 700;
}
.section-head-right p { max-width: 460px; margin: 0 0 16px 0; }
@media (max-width: 800px) {
  .section-head { grid-template-columns: 1fr; gap: 24px; margin-bottom: 40px; align-items: start; }
}

/* ============== CHI SIAMO ============== */
.chi-siamo {
  background: var(--bg);
}
.cs-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 80px;
  align-items: center;
  margin-bottom: 90px;
}
.cs-image-wrap {
  position: relative;
  aspect-ratio: 4/5;
  max-height: 720px;
}
.cs-image {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  border-radius: var(--r-md);
  overflow: hidden;
  filter: contrast(1.02) saturate(.92);
}
.cs-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(14,15,17,.15) 100%);
}
.cs-image-badge {
  position: absolute;
  top: 20px;
  left: 20px;
  background: rgba(14,15,17,.84);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: #fff;
  padding: 10px 14px;
  border-radius: var(--r-sm);
  display: flex;
  flex-direction: column;
  gap: 2px;
  z-index: 2;
}
.cs-image-badge .caps { color: #fff; font-size: 10px; }
.cs-image-badge-coord {
  font-family: var(--font-mono);
  font-size: 10px;
  color: rgba(255,255,255,.6);
}
.cs-image-tag {
  position: absolute;
  bottom: -28px;
  right: -28px;
  background: #fff;
  border: 1px solid var(--line);
  padding: 18px 22px;
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: var(--shadow-md);
  z-index: 2;
  max-width: 320px;
}
.cs-image-tag-num {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 800;
  color: var(--brand);
  line-height: 1;
}
.cs-image-tag-text .caps { color: var(--ink-muted); margin-bottom: 4px; }
.cs-image-tag-text > div:last-child { font-size: 14px; font-weight: 500; }

.cs-content .eyebrow { margin-bottom: 20px; }
.cs-content .h-1 { margin-bottom: 24px; }
.cs-content .h-1 em { font-style: normal; color: var(--brand); font-weight: 700; }
.cs-content .lead { margin: 0 0 36px 0; max-width: 520px; }

.cs-pillars {
  display: flex;
  flex-direction: column;
  gap: 22px;
  margin-bottom: 36px;
}
.cs-pillar {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}
.cs-pillar:last-child { border-bottom: none; padding-bottom: 0; }
.cs-pillar-num {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .08em;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--ink);
}
.cs-pillar-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 17px;
  margin-bottom: 4px;
}
.cs-pillar-desc {
  font-size: 14px;
  color: var(--ink-muted);
  line-height: 1.55;
  max-width: 440px;
}

.cs-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 36px 0;
}
.cs-stat {
  padding: 0 28px;
  border-right: 1px solid var(--line);
}
.cs-stat:last-child { border-right: none; }
.cs-stat:first-child { padding-left: 0; }
.cs-stat-value {
  font-family: var(--font-display);
  font-size: clamp(36px, 4vw, 56px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}
.cs-stat-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

@media (max-width: 900px) {
  .cs-grid { grid-template-columns: 1fr; gap: 60px; margin-bottom: 56px; }
  .cs-image-wrap { aspect-ratio: 4/3; }
  .cs-image-tag { right: 16px; bottom: -20px; }
  .cs-stats { grid-template-columns: repeat(2, 1fr); gap: 28px 0; padding: 28px 0; }
  .cs-stat { padding: 0 16px; border-right: 1px solid var(--line); }
  .cs-stat:nth-child(2n) { border-right: none; }
  .cs-stat:first-child { padding-left: 0; }
  .cs-stat:nth-child(3) { padding-left: 0; }
}

/* ============== MARCHI ============== */
.marchi {
  background: var(--surface-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.brand-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
  background: var(--surface);
}
.brand-tile {
  position: relative;
  padding: 36px 28px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--surface);
  transition: background .25s ease, transform .25s ease;
  min-height: 140px;
  overflow: hidden;
}
.brand-tile:hover {
  background: #fff;
  z-index: 2;
}
.brand-mark {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.brand-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 26px;
  letter-spacing: -0.015em;
  color: var(--ink);
  line-height: 1;
}
.brand-sub {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.brand-arrow {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--line-2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-muted);
  opacity: 0;
  transform: translateX(-8px) rotate(-30deg);
  transition: opacity .25s ease, transform .25s ease, background .25s ease, color .25s ease, border-color .25s ease;
}
.brand-tile:hover .brand-arrow {
  opacity: 1;
  transform: translateX(0) rotate(0deg);
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
}
.brand-hairline {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--brand);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .35s cubic-bezier(.2,.6,.2,1);
}
.brand-tile:hover .brand-hairline { transform: scaleX(1); }

.marchi-foot {
  margin-top: 48px;
  border-top: 1px dashed var(--line-2);
  padding-top: 24px;
}
.marchi-foot-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.marchi-foot-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}
.marchi-foot-list span:nth-child(even) { color: var(--brand); font-weight: 400; }

@media (max-width: 980px) { .brand-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 720px) {
  .brand-grid { grid-template-columns: repeat(2, 1fr); }
  .brand-tile { min-height: 110px; padding: 24px 18px; }
  .brand-name { font-size: 20px; }
}

/* ============== CATEGORIE ============== */
.categorie {
  background: var(--bg);
}
.cat-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: 1fr;
  gap: 14px;
}
/* asymmetric: first card big */
.cat-card {
  position: relative;
  grid-column: span 2;
  aspect-ratio: 4/5;
  overflow: hidden;
  border-radius: var(--r-md);
  display: flex;
  color: #fff;
  transition: transform .35s cubic-bezier(.2,.6,.2,1);
  isolation: isolate;
}
.cat-card-0 { grid-column: span 3; }
.cat-card-1 { grid-column: span 3; }
.cat-card-2 { grid-column: span 2; }
.cat-card-3 { grid-column: span 2; }
.cat-card-4 { grid-column: span 2; }
.cat-card-5 { grid-column: span 3; grid-row: span 1; }

.cat-card:hover { }
.cat-card-img {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform .8s cubic-bezier(.2,.6,.2,1);
  z-index: 0;
}
.cat-card:hover .cat-card-img { transform: scale(1.06); }
.cat-card-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(14,15,17,.15) 0%, rgba(14,15,17,.85) 90%),
    linear-gradient(180deg, rgba(14,15,17,.4) 0%, rgba(14,15,17,0) 30%);
  transition: background .3s ease;
  z-index: 1;
}
.cat-card:hover .cat-card-overlay {
  background:
    linear-gradient(180deg, rgba(233,78,27,.05) 0%, rgba(14,15,17,.92) 90%);
}
.cat-card-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 28px;
  width: 100%;
}
.cat-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}
.cat-card-num { color: rgba(255,255,255,.75); }
.cat-card-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: rgba(255,255,255,.08);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  transition: background .3s ease, border-color .3s ease;
}
.cat-card:hover .cat-card-icon {
  background: var(--brand);
  border-color: var(--brand);
}
.cat-card-bottom {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.cat-card-count {
  color: var(--brand);
  font-size: 11px;
  font-weight: 500;
}
.cat-card-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(24px, 2.4vw, 36px);
  letter-spacing: -0.02em;
  line-height: 1;
  margin: 0;
}
.cat-card-desc {
  font-size: 14px;
  line-height: 1.55;
  color: rgba(255,255,255,.78);
  margin: 0;
  max-width: 360px;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height .35s ease, opacity .35s ease, margin .35s ease;
}
.cat-card:hover .cat-card-desc {
  max-height: 100px;
  opacity: 1;
  margin-top: 4px;
}
.cat-card-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  border-top: 1px solid rgba(255,255,255,.18);
  padding-top: 14px;
  margin-top: 6px;
  transition: color .2s ease;
}
.cat-card-cta svg { transition: transform .25s ease; }
.cat-card:hover .cat-card-cta { color: var(--brand); }
.cat-card:hover .cat-card-cta svg { transform: translateX(4px); }

@media (max-width: 980px) {
  .cat-grid { grid-template-columns: repeat(4, 1fr); }
  .cat-card { grid-column: span 2 !important; }
}
@media (max-width: 600px) {
  .cat-grid { grid-template-columns: 1fr; gap: 12px; }
  .cat-card { grid-column: span 1 !important; aspect-ratio: 4/3; }
  .cat-card-desc { max-height: 100px; opacity: 1; margin-top: 4px; }
}

/* ============== SERVIZI ============== */
.servizi {
  background-color: var(--surface-dark);
  /* Immagine di sfondo (da assets/hero/) con overlay scuro sopra: più scuro
     verso il basso, dove ci sono i testi delle card, per la leggibilità.
     Per cambiare foto, sostituisci il nome del file qui sotto. */
  background-image:
    linear-gradient(180deg, rgba(16,20,23,.80) 0%, rgba(16,20,23,.90) 45%, rgba(16,20,23,.95) 100%),
    url('../assets/hero/hero-08.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: var(--ink-inverse);
  position: relative;
  overflow: hidden;
}
.servizi::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--brand) 30%, var(--brand) 70%, transparent);
  opacity: .5;
}
.servizi .eyebrow.inverse { color: rgba(255,255,255,.7); }
.servizi .h-1 { color: #fff; }
.servizi .h-1 em { color: var(--brand); font-style: normal; font-weight: 700; }
.servizi .section-head-right p { color: rgba(255,255,255,.7); }

.svc-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid rgba(255,255,255,.12);
  border-left: 1px solid rgba(255,255,255,.12);
}
.svc-card {
  border-right: 1px solid rgba(255,255,255,.12);
  border-bottom: 1px solid rgba(255,255,255,.12);
  padding: 36px 28px 32px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  transition: background .25s ease;
}
.svc-card:hover { background: var(--surface-dark-2); }
.svc-card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}
.svc-card-num {
  color: rgba(255,255,255,.4);
  font-size: 10px;
}
.svc-card-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.14);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand);
  transition: background .3s ease, transform .3s ease;
}
.svc-card:hover .svc-card-icon { background: var(--brand); color: #fff; }
.svc-card-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -0.018em;
  margin: 0;
  color: #fff;
  margin-top: 28px;
}
.svc-card-desc {
  font-size: 14px;
  color: rgba(255,255,255,.7);
  line-height: 1.6;
  margin: 0;
}
.svc-card-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 12px;
  border-top: 1px dashed rgba(255,255,255,.16);
}
.svc-card-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: rgba(255,255,255,.85);
}
.svc-card-list svg { color: var(--brand); }

@media (max-width: 900px) {
  .svc-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
  .svc-grid { grid-template-columns: 1fr; }
}

/* ============== AGRICOLTURA DI PRECISIONE (AGCO Smart Farming) ============== */
.precision {
  background: var(--bg);
  border-top: 1px solid var(--line);
}
.prec-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 48px;
}
.prec-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 28px 24px 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.prec-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--line-2);
}
.prec-card-tag {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.14em;
  color: var(--brand);
}
.prec-card-title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0;
  color: var(--ink);
}
.prec-card-desc {
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink-muted);
  margin: 0;
  flex: 1;
}
.prec-card-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  transition: gap .2s ease, color .2s ease;
}
.prec-card:hover .prec-card-cta { color: var(--brand); gap: 10px; }
.prec-foot {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 36px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--ink-muted);
}
.prec-foot .caps { color: var(--ink); letter-spacing: 0.12em; }
.prec-foot-sep { color: var(--ink-muted); }
.prec-foot a {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--brand);
  font-weight: 600;
}
@media (max-width: 980px) {
  .prec-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .prec-grid { grid-template-columns: 1fr; }
  .prec-foot a { margin-left: 0; }
}

/* Sezioni Ricambi (AGCO Parts) e Assistenza — riusano le card .prec-* */
.ricambi {
  background: var(--surface-2);
  border-top: 1px solid var(--line);
}
.assistenza {
  background: var(--bg);
  border-top: 1px solid var(--line);
}

/* Loghi marchi ufficiali (Massey Ferguson / AGCO) — sezione Marchi */
.brand-logos {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 48px;
}
/* MF: logo AGCO più piccolo sotto, "MF è un marchio del gruppo AGCO" */
.brand-logo-agco {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  width: 100%;
  margin-top: 4px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.brand-logo-agco img { height: 24px; width: auto; opacity: .9; }
.brand-logo-agco span { font-size: 11px; color: var(--ink-muted); }
/* Nome marchio come segnaposto finché non arriva il logo ufficiale */
.brand-logo-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 30px;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.brand-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 22px;
  padding: 48px 32px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  text-align: center;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.brand-logo:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--line-2); }
.brand-logo img {
  height: clamp(58px, 8vw, 92px);
  width: auto;
  max-width: 100%;
  object-fit: contain;
}
.brand-logo-meta {
  display: flex;
  flex-direction: column;
  gap: 3px;
  font-size: 13px;
  color: var(--ink-muted);
}
.brand-logo-meta .caps {
  color: var(--brand);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.14em;
}
@media (max-width: 700px) {
  .brand-logos { grid-template-columns: 1fr; }
}
