:root {
    --ink: #102a43;
    --ink-strong: #071b2d;
    --blue: #0b5cad;
    --blue-dark: #08457f;
    --teal: #0b7a75;
    --amber: #f59e0b;
    --amber-dark: #c77805;
    --paper: #ffffff;
    --mist: #f2f6f9;
    --line: #d7e0e8;
    --muted: #526577;
    --success: #16745b;
    --danger: #b42318;
    --shadow-soft: 0 12px 35px rgba(16, 42, 67, 0.09);
    --header-height: 132px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    letter-spacing: 0;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-height) + 18px);
}

body {
    background: var(--paper);
    color: var(--ink);
    font-family: "Source Sans 3", Arial, sans-serif;
    font-size: 17px;
    line-height: 1.62;
}

body.menu-open {
    overflow: hidden;
}

main {
    overflow: clip;
}

section[id] {
    scroll-margin-top: calc(var(--header-height) + 18px);
}

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

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

a:hover {
    color: var(--blue-dark);
}

button,
input,
select {
    font: inherit;
}

button,
.button {
    min-height: 48px;
}

h1,
h2,
h3,
h4 {
    color: var(--ink-strong);
    font-family: "Manrope", Arial, sans-serif;
    font-weight: 800;
    line-height: 1.14;
}

h1 {
    font-size: 3.45rem;
}

h2 {
    font-size: 2.35rem;
}

h3 {
    font-size: 1.28rem;
}

p + p {
    margin-top: 0.9rem;
}

ul {
    list-style: none;
}

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

.container-narrow {
    width: min(820px, calc(100% - 48px));
    margin: 0 auto;
}

.section {
    padding: 92px 0;
}

.section-soft {
    background: var(--mist);
}

.section-dark {
    background: var(--ink-strong);
    color: var(--paper);
}

.section-heading {
    max-width: 780px;
    margin-bottom: 44px;
}

.section-heading.centered {
    margin-right: auto;
    margin-left: auto;
    text-align: center;
}

.section-heading p {
    margin-top: 15px;
    color: var(--muted);
    font-size: 1.12rem;
}

.eyebrow {
    display: block;
    margin-bottom: 14px;
    color: var(--teal);
    font-family: "Manrope", Arial, sans-serif;
    font-size: 0.82rem;
    font-weight: 800;
    text-transform: uppercase;
}

.eyebrow.on-dark {
    color: #ffbd4a;
}

.button,
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 22px;
    border: 1px solid transparent;
    border-radius: 6px;
    cursor: pointer;
    font-family: "Manrope", Arial, sans-serif;
    font-size: 0.92rem;
    font-weight: 800;
    line-height: 1.2;
    text-align: center;
    text-transform: none;
    transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.button:hover,
.btn:hover {
    transform: translateY(-1px);
}

.button-primary,
.btn-primary {
    background: var(--blue);
    color: var(--paper);
}

.button-primary:hover,
.btn-primary:hover {
    background: var(--blue-dark);
    color: var(--paper);
}

.button-accent,
.btn-accent {
    background: var(--amber);
    color: var(--ink-strong);
}

.button-accent:hover,
.btn-accent:hover {
    background: var(--amber-dark);
    color: var(--paper);
}

.button-outline {
    border-color: currentColor;
    background: transparent;
    color: var(--blue);
}

.button-outline:hover {
    background: var(--blue);
    color: var(--paper);
}

.text-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    border-bottom: 1px solid currentColor;
    font-family: "Manrope", Arial, sans-serif;
    font-weight: 800;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 5px 18px rgba(16, 42, 67, 0.05);
}

.header-main {
    display: flex;
    min-height: 82px;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
}

.brand {
    flex: 0 0 auto;
}

.brand img {
    width: 194px;
    height: auto;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 25px;
}

.nav-links > a:not(.button) {
    position: relative;
    color: var(--ink);
    font-family: "Manrope", Arial, sans-serif;
    font-size: 0.89rem;
    font-weight: 700;
}

