/* ==========================================================================
   LMP Smart - foglio di stile del sito (nessuna dipendenza esterna)
   ========================================================================== */

@font-face {
    font-family: "Manrope";
    font-style: normal;
    font-weight: 400 800;
    font-display: swap;
    src: url("../fonts/manrope-latin-var.woff2") format("woff2");
}

:root {
    --navy: #062b48;
    --navy-2: #0b3a60;
    --blue: #1a7fcb;
    --blue-dark: #12639f;
    --sky: #6cb8f0;
    --sky-soft: #e8f3fc;
    --ink: #0e1c2a;
    --text: #3b4a5a;
    --muted: #66778a;
    --line: #e2e9f1;
    --bg: #ffffff;
    --bg-soft: #f4f8fc;
    --radius: 14px;
    --radius-lg: 22px;
    --shadow: 0 1px 2px rgba(6, 43, 72, 0.06), 0 8px 24px rgba(6, 43, 72, 0.08);
    --shadow-lg: 0 2px 6px rgba(6, 43, 72, 0.08), 0 20px 48px rgba(6, 43, 72, 0.14);
    --header-h: 72px;
    --font: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-h) + 12px);
    -webkit-text-size-adjust: 100%;
}

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

body {
    margin: 0;
    font-family: var(--font);
    font-size: 17px;
    line-height: 1.65;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
}

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

