/* ============================================
   SARTORI METALS — Stylesheet v2
   Industrial identity, not template.
   ============================================ */

/* --- Google Fonts --- */
/* Caricati via <link> nell'<head> delle pagine HTML per evitare render-blocking */

/* --- 1. Custom Properties --- */
:root {
  /* --- Palette stile PDF: antracite + accento oro, tricolore su logo --- */
  --dark-primary: #1e1e22;   /* sezioni scure / stats */
  --dark-deep: #000000;      /* header, footer, hero, cta (nero PDF) */
  --dark-card: #2a2a30;      /* card macchine */
  --light-bg: #17171a;       /* sfondo base pagina (ex chiaro) */
  --light-card: #26262b;     /* card / sezioni alt (antracite interno PDF) */
  --border-light: rgba(255,255,255,0.10);
  --text-dark: #ededf0;      /* testo principale (ora chiaro) */
  --text-muted: #a2a2ac;     /* testo attenuato su scuro */
  --green: #f2ce43;          /* ACCENTO PRIMARIO = ORO (stile PDF) */
  --green-dark: #e2bd34;     /* oro hover */
  --red: #dc1529;            /* rosso tricolore (logo/accenti) */
  --red-bright: #e63946;
  --accent: #f2ce43;
  --gold: #f8e048;           /* oro brillante (titoli PDF) */
  --gold-soft: #ffe14d;      /* oro chiaro (eyebrow/testo PDF) */
  --brand-green: #00985e;    /* verde tricolore (riservato al logo) */
  --text-on-dark: #f0f0f0;
  --text-muted-dark: #8f8f99;

  --font-heading: 'Bebas Neue', 'Impact', sans-serif;
  --font-body: 'Source Sans 3', 'Segoe UI', system-ui, sans-serif;

  --header-height: 64px;
  --max-width: 1140px;
  --section-padding: clamp(48px, 6vw, 88px) 24px;
  --radius: 2px;
}

/* --- 2. Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-height) + 48px); }
html.motion-ready { scrollbar-width: none; }
html.motion-ready::-webkit-scrollbar { display: none; }
body {
  font-family: var(--font-body);
  color: var(--text-dark);
  background: var(--light-bg);
  line-height: 1.7;
  font-weight: 400;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a { color: inherit; text-decoration: none; cursor: pointer; }
:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

/* --- 3. Typography --- */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  line-height: 1.0;
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
h1 { font-size: clamp(2.2rem, 5vw, 4rem); }
h2 { font-size: clamp(2rem, 4vw, 2.8rem); margin-bottom: 0.6rem; }
h3 { font-size: clamp(1.3rem, 2vw, 1.6rem); margin-bottom: 0.4rem; }
h4 { font-size: 1.2rem; }
p { margin-bottom: 1rem; }

.section-subtitle {
  font-family: var(--font-body);
  text-transform: none;
  color: var(--text-muted);
  font-size: 1.05rem;
  font-weight: 300;
  max-width: 720px;
  margin: 0 auto 2.5rem;
  text-align: center;
  letter-spacing: 0;
  line-height: 1.6;
}
.section-label {
  font-family: var(--font-body);
  text-transform: uppercase;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  color: var(--green);
  margin-bottom: 0.5rem;
  display: block;
}

/* --- 4. Container --- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* --- 5. Header / Nav --- */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: var(--dark-deep);
  height: var(--header-height);
  display: flex;
  align-items: center;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}
.header__logo img,
img.header__logo {
  height: 32px;
  width: auto;
  mix-blend-mode: lighten;
}
.nav { display: flex; align-items: center; gap: 2px; }
.nav__link {
  color: var(--text-muted-dark);
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 8px 14px;
  transition: color 0.2s;
  white-space: nowrap;
}
.nav__link:hover { color: var(--text-on-dark); }
.nav__link--active {
  color: var(--text-on-dark);
  position: relative;
}
.nav__link--active::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 14px;
  right: 14px;
  height: 2px;
  background: var(--green);
}
.lang-switch {
  color: var(--text-muted-dark);
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 5px 10px;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius);
  margin-left: 16px;
  letter-spacing: 0.05em;
  transition: all 0.2s;
}
.lang-switch:hover { border-color: var(--green); color: var(--green); }

