@import url("https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Google+Sans+Flex:opsz,wght@6..144,1..1000&display=swap");



* {
  /* font-family: "Poppins", sans-serif; */
  font-family: "Google Sans Flex", sans-serif;
  font-weight: 500;
  font-size: 0.95rem;
  font-style: normal;
}

html {
  scroll-behavior: smooth;
}

.border-alfa{--bs-border-opacity:1;border-color:var(--alfa-red,var(--bs-border-opacity))!important}
.bg-alfa{--bs-bg-opacity:1;background-color:var(--alfa-red)!important}
.text-danger-alfa{--bs-text-opacity:1;color:var(--alfa-red)!important}

[data-bs-theme="light"] .navbar-toggler {
  border-color: rgba(0, 0, 0, 0.1);
}

.section {
  padding-block: clamp(1.25rem, 2vw, 2rem);
  scroll-margin-top: calc(var(--header-offset, var(--nav-h)) + 12px);
  min-height: calc(
    95svh - var(--header-offset, var(--nav-h)) - var(--dock-h, 0px)
  );
}


.menu-nav,
.menu-nav-header {
  transform: translate(-50%, 10px);
  transition: opacity 0.25s ease, transform 0.25s ease;
  border: 1px solid rgba(207, 48, 52, 0.2);
  bottom: max(12px, env(safe-area-inset-bottom));
  backdrop-filter: saturate(1.2) blur(8px);
}

.menu-nav {
  opacity: 0;
  pointer-events: none;
  background-color: var(--alfa-red);
  width: 90%;
  max-width: 500px;
}

.menu-nav.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, 0);
}

.menu-item {
  color: #fff;
  background-color: var(--alfa-red);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;   /* centraliza conteúdo (i/img + span) */
  width: 15%;
  transition:
    width 0.5s ease,
    background-color 0.4s ease,
    color 0.4s ease;
}

/* Ícone */
.menu-item i {
  font-size: 1.35rem;
  transition: transform 0.5s ease;
}

/* Imagem – mantém como estava */
.menu-item img {
  filter: brightness(0) invert(1);
  transition:
    filter 0.3s ease,
    transform 0.5s ease;
}

/* Texto: começa “escondido”, mas sem position absolute */
.menu-item span {
  white-space: nowrap;
  overflow: hidden;
  max-width: 0;                 /* some visualmente */
  opacity: 0;
  transform: translateX(10px);  /* levemente deslocado */
  margin-left: 0;
  transition:
    max-width 0.5s ease,
    opacity 0.5s ease,
    transform 0.5s ease,
    margin-left 0.5s ease;
}

/* Estados de hover e active unificados */
.menu-item:is(:hover, .active) {
  color: var(--alfa-red);
  font-weight: 600;
  background-color: #f7f4fb;
  width: 90%;
}

/* img no hover/active – mantém comportamento */
.menu-item:is(:hover, .active) img {
  filter: none;
}

/* ícone anda um pouco pra esquerda */
.menu-item:is(:hover, .active) i {
  transform: translateX(-10px);
}

/* texto aparece animado ao lado do ícone */
.menu-item:is(:hover, .active) span {
  max-width: 200px;      /* limita o espaço do texto */
  opacity: 1;
  transform: translateX(0);
  margin-left: 8px;      /* distancia do ícone */
}

/* trilho horizontal */
.carrosel-cards{
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding: 12px 56px;          /* espaço pras setas */
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;

  align-items: stretch;        /* altura = a do maior */
}

/* esconder scrollbar (continua rolando) */
.carrosel-cards::-webkit-scrollbar{ display:none; }
.carrosel-cards{ scrollbar-width: none; }

/* cada card */
.card-section{
  flex: 0 0 230px;             /* largura fixa, mas permite “stretch” na altura */
  align-self: stretch;         /* força seguir o align-items: stretch do trilho */
  height: auto;                /* importante: não “prender” a altura */

  display: flex;
  flex-direction: column;

  border-radius: 14px;
  border: 0;
  box-shadow: 0 6px 18px rgba(0,0,0,.06);
  overflow: hidden;
  color: inherit;
  scroll-snap-align: center;
}

/* imagem/placeholder com altura fixa */
.card-section img,
.card-section .img-placeholder{
  height: 160px;
  width: 100%;
  display: block;
  object-fit: cover;
}

/* corpo ocupa o resto do card */
.card-section .card-body{
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-height: 0;               /* evita “forçar” altura por overflow */
}

