/* ══════════════════════════════════════════════════════════════════════════════
   NODDULE — Sito vetrina · Complesso Nuragico di Noddule (Nuoro)
   Brand allineato alla PWA: nero #08070A · oro #D4A017 · Inter · glassmorphism
   ══════════════════════════════════════════════════════════════════════════════ */

@import url('https://fonts.bunny.net/css2?family=inter:300,400,500,600,700,800,900&family=fraunces:opsz,wght@9..144,400;9..144,600&display=swap');

:root {
  --gold:        #D4A017;
  --gold-soft:   #e8c14f;
  --gold-dim:    rgba(212,160,23,.14);
  --gold-border: rgba(212,160,23,.30);

  --bg:          #08070A;
  --bg2:         #0d0c10;
  --bg3:         #121016;
  --surface:     rgba(255,255,255,.045);
  --surface2:    rgba(255,255,255,.07);
  --border:      rgba(255,255,255,.08);
  --border2:     rgba(255,255,255,.14);

  --text:        #f0e8d8;
  --text-muted:  rgba(240,232,216,.62);
  --text-dim:    rgba(240,232,216,.38);

  --maxw: 1180px;
  --radius: 16px;
  --radius-lg: 24px;
  --shadow: 0 24px 60px rgba(0,0,0,.55);
  --ease: cubic-bezier(.22,.61,.36,1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img, svg, video { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }
::selection { background: var(--gold); color: #1a1206; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.serif { font-family: 'Fraunces', Georgia, serif; font-weight: 600; }
.gold { color: var(--gold); }

/* ── Reveal on scroll ─────────────────────────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; }
.reveal.d2 { transition-delay: .16s; }
.reveal.d3 { transition-delay: .24s; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity:1; transform:none; transition:none; } html { scroll-behavior:auto; } }

/* ══ NAVBAR ════════════════════════════════════════════════════════════════════ */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  transition: background .35s, border-color .35s, backdrop-filter .35s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(8,7,10,.82);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom-color: var(--border);
}
.nav-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 14px 24px;
  display: flex; align-items: center; gap: 22px;
}
.brand { display: flex; align-items: center; gap: 11px; }
.brand img { width: 42px; height: 42px; object-fit: contain; }
.brand-name { font-weight: 800; letter-spacing: .14em; font-size: .95rem; text-transform: uppercase; }
.brand-name b { color: var(--gold); font-weight: 800; }
.nav-links { margin-left: auto; display: flex; align-items: center; gap: 30px; }
.nav-links a { font-size: .85rem; color: var(--text-muted); font-weight: 500; transition: color .2s; letter-spacing: .01em; }
.nav-links a:hover { color: var(--text); }
.nav-cta {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--gold); color: #1a1206 !important; font-weight: 700; font-size: .82rem;
  padding: 10px 18px; border-radius: 100px; transition: transform .2s, box-shadow .2s;
  box-shadow: 0 6px 20px rgba(212,160,23,.25);
}
.nav-cta:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(212,160,23,.4); }
.lang-btn {
  background: var(--surface2); border: 1px solid var(--border2); color: var(--text);
  border-radius: 100px; padding: 7px 13px; font-size: .76rem; font-weight: 700; letter-spacing: .06em;
  transition: background .2s;
}
.lang-btn:hover { background: var(--surface); }
.nav-burger { display: none; background: none; border: none; color: var(--text); padding: 6px; }
.nav-burger svg { width: 26px; height: 26px; }

/* ══ HERO ══════════════════════════════════════════════════════════════════════ */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; overflow: hidden; }
.hero-slide { position: absolute; inset: 0; background: center/cover no-repeat;
  opacity: 0; transition: opacity 1.6s ease; will-change: opacity, transform; }
