:root {
    --navy: #062944;
    --navy2: #08243a;
    --blue: #087bd9;
    --cyan: #16d2f2;
    --pale: #f2f9fc;
    --text: #0a2b45;
    --muted: #527089;
    --line: #d7e5ed;
    --white: #fff
}

* {
    box-sizing: border-box
}

html {
    scroll-behavior: smooth
}

body {
    margin: 0;
    font-family: Inter, Segoe UI, Arial, sans-serif;
    color: var(--text);
    background: #fff;
    line-height: 1.55
}

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

.container {
    width: min(1180px, 92%);
    margin: auto
}

.topbar {
    height: 70px;
    background: #fff;
    border-bottom: 1px solid #e5edf2;
    position: sticky;
    top: 0;
    z-index: 20
}

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

.brand {
    display: flex;
    align-items: center
}

.brand img {
    width: 150px;
    height: auto;
    display: block
}

.brand .logo-mobile {
    display: none
}

.menu {
    display: flex;
    gap: 28px;
    margin-left: auto;
    font-size: 13px;
    font-weight: 700
}

.menu a {
    padding: 25px 0;
    position: relative
}

.menu a.active,
.menu a:hover {
    color: var(--blue)
}

.menu a.active:after {
    content: "";
    position: absolute;
    bottom: 13px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--cyan)
}

.cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--navy);
    color: #fff;
    border-radius: 999px;
    padding: 12px 20px;
    font-weight: 800;
    font-size: 12px
}

.cta:hover {
    background: #0b3b5f
}

.mobile-toggle {
    display: none
}

.hero {
    background: var(--navy);
    color: #fff;
    min-height: 410px;
    position: relative;
    overflow: hidden
}

.hero:after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(4, 34, 53, .98) 0%, rgba(4, 34, 53, .93) 38%, rgba(4, 34, 53, .28) 68%, rgba(4, 34, 53, .05) 100%);
    z-index: 1
}

.hero-bg {
    position: absolute;
    right: 0;
    top: 0;
    width: 64%;
    height: 100%;
    background: url('../assets/hero-tech.jpg') center right/cover no-repeat
}

.hero-inner {
    position: relative;
    z-index: 2;
    min-height: 410px;
    display: flex;
    align-items: center
}

.hero-copy {
    width: 52%;
    padding: 56px 0
}

.eyebrow {
    font-size: 18px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--cyan);
    font-weight: 900
}

.hero h1 {
    font-size: 48px;
    line-height: 1.06;
    max-width: 640px;
    margin: 12px 0 18px;
    letter-spacing: -1.5px
}

.hero h1 span {
    color: var(--cyan)
}

.hero p {
    max-width: 570px;
    color: #e5f3fa;
    font-size: 16px
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border-radius: 999px;
    padding: 13px 22px;
    background: var(--cyan);
    color: #00304b;
    font-weight: 900;
    margin-top: 12px
}

.btn.outline {
    background: transparent;
    border: 1px solid var(--cyan);
    color: var(--cyan)
}

.services {
    background: #f4fbfe;
    border-bottom: 1px solid var(--line)
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr)
}

.service {
    padding: 30px 22px 34px;
    text-align: center;
    border-right: 1px solid var(--line)
}

.service:last-child {
    border-right: 0
}

.icon {
    width: 50px;
    height: 50px;
    border: 2px solid var(--blue);
    border-radius: 50%;
    display: grid;
    place-items: center;
    margin: 0 auto 14px;
    color: var(--blue);
    font-size: 23px;
    font-weight: 900
}

.service h3 {
    font-size: 15px;
    line-height: 1.2;
    margin: 0 0 9px
}

.service p {
    font-size: 12px;
    color: var(--muted);
    margin: 0
}

.about {
    padding: 70px 0
}

.about-grid {
    display: grid;
    grid-template-columns: 42% 58%;
    align-items: center
}

.about-image {
    padding-right: 36px
}

.about-image img {
    width: 100%;
    display: block;
    box-shadow: 0 18px 45px rgba(5, 38, 59, .12)
}

.about-content {
    padding-left: 10px
}

.about-content h2 {
    font-size: 34px;
    line-height: 1.12;
    margin: 8px 0 16px
}

.about-content p {
    font-size: 15px;
    color: #3e6178
}

.values {
    margin-top: 25px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px 30px
}

.value {
    display: flex;
    gap: 13px
}

.value .vicon {
    color: var(--blue);
    font-size: 24px
}

.value strong {
    display: block
}

.value span {
    font-size: 12px;
    color: var(--muted)
}

.process {
    background: var(--navy);
    color: #fff;
    position: relative;
    overflow: hidden
}

.process:after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(3, 31, 49, .98) 0%, rgba(3, 31, 49, .92) 42%, rgba(3, 31, 49, .28) 100%)
}

.process-bg {
    position: absolute;
    right: 0;
    top: 0;
    width: 55%;
    height: 100%;
    background: url('../assets/process-tech.jpg') center/cover no-repeat
}

.process-inner {
    position: relative;
    z-index: 2;
    padding: 68px 0
}

.process h2 {
    font-size: 34px;
    margin: 7px 0 10px
}

.process p {
    max-width: 500px;
    color: #d7e8f2
}

.steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 34px;
    max-width: 760px
}

.step {
    text-align: center
}

.step .circle {
    width: 58px;
    height: 58px;
    border: 2px solid var(--cyan);
    border-radius: 50%;
    display: grid;
    place-items: center;
    margin: 0 auto 10px;
    color: var(--cyan);
    font-size: 20px
}

