:root {
    --bg: #0d1326;
    --panel: #121a33;
    --panel2: #17213d;
    --text: #f7fbff;
    --muted: #a8b3c8;
    --cyan: #16c6f4;
    --blue: #0589d8;
    --line: rgba(255,255,255,.12);
    --shadow: 0 25px 80px rgba(0,0,0,.35);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Inter, system-ui, sans-serif;
    background: var(--bg);
    color: var(--text);
    overflow-x: hidden;
}

.site-bg {
    position: fixed;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(circle at 20% 10%, rgba(22,198,244,.20), transparent 30%),
        radial-gradient(circle at 80% 20%, rgba(5,137,216,.20), transparent 28%),
        linear-gradient(135deg, #090e1c, #141d36 55%, #07111f);
}

.site-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
    background-size: 54px 54px;
    mask-image: linear-gradient(to bottom, black, transparent);
}

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

/* HEADER */

.topbar {
    position: fixed;
    top: 18px;
    left: 50%;
    transform: translateX(-50%);
    width: min(1180px, calc(100% - 32px));
    z-index: 20;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 12px 18px;
    border: 1px solid var(--line);
    border-radius: 22px;

    background: rgba(13,19,38,.72);
    backdrop-filter: blur(18px);
    box-shadow: var(--shadow);
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;

    font-weight: 900;
    letter-spacing: .5px;
}

.brand img {
    width: 46px;
    height: 46px;
    object-fit: cover;
    border-radius: 13px;
}

.brand span span {
    color: var(--cyan);
}

.nav {
    display: flex;
    gap: 22px;

    color: var(--muted);
    font-weight: 700;
}

.nav a:hover {
    color: var(--cyan);
}

.nav-toggle {
    display: none;
    background: none;
    border: 0;
    color: white;
    font-size: 28px;
}

/* HERO VERTICALE */

.hero {
    min-height: 100vh;
    width: min(1180px, calc(100% - 32px));
    margin: auto;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    text-align: center;
    padding: 130px 0 90px;
}

.hero-copy {
    width: 100%;
    max-width: 1000px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.eyebrow {
    color: var(--cyan);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .16em;
    font-size: .78rem;
}

.center {
    text-align: center;
}

.hero h1 {
    max-width: 1000px;
    margin: 34px 0 22px;

    font-size: clamp(2.6rem, 7vw, 5.8rem);
    line-height: .95;
    letter-spacing: -.07em;
}

.lead {
    max-width: 820px;
    margin: 0 auto;

    font-size: 1.18rem;
    line-height: 1.8;
    color: var(--muted);
}

.hero-actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 14px;

    margin: 34px 0;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 15px 23px;
    border-radius: 999px;
    border: 1px solid var(--line);

    font-weight: 900;
    transition: .25s;
}

.btn.primary {
    background: linear-gradient(135deg, var(--cyan), var(--blue));
    color: white;
    box-shadow: 0 14px 35px rgba(22,198,244,.25);
}

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

.btn.ghost {
    background: rgba(255,255,255,.06);
}

.stats {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
}

.stats span {
    padding: 12px 16px;
    border-radius: 16px;

    background: rgba(255,255,255,.06);
    border: 1px solid var(--line);

    color: var(--muted);
}

.stats b {
    display: block;
    color: white;
}

.hero-card {
    position: relative;

    width: 280px;
    height: 280px;
    min-height: 280px;

    display: grid;
    place-items: center;

    margin: 0 auto 20px;
    overflow: hidden;

    border: 1px solid var(--line);
    border-radius: 42px;

    background: linear-gradient(
        180deg,
        rgba(255,255,255,.10),
        rgba(255,255,255,.04)
    );

    box-shadow: var(--shadow);
}

.hero-card img {
    width: 58%;

    position: relative;
    z-index: 2;

    filter: drop-shadow(
        0 20px 35px rgba(0,0,0,.35)
    );
}

.orbit {
    position: absolute;

    width: 170px;
    height: 170px;

    border: 1px solid rgba(22,198,244,.45);
    border-radius: 50%;

    animation: spin 14s linear infinite;
}

.orbit::before,
.orbit::after {
    content: "";

    position: absolute;

    width: 10px;
    height: 10px;

    background: var(--cyan);
    border-radius: 50%;

    box-shadow: 0 0 14px var(--cyan);
}

.orbit::before {
    top: 14px;
    left: 28px;
}

.orbit::after {
    bottom: 14px;
    right: 26px;
}

.pulse-card {
    position: absolute;
    right: 24px;
    bottom: 24px;
    z-index: 3;

    padding: 18px 20px;
    border-radius: 22px;
    border: 1px solid var(--line);

    background: rgba(7,13,30,.75);
    backdrop-filter: blur(12px);
}

.pulse-card small {
    display: block;
    margin-top: 5px;
    color: var(--muted);
}

/* SEZIONI */

.intro,
.services,
.process,
.sectors,
.cta,
.contact {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto 110px;
}

.intro {
    display: grid;
    grid-template-columns: .8fr 1fr;
    gap: 55px;

    padding: 44px;
    border-radius: 34px;
    border: 1px solid var(--line);

    background: rgba(255,255,255,.055);
}

