:root {
    --navy: #072656;
    --navy-deep: #04193b;
    --blue: #174f9d;
    --blue-soft: #2f79d4;
    --orange: #ff8616;
    --orange-deep: #f27400;
    --text: #18345e;
    --muted: #50627f;
    --bg: #f7f8fb;
    --card: #ffffff;
    --line: #e7ecf4;
    --shadow: 0 20px 50px rgba(7, 38, 86, 0.12);
    --radius: 28px;
    --container: 1180px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: clip;
}

body {
    margin: 0;
    font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
    color: var(--text);
    overflow-x: hidden;
    background:
        radial-gradient(circle at top left, rgba(37, 111, 208, 0.08), transparent 32%),
        radial-gradient(circle at bottom right, rgba(255, 134, 22, 0.06), transparent 28%),
        #ffffff;
}

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

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

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 30;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(12px);
    box-shadow: 0 10px 30px rgba(12, 30, 68, 0.06);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    min-height: 86px;
    flex-wrap: nowrap;
}

.brand {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
    min-width: 0;
}

.brand-logo {
    width: 182px;
    height: auto;
}

.brand--footer .brand-logo {
    width: 166px;
}

.nav-toggle {
    display: none;
    width: 46px;
    height: 46px;
    padding: 0;
    border: 0;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 10px 24px rgba(10, 33, 71, 0.12);
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 4px auto;
    border-radius: 999px;
    background: #123a72;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav {
    display: flex;
    align-items: center;
    gap: 14px;
    flex: 1 1 auto;
    flex-wrap: nowrap;
    justify-content: flex-end;
    margin-left: auto;
}

.nav a {
    font-size: 0.84rem;
    font-weight: 700;
    color: #193863;
    transition: color 0.2s ease;
    white-space: nowrap;
    letter-spacing: 0;
}

.nav .btn {
    flex: 0 0 auto;
    margin-left: 10px;
    min-height: 42px;
    padding: 0 18px;
    font-size: 0.86rem;
    border-radius: 10px;
}

.nav a:hover,
.nav a:focus-visible {
    color: var(--orange);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 54px;
    padding: 0 28px;
    border-radius: 14px;
    border: 0;
    font-size: 1rem;
    font-weight: 800;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn-primary {
    color: #fff;
    background: linear-gradient(180deg, #ff9b2a 0%, var(--orange-deep) 100%);
    box-shadow: 0 16px 28px rgba(255, 134, 22, 0.34);
}

.btn:hover,
.btn:focus-visible {
    transform: translateY(-2px);
}

.hero {
    position: relative;
    overflow: hidden;
    background:
        linear-gradient(90deg, rgba(6, 27, 66, 0.78) 0%, rgba(8, 39, 91, 0.56) 36%, rgba(8, 39, 91, 0.22) 100%),
        url("../images/heroback.png") center center / cover no-repeat;
    color: #fff;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(6, 27, 66, 0.52) 0%, rgba(6, 27, 66, 0.18) 42%, rgba(6, 27, 66, 0) 72%);
    pointer-events: none;
}

.hero::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 126px;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 160" preserveAspectRatio="none"><path fill="%23ffffff" d="M0 54C240 88 520 104 720 104C920 104 1200 88 1440 54V160H0Z"/></svg>');
    background-repeat: no-repeat;
    background-size: 100% 100%;
    background-position: center bottom;
}

.hero-inner {
    position: relative;
    z-index: 1;
    display: block;
    align-items: center;
    min-height: 610px;
    padding: 38px 0 100px;
}

.hero-copy {
    width: min(560px, 100%);
    padding-top: 34px;
}

.hero-copy h1 {
    margin: 0 0 18px;
    font-size: clamp(2.5rem, 4.3vw, 4rem);
    line-height: 1.1;
    letter-spacing: -0.05em;
    max-width: 540px;
}

.hero-copy h1 .accent {
    color: var(--orange);
}

.hero-copy p {
    margin: 0 0 28px;
    max-width: 390px;
    font-size: 0.96rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.88);
}

section {
    position: relative;
}

.section-block {
    padding: 84px 0;
}

#chi-siamo.section-block {
    padding-top: 88px;
}

.section-grid {
    display: grid;
    grid-template-columns: 0.95fr 1.05fr;
    gap: 42px;
    align-items: center;
}

