/*=============== VARIABLES CSS ===============*/
:root {
  --header-height: 3.5rem;

  /*========== Colors ==========*/
  /*Color mode HSL(hue, saturation, lightness)*/
  --title-color: #473e35;
  --text-color: rgba (71 62 53 0.2);
  --text-color-light: hsl(0, 0%, 60%);
  --body-color: hsl(0, 0%, 0%);
  --container-color: hsl(0, 0%, 8%);
  --shadow-gradient: linear-gradient(
    180deg,
    hsla(0, 0%, 0%, 0) 50%,
    hsl(0, 0%, 0%) 125%
  );

  /*========== Font and typography ==========*/
  /*.5rem = 8px | 1rem = 16px ...*/
  --body-font: "Arimo", sans-serif;
  --second-font: "Pinyon Script", cursive;
  --biggest-font-size: 2.75rem;
  --h1-font-size: 1.5rem;
  --h2-font-size: 1.25rem;
  --h3-font-size: 1rem;
  --normal-font-size: 0.938rem;
  --small-font-size: 0.813rem;
  --smaller-font-size: 0.75rem;

  /*========== Font weight ==========*/
  --font-regular: 400;
  --font-medium: 500;
  --font-semi-bold: 600;

  /*========== z index ==========*/
  --z-tooltip: 10;
  --z-fixed: 100;
}

/*========== Responsive typography ==========*/
@media screen and (min-width: 1152px) {
  :root {
    --biggest-font-size: 5.5rem;
    --h1-font-size: 2.5rem;
    --h2-font-size: 1.5rem;
    --h3-font-size: 1.25rem;
    --normal-font-size: 1rem;
    --small-font-size: 0.875rem;
    --smaller-font-size: 0.813rem;
  }
}

* {
  box-sizing: border-box;
  padding: 0;
  margin: 0;
}

html {
  scroll-behavior: smooth;
}

body,
button,
input {
  font-family: var(--body-font);
  font-size: var(--normal-font-size);
  color: var(--text-color);
  background-color: white;
}

button,
input {
  outline: none;
  border: none;
}

h1,
h2,
h3,
h4 {
  color: var(--title-color);
  font-family: var(--second-font);
  font-weight: 500;
}

ul {
  list-style: none;
}

a {
  text-decoration: none;
}

img {
  display: block;
}

/*=============== REUSABLE CSS CLASSES ===============*/
.container {
  max-width: 1120px;
  margin-inline: 1.5rem;
}

.grid {
  display: grid;
  gap: 1.5rem;
}

.section__title {
  text-align: center;
  font-size: 4rem;
  color: var(--title-color);
  margin-bottom: 2rem;
  letter-spacing: 3px;
  line-height: 3rem;
  font-weight: 500;
}

.section__subtitle {
  text-align: center;
  font-family: var(--body-font);
  font-size: var(--h2-font-size);
  font-weight: 300;
  margin-bottom: 3rem;
  letter-spacing: 1px;
  color: var(--title-color);
}

.main {
  overflow: hidden; /* For animation ScrollReveal */
}

/*=============== HEADER & NAV ===============*/
.header {
  position: fixed;
  width: 100%;
  background-color: transparent;
  top: 0;
  left: 0;
  z-index: var(--z-fixed);
}

.nav {
  height: var(--header-height);
  display: flex;
  justify-content: end;
  align-items: center;
}

.nav__logo {
  color: transparent;
  font-family: var(--body-font);
  font-weight: var(--font-semi-bold);
}

.nav__toggle,
.nav__close {
  display: flex;
  font-size: 1.25rem;
  color: hsl(0, 0%, 50%);
  cursor: pointer;
}

/* Navigation for mobile devices */
@media screen and (max-width: 1152px) {
  .nav__menu {
    position: fixed;
    top: -100%;
    left: 0;
    background-color: transparent;
    width: 100%;
    padding-block: 4rem;
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    transition: top 0.4s;
  }
}

.nav__list {
  text-align: center;
  display: flex;
  flex-direction: column;
  row-gap: 2rem;
  column-gap: 2.5rem !important;
}

.nav__link {
  position: relative;
  color: hsl(0, 0%, 50%);
  font-family: var(--body-font);
  font-weight: var(--font-medium);
}

