/*@import url('https://fonts.googleapis.com/css?family=Spirax&display=swap'); /*needed for mobile svg object font bug*/
:root {
  /* scrollbar-width: none; */
  --lgold: #d8b973;
  --bg: #f9faf8;
  --bg: #eae8d6;
  --lgr: #eff2ed;
  --dgr: black; /*#171b14;*/
  --lgray: #EAEAEA;
  --darkGreen: #35452b;
  --lighterGreen: #3d5a23;
  --subtitleBeige: #989070;
  --backgroundBoxBeige: #e9e2c6;
  --backgroundFilter: invert(0.4) sepia(0.75) hue-rotate(25deg) opacity(0.2);
  --bodyBackground: #263026;
  --titleColor: #d8b973;
  --subtitleColor: #d8b973;
  --bodyColor: #beb49d;
}
::-webkit-scrollbar {
    /* display: none; */
}
body, html {
  margin: 0;
  padding: 0;
  background-color: #eae8d6;
  background-color: var(--bodyBackground);
  overflow-x: hidden;
  /* color: #dfaea8; */
  /* font-family: Spirax; */
  font-family: 'David Libre';
  font-size: 16px;
  font-size: var(--cornice-width);
  /* user-select: none; */
  /* background: repeating-linear-gradient(78deg, var(--bg), var(--bg) 62px, var(--lgr) 62px, var(--lgr) 124px); */
  height: 100%;
  hyphens: auto;
  text-align: justify;
  text-justify: inter-word;
  color: #c9ac6c;
  color: #98ab91;
  color: #beb49d;
  color: var(--bodyColor);
}
body {
/*   filter: brightness(1.2) contrast(1.7) grayscale(1); */
}

p {  
  line-height: 1.35em;
  margin-bottom: 1.6em;
  text-align-last: center;
}
.subtitle {
  text-align: right;
  text-align-last: right;
  color: #626560;
  color: #989070;
  font-style: italic;
  margin-top: 0.5em;
}
.brickbox {
  background: #e3ede7;
  background: #e9e2c6;
  background: #4e2a1f;
  padding: 1em;
  box-sizing: border-box;
  margin-bottom: 1.6em;
  margin-top: 1em;
  max-width: calc(100vw - 2em - 210px);
  align-self: flex-end;
}
.brickbox:nth-of-type(5n + 2) {
  background: #502f2f;
}
.brickbox:nth-of-type(5n + 3) {
  background: #37424b;
}
.brickbox:nth-of-type(5n + 4) {
  background: #415241;
}
.brickbox:nth-of-type(5n + 5) {
  background: #4b4b3c;
}
.brickbox p {
  margin: 0;
  text-align-last: right;
}
.page p {
  z-index: 100;
}

h1 {
/*   font-family: "Poppins"; */
  color: #35452b; 
  font-weight: 800;
  text-align: right;
  font-size: 2em;
  margin: 0.4em 0 0.1em 0;
  color: var(--titleColor);
  opacity: 0.8;
}
h3 {
  font-family: "Poppins";
  color: #3d5a23;
  font-weight: 300;
  text-align: right;
  font-size: 1.3em;
  margin: 0;
  color: var(--subtitleColor);
  opacity: 0.8;
}
em {
  color: #3d5a23;
  color: #cb824c;
  font-family: "Poppins";
  font-weight: 300;
  font-style: normal;
}
.event-date em {
  font-weight: 400;
}
a {
  color: inherit;
}
a:hover {
  color: #ea5a5a;
}
.titolo-opera, .sottotitolo-opera {
  font-family: "Poppins";
  font-size: 1.2em;
  font-weight: 300;
  line-height: 1.7em;
  font-style: italic;
  display: block;
}
.titolo-opera {
  padding-top: 0.5em;
}
.sottotitolo-opera {
  font-size: 1em;
}
.event-container {
  /*padding-left: 2em;*/
}


.header {
  position: fixed;
  width: 100%;
  height: 24px;
  background-color: #3b4635;
  display: flex;
  justify-content: center;
  align-items: center;
  font-family: "Poppins";
  color: #cdc2a9;
  cursor: pointer;
  transition: linear all 0.1s;
  z-index: 171;
}
.header:hover {
  background-color: #ea5a5a;
  background-color: #6a7b5a;
  transition: linear all 0.1s;
}

