:root {
  --mao-color-text: #555;
  --mao-color-title: #1a1a1a;
  --mao-color-primary: #1f6faa;
}

/*-------------
    Basic
--------------*/

body {
  color: var(--mao-color-text);
  font-family: sans-serif;
  background-color: #fff;
}

h1,
h2,
h3,
h4,
h5,
h6,
.h1,
.h2,
.h3,
.h4,
.h5,
.h6,
.block-title {
  color: var(--mao-color-title);
  font-family: "Roboto", sans-serif;
  font-weight: 400;
}

a {
  color: var(--mao-color-primary);
  text-decoration: none;
  transition: all 0.3s linear;
  -webkit-transition: all 0.3s linear;
  -moz-transition: all 0.3s linear;
  -o-transition: all 0.3s linear;
  -ms-transition: all 0.3s linear;
}

a:hover,
a:focus {
  color: #778899;
}

strong {
  color: #333;
}

ul li svg {
  vertical-align: middle;
}

li::marker {
  color: var(--mao-color-primary);
  font-size: 1.3rem;
}

embed,
iframe,
object {
  max-width: 100%;
  width: 100%;
}

/*-------------
    Generic
--------------*/

.margin-top {
  margin-top: 4rem !important;
}

.margin-bottom {
  margin-bottom: 4rem !important;
}

.no-margin-top {
  margin-top: 0 !important;
}

.no-margin-bottom {
  margin-bottom: 0 !important;
}

.no-padding-top {
  padding-top: 0 !important;
}

.no-padding-bottom {
  padding-bottom: 0 !important;
}

/* blockquote */
blockquote {
  background: #f9f9f9;
  font-style: italic;
  border-left: 0.6rem solid var(--mao-color-primary);
  padding: 1.5rem 1.7rem 0.3rem;
  margin: 1rem 0 2rem;
  quotes: "\201C""\201D""\2018""\2019";
}

/* block heading */
.block-heading {
  position: relative;
  margin-bottom: 1.6rem;
}

.block-heading.is-dots {
  padding-bottom: 1.3rem;
}

.block-heading.is-dots::before {
  content: "";
  position: absolute;
  left: 1px;
  bottom: 0;
  width: 4rem;
  border-bottom: 2px dotted var(--mao-color-primary);
}

.block-heading.is-dots.is-center::before {
  left: 50%;
  -webkit-transform: translateX(-50%);
  -ms-transform: translateX(-50%);
  transform: translateX(-50%);
}

.block-heading.is-center {
  text-align: center;
}

.title-heading {
  margin-bottom: 0;
}

