@font-face {
  font-family: "EB";
  src: url("https://epilogobotanico.it/wp-content/themes/EB/fonts/EB.ttf")
    format("truetype");
  font-weight: normal;
  font-style: normal;
}

body {
  font-family: "Inter Tight", Helvetica, sans-serif;
  background-color: #ddd;
}

h3 {
  font-family: "EB", Helvetica, sans-serif;
  font-weight: normal;
  font-style: normal;
  line-height: 1;
}

* {
  margin: 0;
  padding: 0;
  color: #6f5f54;
  a {
    color: #6f5f54;
    text-decoration: none;
  }
}
header {
  background-image: linear-gradient(#ddd, #ddd, #ddd, rgba(0, 0, 0, 0));
  font-size: 16px;
  z-index: 100;
  top: 0;
  transition: top 0.3s;
  width: calc(100vw - 30px);
  position: fixed;
  display: flex;
  justify-content: space-between;
  padding-top: 10px;
  padding-left: 15px;
  padding-right: 15px;
  padding-bottom: 20px;
}
.current-menu-item,
.current-post-parent {
  text-decoration: underline;
}
.ver2 {
  background-image: none;
  z-index: 100;
  a,
  p {
    color: white;
  }
}
.ver3 {
  background-image: none;
  z-index: 100;
  a,
  p {
    color: #6f5f54;
  }
}
main {
  padding-top: 85px;
}

.foot {
  display: flex;
  flex-direction: row;
  gap: 50px;
  margin-top: 100px;
  margin-left: 10px;
  margin-right: 10px;
  padding-top: 20px;
  padding-bottom: 20px;
  border-top: 1px solid #6f5f54;
  a:hover {
    text-decoration: underline !important;
  }
}
.footcontainer {
  width: auto;
  display: flex;
  flex-direction: column;
}
.footsocial {
  margin-left: auto;
  width: auto;
  align-items: end;
  display: flex;
  flex-direction: column;
}

/* HOME */
.logovideoMobile {
  mix-blend-mode: lighten;
  position: absolute;
  left: -25vw;
  right: auto;
  top: 0;
  bottom: 0;
  margin: auto;
  z-index: 99;
  width: 150vw;
  display: none;
  transform: translateZ(0) !important;
}
.logovideo {
  mix-blend-mode: lighten;
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  margin: auto;
  z-index: 99;
  width: 1000px;
  transform: translateZ(0);
}

.home {
  overflow: hidden;
  padding-top: 0px;
  height: 100vh;
  max-width: 200vw;
}
.logovideocontainer {
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  position: absolute;
}

video::-webkit-media-controls {
  display: none;
}
.media-controls-container {
  display: none !important;
}
video::-webkit-media-controls,
video::-webkit-media-controls-enclosure {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none;
}
.videocontainer {
  overflow: hidden;
  position: absolute;
  width: 100vw;
  height: 100vh;
  object-fit: cover;
  div {
    min-width: 100%;
    min-height: 100%;
  }

  video {
    min-width: 100%;
    min-height: 100%;
    object-fit: cover;
    position: absolute;
    pointer-events: none;
  }
  .mejs-controls {
    display: none !important;
    visibility: hidden !important;
  }
}

.linkprogetti {
  position: absolute;
  z-index: 999;
  left: 0;
  right: 0;
  bottom: 40%;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  margin: auto;
}

.linkprogetti a {
  display: inline-block;
  text-align: center;
  width: auto;
  color: white;
  animation-name: linkprogettianimation;
  animation-duration: 6s;
}

.linkprogetti:hover a {
  text-decoration: underline;
}

@keyframes linkprogettianimation {
  0% {
    opacity: 0%;
  }
  75% {
    opacity: 0%;
  }
  100% {
    opacity: 100%;
  }
}

/* PAGINA PROGETTI */
.projects {
  padding-left: 15px;
  padding-right: 15px;
}
.project {
  border-top: 1px solid #6f5f54;
  z-index: 99;
  display: flex;
  padding: 10px 0px 20px 0px;
  p {
    font-size: 11px;
  }
  h3 {
    font-size: 90px;
  }
}
.infobar {
  z-index: 99;
  display: flex;
  padding: 0px 0px 10px 0px;
  p {
    font-size: 11px;
  }
}

ul {
  list-style-type: none;
  display: flex;
  gap: 50px;
}

.col1 {
  width: 20%;
  display: flex;
  .placedate {
    width: 50%;
  }
}

.col2 {
  width: 20%;
  float: right;
  p {
    width: 100%;
    text-align: right;
  }
}

.centralcol {
  width: 60%;
  text-align: center;
}

.previewimage {
  align-self: center;
  margin-top: 10px;
  width: 400px;
  position: absolute;
  left: calc(50% - 200px);
  z-index: -1;
  opacity: 0%;
  background-color: #938780;
  display: flex;
  mix-blend-mode: multiply;

  img {
    filter: grayscale(100%) brightness(1.5);

    mix-blend-mode: screen;
    width: 100%;
    height: auto;
  }
}

.project:hover .previewimage {
  opacity: 90%;
}

/* PAGINA PROGETTO SINGOLO */
.WIP {
  width: 700px;
  height: 80px;

  position: absolute;
  justify-content: center;
  align-items: center;
  text-align: center;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;

  margin: auto;
  p {
    justify-self: center;
  }
  h1 {
    font-size: 60px;
    font-weight: normal;
    font-family: "EB";
    justify-self: center;
  }
}

.description p {
  a:hover {
    text-decoration: underline !important;
  }
  line-height: 1.1;
  font-size: 14px;
}

.first-paragraph:first-letter {
  float: left;
  font-family: "EB";
  font-weight: normal;
  font-style: normal;
  font-size: 105px;
  margin: -16px 10px -16px 0px;
}

.singleProject {
  display: flex;
  overflow: hidden;
  margin-left: 15px;
  h3 {
    width: 20vw;
    font-family: "Inter Tight";
    font-weight: normal;
    font-style: normal;
    font-size: 20px;
    line-height: 1;
  }
}
.container {
  width: 40vw;
  margin-bottom: 15px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.infobox {
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  p {
    font-size: 11px;
  }
}

.infogrid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-auto-rows: auto;
  gap: 10px;
  width: 30%;
}
.infogrid p:nth-child(1) {
  grid-column: 1 / 2;
  grid-row: 1;
}

.infogrid p:nth-child(2) {
  grid-column: 2 / 3;
  grid-row: 1;
}

.infogrid p:nth-child(3) {
  grid-column: 1 / 4;
  grid-row: 2;
}

.containerImages {
  margin-left: 15px;
  margin-right: 10px;
  width: 60vw;
  margin-top: -85px;
  padding-top: 40px;
  padding-bottom: 15px;
  height: calc(100vh - 55px);
  overflow: scroll;
  img {
    width: 100%;
    margin-bottom: -5px;
  }
}

/* PAGINA ABOUT */
.logoaboutMobile {
  margin-top: 5px;
  display: none;
}

.about {
  padding-top: 40px;
  margin: 0px 15px;
  a:hover {
    text-decoration: underline !important;
  }
}

.aboutcontainer {
  figure {
    width: calc((44%));
    height: 210px;
    img {
      width: 100%;
      height: 100%;
      object-fit: cover !important;
    }
  }
}

.aboutcontainer {
  justify-content: space-between;
  margin-top: 120px;
  display: flex;
  flex-wrap: wrap;
  row-gap: 70px;
  p {
    line-height: 110%;
    font-size: 16px;
    width: 44%;
    margin-right: 1%;
    /*margin: 0px 1%;*/
  }
  ul {
    display: block;
    width: 20%;
    list-style-type: none;
    gap: 0px;
  }
}

h4 {
  width: 10%;
  font-size: 11px;
  font-weight: normal;
}

h5 {
  margin: 200px auto 200px auto;
  font-size: 30px;
  font-weight: normal;
}

.videocontainerAbout {
  z-index: -4;
  margin-top: -490px;
  display: inline-block;
  position: absolute;
  left: 15px;
  right: 15px;
  height: 490px;
}

.dot {
  position: absolute;
  height: 10px;
  width: 10px;
  background-color: #6f5f54;
  border-radius: 50%;
  display: inline-block;
  transition: 1.5s;
}
#d1 {
  margin-left: 29%;
  margin-top: 9ch;
}
#d2 {
  margin-left: 12%;
  margin-top: 30ch;
}
#d3 {
  margin-left: 95%;
  margin-top: 20ch;
}
#d4 {
  margin-left: 93%;
  margin-top: 45ch;
}
#d5 {
  margin-left: 85%;
  margin-top: 49ch;
}
#d6 {
  margin-left: 39%;
  margin-top: 55ch;
}

