
/* ------- GERAL ------- */

html, body {
  overflow-x: hidden;
}

main, section:first-of-type {
  margin-top: 60px;
 } 


body {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  color: #000;
  background: #fff;
  margin: 0;
  padding: 0;
  line-height: 1.6;
  font-size: 16px;
  cursor: none;
}

body, a, button, input, textarea, select {
  cursor: none !important;
}

section {
  padding: 6rem 15rem;
}

/* ------- CURSOR ------- */

.cursor {
  display: block;
  position: absolute;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background-color: #000; /* começa a preto */
  pointer-events: none;
  transform: translate(-50%, -50%);
  transition: transform 0.15s ease, background-color 0.2s ease;
  z-index: 99999;
}

/* ------- HEADER ------- */

header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 10%;
  background: #fff;
  z-index: 1000;
  padding: 2rem 15rem; /* mantém o espaçamento original */
  box-sizing: border-box;
}

.nav-menu {
  padding: 2rem 0rem;
}

.logo-header {
  width: 60px;
  height: auto;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-small {
  font-weight: bold;
  font-size: 1.4rem;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 2rem;
  margin: 0;
  padding: 0;
}

nav a {
  text-decoration: none;
  color: #000;
  font-size: 0.95rem;
}

nav a:hover {
  text-decoration: underline;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 4rem;
}

nav a.active {
  font-weight: 600;
  text-decoration: underline;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 25px;
  height: 20px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1100;
}

.hamburger span {
  height: 3px;
  width: 100%;
  background: #000;
  border-radius: 2px;
  transition: 0.3s ease;
}

.hamburger.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg) ;
}

/* ------- INTRO. ------- */

.intro {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 4rem;
  flex-wrap: wrap;
}

.logo-img {
  width: 500px;
  height: auto;
}

.intro-right {
  flex: 1;
  max-width: 600px;
  font-size: 1.9rem;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

.contact-info {
  display: flex;
  gap: 10rem;
  margin-top: 25rem;
  margin-bottom: 4rem;
  font-size: 1.2rem;
}

.contact-info a {
  color: #000;
  text-decoration: none;
}
.contact-info a:hover {
  text-decoration: underline;
}

/* ------- SERVIÇOS ------- */

#servicos h2 {
  text-transform: uppercase;
  font-size: 1.8rem;
  margin-bottom: 5rem;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 4rem;
}

.service-item {
  border-top: 1px solid #000;
  padding-top: 1rem;
  font-size: 1rem;
}

.services-grid { 
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 3rem;
}

.service-item {
  position: relative;
  padding-top: 2.4rem;    
  text-align: center;       
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}


.service-item img {
  display: block;
  width: 80px;              
  height: auto;
}


.service-item p,.service-item h3 {
  margin: 0;
  text-align: center;
}

/* ------- OBRAS ------- */

#obras {
  scroll-margin-top: 120px;
}

#carrossel {
  scroll-margin-top: 180px; 
}

.obras {
  max-width: 1400px;
  margin: 0 auto;
  padding: 6rem 4rem;
}

.obras-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 3rem;
}

#obras h2 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-top: 0px;
  text-transform: uppercase;
}

.subtitulo {
  font-size: 1.4rem;
  color: #000;
  text-decoration: none;
  font-weight: 500;
}

.portfolio-link {
  font-size: 1.5rem;
  color: #000;
  text-decoration: none;
  font-weight: 500;
  transition: opacity 0.3s ease;
}

  .portfolio-link:hover {
  text-decoration: underline;
}

/* CARROSSEL */
.carrossel-wrapper {
  position: relative;
  width: 100%;
  margin: 0 auto;
  overflow: hidden;
  margin-top: 4rem;
}

.carrossel {
  overflow: hidden;
  width: 100%;
}

.carrossel-container {
  display: flex;
  gap: 10px;
  transition: transform 0.5s ease;
}

.carrossel-item {
  flex: 0 0 calc((100% / 3) - 6.66px); 
  display: flex;
  flex-direction: column; 
  align-items: center;    
}

.carrossel-item img {
  width: 100%;
  height: 800px;     
  object-fit: cover;
  display: block;
}

.carrossel-item .legenda {
  margin-top: 15px;
  font-size: 0.95rem;
  color: #000;
  text-align: center;
}

/* BOTÕES SOBRE IMAGENS */
.prev,
.next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);

  width: 34px;
  height: 34px;
  border-radius: 50%;

  background: rgba(255, 255, 255, 0.7);
  border: none;

  color: #7171717f;
  font-size: 2.4rem;
  font-weight: 400;

  display: flex;
  align-items: center;
  justify-content: center;

  line-height: 1;          /* 🔑 IMPORTANTE */
  padding: 0;              /* 🔑 REMOVE DESLOCAMENTO */

  cursor: pointer;
  z-index: 10;

  transition: background 0.25s ease, transform 0.2s ease;
}

