/* ============================================================
   TESSERINI — CL500IM Landing Page
   Barlow Condensed + DM Sans + JetBrains Mono
============================================================ */

/* ── Reset & Base ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    /* Brand */
    --blue:       #0275CB;
    --blue-dark:  #015ea3;
    --blue-light: #e8f2ff;
    --blue-glow:  rgba(2, 117, 203, 0.18);

    /* Neutrals */
    --ink:        #0d1b2a;
    --ink-mid:    #2d3f55;
    --body:       #4a5e72;
    --muted:      #8098b0;
    --border:     #dde6f0;
    --surface:    #f5f8fc;
    --white:      #ffffff;

    /* Dark sections */
    --dark-bg:    #08111e;
    --dark-mid:   #0d1b2e;
    --dark-card:  #112240;

    /* Type */
    --font-display: 'Barlow Condensed', sans-serif;
    --font-body:    'DM Sans', sans-serif;
    --font-mono:    'JetBrains Mono', monospace;

    /* Sizing */
    --radius-sm:  6px;
    --radius-md:  12px;
    --radius-lg:  20px;
    --radius-xl:  28px;

    /* Shadows */
    --shadow-sm:  0 1px 3px rgba(13,27,42,0.08), 0 1px 2px rgba(13,27,42,0.04);
    --shadow-md:  0 4px 16px rgba(13,27,42,0.10), 0 2px 4px rgba(13,27,42,0.06);
    --shadow-lg:  0 12px 40px rgba(13,27,42,0.14), 0 4px 12px rgba(13,27,42,0.08);
    --shadow-blue: 0 8px 32px rgba(2,117,203,0.25);

    /* Layout */
    --max-w:      1200px;
    --gutter:     clamp(20px, 5vw, 48px);
    --section-gap: clamp(80px, 10vw, 140px);
}

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    font-size: clamp(15px, 1.6vw, 17px);
    color: var(--body);
    background: var(--white);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }

/* ── Container ────────────────────────────────────────────── */
.container {
    width: 100%;
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 var(--gutter);
}

/* ── Typography ───────────────────────────────────────────── */
.section-title {
    font-family: var(--font-body);
    font-size: clamp(32px, 4.5vw, 52px);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -0.01em;
    color: var(--ink);
}

.section-lead {
    font-size: clamp(15px, 1.7vw, 18px);
    color: var(--body);
    max-width: 560px;
    margin-top: 16px;
}

.eyebrow {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--blue);
    margin-bottom: 16px;
}

.eyebrow--dark { color: var(--blue); }
.eyebrow--light { color: rgba(255,255,255,0.6); }