/* título com no máximo 2 linhas (evita variar altura do card) */
.card-title-prod{
  line-height: 1.2;
  height: calc(1.2em * 2);      /* 2 linhas fixas */
  overflow: hidden;

  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
/* preço sempre no rodapé */
.card-preco{
  margin-top: auto !important;
}

/* botões circulares por cima */
.carousel-btn{
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 0;
  color: var(--alfa-red);
  background: #fff;
  box-shadow: 0 8px 18px rgba(0,0,0,.12);
  display: grid;
  place-items: center;
  font-size: 28px;
  line-height: 1;
  z-index: 2;
}

.carousel-btn:hover{ filter: brightness(.98); }
.carousel-btn:active{ transform: translateY(-50%) scale(.98); }


.btn-primario {
  background: var(--alfa-red);
  border-color: var(--alfa-red);
  border-radius: 999px;
  color: #fff;
  font-weight: 600;
  padding: 0.5rem 1rem;
}
.btn-primario:hover {
  background: var(--alfa-red-escuro);
  border-color: var(--alfa-red-escuro);
  color: var(--alfa-yellow);
}
.btn-secundario {
  background: transparent;
  border: 2px solid var(--alfa-red);
  border-radius: 999px;
  color: var(--alfa-red);
  font-weight: 600;
  padding: 0.5rem 1rem;
  transition: all 0.2s ease-in-out;
}
.btn-secundario:hover {
  background: var(--alfa-red);
  color: #fff;
}
.dropdown-menu {
  border: 0;
  border-radius: 16px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12);
  background: linear-gradient(135deg, #fff 0%, #f7f4fb 100%);
  margin-top: 0.6rem;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.18s ease, transform 0.18s ease;
}
.dropdown-menu.show {
  opacity: 1;
  transform: translateY(0);
}
.dropdown-menu .dropdown-item {
  padding: 0.45rem 0;
  font-weight: 500;
  color: #333;
}
.dropdown-menu .dropdown-item:hover {
  color: var(--alfa-red);
  background: transparent;
}

#mainNav {
  transition: transform 0.3s ease-in-out, background-color 0.2s ease,
    box-shadow 0.2s ease;
}
#mainNav:not(.navbar-solid) {
  background-color: transparent !important;
  box-shadow: none !important;
}
#mainNav.navbar-solid {
  background-color: #fff !important;
  box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075) !important;
}
.navbar-hidden {
  transform: translateY(-100%);
}
.nav-links {
  display: flex;
  gap: 0 2rem;
  list-style: none;
}
.nav-links a {
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
  position: relative;
  padding: 0.25rem 0;
}

.navbar .dropdown-toggle::after,
.btn-group .dropdown-toggle-split::after {
  display: none !important;
}

.nav-links a::before {
  content: "";
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--alfa-red-escuro);
  transition: width 0.25s;
}
.nav-links a:hover::before,
.nav-links a:focus-visible::before {
  width: 100%;
}

.navbar .dropdown-menu.mega {
  white-space: normal;
}

.section-icons {
  position: fixed;
  top: 50%;
  right: 20px;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 15px;
  z-index: 1000;
  background-color: var(--alfa-red);
  padding: 10px;
}

.section-icons a {
  color: #fff;
  text-align: center;
  transition: all 0.3s ease;
}

.section-icons a:hover {
  color: var(--alfa-yellow);
  transform: scale(1.1);
}

.header-bg {
  position: relative;
  background-image: var(--bg-url);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.header-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.15),
    rgba(0, 0, 0, 0) 40%
  );
  pointer-events: none;
}

.header-bg > .container {
  position: relative;
  z-index: 1;
}

.header-carousel .carousel-control-prev,
.header-carousel .carousel-control-next,
.header-carousel .carousel-indicators [data-bs-target] {
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.5));
}

.session-first-bg {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.social-icons {
  position: fixed;
  top: 50%;
  left: 20px;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 15px;
  z-index: 1000;
  background-color: #ffffff;
  padding: 10px;
}

.social-icons a {
  color: var(--alfa-red);
  text-align: center;
  transition: all 0.3s ease;
}

.social-icons a:hover {
  color: var(--alfa-yellow);
  transform: scale(1.1);
}




.reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.5s ease, transform 0.5s ease;
  transition-delay: var(--d, 0s);
  will-change: opacity, transform;
}
.reveal.in {
  opacity: 1;
  transform: none;
}
.fade-in {
  transform: none;
}
.zoom-in {
  transform: scale(0.985);
}
.slide-up {
  transform: translateY(18px);
}
.slide-left {
  transform: translateX(18px);
}
.slide-right {
  transform: translateX(-18px);
}
.in.zoom-in {
  transform: scale(1);
}
.in.slide-up,
.in.slide-left,
.in.slide-right {
  transform: none;
}

