
  /* Import Font Awesome for icons */
  

  /* Stili base per i risultati in due colonne */
  .results-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }

  .results-item {
    display: flex;
    align-items: flex-start;
    background-color: #f9f9f9;
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  }
  
  .results-item-number {
    background-color: #af0909; /* Colore rosso */
    color: #fff;
    width: 30px;
    height: 30px;
    font-weight: bold;
    text-align: center;
    line-height: 30px;
    margin-right: 10px;
    border-radius: 50%;
    flex-shrink: 0;
  }
  
  .results-item-content {
    font-family:"Nunito Sans",sans-serif;
    flex-grow: 1;
  }
  
  .results-item-content .tc-name {
    font-weight: bold;
    margin-bottom: 0.3rem;
    font-size: 1.1rem;
  }
  
  .results-item-content a {
    font-weight: bold;
    color: #af0909; /* Colore rosso */
    text-decoration: none;
  }
  
  .results-item-content a:hover {
    text-decoration: underline;
  }

  .results-item-content .tc-link {
    margin-top: 0.5rem;
  }
  
  /* Icone per le nuove funzionalità */
  .tc-features {
    display: flex;
    gap: 10px;
    margin-bottom: 0.5rem;
  }

  .tc-feature-icon {
    font-size: 1.2rem;
    cursor: pointer;
  }

  .icon-active {
    color: green;
  }

  .icon-inactive {
    color: gray;
  }
  
  /* Paginazione */
  .pagination {
    margin-top: 1rem;
    text-align: center;
  }
  
  .pagination button {
    margin: 0 5px;
    padding: 8px 16px;
    cursor: pointer;
    background-color: #af0909; /* Colore rosso */
    color: #fff;
    border: none;
    border-radius: 4px;
    transition: background-color 0.3s;
  }
  
  .pagination button:hover:not(:disabled) {
    background-color: #930707; /* Rosso più scuro */
  }
  
  .pagination button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background-color: #f2a1a1;
  }
  
  /* Stili per il form */
  .form-group {
    margin-bottom: 1.5rem;
  }
  
  .form-group h3 {
    margin-bottom: 1rem;
    font-size: 1.2rem;
    color: #333;
    border-bottom: 2px solid #af0909;
    padding-bottom: 0.3rem;
  }
  
  .field-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
  }
  
  .field-row label {
    flex: 0 0 150px;
    font-weight: bold;
    color: #555;
  }
  
  .field-row input,
  .field-row select {
    flex: 1;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
  }
  
  .field-row input:focus,
  .field-row select:focus {
    border-color: #af0909;
    outline: none;
  }
  
  /* Pulsante di submit */
  .map_submit {
    background-color: #af0909;
    color: #fff;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
  }
  
  .map_submit:hover:not(.is-disabled) {
    background-color: #930707;
  }
  
  .map_submit.is-disabled {
    background-color: #f2a1a1;
    cursor: not-allowed;
  }
  
  /* Mappa */
  #map {
    width: 100%;
    height: 400px;
    margin-top: 1rem;
    border: 1px solid #ccc;
    max-width: 800px;
    margin: 1rem auto;
    border-radius: 8px;
  }
  
  /* Risultati e paginazione */
  #results-container {
    margin-top: 1rem;
    margin: 1rem auto;
    max-width: 800px;
  }
  
  /* Messaggio di caricamento */
  #loadingMessage {
    min-height: 20px;
    margin-top: 1rem;
    text-align: center;
    font-weight: bold;
    color: #af0909;
  }

  /* --------- RESPONSIVITÀ PER SCHERMI PICCOLI --------- */
  @media (max-width: 768px) {
    /* I risultati in una colonna sola */
    .results-grid {
      grid-template-columns: 1fr;
    }

    /* I campi del form vanno a capo */
    .field-row {
      flex-direction: column;
      align-items: flex-start;
    }

    .field-row label {
      flex: unset;
      width: 100%;
      margin-bottom: 0.3rem;
    }

    .field-row input,
    .field-row select {
      width: 100%;
    }
  }