/* --- 6. Hamburger Menu --- */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  background: none;
  border: none;
}
.hamburger__line {
  width: 22px;
  height: 2px;
  background: var(--text-on-dark);
  transition: transform 0.3s, opacity 0.3s;
}
.hamburger.active .hamburger__line:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active .hamburger__line:nth-child(2) { opacity: 0; }
.hamburger.active .hamburger__line:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav {
  display: none;
  position: fixed;
  top: var(--header-height);
  left: 0; right: 0;
  background: var(--dark-deep);
  padding: 16px 24px 24px;
  flex-direction: column;
  gap: 2px;
  z-index: 999;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.mobile-nav.open { display: flex; }
.mobile-nav .nav__link { font-size: 0.9rem; padding: 12px 0; }
.mobile-nav .nav__link--active::after { left: 0; right: auto; width: 24px; }

/* --- 7. Hero Section --- */
.hero {
  margin-top: var(--header-height);
  background: var(--dark-deep);
  background-size: cover;
  background-position: center;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: clamp(48px, 8vw, 80px) 24px;
  position: relative;
  overflow: hidden;
}
.hero__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.4) 40%, rgba(0,0,0,0.7) 100%),
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 80px,
      rgba(255,255,255,0.02) 80px,
      rgba(255,255,255,0.02) 81px
    );
  pointer-events: none;
  z-index: 1;
}
.hero__logo {
  height: 52px;
  width: auto;
  margin-bottom: 32px;
  position: relative;
  z-index: 2;
  mix-blend-mode: lighten;
}
.hero__tagline {
  font-family: var(--font-heading);
  color: var(--text-on-dark);
  font-size: clamp(2.4rem, 6vw, 4.5rem);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 16px;
  position: relative;
  z-index: 2;
  line-height: 1.0;
  text-shadow: 0 2px 40px rgba(0,0,0,0.5);
}
.hero__sub {
  color: rgba(255,255,255,0.75);
  font-size: 1.05rem;
  font-weight: 300;
  letter-spacing: 0.02em;
  margin-bottom: 40px;
  position: relative;
  z-index: 2;
  max-width: 500px;
  text-shadow: 0 1px 10px rgba(0,0,0,0.5);
}
.hero .btn {
  position: relative;
  z-index: 2;
}

/* Hero cinematic background (Ken Burns) */
.hero__bg {
  position: absolute;
  top: -8%;
  left: 0;
  right: 0;
  height: 116%;
  z-index: 0;
  overflow: hidden;
  will-change: transform;
}
.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
  animation: heroZoom 24s ease-in-out infinite alternate;
  will-change: transform;
}
@keyframes heroZoom {
  from { transform: scale(1.02); }
  to   { transform: scale(1.12); }
}

/* Hero industrial grain */
.hero__grain {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.06;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Hero gold eyebrow */
.hero__eyebrow {
  position: relative;
  z-index: 2;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold-soft);
  margin-bottom: 18px;
  padding-left: 0.32em;
  text-shadow: 0 1px 12px rgba(0,0,0,0.7);
  animation: heroFade 0.7s 0.3s ease both;
}
@keyframes heroFade {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Hero spark divider (green -> gold -> red), draws in */
.hero__spark {
  position: relative;
  z-index: 2;
  width: 140px;
  height: 2px;
  margin: 4px 0 26px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--green) 0%, var(--gold) 50%, var(--red-bright) 100%);
  box-shadow: 0 0 14px rgba(212,175,55,0.45);
  transform: scaleX(0);
  transform-origin: center;
  animation: sparkDraw 0.9s 0.5s ease forwards;
}
.hero__spark::after {
  content: '';
  position: absolute;
  top: -3px;
  left: 50%;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold-soft);
  box-shadow: 0 0 12px 3px rgba(230,199,102,0.7);
  transform: translateX(-50%);
  animation: sparkGlow 2.6s 1.4s ease-in-out infinite;
}
@keyframes sparkDraw {
  to { transform: scaleX(1); }
}
@keyframes sparkGlow {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

/* Hero scroll indicator */
.hero__scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.hero__scroll span {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: rgba(255,255,255,0.4);
  font-weight: 500;
}
.hero__scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.4), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { opacity: 1; transform: scaleY(1); }
  50% { opacity: 0.3; transform: scaleY(0.6); }
}

/* Hero reveal animations */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  animation: revealUp 0.8s ease forwards;
}
.reveal--delay-1 { animation-delay: 0.15s; }
.reveal--delay-2 { animation-delay: 0.3s; }
.reveal--delay-3 { animation-delay: 0.45s; }
@keyframes revealUp {
  to { opacity: 1; transform: translateY(0); }
}

