.footer {
  background: linear-gradient(135deg, #ec4899 0%, #db2777 50%, #a855f7 100%);
  color: #ffffff;
  position: relative;
  overflow: hidden;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="footerPattern" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1" fill="rgba(255,255,255,0.03)"/></pattern></defs><rect width="100" height="100" fill="url(%23footerPattern)"/></svg>');
  z-index: 1;
}

.footer-content {
  position: relative;
  z-index: 2;
  padding: 4rem 0 2rem;
}

/* Prima riga: Logo, Prenota Ora, Orari - sempre orizzontale */
.footer-top-row {
  display: grid;
  grid-template-columns: auto auto 1fr;
  gap: 1.5rem;
  margin-bottom: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  align-items: start;
}

.footer-logo-section {
  display: flex;
  align-items: center;
}

.footer-booking-section {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

.booking-buttons-column {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  width: 100%;
}

.footer-hours-section {
  justify-self: end;
  max-width: 400px;
}

/* Seconda riga: Contatti e Navigazione */
.footer-bottom-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}

.footer-navigation .brand-description {
  margin-top: 2rem;
}

.footer-navigation .footer-social {
  margin-top: 1rem;
}

.footer-section {
  animation: fadeInUp 0.6s ease-out;
}

.footer-section:nth-child(1) { animation-delay: 0.1s; }
.footer-section:nth-child(2) { animation-delay: 0.2s; }
.footer-section:nth-child(3) { animation-delay: 0.3s; }
.footer-section:nth-child(4) { animation-delay: 0.4s; }

.footer-logo {
  height: 60px;
  width: auto;
  filter: brightness(0) invert(1);
}

.brand-description {
  font-size: 1rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 2rem;
  font-weight: 300;
}

.footer-social {
  display: flex;
  gap: 1rem;
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.footer-social a:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.footer .social-icon {
  width: 20px;
  height: 20px;
  color: #ffffff !important;
  fill: #ffffff !important;
}

.footer .footer-social svg {
  fill: #ffffff !important;
  color: #ffffff !important;
}

.footer-title {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  color: #ffffff;
  position: relative;
}

.footer-title::after {
  content: '';
  position: absolute;
  bottom: -0.5rem;
  left: 0;
  width: 40px;
  height: 2px;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 1px;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-link {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  display: inline-block;
  position: relative;
}

.footer-link::before {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background-color: rgba(255, 255, 255, 0.8);
  transition: width 0.3s ease;
}

.footer-link:hover {
  color: #ffffff;
  transform: translateX(5px);
}

.footer-link:hover::before {
  width: 100%;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.contact-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.contact-icon svg {
  width: 18px;
  height: 18px;
}

.contact-details {
  flex: 1;
}

.contact-label {
  display: block;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 0.25rem;
  font-weight: 500;
}

.contact-value {
  color: #ffffff;
  text-decoration: none;
  font-size: 0.95rem;
  line-height: 1.4;
  transition: color 0.3s ease;
}

.contact-value:hover {
  color: rgba(255, 255, 255, 0.8);
}

.booking-description {
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
  line-height: 1.5;
}

.booking-buttons {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.booking-buttons-column .btn-whatsapp,
.booking-buttons-column .btn-call {
  width: 100%;
  flex: none;
}

.btn-whatsapp,
.btn-call {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.5rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  flex: 1;
  min-width: 140px;
  justify-content: center;
}

.btn-whatsapp {
  background: linear-gradient(135deg, #25D366 0%, #1ebe57 100%);
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

.btn-call {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(10px);
}

.btn-call:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.btn-icon {
  width: 18px;
  height: 18px;
}

.opening-hours {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.hours-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: #ffffff;
}

.hours-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.hours-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.hours-item:last-child {
  border-bottom: none;
}

.day {
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
}

.time {
  color: rgba(255, 255, 255, 1);
  font-weight: 600;
}


.footer-bottom {
  background: rgba(0, 0, 0, 0.3);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1.5rem 0;
  position: relative;
  z-index: 2;
}

.footer-bottom-content {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  text-align: center;
}

.copyright p {
  margin: 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
}

.footer-legal {
  display: flex;
  gap: 2rem;
  justify-content: center;
}

.legal-link {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.3s ease;
}

.legal-link:hover {
  color: rgba(255, 255, 255, 1);
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 767px) {
  .footer-content {
    padding: 3rem 0 1.5rem;
  }

  .footer-top-row {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-logo-section {
    justify-content: center;
  }

  .footer-logo {
    height: 50px;
  }

  .footer-booking-section {
    align-items: center;
    text-align: center;
  }

  .booking-buttons-column {
    max-width: 300px;
  }

  .footer-hours-section {
    justify-self: center;
    max-width: 100%;
  }

  .brand-description {
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
  }

  .footer-social a {
    width: 40px;
    height: 40px;
  }

  .social-icon {
    width: 18px;
    height: 18px;
  }

  .footer-title {
    font-size: 1.2rem;
  }

  .contact-item {
    gap: 0.75rem;
  }

  .contact-icon {
    width: 35px;
    height: 35px;
  }

  .contact-icon svg {
    width: 16px;
    height: 16px;
  }

  .btn-whatsapp,
  .btn-call {
    min-width: auto;
    padding: 0.875rem 1.25rem;
  }

  .opening-hours {
    padding: 1.25rem;
  }

  .footer-legal {
    gap: 1.5rem;
  }
}

@media (min-width: 768px) {
  .footer-top-row {
    grid-template-columns: auto auto 1fr;
    gap: 1.5rem;
  }

  .footer-logo {
    height: 60px;
  }

  .footer-hours-section {
    max-width: 320px;
  }

  .footer-bottom-row {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }

  .footer-bottom-content {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    text-align: left;
  }
}

@media (min-width: 1024px) {
  .footer-content {
    padding: 5rem 0 2rem;
  }

  .footer-top-row {
    gap: 2.5rem;
  }

  .footer-logo {
    height: 70px;
  }

  .footer-hours-section {
    max-width: 380px;
  }

  .footer-bottom-row {
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
  }

  .brand-description {
    font-size: 1rem;
  }

  .footer-social a {
    width: 50px;
    height: 50px;
  }

  .social-icon {
    width: 22px;
    height: 22px;
  }

  .footer-title {
    font-size: 1.4rem;
  }

  .contact-icon {
    width: 45px;
    height: 45px;
  }

  .contact-icon svg {
    width: 20px;
    height: 20px;
  }

  .footer-bottom-content {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    text-align: left;
  }
}

@media (min-width: 1200px) {
  .footer-content {
    padding: 6rem 0 2rem;
  }

  .footer-top-row {
    gap: 3rem;
  }

  .footer-bottom-row {
    gap: 6rem;
  }

  .footer-logo {
    height: 75px;
  }

  .footer-hours-section {
    max-width: 420px;
  }
}