/* ── Buttons ──────────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 15px;
    letter-spacing: 0.01em;
    border-radius: 100px;
    transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    cursor: pointer;
    border: 2px solid transparent;
}

.btn--primary {
    background: var(--blue);
    color: var(--white);
    padding: 13px 28px;
    box-shadow: var(--shadow-blue);
}
.btn--primary:hover {
    background: var(--blue-dark);
    transform: translateY(-2px);
    box-shadow: 0 12px 36px rgba(2,117,203,0.35);
}
.btn--primary:active { transform: translateY(0); }

.btn--ghost {
    background: rgba(255,255,255,0.06);
    color: var(--white);
    border-color: rgba(255,255,255,0.2);
    padding: 13px 28px;
    backdrop-filter: blur(8px);
}
.btn--ghost:hover {
    background: rgba(255,255,255,0.12);
    border-color: rgba(255,255,255,0.4);
    transform: translateY(-2px);
}

.btn--outline {
    background: transparent;
    color: var(--blue);
    border-color: var(--blue);
    padding: 11px 24px;
}
.btn--outline:hover {
    background: var(--blue-light);
    transform: translateY(-2px);
}

.btn--lg  { padding: 15px 34px; font-size: 16px; }
.btn--xl  { padding: 18px 44px; font-size: 17px; }
.btn--sm  { padding: 9px 20px; font-size: 14px; }
.btn--full { width: 100%; justify-content: center; }

/* ── Header ───────────────────────────────────────────────── */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(8, 17, 30, 0.0);
    border-bottom: 1px solid transparent;
    transition: background 0.3s ease, border-color 0.3s ease, backdrop-filter 0.3s ease;
}
.header.scrolled {
    background: rgba(8, 17, 30, 0.94);
    border-color: rgba(255,255,255,0.07);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.nav {
    display: flex;
    align-items: center;
    gap: 40px;
    height: 72px;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}
.logo-img {
    height: 38px;
    width: auto;
    display: block;
    /* Il logo SVG ha testo nero + emblema blu: su sfondo scuro lo rendiamo bianco */
    filter: brightness(0) invert(1);
    transition: opacity 0.2s;
}
.logo:hover .logo-img { opacity: 0.85; }

/* Nav links */
.nav-links {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
}
.nav-link {
    font-size: 14px;
    font-weight: 500;
    color: rgba(255,255,255,0.65);
    padding: 8px 14px;
    border-radius: 8px;
    transition: color 0.2s, background 0.2s;
}
.nav-link:hover { color: var(--white); background: rgba(255,255,255,0.07); }
.nav-link.active { color: var(--white); }

.nav-cta { margin-left: 8px; }

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 36px;
    height: 36px;
    margin-left: auto;
    padding: 6px;
    border-radius: 8px;
    transition: background 0.2s;
}
.hamburger:hover { background: rgba(255,255,255,0.08); }
.hamburger span {
    display: block;
    width: 22px;
    height: 1.5px;
    background: var(--white);
    border-radius: 2px;
    transition: transform 0.25s ease, opacity 0.2s ease;
    transform-origin: center;
}
.hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Mobile nav */
@media (max-width: 900px) {
    .hamburger { display: flex; }
    .nav-cta { display: none; }
    .nav-links {
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        flex-direction: column;
        gap: 0;
        background: rgba(8,17,30,0.97);
        backdrop-filter: blur(20px);
        border-bottom: 1px solid rgba(255,255,255,0.08);
        padding: 12px 20px 20px;
        transform: translateY(-8px);
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.22s ease, transform 0.22s ease;
    }
    .nav-links.open {
        opacity: 1;
        transform: translateY(0);
        pointer-events: all;
    }
    .nav-link {
        padding: 14px 16px;
        width: 100%;
        font-size: 16px;
        border-radius: 10px;
    }
}

/* ── Hero ─────────────────────────────────────────────────── */
.hero {
    position: relative;
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* Immagine full-bleed */
.hero-bg-image {
    position: absolute;
    inset: 0;
    z-index: 0;
}
.hero-bg-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}
/* Gradiente: scuro a sinistra per leggibilità testo, trasparente a destra */
.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        105deg,
        rgba(8,17,30,0.88) 0%,
        rgba(8,17,30,0.72) 40%,
        rgba(8,17,30,0.25) 70%,
        rgba(8,17,30,0.05) 100%
    );
}


.hero-layout {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    min-height: 100svh;
    padding-top: 120px;
    padding-bottom: 80px;
}

/* Hero text — max metà schermo per lasciare l'immagine visibile */
.hero-text {
    display: flex;
    flex-direction: column;
    max-width: 560px;
}

.hero-heading {
    display: flex;
    flex-direction: column;
    margin-bottom: 24px;
}
.hero-model {
    font-family: var(--font-body);
    font-size: clamp(60px, 8vw, 88px);
    font-weight: 900;
    letter-spacing: -0.02em;
    line-height: 0.92;
    color: var(--white);
}
.hero-tagline {
    font-family: var(--font-body);
    font-size: clamp(24px, 3.5vw, 38px);
    font-weight: 500;
    line-height: 1.15;
    color: rgba(255,255,255,0.65);
    margin-top: 8px;
}

.hero-body {
    font-size: clamp(15px, 1.7vw, 17px);
    color: rgba(255,255,255,0.6);
    max-width: 440px;
    margin-bottom: 36px;
    line-height: 1.65;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 48px;
}

