/* Hide "Powered by Obsidian" */

.site-footer a {
  display: none;
}

/* Translate "Links to this page" to "Link a questa pagina" */

.mod-footer .published-section-header > .published-section-header-icon {
  display: none;
}

.mod-footer .published-section-header > span {
  visibility: hidden;
  display: block;
  height: calc(var(--line-height-normal) * var(--component-title-size));
  height: 1lh;
}

.mod-footer .published-section-header > span:after {
  content: "Link a questa pagina";
  visibility: visible;
  display: block;
  position: relative;
  bottom: calc(var(--line-height-normal) * var(--component-title-size));
  bottom: 1lh;
  font-size: var(--component-title-size);
}

/* Translate "Interactive graph" to "Grafico interattivo" */

.graph-view-outer .published-section-header > .published-section-header-icon {
  display: none;
}

.graph-view-outer .published-section-header > span {
  visibility: hidden;
  display: block;
  height: calc(var(--line-height-normal) * var(--component-title-size));
  height: 1lh;
}

.graph-view-outer .published-section-header > span:after {
  content: "Grafico interattivo";
  visibility: visible;
  display: block;
  position: relative;
  bottom: calc(var(--line-height-normal) * var(--component-title-size));
  bottom: 1lh;
  font-size: var(--component-title-size);
}

/* Translate "On this page" to "In questa pagina" */

.outline-view-outer:not([style*="visibility: hidden"])
  .published-section-header
  > .published-section-header-icon {
  display: none;
}

.outline-view-outer:not([style*="visibility: hidden"])
  .published-section-header
  > span {
  visibility: hidden;
  display: block;
  height: calc(var(--line-height-normal) * var(--component-title-size));
  height: 1lh;
}

.outline-view-outer:not([style*="visibility: hidden"])
  .published-section-header
  > span:after {
  content: "In questa pagina";
  visibility: visible;
  display: block;
  position: relative;
  bottom: calc(var(--line-height-normal) * var(--component-title-size));
  bottom: 1lh;
  font-size: var(--component-title-size);
}

/* Translate "Search page or heading..." to "Cerca pagina o titolo..." */

.search-bar::placeholder {
  color: transparent !important;
}

.search-bar {
  /* https://stackoverflow.com/a/59066059 */
  background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' version='1.1' height='32px' width='250px'><text x='30' y='19.5' fill='%23ababab' font-size='14'>Cerca pagina o titolo...</text></svg>") !important;
  background-repeat: no-repeat !important;
}

.search-bar:focus {
  background-image: none !important;
}

/* Remove "Search page or heading..." */

.search-bar::placeholder {
  color: transparent !important;
}

.search-bar {
  background-image: none !important;
}

/* Translate "Not found - This page does not exist" to "Pagina non trovata - Questa pagina non esiste" */

.not-found-title {
  visibility: hidden;
}

.not-found-title:after {
  content: "Pagina non trovata";
  visibility: visible;
  display: block;
}

.not-found-description {
  visibility: hidden;
}

.not-found-description:after {
  content: "Questa pagina non esiste";
  visibility: visible;
  display: block;
}