/* Tenuta Poggio Antico - Organic Farm & Agriturismo Theme */
:root {
  --primary: #76b82a;
  --primary-dark: #588e1e;
  --primary-light: #f2f9eb;
  --accent: #76b82a;
  --accent-light: #f2f9eb;
  --dark: #22292f;
  --dark-soft: #2d3748;
  --bg-main: #ffffff;
  --bg-cream: #faf9f6;
  --border: #e7e5e4;
  --text: #44403c;
  --text-muted: #78716c;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --shadow-sm: 0 2px 8px rgba(28, 25, 23, 0.05);
  --shadow-md: 0 10px 25px -5px rgba(118, 184, 42, 0.15), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 20px 35px -10px rgba(118, 184, 42, 0.22);
  --transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

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

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

body {
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  color: var(--text);
  background-color: var(--bg-main);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: 'Playfair Display', Georgia, serif;
  color: var(--dark);
  font-weight: 600;
  line-height: 1.25;
}

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

.container {
  width: 100%;
  max-width: 1380px;
  margin: 0 auto;
  padding: 0 24px;
}

.demo-bar-top {
  background: #1c1917;
  color: #a8a29e;
  font-size: 0.8rem;
  padding: 8px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.demo-bar-top a {
  color: #bef264;
  text-decoration: underline;
}
.demo-bar-top a:hover {
  color: #fff;
}

/* TOP FARM BAR */
.top-farm-bar {
  background: var(--dark);
  color: #ffffff;
  font-size: 0.8rem;
  padding: 8px 0;
}
.top-farm-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}
.top-farm-bar a {
  color: #e7e5e4;
  margin-left: 16px;
}
.top-farm-bar a:hover {
  color: #bef264;
}

/* HEADER */
.site-header {
  position: sticky;
  top: 0;
  background: rgba(250, 250, 249, 0.96);
  backdrop-filter: blur(12px);
  z-index: 1000;
  border-bottom: 1px solid var(--border);
}
.header-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 96px;
}
.brand-link {
  display: flex;
  align-items: center;
}
.brand-logo-img {
  height: 74px;
  max-height: 78px;
  width: auto;
  object-fit: contain;
  transition: transform 0.25s ease;
}
.brand-logo-img:hover {
  transform: scale(1.04);
}
.brand-title-box {
  display: none !important;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
.main-nav a {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--dark-soft);
  position: relative;
  padding: 6px 0;
}
.main-nav a:hover {
  color: var(--primary);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--primary);
  color: #ffffff;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.9rem;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(77, 124, 15, 0.3);
  transition: var(--transition);
}
.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(54, 83, 20, 0.4);
}
.btn-terracotta {
  background: var(--accent);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(194, 65, 12, 0.3);
}
.btn-terracotta:hover {
  background: #9a3412;
}
.btn-outline {
  border: 1px solid var(--dark);
  background: transparent;
  color: var(--dark);
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
}
.btn-outline:hover {
  background: var(--dark);
  color: #ffffff;
}

.cart-trigger-btn {
  background: var(--primary-light);
  color: var(--primary-dark);
  border: none;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}
.cart-badge {
  background: var(--primary-dark);
  color: #ffffff;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  font-size: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* HERO COVER SECTION (AUTHENTIC TEMPLATE 304) */
.hero-cover-section {
  position: relative;
  min-height: 600px;
  height: 75vh;
  max-height: 750px;
  background: url('images/41434.jpg') center 25% / cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 24px;
  overflow: hidden;
}
.hero-cover-inner {
  max-width: 860px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
  padding: 20px;
}
.hero-cover-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 3.2rem;
  font-weight: 700;
  line-height: 1.18;
  color: #2b3a4a;
  margin-bottom: 20px;
  letter-spacing: -0.5px;
  text-shadow: 0 1px 3px rgba(255, 255, 255, 0.85);
}
.hero-cover-subtitle {
  font-size: 1.15rem;
  color: #334155;
  line-height: 1.65;
  margin: 0 auto 36px;
  max-width: 660px;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
}
.btn-cover-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: #76b82a;
  color: #ffffff;
  font-size: 1.05rem;
  font-weight: 700;
  padding: 13px 42px;
  border-radius: 50px;
  box-shadow: 0 6px 20px rgba(118, 184, 42, 0.45);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
}
.btn-cover-pill:hover {
  background: #629c20;
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(118, 184, 42, 0.55);
  color: #ffffff;
}

