/*
Theme Name: MariottieFerrario
Text Domain: Mariotti e Ferrario
Version: 1.1
Description: Custom theme made for Mariotti e Ferrario
Tags: tipografia, stampa
Author: Stefano Schinetti e Giacomo Mantegazza
*/
:root {
  --color-sand: #f3eee8;
  --color-dark: #34342e;
  --color-orange: #ffce93;
  --text-par: "Arimo", sans-serif;
  --text-100: 100;
  --text-200: 200;
  --text-300: 300;
  --text-400: 400;
  --text-500: 500;
  --text-600: 600;
  --em-05: 0.5em;
  --em-1: 1em;
  --em-2: 2em;
  --em-3: 3em;
  --em-4: 4em;
  --em-5: 5em;
}
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-thumb {
  background-color: var(--color-sand);
}
::-webkit-scrollbar-thumb:hover {
  background-color: var(--color-orange);
}
::-webkit-scrollbar-track {
  background-color: var(--color-dark);
}
::selection {
  background-color: white;
  color: black;
}
body {
  font-family: var(--text-par);
  font-weight: var(--text-400);
  line-height: 1.6;
  font-weight: 500;
  font-size: 18px;
  background-color: var(--color-sand);
  color: var(--color-dark);
  margin: 0;
  transition: all 0.5s ease-in-out;
  scroll-behavior: smooth;
  overflow-x: hidden;
}
p {
  font-size: 1.2rem;
}
h1,
h2,
h3,
h4,
h5,
h6 {
  margin-top: 0px;
  margin-bottom: 0px;
  text-transform: uppercase;
}
h1 {
  font-size: 9rem;
  font-weight: var(--text-500);
  line-height: 0.8;
  letter-spacing: -0.04rem;
}
h2 {
  font-size: 4.8rem;
  font-weight: var(--text-500);
  line-height: 0.9;
  letter-spacing: 0rem;
}
h3 {
  font-size: 3.5rem;
  font-weight: var(--text-400);
  line-height: 1.2;
  letter-spacing: 0.04rem;
}
footer {
  padding: 2em 0;
  margin: 15em 0 0 0;
}
footer .copy {
  border-top: 2px solid var(--color-dark);
}
/*
  UTILS
 */
.bg-dark {
  background-color: var(--color-dark);
}
.text-sand {
  color: var(--color-sand);
}
.bg-image-title {
  background: url("./../assets/images/home/Typo-0341.JPG");
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center center;
  height: 125px;
  width: 350px;
  border-radius: 140px;
  margin-bottom: 5px;
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.5s cubic-bezier(0.075, 0.82, 0.165, 1);
}
a:hover {
  color: inherit;
  opacity: 0.6;
  transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
}

header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
}
nav {
  display: flex;
  flex-wrap: nowrap;
  padding: 1em 0;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}
section {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 5em 0;
  margin: 5em 0;
}
section > .container {
  margin: auto !important;
}

.loading {
  position: fixed;
  display: flex;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: var(--color-dark);
  overflow: hidden;
  z-index: 100000;
}

.loading-image {
  width: auto;
  height: 50px;
  margin: auto;
}

progress {
  position: fixed;
  top: 0;
  left: 0;
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 10px;
  border: none;
  background: transparent;
  z-index: 100001;
}
progress::-webkit-progress-bar {
  background: transparent;
}
progress::-webkit-progress-value {
  background: var(--color-sand);
  background-attachment: fixed;
}

