:root {
    --primary-color: #F9D500;
    --secondary-color: #2BA8EF;
    --dark-color: #000;
    --light-color: #fff;
}

html {
    font-family: "century-gothic", sans-serif;
    font-size: 16px;
    background: var(--dark-color);
    padding: 2rem;
}

body {
    font-size: .8rem;
    line-height: 132%;
    color: var(--light-color);
    text-rendering: geometricPrecision;
}


body:before,
body:after {
  content: "";
  display: block;
  position: fixed;
  z-index: 999999;
  border: 1px solid var(--light-color);
  top: .5rem;
  left: .5rem;
  right: .5rem;
  bottom: .5rem;
  pointer-events: none;
}

body:after {
  border: none;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 22.4%, #000000 75.52%);
  top: auto;
  bottom: 0;
  height: 7rem;
  z-index: 998;
}

@media (min-width: 450px) {
  body {
    font-size: 1rem;
  }
}

* {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  box-sizing: border-box;
  outline: none;
}

p {
  margin: 0 0 1rem 0;
}

.bar,
.bar_s {
    background: var(--primary-color);
    height: 1px;
    width: 2rem;
    margin-top: 6px;
}

.bar_s {
    width: 24px;
}

img {
  max-width: 100%;
  height: auto;
}

ul{
  padding-left: 1rem;
}

ul li::marker{
  color: var(--primary-color);
}

.header--restauro .slick-slide,
.header--gallery .slick-slide {
    padding: 0 1rem;
}

.header--gallery::after,
.header--gallery::before,
.header--restauro::before,
.header--restauro::after {
    content: "";
    display: block;
    position: absolute;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0) 22.4%, #000 75.52%);
    bottom: 1.5rem;
    right: 0;
    height: 2rem;
    z-index: 995;
    width: 4rem;
    pointer-events: none;
}

