/* ========================================
   Azienda Agricola Corsetti - Stile Iacovella
   ======================================== */

:root {
  --bronzo: #B98D58;
  --bronzo-chiaro: #d4a86a;
  --scuro: #242E35;
  --crema: #F9F8F4;
  --crema-scuro: #EDE9E0;
  --bianco: #ffffff;
  --testo: #242E35;
  --testo-chiaro: #6b6b6b;
  --grigio-bordo: #e0d8cc;
  --verde-oliva: #4a6741;
  --ombra: 0 2px 20px rgba(0,0,0,0.08);
  --ombra-hover: 0 8px 30px rgba(0,0,0,0.12);
  --raggio: 8px;
  --transizione: all 0.3s ease;
}

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

body {
  font-family: 'Lato', sans-serif;
  color: var(--testo);
  background: var(--crema);
  line-height: 1.7;
  font-size: 16px;
}

h1, h2, h3, h4, h5 {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  line-height: 1.3;
}

a {
  color: var(--bronzo);
  text-decoration: none;
  transition: var(--transizione);
}
a:hover { color: var(--bronzo-chiaro); }

img { max-width: 100%; height: auto; }

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

/* ========== HEADER / NAV ========== */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(36, 46, 53, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 20px rgba(0,0,0,0.3);
  transition: var(--transizione);
}

.header.scrolled {
  background: rgba(36, 46, 53, 0.98);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 30px;
  max-width: 1300px;
  margin: 0 auto;
  min-height: 110px;
}

.nav-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 40px;
  flex-shrink: 0;
}

.nav-logo-img {
  height: 130px;
  width: auto;
  display: block;
}

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

.nav-left {
  justify-content: flex-end;
  flex: 1;
}

.nav-right {
  justify-content: flex-start;
  flex: 1;
}

.nav-links a {
  color: rgba(255,255,255,0.75);
  font-weight: 500;
  font-size: 0.85rem;
  position: relative;
  padding: 4px 0;
  text-transform: uppercase;
  letter-spacing: 2px;
}

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

.nav-links a:hover { color: white; }
.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }
.nav-links a.active { color: white; }

.nav-cart {
  position: relative;
  display: flex;
  align-items: center;
  color: rgba(255,255,255,0.75);
  cursor: pointer;
}
.nav-cart:hover { color: white; }
.nav-cart svg { width: 20px; height: 20px; }

.cart-badge {
  position: absolute;
  top: -8px; right: -10px;
  background: var(--bronzo);
  color: white;
  font-size: 0.7rem; font-weight: 700;
  width: 18px; height: 18px;
  border-radius: 50%;
  display: none;
  align-items: center;
  justify-content: center;
}
.cart-badge.show { display: flex; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 5px;
  background: none;
  border: none;
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
}
.hamburger span {
  width: 25px; height: 2px;
  background: white;
  transition: var(--transizione);
  display: block;
}
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ========== HERO ========== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  background: var(--scuro);
  padding-top: 90px;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(36,46,53,0.9), rgba(36,46,53,0.7));
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  color: white;
  max-width: 750px;
  padding: 40px 20px;
}

.hero-subtitle {
  font-family: 'Lato', sans-serif;
  font-size: 0.85rem;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--bronzo);
  margin-bottom: 30px;
}

.hero h1 {
  font-size: 3.2rem;
  margin-bottom: 24px;
  font-weight: 400;
  font-style: italic;
  line-height: 1.4;
}

