/*
.Iceland-1-hex { color: #00010D; }
.Iceland-2-hex { color: #88898C; }
.Iceland-3-hex { color: #D7D7D9; }
.Iceland-4-hex { color: #070D0B; }
.Iceland-5-hex { color: #404040; }

.Iceland-1-rgba { color: rgba(0, 0, 12, 1); }
.Iceland-2-rgba { color: rgba(136, 137, 140, 1); }
.Iceland-3-rgba { color: rgba(214, 215, 216, 1); }
.Iceland-4-rgba { color: rgba(7, 12, 11, 1); }
.Iceland-5-rgba { color: rgba(63, 63, 63, 1); }
*/


html, body { margin: 0; padding: 0;}

body {background-color: #D7D7D9;}

* {
  font-family: 'Barlow', sans-serif;
  color: #fafafa;
}

::selection {
  background-color: #C62828;
  color: #fafafa;
}

/* width */
::-webkit-scrollbar {
  width: 10px;
}

/* Track */
::-webkit-scrollbar-track {
  background: #D7D7D9;
}

/* Handle */
::-webkit-scrollbar-thumb {
  background: #404040;
}

/* Handle on hover */
::-webkit-scrollbar-thumb:hover {
  background: #555;
}

h1, h2, h3, h4, nav a {
font-family: 'Fjalla One', sans-serif;
}

b { color: #C62828; font-family: 'Fjalla One', sans-serif;}

h1 {
    margin: 0;
    text-align: left;
    font-weight: 100;
    margin-left: 20px;
    vertical-align: middle;
}

h2::first-letter {
  color: #C62828;
  font-size:48px;
  border: 1px solid #C62828;
  padding: 0 2px;
}

.lightbox-wrap{
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: #070d0bb3;
  z-index: 9999;
  display: block;
}

/*
.lightbox-inner{
  position: absolute;
  width: 85vw;
  height: 85vh;
  top: 10px;
  left: 0;
  right: 0;
  margin: auto;
}
*/

.lightbox-inner {
    position: absolute;
    width: 85vw;
    height: 85vh;
    top: 10px;
    left: 0;
    right: 0;
    margin: auto;
    background-color: #070d0b;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}


.lightbox-caption::after {content: '';position: absolute;top: 0;left: 0;width: 100%;height: 100%;background: radial-gradient(black 15%, transparent 16%) 0 0,
radial-gradient(black 15%, transparent 16%) 8px 8px,
radial-gradient(rgba(255,255,255,.1) 15%, transparent 20%) 0 1px,
radial-gradient(rgba(255,255,255,.1) 15%, transparent 20%) 8px 9px;background-color: #1d1d1d;background-size:16px 16px;}

.lightbox-caption::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width:100%;
    height: 100%;
    background: rgb(0,0,0);
    background: linear-gradient(90deg, rgb(7 13 11) 30%, rgba(0,212,255,0) 91%);
    z-index: 5;
}

/*
.lightbox-img {
    width: 100%;
    height: 100%;
    background-size: contain;
    background-repeat: no-repeat;
    margin: auto;
    background-position: center;
}
*/

.lightbox-img {
    width: 65%;
    height: 100%;
    background-size: contain;
    background-repeat: no-repeat;
    margin: 0;
    background-position: center;
}

/*
.lightbox-caption {
    width: calc(100% - 10px);
    background-color: #070D0B;
    padding: 5px;
}
*/

.lightbox-caption {
    width: 35%;
    background-color: #070D0B;
    display: block;
	overflow-y: scroll;
	position: relative;
}

.lightbox-caption h4 {
    display: block;
    margin-left: 10px;
    font-size: 22px;
	font-weight: 100;
    border-left: 5px solid #C62828;
    padding-left: 5px;
	position: relative;
    z-index: 10;
}

/*
.lightbox-txt {font-size: 15px;}
*/

.lightbox-txt {
    font-size: 18px;
    margin: 10px;
    display: block;
    background-color: #292929;
	background-color: #29292999;
    border-radius: 2px;
    padding: 5px;
    line-height: 1.3;
	position: relative;
    z-index: 10;
}

.hide-l{
  display: none!important;
}

#main-wrap{
  position: relative;
  display: block;
  width: 100%;
  max-width: 1920px;
  margin: 0 auto;
}

header {
  width: 100%;
  height: 50px;
  position: fixed;
  z-index: 999;
  bottom: 0;
  max-width: 1920px;
}

.header-top {
  top: 0;
  background-color: rgba(0,0,0,.5);
}

#main-nav {
  position: absolute;
  top: 0;
  right: 0;
  padding: 10px;
  display: flex;
  justify-content: space-between;
  /*width: 100%;*/
	width: calc(100% - 20px);
}

#main-nav ul {
    margin: 0;
    padding: 0;
}

