    #form-tour {
      display: flex;
      flex-wrap: wrap;
      gap: 16px;
      align-items: flex-end;
      padding: 16px;
    }
    
    #form-tour label {
      display: flex;
      flex-direction: column;
      font-weight: 600;
      font-size: 0.95em;
      color: #333;
      flex: 1 1 200px;
    }
    
    #form-tour input,
    #form-tour select {
      margin-top: 6px;
      padding: 8px;
      border: 1px solid #A79C97;
      font-size: 1em;
      background: #fff;
      color: #333;
    }
    
    #form-tour button {
      background-color: #E9782B;
      color: white;
      font-weight: bold;
      padding: 10px 18px;
      font-size: 1em;
      border: none;
      border-radius: 6px;
      cursor: pointer;
      transition: background 0.3s;
    }
    
    #form-tour button:hover {
      background-color: #cf651e;
    }


    .tappa {
      border: 2px solid #ccc;
      border-radius: 8px;
      padding: 12px;
      margin-bottom: 12px;
      display: flex;
      flex-direction: column;
      background: #f9f9f9;
      transition: background 0.3s, border 0.3s;
    }

    .tappa.attiva {
        background: #fff5ef;
        border-color: #E9782B;
    }

    .tappa-header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      cursor: pointer;
      gap: 12px;
    }

    .tappa-info {
      flex-grow: 1;
    }

    .tappa-nome {
      font-size: 1.1em;
      font-weight: bold;
    }

    .distanza {
      font-size: 0.9em;
      color: #555;
      margin-top: 4px;
    }

    .tappa-switch {
      flex-shrink: 0;
    }

    .tappa-accordion {
      margin-top: 10px;
      display: none;
      font-size: 0.9em;
      color: #444;
    }

    .tappa.open .tappa-accordion {
      display: block;
    }

    .switch {
      position: relative;
      display: inline-block;
      width: 44px;
      height: 24px;
    }

    .switch input {
      opacity: 0;
      width: 0;
      height: 0;
    }

    .slider {
      position: absolute;
      inset: 0;
      background-color: #ccc;
      border-radius: 24px;
      transition: 0.4s;
    }

    .slider:before {
      content: "";
      position: absolute;
      height: 18px;
      width: 18px;
      left: 3px;
      bottom: 3px;
      background-color: white;
      border-radius: 50%;
      transition: 0.4s;
    }

    input:checked + .slider {
      background-color: #E9782B;
    }

    input:checked + .slider:before {
      transform: translateX(20px);
    }

    #riepilogo-percorso {
      margin-top: 20px;
      font-weight: bold;
    }
    .chevron {
      font-size: 1.2em;
      color: #A79C97;
      transition: transform 0.3s ease;
      flex-shrink: 0;
    }
    
    .tappa.open .chevron {
      transform: rotate(180deg);
      color: #E9782B;
    }
    
    .tappa-servizi {
      display: inline-flex;
      gap: 6px;
      margin-left: 8px;
      align-items: center;
    }
    
    .servizio {
      width: 20px;
      height: 20px;
      display: inline-block;
      object-fit: contain;
    }
    
    @media (max-width: 700px) {
      #form-tour label {
        flex: 1 1 100%;
        margin-left: 0 !important;
      }
    }