/* Guida Venezia — stile ispirato a davidetomio.it: Josefin Sans, oro #d6bb51, bronzo #af9168 */

@font-face { font-family: 'Josefin Sans'; font-style: normal; font-weight: 300; font-display: swap; src: url('/fonts/josefin-sans-latin-300-normal.woff2') format('woff2'); }
@font-face { font-family: 'Josefin Sans'; font-style: normal; font-weight: 400; font-display: swap; src: url('/fonts/josefin-sans-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Josefin Sans'; font-style: italic; font-weight: 400; font-display: swap; src: url('/fonts/josefin-sans-latin-400-italic.woff2') format('woff2'); }
@font-face { font-family: 'Josefin Sans'; font-style: normal; font-weight: 700; font-display: swap; src: url('/fonts/josefin-sans-latin-700-normal.woff2') format('woff2'); }

:root {
  --gold: #d6bb51;
  --gold-soft: rgba(214, 187, 81, 0.16);
  --bronze: #af9168;
  --accent-text: #7d6238;
  --ink: #1c1c1c;
  --bg: #f4f4f4;
  --card: #ffffff;
  --soft: #fbf8f1;
  --text: #333333;
  --muted: #6a6a6a;
  --line: #e7e2d6;
  --field: #ffffff;
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 14px 34px rgba(0, 0, 0, 0.12);
  --header-bg: rgba(214, 187, 81, 0.78);
  --header-ink: #1c1c1c;
  --header-line: rgba(0, 0, 0, 0.1);
  --ok: #2f7d4f; --ok-bg: rgba(47, 125, 79, 0.12);
  --warn: #946200; --warn-bg: rgba(214, 150, 0, 0.16);
  --err: #b3362b; --err-bg: rgba(179, 54, 43, 0.12);
  --radius: 12px;
  --control-h: 49.6px; /* altezza di ogni campo (casella, menù, data, prefisso) e dei pulsanti accanto: i menù a tendina da soli sarebbero più bassi */
  --header-h: 84px;
  --art-sky: #f4ecd0; --art-sun: #d6bb51; --art-ink: #6b5a3e; --art-cut: #f4ecd0; --art-water: #af9168; --art-wave: #d6bb51;
  color-scheme: light;
}
[data-theme='dark'] {
  --gold-soft: rgba(214, 187, 81, 0.14);
  --accent-text: #d6bb51;
  --bg: #171717;
  --card: #232323;
  --soft: #1e1e1e;
  --text: #e2e2e2;
  --muted: #a3a3a3;
  --line: #34322d;
  --field: #1b1b1b;
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 14px 34px rgba(0, 0, 0, 0.5);
  --header-bg: rgba(30, 30, 30, 0.82);
  --header-ink: #d6bb51;
  --header-line: rgba(255, 255, 255, 0.08);
  --ok: #6fcf97; --ok-bg: rgba(111, 207, 151, 0.12);
  --warn: #f2c94c; --warn-bg: rgba(242, 201, 76, 0.12);
  --err: #ff8a80; --err-bg: rgba(255, 138, 128, 0.12);
  --art-sky: #26231c; --art-sun: #d6bb51; --art-ink: #121110; --art-cut: #d6bb51; --art-water: #1a1914; --art-wave: #5c4f35;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; } }
body {
  margin: 0;
  font-family: 'Josefin Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
  transition: background-color 0.5s ease, color 0.4s ease;
}
[hidden] { display: none !important; }
img, svg { max-width: 100%; display: block; }
a { color: var(--accent-text); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--bronze); }
h1, h2, h3, h4 { line-height: 1.15; margin: 0 0 0.5em; color: var(--ink); font-weight: 700; }
[data-theme='dark'] h1, [data-theme='dark'] h2, [data-theme='dark'] h3, [data-theme='dark'] h4 { color: #f1ede2; }
h1 { font-size: clamp(2.1rem, 5.4vw, 3.5rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.6rem, 3.6vw, 2.3rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
.lead { font-size: 1.2rem; color: var(--muted); font-weight: 300; max-width: 60ch; }
.muted { color: var(--muted); }
.small { font-size: 0.9rem; }
.center { text-align: center; }
.center .lead, .center.lead { margin-left: auto; margin-right: auto; }
.eyebrow { text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.78rem; font-weight: 700; color: var(--accent-text); margin-bottom: 0.8rem; }
.eyebrow.small { margin-bottom: 0.3rem; font-size: 0.72rem; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 5000; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 6px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
ul.plain, ol.plain { list-style: none; margin: 0; padding: 0; }

.wrap { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 20px; }
.wrap.narrow, .narrow { max-width: 780px; }
.wrap.narrow { margin-left: auto; margin-right: auto; }
.section { padding: 76px 0; }
.section.tight { padding: 24px 0 72px; }
.section-alt { background: var(--soft); border-block: 1px solid var(--line); }
.spaced { margin-top: 2.4rem; }
.h-sub { font-size: 1.5rem; margin-bottom: 0.3rem; }
.sub-lead { margin-bottom: 1.4rem; }

/* ───────── Header ───────── */
.site-header, .admin-bar {
  position: fixed; inset: 0 0 auto 0; z-index: 1300;
  height: var(--header-h);
  background: var(--header-bg);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  color: var(--header-ink);
  border-bottom: 1px solid var(--header-line);
  transition: height 0.35s ease, box-shadow 0.35s ease, background-color 0.4s ease;
  display: flex; align-items: center;
}
.site-header.shrink { height: 62px; box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18); }
.header-inner, .admin-bar-inner { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 20px; display: flex; align-items: center; gap: 24px; }
.brand { display: flex; flex-direction: column; text-decoration: none; color: var(--header-ink); line-height: 1.1; margin-right: auto; min-width: 0; }
.brand:hover { color: var(--header-ink); }
.brand-name { font-weight: 700; font-size: 1.55rem; letter-spacing: 0.01em; transition: font-size 0.35s ease; white-space: nowrap; }
/* Il sottotitolo sta sempre su una riga (a capo, la seconda riga veniva tagliata dal max-height) e non viene mai ritagliato: si nasconde solo quando l'header si restringe. Il padding lascia spazio agli accenti sulle maiuscole (GUÍA, TURÍSTICO). */
.brand-sub { font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; opacity: 0.85; font-weight: 400; white-space: nowrap; transition: opacity 0.3s, max-height 0.3s; max-height: 3em; padding-top: 5px; margin-top: -5px; }
.site-header.shrink .brand-name { font-size: 1.25rem; }
.site-header.shrink .brand-sub { opacity: 0; max-height: 0; overflow: hidden; padding-top: 0; margin-top: 0; }
.main-nav { display: flex; gap: 26px; }
.main-nav a { color: var(--header-ink); text-decoration: none; font-weight: 700; font-size: 0.82rem; letter-spacing: 0.1em; text-transform: uppercase; padding: 6px 0; border-bottom: 2px solid transparent; transition: border-color 0.25s; white-space: nowrap; }
.main-nav a:hover, .main-nav a[aria-current] { border-color: currentColor; color: var(--header-ink); }
.header-tools { display: flex; align-items: center; gap: 8px; }
.tool { background: transparent; border: 1.5px solid currentColor; color: var(--header-ink); border-radius: 50px; min-width: 40px; height: 40px; padding: 0 12px; display: inline-flex; align-items: center; justify-content: center; font: inherit; font-weight: 700; font-size: 0.8rem; letter-spacing: 0.08em; cursor: pointer; text-decoration: none; transition: background-color 0.2s, color 0.2s; }
.tool:hover { background: var(--header-ink); color: var(--gold); }
[data-theme='dark'] .tool:hover { color: #1c1c1c; background: var(--gold); }
.lang-menu { position: relative; }
.lang-menu summary { list-style: none; user-select: none; }
.lang-menu summary::-webkit-details-marker { display: none; }
.lang-list { list-style: none; margin: 0; padding: 6px; position: absolute; right: 0; top: calc(100% + 10px); min-width: 150px; background: var(--card); color: var(--text); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg); z-index: 1400; }
.lang-list a { display: block; padding: 9px 12px; border-radius: 8px; color: var(--text); text-decoration: none; font-size: 0.95rem; white-space: nowrap; }
.lang-list a:hover { background: var(--gold-soft); }
.lang-list a[aria-current] { font-weight: 700; color: var(--accent-text); }
.side-menu .side-langs { display: flex; gap: 18px; flex-wrap: wrap; padding-top: 4px; }
.side-menu .side-langs .side-sub { padding: 6px 0; }
.theme-toggle svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; }
.theme-toggle .i-moon { display: none; } [data-theme='dark'] .theme-toggle .i-sun { display: none; } [data-theme='dark'] .theme-toggle .i-moon { display: inline-flex; }
.hamburger { display: none; width: 44px; height: 44px; border: 0; background: transparent; padding: 0; cursor: pointer; position: relative; color: var(--header-ink); }
.hamburger span { position: absolute; left: 10px; right: 10px; height: 2.5px; background: currentColor; border-radius: 2px; transition: transform 0.35s, opacity 0.2s, top 0.35s; }
.hamburger span:nth-child(1) { top: 14px; } .hamburger span:nth-child(2) { top: 21px; } .hamburger span:nth-child(3) { top: 28px; }
.menu-open .hamburger span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.menu-open .hamburger span:nth-child(2) { opacity: 0; }
.menu-open .hamburger span:nth-child(3) { top: 21px; transform: rotate(-45deg); }
.progress { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: transparent; }
.progress-bar { height: 100%; width: 0; background: var(--ink); }
[data-theme='dark'] .progress-bar { background: var(--gold); }

.side-menu { position: fixed; top: 0; right: 0; width: min(86vw, 380px); height: 100%; background: var(--bronze); z-index: 1200; padding: 96px 28px 32px; display: flex; flex-direction: column; gap: 6px; transform: translateX(100%); transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1); box-shadow: -8px 0 28px rgba(0, 0, 0, 0.25); overflow-y: auto; }
[data-theme='dark'] .side-menu { background: #2a261d; }
.side-menu a { color: #fff; text-decoration: none; font-size: 1.5rem; font-weight: 700; padding: 10px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.2); }
.side-menu a[aria-current] { color: var(--ink); }
.side-menu a:hover, .side-menu a:focus-visible { color: #fff; opacity: 0.85; }
.side-menu a[aria-current]:hover { color: var(--ink); opacity: 1; }
[data-theme='dark'] .side-menu a[aria-current] { color: var(--gold); }
.side-menu .side-sub { font-size: 1rem; font-weight: 400; opacity: 0.9; border: 0; padding: 6px 0; }
.menu-open .side-menu { transform: none; }
.scrim { position: fixed; inset: 0; background: rgba(0, 0, 0, 0.45); z-index: 1100; opacity: 0; transition: opacity 0.4s; }
.menu-open .scrim { opacity: 1; }

/* ───────── Pulsanti ───────── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 13px 28px; border-radius: 50px; border: 2px solid transparent; font: inherit; font-weight: 700; font-size: 0.85rem; letter-spacing: 0.1em; text-transform: uppercase; text-decoration: none; cursor: pointer; line-height: 1.2; text-align: center; transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s, background-color 0.25s, color 0.25s, border-color 0.25s; }
.btn:hover { transform: translateY(-3px); box-shadow: 0 10px 20px rgba(175, 145, 104, 0.25); }
.btn:active { transform: translateY(0); }
.btn[disabled], .btn[aria-disabled='true'] { opacity: 0.45; cursor: not-allowed; transform: none; box-shadow: none; pointer-events: none; }
.btn-gold { background: var(--gold); color: var(--ink); border-color: var(--gold); }
.btn-gold:hover { background: #e2ca66; color: var(--ink); }
.btn-dark { background: var(--ink); color: var(--gold); border-color: var(--ink); }
.btn-dark:hover { background: #000; color: #f0d96e; }
.header-cta { background: var(--ink); color: var(--gold); }
[data-theme='dark'] .header-cta { background: var(--gold); color: var(--ink); border-color: var(--gold); }
/* «Login agenzie»: accanto a Prenota; su schermi stretti resta come icona */
.header-login { text-transform: uppercase; gap: 8px; white-space: nowrap; }
.header-login svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.header-login .login-icon { display: none; }
.side-menu a.side-agency { display: flex; align-items: center; justify-content: center; gap: 10px; border: 2px solid rgba(255, 255, 255, 0.85); border-radius: 50px; font-size: 1rem; padding: 12px 18px; margin-bottom: 14px; text-transform: uppercase; letter-spacing: 0.08em; }
.side-menu a.side-agency svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.btn-outline { background: transparent; color: var(--accent-text); border-color: var(--bronze); }
.btn-outline:hover { background: var(--bronze); color: #fff; }
.btn-outline-light { background: transparent; color: #f1ede2; border-color: rgba(255, 255, 255, 0.55); }
.btn-outline-light:hover { background: #f1ede2; color: var(--ink); }
.btn-outline-dark { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-outline-dark:hover { background: var(--ink); color: var(--gold); }
.btn-danger { background: var(--err); color: #fff; border-color: var(--err); }
.btn-link-danger { background: none; border: 0; color: var(--err); text-transform: none; letter-spacing: 0; text-decoration: underline; font-weight: 400; padding: 8px 0; font-size: 0.95rem; }
.btn-link-danger:hover { transform: none; box-shadow: none; }
.btn-sm { padding: 8px 18px; font-size: 0.76rem; }
.btn-lg { padding: 16px 32px; font-size: 0.95rem; }
.btn-block { display: flex; width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 1.4rem; }
.btn-row.center { justify-content: center; }
.btn.is-busy { opacity: 0.6; pointer-events: none; }

/* ───────── Chip / avvisi ───────── */
.chip { display: inline-block; padding: 3px 11px; border-radius: 50px; font-size: 0.74rem; font-weight: 700; letter-spacing: 0.04em; background: var(--gold-soft); color: var(--accent-text); white-space: nowrap; }
.chip-accent { background: var(--gold); color: var(--ink); }
.chip-ok { background: var(--ok-bg); color: var(--ok); } .chip-warn { background: var(--warn-bg); color: var(--warn); } .chip-err { background: var(--err-bg); color: var(--err); }
.chip-invite { position: absolute; top: 12px; right: 12px; font-weight: 700; }
.chip-float { position: absolute; top: 12px; left: 12px; background: rgba(255, 255, 255, 0.92); color: var(--ink); backdrop-filter: blur(4px); }
.chip-link { text-decoration: none; padding: 8px 16px; border: 1px solid var(--bronze); font-size: 0.85rem; }
.chip-link:hover { background: var(--bronze); color: #fff; }
.date-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.notice { padding: 12px 16px; border-radius: 10px; border: 1px solid; margin-bottom: 1rem; font-size: 0.97rem; }
.notice-ok { background: var(--ok-bg); border-color: var(--ok); color: var(--ok); }
.notice-err { background: var(--err-bg); border-color: var(--err); color: var(--err); }
.notice-info { background: var(--gold-soft); border-color: var(--bronze); color: var(--text); }

/* ───────── Card e griglie ───────── */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.card.pad, .pad { padding: 26px; }
.grid { display: grid; gap: 28px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
a.card { text-decoration: none; color: inherit; display: flex; flex-direction: column; transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.4s, border-color 0.3s; }
a.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--bronze); }
.card-media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--soft); }
.card-media svg, .card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
a.card:hover .card-media svg, a.card:hover .card-media img { transform: scale(1.05); }
.card-body { padding: 22px 22px 20px; display: flex; flex-direction: column; flex: 1; }
.card-body h3 { margin-bottom: 0.35em; }
.card-body p.muted { font-size: 0.97rem; margin-bottom: 0.8em; }
.meta { list-style: none; display: flex; gap: 8px 16px; flex-wrap: wrap; padding: 0; margin: 0 0 1rem; font-size: 0.85rem; color: var(--muted); font-weight: 700; letter-spacing: 0.03em; }
.meta li + li::before { content: '·'; margin-right: 16px; color: var(--bronze); }
.card-foot { margin: auto 0 0; display: flex; align-items: center; gap: 10px; padding-top: 14px; border-top: 1px solid var(--line); }
.price { font-weight: 700; font-size: 1.3rem; color: var(--ink); }
[data-theme='dark'] .price { color: var(--gold); }
.price small { font-size: 0.8rem; font-weight: 400; color: var(--muted); }
.arrow { margin-left: auto; font-size: 1.4rem; color: var(--bronze); transition: transform 0.3s; }
a.card:hover .arrow { transform: translateX(5px); }

.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 36px; flex-wrap: wrap; }
.section-head h2 { margin-bottom: 0.2em; }
.section-head .lead { margin: 0; }

/* ───────── Hero ───────── */
.hero { padding: calc(var(--header-h) + 44px) 0 60px; background: radial-gradient(900px 420px at 85% 0%, var(--gold-soft), transparent 70%); }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }
.hero h1 { margin-bottom: 0.4em; }
.hero-art { border-radius: 22px; overflow: hidden; box-shadow: var(--shadow-lg); aspect-ratio: 4 / 3.2; border: 1px solid var(--line); }
.hero-art svg { width: 100%; height: 100%; }
.hero-links { margin-top: 1.2rem; font-weight: 700; font-size: 0.95rem; }
.hero-b2b { padding-bottom: 40px; }

/* Le lingue in cui conduco i tour, in evidenza (home e pagina agenzie) */
.lang-badge { margin: 0 0 1.4rem; }
.lang-badge-title { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; font-size: 0.98rem; color: var(--ink); }
[data-theme='dark'] .lang-badge-title { color: #f1ede2; }
.i-globe { width: 22px; height: 22px; flex: none; stroke: var(--bronze); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.lang-chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0; }
.lang-chips li { padding: 6px 16px; border-radius: 50px; background: var(--gold); color: var(--ink); font-weight: 700; font-size: 0.92rem; letter-spacing: 0.02em; }
.lang-badge-sub { margin: 10px 0 0; color: var(--muted); font-size: 0.95rem; max-width: 52ch; }

.trust { padding: 8px 0 12px; }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; border-block: 1px solid var(--line); padding-block: 22px; }
.trust-grid p { margin: 0; display: flex; gap: 12px; align-items: flex-start; font-size: 0.95rem; line-height: 1.35; color: var(--muted); }
.trust-grid strong { color: var(--ink); font-size: 1rem; }
[data-theme='dark'] .trust-grid strong { color: #f1ede2; }
.i-check { width: 22px; height: 22px; flex: none; stroke: var(--bronze); fill: none; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; margin-top: 2px; }
.i-cross { width: 20px; height: 20px; flex: none; stroke: var(--muted); fill: none; stroke-width: 2.2; stroke-linecap: round; margin-top: 3px; }

.why-item { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; position: relative; box-shadow: var(--shadow); }
.why-n { position: absolute; top: 14px; right: 20px; font-size: 3.4rem; font-weight: 700; color: var(--gold-soft); line-height: 1; }
[data-theme='dark'] .why-n { color: rgba(214, 187, 81, 0.18); }
.why-item p { margin: 0; color: var(--muted); }
.steps { list-style: none; counter-reset: s; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; padding: 0; margin: 0; }
.steps-4 { grid-template-columns: repeat(4, 1fr); }
.steps li { display: flex; gap: 16px; align-items: flex-start; }
.steps p { color: var(--muted); margin: 0; }
.step-n { flex: none; width: 42px; height: 42px; border-radius: 50%; background: var(--gold); color: var(--ink); font-weight: 700; display: grid; place-items: center; font-size: 1.1rem; }
.benefit { padding: 24px; border-left: 3px solid var(--gold); background: var(--card); border-radius: 0 var(--radius) var(--radius) 0; box-shadow: var(--shadow); }
.benefit p { margin: 0; color: var(--muted); }

.band { padding: 64px 0; }
.band-dark { background: #1c1c1c; color: #e8e4d8; }
.band-dark h2 { color: var(--gold); }
.band-dark .lead { color: #c9c4b4; }
.band-dark .eyebrow { color: var(--gold); }
.band-dark .i-check { stroke: var(--gold); }
.band-gold { background: var(--gold); color: var(--ink); }
.band-gold h2, .band-gold .lead { color: var(--ink); }
.band-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; }
.check-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; }
.check-list.compact { gap: 8px; font-size: 0.97rem; }
.muted-list { color: var(--muted); }

.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary { cursor: pointer; list-style: none; padding: 18px 40px 18px 0; font-weight: 700; font-size: 1.1rem; position: relative; color: var(--ink); }
[data-theme='dark'] .faq-item summary { color: #f1ede2; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; position: absolute; right: 6px; top: 50%; transform: translateY(-50%); font-size: 1.6rem; color: var(--bronze); transition: transform 0.3s; }
.faq-item[open] summary::after { content: '−'; }
.faq-a { padding: 0 0 20px; color: var(--muted); max-width: 64ch; }

.breadcrumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 0.85rem; color: var(--muted); margin-bottom: 1rem; }
.breadcrumbs a { color: var(--muted); }
.page-head { padding: calc(var(--header-h) + 26px) 0 8px; }
.page-head h1 { margin-bottom: 0.25em; }

/* ───────── Pagina tour ───────── */
.tour-hero { padding-top: var(--header-h); }
.tour-hero-art { height: clamp(180px, 28vw, 340px); overflow: hidden; border-bottom: 1px solid var(--line); }
.tour-hero-art svg, .tour-hero-art img { width: 100%; height: 100%; object-fit: cover; }
.tour-layout.no-hero { padding-top: calc(var(--header-h) + 26px); }
.tour-banner { border-radius: 18px; overflow: hidden; aspect-ratio: 16 / 7; margin: 0 0 1.6rem; border: 1px solid var(--line); box-shadow: var(--shadow); }
.tour-banner svg, .tour-banner img { width: 100%; height: 100%; object-fit: cover; }
.tour-layout { display: grid; grid-template-columns: minmax(0, 1fr) 390px; gap: 48px; padding-top: 32px; padding-bottom: 80px; align-items: start; }
.tour-side { position: sticky; top: calc(var(--header-h) + 14px); max-height: calc(100vh - var(--header-h) - 28px); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; padding: 6px 6px 14px; margin: -6px; } /* il pannello di prenotazione scorre da solo, se è più alto dello schermo */
.facts { list-style: none; padding: 0; margin: 0 0 1.8rem; display: grid; grid-template-columns: repeat(4, auto); gap: 10px 28px; justify-content: start; padding-block: 16px; border-block: 1px solid var(--line); }
.facts li { display: flex; flex-direction: column; }
.fact-k { font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.fact-v { font-weight: 700; color: var(--ink); } [data-theme='dark'] .fact-v { color: #f1ede2; }
.prose { max-width: 68ch; }
.prose h2 { font-size: 1.6rem; margin-top: 1.8em; } .prose h3 { margin-top: 1.4em; }
.prose p, .prose li { line-height: 1.7; }
.prose ul, .prose ol { padding-left: 1.3em; } .prose li { margin-bottom: 0.4em; }
.prose blockquote { margin: 1.4em 0; padding: 12px 18px; border-left: 4px solid var(--gold); background: var(--gold-soft); border-radius: 0 10px 10px 0; }
.prose blockquote p { margin: 0; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin: 1.8rem 0; }
.info-box { background: var(--soft); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; margin: 1.8rem 0; }
.info-box h3 { font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent-text); margin: 0 0 4px; }
.info-box h3:not(:first-child) { margin-top: 14px; } .info-box p { margin: 0; }

.book-card { background: var(--card); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow-lg); padding: 24px; }
.book-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.price-big { font-size: 2rem; font-weight: 700; color: var(--ink); margin: 0; line-height: 1; } [data-theme='dark'] .price-big { color: var(--gold); }
.price-big small { font-size: 0.9rem; font-weight: 400; color: var(--muted); }
.field { display: block; margin-bottom: 14px; } .field .label, .label { display: block; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-bottom: 5px; }
.label em, .field em { font-style: normal; text-transform: none; letter-spacing: 0; font-weight: 400; opacity: 0.8; }
input, select, textarea { width: 100%; font: inherit; font-size: 1rem; color: var(--text); background: var(--field); border: 1.5px solid var(--line); border-radius: 10px; padding: 11px 14px; transition: border-color 0.2s, box-shadow 0.2s; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(214, 187, 81, 0.3); }
input[type='checkbox'], input[type='radio'] { width: auto; accent-color: var(--bronze); }
/* un'unica altezza per i campi: il menù a tendina e le ore/date del browser, da soli, vengono più bassi o più alti delle caselle di testo e affiancati non si allineano */
select:not([multiple]):not([size]), input[type='time'], input[type='date'], input[type='month'], input[type='datetime-local'], .dp-field, .combo-btn { height: var(--control-h); }
select.pax-select, .img-slot-form select { height: auto; } /* i due menù piccoli, di proposito */
/* pulsanti nelle righe di campi (moduli in linea, barre degli strumenti): alti come i campi accanto */
.inline-form .btn, .copy-form .btn, .day-tools .btn, .wait-row .btn { min-height: var(--control-h); }
textarea { resize: vertical; min-height: 90px; }
.stepper-field { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.stepper-field .label { margin: 0; }
.stepper { display: inline-flex; align-items: center; border: 1.5px solid var(--line); border-radius: 50px; overflow: hidden; background: var(--field); }
.stepper button { width: 44px; height: 42px; border: 0; background: transparent; font-size: 1.4rem; cursor: pointer; color: var(--accent-text); font-family: inherit; }
.stepper button:hover { background: var(--gold-soft); }
.stepper output { min-width: 36px; text-align: center; font-weight: 700; font-size: 1.1rem; }
/* adulti, bambini e infanti: tre righe con − e + (public/js/party.js); senza JavaScript restano le caselle numeriche */
.party { border: 0; margin: 0 0 14px; padding: 0; min-width: 0; }
.party legend { padding: 0; float: none; }
.party-rows { display: grid; gap: 8px; }
.party-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 8px 8px 14px; border: 1.5px solid var(--line); border-radius: 14px; background: var(--field); }
.party-name { display: block; margin: 0; font-weight: 700; line-height: 1.25; cursor: pointer; }
.party-name small { display: block; font-weight: 400; font-size: 0.8rem; color: var(--muted); letter-spacing: 0; text-transform: none; }
.party-stepper { display: inline-flex; align-items: center; flex: none; }
.party-stepper button { width: 38px; height: 38px; border: 1.5px solid var(--line); border-radius: 50%; background: var(--card); color: var(--accent-text); font: inherit; font-size: 1.3rem; line-height: 1; cursor: pointer; padding: 0; display: inline-grid; place-items: center; }
.party-stepper button:hover:not(:disabled) { background: var(--gold-soft); border-color: var(--bronze); }
.party-stepper button:disabled { opacity: 0.35; cursor: default; }
.party-stepper input { width: 3.2em; min-width: 0; height: 38px; border: 0; background: transparent; text-align: center; font-weight: 700; font-size: 1.1rem; padding: 0 2px; margin: 0; box-shadow: none; }
.party.is-ready .party-stepper input { -moz-appearance: textfield; appearance: textfield; }
.party.is-ready .party-stepper input::-webkit-outer-spin-button, .party.is-ready .party-stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.party-total { margin: 8px 2px 0; font-size: 0.9rem; font-weight: 700; color: var(--ink); }
.party-note, .party-max { margin: 4px 2px 0; } .party-max[hidden] { display: none; }
.party-compact .party-row { padding: 6px 6px 6px 12px; }
.party-compact .party-stepper button, .party-compact .party-stepper input { height: 34px; }
.party-compact .party-stepper button { width: 34px; }
.cal { margin: 6px 0 14px; transition: opacity 0.2s; } .cal.is-loading { opacity: 0.55; }
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.cal-title { text-transform: capitalize; font-size: 1.05rem; }
html[lang='es'] .cal-title { text-transform: none; } html[lang='es'] .cal-title::first-letter { text-transform: uppercase; } /* «octubre de 2026»: solo la prima lettera */
.cal-nav { width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid var(--line); background: var(--field); font-size: 1.4rem; line-height: 1; cursor: pointer; color: var(--accent-text); font-family: inherit; }
.cal-nav:hover:not(:disabled) { border-color: var(--bronze); background: var(--gold-soft); } .cal-nav:disabled { opacity: 0.3; cursor: not-allowed; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal-dow { text-align: center; font-size: 0.72rem; font-weight: 700; color: var(--muted); padding: 4px 0; letter-spacing: 0.06em; }
.cal-blank { display: block; aspect-ratio: 1; }
.cal-foot { min-height: 1.5em; margin: 8px 0 0; }
.cal-day { aspect-ratio: 1; border: 1.5px solid transparent; background: transparent; border-radius: 10px; font: inherit; font-size: 0.98rem; color: var(--muted); cursor: pointer; padding: 0; opacity: 0.4; }
.cal-day.is-avail { opacity: 1; background: var(--gold-soft); border-color: rgba(214, 187, 81, 0.6); color: var(--text); font-weight: 700; }
.cal-day.is-avail:hover { background: var(--gold); color: var(--ink); }
.cal-day.is-selected { background: var(--bronze); border-color: var(--bronze); color: #fff; }
.cal-day:disabled { cursor: default; }
.slots-wrap { margin-bottom: 12px; }
.slot-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.slot-btn { display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 9px 4px; border-radius: 10px; border: 1.5px solid var(--line); background: var(--field); font: inherit; cursor: pointer; color: var(--text); min-height: 46px; justify-content: center; }
.slot-btn strong { font-size: 1.02rem; } .slot-btn small { font-size: 0.7rem; color: var(--muted); line-height: 1.2; text-align: center; }
.slot-btn:hover { border-color: var(--bronze); background: var(--gold-soft); } .slot-btn.is-selected { background: var(--bronze); border-color: var(--bronze); color: #fff; } .slot-btn.is-selected small { color: #fff; }
.book-summary { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; background: var(--soft); border: 1px dashed var(--bronze); border-radius: 10px; margin-bottom: 12px; font-size: 0.95rem; }
.book-summary strong { font-size: 1.15rem; color: var(--ink); } [data-theme='dark'] .book-summary strong { color: var(--gold); }
.policy-note { margin: 12px 0 0; text-align: center; }
.noscript-form { margin-top: 12px; display: grid; gap: 8px; }
.mobile-cta { display: none; }

/* ───────── Blog ───────── */
.post-card .card-media { aspect-ratio: 16 / 9; }
.article { padding-top: calc(var(--header-h) + 26px); padding-bottom: 72px; max-width: 800px; }
.article-head h1 { font-size: clamp(2rem, 5vw, 3rem); }
.article-art { border-radius: 18px; overflow: hidden; aspect-ratio: 21 / 9; margin: 1.5rem 0 2rem; border: 1px solid var(--line); }
.article-art svg { width: 100%; height: 100%; }
.article-body { font-size: 1.12rem; }
.article-cta { margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--line); }
.tags { list-style: none; display: flex; gap: 8px; flex-wrap: wrap; padding: 0; margin: 0; }
.tags li { background: var(--gold-soft); color: var(--accent-text); font-size: 0.78rem; font-weight: 700; padding: 3px 12px; border-radius: 50px; }

/* ───────── Prenota / checkout ───────── */
.search-card { display: grid; grid-template-columns: 1fr 0.55fr 1.2fr auto; gap: 14px; align-items: end; }
.search-card .field { margin: 0; } .search-card .btn { height: var(--control-h); }
.search-card .kinds { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 4px 24px; border: 0; padding: 0; margin: 0; } .search-card .kinds .check { margin: 4px 0; }
.option-box { margin-top: 18px; padding: 16px 18px; border: 1.5px dashed var(--bronze); border-radius: 12px; background: var(--soft); } .option-box h3 { font-size: 1.05rem; margin: 0 0 6px; } .option-box p { margin: 0 0 12px; font-size: 0.95rem; color: var(--muted); }
.option-note { margin: 12px 0 0; }
.results { display: grid; gap: 18px; margin-top: 1rem; }
.result { display: grid; grid-template-columns: 220px 1fr; }
.result-media { position: relative; overflow: hidden; min-height: 150px; } .result-media svg, .result-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.result-body { padding: 20px 22px; } .result-body h3 { margin-bottom: 0.2em; } .result-body h3 a { text-decoration: none; color: inherit; }
.slot-list { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }
.slot { display: flex; flex-direction: column; align-items: center; padding: 10px 18px; border: 1.5px solid var(--bronze); border-radius: 12px; text-decoration: none; color: var(--text); background: var(--field); min-width: 92px; transition: background-color 0.2s, transform 0.2s; }
.slot:hover { background: var(--gold); color: var(--ink); transform: translateY(-2px); } .slot strong { font-size: 1.15rem; } .slot small { font-size: 0.72rem; color: var(--muted); } .slot:hover small { color: var(--ink); }
.empty { text-align: center; }
.checkout-grid { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 32px; align-items: start; }
.form h2 { font-size: 1.2rem; margin: 1.4rem 0 0.8rem; } .form h2:first-of-type { margin-top: 0; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(max(15rem, calc(50% - 8px)), 1fr)); gap: 0 16px; } /* due colonne, ma una sola se ognuna scenderebbe sotto i 15rem: i campi non si schiacciano */
.form-grid > .span-2 { grid-column: 1 / -1; }
.form-grid.form-grid-3 { grid-template-columns: 6rem minmax(0, 1fr) 6rem; } .form-grid.form-grid-3.is-two { grid-template-columns: 6rem minmax(0, 1fr); }
@media (max-width: 520px) { .form-grid.form-grid-3, .form-grid.form-grid-3.is-two { grid-template-columns: 6rem minmax(0, 1fr); } } /* sul telefono la provincia va sotto il CAP */
/* Campi affiancati allineati: ogni campo occupa tre righe della griglia (etichetta, campo, nota) e le righe sono in comune con il vicino. Se un'etichetta va a capo
   (o una ha una nota sotto e l'altra no), le caselle restano alla stessa altezza; l'etichetta più corta si appoggia al suo campo. */
@supports (grid-template-rows: subgrid) {
  .form-grid > * { grid-row: span 3; }
  .form-grid > .field:not(fieldset) { display: grid; grid-template-rows: subgrid; align-content: start; }
  .form-grid > .field:not(fieldset) > :first-child { align-self: end; }
  .form-grid > .field:not(fieldset) > :not(:first-child) { align-self: start; }
}
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 0.95rem; margin: 10px 0; cursor: pointer; } .check input { margin-top: 5px; flex: none; }
.consent { margin: 18px 0 14px; }
.invoice-opt { margin: 4px 0 8px; } .invoice-opt summary { cursor: pointer; color: var(--accent-text); font-weight: 700; padding: 6px 0; }
.gift-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 40px; align-items: start; } .gift-side { position: sticky; top: calc(var(--header-h) + 14px); }
.gift-art { border-radius: 18px; overflow: hidden; aspect-ratio: 4 / 3; border: 1px solid var(--line); box-shadow: var(--shadow); margin-bottom: 1.4rem; } .gift-art svg { width: 100%; height: 100%; }
.steps-col { grid-template-columns: 1fr; gap: 14px; } .steps-col p { margin: 0; color: var(--text); }
.amount-options { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 10px; margin-bottom: 14px; }
.amount-option { cursor: pointer; } .amount-option input { position: absolute; opacity: 0; } .amount-option span { display: block; text-align: center; padding: 14px 8px; border: 1.5px solid var(--line); border-radius: 12px; font-weight: 700; background: var(--field); transition: border-color 0.2s, background-color 0.2s; }
.amount-option input:checked + span { border-color: var(--bronze); background: var(--gold-soft); } .amount-option input:focus-visible + span { outline: 3px solid var(--gold); outline-offset: 2px; }
.recipient-fields { margin-top: 16px; }
.stars { border: 0; padding: 0; margin: 0 0 14px; } .stars legend { padding: 0; }
.star-row { display: inline-flex; flex-direction: row-reverse; gap: 4px; } .star-row input { position: absolute; opacity: 0; }
.star-row label { font-size: 2.6rem; line-height: 1; color: var(--line); cursor: pointer; transition: color 0.15s, transform 0.15s; padding: 2px; }
.star-row label:hover, .star-row label:hover ~ label, .star-row input:checked ~ label { color: var(--gold); } .star-row label:hover { transform: scale(1.12); }
.star-row input:focus-visible + label { outline: 3px solid var(--gold); border-radius: 6px; }
.stars-cell { white-space: nowrap; color: #b8921f; letter-spacing: 2px; }
.spaced-card { margin-top: 24px; } .pre { white-space: pre-line; }
.itinerary { margin: 8px 0 18px; } .itin-day { display: grid; grid-template-columns: 150px 1fr auto; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); align-items: start; } .itin-day:last-child { border-bottom: 0; }
.itin-when { display: flex; flex-direction: column; text-transform: capitalize; } .itin-when small { color: var(--muted); text-transform: none; } .itin-what p { margin: 4px 0 0; color: var(--muted); font-size: 0.95rem; } .itin-price { font-weight: 700; white-space: nowrap; }
.ideas .benefit h3 { margin-bottom: 0.2em; }
.gift-code { font-size: 1.3rem; letter-spacing: 0.12em; }
.band-soft { background: var(--soft); border-block: 1px solid var(--line); }
.promo-box { margin: 4px 0 8px; } .promo-box summary { cursor: pointer; color: var(--accent-text); font-weight: 700; padding: 6px 0; }
.promo-grid { display: grid; grid-template-columns: 1fr 1fr auto; gap: 10px 14px; align-items: end; margin-top: 6px; } .promo-grid .field { margin: 0; } .promo-grid .btn { height: var(--control-h); margin-bottom: 0; }
.field-error { color: var(--err); font-weight: 700; margin: 6px 0 0; font-size: 0.93rem; } .field-ok { color: var(--ok); font-weight: 700; margin: 6px 0 0; font-size: 0.93rem; }
.row-discount dd { color: var(--ok); }
.pay-options { display: grid; gap: 10px; }
.pay-option { display: flex; gap: 14px; align-items: flex-start; padding: 14px 16px; border: 1.5px solid var(--line); border-radius: 12px; cursor: pointer; background: var(--field); transition: border-color 0.2s, background-color 0.2s; }
.pay-option input { margin-top: 5px; }
.pay-option span { display: flex; flex-direction: column; } .pay-option small { color: var(--muted); font-size: 0.88rem; line-height: 1.35; }
.pay-option:has(input:checked) { border-color: var(--bronze); background: var(--gold-soft); }
.summary-card { position: sticky; top: calc(var(--header-h) + 14px); }
.summary-media { aspect-ratio: 16 / 7; overflow: hidden; } .summary-media svg, .summary-media img { width: 100%; height: 100%; object-fit: cover; }
.summary-card h2 { font-size: 1.3rem; }
.summary-list { margin: 0; } .summary-list > div { display: flex; justify-content: space-between; align-items: baseline; gap: 18px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.summary-list dt { color: var(--muted); font-size: 0.9rem; flex: none; } .summary-list dd { margin: 0; text-align: right; font-weight: 700; min-width: 0; overflow-wrap: anywhere; }
.summary-total { border-bottom: 0 !important; font-size: 1.15rem; }
.policy-box { padding: 12px 14px; border-radius: 10px; font-size: 0.93rem; margin: 14px 0 0; } .policy-box.ok { background: var(--ok-bg); color: var(--ok); } .policy-box.warn { background: var(--warn-bg); color: var(--warn); }
.status { display: flex; gap: 18px; align-items: flex-start; } .status h1 { font-size: clamp(1.8rem, 4.5vw, 2.6rem); margin-bottom: 0.2em; }
.status-dot { flex: none; width: 18px; height: 18px; border-radius: 50%; margin-top: 12px; background: var(--ok); box-shadow: 0 0 0 6px var(--ok-bg); }
.status-wait .status-dot { background: var(--warn); box-shadow: 0 0 0 6px var(--warn-bg); } .status-err .status-dot { background: var(--err); box-shadow: 0 0 0 6px var(--err-bg); }
.ref-line { margin-bottom: 8px; } .ref { font-size: 1.4rem; letter-spacing: 0.08em; color: var(--ink); } [data-theme='dark'] .ref { color: var(--gold); }
.cancel-form { margin-top: 8px; }

.contact-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 28px; align-items: start; }
.contact-list { display: grid; gap: 10px; } .contact-list a { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; }
.contact-list svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.contact-list.big a { font-size: 1.1rem; }
.account-grid { align-items: start; }
.account-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; } .account-head h1 { margin-bottom: 0.1em; }
.facts-list { display: grid; gap: 8px; margin-top: 12px; } .facts-list li { display: flex; justify-content: space-between; gap: 16px; border-bottom: 1px solid var(--line); padding-bottom: 8px; }
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 0.97rem; } .table th { text-align: left; font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); padding: 12px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; } .table tr:last-child td { border-bottom: 0; } .table .num { text-align: right; white-space: nowrap; }
.table a { font-weight: 700; }
.table td.actions { white-space: nowrap; } .table td.actions form { display: inline-block; margin-right: 6px; }
.check-grid { border: 0; padding: 0; margin: 8px 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 0 16px; } .check-grid legend { padding: 0; }
.btn-row form { display: inline; }

/* ───────── Footer ───────── */
.site-footer { background: #1a1a1a; color: #bdb8a8; padding: 56px 0 28px; margin-top: 0; }
.site-footer .muted { color: #9d988a; }
.grid + .center, .grid + p.center { margin-top: 36px; }
.site-footer a { color: #e8e4d8; text-decoration: none; } .site-footer a:hover { color: var(--gold); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr; gap: 40px; }
.footer-brand { font-weight: 700; font-size: 1.6rem; color: var(--gold); margin: 0 0 2px; } .footer-title { color: var(--gold); text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.78rem; font-weight: 700; margin-bottom: 12px; }
.site-footer .plain li { margin-bottom: 8px; } .site-footer .contact-list { gap: 8px; }
.footer-bottom { margin-top: 36px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, 0.1); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 0.88rem; }

/* ───────── Illustrazioni SVG ───────── */
.art { width: 100%; height: 100%; display: block; }
.a-sky { fill: var(--art-sky); } .a-sun { fill: var(--art-sun); opacity: 0.95; } .a-ink { fill: var(--art-ink); } .a-cut { fill: var(--art-cut); } .a-water { fill: var(--art-water); opacity: 0.85; } .a-wave { stroke: var(--art-wave); }
[data-theme='dark'] .a-sun { filter: drop-shadow(0 0 22px rgba(214, 187, 81, 0.55)); }

/* ───────── Animazioni di comparsa ───────── */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s cubic-bezier(0.4, 0, 0.2, 1); }
.js .reveal.visible { opacity: 1; transform: none; }
.js a.card.reveal.visible { transition: opacity 0.7s, transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.4s, border-color 0.3s; }

/* ───────── Admin ───────── */
body.admin { padding-top: var(--header-h); }
.admin-bar { height: 64px; } .admin-bar .brand-name { font-size: 1.3rem; } .admin-bar .brand-sub { max-height: 3em; opacity: 0.85; }
.admin-nav { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; } .admin-nav a { color: var(--header-ink); text-decoration: none; font-weight: 700; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em; padding: 8px 11px; border-radius: 50px; white-space: nowrap; } .admin-nav a[aria-current], .admin-nav a:hover { background: var(--header-ink); color: var(--gold); }
[data-theme='dark'] .admin-nav a[aria-current], [data-theme='dark'] .admin-nav a:hover { background: var(--gold); color: var(--ink); }
.admin-main { padding-top: 32px; padding-bottom: 80px; } .admin-main h1 { font-size: clamp(1.7rem, 4vw, 2.3rem); }
.admin-main > .card, .admin-main > .grid { margin-bottom: 24px; }
body.admin { --header-h: 64px; }
.admin-login { padding-top: 12vh; text-align: center; } .admin-login .card { text-align: left; }
.kpis .kpi { display: flex; flex-direction: column; gap: 2px; } .kpi strong { font-size: 2.4rem; line-height: 1; color: var(--ink); } [data-theme='dark'] .kpi strong { color: var(--gold); }
.agenda-day h3 { margin: 22px 0 8px; font-size: 1.05rem; }
.agenda-item { display: grid; grid-template-columns: 62px 1fr auto; gap: 14px; align-items: center; padding: 14px 18px; border-bottom: 1px solid var(--line); text-decoration: none; color: inherit; } .agenda-item:last-child { border-bottom: 0; } .agenda-item:hover { background: var(--gold-soft); }
.agenda-time { display: flex; flex-direction: column; line-height: 1.2; } .agenda-time small, .agenda-main small, .agenda-state small { color: var(--muted); } .agenda-main { display: flex; flex-direction: column; min-width: 0; } .agenda-state { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; text-align: right; font-size: 0.85rem; }
.agenda-program { border-left: 4px solid var(--gold); }
.timeline { list-style: none; margin: 0 0 14px; padding: 0 0 0 16px; border-left: 2px solid var(--line); } .timeline li { margin: 0 0 8px; padding-left: 4px; font-size: 0.95rem; }
.actions-stack { display: flex; flex-direction: column; gap: 14px; margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); } .actions-stack .form { gap: 8px; }
.ok-text { color: var(--ok); }
.prows { display: flex; flex-direction: column; gap: 14px; margin: 16px 0 8px; }
.prow { display: grid; grid-template-columns: minmax(0, 1fr) 140px; gap: 10px 12px; align-items: center; padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--soft); }
.prow-when { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; } .prow-when input { width: auto; flex: 0 1 auto; min-width: 0; } .prow-n { font-weight: 700; color: var(--muted); min-width: 1.4em; }
.prow-price { text-align: right; } .prow-title, .prow-desc, .prow-flag { grid-column: 1 / -1; } .prow-flag { margin: 0; font-size: 0.85rem; }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 18px; align-items: center; } .tabs a { text-decoration: none; padding: 8px 16px; border-radius: 50px; font-weight: 700; font-size: 0.85rem; border: 1.5px solid var(--line); color: var(--text); } .tabs a[aria-current] { background: var(--bronze); border-color: var(--bronze); color: #fff; }
.search-inline { margin-left: auto; display: flex; gap: 8px; } .search-inline input { width: 220px; padding: 8px 14px; border-radius: 50px; }
.copy-field { font-family: ui-monospace, monospace; font-size: 0.85rem; }
.weekly-form { display: grid; gap: 10px; justify-items: start; } .weekly-row { display: grid; grid-template-columns: 200px 140px 16px 140px; gap: 10px; align-items: center; } .weekly-row input[type='time'] { padding: 9px 10px; } .weekly-row .check { margin: 0; }
.inline-form { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 18px; } .inline-form h3 { width: 100%; margin: 0; font-size: 1rem; } .inline-form input { width: auto; flex: 0 1 auto; } .inline-form input[name='note'] { flex: 1 1 180px; }
.cal-admin-head { max-width: 520px; display: flex; justify-content: space-between; align-items: center; margin: 16px 0 10px; text-transform: capitalize; }
.cal-admin { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; max-width: 520px; } .cal-admin .cal-dow { text-align: center; }
.cal-admin-cell { margin: 0; } .cal-admin-cell button { width: 100%; aspect-ratio: 1; border-radius: 10px; border: 1.5px solid var(--line); background: var(--field); font: inherit; font-weight: 700; cursor: pointer; color: var(--text); position: relative; padding: 0; display: grid; place-items: center; }
.cal-admin-cell button small { position: absolute; bottom: 2px; right: 5px; font-size: 0.65rem; background: var(--gold); color: var(--ink); border-radius: 50px; padding: 0 5px; }
.cal-admin-cell.is-off button { background: transparent; opacity: 0.55; border-style: dashed; } .cal-admin-cell.is-closed button { background: var(--err-bg); border-color: var(--err); color: var(--err); text-decoration: line-through; } .cal-admin-cell.is-custom button { background: var(--warn-bg); border-color: var(--warn); } .cal-admin-cell.is-today button { box-shadow: 0 0 0 2px var(--gold); }
.cal-admin-cell.has-ext button::after { content: ''; position: absolute; top: 5px; right: 6px; width: 7px; height: 7px; border-radius: 50%; background: #4a7bd0; }
.l-ext { background: #4a7bd0; border-color: #4a7bd0; border-radius: 50%; width: 9px; height: 9px; }
.cal-sources li { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; padding: 12px 0; border-bottom: 1px solid var(--line); } .cal-sources .actions { display: flex; gap: 6px; flex-wrap: wrap; } .cal-sources .actions form { margin: 0; }
.inline-form .grow { flex: 1 1 280px; } .how-to { margin-top: 14px; } .how-to summary { cursor: pointer; font-weight: 700; color: var(--accent-text); } .how-to ol { padding-left: 1.2em; }
.legend { display: inline-block; width: 12px; height: 12px; border-radius: 3px; vertical-align: -1px; border: 1.5px solid var(--line); } .l-closed { background: var(--err-bg); border-color: var(--err); } .l-off { border-style: dashed; } .l-custom { background: var(--warn-bg); border-color: var(--warn); }
.block-list li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.admin-detail { align-items: start; margin-bottom: 24px; }

/* ───────── Responsive ───────── */
@media (max-width: 1040px) {
  .tour-layout { grid-template-columns: minmax(0, 1fr) 340px; gap: 32px; }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .steps-4 { grid-template-columns: repeat(2, 1fr); }
  .search-card { grid-template-columns: 1fr 1fr; } .search-card .btn { grid-column: 1 / -1; }
}
@media (max-width: 74em) { /* ≈ 1180px */
  .header-inner { gap: 14px; }
  .main-nav { gap: 16px; }
  .main-nav a { font-size: 0.76rem; letter-spacing: 0.06em; }
  .header-login { padding: 0 10px; letter-spacing: 0.05em; }
}
/* con poco spazio il menu passa nel pannello laterale (☰); Prenota e Login agenzie restano in alto */
@media (max-width: 68em) { /* ≈ 1090px */
  .main-nav { display: none; }
  .hamburger { display: block; }
}
@media (max-width: 56.25em) { /* ≈ 900px: Prenota passa nel pannello laterale, Login agenzie resta come icona */
  .header-cta { display: none; }
  .header-login { width: 40px; padding: 0; }
  .header-login .login-label { display: none; }
  .header-login .login-icon { display: inline-flex; }
}
@media (max-width: 900px) {
  :root { --header-h: 68px; }
  .site-header.shrink { height: 56px; }
  .brand-name { font-size: 1.35rem; }
  .hero-grid, .band-grid, .contact-grid, .checkout-grid { grid-template-columns: 1fr; gap: 32px; }
  .hero { padding-bottom: 36px; }
  .hero-art { aspect-ratio: 16 / 9; order: -1; }
  .tour-layout { grid-template-columns: minmax(0, 1fr); padding-bottom: 110px; }
  .tour-side { position: static; max-height: none; overflow: visible; padding: 0; margin: 0; }
  .summary-card { position: static; order: -1; }
  .mobile-cta { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 900; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 20px calc(10px + env(safe-area-inset-bottom)); background: var(--card); border-top: 1px solid var(--line); box-shadow: 0 -6px 20px rgba(0, 0, 0, 0.12); }
  .mobile-cta strong { font-size: 1.3rem; } .mobile-cta small { color: var(--muted); }
  .steps { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > div:first-child { grid-column: 1 / -1; }
  .facts { grid-template-columns: repeat(2, auto); }
}
@media (max-width: 640px) {
  body { font-size: 1rem; }
  .section { padding: 52px 0; } .section.tight { padding-bottom: 52px; }
  .grid-2, .grid-3, .grid-4, .two-col, .form-grid { grid-template-columns: 1fr; }
  .card.pad, .pad { padding: 20px; }
  .result { grid-template-columns: 1fr; } .result-media { min-height: 130px; }
  .section-head { flex-direction: column; align-items: flex-start; }
  .footer-grid { grid-template-columns: 1fr; }
  .search-card { grid-template-columns: 1fr; }
  .hero .btn-row { flex-direction: column; align-items: stretch; gap: 10px; } .hero .btn-row .btn { text-align: center; }
  .prow { grid-template-columns: 1fr; } .prow-price { width: 100%; }
  .itin-day { grid-template-columns: 1fr auto; } .itin-when { grid-column: 1 / -1; flex-direction: row; gap: 10px; align-items: baseline; }
  .gift-grid { grid-template-columns: 1fr; } .gift-side { position: static; order: -1; } .gift-art { aspect-ratio: 16 / 7; }
  .promo-grid { grid-template-columns: 1fr; } .promo-grid .btn { width: 100%; }
  .article-art { aspect-ratio: 16 / 9; }
  .agenda-item { grid-template-columns: 52px 1fr; } .agenda-state { grid-column: 1 / -1; flex-direction: row; justify-content: space-between; align-items: center; text-align: left; }
  .weekly-row { grid-template-columns: 1fr 1fr 16px 1fr; } .weekly-row .check { grid-column: 1 / -1; }
  .search-inline { margin-left: 0; width: 100%; } .search-inline input { flex: 1; width: auto; }
  .summary-list > div { flex-direction: column; gap: 2px; } .summary-list dd { text-align: left; }
  .summary-total { flex-direction: row !important; justify-content: space-between; }
  .header-inner { gap: 10px; padding: 0 14px; }
  .header-tools { gap: 6px; }
  .tool { min-width: 36px; height: 36px; }
  .header-login { width: 36px; }
  .hamburger { width: 40px; }
  .brand-sub { font-size: 0.62rem; letter-spacing: 0.08em; }
}
@media (max-width: 380px) { .brand-name { font-size: 1.15rem; } .brand-sub { display: none; } }

/* Barra admin: su schermi stretti il menu passa su una seconda riga scorrevole */
@media (max-width: 1200px) {
  body.admin { --header-h: 108px; }
  .admin-bar { height: var(--header-h); align-items: flex-start; padding-top: 8px; }
  .admin-bar-inner { flex-wrap: wrap; gap: 4px 12px; }
  .admin-bar-inner > form { order: 2; }
  .admin-nav { order: 3; flex: 1 1 100%; width: 100%; padding-bottom: 4px; }
}

/* ───────── Fatture (admin) ───────── */
.queue-table .group-row th { background: var(--soft); text-align: left; text-transform: none; letter-spacing: 0; font-size: 0.95rem; color: var(--text); padding: 10px 14px; }
.queue-table .group-row .check { margin: 0; align-items: center; }
.row-overdue td { background: var(--err-bg); }
.ilines { display: flex; flex-direction: column; gap: 8px; margin: 12px 0 4px; }
.iline { display: grid; grid-template-columns: minmax(0, 1fr) 130px auto; gap: 8px; align-items: center; } .iline input { margin: 0; } .iline-amount { text-align: right; } .iline-src { text-decoration: none; font-size: 1.2rem; padding: 0 6px; }
.totals { margin-left: auto; min-width: 300px; max-width: 100%; border-collapse: collapse; } .totals td { padding: 4px 0; } .totals .num { text-align: right; padding-left: 24px; white-space: nowrap; }
.totals .grand td { font-weight: 700; font-size: 1.15rem; border-top: 1px solid var(--line); padding-top: 8px; } .totals .muted td { color: var(--muted); font-size: 0.85rem; padding-top: 8px; }
.problems { margin: 8px 0 0 18px; list-style: disc; } .problems li { margin: 2px 0; }
.info-list { padding-left: 1.1em; list-style: disc; } .info-list li { margin: 0 0 10px; }
.kind-switch { display: flex; gap: 22px; flex-wrap: wrap; margin-bottom: 12px; }
.year-tabs .btn { margin-left: auto; }
.inv-form .card + .card, .inv-form + .inline-form { margin-top: 24px; }
@media (max-width: 640px) { .iline { grid-template-columns: minmax(0, 1fr) 100px auto; } .totals { min-width: 0; width: 100%; } }
.upper { text-transform: uppercase; } .span-2 { grid-column: 1 / span 2; }
.admin-detail form.form h3 { margin: 22px 0 6px; } .admin-detail form.form + form.form { margin-top: 10px; }

/* Istanza di prova (pagamenti simulati) */
.site-header .demo-note { position: absolute; top: 100%; left: 0; right: 0; background: #1c1c1c; color: #d6bb51; text-align: center; font-size: 0.74rem; font-weight: 700; letter-spacing: 0.05em; padding: 4px 12px; pointer-events: none; }

/* Admin: registro delle email */
.mail-list details { margin-bottom: 10px; }
.mail-list summary { cursor: pointer; display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 14px; }
.mail-body { white-space: pre-wrap; overflow-wrap: anywhere; font: inherit; font-size: 0.92rem; margin: 14px 0 0; padding: 14px; background: var(--soft); border: 1px solid var(--line); border-radius: 8px; }

/* Admin: scheda partner (listino e politica di annullo) */
.price-table .price-input { width: 7.5rem; text-align: right; }
.tier-rows { display: grid; gap: 10px; margin: 14px 0; }
.tier-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.form .tier-row .tier-num, .tier-row .tier-num { width: 4.5rem; text-align: right; }
.form .tier-row select, .tier-row select { width: auto; min-width: 7rem; }
.tier-list { margin: 8px 0 0; padding: 0; } .tier-list li { padding: 2px 0; }
.copy-form { margin: 10px 0 0; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; } .copy-form select { width: auto; max-width: 100%; }

/* Admin: immagini */
.media-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; margin-top: 18px; }
.media-item { margin: 0; } .media-item img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; background: var(--soft); }
.media-item figcaption { padding: 10px 12px; display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.upload-btn { cursor: pointer; }
.media-picker { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 10px; margin: 10px 0; }
.media-choice { position: relative; display: block; cursor: pointer; border: 2px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--soft); min-height: 70px; }
.media-choice input { position: absolute; top: 6px; left: 6px; z-index: 1; width: 18px; height: 18px; accent-color: var(--bronze); }
.media-choice img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.media-choice:has(input:checked) { border-color: var(--bronze); box-shadow: 0 0 0 2px var(--gold-soft); }
.media-choice .media-none { display: grid; place-items: center; min-height: 70px; padding: 8px; text-align: center; font-size: 0.8rem; color: var(--muted); }

/* Admin: moduli dei contenuti (tour, articoli, pagine, testi) */
.tour-form { display: grid; gap: 18px; }
.tour-form fieldset { border: 0; padding: 0; margin: 0 0 14px; min-width: 0; } .tour-form legend { padding: 0; }
.check-row { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.inline-fields { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.lang-block summary { cursor: pointer; list-style: none; } .lang-block summary::-webkit-details-marker { display: none; } .lang-block summary h2 { margin: 0; }
.lang-block[open] summary { margin-bottom: 14px; }
.sticky-actions { position: sticky; bottom: 0; z-index: 5; background: var(--bg); padding: 12px 0; border-top: 1px solid var(--line); }
.md-preview { padding: 14px; border: 1px dashed var(--line); border-radius: 10px; background: var(--soft); }
/* testo e anteprima dal vivo: affiancati sugli schermi larghi, uno sotto l'altro sugli stretti; il campo di testo non sparisce mai */
.md-panes { display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr); }
.md-panes textarea { margin: 0; }
.md-panes .md-preview { max-width: none; max-height: 70vh; overflow: auto; margin: 0; }
.md-hint { margin: 0 0 8px; } .md-hint code { font-size: 0.85em; }
@media (min-width: 1000px) { .md-panes.has-preview { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; } }
.text-table textarea { min-height: 3.2em; }

/* Tabelle su telefono: ogni riga diventa una scheda; le etichette vengono dalle intestazioni (vedi main.js) */
@media (max-width: 640px) {
  .table-wrap { overflow-x: visible; }
  .table, .table tbody, .table tr, .table td { display: block; }
  .table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .table tr { padding: 14px 16px; border-bottom: 1px solid var(--line); }
  .table tr:last-child { border-bottom: 0; }
  .table td { padding: 2px 0; border: 0; text-align: left; }
  .table .num { text-align: left; white-space: normal; }
  .table td::before { content: attr(data-label); display: inline-block; min-width: 6.5em; margin-right: 10px; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
  .table td:first-child::before, .table td:not([data-label])::before, .table td[data-label='']::before { content: none; }
  .table td:first-child { padding-bottom: 6px; font-size: 1.02rem; }
  .table td.actions { padding-top: 10px; white-space: normal; display: flex; flex-wrap: wrap; gap: 8px; }
  .table td.actions form { margin: 0; }
  .table td.actions::before { content: none; }
  .table .price-input { width: 120px; } .price-table td::before { min-width: 10.5em; }
}
@media (max-width: 640px) {
  .admin-nav { justify-content: space-between; gap: 0; }
  .admin-nav a { padding: 8px 9px; font-size: 0.76rem; letter-spacing: 0.05em; }
}
@media (max-width: 640px) {
  .table tbody th { display: block; white-space: normal; }
  .queue-table .group-row { padding: 0; } .queue-table .group-row th { padding: 12px 16px; }
  .queue-table tr:not(.group-row) { display: grid; grid-template-columns: 30px minmax(0, 1fr); column-gap: 6px; }
  .queue-table tr:not(.group-row) td { grid-column: 2; }
  .queue-table tr:not(.group-row) td:first-child { grid-column: 1; grid-row: 1 / span 4; padding: 2px 0 0; }
  .row-overdue { background: var(--err-bg); } .row-overdue td { background: transparent; }
}

/* Agenda a calendario (pannello) */
.kpis { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.agenda-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; } .agenda-head .h-sub { margin: 0; } .agenda-head .tabs { margin: 0; }
.acal-head { display: flex; align-items: center; gap: 10px; margin: 8px 0 12px; } .acal-title { font-size: 1.2rem; text-transform: capitalize; min-width: 11ch; text-align: center; }
.acal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.acal-dow { text-align: center; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); padding: 4px 0; }
.acal-cell { position: relative; display: flex; flex-direction: column; gap: 3px; min-height: 104px; padding: 6px 6px 8px; border: 1.5px solid var(--line); border-radius: 10px; background: var(--card); color: var(--text); text-decoration: none; overflow: hidden; }
.acal-cell:hover { border-color: var(--bronze); background: var(--gold-soft); }
.acal-cell.is-other { opacity: 0.5; } .acal-cell.is-today { box-shadow: 0 0 0 2px var(--gold); } .acal-cell.is-selected { border-color: var(--bronze); background: var(--gold-soft); }
.acal-cell.is-closed { background: repeating-linear-gradient(135deg, var(--soft), var(--soft) 6px, var(--card) 6px, var(--card) 12px); }
.acal-n { font-weight: 700; font-size: 0.95rem; } .acal-closed { position: absolute; top: 8px; right: 8px; font-size: 0.65rem; color: var(--err); font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; }
.acal-evs { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.acal-ev { display: block; font-size: 0.72rem; line-height: 1.25; padding: 1px 6px; border-radius: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; background: var(--ok-bg); color: var(--ok); border-left: 3px solid var(--ok); }
.ev-wait { background: var(--warn-bg); color: var(--warn); border-left-color: var(--warn); }
.ev-opt { background: transparent; color: var(--warn); border: 1px dashed var(--warn); border-left-width: 3px; }
.ev-prog { background: var(--gold-soft); color: var(--accent-text); border-left-color: var(--gold); }
.ev-priv { background: rgba(120, 120, 120, 0.2); color: var(--text); border-left-color: var(--muted); }
.agenda-private { background: repeating-linear-gradient(135deg, transparent 0 8px, rgba(127,127,127,.07) 8px 16px); cursor: default; }
.agenda-private .agenda-state { flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
.acal-more { font-size: 0.7rem; color: var(--muted); padding-left: 6px; } .acal-count { display: none; }
.acal-legend .legend { width: 22px; height: 10px; border-radius: 4px; vertical-align: middle; border: 0; border-left: 3px solid var(--ok); background: var(--ok-bg); } .acal-legend .legend.ev-wait { border-left-color: var(--warn); background: var(--warn-bg); } .acal-legend .legend.ev-opt { background: transparent; border: 1px dashed var(--warn); border-left-width: 3px; } .acal-legend .legend.ev-prog { border-left-color: var(--gold); background: var(--gold-soft); } .acal-legend .legend.ev-priv { border-left-color: var(--muted); background: rgba(120, 120, 120, 0.2); }
@media (max-width: 640px) {
  .acal { gap: 3px; } .acal-cell { min-height: 56px; padding: 4px; align-items: center; } .acal-evs, .acal-closed { display: none; }
  .acal-count { display: inline-grid; place-items: center; min-width: 22px; height: 22px; border-radius: 50px; background: var(--gold); color: var(--ink); font-size: 0.75rem; font-weight: 700; }
  .acal-title { min-width: 0; flex: 1; }
}

/* Sito › Tour: ordine a trascinamento */
.order-hint { margin: 0 0 8px; }
.order-status { margin: 0 0 8px; padding: 8px 14px; border-radius: 10px; background: var(--ok-bg); color: var(--ok); font-weight: 700; font-size: 0.93rem; }
.order-status.is-error { background: var(--err-bg); color: var(--err); }
.tours-table .drag-col, .tours-table .drag-cell, .waitlist-table .drag-col, .waitlist-table .drag-cell { width: 1%; white-space: nowrap; }
.wl-foot { display: flex; flex-wrap: wrap; gap: 2px 24px; align-items: center; justify-content: space-between; margin-top: 8px; }
.wl-foot p { margin: 0; flex: 1 1 26rem; }
.wl-foot .inline-form { margin: 0; }
.wl-group + .wl-group { margin-top: 32px; }
.drag-handle { display: inline-grid; place-items: center; width: 38px; height: 38px; border: 1.5px solid var(--line); border-radius: 10px; background: var(--field); color: var(--muted); cursor: grab; padding: 0; touch-action: none; user-select: none; -webkit-user-select: none; }
.drag-handle svg { width: 20px; height: 20px; fill: currentColor; }
.drag-handle:hover { border-color: var(--bronze); color: var(--accent-text); }
.is-sorting, .is-sorting .drag-handle { cursor: grabbing; user-select: none; -webkit-user-select: none; }
.move-btns { display: inline-flex; flex-direction: column; margin-left: 4px; vertical-align: middle; }
.move-btns button { border: 0; background: transparent; color: var(--muted); cursor: pointer; font-size: 0.7rem; line-height: 1; padding: 3px 7px; }
.move-btns button:hover { color: var(--accent-text); }
.tours-table tbody tr, [data-sortable] tr { transition: transform 0.18s ease; position: relative; }
.tours-table tbody tr.is-dragging, [data-sortable] tr.is-dragging { transition: none; z-index: 3; box-shadow: var(--shadow-lg); outline: 2px solid var(--gold); background: var(--card); }
.tours-table tbody tr.is-dragging td, [data-sortable] tr.is-dragging td { background: var(--card); }
@media (max-width: 640px) {
  .tours-table tbody tr[data-slug] { display: grid; grid-template-columns: 46px minmax(0, 1fr); column-gap: 8px; }
  .tours-table tbody tr[data-slug] td { grid-column: 2; }
  .tours-table tbody tr[data-slug] td.drag-cell { grid-column: 1; grid-row: 1 / span 6; padding: 2px 0 0; display: flex; flex-direction: column; align-items: center; gap: 4px; }
  .tours-table .move-btns { flex-direction: row; margin: 0; }
}

/* Immagini fisse del sito (scelte dal pannello): stesse proporzioni delle illustrazioni */
.hero-art img, .gift-art img, .article-art img { display: block; width: 100%; height: 100%; object-fit: cover; }
.portrait { float: right; width: 250px; margin: 6px 0 18px 32px; border-radius: 18px; overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); aspect-ratio: 4 / 5; }
.portrait img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center 25%; }
.prose > :first-child { margin-top: 0; }
@media (max-width: 640px) { .portrait { float: none; width: 100%; margin: 0 0 20px; aspect-ratio: 4 / 3; } }
.img-slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; margin-top: 14px; }
.img-slot { display: flex; gap: 12px; align-items: flex-start; border: 1px solid var(--line); border-radius: 12px; padding: 10px; background: var(--soft); }
.img-slot-thumb { flex: none; width: 96px; aspect-ratio: 16 / 10; border-radius: 8px; overflow: hidden; background: var(--bg); border: 1px dashed var(--line); display: grid; place-items: center; text-align: center; }
.img-slot-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.img-slot-body p { margin: 2px 0 8px; } .img-slot-body form { margin: 0; }
.img-slot-form { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin: 0; } .img-slot-form select { width: auto; max-width: 100%; padding: 8px 12px; font-size: 0.9rem; }

/* Prossime partenze (home e «Prenota») */
.dep-list { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.dep { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 4px 16px; align-items: center; padding: 14px 16px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; text-decoration: none; color: var(--text); box-shadow: var(--shadow); transition: transform 0.15s ease, border-color 0.15s ease; }
.dep:hover { transform: translateY(-2px); border-color: var(--bronze); }
.dep-when { display: flex; flex-direction: column; align-items: flex-start; min-width: 4.6em; } .dep-when strong { font-size: 0.92rem; } .dep-when strong::first-letter { text-transform: uppercase; } .dep-time { font-size: 1.35rem; font-weight: 700; line-height: 1.1; color: var(--accent-text); }
.dep-what { display: flex; flex-direction: column; min-width: 0; } .dep-what strong { line-height: 1.25; } .dep-what small { color: var(--muted); } .dep-what .dep-few { color: var(--accent-text); font-weight: 700; }
.dep-price { text-align: right; display: flex; flex-direction: column; } .dep-price small { color: var(--muted); }
@media (max-width: 640px) { .dep-list { grid-template-columns: 1fr; } }

/* home: le due categorie (guida privata, tour di gruppo) */
.choose .section-head { margin-bottom: 26px; }
.choice-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; align-items: stretch; }
.choice-card { display: flex; flex-direction: column; overflow: hidden; }
.choice-card > .card-media { display: block; }
.choice-body { display: flex; flex-direction: column; gap: 6px; padding: 22px 24px 24px; flex: 1; }
.choice-body h3 { margin: 0; font-size: 1.5rem; }
.choice-body > p { margin: 0; }
.choice-body .btn-row { margin-top: auto; padding-top: 1.1rem; }
.choice-body .eyebrow { margin: 10px 0 0; }
.choice-card .dep-list { grid-template-columns: 1fr; margin-top: 6px; }
.rate-mini { margin: 8px 0 2px; padding: 0; list-style: none; }
.rate-mini li { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.rate-mini li:last-child { border-bottom: 0; }
.rate-mini strong { font-size: 1.05rem; white-space: nowrap; }
.hourly-hint { margin: 18px 4px 0; padding: 12px 16px; border: 1px dashed var(--bronze); border-radius: 14px; font-weight: 600; }
.hourly-hint a { white-space: nowrap; }
@media (max-width: 900px) { .choice-grid { grid-template-columns: 1fr; gap: 20px; } .choice-body { padding: 18px 18px 20px; } }
.summary-list .pax-select { width: auto; min-width: 4.5em; padding: 6px 30px 6px 12px; margin: 0; font-size: 1rem; }
.summary-list > .summary-party { display: block; padding: 12px 0 2px; } .summary-list > .summary-party .party { margin: 0 0 10px; } .summary-list .summary-party .label { color: var(--muted); font-size: 0.9rem; font-weight: 400; letter-spacing: 0; text-transform: none; }
.summary-list dt label { cursor: pointer; }

/* Admin: impostazioni */
.settings-section { margin-bottom: 18px; } .settings-section summary { cursor: pointer; list-style: none; } .settings-section summary::-webkit-details-marker { display: none; } .settings-section summary h2 { margin: 0; }
.settings-section[open] summary { margin-bottom: 8px; }
.settings-group { margin: 26px 0 6px; font-size: 1.05rem; padding-top: 14px; border-top: 1px solid var(--line); } .settings-grid > .settings-group { grid-column: 1 / -1; } .settings-grid > .settings-group:first-child { margin-top: 6px; border-top: 0; padding-top: 0; }
.settings-grid .field-wide { grid-column: 1 / -1; } .settings-grid .field small.muted { display: block; margin-top: 4px; }
.input-unit { display: flex; align-items: center; gap: 10px; } .input-unit input { max-width: 9em; } .unit { color: var(--muted); }
.field .label em { font-weight: 400; }
.settings-section { scroll-margin-top: calc(var(--header-h) + 14px); }

/* Editor di testo: barra di formattazione e foto negli articoli */
.md-toolbar { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0 8px; } .md-toolbar[hidden], .md-photos[hidden] { display: none; }
.md-photos { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; margin-bottom: 8px; background: var(--soft); } .md-photos .media-picker { margin: 6px 0 2px; }
.md-photos .media-choice { padding: 0; font: inherit; }
.prose img { display: block; max-width: 100%; height: auto; margin: 1.4em auto; border-radius: 12px; }

/* Guida nel pannello */
.guide { max-width: 78ch; } .guide h2 { margin-top: 2.2em; padding-top: 0.6em; border-top: 1px solid var(--line); scroll-margin-top: calc(var(--header-h) + 12px); } .guide h3 { scroll-margin-top: calc(var(--header-h) + 12px); }
.guide table { width: 100%; border-collapse: collapse; font-size: 0.95rem; } .guide th { text-align: left; font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); padding: 8px 10px; border-bottom: 2px solid var(--line); }
.guide td { padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; } .guide .table-wrap { margin: 1em 0; }
.guide blockquote { margin: 1.2em 0; }
.guide code { background: var(--soft); border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; font-size: 0.88em; word-break: break-word; }
.guide input[type='checkbox'] { margin-right: 8px; }
.guide li > ul, .guide li > ol { margin-top: 0.4em; }
.guide-top { position: fixed; right: 16px; bottom: 16px; z-index: 50; padding: 9px 16px; border-radius: 50px; background: var(--ink); color: var(--gold); font-weight: 700; font-size: 0.8rem; letter-spacing: 0.06em; text-decoration: none; box-shadow: var(--shadow-lg); }

/* Domande frequenti di un tour */
.tour-faq { margin-bottom: 2rem; } .tour-faq .faq-a p:last-child { margin-bottom: 0; } .tour-faq .faq-a { color: var(--text); }
.guide pre { background: var(--soft); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; overflow-x: auto; font-size: 0.9rem; } .guide pre code { background: none; border: 0; padding: 0; }

/* Cosa dicono i clienti */
.quotes-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.quote { margin: 0; padding: 22px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 8px; }
.quote-stars { color: var(--bronze); letter-spacing: 3px; font-size: 1.05rem; }
.quote blockquote { margin: 0; padding: 0; border: 0; background: none; font-size: 1.02rem; line-height: 1.6; white-space: pre-line; } .quote blockquote p { margin: 0; }
.quote figcaption { margin-top: auto; padding-top: 6px; color: var(--muted); font-size: 0.9rem; }
.quote-orig { font-size: 0.88rem; }
.quote-orig > summary { cursor: pointer; color: var(--accent-text); font-weight: 700; list-style: none; width: fit-content; }
.quote-orig > summary::-webkit-details-marker { display: none; }
.quote-orig > summary::after { content: ' ›'; }
.quote-orig[open] > summary::after { content: ' ‹'; }
.quote-orig .q-close-label, .quote-orig[open] .q-open-label { display: none; }
.quote-orig[open] .q-close-label { display: inline; }
.quote-orig blockquote { margin-top: 6px; padding-left: 12px; border-left: 3px solid var(--line); color: var(--muted); font-size: 0.92rem; }
.quote-auto { margin: 0; font-size: 0.74rem; letter-spacing: 0.02em; color: var(--muted); }
.quotes-note { margin: 16px 0 0; color: var(--muted); font-size: 0.88rem; } .quotes-note strong { color: var(--text); }

/* Admin: ripristino da una copia */
.restore-pick { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin: 12px 0 6px; } .restore-pick input[type='file'] { max-width: 100%; padding: 8px 10px; }
.restore-pick input[type='file']::file-selector-button { font: inherit; font-size: 0.85rem; font-weight: 700; padding: 8px 16px; margin-right: 12px; border: 1px solid var(--bronze); border-radius: 50px; background: transparent; color: var(--accent-text); cursor: pointer; }
.compare-table { width: 100%; border-collapse: collapse; font-size: 0.97rem; margin-top: 8px; table-layout: fixed; } .compare-table th:first-child { width: 44%; }
.compare-table th, .compare-table td { padding: 9px 8px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.compare-table thead th { font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.compare-table th:not(:first-child), .compare-table td { text-align: right; }
.compare-table tbody th[scope='row'] { font-weight: 400; } .compare-table td small { display: block; font-weight: 400; line-height: 1.3; }
.compare-table .compare-group th { text-align: left; background: var(--soft); font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; }
.compare-table .compare-group small { text-transform: none; letter-spacing: 0; }
.compare-table .diff th, .compare-table .diff td { font-weight: 700; color: var(--accent-text); }
.restore-form h2 { margin-top: 0; }
.mode-option { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0 12px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; margin: 12px 0; cursor: pointer; }
.mode-option:has(input:checked) { border-color: var(--bronze); background: var(--soft); }
.mode-option > input { align-self: start; margin-top: 4px; } .mode-body > * { margin: 0 0 8px; } .mode-body > :last-child { margin-bottom: 0; } .mode-body label { cursor: pointer; }
.mode-body .info-list li { margin-bottom: 6px; } .mode-body .info-list .warn { color: var(--warn); }

/* Tariffe a ore */
.rate-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; margin-bottom: 18px; }
.rate-card h3 { margin: 0 0 0.2em; } .rate-card > .muted { margin: 0 0 12px; }
.rate-table { width: 100%; border-collapse: collapse; }
.rate-table th { text-align: left; font-weight: 400; padding: 9px 12px 9px 0; border-bottom: 1px solid var(--line); }
.rate-table td { text-align: right; font-weight: 700; padding: 9px 0; border-bottom: 1px solid var(--line); white-space: nowrap; }
.rate-table tr:last-child th, .rate-table tr:last-child td { border-bottom: 0; } .rate-extra th, .rate-extra td { color: var(--muted); font-weight: 400; }
.rate-extras { margin-bottom: 14px; }
.sup-list li { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 9px 0; border-bottom: 1px solid var(--line); } .sup-list li:last-child { border-bottom: 0; } .sup-list strong { white-space: nowrap; }
.notes-list li { margin: 0 0 4px; }
.hourly-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; align-items: start; }
.hourly-form .field .label { display: block; margin-bottom: 6px; }
.hourly-form input:not([type=hidden]), .hourly-form select, .hourly-form .dp-field { height: var(--control-h); box-sizing: border-box; }
.hourly-form .field strong { display: flex; align-items: center; min-height: 48px; }
.hourly-form .form-note { grid-column: 1 / -1; margin: -4px 0 0; }
.hourly-form .field, .hourly-form .check { margin: 0; } .hourly-form .wide, .hourly-form .check, .hourly-form .btn, .hourly-form .notice { grid-column: 1 / -1; }
.hourly-form .btn { justify-self: start; } .hourly-form .dyn { display: contents; }
.quote-card { margin-top: 18px; } .quote-card h2 { margin-top: 0; }
.summary-list .row-extra dt::before { content: '+ '; }
.quote-card .summary-list > div, .summary-list .row-line { flex-direction: row !important; } .quote-card .summary-list dd, .summary-list .row-line dd { text-align: right !important; }

/* giapponese: caratteri di sistema (nessun font di terzi), interlinea più larga e a capo più curati */
:lang(ja) { font-family: 'Josefin Sans', 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Yu Gothic UI', 'Yu Gothic', 'Meiryo', 'Noto Sans JP', 'Noto Sans CJK JP', system-ui, sans-serif; line-break: strict; word-break: auto-phrase; overflow-wrap: anywhere; }
html:lang(ja) body { line-height: 1.85; }
:lang(ja) h1, :lang(ja) h2, :lang(ja) h3, :lang(ja) h4 { line-height: 1.4; letter-spacing: 0; text-wrap: balance; }
:lang(ja) h1 { font-size: clamp(1.8rem, 5.2vw, 3.1rem); }
:lang(ja) .eyebrow, :lang(ja) .btn, :lang(ja) .chip { letter-spacing: 0.05em; }
:lang(ja) .lead { font-weight: 400; }

/* ───────── Area agenzie: barra semplice, riepilogo, elenco con filtri ───────── */
.logout-form { display: contents; }
.side-menu .side-logout { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 14px; background: transparent; border: 2px solid rgba(255, 255, 255, 0.85); border-radius: 50px; color: #fff; font: inherit; font-size: 1rem; font-weight: 700; padding: 12px 18px; text-transform: uppercase; letter-spacing: 0.08em; cursor: pointer; }
.side-menu .side-logout svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
button.linklike { background: none; border: 0; padding: 0; font: inherit; color: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.site-footer button.linklike { color: #e8e4d8; text-decoration: none; } .site-footer button.linklike:hover { color: var(--gold); }
.partner-footer { padding: 22px 0; }
.partner-footer .footer-bottom { margin-top: 0; padding-top: 0; border-top: 0; align-items: center; }
.partner-contact { display: flex; gap: 8px 22px; flex-wrap: wrap; list-style: none; margin: 0; padding: 0; }
.partner-contact a { display: inline-flex; align-items: center; gap: 8px; }
.partner-contact svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }

.back-link { margin: 0 0 1rem; font-size: 0.95rem; }
.partner-head .account-head .btn-row { margin: 0; }

.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 18px; }
.kpi { display: flex; flex-direction: column; gap: 4px; padding: 16px 18px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); text-decoration: none; color: var(--text); min-width: 0; transition: border-color 0.2s, transform 0.2s; }
.kpi:hover { border-color: var(--bronze); transform: translateY(-2px); color: var(--text); }
.kpi-l { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.kpi-n { font-size: 1.9rem; line-height: 1.1; color: var(--ink); overflow-wrap: anywhere; }
.kpi-s { font-size: 0.86rem; color: var(--muted); }
.kpi-warn { border-color: var(--warn); } .kpi-warn .kpi-n { color: var(--warn); }
.kpi-due .kpi-n { color: var(--accent-text); }

.terms-strip { padding: 0; margin-bottom: 22px; overflow: visible; }
.terms-strip > summary { cursor: pointer; padding: 12px 18px; font-weight: 700; list-style-position: inside; }
.terms-strip > .facts-list, .terms-strip > p { margin: 0; padding: 0 18px 14px; }
.terms-strip .facts-list li { align-items: flex-start; }
.facts-list .tier-list { margin: 0; text-align: right; } .facts-list .tier-list li { display: block; border-bottom: 0; padding: 1px 0; }

.tabs-bar { display: flex; align-items: center; gap: 6px 18px; flex-wrap: wrap; justify-content: space-between; margin-bottom: 14px; }
.tabs-bar .tabs { margin: 0; flex: 1 1 auto; }
.tabs-export { white-space: nowrap; }
.tabs .tab { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.tab-n { display: inline-block; min-width: 1.6em; padding: 0 7px; border-radius: 50px; background: var(--gold-soft); color: var(--accent-text); font-size: 0.74rem; text-align: center; }
.tabs a[aria-current] .tab-n { background: rgba(255, 255, 255, 0.28); color: #fff; }

.filters { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; margin-bottom: 16px; }
.filters-q { flex: 1 1 260px; margin: 0; }
.filters-q input { width: 100%; }
.filters-more { flex: 1 1 100%; }
.filters-more > summary { cursor: pointer; font-weight: 700; font-size: 0.9rem; color: var(--accent-text); }
.filters-dates { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 10px; }
.filters-links { flex: 1 1 100%; display: flex; gap: 18px; flex-wrap: wrap; margin: 0; }

.partner-table small { display: block; margin-top: 2px; }
.partner-table .pb-title { font-size: 1.02rem; }
.partner-table .chip + small { margin-top: 4px; white-space: normal; }
.pb-cancelled td, .pb-expired td { color: var(--muted); }
.pb-actions { text-align: right; }
.pb-actions-in { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; align-items: center; }
.pb-actions-in form { margin: 0; }
.pb-actions-in .btn-link-danger { padding: 4px 6px; font-size: 0.85rem; }
.pager { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 14px; }
.empty-state { padding: 34px 20px; }
.edit-card { margin-top: 18px; }
.edit-card h2 { font-size: 1.3rem; margin-bottom: 0.2em; }

@media (max-width: 900px) {
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .filters-dates { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .kpis { gap: 10px; } .kpi { padding: 12px 14px; } .kpi-n { font-size: 1.5rem; }
  .tabs-bar { margin-bottom: 8px; }
  .tabs-bar .tabs { flex: 1 1 100%; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: -16px; padding-inline: 16px; }
  .tabs .tab { flex: none; }
  .partner-head .account-head .btn-row { width: 100%; } .partner-head .account-head .btn-row .btn { flex: 1 1 100%; text-align: center; }
  .table td.pb-actions { padding-top: 10px; } .table td.pb-actions::before { content: none; } .pb-actions-in { justify-content: flex-start; }
  .partner-table small { display: inline; margin-left: 8px; }
  .partner-table td:first-child small { display: block; margin-left: 0; }
  .partner-footer .footer-bottom { flex-direction: column; align-items: flex-start; }
}

/* ───────── Wallet del telefono ───────── */
.wallet-box { margin-top: 1rem; padding-top: 0.9rem; border-top: 1px solid var(--line); }
.wallet-box p { margin: 0 0 0.5rem; }
.wallet-box .btn svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; margin-right: 8px; vertical-align: -3px; }

/* ───────── Tariffario in cima all'area agenzie ───────── */
.tariff-section { padding-bottom: 0; }
.tariff-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 8px 20px; flex-wrap: wrap; margin-bottom: 12px; }
.tariff-head h2 { margin: 0 0 0.1em; font-size: 1.7rem; } .tariff-head p { margin: 0; }
.tariff-section .rate-card { padding: 18px 20px; } .tariff-section .rate-card h3 { font-size: 1.15rem; }

/* ───────── Selettore di date (public/js/datepicker.js) ───────── */
.dp { position: relative; display: block; }
.dp-native { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; pointer-events: none; }
.dp-native::-webkit-calendar-picker-indicator { display: none; }
.dp-field { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; font: inherit; font-size: 1rem; color: var(--text); background: var(--field); border: 1.5px solid var(--line); border-radius: 10px; padding: 11px 14px; cursor: pointer; text-align: left; transition: border-color 0.2s, box-shadow 0.2s; }
.dp-field:hover { border-color: var(--bronze); }
.dp-field:focus-visible, .dp.is-focus .dp-field, .dp.is-open .dp-field { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(214, 187, 81, 0.3); }
.dp-field.is-empty .dp-text { color: var(--muted); }
.dp-text { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dp-field svg { width: 20px; height: 20px; flex: none; stroke: var(--accent-text); fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.dp-pop { position: absolute; z-index: 2000; width: 320px; max-width: calc(100vw - 16px); background: var(--card); color: var(--text); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-lg); padding: 14px; animation: dp-in 0.14s ease-out; }
.dp-pop.is-sheet { position: fixed; left: 10px; right: 10px; bottom: 10px; top: auto; width: auto; max-width: 420px; margin: 0 auto; z-index: 2101; padding: 16px; }
.dp-backdrop { position: fixed; inset: 0; background: rgba(0, 0, 0, 0.45); z-index: 2100; }
@keyframes dp-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .dp-pop { animation: none; } }
.dp-head { display: grid; grid-template-columns: 40px 1fr 40px; align-items: center; gap: 6px; margin-bottom: 8px; }
.dp-nav { width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid var(--line); background: var(--field); color: var(--accent-text); font: inherit; font-size: 1.4rem; line-height: 1; cursor: pointer; padding: 0; }
.dp-nav:hover:not(:disabled) { border-color: var(--bronze); background: var(--gold-soft); } .dp-nav:disabled { opacity: 0.3; cursor: not-allowed; }
.dp-title { border: 0; background: none; font: inherit; font-weight: 700; font-size: 1.05rem; color: var(--text); cursor: pointer; padding: 8px; border-radius: 10px; text-align: center; }
.dp-title:hover { background: var(--gold-soft); }
.dp-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; }
.dp-dow { text-align: center; font-size: 0.68rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); padding: 4px 0; }
.dp-day { aspect-ratio: 1; border: 1.5px solid transparent; background: transparent; border-radius: 10px; font: inherit; font-size: 0.98rem; color: var(--text); cursor: pointer; padding: 0; }
.dp-day:hover:not(:disabled) { background: var(--gold-soft); border-color: rgba(214, 187, 81, 0.6); }
.dp-day.is-today { border-color: var(--gold); font-weight: 700; }
.dp-day.is-selected { background: var(--bronze); border-color: var(--bronze); color: #fff; font-weight: 700; }
.dp-day:disabled { opacity: 0.3; cursor: not-allowed; }
.dp-months { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; padding: 4px 0; }
.dp-month { padding: 14px 4px; border: 1.5px solid transparent; border-radius: 10px; background: transparent; font: inherit; color: var(--text); cursor: pointer; }
.dp-month:hover:not(:disabled) { background: var(--gold-soft); border-color: rgba(214, 187, 81, 0.6); }
.dp-month.is-today { border-color: var(--gold); font-weight: 700; } .dp-month.is-selected { background: var(--bronze); border-color: var(--bronze); color: #fff; font-weight: 700; }
.dp-month:disabled { opacity: 0.3; cursor: not-allowed; }
.dp-day:focus-visible, .dp-month:focus-visible, .dp-nav:focus-visible, .dp-title:focus-visible, .dp-link:focus-visible { outline: 3px solid var(--gold); outline-offset: 1px; }
.dp-foot { display: flex; align-items: center; gap: 8px; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); }
.dp-link { background: none; border: 0; font: inherit; font-size: 0.9rem; font-weight: 700; color: var(--accent-text); cursor: pointer; padding: 6px 8px; border-radius: 8px; }
.dp-link:hover:not(:disabled) { background: var(--gold-soft); } .dp-link:disabled { opacity: 0.4; cursor: not-allowed; }
.chip-done { background: transparent; color: var(--muted); box-shadow: inset 0 0 0 1px var(--line); }
.dp-close { display: none; margin-left: auto; } .dp-pop.is-sheet .dp-close { display: inline-block; }

/* ── paese e telefono: elenco con ricerca e bandiere (public/js/combo.js) ── */
/* le bandiere sono emoji disegnate da un piccolo font (Windows non le mostra): vale solo per quei caratteri */
@font-face { font-family: 'Twemoji Country Flags'; font-display: swap; src: url('/fonts/TwemojiCountryFlags.woff2') format('woff2'); unicode-range: U+1F1E6-1F1FF, U+1F3F4, U+E0062-E0063, U+E0065, U+E0067, U+E006C, U+E006E, U+E0073-E0074, U+E0077, U+E007F; }
.flag { font-family: 'Twemoji Country Flags', 'Apple Color Emoji', 'Segoe UI Emoji', 'Noto Color Emoji', sans-serif; line-height: 1; font-size: 1.2em; flex: none; }
.combo-select { font-family: 'Twemoji Country Flags', 'Josefin Sans', system-ui, sans-serif; }
.combo { position: relative; display: block; }
.combo-native { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; pointer-events: none; }
.combo-btn { display: flex; align-items: center; gap: 8px; width: 100%; font: inherit; font-size: 1rem; color: var(--text); background: var(--field); border: 1.5px solid var(--line); border-radius: 10px; padding: 11px 14px; cursor: pointer; text-align: left; transition: border-color 0.2s, box-shadow 0.2s; }
.combo-btn:hover { border-color: var(--bronze); }
.combo-btn:focus-visible, .combo.is-open .combo-btn { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(214, 187, 81, 0.3); }
.combo-btn.is-empty .combo-text { color: var(--muted); }
.combo-text { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.combo-caret { flex: none; width: 8px; height: 8px; border: solid var(--accent-text); border-width: 0 2px 2px 0; transform: translateY(-2px) rotate(45deg); margin-left: 2px; }
.combo.is-open .combo-caret { transform: translateY(2px) rotate(225deg); }
.combo-panel { position: absolute; z-index: 1500; top: calc(100% + 6px); left: 0; width: max(100%, 300px); max-width: calc(100vw - 24px); background: var(--card); color: var(--text); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-lg); padding: 10px; }
.combo-panel.is-right { left: auto; right: 0; }
.combo-search { margin-bottom: 8px; }
.combo-list { list-style: none; margin: 0; padding: 0; max-height: 270px; overflow-y: auto; overscroll-behavior: contain; }
.combo-item { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 8px; cursor: pointer; }
.combo-item[hidden] { display: none; }
.combo-item.is-active { background: var(--gold-soft); }
.combo-item[aria-selected='true'] { font-weight: 700; }
.combo-name { flex: 1; min-width: 0; }
.combo-dial { color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.combo-none { margin: 8px 6px; color: var(--muted); }
.phone-row { display: grid; grid-template-columns: minmax(6.5rem, 8rem) minmax(0, 1fr); gap: 8px; align-items: start; }
.phone-row > select.combo-select:not(.combo-native) { width: 100%; }
.footer-credit { font-size: 0.8rem; opacity: 0.7; } .footer-credit a { text-decoration: underline; }


/* Invita un amico (pagina della prenotazione) */
.invite-box { margin: 0 0 16px; border-color: var(--gold); }
.invite-box h2 { margin-top: 0; }
.invite-link { display: flex; gap: 8px; align-items: center; } .invite-link .copy-field { flex: 1; min-width: 0; }
.invite-mail-row { display: flex; gap: 8px; align-items: center; } .invite-mail-row input { flex: 1; min-width: 0; }
.invite-box .invite-item.is-used { opacity: 0.7; }
.invite-box .invite-item { border-top: 1px solid var(--line); padding-top: 12px; margin-top: 12px; }
.invite-box code { font-size: 1.05em; letter-spacing: 0.04em; }
.invite-note { margin: 0 0 12px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; }
.option-box.is-recommended { border-style: solid; border-color: var(--gold); background: var(--gold-soft); margin: 0 0 14px; }
.firm-note { margin-top: 16px; }
.voucher-langs { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; } .voucher-langs > span { flex-basis: 100%; }
.tour-main { min-width: 0; } .tour-main .facts, .tour-main .prose { overflow-wrap: anywhere; }

/* Pacchetto di più servizi (area agenzie) */
.package-add { margin-top: 12px; } .package-add p { margin: 6px 0 0; text-align: center; }
.header-cart { gap: 6px; padding: 0 12px; } .header-cart svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; } .header-cart .cart-count { font-size: 0.85rem; }
.header-cart[aria-current] { background: var(--header-ink); color: var(--gold); }
.table tfoot th { text-align: left; padding: 12px 14px; border-top: 2px solid var(--line); font-size: 1rem; } .table tfoot th.num { text-align: right; }
.voucher-list { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.package-page .option-actions { margin-top: 16px; }
.hamburger .menu-badge { display: none; position: absolute; top: 3px; right: 1px; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 9px; background: var(--ink); color: var(--gold); font-size: 0.68rem; line-height: 18px; place-items: center; text-align: center; font-weight: 700; }
@media (max-width: 640px) {
  .table tfoot, .table tfoot tr { display: block; }
  .table tfoot tr { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 14px 16px; }
  .table tfoot th, .table tfoot th.num { display: block; padding: 0; border: 0; text-align: left; }
  .table tfoot th:empty { display: none; }
  .header-cart { display: none; } .hamburger .menu-badge { display: grid; }
}

/* Modifica di una prenotazione e richiesta di proroga */
.ext-box { margin-top: 14px; } .ext-box > summary { cursor: pointer; font-weight: 700; font-size: 0.92rem; color: var(--accent-text); } .ext-box form { margin-top: 10px; }
.ext-pending { margin: 14px 0 0; }
.ext-request form { margin: 8px 0 0; }
.change-card .btn-row { margin-bottom: 0; }

/* ───────── Pagamento delle fatture ───────── */
.pay-box { margin: 14px 0; padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--soft); }
.pay-box h3 { margin: 0 0 6px; font-size: 1.1rem; }
.pay-box .summary-list > div:last-child { border-bottom: 0; }
.copy-row { margin-top: 12px; }
.copy-row > .muted { display: block; margin-bottom: 4px; font-size: 0.85rem; }
.copy-line { display: flex; gap: 8px; align-items: center; } .copy-line .copy-field { flex: 1; min-width: 0; margin: 0; }
.pay-block { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); } .pay-block h3 { margin: 0 0 6px; font-size: 1.1rem; }
.pay-card h3 { margin: 1.5rem 0 4px; font-size: 1.15rem; }
.pay-card form .btn { margin-top: 6px; }
.partner-table .chip { white-space: normal; line-height: 1.35; }
@media (max-width: 640px) { .copy-line { flex-wrap: wrap; } .copy-line .btn { flex: 1 1 100%; } .pay-box .copy-field { font-size: 0.74rem; padding-inline: 10px; } }

/* ───────── Date libere e lista d'attesa (area agenzie) ───────── */
.avail-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; align-items: end; margin-bottom: 18px; }
.avail-form .field { margin: 0; } .avail-form .btn { justify-self: start; height: var(--control-h); }
.btn.is-off { opacity: 0.35; pointer-events: none; }
.avail-grid .acal-cell { min-height: 78px; }
.acal-cell.is-none { background: var(--soft); opacity: 0.5; pointer-events: none; }
.acal-cell.is-free { border-color: var(--ok); } .acal-cell.is-free:hover { background: var(--ok-bg); }
.acal-cell.is-held { border-style: dashed; border-color: var(--warn); } .acal-cell.is-mine { border-color: var(--gold); }
.acal-cell.is-selected { box-shadow: 0 0 0 2px var(--bronze); }
.acal-legend .legend.ev-priv { border-left-color: var(--muted); background: rgba(120, 120, 120, 0.2); }
.agenda-day .notice { margin-top: 12px; } .agenda-day .slot-list + p { margin-top: 12px; }
.wait-form { margin-top: 14px; } .wait-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: end; } .wait-row .field { margin: 0; min-width: 200px; }
.wait-item { align-items: start; } .wait-actions { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; } .wait-actions form { margin: 0; }
.wait-status { display: flex; flex-direction: column; gap: 4px; align-items: flex-end; min-width: 0; } .wait-status small { max-width: 32ch; }
@media (max-width: 640px) {
  .avail-grid .acal-cell { min-height: 52px; }
  .acal-count.is-free { background: var(--ok-bg); color: var(--ok); border: 1.5px solid var(--ok); }
  .acal-count.is-held, .acal-count.is-full, .acal-count.is-mine, .acal-count.is-dot { min-width: 12px; width: 12px; height: 12px; padding: 0; }
  .acal-count.is-free.is-dot { background: var(--ok); border: 0; }
  .acal-count.is-held { background: transparent; border: 2px dashed var(--warn); } .acal-count.is-full { background: var(--muted); } .acal-count.is-mine { background: var(--gold); }
  .wait-item { grid-template-columns: 54px 1fr; } .wait-item .agenda-state { grid-column: 1 / -1; flex-direction: column; align-items: flex-start; } .wait-status { align-items: flex-start; } .wait-status small { max-width: none; }
  .wait-actions { justify-content: flex-start; }
}

/* ───────── Logo e documenti dell'agenzia ───────── */
.doc-logo { max-width: 220px; max-height: 90px; height: auto; padding: 10px; border: 1px solid var(--line); border-radius: 10px; background: repeating-conic-gradient(#eee 0 25%, #fff 0 50%) 50% / 16px 16px; }
[data-theme='dark'] .doc-logo { background: repeating-conic-gradient(#444 0 25%, #333 0 50%) 50% / 16px 16px; }
.docs-box { margin-top: 18px; } .docs-box h2 { font-size: 1.3rem; margin-bottom: 0.2em; } .docs-box h3 { margin: 1.2rem 0 4px; font-size: 1.15rem; } .docs-box .form-grid { margin-top: 8px; }

/* ───────── Da fare e scheda del giorno (pannello) ───────── */
.todo-item { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; padding: 13px 18px; border-bottom: 1px solid var(--line); text-decoration: none; color: inherit; } .todo-item:last-child { border-bottom: 0; } .todo-item:hover { background: var(--gold-soft); }
.todo-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; } .todo-go { color: var(--bronze); }
.day-tools { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 0 0 14px; } .day-tools input[type='date'] { width: auto; min-width: 11rem; margin: 0; }
.day-title { margin: 10px 0 12px; }
.day-item { margin-top: 14px; } .day-item.is-option { border-style: dashed; }
.day-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-bottom: 4px; } .day-head h3 { margin: 0; font-size: 1.2rem; flex: 1 1 14rem; }
.day-time { display: flex; flex-direction: column; line-height: 1.15; min-width: 3.4rem; } .day-time small { color: var(--muted); }
.day-note dd { background: var(--warn-bg); border-radius: 6px; padding: 2px 8px; }
@media (max-width: 640px) { .todo-item { grid-template-columns: 1fr; gap: 6px; } .todo-go { display: none; } }
/* Modifica di una prenotazione dal pannello */
.inline-input { width: 8rem; max-width: 100%; min-width: 0; margin: 0 4px; } .check.price-custom { flex-wrap: wrap; align-items: center; }
/* Estratto conto (area agenzie e pannello) */
.stmt-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 18px; margin: 0 0 16px; }
.stmt-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; } .stmt-month { margin: 0; font-size: 1.5rem; }
.stmt-note td { color: var(--muted); }
@media (max-width: 640px) { .stmt-bar, .stmt-nav { flex-direction: column; align-items: stretch; } .stmt-nav .btn, .stmt-bar .btn-row .btn { width: 100%; text-align: center; } .stmt-month { order: -1; } }
/* Sicurezza del pannello: due passaggi */
.sec-steps { list-style: none; counter-reset: s; padding: 0; margin: 0 0 6px; display: grid; gap: 22px; }
.sec-steps > li { counter-increment: s; position: relative; padding-left: 52px; }
.sec-steps > li::before { content: counter(s); position: absolute; left: 0; top: -2px; width: 38px; height: 38px; border-radius: 50%; background: var(--gold); color: var(--ink); font-weight: 700; display: grid; place-items: center; }
.qr-box { display: inline-block; margin: 10px 0 4px; padding: 6px; background: #fff; border: 1px solid var(--line); border-radius: 12px; line-height: 0; } .qr { max-width: 100%; height: auto; }
.otp-key { display: inline-block; font-size: 1.1rem; letter-spacing: 0.08em; padding: 6px 10px; background: var(--gold-soft); border-radius: 8px; overflow-wrap: anywhere; }
.otp-input { font-size: 1.4rem; letter-spacing: 0.16em; text-align: center; font-variant-numeric: tabular-nums; max-width: 16rem; }
.recovery-codes { list-style: none; padding: 0; margin: 14px 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 14px; } .recovery-codes li { background: var(--gold-soft); border-radius: 8px; padding: 8px 12px; text-align: center; } .recovery-codes code { font-size: 1.1rem; letter-spacing: 0.1em; }
.sec-forms { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; margin-top: 8px; } .card-inner { border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; } .card-inner h3 { margin: 0 0 4px; font-size: 1.1rem; }
@media (max-width: 640px) { .sec-steps > li { padding-left: 0; padding-top: 46px; } .otp-input { max-width: none; } }
@media print {
  .admin-bar, .admin-subnav, .day-tools, .notice, footer, .tabs { display: none !important; }
  body.admin { background: #fff; } .day-item { break-inside: avoid; box-shadow: none; } .kpis { display: none; }
  .recovery-codes li { background: #fff; border: 1px solid #999; }
}

/* Il giro dell'area agenzie (finestra a passi) e la pagina «Guida e FAQ» */
dialog.tutorial { border: 0; padding: 0; margin: auto; width: min(560px, calc(100vw - 32px)); max-height: calc(100vh - 32px); overflow: auto; border-radius: 22px; background: var(--card); color: var(--ink); box-shadow: var(--shadow-lg); }
dialog.tutorial::backdrop { background: rgba(24, 18, 8, 0.58); backdrop-filter: blur(2px); -webkit-backdrop-filter: blur(2px); }
.tut-card { padding: 20px 26px 22px; display: grid; gap: 14px; }
.tut-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.tut-title { margin: 0; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.tut-skip { background: none; border: 0; padding: 6px 0; font: inherit; color: var(--muted); text-decoration: underline; cursor: pointer; }
.tut-skip:hover { color: var(--ink); }
.tut-icon { display: inline-grid; place-items: center; flex: none; width: 64px; height: 64px; border-radius: 18px; background: var(--gold-soft); color: var(--accent-text); }
.tut-icon svg { width: 36px; height: 36px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.tut-foot { display: flex; justify-content: flex-end; }
.tut-welcome { margin: 6px 0 0; font-size: 1.55rem; line-height: 1.2; }
.tut-card > p { margin: 0; line-height: 1.55; }
.tut-list { list-style: none; padding: 0; margin: 4px 0 8px; display: grid; gap: 8px; }
.tut-list li { display: flex; align-items: center; gap: 12px; font-weight: 700; }
.tut-list .tut-icon { width: 40px; height: 40px; border-radius: 12px; }
.tut-list .tut-icon svg { width: 24px; height: 24px; }
.tut-banner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 18px; }
.tut-banner[hidden] { display: none; }
.tut-banner-actions { display: inline-flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.tut-banner-actions form { margin: 0; }
.help-steps { list-style: none; padding: 0; margin: 0 0 8px; display: grid; gap: 14px; counter-reset: step; }
.help-steps li { display: flex; gap: 16px; align-items: flex-start; padding: 16px 18px; border: 1px solid var(--line); border-radius: 16px; background: var(--card); }
.help-steps h3 { margin: 2px 0 6px; font-size: 1.1rem; }
.help-steps p { margin: 0; line-height: 1.55; }
.faq-group { margin: 26px 0 10px; font-size: 0.82rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
details.faq { border: 1px solid var(--line); border-radius: 14px; background: var(--card); margin: 0 0 8px; }
details.faq summary { padding: 14px 18px; font-weight: 700; cursor: pointer; list-style-position: inside; }
details.faq[open] summary { color: var(--accent-text); }
details.faq p { margin: 0; padding: 0 18px 16px; line-height: 1.6; }
@media (max-width: 560px) {
  .tut-card { padding: 16px 18px 18px; }
  .help-steps li { flex-direction: column; gap: 10px; }
}

/* Il giro interattivo: un riquadro che indica il punto da cliccare */
.tour-spot { position: fixed; z-index: 9000; border-radius: 12px; pointer-events: none; box-shadow: 0 0 0 9999px rgba(24, 18, 8, 0.6), 0 0 0 3px var(--gold); transition: top 0.2s, left 0.2s, width 0.2s, height 0.2s; }
.tour-spot.is-soft { box-shadow: 0 0 0 3px var(--gold), 0 0 0 9px rgba(214, 187, 81, 0.28); }
.tour-spot[hidden] { display: none; }
.tour-tip { position: fixed; z-index: 9001; width: min(370px, calc(100vw - 16px)); box-sizing: border-box; padding: 14px 16px 12px; border-radius: 16px; background: var(--card); color: var(--ink); box-shadow: var(--shadow-lg); border: 1px solid var(--line); }
.tour-tip.is-sheet { left: 8px; right: 8px; bottom: 8px; top: auto; width: auto; }
.tour-tip.is-resume { left: auto; right: 12px; bottom: 12px; top: auto; width: min(330px, calc(100vw - 24px)); }
.tour-count { margin: 0 0 6px; font-size: 0.76rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.tour-text { margin: 0 0 10px; line-height: 1.5; }
.tour-hint { margin: -4px 0 10px; font-weight: 700; font-size: 0.9rem; color: var(--accent-text); }
.tour-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 12px; }
.tour-exit, .tour-skip-stop { background: none; border: 0; padding: 6px 0; font: inherit; font-size: 0.88rem; color: var(--muted); text-decoration: underline; cursor: pointer; }
.tour-exit:hover, .tour-skip-stop:hover { color: var(--ink); }
