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

html {
  scroll-behavior: smooth;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  background: #f8fbff;
  color: #0f172a;
  line-height: 1.6;
}

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

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

/* =========================
   HEADER
========================= */

.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(14px);
  border-bottom: none;
  box-shadow: none;
}

.navbar {
  max-width: 1540px;
  margin: auto;
  padding: 64px -20px 64px 90px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-size: 25px;
  font-weight: 900;
  letter-spacing: 0.5px;
  color: #111827;
}

.logo span {
  color: #475569;
  font-weight: 400;
}

.nav-links {
  display: flex;
  gap: 42px;
  list-style: none;
  margin-left: 180px;
}

.nav-links a {
  position: relative;
  font-size: 16px;
  font-weight: 800;
  color: #111827;
  padding-bottom: 12px;
  transition: 0.3s ease;
}

.nav-links a.active,
.nav-links a:hover {
  color: #075cff;
}

.nav-links a.active::after,
.nav-links a:hover::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 52px;
  height: 3px;
  background: #075cff;
  border-radius: 999px;
  transform: translateX(-50%);
}

.nav-button {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: #075cff;
  color: #ffffff;
  padding: 16px 24px;
  border-radius: 10px;
  font-weight: 800;
  box-shadow: 0 14px 35px rgba(7, 92, 255, 0.25);
  transition: 0.3s ease;
}

.nav-button:hover {
  transform: translateY(-3px);
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 28px;
  cursor: pointer;
}

/* =========================
   HERO SECTION
========================= */

.hero-new {
  max-width: 1580px;
  margin: 0 auto;
  padding: 105px 90px 90px;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  align-items: center;
  gap: 70px;
  position: relative;
  overflow: visible;
  min-height: 760px;
  align-items: flex-start;
}

.hero-new::before {
  content: "";
  position: absolute;
  left: 25px;
  top: 145px;
  width: 330px;
  height: 330px;
  border: 2px dashed rgba(7, 92, 255, 0.15);
  border-radius: 50%;
  opacity: 0.7;
  pointer-events: none;
}

.hero-new::after {
  content: "";
  position: absolute;
  right: 70px;
  top: 130px;
  width: 430px;
  height: 430px;
  border: 2px dashed rgba(7, 92, 255, 0.15);
  border-radius: 50%;
  opacity: 0.75;
  pointer-events: none;
}

.hero-left,
.hero-right {
  position: relative;
  z-index: 2;
}

.hero-left {
  padding-left: 45px;
  padding-top: 25px;
}

.hero-left h1 {
  font-size: clamp(54px, 5vw, 76px);
  line-height: 1.13;
  font-weight: 900;
  color: #0f172a;
  letter-spacing: -2px;
  margin-bottom: 28px;
  min-height: 320px;
}

.hero-left h1 span {
  color: #075cff;
}

.hero-text {
  max-width: 560px;
  color: #42526e;
  font-size: 19px;
  line-height: 1.8;
  margin-bottom: 34px;
}

.hero-buttons {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-bottom: 38px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 17px 30px;
  border-radius: 12px;
  font-weight: 800;
  font-size: 17px;
  transition: 0.3s ease;
}

.btn.primary {
  background: #075cff;
  color: #ffffff;
  box-shadow: 0 16px 35px rgba(7, 92, 255, 0.28);
}

.btn.secondary {
  background: #ffffff;
  color: #075cff;
  border: 1.5px solid #075cff;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.04);
}

.btn:hover {
  transform: translateY(-4px);
}

.hero-tech p {
  color: #1e293b;
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 14px;
}

.hero-tech-list {
  display: flex;
  gap: 8px;
  flex-wrap: nowrap;
  align-items: center;
}

.hero-tech-list span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #ffffff;
  padding: 8px 10px;
  border-radius: 9px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.05);
  font-size: 12px;
  font-weight: 800;
  color: #0f172a;
  white-space: nowrap;
}

