/** MEDIA QUERY
  Schermi grandi o ad alta risoluzione
  @media all and (max-width: 1690px) {} 
  
  Schermi Desktop o Portatili 
  @media all and (min-width: 1280px) and (max-width: 1689px) { }

  Tablet in modalità orizzontale
  @media all and (min-width: 737px) and (max-width: 1279px) { }

  Tablet in modalità verticale,  Smartphone o piccoli Tablet
  @media all and  (max-width: 736px) { }

  //NON USATA
  @media all and (max-width: 480px) { } 
*/

.it-page-sections-container {
  margin-top: 2rem;
}

/* Header */
.box_change_map_lang {
  width: 100%;
  text-align: center;
  margin-bottom: 20px;
  margin-top: 20px;
}

.it-brand-title h1.h3 {
  font-size: 2rem !important;
  margin-bottom: 0.5rem !important;
}

.it-brand-tagline {
  font-size: 1rem !important;
  line-height: 1.1rem !important;
}

.d-md-block .logo-image {
  max-height: 90px;
  max-width: 150px;
}

.d-md-none .logo-image {
  max-height: 70px;
  max-width: 100px;
}

.img-page {
  padding-bottom: 0px !important;
}

.img-credits {
  position: absolute;
  bottom: 2px;
  right: 2px;
  background: rgba(0, 0, 0, 0.5);
  padding: 3px 8px;
  color: #ccc;
  mix-blend-mode: revert;
}

.it-header-wrapper > .row {
  margin-inline: 0;
}
.it-header-wrapper > .row > [class^="col-"] {
  padding-inline: 0;
}

.it-hero-wrapper .it-hero-text-wrapper .it-btn-container {
  position: unset;
  margin-top: 24px;
}

/* Fine header */

/* Condivisione pagina */
.condividi {
  font-size: 0.8rem;
  width: fit-content;
  display: flex;
  position: relative;
  right: 1rem;
  margin: 0 0 0 auto;
  padding: 0.5em 0;
}
.condividi button {
  margin: 0;
  padding: 0;
}
.condividi button .icon {
  display: flex;
  width: 30px;
  height: 30px;
  fill: #b32d4a;
}
.condividi ul {
  margin: 0;
  padding: 0;
  list-style-type: none;
  display: flex;
}
.condividi ul .icon {
  width: 24px;
  height: 24px;
  margin: 0px 3px;
  fill: #b32d4a;
}
/* Fine Condivisione pagina */

/* Footer */
.it-footer-main .it-brand-wrapper .inverted_logo {
  filter: grayscale(100%) brightness(0) invert(1);
}

.it-footer-main .it-brand-wrapper a h2,
.it-footer-main .it-brand-wrapper a .h2 {
  line-height: 1.5rem;
  margin-bottom: 0.75rem;
}

.it-footer-main .it-brand-wrapper a h3,
.it-footer-main .it-brand-wrapper a .h3 {
  line-height: 1.2rem;
}

ul.footer-list.link-list {
  font-size: 1rem;
  line-height: 1.2rem;
}
.it-footer-small-prints a,
.it-footer-small-prints a:hover:not(.disabled) {
  font-size: 0.9rem;
}
/* Fine footer */

/* Dimensioni elementi */
#menu-principale {
  margin-left: -10px !important;
}
.navbar .navbar-collapsable .navbar-nav li.nav-item a.nav-link,
.navbar .navbar-collapsable .navbar-nav li.nav-item button.nav-link {
  padding: 16px;
}

/* Fine dimensioni elementi */

/* Colori */
.primary-bg-c1 {
  background-color: #fff !important;
}

.border-bottom-red .container {
  border-bottom: var(--bs-border-width) var(--bs-border-style)
    var(--bs-border-color);
}

.color-invert {
  filter: brightness(0%) invert(100%);
}
/* Fine Colori */

