/* --- 1. RESET & VARIABLES --- */
:root {
  /* Palette */
  --color-primary: #f48c25;
  --color-primary-hover: #d67615;
  --color-secondary: #008ec0;
  --color-third: #ffffff;
  
  /* Light Theme Defaults */
  --bg-body: #f8f7f5;
  --bg-card: #ffffff;
  --bg-dark-section: #111827;
  --bg-dark-card: #1f2937;
  
  --text-main: #181411;
  --text-muted: #4b5563;
  --text-light: #9ca3af;
  --text-white: #ffffff;

  /* Spacing & UI */
  --font-family: "Plus Jakarta Sans", sans-serif;
  --container-width: 1280px;
  --radius-sm: 0.25rem;
  --radius-md: 0.5rem;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;
  --radius-full: 9999px;
  
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1);
  --shadow-primary: 0 10px 15px -3px rgba(244, 140, 37, 0.4);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1);

  --transition-base: all 0.3s ease;
}

/* Dark Mode Support via media query */
@media (prefers-color-scheme: dark) {
  :root {
    --bg-body: #221910;
    --text-main: #ffffff;
    --text-muted: #d1d5db;
  }
}

/* Reset di base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-body);
  color: var(--text-main);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

@media (max-width: 768px) {
  .p-lr-mobile {
    padding-left: 1rem!important;
    padding-right: 1rem!important;
  }

  .section-header-row{
    flex-direction: row!important;
  }

  .btn-mobile{
    flex-direction: column!important;
    gap: 1rem!important;
  }

  .link-mobile{
    text-wrap-mode: nowrap!important;
    margin-top: 1rem!important;
  }

  .mobile-direction{
    flex-direction: column!important;
  }
}


img {
  max-width: 100%;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

ul {
  list-style: none;
}

/* Utility Classes */
.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.justify-center { justify-content: center; column-gap: 2rem; }

.justify-item-center { justify-items: center; column-gap: 2rem; }

.mb-2 { margin-bottom: 2rem; }
.mb-4 { margin-bottom: 4rem; }
.mb-6 { margin-bottom: 6rem; }
.mb-8 { margin-bottom: 8rem; }
.mb-10 { margin-bottom: 10rem; }

.mt-2 { margin-top: 2rem; }
.mt-4 { margin-top: 4rem!important; }
.mt-6 { margin-top: 6rem!important; }
.mt-8 { margin-top: 8rem!important; }
.mt-10 { margin-top: 10rem!important; }

.b-mt-4 { margin-top: 4rem!important; }
.b-mb-4 { margin-bottom: 4rem!important; }

.p-4 { padding: 4rem!important; }

.mt-8 { margin-top: 8rem; }

@media (min-width: 768px) {
  .container { padding: 0 3rem; }
}
@media (min-width: 1024px) {
  .container { padding: 0 5rem; }
}

.text-primary { color: var(--color-primary); }
.text-secondary { color: var(--color-secondary); }
.font-bold { font-weight: 700; }
.hidden { display: none; }
.flex { display: flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.grid { display: grid; }

/* --- 2. COMPONENTS --- */

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.875rem;
  transition: var(--transition-base);
}

.btn--primary {
  background-color: var(--color-primary);
  color: var(--text-white);
  box-shadow: var(--shadow-primary);
}

.btn--primary:hover {
  background-color: var(--color-primary-hover);
  transform: scale(1.05);
}

.btn--secondary {
  background-color: var(--color-secondary);
  color: var(--text-white);
  box-shadow: var(--shadow-primary);
}

.btn--secondary:hover {
  background-color: var(--color-secondary-hover);
  transform: scale(1.05);
}

.btn--glass {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: var(--text-white);
}

.btn--glass:hover {
  background: rgba(255, 255, 255, 0.2);
}

.btn--white {
  background-color: white;
  color: var(--color-primary);
  box-shadow: var(--shadow-lg);
}

.btn--white:hover {
  background-color: #f9fafb;
  transform: translateY(-2px);
}

.btn--link {
  color: var(--color-primary);
  font-weight: 600;
}
.btn--link:hover { color: var(--text-main); }

/* --- 3. SECTIONS --- */

/* --- Navbar --- */
.navbar {
  position: fixed; /* Cambiato da absolute a fixed */
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000; /* Aumentato per stare sopra a tutto */
  padding: 1.5rem 0; /* Padding iniziale più arioso */
  background: rgb(255, 255, 255, 0.71); /* Inizialmente trasparente */
  transition: all 0.4s ease; /* Transizione fluida per lo scroll */
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Stato quando la pagina viene scollata */
.navbar.scrolled {
  padding: 0.75rem 0; /* Diventa più compatto */
  background: #ffffff; /* Sfondo scuro semi-trasparente */
  backdrop-filter: blur(12px); /* Effetto vetro sfocato */
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.nav-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo img {
  height: 4rem;
  object-fit: contain;
}

.nav-links {
  display: none;
  align-items: center;
  gap: 2rem;
}

.nav-link {
  color: #000;
  font-size: 0.875rem;
  font-weight: 600;
  transition: color 0.2s;
}

.nav-link:hover { color: #000000; }

.menu-toggle {
  color: var(--color-primary);
  display: block;
  
}

.menu-toggle .material-symbols-outlined {
  font-size: 2rem;
}

@media (min-width: 768px) {
  .nav-links { display: flex; }
  .menu-toggle { display: none; }
}

/* Hero Section */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  /* background-image: url('https://lh3.googleusercontent.com/aida-public/AB6AXuDPcIH5DoS0Eh7mtZvnCDW0DU_-IBXb3FbZDfsDR6yT2a6y2vDcU-yp9uGNXury3-4diReYuQ76dK_RZw45xYqAZJnPYyDyMHfjo9dajXrRW9s5Uo2gtL7dQORTYwsViMOM8Ehw8XVVWGHud2fhueJfyTLCACqK1mCz0XH0rXX0X1qeWDZlpwvg6dfZhqUYBnZMfXd9t1uCV5p9gIVsStx_I0PXzVCeEHNBWJrSMq34vnaIodR67PizshyLXzvQZcPFyFpIg5S6iMsE'); */
  background-size: cover;
  background-position: center;
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.4), rgba(0,0,0,0.2), rgba(0,0,0,0.6));
  z-index: 10;
}

