/*=============== VARIABLES CSS ===============*/
:root {
  /*========== Colors ==========*/
  /*Color mode HSL(hue, saturation, lightness)*/
  --main-font: hsl(0, 0%, 0%);
  --lighter-main-font: hsl(0, 0%, 15%);
  --body-bg-color: hsl(38, 35%, 92%);
  --radial-bg: radial-gradient(hsl(43, 61%, 81%) 70%, hsl(44, 22%, 56%));
  --italy-red: hsl(356.86, 72.27%, 46.67%);
  --italy-green: hsl(149.57, 100%, 27.45%);

  /*========== Font and typography ==========*/
  /*.5rem = 8px | 1rem = 16px ...*/
  --body-font: "Space Grotesk", sans-serif;
  /* Body / Base */
  --body-font-size: clamp(0.95rem, 0.9rem + 0.4vw, 1.1rem);

  /* Headings */
  --h1-font-size: clamp(1.8rem, 1.4rem + 2.2vw, 3rem);
  --h2-font-size: clamp(1.5rem, 1.25rem + 1.8vw, 2.4rem);
  --h3-font-size: clamp(1.25rem, 1.1rem + 1.2vw, 1.8rem);

  /* Optional */
  --small-font-size: clamp(0.8rem, 0.75rem + 0.3vw, 0.95rem);
  --text-shadow: -2px 3px var(--bg-color);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  overflow-x: hidden;
}

body {
  background-color: var(--body-bg-color);
  color: var(--main-font);
  font-size: var(--body-font-size);
  font-family: var(--body-font);
}

.bold {
  font-weight: 700;
}

/* CSS HEADER */

.hero-section {
  background: var(--radial-bg);
  height: auto;
  width: 100%;
  border-bottom: 3px solid black;
}

.header-top {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  width: 96%;
  margin: 0 auto;
}

.left-header-top,
.right-header-top {
  /* border: 1px black solid; */
  margin-top: 30px;
}

.left-header-top {
  display: flex;
  flex: 0 0 60%;
  align-items: center;
  padding-left: 20px;
}

.right-header-top {
  display: flex;
  flex: 0 0 40%;
  justify-content: center;
  align-items: center;
}

#Liguria-Pizza {
  width: min(1000px, 75%);
  height: auto;
}

#Liguria-Logo {
  width: 40%;
  border-radius: 50%; /* Make the image circular */
  box-shadow: 15px 4px 15px rgba(0, 0, 0, 0.3);
}

.header-bottom {
  display: flex;
  flex-wrap: nowrap;
  width: 96%;
  justify-content: center;
  margin: 0 auto;
}

.left-header-bottom,
.right-header-bottom {
  margin-bottom: 30px;
  /* border: 1px solid black; */
}

.left-header-bottom {
  display: flex;
  flex: 0 0 65%;
  align-items: top;
  padding-left: 25px;
}

.hero-text {
  font-size: var(--small-font-size);
  line-height: 1.2rem;
  color: var(--italy-red);
  text-shadow: 4px 5px 5px rgba(0, 0, 0, 0.2);
}

.right-header-bottom {
  display: flex;
  flex: 0 0 35%;
  justify-content: center;
  align-items: center;
  padding-right: 30px;
}

#header-instagram {
  width: 20px;
  height: auto;
  margin-right: 10px;
}

.lang-header {
  font-size: var(--body-font-size);
}

.lang-header a {
  color: var(--italy-green);
}

/*This CSS covers all sections above the footer. The .split class handles wrapping and padding between sections, while .left and .right align and justify content within them. */

.split-section {
  position: relative;
  display: flex;
  flex-direction: column;
  margin-top: 40px;
  gap: 3rem;
  width: 100%;
  height: auto;
  /*border-bottom: 3px solid black; */
}

.left-side,
.right-side {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1 1 50%;
  /*   border: 1px solid black; */
}

.dotted-right {
  position: absolute;
  left: 25%;
  top: -20%;
  z-index: -2;
  height: 130%;
  transform: rotate(-10deg);
  opacity: 35%;
}

