/* ═══════════════════════════════════════════════════════
   JD MEDIACREATIVE — MAIN CSS
   Dark Premium Agency Design System v1.0
═══════════════════════════════════════════════════════ */

/* ── VARIABILI ─────────────────────────────────────── */
:root {
  --black:       #070707;
  --black-2:     #0e0e0e;
  --black-3:     #141414;
  --black-4:     #1c1c1c;
  --white:       #f2ede8;
  --white-2:     #c8c4be;
  --gold:        #c9a84c;
  --gold-light:  #e2c47a;
  --gold-dim:    rgba(201,168,76,0.12);
  --gold-border: rgba(201,168,76,0.2);
  --grey:        #2a2a2a;
  --grey-2:      #3a3a3a;
  --muted:       #6a6a6a;
  --muted-2:     #4a4a4a;

  --font-display: 'Bebas Neue', sans-serif;
  --font-serif:   'Playfair Display', serif;
  --font-body:    'DM Sans', sans-serif;

  --radius:      4px;
  --radius-lg:   12px;
  --transition:  0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-out:    cubic-bezier(0.16, 1, 0.3, 1);

  --nav-h: 80px;
  --max-w: 1400px;
  --gutter: clamp(20px, 5vw, 80px);
}

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

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

body {
  background: var(--black);
  color: var(--white);
  font-family: var(--font-body);
  font-size: clamp(15px, 1.1vw, 17px);
  line-height: 1.65;
  overflow-x: hidden;
}

body.menu-open { overflow: hidden; }

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

::selection { background: var(--gold); color: var(--black); }

/* ── SCROLLBAR ─────────────────────────────────────── */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--black); }
::-webkit-scrollbar-thumb { background: var(--gold); border-radius: 2px; }

/* ── TIPOGRAFIA ────────────────────────────────────── */
h1, h2, h3, h4 { line-height: 1.05; font-weight: 400; }
.display { font-family: var(--font-display); letter-spacing: 0.04em; }
.serif { font-family: var(--font-serif); }

.text-gold   { color: var(--gold); }
.text-muted  { color: var(--muted); }
.text-white  { color: var(--white); }
.uppercase   { text-transform: uppercase; letter-spacing: 0.1em; }
.eyebrow {
  font-size: 11px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
}

/* ── LAYOUT ────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  padding-block: clamp(80px, 10vw, 160px);
}

.section-sm { padding-block: clamp(40px, 6vw, 80px); }

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

.flex { display: flex; align-items: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-col { display: flex; flex-direction: column; }

.gap-sm { gap: 12px; }
.gap-md { gap: 24px; }
.gap-lg { gap: 40px; }

/* ── EFFETTI VISIVI ────────────────────────────────── */
.grain-overlay {
  position: fixed; inset: 0; pointer-events: none; z-index: 9999;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.bg-gradient {
  background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(201,168,76,0.06) 0%, transparent 70%);
}

/* ── LINEE DECORATIVE ──────────────────────────────── */
.line-h {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-border), transparent);
}

.line-v {
  width: 1px;
  background: linear-gradient(180deg, transparent, var(--gold-border), transparent);
}

/* ── BOTTONI ───────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  font-size: 12px;
  font-family: var(--font-body);
  font-weight: 500;
  letter-spacing: 3px;
  text-transform: uppercase;
  border-radius: var(--radius);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gold);
  transform: translateX(-105%);
  transition: transform 0.4s var(--ease-out);
  z-index: 0;
}

.btn:hover::before { transform: translateX(0); }
.btn > * { position: relative; z-index: 1; }

.btn-primary {
  background: var(--gold);
  color: var(--black) !important;
}
.btn-primary::before { background: var(--gold-light); }
.btn-primary:hover { color: var(--black) !important; }
.btn-primary span { color: var(--black) !important; }

.btn-outline {
  border: 1px solid var(--gold-border);
  color: var(--white);
}
.btn-outline:hover { color: var(--black); }

.btn-ghost {
  color: var(--white-2);
  padding-inline: 0;
}
.btn-ghost::before { display: none; }
.btn-ghost:hover { color: var(--gold); }
.btn-ghost .arrow { transition: transform 0.3s; }
.btn-ghost:hover .arrow { transform: translateX(6px); }

/* ── NAVIGAZIONE ───────────────────────────────────── */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 1000;
  transition: background 0.4s, box-shadow 0.4s;
}

#navbar.scrolled {
  background: rgba(7,7,7,0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 var(--gold-border);
}

