/* ═══════════════════════════════════════════════════════
   RESET & BASE
═══════════════════════════════════════════════════════ */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Manrope', sans-serif;
  color: rgb(17, 17, 17);
  background: #fff;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  display: block;
}

/* ═══════════════════════════════════════════════════════
   SCROLL MARGIN (offset navbar fixed height)
═══════════════════════════════════════════════════════ */
#hero,
#about,
#team,
#servizi,
#metodo,
#testimonials,
#pricing,
#contact {
  scroll-margin-top: 64px;
}

@media (max-width: 640px) {

  #hero,
  #about,
  #team,
  #servizi,
  #metodo,
  #testimonials,
  #pricing,
  #contact {
    scroll-margin-top: 56px;
  }
}

/* ═══════════════════════════════════════════════════════
   CONTAINER
═══════════════════════════════════════════════════════ */
.container {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 48px;
}

@media (max-width: 1024px) {
  .container {
    padding: 0 32px;
  }
}

@media (max-width: 640px) {
  .container {
    padding: 0 20px;
  }
}

/* ═══════════════════════════════════════════════════════
   NAVBAR
═══════════════════════════════════════════════════════ */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: 64px;
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid transparent;
  transition: background 0.3s ease, border-color 0.3s ease,
    backdrop-filter 0.3s ease;
}

#navbar.scrolled {
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom-color: rgba(0, 0, 0, 0.07);
}

.nav-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 48px;
  position: relative;
}

.nav-logo {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -0.04em;
  color: rgb(17, 17, 17);
  flex-shrink: 0;
  z-index: 1;
}

.nav-links {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 22px;
}

.nav-link {
  font-family: 'Manrope', sans-serif;
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgb(17, 17, 17);
  position: relative;
  padding-bottom: 3px;
  white-space: nowrap;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1.5px;
  background: rgb(199, 53, 20);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease;
}

.nav-link:hover::after {
  transform: scaleX(1);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 1;
}

.nav-cta {
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.03em;
  color: rgb(199, 53, 20);
  border: 1.5px solid rgb(199, 53, 20);
  border-radius: 100px;
  padding: 10px 22px;
  transition: background 0.2s ease, color 0.2s ease;
  white-space: nowrap;
}

.nav-cta:hover {
  background: rgb(199, 53, 20);
  color: #fff;
}

/* ── Hamburger ── */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  flex-shrink: 0;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: rgb(17, 17, 17);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.2s ease;
  transform-origin: center;
}

.hamburger.open span:nth-child(1) {
  transform: rotate(45deg) translate(4.7px, 4.7px);
}

.hamburger.open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.hamburger.open span:nth-child(3) {
  transform: rotate(-45deg) translate(4.7px, -4.7px);
}

/* ── Mobile Menu ── */
.mobile-menu {
  position: fixed;
  top: 64px;
  left: 0;
  right: 0;
  bottom: 0;
  background: #fff;
  z-index: 999;
  display: flex;
  flex-direction: column;
  padding: 32px 24px 40px;
  overflow-y: auto;
  opacity: 0;
  clip-path: inset(0 0 100% 0);
  transition: opacity 0.38s ease, clip-path 0.38s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}

.mobile-menu.open {
  opacity: 1;
  clip-path: inset(0 0 0% 0);
  pointer-events: all;
}

.mobile-nav {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.mobile-link {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 28px;
  letter-spacing: -0.02em;
  color: rgb(17, 17, 17);
  padding: 16px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  display: block;
  line-height: 1.1;
}

.mobile-cta {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 32px;
  padding: 14px 32px;
  border: 1.5px solid rgb(199, 53, 20);
  border-radius: 100px;
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
  font-size: 15px;
  color: rgb(199, 53, 20);
  transition: background 0.2s ease, color 0.2s ease;
}

.mobile-cta:hover {
  background: rgb(199, 53, 20);
  color: #fff;
}

/* ── Responsive Navbar ── */
@media (max-width: 1024px) {
  .nav-links {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .nav-inner {
    padding: 0 32px;
  }
}

@media (min-width: 641px) and (max-width: 1024px) {
  .mobile-link {
    font-size: 36px;
  }

  .mobile-menu {
    padding: 32px 40px 40px;
  }
}

@media (max-width: 640px) {
  #navbar {
    height: 56px;
  }

  .mobile-menu {
    top: 56px;
  }

  .nav-inner {
    padding: 0 20px;
  }

  .nav-cta {
    display: none;
  }
}

/* ═══════════════════════════════════════════════════════
   LABELS & BADGES
═══════════════════════════════════════════════════════ */
.label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}

