/* ================================================================
   SYNTHETIC LAB AI — style.css
   Design system: syntheticlab.it 2026
   Fonts: Archivo · Barlow · Barlow Condensed · Share Tech
   ================================================================ */

/* ----------------------------------------------------------------
   1. CSS VARIABLES
---------------------------------------------------------------- */
:root {
    --red:       #BE1818;
    --dark:      #111111;
    --mid:       #555555;
    --gray:      #999999;
    --border:    #e8e8e8;
    --light:     #f6f6f6;
    --white:     #ffffff;

    --container: 1200px;
    --pad-x:     60px;
    --py:        96px;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Barlow', sans-serif;
    background: var(--white);
    color: var(--dark);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

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

/* ----------------------------------------------------------------
   3. LAYOUT UTILITIES
---------------------------------------------------------------- */
.sy-container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 var(--pad-x);
}

.section-header-block {
    margin-bottom: 64px;
}

/* ----------------------------------------------------------------
   4. TYPOGRAPHY UTILITIES
---------------------------------------------------------------- */
.sec-label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 700;
    font-size: 11px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--red);
    margin-bottom: 18px;
}

.sec-label span {
    display: block;
    width: 3px;
    height: 18px;
    background: var(--red);
    flex-shrink: 0;
}

.sec-label-dark {
    color: rgba(255, 255, 255, 0.45);
}

.sec-label-dark span {
    background: var(--red);
    opacity: 0.8;
}

.sec-title {
    font-family: 'Barlow', sans-serif;
    font-weight: 800;
    font-size: clamp(28px, 3.2vw, 46px);
    line-height: 1.1;
    color: var(--dark);
    margin-bottom: 20px;
}

.sec-title em {
    font-style: normal;
    color: var(--red);
}

.sec-title-white {
    color: #ffffff;
}

.sec-sub {
    font-size: 19px;
    font-style: italic;
    color: var(--mid);
    margin-bottom: 56px;
    font-family: 'Barlow', sans-serif;
    line-height: 1.5;
}

/* ----------------------------------------------------------------
   5. BUTTONS
---------------------------------------------------------------- */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--red);
    color: #fff;
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    padding: 14px 32px;
    border: none;
    cursor: pointer;
    transition: opacity 0.2s ease, box-shadow 0.2s ease;
    text-decoration: none;
    line-height: 1;
    white-space: nowrap;
}

.btn-primary:hover {
    opacity: 0.9;
    box-shadow: 0 10px 28px rgba(190, 24, 24, 0.25);
    color: #fff;
}

.btn-primary.btn-sm {
    padding: 10px 20px;
    font-size: 12px;
}

.btn-primary.btn-large {
    padding: 18px 48px;
    font-size: 15px;
    letter-spacing: 0.14em;
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    color: var(--dark);
    border: 2px solid rgba(15, 15, 15, 0.22);
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    padding: 14px 32px;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
    text-decoration: none;
    line-height: 1;
}

.btn-secondary:hover {
    background: rgba(15, 15, 15, 0.05);
    border-color: rgba(15, 15, 15, 0.38);
    color: var(--dark);
}

/* ================================================================
   NAV
================================================================ */
#nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 500;
    height: 68px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 var(--pad-x);
    background: rgba(255, 255, 255, 0.97);
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s, box-shadow 0.3s;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

#nav.scrolled {
    border-bottom-color: var(--border);
    box-shadow: 0 2px 24px rgba(0, 0, 0, 0.06);
}

.nav-logo img {
    height: 22px;
    width: auto;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-links > a:not(.btn-primary) {
    font-family: 'Barlow', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: var(--mid);
    transition: color 0.2s;
}

.nav-links > a:not(.btn-primary):hover {
    color: var(--dark);
}

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

.hamburger span {
    display: block;
    height: 1.5px;
    background: var(--dark);
    transition: all 0.3s ease;
    transform-origin: center;
}

.hamburger span:first-child  { width: 100%; }
.hamburger span:nth-child(2) { width: 70%; }
.hamburger span:last-child   { width: 100%; }

.hamburger:hover span { background: var(--red); }

.hamburger.open span:first-child  { transform: translateY(6.5px) rotate(45deg); width: 100%; }
.hamburger.open span:nth-child(2) { opacity: 0; width: 0; }
.hamburger.open span:last-child   { transform: translateY(-6.5px) rotate(-45deg); width: 100%; }

/* Mobile nav overlay */
.mobile-nav {
    position: fixed;
    top: 68px;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--white);
    z-index: 490;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 36px var(--pad-x) 48px;
    gap: 0;
    transform: translateY(-110%);
    transition: transform 0.48s cubic-bezier(0.76, 0, 0.24, 1);
    border-top: 1px solid var(--border);
    overflow-y: auto;
}