.hero p {
  font-size: 1.1rem;
  opacity: 0.8;
  max-width: 550px;
  margin: 0 auto 40px;
  line-height: 1.9;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ========== BUTTONS ========== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 36px;
  border-radius: 0;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  transition: var(--transizione);
  border: 2px solid transparent;
  font-family: 'Lato', sans-serif;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.btn-primary {
  background: var(--bronzo);
  color: white;
  border-color: var(--bronzo);
}
.btn-primary:hover {
  background: var(--bronzo-chiaro);
  border-color: var(--bronzo-chiaro);
  color: white;
}

.btn-outline {
  background: transparent;
  color: white;
  border-color: rgba(255,255,255,0.4);
}
.btn-outline:hover {
  background: white;
  color: var(--scuro);
  border-color: white;
}

.btn-verde {
  background: var(--scuro);
  color: white;
  border-color: var(--scuro);
}
.btn-verde:hover {
  background: var(--bronzo);
  border-color: var(--bronzo);
  color: white;
}

.btn-sm { padding: 10px 24px; font-size: 0.8rem; }

/* ========== SECTIONS ========== */
.section { padding: 100px 0; }
.section-crema { background: var(--crema-scuro); }
.section-verde { background: var(--scuro); color: white; }

.section-header {
  text-align: center;
  margin-bottom: 60px;
}
.section-header h2 {
  font-size: 2.5rem;
  margin-bottom: 16px;
  color: var(--scuro);
  font-weight: 400;
}
.section-verde .section-header h2 { color: white; }

.section-header p {
  font-size: 1.05rem;
  color: var(--testo-chiaro);
  max-width: 550px;
  margin: 0 auto;
}
.section-verde .section-header p { color: rgba(255,255,255,0.7); }

.section-divider {
  width: 50px; height: 2px;
  background: var(--bronzo);
  margin: 20px auto 0;
}

/* ========== CATEGORY CARDS ========== */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.category-card {
  text-align: center;
  padding: 40px 24px;
  background: white;
  border: 1px solid var(--grigio-bordo);
  transition: var(--transizione);
  text-decoration: none;
  color: var(--testo);
}
.category-card:hover {
  border-color: var(--bronzo);
  box-shadow: var(--ombra);
  color: var(--testo);
}

.category-icon {
  width: 70px; height: 70px;
  margin: 0 auto 20px;
  background: var(--crema);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transizione);
}
.category-card:hover .category-icon { background: var(--bronzo); }
.category-icon svg { width: 30px; height: 30px; fill: var(--scuro); transition: var(--transizione); }
.category-card:hover .category-icon svg { fill: white; }
.category-card h3 { font-size: 1.1rem; margin-bottom: 8px; }
.category-card p { font-size: 0.85rem; color: var(--testo-chiaro); }

/* ========== ABOUT SECTION ========== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about-img {
  height: 500px;
  overflow: hidden;
  background: var(--crema-scuro);
  display: flex;
  align-items: center;
  justify-content: center;
}
.about-img svg { width: 120px; height: 120px; opacity: 0.15; }

.about-text h2 {
  font-size: 2.2rem;
  color: var(--scuro);
  margin-bottom: 24px;
  font-weight: 400;
}
.about-text p {
  color: var(--testo-chiaro);
  margin-bottom: 16px;
  font-size: 1.05rem;
  line-height: 1.9;
}
.about-text .btn { margin-top: 16px; }

/* ========== FARM SECTION ========== */
.farm-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.farm-card {
  overflow: hidden;
  height: 350px;
  position: relative;
  background: var(--scuro);
  display: flex;
  align-items: flex-end;
}
.farm-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
  z-index: 1;
}
.farm-card-content {
  position: relative;
  z-index: 2;
  padding: 30px;
  color: white;
}
.farm-card-content h3 { font-size: 1.3rem; margin-bottom: 4px; font-weight: 400; }
.farm-card-content p { font-size: 0.9rem; opacity: 0.8; }

/* ========== CTA BANNER ========== */
.cta-banner {
  background: var(--scuro);
  color: white;
  text-align: center;
  padding: 100px 20px;
}
.cta-banner h2 {
  font-size: 2.2rem;
  margin-bottom: 16px;
  color: white;
  font-weight: 400;
}
.cta-banner p {
  font-size: 1.05rem;
  opacity: 0.7;
  margin-bottom: 30px;
  max-width: 500px;
  margin-left: auto; margin-right: auto;
}

/* ========== PRODUCT CARDS ========== */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 30px;
}

.product-card {
  background: white;
  border: 1px solid var(--grigio-bordo);
  overflow: hidden;
  transition: var(--transizione);
  cursor: pointer;
}
.product-card:hover {
  border-color: var(--bronzo);
  box-shadow: var(--ombra);
}

.product-card-img {
  height: 260px;
  overflow: hidden;
  position: relative;
  background: var(--crema-scuro);
  display: flex;
  align-items: center;
  justify-content: center;
}
.product-card-img svg { width: 60px; height: 60px; opacity: 0.15; }
.product-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.product-card:hover .product-card-img img { transform: scale(1.05); }

.product-card-badge {
  position: absolute;
  top: 12px; left: 12px;
  background: var(--bronzo);
  color: white;
  padding: 4px 14px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.product-card-body { padding: 24px; }
.product-card-category {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--bronzo);
  font-weight: 600;
  margin-bottom: 8px;
}
.product-card-body h3 { font-size: 1.1rem; margin-bottom: 8px; font-weight: 400; }
.product-card-body p { color: var(--testo-chiaro); font-size: 0.9rem; margin-bottom: 16px; line-height: 1.6; }

