/* 
Theme Name: Hello Elementor Child
Theme URI: https://github.com/elementor/hello-theme-child/
Description: Hello Elementor Child is a child theme of Hello Elementor, created by Elementor team
Author: Elementor Team
Author URI: https://elementor.com/
Template: hello-elementor
Version: 2.0.0
Text Domain: hello-elementor-child
License: GNU General Public License v3 or later.
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Tags: flexible-header, custom-colors, custom-menu, custom-logo, editor-style, featured-images, rtl-language-support, threaded-comments, translation-ready
*/

/* Add your custom styles here */
:root{
  --urban-blue: #3f4e8c;
  --urban-yellow: #fdc041;
  --urban-green: #35ca4a;
  --urban-red: #fb625d;
}

.map-controls button:focus {
    background-color: white !important;
}
/* === STILI LOADER MAPPA === */
#map-loader {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  backdrop-filter: blur(2px);
}

.map-loader-content {
  text-align: center;
  background: white;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  font-family: 'Albert Sans', sans-serif;
}

.map-loader-spinner {
  width: 40px;
  height: 40px;
  border: 4px solid rgba(63, 78, 140, 0.2);
  border-top: 4px solid var(--urban-blue);
  border-radius: 50%;
  animation: map-loader-spin 1s linear infinite;
  margin: 0 auto 15px;
}

.map-loader-text {
  color: #232850;
  font-size: 14px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-family: 'Albert Sans', sans-serif;
}

@keyframes map-loader-spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* === STILI LOADER PUNTO (CENTRATO) === */
.point-loading-indicator {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(255, 255, 255, 0.98);
  color: #232850;
  padding: 12px 20px;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  font-size: 14px;
  text-transform: uppercase;
  font-weight: 400;
  letter-spacing: 1px;
  font-family: 'Albert Sans', sans-serif;
  z-index: 1001;
  box-shadow: 0 8px 25px rgba(63, 78, 140, 0.15);
  backdrop-filter: blur(5px);
  border: 2px solid rgba(63, 78, 140, 0.1);
  animation: pointLoadFadeIn 0.3s ease-out forwards;
}

.point-loading-spinner {
  width: 20px;
  height: 20px;
  border: 3px solid rgba(63, 78, 140, 0.2);
  border-top: 3px solid var(--urban-blue);
  border-radius: 50%;
  animation: point-loading-spin 1s linear infinite;
}

@keyframes point-loading-spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes pointLoadFadeIn {
  from { 
    opacity: 0; 
    transform: translate(-50%, -50%) scale(0.9);
  }
  to { 
    opacity: 1; 
    transform: translate(-50%, -50%) scale(1);
  }
}

/* === STILI LOADER CLUSTER === */
.cluster-loading-indicator {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-transform: uppercase;
  letter-spacing: 1px;
  background: rgba(255, 255, 255, 0.98);
  color: #232850;
  padding: 12px 20px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 400;
  font-family: 'Albert Sans', sans-serif;
  z-index: 1001;
  box-shadow: 0 8px 25px rgba(63, 78, 140, 0.15);
  border: 1px solid rgba(63, 78, 140, 0.1);
  transform: translateX(-100%);
  animation: pointLoadFadeIn 0.3s ease-out forwards;
}

.cluster-loading-spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(63, 78, 140, 0.3);
  border-top: 2px solid var(--urban-blue);
  border-radius: 50%;
  animation: cluster-loading-spin 1s linear infinite;
}

@keyframes cluster-loading-spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes slideInFromLeft {
  from { transform: translateX(-100%); }
  to { transform: translateX(0); }
}

@keyframes slideOutToLeft {
  from { transform: translateX(0); }
  to { transform: translateX(-100%); }
}

/* === CONTROLLI MAPPA === */
.map-controls {
  position: absolute;
  bottom: 50%;
  right: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 1000;
}

.map-control-button {
  width: 40px;
  height: 40px;
  background: white;
  border: 1px solid #23232326;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 16px;
  color: var(--urban-blue);
  padding: 0;
}

.map-control-button svg {
  width: 24px;
  height: 24px;
  color: var(--urban-blue);
  transition: all 0.2s ease;
}