#main-nav li {
  display: inline-block;
  list-style-type: none;
}

#main-nav li:hover::first-letter {
    color: #C62828;
    text-transform: capitalize;
    transition: .3s ease;
}

#main-nav a{
  font-size: 18px;
  letter-spacing: 1px;
  color: #fafafa;
  position: relative;
  margin-right: 5px;
}

#main-nav a:hover:after {
    width: 100%;
    transition: .1s ease-in;
}

#main-nav a:hover::first-letter{
  color: red;
}

#main-nav a:after {content: '';position: absolute;left: 0;bottom: 0;border-bottom: 3px solid #C62828;width: 0;}

.fx-img {
    position: fixed;
    width: 100%;
    height: 100%;
    /*background-image: url(https://res.cloudinary.com/dbp4b54gn/image/upload/v1596463023/method-draw-image_1_u0qndw.svg);*/
	background-image: url('../img/nova-serrande-mg-logo.png');
    z-index: 3;
    background-position: center center;
    background-repeat: no-repeat;
    /*background-size: contain;*/
	/*background-size: 38% auto;*/
	background-size: 450px;
    display: block;
    top: 0;
    left: 0;
}

.section-wrap {
  width: 100%;
  position: relative;
  display: block;
  text-align: center;
  z-index: 12;
}

.section-wrap:focus {
    outline: none!important;
}

#s-1 {
  background-color: #070D0B;
  height: 100vh;
  min-height: 600px;
}

#p-canv {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 5;
}

/*
#s-1-5::after, #s-2::after {
    position: absolute;
    bottom: -100px;
    width: 100%;
    height: 200px;
    background-color: inherit;
    left: 0;
    content: '';
    z-index: 5;
    transform: skewY(-5deg);
}
*/

#s-1-5::after, #s-3::before {
    position: absolute;
    bottom: -100px;
    width: 100%;
    height: 200px;
    background-color: inherit;
    left: 0;
    content: '';
    z-index: 5;
    transform: skewY(-5deg);
}


#s-3::before {
    bottom: 0;
    top: -100px;
    background-color: #404040;
}


#video-wrap {
  position: relative;
  width: 100%;
  height: 100vh;
  /*background-image: url('https://res.cloudinary.com/dbp4b54gn/image/upload/v1596288032/1438758521158_luyigr.jpg');*/
  background-image: url('../img/nova-mg-serrande.jpg');
  background-size: cover;
  background-position: center center;
}

#video-wrap::before {
  content: '';
  position: absolute;
  width: 100%;
  height:100%;
  top: 0;
  left: 0;
  background-color: rgba(0, 0, 0, .6);
  background: rgb(0,0,0);
background: linear-gradient(0deg, rgba(0,0,0,1) 0%, rgba(0,0,0,.6) 25%, rgba(255,255,255,0) 100%);
}

.text-wrap {
  width: 50%;
  padding: 20px;
  position: absolute;
  bottom: 100px;
  left: 10px;
  min-width: 350px;
  max-width: 750px;
  /*font-size: 24px;*/
  font-size: 26px;
  font-weight: 100;
  text-align: left;
}

#s-1-5 {
  background-color: #fafafa;
  padding-top: 50px;
  padding-bottom: 200px;
}

#story-wrap {
    width: 70%;
    margin-left: auto;
    margin-right: 20px;
    text-align: right;
  border-right: 5px solid #C62828;
}

