@font-face {
  font-family: Inter;
  src: url(../assets/fonts/Inter.ttf);
}


body {
  margin: 0;
  padding-top: 80px;
  font-family: Inter;
  background-color: #ffffff;
  color: #222;
}

/*
RESIDENTIAL-LIVING
*/
body.r_1 {
  background-color: #73696D;
}

body.r_2 {
  background: url('../assets/residential/r_2/bk.jpg') fixed no-repeat;
  background-size: cover;
}

body.r_3 {
  background-color: #406869;
}

body.r_4 {
  background: url('../assets/residential/r_4/bk.jpg') fixed no-repeat;
  background-size: cover;
}

body.r_5 {
  background-color: #A88571;
}

body.r_6 {
  background-color: #C88268;
}

body.r_7 {
  background-color: #BBAC51;
}

body.r_8 {
  background-color: #675C48;
}

body.r_9 {
  background-color: #AB9C7B;
}

body.r_10 {
  background-color: #666B6E;
}

body.r_11 {
  background-color: #B76F20;
}

body.r_12 {
    background-color: #3D342D;
}

body.r_13 {
  background-color: #DA3535;
}

body.r_14 {
    background-color: #3A3A3A;
}

body.r_15 {
  position: relative;
  background: url('../assets/residential/r_15/bk.jpg') fixed no-repeat;
  background-size: cover;
}

body.r_15::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4); 
    z-index: -1;
}

body.r_16 {
  background-color: #735233;
}


/*
RESIDENTIAL-VISIONS
*/
body.a_1 {
  position: relative;
  background: url('../assets/residential/architecture/bk.jpg') fixed no-repeat;
  background-size: cover;
}

body.a_1::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4); 
    z-index: -1;
}

/*
COMMERCIAL-CLINICHE
*/

body.c_c_1 {
  background-color: #DFC39C;
}

body.c_c_2 {
  background-color: #BFC9A3;
}

body.c_c_3 {
  background: url('../assets/commercial/cliniche/c_3/bk.jpg') fixed no-repeat;
  background-size: cover;
}


/*
COMMERCIAL-UFFICI
*/
body.c_u_1 {
  background-color: #013186;
}

body.c_u_2 {
  background-color: #87644E;
}

body.c_u_3 {
  background-color: #637953;
}

body.c_u_4 {
  background-color: #ff7400;
}

body.c_u_5 {
  position: relative;
  background: url('../assets/commercial/uffici/u_5/bk.jpg') fixed no-repeat;
  background-size: cover;
}

body.c_u_5::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.25); 
  z-index: -1;
}


/*
COMMERCIAL-NEGOZI
*/
body.c_n_1 {
  background-color: #607C92;
}

body.c_n_2 {
  background-color: #19444D;
}

body.c_n_3 {
  background-color: #4B4744;
}

body.c_n_4 {
  background-color: #8F5225;
}

body.c_n_5 {
  background-color: #666144;
}

body.c_n_6 {
  background-color: #511D2A;
}

body.c_n_7 {
  background-color: #9D201E;
}

body.c_n_8 {
  background-color: #9D201E;
}

/*
COMMERCIAL-RISTORANTI
*/
body.c_r_1 {
  background-color: #688370;
}

body.c_r_2 {
  background-color: #7F7963;
}

body.c_r_3 {
  background: url('../assets/commercial/ristoranti/r_3/bk.jpg') fixed no-repeat;
  background-size: cover;
}

body.c_r_4 {
  background-color: #19444D;
}

/*
COMMERCIAL-GARDEN
*/
body.c_g_1 {
  background-color: #95BCE7;
}

body.c_g_2 {
  background-color: #8C8480;
}

body.c_g_3 {
  background-color: #4F2B15;
}

body.c_g_4 {
  background-color: #D47DA3;
}

body.c_g_5 {
  background-color: #3c7a6e;
}

body.c_g_6 {
  background-color: #614E27;
}

body.c_g_7 {
    background-color: #f16565;
}

body.c_g_8 {
  background-color: #8099B3;
}




.project-page {
  padding: 40px 20px;
  text-align: center;
  max-width: 1200px;
  margin: auto;
}

.project-content {
  /*
  max-width: 600px;
  */
  margin: 0 auto 40px;
}

.project-content h1 {
  font-size: 2em;
  margin-bottom: 10px;
}

.project-description-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  max-width: 100%;
  /* come .image-grid */
  margin: 40px auto;
  padding: 0;
  color: #fff;
}

.project-description-1 {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 20px;
  max-width: 100%;
  /* come .image-grid */
  margin: 40px auto;
  padding: 0;
  color: #fff;
}

.project-description-1 .column-text {
  font-size: 1rem;
  line-height: 1.6;
  text-align: justify;
  margin: 0;

}

.project-description-2 .column-text {
  font-size: 1rem;
  line-height: 1.6;
  text-align: justify;
  margin: 0;
}

.image-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.image-grid img {
  width: 100%;
  height: auto;
  border-radius: 0px;
  /*10px;*/
  object-fit: cover;
}

.image-slider {
  display: none;
  overflow-x: auto;
  white-space: nowrap;
  scroll-snap-type: x mandatory;
  padding: 20px 0;
}

.image-slider {
  display: none;
  position: relative;
  max-width: 320px;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 0px;
  /*10px;*/
}

.txt {
  color: #fff;
  text-align: justify;
  text-justify: inter-word;
}


.slides-container {
  overflow: hidden;
  width: 100%;
}

.slides-track {
  display: flex;
  transition: transform 0.4s ease-in-out;
}

.slides-track img {
  width: 100%;
  flex-shrink: 0;
  object-fit: cover;
  border-radius: 0px;
  /*10px;*/
}

/* Pulsanti */
.prev-btn,
.next-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(50, 50, 50, 0.5);
  border: none;
  color: white;
  font-size: 2em;
  padding: 0 10px;
  cursor: pointer;
  border-radius: 0px;
  /*3px;*/
  user-select: none;
}

.prev-btn {
  left: 5px;
}

.next-btn {
  right: 5px;
}



/* Back button */
.back-button {
  display: inline-block;
  margin-top: 40px;
  font-size: 1rem;
  padding: 10px 20px;
  background: #ddd;
  border-radius: 0px;
  /*5px;*/
  color: #333;
  text-decoration: none;
  transition: background 0.3s;
}

.back-button:hover {
  background: #bbb;
}

.back-button {
  display: none;
}

.dots-container {
  text-align: center;
  margin-top: 10px;
}

.dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  margin: 0 5px;
  background-color: #aaa;
  border-radius: 50%;
  cursor: pointer;
  transition: background-color 0.3s;
}

.dot.active {
  background-color: #fff;
}

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.modal-overlay img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 0px;
  /*8px;*/
}

.modal-overlay .close-modal {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 2em;
  color: white;
  cursor: pointer;
  user-select: none;
}

@media (max-width: 768px) {

  body {
    padding-top: 120px;
    /* aumenta il padding-top per mobile */
  }

  .txt {
    text-align: center;
  }

  .image-grid {
    display: none;
  }

  .image-slider {
    display: block;
  }

  .back-button {
    display: none;
  }

  .project-description-1 {
    grid-template-columns: 1fr;
  }

  .project-description-2 {
    grid-template-columns: 1fr;
  }
}