/*=============== VARIABLES CSS ===============*/
:root {
  --header-height: 3.5rem;

  /*========== Colors ==========*/
  /*Color mode HSL(hue, saturation, lightness)*/
  --first-color: hsl(353, 93%, 50%);
  --first-color-alt: hsl(353, 93%, 46%);
  --first-color-dark: hsl(353, 50%, 15%);
  --title-color: hsl(353, 48%, 12%);
  --text-color: hsl(353, 16%, 32%);
  --text-color-light: hsl(353, 16%, 48%);
  --white-color: hsl(24, 86%, 90%);
  --body-color: hsl(24, 86%, 88%);
  --container-color: hsl(24, 86%, 92%);
  --shadow-small-img: drop-shadow(0 4px 16px hsla(353, 100%, 8%, .2));
  --shadow-big-img: drop-shadow(0 8px 24px hsla(353, 100%, 8%, .2));

  /*========== Font and typography ==========*/
  /*.5rem = 8px | 1rem = 16px ...*/
  --body-font: "Montserrat", sans-serif;
  --second-font: "Carter One", system-ui;
  --biggest-font-size: 2.5rem;
  --bigger-font-size: 1.5rem;
  --h1-font-size: 1.5rem;
  --h2-font-size: 1.25rem;
  --h3-font-size: 1rem;
  --normal-font-size: .938rem;
  --small-font-size: .813rem;
  --smaller-font-size: .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: 1150px) {
  :root {
    --biggest-font-size: 4.25rem;
    --bigger-font-size: 2.5rem;
    --h1-font-size: 2.25rem;
    --h2-font-size: 1.5rem;
    --h3-font-size: 1.25rem;
    --normal-font-size: 1rem;
    --small-font-size: .875rem;
    --smaller-font-size: .813rem;
  }
}

/*=============== BASE ===============*/
* {
  box-sizing: border-box;
  padding: 0;
  margin: 0;
}

html {
  scroll-behavior: smooth;
}

input,
button,
body {
  font-family: var(--body-font);
  font-size: var(--normal-font-size);
}

body {
  background-color: var(--body-color);
  color: var(--text-color);
}

input,
button {
  outline: none;
  border: none;
}

h1,
h2,
h3,
h4 {
  color: var(--title-color);
  font-weight: var(--font-regular);
  font-family: var(--second-font);
  line-height: 120%;
}

ul {
  list-style: none;
}

a {
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

/*=============== REUSABLE CSS CLASSES ===============*/
.container {
  max-width: 1120px;
  margin-inline: 1.5rem;
}

.grid {
  display: grid;
  gap: 1.5rem;
}

.section {
  padding-block: 5rem 1rem;
  scroll-margin-top: 4rem;
}

.section__title {
  text-align: center;
  font-size: var(--bigger-font-size);
  margin-bottom: 2rem;
}

.main {
  overflow: hidden;
}

/*=============== HEADER & NAV ===============*/
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: var(--body-color);
  z-index: var(--z-fixed);
  transition: box-shadow .4s;
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: var(--header-height);
}

.nav__logo {
  display: flex;
  align-items: center;
  column-gap: .5rem;
  color: var(--title-color);
  font-family: var(--second-font);
  font-size: var(--h3-font-size);
}

.nav__logo-img {
  width: 2rem;
}

.nav__close,
.nav__toggle {
  display: flex;
  font-size: 1.5rem;
  color: var(--title-color);
  cursor: pointer;
}

/* Navigation for mobile devices */
@media screen and (max-width: 1150px) {
  .nav__menu {
    position: fixed;
    top: 0;
    right: -100%;
    background-color: var(--body-color);
    width: 80%;
    height: 100%;
    padding: 4.5rem 0 0 3rem;
    z-index: var(--z-fixed);
    transition: right .4s;
    box-shadow: -2px 0 16px hsla(353, 100%, 8%, .15);
  }
}

.nav__list {
  display: flex;
  flex-direction: column;
  row-gap: 2.5rem;
}

.nav__link {
  color: var(--title-color);
  font-weight: var(--font-semi-bold);
  transition: color .4s;
  position: relative;
}

.nav__link:hover {
  color: var(--first-color);
}

.nav__close {
  position: absolute;
  top: 1rem;
  right: 1.5rem;
}

