/*
Theme Name: Twenty Twenty-Five TERRITORIO DIGITALE Child
Theme URI: https://www.ghsmedia.it
Description: Child theme for Twenty Twenty-Five for TERRITORIO DIGITALE
Author: Your Name
Author URI: https://www.ghsmedia.it
Template: twentytwentyfive
Version: 1.0
*/
:root {
    --wp--preset--color--contrast: #333;
}

@font-face {
  font-family: "Comfortaa";
  src: url('fonts/Comfortaa/Comfortaa-VariableFont_wght.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
}



strong,
b {
  font-weight: 700 !important;
}

.skip-link.screen-reader-text {
  display: none;
}


/* STYLES template Scheda-MR-DEF-01 */
body.post-template-Scheda-MR-DEF-01 {
  padding-bottom: 100px;
  /*same of footer size height*/
}

body.post-template-Scheda-MR-DEF-01 div.wp-site-blocks,
body.post-template-Scheda-MR-DEF-02 div.wp-site-blocks,
body.post-template-Scheda-MR-DEF-03 div.wp-site-blocks,
body.post-template-Scheda-MR-DEF-03-NO-REF div.wp-site-blocks {
  padding-top: 0;
  padding-bottom: 0;
}

body.post-template-Scheda-MR-DEF-01 header.wp-block-template-part,
body.post-template-Scheda-MR-DEF-02 header.wp-block-template-part {
  position: sticky;
  left: 0;
  right: 0;
  top: 0;
  background-color: #dede;
}

body.post-template-Scheda-MR-DEF-01 footer.wp-block-template-part {
  position: fixed;
  background-color: #ded;
  left: 0;
  right: 0;
  bottom: 0;
  height: 100px;
}

body.post-template-Scheda-MR-DEF-01 .postHeaderTitle,
body.post-template-Scheda-MR-DEF-02 .postHeaderTitle,
body.post-template-Scheda-MR-DEF-03 .postHeaderTitle,
body.post-template-Scheda-MR-DEF-03-NO-REF .postHeaderTitle,
body.page-template-POI-MR-DEF-01 .postHeaderTitle,
body.page-template-CDG-MAPPA .postHeaderTitle {
  font-size: 25px;
}








/* width */
::-webkit-scrollbar {
  width: 5px;
}

/* Track */
::-webkit-scrollbar-track {
  background: #bdbdbd59;
}

/* Handle */
::-webkit-scrollbar-thumb {
  background: #515777;
}

/* Handle on hover */
::-webkit-scrollbar-thumb:hover {
  background: #515777;
}

/**********************************************************************************************************/
/**********************************************************************************************************/
/* *************************** PAGINA SCHEDA **************************************************************/

/*-- HEADER SECTION --*/

div.SchedaPageHeader {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  /*color: rgb(82, 82, 82);*/
  z-index: 900;
  height: 90px;
}

div.SchedaPageHeader .ArrowContainer {
  display: flex;
  justify-content: center;
  align-items: center;
  color: white;
  height: 100%;
}

div.SchedaPageHeader div.TDG-Category-Badge {
  justify-content: start;
  padding-left: 10px;
}

div.SchedaPageHeader div.TDG-Category-Badge .badge-title {
  max-width: 200px;
  font-size: 1.4rem !important;
  text-transform: uppercase;
  color: #00000090;
  font-weight: bold;
  line-height: 1.6rem;
  mix-blend-mode: multiply;
}

div.TDG-Category-Badge img {
  mix-blend-mode: multiply;
  opacity: 1;
  object-fit: contain;
  filter: brightness(0.7) sepia(1) hue-rotate(40deg) saturate(1);
}

/* Comportamento per schermi grandi */
@media (min-width: 851px) {
  div.SchedaPageHeader {
    position: sticky;
  }
}

/* Comportamento per schermi piccoli */
/* @media (max-width: 850px) {
  div.SchedaPageHeader {
    position: relative;
  }
} */

/*-- FOOTER SECTION --*/
div.footerSection {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding: 10px 20px;
  text-align: center;
  flex-wrap: wrap;
}

div.footerSection .logospace {
  height: 50px;
  width: auto;
  margin-block-start: 0;
  width: 180px;
  background-image: url('assets/images/logo 2.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position-y: center;
}

.comuneSection {
  text-align: center;
  color: #515777;
  display: flex;
  flex-direction: row;
  align-items: center;
  font-family: "Comfortaa", sans-serif;
  font-optical-sizing: auto;
  font-weight: bold;
  font-style: normal;
  font-size: small;
  text-align: left;
  min-width: 150px;
}

div.footerSection .comuneSection {
  font-size: medium;
  height: 50px;
  min-width: 180px;
}

div.footerSection .comune-nome {
  margin-block-start: 0 !important;
}


/* Comportamento per schermi piccoli */
@media (max-width: 750px) {
  div.footerSection {
    margin-bottom: 40px;
  }
}

@media (max-width: 430px) {
  div.footerSection {
    justify-content: space-around;
    row-gap: 20px;
  }
}


/*-- GENERIC SECTION --*/
body.post-template-Scheda-MR-DEF-03,
body.post-template-Scheda-MR-DEF-03-NO-REF {
  background-color: #fcf8f5;
}

body.post-template-Scheda-MR-DEF-02 .index-category,
body.post-template-Scheda-MR-DEF-03 .index-category,
body.post-template-Scheda-MR-DEF-03-NO-REF .index-category,
body.post-template-TDG-SCHEDA-01 .index-category {
  color: #232323;
  position: sticky;
  left: 0;
  top: 15px;
  margin-top: 15px;
  min-height: 600px;
  border-top-right-radius: 25px;
  border-bottom-right-radius: 25px;
  padding: 0px 2px 20px 3px;
  /*background: linear-gradient(90deg, #c0c0c000 0%, #ab9b9b 1%, #998c8c 100%);*/
  max-width: 500px;
  height: 1300px;
  font-size: .75rem;
  box-shadow: inset 0 0 3em rgba(0, 0, 0, 0.1), 0 0 0 0px rgb(255, 255, 255), 0.3em 0.3em 1em rgba(0, 0, 0, 0.3);
  background-color: #f2dfd8;
  min-width: 350px;
}


/* width */
body.post-template-Scheda-MR-DEF-03 .index-category ::-webkit-scrollbar,
body.post-template-Scheda-MR-DEF-03-NO-REF .index-category ::-webkit-scrollbar {
  width: 3px;
}

/* Track */
body.post-template-Scheda-MR-DEF-03 .index-category ::-webkit-scrollbar-track,
body.post-template-Scheda-MR-DEF-03-NO-REF .index-category ::-webkit-scrollbar-track {
  background: #f2e1d8;
}

/* Handle */
body.post-template-Scheda-MR-DEF-03 .index-category ::-webkit-scrollbar-thumb,
body.post-template-Scheda-MR-DEF-03-NO-REF .index-category ::-webkit-scrollbar-thumb {
  background: #b9b5b3;
}

/* Handle on hover */
body.post-template-Scheda-MR-DEF-03 .index-category ::-webkit-scrollbar-thumb:hover,
body.post-template-Scheda-MR-DEF-03-NO-REF .index-category ::-webkit-scrollbar-thumb:hover {
  background: #555;
}

body.post-template-Scheda-MR-DEF-03 .index-category .categoryName,
body.post-template-Scheda-MR-DEF-03-NO-REF .index-category .categoryName {
  /* text-align: center; */
  font-weight: bold;
  height: 48px;
  padding: 16px 0px;
  text-transform: uppercase;
  font-size: 25px;
  line-height: 30px;
  color: #99241b;
  padding-left: 60px;
  padding-right: 10px;
}

body.post-template-TDG-SCHEDA-01 .index-category .categoryName {
  display: none;
}

body.post-template-TDG-SCHEDA-01 .index-category {
  top: 90px;
  bottom: 0px;
  margin-top: 0;
  height: auto;
  padding-top: 15px;
  position: fixed;
  max-width: 250px;
  min-width: 240px;
  border-top-right-radius: 0px;
  border-bottom-right-radius: 0px;
  box-shadow: 5px -5px 6px rgba(0, 0, 0, 0.3);
  padding: 0px 2px 5px 0px;
}

/*-- CATEGORY LIST --*/
body.post-template-Scheda-MR-DEF-03 .index-category .categoryList,
body.post-template-Scheda-MR-DEF-03-NO-REF .index-category .categoryList,
body.post-template-TDG-SCHEDA-01 .index-category .categoryList {
  overflow-y: auto;
  max-height: 98%;
}

body.post-template-Scheda-MR-DEF-03 .index-category .categoryList td:nth-child(1),
body.post-template-Scheda-MR-DEF-03-NO-REF .index-category .categoryList td:nth-child(1) {
  white-space: nowrap;
  vertical-align: top;
}


body.post-template-Scheda-MR-DEF-03 .index-category .categoryList a,
body.post-template-Scheda-MR-DEF-03-NO-REF .index-category .categoryList a {
  text-decoration: none;
  color: #232323;
}

body.post-template-Scheda-MR-DEF-03 .index-category .categoryList .catIndexRow,
body.post-template-Scheda-MR-DEF-03-NO-REF .index-category .categoryList .catIndexRow {
  border-bottom: 1px solid #c3b1b1;
}

body.post-template-Scheda-MR-DEF-03 .index-category .categoryList .catIndexRow.selected,
body.post-template-Scheda-MR-DEF-03-NO-REF .index-category .categoryList .catIndexRow.selected,
body.post-template-Scheda-MR-DEF-03 .index-category .categoryList .catIndexRow.selected a,
body.post-template-Scheda-MR-DEF-03-NO-REF .index-category .categoryList .catIndexRow.selected a {
  /*color: #99241b;*/
  font-weight: bold;
  font-size: .75rem;
}

body.post-template-Scheda-MR-DEF-03 .index-category .categoryList .catIndexRow .ref_data,
body.post-template-Scheda-MR-DEF-03-NO-REF .index-category .categoryList .catIndexRow .ref_data {
  /*border-left-width: 5px;
  border-left-style: solid;*/
  position: relative;
  padding: 0 0 0 20px !important;
  white-space: normal;
  min-width: 80px;
}

body.post-template-Scheda-MR-DEF-03 .index-category .categoryList .catIndexRow.selected .ref_data svg,
body.post-template-Scheda-MR-DEF-03-NO-REF .index-category .categoryList .catIndexRow.selected .ref_data svg {
  position: absolute;
  top: 8.25px;
  left: 0px;
  z-index: 20;
}

body.post-template-Scheda-MR-DEF-03 .index-category .categoryList tr.catIndexRow td,
body.post-template-Scheda-MR-DEF-03-NO-REF .index-category .categoryList tr.catIndexRow td {
  border-bottom: 6px solid transparent !important;
}

body.post-template-TDG-SCHEDA-01 .index-category .categoryList .catIndexRow {
  display: flex;
  flex-direction: column;
  margin-bottom: 20px;
}

body.post-template-TDG-SCHEDA-01 svg.bookmarkTab {
  display: none;
}

body.post-template-TDG-SCHEDA-01 .index-category .categoryList .catIndexRow .col01 {
  background: #515777;
  height: 10px;
  border-radius: 10px;

}

body.post-template-TDG-SCHEDA-01 .index-category .categoryList .catIndexRow .ref_data a {
  color: white;
  text-decoration: none;
  text-align: right;
  padding-right: 15px;
  display: block;
  height: 15px;
  line-height: 15px;
  font-weight: bold;
}

body.post-template-TDG-SCHEDA-01 .index-category .categoryList .catIndexRow .postLink {
  display: flex;
  justify-content: flex-end;
}

body.post-template-TDG-SCHEDA-01 .index-category .categoryList .catIndexRow .postLink a.navLink {
  min-height: 70px;
  border-radius: 0px 0px 10px 10px;
  background-color: white;
  display: flex;
  width: 170px;
  align-items: center;
  text-decoration: none;
  padding: 5px 5px 5px 15px;
  box-sizing: border-box;
  line-height: normal;
}

body.post-template-TDG-SCHEDA-01 .index-category .categoryList .catIndexRow.selected a.navLink {
  color: white;
  background: #515777;
  font-weight: normal;
  /*font-size: .75rem;*/
}

/*-- CONTENT SECTION --*/

body.post-template-Scheda-MR-DEF-03 .contentColumnSection,
body.post-template-Scheda-MR-DEF-03-NO-REF .contentColumnSection {
  padding-top: 0px !important;
  padding-bottom: 50px !important;
}

body.post-template-Scheda-MR-DEF-03 .blockTitleTags,
body.post-template-Scheda-MR-DEF-03-NO-REF .blockTitleTags {
  position: sticky;
  left: 0;
  right: 0;
  top: 0;
  background-color: #fcf8f5e6;
  z-index: 2;
}

body.post-template-Scheda-MR-DEF-03 h2.wp-block-post-title,
body.post-template-Scheda-MR-DEF-03-NO-REF h2.wp-block-post-title {
  margin-left: 0px !important;
  /* text-transform: uppercase; */
  margin-top: 30px;
  margin-left: 30px !important;
  margin-bottom: 10px;
}

/*body.poi-template-POI-MR-DEF-01 h2.wp-block-post-title,
body.post-template-Scheda-MR-DEF-03 h2.wp-block-post-title,
body.post-template-Scheda-MR-DEF-03-NO-REF h2.wp-block-post-title {
  font-size: 1.5rem;
  color: #99241b;
  font-weight: 700;
}*/

body.poi-template-POI-MR-DEF-01 h2.wp-block-post-title {
  /*margin-top: 10px;*/ /*TOLTO per ALLINEAMENTO verticale con icona INFO*/
}

body.post-template-Scheda-MR-DEF-03 .metablock-ref_data,
body.post-template-Scheda-MR-DEF-03-NO-REF .metablock-ref_data {
  background: none;
  min-width: auto;
  /* max-width: fit-content; */
  /* float: right; */
  margin: 0 auto;
  font-size: .75rem;
  margin-top: 20px;
  font-weight: 500;
  font-style: italic;
  color: #99241b !important;
  text-shadow: 3px 2px 0px #f2dfd8;
}

body.post-template-TDG-SCHEDA-01 .is-style-showonlyref_data {
  display: flex;
  justify-content: flex-end;
}

body.post-template-TDG-SCHEDA-01 .metablock-ref_data {
  background: none;
  min-width: auto;
  font-size: 1.5rem;
  /*margin-top: 20px;*/
  font-weight: 500;
  font-style: italic;
  color: #515777 !important;
  text-shadow: none;
  max-width: 500px !important;
}

body.post-template-Scheda-MR-DEF-03 .is-style-showonlyref_data.no-data-ref,
body.post-template-Scheda-MR-DEF-03-NO-REF .is-style-showonlyref_data.no-data-ref {
  display: none;
}

body.post-template-Scheda-MR-DEF-03 .wp-block-post-content a:where(:not(.wp-element-button)),
body.post-template-Scheda-MR-DEF-03-NO-REF .wp-block-post-content a:where(:not(.wp-element-button)) {
  color: #99241b;
}

body.post-template-Scheda-MR-DEF-03 figcaption,
body.post-template-Scheda-MR-DEF-03-NO-REF figcaption {
  font-size: small;
  font-style: italic;
}

body.post-template-TDG-SCHEDA-01 .wp-block-post-content {
  padding: 0px 30px 0px 0px;
}

/* --- NAVIGATION ---*/
body.post-template-Scheda-MR-DEF-03 .wp-block-ghs-TerritorioDigitale-navigation-category-block,
body.post-template-Scheda-MR-DEF-03-NO-REF .wp-block-ghs-TerritorioDigitale-navigation-category-block {
  padding: 0;
  position: sticky;
  right: 0;
  top: 45%;
}

body.post-template-TDG-SCHEDA-01 .wp-block-ghs-monterosi-navigation-category-block {
  padding: 0px;
  /*position: unset;*/
  right: 0;
  /*top: 45%;*/
  margin: 0 15px;
}

body.post-template-TDG-SCHEDA-01 .wp-block-ghs-monterosi-navigation-category-block .no-post {
  color: #ffffff54 !important;
}

body.post-template-TDG-SCHEDA-01 .wp-block-ghs-monterosi-navigation-category-block .no-post img {
  filter: brightness(0) saturate(100%);
  opacity: .1;
}


body.post-template-TDG-SCHEDA-01 .arrowText {
  margin-top: 0px;
}

body.post-template-TDG-SCHEDA-01 .arrowText {
  text-transform: lowercase;
}


/* --- TRANSLATION SWITCHER --- */
body.poi-template-POI-MR-DEF-01 .translation-switcher,
body.post-template-Scheda-MR-DEF-03 .translation-switcher,
body.post-template-Scheda-MR-DEF-03-NO-REF .translation-switcher {
  margin-block-start: 0px;
}

/* ---- REMOVE GLOBAL PADDING --- */
body.post-template-Scheda-MR-DEF-03 .has-global-padding,
body.post-template-Scheda-MR-DEF-03-NO-REF .has-global-padding {
  padding-left: 0px !important;
  padding-right: 0px !important;
}

/* ------------------------- Pagina ARCHIVIO -------------*/
/* body.archive {
  background-color: #f2e1d8; 
}*/

body.archive main.MR-PaginaCategorieTitolo {
  position: sticky;
  top: 0;
  color: #00000090;
  z-index: 1;
  margin-top: 0px !important;
  /*padding-top: 20px;*/
  min-height: 135px;
  display: flex;
  align-items: center;
}

body.archive main.MR-PaginaCategorieTitolo h1 {
  text-transform: uppercase;
  font-weight: 700;
  text-align: center;
  font-size: 2.8rem;
  line-height: 2.9rem;
  position: absolute;
  mix-blend-mode: multiply;
  left: 50%;
  transform: translateX(-50%);
}

body.archive ul.MR-IndiceCategoria li {
  padding-top: 10px;
  position: relative;
}

body.archive ul.MR-IndiceCategoria li::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  height: 10px;
  width: 100%;
  background-color: #515777;
  /* o il colore della linea */
  border-radius: 10px;
}

body.archive ul.MR-IndiceCategoria .is-style-showonlyauthor {
  min-height: 70px;
  border-radius: 0px 0px 10px 10px;
  background-color: white;
  display: flex;
  width: 170px;
  text-decoration: none;
  padding: 0 15px 0px 5px;
  box-sizing: border-box;
  line-height: normal;
  /* margin-left: 30px; */
  align-items: center;
  justify-content: flex-end;
}


body.archive .wp-block-meta-fields-metadata-block .metablock-ref_data,
body.archive .wp-block-meta-fields-metadata-block .no-data-ref {
  background: none;
  padding: 0px;
  color: #515777;
  text-align: right;
  font-weight: bold;
  font-size: large;
  width: 100%;
}

body.archive .wp-block-meta-fields-metadata-block .no-data-ref {
  display: flex;
  justify-content: center;
  align-items: center;
}

body.archive .no-data-ref {
  font-size: 50px !important;
  text-align: center !important;
  font-weight: normal !important;
}

body.archive .wp-block-meta-fields-metadata-block .no-data-ref svg#Livello_1 {
  width: 50%;
  height: auto;
}

