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

:root {
  --color-primary: #505844; /* Verde scuro logo */
  --color-primary-dark: #3a4031;
  --color-primary-light: #6a735a;
  --color-accent: #cb9f39; /* Giallo (Oro) PDF */
  --color-accent-hover: #e0b445;
  --color-accent-light: rgba(203, 159, 57, 0.1);
  --color-bg: #f8f6f0; /* Sfondo chiaro elegante */
  --color-text: #2a2a2a;
  --color-text-light: #f8f6f0;
  
  --font-heading: 'Playfair Display', serif;
  --font-body: 'Montserrat', sans-serif;
  
  --spacing-section: 50px;
  --border-radius: 4px;
}

/* Reset Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background-color: var(--color-bg);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Typography Utilities */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.2;
}

p {
  font-weight: 300;
  margin-bottom: 1.5rem;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.3s ease;
}

/* UI Elements */
.btn {
  display: inline-block;
  padding: 14px 36px;
  background-color: var(--color-accent);
  color: #fff;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.9rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  border-radius: var(--border-radius);
  border: 1px solid var(--color-accent);
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 100%;
  background-color: var(--color-accent-hover);
  transition: width 0.4s cubic-bezier(0.25, 1, 0.5, 1);
  z-index: -1;
}

.btn:hover::before {
  width: 100%;
}

.btn:hover {
  box-shadow: 0 10px 20px rgba(203, 159, 57, 0.3);
  color: #ffffff;
}

.btn-outline {
  background-color: transparent;
  color: var(--color-accent);
}

.btn-outline:hover {
  color: #fff;
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 20px 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 100;
  transition: padding 0.4s ease, background-color 0.4s ease, box-shadow 0.4s ease;
}

.navbar.scrolled {
  background-color: rgba(80, 88, 68, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 10px 5%;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.nav-logo img {
  height: 50px;
  transition: height 0.4s ease;
  filter: brightness(0) invert(1);
}

.navbar.scrolled .nav-logo img {
  height: 40px;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 30px;
}

.nav-links a {
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 400;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background-color: var(--color-accent);
  transition: width 0.3s ease;
}

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

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 6px;
}
.menu-toggle span {
  width: 30px;
  height: 2px;
  background-color: #fff;
  transition: 0.3s;
}

/* Hero Section */
.hero {
  position: relative;
  width: 100%;
  padding: 0;
  background-color: var(--color-primary-dark);
  text-align: center;
  color: #fff;
}

.hero-video {
  width: 100%;
  height: auto;
  display: block;
  z-index: 1;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--color-primary);
  opacity: 0.80;
  mix-blend-mode: multiply;
  z-index: 2;
}

.hero-content {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  margin: auto;
  height: fit-content;
  z-index: 3;
  width: 100%;
  max-width: 900px;
  padding: 0 20px;
  text-align: center;
}

.hero-center-logo {
  max-width: 320px;
  width: 80%;
  filter: brightness(0) invert(1);
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp 1.2s ease forwards 0.5s;
}

.hero-subtitle {
  font-size: 1.5rem;
  font-weight: 300;
  font-style: italic;
  margin-top: 20px;
  margin-bottom: 20px;
  font-family: var(--font-heading);
}

.hero-text {
  font-size: 1.1rem;
  margin-bottom: 40px;
  font-weight: 300;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* Sections Global */
.mobile-only {
  display: none;
}

section {
  padding: var(--spacing-section) 5%;
}

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

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-title {
  font-size: 2.5rem;
  color: var(--color-primary);
  margin-bottom: 15px;
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 2px;
  background-color: var(--color-accent);
}

/* Animazioni Scroll Reveal */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* La Storia (Due colonne) */
.split-layout {
  display: flex;
  align-items: center;
  gap: 60px;
}

.split-image {
  flex: 1;
  position: relative;
}

.split-image img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.8s ease;
  border-radius: var(--border-radius);
}

.floating-bottle {
  width: 100%;
  max-width: 280px;
  height: auto;
  display: block;
  margin: 0 auto;
  border-radius: 0;
  filter: drop-shadow(20px 30px 45px rgba(0,0,0,0.5));
  transform: rotate(8deg);
  transition: all 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.split-image:hover .floating-bottle {
  transform: rotate(0deg) scale(1.05);
}

.split-content {
  flex: 1;
}

/* Specifica per la sezione Storia con la bottiglia scontornata */
#storia .split-layout {
  gap: 30px;
}
#storia .split-image {
  flex: 0.4;
}
#storia .split-content {
  flex: 0.6;
}

.storia-tags {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  margin-top: 30px;
}

.tag {
  background-color: var(--color-accent-light);
  color: var(--color-accent);
  padding: 8px 18px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  border: 1px solid var(--color-accent);
  transition: all 0.3s ease;
}

