/* reset css */
body {
  font-size: 22px;
}

form.views-exposed-form .js-form-wrapper.mb-3,
form.views-exposed-form .js-form-item.mb-3 {
  margin-bottom: 0 !important;
}

#searchModal .modal-header {
  padding-right: 1.5rem;
}

#searchModal .btn-close {
  background: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23000'%3e%3cpath d='M.293.293a1 1 0 0 1 1.414 0L8 6.586 14.293.293a1 1 0 1 1 1.414 1.414L9.414 8l6.293 6.293a1 1 0 0 1-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 0 1-1.414-1.414L6.586 8 .293 1.707a1 1 0 0 1 0-1.414z'/%3e%3c/svg%3e");
  opacity: 1;
  width: .5rem;
  height: .5rem;
}

.btn:hover {
  color: var(--bs-btn-hover-color);
  background-color: var(--red);
  border-color: var(--red);
}

.node__content {
  margin-top: 0;
}

.field--type-image img, .field--name-field-user-picture img {
  margin: 0;
}

.container-fluid {
  width: 100%;
  max-width: 2000px;
}

.offcanvas-header .btn-close {
  transform: scale(1.5);
}

#CollapsingNavbar {
  overflow-y: auto;
}

#CollapsingNavbar .col-left .nav-link {
  padding: 1rem 0;
}

.dropdown-item.active, .dropdown-item:active {
  color: var(--white);
  background-color: var(--red);
}

.menu--main li.nav-item .dropdown-item:active a,
.menu--main li.nav-item .dropdown-item:active a {
  color: var(--white);
}

ul.pagination.js-pager__items {
  display: flex;
  flex-wrap: wrap;
}

ul.pagination.js-pager__items>li {
  margin-bottom: .75rem;
}

/* end reset */
html * {
  scroll-margin-top: 100px;
}

/* lo statuto elenco numerato */
.page-node-530 #content ol {
  list-style-type: lower-alpha;
}

blockquote {
  background: var(--grey-light);
  background: var(--green-light);
  margin: 3em 0;
  margin-bottom: 1rem;
  margin-left: 0;
  padding: 1rem;
  padding-top: 2.5rem;
  quotes: "\201C" "\201D" "\2018" "\2019";
  font-style: italic;
}

blockquote:before {
  display: block;
  color: var(--red);
  content: open-quote;
  font-size: 4em;
  line-height: 0.1em;
  margin-right: 0.25em;
  vertical-align: -0.4em;
}

.modal-dialog blockquote {
  quotes: auto;
}

.paragraph--type--green-thoughts blockquote::before {
  display: inline-block;
}

h2 blockquote,
blockquote h2 {
  font-size: 1.8rem;
  line-height: 2.2rem;
  margin: 0;
  padding: 2rem 3rem;
}

.text-right {
  text-align: right !important;
}

.node_table_wrapper {
  background-color: var(--grey-light);
  background-color: var(--green-light);
  padding-top: 2rem;
  padding-bottom: 2rem;
}

.path-node.node--type-progetto .node_table_wrapper {
  background-color: transparent;
}

.sticky_table {
  position: sticky;
  top: 110px;
}

.node_table_item_value p {
  font-size: unset;
}

.contextual-region {
  position: unset;
}

.node--view-mode-full.node--unpublished {
  background-color: var(--grey-light);
  border: 2px dashed var(--grey-dark);
}

.node--view-mode-teaser {
  border-bottom: 0;
  margin-bottom: 0;
  padding-bottom: 0;
}

.views-view-grid .node--view-mode-teaser {
  margin-bottom: 1.5rem;
}

.field--type-entity-reference {
  margin-bottom: 0;
}

/* end reset css */
body {
  font-size: 16px;
  line-height: 22px;
  font-family: var(--site-font);
  color: var(--site-font-color);
}

a {
  color: var(--red);
  text-decoration: none;
}

a:hover,
a:focus {
  color: var(--red-dark);
  text-decoration: none;
}

.form-control:focus,
.btn-close:focus {
  box-shadow: 0 0 0 0.1rem var(--yellow);
}