.step strong {
    display: block
}

.step span {
    font-size: 11px;
    color: #c8dce7
}

.contact {
    background: #f4fbfe;
    padding: 65px 0
}

.contact-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr .7fr;
    gap: 40px;
    align-items: center
}

.contact h2 {
    font-size: 32px;
    line-height: 1.15;
    margin: 8px 0 15px
}

.contact p {
    color: var(--muted)
}

.contact-list {
    border-left: 1px solid var(--line);
    padding-left: 35px
}

.contact-item {
    display: flex;
    gap: 14px;
    margin: 15px 0
}

.contact-item b {
    display: block
}

.contact-item span {
    font-size: 12px;
    color: var(--muted)
}

.contact-action {
    text-align: center;
    border-left: 1px solid var(--line);
    padding-left: 30px
}

.footer {
    background: var(--navy2);
    color: #dcecf5;
    padding: 48px 0 0
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr .8fr;
    gap: 45px;
    padding-bottom: 40px
}

.footer-logo {
    width: 180px;
    height: auto;
    display: block;
    margin-bottom: 15px;
    box-sizing: border-box
}

.footer h4 {
    color: #fff;
    margin: 0 0 14px
}

.footer p,
.footer li {
    font-size: 12px;
    color: #bdd2de
}

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

.footer li {
    margin: 9px 0
}

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

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, .16);
    padding: 17px 0;
    font-size: 11px;
    color: #9fb8c8;
    display: flex;
    justify-content: space-between
}

.page-hero {
    background: var(--navy);
    color: #fff;
    padding: 72px 0
}

.page-hero h1 {
    font-size: 44px;
    margin: 10px 0
}

.page-hero p {
    max-width: 720px;
    color: #d9ebf3
}

.content {
    padding: 70px 0
}

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

.card {
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 10px 25px rgba(6, 41, 68, .05)
}

.card h3 {
    margin-top: 0
}

.contact-form {
    display: grid;
    gap: 15px;
    max-width: 700px
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 14px;
    border: 1px solid #cbdce5;
    border-radius: 8px;
    font: inherit
}

.contact-form textarea {
    min-height: 150px
}

.small {
    font-size: 12px;
    color: var(--muted)
}

@media(max-width:900px) {
    .menu {
        gap: 15px;
        font-size: 11px
    }

    .nav {
        gap: 12px
    }

    .hero h1 {
        font-size: 40px
    }

    .service-grid {
        grid-template-columns: repeat(2, 1fr)
    }

    .service:nth-child(2) {
        border-right: 0
    }

    .about-grid,
    .contact-grid,
    .footer-grid {
        grid-template-columns: 1fr
    }

    .about-image {
        padding: 0
    }

    .about-content {
        padding-top: 30px
    }

    .contact-list,
    .contact-action {
        border-left: 0;
        padding-left: 0
    }

    .steps {
        max-width: none
    }
}

@media(max-width:680px) {

    .topbar,
    .nav {
        height: 64px
    }

    .topbar {
        position: sticky
    }

    .nav {
        position: relative
    }

    .brand img {
        width: 120px
    }

    .brand .logo-desktop {
        display: none
    }

    .brand .logo-mobile {
        display: block
    }

    .menu {
        display: none;
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        margin: 0;
        padding: 10px 20px 18px;
        flex-direction: column;
        gap: 0;
        background: #fff;
        border-top: 1px solid #e5edf2;
        box-shadow: 0 10px 24px rgba(6, 41, 68, .12);
        z-index: 30
    }

    .menu.open {
        display: flex
    }

    .menu a {
        padding: 14px 0;
        border-bottom: 1px solid #edf2f5
    }

    .menu a:last-child {
        border-bottom: 0
    }

    .menu a.active:after {
        display: none
    }

    .cta {
        display: none
    }

    .mobile-toggle {
        display: block;
        margin-left: auto;
        background: none;
        border: 0;
        font-size: 24px;
        line-height: 1;
        color: var(--navy);
        cursor: pointer;
        padding: 8px
    }

    .mobile-toggle[aria-expanded="true"] {
        color: var(--blue)
    }

    .hero {
        min-height: 540px
    }

    .hero-bg {
        width: 100%;
        opacity: .48
    }

    .hero:after {
        background: linear-gradient(90deg, rgba(4, 34, 53, .96), rgba(4, 34, 53, .78))
    }

    .hero-inner {
        min-height: 540px
    }

    .hero-copy {
        width: 100%;
        padding: 45px 0
    }

    .hero h1 {
        font-size: 35px
    }

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

    .service {
        border-right: 0;
        border-bottom: 1px solid var(--line)
    }

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

    .process-bg {
        width: 100%;
        opacity: .3
    }

    .process-inner {
        padding: 55px 0
    }

    .steps {
        grid-template-columns: repeat(2, 1fr)
    }

    .footer-bottom {
        display: block
    }

    .footer-bottom div {
        margin-top: 7px
    }
}

/* Campo antispam invisibile per il modulo Contatti */
.hp-field {
    position: absolute !important;
    left: -10000px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}

.form-status {
    padding: 12px 14px;
    border-radius: 10px;
    margin-bottom: 14px;
    font-size: .95rem;
}

.form-status.success {
    background: #eaf8f0;
    border: 1px solid #b7e4c7;
    color: #176b3a;
}

.form-status.error {
    background: #fff3f3;
    border: 1px solid #efc0c0;
    color: #9b2020;
}