.photo-panel {
    position: relative;
    min-height: 440px;
    border-radius: 0 80px 80px 0;
    overflow: hidden;
    background: linear-gradient(135deg, #e9eef6, #ffffff);
    box-shadow: var(--shadow);
}

.photo-panel::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 22% 44%, rgba(255,255,255,0.88), transparent 42%),
        linear-gradient(90deg, rgba(227,232,239,0.72), rgba(255,255,255,0.04) 56%);
}

.photo-panel::after {
    content: "";
    position: absolute;
    width: 132px;
    height: 132px;
    left: 132px;
    top: 110px;
    border-radius: 50%;
    background:
        radial-gradient(circle at 50% 50%, rgba(255,255,255,0.96), rgba(136, 204, 255, 0.68) 58%, rgba(45, 123, 224, 0.18) 100%);
    box-shadow: 0 0 48px rgba(104, 189, 255, 0.34);
    z-index: 2;
}

.about-image {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: left center;
    z-index: 1;
}

.section-copy h2,
.cards-intro h2,
.experience h2,
.contact-panel h2 {
    margin: 0;
    font-size: clamp(2rem, 3vw, 3rem);
    line-height: 1.05;
    letter-spacing: -0.04em;
    color: #11458d;
    text-transform: uppercase;
}

.section-copy .divider,
.cards-intro .divider,
.experience .divider,
.contact-panel .divider {
    width: 54px;
    height: 4px;
    margin: 18px 0 24px;
    border-radius: 999px;
    background: var(--orange);
}

.section-copy p,
.cards-intro p,
.experience p,
.contact-list,
.card p,
.experience-list {
    font-size: 1.07rem;
    line-height: 1.9;
    color: #31486d;
}

.services {
    background: linear-gradient(180deg, rgba(244, 247, 252, 0.62), rgba(255, 255, 255, 0.96));
}

.services-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 42px;
    align-items: start;
}

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

.card {
    background: var(--card);
    border: 1px solid rgba(17, 69, 141, 0.08);
    border-radius: 24px;
    padding: 30px 26px;
    text-align: center;
    box-shadow: 0 16px 44px rgba(9, 38, 80, 0.08);
}

.card-icon {
    width: 88px;
    height: 88px;
    margin: 0 auto 24px;
}

.card h3 {
    margin: 0 0 16px;
    font-size: 1.45rem;
    line-height: 1.15;
    letter-spacing: -0.03em;
    text-transform: uppercase;
    color: #0f4fa8;
}

.card.orange h3 {
    color: var(--orange);
}

.experience {
    text-align: center;
}

.experience .divider {
    margin-left: auto;
    margin-right: auto;
}

.experience .lead {
    max-width: 860px;
    margin: 0 auto 46px;
}

.experience-panels {
    display: grid;
    grid-template-columns: 1.12fr 0.88fr;
    gap: 32px;
    text-align: left;
    align-items: start;
}

.experience-box {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 28px;
    padding: 34px 34px 28px;
    box-shadow: 0 14px 34px rgba(8, 37, 80, 0.06);
    overflow: hidden;
}

.experience-title {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 24px;
    font-size: 1.42rem;
    line-height: 1.35;
    text-transform: uppercase;
    color: #113f82;
    font-weight: 800;
    min-width: 0;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.experience-icon {
    width: 44px;
    height: 44px;
    flex: 0 0 auto;
    color: var(--blue-soft);
}

.experience-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px 38px;
    margin: 0;
    padding-left: 1.2rem;
}

.experience-list.single {
    grid-template-columns: 1fr;
}

.experience-list li::marker {
    color: var(--orange);
}

.contact {
    margin-top: 0px;
    background:
        url("../images/footer.png") center center / cover no-repeat;
    color: #fff;
    overflow: hidden;
    max-height: 600px;
}

.contact::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(0deg, rgba(7, 38, 86, 0.72), rgba(7, 38, 86, 0.72)),
        repeating-linear-gradient(135deg, rgba(255,255,255,0.05) 0 2px, transparent 2px 72px),
        linear-gradient(135deg, rgba(255,255,255,0.04), transparent 38%);
}

.contact-inner {
    position: relative;
    z-index: 1;
    display: block;
    align-items: stretch;
    padding: 48px 0;
    width: min(var(--container), calc(100% - 64px));
    margin: 0 auto;
}

