/* =========================
   STILI GLOBALI
========================= */
body {
  margin: 0;
  font-family: 'Open Sans', sans-serif;
  background-color: #e0f7fa; /* Verde tenue */
  color: #333;
}

a {
  text-decoration: none;
  color: #333;
}



/* Montserrat 600 caricato via Google Fonts (vedi <link> in index.html) */



.faq-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.faq-logo {
  width: 60px;      /* dimensione adattabile */
  height: 60px;
}

.faq-logo:hover {
  transform: scale(1.1);
  transition: transform 0.3s;
}





html {
  scroll-behavior: smooth;
}




/* =========================
   HEADER E LOGO
========================= */
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 20px;
  background: #e0f7fa; /* o il colore della tua navbar */
  position: relative;
flex-wrap: wrap; /*impila su mobile*/

}

header .logo img {
  height: 200px;  /* regola la dimensione in base al design */
  width: auto;
}


.logo {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.8rem;
  color: #4caf50;
}

.logo-hero {
  position: absolute;
  top: -50px;       /* metà sopra la hero */
  left: 20px;
  width: 240px;     /* dimensione regolabile */
  z-index: 1000;    /* garantisce che stia sopra tutto */
}



/* =========================
   SOCIAL ICONS
========================= */
.top-bar {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding: 6px 20px;
  background: #f4fbfa;
}

.social-icons {
  display: flex;
  gap: 10px;
  align-items: center;
}

.social-icons img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  transition: transform 0.3s;
}

.social-icons a:hover img {
  transform: scale(1.2);
}




/* Icone sezione (Musei, Combo, Aeroporti, Consigli) */
.section-icon {
  width: 40px;
  height: 40px;
  vertical-align: middle;
  margin-right: 10px;
  transform: translateY(-3px);
  transition: transform 0.3s ease, filter 0.3s ease;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,0.2));
}

.museums-box:hover .section-icon,
.combo-box:hover .section-icon,
.airport-transfer-box:hover .section-icon,
.tips-box:hover .section-icon {
  transform: translateY(-3px) scale(1.1);
  filter: brightness(1.1);
}

/* Titoli coerenti */
.museums-box h3,
.combo-box h3,
.airport-transfer-box h3,
.tips-box h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Montserrat', sans-serif;
  font-size: 1.4rem;
  color: #333;
  margin-top: 0;
}


/* ══════════════════════════════════════
   TOP 10 VIAGGI — sidebar box
   Da incollare in style.css dopo i blocchi
   .tips-box / .combo-box / .museums-box
   ══════════════════════════════════════ */

.top10-box {
  background: #fff;
  border: 1px solid #e8e8e8;
  padding: 18px 20px 16px;
  margin-bottom: 20px;
}

.top10-box h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1rem;
  font-weight: 700;
  color: #222;
  margin: 0 0 14px;
  padding-bottom: 10px;
  border-bottom: 2px solid #f0f0f0;
}

.top10-list {
  list-style: none;
  counter-reset: top10-counter;
  margin: 0;
  padding: 0;
}

.top10-list li {
  counter-increment: top10-counter;
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 7px 0;
  border-bottom: 1px solid #f5f5f5;
  font-size: 0.875rem;
  color: #444;
  line-height: 1.4;
}

.top10-list li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.top10-list li::before {
  counter-content: counter(top10-counter);
  content: counter(top10-counter);
  min-width: 22px;
  height: 22px;
  background: #2e7d32;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  line-height: 1;
}

.top10-list li a.entity-link {
  color: #1a1a1a;
  text-decoration: none;
  font-weight: 600;
}

.top10-list li a.entity-link:hover {
  color: #2e7d32;
  text-decoration: underline;
}

.top10-list li a.entity-link strong {
  font-weight: 700;
}





/* =========================
   MENU PRINCIPALE (NAV)
========================= 

*/

/* =========================
   MENU STICKY
========================= */







/* --- SEZIONE METE --- */

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.slider-controls {
  display: flex;
  gap: 10px;
}