/* --- Buttons --- */
.btn {
  display: inline-block;
  padding: 14px 36px;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: all 0.2s ease;
  cursor: pointer;
  border: none;
  text-align: center;
}
.btn:hover { transform: translateY(-1px); }
.btn--green {
  background: var(--green);
  color: #1a1a1a;
  font-weight: 700;
}
.btn--green:hover {
  background: var(--green-dark);
  box-shadow: 0 4px 20px rgba(242,206,67,0.32);
}
.btn--red { background: var(--red); color: var(--text-on-dark); }
.btn--outline {
  background: transparent;
  color: var(--text-on-dark);
  border: 1px solid rgba(255,255,255,0.25);
}
.btn--outline:hover {
  border-color: var(--text-on-dark);
  background: rgba(255,255,255,0.05);
}
.btn--dark {
  background: var(--dark-primary);
  color: var(--text-on-dark);
  border: 1px solid rgba(255,255,255,0.18);
}
.btn--dark:hover {
  background: var(--dark-deep);
  border-color: var(--green);
  color: var(--green);
}
.btn--link {
  background: none;
  color: var(--text-dark);
  padding: 0;
  font-weight: 600;
  letter-spacing: 0.08em;
  border-bottom: 2px solid var(--green);
  border-radius: 0;
}
.btn--link:hover {
  color: var(--green);
  transform: none;
}

/* --- 7b. Trust Bar --- */
.trust-bar {
  background: var(--dark-primary);
  border-top: 3px solid var(--green);
  padding: 20px 24px;
  text-align: center;
}
.trust-bar__label {
  display: block;
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-muted-dark);
  margin-bottom: 14px;
}
.trust-bar__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(24px, 5vw, 56px);
  max-width: var(--max-width);
  margin: 0 auto;
  flex-wrap: wrap;
}
.trust-bar__inner img {
  height: 28px;
  width: auto;
  opacity: 0.4;
  filter: grayscale(1) brightness(2);
  transition: opacity 0.3s, filter 0.3s;
}
.trust-bar__inner img:hover {
  opacity: 1;
  filter: none;
}
@media (max-width: 768px) {
  .trust-bar__inner { gap: 20px 28px; }
  .trust-bar__inner img { height: 22px; }
}

/* --- 8. Stats Bar --- */
.stats {
  background: var(--dark-primary);
  padding: 48px 24px;
  border-top: 3px solid var(--green);
}
.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  max-width: var(--max-width);
  margin: 0 auto;
  text-align: center;
}
.stat__number {
  font-family: var(--font-heading);
  font-size: 3.2rem;
  font-weight: 400;
  color: var(--gold);
  line-height: 1;
  letter-spacing: 0.02em;
}
.stat__label {
  font-family: var(--font-body);
  color: var(--text-muted-dark);
  font-size: 0.78rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 8px;
}

/* --- 9. Sections --- */
.section {
  padding: var(--section-padding);
}
.section--dark {
  background: var(--dark-primary);
  color: var(--text-on-dark);
}
.section--dark .section-subtitle { color: var(--text-muted-dark); }
.section--alt { background: var(--light-card); }
.section__header {
  text-align: center;
  margin-bottom: 3.5rem;
}
.section--dark h2 { color: var(--text-on-dark); }

/* Diagonal separator */
.section--angled {
  position: relative;
  padding-top: 120px;
}
.section--angled::before {
  content: '';
  position: absolute;
  top: -40px;
  left: 0;
  right: 0;
  height: 80px;
  background: inherit;
  clip-path: polygon(0 50%, 100% 0, 100% 100%, 0 100%);
}

/* --- 9b. About Split --- */
.about-split {
  display: grid;
  grid-template-columns: 1fr 0.85fr;
  gap: clamp(32px, 4vw, 64px);
  align-items: center;
  max-width: var(--max-width);
  margin: 0 auto;
}
.about-split__text h2 {
  text-align: left;
  font-size: 2.6rem;
}
.about-split__text p {
  color: var(--text-muted);
  line-height: 1.8;
}
.about-split__image {
  position: relative;
  width: fit-content;
  margin: 0 auto;
}
.about-split__image img {
  border-radius: var(--radius);
  display: block;
  margin: 0 auto;
  max-width: 100%;
  max-height: 60vh;
  width: auto;
  height: auto;
  border: 1px solid rgba(255,255,255,0.08);
}
.about-split__accent {
  position: absolute;
  bottom: -16px;
  left: -16px;
  width: 120px;
  height: 120px;
  border: 3px solid var(--green);
  border-radius: var(--radius);
  z-index: -1;
}

/* --- 9c. Scroll Reveal --- */
.scroll-reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.scroll-reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger service cards */
.services-grid .scroll-reveal:nth-child(1) { transition-delay: 0s; }
.services-grid .scroll-reveal:nth-child(2) { transition-delay: 0.08s; }
.services-grid .scroll-reveal:nth-child(3) { transition-delay: 0.16s; }
.services-grid .scroll-reveal:nth-child(4) { transition-delay: 0.24s; }
.services-grid .scroll-reveal:nth-child(5) { transition-delay: 0.32s; }
.services-grid .scroll-reveal:nth-child(6) { transition-delay: 0.4s; }