.hero-tech-list img {
  width: 18px;
  height: 18px;
  object-fit: contain;
  border-radius: 4px;
}

/* =========================
   HERO RIGHT - SOLO CODICE
========================= */

.hero-right {
  min-height: 620px;
  position: relative;
  transform: translateY(-110px);
}

.design-window {
  position: absolute;
  top: 55px;
  right: 80px;
  width: 690px;
  min-height: 10;
  background: #ffffff;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid #dbeafe;
  box-shadow: 0 35px 90px rgba(15, 23, 42, 0.16);
  transform: perspective(1200px) rotateY(-25deg) rotateZ(5deg);
  transform-style: preserve-3d;
  z-index: 2;
}

.design-window-top {
  height: 48px;
  background: #101827;
  display: flex;
  align-items: center;
  gap: 9px;
  padding-left: 20px;
}

.design-window-top span {
  width: 13px;
  height: 13px;
  border-radius: 50%;
}

.design-window-top span:nth-child(1) {
  background: #ff5f57;
}

.design-window-top span:nth-child(2) {
  background: #ffbd2e;
}

.design-window-top span:nth-child(3) {
  background: #28c840;
}

.design-window-body {
  padding: 30px 42px 8px;
  background: linear-gradient(135deg, #ffffff, #f3f8ff);
}

.design-window-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 26px;
}

.design-window-nav strong {
  font-size: 28px;
  color: #0f172a;
}

.design-window-nav nav {
  display: flex;
  gap: 24px;
}

.design-window-nav a {
  font-size: 13px;
  font-weight: 800;
  color: #111827;
}

.design-window-main {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 32px;
  align-items: center;
}

.design-window-text h3 {
  font-size: 40px;
  line-height: 1.08;
  color: #0f172a;
  margin-bottom: 18px;
}

.design-window-text h3 span {
  color: #075cff;
}

.design-window-text p {
  color: #475569;
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 22px;
}

.design-window-text a {
  display: inline-flex;
  background: #101827;
  color: white;
  border-radius: 8px;
  padding: 14px 18px;
  font-weight: 800;
  font-size: 14px;
}

.design-preview {
  background: transparent;
  border-radius: 16px;
  padding: 0;
  min-height: 245px;
  border: none;
  box-shadow: none;
  overflow: hidden;
}

/* MODIFICA: alza solo l'immagine dello studio/laptop */
.design-preview.image-preview {
  width: 108%;
  transform: translate(-12px, -8px);
}

.image-preview img {
  width: 100%;
  height: 245px;
  object-fit: cover;
  object-position: center top;
  border-radius: 16px;
}

.design-window-info {
  margin-top: 0;
  margin-left: 0;
}

.design-window-info h4 {
  font-size: 16px;
  font-weight: 900;
  color: #0f172a;
  margin-bottom: 5px;
}

.design-window-info p {
  font-size: 12px;
  line-height: 1.5;
  color: #64748b;
  max-width: 270px;
}