.estado-map path {
  fill: var(--alfa-cinza);
  stroke: #fff;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.estado-map:hover path,
.estado-map:focus path {
  fill: var(--alfa-cinza-mais-claro);
  outline: none;
}
.estado-map:focus-visible path {
  filter: drop-shadow(0 0 0.25rem rgba(0, 0, 0, 0.25));
}
.estado-map-atendido path {
  fill: var(--alfa-red);
  stroke: #fff;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.estado-map-atendido:hover path,
.estado-map-atendido:focus path {
  fill: var(--bs-danger-border-subtle);
  outline: none;
}
text {
  fill: #fff;
  font-size: 8px;
  pointer-events: none;
}
.map-popout {
  transform: translateX(-10%) scale(1.03) rotateX(2deg);
  transform-origin: center bottom;
  filter: drop-shadow(0 24px 28px rgba(0, 0, 0, 0.35));
  transition: transform 0.3s ease, filter 0.3s ease;
  will-change: transform, filter;
  z-index: 2;
}

@media (min-width: 992px) {
  .title-header {
    font-size: clamp(4em, 4vw, 5rem);
    color: var(--color-titulo);
  }
  .navbar .dropdown.position-static .dropdown-menu.mega {
    position: fixed !important;
    z-index: 1050;
    left: 0 !important;
    right: 0 !important;
    top: var(--nav-h) !important;
    width: 100vw !important;
    max-width: 100vw !important;
    transform: none !important;
    margin: 0 !important;
    max-height: calc(100vh - (var(--nav-h) + 14px));
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-gutter: stable both-edges;
  }
  header.header-overlap {
    padding-bottom: calc(1rem + var(--overlap));
  }
}

@media (max-width: 1366px) {
  *{
    font-size: 0.90rem;
  }
}

@media (max-width: 991.98px) {

  #mainNav {
    background-color: #fff !important;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075) !important;
  }
  #mainNav .navbar-collapse {
    background: #fff;
    padding: 1rem;
    border-radius: 1rem;
  }

  .navbar .dropdown-menu.mega {
    position: fixed !important;
    left: 0;
    right: 0;
    top: var(--nav-h);
    width: 100vw !important;
    max-width: 100vw !important;
    margin: 0 !important;
    transform: none !important;
    z-index: 1050;
    max-height: 70vh;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    border-radius: 12px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
    white-space: normal;
  }
  .title-header {
    font-size: clamp(3rem, 3vw, 4rem);
    color: var(--color-titulo);
  }
  .navbar .dropdown-menu.mega > .container {
    max-width: none !important;
    padding-left: 1rem;
    padding-right: 1rem;
  }
  .navbar .dropdown-menu.mega .row > [class*="col-"] {
    margin-bottom: 1rem;
  }
  .navbar .dropdown-menu.mega .card {
    box-shadow: none;
  }
  .dropdown-menu.mega .mega-close {
    position: sticky;
    top: 0;
    z-index: 2;
    display: flex;
    justify-content: flex-end;
    padding: 0.25rem;
    margin: -1rem -1rem 0.5rem;
    background: linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.98),
      rgba(255, 255, 255, 0.92)
    );
    backdrop-filter: saturate(1.2) blur(4px);
    border-top-left-radius: 16px;
    border-top-right-radius: 16px;
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
  }
  .dropdown-menu.mega .btn-close-mobile {
    width: 1rem;
    height: 1rem;
    padding: 0.75rem;
    opacity: 0.8;
  }
  .dropdown-menu.mega .btn-close-mobile:hover {
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .reveal,
  .reveal.in {
    transition: none !important;
    transform: none !important;
    opacity: 1 !important;
  }
}


@media (max-width: 576px) {
  * {
    font-size: 0.85rem;
  }
  .map-popout {
    transform: translateY(-4%) scale(1.03) rotateX(2deg);
  }
  .social-icons {
    left: 10px;
    gap: 10px;
  }
  .map-popout:hover,
  .map-popout:focus {
    transform: translateY(-8%) scale(1.05) rotateX(0deg);
  }

  .menu-item {
    color: #fff;
    background-color: var(--alfa-red);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;   /* centraliza conteúdo (i/img + span) */
    width: 15%;
    transition:
      width 0.5s ease,
      background-color 0.4s ease,
      color 0.4s ease;
  }

  /* Ícone */
  .menu-item i {
    font-size: 1.35rem;
    transition: transform 0.5s ease;
  }

  /* Imagem – mantém como estava */
  .menu-item img {
    filter: brightness(0) invert(1);
    transition:
      filter 0.3s ease,
      transform 0.5s ease;
  }

  /* Texto: começa “escondido”, mas sem position absolute */
  .menu-item span {
    white-space: nowrap;
    overflow: hidden;
    max-width: 0;                 /* some visualmente */
    opacity: 0;
    transform: translateX(10px);  /* levemente deslocado */
    margin-left: 0;
    transition:
      max-width 0.5s ease,
      opacity 0.5s ease,
      transform 0.5s ease,
      margin-left 0.5s ease;
  }

  /* Estados de hover e active unificados */
  .menu-item:is(:hover, .active) {
    color: var(--alfa-red);
    font-weight: 600;
    background-color: #f7f4fb;
    width: 60%;
  }

  /* img no hover/active – mantém comportamento */
  .menu-item:is(:hover, .active) img {
    filter: none;
  }

  /* ícone anda um pouco pra esquerda */
  .menu-item:is(:hover, .active) i {
    transform: translateX(-10px);
  }

  /* texto aparece animado ao lado do ícone */
  .menu-item:is(:hover, .active) span {
    max-width: 200px;      /* limita o espaço do texto */
    opacity: 1;
    transform: translateX(0);
    margin-left: 4px;      /* distancia do ícone */
  }


}