@media (max-width: 768px) {
  .hero-cover-section {
    min-height: 480px;
    height: auto;
    padding: 60px 16px;
  }
  .hero-cover-title {
    font-size: 2.1rem;
  }
  .hero-cover-subtitle {
    font-size: 1rem;
    margin-bottom: 24px;
  }
}

/* ABOUT SIGNATURE SECTION (3-PHOTO COLLAGE AS IN COVER.JPG) */
.about-cover-section {
  padding: 90px 0 80px;
  background: #ffffff;
}
.about-cover-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 60px;
}
.about-cover-visual {
  position: relative;
  display: flex;
  justify-content: center;
}
.about-collage-img {
  width: 100%;
  max-width: 580px;
  height: auto;
  display: block;
  filter: drop-shadow(0 15px 35px rgba(0, 0, 0, 0.08));
  transition: transform 0.4s ease;
}
.about-collage-img:hover {
  transform: scale(1.02);
}
.about-cover-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.about-cover-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 2.6rem;
  font-weight: 600;
  color: #76b82a;
  line-height: 1.2;
  margin-bottom: 22px;
}
.about-cover-desc {
  font-size: 1.05rem;
  color: #555e69;
  line-height: 1.7;
  margin-bottom: 30px;
}
.about-cover-features {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: 36px;
  width: 100%;
}
.about-feature-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}
.about-feature-icon {
  font-size: 1.5rem;
  color: #76b82a;
  margin-top: 2px;
  min-width: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.about-feature-text strong {
  display: block;
  font-size: 0.98rem;
  color: #1e293b;
  font-weight: 700;
  margin-bottom: 3px;
}
.about-feature-text span {
  font-size: 0.88rem;
  color: #64748b;
  line-height: 1.45;
}
.btn-cover-outline {
  border: 2px solid #2b3a4a;
  background: transparent;
  color: #2b3a4a;
  padding: 12px 34px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  transition: all 0.25s ease;
  display: inline-block;
  text-decoration: none;
}
.btn-cover-outline:hover {
  background: #2b3a4a;
  color: #ffffff;
}

@media (max-width: 992px) {
  .about-cover-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .about-cover-title {
    font-size: 2.1rem;
  }
}

/* FARM STATS STRIP */
.farm-stats-strip {
  background: #fdfcf9;
  border-top: 1px solid #f1ece4;
  border-bottom: 1px solid #f1ece4;
  padding: 40px 0;
}
.farm-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}
@media (max-width: 768px) {
  .farm-stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}
.farm-stat-num {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 2.4rem;
  font-weight: 700;
  color: #76b82a;
  margin-bottom: 4px;
}
.farm-stat-lbl {
  font-size: 0.8rem;
  color: #64748b;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

/* SECTION COMMONS */
.section {
  padding: 90px 0;
}
.section-cream {
  background: var(--bg-cream);
}
.section-header {
  text-align: center;
  max-width: 650px;
  margin: 0 auto 50px;
}
.section-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--primary);
  letter-spacing: 2px;
  margin-bottom: 12px;
}
.section-title {
  font-size: 2.2rem;
  margin-bottom: 14px;
}
.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
}

/* CATEGORIES FILTER TABS */
.filter-tabs {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}
.filter-tab {
  background: #ffffff;
  border: 1px solid var(--border);
  padding: 10px 22px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--dark-soft);
  cursor: pointer;
  transition: var(--transition);
}
.filter-tab:hover {
  border-color: var(--primary);
  color: var(--primary);
}
.filter-tab.active {
  background: var(--primary-dark);
  color: #ffffff;
  border-color: var(--primary-dark);
}

