/* ============================================
   EL-MA S.R.L. — Stile principale
   Industrial Premium · Aria Compressa
   ============================================ */

/* --- Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Barlow:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,300&family=Barlow+Condensed:wght@400;500;600;700;800&display=swap');

/* --- Design Tokens --- */
:root {
  /* Brand Colors */
  --elma-red:       #D91A2A;
  --elma-red-dark:  #BF2C2C;
  --elma-red-deep:  #8C0000;
  --elma-gray:      #BFB8BD;
  --elma-light:     #F2F2F2;

  /* Surfaces */
  --color-bg:              #0D0D0D;
  --color-surface:         #141414;
  --color-surface-2:       #1A1A1A;
  --color-surface-offset:  #222222;
  --color-border:          #2E2E2E;
  --color-divider:         #1E1E1E;

  /* Text */
  --color-text:         #E8E6E3;
  --color-text-muted:   #8A8885;
  --color-text-faint:   #4A4845;
  --color-text-inverse: #0D0D0D;

  /* Accent */
  --color-primary:       var(--elma-red);
  --color-primary-hover: var(--elma-red-dark);

  /* Type */
  --font-display: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  --font-body:    'Barlow', 'Helvetica Neue', sans-serif;

  /* Type Scale */
  --text-xs:   clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
  --text-sm:   clamp(0.875rem, 0.8rem + 0.35vw, 1rem);
  --text-base: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --text-lg:   clamp(1.125rem, 1rem + 0.75vw, 1.5rem);
  --text-xl:   clamp(1.5rem, 1.2rem + 1.25vw, 2.25rem);
  --text-2xl:  clamp(2rem, 1.2rem + 2.5vw, 3.5rem);
  --text-3xl:  clamp(2.5rem, 1rem + 4vw, 5rem);
  --text-hero: clamp(3.5rem, 1rem + 8vw, 9rem);

  /* Spacing */
  --space-1:  0.25rem;
  --space-2:  0.5rem;
  --space-3:  0.75rem;
  --space-4:  1rem;
  --space-5:  1.25rem;
  --space-6:  1.5rem;
  --space-8:  2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;

  /* Layout */
  --content-narrow:  640px;
  --content-default: 960px;
  --content-wide:    1280px;

  /* Radius */
  --radius-sm: 0.25rem;
  --radius-md: 0.375rem;
  --radius-lg: 0.5rem;

  /* Transitions */
  --transition: 200ms cubic-bezier(0.16, 1, 0.3, 1);
  --transition-slow: 400ms cubic-bezier(0.16, 1, 0.3, 1);

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.4);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.5);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.6);
}

/* Light mode */
[data-theme="light"] {
  --color-bg:             #F5F4F0;
  --color-surface:        #FAFAF8;
  --color-surface-2:      #FFFFFF;
  --color-surface-offset: #ECECEA;
  --color-border:         #DCDAD5;
  --color-divider:        #E8E6E1;
  --color-text:           #1A1916;
  --color-text-muted:     #6B6965;
  --color-text-faint:     #A8A7A4;
  --color-text-inverse:   #FAFAF8;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.1);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.12);
}

/* System preference */
@media (prefers-color-scheme: light) {
  :root:not([data-theme]) {
    --color-bg:             #F5F4F0;
    --color-surface:        #FAFAF8;
    --color-surface-2:      #FFFFFF;
    --color-surface-offset: #ECECEA;
    --color-border:         #DCDAD5;
    --color-divider:        #E8E6E1;
    --color-text:           #1A1916;
    --color-text-muted:     #6B6965;
    --color-text-faint:     #A8A7A4;
    --color-text-inverse:   #FAFAF8;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.1);
    --shadow-lg: 0 12px 40px rgba(0,0,0,0.12);
  }
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  min-height: 100dvh;
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 400;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
  transition: background var(--transition-slow), color var(--transition-slow);
}

img, picture, video, svg { display: block; max-width: 100%; height: auto; }
ul[role="list"], ol[role="list"] { list-style: none; }
input, button, textarea, select { font: inherit; color: inherit; }
h1, h2, h3, h4, h5, h6 { text-wrap: balance; line-height: 1.1; }
p, li { text-wrap: pretty; }
button { cursor: pointer; background: none; border: none; }
a { color: inherit; text-decoration: none; }
table { border-collapse: collapse; width: 100%; }

