.main-gallery-section {
  text-align: center;
  padding: 60px 20px;
}

.full-width {
  width: 90vw;
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 0;
  box-sizing: border-box;
}

.section-title {
  font-size: 2.2rem;
  color: #222;
  font-weight: 800;
  margin-bottom: 48px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  position: relative;
  display: inline-block;
  transition: color 0.3s ease;
}

.section-title::after {
  content: '';
  display: block;
  width: 60%;
  height: 3px;
  background: #1BE149;
  margin: 10px auto 0;
  border-radius: 3px;
  opacity: 0.8;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 55px;
  padding: 0 32px;
  /* transition: all 0.3s ease; */
}

.gallery-card {
  border-radius: 18px;
  overflow: hidden;
  box-shadow:
    0 4px 12px rgba(0, 0, 0, 0.08),
    0 12px 28px rgba(0, 0, 0, 0.12);
  /* transition: transform 0.35s ease, box-shadow 0.35s ease; */
  display: flex;
  flex-direction: column;
  cursor: pointer;
  position: relative;
  isolation: isolate;
    transition: all 0.35s ease;

}
/* 
.gallery-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(27,225,73,0.08), rgba(255,255,255,0));
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 0;
} */

.gallery-card:hover::before {
  opacity: 1;
}

.gallery-card::after {
  content: "";
  position: absolute;
  bottom: 10px;
  right: 10px;
  width: 60px;
  height: 60px;
  pointer-events: none;

  opacity: 0.4;
  background:
    linear-gradient(135deg,
      rgba(0,0,0,0) 55%,
      rgba(0, 0, 0, 0.363) 55%,
      rgba(0, 0, 0, 0.37) 57%,
      rgba(0,0,0,0) 57%) top left,
    linear-gradient(135deg,
      rgba(0,0,0,0) 70%,
      rgba(0, 0, 0, 0.384) 70%,
      rgba(0, 0, 0, 0.39) 72%,
      rgba(0,0,0,0) 72%) top left;
  background-repeat: no-repeat;
  background-size: 100% 100%;
  clip-path: polygon(100% 0, 0 100%, 100% 100%);
  transition: all 0.3s ease-in-out;
}

.gallery-card:hover::after {
  opacity: 0.7;
  transform: translate(-3px, -3px);
}

.gallery-card > * {
  position: relative;
  z-index: 1;
}

.dark-mode .gallery-card::after {
  background:
    linear-gradient(135deg,
      rgba(255,255,255,0) 55%,
      rgba(255, 255, 255, 0.301) 55%,
      rgba(255, 255, 255, 0.342) 57%,
      rgba(255,255,255,0) 57%) top left,
    linear-gradient(135deg,
      rgba(255,255,255,0) 70%,
      rgba(255, 255, 255, 0.452) 70%,
      rgba(255, 255, 255, 0.397) 72%,
      rgba(255,255,255,0) 72%) top left;
}

.gallery-card:hover {
   transform: translateY(-6px);
  box-shadow:
    0 10px 20px rgba(0, 0, 0, 0.10),
    0 25px 55px rgba(0, 0, 0, 0.15);

}

.gallery-card img {
  width: 100%;
  height: 340px;
  object-fit: contain;
  object-position: center;
  transition: all 0.35s ease;
   background: white;
}

.gallery-card:hover img {
  transform: scale(1.05);
}

.gallery-card h3 {
  font-size: 1.1rem;
  color: #111;
  margin: 18px 0 6px;
  font-weight: 600;
  text-align: center;
  transition: color 0.3s ease;
}

.gallery-card:hover h3 {
  color: #1BE149;
}

.gallery-card p {
  font-size: 0.95rem;
  color: black;
  padding: 0 18px 20px;
  flex-grow: 1;
  text-align: left;
  line-height: 1.6;
    transition: all 0.35s ease;

}

.gallery-card:active {
  transform: scale(0.98);
  transition: transform 0.1s;
}

