/*
 * Sinergia HSE Form
 * Usa il font del tema WordPress e una palette azzurro/blu coerente con l'identità Sinergia.
 * Per adattare il colore primario modificare soltanto --shse-accent e --shse-accent-dark.
 */
.shse-form-shell {
    --shse-accent: #66b8d5;
    --shse-accent-dark: #25566b;
    --shse-ink: #24343c;
    --shse-muted: #69777e;
    --shse-line: #dce6ea;
    --shse-soft: #f4f9fb;
    --shse-danger: #a33a3a;
    --shse-success: #2d6f50;

    width: min(100%, 1060px);
    margin: 48px auto;
    padding: 0;
    color: var(--shse-ink);
    font-family: inherit;
}

.shse-form-head {
    max-width: 760px;
    margin: 0 0 32px;
}

.shse-eyebrow {
    display: block;
    margin-bottom: 10px;
    color: var(--shse-accent-dark);
    font-size: 12px;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: .12em;
}

.shse-form-head h2 {
    margin: 0 0 12px;
    color: var(--shse-ink);
    font-family: inherit;
    font-size: clamp(30px, 4vw, 48px);
    font-weight: 600;
    line-height: 1.08;
    letter-spacing: -.025em;
}

.shse-form-head p {
    margin: 0;
    color: var(--shse-muted);
    font-size: 17px;
    line-height: 1.65;
}

.shse-form {
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--shse-line);
    border-radius: 4px;
    box-shadow: 0 14px 40px rgba(28, 58, 71, .06);
}

.shse-section {
    margin: 0;
    padding: 34px 36px 38px;
    border: 0;
    border-bottom: 1px solid var(--shse-line);
}

.shse-section legend {
    width: 100%;
    margin: 0 0 22px;
    padding: 0;
    color: var(--shse-accent-dark);
    font-size: 20px;
    font-weight: 600;
    line-height: 1.25;
}

.shse-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px 26px;
}

.shse-field--wide {
    grid-column: 1 / -1;
}

.shse-field label {
    display: block;
    margin-bottom: 8px;
    color: var(--shse-ink);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
}

.shse-field label strong,
.shse-check strong,
.shse-required span {
    color: var(--shse-accent-dark);
}

.shse-field input {
    box-sizing: border-box;
    width: 100%;
    min-height: 50px;
    margin: 0;
    padding: 12px 14px;
    color: var(--shse-ink);
    background: #fff;
    border: 1px solid #cbd9df;
    border-radius: 2px;
    outline: none;
    font: inherit;
    line-height: 1.2;
    transition: border-color .18s ease, box-shadow .18s ease, background-color .18s ease;
}

.shse-field input:hover {
    border-color: #9eb8c2;
}

.shse-field input:focus {
    border-color: var(--shse-accent);
    box-shadow: 0 0 0 3px rgba(102, 184, 213, .16);
}

.shse-field input.shse-invalid {
    border-color: var(--shse-danger);
    background: #fffafa;
}

.shse-field-error {
    display: block;
    min-height: 0;
    margin-top: 6px;
    color: var(--shse-danger);
    font-size: 12px;
}

.shse-consents {
    background: var(--shse-soft);
}

.shse-check {
    display: grid;
    grid-template-columns: 22px minmax(0, 1fr);
    gap: 12px;
    align-items: start;
    margin: 0 0 17px;
    color: #4a5d66;
    cursor: pointer;
    font-size: 14px;
    line-height: 1.6;
}

.shse-check input {
    width: 18px;
    height: 18px;
    margin: 3px 0 0;
    accent-color: var(--shse-accent-dark);
}

.shse-check a {
    color: var(--shse-accent-dark);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.shse-privacy-note {
    margin: 7px 0 0 34px;
    color: var(--shse-muted);
    font-size: 12px;
    line-height: 1.5;
}

.shse-actions {
    display: flex;
    gap: 20px;
    align-items: center;
    justify-content: space-between;
    padding: 26px 36px;
    background: #fff;
}

.shse-required {
    margin: 0;
    color: var(--shse-muted);
    font-size: 12px;
}

.shse-submit {
    min-width: 180px;
    min-height: 50px;
    padding: 13px 24px;
    color: #fff !important;
    background: var(--shse-accent-dark) !important;
    border: 1px solid var(--shse-accent-dark) !important;
    border-radius: 2px !important;
    box-shadow: none !important;
    cursor: pointer;
    font: inherit;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: .02em;
    text-transform: uppercase;
    transition: transform .15s ease, opacity .15s ease, background-color .15s ease;
}

.shse-submit:hover,
.shse-submit:focus {
    opacity: .9;
    transform: translateY(-1px);
}

.shse-alert {
    margin: 0 0 22px;
    padding: 15px 18px;
    border-left: 4px solid currentColor;
    background: #fff;
    font-size: 14px;
    line-height: 1.5;
}

.shse-alert--success {
    color: var(--shse-success);
    background: #f2faf5;
}

.shse-alert--error {
    color: var(--shse-danger);
    background: #fff5f5;
}

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

@media (max-width: 720px) {
    .shse-form-shell {
        margin: 30px auto;
    }

    .shse-grid {
        grid-template-columns: 1fr;
    }

    .shse-field--wide {
        grid-column: auto;
    }

    .shse-section {
        padding: 26px 20px 30px;
    }

    .shse-actions {
        align-items: stretch;
        flex-direction: column;
        padding: 22px 20px;
    }

    .shse-submit {
        width: 100%;
    }

    .shse-privacy-note {
        margin-left: 0;
    }
}