/* Metrics strip */
.hero-metrics {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 20px 0;
    border-top: 1px solid rgba(255,255,255,0.12);
}
.metric { display: flex; flex-direction: column; gap: 2px; }
.metric-value {
    font-family: var(--font-mono);
    font-size: clamp(20px, 2.4vw, 28px);
    font-weight: 500;
    color: var(--white);
    line-height: 1;
}
.metric-unit {
    font-size: 0.55em;
    color: var(--blue);
    margin-left: 2px;
}
.metric-label {
    font-size: 11px;
    color: rgba(255,255,255,0.4);
    font-family: var(--font-mono);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.metric-sep {
    width: 1px;
    height: 36px;
    background: rgba(255,255,255,0.12);
    flex-shrink: 0;
}

/* Immagine mobile (nascosta su desktop) */
.hero-mobile-img {
    display: none;
}

/* Hero visual */
.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.product-frame {
    position: relative;
    width: 100%;
    max-width: 560px;
}

.product-frame__inner {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 4/3.2;
    background: var(--dark-mid);
    border: 1px solid rgba(2,117,203,0.2);
    box-shadow:
        0 0 0 1px rgba(255,255,255,0.04),
        0 24px 80px rgba(0,0,0,0.5),
        0 0 60px rgba(2,117,203,0.12);
}
.product-frame__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    inset: 0;
    z-index: 1;
}
.product-frame__placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    z-index: 0;
}
.product-frame__placeholder svg { width: 100%; height: 100%; }

/* Floating badge */
.product-badge {
    position: absolute;
    bottom: -16px;
    right: 24px;
    background: var(--blue);
    color: var(--white);
    border-radius: var(--radius-sm);
    padding: 10px 18px;
    display: flex;
    flex-direction: column;
    line-height: 1;
    gap: 3px;
    box-shadow: var(--shadow-blue);
}
.badge-line1 {
    font-family: var(--font-mono);
    font-size: 20px;
    font-weight: 500;
}
.badge-line2 {
    font-family: var(--font-mono);
    font-size: 9px;
    letter-spacing: 0.12em;
    opacity: 0.8;
}

/* Glow accent */
.product-glow {
    position: absolute;
    inset: -20%;
    border-radius: 50%;
    background: radial-gradient(ellipse, rgba(2,117,203,0.12) 0%, transparent 70%);
    pointer-events: none;
    z-index: -1;
}

/* Scroll hint */
.scroll-hint {
    position: absolute;
    bottom: 36px;
    left: var(--gutter);
    display: flex;
    align-items: center;
    gap: 16px;
    color: rgba(255,255,255,0.35);
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    z-index: 1;
    animation: fadeInUp 1.2s 1.2s both;
}
.scroll-hint__line {
    width: 48px;
    height: 1px;
    background: rgba(255,255,255,0.2);
    position: relative;
    overflow: hidden;
}
.scroll-hint__line::after {
    content: '';
    position: absolute;
    left: -100%;
    top: 0;
    width: 100%;
    height: 100%;
    background: var(--blue);
    animation: scanLine 2s 1.5s ease-in-out infinite;
}
@keyframes scanLine {
    0%  { left: -100%; }
    100% { left: 100%; }
}

/* CE Certification Sticker */
.hero-cert-sticker {
    position: absolute;
    bottom: 60px;
    right: var(--gutter);
    z-index: 2;
    display: flex;
    align-items: stretch;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 8px 36px rgba(0,0,0,0.36), 0 2px 8px rgba(0,0,0,0.2);
    transform: rotate(1.5deg);
    transform-origin: bottom right;
    animation: certStickerIn 0.65s 0.5s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes certStickerIn {
    from { opacity: 0; transform: rotate(1.5deg) scale(0.85) translateY(8px); }
    to   { opacity: 1; transform: rotate(1.5deg) scale(1) translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
    .hero-cert-sticker { animation: none; }
}

.cert-flag {
    display: flex;
    flex-direction: column;
    width: 10px;
    flex-shrink: 0;
}
.cert-flag__stripe { display: block; flex: 1; }
.cert-flag__stripe--black { background: #000; }
.cert-flag__stripe--red   { background: #CC0000; }
.cert-flag__stripe--gold  { background: #FFCE00; }

.cert-body {
    display: flex;
    align-items: center;
    gap: 14px;
    background: rgba(255,255,255,0.96);
    padding: 16px 22px 16px 18px;
}

.cert-body__mark {
    font-family: var(--font-display);
    font-size: 48px;
    font-weight: 900;
    color: #003399;
    line-height: 1;
    letter-spacing: -0.04em;
    flex-shrink: 0;
}

.cert-body__text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.cert-body__title {
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 700;
    color: var(--ink);
    letter-spacing: 0.01em;
    line-height: 1.25;
}
.cert-body__sub {
    font-family: var(--font-body);
    font-size: 13px;
    color: var(--body);
    line-height: 1.25;
}

/* Mobile: torna in alto a destra, dimensioni originali */
@media (max-width: 768px) {
    .hero-cert-sticker {
        bottom: auto;
        top: 82px;
        right: 16px;
        border-radius: 7px;
    }
    .cert-flag { width: 7px; }
    .cert-body {
        gap: 10px;
        padding: 10px 14px 10px 12px;
    }
    .cert-body__mark { font-size: 30px; }
    .cert-body__title { font-size: 11.5px; }
    .cert-body__sub { font-size: 10px; }
}

/* ── Section common ───────────────────────────────────────── */
.section {
    padding: var(--section-gap) 0;
}

.section-header {
    text-align: center;
    margin-bottom: clamp(48px, 6vw, 72px);
}
.section-header .section-lead {
    margin: 16px auto 0;
}

/* ── Features ─────────────────────────────────────────────── */
.features-section { background: var(--white); }

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.feature-card {
    padding: 36px 28px;
    background: var(--surface);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    position: relative;
    overflow: hidden;
}
.feature-card::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--blue), transparent);
    transform: scaleX(0);
    transition: transform 0.35s ease;
}
.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--border);
}
.feature-card:hover::before { transform: scaleX(1); }