::selection { background: color-mix(in srgb, var(--elma-red) 25%, transparent); color: var(--color-text); }
:focus-visible { outline: 2px solid var(--elma-red); outline-offset: 3px; border-radius: var(--radius-sm); }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border-width: 0; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* --- Layout Utilities --- */
.container {
  width: 100%;
  max-width: var(--content-wide);
  margin-inline: auto;
  padding-inline: clamp(var(--space-4), 5vw, var(--space-16));
}
.container--narrow { max-width: var(--content-narrow); }
.container--default { max-width: var(--content-default); }

/* ============================================
   HEADER / NAV
   ============================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--color-bg) 88%, transparent);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--color-border);
  transition: box-shadow var(--transition), background var(--transition-slow);
}
.site-header--scrolled { box-shadow: var(--shadow-md); }

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
  gap: var(--space-8);
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex-shrink: 0;
}

.nav__logo-mark {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
}

.nav__logo-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.nav__logo-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.4rem;
  letter-spacing: 0.05em;
  color: var(--color-text);
  line-height: 1;
}
.nav__logo-sub {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 500;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  list-style: none;
}
.nav__links a {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  transition: color var(--transition);
  position: relative;
  padding-bottom: 3px;
}
.nav__links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--elma-red);
  transition: width var(--transition);
}
.nav__links a:hover,
.nav__links a.active { color: var(--color-text); }
.nav__links a:hover::after,
.nav__links a.active::after { width: 100%; }

/* ── DROPDOWN ── */
.nav__dropdown {
  position: relative;
}
.nav__dropdown-toggle {
  display: flex;
  align-items: center;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  padding: 0;
  padding-bottom: 3px;
  transition: color var(--transition);
}
.nav__dropdown-toggle:hover,
.nav__dropdown-toggle--active { color: var(--color-text); }
.nav__dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%);
  min-width: 160px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 4px;
  list-style: none;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0,0,0,0.25);
  z-index: 200;
}
.nav__dropdown-menu.open { display: block; }
.nav__dropdown-menu li a {
  display: block;
  padding: 10px 16px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  transition: background var(--transition), color var(--transition);
  white-space: nowrap;
}
.nav__dropdown-menu li a:hover,
.nav__dropdown-menu li a[aria-current] {
  background: var(--color-bg);
  color: var(--elma-red);
}

.nav__actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.nav__cta {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-5);
  background: var(--elma-red);
  color: #fff;
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: var(--radius-sm);
  transition: background var(--transition), transform var(--transition);
}
.nav__cta:hover { background: var(--elma-red-dark); transform: translateY(-1px); }

.theme-toggle {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-muted);
  border-radius: var(--radius-md);
  transition: color var(--transition), background var(--transition);
}
.theme-toggle:hover { color: var(--color-text); background: var(--color-surface-offset); }

.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 32px;
  padding: var(--space-2);
  color: var(--color-text);
}
.nav__hamburger span { display: block; width: 22px; height: 2px; background: currentColor; border-radius: 2px; transition: var(--transition); }