.nav-links > a:not(.button)::after {
    position: absolute;
    right: 0;
    bottom: -8px;
    left: 0;
    height: 2px;
    background: var(--teal);
    content: "";
    opacity: 0;
    transform: scaleX(0);
    transition: opacity 160ms ease, transform 160ms ease;
}

.nav-links > a:not(.button):hover::after {
    opacity: 1;
    transform: scaleX(1);
}

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

.header-phone {
    color: var(--ink);
    font-family: "Manrope", Arial, sans-serif;
    font-size: 0.88rem;
    font-weight: 800;
    white-space: nowrap;
}

.mobile-only {
    display: none;
}

.hamburger {
    display: none;
    width: 46px;
    height: 46px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: var(--paper);
    cursor: pointer;
}

.hamburger .bar {
    display: block;
    width: 22px;
    height: 2px;
    margin: 5px auto;
    background: var(--ink);
    transition: transform 180ms ease, opacity 180ms ease;
}

.home-hero {
    position: relative;
    display: flex;
    min-height: 535px;
    align-items: center;
    background-image: url("img/consulenza-mutuo-home-finale.webp");
    background-position: center 38%;
    background-size: cover;
    color: var(--paper);
    isolation: isolate;
}

.home-hero::before {
    position: absolute;
    z-index: -1;
    inset: 0;
    background: rgba(7, 27, 45, 0.76);
    content: "";
}

.hero-inner {
    padding: 64px 0;
}

.hero-copy {
    max-width: 730px;
}

.hero-copy h1 {
    max-width: 720px;
    color: var(--paper);
    text-wrap: balance;
}

.hero-lead {
    max-width: 620px;
    margin-top: 18px;
    color: #eef5fa;
    font-size: 1.24rem;
    line-height: 1.55;
}

.hero-advice {
    max-width: 620px;
    margin-top: 10px;
    color: #eef5fa;
}

.hero-purchase {
    margin-top: 10px;
    color: #eef5fa;
}

.hero-fee {
    margin-top: 23px;
    color: var(--paper);
    font-size: 1.1rem;
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-top: 22px;
    flex-wrap: wrap;
}

.hero-link {
    color: var(--paper);
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 4px;
}

.hero-link:hover {
    color: #ffca69;
}

.pathways {
    border-bottom: 1px solid var(--line);
    background: var(--paper);
}

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

.pathway {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 32px 24px;
    border-left: 1px solid var(--line);
}

.pathway:last-child {
    border-right: 1px solid var(--line);
}

.pathway p {
    flex: 1;
    margin: 10px 0 15px;
    color: var(--muted);
    font-size: 0.98rem;
}

.method-layout {
    display: grid;
    align-items: center;
    gap: 72px;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
}

.method-image {
    position: relative;
}

.method-image img {
    width: 100%;
    max-height: 680px;
    border-radius: 8px;
    object-fit: cover;
}

.method-caption {
    position: absolute;
    right: 18px;
    bottom: 18px;
    max-width: 260px;
    padding: 17px 19px;
    border-left: 4px solid var(--amber);
    background: var(--paper);
    box-shadow: var(--shadow-soft);
    color: var(--ink);
    font-size: 0.92rem;
    font-weight: 700;
}

.method-copy > p {
    margin: 18px 0 30px;
    color: var(--muted);
    font-size: 1.12rem;
}

.method-steps {
    border-top: 1px solid var(--line);
}

.method-step {
    display: grid;
    gap: 18px;
    padding: 22px 0;
    border-bottom: 1px solid var(--line);
    grid-template-columns: 42px 1fr;
}

.method-number {
    color: var(--teal);
    font-family: "Manrope", Arial, sans-serif;
    font-size: 0.9rem;
    font-weight: 800;
}

.method-step h3 {
    margin-bottom: 6px;
}

.method-step p {
    color: var(--muted);
    font-size: 0.98rem;
}

.calculator-tabs {
    display: inline-flex;
    gap: 0;
    margin-bottom: 24px;
    padding: 4px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--paper);
}

.btn-tab {
    min-height: 44px;
    padding: 10px 18px;
    border: 0;
    border-radius: 5px;
    background: transparent;
    color: var(--muted);
    cursor: pointer;
    font-family: "Manrope", Arial, sans-serif;
    font-size: 0.88rem;
    font-weight: 800;
}

