/* =========================================================
   Sinfonie Imperiali APS — Foglio di stile
   Palette ispirata al press kit: oro su nero caldo
   ========================================================= */

:root {
  --bg:        #0d0b09;
  --bg-alt:    #14110d;
  --bg-band:   #1a1610;
  --gold:      #c8a24c;
  --gold-soft: #d8b66a;
  --gold-bright:#ecd29a;
  --text:      #ece8e0;
  --muted:     #b3aa9a;
  --line:      rgba(200,162,76,.22);
  --maxw:      1160px;
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans:  "Jost", "Segoe UI", system-ui, -apple-system, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.12; }

a { color: inherit; text-decoration: none; }

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

strong { color: var(--gold-bright); font-weight: 500; }
em { color: var(--gold-soft); font-style: italic; }

/* ===== HEADER ===== */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 22px 0;
  transition: padding .3s ease, background .3s ease, box-shadow .3s ease;
}
.site-header.scrolled {
  padding: 12px 0;
  background: rgba(13,11,9,.92);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; }

.brand { display: flex; align-items: center; gap: 12px; color: var(--gold); }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font-family: var(--serif); font-size: 1.35rem; font-weight: 600; letter-spacing: .5px; color: var(--gold-bright); }
.brand-sub { font-size: .62rem; letter-spacing: .42em; text-transform: uppercase; color: var(--muted); margin-top: 3px; }

