/* Reset e base */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  font-family: 'Lato', sans-serif;
}

/* Navbar */
.main-navbar {
  background: linear-gradient(135deg, #8A1538 0%, #6A0F2A 100%);
  padding: 1rem 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.navbar-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  justify-content: center;
}

.navbar-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.15rem;
}

.navbar-logo {
  height: 70px;
  width: auto;
  object-fit: contain;
  background: white;
  padding: 0.75rem;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.navbar-title {
  font-family: 'Luminari', serif;
  font-size: 1.8rem;
  color: white;
  margin: 0;
  font-weight: 400;
}

.navbar-subtitle {
  font-family: 'Luminari', serif;
  font-size: 1rem;
  letter-spacing: 0.06em;
  text-transform: none;
  color: #f8eef3;
  margin: 0;
}

@media (max-width: 768px) {
  .navbar-container {
    padding: 0 1rem;
  }
  
  .navbar-logo {
    height: 55px;
    padding: 0.6rem;
  }
  
  .navbar-title {
    font-size: 1.4rem;
  }

  .navbar-subtitle {
    font-size: 0.9rem;
  }
}

.booking-page {
  min-height: 100vh;
  background: linear-gradient(135deg, #8A1538 0%, #6A0F2A 100%);
  padding: 2rem 1rem;
  padding-top: calc(2rem + 80px); /* Spazio per navbar sticky */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.booking-container {
  max-width: 700px;
  width: 100%;
  background: white;
  border-radius: 16px;
  padding: 3rem 2rem;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  margin: 0 auto;
}

.booking-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.booking-header h1 {
  font-family: 'Luminari', serif;
  font-size: 2.5rem;
  color: #8A1538;
  margin: 0 0 0.5rem;
  font-weight: 400;
}

.booking-header h2 {
  font-family: 'Oswald', sans-serif;
  font-size: 1.5rem;
  color: #333;
  margin: 0;
  font-weight: 400;
  letter-spacing: 2px;
}

.booking-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-step {
  display: none;
}

.form-step.active {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-family: 'Oswald', sans-serif;
  font-size: 0.9rem;
  color: #333;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 400;
}

.form-group label .optional {
  text-transform: none;
  font-size: 0.75rem;
  color: #666;
  font-weight: 300;
  font-style: italic;
}

.form-group input:not([type="hidden"]),
.form-group select,
.form-group textarea {
  padding: 0.85rem 1rem;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-size: 1rem;
  font-family: 'Lato', sans-serif;
  transition: border-color 0.3s ease;
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #8A1538;
}

.form-hint {
  font-size: 0.8rem;
  color: #666;
  font-style: italic;
  margin-top: -0.25rem;
}

/* Indicatore disponibilità */
.availability-indicator {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  margin-bottom: 1rem;
  font-size: 0.95rem;
  font-weight: 500;
  transition: all 0.3s ease;
  font-family: 'Lato', sans-serif;
}

.availability-indicator .availability-icon {
  font-size: 1.2rem;
}

.availability-indicator .availability-text {
  flex: 1;
}

.availability-indicator.available {
  background-color: #e8f5e9;
  color: #2e7d32;
  border: 2px solid #4caf50;
}

.availability-indicator.warning {
  background-color: #fff3e0;
  color: #e65100;
  border: 2px solid #ff9800;
}

.availability-indicator.full {
  background-color: #ffebee;
  color: #c62828;
  border: 2px solid #f44336;
}

/* Bottoni Pranzo/Cena per domenica */
.meal-type-buttons {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.meal-btn {
  flex: 1;
  min-width: 200px;
  padding: 1.5rem;
  border: 3px solid #e0e0e0;
  border-radius: 12px;
  background: white;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  text-align: center;
}

.meal-btn:hover {
  border-color: #8A1538;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(138, 21, 56, 0.15);
}

.meal-btn.active {
  border-color: #8A1538;
  background: linear-gradient(135deg, #8A1538 0%, #6A0F2A 100%);
  color: white;
  box-shadow: 0 4px 16px rgba(138, 21, 56, 0.3);
}

.meal-icon {
  font-size: 2.5rem;
  line-height: 1;
}

.meal-label {
  font-family: 'Oswald', sans-serif;
  font-size: 1.2rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.meal-time {
  font-size: 0.95rem;
  opacity: 0.9;
  font-weight: 500;
}

.meal-btn.active .meal-time {
  opacity: 1;
}

@media (max-width: 768px) {
  .meal-type-buttons {
    flex-direction: column;
  }
  
  .meal-btn {
    min-width: 100%;
    width: 100%;
  }
}

.submit-button {
  background: #8A1538;
  color: white;
  border: none;
  padding: 1rem 2rem;
  border-radius: 8px;
  font-family: 'Oswald', sans-serif;
  font-size: 1rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all 0.3s ease;
  width: 100%;
}

.submit-button:hover {
  background: #6A0F2A;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(138, 21, 56, 0.4);
}

.submit-button:disabled {
  background: #ccc;
  cursor: not-allowed;
  transform: none;
}

.btn-secondary {
  background: transparent;
  color: #8A1538;
  border: 2px solid #8A1538;
  padding: 1rem 2rem;
  border-radius: 8px;
  font-family: 'Oswald', sans-serif;
  font-size: 1rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all 0.3s ease;
  width: 100%;
}

.btn-secondary:hover {
  background: #8A1538;
  color: white;
}

/* Date Picker */
.custom-date-picker {
  position: relative;
}

.date-picker-display {
  padding: 0.85rem 1rem;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: border-color 0.3s ease;
  background: white;
}

.date-picker-display:hover {
  border-color: #8A1538;
}

.date-picker-icon {
  font-size: 1.2rem;
}

.custom-calendar {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: white;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  margin-top: 0.5rem;
  padding: 1rem;
  z-index: 1000;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  display: none;
}

.custom-calendar.active {
  display: block;
}

.calendar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.calendar-nav-btn {
  background: #8A1538;
  color: white;
  border: none;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease;
}

.calendar-nav-btn:hover {
  background: #6A0F2A;
}

.calendar-month-year {
  font-family: 'Oswald', sans-serif;
  font-size: 1.1rem;
  font-weight: 500;
  color: #333;
}

.calendar-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.weekday {
  text-align: center;
  font-family: 'Oswald', sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  color: #666;
  padding: 0.5rem;
}

.calendar-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.5rem;
}

.calendar-day {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  cursor: pointer;
  font-family: 'Lato', sans-serif;
  font-size: 0.9rem;
  transition: all 0.2s ease;
  border: 2px solid transparent;
}

.calendar-day:hover:not(.disabled):not(.other-month) {
  background: #f0f0f0;
  border-color: #8A1538;
}

.calendar-day.selected {
  background: #8A1538;
  color: white;
  font-weight: bold;
}

.calendar-day.disabled {
  color: #ccc;
  cursor: not-allowed;
  background: #f5f5f5;
}

.calendar-day.monday {
  color: #f44336;
  font-weight: bold;
}

.calendar-day.monday.disabled {
  color: #f44336;
  background: #ffebee;
}

.calendar-day.other-month {
  color: #ccc;
  opacity: 0.5;
}

/* Room Selection */
.room-selection {
  margin: 1rem 0;
}

.room-carousel {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  padding: 1rem 0;
  scroll-snap-type: x mandatory;
}

.room-card {
  min-width: 200px;
  padding: 1.5rem;
  border: 2px solid #e0e0e0;
  border-radius: 12px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  scroll-snap-align: start;
  position: relative;
  overflow: hidden;
}

/* Animazione al click sulla card */
.room-card::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(138, 21, 56, 0.1);
  transform: translate(-50%, -50%);
  transition: width 0.6s ease, height 0.6s ease;
}

.room-card:active::before {
  width: 300px;
  height: 300px;
}

/* Mobile: sale in colonna */
@media (max-width: 768px) {
  .room-carousel {
    flex-direction: column;
    overflow-x: visible;
    overflow-y: visible;
    padding: 0;
    gap: 1rem;
    scroll-snap-type: none;
  }
  
  .room-card {
    min-width: 100%;
    width: 100%;
    padding: 1.25rem;
    scroll-snap-align: none;
  }
  
  .room-card:hover {
    transform: none; /* Rimuovi transform su mobile */
  }
  
  .room-card:active {
    transform: scale(0.98); /* Feedback al tocco */
  }
}

.room-card:hover {
  border-color: #8A1538;
  transform: translateY(-4px);
  box-shadow: 0 4px 12px rgba(138, 21, 56, 0.2);
}

.room-card.selected {
  border-color: #8A1538;
  background: #f8f0f0;
}

/* Animazione iniziale: bounce-in */
@keyframes bounceIn {
  0% {
    opacity: 0;
    transform: scale(0.3) translateY(-20px);
  }
  50% {
    opacity: 1;
    transform: scale(1.05) translateY(0);
  }
  70% {
    transform: scale(0.95);
  }
  100% {
    transform: scale(1);
  }
}

.room-card.bounce-in {
  animation: bounceIn 0.6s ease-out;
}

/* Animazione pulsazione continua per attirare l'attenzione */
@keyframes pulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(138, 21, 56, 0.4);
  }
  50% {
    transform: scale(1.02);
    box-shadow: 0 0 0 8px rgba(138, 21, 56, 0);
  }
}

.room-card.pulse-animation {
  animation: pulse 2s ease-in-out infinite;
  border-color: #8A1538;
}

/* Rimuovi pulsazione quando selezionata */
.room-card.selected.pulse-animation {
  animation: none;
}

/* Indicatore visivo "clicca qui" */
.room-selection::before {
  content: '👆 Clicca su una sala per vedere le foto / Click on a room to see photos';
  display: block;
  text-align: center;
  font-family: 'Lato', sans-serif;
  font-size: 0.9rem;
  color: #8A1538;
  margin-bottom: 1rem;
  padding: 0.75rem;
  background: #fff9e6;
  border-radius: 8px;
  border-left: 4px solid #8A1538;
  animation: fadeInDown 0.5s ease-out;
  opacity: 1;
  transition: opacity 0.3s ease;
}

.room-selection.has-selection::before {
  opacity: 0;
  pointer-events: none;
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.room-card h3 {
  font-family: 'Oswald', sans-serif;
  color: #8A1538;
  margin: 0 0 0.5rem;
}

.room-card p {
  font-family: 'Lato', sans-serif;
  color: #666;
  margin: 0;
}

.room-images-preview {
  margin-top: 1.5rem;
}

.room-images-carousel {
  position: relative;
  width: 100%;
  max-height: 300px;
  overflow: hidden;
  border-radius: 12px;
}

.room-images-container {
  display: flex;
  transition: transform 0.5s ease;
  position: relative;
}

/* Animazioni per cambio sala */
.room-images-carousel.fading-out .room-images-container {
  opacity: 0;
  transform: translateX(-10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.room-images-carousel.fading-in .room-images-container {
  opacity: 1;
  transform: translateX(0);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.room-images-carousel {
  transition: opacity 0.3s ease;
}

.room-images-container img {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
}

.room-images-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(138, 21, 56, 0.8);
  color: white;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.5rem;
  z-index: 10;
  transition: background 0.3s ease;
}

.room-images-nav:hover {
  background: rgba(138, 21, 56, 1);
}

.room-images-nav.prev {
  left: 10px;
}

.room-images-nav.next {
  right: 10px;
}

.room-images-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1rem;
}

.room-images-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ccc;
  cursor: pointer;
  transition: background 0.3s ease;
}

.room-images-dot.active {
  background: #8A1538;
}

/* Table Selection */
.restaurant-map {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(60px, 1fr));
  gap: 1rem;
  padding: 1.5rem;
  background: #f8f8f8;
  border-radius: 12px;
  margin: 1rem 0;
  position: relative;
  min-height: 400px;
}

/* Layout speciale per Sale con immagine */
.restaurant-map.room-1-image-map,
.restaurant-map.room-2-image-map,
.restaurant-map.room-3-image-map {
  position: relative;
  padding: 0;
  background: #f5f5f5;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 400px;
  width: 100%;
}

.restaurant-map.room-1-image-map .room-map-image,
.restaurant-map.room-2-image-map .room-map-image,
.restaurant-map.room-3-image-map .room-map-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
  min-height: 400px;
}

.restaurant-map.room-1-image-map .table-clickable-area,
.restaurant-map.room-2-image-map .table-clickable-area,
.restaurant-map.room-3-image-map .table-clickable-area {
  position: absolute;
  cursor: pointer;
}

.restaurant-map.room-1-image-map .table-clickable-area.selected,
.restaurant-map.room-2-image-map .table-clickable-area.selected,
.restaurant-map.room-3-image-map .table-clickable-area.selected {
  border-color: #4CAF50 !important;
  background-color: rgba(76, 175, 80, 0.25) !important;
  border-width: 3px;
  z-index: 20;
}

.restaurant-map.room-1-image-map .table-clickable-area:not(.selected),
.restaurant-map.room-2-image-map .table-clickable-area:not(.selected),
.restaurant-map.room-3-image-map .table-clickable-area:not(.selected) {
  border-color: transparent !important;
  background-color: transparent !important;
}

.restaurant-map.room-1-image-map .table-clickable-area.available,
.restaurant-map.room-2-image-map .table-clickable-area.available,
.restaurant-map.room-3-image-map .table-clickable-area.available {
  border-color: rgba(76, 175, 80, 0.3) !important;
}

.restaurant-map.room-1-image-map .table-clickable-area.available:hover,
.restaurant-map.room-2-image-map .table-clickable-area.available:hover,
.restaurant-map.room-3-image-map .table-clickable-area.available:hover {
  border-color: #4CAF50 !important;
  background-color: rgba(76, 175, 80, 0.15) !important;
}

.restaurant-map.room-1-image-map .table-clickable-area.occupied,
.restaurant-map.room-2-image-map .table-clickable-area.occupied,
.restaurant-map.room-3-image-map .table-clickable-area.occupied {
  cursor: not-allowed;
  opacity: 0.7;
  background-color: rgba(244, 67, 54, 0.2) !important;
  border-color: rgba(244, 67, 54, 0.5) !important;
  pointer-events: none;
}

.restaurant-map.room-1-image-map .table-number-overlay {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.table-item {
  aspect-ratio: 1;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-family: 'Oswald', sans-serif;
  font-weight: 500;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  border: 3px solid transparent;
  position: relative;
}

.table-item.available {
  background: #4CAF50;
  color: white;
}

.table-item.occupied {
  background: #f44336;
  color: white;
  cursor: not-allowed;
}

.table-item.selected {
  background: #8A1538;
  color: white;
  border-color: #6A0F2A;
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(138, 21, 56, 0.4);
}

.restaurant-map.room-1-layout .table-item.selected {
  transform: scale(1.05);
  box-shadow: 0 6px 16px rgba(138, 21, 56, 0.5);
}

.restaurant-map.room-1-layout .table-5.selected {
  transform: rotate(45deg) scale(1.05);
}

.restaurant-map.room-1-layout .table-5.selected::before {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.table-legend {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin: 1rem 0;
  flex-wrap: wrap;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'Lato', sans-serif;
  font-size: 0.9rem;
}

.legend-color {
  width: 20px;
  height: 20px;
  border-radius: 50%;
}

.legend-color.available {
  background: #4CAF50;
}

.legend-color.occupied {
  background: #f44336;
}

.legend-color.selected {
  background: #8A1538;
}

.selected-table-info {
  text-align: center;
  padding: 1rem;
  background: #f8f0f0;
  border-radius: 8px;
  font-family: 'Lato', sans-serif;
  margin: 1rem 0;
}

.step-navigation {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1rem;
}

.step-navigation button {
  width: 100%;
}

#book-now-btn {
  background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
}

#book-now-btn:hover {
  background: linear-gradient(135deg, #45a049 0%, #4CAF50 100%);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(76, 175, 80, 0.4);
}

.info-section {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 2px solid #e0e0e0;
  text-align: center;
  font-family: 'Lato', sans-serif;
  font-size: 0.9rem;
  line-height: 1.8;
}

.info-section a {
  color: #8A1538;
  text-decoration: none;
}

.info-section a:hover {
  text-decoration: underline;
}

.footer-info {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 2px solid #e0e0e0;
  text-align: center;
  font-family: 'Lato', sans-serif;
  font-size: 0.9rem;
  line-height: 1.8;
}

.footer-info a {
  color: #8A1538;
  text-decoration: none;
}

.footer-info a:hover {
  text-decoration: underline;
}

/* Modal */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: 10000;
  align-items: center;
  justify-content: center;
}

.modal-overlay.active {
  display: flex;
}

.modal-content {
  background: white;
  padding: 2rem;
  border-radius: 16px;
  max-width: 500px;
  width: 90%;
  text-align: center;
  font-family: 'Lato', sans-serif;
}

.modal-content h3 {
  font-family: 'Oswald', sans-serif;
  color: #8A1538;
  margin-bottom: 1rem;
}

.modal-content a {
  color: #8A1538;
  text-decoration: none;
}

/* Stili per modal disdetta */
.cancel-booking-info {
  text-align: left;
  margin: 1.5rem 0;
  padding: 1.5rem;
  background: #f8f0f0;
  border-radius: 8px;
  border-left: 4px solid #8A1538;
}

.cancel-info-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 0;
  border-bottom: 1px solid #e0d0d0;
}

