/* =========================================================================
   Chiesa di Pandino — Pagina "Evento" (dettaglio singolo evento)
   Tradotta da Evento.dc.html. I token (:root) e le classi base sono in style.css.
   ========================================================================= */

/* ---- Contenitori a larghezza ridotta --------------------------------- */
.evt-narrow { max-width: 820px; margin: 0 auto; padding: 0 var(--pad); }
.evt-mid { max-width: 1000px; margin: 0 auto; padding: 0 var(--pad); }

/* ---- Intestazione evento --------------------------------------------- */
.evt-head { padding-top: 44px; }
.evt-back { display: inline-block; font-size: 14px; font-weight: 700; color: var(--primary); text-decoration: none; }
.evt-back:hover { text-decoration: underline; }
.evt-meta { display: flex; align-items: center; gap: 12px; margin: 26px 0 18px; flex-wrap: wrap; }
.evt-cat {
  background: #fbefe2;
  color: var(--accent);
  padding: 5px 13px;
  border-radius: var(--r-pill);
  font-size: 12px;
  font-weight: 700;
}
.evt-status { display: inline-flex; align-items: center; gap: 7px; font-size: 13.5px; color: var(--muted-2); font-weight: 600; }
.evt-status__dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.evt-title {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(32px, 5.5vw, 46px);
  line-height: 1.06;
  letter-spacing: -0.02em;
  margin: 0 0 18px;
  color: var(--ink);
}
.evt-lead { font-size: clamp(17px, 2.4vw, 20px); line-height: 1.55; color: var(--muted); margin: 0; }

/* ---- Foto in evidenza ------------------------------------------------- */
.evt-photo { margin-top: 34px; }
.evt-photo__media {
  height: 440px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  color: #8a6a44;
  background:
    repeating-linear-gradient(45deg, rgba(181,100,31,.07) 0 14px, rgba(181,100,31,.12) 14px 28px),
    #ecd9c4;
}

