/* ============================================================
   BIG PROJECT SRL — Design System
   Dark theme · brand: nero #000 + rosso #FF0000
   Font: Barlow Condensed (display) · Barlow (body) · JetBrains Mono (label)
   ============================================================ */

/* ---------- 1. Tokens ---------- */
:root {
  --bg: #0A0A0C;
  --bg-alt: #0E0E12;
  --surface: #131318;
  --surface-2: #1A1A21;
  --border: #26262E;
  --border-soft: #1D1D24;

  --text: #F5F5F7;
  --muted: #A6A6B0;
  --faint: #7E7E8C;

  --red: #FF0000;
  --red-hover: #E00000;
  --red-bright: #FF3D3D;
  --red-soft: rgba(255, 0, 0, 0.12);
  --red-glow: rgba(255, 0, 0, 0.22);

  --font-display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --font-body: "Barlow", "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", "Consolas", monospace;

  --container: 1200px;
  --radius: 4px;
  --header-h: 96px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- 2. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  color-scheme: dark;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 24px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--muted);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.nav-open { overflow: hidden; }
.split > *, .form-field { min-width: 0; }

img, svg, video { max-width: 100%; display: block; }
img { height: auto; }

/* l'attributo hidden deve sempre vincere sui display d'autore (form, pannelli) */
[hidden] { display: none !important; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--text);
  line-height: 0.98;
  margin: 0 0 0.6em;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  font-weight: 600;
}

h1 { font-size: clamp(2.9rem, 7.2vw, 5.6rem); }
h2 { font-size: clamp(2.1rem, 4.6vw, 3.6rem); }
h3 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); }
h4 { font-size: 1.2rem; }

p { margin: 0 0 1.2em; }
p:last-child { margin-bottom: 0; }

a { color: var(--red-bright); text-decoration: none; transition: color 0.25s; }
a:hover { color: var(--text); }
.prose a, .form-note a { text-decoration: underline; text-underline-offset: .2em; }
.cookieadmin_law_container .bp-cookie-privacy { color: inherit; text-decoration: underline; text-underline-offset: .2em; }

::selection { background: var(--red); color: #000; }

:focus-visible {
  outline: 2px solid var(--red-bright);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--red); color: #000; padding: 10px 18px;
  font-weight: 600; z-index: 2000; font-family: var(--font-body);
}
.skip-link:focus { left: 16px; top: 16px; }

/* scrollbar */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #2A2A33; border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: var(--red); }

/* ---------- 3. Layout utils ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(20px, 4vw, 32px);
}

.section { padding-block: clamp(4rem, 9vw, 7rem); position: relative; }
.section--alt { background: var(--bg-alt); }
.section--tight { padding-block: clamp(3rem, 6vw, 4.5rem); }

.grid { display: grid; gap: 24px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

/* subtle blueprint grid texture */
.section--grid-bg {
  background-image:
    linear-gradient(rgba(255,255,255,0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.028) 1px, transparent 1px);
  background-size: 52px 52px;
}

/* kicker label: [ 01 // CHI SIAMO ] */
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red-bright);
  margin-bottom: 20px;
}
.kicker::before {
  content: "";
  width: 26px; height: 2px;
  background: var(--red);
  flex: none;
}

.section-head { margin-bottom: clamp(2.2rem, 5vw, 3.5rem); max-width: 780px; }
.section-head p { font-size: 1.1rem; }

.title-red { color: var(--red); }
.title-stroke {
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(245,245,247,0.55);
}

/* giant background word */
.giant-word {
  position: absolute;
  top: 0.25em; right: -0.06em;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(6rem, 18vw, 15rem);
  line-height: 1;
  text-transform: uppercase;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255,255,255,0.06);
  pointer-events: none;
  user-select: none;
  white-space: nowrap;
}