/* Show menu */
.show-menu {
  right: 0;
}

/* Add shadow header */
.shadow-header {
  box-shadow: 0 2px 16px hsla(353, 100%, 8%, .1);
}

/* Active link */
.active-link {
  color: var(--first-color);
}

.active-link::after {
  content: "";
  position: absolute;
  bottom: -.35rem;
  left: 0;
  width: 100%;
  height: 3px;
  background-color: var(--first-color);
  border-radius: 4px;
}

/*=============== HOME ===============*/
.home {
  min-height: 100vh;
  padding-block: 5rem 3rem;
  display: flex;
  align-items: center;
  position: relative;
}

.home__container {
  row-gap: 2rem;
  padding-top: 1rem;
}

.home__data {
  text-align: left;
}

.home__title {
  font-size: var(--biggest-font-size);
  color: var(--first-color-dark);
  margin-bottom: 1rem;
}

.home__description {
  font-size: 1.1rem;
  margin-bottom: 2rem;
}

.home__images {
  position: relative;
  display: grid;
  justify-items: center;
  justify-self: center;
  width: 220px;
  height: 220px;
}

.home__board {
  position: absolute;
  width: 210px;
  max-width: none;
  top: 35%;
  left: 55%;
  z-index: 1;
  filter: var(--shadow-big-img);
  opacity: 0;
  animation: board-appear 0.8s ease-out 0.2s forwards;
}

.home__pizza {
  width: 200px;
  max-width: none;
  z-index: 2;
  position: absolute;
  top: 50%;
  left: 55%;
  filter: var(--shadow-small-img);
  opacity: 0;
  animation: pizza-appear 0.8s ease-out 0.8s forwards;
}

@keyframes board-appear {
  0% {
    opacity: 0;
    transform: translate(80%, -50%);
  }

  100% {
    opacity: 1;
    transform: translate(-50%, -50%);
  }
}

@keyframes pizza-appear {
  0% {
    opacity: 0;
    transform: translate(-50%, 20%) rotate(0deg);
  }

  100% {
    opacity: 1;
    transform: translate(-50%, -50%) rotate(180deg);
  }
}

@keyframes ingredient-appear {
  0% {
    opacity: 0;
    transform: translateY(-30px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.home__leaf {
  position: absolute;
  z-index: 3;
  width: 70px;
  opacity: 0;
  animation: ingredient-appear 0.6s ease-out both, float 3s ease-in-out infinite;
}

.home__leaf-1 {
  top: 25px;
  left: 130px;
  animation-delay: 1.8s, 2.4s;
}

.home__leaf-2 {
  bottom: 25px;
  right: 170px;
  animation-delay: 2.2s, 2.8s;
}

.home__tomato,
.home__mushroom,
.home__olive,
.home__pepperoni {
  position: absolute;
  z-index: 3;
  opacity: 0;
}

.home__tomato {
  width: 65px;
  top: 75px;
  right: 35px;
  animation: ingredient-appear 0.6s ease-out both, float 3s ease-in-out infinite;
  animation-delay: 1.9s, 2.5s;
}

.home__mushroom {
  width: 60px;
  bottom: 75px;
  left: 60px;
  animation: ingredient-appear 0.6s ease-out both, float 3.5s ease-in-out infinite;
  animation-delay: 2.4s, 3s;
}

.home__olive {
  width: 55px;
  top: 160px;
  left: 50px;
  animation: ingredient-appear 0.6s ease-out both, float 3s ease-in-out infinite;
  animation-delay: 2.6s, 3.2s;
}

.home__pepperoni {
  width: 58px;
  bottom: 90px;
  right: 25px;
  animation: ingredient-appear 0.6s ease-out both, float 3.5s ease-in-out infinite;
  animation-delay: 2.8s, 3.4s;
}

.home__sticker-leaf {
  position: absolute;
  width: 70px;
  opacity: 0;
  animation: ingredient-appear 0.6s ease-out both, float 4s ease-in-out infinite;
}

.home__sticker-pizza {
  position: absolute;
  width: 70px;
  opacity: 0;
  animation: ingredient-appear 0.6s ease-out both;
}

.home__sticker-leaf {
  left: 25%;
  bottom: 25%;
  animation-delay: 1.7s, 2.3s;
}

.home__sticker-pizza {
  left: 38%;
  top: 30%;
  animation-delay: 1.6s;
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-8px);
  }
}

@keyframes pizza-spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(-360deg);
  }
}

