* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  overflow-x: hidden;
  margin: 0;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: #000;
}

/* NAVBAR */
#mainNavbar {
  background: transparent;
  transition: background 0.3s ease;
  padding: 15px 0;
}

#mainNavbar.scrolled {
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(10px);
}

#mainNavbar .navbar-nav .nav-link {
  color: #fff;
  font-weight: 500;
  margin: 0 15px;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 1px;
  transition: color 0.3s;
  position: relative;
}

#mainNavbar .navbar-nav .nav-link:hover,
#mainNavbar .navbar-nav .nav-link.active {
  color: #8e44ad;
}

#mainNavbar .navbar-nav .nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: #8e44ad;
  transition: width 0.3s;
}

#mainNavbar .navbar-nav .nav-link:hover::after,
#mainNavbar .navbar-nav .nav-link.active::after {
  width: 100%;
}

.btn-contact {
  background: transparent;
  border: 2px solid #8e44ad;
  color: #8e44ad;
  padding: 8px 28px;
  border-radius: 50px;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 1px;
  transition: all 0.3s;
  white-space: nowrap;
}

.btn-contact:hover,
.btn-contact.active {
  background: #8e44ad;
  color: #fff;
  border-color: #8e44ad;
}

/* HERO */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-ring-wrap {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  background: #060606;
}

.hero-ring-canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.hero-ring-vignette {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0) 38%, rgba(0, 0, 0, 0.55) 100%);
}

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

.hero-wordmark {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  margin: 0;
  text-align: center;
  white-space: nowrap;
  pointer-events: none;
  font-size: clamp(3rem, 9vw, 7.5rem);
  font-weight: 800;
  letter-spacing: 0.01em;
  line-height: 1;
  background: linear-gradient(90deg, #3aa8ff 0%, #b07ed6 45%, #8e44ad 55%, #ff8a3d 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.3)) drop-shadow(0 0 46px rgba(142, 68, 173, 0.5));
  animation: heroWordmarkGlow 4.5s ease-in-out infinite;
}

@keyframes heroWordmarkGlow {
  0%, 100% {
    filter: drop-shadow(0 0 18px rgba(255, 255, 255, 0.28)) drop-shadow(0 0 40px rgba(142, 68, 173, 0.42));
  }
  50% {
    filter: drop-shadow(0 0 28px rgba(255, 255, 255, 0.55)) drop-shadow(0 0 62px rgba(142, 68, 173, 0.78));
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-wordmark {
    animation: none;
  }
}

@media (max-width: 576px) {
  .hero-wordmark {
    letter-spacing: 0;
  }
}

/* HERO FLOW - anello che si trasforma in flusso verticale che ruota, con i
   servizi che compaiono uno alla volta a destra/sinistra */
.hero-flow-outer {
  position: relative;
  /* altezza impostata via JS (dipende da quanti servizi vengono mostrati) */
  background: #060606;
}

.hero-flow-sticky {
  /* position/top/bottom impostati via JS in base alla fase di scroll */
  left: 0;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  background: #060606;
  z-index: 1;
}

/* Contenitore posizionato a destra/sinistra del flusso: gestisce solo
   posizione/dissolvenza. La card al suo interno e' la stessa identica
   .servizio-card usata nella griglia Servizi (stesso markup, stesso CSS). */
.hero-service-slot {
  position: absolute;
  top: 50%;
  z-index: 3;
  width: min(420px, 38vw);
  height: 480px;
  pointer-events: auto;
  opacity: 0;
  will-change: opacity, transform;
}

.hero-service-slot .servizio-card {
  height: 100%;
}

.hero-service-slot.side-right {
  right: 4%;
}

.hero-service-slot.side-left {
  left: 4%;
}

@media (max-width: 992px) {
  .hero-service-slot {
    width: min(320px, 46vw);
    height: 400px;
  }

  .hero-service-slot.side-right {
    right: 2.5%;
  }

  .hero-service-slot.side-left {
    left: 2.5%;
  }
}

@media (max-width: 640px) {
  .hero-service-slot {
    width: min(230px, 58vw);
    height: 300px;
  }

  .hero-service-slot.side-right {
    right: 3%;
  }

  .hero-service-slot.side-left {
    left: 3%;
  }
}

/* SECTION BACKGROUNDS alternati */
.section-dark {
  background: #000;
  color: #fff;
}

.section-dark .subtitle {
  color: #fff;
}

.section-light {
  background: #ececec;
  color: #222;
}

.section-light .subtitle:not(.clienti-subtitle) {
  color: #222;
}

.section-light .description {
  color: #666;
}

.section-light .cliente-card {
  background: #fff;
  border: 2px solid #b07ed6;
}

.section-light .cliente-placeholder {
  color: #aaa;
}

.section-light .cliente-card-title {
  color: #555;
}

.section-light .cliente-partnership {
  background: #fff;
  border: 1px solid #ddd;
}

.section-light .cliente-partnership-waves svg {
  opacity: 1;
}

.section-light .cliente-partnership-message {
  color: #333;
}

#home, #progetti, #clienti, #contattaci {
  scroll-margin-top: 0;
}

.progetti-header .subtitle {
  font-size: 2.2rem;
  font-weight: 500;
  margin-bottom: 10px;
}

.clienti-header .subtitle {
  font-size: 2.2rem;
  font-weight: 500;
  margin-bottom: 10px;
}

.section-title-divider {
  width: 60px;
  height: 3px;
  background: #8e44ad;
  margin: -5px auto 15px auto;
  border-radius: 2px;
}

.servizio-card {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  height: 100%;
  min-height: 380px;
  padding: 30px 28px 26px;
  display: flex;
  flex-direction: column;
  color: #1e1e1e;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.servizio-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 30px 60px -25px rgba(0, 0, 0, 0.35);
}

.servizio-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.servizio-icon {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.servizio-icon i {
  font-size: 1.5rem;
  color: inherit;
  opacity: 0.75;
}

.servizio-link {
  color: inherit;
  font-size: 0.72rem;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-transform: uppercase;
  letter-spacing: 1px;
  opacity: 0.55;
  background: rgba(255, 255, 255, 0.4);
  padding: 7px 14px;
  border-radius: 50px;
  white-space: nowrap;
  transition: opacity 0.3s, gap 0.3s;
}

.servizio-link:hover {
  opacity: 0.9;
  gap: 8px;
}

.servizio-card-visual {
  flex: 1;
  min-height: 0;
  border-radius: 20px;
  overflow: hidden;
  position: relative;
}

.servizio-card-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.servizio-card:hover .servizio-card-visual img {
  transform: scale(1.06);
}

.servizio-card-bottom h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 10px;
  line-height: 1.15;
  letter-spacing: -0.3px;
}

.servizio-facts {
  list-style: none;
  margin: 0;
  padding: 0;
}

.servizio-facts li {
  position: relative;
  padding-left: 18px;
  font-size: 0.95rem;
  line-height: 1.5;
  opacity: 0.6;
}

.servizio-facts li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.55;
}

