#detalhe-moinho {
  position: relative;
}

#detalhe-moinho .sub-title {
  color: var(--beije);
  font-size: 12px;
  line-height: 22px;
  letter-spacing: 0.1em;
}

#detalhe-moinho .info-card {
  position: relative;
}

#detalhe-moinho .background-icon {
  position: absolute;
  top: 20%;
  left: -20px;
  transform: translateY(-50%);
  font-size: 128px;
  color: var(--beije);
  opacity: 0.2;
  z-index: -1;
  pointer-events: none;
}

#detalhe-moinho #experiencias .image-caption {
  transition: transform 0.5s ease;
}

#detalhe-moinho #experiencias .icon-caption {
  opacity: 0;
  transform: translateY(100%);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

#detalhe-moinho .info-card h3 {
  position: relative;
  z-index: 1;
  margin-bottom: 10px;
}

#detalhe-moinho .info-card p {
  position: relative;
  z-index: 1;
  margin-bottom: 30px;
}

#detalhe-moinho .info-card a {
  position: relative;
  display: block;
  z-index: 1;
  margin-bottom: 0px;
  color: var(--cinza);
}

#detalhe-moinho .info-card li {
  margin-bottom: 0px;
  color: var(--cinza);
  font-size: 18px;
}

#detalhe-moinho .info-card li i {
  margin-bottom: 0px;
  margin-right: 10px;
  color: var(--cinza);
  font-size: 18px;
}

ul.icon-list {
  color: var(--cinza);
  list-style-type: none;
  padding: 0;
  overflow: hidden;
}

.icon-list li {
  float: left;
}

ul.dashed {
  list-style-type: none;
}

ul.dashed > li {
  text-indent: -30px;
}

ul.dashed > li:before {
  content: "- ";
  text-indent: -20px;
}

#detalhe-moinho p {
  font-size: 18px;
  font-weight: 400;
  line-height: 28px;
  color: var(--cinza);
}

#detalhe-moinho #moinho-info h1 {
  margin-bottom: 75px;
}

#detalhe-moinho #mapa {
  height: 500px;
}

#detalhe-moinho #experiencias {
  background-color: #fbf6f2;
}

#galeria {
  background-color: var(--azul);
}

#galeria h2 {
  color: var(--branco);
}

#galeria .masonry {
  width: 100%;
}

#galeria .masonry .masonry-item {
  margin-bottom: 30px;
  float: left;
  width: 30%;
}

#galeria .masonry .masonry-item .masonry-image {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  transition-delay: calc(var(--i) * 100ms);
}

#galeria .masonry .masonry-item .masonry-image.visible {
  opacity: 1;
  transform: translateY(0);
}

#galeria .patrimonio-gallery .masonry-item::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(50, 63, 96, 0) 60%,
    rgba(50, 63, 96, 0.8) 100%
  );
  z-index: 1;
}

#galeria .masonry .masonry-item .masonry-description {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  color: var(--branco) !important;
  font-size: 18px;
  z-index: 2;
  margin-left: 30px;
  padding-right: 5px;
}

#galeria .masonry-item:nth-of-type(odd) {
  height: 243px;
}

#galeria .masonry-item:nth-of-type(even) {
  height: 544px;
}

#galeria .masonry-item:nth-of-type(5n) {
  height: 544px;
}

#galeria .masonry-item:nth-of-type(5n + 1) {
  height: 243px;
}

#galeria .masonry .masonry-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

#detalhe-moinho #historias {
  background-color: #fbf6f2;
}

#detalhe-moinho #historias img {
  height: 648px;
  object-fit: cover;
}

#detalhe-moinho #historias h5 {
  color: var(--beije);
  font-size: 24px;
  line-height: 34px;
  font-weight: 300;
}

#detalhe-moinho #historias h2 {
  color: var(--azul);
  font-weight: 700;
  line-height: 57px;
  font-size: 48px;
}

#detalhe-moinho #historias .styled-anchor {
  color: var(--branco);
  background-color: var(--beije);
}

#detalhe-moinho #historias .styled-anchor:hover {
  background-color: var(--azul);
  color: var(--beije);
}

#detalhe-moinho #sugestoes .sugestao {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #f3f3f3;
  min-width: 325px;
  max-width: 325px;
  height: 470px;
  position: relative;
  margin-right: 24px;
}

