/* ═══════════════════════════════════════════════════════════════
   Guida ospiti Repetti — foglio di stile
   Usato da: index.html · milano.html · check-out.html
   Variante: tab bar a 3 voci (no Casa, no Quartiere)
   ═══════════════════════════════════════════════════════════════ */

:root {
  --cream:#F5EFE6; --cream-deep:#EDE4D3; --ink:#1C1A17; --ink-soft:#4A453E;
  --ink-mute:#8B8378; --terracotta:#B5482E; --terracotta-d:#8E3621;
  --olive:#5C5D3E; --paper:#FBF8F3; --line:#D8CFC0;
  --radius:14px; --radius-lg:22px;
  --shadow-sm: 0 1px 2px rgba(28,26,23,0.04), 0 2px 8px rgba(28,26,23,0.04);
  --shadow-md: 0 4px 12px rgba(28,26,23,0.06), 0 12px 28px rgba(28,26,23,0.06);
  --shadow-lg: 0 8px 24px rgba(28,26,23,0.08), 0 24px 56px rgba(28,26,23,0.10);
  --serif: 'Instrument Serif', 'Times New Roman', serif;
  --sans: 'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--sans); background: var(--cream); color: var(--ink);
  line-height: 1.55; font-weight: 400; font-size: 16px;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  padding-bottom: calc(68px + env(safe-area-inset-bottom, 0px));
  background-image:
    radial-gradient(circle at 15% 8%, rgba(181,72,46,0.04) 0%, transparent 35%),
    radial-gradient(circle at 85% 92%, rgba(92,93,62,0.04) 0%, transparent 40%);
  background-attachment: fixed;
}

/* Tab bar di navigazione — mobile: fissa in basso · desktop: orizzontale in alto
   Variante 3-voci per Repetti */
.tabbar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--ink);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding: 6px 4px calc(10px + env(safe-area-inset-bottom, 0px));
  z-index: 150;
  border-top: 1px solid rgba(245,239,230,0.08);
  box-shadow: 0 -4px 24px rgba(28,26,23,0.18);
}
.tabbar-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  font-size: 11px;
  letter-spacing: 0.02em;
  padding: 4px 2px;
  color: rgba(245,239,230,0.5);
  text-decoration: none;
  font-family: var(--sans);
  font-weight: 500;
  transition: color 0.2s ease;
  text-align: center;
}
.tabbar-item.active { color: var(--terracotta); }
.tabbar-item svg { width: 20px; height: 20px; stroke-width: 1.5; }

.topbar {
  position: sticky; top: 0; z-index: 100;
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px 22px; background: var(--cream);
  border-bottom: 1px solid rgba(216,207,192,0.4);
}
.brand { font-family: var(--serif); font-style: italic; font-size: 20px; letter-spacing: -0.01em; text-decoration: none; color: var(--ink); }
.brand-dot { display: inline-block; width: 5px; height: 5px; background: var(--terracotta); border-radius: 50%; margin: 0 5px 3px 4px; vertical-align: middle; }
.lang-toggle { display: flex; gap: 2px; background: var(--cream-deep); border-radius: 999px; padding: 3px; font-size: 12px; font-weight: 600; letter-spacing: 0.08em; }
.lang-toggle button { background: none; border: none; padding: 6px 12px; border-radius: 999px; cursor: pointer; font: inherit; color: var(--ink-mute); transition: all 0.25s ease; text-transform: uppercase; }
.lang-toggle button.active { background: var(--ink); color: var(--cream); }

.hero { padding: 48px 22px 32px; position: relative; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 11px; letter-spacing: 0.22em; font-weight: 600; text-transform: uppercase; color: var(--terracotta); margin-bottom: 26px; animation: fadeUp 0.7s 0.1s ease both; }
.eyebrow::before { content: ''; width: 28px; height: 1px; background: var(--terracotta); }
.hero h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(44px, 11vw, 64px); line-height: 0.98; letter-spacing: -0.02em; margin-bottom: 14px; animation: fadeUp 0.8s 0.2s ease both; }
.hero h1 em { font-style: italic; color: var(--terracotta); }
.hero-sub { font-family: var(--serif); font-style: italic; font-size: 20px; color: var(--ink-soft); margin-bottom: 36px; animation: fadeUp 0.8s 0.35s ease both; }

