@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;700&family=Lato:wght@300;400;700&display=swap');

:root {
  --color-primary: #4b793c;      
  --color-secondary: #c9a227;    
  --color-light: #f8f6ec;        
  --color-dark: #333333;         
  --color-accent: #8b4513;       
}

.story-section{
    background-color: #f8f6ec !important;
    padding: 4rem 0;
}

.btn-outline-filtro {
  font-weight: 600;
  --bs-btn-color: #4b793c;
  --bs-btn-bg: #f8f6ec;
  --bs-btn-border-color: #333333;
  --bs-btn-hover-color: #f8f6ec;
  --bs-btn-hover-bg: #c9a227;
  --bs-btn-hover-border-color: #333333;
  --bs-btn-focus-shadow-rgb: 13,110,253;
  --bs-btn-active-color: #f8f6ec;
  --bs-btn-active-bg: #4b793c;
  --bs-btn-active-border-color: #333333;
  --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
  --bs-gradient: none;
}

.text-color-primary {
    color: var(--color-primary) !important;
}

.text-color-secondary {
    color: var(--color-secondary) !important;
}

body {
  font-family: 'Lato', sans-serif;
  background-color: var(--color-light);
  color: var(--color-dark);
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', serif;
  color: var(--color-primary);
  font-weight: 700;
}

.navbar {
  background-color: var(--color-primary) !important;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  padding: 1rem 0;
}

.navbar-brand {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 1.8rem;
}

.navbar-dark .navbar-nav .nav-link {
  color: rgba(255,255,255,0.9);
  font-weight: 500;
  transition: all 0.3s ease;
}

.navbar-dark .navbar-nav .nav-item .nav-link:hover{
  color: var(--color-secondary) !important;
}

.hero {
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  color: white;
  position: relative;
  padding: 8rem 0;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.section-title {
  position: relative;
  display: inline-block;
  margin-bottom: 3rem;
  padding-bottom: 10px;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background-color: var(--color-secondary);
}

.feature-box {
  padding: 2rem;
  margin-bottom: 2rem;
  border-radius: 0;
  background-color: white;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border-left: 5px solid var(--color-primary);
}

.feature-box:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

/* Nuovo stile per le card dei prodotti */
.product-card {
  display: flex;
  flex-direction: row;
  background-color: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  height: 100%;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0,0,0,0.15);
}

.product-image {
  width: 40%;
  position: relative;
  overflow: hidden;
  background-color: #fff;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 1rem;
  transition: transform 0.4s ease;
}

.product-card:hover .product-image img {
  transform: scale(1.05);
}

.product-info {
  width: 60%;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
}

.product-title {
  color: var(--color-primary);
  margin-bottom: 0.25rem;
  font-size: 1.4rem;
}

.divider {
  height: 3px;
  width: 50px;
  background-color: var(--color-secondary);
  margin: 0.8rem 0 1rem;
}

.cta-section {
  background-color: var(--color-primary);
  color: white;
  padding: 4rem 0;
}

.contact-info-item {
  margin-bottom: 1.5rem;
  padding-left: 0;
}

.contact-info-item h3 {
  font-size: 1.2rem;
  color: var(--color-secondary);
  margin-bottom: 0.5rem;
}

.contact-form {
  background: white;
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.contact-form .form-control {
  border-radius: 0;
  margin-bottom: 1rem;
  border: 1px solid #ddd;
  padding: 0.8rem 1rem;
}

.contact-form .form-control:focus {
  box-shadow: none;
  border-color: var(--color-primary);
}

.btn-primary {
  background-color: var(--color-primary);
  border-color: var(--color-primary);
  padding: 0.8rem 2rem;
  font-weight: 600;
  border-radius: 0;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  background-color: var(--color-accent);
  border-color: var(--color-accent);
  transform: translateY(-2px);
}

.btn-outline-light {
  border-radius: 0;
  padding: 0.8rem 2rem;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-outline-light:hover {
  transform: translateY(-2px);
}

.footer {
  background-color: var(--color-primary);
  color: white;
  padding: 3rem 0;
}

.gallery-item {
  height: 100%;
  overflow: hidden;
  position: relative;
  border-radius: 10px;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

.img-fluid-custom {
  height: 250px;
  object-fit: cover;
  width: 100%;
}

.story-section {
  background-color: white;
  padding: 4rem 0;
}

.timeline {
  position: relative;
  padding: 2rem 0;
}

.timeline::before {
  content: '';
  position: absolute;
  height: 100%;
  width: 2px;
  background: var(--color-primary);
  left: 50%;
  transform: translateX(-50%);
}

.timeline-item {
  margin-bottom: 3rem;
  position: relative;
}

@media (max-width: 991px) {
  .product-card {
    margin-bottom: 1.5rem;
  }
}

@media (max-width: 767px) {
  .product-card {
    flex-direction: column;
  }
  
  .product-image, .product-info {
    width: 100%;
  }
  
  .product-image {
    height: 200px;
  }
  
  .product-title {
    margin-top: 0.5rem;
  }
}

@media (max-width: 992px) {
  .hero {
    padding: 6rem 0;
  }
  
  .timeline::before {
    left: 30px;
  }
}

@media (max-width: 768px) {
  .hero {
    padding: 4rem 0;
  }
  
  .section-title {
    margin-bottom: 2rem;
  }
  
  .feature-box {
    padding: 1.5rem;
  }
}