.js input.form-autocomplete {
  background-image: url(../img/loader_small18_fixed.png);
  background-repeat: no-repeat;
  background-position: 98% center;
}

.js input.form-autocomplete.ui-autocomplete-loading {
  background-image: url(../img/loader_small18.gif);
  background-position: 98% center;
}

.ajax-progress-fullscreen {
  position: fixed;
  z-index: 1261;
  top: 48.5%;
  left: 49%;
  width: 32px;
  height: 32px;
  padding: 8px;
  opacity: 0.9;
  border-radius: 6px;
  background-color: var(--grey);
  background-size: 24px 24px;
  border: 4px solid var(--grey);
  background-image: url(../img/loader_medium.gif);
  background-repeat: no-repeat;
  background-position: center center;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--site-font-titles);
  margin-bottom: .75rem;
}

h1 a, h2 a, h3 a, h4 a, h5 a, h6 a {
  color: var(--site-font-color);
  text-decoration: none;
}

h1 a:hover, h2 a:hover, h3 a:hover, h4 a:hover, h5 a:hover, h6 a:hover {
  color: var(--red);
}

footer h6 {
  font-family: var(--site-font);
}

h1, h2, h3 {
  /* text-transform: uppercase; */
}

h1 {
  font-size: 2.5rem;
  line-height: 3.3rem;
  font-weight: 900;
}

@media screen and (min-width: 375px) {
  h1 {
    font-size: 2.8rem;
  }
}

h2 {
  font-size: 2.3rem;
  line-height: 2.7rem;
}

h3 {
  font-size: 1.8rem;
  line-height: 2.0rem;
  margin-bottom: 1.3rem;
}

h4 {
  font-size: 1.5rem;
  line-height: 2.2rem;
}

h6 span {
  font-weight: 400;
}

h1.title,
h1.node_title {
  font-weight: bold;
  margin-bottom: 1.5rem;
}

.section_title {
  font-weight: 700;
  font-size: 2.5rem;
  line-height: 2.75rem;
  color: var(--grey-dark);
}

.node_subtitle {
  font-weight: normal;
  font-style: italic;
  font-size: 1.5rem;
  text-transform: none;
}

.like_title {
  font-family: var(--site-font-titles);
  color: var(--site-font-color);
  text-transform: uppercase;
  font-size: 2.5rem;
  line-height: 2.5rem;
  font-weight: 900;
}

.like_title span {
  font-weight: 200;
  font-size: 2rem;
}

p,
.trimmed {
  font-size: 1.1rem;
  line-height: 1.6rem;
}

ul {
  list-style-type: square;
}

img {
  max-width: 100%;
  height: auto;
}

.scaleImg {
  overflow: hidden;
}

.scaleImg img {
  transition: all linear .3s;
}

.scaleImg:hover img {
  transform: scale(1.1);
}

#main-wrapper .cosa-lipu img {
  max-width: 100%;
  width: 80%;
  margin: auto;
  margin-bottom: 2rem;
  height: auto;
  transform: scale(1);
}

p.lead {
  font-size: 1.5rem;
  line-height: 2rem;
  font-weight: normal;
  margin-bottom: 1rem;
}

article.node--view-mode-full .node__content .field--name-body img {
  max-width: 100%;
  width: auto;
  height: auto;
  margin-top: 0.5rem;
  margin-bottom: 1rem;
}

.path-node.node--type-policy #main-wrapper img {
  width: auto;
}

.social_sharing {
  font-size: 0.8rem;
}

.social_sharing span {
  position: relative;
  top: 2px;
}

.social_sharing a svg {
  height: 0.8rem;
  width: auto;
  margin: 0 .25rem;
}

.social_sharing a:hover svg,
.site-footer .contacts a:hover svg {
  fill: var(--red);
}

.sticky_left {
  position: sticky;
  top: 110px;
}

#utilities {
  position: absolute;
  top: 0;
}

/* Layout */
.layout--twocol-section--50-50 .layout__region--first {
  padding-right: .75rem;
}

.layout--twocol-section--50-50 .layout__region--second {
  padding-left: .75rem;
}

/* Contents */
.greybox {
  background-color: var(--grey);
  padding: 1rem;
  border-radius: var(--leaf-shape);
}

