
/* ══════════════════════════════════════════════════
   CSS CUSTOM PROPERTIES
══════════════════════════════════════════════════ */
:root {
  --ink:    #08070a;
  --gold:   #d4a843;
  --gold-l: #e8c876;
  --gold-d: #a8832f;
  --ivory:  #f5f0e8;
  --sand:   #c8bfb0;
  --smoke:  #1a1820;
  --mist:   #2e2b36;

  --ff-display: 'Cormorant Garamond', 'Playfair Display', Georgia, serif;
  --ff-playfair: 'Playfair Display', Georgia, serif;
  --ff-ui:      'Syne', sans-serif;
  --ff-mono:    'DM Mono', monospace;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1); /* UI/UX Pro Max recommended */
  --ease-in-out: cubic-bezier(0.45, 0, 0.55, 1);

  --nav-h: 72px;
}

/* ══════════════════════════════════════════════════
   RESET & BASE
══════════════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  html { scroll-behavior: auto; }
  .hero-video { display: none; }
}

body {
  background: var(--ink);
  color: var(--ivory);
  font-family: var(--ff-ui);
  line-height: 1.6;
  overflow-x: hidden;
  max-width: 100vw;
  width: 100%;
  cursor: none;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { border: none; background: none; cursor: none; font-family: inherit; }

/* ══════════════════════════════════════════════════
   CUSTOM CURSOR
══════════════════════════════════════════════════ */
.cursor {
  position: fixed;
  top: 0; left: 0;
  width: 10px; height: 10px;
  background: var(--gold);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: width 0.3s var(--ease-out), height 0.3s var(--ease-out), background 0.3s;
  mix-blend-mode: difference;
}
.cursor.hover {
  width: 40px; height: 40px;
  background: var(--gold);
}
.cursor-ring {
  position: fixed;
  top: 0; left: 0;
  width: 36px; height: 36px;
  border: 1px solid rgba(212,168,67,0.5);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition: transform 0.12s linear, width 0.3s var(--ease-out), height 0.3s var(--ease-out);
}

/* ══════════════════════════════════════════════════
   NOISE OVERLAY
══════════════════════════════════════════════════ */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
  opacity: 0.03;
  pointer-events: none;
  z-index: 1000;
}

/* ══════════════════════════════════════════════════
   NAV
══════════════════════════════════════════════════ */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(24px, 5vw, 64px);
  transition: background 0.5s var(--ease-out), backdrop-filter 0.5s;
}
nav.scrolled {
  background: rgba(8,7,10,0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(212,168,67,0.12);
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}
.nav-logo img {
  height: 42px;
  width: auto;
  transition: opacity 0.3s;
}
.nav-logo img:hover {
  opacity: 0.85;
}
.nav-links {
  display: flex;
  gap: clamp(20px, 3vw, 40px);
  list-style: none;
}
.nav-links a {
  font-size: 0.72rem;
  font-family: var(--ff-mono);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--sand);
  transition: color 0.3s;
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0;
  width: 0; height: 1px;
  background: var(--gold);
  transition: width 0.4s var(--ease-out);
}
.nav-links a:hover { color: var(--ivory); }
.nav-links a:hover::after { width: 100%; }

.nav-cta {
  font-size: 0.7rem;
  font-family: var(--ff-mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid rgba(212,168,67,0.4);
  padding: 9px 20px;
  border-radius: 2px;
  transition: background 0.3s, color 0.3s, border-color 0.3s;
}
.nav-cta:hover {
  background: var(--gold);
  color: var(--ink);
  border-color: var(--gold);
}

/* hamburger */
.nav-burger { display: none; flex-direction: column; gap: 5px; width: 26px; cursor: pointer; z-index: 501; position: relative; background: none; border: none; padding: 4px; }
.nav-burger span { display: block; height: 1.5px; background: var(--ivory); transition: transform 0.4s, opacity 0.3s; border-radius: 2px; }

/* ══════════════════════════════════════════════════
   HERO
══════════════════════════════════════════════════ */
#hero {
  min-height: 100svh;
  width: 100%;
  max-width: 100vw;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0 clamp(24px, 6vw, 96px) clamp(48px, 8vh, 96px);
  position: relative;
  overflow: hidden;
}

/* VIDEO HERO */
.hero-video {
  position: absolute;
  top: 0; left: 0;
  width: 100vw;
  height: 100%;
  min-width: 100%;
  min-height: 100%;
  object-fit: cover;
  object-position: center center;
  z-index: 0;
  pointer-events: none;
  display: block;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, rgba(8,7,10,0.55) 0%, rgba(8,7,10,0.3) 40%, rgba(8,7,10,0.75) 100%),
    radial-gradient(ellipse 80% 60% at 20% 80%, rgba(8,7,10,0.4) 0%, transparent 70%);
  z-index: 1;
}

/* Light ray */
.hero-ray {
  position: absolute;
  top: -20%;
  left: 55%;
  width: 1px;
  height: 140%;
  background: linear-gradient(to bottom, transparent 0%, rgba(212,168,67,0.2) 30%, rgba(212,168,67,0.08) 70%, transparent 100%);
  transform: rotate(-12deg);
  transform-origin: top center;
  z-index: 2;
  animation: ray-flicker 8s ease-in-out infinite;
}
@keyframes ray-flicker {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; }
}

.hero-label {
  font-family: var(--ff-mono);
  font-size: 0.65rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 28px;
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 16px;
  opacity: 0;
  animation: fade-up 1s var(--ease-out) 0.3s forwards;
}
.hero-label::before {
  content: '';
  width: 40px; height: 1px;
  background: var(--gold);
  opacity: 0.6;
}