/* Mobile nav — Fullscreen overlay */
.nav__mobile {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(10, 10, 10, 0.97);
  z-index: 999;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.nav__mobile.open {
  display: flex;
  opacity: 1;
}
.nav__mobile a {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 5vw, 2.8rem);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text);
  background: #BFB8BD;
  padding: var(--space-3) var(--space-8);
  border-radius: 4px;
  text-align: center;
  width: 80%;
  transition: color var(--transition), background var(--transition), transform 0.2s ease;
  position: relative;
}
.nav__mobile a::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 60%;
  height: 3px;
  background: var(--elma-red);
  border-radius: 2px;
  transition: transform 0.25s ease;
}
.nav__mobile a:hover { color: var(--elma-red); background: #BFB8BD; transform: translateX(6px); }
.nav__mobile a:hover::after { transform: translateX(-50%) scaleX(1); }
.nav__mobile a[aria-current] { color: var(--elma-red); }
.nav__mobile a[aria-current]::after { transform: translateX(-50%) scaleX(1); }
/* Riga separatrice decorativa */
.nav__mobile::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--elma-red);
}
/* Bottone chiudi X visibile sull'overlay */
.nav__mobile-close {
  position: absolute;
  top: var(--space-5);
  right: var(--space-5);
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text);
  font-size: 1.8rem;
  cursor: pointer;
  background: var(--color-surface);
  border-radius: 50%;
  border: 1px solid var(--color-border);
  transition: background var(--transition), color var(--transition);
}
.nav__mobile-close:hover { background: var(--elma-red); color: #fff; border-color: var(--elma-red); }

@media (max-width: 1100px) {
  .nav__links { display: none; }
  .nav__cta { display: none; }
  .nav__hamburger { display: flex; }
}

/* ============================================
   HERO — Homepage
   ============================================ */
.hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  object-fit: cover;
  width: 100%;
  height: 100%;
  filter: brightness(0.45) contrast(1.05);
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(10, 10, 10, 0.88) 0%,
    rgba(10, 10, 10, 0.40) 50%,
    rgba(10, 10, 10, 0.10) 100%
  );
}

/* Red accent bar on left */
.hero__accent {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 5px;
  background: var(--elma-red);
}

.hero__logo-center {
  margin-bottom: var(--space-6);
}
.hero__logo-center img {
  border-radius: 6px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.45);
}

.hero__content {
  position: relative;
  z-index: 2;
  padding-block: clamp(var(--space-16), 10vw, var(--space-32));
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--elma-red);
  margin-bottom: var(--space-5);
}

/* Hero buttons always on dark bg — override theme variables */
.hero__actions .btn--ghost {
  color: #E8E6E3;
  border-color: rgba(232, 230, 227, 0.4);
}
.hero__actions .btn--ghost:hover {
  border-color: #E8E6E3;
  background: rgba(232, 230, 227, 0.08);
}
.hero__eyebrow::before {
  content: '';
  display: block;
  width: 32px;
  height: 2px;
  background: var(--elma-red);
  flex-shrink: 0;
}

.hero__title {
  font-family: var(--font-display);
  font-size: var(--text-hero);
  font-weight: 800;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  line-height: 0.95;
  color: #E8E6E3;
  margin-bottom: var(--space-6);
}
.hero__title em {
  font-style: normal;
  color: var(--elma-red);
}

.hero__sub {
  font-size: var(--text-lg);
  font-weight: 300;
  color: rgba(230, 228, 224, 0.75);
  max-width: 52ch;
  margin-bottom: var(--space-10);
  line-height: 1.6;
  text-align: center;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  align-items: center;
}

.hero__stats {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--color-border);
  border-top: 1px solid var(--color-border);
  margin-top: var(--space-12);
}
.hero__stat {
  background: rgba(10, 10, 10, 0.82);
  padding: var(--space-6) var(--space-8);
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}
.hero__stat-num {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 800;
  color: var(--elma-red);
  line-height: 1;
}
.hero__stat-label {
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(200, 198, 195, 0.75);
}

@media (max-width: 768px) {
  .hero__stats { grid-template-columns: repeat(2, 1fr); }
  .hero { min-height: 85vh; }
}
@media (max-width: 480px) {
  .hero__stats { grid-template-columns: repeat(2, 1fr); }
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-8);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  white-space: nowrap;
}

.btn--primary {
  background: var(--elma-red);
  color: #fff;
  border: 2px solid var(--elma-red);
}
.btn--primary:hover { background: var(--elma-red-dark); border-color: var(--elma-red-dark); transform: translateY(-2px); box-shadow: 0 8px 24px color-mix(in srgb, var(--elma-red) 35%, transparent); }

.btn--ghost {
  background: transparent;
  color: var(--color-text);
  border: 2px solid var(--color-border);
}
.btn--ghost:hover { border-color: var(--color-text-muted); transform: translateY(-2px); }

