/* =========================================================
   STIM - Base stylesheet
   Naming: light BEM. Blocks are used only where useful.
   ========================================================= */

:root {
    --color-primary: #0787f9;
    --color-primary-dark: #056bc7;
    --color-navy: #0b2547;
    --color-text: #233b58;
    --color-muted: #6d8198;
    --color-line: #dfe8f1;
    --color-surface: #f5f9fc;
    --color-white: #ffffff;

    --container: 1100px;
    --radius: 7px;
    --radius-lg: 10px;

    --shadow-soft: 0 8px 30px rgba(20, 60, 100, .07);

    --space-1: 8px;
    --space-2: 16px;
    --space-3: 24px;
    --space-4: 32px;
    --space-5: 48px;
    --space-6: 64px;
    --space-7: 88px;

    --image-webapp: url("../assets/images/desk_103.jpg");
}

/* ---------- Reset ---------- */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--color-text);
    background: var(--color-white);
    font-family: 'Poppins', Arial;
    font-size: 15px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}

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

img.inline {
    display: inline-block;
}

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

button,
input,
textarea {
    font: inherit;
}

button {
    cursor: pointer;
}


label {
    font-weight: bold;
}

input[type=text],
input[type=password],
input[type=email],
textarea {
    padding: 10px 20px;
}

textarea {
    width: 100%;
}


.btn-send input {
    cursor: pointer;
    border: 0;
    padding: 10px;
    background-color: var(--color-primary);
    color: #fff;
    border-radius: 3px;
    min-width: 150px;
    white-space: break-spaces;
}

.btn-send input:disabled {
    background-color: #ffffff;
    color: #222;
    cursor: default;
    border: dashed 1px #aaa;
}


/* menu grid */

.menu-grid {}

.menu-grid a {
    margin-bottom: 10px;

}


.text-center {
    text-align: center;
}

.text-muted {
    color: var(--color-muted)
}


/* --------------------------------------- */
.container__contact {
    border: solid 1px var(--color-primary);
    border-radius: 10px;
    padding: 30px;
}

form > div {
    margin-bottom: 20px;
}




.container__contact label {
    display: block;
}


.container {
    width: min(calc(100% - 40px), var(--container));
    margin-inline: auto;
}

/* ---------- Typography ---------- */

.eyebrow {
    margin: 0 0 6px;
    color: var(--color-primary);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.section-title {
    margin: 0;
    color: var(--color-navy);
    font-size: clamp(25px, 3vw, 34px);
    font-weight: 500;
    line-height: 1.12;
    letter-spacing: -.035em;
}

.section-intro {
    max-width: 520px;
    margin: 10px 0 0;
    color: var(--color-muted);
}

.text-link {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-top: 18px;
    color: var(--color-primary);
    font-size: 12px;
    font-weight: 600;
}

.text-link::after {
    content: "→";
    font-size: 15px;
}

/* ---------- Buttons ---------- */

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-height: 38px;
    padding: 0 18px;
    border: 0;
    border-radius: 999px;
    background: var(--color-primary);
    color: var(--color-white);
    font-size: 12px;
    font-weight: 600;
    transition: transform .2s ease, background .2s ease;

}

.button:hover {
    background: var(--color-primary-dark);
    transform: translateY(-1px);
}

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

.button--outline:hover {
    background: var(--color-primary);
    color: var(--color-white);
}

/* ---------- Header ---------- */

.site-header {
    position: relative;
    z-index: 10;
    background: rgba(255, 255, 255, .96);
    border-bottom: 1px solid rgba(220, 230, 240, .6);
}

.site-header__inner {
    min-height: 58px;
    display: flex;
    align-items: center;
    gap: 30px;
    width: 100%;
    max-width: 1000px;
    flex-direction: row;
    justify-content: space-between;
}


.site-header__inner > * {
    flex: 1;
}



.logo {
    display: inline-flex;
    align-items: center;
}

.logo img {
    width: 156px;
    height: auto;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 28px;
}

.main-nav a {
    position: relative;
    color: #425873;
    font-size: 11px;
}

.main-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -9px;
    height: 1px;
    background: var(--color-primary);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform .2s ease;
}

.main-nav a:hover::after,
.main-nav a[aria-current="page"]::after {
    transform: scaleX(1);
}

