:root {
  --cream: #F1E9DC;
  --cream-deep: #E8DCC8;
  --ink: #2B221C;
  --ink-soft: #4A3F35;
  --bronze: #A87C4F;
  --bronze-bright: #D4A373;
  --bronze-dark: #8A6238;
  --line: rgba(43, 34, 28, 0.14);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  background: var(--cream);
  color: var(--ink);
  font-family: 'Jost', sans-serif;
  font-weight: 300;
  overflow-x: hidden;
}

h1, h2, h3, .serif {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 500;
  letter-spacing: 0.01em;
}

a { color: inherit; text-decoration: none; }
.container { max-width: 1160px; margin: 0 auto; padding: 0 48px; }

/* ----- KEYBOARD MOTIF ----- */
.keyline { display: flex; width: 100%; height: 6px; }
.keyline span { flex: 1; border-right: 1px solid rgba(43,34,28,0.5); }
.keyline span:last-child { border-right: none; }
.keyline.dark span { background: var(--ink); border-right-color: rgba(241,233,220,0.4); }

/* ----- NAV ----- */
nav {
  position: fixed;
  top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 28px 48px; transition: background 0.4s ease, padding 0.4s ease;
  background: rgba(43, 34, 28, 0.95);
}
nav.scrolled {
  backdrop-filter: blur(8px);
  padding: 16px 48px; border-bottom: 1px solid rgba(212, 163, 115, 0.2);
}

.nav-name { 
  font-family: 'Cormorant Garamond', serif; 
  font-size: 26px; 
  font-weight: 700;
  letter-spacing: 0.05em; 
  color: var(--bronze-bright);
}

.nav-right { display: flex; align-items: center; gap: 32px; }
.nav-links { display: flex; gap: 32px; font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 500; }
.nav-links a { position: relative; color: var(--cream); opacity: 0.9; transition: opacity 0.3s, color 0.3s; }
.nav-links a:hover { opacity: 1; color: var(--bronze-bright); }

/* ----- HERO ----- */
.hero {
  min-height: 80vh; display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; position: relative; padding: 140px 48px 80px;
  background-image: url('assets/hero-piano.jpeg'); background-size: cover;
  background-position: center 30%; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(43,34,28,0.65) 0%, rgba(43,34,28,0.3) 35%, rgba(43,34,28,0.8) 100%);
}
.hero-eyebrow { 
  position: relative; z-index: 1; 
  font-size: clamp(16px, 1.8vw, 22px); font-weight: 500; letter-spacing: 0.22em; 
  text-transform: uppercase; color: var(--bronze-bright); margin-bottom: 24px; 
}
.hero h1 { position: relative; z-index: 1; color: var(--cream); font-size: clamp(56px, 9vw, 124px); line-height: 0.96; }
.hero-sub { position: relative; z-index: 1; margin-top: 28px; font-size: clamp(16px, 2vw, 20px); font-style: italic; font-family: 'Cormorant Garamond', serif; color: rgba(241,233,220,0.9); max-width: 560px; }

/* ----- PATHS GRID ----- */
.paths { padding: 100px 0 140px; }
.paths-head { text-align: center; margin-bottom: 60px; }
.paths-head .eyebrow { font-size: 13px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--bronze-dark); margin-bottom: 18px; }
.paths-head h2 { font-size: clamp(32px, 4vw, 46px); }
.path-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.path-card { padding: 56px 40px; border-right: 1px solid var(--line); position: relative; cursor: pointer; transition: background 0.4s; }
.path-card:last-child { border-right: none; }
.path-card:hover { background: var(--cream-deep); }
.path-num { font-family: 'Cormorant Garamond', serif; font-style: italic; font-size: 15px; color: var(--bronze); margin-bottom: 32px; display: block; }
.path-card h3 { font-size: 30px; margin-bottom: 18px; }
.path-card p { font-size: 14.5px; line-height: 1.75; color: var(--ink-soft); margin-bottom: 28px; }
.path-more { font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--bronze-dark); font-weight: 500; }

/* ----- BIO & TENDA VENEZIANA ----- */
.bio { padding: 80px 0; }
.bio-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 80px; align-items: center; }
.bio-portrait { aspect-ratio: 4/5; background: var(--ink); border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; padding: 40px; }
.venetian-container { perspective: 1000px; display: flex; flex-direction: column; gap: 8px; width: 100%; text-align: center; }
.venetian-blind { transform-style: preserve-3d; transform: rotateX(-90deg); opacity: 0; transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.8s ease; transform-origin: top center; }
.venetian-container.visible .venetian-blind { transform: rotateX(0deg); opacity: 1; }
.venetian-container.visible .blind-1 { transition-delay: 0.1s; }
.venetian-container.visible .blind-2 { transition-delay: 0.3s; }
.venetian-container.visible .blind-3 { transition-delay: 0.5s; }
.bio-quote-line { font-family: 'Cormorant Garamond', serif; font-style: italic; font-size: clamp(26px, 3vw, 36px); color: var(--cream); display: block; }
.bio h2 { font-size: clamp(28px, 3.4vw, 38px); margin-bottom: 28px; }
.bio p { font-size: 15.5px; line-height: 1.85; color: var(--ink-soft); margin-bottom: 20px; }

