/* =========================================================
   TENDAGGI MAREGLIA ALFREDO — Design System
   Stile: scuro elegante, accento oro, mediterraneo premium
   ========================================================= */

:root {
  /* Colori base */
  --bg:        #0e0d0b;
  --bg-2:      #14120f;
  --surface:   #1b1814;
  --surface-2: #221e19;
  --line:      rgba(212, 175, 110, 0.14);
  --line-soft: rgba(255, 255, 255, 0.07);

  /* Testo */
  --text:   #f4efe6;
  --muted:  #b3a996;
  --muted-2:#8a8172;

  /* Oro / accenti (dal logo) */
  --gold:      #c9a24e;
  --gold-2:    #e4c27a;
  --gold-soft: rgba(201, 162, 78, 0.14);
  --gold-line: rgba(201, 162, 78, 0.40);

  /* Layout */
  --maxw: 1240px;
  --nav-h: 82px;
  --radius: 18px;
  --radius-lg: 26px;

  /* Ombre */
  --shadow-sm: 0 8px 24px rgba(0,0,0,.35);
  --shadow:    0 24px 60px rgba(0,0,0,.5);
  --shadow-gold: 0 20px 60px rgba(201,162,78,.18);

  --ease: cubic-bezier(.22,.61,.36,1);
  --font-display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* Grana / texture di fondo fissa */
body::before {
  content: "";
  position: fixed; inset: 0;
  background:
    radial-gradient(1200px 700px at 78% -10%, rgba(201,162,78,.10), transparent 60%),
    radial-gradient(900px 600px at 0% 100%, rgba(201,162,78,.06), transparent 55%);
  pointer-events: none;
  z-index: 0;
}

/* ---------- Tipografia ---------- */
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.06; letter-spacing: .3px; }
.display { font-size: clamp(2.9rem, 7vw, 6.2rem); font-weight: 600; }
h2.section-title { font-size: clamp(2.2rem, 4.6vw, 3.8rem); }
.serif-i { font-style: italic; color: var(--gold-2); }

.eyebrow {
  display: inline-flex; align-items: center; gap: .6rem;
  font-family: var(--font-body);
  font-size: .74rem; font-weight: 600;
  letter-spacing: .28em; text-transform: uppercase;
  color: var(--gold);
}
.eyebrow::before { content: ""; width: 30px; height: 1px; background: var(--gold-line); display: inline-block; }
.eyebrow.center::after { content: ""; width: 30px; height: 1px; background: var(--gold-line); display: inline-block; }

.lead { font-size: clamp(1.02rem, 1.4vw, 1.18rem); color: var(--muted); max-width: 60ch; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 clamp(1.2rem, 4vw, 2.4rem); position: relative; z-index: 1; }
section { position: relative; z-index: 1; }
.section-pad { padding: clamp(5rem, 11vw, 9rem) 0; }
.center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }

/* ---------- Bottoni ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  padding: .95rem 1.8rem; border-radius: 100px;
  font-size: .82rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), background .35s, color .35s;
  position: relative; overflow: hidden; will-change: transform;
}
.btn svg { width: 16px; height: 16px; transition: transform .4s var(--ease); }
.btn:hover svg { transform: translateX(4px); }
.btn-gold {
  background: linear-gradient(135deg, var(--gold-2), var(--gold));
  color: #241c0c;
  box-shadow: var(--shadow-gold);
}
.btn-gold:hover { transform: translateY(-3px); box-shadow: 0 26px 70px rgba(201,162,78,.34); }
.btn-ghost { border: 1px solid var(--gold-line); color: var(--text); background: rgba(255,255,255,.02); }
.btn-ghost:hover { transform: translateY(-3px); background: var(--gold-soft); border-color: var(--gold); }
.btn-dark { background: #17140f; color: var(--text); border: 1px solid var(--line-soft); }
.btn-dark:hover { transform: translateY(-3px); border-color: var(--gold-line); }

/* ================= NAVBAR ================= */
.nav {
  position: fixed; top: 0; left: 0; right: 0; height: var(--nav-h);
  display: flex; align-items: center; z-index: 100;
  transition: background .4s var(--ease), box-shadow .4s, height .4s, border-color .4s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(14,13,11,.82);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-bottom: 1px solid var(--line);
  height: 70px;
  box-shadow: 0 10px 40px rgba(0,0,0,.35);
}
.nav .container { display: flex; align-items: center; justify-content: space-between; width: 100%; }
.brand { display: flex; align-items: center; gap: .8rem; z-index: 2; }
.brand img { height: 46px; width: auto; filter: drop-shadow(0 2px 8px rgba(0,0,0,.4)); transition: height .4s; }
.nav.scrolled .brand img { height: 40px; }
.brand-txt { display: flex; flex-direction: column; line-height: 1; }
.brand-txt b { font-family: var(--font-display); font-size: 1.28rem; letter-spacing: .5px; }
.brand-txt span { font-size: .58rem; letter-spacing: .34em; text-transform: uppercase; color: var(--gold); margin-top: 3px; }

