@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,700;1,400&family=Lora:ital,wght@0,400;0,500;1,400&family=Nunito+Sans:wght@300;400;600&display=swap');

:root {
  --terra: #8B5E3C;
  --terra-dark: #5C3A1E;
  --terra-light: #C4956A;
  --paglia: #F5EDD8;
  --paglia-dark: #E8D5A8;
  --foglia: #4A7C59;
  --pietra: #6B6455;
  --pietra-light: #A09484;
  --lavagna: #2C2118;
  --bianco: #FBF7F0;
  --ombra: rgba(44,33,24,0.10);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Nunito Sans', sans-serif; background: var(--bianco); color: var(--lavagna); overflow-x: hidden; }

/* ── NAV ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(251,247,240,0.95); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--paglia-dark);
  padding: 0 2rem; display: flex; align-items: center; justify-content: space-between;
  height: 64px; transition: box-shadow 0.3s;
}
nav.scrolled { box-shadow: 0 2px 20px var(--ombra); }
.nav-logo { font-family: 'Playfair Display', serif; font-size: 1rem; color: var(--terra-dark); text-decoration: none; display: flex; align-items: center; gap: 10px; line-height: 1.2; }
.nav-logo-mark { width: 34px; height: 34px; background: var(--terra); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--paglia); font-size: 0.95rem; font-style: italic; font-family: 'Playfair Display', serif; flex-shrink: 0; }
.nav-links { display: flex; gap: 1.8rem; list-style: none; }
.nav-links a { font-size: 0.82rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--pietra); text-decoration: none; transition: color 0.2s; }
.nav-links a:hover { color: var(--terra); }
.hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 4px; }
.hamburger span { display: block; width: 24px; height: 2px; background: var(--terra-dark); border-radius: 2px; }
.mobile-menu { display: none; position: fixed; top: 64px; left: 0; right: 0; background: var(--bianco); border-bottom: 1px solid var(--paglia-dark); padding: 1.5rem 2rem; z-index: 999; flex-direction: column; gap: 1.2rem; }
.mobile-menu.open { display: flex; }
.mobile-menu a { font-size: 1rem; font-weight: 600; color: var(--pietra); text-decoration: none; text-transform: uppercase; letter-spacing: 0.06em; }

/* ── BREADCRUMB ── */
.breadcrumb { padding: 0.6rem 2rem; background: var(--paglia); border-bottom: 1px solid var(--paglia-dark); font-size: 0.78rem; color: var(--pietra-light); margin-top: 64px; }
.breadcrumb a { color: var(--terra); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb span { margin: 0 0.4rem; }

/* ── COMMON ── */
section { padding: 5rem 2rem; }
.container { max-width: 1100px; margin: 0 auto; }
.section-label { font-size: 0.76rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--terra); margin-bottom: 0.5rem; display: flex; align-items: center; gap: 10px; }
.section-label::after { content: ''; width: 36px; height: 1px; background: var(--terra-light); }
.section-title { font-family: 'Playfair Display', serif; font-size: clamp(1.9rem, 4vw, 2.8rem); line-height: 1.2; color: var(--terra-dark); margin-bottom: 1rem; }
.section-desc { font-family: 'Lora', serif; font-size: 1rem; line-height: 1.8; color: var(--pietra); max-width: 600px; }

/* ── AUDIO BAR ── */
.audio-bar {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 1500;
  background: var(--terra-dark); padding: 0.85rem 2rem;
  display: flex; align-items: center; gap: 1.2rem;
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.16,1,0.3,1);
  box-shadow: 0 -4px 24px rgba(0,0,0,0.3);
}
.audio-bar.visible { transform: translateY(0); }
.audio-play-btn { width: 40px; height: 40px; border-radius: 50%; background: var(--terra-light); border: none; cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 1rem; color: var(--lavagna); flex-shrink: 0; transition: background 0.2s; }
.audio-play-btn:hover { background: var(--paglia); }
.audio-info { flex: 1; min-width: 0; }
.audio-label { font-size: 0.68rem; color: var(--terra-light); letter-spacing: 0.1em; text-transform: uppercase; }
.audio-title { font-family: 'Playfair Display', serif; font-size: 0.92rem; color: var(--paglia); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.audio-progress { flex: 2; display: flex; flex-direction: column; gap: 4px; }
.progress-bar-wrap { height: 4px; background: rgba(245,237,216,0.18); border-radius: 2px; cursor: pointer; }
.progress-fill { height: 100%; background: var(--terra-light); border-radius: 2px; width: 0%; transition: width 0.1s linear; }
.progress-times { display: flex; justify-content: space-between; font-size: 0.66rem; color: rgba(245,237,216,0.45); }
.audio-close-btn { background: none; border: none; color: rgba(245,237,216,0.45); font-size: 1.1rem; cursor: pointer; padding: 4px; transition: color 0.2s; }
.audio-close-btn:hover { color: var(--paglia); }

/* ── REVEAL ── */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.65s ease, transform 0.65s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* ── FOOTER ── */
footer { background: var(--lavagna); color: rgba(245,237,216,0.65); padding: 2.5rem 2rem 2rem; text-align: center; }
.footer-logo { font-family: 'Playfair Display', serif; font-size: 1.1rem; color: var(--paglia); margin-bottom: 0.4rem; }
.footer-tagline { font-family: 'Lora', serif; font-style: italic; font-size: 0.85rem; color: var(--terra-light); margin-bottom: 1.5rem; }
.footer-links { display: flex; gap: 1.8rem; justify-content: center; flex-wrap: wrap; margin-bottom: 1.5rem; list-style: none; }
.footer-links a { font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(245,237,216,0.45); text-decoration: none; transition: color 0.2s; }
.footer-links a:hover { color: var(--terra-light); }
.footer-divider { height: 1px; background: rgba(245,237,216,0.1); margin: 1.5rem 0; }
.footer-copy { font-size: 0.75rem; color: rgba(245,237,216,0.28); }

@media (max-width: 900px) { .nav-links { display: none; } .hamburger { display: flex; } }
@media (max-width: 600px) { section { padding: 3.5rem 1.2rem; } .audio-bar { flex-wrap: wrap; } .audio-progress { flex-basis: 100%; } }
