/*
Theme Name: The Motion
Author: Manuel Tirone
Description: The motion - A starter theme for WordPress
Version: 1.0
Requires at least: 6.0
Requires PHP: 7.4
Tags: one-column, two-columns, three-columns, blog, right-sidebar, custom-header, custom-menu, featured-images, sticky-post, translation-ready
Text Domain: motion
*/

:root {
  /* Colors */

  --white: #fff;
  --grey-light: #f3f3f3;
  --grey: #ccc;
  --grey-2: #888;
  --black: #000000;
  --background: #ebebeb;

  --primario: #f48d25;
  --secondario: #474747;

  --heading: #333;
  --text: #333;

  --link: #f48d25;
  --hover: #f48d25;

  /* Fontsize */
  --fz-s: 0.8rem;
  --fz-m: 1rem;
  --fz-l: 1.5rem;
  --fz-h1: 24px;
  --fz-h2: 24px;
  --fz-h3: 24px;
  --fz-h4: 1.1rem;
  --fz-text: 1rem;
}

/* --------------------------------- Setup ---------------------------------  */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  text-decoration: none !important;
  line-height: 1;
}

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

*:focus {
  outline: none;
}

input:-webkit-autofill {
  box-shadow: inset 0 0 0 9999px white;
  -webkit-box-shadow: inset 0 0 0 9999px white;
}
input:-webkit-autofill:focus {
  box-shadow: 0 0 0 50px white inset;
  -webkit-box-shadow: 0 0 0 50px white inset;
}
input[type="search"]::-ms-clear {
  display: none;
  width: 0;
  height: 0;
}
input[type="search"]::-ms-reveal {
  display: none;
  width: 0;
  height: 0;
}
input[type="search"]::-webkit-search-decoration,
input[type="search"]::-webkit-search-cancel-button,
input[type="search"]::-webkit-search-results-button,
input[type="search"]::-webkit-search-results-decoration {
  display: none;
}

body,
input,
textarea,
select,
button {
  background-color: var(--background);
  font-family: "Roboto", sans-serif;
}

button {
  border: none;
  background-color: transparent;
  cursor: pointer;
}

html.lenis {
  height: auto;
}

.lenis.lenis-smooth {
  scroll-behavior: auto;
}

.lenis.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}

.lenis.lenis-stopped {
  overflow: hidden;
}

.lenis.lenis-scrolling iframe {
  pointer-events: none;
}

.container {
  width: 1400px;
  margin: 0 auto;
}

@media only screen and (max-width: 1480px) {
  .alignwide {
    padding: 0 5vw !important;
  }
}

/* Container Media queries */

@media only screen and (min-width: 1300px) and (max-width: 1500px) {
  .container {
    width: 92%;
    margin: 0 4%;
  }
}

@media only screen and (max-width: 1300px) {
  .container {
    width: 92%;
    margin: 0 4%;
  }
}

@media only screen and (max-width: 768px) {
  .wrap {
    flex-direction: column;
    gap: 30px;
  }
  .wrap .col {
    width: 100%;
  }
}

.divider {
  padding: 20px 0;
}

.spacer {
  padding: 100px 0;
}

.responsive {
  width: 100%;
  height: auto;
}

.center {
  text-align: center;
}

.rel {
  position: relative;
}

/* --------------------------------- Tipografia ---------------------------------  */

/* roboto-300 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: "Roboto";
  font-style: normal;
  font-weight: 300;
  src: url("./fonts/roboto-v30-latin-300.woff2") format("woff2"); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* roboto-regular - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: "Roboto";
  font-style: normal;
  font-weight: 400;
  src: url("./fonts/roboto-v30-latin-regular.woff2") format("woff2"); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* roboto-500 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: "Roboto";
  font-style: normal;
  font-weight: 500;
  src: url("./fonts/roboto-v30-latin-500.woff2") format("woff2"); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* roboto-700 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: "Roboto";
  font-style: normal;
  font-weight: 700;
  src: url("./fonts/roboto-v30-latin-700.woff2") format("woff2"); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

h1,
h2,
h3,
h4,
h5,
h6,
p,
a {
  word-wrap: break-word;
}

.above-title {
  font-size: 4.1rem;
  font-weight: 400;
  margin-bottom: 20px;
}
.above-subtitle {
  font-size: 1rem;
  text-transform: uppercase;
  margin-top: 10px;
}
.subtitle {
  font-size: 1rem;
  text-transform: uppercase;
  font-weight: 500;
  margin-bottom: 20px !important;
}

h1 {
  font-size: 3rem;
}

h2 {
  font-size: 2.625rem;
  margin-bottom: 15px;
  font-weight: 400;
}

h3 {
  font-size: 1.4rem;
  margin-bottom: 15px;
  font-weight: 400;
  line-height: 1.3;
}

p,
a {
  font-size: var(--fz-text);
  color: var(--text);
  transition: 0.3s all ease-in-out;
  line-height: 1.6;
  font-weight: 300;
}

.wp-block-group p {
  margin-bottom: 5px;
}

a:hover {
  color: var(--hover);
}

/* Tipografia tablet */