.feature-card__icon {
    width: 48px;
    height: 48px;
    margin-bottom: 24px;
}

.feature-card__title {
    font-family: var(--font-body);
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 0.01em;
    color: var(--ink);
    margin-bottom: 12px;
}

.feature-card__body {
    font-size: 14px;
    line-height: 1.65;
    color: var(--body);
}

/* ── Target section (Per chi è) ──────────────────────────── */
.target-section { background: var(--dark-bg); }

.target-section .section-title { color: var(--white); }
.target-section .section-lead  { color: rgba(255,255,255,0.5); }

.target-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2px;
    background: rgba(255,255,255,0.06);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.target-item {
    padding: 40px 32px;
    background: var(--dark-bg);
    display: flex;
    flex-direction: column;
    transition: background 0.25s ease;
}
.target-item:hover { background: var(--dark-mid); }

.target-item__icon {
    width: 48px;
    height: 48px;
    margin-bottom: 24px;
    flex-shrink: 0;
}

.target-item__title {
    font-family: var(--font-body);
    font-size: 18px;
    font-weight: 700;
    color: var(--white);
    line-height: 1.25;
    margin-bottom: 12px;
}

.target-item__body {
    font-size: 14px;
    line-height: 1.65;
    color: rgba(255,255,255,0.45);
}

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

@media (max-width: 600px) {
    .target-grid { grid-template-columns: 1fr; }
    .target-item { padding: 32px 24px; }
}

/* ── Video section ────────────────────────────────────────── */
.video-section { background: var(--white); }

.video-wrap {
    position: relative;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 16 / 9;
    box-shadow: var(--shadow-lg);
    background: var(--dark-bg);
}
.video-wrap iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

/* ── Product section ──────────────────────────────────────── */
.product-section { background: var(--surface); }

.product-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(40px, 7vw, 96px);
    align-items: center;
    padding: clamp(40px, 6vw, 80px) 0;
}
.product-row + .product-row {
    border-top: 1px solid var(--border);
}
.product-row--reverse { direction: rtl; }
.product-row--reverse > * { direction: ltr; }

/* Image card */
.img-card {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: visible;
}
.img-card__inner {
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 4/3;
    background: var(--dark-mid);
    position: relative;
}
.img-card__img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    border-radius: var(--radius-lg);
    display: block;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
    /* If image fails to load it shows nothing, placeholder is on top */
}
.img-card__placeholder {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: -1;
    border-radius: var(--radius-lg);
    overflow: hidden;
}
.img-card__placeholder svg { width: 100%; height: 100%; }

/* Show placeholder when img fails */
.img-card__img:not([src]),
.img-card__img[src=""] {
    display: none;
}

.img-card__badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background: rgba(2,117,203,0.9);
    color: white;
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 5px 12px;
    border-radius: 4px;
    backdrop-filter: blur(4px);
}

/* Diagram image variant — contain, no crop */
.img-card--diagram {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    padding: 24px;
}