/* corner crosshair markers */
.crosshair { position: absolute; width: 18px; height: 18px; pointer-events: none; }
.crosshair::before, .crosshair::after {
  content: ""; position: absolute; background: var(--faint); opacity: 0.55;
}
.crosshair::before { left: 50%; top: 0; width: 1px; height: 100%; }
.crosshair::after { top: 50%; left: 0; height: 1px; width: 100%; }

/* ---------- 4. Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 1000;
  height: var(--header-h);
  display: flex;
  align-items: center;
  transition: background 0.35s, border-color 0.35s, height 0.35s;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(10, 10, 12, 0.82);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--border-soft);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
}

.brand { display: inline-flex; align-items: center; gap: 12px; flex: none; }
.brand img { height: 72px; width: auto; max-width: 220px; object-fit: contain; }

.main-nav { display: flex; align-items: center; gap: 4px; }
.main-nav > li { list-style: none; position: relative; }
.main-nav ul { margin: 0; padding: 0; }

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 13px;
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--muted);
}
.nav-link:hover, .nav-link[aria-current="page"] { color: var(--text); }
.nav-link[aria-current="page"]::after {
  content: ""; position: absolute; left: 13px; right: 13px; bottom: 2px;
  height: 2px; background: var(--red);
}

/* dropdown servizi */
.dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  transform: translateY(8px);
  width: 640px;
  display: grid;
  grid-template-rows: repeat(5, auto);
  grid-auto-flow: column;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-height: calc(100dvh - var(--header-h) - 24px);
  overflow-y: auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: 2px solid var(--red);
  padding: 10px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0.25s;
  box-shadow: 0 24px 60px rgba(0,0,0,0.55);
}
.main-nav li:hover > .dropdown,
.main-nav li:focus-within > .dropdown {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.dropdown a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 500;
  border-radius: 2px;
}
.dropdown a:hover { background: var(--surface-2); color: var(--text); }
.dropdown a .num {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--red-bright);
}

.header-actions { display: flex; align-items: center; gap: 16px; flex: none; }

.lang-switch {
  display: flex;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
}
.lang-switch a { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); padding: 8px 6px; min-height: 44px; border-bottom: 2px solid transparent; }
.lang-switch a.active { color: var(--red-bright); }
.lang-switch a.active { border-bottom-color: var(--red); }
.lang-switch a:hover { color: var(--text); }
.lang-switch img { flex: none; width: 24px; height: 16px; border-radius: 1px; }
.lang-switch--mobile { gap: 20px; padding: 12px 0; }
.mobile-nav .lang-switch--mobile a { font-size: 1.1rem; justify-content: flex-start; gap: 10px; }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  width: 46px; height: 46px;
  cursor: pointer;
  position: relative;
  z-index: 1100;
}
.nav-toggle span {
  display: block;
  width: 20px; height: 2px;
  background: var(--text);
  margin: 4px auto;
  transition: transform 0.3s var(--ease), opacity 0.3s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* mobile overlay menu */
.mobile-nav {
  overscroll-behavior: contain;
  position: fixed;
  inset: 0;
  z-index: 1050;
  background: var(--bg);
  padding: calc(var(--header-h) + 24px) 24px 40px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  overflow-y: auto;
  transform: translateY(-100%);
  transition: transform 0.45s var(--ease);
  visibility: hidden;
}
.mobile-nav.open { transform: translateY(0); visibility: visible; }
/* con il menu aperto il brand resta sopra l'overlay */
body.nav-open .site-header {
  z-index: 1100;
  background: transparent;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  border-bottom-color: transparent;
}
.mobile-nav a, .mobile-nav summary {
  font-family: var(--font-display);
  font-size: 1.7rem;
  text-transform: uppercase;
  color: var(--text);
  padding: 10px 0;
  border-bottom: 1px solid var(--border-soft);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.mobile-nav summary { cursor: pointer; list-style: none; }
.mobile-nav summary::-webkit-details-marker { display: none; }
.mobile-sub-indicator { display: inline-flex; align-items: center; gap: 12px; }
.mobile-sub-toggle {
  width: 9px; height: 9px; margin-right: 3px;
  border-right: 2px solid var(--red-bright);
  border-bottom: 2px solid var(--red-bright);
  transform: rotate(45deg);
}
.mobile-solutions[open] .mobile-sub-toggle { transform: rotate(225deg); }
.mobile-nav .num {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--red-bright);
}
.mobile-nav .mobile-sub a {
  font-size: 1.05rem;
  font-family: var(--font-body);
  color: var(--muted);
  text-transform: none;
  padding-left: 14px;
}
.mobile-nav .btn { margin-top: 22px; justify-content: center; }

/* ---------- 5. Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 15px 30px;
  background: var(--red);
  color: #000;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 1px solid var(--red);
  border-radius: var(--radius);
  cursor: pointer;
  transition: background 0.25s, color 0.25s, transform 0.25s var(--ease), box-shadow 0.25s;
  position: relative;
  overflow: hidden;
}
.btn:hover {
  background: var(--text);
  border-color: var(--text);
  color: #000;
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(0,0,0,0.45);
}
.btn svg { transition: transform 0.25s var(--ease); }
.btn:hover svg { transform: translateX(4px); }

.btn--ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}
.btn--ghost:hover {
  background: transparent;
  border-color: var(--red);
  color: var(--red-bright);
  box-shadow: none;
}

.btn--dark { background: #000; color: var(--text); border-color: #000; }
.btn--dark:hover { background: #1c1c22; border-color: #1c1c22; color: var(--text); }

.btn--sm { padding: 11px 20px; font-size: 0.8rem; }

/* text link with arrow */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--red-bright);
}
.link-arrow svg { transition: transform 0.25s var(--ease); }
.link-arrow:hover svg { transform: translateX(5px); }