.cancel-info-item:last-child {
  border-bottom: none;
}

.cancel-label {
  font-weight: bold;
  color: #8A1538;
  font-family: 'Oswald', sans-serif;
  font-size: 0.9rem;
}

.cancel-value {
  color: #333;
  font-family: 'Lato', sans-serif;
  text-align: right;
}

.cancel-booking-actions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1.5rem;
}

/* Bottone disdici prenotazione */
.btn-cancel {
  background: linear-gradient(135deg, #f44336 0%, #d32f2f 100%);
  color: white;
  border: none;
  padding: 0.85rem 1.5rem;
  border-radius: 8px;
  font-family: 'Oswald', sans-serif;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 1rem;
  width: 100%;
}

.btn-cancel:hover {
  background: linear-gradient(135deg, #d32f2f 0%, #f44336 100%);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(244, 67, 54, 0.4);
}

.btn-cancel:active {
  transform: translateY(0);
}

.modal-close {
  margin-top: 1.5rem;
  padding: 0.75rem 2rem;
  background: #8A1538;
  color: white;
  border: none;
  border-radius: 8px;
  font-family: 'Oswald', sans-serif;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.modal-close:hover {
  background: #6A0F2A;
}

/* Cookie Banner Styles - Enhanced Design */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(135deg, #ffffff 0%, #f8f8f8 100%);
  color: #333;
  padding: 0;
  z-index: 10000;
  box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.15);
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border-top: 3px solid #8A1538;
}

.cookie-banner.show {
  transform: translateY(0);
}

.cookie-banner-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  align-items: center;
  padding: 1.75rem 2rem;
  position: relative;
}

.cookie-banner-content::before {
  content: '🍪';
  position: absolute;
  top: 1.5rem;
  left: 2rem;
  font-size: 2rem;
  opacity: 0.1;
}

.cookie-banner-text {
  text-align: center;
  flex: 1;
  position: relative;
  z-index: 1;
}

.cookie-banner-text p {
  margin: 0.4rem 0;
  font-size: 0.95rem;
  line-height: 1.7;
  color: #555;
}

.cookie-banner-text p:first-child {
  font-family: 'Oswald', sans-serif;
  font-weight: 500;
  font-size: 1.1rem;
  color: #8A1538;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.75rem;
}

.cookie-banner-text a {
  color: #8A1538;
  text-decoration: none;
  font-weight: 500;
  border-bottom: 2px solid #8A1538;
  padding-bottom: 2px;
  transition: all 0.3s ease;
}

.cookie-banner-text a:hover {
  color: #6A0F2A;
  border-bottom-color: #6A0F2A;
  padding-bottom: 1px;
}

.cookie-banner-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
  position: relative;
  z-index: 1;
}

