:root {
  /* Ink & neutrals */
  --ink: #12141a;
  --muted: #5b6169;
  --paper: #f4f3ee;
  --panel: #ffffff;
  --line: #e1e0d8;

  /* Accenti pieni: cinabro, oro, smeraldo — colori vivi, non stemperati */
  --red: #d8392a;
  --red-dark: #ab2a1e;
  --teal: #12805c;
  --teal-dark: #0d6249;
  --gold: #c9962e;

  --shadow: 0 18px 44px rgba(18, 20, 26, 0.14);
  --shadow-soft: 0 10px 26px rgba(18, 20, 26, 0.09);

  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", monospace;
}

* {
  box-sizing: border-box;
}

/* [hidden] deve sempre vincere, anche contro regole come .toolbar o
   .section.split che impostano display:grid sullo stesso elemento */
[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 85% 0%, rgba(47, 110, 100, 0.07), transparent 32%),
    radial-gradient(circle at 8% 92%, rgba(178, 58, 46, 0.06), transparent 30%),
    var(--paper);
  font-family: var(--font-body);
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 2px;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 88px;
  padding: 14px clamp(18px, 5vw, 64px);
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
}

.brand-mark {
  display: block;
  width: auto;
  height: 56px;
  flex: none;
}

.brand-mark.small {
  width: auto;
  height: 34px;
}

.brand-word {
  display: flex;
  flex-direction: column;
  gap: 1px;
  font-family: var(--font-display);
  line-height: 1.06;
}

.brand-word .line {
  font-size: 1.02rem;
  letter-spacing: 0.01em;
}

.brand-word .line.accent {
  color: var(--red);
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(12px, 3vw, 26px);
}

.nav a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.94rem;
}

.nav a:hover {
  color: var(--red);
}

button,
.nav-action {
  min-height: 42px;
  border: 0;
  border-radius: 7px;
  padding: 10px 16px;
  color: #fff;
  background: var(--red);
  cursor: pointer;
  font-weight: 650;
  transition: background 0.15s ease, transform 0.15s ease;
}

button:hover {
  background: var(--red-dark);
}

main {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.hero {
  min-height: calc(100vh - 88px);
  display: grid;
  grid-template-columns: minmax(0, 0.98fr) minmax(360px, 1.02fr);
  align-items: center;
  gap: clamp(28px, 6vw, 72px);
  padding: 60px 0 46px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--teal);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  max-width: 12ch;
  margin: 0;
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 5.2rem;
  line-height: 0.98;
  letter-spacing: -0.01em;
}

h2 {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 2.6rem;
  line-height: 1.05;
}

h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
}

.lead {
  max-width: 54ch;
  margin-top: 18px;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.7;
}

.search {
  margin-top: 34px;
  max-width: 600px;
}

.guest-cta {
  margin-top: 34px;
  max-width: 520px;
}

.guest-cta p {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.65;
}

.guest-cta-row {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.guest-cta .nav-action {
  min-height: 52px;
  padding: 14px 32px;
  font-size: 1.05rem;
}

.search label,
.toolbar label,
.dialog label {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.search-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
}

input,
select,
textarea {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 10px 12px;
  /* 16px fissi, non ereditati dall'etichetta (che è volutamente
     piccola): sotto i 16px, iOS zooma automaticamente il campo al
     tocco. Fissarla qui risolve lo zoom indesiderato su mobile. */
  font-size: 16px;
  color: var(--ink);
  background: var(--panel);
  outline: none;
}

textarea {
  min-height: 96px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 4px rgba(47, 110, 100, 0.14);
}

.hero-map {
  position: relative;
  isolation: isolate;
  min-height: 520px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: linear-gradient(165deg, #1c1f26, #12141a 60%, #0c0d11);
  box-shadow: var(--shadow);
}

/* Leaflet: adattiamo i controlli al linguaggio visivo scuro del sito */
.hero-map .leaflet-tile-pane {
  filter: saturate(1.05);
}

.hero-map .leaflet-control-zoom a {
  background: var(--panel);
  color: var(--ink);
  border-color: var(--line) !important;
}

.hero-map .leaflet-tooltip {
  border-radius: 6px;
  padding: 4px 8px;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  border: none;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.24);
}

.hero-map .leaflet-tooltip::before {
  display: none;
}

.hero-map .leaflet-control-attribution {
  background: rgba(12, 13, 17, 0.7);
  color: var(--muted);
}

.hero-map .leaflet-control-attribution a {
  color: var(--muted);
}

.toolbar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: color-mix(in srgb, var(--panel) 82%, transparent);
  box-shadow: var(--shadow-soft);
}