@media (max-width: 1024px) {
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
}

@media (max-width: 768px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
  .section-title {
    font-size: 1.8rem;
  }
}

@media (max-width: 480px) {
  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  background-color: #ffffff;
  color: #000000;
  transition: background-color 0.4s ease, color 0.4s ease;
}

body.light-mode {
  background-color: #ffffff;
  color: #000000;
}

body.dark-mode {
  background-color: #121212;
  color: #ffffff;
}

body.light-mode #toggle-theme {
  background: #1b1b1b;
  color: #fff;
}

body.dark-mode #toggle-theme {
  background: #efefef;
  color: #000;
}

.dark-mode .gallery-card {
  background-color: #575757;
}

.dark-mode p {
color: white;
}  


.dark-mode h3 {
color: white;
}

.dark-mode .gallery-card img{
  background-color: #575757;
}

.dark-mode .modal-content {
  background: #333;
}



/* 
.dark-mode .modal-content p {
color: #1BE149;

} */

.dark-mode .modal-content h3 {
color: #1BE149;

}

@media (max-width: 1024px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 2fr);
  }
}

@media (max-width: 600px) {
  .gallery-grid {
  grid-template-columns: repeat(2, 2fr);;
    padding: 0 0;
  }

  .section-title {
    font-size: 20px;
  }
}

body {
  font-family: Arial, sans-serif;
  background-color: #ffffff;
  color: #000000;
  transition: background-color 0.4s ease, color 0.4s ease;
}

body.light-mode {
  background-color: #ffffff;
  color: #000000;
}

body.dark-mode {
  background-color: #121212;
  color: #ffffff;
}

body.light-mode #toggle-theme {
  background: #1b1b1b;
  color: #fff;
}

body.dark-mode #toggle-theme {
  background: #efefef;
  color: #000;
}

#imgHeaderBlack,
#imgHeaderWhite {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 0.4s ease-in-out;
}

#imgHeaderBlack {
  background-image: url("/RioMoveis/img/imgHeaderBlack.png");
  box-shadow: 0 6px 18px rgba(1, 171, 43, 0.25),
    0 12px 36px rgba(1, 171, 43, 0.15);
  animation: headerAnimacaoBlack 20s infinite ease-out;
}

#imgHeaderWhite {
  background-image: url("/RioMoveis/img/imgHeaderWhite.png");
  box-shadow: -1px 2px 22px 9px rgba(0, 0, 0, 0.76);
  -webkit-box-shadow: -1px 2px 22px 9px rgba(0, 0, 0, 0.76);
  -moz-box-shadow: -1px 2px 22px 9px rgba(0, 0, 0, 0.76);
  animation: headerAnimacaoWhite 20s infinite ease-out;
}

body.light-mode #imgHeaderWhite {
  opacity: 0.8;
}
body.light-mode #imgHeaderBlack {
  opacity: 0;
}
body.dark-mode #imgHeaderBlack {
  opacity: 0.8;
}
body.dark-mode #imgHeaderWhite {
  opacity: 0;
}

@keyframes headerAnimacaoBlack {
  0% {
    background-image: url("img/imgHeaderBlack.png");
  }
  35% {
    background-image: url("img/imgHeaderBlack.png");
  }
  /* transição */
  40% {
    background-image: url("img/imgHeader2.png");
  }

  64% {
    background-image: url("img/imgHeader2.png");
  }
  /* transição */
  68% {
    background-image: url("img/imgHeader3.png");
  }

  97% {
    background-image: url("img/imgHeader3.png");
  }
  /* transição */
  100% {
    background-image: url("img/imgHeaderBlack.png");
  }
  
}


