/* Modern Clean Theme */

:root {
  --primary-blue: #2563eb;
  --primary-dark: #1e40af;
  --light-gray: #f8fafc;
  --medium-gray: #64748b;
  --dark-gray: #334155;
  --success-green: #10b981;
  --border-light: #e2e8f0;
}

/* Utility classes */
.bg-light-custom {
  background-color: var(--light-gray) !important;
}

.text-primary-custom {
  color: var(--primary-blue) !important;
}

/* Navbar */
.navbar {
  background-color: #ffffff !important;
  border-bottom: 1px solid var(--border-light);
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
  padding: 1rem 0;
}

.navbar-brand {
  color: var(--dark-gray) !important;
  font-weight: 700;
  font-size: 1.5rem;
}

.navbar-nav .nav-link {
  color: var(--medium-gray) !important;
  font-weight: 500;
  padding: 0.5rem 1rem !important;
  margin: 0 0.25rem;
  border-radius: 6px;
  transition: all 0.3s ease;
}

.navbar-nav .nav-link:hover {
  color: var(--primary-blue) !important;
  background-color: rgba(37, 99, 235, 0.1);
}

.navbar-nav .nav-link.active {
  color: var(--primary-blue) !important;
  background-color: rgba(37, 99, 235, 0.1);
  font-weight: 600;
}

/* Buttons */
.btn-primary {
  background-color: var(--primary-blue);
  border-color: var(--primary-blue);
  color: white;
  font-weight: 500;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  background-color: var(--primary-dark);
  border-color: var(--primary-dark);
  color: white;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.btn-outline-primary {
  border-color: var(--primary-blue);
  color: var(--primary-blue);
}

.btn-outline-primary:hover {
  background-color: var(--primary-blue);
  border-color: var(--primary-blue);
  color: white;
}

.btn-outline-success {
  border-color: var(--success-green);
  color: var(--success-green);
}

.btn-outline-success:hover {
  background-color: var(--success-green);
  border-color: var(--success-green);
  color: white;
}

/* Focus outline */
a:focus, button:focus, input:focus {
  box-shadow: 0 0 0 .25rem rgba(37, 99, 235, .25) !important;
  outline: none;
}

/* Logo */
.navbar-brand .logo {
  height: 50px;
  width: auto;
}

/* Hero Section */
.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.hero-bg {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  background-image: url('https://images.lisbonatour.com/people3.webp');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.hero-overlay {
  background: rgba(0, 0, 0, 0.5);
}

.hero-section .btn {
  border-radius: 50px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s ease;
}

.hero-section .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

/* Tour Cards */
.tour-card {
  transition: all 0.3s ease;
  border-radius: 15px !important;
}

.tour-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1) !important;
}

.tour-card .card-img-top img {
  transition: transform 0.3s ease;
}

.tour-card:hover .card-img-top img {
  transform: scale(1.05);
}

.tour-badge .badge {
  border-radius: 20px;
  font-weight: 600;
}

.tour-highlights {
  background: #f8f9fa;
  padding: 1rem;
  border-radius: 10px;
  border-left: 4px solid var(--bs-primary);
}

.tour-gallery img {
  transition: transform 0.2s ease;
}

.tour-gallery img:hover {
  transform: scale(1.1);
}

/* About Section */
.about-content .feature-item {
  padding: 1rem;
  border-radius: 10px;
  transition: all 0.3s ease;
}

.about-content .feature-item:hover {
  background: #f8f9fa;
  transform: translateY(-2px);
}

.gallery-grid img {
  transition: transform 0.3s ease;
}

.gallery-grid img:hover {
  transform: scale(1.05);
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.tour-card {
  animation: fadeInUp 0.6s ease-out;
}

.tour-card:nth-child(2) {
  animation-delay: 0.2s;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .hero-section {
    min-height: 80vh;
  }
  
  .hero-section .display-3 {
    font-size: 2.5rem;
  }
  
  .tour-card {
    margin-bottom: 2rem;
  }
  
  .gallery-grid .col-6 img,
  .gallery-grid .col-4 img,
  .gallery-grid .col-8 img {
    min-height: 120px;
  }
}

/* Contact Section */
.contact-card {
  transition: all 0.3s ease;
  border-radius: 15px !important;
}

.contact-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1) !important;
}

.contact-icon i {
  transition: transform 0.3s ease;
}

.contact-card:hover .contact-icon i {
  transform: scale(1.1);
}

.social-links a {
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.social-links a:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

/* Footer */
footer {
  background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%) !important;
}

footer .social-links a {
  transition: all 0.3s ease;
}

footer .social-links a:hover {
  color: #3498db !important;
  transform: scale(1.2);
}

footer ul li a:hover {
  color: #3498db !important;
  padding-left: 5px;
  transition: all 0.3s ease;
}

/* Spaziatura extra per navbar su mobile */
@media (max-width: 767.98px) {
  .navbar-brand {
    margin-left: 0.75rem !important;
  }
  .navbar-toggler {
    margin-right: 0.75rem !important;
  }
  
  .social-links .btn {
    width: 50px !important;
    height: 50px !important;
    font-size: 1.2rem;
  }
  
  footer .row {
    text-align: center;
  }
  
  footer .col-md-6.text-md-end {
    text-align: center !important;
  }
}

/* TripAdvisor widget responsive wrapper */
.ta-widget {
  max-width: 100%;
  overflow: hidden; /* previene overflow orizzontale */
  display: flex;
  justify-content: center; /* centra orizzontalmente il contenuto */
}

.ta-widget img,
.ta-widget iframe,
.ta-widget .TA_cdsratingsonlywide,
.ta-widget .TA_cdsratingsonlywide > *,
.ta-widget ul,
.ta-widget li,
.ta-widget div {
  max-width: 100% !important;
}

/* Su schermi molto piccoli, riduci leggermente la scala per evitare tagli */
@media (max-width: 480px) {
  .ta-widget {
    transform: scale(0.96);
    transform-origin: top center; /* centra il punto di scala */
  }
}
