/*
  commento di verifica deploy
*/
  /* Search Trigger Button — nascosto: l'apertura del pannello viene
     gestita da altri trigger (es. .here-blocco-cerca → openSearch()) */
    .eccoci-srch-trigger {
/*
        display: none !important;
*/
      position: relative;
      width: 50px;
      height: 50px;
      border-radius: 50%;
      border: none;
      cursor: pointer;
      z-index: 50;
      transition: transform 0.2s ease, box-shadow 0.2s ease;
      background: transparent;
      margin: 0;
      padding: 0;        
    }

    .eccoci-srch-trigger:active {
/*
      transform: scale(0.95);
*/
    }

    .eccoci-srch-trigger:hover {
/*
      box-shadow: 0 6px 25px rgba(99, 102, 241, 0.5);
*/
    }

    .eccoci-srch-trigger.eccoci-srch-hidden {
      display: none;
    }

    /* Overlay */
    .eccoci-srch-overlay {
      position: fixed;
      inset: 0;
      background: rgba(1, 32, 94, 0.3);
      z-index: 60;
      opacity: 0;
      visibility: hidden;
      transition: opacity 0.3s ease, visibility 0.3s ease;
    }

    .eccoci-srch-overlay.eccoci-srch-active {
      opacity: 1;
      visibility: visible;
    }

    /* Search Buttons */
    .eccoci-srch-panel {
      position: fixed;
      bottom: 12px;
      top:auto;
      left: auto;
      right: auto;
      z-index: 900;
      display: flex;
      flex-direction: column;
      justify-content: flex-end;
      opacity: 0;
      transform: translateY(100px);
      pointer-events: none;
      transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
      max-width:500px;
      width:100%;
    }
  .eccoci-srch-panel.tastiera-aperta {
      position: absolute;
      bottom: auto; /* Sovrascrive il bottom fisso */
      top:auto;
      right: auto;
      left: 50%;
      transform: translateX(-50%); /* Centra l'elemento se left/right sono auto */
      /* Il posizionamento verticale 'top' e lo zoom verranno gestiti da JS */
  }
    .eccoci-srch-panel.eccoci-srch-active {
      transform: translateY(0);
      opacity: 1;
      pointer-events: auto;
    }

    .eccoci-srch-panel-inner {
      display: flex;
      flex-direction: column;
      gap: 12px;
      padding:0 10px;
    }

    /* I due pulsanti vecchi "Cerca per nome" / "Cerca per esigenza" non
       vengono più usati: openSearch() entra direttamente in input mode.
       Li nascondiamo permanentemente per evitare il flash durante l'apertura. */
    .eccoci-srch-buttons {
      display: none !important;
    }

    .eccoci-srch-buttons.eccoci-srch-expanding {
      gap: 0;
    }

    .eccoci-srch-option {
      flex: 1;
      min-width: 0;
      height: 56px;
      max-height: 56px;
      padding: 0 20px;
      border-radius: 100px;
      border: none;
      background: white;
      cursor: pointer;
      box-shadow: 0 4px 20px rgba(0,0,0,0.12);
      font-size: 15px;
      font-weight: 600;
      color: #234997;
      transition: flex 0.3s ease, width 0.3s ease, padding 0.3s ease, opacity 0.3s ease;
      overflow: hidden;
      white-space: nowrap;
    }

    @media only screen and (max-width: 767px) {
        .eccoci-srch-buttons {
            max-width: 97vw;
            width: 97vw;
        }
    }

    .eccoci-srch-option:active {
      transform: scale(0.97);
    }

    .eccoci-srch-option.eccoci-srch-shrink {
      flex: 0;
      width: 0;
      padding: 0;
      opacity: 0;
    }

    /* Search Input Bar — slide puro dal basso verso l'alto (e inverso
       in chiusura). Easing senza overshoot/bounce. Padding e box-sizing
       fissi → solo height + opacity animate per evitare salti di layout. */
    .eccoci-srch-input-bar {
      box-sizing: border-box;
      display: flex;
      width: 100%;
      height: 0;
      padding: 0 8px 0 20px;
      border-radius: 100px;
      background: white;
      box-shadow: 0 4px 20px rgba(0,0,0,0.12);
      align-items: center;
      gap: 12px;
      opacity: 0;
      overflow: hidden;
      transition:
        height 0.3s cubic-bezier(0.4, 0, 0.2, 1),
        opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .eccoci-srch-input-bar.eccoci-srch-active {
      height: 56px;
      opacity: 1;
    }

    .eccoci-srch-buttons.eccoci-srch-hidden {
      display: none;
    }

    /* Autocomplete suggestions */
    .eccoci-srch-autocomplete-suggestions {
      display: none;
      flex-wrap: wrap;
      gap: 8px;
      padding: 0 4px;
    }

    .eccoci-srch-autocomplete-suggestions.eccoci-srch-active {
      display: flex;
      animation: eccoci-srch-fadeIn 0.2s ease;
    }

    .eccoci-srch-autocomplete-chip {
      padding: 10px 16px;
      border-radius: 100px;
      border: none;
      background: white;
      cursor: pointer;
      box-shadow: 0 2px 10px rgba(0,0,0,0.1);
      font-size: 14px;
      font-weight: 500;
      color: #4B5563;
      transition: all 0.2s ease;
    }

    .eccoci-srch-autocomplete-chip:active {
      transform: scale(0.95);
      background: #EEF2FF;
      color: #6366F1;
    }

    /* Selected tag display */
    .eccoci-srch-selected-tag-container {
      display: none;
      justify-content: center;
    }

    .eccoci-srch-selected-tag-container.eccoci-srch-active {
      display: flex;
      animation: eccoci-srch-fadeIn 0.2s ease;
    }

    .eccoci-srch-selected-tag {
      padding: 12px 20px;
      border-radius: 100px;
      background: #00b386;
      color: white;
      font-size: 15px;
      font-weight: 600;
      box-shadow: 0 4px 20px rgba(99, 102, 241, 0.3);
    }

    /* Location buttons */
    .eccoci-srch-location-buttons {
      display: none;
      gap: 12px;
    }

    .eccoci-srch-location-buttons.eccoci-srch-active {
      display: flex;
      animation: eccoci-srch-fadeIn 0.2s ease;
    }

    .eccoci-srch-autocomplete-suggestions:not(.eccoci-srch-active) {
        display: none;
    }

    @keyframes eccoci-srch-fadeIn {
      from { opacity: 0; }
      to { opacity: 1; }
    }

    .eccoci-srch-location-btn {
      flex: 1;
      height: 56px;
      padding: 0 16px;
      border-radius: 100px;
      border: none;
      background: white;
      cursor: pointer;
      box-shadow: 0 4px 20px rgba(0,0,0,0.12);
      font-size: 14px;
      font-weight: 600;
      color: #1F2937;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
      transition: transform 0.2s ease;
    }

    .eccoci-srch-location-btn:active {
      transform: scale(0.97);
    }

    .eccoci-srch-location-btn svg {
      flex-shrink: 0;
    }

    .eccoci-srch-input-bar input {
      flex: 1;
      border: none;
      background: transparent;
      font-size: 15px;
      font-weight: 500;
      color: #1F2937;
      outline: none;
    }

    .eccoci-srch-input-bar input::placeholder {
      color: #9CA3AF;
    }

    .eccoci-srch-input-bar .eccoci-srch-submit-btn {
      width: 40px;
      height: 40px;
      border-radius: 50%;
      border: none;
      background: #00b386;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      flex-shrink: 0;
    }

    .eccoci-srch-input-bar .eccoci-srch-submit-btn:active {
      background: #4F46E5;
    }

    /* City Search Modal */
    .eccoci-srch-city-modal {
      position: fixed;
      inset: 0;
      z-index: 200;
      display: none;
      align-items: flex-end;
      justify-content: center;
      padding: 20px;
    }

    .eccoci-srch-city-modal.eccoci-srch-active {
      display: flex;
      animation: eccoci-srch-fadeIn 0.3s ease;
    }

    .eccoci-srch-city-modal-content {
      width: 100%;
      max-width: 100%;
      background: white;
      border-radius: 24px;
      padding: 24px;
      box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    }

    .eccoci-srch-city-modal-header {
      display: flex;
      justify-content: space-between;
      margin-bottom: 20px;
    }

    .eccoci-srch-city-modal-title {
      font-size: 18px;
      font-weight: 700;
      color: #1F2937;
    }

    .eccoci-srch-city-modal-subtitle {
      font-size: 13px;
      color: #6B7280;
      margin-top: 4px;
      line-height: 16px;
    }

    .eccoci-srch-city-modal-close {
      width: 32px;
      height: 32px;
      min-width: 32px;
      border-radius: 50%;
      border: none;
      background: #F3F4F6;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
    }

    .eccoci-srch-city-search-box {
      display: flex;
      align-items: center;
      gap: 10px;
      background: #F3F4F6;
      border-radius: 14px;
      padding: 14px 16px;
      margin-top: 16px;
    }

    .eccoci-srch-city-search-box svg {
      flex-shrink: 0;
      opacity: 0.5;
    }

    .eccoci-srch-city-search-input {
      flex: 1;
      border: none;
      background: transparent;
      outline: none;
      font-size: 16px;
      color: #1F2937;
    }

    .eccoci-srch-city-search-input::placeholder {
      color: #9CA3AF;
    }

    .eccoci-srch-cities-list {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
      overflow-y: auto;
      max-height: 300px; /* Sostituisci 300px con l'altezza che desideri */
      -webkit-overflow-scrolling: touch;      
    }

/*
.eccoci-srch-cities-list {
    display: flex;
    flex-wrap: nowrap; 
    flex-direction: row; 
    gap: 8px;
    overflow-y: hidden;
    overflow-x: auto; 
    -webkit-overflow-scrolling: touch;
    padding: 0 16px; 
}

.eccoci-srch-cities-list > * {
    flex-shrink: 0; 
}
*/

    .eccoci-srch-city-chip {
      padding: 10px 16px;
      border-radius: 30px;
      border: 2px solid #E5E7EB;
      background: white;
      cursor: pointer;
      font-size: 14px;
      font-weight: 500;
      color: #4B5563;
      transition: all 0.2s;
    }

    .eccoci-srch-city-chip:active {
      transform: scale(0.95);
    }

    .eccoci-srch-city-chip.eccoci-srch-selected {
      border-color: #6366F1;
      background: #EEF2FF;
      color: #6366F1;
    }
    /* ====================================================================
       SQUIRCLE — classi univoche per elementi del pannello ricerca.
       Ogni classe usa la sua shape dedicata (definita in style-pro.css)
       e il suo knob --r-squircle-* per controllare la curvatura.
       ==================================================================== */

    .squircle-cities-list {
        border-radius: 0 !important;
        clip-path: var(--squircle-cities-list);
        -webkit-clip-path: var(--squircle-cities-list);
    }

    .squircle-btn-posizione {
        border-radius: 0 !important;
        clip-path: var(--squircle-btn-posizione);
        -webkit-clip-path: var(--squircle-btn-posizione);
    }

    .squircle-city-search-box {
        border-radius: 0 !important;
        clip-path: var(--squircle-city-search-box);
        -webkit-clip-path: var(--squircle-city-search-box);
    }

    .squircle-input-bar {
        border-radius: 0 !important;
        clip-path: var(--squircle-input-bar);
        -webkit-clip-path: var(--squircle-input-bar);
    }

    .squircle-submit-btn {
        border-radius: 0 !important;
        clip-path: var(--squircle-submit-btn);
        -webkit-clip-path: var(--squircle-submit-btn);
    }

    .squircle-cerca-citta {
        border-radius: 0 !important;
        clip-path: var(--squircle-cerca-citta);
        -webkit-clip-path: var(--squircle-cerca-citta);
    }


    .nessun-dato {
        display: flex;
        justify-content: center;
        align-items: center;
        height: calc(100vh - 70px);
        flex-direction: column;
        text-align: center;
        gap: 18px;
        padding: 0 24px;
        max-width: 520px;
        margin: 0 auto;
        font-family: 'Lato', "Helvetica Neue", Arial, sans-serif;
    }

    .nessun-dato .nessun-dato-icon {
        width: 140px;
        height: auto;
        max-height: 160px;
        flex-shrink: 0;
        display: block;
    }

    .nessun-dato .ricerca-msg {
        margin: 0;
        font-family: 'Lato', "Helvetica Neue", Arial, sans-serif;
        font-size: 16px;
        font-weight: 500;
        color: #4B5563;
        line-height: 1.45;
    }

    /* Bottone "Effettua nuova ricerca" — verde eccoci con shine + squircle */
    .btn-nuova-ricerca {
        position: relative;
        overflow: hidden;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-width: 220px;
        height: 60px;
        margin: 8px 0 0 0;
        padding: 0 26px;
        background: #00b386;
        color: #fff;
        font-family: 'Lato', "Helvetica Neue", Arial, sans-serif;
        font-size: 15px;
        font-weight: 700;
        line-height: 1;
        border: none;
        border-radius: 0;
        clip-path: var(--squircle-nuova-ricerca);
        -webkit-clip-path: var(--squircle-nuova-ricerca);
        cursor: pointer;
        transition: background-color 160ms ease, transform 140ms ease;
    }
    .btn-nuova-ricerca::before {
        content: "";
        position: absolute;
        top: -50%;
        left: -75%;
        width: 50%;
        height: 200%;
        background: linear-gradient(
            90deg,
            rgba(255, 255, 255, 0)    0%,
            rgba(255, 255, 255, 0.45) 50%,
            rgba(255, 255, 255, 0)  100%
        );
        transform: skewX(-20deg);
        filter: blur(4px);
        animation: shineSweep 5s ease-in-out infinite;
        pointer-events: none;
    }
    .btn-nuova-ricerca:hover {
        background: #009e76;
    }
    .btn-nuova-ricerca:active {
        transform: scale(0.97);
    }
    @media (prefers-reduced-motion: reduce) {
        .btn-nuova-ricerca::before { animation: none; opacity: 0; }
    }

    /* Bottone "Aggiungi attività" — grigio con bordo verde (doppio clip-path)
       + squircle stesso del fratello "Nuova ricerca". */
    .btn-aggiungi-attivita {
        position: relative;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-width: 220px;
        height: 60px;
        margin: 4px 0 0 0;
        padding: 0 26px;
        background: #00b386;         /* colore del bordo esterno */
        color: #00b386;              /* testo verde */
        font-family: 'Lato', "Helvetica Neue", Arial, sans-serif;
        font-size: 15px;
        font-weight: 700;
        line-height: 1;
        border: none;
        border-radius: 0;
        clip-path: var(--squircle-nuova-ricerca);
        -webkit-clip-path: var(--squircle-nuova-ricerca);
        cursor: pointer;
        isolation: isolate;
        transition: color 160ms ease, transform 140ms ease;
    }
    .btn-aggiungi-attivita::before {
        content: "";
        position: absolute;
        inset: 2px;
        background: #f4f4f4;         /* sfondo "interno" grigio del sito */
        clip-path: var(--squircle-nuova-ricerca-interno);
        -webkit-clip-path: var(--squircle-nuova-ricerca-interno);
        z-index: -1;
        pointer-events: none;
        transition: background-color 160ms ease;
    }
    .btn-aggiungi-attivita:hover::before {
        background: #eaeaea;
    }
    .btn-aggiungi-attivita:active {
        transform: scale(0.97);
    }

    /* Bottone "Cambia ordinamento" — identico a .btn-aggiungi-attivita
       (grigio con bordo verde + squircle, stesse dimensioni e tipografia). */
    .btn-cambia-ordinamento {
        position: relative;
        display: inline-flex;
        align-items: center;
        justify-content: center;
/*
        min-width: 220px;
*/        
        height: 60px;
        margin: 4px 0 0 0;
        padding: 0 26px 0 15px;
        background: #00b386;
        color: #00b386;
        font-family: 'Lato', "Helvetica Neue", Arial, sans-serif;
        font-size: 15px;
        font-weight: 700;
        line-height: 1;
        text-decoration: none;
        border: none;
        border-radius: 0;
        clip-path: var(--squircle-nuova-ricerca);
        -webkit-clip-path: var(--squircle-nuova-ricerca);
        cursor: pointer;
        isolation: isolate;
        transition: color 160ms ease, transform 140ms ease;
    }
    .btn-cambia-ordinamento::before {
        content: "";
        position: absolute;
        inset: 2px;
        background: #f4f4f4;
        clip-path: var(--squircle-nuova-ricerca-interno);
        -webkit-clip-path: var(--squircle-nuova-ricerca-interno);
        z-index: -1;
        pointer-events: none;
        transition: background-color 160ms ease;
    }
    .btn-cambia-ordinamento:hover::before {
        background: #eaeaea;
    }
    .btn-cambia-ordinamento:active {
        transform: scale(0.97);
    }
    .btn-cambia-ordinamento img {
        margin-right:4px;
        width: 50px;
    }
    .messaggio-finale {
        display:flex;
        justify-content: center;
        align-items: center;
        flex-direction: column;
        margin:20px 0 0 0;
        height:100px;
    }

    .messaggio-finale button {
      box-shadow: 0 0px 10px rgba(0, 0, 0, 0.12) !important;
/*
      box-shadow: none;
*/
    }

    .distanza {
        display: flex;
        justify-content: center;
        width: 100%;
        gap: 5px;
        margin: 10px 0 0 0;
        font-size:12px;
    }

    .ricerca-msg {
        font-size:14px;
        line-height: 20px;
        padding: 0;
    }


    .here-content-footer, .here-content-footer p {
        cursor:pointer;
    }


/* Contenitore esterno */
.preloader-container {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90%;
  max-width: 200px;      /* Larghezza massima richiesta */
  height: 6px;           /* Spessore della barra */
  background-color: #e2e8f0; /* Sfondo del canale (grigio chiaro) */
  border-radius: 999px;
  overflow: hidden;      /* Taglia la barra interna quando esce dai bordi */
  z-index: 9999;
}

/* Barra interna a scorrimento continuo e veloce */
.preloader-bar-infinite {
  position: absolute;
  width: 40%;            /* Lunghezza della barra mobile interna */
  height: 100%;
  background: linear-gradient(90deg, #2563eb, #60a5fa); /* Sfumatura blu moderna */
  border-radius: 999px;
  
  /* Animazione lineare (linear) senza variazioni di velocità o pause, durata 0.8 secondi */
  animation: continuous-slide 0.8s linear infinite;
}
/* Definizione del movimento continuo da sinistra a destra */
@keyframes continuous-slide {
  0% {
    transform: translateX(-100%); /* Inizia completamente fuori a sinistra */
  }
  100% {
    transform: translateX(250%);  /* Esce completamente a destra (100% / 40% = 2.5) */
  }
}

