  :root {
    /* Light theme — pure royal-blue duo (#0037e0 deep + #0075F2 vibrant) */
    --bg: #ffffff;
    --bg-2: #f0f5ff;
    --surface: rgba(0, 55, 224, 0.05);
    --surface-strong: rgba(0, 55, 224, 0.10);
    --border: rgba(0, 55, 224, 0.15);
    --text: #0a1638;
    --text-muted: #4a5780;

    /* Brand colors */
    --primary: #0037e0;            /* deep royal blue */
    --primary-2: #0075F2;           /* vibrant blue */

    --accent: #ffd23f;
    --whatsapp: #25D366;

    /* Smooth monochromatic gradients between the two royal blues */
    --grad-1: linear-gradient(135deg, #0037e0 0%, #0075F2 100%);
    --grad-2: linear-gradient(90deg, #0037e0 0%, #0075F2 100%);
    --grad-3: linear-gradient(135deg, #0075F2 0%, #0037e0 100%);
    --grad-4: linear-gradient(45deg, #0075F2 0%, #0037e0 100%);
    --grad-5: linear-gradient(180deg, #0037e0 0%, #0075F2 100%);
    --grad-wa: linear-gradient(135deg, #25D366 0%, #128c4e 100%);

    --radius-sm: 14px;
    --radius-md: 22px;
    --radius-lg: 32px;
    --radius-xl: 44px;
    --shadow-soft: 0 20px 50px -22px rgba(0, 55, 224, 0.30);
    --shadow-strong: 0 28px 70px -22px rgba(0, 117, 242, 0.35);
    --shadow-wa: 0 16px 40px -12px rgba(37, 211, 102, 0.40);
  }

  * { box-sizing: border-box; margin: 0; padding: 0; }
  html { scroll-behavior: smooth; }
  /* Offset for in-page anchors so the floating fixed nav doesn't cover the section heading */
  #solve, #testimonialsSection, #contact { scroll-margin-top: 110px; }
  @media (max-width: 720px) {
    #solve, #testimonialsSection, #contact { scroll-margin-top: 90px; }
  }
  body {
    font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
  }
  a { color: inherit; text-decoration: none; }
  button { font-family: inherit; cursor: pointer; border: none; }

  /* ==================== ANIMATED BACKGROUND ==================== */
  .bg-blobs {
    position: fixed;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
  }
  .blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    opacity: 0.55;
    animation: floatBlob 18s ease-in-out infinite;
  }
  .blob.b1 { width: 420px; height: 420px; background: #0037e0; top: 5%; left: -180px; opacity: 0.18; }
  .blob.b2 { width: 380px; height: 380px; background: #0075F2; top: 30%; right: -160px; animation-delay: -6s; opacity: 0.15; }
  .blob.b3 { width: 520px; height: 520px; background: #0037e0; bottom: -240px; left: 20%; animation-delay: -12s; opacity: 0.13; }
  .blob.b4 { width: 320px; height: 320px; background: #0075F2; top: 70%; left: 5%; animation-delay: -3s; opacity: 0.10; }
  @keyframes floatBlob {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(60px, -40px) scale(1.1); }
    66% { transform: translate(-40px, 60px) scale(0.95); }
  }
  @media (max-width: 540px) {
    .blob { filter: blur(70px); opacity: 0.4; }
    .blob.b1 { width: 320px; height: 320px; }
    .blob.b2 { width: 280px; height: 280px; }
    .blob.b3 { width: 380px; height: 380px; }
    .blob.b4 { width: 240px; height: 240px; opacity: 0.25; }
  }

  /* ==================== NAV (glassmorphism floating) ==================== */
  .nav {
    position: fixed;
    top: 18px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
    display: flex;
    align-items: center;
    gap: 28px;
    padding: 12px 18px 12px 22px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px) saturate(1.1);
    -webkit-backdrop-filter: blur(20px) saturate(1.1);
    border: 1px solid rgba(15, 23, 60, 0.08);
    border-radius: 999px;
    box-shadow: 0 12px 30px -10px rgba(15, 23, 60, 0.15);
    animation: navIn 0.8s cubic-bezier(.2,.9,.3,1.3) both;
    width: calc(100% - 32px);
    max-width: 760px;
    justify-content: space-between;
  }
  @keyframes navIn {
    from { opacity: 0; transform: translateX(-50%) translateY(-30px); }
  }
  .nav__brand {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text);
    text-decoration: none;
  }
  .nav__brand img {
    height: 40px;
    width: auto;
    display: block;
    transition: transform 0.4s cubic-bezier(.2,.9,.3,1.3);
  }
  .nav__brand:hover img { transform: scale(1.04); }
  .nav__links { display: flex; gap: 6px; }
  .nav__link {
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.9rem;
    padding: 8px 14px;
    border-radius: 999px;
    transition: all 0.25s ease;
  }
  .nav__link:hover { color: var(--text); background: var(--surface); }
  .nav__cta {
    background: var(--grad-1);
    color: white;
    padding: 9px 18px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.88rem;
    box-shadow: 0 8px 24px -6px rgba(0, 117, 242, 0.6);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
  }
  .nav__cta:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -6px rgba(0, 117, 242, 0.8); }

  .nav__burger {
    display: none;
    width: 42px; height: 42px;
    border-radius: 50%;
    background: var(--surface);
    border: 1px solid var(--border);
    padding: 0;
    position: relative;
    flex-shrink: 0;
    transition: background 0.25s ease;
  }
  .nav__burger:hover { background: var(--surface-strong); }
  .nav__burger span {
    position: absolute;
    left: 50%; top: 50%;
    width: 18px; height: 2px;
    background: var(--text);
    border-radius: 2px;
    transform: translate(-50%, -50%);
    transition: transform 0.3s ease, opacity 0.2s ease;
  }
  .nav__burger span:nth-child(1) { transform: translate(-50%, calc(-50% - 6px)); }
  .nav__burger span:nth-child(3) { transform: translate(-50%, calc(-50% + 6px)); }
  .nav__burger.open span:nth-child(1) { transform: translate(-50%, -50%) rotate(45deg); }
  .nav__burger.open span:nth-child(2) { opacity: 0; }
  .nav__burger.open span:nth-child(3) { transform: translate(-50%, -50%) rotate(-45deg); }

  .mobile-menu {
    display: none;
    position: fixed;
    top: 80px; left: 16px; right: 16px;
    z-index: 99;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(15, 23, 60, 0.10);
    border-radius: 26px;
    padding: 14px;
    flex-direction: column;
    gap: 6px;
    box-shadow: 0 20px 50px -10px rgba(15, 23, 60, 0.18);
    opacity: 0;
    transform: translateY(-12px);
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.3s cubic-bezier(.2,.9,.3,1.3);
  }
  .mobile-menu.open {
    opacity: 1; transform: translateY(0); pointer-events: auto;
  }
  .mobile-menu a {
    color: var(--text);
    padding: 14px 18px;
    border-radius: 14px;
    font-weight: 500;
    font-size: 1rem;
    transition: background 0.2s ease;
  }
  .mobile-menu a:hover { background: var(--surface-strong); }
  .mobile-menu .mobile-cta {
    background: var(--grad-1);
    color: white;
    text-align: center;
    font-weight: 700;
    margin-top: 4px;
  }

  @media (max-width: 820px) {
    .nav { gap: 14px; padding: 10px 12px 10px 18px; }
    .nav__links { display: none; }
    .nav__cta { display: none; }
    .nav__burger { display: block; }
    .mobile-menu { display: flex; }
  }

  /* ==================== STAGE (split layout) ==================== */
  .stage {
    min-height: 100vh;
    padding: 120px 0 60px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: stretch;
    gap: 0;
  }
  .stage__divider {
    grid-column: 1; grid-row: 1;
    pointer-events: none;
    position: relative;
  }

  /* ===== LEFT (hero) ===== */
  .left {
    padding: 30px 56px 0 56px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    text-align: center;
    position: relative;
    background: transparent;
  }
  .left .hero { margin-top: -10px; }
  .left::after {
    content: '';
    position: absolute;
    top: 12%; bottom: 12%;
    right: 0;
    width: 1px;
    background: linear-gradient(180deg, transparent, var(--border) 30%, var(--border) 70%, transparent);
  }
  .hero {
    max-width: 560px;
    width: 100%;
  }
  .hero__title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(2.4rem, 5vw, 4.4rem);
    line-height: 1.02;
    letter-spacing: -0.035em;
    font-weight: 700;
    margin-bottom: 26px;
  }
  .hero__title .word {
    display: inline-block;
    animation: wordIn 0.7s cubic-bezier(.2,.9,.3,1.3) both;
  }
  .hero__title .grad {
    background: var(--grad-1);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    background-size: 200% 200%;
    animation: gradMove 6s ease infinite, wordIn 0.7s cubic-bezier(.2,.9,.3,1.3) both;
  }
  @keyframes wordIn {
    from { opacity: 0; transform: translateY(40px) rotate(-3deg); }
  }
  @keyframes gradMove {
    0%   { background-position: 0% 50%; }
    25%  { background-position: 50% 100%; }
    50%  { background-position: 100% 50%; }
    75%  { background-position: 50% 0%; }
    100% { background-position: 0% 50%; }
  }

  /* All gradient-bearing brand elements get an animated, flowing color shift
     so the multi-stop gradients feel alive rather than static.
     The position orbits around the element (instead of just left↔right)
     for a smooth, continuous flow. Avatars stay static intentionally. */
  .nav__cta,
  .feature__icon,
  .offers__list li .check,
  .pagination button.active,
  .submit-btn,
  .block-title .grad,
  .section-head h2 .grad,
  .cta-note strong,
  .hero__title .grad {
    background-size: 260% 260% !important;
    animation: gradMove 7s linear infinite !important;
  }
  /* Different gradient assignments per feature card for variety */

  .hero__sub {
    color: var(--text-muted);
    font-size: 1.02rem;
    line-height: 1.65;
    max-width: 480px;
    margin: 0 auto 32px;
    animation: fadeUp 0.8s 0.3s ease both;
  }
  .hero__sub strong { color: var(--text); font-weight: 600; }

  /* ===== Offers list ===== */
  .offers {
    margin: 0 auto 32px;
    max-width: 460px;
    animation: fadeUp 0.8s 0.4s ease both;
  }
  .offers__label {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    background: var(--grad-1);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 12px;
  }
  .offers__list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
  }
  .offers__list li {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 7px 14px 7px 9px;
    font-size: 0.86rem;
    font-weight: 500;
    color: var(--text);
    backdrop-filter: blur(8px);
    transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
  }
  .offers__list li:hover {
    transform: translateY(-2px);
    border-color: rgba(0, 117, 242, 0.45);
    background: var(--surface-strong);
  }
  .offers__list li .check {
    width: 18px; height: 18px;
    border-radius: 50%;
    background: var(--grad-1);
    display: grid; place-items: center;
    flex-shrink: 0;
    box-shadow: 0 3px 8px -2px rgba(0, 117, 242, 0.30);
  }
  .offers__list li .check svg { width: 10px; height: 10px; color: white; }
  @media (max-width: 540px) {
    .offers { margin-bottom: 26px; }
    .offers__list li { font-size: 0.8rem; padding: 6px 12px 6px 8px; }
    .offers__list li .check { width: 16px; height: 16px; }
  }

  .cta-stack {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
    animation: fadeUp 0.8s 0.45s ease both;
  }
  .cta-row {
    display: flex;
    gap: 10px;
    width: 100%;
    max-width: 480px;
  }
  .cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 12px 20px;
    border-radius: 22px;
    font-weight: 700;
    font-size: 0.96rem;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    flex: 1;
    min-width: 0;
    position: relative;
    overflow: hidden;
    white-space: nowrap;
    text-align: center;
  }
  .cta__text {
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1.15;
    min-width: 0;
  }
  .cta__label {
    font-size: 0.96rem;
    font-weight: 700;
    letter-spacing: -0.005em;
  }
  .cta__hint {
    font-size: 0.72rem;
    font-weight: 500;
    opacity: 0.82;
    letter-spacing: 0.01em;
    margin-top: 1px;
  }
  @media (max-width: 540px) {
    .cta-row { flex-direction: column; gap: 12px; }
  }
  .cta--whatsapp {
    background: var(--grad-wa);
    color: white;
    box-shadow: var(--shadow-wa);
  }
  .cta--whatsapp::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,0.25) 50%, transparent 70%);
    transform: translateX(-100%);
    transition: transform 0.7s ease;
  }
  .cta--whatsapp:hover { transform: translateY(-3px); box-shadow: 0 26px 60px -12px rgba(37, 211, 102, 0.7); }
  .cta--whatsapp:hover::after { transform: translateX(100%); }
  .cta--email {
    background: #ffffff;
    color: var(--primary);
    border: 1.5px solid var(--primary);
    position: relative;
    transition: transform 0.25s ease, box-shadow 0.25s ease, color 0.25s ease, background 0.45s ease, border-color 0.25s ease;
    background-size: 260% 260%;
  }
  .cta--email:hover {
    transform: translateY(-3px);
    background: var(--grad-1);
    color: #ffffff;
    border-color: transparent;
    box-shadow: 0 14px 30px -10px rgba(0, 117, 242, 0.45);
    animation: gradMove 7s linear infinite;
  }
  .cta svg { width: 22px; height: 22px; flex-shrink: 0; }

  .cta-note {
    color: var(--text-muted);
    font-size: 0.86rem;
    margin: 4px 0;
    font-style: italic;
  }
  .cta-note strong {
    background: var(--grad-1);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-weight: 700;
    font-style: normal;
  }

  .scroll-down {
    margin-top: 28px;
    width: 44px; height: 44px;
    border-radius: 50%;
    background: var(--surface);
    border: 1px solid var(--border);
    display: grid; place-items: center;
    color: var(--text);
    animation: bounce 2.2s ease infinite, fadeUp 0.8s 1s ease both;
    transition: background 0.25s ease, border-color 0.25s ease;
  }
  .scroll-down:hover { background: var(--surface-strong); border-color: rgba(0, 117, 242, 0.5); }
  .scroll-down svg { width: 22px; height: 22px; }
  @keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(8px); }
  }

  @keyframes fadeUp {
    from { opacity: 0; transform: translateY(28px); }
  }

  /* ===== RIGHT ===== */
  .right {
    padding: 0 56px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 0;
  }
  .right-block {
    display: flex;
    flex-direction: column;
    min-height: 0;
    flex: 0 1 auto;
    width: 100%;
  }
  .block-title {
    font-family: 'Space Grotesk', sans-serif;
    text-align: center;
    font-weight: 700;
    font-size: clamp(1.25rem, 1.8vw, 1.7rem);
    letter-spacing: -0.015em;
    margin-bottom: 18px;
  }
  /* Desktop: abbassa solo la scritta "Alcuni siti che abbiamo realizzato" senza spostare le card sotto */
  @media (min-width: 961px) {
    .right-block .block-title {
      transform: translateY(14px);
    }
  }
  .block-title .grad {
    background: var(--grad-1);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }

  /* ===== Carousel (shared) ===== */
  .carousel-stage {
    flex: 0 0 auto;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 420px;
    max-height: 60vh;
    padding: 0 14px;
  }
  .carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px; height: 44px;
    border-radius: 50%;
    background: #ffffff;
    border: 1px solid var(--border);
    color: var(--primary);
    display: grid;
    place-items: center;
    z-index: 4;
    box-shadow: 0 6px 16px -6px rgba(15, 23, 60, 0.2);
    transition: background 0.25s ease, transform 0.2s ease, border-color 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
  }
  /* Hover solo su device con vero pointer (no touch) → evita lo stato "stuck" su mobile */
  @media (hover: hover) and (pointer: fine) {
    .carousel-arrow:hover {
      background: var(--primary);
      border-color: var(--primary);
      color: #ffffff;
      transform: translateY(-50%) scale(1.08);
      box-shadow: 0 12px 24px -6px rgba(0, 55, 224, 0.45);
    }
  }
  /* Feedback al tap su touch: blu brevemente solo mentre è premuto */
  .carousel-arrow:active {
    background: var(--primary);
    border-color: var(--primary);
    color: #ffffff;
    box-shadow: 0 12px 24px -6px rgba(0, 55, 224, 0.45);
  }
  .carousel-arrow.prev { left: -10px; }
  .carousel-arrow.next { right: -10px; }
  .carousel-arrow svg { width: 22px; height: 22px; }

  /* Pagination dots — tap target 28x28 con indicatore visivo 8x8 → 28x8 in stato attivo */
  .pagination {
    display: flex;
    gap: 4px;
    justify-content: center;
    align-items: center;
    margin-top: 14px;
  }
  .pagination button {
    position: relative;
    width: 28px;
    height: 28px;
    padding: 0;
    background: transparent;
    border: 0;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }
  .pagination button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: rgba(15, 23, 60, 0.22);
    transform: translate(-50%, -50%);
    transition: width 0.4s cubic-bezier(.4, 0, .2, 1),
                background 0.25s ease;
  }
  .pagination button:hover::before { background: rgba(15, 23, 60, 0.4); }
  .pagination button.active::before {
    width: 26px;
    background: var(--grad-1);
    background-size: 220% 220%;
    animation: gradMove 6s linear infinite;
  }

  /* ===== Portfolio (coverflow) ===== */
  .portfolio-track {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 30px 4px;
    /* Soft fade on the sides: side cards dissolve gradually instead of being chopped */
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, black 7%, black 93%, transparent 100%);
            mask-image: linear-gradient(90deg, transparent 0%, black 7%, black 93%, transparent 100%);
  }
  @media (max-width: 720px) {
    /* Disable side fade on mobile so the active card is fully visible */
    .portfolio-track {
      -webkit-mask-image: none;
              mask-image: none;
    }
  }
  .portfolio-card {
    position: absolute;
    height: 88%;
    aspect-ratio: 16/9;
    max-height: 280px;
    background: #ffffff;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: 0 18px 44px -14px rgba(15, 23, 60, 0.28);
    border: 1px solid var(--border);
    transition: transform 0.55s cubic-bezier(.2,.9,.3,1.3), opacity 0.4s ease, filter 0.4s ease, box-shadow 0.4s ease;
    will-change: transform;
  }
  .portfolio-card.pos-active {
    box-shadow: 0 28px 60px -18px rgba(0, 117, 242, 0.32);
  }
  .portfolio-card svg,
  .portfolio-card img { width: 100%; height: 100%; display: block; object-fit: cover; object-position: center top; }
  .portfolio-card.pos-active { cursor: pointer; }
  .portfolio-card.pos-active::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 60%, rgba(10, 22, 56, 0.45));
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
  }
  .portfolio-card.pos-active:hover::after { opacity: 1; }
  .portfolio-card .card-zoom-hint {
    position: absolute;
    bottom: 12px; right: 12px;
    width: 36px; height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    display: grid; place-items: center;
    color: var(--primary);
    opacity: 0;
    transform: scale(0.85) translateY(6px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: none;
    z-index: 2;
    box-shadow: 0 8px 18px -6px rgba(0, 0, 0, 0.35);
  }
  .portfolio-card.pos-active:hover .card-zoom-hint {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
  .portfolio-card .card-zoom-hint svg { width: 18px; height: 18px; }

  /* ===== LIGHTBOX ===== */
  .lightbox {
    position: fixed;
    inset: 0;
    background: rgba(8, 14, 32, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 200;
    padding: 10px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0s linear 0.3s;
  }
  .lightbox.open {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.35s ease, visibility 0s linear 0s;
  }
  .lightbox__inner {
    position: relative;
    max-width: min(760px, 96vw);
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    transform: scale(0.92) translateY(20px);
    transition: transform 0.4s cubic-bezier(.2,.9,.3,1.2);
  }
  .lightbox.open .lightbox__inner {
    transform: scale(1) translateY(0);
  }
  .lightbox__img {
    width: auto;
    max-width: 100%;
    max-height: 88vh;
    object-fit: contain;
    border-radius: var(--radius-md);
    box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.6);
    background: #ffffff;
  }
  .lightbox__meta {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
    justify-content: center;
  }
  .lightbox__caption {
    color: white;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    text-align: center;
    letter-spacing: -0.01em;
  }
  .lightbox__link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: white;
    background: var(--grad-1);
    background-size: 220% 220%;
    animation: gradMove 7s linear infinite;
    padding: 12px 24px;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    box-shadow: 0 12px 30px -10px rgba(0, 55, 224, 0.55);
    transition: transform 0.25s ease;
  }
  .lightbox__link:hover { transform: translateY(-3px); }
  .lightbox__link svg { width: 16px; height: 16px; transition: transform 0.2s ease; }
  .lightbox__link:hover svg { transform: translate(2px, -2px); }
  .lightbox__close {
    position: absolute;
    top: 24px; right: 24px;
    width: 44px; height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    cursor: pointer;
    display: grid; place-items: center;
    transition: background 0.2s ease, transform 0.2s ease;
    z-index: 1;
  }
  .lightbox__close:hover { background: rgba(255, 255, 255, 0.2); transform: rotate(90deg); }
  .lightbox__close svg { width: 22px; height: 22px; }
  .lightbox__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px; height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    cursor: pointer;
    display: grid; place-items: center;
    transition: background 0.2s ease, transform 0.2s ease;
  }
  .lightbox__nav:hover { background: rgba(255, 255, 255, 0.22); }
  .lightbox__nav.prev { left: 28px; }
  .lightbox__nav.next { right: 28px; }
  .lightbox__nav svg { width: 22px; height: 22px; }
  @media (max-width: 540px) {
    .lightbox { padding: 16px; }
    .lightbox__inner { gap: 14px; }
    .lightbox__caption { font-size: 1.15rem; }
    .lightbox__close { top: 12px; right: 12px; width: 38px; height: 38px; }
    .lightbox__nav { width: 38px; height: 38px; }
    .lightbox__nav.prev { left: 8px; }
    .lightbox__nav.next { right: 8px; }
    .lightbox__img { max-height: 60vh; }
  }
  body.lightbox-open { overflow: hidden; }
  .portfolio-card.pos-prev {
    transform: translateX(-58%) scale(0.78);
    opacity: 0.7;
    filter: brightness(0.55);
    z-index: 1;
    cursor: pointer;
  }
  .portfolio-card.pos-active {
    transform: translateX(0) scale(1);
    opacity: 1;
    z-index: 2;
  }
  .portfolio-card.pos-next {
    transform: translateX(58%) scale(0.78);
    opacity: 0.7;
    filter: brightness(0.55);
    z-index: 1;
    cursor: pointer;
  }
  .portfolio-card.pos-hidden {
    transform: translateX(0) scale(0.55);
    opacity: 0;
    pointer-events: none;
    z-index: 0;
  }
  .portfolio-card .ptag {
    position: absolute;
    top: 14px; left: 14px;
    background: rgba(11, 11, 26, 0.7);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 600;
    z-index: 2;
  }
  .portfolio-card .pmeta {
    position: absolute;
    bottom: 14px; left: 14px; right: 14px;
    background: linear-gradient(180deg, transparent, rgba(11, 11, 26, 0.92));
    color: white;
    padding: 36px 12px 12px;
    border-radius: 14px;
  }
  .portfolio-card .pmeta h4 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.05rem;
    margin-bottom: 2px;
  }
  .portfolio-card .pmeta p {
    color: rgba(255,255,255,0.75);
    font-size: 0.78rem;
  }

  /* ===== Testimonial card ===== */
  .testi-stage {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 0;
    perspective: 1100px;
  }
  .testi-card {
    width: 86%;
    max-width: 520px;
    background:
      linear-gradient(135deg, rgba(0, 55, 224, 0.06), rgba(0, 117, 242, 0.04)),
      #ffffff;
    border: 1px solid rgba(15, 23, 60, 0.10);
    border-radius: var(--radius-lg);
    padding: 32px 32px 28px;
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
    transform: perspective(1100px) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg));
    transition: transform 0.5s cubic-bezier(.2, .9, .3, 1.1), border-color 0.4s ease;
    box-shadow: 0 24px 50px -20px rgba(0, 55, 224, 0.20);
  }
  .testi-card:hover { border-color: rgba(0, 117, 242, 0.35); }

  /* Glow following the mouse */
  .testi-card__glow {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(
      circle at var(--mx, 50%) var(--my, 50%),
      rgba(0, 117, 242, 0.22),
      transparent 55%
    );
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 0;
  }
  .testi-card:hover .testi-card__glow { opacity: 1; }

  /* Subtle gradient orb that drifts inside the card */
  .testi-card__orb {
    position: absolute;
    width: 220px; height: 220px;
    background: var(--grad-1);
    filter: blur(60px);
    opacity: 0.18;
    border-radius: 50%;
    top: -60px; right: -60px;
    pointer-events: none;
    animation: orbDrift 12s ease-in-out infinite;
    z-index: 0;
  }
  @keyframes orbDrift {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-40px, 40px) scale(1.15); opacity: 0.25; }
  }

  .testi-card__content {
    position: relative;
    z-index: 1;
    transition: opacity 0.4s cubic-bezier(.2, .9, .3, 1), transform 0.5s cubic-bezier(.2, .9, .3, 1.1);
  }
  .testi-card__content.is-out-left { transform: translateX(-32px); opacity: 0; }
  .testi-card__content.is-out-right { transform: translateX(32px); opacity: 0; }
  .testi-card__content.is-snapped { transition: none; }

  /* Quote icon */
  .quote-icon {
    width: 38px; height: 38px;
    color: var(--primary);
    margin-bottom: 14px;
    filter: drop-shadow(0 6px 16px rgba(0, 55, 224, 0.30));
    animation: quoteFloat 4s ease-in-out infinite;
  }
  @keyframes quoteFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-3px) rotate(-3deg); }
  }

  .testi-card .text {
    font-size: 1.05rem;
    line-height: 1.65;
    color: var(--text);
    margin-bottom: 20px;
    font-weight: 400;
  }
  .testi-card .stars {
    display: flex;
    gap: 5px;
    margin-bottom: 20px;
  }
  .testi-card .stars svg {
    width: 18px; height: 18px;
    fill: var(--accent);
    filter: drop-shadow(0 0 8px rgba(255, 224, 102, 0.5));
    opacity: 0;
    transform: scale(0.4) rotate(-30deg);
    transition: opacity 0.45s ease, transform 0.5s cubic-bezier(.2, 1.4, .3, 1.4);
  }
  .testi-card .stars.show svg {
    opacity: 1;
    transform: scale(1) rotate(0);
  }
  .testi-card .stars.show svg:nth-child(1) { transition-delay: 0.05s; }
  .testi-card .stars.show svg:nth-child(2) { transition-delay: 0.13s; }
  .testi-card .stars.show svg:nth-child(3) { transition-delay: 0.21s; }
  .testi-card .stars.show svg:nth-child(4) { transition-delay: 0.29s; }
  .testi-card .stars.show svg:nth-child(5) { transition-delay: 0.37s; }

  .testi-card .author {
    display: flex;
    align-items: center;
    gap: 14px;
  }
  .testi-card .author__avatar {
    width: 48px; height: 48px;
    border-radius: 50%;
    background: var(--avatar-grad, var(--grad-1));
    display: grid; place-items: center;
    color: white;
    font-weight: 700;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1rem;
    flex-shrink: 0;
    box-shadow: 0 8px 20px -6px rgba(0, 0, 0, 0.5);
    transition: background 0.5s ease;
    position: relative;
  }
  .testi-card .author__avatar::after {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    background: var(--avatar-grad, var(--grad-1));
    opacity: 0.4;
    filter: blur(8px);
    z-index: -1;
  }
  .testi-card .author__name { font-weight: 700; font-size: 1rem; }
  .testi-card .author__role { color: var(--text-muted); font-size: 0.86rem; }

  /* Progress bar (auto-rotate countdown) */
  .testi-card__progress {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 3px;
    background: rgba(255, 255, 255, 0.05);
    overflow: hidden;
    z-index: 1;
  }
  .testi-card__progress::after {
    content: '';
    display: block;
    height: 100%;
    width: 0%;
    background: var(--grad-1);
    background-size: 200% 100%;
    animation: gradMove 4s ease infinite;
  }
  .testi-card__progress.running::after {
    animation: progressFill 6.5s linear forwards, gradMove 4s ease infinite;
  }
  @keyframes progressFill {
    from { width: 0%; }
    to { width: 100%; }
  }

  /* ==================== RESPONSIVE STAGE ==================== */
  @media (max-width: 1100px) {
    .left { padding: 0 32px; }
    .right { padding: 0 32px; }
  }
  @media (max-width: 960px) {
    .stage {
      grid-template-columns: 1fr;
      padding: 110px 0 40px;
      gap: 56px;
    }
    .left { padding: 0 24px; }
    .left::after { display: none; }
    .right {
      padding: 0 24px;
    }
    .right-block { min-height: 380px; }
    .testi-stage { min-height: 280px; }
  }
  @media (max-width: 540px) {
    .stage { padding: 110px 0 32px; gap: 44px; }
    .left, .right { padding: 0 18px; }
    .hero__title { font-size: 2.6rem; }
    .cta { padding: 15px 22px; font-size: 0.98rem; }
    .testi-card { padding: 24px 22px; }
    .testi-card .text { font-size: 0.95rem; }
    /* Portfolio cards on mobile: only the active card is visible, sized to fill the full available width.
       Arrows are hidden — navigation happens via swipe gestures. */
    .portfolio-card {
      height: 100%;
      width: 100%;
      max-width: none;
      max-height: none;
    }
    .portfolio-card.pos-prev,
    .portfolio-card.pos-next {
      opacity: 0;
      pointer-events: none;
      transform: translateX(0) scale(0.92);
    }
    .portfolio-track {
      -webkit-mask-image: none;
              mask-image: none;
      padding: 0;
      touch-action: pan-y;
    }
    /* Frecce sotto la card (non sovrapposte) — solo per la carosella portfolio */
    #portfolio .carousel-arrow {
      display: grid;
      top: auto;
      bottom: -56px;
      transform: none;
      width: 42px;
      height: 42px;
    }
    /* Su mobile niente hover persistente (override del transform:translateY del desktop) */
    #portfolio .carousel-arrow:active {
      transform: scale(0.94);
    }
    #portfolio .carousel-arrow.prev { left: calc(50% - 60px); right: auto; }
    #portfolio .carousel-arrow.next { right: calc(50% - 60px); left: auto; }
    .carousel-stage {
      height: auto;
      aspect-ratio: 16 / 9;
      padding: 0;
      margin-bottom: 64px;
      overflow: visible;
    }
    .right-block { min-height: 0; }
    /* Niente pagination dots su mobile per il portfolio (le frecce bastano) */
    #portfolio .pagination { display: none; }
    .testi-stage { min-height: 260px; }
    .testimonials-section .carousel-arrow { width: 38px; height: 38px; }
    .testimonials-section .carousel-arrow svg { width: 18px; height: 18px; }
  }

  /* ==================== TESTIMONIALS SECTION ==================== */
  .testimonials-section {
    padding: 56px 24px 36px;
    text-align: center;
    position: relative;
    overflow: hidden;
  }
  /* Decorative background blob behind the section */
  .testimonials-section::before {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    width: 760px; height: 360px;
    background: radial-gradient(ellipse at center, rgba(0, 55, 224, 0.18), transparent 60%);
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 0;
  }
  .testimonials-section > * { position: relative; z-index: 1; }

  .testimonials-section .block-title {
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    margin-bottom: 26px;
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.8s ease, transform 0.8s cubic-bezier(.2,.9,.3,1.1);
  }
  .testimonials-section.in .block-title { opacity: 1; transform: translateY(0); }

  .testimonials-section .testi-stage {
    max-width: 760px;
    margin: 0 auto;
    min-height: 380px;
    height: 380px;
    padding: 0 70px;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.9s 0.15s ease, transform 0.9s 0.15s cubic-bezier(.2,.9,.3,1.1);
  }
  .testimonials-section.in .testi-stage { opacity: 1; transform: translateY(0); }

  /* Card a dimensione fissa: il contenuto si adatta dentro una box stabile,
     così recensioni di lunghezza diversa non fanno saltare il layout. */
  .testimonials-section .testi-card {
    width: 100%;
    max-width: 620px;
    text-align: left;
    height: 340px;
    display: flex;
    flex-direction: column;
  }
  .testimonials-section .testi-card__content {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
  }
  .testimonials-section .testi-card .text {
    font-size: 1.12rem;
    flex: 1;
    overflow: hidden;
    /* Massimo 5 righe, tronca con ellissi se proprio una recensione fosse molto lunga */
    display: -webkit-box;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
    line-clamp: 5;
  }
  .testimonials-section .testi-card .stars { margin-top: 14px; }
  .testimonials-section .testi-card .author { margin-top: 14px; }
  .testimonials-section .pagination {
    margin-top: 26px;
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.8s 0.3s ease, transform 0.8s 0.3s ease;
  }
  .testimonials-section.in .pagination { opacity: 1; transform: translateY(0); }

  /* Distanced arrows for the testimonials carousel */
  .testimonials-section .carousel-arrow.prev { left: 0; }
  .testimonials-section .carousel-arrow.next { right: 0; }

  @media (max-width: 720px) {
    .testimonials-section .testi-stage { padding: 0 50px; }
  }
  @media (max-width: 540px) {
    .testimonials-section { padding: 36px 18px 22px; }
    .testimonials-section .testi-stage { min-height: 380px; height: 380px; padding: 0 38px; }
    .testimonials-section .testi-card { height: 340px; }
    .testimonials-section .testi-card .text { font-size: 1rem; -webkit-line-clamp: 6; line-clamp: 6; }
    .testimonials-section::before { width: 100%; height: 260px; }
  }

  /* ==================== SECTIONS BELOW ==================== */
  section { padding: 70px 0; position: relative; }
  @media (max-width: 720px) { section { padding: 50px 0; } }
  @media (max-width: 540px) { section { padding: 40px 0; } }

  .wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
  @media (max-width: 540px) { .wrap { padding: 0 18px; } }

  .section-head { text-align: center; margin-bottom: 36px; }
  @media (max-width: 540px) { .section-head { margin-bottom: 26px; } }
  .eyebrow {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 6px 14px;
    color: var(--text-muted);
    margin-bottom: 12px;
  }
  .section-head h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(2rem, 4vw, 3.2rem);
    letter-spacing: -0.03em;
    line-height: 1.05;
    margin-bottom: 10px;
    font-weight: 700;
  }
  .section-head h2 .grad {
    background: var(--grad-1);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }
  .section-head p {
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
    font-size: 1.05rem;
  }

  /* Features */
  .features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
    max-width: 980px;
    margin: 0 auto;
  }
  .feature {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: 0 8px 24px -12px rgba(15, 23, 60, 0.18);
    transition: transform 0.35s cubic-bezier(.2,.9,.3,1.3), border-color 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
  }
  .feature:hover {
    box-shadow: 0 24px 50px -16px rgba(0, 55, 224, 0.25);
  }
  .feature::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--grad-1);
    opacity: 0;
    transition: opacity 0.3s ease;
  }
  .feature:hover { transform: translateY(-8px); border-color: transparent; }
  .feature:hover::before { opacity: 0.08; }
  .feature__icon {
    width: 56px; height: 56px;
    border-radius: 18px;
    display: grid; place-items: center;
    margin-bottom: 20px;
    background: var(--grad-1);
    box-shadow: 0 12px 30px -6px rgba(0, 117, 242, 0.45);
    position: relative; z-index: 1;
    transition: transform 0.3s ease;
  }
  .feature:hover .feature__icon { transform: rotate(-8deg) scale(1.1); }
  .feature__icon svg { width: 26px; height: 26px; color: white; }
  .feature h4 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.25rem;
    margin-bottom: 10px;
    position: relative; z-index: 1;
    font-weight: 700;
  }
  .feature p { color: var(--text-muted); position: relative; z-index: 1; }
  @media (max-width: 860px) {
    .features { grid-template-columns: 1fr; }
  }
  @media (max-width: 540px) {
    /* Horizontal layout on mobile: icon on the left, title + description stacked on the right.
       Saves the empty vertical space that used to sit next to each icon. */
    .feature {
      padding: 22px;
      border-radius: var(--radius-md);
      display: grid;
      grid-template-columns: auto 1fr;
      column-gap: 16px;
      row-gap: 6px;
      align-items: start;
    }
    .feature__icon {
      width: 48px; height: 48px;
      border-radius: 14px;
      margin-bottom: 0;
      grid-row: 1 / span 2;
      align-self: start;
    }
    .feature h4 {
      font-size: 1.08rem;
      grid-column: 2;
      margin-bottom: 0;
      align-self: end;
    }
    .feature p {
      grid-column: 2;
      align-self: start;
      font-size: 0.95rem;
      line-height: 1.5;
    }
  }

  /* Contact section */
  .contact-card {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: 0 30px 60px -24px rgba(0, 55, 224, 0.20);
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    box-shadow: var(--shadow-soft);
  }
  .contact__info {
    padding: 48px;
    background: var(--grad-1);
    background-size: 220% 220%;
    animation: gradMove 9s ease-in-out infinite;
    position: relative;
    overflow: hidden;
    color: white;
  }
  .contact__info p, .contact__info .perk { color: rgba(255, 255, 255, 0.92); }
  .contact__info::before {
    content: '';
    position: absolute;
    bottom: -100px; left: -50px;
    width: 280px; height: 280px;
    background: var(--accent);
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.3;
  }
  .contact__info-inner { position: relative; z-index: 1; }
  .contact__info h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.9rem;
    line-height: 1.1;
    margin-bottom: 16px;
    font-weight: 700;
  }
  .contact__info p { color: rgba(244, 244, 255, 0.85); margin-bottom: 28px; }
  .contact__perks { display: flex; flex-direction: column; gap: 12px; margin-bottom: 30px; }
  .perk { display: flex; align-items: center; gap: 12px; font-weight: 500; }
  .perk__check {
    width: 26px; height: 26px;
    border-radius: 50%;
    background: var(--accent);
    display: grid; place-items: center;
    flex-shrink: 0;
  }
  .perk__check svg { width: 12px; height: 12px; color: #1a0f00; }

  .call-card {
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.35);
    backdrop-filter: blur(8px);
    border-radius: var(--radius-md);
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 14px;
    color: white;
    text-decoration: none;
    transition: transform 0.25s ease, background 0.25s ease;
  }
  .call-card:hover { transform: translateY(-3px); background: rgba(255, 255, 255, 0.28); }
  .call-card .call-card__lbl { color: rgba(255, 255, 255, 0.8); }
  .call-card--wa { margin-top: 10px; background: rgba(37, 211, 102, 0.96); border-color: rgba(255, 255, 255, 0.45); }
  .call-card--wa:hover { background: rgba(37, 211, 102, 1); }
  .call-card--wa .call-card__icon { background: #ffffff; animation: waPing 2.4s ease-in-out infinite; }
  .call-card--wa .call-card__icon svg { color: #128c4e; }
  @keyframes waPing {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.06); }
  }
  .call-card__icon {
    width: 44px; height: 44px;
    border-radius: 14px;
    background: var(--grad-1);
    display: grid; place-items: center;
    flex-shrink: 0;
    animation: ringRing 2.5s ease-in-out infinite;
  }
  @keyframes ringRing {
    0%, 100% { transform: rotate(0deg); }
    10%, 30% { transform: rotate(-15deg); }
    20%, 40% { transform: rotate(15deg); }
    50% { transform: rotate(0deg); }
  }
  .call-card__icon svg { width: 20px; height: 20px; color: white; }
  .call-card__lbl { font-size: 0.76rem; color: var(--text-muted); }
  .call-card__num { font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 1.18rem; }

  .contact__form {
    padding: 48px;
    display: flex;
    flex-direction: column;
    gap: 16px;
  }
  .field { display: flex; flex-direction: column; gap: 8px; }
  .field label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    letter-spacing: 0.02em;
  }
  .field input, .field textarea, .field select {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 14px 16px;
    color: var(--text);
    font-family: inherit;
    font-size: 0.98rem;
    transition: border-color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
  }
  .field input::placeholder, .field textarea::placeholder { color: var(--text-muted); }
  .field input:focus, .field textarea:focus, .field select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(0, 55, 224, 0.12);
  }
  .field textarea { min-height: 100px; resize: vertical; }
  .field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

  .submit-btn {
    background: var(--grad-1);
    color: white;
    border-radius: 999px;
    padding: 15px 26px;
    font-weight: 700;
    font-size: 1rem;
    box-shadow: var(--shadow-soft);
    transition: transform 0.25s ease, box-shadow 0.25s ease, opacity 0.25s ease;
    background-size: 200% 200%;
    animation: gradMove 5s ease infinite;
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    margin-top: 4px;
    position: relative;
  }
  .submit-btn:hover:not(:disabled) { transform: translateY(-3px); box-shadow: var(--shadow-strong); }
  .submit-btn:disabled { cursor: not-allowed; opacity: 0.85; transform: none; }
  .submit-btn svg { width: 18px; height: 18px; transition: transform 0.2s ease; }
  .submit-btn:hover:not(:disabled) .submit-btn__arrow { transform: translateX(4px); }
  .submit-btn__spinner { display: none; }
  .submit-btn__spinner circle { transform-origin: center; animation: spinnerRotate 0.9s linear infinite; }
  @keyframes spinnerRotate { to { transform: rotate(360deg); } }
  /* Loading state: hide arrow, show spinner */
  .submit-btn.is-loading .submit-btn__arrow { display: none; }
  .submit-btn.is-loading .submit-btn__spinner { display: block; }

  /* Inline field error messages */
  .field-error {
    display: none;
    color: #b91c1c;
    font-size: 0.82rem;
    font-weight: 500;
    margin-top: -2px;
    line-height: 1.35;
  }
  .field-error.show { display: block; animation: fadeUp 0.25s ease both; }
  .field-error--privacy { margin-top: -8px; padding-left: 28px; }

  .field input.invalid,
  .field textarea.invalid,
  .field select.invalid {
    border-color: rgba(220, 38, 38, 0.6);
    background: rgba(220, 38, 38, 0.03);
  }
  .field input.invalid:focus,
  .field textarea.invalid:focus,
  .field select.invalid:focus {
    border-color: #dc2626;
    box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.12);
  }

  /* Inline error banner (network failure, server error) */
  .form-error {
    display: none;
    background: linear-gradient(135deg, rgba(220, 38, 38, 0.10), rgba(239, 68, 68, 0.06));
    border: 1px solid rgba(220, 38, 38, 0.4);
    border-radius: var(--radius-md);
    padding: 14px 16px;
    color: #b91c1c;
    font-weight: 500;
    align-items: center;
    gap: 12px;
    line-height: 1.45;
  }
  .form-error svg { width: 22px; height: 22px; flex-shrink: 0; color: #dc2626; }
  .form-error.show { display: flex; animation: fadeUp 0.4s ease both; }

  /* Success card — replaces the form when submission succeeds */
  .form-success-card {
    padding: 48px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 16px;
    animation: fadeUp 0.55s cubic-bezier(.2,.9,.3,1.2) both;
  }
  .form-success-card[hidden] { display: none; }
  .form-success-card__icon {
    width: 72px; height: 72px;
    border-radius: 50%;
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    display: grid; place-items: center;
    color: #ffffff;
    box-shadow: 0 18px 40px -12px rgba(34, 197, 94, 0.5);
    animation: successPop 0.6s cubic-bezier(.2,.9,.3,1.5) 0.1s both;
  }
  .form-success-card__icon svg { width: 32px; height: 32px; }
  @keyframes successPop {
    0%   { transform: scale(0); }
    60%  { transform: scale(1.15); }
    100% { transform: scale(1); }
  }
  .form-success-card h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.6rem;
    letter-spacing: -0.02em;
    font-weight: 700;
    color: var(--text);
    margin: 0;
  }
  .form-success-card p {
    color: var(--text-muted);
    max-width: 420px;
    font-size: 0.98rem;
    line-height: 1.55;
    margin: 0;
  }
  .form-success-card__cta-row {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    max-width: 360px;
    margin-top: 8px;
  }
  .form-success-card__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 22px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    cursor: pointer;
    width: 100%;
  }
  .form-success-card__cta svg { width: 18px; height: 18px; flex-shrink: 0; }
  .form-success-card__cta--wa {
    background: var(--grad-wa);
    color: white;
    box-shadow: var(--shadow-wa);
  }
  .form-success-card__cta--wa:hover { transform: translateY(-3px); box-shadow: 0 22px 50px -10px rgba(37, 211, 102, 0.55); }
  .form-success-card__cta--ghost {
    background: transparent;
    color: var(--primary);
    border: 1.5px solid var(--border);
  }
  .form-success-card__cta--ghost:hover { background: var(--surface); border-color: var(--primary); transform: translateY(-2px); }

  /* GDPR consent checkbox — custom rendering coerente su iOS, Android, desktop */
  .field--checkbox {
    flex-direction: row;
    align-items: flex-start;
    gap: 12px;
    margin-top: 4px;
  }
  .field--checkbox input[type="checkbox"] {
    /* Reset del rendering nativo (iOS Safari altrimenti disegna un quadratino di sistema) */
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    min-width: 20px;
    min-height: 20px;
    margin: 1px 0 0;
    padding: 0;
    border: 1.5px solid rgba(15, 23, 60, 0.25);
    border-radius: 6px;
    background: #ffffff;
    cursor: pointer;
    flex-shrink: 0;
    position: relative;
    transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
    /* Disabilita il colore del tap su iOS */
    -webkit-tap-highlight-color: transparent;
    /* Evita lo zoom del rendering nativo iOS */
    font-size: 16px;
    vertical-align: middle;
  }
  .field--checkbox input[type="checkbox"]:hover {
    border-color: var(--primary);
  }
  .field--checkbox input[type="checkbox"]:focus-visible {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(0, 55, 224, 0.18);
  }
  .field--checkbox input[type="checkbox"]:checked {
    background: var(--primary);
    border-color: var(--primary);
  }
  /* Checkmark CSS-only (niente immagini) */
  .field--checkbox input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 5px;
    height: 10px;
    border: solid #ffffff;
    border-width: 0 2.2px 2.2px 0;
    transform: translate(-50%, -58%) rotate(45deg);
    /* Su iOS i border-radius del padre tagliano il pseudo-elemento se non si specifica overflow visible */
    pointer-events: none;
  }
  .field--checkbox input[type="checkbox"].invalid {
    border-color: rgba(220, 38, 38, 0.6);
    background: rgba(220, 38, 38, 0.05);
  }
  .field--checkbox input[type="checkbox"].invalid:checked {
    background: var(--primary);
    border-color: var(--primary);
  }
  .field--checkbox label {
    font-size: 0.88rem;
    color: var(--text-muted);
    font-weight: 400;
    letter-spacing: 0;
    line-height: 1.55;
    cursor: pointer;
    text-transform: none;
    margin: 0;
  }
  .field--checkbox label a {
    color: var(--primary);
    text-decoration: underline;
    text-underline-offset: 2px;
    font-weight: 600;
  }
  .field--checkbox label a:hover { color: var(--primary-2); }

  @media (max-width: 900px) {
    .contact-card { grid-template-columns: 1fr; }
    .contact__info, .contact__form, .form-success-card { padding: 32px; }
  }
  @media (max-width: 540px) {
    .field-row { grid-template-columns: 1fr; }
    .contact-card { border-radius: var(--radius-lg); }
    .contact__info, .contact__form, .form-success-card { padding: 26px; }
    .contact__info h3 { font-size: 1.5rem; }
    .field input, .field textarea, .field select { font-size: 16px; }
    .form-success-card h3 { font-size: 1.35rem; }
  }

  /* ==================== FOOTER (4-col original) ==================== */
  .site-footer {
    margin-top: 30px;
    padding-top: 50px;
    position: relative;
    color: var(--text-muted);
    font-size: 0.92rem;
    overflow: hidden;
  }
  .site-footer::before {
    content: '';
    position: absolute;
    top: 0; left: 50%;
    transform: translateX(-50%);
    width: 120%;
    height: 260px;
    background: radial-gradient(ellipse at top, rgba(0, 55, 224, 0.16), transparent 60%);
    pointer-events: none;
    z-index: -1;
  }
  .footer-main {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: 56px;
    padding-bottom: 30px;
    border-bottom: 1px solid var(--border);
  }
  .footer-col h5 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--text);
    margin-bottom: 18px;
    font-weight: 700;
  }
  .footer-brand { display: flex; flex-direction: column; gap: 16px; }
  .footer-brand__logo {
    display: inline-flex;
    align-items: center;
    color: var(--text);
    text-decoration: none;
  }
  .footer-brand__logo img {
    height: 50px;
    width: auto;
    display: block;
  }
  .footer-brand p { max-width: 320px; line-height: 1.65; }
  .footer-socials { display: flex; gap: 10px; margin-top: 8px; }
  .footer-socials a {
    width: 40px; height: 40px;
    border-radius: 50%;
    background: var(--surface);
    border: 1px solid var(--border);
    display: grid; place-items: center;
    color: var(--text);
    transition: transform 0.25s ease, background 0.25s ease, border-color 0.25s ease;
  }
  .footer-socials a:hover {
    transform: translateY(-3px);
    background: var(--surface-strong);
    border-color: rgba(0, 117, 242, 0.55);
  }
  .footer-socials svg { width: 16px; height: 16px; }

  .footer-links { display: flex; flex-direction: column; gap: 12px; }
  .footer-links a {
    color: var(--text-muted);
    font-size: 0.95rem;
    transition: color 0.2s ease, transform 0.2s ease;
    width: fit-content;
  }
  .footer-links a:hover { color: var(--text); transform: translateX(3px); }

  .footer-contact { display: flex; flex-direction: column; gap: 14px; }
  .footer-contact a, .footer-contact span {
    display: flex; align-items: center; gap: 12px;
    color: var(--text-muted);
    font-size: 0.95rem;
    transition: color 0.2s ease;
  }
  .footer-contact a:hover { color: var(--text); }
  .footer-contact svg { width: 16px; height: 16px; flex-shrink: 0; color: var(--primary-2); }

  .footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0 24px;
    flex-wrap: wrap;
    gap: 14px;
    font-size: 0.85rem;
  }
  .footer-bottom__legal { display: flex; gap: 22px; flex-wrap: wrap; }
  .footer-bottom__legal a { color: var(--text-muted); transition: color 0.2s ease; }
  .footer-bottom__legal a:hover { color: var(--text); }
  .footer-bottom__made { display: inline-flex; align-items: center; gap: 6px; color: var(--text-muted); }
  .footer-bottom__made .heart {
    color: var(--primary-2);
    animation: heartbeat 1.6s ease-in-out infinite;
    display: inline-block;
  }
  @keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    25% { transform: scale(1.25); }
    50% { transform: scale(1); }
    75% { transform: scale(1.15); }
  }

  @media (max-width: 900px) {
    .footer-main { grid-template-columns: 1fr; gap: 36px; }
  }
  @media (max-width: 540px) {
    .site-footer { padding-top: 40px; }
    .footer-main { grid-template-columns: 1fr; gap: 24px; padding-bottom: 24px; }
    .footer-bottom { flex-direction: column; align-items: flex-start; padding: 16px 0 22px; }
  }

  /* Reveal */
  .reveal { opacity: 0; transform: translateY(40px); transition: opacity 0.8s ease, transform 0.8s cubic-bezier(.2,.9,.3,1.1); }
  .reveal.in { opacity: 1; transform: translateY(0); }
  .reveal-stagger > * { opacity: 0; transform: translateY(30px); transition: opacity 0.7s ease, transform 0.7s cubic-bezier(.2,.9,.3,1.1); }
  .reveal-stagger.in > * { opacity: 1; transform: translateY(0); }
  .reveal-stagger.in > *:nth-child(1) { transition-delay: 0.05s; }
  .reveal-stagger.in > *:nth-child(2) { transition-delay: 0.15s; }
  .reveal-stagger.in > *:nth-child(3) { transition-delay: 0.25s; }

  @media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  }