.hero-slide.is-active { opacity: 1; animation: heroZoom 8s ease-out forwards; }
@keyframes heroZoom { from { transform: scale(1.03); } to { transform: scale(1.12); } }
@media (prefers-reduced-motion: reduce) { .hero-slide.is-active { animation: none; } }
.hero-veil {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(8,7,10,.55) 0%, rgba(8,7,10,.2) 35%, rgba(8,7,10,.72) 80%, var(--bg) 100%),
    radial-gradient(120% 90% at 15% 30%, rgba(8,7,10,.55), transparent 60%);
}
.hero-grain { position: absolute; inset: 0; opacity: .5; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.5'/%3E%3C/svg%3E"); }
.hero-inner { position: relative; z-index: 2; padding-top: 90px; padding-bottom: 60px; }
.eyebrow { display: inline-flex; align-items: center; gap: 11px; margin-bottom: 22px; }
.eyebrow .line { width: 38px; height: 1px; background: var(--gold); }
.eyebrow span { font-size: .76rem; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: var(--gold-soft); }
.hero h1 {
  font-family: 'Fraunces', Georgia, serif; font-weight: 600;
  font-size: clamp(3rem, 11vw, 7.5rem); line-height: .94; letter-spacing: -.02em;
  margin-bottom: 22px;
}
.hero h1 .sm { display: block; font-size: clamp(1rem,3.4vw,1.5rem); font-weight: 700; letter-spacing: .04em;
  font-family: 'Inter', sans-serif; color: var(--text-muted); text-transform: uppercase; margin-bottom: 6px; }
.hero p.lead { font-size: clamp(1.02rem, 2.3vw, 1.35rem); color: var(--text-muted); max-width: 560px; margin-bottom: 38px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.btn {
  display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: .95rem;
  padding: 15px 28px; border-radius: 100px; transition: transform .2s, box-shadow .2s, background .2s, border-color .2s;
  border: 1px solid transparent;
}
.btn svg { width: 19px; height: 19px; }
.btn-gold { background: var(--gold); color: #1a1206; box-shadow: 0 10px 30px rgba(212,160,23,.3); }
.btn-gold:hover { transform: translateY(-3px); box-shadow: 0 16px 40px rgba(212,160,23,.45); }
.btn-ghost { background: rgba(255,255,255,.06); color: var(--text); border-color: var(--border2); backdrop-filter: blur(8px); }
.btn-ghost:hover { background: rgba(255,255,255,.12); transform: translateY(-3px); }
.scroll-hint { position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%); z-index: 2;
  font-size: .68rem; letter-spacing: .18em; text-transform: uppercase; color: var(--text-dim);
  display: flex; flex-direction: column; align-items: center; gap: 8px; }
.scroll-hint .dot { width: 4px; height: 28px; border-radius: 4px; background: linear-gradient(var(--gold), transparent); animation: sd 1.8s ease-in-out infinite; }
@keyframes sd { 0%,100%{opacity:.3; transform:translateY(0);} 50%{opacity:1; transform:translateY(5px);} }

/* ══ SECTION GENERIC ═══════════════════════════════════════════════════════════ */
section.block { padding: clamp(72px, 11vw, 130px) 0; position: relative; }
.sec-eyebrow { font-size: .76rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); margin-bottom: 16px; display: inline-flex; align-items:center; gap: 10px; }
.sec-eyebrow::before { content:''; width: 26px; height: 1px; background: var(--gold); display:inline-block; }
.sec-title { font-family: 'Fraunces', serif; font-weight: 600; font-size: clamp(1.9rem, 4.6vw, 3.2rem); line-height: 1.08; letter-spacing: -.02em; margin-bottom: 22px; }
.sec-intro { font-size: 1.08rem; color: var(--text-muted); max-width: 640px; }

/* ── Progetto ─────────────────────────────────────────────────────────────────── */
.about { background: linear-gradient(180deg, var(--bg) 0%, var(--bg2) 100%); }
.about-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 64px; align-items: start; }
.about-copy p + p { margin-top: 18px; }
.about-copy p { color: var(--text-muted); font-size: 1.04rem; }
.about-media { position: relative; }
.about-media img { width: 100%; border-radius: var(--radius-lg); aspect-ratio: 4/5; object-fit: cover; box-shadow: var(--shadow); }
.about-media .tag { position: absolute; left: -18px; bottom: 28px; background: var(--gold); color:#1a1206; font-weight: 800;
  padding: 14px 20px; border-radius: 14px; box-shadow: 0 14px 30px rgba(212,160,23,.35); }
.about-media .tag small { display:block; font-weight:600; font-size:.7rem; letter-spacing:.06em; opacity:.75; text-transform:uppercase; }