/* PRODUCTS GRID */
.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}
.product-card {
  background: #ffffff;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: var(--transition);
}
.product-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: #bef264;
}
.prod-img-wrap {
  position: relative;
  height: 240px;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 16px;
  border-bottom: 1px solid var(--border);
}
.prod-img-wrap img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: transform 0.5s ease;
}
.product-card:hover .prod-img-wrap img {
  transform: scale(1.06);
}
.prod-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: var(--primary-dark);
  color: #ffffff;
  font-size: 0.725rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 4px;
}
.prod-content {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.prod-title {
  font-size: 1.25rem;
  margin-bottom: 8px;
}
.prod-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 16px;
  flex: 1;
}
.prod-specs-box {
  background: var(--bg-main);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  color: var(--dark-soft);
  margin-bottom: 16px;
  display: flex;
  justify-content: space-between;
}
.prod-price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}
.prod-price {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--dark);
}
.prod-btn-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
}
.btn-wa-inquire {
  background: #25d366;
  color: #ffffff;
  border: none;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}
.btn-wa-inquire:hover {
  background: #1eb855;
}

/* EXPERIENCES & TOURS */
.tours-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 36px;
}
.tour-card {
  background: #ffffff;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}
.tour-img-wrap {
  height: 260px;
  overflow: hidden;
}
.tour-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.tour-card:hover .tour-img-wrap img {
  transform: scale(1.05);
}
.tour-content {
  padding: 30px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.tour-title {
  font-size: 1.45rem;
  margin-bottom: 10px;
}
.tour-meta {
  display: flex;
  gap: 20px;
  font-size: 0.85rem;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 16px;
}
.tour-includes {
  list-style: none;
  margin-bottom: 24px;
  flex: 1;
}
.tour-includes li {
  font-size: 0.875rem;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.tour-includes li::before {
  content: '';
  font-size: 0.8rem;
}

/* VALUES & PHILOSOPHY */
.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}
.value-card {
  background: #ffffff;
  border-radius: var(--radius-md);
  padding: 32px 26px;
  border: 1px solid var(--border);
  text-align: center;
}
.value-title {
  font-size: 1.25rem;
  margin-bottom: 12px;
  color: var(--primary-dark);
}
.value-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* FOOTER */
.site-footer {
  background: #1c1917;
  color: #a8a29e;
  padding: 80px 0 30px;
  font-size: 0.9rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 40px;
  margin-bottom: 60px;
}
.footer-brand .brand-name {
  color: #ffffff;
  font-size: 1.5rem;
  margin-bottom: 8px;
}
.footer-col h4 {
  color: #ffffff;
  font-size: 1.1rem;
  margin-bottom: 20px;
}
.footer-links {
  list-style: none;
}
.footer-links li {
  margin-bottom: 10px;
}
.footer-links a:hover {
  color: #bef264;
}
.footer-bottom {
  padding-top: 30px;
  border-top: 1px solid #292524;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.8rem;
}

/* SLIDE-OUT CART DRAWER */
.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(28, 25, 23, 0.6);
  backdrop-filter: blur(4px);
  z-index: 2000;
  display: none;
}
.cart-overlay.open {
  display: block;
}
.cart-drawer {
  position: fixed;
  top: 0;
  right: -450px;
  width: 440px;
  max-width: 90vw;
  height: 100vh;
  background: #ffffff;
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.15);
  z-index: 2001;
  display: flex;
  flex-direction: column;
  transition: right 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.cart-drawer.open {
  right: 0;
}
.cart-header {
  padding: 22px 24px;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.cart-close-btn {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
}
.cart-items-body {
  padding: 24px;
  overflow-y: auto;
  flex: 1;
}
.cart-empty {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
}
.cart-row {
  display: grid;
  grid-template-columns: 50px 1fr auto;
  gap: 12px;
  align-items: center;
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}
.cart-row img {
  width: 50px;
  height: 50px;
  object-fit: cover;
  border-radius: var(--radius-sm);
}
.cart-footer {
  padding: 24px;
  background: var(--bg-main);
  border-top: 1px solid var(--border);
}
.cart-total-box {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 16px;
}

/* TOUR BOOKING MODAL */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(28, 25, 23, 0.7);
  backdrop-filter: blur(6px);
  z-index: 2500;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal-overlay.open {
  display: flex;
}
.modal-card {
  background: #ffffff;
  width: 100%;
  max-width: 560px;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}
.modal-header {
  background: var(--primary-dark);
  color: #ffffff;
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.modal-header h3 {
  color: #ffffff;
  font-size: 1.25rem;
}
.modal-close {
  background: none;
  border: none;
  color: #ffffff;
  font-size: 1.5rem;
  cursor: pointer;
}
.modal-body {
  padding: 24px;
}
.form-group {
  margin-bottom: 16px;
}
.form-group label {
  display: block;
  font-weight: 700;
  font-size: 0.85rem;
  margin-bottom: 6px;
  color: var(--dark);
}
.form-group input,
.form-group select {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.95rem;
}

/* FLOATING WHATSAPP */
.floating-whatsapp {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 60px;
  height: 60px;
  background: #25d366;
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.85rem;
  box-shadow: 0 10px 25px rgba(37, 211, 102, 0.4);
  z-index: 999;
  transition: transform 0.25s ease;
}
.floating-whatsapp:hover {
  transform: scale(1.1);
  color: #ffffff;
}

/* RESPONSIVE */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .tours-grid {
    grid-template-columns: 1fr;
  }
  .values-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .main-nav {
    display: none;
  }
  .hero-title {
    font-size: 2.2rem;
  }
  .hero-stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .products-grid {
    grid-template-columns: 1fr;
  }
}


@media (min-width: 1440px) {
  .container {
    max-width: 1440px !important;
    padding-left: 32px;
    padding-right: 32px;
  }
}


/* ==========================================================================
   PAGE SPECIFIC STYLES (Consolidated from in-page <style> tags)
   ========================================================================== */

/* Extracted from carrello.php */
.cart-hero {
      background: linear-gradient(rgba(28, 25, 23, 0.78), rgba(28, 25, 23, 0.88)), url('images/41434.jpg') center/cover no-repeat;
      color: #fff;
      padding: 55px 0 45px;
      text-align: center;
    }
    .cart-hero h1 {
      font-size: 2.5rem;
      font-weight: 700;
      color: #fff;
      margin-bottom: 8px;
    }
    .cart-hero p {
      color: #e7e5e4;
      font-size: 1.05rem;
    }

    .cart-grid-layout {
      display: grid;
      grid-template-columns: 1fr 380px;
      gap: 35px;
      padding: 50px 0 80px;
      align-items: start;
    }
    @media (max-width: 992px) {
      .cart-grid-layout {
        grid-template-columns: 1fr;
      }
    }

    .cart-table-card {
      background: #fff;
      border: 1px solid var(--border);
      border-radius: var(--radius-md);
      overflow: hidden;
      box-shadow: var(--shadow-sm);
    }
    .farm-table {
      width: 100%;
      border-collapse: collapse;
      text-align: left;
    }
    .farm-table th {
      background: #fbfbfa;
      padding: 16px 20px;
      font-size: 0.85rem;
      font-weight: 700;
      color: var(--text-muted);
      text-transform: uppercase;
      border-bottom: 1px solid var(--border);
    }
    .farm-table td {
      padding: 18px 20px;
      border-bottom: 1px solid var(--border);
      vertical-align: middle;
    }

    .item-cell {
      display: flex;
      align-items: center;
      gap: 16px;
    }
    .item-cell img {
      width: 68px;
      height: 68px;
      object-fit: cover;
      border-radius: var(--radius-sm);
      border: 1px solid var(--border);
    }
    .item-meta h4 {
      font-size: 1rem;
      font-weight: 700;
      color: var(--dark);
      margin-bottom: 4px;
      font-family: inherit;
    }
    .item-meta p {
      font-size: 0.82rem;
      color: var(--text-muted);
      margin: 0;
    }

    .qty-box {
      display: inline-flex;
      align-items: center;
      border: 1px solid var(--border);
      border-radius: 6px;
      overflow: hidden;
      background: #fff;
    }
    .qty-box button {
      background: #f5f5f4;
      border: none;
      width: 32px;
      height: 32px;
      cursor: pointer;
      font-weight: bold;
      color: var(--dark);
    }
    .qty-box input {
      width: 45px;
      height: 32px;
      border: none;
      text-align: center;
      font-weight: 700;
      color: var(--dark);
    }

    .btn-del {
      background: none;
      border: none;
      color: #dc2626;
      font-size: 0.85rem;
      cursor: pointer;
      font-weight: 600;
    }
    .btn-del:hover {
      text-decoration: underline;
    }

    .cart-summary-box {
      background: #fff;
      border: 1px solid var(--border);
      border-radius: var(--radius-md);
      padding: 28px;
      box-shadow: var(--shadow-sm);
      position: sticky;
      top: 20px;
    }
    .cart-summary-box h3 {
      font-size: 1.3rem;
      font-weight: 700;
      margin-bottom: 20px;
      color: var(--dark);
      border-bottom: 2px solid #f5f5f4;
      padding-bottom: 12px;
    }

    .sum-row {
      display: flex;
      justify-content: space-between;
      margin-bottom: 14px;
      font-size: 0.95rem;
      color: var(--text);
    }
    .sum-row.total {
      font-size: 1.3rem;
      font-weight: 800;
      color: var(--primary-dark);
      border-top: 2px solid var(--border);
      padding-top: 16px;
      margin-top: 16px;
    }

    .progress-bar-wrap {
      background: #f5f5f4;
      border-radius: 999px;
      height: 8px;
      overflow: hidden;
      margin: 10px 0 16px;
    }
    .progress-bar-fill {
      height: 100%;
      background: var(--primary);
      width: 0%;
      transition: width 0.3s ease;
    }

    .empty-cart-state {
      text-align: center;
      padding: 70px 20px;
    }

/* Extracted from catalogo.php */
.cat-hero {
      background: linear-gradient(rgba(28, 25, 23, 0.75), rgba(28, 25, 23, 0.85)), url('images/41434.jpg') center/cover no-repeat;
      color: #fff;
      padding: 65px 0 50px;
      text-align: center;
    }
    .cat-hero h1 {
      font-size: 2.8rem;
      font-weight: 700;
      color: #fff;
      margin-bottom: 10px;
    }
    .cat-hero p {
      color: #e7e5e4;
      font-size: 1.1rem;
      max-width: 650px;
      margin: 0 auto;
    }

    .filter-bar-wrap {
      background: #fff;
      border: 1px solid var(--border);
      border-radius: var(--radius-md);
      padding: 18px 24px;
      margin: 35px 0 30px;
      display: flex;
      justify-content: space-between;
      align-items: center;
      flex-wrap: wrap;
      gap: 16px;
      box-shadow: var(--shadow-sm);
    }
    .pills-scroll {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
    }
    .pill-link {
      padding: 8px 18px;
      border-radius: 999px;
      font-size: 0.88rem;
      font-weight: 600;
      color: var(--text);
      background: #f5f5f4;
      text-decoration: none;
      transition: var(--transition);
    }
    .pill-link:hover, .pill-link.active {
      background: var(--primary);
      color: #fff;
    }

/* Extracted from chi-siamo.php */
.about-hero {
      background: linear-gradient(rgba(28, 25, 23, 0.78), rgba(28, 25, 23, 0.9)), url('images/41434.jpg') center/cover no-repeat;
      color: #fff;
      padding: 70px 0 55px;
      text-align: center;
    }
    .about-hero h1 {
      font-size: 2.9rem;
      font-weight: 700;
      color: #fff;
      margin-bottom: 12px;
    }
    .about-hero p {
      color: #e7e5e4;
      font-size: 1.15rem;
      max-width: 680px;
      margin: 0 auto;
    }

    .story-block {
      padding: 70px 0;
    }
    .story-layout {
      display: grid;
      grid-template-columns: 1.1fr 1fr;
      gap: 50px;
      align-items: center;
    }
    @media (max-width: 900px) {
      .story-layout {
        grid-template-columns: 1fr;
      }
    }
    .story-desc h2 {
      font-size: 2.2rem;
      font-weight: 700;
      color: var(--dark);
      margin-bottom: 18px;
      line-height: 1.25;
    }
    .story-desc p {
      color: var(--text);
      font-size: 1.02rem;
      line-height: 1.75;
      margin-bottom: 16px;
    }
    .story-photo {
      border-radius: var(--radius-md);
      overflow: hidden;
      box-shadow: var(--shadow-md);
      border: 1px solid var(--border);
    }
    .story-photo img {
      width: 100%;
      height: 440px;
      object-fit: cover;
      display: block;
    }

    .stats-stripe {
      background: var(--dark);
      color: #fff;
      padding: 50px 0;
    }
    .stats-flex {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
      gap: 30px;
      text-align: center;
    }
    .stat-val {
      font-size: 2.8rem;
      font-weight: 700;
      color: #bef264;
      font-family: 'Playfair Display', Georgia, serif;
    }
    .stat-label {
      font-size: 0.95rem;
      color: #d6d3d1;
    }

    .values-area {
      background: #fbfbfa;
      padding: 75px 0;
      border-top: 1px solid var(--border);
      border-bottom: 1px solid var(--border);
    }
    .values-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
      gap: 30px;
      margin-top: 40px;
    }
    .value-card {
      background: #fff;
      padding: 32px;
      border-radius: var(--radius-md);
      border: 1px solid var(--border);
      box-shadow: var(--shadow-sm);
    }
    .value-card h3 {
      font-size: 1.3rem;
      font-weight: 700;
      color: var(--dark);
      margin-bottom: 10px;
    }
    .value-card p {
      font-size: 0.92rem;
      color: var(--text);
      line-height: 1.65;
      margin: 0;
    }

/* Extracted from contatti.php */
.contact-hero {
      background: linear-gradient(rgba(28, 25, 23, 0.78), rgba(28, 25, 23, 0.9)), url('images/18912.jpg') center/cover no-repeat;
      color: #fff;
      padding: 65px 0 50px;
      text-align: center;
    }
    .contact-hero h1 {
      font-size: 2.8rem;
      font-weight: 700;
      color: #fff;
      margin-bottom: 10px;
    }
    .contact-hero p {
      color: #e7e5e4;
      font-size: 1.1rem;
      max-width: 650px;
      margin: 0 auto;
    }

    .contact-layout-grid {
      display: grid;
      grid-template-columns: 1fr 1.2fr;
      gap: 50px;
      padding: 60px 0 80px;
      align-items: start;
    }
    @media (max-width: 900px) {
      .contact-layout-grid {
        grid-template-columns: 1fr;
      }
    }

    .info-list-stack {
      display: flex;
      flex-direction: column;
      gap: 20px;
    }
    .farm-info-card {
      background: #fff;
      border: 1px solid var(--border);
      border-radius: var(--radius-md);
      padding: 24px;
      display: flex;
      gap: 18px;
      align-items: flex-start;
      box-shadow: var(--shadow-sm);
    }
    .card-ico {
      width: 46px;
      height: 46px;
      border-radius: 10px;
      background: var(--primary-light);
      color: var(--primary-dark);
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 1.3rem;
      flex-shrink: 0;
    }
    .card-txt h3 {
      font-size: 1.05rem;
      font-weight: 700;
      color: var(--dark);
      margin-bottom: 4px;
      font-family: inherit;
    }
    .card-txt p {
      font-size: 0.92rem;
      color: var(--text);
      margin: 0;
      line-height: 1.5;
    }
    .card-txt a {
      color: var(--primary);
      font-weight: 600;
    }

    .form-wrapper-card {
      background: #fff;
      border: 1px solid var(--border);
      border-radius: var(--radius-md);
      padding: 36px;
      box-shadow: var(--shadow-sm);
    }
    .form-wrapper-card h2 {
      font-size: 1.6rem;
      font-weight: 700;
      color: var(--dark);
      margin-bottom: 8px;
    }
    .form-wrapper-card p.lead {
      color: var(--text-muted);
      font-size: 0.92rem;
      margin-bottom: 24px;
    }

    .input-row-half {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 16px;
    }
    @media (max-width: 600px) {
      .input-row-half {
        grid-template-columns: 1fr;
      }
    }
    .c-field {
      margin-bottom: 18px;
    }
    .c-field label {
      display: block;
      font-size: 0.88rem;
      font-weight: 700;
      color: var(--dark);
      margin-bottom: 6px;
    }
    .c-field input,
    .c-field select,
    .c-field textarea {
      width: 100%;
      padding: 12px 14px;
      border: 1px solid var(--border);
      border-radius: var(--radius-sm);
      font-size: 0.95rem;
      font-family: inherit;
      background: #fafaf9;
    }
    .c-field input:focus,
    .c-field select:focus,
    .c-field textarea:focus {
      outline: none;
      border-color: var(--primary);
      box-shadow: 0 0 0 3px rgba(77, 124, 15, 0.15);
      background: #fff;
    }

/* Extracted from degustazioni.php */
.tour-hero {
      background: linear-gradient(rgba(28, 25, 23, 0.75), rgba(28, 25, 23, 0.88)), url('images/18912.jpg') center/cover no-repeat;
      color: #fff;
      padding: 70px 0 55px;
      text-align: center;
    }
    .tour-hero h1 {
      font-size: 2.9rem;
      font-weight: 700;
      color: #fff;
      margin-bottom: 12px;
    }
    .tour-hero p {
      color: #e7e5e4;
      font-size: 1.15rem;
      max-width: 680px;
      margin: 0 auto;
    }

    .tours-showcase-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 35px;
      margin: 50px 0 70px;
    }
    @media (max-width: 900px) {
      .tours-showcase-grid {
        grid-template-columns: 1fr;
      }
    }

    .tour-full-card {
      background: #fff;
      border: 1px solid var(--border);
      border-radius: var(--radius-md);
      overflow: hidden;
      box-shadow: var(--shadow-sm);
      display: flex;
      flex-direction: column;
    }
    .tour-full-card img {
      width: 100%;
      height: 280px;
      object-fit: cover;
    }
    .tour-card-body {
      padding: 30px;
      display: flex;
      flex-direction: column;
      flex: 1;
    }
    .tour-card-body h3 {
      font-size: 1.5rem;
      font-weight: 700;
      color: var(--dark);
      margin-bottom: 10px;
    }
    .tour-meta-strip {
      display: flex;
      gap: 16px;
      font-size: 0.9rem;
      color: var(--text-muted);
      margin-bottom: 16px;
      padding-bottom: 14px;
      border-bottom: 1px solid var(--border);
    }
    .tour-price-tag {
      color: var(--primary-dark);
      font-weight: 700;
      font-size: 1.25rem;
      font-family: 'Playfair Display', Georgia, serif;
    }

    .includes-list {
      list-style: none;
      margin: 16px 0 24px;
      padding: 0;
    }
    .includes-list li {
      position: relative;
      padding-left: 24px;
      font-size: 0.92rem;
      color: var(--text);
      margin-bottom: 8px;
    }
    .includes-list li::before {
      content: '✓';
      position: absolute;
      left: 0;
      color: var(--primary);
      font-weight: bold;
    }

    .booking-section-wrap {
      background: #fbfbfa;
      border: 1px solid var(--border);
      border-radius: var(--radius-lg);
      padding: 50px 40px;
      margin-bottom: 80px;
      display: grid;
      grid-template-columns: 1.2fr 1fr;
      gap: 50px;
    }
    @media (max-width: 900px) {
      .booking-section-wrap {
        grid-template-columns: 1fr;
        padding: 30px 20px;
      }
    }

    .form-grid-two {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 16px;
    }
    @media (max-width: 600px) {
      .form-grid-two {
        grid-template-columns: 1fr;
      }
    }
    .farm-form-group {
      margin-bottom: 18px;
    }
    .farm-form-group label {
      display: block;
      font-size: 0.88rem;
      font-weight: 700;
      color: var(--dark);
      margin-bottom: 6px;
    }
    .farm-form-group input,
    .farm-form-group select,
    .farm-form-group textarea {
      width: 100%;
      padding: 12px 14px;
      border: 1px solid var(--border);
      border-radius: var(--radius-sm);
      font-size: 0.95rem;
      font-family: inherit;
      background: #fff;
    }
    .farm-form-group input:focus,
    .farm-form-group select:focus,
    .farm-form-group textarea:focus {
      outline: none;
      border-color: var(--primary);
      box-shadow: 0 0 0 3px rgba(77, 124, 15, 0.15);
    }