.hero-title {
  font-family: var(--ff-display);
  font-size: clamp(3.5rem, 9vw, 10rem);
  font-weight: 300;
  line-height: 0.9;
  letter-spacing: -0.02em;
  position: relative;
  z-index: 2;
  overflow: hidden;
}
.hero-title .line {
  display: block;
  opacity: 0;
  transform: translateY(100%);
  animation: reveal-line 1.2s var(--ease-out) forwards;
}
.hero-title .line:nth-child(1) { animation-delay: 0.5s; }
.hero-title .line:nth-child(2) { animation-delay: 0.7s; color: var(--gold); font-style: italic; }
.hero-title .line:nth-child(3) { animation-delay: 0.9s; }
@keyframes reveal-line {
  to { opacity: 1; transform: translateY(0); }
}

.hero-sub {
  margin-top: clamp(24px, 4vh, 48px);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  position: relative;
  z-index: 2;
  opacity: 0;
  animation: fade-up 1s var(--ease-out) 1.2s forwards;
}
.hero-desc {
  max-width: 380px;
  font-size: 0.9rem;
  color: var(--sand);
  line-height: 1.8;
  font-weight: 300;
}
.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  background: var(--gold);
  color: var(--ink);
  font-family: var(--ff-mono);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  border-radius: 2px;
  font-weight: 500;
  transition: background 0.3s, transform 0.3s var(--ease-out);
}
.btn-primary:hover { background: var(--gold-l); transform: translateY(-2px); }
.btn-primary svg { transition: transform 0.3s var(--ease-out); }
.btn-primary:hover svg { transform: translateX(4px); }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  border: 1px solid rgba(212,168,67,0.3);
  color: var(--ivory);
  font-family: var(--ff-mono);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  border-radius: 2px;
  transition: border-color 0.3s, color 0.3s;
}
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }

.hero-scroll {
  position: absolute;
  bottom: clamp(24px, 4vh, 48px);
  right: clamp(24px, 5vw, 64px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  z-index: 2;
  opacity: 0;
  animation: fade-up 1s var(--ease-out) 1.6s forwards;
}
.hero-scroll span {
  font-family: var(--ff-mono);
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--sand);
  writing-mode: vertical-rl;
}
.scroll-line {
  width: 1px; height: 60px;
  background: linear-gradient(to bottom, var(--gold), transparent);
  animation: scroll-pulse 2s ease-in-out infinite;
}
@keyframes scroll-pulse {
  0%, 100% { opacity: 0.4; transform: scaleY(1); }
  50% { opacity: 1; transform: scaleY(1.2); }
}

/* stat badges */
.hero-stats {
  position: absolute;
  top: 50%;
  right: clamp(24px, 5vw, 64px);
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 20px;
  z-index: 2;
  opacity: 0;
  animation: fade-left 1s var(--ease-out) 1.4s forwards;
}
.stat-item {
  text-align: right;
  border-right: 1px solid rgba(212,168,67,0.3);
  padding-right: 16px;
}
.stat-num {
  font-family: var(--ff-display);
  font-size: 2.4rem;
  font-weight: 300;
  line-height: 1;
  color: var(--gold);
}
.stat-label {
  font-family: var(--ff-mono);
  font-size: 0.58rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--sand);
  margin-top: 4px;
}

@keyframes fade-up {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fade-left {
  from { opacity: 0; transform: translate(20px, -50%); }
  to   { opacity: 1; transform: translate(0, -50%); }
}

/* ══════════════════════════════════════════════════
   MARQUEE STRIP
══════════════════════════════════════════════════ */
.marquee-strip {
  border-top: 1px solid rgba(212,168,67,0.18);
  border-bottom: 1px solid rgba(212,168,67,0.18);
  padding: 26px 0;
  overflow: hidden;
  background: rgba(212,168,67,0.03);
  -webkit-mask: linear-gradient(to right, transparent 0%, black 6%, black 94%, transparent 100%);
  mask: linear-gradient(to right, transparent 0%, black 6%, black 94%, transparent 100%);
}
.marquee-track {
  display: flex;
  gap: 0;
  width: max-content;
  animation: marquee 30s linear infinite;
}
.marquee-item {
  font-family: var(--ff-mono);
  font-size: 0.72rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  padding: 0 52px;
  display: flex;
  align-items: center;
  gap: 52px;
  white-space: nowrap;
  background: linear-gradient(
    110deg,
    rgba(180,130,30,0.7)  0%,
    rgba(180,130,30,0.7)  38%,
    rgba(255,240,180,1)   48%,
    rgba(212,168,67,1)    52%,
    rgba(180,130,30,0.7)  62%,
    rgba(180,130,30,0.7)  100%
  );
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer 4s linear infinite;
}
.marquee-item::after {
  content: '·';
  font-size: 1.1rem;
  -webkit-text-fill-color: rgba(212,168,67,0.35);
  vertical-align: -1px;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@keyframes shimmer {
  0%   { background-position: 200% center; }
  100% { background-position: -200% center; }
}

/* ══════════════════════════════════════════════════
   SECTION COMMONS
══════════════════════════════════════════════════ */
section { position: relative; }

.section-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: clamp(80px, 12vh, 140px) clamp(24px, 6vw, 96px);
}

.section-tag {
  font-family: var(--ff-mono);
  font-size: 0.62rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}
.section-tag::before {
  content: '';
  width: 30px; height: 1px;
  background: var(--gold);
  opacity: 0.6;
}

.section-title {
  font-family: var(--ff-display);
  font-size: clamp(2.4rem, 5vw, 5.5rem);
  font-weight: 300;
  line-height: 1.05;
  letter-spacing: -0.01em;
}

/* reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-d1 { transition-delay: 0.1s; }
.reveal-d2 { transition-delay: 0.2s; }
.reveal-d3 { transition-delay: 0.3s; }
.reveal-d4 { transition-delay: 0.4s; }
.reveal-d5 { transition-delay: 0.5s; }

/* ══════════════════════════════════════════════════
   MANIFESTO
══════════════════════════════════════════════════ */
#manifesto {
  background: var(--smoke);
}
.manifesto-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(48px, 8vw, 120px);
  align-items: center;
}
.manifesto-text {
  font-family: var(--ff-display);
  font-size: clamp(1.4rem, 2.5vw, 2.4rem);
  font-weight: 300;
  line-height: 1.5;
  color: var(--ivory);
}
.manifesto-text em {
  font-style: italic;
  color: var(--gold);
}
.manifesto-aside {
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.manifesto-pill {
  border: 1px solid rgba(212,168,67,0.2);
  border-radius: 4px;
  padding: 24px 28px;
  background: rgba(212,168,67,0.03);
  transition: border-color 0.4s, background 0.4s;
}
.manifesto-pill:hover {
  border-color: rgba(212,168,67,0.5);
  background: rgba(212,168,67,0.06);
}
.manifesto-pill h4 {
  font-family: var(--ff-mono);
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
}
.manifesto-pill p {
  font-size: 0.88rem;
  color: var(--sand);
  line-height: 1.7;
}

/* ══════════════════════════════════════════════════
   SERVIZI
══════════════════════════════════════════════════ */
#servizi { background: var(--ink); }

.servizi-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: clamp(48px, 7vh, 80px);
  flex-wrap: wrap;
  gap: 24px;
}

