﻿:root {
    --ink: #0F172A;
    --muted: #5B6678;
    --line: #E6EAF0;
    --primary: #1F3A5F; /* blu istituzionale */
    --primary-strong: #17314F; /* blu più profondo */
    --accent: #2C5EA8; /* blu attivo per CTA/link */
    --secondary: #D97706; /* ambra/arancione elegante */
    --secondary-soft: #FFF3E6; /* sfondo soft per badge/accenti */

    --primary-weak: rgba(31, 58, 95, 0.08);
    --accent-weak: rgba(44, 94, 168, 0.12);
    --secondary-weak: rgba(217, 119, 6, 0.12);
    --bg: #FFFFFF;
    --bg-soft: #F7F9FC;
    --section-bg: #F3F6FA;
    --text-main: #0F172A;
    --shadow-sm: 0 4px 14px rgba(15, 23, 42, 0.04);
    --shadow-md: 0 10px 28px rgba(15, 23, 42, 0.08);
    --shadow-lg: 0 18px 42px rgba(15, 23, 42, 0.10);
    --radius-sm: 12px;
    --radius-md: 16px;
    --radius-lg: 20px;
    --transition-fast: 0.18s ease;
    --transition-mid: 0.28s ease;
    --font-sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

html,
body {
    height: 100%;
    font-family: var(--font-sans);
}

body {
    color: var(--text-main);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.site-header {
    position: relative;
    z-index: 1030;
}

.navbar {
    position: relative;
    z-index: 1031;
}

.navbar-collapse {
    position: relative;
    z-index: 1032;
}

.dropdown-menu {
    z-index: 1055;
}

/* -------------------- TYPOGRAPHY -------------------- */

h1,
h2 {
    color: var(--primary);
    font-weight: 800;
    letter-spacing: -0.02em;
}

h3 {
    color: var(--primary);
    font-weight: 800;
    letter-spacing: -0.01em;
}

p {
    line-height: 1.65;
}

.small.text-muted,
.text-muted {
    color: var(--muted) !important;
}

/* -------------------- NAVBAR / HEADER -------------------- */

.navbar {
    background-color: rgba(255, 255, 255, 0.94);
    border-bottom: 1px solid var(--line);
    backdrop-filter: saturate(140%) blur(8px);
}

    .navbar a {
        color: var(--text-main);
        transition: color var(--transition-fast);
    }

        .navbar a:hover {
            color: var(--primary);
        }

.site-header {
    border-bottom: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: saturate(140%) blur(8px);
}

.brand {
    display: inline-flex;
    align-items: center;
    padding: 0;
}

.brand-logo {
    height: 28px;
    width: auto;
    display: block;
}

.brand-mark {
    width: 14px;
    height: 14px;
    border-radius: 4px;
    background: var(--primary);
    display: inline-block;
}

.brand-name {
    font-weight: 800;
    letter-spacing: 0.06em;
    font-size: 0.95rem;
    color: var(--primary);
}

.nav-link {
    color: var(--ink);
    position: relative;
    transition: color var(--transition-fast);
}

    .nav-link:hover,
    .nav-link:focus {
        color: var(--primary);
    }

/* -------------------- BUTTONS -------------------- */

.btn-primary {
    background: linear-gradient(180deg, var(--accent) 0%, #245292 100%);
    border-color: var(--accent);
    color: #FFFFFF;
    letter-spacing: 0.02em;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast), background-color var(--transition-fast), border-color var(--transition-fast);
    box-shadow: 0 6px 14px rgba(44, 94, 168, 0.18);
}

    .btn-primary:hover,
    .btn-primary:focus {
        background: linear-gradient(180deg, var(--primary) 0%, var(--primary-strong) 100%);
        border-color: var(--primary);
        transform: translateY(-1px);
        box-shadow: 0 10px 24px rgba(31, 58, 95, 0.24);
    }

    .btn-primary:disabled {
        background: #A7B7CF;
        border-color: #A7B7CF;
        box-shadow: none;
    }

.btn-outline-primary {
    background: transparent;
    border: 1px solid rgba(31, 58, 95, 0.22);
    color: var(--primary);
    letter-spacing: 0.01em;
    transition: color var(--transition-fast), border-color var(--transition-fast), background-color var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast);
}

    .btn-outline-primary:hover,
    .btn-outline-primary:focus {
        color: var(--primary);
        background: rgba(31, 58, 95, 0.04);
        border-color: rgba(31, 58, 95, 0.34);
        transform: translateY(-1px);
        box-shadow: 0 8px 18px rgba(31, 58, 95, 0.10);
    }

/* -------------------- ACCESSIBILITY -------------------- */

.skip-link {
    position: absolute;
    left: -9999px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

    .skip-link:focus {
        position: static;
        width: auto;
        height: auto;
        padding: 0.5rem 1rem;
        background: var(--bg-soft);
        border: 1px solid var(--line);
        border-radius: 0.5rem;
        margin: 0.5rem;
        display: inline-block;
    }

/* -------------------- LAYOUT SECTIONS -------------------- */

.section {
    position: relative;
    padding: 80px 0;
}

.section-light {
    background: #FFFFFF;
}

.section-muted {
    background: linear-gradient(180deg, #F7F9FC 0%, #F3F6FA 100%);
}

.section-soft {
    background: var(--bg-soft);
}

.section-alt {
    background-color: var(--section-bg);
    padding: 80px 0;
}

.section-hero {
    padding: 5rem 0 3.75rem;
    background: radial-gradient(900px 320px at 12% 0%, rgba(44, 94, 168, 0.10), transparent 60%), radial-gradient(720px 260px at 88% 18%, rgba(217, 119, 6, 0.06), transparent 55%), linear-gradient(180deg, #FFFFFF 0%, #FBFCFE 100%);
}

.section-head {
    margin-bottom: 2rem;
    max-width: 76ch;
}

    .section-head h2 {
        margin: 0 0 10px 0;
    }

    .section-head p {
        margin: 0;
        color: var(--muted);
    }

.section-title {
    font-weight: 800;
    margin-bottom: 0.35rem;
    font-size: clamp(1.8rem, 2.6vw, 2.25rem);
    line-height: 1.15;
}

.section-subtitle {
    color: var(--muted);
    margin: 0;
    line-height: 1.65;
    font-size: 1.03rem;
}

.section-foot {
    margin-top: 22px;
}

/* -------------------- HERO -------------------- */

.kicker {
    color: var(--muted);
    font-size: 0.96rem;
    letter-spacing: 0.01em;
}

.hero-title {
    font-size: clamp(2.35rem, 4vw, 4.1rem);
    line-height: 1.04;
    font-weight: 800;
    letter-spacing: -0.035em;
    margin: 0;
    max-width: 12ch;
}

.hero-lead {
    color: var(--muted);
    font-size: 1.14rem;
    line-height: 1.7;
    max-width: 52ch;
}

.hero-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    color: var(--muted);
}

.link-strong {
    color: var(--primary);
    text-decoration: none;
    font-weight: 700;
    transition: color var(--transition-fast), text-decoration-color var(--transition-fast);
}

    .link-strong:hover,
    .link-strong:focus {
        color: var(--accent);
        text-decoration: underline;
    }

.dot {
    color: #9AA4B2;
}

/* -------------------- HERO PROOF -------------------- */

.hero-proof {
    border: 1px solid rgba(31, 58, 95, 0.10);
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.92);
    padding: 1.35rem;
    box-shadow: 0 14px 32px rgba(15, 23, 42, 0.08);
    backdrop-filter: blur(10px);
}

.proof-row {
    display: grid;
    grid-template-columns: 110px 1fr;
    gap: 0.8rem;
    padding: 0.4rem 0;
}

.proof-label {
    color: var(--muted);
    font-size: 0.92rem;
}

.proof-value {
    font-weight: 700;
    color: var(--ink);
}

.proof-divider {
    height: 1px;
    background: var(--line);
    margin: 1rem 0;
}

.proof-mini-title {
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 0.2rem;
}

.proof-mini-text {
    color: var(--muted);
    margin-top: 0.35rem;
    line-height: 1.6;
}

/* -------------------- GENERIC CARDS -------------------- */

.card,
.card-soft,
.case-card,
.contact-card,
.form-card,
.panel,
.t-card,
.flow-item {
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid var(--line);
}

.card {
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-sm);
}

.card-soft {
    position: relative;
    border-radius: var(--radius-md);
    padding: 1.35rem;
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition-mid), box-shadow var(--transition-mid), border-color var(--transition-mid);
    overflow: hidden;
}

    .card-soft::before {
        content: "";
        position: absolute;
        inset: 0 auto auto 0;
        width: 100%;
        height: 3px;
        background: linear-gradient(90deg, var(--accent) 0%, rgba(44, 94, 168, 0) 70%);
        opacity: 0;
        transition: opacity var(--transition-mid);
    }

    .card-soft:hover {
        transform: translateY(-4px);
        box-shadow: 0 14px 30px rgba(15, 23, 42, 0.10);
        border-color: rgba(44, 94, 168, 0.25);
    }

        .card-soft:hover::before {
            opacity: 1;
        }