.mobile-nav.open {
    transform: translateY(0);
}

.mobile-nav-link {
    font-family: 'Barlow', sans-serif;
    font-size: 24px;
    font-weight: 800;
    color: rgba(0, 0, 0, 0.72);
    padding: 16px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.07);
    width: 100%;
    display: block;
    transition: color 0.2s;
}

.mobile-nav-link:hover { color: var(--red); }

.mobile-nav .btn-primary {
    margin-top: 28px;
    align-self: flex-start;
}

/* ================================================================
   HERO
================================================================ */
.hero {
    margin-top: 0;
    min-height: calc(90vh - 268px);   /* -200px = 100px meno sopra + 100px meno sotto */
    display: grid;
    grid-template-columns: 54fr 46fr;
    position: relative;
    overflow: hidden;
    background: #0c0d13;
}

/* Top & bottom atmospheric vignette */
.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(to bottom,
            rgba(12,13,19,0.55) 0%,
            transparent 18%,
            transparent 78%,
            rgba(12,13,19,0.45) 100%);
    pointer-events: none;
    z-index: 1;
}

#neural {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 2;        /* above hero-right image, below hero-left text (same z, DOM order wins) */
    pointer-events: none;
}

.hero-left {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 var(--pad-x);           /* vertical padding a 0: il nero rimosso era padding inutilizzato */
    position: relative;
    z-index: 2;
}

.hero-label {
    font-family: 'Share Tech', monospace;
    font-size: 13px;
    color: rgba(255,255,255,0.38);
    letter-spacing: 0.18em;
    margin-bottom: 28px;
    display: block;
}

.hero h1 {
    font-family: 'Archivo', sans-serif;
    font-weight: 700;
    font-size: clamp(36px, 4.8vw, 66px);
    line-height: 1.0;
    color: #ffffff;
    margin-bottom: 22px;
    letter-spacing: -0.025em;
}

.hero h1 em {
    font-style: normal;
    color: var(--red);
}

.hero-payoff {
    font-family: 'Share Tech', monospace;
    font-size: 17px;
    color: rgba(255,255,255,0.44);
    margin-bottom: 24px;
    letter-spacing: 0.04em;
    line-height: 1.4;
}

.hero-desc {
    font-size: 19px;
    line-height: 1.74;
    color: rgba(255,255,255,0.60);
    max-width: 440px;
    margin-bottom: 48px;
    font-weight: 400;
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

/* Dark-bg overrides for buttons inside hero */
.hero .btn-secondary {
    border-color: rgba(255,255,255,0.26);
    color: rgba(255,255,255,0.88);
}
.hero .btn-secondary:hover {
    background: rgba(255,255,255,0.07);
    border-color: rgba(255,255,255,0.50);
    color: #ffffff;
}

/* Hero image panel */
.hero-right {
    position: relative;
    overflow: hidden;
}

.hero-right img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 20%;
    display: block;
}

.hero-img-overlay {
    position: absolute;
    inset: 0;
    /* Blend left edge of image into hero dark bg, subtle vignette right */
    background:
        linear-gradient(to right,
            #0c0d13 0%,
            rgba(12,13,19,0.78) 22%,
            rgba(12,13,19,0.32) 46%,
            rgba(12,13,19,0.06) 70%,
            rgba(12,13,19,0.18) 100%);
    pointer-events: none;
    z-index: 1;
}

.hero-img-accent {
    display: none; /* removed: seamless blend replaces hard edge */
}

/* Logo — in hero-left flex flow, allineato con il testo */
.hero-logo-mark {
    display: block;
    text-decoration: none;
    margin-bottom: 32px;
}