.header-cta {
    min-width: 108px;
}

/* ---------- Hero ---------- */

.hero {
    position: relative;
    min-height: 370px;
    display: flex;
    align-items: center;
    overflow: hidden;
    background:
        linear-gradient(90deg, rgba(247, 250, 252, .98) 0%, rgba(247, 250, 252, .88) 29%, rgba(247, 250, 252, .08) 66%),
        url("../assets/images/hero_02.jpg") center / cover no-repeat;
}

.hero__content {
    position: relative;
    z-index: 1;
    width: 52%;
    padding-block: 70px;
}

.hero__title {
    max-width: 560px;
    margin: 0;
    color: var(--color-navy);
    font-size: clamp(30px, 3vw, 45px);
    font-weight: normal;
    line-height: 60px;
    letter-spacing: -2px;
}

.hero__title strong {
    color: var(--color-primary);
    font-weight: 400;
}

.hero__text {
    max-width: 440px;
    margin: 14px 0 20px;
    color: #314760;
    font-size: 13px;
    line-height: 1.4;
}

.hero__webapp {
    background:
        linear-gradient(90deg, rgba(247, 250, 252, .98) 0%, rgba(247, 250, 252, .88) 29%, rgba(247, 250, 252, .08) 66%),
        url("../assets/images/desk_102.jpg") center / cover no-repeat;
}


.hero__progetti {
    background:
        linear-gradient(90deg, rgba(247, 250, 252, .98) 0%, rgba(247, 250, 252, .88) 29%, rgba(247, 250, 252, .08) 66%),
        url("../assets/images/progetti_01.jpg") center / cover no-repeat;
}

.hero__code {
    background:
        linear-gradient(90deg, rgba(247, 250, 252, .98) 0%, rgba(247, 250, 252, .88) 29%, rgba(247, 250, 252, .08) 66%),
        url("../assets/images/hero_03.jpg") center / cover no-repeat;
}

.hero__nosoftware {
    background: linear-gradient(90deg, rgb(247 250 252 / 61%) 0%, rgb(247 250 252 / 62%) 29%, rgba(247, 250, 252, .08) 66%),
        url("../assets/images/hero_04.jpg") center / cover no-repeat;

    filter: sepia(0.5) saturate(2) contrast(0.9);
    min-height: 40vh;

}

.hero__contatti {
    min-height: 500px;
}



/* ---------- Intro / process ---------- */

.intro {
    padding-block: 42px 38px;
}

.intro__grid {
    display: grid;
    grid-template-columns: 1.05fr 1.95fr;
    gap: 55px;
    align-items: start;
}

.intro__text {
    max-width: 350px;
}

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

.process__item {
    min-height: 112px;
    padding: 0 24px;
    border-left: 1px solid var(--color-line);
}

.process__icon {
    width: 24px;
    height: 24px;
    margin-bottom: 12px;
    color: var(--color-navy);
}

.process__title {
    margin: 0 0 4px;
    color: var(--color-navy);
    font-size: 13px;
    font-weight: 600;
}

.process__text {
    margin: 0;
    color: var(--color-muted);
    font-size: 14px;
    line-height: 1.45;
}

/* ---------- Feature banner ---------- */

.feature {
    position: relative;
    min-height: 168px;
    display: flex;
    align-items: center;
    overflow: hidden;
    border-radius: var(--radius-lg);
    background:
        linear-gradient(90deg, rgba(237, 247, 253, .98) 0%, rgba(237, 247, 253, .91) 39%, rgba(237, 247, 253, .08) 70%),
        url("../assets/images/desk_102.jpg") center / cover no-repeat;

}

.feature_nosoftware {
    background: linear-gradient(90deg, rgb(247 250 252 / 61%) 0%, rgb(247 250 252 / 62%) 29%, rgba(247, 250, 252, .08) 66%),
        url("../assets/images/hero_04.jpg") center / cover no-repeat;
    filter: sepia(0.5) saturate(2) contrast(0.9);

}


.feature_nosoftware .feature__text {
    color: black;
}


.feature__waycommerce {
    background-image: url(../assets/images/way_c/101.jpg);
    color: #fff !important;
    min-height: 400px;
    background-size: cover;
    background-position: bottom;
}