@media only screen and (max-width: 992px) {
  .above-title {
    font-size: 3.3rem;
  }
  .above-subtitle {
    font-size: 0.9rem;
  }
  .subtitle {
    font-size: 0.9rem;
  }

  h2 {
    font-size: 2rem;
  }

  h3 {
    font-size: 1.4rem;
  }

  h4 {
    font-size: 1.2rem;
  }
}

.big-title {
  position: absolute;
  top: -55px;
  left: 10px;
  font-size: 60px;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--grey);
  opacity: 0.2;
}
@media (max-width: 500px) {
  .big-title {
    display: none;
  }
}

.big-title-center {
  width: 100%;
  left: 50% !important;
  transform: translate(-50%, 0);
}

/* Tipografia Mobile*/

@media only screen and (max-width: 568px) {
  .above-title {
    font-size: 2rem;
  }
  .above-subtitle {
    font-size: 0.8rem;
  }
  .subtitle {
    font-size: 0.8rem;
  }

  h2 {
    font-size: 1.8rem;
  }

  h3 {
    font-size: 1.2rem;
  }

  h4 {
    font-size: 1rem;
  }
}

@media (max-width: 1100px) {
  .big-title {
    top: -35px;
    font-size: 35px;
  }
}

/* Grid System col */

.col-1 {
  width: 8.33333%;
}

.col-2 {
  width: 16.6666%;
}

.col-3 {
  width: 25%;
}

.col-4 {
  width: 33.33333%;
}

.col-6 {
  width: 50%;
}

.col-8 {
  width: 66.666666%;
}

.col-10 {
  width: 83.3333%;
}

.d-flex {
  display: flex;
}

.d-flex-c {
  display: flex;
  flex-direction: column;
}

.d-grid {
  display: grid;
}

.grid-col-2 {
  display: grid !important;
  grid-template-columns: repeat(2, 1fr);
}

.grid-col-3 {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr);
}

@media only screen and (max-width: 992px) {
  .grid-col-2 {
    grid-template-columns: repeat(1, 1fr);
  }

  .grid-col-3 {
    grid-template-columns: repeat(1, 1fr);
  }
}
.space-b {
  justify-content: space-between !important;
}
@media (max-width: 782px) {
  .col-reverse {
    flex-direction: column-reverse !important;
  }
}

/* --------------------------------- Breadcrumbs ---------------------------------  */

#breadcrumbs span {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  line-height: 2;
  color: var(--grey-2);
}

.breadcrumbs {
  margin-top: 20px;
}
.breadcrumbs a,
.breadcrumbs .breadcrumb_last {
  display: block;
  font-size: var(--fz-s);
  color: var(--grey-2);
}
.breadcrumbs a {
  padding: 0 10px;
}

.breadcrumbs a:hover {
  color: var(--hover);
}
.breadcrumb_last {
  color: var(--link) !important;
  padding: 0 10px;
}

/* --------------------------------- Input form ---------------------------------  */

input,
textarea,
select {
  padding: 10px;
  margin: 10px 0;
  width: 100%;
  border: 1px solid var(--grey);
  color: var(--text);
  border-radius: 3px;
  font-weight: 300;
}
textarea {
  resize: none;
}
label {
  text-transform: uppercase;
  font-weight: 400;
}
.search-bar {
  justify-content: center;
  padding-bottom: 50px;
}
.search-bar form {
  min-width: 300px;
}
.search-inner {
  width: 100%;
  position: relative;
}

.search-inner button {
  position: absolute;
  right: 15px;
  top: 9px;
}

input[type="checkbox"] {
  position: relative;
  top: 2px;
  margin-right: 5px;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  width: fit-content;
  display: inline-block;
  border: 1px solid #999;
  background-color: transparent;
  border-radius: 50%;
  min-width: 15px;
  height: 15px;
  cursor: pointer;
  margin: 0;
  padding: 0;
}
input[type="checkbox"]::before {
  position: absolute;
  content: "";
  border: 2px solid var(--link);
  width: 11px;
  height: 11px;
  top: -7%;
  left: -10%;
  border-radius: 100%;
  transform: scale(0);
  transition: 0.75s all cubic-bezier(0.63, 0.03, 0.21, 1);
}
.wpcf7-form input[type="checkbox"]:checked:before {
  transform: scale(1) !important;
  left: -1px;
  top: -1px;
}

/*Contact form*/

.wpcf7-form-control-wrap {
  position: relative;
}
.wpcf7-not-valid-tip {
  position: absolute;
  top: -30px;
  right: 0;
  font-size: 0.7rem;
  font-weight: 300 !important;
  color: var(--link);
}
.form-idea + .wpcf7-not-valid-tip {
  top: -170px;
}

.wpcf7-spinner {
  display: none;
}
.wpcf7-response-output {
  position: relative;
  left: 10px;
  border: none !important;
  color: var(--text);
  font-size: 0.9rem;
  margin: 0 !important;
  padding: 0 !important;
  margin-top: 20px !important;
}
.wpcf7-response-output:after {
  position: absolute;
  top: 0;
  left: -10px;
  content: "";
  background-color: var(--link);
  height: 100%;
  width: 3px;
}
.wpcf7-list-item {
  margin: 0;
}
.wpcf7-list-item label {
  display: flex;
  gap: 5px;
}
.wpcf7-list-item-label {
  text-transform: none;
  color: #888;
  font-size: 0.825rem;
}
.wpcf7-list-item-label a {
  color: var(--link);
  font-size: 0.825rem;
}

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