.img-card__img--diagram {
    width: 100%;
    aspect-ratio: 3/2;
    object-fit: contain;
    border-radius: 0;
    box-shadow: none;
    border: none;
    background: transparent;
    display: block;
}

/* Product content */
.product-row__content { display: flex; flex-direction: column; }
.product-row__content .section-title { margin-bottom: 20px; }

.product-cta { margin-top: 28px; align-self: flex-start; }

.product-desc {
    font-size: clamp(14px, 1.5vw, 16px);
    color: var(--body);
    margin-bottom: 36px;
    line-height: 1.7;
}

/* Specs grid */
.specs-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
}
.spec-item {
    padding: 16px 20px;
    border-right: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.spec-item:nth-child(even) { border-right: none; }
.spec-item:nth-last-child(-n+2) { border-bottom: none; }
.spec-key {
    font-size: 11px;
    color: var(--muted);
    font-family: var(--font-mono);
    letter-spacing: 0.06em;
    text-transform: uppercase;
}
.spec-val {
    font-family: var(--font-mono);
    font-size: 16px;
    font-weight: 500;
    color: var(--ink);
    letter-spacing: 0.02em;
}

/* Application list */
.application-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.application-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 15px;
    color: var(--body);
    line-height: 1.5;
}
.application-item__icon {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    margin-top: 1px;
}

/* ── Brochure section ─────────────────────────────────────── */
.brochure-section {
    background: var(--dark-bg);
    position: relative;
    overflow: hidden;
}
.brochure-section::before {
    content: '';
    position: absolute;
    top: -200px;
    left: -200px;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(2,117,203,0.08) 0%, transparent 70%);
    pointer-events: none;
}
.brochure-section::after {
    content: '';
    position: absolute;
    bottom: -200px;
    right: -100px;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(2,117,203,0.06) 0%, transparent 70%);
    pointer-events: none;
}

.brochure-layout {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(48px, 7vw, 100px);
    align-items: center;
}

.brochure-title {
    font-family: var(--font-body);
    font-size: clamp(36px, 5vw, 58px);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.01em;
    color: var(--white);
    margin-bottom: 20px;
}
.brochure-body {
    color: rgba(255,255,255,0.55);
    font-size: 16px;
    line-height: 1.7;
    margin-bottom: 32px;
    max-width: 420px;
}
.brochure-toc {
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.brochure-toc li {
    display: flex;
    align-items: center;
    gap: 12px;
    color: rgba(255,255,255,0.7);
    font-size: 15px;
}
.brochure-toc li svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

/* Form card */
.form-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: clamp(28px, 4vw, 48px);
    box-shadow: 0 32px 80px rgba(0,0,0,0.4);
}
.form-card__header {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 28px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border);
}
.form-card__header svg {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    margin-top: 2px;
}
.form-card__title {
    font-family: var(--font-body);
    font-size: 24px;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 4px;
}
.form-card__subtitle {
    font-size: 13px;
    color: var(--muted);
}

/* Form fields */
.form-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 18px;
}
.form-field label {
    font-size: 13px;
    font-weight: 600;
    color: var(--ink-mid);
    letter-spacing: 0.01em;
}
.form-field label span { color: var(--blue); }
.form-field label .form-optional { color: var(--muted); font-weight: 400; font-size: 11px; }
.form-field input {
    height: 46px;
    padding: 0 16px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 14px;
    color: var(--ink);
    background: var(--white);
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
}
.form-field input::placeholder { color: #aebdcc; }
.form-field input:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(2,117,203,0.1);
}
.form-field input.invalid {
    border-color: #e53e3e;
}
.form-error {
    font-size: 12px;
    color: #e53e3e;
    min-height: 16px;
}

