body,
html {
  margin: 0;
  padding: 0;
  font-family: "Montserrat", sans-serif;
  overflow-x: hidden;
}

h1,
h3 {
  font-weight: bold;
  color: rgb(177, 18, 47);
  letter-spacing: 2px;
}

.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1050;
  transition: background-color 0.3s, box-shadow 0.3s;
}
.navbar-toggler {
  border: none;
}
.navbar-toggler-icon {
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='white' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
}
.nav-links a {
  color: rgb(177, 18, 47);
  text-decoration: none;
}
.nav-link {
  display: inline-block;
  position: relative;
  color: rgb(177, 18, 47);
  text-decoration: none;
  font-size: 1.2rem;
  letter-spacing: 1px;
}
.nav-link:hover {
  color: rgb(177, 18, 47);
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0%;
  height: 2px;
  background-color: rgb(177, 18, 47);
  transition: width 0.3s ease;
}
.nav-link.active {
  color: rgb(177, 18, 47);
  font-weight: bold;
}
.nav-link:hover::after {
  width: 100%;
}
#offcanvasNavbarLabel {
  width: 250px;
  opacity: 1;
}
.offcanvas-body,
.offcanvas-header {
  background-color: antiquewhite;
}
.small-logo {
  opacity: 0;
  width: 250px;
}
.container {
  max-width: 1200px;
}
main {
  text-align: center;
  align-items: center;
}
.btn {
  background-color: rgb(154, 17, 42);
  color: #fff;
  width: 300px;
  letter-spacing: 2px;
}
.btn:hover {
  color: #fff;
  background-color: rgb(90, 19, 19);
}
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  display: flex;
  justify-content: center;
  align-items: center;
  text-decoration: none;
  z-index: 1000;
  background-color: rgb(154, 17, 42);
  width: 200px;
  color: #fff;
}
.menu-link {
  position: relative;
  overflow: hidden;
  display: inline-block;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.menu-link img {
  width: 20rem;
  height: auto;
  display: block;
  filter: blur(1px);
  transition: transform 0.4s ease;
}
.menu-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: rgb(177, 18, 47);
  font-weight: bold;
  letter-spacing: 2px;
  font-size: 1.8rem;
  text-shadow: 3px 3px 6px rgba(255, 255, 255, 0.9);
  pointer-events: none;
}
.menu-link:hover {
  transform: scale(1.05);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6);
  z-index: 10;
}
.menu-link:hover img {
  transform: scale(1.08);
}
#aboutText {
  margin-top: 5rem;
  margin-bottom: 5rem;
}
#wineMenu {
  filter: sepia(100%);
}
#wineTastings {
  background-color: antiquewhite;
  color: rgb(177, 18, 47);
  margin-top: 6rem;
  margin-bottom: 4rem;
}
#wineTastings h1 {
  color: rgb(177, 18, 47);
}
#pastaImage {
  max-width: 350px;
  max-height: auto;
}
.map-container {
  width: 80%;
  max-width: 800px;
  margin: 2rem auto; /* centrerar och ger lite luft */
  aspect-ratio: 16 / 9;
  position: relative;
  overflow: hidden;
  border-radius: 8px;
}
.map-container iframe {
  border: 0;
  width: 100%;
  height: 100%;
  position: absolute;
  left: 0;
  top: 0;
}
.header-image {
  z-index: 1;
  width: 100%;
  display: flex;
}
.hero-header {
  position: relative;
  height: 100vh;
  overflow: hidden;
}
.header-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1; /* viktig */
}
.hero-logo-text {
  position: absolute;
  bottom: 20px;
  left: 20px;
  width: 50%;
  margin: 0;
  z-index: 10;
  opacity: 1;
  transition: opacity 0.3s;
}
.horizontal-gallery-wrapper {
  position: relative;
  overflow: hidden;
}
.horizontal-gallery {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
  gap: 1rem;
  padding: 1rem 2rem;
}
.horizontal-gallery::-webkit-scrollbar {
  display: none;
}
.gallery-column {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  flex: 0 0 auto;
}
.gallery-column img {
  width: 320px;
  height: auto;
  object-fit: content;
  display: block;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}
.gallery-controls {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
}
.scroll-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  font-size: 2rem;
  cursor: pointer;
  padding: 0.5rem 1rem;
  user-select: none;
}
.scroll-btn.left {
  left: 0;
  background-color: transparent;
  color: rgb(90, 19, 19);
}
.scroll-btn.right {
  right: 0;
  background-color: transparent;
  color: rgb(90, 19, 19);
}
/* Scroll-state */
.scrolled {
  background-color: rgba(126, 28, 28, 0.8);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.4);
}
.scrolled .small-logo {
  opacity: 1;
}
.scrolled .large-logo {
  display: none;
}
.hero-logo-text.scrolled-out {
  opacity: 0;
  transition: opacity 0.3s;
}
.footer,
footer,
.footer li a {
  background-color: #faebd7;
  color: rgb(177, 18, 47);
  list-style: none;
  text-decoration: none;
}
.footer li {
  margin-top: 0.4rem;
}
.icon {
  height: 25px;
  width: 25px;
}

@media (max-width: 768px) {
  .hero-logo-text {
    width: 75%;
    position: fixed;
    top: 1rem;
    left: 1%;
  }
  .hero-header {
    position: relative;
    overflow: hidden;
  }
  .navbar {
    padding: 0.5rem 1rem;
  }
  .menu-grid {
    grid-template-columns: 1fr;
  }
  .menu-item {
    padding: 5%;
  }
}

@media (max-width: 1200px) {
  .hero-header {
    position: relative;
    overflow: hidden;
  }
}
