/* ===========================================
   IMPORTAZIONE FONT DA GOOGLE FONTS
   =========================================== */
@import url("https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;1,400&family=Source+Sans+Pro:ital,wght@0,300;0,400;0,600;0,700;1,400&display=swap");

/* ===========================================
   VARIABILI CSS
   =========================================== */
:root {
  /* Font Families */
  --font-heading: "Playfair Display", serif;
  --font-body: "Source Sans Pro", sans-serif;

  /* Colori palette senegalese */
  --color-terra: #8b4513;
  --color-giallo: #f4d03f;
  --color-verde: #27ae60;
  --color-rosso: #e74c3c;
  --color-rosso-scuro: #c0392b;
  --color-crema: #f8f6f0;
  --color-arancio: #f39c12;
  --color-arancio-scuro: #e67e22;
  --color-testo: #333;
  --color-testo-chiaro: #666;
  --color-bordo: #e0e0e0;

  /* Font Sizes Desktop */
  --h1-desktop: 2.5rem;
  --h2-desktop: 2rem;
  --h3-desktop: 1.75rem;
  --h4-desktop: 1.375rem;
  --body-desktop: 1.125rem;
  --small-desktop: 1rem;

  /* Font Sizes Mobile */
  --h1-mobile: 2rem;
  --h2-mobile: 1.75rem;
  --h3-mobile: 1.5rem;
  --h4-mobile: 1.25rem;
  --body-mobile: 1rem;
  --small-mobile: 0.875rem;

  /* Line Heights */
  --line-height-heading: 1.2;
  --line-height-body: 1.6;

  /* Z-Index Scale */
  --z-menu: 1000;
  --z-navbar: 1001;

  /* Spacing */
  --section-padding: 96px;
  --section-padding-mobile: 64px;

  /* Transitions */
  --transition-fast: 0.3s ease;
  --transition-smooth: 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

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

html {
  font-size: 18px;
}

body {
  font-family: var(--font-body);
  font-size: var(--body-desktop);
  line-height: var(--line-height-body);
  color: var(--color-testo);
  background-color: var(--color-crema);
  padding-top: 60px;
}

/* Utility Classes */
.no-scroll {
  overflow: hidden;
  height: 100vh;
}

/* ===========================================
   TIPOGRAFIA
   =========================================== */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: var(--line-height-heading);
  margin-bottom: 1rem;
  color: var(--color-terra);
}

h1 {
  font-size: var(--h1-desktop);
  font-weight: 700;
  margin-bottom: 1.5rem;
}

h2 {
  font-size: var(--h2-desktop);
  margin-bottom: 1.25rem;
}

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

h4 {
  font-size: var(--h4-desktop);
  margin-bottom: 0.75rem;
}

p {
  font-size: var(--body-desktop);
  margin-bottom: 1rem;
  color: #444;
}

.small-text,
small {
  font-size: var(--small-desktop);
  color: var(--color-testo-chiaro);
}

/* Classi tipografiche specializzate */
.restaurant-name {
  font-family: var(--font-heading);
  font-size: var(--h1-desktop);
  font-weight: 700;
  color: var(--color-verde);
  font-style: italic;
}

.dish-name {
  font-family: var(--font-heading);
  font-size: var(--h4-desktop);
  font-weight: 600;
  color: var(--color-terra);
  margin-bottom: 0.5rem;
}

.dish-description {
  font-family: var(--font-body);
  font-size: var(--body-desktop);
  color: #555;
  font-style: italic;
  margin-bottom: 0.25rem;
}

.price {
  font-family: var(--font-body);
  font-size: var(--body-desktop);
  font-weight: 700;
  color: var(--color-verde);
}

/* ===========================================
   BOTTONI
   =========================================== */
.btn {
  margin: 8px 0;
  width: 100%;
  padding: 16px 24px;
  border-radius: 24px;
  border: none;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  text-align: center;
  transition: var(--transition-fast);
  font-size: 1.2rem;
}

.btn--primary {
  background-color: var(--color-rosso);
  color: white;
}

.btn--primary:hover {
  background-color: var(--color-rosso-scuro);
}

.btn--secondary {
  background-color: transparent;
  color: white;
  border: 2px solid white;
}

.btn--secondary:hover {
  background-color: white;
  color: var(--color-testo);
}

.btn--taste {
  background-color: transparent;
  color: white;
  border: 1px solid white;
  border-radius: 0;
  outline: 1px solid white;
  outline-offset: 2px;
}

.btn--taste:hover {
  background-color: white;
  color: var(--color-testo);
}

.footer-item .btn--footer {
  background: linear-gradient(
    45deg,
    var(--color-arancio),
    var(--color-arancio-scuro)
  );
  color: white;
  box-shadow: 0 4px 15px rgba(243, 156, 18, 0.3);
  padding: 16px 24px;
}

.btn--footer:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(243, 156, 18, 0.4);
  background: linear-gradient(45deg, var(--color-arancio-scuro), #d35400);
}

/* ===========================================
   HEADER E NAVIGAZIONE
   =========================================== */
.nav-container {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-navbar);
  padding: 16px 16px 0;
  background-color: white;
  border-bottom: 1px solid #eee;
  transform: translateY(0);
  transition: transform var(--transition-fast);
}

.nav-container.hidden {
  transform: translateY(-100%);
}

.nav-title {
  text-transform: uppercase;
}

.nav-menuBurger {
  position: absolute;
  right: 16px;
  top: 16px;
}