.tag:hover {
  background-color: var(--color-accent);
  color: #fff;
}

.split-content h2 {
  font-size: 2.2rem;
  color: var(--color-primary);
  margin-bottom: 20px;
}

.split-content blockquote {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-style: italic;
  color: var(--color-accent);
  padding-left: 20px;
  border-left: 3px solid var(--color-accent);
  margin-bottom: 30px;
  line-height: 1.5;
}

/* L'Essenza (Full width Parallax) */
.essenza-section {
  position: relative;
  background: url('../assets/img/foglie-ulivo-amaro-aliuara.jpg') center/cover fixed no-repeat;
  color: #fff;
  padding: 120px 5%;
  text-align: center;
}

.essenza-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, rgba(80, 88, 68, 0.85), rgba(42, 42, 42, 0.7));
  z-index: 1;
}

.essenza-container {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
}

.essenza-container h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
  color: var(--color-accent);
}

.ingredients-list {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin: 40px 0;
  list-style: none;
  flex-wrap: wrap;
}

.ingredients-list li {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  background: rgba(255,255,255,0.1);
  padding: 10px 20px;
  border-radius: 30px;
  backdrop-filter: blur(5px);
  border: 1px solid rgba(255,255,255,0.2);
}

/* Esperienza & Rituale (Cards/Grid) */
.grid-layout {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
  align-items: center;
}

.grid-reverse {
  direction: rtl;
}

.grid-reverse > * {
  direction: ltr;
}

/* Icona Prodotto */
.product-section {
  position: relative;
  background: url('../assets/img/bottiglia-amaro-aliuara-artigianale.jpg') center/cover fixed no-repeat;
  color: #fff;
  padding: 180px 5%;
  text-align: center;
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, rgba(80, 88, 68, 0.85), rgba(42, 42, 42, 0.7));
  z-index: 1;
}

.product-showcase {
  position: relative;
  z-index: 2;
  max-width: 800px;
  width: 100%;
  margin: 0 auto;
}

.product-showcase h2 {
  font-size: 3.5rem;
  line-height: 1.2;
  margin-bottom: 30px;
  color: var(--color-accent);
}

.action-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
}

/* L'Anima (Quote) */
.anima-section {
  background-color: var(--color-primary-dark);
  text-align: center;
  padding: 120px 5%;
}

.big-quote {
  font-family: var(--font-heading);
  font-size: 3rem;
  color: var(--color-accent);
  line-height: 1.3;
  max-width: 800px;
  margin: 0 auto;
  position: relative;
}

/* Footer */
footer {
  background-color: #1a1a1a;
  color: #fff;
  padding: 80px 5% 40px;
  text-align: center;
}

.footer-logo {
  max-width: 200px;
  margin-bottom: 30px;
  filter: brightness(0) invert(1);
}

.footer-content {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: 0 auto;
  text-align: left;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  padding-bottom: 40px;
  margin-bottom: 20px;
}

.footer-col h4 {
  color: var(--color-accent);
  margin-bottom: 20px;
  font-size: 1.2rem;
}

.footer-col ul {
  list-style: none;
}

.footer-col li {
  margin-bottom: 10px;
  color: rgba(255,255,255,0.7);
}

.footer-col a:hover {
  color: var(--color-accent);
}

.footer-bottom {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.5);
  display: flex;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
}

/* Keyframes */
@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive */
@media (max-width: 992px) {
  .desktop-only { display: none !important; }
  .mobile-only { display: block; }
  
  .hero-subtitle { font-size: 1.2rem; }
  .hero-text { font-size: 1rem; margin-bottom: 25px; }
  .split-layout, .grid-layout { flex-direction: column; grid-template-columns: 1fr; }
  .split-content { text-align: center; }
  .split-content blockquote { padding-left: 0; border-left: none; text-align: center; }
  .split-content ul { text-align: left; display: inline-block; }
  .storia-tags { justify-content: center; }
  .grid-reverse { direction: ltr; }
  .action-buttons { flex-direction: column; }
}

@media (max-width: 768px) {
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--color-primary);
    flex-direction: column;
    padding: 20px 0;
    text-align: center;
    clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
    transition: 0.4s ease-in-out;
  }
  .nav-links.active {
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
  }
  .menu-toggle { display: flex; }
  
  .hero-subtitle { font-size: 0.9rem; margin-bottom: 5px; }
  .hero-text { font-size: 0.8rem; margin-bottom: 15px; }
  .btn { padding: 10px 24px; font-size: 0.8rem; }
  
  .big-quote { font-size: 2rem; }
  .footer-content { flex-direction: column; text-align: center; gap: 40px; }
}