.hero-content {
  position: relative;
  z-index: 20;
  text-align: center;
  padding: 0 1rem;
  max-width: 56rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  margin-top: 4rem;
}

.tag-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: white;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.hero-title {
  color: white;
  font-size: 3rem;
  line-height: 1.1;
  font-weight: 900;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.125rem;
  font-weight: 500;
  max-width: 42rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1rem;
}

.bounce-arrow {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 20;
  color: white;
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 100% { transform: translate(-50%, -25%); animation-timing-function: cubic-bezier(0.8, 0, 1, 1); }
  50% { transform: translate(-50%, 0); animation-timing-function: cubic-bezier(0, 0, 0.2, 1); }
}

@media (min-width: 640px) {
  .hero-actions { flex-direction: row; }
}
@media (min-width: 768px) {
  .hero-title { font-size: 4.5rem; }
  .hero-subtitle { font-size: 1.25rem; }
}

/* About Section */
.section {
  padding: 5rem 0;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}

.about-image-wrapper {
  position: relative;
}

.about-rotate-bg {
  position: absolute;
  inset: -0.5rem;
  background-color: rgba(0, 142, 192, 0.2);
  border-radius: var(--radius-lg);
  transform: rotate(2deg);
  transition: transform 0.3s;
}

.about-image-wrapper:hover .about-rotate-bg {
  transform: rotate(1deg);
}

.about-img {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/3;
  width: 100%;
  /* background-image: url('https://lh3.googleusercontent.com/aida-public/AB6AXuClZVGtUGNrtLdewVRS16xfBC1nHmeB4PiRLyPCbkS0taCqvjpUjFrqqEFh-zo0lUepToE0izR_Kmbty1bonRK139do3sK5qFlFX2q47Aa-8pNQ58WmqibJ45CHNZ5lhGfAPTEGFlHGMs92gId2trKbllEw5Px3FqKyibzHT-4fFmxBpras3x04QsX32FPFjp23KlkGClNXnqAPh2PIvqm6s48ZctOH33v04CeKsjjCRrJvWd57mp5sB9agO2UksV25O8SGY8piyYcT'); */
  background-size: cover;
  background-position: center;
}

.social-proof-card {
  position: absolute;
  bottom: -1.5rem;
  right: -1.5rem;
  background: var(--bg-card);
  padding: 1rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  max-width: 200px;
  display: none;
}

@media (prefers-color-scheme: dark) {
  .social-proof-card { background: var(--bg-dark-card); }
}

.user-avatars {
  display: flex;
  margin-left: 0.5rem;
}
.user-avatar {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  border: 2px solid white;
  margin-left: -0.5rem;
}

.features-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1rem;
}
.feature-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 500;
}

@media (min-width: 768px) {
  .social-proof-card { display: block; }
}
@media (min-width: 1024px) {
  .about-grid { grid-template-columns: 1fr 1fr; }
}

/* Dark Section (Upcoming Adventures) */
.bg-dark-section {
  background-color: var(--bg-dark-section);
  color: white;
  position: relative;
}

.bg-texture {
  position: absolute;
  inset: 0;
  opacity: 0.4;
  mix-blend-mode: overlay;
  pointer-events: none;
  background-image: url('https://lh3.googleusercontent.com/aida-public/AB6AXuDBNCbIq8ABiLd4J-_os0fmMZ-asrgC5K2nAFkWFmrZjkuFv3c_w89AX-DPVj9ATk7W6hdn6cHa4LTrulZw3hTdoyl98u-0zKdTHuPT0_rkZdF6ftxCbbTRHxvYP-lCODgDdmJLxcONlQLJGBY5qndvwvlN81xcGBtj3eMMNNJ2Oe21wthrBns3nBziYAIwb1LldChfLY34frLgZhsSug0LGd5CkzZhjFZE9hCR2xRB9viom0xPJmE1e86nBsMoSGxT5kkcrPpYw3hF');
  background-size: cover;
  background-position: center;
}

.section-header-row {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 3rem;
  gap: 1rem;
}

@media (min-width: 768px) {
  .section-header-row { flex-direction: row; }
  .section-header-row h2 { margin-bottom: 0; text-align: left; width: 100%; }
}

/* Cards Grid */
.cards-grid {
  position: relative;
  z-index: 10;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  transition: transform 0.3s, box-shadow 0.3s;
  display: flex;
  flex-direction: column;
  height: 100%;
}

@media (prefers-color-scheme: dark) {
  .card { background: var(--bg-dark-card); }
}

.card:hover {
  transform: translateY(-0.25rem);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.card-image-wrap {
  position: relative;
  height: 16rem;
  overflow: hidden;
}

.card-price-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(4px);
  color: #181411;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.875rem;
  z-index: 10;
  box-shadow: var(--shadow-sm);
}

.card-bg {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  transition: transform 0.5s ease;
}

.card:hover .card-bg {
  transform: scale(1.1);
}

.card-content {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.card-meta {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.5rem;
}

.card-country {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--color-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.rating {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  color: #9ca3af;
  font-size: 0.75rem;
  font-weight: 500;
}

.card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text-main);
}

.card p {
  color: var(--text-muted);
  font-size: 0.875rem;
  margin-bottom: 1rem;
  flex-grow: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-details {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.875rem;
  color: var(--text-muted);
  border-top: 1px solid #f3f4f6;
  padding-top: 1rem;
  margin-bottom: 1.5rem;
}

@media (prefers-color-scheme: dark) {
  .card h3 { color: white; }
  .card-details { border-color: #374151; }
}

.detail-item {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

@media (min-width: 768px) {
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .cards-grid { grid-template-columns: repeat(3, 1fr); }
}

/* Travel Style Grid (Bento) */
.bento-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.bento-item {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  height: 300px;
  cursor: pointer;
}

.bento-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.7s;
}

.bento-item:hover .bento-bg {
  transform: scale(1.05);
}

.bento-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.8), rgba(0,0,0,0.2), transparent);
}

.bento-content {
  position: absolute;
  bottom: 0;
  left: 0;
  padding: 1.5rem;
  width: 100%;
}

.bento-title {
  color: white;
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.bento-desc {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.875rem;
  margin-bottom: 0.75rem;
}

.btn-bento {
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.4);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(4px);
  transition: background 0.3s, color 0.3s;
}

