/* COIMA — Press Release filters, live-design layout (#59):
   grey "Filtra per" box with pill terms + keyword search; years row outside. */

.press-filters-box {
  background: #f4f4f4;
}

/* Pill-style filter terms (Società/Tipologia inside the box, years outside) */
.press-filters-box .ensoul-filter-term,
.press-years .ensoul-filter-term {
  display: inline-flex;
  align-items: center;
  padding: 8px 20px;
  border: 1px solid #8e9090;
  border-radius: 999px;
  background: #fff;
  color: inherit;
  font-size: var(--wp--preset--font-size--xs, 13px);
  line-height: 1.4;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.press-filters-box .ensoul-filter-term:hover,
.press-years .ensoul-filter-term:hover {
  border-color: var(--color-filter-active, var(--wp--preset--color--accent-2, #23527c));
  color: var(--color-filter-active, var(--wp--preset--color--accent-2, #23527c));
}

.press-filters-box .ensoul-filter-term.active-term,
.press-years .ensoul-filter-term.active-term {
  background: var(--color-filter-active, var(--wp--preset--color--accent-2, #23527c));
  border-color: var(--color-filter-active, var(--wp--preset--color--accent-2, #23527c));
  color: #fff;
}

/* Section label ("Società"/"Tipologia") above its pills, like the live box */
.press-filters-box .wp-block-ensoul-filter {
  flex-direction: column;
  align-items: flex-start;
  gap: var(--wp--preset--spacing--xs, 10px);
}

.press-filters-box .filter_string {
  font-size: var(--wp--preset--font-size--xs, 13px) !important;
  font-weight: 400;
  text-transform: none;
  color: var(--wp--preset--color--accent-3, #555);
}

.press-search {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--wp--preset--spacing--s, 16px);
  width: 100%;
  max-width: 510px;
}

.press-search__input {
  width: 100%;
  min-width: 0;
  padding: 10px 20px;
  border: 1px solid #8e9090;
  border-radius: 999px;
  background: #fff;
  color: inherit;
  font-family: inherit;
  font-size: var(--wp--preset--font-size--xs, 13px);
  line-height: 1.4;
}

.press-search__input:focus {
  outline: none;
  box-shadow: 0 0 0 2px rgba(35, 82, 124, 0.18);
}

.press-search__btn {
  display: inline-flex;
  align-items: center;
  padding: 10px 34px;
  border: 1px solid var(--color-filter-active, var(--wp--preset--color--accent-2, #23527c));
  border-radius: 999px;
  background: var(--color-filter-active, var(--wp--preset--color--accent-2, #23527c));
  color: #fff;
  font-family: inherit;
  font-size: var(--wp--preset--font-size--xs, 13px);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  transition: opacity 0.15s ease;
}

.press-search__btn:hover {
  opacity: 0.85;
}

/* Loading + empty states for the AJAX-swapped list */
.wp-block-post-template.ensoul-loading {
  opacity: 0.45;
  transition: opacity 0.15s ease;
  pointer-events: none;
}

li.press-no-results {
  list-style: none;
  padding: var(--wp--preset--spacing--m, 24px) 0;
  font-size: var(--wp--preset--font-size--base, 16px);
  color: var(--wp--preset--color--accent-3, #555);
}

/* Keyword + date-range row (live layout: [keyword] [Da] [a], button below).
   Widen the search container so the three fields sit on one desktop row; they
   wrap on mobile. */
.press-search {
  max-width: 720px;
}

.press-search__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--wp--preset--spacing--s, 16px);
  width: 100%;
}

.press-search__row .press-search__input {
  width: auto;
  flex: 1 1 220px;
}

.press-search__date {
  flex: 0 0 auto;
  padding: 9px 16px;
  border: 1px solid #8e9090;
  border-radius: 999px;
  background: #fff;
  color: inherit;
  font-family: inherit;
  font-size: var(--wp--preset--font-size--xs, 13px);
  line-height: 1.4;
}

.press-search__date:focus {
  outline: none;
  box-shadow: 0 0 0 2px rgba(35, 82, 124, 0.18);
}