.nav__link::after {
  content: "";
  width: 0;
  height: 2px;
  background-color: white;
  position: absolute;
  left: 0;
  bottom: -0.5rem;
  transition: width 0.3s;
}

.nav__item {
  color: hsl(0, 0%, 50%);
}

.nav__link:hover::after {
  width: 70%;
}

.nav__close {
  position: absolute;
  top: 1rem;
  right: 1.5rem;
}

/* Show menu */
.show-menu {
  top: 0;
}

/* Add blur to header */
.blur-header::after {
  content: "";
  position: absolute;
  width: 1000%;
  height: 100%;

  backdrop-filter: blur(48px);
  -webkit-backdrop-filter: blur(48px);
  top: 0;
  left: 0;
  z-index: -1;
}

/* For large devices */
@media screen and (min-width: 1023px) {
  .nav__close,
  .nav__toggle {
    display: none;
  }
  .nav__list {
    flex-direction: row;
    column-gap: 4rem;
  }
}

@media screen and (min-width: 1152px) {
  .container {
    margin-inline: auto;
  }

  .section {
    padding-block: 7rem 2rem;
  }

  .nav {
    height: calc(var(--header-height) + 1.5rem);
  }
  .blur-header::after {
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px); /* For safari */
  }
}
/*=============== LINEA ===============*/
.linea {
  margin-top: 3rem;
  border: 1px solid var(--body-color);
  margin-left: 5rem;
  margin-right: 5rem;
}

/*=============== HOME ===============*/
/*
.section-hero {
  height: 45rem;
  width: 100%;
  background-image: url(/assets/img/hero-section.JPG);
  background-size: cover;
  background-position: center;
  display: flex;

  justify-content: center;
}

.img__hero {
  height: 16rem;
  width: 24rem;
  margin-top: 4rem;
}
*/

.section-hero {
  height: 100%;
}

.videofullscreen {
  overflow: hidden;
  width: 100% !important;
  height: 45rem !important;
  object-fit: cover;
  z-index: -100;
}

.desktop {
  display: none;
}

.img__hero {
  height: 16rem;
  width: 24rem;
  position: absolute;
  color: #ffffff;
  top: 18%;
  left: 50%;
  transform: translate(-50%, -50%);
}
/*=============== BUTTON ===== ==========*/
.button {
  background-color: hsla(0, 0%, 100%, 0.2);
  padding: 1.25rem 1.5rem;
  color: var(--title-color);
  display: inline-flex;
  align-items: center;
  column-gap: 0.5rem;
  font-family: var(--body-font);
  font-weight: 600;
  background-color: var(--white-color);
  box-shadow: 0 8px 32px hsla(0, 0%, 0%, 0.1);
  padding: 1rem 2rem;
  border-radius: 4rem;
  font-weight: var(--font-bold);
  transition: box-shadow 0.4s;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  margin-bottom: 2rem;
}

.button i {
  font-size: 1.25rem;
  transition: transform 0.4s;
  font-weight: initial;
}

.button:hover i {
  transform: translateX(0.25rem);
}

/*=============== HERO ===============*/

.freccia {
  display: flex;
  color: white;
  justify-content: center;
  position: relative;
  top: -3.5rem;
}

.uno {
  color: var(--title-color) !important;
  top: 1rem !important;
}

/*=============== ABOUT ===============*/

.about {
  margin-top: 6rem;
}

.about__data {
  text-align: center;
  margin-inline: 1.5rem;
}

.about__description {
  margin-bottom: 2rem;
  text-align: justify;
  padding-left: 1rem;
  padding-right: 1rem;
}

.about__img {
  width: 100%;
  height: 100%;
}

.about__image1 {
  justify-self: center;
  overflow: hidden;
  margin-bottom: 1rem;
}

/*=============== MENU ===============*/

.menu {
  margin-top: 6rem;
}
.menu__container {
  row-gap: 2rem;
}

.menu__data {
  text-align: center;
  margin-inline: 1.5rem;
}

.menu__description {
  margin-bottom: 2rem;
  text-align: start;
  padding-left: 1rem;
  padding-right: 1rem;
}

.menu__img {
  width: 100%;
  height: 100%;
}