/* Extracted from prodotto.php */
.breadcrumb-nav {
      padding: 18px 0;
      font-size: 0.85rem;
      color: var(--text-muted);
      border-bottom: 1px solid var(--border);
      margin-bottom: 40px;
    }
    .breadcrumb-nav a {
      color: var(--text);
    }
    .breadcrumb-nav a:hover {
      color: var(--primary);
    }
    .breadcrumb-nav span {
      margin: 0 8px;
      color: #cbd5e1;
    }

    .prod-detail-grid {
      display: grid;
      grid-template-columns: 1fr 1.1fr;
      gap: 50px;
      margin-bottom: 70px;
    }
    @media (max-width: 900px) {
      .prod-detail-grid {
        grid-template-columns: 1fr;
        gap: 35px;
      }
    }

    .prod-gallery-card {
      background: #fff;
      border: 1px solid var(--border);
      border-radius: var(--radius-md);
      overflow: hidden;
      box-shadow: var(--shadow-sm);
      position: relative;
    }
    .prod-gallery-card img {
      width: 100%;
      height: 480px;
      object-fit: cover;
      display: block;
    }
    .badge-harvest {
      position: absolute;
      top: 18px;
      left: 18px;
      background: var(--primary);
      color: #fff;
      padding: 6px 14px;
      border-radius: 999px;
      font-size: 0.8rem;
      font-weight: 700;
      letter-spacing: 0.03em;
    }

    .prod-info-box h1 {
      font-size: 2.3rem;
      font-weight: 700;
      color: var(--dark);
      margin-bottom: 12px;
      line-height: 1.25;
    }
    .prod-price-row {
      display: flex;
      align-items: baseline;
      gap: 12px;
      margin-bottom: 20px;
    }
    .prod-price-val {
      font-size: 2.2rem;
      font-weight: 700;
      color: var(--primary-dark);
      font-family: 'Playfair Display', Georgia, serif;
    }
    .prod-tax-note {
      font-size: 0.85rem;
      color: var(--text-muted);
    }

    .prod-features-table {
      width: 100%;
      border-collapse: collapse;
      margin: 24px 0;
      background: #fff;
      border: 1px solid var(--border);
      border-radius: var(--radius-sm);
      overflow: hidden;
    }
    .prod-features-table td {
      padding: 12px 16px;
      border-bottom: 1px solid var(--border);
      font-size: 0.9rem;
    }
    .prod-features-table td:first-child {
      font-weight: 600;
      color: var(--dark);
      width: 38%;
      background: #fbfbfa;
    }

    .qty-order-row {
      display: flex;
      gap: 16px;
      margin-top: 25px;
      align-items: center;
      flex-wrap: wrap;
    }
    .qty-ctrl-wrap {
      display: inline-flex;
      align-items: center;
      border: 1px solid var(--border);
      border-radius: var(--radius-sm);
      background: #fff;
    }
    .qty-ctrl-wrap button {
      background: none;
      border: none;
      width: 38px;
      height: 44px;
      font-size: 1.2rem;
      cursor: pointer;
      color: var(--dark);
    }
    .qty-ctrl-wrap button:hover {
      background: #f5f5f4;
    }
    .qty-ctrl-wrap input {
      width: 50px;
      height: 44px;
      border: none;
      text-align: center;
      font-size: 1.1rem;
      font-weight: 700;
    }

    .farm-guarantees {
      margin-top: 35px;
      padding-top: 25px;
      border-top: 1px solid var(--border);
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 16px;
      font-size: 0.85rem;
      color: var(--text-muted);
    }
    .farm-guarantee-item {
      display: flex;
      align-items: center;
      gap: 8px;
    }


/* Comprehensive Mobile Polish (360px - 768px) */
@media (max-width: 768px) {
  .container {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }
  
  button, .btn, .nav-link, a.btn {
    min-height: 42px;
  }
  
  h1, .hero-title, .page-hero-title {
    font-size: clamp(1.6rem, 5vw, 2.4rem) !important;
    line-height: 1.25 !important;
  }
  h2, .section-title, .shelf-title {
    font-size: clamp(1.3rem, 4vw, 1.8rem) !important;
    line-height: 1.3 !important;
  }
  
  table {
    display: block;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}

@media (max-width: 480px) {
  .grid-2col-responsive,
  .grid-3col-responsive,
  .grid-4col-responsive,
  .grid-split-responsive,
  .grid-split-rev-responsive {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }
  
  input[type="text"],
  input[type="email"],
  input[type="tel"],
  select,
  textarea {
    font-size: 16px !important;
    width: 100% !important;
    box-sizing: border-box;
  }
}