.preview-browser-bar {
  height: 22px;
  border-radius: 999px;
  background: linear-gradient(90deg, #dbeafe, #eff6ff);
  margin-bottom: 18px;
}

.preview-hero {
  height: 110px;
  border-radius: 14px;
  background: linear-gradient(135deg, #dbeafe, #f8fbff);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px;
  margin-bottom: 16px;
}

.preview-text-lines {
  width: 55%;
}

.preview-text-lines span {
  display: block;
  height: 9px;
  border-radius: 999px;
  background: #075cff;
  margin-bottom: 9px;
}

.preview-text-lines span:nth-child(1) {
  width: 90%;
}

.preview-text-lines span:nth-child(2) {
  width: 65%;
  background: #94a3b8;
}

.preview-text-lines span:nth-child(3) {
  width: 45%;
  background: #cbd5e1;
}

.preview-device {
  width: 72px;
  height: 92px;
  border-radius: 10px;
  border: 5px solid #1e293b;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.preview-device-screen {
  width: 70%;
}

.preview-device-screen span {
  display: block;
  height: 6px;
  border-radius: 999px;
  background: #075cff;
  margin-bottom: 6px;
}

.preview-device-screen span:nth-child(2) {
  width: 70%;
  background: #94a3b8;
}

.preview-device-screen span:nth-child(3) {
  width: 85%;
  background: #cbd5e1;
}

.preview-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 9px;
}

.preview-cards span {
  height: 42px;
  border-radius: 10px;
  background: #f1f5f9;
  border: 1px solid #dbeafe;
}


.design-window-features {
  grid-column: 2;
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
  margin-top: 0;
  width: 100%;
  transform: translate(0px, -12px);
  text-align: center;
  gap: 24px;
}

.design-window-features span {
  width: 34px;
  height: 34px;
  margin: 0 0 6px 0;
  border-radius: 50%;
  border: 1px solid #dbeafe;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #111827;
  font-weight: 700;
  font-size: 12px;
  background: #ffffff;
  line-height: 1;
}


.design-window-features p {
  font-size: 10.5px;
  font-weight: 800;
  color: #334155;
  line-height: 1.25;
  margin: 0;
  text-align: center;
}

.design-window-features div {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}


/* Foto profilo nella hero */

.profile-circle {
  position: absolute;
  top: 130px;
  right: -70px;
  width: 185px;
  height: 185px;
  border-radius: 50%;
  padding: 8px;
  background: #ffffff;
  box-shadow: 0 22px 60px rgba(15, 23, 42, 0.18);
  z-index: 9;
}

.profile-circle img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
}

/* =========================
   CODE CARD COLORATA
========================= */

.code-card-new {
  position: absolute;
  right: -150px;
  bottom: 80px;
  width: 360px;
  background: linear-gradient(135deg, #081224, #0f1b33);
  color: #dbeafe;
  border-radius: 22px;
  padding: 18px 20px 22px;
  box-shadow: 0 25px 65px rgba(15, 23, 42, 0.28);
  z-index: 8;
  transform: perspective(1200px) rotateY(-25deg) rotateZ(-1deg);
  transform-style: preserve-3d;
  border: 1px solid rgba(255, 255, 255, 0.05);
  overflow: hidden;

  transform: perspective(1200px) rotateY(-22deg) rotateZ(5deg);
}

.code-card-new::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 22px;
  pointer-events: none;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.06),
    rgba(255, 255, 255, 0.01)
  );
}

.code-top-dots {
  position: relative;
  z-index: 2;
  display: flex;
  gap: 8px;
  margin-bottom: 13px;
  padding-left: 2px;
}

.code-top-dots .dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  display: inline-block;
}

.code-top-dots .red {
  background: #ff5f57;
}

.code-top-dots .yellow {
  background: #febc2e;
}

.code-top-dots .green {
  background: #28c840;
}

.code-content {
  position: relative;
  z-index: 2;
  font-family: "Courier New", monospace;
  font-size: 12.5px;
  line-height: 1.25;
}

.code-line {
  display: grid;
  grid-template-columns: 22px 1fr;
  column-gap: 12px;
  align-items: center;
  margin: 0;
  padding: 0;
  white-space: nowrap;
}

.line-number {
  width: 22px;
  text-align: right;
  color: rgba(255, 255, 255, 0.38);
  font-size: 11.5px;
  user-select: none;
  display: block;
}

.code-code {
  display: block;
  white-space: nowrap;
  padding-left: 0;
}

/* Rientri progressivi come nella foto campione */
.code-line:nth-child(1) .code-code {
  padding-left: 0;
}

.code-line:nth-child(2) .code-code {
  padding-left: 14px;
}

.code-line:nth-child(3) .code-code {
  padding-left: 28px;
}

.code-line:nth-child(4) .code-code,
.code-line:nth-child(5) .code-code,
.code-line:nth-child(6) .code-code,
.code-line:nth-child(7) .code-code {
  padding-left: 42px;
}

.code-line:nth-child(8) .code-code {
  padding-left: 28px;
}