.prev svg,
.next svg {
  width: 26px;
  height: 26px;
  stroke: #fff;
}

.prev:hover,
.next:hover {
  color: rgba(255,255,255,1);
}

.prev { left: 15px; }
.next { right: 15px; }



/* ------- CONTACTOS ------- */

.contact-section h2 {
  text-transform: uppercase;
  font-size: 1.8rem;
  margin-bottom: 3rem;
}

.contact-section {
  padding: 2rem 15rem;
}

.contact-container {
  display: flex;
  justify-content: space-between;
  gap: 4rem;
  padding-top: 2.4rem; 
  flex-wrap: wrap;
}

.contact-left, .contact-right {
  flex: 1;
  min-width: 300px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1px solid #ccc;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 1rem;
  border-radius: 4px;
}

.contact-form button {
  width: fit-content;
  background: #000;
  color: #fff;
  border: none;
  padding: 0.8rem 2rem;
  cursor: pointer;
  font-size: 1rem;
  border-radius: 4px;
  transition: background 0.3s ease;
}

.contact-form button:hover {
  background: #333;
}

.contact-right p {
  font-size: 1rem;
  line-height: 1.6;
}

.contact-right a {
  color: #000;
  text-decoration: none;
}

.contact-right a:hover {
  text-decoration: underline;
}

/* ------- FOOTER ------- */

.footer {
  background: #222;
  color: #fff;
  padding: 4rem 15rem;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

.footer-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 3rem;
  align-items: start;
  margin-bottom: 3rem;
}

.footer-col p {
  margin: 0.5rem 0;
  font-size: 0.95rem;
  line-height: 1.5;
}

.footer-col a {
  color: #fff;
  text-decoration: none;
}

.footer-col a:hover {
  opacity: 0.6;
}

.footer-logo {
  width: 180px;
  height: auto;
}
.footer-redes {
  width: 30px;
  height: auto;
  padding-right: 15px;
  padding-top: 15px;
  
}

.footer-right {
  text-align: right;
}

.social img:hover {
  opacity: 0.7;
}

.footer-bottom {
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding-top: 1.5rem;
  font-size: 0.85rem;
  color: #ccc;
}


/* -------- PÁGINA POLÍTICA E TERMOS -------- */

.politica-content {
  padding: 4rem 15rem;
  max-width: 100%;
  line-height: 1.7;
  font-size: 1rem;
}

.politica-content h1 {
  font-size: 2rem;
  text-transform: uppercase;
  margin-bottom: 2rem;
}

.politica-content h2 {
  font-size: 1.1rem;
  text-transform: uppercase;
  margin-top: 2rem;
  margin-bottom: 0.8rem;
}

.politica-content p {
  margin-bottom: 1.4rem;
}

.politica-content a {
  color: #000;
  text-decoration: underline;
}


/* ------- PÁGINA PORTFOLIO ------- */

.grid-obras {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10rem;
  margin-bottom: 6rem;
}

.obra-item {
  text-align: center;
}

.obra-img {
  width: 100%;
  aspect-ratio: 4/5;
  background: #9b9b9b;
}

.obra-nome {
  margin-top: 1rem;
  font-size: 0.9rem;
  text-transform: uppercase;
}

/* ------- PÁGINA OBRAS ------- */


.obra-info {
  display: flex;
  justify-content: space-between;
  padding: 4rem 15rem;
}

.titulo-coluna h1 {
  font-size: 1.5rem;
  font-weight: bold;
}

.detalhes-coluna p {
  margin-bottom: 10px;
  font-size: 1rem;
}
.obra-galeria {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  padding: 4rem 15rem;
}

.imagem {
  background: #777;
  width: 100%;
  aspect-ratio: 1 / 1;
}

.obra-navegacao {
  padding: 4rem 15rem;
  display: flex;
  justify-content: space-between;
  gap: 5rem;
}

.obra-navegacao a {
  font-size: 0.9rem;
  font-weight: 500;
  color: black;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 1px;
}











/* ------- MEDIA QUERIES ------- */
@media (max-width: 2200px) {

  .carrossel-item img {
  width: 100%;
  height: 700px;     
  object-fit: cover;
  display: block;
}

  }

@media (max-width: 1850px) {

  .carrossel-item img {
  width: 100%;
  height: 600px;     
  object-fit: cover;
  display: block;
}

  }

  @media (max-width: 1600px) {

  .carrossel-item img {
  width: 100%;
  height: 550px;     
  object-fit: cover;
  display: block;
}

  }


