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

/* --- CUSTOM PROPERTIES --- */
:root {
  --font-sans: 'Outfit', sans-serif;
  --font-serif: 'Playfair Display', serif;
  
  --color-olive-dark: hsl(80, 42%, 18%);
  --color-olive-med: hsl(80, 35%, 26%);
  --color-olive-light: hsl(80, 25%, 45%);
  --color-olive-bg: hsl(80, 30%, 97%);
  
  --color-gold: hsl(43, 62%, 55%);
  --color-gold-dark: hsl(43, 62%, 40%);
  --color-gold-light: hsl(43, 62%, 90%);
  
  --color-dark: hsl(210, 20%, 12%);
  --color-dark-muted: hsl(210, 10%, 40%);
  --color-light: hsl(0, 0%, 100%);
  --color-white-trans: rgba(255, 255, 255, 0.85);
  
  --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
  --shadow-md: 0 10px 20px rgba(0,0,0,0.08);
  --shadow-lg: 0 20px 40px rgba(0,0,0,0.12);
  
  --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --border-radius-sm: 6px;
  --border-radius-md: 12px;
  --border-radius-lg: 24px;
}

/* --- RESET & BASE --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  color: var(--color-dark);
  background-color: var(--color-light);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* --- TYPOGRAPHY --- */
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.2;
}

h2 {
  font-size: 2.5rem;
  color: var(--color-olive-dark);
  margin-bottom: 1rem;
  text-align: center;
  position: relative;
  padding-bottom: 15px;
}

h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background-color: var(--color-gold);
  border-radius: 2px;
}

p {
  margin-bottom: 1.2rem;
  font-size: 1.1rem;
  font-weight: 300;
  color: hsl(210, 10%, 25%);
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition-smooth);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: var(--border-radius-md);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* --- HEADER / NAVIGATION --- */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-sm);
  transition: var(--transition-smooth);
}

header.scrolled {
  padding: 8px 0;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}

.logo img {
  height: 55px;
  width: auto;
  transition: var(--transition-smooth);
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 32px;
  align-items: center;
}

.nav-links a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--color-olive-dark);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  position: relative;
  padding: 6px 0;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--color-gold);
  transition: var(--transition-smooth);
}

.nav-links a:hover {
  color: var(--color-gold-dark);
}

.nav-links a:hover::after {
  width: 100%;
}

/* Burger Menu */
.burger {
  display: none;
  cursor: pointer;
  background: none;
  border: none;
}

.burger span {
  display: block;
  width: 25px;
  height: 2.5px;
  background-color: var(--color-olive-dark);
  margin: 5px 0;
  transition: var(--transition-smooth);
}

/* --- HERO SECTION --- */
#hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-light);
  overflow: hidden;
  margin-top: 0;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero-bg::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(17, 24, 16, 0.4), rgba(17, 24, 16, 0.8));
  z-index: 2;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
}

.hero-content {
  position: relative;
  z-index: 3;
  text-align: center;
  max-width: 800px;
  padding: 0 24px;
}

.hero-title {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  text-shadow: 0 2px 10px rgba(0,0,0,0.3);
  animation: fadeInUp 1s ease;
}

.hero-title span {
  display: block;
  font-size: 1.5rem;
  font-family: var(--font-sans);
  font-weight: 400;
  color: var(--color-gold);
  text-transform: uppercase;
  letter-spacing: 0.25em;
  margin-bottom: 0.5rem;
}

.hero-desc {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 2rem;
  font-weight: 300;
  animation: fadeInUp 1.2s ease;
}

.btn-primary {
  display: inline-block;
  padding: 14px 36px;
  background-color: var(--color-gold);
  color: var(--color-light);
  font-weight: 600;
  border-radius: 50px;
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  box-shadow: 0 4px 15px rgba(212, 163, 89, 0.4);
  animation: fadeInUp 1.4s ease;
}

