/* sgal.work — sito di presentazione di sgal People Management
   Palette ricavata dal logo: blu notte (scritta), verde e azzurro (arco). */

:root {
    --navy: #0b2f8f;
    --navy-deep: #081f5c;
    --blue: #2f9cf0;
    --green: #52c487;
    --mint: #d5f0d7;
    --mint-soft: #eef8f1;
    --sky-soft: #eaf4fe;
    --bg: #f7faf9;
    --surface: #ffffff;
    --text: #13203d;
    --text-muted: #4d5b75;
    --border: #dfe7ee;
    --arc: linear-gradient(90deg, var(--green) 0%, #45b5c8 55%, var(--blue) 100%);
    --radius: 14px;
    --radius-sm: 8px;
    --shadow-sm: 0 1px 2px rgba(11, 47, 143, .06), 0 2px 8px rgba(11, 47, 143, .05);
    --shadow: 0 10px 30px -12px rgba(11, 47, 143, .22), 0 2px 6px rgba(11, 47, 143, .06);
    --container: 1140px;
    --font-head: 'Poppins', system-ui, sans-serif;
    --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

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

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

a {
    color: var(--navy);
}

h1,
h2,
h3,
h4 {
    font-family: var(--font-head);
    line-height: 1.2;
    margin: 0 0 .6em;
    color: var(--navy-deep);
    letter-spacing: -.01em;
}

h1 {
    font-size: clamp(2rem, 4.4vw, 3.1rem);
    font-weight: 700;
}

h2 {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 600;
}

h3 {
    font-size: 1.12rem;
    font-weight: 600;
}

p {
    margin: 0 0 1em;
}

.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 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: -999px;
    top: 8px;
    background: var(--navy);
    color: #fff;
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    z-index: 100;
}

.skip-link:focus {
    left: 8px;
}


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

.btn {
    display: inline-flex;
    align-items: center;
    gap: .5em;
    padding: .78em 1.35em;
    border-radius: 999px;
    font-family: var(--font-head);
    font-weight: 600;
    font-size: .95rem;
    text-decoration: none;
    border: 1.5px solid transparent;
    cursor: pointer;
    transition: background-color .2s, color .2s, border-color .2s, transform .2s, box-shadow .2s;
}

.btn-primary {
    background: var(--navy);
    color: #fff;
    box-shadow: 0 6px 18px -8px rgba(11, 47, 143, .7);
}

.btn-primary:hover {
    background: var(--navy-deep);
    transform: translateY(-1px);
}

.btn-ghost {
    background: transparent;
    color: var(--navy);
    border-color: rgba(11, 47, 143, .25);
}

.btn-ghost:hover {
    border-color: var(--navy);
    background: rgba(255, 255, 255, .6);
}

.btn:focus-visible,
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 3px solid rgba(47, 156, 240, .45);
    outline-offset: 2px;
}


/* ---------- Navigazione ---------- */

.site-nav {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, .86);
    backdrop-filter: saturate(1.4) blur(10px);
    -webkit-backdrop-filter: saturate(1.4) blur(10px);
    border-bottom: 1px solid transparent;
    transition: border-color .2s, box-shadow .2s;
}

.site-nav.is-scrolled {
    border-bottom-color: var(--border);
    box-shadow: 0 4px 18px -12px rgba(11, 47, 143, .25);
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 68px;
}

.nav-brand img {
    height: 42px;
    width: auto;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 6px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-links a {
    display: block;
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    color: var(--text);
    font-size: .94rem;
    font-weight: 500;
    text-decoration: none;
}

.nav-links a:hover {
    color: var(--navy);
    background: var(--mint-soft);
}

.nav-links .btn {
    margin-left: 8px;
    padding: .55em 1.1em;
    color: #fff;
}

.nav-links .btn:hover {
    color: #fff;
    background: var(--navy-deep);
}

.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 0;
    background: transparent;
    border-radius: var(--radius-sm);
    cursor: pointer;
    padding: 10px;
}

.nav-toggle span {
    display: block;
    height: 2px;
    background: var(--navy);
    margin: 5px 0;
    border-radius: 2px;
    transition: transform .2s, opacity .2s;
}

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

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}

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