.code-line:nth-child(9) .code-code {
  padding-left: 14px;
}

.code-line:nth-child(10) .code-code {
  padding-left: 0;
}

/* Colori syntax */
.code-tag {
  color: #7dd3fc;
}

.code-attr {
  color: #eab308;
}

.code-equals {
  color: #cbd5e1;
}

.code-string {
  color: #a3e635;
}

.code-text {
  color: #f8fafc;
}

/* =========================
   SMALL FLOATING CARDS
========================= */

.small-floating-card {
  position: absolute;
  bottom: 45px;
  background: #ffffff;
  border-radius: 14px;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.12);
  z-index: 6;
  transform: rotate(3deg);
}

.small-floating-card span {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1.5px solid #075cff;
  color: #075cff;
  display: grid;
  place-items: center;
  font-weight: 900;
}

.small-floating-card p {
  font-size: 14px;
  color: #0f172a;
  line-height: 1.4;
}

.small-card-one {
  right: 35px;
  bottom: -95px;
  transform: perspective(900px) rotateY(-18deg) rotateZ(10deg) scale(0.88) !important;
  transform-style: preserve-3d;
  transform-origin: center;
  z-index: 7;
}

.small-card-two {
  right: -130px;
  bottom: -95px;
  transform: perspective(900px) rotateY(-18deg) rotateZ(10deg) scale(0.88) !important;
  transform-style: preserve-3d;
  transform-origin: center;
  z-index: 6;
}

/* =========================
   SEZIONE CHI SONO CON MAPPA
========================= */

.about-map-section {
  width: 100%;
  background: #f1f7ff;
  padding: 90px 60px;
}

.about-map-container {
  max-width: 1500px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 90px;
}

.about-map-image {
  width: 100%;
  border-radius: 34px;
  overflow: hidden;
}

.about-map-image img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.about-map-text {
  max-width: 650px;
}

.about-map-text span {
  display: inline-block;
  color: #075cff;
  font-size: 15px;
  font-weight: 900;
  letter-spacing: 3px;
  margin-bottom: 24px;
}

.about-map-text h2 {
  font-size: clamp(42px, 4vw, 58px);
  line-height: 1.12;
  color: #050816;
  margin-bottom: 28px;
  letter-spacing: -1.8px;
  max-width: 780px;
}

.about-map-text p {
  font-size: 22px;
  line-height: 1.75;
  color: #475569;
  max-width: 620px;
}

/* RESPONSIVE */

@media (max-width: 1100px) {
  .about-map-section {
    padding: 90px 40px;
  }

  .about-map-container {
    grid-template-columns: 1fr;
    gap: 50px;
  }

  .about-map-text {
    max-width: 100%;
    text-align: center;
  }

  .about-map-text p {
    margin: 0 auto;
  }
}

@media (max-width: 700px) {
  .about-map-section {
    padding: 70px 22px;
  }

  .about-map-text h2 {
    font-size: 38px;
  }

  .about-map-text p {
    font-size: 18px;
  }
}


/* =========================
   SEZIONI GENERALI
========================= */

.section {
  max-width: 1180px;
  margin: auto;
  padding: 70px 24px;
}

.section-label {
  text-transform: uppercase;
  font-size: 14px;
  font-weight: 900;
  color: #075cff;
  letter-spacing: 2px;
  margin-bottom: 18px;
}

.center {
  text-align: center;
}

.section h2 {
  text-align: center;
  font-size: clamp(30px, 4vw, 44px);
  margin-bottom: 18px;
}

.section-description {
  text-align: center;
  color: #64748b;
  margin: 0 auto 35px;
  max-width: 760px;
}

/* =========================
   SERVIZI
========================= */

.image-services {
  margin-top: 46px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px;
}

.service-image-card {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid #e2e8f0;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.06);
  transition: 0.35s ease;
}

.service-image-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 28px 70px rgba(15, 23, 42, 0.13);
  border-color: #bfd4ff;
}

