/* ── Cose non esprimibili con solo Tailwind ── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Plus Jakarta Sans", sans-serif;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
.font-display {
  font-family: "Familjen Grotesk", sans-serif;
}

img {
  display: block;
  max-width: 100%;
}

a {
  text-decoration: none;
}

/* CSS variables (usate nei gradienti e nei bg inline) */
:root {
  --teal: #00bfb0;
  --teal-dark: #009e91;
  --teal-light: #e6faf8;
  --orange: #f5622d;
  --orange-light: #fff0eb;
  --violet: #5e44d4;
  --violet-light: #eeebfb;
  --ink: #0a0c12;
  --ink2: #1e2130;
  --body: #454b63;
  --muted: #8b91a8;
  --bg: #f5f6fa;
  --border: #e2e5ef;
  --shadow-sm: 0 2px 8px rgba(10, 12, 18, 0.06);
  --shadow-md: 0 8px 32px rgba(10, 12, 18, 0.1);
  --shadow-lg: 0 20px 60px rgba(10, 12, 18, 0.13);
}

/* Clamp font sizes */
.hero-title {
  font-size: clamp(2.4rem, 4.8vw, 3.9rem);
}

.s-title-clamp {
  font-size: clamp(2rem, 3.8vw, 2.8rem);
}

.cta-h2 {
  font-size: clamp(2rem, 4vw, 3rem);
}

.problems-h2 {
  font-size: clamp(1.7rem, 3.2vw, 2.4rem);
}

/* Hero underline accent */
.line3 {
  position: relative;
  display: inline-block;
}

.line3::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 4px;
  width: 100%;
  height: 6px;
  background: var(--orange);
  border-radius: 3px;
  opacity: 0.35;
  z-index: -1;
}

/* Pulse dot */
@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.4;
  }
}

.pulse-dot {
  animation: pulse 2s infinite;
}

/* Hero radial bg */
.hero::before {
  content: "";
  position: absolute;
  right: -120px;
  top: -80px;
  width: 700px;
  height: 700px;
  border-radius: 50%;
  background: radial-gradient(
    ellipse at center,
    rgba(0, 191, 176, 0.1) 0%,
    transparent 70%
  );
  pointer-events: none;
}

/* Problems bg pattern */
.problems::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.02'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

/* Why visual radial */
.why-visual::before {
  content: "";
  position: absolute;
  top: -60px;
  right: -60px;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 191, 176, 0.18), transparent 70%);
}

/* CTA band pseudo-elements */
.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse at 30% 50%,
    rgba(0, 191, 176, 0.15),
    transparent 55%
  );
}

.cta-band::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse at 80% 20%,
    rgba(94, 68, 212, 0.15),
    transparent 50%
  );
}

/* Process connector line */
.process-steps::after {
  content: "";
  position: absolute;
  top: 30px;
  left: 12.5%;
  right: 12.5%;
  height: 2px;
  background: linear-gradient(90deg, var(--teal), var(--violet));
  opacity: 0.18;
  z-index: 0;
}

/* Step hover – emoji white */
.step:hover .step-circle {
  background: var(--teal);
  border-color: var(--teal);
  box-shadow: 0 8px 24px rgba(0, 191, 176, 0.3);
  transform: scale(1.08);
}

.step:hover .step-emoji {
  filter: brightness(10);
}

/* Scroll reveal */
.fade {
  opacity: 0;
  transform: translateY(26px);
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
}

.fade.in {
  opacity: 1;
  transform: none;
}

.d1 {
  transition-delay: 0.08s;
}

.d2 {
  transition-delay: 0.16s;
}

.d3 {
  transition-delay: 0.24s;
}

.d4 {
  transition-delay: 0.32s;
}

/* Textarea resize */
textarea {
  resize: vertical;
}

/* Mobile menu when open */
#mob-menu.open {
  display: flex;
}

/* Responsive overrides */
@media (max-width: 960px) {
  .hero-inner,
  .why-grid,
  .contact-grid {
    grid-template-columns: 1fr !important;
  }

  .svc-grid,
  .proj-grid {
    grid-template-columns: 1fr 1fr !important;
  }

  .footer-inner {
    grid-template-columns: 1fr 1fr !important;
  }

  .nav-links-desktop {
    display: none !important;
  }

  #mob-btn {
    display: block !important;
  }

  .process-steps::after {
    display: none;
  }
}

@media (max-width: 640px) {
  .svc-grid,
  .proj-grid,
  .process-steps {
    grid-template-columns: 1fr !important;
  }

  .hero-stats {
    flex-wrap: wrap;
  }

  .hero-stat {
    border-right: none !important;
    border-bottom: 1px solid var(--border);
  }

  .hero-stat:last-child {
    border: none !important;
  }

  .frow {
    grid-template-columns: 1fr !important;
  }

  .footer-inner {
    grid-template-columns: 1fr !important;
  }
}