.stats { display: grid; grid-template-columns: repeat(4,1fr); gap: 18px; margin-top: 56px; }
.stat { text-align: center; padding: 26px 14px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.stat .n { font-family:'Fraunces',serif; font-size: clamp(1.8rem,4vw,2.6rem); color: var(--gold); line-height: 1; }
.stat .l { font-size: .76rem; letter-spacing: .08em; text-transform: uppercase; color: var(--text-muted); margin-top: 9px; }

/* ── Esperienze (cards) ───────────────────────────────────────────────────────── */
.exp { background: var(--bg); }
.exp-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; margin-top: 54px; }
.exp-card {
  position: relative; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 30px 26px 28px;
  background: linear-gradient(180deg, var(--surface), rgba(255,255,255,.015));
  overflow: hidden; transition: transform .35s var(--ease), border-color .35s, background .35s;
}
.exp-card::after { content:''; position:absolute; inset:0 0 auto 0; height:1px; background: linear-gradient(90deg,transparent,var(--gold-border),transparent); opacity:0; transition:opacity .35s; }
.exp-card:hover { transform: translateY(-6px); border-color: var(--gold-border); background: linear-gradient(180deg, var(--gold-dim), rgba(255,255,255,.02)); }
.exp-card:hover::after { opacity: 1; }
.exp-ico { width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 20px;
  background: var(--gold-dim); border: 1px solid var(--gold-border); color: var(--gold); }
.exp-ico svg { width: 26px; height: 26px; }
.exp-card h3 { font-size: 1.18rem; font-weight: 700; margin-bottom: 9px; }
.exp-card p { font-size: .92rem; color: var(--text-muted); }

/* ── Gallery ──────────────────────────────────────────────────────────────────── */
.gallery { background: linear-gradient(180deg, var(--bg2), var(--bg)); }
.gal-grid { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 200px; gap: 14px; margin-top: 50px; }
.gal-item { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--bg3); }
.gal-item img { width:100%; height:100%; object-fit: cover; transition: transform .7s var(--ease); }
.gal-item:hover img { transform: scale(1.08); }
.gal-item .cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 18px 14px; font-weight: 600; font-size: .9rem;
  background: linear-gradient(transparent, rgba(8,7,10,.85)); }
.gal-item.big { grid-column: span 2; grid-row: span 2; }
.gal-item.wide { grid-column: span 2; }

/* ── Showcase: l'app dal vivo (device mockup) ─────────────────────────────────── */
.showcase { background: linear-gradient(180deg, var(--bg) 0%, var(--bg2) 55%, var(--bg) 100%); overflow: hidden; }
.showcase-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.showcase-copy .sec-intro { margin-bottom: 26px; }
.showcase-list { list-style: none; margin: 0 0 30px; display: grid; gap: 13px; }
.showcase-list li { display: flex; align-items: center; gap: 13px; color: var(--text-muted); font-size: .98rem; }
.showcase-list .dot { width: 26px; height: 26px; border-radius: 8px; flex-shrink: 0; display: grid; place-items: center;
  background: var(--gold-dim); border: 1px solid var(--gold-border); color: var(--gold); }
.showcase-list .dot svg { width: 14px; height: 14px; }

.showcase-stage { display: flex; justify-content: center; align-items: center; position: relative; min-height: 600px; }
.device { position: relative; width: clamp(248px, 30vw, 310px); }
.device-glow { position: absolute; inset: -16% -10%; z-index: 0;
  background: radial-gradient(50% 42% at 50% 46%, rgba(212,160,23,.32), transparent 70%);
  filter: blur(14px); }
