/***************************************
*REGOLE GENERALI
***************************************/
@font-face {
  font-family: 'Oswald';
  font-stretch: 50% 150%;
  font-weight: 200 700;
  src: url(../fonts/Oswald/Oswald-VariableFont_wght.ttf) format('truetype');
}
@font-face {
  font-family: 'Lato';
  font-stretch: 50% 150%;
  font-weight: 200 700;
  src: url(../fonts/Lato/Lato-Regular.ttf) format('truetype');
    font-style: normal;
}
@font-face {
  font-family: 'Lato Bold';
  font-stretch: 50% 150%;
  src: url(../fonts/Lato/Lato-Bold.ttf) format('truetype');
    font-style: normal;
}

body {
    font-family: 'Lato';
}
body .field .field__label,
strong,
form.views-exposed-form label {
    font-family: 'Lato Bold';
    font-size: 18px;
}
body .field .field__label::after {
    content: ':';
}

#block-metrologia-breadcrumb {
    background-color: #f5f5f5;
    margin-bottom: 20px;
}
.breadcrumb {
    padding: 8px 15px;
}
.breadcrumb,
nav.tabs {
    max-width: 1320px;
    margin: 0 auto;
}

body h1,
body h2,
.contenuto-slide .titolo-slide,
body #block-metrologia-views-block-percorsi-guidati-block-1 .titolo-percorso,
body.path-frontpage section.region-featured-bottom-first > #block-metrologia-views-block-news-block-1 .titolo,
.views-field-field-data-notizia .titolo,
body.path-frontpage section.region-featured-bottom-first > #block-metrologia-views-block-eventi-block-1 .views-field-title {
    font-family: 'Oswald';
}

body.path-frontpage #block-metrologia-contenutodellapaginaprincipale,
.page-view-taxonomy-term .feed-icons {
    display: none;
}
a {
    text-decoration: none;
}
.field > .field__label {
    font-weight: bold;
}
/* Titoli pagine */
.block-system-main-block h2 > .field--name-title,
.page-view-taxonomy-term .block-system-main-block > h2,
body[class*="page-view-"] .block-system-main-block > h2 {
    display: inline-block;
    font-size: 36px;
    padding-bottom: 9px;
    margin: 40px 0 20px;
    border-bottom: 1px solid #eeeeee;
    width: 100%;
}
/* Colore titoli */
.block-system-main-block h2 > .field--name-title,
.block-system-main-block > h2,
body.path-search .block-system-main-block h2,
body.path-frontpage .block-views > h2,
.page-view-taxonomy-term .block-system-main-block h2,
body.path-user .block-system-main-block h2,
body.path-user #block-metrologia-operazionixruologestore h2,
body[class*="page-view-"] .block-system-main-block > h2,
#block-metrologia-views-block-contatti-block-1 > h2 {
    color: #009fdf;
}
/* Titoli sezioni home */
body.path-frontpage .block-views > h2 {
    display: inline-block;
    padding-top: 4px;
    padding-right: 20px;
    background-image: url(../grafica-sito/markermenu.png);
    background-repeat: no-repeat;
    background-position: right top;
    margin-bottom: 40px;
}
/* Spaziatura regioni */
#page .featured-bottom > aside.container {
    max-width: 100%;
    background-color: #F6F5F3;
}
body.path-frontpage section.region-featured-bottom-first {
    max-width: 1320px;
    margin: 0 auto;
}

.field > img,
.field__item > img {
    max-width: 100%;
    height: auto;
}

/* Paginazione */
.pagination {
    width: fit-content;
    margin: 20px auto 0;
}
/***************************************
*NAVBAR TOP
***************************************/
nav#navbar-top {
    background-color: #009fdf;
    padding: 5px 20px;
}
header button.navbar-toggler.collapsed {
    border-color: gray;
}header button.navbar-toggler.collapsed > span {
    filter: invert(2);
}
nav#navbar-top > section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-direction: column;
    width: 100%;
    color: white;
}
nav#navbar-top > section.region-top-header > div:first-child {
    margin-top: 10px;
}
nav#navbar-top > section.region-top-header > div:not(:last-child) {
    margin-bottom: 20px;
}
nav#navbar-top > section > div p,
nav#navbar-top > section > div form#search-block-form > div.js-form-item,
nav#navbar-top > section > div form#search-block-form > div.form-actions {
    margin-bottom: 0 !important;
}