body:has(h5:hover) {
  #d1 {
    margin-left: 34%;
    margin-top: 16ch;
  }
  #d2 {
    margin-left: 26%;
    margin-top: 30ch;
  }
  #d3 {
    margin-left: 70%;
    margin-top: 24ch;
  }
  #d4 {
    margin-left: 69%;
    margin-top: 32ch;
  }
  #d5 {
    margin-left: 67%;
    margin-top: 35ch;
  }
  #d6 {
    margin-left: 30%;
    margin-top: 35ch;
  }
}

/* MAGAZINE */
.articlesContainer {
  display: grid;
  grid-template-columns:
    calc((100vw - (36px * 2)) / 3) calc((100vw - (36px * 2)) / 3)
    calc((100vw - (36px * 2)) / 3);
  gap: 26px;
  padding: 10px;
}
.articlePreview {
  width: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
}
.articleImg {
  background-color: #6f5f54;
  height: 20vw;
  margin-bottom: 10px;
  img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
}

.titleMagazine {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  font-size: 100px;
  font-family: "EB";
  margin-bottom: 80px;
}

.titleMagazineEB {
  font-size: 180px;
}

.titleMagazine p {
  line-height: 0.8;
  margin: 0;
}

.articlePreview:hover .articleImg img {
  filter: grayscale(100%) brightness(1.5);
  mix-blend-mode: screen;
}