.nav-menuBurgerBread {
  border: 1px solid black;
  width: 24px;
  height: 8px;
  border-radius: 4px;
  margin: 2px;
  background-color: black;
  transition: var(--transition-fast);
}

.menu-open .nav-menuBurgerBread:nth-child(1) {
  transform: rotate(45deg) translate(6px, 8px);
}

.menu-open .nav-menuBurgerBread:nth-child(2) {
  opacity: 0;
}

.menu-open .nav-menuBurgerBread:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -8px);
}

.nav-links {
  display: flex;
  flex-direction: column;
  text-align: center;
  padding: 24px;
  position: fixed;
  left: 0;
  top: 60px;
  width: 100%;
  height: calc(100vh - 60px);
  background-color: var(--color-crema);
  z-index: var(--z-menu);
  clip-path: inset(0 0 100% 0);
  transition: var(--transition-smooth);
}

.visible {
  clip-path: inset(0 0 0% 0);
}

.nav-links a {
  text-decoration: none;
  color: black;
}

/* ===========================================
   FOOTER
   =========================================== */
.footer-section {
  background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
  color: white;
  padding: 60px 20px 5px;
  margin-top: 80px;
}

.footer-items {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
  align-items: start;
}

.footer-item {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-item h4 {
  font-size: 20px;
  font-weight: 700;
  color: var(--color-arancio);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
  position: relative;
}

.footer-item h4::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 40px;
  height: 2px;
  background-color: var(--color-arancio);
}

.footer-item img {
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  margin-bottom: 8px;
}

.footer-item p {
  line-height: 1.6;
  color: #ecf0f1;
  font-size: 14px;
}

.footer-item a {
  color: #bdc3c7;
  text-decoration: none;
  font-size: 14px;
  transition: var(--transition-fast);
  padding: 4px 0;
  border-bottom: 1px solid transparent;
}

.footer-item a:hover {
  color: var(--color-arancio);
  border-bottom-color: var(--color-arancio);
  transform: translateX(5px);
}

.footer-item:first-child p {
  margin-bottom: 8px;
  font-size: 15px;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
}

.contact-icon {
  width: 20px;
  height: 20px;
  background-color: var(--color-arancio);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  flex-shrink: 0;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.hours-info p {
  margin: 4px 0;
}

.hours-info p:first-of-type {
  font-weight: 600;
  color: var(--color-arancio);
}

.footer-bottom p {
  border-top: 1px solid #34495e;
  margin-top: 40px;
  text-align: center;
  color: #c0c4c4;
  font-size: 12px;
}

/* ===========================================
   RESPONSIVE
   =========================================== */

@media screen and (max-width: 768px) {
  html {
    font-size: 16px;
  }

  body {
    font-size: var(--body-mobile);
  }

  h1 {
    font-size: var(--h1-mobile);
    margin-bottom: 1rem;
  }
  h2 {
    font-size: var(--h2-mobile);
    margin-bottom: 1rem;
  }
  h3 {
    font-size: var(--h3-mobile);
    margin-bottom: 0.75rem;
  }
  h4 {
    font-size: var(--h4-mobile);
    margin-bottom: 0.5rem;
  }
  p {
    font-size: var(--body-mobile);
    margin-bottom: 0.75rem;
  }

  .small-text,
  small {
    font-size: var(--small-mobile);
  }
  .restaurant-name {
    font-size: var(--h1-mobile);
    margin-bottom: 1.5rem;
  }

  .footer-section {
    padding: 40px 16px 10px;
  }
  .footer-items {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .footer-item h4 {
    font-size: 18px;
  }
}

@media screen and (min-width: 769px) {
  .nav-menuBurger {
    display: none;
  }

  .nav-links {
    position: static;
    width: auto;
    height: auto;
    flex-direction: row;
    gap: 32px;
    background-color: transparent;
    clip-path: none;
    padding: 0;
    opacity: 1;
    pointer-events: auto;
  }

  .nav-links a {
    font-size: 1.5rem;
  }

  .nav-container {
    display: flex;
    justify-content: space-between;
  }

  .footer-items {
    grid-template-columns: 2fr 1fr 1fr 1fr;
  }
}

@media screen and (max-width: 480px) {
  html {
    font-size: 16px;
  }
  .restaurant-name {
    font-size: 2.25rem;
  }
}

@media screen and (min-width: 1440px) {
  .taste-container {
    padding: 72px 0;
  }
}

/* ===========================================
   EFFETTI LINK NAVBAR 
   =========================================== */

/* Effetto 1: Underline scorrevole (il più elegante) */
.nav-links a {
  text-decoration: none;
  color: black;
  position: relative;
  padding: 8px 0;
  transition: color var(--transition-fast);
  font-weight: 500;
}

.nav-links a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background-color: var(--color-terra);
  transition: all var(--transition-fast);
  transform: translateX(-50%);
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-links a:hover {
  color: var(--color-terra);
}

/* ===========================================
   LINK ATTIVO 
   =========================================== */
.nav-links a.active {
  color: var(--color-terra);
  font-weight: 600;
}

.nav-links a.active::after {
  width: 100%;
}

/* ===========================================
   EFFETTO RIPPLE 
   =========================================== */

.nav-links a {
  position: relative;
  overflow: hidden;
}

.nav-links a::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background-color: rgba(139, 69, 19, 0.3);
  transition: width 0.6s, height 0.6s;
  transform: translate(-50%, -50%);
  z-index: -1;
}

.nav-links a:hover::before {
  width: 125px;
  height: 125px;
}
