/* =========================================================
   IL VIAGGIO SERVITO — CSS Design System v2
   Palette: Rosso #E82322, Teal #1A6B6B, Crema #F5E6C8
   Stile: Cartoon-professionale, vivace ma serio
   ========================================================= */

/* --- Design Tokens --- */
:root {
  --bg-dark: #0e0e0e;
  --bg-card: #161616;
  --bg-section: #111111;
  --bg-warm: #1a1410;

  /* Logo palette */
  --red: #E82322;
  --red-light: #ff4444;
  --red-dim: rgba(232, 35, 34, 0.15);
  --red-glow: 0 8px 30px rgba(232, 35, 34, 0.3);

  --teal: #1A6B6B;
  --teal-light: #22a0a0;
  --teal-dim: rgba(26, 107, 107, 0.2);

  --cream: #F5E6C8;
  --cream-dim: rgba(245, 230, 200, 0.65);
  --cream-faint: rgba(245, 230, 200, 0.08);

  --white: #faf7f2;
  --white-dim: rgba(250, 247, 242, 0.65);

  --glass: rgba(255, 255, 255, 0.04);
  --glass-border: rgba(255, 255, 255, 0.09);
  --shadow-card: 0 20px 60px rgba(0, 0, 0, 0.55);
  --shadow-red: 0 8px 30px rgba(232, 35, 34, 0.3);

  --radius-lg: 20px;
  --radius-md: 12px;
  --radius-sm: 8px;

  --font-display: 'Nunito', 'Inter', system-ui, sans-serif;
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans: 'Inter', system-ui, sans-serif;
  --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Reset & Base --- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background: var(--bg-dark);
  color: var(--white);
  font-family: var(--font-sans);
  font-weight: 400;
  line-height: 1.65;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

/* --- Typography --- */
h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  line-height: 1.2;
  font-weight: 800;
}

em {
  font-style: italic;
  color: var(--teal-light);
}

.section-label {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 0.75rem;
  display: block;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.section-sub {
  color: var(--white-dim);
  font-size: 1.05rem;
  max-width: 600px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.section-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 5rem 1.5rem;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  border-radius: 50px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--red), var(--red-light));
  color: #fff;
  box-shadow: var(--shadow-red);
}

.btn-primary:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 14px 40px rgba(232, 35, 34, 0.5);
}

.btn-ghost {
  background: transparent;
  color: var(--white);
  border: 2px solid var(--glass-border);
}

.btn-ghost:hover {
  border-color: var(--teal-light);
  color: var(--teal-light);
  transform: translateY(-2px);
}

.btn-whatsapp {
  background: linear-gradient(135deg, #25d366, #128c7e);
  color: #fff;
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 12px 35px rgba(37, 211, 102, 0.5);
}

.btn-libro {
  background: linear-gradient(135deg, var(--teal), var(--teal-light));
  color: #fff;
  box-shadow: 0 8px 25px rgba(26, 107, 107, 0.4);
}

.btn-libro:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 12px 35px rgba(26, 107, 107, 0.55);
}

.btn-sm {
  padding: 0.6rem 1.3rem;
  font-size: 0.85rem;
}

.btn-lg {
  padding: 1rem 2.5rem;
  font-size: 1.05rem;
}

/* --- Animations --- */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

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

@keyframes shimmer {
  0% {
    background-position: -200% center;
  }

  100% {
    background-position: 200% center;
  }
}

@keyframes scrollLine {
  0% {
    transform: scaleY(0);
    transform-origin: top;
  }

  50% {
    transform: scaleY(1);
    transform-origin: top;
  }

  51% {
    transform: scaleY(1);
    transform-origin: bottom;
  }

  100% {
    transform: scaleY(0);
    transform-origin: bottom;
  }
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0) rotate(-5deg);
  }

  50% {
    transform: translateY(-8px) rotate(5deg);
  }
}

@keyframes bounce {

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

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

@keyframes heroZoom {
  from {
    transform: scale(1.05);
  }

  to {
    transform: scale(1.12);
  }
}

.animate-fade-up {
  opacity: 0;
  animation: fadeUp 0.9s ease forwards;
}

/* Reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* =========================================================
   NAVBAR
   ========================================================= */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1rem 0;
  transition: var(--transition);
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.navbar.scrolled {
  padding: 0.75rem 0;
  background: rgba(14, 14, 14, 0.94);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 2px solid rgba(232, 35, 34, 0.25);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 900;
}

.logo-img {
  height: 130px;
  width: auto;
  transition: transform 0.35s ease;
}

.nav-logo:hover .logo-img {
  transform: scale(1.05);
}

.logo-icon {
  font-size: 1.6rem;
  animation: float 3s ease-in-out infinite;
  display: inline-block;
}

.logo-text {
  color: var(--white);
}

.logo-text em {
  color: var(--red);
  font-style: normal;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.nav-link {
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 700;
  color: #ffffff !important;
  background: rgba(0, 0, 0, 0.52);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 0.35rem 0.85rem;
  border-radius: 30px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9);
  transition: var(--transition);
  position: relative;
}

.nav-link::after {
  display: none;
}

.nav-link:hover {
  color: #ffffff !important;
  background: rgba(0, 0, 0, 0.75);
  border-color: rgba(255, 255, 255, 0.45);
  transform: translateY(-1px);
}

.cta-nav {
  background: var(--red) !important;
  border: 1px solid var(--red) !important;
  color: #ffffff !important;
  padding: 0.35rem 1rem;
  border-radius: 30px;
  font-size: 0.82rem;
  font-weight: 800;
  box-shadow: 0 4px 15px rgba(232, 35, 34, 0.45);
}

.cta-nav:hover {
  background: #c81e1d !important;
  color: #ffffff !important;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(232, 35, 34, 0.6);
}

.cta-nav::after {
  display: none;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 3px;
  background: var(--white);
  border-radius: 3px;
  transition: var(--transition);
}

.hamburger.open span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.hamburger.open span:nth-child(2) {
  opacity: 0;
}

.hamburger.open span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative;
  height: 100vh;
  min-height: 850px; /* Increased from 700px to prevent overlap with content */
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg-split {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-bg-slice {
  position: absolute;
  top: 0;
  bottom: 0;
  background-size: cover;
  background-position: center;
}

.hero-bg-slice::after {
  content: "";
  position: absolute;
  inset: 0;
  background: inherit;
  filter: brightness(0.9);
  z-index: 1;
}

/* Posizioni e maschere CSS per fusione morbida tra le 3 immagini native ad alta risoluzione */
.hero-bg-slice:nth-child(1) { 
  left: 0; 
  width: 40%;
  -webkit-mask-image: linear-gradient(to right, black 75%, transparent 100%);
  mask-image: linear-gradient(to right, black 75%, transparent 100%);
  z-index: 3;
}
.hero-bg-slice:nth-child(2) { 
  left: 30%; 
  width: 40%;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 25%, black 75%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0%, black 25%, black 75%, transparent 100%);
  z-index: 2;
}
.hero-bg-slice:nth-child(3) { 
  right: 0; 
  width: 40%;
  -webkit-mask-image: linear-gradient(to left, black 75%, transparent 100%);
  mask-image: linear-gradient(to left, black 75%, transparent 100%);
  z-index: 1;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg,
      rgba(14, 14, 14, 0.6) 0%,
      rgba(14, 14, 14, 0.45) 50%,
      rgba(14, 14, 14, 0.6) 100%);
  z-index: 2;
}