.section {
  padding: 72px 0 16px;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}

.section-head-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.section-head.compact {
  align-items: start;
}

.ghost {
  color: var(--red);
  border: 1px solid var(--line);
  background: var(--panel);
}

a.nav-action,
a.ghost {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.ghost:hover {
  color: #fff;
  border-color: var(--red-dark);
  background: var(--red-dark);
}

.grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-items: stretch;
  gap: 14px;
}

.notice {
  margin: 0 0 20px;
  border-left: 3px solid var(--gold);
  border-radius: 8px;
  padding: 14px 16px;
  color: var(--muted);
  background: var(--panel);
  line-height: 1.55;
}

.notice strong {
  display: block;
  margin-bottom: 4px;
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 600;
}

.card,
.person,
.event-item,
.panel {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel);
  box-shadow: var(--shadow-soft);
}

.card {
  display: grid;
  gap: 10px;
  min-height: 200px;
  padding: 16px;
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}

.card h3 {
  font-size: 1.02rem;
}

.card p {
  font-size: 0.88rem;
}

.card-image {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
}

.card-image-placeholder {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  color: #fff;
  background: var(--gold);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.4rem;
}

.card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  border-radius: 99px;
  padding: 4px 10px;
  color: var(--muted);
  background: var(--paper);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
}

.tag.verified {
  color: #fff;
  background: var(--teal);
}

.card p,
.event-item p,
.panel p,
.person p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.field-row {
  display: flex;
  align-items: baseline;
  gap: 7px;
  font-size: 0.88rem;
  line-height: 1.4;
}

.field-label {
  flex: none;
  color: var(--teal);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.field-value {
  color: var(--ink);
}

.card-desc {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.5;
  cursor: pointer;
}

.card-read-more-inline {
  color: var(--teal);
  font-weight: 650;
  white-space: nowrap;
}

.card-read-more-inline:hover {
  color: var(--red);
}

.detail-text {
  margin: 0;
  color: var(--ink);
  line-height: 1.6;
  white-space: pre-wrap;
}

.detail-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 4px;
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
}

.link-button {
  color: var(--red);
  background: transparent;
  padding: 0;
  min-height: auto;
}

.link-button:hover {
  color: var(--red-dark);
  background: transparent;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.65fr);
  gap: 22px;
}

.timeline {
  display: grid;
  gap: 12px;
}

.event-item {
  display: grid;
  grid-template-columns: 74px 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 16px;
}

.date-box {
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  border-radius: 8px;
  color: var(--paper);
  background: var(--ink);
  line-height: 1;
  font-family: var(--font-mono);
  font-weight: 600;
}

.date-box span {
  display: block;
  font-size: 1.4rem;
}

.date-box small {
  display: block;
  margin-top: 4px;
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.panel {
  align-self: start;
  padding: 22px;
}

.panel h3 {
  margin-bottom: 12px;
  font-size: 1.6rem;
}

.panel .meta {
  margin: 18px 0;
}

.people {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-items: stretch;
  gap: 14px;
}

.person {
  display: flex;
  flex-direction: column;
  min-height: 190px;
  padding: 18px;
}

.person-link {
  display: inline-block;
  margin-top: 4px;
  color: var(--teal);
  text-decoration: none;
  font-size: 0.86rem;
  font-weight: 600;
}

.person-link:hover {
  color: var(--red);
}

.avatar {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 16px;
  border-radius: 50%;
  color: #fff;
  background: var(--gold);
  object-fit: cover;
  font-family: var(--font-display);
  font-weight: 700;
}

.site-foot {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 18px;
  padding: 28px 0 56px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  margin-top: 24px;
  font-size: 0.86rem;
}

.foot-kofi {
  grid-column: 1 / -1;
  display: flex;
  justify-content: center;
}

.foot-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-self: start;
}

.foot-brand p {
  margin: 0;
  color: var(--ink);
}

.foot-contact {
  justify-self: center;
  text-align: center;
  color: var(--muted);
  text-decoration: none;
}