.card-soft-title {
    position: relative;
    font-weight: 800;
    margin-bottom: 0.55rem;
    color: var(--primary);
    line-height: 1.2;
}

    .card-soft-title::after {
        content: "";
        display: block;
        width: 28px;
        height: 2px;
        margin-top: 6px;
        background: var(--secondary);
        opacity: 0.6;
    }

.card-soft-text {
    color: var(--muted);
    line-height: 1.65;
    margin-bottom: 0.9rem;
}

.card-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-top: 1rem;
    color: var(--secondary);
    text-decoration: none;
    font-weight: 700;
    letter-spacing: 0.01em;
    transition: color var(--transition-fast), transform var(--transition-fast);
}

    .card-link:hover,
    .card-link:focus {
        color: var(--primary);
        text-decoration: underline;
        transform: translateX(3px);
    }

/* -------------------- BADGES / TAGS -------------------- */

.badge-soft {
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    background: var(--secondary-soft);
    color: var(--secondary);
    font-size: 0.78rem;
    font-weight: 700;
    line-height: 1;
    vertical-align: baseline;
    margin-right: 0.2rem;
}

.tag {
    font-size: 0.84rem;
    padding: 0.3rem 0.58rem;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: #FFFFFF;
    color: var(--ink);
    transition: border-color var(--transition-fast), transform var(--transition-fast);
}

    .tag:hover {
        border-color: rgba(44, 94, 168, 0.25);
        transform: translateY(-1px);
    }