.btn.slide-btn {
  background: #f8f8f8;
  color: #333;
  border: 1px solid #ddd;
  border-radius: 30px;
  padding: 10px 20px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn.slide-btn:hover {
  background: #0077cc;
  color: #fff;
  transform: translateY(-2px);
}

.destinations-slider {
  position: relative;
  overflow: hidden;
}

.destinations-slide {
  opacity: 0;
  transform: translateX(100%);
  transition: all 0.8s ease-in-out;
  position: absolute;
  width: 100%;
}

.destinations-slide.active {
  opacity: 1;
  transform: translateX(0);
  position: relative;
}

.destinations-slide.exit-left {
  transform: translateX(-100%);
}

.destinations {
  display: flex;
  justify-content: center;
  flex-wrap: nowrap;
  gap: 15px;
  margin-bottom: 20px;
}

.card {
  flex: 1 1 calc(25% - 15px);
  max-width: 250px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  overflow: hidden;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}


.card h3 {
  margin: 10px 0;
  font-size: 1.1em;
  color: #333;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* Pulsante interno coerente col menu */
.btn.travel-btn {
  display: inline-block;
  margin: 10px 0 15px;
  background: #0077cc;
  color: #fff;
  border-radius: 25px;
  padding: 8px 18px;
  font-size: 0.9em;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
}

.btn.travel-btn:hover {
  background: #005fa3;
  transform: translateY(-2px);
}



/* Header sezione “Mete del Weekend” */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.section-header h2 {
  font-size: 1.8rem;
  font-weight: 600;
  color: #333;
}

/* Container dei pulsanti slide */
.slide-buttons {
  display: flex;
  gap: 10px;
}

.bottom-buttons {
  justify-content: center;
  margin: 2rem 0 3rem;
}

/* Stile unificato con il menu principale      #004aad     */
.btn-menu-style {
  background-color: #a8e6cff2;
  color: #000000;
  border: none;
  padding: 10px 20px;
  border-radius: 25px;
  font-weight: 600;
  font-family: 'Montserrat', sans-serif;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
}

.btn-menu-style:hover {
  background-color: #81c784f7;
  color: #fff;
  transform: translateY(-2px);
}

/* Pulsanti “Leggi il viaggio” con stesso stile */
.btn {
  display: inline-block;
  background-color: #a8e6cff2;
  color: #000000;
  border-radius: 25px;
  padding: 8px 18px;
  text-decoration: none;
  font-weight: 600;
  font-family: 'Montserrat', sans-serif;
  transition: all 0.3s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.btn:hover {
  background-color: #0073ff;
  transform: translateY(-2px);
}

/* Slider container */
.destinations-container {
  overflow: hidden;
  position: relative;
}

.destinations-slider {
  display: flex;
  transition: transform 0.6s ease-in-out;
}





.extra-mete-button .btn {
  font-size: 1.1rem;
  background-color: #2b6cb0;
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 30px;
  transition: background 0.3s ease;
  cursor: pointer;
}

.extra-mete-button .btn:hover {
  background-color: #1a4f85;
}









/* =========================
   IMMAGINE MAPPA E BOTTONE
========================= */

.metro-map-wrapper {
  position: relative;
  display: inline-block;
 
}

.metro-map {
  width: 200px;
  height: 200px;
  display: block;
  border-radius: 8px;
  transition: transform 0.3s;
}

.metro-map-wrapper:hover .metro-map {
  transform: scale(1.05); /* leggero zoom al passaggio del mouse */
}

/* Pulsante sovrapposto (desktop) */
.btn-overlay {
  position: absolute;
  bottom: 55px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(168, 230, 207, 0.9); /* stesso colore del menu */
  backdrop-filter: blur(6px);
  color: #333;
  font-weight: 600;
  padding: 10px 45px;
  text-decoration: none;
  font-size: 15px;
  border-radius: 25px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
  opacity: 0;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.metro-map-wrapper:hover .btn-overlay {
  opacity: 1;
  transform: translateX(-50%) translateY(-2px);
}


/* Hover dinamico */
.btn-overlay:hover {
  background: rgba(129, 199, 132, 0.97);
  color: white;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
  transform: translateX(-50%) scale(1.03);
}



/* ✅ Modalità mobile */
@media (max-width: 768px) {
  .header {
    flex-direction: column; /* logo sopra, mappa sotto */
    align-items: center;
  }

  .metro-map {
    height: auto;
    width: 150px; /* puoi regolarla */
  }

  .btn-overlay {
    position: static;
    transform: none;
    opacity: 1;
    margin-top: 8px;
    width: auto;
    background: rgba(168, 230, 207, 0.95);
  }

 .btn-overlay:hover {
    transform: none;
  }
}



@media (max-width: 768px) {
  .btn-overlay {
    position: static;
    transform: none;
    opacity: 1;
    margin-top: 8px;
    width: auto;
    background: rgba(168, 230, 207, 0.95);
  }

  .btn-overlay:hover {
    transform: none;
  }
}











/* =========================
   HERO
========================= */
.hero {
  position: relative;
  background-image: url('images/hero1.webp');
  background-size: cover;
  background-position: center;
  height: 45vh;
  max-height: 700px;
  min-height: 350px;
  overflow: hidden; 
}

.hero-gallery {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.slide {
  position: absolute;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  overflow: hidden;
}

/* Le <img> dentro le slide devono coprire tutta la slide */
.slide img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.slide.active {
  opacity: 1;
}

/* Pulsanti slider */
.slide-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(255,255,255,0.7);
  border: none;
  font-size: 2rem;
  padding: 10px 15px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 30;
  transition: background-color 0.3s;
}

.slide-btn:hover {
  background-color: rgba(255,255,255,1);
}

.slide-btn.prev { left: 15px; }
.slide-btn.next { right: 15px; }

.hero-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 20;
  background-color: rgba(0, 0, 0, 0.35);
  padding: 20px 30px;
  border-radius: 10px;
  text-align: center;
  max-width: 500px;
  width: 90%;
  color: #fff;
}

.hero-text p,
.hero-text .hero-desc-full,
.hero-text .hero-desc-mobile {
  color: #fff;
}

.hero-title {
  color: #fff;
}

/* ── Brand nel carousel: favicon + nome ── */
.hero-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 0.6rem;
}

.hero-favicon {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  display: block;
}

.hero-brand-name {
  font-size: 1.2rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-shadow: 0 1px 4px rgba(0,0,0,0.4);
}





/* =========================
   BOTTONI
========================= */
.btn {
  padding: 10px 25px;
  background-color: #a8e6cf;
  color: #333;
  font-weight: bold;
  border-radius: 25px;
  transition: background-color 0.3s;
}

.btn:hover {
  background-color: #81c784;
  color: white;
}

/* =========================
   LAYOUT PRINCIPALE
========================= */
.main-container {
  display: flex;
  flex-wrap: wrap;
  padding: 40px;
  gap: 30px;
}

.content {
  flex: 3;
  min-width: 300px;
}

.sidebar {
  flex: 1;
  min-width: 250px;
}

/* =========================
   BOX VARI
========================= */
.museums-box, .combo-box, .airport-transfer-box, .tips-box {
  background-color: #ffffff;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.museums-box { border-left: 6px solid #a8e6cf; }
.combo-box { border-left: 6px solid #ffb74d; }
.airport-transfer-box { border-left: 6px solid #4caf50; }
.tips-box { border-left: 6px solid #81c784; }
.top10-box { border-left: 6px solid #ffd54f; border-radius: 12px; }

/* ── Consiglio della Settimana ── */
.weekly-tip-box {
  background-color: #ffffff;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  border-left: 6px solid #e57373;
}

.weekly-tip-box h3 {
  font-family: 'Montserrat', sans-serif;
  margin-top: 0;
  color: #333;
  font-size: 1.3rem;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.weekly-tip-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.weekly-tip-img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: 8px;
  display: block;
}

.weekly-tip-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.weekly-tip-dest {
  font-size: 0.85rem;
  font-weight: 700;
  color: #e57373;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.weekly-tip-text {
  font-size: 0.92rem;
  color: #555;
  line-height: 1.5;
  margin: 0;
}

.weekly-tip-btn {
  align-self: flex-start;
  font-size: 0.88rem;
  padding: 8px 18px;
  background-color: #e57373;
  color: #fff;
  border-radius: 20px;
  font-weight: 700;
  transition: background-color 0.3s;
}

.weekly-tip-btn:hover {
  background-color: #c62828;
  color: #fff;
}

.museums-box h3, .combo-box h3, .airport-transfer-box h3, .tips-box h3 {
  font-family: 'Montserrat', sans-serif;
  margin-top: 0;
  color: #333;
  font-size: 1.3rem;
  margin-bottom: 15px;
}

.museums-box ul, .combo-box ul, .airport-transfer-box ul, .tips-box ul {
  list-style: none;
  padding: 0;
  margin: 0 0 15px 0;
}

.museums-box li, .combo-box li, .airport-transfer-box li, .tips-box li {
  display: flex;
  align-items: center;
  margin-bottom: 12px;
}

.museums-box li img, .combo-box li img, .airport-transfer-box li img, .tips-box li img {
  width: 28px;
  height: 28px;
  margin-right: 10px;
  object-fit: contain;
  opacity: 0.85;
}

.museums-box p, .combo-box p, .airport-transfer-box p, .tips-box p {
  font-size: 0.95rem;
  color: #555;
}

/* =========================
   DESTINAZIONI
========================= */
.destinations, .extra-destinations {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}

.card {
  display: flex;
  flex-direction: column;
  justify-content: space-between; /* Spinge il bottone in basso senza sovrapposizioni */
  align-items: center; /* Centra tutto il contenuto orizzontalmente */
  border: 1px solid #ccc;
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  background-color: #fff;
  height: 100%; /* Assicura che tutte le card abbiano la stessa altezza */
  box-sizing: border-box;
}

.card img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  margin-bottom: 15px;
}

.card .btn {
  margin-top: 20px;
  padding: 10px 20px;
  text-decoration: none;
  color: #fff;
  background-color: #0077cc;
  border-radius: 8px;
  display: inline-block;
}


.card:hover {
  transform: translateY(-4px);
}


.card h3 {
  padding: 15px;
  margin: 0;
  font-family: 'Dancing Script', cursive;
  font-weight: bold;
  font-size: 1.3rem;
  color: #333;
}



/* --- SIDEBAR GENERALE --- */
.sidebar {
  position: relative;        /* segue lo scroll della pagina */
  width: 300px;
  margin: 20px auto;
  overflow: hidden;
}

/* --- CONTENITORE SCORREVOLE --- */
.scroll-container {
  position: relative;
  height: 13000px;             /* regola in base allo spazio disponibile */
  overflow: hidden;
}

/* --- CONTENUTO IN MOVIMENTO --- */
.scroll-content {
  display: flex;
  flex-direction: column;
  animation: scrollLoop 60s linear 3s infinite;
}

/* --- ANIMAZIONE VERTICALE CONTINUA --- */
@keyframes scrollLoop {
  0% { transform: translateY(0); }
  100% { transform: translateY(-50%); } /* loop continuo */
}

/* --- BOX STILE --- */
.sidebar .combo-box,
.sidebar .museums-box,
.sidebar .airport-transfer-box,
.sidebar .tips-box {
  background: #ffffff;
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 20px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease;
}

.sidebar .combo-box:hover,
.sidebar .museums-box:hover,
.sidebar .airport-transfer-box:hover,
.sidebar .tips-box:hover {
  transform: translateY(-4px);
}

/* --- TITOLI E ICONE --- */
.sidebar h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.1em;
  color: #1e3a8a; /* stesso blu del menu */
  margin-bottom: 10px;
}

.section-icon {
  width: 28px;
  height: 28px;
}

/* --- LISTE --- */
.sidebar ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar li {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.95em;
  margin: 5px 0;
}

.sidebar p {
  font-size: 0.9em;
  margin-top: 8px;
  color: #555;
}









/* =========================
   MAPPA
========================= */
#map {
  width: 100%;
  height: 400px;
}

/* =========================
   RESPONSIVE
========================= */
@media screen and (max-width: 768px) {
  header {
    flex-direction: column;
    align-items: flex-start;
  }

  .logo-hero {
    width: 180px;
    top: -40px;
    left: 15px;
  }

 
  .hero-text {
    max-width: 90%;
    padding: 15px 20px;
  }
}

.experiences {
  padding: 60px 20px;
  background-color: #f9f9f9;
  text-align: center;
}

.experiences h2 {
  font-size: 2em;
  margin-bottom: 40px;
  color: #333;
}

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

.card {
  background: #fff;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  max-width: 300px;
  transition: transform 0.3s, box-shadow 0.3s;
}

.card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.card-content {
  padding: 20px;
}

.card-content h3 {
  font-size: 1.3em;
  margin-bottom: 10px;
  color: #222;
}

.card-content p {
  font-size: 1em;
  color: #555;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

/* Responsive */
@media (max-width: 768px) {
  .cards {
    flex-direction: column;
    align-items: center;
  }

  .card {
    width: 90%;
  }
}




.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.section-header h2 {
  font-family: "Montserrat", sans-serif;
  font-size: 1.8rem;
  color: #222;
}

.btn.next-slide {
  background: #0077cc;
  color: #fff;
  padding: 0.6rem 1.2rem;
  border: none;
  border-radius: 8px;
  font-family: "Montserrat", sans-serif;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
}

.btn.next-slide:hover {
  background: #005fa3;
  transform: translateY(-2px);
}

.destinations-slider {
  position: relative;
  overflow: hidden;
  width: 100%;
  min-height: 950px; /* 3 righe */
}

.destinations-slide {
  position: absolute;
  top: 0;
  left: 100%;
  width: 100%;
  opacity: 0;
  transition: all 0.8s ease;
}

.destinations-slide.active {
  left: 0;
  opacity: 1;
}

.destinations-slide.exit-left {
  left: -100%;
  opacity: 0;
}

.destinations {
  display: flex;
  justify-content: center;
  flex-wrap: nowrap;
  gap: 1rem;
  margin-bottom: 1.2rem;
}

.card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
  width: 380px;
  height: 400px;
  text-align: center;
  transition: transform 0.3s ease;
}

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

.card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.card h3 {
  margin: 0.6rem;
  font-size: 1.3rem;
  color: #333;
}

.card .btn {
  display: inline-block;
  margin-bottom: 0.8rem;
  background: #a8e6cff2;
  color: #000000;
  padding: 0.4rem 0.8rem;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 500;
  transition: background 0.3s ease;
}

.card .btn:hover {
  background: #81c784f7;
	color: #fff;
}










/* Stile card come nella home */
.card-title {
  font-weight: bold;
  font-style: italic;
  font-size: 1.8em;
  margin-bottom: 15px;
  text-align: center;
}

/* Card principale */
.amsterdam-card {
  max-width: 1000px;
  margin: 40px auto;
  padding: 20px;
  border: 1px solid #ccc;
  border-radius: 12px;
  background-color: #fff;
  text-align: center;
}

/* Layout immagini per giorno */
.day-images {
  display: flex;
  gap: 20px;       /* Spazio tra le card */
  flex-wrap: wrap;  /* Si adattano su più righe se necessario */
  justify-content: space-between;
}

.day-card {
  flex: 1 1 30%;   /* Ogni card occupa circa un terzo della riga */
  max-width: 30%;
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.day-card img {
  width: 100%;
  height: 250px;      /* Altezza fissa uniforme */
  object-fit: cover;  /* Mantiene le proporzioni senza deformare */
  transition: transform 0.3s ease;
}

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

.day-card .caption {
  padding: 8px 10px;
  text-align: center;
  font-size: 0.9em;
  font-style: italic;
  font-weight: bold;
  background-color: rgba(0, 0, 0, 0.6);
  color: white;
}


.card-title {
font-family: 'Dancing Script', cursive;  
  color: #333;
  padding: 15px;
font-weight: bold;
  font-style: italic;
  font-size: 2.4em;
  margin-bottom: 15px;
  text-align: center;

}


/* Paragrafi */
.amsterdam-card p {
  text-align: justify;
  line-height: 1.6;
  margin-bottom: 20px;
}

/* Mobile responsive */
@media (max-width: 768px) {
  .day-card {
    width: 100%;
  }
}

  
}


.destinations-slider {
  position: relative;
  overflow: hidden;
  width: 100%;
}

.destinations-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  opacity: 0;
  transform: translateX(100%);
  transition: transform 0.6s ease, opacity 0.4s ease;
}

.destinations-slide.active {
  opacity: 1;
  transform: translateX(0);
  position: relative;
}

.slide-buttons {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 15px 0;
}

.slide-buttons button {
  background: linear-gradient(90deg, #0078d7, #00b7ff);
  color: #fff;
  border: none;
  border-radius: 50px;
  padding: 10px 20px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
}

.slide-buttons button:hover {
  background: linear-gradient(90deg, #00b7ff, #0078d7);
  transform: scale(1.05);
}



@media (max-width: 768px) {
  .scroll-content { animation: none; }
}


/* Layout principale: contenuto + sidebar a destra */
.content-wrapper {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 30px;
  margin: 20px auto;
  max-width: 1600px;
  padding: 0 20px;
}

/* Contenuto principale */
.article {
  flex: 3;
  min-width: 0;
}

/* Sidebar */
.sidebar {
  flex: 1;
  background: #fafafa;
  border-left: 3px solid #d3e7e4;
  padding: 20px;
  border-radius: 10px;
  position: sticky;
  top: 100px;
  max-height: calc(100vh - 120px);
  overflow-y: auto;
}

/* Responsive */
@media (max-width: 768px) {
  .content-wrapper {
    flex-direction: column;
  }
  .sidebar {
    border-left: none;
    border-top: 3px solid #d3e7e4;
    margin-top: 30px;
    position: static;
    max-height: none;
  }
}

/* ----- LAYOUT TRE COLONNE ----- */
.content-wrapper {
  display: grid;
  grid-template-columns: 1.0fr 5.5fr 1.0fr; /* sinistra - centro - destra */
  gap: 30px;
  margin: 30px auto;
  max-width: 1800px;
  padding: 0 40px;
}

/* ----- SINISTRA: Potrebbero Interessarti ----- */
.left-column {
  background: #f7f9f9;
  border-right: 3px solid #d3e7e4;
  padding: 20px;
  border-radius: 10px;
}

.left-column h3 {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.2rem;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 2px solid #cde4e1;
  padding-bottom: 5px;
}

.interest-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  margin-bottom: 20px;
  overflow: hidden;
  transition: transform 0.2s ease;
}

.interest-card:hover {
  transform: scale(1.02);
}

.interest-card img {
  width: 100%;
  height: 150px;
  object-fit: cover;
}

.interest-text {
  padding: 15px;
}

.interest-text h4 {
  margin: 0;
  color: #1c4d4d;
  font-family: 'Montserrat', sans-serif;
}

.interest-text p {
  color: #555;
  font-size: 0.9em;
  margin: 8px 0 10px;
}

.btn-small {
  display: inline-block;
  padding: 6px 12px;
  background: #1c4d4d;
  color: #fff;
  border-radius: 20px;
  text-decoration: none;
  font-size: 0.8em;
}

.btn-small:hover {
  background: #147070;
}

/* ----- CENTRALE ----- */
.article {
  background: #fff;
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 3px 8px rgba(0,0,0,0.08);
  font-family: 'Open Sans', sans-serif;
}

/* ----- DESTRA ----- */
.sidebar {
  background: #fafafa;
  border-left: 3px solid #d3e7e4;
  padding: 20px;
  border-radius: 10px;
  position: sticky;
  top: 100px;
}

/* ----- FOOTER (come prima) ----- */
footer {
  background-color: #222;
  color: #f4f4f4;
  margin-top: 50px;
  padding: 40px 20px 10px;
  font-family: 'Open Sans', sans-serif;
}

/* ----- RESPONSIVE ----- */
@media (max-width: 1100px) {
  .content-wrapper {
    grid-template-columns: 1fr; /* tutte in colonna */
  }

  .left-column,
  .sidebar {
    border: none;
    position: static;
  }

  .left-column {
    order: -1;
  }
}



/* LIGHTBOX OVERLAY */
.lightbox {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.9);
  justify-content: center;
  align-items: center;
}

.lightbox.active {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}



/* CONTENITORE IMMAGINE */
.lightbox img {
  width: 80vw;
  height: 70vh;
  max-width: 1200px;
  max-height: 700px;

  object-fit: contain;
  object-position: center;

  box-shadow: 0 0 30px rgba(0,0,0,0.6);
}

/* CONTATORE */
.lightbox .counter {
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 1px;
}

/* NAVIGAZIONE */
.lightbox .prev,
.lightbox .next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 48px;
  color: #fff;
  cursor: pointer;
  padding: 10px;
  user-select: none;
}

.lightbox .prev { left: 30px; }
.lightbox .next { right: 30px; }

/* CHIUDI */
.lightbox .close {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 36px;
  color: #fff;
  cursor: pointer;
}

.lightbox .caption {
  margin-top: 15px;
  color: #eaeaea;
  font-size: 16px;
  text-align: center;
  max-width: 80%;
  line-height: 1.4;
}

.lightbox-figure {
  text-align: center;
  max-width: 90%;
}

#lightbox-caption {
  margin-top: 12px;
  color: #eee;
  font-size: 16px;
  line-height: 1.4;
  opacity: 0.9;
}


/* ======================================
   POPUP URBAN WEEKEND — DEFINITIVO
   ====================================== */

/* Overlay */
#popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 9000;
}

