/* blocca lo scroll della pagina quando è attivo l’overlay */
.wb-scroll-locked{
  position: fixed;            /* iOS safe */
  width: 100%;
  overflow: hidden !important;
  overscroll-behavior: none !important;
  touch-action: none;
  top: var(--wb-lock-top, 0); /* impostato da JS */
}

html.wb-nosmooth { scroll-behavior: auto !important; }


/* l’overlay fa scroll solo dentro */
#widgetDetailContainer{
  position: fixed;
  inset: 0;
  overflow: auto;             /* scroll nell’overlay */
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain; /* evita chain-bounce */
}

/* solo per chiarezza: quando è nascosto */
#widgetDetailContainer.d-none{ display: none !important; }



html[data-bs-theme='dark'] body, html[data-bs-theme='dark'] .widget-detail-wrapper {
      background-color: #0c0c0c !important;
      color: #f8f9fa !important;
    }
    
    
    html[data-bs-theme='dark'] .filter-title {
      color: #000 !important;
    }

    h1, h2, h3, h4, h5, h6, .tag-box .tag-title { font-family: var(--font-headings); }
    body {
    overflow-x: hidden;
      background-color: var(--bs-light);
      color: var(--bs-secondary);
      font-family: var(--font-body);
    }
    
    .widget-detail-header h2 {
    font-weight: 800;
    font-size: 18px;
    }
    
    h4 {
    border-top: 1px solid;
    border-top-color: var(--bs-secondary);
    padding-top:10px;
    font-weight: 800;
    }
    
    .hero-section {
  height: 45vh;
  background-size: cover;
  background-position: center;
  position: relative;
}

.hero-overlay {
  background: linear-gradient(to top, rgba(0,0,0,0.6), rgba(0,0,0,0));
  z-index: 1;
}

.hero-content {
  z-index: 2;
}
    
.offcanvas {
z-index: 8999;
}
 
 
 
    .navbar-dark { 
    background-color: var(--bs-dark-rgb) !important; }
    
    .bg-dark { background-color: var(--bs-dark) !important; }
    
    .bg-light, .btn-light { background-color: var(--bs-light) !important; }
    
    
    .btn-primary {
      background-color: var(--bs-primary) !important;
      border-color: var(--bs-primary) !important;
    }
    
    .bg-primary {
      background-color: var(--bs-primary) !important;
    }
    
    
    .btn-outline-primary, .btn-outline-primary:hover {
      color: var(--bs-primary) !important;
      border-color: var(--bs-primary) !important;
      background-color: transparent !important;
    }
    
.tag-filters-wrapper {
	background-color: #fff;
}

    
/* Contenitore filtro: scrollabile orizzontale */
#tagFilterCategory,
#tagFilterGeo {
  
  height: 18vh; /* adatta a un singolo livello di tag-box */
  min-height: 130px;
  max-height: 200px;
  display: flex;
 
  gap: 6px;
  overflow-x: auto;
  overflow-y: hidden;
  padding-left: 10px; /* compensa padding esterno */
  margin-right: 0px;
}

#tagFilterCategory {
margin-bottom: 10px;
}

#tagFilterGeo {
margin-top: 10px;
}

/* Funziona in Chrome, Safari, Edge */
#tagFilterCategory::-webkit-scrollbar,
#tagFilterGeo::-webkit-scrollbar {
  display: none;
}

/* Funziona in Firefox */
#tagFilterCategory,
#tagFilterGeo {
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE 10+ */
}
    
.tag-box {
  flex: 0 0 auto;
  width: calc(100% / 2.4);
  aspect-ratio: 4 / 3;
  scroll-snap-align: start;
  cursor: pointer;
  border-radius: var(--wb-widget-radius);
  border: 2px solid #fff;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  
  transition: border-color 0.2s, background-color 0.2s;
}

.tag-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 40%;
  background: linear-gradient(to top, rgba(0,0,0,0.6), rgba(0,0,0,0));
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 8px;
}



.tag-box-all {
  display: flex;
  flex-direction: column;
  justify-content: center; /* verticale */
  align-items: center;     /* orizzontale */
  text-align: center;
  flex: 0 0 auto;
  aspect-ratio: 4 / 3;
  scroll-snap-align: start;
  cursor: pointer;
  border-radius: var(--wb-widget-radius);
  border: 2px dotted var(--bs-primary);
  overflow: hidden;
  position: relative;
  transition: border-color 0.2s, background-color 0.2s;
  text-align: center;
  width: 80px !important;
  background-color: #fff !important;
}