.admin-bar .header {
  margin-top: 32px;
}
@media only screen and (max-width: 768px) {
  .admin-bar .header {
    margin-top: 46px;
  }
}
@media only screen and (max-width: 600px) {
  .admin-bar .header-fix {
    margin-top: 0;
  }
}

.header {
  width: 100%;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 999;
  background-color: transparent;
  transition: 0.4s all ease-in-out;
}
@media (max-width: 992px) {
  .header {
    background-color: rgba(0, 0, 0, 0.9);
  }
  .header .inner {
    padding: 10px 5vw !important;
  }
}
.header .inner {
  padding: 20px 5vw;
  justify-content: space-between;
  align-items: center;
  transition: 0.4s all ease-in-out;
}

.header-fix {
  -webkit-box-shadow: 0px 5px 15px 3px rgba(0, 0, 0, 0.08);
  box-shadow: 0px 5px 15px 3px rgba(0, 0, 0, 0.08);
  background-color: rgba(0, 0, 0, 0.95);
}
.header-fix .inner {
  padding: 10px 3vw;
}

.header-fix .menu-principale {
  top: 69px;
}
.header-fix .menu-item a {
  color: var(--white);
}

.header-fix .header-brand {
  filter: unset !important;
}

.header-brand {
  height: 50px;
  width: auto;
}

@media (min-width: 992px) {
  .brand-black {
    filter: invert(100%);
  }
}

/* --------------------------------- Menu principale ---------------------------------  */
.menu {
  list-style-type: none;
  display: flex;
}
.sub-menu {
  list-style-type: none;
}

.menu-item-has-children {
  position: relative;
  padding-right: 10px;
}
.menu-item-has-children svg {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translate(0, -50%);
}

.menu-item {
  transition: 0.3s all ease-in-out;
  border-radius: 30px;
}

.menu-item a {
  position: relative;
  display: inline-block;
  width: 100%;
  padding: 10px 20px;
  font-weight: 400;
  color: var(--text);
}
.menu-item a:hover {
  color: var(--hover);
}
.current-menu-item a {
  color: var(--link) !important;
}
.current-menu-item a::before {
  position: absolute;
  top: 8px;
  left: 12px;
  content: "";
  height: 14px;
  width: 14px;
  border-radius: 50%;
  border: 1px solid var(--link);
  opacity: 0.4;
}

.header-black .menu-item a {
  color: var(--white);
}

.burger {
  display: none;
  overflow: hidden;
  cursor: pointer;
}

.burger .item-wrap {
  position: relative;
  gap: 7px;
  padding: 3px;
  transform: translateY(0);
  transition: 0.4s all ease-in-out;
}

.burger .item-wrap::before {
  position: absolute;
  content: "X";
  bottom: -25px;
  left: 50%;
  color: var(--link);
  font-size: 1.2rem;
  font-weight: 500;
  transform: translate(-50%, 0);
}

.burger .item-1,
.burger .item-2 {
  position: relative;
  display: block;
  height: 2px;
  width: 20px;
  background-color: var(--text);
  z-index: 10;
  transition: 0.3s all ease-in-out;
  transform: translateY(0);
}

@media (max-width: 992px) {
  .burger .item-1,
  .burger .item-2 {
    background-color: var(--white) !important;
  }
}
@media only screen and (min-width: 992px) {
  /*Submenu*/

  .sub-menu {
    position: absolute;
    left: -20px;
    background-color: transparent;
    width: 200px;
    padding: 20px;
    padding-top: 40px;
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s ease-in-out;
  }
  .sub-menu::before {
    position: absolute;
    z-index: -1;
    content: "";
    top: 22px;
    left: 0;
    width: 100%;
    height: 82%;
    background-color: var(--black);
    -webkit-box-shadow: 0px 5px 15px 3px rgba(0, 0, 0, 0.05);
    box-shadow: 0px 5px 15px 3px rgba(0, 0, 0, 0.05);
    transform: scale(0.9);
    transition: all 0.3s ease-in-out;
  }

  /*Hover*/
  .menu-item-has-children:hover .sub-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: all;
  }
  .menu-item-has-children:hover .sub-menu::before {
    transform: scale(1);
  }
}

@media only screen and (max-width: 992px) {
  .burger {
    display: flex;
  }

  .burger-close {
    transform: translateY(-22px) !important;
  }

  .menu-principale {
    position: absolute;
    left: 0;
    top: 77px;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    overflow: hidden;
    max-height: 0;
    transition: all 0.3s ease-in-out;
  }

  .menu {
    padding: 0 3vw;
    flex-direction: column;
  }

  .menu-item {
    opacity: 0;
    transition: opacity 0.6s ease-in-out;
  }
  .menu-item a {
    color: var(--white);
  }

  .menu-item-has-children svg {
    top: 15px;
  }

  .show-list {
    opacity: 1;
  }

  .menu-item:hover {
    background-color: unset;
  }

  .open-menu {
    border-top: 1px solid var(--heading);
    padding: 20px 0;
    max-height: 100vh;
    -webkit-box-shadow: 0px 5px 15px 3px rgba(0, 0, 0, 0.05);
    box-shadow: 0px 5px 15px 3px rgba(0, 0, 0, 0.05);
  }

  .sub-menu {
    overflow: hidden;
    max-height: 0;
    transition: all 0.3s ease-in-out;
    border-bottom: 1px solid transparent;
  }

  .sub-menu .menu-item a {
    font-size: var(--fz-s);
  }

  .show-sub-menu {
    max-height: 100vh;
    padding: 5px 0 10px 5px;
    border-bottom: 1px solid var(--heading);
  }
}

