/* ============================================
   EBANOR — foglio di stile condiviso
   ============================================ */

:root {
  --wood-950: #0a0a0b;
  --wood-900: #141417;
  --wood-800: #232329;
  --wood-700: #35353d;
  --wood-500: #6e6e79;
  --wood-300: #a9a9b3;
  --honey: #e3c03a;
  --honey-bright: #fedd52;
  --cream: #f6f6f8;
  --cream-dark: #eaeaee;
  --ink: #16161a;
  --ink-soft: #5d5d67;
  --white: #ffffff;

  --font-display: "Space Grotesk", "Inter", system-ui, sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --maxw: 1180px;
  --radius: 14px;
  --shadow: 0 18px 45px -18px rgba(0, 0, 0, 0.35);
  --transition: 0.35s cubic-bezier(0.22, 0.61, 0.36, 1);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: inherit; }

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- HEADER ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 18px 0;
  transition: background var(--transition), box-shadow var(--transition), padding var(--transition);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.site-header.scrolled,
.site-header.solid {
  background: rgba(10, 10, 12, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 10px 30px -18px rgba(0,0,0,0.6);
  padding: 12px 0;
}

.logo {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.35rem;
  letter-spacing: 0.02em;
  color: var(--cream);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
}
.logo .logo-mark {
  width: 38px; height: 38px;
  flex: 0 0 38px;
}
.logo span em {
  font-style: normal;
  color: var(--honey);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}
.main-nav a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  padding: 9px 14px;
  border-radius: 999px;
  transition: color var(--transition), background var(--transition);
}
.main-nav a:hover { color: var(--honey-bright); background: rgba(227, 192, 58, 0.12); }
.main-nav a.active { color: var(--wood-950); background: var(--honey); }
.main-nav a.nav-cta {
  border: 1px solid rgba(227, 192, 58, 0.55);
  margin-left: 8px;
}
.main-nav a.nav-cta:hover { background: var(--honey); color: var(--wood-950); }

/* Burger */
.nav-toggle {
  display: none;
  background: none;
  border: 0;
  cursor: pointer;
  width: 42px; height: 42px;
  border-radius: 10px;
  align-items: center;
  justify-content: center;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: "";
  display: block;
  width: 22px; height: 2px;
  background: var(--cream);
  position: relative;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.nav-toggle span::before { position: absolute; top: -7px; }
.nav-toggle span::after  { position: absolute; top: 7px; }
body.nav-open .nav-toggle span { background: transparent; }
body.nav-open .nav-toggle span::before { transform: translateY(7px) rotate(45deg); }
body.nav-open .nav-toggle span::after  { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .main-nav {
    position: fixed;
    inset: 0;
    background: rgba(10, 10, 12, 0.97);
    flex-direction: column;
    justify-content: center;
    gap: 14px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
  }
  .main-nav a { font-size: 1.25rem; }
  body.nav-open .main-nav { opacity: 1; pointer-events: auto; }
  body.nav-open { overflow: hidden; }
  .nav-toggle { position: relative; z-index: 101; }
}

/* ---------- HERO (homepage) ---------- */
.hero {
  position: relative;
  height: 100vh;
  height: 100svh;
  min-height: 560px;
  overflow: hidden;
  color: var(--cream);
}
#hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 1; /* sopra la carta millimetrata (z 0): la griglia resta dietro ai mobili */
}
/* Carta millimetrata "illuminata da spot": visibile solo dentro
   tre aloni di luce, opacità massima 25% */
