﻿/* ********* RICERCA E RISULTATI *********  */
#PageCercaForm{
  background: rgba(0, 49, 91, 0.72);
  border: 1px solid rgba(216, 229, 245, 0.28);
  box-shadow: 0 .5rem 1.5rem rgba(0, 25, 52, 0.2);
  padding: 2rem;
  color: var(--theme-color2-txt);
}
#PageCercaForm .form-control{
  background: rgba(255, 255, 255, 0.94);
  border-color: rgba(216, 229, 245, 0.55);
  color: var(--theme-color1-bg);
}
#PageCercaForm .form-floating > label{ color: #315174; }
.search-results{ margin: 0; padding: 0; list-style: none; }
.search-result{ padding: .8rem 0; border-bottom: 1px solid rgba(216, 229, 245, 0.28); }
.search-result:last-child{ border-bottom: 0; }
.search-result-title{ margin: 0 0 .2rem; font-size: 1.2rem; font-weight: 700; line-height: 1.2; }
.search-result-title a{ color: var(--theme-color2-txt); text-decoration: none; }
.search-result-title a:hover, .search-result-title a:focus{ color: var(--theme-info); text-decoration: underline; }
.search-result-summary{ margin: 0; color: var(--body-color-light); line-height: 1.45; }
.search-result mark{ background: rgba(41, 255, 255, 0.28); color: inherit; padding: 0 .1em; }
@media (max-width: 575.98px){ #PageCercaForm{ padding: 1.25rem; } #PageCercaForm .btn{ width: 100%; } }
#PageCercaForm .input-group label{
  display: block;
  position: relative;
  padding-left: 35px;
  margin-bottom: 12px;
  cursor: pointer;
  font-size: 16px;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

/* Hide the browser's default checkbox */
#PageCercaForm .input-group label input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
}

/* Create a custom checkbox */
.checkmark {
  position: absolute;
  top: 0;
  left: 0;
  height: 25px;
  width: 25px;
  border:1px solid white;
  background-color: #ccc;
}

.checkmark-radio {
  border-radius: 50%;
}
/* On mouse-over, add a grey background color */
#PageCercaForm .input-group:hover label input ~ .checkmark {
  /*background-color: #ccc;*/
  border:1px solid 2196F3;
}

/* When the checkbox is checked, add a blue background */
#PageCercaForm .input-group label input:checked ~ .checkmark {
  background-color: #2196F3;
}

/* Create the checkmark/indicator (hidden when not checked) */
#PageCercaForm .checkmark:after {
  content: "";
  position: absolute;
  display: none;
}

/* Show the checkmark when checked */
#PageCercaForm .input-group label input:checked ~ .checkmark:after {
  display: block;
}

/* Style the checkmark/indicator */
#PageCercaForm .input-group .checkmark:after {
  left: 9px;
  top: 5px;
  width: 5px;
  height: 10px;
  border: solid white;
  border-width: 0 3px 3px 0;
  -webkit-transform: rotate(45deg);
  -ms-transform: rotate(45deg);
  transform: rotate(45deg);
}
.input-group .checkmark-radio:after {
  top: 8px;
  left: 8px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: white;
}
mark::before, 
mark::after {
  clip-path: inset(100%);
  clip: rect(1px, 1px, 1px, 1px);
  height: 1px;
  overflow: hidden;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}

mark::before {
  content: " [highlight start] ";
}

mark::after {
  content: " [highlight end] ";
}