/* --------------------------------- Above the fold ---------------------------------  */
.loader {
  display: block;
  position: fixed;
  display: grid;
  place-content: center;
  top: 0;
  left: 0;
  height: 100vh;
  width: 100%;
  opacity: 1;
  background-color: var(--background);
  transition: opacity 0.7s ease-in-out;
  z-index: 100000000;
}
.ready {
  opacity: 0;
  pointer-events: none;
}

.above-front-page {
  position: relative;
  height: 100vh;
  overflow: hidden;
  padding-top: 0 !important;
}
.above-front-page * {
  color: var(--white);
}
.above-front-page-inner {
  position: relative;
  height: 100vh;
  justify-content: center;
  align-items: center;
  z-index: 10;
}
.front-page-video {
  width: 100vw;
  height: 56.25vw;
  min-height: 100vh;
  min-width: 177.77vh;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}
.above-layer {
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgb(0, 0, 0);
  background: linear-gradient(
    0deg,
    rgba(0, 0, 0, 0.4) 0%,
    rgba(0, 0, 0, 0.9) 100%
  );
  z-index: 1;
  pointer-events: none;
}
.explore {
  position: absolute;
  bottom: 100px;
  left: 50%;
  transform: translate(-50%, 0);
  text-transform: uppercase;
  letter-spacing: 1px;
}
.explore::before {
  position: absolute;
  content: "";
  bottom: -35px;
  left: 50%;
  transform: translate(-50%, 0);
  height: 20px;
  width: 1px;
  background-color: var(--white);
}

.above-the-fold {
  position: relative;
  overflow: hidden;
  padding-top: 80px;
  min-height: 300px;
  background-color: var(--background);
}
.above-the-fold .inner {
  padding: 0 10vw;
  min-height: 300px;
  justify-content: center;
  align-items: center;
  text-align: center;
  transition: opacity 1s ease-in-out;
}

.doppel-layer {
  position: absolute;
  right: -20px;
  top: 70px;
  z-index: -1;
  opacity: 0.2;
}
@media only screen and (max-width: 568px) {
  .doppel-layer {
    height: 200px;
    width: 200px;
    top: unset;
    bottom: 0;
    right: 0;
  }
}
@media only screen and (max-width: 568px) {
  .above-the-fold {
    min-height: 50vh;
  }
  .above-the-fold .inner {
    min-height: 50vh;
    padding: 0 5vw;
  }
}

/*Img preview*/
.post-preview {
  position: relative;
  transform: translateY(0);
  transition: 1s all ease-in-out;
  margin-top: 30px;
}
@media (max-width: 1460px) {
  .post-preview {
    padding: 0 10vw;
  }
}
.post-preview img {
  height: 50vh;
  object-fit: cover;
  width: 100%;
}

@media only screen and (max-width: 568px) {
  .post-preview {
    padding: 0;
  }
  .post-preview img {
    height: 50vh;
  }
}

.post-up {
  transform: translateY(-100px);
  padding: 0;
}
.above-hide {
  opacity: 0;
}

/* --------------------------------- 404-page ---------------------------------  */

.page-404 {
  min-height: 100vh;
  background-color: #070707;
}
.page-404 .inner {
  min-height: 100vh;
  align-items: center;
  justify-content: center;
}
.page-404 svg {
  height: 150px;
  width: auto;
  margin-bottom: 40px;
}

/* --------------------------------- Blog ---------------------------------  */

.home-content {
  padding: 0 0 100px 0;
}