/* Container popup - più compatto */
#popup-container {
  position: fixed;
  top: 5%;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  max-width: 720px; /* popup più stretto */
  height: 90%;
  background: #fff;
  z-index: 9100;
  overflow: hidden;
  border-radius: 16px;
}

/* Contenuto scrollabile */
#popup-content {
  height: 100%;
  overflow-y: auto;
  padding: 24px 20px; /* padding interno ridotto */
}

/* 🔴 CHIUSURA FIXED */
.popup-close {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 9999;

  width: 40px;
  height: 40px;

  background: rgba(255,255,255,0.95);
  border: none;
  border-radius: 50%;

  display: flex;
  align-items: center;
  justify-content: center;

  cursor: pointer;
  box-shadow: 0 6px 18px rgba(0,0,0,0.2);
}

.popup-close svg {
  width: 18px;
  height: 18px;
  fill: #111;
  transition: fill 0.2s ease, transform 0.2s ease;
}

.popup-close:hover {
  background: #000;
}

.popup-close:hover svg {
  fill: #fff;
  transform: rotate(90deg);
}

.popup-close:focus-visible {
  outline: 3px solid #000;
  outline-offset: 3px;
}

/* Mini header con logo */
.popup-header {
  display: flex;
  justify-content: center;
  padding: 1.2rem 0 0.5rem;
  border-bottom: 1px solid #eee;
background-color: #d1eff2 !important;
}