.nav-links { display: flex; align-items: center; gap: .3rem; }
.nav-links a {
  position: relative; padding: .6rem 1rem; font-size: .82rem; font-weight: 500;
  letter-spacing: .04em; color: var(--muted); transition: color .3s;
}
.nav-links a::after {
  content: ""; position: absolute; left: 1rem; right: 1rem; bottom: .35rem; height: 1px;
  background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease);
}
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.nav-links a:hover::after, .nav-links a.active::after { transform: scaleX(1); }
.nav-cta { margin-left: .8rem; padding: .7rem 1.4rem !important; }

/* Fix contrasto: i bottoni dentro nav/menu devono mantenere il colore del .btn,
   non quello ereditato da .nav-links a / .mobile-menu a (che ha specificità maggiore) */
.nav-links a.btn-gold, .mobile-menu a.btn-gold,
.nav-links a.btn-gold:hover, .mobile-menu a.btn-gold:hover { color: #241c0c; }
.nav-links a.btn-ghost, .nav-links a.btn-dark,
.mobile-menu a.btn-ghost, .mobile-menu a.btn-dark,
.nav-links a.btn-ghost:hover, .mobile-menu a.btn-ghost:hover { color: var(--text); }
/* niente sottolineatura sotto i bottoni della navbar */
.nav-links a.btn::after { display: none; }

.burger { display: none; width: 44px; height: 44px; position: relative; z-index: 110; border-radius: 12px; background: rgba(18,16,13,.35); border: 1px solid var(--line-soft); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); transition: background .35s, border-color .35s; }
.nav.scrolled .burger { background: transparent; border-color: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; }
.burger.open { background: rgba(18,16,13,.5); }
.burger span { position: absolute; left: 11px; right: 11px; height: 2px; background: var(--text); box-shadow: 0 1px 2px rgba(0,0,0,.4); transition: .35s var(--ease); }
.burger span:nth-child(1) { top: 14px; }
.burger span:nth-child(2) { top: 20px; }
.burger span:nth-child(3) { top: 26px; }
.burger.open span:nth-child(1) { top: 20px; transform: rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { top: 20px; transform: rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 105;
  background: rgba(10,9,7,.97); backdrop-filter: blur(14px);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .4rem;
  opacity: 0; visibility: hidden; transition: opacity .45s, visibility .45s;
}
.mobile-menu.open { opacity: 1; visibility: visible; }
.mobile-menu a {
  font-family: var(--font-display); font-size: 2rem; color: var(--muted);
  padding: .5rem 1rem; opacity: 0; transform: translateY(20px); transition: .5s var(--ease);
}
.mobile-menu.open a { opacity: 1; transform: none; }
.mobile-menu.open a:nth-child(1){ transition-delay:.08s } .mobile-menu.open a:nth-child(2){ transition-delay:.14s }
.mobile-menu.open a:nth-child(3){ transition-delay:.20s } .mobile-menu.open a:nth-child(4){ transition-delay:.26s }
.mobile-menu.open a:nth-child(5){ transition-delay:.32s } .mobile-menu.open a:nth-child(6){ transition-delay:.38s }
.mobile-menu a:hover, .mobile-menu a.active { color: var(--gold-2); }

/* ================= HERO ================= */
.hero { position: relative; min-height: 100vh; display: flex; align-items: center; overflow: hidden; }
.hero-canvas { position: absolute; inset: 0; z-index: 0; }
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.12); will-change: transform; }
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(14,13,11,.55) 0%, rgba(14,13,11,.35) 40%, rgba(14,13,11,.92) 100%),
    linear-gradient(90deg, rgba(14,13,11,.8), rgba(14,13,11,.15));
}
.hero .container { position: relative; z-index: 3; padding-top: var(--nav-h); }
.hero-inner { max-width: 860px; }
.hero h1 { margin: 1.4rem 0 1.6rem; }
.hero .lead { font-size: clamp(1.1rem, 1.6vw, 1.35rem); color: #e7ded0; max-width: 46ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2.4rem; }

.scroll-cue {
  position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%); z-index: 3;
  display: flex; flex-direction: column; align-items: center; gap: .6rem;
  font-size: .66rem; letter-spacing: .3em; text-transform: uppercase; color: var(--muted);
}
.scroll-cue .mouse { width: 24px; height: 40px; border: 1.5px solid var(--gold-line); border-radius: 14px; position: relative; }
.scroll-cue .mouse::after { content: ""; position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; background: var(--gold); border-radius: 3px; transform: translateX(-50%); animation: wheel 1.8s infinite; }
@keyframes wheel { 0%{opacity:0;transform:translate(-50%,0)} 30%{opacity:1} 60%{opacity:1;transform:translate(-50%,10px)} 100%{opacity:0;transform:translate(-50%,14px)} }