.articlePreview:hover .articleImg {
  mix-blend-mode: multiply;
}

.date {
  align-self: center;
  justify-self: center;
  font-size: 15px;
}

.articleInfo {
  align-self: center;
  justify-self: center;
  font-size: 15px;
}

.titlePreviewBox {
  max-width: 70%;
  align-self: center;
  justify-self: center;
}

.titlePreview {
  font-size: 25px;
  font-family: "Inter Tight";
  font-weight: normal;
  text-align: center;
}
.article {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;

  img {
    width: 80vw;
    height: auto;
    margin-top: 60px;
    margin-bottom: 60px;
  }
}

.articleTitle {
  max-width: 80%;
  text-align: center;
  line-height: 1;
  margin-bottom: 30px;
  font-family: "EB";
  font-size: 100px;
  font-weight: normal;
}

.articleContent {
  width: 900px;
  a:hover {
    text-decoration: underline;
  }
  img {
    width: 900px;
    margin: 20px 0 !important;
  }
  p {
    padding-bottom: 10px;
    font-size: 16px;
  }
}

/*RESPONSIVENESS*/
@media (min-width: 1800px) {
  main {
    width: 1800px;
    margin-left: auto !important;
    margin-right: auto !important;
  }
  .home {
    width: 100vw;
  }
  .articleImg {
    width: calc((1800px - (36px * 2)) / 3);
    height: 320px;
  }
  .article {
    img {
      width: calc(1800px / 10 * 8);
    }
  }
  .aboutcontainer {
    figure {
      width: 44%;
    }
  }
}

@media (max-width: 1440px) {
  .container {
    width: 55%;
    margin-bottom: 15px;
    display: flex;
    justify-content: space-between;
  }

  .articleContent {
    width: 60%;
    img {
      width: 100%;
    }
  }
}

@media (max-width: 1100px) {
  .articleInfo {
    align-self: center;
    justify-self: center;
    font-size: 13px;
  }
  .container {
    width: 70%;
  }
  .aboutcontainer {
    figure {
      height: 170px;
    }
  }

  .articlesContainer {
    grid-template-columns: calc((100vw - (46px)) / 2) calc((100vw - (46px)) / 2);
  }
  .articleImg {
    height: 30vw;
    margin-bottom: 10px;
  }
  .titleMagazine {
    font-size: 100px;
  }
  .articleTitle {
    font-size: 80px;
    margin-bottom: 20px;
  }
  .articleContent {
    width: 75%;
    img {
      width: 100% !important;
      margin: 20px 0 !important;
    }
  }
  .article {
    img {
      width: 90vw;
    }
  }
}