.btn-tab.active {
    background: var(--ink);
    color: var(--paper);
}

.calculator-shell {
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #eaf0f4;
}

#calcolatore .section-padding {
    padding: 0 !important;
    background: transparent !important;
}

#calcolatore .section-padding > .container {
    width: 100%;
    max-width: none;
    padding: 0;
}

#calcolatore .section-padding > .container > .text-center {
    display: none;
}

#calcolatore #tabAcquisto > .section-padding > .container > div:last-child,
#calcolatore #tabConsolidamento > .section-padding > .container > div:last-child {
    max-width: none !important;
    border: 1px solid var(--line) !important;
    border-top: 4px solid var(--teal) !important;
    border-radius: 8px !important;
    box-shadow: none !important;
}

#calcolatore #tabConsolidamento > .section-padding > .container > div:last-child {
    border-top-color: var(--amber) !important;
}

#calcolatore [style*="border-radius: 15px"],
#calcolatore [style*="border-radius: 20px"] {
    border-radius: 8px !important;
}

#calcolatore input:not([type="range"]):not([type="checkbox"]),
#calcolatore select {
    min-height: 46px;
    border-color: var(--line) !important;
    border-radius: 5px !important;
    background: var(--paper) !important;
}

#calcolatore input[type="range"] {
    accent-color: var(--teal) !important;
}

#calcolatore .btn {
    border-radius: 6px;
    box-shadow: none !important;
}

.purchase-result {
    flex: 1 1 300px;
    min-width: 0;
}

.consolidation-body {
    padding: 0 40px 40px;
}

.consolidation-options {
    flex: 1 1 300px;
    min-width: 0;
    padding: 20px;
    border-radius: 8px;
    background: var(--bg-light);
}

.purchase-summary {
    padding: 18px;
    margin-bottom: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--mist);
    font-variant-numeric: tabular-nums;
}

.purchase-summary-label,
.purchase-totals dt,
.purchase-split-labels {
    color: var(--muted);
    font-size: 0.85rem;
}

.purchase-payment {
    margin-top: 4px;
    color: var(--ink-strong);
    font-size: 2rem;
    font-weight: 800;
    line-height: 1.2;
}

.purchase-totals {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin: 14px 0;
    padding-top: 12px;
    border-top: 1px solid var(--line);
}

.purchase-totals dd {
    margin: 0;
    color: var(--ink-strong);
    font-weight: 700;
}

.purchase-total-note {
    display: block;
    margin-top: 3px;
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 400;
    line-height: 1.35;
}

.purchase-split-bar {
    height: 6px;
    overflow: hidden;
    border-radius: 3px;
    background: var(--amber);
}

.purchase-split-bar span {
    display: block;
    height: 100%;
    background: var(--teal);
}

.purchase-split-labels {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 4px 8px;
    margin-top: 4px;
}

.important-section {
    background: var(--teal);
    color: var(--paper);
}

.important-layout {
    display: grid;
    align-items: center;
    gap: 70px;
    grid-template-columns: 1.4fr 0.6fr;
}

.important-layout h2 {
    color: var(--paper);
}

.important-layout p {
    max-width: 760px;
    margin-top: 17px;
    color: #e6f5f3;
    font-size: 1.1rem;
}

.important-action {
    text-align: right;
}

.important-action span {
    display: block;
    margin-top: 12px;
    color: #d4eeea;
    font-weight: 700;
}

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

.resource {
    padding: 24px 0 26px;
    border-top: 2px solid var(--ink);
}

.resource h3 {
    margin: 10px 0 12px;
}

.resource p {
    color: var(--muted);
    font-size: 0.95rem;
}

.resource a {
    display: inline-block;
    margin-top: 16px;
    border-bottom: 1px solid currentColor;
    font-weight: 800;
}

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

.news-item {
    padding: 23px 0 25px;
    border-top: 1px solid var(--line);
}

.news-date {
    color: var(--teal);
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
}

.news-item h3 {
    margin: 12px 0;
}