.servizi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2px;
}

.servizio-card {
  background: var(--smoke);
  padding: clamp(28px, 4vw, 48px);
  position: relative;
  overflow: hidden;
  transition: background 0.5s;
  cursor: none;
}
.servizio-card::before {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 100%; height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s var(--ease-out);
}
.servizio-card:hover { background: var(--mist); }
.servizio-card:hover::before { transform: scaleX(1); }

.card-num {
  font-family: var(--ff-mono);
  font-size: 0.58rem;
  letter-spacing: 0.2em;
  color: var(--gold);
  margin-bottom: 32px;
}
.card-icon {
  width: 40px; height: 40px;
  margin-bottom: 24px;
  color: var(--gold);
  opacity: 0.7;
  transition: opacity 0.3s, transform 0.5s var(--ease-out);
}
.servizio-card:hover .card-icon { opacity: 1; transform: scale(1.1); }

.card-title {
  font-family: var(--ff-display);
  font-size: 1.6rem;
  font-weight: 400;
  line-height: 1.2;
  margin-bottom: 16px;
  transition: color 0.3s;
}
.servizio-card:hover .card-title { color: var(--gold); }

.card-desc {
  font-size: 0.84rem;
  color: var(--sand);
  line-height: 1.8;
}
.card-arrow {
  position: absolute;
  bottom: 28px;
  right: 28px;
  color: var(--gold);
  opacity: 0;
  transform: translateX(-8px);
  transition: opacity 0.4s, transform 0.4s var(--ease-out);
}
.servizio-card:hover .card-arrow { opacity: 1; transform: translateX(0); }

/* ══════════════════════════════════════════════════
   DIALUX / PROGETTAZIONE
══════════════════════════════════════════════════ */
#progettazione {
  background: var(--smoke);
  overflow: hidden;
}
.progettazione-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(48px, 8vw, 120px);
  align-items: center;
}
.progettazione-visual {
  position: relative;
  aspect-ratio: 4/3;
  border-radius: 4px;
  overflow: hidden;
  background: var(--mist);
}
.prog-grid-viz {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(212,168,67,0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(212,168,67,0.08) 1px, transparent 1px);
  background-size: 32px 32px;
  animation: grid-shift 20s linear infinite;
}
@keyframes grid-shift {
  from { transform: translate(0,0); }
  to   { transform: translate(32px, 32px); }
}
.prog-point {
  position: absolute;
  width: 8px; height: 8px;
  background: var(--gold);
  border-radius: 50%;
  box-shadow: 0 0 16px rgba(212,168,67,0.6);
  animation: point-pulse 3s ease-in-out infinite;
}
.prog-point:nth-child(2) { top: 35%; left: 40%; animation-delay: 0.5s; }
.prog-point:nth-child(3) { top: 65%; left: 25%; animation-delay: 1s; }
.prog-point:nth-child(4) { top: 25%; left: 70%; animation-delay: 1.5s; }
.prog-point:nth-child(5) { top: 75%; left: 60%; animation-delay: 2s; }
.prog-line {
  position: absolute;
  background: rgba(212,168,67,0.25);
  height: 1px;
  transform-origin: left center;
}
.prog-line-1 { top: 35.5%; left: 40%; width: 30%; transform: rotate(30deg); }
.prog-line-2 { top: 65.5%; left: 25%; width: 35%; transform: rotate(-15deg); }
.prog-label {
  position: absolute;
  bottom: 20px; left: 20px;
  font-family: var(--ff-mono);
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  color: var(--gold);
  text-transform: uppercase;
}
@keyframes point-pulse {
  0%, 100% { transform: scale(1); opacity: 0.7; }
  50% { transform: scale(1.6); opacity: 1; }
}
.progettazione-content h2 {
  font-family: var(--ff-display);
  font-size: clamp(2rem, 4vw, 4rem);
  font-weight: 300;
  line-height: 1.1;
  margin-bottom: 24px;
}
.progettazione-content h2 em { font-style: italic; color: var(--gold); }
.progettazione-content p {
  font-size: 0.9rem;
  color: var(--sand);
  line-height: 1.9;
  margin-bottom: 16px;
}
.prog-steps {
  margin-top: 36px;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.prog-step {
  display: flex;
  gap: 20px;
  padding: 18px 0;
  border-bottom: 1px solid rgba(212,168,67,0.1);
}
.step-n {
  font-family: var(--ff-mono);
  font-size: 0.6rem;
  color: var(--gold);
  letter-spacing: 0.1em;
  padding-top: 2px;
  flex-shrink: 0;
  width: 28px;
}
.step-txt { font-size: 0.87rem; color: var(--sand); line-height: 1.6; }
.step-txt strong { color: var(--ivory); display: block; margin-bottom: 2px; font-weight: 500; }

/* ══════════════════════════════════════════════════
   BRANDS
══════════════════════════════════════════════════ */
#brands {
  background: var(--ink);
  border-top: 1px solid rgba(212,168,67,0.1);
}
.brands-header {
  text-align: center;
  margin-bottom: clamp(48px, 6vh, 64px);
}
.brands-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1px;
  background: rgba(212,168,67,0.08);
  border: 1px solid rgba(212,168,67,0.08);
}
.brand-item {
  background: var(--ink);
  padding: 32px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--ff-display);
  font-size: 1.1rem;
  font-weight: 300;
  letter-spacing: 0.08em;
  color: var(--sand);
  transition: color 0.3s, background 0.3s;
  text-align: center;
}
.brand-item:hover { color: var(--gold); background: rgba(212,168,67,0.04); letter-spacing: 0.12em; }
.brand-item { user-select: none; }

