.bar-banner {
  width: 100%;
  height: 50vh;
  position: relative;
  z-index: 1;
  overflow: hidden;
}

.bar-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--bar-banner-url);
  background-size: cover;
  background-position: center;
  z-index: -1;
}

.bar-banner-content {
  position: absolute;
  top: 65%;
  left: 50%;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 1rem;
  box-sizing: border-box;
  color: white;
  overflow: hidden;
  transform: translate(-50%, -50%);
}

.bar-banner-content h2 {
  font-weight: bold;
  margin: 0 0 0.5rem 0;
  word-wrap: break-word;
  hyphens: auto;
  flex-shrink: 1;
  text-shadow: 2px 2px 5px rgba(0, 0, 0, 1);
  color: var(--white);
}

.bar-banner-content h3 {
  margin: 0 0 1rem 0;
  word-wrap: break-word;
  flex-shrink: 1;
  text-shadow: 2px 2px 5px rgba(0, 0, 0, 1);
  color: var(--white);
}

.typing-text::after {
  content: "|";
  animation: blink-caret 0.7s step-end infinite;
}

@keyframes blink-caret {
  from,
  to {
    opacity: 0;
  }

  50% {
    opacity: 1;
  }
}

.typing-text.typing-done::after {
  content: none;
}

/* Menu Section */
.bar-menu-section {
  margin-top: 8vh;
}

.bar-container {
  width: 80%;
  margin: 4vh auto 8vh auto;
  display: flex;
  box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.445);
  text-align: center;
  padding: 1rem;
  align-items: stretch;
  border-radius: 10px;
}

/* Card esquerdo */
.bar-info-card {
  display: flex;
  flex-direction: column;
  flex: 1; 
  overflow: visible;
  border-radius: 10px;
  position: relative; 
}

.bar-info-card .card-image {
    flex: 1 1 0;
    min-height: 200px; 
    border-radius: 10px;
}

/* Imagem do card */
.bar-info-card .card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
}

/* Texto do card */
.bar-info-card .card-text {
    flex: 1 1 0;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;

    background: linear-gradient(
        to right,      
        rgba(255, 0, 0, 0.8),
        rgba(255, 0, 0, 0.4)  
    );
    color: var(--white);
    box-sizing: border-box;
    min-height: fit-content;
    border-radius: 10px;
    position: relative;
}


.bar-info-card .card-text h2 {
  color: var(--white);
}

.bar-info-card .card-text a {
  color: var(--white);
  text-decoration: underline;
}

.bar-info-card .card-text-content {
    margin-bottom: 2rem;
}

.whatsapp-widget {
  position: absolute;
  bottom: 1rem;      /* usa rem em vez de px */
  right: 1rem;       /* idem */
  width: clamp(40px, 12%, 60px);   /* mínimo 40px, ideal 8% do container, máximo 60px */
  height: clamp(40px, 12%, 60px);
  transition: transform 0.2s ease;
}

.whatsapp-widget img {
  width: 100%;
  height: 100%;
}

.whatsapp-widget:hover {
  transform: scale(1.2);
  cursor: pointer;
}


.divider {
    width: 50%;   
    margin: 1rem auto;
    border: none;  
    border-top: 2px solid var(--red);
}

/* Lado direito: imagem da ementa */
.menu-image-wrapper {
  flex: 1; 
  display: flex;
}

.menu-image-wrapper img.menu-image {
  width: 100%;
  object-fit: contain;
  height: auto;
  border-radius: 10px;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.menu-image-wrapper img.menu-image:hover {
    transform: scale(1.01); 
}


/* Gallery Section */
.swiper-title {
  margin-top: 8vh;
}

.swiper {
  width: 100%;
  height: 35% !important;
  margin-bottom: 8vh;
}

.swiper-slide {
  text-align: center;
  background: #444;
  display: flex;
  justify-content: center;
  align-items: center;
  aspect-ratio: 3 / 2;
  height: auto;
  border-radius: 10px;
  overflow: hidden;
}

.swiper-slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.fancybox__container {
  z-index: 99999 !important;
}

/* Tablet - 1024px para baixo */
@media (max-width: 1024px) {
    .bar-container {
        width: 80%;
        padding: 0.8rem;
    }
    
    .bar-info-card .card-text {
        padding: 1.5rem;
    }
}

/* Mobile grande - 768px para baixo */
@media (max-width: 768px) {
    .bar-container {
        flex-direction: column;
        width: 80%;
        padding: 0.5rem;
    }

    .bar-info-card {
        margin-bottom: 1rem;
    }
    
    .bar-info-card .card-image {
        min-height: 250px; 
    }
    
    .bar-info-card .card-text {
        padding: 1.2rem;
        font-size: 0.9rem;
    }
    
    .menu-image-wrapper {
        margin-top: 1rem;
    }
    
}

@media (max-width: 480px) {
    .bar-container {
        width: 80%;
        margin: 2vh auto 4vh auto;
    }
    
    .bar-info-card .card-text {
        padding: 1rem;
        font-size: 0.85rem;
    }
    
    .bar-info-card .card-text h2 {
        font-size: 1.2rem;
        margin-bottom: 0.8rem;
    }
    
}

@media (min-width: 1920px) {
    .bar-container {
        max-width: 1890px;
    }
}
