/* ============================================
   FILUM — styles.css
   Sistema di design completo per stampa 3D artigianale
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700&family=Inter:wght@300;400;500;600&display=swap');

/* ============================================
   VARIABILI CUSTOM
   ============================================ */

:root {
  /* Colori */
  --color-bg:           #0A0A0A;
  --color-surface:      #111111;
  --color-surface-2:    #1A1A1A;
  --color-accent:       #00F5A0;
  --color-accent-2:     #7B61FF;
  --color-text:         #F0F0F0;
  --color-text-sec:     #888888;
  --color-border:       rgba(255, 255, 255, 0.08);
  --color-whatsapp:     #25D366;

  /* Tipografia */
  --font-display: 'Space Grotesk', sans-serif;
  --font-body:    'Inter', sans-serif;

  /* Spaziature */
  --space-xs:  0.5rem;
  --space-sm:  1rem;
  --space-md:  1.5rem;
  --space-lg:  2rem;
  --space-xl:  3rem;
  --space-2xl: 5rem;
  --space-3xl: 8rem;

  /* Layout */
  --container-max:     1200px;
  --container-pad:     clamp(1.25rem, 5vw, 3rem);

  /* Transizioni */
  --t-fast:   150ms ease;
  --t-base:   300ms ease;
  --t-slow:   600ms ease;

  /* Bordi */
  --r-sm:  8px;
  --r-md:  14px;
  --r-lg:  24px;
  --r-xl:  36px;
  --r-full: 9999px;
}

/* ============================================
   RESET
   ============================================ */

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-size: 16px;
}

body {
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
  cursor: none;
}

@media (pointer: coarse) { body { cursor: auto; } }

img    { max-width: 100%; height: auto; display: block; }
a      { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: inherit; border: none; }
ul,ol  { list-style: none; }
input, select, textarea { font-family: inherit; }

/* ============================================
   CURSORE CUSTOM
   ============================================ */

.cursor {
  position: fixed;
  width: 20px;
  height: 20px;
  border: 1.5px solid var(--color-accent);
  border-radius: 50%;
  pointer-events: none;
  z-index: 99999;
  transform: translate(-50%, -50%);
  transition: width var(--t-fast), height var(--t-fast), border-color var(--t-fast);
  will-change: left, top;
}

.cursor.cursor--hover {
  width: 40px;
  height: 40px;
  border-color: var(--color-accent-2);
  background: rgba(123, 97, 255, 0.08);
}

/* ============================================
   LAYOUT UTILITIES
   ============================================ */

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-pad);
}

.label {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-accent);
}

/* ============================================
   TIPOGRAFIA
   ============================================ */

h1,h2,h3,h4,h5,h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.025em;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3.5rem);
  margin-top: var(--space-xs);
  margin-bottom: var(--space-sm);
}

.section-sub {
  font-size: 1.0625rem;
  color: var(--color-text-sec);
  line-height: 1.75;
}

.section-header { margin-bottom: var(--space-2xl); }
.section-header--center { text-align: center; max-width: 640px; margin-left: auto; margin-right: auto; }

/* ============================================
   ANIMAZIONI REVEAL
   ============================================ */

.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-stagger > * {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal-stagger.visible > *:nth-child(1) { transition-delay: 0ms; }
.reveal-stagger.visible > *:nth-child(2) { transition-delay: 100ms; }
.reveal-stagger.visible > *:nth-child(3) { transition-delay: 200ms; }
.reveal-stagger.visible > *:nth-child(4) { transition-delay: 300ms; }
.reveal-stagger.visible > *:nth-child(5) { transition-delay: 400ms; }
.reveal-stagger.visible > *:nth-child(6) { transition-delay: 500ms; }
.reveal-stagger.visible > * { opacity: 1; transform: translateY(0); }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes lineReveal {
  to { opacity: 1; transform: translateY(0); }
}

@keyframes drawLine {
  to { stroke-dashoffset: 0; }
}

@keyframes gridDrift {
  0%   { background-position: 0 0; }
  100% { background-position: 40px 40px; }
}

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

/* ============================================
   NAVIGAZIONE
   ============================================ */

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 1.5rem 0;
  transition: background var(--t-base), padding var(--t-base), backdrop-filter var(--t-base);
}