/* loader */
#loader_out {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #ffffff;
  z-index: 999992;
  overflow: hidden;
}

#loader_in {
  display: flex;
  justify-content: center;
  align-items: center;
  align-content: center;
  width: 100%;
  height: 100%;
}

.loader_img {
  display: block;
  animation-name: loaderPulse;
  animation-duration: 1s;
  animation-direction: alternate;
  animation-iteration-count: infinite;
}

@keyframes loaderPulse {
  0% {
    transform: scale(0.8, 0.8);
    opacity: 1;
  }

  100% {
    transform: scale(1, 1);
    opacity: 0.8;
  }
}

/* Buttons */
.btn,
.btn.btn-outline-primary,
ul li.nav-item a.nav-link.dona-ora-link,
ul li.nav-item a.nav-link.iscriviti-rinnova {
  border-radius: var(--leaf-shape);
  transition: 0.3s linear all;
  color: var(--white);
}

button[name="reset"] {
  background-color: var(--white);
  color: var(--red);
  border-radius: var(--leaf-shape);
  transition: 0.3s linear all;
}

ul li.nav-item a.nav-link.iscriviti-rinnova {
  text-transform: uppercase;
}

.btn {
  font-family: var(--bs-btn-font-family);
  padding: 0.6rem 1.2rem;
  font-size: 1.1rem;
}

.btn.btn-readmore {
  padding: 0.25rem 0.5rem;
  font-size: 0.875rem;
}

.btn.search_icon {
  border: 0;
}

.btn.search_icon svg {
  height: 1.25rem;
  margin-left: -.5rem;
}

.search_icon.btn:hover {
  background-color: transparent;
  border: 0;
}

.btn.search_icon:hover svg {
  fill: var(--red);
}

.btn:hover,
ul li.nav-item a.nav-link.dona-ora-link:hover {
  border-radius: var(--leaf-shape-active);
  border-radius: var(--leaf-shape);
}

.btn-primary {
  --bs-btn-bg: var(--red);
  --bs-btn-border-color: var(--red);
  --bs-btn-disabled-bg: var(--red);
  --bs-btn-disabled-border-color: var(--red);
}

button span {
  display: inline-block;
}

.btn-primary svg {
  width: 1rem;
}

.btn-primary svg path {
  fill: #fff;
}

.btn-outline-primary {
  border-color: var(--red);
  color: var(--red);
}

ul li.nav-item a.nav-link.dona-ora-link:hover,
ul li.nav-item a.nav-link.iscriviti-rinnova:hover,
.btn.btn-outline-primary:hover,
.btn.btn-primary:hover,
a.btn.btn-primary:focus,
.btn-check:checked+.btn, .btn.active, .btn.show, .btn:first-child:active, :not(.btn-check)+.btn:active,
.btn:focus-visible {
  background-color: var(--red-dark);
  color: var(--white);
  border-color: var(--red-dark);
  border-radius: var(--leaf-shape);
}

.btn.btn-outline-primary {
  color: var(--red);
}

.btn-readmore {
  height: 24px;
  border-radius: 0;
  position: relative;
}

.btn.btn-readmore,
.btn.btn-readmore:hover {
  background-color: transparent;
  border-color: var(--grey-dark);
  border: 1px solid transparent;
}

.btn-readmore svg {
  position: absolute;
  top: 4px;
  left: 4px;
  width: 16px;
  height: 16px;
  transform: rotate(-45deg);
  transition: 0.3s linear all;
}

.btn-readmore:hover svg,
.node--type-article.node--view-mode-teaser .field_cover_image:hover+.news_info .btn-readmore svg {
  transform: rotate(-0deg);
  transition: 0.3s linear all;
}

.btn-readmore span {
  margin-left: 24px;
  position: relative;
  text-transform: uppercase;
  z-index: 1;
  top: -2px;
  transition: 0.3s linear all;
  opacity: 0;
}

.btn-readmore:hover span,
.node--type-article.node--view-mode-teaser .field_cover_image:hover+.news_info .btn-readmore span {
  color: var(--white);
  opacity: 1;
}

.btn-readmore svg path {
  fill: var(--white);
}