.map-control-button:hover {
  background: var(--urban-blue);
  color: white;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(63, 78, 140, 0.3);
}

.map-control-button:hover svg {
  color: white;
}

.map-control-button:active {
  transform: translateY(0);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

/* Stili specifici per ogni controllo */
.style-btn {
  transition: transform 0.2s ease;
}

.compass-btn svg {
  transition: transform 0.5s ease;
}

span.elementor-counter-number-suffix {
    padding: 0px 0px 0px 5px;
}
/* Versione mobile */
@media (max-width: 768px) {

  .map-controls {
    bottom: 200px;
    right: 15px;
    gap: 6px;
  }
  
  .map-control-button {
    width: 36px;
    height: 36px;
    font-size: 14px;
  }
}

#general-map-id {
    max-width: 100vw !important;
    width: 100% !important;
    max-height: calc(100vh - 87px) !important;
    height: calc(100vh - 87px) !important;
}

#map-intervento-id{
  width: 100% !important;
  height: 100% !important;
  min-height: 100% !important;
}

.nodisplay {
    display: none;
}

details.maplibregl-ctrl.maplibregl-ctrl-attrib.maplibregl-compact.maplibregl-compact-show{
  display: none;
}


/* ------------------------ */

/* Stile del dropdown in stile mappa */
.map-style-categories {
    font-family: "Helvetica Neue", Arial, sans-serif;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-content: center;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 10px;
}
  
  .category-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
  }
  
  /* Contenitore per il pulsante e il suo dropdown */
  .category-button-container {
    position: relative;
    display: inline-block;
  }
  
  /* Stile pulsanti principali */
  .category-button {
    display: flex;
    align-items: center;
    gap: 10px;
    background-color: white;
    color: #232850;
    border: 1px solid var(--category-color, #333);
    border-radius: 8px;
    /* box-shadow: 0 0 3px var(--category-color, #333); */
    padding: 10px 25px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
  }
  
  .category-button:hover {
   background-color: #eee;
  }
  
  .category-icon {
    display: flex;
    align-items: center;
  }
  
  .category-icon svg {
    fill: var(--category-color, #333);
    width: 20px;
    height: 20px;
  }
  
  /* Stile per icone personalizzate */
  .category-icon img.custom-icon {
    width: 20px;
    height: 20px;
    object-fit: contain;
  }
  
  .dropdown-arrow {
    font-size: 12px;
    margin-left: 5px;
  }
  
  /* Stile del dropdown */
.subcategory-dropdown {
  font-family: 'Albert Sans', sans-serif;
  position: absolute;
  bottom: 100%;
  left: 0;
  width: 300px;
  background: white;
  border-radius: 15px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  padding: 15px;
  margin-top: 12px;
  z-index: 100;
  display: none;
  border: 1px solid rgba(0, 0, 0, 0.08);
  animation: dropdown-appear 0.3s ease-out;
  transform-origin: top center;
}

@keyframes dropdown-appear {
  from {
    opacity: 0;
    transform: translateY(-10px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Freccia del dropdown */
.subcategory-dropdown::before {
  content: "";
  position: absolute;
  bottom: -8px;
  left: 25px;
  width: 16px;
  height: 16px;
  background: white;
  transform: rotate(45deg);
}


.category-button[data-category-name="Mobilità"] .dropdown-arrow path {
    stroke: var(--urban-blue);
}
.category-button[data-category-name="Inclusione"] .dropdown-arrow path {
    stroke: var(--urban-yellow);
}
.category-button[data-category-name="Sostenibilità"] .dropdown-arrow path {
    stroke: var(--urban-green);
}
.category-button[data-category-name="Cultura"] .dropdown-arrow path {
    stroke: var(--urban-red);
}

/* Stile delle opzioni nel dropdown */
.subcategory-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 15px;
  cursor: pointer;
  border-radius: 8px;
  transition: all 0.2s ease;
  margin-bottom: 5px;
}

.subcategory-option:hover {
  background-color: rgba(0, 0, 0, 0.04);
}

.subcategory-option:last-child {
  margin-bottom: 0;
}

/* Stile radio button */
.subcategory-option input[type="radio"] {
  display: none;
}

.radio-circle {
  width: 22px;
  height: 22px;
  border: 2px solid #ddd;
  border-radius: 50%;
  display: inline-block;
  position: relative;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.subcategory-option:hover .radio-circle {
  border-color: #bbbbbb;
}

.subcategory-option input[type="radio"]:checked + .radio-circle {
  border-color: var(--category-color, #3e7bfa);
  box-shadow: 0 0 0 2px rgba(var(--category-color-rgb, 62, 123, 250), 0.1);
}

.subcategory-option input[type="radio"]:checked + .radio-circle::after {
  content: "";
  position: absolute;
  top: 5px;
  left: 5px;
  width: 8px;
  height: 8px;
  background-color: var(--category-color, #3e7bfa);
  border-radius: 50%;
  transform: scale(0);
  animation: radio-select 0.2s forwards;
}

@keyframes radio-select {
  to {
    transform: scale(1);
  }
}

/* Stile testo sottocategoria */
.subcategory-name {
  font-size: 14px;
  color: #333;
  font-weight: 400;
  transition: color 0.2s ease;
  
}

.subcategory-option:hover .subcategory-name {
  color: #000;
}

.subcategory-option input[type="radio"]:checked ~ .subcategory-name {
  color: #000;
  font-weight: 500;
}

/* Intestazione del dropdown (opzionale) */
.dropdown-header {
  font-size: 14px;
  color: #777;
  padding: 0 15px 12px;
  margin-bottom: 8px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

/* Versione compatta */
.category-icon img {
  transition: filter 0.3s ease, transform 0.2s ease;
}

/* Colori delle icone per ogni categoria */
.category-button[data-term-id="26"] .category-icon img { filter: brightness(0) saturate(100%) invert(28%) sepia(17%) saturate(1852%) hue-rotate(203deg) brightness(94%) contrast(88%); }
.category-button[data-term-id="27"] .category-icon img { filter: invert(81%) sepia(75%) saturate(2413%) hue-rotate(326deg) brightness(106%) contrast(98%); }
.category-button[data-term-id="1"] .category-icon img { filter: brightness(0) saturate(100%) invert(52%) sepia(80%) saturate(438%) hue-rotate(53deg) brightness(91%) contrast(86%); }
.category-button[data-term-id="29"] .category-icon img { filter: invert(50%) sepia(11%) saturate(3215%) hue-rotate(314deg) brightness(104%) contrast(97%); }


/* Ripristina trasformazione quando non in hover */
.category-button:not(:hover) .category-icon img {
  transform: scale(0.9);
}
.category-button .category-icon img {
  transform: scale(0.9);
}

/* Rimuovi tutti gli stili di focus */
.category-button:focus {
  outline: none;
}

/* Aggiunta: stile per i radio button nei dropdown che usano i colori delle categorie */
/* Mobilità */
#dropdown-26 .subcategory-option input[type="radio"]:checked + .radio-circle {
  border-color: var(--urban-blue);
}
#dropdown-26 .subcategory-option input[type="radio"]:checked + .radio-circle::after {
  background-color: var(--urban-blue);
}

/* Inclusione */
#dropdown-27 .subcategory-option input[type="radio"]:checked + .radio-circle {
  border-color: var(--urban-yellow);
}
#dropdown-27 .subcategory-option input[type="radio"]:checked + .radio-circle::after {
  background-color: var(--urban-yellow);
}

/* Sostenibilità */
#dropdown-1 .subcategory-option input[type="radio"]:checked + .radio-circle {
  border-color: var(--urban-green);
}
#dropdown-1 .subcategory-option input[type="radio"]:checked + .radio-circle::after {
  background-color: var(--urban-green);
}

/* Cultura */
#dropdown-29 .subcategory-option input[type="radio"]:checked + .radio-circle {
  border-color: var(--urban-red);
}
#dropdown-29 .subcategory-option input[type="radio"]:checked + .radio-circle::after {
  background-color: var(--urban-red);
}