#detalhe-moinho #sugestoes .sugestao::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    180deg,
    rgba(50, 63, 96, 0) 60%,
    rgba(50, 63, 96, 0.8) 100%
  );
  z-index: 1;
}

#detalhe-moinho #sugestoes .sugestao .image-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  color: var(--branco) !important;
  font-size: 18px;
  z-index: 2;
  margin-left: 30px;
  margin-bottom: 60px;
}

#detalhe-moinho #moinho-info {
  margin-top: 50px;
}

#detalhe-moinho #moinho-info .row {
  margin-top: 70px;
}

#agendar input,
#agendar select,
#agendar textarea {
  background-color: #fbf6f2;
  border-radius: 0;
  border: 0;
  height: 60px;
}

#agendar textarea {
  height: 100px;
}

#agendar label {
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 400;
  color: var(--cinza);
}

#agendar input:focus,
#agendar select:focus,
#agendar textarea:focus {
  box-shadow: none;
}

#agendar .submit {
  background-color: var(--beije);
  border: 0;
  border-radius: 0;
  height: 60px;
  width: 200px;
}

.popover-like {
  position: absolute;
  z-index: 1050;
  background: #fff;
  border: 1px solid #ddd;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  padding: 15px;
  display: none;
}

#adultsCount,
#childrenCount {
  background-color: #fff !important;
}

.popover-like.show {
  display: block;
}

button#adultsMinus,
button#adultsPlus,
button#childrenMinus,
button#childrenPlus,
button#seniorMinus,
button#seniorPlus {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0;
  font-size: 1.2rem;
  border: 1px solid var(--beije);
  color: var(--beije);
}

button#adultsMinus:hover,
button#adultsPlus:hover,
button#childrenMinus:hover,
button#childrenPlus:hover,
button#seniorMinus:hover,
button#seniorPlus:hover {
  color: var(--branco);
  background-color: var(--beije);
}

#detalhe-moinho #trilhos {
  position: relative;
  color: var(--branco);
  background: url("../images/trilhos.png") no-repeat center/cover;
  background-attachment: fixed;
}

#detalhe-moinho #trilhos .display-4 {
  color: var(--branco);
  font-size: 70px;
}

#detalhe-moinho #trilhos::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: #323f60;
  opacity: 0.5;
  mix-blend-mode: multiply;
  z-index: 1;
}

#detalhe-moinho #trilhos * {
  position: relative;
  z-index: 2;
}

#detalhe-moinho #trilhos .styled-anchor {
  color: var(--azul);
  background-color: var(--branco);
  padding: 22px 26.5px;
  font-weight: 400;
}

#detalhe-moinho #trilhos .styled-anchor:hover {
  color: var(--branco);
  background-color: var(--azul);
}

.gallery-nav {
  display: flex;
  justify-content: end;
  align-items: center;
  color: var(--beije);
  gap: 24px;
  font-size: 36px;
  margin-left: auto;
}

@media (max-width: 768px) {
  #detalhe-moinho #moinho-info {
    margin-top: 0px;
  }

  #galeria .masonry .masonry-item {
    width: 100%;
  }

  #detalhe-moinho #galeria .masonry .masonry-item {
    width: 100%;
  }

  #detalhe-moinho #moinho-info h1 {
    margin-bottom: 30px;
  }

  #detalhe-moinho #moinho-info p {
    font-size: 16px;
  }

  #essenciais p {
    font-size: 16px;
  }

  .essenciais-container,
  #moinho-info,
  .essenciais-container-experiencias {
    padding-left: 15px;
  }

  .essenciais-container-experiencias h3 {
    margin-top: 50px !important;
  }

  .essenciais-container-experiencias p {
    margin-bottom: 50px !important;
  }

  #detalhe-moinho .background-icon {
    left: 5px;
  }

  .moinho-info-icons p,
  .moinho-info-icons h3 {
    margin-left: 20px;
  }

  .moinho-info-icons h3 {
    margin-top: 15px;
  }

  #moinho-info .background-icon {
    margin-top: 40px;
  }

  #sugestoes h2 {
    font-size: 36px;
    line-height: 46px;
  }
}