.label-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.label-text {
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgb(17, 17, 17);
}

.label-inline {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.label-square {
  width: 16px;
  height: 16px;
  background: rgb(199, 53, 20);
  border-radius: 4px;
  flex-shrink: 0;
}

.label-tag {
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgb(199, 53, 20);
}

/* ═══════════════════════════════════════════════════════
   SECTION TITLES
═══════════════════════════════════════════════════════ */
.section-title {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 72px;
  letter-spacing: -0.04em;
  line-height: 1.0;
  color: rgb(17, 17, 17);
}

.section-title-lg {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 72px;
  letter-spacing: -0.03em;
  line-height: 1.05;
  color: rgb(17, 17, 17);
  margin: 0;
}

.section-subtitle {
  font-family: 'Manrope', sans-serif;
  font-weight: 500;
  font-size: 20px;
  line-height: 1.4;
  letter-spacing: -0.04em;
  color: rgba(17, 17, 17, 0.6);
  max-width: 600px;
  margin-top: 16px;
}

@media (max-width: 1024px) {
  .section-title {
    font-size: 52px;
  }

  .section-title-lg {
    font-size: 52px;
  }

  .section-subtitle {
    font-size: 18px;
  }
}

@media (max-width: 640px) {
  .section-title {
    font-size: 36px;
  }

  .section-title-lg {
    font-size: 36px;
  }

  .section-subtitle {
    font-size: 16px;
  }
}

/* ═══════════════════════════════════════════════════════
   HERO
═══════════════════════════════════════════════════════ */
#hero {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 600px;
  background: rgb(10, 10, 16);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 0 24px 24px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

/* ── Hero animated background (stripe + rainbow, adapted from CodePen DenDionigi) ── */
.hero-animated-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;

  /* Tonalità arancio dark dirette — nessun invert */
  --stripe-color: #1a0800;
  --stripes: repeating-linear-gradient(100deg,
      var(--stripe-color) 0%,
      var(--stripe-color) 7%,
      transparent 10%,
      transparent 12%,
      var(--stripe-color) 16%);
  --rainbow: repeating-linear-gradient(100deg,
      #fcfcfc 10%,
      #ff8c3c 15%,
      #0c0c0c 20%,
      #b43c00 25%,
      #f55733 30%);

  background-image: var(--stripes), var(--rainbow);
  background-size: 300%, 200%;
  background-position: 50% 50%, 50% 50%;

  filter: blur(10px);

  /* Ellisse larga → curva organica appena sopra i tag in basso */
  mask-image: radial-gradient(ellipse 200% 95% at 50% 0%, black 83%, transparent 93%);
  -webkit-mask-image: radial-gradient(ellipse 200% 95% at 50% 0%, black 83%, transparent 93%);
}

.hero-animated-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--stripes), var(--rainbow);
  background-size: 200%, 100%;
  animation: heroBgScroll 60s linear infinite;
  mix-blend-mode: screen;
}

@keyframes heroBgScroll {
  from {
    background-position: 50% 50%, 50% 50%;
  }

  to {
    background-position: 350% 50%, 350% 50%;
  }
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  width: 100%;
  max-width: 1152px;
}

.hero-title {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: clamp(64px, 13vw, 180px);
  letter-spacing: -0.06em;
  line-height: 0.9;
  color: #fff;
}

.hero-bottom {
  position: absolute;
  bottom: 72px;
  left: 48px;
  right: 48px;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  will-change: transform;
}

.hero-tag {
  font-family: 'Manrope', sans-serif;
  font-weight: 500;
  font-size: 22px;
  letter-spacing: -0.04em;
  line-height: 1.3;
  color: rgba(255, 255, 255, 0.65);
}

@media (max-width: 1024px) {
  .hero-tag {
    font-size: 17px;
  }

  .hero-bottom {
    bottom: 56px;
    left: 32px;
    right: 32px;
  }
}