.feature__waycommerce .feature__title,
.feature__waycommerce .feature__text,
.feature__waycommerce .eyebrow {
    color: #fff;
}

.feature__waycommerce .feature__text {
    font-size: inherit;
}

.feature__content {
    width: 48%;
    padding: 28px 22px;
}

.feature__title {
    max-width: 330px;
    margin: 0;
    color: var(--color-navy);
    font-size: 23px;
    font-weight: 500;
    line-height: 1.08;
    letter-spacing: -.035em;
}

.feature__text {
    max-width: 340px;
    margin: 8px 0 0;
    color: var(--color-muted);
    line-height: 1.4;
}

/* ---------- Products ---------- */

.section {
    padding-block: 46px;
}

.products__intro {
    margin-bottom: 20px;
}

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

.product-card {
    overflow: hidden;
    border: 1px solid var(--color-line);
    border-radius: var(--radius);
    background: var(--color-white);
}

.product-card__image {
    /*height: 92px;*/
    object-fit: cover;
    width: 100%;
    background: var(--color-surface);
    padding: 15px;
}

.product-card__body {
    padding: 16px 20px 18px;
}

.product-card__title {
    margin: 0;
    color: var(--color-navy);
    font-size: 14px;
    font-weight: 600;
}

.product-card__text {
    max-width: 260px;
    margin: 6px 0 0;
    color: var(--color-muted);
    font-size: 14px;
}

.product-card .text-link {
    margin-top: 12px;
}

/* ---------- message slogan strip ---------- */

.slogan-strip {
    padding-block: 25px;
    background: #ffcf0038;
    color: #333;
}


.slogan-strip .eyebrow {
    color: #ad0000;
}

.slogan-strip .section-intro {
    color: #ad0000;
}



.slogan-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}


.slogan-grid .product-card {
    border: 0;
    background-color: #6aff6a30;
}




/* ---------- Support strip ---------- */
.support-strip {
    padding-block: 25px;
    background: #f2f8fc;
}

.support-strip__grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 80px;
    align-items: center;
    min-height: 150px;
}

.support-strip__title {
    margin: 0;
    color: var(--color-navy);
    font-size: 22px;
    font-weight: 500;
}

/* ---------- Clients ---------- */

.clients {
    padding-block: 42px;
}

.clients__grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 55px;
    align-items: center;
}

.client-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.client-item {
    padding: 8px 18px;
    border-left: 1px solid var(--color-line);
    text-align: center;
    color: var(--color-muted);
    font-size: 10px;
}


.client-item a.text-link {
    margin: 0;
}


.client-item strong {
    display: block;
    margin-bottom: 2px;
    color: #536d87;
    font-size: 11px;
}

/* ---------- Video ---------- */

.video-banner {
    position: relative;
    min-height: 122px;
    display: flex;
    align-items: center;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background:
        linear-gradient(90deg, rgba(5, 31, 56, .82), rgba(5, 31, 56, .12)),
        url("../assets/images/video.jpg") center / cover no-repeat;
}

.video-banner__content {
    padding: 25px 30px;
    color: white;
}

.video-banner__content .eyebrow,
.video-banner__content .section-title {
    color: white;
}

.video-banner__content .section-title {
    font-size: 23px;
}

.video-button {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    transform: translate(-50%, -50%);
    border: 1px solid rgba(255, 255, 255, .85);
    border-radius: 50%;
    background: rgba(10, 35, 58, .25);
    color: white;
    font-size: 20px;
}

/* ---------- Reasons ---------- */

.reasons {
    padding-block: 100px;
}

.reasons__grid {
    display: grid;
    grid-template-columns: 1fr 2.5fr;
    gap: 45px;
    align-items: center;
}

.reason-list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    align-content: center;
    align-items: center;
}

.reason {
    padding: 0 20px;
    border-left: 1px solid var(--color-line);
}

.reason__title {
    margin: 0 0 4px;
    color: var(--color-navy);
    font-size: 11px;
    font-weight: 600;
}

.reason__text {
    margin: 0;
    color: var(--color-muted);
    font-size: 14px;
    line-height: 1.4;
}

/* ---------- Quote ---------- */