.foot-contact:hover {
  color: var(--red);
}

.foot-powered {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.02em;
}

.foot-powered img {
  display: block;
  border-radius: 50%;
}

.foot-powered:hover {
  color: var(--teal);
}

.dialog {
  width: min(520px, calc(100% - 28px));
  border: 0;
  border-radius: 12px;
  padding: 0;
  box-shadow: var(--shadow);
  max-height: min(720px, calc(100vh - 56px));
  overflow-y: auto;
}

.dialog.wide {
  width: min(620px, calc(100% - 28px));
}

.dialog::backdrop {
  background: rgba(20, 32, 42, 0.5);
}

.dialog form,
.dialog .dialog-body {
  display: grid;
  gap: 16px;
  padding: 24px;
  background: var(--panel);
}

.dialog .dialog-body form {
  padding: 0;
}

.dialog-lead {
  margin: -6px 0 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.result-count {
  margin: 18px 0 14px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.dialog-subhead {
  margin: 6px 0 0;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-family: var(--font-display);
  font-size: 1.05rem;
}

.danger-subhead {
  color: var(--red);
}

.danger-button {
  background: transparent;
  color: var(--red);
  border: 1px solid var(--red);
}

.danger-button:hover {
  background: var(--red);
  color: #fff;
}

.row2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.admin-event-list {
  display: grid;
  gap: 8px;
}

.admin-event-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--paper);
}

.admin-event-row div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.admin-event-row span {
  color: var(--muted);
  font-size: 0.82rem;
}

.empty-inline {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.place-picker {
  position: relative;
}

.place-results {
  position: absolute;
  z-index: 20;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  max-height: 220px;
  overflow-y: auto;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.place-option {
  padding: 9px 12px;
  font-size: 0.92rem;
  cursor: pointer;
}

.place-option:hover {
  background: var(--paper);
}

.dialog-confirm {
  padding: 32px 24px;
  text-align: center;
  background: var(--panel);
}

.confirm-icon {
  margin: 0 0 8px;
  font-size: 2.4rem;
}

.dialog-confirm h3 {
  margin: 0 0 10px;
  font-size: 1.3rem;
}

.dialog-confirm p {
  color: var(--muted);
  line-height: 1.55;
}

.dialog-confirm menu {
  display: flex;
  justify-content: center;
  margin: 18px 0 0;
  padding: 0;
}

.dialog h2 {
  font-size: 1.6rem;
}

.dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.dialog-head button {
  width: 38px;
  min-height: 38px;
  padding: 0;
  background: var(--paper);
  color: var(--ink);
}

.dialog-head button:hover {
  background: var(--line);
}

.form-msg {
  margin: 0;
  min-height: 1.2em;
  color: var(--teal);
  font-size: 0.86rem;
}

.account-area {
  display: flex;
  align-items: center;
  gap: 14px;
}

.account-login-link {
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.94rem;
}

.account-login-link:hover {
  color: var(--red);
}

.account-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 5px 16px 5px 6px;
  border: 1px solid var(--line);
  border-radius: 99px;
  background: var(--panel);
  color: var(--ink);
  font-weight: 650;
  cursor: pointer;
}

.topbar-right {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 18px;
}

.messages-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  height: auto;
  padding: 4px;
  border: 0;
  border-radius: 6px;
  background: none;
  color: var(--ink);
  text-decoration: none;
  line-height: 1;
  cursor: pointer;
}

.messages-btn svg {
  width: 27px;
  height: 27px;
}

.messages-btn:hover {
  color: var(--red);
  background: none;
}

.messages-badge {
  position: absolute;
  top: -2px;
  right: -2px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: 99px;
  background: var(--red);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 700;
}

.thread-row {
  cursor: pointer;
  align-items: center;
}

.thread-row-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  min-width: 0;
}

.thread-row-text span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--muted);
  font-size: 0.84rem;
}

.thread-subtitle {
  color: var(--muted);
  font-weight: 500;
  font-size: 0.78rem;
}

.thread-messages {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 360px;
  min-height: 160px;
  overflow-y: auto;
  padding: 4px 2px;
  margin-bottom: 12px;
}

.bubble {
  max-width: 78%;
  padding: 9px 13px;
  border-radius: 12px;
  font-size: 0.92rem;
  line-height: 1.5;
}