@media (max-width: 640px) {
  .hero-title {
    font-size: clamp(52px, 16vw, 90px);
  }

  .hero-tag {
    font-size: 13px;
  }

  .hero-bottom {
    bottom: 40px;
    left: 20px;
    right: 20px;
  }
}

/* ═══════════════════════════════════════════════════════
   VISIONE
═══════════════════════════════════════════════════════ */
#about {
  background: #fff;
  padding: 80px 0 96px;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.visione-row {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 48px;
  align-items: start;
}

.visione-col-label {
  padding-top: 6px;
}

.visione-statement {
  font-family: 'Manrope', sans-serif;
  max-width: 900px;
  font-weight: 600;
  margin: 0 auto;
  font-size: clamp(36px, 4.2vw, 36px);
  text-align: center;
  letter-spacing: -0.03em;
  line-height: 1.05;
  color: rgb(17, 17, 17);
}

.v-grey {
  color: rgb(113, 113, 122);
}

.v-orange {
  color: rgb(245, 87, 51);
}

@media (max-width: 1024px) {
  #about {
    padding: 64px 0 72px;
  }

  .visione-row {
    grid-template-columns: 160px 1fr;
    gap: 32px;
  }
}

@media (max-width: 640px) {
  #about {
    padding: 56px 0 64px;
  }

  .visione-row {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .visione-statement {
    font-size: 28px;
  }
}

/* ═══════════════════════════════════════════════════════
   TEAM
═══════════════════════════════════════════════════════ */
#team {
  padding: 80px 0;
  background: #fff;
}

.team-layout {
  display: flex;
  gap: 48px;
  align-items: flex-start;
}

.team-left {
  flex: 0 0 auto;
  width: 360px;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.team-grid {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  align-items: start;
}

.team-card {
  width: 100%;
  height: 465px;
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  will-change: transform;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.07);
}

.team-avatar {
  display: none;
}

.team-name {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 17px;
  color: rgb(17, 17, 17);
  margin-bottom: 4px;
  letter-spacing: -0.02em;
}

.team-role {
  font-family: 'Manrope', sans-serif;
  font-weight: 600;
  font-size: 13px;
  color: rgb(245, 87, 51);
  line-height: 1.4;
}

.team-info {
  flex-shrink: 0;
  padding: 16px 20px 20px;
}

.link-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
  font-size: 15px;
  color: rgb(199, 53, 20);
  transition: gap 0.2s ease;
}

.link-btn:hover {
  gap: 12px;
}

@media (max-width: 1024px) {
  #team {
    padding: 64px 0;
  }

  .team-layout {
    flex-direction: column;
  }

  .team-left {
    width: 100%;
  }

  .team-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
  }

  .team-card {
    height: 380px;
  }
}

@media (max-width: 768px) {
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .team-card {
    height: 420px;
  }
}

@media (max-width: 640px) {
  #team {
    padding: 56px 0;
  }

  .team-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .team-card {
    height: auto;
  }

  .team-photo-wrap {
    flex: none;
    aspect-ratio: 3/4;
  }
}

/* ═══════════════════════════════════════════════════════
   SERVIZI
═══════════════════════════════════════════════════════ */
#servizi {
  background: rgb(17, 19, 24);
}

#servizi .container {
  padding-top: 72px;
  padding-bottom: 72px;
}

.servizi-header {
  margin-bottom: 64px;
}

.servizi-list {
  width: 100%;
}

.servizio-row {
  border-top: 1px solid rgba(215, 144, 36, 0.8);
  padding: 48px 0;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  cursor: default;
  transition: opacity 0.3s ease;
  gap: 24px;
}

/* Mouse hover (only when not scroll-driven) */
.servizi-list:not(.scroll-highlight):hover .servizio-row {
  opacity: 0.4;
}

.servizi-list:not(.scroll-highlight):hover .servizio-row:hover {
  opacity: 1;
}

/* Scroll-driven highlight */
.servizi-list.scroll-highlight .servizio-row {
  opacity: 0.3;
  transition: opacity 0.45s ease;
}

.servizi-list.scroll-highlight .servizio-row.scroll-active {
  opacity: 1;
}

.servizio-left {
  flex: 0 0 auto;
  min-width: 220px;
}

.servizio-number {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}

.servizio-dash {
  display: block;
  width: 24px;
  height: 2px;
  background: rgba(215, 144, 36, 0.8);
  flex-shrink: 0;
}