.nav.nav--scrolled {
  background: rgba(17, 17, 17, 0.96);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--color-border);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--color-text);
}
.nav__logo span { color: var(--color-accent); }

.nav__links {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}

.nav__links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-text-sec);
  transition: color var(--t-fast);
  position: relative;
}

.nav__links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 1.5px;
  background: var(--color-accent);
  transition: width var(--t-base);
}

.nav__links a:hover,
.nav__links a.active { color: var(--color-text); }

.nav__links a:hover::after,
.nav__links a.active::after { width: 100%; }

.nav__cta {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-bg) !important;
  background: var(--color-accent);
  padding: 0.5rem 1.25rem;
  border-radius: var(--r-full);
  transition: opacity var(--t-fast) !important;
}
.nav__cta::after { display: none !important; }
.nav__cta:hover { opacity: 0.85; }

/* Hamburger */
.nav__hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 40px; height: 40px;
  background: none;
  padding: 6px;
}

.nav__hamburger span {
  display: block;
  width: 100%; height: 1.5px;
  background: var(--color-text);
  transition: transform var(--t-base), opacity var(--t-base);
  transform-origin: center;
}

.nav__hamburger.active span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav__hamburger.active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav__hamburger.active span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* Mobile nav overlay */
.nav__mobile {
  position: fixed;
  inset: 0;
  background: var(--color-surface);
  z-index: 999;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-xl);
  display: none;
}

.nav__mobile.active { display: flex; }

.nav__mobile a {
  font-family: var(--font-display);
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--color-text);
  transition: color var(--t-fast);
}
.nav__mobile a:hover { color: var(--color-accent); }

/* ============================================
   HERO (solo index)
   ============================================ */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  background: var(--color-bg);
  overflow: hidden;
}

/* Grid di punti animata — SVG come background-image */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.055) 1.2px, transparent 1.2px);
  background-size: 40px 40px;
  animation: gridDrift 24s linear infinite;
  pointer-events: none;
}

/* Sfumatura radiale per ammorbidire i bordi */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% 110%, transparent 0%, var(--color-bg) 70%),
    radial-gradient(ellipse 50% 100% at 100% 50%, rgba(0,245,160,0.04) 0%, transparent 60%);
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 960px;
  padding-top: 7rem;
  padding-bottom: 5rem;
}

.hero__label {
  margin-bottom: var(--space-md);
  opacity: 0;
  animation: fadeUp 0.6s ease forwards 0.2s;
}

.hero__title {
  font-size: clamp(3rem, 8vw, 7rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.0;
  margin-bottom: var(--space-md);
}

.hero__title .line { display: block; overflow: hidden; }

.hero__title .line span {
  display: block;
  opacity: 0;
  transform: translateY(110%);
  animation: lineReveal 0.85s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.hero__title .line:nth-child(1) span { animation-delay: 0.3s; }
.hero__title .line:nth-child(2) span { animation-delay: 0.48s; }
.hero__title .line:nth-child(3) span { animation-delay: 0.66s; }

.hero__accent { color: var(--color-accent); }

/* Linea neon animata */
.hero__underline { margin-bottom: var(--space-lg); }
.hero__underline svg { width: min(320px, 80vw); height: 4px; overflow: visible; }
.hero__underline line {
  stroke: var(--color-accent);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-dasharray: 320;
  stroke-dashoffset: 320;
  animation: drawLine 1.1s ease forwards 1.1s;
  filter: drop-shadow(0 0 8px var(--color-accent));
}

.hero__sub {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--color-text-sec);
  max-width: 520px;
  line-height: 1.75;
  margin-bottom: var(--space-xl);
  opacity: 0;
  animation: fadeUp 0.8s ease forwards 0.95s;
}

.hero__ctas {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-sm);
  opacity: 0;
  animation: fadeUp 0.8s ease forwards 1.15s;
}