@media (max-width: 1440px) {

header{
    padding: 4rem 2rem;
     height: 12%;
  }
  
 main, section:first-of-type {
    margin-top: 155px;
}

section {
    padding: 4rem 2rem;
  }

.obra-info {
  padding: 4rem 2rem;
}

.obra-galeria{
  padding: 4rem 2rem;
}
.carrossel-item img {
  width: 100%;
  height: 600px;     
  object-fit: cover;
  display: block;
}

.obra-navegacao {
  padding: 4rem 2rem;
}
.contact-section {
  padding: 4rem 2rem;
}
.contact-container {
  padding: 4rem 2rem;
}

}


  @media (max-width: 1200px) {

  .carrossel-item img {
  width: 100%;
  height: 550px;     
  object-fit: cover;
  display: block;
}

  }



/* Tablets (≤1024px) */
@media (max-width: 1024px) {

header{
    padding: 4rem 2rem;
  }


  section {
    padding: 4rem 2rem;
  }

  .intro {
    align-items: flex-start;
  }

  .intro-right {
    max-width: 100%;
  }

  .contact-info {
    flex-direction: column;
    gap: 1rem;
  }

  .carousel {
    height: 350px;
  }

  .carrossel-item img {
    width: 100%;
    height: 400px;     
    object-fit: cover;
    display: block;
}

  .obras-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.politica-content {
    padding: 4rem 2rem;
  }

}





/* Telefone (≤768px) */
@media (max-width: 768px) {
  header {
    padding: 1rem 1.2rem;
    height: 6%;
  }

  body * {
    cursor: none !important;
  }

.cursor {
    display: none !important;
  }

   main, section:first-of-type {
    margin-top: 60px;
  }

  nav ul {
    flex-wrap: wrap;
    gap: 1rem;
  }

  .contact-info{
    display: none;
  }

  .intro {
    margin-bottom: 30%;
  }

  #obras h2 {
  font-size: 1.2rem;
  font-weight: 600;
  margin: 0;
  text-transform: uppercase;
}

#obras {
  scroll-margin-top: 50px;
}

.carrossel {
  touch-action: pan-y;
}

.subtitulo {
  font-size: 1.1rem;
}

.portfolio-link {
  font-size: 1.2rem;
  }

#servicos h2 {
  text-transform: uppercase;
  font-size: 1.2rem;
  margin-bottom: 5rem;
}

.contact-section h2 {
  text-transform: uppercase;
  font-size: 1.2rem;
  margin-bottom: 3rem;
}

.carousel {
    height: 300px;
}

.carrossel-container {
  display: flex;
  gap: 10px;
  will-change: transform;
}

.carrossel-item {
  flex: 0 0 calc((100% / 2) - 5px); 
  display: flex;
  flex-direction: column; 
  align-items: center;    
}

  .prev,
  .next {
    width: 24px;      
    height: 24px;
  }

  .prev svg,
  .next svg {
    width: 14px;      
    height: 14px;
  }

  section { 
    padding: 3rem 1.5rem;
  }

  .politica-content {
    padding: 1rem 1.2rem;
  }

.contact-container {
    flex-direction: column;
}

.grid-obras {
    grid-template-columns: 1fr;
    gap: 30px;
    margin-top: 40px;
}
  
.obra-galeria {
    grid-template-columns: 1fr;
}
  
.obra-info{
    flex-direction: column;
}

.footer {
    padding: 3rem 2rem;
}

.footer-right {
    text-align: left;
}

  .social {
    justify-content: flex-start;
  }

  .footer-container {
    gap: 2rem;
  }
  

  /* Hamburger */
  .hamburger {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 25px;
    height: 20px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
  }

  .hamburger span {
    display: block;
    height: 3px;
    width: 100%;
    background: #000;
    border-radius: 2px;
  }

  .nav-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }

  .nav-menu.open {
    max-height: 250px; /* abre o menu */
    background-color: rgb(255, 255, 255);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  }

  .nav-menu ul {
    flex-direction: column;
    align-items: center;
    padding: 2rem 0;
    gap: 1rem;
  }

 }

/* Telemóvel pequeno (≤480px) */
@media (max-width: 480px) {
  .logo-img {
    width: 250px;
  }

  .intro p {
    font-size: 1.2rem;
  }

  .intro {
    margin-bottom: 30%;
  }

  .services-grid {
   grid-template-columns: repeat(2, 1fr);
  }

  footer {
    font-size: 0.8rem;
    padding: 2rem;
  }

  .carousel {
    height: 250px;
  }

  .carrossel-item {
  flex: 0 0 calc((100% / 1) - 5px); 
  display: flex;
  flex-direction: column; 
  align-items: center;    

   }

  .contact-left, .contact-right {
    flex: 1;
    width: 100%;
    min-width: unset; /* remove restrição antiga */
  }

#obras .subtitulo {
  display: none;
}

 }