nav#navbar-top > section > div .infotopbar.giorni {
    padding: 5px 5px 5px 25px;
    margin-right: 20px;
    background-image: url("../grafica-sito/clock-regular.png");
    background-repeat: no-repeat;
    background-position: 2px;
}
nav#navbar-top > section > div#block-metrologia-formdiricerca,
nav#navbar-top > section > div#block-metrologia-logounioncamere,
nav#navbar-top > section > div#block-metrologia-infoprimabarra,
nav#navbar-top > section > div#block-metrologia-formdiricerca .content.container-inline,
nav#navbar-top > section > div#block-metrologia-formdiricerca form#search-block-form,
nav#navbar-top > section > div#block-metrologia-formdiricerca form#search-block-form > div.js-form-item {
    width: 100%;
}
nav#navbar-top form#search-block-form input.form-search {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}
nav#navbar-top form#search-block-form .btn-search.btn-primary {
    background-color: #337ab7;
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}
nav#navbar-top form#search-block-form .btn-search::before {
    content: "";
    display: inline-block;
    width: 16px;
    height: 16px;
    background-color: #fff;
    mask: url("../grafica-sito/search.svg") no-repeat center;
}


nav#navbar-top > section > div#block-metrologia-logounioncamere .area-r {
    text-transform: uppercase;
    position: relative;
    padding-left: 25px;
    font-size: 80%;
    margin-right: 15px;
}
nav#navbar-top > section > div#block-metrologia-logounioncamere .area-r > a {
    color: white;
}
nav#navbar-top > section > div#block-metrologia-logounioncamere .area-r > a::before {
    position: absolute;
    content: url(../grafica-sito/lucchetto-bianco.png);
    left: 0px;
}

/***************************************
*HEADER MAIN NAV
***************************************/
header > nav#navbar-main a#link-home-logo {
    width: 222px;
    height: 159px;
    background: url('../grafica-sito/logo_metr_leg.png') no-repeat center;
    background-size: contain;
}
header nav#block-metrologia-navigazioneprincipale {
    width: 100%;
}
header:not(.node header),
header nav#block-metrologia-navigazioneprincipale ul > li.nav-item.menu-item--expanded > ul {
    background-color: #303030;
}
header > nav#navbar-main {
    background-color: transparent;
    padding-left: 20px;
    padding-right: 20px;
}
header > nav#navbar-main > div#CollapsingNavbar{
    justify-content: start !important;
}
header > nav#navbar-main nav.menu--main > ul {
    display: flex;
    align-items: center;
    justify-content: start;
    flex-wrap: wrap;
}
header > nav#navbar-main nav.menu--main > ul > li {
    height: fit-content;
}
header > nav#navbar-main nav.menu--main > ul > li > button {
    color: white;
    background-image: url(../grafica-sito/markermenu.png);
    background-position: right top;
    background-repeat: no-repeat;
}
header > nav#navbar-main nav.menu--main > ul > li > button::after,
header > nav#navbar-main nav.menu--main > ul > li.nav-item:first-child {
    display: none;
}
header > nav#navbar-main nav.menu--main > ul > li > ul {
    border-radius: 0;
}
header > nav#navbar-main nav.menu--main > ul > li > ul a {
    color: black;
}

header nav#block-metrologia-navigazioneprincipale ul > li.nav-item,
header nav#block-metrologia-navigazioneprincipale ul > li.nav-item:not(:first-child) > button {
    width: 100%;
    text-align: start;
    padding: 10px;
}
header nav#block-metrologia-navigazioneprincipale ul > li.nav-item.menu-item--expanded > ul {
    border: 0;
}
header nav#block-metrologia-navigazioneprincipale ul > li.nav-item.menu-item--expanded > ul li.active {
    background-color: #009fdf;
    color: white;
}
header nav#block-metrologia-navigazioneprincipale ul > li.nav-item.menu-item--expanded > ul a {
    color: #777;
    padding: 5px 15px 5px 25px;
}
header nav#block-metrologia-navigazioneprincipale ul > li.nav-item.menu-item--expanded > ul li.active a {
    color: white;
}
.navbar-collapse {
    border-top: 1px solid #e7e7e7;
}