@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }

.essential { margin: 0 22px 56px; background: var(--paper); border-radius: var(--radius-lg); box-shadow: var(--shadow-md); overflow: hidden; position: relative; animation: fadeUp 0.9s 0.5s ease both; }
.essential::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: linear-gradient(to bottom, var(--terracotta), var(--terracotta-d)); }
.essential-head { padding: 18px 24px 12px; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px dashed var(--line); }
.essential-head .label { font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase; font-weight: 700; color: var(--ink-mute); }
.essential-head .ref { font-family: var(--serif); font-style: italic; font-size: 14px; color: var(--ink-soft); }
.essential-grid { display: grid; grid-template-columns: 1fr 1fr; }
.essential-cell { padding: 20px 24px; border-right: 1px dashed var(--line); border-bottom: 1px dashed var(--line); }
.essential-cell:nth-child(2n) { border-right: none; }
.essential-cell.full { grid-column: 1 / -1; border-right: none; }
.essential-cell.last { border-bottom: none; }
.essential-cell .key { font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-mute); font-weight: 600; margin-bottom: 6px; }
.essential-cell .val { font-family: var(--serif); font-size: 22px; color: var(--ink); line-height: 1.15; }
.essential-cell .val.small { font-size: 17px; }

.code-row { background: var(--ink); color: var(--cream); padding: 22px 24px; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.code-row .key { font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--cream-deep); opacity: 0.7; font-weight: 600; margin-bottom: 6px; }
.code-row .code { font-family: var(--serif); font-size: 36px; letter-spacing: 0.12em; color: var(--cream); }
.code-row .code-tail { font-size: 26px; color: var(--terracotta); margin-left: 4px; }
.copy-btn { background: rgba(245,239,230,0.1); border: 1px solid rgba(245,239,230,0.25); color: var(--cream); padding: 10px 14px; border-radius: 10px; font-family: var(--sans); font-size: 12px; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; cursor: pointer; transition: all 0.2s ease; white-space: nowrap; }
.copy-btn:hover, .copy-btn:active { background: var(--terracotta); border-color: var(--terracotta); }
.copy-btn.copied { background: var(--olive); border-color: var(--olive); }

.code-hint { background: var(--paper); color: var(--ink-soft); padding: 12px 24px; font-size: 12px; letter-spacing: 0.04em; border-top: 1px dashed var(--line); display: flex; align-items: center; gap: 8px; }
.code-hint svg { width: 14px; height: 14px; color: var(--terracotta); flex-shrink: 0; }