/*=============== BUTTON ===============*/
.button {
  display: inline-flex;
  background-color: var(--first-color);
  color: var(--white-color);
  font-weight: var(--font-semi-bold);
  padding: .75rem 1.5rem;
  border-radius: 4rem;
  transition: box-shadow .4s, background-color .4s;
  box-shadow: 0 8px 24px hsla(353, 93%, 50%, .3);
}

.button:hover {
  background-color: var(--first-color-alt);
  box-shadow: 0 8px 32px hsla(353, 93%, 50%, .4);
}

/*=============== ABOUT ===============*/
.about {
  background-color: #F8E5D3;
}

.about .section__title {
  font-size: var(--biggest-font-size);
}

.about__container {
  row-gap: 2.5rem;
}

.about__images {
  position: relative;
  display: grid;
  justify-items: center;
}

.about__img {
  width: 320px;
  filter: var(--shadow-big-img);
  transform: rotate(-5deg);
}

.about__sticker {
  position: absolute;
  width: 70px;
  top: 0;
  right: 10px;
  opacity: .6;
  animation: float 3s ease-in-out infinite;
}

.about__data {
  text-align: center;
}

.about__description {
  margin-bottom: 2rem;
}

/* ===== FIX CENTRATURA SEZIONE POPULAR ===== */
.popular__container {
  max-width: 1150px;
  margin: 0 auto;
  padding: 0 1.5rem;
  width: 100%;
  box-sizing: border-box;
}

.popular__data,
.popular__slider {
  width: 100%;
  max-width: 100%;
}

.popular__swiper {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  position: relative;
  z-index: 5;
  padding: 2rem 0 10rem;
  margin: 0 auto;
}

.popular__data .section__title {
  margin-bottom: 1rem;
  font-size: var(--biggest-font-size);
}

.popular__description {
  margin-bottom: 2rem;
}

