.lcp-calendar {
  --lcp-accent: #000000;
  --lcp-border: #e3e3e3;
  --lcp-muted: #6b6b6b;
  --lcp-bg: #fff;
  position: relative;
  margin: 1.5em 0;
  font-size: 15px;
  line-height: 1.4;
}
.lcp-calendar.is-loading .lcp-body { opacity: .5; transition: opacity .15s; }

.lcp-toolbar { display: flex; flex-wrap: wrap; gap: .75em; justify-content: space-between; align-items: center; margin-bottom: .75em; }
.lcp-nav, .lcp-filters { display: flex; align-items: center; gap: .5em; flex-wrap: wrap; }
.lcp-title { margin: 0 .25em; min-width: 9em; text-align: center; font-size: 1.25em; text-transform: capitalize; }
.lcp-calendar button, .lcp-calendar select {
  font: inherit; padding: .35em .7em; border: 1px solid var(--lcp-border); background: var(--lcp-bg);
  border-radius: 6px; cursor: pointer; color: inherit;
}
.lcp-calendar button:hover { border-color: var(--lcp-accent); }
.lcp-views { display: inline-flex; }
.lcp-views button { border-radius: 0; }
.lcp-views button:first-child { border-radius: 6px 0 0 6px; }
.lcp-views button:last-child { border-radius: 0 6px 6px 0; margin-left: -1px; }
.lcp-views button.is-active { background: var(--lcp-accent); border-color: var(--lcp-accent); color: #fff; }

.lcp-grid { border: 1px solid var(--lcp-border); border-radius: 8px; overflow: hidden; }
.lcp-row { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.lcp-row + .lcp-row { border-top: 1px solid var(--lcp-border); }
.lcp-head .lcp-cell { padding: .5em; font-weight: 600; text-align: center; font-size: .8em; text-transform: uppercase; color: var(--lcp-muted); }
.lcp-day { min-height: 6.5em; padding: .35em; border-left: 1px solid var(--lcp-border); overflow: hidden; }
.lcp-day:first-child { border-left: 0; }
.lcp-day.is-other { background: #fafafa; color: #bbb; }
.lcp-day.is-today .lcp-date { background: var(--lcp-accent); color: #fff; border-radius: 50%; }
.lcp-date { display: inline-flex; width: 1.8em; height: 1.8em; align-items: center; justify-content: center; font-size: .85em; }
.lcp-ev {
  display: block; margin-top: .25em; padding: .2em .4em; border-radius: 4px; font-size: .8em;
  background: var(--lcp-accent); color: #fff !important; text-decoration: none !important;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.lcp-ev:hover { filter: brightness(1.1); }
.lcp-ev.is-soldout { background: #999; text-decoration: line-through !important; }
.lcp-ev-time { font-weight: 700; }

.lcp-list { list-style: none; margin: 0; padding: 0; }
.lcp-item { display: flex; gap: 1em; align-items: center; padding: .9em 0; border-bottom: 1px solid var(--lcp-border); cursor: pointer; }
.lcp-item-date { flex: 0 0 3.2em; text-align: center; line-height: 1.1; }
.lcp-item-date strong { display: block; font-size: 1.6em; }
.lcp-item-date span { text-transform: uppercase; font-size: .75em; color: var(--lcp-muted); }
.lcp-item-main { flex: 1; min-width: 0; }
.lcp-item-title { font-weight: 700; font-size: 1.05em; text-decoration: none; }
.lcp-meta { color: var(--lcp-muted); font-size: .9em; }
.lcp-item-buy { display: flex; flex-direction: column; align-items: flex-end; gap: .3em; }

.lcp-buy {
  display: inline-block; padding: .45em 1em; border-radius: 6px; background: var(--lcp-accent);
  color: #fff !important; font-weight: 600; text-decoration: none !important; white-space: nowrap;
}
.lcp-buy:hover { filter: brightness(1.1); }
.lcp-buy.lcp-info { background: transparent; color: var(--lcp-accent) !important; border: 1px solid var(--lcp-accent); }
.lcp-buy.lcp-soldout { background: #999; cursor: default; }
.lcp-price { font-weight: 600; }
.lcp-empty, .lcp-loading { text-align: center; color: var(--lcp-muted); padding: 1em; }

.lcp-modal { position: fixed; inset: 0; z-index: 99999; background: rgba(0,0,0,.55); display: flex; align-items: center; justify-content: center; padding: 1em; }
.lcp-modal[hidden] { display: none; }
.lcp-modal-card { position: relative; background: var(--lcp-bg); border-radius: 10px; max-width: 460px; width: 100%; max-height: 90vh; overflow: auto; padding: 1.5em; box-shadow: 0 20px 60px rgba(0,0,0,.3); }
.lcp-modal-card img { width: calc(100% + 3em); margin: -1.5em -1.5em 1em; max-width: none; display: block; border-radius: 10px 10px 0 0; }
.lcp-modal-card h3 { margin: 0 0 .3em; }
.lcp-close { position: absolute; top: .5em; right: .5em; font-size: 1.4em !important; line-height: 1; padding: .1em .45em !important; z-index: 1; }
.lcp-actions { display: flex; gap: 1em; align-items: center; margin-top: 1em; }

.lcp-event-box { border: 1px solid var(--lcp-border, #e3e3e3); border-left: 4px solid #000000; border-radius: 6px; padding: 1em 1.25em; margin-bottom: 1.5em; }
.lcp-event-box p { margin: .3em 0; }
.lcp-event-box .lcp-when { font-size: 1.1em; font-weight: 600; }
.lcp-event-box .lcp-buy { display: inline-block; padding: .55em 1.3em; border-radius: 6px; background: #000000; color: #fff; font-weight: 600; text-decoration: none; }

/* Poster wall (events archive) */
.lcp-posters {
  list-style: none; margin: 2em auto 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 2.5em 1.5em;
}
.lcp-posters.alignwide, .lcp-events-archive .lcp-posters { max-width: var(--wp--style--global--wide-size, 1340px); }
.lcp-poster-card { display: block; }
.lcp-poster-frame { position: relative; display: block; aspect-ratio: 1 / 1.414; overflow: hidden; }
.lcp-poster-img { width: 100%; height: 100%; object-fit: contain; object-position: center bottom; display: block; }
.lcp-poster-blank { background: #efede8; }
.lcp-poster-blank { display: flex; align-items: center; justify-content: center; }
.lcp-poster-mark {
  display: block; width: 42%; aspect-ratio: 405 / 603; background: var(--lcp-mark, #000);
  -webkit-mask: url("logo/lacopo-stacked.png") center / contain no-repeat;
  mask: url("logo/lacopo-stacked.png") center / contain no-repeat;
}
.lcp-poster-badge {
  position: absolute; top: .8em; left: .8em; background: #fff; color: #000;
  font-weight: 800; text-transform: uppercase; letter-spacing: .05em; font-size: .75em; padding: .3em .6em;
}
.lcp-poster.is-soldout .lcp-poster-img { filter: grayscale(1) opacity(.6); }
.lcp-poster-meta { display: block; margin-top: .7em; line-height: 1.3; }
.lcp-poster-meta time { display: block; font-size: .85em; text-transform: uppercase; letter-spacing: .04em; color: var(--lcp-muted, #6b6b6b); }
.lcp-poster-meta strong { display: block; font-size: 1.05em; }
.lcp-events-archive .wp-block-query-title { font-size: clamp(2rem, 5vw, 3rem); font-weight: 700; line-height: 1.1; letter-spacing: 0; text-transform: none; margin-bottom: 0; }
.lcp-events-archive .lcp-posters { margin-top: 1.25em; }
.lcp-posters-heading { max-width: var(--wp--style--global--wide-size, 1340px); margin: 4.5rem auto 0 !important; font-size: clamp(2rem, 5vw, 3rem); font-weight: 700; line-height: 1.1; letter-spacing: normal; text-transform: none; }

/* Narrow screens and sidebar widgets: grid collapses to dots, list is the readable view */
@media (max-width: 640px) {
  .lcp-day { min-height: 3.2em; }
  .lcp-ev { font-size: 0; width: .55em; height: .55em; padding: 0; border-radius: 50%; display: inline-block; margin: .1em; }
  .lcp-item { flex-wrap: wrap; }
  .lcp-item-buy { flex-direction: row; width: 100%; justify-content: space-between; align-items: center; padding-left: 4.2em; }
}
.widget .lcp-day { min-height: 2.6em; }
.widget .lcp-ev { font-size: 0; width: .55em; height: .55em; padding: 0; border-radius: 50%; display: inline-block; margin: .1em; }
.widget .lcp-title { min-width: 0; font-size: 1em; }
