body.psicoeventi-no-scroll {
  overflow: hidden;
}

.psicoeventi-search {
  position: relative;
  width: 100%;
}

.psicoeventi-bar {
  display: grid;
  grid-template-columns: minmax(220px, 2fr) repeat(3, minmax(150px, 1fr)) auto;
  gap: 12px;
  align-items: stretch;
}

.psicoeventi-field {
  min-width: 0;
}

.psicoeventi-field label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
  font-size: 14px;
}

.psicoeventi-field input,
.psicoeventi-field select,
.psicoeventi-open-filters,
.psicoeventi-submit,
.psicoeventi-apply,
.psicoeventi-reset {
  width: 100%;
  min-height: 46px;
  border: 1px solid #d9dee5;
  border-radius: 12px;
  padding: 0 14px;
  box-sizing: border-box;
  background: #fff;
  font-size: 15px;
}

.psicoeventi-field--actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.psicoeventi-open-filters,
.psicoeventi-submit,
.psicoeventi-apply,
.psicoeventi-reset,
.psicoeventi-card__link,
.psicoeventi-load-more {
  cursor: pointer;
  transition: all .2s ease;
}

.psicoeventi-submit,
.psicoeventi-apply {
  background: #162235;
  color: #fff;
  border-color: #162235;
}

.psicoeventi-open-filters:hover,
.psicoeventi-reset:hover,
.psicoeventi-load-more:hover {
  border-color: #162235;
}

.psicoeventi-submit:hover,
.psicoeventi-apply:hover {
  opacity: .92;
}

.psicoeventi-drawer[hidden] {
  display: none !important;
}

.psicoeventi-drawer {
  position: fixed;
  inset: 0;
  z-index: 99999;
}

.psicoeventi-drawer__overlay {
  position: absolute;
  inset: 0;
  background: rgba(16, 22, 30, .42);
}

.psicoeventi-drawer__panel {
  position: absolute;
  top: 0;
  right: 0;
  width: min(420px, 92vw);
  height: 100%;
  background: #fff;
  box-shadow: -8px 0 32px rgba(0, 0, 0, .16);
  display: flex;
  flex-direction: column;
}

.psicoeventi-drawer__header,
.psicoeventi-drawer__footer {
  padding: 18px;
  border-bottom: 1px solid #eef1f4;
}

.psicoeventi-drawer__footer {
  border-bottom: 0;
  border-top: 1px solid #eef1f4;
  margin-top: auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.psicoeventi-drawer__body {
  padding: 18px;
  overflow-y: auto;
  display: grid;
  gap: 14px;
  align-content: start;
}

.psicoeventi-drawer__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.psicoeventi-drawer__header h3 {
  margin: 0;
  font-size: 20px;
}

.psicoeventi-drawer__close {
  background: transparent;
  border: 0;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  padding: 0;
}

.psicoeventi-results {
  margin-top: 22px;
}

.psicoeventi-results__head {
  display: grid;
  gap: 12px;
  margin-bottom: 18px;
}

.psicoeventi-results__count {
  font-weight: 700;
}

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

.psicoeventi-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 0 10px 0 12px;
  border: 0;
  border-radius: 999px;
  background: #f1f4f7;
  font-size: 13px;
  color: #1f2937;
}

.psicoeventi-chip__label {
  line-height: 1.2;
}

.psicoeventi-chip__remove {
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(22, 34, 53, .08);
  font-size: 15px;
  line-height: 1;
}

.psicoeventi-chip:hover {
  background: #e7edf3;
}

.psicoeventi-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.psicoeventi-card {
  border: 1px solid #e8edf2;
  border-radius: 18px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 8px 22px rgba(15, 23, 42, .05);
}

.psicoeventi-card__image {
  display: block;
  aspect-ratio: 16 / 10;
  background: #f6f8fa;
}

.psicoeventi-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.psicoeventi-card__placeholder {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  color: #5b6470;
}

.psicoeventi-card__body {
  padding: 16px;
}

.psicoeventi-card__title {
  margin: 0 0 10px;
  font-size: 20px;
  line-height: 1.25;
}

.psicoeventi-card__title a,
.psicoeventi-card__link {
  text-decoration: none;
}

.psicoeventi-card__meta {
  margin: 0 0 8px;
  color: #2b3340;
  font-size: 14px;
}

.psicoeventi-card__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  margin-top: 8px;
  padding: 0 14px;
  border-radius: 10px;
  border: 1px solid #162235;
  color: #162235;
}

.psicoeventi-card__link:hover {
  background: #162235;
  color: #fff;
}

