/* === HERO SECTION === */
.hero-section {
  position: relative;
  min-height: 50vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: #023e8a;
  max-width: 900px;
  padding: 0 20px;
  animation: fadeInUp 1s ease;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-icon {
  font-size: 5rem;
  margin-bottom: 20px;
  animation: float 3s ease-in-out infinite;
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-15px);
  }
}

.hero-title {
  font-size: 4rem;
  font-weight: 900;
  margin-bottom: 20px;
  letter-spacing: -0.03em;
  color: #FF6B35 !important;
}

.hero-subtitle {
  font-size: 1.5rem;
  margin-bottom: 40px;
  opacity: 0.95;
  font-weight: 300;
}

.hero-stats {
  display: flex;
  gap: 30px;
  justify-content: center;
  flex-wrap: wrap;
}

.stat-badge {
  backdrop-filter: blur(10px);
  padding: 20px 35px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: all 0.3s ease;
}

.stat-badge:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-5px);
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  color: #FF6B35;
}

.stat-label {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  opacity: 0.9;
}

.hero-scroll {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: white;
  opacity: 0.7;
  animation: bounce 2s infinite;
}

@keyframes bounce {

  0%,
  100% {
    transform: translate(-50%, 0);
  }

  50% {
    transform: translate(-50%, 10px);
  }
}

.hero-scroll span {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* === GLOBAL COUNTRIES SECTION === */
.global-countries-section {
  padding: 50px 20px;
}

.section-container {
  max-width: 1400px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.header-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: linear-gradient(135deg, #FF6B35 0%, #ff8c61 100%);
  color: white;
  padding: 12px 30px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 25px;
  box-shadow: 0 4px 20px rgba(255, 107, 53, 0.3);
}

.badge-icon {
  font-size: 1.8rem;
}

.section-title {
  font-size: 3rem;
  font-weight: 800;
  color: #1a1a1a;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.section-description {
  font-size: 1.2rem;
  color: #6c757d;
  max-width: 600px;
  margin: 0 auto;
}

.world-countries-grid {
  display: flex;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 20px;
  justify-content: center;
}

.world-country-card {
  background: white;
  border-radius: 16px;
  padding: 25px 15px;
  text-align: center;
  transition: all 0.3s ease;
  border: 2px solid #e9ecef;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  width: 140px;
  flex-shrink: 0;
}

.world-country-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 12px 30px rgba(255, 107, 53, 0.2);
  border-color: #FF6B35;
}

.country-flag-world {
  font-size: 4rem;
  margin-bottom: 12px;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.1));
}

.country-name-world {
  font-size: 1rem;
  font-weight: 700;
  color: #1a1a1a;
}

/* === MAP SECTION === */
.map-section {
  padding: 80px 20px;
}

.map-header {
  text-align: center;
}

.map-title {
  font-size: 2.5rem;
  font-weight: 800;
  color: #1a1a1a;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
}

.map-icon {
  font-size: 3rem;
}

.map-subtitle {
  font-size: 1.1rem;
  color: #6c757d;
}

.map-container {
  position: relative;
  max-width: 1400px;
  margin: 0 auto;
  border-radius: 20px;
  overflow: hidden;
}

.home-map {
  width: 100%;
  height: 600px;
}

.expand-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 10;
  background: white;
  color: #1a1a1a;
  border: none;
  padding: 12px 24px;
  border-radius: 50px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
}

.expand-btn:hover {
  background: #FF6B35;
  color: white;
  transform: scale(1.05);
}

.home-map.fullscreen {
  position: fixed;
  inset: 0;
  width: 100vw !important;
  height: 100vh !important;
  z-index: 9999;
  border-radius: 0;
  background: #fff;
}

.home-map.fullscreen .maplibregl-canvas-container,
.home-map.fullscreen .maplibregl-canvas {
    width: 100% !important;
    height: 100% !important;
}

.close-map-btn {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 10001;
  background: #dc3545;
  color: white;
  border: none;
  padding: 14px 28px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1.1rem;
  cursor: pointer;
  display: none; /* Nascosto di default */
  align-items: center;
  gap: 10px;
  box-shadow: 0 6px 30px rgba(220, 53, 69, 0.4);
  transition: all 0.3s ease;
}

.close-map-btn:hover {
  background: #c82333;
  transform: scale(1.05);
  box-shadow: 0 8px 40px rgba(220, 53, 69, 0.5);
}

.close-map-btn:active {
  transform: scale(0.98);
}

/* Quando la mappa è fullscreen */
.home-map.fullscreen~.expand-btn {
  display: none;
  /* Nascondi pulsante espandi */
}

.home-map.fullscreen~.close-map-btn {
  display: flex;
  /* Mostra pulsante chiudi */
}

/* === TRIPS SECTION === */
.trips-section {
  padding: 100px 20px;
}

.trips-title {
  font-size: 2.5rem;
  font-weight: 800;
  color: #1a1a1a;
  text-align: center;
  margin-bottom: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
}

.trips-icon {
  font-size: 3rem;
}

.trips-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 30px;
  max-width: 1400px;
  margin: 0 auto;
}

.trip-card {
  position: relative;
  background: white;
  border-radius: 20px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
  transition: all 0.4s ease;
}

.trip-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.trip-card-image {
  width: 100%;
  height: 250px;
  background-size: cover;
  background-position: center;
  position: relative;
}

.trip-card-placeholder {
  background: linear-gradient(135deg, #e9ecef 0%, #dee2e6 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.placeholder-icon {
  font-size: 5rem;
  opacity: 0.3;
}

.trip-card-content {
  padding: 25px;
}

.trip-card-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 16px;
}

.trip-card-meta {
  display: flex;
  gap: 20px;
  margin-bottom: 16px;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.95rem;
  color: #6c757d;
}

.meta-item svg {
  color: #FF6B35;
}

.trip-card-countries {
  display: flex;
  gap: 8px;
  align-items: center;
}

.mini-flag {
  font-size: 1.5rem;
}

.more-countries {
  font-size: 0.85rem;
  color: #6c757d;
  font-weight: 600;
}

.trip-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 107, 53, 0.95), rgba(255, 140, 97, 0.95));
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.trip-card:hover .trip-card-overlay {
  opacity: 1;
}

.overlay-text {
  color: white;
  font-size: 1.3rem;
  font-weight: 700;
}

.no-trips-message {
  grid-column: 1 / -1;
  text-align: center;
  padding: 80px 20px;
}

.no-trips-icon {
  font-size: 5rem;
  opacity: 0.3;
}

/* === RESPONSIVE === */
@media (max-width: 1024px) {
  .trips-grid {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  }

  .world-countries-grid {
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  }

  .world-country-card {
    width: 120px;
  }
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 2.5rem;
  }

  .hero-subtitle {
    font-size: 1.2rem;
  }

  .hero-icon {
    font-size: 4rem;
  }

  .stat-badge {
    padding: 15px 25px;
  }

  .section-title {
    font-size: 2rem;
  }

  .world-countries-grid {
    display: grid;
    gap: 15px;
  }

  .world-country-card {
    width: 100px;
    padding: 20px 10px;
  }

  .country-flag-world {
    font-size: 3rem;
  }

  .trips-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .home-map {
    height: 400px;
  }
}

@media (max-width: 480px) {
  .hero-section {
    height: 70vh;
    min-height: 500px;
  }

  .hero-title {
    font-size: 2rem;
  }

  .hero-stats {
    gap: 15px;
  }

  .stat-badge {
    padding: 12px 20px;
  }

  .stat-number {
    font-size: 2rem;
  }
}