/* ---- Corpo a due colonne --------------------------------------------- */
.evt-body { padding-top: 40px; padding-bottom: 8px; }
.evt-body__grid { display: grid; grid-template-columns: 1fr 320px; gap: 48px; align-items: start; }
.evt-h2 { font-family: var(--font-head); font-size: 24px; font-weight: 700; color: var(--ink); margin: 30px 0 16px; }
.evt-h2:first-child { margin-top: 0; }
.evt-prose { font-size: 17.5px; line-height: 1.75; color: #3a4651; }
.evt-prose p { margin: 0 0 22px; }
.evt-prose p:last-child { margin-bottom: 0; }

/* Link utili */
.evt-links { display: flex; flex-direction: column; gap: 10px; }
.evt-link {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  text-decoration: none;
  background: var(--surface);
  border: 1px solid rgba(38, 48, 58, 0.1);
  border-radius: 12px;
  padding: 16px 20px;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.evt-link:hover { border-color: var(--primary); background: #f4f8fc; }
.evt-link__main { display: flex; align-items: center; gap: 13px; }
.evt-link__icon {
  width: 34px; height: 34px; border-radius: 9px;
  background: var(--primary-tint); color: var(--primary);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 15px; flex-shrink: 0;
}
.evt-link__main > span:last-child { font-weight: 700; font-size: 15px; color: var(--ink); }
.evt-link__arrow { color: var(--muted-2); font-size: 18px; flex-shrink: 0; }

/* ---- Sidebar --------------------------------------------------------- */
.evt-side { position: sticky; top: 104px; display: flex; flex-direction: column; gap: 16px; }
.evt-card {
  background: var(--surface);
  border: 1px solid rgba(38, 48, 58, 0.1);
  border-radius: 16px;
  padding: 24px;
  box-shadow: var(--shadow-card);
}
.evt-card__label {
  font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--primary); margin: 0 0 16px;
}
.evt-card__note { font-size: 13px; color: var(--muted-2); padding-top: 12px; border-top: 1px solid var(--line); margin: 0; }

/* Data */
.evt-date { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.evt-date__badge {
  width: 54px; height: 58px; border-radius: 11px;
  background: var(--accent); color: #fff;
  display: flex; flex-direction: column; align-items: center; justify-content: center; flex-shrink: 0;
}
.evt-date__m { font-size: 11px; font-weight: 700; letter-spacing: 0.06em; }
.evt-date__d { font-family: var(--font-head); font-size: 24px; font-weight: 800; line-height: 1; }
.evt-date__full { font-weight: 700; font-size: 15.5px; color: var(--ink); }
.evt-date__time { font-size: 13.5px; color: var(--muted-2); margin-top: 2px; }

/* Dove */
.evt-where { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.evt-where__addr { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; color: var(--text); margin: 0 0 12px; line-height: 1.5; }
.evt-where__addr strong { color: var(--ink); }
.evt-where__pin { color: var(--primary); flex-shrink: 0; }
.evt-where__pin svg { width: 18px; height: 18px; display: block; margin-top: 1px; }
.evt-map { height: 140px; border-radius: 11px; overflow: hidden; border: 1px solid rgba(38, 48, 58, 0.12); background: #e9eef2; }
.evt-map .leaflet-container { background: #e9eef2; font-family: var(--font-body); }
.evt-map .leaflet-control-attribution { font-size: 9px; }
.evt-map__link { display: inline-block; margin-top: 10px; font-size: 13.5px; font-weight: 700; color: var(--primary); text-decoration: none; }
.evt-map__link:hover { text-decoration: underline; }

/* Promemoria */
.evt-notify { background: var(--primary-tint); border-color: var(--primary-line); }
.evt-notify__title { font-family: var(--font-head); font-size: 18px; font-weight: 700; color: var(--ink); margin: 0 0 6px; }
.evt-notify__text { font-size: 13.5px; color: var(--muted); line-height: 1.5; margin: 0 0 14px; }
.evt-notify__input {
  width: 100%; border: 1px solid rgba(38, 48, 58, 0.18); border-radius: 10px;
  padding: 12px 14px; font-size: 14.5px; font-family: var(--font-body); color: var(--ink);
  background: #fff; margin-bottom: 10px; outline: none;
}
.evt-notify__input:focus { border-color: var(--primary); }
.evt-notify__btn {
  width: 100%; border: none; background: var(--primary); color: #fff;
  padding: 13px; border-radius: 10px; font-weight: 700; font-size: 14.5px;
  font-family: var(--font-body); cursor: pointer; transition: background 0.15s ease;
}
.evt-notify__btn:hover { background: var(--primary-dark); }
.evt-notify__done { text-align: center; padding: 8px 0; }
.evt-notify__check {
  width: 46px; height: 46px; border-radius: 50%; background: var(--primary); color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 22px; margin: 0 auto 12px;
}
.evt-notify__doneTitle { font-weight: 700; font-size: 16px; color: var(--ink); }
.evt-notify__doneText { font-size: 13.5px; color: var(--muted); line-height: 1.5; margin-top: 6px; }

/* Like + condividi */
.evt-like {
  width: 100%; display: flex; align-items: center; gap: 10px;
  padding: 13px 16px; border-radius: 11px; cursor: pointer;
  font-family: var(--font-body); font-weight: 700; font-size: 15px;
  background: #f4f6f8; color: var(--text); border: 1px solid rgba(38, 48, 58, 0.1);
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.evt-like__count { margin-left: auto; font-weight: 800; }
.evt-like.is-liked { background: #fbe8e6; color: #c0392b; border-color: rgba(192, 57, 43, 0.3); }
.evt-share__label { margin: 18px 0 12px; color: var(--muted-2); }
.evt-share { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.evt-share__btn {
  height: 40px; border-radius: 10px; background: var(--primary-tint); color: var(--primary);
  display: flex; align-items: center; justify-content: center;
  text-decoration: none; border: none; cursor: pointer; transition: background 0.15s ease, color 0.15s ease;
}
.evt-share__btn:hover { background: #dde9f4; }
.evt-share__btn svg { width: 16px; height: 16px; }
.evt-share__copy.is-copied { background: var(--primary); color: #fff; }

/* ---- Altri eventi ----------------------------------------------------- */
.evt-related { padding-top: 50px; padding-bottom: 64px; }
.evt-related__title { font-family: var(--font-head); font-size: clamp(24px, 4vw, 28px); font-weight: 700; color: var(--ink); margin: 0 0 24px; }
.event--all { align-items: center; justify-content: center; min-height: 130px; text-align: center; padding: 24px; }
.event--all__label { font-weight: 700; color: var(--primary); font-size: 15px; }

/* ---- Responsive ------------------------------------------------------- */
@media (max-width: 860px) {
  .evt-body__grid { grid-template-columns: 1fr; gap: 32px; }
  .evt-side { position: static; }
}
@media (max-width: 620px) {
  .evt-head { padding-top: 32px; }
  .evt-photo { margin-top: 24px; }
  .evt-photo__media { height: 240px; }
  .evt-prose { font-size: 16px; }
}