.hero-logo-mark svg {
    display: block;
    width: 308px;
    height: auto;
    transition: opacity 0.2s ease;
}

/* Testo → bianco */
.hero-logo-mark .st0 {
    fill: #ffffff;
}

/* Quadratino sopra la Y → rosso brand */
.hero-logo-mark .st1 {
    fill: #BE1818;
}

.hero-logo-mark:hover svg {
    opacity: 0.85;
}

/* ================================================================
   TRUST STRIP
================================================================ */
.trust-strip {
    background: #0c0d13;                          /* continua dal dark hero */
    padding: 60px var(--pad-x);
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}

.trust-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 0 24px;
    gap: 0;
    cursor: default;
    transition: opacity 0.2s ease;
}

.trust-item:last-child {
    border-right: none;
}

.trust-item:hover {
    opacity: 0.85;
}

/* Small context text above number */
.trust-kicker {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 700;
    font-size: 10px;
    letter-spacing: 0.26em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.28);
    margin-bottom: 10px;
    display: block;
}

.trust-num {
    font-family: 'Archivo', sans-serif;
    font-weight: 800;
    font-size: clamp(44px, 5vw, 68px);
    color: var(--white);
    line-height: 1;
    letter-spacing: -0.03em;
    margin-bottom: 14px;
    display: block;
}

/* Thin red accent line above the label */
.trust-label {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 700;
    font-size: 11px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.42);
}

/* ================================================================
   PROBLEMA
================================================================ */
.section-problema {
    padding: var(--py) 0;
    background: var(--white);
}

/* Pain grid — 3 columns full width */
.pain-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--border);
    border: 1px solid var(--border);
    margin-top: 64px;
}

.pain-card {
    background: var(--white);
    padding: 40px 36px 36px;
    border-top: 3px solid transparent;
    transition: border-top-color 0.22s ease, background 0.22s ease;
    cursor: default;
    display: flex;
    flex-direction: column;
}

.pain-card:hover {
    background: #fafafa;
    border-top-color: var(--red);
}

/* Top row: icon left, number right */
.pain-card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 24px;
}

/* SVG icon box */
.pain-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(190, 24, 24, 0.06);
    color: var(--red);
    flex-shrink: 0;
    transition: background 0.22s ease;
}

.pain-card:hover .pain-icon {
    background: rgba(190, 24, 24, 0.12);
}

/* Ordinal number */
.pain-num {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 700;
    font-size: 11px;
    letter-spacing: 0.16em;
    color: var(--border);
    padding-top: 2px;
    transition: color 0.22s ease;
}

.pain-card:hover .pain-num {
    color: rgba(190, 24, 24, 0.25);
}

.pain-card strong {
    font-family: 'Barlow', sans-serif;
    font-weight: 700;
    font-size: 15px;
    color: var(--dark);
    display: block;
    margin-bottom: 10px;
    line-height: 1.28;
}

.pain-card p {
    font-size: 14px;
    color: var(--mid);
    line-height: 1.68;
    margin: 0;
}

/* ================================================================
   LAYER CONCEPT
================================================================ */
.section-layer {
    position: relative;
    padding: var(--py) 0;
    background: var(--dark);
    overflow: hidden;
}

.layer-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.layer-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.12;
    filter: saturate(0.4) brightness(0.7);
}

