@charset "UTF-8";
/* CSS Document */

/* section parts fade into view */

.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s ease-out;
}

.fade-in-visible {
  opacity: 1;
  transform: translateY(0);
}

/* section titles fade into view right to left */

.fade-in-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 1s ease-out, transform 1s ease-out;
  transition-delay: 0.2s; /* OPTIONAL: starts fade a bit after entering view */
}

.fade-in-left-visible {
  opacity: 1;
  transform: translateX(0);
}


/* --- Desktop screens --- */
.ads-wrapper{
	  padding: 60px 0; /* Equal space above first and below last */
}

.ads-container {
      display: flex;
      flex-direction: column;
      background-color: rgba(240,240,240,0.80);
      margin: 30px auto;
      padding: 10px;
      box-sizing: border-box;
      border-radius: 10px;
      max-width: 1000px;
      width: 100%;
	  overflow: hidden;

    }


    h2 {
      text-transform: lowercase;
      font-size: 2.4rem;
      font-weight: 700;
      margin-bottom: 10px;
      text-align: left;
    }
	  .text01 {
	  margin: 0;
	  margin-bottom: .3em;
      font-size: 4em;
	  font-weight: 700;	  
	  }
	  
      .text02 {
	  margin: 0;	
      font-size: 1em;
      font-weight: 700;
    }

      .text03 {
      margin: .25em 0;
	  margin-top: 1.0em, 0;
      font-size: 1em;
      font-weight: 400;
    }
	  .text04 {
	  margin-top: .4em;
	  margin-bottom: -.1em;
	  font-size: 1.8em;
 	  font-weight: 700 !important;}



	  
    .skills {
      font-size: 0.9rem;
      color: #444;
      text-align: left;
	  margin-left: 60px;
	  margin-top: 30px;
      margin-bottom: 40px;
}

    .grid {
      display: flex;
      justify-content: center;
      gap: 30px;
      flex-wrap: wrap;
    }

   .scroll-horizontal {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.scroll-track {
  display: flex;
  gap: 30px;
  animation: scroll-left 30s linear infinite;
}

.scroll-track:hover {
  animation-play-state: paused;
}

@keyframes scroll-left {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

    .tile-container {
      display: inline-flex;
      flex-direction: column;
      align-items: center;
    }

    .tile-wrapper {
      width: 230px;
      background: #fff;
      border-radius: 10px;
      overflow: hidden;
      box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
      transition: box-shadow 0.3s;
      padding: 10px;
      border: 3px solid rgba(255,255,255,0.5);
    }

    .tile-wrapper:hover {
      box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
    }

    .tile {
      width: 100%;
      display: block;
      transition: transform 0.3s;
      border-radius: 5px;
    }

    .tile-wrapper:hover .tile {
      transform: scale(1.04);
    }

    .tile-label {
      text-align: center;
      font-weight: 700;
      font-size: 2rem;
      margin-top: 12px;
	  margin-bottom: 40px;
      text-transform: lowercase;
    }

    .modal {
      display: none;
      position: fixed;
      top: 0;
      left: 0;
      width: 100vw;
      height: 100vh;
      background: rgba(0, 0, 0, 0.85);
      justify-content: center;
      align-items: center;
      z-index: 1000;
    }

    .modal img {
      max-width: 90%;
      max-height: 90%;
      border-radius: 16px;
      box-shadow: 0 0 30px rgba(255, 255, 255, 0.15);
    }

    .modal.active {
      display: flex;
    }

    .close-btn {
      position: absolute;
      top: 30px;
      right: 40px;
      font-size: 2.5rem;
      color: white;
      cursor: pointer;
    }

 .section-modal {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background: rgba(0, 0, 0, 0.85);
      display: none;
      justify-content: center;
      align-items: center;
      z-index: 10;
      border-radius: 10px;
    }

    .section-modal img {
      max-width: 90%;
      max-height: 90%;
      border-radius: 16px;
      box-shadow: 0 0 30px rgba(255, 255, 255, 0.15);
    }

    .section-modal.active {
      display: flex;
    }

    .section-modal .close-btn {
      position: absolute;
      top: 20px;
      right: 30px;
      font-size: 2rem;
      color: white;
      cursor: pointer;
    }

    .scroll-horizontal {
      overflow: hidden;
      white-space: nowrap;
    }

    .scroll-track {
      display: inline-flex;
      animation: scroll-left 30s linear infinite;
    }

    .scroll-track:hover {
      animation-play-state: paused;
    }

    @keyframes scroll-left {
      0% { transform: translateX(0); }
      100% { transform: translateX(-50%); }
    }

.card {
  display: flex;
  max-width: 340px;
  flex-direction: column;
  align-items: center;
  padding-bottom: 1rem;
  border-radius: 10px;
  background-color: white;
  box-shadow: 0 29px 38px -15px rgb(0 0 0 / 43%);
	overflow: hidden;
}

.card-five {
  display: flex;
  max-width: 340px;
  flex-direction: column;
  align-items: center;

  padding-bottom: 1rem;
  border-radius: 0.5em;

  background-color: white;
  box-shadow: 0 29px 38px -15px rgb(0 0 0 / 43%);
  overflow: hidden;
}

.card-img:hover {
  transform: scale(1.04);

}

.card-img {
  width: 300px;
  height: 250px;
  background-position: center;
  background-size: cover;
  margin-top: 20px;
  margin-bottom: 20px;
  margin-left: 20px;
  margin-right: 20px;
  border-radius: 5px;
  transition: transform 0.3s ease-in-out; 

}

/* this is the full screen code for the case studies */
.case-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
/*  background: rgba(255,255,255,0.75);*/
  color: white;
  display: none;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  overflow-y: auto;
  z-index: 9999;
  padding: 60px 40px;
  overflow-y: auto;
}

.case-modal.active {
  display: flex;
}

.case-modal-content {
  max-width: 1000px;
  width: 100%;
  margin-top: 60px;
}

.case-close-btn {
  position: absolute;
  top: 30px;
  right: 40px;
  font-size: 2.5rem;
  color: rgba(255,255,255,1.0);
  cursor: pointer;
  z-index: 10000;
}

/* and this is for the Case Studies */

.case-study-layout {
  background-color: rgba(255, 255, 255, 0.90);
  padding: 40px;
  margin-top: 20px;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
  border-radius: 10px;

}

.case-study-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px 40px;
  margin-top: 20px;
}