/* Badge fluttuante hero */
.hero-badge {
  position: absolute; z-index: 4; right: clamp(1.2rem,4vw,4rem); bottom: clamp(6rem, 14vh, 9rem);
  background: rgba(27,24,20,.72); backdrop-filter: blur(14px);
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.2rem 1.5rem; box-shadow: var(--shadow);
  display: flex; align-items: center; gap: 1rem; transform: translateZ(0);
}
.hero-badge .n { font-family: var(--font-display); font-size: 2.6rem; color: var(--gold-2); line-height: 1; }
.hero-badge .t { font-size: .82rem; color: var(--muted); max-width: 12ch; }
@media (max-width: 720px){ .hero-badge{ display:none } }

/* ================= REVEAL ANIM ================= */
.reveal { opacity: 0; transform: translateY(42px); transition: opacity .9s var(--ease), transform .9s var(--ease); will-change: transform, opacity; }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1{ transition-delay:.1s } .reveal.d2{ transition-delay:.2s } .reveal.d3{ transition-delay:.3s } .reveal.d4{ transition-delay:.4s }
.reveal-x { opacity: 0; transform: translateX(-46px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal-x.right { transform: translateX(46px); }
.reveal-x.in { opacity: 1; transform: none; }
.reveal-scale { opacity: 0; transform: scale(.92); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal-scale.in { opacity: 1; transform: none; }

/* Titolo split words */
/* padding-bottom + margin-bottom negativo: dà spazio ai descender (g, p, q, y)
   così l'overflow:hidden non li taglia, senza cambiare la spaziatura tra le righe */
.split-word { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .22em; margin-bottom: -.22em; }
.split-word > span { display: inline-block; transform: translateY(115%); transition: transform .9s var(--ease); }
.split-word.in > span { transform: none; }

/* ================= SECTION HEADER ================= */
.sec-head { max-width: 720px; }
.sec-head.center { margin: 0 auto; }
.sec-head h2 { margin: 1rem 0 1.1rem; }

/* ================= INTRO / SPLIT ================= */
.split { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.split.rev { grid-template-columns: .95fr 1.05fr; }
.split-media { position: relative; }
.split-media img { border-radius: var(--radius-lg); box-shadow: var(--shadow); aspect-ratio: 4/5; object-fit: cover; width: 100%; }
.split-media .frame { position: absolute; inset: 16px; border: 1px solid var(--gold-line); border-radius: var(--radius-lg); pointer-events: none; z-index: 2; }
.stat-float {
  position: absolute; bottom: -26px; left: -26px; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius); padding: 1.2rem 1.5rem;
  box-shadow: var(--shadow); text-align: center; z-index: 3;
}
.stat-float .n { font-family: var(--font-display); font-size: 2.6rem; color: var(--gold-2); line-height: 1; }
.stat-float .t { font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
@media (max-width: 860px){ .stat-float{ left: 50%; transform: translateX(-50%) } }

/* ================= FEATURE CARDS (tilt) ================= */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.6rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; }

.tilt { transform-style: preserve-3d; transition: transform .3s var(--ease); }
.card {
  background: linear-gradient(180deg, var(--surface), var(--bg-2));
  border: 1px solid var(--line-soft); border-radius: var(--radius-lg);
  padding: 2.4rem 2rem; position: relative; overflow: hidden;
  transition: border-color .4s, box-shadow .4s, transform .4s var(--ease);
}
.card::before {
  content: ""; position: absolute; inset: 0; opacity: 0; transition: opacity .5s;
  background: radial-gradient(600px circle at var(--mx,50%) var(--my,0%), rgba(201,162,78,.12), transparent 40%);
}
.card:hover { border-color: var(--gold-line); box-shadow: var(--shadow-gold); }
.card:hover::before { opacity: 1; }
.card .ico {
  width: 58px; height: 58px; border-radius: 15px; display: grid; place-items: center;
  background: var(--gold-soft); border: 1px solid var(--gold-line); color: var(--gold-2);
  margin-bottom: 1.4rem; transform: translateZ(40px);
}
.card .ico svg { width: 26px; height: 26px; }
.card h3 { font-size: 1.55rem; margin-bottom: .7rem; transform: translateZ(28px); }
.card p { color: var(--muted); font-size: .95rem; transform: translateZ(18px); }
.card .more { display: inline-flex; align-items: center; gap: .4rem; margin-top: 1.2rem; font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); transform: translateZ(28px); }
.card .num { position: absolute; top: 1.4rem; right: 1.6rem; font-family: var(--font-display); font-size: 3rem; color: rgba(255,255,255,.05); }

/* ================= PRODUCT / SERVICE CARDS (image) ================= */
.prod-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.6rem; }
.prod {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  min-height: 420px; display: flex; align-items: flex-end;
  box-shadow: var(--shadow-sm); border: 1px solid var(--line-soft);
}
.prod img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease); z-index: 0; }
.prod::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, transparent 30%, rgba(10,9,7,.5) 62%, rgba(10,9,7,.94) 100%); }
.prod:hover img { transform: scale(1.08); }
.prod-body { position: relative; z-index: 2; padding: 2rem; width: 100%; }
.prod-body .tag { font-size: .68rem; letter-spacing: .22em; text-transform: uppercase; color: var(--gold-2); }
.prod-body h3 { font-size: 1.9rem; margin: .5rem 0 .6rem; }
.prod-body p { color: #d8cfc0; font-size: .93rem; max-width: 42ch; max-height: 0; opacity: 0; overflow: hidden; transition: max-height .6s var(--ease), opacity .5s, margin .5s; }
.prod:hover .prod-body p { max-height: 120px; opacity: 1; margin-top: .2rem; }
.prod-body .more { display: inline-flex; gap: .4rem; margin-top: 1rem; font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }

/* ================= STATS BAND ================= */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.stat { text-align: center; padding: 1.4rem 1rem; position: relative; }
.stat + .stat::before { content: ""; position: absolute; left: 0; top: 20%; bottom: 20%; width: 1px; background: var(--line); }
.stat .n { font-family: var(--font-display); font-size: clamp(2.6rem, 5vw, 4rem); color: var(--gold-2); line-height: 1; }
.stat .t { font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-top: .4rem; }

/* ================= MARQUEE ================= */
.marquee { overflow: hidden; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 1.6rem 0; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee-track { display: flex; gap: 3.5rem; width: max-content; animation: scroll-x 32s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span { font-family: var(--font-display); font-size: clamp(1.4rem, 3vw, 2.4rem); color: var(--muted-2); white-space: nowrap; display: inline-flex; align-items: center; gap: 3.5rem; }
.marquee-track span::after { content: "✦"; color: var(--gold); font-size: 1rem; }
@keyframes scroll-x { to { transform: translateX(-50%); } }

/* ================= CTA BAND ================= */
.cta-band { position: relative; overflow: hidden; border-radius: var(--radius-lg); padding: clamp(3rem, 7vw, 5.5rem); text-align: center; border: 1px solid var(--line); }
.cta-band .bg { position: absolute; inset: 0; z-index: 0; }
.cta-band .bg img { width: 100%; height: 100%; object-fit: cover; }
.cta-band .bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(14,13,11,.78), rgba(14,13,11,.9)); }
.cta-band > * { position: relative; z-index: 1; }
.cta-band h2 { margin: 1rem auto 1.2rem; max-width: 18ch; }
.cta-band .lead { margin: 0 auto 2rem; }

/* ================= PAGE HEADER (interne) ================= */
.page-head { position: relative; min-height: 62vh; display: flex; align-items: flex-end; overflow: hidden; }
.page-head .bg { position: absolute; inset: 0; z-index: 0; }
.page-head .bg img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.1); }
.page-head .bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(14,13,11,.6) 0%, rgba(14,13,11,.4) 45%, rgba(14,13,11,.95) 100%); }
.page-head .container { position: relative; z-index: 2; padding-bottom: clamp(2.6rem, 6vw, 4.5rem); padding-top: calc(var(--nav-h) + 2rem); }
.page-head h1 { font-size: clamp(2.8rem, 6.5vw, 5.5rem); margin: 1rem 0 .8rem; }
.breadcrumb { font-size: .78rem; color: var(--muted); letter-spacing: .05em; }
.breadcrumb a:hover { color: var(--gold-2); }
.breadcrumb .sep { color: var(--gold); margin: 0 .5rem; }