/* ══════════════════════════════════════════════════
   PROFILO / TIMELINE
══════════════════════════════════════════════════ */
#profilo {
  background: var(--smoke);
  position: relative;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}
.profilo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(48px, 8vw, 100px);
}
.profilo-text p {
  font-size: 0.9rem;
  color: var(--sand);
  line-height: 1.9;
  margin-bottom: 16px;
}
.timeline {
  position: relative;
  padding-left: 24px;
}
.timeline::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 1px;
  height: 100%;
  background: linear-gradient(to bottom, var(--gold), transparent);
}
.tl-item {
  position: relative;
  padding-bottom: 32px;
  padding-left: 20px;
}
.tl-item::before {
  content: '';
  position: absolute;
  left: -28px; top: 6px;
  width: 6px; height: 6px;
  background: var(--gold);
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(212,168,67,0.5);
}
.tl-year {
  font-family: var(--ff-mono);
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  color: var(--gold);
  margin-bottom: 6px;
}
.tl-title {
  font-family: var(--ff-display);
  font-size: 1.15rem;
  font-weight: 400;
  color: var(--ivory);
  margin-bottom: 4px;
}
.tl-desc { font-size: 0.82rem; color: var(--sand); line-height: 1.6; }

/* ══════════════════════════════════════════════════
   CONTATTI
══════════════════════════════════════════════════ */
#contatti { background: var(--ink); }
.contatti-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(48px, 8vw, 100px);
}
.contatti-info h2 {
  font-family: var(--ff-display);
  font-size: clamp(2rem, 4vw, 4.5rem);
  font-weight: 300;
  line-height: 1.05;
  margin-bottom: 40px;
}
.contatti-info h2 em { font-style: italic; color: var(--gold); }
.info-block {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 40px;
}
.info-row {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.info-icon {
  width: 18px; height: 18px;
  color: var(--gold);
  flex-shrink: 0;
  margin-top: 2px;
}
.info-content { font-size: 0.87rem; color: var(--sand); line-height: 1.7; }
.info-content strong { display: block; color: var(--ivory); font-weight: 500; font-size: 0.8rem; letter-spacing: 0.05em; margin-bottom: 2px; font-family: var(--ff-mono); text-transform: uppercase; }
.social-row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.social-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--ff-mono);
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--sand);
  border: 1px solid rgba(200,191,176,0.2);
  padding: 10px 16px;
  border-radius: 2px;
  transition: color 0.3s, border-color 0.3s;
}
.social-link:hover { color: var(--gold); border-color: rgba(212,168,67,0.4); }

/* form */
.contact-form {
  background: var(--smoke);
  padding: clamp(28px, 5vw, 52px);
  border: 1px solid rgba(212,168,67,0.1);
  border-radius: 4px;
}
.contact-form h3 {
  font-family: var(--ff-display);
  font-size: 1.8rem;
  font-weight: 300;
  margin-bottom: 8px;
}
.form-sub {
  font-family: var(--ff-mono);
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 32px;
}
.form-group {
  margin-bottom: 20px;
}
.form-group label {
  display: block;
  font-family: var(--ff-mono);
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--sand);
  margin-bottom: 8px;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  background: rgba(8,7,10,0.6);
  border: 1px solid rgba(212,168,67,0.15);
  border-radius: 2px;
  color: var(--ivory);
  font-family: var(--ff-ui);
  font-size: 0.9rem;
  padding: 12px 16px;
  outline: none;
  transition: border-color 0.3s;
  appearance: none;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: rgba(200,191,176,0.35); }
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: rgba(212,168,67,0.5); }
.form-group textarea { resize: vertical; min-height: 100px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.form-group select option { background: var(--smoke); }

.form-privacy {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 20px 0 28px;
  font-size: 0.78rem;
  color: var(--sand);
  line-height: 1.6;
}
.form-privacy input[type="checkbox"] {
  width: 16px; height: 16px;
  accent-color: var(--gold);
  flex-shrink: 0;
  margin-top: 2px;
}

/* ══════════════════════════════════════════════════
   FOOTER
══════════════════════════════════════════════════ */
footer {
  background: var(--smoke);
  border-top: 1px solid rgba(212,168,67,0.1);
  padding: clamp(40px, 6vh, 64px) clamp(24px, 6vw, 96px);
}
.footer-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
}
.footer-logo {
  font-family: var(--ff-display);
  font-size: 1.3rem;
  font-weight: 300;
}
.footer-meta {
  font-family: var(--ff-mono);
  font-size: 0.58rem;
  letter-spacing: 0.15em;
  color: var(--sand);
  opacity: 0.6;
  text-align: right;
}
.footer-meta p { margin-bottom: 4px; }
.footer-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
}
.footer-links a {
  font-family: var(--ff-mono);
  font-size: 0.6rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--sand);
  opacity: 0.6;
  transition: opacity 0.3s, color 0.3s;
}
.footer-links a:hover { opacity: 1; color: var(--gold); }