/* Stagger machine cards */
.machinery-grid .scroll-reveal:nth-child(1) { transition-delay: 0s; }
.machinery-grid .scroll-reveal:nth-child(2) { transition-delay: 0.1s; }
.machinery-grid .scroll-reveal:nth-child(3) { transition-delay: 0.2s; }

@media (max-width: 768px) {
  .about-split { grid-template-columns: 1fr; gap: 32px; }
  .about-split__text h2 { font-size: 2rem; }
  .about-split__accent { display: none; }
  .hero__scroll { display: none; }
}

/* --- 10. Service Cards --- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: var(--max-width);
  margin: 0 auto;
}
.service-card {
  background: var(--light-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 36px 28px;
  display: block;
  transition: border-color 0.2s, box-shadow 0.2s;
  cursor: pointer;
  position: relative;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 0;
  background: var(--green);
  transition: height 0.3s ease;
}
.service-card:hover::before { height: 100%; }
.service-card:hover {
  border-color: var(--green);
  box-shadow: 0 8px 30px rgba(0,0,0,0.06);
}
.service-card__icon {
  width: 48px;
  height: 48px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--green);
}
.service-card__icon svg {
  width: 32px;
  height: 32px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.service-card__title {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  margin-bottom: 8px;
  letter-spacing: 0.03em;
}
.service-card__text { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 0; line-height: 1.6; }

/* Service detail */
.service-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  margin-bottom: 80px;
  padding-bottom: 80px;
  border-bottom: 1px solid var(--border-light);
}
.service-detail:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.service-detail:nth-child(even) { direction: rtl; }
.service-detail:nth-child(even) > * { direction: ltr; }
.service-detail__image {
  border-radius: var(--radius);
}
.service-detail__image img {
  display: block;
  margin: 0 auto;
  max-width: 100%;
  max-height: 440px;
  width: auto;
  height: auto;
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,0.08);
}
.service-detail__badge {
  display: inline-block;
  background: var(--dark-primary);
  color: var(--text-on-dark);
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 5px 12px;
  border-radius: var(--radius);
  margin-bottom: 16px;
}

/* --- 11. Machinery Cards --- */
.machinery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  max-width: var(--max-width);
  margin: 0 auto;
}
.machine-card {
  background: var(--dark-card);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.2s;
  cursor: default;
}
.machine-card:hover {
  border-color: rgba(255,255,255,0.15);
}
.machine-card__image {
  aspect-ratio: 16/10;
  max-height: 35vh;
  background: rgba(255,255,255,0.03);
  overflow: hidden;
}
.machine-card__image img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.4s ease;
}
.machine-card:hover .machine-card__image img { transform: scale(1.03); }
.machine-card__body { padding: 20px; }
.machine-card__category {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--green);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 6px;
}
.machine-card__name {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  color: var(--text-on-dark);
  margin-bottom: 8px;
  letter-spacing: 0.02em;
}
.machine-card__specs { color: var(--text-muted-dark); font-size: 0.85rem; margin-bottom: 0; }

/* --- 11b. Partner / IA Italia Block --- */
.partner-block {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
  max-width: var(--max-width);
  margin: 0 auto;
}
.partner-block__text h2 { text-align: left; }
.partner-block__text p { color: var(--text-muted); line-height: 1.7; }
.partner-block__logo {
  text-align: center;
  perspective: 1000px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.partner-logo-float {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 32px;
}
.partner-logo-float img {
  width: 100%;
  max-width: min(320px, 40vw);
  height: auto;
  animation: logoFloat 6s ease-in-out infinite;
}
@keyframes logoFloat {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-20px); }
}
.partner-block__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.partner-stat {
  text-align: center;
  padding: 16px 8px;
  background: var(--light-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
}
.partner-stat strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.6rem;
  color: #D4AF37;
  letter-spacing: 0.02em;
  line-height: 1;
  margin-bottom: 4px;
}
.partner-stat span {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 500;
}

/* Footer partner badge */
.footer__partner {
  text-align: center;
  padding: 20px 0;
  margin-bottom: 20px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  max-width: var(--max-width);
  margin: 0 auto 20px;
}
.footer__partner-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  opacity: 0.6;
  transition: opacity 0.2s;
}
.footer__partner-link:hover { opacity: 1; }
.footer__partner-logo {
  height: 28px;
  width: auto;
}
.footer__partner-link span {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 500;
  color: var(--text-muted-dark);
}