.lab3d-stage::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.25;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.85) 1.5px, transparent 1.5px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.85) 1.5px, transparent 1.5px),
    linear-gradient(rgba(255, 255, 255, 0.55) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.55) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.3) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.3) 1px, transparent 1px);
  background-size:
    80px 80px, 80px 80px,   /* centimetri */
    40px 40px, 40px 40px,   /* mezzi centimetri */
    8px 8px, 8px 8px;       /* millimetri */
  -webkit-mask-image:
    radial-gradient(circle 320px at 16% 26%, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.35) 45%, transparent 72%),
    radial-gradient(circle 260px at 86% 18%, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.3) 45%, transparent 72%),
    radial-gradient(circle 380px at 55% 88%, rgba(0,0,0,0.75) 0%, rgba(0,0,0,0.28) 48%, transparent 75%);
  mask-image:
    radial-gradient(circle 320px at 16% 26%, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.35) 45%, transparent 72%),
    radial-gradient(circle 260px at 86% 18%, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.3) 45%, transparent 72%),
    radial-gradient(circle 380px at 55% 88%, rgba(0,0,0,0.75) 0%, rgba(0,0,0,0.28) 48%, transparent 75%);
}
/* Spot millimetrato anche sulla sezione intro, in versione chiara */
.home-intro-band {
  position: relative;
}
.home-intro-band::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.18;
  background-image:
    linear-gradient(rgba(120, 120, 132, 0.8) 1.5px, transparent 1.5px),
    linear-gradient(90deg, rgba(120, 120, 132, 0.8) 1.5px, transparent 1.5px),
    linear-gradient(rgba(120, 120, 132, 0.4) 1px, transparent 1px),
    linear-gradient(90deg, rgba(120, 120, 132, 0.4) 1px, transparent 1px);
  background-size: 80px 80px, 80px 80px, 8px 8px, 8px 8px;
  -webkit-mask-image:
    radial-gradient(circle 340px at 88% 20%, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.3) 48%, transparent 74%),
    radial-gradient(circle 240px at 8% 78%, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.25) 45%, transparent 72%);
  mask-image:
    radial-gradient(circle 340px at 88% 20%, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.3) 48%, transparent 74%),
    radial-gradient(circle 240px at 8% 78%, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.25) 45%, transparent 72%);
}
.home-intro-band > .container { position: relative; z-index: 1; }
.hero-overlay {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  pointer-events: none;
}
.hero-overlay > * { pointer-events: auto; }
.hero-kicker {
  font-size: 0.82rem;
  letter-spacing: 0.01em;
  color: var(--honey);
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.hero-kicker::before {
  content: "";
  width: 44px; height: 1px;
  background: var(--honey);
  display: inline-block;
}
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 6.5vw, 5rem);
  line-height: 1.05;
  font-weight: 600;
  max-width: 12ch;
  text-wrap: balance;
}
.hero h1 em {
  font-style: italic;
  color: var(--honey-bright);
}
.hero p.hero-sub {
  margin-top: 22px;
  max-width: 46ch;
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  color: rgba(255, 255, 255, 0.78);
}
.hero-actions {
  margin-top: 36px;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.hero-hint {
  position: absolute;
  right: 32px;
  bottom: 96px;
  z-index: 2;
  font-size: 0.78rem;
  letter-spacing: 0.01em;
  color: rgba(255, 255, 255, 0.55);
  display: flex;
  align-items: center;
  gap: 10px;
  pointer-events: none;
}
.hero-hint svg { width: 20px; height: 20px; opacity: 0.7; }
@media (hover: none), (max-width: 860px) { .hero-hint { display: none; } }

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  z-index: 2;
  width: 26px; height: 42px;
  border: 2px solid rgba(255, 255, 255, 0.45);
  border-radius: 14px;
}
.scroll-cue::after {
  content: "";
  position: absolute;
  top: 8px; left: 50%;
  width: 4px; height: 8px;
  margin-left: -2px;
  border-radius: 4px;
  background: var(--honey);
  animation: cue 1.8s ease-in-out infinite;
}
@keyframes cue {
  0%   { transform: translateY(0); opacity: 1; }
  70%  { transform: translateY(12px); opacity: 0; }
  100% { transform: translateY(0); opacity: 0; }
}

/* ---------- BOTTONI ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.03em;
  text-decoration: none;
  cursor: pointer;
  border: 0;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition), color var(--transition);
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: var(--honey);
  color: var(--wood-950);
  box-shadow: 0 12px 30px -12px rgba(227, 192, 58, 0.65);
}
.btn-primary:hover { background: var(--honey-bright); }
.btn-ghost {
  background: transparent;
  color: var(--cream);
  border: 1px solid rgba(255, 255, 255, 0.4);
}
.btn-ghost:hover { border-color: var(--honey); color: var(--honey-bright); }
.btn-dark {
  background: var(--wood-900);
  color: var(--cream);
}
.btn-dark:hover { background: var(--wood-800); }

/* ---------- SEZIONI ---------- */
section { padding: 96px 0; }

