@import url("https://fonts.googleapis.com/css2?family=Outfit:wght@100..900&display=swap");

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Outfit", sans-serif;
  background: #f5f7fa;
  color: #333;
  font-weight: 300;
}

.top-accent {
  height: 5px;
  background-color: #2e7d32;
  z-index: 1050;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
}

.bg-purple {
  background-color: #7c4dff !important;
}

.logo {
  height: 32px;
  margin-right: 0.5rem;
  margin-bottom: 0.25rem;
}

.navbar {
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
  z-index: 1040;
  padding-top: 0.75rem;
  padding-bottom: 0.5rem;
}

.hero {
  color: white;
  text-align: center;
}

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

.carousel-item .overlay-dark {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1;
}

.overlay-dark {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1;
}

.carousel-item .triangle-overlay {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2;
}

.carousel-item .container {
  position: relative;
  z-index: 5;
}

.carousel-item {
  position: relative;
  overflow: hidden;
}

.triangle-overlay {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 1;
  pointer-events: none;
}

.triangle {
  position: absolute;
  width: 80%;
  height: 120%;
  transform-origin: center;
  animation-duration: 24s;
  animation-timing-function: ease-in-out;
  animation-iteration-count: infinite;
  animation-direction: alternate;
  filter: blur(5px);
  mix-blend-mode: overlay;
}

.slide-1 .triangle.purple {
  top: -20%;
  right: -10%;
  transform: rotate(25deg);
  animation-name: floatPurple1;
}

.slide-1 .triangle.cyan {
  bottom: -10%;
  left: -5%;
  transform: rotate(-25deg);
  animation-name: floatCyan1;
}

.slide-2 .triangle.purple {
  top: -15%;
  left: 10%;
  transform: rotate(20deg);
  animation-name: floatPurple2;
}

.slide-2 .triangle.cyan {
  bottom: -15%;
  right: 0%;
  transform: rotate(-20deg);
  animation-name: floatCyan2;
}

.slide-3 .triangle.purple {
  top: 5%;
  left: -10%;
  transform: rotate(15deg);
  animation-name: floatPurple3;
}

.slide-3 .triangle.cyan {
  bottom: 0%;
  left: 20%;
  transform: rotate(-15deg);
  animation-name: floatCyan3;
}

@keyframes floatPurple1 {
  0% {
    transform: translate(0, 0) rotate(25deg) scale(1);
  }
  50% {
    transform: translate(-10px, 15px) rotate(31deg) scale(1.1);
  }
  100% {
    transform: translate(5px, -10px) rotate(35deg) scale(1);
  }
}

@keyframes floatCyan1 {
  0% {
    transform: translate(0, 0) rotate(-25deg) scale(1);
  }
  50% {
    transform: translate(10px, -10px) rotate(-32deg) scale(1.1);
  }
  100% {
    transform: translate(-5px, 8px) rotate(-38deg) scale(1);
  }
}

@keyframes floatPurple2 {
  0% {
    transform: translate(0, 0) rotate(20deg) scale(1);
  }
  50% {
    transform: translate(5px, -15px) rotate(26deg) scale(1.05);
  }
  100% {
    transform: translate(-5px, 5px) rotate(32deg) scale(1);
  }
}

@keyframes floatCyan2 {
  0% {
    transform: translate(0, 0) rotate(-20deg) scale(1);
  }
  50% {
    transform: translate(-10px, 15px) rotate(-28deg) scale(1.05);
  }
  100% {
    transform: translate(5px, -5px) rotate(-34deg) scale(1);
  }
}

@keyframes floatPurple3 {
  0% {
    transform: translate(0, 0) rotate(15deg) scale(1);
  }
  50% {
    transform: translate(-8px, 10px) rotate(21deg) scale(1.1);
  }
  100% {
    transform: translate(6px, -6px) rotate(27deg) scale(1);
  }
}

@keyframes floatCyan3 {
  0% {
    transform: translate(0, 0) rotate(-15deg) scale(1);
  }
  50% {
    transform: translate(10px, -10px) rotate(-23deg) scale(1.1);
  }
  100% {
    transform: translate(-6px, 8px) rotate(-29deg) scale(1);
  }
}

.text-green {
  color: #2e7d32;
}

.text-purple {
  color: #7744d9;
}

.btn-purple {
  background-color: #7744d9;
  color: #fff;
  border: none;
}
.btn-purple:hover {
  background-color: #5b33aa;
}

.feature-translate {
  position: relative;
  margin-top: -40px;
  z-index: 1;
}

.feature-content {
  background: #7744d9;
  padding: 35px 25px;
  /*   margin-bottom: 30px; */
  transition: transform 0.3s ease;
}