h2 {
    margin: 10px 0 18px;

    font-size: clamp(2rem, 4vw, 3.4rem);
    letter-spacing: -.055em;
    line-height: 1.05;
}

p {
    color: var(--muted);
    line-height: 1.75;
}

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

    margin-top: 34px;
}

.service,
.step,
.contact-form {
    padding: 26px;
    border-radius: 28px;
    border: 1px solid var(--line);

    background: linear-gradient(
        180deg,
        rgba(255,255,255,.085),
        rgba(255,255,255,.035)
    );

    box-shadow: 0 15px 50px rgba(0,0,0,.18);
    transition: .25s;
}

.service:hover,
.step:hover {
    transform: translateY(-8px);
    border-color: rgba(22,198,244,.55);
}

.service-icon {
    font-size: 34px;
}

.service h3,
.step h3 {
    margin-bottom: 8px;
}

.service a {
    color: var(--cyan);
    font-weight: 900;
}

/* PROCESS */

.process {
    display: grid;
    grid-template-columns: .75fr 1.25fr;
    gap: 30px;
    align-items: start;
}

.steps {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.step b {
    color: var(--cyan);
    font-size: 2.2rem;
}

/* SETTORI */

.sector-wrap {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;

    margin-top: 28px;
}

.sector-wrap span {
    padding: 16px 24px;
    border-radius: 999px;
    border: 1px solid rgba(22,198,244,.28);

    background: rgba(22,198,244,.10);
    font-weight: 900;
}

/* CTA */

.cta {
    text-align: center;

    padding: 60px 26px;
    border-radius: 38px;
    border: 1px solid rgba(22,198,244,.35);

    background: linear-gradient(
        135deg,
        rgba(22,198,244,.22),
        rgba(5,137,216,.10)
    );
}

/* CONTATTI */

.contact {
    display: grid;
    grid-template-columns: .85fr 1.15fr;
    gap: 30px;
    align-items: start;
}

.contact-info {
    padding: 34px;
}

.contact-info ul {
    list-style: none;
    padding: 0;
}

.contact-info li {
    padding: 14px 0;
    border-bottom: 1px solid var(--line);

    color: var(--muted);
}

.contact-info strong {
    display: block;
    color: white;
}

.contact-form {
    display: grid;
    gap: 14px;
}

input,
select,
textarea {
    width: 100%;

    padding: 16px 18px;
    border-radius: 16px;
    border: 1px solid var(--line);

    background: rgba(255,255,255,.06);
    color: white;
    font: inherit;
}

select option {
    color: #111;
}

textarea {
    resize: vertical;
}

.privacy {
    color: var(--muted);
    font-size: .92rem;
}

/* FOOTER */

.footer {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;

    display: grid;
    grid-template-columns: 1.2fr .8fr 1fr;
    gap: 30px;

    padding: 50px 0;
    border-top: 1px solid var(--line);
}

.footer img {
    width: 180px;
}

.footer a {
    color: var(--cyan);
}

.copyright {
    text-align: center;
    color: var(--muted);
    padding: 20px;
}

/* FLOATING BUTTON */

.floating {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 30;

    padding: 14px 18px;
    border-radius: 999px;

    background: #23d366;
    color: #06130b;
    font-weight: 900;
    box-shadow: var(--shadow);
}

/* THANKS PAGE */

.thanks {
    min-height: 100vh;

    display: grid;
    place-content: center;

    text-align: center;
    padding: 20px;
}

/* ANIMATIONS */

.reveal {
    opacity: 0;
    transform: translateY(22px);
    transition: .8s ease;
}

.reveal.visible {
    opacity: 1;
    transform: none;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* RESPONSIVE TABLET */

@media (max-width: 920px) {

    .nav {
        position: absolute;
        top: 76px;
        left: 0;
        right: 0;

        display: none;
        flex-direction: column;

        padding: 18px;
        border: 1px solid var(--line);
        border-radius: 22px;

        background: #10182e;
    }

    .nav.open {
        display: flex;
    }

    .nav-toggle {
        display: block;
    }

    .hero,
    .intro,
    .process,
    .contact,
    .footer {
        grid-template-columns: 1fr;
    }

    .hero {
        padding-top: 130px;
    }

    .hero-card {
    width: 240px;
    height: 240px;
    min-height: 240px;
    }

    .orbit {
    width: 150px;
    height: 150px;
    }

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

/* RESPONSIVE MOBILE */

@media (max-width: 560px) {

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

    .hero h1 {
        font-size: 2.65rem;
    }

    .brand > span {
        display: none;
    }

    .topbar {
        top: 10px;
    }

    .intro {
        padding: 24px;
    }

    .footer {
        padding-bottom: 80px;
    }

    .floating {
        left: 20px;
        right: 20px;
        text-align: center;
    }

    .hero-card {
    width: 220px;
    height: 220px;
    min-height: 220px;
    }

    .orbit {
    width: 130px;
    height: 130px;
    }

    .hero-card img {
    width: 55%;
    }

    .hero-actions {
        width: 100%;
    }

    .hero-actions .btn {
        width: 100%;
    }

    .stats {
        width: 100%;
    }

    .stats span {
        width: 100%;
    }
}