a {
    color: var(--blue);
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

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

:focus-visible {
    outline: 3px solid var(--sky);
    outline-offset: 3px;
    border-radius: 4px;
}

h1,
h2,
h3,
h4 {
    color: var(--ink);
    line-height: 1.2;
    margin: 0 0 0.6em;
    font-weight: 800;
    letter-spacing: -0.02em;
}

h1 {
    font-size: clamp(2.1rem, 4.6vw, 3.6rem);
}

h2 {
    font-size: clamp(1.7rem, 3.2vw, 2.5rem);
}

h3 {
    font-size: 1.25rem;
    letter-spacing: -0.01em;
}

p {
    margin: 0 0 1em;
}

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

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

.skip-link {
    position: absolute;
    left: 12px;
    top: -60px;
    z-index: 100;
    background: var(--navy);
    color: #fff;
    padding: 10px 16px;
    border-radius: 8px;
}

.skip-link:focus {
    top: 12px;
    color: #fff;
}

/* --------------------------------------------------------------------------
   Pulsanti
   -------------------------------------------------------------------------- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5em;
    padding: 0.85em 1.4em;
    border-radius: 999px;
    border: 2px solid transparent;
    font: inherit;
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.2s, color 0.2s, border-color 0.2s, transform 0.2s;
}

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

.btn--primary {
    background: var(--blue);
    color: #fff;
}

.btn--primary:hover {
    background: var(--blue-dark);
    color: #fff;
}

.btn--ghost {
    border-color: rgba(255, 255, 255, 0.55);
    color: #fff;
}

.btn--ghost:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: #fff;
    color: #fff;
}

.btn--outline {
    border-color: var(--line);
    color: var(--ink);
    background: #fff;
}

.btn--outline:hover {
    border-color: var(--blue);
    color: var(--blue);
}

.btn--sm {
    padding: 0.6em 1.05em;
    font-size: 0.875rem;
}

.arrow::after {
    content: "\2192";
    transition: transform 0.2s;
}

a:hover .arrow::after,
.btn:hover.arrow::after {
    transform: translateX(3px);
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: saturate(180%) blur(12px);
    -webkit-backdrop-filter: saturate(180%) blur(12px);
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.site-header.is-scrolled {
    border-bottom-color: var(--line);
    box-shadow: 0 6px 20px rgba(6, 43, 72, 0.06);
}

.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    height: var(--header-h);
}

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

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

.nav__list {
    display: flex;
    gap: 4px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav__list a {
    display: block;
    padding: 8px 12px;
    border-radius: 8px;
    color: var(--ink);
    font-size: 0.93rem;
    font-weight: 600;
    text-decoration: none;
}

.nav__list a:hover {
    color: var(--blue);
    background: var(--sky-soft);
}

.lang {
    display: flex;
    gap: 2px;
    list-style: none;
    margin: 0;
    padding: 3px;
    border: 1px solid var(--line);
    border-radius: 999px;
}

.lang a {
    display: block;
    padding: 4px 10px;
    border-radius: 999px;
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 700;
    text-decoration: none;
}

.lang a[aria-current="true"] {
    background: var(--navy);
    color: #fff;
}

.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fff;
    cursor: pointer;
    position: relative;
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
    position: absolute;
    left: 11px;
    width: 20px;
    height: 2px;
    background: var(--navy);
    border-radius: 2px;
    transition: transform 0.2s, opacity 0.2s;
}

.nav-toggle span {
    top: 20px;
}

.nav-toggle span::before,
.nav-toggle span::after {
    content: "";
    left: 0;
}

.nav-toggle span::before {
    top: -6px;
}

.nav-toggle span::after {
    top: 6px;
}

.nav-toggle[aria-expanded="true"] span {
    background: transparent;
}

.nav-toggle[aria-expanded="true"] span::before {
    transform: translateY(6px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span::after {
    transform: translateY(-6px) rotate(-45deg);
}

@media (max-width: 960px) {
    .nav-toggle {
        display: block;
    }
    .nav {
        position: absolute;
        top: var(--header-h);
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
        padding: 16px 20px 24px;
        background: #fff;
        border-bottom: 1px solid var(--line);
        box-shadow: 0 16px 30px rgba(6, 43, 72, 0.1);
        display: none;
    }
    .nav.is-open {
        display: flex;
    }
    .nav__list {
        flex-direction: column;
    }
    .nav__list a {
        padding: 12px;
        font-size: 1rem;
    }
    .lang {
        align-self: flex-start;
    }
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero {
    position: relative;
    isolation: isolate;
    color: #fff;
    background: var(--navy);
    overflow: hidden;
}

.hero__bg {
    position: absolute;
    inset: 0;
    z-index: -2;
}

.hero__bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(100deg, rgba(6, 43, 72, 0.96) 0%, rgba(6, 43, 72, 0.86) 45%, rgba(6, 43, 72, 0.45) 100%),
        linear-gradient(0deg, rgba(6, 43, 72, 0.6), transparent 40%);
}

.hero__inner {
    padding-block: clamp(80px, 13vw, 150px) clamp(72px, 10vw, 120px);
    max-width: 760px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 18px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--blue);
}

.hero .eyebrow {
    color: var(--sky);
}

.hero h1 {
    color: #fff;
}

.hero__lead {
    font-size: clamp(1.05rem, 1.6vw, 1.25rem);
    color: rgba(255, 255, 255, 0.86);
    max-width: 620px;
    margin-bottom: 32px;
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.hero__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 22px;
    margin: 40px 0 0;
    padding: 0;
    list-style: none;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
}

.hero__tags li::before {
    content: "";
    display: inline-block;
    width: 7px;
    height: 7px;
    margin-right: 9px;
    border-radius: 50%;
    background: var(--sky);
    vertical-align: middle;
}

/* --------------------------------------------------------------------------
   Sezioni
   -------------------------------------------------------------------------- */

.section {
    padding-block: clamp(64px, 9vw, 110px);
}

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

.section--navy {
    background: var(--navy);
    color: rgba(255, 255, 255, 0.84);
}

.section--navy h2,
.section--navy h3 {
    color: #fff;
}

.section--navy .eyebrow {
    color: var(--sky);
}

.section-head {
    max-width: 720px;
    margin-bottom: clamp(36px, 5vw, 56px);
}

.section-head--center {
    margin-inline: auto;
    text-align: center;
}

.section-head p {
    font-size: 1.1rem;
    color: var(--muted);
    margin-bottom: 0;
}

.section-head .eyebrow {
    margin-bottom: 14px;
    font-size: 0.8rem;
    color: var(--blue);
}

.section--navy .section-head .eyebrow {
    color: var(--sky);
}

.section--navy .section-head p {
    color: rgba(255, 255, 255, 0.75);
}

.grid {
    display: grid;
    gap: 24px;
}

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

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

@media (max-width: 900px) {
    .grid--3 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .grid--3,
    .grid--2 {
        grid-template-columns: 1fr;
    }
}

/* Card area di attività */
.card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: box-shadow 0.25s, transform 0.25s;
}

.card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-3px);
}

.card__media {
    aspect-ratio: 3 / 2;
    background: var(--bg-soft);
}

.card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card__body {
    padding: 24px 26px 28px;
}

.card__kicker {
    display: block;
    margin-bottom: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--blue);
}

.card__body p {
    margin: 0;
    color: var(--muted);
}

/* --------------------------------------------------------------------------
   Prodotti (badge)
   -------------------------------------------------------------------------- */

.products {
    align-items: stretch;
}

.product {
    --accent: var(--blue);
    --top: var(--navy);
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: box-shadow 0.25s, transform 0.25s;
}