.tag-box-all .tag-title {
  font-size: 0.7rem !important;
  color: var(--bs-dark) !important;
}

.tag-box-all .tag-icon {
  font-size: 2rem;
  width: auto;
  height: auto;
  color: var(--bs-dark) !important;
}




.tag-checked-wrapper {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 28px;
  height: 28px;
  background-color: #fff;
  border-radius: var(--wb-widget-radius);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid ;
  z-index: 2;
  transform: scale(0.8);
  color: var(--bs-primary);
  opacity: 0;
  transition: transform 0.2s ease, opacity 0.2s ease;
  padding-top:3px;
}
.tag-box.active .tag-checked-wrapper {
  transform: scale(1);
  opacity: 1;
}



.tag-box-all.active {
  border-color: var(--bs-primary) !important;
  border: 2px solid !important;
  background-color: var(--bs-light) !important;
  
}
.tag-box-all.active .tag-title {
   color: var(--bs-dark);
   
}

.toggle-icon {
  transition: transform 0.3s ease;
  display: inline-block;
  margin-right: 6px;
}

/* quando il collapse è chiuso (btn ha classe .collapsed) */
.widget-tags-toggle button.collapsed .toggle-icon {
  transform: rotate(0deg);
}

/* quando il collapse è aperto */
.widget-tags-toggle button:not(.collapsed) .toggle-icon {
  transform: rotate(180deg);
}



/* Responsive: aumenta gli elementi per riga */
@media (min-width: 576px) {
  .tag-box {
    width: calc(100% / 3.4); /* 3 visibili + pezzetto */
  }
}
@media (min-width: 768px) {
  .tag-box {
    width: calc(100% / 4.4); /* 4 visibili + pezzetto */
  }
}
@media (min-width: 992px) {
  .tag-box {
    width: calc(100% / 5.4); /* 5 visibili + pezzetto */
  }
}

.tag-box.active {
  background-color: var(--bs-light);
  border-color: var(--bs-primary);
  color: var(--bs-primary);
}

.tag-box .tag-icon {
  width: 100%;
  height: 80px;
  object-fit: cover;
  border-radius: 4px;
  margin-bottom: 4px;
}

.tag-title {
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  line-height: 1.1;
  flex-grow: 1;
  color: #fff;
}


.opening-status {
font-size: 0.7em;

}


.opening-hours-week {
  width: 100%;
  font-size: 0.95rem;
  border-radius: 10px;
  padding:15px;
  background-color: #fff;
}
.opening-hours-week td {
  padding: 6px 12px;
  vertical-align: top;
}
.opening-hours-week td:first-child {
  font-weight: 600;
  width: 130px;
}

.table-today {
  --bs-table-bg: var(--bs-light) !important;
  font-weight: bold;
}


    
    .text-primary, a, a:hover, a:focus, a:visited {
      color: var(--bs-primary) !important;
    }
    
    .text-secondary {
      color: var(--bs-secondary) !important;
    }
    
    .text-light {
      color: var(--bs-light) !important;
    }

    
    
    .btn-secondary {
      background-color: var(--bs-secondary) !important;
      border-color: var(--bs-secondary) !important;
    }
    .btn-outline-secondary {
      border-color: var(--bs-secondary);
      color: var(--bs-secondary);
    }
    .btn-outline-secondary:hover {
      background-color: var(--bs-secondary) !important;
      border-color: var(--bs-secondary);
      color: #333;
    }
    .widget-section { margin-bottom: 2rem; }
    .badge-section { font-size: 0.8rem; }
    #themeToggle {
      z-index: 9999;
      border-radius: 50%;
      width: 3rem;
      height: 3rem;
      font-size: 1.3rem;
    }
    .swiper { padding-bottom: 1.5rem; }


.main-content {
  padding-top: 40px;
  transition: padding-top 0.3s ease;
}


.card {
border-radius: var(--wb-widget-radius) !important;
border: 0px !important;
}

.card-img-top {
border-radius: var(--wb-widget-radius) var(--wb-widget-radius) 0 0 !important;
}