/* ============================================
   BUTTONS
   ============================================ */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-size: 0.9375rem;
  font-weight: 600;
  padding: 0.875rem 1.75rem;
  border-radius: var(--r-full);
  transition: all var(--t-base);
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.btn--primary {
  background: var(--color-accent);
  color: var(--color-bg);
}
.btn--primary:hover {
  background: #07e897;
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0, 245, 160, 0.35);
}

.btn--ghost {
  background: transparent;
  color: var(--color-text);
  border: 1px solid var(--color-border);
}
.btn--ghost:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
  transform: translateY(-2px);
}

.btn--whatsapp {
  background: var(--color-whatsapp);
  color: #fff;
}
.btn--whatsapp:hover {
  background: #1ebe5a;
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(37, 211, 102, 0.35);
}

/* ============================================
   SEZIONI — COMUNE
   ============================================ */

section { padding: var(--space-3xl) 0; }

/* ============================================
   COSA FACCIAMO — 3 colonne
   ============================================ */

.features { background: var(--color-surface); }

.features__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.feature-card {
  padding: var(--space-xl) var(--space-lg);
  border-right: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  transition: background var(--t-base);
}
.feature-card:nth-child(3n) { border-right: none; }
.feature-card:nth-last-child(-n+3) { border-bottom: none; }
.feature-card:hover { background: var(--color-surface-2); }

.feature-card__icon {
  width: 48px; height: 48px;
  color: var(--color-accent);
  margin-bottom: var(--space-md);
}

.feature-card__title {
  font-size: 1.25rem;
  margin-bottom: var(--space-xs);
}

.feature-card__desc {
  font-size: 0.9375rem;
  color: var(--color-text-sec);
  line-height: 1.7;
}

/* ============================================
   ANTEPRIMA GALLERIA
   ============================================ */

.gallery-preview { background: var(--color-bg); }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-sm);
}

.gallery-card {
  border-radius: var(--r-md);
  overflow: hidden;
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  cursor: pointer;
  transition: border-color var(--t-base), transform var(--t-base);
}
.gallery-card:hover {
  border-color: var(--color-accent);
  transform: translateY(-4px);
}

.gallery-card__img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  transition: transform var(--t-slow);
}
.gallery-card:hover .gallery-card__img { transform: scale(1.05); }

.gallery-card__info { padding: 0.875rem var(--space-sm); }

.gallery-card__name {
  font-family: var(--font-display);
  font-size: 0.9375rem;
  font-weight: 600;
  margin-bottom: 0.2rem;
}

.gallery-card__mat {
  font-size: 0.72rem;
  color: var(--color-accent);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.gallery-preview__cta {
  text-align: center;
  margin-top: var(--space-xl);
}

/* ============================================
   MANIFESTO
   ============================================ */

.manifesto {
  background: var(--color-accent);
  padding: var(--space-3xl) 0;
}

.manifesto__inner {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.manifesto__label {
  color: rgba(10,10,10,0.55);
  margin-bottom: var(--space-sm);
}

.manifesto__quote {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 3.25rem);
  font-weight: 700;
  color: var(--color-bg);
  line-height: 1.2;
  letter-spacing: -0.035em;
}

/* ============================================
   STRIP MATERIALI (index)
   ============================================ */

.materials-strip {
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  padding: var(--space-2xl) 0;
}

.materials-strip__label { text-align: center; margin-bottom: var(--space-lg); }

.materials-strip__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-sm);
}

.material-pill {
  padding: var(--space-md) var(--space-lg);
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  border-radius: var(--r-md);
  text-align: center;
  transition: border-color var(--t-base);
}
.material-pill:hover { border-color: var(--color-accent); }

.material-pill__name {
  font-family: var(--font-display);
  font-size: 1.625rem;
  font-weight: 700;
  color: var(--color-accent);
  margin-bottom: 0.25rem;
}