.contact-panel {
    max-width: 520px;
}

.contact-panel h2 {
    color: var(--orange);
}

.contact-list {
    list-style: none;
    margin: 0;
    padding: 0;
    color: rgba(255, 255, 255, 0.95);
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 24px;
    font-size: 1.06rem;
    line-height: 1.7;
}

.contact-item svg {
    width: 28px;
    height: 28px;
    flex: 0 0 auto;
    color: #ffffff;
}

.site-footer {
    background: #fff;
    padding: 28px 0 36px;
}

.footer-inner {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 24px;
    align-items: center;
}

.footer-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 26px;
    font-size: 0.92rem;
    font-weight: 700;
    color: #163965;
}

.copyright {
    font-size: 0.94rem;
    color: #4f5f78;
    text-align: right;
}

@media (max-width: 1120px) {
    .header-inner {
        flex-wrap: wrap;
    }

    .nav {
        flex: 0 0 100%;
        flex-wrap: wrap;
        justify-content: flex-start;
        margin-left: 0;
    }

    .nav .btn {
        min-height: 46px;
        padding: 0 22px;
    }

    .section-grid,
    .services-grid,
    .experience-panels,
    .contact-inner,
    .footer-inner {
        grid-template-columns: 1fr;
    }

    .hero-inner {
        min-height: auto;
        padding: 36px 0 84px;
    }

    .hero-copy p,
    .section-copy p,
    .cards-intro p,
    .experience p,
    .contact-list,
    .card p,
    .experience-list {
        font-size: 1rem;
    }

    .cards {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .footer-inner {
        justify-items: center;
        text-align: center;
    }

    .copyright {
        text-align: center;
    }
}

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

    .header-inner {
        padding: 18px 0;
        flex-wrap: wrap;
    }

    .brand-logo {
        width: min(170px, 100%);
    }

    .nav-toggle {
        display: block;
        margin-left: auto;
    }

    .nav {
        display: none;
        width: 100%;
        flex: 0 0 100%;
        margin-left: 0;
        padding: 12px 0 4px;
        gap: 10px;
    }

    body.nav-open .nav {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
    }

    body.nav-open .nav-toggle span:nth-child(1) {
        transform: translateY(6px) rotate(45deg);
    }

    body.nav-open .nav-toggle span:nth-child(2) {
        opacity: 0;
    }

    body.nav-open .nav-toggle span:nth-child(3) {
        transform: translateY(-6px) rotate(-45deg);
    }

    .nav a {
        width: 100%;
    }

    .nav .btn {
        width: 100%;
        margin-left: 0;
        justify-content: center;
    }

    .hero::after {
        height: 94px;
    }

    .hero-inner {
        gap: 20px;
        padding: 26px 0 76px;
    }

    .hero-copy h1 {
        font-size: clamp(2.2rem, 8vw, 3.4rem);
    }

    .hero-copy p {
        font-size: 1rem;
    }

    .contact-inner {
        width: min(var(--container), calc(100% - 32px));
        padding: 44px 0;
    }

    .photo-panel {
        min-height: 320px;
        border-radius: 0 40px 40px 0;
    }

    .photo-panel::after {
        width: 108px;
        height: 108px;
        left: 90px;
        top: 70px;
    }

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

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

@media (max-width: 560px) {
    .brand-logo {
        width: min(180px, 100%);
    }

    .nav .btn {
        margin-left: 0;
    }

    .btn {
        width: 100%;
    }

    .hero-copy h1 {
        font-size: clamp(2.1rem, 11vw, 3rem);
    }

    .section-block {
        padding: 68px 0;
    }

    #chi-siamo.section-block {
        padding-top: 72px;
    }

    .experience-title {
        gap: 12px;
        margin-bottom: 18px;
        font-size: 1.08rem;
        line-height: 1.28;
    }

    .experience-icon {
        width: 34px;
        height: 34px;
    }

    .contact {
        max-height: none;
    }

    .photo-panel {
        min-height: 260px;
    }

    .photo-panel::after {
        width: 82px;
        height: 82px;
        left: 60px;
        top: 56px;
    }

    .card,
    .experience-box {
        padding: 24px 20px;
    }
}