.section-head { max-width: 640px; margin-bottom: 56px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.kicker {
  font-size: 0.78rem;
  letter-spacing: 0.01em;
  color: var(--wood-500);
  font-weight: 600;
  display: block;
  margin-bottom: 14px;
}
h2 {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3.6vw, 2.8rem);
  font-weight: 600;
  line-height: 1.15;
  color: var(--wood-900);
}
.section-head p { margin-top: 16px; color: var(--ink-soft); }

/* Pagina interna: intestazione */
.page-hero {
  background: linear-gradient(155deg, #0c0c0e 0%, #23232a 58%, #45454f 130%);
  color: var(--cream);
  padding: 180px 0 90px;
  position: relative;
  overflow: hidden;
}
.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(100deg, rgba(227, 192, 58,0.05) 0 2px, transparent 2px 90px);
  pointer-events: none;
}
.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 600;
  line-height: 1.1;
  max-width: 16ch;
}
.page-hero .kicker { color: var(--honey); }
.page-hero p { margin-top: 18px; max-width: 54ch; color: rgba(255, 255, 255,0.75); }

/* ---------- CARD SERVIZI ---------- */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 26px;
}
.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 34px 30px;
  box-shadow: 0 10px 30px -20px rgba(0, 0, 0,0.35);
  border: 1px solid rgba(22, 22, 26, 0.12);
  transition: transform var(--transition), box-shadow var(--transition);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}
.card .card-icon {
  width: 52px; height: 52px;
  border-radius: 13px;
  background: linear-gradient(140deg, var(--wood-700), var(--wood-500));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--honey-bright);
}
.card .card-icon svg { width: 26px; height: 26px; }
.card h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--wood-900);
}
.card p { color: var(--ink-soft); font-size: 0.95rem; }
.card ul {
  list-style: none;
  margin-top: 4px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.card ul li {
  font-size: 0.9rem;
  color: var(--ink-soft);
  padding-left: 22px;
  position: relative;
}
.card ul li::before {
  content: "";
  position: absolute;
  left: 0; top: 8px;
  width: 10px; height: 2px;
  background: var(--honey);
}

/* ---------- GALLERIA LAVORI ---------- */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 40px;
}
.filter-btn {
  border: 1px solid rgba(22, 22, 26,0.35);
  background: transparent;
  color: var(--wood-700);
  padding: 9px 20px;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  font-family: var(--font-body);
  transition: background var(--transition), color var(--transition), border-color var(--transition);
}
.filter-btn:hover { border-color: var(--honey); color: var(--wood-900); }
.filter-btn.active { background: var(--wood-900); color: var(--honey); border-color: var(--wood-900); }

.works-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 26px;
}
.work-item {
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  background: var(--wood-900);
  box-shadow: 0 12px 32px -22px rgba(0, 0, 0,0.5);
  transition: transform var(--transition), box-shadow var(--transition), opacity 0.4s ease;
  cursor: pointer;
}
.work-item:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.work-item.hidden { display: none; }
.work-media {
  aspect-ratio: 4 / 3;
  width: 100%;
  display: block;
  object-fit: cover;
}
.work-caption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 46px 22px 18px;
  background: linear-gradient(to top, rgba(10, 10, 12,0.92), transparent);
  color: var(--cream);
}
.work-caption h3 { font-family: var(--font-display); font-size: 1.15rem; font-weight: 600; }
.work-caption span { font-size: 0.8rem; letter-spacing: 0.01em; color: var(--honey); }

/* ---------- CHI SIAMO ---------- */
.split {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 60px;
  align-items: center;
}
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 36px; } }
.split .media-frame {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  position: relative;
}
.split .media-frame::after {
  content: "";
  position: absolute;
  inset: 14px;
  border: 1px solid rgba(227, 192, 58,0.4);
  border-radius: calc(var(--radius) - 6px);
  pointer-events: none;
}
.prose p + p { margin-top: 16px; }
.prose p { color: var(--ink-soft); }
.prose strong { color: var(--wood-900); }