.material-pill__desc {
  font-size: 0.8125rem;
  color: var(--color-text-sec);
  line-height: 1.5;
}

/* ============================================
   CTA FINALE
   ============================================ */

.cta-section {
  background: var(--color-bg);
  text-align: center;
}

.cta-section__title {
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  margin-bottom: var(--space-xs);
}

.cta-section__sub {
  color: var(--color-text-sec);
  font-size: 1.0625rem;
  margin-bottom: var(--space-xl);
}

/* ============================================
   FOOTER
   ============================================ */

.footer {
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  padding: var(--space-2xl) 0 var(--space-md);
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: var(--space-xl);
  margin-bottom: var(--space-xl);
}

.footer__logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  margin-bottom: var(--space-sm);
}
.footer__logo span { color: var(--color-accent); }

.footer__tagline {
  font-size: 0.9375rem;
  color: var(--color-text-sec);
  line-height: 1.7;
  max-width: 280px;
}

.footer__heading {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-text-sec);
  margin-bottom: var(--space-md);
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.footer__links a {
  font-size: 0.9375rem;
  color: var(--color-text-sec);
  transition: color var(--t-fast);
}
.footer__links a:hover { color: var(--color-accent); }

.footer__contact-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.9375rem;
  color: var(--color-text-sec);
  margin-bottom: 0.75rem;
}
.footer__contact-item svg { flex-shrink: 0; color: var(--color-accent); }

.footer__bottom {
  border-top: 1px solid var(--color-border);
  padding-top: var(--space-md);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.footer__copy {
  font-size: 0.8125rem;
  color: var(--color-text-sec);
}

/* ============================================
   WHATSAPP FLOATING
   ============================================ */

.whatsapp-float {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 56px; height: 56px;
  background: var(--color-whatsapp);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 900;
  box-shadow: 0 4px 24px rgba(37, 211, 102, 0.45);
  transition: transform var(--t-base), box-shadow var(--t-base);
  animation: float 3s ease-in-out infinite;
}
.whatsapp-float:hover {
  transform: translateY(-4px) scale(1.08);
  box-shadow: 0 8px 32px rgba(37, 211, 102, 0.55);
  animation: none;
}
.whatsapp-float svg { width: 28px; height: 28px; color: #fff; }

/* ============================================
   PAGE HERO (pagine interne)
   ============================================ */

.page-hero {
  min-height: 55vh;
  display: flex;
  align-items: flex-end;
  padding-top: 9rem;
  padding-bottom: 4rem;
  background: var(--color-bg);
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.045) 1px, transparent 1px);
  background-size: 40px 40px;
}

.page-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, var(--color-bg) 0%, transparent 60%);
}

.page-hero__content {
  position: relative;
  z-index: 1;
}

.page-hero__title {
  font-size: clamp(2.5rem, 6vw, 5.5rem);
  margin-top: var(--space-xs);
  margin-bottom: 0;
}

.page-hero__sub {
  font-size: 1.125rem;
  color: var(--color-text-sec);
  margin-top: var(--space-md);
  max-width: 560px;
  line-height: 1.75;
}

/* ============================================
   CHI SIAMO — Storia
   ============================================ */

.story { background: var(--color-bg); }

.story__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: center;
}

.story__text p {
  font-size: 1.0625rem;
  color: var(--color-text-sec);
  line-height: 1.85;
  margin-bottom: var(--space-md);
}
.story__text p:last-child { margin-bottom: 0; }

.story__image {
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--color-border);
}
.story__image img { width: 100%; height: 500px; object-fit: cover; }

/* ============================================
   CHI SIAMO — Valori
   ============================================ */

.values { background: var(--color-surface); }

.values__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
}

.value-card {
  padding: var(--space-lg);
  background: var(--color-surface-2);
  border-radius: var(--r-md);
  border: 1px solid var(--color-border);
  transition: border-color var(--t-base), transform var(--t-base);
}
.value-card:hover {
  border-color: var(--color-accent);
  transform: translateY(-4px);
}