@media (max-width: 860px) {
    .nav-toggle {
        display: block;
    }
    .nav-links {
        position: absolute;
        top: 68px;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 2px;
        padding: 10px 16px 18px;
        background: #fff;
        border-bottom: 1px solid var(--border);
        box-shadow: 0 16px 24px -18px rgba(11, 47, 143, .4);
        display: none;
    }
    .nav-links.is-open {
        display: flex;
    }
    .nav-links a {
        padding: 12px;
    }
    .nav-links .btn {
        margin: 8px 0 0;
        justify-content: center;
    }
}


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

.hero {
    position: relative;
    overflow: hidden;
    padding: 72px 0 88px;
    background: radial-gradient(900px 480px at 88% -10%, var(--sky-soft) 0%, transparent 60%), radial-gradient(700px 420px at -5% 105%, var(--mint) 0%, transparent 62%), var(--mint-soft);
}

.hero::after {
    /* richiamo dell'arco del logo */
    content: '';
    position: absolute;
    right: -180px;
    bottom: -330px;
    width: 720px;
    height: 720px;
    border-radius: 50%;
    border: 26px solid transparent;
    background: var(--arc) border-box;
    -webkit-mask: linear-gradient(#000 0 0) padding-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: .14;
    pointer-events: none;
}

.hero-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1.08fr;
    gap: 56px;
    align-items: center;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .5em;
    font-size: .8rem;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--navy);
    background: rgba(255, 255, 255, .75);
    border: 1px solid rgba(11, 47, 143, .12);
    padding: .35em .9em;
    border-radius: 999px;
    margin-bottom: 1.2em;
}

.eyebrow::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--arc);
}

.hero h1 .accent {
    background: var(--arc);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-lead {
    font-size: 1.12rem;
    color: var(--text-muted);
    max-width: 34em;
}

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

.hero-points {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 22px;
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: .9rem;
    color: var(--text-muted);
}

.hero-points li {
    display: flex;
    align-items: center;
    gap: .45em;
}

.hero-points svg {
    color: var(--green);
    flex: none;
}

.hero-visual {
    position: relative;
    padding-bottom: 36px;
}

@media (max-width: 960px) {
    .hero {
        padding: 48px 0 64px;
    }
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 44px;
    }
}


/* ---------- Mockup interfaccia (ricostruzioni fedeli, dati fittizi) ---------- */

.mock-window {
    background: var(--surface);
    border-radius: 12px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    overflow: hidden;
    font-size: 12px;
    line-height: 1.4;
    color: var(--text);
}

.mock-bar {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 9px 12px;
    background: #f3f6f9;
    border-bottom: 1px solid var(--border);
}

.mock-bar i {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #d5dbe3;
}

.mock-bar .mock-url {
    margin-left: 10px;
    flex: 1;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 2px 10px;
    color: #8793a8;
    font-size: 11px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mock-app {
    background: var(--mint);
    padding: 12px;
}

.mock-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
    gap: 8px;
}

.mock-head strong {
    font-family: var(--font-head);
    font-size: 14px;
    color: var(--text);
}

.mock-chip {
    font-size: 10px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 999px;
    background: #fff;
    color: var(--navy);
    border: 1px solid rgba(11, 47, 143, .15);
    white-space: nowrap;
}

.mock-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
    margin-bottom: 10px;
}

.mock-stat {
    background: #fff;
    border-radius: 6px;
    padding: 6px 8px;
}

.mock-stat small {
    display: block;
    font-size: 8.5px;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: #7a8699;
}

.mock-stat b {
    font-size: 14px;
    color: var(--text);
}

.mock-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: 6px;
    overflow: hidden;
}

.mock-table th,
.mock-table td {
    padding: 5px 7px;
    text-align: left;
    border-bottom: 1px solid #eef1f5;
    white-space: nowrap;
}

.mock-table th {
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: #7a8699;
    background: #f7f9fb;
}

.mock-table td.muted {
    color: #9aa5b5;
}

.mock-table tr.weekend td {
    background: #f6f7f9;
    color: #c0392b;
}

.mock-table tr.weekend td+td {
    color: #9aa5b5;
}

.mock-table .num {
    text-align: right;
    font-variant-numeric: tabular-nums;
}

.tag {
    display: inline-block;
    font-size: 9px;
    font-weight: 600;
    padding: 1px 6px;
    border-radius: 4px;
    white-space: nowrap;
}

.tag-ok {
    background: #e3f6ea;
    color: #1f8a4c;
}

.tag-wait {
    background: #fff4d6;
    color: #9a6b00;
}

.tag-no {
    background: #fde6e6;
    color: #b42318;
}

.tag-prot {
    background: #efe7fb;
    color: #6b3fb5;
}