@media (hover: hover) {
  .map-popout:hover,
  .map-popout:focus {
    transform: translateX(-14%) scale(1.05) rotateX(0deg);
    filter: drop-shadow(0 28px 36px rgba(0, 0, 0, 0.4));
  }
}


/* =============================== */
/* 🔍 CAMPO DE BUSCA               */
/* =============================== */
.datatable-top .datatable-search .datatable-input {
  padding: 8px 12px;
  border: 1px solid var(--alfa-red);
  border-radius: 6px;
  font-size: 14px;
  width: 90%; /* ajuste como quiser */
  transition: all 0.25s;
}

.datatable-top .datatable-search .datatable-input:focus {
  border-color: var(--alfa-red);
  box-shadow: 0 0 6px var(--alfa-red-escuro);
}

/* Ícone de lupa opcional */
.datatable-search {
  position: relative;
}

.datatable-search::before {
  content: "🔍";
  position: absolute;
  top: 50%;
  left: 8px;
  transform: translateY(-50%);
  opacity: .6;
}

.datatable-search .datatable-input {
  padding-left: 28px !important;
}
.datatable-search {
  margin-left: auto;
  margin-right: 0;
}

/* =============================== */
/* 📄 SELECT (registros por página) */
/* =============================== */

.datatable-dropdown label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
}

.datatable-dropdown .datatable-selector {
  padding: 6px 12px;
  border: 1px solid var(--alfa-red);
  border-radius: 6px;
  background-color: var(--alfa-cinza-mais-claro);
  font-size: 14px;
  cursor: pointer;
  transition: all 0.25s;
  appearance: none;           /* Remove estilo nativo */
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg fill='%23aa0000' height='18' viewBox='0 0 24 24' width='18' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/></svg>");
  background-repeat: no-repeat;
  background-position: right 10px center;
  padding-right: 32px;        /* espaço para a setinha */
}

.datatable-dropdown .datatable-selector:focus {
  border-color: var(--alfa-red);
  box-shadow: 0 0 6px var(--alfa-red-escuro);
}

/* =============================== */
/* 🎨 ESTILO DOS OPTIONS           */
/* =============================== */

.datatable-dropdown .datatable-selector option {
  padding: 10px;
  font-size: 14px;
  color: #333;
  border: 1px solid var(--alfa-red);
  border-radius: 6px;
  background-color: var(--alfa-cinza-mais-claro);
}

/* Hover dentro do select (Chrome/Safari não aplicam, mas Firefox sim) */
.datatable-dropdown .datatable-selector option:hover {
  background-color: var(--alfa-red);
  color: var(--alfa-cinza-mais-claro);
  
}


/* =============================== */
/* 📦 ORGANIZAÇÃO DO TOPO          */
/* =============================== */
.datatable-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 8px;
}

/* =============================== */
/* 🔘 PAGINAÇÃO                    */
/* =============================== */
.datatable-pagination .datatable-pagination-list-item-link {
  padding: 6px 12px;
  border-radius: 6px;
  border: 1px solid var(--alfa-red);
  text-decoration: none;
  transition: 0.2s;
  cursor: pointer;
}

.datatable-pagination .datatable-pagination-list-item-link:hover {
  background: var(--alfa-red);
  color: var(--alfa-cinza-mais-claro);
  border-color: var(--alfa-red);
}

.datatable-pagination .datatable-active .datatable-pagination-list-item-link {
  background: var(--alfa-red);
  color: var(--alfa-cinza-mais-claro);
  border-color: var(--alfa-red);
}

/* Desabilitados */
.datatable-pagination .datatable-disabled .datatable-pagination-list-item-link {
  opacity: 0.5;
  cursor: default;
}

/* =============================== */
/* ℹ️  RODAPÉ (info)               */
/* =============================== */
.datatable-bottom .datatable-info {
  font-size: 14px;
  opacity: .8;
}