.servizio-number span:last-child {
  color: rgba(255, 255, 255, 0.5);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.06em;
  font-family: 'Manrope', sans-serif;
}

.servizio-name {
  color: #fff;
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 52px;
  letter-spacing: -0.02em;
  line-height: 1.05;
}

.servizio-desc {
  flex: 1;
  max-width: 520px;
  color: rgba(255, 255, 255, 0.55);
  font-family: 'Manrope', sans-serif;
  font-size: 16px;
  line-height: 1.75;
  text-align: right;
  margin: 0;
}

.servizi-bottom-line {
  width: 100%;
  height: 1px;
  background: rgba(215, 144, 36, 0.8);
}

@media (max-width: 1024px) {
  .servizio-row {
    padding: 32px 0;
  }

  .servizio-name {
    font-size: 36px;
  }

  .servizio-desc {
    text-align: left;
    font-size: 15px;
  }

  .servizi-header {
    margin-bottom: 40px;
  }
}

@media (max-width: 640px) {
  #servizi .container {
    padding-top: 64px;
    padding-bottom: 64px;
  }

  .servizio-row {
    flex-direction: column;
    align-items: flex-start;
    padding: 24px 0;
    gap: 12px;
  }

  .servizio-left {
    min-width: unset;
  }

  .servizio-name {
    font-size: 28px;
  }

  .servizio-dash {
    width: 16px;
  }

  .servizio-number span:last-child {
    font-size: 12px;
  }

  .servizio-desc {
    text-align: left;
    font-size: 14px;
    padding-left: 32px;
  }

  .servizi-header {
    margin-bottom: 24px;
  }
}

/* ═══════════════════════════════════════════════════════
   METODO
═══════════════════════════════════════════════════════ */
#metodo {
  background: #fff;
  padding: 72px 0;
}

.metodo-header {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 48px;
}

.metodo-subtitle {
  font-family: 'Manrope', sans-serif;
  font-size: 16px;
  color: rgba(17, 17, 17, 0.5);
  line-height: 1.7;
  max-width: 380px;
  text-align: right;
  margin: 0;
}