.tag-onf {
    background: #e6f1fe;
    color: #1b6fc2;
}

.mock-phone {
    position: absolute;
    right: -8px;
    bottom: -8px;
    width: 188px;
    background: #fff;
    border-radius: 26px;
    padding: 8px;
    box-shadow: 0 24px 50px -18px rgba(8, 31, 92, .45), 0 0 0 1px rgba(11, 47, 143, .08);
}

.mock-phone-screen {
    border-radius: 19px;
    overflow: hidden;
    background: var(--mint);
    font-size: 10px;
    line-height: 1.35;
}

.mock-phone-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #fff;
    padding: 8px 10px;
}

.mock-phone-top img {
    height: 18px;
    width: auto;
}

.mock-phone-body {
    padding: 10px;
}

.mock-phone-body .hello {
    font-family: var(--font-head);
    font-weight: 600;
    font-size: 12px;
    margin-bottom: 8px;
}

.mock-kpi {
    background: #fff;
    border-radius: 8px;
    text-align: center;
    padding: 7px 4px;
    margin-bottom: 6px;
}

.mock-kpi b {
    display: block;
    font-size: 17px;
    color: #1b6fc2;
    font-family: var(--font-head);
}

.mock-kpi.wait b {
    color: #d49a00;
}

.mock-tile {
    border-radius: 8px;
    padding: 8px 9px;
    color: #fff;
    margin-bottom: 6px;
    font-weight: 600;
    background: linear-gradient(135deg, #5b73e0, #7a4fae);
}

.mock-tile.alt {
    background: linear-gradient(135deg, #2f9cf0, #52c487);
}

@media (max-width: 560px) {
    .mock-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    .mock-table .hide-sm {
        display: none;
    }
    .mock-phone {
        position: relative;
        right: auto;
        bottom: auto;
        margin: -40px 0 0 auto;
    }
    .hero-visual {
        padding-bottom: 0;
    }
}


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

.section {
    padding: 88px 0;
}

.section-alt {
    background: var(--surface);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.section-head {
    max-width: 720px;
    margin: 0 auto 48px;
    text-align: center;
}

.section-head p {
    color: var(--text-muted);
    font-size: 1.05rem;
}

.kicker {
    display: block;
    font-family: var(--font-head);
    font-size: .8rem;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--green);
    margin-bottom: .6em;
}

@media (max-width: 700px) {
    .section {
        padding: 64px 0;
    }
    .section-head {
        margin-bottom: 36px;
    }
}


/* Per chi */

.audience-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.audience-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px 22px;
    box-shadow: var(--shadow-sm);
}

.audience-card .icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: var(--mint-soft);
    color: var(--navy);
    margin-bottom: 14px;
}

.audience-card p {
    color: var(--text-muted);
    font-size: .94rem;
    margin: 0;
}

.audience-card.featured {
    border-color: rgba(82, 196, 135, .55);
    background: linear-gradient(180deg, #fff 0%, var(--mint-soft) 100%);
}

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

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


/* Funzioni */

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.feature {
    position: relative;
    padding: 24px 22px 22px;
    border-radius: var(--radius);
    background: var(--bg);
    border: 1px solid var(--border);
    transition: border-color .2s, box-shadow .2s, transform .2s;
}

.feature:hover {
    border-color: rgba(47, 156, 240, .45);
    box-shadow: var(--shadow-sm);
    transform: translateY(-2px);
}

.feature .icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    color: #fff;
    background: var(--navy);
    margin-bottom: 14px;
}

.feature:nth-child(3n+2) .icon {
    background: #1b7fd0;
}

.feature:nth-child(3n) .icon {
    background: #2f9f69;
}

.feature p {
    color: var(--text-muted);
    font-size: .94rem;
    margin: 0;
}

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

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


/* Approfondimenti alternati */

.detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    align-items: center;
}

.detail+.detail {
    margin-top: 88px;
}

.detail.reverse .detail-text {
    order: 2;
}

.detail-text p {
    color: var(--text-muted);
}

.check-list {
    list-style: none;
    padding: 0;
    margin: 18px 0 0;
}

.check-list li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 10px;
}

.check-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: .3em;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--mint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231f8a4c' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / 11px no-repeat;
}

.detail-note {
    margin-top: 18px;
    font-size: .88rem;
    color: var(--text-muted);
    border-left: 3px solid var(--green);
    padding: 4px 0 4px 14px;
}

