#nf-form-1-cont nf-fields-wrap {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    column-gap: 24px;
}
#nf-form-1-cont nf-field {
    min-width: 0;
    grid-column: 1 / -1;
}
#nf-form-1-cont nf-field:has(.si-contact-half) {
    grid-column: span 1;
}
#nf-form-1-cont .nf-field-container {
    width: 100%;
}
#nf-form-1-cont input:not([type="submit"]):not([type="checkbox"]):not([type="hidden"]),
#nf-form-1-cont textarea {
    box-sizing: border-box;
    width: 100%;
}
@media (max-width: 640px) {
    #nf-form-1-cont nf-fields-wrap {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* Contatti: scheda compatta e colori coordinati */
body.page-id-141 #nf-form-1-cont {
    width: 50%;
    margin: 24px auto 40px;
    padding: 32px;
    box-sizing: border-box;
    background: #fff;
    border: 1px solid #e5e9f2;
    border-top: 4px solid #08b9c7;
    border-radius: 18px;
    box-shadow: 0 16px 45px rgba(16, 27, 48, .10);
}

body.page-id-141 #nf-form-1-cont .nf-form-title h3 {
    color: #101b30;
    font-size: 26px;
    margin-bottom: 12px;
}

body.page-id-141 #nf-form-1-cont .nf-form-fields-required {
    color: #64748b;
    font-size: 13px;
    margin-bottom: 22px;
}

body.page-id-141 #nf-form-1-cont .nf-field-label label {
    color: #25334b;
    font-weight: 600;
}

body.page-id-141 #nf-form-1-cont input:not([type="submit"]):not([type="checkbox"]):not([type="hidden"]),
body.page-id-141 #nf-form-1-cont textarea {
    background: #f7f9fc;
    border: 1px solid #dce3ee;
    border-radius: 8px;
    padding: 10px 12px;
    transition: border-color .2s, box-shadow .2s;
}

body.page-id-141 #nf-form-1-cont input:focus,
body.page-id-141 #nf-form-1-cont textarea:focus {
    background: #fff;
    border-color: #08aab8;
    outline: 2px solid #08aab8;
    outline-offset: 2px;
    box-shadow: 0 0 0 4px rgba(8, 185, 199, .10);
}

body.page-id-141 #nf-form-1-cont textarea {
    min-height: 150px;
}

body.page-id-141 #nf-form-1-cont input[type="submit"],
body.page-id-141 #nf-form-1-cont button[type="submit"] {
    background: linear-gradient(110deg, #087f91, #7040b8);
    color: #fff;
    border: 0;
    border-radius: 9px;
    padding: 13px 22px;
    font-weight: 600;
    cursor: pointer;
}

body.page-id-141 #nf-form-1-cont input[type="submit"]:hover,
body.page-id-141 #nf-form-1-cont button[type="submit"]:hover {
    filter: brightness(1.1);
}

@media (max-width: 900px) {
    body.page-id-141 #nf-form-1-cont {
        width: 100%;
        max-width: 620px;
        padding: 24px;
    }
}

/* Introduzione e sezioni della pagina Contatti */
.si-contact-intro {
    max-width: 680px;
    margin: 12px auto 28px;
    text-align: center;
}
.si-contact-eyebrow {
    color: #087f91;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .14em;
}
.si-contact-intro h2 {
    color: #101b30;
    font-size: clamp(25px, 3vw, 34px);
    margin: 12px 0;
}
.si-contact-intro p,
#si-contact-extras p {
    color: #526079;
    line-height: 1.7;
}
#si-contact-extras {
    margin: 36px auto 10px;
    max-width: 1040px;
}
.si-contact-cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}
.si-contact-card {
    padding: 25px;
    border: 1px solid #dce8ed;
    border-radius: 16px;
    background: #f0fafb;
}
.si-contact-card:nth-child(2) {
    background: #fff5f5;
    border-color: #f1dddd;
}
.si-contact-card:nth-child(3) {
    background: #f7f2ff;
    border-color: #e5dcf4;
}
.si-contact-card-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: #fff;
    color: #087f91;
    font-size: 25px;
}
.si-contact-card:nth-child(2) .si-contact-card-icon {
    color: #b62e47;
}
.si-contact-card:nth-child(3) .si-contact-card-icon {
    color: #7040b8;
}
.si-contact-card h3 {
    color: #101b30;
    font-size: 19px;
    margin: 18px 0 10px;
}
.si-contact-card a,
.si-contact-faq a {
    color: #075e70;
    font-weight: 600;
}
.si-contact-faq {
    max-width: 760px;
    margin: 48px auto 32px;
}
.si-contact-faq h2,
.si-contact-social h2 {
    color: #101b30;
    font-size: 25px;
}
.si-contact-faq details {
    margin-bottom: 10px;
    padding: 17px 20px;
    border: 1px solid #e1e6ef;
    border-radius: 12px;
    background: #fff;
}
.si-contact-faq summary {
    cursor: pointer;
    font-weight: 600;
    color: #25334b;
}
.si-contact-faq details p {
    margin: 12px 0 0;
}
.si-contact-social {
    text-align: center;
    padding: 22px 0;
}
.si-contact-social-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
}
.si-contact-social-links a {
    padding: 10px 17px;
    border-radius: 25px;
    background: #101b30;
    color: #fff;
    text-decoration: none;
}
#nf-form-1-cont {
    scroll-margin-top: 120px;
}
@media (max-width: 760px) {
    .si-contact-cards {
        grid-template-columns: 1fr;
    }
}

/* Modulo a sinistra, riquadri a destra */
body.page-id-141 .si-contact-columns {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: start;
    gap: 32px;
    width: 100%;
    max-width: 1040px;
    margin: 28px auto 40px;
}

body.page-id-141 .si-contact-columns > #nf-form-1-cont {
    width: 100%;
    max-width: none;
    min-width: 0;
    margin: 0;
}

body.page-id-141 .si-contact-columns > .si-contact-cards {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
    min-width: 0;
    margin: 0;
}

body.page-id-141 .si-contact-columns .si-contact-card {
    padding: 24px;
}

body.page-id-141 .si-contact-columns .si-contact-card h3 {
    margin-top: 12px;
}

body.page-id-141 .si-contact-columns .si-contact-card p {
    color: #52627a;
    line-height: 1.7;
}

@media (max-width: 900px) {
    body.page-id-141 .si-contact-columns {
        grid-template-columns: minmax(0, 1fr);
        max-width: 620px;
        gap: 24px;
    }
}