.values-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-top: 44px;
}
.value-chip {
  background: var(--white);
  border-radius: var(--radius);
  padding: 22px;
  border: 1px solid rgba(22, 22, 26,0.14);
}
.value-chip h4 { font-family: var(--font-display); color: var(--wood-900); font-size: 1.05rem; margin-bottom: 6px; }
.value-chip p { font-size: 0.88rem; color: var(--ink-soft); }

.stats-band {
  background: var(--wood-900);
  color: var(--cream);
  border-radius: var(--radius);
  padding: 46px 40px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 30px;
  text-align: center;
}
.stats-band .num {
  font-family: var(--font-display);
  font-size: 2.4rem;
  color: var(--honey);
  font-weight: 600;
  line-height: 1;
}
.stats-band .lbl {
  margin-top: 8px;
  font-size: 0.82rem;
  letter-spacing: 0.01em;
  color: rgba(255, 255, 255,0.65);
}

/* ---------- TIMELINE PROCESSO ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 26px;
  counter-reset: step;
}
.step {
  position: relative;
  padding: 28px 24px 24px;
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid rgba(22, 22, 26,0.14);
}
.step::before {
  counter-increment: step;
  content: "0" counter(step);
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--honey);
  font-weight: 600;
  display: block;
  margin-bottom: 10px;
}
.step h3 { font-family: var(--font-display); font-size: 1.15rem; color: var(--wood-900); margin-bottom: 8px; }
.step p { font-size: 0.9rem; color: var(--ink-soft); }

/* ---------- CONTATTI ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 50px;
  align-items: start;
}
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }

.contact-info-list {
  display: flex;
  flex-direction: column;
  gap: 22px;
  margin-top: 30px;
}
.contact-info-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.contact-info-item .ci-icon {
  width: 44px; height: 44px;
  flex: 0 0 44px;
  border-radius: 12px;
  background: linear-gradient(140deg, var(--wood-700), var(--wood-500));
  color: var(--honey-bright);
  display: flex;
  align-items: center;
  justify-content: center;
}
.contact-info-item .ci-icon svg { width: 22px; height: 22px; }
.contact-info-item h4 { font-size: 0.8rem; letter-spacing: 0.01em; color: var(--wood-500); }
.contact-info-item p, .contact-info-item a { color: var(--ink); font-weight: 500; text-decoration: none; }
.contact-info-item a:hover { color: var(--wood-500); }

.contact-form {
  background: var(--white);
  border-radius: var(--radius);
  padding: 38px 34px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(22, 22, 26,0.12);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }
.form-field { margin-bottom: 18px; }
.form-field label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--wood-700);
  margin-bottom: 8px;
}
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 13px 16px;
  border: 1px solid rgba(22, 22, 26,0.3);
  border-radius: 10px;
  background: var(--cream);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--ink);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.form-field textarea { min-height: 130px; resize: vertical; }
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--honey);
  box-shadow: 0 0 0 3px rgba(227, 192, 58,0.25);
}
.form-note { font-size: 0.8rem; color: var(--ink-soft); margin-top: 14px; }

.map-placeholder {
  margin-top: 60px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(22, 22, 26,0.2);
  background: repeating-linear-gradient(45deg, var(--cream-dark) 0 14px, var(--cream) 14px 28px);
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--ink-soft);
  padding: 30px;
}

/* ---------- RECENSIONI ---------- */
.reviews-band { background: var(--cream-dark); }
.reviews-score {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}
.reviews-score .score-num {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 600;
  color: var(--wood-900);
  line-height: 1;
}
.reviews-score .score-stars { color: var(--honey); font-size: 1.4rem; letter-spacing: 3px; }
.reviews-score .score-label { font-size: 0.9rem; color: var(--ink-soft); }
.review-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px 26px;
  border: 1px solid rgba(22, 22, 26, 0.14);
  box-shadow: 0 10px 30px -20px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.review-card .review-quote {
  color: var(--ink);
  font-size: 0.95rem;
  line-height: 1.6;
  flex: 1;
}
.review-card .review-quote::before { content: "\201C"; color: var(--honey); font-family: var(--font-display); font-size: 1.6rem; line-height: 0; margin-right: 4px; }
.review-card .review-author {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
}
.review-card .review-author strong { color: var(--wood-900); }
.review-card .review-author span { color: var(--ink-soft); }
.review-card .review-g {
  width: 30px; height: 30px;
  flex: 0 0 30px;
  border-radius: 50%;
  background: var(--cream);
  border: 1px solid rgba(22, 22, 26, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--wood-700);
}