/* ══════════════════════════════════════════════════
   GDPR BANNER
══════════════════════════════════════════════════ */
#gdpr {
  position: fixed;
  bottom: 24px; left: 24px;
  max-width: 480px;
  background: var(--smoke);
  border: 1px solid rgba(212,168,67,0.2);
  border-radius: 6px;
  padding: 24px;
  z-index: 800;
  transform: translateY(120%);
  transition: transform 0.6s var(--ease-out);
  box-shadow: 0 24px 64px rgba(0,0,0,0.5);
}
#gdpr.show { transform: translateY(0); }
#gdpr p {
  font-size: 0.8rem;
  color: var(--sand);
  line-height: 1.7;
  margin-bottom: 16px;
}
.gdpr-btns { display: flex; gap: 12px; }
.gdpr-accept {
  padding: 10px 20px;
  background: var(--gold);
  color: var(--ink);
  font-family: var(--ff-mono);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 2px;
  font-weight: 500;
  transition: background 0.3s;
}
.gdpr-accept:hover { background: var(--gold-l); }
.gdpr-decline {
  padding: 10px 20px;
  border: 1px solid rgba(200,191,176,0.2);
  color: var(--sand);
  font-family: var(--ff-mono);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 2px;
  transition: border-color 0.3s, color 0.3s;
}
.gdpr-decline:hover { border-color: var(--sand); color: var(--ivory); }

/* ══════════════════════════════════════════════════
   BACK TO TOP
══════════════════════════════════════════════════ */
#btt {
  position: fixed;
  bottom: 84px; right: 24px;
  width: 44px; height: 44px;
  background: var(--smoke);
  border: 1px solid rgba(212,168,67,0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  z-index: 600;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 0.4s, transform 0.4s var(--ease-out), background 0.3s;
}
#btt.show { opacity: 1; pointer-events: auto; transform: translateY(0); }
#btt:hover { background: var(--gold); color: var(--ink); }

/* WhatsApp float */
#wa-float {
  position: fixed;
  bottom: 24px; right: 24px;
  width: 52px; height: 52px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  z-index: 600;
  box-shadow: 0 4px 20px rgba(37,211,102,0.4);
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s;
  animation: wa-pulse 3s ease-in-out infinite;
}
#wa-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 28px rgba(37,211,102,0.6);
  animation: none;
}
@keyframes wa-pulse {
  0%, 100% { box-shadow: 0 4px 20px rgba(37,211,102,0.4); }
  50% { box-shadow: 0 4px 28px rgba(37,211,102,0.7); }
}

/* ══════════════════════════════════════════════════
   MOBILE
══════════════════════════════════════════════════ */
@media (max-width: 900px) {
  body { cursor: auto; }
  button { cursor: pointer; }
  .cursor, .cursor-ring { display: none; }
  .nav-links, .nav-cta { display: none; }
  .nav-burger { display: flex; }

  /* Menu mobile a tenda */
  .nav-links.mobile-open {
    display: flex !important;
    flex-direction: column;
    position: fixed;
    top: var(--nav-h);
    left: 0; right: 0;
    background: rgba(8,7,10,0.97);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(212,168,67,0.15);
    padding: 24px 32px 32px;
    gap: 0;
    z-index: 499;
    animation: menu-drop 0.35s var(--ease-out) forwards;
  }
  @keyframes menu-drop {
    from { opacity: 0; transform: translateY(-12px); }
    to   { opacity: 1; transform: translateY(0); }
  }
  .nav-links.mobile-open li {
    border-bottom: 1px solid rgba(212,168,67,0.08);
  }
  .nav-links.mobile-open li:last-child {
    border-bottom: none;
  }
  .nav-links.mobile-open a {
    display: block;
    padding: 16px 0;
    font-size: 0.85rem;
    letter-spacing: 0.12em;
    color: var(--ivory);
  }
  .nav-links.mobile-open a:hover { color: var(--gold); }
  .nav-links.mobile-open a::after { display: none; }

  /* Burger animato quando aperto */
  .nav-burger.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  .nav-burger.open span:nth-child(2) { opacity: 0; }
  .nav-burger.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

  /* CTA mobile nel menu */
  .mobile-cta {
    display: inline-flex !important;
    margin-top: 20px;
    padding: 14px 24px;
    background: var(--gold);
    color: var(--ink) !important;
    font-family: var(--ff-mono);
    font-size: 0.7rem !important;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    border-radius: 2px;
    font-weight: 500;
    text-align: center;
    justify-content: center;
  }

  .hero-stats { display: none; }

  .manifesto-grid,
  .progettazione-inner,
  .contatti-grid,
  .profilo-grid { grid-template-columns: 1fr; }

  .form-row { grid-template-columns: 1fr; }

  .servizi-grid { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .hero-title { font-size: clamp(2.8rem, 14vw, 5rem); }
  .footer-inner { flex-direction: column; text-align: center; }
  .footer-meta { text-align: center; }
  #gdpr { left: 16px; right: 16px; max-width: none; bottom: 16px; }
}

/* ══════════════════════════════════════════════════
   GALLERY
══════════════════════════════════════════════════ */
#gallery { background: var(--ink); }

.gallery-header { margin-bottom: clamp(36px,5vh,56px); }

.gallery-filters {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}
.gf-btn {
  font-family: var(--ff-mono);
  font-size: 0.62rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--sand);
  border: 1px solid rgba(200,191,176,0.2);
  padding: 9px 18px;
  border-radius: 2px;
  cursor: none;
  transition: color 0.3s, border-color 0.3s, background 0.3s;
}
.gf-btn:hover, .gf-btn.active {
  color: var(--gold);
  border-color: rgba(212,168,67,0.5);
  background: rgba(212,168,67,0.06);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 3px;
  min-height: 200px;
}
.gallery-empty {
  grid-column: 1/-1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 220px;
  border: 1px dashed rgba(200,191,176,0.15);
  border-radius: 4px;
}