/* Slide: quadrata, no altezza automatica */
.widget-section .swiper-slide .card {
  border-radius: var(--wb-widget-radius);
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border: none;
  padding: 0;
  margin: 0;
  --bs-bg-opacity: none !important;
}

/* Immagine: copre tutta la slide */
.widget-section .swiper-slide .card img.card-img-top {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

/* Overlay scuro */
.widget-section .swiper-slide .card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.5) 100%);
  z-index: 2;
}

/* Corpo del testo centrato sopra immagine */
.widget-section .swiper-slide .card .card-body {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: left;
  z-index: 3;
  padding: 0.5rem;
  text-align: left;
}

/* Titolo bianco */
.widget-section .swiper-slide .card .card-title {
  color: white;
  font-size: 0.9rem;
  font-weight: 700;
  margin: 0;
  max-width: 95%;
  display: -webkit-box;
  -webkit-line-clamp: 3;       /* Limita a 3 righe */
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  /*hyphens: auto;      */         /* Abilita sillabazione */
  word-break: break-word;      /* Spezza le parole se necessario */
}


/* Stile del footer */
.widget-section .swiper-slide .card-footer {
  padding: 0.5rem 0.75rem;
  font-size: 0.9rem;
}




/* ====== BOX MODE: stessa grafica delle slide ====== */

/* Card quadrata con immagine di sfondo */
.widget-section .box-grid .card {
  border-radius: var(--wb-widget-radius);
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border: none;
  padding: 0;
  margin: 0;
  background: transparent;            /* come le slide */
}

/* Immagine: copre tutta la card */
.widget-section .box-grid .card img.card-img-top {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

/* Overlay scuro (stesso gradiente delle slide) */
.widget-section .box-grid .card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0) 0%,
    rgba(0, 0, 0, 0.5) 100%
  );
  z-index: 2;
}

/* Corpo del testo centrato in basso sopra l’immagine */
.widget-section .box-grid .card .card-body {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: left;
  z-index: 3;
  padding: 0.5rem;
  text-align: left;
}

/* Titolo bianco con clamp a 2 righe */
.widget-section .box-grid .card .card-title {
  color: #fff;
  font-size: 0.9rem;
  font-weight: 700;
  margin: 0;
  max-width: 95%;
  display: -webkit-box;
  -webkit-line-clamp: 3;       /* 3 righe */
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  /*hyphens: auto;*/
  word-break: break-word;
}

/* (Opzionale) togli le ombre se vuoi un look identico alle slide */
.widget-section .box-grid .card.shadow,
.widget-section .box-grid .card.shadow-sm {
  box-shadow: none !important;
}



/* Nascondi i paragrafi */
.widget-section .swiper-slide.card .card-text {
  /*display: none !important;*/
}



  #widgetDetailContainer .square-img {
  position: relative;
  width: 100%;
  padding-top: 100%; /* quadrato */
  overflow: hidden;
  }

#widgetDetailContainer .square-img img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Desktop: quadrato max 450px, allineato a sinistra */
@media (min-width: 992px) {

  /* niente centratura: le slide restano a sinistra */
  #widgetDetailContainer .swiper .swiper-slide {
    display: block;
  }

  /* Usa aspect-ratio e annulla il vecchio padding-top */
  @supports (aspect-ratio: 1 / 1) {
    #widgetDetailContainer .square-img {
      width: min(100%, 450px);
      aspect-ratio: 1 / 1;
      padding-top: 0 !important;   /* <— annulla il trucco del padding */
      margin: 0;                   /* sinistra */
      position: relative;
      overflow: hidden;
    }
  }

  /* Fallback: solo qui usiamo il padding-top (e sempre max 450px) */
  @supports not (aspect-ratio: 1 / 1) {
    #widgetDetailContainer .square-img {
      width: 100%;
      max-width: 450px;
      padding-top: 100%;           /* <— usato SOLO nel fallback */
      margin: 0;
      position: relative;
      overflow: hidden;
    }
  }

  /* L'immagine riempie il quadrato e viene croppata */
  #widgetDetailContainer .square-img img {
    position: absolute;
    inset: 0;
    width: 100% !important;
    height: 100% !important;       /* <— evita height:auto di .img-fluid */
    object-fit: cover;
    display: block;
  }
}



    
    
.navbar {
  background: #fff;
  z-index: 9000;
  display: flex;
  align-items: center;
}