@keyframes headerAnimacaoWhite {
  0% {
    background-image: url("img/imgHeaderWhite.png");
  }
  35% {
    background-image: url("img/imgHeaderWhite.png");
  }
  /* transição */
  40% {
    background-image: url("img/imgHeader2.png");
  }

  64% {
    background-image: url("img/imgHeader2.png");
  }
  /* transição */
  68% {
    background-image: url("img/imgHeader3.png");
  }

  97% {
    background-image: url("img/imgHeader3.png");
  }
  /* transição */
  100% {
    background-image: url("img/imgHeaderWhite.png");
  }
}
/* @keyframes headerAnimacaoBlack{
  from {
   box-shadow:
    0 6px 18px rgba(1, 171, 43, 0.25),
    0 12px 36px rgba(1, 171, 43, 0.15);
  }
  to {
    box-shadow:
    0 6px 18px rgba(0, 167, 42, 0.25),
    0 12px 36px rgba(0, 179, 45, 0.288);
  }
}


@keyframes headerAnimacaoWhite{
  from {
   box-shadow:
    0 6px 18px rgba(7, 7, 7, 0.25),
    0 12px 36px rgba(1, 171, 43, 0.15);
  }
  to {
    box-shadow:
    0 6px 18px rgba(248, 248, 248, 0.25),
    0 12px 36px rgba(255, 255, 255, 0.288);
  }
} */



#containerDivHeader {
  width: 100%;
  height: 80px;
  position: sticky;
  top: 0px;
  backdrop-filter: blur(6px);
  box-shadow: rgba(15, 15, 15, 0.32) 0px 15px 17px 1px;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-left: 25px;
  padding-right: 25px;
}

#logo {
  width: 65px;
  height: 65px;
}

.botao-contato {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  background: rgba(0, 191, 165, 0.2);
  color: #ffffff;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 12px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 8px 20px rgba(0, 191, 165, 0.25);
  transition: all 0.3s ease;
  white-space: nowrap;
}

.botao-contato:hover {
  background: rgba(0, 191, 165, 0.35);
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0, 191, 165, 0.4);
}

.botao-contato svg {
  width: 20px;
  height: 20px;
  fill: #ffffff;
  flex-shrink: 0;
}



.cardModal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.8);
  justify-content: center;
  align-items: center;
  z-index: 10000;
}

.modal-content {
  background-color: white;
  width: 80%;
  max-width: 900px;
  /* min-height: 600px; */
  display: flex;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0,0,0,0.3);
  position: relative;
  flex-wrap: wrap;
}


.modal-content .modalImg {
  width: 50%;
  height: auto;
  object-fit: cover;
  background: #555;
   max-height: 90vh;
   min-height: 400px;
}

.modal-text {
  width: 50%;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  
}

.modal-close {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  color: #ff0000;
  transition: 0.4s;
}

.modal-close:hover {
  transform: scale(1.1);
}

.whatsapp-btn {
  /* position: absolute; */
  background-color: #25D366;
 color: black;
  border: none;
  padding: 12px 22px;
  border-radius: 50px;
  cursor: pointer;
  font-weight: bold;
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
  transition: background-color 0.3s ease, transform 0.2s ease;
  z-index: 10100;
  animation: pulse-border 2.4s infinite;
  transform: scale(1.08);
}

.whatsapp-btn:hover {
  background-color: #1DA851;
  transform: scale(1.1);
}