.proj-card {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  cursor: none;
  background: var(--smoke);
}
.proj-card img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease-out);
}
.proj-card:hover img { transform: scale(1.06); }
.proj-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(8,7,10,0.85) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.4s;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20px;
}
.proj-card:hover .proj-overlay { opacity: 1; }
.proj-name {
  font-family: var(--ff-display);
  font-size: 1.2rem;
  font-weight: 400;
  color: var(--ivory);
  margin-bottom: 4px;
}
.proj-cat-label {
  font-family: var(--ff-mono);
  font-size: 0.58rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
}
.proj-count {
  position: absolute;
  top: 12px; right: 12px;
  background: rgba(8,7,10,0.7);
  border: 1px solid rgba(212,168,67,0.3);
  color: var(--gold);
  font-family: var(--ff-mono);
  font-size: 0.58rem;
  letter-spacing: 0.1em;
  padding: 4px 10px;
  border-radius: 2px;
}

/* LIGHTBOX */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(8,7,10,0.95);
  z-index: 900;
  display: none;
  align-items: center;
  justify-content: center;
}
.lightbox.open { display: flex; }
.lb-close {
  position: absolute;
  top: 24px; right: 24px;
  color: var(--sand);
  font-size: 1.4rem;
  cursor: none;
  transition: color 0.3s;
  z-index: 10;
}
.lb-close:hover { color: var(--gold); }
.lb-prev, .lb-next {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  color: var(--sand);
  font-size: 1.8rem;
  cursor: none;
  transition: color 0.3s;
  z-index: 10;
  padding: 16px;
}
.lb-prev { left: 16px; }
.lb-next { right: 16px; }
.lb-prev:hover, .lb-next:hover { color: var(--gold); }
.lb-content {
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.lb-content img {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 2px;
}
.lb-info { text-align: center; }
.lb-title {
  font-family: var(--ff-display);
  font-size: 1.3rem;
  font-weight: 300;
  color: var(--ivory);
}
.lb-cat {
  font-family: var(--ff-mono);
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-top: 4px;
}

/* Menu mobile forzato via JS */
ul.nav-links[style] li {
  border-bottom: 1px solid rgba(212,168,67,0.08);
  list-style: none;
}
ul.nav-links[style] li:last-child { border-bottom: none; }
ul.nav-links[style] a {
  display: block;
  padding: 15px 0;
  font-family: var(--ff-mono);
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  color: var(--ivory) !important;
  text-transform: uppercase;
}
ul.nav-links[style] a:hover { color: var(--gold) !important; }
ul.nav-links[style] a::after { display: none !important; }
ul.nav-links[style] .mobile-cta {
  margin-top: 12px;
  background: var(--gold);
  color: var(--ink) !important;
  padding: 14px 24px;
  border-radius: 2px;
  font-weight: 500;
  text-align: center;
}

/* ══ UI/UX PRO MAX: Ambient Light Blobs (cinematic dark) ══ */
.amb-blob {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 1;
  filter: blur(80px);
  animation: blob-float 12s ease-in-out infinite;
}
.amb-blob-1 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(212,168,67,0.12) 0%, transparent 70%);
  top: -10%; left: -5%;
  animation-delay: 0s;
  animation-duration: 14s;
}
.amb-blob-2 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(212,168,67,0.08) 0%, transparent 70%);
  top: 30%; right: -8%;
  animation-delay: -5s;
  animation-duration: 18s;
}
.amb-blob-3 {
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(212,168,67,0.06) 0%, transparent 70%);
  bottom: 10%; left: 40%;
  animation-delay: -9s;
  animation-duration: 22s;
}
@keyframes blob-float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25%       { transform: translate(30px, -20px) scale(1.05); }
  50%       { transform: translate(-20px, 30px) scale(0.95); }
  75%       { transform: translate(20px, 10px) scale(1.02); }
}

/* ══ UI/UX PRO MAX: Navbar Glassmorphism migliorato ══ */
nav.scrolled {
  background: rgba(8,7,10,0.6) !important;
  backdrop-filter: blur(24px) saturate(200%) brightness(0.9) !important;
  -webkit-backdrop-filter: blur(24px) saturate(200%) brightness(0.9) !important;
  border-bottom: 1px solid rgba(212,168,67,0.18) !important;
  box-shadow: 0 4px 32px rgba(0,0,0,0.4), 0 1px 0 rgba(212,168,67,0.08) inset;
}
/* UI/UX Pro Max: Liquid Glass — chromatic aberration hint */
nav.scrolled::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg,
    rgba(212,168,67,0.04) 0%,
    rgba(212,100,67,0.02) 33%,
    rgba(67,100,212,0.02) 66%,
    transparent 100%);
  pointer-events: none;
  border-radius: inherit;
}

/* ══ UI/UX PRO MAX: Card border radius 16px ══ */
.servizio-card {
  border-radius: 0; /* manteniamo il look editorial */
}
.manifesto-pill {
  border-radius: 8px;
  transition: border-color 0.4s var(--ease-out), background 0.4s var(--ease-out), transform 0.3s var(--ease-out);
}
.manifesto-pill:hover {
  transform: translateY(-2px);
}