/* ---------- BANDA CTA ---------- */
.cta-band {
  background:
    radial-gradient(ellipse at 80% -20%, rgba(227, 192, 58,0.25), transparent 55%),
    linear-gradient(140deg, #101014, #2c2c34 65%, #43434d);
  color: var(--cream);
  border-radius: 20px;
  padding: 70px 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
}
.cta-band h2 { color: var(--cream); max-width: 20ch; }
.cta-band p { margin-top: 12px; color: rgba(255, 255, 255,0.7); max-width: 44ch; }

/* ---------- FOOTER ---------- */
.site-footer {
  background: var(--wood-950);
  color: rgba(255, 255, 255,0.75);
  padding: 64px 0 30px;
  margin-top: 96px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255,0.12);
}
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h4 {
  color: var(--cream);
  font-size: 0.82rem;
  letter-spacing: 0.01em;
  margin-bottom: 16px;
}
.site-footer a { color: rgba(255, 255, 255,0.75); text-decoration: none; transition: color var(--transition); }
.site-footer a:hover { color: var(--honey-bright); }
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-bottom {
  padding-top: 26px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 0.82rem;
  color: rgba(255, 255, 255,0.45);
}
.ig-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  font-weight: 600;
  color: var(--honey) !important;
}
.ig-link svg { width: 20px; height: 20px; }

/* ---------- REVEAL ANIMATIONS ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .scroll-cue::after { animation: none; }
}

/* ---------- HOMEPAGE EXTRA ---------- */
.home-intro-band {
  padding-top: 110px;
}
.marquee-band {
  overflow: hidden;
  background: var(--wood-900);
  padding: 18px 0;
  white-space: nowrap;
}
.marquee-inner {
  display: inline-block;
  animation: marquee 30s linear infinite;
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: rgba(255, 255, 255,0.7);
}
.marquee-inner span { margin: 0 28px; }
.marquee-inner .dot { color: var(--honey); }
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) { .marquee-inner { animation: none; } }

/* ============================================================
   RESTYLE AJ — fondi in scala di grigi, card fotografiche
   ============================================================ */

