/* === Global Setup === */
body,
html {
  margin: 0;
  padding: 0;
  width: 100%;
  overflow-x: hidden;
}
body {
  background-color: #0d0d0d;
  color: #ffffff;
  font-family: var(--font-body);
  position: relative;
}

.persistent-logo {
  position: fixed;
  top: 20px;
  right: 20px;
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text-primary);
  text-decoration: none;
  letter-spacing: 1px;
  z-index: 999;
  background-color: transparent;
  padding: 10px;
  border-radius: 10px;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: none;
  border: none;
  text-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
  line-height: 1;
  display: flex;
  align-items: center;
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* Circle */
.circle-ripple-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -1;
  overflow: hidden;
  justify-content: flex-end;
  align-items: flex-end;
}

.circle {
  position: absolute;
  bottom: 0;
  right: 0;
  transform: translate(50%, 50%);
  border-radius: 50%;
  background: #9d44ff;
  animation: ripple 15s infinite ease-in-out;
  box-shadow: 0 0 1px 0 #9d44ff;
  top: 90%;
  left: 0%;
  transform: translate(-50%, -50%);
}

.small {
  width: 200px;
  height: 200px;
}
.medium {
  width: 400px;
  height: 400px;
}
.large {
  width: 600px;
  height: 600px;
}
.xlarge {
  width: 800px;
  height: 800px;
}
.xxlarge {
  width: 1000px;
  height: 1000px;
}

.shade1 {
  opacity: 0.15;
}
.shade2 {
  opacity: 0.08;
}
.shade3 {
  opacity: 0.05;
}
.shade4 {
  opacity: 0.04;
}
.shade5 {
  opacity: 0.03;
}

@keyframes ripple {
  0% {
    transform: translate(-50%, -50%) scale(0.9);
  }
  50% {
    transform: translate(-50%, -50%) scale(1.05);
  }
  100% {
    transform: translate(-50%, -50%) scale(0.9);
  }
}

/* Hero Section */
.service-hero {
  position: relative;
  color: #ffffff;
  overflow: hidden;
  padding: 100px 0;
  text-align: center;
  min-height: 100vh;
  width: 100%;
}
.animate-adv {
  opacity: 0;
  transform: scale(0.8);
  animation: fadeScaleIn 0.6s ease-out forwards;
}

.animate-subline {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.6s ease-out forwards;
  animation-delay: 0.3s;
}

.animate-subtitle {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.6s ease-out forwards;
  animation-delay: 0.6s;
}

@keyframes fadeScaleIn {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-title {
  text-align: center;
  margin-bottom: 30px;
  font-family: var(--font-heading);
  line-height: 1.2;
  letter-spacing: 1px;
}
.hero-first-title {
  font-size: 6rem;
  color: #f0f0f0;
  font-weight: 600;
  display: block;
  margin-top: 10px;
}
.adv-title {
  font-size: 7.5rem;
  font-weight: 700;
  color: #ffffff;
  display: inline-block;
}

.highlight-ai {
  color: #9d44ff;
  position: relative;
  display: inline-block;
}



.hero-subtitle {
  color: #cccccc;
  font-size: 3rem;
  max-width: 900px;
  margin: 20px auto;
  font-weight: 600;
}

@media (max-width: 768px) {
  .hero-first-title {
    font-size: 2.2rem;
  }
  .adv-title {
    font-size: 3rem;
  }
  .hero-subtitle {
    font-size: 1.3rem;
  }
}

/* Team Section */
.team-section {
  display: flex;
  flex-direction: column;
  gap: 80px;
  padding: 100px 0;
  background: transparent;
}

.container {
  width: 100%;
  padding: 0;
  box-sizing: border-box;
}
.team-member-card {
  width: 100%;
  display: flex;
  align-items: center;
  position: relative;
  justify-content: flex-start;
  height: 360px;
  max-width: 1400px;
  padding: 30px 40px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.2);
  transition: all 0.5s ease-in-out;
  opacity: 0;
}

.team-member-card:hover {
  box-shadow: 0 0 20px rgba(157, 68, 255, 0.1);
  scale: 1.05;
  cursor: default;
}
.team-member-card.left {
  margin-left: clamp(16px, 5vw, 100px);
  margin-right: auto;
}

