:root {
    --color-navy: #071d3a;
    --color-navy-2: #0b2c55;
    --color-blue: #1e73be;
    --color-cyan: #4bb3fd;
    --color-orange: #f28c28;
    --color-gray: #f3f6fa;
    --color-text: #263241;
    --color-muted: #637083;
    --shadow-soft: 0 18px 45px rgba(7, 29, 58, .12);
}

* {
    letter-spacing: 0;
}

body {
    color: var(--color-text);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.65;
    padding-top: 74px;
}

a {
    color: var(--color-blue);
    text-decoration: none;
}

a:hover,
a:focus {
    color: var(--color-navy);
}

.skip-link {
    background: #fff;
    color: var(--color-navy);
    left: 1rem;
    padding: .65rem 1rem;
    position: fixed;
    top: -5rem;
    z-index: 2000;
}

.skip-link:focus {
    top: 1rem;
}

.site-navbar {
    background: rgba(7, 29, 58, .97);
    box-shadow: 0 8px 24px rgba(7, 29, 58, .18);
}

.navbar-brand strong,
.footer-brand strong {
    display: block;
    font-size: 1rem;
    line-height: 1.1;
}

.navbar-brand small {
    color: rgba(255, 255, 255, .72);
    display: block;
    font-size: .72rem;
    line-height: 1.1;
}

.brand-link {
    min-width: 0;
}

.brand-symbol {
    align-items: center;
    background: #fff;
    border-radius: 8px;
    display: inline-flex;
    height: 46px;
    justify-content: center;
    min-width: 46px;
    padding: .2rem;
}

.brand-symbol img {
    display: block;
    height: 42px;
    object-fit: contain;
    width: 42px;
}

.nav-link {
    font-weight: 600;
}

.btn {
    border-radius: 6px;
    font-weight: 700;
}

.btn-accent {
    --bs-btn-bg: var(--color-orange);
    --bs-btn-border-color: var(--color-orange);
    --bs-btn-color: #111827;
    --bs-btn-hover-bg: #ff9e3e;
    --bs-btn-hover-border-color: #ff9e3e;
    --bs-btn-hover-color: #111827;
}

.btn-primary {
    --bs-btn-bg: var(--color-blue);
    --bs-btn-border-color: var(--color-blue);
    --bs-btn-hover-bg: var(--color-navy-2);
    --bs-btn-hover-border-color: var(--color-navy-2);
}

.hero {
    background:
        linear-gradient(90deg, rgba(7, 29, 58, .96) 0%, rgba(7, 29, 58, .86) 45%, rgba(7, 29, 58, .28) 78%),
        url("../img/hero-scarzeto.jpg") center / cover no-repeat;
    color: #fff;
    min-height: calc(100vh - 74px);
    padding: clamp(4rem, 8vw, 7rem) 0 3.5rem;
}

.hero .container {
    min-height: min(620px, calc(100vh - 180px));
}

.hero-kicker,
.section-kicker {
    color: var(--color-orange);
    font-size: .82rem;
    font-weight: 800;
    text-transform: uppercase;
}

.hero h1 {
    font-size: clamp(2.25rem, 5vw, 4.85rem);
    font-weight: 850;
    line-height: 1.05;
    max-width: 820px;
}

.hero p {
    color: rgba(255, 255, 255, .86);
    font-size: clamp(1rem, 2vw, 1.28rem);
    max-width: 720px;
}

.hero-proof {
    border-top: 1px solid rgba(255, 255, 255, .2);
    color: rgba(255, 255, 255, .78);
    display: flex;
    flex-wrap: wrap;
    gap: .75rem 1.4rem;
    margin-top: 2rem;
    padding-top: 1.25rem;
}

.hero-proof span {
    align-items: center;
    display: inline-flex;
    gap: .45rem;
}

.section-pad {
    padding: clamp(3.25rem, 7vw, 6rem) 0;
}

.section-muted {
    background: var(--color-gray);
}

.section-dark {
    background: var(--color-navy);
    color: #fff;
}

.section-title {
    color: var(--color-navy);
    font-size: clamp(1.8rem, 3vw, 2.75rem);
    font-weight: 820;
    line-height: 1.14;
}

.section-dark .section-title {
    color: #fff;
}

.section-lead {
    color: var(--color-muted);
    font-size: 1.08rem;
    max-width: 780px;
}

.section-dark .section-lead {
    color: rgba(255, 255, 255, .78);
}

.page-hero {
    background: linear-gradient(135deg, var(--color-navy), var(--color-navy-2));
    color: #fff;
    padding: clamp(3.5rem, 7vw, 6rem) 0;
}

.page-hero h1 {
    font-size: clamp(2rem, 4vw, 3.65rem);
    font-weight: 840;
    line-height: 1.1;
}

.page-hero p {
    color: rgba(255, 255, 255, .82);
    font-size: 1.1rem;
    max-width: 820px;
}

.info-card,
.service-card,
.solution-card,
.project-card,
.contact-panel {
    background: #fff;
    border: 1px solid #dfe8f2;
    border-radius: 8px;
    box-shadow: 0 10px 28px rgba(7, 29, 58, .06);
    height: 100%;
}

.service-card,
.solution-card,
.project-card,
.info-card {
    padding: 1.35rem;
}

