/*
Theme Name: Stefano Mongiusti
Theme URI: https://stefanomongiusti.it
Author: Custom Theme
Description: Tema dark minimal elegante per Stefano Mongiusti - Compositore e Pianista
Version: 1.0
License: GNU General Public License v2 or later
Text Domain: stefano-mongiusti
*/

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,600;1,300;1,400;1,600&family=Raleway:wght@200;300;400;500&display=swap');

:root {
  --bg:        #080808;
  --bg2:       #0f0f0f;
  --surface:   #151515;
  --border:    #242424;
  --border2:   #333;
  --text:      #ddd6cc;
  --muted:     #6a6258;
  --accent:    #c4a35a;
  --accent2:   #8b6f42;
  --white:     #f0ebe3;
  --red:       #c0392b;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Raleway', sans-serif;
  font-weight: 300;
  line-height: 1.75;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ── SPLASH ── */
#splash {
  position: fixed; inset: 0; z-index: 9999;
  background: var(--bg);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  transition: opacity 1s ease, visibility 1s ease;
}
#splash.hidden { opacity: 0; visibility: hidden; pointer-events: none; }

.splash-inner { text-align: center; animation: fadeUp 1.6s ease forwards; }

.splash-tag {
  font-family: 'Raleway', sans-serif; font-weight: 200;
  font-size: 0.62rem; letter-spacing: 0.5em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 2rem; opacity: 0.9;
}

.splash-name {
  font-family: 'Cormorant Garamond', serif; font-weight: 300;
  font-size: clamp(2.8rem, 8vw, 6.5rem); line-height: 1;
  color: var(--white); letter-spacing: 0.04em; margin-bottom: 0.2rem;
}
.splash-name em { font-style: italic; color: var(--accent); display: block; }

.splash-motto {
  font-family: 'Cormorant Garamond', serif; font-style: italic;
  font-size: clamp(1rem, 2.5vw, 1.4rem); color: var(--muted);
  margin-top: 1.2rem; letter-spacing: 0.05em;
}

.splash-line {
  width: 1px; height: 60px;
  background: linear-gradient(to bottom, transparent, var(--accent), transparent);
  margin: 2.5rem auto;
}

.splash-btn {
  display: inline-block; font-family: 'Raleway', sans-serif; font-weight: 200;
  font-size: 0.68rem; letter-spacing: 0.5em; text-transform: uppercase;
  color: var(--text); border: 1px solid var(--border2);
  padding: 1rem 3.5rem; cursor: pointer; background: transparent;
  position: relative; overflow: hidden;
  transition: color 0.5s ease, border-color 0.5s ease;
}
.splash-btn::before {
  content: ''; position: absolute; inset: 0;
  background: var(--accent); transform: scaleX(0);
  transform-origin: left; transition: transform 0.5s ease; z-index: -1;
}
.splash-btn:hover { color: var(--bg); border-color: var(--accent); }
.splash-btn:hover::before { transform: scaleX(1); }

.splash-keys {
  position: absolute; bottom: 0; left: 0; right: 0;
  height: 130px; display: flex; align-items: flex-end;
  justify-content: center; gap: 2px; opacity: 0.04; pointer-events: none;
}
.key-w { width: 30px; height: 110px; background: var(--white); border-radius: 0 0 4px 4px; }
.key-b { width: 20px; height: 70px; background: #111; border: 1px solid #2a2a2a; border-radius: 0 0 3px 3px; margin: 0 -10px; z-index: 1; }

/* ── NAV ── */
.site-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 1.6rem 5vw; display: flex; align-items: center; justify-content: space-between;
  background: linear-gradient(to bottom, rgba(8,8,8,0.97) 0%, transparent 100%);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, background 0.3s;
}
.site-nav.scrolled { border-bottom-color: var(--border); background: rgba(8,8,8,0.97); }

.nav-logo {
  font-family: 'Cormorant Garamond', serif; font-weight: 300;
  font-size: 1.25rem; letter-spacing: 0.08em; color: var(--white);
}
.nav-logo em { font-style: italic; color: var(--accent); }

.nav-links { list-style: none; display: flex; gap: 2.5rem; }
.nav-links a {
  font-weight: 200; font-size: 0.68rem; letter-spacing: 0.3em;
  text-transform: uppercase; color: var(--muted);
  transition: color 0.3s;
}
.nav-links a:hover, .nav-links a.active { color: var(--accent); }

.nav-hamburger { display: none; background: none; border: none; cursor: pointer; padding: 4px; }
.nav-hamburger span { display: block; width: 22px; height: 1px; background: var(--text); margin: 5px 0; transition: all 0.3s; }