@media (max-width: 768px) {
  .partner-block { grid-template-columns: 1fr; gap: 32px; }
  .partner-logo-float img { max-width: 240px; }
  .partner-block__stats { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .partner-stat strong { font-size: 1.3rem; }
}

/* --- 12. CTA Band --- */
.cta-band {
  background: var(--dark-deep);
  padding: clamp(48px, 6vw, 80px) 24px;
  text-align: center;
  color: var(--text-on-dark);
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--green), var(--red-bright));
}
.cta-band h2 { color: var(--text-on-dark); margin-bottom: 1rem; }
.cta-band p {
  color: var(--text-muted-dark);
  margin-bottom: 2rem;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
  font-weight: 300;
}

/* --- 13. Footer --- */
.footer {
  background: var(--dark-deep);
  color: var(--text-muted-dark);
  padding: 64px 24px 28px;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 1fr;
  gap: 48px;
  max-width: var(--max-width);
  margin: 0 auto 40px;
}
.footer h3,
.footer h4 {
  font-family: var(--font-heading);
  color: var(--text-on-dark);
  margin-bottom: 16px;
  font-size: 1.3rem;
  letter-spacing: 0.04em;
}
.footer a { transition: color 0.2s; }
.footer a:hover { color: var(--green); }
.footer__links { display: flex; flex-direction: column; gap: 8px; }
.footer__links a {
  font-size: 0.88rem;
  font-weight: 400;
}
.footer__contact-item {
  display: flex; gap: 10px; margin-bottom: 10px; font-size: 0.88rem; align-items: flex-start;
}
.footer__contact-item svg {
  width: 16px;
  height: 16px;
  stroke: var(--green);
  fill: none;
  stroke-width: 2;
  flex-shrink: 0;
  margin-top: 3px;
}
.footer__map { border-radius: var(--radius); overflow: hidden; }
.footer__map iframe { width: 100%; height: 200px; border: none; }
.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding-top: 20px;
  text-align: center;
  font-size: 0.78rem;
  max-width: var(--max-width);
  margin: 0 auto;
}

/* --- 14. Internal Page Hero --- */
.page-hero {
  margin-top: var(--header-height);
  background: var(--dark-deep);
  padding: 72px 24px 64px;
  text-align: center;
  position: relative;
}
.page-hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--green), transparent 50%, var(--red-bright));
}
.page-hero h1 {
  color: var(--text-on-dark);
  font-size: 3rem;
  margin-bottom: 8px;
}
.page-hero p {
  font-family: var(--font-body);
  text-transform: none;
  color: var(--text-muted-dark);
  font-size: 1rem;
  font-weight: 300;
  margin-bottom: 0;
  letter-spacing: 0;
}

/* --- 15. Timeline --- */
.timeline {
  position: relative;
  max-width: 640px;
  margin: 0 auto;
  padding-left: 48px;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 18px;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--border-light);
}
.timeline__item {
  position: relative;
  margin-bottom: 48px;
}
.timeline__item::before {
  content: '';
  position: absolute;
  left: -38px;
  top: 6px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--green);
}
.timeline__year {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  color: var(--green);
  margin-bottom: 4px;
  letter-spacing: 0.04em;
}
.timeline__text { color: var(--text-muted); font-size: 0.95rem; margin-bottom: 0; }

/* --- 16. Values Cards --- */
.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: var(--max-width);
  margin: 0 auto;
}
.value-card {
  background: var(--light-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 36px 28px;
  text-align: left;
}
.value-card__icon {
  width: 48px;
  height: 48px;
  margin-bottom: 20px;
  color: var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
}
.value-card__icon svg {
  width: 32px;
  height: 32px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.value-card__title {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  margin-bottom: 8px;
  letter-spacing: 0.03em;
}
.value-card__text { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 0; line-height: 1.6; }

/* --- 17. Gallery --- */
.gallery-filters {
  display: flex;
  gap: 6px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}
.filter-btn {
  padding: 8px 20px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  background: var(--light-card);
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  transition: all 0.2s;
}
.filter-btn:hover, .filter-btn.active {
  background: var(--dark-primary);
  color: var(--text-on-dark);
  border-color: var(--dark-primary);
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 12px;
  max-width: var(--max-width);
  margin: 0 auto;
}
.gallery-item {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4/3;
  cursor: pointer;
  position: relative;
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.gallery-item:hover img { transform: scale(1.05); }
.gallery-item__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s;
}
.gallery-item:hover .gallery-item__overlay { opacity: 1; }
.gallery-item__overlay span { color: var(--text-on-dark); font-size: 1.5rem; }
.gallery-item__overlay svg {
  width: 28px;
  height: 28px;
  stroke: var(--text-on-dark);
  fill: none;
  stroke-width: 2;
}

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0,0,0,0.92);
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 90vw; max-height: 85vh; border-radius: var(--radius); }
.lightbox__close {
  position: absolute;
  top: 24px;
  right: 32px;
  color: var(--text-on-dark);
  font-size: 1.5rem;
  cursor: pointer;
  background: none;
  border: none;
  padding: 8px;
  opacity: 0.7;
  transition: opacity 0.2s;
}
.lightbox__close:hover { opacity: 1; }

