/* Footer Styles */
.footer {
  background-color: var(--color-primary);
  color: var(--color-bg-primary);
  padding: var(--space-xl) 0;
  margin-top: var(--space-xl);
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1.5fr 1.5fr;
  gap: var(--space-xl);
  margin-bottom: var(--space-xl);
  align-items: start;
}

/* Footer Brand Section */
.footer-brand {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.footer-brand > a {
  display: inline-block;
  transition: opacity 0.3s ease;
}

.footer-brand > a:hover {
  opacity: 0.85;
}

.footer-logo {
  max-width: 180px;
  height: auto;
  object-fit: contain;
  cursor: pointer;
}

.footer-contacts {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.footer-contacts p {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  margin: 0;
  font-size: var(--font-size-base);
  line-height: 1.6;
}

.footer-contacts i {
  color: var(--color-highlight);
  width: 18px;
  font-size: var(--font-size-base);
  flex-shrink: 0;
}

.footer-contacts a {
  color: var(--color-bg-primary);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-contacts a:hover {
  color: var(--color-highlight);
  text-decoration: underline;
}

/* Footer Hours Section */
.footer-hours h3,
.footer-delivery h3 {
  color: var(--color-highlight);
  margin-bottom: var(--space-md);
  font-size: var(--font-size-xl);
  font-weight: 700;
}

.footer-hours p {
  margin-bottom: var(--space-xs);
  line-height: 1.6;
  font-size: var(--font-size-base);
}

.footer-hours p strong {
  color: var(--color-highlight);
}

/* Footer Delivery Section */
.footer-delivery {
  display: flex;
  flex-direction: column;
}

.delivery-apps {
  display: flex;
  gap: var(--space-md);
  align-items: center;
}

.delivery-apps a {
  display: block;
  transition: transform 0.3s ease, opacity 0.3s ease;
  line-height: 0;
}

.delivery-apps a:hover {
  transform: scale(1.05);
  opacity: 0.9;
}

.delivery-apps img {
  height: 50px !important;
  max-height: 50px !important;
  width: auto !important;
  object-fit: contain;
  display: block;
}

/* Footer Bottom */
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: var(--space-lg);
  text-align: center;
}

.footer-bottom p {
  margin-bottom: var(--space-md);
  font-size: var(--font-size-sm);
  line-height: 1.8;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--space-xs);
}

.footer-bottom p a {
  color: var(--color-highlight);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-bottom p a:hover {
  color: var(--color-bg-primary);
  text-decoration: underline;
}

/* Heart Animation Section */
.heart-animation {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  font-size: var(--font-size-sm);
}

.heart-icon {
  font-size: var(--font-size-base);
  animation: heartbeat 1.5s infinite;
  cursor: pointer;
  line-height: 1;
}

@keyframes heartbeat {
  0% { transform: scale(1); }
  14% { transform: scale(1.1); }
  28% { transform: scale(1); }
  42% { transform: scale(1.1); }
  70% { transform: scale(1); }
}

.heart-animation a {
  display: inline-flex;
  align-items: center;
  line-height: 1;
  text-decoration: none;
}

/* FIX CRITICO - Logo MyWebby piccolo */
.footer .mywebby-logo,
.footer-bottom .mywebby-logo,
.heart-animation .mywebby-logo,
.mywebby-logo {
  height: 18px !important;
  max-height: 18px !important;
  min-height: 18px !important;
  width: auto !important;
  max-width: 80px !important;
  object-fit: contain !important;
  display: inline-block !important;
  vertical-align: middle !important;
  margin-left: 4px !important;
  transition: opacity 0.3s ease;
}

.heart-animation a:hover .mywebby-logo {
  opacity: 0.8;
}

/* Responsive adjustments */
@media (max-width: 992px) {
  .footer-content {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
  }
  
  .footer-brand {
    grid-column: 1 / -1;
    align-items: center;
    text-align: center;
  }
  
  .footer-contacts {
    align-items: center;
  }
  
  .footer-hours,
  .footer-delivery {
    text-align: center;
  }
  
  .delivery-apps {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .footer-content {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
    text-align: center;
  }
  
  .footer-brand {
    align-items: center;
  }
  
  .footer-logo {
    max-width: 140px;
  }
  
  .footer-contacts {
    align-items: center;
  }
  
  .delivery-apps {
    justify-content: center;
  }
  
  .delivery-apps img {
    height: 45px !important;
  }
  
  .footer-bottom p {
    flex-direction: column;
    gap: var(--space-xs);
  }
  
  .heart-animation {
    flex-wrap: wrap;
  }
  
  .mywebby-logo {
    height: 16px !important;
    max-height: 16px !important;
    min-height: 16px !important;
  }
}

@media (max-width: 480px) {
  .footer {
    padding: var(--space-lg) 0;
  }
  
  .footer-content {
    gap: var(--space-md);
  }
  
  .footer-logo {
    max-width: 120px;
  }
  
  .delivery-apps {
    gap: var(--space-sm);
  }
  
  .delivery-apps img {
    height: 40px !important;
  }
  
  .footer-contacts p {
    font-size: var(--font-size-sm);
  }
  
  .heart-animation {
    font-size: 0.75rem;
  }
  
  .mywebby-logo {
    height: 14px !important;
    max-height: 14px !important;
    min-height: 14px !important;
  }
}