.btn-readmore:before {
  content: '';
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  width: 24px;
  height: 24px;
  transition: 0.3s linear all;
  background-color: var(--grey-dark);
}

.btn-readmore:hover:before,
.node--type-article.node--view-mode-teaser .field_cover_image:hover+.news_info .btn-readmore:before {
  width: 100%;
}

.node .field--type-image {
  float: none;
  margin: 0;
}

.node .field--type-image img {
  display: inline-block;
}

.navbar-toggler {
  border: 0px;
  padding: 0.4rem;
  width: 4rem;
  height: 4rem;
}

.navbar-toggler:hover {}

.toggler-line.toggler-line-1 {
  margin-top: 0.5rem;
}

.toggler-line {
  display: block;
  border-radius: 4rem;
  background-color: var(--grey-dark);
  height: 3px;
  width: 100%;
  margin: auto;
  margin-bottom: 0.9rem;
  transition: 0.3s linear all;
}

.navbar-toggler:hover .toggler-line.toggler-line-2 {
  width: 60%;
}

.navbar-toggler:hover .toggler-line.toggler-line-3 {
  width: 20%;
}

.ui-autocomplete.ui-front.search-api-autocomplete-search {
  border: 1px solid red;
  position: relative;
  width: 100%;
  max-width: 400px;
  z-index: 1100;
}

.region-utility-search input.form-autocomplete {
  font-size: 1.5rem;
}

.region-utility-search .views-exposed-form .d-flex.flex-wrap {
  align-items: center;
}

.region-utility-search .views-exposed-form .form-actions {
  align-self: unset;
}

.region-utility-search .view-search-all-contents h3 {
  margin-bottom: 0;
}

/* main-menu */
.menu--main li.nav-item .parent_item_wrapper {
  display: flex;
  justify-content: space-between;
}

.menu--main li.nav-item span.toggle_menu {
  display: inline-block;
  width: 1.2rem;
  height: 1.2rem;
  cursor: pointer;
  font-weight: normal;
  font-size: 1.2rem;
  line-height: 1.2rem;
  text-align: center;
  margin-top: 0.4rem;
  background-color: var(--grey);
}

.menu--main li.nav-item ul.dropdown-menu {
  border: 0px;
  background-color: var(--grey-light);
  /* background-color: var(--green-light); */
  border-radius: 0px;
  padding: 0;
}

.menu--main li.nav-item a {
  color: var(--grey-dark);
}

.menu--main li.nav-item a:hover,
.menu--main li.nav-item a.active {
  color: var(--red);
}

.site-footer li.nav-item a.active {
  color: var(--bs-navbar-active-color);
}

.menu--main li.nav-item .dropdown-item a.active {
  color: var(--white);
}

/* Multimedia */
video {
  max-width: 100%;
  height: auto;
}

audio {
  width: 100%;
}

.field_credits {
  text-align: center;
  color: var(--light-dark);
  margin-bottom: 1rem;
  font-size: .8rem;
}

iframe.media-oembed-content {
  width: 100%;
  min-height: 300px;
}

/* slideshow (Slick Carousel) */
ul.slick-dots {
  display: flex;
  justify-content: center;
  list-style-type: none;
  padding-inline-start: 0;
  /* margin-top: 2rem; */
  margin-top: 1rem;
}

ul.slick-dots>li>button {
  border: 2px solid var(--grey-dark);
  background-color: var(--grey-dark);
  aspect-ratio: 1 / 1;
  width: 16px;
  height: 16px;
  border-radius: 0;
  margin: 0.5rem;
  overflow: hidden;
  text-indent: -9999px;
  transition: all linear .5s;
}

ul.slick-dots li.slick-active>button,
ul.slick-dots li>button:hover {
  border: 2px solid var(--red);
  background-color: var(--red);
  transform: scale(1.1);
}

/* Views */
.views-exposed-form {
  background-color: var(--grey-light);
  background-color: var(--green-light);
  padding: 0.75rem;
  margin-bottom: 1.5rem;
  border-radius: var(--leaf-shape);
}

.views-exposed-form .js-form-item {
  margin-right: 2rem;
}

.view-search-all-contents .views-exposed-form .js-form-item {
  margin-right: 0rem;
}