.layer-content {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.layer-desc {
    font-size: 18px;
    line-height: 1.76;
    color: rgba(255, 255, 255, 0.62);
    max-width: 500px;
    margin-top: 24px;
}

/* Layer Diagram */
.layer-diagram {
    max-width: 520px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.layer-block {
    width: 100%;
    padding: 22px 32px;
    text-align: center;
}

.layer-block-outer {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.layer-block-center {
    background: var(--red);
    padding: 30px 32px;
    position: relative;
}

.layer-block-badge {
    font-size: 20px;
    margin-bottom: 4px;
    line-height: 1;
}

.layer-block-label {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #fff;
    margin-bottom: 5px;
}

.layer-block-sub {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 11px;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.55);
}

.layer-block-center .layer-block-sub {
    color: rgba(255, 255, 255, 0.75);
}

/* Connector between blocks */
.layer-connector {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 4px 0;
}

.connector-line {
    width: 1px;
    height: 10px;
    background: rgba(190, 24, 24, 0.4);
}

.connector-arrows {
    display: flex;
    align-items: center;
    gap: 8px;
}

.c-arrow {
    width: 14px;
    height: 20px;
    flex-shrink: 0;
}

.c-arrow-down { animation: arrowDown 1.6s ease-in-out infinite; }
.c-arrow-up   { animation: arrowUp  1.6s ease-in-out infinite 0.8s; }

/* ================================================================
   FASI
================================================================ */
.section-fasi {
    padding: var(--py) 0;
    background: var(--light);
}

/* Fase 0 — highlighted card */
.fase-zero {
    background: var(--white);
    border-left: 4px solid var(--red);
    padding: 48px 52px;
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 52px;
    align-items: center;
    margin-bottom: 80px;
    box-shadow: 0 4px 32px rgba(0, 0, 0, 0.06);
}

.fase-zero-left {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
}

.fase-ghost {
    font-family: 'Archivo', sans-serif;
    font-weight: 900;
    font-size: clamp(72px, 10vw, 120px);
    line-height: 0.88;
    color: rgba(0, 0, 0, 0.06);
    display: block;
    letter-spacing: -0.05em;
    user-select: none;
}

.badge-gratuito {
    display: inline-block;
    background: #22c55e;
    color: white;
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 700;
    font-size: 11px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    padding: 5px 12px;
}

.fase-zero-right h3 {
    font-family: 'Barlow', sans-serif;
    font-weight: 800;
    font-size: clamp(22px, 2.4vw, 32px);
    color: var(--dark);
    margin-bottom: 14px;
    line-height: 1.15;
}

.fase-zero-right > p {
    font-size: 17px;
    color: var(--mid);
    line-height: 1.72;
    margin-bottom: 24px;
    max-width: 540px;
}

.fase-check {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 30px;
}

.fase-check li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 16px;
    color: var(--dark);
    font-family: 'Barlow', sans-serif;
    line-height: 1.4;
}

.check-icon {
    color: var(--red);
    font-weight: 800;
    flex-shrink: 0;
    margin-top: 1px;
}

/* Fasi 1–3 */
.fase-item {
    display: grid;
    gap: 48px;
    align-items: center;
    margin-bottom: 72px;
    position: relative;
}

.fase-left  { grid-template-columns: 240px 1fr; }
.fase-right { grid-template-columns: 1fr 240px; }

.fase-right .fase-content {
    order: 1;
}

.fase-right .fase-num-wrap {
    order: 2;
}

.fase-num-wrap {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding-top: 8px;
}

.fase-item .fase-ghost {
    font-size: clamp(80px, 12vw, 160px);
}

.fase-content h3 {
    font-family: 'Barlow', sans-serif;
    font-weight: 800;
    font-size: clamp(22px, 2.4vw, 34px);
    color: var(--dark);
    line-height: 1.12;
    margin-bottom: 18px;
}

.fase-content > p {
    font-size: 17px;
    color: var(--mid);
    line-height: 1.74;
    margin-bottom: 24px;
    max-width: 560px;
}

.fase-two-cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 24px;
}

.fase-subcol {
    background: var(--white);
    border: 1px solid var(--border);
    padding: 22px;
}

.fase-subcol strong {
    font-family: 'Barlow', sans-serif;
    font-weight: 700;
    font-size: 14px;
    color: var(--dark);
    display: block;
    margin-bottom: 8px;
    line-height: 1.2;
}

.fase-subcol p {
    font-size: 13px;
    color: var(--mid);
    line-height: 1.6;
    margin: 0;
}

.fase-output {
    display: flex;
    align-items: flex-start;
    gap: 24px;
    padding: 18px 24px;
    background: var(--white);
    border: 1px solid var(--border);
}

.output-label {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 700;
    font-size: 10px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--gray);
    padding-top: 3px;
    flex-shrink: 0;
    white-space: nowrap;
}

.output-items {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 20px;
}

.output-items span {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 0.04em;
    color: var(--red);
    white-space: nowrap;
}

/* ================================================================
   PERCHÉ SYNTHETIC LAB
================================================================ */
.section-perche {
    padding: var(--py) 0;
    background: var(--white);
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border: 1px solid var(--border);
}