/* RESPONSIVE SERVIZI */
@media (max-width: 992px) {
  .contattaci-header h2 {
    font-size: 1rem;
  }

  .progetti-header .subtitle,
  .contattaci-header .subtitle {
    font-size: 1.6rem;
  }

  .clienti-header .subtitle {
    font-size: 1.6rem;
  }

  .servizio-card {
    border-radius: 22px;
    min-height: 340px;
    padding: 24px 22px 22px;
  }

  .servizio-icon {
    width: 46px;
    height: 46px;
    border-radius: 14px;
  }

  .servizio-icon i {
    font-size: 1.25rem;
  }

  .servizio-card-bottom h3 {
    font-size: 1.3rem;
  }

  .servizio-facts li {
    font-size: 0.9rem;
  }

  .servizio-link {
    font-size: 0.68rem;
    padding: 6px 12px;
  }

}

@media (max-width: 576px) {
  .contattaci-header h2 {
    font-size: 0.85rem;
  }

  .progetti-header .subtitle,
  .contattaci-header .subtitle {
    font-size: 1.2rem;
  }

  .clienti-header .subtitle {
    font-size: 1.2rem;
  }

  .servizio-card {
    border-radius: 20px;
    min-height: auto;
    padding: 22px 20px 20px;
  }

  .servizio-icon {
    width: 42px;
    height: 42px;
  }

  .servizio-icon i {
    font-size: 1.15rem;
  }

  .servizio-card-bottom h3 {
    font-size: 1.2rem;
  }

  .servizio-facts li {
    font-size: 0.88rem;
  }

}

/* PROGETTI */
.progetti {
  position: relative;
  padding: 40px 0 50px;
  min-height: 100vh;
}

.progetti-header {
  text-align: center;
  margin-bottom: 30px;
}

.progetti-header h2 {
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 6px;
  margin-bottom: 15px;
  color: #8e44ad;
}

