/* specific.css: templates override and alternative layouts */
/* ------------------------------------------------	theme colors */
a:link,
a:visited {
  color: var(--color1);
  text-decoration: none;
}
a.btn {
  color: #fff !important;
}
a:hover,
a:active {
  text-decoration: underline;
}

/* ------------------------------------------------	theme colors  */

button,
.button,
div.pagination ul li a,
ul.pager li a {
  background: var(--color1);
  border-color: var(--color1);
}
.page-item.hover .page-link {
  z-index: 3;
  color: #fff;
  background-color: var(--color1);
  border-color: var(--color1);
}
button:hover,
.button:hover,
div.pagination ul li a:hover {
  background: #4fc6ff;
  border-color: #4fc6ff;
}

/* background */
table th {
  background: var(--color1);
}

/* color */

/* ------------------------------------------- masonry blog menu item type */

/*  quad sizes config */
.quad {
  grid-template-columns: 1fr;
  grid-auto-rows: calc(400px - 18px);
  display: grid;
  grid-auto-flow: dense;
  grid-gap: 5px;
}

@media only screen and (min-width: 768px) {
  .quad {
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: calc(300px - 18px);
  }
}

@media only screen and (min-width: 992px) {
  .quad {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media only screen and (min-width: 1200px) {
  .quad {
    grid-template-columns: repeat(5, 1fr);
  }
}
@media only screen and (min-width: 1480px) {
  .quad {
    grid-template-columns: repeat(6, 1fr);
  }
}
@media only screen and (min-width: 768px) {
  .quad > :nth-child(4n + 1) {
    grid-column: span 2;
    grid-row: span 2; /* Ogni primo elemento di un gruppo di 4 */
  }
  .quad > :nth-child(1) {
    grid-column: span 3;
    grid-row: span 2; /* Ogni primo elemento di un gruppo di 4 */
  }
  .quad > :nth-child(4n + 2) {
    grid-column: span 2;
    grid-row: span 1; /* Ogni secondo elemento di un gruppo di 4 */
  }

  .quad > :nth-child(4n + 3) {
    grid-column: span 1;
    grid-row: span 2; /* Ogni terzo elemento di un gruppo di 4 */
  }

  .quad > :nth-child(4n + 4) {
    grid-column: span 1;
    grid-row: span 1; /* Ogni quarto elemento di un gruppo di 4 */
  }
}
.quad .heading {
  grid-row: span 1 !important;
}
.quad .quad-box {
  overflow: hidden;
  cursor: pointer;
  font-size: 0.9em;
  height: 100%;
  position: relative;
  border-radius: 20px;
  transform: scale(1);
  transition: transform 2s ease, opacity 0.5s ease; /* Anima sia scala che opacità */
}
.quad .quad-box.hover {
  transform: scale(0.9);
}

.quad .quad-box div.category {
  font-weight: bold;
}

.quad .quad-box .content1 {
  width: 100%;
  height: 100%;
  transition: transform 0.5s ease;
}
.item-embed-code, .item-embed-code div[id^="dan-gltfview-"], .threed-container {
  height: 100%;
}
.item-embed-code div div *:not(.sceneCanvas) {
  display: none !important;
}

.item-embed-code .sceneCanvas {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
}

.quad .quad-box::after {
  content: "";
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  -webkit-box-shadow: inset 0 0 30px 10px #ffffff50;
  box-shadow: inset 0 0 30px 10px #00000040;
  /* mix-blend-mode: plus-lighter; */
  z-index: 9;
  transition: opacity 0.5s ease;
}
.quad-box.hover::after {
  /* il tuo stile quando è attivo */
  opacity: 0 !important;
}
@media only screen and (max-width: 992px) {
  .quad-box.active::after {
    /* il tuo stile quando è attivo */
    opacity: 0 !important;
  }
}

.quad .quad-box .content1::before {
  content: "";
  width: 100%;
  height: 50%;
  position: absolute;
  /* Permalink - use to edit and share this gradient: https://colorzilla.com/gradient-editor/#dc911b+0,000000+100&1+0,0+100 */
  background: linear-gradient(
    to bottom,
    rgba(220, 145, 27, 1) 0%,
    rgba(0, 0, 0, 0) 100%
  ); /* W3C, IE10+, FF16+, Chrome26+, Opera12+, Safari7+ */
  mix-blend-mode: color;
  opacity: 0.5;
  z-index: 9;
}
.quad-box a::after {
  /* il tuo stile normale */
  transition: opacity 1s;
  opacity: 1;
}
.quad .quad-box .content2 {
  position: absolute;
  height: auto;
  bottom: 0;
  left: 0;
  z-index: 9;
  background: #fff;
  opacity: 0;
  transform: translateY(50px); /* Partenza dal basso */
  box-sizing: border-box;
  transition: opacity 0.5s ease, transform 0.5s ease; /* Aggiunta della transizione di transform */
}

.quad .quad-box.hover .content2 {
  opacity: 0.7;
  transform: translateY(0); /* Arrivo alla posizione originale */
}
@media only screen and (max-width: 992px) {
  .quad .quad-box.active .content2 {
    opacity: 0.7;
    transform: translateY(0); /* Arrivo alla posizione originale */
  }
}
.quad .quad-box .caption {
  color: #fff;
  position: absolute;
  bottom: 20px;
  right: 20px;
  padding: 5px;
  display: block;
}

.quad .quad-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1);
  transition: transform 4s ease, opacity 0.5s ease; /* Anima sia scala che opacità */
}
.quad .quad-box.hover img {
  transform: scale(1.2);
}
@media only screen and (max-width: 992px) {
  .quad .quad-box.active img {
    transform: scale(1.2);
  }
}
.quad .quad-box .content1 .category {
  width: auto;
  left: 5px;
  top: 0;
  position: absolute;
  background: #fff;
  -webkit-border-radius: 0 0 5px 5px;
  border-radius: 0 0 5px 5px;
  padding: 0 5%;
  z-index: 12;
  color: var(--color1);
}