.title-heading-small {
  font-size: 1rem;
  font-weight: 600;
  color: var(--mao-color-primary);
  display: inline-block;
  margin-bottom: 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

@media (max-width: 767.98px) {
  .title-heading-small {
    font-size: 0.8rem;
  }
}

/* btn-mao-dark */
.btn-mao {
  border-radius: 0;
  position: relative;
  text-transform: uppercase;
  font-size: 0.8rem;
  padding: 0.8rem 2rem;
}

.btn-mao::before,
.btn-mao::after {
  content: "";
  position: absolute;
  transition: all 0.3s linear;
  -webkit-transition: all 0.3s linear;
  -moz-transition: all 0.3s linear;
  -o-transition: all 0.3s linear;
  -ms-transition: all 0.3s linear;
}

.btn-mao:hover::before,
.btn-mao:active::before,
.btn-mao:focus::before {
  width: 0;
}

.btn-mao:hover::after,
.btn-mao:active::after,
.btn-mao:focus::after {
  height: 0;
}

.btn-mao::before {
  width: calc(100% + 2px);
  height: 1px;
  bottom: -6px;
  left: 10px;
}

.btn-mao::after {
  width: 1px;
  height: calc(100% + 2px);
  top: 10px;
  right: -6px;
}

.btn-mao:focus {
  box-shadow: 0 0 0 0.25rem rgb(26 26 26 / 25%);
}

.btn-mao-dark {
  border: 1px solid var(--mao-color-primary);
  color: #fff;
  background-color: var(--mao-color-primary);
}

.btn-mao-dark::before,
.btn-mao-dark::after {
  background-color: var(--mao-color-primary);
}

.btn-mao-dark:hover,
.btn-mao-dark:focus {
  background-color: #778899;
  border: 1px solid #778899;
  color: #fff;
}

.btn-mao-light {
  border: 1px solid var(--mao-color-primary);
  color: var(--mao-color-primary);
  background-color: #fff;
}

.btn-mao-light::before,
.btn-mao-light::after {
  background-color: var(--mao-color-primary);
}

.btn-mao-light:hover,
.btn-mao-light:focus {
  background-color: #778899;
  border: 1px solid #778899;
  color: #fff;
}

.btn-mao.btn-mao-noborder::before,
.btn-mao.btn-mao-noborder::after {
  content: none;
}

/* Hover block effects */
.hover-block {
  position: relative;
}

.hover-block img {
  -webkit-transition: all 0.5s ease;
  -moz-transition: all 0.5s ease;
  -ms-transition: all 0.5s ease;
  -o-transition: all 0.5s ease;
  transition: all 0.5s ease;
}

.hover-block .hover-content {
  background-attachment: scroll;
  background-color: rgb(135 206 250 / 0.6);
  background-image: none;
  background-position: 0 0;
  background-repeat: repeat;
  background-size: auto auto;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  opacity: 0;
  overflow: hidden;
  position: absolute;
  text-align: center;
  -moz-transition: all 0.3s ease 0s;
  -webkit-transition: all 0.3s ease 0s;
  -o-transition: all 0.3s ease 0s;
  -ms-transition: all 0.3s ease 0s;
  transition: all 0.3s ease 0s;
}

.hover-block:hover .hover-content {
  opacity: 1;
}

.hover-block .hover-wrap {
  left: 50%;
  top: 50%;
  width: 90%;
  margin: auto;
  position: absolute;
  transform: translate(-50%, -50%);
  -ms-transform: translate(-50%, -50%);
  -moz-transform: translate(-50%, -50%);
  -webkit-transform: translate(-50%, -50%);
  -o-transform: translate(-50%, -50%);
}

.hover-block .hover-icon {
  display: block;
  margin: 0 auto;
  padding: 0;
  text-align: center;
  transform: translateY(-8em);
  -ms-transform: translateY(-8em);
  -moz-transform: translateY(-8em);
  -webkit-transform: translateY(-8em);
  -o-transform: translateY(-8em);
  -moz-transition: all 0.5s ease 0s;
  -webkit-transition: all 0.5s ease 0s;
  -o-transition: all 0.5s ease 0s;
  -ms-transition: all 0.5s ease 0s;
  transition: all 0.5s ease 0s;
}

.hover-block:hover .hover-icon {
  transform: translateY(0px);
  -ms-transform: translateY(0px);
  -moz-transform: translateY(0px);
  -webkit-transform: translateY(0px);
  -o-transform: translateY(0px);
}

.hover-block .hover-icon .icon-svg {
  color: #fff;
  font-size: 2.3rem;
}

/*-------------
    Header
--------------*/

#header {
  background-color: #fff;
  text-align: center;
  padding: 0.3rem 0;
  -moz-box-shadow: 0 3px 3px rgb(26 26 26 / 30%);
  -webkit-box-shadow: 0 3px 3px rgb(26 26 26 / 30%);
  box-shadow: 0 3px 3px rgb(26 26 26 / 30%);
}

/* header info */
#header-info {
  background-color: #778899;
  padding: 0.5rem 0;
  text-align: center;
}

#header-info a {
  color: #fff;
  margin-right: 0.5rem;
}

#header-info a:hover,
#header-info a:focus,
#header-info a:active {
  color: var(--mao-color-primary);
}

#header-info ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

#header-info ul li:last-of-type a {
  margin-right: 0;
}

#header-info ul .icon-svg {
  font-size: 1.2rem;
}

/* logo */
#header-logo {
  position: relative;
  text-align: left;
}

#header-logo img,
#header-logo svg {
  max-height: 75px;
  width: auto;
}

@media (max-width: 991.98px) {
  #header-logo img,
  #header-logo svg {
    max-height: 60px;
  }
}

@media (min-width: 992px) and (max-width: 1199.98px) {
  #header-logo img,
  #header-logo svg {
    max-height: 68px;
  }
}

/* contacts */
#contacts-header ul {
  text-align: left;
}

@media (max-width: 991.98px) {
  #contacts-header ul li .no-mobile {
    display: none;
  }
}

@media (min-width: 992px) {
  #contacts-header ul li .icon-svg {
    margin-right: 0.3rem;
  }
}

/* socials */
#socials-header ul {
  text-align: right;
}

/*-------------
    Hero backgroung images
--------------*/
/* with background */
#hero {
  padding: 0;
  text-align: center;
  background-repeat: no-repeat;
  background-position: center center;
  -webkit-background-size: cover;
  -moz-background-size: cover;
  -o-background-size: cover;
  background-size: cover;
}

