/*
  EDO SUITE - CSS PRINCIPALE
  Questo file contiene gli stili custom del sito pubblico.
  I file Bootstrap presenti in assets/css sono librerie esterne e non vanno modificati qui.
*/

/* Variabili globali: colori, ombre e valori riutilizzati nel progetto. */
:root {
    --bg: #f5f8fb;
    --panel: #ffffff;
    --ink: #0f172a;
    --muted: #5b6472;
    --line: #d9e2ec;
    --brand: #0b5d5b;
    --brand-2: #0f766e;
    --accent: #38bdf8;
    --shadow: 0 18px 50px rgba(15, 23, 42, 0.08);
}

/* Reset essenziale e comportamento base della pagina. */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--ink);
    background:
        radial-gradient(circle at top left, rgba(56, 189, 248, 0.14), transparent 30%),
        radial-gradient(circle at top right, rgba(15, 118, 110, 0.12), transparent 26%),
        var(--bg);
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* Navbar desktop: logo, menu principale e CTA. */
.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 18px clamp(18px, 4vw, 40px);
    background: rgba(245, 248, 251, 0.84);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(217, 226, 236, 0.72);
}

.site-brand img {
    width: min(240px, 42vw);
    height: auto;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.site-nav a {
    padding: 10px 14px;
    border-radius: 999px;
    color: var(--muted);
    font-weight: 600;
}

.site-nav a:hover {
    color: var(--ink);
    background: rgba(255, 255, 255, 0.72);
}

.nav-cta {
    color: #fff !important;
    background: linear-gradient(135deg, var(--brand-2), var(--accent));
    box-shadow: 0 10px 24px rgba(15, 118, 110, 0.18);
}

/* Contenitore principale condiviso dalle pagine. */
main {
    width: min(1200px, calc(100% - 32px));
    margin: 0 auto;
    padding: 30px 0 48px;
}

/* Vecchio hero/base layout: alcune classi restano utili per componenti riusati. */
.hero {
    display: grid;
    grid-template-columns: minmax(0, 1.12fr) minmax(320px, 0.88fr);
    gap: 28px;
    align-items: center;
    min-height: calc(100vh - 110px);
}

.hero-copy {
    padding: 20px 0;
}

/* Etichetta piccola usata sopra titoli e blocchi evidenziati. */
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    padding: 8px 12px;
    border: 1px solid rgba(15, 118, 110, 0.14);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.8);
    color: var(--brand);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.hero h1 {
    margin: 0;
    font-size: clamp(42px, 7vw, 82px);
    line-height: 0.95;
    letter-spacing: 0;
}

.hero p {
    max-width: 620px;
    margin: 18px 0 0;
    color: var(--muted);
    font-size: 18px;
    line-height: 1.6;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

/* Bottoni riutilizzabili per CTA primarie e secondarie. */
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 12px 18px;
    border-radius: 999px;
    font-weight: 700;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

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

.button-primary {
    color: #fff;
    background: linear-gradient(135deg, var(--brand), var(--brand-2));
    box-shadow: 0 12px 30px rgba(15, 118, 110, 0.18);
}

.button-secondary {
    color: var(--ink);
    background: #fff;
    border: 1px solid var(--line);
}

.hero-points {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 0;
    margin: 24px 0 0;
    list-style: none;
}

.hero-points li {
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.76);
    border: 1px solid rgba(217, 226, 236, 0.9);
    color: var(--muted);
    font-weight: 600;
}

.hero-art {
    display: grid;
    gap: 18px;
}

.hero-panel {
    padding: 24px;
    border: 1px solid rgba(217, 226, 236, 0.9);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.88);
    box-shadow: var(--shadow);
}

.hero-panel-top {
    display: grid;
    gap: 18px;
    align-content: start;
}

.hero-mark {
    width: min(100%, 300px);
    margin: 0 auto;
}

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

