*>a.custom-focus-outline:focus:not(.focus--mouse),
*>a>rect:focus:not(.focus--mouse) {
    outline: 6px solid hsl(36deg, 100%, 50%) !important;
}

*>a.custom-focus-outline:hover {
    outline: 6px solid #0063ce;
}

*:focus,
:focus:not(.focus--mouse),
.form-check [type=checkbox]:focus+label,
.form-check [type=radio]:focus+label,
.toggles label input[type=checkbox]:focus+.lever {
    outline: 2px transparent solid !important;
    box-shadow: 0 0 0 2px #F9F9D1, 0 0 0 4px #396196, 0 0 4px 8px #F9F9D1 !important;
}

@media (prefers-reduced-motion: no-preference) {
    :root {
        scroll-behavior: auto;
    }
}

#it-main-content {
    padding-bottom: 70px;
}

div.field--name-field-data-riferimento {
    font-weight: bold;
    color: #5a6772;
    text-transform: lowercase;
    margin-bottom: 1rem;
}

div.field.field--type-image.field--name-field-media-image.field--entity-media.field--label-hidden.field--view-mode-default {
    margin-bottom: 1rem;
}

.block-page-title-block>h1 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.node__content p,
.node__content div {
    color: #5a6772;
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.6rem;
}

.node__content a {
    text-decoration: none;
}

video {
    object-fit: cover;
}

#edit-search {
    max-width: 480px;
}

.site-search-form {
    display: flex;
}

.site-search-form>input[name="search"] {
    height: 40px;
    width: calc(100% - 40px);
    border: 1px solid #5a6775;
}

.site-search-form>button {
    height: 40px;
    width: 40px;
    border: none;
    background: #0073df;
}

.site-search-form>button>svg {
    color: white;
    width: 20px;
    height: 20px;
    margin-top: 4px;
}

@media (max-width: 992px) {
    .it-search-wrapper {
        padding-top: 2px !important;
    }
}

@media (max-width: 767px) {
    .site-search-form>input[name="search"] {
        display: none;
    }

    .site-search-form>button {
        height: 40px;
        width: 40px;
        border: none;
        border-radius: 100%;
        background: white;
    }

    .site-search-form>button>svg {
        color: #0073df;
        width: 20px;
        height: 20px;
        margin-top: 4px;
    }
}

form.user-pass-reset {
    padding-top: 24px;
}

[type="submit"],
#edit-reset,
[id^=edit-reset] {
    text-transform: uppercase;
    background: #0063ce;
    color: #fff;
    padding: 4px 15px;
    display: inline-block;
    font-size: 16px;
    font-family: 'Titillium Web', sans-serif !important;
    border: none !important;
    box-shadow: none;
    border-radius: 0;
}

/* CUSTOM TYPES */
article.node--type-normativa>div.node__content>div,
article.node--type-interpello>div.node__content>div,
article.node--type-modulistica>div.node__content>div,
article.node--type-studi-e-statistiche>div.node__content>div {
    margin-top: 25px;
}

article.node--type-normativa>div.node__content>div>div:first-child,
article.node--type-interpello>div.node__content>div>div:first-child,
article.node--type-modulistica>div.node__content>div>div:first-child,
article.node--type-studi-e-statistiche>div.node__content>div>div:first-child {
    font-weight: 600;
}

article.node--type-normativa>div.node__content .chip-primary,
article.node--type-interpello>div.node__content .chip-primary,
article.node--type-modulistica>div.node__content .chip-primary,
article.node--type-studi-e-statistiche>div.node__content .chip-primary {
    line-height: 1rem;
}

/* Fix for datepicker on firefox */
@-moz-document url-prefix() {
    .flatpickr-current-month {
        position: relative;
    }

    .flatpickr-current-month .numInputWrapper {
        position: absolute;
        top: 8px;
        right: 30px;
    }
}

.view-id-decreti_cigs {
    border: 1px solid #ddd;
    padding: 8px;
}

.decreto-cigs-wrapper {
    display: flex;
    flex-wrap: wrap;
    min-height: 150px;
    border-bottom: 1px solid #ccc;
    padding: 10px;
    padding-bottom: 20px;
}

.decreto-cigs-wrapper>a,
.decreto-cigs-wrapper>div {
    flex: 1;
}

.decreto-cigs-wrapper>a {
    font-weight: bold;
    font-size: 1.2em;
}

.decreto-cigs-wrapper>a>svg {
    padding-left: 10px;
}


.p-relative {
  position: relative;
}
.custom-matches {
  position: absolute;
  top: 18px;
  right: 25px;
  display: flex;
  gap: 16px;
}
@media (max-width: 992px) {
  .custom-matches {
    position: static;
  }
}
.custom-matches .custom-match {
  width: fit-content;
}
.custom-matches .custom-match img {
  max-width: 254px;
  height: auto;
  max-height: 150px;
}
.custom-matches .custom-match a {
  font-size: 18px;
  line-height: 24px;
  display: flex;
  flex-flow: column;
  align-items: center;
  gap: 8px;
  border: 1px solid #bbb;
  -webkit-box-shadow: 1px 1px 5px .5px rgba(0, 0, 0, .28);
  box-shadow: 1px 1px 5px .5px rgba(0, 0, 0, .28);
}
.custom-matches .custom-match span {
  padding: 0 1rem 1rem;
}
