/* CSS percorsi_redesign.css */
/* Importa i font se necessario */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Playfair+Display:wght@400;500;600;700&display=swap');

/* Aggiunge le variabili necessarie se non presenti in style.css */
:root {
  /* Light Mode Colors */
  --background-color-light: #fafbfc;
  --primary-color-light: #0d47a1;
  --secondary-color-light: #1565c0;
  --accent-color: #ff6b35;
  --text-color-light: #0d47a1;
  --text-secondary-light: #5a6c7d;
  --card-background-light: #ffffff;
  --card-shadow-light: 0 4px 20px rgba(0, 0, 0, 0.08);
  --border-color-light: #e1e8ed;
  --gradient-primary: linear-gradient(135deg, #475cba 0%, #222671 100%);
  --gradient-secondary: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
  
  /* Dark Mode Colors */
  --background-color-dark: #0f1419;
  --primary-color-dark: #64b5f6;
  --secondary-color-dark: #42a5f5;
  --text-color-dark: #64b5f6;
  --text-secondary-dark: #9aa0a6;
  --card-background-dark: #1a1f24;
  --card-shadow-dark: 0 4px 20px rgba(0, 0, 0, 0.3);
  --border-color-dark: #2d3748;
}

/* Stili per la hero section */
.tour-header {
  position: relative;
  overflow: hidden;
  color: white;
  text-align: center;
  padding: 80px 20px 100px;
  
  /* Sostituisci il gradiente con un'immagine */
  background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), 
              url('../images/bastione_arco.webp') no-repeat center center / cover;
  transition: background-image 0.5s ease;
}
.tour-header::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 20"><defs><linearGradient id="a" x1="0" y1="0" x2="0" y2="1"><stop offset="0%" stop-color="%23ffffff" stop-opacity="0.1"/><stop offset="100%" stop-color="%23ffffff" stop-opacity="0"/></linearGradient></defs><rect width="100" height="20" fill="url(%23a)"/></svg>') repeat-x;
  opacity: 0.1;
  z-index: 1; /* Assicurati che l'overlay e il testo siano sopra */
}

.tour-title {
  font-family: 'Playfair Display', serif;
  font-size: 3.5em;
  font-weight: 700;
  margin-bottom: 24px;
  position: relative;
  z-index: 2;
  letter-spacing: -0.02em;
}

.tour-subtitle {
  font-size: 1.3em;
  font-weight: 300;
  max-width: 900px;
  margin: 0 auto;
  line-height: 1.6;
  opacity: 0.95;
  position: relative;
  z-index: 2;
}

/* Main Content Container */
.content-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 80px 20px;
}

/* Day Cards Layout */
.days-container {
  display: grid;
  gap: 60px;
  margin-bottom: 80px;
}

.day-card {
  background: var(--card-background-light);
  border-radius: 20px;
  box-shadow: var(--card-shadow-light);
  overflow: hidden;
  transition: all 0.3s ease;
  position: relative;
}

.day-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

.day-card:nth-child(even) .day-content {
  flex-direction: row-reverse;
}

.day-content {
  display: flex;
  min-height: 500px;
}

.day-text {
  flex: 1.2;
  padding: 60px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.day-number {
  display: inline-block;
  background: var(--gradient-secondary);
  color: white;
  padding: 8px 20px;
  border-radius: 50px;
  font-size: 0.9em;
  font-weight: 600;
  margin-bottom: 20px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.day-title {
  font-family: 'Playfair Display', serif;
  font-size: 2.5em;
  font-weight: 600;
  color: var(--text-color-light);
  margin-bottom: 24px;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.day-description {
  font-size: 1.1em;
  color: var(--text-secondary-light);
  line-height: 1.8;
  margin-bottom: 30px;
}

.day-highlights {
  list-style: none;
  padding: 0;
}

.day-highlights li {
  display: flex;
  align-items: center;
  margin-bottom: 12px;
  font-size: 1.05em;
  color: var(--text-color-light);
}

.day-highlights li::before {
  content: '';
  width: 8px;
  height: 8px;
  background: var(--accent-color);
  border-radius: 50%;
  margin-right: 16px;
  flex-shrink: 0;
}

.day-image {
  flex: 1;
  position: relative;
  min-height: 500px;
}

.day-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.day-card:hover .day-image img {
  transform: scale(1.05);
}

.image-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, rgba(0, 0, 0, 0.1), transparent);
}

/* Tips Section */
.tips-section {
  background: var(--card-background-light);
  border-radius: 20px;
  padding: 60px;
  box-shadow: var(--card-shadow-light);
  margin-bottom: 60px;
}

.tips-title {
  font-family: 'Playfair Display', serif;
  font-size: 2.2em;
  font-weight: 600;
  color: var(--text-color-light);
  text-align: center;
  margin-bottom: 40px;
}

.tips-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
}

.tip-item {
  text-align: center;
  padding: 30px 20px;
  border-radius: 16px;
  background: rgba(13, 71, 161, 0.03);
  border: 1px solid rgba(13, 71, 161, 0.1);
  transition: all 0.3s ease;
}

.tip-item:hover {
  transform: translateY(-4px);
  background: rgba(13, 71, 161, 0.08);
}

.tip-icon {
  width: 60px;
  height: 60px;
  background: var(--gradient-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  color: white;
  font-size: 1.5em;
}

.tip-title {
  font-size: 1.3em;
  font-weight: 600;
  margin-bottom: 16px;
  color: var(--text-color-light);
}

.tip-text {
  color: var(--text-secondary-light);
  line-height: 1.6;
}

/* Dark Mode */
body.dark-mode .tour-header {
  /* Sostituisci l'immagine con quella per la modalità scura */
  background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), 
              url('../images/cagliari_poetto_banner.jpeg') no-repeat center center / cover;
}

body.dark-mode .tour-title {
  color: var(--text-color-dark);
}

body.dark-mode .tour-subtitle {
  color: var(--text-color-dark);
}

body.dark-mode .day-card,
body.dark-mode .tips-section {
  background: var(--card-background-dark);
  box-shadow: var(--card-shadow-dark);
}

body.dark-mode .day-title,
body.dark-mode .tips-title {
  color: var(--text-color-dark);
}

body.dark-mode .day-description,
body.dark-mode .tip-text {
  color: var(--text-secondary-dark);
}

body.dark-mode .tip-item {
  background: rgba(100, 181, 246, 0.05);
  border-color: rgba(100, 181, 246, 0.2);
}

/* Responsive Design */
@media (max-width: 768px) {
  .tour-title {
    font-size: 2.5em;
  }

  .tour-subtitle {
    font-size: 1.1em;
  }

  .day-content {
    flex-direction: column !important;
    min-height: auto;
  }

  .day-text {
    padding: 40px 30px;
  }

  .day-title {
    font-size: 2em;
  }

  .day-image {
    min-height: 300px;
  }

  .tips-section {
    padding: 40px 30px;
  }

  .tips-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .content-container {
    padding: 60px 20px;
  }

  .days-container {
    gap: 40px;
  }
}
