/* Marrone chiaro #BF7534 
   Verde #526000
   Rosso ##8b1f09
   Bianco #F1EDD9 */

/* ANIMAZIONI CSS */

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

@keyframes pulse {
  0%,
  100% {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  }
  50% {
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.35);
  }
}

@keyframes scaleBounce {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.02);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes shake {
  0%,
  100% {
    transform: translateX(0);
  }
  25% {
    transform: translateX(-3px);
  }
  75% {
    transform: translateX(3px);
  }
}

@font-face {
  font-family: "Open Sans";
  src: url("../font/OpenSans-VariableFont_wdth\,wght.ttf") format("ttf");
  font-weight: 400;
  font-style: normal;
}
@font-face {
  font-family: "Montserrat";
  src: url("../font/OpenSans-Italic-VariableFont_wdth\,wght.ttf") format("ttf");
  font-weight: 400;
  font-style: italic;
}
@font-face {
  font-family: "Montserrat";
  src: url("../font/OpenSans-VariableFont_wdth\,wght.ttf") format("ttf");
  font-weight: 700;
  font-style: normal;
}
@font-face {
  font-family: "Montserrat";
  src: url("../font/OpenSans-Italic-VariableFont_wdth\,wght.ttf") format("ttf");
  font-weight: 700;
  font-style: italic;
}
@font-face {
  font-family: "Oswald";
  src: url("../font/Oswald-VariableFont_wght.ttf") format("ttf");
  font-weight: 400;
  font-style: normal;
}
@font-face {
  font-family: "Oswald";
  src: url("../font/Oswald-VariableFont_wght.ttf") format("ttf");
  font-weight: 700;
  font-style: normal;
}
/* Generici DESKTOP */

* {
  box-sizing: border-box;
}
body {
  background-color: #f1edd9;
  margin: 0;
  font-family: "Open Sans", sans-serif;
  font-weight: 400;
}
h1,
h2,
h3 {
  font-family: "Oswald", sans-serif;
  font-size: 3.5em;
  color: #490000;
  margin: 0;
  padding: 0;
}

section {
  padding: 20px;
}

/* HEADER SECTION (NAV+HERO) */