.service-card .icon,
.info-icon {
    align-items: center;
    background: rgba(30, 115, 190, .1);
    border-radius: 8px;
    color: var(--color-blue);
    display: inline-flex;
    font-size: 1.5rem;
    height: 48px;
    justify-content: center;
    margin-bottom: 1rem;
    width: 48px;
}

.service-card h3,
.solution-card h3,
.project-card h3,
.info-card h3 {
    color: var(--color-navy);
    font-size: 1.08rem;
    font-weight: 800;
    line-height: 1.3;
}

.service-card p,
.solution-card p,
.project-card p,
.info-card p {
    color: var(--color-muted);
}

.check-list,
.plain-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.check-list li,
.plain-list li {
    margin-bottom: .7rem;
    padding-left: 1.75rem;
    position: relative;
}

.check-list li::before {
    color: var(--color-blue);
    content: "\F26E";
    font-family: "bootstrap-icons";
    font-weight: 400;
    left: 0;
    position: absolute;
    top: .05rem;
}

.plain-list li::before {
    background: var(--color-orange);
    border-radius: 999px;
    content: "";
    height: .42rem;
    left: .25rem;
    position: absolute;
    top: .65rem;
    width: .42rem;
}

.step {
    align-items: flex-start;
    display: flex;
    gap: 1rem;
}

.step-number {
    align-items: center;
    background: var(--color-navy);
    border-radius: 8px;
    color: #fff;
    display: inline-flex;
    flex: 0 0 46px;
    font-weight: 800;
    height: 46px;
    justify-content: center;
}

.cta-band {
    background: linear-gradient(135deg, var(--color-navy), #0c3a6e);
    color: #fff;
    padding: clamp(2.5rem, 5vw, 4rem) 0;
}

.cta-band p {
    color: rgba(255, 255, 255, .78);
}

.skill-group {
    border-left: 4px solid var(--color-blue);
    padding-left: 1rem;
}

.skill-group h2,
.service-block h2 {
    color: var(--color-navy);
    font-size: 1.35rem;
    font-weight: 820;
}

.badge-soft {
    background: rgba(30, 115, 190, .1);
    border: 1px solid rgba(30, 115, 190, .16);
    border-radius: 999px;
    color: var(--color-navy);
    display: inline-flex;
    font-weight: 700;
    margin: .25rem;
    padding: .45rem .75rem;
}

.contact-panel {
    padding: clamp(1.25rem, 3vw, 2rem);
}

.form-label {
    color: var(--color-navy);
    font-weight: 700;
}

.form-control,
.form-select {
    border-color: #cdd9e5;
    border-radius: 6px;
    min-height: 46px;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--color-blue);
    box-shadow: 0 0 0 .2rem rgba(30, 115, 190, .16);
}

.site-footer {
    background: #06172d;
    color: rgba(255, 255, 255, .76);
    padding: 3.5rem 0 1.5rem;
}

.site-footer h2 {
    color: #fff;
    font-size: 1rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

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

.site-footer li {
    margin-bottom: .55rem;
}

.site-footer a {
    color: rgba(255, 255, 255, .8);
}

.site-footer a:hover,
.site-footer a:focus {
    color: #fff;
}

.footer-brand {
    display: flex;
    gap: 1rem;
}

.footer-logo {
    align-items: center;
    background: #fff;
    border-radius: 8px;
    display: inline-flex;
    flex: 0 0 150px;
    justify-content: center;
    padding: .65rem;
}

.footer-logo img {
    display: block;
    height: auto;
    max-width: 132px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, .12);
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
    justify-content: space-between;
    margin-top: 2rem;
    padding-top: 1.25rem;
}

.whatsapp-float,
.back-to-top {
    align-items: center;
    border: 0;
    border-radius: 999px;
    bottom: 1.25rem;
    box-shadow: var(--shadow-soft);
    display: inline-flex;
    height: 52px;
    justify-content: center;
    position: fixed;
    width: 52px;
    z-index: 1030;
}

.whatsapp-float {
    background: #25d366;
    color: #fff;
    font-size: 1.6rem;
    right: 1.25rem;
}

.back-to-top {
    background: var(--color-navy);
    color: #fff;
    display: none;
    font-size: 1.2rem;
    right: 5.1rem;
}

.back-to-top.is-visible {
    display: inline-flex;
}

.visually-hidden-focusable:not(:focus):not(:focus-within) {
    clip: rect(0, 0, 0, 0) !important;
    height: 1px !important;
    overflow: hidden !important;
    position: absolute !important;
    white-space: nowrap !important;
    width: 1px !important;
}

@media (max-width: 991.98px) {
    body {
        padding-top: 70px;
    }

    .navbar-collapse {
        padding: 1rem 0;
    }

    .hero {
        background:
            linear-gradient(180deg, rgba(7, 29, 58, .96) 0%, rgba(7, 29, 58, .86) 58%, rgba(7, 29, 58, .72) 100%),
            url("../img/hero-scarzeto.jpg") center / cover no-repeat;
        min-height: auto;
    }

    .hero .container {
        min-height: auto;
    }

    .back-to-top {
        bottom: 5rem;
        right: 1.25rem;
    }

    .navbar-brand strong {
        font-size: .95rem;
    }

    .navbar-brand small {
        font-size: .68rem;
    }

    .footer-brand {
        flex-direction: column;
    }

    .footer-logo {
        flex-basis: auto;
        max-width: 170px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition: none !important;
    }
}