.product-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.product-price { font-size: 1.2rem; font-weight: 700; color: var(--scuro); }
.product-price small { font-size: 0.8rem; font-weight: 400; color: var(--testo-chiaro); }

.btn-add-cart {
  background: var(--scuro);
  color: white;
  border: none;
  width: 40px; height: 40px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transizione);
  font-size: 1.2rem;
}
.btn-add-cart:hover { background: var(--bronzo); }

/* ========== SHOP LAYOUT ========== */
.shop-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 40px;
}
.shop-sidebar { position: sticky; top: 110px; align-self: start; }
.filter-group { margin-bottom: 30px; }
.filter-group h4 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 12px;
  color: var(--testo);
  font-family: 'Lato', sans-serif;
  font-weight: 700;
}
.filter-btn {
  display: block; width: 100%;
  text-align: left;
  padding: 10px 16px;
  border: none; background: none;
  cursor: pointer;
  font-size: 0.9rem;
  color: var(--testo-chiaro);
  transition: var(--transizione);
  font-family: 'Lato', sans-serif;
}
.filter-btn:hover, .filter-btn.active {
  background: var(--scuro); color: white;
}
.shop-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 30px; }
.shop-header h2 { font-size: 1.3rem; color: var(--testo); font-weight: 400; }

/* ========== PRODUCT DETAIL ========== */
.product-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}
.product-detail-img {
  height: 500px;
  overflow: hidden;
  background: var(--crema-scuro);
  display: flex;
  align-items: center;
  justify-content: center;
}
.product-detail-img svg { width: 120px; height: 120px; opacity: 0.15; }
.product-detail-info h1 { font-size: 2rem; margin-bottom: 8px; font-weight: 400; }
.product-detail-category {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--bronzo);
  font-weight: 600;
  margin-bottom: 20px;
}
.product-detail-price {
  font-size: 1.8rem; font-weight: 700;
  color: var(--scuro);
  margin-bottom: 20px;
}
.product-detail-description {
  color: var(--testo-chiaro);
  line-height: 1.9;
  margin-bottom: 30px;
  font-size: 1rem;
}

.quantity-selector { display: flex; align-items: center; margin-bottom: 24px; }
.quantity-selector button {
  width: 44px; height: 44px;
  border: 1px solid var(--grigio-bordo);
  background: white;
  cursor: pointer;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transizione);
}
.quantity-selector button:hover { background: var(--crema); }
.quantity-selector input {
  width: 60px; height: 44px;
  text-align: center;
  border: 1px solid var(--grigio-bordo);
  border-left: none; border-right: none;
  font-size: 1rem;
  font-family: 'Lato', sans-serif;
}
.product-detail-actions { display: flex; gap: 12px; }

/* ========== CART ========== */
.cart-table { width: 100%; border-collapse: collapse; }
.cart-table th {
  text-align: left;
  padding: 16px 12px;
  border-bottom: 2px solid var(--grigio-bordo);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--testo-chiaro);
  font-family: 'Lato', sans-serif;
}
.cart-table td { padding: 20px 12px; border-bottom: 1px solid var(--grigio-bordo); vertical-align: middle; }
.cart-product { display: flex; align-items: center; gap: 16px; }
.cart-product-img {
  width: 80px; height: 80px;
  background: var(--crema-scuro);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}
.cart-product-img svg { width: 30px; height: 30px; opacity: 0.2; }
.cart-product-name { font-weight: 600; }
.cart-product-category { font-size: 0.8rem; color: var(--testo-chiaro); }
.cart-remove {
  background: none; border: none;
  color: #cc3333;
  cursor: pointer;
  font-size: 0.85rem;
  padding: 4px 8px;
  transition: var(--transizione);
}
.cart-remove:hover { text-decoration: underline; }

.cart-summary {
  max-width: 400px;
  margin-left: auto;
  margin-top: 40px;
  background: white;
  padding: 30px;
  border: 1px solid var(--grigio-bordo);
}
.cart-summary h3 { font-size: 1.2rem; margin-bottom: 20px; font-weight: 400; }
.cart-summary-row {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--grigio-bordo);
}
.cart-summary-row.total {
  border-bottom: none;
  font-weight: 700;
  font-size: 1.2rem;
  padding-top: 16px;
  color: var(--scuro);
}