header {
  background-color: #bf7534;
  padding-bottom: 10px;
  -webkit-box-shadow: 0px 49px 70px -49px #58371a;
  -moz-box-shadow: 0px 49px 70px -49px #58371a;
  -o-box-shadow: 0px 49px 70px -49px #58371a;
  box-shadow: 0px 49px 70px -49px #58371a;
}
.nav-bar {
  -webkit-box-shadow: 0px 0px 50px 2px #58371a;
  -moz-box-shadow: 0px 0px 50px 2px #58371a;
  -o-box-shadow: 0px 0px 50px 2px #58371a;
  box-shadow: 0px 0px 50px 2px #58371a;
  background-color: #f1edd9;
  display: flex;
  position: fixed;
  width: 100%;
  justify-content: space-between;
  align-items: center;
  height: 8rem;
  z-index: 1000;
  top: 0;
}
.nav-bar ul {
  display: flex;
  gap: 50px;
  margin-right: 10%;
  list-style: none;
  padding: 0;
}
.nav-bar li {
  transition: transform 0.3s ease;
}
.nav-bar a {
  text-decoration: none;
  font-size: 1.7em;
  color: #490000;
  font-weight: 600;
}
#btn-hamburger {
  display: none;
}
.nav-bar li:hover {
  transform: scale(1.1);
}
.nav-bar a:hover {
  color: #526000;
}
.logo {
  margin-top: 15px;
  padding: 20px;
  animation: fadeIn 0.8s ease-in-out;
}
.hero {
  min-height: 600px;
  height: 80vh;
  max-height: 900px;
  display: flex;
  justify-content: left;
  align-items: center;
  background-image: url(../image/hero-immagine-pizza.png);
  background-repeat: no-repeat;
  background-position: right center;
  background-size: contain;
  background-position-y: 120px;
  background-attachment: fixed;
  margin-top: 8rem;
  padding: 40px 20px;
}
.hero-text {
  display: flex;
  flex-direction: column;
  margin-left: 50px;
  max-width: 600px;
  width: 45%;
  gap: 15px;
  animation: slideInLeft 1s ease-out;

  & p {
    font-size: 1.8em;
    color: #ecebe4;
    margin: 5px 0;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
    font-weight: 500;
  }
  & .position-button {
    display: inline-block;
    margin-top: 20px;
  }
}
.hero-text h1 {
  font-size: 3.2em;
  line-height: 1.2;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.position-button a {
  font-size: 1.5em;
  background-color: #526000;
  color: #ecebe4;
  text-decoration: none;
  padding: 15px 30px;
  border-radius: 20px;
  display: inline-block;
  transition: all 0.3s ease;
  font-weight: 600;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  animation: pulse 2s ease-in-out infinite;
}

.position-button a:hover,
.position-button a:focus {
  background-color: #490000;
  transform: scale(1.05);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
  animation: none;
}

/* CHI SIAMO SECTION */
.chi-siamo {
  text-align: center;
  padding: 60px 20px;

  & h2 {
    margin-bottom: 40px;
    animation: slideInUp 1s ease-out;
  }
}

.chi-siamo-content {
  gap: 70px;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
  flex-wrap: wrap;

  & img {
    -webkit-box-shadow: 0px 0px 50px 2px #58371a;
    -moz-box-shadow: 0px 0px 50px 2px #58371a;
    -o-box-shadow: 0px 0px 50px 2px #58371a;
    box-shadow: 0px 0px 50px 2px #58371a;
    border-radius: 10px;
    transition: transform 0.3s ease;
    animation: float 3s ease-in-out infinite;
  }
}

.chi-siamo-content p {
  color: #212121;
  line-height: 40px;
  padding: 70px;
  -webkit-box-shadow: 0px 0px 50px 2px #58371a;
  -moz-box-shadow: 0px 0px 50px 2px #58371a;
  -o-box-shadow: 0px 0px 50px 2px #58371a;
  box-shadow: 0px 0px 50px 2px #58371a;
  border-radius: 10px;
  width: 50%;
  min-width: 300px;
  font-size: 1.8em;
  transition: transform 0.3s ease;
  animation: slideInUp 1s ease-out;
}
.chi-siamo-content p:hover,
.chi-siamo-content img:hover {
  transform: scale(1.03);
}
/* CARD SECTION */
.card-container {
  margin-top: 10%;
  text-align: center;
  -webkit-box-shadow: 0px 0px 50px 2px #58371a;
  -moz-box-shadow: 0px 0px 50px 2px #58371a;
  -o-box-shadow: 0px 0px 50px 2px #58371a;
  box-shadow: 0px 0px 50px 2px #58371a;
  padding: 40px 20px;
}
.card-container-text {
  padding: 50px 20px;
  animation: slideInUp 1s ease-out;
}
.card-container-items {
  padding-bottom: 100px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 100px;
  flex-wrap: wrap;
}
.card-item {
  -webkit-box-shadow: 0px 0px 50px 2px #58371a;
  -moz-box-shadow: 0px 0px 50px 2px #58371a;
  -o-box-shadow: 0px 0px 50px 2px #58371a;
  box-shadow: 0px 0px 50px 2px #58371a;
  border: 10px solid #f1edd9;
  border-radius: 20px;
  transition: transform 0.3s ease;
  max-width: 320px;
  animation: slideInUp 0.8s ease-out;
  & h3 {
    font-size: 1.7em;
    margin: 20px 0 10px;
  }
  & p {
    font-size: 1.2em;
    color: #212121;
    padding: 0 20px 20px;
  }
  & img {
    border-radius: 10px 10px 0 0;
  }
}
.card-item:hover {
  transform: scale(1.1);
  animation: scaleBounce 0.6s ease-in-out infinite;
}
/* DOVE SIAMO SECTION */
.position-container {
  margin-top: 30px;
  display: flex;
  justify-content: space-evenly;
  align-content: center;
  gap: 40px;
  flex-wrap: wrap;
  padding: 40px 20px;
  & h3 {
    margin-bottom: 20px;
  }
  & address,
  ul {
    font-size: 1.5em;
    line-height: 35px;
    color: #212121;
  }
  & a {
    text-decoration: none;
    color: #490000;
    font-weight: 600;
  }
  & ul {
    list-style: none;
  }
}
.dove-siamo-container {
  text-align: center;
}
.dove-siamo-container a:hover {
  text-decoration: underline;
  color: #526000;
}
/* SOCIAL-BAR */

.social-bar {
  text-align: center;
  padding: 60px 20px;
  & ul {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    list-style: none;
    padding: 40px;
    transition: transform 0.3s ease;
  }
}
.social-bar li {
  animation: fadeIn 1s ease-out;
}
.social-bar li:hover {
  transform: scale(1.15);
  animation: shake 0.5s ease-in-out;
}
/* PRENOTAZIONE */

.button-prenotazioni {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 999;
  transition: transform 0.3s ease;
  animation: slideInRight 0.8s ease-out;
}
.button-prenotazioni:hover {
  transform: scale(1.15);
  animation: pulse 1s ease-in-out;
}
footer {
  margin-top: 5%;
  background-color: #bf7534;
  padding: 30px 15px;
  & ul {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    list-style: none;
    font-size: 1.2em;
    padding: 0;
    flex-wrap: wrap;
  }
  & a {
    color: #1f1f1f;
    text-decoration: none;
    font-weight: 600;
  }
}
footer a:hover {
  color: #f1edd9;
  text-decoration: underline;
}
.utility {
  text-align: center;
  margin-top: 20px;
}

.utility p {
  margin: 10px 0;
  color: #1f1f1f;
}
.utility-2 {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* PAGINA MENU */

/* SECTION MENU */

.menu-hero {
  background-color: #bf7534;
  margin-top: 7rem;
  padding: 100px;
}
.menu-hero h1 {
  color: #490000;
  text-align: center;
}
.menu-hero h2 {
  color: #490000;
  font-size: 3em;
}
.menu-hero dt {
  color: #ecebe4;
  font-size: 2em;
}
.menu-hero dd {
  color: #212121;
  font-size: 1.5em;
}

/* Responsive Smartphone */

@media (min-width: 320px) and (max-width: 870px) {
  /* Generici */
  h1 {
    font-size: 2.2em;
  }

  h2,
  h3 {
    font-size: 2em;
  }

  /* Header (NAV+HERO) */
  .nav-bar {
    height: 8rem;
  }
  .nav-bar ul {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 8rem;
    left: 0;
    width: 100%;
    background-color: #f1edd9;
    padding: 20px 0;
    gap: 0;
    margin: 0;
    box-shadow: 0px 10px 20px #58371a;
  }
  #btn-hamburger {
    display: block;
    background: none;
    border: none;
    font-size: 2em;
    color: #58371a;
    cursor: pointer;
    margin-right: 20px;
  }
  .nav-bar ul.aperto {
    display: flex;
  }

  .nav-bar li {
    padding: 15px 0;
    text-align: center;
  }

  .logo {
    padding: 0 20px;
    & img {
      width: 100px;
      height: 100px;
    }
  }
  .hero {
    min-height: 500px;
    height: auto;
    background-image: none;
    padding: 20px;
    margin-top: 6rem;
    flex-direction: column;
    justify-content: center;
  }
  .hero-text {
    width: 100%;
    max-width: 100%;
    margin: 0;
    text-align: center;

    & h1 {
      font-size: 2em;
    }
    & p {
      font-size: 1.2em;
    }
  }
  .position-button a {
    font-size: 1.2em;
    padding: 12px 24px;
  }

  /* CHI SIAMO SECTION */

  .chi-siamo-content {
    grid-template-columns: 1fr;
    gap: 30px;
    & h2 {
      font-size: 1.5em;
    }
    & p {
      font-size: 1.3em;
      padding: 30px;
      width: 100%;
      line-height: 30px;
    }
  }

  .card-container-items {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .chi-siamo-image img {
    max-width: 100%;
    height: auto;
  }

  /* DOVE SIAMO SECTION */
  .position-container {
    display: flex;
    flex-direction: column-reverse;
  }
  .open-time {
    text-align: center;
    & ul {
      padding: 0;
    }
  }

  /* FOOTER */
  footer {
    margin-top: 15%;
    & ul {
      display: flex;
      flex-direction: column;
    }
  }
  .utility {
    padding: 10%;
  }
  .social-bar {
    & img {
      width: 40px;
      height: 40px;
    }
  }
  .button-prenotazioni {
    & img {
      width: 40px;
      height: 40px;
    }
  }
  .menu-hero h2 {
    font-size: 2em;
  }
  .menu-hero dt {
    font-size: 1em;
  }
  .menu-hero dd {
    font-size: 0.9em;
  }
  .menu-hero {
    padding: 50px 20px;
  }
}

/* Responsive Tablet Piccolo */

@media (min-width: 768px) and (max-width: 869px) {
  .nav-bar {
    height: 8rem;
  }
  .nav-bar ul {
    display: none;
  }
  .hamburger-menù {
    display: flex;
  }
  .hero-text {
    width: 100%;
    max-width: 450px;
    margin-left: 20px;
  }

  .hero-text h1 {
    font-size: 2.3em;
  }

  .hero-text p {
    font-size: 1.3em;
  }
  .card-container-items {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .chi-siamo-content {
    gap: 35px;
    grid-template-columns: 1fr;
  }

  .chi-siamo-content p {
    padding: 35px;
    font-size: 1.5em;
    line-height: 33px;
    width: 100%;
  }

  .chi-siamo-image img {
    max-width: 100%;
    height: auto;
  }
}

/* Responsive Tablet */

@media (min-width: 870px) and (max-width: 1023px) {
  .nav-bar {
    height: 8rem;
  }
  .nav-bar ul {
    display: none;
  }
  .hamburger-menù {
    display: flex;
  }
  .hero {
    background-size: 350px;
    background-position: bottom right;
    background-attachment: scroll;
    min-height: 700px;
    align-items: flex-start;
    padding-top: 80px;
  }

  .hero-text {
    width: 100%;
    max-width: 500px;
    margin-left: 30px;
  }

  .hero-text h1 {
    font-size: 2.5em;
  }

  .hero-text p {
    font-size: 1.4em;
  }
  .card-container-items {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
  }

  .chi-siamo-content {
    gap: 40px;
    grid-template-columns: 1fr;
  }

  .chi-siamo-content p {
    padding: 40px;
    font-size: 1.6em;
    line-height: 35px;
    width: 100%;
  }

  .chi-siamo-image img {
    max-width: 100%;
    height: auto;
  }
}

/* Responsive Laptop */

@media (min-width: 1024px) and (max-width: 1240px) {
  .menu-hero dt {
    font-size: 1.5em;
  }
  .menu-hero dd {
    font-size: 1em;
  }
  .hero {
    background-size: 500px;
    background-position: right center;
  }

  .hero-text {
    width: 50%;
  }

  .hero-text h1 {
    font-size: 2.8em;
  }
  .chi-siamo-content {
    gap: 40px;
  }
  .chi-siamo-content p {
    padding: 30px;
    font-size: 1.4em;
    line-height: 32px;
  }

  .chi-siamo-image img {
    width: 300px;
    height: 300px;
  }

  .card-container-items {
    gap: 50px;
  }

  .card-item img {
    width: 100%;
    height: auto;
  }
}

/* Responsive Desktop Grande */

@media (min-width: 1241px) {
  .hero {
    background-size: 600px;
  }

  .hero-text h1 {
    font-size: 3.5em;
  }

  .chi-siamo-content {
    gap: 60px;
  }

  .card-container-items {
    gap: 60px;
  }
}