/* CUSTOM PAGINATION */
#pagination_links {
  text-align: center;
  font-size: 18px;
  line-height: 1.555;
  margin-top: 10px;
  margin-bottom: 20px;
}

#pagination_links .page-numbers ul {
  list-style: none;
}

#pagination_links .page-numbers li {
  display: inline;
  margin-right: 5px;
}

#pagination_links .page-numbers {
}

#pagination_links .page-numbers .current {
  color: #5d7083;
  border: 1px solid #5d7083;
  border-radius: 5px;
  padding: 6.75px 13.5px 6.75px 13.5px;
  margin: 5px;
}
/* Fine CUSTOM PAGINATION */

/* Persone */
.bg-banner-persone {
  background-color: #f5f5f5;
}

.card.card-avatar .card-avatar-img {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  margin: 0 12px 0 0;
  border-radius: 50%;
  overflow: hidden;
}
/* Fine Persone */

/* CHIPS */
.chip-selected {
  background: #30475f !important;
  border-color: #30475f !important;
  color: #ffffff;
}

.chip-selected a {
  color: #ffffff;
}

.chip-label a {
  text-decoration: none !important;
}
/* Fine CHIPS */

/* STILI HOME PAGE*/
.homenews-category {
  padding: 1.8rem 0 0.6rem;
}

.homenews-title {
  color: #444;
  display: inline-block;
  font-size: 1.2rem;
  font-weight: 700;
  padding-bottom: 0.6em;
  line-height: 1.2;
}
.homenews-abstract {
  margin-bottom: 45px;
}

#fascia-eventi,
#fascia-news {
  padding-top: 0px;
  padding-bottom: 0px;
}
/* Fine STILI HOME PAGE*/

/* STILI FONT */
.roboto-slab {
  font-family: "Roboto Slab" !important;
}
.titolino-home {
  text-transform: uppercase;
  font-family: "Roboto", sans-serif !important;
  font-weight: 100;
}
.titolino-home-container {
  display: flex;
  justify-content: space-between;
}
/* Fine STILI FONT*/

/* FocusOn */
.focuson-wrapper {
  /*
  position: relative;
  display: block;
  */
  color: white;
  margin-bottom: 5rem;
}
.focuson-container {
  position: relative;
}
.focuson-inner-container {
  padding: 10rem 0;
  width: 100%;
}
.focuson-foto {
  width: 66%;
  position: absolute;
  right: 0;
  top: 0;
  object-fit: cover;
  height: 100%;
}
.focuson-img-wrapper {
  height: 100%;
}
.focuson-img-wrapper img {
  max-width: unset !important;
  object-fit: cover !important;
  max-height: unset !important;
  width: 100%;
  height: 100% !important;
  padding-bottom: unset !important;
}

.focuson-textblock {
  width: 50%; /*100%*/
  background-color: #b32c4b;
  position: relative;
  font-size: 1.2rem;
}
.focuson-header {
  padding: 30px 30px 10px 30px;
  font-family: "Roboto Slab" !important;
  font-weight: 700;
  font-style: normal;
}
.focuson-sommario {
  padding: 10px 30px;
}
.focuson-linkfooter {
  padding: 10px 30px 30px 30px;
  display: flex;
  justify-content: flex-end;
}
.focuson-btn {
  padding: 0.8em 1.8em;
  display: block;
  background-color: rgb(68 68 68);
  color: white;
  text-decoration: none;
  font-size: 1.4rem;
}
a:hover.focuson-btn,
a:visited.focuson-btn,
a:focus.focuson-btn {
  color: white;
}
.focuson-container-video {
  margin-bottom: 30px;
  display: flex;
  flex-wrap: wrap;
}
.focuson-textcontainer-video {
  flex: 0 1 33%;
  display: flex;
  flex-direction: column;
  background-color: #b32c4b;
  font-size: 1.2rem;
  min-height: 500px;
  padding-bottom: 1rem;
}
.focuson-video {
  flex: 0 1 67%;
  padding-left: 1%;
}
.focuson-video-embed {
  height: 100%;
}
.focuson-video-embed > iframe {
  height: 100%;
  width: 100%;
}
/* Fine FocusOn */