.service-image-box {
  height: 220px;
  overflow: hidden;
}

.service-image-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}
.service-card-content {
  padding: 26px 24px 28px;
  text-align: left;
}

.service-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 28px;
  background: #eaf2ff;
  color: #075cff;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  margin-bottom: 16px;
}

.service-card-content h3 {
  font-size: 23px;
  margin-bottom: 12px;
  color: #0f172a;
}

.service-card-content p {
  color: #64748b;
  font-size: 16px;
  margin-bottom: 20px;
}

.service-card-content a {
  color: #075cff;
  font-weight: 800;
  font-size: 15px;
}

/* =========================
   COMPETENZE
========================= */

.skills-section {
  background: white;
  border-radius: 32px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 20px 70px rgba(15, 23, 42, 0.05);
  margin-top: 40px;
  margin-bottom: 40px;
}

.carousel-wrapper {
  position: relative;
  margin-top: 34px;
}

.skills-carousel {
  display: flex;
  gap: 22px;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 12px 10px 26px;
  scrollbar-width: none;
}

.skills-carousel::-webkit-scrollbar {
  display: none;
}

.skill-card {
  min-width: 210px;
  background: #f8fbff;
  border: 1px solid #e2e8f0;
  border-radius: 22px;
  padding: 28px 22px;
  text-align: center;
  transition: 0.3s;
}

.skill-card:hover {
  transform: translateY(-6px);
  background: #ffffff;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
}

.skill-logo {
  width: 82px;
  height: 82px;
  object-fit: contain;
  margin: 0 auto 18px;
  border-radius: 18px;
}

.skill-card h3 {
  font-size: 20px;
  margin-bottom: 8px;
}

.skill-card p {
  color: #64748b;
  font-size: 15px;
}

.carousel-btn {
  position: absolute;
  top: 43%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: none;
  background: #075cff;
  color: white;
  font-size: 32px;
  cursor: pointer;
  z-index: 10;
  box-shadow: 0 12px 30px rgba(7, 92, 255, 0.25);
}

.carousel-btn.left {
  left: -18px;
}

.carousel-btn.right {
  right: -18px;
}

/* =========================
   PROGETTI
========================= */

.projects-grid {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.project-card {
  background: white;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.06);
  transition: 0.3s;
}

.project-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 25px 70px rgba(15, 23, 42, 0.13);
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.project-screenshot {
  padding: 0;
  overflow: hidden;
  background: #eef5ff;
}