.nav { display: flex; align-items: center; gap: 30px; }
.nav a { font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; color: var(--text); position: relative; padding: 4px 0; transition: color .25s; }
.nav a:not(.nav-cta)::after {
  content: ""; position: absolute; left: 0; bottom: -2px; width: 0; height: 1px;
  background: var(--gold); transition: width .3s ease;
}
.nav a:not(.nav-cta):hover { color: var(--gold-bright); }
.nav a:not(.nav-cta):hover::after { width: 100%; }
.nav-cta { border: 1px solid var(--gold); color: var(--gold-bright); padding: 8px 18px; border-radius: 2px; transition: background .25s, color .25s; }
.nav-cta:hover { background: var(--gold); color: #1a1408; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 6px; }
.nav-toggle span { width: 26px; height: 2px; background: var(--gold); transition: transform .3s, opacity .3s; }
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== HERO ===== */
.hero { position: relative; min-height: 100vh; display: flex; align-items: center; overflow: hidden; }
.hero-bg {
  position: absolute; inset: 0;
  background: #000 url("../images/hero.jpg") center/cover no-repeat;
  transform: scale(1.05);
  animation: heroZoom 18s ease-out forwards;
}
@keyframes heroZoom { to { transform: scale(1); } }
.hero-overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(to bottom, rgba(13,11,9,.55) 0%, rgba(13,11,9,.78) 60%, var(--bg) 100%),
    radial-gradient(120% 90% at 20% 30%, rgba(13,11,9,.35), rgba(13,11,9,.85));
}
.hero-content { position: relative; z-index: 2; max-width: 760px; padding-top: 60px; }
.hero-eyebrow { color: var(--gold-soft); letter-spacing: .28em; text-transform: uppercase; font-size: .78rem; margin-bottom: 22px; }
.hero-title { font-size: clamp(3.2rem, 9vw, 6.4rem); color: var(--gold-bright); letter-spacing: 1px; margin-bottom: 22px; text-shadow: 0 4px 40px rgba(0,0,0,.5); }
.hero-lead { font-size: clamp(1.05rem, 2.2vw, 1.4rem); color: var(--text); max-width: 620px; margin-bottom: 38px; font-weight: 300; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

.btn { display: inline-block; padding: 14px 30px; font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; border-radius: 2px; transition: all .3s ease; cursor: pointer; }
.btn-gold { background: var(--gold); color: #1a1408; font-weight: 500; }
.btn-gold:hover { background: var(--gold-bright); transform: translateY(-2px); box-shadow: 0 10px 30px rgba(200,162,76,.25); }
.btn-ghost { border: 1px solid rgba(236,210,154,.55); color: var(--gold-bright); }
.btn-ghost:hover { border-color: var(--gold-bright); background: rgba(200,162,76,.1); }

.hero-scroll { position: absolute; bottom: 34px; left: 50%; transform: translateX(-50%); z-index: 2; }
.hero-scroll span { display: block; width: 22px; height: 36px; border: 1px solid var(--gold-soft); border-radius: 12px; position: relative; }
.hero-scroll span::after { content: ""; position: absolute; top: 7px; left: 50%; transform: translateX(-50%); width: 3px; height: 7px; background: var(--gold-soft); border-radius: 2px; animation: scrollDot 1.6s infinite; }
@keyframes scrollDot { 0% { opacity: 0; transform: translate(-50%, 0); } 40% { opacity: 1; } 80% { opacity: 0; transform: translate(-50%, 12px); } 100% { opacity: 0; } }

/* ===== SECTIONS ===== */
.section { padding: 110px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { max-width: 720px; margin: 0 auto 60px; text-align: center; }
.kicker { color: var(--gold); letter-spacing: .26em; text-transform: uppercase; font-size: .76rem; margin-bottom: 16px; }
.section-title { font-size: clamp(2rem, 4.5vw, 3.1rem); color: var(--gold-bright); margin-bottom: 18px; }
.section-intro { color: var(--muted); font-size: 1.1rem; }
.section p { color: var(--muted); margin-bottom: 18px; }
.section p:last-child { margin-bottom: 0; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }

.media-frame { position: relative; border-radius: 4px; overflow: hidden; }
.media-frame::after { content: ""; position: absolute; inset: 0; border: 1px solid var(--line); border-radius: 4px; pointer-events: none; }
.media-frame img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s ease; }
.media-frame:hover img { transform: scale(1.04); }

.stats { display: flex; gap: 36px; margin-top: 40px; flex-wrap: wrap; }
.stat { display: flex; flex-direction: column; }
.stat-num { font-family: var(--serif); font-size: 2.4rem; color: var(--gold-bright); line-height: 1; }
.stat-label { font-size: .76rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-top: 8px; }

/* ===== CARDS ===== */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.card { background: linear-gradient(180deg, rgba(255,255,255,.025), rgba(255,255,255,0)); border: 1px solid var(--line); border-radius: 4px; padding: 40px 32px; transition: transform .35s ease, border-color .35s ease, box-shadow .35s ease; }
.card:hover { transform: translateY(-6px); border-color: rgba(200,162,76,.5); box-shadow: 0 18px 40px rgba(0,0,0,.35); }
.card-icon { font-size: 2.2rem; color: var(--gold); margin-bottom: 18px; line-height: 1; }
.card h3 { font-size: 1.5rem; color: var(--gold-bright); margin-bottom: 12px; }
.card p { color: var(--muted); margin: 0; }
.card-line { border-top: 3px solid var(--gold); }

/* ===== FEATURE / CINEMA ===== */
.feature { background: linear-gradient(180deg, var(--bg) 0%, var(--bg-alt) 100%); }
.grid-2-rev .media-frame { order: -1; }
.feature-list { list-style: none; margin-top: 26px; }
.feature-list li { color: var(--text); padding: 10px 0 10px 30px; position: relative; border-bottom: 1px solid var(--line); }
.feature-list li::before { content: "\266B"; position: absolute; left: 0; color: var(--gold); }

.video-wrap { margin-top: 90px; text-align: center; }
.video-title { font-size: 1.8rem; color: var(--gold-bright); margin-bottom: 28px; }
.video-frame { position: relative; max-width: 900px; margin: 0 auto; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; background: #000; box-shadow: 0 24px 60px rgba(0,0,0,.5); }
.video-frame video { width: 100%; display: block; aspect-ratio: 16/9; object-fit: cover; background: #000; }

/* ===== GALLERY ===== */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.gallery-item { position: relative; overflow: hidden; border-radius: 4px; cursor: pointer; aspect-ratio: 4/5; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease, filter .6s ease; filter: saturate(.95); }
.gallery-item::after { content: "\002B"; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 2.4rem; color: var(--gold-bright); background: rgba(13,11,9,.45); opacity: 0; transition: opacity .35s; }
.gallery-item:hover img { transform: scale(1.07); filter: saturate(1.1); }
.gallery-wide { grid-column: 1 / -1; aspect-ratio: 20 / 9; }
@media (max-width: 560px) { .gallery-wide { aspect-ratio: 16 / 9; } }
.gallery-item:hover::after { opacity: 1; }

/* ===== BAND ===== */
.band { background: var(--bg-band); padding: 80px 0; text-align: center; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.band-kicker { color: var(--gold); letter-spacing: .26em; text-transform: uppercase; font-size: .76rem; margin-bottom: 18px; }
.band-text { font-family: var(--serif); font-size: clamp(1.4rem, 3.2vw, 2.2rem); color: var(--text); max-width: 880px; margin: 0 auto; font-style: italic; line-height: 1.5; }

/* ===== CONTACT ===== */
.contact-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.contact-card { display: flex; flex-direction: column; gap: 8px; padding: 30px 26px; border: 1px solid var(--line); border-radius: 4px; transition: all .3s ease; background: rgba(255,255,255,.015); }
.contact-card:hover { border-color: var(--gold); transform: translateY(-4px); background: rgba(200,162,76,.06); }
.contact-label { font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); }
.contact-value { font-family: var(--serif); font-size: 1.25rem; color: var(--gold-bright); word-break: break-word; }

/* ===== FOOTER ===== */
.site-footer { background: #0a0806; padding-top: 64px; border-top: 1px solid var(--line); }
.footer-inner { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; padding-bottom: 48px; }
.footer-brand .brand-name { font-family: var(--serif); font-size: 1.4rem; color: var(--gold-bright); display: block; margin-bottom: 14px; }
.footer-brand p { color: var(--muted); font-size: .92rem; margin-bottom: 8px; }
.footer-small { font-size: .8rem !important; color: #7d756a !important; }
.footer-links { display: flex; flex-direction: column; gap: 12px; }
.footer-links a { color: var(--muted); font-size: .88rem; letter-spacing: .06em; transition: color .25s; }
.footer-links a:hover { color: var(--gold-bright); }
.footer-bottom { border-top: 1px solid var(--line); padding: 24px 0; }
.footer-bottom p { color: #6f685d; font-size: .8rem; text-align: center; }

/* ===== LIGHTBOX ===== */
.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(8,6,4,.94); display: none; align-items: center; justify-content: center; padding: 40px; }
.lightbox.open { display: flex; }
.lightbox img { max-width: 92vw; max-height: 88vh; border-radius: 4px; box-shadow: 0 30px 80px rgba(0,0,0,.6); }
.lightbox-close { position: absolute; top: 22px; right: 30px; background: none; border: 0; color: var(--gold-bright); font-size: 2.6rem; cursor: pointer; line-height: 1; }

/* ===== REVEAL ANIMATION ===== */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s ease, transform .8s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .nav {
    position: fixed; top: 0; right: 0; height: 100vh; width: min(78vw, 320px);
    flex-direction: column; align-items: flex-start; justify-content: center; gap: 26px;
    background: rgba(13,11,9,.98); backdrop-filter: blur(12px);
    padding: 0 40px; transform: translateX(100%); transition: transform .35s ease;
    border-left: 1px solid var(--line);
  }
  .nav.open { transform: translateX(0); }
  .nav a { font-size: 1rem; }
  .nav-toggle { display: flex; z-index: 110; }
  .grid-2 { grid-template-columns: 1fr; gap: 40px; }
  .grid-2-rev .media-frame { order: 0; }
  .cards { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr 1fr; }
  .section { padding: 80px 0; }
}

@media (max-width: 560px) {
  .gallery { grid-template-columns: 1fr 1fr; gap: 10px; }
  .contact-grid { grid-template-columns: 1fr; }
  .stats { gap: 24px; }
  .hero-actions { flex-direction: column; }
  .btn { text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}