.btn--outline-red {
  background: transparent;
  color: var(--elma-red);
  border: 2px solid var(--elma-red);
}
.btn--outline-red:hover { background: var(--elma-red); color: #fff; transform: translateY(-2px); }

.btn svg { width: 16px; height: 16px; flex-shrink: 0; }

/* ============================================
   SECTION BASE
   ============================================ */
.section {
  padding-block: clamp(var(--space-16), 10vw, var(--space-32));
}
.section--alt { background: var(--color-surface); }
.section--dark { background: var(--color-surface-2); }

.section__header {
  margin-bottom: clamp(var(--space-10), 5vw, var(--space-16));
}
.section__header--center { text-align: center; }

.section__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--elma-red);
  margin-bottom: var(--space-4);
}
.section__eyebrow::before {
  content: '';
  display: block;
  width: 24px;
  height: 2px;
  background: var(--elma-red);
}
.section__header--center .section__eyebrow { justify-content: center; }
.section__header--center .section__eyebrow::before { display: none; }

.section__title {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  color: var(--color-text);
  line-height: 1.05;
  margin-bottom: var(--space-5);
}

.section__lead {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  max-width: 60ch;
  line-height: 1.7;
}
.section__header--center .section__lead { margin-inline: auto; }

/* ============================================
   SERVIZI — Cards
   ============================================ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1px;
  background: var(--color-border);
  border: 1px solid var(--color-border);
}

.service-card {
  background: var(--color-surface);
  padding: var(--space-10) var(--space-8);
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  position: relative;
  overflow: hidden;
  transition: background var(--transition);
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 0;
  background: var(--elma-red);
  transition: height var(--transition-slow);
}
.service-card:hover::before { height: 100%; }
.service-card:hover { background: var(--color-surface-2); }

.service-card__icon {
  width: 48px;
  height: 48px;
  color: var(--elma-red);
  flex-shrink: 0;
}

.service-card__num {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 800;
  color: var(--color-border);
  line-height: 1;
  position: absolute;
  top: var(--space-6);
  right: var(--space-6);
  transition: color var(--transition);
}
.service-card:hover .service-card__num { color: color-mix(in srgb, var(--elma-red) 15%, transparent); }

.service-card__title {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-text);
}

.service-card__text {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.7;
}

.service-card__link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--elma-red);
  margin-top: auto;
  transition: gap var(--transition);
}
.service-card__link:hover { gap: var(--space-3); }
.service-card__link svg { width: 14px; height: 14px; }

/* ============================================
   CHI SIAMO — Homepage strip
   ============================================ */
.about-strip {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  min-height: 600px;
}

.about-strip__image {
  position: relative;
  overflow: hidden;
}
.about-strip__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.8);
}
.about-strip__image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, transparent 60%, var(--color-bg) 100%);
}

.about-strip__content {
  padding: clamp(var(--space-12), 8vw, var(--space-20)) clamp(var(--space-8), 6vw, var(--space-16));
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: var(--space-6);
  background: var(--color-bg);
}

.about-strip__badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-2) var(--space-4);
  background: color-mix(in srgb, var(--elma-red) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--elma-red) 30%, transparent);
  border-radius: var(--radius-sm);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--elma-red);
  width: fit-content;
}

.about-strip__values {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
  margin-top: var(--space-4);
}
.about-strip__value {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}
.about-strip__value-title {
  font-size: var(--text-sm);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-text);
}
.about-strip__value-text {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  line-height: 1.6;
}

@media (max-width: 768px) {
  .about-strip { grid-template-columns: 1fr; }
  .about-strip__image { min-height: 280px; }
  .about-strip__image-overlay { background: linear-gradient(to bottom, transparent 60%, var(--color-bg) 100%); }
}

/* ============================================
   MARCHI / BRANDS
   ============================================ */
.brands-bar {
  padding-block: var(--space-12);
  border-block: 1px solid var(--color-border);
  overflow: hidden;
}

.brands-bar__label {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-text-faint);
  text-align: center;
  margin-bottom: var(--space-8);
}

.brands-scroll {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  justify-content: center;
  align-items: center;
}