@keyframes pulse-border {
  0% {
    box-shadow: 0 0 0 0 rgba(25, 201, 9, 0.7);
  }
  70% {
    box-shadow: 0 0 0 15px rgba(72, 211, 37, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(37, 211, 66, 0);
  }
}




.cardModal {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.cardModal.active {
  display: flex;
  opacity: 1;
  pointer-events: auto;
}

.modal-content {
  transform: translateY(40px);
  opacity: 0;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.35s ease;
  
}

.cardModal.active .modal-content {
  transform: translateY(0);
  opacity: 1;
}

.cardModal.closing .modal-content {
  transform: translateY(40px);
  opacity: 0;
}



@media (max-width: 768px) {


  .modal-content {
    transform: translateY(30px);
  }
  .cardModal.active .modal-content {
    transform: translateY(0);
  }

  
  .cardModal {
    align-items: flex-start;
    overflow-y: auto;
    padding: 10px;
  }

  .modal-content {
    display: flex;
    flex-direction: column;
    width: 95%;
    max-width: 500px;
    background: #fff;
    overflow: visible; 
    margin: 30px auto; 
    position: relative;
    padding-bottom: 100px;
  }

  .modal-content .modalImg {
    width: 100%;
    max-height: 240px;
    object-fit: contain;
    background: #ffffff;
    border-radius: 14px 14px 0 0;
  }
  
  .dark-mode .modal-content .modalImg {
    width: 100%;
    max-height: 240px;
    object-fit: contain;
    background: #333;
    border-radius: 14px 14px 0 0;
  }


  .modal-text {
    width: 100%;
    padding: 18px;
    font-size: 0.95rem;
    line-height: 1.6;
  }

  .modal-close {
    position: absolute;
    top: 18px;
    right: 18px;
    font-size: 30px;
    color: #ff0000;
    text-shadow: 0 0 6px rgba(0,0,0,0.5);
    z-index: 11000;
    border-radius: 50%;
    padding: 4px 10px;
  }

  .whatsapp-btn {

    font-size: 15px;
    padding: 10px 22px;
    border-radius: 40px;
    align-self: center;
  }
  
}


/* @media (max-width: 480px) {
  #toggle-theme {
    top: 12px;
    right: 10px;
    font-size: 16px;
    padding: 8px;
    width: 50px;
    height: 50px;
  }
  
} */
 
/* @media (max-width: 480px) {
  .botao-contato {
    font-size: 14px;
    padding-top: 15px;
    gap: 8px;
  }

  .botao-contato svg {
    width: 24px;
    height: 24px;
  }
} */

.retornarContainer{
  align-self: center;
  max-width: 100%;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 75px;
  margin-bottom: 5px;
}

.retornar {
  padding: 13px 24px;
  border: none;
  border-radius: 11px;
  background: #0f8b00;
  color: white;
  font-size: 23px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(0,0,0,0.12);
  transition: 0.25s ease;
  position: relative;
  overflow: hidden;
  border-bottom: 2px solid #0f8b00;
}

.retornar::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 4px;
  width: 0%;
  background: #ffffff;
  transition: width 0.25s ease;
}

.retornar:hover {
  transform: scale(1.1);
}

.retornar:hover::after {
  width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

  .favorite-btn{
    width: 30px;
    height: 30px;
    vertical-align: middle;
    transition: 0.3s ease;
    filter: brightness(100%) saturate(100%) invert(100%) sepia(59%) saturate(9%) hue-rotate(205deg) brightness(103%) contrast(104%); 
   }



  .container-favorite-btn{
    width: 50px;
    height: 50px;
    border-radius: 11px;
    background-color: none;
    cursor: pointer;
     background-color: #1c1e21;
    /* position: absolute; */
    bottom: 33px;
    left: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: 0.3s ease;
  }

   .container-favorite-btn:hover{
     transform: scale(1.08);
   }

   .container-modal{
    position: absolute;
    width: 100%;
    height: 50px;
     bottom: 33px;
     display: flex;
     justify-content: space-between;
     padding: 0 20px;
     align-items: center;
   }

  

  .toast {
  position: fixed;
top: 25px;
      padding: 20px 20px;
  background: #1c1e21;
  color: #17c700;
  border-radius: 10px;
  font-size: 14px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(20px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 99999999;
  transform: translateX(-50%);
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

  .toast2 {
  position: fixed;
top: 25px;
      padding: 20px 20px;
  background: #1c1e21;
 color: white;
  border-radius: 10px;
  font-size: 14px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(20px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 99999999;
  transform: translateX(-50%);
}

.toast2.show2 {
  opacity: 1;
  transform: translateY(0);
}