/* .workList {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  margin: 20px 0;
}

.workCard {
  position: relative;
  height: 250px;
  width: 20%;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: antiquewhite;
  background: rgba(0, 0, 0, 0);
  transition: 0.5s all;
  border-radius: 5px;
  overflow: hidden;
} */

.workList {
  display: grid;
  grid-template-columns: repeat(4, 1fr); /* 4 colonne di uguale larghezza */
  gap: 20px; /* Spazio tra le immagini */
  justify-items: center; /* Centra gli elementi orizzontalmente per le righe complete */
  padding: 20px 10%;
}

.workCard {
  position: relative;
  height: 250px;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: antiquewhite;
  background: rgba(0, 0, 0, 0);
  transition: 0.5s all;
  border-radius: 5px;
  overflow: hidden;
}

.workList:last-child {
  justify-items: start; /* Allinea l'ultima riga a sinistra */
}

.workCard span, .workCard p {
  visibility: hidden;
}

#category-filter {
  /* Safari Fix */
  background: black url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='4' height='5' viewBox='0 0 4 5'><path fill='%23ffffff' d='M2 0L0 2h4zm0 5L0 3h4z'/></svg>") right .75rem center/8px 10px no-repeat!important;
  /* OLD SVG ARROW */
  /* background: url(data:image/svg+xml;base64,PHN2ZyBpZD0iTGF5ZXJfMSIgZGF0YS1uYW1lPSJMYXllciAxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCA0Ljk1IDEwIj48ZGVmcz48c3R5bGU+LmNscy0xe2ZpbGw6ICAjYzA1ODNmfS5jbHMtMntmaWxsOiM0NDQ7fTwvc3R5bGU+PC9kZWZzPjx0aXRsZT5hcnJvd3M8L3RpdGxlPjxyZWN0IGNsYXNzPSJjbHMtMSIgd2lkdGg9IjQuOTUiIGhlaWdodD0iMTAiLz48cG9seWdvbiBjbGFzcz0iY2xzLTIiIHBvaW50cz0iMS40MSA0LjY3IDIuNDggMy4xOCAzLjU0IDQuNjcgMS40MSA0LjY3Ii8+PHBvbHlnb24gY2xhc3M9ImNscy0yIiBwb2ludHM9IjMuNTQgNS4zMyAyLjQ4IDYuODIgMS40MSA1LjMzIDMuNTQgNS4zMyIvPjwvc3ZnPg==) no-repeat 95% 50%; */
  -moz-appearance: none; 
  -webkit-appearance: none; 
  appearance: none;
  /*Style */
  z-index:99;
  color: white;
  min-width: 350px;
  width: 15%;
  height: 30px;
  background-color: transparent; 
  border: none;
  border-bottom: 1px solid #252525;
}

#category-filter:after{
  width: 0; 
  height: 0; 
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 6px solid #f00;
  position: absolute;
  top: 40%;
  right: 5px;
  content: "v";
  z-index: 999;
 }

#category-filter:focus {
  outline: none;
}

@media only screen and (min-width: 768px) {

  .workCard:hover {
    background: rgba(0, 0, 0, 0.7);
  }

  .workCard:hover span, .workCard:hover p {
    visibility: visible;
    animation: titleEnter 0.5s ease forwards;
  }

  .workCard:hover img {
    transform: translate(10px,0);
    scale: 1.2;
  }

}

@keyframes titleEnter {
  from {
    opacity: 0;
    translate: 0 200% 
  }
  to {
    opacity: 1;
    translate: 0 0;
  }
}

@media only screen and (max-width: 1365px) {
  .workList {
    grid-template-columns: repeat(1, 1fr); /* 4 colonne di uguale larghezza */
    padding: 20px 2%;
  }

  
  .workCard {
    width: 100%;
    height: 150px;
    margin: 0;
    background: rgba(0, 0, 0, 0.6);
  }

  .workCard span, .workCard p {
    visibility: visible;
    animation: titleEnter 1s ease forwards;
    font-weight: 100;
    font-size: 25px;
    line-height: 30px;
  }

  .workCard p {
    font-size: 15px !important;
  }
}

@media only screen and (max-width: 1024px) {
  .workCard {
    width: 90%;
  }
}


.workCard img {
  height: 100%;
  width: 100%;
  border-radius: 3px;
  object-fit: cover;
  z-index: -1;
  transition: 1s all;
}

.workCard span {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 30px;
  color: white;
  text-align: center;
  width:90%;
}

.workCard p {
  position: absolute;
  bottom: 10px;
  right: 20px;
  font-size: 20px;
  color: white;
  text-align: center;
}


.workImage {
  padding: 0 0px 0px 0px;
  width: 100%;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  color: white;
  gap: 20px;
}

.workImage img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  z-index: -1;
}

.workTitle{
  display: flex;
  flex-direction: column;
  align-items: center;
}

