/* Color palette */
:root {
  --primary-color: #740000;
  --secondary-color: #f2f2f2;
  --tertiary-color: #fdf9f2;
  --text-dark: #000;
}

body {
  font-family: "Roboto", sans-serif;
  background-color: var(--secondary-color);
  margin: 0;
  padding: 0;
  color: var(--text-dark);
  font-size: 1.1rem;
  line-height: 1.6;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Cal Sans", sans-serif;
  font-weight: 700;
  letter-spacing: 0.5px;
  line-height: 1.2;
  color: var(--primary-color);
}

h1 {
  font-size: 3rem;
}

h2 {
  font-size: 2.5rem;
}

h3 {
  font-size: 2rem;
}

/* Navbar styling */
.navbar {
  background-color: var(--primary-color);
  transition: all 0.3s ease;
}

.navbar.scrolled {
  background-color: #ffffff !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.navbar.scrolled .nav-link {
  color: var(--primary-color) !important;
}

.navbar.scrolled .navbar-brand img {
  filter: grayscale(100%);
}

.navbar-brand img {
  height: 40px;
  transition: transform 0.3s ease;
}

.navbar-brand img:hover {
  transform: scale(1.1) rotate(-2deg);
}

.navbar-nav .nav-link {
  color: var(--secondary-color) !important;
  font-weight: 500;
  margin-left: 1rem;
  transition: color 0.3s ease, transform 0.3s ease;
}

.navbar-nav .nav-link:hover {
  color: var(--tertiary-color) !important;
  transform: translateY(-2px);
}

.hero-section {
  background-image: url("https://sosgastronomia.it/wp-content/uploads/2020/05/ZZZ_7097-scaled.jpg");
  background-size: cover;
  background-position: center;
  height: 100vh;
  position: relative;
  text-shadow: none;
  overflow: hidden;
}

.hero-section .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.4);
  z-index: 1;
}

.hero-text {
  z-index: 2;
  position: relative;
  max-width: 80%;
  backdrop-filter: blur(8px);
  background-color: var(--primary-color);
  padding: 3rem 2rem;
  border-radius: 0;
  box-shadow: none;
  animation: fadeSlideUp 1.2s ease-out both;
  animation-delay: 0.4s;
  color: #fcf9f2;
}

@media (min-width: 768px) {
  .hero-text {
    max-width: 70%;
    padding: 4rem;
  }
}

@media (min-width: 992px) {
  .hero-text {
    max-width: 60%;
    padding: 5rem;
  }
}

.hero-text h1 {
  font-size: 3.5rem;
  font-weight: 800;
  color: white;
  margin-bottom: 1rem;
}

.hero-text p.lead {
  font-size: 1.5rem;
  font-weight: 500;
  color: white;
  margin-bottom: 0.5rem;
}

.hero-text p.small {
  font-size: 0.9rem;
  font-style: italic;
  color: white;
  margin-bottom: 1.5rem;
}

.btn-primary {
  background-color: #fcf9f2;
  border: none;
  font-weight: 600;
  font-size: 1rem;
  padding: 0.75rem 1.5rem;
  border-radius: 50px;
  text-transform: uppercase;
  transition: transform 0.3s ease, background-color 0.3s ease;
  color: #740000;
}

.btn-primary:hover {
  background-color: #fcf9f2;
  transform: scale(1.05);
  color: #740000;
}

.footer {
  background-color: var(--tertiary-color);
  color: var(--primary-color);
  animation: fadeIn 1s ease-in both;
  padding: 2rem 0;
  text-align: center;
  font-size: 0.95rem;
}

.footer .footer-content {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer .footer-content h5 {
  font-size: 1.1rem;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.footer .footer-content p {
  margin: 0;
  opacity: 0.8;
  transition: opacity 0.3s ease;
}

.footer .footer-content p i {
  margin-right: 0.5rem;
}

.footer .footer-content p:hover {
  opacity: 1;
}

.footer .footer-bottom {
  margin-top: 1rem;
  font-size: 0.8rem;
  opacity: 0.6;
}

hr {
  border-top: 1px solid #00000022;
  margin: 2rem 0;
}

@keyframes fadeSlideUp {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

/* Hero entrance animations */
.animate-fade-up {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 1s ease-out forwards;
}

.animate-fade-up.delay {
  animation-delay: 0.4s;
}

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 576px) {
  .hero-text h1 {
    font-size: 2rem;
    word-wrap: break-word;
  }

  .lead {
    font-size: 0.75rem;
  }
}

/* Menu page grid image cards */

body.menu-page {
  background: linear-gradient(135deg, #fdf9f2 0%, #fce5dc 100%);
}

body.menu-page .footer {
  background-color: var(--primary-color);
  color: var(--tertiary-color);
}

body.menu-page .footer h5,
body.menu-page .footer p,
body.menu-page .footer i,
body.menu-page .footer .footer-bottom {
  color: var(--secondary-color);
}

.menu-section {
  background-color: var(--primary-color);
  padding: 4rem 2rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  margin-top: 6rem;
}

.menu-section .card {
  border: 2px solid var(--primary-color);
  transition: transform 0.3s ease;
  height: 100%;
  padding: 1rem 0.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  background-color: var(--tertiary-color);
}

.menu-section .card:hover {
  transform: translateY(-5px);
}

.menu-section .card img {
  border-radius: 6px;
  width: 20%;
  margin: 0 auto 0.5rem;
  object-fit: cover;
  display: block;
}

.menu-section .card h5 {
  color: var(--primary-color);
  margin-top: 0.5rem;
  font-size: 1rem;
  font-weight: 600;
}

.hover-animate {
  transition: transform 0.3s ease, color 0.3s ease;
  display: inline-block;
  color: var(--primary-color) !important;
}

.hover-animate:hover {
  transform: translateY(-4px);
  color: var(--primary-color) !important;
}

.hover-animate {
  transition: transform 0.3s ease;
  display: inline-block;
}

.hover-animate:hover {
  transform: translateY(-4px);
}

hr {
  border-top: 1px solid #ffffff;
}

/* Menu list in two columns on large screens */
@media (min-width: 992px) {
  .menu-list {
    columns: 2;
    column-gap: 3rem;
  }
  .menu-list p {
    break-inside: avoid;
    margin-bottom: 0.75rem;
  }
}