.posts {
  gap: 40px;
  grid-template-columns: repeat(3, 1fr);
}
@media only screen and (max-width: 1200px) {
  .posts {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media only screen and (max-width: 768px) {
  .posts {
    grid-template-columns: repeat(1, 1fr);
  }
}

/* Post card */

.post {
  position: relative;
  height: 100%;
  overflow: hidden;
  border-radius: 25px;
  -webkit-box-shadow: 0px 1px 24px 3px rgba(0, 0, 0, 0.08);
  box-shadow: 0px 1px 24px 3px rgba(0, 0, 0, 0.08);
}

.post-image-wrap {
  height: 300px;

  overflow: hidden;
}
.post-image-wrap img {
  height: 100%;
  width: 100%;
  object-fit: cover;

  transition: 0.5s all ease-in-out;
  transform: scale(1);
}
.post-image-wrap:hover img {
  transform: scale(1.1);
}
.post-content {
  min-height: 300px;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  background-color: var(--white);
  padding: 35px;
}

.post h3 {
  font-size: 1.2rem;
}
.post-date {
  font-size: var(--fz-s);
  color: var(--text);
  margin-bottom: 20px;
}

.post-cat {
  border-top: 1px solid var(--grey-light);
  padding-top: 20px;
  margin-top: auto;
}
.post-categories {
  list-style-type: none;
}
.post-categories a,
.post-categories p {
  width: fit-content;
  padding: 10px 12px;
  background-color: var(--primario);
  color: var(--text);
  border-radius: 30px;
  font-size: 0.7rem;
}

/* Paginazione */

.home-pagination {
  justify-content: center;
  margin-top: 60px;
}
.navigation {
  width: fit-content;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 5px;
  background-color: var(--grey-light);
  border-radius: 30px;
  padding: 5px 10px;
}
.nav-links .page-numbers {
  display: block;
  place-content: center;
  background-color: var(--grey-light);
  border-radius: 50%;
  padding: 3px 11px;
  font-size: 0.9rem;
}
.nav-links .next,
.nav-links .prev {
  width: fit-content;
  height: auto;
  padding: 7px 20px;
  border-radius: 30px;
}
.nav-links .prev:hover,
.nav-links .next:hover,
.nav-links .page-numbers:hover {
  background-color: var(--primario);
  color: var(--white);
}
.nav-links .current {
  display: block;
  padding: 8px 12px;
  font-size: 0.9rem;
  background-color: var(--link);
  color: var(--white);
}
.nav-links .current:hover {
  background-color: var(--link);
}

/*Single page*/

@media only screen and (max-width: 500px) {
  .single h1 {
    font-size: 1.6rem !important;
  }
}

.single-post-info {
  padding-top: 30px;
  align-items: center;
  color: var(--grey);
  font-size: 0.9rem;
}
.single-post-info .separator {
  display: block;
  margin: 0 10px;
  color: var(--grey);
}
.single-post-info a {
  background-color: unset;
  padding: 0;
  font-size: 0.9rem;
  color: var(--text);
}

.single-content img {
  aspect-ratio: 16 / 9;
}

/*Posts nav*/
.single-post-nav {
  position: relative;
  justify-content: flex-end;
}
.prev-post,
.next-post {
  position: absolute;
  right: 5vw;
  top: -50px;
  display: grid;
  place-content: center;
  height: 50px;
  width: 50px;
  border: 1px solid var(--grey);
  border-radius: 50%;
  transition: 0.4s all ease-in-out;
  transform: translateY(0);
}

.prev-post:hover,
.next-post:hover {
  transform: translateY(-3px);
}

/*Related posts*/

.related-post {
  padding: 70px 0;
  border-top: 1px solid var(--grey-light);
}
.related-title {
  padding-bottom: 50px;
  font-size: var(--fz-l) !important;
}
.related-post img {
  border-radius: 0;
}

@media (max-width: 500px) {
  .single .above-the-fold .inner .text-hidden,
  .single #breadcrumbs,
  .single .above-title {
    text-align: left !important;
  }
  .single .above-the-fold .inner {
    padding: 0 !important;
    align-items: flex-start !important;
  }

  .single .progetto-info {
    grid-template-columns: repeat(1, 1fr);
  }
}

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

.footer {
  position: relative;
  width: 100%;
  background-color: var(--black);
  padding-top: 100px;
}

.footer-brand {
  height: 60px !important;
  width: auto;
}

.footer h4 {
  color: var(--white);
  margin-bottom: 30px;
  text-transform: uppercase;
  font-weight: 400;
}

.footer p,
.footer a {
  color: var(--grey);
  font-weight: 300;
  font-size: var(--fz-s);
  margin-bottom: 15px;
}

.footer .current-menu-item a {
  color: var(--link);
}
.footer .current-menu-item a::before {
  display: none;
}

.footer .menu {
  flex-direction: column;
}

.scroll-top {
  position: absolute;
  top: 0;
  right: 60px;
  display: grid;
  place-content: center;
  background-color: var(--link);
  height: 60px;
  width: 50px;
}
.scroll-top svg {
  transition: 0.5s all ease-in-out;
}
.scroll-top:hover svg {
  transform: translateY(-3px);
}

@media only screen and (max-width: 992px) {
  .footer .menu {
    padding: 0;
    opacity: 1;
    visibility: visible;
    pointer-events: all;
  }
  .footer .menu-item {
    padding: 0;
    opacity: 1;
    visibility: visible;
    pointer-events: all;
  }
}

.footer .menu-item:hover {
  background-color: unset;
}
.footer .menu-item a {
  padding: 0;
  width: fit-content;
}

.credits {
  border-top: 1px solid var(--text);
  margin-top: 70px;
  padding: 20px 0;
}

/* --------------------------------- Gutenberg ---------------------------------  */
@media (max-width: 781px) {
  .block-reverse {
    flex-direction: column-reverse !important;
  }
  .pad-bottom {
    padding-bottom: 4em !important;
  }
}

/* Media text */

.wp-block-media-text {
  grid-template-columns: repeat(2, 1fr);
}

@media (max-width: 992px) {
  .wp-block-media-text {
    gap: 40px;
    grid-template-columns: repeat(1, 1fr) !important;
  }

  .wp-block-media-text__media {
    grid-column: unset !important;
    grid-row: 1 !important;
  }
  .wp-block-media-text__media img {
    max-height: 400px;
    object-fit: cover;
  }
  .wp-block-media-text__content {
    grid-column: unset !important;
    grid-row: 2 !important;
    padding: 0 !important;
  }

  .wp-block-media-text.has-media-on-the-right {
    grid-template-columns: unset !important;
  }
}

/*Gallery*/

.wp-block-gallery .wp-block-image {
  overflow: hidden;
}

.wp-block-gallery .wp-block-image img {
  transition: 0.6s all ease-in-out;
  transform: scale(1);
}
.wp-block-gallery .wp-block-image:hover img {
  transform: scale(1.1);
}

/*Buttons*/

.wp-block-button__link,
.button {
  position: relative;
  margin-top: 20px;
  background-color: var(--link);
  font-size: var(--fz-text);
  padding: 14px 40px !important;
  border-radius: 0;
  transform: translateY(0);
  color: var(--white);
  z-index: 0;
}
.wp-block-button__link::after,
.button::after {
  content: "";
  position: absolute;
  left: -13px;
  top: -10px;
  height: 30px;
  width: 30px;
  background-color: var(--link);
  border-radius: 50%;
  opacity: 0.4;
  z-index: 10000;
  transition: 0.4s all ease-in-out;
}
.wp-block-button__link:hover,
.button:hover {
  color: var(--white);
  transform: translateY(-1px);
  -webkit-box-shadow: 0px 5px 15px 3px rgba(0, 0, 0, 0.1);
  box-shadow: 0px 5px 15px 3px rgba(0, 0, 0, 0.1);
}
.wp-block-button__link:hover::after,
.button:hover::after {
  top: 22px;
}

.my-button {
  margin-top: 50px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
  font-weight: 400;
  font-size: 1rem;
  margin-left: auto;
}

.my-button-reverse {
  color: var(--text);
}
.my-button-reverse svg path {
  stroke: var(--link);
}

.my-button:hover {
  color: var(--white);
}

#button-tipologia {
  display: block;
  width: fit-content;
  margin-top: 30px;
  margin-bottom: 50px;
}

/*Spazio vuoto mobile */
@media (max-width: 992px) {
  .spazio-mob {
    height: 35px !important;
  }
}

@media (max-width: 992px) {
  .col-padding {
    padding: 0 !important;
  }
}

@media (max-width: 800px) {
  :where(.wp-block-columns.is-layout-flex) {
    gap: 4em !important;
  }
}

/* ---- Cite ----*/

.wp-block-quote {
  border-left: none !important;
  padding: 0;
  margin: 0;
}
.wp-block-quote cite {
  font-size: 2rem;
  line-height: 1.4;
  color: #a2a2a2;
  font-weight: 300;
}
@media (max-width: 790px) {
  .quote-svg {
    left: 0 !important;
    top: -70px !important;
  }
  .wp-block-quote cite {
    font-size: 1.3rem;
  }
}

.flex-col {
  flex-wrap: wrap !important;
}

/* --------------------------------- Tablet ---------------------------------  */

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

/* ---------------------------------  Tablet small ---------------------------------  */

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

/* ---------------------------------  Mobile ---------------------------------  */

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

/* --------------------------------- Animation
---------------------------------  */
/* Fade */

.fade-in {
  transform: translateY(60px);
  opacity: 0;
  transition: 1.5s all ease;
}

.fade-in.in-page {
  transform: translateY(0);
  opacity: 1;
}

/*Text hidden*/

.text-hidden {
  overflow: hidden !important;
  display: block;
}
.text-hidden * {
  transform: translate(0, 150%);
  transition: 1s cubic-bezier(0.63, 0.03, 0.21, 1);
}
.text-hidden.in-page * {
  transform: translate(0, 0);
}

/* --------------------------------- Magnific Popup ---------------------------------  */

/* overlay at start */
.mfp-fade.mfp-bg {
  opacity: 0;

  -webkit-transition: all 0.15s ease-out;
  -moz-transition: all 0.15s ease-out;
  transition: all 0.15s ease-out;
}
/* overlay animate in */
.mfp-fade.mfp-bg.mfp-ready {
  opacity: 0.8;
}
/* overlay animate out */
.mfp-fade.mfp-bg.mfp-removing {
  opacity: 0;
}

/* content at start */
.mfp-fade.mfp-wrap .mfp-content {
  opacity: 0;

  -webkit-transition: all 0.15s ease-out;
  -moz-transition: all 0.15s ease-out;
  transition: all 0.15s ease-out;
}
/* content animate it */
.mfp-fade.mfp-wrap.mfp-ready .mfp-content {
  opacity: 1;
}
/* content animate out */
.mfp-fade.mfp-wrap.mfp-removing .mfp-content {
  opacity: 0;
}

/* --------------------------------- Home ---------------------------------  */

/*Chi siamo*/

.img-grid {
  position: relative;
}
.img-grid .item-1 img {
  position: relative;
  left: 50px;
  top: 90px;
  width: 700px;
  outline: 8px solid var(--background);
  height: 300px;
}

@media (max-width: 782px) {
  .img-grid .item-1 img {
    position: absolute;
    left: 0;
    top: 180px;
    height: 250px;
    width: 50%;
  }
}
@media (max-width: 568px) {
  .img-grid .item-1 img {
    top: 255px;
  }
}
.img-grid .item-2 img {
  position: relative;
  height: 400px;
  object-fit: cover;
  z-index: -1;
}

/*Portfolio home*/

.gradient-black {
  position: relative;
}
.gradient-black p {
  font-size: 1rem;
}
.gradient-black::after {
  position: absolute;
  content: "";
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgb(255, 255, 255);
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.4) 60%,
    rgba(0, 0, 0, 1) 100%
  );
}
@media (max-width: 992px) {
  .gradient-black::after {
    background: rgb(255, 255, 255);
    background: linear-gradient(
      180deg,
      rgba(0, 0, 0, 0.6) 60%,
      rgba(0, 0, 0, 1) 100%
    );
  }
}
@media (max-width: 568px) {
  .gradient-black {
    height: 80vh !important;
    justify-content: flex-start !important;
    padding-left: 6vw !important;
  }
}