/* Stile checkbox personalizzato */
.subcategory-option input[type="checkbox"] {
  display: none;
}

/* Importante: assicurati che i checkbox disabilitati siano ancora accessibili */
.subcategory-option input[type="checkbox"]:disabled {
  display: none; /* Mantieni nascosto */
}

.checkbox-square {
    width: 22px;
    height: 22px;
    border: 2px solid #ddd;
    border-radius: 4px;
    display: inline-flex;
    position: relative;
    transition: all 0.2s ease;
    flex-shrink: 0;
    cursor: pointer;
    position: relative !important;
    justify-content: center;
    /* align-content: center; */
}
/* Stile per checkbox disabilitato */
.subcategory-option input[type="checkbox"]:disabled + .checkbox-square {
  border-color: #ccc;
  background-color: #f5f5f5;
  cursor: not-allowed;
  opacity: 0.6;
}

.subcategory-option:hover .checkbox-square {
  border-color: #bbbbbb;
}

/* Non applicare hover se il checkbox è disabilitato */
.subcategory-option input[type="checkbox"]:disabled + .checkbox-square:hover {
  border-color: #ccc;
}

.subcategory-option input[type="checkbox"]:checked + .checkbox-square {
  border-color: var(--category-color, #3e7bfa);
  background-color: var(--category-color, #3e7bfa);
  box-shadow: 0 0 0 2px rgba(var(--category-color-rgb, 62, 123, 250), 0.1);
}

.subcategory-option input[type="checkbox"]:checked + .checkbox-square::after {
  content: "✓";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  color: white;
  font-size: 14px;
  font-weight: bold;
  animation: checkbox-select 0.2s forwards;
}

@keyframes checkbox-select {
  to {
    transform: translate(-50%, -50%) scale(1);
  }
}

/* Aggiorna stili per i dropdown con checkbox */
/* Mobilità */
#dropdown-26 .subcategory-option input[type="checkbox"]:checked + .checkbox-square {
  border-color: var(--urban-blue);
  background-color: var(--urban-blue);
}

/* Inclusione */
#dropdown-27 .subcategory-option input[type="checkbox"]:checked + .checkbox-square {
  border-color: var(--urban-yellow);
  background-color: var(--urban-yellow);
}