/* -------------------- LISTS -------------------- */

.list-clean {
    margin: 0;
    padding-left: 1.1rem;
    color: var(--ink);
}

    .list-clean li {
        margin: 0.4rem 0;
    }

.list-check {
    list-style: none;
    padding: 0;
    margin: 0;
}

    .list-check li {
        position: relative;
        padding-left: 1.45rem;
        margin: 0.62rem 0;
        color: var(--ink);
        line-height: 1.55;
    }

        .list-check li::before {
            content: "•";
            position: absolute;
            left: 0.25rem;
            top: 0;
            color: var(--secondary);
            font-weight: 900;
        }

/* -------------------- FLOW -------------------- */

.flow {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 0.9rem;
}

.flow-item {
    display: grid;
    grid-template-columns: 52px 1fr;
    gap: 1rem;
    padding: 1.1rem 1.1rem 1.1rem 1rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition-mid), box-shadow var(--transition-mid), border-color var(--transition-mid);
}

    .flow-item:hover {
        transform: translateY(-3px);
        box-shadow: var(--shadow-md);
        border-color: rgba(217, 119, 6, 0.25);
    }

.flow-n {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    background: linear-gradient(180deg, rgba(44, 94, 168, 0.12) 0%, rgba(31, 58, 95, 0.08) 100%);
    color: var(--primary);
    font-weight: 800;
    font-size: 1.05rem;
    box-shadow: inset 0 0 0 1px rgba(44, 94, 168, 0.06), 0 4px 10px rgba(31, 58, 95, 0.10);
}