.news-item p {
    color: var(--muted);
    font-size: 0.94rem;
}

.news-item a {
    display: inline-block;
    margin-top: 16px;
    border-bottom: 1px solid currentColor;
    font-weight: 800;
}

.trust-layout {
    display: grid;
    align-items: start;
    gap: 70px;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
}

.trust-photo img {
    width: 100%;
    max-height: 650px;
    border-radius: 8px;
    object-fit: cover;
}

.trust-copy > p {
    margin-top: 18px;
    color: var(--muted);
    font-size: 1.08rem;
}

.trust-points {
    display: grid;
    margin-top: 30px;
    border-top: 1px solid var(--line);
}

.trust-point {
    padding: 21px 0;
    border-bottom: 1px solid var(--line);
}

.trust-point strong {
    display: block;
    font-family: "Manrope", Arial, sans-serif;
}

.trust-point span {
    display: block;
    margin-top: 5px;
    color: var(--muted);
    font-size: 0.94rem;
}

.trust-links {
    display: flex;
    gap: 22px;
    margin-top: 28px;
    flex-wrap: wrap;
}

.faq-list {
    border-top: 1px solid var(--line);
}

.faq-item {
    border-bottom: 1px solid var(--line);
}

.faq-question {
    display: flex;
    min-height: 74px;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 18px 0;
    color: var(--ink-strong);
    cursor: pointer;
    font-family: "Manrope", Arial, sans-serif;
    font-weight: 800;
}

.faq-question:focus-visible {
    outline: 3px solid rgba(11, 92, 173, 0.25);
    outline-offset: 3px;
}

.faq-icon {
    flex: 0 0 28px;
    color: var(--teal);
    font-size: 1.5rem;
    text-align: center;
}

.faq-answer {
    display: none;
    max-width: 760px;
    padding: 0 0 24px;
    color: var(--muted);
}

.contact-layout {
    display: grid;
    align-items: start;
    gap: 64px;
    grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
}

.lead-form {
    padding: 34px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--paper);
    box-shadow: var(--shadow-soft);
    scroll-margin-top: calc(var(--header-height) + 20px);
}

.lead-step-indicator {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--line);
    color: var(--muted);
    font-size: 0.86rem;
}

.lead-step-indicator span:last-child {
    color: var(--ink);
    font-family: "Manrope", Arial, sans-serif;
    font-weight: 800;
}

.lead-step[hidden] {
    display: none;
}

.lead-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.lead-field {
    margin-bottom: 16px;
}

.lead-field label {
    display: block;
    color: var(--ink);
    font-size: 0.9rem;
    font-weight: 800;
}

.lead-field input,
.lead-field select {
    width: 100%;
    min-height: 50px;
    margin-top: 6px;
    padding: 11px 13px;
    border: 1px solid #b8c6d2;
    border-radius: 5px;
    background: var(--paper);
    color: var(--ink);
}

.lead-field input:focus,
.lead-field select:focus {
    border-color: var(--blue);
    outline: 3px solid rgba(11, 92, 173, 0.14);
}

.privacy-row {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    margin: 4px 0 20px;
    color: var(--muted);
    font-size: 0.84rem;
}

.privacy-row input {
    margin-top: 5px;
}

.lead-submit {
    width: 100%;
}

.lead-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.contact-aside {
    padding-top: 8px;
}

.contact-block {
    padding: 22px 0;
    border-top: 1px solid var(--line);
}

.contact-block:first-child {
    border-top: 3px solid var(--teal);
}

.contact-block h3 {
    margin-bottom: 8px;
}

.contact-block p,
.contact-block a {
    color: var(--muted);
}

.contact-block a:hover {
    color: var(--blue);
}