.workImage .title {
  z-index: 2;
  font-size: 60px;
  text-align: center;
  color: white;
  margin: 20px 0;
  padding: 0 20px;
  font-weight: 100;
  line-height: 38px;
  padding: 0 20px;
  margin: 60px 0 30px 0;
}

#categoryElement{
  cursor: pointer;
}

.workImage p {
  width: 90%;
  text-align: center;
  margin: 2px 0;
  padding: 0 2%;
}

.workImage .workDate {
  position: absolute;
  bottom: 10px;
  text-align: center;
  width: 100%;
  margin: 0;
  padding: 10px 10px;
  font-size: 18px;
}

.workDescription {
  margin: 40px 0px;
  padding: 20px;
  /* background-color: var(--logoPage-bg-color); */
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap-reverse;
  gap: 60px;
}

.workDescription > section {
  text-align: start;
  width: 39%;
  padding: 0 20px;
  font-size: 16px;
}

.workDescription section h1 {
  font-weight: 200;
  font-size: 30px;
  line-height: 30px;
  margin: 20px 0;
}

.workDescription > img {
  /* width: 35%; */
  object-fit: cover;
  min-width: 300px;
  max-width: 600px;
  max-height: 600px;
  border-radius: 2px;
}

.workDescription * {
  text-align: justify;
}

@media only screen and (max-width: 768px) {

  .workImage .title {
    font-size: 40px;
    margin: 10px 0;
  }

  .workImage {
    padding: 60px 0px 0px 0px;
  }

  .workImage img {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    z-index: -1;
  }

  .workDescription {
    margin: 0px 0px;
    /* background-color: transparent;
    color: black; */
  }

  .workDescription > section {
    width: 90%;
  }

  .workDescription > section > h1 {
    font-size: 25px;
  }

  .workDescription > img {
    min-width: 100%;
    border-radius: 5px;
  }
}

.workIframe {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, 0);
  width: 100%;
  height: 100%;
}

.iframeSection {
  position: relative;
  min-width: 350px;
  width: 75%;
  aspect-ratio: 16/9;
  margin: 20px auto 0px auto;
}

.picturesSection{
  width: 100%;
  display: flex;
  gap: 2%;
  justify-content: center;
  margin: 70px 0;
  flex-wrap: wrap;
}

.picturesSection > img {
  width: 25%;
  object-fit: cover;
}

.workCredits{
  width: 79%;
  margin: 10px auto 40px auto;
  font-weight: 100;
}

.templateContent {
  padding: 50px 15%;
}

.templateContent > h1 {
  font-size: 40px;
}
.templateContent > h2 {
  font-size: 35px;
}
.templateContent > h3 {
  font-size: 30px;
}
.templateContent > h4 {
  font-size: 25px;
}
.templateContent > h5 {
  font-size: 20px;
}
.templateContent > h6 {
  font-size: 15px;
}
.templateContent > p {
  font-size: 16px;
}
.templateContent a {
  color: var(--logoPage-bg-color);
  text-decoration: underline;
}

.templateContent img {
  max-width: 100%;
}

@media only screen and (max-width: 768px) {
  .picturesSection{
    display: flex;
    gap: 50px;
    justify-content: center;
    margin: 70px 0;
    flex-wrap: wrap;
  }
  
  .picturesSection > img {
    width: 90%;
    object-fit: cover;
  }

  .templateContent {
    padding: 50px 5%;
  }
}

blockquote {
  width: 100%;
  margin: 20px auto;
  font-family: Open Sans;
  font-style: italic;
  color: #555555;
  padding: 1.2em 30px 1.2em 75px;
  border-left: 8px solid var(--logoPage-bg-color);
  line-height: 1.6;
  position: relative;
  background: #ededed;
}

blockquote::before {
  content: "\201C";
  color: var(--logoPage-bg-color);
  font-size: 4em;
  position: absolute;
  left: 10px;
  top: -10px;
}

blockquote::after {
  content: "";
}

blockquote span {
  display: block;
  color: #333333;
  font-style: normal;
  font-weight: bold;
  margin-top: 1em;
}

.custom-select-container {
  position: relative;
  width: 250px;
  border-bottom: 1px solid rgba(220, 220, 220, 0.22);
}

.custom-select {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 5px 10px;
  border-radius: 2px;
  cursor: pointer;
  font-size: 16px;
  background-color: black;
}

.custom-options {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  border-top: none;
  border-radius: 5px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
  z-index: 10;
  max-height: 250px;
  overflow-y: auto;
  background-color: #252525;
}

.option {
  padding: 10px;
  cursor: pointer;
  background-color: #252525;
}

.option:hover {
  background-color: #c0583f;
}

.custom-options {
  display: none;
}

.open{
  display: block !important;
}

/* Nascondi la scrollbar */
.custom-options::-webkit-scrollbar {
  display: none; /* Nasconde la scrollbar */
}