.btn-primary:hover {
  background-color: var(--color-gold-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(212, 163, 89, 0.5);
}

/* --- SECTIONS COMMON --- */
section {
  padding: 100px 0;
  position: relative;
}

.section-intro {
  max-width: 750px;
  margin: 0 auto 50px auto;
  text-align: center;
}

.section-intro p {
  font-size: 1.2rem;
  color: var(--color-dark-muted);
}

/* --- AZIENDA SECTION --- */
#azienda {
  background-color: var(--color-light);
}

.azienda-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
}

.azienda-text {
  text-align: left;
}

.azienda-images {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.azienda-images img {
  box-shadow: var(--shadow-md);
  transition: var(--transition-smooth);
}

.azienda-images img:hover {
  transform: scale(1.03);
}

.azienda-images img:nth-child(1) {
  grid-column: span 2;
}

/* --- OLIVETI SECTION --- */
#oliveti {
  background-color: var(--color-olive-bg);
}

.oliveti-intro-images {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 50px;
}

.oliveti-intro-images figure {
  position: relative;
  overflow: hidden;
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-sm);
  transition: var(--transition-smooth);
}

.oliveti-intro-images figure:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.oliveti-intro-images figcaption {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 10px;
  background: rgba(0, 0, 0, 0.6);
  color: var(--color-light);
  font-size: 0.9rem;
  text-align: center;
}

.cultivar-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-top: 40px;
}

.cultivar-card {
  background-color: var(--color-light);
  padding: 40px;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  gap: 24px;
  border: 1px solid rgba(85, 107, 47, 0.05);
}

.cultivar-header {
  display: flex;
  gap: 24px;
  align-items: center;
}

.cultivar-header img {
  width: 100px;
  height: 100px;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid var(--color-gold);
}

.cultivar-title h3 {
  font-size: 1.6rem;
  color: var(--color-olive-dark);
  margin-bottom: 4px;
}

.cultivar-title span {
  font-size: 0.9rem;
  color: var(--color-gold-dark);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.cultivar-desc {
  font-size: 1rem;
  line-height: 1.7;
}

/* --- FRANTOIO SECTION --- */
#frantoio {
  background-color: var(--color-light);
}

.frantoio-wrapper {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 50px;
}

.frantoio-gallery {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.frantoio-gallery figure {
  position: relative;
}

.frantoio-gallery figcaption {
  margin-top: 8px;
  font-size: 0.9rem;
  color: var(--color-dark-muted);
  font-style: italic;
  text-align: center;
}

.timeline {
  position: relative;
  padding-left: 30px;
  border-left: 2px solid var(--color-gold-light);
}

.timeline-item {
  position: relative;
  margin-bottom: 40px;
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-dot {
  position: absolute;
  left: -41px;
  top: 4px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background-color: var(--color-gold);
  border: 4px solid var(--color-light);
  box-shadow: 0 0 0 4px var(--color-gold-light);
}

.timeline-content h4 {
  font-size: 1.25rem;
  color: var(--color-olive-dark);
  margin-bottom: 8px;
}

.timeline-content p {
  font-size: 0.95rem;
  margin-bottom: 0;
}

/* --- EXTRAVERGINE SECTION --- */
#extravergine {
  background-color: var(--color-olive-dark);
  color: var(--color-light);
  text-align: center;
}

#extravergine p {
  color: var(--color-light);
}

#extravergine h2 {
  color: var(--color-light);
}

.extravergine-content {
  max-width: 900px;
  margin: 0 auto;
}

.quote-box {
  margin-top: 40px;
  padding: 40px;
  background-color: rgba(255, 255, 255, 0.05);
  border-left: 4px solid var(--color-gold);
  border-radius: var(--border-radius-md);
  text-align: left;
}

.quote-text {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  line-height: 1.8;
  color: var(--color-white-trans);
  font-style: italic;
  margin-bottom: 20px;
}

.quote-author {
  font-size: 0.95rem;
  color: var(--color-gold);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* --- PRODOTTI SECTION --- */
#prodotti {
  background-color: var(--color-light);
}

.prodotti-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 40px;
}

