/* ===== Cipro 2026 — stile (notte mediterranea, rame, turchese) ===== */
:root {
  --bg: #0c1a24;
  --bg-2: #10222e;
  --panel: #142c3a;
  --panel-2: #1a3747;
  --line: #244559;
  --line-soft: #1b3545;
  --ink: #f3ecdc;
  --ink-soft: #d3c9b4;
  --ink-dim: #8fa4ab;
  --copper: #d98f55;
  --copper-bright: #f0ad74;
  --sea: #5fb3c9;
  --sea-dim: #2f6f82;
  --ok: #7fc29b;
  --warn: #f0b26b;
  --danger: #e8807a;
  --shadow: 0 12px 34px rgba(0, 0, 0, .45);
  --radius: 16px;
  --maxw: 1180px;
  --font-display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { max-width: 100%; overflow-x: hidden; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
a { color: var(--sea); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; letter-spacing: -.01em; line-height: 1.15; margin: 0; }
button { font-family: inherit; }
img { max-width: 100%; }

/* ===== Hero ===== */
.hero { position: relative; overflow: hidden; text-align: center; padding: 72px 0 44px; border-bottom: 1px solid var(--line); background: linear-gradient(180deg, #16364a 0%, #0f2634 45%, var(--bg) 100%); }
.hero-art { position: absolute; inset: 0; pointer-events: none; }
.hero-sun { position: absolute; left: 50%; top: 40px; width: 420px; height: 420px; margin-left: -210px; border-radius: 50%; background: radial-gradient(circle at 50% 45%, rgba(240,173,116,.55) 0%, rgba(217,143,85,.25) 38%, rgba(217,143,85,0) 70%); filter: blur(2px); }
.hero-sea { position: absolute; left: 0; right: 0; bottom: 0; height: 120px; background:
  repeating-linear-gradient(180deg, rgba(95,179,201,.0) 0 14px, rgba(95,179,201,.14) 14px 16px, rgba(95,179,201,0) 16px 30px);
  mask-image: linear-gradient(180deg, rgba(0,0,0,0), #000 60%); -webkit-mask-image: linear-gradient(180deg, rgba(0,0,0,0), #000 60%); }
.hero-inner { position: relative; }
.kicker { color: var(--copper); letter-spacing: 4px; text-transform: uppercase; font-size: 12.5px; font-weight: 600; }
.hero h1 { font-size: clamp(54px, 10vw, 104px); color: var(--ink); margin: 6px 0 4px; font-weight: 700; font-variation-settings: "opsz" 144; text-shadow: 0 2px 24px rgba(0,0,0,.45); }
.hero h1 .year { color: var(--copper-bright); font-style: italic; font-weight: 500; }
.subtitle { color: var(--ink-soft); font-size: clamp(16px, 2.6vw, 21px); margin: 0 auto 18px; max-width: 720px; font-family: var(--font-display); font-style: italic; font-weight: 500; }
.hero-dates { display: inline-flex; align-items: center; gap: 12px; border: 1px solid var(--copper); border-radius: 999px; padding: 8px 20px; color: var(--copper-bright); font-size: 15px; background: rgba(217,143,85,.08); font-weight: 600; letter-spacing: .3px; }
.hero-dates i { color: var(--ink-dim); font-style: normal; }
.today-pill { display: block; margin: 14px auto 0; border: 1px solid var(--sea-dim); background: rgba(95,179,201,.1); color: var(--sea); border-radius: 12px; padding: 9px 16px; font-size: 14px; cursor: pointer; transition: all .15s; max-width: 92vw; }
.today-pill:hover { border-color: var(--sea); background: rgba(95,179,201,.18); }
.today-pill b { color: var(--ink); }
.today-pill[hidden] { display: none; }
.intro { color: var(--ink-soft); max-width: 760px; margin: 22px auto 0; font-size: 16px; }
.hero-stats { display: flex; justify-content: center; gap: 28px; flex-wrap: wrap; margin-top: 26px; }
.hstat { display: flex; flex-direction: column; align-items: center; min-width: 74px; }
.hstat b { font-family: var(--font-display); font-size: 30px; color: var(--copper-bright); line-height: 1; font-weight: 600; }
.hstat span { color: var(--ink-dim); font-size: 12px; text-transform: uppercase; letter-spacing: 1.2px; margin-top: 4px; }
@media (max-width: 620px) {
  .hero { padding: 34px 0 26px; }
  .kicker { font-size: 11px; letter-spacing: 2.5px; }
  .hero h1 { font-size: 56px; }
  .subtitle { font-size: 15px; margin-bottom: 14px; }
  .hero-dates { font-size: 13.5px; padding: 6px 14px; }
  .intro { display: none; }
  .hero-stats { gap: 18px; margin-top: 18px; }
  .hstat b { font-size: 24px; }
  .hero-sun { width: 280px; height: 280px; margin-left: -140px; top: 10px; }
}

/* ===== Nav (sticky) ===== */
.site-nav { position: sticky; top: 0; z-index: 2000; background: rgba(12,26,36,.9); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.nav-bar { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 8px 0; }
.nav-brand { color: var(--copper-bright); font-family: var(--font-display); font-size: 17px; font-weight: 600; min-width: 0; text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nav-brand:hover { text-decoration: none; }
.nav-brand .nb-sub { color: var(--ink-dim); font-size: 13px; font-family: var(--font-body); font-weight: 400; }
.nav-right { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; }
.lang-switch { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; background: var(--panel); }
.lang-switch button { border: none; background: none; color: var(--ink-dim); font-size: 12.5px; font-weight: 700; letter-spacing: .6px; padding: 7px 11px; cursor: pointer; transition: all .12s; }
.lang-switch button:hover { color: var(--ink); }
.lang-switch button.active { background: var(--copper); color: #0c1a24; }
.lang-switch.desk { margin-left: 10px; align-self: center; }
.nav-burger { flex: 0 0 auto; width: 40px; height: 34px; background: none; border: 1px solid var(--line); border-radius: 9px; cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; padding: 0; transition: border-color .15s; }
.nav-burger:hover { border-color: var(--copper); }
.nav-burger span { display: block; width: 18px; height: 2px; background: var(--copper); border-radius: 2px; transition: transform .2s, opacity .2s; }
.nav-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
.nav-menu { border-top: 1px solid var(--line); background: var(--bg-2); max-height: 72vh; overflow-y: auto; }
.nav-menu[hidden] { display: none; }
.nav-links { display: flex; flex-direction: column; padding: 8px 12px 14px; }
.site-nav .nav-links a { display: flex; align-items: center; gap: 12px; color: var(--ink-soft); padding: 12px 14px; border-radius: 10px; font-size: 16px; text-decoration: none; border: 1px solid transparent; transition: all .12s; }
.site-nav .nav-links a:hover { background: var(--panel); color: var(--copper-bright); text-decoration: none; }
.site-nav .nav-links a.active { background: var(--panel-2); border-color: var(--copper); color: var(--copper-bright); }
.nv-i { font-size: 19px; line-height: 1; width: 24px; text-align: center; }
.nav-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,.55); z-index: 1900; }
.nav-backdrop[hidden] { display: none; }
@media (min-width: 900px) {
  .nav-bar, .nav-burger { display: none; }
  .nav-menu { border-top: none; background: transparent; max-height: none; overflow: visible; }
  .nav-links { flex-direction: row; flex-wrap: wrap; justify-content: center; gap: 4px; padding: 8px 12px; }
  .site-nav .nav-links a { font-size: 14.5px; padding: 9px 14px; border-radius: 999px; }
  .nv-i { font-size: 16px; width: auto; }
}

/* ===== Sections ===== */
.section { padding: 52px 0; border-bottom: 1px solid var(--line-soft); scroll-margin-top: 58px; }
.section h2 { font-size: clamp(28px, 4vw, 40px); color: var(--copper-bright); margin: 0 0 8px; }
.section-lead { color: var(--ink-dim); max-width: 760px; margin: 0 0 24px; font-size: 15.5px; }
.sub-h { font-size: 20px; color: var(--ink); margin: 28px 0 14px; }
.sub-h:first-of-type { margin-top: 0; }

/* ===== Bottoni e chip ===== */
.btn { border: 1px solid var(--line); background: var(--panel-2); color: var(--ink-soft); border-radius: 10px; padding: 8px 13px; font-size: 13.5px; cursor: pointer; transition: all .12s; display: inline-flex; align-items: center; gap: 6px; text-decoration: none; line-height: 1.2; }
.btn:hover { border-color: var(--copper); color: var(--copper-bright); text-decoration: none; }
.btn-primary { border-color: var(--copper); color: var(--copper-bright); }
.btn-gm { border-color: rgba(95,179,201,.45); color: var(--sea); }
.btn-gm:hover { border-color: var(--sea); color: #8fd1e2; }
.btn-sm { padding: 6px 10px; font-size: 12.5px; border-radius: 8px; }
.chip { border: 1px solid var(--line); background: var(--panel); color: var(--ink-soft); border-radius: 999px; padding: 6px 13px; font-size: 13px; cursor: pointer; transition: all .12s; display: inline-flex; align-items: center; gap: 7px; }
.chip:hover { border-color: var(--copper); }
.chip.active { background: var(--panel-2); border-color: var(--c, var(--copper)); color: var(--ink); }
.chip .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--c, var(--copper)); display: inline-block; opacity: .45; }
.chip.active .dot { opacity: 1; }
.tag { display: inline-flex; align-items: center; gap: 4px; background: var(--panel-2); border: 1px solid var(--line); border-radius: 7px; padding: 2px 8px; font-size: 12px; color: var(--ink-soft); max-width: 100%; min-width: 0; line-height: 1.35; }
.tag.price { color: var(--copper-bright); border-color: rgba(217,143,85,.4); }
.tag.hours { color: var(--warn); border-color: rgba(240,178,107,.35); }
.tag.approx { color: var(--ink-dim); font-style: italic; }

/* ===== Fase e striscia dei giorni ===== */
.phase-bar { display: flex; gap: 3px; margin-bottom: 14px; border-radius: 10px; overflow: hidden; }
.phase { flex: var(--n) 1 0; min-width: 0; background: color-mix(in srgb, var(--c) 22%, var(--panel)); border-top: 3px solid var(--c); padding: 6px 8px; cursor: pointer; border-left: none; border-right: none; border-bottom: none; color: var(--ink-soft); text-align: left; font-size: 12px; line-height: 1.25; transition: background .15s; }
.phase:hover, .phase.active { background: color-mix(in srgb, var(--c) 38%, var(--panel)); color: var(--ink); }
.phase b { display: block; color: var(--ink); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.phase i { font-style: normal; color: var(--ink-dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
@media (max-width: 760px) {
  .phase-bar { overflow-x: auto; scrollbar-width: none; border-radius: 8px; }
  .phase-bar::-webkit-scrollbar { display: none; }
  .phase { flex: var(--n) 0 auto; min-width: 64px; padding: 5px 7px; }
  .phase b { font-size: 11.5px; }
  .phase i { font-size: 10.5px; }
}

.day-strip-wrap { display: flex; align-items: stretch; gap: 6px; margin-bottom: 18px; }
.strip-btn { flex: 0 0 34px; border: 1px solid var(--line); background: var(--panel); color: var(--copper-bright); border-radius: 10px; font-size: 22px; cursor: pointer; line-height: 1; }
.strip-btn:hover { border-color: var(--copper); }
.day-strip { flex: 1; display: flex; gap: 6px; overflow-x: auto; scroll-snap-type: x proximity; padding: 3px 2px 8px; scrollbar-width: thin; scrollbar-color: var(--line) transparent; }
.day-chip { flex: 0 0 auto; scroll-snap-align: center; display: flex; flex-direction: column; align-items: center; min-width: 54px; border: 1px solid var(--line); background: var(--panel); color: var(--ink-soft); border-radius: 12px; padding: 7px 8px 6px; cursor: pointer; transition: all .12s; position: relative; }
.day-chip:hover { border-color: var(--c); }
.day-chip.active { background: var(--panel-2); border-color: var(--c); box-shadow: 0 0 0 1px var(--c) inset; color: var(--ink); }
.day-chip.today::after { content: ""; position: absolute; top: -5px; right: -5px; width: 11px; height: 11px; border-radius: 50%; background: var(--sea); border: 2px solid var(--bg); }
.dc-dow { font-size: 10.5px; text-transform: uppercase; letter-spacing: .8px; color: var(--ink-dim); }
.day-chip.active .dc-dow { color: var(--c); }
.dc-num { font-family: var(--font-display); font-size: 21px; font-weight: 600; line-height: 1.1; }
.dc-mon { font-size: 10px; color: var(--ink-dim); }
.dc-kind { margin-top: 4px; width: 100%; height: 3px; border-radius: 2px; background: var(--c); opacity: .9; }
.day-chip[data-kind="half"] .dc-kind { background: linear-gradient(90deg, transparent 50%, var(--c) 50%); }
.day-chip[data-kind="free"] .dc-kind { background: transparent; border: 1px dashed var(--c); height: 0; }
.day-chip[data-kind="away"] .dc-kind, .day-chip[data-kind="travel"] .dc-kind { background: repeating-linear-gradient(90deg, var(--c) 0 4px, transparent 4px 7px); }
.day-chip.wide { min-width: 86px; }

/* ===== Scheda giorno ===== */
.day-card { background: var(--panel); border: 1px solid var(--line); border-left: 5px solid var(--c, var(--copper)); border-radius: var(--radius); padding: 22px 24px; box-shadow: var(--shadow); }
.day-head { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 12px 20px; }
.day-date { color: var(--ink-dim); font-size: 14px; text-transform: capitalize; letter-spacing: .3px; }
.day-date b { color: var(--c); text-transform: uppercase; font-size: 12px; letter-spacing: 1.5px; margin-left: 10px; }
.day-title { font-size: clamp(26px, 3.4vw, 34px); color: var(--ink); margin-top: 2px; }
.day-badges { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.badge { display: inline-flex; align-items: center; gap: 6px; border-radius: 999px; padding: 5px 12px; font-size: 12px; font-weight: 700; letter-spacing: .6px; text-transform: uppercase; }
.badge-half { background: rgba(240,178,107,.16); color: var(--warn); }
.badge-full { background: rgba(127,194,155,.16); color: var(--ok); }
.badge-free { background: rgba(143,164,171,.16); color: var(--ink-soft); }
.badge-travel { background: rgba(95,179,201,.16); color: var(--sea); }
.badge-away { background: rgba(181,139,214,.18); color: #cdb2e6; }
.badge-done { background: rgba(127,194,155,.16); color: var(--ok); }
.badge-today { background: var(--sea); color: #0c1a24; }
.day-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin: 18px 0; padding: 14px 0; border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
.df { display: flex; flex-direction: column; min-width: 0; }
.df-k { color: var(--c, var(--copper)); font-size: 11px; text-transform: uppercase; letter-spacing: .9px; }
.df-v { color: var(--ink); font-size: 14.5px; margin-top: 2px; }
.df-v small { color: var(--ink-dim); font-size: 12.5px; }
.day-body { display: grid; grid-template-columns: minmax(0, 1fr) 420px; gap: 26px; align-items: start; }
.day-map-wrap { position: sticky; top: 66px; }
#day-map { height: 440px; border-radius: 12px; border: 1px solid var(--line); background: #0e1c26; overflow: hidden; }
.day-legend { margin-top: 10px; font-size: 12.5px; color: var(--ink-dim); line-height: 1.7; }
.dl-item { color: var(--ink-soft); }
.dl-arrow { color: var(--c, var(--copper)); margin: 0 5px; }
.day-route { margin-top: 10px; width: 100%; justify-content: center; font-size: 14px; padding: 11px 14px; }
.day-empty { color: var(--ink-dim); font-style: italic; padding: 10px 0; }

/* timeline tappe */
.stops { list-style: none; margin: 0; padding: 0; }
.stop { display: grid; grid-template-columns: 56px 30px minmax(0, 1fr); gap: 0 10px; position: relative; }
.stop + .stop { margin-top: 4px; }
.stop-time { color: var(--c, var(--copper)); font-weight: 700; font-size: 14px; padding-top: 14px; text-align: right; font-variant-numeric: tabular-nums; }
.stop-line { position: relative; display: flex; justify-content: center; }
.stop-line::before { content: ""; position: absolute; top: 0; bottom: 0; left: 50%; width: 2px; margin-left: -1px; background: var(--line); }
.stop:first-child .stop-line::before { top: 14px; }
.stop:last-child .stop-line::before { bottom: auto; height: 14px; }
.stop-num { position: relative; z-index: 1; width: 28px; height: 28px; margin-top: 12px; border-radius: 50%; background: var(--c, var(--copper)); color: #0c1a24; font-weight: 800; font-size: 13px; display: flex; align-items: center; justify-content: center; border: 2px solid var(--panel); box-shadow: 0 0 0 2px var(--c, var(--copper)); }
.stop.optional .stop-num { background: var(--panel); color: var(--c); box-shadow: 0 0 0 2px var(--c); border-style: dashed; }
.stop-card { background: var(--bg-2); border: 1px solid var(--line-soft); border-radius: 12px; padding: 12px 14px 12px; margin: 4px 0 10px; display: grid; grid-template-columns: 104px minmax(0, 1fr); gap: 14px; transition: border-color .15s; }
.stop-card:hover { border-color: var(--line); }
.stop-card.noimg { grid-template-columns: minmax(0, 1fr); }
.stop-img { width: 104px; height: 104px; border-radius: 10px; object-fit: cover; display: block; cursor: zoom-in; background: var(--panel-2); }
.stop-main { min-width: 0; }
.stop-name { font-family: var(--font-display); font-size: 19px; color: var(--ink); font-weight: 600; display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.stop-name .ic { font-size: 17px; }
.stop-name .opt { font-family: var(--font-body); font-size: 11px; text-transform: uppercase; letter-spacing: 1px; color: var(--ink-dim); font-weight: 600; }
.stop-blurb { color: var(--ink-soft); font-size: 14px; margin-top: 3px; }
.stop-note { color: var(--ink); font-size: 14px; margin-top: 6px; padding-left: 10px; border-left: 2px solid var(--c, var(--copper)); }
.stop-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.stop-tips { margin: 8px 0 0; padding-left: 18px; color: var(--ink-soft); font-size: 13.5px; }
.stop-tips li { margin: 2px 0; }
.stop-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
@media (max-width: 560px) {
  .stop-card { grid-template-columns: minmax(0, 1fr); }
  .stop-img { width: 100%; height: 150px; }
  .stop { grid-template-columns: 44px 26px minmax(0, 1fr); gap: 0 8px; }
  .stop-time { font-size: 12.5px; }
  .stop-num { width: 24px; height: 24px; font-size: 12px; margin-top: 14px; }
}

.day-notes { margin-top: 14px; display: flex; flex-direction: column; gap: 8px; }
.note-box { background: var(--bg-2); border: 1px solid var(--line-soft); border-radius: 10px; padding: 10px 14px; font-size: 14px; color: var(--ink-soft); display: flex; gap: 10px; align-items: flex-start; }
.note-box .ni { flex: 0 0 auto; }
.note-box.warn { border-color: rgba(240,178,107,.4); background: rgba(240,178,107,.07); color: var(--ink); }
.day-nav { display: flex; justify-content: space-between; gap: 10px; margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line-soft); min-width: 0; }
.day-nav .btn { flex: 0 1 auto; max-width: 48%; min-width: 0; overflow: hidden; }
.day-nav .btn span { display: block; min-width: 0; flex: 1 1 auto; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.day-nav > span { flex: 0 0 0; }

@media (max-width: 900px) {
  .day-body { grid-template-columns: 1fr; }
  .day-map-wrap { position: static; order: -1; }
  #day-map { height: 300px; }
}
@media (max-width: 620px) { .day-card { padding: 16px 14px 16px 16px; } #day-map { height: 260px; } }

/* ===== Mappe (Leaflet) ===== */
#map, #day-map { position: relative; z-index: 0; isolation: isolate; }
.leaflet-container { z-index: 0; font-family: var(--font-body); }
.leaflet-pane, .leaflet-top, .leaflet-bottom { z-index: auto; }
.leaflet-control-container .leaflet-top, .leaflet-control-container .leaflet-bottom { z-index: 400; }
#map { height: 600px; width: 100%; border-radius: var(--radius); border: 1px solid var(--line); box-shadow: var(--shadow); background: #0e1c26; }
.map-tools { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; align-items: center; }
.map-tools .lbl { color: var(--ink-dim); font-size: 13px; margin-right: 4px; }
.map-legend { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.leaflet-popup-content-wrapper { background: var(--panel); color: var(--ink); border: 1px solid var(--copper); border-radius: 12px; box-shadow: var(--shadow); }
.leaflet-popup-tip { background: var(--panel); border: 1px solid var(--copper); }
.leaflet-popup-content { margin: 12px 14px; min-width: 220px; }
.leaflet-container a.leaflet-popup-close-button { color: var(--ink-dim); }
.popup-img { width: 100%; height: 120px; object-fit: cover; border-radius: 8px; margin-bottom: 8px; display: block; }
.popup-title { font-family: var(--font-display); font-size: 17px; color: var(--ink); font-weight: 600; margin-bottom: 2px; }
.popup-meta { font-size: 12.5px; color: var(--ink-dim); margin-bottom: 6px; }
.popup-meta b { color: var(--c, var(--copper)); }
.popup-blurb { font-size: 13px; color: var(--ink-soft); margin-bottom: 8px; }
.popup-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.popup-actions .btn { font-size: 12px; padding: 5px 9px; }
.pin-icon { background: none; border: none; }
.pin { width: 28px; height: 28px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: var(--c, #d98f55); border: 2px solid #fff; box-shadow: 0 2px 6px rgba(0,0,0,.5); display: flex; align-items: center; justify-content: center; transition: transform .12s; }
.pin span { transform: rotate(45deg); color: #0c1a24; font-weight: 800; font-size: 12px; line-height: 1; }
.pin.approx { border-style: dashed; }
.pin.optional { background: #142c3a; }
.pin.optional span { color: var(--c); }
.pin-icon:hover .pin { transform: rotate(-45deg) scale(1.15); }
.pin.base { border-radius: 8px; transform: none; width: 26px; height: 26px; background: #1a3747; border-color: var(--c, #d98f55); }
.pin.base span { transform: none; font-size: 14px; }
.pin-icon:hover .pin.base { transform: scale(1.15); }
.dot-icon { background: none; border: none; }
.dot { width: 14px; height: 14px; border-radius: 50%; background: var(--c, #d98f55); border: 2px solid #fff; box-shadow: 0 1px 4px rgba(0,0,0,.5); transition: transform .12s; }
.dot.approx { border-style: dashed; }
.dot-icon:hover .dot { transform: scale(1.3); }
.dot.sq { border-radius: 4px; }
.dot.done { background: #8fa4ab; }
.emoji-icon { background: none; border: none; }
.emoji-pin { width: 26px; height: 26px; border-radius: 50%; background: var(--panel); border: 2px solid var(--c, #d98f55); display: flex; align-items: center; justify-content: center; font-size: 14px; box-shadow: 0 1px 4px rgba(0,0,0,.5); }
.map-lock { margin: 0 0 10px 10px; border: 1px solid var(--copper); background: rgba(12,26,36,.92); color: var(--copper-bright); border-radius: 999px; padding: 8px 13px; font-size: 13px; font-weight: 600; cursor: pointer; box-shadow: 0 2px 8px rgba(0,0,0,.4); }
.map-lock.on { background: var(--copper); color: #0c1a24; }
.leaflet-tooltip { background: var(--panel); color: var(--ink); border: 1px solid var(--line); border-radius: 8px; font-size: 12.5px; box-shadow: var(--shadow); }
.leaflet-tooltip-top:before { border-top-color: var(--line); }

/* ===== Già fatto ===== */
.done-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.done-card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; display: flex; flex-direction: column; gap: 8px; }
.done-date { color: var(--ok); font-size: 12px; text-transform: uppercase; letter-spacing: 1.2px; font-weight: 700; }
.done-card h3 { font-size: 20px; color: var(--ink); }
.done-text { color: var(--ink-soft); font-size: 14px; }
.done-places { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 4px; }
.placechip { background: var(--panel-2); border: 1px solid var(--line); border-radius: 999px; padding: 5px 12px; font-size: 12.5px; color: var(--ink-soft); cursor: pointer; text-decoration: none; display: inline-flex; gap: 5px; align-items: center; }
.placechip:hover { border-color: var(--sea); color: var(--sea); text-decoration: none; }

/* ===== Mangiare ===== */
.food-grid, .gym-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 16px; }
.food-card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; display: flex; flex-direction: column; gap: 6px; transition: border-color .15s, transform .12s; }
.food-card:hover { border-color: var(--copper); transform: translateY(-2px); }
.food-card.avoid { opacity: .7; border-style: dashed; }
.food-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.food-type { font-size: 11.5px; text-transform: uppercase; letter-spacing: 1.3px; color: var(--copper); font-weight: 700; }
.food-rating { color: var(--warn); font-size: 13px; font-weight: 700; white-space: nowrap; }
.food-card h3 { font-size: 20px; color: var(--ink); }
.food-place { color: var(--ink-dim); font-size: 13px; }
.food-note { color: var(--ink-soft); font-size: 14px; margin-top: 2px; }
.food-meta { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 4px; }
.food-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: auto; padding-top: 10px; }
.glossary { margin-top: 26px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; }
.glossary h3 { font-size: 18px; color: var(--copper-bright); margin-bottom: 10px; }
.glossary dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; margin: 0; font-size: 14px; }
.glossary dt { color: var(--ink); font-weight: 600; }
.glossary dd { margin: 0; color: var(--ink-soft); }
@media (max-width: 480px) { .glossary dl { grid-template-columns: 1fr; gap: 2px; } .glossary dd { margin-bottom: 8px; } }

/* ===== Sport ===== */
.run-list { display: flex; flex-direction: column; gap: 8px; }
.run-item { display: grid; grid-template-columns: 60px minmax(0, 1fr) auto; gap: 14px; align-items: center; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; }
.run-km { font-family: var(--font-display); font-size: 22px; color: var(--copper-bright); font-weight: 600; text-align: center; line-height: 1; }
.run-km small { display: block; font-family: var(--font-body); font-size: 10.5px; color: var(--ink-dim); text-transform: uppercase; letter-spacing: 1px; margin-top: 2px; }
.run-name { color: var(--ink); font-weight: 600; font-size: 15px; }
.run-note { color: var(--ink-soft); font-size: 13.5px; }
.pick-star { color: var(--warn); font-size: 12px; margin-left: 6px; }
@media (max-width: 560px) { .run-item { grid-template-columns: 50px minmax(0, 1fr); } .run-item .btn { grid-column: 2; justify-self: start; } }

/* ===== Note pratiche (accordion) ===== */
.logistics { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.log-card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.log-card.full { grid-column: 1 / -1; }
.log-head { padding: 16px 20px; cursor: pointer; display: flex; justify-content: space-between; align-items: center; user-select: none; gap: 10px; }
.log-head h3 { margin: 0; font-size: 19px; color: var(--copper-bright); display: flex; align-items: center; gap: 10px; }
.log-head .chev { color: var(--copper); transition: transform .2s; }
.log-card.open .chev { transform: rotate(90deg); }
.log-body { padding: 0 20px 18px; font-size: 14.5px; color: var(--ink-soft); }
.log-body[hidden] { display: none; }
.log-body ul { margin: 0; padding-left: 20px; }
.log-body li { margin-bottom: 8px; }
.log-body b { color: var(--ink); }
@media (max-width: 760px) { .logistics { grid-template-columns: 1fr; } }

/* ===== Lightbox ===== */
.lightbox { position: fixed; inset: 0; background: rgba(0,0,0,.92); z-index: 3000; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 30px; }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 94vw; max-height: 80vh; border-radius: 8px; box-shadow: var(--shadow); }
.lightbox-cap { color: var(--ink-soft); margin-top: 14px; font-size: 13.5px; text-align: center; max-width: 700px; }
.lightbox-cap a { color: var(--sea); }
.lightbox-close { position: absolute; top: 14px; right: 20px; background: none; border: none; color: #fff; font-size: 40px; cursor: pointer; line-height: 1; }

/* ===== Offline / PWA ===== */
.offline-box { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; }
.off-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.off-actions .btn { font-size: 15px; padding: 11px 18px; }
.off-status { color: var(--ink-soft); font-size: 14.5px; min-height: 22px; }
.off-status b { color: var(--copper-bright); }
.off-bar { height: 8px; background: var(--panel-2); border-radius: 999px; overflow: hidden; margin-top: 12px; border: 1px solid var(--line); }
.off-bar-fill { height: 100%; width: 0%; background: linear-gradient(90deg, var(--copper), var(--copper-bright)); transition: width .3s; }
.off-hint { color: var(--ink-dim); font-size: 13px; margin: 14px 0 0; }
.off-hint b, .off-hint i { color: var(--ink-soft); }

/* ===== Footer ===== */
.site-footer { padding: 40px 0 70px; text-align: center; color: var(--ink-dim); }
.site-footer p { max-width: 800px; margin: 0 auto 10px; }
.tiny { font-size: 12.5px; }

/* ===== Responsive ===== */
@media (max-width: 760px) { #map { height: 440px; } }
@media (max-width: 620px) {
  .wrap { padding: 0 16px; }
  .section { padding: 32px 0; }
  .section h2 { font-size: 26px; }
  .section-lead { font-size: 14px; margin-bottom: 18px; }
  #map { height: 360px; }
  .food-card, .done-card, .offline-box { padding: 16px; }
}
@media (max-width: 420px) { .nav-brand .nb-sub { display: none; } }
.flash { animation: flash 1.4s ease-out; }
@keyframes flash { 0% { box-shadow: 0 0 0 3px var(--copper); } 100% { box-shadow: 0 0 0 0 rgba(0,0,0,0); } }