.nav-inner {
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo img {
  height: 36px;
  width: auto;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 40px;
}

.nav-menu a {
  font-size: 12px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--white-2);
  transition: color 0.3s;
  position: relative;
}

.nav-menu a::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0; right: 100%;
  height: 1px;
  background: var(--gold);
  transition: right 0.3s var(--ease-out);
}

.nav-menu a:hover, .nav-menu a.active { color: var(--white); }
.nav-menu a:hover::after, .nav-menu a.active::after { right: 0; }

.nav-cta {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-social {
  display: flex;
  align-items: center;
  gap: 14px;
}

.nav-social a {
  color: var(--muted);
  font-size: 14px;
  transition: color 0.3s;
}
.nav-social a:hover { color: var(--gold); }

.nav-btn {
  font-size: 11px;
  padding: 10px 22px;
}

/* Hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}

.nav-hamburger span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--white);
  transition: var(--transition);
  transform-origin: center;
}

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

/* Mobile drawer */
.nav-drawer {
  position: fixed;
  inset: 0;
  background: var(--black);
  z-index: 999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
  transform: translateX(100%);
  transition: transform 0.5s var(--ease-out);
}

.nav-drawer.open { transform: translateX(0); }

.nav-drawer a {
  font-family: var(--font-display);
  font-size: clamp(36px, 8vw, 56px);
  letter-spacing: 4px;
  color: var(--white-2);
  transition: color 0.3s;
}
.nav-drawer a:hover { color: var(--gold); }

/* ── HERO ──────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: var(--nav-h);
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg video, .hero-bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.2;
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7,7,7,0.3) 0%, rgba(7,7,7,0.7) 60%, var(--black) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}

.hero-eyebrow .line {
  width: 40px; height: 1px;
  background: var(--gold);
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(56px, 9vw, 130px);
  letter-spacing: 0.02em;
  line-height: 0.95;
  margin-bottom: 32px;
  color: var(--white);
}

.hero-title .outline {
  -webkit-text-stroke: 1px var(--white-2);
  color: transparent;
}

.hero-title .gold { color: var(--gold); }

.hero-sub {
  font-size: clamp(15px, 1.5vw, 18px);
  color: var(--white-2);
  max-width: 480px;
  line-height: 1.7;
  margin-bottom: 48px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.hero-scroll {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 3px;
  text-transform: uppercase;
  z-index: 1;
}

.hero-scroll .wheel {
  width: 20px; height: 32px;
  border: 1px solid var(--muted-2);
  border-radius: 10px;
  position: relative;
}

.hero-scroll .wheel::after {
  content: '';
  position: absolute;
  top: 5px; left: 50%;
  transform: translateX(-50%);
  width: 3px; height: 6px;
  background: var(--gold);
  border-radius: 2px;
  animation: scroll-wheel 2s ease-in-out infinite;
}

@keyframes scroll-wheel {
  0%, 100% { opacity: 1; transform: translateX(-50%) translateY(0); }
  80% { opacity: 0; transform: translateX(-50%) translateY(10px); }
}

/* ── NUMERI / STATS ────────────────────────────────── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--gold-border);
  border: 1px solid var(--gold-border);
}

.stat-item {
  background: var(--black-2);
  padding: 40px 32px;
  text-align: center;
}

.stat-number {
  font-family: var(--font-display);
  font-size: clamp(48px, 5vw, 72px);
  color: var(--gold);
  letter-spacing: 2px;
  line-height: 1;
  margin-bottom: 8px;
}

.stat-label {
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--muted);
}

/* ── SEZIONE TITOLO ────────────────────────────────── */
.section-header {
  margin-bottom: clamp(48px, 6vw, 80px);
}

.section-header .eyebrow { margin-bottom: 16px; }

.section-title {
  font-family: var(--font-display);
  font-size: clamp(40px, 5.5vw, 80px);
  letter-spacing: 0.03em;
  line-height: 1;
}

.section-title .outline {
  -webkit-text-stroke: 1px var(--white-2);
  color: transparent;
}

.section-desc {
  font-size: clamp(15px, 1.3vw, 17px);
  color: var(--white-2);
  max-width: 520px;
  line-height: 1.7;
  margin-top: 20px;
}

/* ── PORTFOLIO GRID ────────────────────────────────── */
.portfolio-filters {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.filter-btn {
  padding: 9px 20px;
  font-size: 11px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--grey);
  border-radius: 100px;
  transition: var(--transition);
  background: transparent;
}

.filter-btn:hover, .filter-btn.active {
  color: var(--black);
  background: var(--gold);
  border-color: var(--gold);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 2px;
}

.portfolio-item {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--black-3);
  cursor: pointer;
}