.product:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.product--juster {
    --accent: #1565c0;
    --top: linear-gradient(135deg, #eef5fd, #d7e8fa);
}

.product--digits {
    --accent: #f5a524;
    --top: linear-gradient(135deg, #111a2e, #1e3354);
}

.product--spatial {
    --accent: #a3d911;
    --top: linear-gradient(135deg, #062b48, #0d4a7a);
}

.product__top {
    position: relative;
    display: flex;
    align-items: center;
    gap: 16px;
    min-height: 132px;
    padding: 26px;
    background: var(--top);
}

.product__icon {
    width: 64px;
    height: 64px;
    flex: none;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.18);
    object-fit: cover;
}

.product__name {
    margin: 0;
    font-size: 1.35rem;
}

.product--digits .product__name,
.product--spatial .product__name {
    color: #fff;
}

.product__cat {
    display: block;
    margin-top: 2px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--muted);
}

.product--digits .product__cat,
.product--spatial .product__cat {
    color: rgba(255, 255, 255, 0.72);
}

.product__logo {
    height: 46px;
    width: auto;
}

.product__flag {
    position: absolute;
    top: 14px;
    right: 14px;
    padding: 3px 10px;
    border-radius: 999px;
    background: var(--accent);
    color: #0e1c2a;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.product--juster .product__flag {
    color: #fff;
}

.product__body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 24px 26px 26px;
}

.product__claim {
    margin-bottom: 0.5em;
    color: var(--ink);
    font-size: 1.08rem;
    font-weight: 700;
    line-height: 1.4;
}

.product__desc {
    color: var(--muted);
    font-size: 0.97rem;
}

.chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0 0 22px;
    padding: 0;
    list-style: none;
}

.chips li {
    padding: 4px 11px;
    border-radius: 999px;
    background: var(--bg-soft);
    border: 1px solid var(--line);
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text);
}

.product__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: auto;
}

/* --------------------------------------------------------------------------
   Servizi
   -------------------------------------------------------------------------- */

.feature {
    padding: 30px 28px;
    border-radius: var(--radius-lg);
    background: #fff;
    border: 1px solid var(--line);
}

.feature__icon {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    margin-bottom: 20px;
    border-radius: 14px;
    background: var(--sky-soft);
    color: var(--blue);
}

.feature__icon svg {
    width: 26px;
    height: 26px;
}

.feature p {
    margin: 0;
    color: var(--muted);
}

/* --------------------------------------------------------------------------
   Banda "supporto integrato" e Team
   -------------------------------------------------------------------------- */

.split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(32px, 6vw, 80px);
    align-items: center;
}

@media (max-width: 860px) {
    .split {
        grid-template-columns: 1fr;
    }
}