.actions { display: flex; gap: 10px; margin: 0 22px 64px; flex-wrap: wrap; }
.btn { flex: 1; min-width: 140px; display: flex; align-items: center; justify-content: center; gap: 9px; padding: 14px 18px; border-radius: 12px; font-family: var(--sans); font-weight: 600; font-size: 14px; letter-spacing: 0.02em; text-decoration: none; cursor: pointer; transition: all 0.25s ease; border: 1px solid var(--line); background: var(--paper); color: var(--ink); }
.btn:hover, .btn:active { transform: translateY(-1px); box-shadow: var(--shadow-sm); border-color: var(--ink-soft); }
.btn.primary { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.btn.primary:hover, .btn.primary:active { background: var(--terracotta); border-color: var(--terracotta); }
.btn svg { width: 16px; height: 16px; }

.section-title { font-family: var(--serif); font-size: 36px; font-weight: 400; line-height: 1; letter-spacing: -0.015em; padding: 0 22px; margin-bottom: 6px; }
.section-title em { font-style: italic; color: var(--terracotta); }
.section-sub { font-family: var(--serif); font-style: italic; font-size: 17px; color: var(--ink-soft); padding: 0 22px; margin-bottom: 36px; }

.steps { padding: 0 22px 32px; }
.step { position: relative; padding: 28px 0 28px 64px; border-bottom: 1px solid var(--line); }
.step:last-child { border-bottom: none; }
.step-num { position: absolute; left: 0; top: 24px; font-family: var(--serif); font-style: italic; font-size: 44px; line-height: 1; color: var(--terracotta); font-feature-settings: 'lnum'; }
.step-num::after { content: ''; position: absolute; left: 4px; bottom: -6px; width: 30px; height: 1px; background: var(--terracotta); }
.step h3 { font-family: var(--serif); font-size: 24px; font-weight: 400; line-height: 1.15; letter-spacing: -0.01em; margin-bottom: 10px; }
.step p { color: var(--ink-soft); font-size: 15.5px; line-height: 1.6; margin-bottom: 14px; }
.step strong { color: var(--ink); font-weight: 600; }
.step .highlight { background: linear-gradient(180deg, transparent 60%, rgba(181,72,46,0.18) 60%); padding: 0 2px; }

.photo { margin-top: 16px; border-radius: var(--radius); overflow: hidden; background: var(--cream-deep); position: relative; border: 1px solid var(--line); }
.photo img { width: 100%; height: auto; display: block; }
.photo.map { background: var(--paper); padding: 8px; }
.photo.map img { max-height: 600px; }
.photo-placeholder { text-align: center; padding: 60px 20px; color: var(--ink-mute); min-height: 220px; }
.photo-placeholder svg { width: 32px; height: 32px; margin: 0 auto 8px; opacity: 0.4; display: block; }
.photo-placeholder .ph-title { font-family: var(--serif); font-style: italic; font-size: 14px; color: var(--ink-soft); margin-bottom: 4px; }
.photo-placeholder .ph-hint { font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; opacity: 0.6; }

.procedure { background: var(--paper); border-radius: var(--radius); padding: 20px 22px; margin: 14px 0; border: 1px solid var(--line); counter-reset: proc; list-style: none; }
.procedure li { padding: 10px 0 10px 38px; position: relative; font-size: 15px; color: var(--ink-soft); counter-increment: proc; }
.procedure li::before { content: counter(proc); position: absolute; left: 0; top: 8px; width: 26px; height: 26px; background: var(--cream); border: 1px solid var(--line); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-family: var(--serif); font-size: 14px; color: var(--ink); }
.procedure li:not(:last-child)::after { content: ''; position: absolute; left: 13px; top: 34px; bottom: -2px; width: 1px; background: var(--line); }

/* Inline code chip (es. 390101#) */
.code-chip {
  display: inline-block; background: var(--ink); color: var(--cream);
  font-family: var(--serif); font-size: 1.1em;
  padding: 2px 12px; border-radius: 6px; letter-spacing: 0.08em;
  vertical-align: baseline;
}
.code-chip .hash { color: var(--terracotta); }

/* Notice box */
.notice { background: var(--paper); border-radius: var(--radius); padding: 16px 20px; border: 1px solid var(--line); margin: 12px 0; border-left: 3px solid var(--olive); }
.notice.accent { border-left-color: var(--terracotta); }
.notice-title { font-family: var(--serif); font-style: italic; font-size: 17px; color: var(--ink); margin-bottom: 6px; }
.notice p { color: var(--ink-soft); font-size: 14px; line-height: 1.6; margin: 0; }
.notice ul { margin-top: 8px; padding-left: 18px; font-size: 14px; color: var(--ink-soft); }
.notice ul li { margin-bottom: 4px; }
.notice a { color: var(--terracotta); text-decoration: none; font-weight: 500; }
.notice a:hover { text-decoration: underline; }

/* Place card — usata in Quartiere e Milano per luoghi */
.place-grid { display: grid; gap: 12px; margin: 0 22px 24px; }
.place { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; display: block; text-decoration: none; color: var(--ink); transition: all 0.2s ease; }
.place:hover, .place:active { transform: translateY(-1px); box-shadow: var(--shadow-sm); border-color: var(--ink-soft); }
.place-cat { font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--terracotta); font-weight: 600; margin-bottom: 6px; }
.place-name { font-family: var(--serif); font-size: 22px; line-height: 1.15; color: var(--ink); margin-bottom: 4px; }
.place-desc { font-size: 14px; color: var(--ink-soft); line-height: 1.5; }
.place-meta { display: flex; gap: 14px; font-size: 12px; color: var(--ink-mute); margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--line); }