.why-card {
    padding: 36px 32px;
    border-right: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    position: relative;
    transition: background 0.22s ease;
    overflow: hidden;
}

.why-card:nth-child(3n)         { border-right: none; }
.why-card:nth-last-child(-n+3)  { border-bottom: none; }

.why-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--red);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.32s ease;
}

.why-card:hover {
    background: #fafafa;
}

.why-card:hover::before {
    transform: scaleX(1);
}

.why-num {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 700;
    font-size: 11px;
    letter-spacing: 0.2em;
    color: var(--red);
    margin-bottom: 12px;
    display: block;
}

.why-card h4 {
    font-family: 'Barlow', sans-serif;
    font-weight: 700;
    font-size: 17px;
    color: var(--dark);
    line-height: 1.25;
    margin-bottom: 10px;
}

.why-card p {
    font-size: 15px;
    color: var(--mid);
    line-height: 1.65;
    margin: 0;
}

.why-card-cta {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 20px;
    background: var(--light);
}

.why-card-cta::before { display: none; }

.why-card-cta p {
    font-family: 'Barlow', sans-serif;
    font-weight: 600;
    font-size: 16px;
    color: var(--dark);
    line-height: 1.42;
    margin: 0;
}

/* ================================================================
   RISULTATI
================================================================ */
.section-risultati {
    padding: var(--py) 0;
    background: var(--light);
}

.case-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.case-card {
    background: var(--white);
    padding: 40px;
    border: 1px solid var(--border);
    position: relative;
    overflow: hidden;
    transition: box-shadow 0.25s ease;
}

.case-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--red);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.38s ease;
}

.case-card:hover {
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.09);
}

.case-card:hover::after {
    transform: scaleX(1);
}

.case-tag {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 700;
    font-size: 11px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--red);
    margin-bottom: 14px;
    display: block;
}

.case-card h3 {
    font-family: 'Barlow', sans-serif;
    font-weight: 700;
    font-size: 22px;
    color: var(--dark);
    margin-bottom: 12px;
    line-height: 1.2;
}

.case-card > p {
    font-size: 15px;
    color: var(--mid);
    line-height: 1.66;
    margin-bottom: 32px;
}

.case-metrics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-top: 1px solid var(--border);
    padding-top: 24px;
    gap: 0;
}

.metric {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding-right: 16px;
    border-right: 1px solid var(--border);
}

.metric:last-child  { border-right: none; padding-left: 16px; padding-right: 0; }
.metric:nth-child(2){ padding-left: 16px; }

.metric-num {
    font-family: 'Archivo', sans-serif;
    font-weight: 800;
    font-size: clamp(28px, 3vw, 38px);
    color: var(--red);
    line-height: 1;
    letter-spacing: -0.02em;
}

.metric-label {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 700;
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--gray);
    line-height: 1.3;
}

/* ================================================================
   FAQ
================================================================ */
.section-faq {
    padding: var(--py) 0;
    background: var(--white);
}

.faq-list {
    max-width: 760px;
}

.faq-item {
    border-bottom: 1px solid var(--border);
    transition: border-left-color 0.22s, padding-left 0.22s;
}

.faq-item.open {
    border-left: 3px solid var(--red);
    padding-left: 22px;
    margin-left: -22px;
}

.faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    padding: 24px 0;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    font-family: 'Barlow', sans-serif;
    font-weight: 700;
    font-size: 17px;
    color: var(--dark);
    transition: color 0.2s;
    line-height: 1.3;
}

.faq-question:hover { color: var(--red); }

.faq-item.open .faq-question { color: var(--red); }

.faq-icon {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 700;
    font-size: 24px;
    color: var(--red);
    flex-shrink: 0;
    transition: transform 0.32s ease;
    line-height: 1;
    width: 24px;
    text-align: center;
}

.faq-item.open .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.44s cubic-bezier(0.16, 1, 0.3, 1);
}

.faq-answer p {
    font-size: 16px;
    color: var(--mid);
    line-height: 1.74;
    padding: 0 0 26px;
}

/* ================================================================
   CTA FINALE
================================================================ */
.section-cta {
    position: relative;
    padding: 120px 0;
    background: var(--dark);
    text-align: center;
    overflow: hidden;
}