#hero .hero-overlay {
  width: 100%;
  position: relative;
  top: 0;
  left: 0;
  padding: 12rem 0 2rem;
  /*background-color: rgb(26,26,26,.3);*/
  background: linear-gradient(
    rgb(26 26 26 / 0) 0%,
    rgb(26 26 26) 125%,
    rgb(26 26 26) 100%
  );
  background-size: cover;
  background-position: center 20%;
  overflow: hidden;
  z-index: 1;
}

.hero-title {
  color: #fff;
  text-align: center;
  margin: 0;
  padding: 0;
}

#hero.hero-with-background.parco-macchine {
  background-image: url("../images/hero-images/parco-macchine.webp");
}
#hero.hero-with-background.lavorazioni-meccaniche {
  background-image: url("../images/hero-images/lavorazioni-meccaniche.webp");
}
#hero.hero-with-background.contatti {
  background-image: url("../images/hero-images/contatti.webp");
}
#hero.hero-with-background.privacy {
  background-image: url("../images/hero-images/privacy.webp");
}

@media (max-width: 575.98px) {
  #hero.hero-with-background.parco-macchine {
    background-image: url("../images/hero-images/parco-macchine-mob.webp");
  }
  #hero.hero-with-background.lavorazioni-meccaniche {
    background-image: url("../images/hero-images/lavorazioni-meccaniche-mob.webp");
  }
  #hero.hero-with-background.contatti {
    background-image: url("../images/hero-images/contatti-mob.webp");
  }
  #hero.hero-with-background.privacy {
    background-image: url("../images/hero-images/privacy-mob.webp");
  }
}

@media (max-width: 767.98px) {
  #hero .hero-overlay {
    padding-top: 10rem;
  }
}

@media (min-width: 768px) and (max-width: 991.98px) {
  #hero .hero-overlay {
    padding-top: 11rem;
  }
}

/*-------------
  Main, sidebar and section
--------------*/

#main {
  padding-top: 6rem;
  padding-bottom: 6rem;
}

.section {
  padding-top: 5rem;
  padding-bottom: 5rem;
}

#sidebar {
  padding-top: 6rem;
}

@media (max-width: 991.98px) {
  #main {
    padding-top: 5rem;
    padding-bottom: 5rem;
  }

  .section {
    padding-top: 4rem;
    padding-bottom: 4rem;
  }

  #sidebar {
    display: none;
  }
}

@media (max-width: 575.98px) {
  #main {
    padding-top: 4rem;
    padding-bottom: 4rem;
  }
}

@media (min-width: 1200px) {
  #main,
  #sidebar {
    font-size: 1.1rem;
    line-height: 1.8rem;
  }
}

/*-------------
    Articles
--------------*/

/* Generic article */
.top-position {
  margin-top: 4rem;
}

.bottom-position {
  margin-bottom: 4rem;
}

/* Article with text */
.article-text h2,
.article-text h3 {
  margin-top: 2rem;
}

/* Article with images */
.article-with-image .article-with-image-desc p {
  margin-bottom: 0;
}

.article-with-image .title-heading {
  font-size: 2rem;
  line-height: 2.5rem;
}

@media (max-width: 991.98px) {
  .article-with-image .article-with-image-image {
    margin-bottom: 3rem;
    text-align: center;
  }

  .article-with-image .block-heading.is-dots::before {
    left: 50%;
    -webkit-transform: translateX(-50%);
    -ms-transform: translateX(-50%);
    transform: translateX(-50%);
  }

  .article-with-image .block-heading {
    text-align: center;
  }
}

@media (min-width: 992px) {
  .article-with-image {
    margin-bottom: 2rem;
  }
}

@media (min-width: 1200px) {
  .article-with-image .article-with-image-image {
    margin-right: 1rem;
  }

  .article-with-image .order-lg-last .article-with-image-image {
    margin-right: 0;
    margin-left: 1rem;
  }
}

/*-------------
    Motto
--------------*/

.motto {
  background-color: #f5f5f5;
  margin: 0;
  padding-top: 4rem;
  padding-bottom: 4rem;
}

.motto .motto-text {
  text-align: center;
}

.motto .motto-text p {
  font-style: italic;
  margin-bottom: 0;
}

.motto.call-to-action {
  background-color: #778899;
  padding: 4rem 0;
}

.motto.call-to-action .title-heading,
.motto.call-to-action .motto-text p {
  color: #fff;
}

.motto.call-to-action .motto-text strong {
  color: #bbb;
}

.motto.call-to-action .btn-mao-dark:hover,
.motto.call-to-action .btn-mao-dark:focus {
  background-color: #fff;
  color: var(--mao-color-primary);
  border: 1px solid #fff;
}

.motto-button .block-heading {
  margin-bottom: 0.5rem;
}