.cookie-btn {
  padding: 0.85rem 2rem;
  border: none;
  border-radius: 50px;
  font-family: 'Oswald', sans-serif;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-transform: uppercase;
  letter-spacing: 1px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.cookie-btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.cookie-btn:hover::before {
  width: 300px;
  height: 300px;
}

.cookie-btn-accept {
  background: linear-gradient(135deg, #8A1538 0%, #6A0F2A 100%);
  color: white;
}

.cookie-btn-accept:hover {
  background: linear-gradient(135deg, #6A0F2A 0%, #8A1538 100%);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(138, 21, 56, 0.4);
}

.cookie-btn-accept:active {
  transform: translateY(-1px);
}

.cookie-btn-reject {
  background: white;
  color: #8A1538;
  border: 2px solid #8A1538;
}

.cookie-btn-reject:hover {
  background: #f8f8f8;
  border-color: #6A0F2A;
  color: #6A0F2A;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(138, 21, 56, 0.2);
}

.cookie-btn-reject:active {
  transform: translateY(-1px);
}

.cookie-btn span {
  position: relative;
  z-index: 1;
}

@media (min-width: 768px) {
  .cookie-banner-content {
    flex-direction: row;
    align-items: center;
    padding: 2rem 2.5rem;
  }

  .cookie-banner-content::before {
    left: 2.5rem;
    top: 2rem;
  }

  .cookie-banner-text {
    text-align: left;
    flex: 1;
    padding-left: 3rem;
  }

  .cookie-banner-buttons {
    flex-shrink: 0;
  }
}

@media (max-width: 767px) {
  .cookie-banner {
    padding: 0;
  }

  .cookie-banner-content {
    padding: 1.5rem 1.25rem;
  }

  .cookie-banner-content::before {
    display: none;
  }

  .cookie-banner-text {
    padding-left: 0;
  }

  .cookie-banner-text p {
    font-size: 0.9rem;
  }

  .cookie-banner-text p:first-child {
    font-size: 1rem;
  }

  .cookie-btn {
    padding: 0.75rem 1.75rem;
    font-size: 0.9rem;
    width: 100%;
    max-width: 280px;
  }
}

@media (max-width: 600px) {
  .booking-container {
    padding: 2rem 1.5rem;
  }

  .booking-header h1 {
    font-size: 2rem;
  }

  .booking-header h2 {
    font-size: 1.2rem;
  }

  .calendar-day {
    font-size: 0.8rem;
  }

  .calendar-month-year {
    font-size: 1rem;
  }
}

/* Custom Notification */
.custom-notification {
  position: fixed;
  top: 20px;
  right: 20px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
  padding: 20px 24px;
  min-width: 320px;
  max-width: 400px;
  z-index: 10000;
  opacity: 0;
  transform: translateX(400px);
  transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  pointer-events: none;
  border-left: 4px solid #8A1538;
}

.custom-notification.show {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}

.custom-notification.success {
  border-left-color: #28a745;
}

.custom-notification.error {
  border-left-color: #dc3545;
}

.custom-notification.warning {
  border-left-color: #ffc107;
}

.notification-content {
  display: flex;
  align-items: center;
  gap: 16px;
}

.notification-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: bold;
  flex-shrink: 0;
  color: white;
  background: #8A1538;
  animation: scaleIn 0.3s ease-out;
}

.custom-notification.success .notification-icon {
  background: #28a745;
}

.custom-notification.error .notification-icon {
  background: #dc3545;
}

.custom-notification.warning .notification-icon {
  background: #ffc107;
  color: #333;
}

.notification-message {
  flex: 1;
  font-family: 'Lato', sans-serif;
  font-size: 15px;
  line-height: 1.5;
  color: #333;
  white-space: pre-line;
}

@keyframes scaleIn {
  from {
    transform: scale(0);
  }
  to {
    transform: scale(1);
  }
}

/* Ottimizzazioni specifiche per iOS/Safari */
@supports (-webkit-touch-callout: none) {
  /* Safari specific fixes */
  .booking-container {
    -webkit-overflow-scrolling: touch;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
  }
  
  .form-group input:not([type="hidden"]),
  .form-group select,
  .form-group textarea {
    -webkit-appearance: none;
    appearance: none;
    -webkit-border-radius: 8px;
    border-radius: 8px;
  }
  
  .custom-calendar {
    -webkit-overflow-scrolling: touch;
  }
  
  .room-carousel {
    -webkit-overflow-scrolling: touch;
  }
}

@media (max-width: 480px) {
  .custom-notification {
    top: 10px;
    right: 10px;
    left: 10px;
    min-width: auto;
    max-width: none;
  }
  
  .booking-container {
    padding: 1.5rem 1rem;
    margin: 1rem;
    border-radius: 12px;
    /* Fix per iOS: previene scroll bounce */
    position: relative;
    overflow-x: hidden;
  }
  
  .booking-header h1 {
    font-size: 2rem;
    /* Fix per iOS: previene text selection accidentale */
    -webkit-user-select: none;
    user-select: none;
  }
  
  .booking-header h2 {
    font-size: 1.2rem;
    -webkit-user-select: none;
    user-select: none;
  }
  
  .form-group input:not([type="hidden"]),
  .form-group select,
  .form-group textarea {
    font-size: 16px; /* Previene zoom automatico su iOS */
    padding: 1rem;
    /* Fix per iOS: migliora il rendering */
    -webkit-appearance: none;
    appearance: none;
    -webkit-border-radius: 8px;
    border-radius: 8px;
    /* Fix per iOS: previene highlight blu */
    -webkit-tap-highlight-color: transparent;
  }
  
  .form-group input:focus,
  .form-group select:focus {
    /* Fix per iOS: rimuove outline blu */
    outline: none;
    -webkit-tap-highlight-color: transparent;
  }
  
  .restaurant-map.room-1-image-map,
  .restaurant-map.room-2-image-map,
  .restaurant-map.room-3-image-map {
    min-height: 300px;
    /* Fix per iOS: migliora il rendering delle immagini */
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
  }
  
  .restaurant-map.room-1-image-map .room-map-image,
  .restaurant-map.room-2-image-map .room-map-image,
  .restaurant-map.room-3-image-map .room-map-image {
    min-height: 300px;
    /* Fix per iOS: previene problemi di rendering */
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
  }
  
  .table-clickable-area {
    min-width: 40px;
    min-height: 40px;
    /* Fix per iOS: migliora il touch target */
    -webkit-tap-highlight-color: rgba(76, 175, 80, 0.2);
  }
  
  .table-number-overlay {
    width: 25px !important;
    height: 25px !important;
    font-size: 12px !important;
    /* Fix per iOS: migliora il rendering */
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
  }
  
  .submit-button,
  .btn-secondary {
    padding: 1rem;
    font-size: 1rem;
    width: 100%;
    /* Fix per iOS: migliora il touch target */
    -webkit-tap-highlight-color: rgba(138, 21, 56, 0.3);
    /* Fix per iOS: previene text selection */
    -webkit-user-select: none;
    user-select: none;
  }
  
  .step-navigation {
    flex-direction: column;
    gap: 0.75rem;
  }
  
  .step-navigation button {
    width: 100%;
    -webkit-tap-highlight-color: rgba(138, 21, 56, 0.3);
  }
  
  /* Fix per iOS: migliora lo scroll */
  .booking-page {
    -webkit-overflow-scrolling: touch;
    overflow-y: auto;
  }
  
  /* Fix per iOS: previene zoom su double tap */
  .calendar-day,
  .table-clickable-area,
  .room-card {
    touch-action: manipulation;
  }
}