/* Hero 3-column layout with characters */
.hero-layout {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 1rem;
  padding-top: 140px; /* Increased from 80px to prevent navbar overlap */
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 0;
}

.hero-content {
  flex: 1;
  text-align: center;
  padding: 0 2rem 5rem; /* Increased bottom padding */
  max-width: 750px; /* Increased max-width to allow more space for the larger title */
}

.hero-content .hero-pre {
  justify-content: center;
}

.hero-content .hero-sub {
  margin: 0 auto 2.5rem;
}

.hero-content .hero-cta {
  justify-content: center;
}

/* Cartoon Characters */
@keyframes wave {
  0% {
    transform: rotate(0deg);
  }

  15% {
    transform: rotate(20deg);
  }

  30% {
    transform: rotate(-10deg);
  }

  45% {
    transform: rotate(15deg);
  }

  60% {
    transform: rotate(-5deg);
  }

  75% {
    transform: rotate(10deg);
  }

  100% {
    transform: rotate(0deg);
  }
}

@keyframes charFloat {

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

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

.hero-character {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  width: 280px;
  /* No animation here — animate-fade-up class handles the fade-in */
}

.hero-character-right .hero-char-img {
  animation-delay: 0.7s;
}

.hero-char-img {
  width: 100%;
  max-width: 260px;
  height: auto;
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.7));
  image-rendering: -webkit-optimize-contrast;
  animation: charFloat 4s ease-in-out infinite;
}

.hero-char-name {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 900;
  color: var(--cream);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: rgba(14, 14, 14, 0.6);
  backdrop-filter: blur(8px);
  padding: 0.3rem 1rem;
  border-radius: 50px;
  border: 1.5px solid rgba(245, 230, 200, 0.2);
  margin-bottom: 1.5rem;
}

.hero-pre {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 4.5rem); /* Slightly reduced max size if it was too huge */
  font-weight: 900;
  line-height: 1.15; /* Increased line-height slightly to prevent its own lines from overlapping */
  margin-bottom: 2rem; /* Increased margin bottom */
  letter-spacing: -0.02em;
}

.hero-highlight {
  background: linear-gradient(135deg, var(--red), #ff6b6b, var(--teal-light));
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer 4s linear infinite;
}

.hero-sub {
  margin-bottom: 2.5rem;
  max-width: 650px;
  margin-left: auto;
  margin-right: auto;
}

.hero-highlights-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.8rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.hero-pill {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.4);
  padding: 0.5rem 1.2rem;
  border-radius: 50px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.95rem;
  color: #fff;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  text-shadow: 0 1px 3px rgba(0,0,0,0.6);
}

.hero-sub-text {
  font-size: 1.25rem;
  color: var(--white);
  line-height: 1.6;
  font-weight: 600;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
}

.hero-cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-scroll {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  z-index: 1;
}

.hero-scroll span {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--white-dim);
  font-weight: 700;
}

.scroll-line {
  width: 2px;
  height: 50px;
  background: var(--red);
  border-radius: 2px;
  animation: scrollLine 2s ease-in-out infinite;
}

/* Hide scroll indicator on very short screens to avoid any possibility of overlap */
@media (max-height: 750px) {
  .hero-scroll {
    display: none;
  }
}

/* =========================================================
   FEATURES / STATS BAR
   ========================================================= */
.features-bar {
  background: linear-gradient(135deg, rgba(20, 20, 20, 0.95), rgba(15, 10, 10, 0.98));
  border-top: 2px solid rgba(232, 35, 34, 0.25);
  border-bottom: 2px solid rgba(232, 35, 34, 0.1);
  padding: 4rem 1.5rem;
  position: relative;
  z-index: 10;
}

.features-container {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  align-items: stretch;
  justify-content: center;
}

.feature-item {
  text-align: center;
  padding: 1rem;
  transition: transform 0.3s ease;
}

.feature-item:hover {
  transform: translateY(-5px);
}