.brand-logo {
  height: 80%;
  max-height: 70px; /* massimo in versione estesa */
  width: auto;
  transition: max-height 0.3s ease;
}









    .navbar .dropdown-toggle {
      white-space: nowrap;
    }
    
    
    
    
    
.dropdown-item.active {
background-color: var(--bs-primary) !important;
color: var(--bs-light) !important;
} 

.dropdown-item:focus, .dropdown-item:active {
background-color: var(--bs-primary) !important;
color: var(--bs-light) !important;
} 


.btn-outline-secondary.dropdown-toggle:hover {
background-color: var(--bs-primary) !important;
color: var(--bs-light) !important;
}


.btn-outline-secondary.dropdown-toggle.show {
background-color: var(--bs-primary) !important;
color: var(--bs-light) !important;
}
    
    .widget-section {
  	scroll-margin-top: 150px;
}


.fade-out {
  opacity: 0;
  transition: opacity 100ms ease-out;
}
   
.widget-detail-content {
padding-bottom: 20vh !important;
} 
.widget-detail-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1060;
  width: 100vw;
  height: 100vh;
  background-color: var(--bs-light) !important;
  overflow-y: auto;
  padding: 0 !important;
  margin: 0 !important;
  transition: opacity 0.2s ease-in-out;
}

.widget-detail-wrapper.d-none {
  display: none;
}

.widget-detail-header-cont {
  background-color: var(--bs-light) !important;
  position: sticky;
  z-index: 9999;
  top:0;

}

.widget-detail-header {
  display: flex;
  align-items: center;
  gap: .4rem;
  padding: 20px 0px;
}

.widget-detail-header .btn-back {
  font-size: 1.5rem;
  background: none;
  border: none;
  
}

.card-wrapper {
  transition: opacity 0.2s ease;
}

.card-wrapper.hidden {
  opacity: 0;
  pointer-events: none;
}

.card-wrapper .card-img-top {
    object-fit: cover;
	height: 180px;
}


@media only screen and (max-width: 767px) and (orientation: portrait) {
.card-wrapper .card-img-top {
    object-fit: cover;
	height: 120px;
}
}





.swiper-scrollbar {
  height: 8px;
  background: #ccc;
  border-radius: 4px;
  margin-top: 10px;
}

.swiper-scrollbar-drag {
  background: var(--bs-primary);
  border-radius: 4px;
}

/* ---- Cookie Banner ---- */
#cc-banner {
  max-width: 85vw;
  margin:auto;}
  
@media (max-width: 575.98px) {
  #cc-banner {
  max-width: 100vw;
  margin:auto;}
}
.cc.hidden { display:none; }
.cc { position: fixed; left: 0; right: 0; bottom: 0; z-index: 2147483000; padding: 16px; }
.cc .cc-inner {
  margin: 0 auto; max-width: 1000px; border-radius:var(--wb-widget-radius); padding: 16px;
  background: #fff; color: var(--bs-secondary); box-shadow: 0 10px 30px rgba(0,0,0,.12);
  border: 2px solid var(--bs-primary);

}
.cc .cc-title { font-family: var(--font-headings, inherit); font-size: 1.4rem; font-weight: 700; display:flex; align-items:center; gap:.6rem; }
.cc .cc-emoji { font-size: 2rem; }
.cc .cc-text { font-size: 0.8rem; margin: 12px 0 18px; opacity:.9; }
.cc-actions {
  display: flex;
  flex-wrap: wrap;     /* permette il passaggio su più righe */
  gap: .5rem;          /* gap-2 in Bootstrap = 0.5rem */
  width: 100%;
}

.cc-actions .btn {
  flex: 1 1 0;         /* divide equamente lo spazio su desktop */
  min-width: 0;
  box-sizing: border-box;
  white-space: normal;
}