/* ================= VALUES / CHECK LIST ================= */
.check-list { display: grid; gap: 1.1rem; }
.check-list li { display: flex; gap: 1rem; align-items: flex-start; }
.check-list .ck { flex: 0 0 auto; width: 30px; height: 30px; border-radius: 50%; background: var(--gold-soft); border: 1px solid var(--gold-line); color: var(--gold-2); display: grid; place-items: center; }
.check-list .ck svg { width: 15px; height: 15px; }
.check-list h4 { font-family: var(--font-body); font-size: 1rem; font-weight: 600; letter-spacing: .02em; }
.check-list p { color: var(--muted); font-size: .92rem; }

/* Timeline / commitments accordion-style */
.pillars { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.6rem; }
.pillar { padding: 2rem; border: 1px solid var(--line-soft); border-radius: var(--radius); background: var(--surface); transition: .4s var(--ease); }
.pillar:hover { transform: translateY(-6px); border-color: var(--gold-line); }
.pillar .k { font-family: var(--font-display); font-size: 1.1rem; color: var(--gold); letter-spacing: .2em; text-transform: uppercase; }
.pillar h3 { font-size: 1.5rem; margin: .3rem 0 .8rem; }
.pillar p { color: var(--muted); font-size: .93rem; }

/* ================= GALLERY ================= */
.filter-bar { display: flex; flex-wrap: wrap; gap: .6rem; justify-content: center; margin-bottom: 2.6rem; }
.filter-bar button {
  padding: .6rem 1.3rem; border-radius: 100px; border: 1px solid var(--line);
  color: var(--muted); font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; transition: .3s;
}
.filter-bar button:hover { color: var(--text); border-color: var(--gold-line); }
.filter-bar button.active { background: var(--gold-soft); border-color: var(--gold); color: var(--gold-2); }