.cart-empty { text-align: center; padding: 80px 20px; }
.cart-empty svg { width: 80px; height: 80px; opacity: 0.15; margin-bottom: 20px; }
.cart-empty h2 { margin-bottom: 12px; color: var(--testo); font-weight: 400; }
.cart-empty p { color: var(--testo-chiaro); margin-bottom: 24px; }

/* ========== CONTACT ========== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}
.contact-info-card { display: flex; gap: 16px; margin-bottom: 30px; }
.contact-info-icon {
  width: 50px; height: 50px;
  background: var(--crema-scuro);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.contact-info-icon svg { width: 22px; height: 22px; fill: var(--scuro); }
.contact-info-text h4 { font-family: 'Lato', sans-serif; font-weight: 700; margin-bottom: 4px; }
.contact-info-text p, .contact-info-text a { color: var(--testo-chiaro); font-size: 0.95rem; }

.contact-form {
  background: white;
  padding: 40px;
  border: 1px solid var(--grigio-bordo);
}
.contact-form h3 { font-size: 1.4rem; margin-bottom: 24px; color: var(--scuro); font-weight: 400; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 6px; font-weight: 600; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 1px; }
.form-group input, .form-group textarea, .form-group select {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--grigio-bordo);
  font-family: 'Lato', sans-serif;
  font-size: 0.95rem;
  transition: var(--transizione);
  background: var(--crema);
}
.form-group input:focus, .form-group textarea:focus {
  outline: none;
  border-color: var(--bronzo);
}
.form-group textarea { min-height: 120px; resize: vertical; }

.contact-map { margin-top: 60px; overflow: hidden; height: 400px; }
.contact-map iframe { width: 100%; height: 100%; border: none; }

/* ========== PAGE HEADER ========== */
.page-header {
  background: var(--scuro);
  color: white;
  text-align: center;
  padding: 150px 20px 80px;
  position: relative;
  overflow: hidden;
}
.page-header-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: blur(4px);
  transform: scale(1.1);
  opacity: 0.4;
}
.page-header h1 { font-size: 2.5rem; margin-bottom: 12px; font-weight: 400; }
.page-header p { font-size: 1rem; opacity: 0.7; }
.breadcrumb { margin-top: 20px; font-size: 0.8rem; opacity: 0.5; letter-spacing: 1px; text-transform: uppercase; }
.breadcrumb a { color: white; }
.breadcrumb a:hover { color: var(--bronzo); }

/* ========== STORIA PAGE ========== */
.storia-content { max-width: 750px; margin: 0 auto; }
.storia-content h2 { color: var(--scuro); margin: 40px 0 16px; font-size: 1.8rem; font-weight: 400; }
.storia-content p { color: var(--testo-chiaro); font-size: 1.05rem; margin-bottom: 16px; line-height: 1.9; }
.storia-values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; margin-top: 50px; }
.storia-value {
  text-align: center;
  padding: 30px;
  background: white;
  border: 1px solid var(--grigio-bordo);
}
.storia-value svg { width: 40px; height: 40px; fill: var(--bronzo); margin-bottom: 16px; }
.storia-value h3 { font-size: 1rem; margin-bottom: 8px; font-weight: 400; }
.storia-value p { font-size: 0.85rem; color: var(--testo-chiaro); }

/* ========== FOOTER ========== */
.footer {
  background: var(--scuro);
  color: rgba(255,255,255,0.7);
  padding: 80px 0 30px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 50px;
}
.footer h4 { color: white; margin-bottom: 20px; font-size: 1rem; font-weight: 400; letter-spacing: 1px; }
.footer-about p { font-size: 0.9rem; line-height: 1.7; margin-bottom: 16px; }
.footer-social { display: flex; gap: 12px; }
.footer-social a {
  width: 40px; height: 40px;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  transition: var(--transizione);
}
.footer-social a:hover { background: var(--bronzo); }
.footer-social a svg { width: 18px; height: 18px; fill: currentColor; }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { color: rgba(255,255,255,0.6); font-size: 0.9rem; }
.footer-links a:hover { color: var(--bronzo); }
.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 0.9rem;
}
.footer-contact-item svg { width: 16px; height: 16px; fill: var(--bronzo); flex-shrink: 0; margin-top: 4px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 30px;
  text-align: center;
  font-size: 0.8rem;
  opacity: 0.5;
  letter-spacing: 1px;
}