/* Sostenibilità */
#dropdown-1 .subcategory-option input[type="checkbox"]:checked + .checkbox-square {
  border-color: var(--urban-green);
  background-color: var(--urban-green);
}

/* Cultura */
#dropdown-29 .subcategory-option input[type="checkbox"]:checked + .checkbox-square {
  border-color: var(--urban-red);
  background-color: var(--urban-red);
}

/* === BOTTONE RESET FILTRI === */
.reset-filters-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, var(--urban-blue) 0%, #2d3a6e 100%);
  color: white;
  border: none;
  border-radius: 8px;
  padding: 12px 12px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  font-family: 'Albert Sans', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(63, 78, 140, 0.3);
  position: relative;
  overflow: hidden;
}

.reset-filters-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

.reset-filters-btn:hover::before {
  left: 100%;
}

.reset-filters-btn:hover {
  background: linear-gradient(135deg, #2d3a6e 0%, var(--urban-blue) 100%);
  box-shadow: 0 6px 20px rgba(63, 78, 140, 0.4);
  transform: translateY(-2px);
}

.reset-filters-btn:active {
  transform: translateY(0) scale(0.98);
  box-shadow: 0 2px 8px rgba(63, 78, 140, 0.3);
}

.reset-filters-btn svg {
  width: 20px;
  height: 20px;
  color: white;
  transition: transform 0.3s ease;
  fill: none;
}

.reset-filters-btn:hover svg {
  transform: rotate(-180deg);
}

.reset-text {
  font-weight: 600;
}

/* Versione mobile */
@media (max-width: 768px) {
  .reset-filters-btn {
    padding: 10px 20px;
    font-size: 13px;
  }
  
  .reset-filters-btn svg {
    width: 18px;
    height: 18px;
  }
  
  .reset-text {
    display: none; /* Nascondi testo su mobile, mostra solo icona */
  }
}


/* Stile per il menu di ricerca a comparsa */
.search-results-panel {
  position: absolute;
  left: 10px;
  bottom: 10%;
  width: 320px;
  max-width: 90vw;
  height: 100%;
  max-height: calc(100vh - 170px);
  background: white;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
  overflow-y: auto;
  opacity: 0;
  transform: translateY(-10px);
  pointer-events: none;
  transition: all 0.3s ease;
  z-index: 1000;
}

.search-results-panel.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
}