.bubble p {
  margin: 0;
}

.bubble-theirs {
  align-self: flex-start;
  background: var(--paper);
  color: var(--ink);
  border: 1px solid var(--line);
  border-bottom-left-radius: 3px;
}

.bubble-mine {
  align-self: flex-end;
  background: var(--red);
  color: #fff;
  border-bottom-right-radius: 3px;
}

.bubble-sender {
  display: block;
  margin-bottom: 3px;
  color: var(--teal);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
}

.bubble-time {
  display: block;
  margin-top: 3px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  text-align: right;
  opacity: 0.6;
}

.bubble-theirs .bubble-time {
  color: var(--ink);
}

.bubble-mine .bubble-time {
  color: var(--paper);
}

.thread-day-sep {
  align-self: center;
  margin: 10px 0 4px;
  padding: 3px 10px;
  border-radius: 99px;
  background: var(--paper);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.messages-dialog #replyForm,
.messages-dialog #composeForm {
  padding: 0;
}

.messages-dialog #replyForm textarea {
  min-height: 64px;
}

.account-pill:hover {
  border-color: var(--red);
}

.avatar-pill-img {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  object-fit: cover;
}

.avatar-pill-letter {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--gold);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9rem;
}

.dialog-switch {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.84rem;
  text-align: center;
}

.dialog-switch a {
  color: var(--teal);
  text-decoration: none;
  font-weight: 600;
}

.dialog-switch a:hover {
  color: var(--red);
}

.avatar-upload {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 6px;
}

.avatar-upload img {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--line);
}

.avatar-upload-btn {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--ink);
  background: var(--paper);
  font-size: 0.86rem;
  font-weight: 600;
  cursor: pointer;
}

.avatar-upload-btn:hover {
  border-color: var(--teal);
}

.dialog menu {
  display: flex;
  justify-content: end;
  gap: 10px;
  margin: 8px 0 0;
  padding: 0;
}

.dialog menu button[value="cancel"] {
  color: var(--ink);
  background: var(--paper);
}

.dialog menu button[value="cancel"]:hover {
  background: var(--line);
}

.empty {
  grid-column: 1 / -1;
  border: 1px dashed var(--line);
  border-radius: 10px;
  padding: 28px;
  color: var(--muted);
  background: var(--panel);
}

@media (max-width: 920px) {
  .topbar {
    align-items: start;
    flex-wrap: wrap;
  }

  .nav {
    order: 3;
    width: 100%;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .hero,
  .split {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  h1 {
    max-width: 12ch;
    font-size: 3.9rem;
  }

  h2 {
    font-size: 2.15rem;
  }

  .grid,
  .people,
  .toolbar {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 620px) {
  main {
    width: min(100% - 22px, 1180px);
  }

  .topbar {
    padding: 12px 14px;
  }

  .nav-action {
    width: 100%;
  }

  .hero {
    padding-top: 34px;
  }

  h1 {
    font-size: 2.9rem;
  }

  .search-row,
  .grid,
  .people,
  .toolbar {
    grid-template-columns: 1fr;
  }

  .hero-map {
    min-height: 360px;
  }

  .section {
    padding-top: 54px;
  }

  .section-head {
    align-items: start;
    flex-direction: column;
  }

  .event-item {
    grid-template-columns: 56px 1fr;
  }

  .event-item .link-button {
    grid-column: 2;
    justify-self: start;
  }

  .site-foot {
    grid-template-columns: 1fr;
    justify-items: start;
    text-align: left;
  }

  .foot-contact,
  .foot-powered {
    justify-self: start;
  }
}

.pwa-banner {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 200;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 10px;
  background: var(--ink);
  color: var(--paper);
  box-shadow: var(--shadow);
  font-size: 0.86rem;
}

.pwa-banner span {
  flex: 1;
  line-height: 1.4;
}

.pwa-banner .pwa-close {
  flex: none;
  width: 28px;
  height: 28px;
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.14);
  color: var(--paper);
  font-size: 1.1rem;
  cursor: pointer;
}

.pwa-banner .pwa-install-btn {
  flex: none;
  min-height: 0;
  padding: 8px 14px;
  border: 0;
  border-radius: 7px;
  background: var(--red);
  color: #fff;
  font-weight: 650;
  cursor: pointer;
}