@media screen and (min-width: 1200px) {
  .feature-content:hover {
    transform: scale(1.1);
  }
}

.feature-content-txt h2 {
  color: #fff;
  font-size: 20px;
  font-weight: 500;
  margin: 0 0 5px;
}
.feature-content-txt p {
  color: rgba(255, 255, 255, 0.8);
  margin: 0;
}

.feature-content .feature-icon i {
  color: #fff;
  font-size: 30px;
  width: 55px;
  height: 55px;
  display: inline-block;
  background: #2ab331;
  text-align: center;
  line-height: 55px;
  border-radius: 3px;
}

.feature-icon i {
  color: #824aed;
  font-size: 55px;
  transition: 0.5s;
}

.feature-content .feature-icon {
  float: left;
  margin-right: 20px;
}

.feature-content.style-2 {
  background: #2ab331;
}

.feature-content.style-2 .feature-icon i {
  background-color: #7744d9;
}

.row {
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
  margin-right: -15px;
  margin-left: -15px;
  padding-inline: 0;
}

.hover-service {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-service:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.card .icon i {
  transition: transform 0.3s ease;
}

.card-img-top {
  height: 220px;
  object-fit: cover;
}

.card:hover {
  transform: translateY(-5px) !important;
  transition: 0.3s ease !important;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1) !important;
}

.hover-service:hover .icon i {
  transform: scale(1.5) rotate(5deg);
}

.azienda {
  background: linear-gradient(135deg, #f3f4f6 0%, #e8f5e9 30%, #f3f4f6 100%);
  background-attachment: fixed;
  border-bottom: 1px solid #ddd;
}

footer {
  background-color: #7744d9;
  color: white;
  text-align: center;
  padding: 2rem;
}

.navbar {
  background-color: #ffffff;
}

.navbar .nav-link {
  color: #232323 !important;
  font-weight: 300;
  transition: 0.5s;
  position: relative;
  display: inline-block;
  text-decoration: none;
}

.navbar .nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0%;
  height: 2px;
  background-color: #7744d9;
  transition: width 0.3s ease;
}

.navbar .nav-link:hover {
  color: #7744d9 !important;
}

.navbar .nav-link:hover::after {
  width: 100%;
}

.navbar-toggler {
  color: white !important;
  border-color: white !important;
}

#backToTop {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 1000;
  display: none;
  background-color: #7c4dff;
  color: white;
  width: 45px;
  height: 45px;
  font-size: 1.2rem;
  align-items: center;
  justify-content: center;
  text-align: center;
  transition: opacity 0.3s ease;
}

#backToTop:hover {
  background-color: #5e35b1;
}

@media (max-width: 768px) {
  .hero h1 {
    font-size: 2rem;
  }
  .card-text {
    font-size: 0.95rem;
  }
}

.tech-carousel-wrapper:hover .tech-carousel-content {
  animation-play-state: paused;
}

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

.btn-outline-purple {
  color: #7c4dff;
  background-color: transparent;
  border: 1px solid #7c4dff;
  padding: 0.25rem 0.5rem;
  font-size: 0.875rem;
  font-weight: 400;
  border-radius: 0.25rem;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  cursor: pointer;
  transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out;
}

.btn-outline-purple:hover {
  color: #fff;
  background-color: #7c4dff;
  border-color: #7c4dff;
  text-decoration: none;
}

.btn-outline-purple:active {
  color: #fff;
  background-color: #5e29b7;
  border-color: #5e29b7;
}

.btn-outline-purple:focus {
  box-shadow: 0 0 0 0.2rem rgba(124, 77, 255, 0.5);
  border-color: #5e29b7;
}

.service-card-left {
  opacity: 0;
  transform: translateX(-100px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.service-card-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.service-card-down {
  opacity: 0;
  transform: translateY(100px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.service-card-down.visible {
  opacity: 1;
  transform: translateY(0);
}

.service-card-right {
  opacity: 0;
  transform: translateX(100px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.service-card-right.visible {
  opacity: 1;
  transform: translateX(0);
}

.service-card-up {
  opacity: 0;
  transform: translateY(-100px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.service-card-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.blog-card {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.blog-card .card-body {
  padding: 1.5rem;
}

.blog-card .badge {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.blog-card .card-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #2e2e2e;
  margin-bottom: 0.5rem;
}

.blog-card .card-text {
  font-size: 0.95rem;
  color: #555;
  margin-bottom: 1rem;
}

.blog-card .btn {
  font-size: 0.85rem;
  padding: 0.4rem 0.75rem;
}