.value-card__num {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--color-accent);
  opacity: 0.25;
  margin-bottom: var(--space-sm);
  line-height: 1;
}

.value-card__title {
  font-size: 1.125rem;
  margin-bottom: var(--space-xs);
}

.value-card__desc {
  font-size: 0.9375rem;
  color: var(--color-text-sec);
  line-height: 1.65;
}

/* ============================================
   CHI SIAMO — Timeline processo
   ============================================ */

.process { background: var(--color-bg); }

.timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  position: relative;
  margin-top: var(--space-2xl);
}

.timeline::before {
  content: '';
  position: absolute;
  top: 28px;
  left: calc(12.5% + 16px);
  right: calc(12.5% + 16px);
  height: 1px;
  background: linear-gradient(to right, var(--color-accent), var(--color-accent-2));
}

.timeline-step { padding: 0 1rem; text-align: center; }

.timeline-step__dot {
  width: 56px; height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-md);
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-bg);
  position: relative;
  z-index: 1;
}

.timeline-step:nth-child(1) .timeline-step__dot { background: var(--color-accent); }
.timeline-step:nth-child(2) .timeline-step__dot { background: #4AEDB5; }
.timeline-step:nth-child(3) .timeline-step__dot { background: #9D7AFF; }
.timeline-step:nth-child(4) .timeline-step__dot { background: var(--color-accent-2); }

.timeline-step__title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.timeline-step__desc {
  font-size: 0.875rem;
  color: var(--color-text-sec);
  line-height: 1.6;
}

/* ============================================
   SERVIZI — Cards
   ============================================ */

.services-block { background: var(--color-bg); }
.services-block--alt { background: var(--color-surface); }

.services-block__tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  border-radius: var(--r-full);
  background: rgba(0,245,160,0.1);
  border: 1px solid rgba(0,245,160,0.2);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: var(--space-md);
}

.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
}

.service-card {
  padding: var(--space-lg);
  background: var(--color-surface-2);
  border-radius: var(--r-md);
  border: 1px solid var(--color-border);
  transition: border-color var(--t-base), transform var(--t-base);
}
.service-card:hover {
  border-color: var(--color-accent);
  transform: translateY(-4px);
}

.service-card__icon {
  width: 40px; height: 40px;
  color: var(--color-accent);
  margin-bottom: var(--space-md);
}

.service-card__title {
  font-size: 1.125rem;
  margin-bottom: var(--space-xs);
}

.service-card__desc {
  font-size: 0.9375rem;
  color: var(--color-text-sec);
  line-height: 1.65;
}

/* ============================================
   SERVIZI — Tabella Materiali
   ============================================ */

.materials-table { background: var(--color-bg); }

.table-wrapper {
  overflow-x: auto;
  border-radius: var(--r-md);
  border: 1px solid var(--color-border);
}

table { width: 100%; border-collapse: collapse; }

th {
  font-family: var(--font-display);
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 1rem 1.25rem;
  text-align: left;
  background: var(--color-surface-2);
  color: var(--color-text-sec);
  border-bottom: 1px solid var(--color-border);
  white-space: nowrap;
}
th:first-child { color: var(--color-text); }

td {
  padding: 1rem 1.25rem;
  font-size: 0.9375rem;
  border-bottom: 1px solid var(--color-border);
  vertical-align: middle;
}
tr:last-child td { border-bottom: none; }
tr:hover td { background: rgba(255,255,255,0.015); }
td:first-child {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--color-accent);
  font-size: 1.0625rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.65rem;
  border-radius: var(--r-full);
  font-size: 0.75rem;
  font-weight: 500;
}
.badge--green  { background: rgba(0,245,160,0.12);  color: var(--color-accent); }
.badge--purple { background: rgba(123,97,255,0.12); color: var(--color-accent-2); }
.badge--gray   { background: rgba(255,255,255,0.07); color: var(--color-text-sec); }