/* Section list (per ranges di info, casa/check-out) */
.info-list { padding: 0 22px 32px; }
.info-item { padding: 22px 0; border-bottom: 1px solid var(--line); }
.info-item:last-child { border-bottom: none; }
.info-item h3 { font-family: var(--serif); font-size: 22px; font-weight: 400; line-height: 1.2; margin-bottom: 8px; color: var(--ink); }
.info-item h3 em { color: var(--terracotta); font-style: italic; }
.info-item p { color: var(--ink-soft); font-size: 15.5px; line-height: 1.6; margin-bottom: 10px; }
.info-item p:last-child { margin-bottom: 0; }
.info-item strong { color: var(--ink); }
.info-item .info-meta { font-size: 13px; color: var(--ink-mute); font-style: italic; }

/* PDF / external link card */
.pdf-card { display: flex; align-items: center; gap: 16px; padding: 18px 20px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--ink); margin: 0 22px 16px; transition: all 0.2s ease; }
.pdf-card:hover, .pdf-card:active { transform: translateY(-1px); box-shadow: var(--shadow-sm); border-color: var(--terracotta); }
.pdf-card-icon { width: 42px; height: 42px; flex-shrink: 0; border-radius: 10px; background: var(--terracotta); color: var(--cream); display: flex; align-items: center; justify-content: center; }
.pdf-card-icon svg { width: 22px; height: 22px; }
.pdf-card-text { flex: 1; }
.pdf-card-text .pdf-title { font-family: var(--serif); font-size: 18px; line-height: 1.2; color: var(--ink); margin-bottom: 2px; }
.pdf-card-text .pdf-sub { font-size: 12px; letter-spacing: 0.04em; color: var(--ink-mute); }
.pdf-card-arrow { color: var(--ink-mute); flex-shrink: 0; }
.pdf-card-arrow svg { width: 18px; height: 18px; }

.help { margin: 48px 22px 0; padding: 36px 28px 40px; background: var(--ink); color: var(--cream); border-radius: var(--radius-lg); text-align: center; position: relative; overflow: hidden; }
.help::before { content: ''; position: absolute; top: -50%; right: -20%; width: 80%; height: 200%; background: radial-gradient(circle, rgba(181,72,46,0.25) 0%, transparent 60%); pointer-events: none; }
.help-eyebrow { font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--terracotta); font-weight: 600; margin-bottom: 14px; }
.help h2 { font-family: var(--serif); font-style: italic; font-size: 30px; font-weight: 400; line-height: 1.1; margin-bottom: 12px; }
.help p { color: rgba(245,239,230,0.75); font-size: 15px; margin-bottom: 22px; max-width: 320px; margin-left: auto; margin-right: auto; }
.help-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; position: relative; z-index: 1; }
.help-actions .btn { background: rgba(245,239,230,0.08); border-color: rgba(245,239,230,0.2); color: var(--cream); flex: 0 1 auto; min-width: 130px; }
.help-actions .btn:hover, .help-actions .btn:active { background: var(--terracotta); border-color: var(--terracotta); }

footer { text-align: center; padding: 40px 22px 50px; font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-mute); font-weight: 600; }
footer .brand-foot { font-family: var(--serif); font-style: italic; font-size: 18px; text-transform: none; letter-spacing: 0; color: var(--ink-soft); margin-bottom: 6px; font-weight: 400; }

.toast { position: fixed; bottom: 28px; left: 50%; transform: translateX(-50%) translateY(120%); background: var(--ink); color: var(--cream); padding: 12px 22px; border-radius: 999px; font-size: 13px; font-weight: 500; letter-spacing: 0.02em; box-shadow: var(--shadow-lg); transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.3s ease, visibility 0.3s; z-index: 200; opacity: 0; visibility: hidden; pointer-events: none; }
.toast.show { transform: translateX(-50%) translateY(0); opacity: 1; visibility: visible; }