@media (max-width: 900px) {
    .detail {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .detail.reverse .detail-text {
        order: 0;
    }
    .detail+.detail {
        margin-top: 64px;
    }
}


/* Scuole dell'infanzia: banda evidenziata */

.band {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--navy-deep) 0%, var(--navy) 60%, #1a55b8 100%);
    color: #e6edfb;
}

.band::before {
    content: '';
    position: absolute;
    left: -260px;
    top: -260px;
    width: 620px;
    height: 620px;
    border-radius: 50%;
    border: 22px solid transparent;
    background: var(--arc) border-box;
    -webkit-mask: linear-gradient(#000 0 0) padding-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: .22;
}

.band h2,
.band h3 {
    color: #fff;
}

.band .kicker {
    color: #8fe0b3;
}

.band p {
    color: #c9d6f2;
}

.band .check-list li::before {
    background-color: rgba(143, 224, 179, .22);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238fe0b3' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
}

.band .detail {
    position: relative;
}


/* Come funziona */

.steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    counter-reset: step;
    list-style: none;
    padding: 0;
    margin: 0;
}

.step {
    position: relative;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 26px 22px 22px;
}

.step::before {
    counter-increment: step;
    content: counter(step, decimal-leading-zero);
    display: block;
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 1.5rem;
    line-height: 1;
    margin-bottom: 14px;
    background: var(--arc);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.step p {
    color: var(--text-muted);
    font-size: .94rem;
    margin: 0;
}

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


/* Affidabilità / origine */

.trust {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 48px;
    align-items: center;
}

.trust-logo {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 36px;
    box-shadow: var(--shadow-sm);
}

.trust-logo img {
    margin: 0 auto;
    max-width: 380px;
    width: 100%;
}

.trust-facts {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-top: 24px;
}

.trust-facts div {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 14px 16px;
    font-size: .9rem;
    color: var(--text-muted);
}

.trust-facts b {
    display: block;
    font-family: var(--font-head);
    color: var(--navy-deep);
    font-size: .98rem;
    margin-bottom: 2px;
}

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

@media (max-width: 480px) {
    .trust-facts {
        grid-template-columns: 1fr;
    }
}


/* FAQ */

.faq {
    max-width: 800px;
    margin: 0 auto;
}

.faq details {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    margin-bottom: 10px;
    padding: 0 20px;
}

.faq summary {
    cursor: pointer;
    list-style: none;
    padding: 16px 28px 16px 0;
    font-family: var(--font-head);
    font-weight: 600;
    color: var(--navy-deep);
    position: relative;
}

.faq summary::-webkit-details-marker {
    display: none;
}

.faq summary::after {
    content: '';
    position: absolute;
    right: 2px;
    top: 50%;
    width: 9px;
    height: 9px;
    border-right: 2px solid var(--navy);
    border-bottom: 2px solid var(--navy);
    transform: translateY(-70%) rotate(45deg);
    transition: transform .2s;
}

.faq details[open] summary::after {
    transform: translateY(-30%) rotate(-135deg);
}

.faq details p {
    color: var(--text-muted);
    margin: 0 0 18px;
}


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

.contact {
    background: radial-gradient(700px 400px at 100% 0%, var(--sky-soft) 0%, transparent 60%), var(--mint-soft);
}

.contact-grid {
    display: grid;
    grid-template-columns: .9fr 1.1fr;
    gap: 48px;
    align-items: start;
}

.contact-info p {
    color: var(--text-muted);
}

.contact-info .alt {
    margin-top: 26px;
    font-size: .95rem;
}

.contact-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
    box-shadow: var(--shadow);
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px 16px;
}

.form-field {
    display: flex;
    flex-direction: column;
}

.form-field.full {
    grid-column: 1 / -1;
}

.form-field label {
    font-size: .85rem;
    font-weight: 600;
    margin-bottom: 5px;
    color: var(--text);
}

.form-field input,
.form-field select,
.form-field textarea {
    font: inherit;
    font-size: .95rem;
    color: var(--text);
    background: #fbfcfd;
    border: 1px solid #cfd9e3;
    border-radius: var(--radius-sm);
    padding: 10px 12px;
    transition: border-color .2s, background-color .2s;
    width: 100%;
}

.form-field textarea {
    resize: vertical;
    min-height: 110px;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
    border-color: var(--blue);
    background: #fff;
    outline: none;
    box-shadow: 0 0 0 3px rgba(47, 156, 240, .18);
}

.form-field .field-error {
    border-color: #d64545;
    background: #fff8f8;
}