.popup-logo {
  height: 64px; /* logo leggermente più piccolo */
  opacity: 0.95;
}

/* Layout interno - sidebar più stretta */
.popup-layout {
  display: grid;
  grid-template-columns: 1fr 200px; /* sidebar più stretta */
  gap: 2rem;
  padding: 2rem 2.5rem 2.5rem;
}

/* Contenuto editoriale */
.popup-content {
  max-width: 100%;
}

.popup-content h1 {
  font-family: "Montserrat", system-ui, sans-serif;
  font-size: 2rem;
  margin-bottom: 1.2rem;
}

.popup-content h2 {
  margin-top: 2rem;
  margin-bottom: 0.7rem;
  font-size: 1.3rem;
}

.popup-content p,
.popup-content li {
  font-family: "Open Sans", system-ui, sans-serif;
  font-size: 0.95rem;
  line-height: 1.6;
}

.popup-content ul {
  padding-left: 1rem;
}

.popup-content img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  margin: 1.5rem 0;
}

/* Sidebar */
.popup-sidebar {
  border-left: 1px solid #eee;
  padding-left: 1.5rem;
}

.popup-sidebar h3 {
  font-size: 1rem;
  margin-bottom: 0.8rem;
}

.popup-sidebar ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.popup-sidebar li {
  margin-bottom: 0.5rem;
}

.popup-sidebar a {
  text-decoration: none;
  font-weight: 600;
  color: #000;
}

.popup-sidebar a:hover {
  text-decoration: underline;
}

/* Link nel contenuto */
#popup-container a {
  color: #000;
  text-decoration: underline;
  text-underline-offset: 2px;
}


/* =========================
   MOBILE
   ========================= */

@media (max-width: 900px) {
  #popup-container {
    top: 0;
    bottom: 0;
    left: 0;
    transform: none;
    width: 100%;
    max-width: 100%;
    border-radius: 0;
  }

  .popup-layout {
    grid-template-columns: 1fr;
    padding: 2rem 1.5rem;
  }

  .popup-sidebar {
    border-left: none;
    border-top: 1px solid #eee;
    padding-left: 0;
    padding-top: 2rem;
  }
}


/* Brand popup */
.popup-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: inherit;
}

.popup-claim {
  margin-top: 0.3rem;
  font-family: "Open Sans", system-ui, sans-serif;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #777;
}

.popup-brand:hover .popup-logo {
  opacity: 1;
}

.popup-brand:hover .popup-claim {
  color: #000;
}

/* Breadcrumb popup */
.popup-breadcrumb {
  margin-top: 0.6rem;
  font-family: "Open Sans", system-ui, sans-serif;
  font-size: 0.75rem;
  color: #999;
}

.popup-breadcrumb a {
  color: #777;
  text-decoration: none;
}

.popup-breadcrumb a:hover {
  text-decoration: underline;
  color: #000;
}

.breadcrumb-sep {
  margin: 0 0.3rem;
  color: #ccc;
}

.breadcrumb-current {
  color: #555;
  font-weight: 600;
}


#popup-container {
  outline: none;
}


.entity-link strong {
  color: #0fbd77;
  
}

.entity-link2 strong {
  color: #0a0a0a;
  
}



.hub-nazioni {
  margin: 4rem 0;
}

.hub-nazione {
  margin-bottom: 3rem;
}

.hub-nazione h2 {
  margin-bottom: 0.5rem;
}

.hub-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  list-style: none;
  padding: 0;
}

.hub-links a {
  text-decoration: underline;
}

.hub-cities {
  padding: 0 2rem;
}




/* ===== GRID CARD HUB NAZIONE ===== */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.5rem;
  margin-top: 1.5rem;
}


/* Card rimane VERTICALE (come piace a te) */
.cards-grid .card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
  transition: transform .2s ease, box-shadow .2s ease;
}

.cards-grid .card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0,0,0,0.12);
}

/* Immagine */
.cards-grid .card img {
  width: 100%;
  aspect-ratio: 3 / 2;   /* 🔥 CHIAVE DEL PROBLEMA */
  object-fit: cover;     /* 🔥 */
  display: block;
}


/* Titolo */
.cards-grid .card h3 {
  font-size: 1.5rem;
  margin: 0.75rem 1rem 0.5rem;
  line-height: 1.3;
}

.cards-grid .card h3 a {
  color: #111;
  text-decoration: none;
}

.cards-grid .card h3 a:hover {
  text-decoration: underline;
}

/* Bottone */
.cards-grid .card .btn {
  margin: auto 1rem 1rem;
  text-align: center;
}


/* Tablet */
@media (max-width: 1200px) {
  .cards-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

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

/* Mobile */
@media (max-width: 600px) {
  .cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 420px) {
  .cards-grid {
    grid-template-columns: 1fr;
  }
}


.country-crosslinks {
  margin: 4rem 0 2rem;
  padding-top: 2rem;
  border-top: 1px solid #eee;
}

.country-crosslinks h2 {
  font-size: 1.4rem;
  margin-bottom: 1rem;
}

.country-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  list-style: none;
  padding: 0;
}

.country-links a {
  font-weight: 600;
  text-decoration: none;
}

.country-links a:hover {
  text-decoration: underline;
}

.nation-hub {
  padding: 3rem 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.nation-hub:nth-of-type(even) {
  background-color: #fafafa;
}

.nation-hub {
  scroll-margin-top: 100px;
}


/* MINI TOC NAZIONI */
.nation-toc {
  max-width: 1200px;
  margin: 1.5rem auto 2.5rem;
  padding: 0 1.5rem;
  font-size: 0.95rem;
}

.toc-label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #333;
}

.toc-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.toc-list a {
  text-decoration: none;
  background: #f5f5f5;
  padding: 0.35rem 0.6rem;
  border-radius: 6px;
  color: #222;
  transition: background 0.2s ease;
}

.toc-list a:hover {
  background: #eaeaea;
}

/* =========================
   MOBILE CLEAN – HUB NAZIONI
   ========================= */