.form-privacy {
    margin-top: 14px;
    font-size: 11.5px;
    color: var(--muted);
    text-align: center;
    line-height: 1.6;
}
.form-privacy a {
    color: var(--blue);
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* Success state */
.form-success {
    display: none;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 20px 0;
    gap: 12px;
}
.form-success.visible {
    display: flex;
    animation: fadeInUp 0.4s ease both;
}
.form-success__icon { width: 64px; height: 64px; }
.form-success h4 {
    font-family: var(--font-body);
    font-size: 28px;
    font-weight: 700;
    color: var(--ink);
}
.form-success p {
    color: var(--body);
    font-size: 14px;
    max-width: 260px;
}

/* ── CTA section ──────────────────────────────────────────── */
.cta-section {
    background: var(--dark-mid);
    text-align: center;
    position: relative;
    overflow: hidden;
}
.cta-section::before {
    content: '';
    position: absolute;
    inset: -50%;
    background: radial-gradient(ellipse 60% 60% at 50% 50%, rgba(2,117,203,0.1) 0%, transparent 70%);
    pointer-events: none;
}
.cta-inner {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 620px;
    margin: 0 auto;
    gap: 0;
}
.cta-title {
    font-family: var(--font-body);
    font-size: clamp(44px, 6vw, 72px);
    font-weight: 900;
    letter-spacing: -0.02em;
    color: var(--white);
    line-height: 1;
    margin-bottom: 20px;
}
.cta-body {
    color: rgba(255,255,255,0.5);
    font-size: clamp(15px, 1.7vw, 17px);
    max-width: 480px;
    margin-bottom: 40px;
    line-height: 1.65;
}
.cta-contacts {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 36px;
}
.contact-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: rgba(255,255,255,0.5);
    font-size: 14px;
    padding: 10px 20px;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 100px;
    transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.contact-pill svg { width: 14px; height: 14px; }
.contact-pill:hover {
    color: var(--white);
    border-color: rgba(255,255,255,0.25);
    background: rgba(255,255,255,0.05);
}

/* ── Use Cases ────────────────────────────────────────────── */
.usecases-section { background: var(--surface); }

.usecases-header {
    display: grid;
    grid-template-columns: 1fr;
    max-width: 720px;
    margin-bottom: clamp(40px, 5vw, 64px);
}

.usecases-tag {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--blue);
    margin-bottom: 16px;
}

.usecases-title {
    font-family: var(--font-body);
    font-size: clamp(28px, 4vw, 44px);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.01em;
    color: var(--ink);
    margin-bottom: 20px;
}

.usecases-body {
    font-size: clamp(14px, 1.5vw, 16px);
    color: var(--body);
    line-height: 1.7;
    max-width: 640px;
    margin-bottom: 14px;
}
.usecases-body:last-of-type { margin-bottom: 28px; }

.usecases-partner {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 18px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 100px;
}
.usecases-partner__label {
    font-size: 12px;
    color: var(--muted);
    font-family: var(--font-mono);
    letter-spacing: 0.06em;
    text-transform: uppercase;
}
.usecases-partner__name {
    font-size: 13px;
    font-weight: 700;
    color: var(--ink);
}

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

.usecases-photo {
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.usecases-photo img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    border-radius: var(--radius-lg);
    display: block;
    box-shadow: var(--shadow-md);
}

.usecases-photo figcaption {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--muted);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding-left: 2px;
}

@media (max-width: 700px) {
    .usecases-gallery { grid-template-columns: 1fr; }
}

/* ── Footer ───────────────────────────────────────────────── */
.footer {
    background: var(--dark-bg);
    border-top: 1px solid rgba(255,255,255,0.06);
    padding: 36px 0;
}

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

.footer-info {
    display: flex;
    flex-direction: column;
    gap: 3px;
}
.footer-info p {
    font-size: 12.5px;
    color: rgba(255,255,255,0.35);
    line-height: 1.5;
}

.footer-contacts {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}
.footer-contacts a {
    font-size: 13px;
    color: rgba(255,255,255,0.5);
    transition: color 0.2s;
}
.footer-contacts a:hover { color: var(--white); }
.footer-sep {
    color: rgba(255,255,255,0.2);
    font-size: 13px;
}

@media (max-width: 768px) {
    .footer-simple {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }
}

/* ── Demo upsell (dopo submit brochure) ──────────────────── */
.demo-upsell {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    width: 100%;
    text-align: center;
}
.demo-upsell p {
    font-size: 14px;
    font-weight: 600;
    color: var(--ink);
}

/* ── Modal ────────────────────────────────────────────────── */
.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(8, 17, 30, 0.7);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.28s ease;
}
.modal-overlay.open {
    opacity: 1;
    pointer-events: all;
}
.modal-overlay.open .modal {
    transform: translateY(0) scale(1);
    opacity: 1;
}