.contact-whatsapp {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.contact-whatsapp svg {
    flex: none;
    fill: #167a40;
}

.ltv-badge {
    display: inline-block;
    margin-top: 5px;
    padding: 3px 8px;
    border-radius: 4px;
    background: #dff4e9;
    color: #13543c;
    font-size: 0.85rem;
}

.ltv-badge-review {
    background: #fff1cf;
    color: #674307;
}

.simulation-rate {
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: var(--mist);
}

.simulation-rate strong {
    margin-left: 6px;
    white-space: nowrap;
}

.simulation-rate p + p,
.simulation-disclaimer {
    color: var(--muted);
    font-size: 0.85rem;
    line-height: 1.5;
}

.simulation-rate p + p {
    margin-top: 4px;
}

.simulation-disclaimer {
    margin-top: 14px;
    text-align: left;
}

.simulation-disclaimer a,
.simulation-rate a {
    text-decoration: underline;
    text-underline-offset: 2px;
}

.site-footer {
    padding: 64px 0 92px;
    background: var(--ink-strong);
    color: #b9c8d4;
}

.footer-grid {
    display: grid;
    gap: 44px;
    grid-template-columns: 1.25fr 1fr 1fr;
}

.footer-brand img {
    width: 190px;
    filter: brightness(0) invert(1);
}

.footer-brand p {
    max-width: 360px;
    margin-top: 18px;
    color: #b9c8d4;
}

.footer-col h3 {
    margin-bottom: 16px;
    color: var(--paper);
    font-size: 1rem;
}

.footer-col li {
    margin-bottom: 9px;
}

.footer-col a {
    color: #c9d6df;
}

.footer-col a:hover {
    color: #ffbd4a;
}

.footer-legal {
    margin-top: 42px;
    padding-top: 26px;
    border-top: 1px solid rgba(255, 255, 255, 0.16);
    color: #8fa3b3;
    font-size: 0.8rem;
}

.whatsapp-float {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 900;
    display: flex;
    width: 54px;
    height: 54px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #1fa855;
    box-shadow: 0 8px 24px rgba(7, 27, 45, 0.24);
}

.mobile-contact-bar {
    display: none;
}

@media (max-width: 1050px) {
    .nav-links {
        gap: 18px;
    }

    .header-phone {
        display: none;
    }

    .method-layout,
    .trust-layout {
        gap: 48px;
    }
}

@media (max-width: 860px) {
    :root {
        --header-height: 132px;
    }

    body {
        padding-bottom: 58px;
    }

    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 1.95rem;
    }

    .container,
    .container-narrow {
        width: min(100% - 32px, 1180px);
    }

    .section {
        padding: 70px 0;
    }

    .header-main {
        min-height: 80px;
    }

    .brand img {
        width: 178px;
    }

    .header-actions {
        display: none;
    }

    .hamburger {
        display: block;
    }

    .nav-links {
        position: fixed;
        top: var(--header-height);
        left: -100%;
        z-index: 1100;
        display: flex;
        width: 100%;
        height: calc(100dvh - var(--header-height));
        align-items: stretch;
        padding: 26px 20px 40px;
        overflow-y: auto;
        background: var(--paper);
        flex-direction: column;
        gap: 0;
        transition: left 180ms ease;
    }

    .nav-links.active {
        left: 0;
    }

    .nav-links > a:not(.button) {
        width: 100%;
        padding: 17px 3px;
        border-bottom: 1px solid var(--line);
        font-size: 1.05rem;
    }

    .nav-links > a:not(.button)::after {
        display: none;
    }

    .nav-links .mobile-only {
        display: inline-flex;
        width: 100%;
        margin-top: 24px;
    }

    .hamburger.active .bar:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    .home-hero {
        min-height: 0;
        background-position: 58% center;
    }

    .home-hero::before {
        background: rgba(7, 27, 45, 0.82);
    }

    .hero-inner {
        padding: 52px 0 46px;
    }

    .hero-lead {
        font-size: 1.1rem;
    }

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

    .pathway:nth-child(even) {
        border-right: 1px solid var(--line);
    }

    .pathway:nth-child(n+3) {
        border-top: 1px solid var(--line);
    }

    .method-layout,
    .trust-layout,
    .important-layout,
    .contact-layout {
        grid-template-columns: 1fr;
    }

    .method-image {
        max-width: 680px;
        margin: 0 auto;
    }

    .important-action {
        text-align: left;
    }

    .resources-grid,
    .news-grid {
        grid-template-columns: 1fr;
    }

    .calculator-shell {
        padding: 12px;
    }

    .lead-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .lead-actions {
        align-items: stretch;
        flex-direction: column-reverse;
    }

    .lead-actions .button {
        width: 100%;
    }

    .whatsapp-float {
        display: none;
    }

    .mobile-contact-bar {
        position: fixed;
        right: 0;
        bottom: 0;
        left: 0;
        z-index: 9999;
        display: flex;
        min-height: 58px;
        padding-right: 74px;
        background: var(--ink-strong);
        box-shadow: 0 -5px 18px rgba(7, 27, 45, 0.18);
    }

    .mobile-contact-bar a {
        display: flex;
        flex: 1 1 0;
        min-width: 0;
        align-items: center;
        justify-content: center;
        padding: 7px 8px;
        border-right: 1px solid rgba(255, 255, 255, 0.18);
        color: var(--paper);
        font-family: "Manrope", Arial, sans-serif;
        font-size: 0.83rem;
        font-weight: 800;
        text-align: center;
    }

    .mobile-contact-bar a:last-child {
        border-right: 0;
    }

    .mobile-contact-bar a[href^="tel:"] {
        flex-direction: column;
        line-height: 1.4;
    }

    .mobile-contact-bar a[href^="tel:"] span {
        white-space: nowrap;
    }

    .mobile-contact-bar .mobile-whatsapp {
        gap: 6px;
        white-space: nowrap;
    }

    .mobile-whatsapp svg {
        flex: none;
        color: #5bdb91;
    }

    #ms-consent-settings {
        right: 0;
        bottom: 0;
        left: auto;
        width: 74px;
        min-height: 58px;
        padding: 8px;
        border: 0;
        border-left: 1px solid rgba(255, 255, 255, 0.18);
        border-radius: 0;
        background: var(--ink-strong);
        color: var(--paper);
        box-shadow: none;
        outline-offset: -5px;
    }
}