/* ============================================
   SERVIZI — Tempi consegna
   ============================================ */

.delivery { background: var(--color-surface); }

.delivery__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
}

.delivery-card {
  padding: var(--space-lg);
  background: var(--color-surface-2);
  border-radius: var(--r-md);
  border: 1px solid var(--color-border);
  text-align: center;
  transition: border-color var(--t-base);
}
.delivery-card:hover { border-color: var(--color-accent); }

.delivery-card__time {
  font-family: var(--font-display);
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--color-accent);
  margin-bottom: 0.5rem;
}

.delivery-card__type {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.delivery-card__note {
  font-size: 0.875rem;
  color: var(--color-text-sec);
  line-height: 1.5;
}

/* ============================================
   FORM CONTATTO (servizi + contatti)
   ============================================ */

.form-section { background: var(--color-bg); }
.form-section--alt { background: var(--color-surface); }

.form-container { max-width: 700px; margin: 0 auto; }

.form-group { margin-bottom: var(--space-md); }

.form-group label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--color-text-sec);
  margin-bottom: 0.5rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.9375rem 1.125rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--r-sm);
  color: var(--color-text);
  font-size: 0.9375rem;
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
  -webkit-appearance: none;
  appearance: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(0, 245, 160, 0.1);
}

.form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.75rem;
  cursor: pointer;
}

.form-group select option { background: var(--color-surface-2); }
.form-group textarea { resize: vertical; min-height: 150px; }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
}

.form-message {
  margin-top: var(--space-md);
  padding: 1rem 1.25rem;
  border-radius: var(--r-sm);
  font-size: 0.9375rem;
  display: none;
}
.form-message--success {
  background: rgba(0,245,160,0.08);
  border: 1px solid rgba(0,245,160,0.3);
  color: var(--color-accent);
  display: block;
}
.form-message--error {
  background: rgba(255,70,70,0.08);
  border: 1px solid rgba(255,70,70,0.3);
  color: #ff5555;
  display: block;
}

/* ============================================
   CONTATTI — Info blocco
   ============================================ */

.contact-info { background: var(--color-surface); }

.contact-info__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2xl);
  align-items: start;
}

.contact-info__item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: var(--space-md);
  background: var(--color-surface-2);
  border-radius: var(--r-md);
  border: 1px solid var(--color-border);
  margin-bottom: var(--space-sm);
  transition: border-color var(--t-base);
}
.contact-info__item:hover { border-color: var(--color-accent); }

.contact-info__icon {
  width: 44px; height: 44px;
  background: rgba(0,245,160,0.08);
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--color-accent);
}

.contact-info__label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-text-sec);
  margin-bottom: 0.3rem;
}

.contact-info__value {
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 600;
}
.contact-info__value a { color: var(--color-text); transition: color var(--t-fast); }
.contact-info__value a:hover { color: var(--color-accent); }

/* Mappa */
.map-section { background: var(--color-bg); }

.map-wrapper {
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--color-border);
  height: 420px;
}
.map-wrapper iframe {
  width: 100%; height: 100%;
  border: none;
  filter: invert(1) hue-rotate(180deg) saturate(0.7) brightness(0.9);
}

/* ============================================
   GALLERIA — Masonry + Filtri
   ============================================ */

.gallery-section { background: var(--color-bg); }

.gallery-filters {
  display: flex;
  gap: var(--space-xs);
  flex-wrap: wrap;
  margin-bottom: var(--space-xl);
}

.filter-btn {
  padding: 0.5rem 1.25rem;
  border-radius: var(--r-full);
  border: 1px solid var(--color-border);
  background: transparent;
  color: var(--color-text-sec);
  font-size: 0.875rem;
  font-weight: 500;
  transition: all var(--t-fast);
}
.filter-btn:hover,
.filter-btn.active {
  border-color: var(--color-accent);
  color: var(--color-accent);
  background: rgba(0,245,160,0.08);
}

/* Masonry CSS */
.masonry-grid {
  columns: 3;
  column-gap: var(--space-sm);
}

