/* Form di prenotazione migliorato */
.enhanced-booking-section {
  margin: 60px auto;
  padding: 50px;
  max-width: 800px;
  background: linear-gradient(135deg, rgba(13, 71, 161, 0.1) 0%, rgba(144, 202, 249, 0.1) 100%),
              url('images/cagliari_poetto_banner.jpeg') center center;
  background-size: cover;
  border-radius: 20px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.enhanced-booking-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(13, 71, 161, 0.85);
  z-index: 1;
}

.booking-content {
  position: relative;
  z-index: 2;
  color: white;
}

.enhanced-booking-section h2 {
  font-size: 2.2em;
  margin-bottom: 15px;
  color: white;
  font-family: 'Playfair Display', serif;
  font-weight: 600;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.enhanced-booking-section .subtitle {
  font-size: 1.1em;
  margin-bottom: 35px;
  color: rgba(255, 255, 255, 0.9);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

.booking-tabs {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}

.booking-tab {
  padding: 12px 25px;
  background: rgba(255, 255, 255, 0.2);
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 25px;
  color: white;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 500;
  backdrop-filter: blur(10px);
}

.booking-tab.active,
.booking-tab:hover {
  background: rgba(255, 255, 255, 0.9);
  color: var(--primary-color-light);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.booking-form-container {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 15px;
  padding: 30px;
  margin-top: 20px;
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.booking-form {
  display: none;
}

.booking-form.active {
  display: block;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 25px;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group label {
  color: var(--text-color-light);
  font-weight: 600;
  margin-bottom: 8px;
  text-align: left;
}

.form-group input,
.form-group select {
  padding: 12px 15px;
  border: 2px solid var(--border-color-light);
  border-radius: 10px;
  font-size: 1em;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  background: white;
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary-color-light);
  box-shadow: 0 0 0 3px rgba(13, 71, 161, 0.1);
}

.submit-btn {
  background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
  color: white;
  border: none;
  padding: 15px 40px;
  font-size: 1.2em;
  font-weight: 600;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: 0 5px 15px rgba(255, 107, 53, 0.3);
}

.submit-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(255, 107, 53, 0.4);
  filter: brightness(1.1);
}

/* Dark mode adjustments per enhanced booking */
body.dark-mode .enhanced-booking-section::before {
  background: rgba(18, 20, 25, 0.9);
}

body.dark-mode .booking-form-container {
  background: rgba(26, 31, 36, 0.95);
}

body.dark-mode .form-group label {
  color: var(--text-color-dark);
}

body.dark-mode .form-group input,
body.dark-mode .form-group select {
  background: var(--card-background-dark);
  border-color: var(--border-color-dark);
  color: var(--text-color-dark);
}

body.dark-mode .booking-tab.active {
  background: rgba(100, 181, 246, 0.9);
  color: var(--background-color-dark);
}

/* Responsive per enhanced booking */
@media (max-width: 768px) {
  .enhanced-booking-section {
    margin: 40px 20px;
    padding: 30px 20px;
  }
  
  .enhanced-booking-section h2 {
    font-size: 1.8em;
  }
  
  .booking-tabs {
    flex-direction: column;
    align-items: center;
  }
  
  .booking-tab {
    width: 100%;
    max-width: 250px;
    text-align: center;
  }
  
  .form-grid {
    grid-template-columns: 1fr;
  }
}

/* Stili per la barra "Cose da fare" - Affiliate Bar */
.affiliate-bar {
  display: flex;
  justify-content: center;
  align-items: center;
  width: fit-content;
  min-width: 280px;
  height: 60px;
  margin: 10px auto;
  text-decoration: none;
  font-size: 1.3em;
  font-weight: bold;
  color: #fff;
  background: linear-gradient(135deg, #475cba 0%, #222671 100%);
  border-radius: 30px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease, background-size 0.5s ease;
  animation: pulsate-attention 2.5s infinite ease-in-out;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  text-align: center;
  padding: 0 25px;
  position: relative;
  overflow: hidden;
  z-index: 1;
  background-image: url('../images/porto_cagliari_3.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* Overlay per il testo sopra l'immagine di sfondo */
.affiliate-bar::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.4);
  border-radius: 30px;
  z-index: -1;
  transition: background 0.3s ease;
}

.affiliate-bar:hover::before {
  background: rgba(0, 0, 0, 0.6);
}

/* Testo e icona all'interno della barra */
.affiliate-bar .affiliate-text {
    position: relative;
    margin-right: 10px;
}

.affiliate-bar .affiliate-icon {
    position: relative;
    font-size: 1.1em;
    transition: transform 0.3s ease;
}

.affiliate-bar:hover .affiliate-icon {
    transform: translateX(5px);
}

.affiliate-bar:hover {
  transform: translateY(-5px) scale(1.03);
  box-shadow: 0 12px 30px rgba(0,0,0,0.35);
}

/* Animazione di pulsazione */
@keyframes pulsate-attention {
  0% {
    transform: scale(1);
    box-shadow: 0 0 15px rgba(71, 92, 186, 0.8);
  }
  50% {
    transform: scale(1.04);
    box-shadow: 0 0 25px rgba(71, 92, 186, 1.2);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 15px rgba(71, 92, 186, 0.8);
  }
}

/* Dark mode per affiliate bar */
body.dark-mode .affiliate-bar {
    background-image: url('../images/porto_cagliari.jpg');
    animation: pulsate-attention-dark 2.5s infinite ease-in-out;
    background-color: var(--card-background-dark);
}

body.dark-mode .affiliate-bar::before {
    background: rgba(0, 0, 0, 0.55);
}

body.dark-mode .affiliate-bar:hover::before {
    background: rgba(0, 0, 0, 0.75);
}

@keyframes pulsate-attention-dark {
  0% {
    transform: scale(1);
    box-shadow: 0 0 15px rgba(100, 181, 246, 0.8);
  }
  50% {
    transform: scale(1.04);
    box-shadow: 0 0 25px rgba(100, 181, 246, 1.2);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 15px rgba(100, 181, 246, 0.8);
  }
}

body {
    overflow-x: hidden; /* Questo dovrebbe prevenire la barra di scorrimento orizzontale */
}