.cta-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.cta-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.07;
    filter: saturate(0.2) brightness(0.6);
}

.cta-content {
    position: relative;
    z-index: 2;
    max-width: 680px;
    margin: 0 auto;
}

.cta-label {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 700;
    font-size: 11px;
    letter-spacing: 0.26em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.38);
    margin-bottom: 22px;
    display: block;
}

.section-cta h2 {
    font-family: 'Archivo', sans-serif;
    font-weight: 700;
    font-size: clamp(30px, 4vw, 52px);
    line-height: 1.08;
    color: #fff;
    margin-bottom: 24px;
    letter-spacing: -0.025em;
}

.cta-desc {
    font-size: 20px;
    line-height: 1.72;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 48px;
}

.cta-contacts {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 32px;
    flex-wrap: wrap;
}

.cta-contact-link {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Barlow', sans-serif;
    font-size: 16px;
    color: rgba(255, 255, 255, 0.52);
    transition: color 0.2s;
}

.cta-contact-link:hover {
    color: rgba(255, 255, 255, 0.9);
}

/* ================================================================
   FOOTER
================================================================ */
.footer {
    background: #0b0b0b;
    border-top: 4px solid var(--red);
    position: relative;
    overflow: hidden;
}

/* Ghost watermark */
.footer::before {
    content: 'AI';
    position: absolute;
    bottom: -24px;
    right: -8px;
    font-family: 'Archivo', sans-serif;
    font-weight: 900;
    font-size: clamp(140px, 18vw, 260px);
    line-height: 1;
    color: rgba(255, 255, 255, 0.028);
    pointer-events: none;
    user-select: none;
    letter-spacing: -0.04em;
}

.footer-inner {
    display: grid;
    grid-template-columns: 1.7fr 1px 1fr;
    gap: 0;
    padding-top: 68px;
    padding-bottom: 60px;
    align-items: start;
}

/* — BRAND COLUMN — */
.footer-brand {
    display: flex;
    flex-direction: column;
    padding-right: 72px;
}

.footer-brand img {
    margin-bottom: 22px;
    /* logo ha parti rosse e grigie: sul dark il grigio è invisibile;
       brightness+invert lo rende leggibile */
    filter: brightness(0) invert(1) opacity(0.82);
}

.footer-tagline {
    font-family: 'Barlow', sans-serif;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.36);
    line-height: 1.68;
    margin: 0 0 32px;
    font-style: italic;
}

.footer-company p {
    font-family: 'Barlow', sans-serif;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.2);
    line-height: 2;
    margin: 0;
    letter-spacing: 0.01em;
}

/* — VERTICAL DIVIDER — */
.footer-divider {
    width: 1px;
    background: rgba(255, 255, 255, 0.07);
    align-self: stretch;
}

/* — CONTACT COLUMN — */
.footer-contact {
    padding-left: 72px;
    display: flex;
    flex-direction: column;
    gap: 36px;
    padding-top: 2px;
}

.footer-contact-main {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-phone {
    font-family: 'Archivo', sans-serif;
    font-weight: 700;
    font-size: clamp(22px, 2.6vw, 32px);
    color: rgba(255, 255, 255, 0.86);
    letter-spacing: -0.025em;
    line-height: 1;
    display: block;
    transition: color 0.2s;
}

.footer-phone:hover { color: var(--red); }

.footer-email {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 600;
    font-size: 18px;
    letter-spacing: 0.08em;
    color: #ffffff;
    display: block;
    transition: color 0.2s;
}

.footer-email:hover { color: rgba(255, 255, 255, 0.55); }

/* — SOCIAL — */
.footer-site-link {
    display: inline-flex;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.11);
    transition: border-color 0.28s;
    text-decoration: none;
}

.footer-site-link::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--red);
    transform: translateY(101%);
    transition: transform 0.38s cubic-bezier(0.16, 1, 0.3, 1);
}

.footer-site-link:hover {
    border-color: var(--red);
}

.footer-site-link:hover::before {
    transform: translateY(0);
}

.footer-site-link-inner {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
}

.footer-site-link-label {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 700;
    font-size: 12px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.44);
    transition: color 0.22s;
}