.modal {
    position: relative;
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: clamp(28px, 4vw, 48px);
    width: 100%;
    max-width: 600px;
    max-height: 90svh;
    overflow-y: auto;
    box-shadow: 0 40px 100px rgba(0,0,0,0.35);
    transform: translateY(20px) scale(0.98);
    opacity: 0;
    transition: transform 0.3s cubic-bezier(0.34,1.56,0.64,1), opacity 0.28s ease;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--muted);
    background: var(--surface);
    transition: background 0.2s, color 0.2s;
}
.modal-close:hover { background: var(--border); color: var(--ink); }

.modal-header {
    margin-bottom: 28px;
    padding-right: 32px;
}
.modal-title {
    font-size: clamp(26px, 4vw, 36px);
    font-weight: 800;
    color: var(--ink);
    line-height: 1.1;
    margin-bottom: 10px;
}
.modal-subtitle {
    font-size: 14px;
    color: var(--body);
    line-height: 1.6;
}

.demo-form__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
@media (max-width: 500px) {
    .demo-form__row { grid-template-columns: 1fr; }
}

.demo-success { display: none; }
.demo-success.visible { display: flex; }

/* ── Back to top ──────────────────────────────────────────── */
.back-to-top {
    position: fixed;
    bottom: 32px;
    right: 32px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--blue);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-blue);
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: none;
    z-index: 900;
}
.back-to-top svg { width: 18px; height: 18px; }
.back-to-top.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
}
.back-to-top:hover {
    background: var(--blue-dark);
    transform: translateY(-3px);
}

/* ── Animations ───────────────────────────────────────────── */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}

[data-animate="fade-up"] {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.7s cubic-bezier(0.4,0,0.2,1), transform 0.7s cubic-bezier(0.4,0,0.2,1);
}
[data-animate="fade-left"] {
    opacity: 0;
    transform: translateX(32px);
    transition: opacity 0.7s cubic-bezier(0.4,0,0.2,1), transform 0.7s cubic-bezier(0.4,0,0.2,1);
}
[data-animate].in-view {
    opacity: 1;
    transform: translate(0, 0);
}

[data-delay="100"] { transition-delay: 0.1s; }
[data-delay="200"] { transition-delay: 0.2s; }
[data-delay="300"] { transition-delay: 0.3s; }

/* ── Responsive ───────────────────────────────────────────── */

/* Tablet */
@media (max-width: 1024px) {
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px 48px; }
    .footer-brand { grid-column: span 2; }
}

/* Mobile landscape / small tablet */
@media (max-width: 768px) {
    /* Mobile: sfondo blu, immagine inline */
    .hero {
        background: var(--dark-bg);
    }
    .hero-bg-image {
        display: none;
    }
    .hero-layout {
        min-height: auto;
        padding-top: 120px;
        padding-bottom: 60px;
    }
    .hero-text { max-width: 100%; }
    .hero-model {
        font-size: clamp(56px, 16vw, 90px);
    }
    .hero-body { max-width: 100%; }
    .hero-metrics { gap: 16px; }
    .hero-mobile-img {
        display: block;
        margin: 28px 0 0;
        border-radius: var(--radius-lg);
        overflow: hidden;
        aspect-ratio: 16/9;
    }
    .hero-mobile-img img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

    .product-row {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .product-row--reverse { direction: ltr; }

    .brochure-layout {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .scroll-hint { display: none; }

    .cta-contacts { flex-direction: column; align-items: center; }
}

/* Mobile */
@media (max-width: 600px) {
    :root { --section-gap: 64px; }

    .hero-actions { flex-direction: column; }
    .hero-actions .btn { width: 100%; justify-content: center; }

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

    .specs-grid { grid-template-columns: 1fr; }
    .spec-item { border-right: none; }
    .spec-item:nth-last-child(-n+2) { border-bottom: 1px solid var(--border); }
    .spec-item:last-child { border-bottom: none; }

    .footer-grid { grid-template-columns: 1fr; }
    .footer-brand { grid-column: span 1; }

    .footer-bottom { flex-direction: column; align-items: flex-start; gap: 12px; }
    .footer-legal { flex-wrap: wrap; gap: 16px; }

    .back-to-top { bottom: 20px; right: 20px; }

    .brochure-section .section-title { font-size: clamp(28px, 9vw, 42px); }
}

/* Print */
@media print {
    .header, .hamburger, .scroll-hint, .back-to-top { display: none; }
    .hero { min-height: auto; padding: 40px 0; }
}