/* ---------- 6. Hero (home) ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: calc(var(--header-h) + 48px) 0 64px;
  background:
    radial-gradient(ellipse 60% 45% at 78% 22%, rgba(255,0,0,0.09), transparent 70%),
    radial-gradient(ellipse 45% 40% at 12% 88%, rgba(255,0,0,0.05), transparent 70%),
    var(--bg);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: radial-gradient(ellipse 90% 80% at 50% 40%, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 90% 80% at 50% 40%, black 30%, transparent 75%);
}
.hero::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}

.hero h1 { margin-bottom: 0.35em; }
.hero h1 .line { display: block; overflow: hidden; }
.hero .sub {
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  max-width: 560px;
  margin-bottom: 2.2rem;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 3rem; }

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--faint);
}
.hero-meta strong { color: var(--text); font-weight: 500; }

.hero-visual { position: relative; }
.hero-visual .tech-svg { width: 100%; height: auto; }

/* rotating gear in hero visual */
.rotor {
  transform-box: fill-box;
  transform-origin: center;
  animation: spin 50s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* scroll hint */
.scroll-hint {
  position: absolute;
  bottom: 26px; left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--faint);
}
.scroll-hint::after {
  content: "";
  width: 1px; height: 34px;
  background: linear-gradient(var(--red), transparent);
  animation: scrollPulse 2s infinite;
}
@keyframes scrollPulse {
  0% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  51% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ---------- 7. Marquee ---------- */
.marquee {
  border-block: 1px solid var(--border-soft);
  background: var(--bg-alt);
  overflow: hidden;
  padding: 18px 0;
  position: relative;
}
.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 32s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.motion-paused .marquee-track, .motion-paused .rotor, .motion-paused .scroll-hint::after { animation-play-state: paused; }
.motion-control { position: relative; z-index: 1; display: block; margin: 0 24px 14px auto; padding: 8px 12px; min-height: 44px; border: 1px solid var(--border); background: var(--surface); color: var(--muted); font: .75rem var(--font-mono); cursor: pointer; }
.motion-control:hover, .motion-control[aria-pressed="true"] { color: var(--text); border-color: var(--red-bright); }
.marquee-track > div {
  display: flex;
  align-items: center;
  gap: 48px;
  padding-right: 48px;
}
.marquee-item {
  display: flex;
  align-items: center;
  gap: 48px;
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.6vw, 1.9rem);
  font-weight: 600;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}
