:root {
  --bg: #0b0a09;
  --bar: #14110e;
  --ink: #f3eadc;
  --line: #3a3229;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; background: var(--bg); color: var(--ink); }
body { padding-bottom: var(--safe-bottom); }

.toolbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  gap: 8px;
  padding: calc(8px + var(--safe-top)) 10px 10px;
  background: var(--bar);
}
.datebar {
  display: grid;
  grid-template-columns: 48px 1fr auto 48px;
  align-items: center;
  gap: 8px;
}
.n-eventi {
  min-width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #0b0a09;
  font: 600 1.15rem/1 system-ui, sans-serif;
  color: var(--ink);
  text-align: center;
}

.nav {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--ink);
  width: 48px;
  height: 48px;
  padding: 0;
  display: grid;
  place-items: center;
}
.nav svg { width: 26px; height: 26px; }

.date-pick {
  position: relative;
  height: 48px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #0b0a09;
}
.date-label {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font: 500 0.98rem/1.15 system-ui, sans-serif;
  text-align: center;
  padding: 0 8px;
  pointer-events: none;
  text-transform: capitalize;
}
#data {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  border: 0;
  padding: 0;
  cursor: pointer;
  color-scheme: dark;
}
#citta {
  width: 100%;
  height: 48px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #0b0a09;
  color: var(--ink);
  font: 500 1.05rem system-ui, sans-serif;
  text-align: left;
  padding: 0 10px;
  color-scheme: dark;
}

.feed {
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding: 8px 0 16px;
}
.annuncio {
  margin: 8px 12px calc(20px + var(--safe-bottom));
  padding: 16px 16px 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #17130f;
}
.annuncio p {
  margin: 0;
  font: 400 0.98rem/1.45 system-ui, sans-serif;
  color: var(--ink);
}
.annuncio a {
  color: #7dce7a;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.card {
  display: block;
  width: 100%;
  background: #000;
}
.card img {
  display: block;
  width: 100%;
  height: auto;
  max-height: calc(100svh - 80px - var(--safe-top));
  object-fit: contain;
  background: #000;
  pointer-events: none;
  user-select: none;
}
.info {
  padding: 14px 16px 4px;
  background: var(--bg);
}
.info h2 {
  margin: 0 0 10px;
  font: 500 1.15rem/1.3 system-ui, sans-serif;
}
.info dl {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 14px;
  margin: 0;
}
.info dt {
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #9a8d7a;
}
.info dd {
  margin: 3px 0 0;
  font-size: 0.95rem;
}