@media (max-width: 768px) {

  /* Sezioni nazioni */
  .nation-hub {
    padding: 2rem 1.25rem;
    border-top: 1px solid rgba(0,0,0,0.08);
  }

  .nation-hub:first-of-type {
    border-top: none;
  }

  /* Titolo nazione */
  .nation-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.3rem;
    margin-bottom: 0.75rem;
  }

  .nation-title img.flag {
    width: 26px;
    height: auto;
    flex-shrink: 0;
  }

  /* Paragrafo intro */
  .nation-hub p {
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 1rem;
    color: #333;
  }

  /* Liste città */
  .city-links {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.4rem;
    margin-bottom: 1rem;
  }

  .city-links li {
    list-style: none;
  }

  .city-links a {
    display: block;
    padding: 0.45rem 0;
    font-size: 0.95rem;
    color: #111;
    text-decoration: none;
  }

  .city-links a:hover {
    text-decoration: underline;
  }

  /* Link finale nazione */
  .hub-link {
    display: inline-block;
    margin-top: 0.5rem;
    font-weight: 600;
    font-size: 0.95rem;
  }

  /* =========================
     MINI TOC “SALTA ALLA NAZIONE”
     ========================= */
  .toc-nazioni {
    padding: 1rem 1.25rem;
    background: #fafafa;
    border-bottom: 1px solid rgba(0,0,0,0.08);
  }

  .toc-nazioni h2 {
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
  }

  .toc-nazioni ul {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem 1rem;
  }

  .toc-nazioni li {
    list-style: none;
  }

  .toc-nazioni a {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
    text-decoration: none;
    color: #111;
  }

  .toc-nazioni img.flag {
    width: 22px;
    height: auto;
  }
}

.nation-toc a.active {
  font-weight: 700;
  text-decoration: underline;
}


/* NASCOSTO SU DESKTOP */
.mobile-mega-menu {
  display: none;
}

/* ATTIVO SOLO SU MOBILE */
@media (max-width: 768px) {

  .mobile-mega-menu {
    display: block;
    background: #fff;
    border-bottom: 1px solid #eee;
    padding: 0.5rem 0;
    overflow-x: auto;
  }

  .mobile-mega-menu ul {
    display: flex;
    gap: 1rem;
    padding: 0 1rem;
    margin: 0;
    list-style: none;
    white-space: nowrap;
  }

  .mobile-mega-menu li a {
    display: block;
    padding: 0.4rem 0.75rem;
    font-weight: 600;
    font-size: 0.95rem;
    color: #111;
    border-radius: 999px;
    background: #f5f5f5;
    text-decoration: none;
  }

  .mobile-mega-menu li a:hover {
    background: #111;
    color: #fff;
  }
}


@media (max-width: 768px) {
  header nav[aria-label="Menu principale"] {
    display: none;
  }
}

.schiphol-section {
  cursor: pointer;
}

.popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.popup-overlay.active {
  display: flex;
}

.popup-content {
  background: #ffffff;
  max-width: 500px;
  width: 90%;
  padding: 30px;
  border-radius: 10px;
  position: relative;
  animation: popupFade 0.3s ease;
}

.popup-content h2 {
  margin-top: 0;
  color: #0d6efd;
}

.popup-close {
  position: absolute;
  top: 12px;
  right: 12px;
  border: none;
  background: none;
  font-size: 1.5rem;
  cursor: pointer;
}

@keyframes popupFade {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}


.museum-table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
  font-size: 0.95rem;
}

.museum-table th,
.museum-table td {
  border: 1px solid #e0e0e0;
  padding: 12px;
  vertical-align: top;
}

/* Intestazione */
.museum-table th {
  background-color: #f2f2f2;
  text-align: left;
  font-weight: 600;
}

/* RIGHE ALTERNATE */
.museum-table tbody tr:nth-child(odd) {
  background-color: #ffffff;
}

.museum-table tbody tr:nth-child(even) {
  background-color: #f7f7f7;
}

/* Hover opzionale (consigliato) */
.museum-table tbody tr:hover {
  background-color: #ececec;
}

/* Contenitore scrollabile */
.table-responsive {
  width: 100%;
  overflow-x: auto;
}

/* Optional: piccolo padding interno */
.table-responsive::-webkit-scrollbar {
  height: 8px;
}

.table-responsive::-webkit-scrollbar-thumb {
  background-color: #c0c0c0;
  border-radius: 4px;
}


/* Scroll mobile */
.table-responsive {
  width: 100%;
  overflow-x: auto;
}

.table-responsive {
  overflow-x: auto;
}

.restaurant-table {
  width: 100%;
  border-collapse: collapse;
}

.restaurant-table th, 
.restaurant-table td {
  padding: 10px;
  text-align: left;
  border: 1px solid #ddd;
}

.restaurant-table tbody tr:nth-child(odd) {
  background-color: #ffffff;
}

.restaurant-table tbody tr:nth-child(even) {
  background-color: #f5f5f5;
}

/* =========================
   DISTRICT LABELS – Urban Weekend
   ========================= */

.district {
  position: relative;
  padding-left: 1.7em;
  font-weight: 600;
  text-decoration: none;
}

.district strong {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* icona base */
.district::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.15em;
  width: 1.1em;
  height: 1.1em;
  background-repeat: no-repeat;
  background-size: contain;
}

/* 📖 Barrio de las Letras */
.district.letras {
  color: #7b2d3a;
}
.district.letras::before {
  background-image: url("data:image/svg+xml;utf8,\
<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%237b2d3a'>\
<path d='M4 3h14a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H4z'/>\
</svg>");
}

/* 🍷 La Latina */
.district.latina {
  color: #b05a3c;
}
.district.latina::before {
  background-image: url("data:image/svg+xml;utf8,\
<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23b05a3c'>\
<path d='M7 2h10v2l-4 6v6a2 2 0 1 1-4 0v-6l-4-6V2z'/>\
</svg>");
}

/* 🎸 Malasaña */
.district.malasana {
  color: #6b4ea0;
}
.district.malasana::before {
  background-image: url("data:image/svg+xml;utf8,\
<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%236b4ea0'>\
<path d='M19 2l-6 2v9.5a3.5 3.5 0 1 0 2 3.15V7l4-1.2V2z'/>\
</svg>");
}

/* 🌍 Lavapiés */
.district.lavapies {
  color: #3c7d63;
}
.district.lavapies::before {
  background-image: url("data:image/svg+xml;utf8,\
<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%233c7d63'>\
<circle cx='12' cy='12' r='10'/>\
</svg>");
}

/* ❤️ Chueca */
.district.chueca {
  color: #d6336c;
}
.district.chueca::before {
  background-image: url("data:image/svg+xml;utf8,\
<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23d6336c'>\
<path d='M12 21s-8-6-8-11a5 5 0 0 1 9-3 5 5 0 0 1 9 3c0 5-8 11-8 11z'/>\
</svg>");
}

/* ✨ Gran Vía */
.district.granvia {
  color: #c9a227;
}
.district.granvia::before {
  background-image: url("data:image/svg+xml;utf8,\
<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23c9a227'>\
<path d='M12 2l3 7 7 3-7 3-3 7-3-7-7-3 7-3z'/>\
</svg>");
}