.t-step {
    font-size: 24px;
    font-weight: 100;
    letter-spacing: 1px;
    text-align: right;
    display: inline;
    border-bottom: 5px solid #C62828;
    background-color: #fafafa;
    color: #070D0B;
    margin-right: -5px;
    padding-top: 5px;
  position: relative;
}

.t-step::before {
    content: '';
    background-color: #C62828;
    width: 15px;
    height: 15px;
    position: absolute;
    right: 0px;
    top: -10px;
    /* clip-path: polygon(100% 0, 0 0, 100% 100%); */
    -webkit-clip-path: polygon(100% 0, 0 0, 100% 100%);
}

#t-first-step::before {
    border-radius: 50%;
    clip-path: none;
    right: 95px;
    width: 15px;
    height: 15px;
    top: 30px;
}

#t-last-step::before {
    display: none;
}

#t-last-step {
  font-size: 30px;
    border: none;
    background-color: #C62828;
    padding: 5px 10px;
  color: #fafafa;
}

#s-1-5 h2 {
    font-size: 36px;
    font-weight: 100; 
  text-align: right;
  margin-right: 20px;
  color: #070D0B;
}

#story-wrap p {
    font-size: 24px;
  font-weight: 300;
  margin-right:15px;
  text-align: right;
  margin-top: 35px;
  margin-bottom: 35px;
  color: #070D0B;
}

.today-txt {
    margin: 50px 20px 0 0;
    text-align: right;
}

.today-txt span {
    font-size: 28px;
    font-weight: 100;
    font-style: italic;
  color: #070D0B;
}

.today-txt span::before, .today-txt span::after {
  content: '"';
  color: #C62828;
  font-size: 42px;
  font-weight: bold;
}

#s-2 {
  /*min-height: 700px;*/
  /*background-color: #D7D7D9;*/
  background-color: transparent;
      padding: 200px 0;
}

.works-divider {
  width: 75%;
  height: 0;
  margin: 100px auto;
  border-bottom: 25px solid rgba(7, 13, 11, .2);
  border-radius: 2px;
}

.works-wrap {
  margin: 50px auto;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: space-evenly;
  z-index: 12;
      background-color: rgb(255 255 255 / .3);
    width: 90%;
}

.works-title {
    width: 100%;
    text-align: left;
    margin-left: 20px;
    font-size: 36px;
    font-weight: 100;
    margin-right: 20px;
    /*background-color: rgba(7, 13, 11, .2);
    padding: 5px;*/
  color: #070D0B;
}

.wt-r {
    text-align: right;
}

.single-fill{
    width: 280px;
  height: 0;
  margin: 0 30px;
}

.single-work {
  width: 280px;
  height: 200px;
  flex-shrink: 0;
  position: relative;
  border-radius: 2px;
  margin: 30px;
  overflow: hidden;
  cursor: pointer;
}

.sw-title {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(7, 13, 11, .6);
    text-align: left;
    opacity: 0;
  z-index: 5;
}

.sw-title span {
    font-size: 22px;
    position: absolute;
    bottom: 10px;
    left: 10px;
}

