:root {
    --bg: #f3efe7;
    --surface: #fffaf2;
    --surface-strong: #13201f;
    --text: #1f2a2a;
    --muted: #4c5b57;
    --primary: #0f766e;
    --secondary: #9a6b2f;
    --line: #d9d2c5;
    --btn-height: 48px;
    --radius: 16px;
    --shadow: 0 16px 40px rgba(19, 32, 31, 0.14);
}

* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
}

body {
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    color: var(--text);
    background: radial-gradient(circle at 15% 12%, rgba(15, 118, 110, 0.15), transparent 40%),
    radial-gradient(circle at 85% 20%, rgba(154, 107, 47, 0.14), transparent 36%),
    linear-gradient(135deg, #f3efe7, #f9f6f0 45%, #f0ece5);
}

p, li, label, .faq-item button, .legal-modal {
    font-size: 18px;
    line-height: 1.65;
}

h1 {
    font-size: clamp(2.1rem, 4.2vw, 3.2rem);
    line-height: 1.1;
}

h2 {
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    margin-top: 0;
    margin-bottom: .8rem;
}

.small {
    font-size: .95rem;
    color: var(--muted);
}

.container {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding-inline: 24px;
}

.section {
    padding: 72px 0;
    position: relative;
    overflow: hidden;
}

.section:nth-child(odd) {
    background: rgba(255, 255, 255, 0.36);
}

.section-dark {
    background: linear-gradient(135deg, #1a2d2b, #243a36 45%, #223332);
    color: #edf6f5;
}

.section-dark .small {
    color: #c3d5d2;
}

header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(243, 239, 231, 0.6);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 84px;
    gap: 16px;
}

.brand {
    font-weight: 700;
    letter-spacing: .3px;
    text-decoration: none;
    color: var(--text);
}

.brand-logo {
    max-width: 133px;
}

nav ul {
    display: flex;
    gap: 16px;
    list-style: none;
    margin: 0;
    padding: 0;
}

nav a {
    text-decoration: none;
    color: inherit;
    font-weight: 500;
    font-size: 16px;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.btn, .lang-toggle {
    border: 1px solid transparent;
    height: var(--btn-height);
    padding: 0 18px;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), #1d9b92);
    color: #fff;
    box-shadow: 0 10px 24px rgba(15, 118, 110, .35);
}

.btn-primary-mb {
    width: 100%;
}

.lang {
    position: relative;
}

.lang-toggle {
    border-color: var(--line);
    background: #fff;
    color: var(--text);
}

.lang-menu {
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    min-width: 145px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    box-shadow: var(--shadow);
    padding: 8px;
    display: none;
}

.lang.open .lang-menu {
    display: block;
}

.lang-menu a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    border-radius: 8px;
    text-decoration: none;
    color: inherit;
}

.lang-menu a:hover {
    background: #f6f2eb;
}

.flag {
    width: 20px;
    height: 14px;
    border-radius: 2px;
    border: 1px solid #ccc;
    overflow: hidden;
    flex: 0 0 auto;
}

.hero-grid, .split-grid {
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    gap: 28px;
    align-items: start;
}

.glass {
    background: linear-gradient(160deg, rgba(255, 255, 255, .82), rgba(255, 255, 255, .6));
    border: 1px solid rgba(255, 255, 255, .8);
    backdrop-filter: blur(10px);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 22px;
}

.target-corridor {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 14px;
    margin-top: 16px;
}

.metric-block {
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 14px;
    background: #fff;
    min-width: 0;
}

.metric-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
}

.form-stack {
    display: grid;
    gap: 12px;
}

input {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    height: 48px;
    border-radius: 10px;
    border: 1px solid var(--line);
    padding: 0 12px;
    font-size: 1rem;
}

.kpi-strip {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
}

.kpi-card, .card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 16px;
    min-width: 0;
    box-shadow: 0 8px 18px rgba(20, 30, 30, .07);
}