.case-study-card {
  background-color: white;
  border-radius: 10px;
  box-shadow: 5px 5px 10px rgba(0,0,0,0.08);
  overflow: hidden;
  text-align: center;
  transition: transform 0.3s ease-in-out;
  padding: 0;
}

.case-study-card img {
  display: block;
  width: 100%;         /* This ensures it scales to the card */
  border-radius: 5px;
  margin: 0;
  box-sizing: border-box;
}


.case-study-label {
  font-weight: 700;
  font-size: 2rem;
  text-transform: lowercase;
  margin: 20px 0;
  color: #111;
}

.gray-paragraph {
  max-width: 1000px;
  width: 100%;
  margin: 0 auto 20px auto;
  padding: 0 60px;
  color: #636363;
  box-sizing: border-box;
}

.img-frame {
  padding: 10px;
}

.img-frame img {
  width: 100%;
  border-radius: 5px;
  display: block;
}

.summary-intro {
  display: block;
  font-weight: bold;
  margin-bottom: 1em; /* Adjust spacing as needed */
}

.case-button-wrapper {
  text-align: left;
  padding: 0 60px;
  margin: 30px 0 30px 0;
}

.case-study-button {
  display: inline-block;
  padding: 12px 24px;
  background-color: #636363;
  color: white;
  text-decoration: none;
  font-weight: 600;
  border-radius: 6px;
  transition: all 0.3s ease-in-out;
}