/* --- 18. Contact Form --- */
.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 48px;
  max-width: var(--max-width);
  margin: 0 auto;
}
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 6px;
  color: var(--text-dark);
}
.form-group input,
.form-group textarea {
  width: 100%;
  padding: 13px 16px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: border-color 0.2s;
  background: var(--light-card);
}
.form-group input:focus-visible,
.form-group textarea:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 2px;
  border-color: var(--dark-primary);
}
.form-group textarea { resize: vertical; min-height: 130px; }
.form-group input.error,
.form-group textarea.error { border-color: var(--red); }
.form-error { color: var(--red); font-size: 0.8rem; margin-top: 4px; display: none; }
.form-group input.error + .form-error,
.form-group textarea.error + .form-error { display: block; }

/* Consenso privacy: checkbox non pre-spuntata, obbligatoria (art. 7 GDPR).
   Serve annullare display:block/width:100%/uppercase ereditati da .form-group */
.form-group--consent { margin-bottom: 24px; }
.form-group--consent .form-consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 0;
  font-size: 0.85rem;
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  line-height: 1.5;
  color: var(--text-muted);
  cursor: pointer;
}
.form-group--consent input[type="checkbox"] {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin-top: 2px;
  padding: 0;
  accent-color: var(--green);
  cursor: pointer;
}
.form-group--consent a { color: var(--green); text-decoration: underline; }
.form-group--consent input[type="checkbox"].error { outline: 2px solid var(--red); outline-offset: 2px; }
.form-group--consent.error .form-error { display: block; }

/* File upload */
.form-group input[type="file"] {
  padding: 10px 12px;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 0.88rem;
}
.form-group input[type="file"]::file-selector-button {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--dark-deep);
  background: var(--green);
  border: none;
  border-radius: var(--radius);
  padding: 8px 14px;
  margin-right: 14px;
  cursor: pointer;
  transition: background 0.2s;
}
.form-group input[type="file"]:hover::file-selector-button { background: var(--green-dark); }
.form-hint { color: var(--text-muted); font-size: 0.78rem; margin-top: 6px; display: block; line-height: 1.5; }

.contact-info { padding-top: 8px; }
.contact-info__item {
  display: flex;
  gap: 14px;
  margin-bottom: 24px;
  align-items: flex-start;
}
.contact-info__icon {
  width: 40px;
  height: 40px;
  background: var(--dark-primary);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.contact-info__icon svg {
  width: 18px;
  height: 18px;
  stroke: var(--green);
  fill: none;
  stroke-width: 2;
}
.contact-info__text h4 {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: none;
  margin-bottom: 2px;
  letter-spacing: 0;
}
.contact-info__text p { font-size: 0.88rem; color: var(--text-muted); margin-bottom: 0; }

.form-privacy { font-size: 0.78rem; color: var(--text-muted); margin-top: 12px; line-height: 1.5; }
.form-success {
  display: none;
  background: var(--green);
  color: #1a1a1a;
  padding: 16px;
  border-radius: var(--radius);
  text-align: center;
  margin-top: 16px;
}
.form-banner-error {
  background: rgba(220, 21, 41, 0.12);
  border: 1px solid var(--red);
  color: #ff6b78;
  padding: 12px 16px;
  border-radius: var(--radius);
  margin-bottom: 20px;
  font-size: 0.9rem;
}

/* --- 19. Responsive --- */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .values-grid { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .service-detail { grid-template-columns: 1fr; }
  .service-detail:nth-child(even) { direction: ltr; }
}

@media (max-width: 768px) {
  :root { --section-padding: 64px 20px; }
  h1 { font-size: 2.4rem; }
  h2 { font-size: 2rem; }

  .nav { display: none; }
  .lang-switch--desktop { display: none; }
  .hamburger { display: flex; }

  .hero { min-height: 60vh; min-height: 60dvh; padding: 36px 20px; }
  .hero__logo { height: 36px; }

  .stats__grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .stat__number { font-size: 2.4rem; }

  .services-grid { grid-template-columns: 1fr; }
  .values-grid { grid-template-columns: 1fr; }
  .machinery-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }

  .service-detail { grid-template-columns: 1fr; gap: 24px; }
}