.marquee-item .dot {
  width: 9px; height: 9px;
  background: var(--red);
  transform: rotate(45deg);
  flex: none;
}
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- 8. Service cards ---------- */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.service-detail-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.service-detail-grid[data-card-count="2"] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.service-detail-grid[data-card-count="1"] { grid-template-columns: minmax(0, 780px); }
.section--grid-bg { overflow: clip; }
.catalog-layout { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; }
.catalog-layout .service-detail-grid { grid-template-columns: 1fr; }

.service-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 34px 30px 30px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: transform 0.35s var(--ease), border-color 0.35s, box-shadow 0.35s, background 0.35s;
  overflow: hidden;
}
.service-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--red), transparent 65%);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease);
}
.service-card:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 0, 0, 0.45);
  background: var(--surface-2);
  box-shadow: 0 24px 60px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,0,0,0.08), 0 0 44px var(--red-glow);
}
.service-card:hover::before { transform: scaleX(1); }

.service-card .card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 6px;
}
.service-card .num {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--red-bright);
  letter-spacing: 0.12em;
}
.service-card .icon { color: var(--faint); transition: color 0.35s; }
.service-card:hover .icon { color: var(--red-bright); }

.service-card h3 { margin: 0 0 4px; font-size: 1.55rem; }
.service-card p { font-size: 0.95rem; flex: 1; }
.service-card .link-arrow { margin-top: auto; }

/* ---------- 9. Stats ---------- */
.stats-band {
  border-block: 1px solid var(--border-soft);
  background: var(--bg-alt);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  padding-block: clamp(2.4rem, 5vw, 3.6rem);
}
.stat { text-align: left; padding-left: 22px; border-left: 2px solid var(--border); position: relative; }
.stat::before {
  content: "";
  position: absolute; left: -2px; top: 0;
  width: 2px; height: 0;
  background: var(--red);
  transition: height 1.2s var(--ease) 0.3s;
}
.stat.revealed::before { height: 100%; }
.stat .value {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.6rem, 5vw, 4rem);
  line-height: 1;
  color: var(--text);
}
.stat .value .suffix { color: var(--red); }
.stat .label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--faint);
  margin-top: 10px;
}

/* ---------- 10. Split section ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(36px, 6vw, 84px);
  align-items: center;
}

.visual-panel {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: clamp(24px, 3.5vw, 44px);
  overflow: hidden;
}
.visual-panel::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 36px 36px;
}
.visual-panel > * { position: relative; }
.visual-panel img, .visual-panel svg { width: 100%; height: auto; }

/* corner brackets */
.brackets::before, .brackets::after,
.brackets > .b::before, .brackets > .b::after {
  content: ""; position: absolute; width: 22px; height: 22px;
  border-color: var(--red); border-style: solid; opacity: 0.85;
}
.brackets::before { top: 10px; left: 10px; border-width: 2px 0 0 2px; }
.brackets::after { top: 10px; right: 10px; border-width: 2px 2px 0 0; }
.brackets > .b::before { bottom: 10px; left: 10px; border-width: 0 0 2px 2px; }
.brackets > .b::after { bottom: 10px; right: 10px; border-width: 0 2px 2px 0; }

/* checklist */
.checklist { list-style: none; margin: 1.6rem 0; padding: 0; }
.checklist li {
  position: relative;
  padding: 12px 0 12px 38px;
  border-bottom: 1px solid var(--border-soft);
  color: var(--text);
  font-weight: 500;
}
.checklist li small { display: block; color: var(--muted); font-weight: 400; font-size: 0.92rem; }
.checklist li::before {
  content: "";
  position: absolute; left: 0; top: 20px;
  width: 18px; height: 2px;
  background: var(--red);
}
.checklist li::after {
  content: "";
  position: absolute; left: 0; top: 20px;
  width: 2px; height: 16px;
  background: var(--red);
  clip-path: polygon(0 0, 100% 0, 100% 100%);
}

