/* App dell'ospite (stile ispirato alla MAXORI Guest Guide: temi, schede arrotondate, barra di navigazione fluttuante) */
.g-root { --g-bg: #f2f4f7; --g-surface: #fff; --g-surface-2: #e6ebf1; --g-ink: #16202c; --g-ink-soft: #3a4756; --g-muted: #5d6b7a; --g-line: #dbe2ea;
  --g-accent: #b08a3c; --g-accent-strong: #8a6a24; --g-accent-soft: #f3ead5; --g-action: #1f3a56; --g-hero-from: #14263a; --g-hero-to: #2f5578; --g-r: 20px; --g-r-sm: 12px; --g-shadow: 0 1px 3px rgba(20,38,58,.06), 0 10px 26px rgba(20,38,58,.08);
  --g-display: Georgia, "Times New Roman", serif;
  background: var(--g-bg); color: var(--g-ink); min-height: 100dvh; font-family: var(--ui); }
.g-root[data-theme="brownstone"] { --g-bg: #f8eee6; --g-surface: #fffaf5; --g-surface-2: #f1e1d4; --g-ink: #2e1b12; --g-ink-soft: #533629; --g-muted: #765546; --g-line: #ead4c4; --g-accent: #c66b42; --g-accent-strong: #9a4321; --g-accent-soft: #f6e1d4; --g-action: #9a4321; --g-hero-from: #3a2116; --g-hero-to: #8d4a2c; --g-r: 24px; }
.g-root[data-theme="garden"] { --g-bg: #f2f1e8; --g-surface: #fbfaf3; --g-surface-2: #e9e8d8; --g-ink: #22261a; --g-ink-soft: #424832; --g-muted: #5f6650; --g-line: #dddbc6; --g-accent: #8a9a52; --g-accent-strong: #4f5b26; --g-accent-soft: #e8ebd6; --g-action: #3f4b20; --g-hero-from: #2a3220; --g-hero-to: #59633a; --g-r: 12px; }
.g-root * { box-sizing: border-box; }
.g-app { max-width: 560px; margin: 0 auto; padding-bottom: 110px; position: relative; }
.g-root.embed .g-app { max-width: none; }
.g-hero { background: linear-gradient(160deg, var(--g-hero-from), var(--g-hero-to)); color: #fff; padding: 18px 20px 86px; position: relative; overflow: hidden; border-radius: 0 0 var(--g-r) var(--g-r); }
.g-hero.small { padding-bottom: 20px; }
.g-herotop { display: flex; justify-content: space-between; align-items: center; gap: 10px; position: relative; z-index: 1; }
.g-brand { font-weight: 800; letter-spacing: .14em; text-transform: uppercase; font-size: .78rem; opacity: .92; }
.g-hero h1 { font-family: var(--g-display); font-size: 2rem; line-height: 1.12; margin: 30px 0 8px; position: relative; z-index: 1; font-weight: 700; }
.g-hero p { opacity: .9; margin: 0; position: relative; z-index: 1; }
.sky { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 70px; color: rgba(255,255,255,.14); }
.g-lang { display: inline-flex; gap: 4px; }
.g-lang button { border: 1px solid rgba(255,255,255,.5); background: transparent; color: #fff; border-radius: 99px; min-width: 40px; min-height: 36px; font-weight: 700; font-size: .78rem; cursor: pointer; }
.g-lang button.on { background: #fff; color: #222; }
.g-bar .g-lang button { color: var(--g-ink); border-color: var(--g-line); } .g-bar .g-lang button.on { background: var(--g-action); color: #fff; border-color: var(--g-action); }
.g-bar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 10px; padding: 10px 14px; background: color-mix(in srgb, var(--g-bg) 90%, transparent); backdrop-filter: blur(8px); }
.g-bar b { flex: 1; font-family: var(--g-display); font-size: 1.15rem; }
.g-back { width: 42px; height: 42px; border-radius: 50%; background: var(--g-surface); border: 1px solid var(--g-line); display: grid; place-items: center; font-size: 26px; text-decoration: none; color: var(--g-ink); box-shadow: var(--g-shadow); }
.g-main { padding: 0 16px; margin-top: -58px; position: relative; z-index: 2; display: grid; gap: 14px; }
.g-bar + .g-main { margin-top: 6px; }
.g-card { background: var(--g-surface); border: 1px solid var(--g-line); border-radius: var(--g-r); padding: 18px; box-shadow: var(--g-shadow); }
.g-card h3 { margin: 0 0 8px; font-family: var(--g-display); font-size: 1.2rem; }
.g-card h4 { margin: 12px 0 4px; } .g-card p { margin: 8px 0; color: var(--g-ink-soft); }
.g-muted { color: var(--g-muted) !important; font-size: .9rem; }
.g-note { background: var(--g-accent-soft); border-radius: var(--g-r-sm); padding: 10px 12px; color: var(--g-ink) !important; }
.g-quote { font-family: var(--g-display); font-size: 1.15rem; font-style: italic; margin-top: 14px !important; }
.g-h2 { font-family: var(--g-display); font-size: 1.35rem; margin: 10px 2px 0; }
.g-status { display: flex; gap: 12px; align-items: center; border-radius: var(--g-r); padding: 16px; text-decoration: none; color: var(--g-ink); box-shadow: var(--g-shadow); flex-wrap: wrap; }
.g-status span { font-size: 1.8rem; } .g-status div { flex: 1; min-width: 160px; } .g-status b { display: block; font-size: 1.05rem; } .g-status small { color: var(--g-ink-soft); }
.g-status em { font-style: normal; font-weight: 800; color: var(--g-action); }
.g-status.todo { background: #fff4d9; border: 1px solid #ecd28f; } .g-status.ok { background: #e2f3e8; border: 1px solid #b6dcc3; }
.g-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.g-tile { background: var(--g-surface); border: 1px solid var(--g-line); border-radius: var(--g-r-sm); padding: 14px 6px; text-align: center; text-decoration: none; color: var(--g-ink); font-weight: 700; font-size: .85rem; display: grid; gap: 6px; box-shadow: var(--g-shadow); min-height: 88px; align-content: center; }
.g-tile span { font-size: 1.6rem; }
.g-picks { display: grid; gap: 10px; }
.g-pick { display: flex; gap: 12px; background: var(--g-surface); border: 1px solid var(--g-line); border-radius: var(--g-r-sm); padding: 12px; }
.g-pick .ic { width: 42px; height: 42px; flex: none; border-radius: 12px; background: var(--g-accent-soft); display: grid; place-items: center; font-size: 1.3rem; } .g-pick p { margin: 2px 0 0; color: var(--g-ink-soft); font-size: .92rem; }
.g-more { font-weight: 800; color: var(--g-action); text-decoration: none; padding: 4px 2px; }
.g-chips { display: flex; flex-wrap: wrap; gap: 8px; } .g-chips span, .g-chips a { background: var(--g-accent-soft); border-radius: 99px; padding: 7px 14px; font-weight: 600; font-size: .9rem; text-decoration: none; color: var(--g-ink); }
.g-chips.filter a { background: var(--g-surface); border: 1px solid var(--g-line); min-height: 40px; display: inline-flex; align-items: center; } .g-chips.filter a.on { background: var(--g-action); color: #fff; border-color: var(--g-action); }
.g-rules { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; } .g-rules li { display: flex; gap: 12px; } .g-rules li > span { font-size: 1.5rem; } .g-rules p { margin: 2px 0 0; }
.g-list { margin: 6px 0 0; padding-left: 20px; color: var(--g-ink-soft); }
.g-summary dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; margin: 0; } .g-summary dt { color: var(--g-muted); } .g-summary dd { margin: 0; font-weight: 700; }
.g-code { display: flex; align-items: center; gap: 10px; background: var(--g-bg); border: 1px dashed var(--g-line); border-radius: var(--g-r-sm); padding: 10px 12px; margin-top: 10px; flex-wrap: wrap; }
.g-code span { color: var(--g-muted); font-size: .85rem; flex-basis: 100%; } .g-code b { flex: 1; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 1.35rem; letter-spacing: .12em; color: var(--g-action); }
.g-mini { border: 1px solid var(--g-line); background: var(--g-surface); border-radius: 99px; min-height: 36px; padding: 0 14px; font-weight: 700; cursor: pointer; }
.g-lock { background: var(--g-bg); border: 1px dashed var(--g-line); border-radius: var(--g-r-sm); padding: 12px; margin-top: 10px; color: var(--g-ink-soft); } .g-lock a { color: var(--g-action); font-weight: 800; }
.g-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 48px; padding: 0 20px; border-radius: 99px; background: var(--g-action); color: #fff; border: 1px solid var(--g-action); font-weight: 800; text-decoration: none; cursor: pointer; font-size: 1rem; }
.g-btn.ghost { background: transparent; color: var(--g-action); }
.g-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.g-sos { font-size: 2.4rem; font-weight: 800; color: #b3261e !important; margin: 4px 0 !important; font-family: var(--g-display); }
.g-form { display: grid; gap: 12px; } .g-form label { display: grid; gap: 4px; font-weight: 700; font-size: .88rem; }
.g-form input, .g-form select, .g-form textarea { min-height: 48px; border: 1px solid var(--g-line); border-radius: var(--g-r-sm); padding: 0 12px; font: inherit; background: #fff; color: var(--g-ink); } .g-form textarea { padding: 10px 12px; }
.g-photo { display: grid; gap: 6px; font-weight: 700; font-size: .88rem; }
.g-err { background: #fbe5e3; color: #9c2b25; border-radius: 10px; padding: 8px 12px; font-weight: 600; margin: 0; }
.g-ok { color: #18643a !important; font-weight: 800; } .g-ok.big { font-size: 1.1rem; }
.g-foot { text-align: center; color: var(--g-muted); font-size: .78rem; margin-top: 24px; }
.g-nav { position: fixed; left: 50%; transform: translateX(-50%); bottom: 10px; width: min(540px, calc(100% - 20px)); display: flex; gap: 2px; padding: 6px; background: color-mix(in srgb, var(--g-surface) 94%, transparent); backdrop-filter: blur(10px); border: 1px solid var(--g-line); border-radius: 26px; box-shadow: 0 8px 30px rgba(0,0,0,.18); z-index: 30; }
.g-nav a { flex: 1; min-width: 0; min-height: 54px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; border-radius: 20px; text-decoration: none; color: var(--g-muted); font-size: .68rem; font-weight: 800; text-align: center; line-height: 1.1; }
.g-nav a span { font-size: 1.25rem; } .g-nav a.on { background: var(--g-accent-soft); color: var(--g-ink); }
.ic { display: inline-block; vertical-align: -0.2em; flex: none; }
.g-card h3 { display: flex; align-items: center; gap: 8px; } .g-card h3 .ic { color: var(--g-action); }
.g-tile span, .g-status span, .g-pick .ic, .g-rules li > span, .g-nav a span { display: inline-flex; align-items: center; justify-content: center; color: var(--g-action); }
.g-status.ok span { color: #2f7d62; }
.g-rules li > span { width: 40px; height: 40px; flex: none; border-radius: 12px; background: var(--g-accent-soft); }
.g-btn .ic { color: inherit; } .g-chips span .ic { color: var(--g-action); }
.g-nav a.on span { color: var(--g-ink); }
.g-lock .ic { color: var(--g-action); }
