/* Home su telefono: zone ad apertura (fisarmonica) e niente scorrimenti laterali nascosti.
   Le barre tappabili le crea js/mobile.js; sopra i 760 px non cambia nulla. */

.acc-btn { display: none; }
.home-quick { display: none; }
.tile--teal { background: linear-gradient(160deg, #18b7a0, #0b7f78); }
button.tile { border: 0; font: inherit; width: 100%; cursor: pointer; }

/* ---- "Vicino a me": pannello dal basso ---- */
.near-back {
  position: fixed;
  inset: 0;
  z-index: 70;
  background: rgba(10, 42, 56, 0.5);
}
.near-sheet {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 71;
  max-height: 80vh;
  max-height: 80dvh;
  overflow-y: auto;
  padding: 16px 16px calc(18px + env(safe-area-inset-bottom, 0px));
  border-radius: 22px 22px 0 0;
  background: #fff;
  color: var(--ink, #1c2430);
  box-shadow: 0 -12px 34px rgba(10, 42, 56, 0.3);
}
.near-sheet[hidden], .near-back[hidden] { display: none; }
.near-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 4px; }
.near-head h3 { margin: 0; font-family: var(--display, "Fredoka", sans-serif); font-weight: 600; font-size: 1.25rem; }
.near-x {
  width: 40px; height: 40px; border: 0; border-radius: 50%;
  background: rgba(10, 42, 56, 0.08); color: inherit; font-size: 1.4rem; line-height: 1; cursor: pointer;
}
.near-msg { margin: 6px 0 10px; font-size: 0.9rem; color: var(--muted, #5b6b7a); line-height: 1.4; }
.near-list { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.near-item {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 4px 10px;
  padding: 10px 12px;
  border-radius: 16px;
  background: #f4fbfd;
  box-shadow: 0 0 0 1px rgba(10, 42, 56, 0.08);
}
.near-item b { font-weight: 800; font-size: 0.98rem; min-width: 0; }
.near-item small { grid-column: 1; font-size: 0.8rem; color: var(--muted, #5b6b7a); font-weight: 700; }
.near-act { grid-column: 2; grid-row: 1 / span 2; display: flex; gap: 6px; }
.near-act a {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; min-width: 44px; padding: 0 14px;
  border-radius: 999px; font-weight: 800; font-size: 0.84rem; text-decoration: none;
  background: #fff; color: var(--navy, #0a2a38); box-shadow: 0 0 0 1.5px rgba(10, 42, 56, 0.16);
}
.near-act a.go { background: var(--coral, #f26b1f); color: #fff; box-shadow: none; }
.near-contact { order: 5; grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 4px; }

/* Chiama / WhatsApp / Vai (card e pannello): solo su telefono per le card */
.svc-act { display: none; }
.act-call, .act-wa, .act-go {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 46px; border-radius: 14px; font-weight: 800; font-size: 0.92rem;
  text-decoration: none; color: #fff; -webkit-tap-highlight-color: transparent;
}
.act-call { background: #0b7f78; }
.act-wa { background: #1faa59; }
.act-go { background: #fff; color: var(--navy, #0a2a38); box-shadow: 0 0 0 1.5px rgba(10, 42, 56, 0.18); }

@media (max-width: 759px) {

  /* ---- primo schermo: poca foto, ricerca e "Cosa faccio adesso?" subito sotto ---- */
  .hero { min-height: 132px; }
  .hero-art { height: 132px; }
  .hero-copy { padding: 30px 16px 10px; }
  .hero .eyebrow { display: none; }
  .hero h1 { font-size: 1.45rem; line-height: 1.05; margin: 0; }

  .home-quick { display: grid; gap: 10px; margin: 12px var(--pad) 10px; }
  .qk-search {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    min-height: 50px;
    padding: 0 16px;
    border: 0;
    border-radius: 999px;
    background: #fff;
    color: var(--muted, #5b6b7a);
    font: inherit;
    font-weight: 700;
    font-size: 0.95rem;
    text-align: left;
    box-shadow: var(--shadow);
    cursor: pointer;
  }
  .qk-now {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    min-height: 76px;
    padding: 12px 16px;
    border: 0;
    border-radius: 20px;
    background: linear-gradient(120deg, #f26b1f, #ff8f3a);
    color: #fff;
    font: inherit;
    text-align: left;
    box-shadow: 0 10px 24px rgba(242, 107, 31, 0.32);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }
  .qk-now[hidden] { display: none; }
  .qk-txt { display: grid; gap: 2px; min-width: 0; }
  .qk-txt small { font-size: 0.74rem; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase; opacity: 0.92; }
  .qk-txt b { font-family: var(--display, "Fredoka", sans-serif); font-weight: 600; font-size: 1.08rem; line-height: 1.25; }
  .qk-go {
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.24);
    font-size: 1.7rem;
    line-height: 1;
  }

  /* lingue: una riga sola, bassa */
  .lang-slot--hero { margin: 0 var(--pad) 10px; animation: none; }
  .lang-bar { border-radius: 16px; padding: 5px; gap: 5px; }
  .lang-btn { flex-direction: row; min-height: 40px; gap: 6px; padding: 4px 6px; border-radius: 12px; animation: none; }
  .lang-btn.is-on { animation: none; }
  .lang-btn .lang-flag { width: 24px; height: 16px; animation: none; }

  /* tessere: 12 in tutto, a coppie su 2 colonne (nessuna riga monca) */

  /* ---- testo SEO sotto la mappa: 3 righe, tocca per leggerlo tutto ---- */
  .map-seo:not(.is-open) {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  /* ---- tutto in colonna, a larghezza schermo ---- */
  .tile-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: 66px;
  }
  .guide-toc { flex-wrap: wrap; }
  .cat-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }

  .trip-filters { flex-wrap: wrap; overflow: visible; }
  .trip-slider { margin-inline: 0; }
  .trip-track.snap {
    flex-direction: column;
    overflow: visible;
    padding-inline: 0;
    gap: 10px;
  }
  .trip-slide {
    flex: 0 0 auto;
    width: 100%;
    min-width: 0;
    max-width: none;
    height: 170px;
  }
  .trip-slider-btn, .trips-swipe { display: none; }

  #featured-track, .home-cat .snap {
    flex-direction: column;
    overflow: visible;
    padding-inline: 0;
    scroll-snap-type: none;
    gap: 12px;
  }
  .svc-card.snap-card {
    flex: 0 0 auto;
    width: 100%;
    min-width: 0;
    max-width: none;
    animation: none;
  }
  .svc-card { position: relative; }
  .svc-act { display: grid; grid-template-columns: 1fr 1.3fr 0.8fr; gap: 8px; padding: 0 12px 12px; }
  .svc-act > :only-child { grid-column: 1 / -1; }
  /* poche card per volta: la zona aperta non diventa infinita */
  #featured-track > :nth-child(n+5), .home-cat .snap > :nth-child(n+4) { display: none; }

  .m3d-tour-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    overflow: visible;
    margin-inline: 0;
    padding-inline: 0;
  }
  .m3d-tour { flex: none; }

  /* ---- zone ad apertura ---- */
  .acc-sec { padding-top: 8px; padding-bottom: 0; margin-bottom: 0; }
  .home-cat.acc-sec { padding-inline: var(--pad); margin: 0; }
  .acc-sec > .acc-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    width: 100%;
    min-height: 56px;
    margin: 0;
    padding: 0 16px;
    border: 0;
    border-radius: 18px;
    background: #fff;
    color: var(--navy, #0a2a38);
    font: inherit;
    font-family: var(--display, "Fredoka", sans-serif);
    font-weight: 600;
    font-size: 1.12rem;
    text-align: left;
    box-shadow: var(--shadow);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }
  .acc-btn::after {
    content: "";
    flex: 0 0 auto;
    width: 10px;
    height: 10px;
    border-right: 3px solid var(--coral, #f26b1f);
    border-bottom: 3px solid var(--coral, #f26b1f);
    transform: rotate(45deg) translateY(-3px);
    transition: transform 0.25s;
  }
  .acc-sec.is-open > .acc-btn::after { transform: rotate(-135deg) translateY(-3px); }
  .acc-sec:not(.is-open) > :not(.acc-btn) { display: none !important; }
  .acc-sec > .block-head h2 { display: none; }
  .acc-sec > .block-head, .acc-sec > .life-strip { margin: 10px 2px 8px; }
}

@media (prefers-reduced-motion: reduce) {
  .acc-btn::after { transition: none; }
}