/* ========== TOAST ========== */
.toast {
  position: fixed;
  bottom: 30px; right: 30px;
  background: var(--scuro);
  color: white;
  padding: 16px 24px;
  border-radius: 0;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
  z-index: 9999;
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.4s ease;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 10px;
}
.toast.show { transform: translateY(0); opacity: 1; }
.toast svg { width: 20px; height: 20px; fill: var(--bronzo); }

/* ========== SLIDER ========== */
.slider {
  position: relative;
  overflow: hidden;
  max-width: 900px;
  margin: 0 auto;
}
.slider-track {
  display: flex;
  transition: transform 0.5s ease;
}
.slider-slide {
  min-width: 100%;
  position: relative;
}
.slider-slide img {
  width: 100%;
  height: 500px;
  object-fit: cover;
  display: block;
}
.slider-caption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
  color: white;
  padding: 40px 24px 20px;
  font-size: 0.9rem;
  letter-spacing: 1px;
  text-align: center;
}
.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.4);
  color: white;
  border: none;
  width: 50px; height: 50px;
  cursor: pointer;
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transizione);
}
.slider-btn:hover { background: var(--bronzo); }
.slider-prev { left: 0; }
.slider-next { right: 0; }
.slider-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
}
.slider-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--grigio-bordo);
  border: none;
  cursor: pointer;
  transition: var(--transizione);
  padding: 0;
}
.slider-dot.active { background: var(--bronzo); width: 28px; border-radius: 5px; }

@media (max-width: 768px) {
  .slider-slide img { height: 300px; }
  .slider-btn { width: 40px; height: 40px; font-size: 1rem; }
}

/* ========== ANIMATIONS ========== */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.visible { opacity: 1; transform: translateY(0); }

.nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 998;
  opacity: 0;
  pointer-events: none;
  transition: var(--transizione);
}
.nav-overlay.show { opacity: 1; pointer-events: all; }

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
  .categories-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .shop-layout { grid-template-columns: 1fr; }
  .shop-sidebar {
    position: static;
    display: flex; flex-wrap: wrap; gap: 8px;
  }
  .filter-group { margin-bottom: 16px; }
  .filter-btn {
    display: inline-block; width: auto;
    padding: 8px 16px;
    border: 1px solid var(--grigio-bordo);
    font-size: 0.85rem;
  }
}

/* Mobile menu - hidden on desktop */
.mobile-menu {
  display: none;
}

@media (max-width: 768px) {
  .nav-left, .nav-right { display: none; }

  .mobile-menu {
    display: flex !important;
    position: fixed !important;
    top: 0 !important;
    right: 0 !important;
    width: 280px !important;
    height: 100vh !important;
    background: #1a2520 !important;
    flex-direction: column !important;
    padding: 100px 30px 30px !important;
    gap: 0 !important;
    box-shadow: -5px 0 30px rgba(0,0,0,0.3) !important;
    transition: transform 0.3s ease !important;
    z-index: 9999 !important;
    list-style: none !important;
    margin: 0 !important;
    transform: translateX(100%);
  }
  .mobile-menu.open { transform: translateX(0) !important; }
  .mobile-menu li { width: 100%; }
  .mobile-menu a {
    display: block;
    padding: 14px 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    font-size: 1rem;
    color: rgba(255,255,255,0.85);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 500;
    text-decoration: none;
  }
  .mobile-menu a:hover { color: var(--bronzo); }

  .hamburger { display: flex; z-index: 1001; }

  .nav { justify-content: center; }
  .nav-logo { margin: 0; }

  .hero h1 { font-size: 2rem; }
  .hero p { font-size: 1rem; }
  .section { padding: 60px 0; }
  .section-header h2 { font-size: 1.8rem; }
  .about-grid { grid-template-columns: 1fr; gap: 30px; }
  .about-img { height: 300px; }
  .farm-grid { grid-template-columns: 1fr; }
  .product-detail { grid-template-columns: 1fr; gap: 30px; }
  .product-detail-img { height: 350px; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .cart-table thead { display: none; }
  .cart-table tr {
    display: flex; flex-wrap: wrap;
    padding: 16px 0;
    border-bottom: 1px solid var(--grigio-bordo);
    gap: 12px; align-items: center;
  }
  .cart-table td { border: none; padding: 0; }
  .cart-table td:first-child { width: 100%; }
  .page-header h1 { font-size: 1.8rem; }
  .storia-values { grid-template-columns: 1fr; }
  .categories-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 1.6rem; }
  .categories-grid { grid-template-columns: 1fr; }
  .hero-buttons { flex-direction: column; align-items: center; }
  .product-detail-actions { flex-direction: column; }
}