body.archive .wp-block-meta-fields-metadata-block .no-data-ref svg#Livello_1 .cls-1 {
  fill: var(--category-color) !important;
  mix-blend-mode: multiply !important;
}

body.archive ul.MR-IndiceCategoria h3 {
  font-size: unset !important;
}

body.archive ul.MR-IndiceCategoria h3 a {
  text-decoration: none;
  font-size: x-large;
  font-weight: 400;
}

/* body.archive ul.MR-IndiceCategoria h3 a {
  color: #515777;
} */
/*
body.archive .MR-PaginaCategorieDescrizione {
  min-height: 29px;
}

body.archive ul.MR-IndiceCategoria {
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  gap: 1.5em;  
  width: 95%;
  margin: 0 auto;
}

body.archive ul.MR-IndiceCategoria li {
  border-bottom: 1px solid #ab9b9b;
  transition: background-color 0.5s ease;
}

body.archive ul.MR-IndiceCategoria h3 a {
  color: #262626;
}

body.archive ul.MR-IndiceCategoria .wp-block-column.is-layout-flow {
  position: relative;
}

body.archive ul.MR-IndiceCategoria .is-style-showonlyauthor.wp-block-meta-fields-metadata-block {
  position: absolute;
  bottom: 0;
}

body.archive ul.MR-IndiceCategoria h3 {
  font-size: 1.25rem !important;
}

body.archive ul.MR-IndiceCategoria .wp-block-post-title a {
  display: inline-block;
  font-weight: 400;
}




body.archive .wp-block-meta-fields-metadata-block .metablock-ref_data,
body.archive .wp-block-meta-fields-metadata-block .no-data-ref {
  border-radius: 25px;  
  color: #ffffff;
  padding: 2px 10px;
  min-width: 125px;
  text-align: center;
  border-top-right-radius: 15px;
  border-top-left-radius: 15px;
  border-bottom-right-radius: 0px;
  border-bottom-left-radius: 0px;
  width: fit-content;
  width: -moz-fit-content;
  font-size: 1rem;
  background: linear-gradient(0deg, #c0c0c000 0%, #ab9b9b 10%, #998c8c 100%);
  margin-left: 3px;
}

body.archive .no-data-ref {
  min-width: 90px !important;
  font-size: 30px !important;
} */