/* ---------- 11. Steps / metodo ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; counter-reset: step; }
.step {
  position: relative;
  padding: 28px 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.3s, transform 0.3s var(--ease);
}
.step:hover { border-color: rgba(255,0,0,0.4); transform: translateY(-4px); }
.step .num {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 700;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--red);
  display: block;
  margin-bottom: 16px;
}
.step h3 { font-size: 1.25rem; margin-bottom: 8px; }
.step p { font-size: 0.93rem; }

/* ---------- 12. CTA band ---------- */
.cta-band { background: var(--red); color: #000; position: relative; overflow: hidden; }
.cta-band::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(0,0,0,0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,0,0,0.07) 1px, transparent 1px);
  background-size: 44px 44px;
}
.cta-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
  padding-block: clamp(3.4rem, 7vw, 5.4rem);
  flex-wrap: wrap;
}
.cta-band h2 {
  color: #000;
  max-width: 640px;
  margin: 0;
  font-size: clamp(2.2rem, 4.8vw, 3.8rem);
}
.cta-band p { color: rgba(0,0,0,0.82); font-weight: 500; margin: 14px 0 0; max-width: 640px; }
.cta-band .btn { background: #000; color: var(--text); border-color: #000; }
.cta-band .btn:hover { background: #1E1E24; transform: translateY(-2px); }

/* ---------- 13. Page hero (inner pages) ---------- */
.page-hero {
  position: relative;
  padding: calc(var(--header-h) + clamp(3.4rem, 8vw, 6rem)) 0 clamp(2.8rem, 6vw, 4.4rem);
  background:
    radial-gradient(ellipse 55% 60% at 85% 0%, rgba(255,0,0,0.08), transparent 70%),
    var(--bg);
  border-bottom: 1px solid var(--border-soft);
  overflow: hidden;
}
.page-hero .kicker { margin-bottom: 16px; }
.page-hero h1 { max-width: 900px; margin-bottom: 0.3em; }
.page-hero .lead { max-width: 720px; font-size: clamp(1.02rem, 1.5vw, 1.2rem); }

/* ---------- 14. Prose (content pages) ---------- */
.prose { max-width: 780px; }
.prose h2 {
  font-size: clamp(1.9rem, 3.6vw, 2.7rem);
  margin-top: 2.2em;
  padding-top: 0.35em;
  position: relative;
}
.prose h2::before {
  content: "";
  position: absolute; top: 0; left: 0;
  width: 46px; height: 3px; background: var(--red);
}
.prose h3 { margin-top: 1.8em; font-size: 1.45rem; }
.prose p, .prose li { font-size: 1.05rem; }
.prose strong { color: var(--text); font-weight: 600; }
.prose ul { padding-left: 0; list-style: none; }
.prose ul li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 10px;
}
.prose ul li::before {
  content: "";
  position: absolute; left: 0; top: 0.72em;
  width: 12px; height: 2px;
  background: var(--red);
}

/* ---------- 15. Chips / tags ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--border);
  border-radius: 2px;
  padding: 7px 13px;
  transition: border-color 0.25s, color 0.25s;
}
.chip:hover { border-color: var(--red); color: var(--text); }

/* ---------- 16. Cards generic (news, case history) ---------- */
.cards-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }

.post-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.35s var(--ease), border-color 0.35s, box-shadow 0.35s;
}
.post-card:hover {
  transform: translateY(-6px);
  border-color: rgba(255,0,0,0.45);
  box-shadow: 0 24px 60px rgba(0,0,0,0.5);
}
.post-card .thumb {
  aspect-ratio: 16 / 10;
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}
.post-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--ease); }
.post-card:hover .thumb img { transform: scale(1.05); }
.post-card .thumb .tag {
  position: absolute; top: 12px; left: 12px;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: var(--red);
  color: #000;
  font-weight: 700;
  padding: 4px 9px;
}
.post-card .body { padding: 24px 26px 28px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.post-card time {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--faint);
  letter-spacing: 0.1em;
}
.post-card h2 { margin: 0; font-size: 1.4rem; }
.post-card p { font-size: 0.94rem; flex: 1; }
.post-card .link-arrow { margin-top: auto; }