.quote {
    padding-block: 17px;
    background: #eaf5fc;
    color: var(--color-navy);
    text-align: center;
}

.quote__text {
    margin: 0;
    font-size: 15px;
    font-style: italic;
}

/* ---------- Contact ---------- */

.contact {
    padding-block: 42px;
}

.contact__grid {
    display: grid;
    grid-template-columns: .9fr 1.5fr .75fr;
    gap: 30px;
}

.contact-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.form-field {
    width: 100%;
    min-height: 38px;
    padding: 8px 12px;
    border: 1px solid var(--color-line);
    border-radius: 8px;
    outline: none;
    color: var(--color-text);
    font-size: 11px;
}

.form-field:focus {
    border-color: var(--color-primary);
}

.form-field--full {
    grid-column: 1 / -1;
    min-height: 80px;
    resize: vertical;
}

.contact-info {
    padding-left: 22px;
    border-left: 1px solid var(--color-line);
    color: var(--color-muted);
    font-size: 10px;
}

.contact-info p {
    margin: 0 0 12px;
}

/* ---------- Footer ---------- */

.site-footer {
    padding-block: 25px 18px;
    border-top: 1px solid var(--color-line);
}

.site-footer__top {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 30px;
    align-items: end;
}

.site-footer__nav {
    display: flex;
    gap: 24px;
    font-size: 9px;
    color: var(--color-muted);
}

.site-footer__social {
    justify-self: end;
    display: flex;
    gap: 15px;
    color: var(--color-navy);
}

.site-footer__bottom {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding-top: 14px;
    margin-top: 14px;
    border-top: 1px solid var(--color-line);
    color: #8798aa;
}

/* =========================================================
   DETAIL TEMPLATE
   ========================================================= */

.detail-hero {
    padding-block: 72px 58px;
    background: linear-gradient(135deg, #f3f9fd 0%, #ffffff 72%);
    border-bottom: 1px solid var(--color-line);
}

.detail-hero__grid {
    display: grid;
    grid-template-columns: 1.15fr .85fr;
    gap: 70px;
    align-items: center;
}

.detail-hero__title {
    margin: 0;
    color: var(--color-navy);
    font-size: clamp(40px, 5vw, 58px);
    font-weight: 400;
    line-height: 1;
    letter-spacing: -.055em;
}

.detail-hero__lead {
    max-width: 560px;
    margin: 18px 0 0;
    color: var(--color-muted);
    font-size: 15px;
}

.detail-hero__image {
    min-height: 300px;
    border-radius: var(--radius-lg);
    background: url("../assets/images/detail-hero.jpg") center / cover no-repeat;
    box-shadow: var(--shadow-soft);
}

.detail-content {
    padding-block: 65px;
}

.detail-content__grid {
    display: grid;
    grid-template-columns: 1.6fr .7fr;
    gap: 90px;
}

.detail-content h2 {
    margin: 0 0 16px;
    color: var(--color-navy);
    font-size: 30px;
    font-weight: 500;
    line-height: 1.15;
    letter-spacing: -.035em;
}

.detail-content p {
    color: var(--color-muted);
}

.detail-content__sidebar {
    padding-left: 25px;
    border-left: 1px solid var(--color-line);
}

.detail-meta {
    margin: 0;
}

.detail-meta__item {
    padding: 12px 0;
    border-bottom: 1px solid var(--color-line);
}

.detail-meta__label {
    display: block;
    margin-bottom: 3px;
    color: var(--color-muted);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.detail-meta__value {
    color: var(--color-navy);
    font-size: 13px;
}

.detail-section {
    padding-block: 55px;
    border-top: 1px solid var(--color-line);
}

.detail-section--surface {
    background: var(--color-surface);
}

.detail-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 28px;
}

.detail-card {
    padding: 25px;
    border: 1px solid var(--color-line);
    border-radius: var(--radius);
    background: white;
}

.detail-card h3 {
    margin: 0 0 8px;
    color: var(--color-navy);
    font-size: 15px;
}

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

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
    .main-nav {
        display: none;
    }

    .intro__grid,
    .clients__grid,
    .reasons__grid,
    .detail-hero__grid,
    .detail-content__grid {
        grid-template-columns: 1fr;
        gap: 35px;
    }

    .hero__content {
        width: 65%;
    }

    .process {
        grid-template-columns: repeat(2, 1fr);
        row-gap: 25px;
    }

    .intro__text,
    .section-intro {
        max-width: inherit;
    }

    .slogan-grid,
    .product-grid,
    .detail-cards {
        grid-template-columns: 1fr;
    }

    .support-strip__grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .client-list,
    .reason-list {
        grid-template-columns: repeat(2, 1fr);
        row-gap: 20px;
    }

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

    .contact-info {
        padding-left: 0;
        border-left: 0;
    }


    div.reason img {
        max-width: 100px;
    }

    .product-card__text {
        max-width: inherit;
    }

    /**/
}