.portfolio-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease-out);
}

.portfolio-item:hover img { transform: scale(1.06); }

.portfolio-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(7,7,7,0.92) 100%);
  opacity: 0;
  transition: opacity 0.4s;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 28px;
}

.portfolio-item:hover .portfolio-overlay { opacity: 1; }

.portfolio-overlay-title {
  font-family: var(--font-display);
  font-size: 22px;
  letter-spacing: 2px;
  margin-bottom: 4px;
}

.portfolio-overlay-tipo {
  font-size: 10px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
}

.portfolio-item.wide { grid-column: span 2; }
.portfolio-item.tall { grid-row: span 2; }

/* ── SERVIZI ───────────────────────────────────────── */
.servizi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2px;
}

.servizio-card {
  background: var(--black-2);
  border: 1px solid var(--black-4);
  padding: clamp(32px, 4vw, 48px);
  transition: border-color 0.4s, background 0.4s;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  display: block;
}

.servizio-card::before {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transition: transform 0.4s var(--ease-out);
}

.servizio-card:hover { border-color: var(--gold-border); background: var(--black-3); }
.servizio-card:hover::before { transform: scaleX(1); }

.servizio-icon {
  font-size: 36px;
  margin-bottom: 24px;
  display: block;
}

.servizio-title {
  font-family: var(--font-display);
  font-size: 28px;
  letter-spacing: 2px;
  margin-bottom: 12px;
}

.servizio-tagline {
  font-size: 14px;
  color: var(--white-2);
  line-height: 1.6;
  margin-bottom: 24px;
}

.servizio-arrow {
  color: var(--gold);
  font-size: 20px;
  transition: transform 0.3s;
}

.servizio-card:hover .servizio-arrow { transform: translateX(8px); }

/* ── ABOUT / CHI SIAMO ─────────────────────────────── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 100px);
  align-items: center;
}

.about-visual {
  position: relative;
}

.about-visual-main {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
}

.about-visual-accent {
  position: absolute;
  bottom: -24px; right: -24px;
  width: 50%;
  aspect-ratio: 1;
  object-fit: cover;
  border: 4px solid var(--black);
}

.about-badge {
  position: absolute;
  top: 24px; left: -24px;
  background: var(--gold);
  color: var(--black);
  padding: 16px 20px;
  text-align: center;
}

.about-badge-num {
  font-family: var(--font-display);
  font-size: 36px;
  line-height: 1;
}

.about-badge-label {
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 500;
}

.about-content .section-title { margin-bottom: 24px; }

.about-text {
  color: var(--white-2);
  line-height: 1.8;
  margin-bottom: 16px;
}

.about-values {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 32px 0;
}

.about-value {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.about-value-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--gold);
  margin-top: 8px;
  flex-shrink: 0;
}

.about-value-text {
  font-size: 13px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--white-2);
}

/* ── TESTIMONIANZE ─────────────────────────────────── */
.testi-track {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 8px;
}
.testi-track::-webkit-scrollbar { display: none; }

.testi-card {
  flex: 0 0 360px;
  background: var(--black-2);
  border: 1px solid var(--black-4);
  padding: 40px;
  transition: border-color 0.4s;
}
.testi-card:hover { border-color: var(--gold-border); }

.testi-stars {
  color: var(--gold);
  font-size: 14px;
  letter-spacing: 3px;
  margin-bottom: 20px;
}

.testi-text {
  font-size: 15px;
  color: var(--white-2);
  line-height: 1.7;
  margin-bottom: 28px;
  font-style: italic;
}

.testi-author {
  display: flex;
  align-items: center;
  gap: 14px;
}

.testi-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--grey);
}

.testi-nome {
  font-weight: 500;
  font-size: 14px;
}

.testi-ruolo {
  font-size: 11px;
  color: var(--gold);
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

/* ── CONTATTI ──────────────────────────────────────── */
.contatti-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 100px);
  align-items: start;
}

.form-group {
  margin-bottom: 24px;
}

.form-label {
  display: block;
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
}