.psicoeventi-load-more-wrap {
  display: flex;
  justify-content: center;
  margin-top: 24px;
}

.psicoeventi-load-more {
  min-width: 220px;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid #162235;
  border-radius: 12px;
  background: #fff;
  color: #162235;
}

.psicoeventi-load-more:hover {
  background: #162235;
  color: #fff;
}

.psicoeventi-load-more[disabled] {
  opacity: .65;
  cursor: wait;
}

.psicoeventi-loading,
.psicoeventi-error,
.psicoeventi-empty {
  border: 1px solid #e8edf2;
  border-radius: 16px;
  padding: 18px;
  background: #fff;
}

@media (max-width: 1180px) {
  .psicoeventi-bar {
    grid-template-columns: minmax(200px, 2fr) repeat(2, minmax(160px, 1fr));
  }

  .psicoeventi-field--actions {
    grid-column: 1 / -1;
    max-width: 420px;
  }

  .psicoeventi-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .psicoeventi-bar {
    grid-template-columns: 1fr 1fr;
  }

  .psicoeventi-field--search,
  .psicoeventi-field--categoria,
  .psicoeventi-field--actions {
    grid-column: 1 / -1;
  }

  .psicoeventi-field--actions {
    max-width: none;
  }

  .psicoeventi-cards {
    grid-template-columns: 1fr;
  }

  .psicoeventi-drawer__panel {
    width: 100%;
    max-width: 100%;
  }
}

.psicoeventi-field--nearby {
  display: grid;
  gap: 10px;
}

.psicoeventi-checkbox {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-weight: 600;
}

.psicoeventi-checkbox input {
  width: 18px;
  height: 18px;
  min-height: 18px;
  margin: 0;
  padding: 0;
}

.psicoeventi-nearby-help {
  margin: 0;
  font-size: 13px;
  color: #4b5563;
}

.psicoeventi-nearby-help.is-error {
  color: #b42318;
}


.psicoeventi-checkbox {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}

.psicoeventi-checkbox input {
  width: 18px;
  height: 18px;
  margin: 0;
}

.psicoeventi-checkbox--nearby {
  min-height: 46px;
  width: 100%;
  padding: 0 14px;
  border: 1px solid #d9dee5;
  border-radius: 12px;
  background: #fff;
  font-weight: 600;
  transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
}

.psicoeventi-field--nearby.is-active .psicoeventi-checkbox--nearby {
  border-color: #162235;
  box-shadow: 0 0 0 3px rgba(22, 34, 53, .08);
  background: #f8fafc;
}

.psicoeventi-nearby-options[hidden] {
  display: none !important;
}

.psicoeventi-nearby-options {
  display: grid;
  gap: 10px;
  margin-top: 10px;
  padding: 14px;
  border: 1px solid #e6ebf0;
  border-radius: 14px;
  background: #f8fafc;
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity .22s ease, transform .22s ease;
}

.psicoeventi-nearby-options.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.psicoeventi-nearby-help {
  margin: 0;
  font-size: 13px;
  color: #4b5563;
}

.psicoeventi-nearby-help.is-error {
  color: #b42318;
}


.psicoeventi-field--nearby {
  gap: 8px;
}

.psicoeventi-checkbox--nearby {
  min-height: auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  font-weight: 400;
  box-shadow: none;
}

.psicoeventi-checkbox--nearby:hover {
  border-color: transparent;
}

.psicoeventi-field--nearby.is-active .psicoeventi-checkbox--nearby {
  border-color: transparent;
  box-shadow: none;
  background: transparent;
}

.psicoeventi-nearby-label-copy {
  display: inline-flex;
  align-items: flex-start;
  gap: 12px;
}

.psicoeventi-nearby-label-copy strong {
  display: block;
  font-size: 15px;
  line-height: 1.25;
  color: #111827;
}

.psicoeventi-nearby-label-copy small {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  line-height: 1.35;
  color: #6b7280;
}

.psicoeventi-nearby-icon {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: #eef2f7;
  color: #162235;
  font-size: 16px;
  flex: 0 0 28px;
}

[data-nearby-label].is-disabled {
  opacity: .55;
  cursor: not-allowed;
}

[data-nearby-label].is-disabled input {
  cursor: not-allowed;
}

.psicoeventi-nearby-distance-label {
  display: block;
  margin: 0 0 6px;
  font-size: 13px;
  font-weight: 600;
  color: #374151;
}

.psicoeventi-nearby-options {
  margin-top: 4px;
  padding: 14px;
  border: 1px solid #e8edf2;
  border-radius: 12px;
  background: #f8fafc;
}
