@font-face {
  font-family: 'Mango';
  src: url('/fonts/Mango.ttf') format('truetype');
}

*,
*::after,
*::before{
  margin:0;
  padding: 0;
  box-sizing: border-box;
}

body, html{
  height: 100%;
  width: 100%;
  overflow-x: hidden;
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(16px, 1.15vw + 6px, 20px);
  text-align: center;
}

.hero {
  background: url("/images/hero-mag.jpg") center/cover no-repeat;
  min-height: 100vh;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.overlay {
  background: linear-gradient(to bottom, rgba(0, 11, 3, 0.9) 0%, rgba(0, 11, 3, 0.85)50%,rgba(0, 11, 3, 0.70)90%,rgba(0, 11, 3, 0.1)100%);
  width: 100%;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.container {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 4vw;
  box-sizing: border-box;
  gap: 0; /* Elimina espaço extra */
}

.left {
  width: 60%; 
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #f4f4e9;
  padding: 0 2vw 0 0;
  text-align: left;
}

.left .logo{
  width: clamp(4rem, 8vw, 10rem);
  margin-bottom: 1rem;
}

.left h1{
  line-height: 0.7;
  font-size: clamp(3rem, 8vw, 7rem);
  font-weight: 300;
  font-family: 'Mango', serif;
  text-align: center;
}

.left h1 span{
  display: block;
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(1rem, 1.4vw, 1.4rem);
  letter-spacing: 1rem;
  text-transform: uppercase;
  margin-top: 0.2rem;
  font-weight: 400;
}

.divider {
  width: 28rem;
  height: 0.05rem;
  background: linear-gradient(to right, transparent, #daa220, transparent);
  margin: 2rem 0 2rem 0;
  position: relative;
}

.divider .star {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -48%);
  width: 1.4rem;
  height: 1.4rem;
  background: #daa220;
  clip-path: polygon(
    50% 0%, 60% 40%, 100% 50%, 60% 60%, 
    50% 100%, 40% 60%, 0% 50%, 40% 40%
  );
}

.left p {
  font-weight: 200;
  margin: 0.1rem 0;
  font-size: clamp(1rem, 3vw, 1.95rem);
  text-align: left;
  line-height: 0.9;
}

.left .sub {
  font-size: clamp(0.95rem, 1.6vw, 1.3rem);
  margin-bottom: 1rem;
  font-weight: 200;
}

.left strong{
  font-weight: 600;
}

.badges {
  justify-content: center;
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-top: 0.5rem;
}

.badges span {
  font-family: 'Mango', serif;
  border: 1px solid #daa220;
  padding: 0.15rem 1rem;
  border-radius: 30px;
  font-size: clamp(1.2rem, 3.2vw, 2rem);
  color: #f4f4e9;
  margin-bottom: 0.2rem;
}

/* Bloco direito */

.right {
  flex: 1 1 0;
  max-width: 100%;    /* Controla o tamanho do bloco da esquerda */
  min-width: 420px;
  max-height: 465px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  position: relative;
  color: #f4f4e9;
}

.form-wrapper {
  width: 70%;
  height: 87%;
  padding: 0.5rem;
  border: 1px solid #daa220;
  border-radius: 0 8rem;
  display: flex;
  justify-content: center;
  background: transparent;
  box-sizing: border-box;
}

.form-container {
  background-color: rgba(0, 33, 16, 0.85);
  padding: 2.6rem 1.5rem;
  border-radius: 0 8rem;
  width: 100%;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: left;
  box-sizing: border-box;
}

.form-content {
  margin-top: 1.5rem;
  margin-bottom: 1.75rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.form-content p {
  font-size: clamp(0.95rem, 1.6vw, 1.25rem);
  color: #f4f4e9;
  margin-bottom: 0.5rem;
  font-weight: 100;
}

.form-content strong {
  font-weight: 700;
  font-size: clamp(1rem, 1.2vw, 1.1em);
}

.form-content form {
  margin-top: 0.25rem;
  width: 100%;
}

.form-content form input {
  background-color: #f4f4e9;
  width: 100%;
  margin-bottom: 1.1rem;
  padding: 0.25rem 1.1rem;
  border: none;
  border-radius: 50rem;
  font-size: clamp(0.9rem, 1.2vw, 1rem);
}

.form-content form input::placeholder{
  color: #0000003b;
}

.form-content form button {
  width: 100%;
  padding: 0.7rem 0.6rem;
  background-color: #daa220;
  color: rgba(0, 33, 16, 0.85);
  border: none;
  border-radius: 3rem;
  font-family: 'Montserrat';
  font-size: clamp(0.9rem, 1.2vw, 1rem);
  text-transform: uppercase;
  cursor: pointer;
  margin: 0.5rem 0 1.5rem 0;
  transition: background 0.18s;
}

.form-content form button:hover {
  background-color: #bb8b1c;
}

/* Carrosel de imagens */

.page{
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: #002110;
  overflow: hidden;
  width: 100%;
  padding-top: 1rem;
}

.page h1{
  margin-top: 0.75rem;
  font-family: 'Mango', serif;
  color: #daa220;
  font-size: clamp(2.2rem, 7vw, 6rem);
  font-weight: 100;
  line-height: 0.8;
}

.mobile-break{
  display: none;
}

.page p{
  font-size: clamp(0.95rem, 1.4vw, 1.2rem);
  font-weight: 200;
  color: #f4f4e9 ;
  text-align: center;
  margin-top: 0.5rem;
}

.carousel-container{
  width: 100%;
}

.carousel-track{
  display: flex;
  flex-wrap: nowrap;
  transition: none;
  width: max-content;
  will-change: transform;
}

.carousel-item{
  flex: 0 0 auto;
  width: clamp(250px, 40vw, 600px);
}

.carousel-item img{
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.2s ease;
  cursor: pointer;
}

.carousel-item img:hover {
  transform: scale(1.02);
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 0.6rem;
  margin: 1rem 0 0 0;
}
.carousel-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  border: 2px solid #baa24e; /* ou a cor dourada do seu tema */
  transition: background 0.3s;
  margin-bottom: 1.5rem ;
}

.carousel-dot.active {
  background: #baa24e;
}


.cta-btn{
    margin-top: 2rem;
    color: #002110;
    background-color: #daa220;
    padding: 1rem;
    border-radius: 50rem;
    text-decoration: none;
    cursor:pointer;
    transition: background 0.2s;
    font-size: clamp(0.95rem, 1.3vw, 1.05rem);
}

.cta-btn:hover{
    background-color: #bb8b1c;
}

/* Modal de imagens */

.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: #000000d7;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10;
  display: none;
  flex-direction: row;
}

.modal img {
  max-width: clamp(250px, 90vw, 1200px);
  max-height: clamp(200px, 80vh, 800px);
  border-radius: 8px;
}

.modal-buttons {
  margin-top: 20px;
  display: flex;
  gap: 20px;
}

.modal button {
  background: transparent;
  color: #daa220;
  border: none;
  margin: 1rem;
  padding: 0;
  font-size: clamp(1rem, 1.3vw, 1.2rem);
  cursor: pointer;
  border-radius: 6px;
}

.modal .close-btn {
  position: absolute;
  top: 20px;
  right: 30px;
  padding: 0;
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  background-color: transparent;
  color: #daa220;
  border: none;
  cursor: pointer;
}


/* Grid */
.benefits-container {
  width: 100%;
  background-color: #f4f4e9;
  text-align: center;
  position: relative;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  padding-bottom: 4rem;
}

.header-deco {
  width: 100%;
  height: clamp(50px, 7vw, 85px);
  background-color: #002110;
  border-radius: 0 0 6vw 6vw;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  box-sizing: border-box;
}

.semi-circle {
  width: 14vw;
  height: 7vw;
  width: clamp(100px, 14vw, 250px);
  height: clamp(50px, 7vw, 150px);
  background: #002110;
  border-radius: 0 0 100vw 100vw;
  z-index: 2;
  box-shadow: 0 8px 16px #0001;
  display: flex;
  flex-direction: column;
  align-items:center;
  justify-content: center;
  position: relative;
}

.semi-circle img {
  width: clamp(40px, 8vw, 120px);
  display: block;
  margin-bottom: 1rem;
}

.title {
  font-family: 'Mango', serif;
  font-size: clamp(2.5rem, 6vw, 10rem);
  font-weight: 100;
  color: #002110;
  line-height: 1.1;
  margin: 2rem;
  z-index: 2;
  position: relative;
  white-space: nowrap;
}

.title span {
  font-size: clamp(1.75rem, 4vw, 4.25rem);
}

.benefits-grid {
  width: 100%;
  max-width: 1100px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.1rem;
}

.benefit-item {
  background: transparent;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0;
}

.benefit-item img{
  width: clamp(50px, 12vw, 100px);
  height: auto;
}

.benefit-item h3 {
  font-size: clamp(0.95rem, 2vw, 1.2rem);
  font-family: 'Montserrat', sans-serif;
  color: #2e2e23;
  font-weight: 500;
  margin-bottom: 4px;
  margin-top: 0;
  text-align: center;
  line-height: 1.2;
}

.benefit-item p {
  font-size: clamp(0.75rem, 1.2vw, 0.8rem);
  font-family: 'Montserrat', sans-serif;
  color: #666;
  font-weight: 400;
  text-align: center;
  margin: 0;
}


/* Página do Croqui */

.container-background{
  background-color: #f4f4e9;
  width: 100%;
  display: flex;
  align-items: center;
}

.project-container{
  width: 100%;
  background-color: #002110;
  display: flex;
  justify-content: center;
  flex-direction: row;
  align-items: center;
  gap: 4rem;
  border-radius: 100px 100px 0 0;
  padding: 0 2rem;
  box-sizing: border-box;
}

.croqui{
  padding-top: 5rem;
  padding-bottom: 5rem;
  width: clamp(250px, 60vw, 900px);
  position: relative;
  display: grid;
  place-items: center;
}

.croqui > *{
  grid-area: 1 / 1;
}
.contorno{
  width: clamp(300px, 90%, 950px);
  height: clamp(300px, 90%, 950px);
  z-index: 1;
}
.mapa{
  width: clamp(250px, 80%, 1500px);
  height: clamp(250px, 80%, 1500px);
  z-index: 0;
  border-radius: 2rem;
  background-color: #f4f4e9;
}

.cta{
  display: flex;
  flex-direction: column;
  align-items: center;
}

.cta p{
  font-family: 'Mango';
  font-size: clamp(1.8rem, 6vw, 4rem);
  color: #f4f4e9;
  text-align: center;
  line-height: 0.8;
  margin-bottom: 10px;
}
.cta p span{
  font-size: clamp(2.2rem, 6.5vw, 4.5rem);
}

.cta-btn2{
  width: auto;
  font-size: clamp(1.5rem, 4vw, 2rem);
  margin-top: 1rem;
  color: #002110;
  background-color: #daa220;
  padding: 0.7rem 2rem;
  border-radius: 50rem;
  text-decoration: none;
  text-align: center;
  cursor:pointer;
  transition: background 0.2s;
}

.cta-btn2:hover{
  background-color: #bb8b1c;
}

.map-background{
  width: 100%;
  background-color: #f4f4e9;
}
.map-section{
  background: linear-gradient(to bottom, #002110 20%, #00331b 100%);
}
.map-title{
  font-family: 'Mango', serif;
  color: #f4f4e9;
  font-weight: 100;
  font-size: clamp(2.8rem, 7vw, 6rem);
  text-align: center;
  padding: 1rem 0 1rem 0;
}

.badges2 {
  justify-content: center;
  display: flex;
  gap: 3rem;
  flex-wrap: wrap;
  margin-top: 0;
  
}

.badges2 .main {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 14rem;
  font-family: 'Mango', serif;
  border: 1px solid #daa220;
  padding: 0.5rem;
  border-radius: 100px;
  font-size: clamp(1.8rem, 3vw, 2.3rem);
  color: #f4f4e9;
  margin-bottom: 0.2rem;
  line-height: 1rem;
}

.badges2 .sub{
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(0.9rem, 1.2vw, 1.2rem);
}

.contorno_esq, .contorno_dir { 
  width: clamp(50px, 10vw, 160px); 
  height: auto; }

.map-container{
  display: flex;
  justify-content: center;
  align-items: center;
  gap: clamp(10px, 1.8vw, 24px);
  max-width: min(96vw, 1400px);
  margin: 0 auto;
  padding: clamp(15px, 1.6vw, 50px);
  padding-bottom: clamp(16px, 5vh, 2rem);
  box-sizing: border-box;
}

.map-container iframe {
  flex: 1 1 0;
  min-width: 300px; 
  width: clamp(300px, 70vw, 1200px);                    
  height: clamp(100px, 50vw, 620px);    
  border: 0;  
  border-radius: 1rem;          
  display: block;          
}

.map{
  display: flex;
  flex-direction: column;
  align-items: center;
  height: clamp(150px, 55vh, 620px);
  width: clamp(450px, 90vw, 1200px);
  margin-top: 3rem;
}

.map .cta-btn2{
  width: auto;
  font-size: clamp(1.5rem, 4vw, 2rem);
  padding: 0.7rem 2rem;
  margin-top: clamp(10px, 5vh, 4rem);
  margin-bottom: clamp(10px, 5vh, 4rem);
}


/* ----------- RESPONSIVIDADE ----------- */
@media (max-width: 1200px) {
  .container {
    padding: 0 2vw;
  }
  .benefits-grid {
    grid-template-columns: repeat(3, 1fr);
    max-width: 95vw;
  }
  .form-wrapper {
    width: 85%;
  }
  .page{
    height: 80vh;
  }
  .carousel-dots {
    margin-top: 2rem;
  }
  .container-background{
    height: 80vh;
  }
  .project-container{
    height: 77vh;
  }
  .contorno_dir, .contorno_esq {
    width: 8rem;
  }
  .cta p{
    font-size: 2.75rem;
  }
  .cta p span{
    font-size: 3rem;
    font-weight: 400;
  }
  .cta-btn2 {
    padding: 0.5rem 1.5rem;
  }
}

@media (max-width: 900px) {
  .container {
    flex-direction: column;
    padding: 0 1vw;
    gap: 2rem;
  }

  .left, .right {
    width: 100%;
    min-width: unset;
    max-width: 100%;
    padding: 0;
    align-items: center;
    text-align: center;
  }

  .left h1 {
    font-size: 4rem;
    line-height: 1;
    margin-top: 0.5rem;
  }

  .left h1 span {
    font-size: 1.2rem;
  }

  .left .logo {
    width: 6rem;
  }

  .left p, .left .sub {
    font-size: 1rem;
    text-align: center;
  }

  .divider {
    width: 60vw;
    margin: 1.5rem 0;
  }

  .badges {
    justify-content: center;
    gap: 0.5rem;
  }

  .badges span {
    font-size: 1rem;
    padding: 0.1rem 0.5rem;
  }

  .form-wrapper, .form-container {
    border-radius: 0 3rem;
  }

  .form-content {
    margin: 1rem 0;
  }

  .form-content p {
    font-size: 0.95rem;
  }

  .form-content form button {
    padding: 0.6rem 0;
    font-size: 0.95rem;
  }
  .page {
    height: auto;
    padding: 2rem 0 0 0;
  }
  .carousel-track {
    height: clamp(112px, 33.75vw, 281px); ;
  }
  .carousel-item {
    width: clamp(200px, 60vw, 500px);
  }
  .carousel-dot {
    width: 8px;
    height: 8px;
    margin-bottom: 1rem;
  }

  .page h1 {
    font-size: 3rem;
  }

  .modal img {
    max-width: 90vw;
    max-height: 60vh;
  }

  .header-deco {
    height: 50px;
    border-radius: 0 0 4vw 4vw;
  }

  .semi-circle {
    width: 20vw;
    height: 10vw;
  }

  .title {
    white-space: normal;
    text-align: center;
  }

  .benefits-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
    padding: 0 1rem;
  }

  .benefit-item img {
    height: auto;
    width: 70%;
    max-width: 100px;
  }

  .benefit-item h3 {
    font-size: 0.85rem;
  }

  .benefit-item p {
    font-size: 0.75rem;
  }

  .container-background {
    height: auto;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
  }

  .project-container {
    height: auto;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    border-radius: 50px 50px 0 0;
  }
  .croqui {
    margin: 0;
    padding-bottom: 0;
  }

  .cta {
    margin: 1rem;
    align-items: center;
  }

  .cta p {
    font-size: 2rem;
    margin-bottom: 5px;
    text-align: center;
  }

  .cta p span {
    font-size: 2.3rem;
  }
  .badges2 {
    gap: 1rem;
  }
  .map{
    height: auto;
  }

  .cta-btn2 {
    padding: 0.5rem 1.2rem;
    width: auto;
  }
}

@media (max-width: 720px) {

  .map-container {
    align-items: flex-start;
  }
  .contorno_dir, .contorno_esq {
    transform: translateY(5vw);
  }
  .contorno_dir{
    width: clamp(4rem, 15vw, 200px);
    margin-left: -1.5rem;
    margin-top: -2.2rem;
  }
  
  .contorno_esq {
    width: clamp(4rem, 15vw, 200px);
    margin-right: -1.2rem;
    margin-top: -2.2rem;
  }
}

@media (min-width: 650px) and (max-width: 720px) {
  .contorno_dir{
    margin-top: -4rem;
  }
  
  .contorno_esq {
    margin-top: -4rem;
}
}
@media (max-width: 470px) {
  .mobile-break {
    display: block;
  }
  .contorno_dir{
    margin-top: 0;
  }
  
  .contorno_esq {
    margin-top: 0;
  }
}

/* reserva espaço pra evitar layout shift */
#carousel-container {
  overflow: hidden;
  contain: content;
}

/* ajuste a altura que o carrossel ocupa no seu layout */
#carousel-container.is-loading {
  visibility: hidden;                 /* não pinta enquanto decodifica */
  contain-intrinsic-size: 320px 520px;/* reserva ~altura x largura médias */
}

/* quando pronto, pinta normalmente */
#carousel-container.is-ready {
  visibility: visible;
}

/* otimizações já usadas */
#carousel-track {
  will-change: transform;
  transform: translateZ(0);
}

#carousel-container { overflow:hidden; contain:content; opacity:0; transition:opacity .35s ease; }
#carousel-container.is-ready { opacity:1; }
#carousel-container.is-loading { contain-intrinsic-size: 292px 520px; } /* ajuste à sua altura */