.gradient-text {
  background: linear-gradient(135deg, #6c2f8a 40%, #8e44ad 70%, #6c2f8a 90%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.contattaci-header {
  text-align: center;
  margin-bottom: 0;
  padding-bottom: 40px;
}

.contattaci {
  padding: 40px 0 80px;
}

.contattaci-header h2 {
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 6px;
  margin-bottom: 15px;
  color: #8e44ad;
}

.contattaci-header .subtitle {
  font-size: 2.2rem;
  font-weight: 500;
  margin-bottom: 10px;
  color: #222;
}

.contattaci-header .description {
  font-size: 1rem;
  color: #555;
  max-width: 700px;
  margin: 0 auto;
}

.contattaci-card {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 16px;
  padding: 32px;
  height: 100%;
}

.contattaci-card-title {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 4px;
  color: #222;
  margin-bottom: 12px;
}

.contattaci-card-divider {
  width: 50px;
  height: 3px;
  background: #8e44ad;
  border-radius: 2px;
  margin-bottom: 24px;
  opacity: 0.5;
}

.contattaci-info {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contattaci-info-divider {
  width: 100%;
  height: 1px;
  background: #8e44ad;
  opacity: 0.2;
}

.contattaci-info-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.contattaci-info-icon {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  background: rgba(142, 68, 173, 0.08);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #8e44ad;
  font-size: 1.3rem;
}

.contattaci-info-text {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  flex-wrap: wrap;
}

.contattaci-info-text strong {
  font-size: 1.05rem;
  font-weight: 600;
  color: #222;
  white-space: nowrap;
}

.contattaci-info-text span {
  font-size: 1.05rem;
  color: #555;
}

.contattaci-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: #333;
  margin-bottom: 6px;
}

.contattaci-required {
  color: #e74c3c;
}

.contattaci-input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #ddd;
  border-radius: 10px;
  font-size: 0.95rem;
  color: #333;
  background: #fff;
  outline: none;
  transition: border-color 0.3s;
}

.contattaci-input:focus {
  border-color: #8e44ad;
}

.contattaci-input::placeholder {
  color: #888;
}

.custom-select {
  position: relative;
}

.custom-select-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  user-select: none;
}

.custom-select-text {
  flex: 1;
  color: #888;
}

.custom-select-text.filled {
  color: #333;
}

.custom-select-arrow {
  font-size: 0.75rem;
  color: #888;
  transition: transform 0.2s;
}

.custom-select.open .custom-select-arrow {
  transform: rotate(180deg);
}

.custom-select-dropdown {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 10px;
  overflow: hidden;
  z-index: 100;
  display: none;
}

.custom-select.open .custom-select-dropdown {
  display: block;
}

.custom-select-option {
  padding: 10px 14px;
  font-size: 0.95rem;
  color: #333;
  cursor: pointer;
  transition: background 0.15s;
}

.custom-select-option:hover {
  background: rgba(142, 68, 173, 0.08);
}

.custom-select-option.selected {
  background: rgba(142, 68, 173, 0.12);
  color: #8e44ad;
  font-weight: 600;
}

.contattaci-textarea {
  resize: vertical;
  min-height: 140px;
}

.contattaci-btn {
  background: #8e44ad;
  color: #fff;
  border: none;
  padding: 12px 32px;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s, transform 0.3s, box-shadow 0.3s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.contattaci-btn:hover {
  background: #7d3c9b;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(142, 68, 173, 0.3);
}

.contattaci-form-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 0;
}

.contattaci-checkbox {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  font-size: 0.85rem;
  color: #555;
  user-select: none;
}

.contattaci-checkbox input {
  display: none;
}

.contattaci-checkbox-mark {
  width: 18px;
  height: 18px;
  border: 2px solid #ccc;
  border-radius: 4px;
  flex-shrink: 0;
  position: relative;
  transition: border-color 0.2s, background 0.2s;
}

.contattaci-checkbox input:checked + .contattaci-checkbox-mark {
  border-color: #8e44ad;
  background: #8e44ad;
}

.contattaci-checkbox input:checked + .contattaci-checkbox-mark::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 5px;
  width: 5px;
  height: 9px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.contattaci-privacy-link {
  color: #8e44ad;
  text-decoration: none;
  font-weight: 600;
}

.contattaci-privacy-link:hover {
  text-decoration: underline;
}

/* FOOTER */
.site-footer {
  background: #111;
  color: #aaa;
  padding: 50px 0 0;
}