.masonry-item {
  break-inside: avoid;
  margin-bottom: var(--space-sm);
  border-radius: var(--r-md);
  overflow: hidden;
  border: 1px solid var(--color-border);
  cursor: pointer;
  background: var(--color-surface);
  transition: border-color var(--t-base), transform var(--t-base);
}
.masonry-item:hover {
  border-color: var(--color-accent);
  transform: translateY(-4px);
}

.masonry-item img {
  width: 100%;
  display: block;
  transition: transform var(--t-slow);
}
.masonry-item:hover img { transform: scale(1.03); }

.masonry-item__info { padding: 0.875rem var(--space-sm); }

.masonry-item__name {
  font-family: var(--font-display);
  font-size: 0.9375rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.masonry-item__mat {
  font-size: 0.72rem;
  color: var(--color-accent);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ============================================
   LIGHTBOX
   ============================================ */

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.93);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-lg);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--t-base);
}
.lightbox.active { opacity: 1; pointer-events: auto; }

.lightbox__img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: var(--r-md);
  box-shadow: 0 40px 80px rgba(0,0,0,0.8);
}

.lightbox__close {
  position: fixed;
  top: 1.5rem; right: 1.5rem;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.15);
  color: var(--color-text);
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background var(--t-fast);
}
.lightbox__close:hover { background: rgba(255,255,255,0.2); }

/* ============================================
   404 PAGE
   ============================================ */

.not-found {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: var(--color-bg);
  position: relative;
  overflow: hidden;
}

.not-found::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 40px 40px;
}

.not-found__content { position: relative; z-index: 1; }

.not-found__num {
  font-family: var(--font-display);
  font-size: clamp(8rem, 22vw, 18rem);
  font-weight: 700;
  color: var(--color-accent);
  line-height: 0.85;
  letter-spacing: -0.06em;
  filter: drop-shadow(0 0 60px rgba(0,245,160,0.25));
  margin-bottom: var(--space-lg);
}

.not-found__title {
  font-size: clamp(1.25rem, 3vw, 2rem);
  margin-bottom: var(--space-sm);
}

.not-found__sub {
  font-size: 1.0625rem;
  color: var(--color-text-sec);
  margin-bottom: var(--space-xl);
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 1024px) {
  .features__grid           { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid             { grid-template-columns: repeat(2, 1fr); }
  .footer__grid             { grid-template-columns: 1fr 1fr; }
  .story__grid              { grid-template-columns: 1fr; }
  .story__image             { display: none; }
  .values__grid             { grid-template-columns: 1fr 1fr; }
  .timeline                 { grid-template-columns: repeat(2, 1fr); gap: var(--space-xl); }
  .timeline::before         { display: none; }
  .services__grid           { grid-template-columns: repeat(2, 1fr); }
  .delivery__grid           { grid-template-columns: repeat(3, 1fr); }
  .contact-info__grid       { grid-template-columns: 1fr; }
  .masonry-grid             { columns: 2; }
  .materials-strip__grid    { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  :root {
    --space-3xl: 5rem;
    --space-2xl: 3.5rem;
  }

  .nav__links             { display: none; }
  .nav__hamburger         { display: flex; }
  .features__grid         { grid-template-columns: 1fr; }
  .gallery-grid           { grid-template-columns: 1fr; }
  .footer__grid           { grid-template-columns: 1fr; }
  .timeline               { grid-template-columns: 1fr; }
  .services__grid         { grid-template-columns: 1fr; }
  .delivery__grid         { grid-template-columns: 1fr; }
  .values__grid           { grid-template-columns: 1fr; }
  .form-row               { grid-template-columns: 1fr; }
  .masonry-grid           { columns: 1; }
  .hero__ctas             { flex-direction: column; align-items: flex-start; }
  .cursor                 { display: none; }
  .feature-card           { border-right: none; }

  .contact-info__grid     { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .materials-strip__grid  { grid-template-columns: repeat(2, 1fr); }
}