.feature-icon {
  display: inline-block;
  font-size: 2.8rem;
  margin-bottom: 1rem;
  animation: bounce 3s ease-in-out infinite;
  filter: drop-shadow(0 0 10px rgba(232, 35, 34, 0.3));
}

.feature-item:nth-child(3) .feature-icon { animation-delay: 0.3s; }
.feature-item:nth-child(5) .feature-icon { animation-delay: 0.6s; }
.feature-item:nth-child(7) .feature-icon { animation-delay: 0.9s; }

.feature-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--white);
  margin-bottom: 0.5rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.feature-desc {
  font-size: 0.95rem;
  color: var(--white-dim);
  line-height: 1.6;
  max-width: 260px;
  margin: 0 auto;
}

/* On desktop, separators between items */
.feature-divider {
  display: none; /* Default hidden on mobile grid */
  width: 1px;
  background: linear-gradient(to bottom, transparent, rgba(255, 255, 255, 0.15), transparent);
}

@media (min-width: 1200px) {
  .features-container {
    grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
    gap: 1.5rem;
  }
  .feature-divider {
    display: block;
    align-self: center;
    height: 80%;
  }
}

/* =========================================================
   ABOUT
   ========================================================= */
.about {
  background: var(--bg-section);
}

.about .section-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.about-desc {
  color: var(--white-dim);
  font-size: 1rem;
  margin-bottom: 1rem;
  line-height: 1.8;
}

.about-desc strong {
  color: var(--white);
}

.value-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.5rem;
  background: var(--cream-faint);
  border: 1.5px solid rgba(232, 35, 34, 0.15);
  border-radius: var(--radius-md);
  transition: var(--transition);
}

.value-item:hover {
  border-color: rgba(232, 35, 34, 0.4);
  background: rgba(232, 35, 34, 0.06);
  transform: translateY(-2px);
}

.value-icon {
  font-size: 1.8rem;
  flex-shrink: 0;
}

.value-item strong {
  display: block;
  font-size: 0.95rem;
  margin-bottom: 0.25rem;
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--white);
}

.value-item p {
  font-size: 0.85rem;
  color: var(--white-dim);
  line-height: 1.5;
}

.about-img-wrap {
  position: relative;
}

.about-img-wrap img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card), 0 0 0 4px rgba(232, 35, 34, 0.15);
  object-fit: cover;
  aspect-ratio: 4/5;
}

.about-img-badge {
  position: absolute;
  bottom: 1.5rem;
  left: 1.5rem;
  background: rgba(14, 14, 14, 0.9);
  backdrop-filter: blur(10px);
  border: 2px solid rgba(232, 35, 34, 0.4);
  padding: 0.75rem 1.25rem;
  border-radius: 50px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 800;
  font-family: var(--font-display);
  color: var(--cream);
}

/* =========================================================
   PHILOSOPHY
   ========================================================= */
.philosophy {
  background: linear-gradient(135deg, #0a0a0a, var(--bg-warm));
  padding: 5rem 1.5rem;
}

.philosophy-inner {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.philosophy-quote p {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  font-weight: 700;
  line-height: 1.5;
  color: var(--white);
  margin-bottom: 1.5rem;
}

.philosophy-quote footer {
  font-size: 0.9rem;
  color: var(--red);
  letter-spacing: 0.1em;
  font-weight: 800;
  font-family: var(--font-display);
}

.philosophy-quote::before {
  content: '"';
  display: block;
  font-family: var(--font-serif);
  font-size: 7rem;
  color: rgba(232, 35, 34, 0.15);
  line-height: 0.5;
  margin-bottom: 1.5rem;
}

/* =========================================================
   VIAGGI GRID
   ========================================================= */
.viaggi {
  background: var(--bg-dark);
}

.viaggi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.viaggio-card {
  background: var(--bg-card);
  border: 2px solid var(--glass-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
  cursor: pointer;
  display: block;
  text-decoration: none;
  color: inherit;
}

.viaggio-card:hover {
  transform: translateY(-10px) scale(1.01);
  border-color: rgba(232, 35, 34, 0.4);
  box-shadow: var(--shadow-card), 0 0 0 2px rgba(232, 35, 34, 0.15);
}

.card-img-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16/10;
}

.card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease;
}

.card-sold-out {
  filter: grayscale(0.85) opacity(0.8);
}

.card-sold-out:hover {
  filter: grayscale(0.4) opacity(1);
}

.sold-out-badge {
  position: absolute;
  top: 15px;
  right: 15px;
  background-color: var(--red);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 900;
  padding: 0.4rem 0.8rem;
  border-radius: 4px;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  z-index: 10;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
  text-transform: uppercase;
}

.viaggio-card:hover .card-img {
  transform: scale(1.08);
}

.card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(14, 14, 14, 0.85) 0%, transparent 60%);
}

.card-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(14, 14, 14, 0.8);
  backdrop-filter: blur(8px);
  border: 1.5px solid var(--glass-border);
  padding: 0.3rem 0.85rem;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 800;
  font-family: var(--font-display);
  color: var(--white);
  letter-spacing: 0.05em;
}

.hot-badge {
  background: rgba(232, 35, 34, 0.2) !important;
  border-color: rgba(232, 35, 34, 0.6) !important;
  color: #ff6b6b !important;
}

.card-body {
  padding: 1.5rem;
}

.card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

.card-date {
  font-size: 0.8rem;
  color: var(--red);
  font-weight: 700;
  font-family: var(--font-display);
}

.card-duration {
  font-size: 0.75rem;
  color: var(--white-dim);
  background: var(--glass);
  border: 1px solid rgba(255, 255, 255, 0.5); /* Più visibile */
  background: rgba(255, 255, 255, 0.1);
  padding: 0.2rem 0.65rem;
  border-radius: 50px;
  font-weight: 600;
}