.menu-container {
  width: 100%;
  height: calc(100% - 24px);
  height: calc(100dvh - 24px);
  position: absolute;
  bottom: 100%;
  background-color: #6a7b5a;
  background-color: #eee;
  background-color: #160202;
  background-color: #263026;
  transition: linear all 0.4s;
  z-index: 150;
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  align-items: center;
}
.menu-container::before, .menu-container::after {
  content: '';
  width: 100%;
  height: calc(100% - 24px);
  height: calc(100dvh - 24px);
  position: absolute;
  top: 0;
  background-image: url(deco.png);
  background-size: min(45vw, 200px);
  background-repeat: no-repeat;
  background-position: -3px 6%;
  filter: invert(0.5) sepia(0.65) hue-rotate(25deg) opacity(0.97);
  user-select: none;
  pointer-events: none;
/*   animation: hue-rotation 8s linear infinite; */
  opacity: 0.8;
}
@keyframes hue-rotation {
    0% { filter: invert(0.9) sepia(0.65) hue-rotate(0deg) opacity(0.7); }
    100% { filter: invert(0.9) sepia(0.65) hue-rotate(360deg) opacity(0.7); }
}
.menu-container.visible {
  bottom: 0;
  transition: linear all 0.4s;
}
.menu-container::after {
  transform: rotateZ(180deg);
}

.page-cont {
  display: flex;
  justify-content: center;
/*   height: min(600px, calc(95vh - 114px)); */
/*   height: min(600px, calc(95dvh - 114px)); */
  margin-top: 44px;
  position: relative;
}
.page {
  height: 100%;
  width: 100vw;
  overflow-X: auto;
  display: flex;
  flex-direction: column;
  margin: 0 2em 0 2em;
}
.page-header {
  height: 80px;
  top: 0;
  position: fixed;
  margin: auto;
}
.menu-item {
  font-size: 1.8em;
  color: var(--lgold);
/*   animation: hue-rotation 8s linear infinite; */
  opacity: 0.8;
}

.cornice {
  height: calc(95vh - 24px);
  height: calc(95dvh - 24px);
  width: 95vw;
  max-width: 700px;
  max-height: 700px;
}
.cornice-cont {
  position: absolute;
  left: 50%;
  transform: translateX(-50%) translateY(2.5vh);
  filter: saturate(0.5) hue-rotate(120deg);
  user-select: none;
  pointer-events: none;
  top: 24px;
}

.spacer {
  width: 33vw;
  height: 1px;
  background-color: #35452b;
  display: block;
  margin: 0 auto;
}

.page-img {
  max-width: 100%;
  padding: 1.5em;
  box-sizing: border-box;
}

.background-image {
  position: absolute;
  height: 1500px;
  background-image: url("deco.png");
  width: 100vw;
  background-repeat: no-repeat;
  background-size: contain;
  filter: invert(0.4) sepia(0.65) hue-rotate(69deg) opacity(0.25);
  filter: invert(0.65) sepia(0.75) hue-rotate(0deg) opacity(0.725);  
  filter: invert(0.5) sepia(0.65) hue-rotate(25deg) opacity(0.97);
  filter: invert(0.4) sepia(0.75) hue-rotate(25deg) opacity(0.2);
  filter: var(--backgroundFilter);
  left: -1.8%;
  user-select: none;
  pointer-events: none;
  top: -3em;
}

/* CATALOGO */

.masonry-container {
  width: 100%;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  row-gap: 3em;
  column-gap: 2em;
}

.masonry-element {
  max-width: calc(50% - 1em);
  box-sizing: border-box;
  max-height: 700px;
  overflow: hidden;
  position: relative;
}
.masonry-element.expand {
  max-height: unset;
}

.gallery-container img {
  max-width: 100%;
}

.more-info {
  width: 100%;
  height: 6em;
  background: linear-gradient(0deg, var(--bg) 0%, var(--bg) 25%, rgba(0, 0, 0, 0) 100%);
  position: absolute;
  bottom: 0;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  cursor: pointer;
}
.more-info span {
  user-select: none;
  font-family: 'Poppins';
  pointer-events: none;
}
.more-info.hide {
  display: none;
}

@media screen and (max-width: 500px) {
  body {
    font-size: 14.3px;
  }
}
@media screen and (min-width: 600px) {
  .background-image { 
    filter: invert(0.5) sepia(0.65) hue-rotate(25deg) opacity(0.97);
    opacity: 0.8;
  }
}
@media screen and (max-width: 599px) {
  .brickbox {
    max-width: 314px;
  }
}
@media screen and (max-height: 400px) and (min-width: 500px) {
  .cornice {
    max-width: 600px;
  }
  .page {
    max-width: 500px;
  }
}
@media screen and (min-width: 844px) {
  .page {
    padding-left: unset;
    box-sizing: unset;
  }
}