body {
  background:
    radial-gradient(ellipse at 15% -10%, #ffffff 0%, rgba(255,255,255,0) 55%),
    radial-gradient(ellipse at 100% 20%, #e4e4ea 0%, rgba(228,228,234,0) 60%),
    linear-gradient(180deg, #fafafb 0%, #eeeef2 55%, #e6e6ec 100%);
}

/* bande di sezione: ombra morbida invece del beige */
section[style*="--cream-dark"],
.home-intro-band {
  background: linear-gradient(180deg, rgba(255,255,255,0.9), rgba(226,226,233,0.85)) !important;
  border-top: 1px solid rgba(0,0,0,0.05);
  border-bottom: 1px solid rgba(0,0,0,0.05);
}

.marquee-band {
  background: linear-gradient(90deg, #0a0a0b, #2a2a31 50%, #0a0a0b);
  color: #fff;
}

/* etichette di sezione: niente maiuscolette */
.kicker, .hero-kicker {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--ink-soft);
}
.hero-kicker { color: rgba(255,255,255,0.72); }

h1, h2, h3, h4, .logo { letter-spacing: -0.015em; }

/* ---------- CARD FOTOGRAFICHE ---------- */
.card--photo {
  position: relative;
  overflow: hidden;
  border: none;
  padding: 0;
  min-height: 340px;
  background: #0a0a0b;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.card--photo .card-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(0.15) contrast(1.02);
  transform: scale(1.02);
  transition: transform 0.6s cubic-bezier(0.22, 0.61, 0.36, 1);
  z-index: 0;
}
.card--photo:hover .card-bg { transform: scale(1.07); }
.card--photo::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(to top,
    rgba(4,4,6,0.97) 0%,
    rgba(4,4,6,0.92) 45%,
    rgba(4,4,6,0.66) 70%,
    rgba(4,4,6,0.30) 100%);
}
.card--photo .card-body {
  position: relative;
  z-index: 2;
  padding: 30px 28px 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.card--photo h3 { color: #fff; font-size: 1.32rem; text-shadow: 0 2px 14px rgba(0,0,0,0.55); }
.card--photo p { color: rgba(255,255,255,0.86); }
.card--photo ul li { color: rgba(255,255,255,0.78); }
.card--photo ul li::before { background: var(--honey-bright); }
.card--photo:hover { box-shadow: 0 26px 60px -30px rgba(0,0,0,0.75); }

/* card di servizio più alte quando hanno l'elenco */
.card--photo.card--tall { min-height: 420px; }

/* ---------- RITOCCHI SU FONDO CHIARO ---------- */
.step {
  background: linear-gradient(180deg, #ffffff, #f2f2f6);
  border: 1px solid rgba(0,0,0,0.07);
}
.value-chip {
  background: linear-gradient(180deg, #ffffff, #f4f4f8);
  border: 1px solid rgba(0,0,0,0.07);
}
.stats-band {
  background: linear-gradient(140deg, #101014, #2b2b33 60%, #45454f);
  color: #fff;
}
.btn-primary { color: #141417; }

/* ---------- STEP E VALORI: card fotografiche ---------- */
.step, .value-chip {
  position: relative;
  overflow: hidden;
  border: none !important;
  background: #0a0a0b !important;
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0;
  isolation: isolate;
}
.step { min-height: 380px; }
.value-chip { min-height: 300px; }

.step .card-bg, .value-chip .card-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(0.15) contrast(1.02);
  transform: scale(1.02);
  transition: transform 0.6s cubic-bezier(0.22, 0.61, 0.36, 1);
  z-index: 0;
}
.step:hover .card-bg, .value-chip:hover .card-bg { transform: scale(1.06); }

.step::after, .value-chip::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(to top,
    rgba(4,4,6,0.96) 0%,
    rgba(4,4,6,0.9) 40%,
    rgba(4,4,6,0.52) 66%,
    rgba(4,4,6,0.12) 100%);
}
.step .card-body, .value-chip .card-body {
  position: relative;
  z-index: 2;
  padding: 26px 24px 24px;
}

/* numero del passo sopra la foto */
.step::before {
  position: relative;
  z-index: 2;
  padding: 0 24px;
  color: var(--honey-bright);
  margin-bottom: 4px;
}
.step h3, .value-chip h4 {
  color: #fff;
  text-shadow: 0 2px 14px rgba(0,0,0,0.55);
  margin-bottom: 8px;
}
.step p, .value-chip p { color: rgba(255,255,255,0.84); }
.step:hover, .value-chip:hover { box-shadow: 0 26px 60px -30px rgba(0,0,0,0.75); }

/* ---------- ZOOM AL PASSAGGIO DEL MOUSE SU TUTTE LE FOTO IN CARD ---------- */
/* galleria lavori + anteprime in home */
.work-item { overflow: hidden; }
.work-media {
  transition: transform 0.6s cubic-bezier(0.22, 0.61, 0.36, 1);
  transform-origin: center;
  will-change: transform;
}
.work-item:hover .work-media,
.work-item:focus-within .work-media { transform: scale(1.07); }

/* foto grandi affiancate al testo (home e chi siamo) */
.split .media-frame img {
  transition: transform 0.6s cubic-bezier(0.22, 0.61, 0.36, 1);
  will-change: transform;
}
.split .media-frame:hover img { transform: scale(1.06); }

/* zoom anche con tastiera sulle card fotografiche */
.card--photo:focus-within .card-bg,
.step:focus-within .card-bg,
.value-chip:focus-within .card-bg { transform: scale(1.06); }

/* chi preferisce meno animazioni non vede lo zoom */
@media (prefers-reduced-motion: reduce) {
  .work-media, .split .media-frame img,
  .card--photo .card-bg, .step .card-bg, .value-chip .card-bg {
    transition: none;
  }
  .work-item:hover .work-media,
  .split .media-frame:hover img,
  .card--photo:hover .card-bg,
  .step:hover .card-bg,
  .value-chip:hover .card-bg { transform: none; }
}

/* ============================================================
   MOBILE — Android e iOS
   ============================================================ */

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  overflow-x: hidden;
}
body { overflow-x: hidden; }
a, button, .filter-btn, .nav-toggle { -webkit-tap-highlight-color: rgba(227, 192, 58, 0.18); }

/* notch e barre di sistema (iPhone e Android con gesture bar) */
.site-header { padding-top: calc(18px + env(safe-area-inset-top, 0px)); }
.site-header.scrolled,
.site-header.solid { padding-top: calc(12px + env(safe-area-inset-top, 0px)); }
.main-nav { padding-top: env(safe-area-inset-top, 0px); }
.site-footer { padding-bottom: calc(24px + env(safe-area-inset-bottom, 0px)); }
.hero { padding-bottom: env(safe-area-inset-bottom, 0px); }

/* su touch niente hover appiccicato: dopo il tap l'immagine tornerebbe zoomata */
@media (hover: none) {
  .work-item:hover .work-media,
  .split .media-frame:hover img,
  .card--photo:hover .card-bg,
  .step:hover .card-bg,
  .value-chip:hover .card-bg { transform: scale(1.02); }
  .card--photo:hover, .step:hover, .value-chip:hover,
  .work-item:hover, .card:hover { transform: none; }
}

@media (max-width: 640px) {
  .container { padding-left: 18px; padding-right: 18px; }
  section { padding: 64px 0; }
  .section-head { margin-bottom: 36px; }

  /* una colonna: niente card strette e niente scroll orizzontale */
  .works-grid,
  .cards-grid,
  .steps,
  .values-row { grid-template-columns: 1fr; gap: 18px; }

  .card--photo { min-height: 300px; }
  .card--photo.card--tall { min-height: 360px; }
  .step { min-height: 300px; }
  .value-chip { min-height: 240px; }

  /* testo piu leggibile sullo schermo piccolo */
  .work-caption span,
  .contact-info-item h4,
  .form-note,
  .stats-band .lbl { font-size: 0.88rem; }
  .card p, .step p, .value-chip p, .card ul li { font-size: 0.95rem; }

  /* bersagli da dito: minimo 44px */
  .filter-bar { gap: 8px; }
  .filter-btn { padding: 12px 18px; min-height: 44px; font-size: 0.92rem; }
  .footer-links a,
  .contact-info-item a,
  .ig-link {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
  }
  .btn { min-height: 48px; }
  .nav-toggle { width: 48px; height: 48px; }
  .main-nav a { min-height: 48px; display: flex; align-items: center; justify-content: center; }

  /* iOS: sotto i 16px Safari zooma da solo quando si tocca un campo */
  input, select, textarea { font-size: 16px; }

  .cta-band { text-align: left; }
  .stats-band { padding: 32px 22px; gap: 22px; }
  .split .media-frame::after { inset: 10px; }
  .map-placeholder iframe { height: 300px; }
}

@media (max-width: 380px) {
  .container { padding-left: 14px; padding-right: 14px; }
  .logo { font-size: 1.15rem; }
  .logo .logo-mark { width: 32px; height: 32px; flex: 0 0 32px; }
}

@media (max-width: 640px) {
  /* anche il logo e un link: portiamolo a 44px di altezza utile */
  .logo { padding: 4px 0; min-height: 44px; }
  .site-footer .logo { min-height: 48px; }
}

/* hero senza 3D (risparmio dati o rete lenta): resta lo sfondo a gradiente */
.hero-statico #hero-canvas { display: none; }
.hero-statico .hero-hint { display: none; }

/* ============================================================
   HERO FOTOGRAFICA + BANCO 3D
   ============================================================ */

.hero-slides,
.hero-slide,
.hero-slide img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}
.hero-slide img {
  object-fit: cover;
  object-position: center;
  display: block;
}
/* le foto si danno il cambio in dissolvenza */
.hero-slide {
  opacity: 0;
  transition: opacity 1.4s ease-in-out;
}
.hero-slide.is-active { opacity: 1; }

/* zoom lento sulla foto attiva: mouse sopra su desktop, dito sul telefono */
.hero-slide img {
  transform: scale(1);
  transition: transform 1.2s cubic-bezier(0.22, 0.61, 0.36, 1);
  transform-origin: 60% 50%;
  will-change: transform;
}
.hero-foto:hover .hero-slide.is-active img,
.hero-foto.is-zoom .hero-slide.is-active img { transform: scale(1.09); }

/* pallini: quale foto si sta guardando */
.hero-dots {
  position: relative;
  z-index: 3;
  margin-top: 34px;
  display: flex;
  justify-content: flex-start;
  gap: 10px;
}
.hero-dots button {
  width: 34px; height: 4px;
  border: 0; padding: 0;
  border-radius: 999px;
  background: rgba(255,255,255,0.35);
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
}
.hero-dots button.is-active { background: var(--honey-bright); transform: scaleY(1.6); }
/* velo scuro: il testo resta leggibile su qualsiasi foto */
.hero-foto::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(to right, rgba(4,4,6,0.80) 0%, rgba(4,4,6,0.58) 40%, rgba(4,4,6,0.12) 68%, rgba(4,4,6,0.22) 100%),
    linear-gradient(to top, rgba(4,4,6,0.62) 0%, rgba(4,4,6,0.06) 40%, rgba(4,4,6,0.22) 100%);
}
.hero-foto .hero-overlay { position: relative; z-index: 2; }
.hero-foto h1 { text-shadow: 0 4px 30px rgba(0,0,0,0.5); }

/* ---------- BANCO 3D ---------- */
.lab3d { padding-top: 76px; padding-bottom: 76px; }
.lab3d .section-head { margin-bottom: 30px; }
.lab3d-stage {
  position: relative;
  height: 62vh;
  min-height: 420px;
  max-height: 680px;
  border-radius: var(--radius);
  overflow: hidden;
  background: radial-gradient(ellipse at 50% 120%, #33333c 0%, #16161a 48%, #060607 100%);
  box-shadow: 0 30px 70px -40px rgba(0,0,0,0.8);
  color: var(--cream);
}
.lab3d-stage #hero-canvas { cursor: grab; }
.lab3d-stage .hero-hint {
  position: absolute;
  right: 18px;
  bottom: 16px;
  z-index: 3;
}

@media (max-width: 640px) {
  .lab3d { padding-top: 48px; padding-bottom: 48px; }
  .lab3d-stage { height: 52vh; min-height: 340px; }
  .lab3d-stage .hero-hint { left: 16px; right: 16px; bottom: 12px; justify-content: center; text-align: center; }
  .hero-foto .hero-sub { max-width: none; }
}

/* suggerimento: mouse su desktop, dito su touch */
.hero-hint--touch { display: none; }
@media (hover: none), (max-width: 860px) {
  .lab3d-stage .hero-hint--touch {
    display: flex;
    left: 16px;
    right: 16px;
    bottom: 12px;
    justify-content: center;
    text-align: center;
  }
}

/* sul telefono il testo della hero occupa tutta la larghezza: velo verticale piu deciso */
@media (max-width: 640px) {
  .hero-foto::before {
    background: linear-gradient(to bottom,
      rgba(4,4,6,0.72) 0%,
      rgba(4,4,6,0.52) 28%,
      rgba(4,4,6,0.66) 60%,
      rgba(4,4,6,0.86) 100%);
  }
}

@media (max-width: 640px) {
  .hero-dots button { width: 26px; height: 5px; }
  .hero-dots { margin-top: 26px; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-slide { transition: none; }
  .hero-slide img { transition: none; }
  .hero-foto:hover .hero-slide.is-active img,
  .hero-foto.is-zoom .hero-slide.is-active img { transform: none; }
}

/* su touch lo zoom della hero lo comanda solo il tocco (il :hover resterebbe appiccicato dopo il tap) */
@media (hover: none) {
  .hero-foto:hover .hero-slide.is-active img { transform: scale(1); }
  .hero-foto.is-zoom .hero-slide.is-active img { transform: scale(1.09); }
}

/* ---------- TESTI: SLIDE-IN DA SINISTRA ---------- */
.slide-left {
  opacity: 0;
  transform: translateX(-42px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.22, 0.61, 0.36, 1);
  will-change: opacity, transform;
}
.slide-left.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .slide-left { opacity: 1; transform: none; transition: none; }
}