.btn-bento:hover {
  background: white;
  color: #181411;
}

@media (min-width: 768px) {
  .bento-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 300px);
  }
  .bento-item { height: 100%; }
  
  .span-2-2 { grid-column: span 2; grid-row: span 2; }
  .bento-item.span-2-2 .bento-title { font-size: 1.5rem; }
  .bento-item.span-2-2 { padding: 2rem; }
}

@media (min-width: 1024px) {
  .bento-grid { grid-template-columns: repeat(4, 1fr); }
  .lg-span-2 { grid-column: span 2; }
}

/* CTA Section */
.cta-section {
  background-color: var(--color-primary);
  padding: 5rem 1.5rem;
  text-align: center;
}

.cta-content {
  max-width: 56rem;
  margin: 0 auto;
}

/* Testimonials */
.testimonials-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.testimonial-card {
  background-color: var(--bg-body);
  padding: 2rem;
  border-radius: var(--radius-xl);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

@media (prefers-color-scheme: dark) {
  .testimonial-card { background-color: var(--bg-body); }
}

.stars {
  display: flex;
  gap: 0.25rem;
  color: var(--color-primary);
  margin-bottom: 1rem;
}

.testimonial-quote {
  font-style: italic;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.testimonial-card.featured {
  background-color: var(--bg-body);
  box-shadow: var(--shadow-xl);
  border: 1px solid #f3f4f6;
}

@media (prefers-color-scheme: dark) {
  .testimonial-card.featured { border-color: #1f2937; }
}

@media (min-width: 768px) {
  .testimonials-grid { grid-template-columns: repeat(3, 1fr); }
  .testimonial-card.featured { transform: translateY(-1rem); box-shadow: var(--shadow-lg); }
}

/* Logos */
.logos-section {
  padding: 3rem 0 8rem;
  border-top: 1px solid #f3f4f6;
  background: var(--bg-card);
}

.logos-section-brand {
  padding: 0.5rem 0 0.5rem;
  border-top: 1px solid #f3f4f6;
  
}

@media (prefers-color-scheme: dark) {
  .logos-section { border-color: #1f2937; background: var(--bg-dark-section); }
}

.logos-wrapper {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 3rem;
  opacity: 0.6;
  filter: grayscale(100%);
  transition: all 0.5s;
}

.logos-wrapper:hover {
  opacity: 1;
  filter: grayscale(0%);
}

.logo-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-muted);
}

/* Footer */
.footer {
  background-color: #111827;
  color: white;
  padding-top: 5rem;
  padding-bottom: 2.5rem;
  border-top: 1px solid #374151;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  margin-bottom: 4rem;
}

.footer-logo {
  height: 4.5rem;
  width: auto;
  filter: brightness(0) invert(1);
  margin-bottom: 1.5rem;
}

.social-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background-color: #1f2937;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s;
  color: white;
}

.social-icon:hover { background-color: var(--color-primary); }

.footer-heading {
  font-weight: 700;
  font-size: 1.125rem;
  margin-bottom: 1.5rem;
}

.footer-links li { margin-bottom: 1rem; }
.footer-links a { color: #9ca3af; font-size: 0.875rem; transition: color 0.2s; }
.footer-links a:hover { color: var(--color-primary); }

.newsletter-form input {
  width: 100%;
  background-color: #1f2937;
  border: none;
  border-radius: var(--radius-md);
  padding: 0.75rem 1rem;
  color: white;
  margin-bottom: 0.75rem;
  outline: none;
}

.newsletter-form input:focus {
  box-shadow: 0 0 0 2px var(--color-primary);
}

.newsletter-form button {
  width: 100%;
}

.footer-bottom {
  border-top: 1px solid #1f2937;
  padding-top: 2rem;
  text-align: center;
  color: #6b7280;
  font-size: 0.875rem;
}

@media (min-width: 768px) {
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .footer-grid { grid-template-columns: repeat(4, 1fr); }
}

/* Helpers */
.mobile-menu-open { overflow: hidden; }
.mobile-menu-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.8);
  z-index: 40;
  display: none;
  justify-content: center;
  align-items: center;
  backdrop-filter: blur(5px);
}
.mobile-menu-active { display: flex; }
.mobile-nav-list {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  text-align: center;
}
.mobile-nav-list a {
  color: white;
  font-size: 1.5rem;
  font-weight: 700;
}

/* --- ADDITIONS FOR ABOUT PAGE --- */

/* Hero Variant */
.hero--medium {
  height: 60vh;
  min-height: 500px;
}

/* Background Card Variant */
.bg-card-alt {
  background-color: #fff;
}
@media (prefers-color-scheme: dark) {
  .bg-card-alt { background-color: #181411; }
}

/* Stats Grid (Mission Section) */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}

.stat-card {
  background: var(--bg-card);
  padding: 1rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid #f3f4f6;
}
@media (prefers-color-scheme: dark) {
  .stat-card { 
    background: var(--bg-dark-card); 
    border-color: #374151;
  }
}

/* Features Grid (Why Choose Us) */
.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}
@media (min-width: 768px) {
  .features-grid { grid-template-columns: repeat(3, 1fr); }
}

.feature-card {
  background-color: var(--bg-body);
  padding: 2rem;
  border-radius: var(--radius-xl);
  border: 1px solid transparent;
  transition: var(--transition-base);
}
@media (prefers-color-scheme: dark) {
  .feature-card { background-color: var(--bg-dark-section); }
}

.feature-card:hover {
  box-shadow: var(--shadow-xl);
}

.border-hover-primary:hover { border-color: rgba(244, 140, 37, 0.2); }
.border-hover-secondary:hover { border-color: rgba(0, 142, 192, 0.2); }
.border-hover-green:hover { border-color: rgba(34, 197, 94, 0.2); }

.icon-box {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

/* Custom Colors for icons */
.bg-primary-light { background-color: rgba(244, 140, 37, 0.1); }
.bg-secondary-light { background-color: rgba(0, 142, 192, 0.1); }
.bg-green-light { background-color: rgba(34, 197, 94, 0.1); }
.text-green { color: #16a34a; }

.feature-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--text-main);
}
.feature-desc {
  color: var(--text-muted);
  line-height: 1.6;
}