.dual-bars .bar {
    margin: 12px 0;
}

.track {
    height: 12px;
    background: #e7e1d5;
    border-radius: 999px;
    overflow: hidden;
    position: relative;
}

.fill-primary {
    height: 100%;
    background: linear-gradient(90deg, #0f766e, #31b5a9);
}

.fill-secondary {
    height: 100%;
    background: linear-gradient(90deg, #9a6b2f, #c18e4e);
}

.benchmark {
    position: absolute;
    top: -3px;
    width: 2px;
    height: 18px;
    background: #1f2a2a;
    left: 62%;
}

.allocation {
    display: grid;
    gap: 12px;
}

.stack {
    height: 34px;
    border-radius: 999px;
    overflow: hidden;
    display: flex;
    border: 1px solid #c8bca9;
}

.seg-a {
    background: #1f8c82;
}

.seg-b {
    background: #62b8ae;
}

.seg-c {
    background: #c79556;
}

.seg-d {
    background: #eed8b7;
}

.legend {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.legend span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
}

.timeline {
    display: grid;
    gap: 14px;
}

.step {
    display: grid;
    grid-template-columns: 54px 1fr;
    gap: 14px;
    align-items: start;
}

.step-num {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), #2ca095);
    color: #fff;
    display: grid;
    place-items: center;
    font-weight: 700;
    box-shadow: 0 0 20px rgba(15, 118, 110, .4);
}

.rings {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 16px;
}

.ring {
    aspect-ratio: 1;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: conic-gradient(var(--primary) calc(var(--val) * 1%), #d8e7e5 0);
    padding: 14px;
}

.ring-inner {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: #fff;
    display: grid;
    place-items: center;
    text-align: center;
}

.waterfall {
    display: grid;
    gap: 10px;
}

.w-row {
    display: grid;
    grid-template-columns: 180px 1fr 70px;
    gap: 12px;
    align-items: center;
}

.w-bar {
    height: 32px;
    border-radius: 8px;
    background: linear-gradient(90deg, #1d9b92, #89d8d1);
}

.w-neg {
    background: linear-gradient(90deg, #c18e4e, #e4bf85);
}

.risk-matrix {
    display: grid;
    grid-template-columns: repeat(2, minmax(150px, 1fr));
    gap: 12px;
}

.quad {
    border-radius: 12px;
    padding: 14px;
    min-height: 120px;
    border: 1px solid rgba(255, 255, 255, .18);
    background: rgba(255, 255, 255, .08);
}

.reviews {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 14px;
}

.review-head {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: nowrap;
}

.avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary), #31b5a9);
    color: #fff;
}

.verified {
    margin-left: auto;
    font-size: .82rem;
    font-weight: 700;
    color: #0d8e74;
}

.faq-list {
    display: grid;
    gap: 10px;
}

.faq-item {
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
    overflow: hidden;
}

.faq-item button {
    width: 100%;
    text-align: left;
    border: 0;
    background: transparent;
    padding: 16px;
    font-weight: 600;
}

.faq-item .answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height .3s ease;
    padding: 0 16px;
}

.faq-item.open .answer {
    max-height: fit-content;
    padding: 0 16px 16px;
}

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

.legal-modal-wrap {
    position: fixed;
    inset: 0;
    z-index: 90;
    display: none;
    background: rgba(18, 24, 24, .55);
    padding: 24px;
}

.legal-modal-wrap.open {
    display: flex;
    align-items: center;
    justify-content: center;
}

.legal-modal {
    width: min(920px, 100%);
    max-height: 86vh;
    overflow: auto;
    background: #fff;
    border-radius: 16px;
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
}

.legal-head, .legal-foot {
    padding: 14px 18px;
    border-bottom: 1px solid var(--line);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.legal-foot {
    border-top: 1px solid var(--line);
    border-bottom: 0;
    justify-content: flex-start;
}

.icon-btn {
    border: 0;
    background: transparent;
    font-size: 1.4rem;
    cursor: pointer;
}

.legal-body {
    padding: 16px 18px 4px;
}

.burger {
    display: none;
    width: 50px;
    height: 50px;
    font-size: 18px;
    color: #d9d2c5;
    font-weight: 600;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fff;
}

.drawer-wrap {
    position: fixed;
    inset: 0;
    z-index: 80;
    display: none;
}

.drawer-wrap.open {
    display: block;
}

.drawer-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .42);
}

