/* FromBari, sito temporaneo delle passeggiate. Sfondo bianco, nessuna dipendenza esterna.
   Carattere: Figtree (SIL Open Font License, file in assets/fonts), servito dal nostro server: nessuna chiamata a Google. */
@font-face { font-family: "Figtree"; font-style: normal; font-weight: 300 900; font-display: swap;
  src: url("fonts/figtree-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Figtree"; font-style: normal; font-weight: 300 900; font-display: swap;
  src: url("fonts/figtree-latin-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
:root {
  --ink: #141414;
  --ink-soft: #4a4a4a;
  --paper: #ffffff;
  --paper-warm: #faf6ee;
  --sea: #074D90;
  --sea-deep: #053a6d;
  --sea-soft: #eaf1f8;
  --sand: #DAB079;
  --sand-deep: #a9803f;
  --sand-soft: #f8f1e3;
  --terra: #DAB079;
  --olive: #5c6b2f;
  --sun: #DAB079;
  --line: #e8e2d6;
  --navy: #0a2b4d;
  --radius: 14px;
  --font-display: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --font-body: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --measure: 66ch;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--font-body); font-size: 1.0625rem; line-height: 1.55; }
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--sea); text-underline-offset: .15em; }
a:hover { color: var(--sea-deep); }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 3px; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 700; line-height: 1.08; letter-spacing: -.022em; margin: 0 0 .5em; }
p { margin: 0 0 1em; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: .5rem .9rem; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }

/* Header */
.site-head { display: flex; align-items: center; gap: 1rem; padding: .9rem 1rem; max-width: 1180px; margin: 0 auto; flex-wrap: wrap; }
.brand img { width: 210px; height: auto; }
.site-nav { display: flex; gap: .25rem 1.1rem; flex-wrap: wrap; margin-left: auto; align-items: center; }
.site-nav a { text-decoration: none; color: var(--ink); font-weight: 600; font-size: .98rem; letter-spacing: .005em; padding: .35rem 0; border-bottom: 2px solid transparent; transition: color .15s, border-color .15s; }
.site-nav a:not(.nav-cta):hover { color: var(--sea); }
.site-nav a:hover { border-color: var(--terra); }
.nav-cta { background: var(--sea); color: #fff !important; padding: .5rem .9rem !important; border-radius: 999px; border: 0 !important; }
.nav-cta:hover { background: var(--terra); }
.lang-switch { position: relative; }
.lang-switch summary { list-style: none; cursor: pointer; padding: .4rem .7rem; border: 1px solid var(--line); border-radius: 999px; font-size: .92rem; display: inline-flex; gap: .4rem; align-items: center; }
.lang-switch summary::-webkit-details-marker { display: none; }
.lang-code { font-weight: 700; }
.lang-switch ul { position: absolute; right: 0; top: calc(100% + .4rem); background: #fff; border: 1px solid var(--line); border-radius: 12px; list-style: none; margin: 0; padding: .4rem; min-width: 12rem; box-shadow: 0 12px 30px rgba(0,0,0,.08); z-index: 20; columns: 2; }
.lang-switch li a { display: block; padding: .4rem .6rem; text-decoration: none; color: var(--ink); border-radius: 8px; break-inside: avoid; }
.lang-switch li a:hover { background: var(--paper-warm); }
.demo-banner { background: var(--sun); color: #2b2100; text-align: center; padding: .55rem 1rem; font-size: .95rem; font-weight: 600; }
.demo-banner.draft { background: var(--terra); color: #fff; }

main { display: block; }
.band, .page-head, .walks-layout, .walk-page, .info-layout, .narrow, .request-form { max-width: 1180px; margin: 0 auto; padding: 0 1rem; }
.narrow, .request-form { max-width: 760px; }
.band { padding-top: 2.5rem; padding-bottom: 2.5rem; }
.section-title { font-size: clamp(1.7rem, 3.5vw, 2.4rem); }
.section-sub { font-size: 1.25rem; margin-top: 2rem; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.section-link { font-weight: 600; }

/* Hero */
.hero { position: relative; max-width: 1180px; margin: 0 auto; padding: clamp(2rem, 6vw, 5rem) 1rem 1rem; overflow: hidden; }
.kicker { text-transform: uppercase; letter-spacing: .18em; font-size: .8rem; font-weight: 700; color: var(--sand-deep); margin-bottom: 1rem; }
.hero-title { font-size: clamp(2.4rem, 8vw, 6rem); line-height: .98; max-width: 14ch; margin-bottom: 1.2rem; }
.hero-title::after { content: ""; display: block; width: 3.5rem; height: .35rem; background: var(--sand); margin-top: 1.2rem; border-radius: 3px; }
.hero-intro { font-size: clamp(1.1rem, 2vw, 1.35rem); max-width: 44ch; color: var(--ink-soft); }
.hero-actions { display: flex; gap: .7rem; flex-wrap: wrap; margin: 1.6rem 0 0; }
.hero-route { position: absolute; right: -4%; top: 6%; width: min(52%, 620px); opacity: .9; pointer-events: none; }
@media (max-width: 900px) { .hero-route { position: static; width: 100%; margin-top: 1.5rem; } }
.route-line { fill: none; stroke: var(--sea); stroke-width: 3; stroke-dasharray: 10 12; stroke-linecap: round; animation: dash 14s linear infinite; }
@keyframes dash { to { stroke-dashoffset: -440; } }
.route-stops circle { fill: #fff; stroke: var(--sand); stroke-width: 4; }

/* Buttons */
.btn { display: inline-block; padding: .75rem 1.3rem; border-radius: 999px; font-weight: 700; text-decoration: none; border: 1.5px solid var(--sea); color: var(--sea); background: #fff; cursor: pointer; font: inherit; font-weight: 700; line-height: 1.2; text-align: center; }
.btn:hover { background: var(--sea-soft); color: var(--sea-deep); }
.btn-primary { background: var(--sea); color: #fff; }
.btn-primary:hover { background: var(--sea-deep); border-color: var(--sea-deep); color: #fff; }
.btn-ghost { border-color: var(--line); }
.btn-small { padding: .45rem .9rem; font-size: .92rem; }
.btn-large { padding: .95rem 1.8rem; font-size: 1.1rem; }
.btn-block { display: block; width: 100%; }

/* Types & steps */
.types { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.type-tile { border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem 1.3rem 1.2rem; position: relative; background: #fff; }
.type-tile h3 { font-size: 1.45rem; margin-top: .4rem; }
.type-tile p { margin: 0; color: var(--ink-soft); }
.type-num { font-family: var(--font-display); font-size: 2.6rem; line-height: 1; color: var(--line); position: absolute; right: 1rem; top: .8rem; }
.price-free .type-num { color: #d6e4dc; } .price-donation .type-num { color: #efdfc2; } .price-fixed .type-num { color: #cddcec; }
.pub-priv-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.pub-priv-grid p { border-left: 4px solid var(--sea); padding-left: 1rem; }
.pub-priv-grid p + p { border-color: var(--sand); }
.band-how { background: var(--paper-warm); max-width: none; }
.band-how > * { max-width: 1148px; margin-left: auto; margin-right: auto; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); counter-reset: step; }
.steps li { position: relative; padding-top: .4rem; }
.step-num { display: inline-grid; place-items: center; width: 2.6rem; height: 2.6rem; border-radius: 50%; background: var(--sea); color: #fff; font-weight: 800; font-family: var(--font-display); font-size: 1.3rem; margin-bottom: .8rem; }
.steps h3 { font-size: 1.35rem; }
.band-locals .locals { border: 1px solid #ead9b8; border-radius: var(--radius); padding: clamp(1.4rem, 4vw, 2.6rem); background: var(--sand-soft); transform: rotate(-.6deg); }
.band-locals .locals > * { transform: rotate(.6deg); }
.locals-text { font-size: clamp(1.1rem, 2.2vw, 1.4rem); max-width: 60ch; font-family: var(--font-display); margin: 0; }
.payoff { text-align: center; padding: clamp(3rem, 8vw, 6rem) 1rem; background: var(--sea-deep); color: #fff; }
.payoff-text { font-family: var(--font-display); font-size: clamp(1.8rem, 5vw, 3.6rem); max-width: 18ch; margin: 0 auto 1.5rem; line-height: 1.05; }
.payoff .btn-primary { background: #fff; color: var(--sea-deep); border-color: #fff; }
.payoff .btn-primary:hover { background: var(--sand); border-color: var(--sand); color: var(--navy); }

/* Cards */
.walk-grid { display: grid; gap: 1.2rem; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); }
.walk-card { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; display: flex; flex-direction: column; transition: transform .2s, box-shadow .2s; }
.walk-card:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(0,0,0,.08); }
.walk-card-media { display: block; }
.walk-art { width: 100%; height: auto; }
.walk-art-num { font-family: var(--font-display); font-size: 48px; fill: var(--sea-deep); opacity: .9; }
.walk-card-body { padding: 1rem 1.1rem 1.1rem; display: flex; flex-direction: column; gap: .5rem; flex: 1; }
.walk-card-meta { display: flex; gap: .4rem; flex-wrap: wrap; margin: 0; }
.badge { display: inline-block; font-size: .75rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding: .25rem .55rem; border-radius: 6px; background: var(--paper-warm); color: var(--ink-soft); }
.badge-public { background: var(--sea-soft); color: var(--sea-deep); }
.badge-private { background: #eef0e4; color: var(--olive); }
.badge-price { background: var(--sand-soft); color: #6f4e1a; }
.badge-demo { background: #efdfc2; color: #4a3410; }
.walk-card-title { font-size: 1.45rem; margin: .2rem 0 0; }
.walk-card-title a { color: inherit; text-decoration: none; }
.walk-card-title a:hover { color: var(--sea); }
.walk-card-summary { color: var(--ink-soft); margin: 0; }
.facts-inline { display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; margin: .2rem 0 0; font-size: .92rem; }
.facts-inline div { display: flex; flex-direction: column; }
.facts-inline dt { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-soft); }
.facts-inline dd { margin: 0; font-weight: 600; }
.walk-card-link { margin: auto 0 0; font-weight: 700; }
.walk-card-link a { text-decoration: none; }

/* Pages */
.page-head { padding-top: 2.5rem; }
.page-title { font-size: clamp(2rem, 5vw, 3.4rem); }
.page-intro { font-size: 1.15rem; color: var(--ink-soft); max-width: 60ch; }
.page-sub { font-weight: 600; margin-bottom: .3rem; }
.walks-layout { display: grid; gap: 2rem; grid-template-columns: 280px 1fr; padding-bottom: 3rem; }
@media (max-width: 820px) { .walks-layout { grid-template-columns: 1fr; } }
.filters { border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem; align-self: start; position: sticky; top: 1rem; background: #fff; }
.filters-title { font-size: 1.2rem; }
.field { margin-bottom: .9rem; }
.field label, .field legend { display: block; font-weight: 600; margin-bottom: .3rem; font-size: .95rem; }
.field input:not([type=checkbox]):not([type=radio]), .field select, .field textarea { width: 100%; padding: .6rem .7rem; border: 1px solid #bbb; border-radius: 10px; font: inherit; background: #fff; color: var(--ink); }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--sea); }
.field [aria-invalid=true] { border-color: var(--terra); }
.field-error { color: #9b2f12; font-size: .92rem; margin: .3rem 0 0; font-weight: 600; }
.field-row { display: grid; gap: 0 1rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.radio, .check { display: flex; gap: .5rem; align-items: flex-start; font-weight: 400 !important; margin-bottom: .4rem; }
.radio input, .check input { margin-top: .3rem; }
.hint { font-size: .9rem; color: var(--ink-soft); margin: .3rem 0 0; }
.opt { font-weight: 400; color: var(--ink-soft); }
.filters-actions { display: flex; gap: .5rem; flex-wrap: wrap; margin: 0; }
.results-count { font-weight: 700; color: var(--ink-soft); }
.empty { padding: 2rem; border: 1px dashed var(--line); border-radius: var(--radius); text-align: center; }
.notice { background: var(--sand-soft); border-left: 4px solid var(--sand); padding: .7rem 1rem; border-radius: 0 10px 10px 0; }
.notice-soft { border-color: var(--sea); }
.form-error { border-color: #9b2f12; }
.trap { position: absolute; left: -9999px; top: -9999px; }

/* Walk page */
.walk-page { padding-bottom: 5rem; }
.crumbs { padding-top: 1.5rem; font-weight: 600; }
.crumbs a { text-decoration: none; }
.walk-head { padding: 1rem 0 1.5rem; }
.crumbs a { text-decoration: none; font-weight: 600; }
.walk-meta { display: flex; gap: .4rem; flex-wrap: wrap; }
.walk-title { font-size: clamp(2rem, 5.5vw, 3.8rem); max-width: 18ch; }
.walk-summary { font-size: 1.25rem; color: var(--ink-soft); max-width: 60ch; }
.walk-layout { display: grid; gap: 2.5rem; grid-template-columns: minmax(0, 1fr) 340px; align-items: start; }
@media (max-width: 900px) { .walk-layout { grid-template-columns: 1fr; } }
.walk-figure { margin: 0 0 2rem; border-radius: var(--radius); overflow: hidden; box-shadow: 0 18px 40px -28px rgba(7, 77, 144, .45); }
.walk-figure-art { background: var(--sand-soft); box-shadow: none; }
.walk-figure img { width: 100%; }
.walk-figure figcaption { font-size: .85rem; color: var(--ink-soft); padding: .4rem 0; }
.walk-section { margin-bottom: 2.2rem; }
.walk-section h2 { font-size: 1.7rem; color: var(--sea-deep); }
.stops { list-style: none; margin: 0; padding: 0; position: relative; }
.stops::before { content: ""; position: absolute; left: 1.15rem; top: .8rem; bottom: .8rem; border-left: 2px dashed var(--sand); }
.stops li { display: flex; gap: 1rem; align-items: baseline; padding: .45rem 0; position: relative; font-size: 1.1rem; }
.stop-num { flex: 0 0 2.4rem; height: 2.4rem; display: grid; place-items: center; background: var(--sand-soft); border: 2px solid var(--sand); color: var(--sea-deep); border-radius: 50%; font-weight: 700; font-size: .9rem; font-family: var(--font-display); }
.prose { max-width: var(--measure); }
.prose ul { padding-left: 1.2rem; }
.gallery { list-style: none; margin: 0; padding: 0; display: grid; gap: .8rem; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
.gallery img { border-radius: 10px; width: 100%; }
.faq details { border-top: 1px solid var(--line); padding: .6rem 0; }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; font-weight: 600; font-size: 1.05rem; padding: .3rem 0; color: var(--sea-deep); }
.faq .prose { padding-top: .5rem; }
.walk-side { position: sticky; top: 1rem; display: grid; gap: 1rem; }
.facts-card { border: 1px solid #ead9b8; border-radius: var(--radius); padding: 1.3rem; background: var(--sand-soft); }
.dates-card { border: 1px solid #cfdeee; border-radius: var(--radius); padding: 1.3rem; background: var(--sea-soft); }
.facts-card h2, .dates-card h2 { font-size: 1.15rem; color: var(--sea-deep); margin-bottom: .9rem; }
.facts-card .facts dt { color: var(--sand-deep); }
.facts { margin: 0; display: grid; gap: .7rem; }
.facts dt { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-soft); }
.facts dd { margin: 0; font-weight: 600; }
.facts-note { font-size: .92rem; color: var(--ink-soft); margin: 1rem 0 0; }
.dates { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.dates li { display: flex; flex-direction: column; gap: .3rem; border-top: 1px solid #d5e2ef; padding-top: .6rem; }
.dates .btn-small { align-self: start; }
.dates .btn-small:not(.btn-primary) { background: #fff; }
.dates .btn-small.btn-primary { box-shadow: 0 6px 14px -8px rgba(7, 77, 144, .6); }
.dates time { font-weight: 700; }
.date-note { font-size: .9rem; color: var(--ink-soft); }
.sticky-cta { display: none; }
@media (max-width: 900px) {
  .walk-side { position: static; }
  .sticky-cta { display: block; position: fixed; left: 0; right: 0; bottom: 0; padding: .6rem 1rem calc(.6rem + env(safe-area-inset-bottom)); background: rgba(255,255,255,.96); border-top: 1px solid var(--line); z-index: 30; }
}

/* Info */
.info-layout { display: grid; gap: 2.5rem; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); padding-bottom: 3rem; }
@media (max-width: 820px) { .info-layout { grid-template-columns: 1fr; } }
.info-faq h2 { font-size: 1.7rem; }

/* Footer */
.site-foot { background: var(--navy); color: #d8e0ea; margin-top: 3rem; padding: 2.5rem 1rem; }
.site-foot a { color: #fff; }
.foot-grid { max-width: 1148px; margin: 0 auto; display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); font-size: .95rem; }
.foot-brand { font-family: var(--font-display); font-size: 1.6rem; color: #fff; margin-bottom: .4rem; }
.foot-title { font-weight: 700; color: #fff; }
.foot-langs { list-style: none; margin: 0; padding: 0; columns: 2; }
.foot-langs a[aria-current] { font-weight: 700; text-decoration: none; }
.request-form { padding-bottom: 3rem; }
@media (max-width: 600px) {
  .site-head { gap: .6rem; }
  .brand img { width: 150px; }
  .site-nav { font-size: .95rem; gap: .2rem .8rem; }
  body { font-size: 1rem; }
}

/* Fotografie: posizioni fisse e copertine. Senza foto resta la grafica disegnata. */
/* Hero A, cinematografica: la foto riempie tutta la larghezza, il testo sta sempre sopra.
   Il velo blu (colore del logo) e' una sfumatura, non un filtro: scuro dove c'e' il testo,
   quasi trasparente dall'altra parte, cosi' la foto resta naturale. */
.hero.has-media { max-width: none; margin: 0; padding: 0; min-height: clamp(520px, 84vh, 860px); display: grid; align-items: end; color: #fff; isolation: isolate; background: var(--navy); }
.hero.has-media .hero-media { position: absolute; inset: 0; margin: 0; z-index: -2; }
.hero.has-media .hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: center; aspect-ratio: auto; border-radius: 0; box-shadow: none; }
.hero.has-media .hero-media::before { display: none; }
.hero.has-media::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(100deg, rgba(5, 45, 90, .9) 0%, rgba(5, 45, 90, .62) 42%, rgba(5, 45, 90, .12) 78%, rgba(5, 45, 90, 0) 100%),
              linear-gradient(0deg, rgba(5, 30, 60, .55) 0%, rgba(5, 30, 60, 0) 45%); }
.hero.has-media .hero-copy { width: 100%; max-width: 1180px; margin: 0 auto; padding: clamp(6rem, 14vh, 9rem) 1rem clamp(2.5rem, 7vh, 4.5rem); text-shadow: 0 1px 18px rgba(0, 20, 45, .35); }
.hero.has-media .hero-copy > * { max-width: 640px; }
.hero.has-media .kicker { color: var(--sand); }
.hero.has-media .hero-title { color: #fff; max-width: 15ch; }
.hero.has-media .hero-intro { color: rgba(255, 255, 255, .9); }
.hero.has-media .btn-primary { background: #fff; border-color: #fff; color: var(--sea-deep); text-shadow: none; }
.hero.has-media .btn-primary:hover { background: var(--sand-soft); border-color: var(--sand-soft); color: var(--sea-deep); }
.hero.has-media .btn-ghost { background: transparent; border-color: rgba(255, 255, 255, .7); color: #fff; text-shadow: none; }
.hero.has-media .btn-ghost:hover { background: rgba(255, 255, 255, .14); color: #fff; }
.hero.has-media .hero-media figcaption { position: absolute; right: .8rem; bottom: .6rem; margin: 0; font-size: .72rem; color: rgba(255, 255, 255, .85); text-shadow: 0 1px 6px rgba(0, 0, 0, .6); max-width: 60%; text-align: right; }
.hero.has-media .hero-media figcaption a { color: inherit; }
@media (max-width: 900px) {
  .hero.has-media { min-height: max(560px, 88svh); }
  .hero.has-media::before { background: linear-gradient(0deg, rgba(5, 45, 90, .94) 0%, rgba(5, 45, 90, .78) 45%, rgba(5, 45, 90, .25) 75%, rgba(5, 45, 90, .1) 100%); }
  .hero.has-media .hero-copy { padding-top: 40svh; padding-bottom: 2.2rem; }
  .hero.has-media .hero-media figcaption { top: .6rem; bottom: auto; }
}
figure figcaption { font-size: .82rem; color: var(--ink-soft); padding: .4rem 0 0; }
figure figcaption a { color: inherit; }
.page-figure { margin: 1.2rem 0 0; }
.page-figure img { width: 100%; height: auto; border-radius: var(--radius); object-fit: cover; aspect-ratio: 21 / 9; max-height: 440px; }
.page-figure.orient-portrait img, .page-figure.orient-square img { aspect-ratio: 16 / 9; }
.locals.has-media { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: clamp(1.2rem, 3vw, 2.5rem); align-items: center; }
.locals-media { margin: 0; }
.locals-media img { width: 100%; height: auto; border-radius: calc(var(--radius) - 4px); object-fit: cover; aspect-ratio: 4 / 3; }
@media (max-width: 760px) { .locals.has-media { grid-template-columns: 1fr; } }
.walk-card-img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius) var(--radius) 0 0; }
.gallery-figure { margin: 0; }
.gallery-figure img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: calc(var(--radius) - 4px); }

/* Piè di pagina completo: colonne, riga legale, loghi su fondo scuro */
.foot-links { list-style: none; margin: 0; padding: 0; }
.foot-links li { margin: 0 0 .35rem; }
.foot-legal { max-width: 1148px; margin: 2rem auto 0; padding-top: 1.4rem; border-top: 1px solid rgba(255, 255, 255, .18); display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; flex-wrap: wrap; font-size: .88rem; color: #cfcfcf; }
.foot-company { display: flex; align-items: center; gap: .9rem; margin: 0; max-width: 72ch; }
.foot-logo { width: 104px; height: auto; flex: none; }
.foot-powered { margin: 0; }
.foot-powered a { display: inline-flex; align-items: center; gap: .45rem; text-decoration: none; color: #cfcfcf; }
.foot-powered a:hover { color: #fff; }
.foot-powered img { width: 68px; height: auto; opacity: .95; }
.table-wrap { overflow-x: auto; margin: 1rem 0 1.5rem; }
.data-table { border-collapse: collapse; width: 100%; font-size: .95rem; }
.data-table caption { text-align: left; font-weight: 600; padding: 0 0 .5rem; }
.data-table th, .data-table td { text-align: left; padding: .55rem .6rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.data-table th { background: var(--paper-warm); }
.consent-form fieldset { border: 1px solid var(--line); border-radius: var(--radius); padding: .4rem 1rem; margin: 0 0 1rem; }
.consent-row { padding: .8rem 0; border-bottom: 1px solid var(--line); }
.consent-row:last-child { border-bottom: 0; }
.consent-row p { margin: .3rem 0 0 1.6rem; color: var(--ink-soft); font-size: .95rem; }
.consent-row.is-off { opacity: .7; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Iscrizioni */
.date-seats { font-size: .82rem; color: var(--sea-deep); background: #fff; border: 1px solid #cfdeee; border-radius: 999px; padding: .1rem .6rem; align-self: start; }
.date-seats.is-few { border-color: var(--sand); color: var(--sand-deep); }
.date-seats.is-full { border-color: var(--line); color: var(--ink-soft); }
.seats-left { font-weight: 600; color: var(--sea-deep); }
.label-like { font-weight: 600; margin: 0 0 .3rem; }
.total { font-family: var(--font-display); font-size: 1.8rem; margin: 0; color: var(--sea-deep); }
.total small { font-family: var(--font-body); font-size: .85rem; color: var(--ink-soft); font-weight: 400; }
.terms { border: 1px solid var(--line); border-radius: 10px; padding: .6rem .9rem; margin: 0 0 1rem; }
.terms summary { cursor: pointer; font-weight: 600; }
.facts-wide { display: grid; gap: .6rem 1.5rem; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); margin: 1.2rem 0; }
.facts-wide dt { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-soft); }
.facts-wide dd { margin: 0; font-weight: 600; }

/* ---- Restyling 17/11/2026 ---- */
.site-head { padding-top: 1rem; padding-bottom: 1rem; gap: 1.4rem; }
.site-nav { gap: .25rem 1.6rem; }
.nav-cta { padding: .6rem 1.15rem !important; }
.hero-title { font-weight: 800; letter-spacing: -.035em; }
.section-title { letter-spacing: -.03em; }
.center { text-align: center; }
.section-lead { font-size: 1.15rem; color: var(--ink-soft); max-width: 58ch; margin: 0 auto 2rem; }

/* Home: i tre modi di partecipare su fondo colorato leggero */
.type-tile { border: 0; background: var(--sea-soft); padding: 1.6rem 1.5rem 1.4rem; }
.type-tile.price-free { background: #eaf4ee; }
.type-tile.price-donation { background: var(--sand-soft); }
.type-tile.price-fixed { background: var(--sea-soft); }
.type-tile h3 { color: var(--navy); }
.type-tile p { color: #3d4650; }
.price-free .type-num { color: #b9d6c4; } .price-donation .type-num { color: #e6cc9c; } .price-fixed .type-num { color: #b5cbe2; }
.type-num { font-weight: 800; }

/* Home: e tu che tipo sei? */
.kinds-intro { text-align: center; margin: 3.5rem auto 1.6rem; }
.kinds-intro .section-title { margin-bottom: .4rem; }
.kinds-intro .section-lead { margin-bottom: 0; }
.kinds { display: grid; gap: 1.2rem; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.kind-card { position: relative; border-radius: calc(var(--radius) + 4px); padding: clamp(1.5rem, 3vw, 2.2rem); display: flex; flex-direction: column; gap: .6rem; overflow: hidden; isolation: isolate; }
.kind-card::after { content: ""; position: absolute; right: -60px; bottom: -60px; width: 220px; height: 220px; border-radius: 50%; z-index: -1; opacity: .18; background: currentColor; }
.kind-public { background: var(--sea); color: #fff; }
.kind-private { background: var(--sand-soft); color: var(--navy); border: 1px solid #ead9b8; }
.kind-private::after { color: var(--sand); opacity: .35; }
.kind-kicker { text-transform: uppercase; letter-spacing: .14em; font-size: .78rem; font-weight: 700; margin: 0; opacity: .85; }
.kind-public .kind-kicker { color: var(--sand); opacity: 1; }
.kind-private .kind-kicker { color: var(--sand-deep); opacity: 1; }
.kind-card h3 { font-size: clamp(1.6rem, 3vw, 2.1rem); margin: 0; color: inherit; }
.kind-card p { margin: 0; font-size: 1.05rem; max-width: 42ch; }
.kind-public p { color: rgba(255,255,255,.9); }
.kind-card .btn { align-self: flex-start; margin-top: .8rem; }
.kind-public .btn { background: #fff; color: var(--sea-deep); border-color: #fff; }
.kind-public .btn:hover { background: var(--sand-soft); border-color: var(--sand-soft); }
.kind-icon { width: 2.6rem; height: 2.6rem; margin-bottom: .3rem; }

/* Home: come funziona, tutto al centro */
.band-how .section-title { text-align: center; margin-bottom: 1.8rem; }
.steps { text-align: center; }
.steps li { display: flex; flex-direction: column; align-items: center; }
.steps p { max-width: 34ch; color: var(--ink-soft); }

/* Schede passeggiata */
.walk-card { border: 1px solid #e3e8ef; border-radius: calc(var(--radius) + 2px); box-shadow: 0 1px 2px rgba(10,43,77,.05); }
.walk-card:hover { box-shadow: 0 18px 36px -14px rgba(7,77,144,.28); border-color: #cfdeee; }
.walk-card-media { position: relative; }
.walk-card-date { margin: 0; position: absolute; left: .8rem; top: .8rem; display: flex; align-items: stretch; background: #fff; border-radius: 12px; overflow: hidden; box-shadow: 0 6px 18px rgba(0,0,0,.18); color: var(--navy); line-height: 1; text-decoration: none; }
.walk-card-date .d-day { display: grid; place-items: center; text-align: center; padding: .45rem .65rem; background: var(--sea); color: #fff; min-width: 3.3rem; }
.walk-card-date .d-num { display: block; font-size: 1.65rem; font-weight: 800; letter-spacing: -.03em; }
.walk-card-date .d-mon { display: block; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; margin-top: .15rem; }
.walk-card-date .d-rest { display: flex; flex-direction: column; justify-content: center; padding: .4rem .7rem; gap: .25rem; }
.walk-card-date .d-wd { font-size: .74rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--sand-deep); }
.walk-card-date .d-time { font-size: 1.05rem; font-weight: 800; }
.walk-card-date.is-request .d-rest { padding: .55rem .8rem; }
.walk-card-date.is-request .d-time { font-size: .9rem; }
.walk-card-body { padding: 1.1rem 1.2rem 1.25rem; gap: .65rem; }
.walk-card-title { font-size: 1.4rem; letter-spacing: -.02em; }
.walk-card-summary { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.badge { border-radius: 999px; padding: .28rem .7rem; letter-spacing: .05em; }
.badge-public { background: var(--sea); color: #fff; }
.badge-private { background: var(--olive); color: #fff; }
.badge-price { background: var(--sand); color: var(--navy); }
.walk-card .price-free .badge-price, .walk-card.price-free .badge-price { background: #2f7d4f; color: #fff; }
.card-facts { display: flex; flex-wrap: wrap; gap: .5rem; margin: .1rem 0 0; padding: 0; list-style: none; }
.card-fact { display: inline-flex; align-items: center; gap: .45rem; border-radius: 10px; padding: .4rem .7rem .4rem .5rem; font-size: .9rem; line-height: 1.2; }
.card-fact svg { width: 1.15rem; height: 1.15rem; flex: none; }
.card-fact small { display: block; font-size: .66rem; text-transform: uppercase; letter-spacing: .09em; font-weight: 700; opacity: .75; }
.card-fact strong { font-weight: 700; }
.fact-duration { background: var(--sand-soft); color: #6f4e1a; }
.fact-lang { background: var(--sea-soft); color: var(--sea-deep); }
.walk-card-link { margin-top: auto; padding-top: .4rem; }
.walk-card-link .btn { display: flex; justify-content: center; align-items: center; gap: .5rem; width: 100%; }
.walk-card-link .btn span { transition: transform .2s; }
.walk-card:hover .walk-card-link .btn span { transform: translateX(3px); }

/* Piè di pagina: logo Netboom più grande */
.foot-powered img { width: 120px; }
.foot-powered a { gap: .6rem; }

/* Passeggiata privata su misura */
.priv-hero { position: relative; background: var(--navy); color: #fff; overflow: hidden; isolation: isolate; }
.priv-hero-inner { max-width: 1180px; margin: 0 auto; padding: clamp(3rem, 9vw, 6.5rem) 1rem clamp(2.5rem, 7vw, 5rem); }
.priv-hero-inner > * { max-width: 660px; }
.priv-hero .kicker { color: var(--sand); }
.priv-hero h1 { font-size: clamp(2.4rem, 6.5vw, 4.6rem); font-weight: 800; letter-spacing: -.035em; line-height: 1; margin-bottom: 1rem; color: #fff; }
.priv-hero .hero-intro { color: rgba(255,255,255,.9); }
.priv-hero .btn-primary { background: #fff; color: var(--sea-deep); border-color: #fff; }
.priv-hero .btn-primary:hover { background: var(--sand-soft); border-color: var(--sand-soft); }
.priv-hero .btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.6); }
.priv-hero .btn-ghost:hover { background: rgba(255,255,255,.12); color: #fff; }
.priv-hero-media { position: absolute; inset: 0; margin: 0; z-index: -2; }
.priv-hero-media img { width: 100%; height: 100%; object-fit: cover; }
.priv-hero-media figcaption { position: absolute; right: .8rem; bottom: .6rem; color: rgba(255,255,255,.85); font-size: .72rem; padding: 0; }
.priv-hero.has-media::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(100deg, rgba(5,45,90,.92) 0%, rgba(5,45,90,.7) 45%, rgba(5,45,90,.2) 100%); }
.priv-hero:not(.has-media)::after { content: ""; position: absolute; z-index: -1; right: -8%; top: -30%; width: 55%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle at 30% 30%, rgba(218,176,121,.45), rgba(218,176,121,0) 65%); }
.priv-occasions { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; padding: 0; margin: 1.6rem 0 0; }
.priv-occasions li { border: 1px solid rgba(255,255,255,.35); border-radius: 999px; padding: .35rem .85rem; font-size: .92rem; color: rgba(255,255,255,.92); }
.themes { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.theme-card { border-radius: var(--radius); padding: 1.3rem 1.3rem 1.2rem; background: #fff; border: 1px solid #e3e8ef; display: flex; flex-direction: column; gap: .35rem; transition: transform .2s, box-shadow .2s; }
.theme-card:hover { transform: translateY(-2px); box-shadow: 0 14px 28px -16px rgba(7,77,144,.35); }
.theme-card h3 { font-size: 1.25rem; margin: .3rem 0 0; color: var(--navy); }
.theme-card p { margin: 0; color: var(--ink-soft); font-size: .98rem; }
.theme-ico { width: 2.8rem; height: 2.8rem; border-radius: 12px; display: grid; place-items: center; }
.theme-ico svg { width: 1.5rem; height: 1.5rem; }
.th-storia .theme-ico { background: var(--sea-soft); color: var(--sea); }
.th-mistero .theme-ico { background: #ece9f5; color: #4b3b8f; }
.th-cucina .theme-ico { background: #fbeae2; color: #b04a1c; }
.th-fede .theme-ico { background: var(--sand-soft); color: var(--sand-deep); }
.th-mare .theme-ico { background: #e3f3f6; color: #0f6f86; }
.th-arte .theme-ico { background: #f6e8ef; color: #9a2f5e; }
.th-sport .theme-ico { background: #eaf4ee; color: #2f7d4f; }
.th-famiglie .theme-ico { background: #fdf3d8; color: #8a6400; }
.th-altro .theme-ico { background: #eef0f3; color: var(--navy); }
.band-soft { background: var(--paper-warm); max-width: none; }
.band-soft > * { max-width: 1148px; margin-left: auto; margin-right: auto; }
.priv-form-wrap { max-width: 860px; margin: 0 auto; padding: 0 1rem 4rem; }
.priv-form { background: #fff; border: 1px solid #e3e8ef; border-radius: calc(var(--radius) + 6px); padding: clamp(1.3rem, 4vw, 2.6rem); box-shadow: 0 30px 60px -40px rgba(7,77,144,.45); }
.priv-form h2 { font-size: clamp(1.6rem, 3.5vw, 2.2rem); margin-bottom: .3rem; }
.priv-form .form-sub { color: var(--ink-soft); margin-bottom: 1.6rem; }
.priv-form fieldset { border: 0; padding: 0; margin: 0 0 1.3rem; }
.priv-form legend { font-weight: 700; margin-bottom: .6rem; font-size: 1rem; }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip span { display: inline-flex; align-items: center; gap: .4rem; border: 1.5px solid #cdd6e1; border-radius: 999px; padding: .5rem .95rem; font-weight: 600; font-size: .95rem; background: #fff; cursor: pointer; transition: background .15s, border-color .15s, color .15s; }
.chip span svg { width: 1.05rem; height: 1.05rem; }
.chip input:hover + span { border-color: var(--sea); }
.chip input:checked + span { background: var(--sea); border-color: var(--sea); color: #fff; }
.chip input:focus-visible + span { outline: 3px solid var(--sun); outline-offset: 2px; }
.priv-form .field-row { gap: 0 1.2rem; }
.priv-form .btn-large { width: 100%; }
.priv-free { text-align: center; color: var(--ink-soft); font-size: .95rem; margin: .8rem 0 0; }
.priv-from { background: var(--sea-soft); border-radius: 10px; padding: .6rem .9rem; font-weight: 600; color: var(--sea-deep); }
.priv-steps { margin-top: .5rem; }
.request-switch { background: var(--sand-soft); border-radius: 12px; padding: .9rem 1.1rem; display: flex; flex-wrap: wrap; gap: .4rem 1rem; align-items: center; justify-content: space-between; }
.request-switch p { margin: 0; font-weight: 600; }

/* Chi siamo */
.about-hero { max-width: 1180px; margin: 0 auto; padding: clamp(2.5rem, 7vw, 5rem) 1rem 1rem; display: grid; gap: 2rem; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); align-items: end; }
.about-hero h1 { font-size: clamp(2.3rem, 6vw, 4.2rem); font-weight: 800; letter-spacing: -.035em; line-height: 1.02; }
.about-badge { background: var(--navy); color: #fff; border-radius: calc(var(--radius) + 4px); padding: 1.5rem; }
.about-badge p { margin: 0 0 .4rem; }
.about-badge strong { color: var(--sand); }
.about-badge a { color: #fff; }
@media (max-width: 820px) { .about-hero { grid-template-columns: 1fr; } }
.about-figure { max-width: 1148px; margin: 1rem auto 0; padding: 0 1rem; }
.about-figure img { width: 100%; border-radius: var(--radius); aspect-ratio: 21 / 9; object-fit: cover; }
.about-story { display: grid; gap: 2.5rem; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; }
@media (max-width: 820px) { .about-story { grid-template-columns: 1fr; } }
.about-story .prose p { font-size: 1.1rem; }
.about-quote { font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 700; letter-spacing: -.02em; line-height: 1.2; color: var(--sea-deep); border-left: 5px solid var(--sand); padding-left: 1.2rem; margin: 0; }
.services { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.services li { background: #fff; border-radius: var(--radius); padding: 1.2rem 1.3rem; border: 1px solid #e3e8ef; }
.services h3 { font-size: 1.12rem; color: var(--navy); margin-bottom: .3rem; }
.services p { margin: 0; color: var(--ink-soft); font-size: .97rem; }
.groups { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.groups li { background: var(--sea-soft); color: var(--sea-deep); border-radius: 999px; padding: .45rem .95rem; font-weight: 600; font-size: .95rem; }
.values { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; gap: .8rem; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.values li { text-align: center; padding: 1.1rem .8rem; border-radius: var(--radius); background: var(--navy); color: #fff; font-weight: 700; }
.values li:nth-child(2n) { background: var(--sea); }
.about-cta { text-align: center; padding: clamp(2.5rem, 6vw, 4rem) 1rem; }
.about-cta p { font-size: clamp(1.4rem, 3.4vw, 2.2rem); font-weight: 800; letter-spacing: -.03em; color: var(--navy); margin-bottom: 1.2rem; }
.about-cta .btns { display: flex; gap: .7rem; justify-content: center; flex-wrap: wrap; }
.request-switch { margin: 0 0 1.4rem; }

/* Fasce colorate (Come funziona, Che cosa facciamo, Come nasce la tua passeggiata): tutto centrato */
.band.band-how, .band.band-soft { text-align: center; }
.band.band-how > .section-title, .band.band-soft > .section-title, .band-how h2, .band-soft h2 { text-align: center; margin-left: auto; margin-right: auto; }
.band-how .steps, .band-soft .steps { justify-items: center; }
.band-how .steps li, .band-soft .steps li { align-items: center; text-align: center; }
.band-how .steps p, .band-soft .steps p { margin-left: auto; margin-right: auto; }
.band-soft .services li { text-align: center; }
.band-soft .services p { margin-left: auto; margin-right: auto; max-width: 36ch; }
/* Chi siamo, gruppi: titolo, testo e etichette al centro */
.about-groups { text-align: center; }
.about-groups .section-lead { margin-left: auto; margin-right: auto; }
.about-groups .groups { justify-content: center; }

/* Passeggiata privata: temi e "come nasce" affiancati, modulo in tre blocchi colorati */
.priv-intro { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); gap: clamp(1.2rem, 3vw, 2.2rem); align-items: start; padding-bottom: 1rem; }
@media (max-width: 900px) { .priv-intro { grid-template-columns: 1fr; } }
.priv-themes .section-title { margin-bottom: .3rem; }
.priv-themes .section-lead { margin: 0 0 1.2rem; max-width: 60ch; }
.priv-themes .themes { grid-template-columns: repeat(auto-fill, minmax(165px, 1fr)); gap: .7rem; }
.priv-themes .theme-card { padding: .95rem .95rem .9rem; gap: .25rem; aspect-ratio: auto; }
.priv-themes .theme-card h3 { font-size: 1.02rem; margin-top: .2rem; }
.priv-themes .theme-card p { font-size: .84rem; line-height: 1.4; }
.priv-themes .theme-ico { width: 2.3rem; height: 2.3rem; border-radius: 10px; }
.priv-themes .theme-ico svg { width: 1.25rem; height: 1.25rem; }
.priv-how { background: var(--navy); color: #fff; border-radius: calc(var(--radius) + 6px); padding: clamp(1.3rem, 3vw, 1.9rem); position: sticky; top: 1rem; }
.priv-how h2 { color: #fff; font-size: clamp(1.35rem, 2.6vw, 1.75rem); margin-bottom: 1.2rem; }
.priv-how-steps { list-style: none; margin: 0 0 1.4rem; padding: 0; display: grid; gap: 1.1rem; }
.priv-how-steps li { display: flex; gap: .9rem; align-items: flex-start; }
.priv-how-steps .step-num { flex: none; margin: 0; width: 2.3rem; height: 2.3rem; font-size: 1.05rem; background: var(--sand); color: var(--navy); }
.priv-how-steps h3 { color: #fff; font-size: 1.08rem; margin: .25rem 0 .2rem; }
.priv-how-steps p { margin: 0; color: rgba(255,255,255,.82); font-size: .95rem; }
.priv-how .btn-primary { background: #fff; color: var(--sea-deep); border-color: #fff; }
.priv-how .btn-primary:hover { background: var(--sand-soft); border-color: var(--sand-soft); }
@media (max-width: 900px) { .priv-how { position: static; } }

.priv-form-wrap { padding-top: 1.5rem; }
.priv-form { border: 0; box-shadow: 0 24px 60px -36px rgba(7,77,144,.45); padding: clamp(1.1rem, 3.5vw, 2.2rem); }
.priv-form > h2 { text-align: center; color: var(--sea-deep); font-size: clamp(1.7rem, 4vw, 2.5rem); font-weight: 800; letter-spacing: -.03em; }
.priv-form > .form-sub { text-align: center; max-width: 52ch; margin-left: auto; margin-right: auto; }
.form-block { border-radius: 16px; padding: clamp(1rem, 2.5vw, 1.4rem); margin: 0 0 1rem; }
.form-block.fb-sea { background: var(--sea-soft); }
.form-block.fb-sand { background: var(--sand-soft); }
.form-block.fb-green { background: #eaf4ee; }
.form-block-title { display: flex; align-items: center; gap: .65rem; font-weight: 800; font-size: 1.15rem; letter-spacing: -.01em; color: var(--navy); margin: 0 0 1rem; }
.form-block-num { display: inline-grid; place-items: center; width: 2rem; height: 2rem; border-radius: 50%; color: #fff; font-size: .95rem; flex: none; }
.fb-sea .form-block-num { background: var(--sea); }
.fb-sand .form-block-num { background: var(--sand-deep); }
.fb-green .form-block-num { background: #2f7d4f; }
.form-block fieldset { margin-bottom: 1rem; }
.form-block fieldset:last-child, .form-block .field:last-child { margin-bottom: 0; }
.form-block legend, .form-block label { color: #2a3440; }
.form-block .field input:not([type=checkbox]):not([type=radio]), .form-block .field select, .form-block .field textarea { border-color: #c9d3de; background: #fff; }
.form-block .chip span { background: rgba(255,255,255,.85); border-color: rgba(10,43,77,.18); }
.fb-sand .chip input:checked + span { background: var(--sand-deep); border-color: var(--sand-deep); }
.priv-form .field label.check { margin-top: .5rem; }
.priv-form .btn-large { font-size: 1.15rem; padding: 1.05rem 1.8rem; }

/* Griglie dentro le fasce a tutta larghezza: centrate nella pagina (una regola margin:0 più vecchia le teneva a sinistra) */
.band-how > .steps, .band-soft > .steps, .band-soft > .services { max-width: 1148px; margin-left: auto; margin-right: auto; }
.band-soft > .services { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); } /* sei riquadri: 3 + 3, mai 4 + 2 */

/* Hero: la foto dall'alto si muove piano, come una ripresa da drone (effetto Ken Burns).
   Solo CSS, nessun video da scaricare. Chi nel sistema ha chiesto "riduci movimento" vede la foto ferma
   (regola prefers-reduced-motion in cima al file). */
.hero.has-media .hero-media { overflow: hidden; }
.hero.has-media .hero-media img { transform-origin: 60% 45%; animation: drone 32s ease-in-out infinite alternate; will-change: transform; backface-visibility: hidden; }
@keyframes drone {
  0%   { transform: scale(1.04) translate3d(0, 0, 0); }
  50%  { transform: scale(1.12) translate3d(-1.8%, -1.2%, 0); }
  100% { transform: scale(1.18) translate3d(-3.2%, 0.8%, 0); }
}
/* un riflesso di luce che attraversa lentamente la scena, appena percettibile */
.hero.has-media::after { content: ""; position: absolute; inset: -20% -40%; z-index: -1; pointer-events: none;
  background: linear-gradient(115deg, rgba(255,255,255,0) 40%, rgba(255,236,200,.10) 50%, rgba(255,255,255,0) 60%);
  animation: luce 18s ease-in-out infinite; }
@keyframes luce { 0% { transform: translateX(-30%); } 100% { transform: translateX(30%); } }
@media (prefers-reduced-motion: reduce) { .hero.has-media .hero-media img { transform: scale(1.04); } .hero.has-media::after { display: none; } }

/* Home, "Se sei di Bari": niente riquadro, sfondo bianco, titolo e testo al centro */
.band-locals .locals, .band-locals .locals > * { transform: none; }
.band-locals .locals { border: 0; background: transparent; border-radius: 0; padding: clamp(1rem, 3vw, 2rem) 0; text-align: center; }
.band-locals .locals-copy { max-width: 760px; margin: 0 auto; }
.band-locals .locals-text { margin: 0 auto; }
.band-locals .locals.has-media { grid-template-columns: 1fr; justify-items: center; }
.band-locals .locals-media { max-width: 760px; width: 100%; }

/* ---- Hero della home "Tour da Bari" (partials/hero_tour.php + hero-tour.js). Prefisso ht- per non toccare il resto. ---- */
.ht { --ht-walk: #e6bd84; --ht-bus: #6fd0e8; --ht-train: #ff9070; --ht-solo: #c0adff; --ht-night: #071d36;
  position: relative; overflow: hidden; color: #fff; isolation: isolate;
  background: radial-gradient(900px 600px at 72% 48%, rgba(20,96,170,.55), rgba(20,96,170,0) 70%), linear-gradient(160deg, #071d36 0%, #0c3157 100%); }
.ht-bg { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; opacity: .34; mix-blend-mode: luminosity; z-index: -2; pointer-events: none; animation: ht-drone 34s ease-in-out infinite alternate; }
.ht::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: linear-gradient(90deg, rgba(7,29,54,.82) 0%, rgba(7,29,54,.35) 45%, rgba(7,29,54,.15) 100%); }
.ht-in { max-width: 1280px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(1rem, 3vw, 2.5rem); align-items: center; padding: clamp(1.5rem, 4vw, 3rem) 1rem; }
.ht-copy { min-width: 0; }
.ht-kicker { text-transform: uppercase; letter-spacing: .16em; font-size: clamp(.95rem, 1.3vw, 1.1rem); font-weight: 800; color: var(--ht-walk); margin: 0 0 1rem; }
.ht-title { font-size: clamp(2.5rem, 6vw, 4.8rem); line-height: .96; letter-spacing: -.04em; font-weight: 900; margin: 0 0 1.1rem; color: #fff; text-wrap: balance; }
.ht-title em { font-style: normal; color: var(--ht-walk); }
.ht-lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: rgba(255,255,255,.82); max-width: 46ch; margin: 0 0 1.5rem; }
.ht-cta { display: flex; gap: .7rem; flex-wrap: wrap; margin: 0 0 1.6rem; }
.ht .ht-btn { background: #fff; color: var(--sea-deep); border-color: #fff; padding: .85rem 1.4rem; }
.ht .ht-btn:hover { background: var(--sand-soft); border-color: var(--sand-soft); color: var(--sea-deep); }
.ht .ht-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.55); }
.ht .ht-ghost:hover { background: rgba(255,255,255,.12); color: #fff; border-color: #fff; }
.ht-legend { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.ht-legend li { display: inline-flex; align-items: center; gap: .45rem; font-size: .88rem; font-weight: 700; padding: .35rem .75rem; border-radius: 999px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16); }
.ht-legend i { width: 1.6rem; height: 0; border-top: 3px dashed currentColor; display: inline-block; }
.ht-legend .lg-walk i { color: var(--ht-walk); border-top-style: dotted; } .ht-legend .lg-bus i { color: var(--ht-bus); } .ht-legend .lg-train i { color: var(--ht-train); } .ht-legend .lg-solo i { color: var(--ht-solo); border-top-style: dotted; }
.ht-map { min-width: 0; }
.ht-map svg { display: block; width: 100%; height: auto; overflow: visible; font-family: var(--font-body); }
.ht-credit { position: absolute; right: .8rem; bottom: .4rem; margin: 0; font-size: .72rem; color: rgba(255,255,255,.6); }
.ht-ring { fill: none; stroke: rgba(255,255,255,.1); stroke-width: 1.5; stroke-dasharray: 3 9; }
.ht-cap { fill: rgba(255,255,255,.55); font-size: 13px; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; text-anchor: middle; }
.ht-cap-walk { fill: var(--ht-walk); }
.ht-sea { fill: rgba(255,255,255,.34); font-size: 16px; font-weight: 600; font-style: italic; letter-spacing: .12em; }
.ht-wave { fill: none; stroke: rgba(255,255,255,.2); stroke-width: 2; stroke-linecap: round; animation: ht-drift 7s ease-in-out infinite alternate; }
.ht-w2 { animation-delay: -2s; }
.ht-route { fill: none; stroke-width: 4; stroke-linecap: round; }
.ht-route.walk { stroke: var(--ht-walk); stroke-dasharray: 1 11; opacity: .5; }
.ht-route.bus { stroke: var(--ht-bus); stroke-dasharray: 14 10; animation: ht-flow 1.4s linear infinite; }
.ht-route.train { stroke: var(--ht-train); stroke-dasharray: 22 8 4 8; animation: ht-flow2 1.6s linear infinite; }
.ht-route.solo { stroke: var(--ht-solo); stroke-dasharray: 2 10; }
.ht-reveal { fill: none; stroke: #fff; stroke-width: 18; stroke-linecap: round; stroke-dasharray: 1 1; stroke-dashoffset: 1; animation: ht-draw .9s cubic-bezier(.3,.7,.2,1) forwards; }
.ht-rv-walk { animation-duration: 1.5s; animation-delay: .5s; } .ht-rv-a { animation-duration: 1s; animation-delay: .9s; } .ht-rv-b { animation-duration: 1s; animation-delay: 1.1s; } .ht-rv-gui { animation-duration: .8s; animation-delay: 1.3s; }
.ht-poi { transition: opacity .3s ease, transform .3s ease; transform-box: fill-box; transform-origin: center; }
.ht-poi.out { opacity: 0; transform: scale(.4); }
.ht-body { transform-box: fill-box; transform-origin: center; animation: ht-pop .6s cubic-bezier(.2,1.7,.4,1) both; }
.ht-disc { fill: #fff; stroke-width: 5; }
.ht-halo { fill: none; stroke-width: 2; opacity: 0; transform-box: fill-box; transform-origin: center; animation: ht-halo 3.4s ease-out infinite; }
.m-walk .ht-disc, .m-walk .ht-halo { stroke: var(--ht-walk); } .m-bus .ht-disc, .m-bus .ht-halo { stroke: var(--ht-bus); } .m-train .ht-disc, .m-train .ht-halo { stroke: var(--ht-train); } .m-solo .ht-disc, .m-solo .ht-halo { stroke: var(--ht-solo); }
.ht-name { fill: #fff; font-size: 21px; font-weight: 800; text-anchor: middle; letter-spacing: -.01em; paint-order: stroke; stroke: rgba(7,29,54,.85); stroke-width: 5px; stroke-linejoin: round; }
.ht-mode { font-size: 12.5px; font-weight: 800; text-anchor: middle; letter-spacing: .16em; text-transform: uppercase; }
.m-walk .ht-mode { fill: var(--ht-walk); } .m-bus .ht-mode { fill: var(--ht-bus); } .m-train .ht-mode { fill: var(--ht-train); } .m-solo .ht-mode { fill: var(--ht-solo); }
.ht-hub { transform-box: fill-box; transform-origin: center; animation: ht-hub .8s cubic-bezier(.2,1.8,.35,1) both; }
.ht-shock { fill: none; stroke: #fff; stroke-width: 2.5; transform-box: fill-box; transform-origin: center; opacity: 0; animation: ht-shock 3.6s cubic-bezier(.1,.6,.3,1) infinite; }
.ht-s2 { animation-delay: 1.2s; } .ht-s3 { animation-delay: 2.4s; }
.ht-blast { fill: none; stroke: var(--ht-walk); stroke-width: 10; transform-box: fill-box; transform-origin: center; opacity: 0; animation: ht-blast 1.1s cubic-bezier(.1,.7,.2,1) .25s both; }
.ht-flash { opacity: 0; animation: ht-flash 1s ease-out .2s both; pointer-events: none; }
.ht-step { fill: var(--ht-walk); opacity: 0; animation: ht-step 9s linear infinite; }
.ht-signal circle, #ht-signal circle { fill: var(--ht-solo); }
.ht-arrow { animation: ht-down 1.2s ease-in-out infinite; }
@keyframes ht-drone { from { transform: scale(1.03); } to { transform: scale(1.14) translate(-2%, -1%); } }
@keyframes ht-draw { to { stroke-dashoffset: 0; } }
@keyframes ht-pop { from { transform: scale(0); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@keyframes ht-hub { 0% { transform: scale(0) rotate(-12deg); opacity: 0; } 100% { transform: scale(1) rotate(0); opacity: 1; } }
@keyframes ht-shock { 0% { transform: scale(.35); opacity: .7; } 70%, 100% { transform: scale(3.1); opacity: 0; } }
@keyframes ht-blast { 0% { transform: scale(.2); opacity: 1; } 100% { transform: scale(7); opacity: 0; } }
@keyframes ht-flash { 0% { opacity: .85; } 100% { opacity: 0; } }
@keyframes ht-halo { 0% { transform: scale(1); opacity: .7; } 60%, 100% { transform: scale(1.7); opacity: 0; } }
@keyframes ht-step { 0% { opacity: 0; } 2% { opacity: 1; } 26% { opacity: 1; } 34%, 100% { opacity: 0; } }
@keyframes ht-flow { to { stroke-dashoffset: -24; } }
@keyframes ht-flow2 { to { stroke-dashoffset: -42; } }
@keyframes ht-down { 0%, 100% { transform: translateY(-2px); } 50% { transform: translateY(3px); } }
@keyframes ht-drift { to { transform: translateX(14px); } }
@media (max-width: 860px) {
  .ht-in { grid-template-columns: 1fr; }
  .ht-name { font-size: 25px; } .ht-mode { font-size: 15.5px; } .ht-cap, .ht-sea { font-size: 17px; }
}
@media (prefers-reduced-motion: reduce) {
  .ht-reveal { animation: none; stroke-dashoffset: 0; } .ht-body, .ht-hub { animation: none; } .ht-poi { transition: none; }
  .ht-shock, .ht-blast, .ht-flash, .ht-halo, .ht-route, .ht-arrow, .ht-wave, .ht-bg { animation: none; } .ht-step { animation: none; opacity: .7; }
}
/* Hero su telefono: prima l'animazione, sotto solo sopratitolo e titolo */
@media (max-width: 860px) {
  .ht-in { gap: .4rem; padding-top: 1rem; padding-bottom: 1.6rem; }
  .ht-map { order: -1; }
  .ht-copy { text-align: center; }
  .ht-lead, .ht-cta, .ht-legend { display: none; }
  .ht-kicker { margin-bottom: .5rem; }
  .ht-title { margin: 0; }
}

/* Menu: su computer la riga di sempre (la lingua torna in fondo); su telefono i tre trattini */
.site-head .lang-switch { order: 3; }
.nav-toggle { display: none; }
@media (max-width: 860px) {
  .site-head { flex-wrap: wrap; gap: .6rem; padding-top: .7rem; padding-bottom: .7rem; }
  .site-head .lang-switch { order: 0; margin-left: auto; }
  .lang-switch .lang-name { display: none; }
  .js .nav-toggle { display: inline-grid; place-items: center; width: 2.9rem; height: 2.9rem; border-radius: 12px; border: 1.5px solid var(--line); background: #fff; color: var(--navy); cursor: pointer; padding: 0; }
  .nav-bars { display: grid; gap: 5px; width: 22px; }
  .nav-bars span { display: block; height: 2.5px; border-radius: 2px; background: currentColor; transition: transform .25s ease, opacity .2s ease; }
  .nav-toggle[aria-expanded="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }
  .nav-toggle[aria-expanded="true"] .nav-bars span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .nav-bars span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] .nav-bars span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }
  .site-nav { order: 5; width: 100%; margin-left: 0; }
  .js .site-nav { display: none; }
  .js .site-nav.open { display: flex; flex-direction: column; align-items: stretch; gap: 0; padding: .4rem 0 .8rem; border-top: 1px solid var(--line); animation: nav-in .22s ease-out; }
  .js .site-nav.open a { font-size: 1.15rem; padding: .85rem .2rem; border-bottom: 1px solid var(--line); }
  .js .site-nav.open a:not(.nav-cta):hover { border-color: var(--line); }
  .js .site-nav.open .nav-cta { margin-top: .9rem; text-align: center; padding: .9rem 1rem !important; border-radius: 999px; }
}
@keyframes nav-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* ---- Condivisione (passeggiata e "Ci sarò") ---- */
.walk-share-jump { margin: 0 0 .6rem; }
.walk-share-jump a { display: inline-flex; align-items: center; gap: .35rem; font-weight: 700; font-size: .95rem; text-decoration: none; color: var(--sea); background: var(--sea-soft); padding: .35rem .85rem; border-radius: 999px; }
.walk-share-jump a::before { content: "↗"; }
.walk-share-jump a:hover { background: var(--sand-soft); color: var(--sea-deep); }
.share { position: relative; border-radius: var(--radius); padding: 1.3rem; background: linear-gradient(150deg, var(--navy) 0%, var(--sea) 100%); color: #fff; overflow: hidden; display: grid; gap: 1rem; scroll-margin-top: 1rem; }
.share::after { content: ""; position: absolute; right: -60px; bottom: -60px; width: 160px; height: 160px; border-radius: 50%; border: 3px dashed rgba(218,176,121,.45); pointer-events: none; }
.share-h { font-size: 1.2rem; color: #fff; margin: 0 0 .35rem; }
.share-lead { margin: 0 0 1rem; color: rgba(255,255,255,.85); font-size: .97rem; }
.share-story { display: flex; align-items: center; gap: .8rem; width: 100%; text-align: left; border: 0; cursor: pointer; font: inherit; color: var(--navy); background: var(--sand); padding: .8rem 1rem; border-radius: 16px; margin-bottom: .9rem; box-shadow: 0 8px 22px rgba(0,0,0,.22); transition: transform .15s; }
.share-story:hover { transform: translateY(-2px); }
.share-story svg { width: 30px; height: 30px; flex: none; }
.share-story span { display: grid; line-height: 1.2; }
.share-story strong { font-size: 1.08rem; }
.share-story small { font-size: .85rem; opacity: .8; font-weight: 600; }
.share-row { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.share-btn { display: inline-flex; align-items: center; gap: .45rem; border: 0; cursor: pointer; font: inherit; font-weight: 700; font-size: .92rem; text-decoration: none; color: #fff; background: rgba(255,255,255,.14); padding: .5rem .85rem; border-radius: 999px; transition: background .15s, transform .15s; }
.share-btn svg { width: 18px; height: 18px; flex: none; }
.share-btn:hover { color: #fff; transform: translateY(-1px); background: rgba(255,255,255,.26); }
.share-btn.sb-wa { background: #1f9d55; }
.share-btn.sb-fb { background: #1877f2; }
.share-btn.sb-tg { background: #229ed9; }
.share-btn.sb-wa:hover, .share-btn.sb-fb:hover, .share-btn.sb-tg:hover { filter: brightness(1.1); }
.share-toast { margin: .8rem 0 0; font-size: .9rem; font-weight: 600; color: var(--sand); min-height: 0; opacity: 0; transition: opacity .2s; }
.share-toast.on { opacity: 1; }
.share-preview { margin: 0; justify-self: center; width: 150px; cursor: pointer; transform: rotate(3deg); transition: transform .2s; }
.share-preview:hover { transform: rotate(0) scale(1.03); }
.share-preview img { display: block; width: 100%; height: auto; border-radius: 14px; border: 4px solid #fff; box-shadow: 0 14px 30px rgba(0,0,0,.35); }
.share-going { margin: 1.8rem 0 1.2rem; text-align: left; }
.share-going .share-h { font-size: 1.45rem; }
@media (min-width: 640px) {
  .share-going.has-story { grid-template-columns: 1fr 180px; align-items: center; }
  .share-going .share-preview { width: 180px; }
}
@media (prefers-reduced-motion: reduce) { .share-story, .share-btn, .share-preview { transition: none; } }
.share [hidden] { display: none !important; }

/* ---- Condivisione, seconda parte: video, invito personale, cartolina ---- */
.share-note { margin: -.5rem 0 1rem; font-size: .85rem; color: rgba(255,255,255,.7); }
.share-video { display: flex; align-items: center; gap: .7rem; width: 100%; text-align: left; border: 2px solid var(--sand); cursor: pointer; font: inherit; font-weight: 700; color: #fff; background: transparent; padding: .65rem 1rem; border-radius: 16px; margin: -.3rem 0 .9rem; transition: background .15s; }
.share-video svg { width: 26px; height: 26px; flex: none; color: var(--sand); }
.share-video:hover { background: rgba(255,255,255,.08); }
.share-video.is-busy { opacity: .75; cursor: progress; }
.share-video.is-busy svg { animation: share-blink 1s infinite; }
.share-video.is-ready { background: var(--sand); color: var(--navy); }
.share-video.is-ready svg { color: var(--navy); }
@keyframes share-blink { 50% { opacity: .2; } }
.share-done { margin: 1.6rem 0; }
.share-done .share-h { font-size: 1.45rem; }
@media (min-width: 640px) {
  .share-done.has-story { grid-template-columns: 1fr 180px; align-items: center; }
  .share-done .share-preview { width: 180px; }
}
.invite { max-width: 1148px; margin: 1rem auto 0; display: grid; grid-template-columns: auto 1fr auto; gap: .9rem 1.1rem; align-items: center; padding: 1rem 1.2rem; border-radius: var(--radius); background: var(--sand-soft); border: 2px dashed var(--sand); }
.invite-av { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; background: var(--sea); color: #fff; font-weight: 800; font-size: 1.5rem; }
.invite-txt p { margin: 0; }
.invite-h { font-weight: 800; font-size: 1.2rem; color: var(--sea-deep); }
.invite-date { margin: 0; display: grid; text-align: center; background: #fff; border-radius: 12px; padding: .35rem .8rem; line-height: 1.05; box-shadow: 0 4px 12px rgba(0,0,0,.06); }
.invite-date strong { font-size: 1.6rem; color: var(--sea); }
.invite-date span { font-size: .8rem; font-weight: 700; text-transform: uppercase; color: var(--sand-deep); }
.invite-btn { grid-column: 1 / -1; justify-self: start; }
@media (max-width: 600px) { .invite { margin-left: 1rem; margin-right: 1rem; grid-template-columns: auto 1fr; } .invite-date { display: none; } .invite-btn { justify-self: stretch; text-align: center; } }
@media (min-width: 900px) { .invite { grid-template-columns: auto 1fr auto auto; } .invite-btn { grid-column: auto; } }
.postcard { padding-top: 2rem; padding-bottom: 2rem; }
.postcard-stops { list-style: none; margin: 1rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: .45rem; counter-reset: st; }
.postcard-stops li { counter-increment: st; background: var(--sea-soft); color: var(--sea-deep); font-weight: 600; font-size: .95rem; padding: .35rem .8rem; border-radius: 999px; }
.postcard-stops li::before { content: counter(st) ". "; color: var(--sand-deep); font-weight: 800; }

/* ---- Anteprima del video nella condivisione ---- */
.share-preview { position: relative; }
.share-preview canvas { display: block; width: 100%; height: auto; border-radius: 14px; border: 4px solid #fff; box-shadow: 0 14px 30px rgba(0,0,0,.35); }
.share-preview.is-video { transform: rotate(0); width: 190px; }
.share-preview.is-video::before { content: "▶ VIDEO"; position: absolute; top: 10px; left: 10px; z-index: 1; background: var(--sand); color: var(--navy); font-size: .7rem; font-weight: 800; letter-spacing: .04em; padding: .15rem .5rem; border-radius: 999px; }
.share-preview.is-rec::before { content: "● REC"; background: #d93025; color: #fff; animation: share-blink 1s infinite; }
.share-tabs { display: flex; justify-content: center; gap: .3rem; margin-top: .6rem; }
.share-tabs button { font: inherit; font-size: .82rem; font-weight: 700; cursor: pointer; border: 0; border-radius: 999px; padding: .3rem .8rem; color: #fff; background: rgba(255,255,255,.16); }
.share-tabs button[aria-pressed="true"] { background: #fff; color: var(--navy); }
@media (min-width: 640px) { .share-going.has-story .share-preview.is-video, .share-done.has-story .share-preview.is-video { width: 180px; } }

/* ---- «Invita un amico»: pulsante fisso e lampeggiante ---- */
.invite-fab { position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 40;
  display: inline-flex; align-items: center; gap: .55rem; min-height: 52px; padding: .75rem 1.15rem .75rem 1rem;
  border: 0; border-radius: 999px; background: var(--sand); color: var(--navy); font: 800 1rem/1.1 var(--font-body);
  text-decoration: none; cursor: pointer; box-shadow: 0 10px 28px rgba(10, 43, 77, .28);
  animation: fab-blink 1.4s ease-in-out infinite; transition: opacity .25s, transform .25s; }
.invite-fab[hidden] { display: none; }
.invite-fab svg { width: 22px; height: 22px; flex: none; }
.invite-fab::after { content: ""; position: absolute; inset: 0; border-radius: inherit; border: 3px solid var(--sand);
  animation: fab-ring 1.4s ease-out infinite; pointer-events: none; }
.invite-fab:hover { background: #e6c08d; }
.invite-fab:focus-visible { outline: 3px solid var(--sea); outline-offset: 3px; }
.invite-fab.is-away { opacity: 0; transform: translateY(20px); pointer-events: none; }
.invite-fab.is-gift { background: var(--sea); color: #fff; }
.invite-fab.is-gift::after { border-color: var(--sea); }
.fab-badge { display: inline-grid; place-items: center; min-width: 1.7rem; height: 1.7rem; padding: 0 .35rem; border-radius: 999px;
  background: var(--sand); color: var(--navy); font-weight: 900; }
@keyframes fab-blink { 0%, 100% { transform: scale(1); filter: brightness(1); } 50% { transform: scale(1.06); filter: brightness(1.12); } }
@keyframes fab-ring { 0% { transform: scale(1); opacity: .85; } 100% { transform: scale(1.45, 1.8); opacity: 0; } }
@media (max-width: 900px) { .invite-fab-lift { bottom: calc(5.2rem + env(safe-area-inset-bottom)); } }
@media (prefers-reduced-motion: reduce) { .invite-fab, .invite-fab::after { animation: none; } }

/* ---- «Ti tengo il posto»: biglietto con due talloncini ---- */
.seats { margin: 2rem 0; }
.seats-h { font-size: 1.5rem; margin: 0 0 .3rem; }
.seats-lead { color: var(--ink-soft); margin: 0 0 1rem; max-width: var(--measure); }
.seats-note { color: var(--ink-soft); font-size: .92rem; }
.seats-toast { min-height: 1.4em; color: var(--sea); font-weight: 700; opacity: 0; transition: opacity .2s; }
.seats-toast.on { opacity: 1; }
.ticket { display: grid; grid-template-columns: minmax(0, 1fr); border-radius: var(--radius); overflow: hidden;
  background: var(--sand-soft); border: 1px solid var(--sand); box-shadow: 0 6px 20px rgba(10, 43, 77, .08); }
.ticket-main { padding: 1.1rem 1.25rem; background: var(--navy); color: #fff; }
.ticket-brand { margin: 0; font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: var(--sand); font-weight: 800; }
.ticket-title { margin: .25rem 0 .2rem; font-size: 1.25rem; font-weight: 800; line-height: 1.2; }
.ticket-when, .ticket-where { margin: 0; opacity: .9; }
.ticket-stubs { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.stub { position: relative; padding: 1rem 1.1rem 1.1rem; border-top: 2px dashed var(--sand); min-width: 0; }
.ticket-stubs .stub + .stub { border-left: 2px dashed var(--sand); }
.stub-n { margin: 0 0 .4rem; font-size: .8rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--sand-deep); }
.stub-state { margin: 0 0 .4rem; font-weight: 700; }
.stub-ok { display: flex; align-items: center; gap: .4rem; color: var(--olive); font-size: 1.1rem; }
.stub-ok svg { width: 22px; height: 22px; flex: none; }
.stub-hint { margin: .45rem 0 0; font-size: .85rem; color: var(--ink-soft); }
.stub-tear { width: 100%; min-height: 48px; border: 0; border-radius: 10px; background: var(--sea); color: #fff;
  font: 800 1rem/1.2 var(--font-body); cursor: pointer; padding: .7rem .8rem; }
.stub-tear:hover { background: var(--sea-deep); }
.stub-tear:focus-visible, .stub-btn:focus-visible { outline: 3px solid var(--sand-deep); outline-offset: 2px; }
.stub-cd { margin: .2rem 0 .6rem; font-variant-numeric: tabular-nums; font-weight: 800; color: var(--sea); }
.stub-cd-big { font-size: 1.6rem; }
.stub-send { display: flex; flex-wrap: wrap; gap: .4rem; }
.stub-btn { display: inline-flex; align-items: center; gap: .35rem; min-height: 44px; padding: .5rem .8rem; border-radius: 999px;
  border: 1px solid var(--line); background: #fff; color: var(--ink); font: 700 .92rem/1 var(--font-body); text-decoration: none; cursor: pointer; }
.stub-btn[hidden] { display: none; }
.stub-wa { background: #1f7a4d; border-color: #1f7a4d; color: #fff; }
.stub-wa svg { width: 18px; height: 18px; }
.stub-link { margin: .5rem 0 0; font-size: .8rem; color: var(--ink-soft); overflow-wrap: anywhere; }
.stub-used .stub-state, .stub-free .stub-state { color: var(--ink-soft); font-weight: 600; }
@media (max-width: 560px) {
  .ticket-stubs { grid-template-columns: 1fr; }
  .ticket-stubs .stub + .stub { border-left: 0; }
}
.ticket-single .stub { border-top: 2px dashed var(--sand); }
.seat-for-you { padding: 1.5rem 1rem 3rem; }
.seat-cover { width: 100%; height: auto; max-height: 280px; object-fit: cover; border-radius: var(--radius); margin-bottom: 1.2rem; }
.seat-take { margin-top: .4rem; }
.seat-form-note { margin-bottom: 1rem; }
.seat-for-you .ticket { margin-bottom: 1.2rem; }

/* ---- Condivisione, versione 2: il telefono in alto, un pulsante grande, gli altri modi in icone ---- */
.share { gap: 0; padding: 1.4rem 1.3rem 1.2rem; background:
    radial-gradient(circle at 50% 0%, rgba(218,176,121,.28), transparent 55%),
    linear-gradient(160deg, var(--navy) 0%, var(--sea) 100%); }
.share::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: radial-gradient(rgba(255,255,255,.18) 1px, transparent 1.5px); background-size: 18px 18px;
  -webkit-mask-image: linear-gradient(to bottom, #000, transparent 60%); mask-image: linear-gradient(to bottom, #000, transparent 60%); }
.share > * { position: relative; }
.share-preview { order: -1; width: 190px; margin: .4rem auto 1.4rem; animation: share-float 4.5s ease-in-out infinite; }
.share-preview:hover { transform: none; }
.share-preview img, .share-preview canvas { border-radius: 22px; border: 5px solid #fff;
  box-shadow: 0 0 0 8px rgba(218,176,121,.22), 0 24px 44px rgba(0,0,0,.45); }
.share-preview::after { content: attr(data-hint); position: absolute; left: 50%; bottom: -14px; transform: translateX(-50%);
  white-space: nowrap; background: var(--sand); color: var(--navy); font-size: .78rem; font-weight: 800; padding: .3rem .8rem;
  border-radius: 999px; box-shadow: 0 6px 16px rgba(0,0,0,.3); }
.share-preview.is-video::after, .share-preview.is-rec::after { content: none; }
.share-preview.is-video { width: 200px; }
.share-preview figcaption.share-tabs { margin-top: 1rem; }
@keyframes share-float { 0%, 100% { transform: rotate(3deg) translateY(0); } 50% { transform: rotate(-1deg) translateY(-8px); } }
.share-body { text-align: center; }
.share-h { font-size: 1.35rem; line-height: 1.2; }
.share-lead { margin: 0 auto 1.1rem; max-width: 34ch; }
.share-note { margin: -.4rem auto 1rem; max-width: 36ch; }
.share-story { justify-content: center; text-align: left; padding: 1rem 1.1rem; border-radius: 18px; font-size: 1.05rem;
  background: linear-gradient(135deg, #ecc794, var(--sand)); box-shadow: 0 10px 26px rgba(0,0,0,.28), inset 0 -3px 0 rgba(0,0,0,.08); }
.share-video { justify-content: center; border-width: 1.5px; border-color: rgba(218,176,121,.7); padding: .6rem 1rem; margin: -.2rem 0 1rem; font-size: .95rem; }
.share-or { display: flex; align-items: center; gap: .7rem; margin: .4rem 0 .8rem; font-size: .75rem; font-weight: 800;
  letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.65); }
.share-or::before, .share-or::after { content: ""; flex: 1; height: 1px; background: rgba(255,255,255,.2); }
.share-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(58px, 1fr)); gap: .6rem .3rem; justify-items: center; }
.share-row li { display: contents; }
.share-row li[hidden] { display: none; }
.share-btn { flex-direction: column; gap: .4rem; background: none; padding: 0; border-radius: 0; font-size: .74rem; font-weight: 700;
  line-height: 1.15; color: rgba(255,255,255,.9); text-align: center; max-width: 76px; }
.share-btn:hover { background: none; transform: translateY(-2px); }
.share-btn svg { box-sizing: content-box; width: 24px; height: 24px; padding: 15px; border-radius: 50%; background: rgba(255,255,255,.14);
  box-shadow: 0 6px 14px rgba(0,0,0,.22); transition: transform .15s; }
.share-btn.sb-wa, .share-btn.sb-fb, .share-btn.sb-tg { background: none; }
.share-btn.sb-wa svg { background: #25d366; color: #fff; }
.share-btn.sb-fb svg { background: #1877f2; }
.share-btn.sb-tg svg { background: #229ed9; }
.share-btn.sb-more svg { background: #fff; color: var(--navy); }
.share-btn:hover svg { transform: scale(1.08); }
.share-btn:focus-visible { outline: none; }
.share-btn:focus-visible svg { outline: 3px solid var(--sand); outline-offset: 3px; }
.share-toast { text-align: center; }
@media (prefers-reduced-motion: reduce) { .share-preview { animation: none; } }
.share::after { right: auto; bottom: auto; left: -80px; top: 40%; }
.share-h { text-wrap: balance; }
.share-lead { text-wrap: pretty; }
.share-btn.sb-copy svg { background: #fff; color: var(--navy); }
.share::after { display: none; }

/* ---- Spiegazioni nel blocco di condivisione e riquadro per il computer ---- */
.share-explain { margin: -.45rem 0 1rem; font-size: .84rem; line-height: 1.4; color: rgba(255,255,255,.78); text-align: left; }
.share-explain[data-for="video"] { margin-top: -.6rem; }
.share-explain-links { margin: -.2rem 0 .9rem; text-align: center; }
.share-desk { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: .9rem; align-items: center; text-align: left;
  margin: 0 0 1.1rem; padding: .8rem; border-radius: 16px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18); }
.share-desk p { margin: 0; font-size: .86rem; line-height: 1.4; color: rgba(255,255,255,.88); }
.share-desk .share-desk-h { margin-bottom: .25rem; font-size: 1rem; font-weight: 800; color: var(--sand); }
.share-qr { background: #fff; border-radius: 10px; padding: 4px; line-height: 0; }
.share-qr svg { width: 100%; height: auto; display: block; }
.share-qr svg path { fill: var(--navy); }
.share.is-desk .share-preview::after { content: none; }

/* ---- Finestra «Invita un amico» / «Mandalo a un amico» ---- */
dialog.sheet { width: min(460px, calc(100vw - 32px)); max-height: calc(100vh - 32px); overflow: auto; margin: auto; padding: 1.4rem 1.3rem 1.2rem;
  border: 0; border-radius: 20px; background: #fff; color: var(--ink); box-shadow: 0 30px 80px rgba(10,43,77,.35); }
dialog.sheet::backdrop { background: rgba(10,43,77,.55); }
@media (max-width: 600px) {
  dialog.sheet { width: 100vw; max-width: 100vw; margin: auto 0 0; border-radius: 22px 22px 0 0; padding-bottom: calc(1.2rem + env(safe-area-inset-bottom)); }
}
.sheet-close-form { position: absolute; top: .6rem; right: .6rem; margin: 0; }
.sheet-close { width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--paper-warm); color: var(--ink); font-size: 1.6rem; line-height: 1; cursor: pointer; }
.sheet-close:focus-visible { outline: 3px solid var(--sea); outline-offset: 2px; }
.sheet-h { margin: 0 2.8rem .5rem 0; font-size: 1.4rem; line-height: 1.2; }
.sheet-text { margin: 0 0 1rem; color: var(--ink-soft); line-height: 1.5; }
.sheet-label { margin: 0 0 .45rem; font-size: .75rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--sand-deep); }
.bubble { margin: 0 0 1.1rem; padding: .55rem .7rem .6rem; max-width: 92%; border-radius: 14px 14px 14px 4px; background: #e7f6dd; color: #1b2a12; font-size: .92rem; line-height: 1.4; box-shadow: 0 1px 0 rgba(0,0,0,.08); }
.bubble p { margin: 0; overflow-wrap: anywhere; }
.bubble-link { margin-top: .25rem !important; color: #1a6fb5; }
.bubble-img { display: block; width: 100%; height: auto; border-radius: 9px; margin-bottom: .5rem; }
.sheet-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem; }
.sheet-btn { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; min-height: 50px; padding: .6rem .8rem; border-radius: 14px;
  border: 1.5px solid var(--line); background: #fff; color: var(--ink); font: 700 1rem/1.1 var(--font-body); text-decoration: none; cursor: pointer; }
.sheet-btn svg { width: 20px; height: 20px; }
.sheet-btn:hover { border-color: var(--sea); }
.sheet-btn:focus-visible { outline: 3px solid var(--sea); outline-offset: 2px; }
.sheet-btn[hidden] { display: none; }
.sheet-btn.sb-whats { grid-column: 1 / -1; background: #1f9d55; border-color: #1f9d55; color: #fff; font-size: 1.05rem; }
.sheet-toast { min-height: 1.3em; margin: .6rem 0 0; color: var(--sea); font-weight: 700; text-align: center; }
.sheet-note { margin: .4rem 0 0; font-size: .85rem; color: var(--ink-soft); }

/* ---- Biglietto: come funziona, nome, pulsante di invio ---- */
.seats-how { counter-reset: how; list-style: none; margin: 0 0 1.2rem; padding: 0; display: grid; gap: .55rem; max-width: var(--measure); }
.seats-how li { counter-increment: how; position: relative; padding-left: 2.4rem; line-height: 1.45; }
.seats-how li::before { content: counter(how); position: absolute; left: 0; top: -.05rem; width: 1.7rem; height: 1.7rem; border-radius: 50%;
  display: grid; place-items: center; background: var(--sand); color: var(--navy); font-weight: 900; font-size: .9rem; }
.ticket-holder { margin: .55rem 0 0; display: inline-block; padding: .2rem .65rem; border-radius: 999px; background: rgba(218,176,121,.2); color: var(--sand); font-weight: 700; font-size: .9rem; }
.stub-send-btn { background: #1f9d55; }
.stub-send-btn:hover { background: #18834a; }
.share-desk { margin-top: .2rem; }
.share-desk .share-qr { align-self: start; }
.ticket-crowd { margin: .55rem 0 0; font-weight: 800; color: var(--sand); }
.ticket-holder + .ticket-crowd { margin-top: .4rem; }

/* Passeggiata privata: «Richiesta da …» sulla scheda e sulle card */
.walk-requested-by { display: flex; width: fit-content; max-width: 100%; align-items: center; gap: .4rem; margin: .35rem 0 .9rem; padding: .3rem .75rem; border-radius: 999px; background: var(--sand-soft, #f6efe4); color: var(--ink, #1d2433); font-weight: 600; font-size: .95rem; }
.walk-card .walk-requested-by { font-size: .82rem; margin: 0 0 .4rem; padding: .2rem .6rem; }

/* Notizie */
.post-grid { display: grid; gap: 1.2rem; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); }
.post-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius, 14px); overflow: hidden; }
.post-card-body { display: flex; flex-direction: column; gap: .5rem; padding: 1.1rem 1.2rem 1.3rem; flex: 1; }
.post-card-body > * { margin: 0; }
.post-date { color: var(--sand-deep); font-weight: 700; font-size: .85rem; letter-spacing: .06em; text-transform: uppercase; margin: 0; }
.post-card-title { font-size: 1.3rem; line-height: 1.25; text-wrap: balance; }
.post-card-title a { color: var(--ink); text-decoration: none; }
.post-card-title a:hover { color: var(--sea-deep); }
.post-card-summary { color: var(--ink-soft); }
.post-card-link { margin-top: auto; padding-top: .3rem; font-weight: 700; }
.post-page { max-width: 820px; margin: 0 auto; padding: 0 1rem 5rem; }
.post-head { display: grid; gap: .6rem; padding: 1.2rem 0 1.5rem; }
.post-head > * { margin: 0; }
.post-title { font-size: clamp(2rem, 5vw, 3.2rem); line-height: 1.1; text-wrap: balance; }
.post-summary { font-size: clamp(1.1rem, 2vw, 1.3rem); color: var(--ink-soft); }
.post-figure { margin: 0 0 2rem; }
.post-figure img { border-radius: var(--radius, 14px); }
.post-body p { font-size: 1.1rem; }
.post-walk { margin: 2.5rem 0 1.5rem; padding: 1.4rem 1.5rem; background: var(--sand-soft); border-radius: var(--radius, 14px); display: grid; gap: .5rem; justify-items: start; }
.post-walk > * { margin: 0; }
.post-walk-kicker { text-transform: uppercase; letter-spacing: .14em; font-size: .78rem; font-weight: 700; color: var(--sand-deep); }
.post-walk-title { font-size: 1.4rem; font-weight: 800; color: var(--navy); }
.post-more { margin-top: 1rem; }

/* Foto delle card sempre intere: la foto sta tutta nel riquadro, lo spazio che avanza è la stessa foto sfocata */
.photo-fit { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--sea-soft); border-radius: var(--radius) var(--radius) 0 0; }
.photo-fit img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; }
.photo-fit .photo-fit-bg { object-fit: cover; filter: blur(18px) saturate(1.1); transform: scale(1.15); opacity: .55; }
.photo-fit .walk-card-img, .photo-fit .post-card-img { object-fit: contain; aspect-ratio: auto; border-radius: 0; }
.post-card .photo-fit { border-radius: 0; }

/* Passeggiata privata: nastro inclinato nell'angolo in alto a destra della foto, esce dal bordo della card */
.walk-card-ribbon { position: absolute; top: 1.15rem; right: -2.75rem; width: 10rem; margin: 0; padding: .32rem 0; transform: rotate(45deg); text-align: center; background: var(--olive); color: #fff; font-size: .74rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; line-height: 1.2; box-shadow: 0 3px 10px rgba(0,0,0,.22); pointer-events: none; z-index: 2; animation: ribbon-blink 1.6s ease-in-out infinite; }
@keyframes ribbon-blink { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }

/* Biglietto (pagina personale da mostrare o stampare) */
.ticket-page { max-width: 760px; margin: 0 auto; padding: 1.5rem 1rem 4rem; display: grid; gap: 1.2rem; }
.ticket-page > * { margin: 0; }
.ticket-lead { color: var(--sand-deep); font-weight: 700; letter-spacing: .14em; text-transform: uppercase; font-size: .82rem; }
.ticket { background: #fff; border: 2px solid var(--navy); border-radius: 18px; overflow: hidden; box-shadow: 0 14px 40px rgba(10, 43, 77, .12); }
.ticket-top { background: var(--navy); color: #fff; padding: 1.2rem 1.4rem 1.3rem; display: grid; gap: .35rem; }
.ticket-top > * { margin: 0; }
.ticket-kicker { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #f1d9ae; }
.ticket-state { background: #2f7d4f; color: #fff; padding: .15rem .6rem; border-radius: 999px; letter-spacing: .08em; }
.ticket-pending .ticket-state, .ticket-waiting .ticket-state { background: var(--sun); color: #2b2100; }
.ticket-cancelled .ticket-state, .ticket-expired .ticket-state { background: var(--terra); }
.ticket-title { font-size: clamp(1.5rem, 4.5vw, 2.1rem); line-height: 1.15; color: #fff; text-wrap: balance; }
.ticket-when { font-size: 1.15rem; font-weight: 700; }
.ticket-body { display: grid; grid-template-columns: 1fr auto; gap: 1.2rem; padding: 1.3rem 1.4rem; align-items: start; }
.ticket-facts { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem 1.2rem; margin: 0; min-width: 0; }
.ticket-facts > div { min-width: 0; }
.ticket-facts .wide { grid-column: 1 / -1; }
.ticket-facts dt { font-size: .74rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); }
.ticket-facts dd { margin: .15rem 0 0; font-size: 1.05rem; font-weight: 600; color: var(--ink); overflow-wrap: anywhere; }
.ticket-map { font-size: .9rem; white-space: nowrap; }
.ticket-qr { width: 168px; padding: 6px; background: #fff; border: 1px solid var(--line); border-radius: 10px; }
.ticket-qr svg { display: block; width: 100%; height: auto; }
.ticket-qr svg .qr-dark, .ticket-qr svg path { fill: #0b1b2e; }
.ticket-stub { position: relative; border-top: 2px dashed var(--line); padding: 1.1rem 1.4rem 1.3rem; display: grid; grid-template-columns: auto 1fr; gap: .4rem 1.4rem; align-items: center; background: var(--sand-soft); }
.ticket-stub::before, .ticket-stub::after { content: ""; position: absolute; top: -13px; width: 24px; height: 24px; border-radius: 50%; background: var(--paper, #fff); border: 2px solid var(--navy); }
.ticket-stub::before { left: -14px; clip-path: inset(0 0 0 50%); }
.ticket-stub::after { right: -14px; clip-path: inset(0 50% 0 0); }
.ticket-stub p { margin: 0; }
.ticket-code-label { font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); }
.ticket-code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 1.9rem; font-weight: 800; letter-spacing: .22em; color: var(--navy); }
.ticket-show { color: var(--ink-soft); font-size: .95rem; }
.ticket-checked { background: #e6f2ea; color: #1f5c38; padding: .7rem 1rem; border-radius: 10px; font-weight: 600; }
.ticket-actions { display: flex; flex-wrap: wrap; gap: .7rem; }
.ticket-note { color: var(--ink-soft); }
.ticket-more { border-top: 1px solid var(--line); padding-top: 1.1rem; }
.ticket-more h2, .ticket-terms summary { font-size: 1.15rem; color: var(--navy); }
.ticket-terms summary { cursor: pointer; font-weight: 700; }
@media (max-width: 560px) {
  .ticket-body { grid-template-columns: 1fr; }
  .ticket-qr { width: 190px; justify-self: center; order: -1; }
  .ticket-stub { grid-template-columns: 1fr; }
}
@media print {
  .site-head, .site-foot, .demo-banner, .no-print, .ticket-actions, .skip, .invite-fab, .ticket-help { display: none !important; }
  body { background: #fff; }
  .ticket-page { padding: 0; max-width: none; }
  .ticket { box-shadow: none; break-inside: avoid; }
  .ticket-top { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .ticket-stub, .ticket-state { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .ticket-terms:not([open]) > *:not(summary) { display: block; }
}
.ticket-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.1rem 1.3rem; border: 2px solid var(--navy); border-radius: 14px; background: var(--sand-soft); margin: 1.2rem 0; }
.ticket-cta-text { margin: 0; min-width: 0; flex: 1 1 260px; }

/* Free tour: mancia libera alla guida */
.tip-note { margin: .9rem 0 0; padding: .8rem 1rem .8rem 2.6rem; position: relative; background: var(--sand-soft, #f8f1e3); border: 1px solid var(--sand, #DAB079); border-radius: 12px; color: #4a3613; font-size: .95rem; line-height: 1.45; }
.tip-note::before { content: "€"; position: absolute; left: .85rem; top: .72rem; width: 1.3rem; height: 1.3rem; border-radius: 50%; background: var(--sand, #DAB079); color: #fff; font-weight: 800; font-size: .8rem; display: grid; place-items: center; }
.walk-card-tip { margin: .35rem 0 0; font-size: .86rem; font-weight: 600; color: #7a5a1e; }
/* Minimo di partecipanti */
.date-min { display: inline-block; font-size: .8rem; font-weight: 700; padding: .12rem .5rem; border-radius: 999px; background: #fff4d6; color: #6b4e00; }
.date-min.is-reached { background: #e3f3e8; color: #1f6b3a; }
.min-notice { background: #fff4d6; border-color: #f0d68a; color: #4d3800; }

/* Fascia «prossime date» sotto l'hero: scorre da sola, si ferma col mouse, la card si ingrandisce */
.date-strip { background: var(--navy); color: #fff; padding: 1.4rem 0 .6rem; overflow: hidden; }
.strip-heading { margin: 0 auto .2rem; padding: 0 1rem; max-width: 1200px; font-size: .82rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--sand); }
.strip-viewport { overflow: hidden; padding: 1.1rem 0 1.3rem; -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); }
.strip-track { list-style: none; margin: 0; padding: 0; display: flex; width: max-content; animation: strip-scroll 40s linear infinite; }
.strip-track[data-n="1"]{animation-duration:5s}.strip-track[data-n="2"]{animation-duration:10s}.strip-track[data-n="3"]{animation-duration:15s}.strip-track[data-n="4"]{animation-duration:20s}.strip-track[data-n="5"]{animation-duration:25s}.strip-track[data-n="6"]{animation-duration:30s}.strip-track[data-n="7"]{animation-duration:35s}.strip-track[data-n="8"]{animation-duration:40s}.strip-track[data-n="9"]{animation-duration:45s}.strip-track[data-n="10"]{animation-duration:50s}.strip-track[data-n="11"]{animation-duration:55s}.strip-track[data-n="12"]{animation-duration:60s}.strip-track[data-n="13"]{animation-duration:65s}.strip-track[data-n="14"]{animation-duration:70s}.strip-track[data-n="15"]{animation-duration:75s}.strip-track[data-n="16"]{animation-duration:80s}.strip-track[data-n="17"]{animation-duration:85s}.strip-track[data-n="18"]{animation-duration:90s}.strip-track[data-n="19"]{animation-duration:95s}.strip-track[data-n="20"]{animation-duration:100s}.strip-track[data-n="21"]{animation-duration:105s}.strip-track[data-n="22"]{animation-duration:110s}.strip-track[data-n="23"]{animation-duration:115s}.strip-track[data-n="24"]{animation-duration:120s}.strip-track[data-n="25"]{animation-duration:125s}.strip-track[data-n="26"]{animation-duration:130s}.strip-track[data-n="27"]{animation-duration:135s}.strip-track[data-n="28"]{animation-duration:140s}.strip-track[data-n="29"]{animation-duration:145s}.strip-track[data-n="30"]{animation-duration:150s}.strip-track[data-n="31"]{animation-duration:155s}.strip-track[data-n="32"]{animation-duration:160s}.strip-track[data-n="33"]{animation-duration:165s}.strip-track[data-n="34"]{animation-duration:170s}.strip-track[data-n="35"]{animation-duration:175s}.strip-track[data-n="36"]{animation-duration:180s}.strip-track[data-n="37"]{animation-duration:185s}.strip-track[data-n="38"]{animation-duration:190s}.strip-track[data-n="39"]{animation-duration:195s}.strip-track[data-n="40"]{animation-duration:200s}
.strip-viewport:hover .strip-track, .strip-viewport:focus-within .strip-track, .strip-track:active { animation-play-state: paused; }
@keyframes strip-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.strip-card { position: relative; flex: none; width: 164px; margin-right: 14px; border-radius: 14px; overflow: hidden; background: #0d3560; box-shadow: 0 10px 26px -10px rgba(0,0,0,.6); transition: transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .35s; }
.strip-card:hover, .strip-card:focus-within { transform: scale(1.14); z-index: 2; box-shadow: 0 22px 44px -14px rgba(0,0,0,.75); }
.strip-link { display: block; position: relative; aspect-ratio: 4 / 5; color: #fff; text-decoration: none; }
.strip-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.strip-img-art svg { width: 100%; height: 100%; }
.strip-link::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,43,77,0) 30%, rgba(10,43,77,.55) 55%, rgba(10,43,77,.96) 100%); }
.strip-date { position: absolute; z-index: 1; top: .5rem; left: .5rem; display: grid; justify-items: center; min-width: 2.4rem; padding: .25rem .35rem .3rem; border-radius: 8px; background: var(--sand); color: var(--navy); line-height: 1; box-shadow: 0 4px 12px rgba(0,0,0,.25); }
.strip-date b { font-size: 1.1rem; font-weight: 800; }
.strip-date span { font-size: .62rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; margin-top: .15rem; }
.strip-text { position: absolute; z-index: 1; left: .65rem; right: .65rem; bottom: 2.95rem; display: grid; gap: .2rem; }
.strip-when { font-size: .7rem; font-weight: 600; text-transform: capitalize; color: #f1d9ae; }
.strip-title { font-size: .88rem; font-weight: 800; line-height: 1.2; text-shadow: 0 1px 8px rgba(0,0,0,.45); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.strip-cta { position: absolute; z-index: 1; left: .65rem; right: .65rem; bottom: .6rem; display: block; text-align: center; padding: .42rem .4rem; border-radius: 999px; background: #fff; color: var(--sea); font-weight: 800; font-size: .74rem; letter-spacing: .06em; text-transform: uppercase; text-decoration: none; transition: background .2s, color .2s; }
.strip-cta:hover, .strip-cta:focus-visible { background: var(--sand); color: var(--navy); }
@media (max-width: 600px) { .strip-card { width: 144px; margin-right: 12px; } .strip-title { font-size: .84rem; } }
@media (prefers-reduced-motion: reduce) {
  .strip-viewport { overflow-x: auto; -webkit-mask-image: none; mask-image: none; padding-inline: 1rem; }
  .strip-track { animation: none; }
  .strip-card[aria-hidden="true"] { display: none; }
  .strip-card:hover, .strip-card:focus-within { transform: none; }
}

/* Passeggiata privata su invito: tasto non cliccabile al posto della richiesta */
.btn-invite { background: var(--sand-soft); border-color: var(--sand-deep); color: var(--navy); cursor: default; letter-spacing: .02em; }
.btn-invite::before { content: ""; display: inline-block; width: .55em; height: .55em; margin-right: .5em; border-radius: 50%; background: var(--sand-deep); vertical-align: .08em; }
.invite-note { margin: .8rem 0 0; font-size: .95rem; color: var(--ink); text-align: center; }
.invite-other { margin: .5rem 0 0; font-size: .9rem; color: var(--ink-soft); text-align: center; }

/* Hero: tour fuori Bari e guide da scaricare non ancora disponibili. Grigi, con etichetta «Coming soon».
   Solo colori: l'animazione resta quella di hero-tour.js. */
.ht { --ht-soon: #8e959f; }
.ht .ht-route.bus, .ht .ht-route.train, .ht .ht-route.solo { stroke: var(--ht-soon); opacity: .35; }
/* Trasparenza sugli elementi interni, non su .ht-body (la sua animazione ht-pop riporta opacity a 1) né con filter:
   Safari su iPhone non applica i filtri CSS agli elementi SVG. Il grigio di filter resta solo un di più per chi lo supporta. */
.ht .ht-poi.m-bus > *, .ht .ht-poi.m-train > *, .ht .ht-poi.m-solo > * { filter: grayscale(1); }
.ht .ht-poi.m-bus .ht-disc, .ht .ht-poi.m-train .ht-disc, .ht .ht-poi.m-solo .ht-disc,
.ht .ht-poi.m-bus .ht-body > g, .ht .ht-poi.m-train .ht-body > g, .ht .ht-poi.m-solo .ht-body > g,
.ht .ht-poi.m-bus > text, .ht .ht-poi.m-train > text, .ht .ht-poi.m-solo > text { opacity: .35; }
.ht .m-bus .ht-disc, .ht .m-train .ht-disc, .ht .m-solo .ht-disc, .ht .m-bus .ht-halo, .ht .m-train .ht-halo, .ht .m-solo .ht-halo { stroke: var(--ht-soon); }
.ht .m-bus .ht-halo, .ht .m-train .ht-halo, .ht .m-solo .ht-halo { stroke-opacity: .35; }
.ht .m-bus .ht-mode, .ht .m-train .ht-mode, .ht .m-solo .ht-mode { fill: var(--ht-soon); }
/* mezzi in movimento: lo script anima l'attributo opacity del gruppo, quindi la trasparenza va sui pezzi interni */
.ht .ht-veh { filter: grayscale(1) brightness(.8); }
.ht .ht-veh .u { opacity: .35; }
.ht #ht-signal { opacity: .35; }
.ht #ht-signal circle { fill: var(--ht-soon); }
.ht .ht-cap-soon { fill: rgba(255,255,255,.4); }
.ht-badge { opacity: .65; }
.ht-badge rect { fill: var(--sand); }
.ht-badge text { fill: var(--navy); font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; text-anchor: middle; }
.ht-legend li.is-soon { color: rgba(255,255,255,.55); opacity: .5; }
.ht-legend li.is-soon i { color: var(--ht-soon); }
.ht-soon { font-size: .68rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--navy); background: var(--sand); border-radius: 999px; padding: .12rem .5rem; margin-left: .15rem; }
@media (max-width: 640px) { .ht-badge text { font-size: 14px; } }

/* ---- Chat del sito (partials/chat.php + chat.js): bolla in basso a sinistra, risposte dello staff da Telegram ---- */
.chat { position: fixed; left: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 45; font-family: var(--font-body); }
.chat-bubble { position: relative; display: inline-flex; align-items: center; gap: .55rem; min-height: 52px; padding: .7rem 1.15rem .7rem .95rem;
  border: 0; border-radius: 999px; background: var(--sea); color: #fff; font: 800 1rem/1.1 var(--font-body); cursor: pointer;
  box-shadow: 0 10px 28px rgba(10, 43, 77, .28); transition: transform .2s, background .2s; }
.chat-bubble:hover { background: var(--sea-deep); transform: translateY(-1px); }
.chat-bubble svg { width: 24px; height: 24px; flex: none; }
.chat.is-open .chat-bubble { display: none; }
.chat-dot { position: absolute; top: 6px; right: 8px; width: 12px; height: 12px; border-radius: 50%; background: var(--sand); border: 2px solid #fff; }
.chat-bubble.has-new { animation: chat-nudge 1.6s ease-in-out infinite; }
@keyframes chat-nudge { 0%, 100% { transform: none; } 10% { transform: rotate(-6deg); } 20% { transform: rotate(6deg); } 30% { transform: none; } }
.chat-panel { position: absolute; left: 0; bottom: 0; width: min(380px, calc(100vw - 32px)); height: min(560px, calc(100vh - 120px)); height: min(560px, calc(100dvh - 120px));
  display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: 20px; overflow: hidden;
  box-shadow: 0 24px 60px rgba(10, 43, 77, .3); }
.chat-panel[hidden] { display: none; }
.chat-head { display: flex; align-items: flex-start; justify-content: space-between; gap: .75rem; padding: 1rem 1rem .85rem 1.15rem; background: var(--navy); color: #fff; }
.chat-title { margin: 0; font-size: 1.1rem; font-weight: 800; color: #fff; }
.chat-sub { margin: .2rem 0 0; font-size: .85rem; line-height: 1.4; color: rgba(255,255,255,.78); }
.chat-close { flex: none; width: 36px; height: 36px; border: 0; border-radius: 50%; background: rgba(255,255,255,.12); color: #fff; font-size: 1.5rem; line-height: 1; cursor: pointer; }
.chat-close:hover { background: rgba(255,255,255,.22); }
.chat-log { flex: 1; margin: 0; padding: 1rem; list-style: none; overflow-y: auto; background: var(--paper-warm); display: flex; flex-direction: column; gap: .6rem; }
.chat-msg { max-width: 85%; }
.chat-msg p { margin: 0; padding: .6rem .85rem; border-radius: 16px; font-size: .95rem; line-height: 1.45; white-space: pre-wrap; overflow-wrap: anywhere; }
.chat-msg.from-staff { align-self: flex-start; }
.chat-msg.from-staff p { background: #fff; border: 1px solid var(--line); border-bottom-left-radius: 4px; color: var(--ink); }
.chat-msg.from-me { align-self: flex-end; text-align: right; }
.chat-msg.from-me p { background: var(--sea); color: #fff; border-bottom-right-radius: 4px; text-align: left; }
.chat-msg.is-pending p { opacity: .6; }
.chat-msg.is-failed p { background: #b3261e; }
.chat-meta { display: block; margin-top: .2rem; font-size: .72rem; color: var(--ink-soft); }
.chat-system { align-self: center; max-width: 92%; text-align: center; }
.chat-system p { padding: .35rem .7rem; font-size: .8rem; color: var(--ink-soft); background: var(--sand-soft); border-radius: 999px; }
.chat-system.is-failed p { color: #b3261e; }
.chat-email { padding: .7rem 1rem; border-top: 1px solid var(--line); background: var(--sea-soft); font-size: .85rem; }
.chat-email[hidden] { display: none; }
.chat-email label { display: block; margin-bottom: .4rem; color: var(--ink); }
.chat-email-row { display: flex; gap: .4rem; }
.chat-email-row input { flex: 1; min-width: 0; padding: .55rem .7rem; border: 1px solid var(--line); border-radius: 10px; font: inherit; }
.chat-email-row .btn { padding: .5rem .9rem; font-size: .85rem; }
.chat-form { display: flex; align-items: flex-end; gap: .5rem; padding: .7rem .7rem .7rem 1rem; border-top: 1px solid var(--line); background: #fff; }
.chat-form textarea { flex: 1; min-width: 0; max-height: 140px; padding: .65rem .8rem; border: 1px solid var(--line); border-radius: 14px; font: inherit; font-size: 1rem; line-height: 1.35; resize: none; }
.chat-form textarea:focus { outline: 2px solid var(--sea); outline-offset: 1px; border-color: transparent; }
.chat-send { flex: none; width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--sea); color: #fff; cursor: pointer; display: grid; place-items: center; }
.chat-send:hover { background: var(--sea-deep); }
.chat-send svg { width: 20px; height: 20px; }
.chat-note { margin: 0; padding: 0 1rem .7rem; font-size: .72rem; line-height: 1.4; color: var(--ink-soft); background: #fff; }
.chat-note a { color: var(--sea); }
@media (max-width: 900px) {
  .chat-bubble { padding: 0; width: 56px; height: 56px; justify-content: center; }
  .chat-bubble-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  body:has(.sticky-cta) .chat { bottom: calc(5.2rem + env(safe-area-inset-bottom)); }
  .chat.is-open { left: 8px; right: 8px; bottom: calc(8px + env(safe-area-inset-bottom)); }
  .chat.is-open .chat-panel { width: 100%; height: calc(100vh - 24px); height: calc(100dvh - 24px - env(safe-area-inset-bottom)); }
  .chat-form textarea { font-size: 16px; } /* sotto i 16px iPhone ingrandisce la pagina */
}
@media (prefers-reduced-motion: reduce) { .chat-bubble.has-new { animation: none; } }
/* bolla: un anello color sabbia si allarga piano tre volte all'apertura della pagina, poi resta ferma */
.chat-bubble::after { content: ""; position: absolute; inset: -4px; border-radius: inherit; border: 2px solid var(--sand); opacity: 0; pointer-events: none;
  animation: chat-ring 2.4s ease-out 1.5s 3; }
@keyframes chat-ring { 0% { opacity: .9; transform: scale(1); } 100% { opacity: 0; transform: scale(1.35); } }
.chat-bubble-label small { display: block; margin-top: .15rem; font-size: .72rem; font-weight: 600; opacity: .85; }
@media (prefers-reduced-motion: reduce) { .chat-bubble::after { animation: none; } }
.chat-bubble-label { text-align: left; }

/* ---- Bolla della chat, versione 2: il saluto cambia lingua da solo (Ciao, Hello, Hola, こんにちは...) ---- */
.chat .chat-bubble { gap: .75rem; min-height: 60px; padding: .45rem 1.25rem .45rem .45rem; background: linear-gradient(135deg, #f3d6a8 0%, var(--sand) 55%, #c99a5b 100%);
  color: var(--navy); box-shadow: 0 12px 30px rgba(10, 43, 77, .30), inset 0 1px 0 rgba(255,255,255,.5); }
.chat .chat-bubble:hover { background: linear-gradient(135deg, #f6dcb3 0%, #e0b884 55%, #c99a5b 100%); transform: translateY(-2px); }
.chat-hi { position: relative; flex: none; display: grid; place-items: center; min-width: 76px; height: 46px; padding: 0 .8rem; border-radius: 18px 18px 18px 6px;
  background: var(--navy); color: #fff; font-weight: 800; font-size: 1rem; line-height: 1.3em; overflow: hidden; box-shadow: 0 4px 10px rgba(10, 43, 77, .3); }
.chat .chat-bubble-label { display: flex; flex-direction: column; font-size: 1.02rem; line-height: 1.15; }
.chat .chat-bubble-label small { color: rgba(10, 43, 77, .78); }
.chat-live { position: absolute; top: 9px; left: 66px; width: 12px; height: 12px; border-radius: 50%; background: #2fbf71; border: 2px solid var(--sand); }
.chat-live::after { content: ""; position: absolute; inset: -2px; border-radius: 50%; border: 2px solid #2fbf71; animation: chat-live 2.4s ease-out infinite; }
@keyframes chat-live { from { transform: scale(1); opacity: .8; } to { transform: scale(2.2); opacity: 0; } }
/* l'anello della bolla torna ogni 20 secondi, una volta sola */
.chat .chat-bubble::after { border-color: var(--sand); animation: chat-ring-20 20s ease-out 1.5s infinite; }
@keyframes chat-ring-20 { 0% { opacity: .9; transform: scale(1); } 12% { opacity: 0; transform: scale(1.25); } 100% { opacity: 0; transform: scale(1.25); } }
.chat .chat-dot { top: -2px; right: -2px; background: #e5484d; }
@media (max-width: 900px) {
  /* telefono: solo la nuvoletta con il saluto, il testo resta per i lettori di schermo */
  .chat .chat-bubble { width: auto; height: auto; min-height: 0; padding: 5px; border-radius: 22px 22px 22px 8px; }
  .chat .chat-bubble-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .chat-hi { height: 48px; min-width: 84px; }
  .chat .chat-bubble .chat-live { display: block; top: -3px; left: auto; right: -3px; }
}
@media (prefers-reduced-motion: reduce) { .chat-hi-roll, .chat-live::after, .chat .chat-bubble::after { animation: none; } }

/* Saluto stile tabellone delle partenze (guidato da chat.js): una tessera per lettera, con la riga di divisione
   e un rapido «giro» a ogni cambio. Senza script o con «riduci movimento» resta il primo saluto, scritto normale. */
.chat-hi { width: auto; min-width: 0; padding: 0 .45rem; background: #071d36; }
.chat-hi-roll { position: relative; display: block; height: 1.3em; animation: none; }
.chat-hi-roll > span { display: block; white-space: nowrap; text-align: center; }
.chat-hi-roll > span:not(:first-child) { display: none; }
.chat-hi-roll.has-board { height: auto; }
.chat-hi-roll > .chat-board { display: flex; flex-direction: row; flex-wrap: nowrap; align-items: center; gap: 2px; }
.chat-board > .chat-flap { position: relative; display: block; flex: none; width: 1.02em; height: 1.45em; line-height: 1.45em; text-align: center; font-size: 14px; font-weight: 800; color: #fff;
  background: linear-gradient(180deg, #1a4a78 0%, #123c66 49.5%, #0c3157 50.5%, #0a2b4d 100%); border-radius: 3px; box-shadow: inset 0 -1px 0 rgba(255,255,255,.06), 0 1px 1px rgba(0,0,0,.4); }
.chat-board > .chat-flap::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: rgba(0,0,0,.55); }
.chat-board > .chat-flap.is-flip { animation: chat-flap .07s linear; }
@keyframes chat-flap { 0% { transform: scaleY(1); } 50% { transform: scaleY(.1); } 100% { transform: scaleY(1); } }
@media (max-width: 900px) { .chat-hi { width: auto; } }
.chat-board > .chat-flap { font-size: 15px; }
/* pallino verde «ci siamo» nell'angolo in alto a sinistra della bolla (il tabellone è più largo del vecchio saluto) */
.chat .chat-live, .chat .chat-bubble .chat-live { top: -3px; left: -3px; right: auto; }
.chat-board > .chat-flap { text-transform: uppercase; }
/* Telefono: niente tabellone, solo «Scrivici» e sotto, più piccolo, «nella tua lingua». Su computer resta il tabellone. */
.chat-bubble-mobile { display: none; }
@media (max-width: 900px) {
  .chat .chat-hi { display: none; }
  .chat .chat-bubble { padding: .5rem 1rem .5rem 1.1rem; min-height: 0; border-radius: 999px; }
  .chat .chat-bubble-mobile { display: flex; flex-direction: column; align-items: flex-start; font-size: .92rem; font-weight: 800; line-height: 1.1; color: var(--navy); text-align: left; }
  .chat .chat-bubble-mobile small { margin-top: .1rem; font-size: .7rem; font-weight: 600; color: rgba(10, 43, 77, .78); }
  .chat .chat-bubble .chat-live { top: -2px; left: -2px; }
}

/* Data e ora d'incontro: prima riga di «In breve», in evidenza; sulla privata su invito anche sotto il tasto */
.facts .fact-when dd { font-weight: 800; color: var(--navy); }
.invite-when { margin: .8rem 0 0; font-size: 1.02rem; font-weight: 800; color: var(--navy); text-align: center; }

/* Banner dei cookie (solo con Google Tag Manager configurato). Accetta e Rifiuta identici: stesso peso, nessuna scelta suggerita. */
.consent { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; padding: 0 16px calc(16px + env(safe-area-inset-bottom)); pointer-events: none; }
.consent-box { position: relative; max-width: 760px; margin: 0 auto; background: var(--paper); color: var(--ink); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 10px 40px rgba(10, 43, 77, .18); padding: 1.1rem 3rem 1.1rem 1.3rem; pointer-events: auto; font-family: var(--font-body); }
.consent-title { margin: 0 0 .35rem; font-weight: 800; font-size: 1.05rem; }
.consent-text { margin: 0 0 .9rem; font-size: .95rem; line-height: 1.5; color: var(--ink-soft); }
.consent-text a { color: var(--sea); }
.consent-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1rem; }
.consent-btn { min-width: 9rem; background: var(--sea); border-color: var(--sea); color: #fff; }
.consent-btn:hover, .consent-btn:focus-visible { background: var(--sea-deep); border-color: var(--sea-deep); color: #fff; }
.consent-more { color: var(--sea); font-weight: 700; }
.consent-x { position: absolute; top: .5rem; right: .6rem; width: 2.2rem; height: 2.2rem; border: 0; background: transparent; color: var(--ink-soft); font-size: 1.6rem; line-height: 1; cursor: pointer; border-radius: 50%; }
.consent-x:hover, .consent-x:focus-visible { background: var(--sea-soft); color: var(--ink); }
@media (max-width: 600px) {
  .consent { padding: 0 8px calc(8px + env(safe-area-inset-bottom)); }
  .consent-box { padding: 1rem 2.6rem 1rem 1rem; }
  .consent-btn { flex: 1 1 8rem; min-width: 0; }
  .consent-more { flex-basis: 100%; text-align: center; }
}
@media print { .consent { display: none; } }

/* Cartolina: invito alla recensione su Google (per tutti i partecipanti) */
.review-ask { margin: 2rem 0 1.5rem; padding: 1.2rem 1.3rem; background: var(--sand-soft); border: 1px solid var(--line); border-radius: var(--radius); text-align: center; }
.review-ask h2 { margin: 0 0 .4rem; font-size: 1.25rem; color: var(--navy); }
.review-ask p { margin: .3rem 0 .8rem; }

/* Timbro «Conclusa» delle passeggiate private già svolte: come un timbro sul passaporto, leggermente ruotato */
.done-stamp { display: inline-flex; align-items: center; gap: .55rem; margin: .6rem 0 .2rem; padding: .45rem .95rem .45rem .6rem; border: 3px solid #1f8a5b; border-radius: 12px; color: #1f8a5b; background: rgba(255,255,255,.92); transform: rotate(-4deg); transform-origin: left center; box-shadow: 0 2px 0 rgba(31,138,91,.15); }
.done-stamp svg { width: 30px; height: 30px; flex: none; background: #1f8a5b; color: #fff; border-radius: 50%; padding: 5px; }
.done-stamp span { display: flex; flex-direction: column; line-height: 1.05; }
.done-stamp strong { font-size: 1.15rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.done-stamp small { font-size: .82rem; font-weight: 700; color: #2a6b4e; }
.done-stamp.is-card { position: absolute; right: 10px; bottom: 10px; margin: 0; transform: rotate(-6deg); transform-origin: center; padding: .3rem .7rem .3rem .4rem; border-width: 2px; }
.done-stamp.is-card svg { width: 22px; height: 22px; padding: 4px; }
.done-stamp.is-card strong { font-size: .9rem; }
.done-stamp.is-card small { font-size: .7rem; }
@media (prefers-reduced-motion: no-preference) { .done-stamp:not(.is-card) { animation: done-stamp-in .5s cubic-bezier(.2,1.6,.4,1) both; } }
@keyframes done-stamp-in { from { opacity: 0; transform: rotate(-4deg) scale(1.6); } to { opacity: 1; transform: rotate(-4deg) scale(1); } }
.post-gallery { margin: 1.5rem 0; }

/* Foto a schermo intero (lightbox.js) */
a.zoom { display: block; cursor: zoom-in; border-radius: inherit; }
a.zoom:focus-visible { outline: 3px solid var(--sand); outline-offset: 3px; }
.lb { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; background: rgba(8, 20, 36, .94); padding: 3.5rem 1rem 3rem; }
.lb[hidden] { display: none; }
html.lb-open, html.lb-open body { overflow: hidden; }
.lb-fig { margin: 0; max-width: 100%; max-height: 100%; display: flex; flex-direction: column; align-items: center; }
.lb-img { max-width: min(100%, 1600px); max-height: calc(100vh - 8rem); width: auto; height: auto; object-fit: contain; border-radius: 6px; box-shadow: 0 10px 40px rgba(0,0,0,.4); background: #111; }
.lb-cap { margin-top: .7rem; color: #e8eef5; font-size: .95rem; text-align: center; max-width: 60ch; }
.lb-count { position: absolute; top: 1.1rem; left: 1.2rem; color: #cfd9e4; font-size: .9rem; font-weight: 700; }
.lb-btn { position: absolute; width: 48px; height: 48px; border: 0; border-radius: 50%; background: rgba(255,255,255,.14); color: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.lb-btn:hover, .lb-btn:focus-visible { background: rgba(255,255,255,.28); outline: none; }
.lb-btn svg { width: 24px; height: 24px; }
.lb-close { top: .7rem; right: .7rem; }
.lb-prev { left: .7rem; top: 50%; transform: translateY(-50%); }
.lb-next { right: .7rem; top: 50%; transform: translateY(-50%); }
.lb-btn[hidden] { display: none; }
@media (max-width: 640px) { .lb-prev, .lb-next { top: auto; bottom: .7rem; transform: none; } .lb { padding-bottom: 4.5rem; } }

/* Con la bolla della chat in basso a sinistra, il fondo del piè di pagina (logo Cifali Viaggi e Clid, dati societari)
   resta libero: arrivati in fondo alla pagina si legge tutta la riga. */
body:has(#chat) .site-foot { padding-bottom: calc(2.5rem + 84px + env(safe-area-inset-bottom)); }
@media (max-width: 900px) {
  body:has(#chat) .site-foot { padding-bottom: calc(2.5rem + 76px + env(safe-area-inset-bottom)); }
  body:has(#chat):has(.sticky-cta) .site-foot { padding-bottom: calc(2.5rem + 5.2rem + 76px + env(safe-area-inset-bottom)); }
}