.brand-pill {
  display: inline-flex;
  align-items: center;
  padding: var(--space-2) var(--space-5);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  background: var(--color-surface);
  transition: all var(--transition);
}
.brand-pill:hover {
  border-color: var(--elma-red);
  color: var(--elma-red);
  background: color-mix(in srgb, var(--elma-red) 6%, var(--color-surface));
}

/* ============================================
   SETTORI / Prodotti Grid
   ============================================ */
.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
}

.product-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-8) var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}
.product-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--elma-red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition-slow);
}
.product-card:hover::after { transform: scaleX(1); }
.product-card:hover {
  border-color: var(--color-text-faint);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.product-card__category {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--elma-red);
}

.product-card__title {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
  text-transform: uppercase;
  color: var(--color-text);
  line-height: 1.2;
}

.product-card__text {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.7;
  flex: 1;
}

.product-card__brands {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  padding-top: var(--space-4);
  border-top: 1px solid var(--color-border);
}
.product-card__brand-tag {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-faint);
  padding: 3px 8px;
  border: 1px solid var(--color-border);
  border-radius: 3px;
}

@media (max-width: 900px) { .products-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .products-grid { grid-template-columns: 1fr; } }

/* ============================================
   CTA SECTION
   ============================================ */
.cta-section {
  position: relative;
  padding-block: clamp(var(--space-20), 12vw, var(--space-32));
  overflow: hidden;
  background: var(--elma-red-deep);
}
.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    -45deg,
    transparent,
    transparent 40px,
    rgba(255,255,255,0.015) 40px,
    rgba(255,255,255,0.015) 80px
  );
}

.cta-section .container { position: relative; }

.cta-section__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-8);
  flex-wrap: wrap;
}

.cta-section__title {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 800;
  text-transform: uppercase;
  color: #fff;
  max-width: 20ch;
}

.cta-section__actions {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
  flex-shrink: 0;
}

.btn--white {
  background: #fff;
  color: var(--elma-red-deep);
  border: 2px solid #fff;
}
.btn--white:hover { background: transparent; color: #fff; }

.btn--outline-white {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255,255,255,0.5);
}
.btn--outline-white:hover { border-color: #fff; }

/* ============================================
   CONTATTI PAGE
   ============================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: var(--space-12);
  align-items: start;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

.contact-info__item {
  display: flex;
  gap: var(--space-4);
  align-items: flex-start;
}
.contact-info__icon {
  width: 44px;
  height: 44px;
  background: color-mix(in srgb, var(--elma-red) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--elma-red) 25%, transparent);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--elma-red);
  flex-shrink: 0;
}
.contact-info__icon svg { width: 20px; height: 20px; }
.contact-info__label { font-size: var(--text-xs); font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--color-text-muted); margin-bottom: var(--space-1); }
.contact-info__value { font-size: var(--text-base); font-weight: 500; color: var(--color-text); }
.contact-info__value a { color: var(--color-text); transition: color var(--transition); }
.contact-info__value a:hover { color: var(--elma-red); }

.contact-form {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-10) var(--space-10);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin-bottom: var(--space-5);
}
.form-group label {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}
.form-group input,
.form-group select,
.form-group textarea {
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-3) var(--space-4);
  font-size: var(--text-sm);
  color: var(--color-text);
  width: 100%;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--elma-red);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--elma-red) 15%, transparent);
}
.form-group textarea { resize: vertical; min-height: 120px; }
.form-group select { appearance: none; cursor: pointer; }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
}

@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } .contact-form { padding: var(--space-6); } }

/* ============================================
   PAGE HERO (interiori)
   ============================================ */
.page-hero {
  padding-block: clamp(var(--space-16), 8vw, var(--space-24));
  border-bottom: 1px solid var(--color-border);
  background: var(--color-surface);
}
.page-hero__breadcrumb {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-6);
}
.page-hero__breadcrumb a:hover { color: var(--elma-red); }
.page-hero__breadcrumb span { color: var(--color-text-faint); }

.page-hero__title {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 800;
  text-transform: uppercase;
  color: var(--color-text);
  line-height: 1;
  margin-bottom: var(--space-5);
}
.page-hero__title em { font-style: normal; color: var(--elma-red); }