/* Team Grid */
.team-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}
@media (min-width: 768px) {
  .team-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .team-grid { grid-template-columns: repeat(3, 1fr); }
}

.team-card {
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: var(--transition-base);
}
@media (prefers-color-scheme: dark) {
  .team-card { background: var(--bg-dark-card); }
}
.team-card:hover {
  box-shadow: var(--shadow-xl);
}

.team-content {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.team-img-wrapper {
  position: relative;
  width: 8rem;
  height: 8rem;
  margin-bottom: 1.5rem;
}

.team-img-bg {
  position: absolute;
  inset: 0;
  background-color: var(--color-secondary);
  border-radius: 50%;
  opacity: 0;
  transform: scale(0.9);
  transition: var(--transition-base);
}
.team-card:hover .team-img-bg {
  opacity: 0.1;
  transform: scale(1.1);
}

.team-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid var(--bg-body);
  position: relative;
  box-shadow: var(--shadow-lg);
}
@media (prefers-color-scheme: dark) {
  .team-img { border-color: #221910; }
}

.team-name {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-main);
}

.team-role {
  color: var(--color-primary);
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
  display: block;
}

.team-quote {
  color: var(--text-muted);
  font-size: 0.875rem;
  margin-bottom: 1.5rem;
}

.team-socials {
  display: flex;
  gap: 0.75rem;
  color: #9ca3af;
}
.team-socials a:hover { color: var(--color-primary); }

/* Outline Button Variant */
.btn--outline-white {
  background: transparent;
  border: 2px solid rgba(255, 255, 255, 0.3);
  color: white;
}
.btn--outline-white:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* Blobs for CTA Section */
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(64px);
  z-index: 1;
  pointer-events: none;
}

.blob-top-right {
  top: -5rem;
  right: -5rem;
  width: 20rem;
  height: 20rem;
  background-color: rgba(255, 255, 255, 0.1);
}

.blob-bottom-left {
  bottom: -5rem;
  left: -5rem;
  width: 15rem;
  height: 15rem;
  background-color: rgba(0, 0, 0, 0.05);
}


/* --- ADDITIONS FOR TRAVELS PAGE --- */

/* Breadcrumbs */
.breadcrumb-section {
  display: flex;
  justify-content: center; /* Centra gli elementi orizzontalmente */
  width: 100%;             /* Forza la lista a occupare tutto lo spazio disponibile */
  
  list-style: none;
  padding: 0;
  margin: 0;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  margin-top: 2rem;
}

.breadcrumb-list {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
}

.breadcrumb-link {
  display: inline-flex;
  align-items: center;
  color: #6b7280;
  font-weight: 500;
  transition: color 0.2s;
}
.breadcrumb-link:hover { color: var(--color-primary); }

.breadcrumb-item {
  display: flex;
  align-items: center;
}

.breadcrumb-separator {
  color: #9ca3af;
  font-size: 1rem;
  margin: 0 0.25rem;
}

/* Sticky Filter Section */
.filter-section-sticky {
  position: sticky;
  top: 80px; /* Adjust based on navbar height */
  z-index: 40;
  background-color: var(--bg-body);
  padding: 1rem 0;
}