.error-msg {
    min-height: 1em;
    font-size: .78rem;
    color: #b42318;
    margin-top: 3px;
}

.form-check {
    grid-column: 1 / -1;
    display: flex;
    gap: 10px;
    align-items: flex-start;
    font-size: .88rem;
    color: var(--text-muted);
}

.form-check input {
    margin-top: .3em;
    width: 17px;
    height: 17px;
    accent-color: var(--navy);
    flex: none;
}

.hp-field {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.form-actions {
    margin-top: 20px;
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.form-status {
    font-size: .92rem;
    margin: 0;
}

.form-status.ok {
    color: #1f8a4c;
}

.form-status.err {
    color: #b42318;
}

.btn[disabled] {
    opacity: .6;
    cursor: progress;
}

@media (max-width: 900px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }
}

@media (max-width: 560px) {
    .form-grid {
        grid-template-columns: 1fr;
    }
    .contact-card {
        padding: 20px;
    }
}


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

.footer {
    background: #0a1a45;
    color: #aebbd6;
    font-size: .9rem;
    padding: 48px 0 28px;
}

.footer a {
    color: #dfe7f7;
    text-decoration: none;
}

.footer a:hover {
    text-decoration: underline;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 32px;
    padding-bottom: 28px;
    border-bottom: 1px solid rgba(255, 255, 255, .1);
}

.footer-brand img {
    height: 40px;
    width: auto;
    background: #fff;
    border-radius: 10px;
    padding: 6px 10px;
    margin-bottom: 14px;
}

.footer h4 {
    color: #fff;
    font-size: .92rem;
    margin-bottom: 12px;
}

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

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

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    padding-top: 22px;
    font-size: .84rem;
}

.maker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #aebbd6;
}

.maker img {
    width: 22px;
    height: 22px;
    border-radius: 50%;
}

@media (max-width: 760px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
    .footer-brand {
        grid-column: 1 / -1;
    }
}


/* ---------- Pagine legali ---------- */

.legal {
    max-width: 800px;
    margin: 0 auto;
    padding: 56px 20px 80px;
}

.legal h1 {
    font-size: 2rem;
}

.legal h2 {
    font-size: 1.2rem;
    margin-top: 2em;
}

.legal p,
.legal li {
    color: var(--text-muted);
}

.legal .updated {
    font-size: .88rem;
    margin-top: 2.5em;
}


/* ---------- Animazione di comparsa ---------- */

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

.reveal.visible {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
    .btn,
    .feature {
        transition: none;
    }
}


/* ---------- Terminali ---------- */

.partner-card {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 14px 16px;
    margin: 18px 0 6px;
    box-shadow: var(--shadow-sm);
}

.partner-card b {
    display: block;
    font-family: var(--font-head);
    font-weight: 600;
    color: var(--navy-deep);
}

.partner-card span {
    font-size: .9rem;
    color: var(--text-muted);
}

.partner-flag {
    display: flex;
    flex: none;
    width: 30px;
    height: 20px;
    margin-top: 3px;
    border-radius: 3px;
    overflow: hidden;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, .08);
}

.partner-flag i {
    flex: 1;
}

.partner-flag i:nth-child(1) {
    background: #009246;
}

.partner-flag i:nth-child(2) {
    background: #fff;
}

.partner-flag i:nth-child(3) {
    background: #ce2b37;
}

.mock-terminals {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.mock-term {
    background: #fff;
    border-radius: 8px;
    padding: 9px 10px;
}

.mock-term-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 6px;
}

.mock-term small {
    color: #7a8699;
    font-size: 10px;
}

.mock-term dl {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 2px 8px;
    margin: 8px 0 0;
    font-size: 10.5px;
}

.mock-term dt {
    color: #7a8699;
}

.mock-term dd {
    margin: 0;
    text-align: right;
    font-family: ui-monospace, 'Cascadia Mono', Consolas, monospace;
}

@media (max-width: 560px) {
    .mock-terminals .hide-sm {
        display: none;
    }
}

.partner-card {
    align-items: center;
}