.form-input, .form-textarea, .form-select {
  width: 100%;
  background: var(--black-2);
  border: 1px solid var(--black-4);
  color: var(--white);
  padding: 14px 18px;
  font-size: 15px;
  font-family: var(--font-body);
  border-radius: var(--radius);
  transition: border-color 0.3s;
  outline: none;
  -webkit-appearance: none;
}

.form-input:focus, .form-textarea:focus, .form-select:focus {
  border-color: var(--gold);
}

.form-textarea { resize: vertical; min-height: 140px; }

.contatti-info { display: flex; flex-direction: column; gap: 32px; }

.contatti-item {
  display: flex;
  align-items: flex-start;
  gap: 20px;
}

.contatti-item-icon {
  width: 48px; height: 48px;
  border: 1px solid var(--gold-border);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  font-size: 18px;
}

.contatti-item-label {
  font-size: 10px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 4px;
}

.contatti-item-value {
  font-size: 15px;
  color: var(--white-2);
}

/* ── FOOTER ────────────────────────────────────────── */
#footer {
  border-top: 1px solid var(--black-4);
  background: var(--black-2);
}

.footer-top {
  padding-block: clamp(60px, 8vw, 100px);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 60px;
}

.footer-logo { margin-bottom: 20px; }
.footer-logo img { height: 40px; }

.footer-desc {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.7;
  max-width: 280px;
  margin-bottom: 24px;
}

.footer-socials {
  display: flex;
  gap: 12px;
}

.footer-socials a {
  width: 36px; height: 36px;
  border: 1px solid var(--black-4);
  display: flex; align-items: center; justify-content: center;
  color: var(--muted);
  font-size: 13px;
  transition: all 0.3s;
  border-radius: 4px;
}
.footer-socials a:hover { border-color: var(--gold); color: var(--gold); }

.footer-heading {
  font-size: 11px;
  letter-spacing: 3.5px;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 24px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  font-size: 14px;
  color: var(--muted);
  transition: color 0.3s;
}
.footer-links a:hover { color: var(--gold); }

.footer-bottom {
  border-top: 1px solid var(--black-4);
  padding-block: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: var(--muted-2);
  flex-wrap: wrap;
  gap: 12px;
}

.footer-legal { display: flex; gap: 24px; }
.footer-legal a { color: var(--muted-2); transition: color 0.3s; }
.footer-legal a:hover { color: var(--gold); }

/* ── CTA FINALE ────────────────────────────────────── */
.cta-section {
  padding-block: clamp(80px, 12vw, 160px);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 80% at 50% 50%, rgba(201,168,76,0.06) 0%, transparent 70%);
  pointer-events: none;
}

.cta-title {
  font-family: var(--font-display);
  font-size: clamp(48px, 7vw, 100px);
  letter-spacing: 0.03em;
  margin-bottom: 24px;
}

.cta-sub {
  color: var(--white-2);
  font-size: clamp(15px, 1.5vw, 18px);
  max-width: 500px;
  margin: 0 auto 48px;
  line-height: 1.7;
}

.cta-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

/* ── ANIMAZIONI GSAP ───────────────────────────────── */
.jd-reveal { opacity: 0; }
.jd-reveal-up { opacity: 0; transform: translateY(40px); }
.jd-reveal-left { opacity: 0; transform: translateX(-40px); }

/* ── PAGINA SINGOLA ────────────────────────────────── */
.page-hero {
  padding-top: calc(var(--nav-h) + 80px);
  padding-bottom: 60px;
  border-bottom: 1px solid var(--black-4);
}

/* ── VETRINA PUBBLICA ──────────────────────────────── */
.vetrina-page {
  min-height: 100vh;
  background: var(--black);
  padding-top: 100px;
  padding-bottom: 80px;
}

.vetrina-header {
  text-align: center;
  margin-bottom: 60px;
}

.vetrina-title {
  font-family: var(--font-display);
  font-size: clamp(40px, 6vw, 80px);
  letter-spacing: 4px;
  margin-bottom: 12px;
}

.vetrina-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.vetrina-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 3px;
}

.vetrina-photo {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3/2;
  cursor: pointer;
}

.vetrina-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out);
}

.vetrina-photo:hover img { transform: scale(1.04); }