.sw-img {
  background-image: url(https://res.cloudinary.com/dbp4b54gn/image/upload/v1596463374/Aluminum-Fencing-Steel-Black-Fence-Puppy-Dog-Pet-Metal-Fence-Panel-with-Rings_ii1al0.jpg);
  background-size: cover;
  border-radius: 2px;
  width: 100%;
  height: 100%;
  transition: .1s linear;
}

.single-work:hover .sw-img {
    transform: scale(1.2);
    transition: 3s ease-in;
}

.single-work:hover .sw-title {
  opacity: 1;
  transition: .1s linear;
}

.work-slid-wrap {
    margin-top: 50px;
}

.all-w-mob{
  display: none;
}

.works-wrap-s2 {
    width: 100%;
  margin: 50px 0;
  margin-top: 0;
    background-color: rgba(255, 255, 255, .3);
    display: block;
  overflow: hidden;
  overflow-x: scroll;
    padding: 25px 0;
}

.work-slid-wrap h2 {
    background-color: rgba(255, 255, 255, 0.3);
    padding: 0 20px;
    padding-top: 30px;
    margin: 0!important;
    width: auto;
}

.sw-s2 {
    display: inline-block;
  flex-grow : 0;
  flex-shrink: 0;
}

.works-wrap-inner {
    /*width: 3430px;*/
      display: flex;
    flex-direction: row;
    flex-shrink: 0;
    flex-wrap: nowrap;
    flex-grow: 0;
}

.scroll-w-fill {
  width: 30px; 
  flex-shrink: 0; 
  flex-grow: 0;
}

.no-works {
    color: #070D0B;
    font-weight: 100;
}

#s-3 {
 /*min-height: 500px;*/
  background-color: #404040;
  
  background: rgb(64,64,64);
  /*background: linear-gradient(0deg, rgba(7,13,11,1)  23%, rgba(64,64,64,1) 100%);*/
background: linear-gradient(0deg, rgba(7,13,11,1)  23%, rgba(64,64,64,1) 85%);
      /*padding-top: 150px;*/
  display: flex;
    flex-direction: row;
  flex-wrap: wrap;
    justify-content: space-evenly;
    align-items: center;
}

#s-3 h2 {
    width: 100%;
    z-index: 13;
    font-size: 36px;
    font-weight: 100;
    text-align: right;
    margin-right: 20px;
    margin-bottom: 0;
}

.contacts-wrap {
    margin: 100px auto 50px;
  /*display: inline-flex;*/
  /*flex-direction: column;*/
  text-align: left;
}

.contacts-wrap i {
    text-align: center;
}

.contact-1 {
    border-right: 1px solid #C62828;
    height: 250px;
    margin-top: 100px;
    margin-bottom: 50px;
}

.s-contact {
	position: relative;
    margin: 35px auto;
    font-size: 28px;
    font-weight: 300;
}

.s-contact-name {
	content: 'amministrazione';
	position: absolute;
	font-size: 14px;
	color: #c62828;
	color: white;
	bottom: 0;
	left: 60px;
	border-bottom: 1px solid #c62828;
	padding-left: 5px;
	width: calc(100% - 65px);
	text-align: right;
	user-select: none;
	}


.s-contact i, .contact-info {
    height: 50px;
    line-height: 50px;
  margin: 0 2px;
  border-radius: 2px;
      vertical-align: middle;
}

.s-contact i {
	width: 60px;
    background-color: #C62828;
    height: 60px;
    line-height: 60px;
}

.contact-info {
    display: inline-block;
    padding: 0 15px;
}


.addr-wrap i {
    font-size: 36px;
    color: #C62828;
    margin-left: 10px;
}

.addr-wrap span {
    font-size: 22px;
    font-weight: 300;
}

.addr-wrap h4 {
    margin: 0 0 10px 0;
    text-align: left;
  font-size: 18px;
  font-weight: 300;
  color: #C62828;
}

.addr-wrap {
    margin: 35px 0;
}



.s-c-multi {
    display: flex;
    flex-direction: row;
    align-items: center;
    border: 1px solid #c62828;
    padding: 5px;
    /* width: 80%; */
    margin: 35px auto;
}

.s-c-multi i {
    height: 50px;
    line-height: 50px;
}

.pi-contacts {
    height: 50px;
    flex-shrink: 0;
}

.pi-contacts span {
    height: 50px;
    line-height: 50px;
    display: inline-block;
    vertical-align: top;
    background-color: #C62828;
    padding-right: 10px;
    border-radius: 2px;
    margin-left: -10px;
}

.clear-flex {
    width: 100%;
}

#map-wrap {
  width: 100%;
  height: 600px;
  margin-top: 50px;
  background-image: url('../img/novamg-map.png');
  background-size: cover;
  background-position: center center;
}
.map-frame{
	width: 100%;
	height: 100%;
}
footer {
  width: 100%;
  height: 30px;
  /*background-color: #00010D;*/
  background-color: #070D0B;
  line-height: 30px;
}