.search-results-header {
  padding: 15px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  font-weight: bold;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.search-results-header .close-button {
  cursor: pointer;
  padding: 5px;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  display: flex;
  justify-content: center;
  align-items: center;
  background: rgba(0, 0, 0, 0.05);
  transition: all 0.2s ease;
}

.search-results-header .close-button:hover {
  background: rgba(0, 0, 0, 0.1);
}

.search-results-list {
  padding: 0;
  margin: 0;
  list-style: none;
}

.search-result-item {
  padding: 12px 15px;
  cursor: pointer;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  transition: all 0.2s ease;
}

.search-result-item:hover {
  background-color: rgba(0, 0, 0, 0.03);
}

.search-result-item:active {
  background-color: rgba(0, 0, 0, 0.06);
}

.search-result-title {
  font-weight: 500;
  margin-bottom: 5px;
  color: #232850;
}

.search-result-category {
  display: inline-block;
  font-size: 12px;
  padding: 3px 8px;
  border-radius: 12px;
  background-color: rgba(0, 0, 0, 0.05);
  margin-bottom: 5px;
}

.search-result-category.Mobilità { background-color: rgba(63, 78, 140, 0.15); color: var(--urban-blue); }
.search-result-category.Inclusione { background-color: rgba(253, 192, 65, 0.15); color: var(--urban-yellow); }
.search-result-category.Sostenibilità { background-color: rgba(53, 202, 74, 0.15); color: var(--urban-green); }
.search-result-category.Cultura { background-color: rgba(251, 98, 93, 0.15); color: var(--urban-red); }

.search-result-description {
  font-size: 13px;
  color: #666;
  margin-top: 5px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.no-results-message {
  padding: 20px 15px;
  color: #666;
  text-align: center;
  font-style: italic;
}

@media (max-width: 768px) {
    .search-results-panel {
    left: 50%;
    top: 150px;
    width: calc(100% - 40px);
    max-width: 100vw;
    height: unset;
    max-height: calc(100vh - 170px);
    transform: translateX(-50%) translateY(-10px);
    bottom: 150px;
  }

  .search-results-panel.visible {
    transform: translateX(-50%) translateY(0);
  }
}

/* Stile per l'indicatore di digitazione */
.search-typing-indicator {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  display: none;
}

.search-typing-indicator.active {
  display: block;
}

.search-typing-indicator::after {
  content: '';
  width: 20px;
  height: 20px;
  border: 2px solid rgba(0, 0, 0, 0.1);
  border-top-color: #333;
  border-radius: 50%;
  display: block;
  animation: search-typing-spin 0.6s linear infinite;
}

@keyframes search-typing-spin {
  to { transform: rotate(360deg); }
}
  
/* Stile per dispositivi mobili */
@media (max-width: 768px) {

  
#general-map-id {
    max-height: 100dvh !important;
    height: 100dvh !important;
}

  .category-buttons {
    flex-direction: column;
    width: 100%;
  }
  
  .category-button-container {
    width: 100%;
  }
  
  .subcategory-dropdown {
    width: 100%;
    position: relative;
    margin-top: 5px;
    margin-bottom: 10px;
  }
}

/* Stili per la master checkbox "Tutti" */
.master-checkbox {
  border-bottom: 1px solid #eee;
  margin-bottom: 8px;
  padding-bottom: 8px;
}

.master-checkbox .subcategory-name {
  font-weight: bold;
  color: #555;
}

.category-name{
  font-family: 'Albert Sans' !important;
}

.master-checkbox .checkbox-square {
  border-width: 2px;
  border-color: #007bff;
}

.master-checkbox:hover .checkbox-square {
  border-color: #0056b3;
  background-color: rgba(0, 123, 255, 0.1);
}

/* Stato indeterminato per la master checkbox */
.subcategory-option input[type="checkbox"]:indeterminate + .checkbox-square {
  border-color: #ffc107;
  background-color: #ffc107;
}

.subcategory-option input[type="checkbox"]:indeterminate + .checkbox-square::after {
  content: "−";
  color: white;
  font-weight: bold;
	font-size: 14px;
	line-height: 1;
	top: 25%;
	left: 25%;
}

/* Stili master checkbox per ogni categoria */
#dropdown-26 .master-checkbox .checkbox-square {
  border-color: var(--urban-blue);
}
#dropdown-26 .master-checkbox:hover .checkbox-square {
  border-color: var(--urban-blue);
  background-color: rgba(63, 78, 140, 0.1);
}
#dropdown-26 .subcategory-option input[type="checkbox"]:checked + .checkbox-square {
  background-color: var(--urban-blue);
  border-color: var(--urban-blue);
}