main {
  margin: 10em 0 0 0;
  position: relative;
}
.btn {
  display: inline-block;
  position: relative;
  padding: var(--em-1) var(--em-2);
  margin: 0;
  font-weight: 500;
  text-transform: uppercase;
}
.btn-outline {
  border-radius: 144px;
  border: 2px solid var(--color-dark);
  color: var(--color-dark);
}
.btn__round {
  border-radius: 100%;
  padding: 75px 50px;
}
.custom-logo {
  height: 40px;
  width: auto;
}
.nav-footer {
  height: 60px;
  max-width: 100%;
}
.title {
  margin: var(--em-1) 0;
}
.subtitle {
  padding: 0;
  font-size: 1.1em;
  line-height: 1.6;
  text-transform: none;
}
.toptitle {
  font-size: 1em;
  font-weight: 600;
  letter-spacing: 2px;
}
.entry-image {
  margin: var(--em-1) auto;
}
.intro .title {
  margin: 0 auto 0 auto;
}
.flex {
  display: flex;
}
.fluid {
  height: auto;
  max-width: 100%;
}
.img-grid {
  display: flex;
  flex-wrap: wrap;
}
.img-luminosity {
  mix-blend-mode: luminosity;
}
.swiper-slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.img-grid .mySwiper,
.swiper-wrapper {
  padding: var(--em-2);
  margin: auto;
}
.configurator .img-grid .swiper#img1 {
  max-height: 250px;
  max-width: 250px;
  margin-top: 200px;
}
.configurator .img-grid .swiper#img2 {
  max-height: 450px;
  max-width: 450px;
  margin-bottom: 50px;
}
.configurator .img-grid .swiper#img3 {
  max-height: 300px;
  max-width: 300px;
  margin-top: 200px;
}
.configurator .img-grid .swiper#img4 {
  max-height: 400px;
  max-width: 400px;
}
.configurator .img-grid .swiper#img5 {
  max-height: 550px;
  max-width: 550px;
}
.configurator .img-grid .swiper#img6 {
  max-height: 350px;
  max-width: 350px;
}
.configurator .img-grid .swiper#img7 {
  max-height: 450px;
  max-width: 450px;
}
.img__preview {
  max-height: 150px !important;
  padding: 0px !important;
}
.img-thumbnail {
  max-height: 60px;
  border: none;
  border-radius: 0;
  padding: 0;
}
.featured-product:nth-child(1) {
  height: 400px;
}
.featured-product:nth-child(2) {
  height: 250px;
}
.featured-product:nth-child(3) {
  height: 550px;
  margin-left: auto;
  margin-top: 100px;
}
.featured-product:nth-child(4) {
  height: 300px;
  margin-top: 400px;
}
.featured-product:nth-child(5) {
  height: 500px;
  margin-left: auto;
}
.box-medium {
  margin: 5em;
}
.align-center {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.is-full {
  min-height: 100vh;
  width: 100%;
}
.products {
  display: flex;
  align-items: center;
}
.products-list {
  display: flex;
  flex-direction: column;
  width: 100%;
  margin: var(--em-5) 0;
}
.product {
  cursor: pointer;
  padding: var(--em-05) 0;
  border-radius: 0;
  border-top: 2px solid var(--color-sand);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.product:nth-last-child(1) {
  border-bottom: 2px solid var(--color-sand);
}
.configurator .entry-description {
  display: flex;
  align-items: flex-end;
}
.configurator .entry-description div {
  padding-right: var(--em-3);
}
.configurator .entry-description div:first-child {
  padding-right: 0;
}
.configurator .description > div {
  padding: var(--em-2) 0 0 0;
}
.configurator .title {
  padding-right: var(--em-3);
}
.swiper-intro {
  display: flex;
  align-items: center;
  position: relative;
}
.move {
  margin-left: 50px;
  transition: 0.2s;
}
/* description above title */
.about .entry-description {
  display: flex;
  align-items: center;
}
.about .entry-description div:first-child {
  padding-right: var(--em-3);
}
.category-link a {
  position: relative;
  text-decoration: none;
  color: var(--color-dark);
}
.category-link a:nth-child(odd) {
  color: var(--color-orange);
}
.category-link a:hover {
  color: white;
  transition: all 0.3s ease;
  padding-right: 20px;
}
.category-link a:hover:after {
  content: "";
  background: url("./icons/arrow.svg") no-repeat;
  height: 50px;
  width: 50px;
  position: absolute;
  top: 10;
  right: -20;
}
.category-link a:nth-child(odd):hover {
  color: white;
  transition: all 0.3s ease;
}
.products-list .product {
  position: relative;
}
.products-list .product:hover {
  padding-right: 50px;
  transition: all 0.5s cubic-bezier(0.215, 0.61, 0.355, 1);
}
.products-list .product:hover:after {
  transition: all 0.5s cubic-bezier(0.075, 0.82, 0.165, 1);
  content: "";
  position: absolute;
  top: 0;
  right: -20;
}

.contacts a {
  padding: 4rem 2rem;
  border-top: 2px solid var(--color-dark);
  display: block;
}
.contacts a:last-child {
  border-bottom: 2px solid var(--color-dark);
}
.contacts a:hover {
  background-color: var(--color-dark);
  color: var(--color-sand);
}

/*
 * FIX WordPress style
*/
.navbar {
  padding: 1rem 0;
}
.main-menu .menu-item {
  padding: 2rem 0;
  text-transform: uppercase;
  font-weight: 600;
  font-size: 2rem;
  position: relative;
  display: inline-block;
}

.menu-products-container ul {
  font-size: 3rem;
  display: flex;
  flex-wrap: wrap;
}
.menu-products-container li {
  list-style-type: none;
  padding-right: 2rem;
}

.sub-menu {
  display: none;
  flex-direction: column;
  position: relative;
  z-index: 1;
}
.sub-menu .menu-item {
  margin: 0;
  padding: 5px 0;
  font-size: 1rem;
}

.menu-main-container {
  display: flex;
  margin: auto;
  flex-direction: column;
  align-items: center;
  position: relative;
}

.main-menu {
  display: flex;
  flex-direction: column;
  text-align: center;
  padding: 0;
  margin: 0;
}

.sub-menu.active {
  display: flex;
  margin-top: 3rem;
  padding: 0;
  max-height: 400px;
  overflow-y: scroll;
}

.sub-menu a {
  text-decoration: none;
  display: block;
}
.open-overlay {
  font-weight: 600;
  letter-spacing: 4px;
  font-size: 1rem;
}
.menu-overlay {
  position: fixed;
  display: none;
  inset: 0;
  width: 100vw;
  height: 100vh;
  background-color: var(--color-dark);
  overflow-x: hidden;
  overflow-y: scroll;
  z-index: 100000;
}
.menu-overlay a {
  color: var(--color-sand);
}
.close-overlay {
  position: absolute;
  top: 25px;
  right: 50px;
}

.close {
  box-sizing: content-box;
  width: 1em;
  height: 1em;
  background: transparent
    url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' version='1.1' width='256' height='256' viewBox='0 0 256 256' xml:space='preserve'%3e%3cdefs%3e%3c/defs%3e%3cg style='stroke: none; stroke-width: 0; stroke-dasharray: none; stroke-linecap: butt; stroke-linejoin: miter; stroke-miterlimit: 10; fill: none; fill-rule: nonzero; opacity: 1;' transform='translate(1.4065934065934016 1.4065934065934016) scale(2.81 2.81)'%3e%3crect x='-8.54' y='34.9' rx='0' ry='0' width='107.09' height='20.19' style='stroke: none; stroke-width: 1; stroke-dasharray: none; stroke-linecap: butt; stroke-linejoin: miter; stroke-miterlimit: 10; fill: rgb(256,256,256); fill-rule: nonzero; opacity: 1;' transform='matrix(0.7071 -0.7071 0.7071 0.7071 -18.6396 45)'/%3e%3crect x='34.9' y='-8.54' rx='0' ry='0' width='20.19' height='107.09' style='stroke: none; stroke-width: 1; stroke-dasharray: none; stroke-linecap: butt; stroke-linejoin: miter; stroke-miterlimit: 10; fill: rgb(256,256,256); fill-rule: nonzero; opacity: 1;' transform='matrix(0.7071 -0.7071 0.7071 0.7071 -18.6396 45)'/%3e%3c/g%3e%3c/svg%3e")
    center/1em auto no-repeat;
  border: 0;
  opacity: 0.8;
}

/* fix wpform */
.wpforms-field-row,
div.wpforms-container-full .wpforms-form .choices .choices__inner,
.choices__list .choices__list--dropdown {
  border: 0;
  border-radius: 0;
}
input,
textarea {
  border: 0 !important;
}
.wpforms-page-button {
  background-color: white !important;
  border: 0 !important;
  padding: 20px 40px !important;
  font-weight: 600 !important;
}
div.wpforms-container div.wpforms-uploader {
  border: 2px dashed var(--color-sand) !important;
  border-radius: 0 !important;
}

/* SM */
@media screen and (max-width: 576px) {
  h1 {
    font-size: 3.6rem;
  }
  h2 {
    font-size: 1.6rem;
  }
  .menu-products-container ul,
  h3 {
    font-size: 1.4rem;
  }
  footer {
    text-align: center;
  }
  body,
  p {
    font-size: 1rem;
  }
}

/* MD */
@media (min-width: 577px) and (max-width: 767px) {
  h1 {
    font-size: 4.8rem;
  }
  h2 {
    font-size: 2.8rem;
  }
  .menu-products-container ul,
  h3 {
    font-size: 1.8rem;
  }
}

/* LG */
@media (min-width: 768px) and (max-width: 1199px) {
  h1 {
    font-size: 6.6rem;
  }
  h2 {
    font-size: 4.6rem;
  }
  .menu-products-container ul,
  h3 {
    font-size: 3.6rem;
  }
}

/* XL */
@media (min-width: 1200px) {
  .container {
    max-width: 1166px;
  }
  .swiper-intro {
    display: flex;
    align-items: center;
    position: sticky;
    top: 0;
    height: 100vh;
  }
}

/* XXL */
@media (min-width: 1400px) {
  .container {
    max-width: 1366px;
  }
}

/* XXXL */
@media (min-width: 1600px) {
  .container {
    max-width: 1666px;
  }
}