/***************************************
*SLIDER HOME
***************************************/
#page > .highlighted {
    background-color: #ABABAB;
}
#page > .highlighted > .container {
    max-width: 1500px;
}
#page > .highlighted .carousel .carousel-control-prev > span,
#page > .highlighted .carousel .carousel-control-next > span {
    background-color: rgba(255, 255, 255, 0.25);
    height: 46px;
    background-size: 50%;
}
#page > .highlighted .carousel .contenuto-slide > img:not(img[alt="metro e pesi di taratura"]) {
    filter: brightness(50%);
}
#page > .highlighted .carousel .contenuto-slide .titolo-slide {
    position: absolute;
    color: #ffffff;
    text-transform: uppercase;
    z-index: 1000;
    top: 35px;
    left: 60px;
    font-size: 30px;
}

#page > .highlighted .carousel .contenuto-slide .scuro {
    position: absolute;
    width: 710px;
    height: 380px;
    background-color: rgba(0, 0, 0, 0.25);
    z-index: 995;
    top: 16px;
    left: 0;
}
#page > .highlighted .carousel .contenuto-slide .azzurro {
    position: absolute;
    width: 250px;
    height: 211px;
    background-color: #009fdf;
    z-index: 990;
    top: 220px;
    left: 153px;
}
#page > .highlighted .carousel .contenuto-slide .testo-slide {
    color: #ffffff;
    position: absolute;
    top: 230px;
    left: 288px;
    font-size: 18px;
    z-index: 997;
    width: 614px;
    display: none;
}
#page > .highlighted .carousel .contenuto-slide .pulsante-slide {
    position: absolute;
    top: 170px;
    left: 45%;
    z-index: 997;
}
#page > .highlighted .carousel .contenuto-slide .pulsante-slide > a {
    text-transform: uppercase;
    font-size: 18px;
    display: inline-block;
    padding: 5px 12px;
    color: #ffffff;
    background-color: #009fdf;
    white-space: nowrap;
    text-decoration: none;
    transition: background .7s ease, color .7s ease;
}
#page > .highlighted .carousel .contenuto-slide .pulsante-slide > a:hover {
    background-color: #ffffff;
    color: #009fdf;
}

/***************************************
*BLOCCO PERCORSI HOME
***************************************/
body #block-metrologia-views-block-percorsi-guidati-block-1 {
    padding: 80px 0;
}
body .view-percorsi-guidati > .view-content.row {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}
body .view-percorsi-guidati .views-row {
    flex-grow: 1;
    margin-bottom: 20px;
    width: 1000%;
}
body .view-percorsi-guidati .views-row .riquadro.bakground-33 {
    background-color: #C61DE5;
}
body .view-percorsi-guidati .views-row .riquadro.bakground-34 {
    background-color: #E9BB03;
}
body .view-percorsi-guidati .views-row .riquadro.bakground-36 {
    background-color: #2BC516;
}
body .view-percorsi-guidati .views-row .riquadro.bakground-35 {
    background-color: #E5551D;
}
body .view-percorsi-guidati .views-row .riquadro.bakground-37 {
    background-color: #1D39E5;
}
body .view-percorsi-guidati .views-row .riquadro {
    display: block;
    text-align: center;
    padding: 30px;
    min-height: 200px;
    transition: all .25s ease-in;
    background-image: linear-gradient(to right, transparent, transparent 50%, #009fdf 50%, #009fdf);
    background-position: 100% 0;
    background-size: 200% 100%;
}
body .view-percorsi-guidati .views-row .riquadro:hover {
    background-position: 0 0;
    color: #333;
}
body .view-percorsi-guidati .views-row .riquadro > .titolo-percorso {
    font-size: 120%;
    color: #ffffff;
    max-width: 190px;
    margin: 0 auto;
    min-height: 64px;
    margin-top: 20px;
}
body .view-percorsi-guidati .views-row .riquadro > .righetta {
    width: 50px;
    margin: 0 auto;
    border-bottom: 1px solid #ffffff;
    padding-bottom: 5px;
}
body .view-percorsi-guidati .views-row .riquadro > .righetta > .righetta2 {
    border-bottom: 1px solid #ffffff;
}

/***************************************
*BLOCCHI HOME IN EVIDENZA/NEWS/EVENTI
***************************************/
/* Regole comuni */
body.path-frontpage section.region-featured-bottom-first {
    padding: 100px 0;
}
body.path-frontpage section.region-featured-bottom-first .views-row {
    margin-bottom: 30px;
}
body.path-frontpage section.region-featured-bottom-first .view-footer {
    text-align: end;
}

body.path-frontpage section.region-featured-bottom-first > #block-metrologia-views-block-news-block-1,
body.path-frontpage section.region-featured-bottom-first > #block-metrologia-views-block-eventi-block-1 {
    width: 100%;
}
body.path-frontpage section.region-featured-bottom-first > #block-metrologia-views-block-news-block-1 .titolo,
body.path-frontpage section.region-featured-bottom-first > #block-metrologia-views-block-eventi-block-1 .field-content > a {
    line-height: 120%;
    font-size: 18px;
    font-weight: 500;
}
body.path-frontpage section.region-featured-bottom-first > #block-metrologia-views-block-news-block-1 .titolo > a,
body.path-frontpage section.region-featured-bottom-first > #block-metrologia-views-block-eventi-block-1 .field-content > a {
    color: #009fdf;
}