/*Slider portfolio home*/

.portfolio-gallery h2 {
  color: var(--white);
  font-size: var(--fz-h3);
  font-weight: 300;
  margin-bottom: 50px;
}

.slider-portfolio-box {
  position: relative;
  min-height: 400px;
  background-size: cover !important;
  background-position: center center !important;
  background-repeat: no-repeat !important;
  justify-content: flex-end;
  padding: 40px;
}
@media (min-width: 1400px) {
  .slider-portfolio-box {
    min-height: 600px;
  }
}
.slider-portfolio-layer {
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--black);
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
  pointer-events: none;
  z-index: 0;
}

.slider-portfolio-box h3 {
  color: var(--link);
  font-size: 1.2rem;
  font-weight: 400;
  margin-bottom: 5px;
}
.slider-portfolio-box p {
  text-transform: uppercase;
  font-size: 0.7rem;
  color: var(--white);
}
.slider-portfolio-box h3,
.slider-portfolio-box p {
  position: relative;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.4s ease-in-out;
  z-index: 1;
}
.slider-portfolio-box:hover h3,
.slider-portfolio-box:hover p {
  opacity: 1;
  transform: translateY(0);
}

.slider-portfolio-box:hover .slider-portfolio-layer {
  opacity: 0.7;
}
.col-casi-studio {
  flex-direction: column;
}