.device-frame {
  position: relative; z-index: 1; aspect-ratio: 360/740; border-radius: 46px; padding: 11px;
  background: linear-gradient(150deg, #2a2a30 0%, #0c0c0f 38%, #050506 62%, #232328 100%);
  box-shadow: 0 2px 2px rgba(255,255,255,.18) inset, 0 -2px 3px rgba(0,0,0,.6) inset,
              0 40px 80px rgba(0,0,0,.6), 0 12px 30px rgba(0,0,0,.5);
}
.device-frame::before { /* tasti laterali */
  content: ''; position: absolute; right: -3px; top: 26%; width: 3px; height: 78px;
  border-radius: 0 3px 3px 0; background: linear-gradient(#1a1a1f, #0a0a0c);
  box-shadow: 0 110px 0 -22px #141418, 0 158px 0 -22px #141418;
}
.device-frame::after { content: ''; position: absolute; left: -3px; top: 32%; width: 3px; height: 50px;
  border-radius: 3px 0 0 3px; background: linear-gradient(#1a1a1f, #0a0a0c); }
.device-screen { position: relative; width: 100%; height: 100%; border-radius: 36px; overflow: hidden; background: #08070A; }
.device-screen .screen { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transform: scale(1.04); transition: opacity .7s var(--ease), transform 3s ease-out; }
.device-screen .screen.active { opacity: 1; transform: scale(1); }
.device-island { position: absolute; z-index: 4; top: 20px; left: 50%; transform: translateX(-50%);
  width: 78px; height: 21px; border-radius: 12px; background: #050506;
  box-shadow: 0 0 0 1px rgba(255,255,255,.04); }
.device-island::after { content: ''; position: absolute; right: 13px; top: 50%; transform: translateY(-50%);
  width: 7px; height: 7px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #2b3a4a, #070708); }
.device-glare { position: absolute; inset: 0; z-index: 3; pointer-events: none; border-radius: 36px;
  background: linear-gradient(125deg, rgba(255,255,255,.16) 0%, rgba(255,255,255,0) 22%, rgba(255,255,255,0) 78%, rgba(255,255,255,.06) 100%); }
.tap { position: absolute; z-index: 5; width: 46px; height: 46px; border-radius: 50%; margin: -23px 0 0 -23px;
  border: 2px solid rgba(255,255,255,.9); opacity: 0; pointer-events: none; }
.tap.go { animation: tapfx .7s ease-out; }
@keyframes tapfx { 0%{opacity:.9; transform:scale(.3);} 70%{opacity:.5;} 100%{opacity:0; transform:scale(1.25);} }

.device-caption { position: absolute; z-index: 2; left: 50%; bottom: -16px; transform: translateX(-50%);
  white-space: nowrap; background: rgba(13,12,16,.86); border: 1px solid var(--gold-border);
  backdrop-filter: blur(10px); color: var(--text); font-size: .82rem; font-weight: 600;
  padding: 9px 18px; border-radius: 100px; box-shadow: 0 10px 24px rgba(0,0,0,.5); }

.chip { position: absolute; z-index: 2; display: inline-flex; align-items: center; gap: 7px;
  background: rgba(13,12,16,.8); border: 1px solid var(--border2); backdrop-filter: blur(10px);
  color: var(--text); font-size: .76rem; font-weight: 700; letter-spacing: .02em;
  padding: 8px 13px; border-radius: 100px; box-shadow: 0 12px 26px rgba(0,0,0,.45);
  animation: chipFloat 5s ease-in-out infinite; }
.chip::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 8px var(--gold); }
.chip-1 { top: 8%;  left: -6%;  animation-delay: 0s; }
.chip-2 { top: 30%; right: -8%; animation-delay: .8s; }
.chip-3 { bottom: 26%; left: -9%; animation-delay: 1.6s; }
.chip-4 { bottom: 6%; right: -5%; animation-delay: 2.4s; }
@keyframes chipFloat { 0%,100%{ transform: translateY(0); } 50%{ transform: translateY(-9px); } }
@media (prefers-reduced-motion: reduce) { .chip, .device-screen .screen { animation: none; transition: opacity .3s; } }

/* ── Finanziamento / MetaDest ─────────────────────────────────────────────────── */
.fund { background: var(--bg); }
.fund-card {
  border: 1px solid var(--gold-border); border-radius: var(--radius-lg); padding: clamp(34px,5vw,56px);
  background: radial-gradient(120% 140% at 100% 0%, var(--gold-dim), transparent 55%), var(--surface);
}
.fund-card .sec-eyebrow { color: var(--gold-soft); }
.fund-card h3 { font-family:'Fraunces',serif; font-weight:600; font-size: clamp(1.5rem,3.2vw,2.1rem); margin-bottom: 16px; }
.fund-card p { color: var(--text-muted); max-width: 720px; }
.fund-banner { background: #fff; border-radius: 14px; padding: 20px 26px; margin-top: 34px; max-width: 640px;
  box-shadow: 0 12px 30px rgba(0,0,0,.3); }
.fund-banner img { width: 100%; height: auto; }
.fund-logos { display: flex; flex-wrap: wrap; align-items: center; gap: 22px 32px; margin-top: 30px; padding-top: 30px; border-top: 1px solid var(--border); }
.fund-logo { display: flex; align-items: center; gap: 14px; min-height: 56px; }
.fund-logo img, .fund-logo svg { height: 50px; width: auto; }
.fund-logo.plate { background: #fff; border-radius: 12px; padding: 12px 18px; }
.fund-logo.plate img { height: 46px; }
.fund-logo .txt { font-size: .78rem; line-height: 1.3; color: var(--text-muted); }
.fund-logo .txt b { display:block; color: var(--text); font-size: .9rem; font-weight: 700; }

/* ── CTA finale ───────────────────────────────────────────────────────────────── */
.cta { position: relative; padding: clamp(80px,12vw,140px) 0; text-align: center; overflow: hidden; }
.cta-bg { position:absolute; inset:0; background: center/cover no-repeat; opacity:.22; }
.cta::before { content:''; position:absolute; inset:0; background: radial-gradient(80% 120% at 50% 0%, var(--gold-dim), transparent 60%), linear-gradient(var(--bg2), var(--bg)); }
.cta-inner { position: relative; z-index: 2; }
.cta h2 { font-family:'Fraunces',serif; font-weight:600; font-size: clamp(2rem,5.5vw,3.6rem); line-height:1.05; margin-bottom: 18px; }
.cta p { color: var(--text-muted); font-size: 1.1rem; max-width: 520px; margin: 0 auto 36px; }

/* ── Footer ───────────────────────────────────────────────────────────────────── */
footer.site-footer { background: var(--bg); border-top: 1px solid var(--border); padding: 64px 0 30px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 44px; }
.foot-brand .brand { margin-bottom: 16px; }
.foot-brand p { color: var(--text-muted); font-size: .92rem; max-width: 320px; }
.foot-col h4 { font-size: .76rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); margin-bottom: 16px; }
.foot-col a, .foot-col p { display: block; color: var(--text-muted); font-size: .92rem; margin-bottom: 11px; transition: color .2s; }
.foot-col a:hover { color: var(--text); }
.foot-bottom { display:flex; flex-wrap:wrap; gap: 14px; justify-content: space-between; align-items:center;
  margin-top: 50px; padding-top: 26px; border-top: 1px solid var(--border); color: var(--text-dim); font-size: .82rem; }
.foot-bottom .by b { color: var(--text-muted); }

/* ══ RESPONSIVE ════════════════════════════════════════════════════════════════ */
@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .about-media { order: -1; }
  .stats { grid-template-columns: repeat(2,1fr); }
  .exp-grid { grid-template-columns: repeat(2,1fr); }
  .showcase-grid { grid-template-columns: 1fr; gap: 30px; }
  .showcase-stage { min-height: 540px; order: -1; }
  .gal-grid { grid-template-columns: repeat(2,1fr); grid-auto-rows: 170px; }
  .gal-item.big { grid-column: span 2; grid-row: span 1; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-brand { grid-column: span 2; }
}
@media (max-width: 640px) {
  .nav-links { position: fixed; inset: 64px 0 auto 0; flex-direction: column; align-items: stretch; gap: 0;
    background: rgba(13,12,16,.97); backdrop-filter: blur(16px); border-bottom: 1px solid var(--border);
    padding: 10px 24px 22px; transform: translateY(-130%); transition: transform .35s var(--ease); }
  .nav-links.open { transform: none; }
  .nav-links a { padding: 14px 0; border-bottom: 1px solid var(--border); }
  .nav-links .nav-cta { justify-content: center; margin-top: 14px; border-bottom: none; }
  .nav-burger { display: block; margin-left: auto; }
  .lang-btn { margin-left: 0; }
  .nav-inner { gap: 12px; }
  .exp-grid, .gal-grid, .stats { grid-template-columns: 1fr; }
  .device { width: 240px; }
  .chip-1, .chip-3 { left: -2%; }
  .chip-2, .chip-4 { right: -2%; }
  .gal-item.big, .gal-item.wide { grid-column: span 1; }
  .gal-grid { grid-auto-rows: 200px; }
  .foot-grid { grid-template-columns: 1fr; }
  .foot-brand { grid-column: span 1; }
}