/* filter buttons */
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 2.4rem; }
.filter-btn {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--border);
  border-radius: 2px;
  padding: 9px 16px;
  cursor: pointer;
  transition: color 0.25s, background-color 0.25s, border-color 0.25s;
}
.filter-btn:hover { border-color: var(--red); color: var(--text); }
.filter-btn.active { background: var(--red); border-color: var(--red); color: #000; font-weight: 700; }

/* ---------- 17. Accordion ---------- */
.accordion { border-top: 1px solid var(--border); }
.accordion details { border-bottom: 1px solid var(--border); }
.accordion summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 22px 4px;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--text);
  transition: color 0.25s;
}
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary:hover { color: var(--red-bright); }
.accordion summary .marker {
  font-family: var(--font-mono);
  color: var(--red-bright);
  font-size: 1.1rem;
  transition: transform 0.3s var(--ease);
  flex: none;
}
.accordion details[open] summary .marker { transform: rotate(45deg); }
.accordion .acc-body { padding: 0 4px 24px; max-width: 760px; }

/* ---------- 18. Form ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-field { display: flex; flex-direction: column; gap: 8px; }
.form-field--full { grid-column: 1 / -1; }
.form-field label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.form-field input, .form-field textarea, .form-field select {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
  transition: border-color 0.25s, box-shadow 0.25s;
}
.form-field textarea { min-height: 150px; resize: vertical; }
.form-field input:focus, .form-field textarea:focus, .form-field select:focus {
  outline: none;
  border-color: var(--red);
  box-shadow: 0 0 0 3px var(--red-soft);
}
.form-note { font-size: 0.85rem; color: var(--faint); }

/* contact info card */
.info-list { list-style: none; margin: 0; padding: 0; }
.info-list li {
  display: flex;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--border-soft);
  align-items: flex-start;
}
.info-list .ico {
  width: 42px; height: 42px;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--red-bright);
}
.info-list strong {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--faint);
  font-weight: 500;
  margin-bottom: 4px;
}
.info-list a, .info-list span.val { color: var(--text); font-weight: 500; font-size: 1.02rem; }

/* ---------- 19. Footer ---------- */
.site-footer {
  background: #070709;
  border-top: 1px solid var(--border-soft);
  padding-top: clamp(3.4rem, 7vw, 5.4rem);
  position: relative;
  overflow: hidden;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.1fr;
  gap: 40px;
  padding-bottom: 3.4rem;
}
.footer-brand img { height: 100px; width: auto; max-width: 100%; object-fit: contain; margin-bottom: 20px; }
.footer-brand p { font-size: 0.95rem; max-width: 300px; }
.footer-col h3 {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 18px;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { color: var(--muted); font-size: 0.95rem; }
.footer-col a:hover { color: var(--red-bright); }

.footer-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  border-block: 1px solid var(--border-soft);
  padding-block: 26px;
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 600;
  text-transform: uppercase;
  color: var(--text);
}
.footer-cta a { color: var(--red-bright); display: inline-flex; align-items: center; gap: 12px; }
.footer-cta a:hover { color: var(--text); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding-block: 22px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  color: var(--faint);
}
.footer-bottom a { color: var(--faint); }
.footer-bottom a:hover { color: var(--red-bright); }

.footer-giant {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(4rem, 12.5vw, 11rem);
  line-height: 0.85;
  text-align: center;
  text-transform: uppercase;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255,255,255,0.07);
  user-select: none;
  pointer-events: none;
  margin-bottom: -0.12em;
  white-space: nowrap;
}
.footer-giant .r { -webkit-text-stroke-color: rgba(255,0,0,0.25); }