.open-popup.jordaan {  color: #c07a4d;}
.open-popup.leidseplein {  color: #8b1e3f;}
.open-popup.museumkwartier {  color: #1f4e79;}


.open-popup.jordaan::before {  content: "🏠 ";}
.open-popup.leidseplein::before { content:"🧊 "; }
.open-popup.museumkwartier::before { content:"🎨 "; }


.open-popup.confluence { color:#2F9EAA; }
.open-popup.vieux-lyon { color:#9C4A1A; }
.open-popup.fourviere { color:#6A5ACD; }
.open-popup.croix-rousse { color:#C0392B; }
.open-popup.tete-dor { color:#2E8B57; }
.open-popup.presquile { color:#444; }

.open-popup.vieux-lyon::before { content:"✨ "; }
.open-popup.fourviere::before { content:"⛪ "; }
.open-popup.croix-rousse::before { content:"🎨 "; }
.open-popup.confluence::before { content:"🧊 "; }
.open-popup.tete-dor::before { content:"🌍 "; }
.open-popup.presquile::before { content:"🎸 "; }


.open-popup.centro-historico { color:#C0392B; }
.open-popup.soho { color:#8E44AD; }
.open-popup.el-perchel { color:#D35400; }
.open-popup.la-trinidad { color:#AF7AC5; }
.open-popup.malagueta { color:#3498DB; }
.open-popup.muelle-uno { color:#1ABC9C; }
.open-popup.alcazaba { color:#7D6608; }

.open-popup.soho::before { content:"🎨 "; }
.open-popup.malagueta::before { content:"🏖️ "; }
.open-popup.muelle-uno::before { content:"⚓ "; }
.open-popup.alcazaba::before { content:"🏰 "; }
.open-popup.centro-historico::before { content:"❤️ "; }
.open-popup.la-trinidad::before { content:"✨ "; }
.open-popup.el-perchel::before { content:"🎸 "; }


.open-popup.principe-real::before { content:"🎨 "; }
.open-popup.mouraria::before { content:"⚓ "; }
.open-popup.belem::before { content:"🏰 "; }
.open-popup.bairro-alto::before { content:"✨ "; }
.open-popup.chiado::before { content:"🎸 "; }
.open-popup.alfama::before { content:"❤️ "; }








/* ======================================
   STILI SPECIFICI PER MUSEI BARCELLONA
   ====================================== */

/* Hero Image specifica per l'articolo */
.hero-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    display: block;
}

/* Tabelle Responsive */
.table-responsive {
    overflow-x: auto;
    margin: 2rem 0;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.museum-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    text-align: left;
}

.museum-table th, .museum-table td {
    padding: 15px;
    border-bottom: 1px solid #eee;
}

.museum-table th {
    background-color: #a8e6cf;
    color: #004d40;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
}

/* Card dei Musei */
.museum-card {
    background: #fff;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 2rem;
    border: 1px solid #e0eef0;
    transition: box-shadow 0.3s ease;
}

.museum-card:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}

.museum-card h3 {
    margin-top: 0;
    color: #1c4d4d;
    font-family: 'Montserrat', sans-serif;
    border-bottom: 2px solid #a8e6cf;
    display: inline-block;
    padding-bottom: 5px;
}

/* Info Grid (Icone e Tip) */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 20px;
    background: #f1f8f7;
    padding: 15px;
    border-radius: 8px;
}

.info-item {
    display: flex;
    flex-direction: column;
}

.info-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    font-weight: bold;
    color: #666;
    margin-bottom: 4px;
}

.info-value {
    font-size: 0.9rem;
    color: #333;
}

/* Box dei Consigli Finali */
.tips-box {
    background: #fff9c4; /* Giallo tenue per enfasi */
    border-left: 6px solid #fbc02d;
    padding: 25px;
    border-radius: 12px;
}

.tips-box h3 {
    color: #827717;
}

/* Adattamento Mobile */
@media (max-width: 600px) {
    .hero-image img {
        height: 250px;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
    }
}


/* Titolo Nazione */
/* Container per il raggruppamento nazioni */
.country-group {
  margin-bottom: 50px;
}

.country-title {
  display: flex;
  align-items: center;
  gap: 15px;
  font-family: 'Montserrat', sans-serif;
  border-bottom: 2px solid #0077cc;
  padding-bottom: 10px;
  margin-bottom: 25px;
  color: #333;
}

.flag-mini {
  width: 30px;
  height: auto;
  border-radius: 4px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Layout Orizzontale delle Card */
.maps-horizontal-scroll {
  display: flex;
  gap: 20px;
  overflow-x: auto; /* Permette lo scroll laterale */
  padding: 10px 5px 25px 5px;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}

/* Nasconde la scrollbar brutta su alcuni browser ma mantiene la funzione */
.maps-horizontal-scroll::-webkit-scrollbar {
  height: 8px;
}
.maps-horizontal-scroll::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 10px;
}
.maps-horizontal-scroll::-webkit-scrollbar-thumb {
  background: #0077cc;
  border-radius: 10px;
}

.map-card-horizontal {
  flex: 0 0 300px; /* Impedisce alle card di restringersi */
  background: white;
  border: 1px solid #eee;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
  transition: all 0.3s ease;
}

.map-card-horizontal:hover {
  border-color: #0077cc;
  transform: translateY(-5px);
}


.search-container {
    margin: 30px 0;
    text-align: center;
}

.search-wrapper {
    position: relative;
    max-width: 600px;
    margin: 0 auto;
}

.search-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.2rem;
}

#citySearch {
    width: 100%;
    padding: 15px 15px 15px 45px;
    border: 2px solid #e0e0e0;
    border-radius: 30px;
    font-size: 1rem;
    font-family: 'Open Sans', sans-serif;
    transition: all 0.3s ease;
    outline: none;
}

#citySearch:focus {
    border-color: #0077cc;
    box-shadow: 0 4px 12px rgba(0, 119, 204, 0.15);
}

/* Animazione per la scomparsa delle card */
.map-card-horizontal.hidden {
    display: none;
}

.country-group.hidden {
    display: none;
}

.map-card-horizontal.hidden, 
.country-group.hidden {
    display: none !important;
}



.btn-pdf {
    display: block;
    background-color: #e63946;
    color: white;
    text-align: center;
    padding: 10px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
}


.card {
  filter: none !important;
  opacity: 1 !important;
  transition: all 0.3s ease;
}

/* Stile per il messaggio "nessun risultato" */
#noResults {
    text-align: center;
    padding: 20px;
    font-family: 'Montserrat', sans-serif;
    color: #666;
    grid-column: 1 / -1; /* Se usi un layout grid */
    width: 100%;
}


/* Quando la ricerca è attiva, forziamo il contenitore a mostrare tutto bene */
.destinations-slide.active {
    width: 100%;
}

.destinations {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

/* Stile per evidenziare la barra di ricerca durante l'uso */
#citySearch:focus {
    border-color: #e63946 !important;
    box-shadow: 0 0 10px rgba(230, 57, 70, 0.2);
}


/* Animazione di evidenziazione */
@keyframes pulse-search {
  0% { transform: scale(1); box-shadow: 0 4px 12px rgba(0,0,0,0.05); }
  50% { transform: scale(1.03); box-shadow: 0 8px 25px rgba(230, 57, 70, 0.3); }
  100% { transform: scale(1.02); box-shadow: 0 6px 20px rgba(230, 57, 70, 0.2); }
}

/* Classe applicata alle card trovate */



.card.found {
  filter: none !important;
  opacity: 1 !important;
  transform: scale(1.05) !important;
  border: 3px solid #e63946 !important;
  box-shadow: 0 10px 30px rgba(230, 57, 70, 0.4) !important;
  z-index: 10;
}





/* Effetto di desaturazione per le card non cercate (opzionale, molto elegante) */
.card:not(.found) {
  filter: grayscale(0.5);
  opacity: 0.7;
}

/* Ripristino totale quando la ricerca è vuota */
.search-inactive .card {
  filter: none !important;
  opacity: 1 !important;
  border: none !important;
  animation: none !important;
  transform: scale(1) !important;
}


.search-inline-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.clear-btn {
    position: absolute;
    right: 40px; /* Posizionata prima dell'icona lente */
    cursor: pointer;
    font-size: 22px;
    color: #999;
    display: none; /* Nascosta di default */
    line-height: 1;
    transition: color 0.2s;
    user-select: none;
}

.clear-btn:hover {
    color: #e63946; /* Diventa rossa al passaggio del mouse */
}

/* Assicuriamoci che l'input non sovrapponga il testo alla X */
#citySearch {
    padding-right: 65px !important;
}

body.searching .card:not(.found) {
  filter: grayscale(0.8) blur(1px); /* Leggero grigio e sfocatura */
  opacity: 0.4;
  transform: scale(0.95);
}

/* Contenitore flessibile durante la ricerca */
body.searching .destinations {
    display: flex;
    flex-wrap: wrap;
    justify-content: center; /* Centra le card orizzontalmente */
    align-items: center;     /* Centra le card verticalmente */
    min-height: 50vh;        /* Crea spazio per il centramento */
    padding: 20px 0;
}

/* Evitiamo che la pagina "salti" bruscamente */
html {
    scroll-behavior: smooth;
}

.card.found {
    /* Aumentiamo leggermente l'evidenziazione per staccarla dallo sfondo */
    transform: scale(1.1) !important;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}


html {
    scroll-behavior: smooth;
}

/* 1. Assicurati che il contenitore non tagli la card quando si ingrandisce */
.destinations-slider, 
.destinations-slide, 
.destinations {
    overflow: visible !important; /* Permette al bordo e allo zoom di vedersi */
    padding-top: 15px !important; /* Crea lo spazio necessario per il bordo alto */
    padding-bottom: 15px !important;
}


/* 3. Forza il colore vivo durante la ricerca */
body.searching .card.found h3,
body.searching .card.found a.btn {
    color: inherit; 
    opacity: 1;
}


.metro-hub {
  max-width: 900px;
  margin: 60px auto;
  padding: 0 20px;
  text-align: center;
}

.metro-hero h1 {
  font-size: 2.2rem;
  margin-bottom: 10px;
}

.metro-hero p {
  color: #555;
  margin-bottom: 50px;
}

/* Select */
.metro-selector {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 50px;
}

.metro-selector label {
  grid-column: span 2;
  text-align: left;
  font-weight: 600;
}

.metro-selector select {
  padding: 14px;
  border-radius: 10px;
  border: 1px solid #ddd;
  font-size: 1rem;
}

/* Risultato */
.metro-result {
  background: #f8fafc;
  border-radius: 20px;
  padding: 40px;
  box-shadow: 0 6px 25px rgba(0,0,0,0.06);
}

.metro-result h2 {
  margin-bottom: 10px;
}

.metro-result p {
  color: #666;
  margin-bottom: 25px;
}

.metro-result a {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 30px;
  background: #0077cc;
  color: white;
  font-weight: 700;
  text-decoration: none;
  font-size: 1rem;
}

.metro-result a:hover {
  background: #005fa3;
}

.hidden {
  display: none;
}

.flag-emoji {
  font-family: 
    "Apple Color Emoji",
    "Segoe UI Emoji",
    "Noto Color Emoji",
    sans-serif;
}

.metro-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  overflow: hidden;
  padding: 20px;
  max-width: 400px;
  margin-top: 20px;
}

.card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.card-header img {
  width: 36px;
  height: 24px;
  object-fit: cover;
  border-radius: 3px;
}

.card-header h2 {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 700;
}

.card-body p {
  margin: 6px 0;
  font-size: 0.95rem;
  color: #555;
}

.card-body a {
  display: inline-block;
  margin-top: 10px;
  padding: 10px 15px;
  background: #e63946;
  color: #fff;
  border-radius: 6px;
  font-weight: 600;
}


.flag-svg {
  width: 28px;
  height: 18px;
  margin-right: 8px;
  vertical-align: middle;
  border-radius: 3px;
  box-shadow: 0 0 2px rgba(0,0,0,0.2);
}

.metro-card.hidden {
  display: none;
}

/* ===== FLAG ===== */
.flag-svg {
  width: 26px;
  height: 18px;
  margin-right: 8px;
  vertical-align: middle;
  border-radius: 3px;
}

/* ===== CUSTOM SELECT ===== */
.custom-select {
  position: relative;
  width: 280px;
  margin: 10px auto;
  font-family: 'Open Sans', sans-serif;
}

.custom-select.disabled {
  opacity: 0.5;
  pointer-events: none;
}

.select-trigger {
  width: 100%;
  padding: 12px 14px;
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 6px;
  cursor: pointer;
  text-align: left;
  transition: box-shadow 0.2s ease;
}

.select-trigger:hover {
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.select-options {
  position: absolute;
  top: 110%;
  left: 0;
  right: 0;
  background: #fff;
  border-radius: 6px;
  box-shadow: 0 6px 16px rgba(0,0,0,0.15);
  max-height: 260px;
  overflow-y: auto;
  opacity: 0;
  transform: translateY(-5px);
  pointer-events: none;
  transition: all 0.2s ease;
  z-index: 10;
}

.custom-select.open .select-options {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.select-options li {
  padding: 10px 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
}

.select-options li:hover {
  background: #f2f2f2;
}

/* ===== RISULTATO ===== */
.metro-card {
  margin-top: 30px;
  animation: fadeUp 0.4s ease;
}

.hidden {
  display: none;
}

/* ===== ANIMAZIONE ===== */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

.footer-logo img {
  max-height: 100px;
  width: auto;
}

.footer-social img {
  max-height: 24px;
  width: auto;
}

.footer-social a {
  display: inline-flex;
  align-items: center;
  margin-left: 10px;
}

.footer-links a {
  color: #fff;
}

.footer-links a:hover {
  color: #d3e7e4;
}


.chi-siamo {
padding: 2rem 1rem;
}


.chi-siamo-hero {
max-width: 1200px;
margin: 0 auto;
}


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


@media (min-width: 768px) {
.chi-siamo-grid {
grid-template-columns: 1fr 1fr;
}
}


.chi-siamo-foto img {
width: 100%;
height: auto;
border-radius: 12px;
}


/* Cornice verde MOLTO sottile */
.foto-cornice {
border: 2px solid #0a7a3b;
padding: 2px;
}


.chi-siamo-testo h1 {
margin-bottom: 1rem;
}


.chi-siamo-testo p {
margin-bottom: 1rem;
font-size: 1rem;
}


.chi-siamo-claim {
margin-top: 1.5rem;
font-size: 1.1rem;
color: #0a7a3b;
}


.chi-siamo-title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.chi-siamo-icon {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
}


/* Stile per le citazioni dentro le card */
.travel-quote {
  /* Layout e Dimensioni */
  width: 100%;
  height: 100%; /* Occupa tutta l'altezza della card adiacente */
  display: flex;
  flex-direction: column;
  justify-content: center; /* Centra verticalmente */
  align-items: center;     /* Centra orizzontalmente */
  
  /* Tipografia */
  font-family: 'Dancing Script', cursive;
  font-size: 2rem; /* Regola a 1.8rem se il testo è troppo lungo */
  color: #333;
  text-align: center;
  line-height: 1.4;
  
  /* Spaziatura e Sfondo */
  margin: 0;
  padding: 20px;
  background-color: #f8f9fa; /* Grigio chiarissimo per dare "corpo" alla card */
  /* Opzionale: border: 1px solid #ddd; per definire i bordi */
  box-sizing: border-box; 
}

/* Stile per l'autore della citazione */
.travel-quote cite {
  display: block;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.9rem;
  margin-top: 15px;
  font-weight: 600;
  color: #666;
  font-style: normal;
  text-transform: uppercase;
  letter-spacing: 1px;
}


.card-title {
  scroll-margin-top: 90px;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

.search-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap; /* mobile safe */
}

.search-city {
  flex: 1; /* il cerca città prende lo spazio */
  min-width: 220px;
}

.search-actions {
  display: flex;
  gap: 0.5rem;
  white-space: nowrap;
}

/* ========================= 
   MENU PRINCIPALE (STABILE E FLUIDO) 
========================= */

/* --- CONFIGURAZIONE NAV --- */
nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  isolation: isolate; /* 🔑 crea uno stacking context pulito */
  background: rgba(168, 230, 207, 0.95);
  backdrop-filter: blur(6px);
  border-radius: 0 0 12px 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
  padding: 10px 25px;
}


nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin: 0;
  padding: 0;
  justify-content: center;
}

nav ul li {
  position: relative; /* non static */
  height: auto;       /* 🔑 rimuove l’hover fantasma */
}


nav ul li > a {
  font-weight: 600;
  color: #004d40;
  padding: 10px 15px;
  text-decoration: none;
  display: block;
  border-radius: 6px;
  transition: all 0.3s ease;
  position: relative; /* Serve per z-index */
}

nav ul li > a:hover {
  background-color: rgba(255, 255, 255, 0.5);
  color: #0077cc;
}

/* --- MEGA MENU CONTAINER (FIX STABILITÀ) --- */
nav ul li.has-submenu .submenu {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 20px;

  visibility: hidden;
  opacity: 0;

  position: fixed;
  top: calc(100% + 0px); /* resta agganciato alla nav */
  left: 0;
  width: 80vw;

  background-color: #ffffff;
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
  padding: 25px;

  z-index: 9999; /* 🔥 sopra TOC, sidebar, tutto */
  pointer-events: none; /* 🔑 evita hover involontari */

  border-bottom: 5px solid #a8e6cf;
  box-sizing: border-box;

  transition: opacity 0.3s ease, visibility 0s linear 0.3s;
}


/* --- IL PONTE INVISIBILE (TRUCCO FONDAMENTALE) --- */
/* Crea un'area trasparente sopra il menu che "cattura" il mouse se scivola */
nav ul li.has-submenu .submenu::before {
  content: "";
  position: absolute;
  top: -20px;
  left: 0;
  width: 100%;
  height: 20px;
  background: transparent;
  display: block;
}


/* --- MOSTRA IL MENU --- */
nav ul li.has-submenu:hover > .submenu {
  visibility: visible;
  opacity: 1;
  pointer-events: auto; /* 🔑 SOLO quando visibile */
  transition-delay: 0s;
}


/* --- STILE CONTENUTI MENU --- */
nav img.flag {
  width: 18px;
  height: auto;
  vertical-align: middle;
  margin-right: 8px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

nav ul li.has-submenu .submenu li { display: block; }

/* Nazione */
nav ul li.has-submenu .submenu > li > a {
  font-weight: 800;
  font-size: 1.1rem;
  padding: 5px 0;
  border-bottom: 2px solid #a8e6cf;
  margin-bottom: 12px;
  color: #004d40;
  display: flex;
  align-items: center;
}

/* Lista Città */
nav ul li.has-submenu .submenu li.has-submenu .submenu {
  /* Reset per il sottomenu interno */
  display: block;
  position: static;
  visibility: visible; 
  opacity: 1;
  box-shadow: none;
  padding: 0;
  border: none;
  width: auto;
  margin: 0;
  transition: none;
}

nav ul li.has-submenu .submenu li.has-submenu .submenu::before {
  display: none; /* Rimuovi il ponte per i sotto-elementi interni */
}

/* Link Città */
nav ul li.has-submenu .submenu li.has-submenu .submenu li a {
  font-weight: 500;
  font-size: 0.95rem;
  padding: 6px 10px;
  border: none;
  color: #555;
  transition: all 0.2s ease;
  border-radius: 4px;
  margin-bottom: 2px;
  display: block;
}

/* Hover Città (Verde e Grassetto) */
nav ul li.has-submenu .submenu li.has-submenu .submenu li a:hover {
  background-color: #a8e6cf;
  color: #004d40;
  padding-left: 15px;
  font-weight: 700;
}

/* Frecce */
nav ul li.has-submenu > a::after { content: " ▼"; font-size: 0.7em; opacity: 0.6; }
nav ul li.has-submenu .submenu li a::after { content: ""; }

/* --- MOBILE --- */
@media (max-width: 768px) {
  nav ul { flex-direction: column; }
  
  nav ul li.has-submenu .submenu {
    position: static;
    display: none; /* Su mobile usiamo display:none classico */
    visibility: visible;
    opacity: 1;
    grid-template-columns: 1fr;
    box-shadow: none;
    border-left: 4px solid #a8e6cf;
    padding: 10px;
  }
  
  nav ul li.has-submenu:hover > .submenu { display: grid; }
}

.toc-container {
  /* Posizionamento fisso nel flusso del testo */
  position: relative; 
  display: block;
  width: 95%;
  margin: 20px 0 40px 0;
  padding: 25px;
  
  /* Colore di sfondo richiesto */
  background-color: rgba(168, 230, 207, 0.95); 
  
  /* Stile del box */
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  z-index: 1;
}

.toc-title {
  font-weight: bold;
  font-family: 'Montserrat', sans-serif;
  font-size: 1rem;
  margin-bottom: 15px;
  /* Testo in verde scuro */
  color: #004d40; 
  border-bottom: 1px solid rgba(255, 255, 255, 0.4);
  padding-bottom: 10px;
}

.toc-container ul {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.toc-container ul li {
  margin-bottom: 12px;
}

.toc-container ul li a {
  text-decoration: none;
  /* Link in bianco */
  color: #004d40; 
  font-weight: 700;
  transition: all 0.3s ease;
  display: inline-block;
}

.toc-container ul li a:hover {
  text-decoration: underline;
  /* Effetto al passaggio per evidenziare il link */
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.5); 
}

/* Importante: mantiene i titoli visibili sotto l'header dopo il click */
[id^="giorno"] {
  scroll-margin-top: 120px; 
}


/* === LEGGI ANCHE – sezione link interni === */
.uw-leggi-anche {
  margin: 48px 0 32px;
  padding: 32px 0 0;
  border-top: 2px solid #f0ece4;
}

.uw-leggi-anche h3 {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #c8a96e;
  margin: 0 0 20px;
}

.uw-leggi-anche-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
}

.uw-leggi-anche-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  background: #faf9f6;
  border: 1px solid #ede9df;
  border-radius: 8px;
  text-decoration: none;
  transition: border-color 0.2s, background 0.2s, transform 0.15s;
}

.uw-leggi-anche-card:hover {
  border-color: #c8a96e;
  background: #fff;
  transform: translateY(-2px);
}

.uw-leggi-anche-icon {
  font-size: 1.4rem;
  line-height: 1;
  flex-shrink: 0;
  margin-top: 1px;
}

.uw-leggi-anche-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.uw-leggi-anche-label {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  color: #2a2a2a;
  line-height: 1.3;
}

.uw-leggi-anche-sub {
  font-family: 'Open Sans', sans-serif;
  font-size: 0.74rem;
  color: #888;
  line-height: 1.3;
}

/* Hub link – rimanda alla guida principale */
.uw-leggi-anche-hub {
  margin-top: 16px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  color: #c8a96e;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}

.uw-leggi-anche-hub:hover {
  border-color: #c8a96e;
}

.uw-leggi-anche-hub svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

/* Mobile */
@media (max-width: 600px) {
  .uw-leggi-anche-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   CONTATTI — stile del form (floating label)
   Incolla questo blocco in fondo a style.css
   Palette presa dal tuo style.css reale:
   verde menta #a8e6cf · teal #004d40 · blu #0077cc
   ========================================================================== */

.contatti-form {
  --uw-mint: #a8e6cf;
  --uw-mint-hover: #81c784;
  --uw-teal: #004d40;
  --uw-blue: #0077cc;
  --uw-blue-hover: #0073ff;
  --uw-testo: #333333;
  --uw-placeholder: #8a938f;
  --uw-bordo: #e3e3e3;
  --uw-card-bg: #ffffff;

  display: flex;
  flex-direction: column;
  gap: 1.6rem;
  max-width: 560px;
  margin-top: 1.8rem;
  font-family: 'Open Sans', sans-serif;
}

/* --- Campo con floating label --- */
.campo {
  position: relative;
}

.campo input,
.campo textarea {
  width: 100%;
  box-sizing: border-box;
  font-family: 'Open Sans', sans-serif;
  font-size: 1rem;
  color: var(--uw-testo);
  background-color: var(--uw-card-bg);
  border: 1.5px solid var(--uw-bordo);
  border-radius: 12px;
  padding: 1.35rem 1rem 0.55rem 3rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.campo textarea {
  min-height: 130px;
  padding-top: 1.7rem;
  line-height: 1.5;
  resize: vertical;
}

.campo input:hover,
.campo textarea:hover {
  border-color: #cfcfcf;
}

.campo input:focus,
.campo textarea:focus {
  outline: none;
  border-color: var(--uw-mint-hover);
  box-shadow: 0 0 0 4px rgba(168, 230, 207, 0.45);
}

/* Icona a sinistra */
.campo-icona {
  position: absolute;
  top: 1.05rem;
  left: 14px;
  width: 19px;
  height: 19px;
  color: var(--uw-placeholder);
  pointer-events: none;
  transition: color 0.2s ease;
  z-index: 1;
}

.campo-textarea .campo-icona {
  top: 1.3rem;
}

.campo:focus-within .campo-icona {
  color: var(--uw-teal);
}

/* Label fluttuante: parte come placeholder, sale quando il campo è attivo/pieno */
.campo label {
  position: absolute;
  left: 3rem;
  top: 1.05rem;
  font-family: 'Open Sans', sans-serif;
  font-size: 1rem;
  color: var(--uw-placeholder);
  pointer-events: none;
  transition: all 0.18s ease;
  background: transparent;
}

.campo textarea ~ label {
  top: 1.3rem;
}

.campo input:focus ~ label,
.campo input:not(:placeholder-shown) ~ label,
.campo textarea:focus ~ label,
.campo textarea:not(:placeholder-shown) ~ label {
  top: -0.55rem;
  left: 2.6rem;
  font-size: 0.7rem;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--uw-teal);
  background: var(--uw-card-bg);
  padding: 0 6px;
  border-radius: 4px;
}

/* Honeypot: nascosto agli utenti reali, visibile solo ai bot che leggono il DOM */
.form-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Bottone: stesso linguaggio visivo dei tuoi .btn-menu-style / .btn */
.btn-invia {
  align-self: flex-start;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  color: #000000;
  background-color: #a8e6cff2;
  border: none;
  border-radius: 25px;
  padding: 12px 30px;
  cursor: pointer;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
}

.btn-invia:hover {
  background-color: #81c784f7;
  color: #fff;
  transform: translateY(-2px);
}

.btn-invia:active {
  transform: translateY(0);
}

.btn-invia:focus-visible {
  outline: 3px solid var(--uw-teal);
  outline-offset: 2px;
}

.contatti-alt {
  margin-top: 1.8rem;
  font-size: 0.95rem;
  color: #666;
}

.contatti-alt a {
  color: var(--uw-blue);
  font-weight: 600;
  text-decoration: none;
}

.contatti-alt a:hover {
  color: var(--uw-blue-hover);
  text-decoration: underline;
}

/* Mobile */
@media (max-width: 600px) {
  .contatti-form {
    max-width: 100%;
  }
  .btn-invia {
    width: 100%;
    text-align: center;
  }
}