.partner-photo {
    flex: none;
    width: 128px;
    height: auto;
    border-radius: var(--radius-sm);
    background: linear-gradient(180deg, #f7f9fb, #eef2f6);
    padding: 6px;
}

.partner-card>div {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.partner-card .partner-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    align-self: flex-start;
    font-size: .74rem;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: #1f8a4c;
    background: var(--mint-soft);
    border: 1px solid rgba(82, 196, 135, .45);
    border-radius: 999px;
    padding: 3px 10px 3px 6px;
    margin-bottom: 4px;
}

.partner-badge .partner-flag {
    width: 18px;
    height: 12px;
    margin: 0;
}

.partner-card b a {
    color: inherit;
}

.partner-card .partner-install {
    font-size: .86rem;
    margin-top: 4px;
}

@media (max-width: 480px) {
    .partner-card {
        flex-direction: column;
        align-items: flex-start;
    }
    .partner-photo {
        width: 150px;
    }
}


/* ---------- Pagina approfondimento ---------- */

.page-hero {
    padding: 56px 0 44px;
    background: radial-gradient(700px 360px at 95% 0%, var(--sky-soft) 0%, transparent 60%), var(--mint-soft);
    border-bottom: 1px solid var(--border);
}

.page-hero h1 {
    font-size: clamp(1.8rem, 3.6vw, 2.6rem);
    max-width: 22em;
}

.breadcrumb {
    font-size: .86rem;
    color: var(--text-muted);
    margin-bottom: 18px;
}

.breadcrumb a {
    color: var(--text-muted);
}

.article {
    max-width: 860px;
    padding-top: 48px;
    padding-bottom: 80px;
}

.article section+section {
    margin-top: 52px;
}

.article p,
.article li {
    color: var(--text-muted);
}

.article strong {
    color: var(--text);
}

.ccnl-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-left: 4px solid var(--green);
    border-radius: var(--radius-sm);
    padding: 20px 22px 16px;
    margin-bottom: 16px;
    box-shadow: var(--shadow-sm);
}

.ccnl-card:nth-of-type(even) {
    border-left-color: var(--blue);
}

.ccnl-head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 4px 14px;
    margin-bottom: 8px;
}

.ccnl-head h3 {
    margin: 0;
}

.ccnl-meta {
    font-size: .86rem;
    color: var(--text-muted);
}

.ccnl-card ul {
    margin: 0;
    padding-left: 1.1em;
}

.ccnl-card li {
    margin-bottom: 6px;
}

.ccnl-note,
.ccnl-foot {
    font-size: .84rem;
    color: var(--text-muted);
    margin: 10px 0 0;
}

.ccnl-foot {
    margin-top: 18px;
}

.table-wrap {
    overflow-x: auto;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--surface);
}

.ccnl-table {
    width: 100%;
    border-collapse: collapse;
    font-size: .92rem;
    min-width: 560px;
}

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

.ccnl-table th {
    font-family: var(--font-head);
    font-weight: 600;
    font-size: .8rem;
    letter-spacing: .03em;
    color: var(--navy-deep);
    background: var(--mint-soft);
}

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

.ccnl-table td:first-child {
    font-weight: 600;
    color: var(--text);
    white-space: nowrap;
}

.sources ul {
    padding-left: 1.1em;
    font-size: .92rem;
}

.sources li {
    margin-bottom: 6px;
}

.btn-light {
    background: #fff;
    color: var(--navy);
    margin-top: 22px;
}

.btn-light:hover {
    background: var(--mint-soft);
}

.howto {
    list-style: none;
    counter-reset: howto;
    padding: 0;
    margin: 24px 0 0;
}

.howto li {
    position: relative;
    counter-increment: howto;
    padding: 0 0 26px 58px;
    margin: 0;
}

.howto li::before {
    content: counter(howto);
    position: absolute;
    left: 0;
    top: -2px;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-family: var(--font-head);
    font-weight: 700;
    color: #fff;
    background: var(--navy);
}

.howto li::after {
    /* linea che collega i passaggi */
    content: '';
    position: absolute;
    left: 18px;
    top: 42px;
    bottom: 4px;
    width: 2px;
    background: linear-gradient(var(--green), var(--blue));
    opacity: .35;
}

.howto li:last-child {
    padding-bottom: 0;
}

.howto li:last-child::after {
    display: none;
}

.howto h3 {
    margin: 4px 0 6px;
}

.howto p {
    margin: 0 0 8px;
}

.howto .howto-sgal {
    background: var(--mint-soft);
    border: 1px solid rgba(82, 196, 135, .35);
    border-radius: var(--radius-sm);
    padding: 10px 14px;
    font-size: .93rem;
    color: var(--text);
}

.howto .howto-sgal b {
    color: var(--navy);
    font-family: var(--font-head);
    font-weight: 600;
}

.subhead {
    margin-top: 32px;
}
