/* ////////////////// reset styles  */

*,
*::before,
*::after {
  box-sizing: border-box;
}

/* /////////////////// root variables  */
:root {
  --primary-color: #8b5800;
  --secondary-color: #eaefdcc7;
  --font-family: "Roboto", sans-serif;
}

/* /////////////////// base styles  */

.home-body {
  font-family: var(--font-family);
  margin: 0;
  padding: 0;
  line-height: 1.5;
  background: rgba(83, 60, 21, 1);
  background: radial-gradient(
    circle at center bottom,
    rgba(83, 60, 21, 1) 0%,
    rgba(140, 123, 22, 1) 100%
  );
  color: #d2cfcf;
  height: 100vh;
}
.vetrina-body {
  font-family: var(--font-family);
  margin: 0;
  padding: 0;
  line-height: 1.5;
  background-color: var(--primary-color);
}
/* /////////////////// blocchi */

/* /////////////////// element styles */

/* -------------------- div elements */
.div-sfondo {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}

.div-sfondo img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: auto;
  object-fit: cover;
}

.div-titolo {
  position: absolute;
  top: 5%;
  left: 10px;
  font-size: 1rem;
  text-align: left;
}

/* -------------------- menu */

.div-hamburger {
  position: absolute;
  top: 32vh;
  left: 10px;
  text-align: center;
  background-color: var(--secondary-color);
  border-radius: 5px;
  padding: 5px 5px 0 5px;
  &:hover {
    background-color: rgba(182, 190, 158, 0.9);
  }
}
.div-menu {
  display: none;
  flex-direction: column;
  position: absolute;
  top: 30vh;
  padding: 0;
  align-items: flex-start;
}
.ul-menu {
  list-style: none;
}
.ul-menu li {
  margin: 2px 0 2px 0;
  padding: 5px;
  border: 1px solid #000;
  border-radius: 5px;
  background-color: var(--secondary-color);
  color: #000;

  &:nth-child(1) {
    padding: 5px 5px 0 5px;
    border: none;
    width: 42%;
    text-align: center;
  }
  &:hover {
    background-color: rgba(182, 190, 158, 0.9);
  }
  &:nth-child(6) {
    &:hover {
      background-color: var(--secondary-color);
    }
  }
}

/* -------------------- vetrina */
.div-vetrina {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 10px;
  margin: 80px 20px 0 10px;
}
.vetrina-item {
  text-align: center;
}
.vetrina-img {
  border-radius: 10px;
  border: 1px solid #000;
  -webkit-box-shadow:
    0px 10px 13px -7px #000000,
    5px 5px 15px 5px rgba(0, 0, 0, 0);
  box-shadow:
    0px 10px 13px -7px #000000,
    5px 5px 15px 5px rgba(0, 0, 0, 0);
}
/* -------------------- cards container */
.div-cards-container {
  display: grid;
  margin-top: 20px;
  text-align: center;
  justify-content: center;
  align-items: center;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 15px;
  margin-bottom: 10px;
}
.card-item {
  margin: 0 auto;
  width: 300px;
  height: 200px;
  background-color: #e6cda288;
  padding: 5px;
  border-radius: 5px;
  -webkit-box-shadow:
    0px 10px 13px -7px #000000,
    5px 5px 15px 5px rgba(0, 0, 0, 0);
  box-shadow:
    0px 10px 13px -7px #000000,
    5px 5px 15px 5px rgba(0, 0, 0, 0);
  border: 1px solid #000;
  text-align: left;
  &:hover {
    transform: scale(1.05);
    transition: transform 0.3s ease;
  }
  & img {
    justify-content: left;
    border-radius: 5px;
  }
}
/* -------------------- link button styles */

.link-btn {
  color: #393b3d;
  /* Colore del link */
  text-decoration: none;
  /* Rimuove la sottolineatura del link */
  cursor: pointer;
  /* Cambia il cursore al passaggio del mouse */
  margin: 0;
  width: 80%;
  padding: 5px;
  border-radius: 10px;
}

.link-btn:hover {
  text-decoration: underline;
  /* Aggiunge la sottolineatura al passaggio del mouse */
  color: #0056b3;
  /* Cambia il colore del link al passaggio del mouse */
  background-color: #2121214f;
}
/* -------------------- riflessione */
.a-riflessione {
  display: flex;
  margin: 20px auto;
  color: #355677;
  text-decoration: none;
  font-weight: bold;
  background-color: #d3c89a;
  width: fit-content;

  padding: 5px;
  border-radius: 5px;
}
.a-riflessione:hover {
  text-decoration: underline;
  color: #0056b3;
}
.div-riflessione {
  position: block; /* Note: 'block' is not a valid value for 'position'. Consider using 'relative', 'absolute', or 'fixed' instead. */
  margin: 0 auto;
  padding: 20px;
  width: 75vw;
  height: 80vh;
  color: #000;
  background-color: #c7c7c1f5;
  border: 1px solid #000;
  border-radius: 10px;
  z-index: -1;
  text-align: justify;
  display: none;
  overflow: scroll;
}
/* ///////////////////// media queries */

@media (max-width: 850px) {
  .div-titolo {
    top: 10px;
    left: 5px;
    font-size: 0.6rem;
  }
  .div-hamburger {
    top: 20vh;
    left: 5px;
  }
  .div-menu {
    top: 17.6vh;
    left: 0;
  }
  .div-sfondo img {
    height: 100%;
  }
  .div-cards-container {
    display: flex;
    flex-direction: column;
  }
  .card-item {
    width: 90%;
  }
}
@media (max-height: 700px) {
  .div-hamburger {
    top: 45vh;
    left: 10px;
  }
  .div-menu {
    top: 45vh;
    left: 10px;
  }
}