.metodo-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.metodo-card {
  background: rgb(245, 245, 247);
  border-radius: 16px;
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.card-num {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: rgb(199, 53, 20);
  font-family: 'Manrope', sans-serif;
  background: rgba(123, 80, 173, 0.08);
  border-radius: 100px;
  padding: 4px 10px;
  align-self: flex-start;
}

.card-title {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 20px;
  color: rgb(17, 17, 17);
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.card-desc {
  font-family: 'Manrope', sans-serif;
  font-size: 14px;
  color: rgba(17, 17, 17, 0.55);
  line-height: 1.7;
  margin: 0;
}

@media (max-width: 1024px) {
  #metodo {
    padding: 80px 0;
  }

  .metodo-cards {
    grid-template-columns: repeat(2, 1fr);
  }

  .metodo-header {
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 48px;
  }

  .metodo-subtitle {
    text-align: left;
    max-width: 100%;
  }
}

@media (max-width: 640px) {
  #metodo {
    padding: 64px 0;
  }

  .metodo-cards {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .metodo-card {
    padding: 24px 20px;
  }

  .card-title {
    font-size: 18px;
  }
}

/* ═══════════════════════════════════════════════════════
   TESTIMONIALS
═══════════════════════════════════════════════════════ */
#testimonials {
  background: #fff;
  padding: 64px 0 72px;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.testimonials-slider {
  margin-top: 48px;
}

.testimonials-main {
  display: flex;
  align-items: center;
  gap: 24px;
}

.testimonial-overflow {
  flex: 1;
  overflow: hidden;
}

.testimonial-track {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.testimonial-card {
  flex: 0 0 100%;
  padding: 0 40px 40px;
  background: #fff;
  text-align: center;
}

.testimonial-text {
  font-family: 'Manrope', sans-serif;
  font-size: clamp(22px, 2.8vw, 36px);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.03em;
  color: rgb(17, 17, 17);
  margin-bottom: 40px;
  max-width: 840px;
  margin-left: auto;
  margin-right: auto;
}

.testimonial-byline {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.testimonial-name {
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
  font-size: 15px;
  color: rgb(17, 17, 17);
}

.testimonial-company {
  font-family: 'Manrope', sans-serif;
  font-size: 13px;
  color: rgba(17, 17, 17, 0.45);
}

.testimonial-sep {
  width: 40px;
  height: 1px;
  background: rgba(0, 0, 0, 0.15);
  margin: 28px auto 0;
}

.testimonial-dots-row {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 32px;
}

.testimonial-btn {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1.5px solid rgba(0, 0, 0, 0.15);
  background: none;
  cursor: pointer;
  font-size: 26px;
  line-height: 1;
  color: rgb(17, 17, 17);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.testimonial-btn:hover {
  border-color: rgb(199, 53, 20);
  color: rgb(199, 53, 20);
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.2);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background 0.2s ease, transform 0.2s ease;
}

.dot.active {
  background: rgb(199, 53, 20);
  transform: scale(1.25);
}

@media (max-width: 1024px) {
  .testimonial-card {
    padding: 0 40px 40px;
  }

  .testimonial-text {
    font-size: 20px;
  }

  .testimonial-quote-mark {
    font-size: 72px;
  }
}

@media (max-width: 640px) {
  #testimonials {
    padding: 60px 0;
  }

  .testimonial-card {
    padding: 0 20px 32px;
  }

  .testimonial-text {
    font-size: 17px;
  }

  .testimonial-quote-mark {
    font-size: 56px;
  }
}

/* ═══════════════════════════════════════════════════════
   PRICING
═══════════════════════════════════════════════════════ */
#pricing {
  background: #fff;
  padding: 72px 0;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.pricing-header {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 48px;
}

.pricing-subtitle {
  font-family: 'Manrope', sans-serif;
  font-size: 16px;
  color: rgba(17, 17, 17, 0.5);
  line-height: 1.7;
  max-width: 360px;
  text-align: right;
  margin: 0;
}

.pricing-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: stretch;
}

.pricing-card {
  background: rgb(245, 245, 247);
  border-radius: 20px;
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  outline: 1px solid rgba(0, 0, 0, 0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.pricing-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.pricing-card--hl {
  background: rgb(199, 53, 20);
  outline: none;
}

.pricing-badge {
  display: inline-block;
  align-self: flex-start;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(17, 17, 17, 0.5);
  background: rgba(0, 0, 0, 0.06);
  border-radius: 100px;
  padding: 4px 10px;
  font-family: 'Manrope', sans-serif;
}

.pricing-badge--hl {
  color: rgb(199, 53, 20);
  background: rgba(255, 255, 255, 0.2);
}

.pricing-name {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.02em;
  color: rgb(17, 17, 17);
  margin-bottom: 8px;
}

.pricing-name--hl {
  color: #fff;
}

.pricing-desc {
  font-family: 'Manrope', sans-serif;
  font-size: 13px;
  color: rgba(17, 17, 17, 0.5);
  line-height: 1.6;
  margin: 0;
}

.pricing-desc--hl {
  color: rgba(255, 255, 255, 0.72);
}

.pricing-divider {
  height: 1px;
  background: rgba(0, 0, 0, 0.08);
}

.pricing-divider--hl {
  background: rgba(255, 255, 255, 0.18);
}

.pricing-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.pricing-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-family: 'Manrope', sans-serif;
  font-size: 13px;
  color: rgba(17, 17, 17, 0.65);
  line-height: 1.5;
}

.pricing-features li::before {
  content: '';
  width: 16px;
  height: 16px;
  min-width: 16px;
  border-radius: 50%;
  background: rgba(123, 80, 173, 0.12) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 10 10'%3E%3Cpath d='M2 5l2 2 4-4' stroke='%23c73514' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round' fill='none'/%3E%3C/svg%3E") center/10px no-repeat;
  margin-top: 1px;
}

.pricing-features--hl li {
  color: rgba(255, 255, 255, 0.85);
}

.pricing-features--hl li::before {
  background: rgba(255, 255, 255, 0.22) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 10 10'%3E%3Cpath d='M2 5l2 2 4-4' stroke='%23ffffff' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round' fill='none'/%3E%3C/svg%3E") center/10px no-repeat;
}

.pricing-price {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 28px;
  letter-spacing: -0.03em;
  color: rgb(17, 17, 17);
}

.pricing-price--hl {
  color: #fff;
}

.pricing-cta {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 14px 24px;
  border-radius: 100px;
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
  font-size: 14px;
  border: 1.5px solid rgb(199, 53, 20);
  color: rgb(199, 53, 20);
  transition: background 0.2s ease, color 0.2s ease;
  cursor: pointer;
}

.pricing-cta:hover {
  background: rgb(199, 53, 20);
  color: #fff;
}

.pricing-cta--hl {
  background: #fff;
  border-color: transparent;
  color: rgb(199, 53, 20);
}

.pricing-cta--hl:hover {
  background: rgba(255, 255, 255, 0.88);
}

@media (max-width: 1024px) {
  #pricing {
    padding: 80px 0;
  }

  .pricing-cards {
    grid-template-columns: repeat(2, 1fr);
  }

  .pricing-header {
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 48px;
  }

  .pricing-subtitle {
    text-align: left;
    max-width: 100%;
  }
}

@media (max-width: 640px) {
  #pricing {
    padding: 64px 0;
  }

  .pricing-cards {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .pricing-card {
    padding: 28px 24px;
  }

  .pricing-subtitle {
    font-size: 14px;
  }
}

/* ═══════════════════════════════════════════════════════
   CONTACT
═══════════════════════════════════════════════════════ */
#contact {
  background: #fff;
  padding-bottom: 80px;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.contact-header {
  padding: 80px 0 48px;
}

.contact-sub {
  font-family: 'Manrope', sans-serif;
  font-size: 20px;
  color: rgba(17, 17, 17, 0.6);
  line-height: 1.4;
  max-width: 500px;
  margin-top: 16px;
}

.contact-layout {
  display: flex;
  gap: 48px;
  align-items: flex-start;
}

.contact-left {
  flex: 0 0 auto;
  width: 420px;
  display: flex;
  flex-direction: column;
  gap: 32px;
  padding: 40px 0;
}

.contact-right {
  flex: 1;
  padding: 20px 0;
}

.contact-question {
  font-family: 'Manrope', 'Manrope';
  font-weight: 800;
  font-size: clamp(22px, 3.6vw, 36px);
  letter-spacing: -0.03em;
  line-height: 1.15;
  max-width: 540px;
  margin-bottom: 40px;
}

.cq-w {
  display: inline-block;
}

.cq-orange {
  color: rgb(245, 87, 51);
}

.cq-gray {
  color: rgb(80, 80, 80);
}

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

.contact-link {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Manrope', sans-serif;
  font-weight: 600;
  font-size: 16px;
  color: rgb(199, 53, 20);
  transition: opacity 0.2s ease;
}

.contact-link svg {
  flex-shrink: 0;
}

.contact-link:hover {
  opacity: 0.72;
}

/* Form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-field label {
  font-family: 'Manrope', sans-serif;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: -0.02em;
  color: rgb(17, 17, 17);
}

.form-field input,
.form-field textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1.5px solid rgba(0, 0, 0, 0.12);
  border-radius: 10px;
  font-family: 'Manrope', sans-serif;
  font-size: 15px;
  color: rgb(17, 17, 17);
  background: #fff;
  outline: none;
  transition: border-color 0.2s ease;
  resize: vertical;
}

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: rgba(17, 17, 17, 0.35);
}

.form-field input:focus,
.form-field textarea:focus {
  border-color: rgb(199, 53, 20);
}

.form-submit {
  padding: 16px 36px;
  background: rgb(17, 17, 17);
  color: #fff;
  border: none;
  border-radius: 100px;
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  transition: background 0.2s ease;
  align-self: flex-start;
}

.form-submit:hover {
  background: rgb(199, 53, 20);
}

.form-submit.success {
  background: rgb(34, 197, 94);
}

.form-privacy {
  font-family: 'Manrope', sans-serif;
  font-size: 13px;
  color: rgba(17, 17, 17, 0.45);
  line-height: 1.6;
}

.form-privacy a {
  color: rgb(17, 17, 17);
  text-decoration: underline;
}

@media (max-width: 1024px) {
  .contact-layout {
    flex-direction: column;
  }

  .contact-left {
    width: 100%;
    padding: 0 0 8px;
  }
}

@media (max-width: 640px) {
  #contact {
    padding-bottom: 60px;
  }

  .contact-header {
    padding: 60px 0 32px;
  }

  .contact-question {
    font-size: 20px;
  }

  .contact-sub {
    font-size: 16px;
  }

  .form-submit {
    width: 100%;
    align-self: stretch;
  }
}

/* ═══════════════════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════════════════ */
#footer {
  background: rgb(17, 19, 24);
  border-radius: 10px;
  padding: 55px 30px;
  margin: 0;
}