.popular__data .section__title,
.popular__description {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.popular__slider {
  position: relative;
  display: block;
  min-height: 510px;
  margin: 0 auto;
  overflow: visible;
}

.popular__dish {
  position: absolute;
  width: 206px;
  left: 50%;
  top: 40%;
  transform: translate(-50%, -50%);
  z-index: 0;
  pointer-events: none;
  filter: var(--shadow-big-img);
  opacity: 0;
  animation: board-appear 0.8s ease-out 0.2s forwards;
}

.popular__swiper .swiper-wrapper {
  padding: 1rem 0;
}

.swiper-slide {
  position: relative !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center;
  align-items: center;
  overflow: visible !important;
}

.popular__card {
  position: relative;
  z-index: 1;
  text-align: center;
  opacity: 1;
  transform: scale(1);
  transition: all 0.3s ease;
  visibility: visible;
}

.swiper-slide-active {
  opacity: 1;
  transform: scale(1);
  z-index: 20;
}

.popular__img {
  width: 220px;
  margin: 0 auto;
  transition: all 0.3s ease;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
  opacity: 1;
}

  .swiper-slide-active .popular__img {
    width: 620px;
    transform: rotate(90deg);
  }

.popular__title {
  opacity: 0;
}

  .swiper-slide-active .popular__title {
  font-size: 1.5rem;
  color: var(--first-color);
  opacity: 1;
}

.swiper-pagination {
  bottom: 0 !important;
}

@media screen and (max-width: 575px) {
  .swiper-pagination {
    bottom: -20px !important;
  }
}

.swiper-pagination-bullet {
  background-color: var(--text-color-light);
}

.swiper-pagination-bullet-active {
  background: var(--first-color) !important;
}

@media screen and (min-width: 768px) {
  .popular__dish {
    width: 360px;
  }

  .popular__img {
    width: 240px;
  }

  .swiper-slide-active .popular__img {
    width: 420px;
  }
}

@media screen and (min-width: 1150px) {
  .popular__dish {
    width: 340px;
    margin-top: -37px;
  }

  .popular__img {
    width: 220px;
    margin-top: 1.5rem;
  }

  .swiper-slide-active .popular__img {
    width: 400px;
    opacity: 1;
    margin-top: 0;
  }

  .swiper-slide-active .popular__title {
    font-size: 1.8rem;
    color: var(--first-color);
    opacity: 1;
    transform: translateY(1.5rem);
    margin-bottom: 2rem;
  }
}

@media screen and (max-width: 575px) {
  .popular__slider {
    min-height: 420px;
  }

  .popular__swiper {
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    padding: 0 !important;
    width: 330px !important;
    height: 370px !important;
    max-width: none !important;
    overflow: visible !important;
  }

  .popular__swiper .swiper-wrapper {
    padding: 0 !important;
  }

  .popular__dish {
    width: 320px !important;
    left: calc(50% + 2px) !important;
    top: calc(42% + 5px) !important;
  }

  .popular__img {
    width: 220px !important;
    margin-top: -30px !important;
    opacity: 1 !important;
  }

  .swiper-slide-active .popular__img {
    width: 380px !important;
    margin-top: 0px !important;
    opacity: 1 !important;
  }

  .popular__title {
    font-size: 0.8rem;
    margin-top: 0.3rem;
  }

  .swiper-slide-active .popular__title {
    font-size: 1.3rem;
    margin-top: 2rem;
  }

}

/*=============== RECIPE ===============*/
.recipe {
  background-color: var(--container-color);
}

/*=============== RECIPE ===============*/
.recipe__container {
  row-gap: 2rem;
  padding-bottom: 1rem;
}

.recipe__list {
  display: grid;
  gap: 2rem;
}

.recipe__item {
  display: flex;
  align-items: center;
  column-gap: 1rem;
}

.recipe__icon {
  width: 60px;
}

.recipe__name {
  font-size: var(--h3-font-size);
  margin-bottom: .25rem;
}

.recipe__description {
  font-size: var(--small-font-size);
}

.recipe__images {
  position: relative;
  display: grid;
  justify-items: center;
  justify-self: center;
}

.recipe__img {
  width: 300px;
  filter: var(--shadow-big-img);
}

.recipe__sticker {
  position: absolute;
  width: 35px;
  animation: float 3s ease-in-out infinite;
}

.recipe__sticker-1 {
  top: 0;
  right: 0;
  animation-delay: 0s;
}

.recipe__sticker-2 {
  bottom: 40px;
  left: -10px;
  animation-delay: .5s;
}

.recipe__sticker-3 {
  top: 50px;
  left: 0;
  animation-delay: 1s;
}

.recipe__sticker-4 {
  top: 25%;
  right: -10px;
  animation-delay: 1.5s;
}

.recipe__sticker-5 {
  bottom: 0;
  right: 30px;
  animation-delay: 2s;
}

/*=============== PRODUCTS ===============*/
.products__container {
  padding-top: .5rem;
}

.products__card {
  background-color: var(--container-color);
  border-radius: 1.5rem;
  padding: 0 1rem 1.5rem;
  transition: box-shadow .4s;
}

.products__card:hover {
  box-shadow: 0 8px 24px hsla(353, 100%, 8%, .15);
}

.products__img {
  width: 200px;
  margin: 0 auto;
  filter: var(--shadow-small-img);
  transform: translateY(-1.5rem);
  transition: transform .4s;
}

.products__card:hover .products__img {
  transform: translateY(-2rem);
}

.products__data {
  display: grid;
  grid-template-columns: 1fr max-content;
  align-items: center;
  gap: .5rem;
}

.products__name {
  font-size: var(--h3-font-size);
}

.products__price {
  color: var(--first-color);
  font-family: var(--second-font);
  font-size: var(--h2-font-size);
  grid-column: 1 / 2;
}

.products__button {
  grid-column: 2 / 3;
  grid-row: 1 / 3;
  width: 2.5rem;
  height: 2.5rem;
  background-color: var(--first-color);
  color: var(--white-color);
  border-radius: .75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  cursor: pointer;
  transition: background-color .4s;
}

.products__button:hover {
  background-color: var(--first-color-alt);
}

/*=============== CONTACT ===============*/
.contact__container {
  padding-bottom: 1rem;
}

.contact__content {
  background-color: #391318;
  border-radius: 4rem;
  padding: 3rem 3rem 0 3rem;
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto 1fr;
  position: relative;
  overflow: hidden;
}

.contact__img-wrap {
  grid-column: 1/2;
  grid-row: 1/3;
  align-self: end;
  position: relative;
}

.contact__img {
  width: 340px;
  filter: var(--shadow-big-img);
}

.contact__sticker {
  position: absolute;
}

.contact__sticker-1 {
  width: 50px;
  top: 2rem;
  right: 1rem;
}

.contact__sticker-2 {
  width: 40px;
  top: 3rem;
  right: 3rem;
}

.contact__sticker-3 {
  width: 45px;
  bottom: 3rem;
  left: 1rem;
}

.contact__content .section__title {
  margin-top: 3rem;
  margin-left: 8rem;
  text-align: left;
  color: var(--white-color);
}

.contact__info {
  grid-column: 2/3;
  grid-row: 2/3;
  align-self: start;
  margin-left: 8rem;
  padding: 1.5rem 1.5rem 0 0;
}

.contact__row {
  display: flex;
  gap: .75rem;
}

.contact__col {
  display: flex;
  flex-direction: column;
  gap: .75rem;
}

.contact__col-delivery {
  margin-left: 0;
}

.contact__group-location {
  margin-top: 2rem;
}

.contact__group {
  display: flex;
  flex-direction: column;
  gap: .5rem;
}

.contact__title {
  font-size: var(--h2-font-size);
  color: var(--white-color);
  margin-bottom: 0.5rem;
}

.contact__address {
  font-size: var(--normal-font-size);
  color: var(--white-color);
  display: block;
}

.contact__map-link {
  font-size: var(--small-font-size);
  color: var(--first-color);
  font-weight: var(--font-semi-bold);
  transition: color 0.4s;
}

.contact__map-link:hover {
  color: var(--first-color-alt);
}

.contact__social {
  display: flex;
  column-gap: 0.75rem;
}

.contact__social-link {
  display: inline-flex;
  font-size: 1.5rem;
  color: var(--first-color);
  transition: color 0.4s, transform 0.4s;
}

.contact__social-link:hover {
  color: var(--first-color-alt);
  transform: translateY(-0.25rem);
}

/*=============== FOOTER ===============*/
.footer {
  padding-block: .5rem 2rem;
  overflow: hidden;
}

.footer__container {
  row-gap: 3rem;
}

.footer__section {
  text-align: center;
}

.footer__logo {
  display: inline-flex;
  align-items: center;
  column-gap: 0.5rem;
  color: var(--title-color);
  font-family: var(--second-font);
  font-size: var(--h3-font-size);
  margin-bottom: 1rem;
}

.footer__logo-img {
  width: 2rem;
}

.footer__description {
  font-size: var(--small-font-size);
}

.footer__title {
  font-size: var(--h3-font-size);
  margin-bottom: 1rem;
}

.footer__social {
  display: flex;
  justify-content: center;
  column-gap: 1rem;
}

.footer__social-link {
  display: inline-flex;
  font-size: 2rem;
  color: var(--first-color);
  transition: color 0.4s, transform 0.4s;
}

.footer__social-link:hover {
  color: var(--first-color);
  transform: translateY(-0.25rem);
}

.footer__form {
  position: relative;
}

.footer__input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.footer__input {
  width: 100%;
  padding: 1rem 1.5rem;
  border-radius: 4rem;
  border: none;
  background-color: var(--white-color);
  box-shadow: 0 2px 8px hsla(0, 0%, 0%, .15);
  padding-right: 8rem;
}

.footer__input::placeholder {
  color: var(--text-color-light);
}

.footer__button {
  position: absolute;
  right: 0.5rem;
  top: 50%;
  transform: translateY(-50%);
  padding: 0.75rem 1.5rem;
  white-space: nowrap;
  cursor: pointer;
}

.footer__payment {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer__card {
  width: 40px;
}

.footer__copy {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  padding-top: 2rem;
  margin-top: 3rem;
  border-top: 1px solid var(--text-color-light);
  font-size: var(--small-font-size);
  color: var(--text-color-light);
  text-align: center;
  gap: 1rem;
}

.footer__links {
  display: flex;
  column-gap: 1.5rem;
}

.footer__link {
  color: var(--text-color-light);
  transition: color 0.4s;
}

.footer__link:hover {
  color: var(--first-color);
}

.footer__copy-text {
  font-size: var(--small-font-size);
  color: var(--text-color-light);
}

/*=============== SCROLL BAR ===============*/
::-webkit-scrollbar {
  width: .6rem;
  background-color: hsl(24, 32%, 80%);
}

::-webkit-scrollbar-thumb {
  background-color: hsl(24, 32%, 65%);
  border-radius: .5rem;
}

::-webkit-scrollbar-thumb:hover {
  background-color: hsl(24, 32%, 55%);
}

/*=============== SCROLL UP ===============*/
.scrollup {
  position: fixed;
  right: 1rem;
  bottom: -50%;
  background-color: var(--first-color);
  color: var(--white-color);
  display: inline-flex;
  padding: .5rem;
  border-radius: .5rem;
  font-size: 1.15rem;
  z-index: var(--z-tooltip);
  transition: bottom .4s, background-color .4s;
  box-shadow: 0 4px 16px hsla(353, 93%, 50%, .3);
}

.scrollup:hover {
  background-color: var(--first-color-alt);
}

/* Show Scroll Up */
.show-scroll {
  bottom: 3rem;
}

/*=============== BREAKPOINTS ===============*/
/* For small devices */
@media screen and (max-width: 340px) {
  .container {
    margin-inline: 1rem;
  }

  .home__images {
    width: 190px;
    height: 190px;
  }

  .home__board {
    width: 180px;
  }

  .home__pizza {
    width: 170px;
  }

  .recipe__img {
    width: 260px;
  }

  .products__container {
    grid-template-columns: 1fr;
  }

  .contact__content {
    padding: 2rem 1.5rem 0 1.5rem;
    grid-template-columns: 1fr;
    display: flex;
    flex-direction: column;
  }

  .contact__img-wrap {
    grid-column: 1/2;
    grid-row: auto;
  }

  .contact__img {
    width: 280px;
  }

  .contact__info {
    grid-column: 1/2;
    grid-row: auto;
    margin-left: 0;
    padding: 1rem 0 0 0;
  }

  .contact__content .section__title {
    margin-left: 0;
    margin-top: 1rem;
  }

  .contact__row {
    flex-direction: column;
    gap: 1.5rem;
  }

  .contact__col-delivery {
    margin-left: 0;
  }

  .footer__container {
    text-align: center;
  }

  .footer__social {
    justify-content: center;
  }

  .footer__payment {
    justify-content: center;
  }

  .footer__copy {
    flex-direction: column;
    justify-content: center;
  }

  .footer__links {
    justify-content: center;
  }
}

@media screen and (min-width: 576px) {
  .home__container {
    grid-template-columns: 1fr 1fr;
    align-items: center;
    column-gap: 2rem;
  }

  .home__data {
    text-align: initial;
    align-self: start;
    margin-left: -10rem;
  }

  .nav__logo {
    margin-left: -10rem;
  }

  .home__images {
    width: 280px;
    height: 280px;
  }

  .home__board {
    width: 320px;
  }

  .home__pizza {
    width: 310px;
  }

  .about__container {
    grid-template-columns: 380px;
    justify-content: center;
  }

  .recipe__container {
    grid-template-columns: 400px;
    justify-content: center;
  }

  .products__container {
    grid-template-columns: repeat(2, 200px);
    justify-content: center;
  }

  .contact__row {
    flex-direction: row;
    gap: 2rem;
  }


}

/* For medium devices */
@media screen and (min-width: 768px) {
  .nav__menu {
    width: 50%;
  }

  .contact__content {
    grid-template-columns: auto 1fr;
    padding: 3rem 3rem 0 3rem;
  }

  .contact__img {
    width: 340px;
  }

  .contact__info {
    margin-left: 2rem;
    padding: 1rem 1rem 0 0;
  }

  .contact__content .section__title {
    margin-left: 2rem;
  }

  .products__container {
    grid-template-columns: repeat(3, 200px);
  }

  .footer__container {
    grid-template-columns: repeat(3, 1fr);
  }

  .footer__section:first-child {
    grid-column: 1 / -1;
  }
}

@media screen and (min-width: 900px) {
  .about__container {
    grid-template-columns: 1fr 1fr;
    align-items: center;
  }

  .about__data {
    text-align: initial;
  }

  .about__img {
    width: 400px;
  }

  .about__sticker {
    width: 90px;
    right: 60px;
  }

  .recipe__container {
    grid-template-columns: 1fr 1fr;
    align-items: center;
  }

  .contact__img {
    width: 340px;
  }

  .contact__info {
    margin-left: 5rem;
    padding: 1.5rem 1rem 0 0;
  }

  .contact__content .section__title {
    margin-left: 5rem;
  }
}

/* For large devices */
@media screen and (min-width: 1150px) {
  .container {
    margin-inline: auto;
  }

  .nav {
    height: calc(var(--header-height) + 2rem);
  }

  .nav__toggle,
  .nav__close {
    display: none;
  }

  .nav__menu {
    width: initial;
  }

  .nav__list {
    flex-direction: row;
    column-gap: 3.5rem;
  }

  .active-link::after {
    bottom: -.5rem;
  }

  .section {
    padding-block: 7rem 2rem;
  }

  .section__title {
    margin-bottom: 3rem;
  }

  .home__container {
    column-gap: 4rem;
  }

  .home__description {
    font-size: 1.25rem;
  }

  .home__data {
    position: relative;
  }

  .home__sticker-title {
    position: absolute;
    width: 50px;
    bottom: -15px;
    right: 100px;
    opacity: .6;
  }

  .home__images {
    width: 460px;
    height: 460px;
    transform: translate(-30px, 30px);
  }

  .home__board {
    width: 580px;
  }

  .home__pizza {
    width: 570px;
  }

  .home__leaf {
    width: 95px;
  }

  .home__tomato {
    width: 90px;
  }

  .home__mushroom {
    width: 80px;
  }

  .home__olive {
    width: 75px;
  }

  .home__pepperoni {
    width: 78px;
  }

  .home__sticker-leaf,
  .home__sticker-pizza {
    width: 60px;
  }

  .about__img {
    width: 480px;
  }

  .about__sticker {
    width: 120px;
  }

  .recipe__img {
    width: 420px;
  }

  .recipe__sticker {
    width: 45px;
  }

  .products__container {
    grid-template-columns: repeat(3, 280px);
    gap: 4rem 2.5rem;
  }

  .popular__description {
    max-width: 600px;
  }

  .products__img {
    width: 250px;
  }

  .contact__content {
    padding: 3rem 4rem 0 4rem;
    column-gap: 3rem;
  }

  .contact.section {
    padding-block: 4rem 2rem;
  }

  .contact__img {
    width: 340px;
  }

  .contact__info {
    margin-left: 8rem;
    padding: 1.5rem 1.5rem 0 0;
  }

  .contact__content .section__title {
    margin-left: 8rem;
  }

  .contact__sticker-2 {
    top: 3rem;
    right: 3rem;
  }

  .footer__container {
    grid-template-columns: repeat(3, 1fr);
    text-align: initial;
  }

  .footer__section:first-child {
    grid-column: 1 / -1;
  }

  .footer__section:not(:first-child) {
    text-align: initial;
  }

  .footer__social {
    justify-content: initial;
  }

  .footer__payment {
    justify-content: initial;
  }

  .footer__copy {
    flex-direction: column;
    justify-content: center;
  }

  .footer__links {
    justify-content: center;
  }

  .scrollup {
    right: 3rem;
  }
}

/* === HOME MOBILE (max-width: 430px) === */
@media screen and (max-width: 430px) {
  .about__container {
    display: flex;
    flex-direction: column;
  }

  .about__data {
    order: 1;
  }

  .about__images {
    order: 2;
  }

  .home {
    padding-block: 5rem 1rem;
    min-height: 731px;
  }

  .home .home__container {
    width: 382px;
    min-height: 731px;
    margin: 0 auto;
    display: flex !important;
    flex-direction: column;
    align-items: center;
    padding: 0;
  }

  .home__data {
    width: 382px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-left: 0;
  }

  .home__title {
    font-family: "Carter One", system-ui;
    font-weight: 400;
    font-size: 40px;
    line-height: 48px;
    color: rgb(45, 16, 19);
    text-align: center;
    margin-bottom: 0.5rem;
  }

  .home__description {
    font-family: "Montserrat", sans-serif;
    font-weight: 400;
    font-size: 15px;
    line-height: normal;
    color: rgb(95, 69, 72);
    text-align: center;
    margin-bottom: 1rem;
  }

  .home .button {
    margin-bottom: 0;
  }

  .home__images {
    width: 382px;
    height: 335px;
    position: relative;
    margin-top: 0;
    display: block;
    padding-top: 87px;
  }

  .home__board {
    width: 290px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    margin: 0;
  }

  .home__pizza {
    width: 300px;
    height: auto;
    position: absolute;
    top: 60%;
    left: 50%;
    transform: translate(-50%, -50%);
    margin: 0;
  }

  .home__leaf {
    width: 45px;
  }

  .home__leaf-1 {
    top: 50px;
    left: 150px;
  }

  .home__leaf-2 {
    width: 38px;
    bottom: 50px;
    left: 40px;
  }

  .home__tomato {
    width: 40px;
    top: 90px;
    right: 60px;
  }

  .home__mushroom {
    width: 45px;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    right: auto;
  }

  .home__olive {
    width: 35px;
    top: 120px;
    left: 45px;
  }

  .home__pepperoni {
    width: 36px;
    bottom: 60px;
    right: 55px;
  }

  .home__sticker-leaf,
  .home__sticker-pizza {
    width: 45px;
  }

  .home__sticker-pizza {
    bottom: 30px;
    right: 30px;
    left: auto;
    top: auto;
  }

  .home__sticker-leaf {
    top: 0;
    left: 0;
    bottom: auto;
    filter: brightness(1.3);
  }

  .home__sticker-leaf,
  .home__sticker-pizza {
    animation: none;
    opacity: 1;
  }

  .home__sticker-title {
    display: none;
  }

  .about__sticker {
    top: 20px;
  }

  .products__container {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-inline: 0;
  }

  .products {
    padding-inline: 24px;
  }

  .products__img {
    width: 100%;
    max-width: 120px;
  }

  .products__card {
    padding: 0 .5rem 1rem;
  }

  .footer__copy {
    flex-direction: column;
    justify-content: center;
    padding-inline: 24px;
  }

  .footer__links {
    justify-content: center;
  }
}

/* === CONTACT MOBILE (max-width: 430px) === */
@media screen and (max-width: 430px) {
  .contact {
    padding-top: 80px;
    height: 957px;
    min-height: 957px;
    padding-inline: 24px;
  }

  .contact .section__title {
    margin-top: 40px;
    margin-left: 0;
    text-align: center;
    margin-bottom: 24px;
  }

  .contact__container {
    max-width: 382px;
    width: 100%;
    margin: 0 auto;
    height: 861px;
    min-height: 861px;
    padding-inline: 0;
  }

  .contact__content {
    padding: 0;
    border-radius: 2rem;
    display: flex;
    flex-direction: column;
    height: 861px;
    overflow: hidden;
  }

  .contact__info {
    margin-left: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 24px;
    order: 1;
    flex-shrink: 0;
    width: 100%;
  }

  .contact__row {
    flex-direction: column;
    gap: 24px;
    width: 100%;
  }

  .contact__col {
    gap: 24px;
    width: 100%;
  }

  .contact__group-location {
    margin-top: 0;
  }

  .contact__group {
    gap: 0.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .contact__title {
    margin-bottom: 0.25rem;
    text-align: center;
  }

  .contact__address {
    text-align: center;
    display: block;
  }

  .contact__map-link {
    text-align: center;
    display: block;
  }

  .contact__social {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
  }

  .contact__img-wrap {
    position: relative;
    align-self: center;
    order: 2;
    margin-top: auto;
    flex-shrink: 0;
  }

  .contact__img {
    width: 300px;
    height: auto;
    display: block;
  }

  .contact__sticker-1 {
    width: 40px;
    top: 1rem;
    right: -0.5rem;
  }

  .contact__sticker-2 {
    width: 35px;
    top: 1.5rem;
    right: 1.5rem;
  }

  .contact__sticker-3 {
    width: 35px;
    bottom: 1.5rem;
    left: 0;
  }
}

/* === Centra titolo e dati Popular su mobile === */
@media screen and (max-width: 576px) {
  #popular .popular__data {
    text-align: center;
    width: 100%;
    margin: 0;
    padding: 0;
  }

  #popular .section__title {
    text-align: center;
    width: 100%;
    max-width: 100%;
    margin-inline: auto;
    display: block;
    box-sizing: border-box;
  }

  #popular .container {
    margin-inline: auto;
    padding-left: 1rem;
    padding-right: 1rem;
  }

}