.hero-stats div {
    padding: 14px 16px;
    border-radius: 16px;
    background: linear-gradient(180deg, #f8fbfd, #eef7f7);
    border: 1px solid rgba(15, 118, 110, 0.08);
}

.hero-stats strong,
.hero-stats span {
    display: block;
}

.hero-stats strong {
    margin-bottom: 6px;
    color: var(--ink);
    font-size: 16px;
}

.hero-stats span {
    color: var(--muted);
    font-size: 14px;
}

.hero-panel-bottom .mini-label {
    display: inline-flex;
    margin-bottom: 10px;
    color: var(--brand-2);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.hero-panel-bottom p {
    margin: 0;
    color: var(--muted);
    font-size: 16px;
    line-height: 1.65;
}

/* Sezioni e card generiche usate nelle pagine interne. */
.section {
    margin-top: 28px;
    padding: 28px;
    border: 1px solid rgba(217, 226, 236, 0.9);
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.88);
    box-shadow: var(--shadow);
}

.section-plain {
    background: #fff;
}

.section-soft {
    background: linear-gradient(180deg, #ffffff, #f8fbfc);
}

.section-heading {
    margin-bottom: 22px;
}

.section-heading span {
    display: inline-flex;
    margin-bottom: 10px;
    color: var(--brand-2);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.section-heading h2 {
    margin: 0;
    font-size: clamp(26px, 4vw, 38px);
    line-height: 1.1;
}

/* Griglie dei servizi e degli step del metodo. */
.service-grid,
.steps-grid {
    display: grid;
    gap: 16px;
}

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

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

.service-card,
.step-card {
    min-height: 100%;
    padding: 22px;
    border-radius: 22px;
    border: 1px solid rgba(217, 226, 236, 0.9);
    background: linear-gradient(180deg, #fff, #f9fbfd);
}

.service-card h3,
.step-card h3 {
    margin: 0 0 10px;
    font-size: 20px;
    line-height: 1.2;
}

.service-card p,
.step-card p {
    margin: 0;
    color: var(--muted);
    line-height: 1.6;
}

.step-card span {
    display: inline-flex;
    margin-bottom: 16px;
    color: var(--brand-2);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
}

/* Blocco contatti con CTA email. */
.contact-section {
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
}

.contact-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 30px;
    border-radius: 28px;
    border: 1px solid rgba(15, 118, 110, 0.16);
    background: linear-gradient(135deg, #ffffff, #eef9f9);
    box-shadow: var(--shadow);
}

.contact-box h2 {
    margin: 10px 0 12px;
    font-size: clamp(26px, 4vw, 36px);
}

.contact-box p {
    max-width: 620px;
    margin: 0;
    color: var(--muted);
    line-height: 1.6;
}

.contact-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 12px;
}

/* Footer scuro condiviso con logo bianco e link legali. */
.site-footer {
    padding: 16px 0 38px;
    color: var(--muted);
    text-align: center;
    font-size: 14px;
}

/* Breakpoint tablet: griglie a colonne singole o doppie. */
@media (max-width: 1100px) {
    .hero,
    .service-grid,
    .steps-grid,
    .contact-box {
        grid-template-columns: 1fr;
    }

    .hero {
        min-height: auto;
    }

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

    .contact-box {
        display: grid;
    }

    .contact-actions {
        justify-content: flex-start;
    }
}

/* Breakpoint smartphone: spazi ridotti e layout touch-friendly. */
@media (max-width: 760px) {
    .site-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .site-nav {
        justify-content: flex-start;
    }

    main {
        width: min(100%, calc(100% - 24px));
        padding-top: 18px;
    }

    .hero,
    .section,
    .contact-box {
        padding: 20px;
        border-radius: 22px;
    }

    .hero h1 {
        font-size: clamp(38px, 14vw, 56px);
    }

    .hero p {
        font-size: 16px;
    }

    .service-grid,
    .steps-grid {
        grid-template-columns: 1fr;
    }

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

/* Link del footer e collegamenti legali. */
.footer-links {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    margin: 0;
}

.footer-links a,
.legal-panel a {
    color: var(--brand);
    font-weight: 700;
}

/* Layout delle pagine legali statiche. */
.legal-page {
    min-height: calc(100vh - 220px);
    display: grid;
    align-items: center;
}

.legal-panel {
    max-width: 820px;
    padding: 34px;
    border: 1px solid rgba(217, 226, 236, 0.9);
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: var(--shadow);
}

.legal-panel h1 {
    margin: 0 0 18px;
    font-size: clamp(34px, 5vw, 56px);
    line-height: 1;
}

.legal-panel p {
    margin: 0 0 16px;
    color: var(--muted);
    font-size: 17px;
    line-height: 1.7;
}

.legal-panel p:last-child {
    margin-bottom: 0;
}

.site-brand img {
    width: min(190px, 48vw);
    max-height: 72px;
    object-fit: contain;
}

.site-nav a.is-active {
    color: var(--ink);
    background: rgba(255, 255, 255, 0.82);
    box-shadow: inset 0 0 0 1px rgba(217, 226, 236, 0.9);
}

.page-hero {
    max-width: 880px;
    padding: 62px 0 28px;
}

.page-hero h1 {
    margin: 0;
    font-size: clamp(38px, 6vw, 68px);
    line-height: 1;
    letter-spacing: 0;
}

.page-hero p {
    max-width: 680px;
    margin: 18px 0 0;
    color: var(--muted);
    font-size: 18px;
    line-height: 1.65;
}

.hero-mark {
    width: min(100%, 340px);
}

@media (max-width: 760px) {
    .site-brand img {
        width: min(170px, 62vw);
    }

    .page-hero {
        padding: 34px 0 12px;
    }

    .page-hero p {
        font-size: 16px;
    }
}

.site-footer .footer-links a {
    color: rgba(255, 255, 255, 0.82);
}

.site-footer .footer-links a:hover {
    color: #ffffff;
}

.site-footer {
    margin-top: 36px;
    padding: 34px 18px 38px;
    color: rgba(255, 255, 255, 0.72);
    text-align: center;
    font-size: 14px;
    background: #0b1f33;
}

.footer-inner {
    width: min(1200px, 100%);
    margin: 0 auto;
    display: grid;
    justify-items: center;
    gap: 14px;
}

.footer-brand img {
    width: min(170px, 52vw);
    max-height: 80px;
    object-fit: contain;
}

.site-footer p {
    margin: 0;
}

.site-footer .footer-links {
    margin: 0;
}

.site-footer .footer-links a {
    color: rgba(255, 255, 255, 0.82);
}

.site-footer .footer-links a:hover {
    color: #ffffff;
}

/* Ottimizzazioni mobile: touch target, scorrimento navbar e layout a colonna. */
.site-header {
    min-height: 78px;
}

.site-nav a,
.button {
    min-height: 44px;
}

.site-brand img,
.footer-brand img,
.hero-mark {
    aspect-ratio: 512 / 240;
}

@media (max-width: 760px) {
    body {
        background: var(--bg);
    }

    .site-header {
        position: sticky;
        top: 0;
        display: grid;
        grid-template-columns: 1fr;
        gap: 10px;
        padding: 12px 14px;
    }

    .site-nav {
        width: 100%;
        display: flex;
        flex-wrap: nowrap;
        gap: 8px;
        overflow-x: auto;
        padding-bottom: 2px;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }

    .site-nav::-webkit-scrollbar {
        display: none;
    }

    .site-nav a {
        flex: 0 0 auto;
        padding: 9px 12px;
        font-size: 14px;
        white-space: nowrap;
    }

    .nav-cta {
        margin-left: auto;
    }

    main {
        width: min(100%, calc(100% - 22px));
        padding: 16px 0 34px;
    }

    .hero {
        gap: 18px;
    }

    .hero-copy {
        padding: 8px 0 0;
    }

    .hero-actions,
    .contact-actions {
        display: grid;
        grid-template-columns: 1fr;
        width: 100%;
    }

    .button {
        width: 100%;
    }

    .hero-points {
        gap: 8px;
    }

    .hero-points li {
        width: 100%;
        padding: 9px 12px;
    }

    .hero-panel,
    .service-card,
    .step-card,
    .legal-panel {
        border-radius: 18px;
    }

    .legal-panel {
        padding: 24px 20px;
    }

    .site-footer {
        margin-top: 24px;
        padding: 30px 16px 34px;
    }

    .footer-brand img {
        width: min(150px, 56vw);
    }
}

@media (max-width: 760px) {
    .site-header {
        position: static;
        top: auto;
    }
}

/* Navbar mobile a pillole: alternativa visibile al classico hamburger. */
@media (max-width: 760px) {
    .site-header {
        align-items: center;
        border-bottom: 0;
        background: rgba(245, 248, 251, 0.96);
        backdrop-filter: none;
    }

    .site-brand {
        align-self: center;
    }

    .site-brand img {
        width: min(178px, 60vw);
        margin: 0 auto;
    }

    .site-nav {
        position: relative;
        justify-content: flex-start;
        padding: 6px 2px 4px;
        mask-image: linear-gradient(90deg, transparent, #000 18px, #000 calc(100% - 18px), transparent);
    }

    .site-nav a {
        border: 1px solid rgba(217, 226, 236, 0.95);
        border-radius: 999px;
        background: rgba(255, 255, 255, 0.86);
        box-shadow: 0 8px 20px rgba(15, 23, 42, 0.05);
    }

    .site-nav a.is-active {
        color: #fff;
        background: var(--brand);
        border-color: var(--brand);
        box-shadow: 0 10px 22px rgba(11, 93, 91, 0.18);
    }

    .nav-cta {
        margin-left: 0;
        border-color: transparent !important;
        color: #fff !important;
        background: linear-gradient(135deg, var(--brand-2), var(--accent)) !important;
    }
}

/* Home moderna: hero minimale, layer sovrapposti e blocchi editoriali. */
.home-main {
    width: min(1240px, calc(100% - 32px));
    padding-top: 26px;
}

.modern-hero {
    position: relative;
    min-height: calc(100vh - 132px);
    display: grid;
    grid-template-columns: minmax(0, 0.96fr) minmax(360px, 0.78fr);
    align-items: center;
    gap: clamp(24px, 5vw, 70px);
    isolation: isolate;
}

.hero-layer-brand {
    position: absolute;
    z-index: -1;
    top: 6%;
    left: -2%;
    color: rgba(11, 31, 51, 0.045);
    font-size: clamp(120px, 24vw, 330px);
    font-weight: 800;
    line-height: 0.8;
    letter-spacing: 0;
    pointer-events: none;
}

.modern-hero-copy {
    max-width: 720px;
    padding: 36px 0 70px;
}

.modern-hero-copy h1 {
    max-width: 760px;
    margin: 0;
    font-size: clamp(46px, 8vw, 108px);
    line-height: 0.9;
    letter-spacing: 0;
}

.modern-hero-copy p {
    max-width: 590px;
    margin: 24px 0 0;
    color: var(--muted);
    font-size: clamp(17px, 2vw, 21px);
    line-height: 1.65;
}

/* Area del hero che contiene logo e card 01/02 sovrapposte. */
.overlap-stage {
    position: relative;
    min-height: 520px;
}

.overlap-card {
    position: absolute;
    border: 1px solid rgba(217, 226, 236, 0.78);
    box-shadow: 0 24px 70px rgba(15, 23, 42, 0.12);
}

.overlap-card-logo {
    top: 52px;
    right: 0;
    width: min(420px, 100%);
    padding: 54px 36px;
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.92);
}

.overlap-card-logo img {
    width: min(100%, 360px);
    margin: 0 auto;
}

.overlap-card-dark {
    left: 0;
    bottom: 92px;
    width: min(290px, 78%);
    padding: 24px;
    border-radius: 24px;
    color: #fff;
    background: #0b1f33;
    border-color: rgba(255, 255, 255, 0.1);
}

.overlap-card-light {
    right: 18px;
    bottom: 18px;
    width: min(305px, 78%);
    padding: 24px;
    border-radius: 24px;
    background: rgba(238, 249, 249, 0.94);
}

.overlap-card span {
    display: block;
    margin-bottom: 18px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    color: var(--brand-2);
}

.overlap-card-dark span {
    color: var(--accent);
}

.overlap-card strong {
    display: block;
    margin-bottom: 10px;
    font-size: 22px;
    line-height: 1.12;
}

.overlap-card p {
    margin: 0;
    color: inherit;
    opacity: 0.78;
    line-height: 1.55;
}

/* Strip di navigazione rapida sotto il hero. */
.minimal-strip {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: -38px;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    background: rgba(245, 248, 251, 0.74);
}

.minimal-strip a {
    min-height: 150px;
    padding: 28px;
    border-right: 1px solid var(--line);
}

.minimal-strip a:last-child {
    border-right: 0;
}

.minimal-strip span {
    display: block;
    margin-bottom: 18px;
    color: var(--brand);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.minimal-strip strong {
    display: block;
    max-width: 280px;
    font-size: clamp(20px, 2.6vw, 30px);
    line-height: 1.05;
}

/* Blocco finale della home con testo e pannello sovrapposto. */
.home-overlap-content {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(280px, 0.58fr);
    gap: 24px;
    align-items: end;
    padding: clamp(58px, 9vw, 110px) 0 20px;
}

.home-text-block h2 {
    max-width: 720px;
    margin: 0;
    font-size: clamp(38px, 6vw, 78px);
    line-height: 0.94;
}

.home-text-panel {
    transform: translateY(-34px);
    padding: 28px;
    border-radius: 24px;
    background: #fff;
    box-shadow: var(--shadow);
}

.home-text-panel p {
    margin: 0 0 18px;
    color: var(--muted);
    font-size: 17px;
    line-height: 1.65;
}

.text-link {
    color: var(--brand);
    font-weight: 800;
}

@media (max-width: 980px) {
    .modern-hero {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .modern-hero-copy {
        padding-bottom: 12px;
    }

    .overlap-stage {
        min-height: 470px;
    }

    .minimal-strip,
    .home-overlap-content {
        grid-template-columns: 1fr;
    }

    .minimal-strip {
        margin-top: 26px;
    }

    .minimal-strip a {
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }

    .minimal-strip a:last-child {
        border-bottom: 0;
    }

    .home-text-panel {
        transform: none;
    }
}

@media (max-width: 760px) {
    .home-main {
        width: min(100%, calc(100% - 22px));
        padding-top: 12px;
    }

    .modern-hero-copy h1 {
        font-size: clamp(42px, 15vw, 64px);
    }

    .modern-hero-copy p {
        font-size: 16px;
    }

    .hero-layer-brand {
        top: 22px;
        left: -8px;
        font-size: clamp(88px, 38vw, 150px);
    }

    .overlap-stage {
        min-height: 415px;
    }

    .overlap-card-logo {
        top: 0;
        right: 0;
        width: 88%;
        padding: 38px 24px;
        border-radius: 22px;
    }

    .overlap-card-dark {
        bottom: 84px;
        width: 76%;
        padding: 20px;
        border-radius: 20px;
    }

    .overlap-card-light {
        right: 0;
        bottom: 0;
        width: 78%;
        padding: 20px;
        border-radius: 20px;
    }

    .overlap-card strong {
        font-size: 19px;
    }

    .minimal-strip a {
        min-height: 124px;
        padding: 22px 4px;
    }

    .minimal-strip strong {
        font-size: 24px;
    }

    .home-overlap-content {
        padding-top: 54px;
    }

    .home-text-panel {
        padding: 22px;
        border-radius: 20px;
    }
}

/* Blocco gestionale: immagine del prodotto con card testuale sovrapposta. */
.software-showcase {
    position: relative;
    min-height: 620px;
    margin: clamp(54px, 8vw, 104px) 0 0;
    isolation: isolate;
}

.software-shot {
    position: absolute;
    inset: 0 auto auto 0;
    width: min(880px, 78%);
    border-radius: 30px;
    overflow: hidden;
    border: 1px solid rgba(217, 226, 236, 0.9);
    background: #ffffff;
    box-shadow: 0 28px 80px rgba(15, 23, 42, 0.14);
}

.software-shot img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    object-position: top left;
}

.software-card {
    position: absolute;
    right: 0;
    bottom: 0;
    width: min(470px, 48%);
    padding: clamp(28px, 4vw, 46px);
    border-radius: 28px;
    color: #ffffff;
    background: #0b1f33;
    box-shadow: 0 30px 80px rgba(15, 23, 42, 0.24);
    z-index: 2;
}

.software-card .eyebrow {
    color: #9be7df;
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.14);
}

.software-card h2 {
    margin: 0;
    font-size: clamp(32px, 4.8vw, 58px);
    line-height: 0.98;
    letter-spacing: 0;
}

.software-card p {
    margin: 20px 0 18px;
    color: rgba(255, 255, 255, 0.74);
    font-size: 17px;
    line-height: 1.65;
}

.software-card .text-link {
    color: #9be7df;
}

@media (max-width: 980px) {
    .software-showcase {
        min-height: 700px;
    }

    .software-shot {
        width: 100%;
    }

    .software-card {
        width: min(560px, 86%);
        right: 22px;
    }
}

@media (max-width: 760px) {
    .software-showcase {
        min-height: 590px;
        margin-top: 46px;
    }

    .software-shot {
        width: 100%;
        border-radius: 22px;
    }

    .software-shot img {
        aspect-ratio: 4 / 3;
    }

    .software-card {
        right: 0;
        bottom: 0;
        width: 88%;
        padding: 24px 22px;
        border-radius: 22px;
    }

    .software-card h2 {
        font-size: clamp(30px, 10vw, 42px);
    }

    .software-card p {
        font-size: 16px;
    }
}

/* Regole storiche di posizionamento delle card hero: mantenute per compatibilita. */
@media (min-width: 981px) {
    .overlap-card-dark {
        left: -34px;
        bottom: 118px;
        width: min(330px, 82%);
        z-index: 2;
    }

    .overlap-card-light {
        right: -18px;
        bottom: 14px;
        width: min(330px, 82%);
        z-index: 1;
    }
}

@media (max-width: 760px) {
    .overlap-stage {
        min-height: 500px;
    }

    .overlap-card-dark {
        bottom: 148px;
        left: 0;
        width: 82%;
        z-index: 2;
    }

    .overlap-card-light {
        right: 0;
        bottom: 18px;
        width: 82%;
        z-index: 1;
    }
}

/* Posizionamento compatto delle card hero prima dei controlli manuali. */
@media (min-width: 981px) {
    .overlap-card-dark {
        left: -10px;
        bottom: 98px;
        width: min(306px, 80%);
        z-index: 2;
    }

    .overlap-card-light {
        right: 10px;
        bottom: 18px;
        width: min(312px, 80%);
        z-index: 1;
    }
}

@media (max-width: 760px) {
    .overlap-stage {
        min-height: 450px;
    }

    .overlap-card-dark {
        bottom: 104px;
        left: 0;
        width: 78%;
        z-index: 2;
    }

    .overlap-card-light {
        right: 0;
        bottom: 0;
        width: 78%;
        z-index: 1;
    }
}

/* Ordine visivo delle card hero: 01 sotto, 02 sopra. */
.overlap-card-dark {
    z-index: 1;
}

.overlap-card-light {
    z-index: 2;
}

/* CONTROLLI MANUALI CARD HERO
   Modifica solo questi valori per spostare le card.
   X: valori positivi = destra, negativi = sinistra.
   Y: valori positivi = giu, negativi = su. */
:root {
    --card-01-x: 0px;
    --card-01-y: 30px;
    --card-02-x: 60px;
    --card-02-y: 0px;

    --card-01-mobile-x: 0px;
    --card-01-mobile-y: 0px;
    --card-02-mobile-x: 0px;
    --card-02-mobile-y: 40px;
}

.overlap-card-dark {
    transform: translate(var(--card-01-x), var(--card-01-y));
    z-index: 1;
}

.overlap-card-light {
    transform: translate(var(--card-02-x), var(--card-02-y));
    z-index: 2;
}

@media (max-width: 760px) {
    .overlap-card-dark {
        transform: translate(var(--card-01-mobile-x), var(--card-01-mobile-y));
    }

    .overlap-card-light {
        transform: translate(var(--card-02-mobile-x), var(--card-02-mobile-y));
    }
}

/* CONTROLLI MANUALI BLOCCO GESTIONALE
   Sfondo = immagine gestionale. Card = testo sopra.
   X: valori positivi = destra, negativi = sinistra.
   Y: valori positivi = giu, negativi = su.
   Size: cambia larghezza della card/immagine. */
:root {
    --software-shot-x: 0px;
    --software-shot-y: 0px;
    --software-shot-size: min(880px, 78%);

    --software-card-x: 0px;
    --software-card-y: 0px;
    --software-card-size: min(470px, 48%);

    --software-shot-mobile-x: 0px;
    --software-shot-mobile-y: 0px;
    --software-shot-mobile-size: 100%;

    --software-card-mobile-x: 0px;
    --software-card-mobile-y: 0px;
    --software-card-mobile-size: 88%;
}

.software-shot {
    width: var(--software-shot-size);
    transform: translate(var(--software-shot-x), var(--software-shot-y));
}

.software-card {
    width: var(--software-card-size);
    transform: translate(var(--software-card-x), var(--software-card-y));
}

@media (max-width: 760px) {
    .software-shot {
        width: var(--software-shot-mobile-size);
        transform: translate(var(--software-shot-mobile-x), var(--software-shot-mobile-y));
    }

    .software-card {
        width: var(--software-card-mobile-size);
        transform: translate(var(--software-card-mobile-x), var(--software-card-mobile-y));
    }
}

/* Allineamento blocco ACS: titolo e pannello testo sulla stessa linea visiva. */
.home-overlap-content {
    align-items: center;
}

.home-text-panel {
    transform: translateY(0);
}

/* MENU SMARTPHONE CON HAMBURGER A SINISTRA E LOGO A DESTRA
   Desktop: il menu resta orizzontale, hamburger nascosto.
   Mobile: hamburger in alto a sinistra, logo allineato a destra, voci aperte sotto. */
.nav-toggle,
.nav-toggle-button {
    display: none;
}

@media (max-width: 760px) {
    .site-header {
        position: static;
        display: grid;
        grid-template-columns: 48px 1fr;
        align-items: center;
        gap: 12px;
        min-height: 72px;
        padding: 12px 16px;
        border-bottom: 1px solid rgba(217, 226, 236, 0.72);
        background: rgba(245, 248, 251, 0.98);
        backdrop-filter: none;
    }

    .nav-toggle {
        position: absolute;
        inline-size: 1px;
        block-size: 1px;
        opacity: 0;
        pointer-events: none;
    }

    .nav-toggle-button {
        grid-column: 1;
        grid-row: 1;
        display: inline-grid;
        align-content: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        border: 1px solid rgba(217, 226, 236, 0.95);
        border-radius: 999px;
        background: #ffffff;
        box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
        cursor: pointer;
    }

    .nav-toggle-button span {
        display: block;
        width: 18px;
        height: 2px;
        margin: 2px 0;
        border-radius: 999px;
        background: var(--ink);
        transition: transform 0.18s ease, opacity 0.18s ease;
    }

    .site-brand {
        grid-column: 2;
        grid-row: 1;
        justify-self: end;
        align-self: center;
    }

    .site-brand img {
        width: min(174px, 58vw);
        margin: 0;
    }

    .site-nav {
        grid-column: 1 / -1;
        grid-row: 2;
        display: none;
        width: 100%;
        padding: 8px 0 2px;
        overflow: visible;
        mask-image: none;
        flex-direction: column;
        flex-wrap: nowrap;
        gap: 8px;
    }

    .site-nav a {
        width: 100%;
        min-height: 46px;
        justify-content: flex-start;
        padding: 12px 14px;
        border: 1px solid rgba(217, 226, 236, 0.95);
        border-radius: 14px;
        background: rgba(255, 255, 255, 0.9);
        box-shadow: none;
        font-size: 15px;
        white-space: normal;
    }

    .site-nav a.is-active {
        color: #fff;
        background: var(--brand);
        border-color: var(--brand);
    }

    .nav-cta {
        margin-left: 0;
        text-align: center;
        justify-content: center !important;
        border-color: transparent !important;
        color: #fff !important;
        background: linear-gradient(135deg, var(--brand-2), var(--accent)) !important;
    }

    .nav-toggle:checked ~ .site-nav {
        display: flex;
    }

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

    .nav-toggle:checked + .nav-toggle-button span:nth-child(2) {
        opacity: 0;
    }

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