.menu__image:hover .menu__img {
  transform: scale(1.2);
}

.button__menu {
  background-color: white;
  border: 1.5px black solid;
  padding: 1.25rem 1.5rem;
  margin-top: 3rem;
  margin-bottom: 2rem;
  color: var(--title-color);
  display: inline-flex;
  align-items: center;
  column-gap: 0.5rem;
  font-family: var(--body-font);
  font-weight: 600;
  padding: 1rem 2rem;
  border-radius: 4rem;
  font-weight: var(--font-bold);
  transition: box-shadow 0.4s;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
}

/*=============== LOCATION ===============*/

.location {
  margin-top: 6rem;
}

.location__container {
  row-gap: 3rem;
}

.location__data {
  text-align: center;
  margin-inline: 1.5rem;
}

.location {
  margin-bottom: 2rem;
}

.location__description {
  margin-bottom: 2rem;
  text-align: start;
  padding-left: 1rem;
  padding-right: 1rem;
}

.location__img {
  width: 100%;
  height: 100%;
}

.button1 {
  display: flex;
  justify-content: center;
}

.button__location {
  background-color: white;
  border: 1.5px black solid;
  padding: 1.25rem 1.5rem;
  margin-top: 3rem;
  margin-bottom: 2rem;
  color: var(--title-color);
  display: inline-flex;
  align-items: center;
  column-gap: 0.5rem;
  font-family: var(--body-font);
  font-weight: 600;
  padding: 1rem 2rem;
  border-radius: 4rem;
  font-weight: var(--font-bold);
  transition: box-shadow 0.4s;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
}

/*=============== GALLERY ===============*/

.gallery {
  margin-top: 6rem;
}

.gallery__container {
  row-gap: 3rem;
}

.gallery__data {
  text-align: center;
}

.gallery {
  margin-bottom: 2rem;
}

.gallery__subtitle {
  margin-top: 2rem;
  text-align: center;
  font-family: var(--body-font);
  font-size: var(--h1-font-size);
  font-weight: 300;
  margin-bottom: 1rem;
  letter-spacing: 1px;
  color: var(--title-color);
}
.gallery__description {
  margin-bottom: 2rem;
}

.gallery__image {
  position: relative;
  justify-self: center;
  overflow: hidden;
}

.gallery__img {
  width: 300px;
  transition: transform 0.4s;
}

.gallery__shadow {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--shadow-gradient);
}

.gallery__image:hover .gallery__img {
  transform: scale(1.2);
}

.main-carousel {
  margin-bottom: 2rem;
}

.carousel-cell img {
  width: 100%;
  padding: 6px;
}

.flickity-prev-next-button {
  display: none !important;
}

.button__gallery {
  background-color: white;
  border: 1.5px black solid;
  padding: 1.25rem 1.5rem;
  margin-top: 3rem;
  color: var(--title-color);
  display: inline-flex;
  align-items: center;
  column-gap: 0.5rem;
  font-family: var(--body-font);
  font-weight: 600;
  padding: 1rem 2rem;
  border-radius: 4rem;
  font-weight: var(--font-bold);
  transition: box-shadow 0.4s;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
}

/*=============== FOOTER ===============*/
.footer {
  background-image: url(/assets/img/marmo\ scuro.jpg);
}

a[href^="tel"] {
  color: inherit; /* Inherit text color of parent element. */
  text-decoration: none; /* Remove underline. */
  /* Additional css `propery: value;` pairs here */
}

.footer__group {
  padding-top: 8rem;
}

.group {
  padding-top: 1rem !important;
}

.footer__logo {
  display: inline-block;
  height: 10rem;
  width: 15rem;
  margin-top: 15px;
}

.footer__description {
  font-size: 0.8rem;
  line-height: 1.2rem;
  text-align: center;
  color: white;
  font-weight: 500;
  padding-left: 3rem;
  padding-right: 3rem;
}

.footer__group {
  display: flex;
  margin-top: 3rem;
  flex-direction: column;
  align-items: center;
}

.footer__copy {
  font-size: 0.8rem;
  color: white;
  text-align: center;
  padding: 3rem;
}

.social {
  display: flex;
  flex-direction: row;
  column-gap: 2rem;
  margin-top: 2rem;
}