/* ══ UI/UX PRO MAX: Scroll indicator migliorato ══ */
.scroll-line {
  background: linear-gradient(to bottom, var(--gold), rgba(212,168,67,0.2));
}

/* ══ UI/UX PRO MAX: Focus visible per accessibilità ══ */
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ══ UI/UX PRO MAX: Horizontal overflow fix ══ */
body { overflow-x: hidden; max-width: 100vw; }

/* ══ UI/UX PRO MAX: Touch target 44px ══ */
.nav-links a { min-height: 44px; display: flex; align-items: center; }
.gf-btn { min-height: 44px; }

/* ══ UI/UX PRO MAX: Sezione transizione migliorata ══ */
section { overflow: hidden; }

/* ══ UI/UX PRO MAX: Gallery card border-radius ══ */
.proj-card { border-radius: 4px; }
.proj-card img { border-radius: 4px; }

/* ══ UI/UX PRO MAX: Brand grid hover raffinato ══ */
.brands-grid {
  border-radius: 8px;
  overflow: hidden;
}

/* ══ UI/UX PRO MAX: Form input migliorati ══ */
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  box-shadow: 0 0 0 3px rgba(212,168,67,0.15);
}

/* ══ UI/UX PRO MAX: Timeline dot glow ══ */
.tl-item::before {
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s;
}
.tl-item:hover::before {
  transform: scale(1.5);
  box-shadow: 0 0 16px rgba(212,168,67,0.8);
}

/* ══ UI/UX PRO MAX: Stat badge animazione ══ */
.stat-num {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-l) 50%, var(--gold) 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer 4s linear infinite;
}
@keyframes shimmer {
  0%   { background-position: 0% center; }
  100% { background-position: 200% center; }
}

/* ══ UI/UX PRO MAX: Bottone primary glow ══ */
.btn-primary {
  box-shadow: 0 0 0 rgba(212,168,67,0);
  transition: background 0.3s, transform 0.3s var(--ease-out), box-shadow 0.3s;
}
.btn-primary:hover {
  box-shadow: 0 4px 24px rgba(212,168,67,0.35);
}

/* ══ UI/UX PRO MAX: Sezione progettazione visual ══ */
.progettazione-visual {
  border-radius: 8px;
  box-shadow: 0 24px 64px rgba(0,0,0,0.4), 0 0 0 1px rgba(212,168,67,0.1);
}

/* ══ UI/UX PRO MAX: Reduce motion ══ */
@media (prefers-reduced-motion: reduce) {
  .amb-blob, .scroll-line, .stat-num { animation: none !important; }
}


/* ══ Scroll Progress Bar ══ */
#scroll-progress {
  position: fixed;
  top: 0; left: 0;
  width: 0%;
  height: 2px;
  background: linear-gradient(90deg, var(--gold-d), var(--gold), var(--gold-l));
  z-index: 9999;
  transition: width 0.1s linear;
  box-shadow: 0 0 8px rgba(212,168,67,0.6);
}


/* font-display swap is set via the Google Fonts URL parameter (&display=swap) */

/* ══ UI/UX Pro Max: Scroll Storytelling — Section indicator ══ */
.section-chapter {
  position: fixed;
  right: 28px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 400;
  opacity: 0;
  transition: opacity 0.5s;
}
.section-chapter.show { opacity: 1; }
.chapter-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(212,168,67,0.25);
  cursor: pointer;
  transition: background 0.3s, transform 0.3s;
  border: 1px solid rgba(212,168,67,0.3);
}
.chapter-dot.active {
  background: var(--gold);
  transform: scale(1.4);
  box-shadow: 0 0 8px rgba(212,168,67,0.6);
}
@media (max-width: 900px) { .section-chapter { display: none; } }

/* ══ UI/UX Pro Max: Liquid Glass cards ══ */
.manifesto-pill {
  background: rgba(255,255,255,0.03) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* ══ UI/UX Pro Max: Morphing CTA button (Liquid Glass) ══ */
.btn-primary {
  position: relative;
  overflow: hidden;
}
.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.15) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.4s var(--ease-out);
}
.btn-primary:hover::before { opacity: 1; }

/* ══ UI/UX Pro Max: Card border glow on hover ══ */
.servizio-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: 0 0 0 1px rgba(212,168,67,0);
  transition: box-shadow 0.5s var(--ease-out);
  pointer-events: none;
}
.servizio-card:hover::after {
  box-shadow: 0 0 0 1px rgba(212,168,67,0.3), 0 0 24px rgba(212,168,67,0.08);
}

/* ══ UI/UX Pro Max: Text reveal clip ══ */
.clip-reveal {
  overflow: hidden;
}
.clip-reveal .line {
  display: block;
  transform-origin: bottom;
}

/* ══ UI/UX Pro Max: Gallery card aspect ratio + hover scale ══ */
.proj-card {
  will-change: transform;
  transition: transform 0.5s var(--ease-out), box-shadow 0.5s;
}
.proj-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 48px rgba(0,0,0,0.4);
}

/* ══ UI/UX Pro Max: Brand item gradient text on hover ══ */
.brand-item:hover {
  background: linear-gradient(135deg, rgba(212,168,67,0.06), rgba(232,200,118,0.04)) !important;
}

/* ══ UI/UX Pro Max: Timeline pulse ══ */
@keyframes tl-pulse {
  0%, 100% { box-shadow: 0 0 6px rgba(212,168,67,0.4); }
  50% { box-shadow: 0 0 16px rgba(212,168,67,0.9); }
}
.tl-item:hover::before {
  animation: tl-pulse 1.5s ease-in-out infinite;
}

/* ══ UI/UX Pro Max: Scroll-based opacity fade in sezioni ══ */
.reveal {
  transition: opacity 1s var(--ease-out), transform 1s var(--ease-out);
}