.footer-site-link-arrow {
    font-size: 15px;
    line-height: 1;
    color: rgba(255, 255, 255, 0.22);
    transition: color 0.22s, transform 0.22s cubic-bezier(0.16, 1, 0.3, 1);
    display: inline-block;
}

.footer-site-link:hover .footer-site-link-label,
.footer-site-link:hover .footer-site-link-arrow {
    color: rgba(255, 255, 255, 0.95);
}

.footer-site-link:hover .footer-site-link-arrow {
    transform: translate(3px, -3px);
}

/* — BOTTOM BAR — */
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-bottom-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 18px;
    padding-bottom: 18px;
    gap: 16px;
    flex-wrap: wrap;
}

.footer-bottom span,
.footer-bottom a {
    font-family: 'Barlow', sans-serif;
    font-size: 11px;
    letter-spacing: 0.04em;
    color: rgba(255, 255, 255, 0.18);
    transition: color 0.2s;
}

.footer-bottom a:hover { color: rgba(255, 255, 255, 0.5); }

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

/* ================================================================
   RESPONSIVE — TABLET (≤ 1024px)
================================================================ */
@media (max-width: 1024px) {
    :root {
        --pad-x: 40px;
    }

    /* Pain grid: 2 columns on tablet */
    .pain-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .layer-content {
        grid-template-columns: 1fr;
        gap: 56px;
    }

    .layer-diagram {
        max-width: 480px;
        align-self: center;
    }

    .layer-text .sec-title {
        font-size: clamp(28px, 4vw, 42px);
    }
}