/* Sezione in evidenza */
body.path-frontpage section.region-featured-bottom-first > #block-metrologia-views-block-in-evidenza-inevidenza-home {
    width: 100%;
}
body.path-frontpage section.region-featured-bottom-first .view-in-evidenza .views-field-field-video-da-visualizzare iframe.media-oembed-content {
    width: 640px;
    height: 360px;
}

/* Sezione news */
body.path-frontpage section.region-featured-bottom-first > #block-metrologia-views-block-news-block-1 .notizia-hp-1-3 {
    display: flex;
}
body.path-frontpage section.region-featured-bottom-first > #block-metrologia-views-block-news-block-1 .foto img {
    margin-right: 10px;
}

/* Sezione eventi */
body.path-frontpage section.region-featured-bottom-first > #block-metrologia-views-block-eventi-block-1 .views-row > .views-field-field-data-evento,
body.path-frontpage section.region-featured-bottom-first > #block-metrologia-views-block-eventi-block-1 .views-row > .views-field-field-categoria-evento {
    font-size: 70%;
    display: inline-block;
}

/***************************************
*FOOTER
***************************************/
body:not(.path-frontpage) .site-footer {
    margin-top: 80px;
}
.site-footer {
    background: #303030;
    padding-bottom: 0;
}
.site-footer .block {
    border: 0;
}
footer .site-footer__top .region.region-footer-first,
footer .site-footer__top .region.region-footer-second,
footer .region-footer-second .field--name-body ul.col {
    width: 100%;
}
footer.site-footer .block a:hover {
    color: #71afbd;
    background-color: transparent;
}
footer .region-footer-second .field--name-body {
    display: flex;
    flex-direction: column;
}
footer .region-footer-second .field--name-body > p {
    display: none;
}
footer .region-footer-second .field--name-body ul.col > li {
    color: #71afbd;
    margin-bottom: 20px;
    font-size: 18px;
    font-weight: 500;
}
footer .region-footer-second .field--name-body ul.col > li * {
    list-style: none;
    border-bottom: 0;
    font-size: 16px;
    font-weight: 400;
    padding-top: 0;
    padding-bottom: 0;
}

footer .site-footer__bottom,
footer .site-footer__bottom > section.region {
    max-width: 100vw;
    margin: 0 auto;
    background-color: black;
}
footer .site-footer__bottom p {
    margin-bottom: 0;
}
footer .site-footer__bottom #block-metrologia-copyright {
    max-width: 1320px;
    margin: 0 auto;
    padding: 15px 0;
}