/* ══ UI/UX Pro Max: Form focus ring gold (E-E-A-T trust signal) ══ */
.contact-form { position: relative; }
.contact-form::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 6px;
  background: linear-gradient(135deg, rgba(212,168,67,0.3), transparent, rgba(212,168,67,0.1));
  opacity: 0;
  transition: opacity 0.5s;
  pointer-events: none;
}
.contact-form:focus-within::before { opacity: 1; }


/* ══ FAQ Section (E-E-A-T + GEO) ══ */
.faq-list { display: flex; flex-direction: column; gap: 0; max-width: 800px; }
.faq-item { border-bottom: 1px solid rgba(212,168,67,0.12); }
.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
  background: none;
  border: none;
  color: var(--ivory);
  font-family: var(--ff-display);
  font-size: clamp(1rem, 1.5vw, 1.25rem);
  font-weight: 400;
  text-align: left;
  cursor: pointer;
  gap: 16px;
  transition: color 0.3s;
}
.faq-q:hover { color: var(--gold); }
.faq-arrow { flex-shrink: 0; color: var(--gold); transition: transform 0.4s var(--ease-out); }
.faq-q.open .faq-arrow { transform: rotate(180deg); }
.faq-a {
  font-size: 0.9rem;
  color: var(--sand);
  line-height: 1.8;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s var(--ease-out), padding 0.4s;
  padding-bottom: 0;
}
.faq-a.open { max-height: 200px; padding-bottom: 20px; }


/* ══ DIALux: Video BG Parallax 3D ══ */
#progettazione {
  position: relative;
  overflow: hidden;
}
.prog-video-bg {
  position: absolute;
  inset: -20%;          /* oversized per parallax travel */
  width: 140%;
  height: 140%;
  object-fit: cover;
  object-position: center;
  opacity: 0.18;
  filter: brightness(0.7) saturate(1.4);
  will-change: transform;
  transition: opacity 0.8s;
  z-index: 0;
  pointer-events: none;
}
.prog-video-bg.loaded { opacity: 0.22; }

/* Overlay gradiente per leggibilità testo */
.prog-overlay-3d {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to right,
      rgba(26,24,32,0.97) 0%,
      rgba(26,24,32,0.85) 40%,
      rgba(26,24,32,0.5) 70%,
      rgba(26,24,32,0.3) 100%),
    linear-gradient(to bottom,
      rgba(26,24,32,0.6) 0%,
      transparent 30%,
      transparent 70%,
      rgba(26,24,32,0.6) 100%);
  z-index: 1;
  pointer-events: none;
}

/* Tutto il contenuto sopra il video */
#progettazione .section-inner {
  position: relative;
  z-index: 2;
}

/* Effetto depth sul visual DIALux screenshot */
.progettazione-visual {
  transform-style: preserve-3d;
  perspective: 1000px;
  transition: transform 0.1s linear;
}
.progettazione-visual img {
  transform: translateZ(0);
  transition: transform 0.6s var(--ease-out);
  box-shadow: 0 32px 80px rgba(0,0,0,0.6), 0 0 0 1px rgba(212,168,67,0.15);
}
#progettazione:hover .progettazione-visual img {
  transform: translateZ(20px) rotateY(-2deg);
}

/* Tilt 3D interattivo sulla card visual */
.prog-tilt-wrap {
  transform-style: preserve-3d;
  perspective: 800px;
  border-radius: 8px;
}


/* ══ WordPress full-width fix ══ */
.site, .site-content, #page, #content, .entry-content,
body.page-template-default { max-width: 100% !important; width: 100% !important; }
#hero { width: 100vw !important; max-width: 100vw !important; margin-left: calc(-50vw + 50%) !important; }
.hero-video { width: 100vw !important; min-width: 100vw !important; left: 0 !important; }

/* ══════════════════════════════════════════════
   WORDPRESS CONTAINER OVERRIDE — PRIORITÀ MASSIMA
══════════════════════════════════════════════ */
html body #hero {
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-end !important;
    width: 100% !important;
    min-height: 100svh !important;
    position: relative !important;
    overflow: hidden !important;
    padding: 0 clamp(24px, 6vw, 96px) clamp(48px, 8vh, 96px) !important;
    box-sizing: border-box !important;
    left: auto !important;
    transform: none !important;
    margin: 0 !important;
}
html body #hero .hero-video {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    min-width: 100% !important;
    min-height: 100% !important;
    object-fit: cover !important;
    object-position: center center !important;
    z-index: 0 !important;
    opacity: 1 !important;
    display: block !important;
    pointer-events: none !important;
    transform: none !important;
}
html body #hero .hero-overlay,
html body #hero .amb-blob,
html body #hero .hero-ray {
    position: absolute !important;
    z-index: 1 !important;
}
html body #hero .hero-label,
html body #hero .hero-title,
html body #hero .hero-sub,
html body #hero .hero-stats,
html body #hero .hero-scroll {
    position: relative !important;
    z-index: 2 !important;
}

/* ════════════════════════════════════════════════════════════════════
   FIX AUTOFILL CHROME SU SFONDO SCURO
   Chrome dipinge gli input autocompletati con sfondo bianco-azzurro e
   testo bianco → illeggibili sul tema scuro. Forziamo testo bianco e
   "ridipingiamo" lo sfondo scuro con un box-shadow inset.
   (Tutti gli input del tema sono già su sfondo scuro: nessun conflitto.)
═══════════════════════════════════════════════════════════════════════ */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
    -webkit-text-fill-color: #ffffff !important;
    -webkit-box-shadow: 0 0 0px 1000px #1a1a1a inset !important;
    transition: background-color 5000s ease-in-out 0s;
    caret-color: #ffffff;
}

input[type="text"],
input[type="email"],
input[type="password"] {
    color: #ffffff !important;
    background-color: #1a1a1a !important;
}
