/* RESET DI BASE */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: Arial, sans-serif;
  line-height: 1.5;
}

i {
  color: white;
}

/* header */

header {
  background: #ff6900;
  color: white;
}

.navbar-container {
  padding: 12px;
  display: flex;
  align-items: center;
  margin: 0 auto;
  justify-content: space-around;
  max-width: 100%;
}

.menu {
  width: 25%;
  display: flex;
  justify-content: center;
}

.logo {
  width: 50%;
  display: flex;
  justify-content: center;
}

.nav-social-icon {
  width: 25%;
  display: flex;
  justify-content: center;
}

.logo a {
  display: flex;
  justify-content: center;
}

.logo img {
  width: 20%;
}

.nav-social-icon a {
  margin: 8px;
}

.menu ul {
  display: inline-flex;
  list-style: none;
}
.menu ul li {
  margin: 6px;
}

.menu a {
  text-decoration: none;
  color: #fff;
  font-size: 16px;
  font-weight: bold;
}

/* header end */

/* main grid & card */

.card-grid {
  margin: 40px auto;
  width: 60%;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 16px;
  align-items: center;
  justify-content: center;
}

.item-card {
  position: relative;
  background: #fff;
  width: 480px;
  margin-top: 20px;
}

.image-container img {
  width: 100%;
  position: relative;
  transition: opacity 0.2s ease;
  z-index: 0;
}

.sconto {
  position: absolute;
  bottom: 120px;
  left: 0px;
  padding: 0.3rem 0.5rem;
  font-size: 0.8rem;
  font-weight: bold;
  color: white;
  background: red;
}

.sostenibilità {
  position: absolute;
  bottom: 120px;
  left: 48px;
  padding: 0.3rem 0.5rem;
  font-size: 0.8rem;
  font-weight: bold;
  color: white;
  background: green;
}
.only-sostenibilità {
  position: absolute;
  bottom: 120px;
  left: 0;
  padding: 0.3rem 0.5rem;
  font-size: 0.8rem;
  font-weight: bold;
  color: white;
  background: green;
}

.preferiti {
  position: absolute;
  top: 10px;
  right: 0;
  width: 40px;
  height: 40px;
  background-color: white;
  border: #fff;
  font-size: 30px;
  z-index: 1;
}

.image-container .img2 {
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
}

.image-container:hover img {
  opacity: 0;
}

.image-container:hover .img2 {
  opacity: 1;
}

.brand {
  color: grey;
  font-weight: 700;
}

.new-price {
  color: red;
  font-weight: 700;
}

.old-price {
  text-decoration-line: line-through;
  color: grey;
  font-weight: 700;
  margin-left: 4px;
}

/* footer section */

footer {
  background: #2e2d2d;
  color: #fff;
  display: flex;
  justify-content: space-between;
  padding: 20px 50px 20px 50px;
}

.footer-text {
  margin-left: 180px;
}
.footer-text a {
  color: white;
  text-decoration: none;
  margin-right: 6px;
}

.footer-social {
  margin-right: 180px;
  text-align: center;
}

.footer-icons i {
  padding: 2px;
}