.split__media img {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.pillar {
    padding: 30px 28px;
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.pillar p {
    color: rgba(255, 255, 255, 0.75);
}

.checklist {
    margin: 0;
    padding: 0;
    list-style: none;
}

.checklist li {
    position: relative;
    padding: 7px 0 7px 28px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-weight: 600;
    color: #fff;
}

.checklist li::before {
    content: "";
    position: absolute;
    left: 2px;
    top: 15px;
    width: 12px;
    height: 7px;
    border-left: 2px solid var(--sky);
    border-bottom: 2px solid var(--sky);
    transform: rotate(-45deg);
}

/* --------------------------------------------------------------------------
   Clienti
   -------------------------------------------------------------------------- */

.clients {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 28px 56px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.clients img {
    height: 52px;
    width: auto;
    max-width: 170px;
    object-fit: contain;
    filter: grayscale(1);
    opacity: 0.7;
    transition: filter 0.25s, opacity 0.25s;
}

.clients a:hover img {
    filter: none;
    opacity: 1;
}

/* --------------------------------------------------------------------------
   Progetto cofinanziato UE
   -------------------------------------------------------------------------- */

.eu-logos {
    background: #fff;
    padding: 18px 20px;
}

.eu-logos img {
    width: 100%;
    max-width: 980px;
    margin-inline: auto;
}

.eu-card {
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: #fff;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.eu-card .eu-logos {
    border-bottom: 1px solid var(--line);
    padding: 22px 28px;
}

.eu-card__body {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 32px;
    padding: 32px 28px;
}

@media (max-width: 820px) {
    .eu-card__body {
        grid-template-columns: 1fr;
    }
}

.eu-card__body h3 {
    font-size: 1.4rem;
}

.facts {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 10px 18px;
    align-content: start;
    margin: 0;
    font-size: 0.92rem;
}

.facts dt {
    color: var(--muted);
    font-weight: 600;
}

.facts dd {
    margin: 0;
    color: var(--ink);
    font-weight: 600;
}

.eu-statement {
    margin: 0;
    padding: 14px 18px;
    border-left: 4px solid #003399;
    background: #f2f5fb;
    border-radius: 0 10px 10px 0;
    color: var(--ink);
    font-weight: 600;
}

/* --------------------------------------------------------------------------
   Contatti
   -------------------------------------------------------------------------- */

.contact {
    text-align: center;
}

.contact__box {
    max-width: 820px;
    margin-inline: auto;
    padding: clamp(36px, 6vw, 64px) clamp(22px, 5vw, 60px);
    border-radius: 28px;
    background: radial-gradient(120% 140% at 100% 0%, #1a7fcb 0%, #0b3a60 55%, #062b48 100%);
    color: rgba(255, 255, 255, 0.85);
}

.contact__box h2 {
    color: #fff;
}

.contact__mail {
    display: inline-block;
    margin-top: 10px;
    font-size: clamp(1.3rem, 3vw, 1.9rem);
    font-weight: 800;
    color: #fff;
    text-decoration: none;
    border-bottom: 2px solid var(--sky);
}

.contact__mail:hover {
    color: var(--sky);
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.site-footer {
    padding-block: 56px 36px;
    background: var(--bg-soft);
    border-top: 1px solid var(--line);
    font-size: 0.9rem;
    color: var(--muted);
}

.site-footer__grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr;
    gap: 36px;
}

@media (max-width: 820px) {
    .site-footer__grid {
        grid-template-columns: 1fr;
    }
}

.site-footer img.footer-logo {
    height: 34px;
    width: auto;
    margin-bottom: 16px;
}

.site-footer h2 {
    margin-bottom: 12px;
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ink);
}

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

.site-footer li {
    margin-bottom: 6px;
}

.site-footer a {
    color: var(--text);
    text-decoration: none;
}

.site-footer a:hover {
    color: var(--blue);
    text-decoration: underline;
}


.site-footer__bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 12px;
    margin-top: 28px;
    padding-top: 22px;
    border-top: 1px solid var(--line);
    font-size: 0.82rem;
}

.link-button {
    padding: 0;
    border: 0;
    background: none;
    font: inherit;
    color: var(--text);
    cursor: pointer;
}

.link-button:hover {
    color: var(--blue);
    text-decoration: underline;
}

/* --------------------------------------------------------------------------
   Pagina progetto
   -------------------------------------------------------------------------- */

.page-hero {
    padding-block: clamp(44px, 7vw, 80px) clamp(36px, 5vw, 56px);
    background: linear-gradient(180deg, var(--bg-soft), #fff);
    border-bottom: 1px solid var(--line);
}

.page-hero h1 {
    font-size: clamp(1.8rem, 3.6vw, 2.8rem);
    max-width: 900px;
}

.page-hero p {
    max-width: 760px;
    font-size: 1.12rem;
    color: var(--muted);
}

.page-hero .eyebrow {
    font-size: 0.8rem;
    color: var(--blue);
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0 0 22px;
    padding: 0;
    list-style: none;
    font-size: 0.85rem;
    color: var(--muted);
}

.breadcrumb li + li::before {
    content: "/";
    margin-right: 6px;
    color: var(--line);
}

.prose {
    max-width: 780px;
}

.prose h2 {
    margin-top: 1.8em;
    font-size: 1.6rem;
}

.prose ul {
    padding-left: 1.2em;
}

.prose li {
    margin-bottom: 0.4em;
}

.layout-aside {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: clamp(32px, 5vw, 64px);
    align-items: start;
}

@media (max-width: 960px) {
    .layout-aside {
        grid-template-columns: 1fr;
    }
}

.aside-card {
    position: sticky;
    top: calc(var(--header-h) + 20px);
    padding: 26px;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: #fff;
    box-shadow: var(--shadow);
}

.aside-card h2 {
    font-size: 1.05rem;
    margin-bottom: 16px;
}

.aside-card .facts {
    grid-template-columns: 1fr;
    gap: 2px;
}

.aside-card .facts dd {
    margin-bottom: 12px;
}

.note {
    padding: 14px 18px;
    border-radius: 12px;
    background: var(--sky-soft);
    color: var(--ink);
    font-size: 0.95rem;
}

.clients img.is-square {
    height: 68px;
}

/* Tabelle (pagine legali) */
.table-wrap {
    overflow-x: auto;
    margin: 8px 0 24px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.data-table {
    width: 100%;
    min-width: 640px;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.data-table th,
.data-table td {
    padding: 12px 14px;
    border-bottom: 1px solid var(--line);
    text-align: left;
    vertical-align: top;
}

.data-table th {
    background: var(--bg-soft);
    color: var(--ink);
    font-weight: 700;
}

.data-table tr:last-child td {
    border-bottom: 0;
}

.prose h3 {
    margin-top: 1.4em;
    font-size: 1.1rem;
}