.quad .quad-box .content1 .category h5 {
  line-height: 1.5em !important;
  margin: 0 !important;
  font-size: 0.9em;
}

.quad .bar {
  position: absolute;
  top: 10%;
  left: 0;
  z-index: 10;
  background: #ffffff70;
}

.quad .bar h2 {
  display: block;
  font-size: 1.4em;
  font-weight: 700;
  margin: 0;
}

.quad h2 a {
  color: #000;
  text-transform: none;
  transform: translateZ(0px);
  transition-duration: 0.3s;
  transition-property: color;
  text-decoration: none;
  /*  text-shadow: 0 0 20px #fff; */
}

.quad .content1 h2 {
  color: #fff;
}

.content2 a {
  text-decoration: none;
  color: #000;
}

.quad h3 {
  font-size: 1.3em;
  color: #000;
}

.quad .item-separator {
  border: none;
}

/* ------------------------------------------------------- masonry blog END */

/* ------------------------------------------- gallery article layout */
.article.gallery figure img {
  width: 100%;
  margin: 0 auto;
  margin-bottom: 20px;
  max-width: 800px;
  display: block;
}

.article.gallery .articletitle,
.article.gallery .caption {
  text-align: center;
}

.article.gallery .caption {
  font-style: italic;
  font-size: 0.9em;
}

/* ------------------------------------------- gallery article layout END */

/* ------------------------------------------------------- overrides  */
/* wall-box override */
.wall .wall-box {
  max-height: 350px;
  overflow: hidden;
}

/* wall-box override END */
/* menu override */
ul.css3menu #item-101 {
  vertical-align: middle;
}

ul.css3menu .home span {
  display: none;
}

nav#menu ul li .home img {
  width: 7vw;
}

/* menu override END */
/* sigpro override */
.sigProContainer {
  background: #f2f2f2;
  text-align: center;
  clear: none !important;
}

.sigProContainer li.sigProThumb {
  float: inherit !important;
}

.sigProLink {
  border: solid #fff 5px !important;
}

.sigProLink:hover {
  border: solid #ccc 5px !important;
}

ul.sigProClassic li.sigProThumb span.sigProLinkWrapper {
  border: 1px solid #cccccc;
  display: block;
  float: left;
  margin: 0;
  padding: 0;
}

/* sigpro override END */

/* override to google widget */
#widget_bounds {
  border: none !important;
  border: 0 !important;
}

/* override to google widget END */

/* ------------------------------------------------------- OVERRIDES END  */
/* ------------------------------------------------------- COOKIE CHOICES */

#cookieChoiceInfo {
  box-sizing: border-box !important;
  padding: 20px 10px !important;
  top: inherit !important;
  bottom: 0;
}

#cookieChoiceInfo span {
  display: block;
  margin-bottom: 5px;
}

#cookieChoiceInfo .button {
  display: inline;
}

/* ------------------------------------------------------- COOKIE CHOICES END */

/* ------------------------------------------------------- SOCIAL MODULE LINKS */

#social {
  color: #fff;
  position: relative;
}

#social a {
  color: #fff;
  text-decoration: underline;
}

#social ul {
  list-style: none;
  list-style-position: inside;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 10px;
}

#social ul li {
  padding: 0 !important;
  margin: 0 !important;
  position: relative;
  flex: 1 1 70px;
}

#social svg {
  width: 100%;
  height: auto;
  max-width: 70px;
}

#social svg {
  fill: #ccc;
}

#social svg:hover {
  fill: #fff;
}

/* ------------------------------------------------------- SOCIAL MODULE LINKS END */

#twitter-widget-0 {
  width: 100%;
}

div.mod-languages ul li.lang-active {
  background-color: #fff;
}
