div#row-unique-1 {
    z-index: 9;
}
.typesense-search-wrapper {
  max-width: 100%;
  margin: 0 auto;

}

.typesense-input-group {
  display: flex;
  gap: 9px;
  align-items: center;
  margin-bottom: 36px;
}
.typesense-input-group form{
  display: flex;
  gap: 9px;
  align-items: center;
  width: 100%;
}
.typesense-input-group  span{
    flex: 1;
    z-index: 1;
    display:block;
    position: relative;
}

.typesense-input {
  width: 100%;
  padding: 10px;
  font-size: 16px;
  padding-right: 28px !important; /* spazio per la X */
  margin: 0;

}
input#typesense-search-input:focus {
    border-color: #eaeaea;
    box-shadow: 0px 0px 4px #00000029;
}
.typesense-button  {
    padding: 10px 18px;
    font-size: 14px;
    background: #d6170b;
    color: #fff;
    border: none;
    cursor: pointer;
    text-transform: uppercase;
    width: 30%;
    font-weight: 600;
    height:41px;
}

.typesense-button:hover {
  background: #aa0000;
}
#typesense-clear-btn {
    position: absolute;
    right: 6px;
    background: transparent;
    border: none;
    font-size: 18px;
    cursor: pointer;
    display: none;
    z-index: 3;
    color: #888;
    height: 41px;
    top: 0;
}

#typesense-clear-btn:hover {
  color: #000;
}
.typesense-suggestions {
    list-style: none !important;
    margin: 0px 0 0;
    padding: 1px 0 0 0 !important;
    border: 1px solid #eaeaea;
    background: #fff;
    top: 40px;
    width: calc(70% - 9px);
    z-index: 999999;
    border-radius: 0 0 6px 6px;
    overflow: hidden;
    border-width: 0px 1px 1px 1px;
    position: absolute;
}

.typesense-suggestions li {
  padding: 0px 10px;
  font-size: 12px;
}
#typesense-suggestions li a{
  color:#000 !important;
  display: block;
  padding: 8px 0;
  position: relative;
}
#typesense-suggestions li:hover {
    background-color: #eaeaea;
}

#typesense-suggestions li a:before {
    content: '';
    border-top: 1px solid #eaeaea;
    width: 100%;
    height: 1px;
    position:absolute;
    top:-1px;
    left: 0;
}
#typesense-suggestions li:hover a:before{
    border-top: 0px solid #eaeaea;
}
.typesense-suggestions mark {
    background-color: #de2f2d;
    padding: 0;
}
.typesense-results {
  margin-top: 36px;
}
.typesense-paginator {
  display: flex;
  gap: 6px;
  justify-content: center;
  margin-top: 36px;
  font-size: 15px;
}

.typesense-paginator button {
  padding: 6px 10px;
  border: 1px solid #ccc;
  background: #fff;
  cursor: pointer;
}

.typesense-paginator button.active {
  background: #cc0000;
  color: #fff;
  border-color: #cc0000;
}

.typesense-paginator span {
  padding: 6px;
}
/* Badge dominio */
.site-badge {
  display: inline-block;
  margin: 6px 0 6px 0;
  padding: 3px 8px;
  font-size: 12px;
  font-weight: 600;
  border-radius: 4px;
  color: #fff;
}

/* Colori per sito */
.site-resmappe {
  background: #c62828;
}

.site-msd {
  background: #1565c0;
}
.typesense-result-item p {
    font-size: 13px;
    margin: 2px 0 0 0;
    line-height: 19px;
}
.typesense-result-item h5 {
    font-weight: 500;
}