@media (max-width: 560px) {
    h1 {
        font-size: 2.18rem;
    }

    h2 {
        font-size: 1.72rem;
    }

    body {
        font-size: 16px;
    }

    .hero-inner {
        padding: 34px 0 30px;
    }

    .hero-actions,
    .hero-actions .button {
        width: 100%;
    }

    .hero-actions {
        justify-content: center;
        gap: 12px;
    }

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

    .pathway {
        padding: 22px 18px;
        border-right: 1px solid var(--line);
    }

    .pathway + .pathway {
        border-top: 1px solid var(--line);
    }

    .method-caption {
        position: static;
        max-width: none;
        border: 1px solid var(--line);
        border-left: 4px solid var(--amber);
        box-shadow: none;
    }

    .calculator-tabs {
        display: grid;
        width: 100%;
        grid-template-columns: 1fr 1fr;
    }

    .btn-tab {
        padding: 9px 8px;
        font-size: 0.78rem;
    }

    #calcolatore #step1,
    #calcolatore #step2,
    #calcolatore #step3,
    #calcolatore #c_step3 {
        padding: 24px !important;
    }

    #calcolatore #c_step1,
    #calcolatore #c_step2 {
        padding-right: 0 !important;
        padding-left: 0 !important;
    }

    .consolidation-body {
        padding: 0 14px 24px;
    }

    .consolidation-options {
        padding: 10px;
    }

    .lead-form {
        padding: 24px 20px;
    }

    .site-footer {
        padding-top: 54px;
    }

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

@media (max-width: 360px) {
    .hero-inner {
        padding: 12px 0 14px;
    }

    .hero-copy .eyebrow {
        margin-bottom: 6px;
        line-height: 1.35;
    }

    .hero-copy h1 {
        font-size: 1.75rem;
    }

    .hero-lead {
        margin-top: 9px;
        font-size: 1rem;
        line-height: 1.35;
    }

    .hero-advice,
    .hero-purchase {
        margin-top: 8px;
        font-size: 0.93rem;
        line-height: 1.4;
    }

    .hero-fee,
    .hero-actions {
        margin-top: 9px;
    }

    .hero-link {
        display: none;
    }

    .pathway {
        padding-top: 16px;
    }
}