@media (max-width: 750px) {
  .WIP {
    width: 100%;
    h1 {
      font-size: 30px;
    }
  }
  .articleInfo {
    align-self: center;
    justify-self: center;
    font-size: 11px;
  }
  .singleProject {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    margin-left: 15px;
    margin-right: 15px;
    h3 {
      font-family: "Inter Tight";
      font-weight: normal;
      font-style: normal;
      font-size: 20px;
      line-height: 1;
      width: 60vw;
    }
  }
  .infoscontent {
    width: 13vw;
  }
  .containerImages {
    margin-left: 0px;
    margin-right: 0;
    width: 100vw;
    margin-top: 0;
    padding-top: 0;
    height: auto;
    overflow: auto;
    img {
      width: 100%;
      margin-bottom: -5px;
    }
  }
  .infobox {
    margin-bottom: 100px;
  }
  .container {
    width: 100%;
    margin-bottom: 15px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }
  .videocontainerAbout {
    margin-top: -460px;
    height: 460px;
  }
  .about {
    .aboutcontainer {
      figure {
        width: 100%;
        height: 180px;
      }
    }
    h4 {
      width: 100%;
      margin-top: 60px;
    }
    h5 {
      font-size: 20px;
    }
    p {
      width: 100%;
      font-size: 15px;
      margin: 0;
      margin-bottom: 20px;
    }
    ul {
      width: 50%;
      font-size: 15px;
      margin-bottom: 20px;
    }
  }
  .aboutcontainer {
    row-gap: 7px;
    margin-top: 0;
  }
  .project {
    h3 {
      font-size: 60px;
    }
  }
  .homebutton {
    a::after {
      content: "EPILOGO BOTANICO";
      display: block;
    }
    p {
      display: none; /* Hide the default text */
    }
  }
  .foot {
    p {
      font-size: 13px;
    }
    display: flex;
    flex-direction: column;
    gap: 20px;
    .footcontainer {
      width: 100%;
    }
    .footsocial {
      margin-left: 0;
      align-items: baseline;
    }
  }
  header {
    font-size: 14px;
  }
  .ver3 {
    background-image: linear-gradient(#ddd, #ddd, #ddd, rgba(0, 0, 0, 0));
  }
  .logovideoMobile {
    display: block;
  }
  .logovideo {
    display: none;
  }
  .linkprogetti {
    font-size: 14px;
    bottom: 37%;
  }
  .logoabout {
    display: none;
  }
  .logoaboutMobile {
    display: block;
  }
  .articlesContainer {
    grid-template-columns: auto;
  }
  .articleImg {
    width: calc((100vw - (20px)));
    height: 60vw;
    margin-bottom: 10px;
  }
  .titleMagazine {
    font-size: 70px;
    .titleMagazineEB {
      font-size: 130px;
    }
  }
  .articleTitle {
    font-size: 55px;
    margin-bottom: 10px;
  }
  .articleContent {
    margin-left: 15px;
    margin-right: 15px;
    width: auto;
    img {
      width: 100%;
    }
  }
  .article {
    img {
      margin-top: 30px;
      margin-bottom: 20px;
      margin-left: 15px;
      margin-right: 15px;
      width: calc(100vw - 30px);
    }
  }
  .titlePreview {
    font-size: 23px;
  }
}
@media (max-width: 1000px) {
  .logovideo {
    width: 100vw;
  }
}
@media (max-width: 450px) {
  .aboutcontainer {
    figure {
      height: 120px !important;
    }
  }

  .a header {
    font-size: 12px;
  }
  ul {
    gap: 10px;
  }
  .project {
    h3 {
      padding-top: 10px;
      font-size: 40px;
    }
  }
  .titleMagazine {
    font-size: 55px;
    .titleMagazineEB {
      font-size: 100px;
    }
  }
  .titlePreview {
    font-size: 19px;
  }
  .articlesContainer {
    gap: 10px;
  }
  .articleContent {
    p {
      font-size: 14px;
    }
  }
}