.hero__content .header-cta {
    display: none;
}


@media (max-width: 600px) {
    .container {
        width: min(calc(100% - 28px), var(--container));
    }

    .header-cta {
        display: none;
    }

    .hero__content .header-cta {
        display: inline-flex;
    }



    .hero__content {
        width: 100%;
        padding-block: 42px;
    }

    .hero__title {
        font-size: 35px;
        line-height: 1em;
    }

    .feature__content {
        width: 72%;
    }

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

    .site-footer__social {
        justify-self: start;
    }

    .site-footer__bottom {
        flex-direction: column;
    }




    /**/
}








/* Monitor standard e portatili */
@media screen and (max-width: 1366px) {

    .hero {
        min-height: 460px;
        align-items: flex-end;
        background:
            linear-gradient(0deg, rgba(247, 250, 252, .98) 0%, rgba(247, 250, 252, .78) 52%, rgba(247, 250, 252, .05) 100%),
            url("../assets/images/hero_02.jpg") center / cover no-repeat;
    }

    .hero__webapp {
        background:
            linear-gradient(90deg, rgba(247, 250, 252, .98) 0%, rgba(247, 250, 252, .88) 29%, rgba(247, 250, 252, .08) 66%),
            var(--image-webapp) center / cover no-repeat;
    }

    .hero__progetti {
        background:
            linear-gradient(90deg, rgba(247, 250, 252, .98) 0%, rgba(247, 250, 252, .88) 29%, rgba(247, 250, 252, .08) 66%),
            url("../assets/images/progetti_01.jpg") center / cover no-repeat;
    }

    .hero__code {
        background:
            linear-gradient(90deg, rgba(247, 250, 252, .98) 0%, rgba(247, 250, 252, .88) 29%, rgba(247, 250, 252, .08) 66%),
            url("../assets/images/hero_03.jpg") center / cover no-repeat;
    }

    .hero__nosoftware {
        background: linear-gradient(90deg, rgb(247 250 252 / 61%) 0%, rgb(247 250 252 / 62%) 29%, rgba(247, 250, 252, .08) 66%),
            url("../assets/images/hero_04.jpg") center / cover no-repeat;

        filter: sepia(0.5) saturate(2) contrast(0.9);
        min-height: 40vh;

    }


    .logo img {
        width: 400px;
        height: auto;
    }

    /* ... */
}

/* Monitor Full HD */
@media screen and (min-width: 1367px) and (max-width: 1920px) {

    .logo img {
        width: 400px;
        height: auto;
    }

    /**/
}

/* Monitor QHD e monitor grandi */
@media screen and (min-width: 1921px) and (max-width: 2559px) {

    .logo img {
        width: 600px;
        height: auto;
    }

}

/* Monitor 4K */
@media screen and (min-width: 2560px) {

    .logo img {
        width: 600px;
        height: auto;
    }

}




.toast {
    position: fixed;
    left: 50%;
    bottom: 30px;
    transform: translateX(-50%) translateY(100px);
    background: #333;
    color: white;
    padding: 15px 25px;
    border-radius: 12px;
    font-size: 16px;
    opacity: 0;
    transition: all .3s ease;
    z-index: 99999;
    max-width: 90%;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, .25);
    font-family: Arial;
    font-weight: bold;
}

.toast {
    background: #d45500;
    border-radius: 25px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.25);
}

.toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}


.toast.success {
    background: #198754;
}


.toast.error {
    background: #dc3545;
}

/*
*/

.technology-strip {}

.technology-strip span {
    white-space: nowrap;
}
