/* ============================================================
   Il Grillo è Buoncantore — Stylesheet
   ============================================================ */

:root {
  --verde:        #2d4a1e;
  --verde-chiaro: #4a7a30;
  --ocra:         #c8973a;
  --crema:        #f7f2e8;
  --testo:        #1a1a14;
  --testo-light:  #5a5a4a;
  --bianco:       #fdfaf4;
}

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

body {
  font-family: 'Raleway', sans-serif;
  background: var(--bianco);
  color: var(--testo);
  font-weight: 300;
}

/* ── NAV ─────────────────────────────────────────────────── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2.5rem;
  height: 64px;
  background: rgba(253, 250, 244, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(200, 151, 58, 0.2);
}

.nav-brand {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--verde);
  text-decoration: none;
  letter-spacing: 0.02em;
  cursor: pointer;
}

.nav-links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
}

.nav-links a {
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--testo-light);
  text-decoration: none;
  font-weight: 400;
  transition: color 0.25s;
  cursor: pointer;
}

.nav-links a:hover,
.nav-links a.active { color: var(--ocra); }

/* ── PAGE SWITCHING ───────────────────────────────────────── */
.page { display: none; }
.page.active { display: block; }

/* ── HERO ─────────────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 100px 2rem 4rem;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(45,74,30,0.06) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 20%, rgba(200,151,58,0.08) 0%, transparent 50%),
    var(--crema);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -20%; right: -10%;
  width: 500px; height: 700px;
  background: url('../images/olive.png') center/contain no-repeat;
  opacity: 0.07;
  pointer-events: none;
}

.hero-olive {
  width: 90px;
  margin-bottom: 1.5rem;
  animation: floatOlive 6s ease-in-out infinite;
}

@keyframes floatOlive {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50%       { transform: translateY(-10px) rotate(2deg); }
}

.hero h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.8rem, 7vw, 5.5rem);
  font-weight: 300;
  line-height: 1.05;
  color: var(--verde);
  letter-spacing: -0.01em;
  margin-bottom: 0.5rem;
}

.hero h1 em {
  font-style: italic;
  color: var(--ocra);
}

.hero-sub {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.15rem;
  font-style: italic;
  color: var(--testo-light);
  letter-spacing: 0.05em;
  margin-bottom: 2.5rem;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 1.2rem;
  border: 1px solid var(--ocra);
  border-radius: 2px;
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ocra);
}

/* ── GALLERY STRIP ────────────────────────────────────────── */
.gallery-strip {
  display: flex;
  height: 380px;
  overflow: hidden;
}

.gallery-strip img {
  flex: 1;
  object-fit: cover;
  object-position: center;
  transition: flex 0.5s ease;
  filter: brightness(0.88) saturate(0.9);
}

.gallery-strip img:hover {
  flex: 2.5;
  filter: brightness(1) saturate(1.1);
}

/* ── SECTIONS ─────────────────────────────────────────────── */
section { padding: 6rem 2rem; }

.container {
  max-width: 1000px;
  margin: 0 auto;
}

/* ── BIO ──────────────────────────────────────────────────── */
.bio-section {
  background: var(--verde);
  color: var(--crema);
}

.bio-inner {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 5rem;
  align-items: center;
}

.bio-image-wrap { position: relative; }

.bio-image-wrap img {
  width: 100%;
  height: 480px;
  object-fit: cover;
  object-position: top center;
  display: block;
}

.bio-image-wrap::after {
  content: '';
  position: absolute;
  bottom: -12px; right: -12px;
  width: 100%; height: 100%;
  border: 2px solid var(--ocra);
  z-index: -1;
}

.bio-tag {
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ocra);
  margin-bottom: 1rem;
}

.bio-text h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 300;
  line-height: 1.15;
  margin-bottom: 1.5rem;
  color: var(--crema);
}

.bio-text p {
  font-size: 0.95rem;
  line-height: 1.9;
  color: rgba(247, 242, 232, 0.8);
  font-weight: 300;
}

/* ── PRODUTTORI PREVIEW ───────────────────────────────────── */
.produttori-preview {
  background: var(--crema);
  text-align: center;
}

.section-label {
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ocra);
  margin-bottom: 0.75rem;
}

.section-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 300;
  color: var(--verde);
  margin-bottom: 2.5rem;
}

.btn {
  display: inline-block;
  padding: 0.75rem 2.5rem;
  border: 1.5px solid var(--verde);
  color: var(--verde);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  background: transparent;
  transition: all 0.3s;
  font-family: 'Raleway', sans-serif;
  font-weight: 400;
}

.btn:hover {
  background: var(--verde);
  color: var(--crema);
}

/* ── CONTATTI ─────────────────────────────────────────────── */
.contatti-section {
  background: var(--testo);
  color: var(--crema);
}

.contatti-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.contatti-section h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2rem, 3vw, 2.5rem);
  font-weight: 300;
  margin-bottom: 0.5rem;
}

.contatti-section .section-label { margin-bottom: 2rem; }

.contatti-section p.intro {
  font-size: 0.88rem;
  color: rgba(247,242,232,0.65);
  font-style: italic;
  margin-bottom: 2rem;
}

.info-block { margin-bottom: 1.8rem; }

.info-block strong {
  display: block;
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ocra);
  margin-bottom: 0.4rem;
  font-weight: 500;
}

.info-block span,
.info-block a {
  font-size: 0.92rem;
  color: rgba(247,242,232,0.85);
  text-decoration: none;
  line-height: 1.7;
  display: block;
}

.info-block a:hover { color: var(--ocra); }

.orari-table {
  font-size: 0.88rem;
  color: rgba(247,242,232,0.75);
  line-height: 2;
}

.orari-row {
  display: flex;
  justify-content: space-between;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(247,242,232,0.1);
}

.orari-row:last-child { border-bottom: none; }
.orari-row .label { color: var(--ocra); }

/* ── PRODUTTORI PAGE ──────────────────────────────────────── */
.produttori-page {
  padding-top: 64px;
  min-height: 100vh;
  background: var(--crema);
}

.produttori-header {
  text-align: center;
  padding: 5rem 2rem 3.5rem;
  background: var(--verde);
  color: var(--crema);
}

.produttori-header .section-label { color: var(--ocra); }

.produttori-header h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 300;
  line-height: 1.1;
}

.produttori-header p.subtitle {
  margin-top: 1rem;
  font-size: 0.92rem;
  color: rgba(247,242,232,0.7);
  font-style: italic;
}

.produttori-images {
  max-width: 900px;
  margin: 4rem auto;
  padding: 0 2rem 4rem;
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.produttori-images img {
  width: 100%;
  height: auto;
  display: block;
  box-shadow: 0 8px 40px rgba(0,0,0,0.12);
}

/* ── FOOTER ───────────────────────────────────────────────── */
footer {
  background: var(--testo);
  color: rgba(247,242,232,0.4);
  text-align: center;
  padding: 2rem;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  border-top: 1px solid rgba(200,151,58,0.15);
}

footer span { color: var(--ocra); }

/* ── ANIMATIONS ───────────────────────────────────────────── */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: none;
}

/* ── RESPONSIVE ───────────────────────────────────────────── */
@media (max-width: 768px) {
  nav { padding: 0 1.25rem; }
  .nav-brand { font-size: 1rem; }
  .nav-links { gap: 1.5rem; }

  .gallery-strip { height: 220px; }
  .gallery-strip img:hover { flex: 1.5; }

  .bio-inner {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .bio-image-wrap img { height: 320px; }
  .bio-image-wrap::after { display: none; }

  .contatti-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  section { padding: 4rem 1.25rem; }
}