/* 📱 Mobile (fino a 575.98px): Accetta su una riga, gli altri due su una seconda riga divisi al 50% */
@media (max-width: 575.98px) {
  .cc-actions .btn[data-action="acceptAll"] {
    flex: 0 0 100%; /* occupa l’intera riga */
  }
  .cc-actions .btn[data-action="openPrefs"],
  .cc-actions .btn[data-action="acceptEssentials"] {
    flex: 0 0 calc(40% - .25rem); /* due pulsanti affiancati */
  }
}
.cc .btn { border-radius: var(--wb-widget-radius); padding: 10px 18px; font-weight: 600; }
.cc .cc-accept { background: var(--bs-primary); color:#fff; border: 1px solid var(--bs-primary); }
.cc .cc-customize { background: transparent; border:2px solid var(--bs-primary); color: var(--bs-primary); }
.cc .cc-essentials { background:#e9ecef; border:2px solid #e9ecef; color:#333; }
.cc .cc-links { margin-bottom:10px; font-size:.95rem; }
.cc .cc-links a { color: inherit; }

/* ---- Cookie Modal ---- */
.cc-modal.hidden { display:none; }
.cc-modal { position: fixed; inset: 0; z-index: 2147483001; display:flex; align-items:center; justify-content:center; background: rgba(0,0,0,.45); padding: 24px; }
.ccm-card {
  width: min(920px, 100%); background:#fff; color: var(--bs-secondary);
  border-radius: var(--wb-widget-radius); padding: 22px;
  box-shadow: 0 20px 60px rgba(0,0,0,.25);
}
.ccm-head { display:flex; align-items:center; justify-content:space-between; }
.ccm-title { font-size: 2.2rem; font-weight:700; display:flex; align-items:center; gap:.6rem; }
.ccm-close { border:0; background:transparent; font-size:1.2rem; }
.ccm-intro { margin: 12px 0 18px; opacity:.9; }
.ccm-list { display:grid; gap:12px; margin-bottom: 16px; }
.ccm-item { display:flex; gap:12px; align-items:flex-start; border:1px solid #e9ecef; border-radius:14px; padding:12px; background:#fff; }
.ccm-item input[type="checkbox"] { margin-top:6px; transform: scale(1.25); }
.ccm-item strong { display:block; }
.ccm-item small { display:block; opacity:.8; }
.ccm-item.ccm-locked { opacity:.75; }
.ccm-actions { display:flex; gap:12px; }
.ccm-actions .btn { border-radius: var(--wb-widget-radius); padding: 10px 18px; font-weight:600; }

.ccm-actions .cc-accept { background: var(--bs-primary); color:#fff; border:1px solid var(--bs-primary); }
.ccm-actions .cc-save { background: var(--bs-primary); color:#fff; border: 1px solid var(--bs-primary); }
.ccm-foot { margin: 15px 0px; }
.ccm-foot a { color: inherit; text-decoration: underline; }
@media (max-width: 768px){
  .cc .cc-title, .ccm-title { font-size: 1.9rem; }
}

/* Checkbox neri nel popup di personalizzazione (solo lì) */
#cc-modal .ccm-item input[type="checkbox"]{
  accent-color: #000;              /* modern browsers (Chrome, Safari, Firefox recenti) */
  box-shadow: none;                /* evita glow Bootstrap */
}

/* Focus sobrio (senza alone blu) */
#cc-modal .ccm-item input[type="checkbox"]:focus{
  outline: 2px solid #000;
  outline-offset: 2px;
  box-shadow: none;
}

/* Se il tema Bootstrap applica .form-check-input, neutralizzalo SOLO nella modale */
#cc-modal .form-check-input:checked{
  background-color: #000;
  border-color: #000;
  box-shadow: none;
}

/* Fallback per browser senza accent-color */
@supports not (accent-color: #000){
  #cc-modal .ccm-item input[type="checkbox"]{
    -webkit-appearance: none;
    appearance: none;
    width: 18px; height: 18px;
    border: 2px solid #000;
    border-radius: 4px;
    background: #fff;
    display: inline-grid;
    place-content: center;
    margin-top: 6px;
  }
  #cc-modal .ccm-item input[type="checkbox"]:checked{
    background: #000;
    border-color: #000;
  }
  #cc-modal .ccm-item input[type="checkbox"]:checked::after{
    content: "";
    width: 10px; height: 10px;
    background: #fff;
    border-radius: 2px;
  }
}

.flag-24{
width: 20px;
height: 20px;
}