.footer-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 29px;
}

.footer-main {
  display: flex;
  gap: 48px;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
}

.footer-logo-area {
  max-width: 360px;
}

.footer-logo {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.04em;
  color: #fff;
  display: block;
  margin-bottom: 16px;
}

.footer-tagline {
  font-family: 'Manrope', sans-serif;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.65;
}

.footer-sitemap {
  display: flex;
  gap: 60px;
  flex-wrap: wrap;
}

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

.footer-col-title {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.35);
  margin-bottom: 4px;
}

.footer-col a {
  font-family: 'Manrope', sans-serif;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.65);
  transition: color 0.2s ease;
}

.footer-col a:hover {
  color: #fff;
}

.footer-line {
  height: 1px;
  background: rgba(255, 255, 255, 0.18);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-bottom>span {
  font-family: 'Manrope', sans-serif;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.45);
}

.footer-legal {
  display: flex;
  gap: 24px;
}

.footer-legal a {
  font-family: 'Manrope', sans-serif;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.45);
  transition: color 0.2s ease;
}

.footer-legal a:hover {
  color: #fff;
}

@media (max-width: 1024px) {
  .footer-main {
    flex-direction: column;
  }

  .footer-logo-area {
    max-width: 100%;
  }

  .footer-sitemap {
    gap: 40px;
  }
}