.card-title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 900;
  margin-bottom: 0.6rem;
  color: var(--white);
}

.card-desc {
  font-size: 0.88rem;
  color: var(--white-dim);
  line-height: 1.6;
  margin-bottom: 0.9rem;
}

.hotel-highlight {
  background: #f8fbfb;
  border: 2px solid rgba(26, 107, 107, 0.2);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.07);
  padding: 1.8rem 2rem;
  border-radius: var(--radius-lg);
  margin: 2.5rem 0;
  position: relative;
}

.hotel-highlight h4 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--teal);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border-bottom: 2px solid rgba(26, 107, 107, 0.15);
  padding-bottom: 0.75rem;
}

.hotel-highlight ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.hotel-highlight ul li {
  color: #1a1a1a;
  font-size: 1rem;
  margin-bottom: 0.7rem;
  padding-left: 2rem;
  position: relative;
  line-height: 1.7;
}

.hotel-highlight ul li::before {
  content: "🏩";
  position: absolute;
  left: 0;
  top: 0.05rem;
  font-size: 1rem;
}

.hotel-highlight p {
  color: #1a1a1a;
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 0.5rem;
}

.card-places {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1.25rem;
}

.card-places span {
  font-size: 0.75rem;
  padding: 0.25rem 0.75rem;
  background: var(--cream-faint);
  border: 1px solid rgba(245, 230, 200, 0.12);
  border-radius: 50px;
  color: var(--cream-dim);
  font-weight: 600;
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--glass-border);
  padding-top: 1rem;
}

.card-price {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 900;
  color: var(--red);
}

.card-footer .btn-sm {
  background: linear-gradient(135deg, var(--red), var(--red-light));
  color: #fff;
  box-shadow: var(--shadow-red);
}

/* =========================================================
   FEATURES
   ========================================================= */
.features {
  background: var(--bg-section);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.feature-card {
  padding: 2rem;
  background: var(--cream-faint);
  border: 2px solid rgba(232, 35, 34, 0.1);
  border-radius: var(--radius-lg);
  transition: var(--transition);
  text-align: center;
}

.feature-card:hover {
  border-color: rgba(232, 35, 34, 0.35);
  background: rgba(232, 35, 34, 0.05);
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(232, 35, 34, 0.1);
}

.feature-icon {
  font-size: 2.8rem;
  margin-bottom: 1rem;
  display: block;
  animation: bounce 4s ease-in-out infinite;
}

.feature-card:nth-child(2) .feature-icon {
  animation-delay: 0.5s;
}

.feature-card:nth-child(3) .feature-icon {
  animation-delay: 1s;
}

.feature-card:nth-child(4) .feature-icon {
  animation-delay: 1.5s;
}

.feature-card:nth-child(5) .feature-icon {
  animation-delay: 2s;
}

.feature-card:nth-child(6) .feature-icon {
  animation-delay: 2.5s;
}

.feature-card h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 900;
  margin-bottom: 0.75rem;
}

.feature-card p {
  font-size: 0.88rem;
  color: var(--white-dim);
  line-height: 1.65;
}

/* =========================================================
   LIBRO / VIAGGIO TERAPEUTICO
   ========================================================= */
.libro {
  background: var(--cream);
  color: var(--bg-dark);
  position: relative;
  overflow: hidden;
}

.libro::before {
  content: '';
  position: absolute;
  top: -30%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(232, 35, 34, 0.1), transparent 70%);
  pointer-events: none;
}

.libro-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 5rem;
  align-items: center;
}

.libro-img-wrap {
  position: relative;
}

.libro-img-placeholder {
  background: linear-gradient(135deg, #1a2a2a, #0d1a1a);
  border: 3px dashed rgba(26, 107, 107, 0.4);
  border-radius: var(--radius-lg);
  aspect-ratio: 2/3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  color: var(--teal-light);
  font-size: 0.85rem;
  text-align: center;
}

.libro-img-placeholder span {
  font-size: 3.5rem;
}

.libro-img-placeholder p {
  opacity: 0.7;
  font-weight: 600;
  line-height: 1.4;
}

.libro-img-real {
  width: 100%;
  aspect-ratio: 2/3;
  object-fit: contain;
  mix-blend-mode: multiply;
  /* Rende il bianco trasparente rispetto allo sfondo crema! */
  transform: scale(1.1);
  filter: drop-shadow(0 20px 30px rgba(0, 0, 0, 0.15));
}

.libro-badge {
  position: absolute;
  top: 1rem;
  right: -1.5rem;
  background: var(--coral);
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 900;
  padding: 0.6rem 1.8rem;
  border: 3px solid #fff;
  border-radius: 8px;
  letter-spacing: 0.05em;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transform: rotate(12deg);
  z-index: 10;
}

.libro-desc {
  color: #333;
  font-size: 1.05rem;
  margin-bottom: 1rem;
  line-height: 1.8;
}

.libro-desc strong {
  color: var(--bg-dark);
}

.libro-cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.libro-cta .btn-ghost {
  color: var(--bg-dark);
  border-color: var(--bg-dark);
}

.libro-cta .btn-ghost:hover {
  background: var(--bg-dark);
  color: var(--cream);
}

.libro .section-label {
  color: var(--teal);
  font-weight: 800;
}

.libro .section-title {
  color: var(--bg-dark);
}

.libro em {
  color: var(--teal);
}

/* =========================================================
   CONTATTI
   ========================================================= */
.contatti {
  background: var(--bg-dark);
}

.contatti-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 3rem;
}

.contact-card {
  background: var(--cream-faint);
  border: 2px solid var(--glass-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
}

.contact-card:hover {
  border-color: rgba(232, 35, 34, 0.35);
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(232, 35, 34, 0.1);
}

.contact-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 2rem 1.5rem;
  gap: 0.5rem;
  transition: var(--transition);
}