/* ── HERO ── */
.hero {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
  background: var(--bg);
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse 55% 60% at 65% 45%, rgba(196,163,90,0.045) 0%, transparent 60%);
}

.hero-photo-wrap {
  position: absolute; inset: 0; z-index: 0;
}
.hero-photo {
  width: 100%; height: 100%; object-fit: cover; object-position: center top;
  filter: grayscale(100%) brightness(0.35);
}
.hero-photo-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(8,8,8,0.3) 0%, rgba(8,8,8,0.7) 60%, rgba(8,8,8,0.97) 100%);
}

.hero-content { text-align: center; position: relative; z-index: 1; padding: 2rem; }

.hero-eyebrow {
  font-weight: 200; font-size: 0.65rem; letter-spacing: 0.5em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 2rem;
}
.hero-name {
  font-family: 'Cormorant Garamond', serif; font-weight: 300;
  font-size: clamp(3rem, 8vw, 6rem); line-height: 1; color: var(--white);
  letter-spacing: 0.04em; margin-bottom: 0.2rem;
}
.hero-name em { font-style: italic; color: var(--accent); }

.hero-tagline {
  font-family: 'Cormorant Garamond', serif; font-style: italic;
  font-size: clamp(1.1rem, 2.5vw, 1.5rem); color: var(--muted);
  margin-top: 1.2rem; letter-spacing: 0.06em;
}
.hero-divider {
  width: 1px; height: 70px;
  background: linear-gradient(to bottom, var(--accent), transparent);
  margin: 3rem auto 0;
}

/* ── SEZIONI ── */
.page-section { padding: 7rem 5vw; max-width: 1100px; margin: 0 auto; }
.section-sep { border: none; border-top: 1px solid var(--border); margin: 0 5vw; }

.section-eyebrow {
  font-weight: 200; font-size: 0.62rem; letter-spacing: 0.5em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 0.8rem;
}
.section-title {
  font-family: 'Cormorant Garamond', serif; font-weight: 300;
  font-size: clamp(2rem, 4vw, 2.8rem); color: var(--white);
  line-height: 1.15; margin-bottom: 3rem;
}
.section-title em { font-style: italic; color: var(--accent); }

/* ── BLOG ── */
.blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 2px; }
.blog-card {
  background: var(--surface); padding: 2.5rem;
  border: 1px solid var(--border); transition: border-color 0.3s;
}
.blog-card:hover { border-color: var(--accent2); }
.blog-card-meta {
  font-size: 0.62rem; letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 1rem;
}
.blog-card-title {
  font-family: 'Cormorant Garamond', serif; font-size: 1.4rem;
  color: var(--white); line-height: 1.3; margin-bottom: 1rem;
}
.blog-card-excerpt { font-size: 0.85rem; color: var(--muted); line-height: 1.7; }
.blog-card-link {
  display: inline-block; margin-top: 1.5rem; font-size: 0.65rem;
  letter-spacing: 0.35em; text-transform: uppercase; color: var(--accent);
  border-bottom: 1px solid transparent; transition: border-color 0.3s;
}
.blog-card-link:hover { border-bottom-color: var(--accent); }

/* ── MUSICA ── */
.music-player {
  background: var(--surface); border: 1px solid var(--border);
  padding: 2.5rem; margin-bottom: 3rem;
}
.player-title {
  font-family: 'Cormorant Garamond', serif; font-size: 1.6rem;
  color: var(--white); margin-bottom: 0.4rem;
}
.player-meta { font-size: 0.72rem; color: var(--muted); letter-spacing: 0.1em; margin-bottom: 1.5rem; }
.player-embed { width: 100%; border: none; border-radius: 0; }

.platform-links { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2rem; }
.platform-btn {
  display: inline-flex; align-items: center; gap: 0.6rem;
  padding: 0.75rem 1.5rem; border: 1px solid var(--border);
  font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--muted); transition: all 0.3s; background: transparent;
}
.platform-btn:hover { border-color: var(--accent); color: var(--accent); }
.platform-btn svg { width: 16px; height: 16px; fill: currentColor; }

/* ── PARTITURE ── */
.scores-intro { font-size: 0.9rem; color: var(--muted); max-width: 580px; margin-bottom: 3rem; line-height: 1.8; }
.scores-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 2px; }

.score-card {
  background: var(--surface); border: 1px solid var(--border);
  padding: 2rem; display: flex; flex-direction: column; gap: 1rem;
  transition: border-color 0.3s;
}
.score-card:hover { border-color: var(--border2); }
.score-card-title {
  font-family: 'Cormorant Garamond', serif; font-size: 1.2rem; color: var(--white);
}
.score-card-info { font-size: 0.75rem; color: var(--muted); }
.score-card-actions { display: flex; gap: 0.75rem; margin-top: auto; flex-wrap: wrap; }