.page-hero__sub {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  max-width: 60ch;
  line-height: 1.7;
}

/* ============================================
   CHI SIAMO PAGE
   ============================================ */
.timeline {
  position: relative;
  padding-left: var(--space-8);
  display: flex;
  flex-direction: column;
  gap: var(--space-10);
}
.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: var(--color-border);
}
.timeline__item { position: relative; }
.timeline__dot {
  position: absolute;
  left: calc(-1 * var(--space-8) - 5px);
  top: 6px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--elma-red);
  border: 2px solid var(--color-bg);
  box-shadow: 0 0 0 3px var(--elma-red);
}
.timeline__year {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--elma-red);
  margin-bottom: var(--space-2);
}
.timeline__title {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
  text-transform: uppercase;
  color: var(--color-text);
  margin-bottom: var(--space-2);
}
.timeline__text {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.7;
}

.certifications-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--space-4);
}
.cert-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.cert-card__icon { color: var(--elma-red); }
.cert-card__icon svg { width: 28px; height: 28px; }
.cert-card__title { font-size: var(--text-sm); font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--color-text); }
.cert-card__text { font-size: var(--text-xs); color: var(--color-text-muted); line-height: 1.6; }

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  padding-top: var(--space-16);
}

.footer__top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: var(--space-10);
  padding-bottom: var(--space-12);
  border-bottom: 1px solid var(--color-border);
}

.footer__brand {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.footer__logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.footer__desc {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.7;
  max-width: 36ch;
}

.footer__col-title {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-text);
  margin-bottom: var(--space-5);
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  list-style: none;
}
.footer__links a {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  transition: color var(--transition);
}
.footer__links a:hover { color: var(--elma-red); }

.footer__contact-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}
.footer__contact-item svg { width: 16px; height: 16px; color: var(--elma-red); flex-shrink: 0; margin-top: 3px; }
.footer__contact-item a, .footer__contact-item span { font-size: var(--text-sm); color: var(--color-text-muted); transition: color var(--transition); }
.footer__contact-item a:hover { color: var(--elma-red); }

.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding-block: var(--space-6);
  flex-wrap: wrap;
}

.footer__legal {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
}

.footer__accent-bar {
  height: 3px;
  background: linear-gradient(to right, var(--elma-red), var(--elma-red-dark), var(--elma-red-deep));
}

@media (max-width: 900px) {
  .footer__top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .footer__top { grid-template-columns: 1fr; }
  .footer__bottom { flex-direction: column; align-items: flex-start; }
}

/* ============================================
   SCROLL ANIMATIONS
   ============================================ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.visible { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* ============================================
   PAGE-SPECIFIC OVERRIDES
   ============================================ */
/* Servizi — dettaglio accordion */
.service-detail {
  border-top: 1px solid var(--color-border);
}
.service-detail__item {
  border-bottom: 1px solid var(--color-border);
}
.service-detail__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-6) 0;
  cursor: pointer;
  gap: var(--space-4);
}
.service-detail__header:hover .service-detail__title { color: var(--elma-red); }
.service-detail__title {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
  text-transform: uppercase;
  color: var(--color-text);
  transition: color var(--transition);
}
.service-detail__chevron {
  width: 20px;
  height: 20px;
  color: var(--color-text-muted);
  transition: transform var(--transition);
  flex-shrink: 0;
}
.service-detail__item.open .service-detail__chevron { transform: rotate(180deg); }
.service-detail__body {
  display: none;
  padding-bottom: var(--space-8);
}
.service-detail__item.open .service-detail__body { display: block; }
.service-detail__body p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.8;
  margin-bottom: var(--space-4);
  max-width: 72ch;
}
.service-detail__body ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.service-detail__body li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}
.service-detail__body li::before {
  content: '';
  display: block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--elma-red);
  margin-top: 8px;
  flex-shrink: 0;
}

/* ============================================
   UTILITY
   ============================================ */
.text-red { color: var(--elma-red); }
.text-muted { color: var(--color-text-muted); }
.font-display { font-family: var(--font-display); }
.uppercase { text-transform: uppercase; }
.divider { height: 1px; background: var(--color-border); margin-block: var(--space-8); }