.cortador-pizza {
  position: absolute;
  left: 10%;
  top: -150px;
  z-index: -1;
  height: 25%;
  transform: rotate(-100deg);
  opacity: 35%;
}

.dotted-left {
  position: absolute;
  right: -1%;
  top: 30%;
  z-index: -2;
  height: 80%;
  transform: rotate(-80deg);
  opacity: 35%;
}

.rolo-massa {
  position: absolute;
  left: 20px;
  z-index: -2;
  height: 10%;
  transform: rotate(-30deg);
  opacity: 35%;
}

.slider {
  position: relative;
  width: 350px;
  height: 350px;
  overflow: hidden;
  border: 2px dashed black;
  border-radius: 20%;
}

.slider img {
  width: 80%;
  height: auto;
}

.slide {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 80%;
  height: 80%;

  transform: translate(-150%, -50%); /* Start offscreen left */
  opacity: 0;

  transition:
    transform 1s ease-in-out,
    opacity 1s ease-in-out;

  z-index: 0;
}

.slide.visible {
  transform: translate(-50%, -50%); /* Center */
  opacity: 1;
  z-index: 2;
}

.slide.visible img {
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
}

.slide.slide-out {
  transform: translate(50%, -50%); /* Exit right */
  opacity: 0;
  z-index: 1;
}

.menu-header {
  /*Applied to H1 and H2 of every Section */
  text-align: center;
  text-shadow: 4px 5px 5px rgba(0, 0, 0, 0.2);
  font-size: var(--h2-font-size);
  color: var(--italy-red);
}

.header-h3 {
  /*Applied to H2 of every Section */
  font-size: var(--h3-font-size);
  text-align: center;
  margin-bottom: 15px;
  color: var(--lighter-main-font);
}

.divider {
  width: 50%;
  height: 3px;
  background-color: var(--italy-green);
  display: block;
  margin: 0 auto;
}

.after-map {
  margin-top: 40px;
}

.menu-list-wrapper {
  width: 80%;
  margin: 0 auto; /* centers the div horizontally */
  text-align: center;
  /* border: 1px solid black; */
}

ul {
  margin-bottom: 15px;
  list-style: none;
}

.pizza-names {
  font-size: var(--h3-font-size);
  margin: 10px 0 2px 0;
  color: var(--italy-red);
}

.paragraph-font {
  font-size: var(--h3-font-size);
  color: var(--lighter-main-font);
}

.endereco {
  width: 80%;
  text-align: center;
  margin: 0 auto;
}

iframe {
  width: 350px;
  height: 350px;
  border: 3px dotted black;
  border-radius: 20%;
}

.reverse-wrap-section {
  display: flex;
  flex-direction: column-reverse;
}

.slider-background {
  position: absolute;
  bottom: -150px;
  left: -150px;
  z-index: -2;
  height: auto;
  width: 20%;
  opacity: 80%;
}

.input-data {
  font-size: var(--h3-font-size);
  width: 500px; /* set a common width */
  max-width: 80vw;
}

.input-data form {
  margin: 0 auto; /* center the whole form */
}

.form-row {
  display: flex;
  align-items: center;
  margin-bottom: 0.6rem;
}

.form-row label {
  min-width: 80px;
  margin-right: 0.4rem;
  text-align: left;
  padding-right: 0.4rem;
  font-weight: bold;
}

.form-row input {
  flex: 1;
  padding: 0.2rem 0.4rem;
  border: 1px solid #686464;
  border-radius: 4px;
  min-height: 30px;
}

.form-textarea {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 0.5rem;
}

.form-textarea label {
  font-weight: bold;
  margin-bottom: 0.3rem;
}

textarea {
  width: 100%;
  min-height: 12vh;
  border: 1px solid #686464;
  font-size: var(--body-font-size);
}

.form-button {
  display: flex;
  justify-content: center;
}

.form-button button {
  width: 100%;
  padding: 0.5rem 1rem;
  cursor: pointer;
  background-color: var(--italy-green);
  color: #fff;
  border: 1px var(--italy-red) solid;
  border-radius: 4px;
}

footer {
  background: var(--radial-bg);
  margin-top: 40px;
  height: auto;
  width: 100%;
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  padding-top: 30px;
  padding-bottom: 30px;
  border-top: 3px solid black;
}