.drawer {
    position: absolute;
    top: 0;
    right: 0;
    width: min(380px, 88%);
    height: 100%;
    background: #fff;
    padding: 16px;
    display: grid;
    grid-template-rows:auto 1fr;
    gap: 14px;
}

.drawer-body {
    overflow: auto;
    /*display: grid;*/
    gap: 16px;
}

.reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity .55s ease, transform .55s ease;
}

.reveal.in {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 1000px) {
    nav {
        display: none;
    }

    .burger {
        display: inline-grid;
        place-items: center;
    }

    .desktop-only {
        display: none !important;
    }

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

    .section {
        padding: 58px 0;
    }
}

.drawer-nav {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.drawer-nav a {
    padding: 10px 0;
    border-bottom: 1px solid rgba(23, 36, 33, 0.09);
}

.lang-menu-mb {
    top: 50px;
    /*right: 203px;*/
    left: 0;
    width: 145px;
}

.drawer-wrap {
    position: fixed;
    inset: 0;
    z-index: 9999;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.drawer-wrap.open {
    pointer-events: auto;
    opacity: 1;
    visibility: visible;
}

.drawer {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 280px;
    background: white;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: -4px 0 20px rgba(0,0,0,0.2);
    overflow-y: auto;
    padding: 20px;
}

.drawer-wrap.open .drawer {
    transform: translateX(0);
}

.drawer-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.4);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.drawer-wrap.open .drawer-backdrop {
    opacity: 1;
}

html {
    scroll-behavior: smooth;
}

:target {
    scroll-margin-top: 100px;
}

#market, #model, #process, #insights, #risk, #faq, #lead-final {
    scroll-margin-top: 100px;
}

.iti--separate-dial-code .iti__selected-flag {
    border-radius: 12px 0 0 12px;
}

@media (max-width: 425px) {
    .risk-matrix {
        display: grid;
        grid-template-columns: repeat(1, minmax(150px, 1fr));
        gap: 25px;
    }
    .w-row {
        display: grid;
        grid-template-columns: 90px 1fr 70px;
        gap: 12px;
        align-items: center;
    }
}

.btn-policy {
    color: #1f2a2a;
    text-decoration: none;
    font-weight: 500;
}

.faq-item {
    border-bottom: 1px solid #ddd;
    overflow: hidden;
}

.faq-item button {
    width: 100%;
    padding: 16px;
    text-align: left;
    background: #f8f9fa;
    border: none;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
}

.faq-item button:hover {
    background: #e9ecef;
}

.faq-content {
    max-height: 0;
    overflow: hidden;
    transition:
            max-height 0.4s ease-out,
            padding 0.4s ease-out;
    padding: 0 16px;
}

.faq-item.open .faq-content {
    max-height: 1000px;
    padding: 16px;
}

.faq-item button::after {
    /*content: "▼";*/
    float: right;
    transition: transform 0.3s ease;
}

.faq-item.open button::after {
    transform: rotate(180deg);
}

@media (min-width: 900px) {
    .h1-small-mb {
        margin-top: 80px;
    }
}

@media (max-width: 375px) {
    .h1-de-mb {
        font-size: 25px;
    }
}

@media (max-width: 425px) {
    .w-row-de-mb {
        display: grid;
        grid-template-columns: 140px 1fr 42px;
    }
    .w-row-it-mb {
        display: grid;
        grid-template-columns: 140px 1fr 42px;
    }
}