.filter-bar {
  background: var(--bg-card);
  padding: 1.25rem;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
  border: 1px solid #f3f4f6;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

@media (prefers-color-scheme: dark) {
  .filter-bar { background: var(--bg-dark-card); border-color: #374151; }
}

@media (min-width: 1280px) {
  .filter-bar { flex-direction: row; align-items: center; justify-content: space-between; }
}

.filter-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: fit-content;
}
@media (min-width: 1280px) {
  .filter-label { padding-right: 1.5rem; border-right: 1px solid #f3f4f6; }
}

.filter-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  width: 100%;
}

@media (min-width: 768px) { .filter-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .filter-grid { grid-template-columns: repeat(4, 1fr); } }

.select-wrapper {
  position: relative;
  width: 100%;
}

.filter-select {
  width: 100%;
  appearance: none;
  background-color: #f9fafb;
  border: 1px solid #e5e7eb;
  color: #374151;
  padding: 0.75rem 2.5rem 0.75rem 1rem;
  border-radius: 0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  outline: none;
  transition: box-shadow 0.2s;
}

.filter-select:focus {
  box-shadow: 0 0 0 2px var(--color-primary);
  border-color: transparent;
}

@media (prefers-color-scheme: dark) {
  .filter-select { background-color: #1f2937; border-color: #374151; color: #e5e7eb; }
}

.select-icon {
  position: absolute;
  top: 50%;
  right: 0.75rem;
  transform: translateY(-50%);
  pointer-events: none;
  color: #6b7280;
  font-size: 1.25rem;
}

.filter-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-width: fit-content;
}

@media (min-width: 1280px) {
  .filter-actions { padding-left: 1.5rem; border-left: 1px solid #f3f4f6; }
}

.btn-reset {
  font-size: 0.875rem;
  font-weight: 600;
  color: #6b7280;
  text-decoration: underline;
  transition: color 0.2s;
}
.btn-reset:hover { color: var(--color-secondary); }

/* Card Badges (Tags on Image) */
.card-tag {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  color: white;
  font-size: 0.625rem;
  font-weight: 700;
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius-sm);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  z-index: 10;
}

.badge--primary { background-color: rgba(244, 140, 37, 0.9); }
.badge--secondary { background-color: rgba(0, 142, 192, 0.9); }
.badge--green { background-color: rgba(22, 163, 74, 0.9); }
.badge--purple { background-color: rgba(147, 51, 234, 0.9); }
.badge--yellow { background-color: rgba(202, 138, 4, 0.9); }
.badge--teal { background-color: rgba(20, 184, 166, 0.9); }

.text-orange { color: #fb923c; }

/* Card Details Grid for Travels Page */
.card-details .detail-col {
  display: flex;
  flex-direction: column;
}
.card-details .detail-col.right {
  align-items: flex-end;
}
.detail-label {
  font-size: 0.625rem;
  text-transform: uppercase;
  color: #9ca3af;
  font-weight: 600;
}
.detail-val {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

/* Pagination */
.pagination-container {
  margin-top: 3rem;
  display: flex;
  justify-content: center;
}

.pagination {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.pagination-btn {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: var(--radius-lg);
  border: 1px solid #e5e7eb;
  color: #4b5563;
  font-weight: 600;
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}
.pagination-btn:hover {
  background-color: #f3f4f6;
}

.pagination-btn.active {
  background-color: var(--color-primary);
  color: white;
  border-color: var(--color-primary);
  box-shadow: var(--shadow-primary);
}

.pagination-dots {
  color: #9ca3af;
  padding: 0 0.5rem;
}

@media (prefers-color-scheme: dark) {
  .pagination-btn { border-color: #374151; color: #9ca3af; }
  .pagination-btn:hover { background-color: #1f2937; }
  .pagination-btn.active { color: white; }
}


/* --- ADDITIONS FOR CONTACT PAGE --- */

/* Hero Variant Small */
.hero--small {
  height: 45vh;
  min-height: 600px;
}
.hero-title--sm {
  font-size: 2.5rem;
}
@media (min-width: 768px) {
  .hero-title--sm { font-size: 3.5rem; }
}

.tag-pill-sm {
  display: inline-block;
  background: rgba(255, 255, 255, 0.1);
  color: white;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(4px);
  margin-bottom: 1rem;
}

/* Contact Layout Wrapper (Negative Margin Pull Up) */
.contact-layout-wrapper {
  margin-top: -4rem; /* Pull up to overlap hero */
  position: relative;
  z-index: 30;
  padding-bottom: 5rem;
  flex-grow: 1; /* For sticky footer */
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}
@media (min-width: 1024px) {
  .contact-grid { 
    grid-template-columns: repeat(2, 1fr); 
    gap: 4rem;
  }
}

/* Contact Form Card */
.contact-form-card {
  background: var(--bg-card);
  border-radius: 1.5rem; /* rounded-3xl */
  padding: 2rem;
  box-shadow: var(--shadow-xl);
  border: 1px solid #f3f4f6;
}
@media (min-width: 768px) {
  .contact-form-card { padding: 2.5rem; }
}
@media (prefers-color-scheme: dark) {
  .contact-form-card { background: var(--bg-dark-card); border-color: #374151; }
}

.form-header { margin-bottom: 2rem; }
.form-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text-main);
}
.form-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 768px) {
  .form-row { grid-template-columns: 1fr 1fr; }
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-size: 0.875rem;
  font-weight: 600;
  color: #374151;
}
@media (prefers-color-scheme: dark) {
  .form-group label { color: #d1d5db; }
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  background-color: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 0.75rem;
  padding: 0.75rem 1rem;
  color: var(--text-main);
  outline: none;
  transition: all 0.2s;
  font-family: inherit;
}

.form-group textarea {
  height: 8rem;
  resize: none;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  box-shadow: 0 0 0 2px var(--color-primary);
  border-color: transparent;
}

@media (prefers-color-scheme: dark) {
  .form-group input, .form-group textarea, .form-group select {
    background-color: #1f2937;
    border-color: #374151;
  }
}

.btn--lg {
  padding: 1rem 2rem;
  font-size: 1.125rem;
}

.w-full { width: 100%; }
.flex-center { display: flex; justify-content: center; align-items: center; }

.group:hover .group-hover-translate-x {
  transform: translateX(0.25rem);
}
.transition-transform { transition: transform 0.2s; }

/* Contact Info Side */
.contact-info-side {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  padding-top: 0;
}
@media (min-width: 1024px) {
  .contact-info-side { padding-top: 6rem; }
}

.info-list {
  display: grid;
  gap: 2rem;
}

.info-item {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
}

.info-icon-box {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid #f3f4f6;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-secondary);
  flex-shrink: 0;
  transition: background 0.3s, color 0.3s;
}
@media (prefers-color-scheme: dark) {
  .info-icon-box { background: #1f2937; border-color: #374151; }
}

.info-item:hover .info-icon-box {
  background: var(--color-secondary);
  color: white;
}

.info-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
  color: var(--text-main);
}

.info-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
  line-height: 1.5;
}

.info-link {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--color-primary);
  transition: color 0.2s;
}
.info-link:hover { color: var(--color-primary-hover); }

/* Map */
.map-container {
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid #e5e7eb;
  height: 16rem;
  width: 100%;
  position: relative;
}
@media (prefers-color-scheme: dark) {
  .map-container { border-color: #374151; }
}

.map-iframe {
  width: 100%;
  height: 100%;
  border: 0;
  filter: grayscale(100%);
  transition: filter 0.7s;
}
.map-container:hover .map-iframe { filter: grayscale(0%); }

.map-badge {
  position: absolute;
  bottom: 1rem;
  right: 1rem;
  background: white;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  box-shadow: var(--shadow-md);
  font-size: 0.75rem;
  font-weight: 700;
  color: #374151;
  pointer-events: none;
}
@media (prefers-color-scheme: dark) {
  .map-badge { background: #1f2937; color: #e5e7eb; }
}

/* Social Connect Card */
.social-connect-card {
  background: rgba(244, 140, 37, 0.05);
  border: 1px solid rgba(244, 140, 37, 0.1);
  border-radius: 1rem;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
@media (min-width: 640px) {
  .social-connect-card { flex-direction: row; align-items: center; justify-content: space-between; }
}
@media (prefers-color-scheme: dark) {
  .social-connect-card { background: rgba(244, 140, 37, 0.1); }
}

.social-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.25rem;
}
.social-desc { font-size: 0.875rem; color: var(--text-muted); }

.social-links-row {
  display: flex;
  gap: 0.75rem;
}

.social-btn {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: var(--bg-card);
  color: var(--color-secondary);
  border: 1px solid #f3f4f6;
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}
@media (prefers-color-scheme: dark) {
  .social-btn { background: #1f2937; border-color: #374151; }
}

.social-btn:hover {
  background: var(--color-secondary);
  color: white;
  border-color: var(--color-secondary);
}

/* Sticky Footer Helper */
.flex-col { display: flex; flex-direction: column; }
.min-h-screen { min-height: 100vh; }


/* --- ADDITIONS FOR TRIP TYPES PAGE --- */

/* Hero Compact */
.hero--compact {
  height: 50vh;
  min-height: 400px;
}

/* Masonry Grid (CSS Columns approach) */
.masonry-grid {
  column-count: 1;
  column-gap: 1.5rem;
}
@media (min-width: 640px) {
  .masonry-grid { column-count: 2; }
}
@media (min-width: 1024px) {
  .masonry-grid { column-count: 3; }
}

/* Category Card (Masonry Item) */
.category-card {
  position: relative;
  break-inside: avoid; /* Prevent break inside columns */
  margin-bottom: 1.5rem;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  cursor: pointer;
  /* Trick to fix border-radius overflow in some browsers */
  transform: translateZ(0); 
}

.category-img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.7s ease;
}
.category-card:hover .category-img {
  transform: scale(1.1);
}

.category-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.8), rgba(0,0,0,0.2), transparent);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.5rem;
}

.category-content {
  transform: translateY(1.5rem);
  transition: transform 0.3s ease;
}
.category-card:hover .category-content {
  transform: translateY(0);
}

.category-title {
  color: white;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.category-desc {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.875rem;
  margin-bottom: 1rem;
  opacity: 0;
  transition: opacity 0.3s ease 0.1s; /* Slight delay */
}
.category-card:hover .category-desc {
  opacity: 1;
}

.category-link {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-weight: 700;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: color 0.2s;
  margin-bottom: 5px;
}
.category-card:hover .category-link { color: white; }

.category-click-area {
  position: absolute;
  inset: 0;
  z-index: 10;
}

/* Colors specific to this page */
.text-teal { color: #2dd4bf; }
.text-yellow { color: #eab308; }
.text-orange { color: #f97316; }
.text-purple { color: #c084fc; }

/* CTA Banner */
.cta-banner-section {
  background-color: rgba(244, 140, 37, 0.1);
  padding: 5rem 1.5rem;
}
@media (prefers-color-scheme: dark) {
  .cta-banner-section { background-color: rgba(244, 140, 37, 0.05); }
}

.cta-title {
  font-size: 2.25rem;
  font-weight: 900;
  color: var(--text-main);
  margin-bottom: 1.5rem;
}
@media (min-width: 768px) { .cta-title { font-size: 3rem; } }

.cta-desc {
  font-size: 1.125rem;
  color: var(--text-muted);
  max-width: 42rem;
  margin: 0 auto 2.5rem auto;
}

/* FAQ Accordion */
.faq-wrapper {
  max-width: 56rem;
  margin: 0 auto;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  border: 1px solid #f3f4f6;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s;
}
.faq-item:hover { box-shadow: var(--shadow-md); }

@media (prefers-color-scheme: dark) {
  .faq-item { 
    background: #2a221b; /* slightly lighter than dark bg */
    border-color: #374151; 
  }
}

.faq-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  list-style: none; /* Removes default arrow */
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--text-main);
}
.faq-summary::-webkit-details-marker { display: none; } /* Webkit hide marker */

.faq-icon-box {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background-color: #f3f4f6;
  color: #6b7280;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s;
}
@media (prefers-color-scheme: dark) {
  .faq-icon-box { background-color: #374151; color: #9ca3af; }
}

details[open] .faq-icon-box {
  transform: rotate(180deg);
}

.faq-content {
  margin-top: 1rem;
  color: var(--text-muted);
  line-height: 1.6;
  padding-right: 1rem;
}


/* --- ADDITIONS FOR TRIP DETAIL PAGE --- */

.hero-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.125rem;
  font-weight: 500;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.detail-page-wrapper {
  margin-top: -2rem;
  position: relative;
  z-index: 20;
  padding-bottom: 5rem;
}

.breadcrumb-nav {
  margin-bottom: 2rem;
}

.section-title {
  font-size: 1.875rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 1.5rem;
}

.section-text {
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--text-muted);
  max-width: 56rem;
}

/* Info Grid (Duration, Season, Level) */
.info-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 768px) {
  .info-grid { grid-template-columns: repeat(2, 1fr); }
}

.info-card {
  background: var(--bg-card);
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid #f3f4f6;
  display: flex;
  align-items: center;
  gap: 1rem;
}
@media (prefers-color-scheme: dark) {
  .info-card { background: var(--bg-dark-card); border-color: #374151; }
}

.info-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.info-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: #6b7280;
  margin-bottom: 0.25rem;
}
.info-value {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text-main);
}

/* Background utility classes */
.bg-blue-light { background-color: #eff6ff; }
.bg-orange-light { background-color: #fff7ed; }
.bg-green-light { background-color: #f0fdf4; }
.bg-blue-900\/30 { background-color: rgba(30, 58, 138, 0.3); } /* Dark mode example */

@media (prefers-color-scheme: dark) {
  .bg-blue-light { background-color: rgba(59, 130, 246, 0.2); }
  .bg-orange-light { background-color: rgba(249, 115, 22, 0.2); }
  .bg-green-light { background-color: rgba(34, 197, 94, 0.2); }
}

/* Split Layout */
.detail-split-layout {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}
@media (min-width: 1024px) {
  .detail-split-layout { 
    flex-direction: row; 
    align-items: stretch; /* Important for sticky sidebar */
  }
}

.main-detail-content {
  width: 100%;
  order: 1;
}
.sidebar {
  width: 100%;
  order: 2;
}
@media (min-width: 1024px) {
  .main-detail-content { width: 66.666%; order: 2; }
  .sidebar { width: 33.333%; order: 1; }
}

/* Booking Widget Sidebar */
.booking-widget {
 background: var(--bg-card);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  border: 1px solid #f3f4f6;
  padding: 1.5rem;
  
  /* Logica Sticky */
  position: -webkit-sticky; /* Supporto Safari */
  position: sticky;
  top: 120px; /* <--- Aumentato per non collidere con la Navbar fissa */
  z-index: 30;
  
  /* Assicuriamo che l'altezza non rompa il layout */
  height: fit-content;
}
@media (min-width: 768px) {
  .booking-widget { padding: 2rem; }
}
@media (prefers-color-scheme: dark) {
  .booking-widget { background: var(--bg-dark-card); border-color: #374151; }
}

.widget-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}
.widget-label { font-size: 0.875rem; font-weight: 500; color: var(--text-muted); }

.price-row {
  display: flex;
  align-items: baseline;
  gap: 0.25rem;
  margin-bottom: 1.5rem;
}
.price-amount {
  font-size: 2.25rem;
  font-weight: 900;
  color: var(--text-main);
}
.price-per {
  color: var(--text-muted);
}

.widget-selectors {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2rem;
}

.selector-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem;
  background-color: #f9fafb;
  border-radius: var(--radius-lg);
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.2s;
}
.selector-item:hover { background-color: #f3f4f6; }
@media (prefers-color-scheme: dark) {
  .selector-item { background-color: #1f2937; }
  .selector-item:hover { background-color: #374151; }
}

.selector-content {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.selector-text {
  display: flex;
  flex-direction: column;
}
.selector-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #6b7280;
}
.selector-value {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-main);
}

.widget-note {
  text-align: center;
  font-size: 0.75rem;
  color: #9ca3af;
  margin-bottom: 1.5rem;
}

.widget-features {
  border-top: 1px solid #f3f4f6;
  padding-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
@media (prefers-color-scheme: dark) {
  .widget-features { border-color: #374151; }
}

.feature-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* Detail Subtitles */
.detail-subtitle {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Gallery Grid */
.gallery-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  height: 500px;
}
@media (min-width: 768px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 1fr);
  }
}

.gallery-item {
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  height: 100%;
}
.gallery-item--large {
  grid-row: span 2;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}
.gallery-item:hover img { transform: scale(1.05); }

/* Timeline (Itinerary) */
.timeline {
  padding-left: 2rem;
  border-left: 2px solid #e5e7eb;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}
@media (prefers-color-scheme: dark) {
  .timeline { border-color: #374151; }
}

.timeline-item { position: relative; }

.timeline-marker {
  position: absolute;
  left: -3.1rem; /* Adjust based on padding/border */
  top: 0;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  color: white;
  font-weight: 700;
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  border: 4px solid var(--bg-body);
}

.timeline-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.5rem;
}
.timeline-desc {
  color: var(--text-muted);
  line-height: 1.6;
}

/* Helper background colors for markers */
.bg-dark { background-color: #374151; }

/* Inclusions Grid */
.inclusions-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}
@media (min-width: 768px) {
  .inclusions-grid { grid-template-columns: 1fr 1fr; }
}

.inclusion-card {
  padding: 1.5rem;
  border-radius: 1rem;
  border-width: 1px;
  border-style: solid;
}

.bg-green-subtle { background-color: #f0fdf4; }
.border-green { border-color: #dcfce7; }
.text-green-dark { color: #15803d; }

.bg-red-subtle { background-color: #fef2f2; }
.border-red { border-color: #fee2e2; }
.text-red-dark { color: #b91c1c; }
.text-red-light { color: #f87171; }

@media (prefers-color-scheme: dark) {
  .bg-green-subtle { background-color: rgba(21, 128, 61, 0.1); border-color: rgba(21, 128, 61, 0.3); }
  .text-green-dark { color: #86efac; }
  
  .bg-red-subtle { background-color: rgba(185, 28, 28, 0.1); border-color: rgba(185, 28, 28, 0.3); }
  .text-red-dark { color: #fca5a5; }
}

.inclusion-title {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.inclusion-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.inclusion-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* --- AGGIORNAMENTO FILTRI MOBILE --- */

/* Header dei filtri (bottone toggle) */
.filter-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
}

/* Icona freccia per mobile */
.filter-chevron {
  transition: transform 0.3s ease;
  color: var(--text-muted);
}

/* Quando i filtri sono aperti, ruota la freccia */
.filter-header[aria-expanded="true"] .filter-chevron {
  transform: rotate(180deg);
}

/* Contenitore che si nasconde su mobile */
.filter-collapsible {
  display: none; /* Nascosto di default su mobile */
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 1.5rem;
  width: 100%;
  animation: fadeIn 0.3s ease;
}

/* Classe helper per mostrare il contenuto via JS */
.filter-collapsible.is-open {
  display: flex;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* --- VERSIONE DESKTOP (Reset del comportamento mobile) --- */
@media (min-width: 1280px) {
  .filter-bar {
    flex-direction: row; 
    align-items: center; 
    justify-content: space-between;
    padding: 1rem 1.5rem; /* Padding ottimizzato */
  }

  .filter-header {
    width: auto;
    cursor: default; /* Non cliccabile su desktop */
  }

  .filter-chevron {
    display: none; /* Nascondi freccia su desktop */
  }

  /* Mostra sempre il contenuto su desktop e ripristina layout orizzontale */
  .filter-collapsible {
    display: flex !important; /* Forza la visualizzazione */
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    margin-top: 0;
    width: 100%;
    margin-left: 2rem; /* Spazio tra label e input */
  }
  
  .filter-grid {
    grid-template-columns: repeat(4, 1fr); /* Assicura 4 colonne */
  }
}


/* --- ADDITIONS FOR TRIP TYPE SINGLE PAGE --- */

/* Page Wrapper (reuse same class or create specialized one) */
.category-page-wrapper {
  margin-top: -2rem;
  position: relative;
  z-index: 20;
  padding-bottom: 5rem;
}

/* Category Split Layout (Text + Sidebar) */
.cat-split-layout {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}
@media (min-width: 768px) {
  .cat-split-layout { 
    flex-direction: row; 
    align-items: flex-start; 
  }
}

.cat-content { flex: 2; }
.cat-sidebar { flex: 1; }

.cat-prose {
  color: var(--text-muted);
  font-size: 1.125rem;
  line-height: 1.7;
}
.cat-prose p { margin-bottom: 1.5rem; }

/* Feature Box (Sidebar) */
.feature-box {
  background: var(--bg-card);
  padding: 2rem;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  border: 1px solid #f3f4f6;
}
@media (prefers-color-scheme: dark) {
  .feature-box { background: #2a221b; border-color: #374151; }
}

.feature-box-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 1.5rem;
  border-bottom: 1px solid #f3f4f6;
  padding-bottom: 1rem;
}
@media (prefers-color-scheme: dark) {
  .feature-box-title { border-color: #374151; }
}

.feature-box-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.feature-box-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.icon-square {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Featured Adventures Card Badges */
.card-badge-top-left {
  position: absolute;
  top: 1rem;
  left: 1rem;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  z-index: 10;
  backdrop-filter: blur(4px);
}
@media (prefers-color-scheme: dark) {
  .card-badge-top-left { background: rgba(0,0,0,0.8); color: white; }
}

.card-badge-bottom-left {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 1rem;
  background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
  color: white;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.card-title-lg {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-main);
  transition: color 0.2s;
}
.card:hover .card-title-lg { color: var(--color-primary); }

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  border-top: 1px solid #f3f4f6;
  margin-top: auto; /* Push to bottom if content varies */
}
@media (prefers-color-scheme: dark) {
  .card-footer { border-color: #374151; }
}

.btn-link-arrow {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-weight: 700;
  font-size: 0.875rem;
  color: var(--text-main);
  transition: color 0.2s;
}
.btn-link-arrow:hover { color: var(--color-primary); }

.btn--outline-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid rgba(244, 140, 37, 0.2);
  color: var(--color-primary);
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.875rem;
}

/* Stories Section Dark */
.glow-blob {
  position: absolute;
  top: 0;
  right: 0;
  width: 24rem;
  height: 24rem;
  background: rgba(244, 140, 37, 0.05);
  border-radius: 50%;
  filter: blur(64px);
  transform: translate(50%, -50%);
  z-index: 0;
}

.story-card {
  background: var(--bg-card);
  padding: 2rem;
  border-radius: var(--radius-xl);
  border: 1px solid #f3f4f6;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
@media (prefers-color-scheme: dark) {
  .story-card { background: #2a221b; border-color: #374151; }
}

.story-text {
  font-style: italic;
  font-size: 1.125rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.story-author {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: auto;
}

.story-avatar {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  object-fit: cover;
  background-color: #e5e7eb;
}



/** Blog Section **/

/* ALLINEAMENTO GRIGLIA (La soluzione al problema) */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px; /* Spazio tra le card */
    margin-top: 40px;
}

/* Stile base sezione */
.blog-section {
    background-color: #f9fbfd;
    padding: 80px 0;
}

.text-center { text-align: center; }

.section-heading .sub-heading {
    color: #0d6efd;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.85rem;
    display: block;
    margin-bottom: 10px;
}

.section-heading h2 {
    font-weight: 700;
    margin-bottom: 15px;
    font-size: 2rem;
}

.section-description {
    max-width: 600px;
    margin: 0 auto;
    color: #6c757d;
    line-height: 1.6;
}

/* CARD DEL BLOG */
.blog-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%; /* Fa sì che le card siano tutte alte uguali */
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

/* IMMAGINI FIX */
.blog-img-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10; /* Mantiene le proporzioni delle immagini costanti */
    overflow: hidden;
}

.blog-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Evita che l'immagine si deformi */
    display: block;
    transition: transform 0.5s ease;
}

.blog-card:hover .blog-img-wrapper img {
    transform: scale(1.05);
}

/* Etichetta Categoria */
.blog-category {
    position: absolute;
    top: 15px;
    left: 15px;
    background-color: #fff;
    color: #0d6efd;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* CONTENUTO TESTUALE FIX */
.blog-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1; /* Spinge il pulsante sempre in basso */
}

.blog-meta {
    font-size: 0.85rem;
    color: #888;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.blog-meta .material-icons-outlined {
    font-size: 16px;
    margin-right: 5px;
}

.ms-3 { margin-left: 1rem; }

.blog-content h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.3;
}

.blog-content h3 a {
    color: #212529;
    text-decoration: none;
}

.blog-content p {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 20px;
    flex-grow: 1; /* Occupa lo spazio vuoto in caso di testo corto */
}

/* Link "Leggi l'articolo" */
.btn-link {
    display: inline-flex;
    align-items: center;
    color: #0d6efd;
    font-weight: 600;
    text-decoration: none;
    font-size: 0.95rem;
    margin-top: auto; /* Allinea il bottone al fondo della card */
    gap: 5px;
}

/* Contenitore per centrare il bottone */
.blog-footer {
    text-align: center;
    margin-top: 60px; /* Spazio tra le card e il bottone */
}

/* Stile del Bottone Velazzurra */
.btn-velazzurra {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px; /* Spazio tra testo e freccia */
    
    background-color: #0d6efd; /* Blu acceso tipico del web moderno (Bootstrap primary) */
    color: #ffffff;
    
    padding: 12px 30px;
    border-radius: 50px; /* Bordi molto arrotondati (pill shape) */
    
    font-weight: 600;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(13, 110, 253, 0.3); /* Ombra blu soffusa */
}

/* Effetto Hover */
.btn-velazzurra:hover {
    background-color: #0b5ed7; /* Blu leggermente più scuro */
    transform: translateY(-2px); /* Si alza leggermente */
    box-shadow: 0 6px 20px rgba(13, 110, 253, 0.4);
}

/* Icona dentro il bottone */
.btn-velazzurra .material-icons-outlined {
    font-size: 18px;
    transition: transform 0.3s ease;
}

.btn-velazzurra:hover .material-icons-outlined {
    transform: translateX(5px); /* La freccia si sposta a destra */
}


/* Contenitore Loghi */
.logos-wrapper {
    display: flex;
    justify-content: center; /* Centra i loghi orizzontalmente */
    align-items: center;     /* Centra i loghi verticalmente */
    flex-wrap: wrap;         /* Va a capo su schermi piccoli */
    gap: 40px;               /* Spazio tra i loghi */
    padding: 50px 0;         /* Spazio sopra e sotto la sezione */
    background-color: transparent;  /* Assicurati che lo sfondo sia bianco */
}

/* Singolo Logo */
.logo-item img {
    height: 70px;            /* Fissa l'altezza uguale per tutti */
    width: auto;             /* La larghezza si adatta automaticamente */
    object-fit: contain;     /* Mantiene le proporzioni */
    
    /* Effetto visuale */
    filter: grayscale(100%); /* Rende il logo in bianco e nero */
    transition: all 0.3s ease; /* Transizione fluida */
}

/* Effetto al passaggio del mouse */
.logo-item img:hover {
    filter: grayscale(0%);   /* Torna a colori */
    opacity: 1;              /* Opacità al 100% */
    transform: scale(1.1);   /* Leggero ingrandimento */
}

/* Adattamento per mobile */
@media (max-width: 768px) {
    .logos-wrapper {
        gap: 25px;
    }
    .logo-item img {
        height: 25px; /* Loghi più piccoli su mobile */
    }
}