@media (max-width: 992px) {
  .slider-portfolio-box h3,
  .slider-portfolio-box p {
    opacity: 1;
  }
  .slider-portfolio-layer {
    background: rgb(0, 0, 0);
    background: linear-gradient(
      0deg,
      rgba(0, 0, 0, 1) 0%,
      rgba(255, 255, 255, 0) 82%
    );
    opacity: 1;
  }
}

.portfolio-home-text {
  position: relative;
  font-size: 1.5rem;
}
.portfolio-home-text::after {
  position: absolute;
  content: "";
  right: -300px;
  top: 0;
  height: 100px;
  width: 100px;
  border-radius: 50%;
  border: 1px solid #888;
  z-index: 4;
}
.portfolio-home-text::before {
  position: absolute;
  content: "";
  right: -300px;
  top: 0;
  height: 30px;
  width: 30px;
  border-radius: 50%;
  border: 1px solid var(--link);
  z-index: 5;
}
@media (max-width: 782px) {
  .portfolio-home-text::after,
  .portfolio-home-text::before {
    display: none;
  }
  .portfolio-home-text {
    font-size: 1.3rem;
  }
}

/*Clienti home*/

.clienti-slider {
  display: flex;
  background-color: #fff;
  width: 100%;
  margin-left: auto;
}

.clienti-slider .inner {
  padding: 40px 3vw;
}
.clienti-slider .splide__slide {
  display: flex;
  align-items: center;
  justify-content: center;
}
.clienti-slider img {
  max-height: 130px;
  width: auto;
  object-fit: cover;
}

/* --------------------------------- Portfolio ---------------------------------  */
.post-type-archive-portfolio {
  background-color: var(--black);
}
.post-type-archive-portfolio .above-the-fold {
  background-color: transparent;
}
.post-type-archive-portfolio .above-the-fold h1 {
  color: var(--white);
}

.tipologia-box {
  position: relative;
  min-height: 580px;
  padding: 30px;
  justify-content: flex-end;
}
.tipologia-box img {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  object-fit: cover;
  object-position: 0 35%;
}
.layer-img-tipologia {
  position: absolute;
  display: block;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  pointer-events: none;
  background: rgb(0, 0, 0);
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0) 60%,
    rgba(0, 0, 0, 1) 100%
  );
  z-index: 10;
}
.tipologia-text {
  position: relative;
  align-items: center;
  z-index: 11;
}

.tipologia-text .my-button {
  margin-top: 0;
}
.tipologia-box h3 {
  color: var(--white);
  font-size: 1.6rem;
}

@media (max-width: 568px) {
  .tipologia-text {
    flex-direction: column;
    align-items: flex-start;
  }

  .tipologia-box h3 {
    font-size: 1.1rem;
    max-width: 70%;
  }

  .tipologia-box img {
    object-position: unset;
  }
}

/*Taxonomy page*/

.tax-tipologia {
  background-color: var(--black);
}
.tax-tipologia .above-the-fold {
  background-color: var(--black);
}
.tax-tipologia .above-the-fold h1 {
  color: var(--white);
}
.tipologia-content .post-preview img {
  width: 100%;
  object-fit: cover;
}