/* Accordion (collassabile) — usato per non far scorrere troppo */
.accordion-group { padding: 0 22px 32px; }
.accordion { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 10px; overflow: hidden; }
.accordion summary { padding: 18px 22px; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 12px; font-family: var(--serif); font-weight: 400; font-size: 22px; letter-spacing: -0.01em; line-height: 1.15; color: var(--ink); list-style: none; transition: background 0.2s ease; }
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::marker { display: none; content: ''; }
.accordion summary:hover { background: var(--cream-deep); }
.accordion summary .acc-label { display: flex; align-items: center; gap: 12px; flex: 1; }
.accordion summary .acc-icon { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; flex-shrink: 0; color: var(--terracotta); }
.accordion summary .acc-icon svg { width: 100%; height: 100%; stroke: currentColor; stroke-width: 1.5; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.accordion summary .chevron { width: 18px; height: 18px; color: var(--terracotta); transition: transform 0.25s ease; flex-shrink: 0; }

/* Card aeroporto — per Check-out · sezione aeroporti */
.airport-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 18px 16px; margin-bottom: 12px; border-left: 3px solid var(--terracotta); }
.airport-card .airport-name { font-family: var(--serif); font-style: italic; font-size: 22px; color: var(--terracotta); line-height: 1.15; margin-bottom: 10px; display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.airport-card .airport-code { font-family: var(--sans); font-style: normal; font-size: 11px; letter-spacing: 0.18em; color: var(--ink-mute); font-weight: 600; text-transform: uppercase; }
.airport-card ul { margin: 0; padding-left: 18px; list-style: none; }
.airport-card ul li { font-size: 14.5px; line-height: 1.55; color: var(--ink-soft); margin-bottom: 8px; position: relative; padding-left: 4px; }
.airport-card ul li::before { content: ''; position: absolute; left: -14px; top: 9px; width: 6px; height: 6px; border-radius: 50%; background: var(--terracotta); opacity: 0.5; }
.airport-card ul li:last-child { margin-bottom: 0; }
.airport-card ul li strong { color: var(--ink); font-weight: 600; }

/* Icone inline a tratto sottile (per testo nel corpo) */
.icon-line { display: inline-flex; align-items: center; justify-content: center; width: 1em; height: 1em; vertical-align: -0.15em; color: var(--terracotta); }
.icon-line svg { width: 100%; height: 100%; stroke: currentColor; stroke-width: 1.5; fill: none; stroke-linecap: round; stroke-linejoin: round; }

/* Restaurant card — per Quartiere ristoranti */
.resto-intro { font-size: 13px; color: var(--ink-mute); margin-bottom: 14px; font-style: italic; }
.resto-card { background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; margin-top: 12px; display: block; text-decoration: none; color: var(--ink); transition: all 0.2s ease; }
.resto-card:hover, .resto-card:active { border-color: var(--terracotta); background: var(--paper); transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.resto-card .resto-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; margin-bottom: 8px; }
.resto-card .resto-title { flex: 1; }
.resto-card .resto-name { font-family: var(--serif); font-size: 20px; line-height: 1.15; color: var(--ink); margin-bottom: 4px; }
.resto-card .resto-cuisine { font-size: 13px; color: var(--ink-soft); font-style: italic; line-height: 1.3; }
.resto-card .resto-price { font-size: 13px; color: var(--terracotta); font-weight: 600; letter-spacing: 0.05em; flex-shrink: 0; font-family: var(--serif); }
.resto-card .resto-rating { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; color: var(--ink-soft); margin-top: 4px; font-weight: 500; }
.resto-card .resto-rating svg { width: 13px; height: 13px; fill: #C9A227; }
.resto-card .resto-rating .reviews { color: var(--ink-mute); font-weight: 400; }
.resto-card .resto-meta { font-size: 12.5px; color: var(--ink-mute); line-height: 1.5; margin-top: 6px; }
.resto-card .resto-foot { margin-top: 12px; padding-top: 10px; border-top: 1px dashed var(--line); display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 12px; color: var(--ink-mute); letter-spacing: 0.02em; }
.resto-card .resto-distance { display: inline-flex; align-items: center; gap: 6px; }
.resto-card .resto-distance svg { width: 13px; height: 13px; stroke: var(--ink-mute); fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.resto-card .resto-link { color: var(--terracotta); font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; display: inline-flex; align-items: center; gap: 4px; }
.resto-card:hover .resto-link svg { transform: translate(2px, -2px); }
.resto-card .resto-link svg { width: 11px; height: 11px; stroke: currentColor; fill: none; stroke-width: 2; transition: transform 0.2s ease; }

/* Tour timeline — per Milano */
.tour-stops { margin: 16px 0 18px; position: relative; }
.tour-stop { position: relative; padding: 14px 0 14px 58px; display: block; text-decoration: none; color: var(--ink); }
.tour-stop:not(:last-child)::after { content: ''; position: absolute; left: 22px; top: 56px; bottom: -8px; width: 0; border-left: 2px dashed var(--terracotta); opacity: 0.45; }
.tour-stop .stop-num { position: absolute; left: 4px; top: 14px; width: 38px; height: 38px; border-radius: 50%; background: var(--cream); border: 1.5px solid var(--terracotta); color: var(--terracotta); font-family: var(--serif); font-style: italic; font-size: 18px; display: flex; align-items: center; justify-content: center; z-index: 1; transition: all 0.2s ease; }
.tour-stop:hover .stop-num, .tour-stop:active .stop-num { background: var(--terracotta); color: var(--cream); }
.tour-stop .stop-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.tour-stop .stop-name { font-family: var(--serif); font-size: 19px; line-height: 1.15; color: var(--ink); margin-bottom: 4px; flex: 1; }
.tour-stop .stop-arrow { color: var(--terracotta); opacity: 0; transition: opacity 0.2s ease; flex-shrink: 0; }
.tour-stop:hover .stop-arrow { opacity: 1; }
.tour-stop .stop-arrow svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 2; }
.tour-stop .stop-desc { font-size: 13.5px; color: var(--ink-soft); line-height: 1.55; }
.tour-stop strong { color: var(--ink); font-weight: 600; }
.tour-full-route { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 18px; padding: 16px 18px; background: var(--ink); color: var(--cream); border-radius: 12px; text-decoration: none; font-family: var(--sans); font-weight: 600; font-size: 13px; letter-spacing: 0.04em; transition: all 0.25s ease; }
.tour-full-route:hover, .tour-full-route:active { background: var(--terracotta); }
.tour-full-route svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.tour-summary-bar { display: flex; gap: 18px; flex-wrap: wrap; margin-bottom: 14px; padding: 10px 14px; background: rgba(181,72,46,0.06); border-radius: 10px; font-size: 12px; color: var(--ink-soft); }
.tour-summary-bar span { display: inline-flex; align-items: center; gap: 6px; font-weight: 500; }
.tour-summary-bar strong { color: var(--ink); font-weight: 600; font-family: var(--serif); font-size: 14px; }
.accordion[open] summary .chevron { transform: rotate(180deg); }
.accordion-body { padding: 4px 20px 20px; color: var(--ink-soft); font-size: 14.5px; line-height: 1.65; border-top: 1px dashed var(--line); }
.accordion-body p { margin-bottom: 10px; }
.accordion-body p:last-child { margin-bottom: 0; }
.accordion-body strong { color: var(--ink); font-weight: 600; }
.accordion-body ul { margin-top: 8px; margin-bottom: 8px; padding-left: 18px; }
.accordion-body ul li { margin-bottom: 4px; }
.accordion-body ol { margin-top: 8px; margin-bottom: 8px; padding-left: 22px; }
.accordion-body ol li { margin-bottom: 8px; }
.accordion-body .meta { font-size: 12px; color: var(--ink-mute); font-style: italic; margin-top: 6px; }

/* WiFi credentials — rete e password con stessa altezza */
.wifi-row { background: var(--ink); color: var(--cream); padding: 22px 24px; display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 92px; }
.wifi-row + .wifi-row { border-top: 1px solid rgba(245,239,230,0.08); }
.wifi-row .key { font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--cream-deep); opacity: 0.7; font-weight: 600; margin-bottom: 8px; }
.wifi-row .val { font-family: var(--serif); font-size: 26px; letter-spacing: 0.04em; color: var(--cream); line-height: 1.1; }

/* WiFi QR code — piccolo, per un secondo dispositivo */
.wifi-qr-mini { background: var(--paper); padding: 14px 20px; display: flex; align-items: center; gap: 16px; border-top: 1px dashed var(--line); }
.wifi-qr-mini canvas { width: 88px !important; height: 88px !important; max-width: 88px; flex-shrink: 0; border-radius: 6px; display: block; }
.wifi-qr-text { flex: 1; }
.wifi-qr-text .qr-title { font-family: var(--serif); font-size: 16px; color: var(--ink); line-height: 1.2; margin-bottom: 4px; }
.wifi-qr-text .qr-meta { font-size: 12px; color: var(--ink-soft); line-height: 1.4; }

@media (min-width: 720px) {
  .wifi-row .val { font-size: 32px; }
  .wifi-qr-mini canvas { width: 96px !important; height: 96px !important; max-width: 96px; }
}

@media (min-width: 720px) {
  .accordion-group { max-width: 920px; margin: 0 auto; padding: 0 48px 48px; }
  .accordion summary { font-size: 26px; padding: 22px 26px; }
  .accordion-body { font-size: 16px; padding: 4px 26px 26px; }
  .accordion summary .acc-icon { width: 24px; height: 24px; }
}

@media (min-width: 720px) {
  body { font-size: 17px; }
  .topbar { padding: 18px 48px; }
  .hero { padding: 88px 48px 56px; max-width: 920px; margin: 0 auto; }
  .hero h1 { font-size: 96px; }
  .hero-sub { font-size: 24px; }
  .essential { margin: 0 auto 80px; max-width: 720px; }
  .essential-cell .val { font-size: 24px; }
  .code-row .code { font-size: 44px; }
  .actions { margin: 0 auto 88px; max-width: 720px; }
  .section-title { padding: 0 48px; font-size: 56px; max-width: 920px; margin: 0 auto 8px; }
  .section-sub { padding: 0 48px; font-size: 20px; max-width: 920px; margin: 0 auto 48px; }
  .steps { padding: 0 48px 48px; max-width: 920px; margin: 0 auto; }
  .step { padding: 36px 0 36px 84px; }
  .step-num { font-size: 56px; top: 32px; }
  .step h3 { font-size: 30px; }
  .step p { font-size: 17px; }
  .place-grid { max-width: 920px; margin: 0 auto 32px; padding: 0 48px; grid-template-columns: 1fr 1fr; }
  .info-list { max-width: 920px; margin: 0 auto; padding: 0 48px 48px; }
  .info-item h3 { font-size: 26px; }
  .info-item p { font-size: 17px; }
  .pdf-card { max-width: 720px; margin: 0 auto 16px; }
  .help { margin: 64px auto 0; max-width: 720px; padding: 56px 48px 60px; }
  .help h2 { font-size: 40px; }
  footer { padding: 56px 22px 64px; }

  /* Tab bar: su desktop diventa una nav orizzontale sticky sotto la topbar
     Variante 3-voci per Repetti */
  body { padding-bottom: 0; }
  .tabbar {
    position: sticky;
    top: 67px;
    bottom: auto;
    left: 0;
    right: 0;
    background: var(--cream);
    border-top: none;
    border-bottom: 1px solid rgba(216,207,192,0.5);
    box-shadow: 0 4px 16px rgba(28,26,23,0.04);
    grid-template-columns: repeat(3, auto);
    justify-content: center;
    gap: 8px;
    padding: 6px 22px;
    max-width: none;
    transform: none;
    border-radius: 0;
    z-index: 99;
  }
  .tabbar-item {
    flex-direction: row;
    color: var(--ink-mute);
    font-size: 14px;
    padding: 10px 20px;
    border-radius: 10px;
    gap: 10px;
    transition: all 0.2s ease;
  }
  .tabbar-item:not(.active):hover { color: var(--ink); background: rgba(216,207,192,0.3); }
  .tabbar-item.active { color: var(--terracotta); background: rgba(181,72,46,0.08); }
  .tabbar-item svg { width: 18px; height: 18px; }
}

[data-lang-it], [data-lang-en] { display: inline; }
body.lang-en [data-lang-it] { display: none; }
body.lang-it [data-lang-en] { display: none; }