.flow-title {
    color: var(--secondary);
    font-weight: 800;
    margin-bottom: 0.15rem;
    line-height: 1.25;
}

.flow-text {
    color: var(--muted);
    line-height: 1.6;
}

/* -------------------- PANELS -------------------- */

.panel {
    border-radius: var(--radius-md);
    padding: 1.35rem;
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition-mid), box-shadow var(--transition-mid);
}

    .panel:hover {
        transform: translateY(-3px);
        box-shadow: var(--shadow-md);
    }

.panel-title {
    font-weight: 800;
    margin-bottom: 0.8rem;
    color: var(--secondary);
    line-height: 1.15;
}

.panel-note {
    margin-top: 1rem;
    color: var(--muted);
    font-size: 0.96rem;
    line-height: 1.6;
}

/* -------------------- CASES -------------------- */

.case-card {
    position: relative;
    border-radius: var(--radius-md);
    padding: 1.3rem;
    border: 1px solid rgba(31, 58, 95, 0.10);
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition-mid), box-shadow var(--transition-mid), border-color var(--transition-mid);
}

    .case-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 14px 32px rgba(15, 23, 42, 0.10);
        border-color: rgba(31, 58, 95, 0.20);
    }

.case-title {
    font-weight: 800;
    margin-bottom: 0.55rem;
    color: var(--ink);
    line-height: 1.3;
}

.case-text {
    color: var(--muted);
    line-height: 1.65;
}

.case-tags {
    margin-top: 1rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.cases-footnote {
    margin-top: 1rem;
    color: var(--muted);
    font-size: 0.96rem;
}

/* -------------------- TESTIMONIALS -------------------- */

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.t-card {
    border-radius: 14px;
    padding: 20px 20px 18px;
    background: linear-gradient(180deg, #FFFFFF 0%, #FBFCFE 100%);
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition-mid), box-shadow var(--transition-mid), border-color var(--transition-mid);
}

    .t-card:hover {
        transform: translateY(-4px);
        box-shadow: var(--shadow-md);
        border-color: rgba(44, 94, 168, 0.16);
    }

.t-quote {
    font-size: 1rem;
    line-height: 1.65;
    color: var(--ink);
    margin-bottom: 16px;
}

.t-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    border-top: 1px solid #EEF2F7;
    padding-top: 14px;
}

.t-avatar {
    width: 42px;
    height: 42px;
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(44, 94, 168, 0.12) 0%, rgba(31, 58, 95, 0.08) 100%);
    color: var(--primary);
    display: grid;
    place-items: center;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.t-name {
    font-weight: 700;
    color: var(--ink);
}

.t-role {
    color: var(--muted);
    font-size: 14px;
}

/* -------------------- CONTACT -------------------- */

.contact-card {
    border-radius: var(--radius-md);
    padding: 1.3rem;
    box-shadow: var(--shadow-sm);
}

.contact-line {
    display: grid;
    grid-template-columns: 90px 1fr;
    gap: 0.75rem;
    padding: 0.42rem 0;
}

.contact-label {
    color: var(--muted);
    font-size: 0.92rem;
}

.contact-value a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 700;
    transition: color var(--transition-fast);
}

    .contact-value a:hover,
    .contact-value a:focus {
        color: var(--accent);
        text-decoration: underline;
    }

.contact-note {
    margin-top: 1rem;
    color: var(--muted);
    line-height: 1.6;
    font-size: 0.96rem;
}

/* -------------------- FORM -------------------- */

.form-card {
    border-radius: var(--radius-md);
    padding: 1.3rem;
    box-shadow: var(--shadow-sm);
}

.form-label {
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 0.35rem;
}