.masonry { columns: 3; column-gap: 1.2rem; }
.masonry .g-item { break-inside: avoid; margin-bottom: 1.2rem; position: relative; border-radius: var(--radius); overflow: hidden; cursor: pointer; border: 1px solid var(--line-soft); transition: opacity .5s, transform .5s; }
.masonry .g-item img { width: 100%; transition: transform 1s var(--ease); }
.masonry .g-item::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(10,9,7,.85)); opacity: 0; transition: opacity .4s; }
.masonry .g-item .cap { position: absolute; left: 1.2rem; bottom: 1rem; z-index: 2; opacity: 0; transform: translateY(10px); transition: .4s var(--ease); }
.masonry .g-item .cap .t { font-size: .66rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-2); }
.masonry .g-item .cap h4 { font-size: 1.3rem; }
.masonry .g-item:hover img { transform: scale(1.07); }
.masonry .g-item:hover::after { opacity: 1; }
.masonry .g-item:hover .cap { opacity: 1; transform: none; }
.g-item.hide { display: none; }
.g-item .zoom { position: absolute; top: 1rem; right: 1rem; z-index: 3; width: 40px; height: 40px; border-radius: 50%; background: rgba(14,13,11,.6); border: 1px solid var(--gold-line); display: grid; place-items: center; opacity: 0; transition: .4s; }
.g-item:hover .zoom { opacity: 1; }
.g-item .zoom svg { width: 16px; height: 16px; color: var(--gold-2); }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(6,5,4,.94); backdrop-filter: blur(8px); display: grid; place-items: center; opacity: 0; visibility: hidden; transition: .4s; }
.lightbox.open { opacity: 1; visibility: visible; }
.lightbox img { max-width: 90vw; max-height: 82vh; border-radius: 10px; box-shadow: var(--shadow); transform: scale(.94); transition: transform .5s var(--ease); }
.lightbox.open img { transform: none; }
.lightbox .close, .lightbox .arrow { position: absolute; width: 54px; height: 54px; border-radius: 50%; border: 1px solid var(--gold-line); color: var(--gold-2); display: grid; place-items: center; background: rgba(20,18,15,.6); transition: .3s; }
.lightbox .close { top: 1.6rem; right: 1.6rem; }
.lightbox .close:hover, .lightbox .arrow:hover { background: var(--gold-soft); }
.lightbox .arrow { top: 50%; transform: translateY(-50%); }
.lightbox .prev { left: 1.6rem; } .lightbox .next { right: 1.6rem; }
.lightbox .arrow svg, .lightbox .close svg { width: 22px; height: 22px; }