.header--gallery::before,
.header--restauro::before {
  background: linear-gradient(-90deg, rgba(0, 0, 0, 0) 22.4%, #000 75.52%);
  right: auto;
  left: -1px;
}

.header--restauro li,
.header--gallery li {
  position: relative;
  margin-bottom: 1rem;
}

/* CAROUSEL SMALL */

.carousel--small {
  margin-left: -2rem;
  margin-right: -2rem;
}

.about-title,
.title {
  width: 100%;
  display: block;
  font-size: 2rem;
  font-weight: 400;
  margin-bottom: 6rem;
}

.about-title {
  margin-bottom: 2rem;
}

.carousel--small .slick-list{
  padding: 0 !important;
}

.carousel--small .slick-dots li{
  margin: 0;
  z-index: 3;
}

.slick-dots button:before{
  color: #2BA8EF !important;
  font-size: 8px !important;
}

.slick-dots li.slick-active button:before{
  opacity: 1 !important;
}

.carousel--small::after {
    content: "";
    display: block;
    position: absolute;
    /*background: linear-gradient(180deg, rgba(0, 0, 0, 0) 22.4%, #000000 75.52%);*/
    bottom: 0;
    right: 0;
    height: 8rem;
    z-index: 2;
    width: 100%;
    pointer-events: none;
}

.carousel--small .slick-slide {
  height: 48vh;
}

.carousel--small .slick-dots{
  bottom: 1.25rem;
}

.carousel--small img {
  object-fit: contain;
}

.carousel--contatti .slick-slide {
  height: 40vh;
}

.carousel--restauro .slick-slide {
  height: 50vh;
}

.carousel-home .slick-dots,
.carousel--contatti .slick-dots,
.carousel--restauro .slick-dots{
  bottom: -2rem;
}

.carousel--contatti::after,
.carousel--restauro::after {
  content: "";
  height: 0;
}

.header-main {
    position: fixed;
    background: var(--dark-color);
    top: 0;
    left: 0;
    right: 0;
    z-index: 99;
}

.header--wrapper {
  z-index: 999;
}

.header--wrapper-desktop {
  display: none;
}

.header--offcanvas {
  margin-bottom: 3rem;
  padding: 2rem 2rem 0;
}


/* OFFCANVAS */
.offcanvas {
  bottom: 0;
  left: 0;
  position: fixed;
  top: 0;
  margin: 0;
  padding: 0;
  margin-top: 10vh;
  width: 100vw;
  flex-direction: column;
  transform: translateX(100%);
  background: var(--dark-color);
  transition: all 0.3s ease;
}

.offcanvas li {
  list-style: none;
}

.offcanvas li a {
  text-decoration: none;
  color: var(--light-color);
  font-size: calc(1rem + 2vw);
}

.show{
  transform: translateX(0%);
}

.divider {
  height: 3px;
  width: 11.25rem;
}

.menu-item {
  margin-top: 1rem;
  margin-bottom: 1rem;
}

.menu-item a {
  text-transform: uppercase;
  font-size: 1.5rem;
}

.menu-item a span{
  font-size: 0.8rem;
  vertical-align: super;
  color: var(--primary-color);
  font-weight: 600;
  font-style: italic;
}

.loader{
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 999999;
  background: #000 url("../img/loader.gif") center center no-repeat;
  background-size: 32px 32px;
}


.menu-item .active{
  color: var(--primary-color);
}

.social-title {
  margin-bottom: 1rem;
  margin-top: calc(3.5rem + 1.5vw);
}

.social {
  width: 5rem;
}

.piva {
  position: absolute;
  bottom: 1.5rem;
}


/* GALLERY */

.disable{
  display: none;
  visibility: hidden;
}

.single-gallery {
  overflow: hidden;
  height: 0;
}

.showGallery {
  overflow: visible;
  height: auto;
}

.carpets-list {
  margin-top: 9rem;
}

.section__home,
.section__about,
.section__restauro,
.section__contatti,
.section__404 {
  margin-top: 6rem;
}

.restauro--block{
  position: relative;
}

.restauro--rilanatura{
  padding-bottom: 1px;
}

.restauro--subtitle{
  color: #fff;
  position: absolute;
  text-align: center;
  line-height: 120%;
  bottom: 0;
  left: 50%;
  transform: translate(-50%);
}

.carpet {
  margin-bottom: 4rem;
}

.carpet header {
  text-align: center;
}

.carpet h1 {
  margin-bottom: .25rem;
}

.carpet p {
  margin-bottom: .5rem;
}

.slick-list a{
  font-size: .875rem;
  color: var(--light-color);
  text-decoration: none;
}

.carpet a,
.slick-current > a{
  color: var(--primary-color);
  text-decoration: none;
}

.gallery .slick-current:after,
.restauro .header-main .slick-current:after {
  content: "";
  display: block;
  position: absolute;
  background: var(--primary-color);
  height: 6px;
  width: 6px;
  z-index: 9999999;
  border-radius: 0.5rem;
  border: 1px solid var(--primary-color);
  top: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  pointer-events: none;
}

img {
    object-fit: contain;
    height: 100%;
    width: 100%;
}

h1 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: .75rem;
}

p {
  font-size: .8rem;
  font-weight: 400;
}

a {
  font-weight: 700;
  color: var(--primary-color);
  text-decoration: none;
}

.abstract{
  margin-bottom: 3rem;
}

.slick-slide {
  display: flex;
  justify-content: center;
}

/*LAVAGGIO*/

.wrapper-image {
  margin-left: -2rem;
  margin-right: -2rem;
}




/*------------ SCHERMI PIÙ PICCOLI -------------*/
@media (max-height: 670px){
  .offcanvas li a {
    font-size: calc(0.9rem + 0.9vw);
  }

  .menu-item {
    margin-top: 0.7rem;
    margin-bottom: 0.7rem;
  }

  .social-title {
    margin-bottom: 1rem;
    margin-top: calc(1rem + 1.5vw);
  }

  .offcanvas{
    margin-top: 15vh;
  }
}

@media (max-aspect-ratio: 16/7) AND (orientation: landscape) AND (max-width: 850px){
  body{
    display: none !important;
  }
  html{
    height: 100%;
    background: #000 url("../img/rotate_phone.svg") center center no-repeat;
  }
}