.contact-icon {
  font-size: 2.2rem;
  margin-bottom: 0.25rem;
}

.contact-link strong {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--white);
}

.contact-link span {
  font-size: 0.8rem;
  color: var(--white-dim);
}

.contact-link:hover strong {
  color: var(--red);
}

/* =========================================================
   SCROLLING MOSAIC GALLERY
   ========================================================= */
.group-photos-mosaic {
  width: 100%;
  overflow: hidden;
  padding: 2rem 0;
  margin-bottom: 3rem;
  background: rgba(0, 0, 0, 0.2);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.5); /* Più visibile */
  background: rgba(255, 255, 255, 0.1);
}

.mosaic-grid {
  display: flex;
  gap: 1rem;
  width: max-content;
  animation: scrollMosaic 30s linear infinite;
}

.mosaic-grid:hover {
  animation-play-state: paused;
}

.mosaic-img {
  height: 200px; /* Altezza fissa per scorrimento uniforme */
  width: auto;
  aspect-ratio: 1; /* Le rende quadrate */
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 2px solid rgba(255, 255, 255, 0.1);
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.mosaic-img:hover {
  transform: scale(1.05);
  border-color: rgba(232, 35, 34, 0.5);
  z-index: 2;
}

@keyframes scrollMosaic {
  0% { transform: translateX(0); }
  100% { transform: translateX(calc(-50% - 0.5rem)); } /* Scorri metà della track (che include i duplicati) */
}

.cta-banner {
  background: linear-gradient(135deg, rgba(232, 35, 34, 0.1), rgba(26, 107, 107, 0.1));
  border: 2px solid rgba(232, 35, 34, 0.2);
  border-radius: var(--radius-lg);
  padding: 3rem 2rem;
  text-align: center;
}

.cta-banner-inner {
  text-align: center;
}

.cta-banner h3 {
  font-family: var(--font-display);
  font-size: 1.9rem;
  font-weight: 900;
  margin-bottom: 0.75rem;
}

.cta-banner p {
  color: var(--white-dim);
  margin-bottom: 1.75rem;
  font-size: 1rem;
}

/* =========================================================
   FOOTER
   ========================================================= */
.footer {
  background: #070707;
  border-top: 2px solid rgba(232, 35, 34, 0.15);
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 4rem 1.5rem 2rem;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
}

.footer-brand .footer-logo {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 900;
  display: block;
  margin-bottom: 0.75rem;
}

.footer-brand .footer-logo em {
  color: var(--red);
  font-style: normal;
}

.footer-brand p {
  font-size: 0.85rem;
  color: var(--white-dim);
  line-height: 1.7;
}

.footer-links h4,
.footer-social h4 {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 1rem;
}

.footer-links ul li {
  margin-bottom: 0.6rem;
}

.footer-links a {
  font-size: 0.88rem;
  color: var(--white-dim);
  transition: color 0.2s;
  font-weight: 600;
}

.footer-links a:hover {
  color: var(--cream);
}

.social-icons {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.social-icons a {
  font-size: 2rem;
  text-decoration: none;
  transition: transform 0.3s ease;
  color: var(--white-dim);
  display: flex;
  align-items: center;
  justify-content: center;
}

.social-icons a svg {
  width: 28px;
  height: 28px;
  transition: transform 0.2s ease, color 0.2s ease;
}

.social-icons a:hover {
  transform: translateY(-3px) scale(1.1);
}

.social-icons a:hover svg {
  color: var(--coral);
}

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--glass-border);
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-bottom p {
  font-size: 0.8rem;
  color: var(--white-dim);
  font-weight: 600;
}

.footer-legal {
  display: flex;
  gap: 1.5rem;
}

.footer-legal a {
  font-size: 0.8rem;
  color: var(--white-dim);
  transition: color 0.2s;
  font-weight: 600;
}

.footer-legal a:hover {
  color: var(--red);
}

/* Back navigation link (inside navbar on trip pages) */
.back-nav-link {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 800;
  color: #ffffff !important;
  background: rgba(0, 0, 0, 0.58);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 0.35rem 0.85rem;
  border-radius: 30px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  white-space: nowrap;
  margin-right: 0.75rem;
  transition: all 0.25s ease;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9);
}
.back-nav-link:hover {
  color: #ffffff !important;
  background: var(--red);
  border-color: var(--red);
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(232, 35, 34, 0.5);
}


/* Trip hero (pagine viaggio) */
.trip-hero {
  position: relative;
  height: 70vh;
  min-height: 500px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.trip-hero-bg {
  position: absolute;
  inset: 0;
}

.trip-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.trip-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(14, 14, 14, 0.95) 0%, rgba(14, 14, 14, 0.3) 60%, transparent 100%);
}

.trip-hero-content {
  position: relative;
  z-index: 1;
  padding: 3rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

.trip-tag {
  display: inline-block;
  background: var(--red-dim);
  border: 2px solid rgba(232, 35, 34, 0.4);
  color: #ff6b6b;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 900;
  padding: 0.3rem 1rem;
  border-radius: 50px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.trip-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 900;
  margin-bottom: 0.75rem;
}

.trip-meta {
  display: flex;
  gap: 3.5rem;
  row-gap: 1.5rem;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 2rem;
}

.trip-meta span {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 900;
  color: var(--white);
  display: flex;
  align-items: center;
  gap: 0.8rem;
  background: rgba(14, 14, 14, 0.7);
  padding: 0.8rem 1.5rem;
  border-radius: 50px;
  border: 2px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

/* Trip content */
.trip-content {
  background: var(--bg-dark);
}

.trip-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 4rem;
  align-items: start;
}

.itinerary-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 900;
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid rgba(232, 35, 34, 0.2);
}