.btn-download {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.65rem 1.4rem; background: transparent;
  border: 1px solid var(--accent2); color: var(--accent);
  font-size: 0.65rem; letter-spacing: 0.3em; text-transform: uppercase;
  cursor: pointer; transition: all 0.3s;
}
.btn-download:hover { background: var(--accent); color: var(--bg); border-color: var(--accent); }
.btn-download svg { width: 14px; height: 14px; fill: currentColor; }

.btn-donate {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.65rem 1.2rem; background: transparent;
  border: 1px solid var(--border); color: var(--muted);
  font-size: 0.65rem; letter-spacing: 0.25em; text-transform: uppercase;
  cursor: pointer; transition: all 0.3s; text-decoration: none;
}
.btn-donate:hover { border-color: #f5a623; color: #f5a623; }

/* ── CONTATTI ── */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; }
@media (max-width: 768px) { .contact-grid { grid-template-columns: 1fr; gap: 3rem; } }

.contact-form { display: flex; flex-direction: column; gap: 1.2rem; }
.form-group { display: flex; flex-direction: column; gap: 0.4rem; }
.form-label { font-size: 0.62rem; letter-spacing: 0.35em; text-transform: uppercase; color: var(--muted); }
.form-input, .form-textarea {
  background: var(--surface); border: 1px solid var(--border);
  color: var(--text); font-family: 'Raleway', sans-serif; font-weight: 300;
  font-size: 0.9rem; padding: 0.9rem 1.2rem;
  outline: none; transition: border-color 0.3s; resize: vertical;
}
.form-input:focus, .form-textarea:focus { border-color: var(--accent2); }
.form-textarea { min-height: 140px; }

.btn-submit {
  align-self: flex-start; padding: 1rem 3rem; background: transparent;
  border: 1px solid var(--border2); color: var(--text);
  font-family: 'Raleway', sans-serif; font-weight: 200;
  font-size: 0.68rem; letter-spacing: 0.4em; text-transform: uppercase;
  cursor: pointer; position: relative; overflow: hidden; transition: color 0.4s, border-color 0.4s;
}
.btn-submit::before {
  content: ''; position: absolute; inset: 0; background: var(--accent);
  transform: scaleX(0); transform-origin: left; transition: transform 0.4s; z-index: -1;
}
.btn-submit:hover { color: var(--bg); border-color: var(--accent); }
.btn-submit:hover::before { transform: scaleX(1); }

.social-links { display: flex; flex-direction: column; gap: 1.2rem; margin-top: 0.5rem; }
.social-link {
  display: flex; align-items: center; gap: 1.2rem;
  color: var(--muted); font-size: 0.75rem; letter-spacing: 0.15em;
  border-bottom: 1px solid var(--border); padding-bottom: 1.2rem;
  transition: color 0.3s, border-color 0.3s;
}
.social-link:hover { color: var(--accent); border-color: var(--accent2); }
.social-link svg { width: 20px; height: 20px; fill: currentColor; flex-shrink: 0; }
.social-link-name { font-weight: 400; font-size: 0.85rem; color: var(--white); display: block; }

/* ── FOOTER ── */
.site-footer {
  border-top: 1px solid var(--border); padding: 3rem 5vw;
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem;
}
.footer-copy {
  font-size: 0.68rem; color: var(--muted); letter-spacing: 0.1em; line-height: 1.7;
}
.footer-logo {
  font-family: 'Cormorant Garamond', serif; font-size: 1.1rem;
  color: var(--muted); letter-spacing: 0.1em;
}
.footer-logo em { font-style: italic; color: var(--accent2); }

/* ── ANIMAZIONI ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.8s ease, transform 0.8s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }



/* ── CENTRARE BOX E TESTI ── */
.score-card {
  text-align: center;
}

.score-card-actions {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  gap: 0.8rem !important;
  margin-top: 1.5rem !important;
}

.score-card-actions a,
.score-card > a[class*="btn"] {
  margin: 0 auto !important;
}

.score-card > div[style*="margin-top:1rem"] {
  display: flex !important;
  justify-content: center !important;
  flex-wrap: wrap !important;
  gap: 1rem !important;
}


/* ── MOBILE ── */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-hamburger { display: block; }
  .nav-links.open {
    display: flex; flex-direction: column; position: fixed;
    top: 0; left: 0; right: 0; bottom: 0; background: var(--bg);
    align-items: center; justify-content: center; gap: 2.5rem; z-index: 99;
  }
  .nav-links.open a { font-size: 1.2rem; }
  .page-section { padding: 5rem 6vw; }
  .site-footer { flex-direction: column; text-align: center; }
}