/* --- 20. Legal Content --- */
.legal-content {
  max-width: 780px;
  margin: 0 auto;
}
.legal-content h2 {
  font-size: 1.8rem;
  margin-top: 2.5rem;
  margin-bottom: 0.5rem;
}
.legal-content h3 {
  font-size: 1.3rem;
  margin-top: 1.5rem;
  margin-bottom: 0.4rem;
  color: var(--text-dark);
}
.legal-content h4 {
  font-size: 1rem;
  margin-top: 1.2rem;
  margin-bottom: 0.3rem;
  color: var(--text-dark);
}
.legal-content p,
.legal-content li {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.7;
}
.legal-content a { color: var(--green); text-decoration: underline; }
.legal-content a:hover { color: var(--green-dark); }

/* --- 21. Cookie Banner --- */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1500;
  background: var(--dark-deep);
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 20px 24px;
  transform: translateY(100%);
  transition: transform 0.4s ease;
}
.cookie-banner--visible {
  transform: translateY(0);
}
.cookie-banner__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.cookie-banner p {
  color: var(--text-muted-dark);
  font-size: 0.85rem;
  margin-bottom: 0;
  line-height: 1.5;
  flex: 1;
}
.cookie-banner a {
  color: var(--green);
  text-decoration: underline;
}
.cookie-banner a:hover { color: var(--text-on-dark); }
.cookie-banner__actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}
/* "Rifiuta" e "Accetta" devono avere identico rilievo grafico (Provv. Garante
   n. 231/2021): stesse dimensioni, stesso peso, entrambi pieni. Non alterare
   padding/font di uno solo dei due. */
.cookie-banner__btn {
  padding: 10px 24px;
  font-size: 0.8rem;
  font-weight: 700;
  min-width: 132px;
}
.cookie-banner__btn--accept {
  background: var(--green);
  color: #1a1a1a;
}
.cookie-banner__btn--accept:hover { background: var(--green-dark); }
.cookie-banner__btn--reject {
  background: var(--text-on-dark);
  color: #1a1a1a;
}
.cookie-banner__btn--reject:hover { background: #ffffff; }

@media (max-width: 768px) {
  .cookie-banner__inner {
    flex-direction: column;
    text-align: center;
    gap: 16px;
  }
  .cookie-banner__actions { justify-content: center; }
  .cookie-banner__btn { flex: 1; min-width: 0; }
}

/* --- 21b. Placeholder consenso per embed di terze parti (Google Maps) --- */
.map-consent {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 200px;
  padding: 24px;
  background: rgba(255,255,255,0.03);
  border: 1px dashed var(--border-light);
  border-radius: var(--radius);
  text-align: center;
}
.map-consent--loaded {
  display: block;
  padding: 0;
  min-height: 0;
  border: none;
  background: none;
}
.map-consent--loaded iframe { display: block; width: 100%; border: 0; }
.map-consent__body { max-width: 420px; }
.map-consent__icon {
  width: 28px;
  height: 28px;
  margin-bottom: 10px;
  fill: none;
  stroke: var(--green);
  stroke-width: 1.5;
}
.map-consent__text {
  color: var(--text-muted-dark);
  font-size: 0.8rem;
  line-height: 1.5;
  margin-bottom: 14px;
}
.map-consent__btn {
  padding: 10px 22px;
  font-size: 0.78rem;
}
.map-consent__alt {
  display: block;
  margin-top: 10px;
  font-size: 0.75rem;
  color: var(--text-muted-dark);
  text-decoration: underline;
}
.map-consent__alt:hover { color: var(--text-on-dark); }

/* Su fondo chiaro (mappa grande nella pagina contatti) il placeholder si inverte */
.section:not(.section--dark) .map-consent {
  background: rgba(0,0,0,0.02);
  border-color: rgba(0,0,0,0.12);
}
.section:not(.section--dark) .map-consent__text { color: var(--text-muted); }

/* Pulsante "Preferenze cookie" nel footer: reso identico a un link */
.footer__prefs {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  color: var(--green);
  text-decoration: underline;
  cursor: pointer;
}
.footer__prefs:hover { color: var(--green-dark); }

/* --- 22. Scroll Progress Bar --- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--green);
  transform-origin: left;
  transform: scaleX(0);
  z-index: 2000;
}

/* --- 23. Motion.js Overrides --- */
/* Quando motion-fx.js è caricato, disabilita le animazioni CSS per evitare conflitti */
.motion-ready .reveal {
  animation: none;
}
.motion-ready .scroll-reveal {
  transition: none;
}

/* --- 24. Reduced Motion --- */
@media (prefers-reduced-motion: reduce) {
  .partner-logo-float img { animation: none; }
  .hero__scroll-line { animation: none; }
  .reveal { animation: none; opacity: 1; transform: none; }
  .scroll-reveal { transition: none; opacity: 1; transform: none; }
  .scroll-progress { display: none; }
  .machine-card:hover .machine-card__image img { transform: none; }
}

/* --- 25. Process Steps (Come lavorare con noi) --- */
.process-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: var(--max-width);
  margin: 0 auto;
}
.process-step {
  position: relative;
  background: var(--dark-card);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius);
  padding: 34px 28px 28px;
}
.process-step__num {
  display: block;
  font-family: var(--font-heading);
  font-size: 2.4rem;
  line-height: 1;
  color: var(--green);
  margin-bottom: 14px;
  letter-spacing: 0.02em;
}
.process-step h3 { color: var(--text-on-dark); font-size: 1.3rem; margin-bottom: 8px; }
.process-step p { color: var(--text-muted-dark); font-size: 0.9rem; margin-bottom: 0; line-height: 1.6; }

