@import url('https://fonts.googleapis.com/css2?family=Albert+Sans:wght@400;700;900&display=swap');

.tn-forfettario-wrap {
    max-width: 1100px;
    margin: 0 0 0 0;
}

.tn-forfettario-gate {
    max-width: 480px;
    margin: 0 auto 24px
}

.tn-forfettario-gate-card {
    border-radius: 14px;
    padding: 20px;
    background: #fff;
    box-sizing: border-box
}

.tn-forfettario-gate-card h3 {
    margin: 0 0 8px;
    font-size: 20px;
    font-weight: 900;
    color: #D9000D;
}

.tn-forfettario-gate-card h3 {
    margin: 0 0 8px;
    font-size: 1.7rem;
    font-weight: 900;
    color: #D9000D;
}

.tn-forfettario-gate-desc {
    margin: 0 0 16px;
    color: #6b7280;
    font-size: 14px;
    line-height: 1.5
}

.tn-forfettario-gate-card label {
    display: block;
    margin-top: 12px;
    font-weight: 600
}

.tn-forfettario-gate-card input {
    width: 100%;
    max-width: 100%;
    padding: 10px;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    margin-top: 6px;
    box-sizing: border-box
}

.tn-forfettario-gate-error {
    margin-top: 12px;
    padding: 10px;
    border-radius: 10px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #b91c1c;
    font-size: 13px
}

.tn-forfettario-gate-privacy {
    margin-top: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: nowrap
}

.tn-forfettario-gate-privacy input {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    margin: 0;
    padding: 0;
    cursor: pointer;
    border: 1px solid #ccc;
    border-radius: 8px;
    appearance: none;
    -webkit-appearance: none;
    background-color: #fff
}

.tn-forfettario-gate-privacy input:checked {
    background-color: #D9000D;
    border-color: #D9000D;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
    background-size: 12px 12px;
    background-position: center;
    background-repeat: no-repeat
}

.tn-forfettario-gate-privacy label {
    flex: 1;
    margin: 0;
    font-weight: 400;
    font-size: 14px;
    cursor: pointer;
    line-height: 1.4
}

.tn-forfettario-gate-privacy a {
    text-decoration: underline
}


.tn-forfettario-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

@media (max-width: 900px) {
    .tn-forfettario-grid {
        grid-template-columns: 1fr
    }
}

.tn-forfettario-card {

    border-radius: 14px;
    padding: 16px;
    background: #fff;
    box-shadow: 0 1px 2px rgba(0, 0, 0, .04);
    box-sizing: border-box
}

.tn-forfettario-card h3 {
    margin: 0 0 10px;
    font-size: 20px;
    font-weight: 900;
    color: #D9000D;
}

.tn-forfettario-card h2 {
    margin: 0 0 10px;
    font-size: 30px;
    font-weight: 900;
    color: #D9000D;
}

.tn-forfettario-card label {
    display: block;
    margin-top: 10px;
    font-weight: 900;
    font-size: 18px;
}

.tn-forfettario-card input,
.tn-forfettario-card select {
    width: 100%;
    max-width: 100%;
    padding: 10px;
    border: 5px solid #EBEBEB;
    border-radius: 15px;
    margin-top: 6px;
    box-sizing: border-box;
    font-size: 18px;
}

.tn-forfettario-btn {
    margin: 0;
    margin-top: 14px;
    width: 100%;
    overflow: visible;
    font: inherit;
    display: inline-block;
    box-sizing: border-box;
    padding: 0 30px;
    vertical-align: middle;
    font-size: 16px;
    line-height: 38px;
    text-align: center;
    text-decoration: none;
    transition: .1s ease-in-out;
    transition-property: color, background-color, background-position, background-size, border-color, box-shadow;
    font-weight: 700;
    text-transform: none;
    letter-spacing: 0;
    border-radius: 500px;
    background-origin: border-box;
    background-color: #d9000d;
    color: #fff;
    border: 3px solid transparent;
    cursor: pointer
}

.tn-forfettario-btn:hover:not(:disabled) {
    background: #FFC6C9 0% 0% no-repeat padding-box;
    border: 3px solid #D9000D;
    border-radius: 500px;
    opacity: 1;
    font-size: 16px;
    line-height: 38px;
    font-weight: 700;
    letter-spacing: 0;
    color: #D9000D
}

.tn-forfettario-btn:disabled {
    opacity: .6;
    cursor: not-allowed
}

.tn-forfettario-divider {
    height: 1px;
    background: #e5e7eb;
    margin: 16px 0
}

.tn-forfettario-hint {
    font-size: 14px;
    color: #6b7280;
    margin-top: 6px
}

.tn-forfettario-note {
    margin-top: 12px;
    padding: 10px;
    border-radius: 12px;
    background: #fff7ed;
    border: 1px solid #fed7aa;
    color: #9a3412;
    font-size: 13px
}

.tn-forfettario-kpi {
    display: flex;
    flex-direction: column;
    gap: 10px
}

.tn-forfettario-kpi-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #EBEBEB;
    padding-bottom: 24px;
    padding-top: 24px;
}

.tn-forfettario-kpi-row span {
    color: #374151
}

.tn-forfettario-kpi-row strong {
    font-size: 18px
}

.tn-forfettario-total strong {
    font-size: 20px
}

.tn-forfettario-pre {
    white-space: pre-wrap;
    background: #0b1020;
    color: #e5e7eb;
    border-radius: 12px;
    padding: 12px;
    overflow: auto
}

.tn-forfettario-foot {
    margin-top: 12px;
    color: #6b7280
}

.tn-forfettario-details summary {
    cursor: pointer;
    font-weight: 700;
    margin-top: 8px
}