.project-screenshot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.ticket {
  background: linear-gradient(135deg, #020617, #4c1d95, #0f766e);
}

.restaurant {
  background: linear-gradient(135deg, #1c1917, #92400e, #f59e0b);
}

.project-content {
  padding: 24px;
}

.project-content h3 {
  font-size: 22px;
  margin-bottom: 10px;
}

.project-content p {
  color: #64748b;
  margin-bottom: 16px;
}

.project-tag {
  display: inline-block;
  background: #eaf2ff;
  color: #075cff;
  padding: 7px 12px;
  border-radius: 30px;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 18px;
}

.project-link {
  display: block;
  color: #075cff;
  font-weight: 800;
}

/* =========================
   PROCESSO
========================= */

.process-section {
  padding-top: 80px;
  padding-bottom: 70px;
}

.process-timeline {
  margin-top: 50px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 18px;
  flex-wrap: nowrap;
}

.timeline-step {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  width: 100%;
  max-width: 320px;
}

.timeline-icon {
  width: 78px;
  height: 78px;
  min-width: 78px;
  border-radius: 50%;
  background: #eef4ff;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #1d5cff;
  box-shadow: 0 8px 24px rgba(29, 92, 255, 0.08);
}

.timeline-icon svg {
  width: 34px;
  height: 34px;
}

.timeline-content {
  padding-top: 6px;
}

.timeline-number {
  font-size: 34px;
  font-weight: 800;
  color: #1d5cff;
  line-height: 1;
}

.timeline-content h3 {
  margin-top: 8px;
  margin-bottom: 8px;
  font-size: 20px;
  color: #111827;
}

.timeline-content p {
  margin: 0;
  font-size: 16px;
  color: #5f6f8a;
  line-height: 1.6;
  max-width: 220px;
}

.timeline-line {
  flex: 1;
  min-width: 70px;
  max-width: 160px;
  height: 2px;
  margin-top: 39px;
  position: relative;
  background-image: linear-gradient(to right, #8fd6ff 50%, transparent 50%);
  background-size: 10px 2px;
  background-repeat: repeat-x;
}

.timeline-line::after {
  content: "";
  position: absolute;
  right: -2px;
  top: -4px;
  width: 10px;
  height: 10px;
  background: #29b6ff;
  border-radius: 50%;
}

/* =========================
   CTA
========================= */

.cta-image-section {
  max-width: 1180px;
  margin: 50px auto 80px;
  padding: 0 24px;
}

.cta-image-wrapper {
  position: relative;
  width: 100%;
  border-radius: 30px;
  overflow: hidden;
  border: 1.5px solid #cfe0ff;
  box-shadow: 0 14px 35px rgba(15, 23, 42, 0.06);
  background: #ffffff;
}

.cta-image-wrapper img {
  width: 100%;
  height: auto;
  border-radius: 30px;
}

.cta-real-button {
  position: absolute;
  left: 50%;
  top: 70%;
  transform: translate(-50%, -50%);
  width: 295px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #075cff;
  color: #ffffff;
  border-radius: 14px;
  font-size: 18px;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 12px 30px rgba(7, 92, 255, 0.35);
  z-index: 10;
  transition: 0.3s ease;
}

.cta-real-button:hover {
  background: #004ee6;
  transform: translate(-50%, -52%);
}

/* =========================
   FOOTER
========================= */

.footer {
  background: white;
  border-top: 1px solid #e2e8f0;
  padding: 60px 24px 24px;
}

.footer-grid {
  max-width: 1180px;
  margin: auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
}

.footer-grid ul {
  list-style: none;
  padding: 0;
  margin: 0;
}


.footer h3 {
  font-size: 22px;
  margin-bottom: 12px;
}

.footer h3 span {
  font-weight: 400;
}

.footer h4 {
  margin-bottom: 12px;
}

.footer p,
.footer a {
  color: #64748b;
  display: block;
  margin-bottom: 8px;
}

.footer-bottom {
  max-width: 1180px;
  margin: 40px auto 0;
  padding-top: 24px;
  border-top: 1px solid #e2e8f0;
  color: #64748b;
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 1200px) {
  .navbar {
    padding: 20px 30px;
  }

  .hero-new {
    grid-template-columns: 1fr;
    padding: 75px 30px;
  }

  .hero-left {
    padding-left: 0;
  }

 .hero-right {
  min-height: 500px;
  position: relative;
  transform: translateY(-110px);
}

 .design-window {
  position: absolute;
  top: 55px;
  right: 80px;
  width: 690px;
  min-height: 360px;
  background: #ffffff;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid #dbeafe;
  box-shadow: 0 35px 90px rgba(15, 23, 42, 0.16);
  transform: perspective(1200px) rotateY(-25deg) rotateZ(5deg);
  transform-style: preserve-3d;
  z-index: 2;
}

  .code-card-new {
    right: 20px;
    bottom: 85px;
    transform: perspective(1200px) rotateY(-25deg) rotateZ(-1deg);
  }

  .small-card-one {
  right: 95px;
  bottom: -85px;
  transform: perspective(1200px) rotateY(-25deg) rotateZ(5deg);
  transform-style: preserve-3d;
  z-index: 7;
}

.small-card-two {
  right: -55px;
  bottom: -82px;
  transform: perspective(1200px) rotateY(-25deg) rotateZ(5deg);
  transform-style: preserve-3d;
  z-index: 6;
}

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

  .service-image-box {
    height: 220px;
  }
}

@media (max-width: 980px) {
  .process-timeline {
    flex-direction: column;
    align-items: center;
    gap: 26px;
  }

  .timeline-step {
    max-width: 500px;
  }

  .timeline-line {
    width: 2px;
    min-width: 2px;
    max-width: 2px;
    height: 55px;
    margin-top: 0;
    background-image: linear-gradient(to bottom, #8fd6ff 50%, transparent 50%);
    background-size: 2px 10px;
    background-repeat: repeat-y;
  }

  .timeline-line::after {
    left: -4px;
    right: auto;
    top: auto;
    bottom: -2px;
  }
}

@media (max-width: 900px) {
  .navbar {
    padding: 18px 24px;
  }

  .nav-links,
  .nav-button {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

  .nav-links.active {
    display: flex;
    position: absolute;
    top: 75px;
    left: 0;
    width: 100%;
    background: white;
    flex-direction: column;
    padding: 24px;
    border-bottom: 1px solid #e2e8f0;
  }

  .projects-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .carousel-btn {
    display: none;
  }
}

@media (max-width: 700px) {
  .hero-new {
    padding: 55px 20px;
    min-height: auto;
  }

  .hero-left {
    padding-left: 0;
    padding-top: 0;
  }

  .hero-left h1 {
    font-size: 45px;
    letter-spacing: -1px;
  }

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

  .hero-buttons {
    flex-direction: column;
    align-items: stretch;
  }

  .btn {
    width: 100%;
  }

  .hero-right {
    display: none;
  }

  .image-services {
    grid-template-columns: 1fr;
  }

  .service-image-box {
    height: 230px;
  }

  .service-card-content {
    text-align: center;
  }

  .timeline-step {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .timeline-content p {
    max-width: 100%;
  }

  .cta-image-section {
    padding: 0 18px;
    margin: 40px auto 60px;
  }

  .cta-image-wrapper,
  .cta-image-wrapper img {
    border-radius: 20px;
  }

  .cta-real-button {
    width: 170px;
    height: 46px;
    font-size: 14px;
    top: 64%;
  }

  .section {
    padding: 55px 18px;
  }

  .skill-card {
    min-width: 180px;
  }
}

/* =========================
   LANGUAGE SWITCHER
========================= */

.lang-switch {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: 8px;
  white-space: nowrap;
}

.lang-switch a {
  padding-bottom: 0;
  color: #64748b;
  font-weight: 800;
}

.lang-switch a::after {
  display: none !important;
}

.lang-switch .active-lang {
  color: #075cff;
}

.lang-switch span {
  color: #94a3b8;
}

/* Su mobile mantiene IT | EN affiancati */
@media (max-width: 900px) {
  .lang-switch {
    margin-left: 0;
  }
}





/* =========================
   MOBILE - HERO COMPLETA
========================= */

@media (max-width: 700px) {

  .hero-new {
    grid-template-columns: 1fr;
    padding: 45px 18px 35px;
    gap: 30px;
  }

  .hero-left {
    padding: 0;
  }

  .hero-left h1 {
    font-size: 45px;
    min-height: auto;
  }

  .hero-right {
    display: block;
    position: relative;
    width: 100%;
    min-height: 430px;
    transform: none;
    overflow: hidden;
  }

  .design-window {
    position: relative;
    top: auto;
    right: auto;
    width: 100%;
    min-height: auto;
    margin: 0 auto;
    transform: none;
  }

  .design-window-body {
    padding: 22px;
  }

  .design-window-main {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .design-preview.image-preview {
    width: 100%;
    transform: none;
  }

  .profile-circle {
    width: 90px;
    height: 90px;
    top: 45px;
    right: 10px;
  }

  .code-card-new {
    width: 220px;
    right: 5px;
    bottom: 10px;
    transform: none;
  }

  .small-floating-card {
    display: none;
  }

  .design-window-features {
    grid-column: 1;
    justify-content: center;
    flex-wrap: wrap;
  }
}