footer span {
  color: #88898C;
  font-size: 14px;
  margin-left: 10px;
}


@media screen and (max-width: 1150px) {
 .all-w-desk {
   display: none;
  }
  
  .all-w-mob {
    display: block;
  }
  
  h1 {
    font-size: 18px;
    line-height: 30px;
}

#main-nav a {
    line-height: 30px;
    font-size: 16px;
}

.fx-img {
    background-size: 320px;
}
  
  /*LIGHTYBOX*/
  
  .lightbox-inner {
    overflow-y: scroll;
    flex-direction: column;
	height: 90vh;
}

.lightbox-caption {
    overflow: visible;
}

.lightbox-img, .lightbox-caption {
    width: 100%;
    margin: 10px 0;
}

.lightbox-img {
    min-height: 380px;
}

.lightbox-caption::before, .lightbox-caption::after { display: none; }

.lightbox-caption h4 {margin-top: 5px;text-align: center;border-left: 0;}

.lightbox-caption h4:first-letter {
    color: #C62828;
    font-weight: bold;
    border: 1px solid #C62828;
    padding: 0 2px;
}

.lightbox-txt {
    background-color: #292929;
}



  
}


@media only screen and (max-width: 915px) {
	
	.s-c-multi {
		flex-direction: column;
		margin: 50px auto;
	}
	
	.contacts-group .contact-info {
		display: block;
	}
	
}

@media only screen and (max-width: 770px) {
  
  .works-wrap {
   width: 100%;
  }
  
  #s-3 {
    flex-direction: column;
  }
  
  #s-3 h2 {
    margin-right: 0;
    text-align: center;
}
  
  .contact-1 {
    height: 0;
    width: 55%;
    border-bottom: 1px solid #c62828;
    border-right: 0;
}
  
}



@media only screen and (max-width: 525px) {

/*era 480*/

.contact-info {padding: 0 5px;font-size: 23px;}

.contacts-group .contact-info {
    font-size: 26px;
    letter-spacing: 2px;
}

.contacts-group .contact-info:first-child {
    border-bottom: 1px solid #c62828;
}

.contacts-group .contact-info:last-child {
    border-top: 1px solid #c62828;
}

.contacts-wrap {
    /* text-align: center; */
}

.addr-wrap {
    text-align: center;
}

.addr-wrap h4 {
    text-align: center;
}

.addr-wrap span {
    margin: 10px auto;
    font-size: 18px;
}

.addr-wrap i {
    margin-left: 2px;
}

}


@media only screen and (max-width: 480px) {

#main-nav {
    padding: 10px 5px;
    width: calc(100% - 10px);
}

.text-wrap {
    width: calc(100% - 10px);
    padding: 5px;
    min-width: 280px;
    text-align: center;
    left: 0;
    right: 0;
    margin: auto;
    bottom: 50px;
}

}

@media only screen and (max-width: 420px) {

.header-top::before {content: '=';font-size: 28px;line-height: 26px;height: 30px;position: absolute;left: 10px;width: 30px;text-align: center;top: 5px;margin: auto;background-color: rgba(0,0,0,.6);border-radius: 5px;}

.addr-wrap i {
    width: 100%;
    margin-top: 10px;
}

h1 {
    width: 100%;
    display: block;
    text-align: center;
    line-height: unset;
    /* font-size: 15px; */
    margin: auto;
}

#main-nav {
    flex-direction: column;
    text-align: center;
}

.header-top {
    height: 40px;
    overflow: hidden;
}

#main-nav ul {
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin-top: 10px;
    text-align: center;
    /*border-bottom: 2px solid #c62828;*/
    width: 100%;
}

.header-top:hover {
    height: 200px;
    overflow: visible;
}

.header-top {
    background-color: rgba(0,0,0,.8);
}

#main-nav li {
    display: block;
    margin: 5px 50px;
}

#main-nav li:first-child {
    border-bottom: 1px solid white;
    margin-top: 10px;
    padding: 5px 0 10px 0;
}

#main-nav li:last-child {
    border-top: 1px solid white;
    padding: 10px 0 5px 0;
}

}