/* Elenchi */
.it-page-sections-container ul {
  padding-left: 2.5rem !important;
  list-style: disc;
}

ul li::marker,
ol li::marker {
  color: #b32c4b;
}
/* Fine elenchi */

/* Margini */
.wp-activate-container {
  padding: 0 10%;
}
.wp-activate-container h2 {
  margin-top: 2rem;
  font-size: 2rem;
}
/* Fine Margini */

/* Orologio per eventi*/
.clock-event {
  fill: #b32d4a;
  width: 20px;
  height: 20px;
  margin-top: -2px;
}
/* Fine orologio per eventi */

/* Gestione dimensione immagine negli articoli */
.card-article-img > img {
  padding-bottom: 0 !important;
}

article :not(.avatar) > img:not(.img-logo-footer),
.container :not(.avatar) > img:not(.logo-image):not(.img-logo-footer) {
  max-width: 100%;
  object-fit: contain;
  max-height: 100% !important;
}

.wp-caption-text {
  background: rgba(0, 0, 0, 0.5);
  position: relative;
  bottom: 33px;
  z-index: 999;
  color: #f0f0f0;
  padding: 10px;
  letter-spacing: 0.05rem;
  display: inline;
  font-size: 0.9rem;
}

/* Fine Gestione dimensione immagine negli articoli */

/* Impostazioni standard wordpress per immagini nel testo */
.wp-caption.alignright,
img.alignright {
  float: right;
  margin: 0 0 1em 1em;
}
.wp-caption.alignleft,
img.alignleft {
  float: left;
  margin: 0 1em 1em 0;
}
.wp-caption.aligncenter,
img.aligncenter {
  display: block;
  margin-left: auto;
  margin-right: auto;
}
a img.alignright {
  float: right;
  margin: 0 0 1em 1em;
}
a img.alignleft {
  float: left;
  margin: 0 1em 1em 0;
}
a img.aligncenter {
  display: block;
  margin-left: auto;
  margin-right: auto;
}
/* Fine Impostazioni standard wordpress per immagini nel testo */

/* Altro */
.menutree a {
  text-decoration: none;
}

.gallery {
  display: flex;
  flex-wrap: wrap;
}

.chip.chip-primary:hover a {
  color: #fff;
}

.progress-bar {
  background-color: var(--bs-progress-bar-bg);
}

.cmplz-video {
  width: 100%;
  height: 100%;
}

#breadcrumb-wrapper {
  border-bottom: 1px solid #f0f0f0;
}

/*Correzione per Safari, si spostava il simbolo > */
.breadcrumb-container .breadcrumb .breadcrumb-item span.separator {
  display: unset !important;
}

.breadcrumb-container .breadcrumb .breadcrumb-item a {
  border-bottom: 1px solid #30475f;
  text-decoration: none;
}

iframe {
  width: 100%;
  height: 600px;
}
/*Fine Altro */

/* Card */
.card {
  display: flex;
  flex-direction: row;
}

.card::after {
  margin: 0;
  padding: 0;
}

.card.card-bg {
  margin-left: 0px;
}

.card-article-img {
  width: 50%;
  max-width: 50%;
  min-width: 50%;
  flex-basis: fit-content;
}

.card-text {
  margin-bottom: 2rem;
}

.card .card-calendar {
  right: 8px;
}
/* Fine Card*/

/* Card pagina strutture */
.card-struttura .card-article-img {
  width: 20%;
  max-width: 20%;
  min-width: 20%;
}
/* Fine Card pagina strutture */