.case-study-button:hover {
  background-color: #4f4f4f;
  transform: scale(1.03);
}

/* footer */

.card-foot {
  display: flex;
  max-width: 100%;
  flex-direction: column;
  align-items: center;
  margin:30px;
  padding: 5px;
  border-radius: 10px;
  background-color: rgba(240,240,240,0.80);
  box-shadow: 0 29px 38px -15px rgb(0 0 0 / 43%);
	overflow: hidden;
}

.card-foot-box {
  max-width: 500px;
  margin: 10px;
  padding: 40px;
  border-radius: 0.5em;
  background-color: rgba(255, 255, 255, 1);
  transition: transform 0.3s ease-in-out;
  cursor: pointer;
}

.card-foot-box:hover {
  transform: scale(1.03);
}


/*  footer code.  */


.button {
	color: rgb(255 255 255);
	background-color: rgb(63 63 63);
	margin-top: 15px;
	margin-bottom: 10px;

}


/* --- Small screens --- */
/* Everything here ONLY applies on screens 767px or narrower */
/* identita */
@media (max-width: 767px) {
  
  .image-grid {
    grid-template-columns: repeat(2, 1fr); /* 2 columns on phones */
    gap: 20px;
  }

  .image-container {
    padding: 10px;
  }

  .case-close-btn {
    top: 10px;
    right: 15px;
    font-size: 2rem; /* smaller size only for mobile */
  }

  #fullscreen-image {
    max-width: 90vw;
    max-height: 80vh;
  }

  .thumbnail-container img {
    width: 100%;
  }

/* pubblicita */

  .grid {
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding: 0 10px;
  }
	
  .ads-container {
    position: relative;
    max-width: 100%;
    width: 100%;
    margin: 40px auto 20px auto; /* Top margin added */
    padding: 20px 16px;
    box-sizing: border-box;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  }

  .grid,
  .scroll-track {
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
  }

  .tile-wrapper {
    width: 100%;
    max-width: 320px;
    margin: 0 auto;
  }
	
  .skills {
    padding: 0;
    margin-bottom: 40px;
    font-size: 0.9rem;
    line-height: 1.5;
    text-align: left;
    color: #444;
  }

  .text01 {
    font-size: 2em;
    font-weight: 700;
    margin-bottom: 0.25em;
    line-height: 1.2;
    color: #111;
  }

  .text02 {
    font-size: 0.95em;
    font-weight: 700;
    margin-bottom: 0.5em;
    color: #111;
  }

  .text03 {
    font-size: 0.9em;
    line-height: 1.4;
  }
	
  .tile-label {
    font-size: 1.2rem;
    margin-top: 8px;
    margin-bottom: 24px;
  }


  .tile-label {
    font-size: 1.3rem;
    margin-top: 10px;
    margin-bottom: 30px;
  }

  .tile-container.clone {
    display: none !important;
  }

  .scroll-track {
    animation: none !important;
  }

  .scroll-horizontal {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 10px;
  }
	
  .case-close-btn,
  .section-modal .close-btn {
    top: 10px;
    right: 15px;
    font-size: 2rem;
  }	
	
  .text01,
  .text02,
  .text03 {
    text-align: left;
  }
	
  .case-studies-section .card-five {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 auto 24px auto !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-sizing: border-box;
  }

  .case-studies-section .card-img {
    width: 100% !important;
    height: auto !important;
    margin: 0 0 16px 0 !important;
  }

  .case-studies-section h4,
  .case-studies-section p {
    text-align: center;
    padding: 0 12px;
  }
	

}


/* Even smaller phones */
@media (max-width: 480px) {
  .image-grid {
    grid-template-columns: 1fr; /* stack in one column */
  }
}

@media (max-width: 480px) {
  .parallax-container,
  .parallax-container2,
  .parallax-container3,
  .parallax-container4,
  .parallax-container5 {
    background-attachment: scroll !important;
    background-position: center !important;
    background-size: cover !important;
  }
}