/* ================= CONTACT ================= */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.info-card { display: flex; gap: 1.2rem; padding: 1.6rem; border: 1px solid var(--line-soft); border-radius: var(--radius); background: var(--surface); transition: .4s var(--ease); margin-bottom: 1.1rem; }
.info-card:hover { border-color: var(--gold-line); transform: translateX(6px); }
.info-card .ico { flex: 0 0 auto; width: 52px; height: 52px; border-radius: 14px; background: var(--gold-soft); border: 1px solid var(--gold-line); color: var(--gold-2); display: grid; place-items: center; }
.info-card .ico svg { width: 22px; height: 22px; }
.info-card .t { font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: var(--muted-2); }
.info-card a, .info-card p { font-size: 1.12rem; color: var(--text); font-family: var(--font-display); }
.info-card a:hover { color: var(--gold-2); }

.form { background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--radius-lg); padding: clamp(1.6rem, 3vw, 2.6rem); }
.field { margin-bottom: 1.2rem; }
.field label { display: block; font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: .5rem; }
.field input, .field textarea, .field select {
  width: 100%; background: var(--bg-2); border: 1px solid var(--line-soft); border-radius: 12px;
  padding: .95rem 1.1rem; color: var(--text); font-family: inherit; font-size: .96rem; transition: border-color .3s, box-shadow .3s;
}
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--gold-line); box-shadow: 0 0 0 3px var(--gold-soft); }
.field textarea { resize: vertical; min-height: 130px; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.form-note { font-size: .8rem; color: var(--muted-2); margin-top: 1rem; }
.form-ok { display: none; padding: 1rem 1.2rem; border-radius: 12px; background: var(--gold-soft); border: 1px solid var(--gold-line); color: var(--gold-2); font-size: .9rem; margin-top: 1rem; }
.form-ok.show { display: block; }

.hours { display: grid; gap: .5rem; }
.hours .row { display: flex; justify-content: space-between; padding: .7rem 0; border-bottom: 1px solid var(--line-soft); font-size: .92rem; }
.hours .row span:last-child { color: var(--gold-2); }
.badge-open { display: inline-flex; align-items: center; gap: .5rem; font-size: .8rem; color: #9fd6a0; }
.badge-open .dot { width: 8px; height: 8px; border-radius: 50%; background: #6fd47a; box-shadow: 0 0 0 4px rgba(111,212,122,.18); animation: pulse 2s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 8px rgba(111,212,122,0); } }

.map-wrap { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); height: 340px; }
.map-wrap iframe { width: 100%; height: 100%; border: 0; filter: grayscale(.3) invert(.9) hue-rotate(180deg) contrast(.9); }

/* ================= REVIEWS ================= */
.reviews { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.6rem; }
.review { padding: 2rem; border: 1px solid var(--line-soft); border-radius: var(--radius); background: var(--surface); transition: .4s var(--ease); }
.review:hover { transform: translateY(-6px); border-color: var(--gold-line); }
.review .stars { color: var(--gold-2); letter-spacing: 3px; margin-bottom: 1rem; }
.review p { font-family: var(--font-display); font-size: 1.25rem; line-height: 1.5; font-style: italic; color: #e6ddce; }
.review .who { display: flex; align-items: center; gap: .8rem; margin-top: 1.4rem; }
.review .av { width: 44px; height: 44px; border-radius: 50%; background: linear-gradient(135deg, var(--gold-2), var(--gold)); color: #241c0c; display: grid; place-items: center; font-weight: 700; font-family: var(--font-body); }
.review .who b { font-family: var(--font-body); font-size: .92rem; }
.review .who span { font-size: .78rem; color: var(--muted-2); display: block; }

/* ================= FOOTER ================= */
.footer { background: #0a0908; border-top: 1px solid var(--line); padding: clamp(3.5rem,7vw,5rem) 0 2rem; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 2.5rem; }
.footer .brand-txt b { color: var(--text); }
.footer p { color: var(--muted); font-size: .92rem; max-width: 34ch; margin-top: 1.2rem; }
.footer h5 { font-family: var(--font-body); font-size: .74rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); margin-bottom: 1.2rem; }
.footer ul li { margin-bottom: .6rem; }
.footer ul a { color: var(--muted); font-size: .92rem; transition: color .3s, padding .3s; }
.footer ul a:hover { color: var(--gold-2); padding-left: 5px; }
.footer .contact-line { display: flex; gap: .7rem; align-items: center; color: var(--muted); font-size: .92rem; margin-bottom: .7rem; }
.footer .contact-line svg { width: 16px; height: 16px; color: var(--gold); flex: 0 0 auto; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; margin-top: 3rem; padding-top: 1.6rem; border-top: 1px solid var(--line-soft); font-size: .82rem; color: var(--muted-2); }
.footer-bottom a:hover { color: var(--gold-2); }

/* progress bar top */
.progress { position: fixed; top: 0; left: 0; height: 3px; background: linear-gradient(90deg, var(--gold), var(--gold-2)); z-index: 200; width: 0; }

/* ================= RESPONSIVE ================= */
@media (max-width: 980px){
  .grid-3, .pillars, .reviews { grid-template-columns: 1fr 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
  .masonry { columns: 2; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
}
@media (max-width: 860px){
  .nav-links { display: none; }
  .burger { display: block; }
  .split, .split.rev, .contact-grid { grid-template-columns: 1fr; }
  .split.rev .split-media { order: -1; }
  .prod-grid, .grid-2 { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; gap: 1.4rem; }
  .stat + .stat::before { display: none; }
  .prod-body p { max-height: 120px; opacity: 1; margin-top: .4rem; }
}
@media (max-width: 620px){
  .grid-3, .pillars, .reviews, .grid-4 { grid-template-columns: 1fr; }
  .masonry { columns: 1; }
  .footer-grid { grid-template-columns: 1fr; }
  .form .row { grid-template-columns: 1fr; }
  .hero-actions .btn { width: 100%; }
}

/* Su schermi stretti niente traslazione orizzontale nelle reveal:
   evita overflow orizzontale (i .reveal-x.right sotto la piega sforavano il viewport) */
@media (max-width: 980px){
  .reveal-x, .reveal-x.right { transform: translateY(38px); }
  .reveal-x.in { transform: none; }
}

@media (prefers-reduced-motion: reduce){
  * { animation: none !important; transition: none !important; }
  .reveal, .reveal-x, .reveal-scale, .split-word > span { opacity: 1 !important; transform: none !important; }
}