/* Tablet in modalità verticale,  Smartphone o piccoli Tablet */
/* Da 0px a 736px di larghezza*/
@media all and (max-width: 992px) {
  .it-brand-title h1.h3 {
    font-size: 1rem !important;
    margin-bottom: 0 !important;
    line-height: 1rem !important;
  }
  .condividi {
    position: unset;
    margin: 0 0 0 1.5rem !important;
    padding: 0;
  }
  .focuson-inner-container {
    padding: unset;
  }
  .focuson-foto {
    width: 100%;
    position: unset;
  }
  .focuson-img-wrapper img {
    height: unset !important;
  }
  .focuson-textblock {
    width: 100%;
  }
  .focuson-textcontainer-video {
    flex: 0 0 100%;
    min-height: initial;
  }
  .focuson-video {
    flex: 0 0 100%;
    padding-left: 0;
  }
  .focuson-video-embed {
    height: 300px;
  }
  .it-header-wrapper .it-nav-wrapper .it-brand-wrapper {
    padding-left: 0px;
  }
  .it-header-wrapper .it-nav-wrapper .it-brand-wrapper svg {
    padding: 8px 0;
  }
  .it-header-center-wrapper {
    margin-left: 40px;
  }
  .it-brand-text {
    margin-left: 0.5rem !important;
  }

  .it-footer-small-prints ul.it-footer-small-prints-list li {
    padding: 0;
    margin: 0;
  }

  .it-footer-small-prints-list li a {
    font-size: 0.75rem;
  }
  .border-end {
    border-right: unset !important;
    border-bottom: var(--bs-border-width) var(--bs-border-style)
      var(--bs-border-color) !important;
  }
  section > .container {
    margin-top: 0 !important;
  }
  .card {
    flex-direction: column-reverse;
  }
  .card-article-img {
    width: 100%;
    max-width: unset;
    min-width: unset;
  }

  .it-page-sections-container {
    margin-top: 1rem;
  }

  .wp-caption.alignright,
  .wp-caption.alignleft,
  .wp-caption.aligncenter,
  img.alignright,
  img.alignleft,
  img.aligncenter,
  a img.alignright,
  a img.alignleft,
  a img.aligncenter {
    width: unset !important;
  }

  article :not(.avatar) > img:not(.img-logo-footer),
  article :not(.avatar) > div > img:not(.img-logo-footer),
  .container :not(.avatar) > img:not(.logo-image):not(.img-logo-footer) {
    height: auto !important; /* Forza l'altezza a seguire il contenuto */
    padding: 0 !important; /* Rimuove padding extra */
    margin: 0 !important; /* Rimuove margini extra */
    width: 100%;
  }

  .it-footer-main > img {
    width: unset;
  }

  .wp-caption {
    height: auto !important; /* Forza l'altezza a seguire il contenuto */
    padding: 0 !important; /* Rimuove padding extra */
    margin: 0 !important; /* Rimuove margini extra */
  }

  .wp-caption img {
    height: auto;
  }

  .wp-caption-text {
    background: rgba(0, 0, 0, 0.8);
    font-size: 0.8rem;
    padding: 8px;
    position: relative;
    letter-spacing: normal;
    display: block;
    bottom: 0;
    line-height: 1.2rem;
  }

  iframe {
    height: 400px;
  }
}

/* dal Tablet in su - Schermi Desktop o Portatili, Schermi grandi o ad alta risoluzione */
@media all and (min-width: 992px) {
  .section {
    padding: 20px 80px 80px 20px;
  }
  .it-header-wrapper .it-nav-wrapper .it-brand-wrapper {
    padding-left: 0px;
  }
  .it-hero-wrapper.it-hero-small-size {
    min-height: 200px !important;
  }
  .it-hero-wrapper .it-hero-text-wrapper {
    padding: 60px 40% 50px 26px;
  }
  .navbar .navbar-collapsable {
    z-index: 0 !important;
  }
  #filterTitle {
    border-bottom: var(--bs-border-width) var(--bs-border-style)
      var(--bs-border-color) !important;
    padding: 0 0 8px 5px;
  }
}