/* ---------- 20. Reveal animations ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
  transition-delay: var(--reveal-delay, 0s);
}
[data-reveal].revealed { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .motion-control { display: none; }
  .marquee-track { width: auto; transform: none; }
  .marquee-track > div { flex-wrap: wrap; gap: 20px; padding: 0 24px; }
  .marquee-track > [aria-hidden="true"] { display: none; }
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
}

/* ---------- 21. Responsive ---------- */
@media (max-width: 1024px) {
  .catalog-layout { grid-template-columns: 1fr; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { max-width: 520px; margin-inline: auto; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); row-gap: 36px; }
  .split { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 1180px) {
  .main-nav { display: none; }
  .nav-toggle { display: block; }
  .header-actions .btn { display: none; }
}

@media (max-width: 640px) {
  .services-grid, .cards-grid, .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .grid--2 { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  :root { --header-h: 82px; }
  .brand img { height: 58px; }
  .header-inner { gap: 8px; }
  .header-actions { gap: 8px; }
  .header-actions .lang-switch a { flex-direction: column; gap: 3px; font-size: .6rem; padding: 4px; }
  .service-detail-grid, .service-detail-grid[data-card-count="2"] { grid-template-columns: 1fr; }
  .hero-cta .btn { width: 100%; }
  .giant-word { display: none; }
}

/* ---------- 22. Breadcrumb ---------- */
.breadcrumb {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.breadcrumb ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 0;
}
.breadcrumb li { display: flex; align-items: center; gap: 10px; color: var(--faint); }
.breadcrumb li + li::before { content: "/"; color: #4A4A57; }
.breadcrumb a { color: var(--faint); }
.breadcrumb a:hover { color: var(--red-bright); }
.breadcrumb [aria-current="page"] { color: var(--muted); }

/* ---------- 23. FAQ ---------- */
.faq { max-width: 880px; }
.faq details { border-bottom: 1px solid var(--border-soft); }
.faq details:first-of-type { border-top: 1px solid var(--border-soft); }
.faq summary {
  cursor: pointer;
  list-style: none;
  display: block;
  position: relative;
  padding: 22px 52px 22px 0;
  font-family: var(--font-body);
  font-size: clamp(1.02rem, 1.6vw, 1.14rem);
  font-weight: 600;
  line-height: 1.45;
  color: var(--text);
  transition: color 0.25s var(--ease);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  position: absolute;
  right: 10px;
  top: 50%;
  width: 11px;
  height: 11px;
  margin-top: -8px;
  border-right: 2px solid var(--red);
  border-bottom: 2px solid var(--red);
  transform: rotate(45deg);
  transition: transform 0.3s var(--ease);
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -3px; }
.faq summary:hover { color: var(--red-bright); }
.faq summary:focus-visible { outline: 2px solid var(--red-bright); outline-offset: 3px; }
.faq .answer { padding: 0 52px 24px 0; }
.faq .answer p { margin: 0 0 0.85em; }
.faq .answer p:last-child { margin-bottom: 0; }
.faq .answer ul { margin: 0.4em 0 0; padding-left: 1.1rem; }

@media (max-width: 640px) {
  .faq summary, .faq .answer { padding-right: 40px; }
}

/* ---------- 24. Feedback del form (validazione server-side) ---------- */
.form-alert {
  border: 1px solid rgba(255, 0, 0, 0.45);
  background: var(--red-soft);
  color: var(--text);
  border-radius: var(--radius);
  padding: 14px 18px;
  margin-bottom: 22px;
  font-size: 0.95rem;
}
.form-alert:focus-visible { outline: 2px solid var(--red-bright); outline-offset: 2px; }

.field-error {
  display: block;
  margin-top: 6px;
  color: var(--red-bright);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
}

.form-field input[aria-invalid="true"],
.form-field textarea[aria-invalid="true"],
.form-field select[aria-invalid="true"] {
  border-color: var(--red);
}