.footer-divider-top {
  width: 100%;
  height: 1px;
  background: #000;
  margin-bottom: 40px;
}

.footer-section-title {
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 4px;
  color: #8e44ad;
  margin-bottom: 10px;
}

.footer-section-divider {
  width: 50px;
  height: 3px;
  background: #8e44ad;
  border-radius: 2px;
  margin-bottom: 20px;
  opacity: 0.5;
}

.footer-nav-grid {
  display: flex;
  gap: 60px;
}

.footer-nav-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-nav-link {
  color: #ccc;
  text-decoration: none;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color 0.3s;
}

.footer-nav-link i {
  font-size: 0.65rem;
  color: #8e44ad;
}

.footer-nav-link:hover {
  color: #8e44ad;
}

.footer-contact-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.9rem;
  color: #bbb;
}

.footer-contact-icon {
  width: 28px;
  flex-shrink: 0;
  color: #8e44ad;
  font-size: 0.9rem;
  text-align: center;
  margin-top: 2px;
}

.footer-image-row {
  margin: 40px 0;
  text-align: center;
}

.footer-middle-img {
  max-width: 100%;
  height: auto;
}

.footer-bottom-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  padding: 30px 0;
  border-top: 1px solid #222;
}

.footer-social-circles {
  display: flex;
  gap: 10px;
}

.footer-circle {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid #333;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #aaa;
  text-decoration: none;
  transition: all 0.3s;
  font-size: 1rem;
}

.footer-circle:hover {
  background: #8e44ad;
  border-color: #8e44ad;
  color: #fff;
}

.footer-copyright {
  font-size: 0.78rem;
  color: #666;
  text-align: center;
  max-width: 400px;
  line-height: 1.5;
}

.footer-privacy-block {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.82rem;
  color: #888;
  max-width: 280px;
}

.footer-privacy-icon {
  position: relative;
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #8e44ad;
  font-size: 1.3rem;
}

.footer-privacy-icon .fa-check {
  position: absolute;
  font-size: 0.55rem;
  color: #fff;
  background: #8e44ad;
  border-radius: 50%;
  padding: 2px;
  bottom: 2px;
  right: 2px;
}

.footer-privacy-link {
  color: #8e44ad;
  text-decoration: none;
  font-weight: 600;
}

.footer-privacy-link:hover {
  text-decoration: underline;
}

@media (max-width: 768px) {
  .site-footer {
    padding: 30px 0 0;
  }

  .footer-nav-grid {
    gap: 30px;
  }

  .footer-bottom-row {
    flex-direction: column;
    text-align: center;
  }

  .footer-privacy-block {
    max-width: 100%;
    justify-content: center;
  }

  .footer-copyright {
    max-width: 100%;
  }
}

.contattaci-form-error {
  font-size: 0.85rem;
  color: #e74c3c;
  text-align: center;
  min-height: 20px;
  line-height: 20px;
}

.progetti-header .description {
  font-size: 1rem;
  color: #aaa;
  max-width: 700px;
  margin: 0 auto;
}

.progetti-carousel-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  gap: 16px;
  padding: 0 20px;
}

.carousel-arrow {
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(142, 68, 173, 0.3);
  color: #8e44ad;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s;
  z-index: 10;
}

.carousel-arrow:hover {
  background: rgba(142, 68, 173, 0.2);
  border-color: #8e44ad;
}

.progetti-carousel-viewport {
  width: 100%;
  overflow: hidden;
  min-height: 540px;
}

.progetti-carousel-track {
  display: flex;
  gap: 14px;
  will-change: transform;
  padding: 20px 0;
}

.progetti-card {
  flex: 0 0 auto;
  width: 340px;
  border-radius: 16px;
  overflow: hidden;
  background: #111;
  border: 2px solid transparent;
  transition: transform 0.6s ease, opacity 0.6s ease, border 0.6s ease;
  transform-origin: center center;
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.3);
}

.progetti-card.active {
  transform: scale(1);
  opacity: 1;
  border: 2px solid #8e44ad;
}

.progetti-card.prev-1 {
  transform: perspective(900px) rotateY(14deg) scale(0.85);
  opacity: 0.75;
}

.progetti-card.prev-2 {
  transform: perspective(900px) rotateY(28deg) scale(0.7);
  opacity: 0.55;
}

.progetti-card.next-1 {
  transform: perspective(900px) rotateY(-14deg) scale(0.85);
  opacity: 0.75;
}