body.wp-singular .no-data-ref {
  display: none;
}

/* IMAGE SVG BOOK */
body.archive svg.categoryBookImage {
  width: 150px;
  position: absolute;
  top: 0;
  left: 10px;
  z-index: 2;
}

/*IMAGE CATEGORY in ARCHIVE */
body.archive div.TDG-Category-Badge {
  width: 150px;
  position: absolute;
  top: 0;
  left: 10px;
  z-index: 2;
  justify-content: center;
  margin: 0;
  height: 100%;
}

body.archive div.TDG-Category-Badge img {
  height: 50px;
  margin-right: 0;
}

div.category-badge {
  /* mix-blend-mode: multiply;
  mask-repeat: no-repeat;
  mask-size: contain;
  mask-position: center;*/
  position: absolute;
  inset: 0;
  height: 100%;
  left: 30px;
}

div.category-badge svg {
  width: inherit !important;
  height: inherit !important;
}

div.category-badge svg g {
  isolation: inherit !important;
}

div.category-badge svg path,
div.category-badge svg rect,
div.category-badge svg circle {
  fill: var(--category-color) !important;
  mix-blend-mode: multiply !important;

}


/*------------------------ POSTS */
/* ALIGN FIGURE */
figure.wp-caption.alignleft,
img.alignleft {
  float: left;
  margin-right: 30px;
}