.prodotto-card {
  background-color: var(--color-light);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-md);
  padding: 40px 24px;
  text-align: center;
  transition: var(--transition-smooth);
  border: 1px solid rgba(0,0,0,0.03);
}

.prodotto-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: var(--color-gold-light);
}

.prodotto-card img {
  width: 140px;
  height: 140px;
  object-fit: contain;
  margin: 0 auto 30px auto;
  filter: drop-shadow(0 10px 10px rgba(0,0,0,0.08));
}

.prodotto-card h3 {
  font-size: 1.5rem;
  color: var(--color-olive-dark);
  margin-bottom: 12px;
}

.prodotto-card p {
  font-size: 0.95rem;
  color: var(--color-dark-muted);
  margin-bottom: 0;
}

/* --- CONTATTI SECTION --- */
#contatti {
  background-color: var(--color-olive-bg);
}

.contatti-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 60px;
}

.contatti-grid.no-maps {
  grid-template-columns: 1fr;
}

.info-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.no-maps .info-cards {
  grid-template-columns: repeat(3, 1fr);
}

.info-card-link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.info-card {
  background-color: var(--color-light);
  padding: 30px;
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-sm);
  height: 100%;
  border: 1px solid rgba(0,0,0,0.02);
  transition: var(--transition-smooth);
}

.info-card h4 {
  font-size: 1.15rem;
  color: var(--color-olive-dark);
  margin-bottom: 12px;
  border-bottom: 2px solid var(--color-olive-bg);
  padding-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.info-card p {
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 0;
}

.info-card a {
  color: var(--color-olive-med);
  font-weight: 500;
}

.info-card a:hover {
  color: var(--color-gold);
}

.map-hint {
  display: inline-block;
  margin-top: 16px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-gold-dark);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: var(--transition-smooth);
}

.info-card-link:hover .info-card {
  transform: translateY(-5px);
  border-color: var(--color-gold-light);
  box-shadow: var(--shadow-md);
}

.info-card-link:hover .map-hint {
  color: var(--color-olive-med);
  padding-left: 4px;
}

/* --- FOOTER --- */
footer {
  background-color: var(--color-dark);
  color: var(--color-light);
  padding: 60px 0 30px 0;
  font-size: 0.9rem;
  border-top: 4px solid var(--color-gold);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-about h3 {
  font-size: 1.5rem;
  color: var(--color-gold);
  margin-bottom: 16px;
}

.footer-about p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
  max-width: 500px;
}

.footer-links h4 {
  font-size: 1.1rem;
  margin-bottom: 16px;
}

.footer-links ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
}

.footer-links a:hover {
  color: var(--color-gold);
  padding-left: 4px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  color: rgba(255, 255, 255, 0.5);
}

/* --- ANIMATIONS --- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --- RESPONSIVE MEDIA QUERIES --- */
@media (max-width: 992px) {
  h2 {
    font-size: 2.2rem;
  }
  
  .azienda-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .cultivar-container {
    grid-template-columns: 1fr;
  }
  
  .frantoio-wrapper {
    grid-template-columns: 1fr;
  }
  
  .prodotti-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .contatti-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .no-maps .info-cards {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 80px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 80px);
    background-color: var(--color-light);
    flex-direction: column;
    justify-content: center;
    gap: 40px;
    transition: var(--transition-smooth);
    box-shadow: var(--shadow-lg);
  }
  
  .nav-links.active {
    left: 0;
  }
  
  .burger {
    display: block;
  }
  
  /* Burger active state */
  .burger.toggle .line1 {
    transform: rotate(-45deg) translate(-5px, 6px);
  }
  .burger.toggle .line2 {
    opacity: 0;
  }
  .burger.toggle .line3 {
    transform: rotate(45deg) translate(-5px, -6px);
  }
  
  .hero-title {
    font-size: 2.5rem;
  }
  
  .prodotti-grid {
    grid-template-columns: 1fr;
  }
  
  .info-cards {
    grid-template-columns: 1fr;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
  }
  
  .oliveti-intro-images {
    grid-template-columns: 1fr;
  }
}