.itinerary-Accordion {
  margin-bottom: 2rem;
}

.itinerary-Accordion details {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.5); /* Più visibile */
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  margin-bottom: 1rem;
  overflow: hidden;
  transition: var(--transition);
}

.itinerary-Accordion details[open] {
  border-color: rgba(232, 35, 34, 0.4);
  box-shadow: 0 4px 15px rgba(232, 35, 34, 0.1);
}

.itinerary-Accordion summary {
  padding: 1.25rem 1.5rem;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 800;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.5rem;
  user-select: none;
}

.itinerary-Accordion summary::-webkit-details-marker {
  display: none;
}

.itinerary-Accordion summary::after {
  content: '+';
  font-size: 1.5rem;
  color: var(--red);
  font-weight: 400;
  transition: transform 0.3s;
  margin-left: auto;
  flex-shrink: 0;
}

.itinerary-Accordion details[open] summary::after {
  content: '−';
  transform: rotate(180deg);
}

.itinerary-content {
  padding: 0 1.5rem 1.25rem;
  color: var(--white-dim);
  font-size: 0.95rem;
  line-height: 1.6;
  border-top: 1px solid var(--glass-border);
  margin-top: 0.5rem;
  padding-top: 1rem;
}

.day-num {
  flex-shrink: 0;
  min-width: 48px;
  height: 28px;
  padding: 0 0.75rem;
  background: linear-gradient(135deg, var(--red), var(--red-light));
  border-radius: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 900;
  color: #fff;
  white-space: nowrap;
  margin-right: 0;
}

.day-summary .day-date {
  flex: 0 0 58px;
  white-space: nowrap;
  color: #fff;
}

.day-summary .day-title {
  min-width: 0;
  line-height: 1.35;
}

.day-summary .day-title::before {
  content: '—';
  margin-right: 0.5rem;
  color: var(--white-dim);
}

.garantiti-item-included {
  background: rgba(37, 211, 102, 0.1);
  border: 1px solid rgba(37, 211, 102, 0.3);
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  color: #fff;
  font-weight: 600;
}

.garantiti-item-excluded {
  background: rgba(14, 14, 14, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.5); /* Più visibile */
  background: rgba(255, 255, 255, 0.1);
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  color: var(--white-dim);
}

.day-content h4 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 900;
  margin-bottom: 0.3rem;
}

.day-content p {
  font-size: 0.88rem;
  color: var(--white-dim);
  line-height: 1.6;
}

/* Trip sidebar */
.trip-sidebar {
  position: sticky;
  top: 100px;
}

.trip-info-card {
  background: var(--bg-card);
  border: 2px solid rgba(232, 35, 34, 0.2);
  border-radius: var(--radius-lg);
  padding: 2rem;
  margin-bottom: 1.5rem;
}

.trip-info-card h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 900;
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid rgba(232, 35, 34, 0.2);
  color: var(--red);
}

details.trip-info-card summary {
  pointer-events: none;
  cursor: default;
  list-style: none;
  outline: none;
}

details.trip-info-card summary::-webkit-details-marker {
  display: none;
}

.mobile-contact-block {
  display: none;
}



.info-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--glass-border);
  gap: 1rem;
}

.info-row:last-child {
  border-bottom: none;
}

.info-label {
  font-size: 0.8rem;
  color: var(--white-dim);
  font-weight: 600;
  white-space: nowrap;
}

.info-value {
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 800;
  text-align: right;
}

.info-value.price {
  color: var(--red);
  font-size: 1.2rem;
}

.garantiti-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.garantiti-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--cream-dim);
}