@media (max-width: 640px) {
  #footer {
    padding: 40px 20px;
    border-radius: 0;
  }

  .footer-sitemap {
    flex-direction: column;
    gap: 32px;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ═══════════════════════════════════════════════════════
   SCROLL ANIMATIONS
═══════════════════════════════════════════════════════ */
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

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

/* ═══════════════════════════════════════════════════════
   PAGE LOADER
═══════════════════════════════════════════════════════ */
#pageLoader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgb(17, 19, 24);
  display: flex;
  align-items: center;
  justify-content: center;
  clip-path: inset(0 0 0% 0);
  transition: clip-path 1.1s cubic-bezier(0.76, 0, 0.24, 1);
}

#pageLoader.hide {
  clip-path: inset(0 0 100% 0);
  pointer-events: none;
}

.loader-logo {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: clamp(28px, 5vw, 56px);
  letter-spacing: -0.05em;
  color: #fff;
  animation: loaderIn 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.1s both;
}

.loader-logo span {
  color: rgb(199, 53, 20);
}

@keyframes loaderIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ═══════════════════════════════════════════════════════
   SCROLL PROGRESS BAR
═══════════════════════════════════════════════════════ */
#scrollProgressBar {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 0%;
  background: linear-gradient(90deg, rgb(199, 53, 20), rgb(245, 120, 51));
  z-index: 10001;
  transition: width 0.08s linear;
  border-radius: 0 2px 2px 0;
  pointer-events: none;
}