.team-member-card.right {
  margin-left: auto;
  margin-right: clamp(16px, 5vw, 100px);
}

.member-image {
  flex: 0 0 220px;
  height: 260px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.35s ease-in-out;
}

.member-image:hover {
  scale: 1.05;
}

.member-image img {
  height: 100%;
  width: auto;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.member-info {
  flex: 1;
  padding: 0 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  font-family: var(--font-body);
  color: #ccc;
  text-align: left;
}

.member-name {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 4px;
}

.member-role {
  color: #9d44ff;
  font-weight: 600;
  margin-bottom: 0px;
  font-size: 1.7rem;
}

.member-description {
  font-size: 1.3rem;
  line-height: 1.7;
  color: #ddd;
  max-width: 1000px;
  border-radius: 20px;
}

/* Animazioni */
.slide-in-left {
  transform: translateX(-100px);
}

.slide-in-right {
  transform: translateX(100px);
}

.slide-in-left.visible,
.slide-in-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* Responsive fix */


.social-float {
  position: absolute;
  top: 20px;
  right: 40px;
  z-index: 2;
  display: flex;
  flex-direction: row;
  gap: 10px;
}

.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.08);
  color: white;
  border-radius: 20px;
  font-size: 1.5rem;
  width: 80px;
  height: 50px;
  margin-right: 8px;
  transition: all 0.3s ease-in-out;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 0 6px rgba(157, 68, 255, 0.15);
}
.social-icon:last-child {
  margin-right: 0;
}

.social-icon:hover {
  color: #9d44ff;
  background: rgba(157, 68, 255, 0.1);
  border-color: #9d44ff;
  transform: translateY(-8px) rotate(8deg) scale(1.1);
  box-shadow: 0 0 12px rgba(157, 68, 255, 0.3);
}





@media (max-width: 768px) {
  
  .team-member-card {
    flex-direction: column !important;
    align-items: center;
    height: auto;
    padding: 20px 16px;
    margin: 0 auto;
    max-width: 90%;
    gap: 20px;
  }

  .member-image {
    width: 100%;
    max-width: 240px;
    height: auto;
    margin-bottom: 12px;
  }

  .member-image img {
    width: 100%;
    height: auto;
    max-height: 200px;
    object-fit: cover;
    border-radius: 14px;
  }

  .member-info {
    padding: 0;
    width: 100%;
    text-align: center;
  }

  .member-name {
    font-size: 1.7rem;
    margin-bottom: 6px;
  }

  .member-role {
    font-size: 1.1rem;
    margin-bottom: 10px;
  }

  .member-description {
    font-size: 1rem;
    line-height: 1.5;
    padding: 0 8px;
  }

  .social-float {
    position: static;
    justify-content: center;
    transform: none;
    margin-top: 15px;
    gap: 12px;
  }

  .social-icon {
    font-size: 1.2rem;
    width: 48px;
    height: 40px;
    border-radius: 12px;
    margin: 0;
  }
}

@media (max-width: 480px) {
  .member-name {
    font-size: 1.4rem;
  }

  .member-role {
    font-size: 1rem;
  }

  .member-description {
    font-size: 0.95rem;
  }

  .social-icon {
    width: 44px;
    height: 38px;
    font-size: 1.1rem;
  }
}



@media (max-width: 1024px) and (min-width: 769px) {
  .team-member-card {
    flex-direction: column;
    align-items: center;
    height: auto;
    padding: 30px 24px;
    margin: 0 auto;
    max-width: 92%;
    gap: 20px;
  }

  .member-image {
    width: 100%;
    max-width: 260px;
    height: auto;
    margin-bottom: 12px;
  }

  .member-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
  }

  .member-info {
    padding: 0;
    width: 100%;
    text-align: center;
  }

  .member-name {
    font-size: 2rem;
  }

  .member-role {
    font-size: 1.3rem;
  }

  .member-description {
    font-size: 1.1rem;
    padding: 0 8px;
  }

  .social-float {
    position: static;
    justify-content: center;
    margin-top: 12px;
    gap: 10px;
  }

  .social-icon {
    font-size: 1.3rem;
    width: 54px;
    height: 42px;
    border-radius: 14px;
  }
}