.motto-onephrase .motto-text {
  font-size: 1.7rem;
  line-height: 2.5rem;
  margin-bottom: 0;
}

.motto-background {
  color: #fff;
  margin: 8rem 0;
  padding: 9rem 0;
  background-color: #fff;
  background-attachment: fixed;
  background-repeat: no-repeat;
  background-position: center center;
  -webkit-background-size: cover;
  -moz-background-size: cover;
  -o-background-size: cover;
  background-size: cover;
}

.motto-background .title-heading {
  color: #fff;
}

@media (max-width: 991.98px) {
  .motto {
    padding-top: 3rem;
    padding-bottom: 3rem;
  }

  .motto-button {
    text-align: center;
  }

  .motto-button .motto-text {
    margin-bottom: 2rem;
  }

  .motto-background {
    margin: 6rem 0;
    padding: 6rem 0;
  }

  .motto.call-to-action {
    padding: 3rem 0;
  }
}

@media (min-width: 1200px) {
  .motto .motto-text {
    font-size: 1.2rem;
    line-height: 1.8rem;
  }
}

.home-motto .title-heading {
  color: var(--mao-color-primary);
}

/*-------------
    Services
--------------*/

#services {
  padding-top: 6rem;
}

#services .block-heading {
  margin-bottom: 3rem;
}

.service-block {
  text-align: center;
  margin-bottom: 2rem;
  transition: all 0.3s linear;
  -webkit-transition: all 0.3s linear;
  -moz-transition: all 0.3s linear;
  -o-transition: all 0.3s linear;
  -ms-transition: all 0.3s linear;
}

.service-block .service-image {
  margin-bottom: 0;
}

.service-block .service-text {
  padding: 1rem;
}

.service-block .service-title {
  color: var(--mao-color-primary);
  margin-top: 0.5rem;
}

.service-block .service-title a {
  font-weight: normal !important;
}

.service-block .service-desc {
  margin-bottom: 0;
}

@media (max-width: 767.98px) {
  .service-block:last-of-type {
    margin-bottom: 0;
  }
}

@media (min-width: 768px) and (max-width: 991.98px) {
  .service-block:nth-last-child(-n + 2) {
    margin-bottom: 0;
  }
}

@media (min-width: 992px) {
  .service-block:nth-last-child(-n + 3) {
    margin-bottom: 0;
  }
}

/*-------------
    Machine details
--------------*/

.machine-details .table svg {
  margin-right: 0.5rem;
}

.machine-details .row {
  margin-bottom: 4rem;
}

.machine-details .row:last-of-type {
  margin-bottom: 0;
}

/*-------------
    Footer
--------------*/

#footer {
  color: #7a7a7a;
  padding: 5rem 0 0;
}

#footer-logo-container {
  margin-bottom: 3rem;
}

#footer-logo {
  display: inline-block;
  vertical-align: middle;
  margin: 0 auto;
  text-align: center;
}

#footer-logo img,
#footer-logo svg {
  width: auto;
}

#footer .block-title {
  color: var(--mao-color-title);
  text-align: left;
  margin-bottom: 1rem;
}

#footer ul {
  list-style: none;
  text-align: left;
  padding-left: 0;
  margin-bottom: 0;
}

#footer ul li {
  margin-bottom: 0.5rem;
}

#footer a {
  color: #7a7a7a;
}

#footer ul .active a,
#footer a:hover,
#footer a:focus {
  color: var(--mao-color-primary);
}

#footer ul li .icon-svg {
  color: var(--mao-color-primary);
  font-size: 1.1rem;
  margin-right: 0.2rem;
  vertical-align: middle;
}

#footer ul li .social .icon-svg {
  font-size: 1.5rem;
  margin-right: 0;
}

#footer .mobile-block {
  text-align: center;
  margin-bottom: 2rem;
}

#footer .mobile-last-block {
  margin-bottom: 0;
}

@media (max-width: 767.98px) {
  #footer .block-title,
  #footer ul {
    text-align: center;
  }

  #footer-logo img,
  #footer-logo svg {
    max-width: 100%;
  }
}

@media (min-width: 768px) and (max-width: 991.98px) {
  #footer ul li {
    font-size: 0.9rem;
  }
}

@media (min-width: 1200px) and (max-width: 1399.98px) {
  #footer ul li {
    font-size: 0.9rem;
  }
}

/* Copyright */
#footer-copyright-container {
  margin-top: 1rem;
  padding: 1rem 0;
}

#footer-copyright-container .copyright-block {
  color: #7a7a7a;
  font-size: 90%;
  text-align: center;
}

#footer-copyright-container .copyright-block a {
  color: var(--mao-color-primary);
}