figure.wp-caption.alignright,
img.alignright {
  float: right;
  margin-left: 30px;
}

figure.wp-caption.aligncenter,
img.aligncenter {
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.wp-video{
 margin: 0 auto;
}

/* STYLES template POI */
body.post-template-POI-MR-DEF-01 .wp-site-blocks,
body.page-template-POI-MR-DEF-01 .wp-site-blocks {
  padding: 0 !important;
}



body.post-template-POI-MR-DEF-01 .articlePageSection,
body.page-template-POI-MR-DEF-01 .articlePageSection {

  padding-top: 0px !important;

}

body.post-template-POI-MR-DEF-01 .imageInEvidencePageSection,
body.page-template-POI-MR-DEF-01 .imageInEvidencePageSection {
  flex-basis: 30%;
  padding: 0px !important;
  position: sticky;
  top: 0px;
}

/*body.poi-template-POI-MR-DEF-01 */
.SchedaPageHeader {
  margin-block-start: 0px !important;
  background-color: #f6a44ee8;
}

body.poi-template-POI-MR-DEF-01 .TemplateInfoImg {
  background-image: url('assets/images/informazioni\ tasto\ .png');
  height: 100%;
  /*width: 120px;*/
  /* background-color: #b55f04; */
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  position: absolute;
  width: 10%;
}

/*body.poi-template-POI-MR-DEF-01 */
.SchedaPageHeader .POI-title-container {
  display: flex;
  justify-content: center;
  height: 100%;
  margin: 0 12%;
}

/*body.poi-template-POI-MR-DEF-01*/
h2.POI-title {
  display: flex;
  margin-block-start: 0px;
  align-items: center;
  color: #ffffff;
  text-transform: uppercase;
  font-size: 2.1rem;
  line-height: 2.1rem;
  font-weight: bold;
  text-align: center;
}


/* .POI-title {
  padding: 20px 0px 10px 0px;
  position: sticky;
  top: 0px;
  background-color: #fffffff5;
  text-transform: uppercase;
  font-size: 45px;
  color: #99241b;
} */

body.post-template-POI-MR-DEF-01 .wp-block-post-featured-image .wp-block-post-featured-image__overlay,
body.page-template-POI-MR-DEF-01 .wp-block-post-featured-image .wp-block-post-featured-image__overlay {
  opacity: 0 !important;
}

body.poi-template-POI-MR-DEF-01 .POI-post-content {
  padding: 0 6%;
  /*margin-bottom: 50px;*/
}

/* STYLES POI FEATURED IMAGE  */
/*body.poi-template-POI-MR-DEF-01 */
/* figure.POI-featured-image {
  width: 600px !important;
  height: 338px !important;
  margin: 0 auto;
} */
 /* container base: max-width (non forzare width fissa) */
figure.POI-featured-image {
  max-width: 600px;      /* non supera 600px */
  width: 100%;           /* occupa il 100% del suo contenitore, fino a max-width */
  height: 338px;         /* altezza di riferimento */
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  box-sizing: border-box;
}

/*body.poi-template-POI-MR-DEF-01 */
/* figure.POI-featured-image img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
  border: 2px solid rgb(232 232 232);
  border-radius: 2px;
} */

/* immagine base: non forzare scaling in un verso fisso */
figure.POI-featured-image img {
  display: inline-block;
  vertical-align: middle;
  width: auto;           /* lascia che la larghezza segua la proporzione */
  height: auto;
  max-width: 100%;       /* non esce dal container orizzontalmente */
  max-height: 100%;      /* non esce dal container verticalmente */
  object-fit: cover;     /* per landscape: riempie e taglia se necessario */
  border: 2px solid rgb(232,232,232);
  border-radius: 2px;
}

figure.POI-featured-image span{
    background: none !important; /* sfondo a contrasto */
}

/* Se verticale PORTRAIT (impostato via js caricato per i POI dal php del template) */
/* Quando il figure ha immagine verticale */

/* Quando l'immagine è verticale: shrink-wrap il figure alla larghezza dell'immagine
   e fai sì che l'immagine non venga ingrandita oltre la sua dimensione naturale */
figure.POI-featured-image.is-portrait {
  /* fit-content/max-content fanno sì che l'elemento si restringa alla larghezza del contenuto */
  width: -moz-fit-content !important;
  width: fit-content !important;
  width: max-content !important;
  max-width: 600px !important;      /* comunque non superare 600px */
  height: 338px !important;         /* mantieni l'altezza di riferimento */
  margin: 0 auto !important;
}

/* immagine in figura portrait: non forzare height:100% (evita upscaling).
   La immagine viene limitata in altezza ma non aumentata: se è più piccola rimane più piccola. */
figure.POI-featured-image.is-portrait img {
  width: auto !important;
  height: auto !important;
  max-height: 100% !important;      /* non oltrepassare l'altezza del figure (338px) */
  max-width: 600px !important;
  object-fit: contain !important;   /* mostra tutta l'immagine verticale senza ritagliarla */
  display: block !important;
}


/* STYLES POI FEATURED IMAGE for small screens */

@media (max-width: 640px) {

  figure.POI-featured-image {
    width: 400px !important;
    height: 225px !important;
    margin: 0 auto;
  }

  /* Quando l'immagine è verticale: shrink-wrap il figure alla larghezza dell'immagine
   e fai sì che l'immagine non venga ingrandita oltre la sua dimensione naturale */
  figure.POI-featured-image.is-portrait {
    /* fit-content/max-content fanno sì che l'elemento si restringa alla larghezza del contenuto */   
    max-width: 400px !important;      /* comunque non superare 600px */
    /* height: 225px !important;         mantieni l'altezza di riferimento */
  }

  /* immagine in figura portrait: non forzare height:100% (evita upscaling).
    La immagine viene limitata in altezza ma non aumentata: se è più piccola rimane più piccola. */
  figure.POI-featured-image.is-portrait img {   
    max-width: 400px !important;    
  }

  /*body.poi-template-POI-MR-DEF-01 */
  h2.POI-title {
    font-size: 1.7rem;
    line-height: 1.70rem;
  }
}

@media (max-width: 430px) {

  /*body.poi-template-POI-MR-DEF-01 */
  figure.POI-featured-image {
    width: 250px !important;
    height: 141px !important;
    margin: 0 auto;
  }

   /* Quando l'immagine è verticale: shrink-wrap il figure alla larghezza dell'immagine
   e fai sì che l'immagine non venga ingrandita oltre la sua dimensione naturale */
  figure.POI-featured-image.is-portrait {
    /* fit-content/max-content fanno sì che l'elemento si restringa alla larghezza del contenuto */   
    max-width: 250px !important;      /* comunque non superare 600px */
    /* height: 141px !important;         mantieni l'altezza di riferimento */
  }

  /* immagine in figura portrait: non forzare height:100% (evita upscaling).
    La immagine viene limitata in altezza ma non aumentata: se è più piccola rimane più piccola. */
  figure.POI-featured-image.is-portrait img {   
    max-width: 250px !important;    
  }

  /*body.poi-template-POI-MR-DEF-01 */
  h2.POI-title {
    font-size: 1.2rem;
    line-height: 1.20rem;
  }
}


.OnlyWeb-POI-google-link {
  display: block;
  text-align: center;
  color: white;
  text-decoration: none;
  width: 258px;
  background: #515777e6;
  position: fixed;
  bottom: 0px;
  border-radius: 10px 10px 0px 0px;
  line-height: 40px;
  left: 50%;
  /*transform: translateX(-50%);*/
  transform: translateX(-50%) translateY(100%);
  animation: slideUp 0.5s ease-out 2s forwards;
  font-size: 1.2rem;
  z-index: 1;
}

.OnlyTotem-POI-qr-google-map {
  display: none;
  margin: 0 auto;
  margin-top: 50px;
  font-size: 1rem;
  width: 300px;
  text-align: center;
}

/* Animazione che fa comparire l'elemento */
@keyframes slideUp {
  to {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
  }
}


/* STYLES template TDG-NO-MARGINS */
body.page-template-TDG-NO-MARGINS .wp-site-blocks,
body.page-template-TDG-NO-MARGINS-NO-TITLE .wp-site-blocks {
  padding: 0 !important;
}

body.page-template-TDG-NO-MARGINS .articlePageSection,
body.page-template-TDG-NO-MARGINS-NO-TITLE .articlePageSection {
  padding-top: 0px !important;
}

/*forcing no border MAP*/
body.page-template-TDG-NO-MARGINS .articlePageSection .WPLeafletMap,
body.page-template-TDG-NO-MARGINS-NO-TITLE .articlePageSection .WPLeafletMap {
  margin-block-start: 0px !important;
}

body.page-template-TDG-NO-MARGINS .articlePageSection p,
body.page-template-TDG-NO-MARGINS-NO-TITLE .articlePageSection p {
  margin-top: 0px !important;
}





/* STYLES Images in content for small screens */
body.post-template-TDG-SCHEDA-01 .wp-block-post-content img {
     max-width: 100%;
}
@media (max-width: 640px) {
  body.poi-template-POI-MR-DEF-01 .articlePageSection .wp-block-post-content img.size-medium {
    max-width: 50%;
  }
}


/* STYLES template HEADER only for WEB (NO TOTEM) */
/* Stile base: visibile sempre (mobile) */
.OnlyWebSticyHeader {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: #bbc3efd9;
  color: rgb(82, 82, 82);
  z-index: 1000;
  row-gap: 5px;

}

div.OnlyWebSticyHeader h1 {
  text-align: center;
  font-size: x-large;
  /*margin: 5px;*/
  line-height: 30px;
}

.OnlyWebSticyHeader .titleSection {
  display: flex;
  flex-wrap: nowrap;
  justify-content: space-between;
  column-gap: 10px;
  align-items: center;
  padding: 0 10px;

}

div.OnlyWebSticyHeader .logospace {
  height: 50px;
  width: auto;
  margin-block-start: 0;
  width: 150px;
  background-image: url('assets/images/logo 2.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

/* .OnlyWebSticyHeader .comune-nome {
  margin-block-start: 0 !important;
  line-height: 30px;
  text-align: center;
  font-weight: bold;
  font-size: x-large;
  color: #515777;
} */
img.comune-logo {
  max-height: 45px !important;
}

.OnlyWebSticyHeader .mapLinkSection {
  position: fixed;
  background-color: #515777e6;
  width: 50px;
  height: 40px;
  right: 0;
  top: 100px;
  border-radius: 10px 0px 0px 10px;
  color: white;
  display: flex;
  align-content: center;
  align-items: center;
  justify-content: center;
  padding-top: 5px;
}

.OnlyWebSticyHeader .translationSwitcherSection {
  position: fixed;
  background-color: #515777e6;
  width: 50px;
  height: 80px;
  right: 0;
  top: 150px;
  border-radius: 10px 0px 0px 10px;
  color: white;
  display: flex;
  align-content: center;
  align-items: center;
  justify-content: center;
}

.OnlyWebSticyHeader .translationSwitcherSection .translation-switcher {
  display: flex;
  justify-content: center;
  flex-direction: column;
  row-gap: 5px;
}

.OnlyWebSticyHeader .translationSwitcherSection .translation-switcher a {
  margin: 0 !important;
}

.OnlyWebSticyHeader .translationSwitcherSection .translation-switcher img {
  height: 30px !important;
}



/* Comportamento per schermi grandi */
@media (min-width: 851px) {
  .OnlyWebSticyHeader {
    transform: translateY(-300px);
    transition: transform 0.8s ease;
    position: fixed;
  }

  .OnlyWebSticyHeader.visible {
    transform: translateY(0);
  }
}

.OnlyWebSticyHeader .wp-block-columns {
  flex-wrap: wrap;
}

/* Comportamento per schermi piccoli */
@media (max-width: 850px) {
  .OnlyWebSticyHeader {
    position: sticky;
  }

  div.OnlyWebSticyHeader h1 {
    font-size: large;
  }
}

.OnlyWebSticyHeader .wp-block-columns {
  flex-wrap: wrap;
}




div.OnlyWebSticyHeader .map-link-block-render {
  padding: 0 5px;
  text-align: right;
}

/* ----------------- STYLES OVERRIDE PLUGINS */
/* Override Overlay Popup */
html.pum-open.pum-open-overlay.pum-open-scrollable body>:not([aria-modal=true]) {
  padding-right: 0px !important;
}

/* Override Progress MAP Thumbnail image size */
.codespacing_progress_map_area .swiper-wrapper div.item_img {
  width: 100px !important;
  height: 100px !important;
}

.codespacing_progress_map_area .swiper-wrapper div.item_img img.wp-post-image {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
}

.codespacing_progress_map_area cspm_infobox_container cspm_border_shadow {
  background-color: black;
}

.codespacing_progress_map_area div.cspm_infobox_content_container {
  background: #CF8BBB !important;
}

.codespacing_progress_map_area .si-pointer-top.si-pointer-bg-top {
  border-top: 10px solid #CF8BBB !important;
}

.codespacing_progress_map_area .details_infos b {
  font-weight: 200 !important;
}

/* Comportamento per schermi grandi */
@media (min-width: 851px) {
  .codespacing_progress_map_area .cspm_zoom_container {
    top: 55px;
  }

  .codespacing_progress_map_area .cspm_recenter_map_btn {
    top: 155px !important;
  }
  .codespacing_progress_map_area .cspm_geotarget_btn {
    top: 205px !important;
  }
}