/* ----- WORKS / AUDIO ----- */
.works { padding: 60px 0; color: var(--ink); }
.works-head { text-align: center; margin-bottom: 60px; }
.works-head h2 { font-size: clamp(32px, 4vw, 46px); }
.works-list { border-top: 1px solid var(--line); }
.work-row { display: grid; grid-template-columns: 90px 1fr 140px 60px; align-items: center; padding: 30px 0; border-bottom: 1px solid var(--line); }
.work-year { font-family: 'Cormorant Garamond', serif; font-style: italic; color: var(--bronze); font-size: 17px; }
.work-title { font-size: clamp(20px, 2.4vw, 27px); font-family: 'Cormorant Garamond', serif; }

.work-progress {
  height: 3px;
  background: rgba(43, 34, 28, 0.15);
  width: 100%;
  max-width: 140px;
  justify-self: end;
  border-radius: 2px;
  overflow: hidden;
}

.work-progress-bar {
  height: 100%;
  width: 0%;
  background: var(--bronze-dark);
  transition: width 0.1s linear;
}

.work-play {
  width: 42px;
  height: 42px;
  border: 1px solid var(--ink);
  background: transparent;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: auto;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
}

.work-play:hover { background: var(--ink); }
.work-play svg { width: 12px; height: 12px; fill: var(--ink); transition: fill 0.3s ease; }
.work-play:hover svg { fill: var(--cream); }

/* ----- VIDEOS (CAROSELLO / SLIDER ORIZZONTALE) ----- */
.videos { padding: 60px 0; }
.videos-head { text-align: center; margin-bottom: 60px; }
.videos-head .eyebrow { font-size: 13px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--bronze-dark); margin-bottom: 18px; }
.videos-head h2 { font-size: clamp(32px, 4vw, 46px); }

.video-grid { 
  display: flex !important; 
  gap: 32px !important; 
  overflow-x: auto !important; 
  scroll-snap-type: x mandatory;
  padding-bottom: 30px;
  -webkit-overflow-scrolling: touch;
}

.video-grid::-webkit-scrollbar { height: 6px; }
.video-grid::-webkit-scrollbar-track { background: rgba(43, 34, 28, 0.08); border-radius: 3px; }
.video-grid::-webkit-scrollbar-thumb { background: var(--bronze); border-radius: 3px; }

.video-card {
  flex: 0 0 46% !important;
  min-width: 320px !important;
  scroll-snap-align: start;
}

.video-wrapper { 
  position: relative; 
  padding-bottom: 56.25%; 
  height: 0; 
  overflow: hidden; 
  background: #000; 
  border: 1px solid var(--line); 
}
.video-wrapper iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: 0; }
.video-caption { font-family: 'Cormorant Garamond', serif; font-style: italic; font-size: 18px; margin-top: 14px; text-align: center; color: var(--ink-soft); }

/* ----- FORM CONTATTI ----- */
.cta-section { padding: 80px 0; text-align: center; }
.cta-section h2 { font-size: clamp(36px, 5.5vw, 64px); margin: 24px 0 32px; }
.contact-info { margin-bottom: 32px; font-size: 18px; color: var(--ink-soft); }
.contact-email-link { color: var(--bronze-dark); font-weight: 500; text-decoration: underline; }
.contact-form { max-width: 600px; margin: 0 auto; display: flex; flex-direction: column; gap: 20px; text-align: left; }
.form-group { display: flex; flex-direction: column; gap: 8px; }
.form-group label { font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--bronze-dark); font-weight: 500; }
.form-group input, .form-group textarea { width: 100%; padding: 14px 18px; background: rgba(255, 255, 255, 0.6); border: 1px solid var(--line); font-family: 'Jost', sans-serif; font-size: 15px; color: var(--ink); outline: none; border-radius: 2px; }
.form-group input:focus, .form-group textarea:focus { border-color: var(--bronze); background: #fff; }

.submit-btn { 
  display: inline-flex; 
  align-items: center; 
  justify-content: center; 
  padding: 18px 40px; 
  border: 1px solid var(--ink); 
  font-size: 13px; 
  letter-spacing: 0.1em; 
  text-transform: uppercase; 
  background: transparent; 
  color: var(--ink);
  cursor: pointer; 
  transition: all 0.35s ease; 
  align-self: flex-start;
  margin-top: 10px;
}
.submit-btn:hover { background: var(--ink); color: var(--cream); }

/* ----- FOOTER ----- */
footer { padding: 50px 0 40px; border-top: 1px solid var(--line); margin-top: 60px; }
.footer-row { display: flex; justify-content: space-between; align-items: center; font-size: 12.5px; color: var(--ink-soft); }

/* ----- RESPONSIVE ----- */
@media (max-width: 900px) {
  .container { padding: 0 24px; }
  nav { padding: 20px 24px; }
  .nav-links { display: none; }
  .path-grid { grid-template-columns: 1fr; }
  .bio-grid { grid-template-columns: 1fr; gap: 40px; }
  
  .video-card {
    flex: 0 0 85% !important;
  }
}