#footer-copyright-container .copyright-block a:hover,
#footer-copyright-container .copyright-block a:focus {
  color: var(--mao-color-title);
}

/*-------------
    Whatsapp contact fixed
--------------*/

@-webkit-keyframes slide-in-bottom {
  0% {
    -webkit-transform: translateY(1000px);
    transform: translateY(1000px);
    opacity: 0;
  }
  100% {
    -webkit-transform: translateY(0);
    transform: translateY(0);
    opacity: 1;
  }
}
@keyframes slide-in-bottom {
  0% {
    -webkit-transform: translateY(1000px);
    transform: translateY(1000px);
    opacity: 0;
  }
  100% {
    -webkit-transform: translateY(0);
    transform: translateY(0);
    opacity: 1;
  }
}

@-webkit-keyframes ring {
  0% {
    width: 54px;
    height: 54px;
    opacity: 1;
  }
  100% {
    width: 80px;
    height: 80px;
    opacity: 0;
  }
}
@keyframes ring {
  0% {
    width: 54px;
    height: 54px;
    opacity: 1;
  }
  100% {
    width: 80px;
    height: 80px;
    opacity: 0;
  }
}

#whatsapp-contact {
  background-color: #2db742;
  position: fixed;
  bottom: 1rem;
  right: 1rem;
  width: 54px;
  height: 54px;
  text-align: center;
  cursor: pointer;
  z-index: 1;
  border-radius: 50px;
  -webkit-animation: slide-in-bottom 1s cubic-bezier(0.25, 0.46, 0.45, 0.94)
    both;
  animation: slide-in-bottom 1s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
}

#whatsapp-contact-container:after {
  content: "";
  width: 80px;
  height: 80px;
  border-radius: 100px;
  -webkit-border-radius: 100px;
  -moz-border-radius: 100px;
  background: -webkit-linear-gradient(
    330deg,
    rgb(255 255 255 / 0) 0%,
    rgb(255 255 255 / 0.2) 100%
  );
  background: linear-gradient(
    120deg,
    rgb(255 255 255 / 0) 0%,
    rgb(255 255 255 / 0.2) 100%
  );
  -moz-box-shadow: 0 0 5px 0 rgb(0 0 0 / 50%);
  -webkit-box-shadow: 0 0 5px 0 rgb(0 0 0 / 50%);
  box-shadow: 0 0 5px 0 rgb(0 0 0 / 50%);
  -webkit-transition: 0.3s all cubic-bezier(0.4, 0, 0.2, 1);
  transition: 0.3s all cubic-bezier(0.4, 0, 0.2, 1);
  position: absolute;
  z-index: -1;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: ring 1.5s infinite;
}

#whatsapp-contact a {
  display: inline-block;
  width: 54px;
  height: 54px;
  line-height: 50px;
}

#whatsapp-contact .icon-svg {
  color: #fff;
  font-size: 40px;
}

@media (max-width: 991.98px) {
  #whatsapp-contact {
    bottom: 0.7rem;
    right: 0.7rem;
    width: 45px;
    height: 45px;
  }

  #whatsapp-contact a {
    width: 45px;
    height: 45px;
    line-height: 40px;
  }

  #whatsapp-contact .icon-svg {
    font-size: 30px;
    margin-top: 6px;
  }
}

/* button text */
#whatsapp-button-text {
  display: block;
  position: absolute;
  width: max-content;
  background-color: #fff;
  bottom: 15px;
  right: 62px;
  border-radius: 5px;
  padding: 5px 10px;
  color: #000;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -0.03em;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  word-break: keep-all;
  line-height: 1em;
  text-overflow: ellipsis;
  vertical-align: middle;
  box-shadow: 0 6px 8px 2px rgba(0, 0, 0, .15);
}

@media (max-width: 991.98px) {
  #whatsapp-button-text {
    bottom: 12px;
    right: 55px;
  }
}

/*-------------
    Errors
--------------*/

#main #error {
  text-align: center;
}

/*-------------
    Extras
--------------*/

/* Cookie block */
.cc-window {
  background-color: #778899 !important;
  -moz-box-shadow: 3px 3px 3px rgb(26 26 26 / 30%);
  -webkit-box-shadow: 3px 3px 3px rgb(26 26 26 / 30%);
  box-shadow: 3px 3px 3px rgb(26 26 26 / 30%);
}

.cc-window .cc-compliance .cc-btn {
  background-color: var(--mao-color-primary);
  color: #fff;
}

.cc-window .cc-compliance .cc-btn:hover,
.cc-window .cc-compliance .cc-btn:focus {
  background-color: #f9b767;
}