.vetrina-photo-overlay {
  position: absolute;
  inset: 0;
  background: rgba(7,7,7,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s;
}

.vetrina-photo:hover .vetrina-photo-overlay { opacity: 1; }

.vetrina-download-btn {
  background: var(--gold);
  color: var(--black);
  padding: 10px 20px;
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 600;
  border-radius: var(--radius);
  text-decoration: none;
  transition: background 0.3s;
}

.vetrina-download-btn:hover { background: var(--gold-light); }

.vetrina-download-all {
  display: flex;
  justify-content: center;
  margin-top: 48px;
}

/* ── LIGHTBOX ──────────────────────────────────────── */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(7,7,7,0.97);
  z-index: 9998;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.lightbox.open { opacity: 1; pointer-events: all; }

.lightbox img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
}

.lightbox-close {
  position: absolute;
  top: 24px; right: 32px;
  color: var(--white-2);
  font-size: 32px;
  cursor: pointer;
  transition: color 0.3s;
  background: none;
  border: none;
}
.lightbox-close:hover { color: var(--gold); }

.lightbox-prev, .lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(7,7,7,0.6);
  border: 1px solid var(--gold-border);
  color: var(--white);
  width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: all 0.3s;
  font-size: 18px;
}
.lightbox-prev { left: 24px; }
.lightbox-next { right: 24px; }
.lightbox-prev:hover, .lightbox-next:hover {
  background: var(--gold);
  color: var(--black);
}

/* ── LOADER ────────────────────────────────────────── */
#page-loader {
  position: fixed;
  inset: 0;
  background: var(--black);
  z-index: 99999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
}

.loader-logo { height: 48px; }

.loader-bar {
  width: 200px; height: 1px;
  background: var(--black-4);
  position: relative;
  overflow: hidden;
}

.loader-bar::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gold);
  transform: translateX(-100%);
  animation: loader-fill 1.2s var(--ease-out) forwards;
}

@keyframes loader-fill {
  to { transform: translateX(0); }
}

/* ── RESPONSIVE ────────────────────────────────────── */
@media (max-width: 1100px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .nav-menu, .nav-social, .nav-btn { display: none; }
  .nav-hamburger { display: flex; }
  .about-grid { grid-template-columns: 1fr; }
  .contatti-grid { grid-template-columns: 1fr; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  :root { --nav-h: 64px; }
  .portfolio-grid { grid-template-columns: 1fr; }
  .portfolio-item.wide { grid-column: span 1; }
  .footer-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-actions { flex-direction: column; align-items: flex-start; }
  .testi-card { flex: 0 0 290px; }
  .lightbox-prev, .lightbox-next { display: none; }
}

/* ── BACK TO TOP ── */
#jd-back-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 48px;
  height: 48px;
  background: var(--gold);
  color: #070707;
  border: none;
  border-radius: 4px;
  font-size: 20px;
  font-weight: 700;
  cursor: none;
  z-index: 9000;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.3s, transform 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
}

#jd-back-top.visible {
  opacity: 1;
  transform: translateY(0);
}

#jd-back-top:hover {
  background: var(--gold-light);
}

@media (max-width: 900px) {
  * { cursor: auto !important; }
  #jd-cursor, #jd-cursor-dot { display: none; }
}
/* ── CUSTOM CURSOR ── */
#jd-cursor-outer {
  position: fixed;
  width: 40px;
  height: 40px;
  border: 1.5px solid var(--gold);
  border-radius: 50%;
  pointer-events: none;
  z-index: 99998;
  top: 0; left: 0;
  transition: width 0.4s cubic-bezier(0.16,1,0.3,1),
              height 0.4s cubic-bezier(0.16,1,0.3,1),
              background 0.4s,
              border-color 0.3s;
  will-change: transform;
}

#jd-cursor-inner {
  position: fixed;
  width: 6px;
  height: 6px;
  background: var(--gold);
  border-radius: 50%;
  pointer-events: none;
  z-index: 99999;
  top: 0; left: 0;
  will-change: transform;
  transition: transform 0.1s, width 0.3s, height 0.3s, opacity 0.3s;
}

#jd-cursor-outer.hovered {
  width: 70px;
  height: 70px;
  background: rgba(201,168,76,0.08);
  border-color: rgba(201,168,76,0.6);
}

#jd-cursor-outer.hovered::after {
  content: 'VIEW';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  letter-spacing: 2px;
  color: var(--gold);
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
}

#jd-cursor-inner.hovered {
  opacity: 0;
  transform: translate(-50%, -50%) scale(0) !important;
}

#jd-cursor-outer.clicking {
  transform: scale(0.85) !important;
  background: rgba(201,168,76,0.2);
}

@media (max-width: 900px) {
  #jd-cursor-outer, #jd-cursor-inner { display: none !important; }
}