.form-control,
.form-check-input {
    border-color: #D6DCE5;
    border-radius: 10px;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-control {
    padding: 0.72rem 0.9rem;
}

    .form-control:focus,
    .form-check-input:focus {
        border-color: var(--accent);
        box-shadow: 0 0 0 0.2rem rgba(44, 94, 168, 0.15);
    }

textarea.form-control {
    resize: vertical;
}

.form-footnote {
    margin-top: 0.95rem;
    color: var(--muted);
    font-size: 0.9rem;
    margin-bottom: 0;
}

/* -------------------- FOOTER -------------------- */

.site-footer {
    border-top: 1px solid var(--line);
    background: #FFFFFF;
}

/* -------------------- UTILITIES -------------------- */

::selection {
    background: rgba(44, 94, 168, 0.20);
    color: var(--ink);
}

/* -------------------- RESPONSIVE -------------------- */

@media (max-width: 1199px) {
    .hero-title {
        max-width: 13ch;
    }
}

@media (max-width: 992px) {
    .grid-3 {
        grid-template-columns: 1fr;
    }

    .hero-title {
        max-width: none;
    }
}

@media (max-width: 991px) {
    .proof-row {
        grid-template-columns: 95px 1fr;
    }

    .section {
        padding: 64px 0;
    }

    .section-hero {
        padding: 4.25rem 0 3rem;
    }
}

@media (max-width: 767px) {
    .hero-title {
        font-size: clamp(2rem, 9vw, 3rem);
        line-height: 1.08;
    }

    .hero-lead {
        font-size: 1.04rem;
    }

    .flow-item {
        grid-template-columns: 44px 1fr;
        gap: 0.85rem;
    }

    .flow-n {
        width: 44px;
        height: 44px;
        border-radius: 14px;
        font-size: 0.98rem;
    }

    .contact-line {
        grid-template-columns: 78px 1fr;
    }
}

@media (max-width: 576px) {
    .brand-logo {
        height: 24px;
    }

    .section {
        padding: 54px 0;
    }

    .section-head {
        margin-bottom: 1.5rem;
    }

    .card-soft,
    .case-card,
    .contact-card,
    .form-card,
    .panel,
    .t-card {
        padding: 1.1rem;
    }

    .hero-proof {
        padding: 1.1rem;
    }
}

.hero-visual,
.how-visual {
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: #F4F6F9;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.how-visual {
    background: #F8F7FD;
}

.hero-visual-img,
.how-visual-img {
    display: block;
    width: 100%;
    height: auto;
}

.hero-visual {
    padding: 0.5rem;
}

.how-visual {
    padding: 0.5rem;
}

@media (max-width: 991px) {
    .hero-visual,
    .how-visual {
        margin-top: 1rem;
    }
}

.summary-section {
    padding-top: 0;
    margin-top: -24px;
}

.summary-proof {
    border: 1px solid var(--line);
    border-top: 3px solid var(--accent);
    border-radius: var(--radius-lg);
    background: #ffffff;
    padding: 1.5rem 1.75rem;
    box-shadow: var(--shadow-sm);
}

    .summary-proof .proof-row {
        display: grid;
        grid-template-columns: 110px 1fr;
        gap: 0.8rem;
        padding: 0.45rem 0;
    }

    .summary-proof .proof-label {
        color: var(--muted);
        font-size: 0.92rem;
    }

    .summary-proof .proof-value {
        font-weight: 700;
        color: var(--ink);
    }

    .summary-proof .proof-divider {
        height: 1px;
        background: var(--line);
        margin: 1rem 0;
    }

    .summary-proof .proof-mini-title {
        font-weight: 800;
        color: var(--primary);
        margin-bottom: 0.2rem;
    }

    .summary-proof .proof-mini-text {
        color: var(--muted);
        line-height: 1.6;
    }

@media (max-width: 991px) {
    .summary-section {
        margin-top: 0;
    }

    .summary-proof {
        padding: 1.25rem;
    }

        .summary-proof .proof-row {
            grid-template-columns: 95px 1fr;
        }
}