:root {
  --ink: #14221f;
  --muted: #5c6b67;
  --bg: #f3efe6;
  --paper: #fffcf7;
  --line: #e4ddd0;
  --teal: #0f3d3a;
  --teal-2: #1c6b64;
  --gold: #c4a15a;
  --gold-2: #e8c872;
  --shadow: 0 12px 32px rgba(20, 34, 31, 0.08);
  --radius: 18px;
  font-family: "Iowan Old Style", Palatino, Georgia, serif;
}
* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: radial-gradient(900px 380px at 100% -10%, #efe4cc 0%, transparent 55%), var(--bg); min-height: 100vh; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
.sr, .skip { position: absolute; left: -999px; }
.skip:focus { left: 8px; top: 8px; background: #fff; padding: 8px; z-index: 9; }
.top { display: flex; gap: 16px; align-items: center; padding: 14px 20px; background: var(--teal); color: #f7f3ea; position: sticky; top: 0; z-index: 5; }
.brand { display: flex; gap: 10px; align-items: center; background: none; border: 0; color: inherit; text-align: left; padding: 0; }
.brand strong { display: block; font-size: 1.15rem; }
.brand small { display: block; opacity: .75; font-size: .75rem; font-family: system-ui, sans-serif; }
body { background: #f7f4ee; }
.top { background: #fff; color: #16302c; border-bottom: 1px solid #e7eeeb; }
.mark { width: 42px; height: 42px; border-radius: 50%; display: block; }
.brand strong { color: #1f8a78; font-size: 1.45rem; }
.search-wrap input { background: #fff; color: #16302c; border: 1px solid #d5e3de; border-radius: 999px; }
.btn.icon { color: #1f8a78; background: transparent; border: 0; font-size: 1.2rem; }
.gold-icon { color: #c4a15a; }
.layout { grid-template-columns: 1fr; }
.side { display: none; }
#view-home { background: radial-gradient(700px 280px at 90% 0%, #f3e2b8 0%, transparent 55%), linear-gradient(#f3faf7, #f7f4ee 60%); border-radius: 0 0 28px 28px; }
.hero-copy h1 { color: #1b2a3a; font-size: clamp(2.4rem, 6vw, 4rem); line-height: .95; }
.hero-copy h1 span { color: #1b2a3a; }
.lead { color: #5d6b72; max-width: 36rem; }
button.action-drop { display: none; }
.card { background: #fff; border-radius: 18px; border: 1px solid #edf1ef; }
.foot-site { display: none; }
.search-wrap { flex: 1; }
.search-wrap input, label input, label textarea, label select, .composer input { width: 100%; border: 1px solid var(--line); background: #fff; border-radius: 12px; padding: 10px 12px; }
.search-wrap input { background: rgba(255,255,255,.12); color: #fff; border-color: transparent; }
.search-wrap input::placeholder { color: rgba(255,255,255,.7); }
.top-actions { display: flex; gap: 8px; }
.btn { border-radius: 999px; border: 1px solid transparent; padding: 10px 14px; background: transparent; }
.btn.solid { background: var(--teal); color: #fff; }
.btn.ghost { background: rgba(255,255,255,.12); color: inherit; }
.btn.line { border-color: var(--teal); color: var(--teal); background: #fff; }
.btn.gold { background: var(--gold); color: #1c1406; font-weight: 700; }
.btn.icon { border: 1px solid rgba(255,255,255,.25); color: #fff; }
.layout { display: grid; grid-template-columns: 230px 1fr; }
.side { padding: 18px 12px; display: flex; flex-direction: column; gap: 4px; border-right: 1px solid var(--line); }
.nav-item { text-align: left; background: transparent; border: 0; border-radius: 12px; padding: 10px 12px; }
.nav-item.active, .nav-item:hover { background: #fff; }
.pill { font-size: .7rem; background: var(--gold-2); border-radius: 999px; padding: 2px 6px; font-family: system-ui, sans-serif; }
main { padding: 22px 22px 48px; }
.hero { display: grid; grid-template-columns: 1.6fr .8fr; gap: 18px; background: var(--paper); border-radius: 24px; padding: 24px; box-shadow: var(--shadow); }
.eyebrow { letter-spacing: .14em; text-transform: uppercase; font-size: .72rem; color: var(--teal-2); margin: 0; font-family: system-ui, sans-serif; }
h1 { font-size: clamp(1.8rem, 3vw, 2.8rem); line-height: 1.05; margin: 8px 0; }
.lead, .muted, .excerpt, .meta, .foot, .fine { color: var(--muted); }
.fine { font-size: .85rem; }
.hero-actions, .row { display: flex; flex-wrap: wrap; gap: 8px; }
.hero-note { background: var(--teal); color: #f6f1e6; border-radius: 18px; padding: 16px; }
.hero-note p { margin: 0 0 8px; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 16px; }
.steps article { background: #fff; border-radius: 16px; padding: 14px; border: 1px solid var(--line); }
.steps span { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--gold-2); font-family: system-ui, sans-serif; }
.section-head { display: flex; justify-content: space-between; align-items: center; margin-top: 22px; }
.carousel-ctrl button, .filters select { border: 1px solid var(--line); background: #fff; border-radius: 10px; padding: 8px 10px; }
.carousel { display: flex; gap: 12px; overflow: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; }
.carousel .card { min-width: min(320px, 82%); scroll-snap-align: start; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 14px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.card { background: var(--paper); border-radius: var(--radius); box-shadow: var(--shadow); }
.card-hit { width: 100%; text-align: left; background: none; border: 0; padding: 14px; }
.card-top, .badges { display: flex; gap: 6px; flex-wrap: wrap; }
.badge { font-family: system-ui, sans-serif; font-size: .72rem; letter-spacing: .04em; text-transform: uppercase; border-radius: 999px; padding: 3px 8px; background: #eee; }
.badge.richiedo { background: #e7f0ea; color: #1d5c45; }
.badge.offro { background: #e7eef8; color: #1d4e89; }
.badge.scambio { background: #f8efe0; color: #7a5a16; }
.badge.vendo, .badge.compro { background: #f8e8e4; color: #8a4b2f; }
.badge.sinistro { background: #e8eef6; color: #1d4e89; }
.badge.destro { background: #f6ece6; color: #8a4b2f; }
.card h3 { margin: 8px 0 4px; font-size: 1.12rem; }
.excerpt { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.hidden { display: none !important; }
.panel { background: var(--paper); border-radius: 20px; padding: 18px; box-shadow: var(--shadow); }
.prose { max-width: 68ch; }
.chat { display: flex; flex-direction: column; gap: 8px; max-height: 420px; overflow: auto; margin: 12px 0; }
.msg { background: #f3efe6; border-radius: 14px; padding: 10px 12px; max-width: 80%; }
.msg.mine { align-self: flex-end; background: #e5f0ee; }
.composer { display: flex; gap: 8px; }
.match { border-left: 4px solid var(--gold); padding: 8px 10px; background: #fffaf0; border-radius: 10px; margin: 8px 0; }
.foot-site { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; padding: 16px 22px 28px; color: var(--muted); font-family: system-ui, sans-serif; font-size: .85rem; }
.foot-site button { background: none; border: 0; color: var(--teal); padding: 0; text-decoration: underline; }
dialog { border: 0; border-radius: 20px; padding: 18px; width: min(520px, 94vw); box-shadow: var(--shadow); }
dialog::backdrop { background: rgba(15, 30, 28, .45); }
label { display: block; margin: 10px 0; font-family: system-ui, sans-serif; font-size: .92rem; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.form-error { color: #8d2f2f; }
.more-link { margin-top: 8px; }
@media (max-width: 860px) {
  .layout { grid-template-columns: 1fr; }
  .side { display: none; }
  .hero { grid-template-columns: 1fr; }
  .top { flex-wrap: nowrap; }
  .search-wrap { order: 0; flex-basis: auto; }
  .steps, .split { grid-template-columns: 1fr; }
}
.layout { grid-template-columns: 1fr; }
.side { display: none !important; }
.top { background: #fff !important; color: #1b2a3a; }
.hero-copy h1 .line-a { color: #0b182f !important; }
.hero-copy h1 .line-b { color: #1f8a78 !important; }
.hero-copy .lead { color: #434542 !important; }
.brand strong { color: #1f8a78 !important; }
.search-wrap input { background: #fff !important; color: #1b2a3a !important; border: 1px solid #d5e3de !important; border-radius: 999px; }
.search-wrap input::placeholder { color: #8aa099 !important; }
.top .btn.icon { color: #1f8a78 !important; background: transparent !important; border: 0 !important; font-size: 1.35rem; }
.top .gold-icon { color: #c4a15a !important; }
button.action-drop { display: block !important; width: min(100%, 420px); margin: 14px 0 22px; background: #1f8a78 !important; color: #fff !important; border: 0; border-radius: 14px; padding: 14px 18px; font-weight: 700; }
.layout { display: block; }
#view-home {
  background:
    radial-gradient(640px 260px at 92% 8%, #f6e7c4 0%, transparent 60%),
    linear-gradient(180deg, #eef8f4 0%, #f7f4ee 70%);
  border-radius: 0 0 28px 28px;
  padding-bottom: 28px;
}
.hero-copy h1 .line-a { color: #0b182f !important; }
.hero-copy h1 .line-b { color: #1f8a78 !important; }
.btn.linkish { background: none; border: 0; color: #1f8a78; font-weight: 700; }
.carousel { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.card { background: #fff; border-radius: 18px; border: 1px solid #edf1ef; }
.shot { height: 180px; border-radius: 14px; margin: 10px; background: #f4f7f6 center/contain no-repeat; position: relative; }
.detail-photo { width: 100%; max-height: 280px; object-fit: contain; background: #f4f7f6; border-radius: 16px; }
.pill-cat { position: absolute; top: 10px; right: 10px; background: #e7f6f2; color: #1f8a78; border-radius: 999px; padding: 4px 10px; font-size: .8rem; }
.see { display: block; margin: 12px 10px 14px; background: #1f8a78; color: #fff; text-align: center; border-radius: 12px; padding: 10px; font-weight: 700; }
.detail-photo { width: 100%; max-height: 280px; object-fit: contain; background: #f4f7f6; border-radius: 16px; }
#thread p.mine { color: #1f8a78; }
@media (max-width: 860px) { .carousel { grid-template-columns: 1fr; } }