.garantiti-item span:first-child {
  font-size: 1.1rem;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1024px) {
  .viaggi-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-container {
    grid-template-columns: 1fr 1fr;
  }

  .about .section-container {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .about-image {
    order: -1;
    max-width: 480px;
    margin: 0 auto;
  }

  .libro-grid {
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
  }

  .trip-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .trip-sidebar {
    position: static;
    order: -1;
  }

  .trip-sidebar .btn-whatsapp,
  .trip-sidebar .btn-ghost {
    display: none !important;
  }

  .mobile-contact-block {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px dashed rgba(255, 255, 255, 0.15);
  }


  /* Sidebar details accordion styles for mobile */
  details.trip-info-card {
    transition: var(--transition);
  }

  details.trip-info-card summary {
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    user-select: none;
    outline: none;
    pointer-events: auto; /* Enable clicks on mobile */
  }

  details.trip-info-card summary::-webkit-details-marker {
    display: none;
  }

  /* Reset title styling inside summary */
  details.trip-info-card summary h3 {
    margin-bottom: 0;
    border-bottom: none;
    padding-bottom: 0;
    width: 100%;
  }

  details.trip-info-card summary::after {
    content: '+';
    font-size: 1.5rem;
    color: var(--red);
    font-weight: 400;
    transition: transform 0.3s;
    margin-left: 1rem;
    flex-shrink: 0;
  }

  details.trip-info-card[open] summary::after {
    content: '−';
    transform: rotate(180deg);
  }

  details.trip-info-card[open] .trip-info-card-content {
    border-top: 1px solid var(--glass-border);
    margin-top: 1rem;
    padding-top: 1rem;
  }


  /* Hero characters shrink on tablet */
  .hero-character {
    width: 200px;
  }

  .hero-char-img {
    max-width: 190px;
  }

  .logo-img {
    height: 110px;
  }
}

@media (max-width: 768px) {

  .itinerary-Accordion summary.day-summary {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 0.35rem 0.65rem;
    padding: 1rem;
    align-items: center;
  }

  .day-summary .day-date {
    grid-column: 2;
    grid-row: 1;
  }

  .day-summary .day-title {
    grid-column: 1 / 3;
    grid-row: 2;
    font-size: 1rem;
  }

  .day-summary .day-title::before {
    content: none;
  }

  .itinerary-Accordion summary.day-summary::after {
    grid-column: 3;
    grid-row: 1 / 3;
    margin-left: 0.25rem;
  }

  .hero-overlay {
    background: linear-gradient(to right, rgba(14, 14, 14, 1) 0%, rgba(14, 14, 14, 0.8) 30%, rgba(14, 14, 14, 0.2) 50%, transparent 80%);
  }

  .hero-title, .hero-pre, .hero-sub-text {
    text-shadow: 0 4px 15px rgba(0, 0, 0, 1), 0 2px 5px rgba(0, 0, 0, 0.8);
  }

  .hero-pre {
    color: #ffffff;
    font-size: 0.95rem;
  }

  .hero-highlight {
    background: none;
    -webkit-text-fill-color: initial;
    color: #ff4d4d; /* Solid bright red for mobile legibility */
    animation: none; /* Disable shimmer on mobile for pure clarity */
  }

  .features-bar {
    padding: 2.5rem 1rem;
  }

  .features-container {
    gap: 1.5rem 0.5rem;
    grid-template-columns: 1fr 1fr;
  }

  .feature-item {
    padding: 0;
  }

  .feature-icon {
    font-size: 1.6rem;
    margin-bottom: 0.2rem;
  }

  .feature-title {
    font-size: 0.9rem;
    margin-bottom: 0.2rem;
  }

  .feature-desc {
    font-size: 0.75rem;
    line-height: 1.4;
  }

  /* Show cartoon characters on mobile, position at bottom */
  .hero-character {
    display: flex;
    position: absolute;
    bottom: 20px; /* Lift up slightly so it doesn't break into next section */
    width: 120px; /* Made slightly smaller again for safety */
    z-index: 5;
  }

  .hero-character-left {
    left: -10px;
  }

  .hero-character-right {
    right: -10px;
  }

  .hero-char-name {
    font-size: 0.75rem;
    padding: 0.2rem 0.6rem;
    margin-bottom: 0.5rem;
  }

  .hero-layout {
    justify-content: center;
    padding: 0 1.5rem;
  }

  .hero-content {
    text-align: left;
    padding: 0 0 11rem; /* Much larger padding to safely hold the absolute characters */
  }

  .hero-content .hero-pre {
    justify-content: flex-start;
  }

  .hero-content .hero-sub {
    margin: 0 0 2.5rem;
  }

  .hero-content .hero-cta {
    justify-content: flex-start;
  }

  .logo-img {
    height: 80px;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background: rgba(14, 14, 14, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: center;
    gap: 2rem;
    padding: 2rem;
    transition: right var(--transition);
    z-index: 999;
  }

  .nav-links.open {
    right: 0;
  }

  .nav-link {
    font-size: 1.1rem;
  }

  .hamburger {
    display: flex;
    z-index: 1000;
  }

  .viaggi-grid {
    grid-template-columns: 1fr;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .contatti-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
  }

  .contact-link {
    padding: 1rem 0.2rem;
  }

  .contact-icon {
    font-size: 1.5rem;
  }

  .contact-link strong {
    font-size: 0.75rem;
  }

  .contact-link span {
    font-size: 0.65rem;
  }

  .footer-container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .stats-container {
    gap: 1.5rem;
  }

  .stat-divider {
    display: none;
  }

  .libro-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .libro-img-wrap {
    max-width: 250px;
    margin: 0 auto;
  }

  .about-values {
    grid-template-columns: 1fr;
  }

  .hero-title {
    font-size: clamp(2.2rem, 8vw, 3.5rem);
  }

  .assoc-cards {
    grid-template-columns: 1fr;
  }

  .cta-banner {
    padding: 2rem 1rem;
  }
}

@media (max-width: 480px) {
  .contatti-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .hero-cta {
    flex-direction: column;
  }

  .btn-lg {
    width: 100%;
    justify-content: center;
  }
}

/* =========================================================
   COOKIE POPUP
   ========================================================= */
.cookie-popup {
  position: fixed;
  bottom: -100%;
  left: 0;
  width: 100%;
  background: var(--bg-card);
  border-top: 1px solid var(--glass-border);
  box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.5);
  padding: 1.5rem;
  z-index: 9999;
  transition: bottom 0.5s ease;
}

.cookie-popup.show {
  bottom: 0;
}

.cookie-content {
  max-width: var(--container-width);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  text-align: center;
}

.cookie-content p {
  font-size: 0.9rem;
  color: var(--white-dim);
  margin: 0;
  line-height: 1.5;
}

.cookie-content a {
  color: var(--white);
  text-decoration: underline;
}

.cookie-buttons {
  display: flex;
  gap: 1rem;
}

@media (min-width: 768px) {
  .cookie-content {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}
.hero-social-actions {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.btn-instagram {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  color: white;
  padding: 0.8rem 1.5rem;
  border-radius: 50px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.95rem;
  text-decoration: none;
  transition: transform 0.3s, box-shadow 0.3s;
  box-shadow: 0 4px 15px rgba(220, 39, 67, 0.4);
}

.btn-instagram:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(220, 39, 67, 0.6);
  color: white;
}

@media (max-width: 480px) {
  .btn-instagram {
    padding: 0.65rem 1.2rem;
    font-size: 0.85rem;
  }
}

/* =========================================================
   PAGINE VIAGGIO — OTTIMIZZAZIONE MOBILE
   Le regole sono isolate sotto i 768px per non modificare il desktop.
   ========================================================= */
@media (max-width: 768px) {
  body {
    overflow-x: hidden;
  }

  .navbar .nav-container {
    padding: 0 0.75rem;
    gap: 0.4rem;
  }

  .back-nav-link {
    max-width: 116px;
    margin-right: 0;
    padding: 0.4rem 0.65rem;
    overflow: hidden;
    font-size: 0.68rem;
    text-overflow: ellipsis;
  }

  .navbar .nav-logo {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
  }

  .navbar .logo-img {
    width: auto;
    height: 62px;
  }

  .trip-hero[style] {
    height: auto !important;
    min-height: 690px !important;
  }

  .trip-hero-img {
    object-position: center 40% !important;
  }

  .trip-hero-overlay[style] {
    background: linear-gradient(to top, rgba(14, 14, 14, 0.98) 0%, rgba(14, 14, 14, 0.72) 48%, rgba(14, 14, 14, 0.18) 100%) !important;
  }

  .trip-hero-content {
    padding: 7rem 1rem 1.5rem;
  }

  .trip-title {
    max-width: 100%;
    margin-bottom: 0.75rem;
    font-size: clamp(1.9rem, 9vw, 2.65rem);
    line-height: 1.06;
    overflow-wrap: break-word;
  }

  .trip-meta {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.55rem;
    margin-top: 1.2rem;
  }

  .trip-meta span {
    width: 100%;
    min-width: 0;
    padding: 0.65rem 0.85rem;
    border-width: 1px;
    gap: 0.5rem;
    font-size: 0.88rem;
    line-height: 1.25;
  }

  .hero-social-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.65rem;
    margin-top: 1rem;
  }

  .hero-social-actions .btn-instagram {
    width: 100%;
    min-width: 0;
    padding: 0.7rem 0.8rem;
    justify-content: center;
    text-align: center;
    font-size: 0.8rem;
    line-height: 1.25;
  }

  .trip-content .section-container {
    padding: 2rem 0.75rem 3rem;
  }

  .trip-grid {
    width: 100%;
    min-width: 0;
    gap: 1.25rem;
  }

  .trip-main,
  .trip-sidebar {
    width: 100%;
    min-width: 0;
  }

  .trip-description[style] {
    margin-bottom: 1rem !important;
    font-size: 1rem !important;
    line-height: 1.65 !important;
  }

  .trip-info-card {
    padding: 1.15rem;
    margin-bottom: 0.85rem;
    border-radius: 16px;
  }

  .trip-info-card h3 {
    margin-bottom: 0.75rem;
    padding-bottom: 0.6rem;
    font-size: 1rem;
  }

  .info-row {
    padding: 0.55rem 0;
    gap: 0.75rem;
  }

  .info-label {
    font-size: 0.75rem;
  }

  .info-value {
    min-width: 0;
    overflow-wrap: anywhere;
    font-size: 0.82rem;
  }

  .itinerary-Accordion {
    width: 100%;
    min-width: 0;
    margin-bottom: 1.2rem;
  }

  .itinerary-Accordion details {
    width: 100%;
    min-width: 0;
    margin-bottom: 0.7rem;
    border-radius: 12px;
  }

  .itinerary-Accordion summary {
    min-width: 0;
    padding: 0.9rem 1rem;
    gap: 0.45rem;
    font-size: 0.95rem !important;
    line-height: 1.3;
  }

  .itinerary-content {
    min-width: 0;
    margin-top: 0.25rem;
    padding: 0.85rem;
    overflow-wrap: anywhere;
    font-size: 0.9rem;
    line-height: 1.65;
  }

  .itinerary-content .itinerary-Accordion {
    margin-top: 0.5rem;
  }

  .itinerary-Accordion summary.day-summary {
    grid-template-columns: auto minmax(0, 1fr) auto;
    padding: 0.85rem;
    gap: 0.35rem 0.55rem;
  }

  .day-num {
    min-width: 0;
    height: 26px;
    padding: 0 0.6rem;
    font-size: 0.68rem;
  }

  .day-summary .day-date {
    font-size: 0.85rem;
  }

  .day-summary .day-title {
    font-size: 0.92rem;
    line-height: 1.35;
  }

  .trip-main .itinerary-content > p[style*="letter-spacing"] {
    margin-top: 1.4rem !important;
    font-size: 0.86rem !important;
    line-height: 1.4;
  }

  .trip-main .itinerary-content > div[style*="display:inline-block"] {
    display: block !important;
    width: fit-content;
    max-width: 100%;
    font-size: 0.72rem !important;
    line-height: 1.35;
    white-space: normal;
  }

  .hotel-highlight {
    margin: 1.4rem 0;
    padding: 1.1rem;
    border-radius: 16px;
  }

  .hotel-highlight h4 {
    font-size: 1.05rem;
  }

  .hotel-highlight ul li {
    padding-left: 1.75rem;
    font-size: 0.9rem;
    line-height: 1.55;
  }

  .hotel-highlight ul li[style*="background"] {
    padding: 0.8rem 0.8rem 0.8rem 2.35rem !important;
  }

  .garantiti-item-included,
  .garantiti-item-excluded {
    padding: 0.7rem 0.75rem;
    overflow-wrap: anywhere;
    font-size: 0.86rem;
    line-height: 1.45;
  }

  .mobile-contact-block {
    margin-top: 1.75rem;
    padding-top: 1.5rem;
  }

  .mobile-contact-block .btn {
    min-height: 48px;
    padding: 0.75rem 0.9rem;
    white-space: normal;
    text-align: center;
  }
}

@media (max-width: 380px) {
  .back-nav-link {
    max-width: 100px;
    font-size: 0.63rem;
  }

  .navbar .logo-img {
    height: 54px;
  }

  .trip-hero-content {
    padding-right: 0.8rem;
    padding-left: 0.8rem;
  }

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

  .trip-content .section-container {
    padding-right: 0.55rem;
    padding-left: 0.55rem;
  }

  .itinerary-content {
    padding: 0.7rem;
  }
}