.progetti-card.next-2 {
  transform: perspective(900px) rotateY(-28deg) scale(0.7);
  opacity: 0.55;
}

.progetti-card-img {
  position: relative;
  width: 100%;
  height: 420px;
  overflow: hidden;
}

.progetti-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.progetti-card-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 18px 24px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.85));
}

.progetti-card-overlay h3 {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 600;
  color: #8e44ad;
}

.progetti-card-desc {
  padding: 18px 24px;
}

.progetti-card-desc p {
  margin: 0;
  font-size: 0.85rem;
  color: #bbb;
  line-height: 1.5;
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
}

.carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1px solid rgba(142, 68, 173, 0.4);
  background: transparent;
  transition: background 0.3s, border-color 0.3s, transform 0.3s;
}

.carousel-dot.active {
  background: #8e44ad;
  border-color: #8e44ad;
  transform: scale(1.3);
}

@media (max-width: 768px) {
  .progetti-header h2 {
    font-size: 1rem;
  }

  .progetti-header .subtitle {
    font-size: 1.4rem;
  }

  .progetti-card {
    width: 260px;
  }

  .progetti-card-img {
    height: 300px;
  }

  .progetti-carousel-viewport {
    min-height: 400px;
  }

  .carousel-arrow {
    flex: 0 0 36px;
    width: 36px;
    height: 36px;
    font-size: 0.9rem;
  }
}

/* CLIENTI */
.clienti {
  position: relative;
  padding: 40px 0 70px;
}

.clienti-header {
  text-align: center;
  margin-bottom: 40px;
}

.clienti-header h2 {
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 6px;
  margin-bottom: 15px;
  color: #8e44ad;
}

.clienti-subtitle {
  color: #8e44ad !important;
}

.nero {
  color: #000;
}

.clienti-header .description {
  font-size: 1rem;
  color: #555;
  max-width: 700px;
  margin: 0 auto 40px;
}

.cliente-card {
  background: #fff;
  border: 2px solid #b07ed6;
  border-radius: 10px;
  overflow: hidden;
  cursor: default;
}