.socialicon {
  height: 26px;
  width: 26px;
}

.sito {
  border: 1px white solid;
  color: inherit;
  text-decoration: none;
}
/*=============== SCROLL BAR ===============*/
::-webkit-scrollbar {
  width: 0.6rem;
  border-radius: 0.5rem;
  background-color: hsl(0, 0%, 10%);
}

::-webkit-scrollbar-thumb {
  background-color: hsl(0, 0%, 20%);
  border-radius: 0.5rem;
}

::-webkit-scrollbar-thumb:hover {
  background-color: hsl(0, 0%, 30%);
}

/*=============== SCROLL UP ===============*/
.scrollup {
  position: fixed;
  right: 1rem;
  bottom: -50%;
  background-color: hsla(0, 0%, 100%, 0.1);
  padding: 6px;
  display: inline-flex;
  color: var(--title-color);
  font-size: 1.25rem;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px); /* For safari */
  z-index: var(--z-tooltip);
  transition: bottom 0.4s, transform 0.4s;
}

.scrollup:hover {
  transform: translateY(-0.25rem);
}

/* Show Scroll Up */
.show-scroll {
  bottom: 3rem;
}

/*=============== BREAKPOINTS ===============*/
/* For small devices */
@media screen and (max-width: 340px) {
  .container {
    margin-inline: 1rem;
  }

  .footer__data {
    grid-template-columns: max-content;
  }
}

/* For medium devices */
@media screen and (min-width: 576px) {
  .home__container,
  .about__container,
  .menu__container,
  .location__container {
    grid-template-columns: 600px;
    justify-content: center;
  }

  .about__data,
  .menu__data,
  .location__data {
    margin-inline: 5rem;
  }

  .about__image,
  .about__image1 {
    margin-left: 11%;
    margin-right: 11%;
  }

  .menu__img {
    width: 30rem;
    height: 30rem;
  }

  .carousel-cell {
    height: 30rem;
    width: 30rem;
  }
}

@media screen and (min-width: 768px) {
  .container {
    margin-left: 8rem !important;
  }

  .mobile {
    display: none;
  }

  .desktop {
    display: unset;
  }

  .about__container,
  .menu__container,
  .location__container {
    align-items: center;
  }

  .about__data,
  .menu__data,
  .location__data {
    margin-inline: 2rem;
  }

  .footer__content {
    grid-template-columns: repeat(2, max-content);
    justify-content: space-between;
  }
  .footer__group {
    flex-direction: column;
    justify-content: space-between;
    padding-top: 10rem;
  }
}

/* For large devices */
@media screen and (min-width: 1023px) {
  .nav__close,
  .nav__toggle {
    display: none;
  }

  .nav__list {
    flex-direction: row;
    column-gap: 4rem;
  }

  .section__title {
    font-size: 5rem;
    margin-bottom: 2rem;
  }

  .about__container,
  .menu__container,
  .location__container {
    grid-template-columns: repeat(2, 500px);
  }

  .menu__foto {
    grid-row: 1/2;
  }

  .menu__img,
  .about__img,
  .location__img {
    width: 400px;
    height: 400px;
    box-shadow: rgba(0, 0, 0, 0.8) 0px 5px 15px;
  }

  .section__subtitle {
    margin-bottom: 3rem;
  }

  .linea {
    margin-left: 20rem;
    margin-right: 20rem;
  }

  .gallery {
    margin-top: 2rem;
  }

  .carousel-cell {
    width: 20rem;
    height: 20rem;
  }

  .img__hero {
    height: 16rem;
    width: 24rem;
    position: absolute;
    color: #ffffff;
    top: 30%;
    left: 50%;
    transform: translate(-50%, -50%);
  }
}

@media screen and (min-width: 1151px) {
  .container {
    margin-left: 8rem !important;
  }

  .about,
  .menu,
  .location {
    margin-top: 1rem;
  }

  .button1 {
    margin-top: 2rem;
  }

  .linea {
    margin-top: 6rem;
  }

  .gallery {
    margin-top: 3rem;
  }

  .gallery__container {
    margin-right: 12rem;
  }
}

@media screen and (min-width: 1300px) {
  .container {
    margin-left: 13rem !important;
  }
}