.tipologia-posts {
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  @media (max-width: 768px) {
    grid-template-columns: repeat(1, 1fr);
  }
}
.tipologia-posts .post:nth-child(even) {
  margin-top: 80px;
  @media (max-width: 768px) {
    margin-top: 0;
  }
}
.tipologia-posts .post {
  border-radius: 0;
}
.tipologia-posts .post .post-image-wrap {
  min-height: 500px;
}
.tipologia-posts .post-content {
  min-height: auto;
  background-color: transparent;
}
.tipologia-posts .post-content h3 {
  color: var(--white);
}
.tipologia-posts .post-content p {
  color: #b1b1b1;
}
.no-found p {
  font-size: 1.2rem;
}

/*Portfolio Single*/

.progetto-info {
  gap: 70px;
}
@media (max-width: 992px) {
  .progetto-info {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}
.progetto-info .info-title {
  color: #888;
}

.presentazione-progetto .inner {
  padding-left: 5vw;
  align-items: center;
  justify-content: space-between;
}
@media (max-width: 992px) {
  .presentazione-progetto .inner {
    padding-left: 0;
    width: min(1400px, 100% - 10vw);
    flex-direction: column-reverse;
    margin-inline: auto;
    gap: 60px;
  }
  .presentazione-progetto .col {
    width: 100% !important;
  }
}
.presentazione-progetto .col-6 {
  width: 60%;
}
.presentazione-progetto img {
  width: 100%;
  min-height: 450px;
  object-fit: cover;
}
@media (max-width: 768px) {
  .presentazione-progetto img {
    min-height: 300px;
  }
}

.servizi-line {
  display: block;
  position: absolute;
  width: 30%;
  height: 1px;
  background-color: var(--grey);
  bottom: -80px;
  left: 0;
  transition: 2s all ease-in-out;
}
.servizi-line.in-page {
  width: 100%;
}

@media (max-width: 992px) {
  .servizi-line {
    display: none;
  }
}

.video-wrapper {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  overflow: hidden;
}
.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.gallery-progetto {
  display: grid !important;
  grid-template-columns: repeat(autofit, minmax(100px, auto));
  grid-auto-flow: dense;
  gap: 2px;
  margin: 0 auto;
}

.gallery-progetto li {
  position: relative;
}
.gallery-progetto .img-wrap {
  height: 100%;
  width: 100%;
}
.gallery-progetto li img {
  height: 100%;
  width: 100%;
  object-fit: cover;
  transition: 0.5s all ease-in-out;
}
.gallery-progetto li img:hover {
  transform: scale(1.05);
}

.gallery-progetto li:nth-child(1) {
  grid-row: span 4;
  grid-column: span 2;
}
.gallery-progetto li:nth-child(2) {
  grid-row: span 4;
  grid-column: span 2;
}
.gallery-progetto li:nth-child(3) {
  grid-row: span 2;
  grid-column: span 4;
}
.gallery-progetto li:nth-child(4) {
  grid-row: span 2;
  grid-column: span 1;
}
.gallery-progetto li:nth-child(5) {
  grid-row: span 1;
  grid-column: span 3;
}

/* --------------------------------- Chi siamo ---------------------------------  */

.galleria-chisiamo img {
  max-height: 300px;
}
.chisiamo-cite {
  border-top: 1px solid #ccc;
  border-bottom: 1px solid #ccc;
  padding: 70px 0;
}
.quote-svg {
  position: absolute;
  top: -20px;
  left: -40px;
  height: 100px;
  width: 100px;
}

/* --------------------------------- Servizi ---------------------------------  */

.servizi-overlay {
  position: relative;
}
.servizi-overlay::before {
  position: absolute;
  content: "";
  height: 100%;
  width: 100%;
  background: rgb(0, 0, 0);
  background: linear-gradient(
    90deg,
    rgba(0, 0, 0, 1) 0%,
    rgba(255, 255, 255, 0) 70%
  );
  top: 0;
  left: 0;
  z-index: 10;
}
.servizi-overlay-reverse {
  position: relative;
}
.servizi-overlay-reverse::before {
  position: absolute;
  content: "";
  height: 100%;
  width: 100%;
  background: rgb(0, 0, 0);
  background: linear-gradient(
    270deg,
    rgba(0, 0, 0, 1) 0%,
    rgba(255, 255, 255, 0) 70%
  );
  top: 0;
  left: 0;
  z-index: 10;
}

/* --------------------------------- Contatti ---------------------------------  */

.col-info-contatti {
  border-left: 1px solid #cfcfcf;
  padding-left: 50px;
}
@media (max-width: 782px) {
  .col-info-contatti {
    border-left: none;
    padding-left: 0;
  }
}
/* --------------------------------- Preventivo CTA---------------------------------  */

.preventivo-cta {
  background-color: var(--background);
  border-top: 1px solid #ccc;
}
.preventivo-cta h3 {
  font-size: 2rem;
  font-weight: 300;
  margin-bottom: 30px;
}
.preventivo-cta .my-button:hover {
  color: var(--link);
}
@media (max-width: 768px) {
  .preventivo-cta .inner {
    flex-direction: column;
  }

  .preventivo-cta .col-6 {
    width: 100%;
  }
  .preventivo-cta .col-6 .my-button {
    margin-left: unset;
  }
}

@media (max-width: 500px) {
  .page-id-10 .wp-block-gallery.wp-block-gallery-1 {
    gap: 20px;
  }
}