.clienti-scroll {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.clienti-scroll-track {
  overflow: hidden;
  width: 100%;
}

.clienti-scroll-content {
  display: flex;
  flex-wrap: nowrap;
  gap: 12px;
  width: max-content;
}

.clienti-scroll-content .cliente-card {
  flex: 0 0 auto;
  width: 260px;
}

.clienti-scroll-right .clienti-scroll-content {
  animation: scrollRight 50s linear infinite;
}

.clienti-scroll-left .clienti-scroll-content {
  animation: scrollLeft 50s linear infinite;
}

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

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

@media (max-width: 768px) {
  .clienti-scroll-content .cliente-card {
    width: 140px;
  }

  .clienti-scroll-right .clienti-scroll-content {
    animation-duration: 20s;
  }

  .clienti-scroll-left .clienti-scroll-content {
    animation-duration: 20s;
  }
}

.cliente-card-img {
  aspect-ratio: 16 / 9;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.cliente-placeholder {
  font-size: 1.1rem;
  font-weight: 700;
  color: #555;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.cliente-card-title {
  text-align: center;
  padding: 12px 8px 14px;
  font-size: 1rem;
  color: #888;
  font-weight: 600;
}

/* Full-width partnership card */
.cliente-partnership {
  margin-top: 40px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(142, 68, 173, 0.15);
  border-radius: 16px;
  position: relative;
  overflow: hidden;
  display: flex;
  z-index: 0;
}

.cliente-partnership-left {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 20px;
  padding: 40px 50px;
  flex-shrink: 0;
}

@media (min-width: 769px) {
  .cliente-partnership-left {
    flex: 0 0 40%;
  }
}

@media (min-width: 769px) {
  .cliente-partnership-tagline {
    margin-left: auto;
    padding-right: 10px;
  }
}

.cliente-partnership-logo {
  flex-shrink: 0;
}

.cliente-partnership-logo img {
  height: 50px;
  width: auto;
  opacity: 0.9;
}

.cliente-partnership-tagline {
  font-size: 1.6rem;
  font-weight: 600;
  color: #000;
  white-space: nowrap;
}

.cliente-partnership-vdivider {
  display: none;
}

@media (min-width: 769px) {
  .cliente-partnership-vdivider {
    display: block;
    width: 2px;
    height: 50px;
    background: #8e44ad;
    opacity: 0.5;
    flex-shrink: 0;
    align-self: center;
  }
}

.cliente-partnership-right {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 25px;
  padding: 40px 50px;
  position: relative;
  overflow: hidden;
}

.cliente-partnership-message {
  font-size: 0.95rem;
  color: #ccc;
  line-height: 1.6;
  font-weight: 300;
  position: relative;
  z-index: 2;
}

.cliente-partnership-waves {
  position: absolute;
  top: 0;
  right: 0;
  width: 80%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.cliente-partnership-waves svg {
  width: 100%;
  height: 100%;
}

@media (max-width: 992px) {
  .cliente-partnership-left {
    padding: 30px 30px;
    gap: 15px;
  }

  .cliente-partnership-right {
    padding: 30px 30px;
  }

  .cliente-partnership-tagline {
    font-size: 1.3rem;
    margin-left: 0;
    padding-right: 0;
  }

  .cliente-partnership-message {
    font-size: 0.85rem;
  }

  .cliente-partnership-waves {
    width: 60%;
  }
}

@media (max-width: 768px) {
  .clienti-header h2 {
    font-size: 1rem;
  }

  .clienti-header .subtitle {
    font-size: 1.4rem;
  }

  .cliente-placeholder {
    font-size: 0.9rem;
  }

  .cliente-card-title {
    font-size: 0.8rem;
    padding: 8px 6px 10px;
  }

  .cliente-partnership {
    flex-direction: column;
  }

  .cliente-partnership-left {
    flex-direction: column;
    text-align: center;
    padding: 25px 20px 15px;
  }

  .cliente-partnership-vdivider {
    display: block;
    position: static;
    width: 40px;
    height: 2px;
    background: #8e44ad;
    opacity: 0.5;
    margin: 0 auto;
  }

  .cliente-partnership-right {
    flex-direction: column;
    gap: 10px;
    padding: 15px 20px 25px;
    justify-content: center;
    text-align: center;
  }

  .cliente-partnership-tagline {
    white-space: normal;
  }

  .cliente-partnership-waves {
    width: 100%;
    opacity: 0.3;
  }
}

@media (max-width: 992px) {
  #mainNavbar {
    background: rgba(0, 0, 0, 0.85);
  }

  #mainNavbar .navbar-nav .nav-link {
    margin: 10px 0;
    text-align: center;
  }

  .btn-contact {
    display: block;
    width: fit-content;
    margin: 15px auto 0;
  }
}

/* PAGINA DETTAGLIO SERVIZIO */
.dettaglio-loading {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
  color: #fff;
  font-size: 1.1rem;
}

.dettaglio-page {
  min-height: 100vh;
  background: #ececec;
}

.dettaglio-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  background: #000;
}

.dettaglio-logo img {
  display: block;
}

.dettaglio-back {
  color: #ccc;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: color 0.3s;
}

.dettaglio-back:hover {
  color: #fff;
}

.dettaglio-hero {
  padding: 70px 24px 60px;
  text-align: center;
  color: #1e1e1e;
}

.dettaglio-hero-icon {
  width: 84px;
  height: 84px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
}

.dettaglio-hero-icon i {
  font-size: 2.4rem;
  opacity: 0.8;
}

.dettaglio-hero h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  margin-bottom: 18px;
  letter-spacing: -0.01em;
}

.dettaglio-hero p {
  font-size: 1.1rem;
  max-width: 640px;
  margin: 0 auto 30px;
  opacity: 0.75;
  line-height: 1.6;
}

.dettaglio-cta {
  border-color: #1e1e1e;
  color: #1e1e1e;
}

.dettaglio-cta:hover {
  background: #1e1e1e;
  color: #fff;
  border-color: #1e1e1e;
}

.dettaglio-visual {
  max-width: 900px;
  margin: -30px auto 60px;
  padding: 0 24px;
}

.dettaglio-visual img {
  width: 100%;
  border-radius: 24px;
  box-shadow: 0 30px 60px -25px rgba(0, 0, 0, 0.35);
  display: block;
}

.dettaglio-altri {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px 90px;
}

.dettaglio-altri h2 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 24px;
  color: #222;
}

.dettaglio-altri-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 22px;
  border-radius: 18px;
  color: #1e1e1e;
  text-decoration: none;
  font-weight: 700;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
}

.dettaglio-altri-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px -18px rgba(0, 0, 0, 0.35);
  color: #1e1e1e;
}

.dettaglio-altri-card i {
  font-size: 1.4rem;
  opacity: 0.75;
}

.dettaglio-notfound {
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 16px;
  padding: 40px 24px;
  color: #222;
}