#dropdown-27 .master-checkbox .checkbox-square {
  border-color: var(--urban-yellow);
}
#dropdown-27 .master-checkbox:hover .checkbox-square {
  border-color: var(--urban-yellow);
  background-color: rgba(253, 192, 65, 0.1);
}
#dropdown-27 .subcategory-option input[type="checkbox"]:checked + .checkbox-square {
  background-color: var(--urban-yellow);
  border-color: var(--urban-yellow);
}

#dropdown-1 .master-checkbox .checkbox-square {
  border-color: var(--urban-green);
}
#dropdown-1 .master-checkbox:hover .checkbox-square {
  border-color: var(--urban-green);
  background-color: rgba(53, 202, 74, 0.1);
}
#dropdown-1 .subcategory-option input[type="checkbox"]:checked + .checkbox-square {
  background-color: var(--urban-green);
  border-color: var(--urban-green);
}

#dropdown-29 .master-checkbox .checkbox-square {
  border-color: var(--urban-red);
}
#dropdown-29 .master-checkbox:hover .checkbox-square {
  border-color: var(--urban-red);
  background-color: rgba(251, 98, 93, 0.1);
}
#dropdown-29 .subcategory-option input[type="checkbox"]:checked + .checkbox-square {
  background-color: var(--urban-red);
  border-color: var(--urban-red);
}

/* === BADGE CATEGORIA STILI === */
/* .badge-categoria {
  display: inline-block !important;
  font-family: 'Albert Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
  font-weight: 600 !important;
  font-size: 12px !important;
  padding: 6px 12px !important;
  border-radius: 16px !important;
  color: white !important;
  background-color: var(--category-color, #666666) !important;
  text-transform: none !important;
  letter-spacing: 0.3px !important;
  line-height: 1.2 !important;
  margin: 0 !important;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) !important;
  transition: all 0.2s ease !important;
} */
/* === CATEGORIA INFO STILI === */
.categoria-content {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  font-family: 'Albert Sans', sans-serif !important;
  font-size: 14px !important;
  font-weight: 400 !important;
  letter-spacing: 1px !important;
  text-transform: uppercase !important;
  margin: 0 !important;
}

.categoria-icon {
  width: 16px !important;
  height: 16px !important;
  object-fit: contain !important;
  transition: filter 0.2s ease !important;
}

.categoria-text {
  color: rgb(35, 40, 80) !important;
  margin: 0 !important;
}

/* Filtri colore per le icone basati sulla categoria */
.categoria-icon.sostenibilita {
  filter: brightness(0) saturate(100%) invert(49%) sepia(98%) saturate(446%) hue-rotate(95deg) brightness(96%) contrast(85%);
}

.categoria-icon.mobilita {
  filter: brightness(0) saturate(100%) invert(25%) sepia(55%) saturate(1234%) hue-rotate(210deg) brightness(95%) contrast(85%);
}

.categoria-icon.inclusione {
  filter: brightness(0) saturate(100%) invert(79%) sepia(84%) saturate(413%) hue-rotate(8deg) brightness(104%) contrast(93%);
}

.categoria-icon.cultura {
  filter: brightness(0) saturate(100%) invert(45%) sepia(75%) saturate(2234%) hue-rotate(342deg) brightness(100%) contrast(94%);
}

.categoria-icon.altro {
  filter: brightness(0) saturate(100%) invert(40%) sepia(0%) saturate(0%) hue-rotate(0deg) brightness(60%) contrast(100%);
}

