@import url("https://fonts.googleapis.com/css?family=Dosis");
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  font-family: "Dosis", sans-serif;
}

body {
  min-height: 100vh;
}

.o-header {
  position: fixed;
  width: 100vw;
  height: 3rem;
  top: 0;
  left: 0;
  z-index: 10;
  display: flex;
  background-color: #fff;
}
.o-nav {
  width: 100%;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.o-nav--logo {
  margin: 0;
}
.o-nav--menu {
  display: flex;
  padding-left: 0;
  margin: 0;
  list-style: none;
}

.hero {
  background-color: #1b2b35;
  min-height: 100%;
}
.hero-portfolio--header {
  min-height: 40vh;
  position: relative;
  padding: 3rem 0 0;
  background-color: #202020;
  background-repeat: no-repeat;
  background-size: cover;
}
.hero-portfolio--header-intro {
  position: relative;
  top: 3vh;
  left: 0;
  right: 0;
  margin: 0;
  font-size: 5vmax;
  color: white;
  text-transform: uppercase;
}
.hero-portfolio--header-intro:before {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  top: auto;
  bottom: -0.5rem;
  width: 34px;
  height: 5px;
  background: #fff;
}
.hero-portfolio--grid {
  width: 100%;
  /*max-width: 768px;*/ /* modifica su visualizzazione griglia foto C.B. */
  display: grid;
  grid-gap: 0.5rem;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  position: relative;
  top: -10vh;
  margin: auto;
  background-image: linear-gradient(to bottom, #202020 0%, #202020 30%, transparent 100%);
  height: 291px;
}

/*mod.griglia foto mobile*/
@media all and (min-width: 360px) and (max-width: 736px){
.hero-portfolio--grid {
  heigh: 100%;
  height: auto;
}
}
/*mod.griglia foto tablet*/
@media all and (min-width: 768px) and (max-width: 1024px){
.hero-portfolio--grid {
  heigh: 100%;
  height: auto;
}
}



.c-card {
  position: relative;
  overflow: hidden;
  margin: 0;
  transition: all 250ms ease-in-out;
}
.c-card--figure {
  position: relative;
  width: 100%;
  height: 100%;
  margin: 0;
}
.c-card--image {
  max-width: 100%;
  -o-object-fit: fill;
     object-fit: fill;
}
.c-card--name {
  position: absolute;
  top: auto;
  bottom: 1rem;
  left: 0.5rem;
  font-size: 1em;
  color: white;
  
  background: #00000061;
  width: 100%;
  padding: 4px 0 4px 4px;
  font-weight: 700;
}
.c-card.no-focus {
  filter: grayscale(100%);
}
.c-card.is-focus .c-card--image {
  transition: all 250ms ease-in-out;
}

.ed-modal-content {
  width: auto;
  max-height: 90vh;
  max-width: 1000px;
  margin: auto;
  position: relative;
  top: -3rem;
  opacity: 0;
}
.ed-modal-content--header {
  min-height: 2rem;
  border-bottom: 1px solid rgba(128, 128, 128, 0.6);
}
.ed-modal-content--image {
  display: block;
  margin: auto;
  width: 100%;
  height: auto;

}
.ed-modal-container {
  background: rgba(0, 0, 0, 0.6);
  position: fixed;
  top: 0;
  width: 100%;
  height: 100vh;
  display: flex;
  opacity: 0;
  z-index: 2000;
}
.ed-modal-container::before {
  content: "X";
  color: #000;
  position: absolute;
  top: 6rem;
  right: 1rem;
  font-size: 2.0em;
  opacity: 1.5;
  right: 170px;

  background-color: #ccc;
  border-radius: 50%;
  padding: 1px 11px 0px 11px;

}
.ed-modal-container:hover::before {
  cursor: pointer;
  opacity: 1;
}
.ed-modal-container.is-active {
  -webkit-animation-name: modalInyect;
          animation-name: modalInyect;
  -webkit-animation-duration: 340ms;
          animation-duration: 340ms;
  opacity: 1;
}
.ed-modal-container.is-active .ed-modal-content {
  -webkit-animation-name: modalInyectContent;
          animation-name: modalInyectContent;
  -webkit-animation-duration: 540ms;
          animation-duration: 540ms;
  top: 0;
  opacity: 1;
}
.ed-modal-container.is-remove {
  -webkit-animation-name: modalRemove;
          animation-name: modalRemove;
  -webkit-animation-duration: 340ms;
          animation-duration: 340ms;
}
.ed-modal-container.is-remove .ed-modal-content {
  -webkit-animation-name: modalRemoveContent;
          animation-name: modalRemoveContent;
  -webkit-animation-duration: 340ms;
          animation-duration: 340ms;
}

.c-menuBurguer {
  position: relative;
  display: block;
  cursor: pointer;
  width: 30px;
  margin: auto;
  transition: transform 150ms ease-in-out;
}
.c-menuBurguer--Item {
  display: block;
  width: 30px;
  height: 3px;
  margin: 0 0 5px;
  background-color: var(--color_2-dark);
  transition: transform 150ms ease-in-out;
}
.c-menuBurguer:hover .c-menuBurguer--Item:nth-child(2) {
  transform: translateX(5px);
}
.c-menuBurguer.is-active .c-menuBurguer--Item:first-child {
  width: 30px;
  transition-delay: 0.2s;
  transform: rotate(45deg);
  transform-origin: 10% 0%;
}
.c-menuBurguer.is-active .c-menuBurguer--Item:nth-child(2) {
  transform: translateX(40px);
  opacity: 0;
}
.c-menuBurguer.is-active .c-menuBurguer--Item:nth-child(3) {
  width: 30px;
  transition-delay: 0.4s;
  transform: rotate(-45deg);
  transform-origin: 10% 100%;
}

@-webkit-keyframes modalRemove {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}

@keyframes modalRemove {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}
@-webkit-keyframes modalRemoveContent {
  from {
    opacity: 1;
    top: 0;
  }
  to {
    opacity: 0;
    top: -3rem;
  }
}
@keyframes modalRemoveContent {
  from {
    opacity: 1;
    top: 0;
  }
  to {
    opacity: 0;
    top: -3rem;
  }
}
@-webkit-keyframes modalInyect {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes modalInyect {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@-webkit-keyframes modalInyectContent {
  from {
    opacity: 0;
    top: -3rem;
  }
  to {
    opacity: 1;
    top: 0;
  }
}
@keyframes modalInyectContent {
  from {
    opacity: 0;
    top: -3rem;
  }
  to {
    opacity: 1;
    top: 0;
  }
}