.wb-lang-flags .wb-lang-flag {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.005rem;
  text-decoration: none;
  opacity: 0.55;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.wb-lang-flags .wb-lang-flag img.flag-32,
.wb-lang-flags .wb-lang-flag img.flag-24 {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  object-fit: cover;
}

/* Hover/focus per un minimo di feedback */
.wb-lang-flags .wb-lang-flag:hover,
.wb-lang-flags .wb-lang-flag:focus {
  opacity: 0.95;
  
}

/* Lingua attiva: più visibile + pallino sotto */
.wb-lang-flags .wb-lang-flag.active {
  opacity: 1;
}

.wb-lang-flags .wb-lang-flag.active::after {
  content: '';
  position: absolute;
  bottom: -9px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background-color: #fff;
}


/* Stato base delle bandierine: invisibili e spostate a destra */
.wb-lang-flags .wb-lang-flag {
  opacity: 0;
  transform: translateX(40px);
}

/* Contenitore flottante */
#wb-lang-floating {
  position: fixed;
  right: 75px;
  bottom: 18px;              /* o il valore che stai usando */
  z-index: 9000;          /* > toolbar */
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.25s ease, transform 0.25s ease;
  pointer-events: none;
}

/* Stato visibile del blocco (fade-in/out) */
#wb-lang-floating.is-open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* Bounce in entrata solo quando c'è la classe .is-anim */
#wb-lang-floating.is-anim .wb-lang-flag {
  animation: wbFlagBounceIn 0.45s cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
}

/* Stagger: ritardo crescente per ogni bandiera */
#wb-lang-floating.is-anim .wb-lang-flag:nth-child(1) { animation-delay: 0.00s; }
#wb-lang-floating.is-anim .wb-lang-flag:nth-child(2) { animation-delay: 0.05s; }
#wb-lang-floating.is-anim .wb-lang-flag:nth-child(3) { animation-delay: 0.10s; }
#wb-lang-floating.is-anim .wb-lang-flag:nth-child(4) { animation-delay: 0.15s; }
#wb-lang-floating.is-anim .wb-lang-flag:nth-child(5) { animation-delay: 0.20s; }

@keyframes wbFlagBounceIn {
  0% {
    opacity: 0;
    transform: translateX(40px) scale(0.9);
  }
  60% {
    opacity: 1;
    transform: translateX(-4px) scale(1.02);
  }
  100% {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}



/* Offcanvas CTA footer (fisso in basso, body scrolla sopra) */
.offcanvas .wb-ctas-container{
  background: var(--bs-light);
  position: sticky;
  bottom: 67px;
  padding: 12px 12px calc(env(safe-area-inset-bottom,0) + 10px);
}

/* Griglia di bottoni */
.wb-ctas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(50px, 1fr));
  gap: 5px;
  justify-content: center;
}


/* Bottone outline con icona sopra e label sotto */
.wb-cta-btn{
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  height: 72px;
  border-radius: var(--wb-widget-radius);
  border-width: 0px !important;
}
.wb-cta-btn i{
  font-size: 1.8rem;
  line-height: 1;
}
.wb-cta-cap{
  font-size: .50rem;
  letter-spacing: .04em;
  margin-top: 6px;
  font-weight: 700;
  opacity: .85;
}





/* badge prezzo in basso a destra */
.widget-detail-content .wb-price-badge {
  right: .5rem;
  z-index: 2;
  display: inline-block;
  padding: .35rem .55rem;
  border-radius: .5rem;
  background: var(--bs-dark);
  color: #fff;
  font-weight: 700;
  font-size: .85rem;
  line-height: 1;
  letter-spacing: .2px;
}

/* micro-adjust per schermi molto piccoli */
@media (max-width: 420px) {
  .widget-detail-content .wb-price-badge {
    font-size: .8rem;
    padding: .3rem .5rem;
  }
}

.wb-event-badge {
  margin-bottom:5px;
}

.wb-event-badge i {
  vertical-align: text-bottom;
}

/* altezza piena per il contenuto della modale */
#chatbotModal {
z-index: 9999999999;
}
#chatbotModal .modal-body { height: min(78vh, 700px); }
@media (max-width: 576px){
  #chatbotModal .modal-body { height: calc(100vh - 110px); } /* fullscreen-sm-down */
}
/* l’iframe occupa tutto */
.wb-chatbot-iframe { display:block; width:100%; height:100%; }
/* loader */
.wb-chatbot-loader {
  position:absolute; inset:0; background:rgba(255,255,255,.85); z-index:2;
}
.wb-chatbot-loader.hidden { display:none !important; }