/* Base style for badge categoria */
.badge-categoria::before {
  background-color: white !important;
  color: rgb(35, 40, 80) !important;
  font-family: 'Albert Sans', sans-serif !important;
  font-size: 14px !important;
  font-weight: 400 !important;
  letter-spacing: 1px !important;
  text-transform: uppercase !important;
}

/* Specific border colors for each category */
.badge-categoria:has(.sostenibilita)::before {
  border: 1px solid var(--urban-green) !important;
}

.badge-categoria:has(.mobilita)::before {
  border: 1px solid var(--urban-blue) !important;
}

.badge-categoria:has(.inclusione)::before {
  border: 1px solid var(--urban-yellow) !important;
}

.badge-categoria:has(.cultura)::before {
  border: 1px solid var(--urban-red) !important;
}

.badge-categoria:has(.altro)::before {
  border: 1px solid #666666 !important;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .categoria-content {
    gap: 6px !important;
    font-size: 13px !important;
  }
  
  .categoria-icon {
    width: 14px !important;
    height: 14px !important;
  }
}
/* ============================================
   INFOBOX SLIDER - Carosello immagini
   ============================================ */

.infobox-slider {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
}

.slider-main {
    position: relative;
    display: flex;
    align-items: center;
    background: #f8f8f8;
    border-radius: 12px;
    overflow: hidden;
}

.slider-image-container {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 200px;
    max-height: 350px;
    overflow: hidden;
}

.slider-image {
    max-width: 100%;
    max-height: 350px;
    object-fit: contain;
    cursor: zoom-in;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.slider-image:hover {
    transform: scale(1.02);
}

/* Animazione slide */
.slider-image.slide-out-left {
    animation: slideOutLeft 0.3s ease forwards;
}

.slider-image.slide-out-right {
    animation: slideOutRight 0.3s ease forwards;
}

.slider-image.slide-in-left {
    animation: slideInLeft 0.3s ease forwards;
}

.slider-image.slide-in-right {
    animation: slideInRight 0.3s ease forwards;
}

@keyframes slideOutLeft {
    from { transform: translateX(0); opacity: 1; }
    to { transform: translateX(-30%); opacity: 0; }
}

@keyframes slideOutRight {
    from { transform: translateX(0); opacity: 1; }
    to { transform: translateX(30%); opacity: 0; }
}

@keyframes slideInLeft {
    from { transform: translateX(-30%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes slideInRight {
    from { transform: translateX(30%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.9);
    color: var(--urban-blue, #3f4e8c) !important;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    padding: 0 !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    transition: all 0.2s ease;
}

.slider-nav:active{
   background-color: white;
}

.slider-nav:hover {
    background: #fff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.slider-prev { left: 10px; }
.slider-next { right: 10px; }

.slider-thumbnails {
    display: flex;
    gap: 8px;
    padding: 12px 0;
    overflow-x: auto;
    scrollbar-width: thin;
}

.slider-thumb {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.2s ease;
    opacity: 0.6;
}

.slider-thumb:hover {
    opacity: 0.9;
}

.slider-thumb.active {
    border-color: var(--e-global-color-primary, #3f4e8c);
    opacity: 1;
}

.slider-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slider-counter {
    text-align: center;
    font-size: 14px;
    color: #666;
    padding: 8px 0;
}

.slider-current {
    font-weight: bold;
    color: var(--urban-blue, #3f4e8c) !important;
}

/* Lightbox */
.slider-lightbox {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.9);
}

.lightbox-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 8px;
}

.lightbox-close {
    position: absolute;
    right: -10px !important;
    width: 35px;
    height: 35px;
    top: -10px;
    padding: 0 !important;
    right: 0;
    background: none;
    border: none;
    color: var(--urban-blue) !important;
    background-color: white !important;
    border-radius: 50%;
    line-height: 1px;
    font-size: 36px;
    cursor: pointer;
    padding: 10px;
}

/* SVG nelle frecce navigazione slider */
.slider-nav svg {
    width: 28px;
    height: 28px;
    display: block;
}

.slider-nav:hover svg {
    transform: scale(1.1);
    transition: transform 0.2s ease;
}

[type=button], [type=submit], button {
    /* padding: 0 !important; */
}

button:active, [type=button]:active, [type=submit]:active, button:focus, [type=button]:focus, [type=submit]:focus {
    background-color: white !important;
}