.view-search-all-contents .views-exposed-form .form-actions {
  margin-top: 1rem;
}

.form-item-consenso-privacy .field-suffix,
.form-item-newsletter .field-suffix {
  color: var(--red);
}

/* Full  Pager */
.pagination .page-item {
  border: 0;
  margin: 0;
  padding: 0;
}

.pagination .page-item .page-link {
  border: 1px solid var(--grey);
  display: inline-block;
  background-color: var(--white);
  margin: 0 0.3rem;
  border-radius: 0;
  color: var(--red);
}

.pagination .page-item .page-link:hover,
.pagination .page-item.active .page-link {
  background-color: var(--red);
  color: var(--white);
}

/* Footer */
.site-footer {
  font-family: var(--site-font);
  padding: 0;
  background: var(--grey-light);
  /* background: var(--green-light); */
  font-size: 0.9rem;
  margin-top: 3rem;
}

.site-footer .block {
  padding: 0;
  margin-top: 0;
  margin-bottom: 0;
  border: 0;
}

.site-footer .nav-link {
  padding: 5px 0;
}

.block-menu.menu--footer .nav-item {
  width: 100%;
  display: block;
}

section.row.region.region-footer-zero,
.site-footer .region-footer-logos,
.site-footer .region-footer-first,
.site-footer .region-footer-second,
.site-footer .region-footer-third,
.site-footer .region-footer-fourth,
.site-footer .region-footer-social {
  padding-top: 2rem;
  padding-left: .75rem;
  padding-right: .75rem;
}

.site-footer .region-footer-logos {
  padding-top: 2rem;
  padding-bottom: .75rem;
}

.site-footer .social_links {
  display: flex;
  margin-bottom: 2.5rem;
}

.site-footer .social_links>div {
  margin-right: .5rem;
}

.site-footer .social svg {
  height: 1rem;
  width: auto;
}

.site-footer .social:hover svg {
  fill: var(--red);
}

.site-footer .footer_right_wrapper {
  position: relative;
  z-index: 2;
}

.site-footer .footer_right img {
  clip-path: url(#cover_mask01);
  object-fit: cover;
  transform: scale(1.1);
}

.site-footer .region-footer-logos img {
  max-height: 70px;
  width: auto;
}

.site-footer .mask_and_contacts {
  align-items: end;
}

.site-footer .contacts {
  display: flex;
  padding-left: .75rem;
  padding-right: .75rem;
  padding-bottom: 1rem;
}

.site-footer .contacts svg {
  max-width: 18px;
  width: 18px;
  margin: .25rem;
}

.site-footer .content,
.leaflet-container .place_title a,
.site-footer .content a,
.site-footer .content a.is-active {
  color: var(--site-font-color);
}

.site-footer .content a.btn.btn-primary {
  color: var(--white);
}

.leaflet-container .place_title a:hover,
.site-footer .content a:hover,
.site-footer .content a.is-active:hover {
  color: var(--red);
  text-decoration: none;
}

.site-footer h2 {
  font-size: 1.3rem;
  line-height: 1.3rem;
  margin-bottom: 0.5rem;
  color: var(--site-font-color);
}

.site-footer .content p,
.site-footer .content li {
  font-size: 0.9rem;
}

.site-footer p {
  margin-bottom: 1rem;
}

/* copyright */
#copyright {
  position: relative;
  z-index: 2;
  background-color: var(--red);
}

#copyright .row {
  /* non toccare */
  --bs-gutter-x: 0;
}

#copyright * {
  color: #fff;
  font-size: 0.65rem;
}

.cc-icon svg {
  width: 0.65rem;
  height: 0.65rem;
}

/********************************************
  old website
*******************************************/
.pullquote-foto {
  background: var(--green-light);
  padding: 1rem;
  border-radius: var(--leaf-shape);
  margin-bottom: 1rem;
  max-width: 50%;
}

.pullquote-foto.right {
  float: left;
  margin-right: .75rem;
}

.pullquote-foto.left {
  float: right;
  margin-left: .75rem;
}

.pullquote-foto .quote-cta {
  display: block;
  font-weight: bold;
}