/* --- 26. Spec List (capacità produttive) --- */
.spec-list { margin: 14px 0 0; }
.spec-list li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 10px;
  color: var(--text-muted);
  font-size: 0.94rem;
  line-height: 1.5;
}
.spec-list li::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 4px;
  width: 11px;
  height: 6px;
  border-left: 2px solid var(--green);
  border-bottom: 2px solid var(--green);
  transform: rotate(-45deg);
}
.spec-list li strong { color: var(--text-dark); font-weight: 600; }

/* --- 27. Spessori badges (mini-stat inline) --- */
.spessori-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}
.spessori-badge {
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 10px 18px;
  background: var(--light-card);
  text-align: center;
}
.spessori-badge strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.5rem;
  line-height: 1;
  color: var(--green);
  margin-bottom: 3px;
}
.spessori-badge span {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  font-weight: 600;
}

@media (max-width: 768px) {
  .process-steps { grid-template-columns: 1fr; }
}

/* --- 28. Bento Gallery (In officina) --- */
.bento {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 190px;
  grid-auto-flow: dense;
  gap: 14px;
  max-width: var(--max-width);
  margin: 0 auto;
}
.bento-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,0.08);
  cursor: pointer;
  transform: perspective(900px) rotateX(0) rotateY(0);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  will-change: transform;
}
.bento-item--lg  { grid-column: span 2; grid-row: span 2; }
.bento-item--wide { grid-column: span 2; }
.bento-item img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(.22,1,.36,1);
}
.bento-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(17,17,17,0) 35%, rgba(17,17,17,0.82) 100%);
  transition: background 0.3s ease;
}
.bento-item:hover { border-color: var(--gold); box-shadow: 0 18px 40px rgba(0,0,0,0.45); }
.bento-item:hover img { transform: scale(1.07); }
.bento-item:hover::after { background: linear-gradient(180deg, rgba(17,17,17,0.15) 20%, rgba(17,17,17,0.88) 100%); }
.bento-item__caption {
  position: absolute;
  left: 0;
  bottom: 0;
  z-index: 2;
  padding: 20px 22px;
  width: 100%;
}
.bento-item__index {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--gold-soft);
  display: block;
  margin-bottom: 4px;
}
.bento-item__title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  line-height: 1;
  letter-spacing: 0.03em;
  color: var(--text-on-dark);
  text-transform: uppercase;
  margin: 0;
  transform: translateY(2px);
  transition: transform 0.3s ease;
}
.bento-item:hover .bento-item__title { transform: translateY(-2px); }
.bento-item__sub {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.7);
  margin: 4px 0 0;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, opacity 0.35s ease, margin 0.35s ease;
}
.bento-item:hover .bento-item__sub { max-height: 60px; opacity: 1; margin-top: 6px; }
.bento-item:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

@media (max-width: 900px) {
  .bento { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 180px; }
  .bento-item--lg { grid-column: span 2; grid-row: span 2; }
  .bento-item--wide { grid-column: span 2; }
}
@media (max-width: 560px) {
  .bento { grid-template-columns: 1fr; grid-auto-rows: 220px; }
  .bento-item--lg,
  .bento-item--wide { grid-column: span 1; grid-row: span 1; }
  .bento-item__sub { max-height: 60px; opacity: 1; margin-top: 6px; }
}

/* Reduced motion — hero cinematic & bento */
@media (prefers-reduced-motion: reduce) {
  .hero__bg img { animation: none; transform: scale(1.04); }
  .hero__spark { animation: none; transform: scaleX(1); }
  .hero__spark::after { animation: none; }
  .bento-item { transition: none; }
  .bento-item:hover img { transform: none; }
}