.site-by {
  display: flex;
  align-items: center;
  flex: 0 0 33%;
  height: 100%;
  /* border: 1px solid black; */
  font-size: var(--small-font-size);
}

.site-by p {
  margin-left: 20px;
}

.copyright {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 33%;
  height: 100%;
  /* border: 1px solid black; */
}

.footer-copyright {
  text-align: center;
  font-size: var(--small-font-size);
  /* border: 1px solid black; */
}

.footer-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  flex: 0 0 33%;
  /* border: 1px solid black; */
}

.footer-logo img {
  width: 6%;
  height: auto; /* Keeps the aspect ratio */
  border-radius: 50%;
  box-shadow: 15px 4px 15px rgba(0, 0, 0, 0.3);
}

.whatsapp {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 99999;
  max-width: 100vw;
  max-height: 100vh;
}

.whatsapp-logo {
  width: 60px;
  height: auto;
  background: white;
  border-radius: 50%;
  padding: 7px;
  box-shadow: 4px 4px 10px rgba(0, 0, 0, 0.5);
  transition: transform 0.2s ease;
}

.whatsapp-logo:hover {
  transform: scale(1.3);
}

/* ===========BREAKPOINTS============= */
/* For small Devices 

@media (min-width: 330px) {
} */

@media (min-width: 768px) {
  /*   Tablet  */

  .hero-text {
    font-size: var(--h3-font-size);
    line-height: 1.5rem;
  }

  .split-section {
    display: flex;
    flex-direction: row;
  }

  .menu-header {
    font-size: var(--h1-font-size);
  }

  .input-data {
    width: 75%; /* set a common width */
    max-width: 80vw;
  }

  .right-header-bottom {
    padding-right: 60px;
  }

  #header-instagram {
    width: 40px;
  }

  .lang-header {
    font-size: var(--h3-font-size);
  }

  .after-map {
    opacity: 0;
  }

  /* CSS FOR BACKGROUND IMAGES */
  .dotted-right {
    left: 55%;
    top: -40%;
    height: 170%;
    transform: rotate(20deg);
  }

  .cortador-pizza {
    left: 25%;
    top: -180px;
    height: 40%;
    opacity: 80%;
    transform: rotate(-100deg);
  }

  .dotted-left {
    left: -10%;
    top: 30%;
    height: 105%;
    transform: rotate(-70deg);
  }

  .rolo-massa {
    left: 50px;
    top: 10px;
    height: 20%;
    transform: rotate(-30deg);
  }
}

@media (min-width: 1024px) {
  /*   Desktop */

  .right-header-bottom,
  .left-header-bottom {
    padding-top: 10px;
  }

  .slider {
    position: relative;
    width: 450px;
    height: 450px;
  }

  footer {
    max-height: 150px;
  }

  .left-side,
  .right-side {
    margin-bottom: 40px;
  }

  /* CSS FOR BACKGROUND IMAGES */
  .dotted-right {
    left: 60%;
    top: -30%;
    height: 170%;
    transform: rotate(30deg);
  }

  .cortador-pizza {
    left: 35%;
    top: -180px;
    height: 35%;
    transform: rotate(-100deg);
  }

  .dotted-left {
    left: 5%;
    top: 30%;
    height: 105%;
    transform: rotate(-60deg);
  }

  .rolo-massa {
    left: 50px;
    top: 10px;
    height: 20%;
    transform: rotate(-30deg);
  }

  .footer-logo img {
    width: auto;
    height: auto; /* Keeps the aspect ratio */
    max-width: 20%;
  }
}

@media (min-width: 1280px) {
  /* Large desktop */

  .hero-text {
    font-size: var(--h2-font-size);
    line-height: 1.8rem;
  }

  .slider {
    position: relative;
    width: 500px;
    height: 500px;
  }

  .header-h3 {
    /*Applied to H2 of every Section */
    font-size: var(--h2-font-size);
  }

  .pizza-names {
    font-size: var(--h3-font-size);
  }

  .paragraph-font {
    font-size: var(--h3-font-size);
    color: var(--lighter-main-font);
  }
}