/* ═══════════════════════════════════════════════════════
   HERO WORD ANIMATION
═══════════════════════════════════════════════════════ */
.hero-word {
  display: inline-block;
  opacity: 0;
  transform: translateY(48px) skewX(-5deg);
  filter: blur(4px);
  transition: opacity 1.15s cubic-bezier(0.16, 1, 0.3, 1),
    transform 1.15s cubic-bezier(0.16, 1, 0.3, 1),
    filter 1.15s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-word--delay {
  transition-delay: 0.18s;
}

.hero-word.show {
  opacity: 1;
  transform: translateY(0) skewX(0);
  filter: blur(0);
}

.hero-tag {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.hero-tag.show {
  opacity: 1;
  transform: translateY(0);
}

/* ═══════════════════════════════════════════════════════
   ANIMATION VARIANTS
═══════════════════════════════════════════════════════ */
.anim-fade-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.anim-fade-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.anim-scale {
  opacity: 0;
  transform: scale(0.93);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.anim-fade-left.visible,
.anim-fade-right.visible,
.anim-scale.visible {
  opacity: 1;
  transform: none;
}

/* ═══════════════════════════════════════════════════════
   SPLIT TEXT — word level
═══════════════════════════════════════════════════════ */
.word-wrap {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
  line-height: inherit;
}

.word-inner {
  display: inline-block;
  opacity: 0;
  transform: translateY(115%);
  transition: opacity 0.75s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.75s cubic-bezier(0.16, 1, 0.3, 1);
}

.word-inner.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Contact: slightly slower reveal */
.section-title .word-inner {
  transform: translateY(120%) skewX(-4deg);
  transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

.section-title .word-inner.visible {
  opacity: 1;
  transform: translateY(0) skewX(0);
}

/* Testimonials card — fade in from below on first view */
.testimonials-main {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.testimonials-main.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ═══════════════════════════════════════════════════════
   HERO NOISE DOT-GRID
═══════════════════════════════════════════════════════ */
.hero-noise {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
  background-size: 28px 28px;
  opacity: 0.6;
}

/* ═══════════════════════════════════════════════════════
   TILT CARD
═══════════════════════════════════════════════════════ */
.tilt-card {
  will-change: transform;
}

/* ═══════════════════════════════════════════════════════
   MAGNETIC ELEMENTS
═══════════════════════════════════════════════════════ */
/* Only block-level elements need this; inline-flex elements (link-btn, nav-cta) already work */
a[data-magnetic]:not(.link-btn):not(.nav-cta):not(.pricing-cta) {
  display: inline-block;
}

button[data-magnetic] {
  display: inline-block;
}

/* ═══════════════════════════════════════════════════════
   FORM SUBMIT SHIMMER
═══════════════════════════════════════════════════════ */
.form-submit {
  position: relative;
  overflow: hidden;
}

.form-submit::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.12), transparent);
  transform: skewX(-20deg);
  transition: left 0.5s ease;
}

.form-submit:hover::after {
  left: 160%;
}


/* ═══════════════════════════════════════════════════════
   TEAM PORTRAIT PHOTOS
═══════════════════════════════════════════════════════ */
.team-photo-wrap {
  width: 100%;
  flex: 1;
  overflow: hidden;
  min-height: 0;
}

.team-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
  filter: grayscale(100%) contrast(1.05);
  transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1),
    filter 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.team-card:hover .team-photo {
  transform: scale(1.06);
  filter: grayscale(0%) contrast(1);
}

/* ═══════════════════════════════════════════════════════
   SERVIZI — CURSOR-FOLLOWING HOVER IMAGE
═══════════════════════════════════════════════════════ */
.servizi-hover-img {
  position: fixed;
  pointer-events: none;
  z-index: 9990;
  opacity: 0;
  left: -999px;
  top: -999px;
  transform: translateX(-50%) translateY(-65%) scale(0.88);
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.servizi-hover-img.show {
  opacity: 1;
  transform: translateX(-50%) translateY(-65%) scale(1);
}

.servizi-hover-img img {
  width: 260px;
  height: 340px;
  object-fit: cover;
  border-radius: 6px;
  display: block;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.08);
}

@media (hover: none) {
  .servizi-hover-img {
    display: none;
  }
}

/* ═══════════════════════════════════════════════════════
   FILM GRAIN OVERLAY (global)
═══════════════════════════════════════════════════════ */
body::after {
  content: '';
  position: fixed;
  inset: -50%;
  width: 200%;
  height: 200%;
  z-index: 9998;
  pointer-events: none;
  opacity: 0.074;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 256px 256px;
  animation: filmGrain 0.6s steps(2) infinite;
}

@keyframes filmGrain {
  0% {
    transform: translate(0, 0);
  }

  25% {
    transform: translate(-4%, 3%);
  }

  50% {
    transform: translate(3%, -4%);
  }

  75% {
    transform: translate(-2%, 5%);
  }

  100% {
    transform: translate(5%, -2%);
  }
}

/* ═══════════════════════════════════════════════════════
   IMAGE TEXTURE OVERLAY (team photos)
═══════════════════════════════════════════════════════ */
.team-photo-wrap {
  position: relative;
}

.team-photo-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  opacity: 0.07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px 180px;
  mix-blend-mode: overlay;
  border-radius: inherit;
}

/* Lenis: prevent default scroll snap conflicts */
html.lenis {
  height: auto;
}

.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}

.lenis.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}