/* ================================================================
   RESPONSIVE — MOBILE (≤ 768px)
================================================================ */
@media (max-width: 768px) {
    :root {
        --pad-x: 24px;
        --py:    64px;
    }

    /* Nav */
    .nav-links { display: none; }
    .hamburger { display: flex; }

    /* Hero */
    .hero {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    /*
     * display: contents dissolve hero-left come box:
     * i suoi figli diretti (.hero-logo-mark e .hero-body)
     * diventano item del grid principale → possiamo ordinarli.
     */
    .hero-left {
        display: contents;
        padding: 0;
    }

    /* 1 — Logo sopra il cervello */
    .hero-logo-mark {
        order: 1;
        padding: 36px var(--pad-x) 0;  /* nessun gap sotto il logo */
        margin-bottom: 0;
        position: relative;
        z-index: 3;
        display: flex;
        justify-content: center;
    }

    .hero-logo-mark svg {
        width: min(260px, 70vw); /* scala sullo schermo, non esce dal padding */
    }

    /* 2 — Cervello al centro */
    .hero-right {
        order: 2;
        height: auto;
        background: #0c0d13;
        margin-top: -60px;      /* compensa lo spazio trasparente in cima al PNG */
    }

    /* Mostra l'immagine per intero senza crop */
    .hero-right img {
        position: relative;
        width: 100%;
        height: auto;
        object-fit: initial;
        object-position: initial;
        padding: 0 12px;
        box-sizing: border-box;
    }

    /* Vignette leggera — lascia il cervello completamente visibile */
    .hero-right .hero-img-overlay {
        background:
            linear-gradient(to bottom,
                rgba(12,13,19,0.45) 0%,
                transparent 14%,
                transparent 82%,
                rgba(12,13,19,0.55) 100%);
    }

    /* 3 — Testo + CTA sotto il cervello */
    .hero-body {
        order: 3;
        padding: 0 var(--pad-x) 56px;  /* nessun padding-top: la distanza la gestisce margin-top */
        margin-top: -60px;              /* speculare al margin-top del cervello: compensa il trasparente in fondo al PNG */
        display: flex;
        flex-direction: column;
        position: relative;
        z-index: 3;
    }

    .hero-actions {
        flex-direction: column;
        align-items: center;        /* pulsante centrato orizzontalmente */
    }

    .hero-actions .btn-primary {
        justify-content: center;    /* testo centrato dentro il pulsante rosso */
    }

    .hero-actions .btn-secondary {
        justify-content: center;
    }

    /* Trust — 2×2 su tablet */
    .trust-strip {
        grid-template-columns: repeat(2, 1fr);
        padding: 40px var(--pad-x) 24px;  /* meno spazio in basso verso la sezione successiva */
    }

    .trust-item {
        padding: 28px 20px;
    }

    .trust-item:nth-child(2),
    .trust-item:nth-child(4) {
        border-right: none;
    }

    .trust-item:nth-child(3),
    .trust-item:nth-child(4) {
        border-bottom: none;
    }

    /* Problema */
    .pain-grid {
        grid-template-columns: 1fr;
        margin-top: 40px;
    }

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

    /* Layer */
    .layer-diagram {
        max-width: 100%;
    }

    /* Fasi */
    .fase-zero {
        grid-template-columns: 1fr;
        padding: 32px 28px;
        gap: 28px;
    }

    .fase-zero-left {
        flex-direction: row;
        align-items: center;
        gap: 16px;
    }

    .fase-zero .fase-ghost {
        font-size: clamp(56px, 14vw, 80px);
    }

    .fase-left,
    .fase-right {
        grid-template-columns: 1fr;
    }

    .fase-right .fase-content { order: 2; }
    .fase-right .fase-num-wrap { order: 1; }

    .fase-num-wrap {
        justify-content: flex-start;
    }

    .fase-item .fase-ghost {
        font-size: clamp(64px, 16vw, 96px);
    }

    .fase-two-cols {
        grid-template-columns: 1fr;
    }

    /* Why */
    .why-grid {
        grid-template-columns: 1fr;
    }

    .why-card {
        border-right: none;
        border-bottom: 1px solid var(--border);
    }

    .why-card:nth-last-child(-n+3) {
        border-bottom: 1px solid var(--border);
    }

    .why-card:last-child {
        border-bottom: none;
    }

    /* Results */
    .case-grid {
        grid-template-columns: 1fr;
    }

    .case-metrics {
        grid-template-columns: 1fr 1fr 1fr;
    }

    .metric-num {
        font-size: 26px;
    }

    /* FAQ */
    .faq-item.open {
        padding-left: 16px;
        margin-left: -16px;
    }

    /* CTA */
    .cta-contacts {
        flex-direction: column;
        gap: 14px;
        align-items: center;
    }

    /* Footer */
    .footer-inner {
        grid-template-columns: 1fr;
        gap: 0;
        padding-top: 48px;
        padding-bottom: 40px;
    }

    .footer-brand {
        padding-right: 0;
        padding-bottom: 40px;
        align-items: center;   /* centra il flex-column */
        text-align: center;
    }

    .footer-tagline {
        font-size: 15px;
    }

    .footer-company p {
        font-size: 14px;       /* era 12px, troppo piccolo */
    }

    .footer-divider {
        width: 100%;
        height: 1px;
        background: rgba(255, 255, 255, 0.07);
        align-self: auto;
        margin-bottom: 40px;
    }

    .footer-contact {
        padding-left: 0;
        align-items: center;   /* centra phone/email/link */
        text-align: center;
    }

    .footer-contact-main {
        align-items: center;
    }

    .footer-site-link {
        align-self: center;
    }

    .footer-bottom-inner {
        flex-direction: column;
        align-items: center;   /* era flex-start */
        gap: 8px;
    }

    .footer-legal {
        justify-content: center;
    }

    .footer-bottom span,
    .footer-bottom a {
        font-size: 13px;       /* era 11px, troppo piccolo */
    }
}

/* ================================================================
   RESPONSIVE — SMALL MOBILE (≤ 480px)
================================================================ */
@media (max-width: 480px) {
    .hero h1 {
        font-size: clamp(30px, 9vw, 42px);
    }

    /* Trust — 2 colonne su small mobile (mantiene la griglia 2×2) */
    .trust-strip {
        grid-template-columns: repeat(2, 1fr);
        padding: 40px var(--pad-x);
        gap: 0;
    }

    .trust-item {
        padding: 24px 12px;
    }

    /* Scala il numero per stare in 2 colonne strette */
    .trust-num {
        font-size: clamp(36px, 10vw, 52px);
    }

    .trust-label {
        font-size: 10px;
        letter-spacing: 0.16em;
    }

    .btn-primary.btn-large {
        padding: 16px 28px;
        font-size: 13px;
    }
}

