/* Layout mobile dedicato. Il media del foglio usa il breakpoint impostato nell'admin. */
.lt-fmt.lt-fmt--react-mounted.lt-fmt--app-layout {
    width: calc(100vw - 32px) !important;
    max-width: none !important;
    margin-left: calc(50% - 50vw + 16px) !important;
    margin-right: calc(50% - 50vw + 16px) !important;
    padding: 0 !important;
    min-width: 0;
    color: #f5f5f5;
    font-family:
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        'Segoe UI',
        sans-serif !important;
    -webkit-tap-highlight-color: transparent;
}
.lt-fmt--app-layout *,
.lt-fmt__app-dialog * {
    box-sizing: border-box;
}
.lt-fmt.lt-fmt--app-layout .lt-fmt__header {
    display: none !important;
}
.lt-fmt.lt-fmt--app-layout .lt-fmt__shell {
    padding: 12px 0 20px !important;
    border: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
    border-radius: 0 !important;
}
.lt-fmt.lt-fmt--app-layout .lt-fmt__panel {
    padding: 0 !important;
}
.lt-fmt.lt-fmt--app-layout .lt-fmt__panel-head {
    display: flex !important;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 10px;
    margin: 20px 0 16px !important;
}
.lt-fmt.lt-fmt--app-layout .lt-fmt__panel-marker {
    display: none !important;
}
.lt-fmt.lt-fmt--app-layout .lt-fmt__panel-copy {
    flex: 1;
    min-width: 0;
}
.lt-fmt.lt-fmt--app-layout .lt-fmt__panel-copy h3 {
    font:
        700 23px/1.2 system-ui,
        sans-serif !important;
    letter-spacing: -0.02em !important;
}
.lt-fmt.lt-fmt--app-layout .lt-fmt__panel-copy p {
    font:
        400 14px/1.5 system-ui,
        sans-serif !important;
    color: #bfc0c4 !important;
    margin: 8px 0 0 !important;
}
.lt-fmt.lt-fmt--app-layout .lt-fmt__panel-actions {
    width: 100%;
    margin: 0 !important;
}
.lt-fmt.lt-fmt--app-layout .lt-fmt__panel-actions:empty {
    display: none !important;
}
.lt-fmt .lt-fmt__app-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 58px;
    padding: 6px 0 10px;
    border-bottom: 1px solid #ffffff1a;
}
.lt-fmt .lt-fmt__app-toolbar strong {
    font:
        750 16px/1.2 system-ui,
        sans-serif !important;
    letter-spacing: 0.07em;
    color: #ffe100;
}
.lt-fmt .lt-fmt__app-toolbar button {
    all: unset;
    box-sizing: border-box;
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    font:
        28px/1 system-ui,
        sans-serif;
    background: #27282b;
    color: #fff;
    border: 1px solid #555;
    border-radius: 14px;
    cursor: pointer;
}
.lt-fmt .lt-fmt__app-toolbar button[hidden] {
    display: none !important;
}
.lt-fmt.lt-fmt--app-layout .lt-fmt__family-grid,
.lt-fmt.lt-fmt--app-layout .lt-fmt__family-grid-inner {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    grid-auto-rows: auto !important;
    gap: 10px !important;
}
.lt-fmt.lt-fmt--app-layout .lt-fmt__family-card.lt-glass-card.lt-shadow {
    display: grid !important;
    grid-template-columns: 76px minmax(0, 1fr) 20px !important;
    grid-template-rows: auto !important;
    gap: 12px !important;
    align-items: center !important;
    align-content: center !important;
    padding: 14px !important;
    min-height: 106px !important;
    height: auto !important;
    aspect-ratio: auto !important;
    border: 1px solid #414247 !important;
    border-radius: 18px !important;
    background: #141416 !important;
    box-shadow: none !important;
    transform: none !important;
    text-align: left !important;
    overflow: hidden;
}
.lt-fmt.lt-fmt--app-layout .lt-fmt__family-card.lt-glass-card.lt-shadow::before,
.lt-fmt.lt-fmt--app-layout .lt-fmt__family-card.lt-glass-card.lt-shadow::after {
    display: none !important;
}
.lt-fmt.lt-fmt--app-layout .lt-fmt__family-card.lt-glass-card.lt-shadow.is-selected {
    border-color: #ffe100 !important;
    background: #302e1a !important;
}
.lt-fmt.lt-fmt--app-layout .lt-fmt__family-image,
.lt-fmt.lt-fmt--app-layout .lt-fmt__family-icon {
    grid-column: 1;
    grid-row: 1;
    width: 76px !important;
    height: 76px !important;
    min-height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    align-self: center;
}
.lt-fmt.lt-fmt--app-layout .lt-fmt__family-image img {
    width: 100% !important;
    height: 76px !important;
    max-height: 76px !important;
    object-fit: contain !important;
    transform: none !important;
}
.lt-fmt.lt-fmt--app-layout .lt-fmt__family-icon {
    font:
        700 26px/1 system-ui,
        sans-serif !important;
    display: grid !important;
    place-items: center;
    border-radius: 12px;
    background: #ffffff05;
}
.lt-fmt.lt-fmt--app-layout .lt-fmt__family-content {
    grid-column: 2;
    grid-row: 1;
    align-self: center !important;
    min-width: 0;
    height: auto !important;
    padding: 0 !important;
    gap: 5px !important;
    justify-content: center !important;
}
.lt-fmt.lt-fmt--app-layout .lt-fmt__family-parent {
    display: none !important;
}
.lt-fmt.lt-fmt--app-layout .lt-fmt__family-name {
    font:
        650 17px/1.25 system-ui,
        sans-serif !important;
    letter-spacing: 0 !important;
    color: #ffe100 !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
    margin: 0 !important;
}
.lt-fmt.lt-fmt--app-layout .lt-fmt__family-name::after {
    display: none !important;
}
.lt-fmt.lt-fmt--app-layout .lt-fmt__family-desc {
    font:
        400 14px/1.5 system-ui,
        sans-serif !important;
    color: #c4c5c8 !important;
    margin: 0 !important;
}
.lt-fmt.lt-fmt--app-layout .lt-fmt__family-arrow {
    display: block !important;
    position: static !important;
    grid-column: 3;
    grid-row: 1;
    color: #c6c6c6 !important;
    transform: none !important;
    font:
        22px/1 system-ui,
        sans-serif !important;
}
.lt-fmt.lt-fmt--app-layout .lt-fmt__quick-measurements.lt-glass-card.lt-shadow {
    padding: 0 !important;
    margin: 0 0 12px !important;
    border: 1px solid #44454a !important;
    border-radius: 16px !important;
    background: #141416 !important;
    box-shadow: none !important;
}
.lt-fmt.lt-fmt--app-layout .lt-fmt__quick-measurements::before,
.lt-fmt.lt-fmt--app-layout .lt-fmt__quick-measurements::after {
    display: none !important;
}
.lt-fmt.lt-fmt--app-layout .lt-fmt__app-filter-toggle {
    all: unset;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    min-height: 72px;
    padding: 14px 16px;
    cursor: pointer;
}
.lt-fmt.lt-fmt--app-layout .lt-fmt__app-filter-toggle > span:first-child {
    flex: 1;
}
.lt-fmt.lt-fmt--app-layout .lt-fmt__app-filter-toggle strong {
    display: block;
    font:
        650 16px/1.3 system-ui,
        sans-serif;
    color: #fff;
}
.lt-fmt.lt-fmt--app-layout .lt-fmt__app-filter-toggle small {
    display: block;
    font:
        400 14px/1.5 system-ui,
        sans-serif;
    color: #c4c5c8;
    margin-top: 3px;
}
.lt-fmt.lt-fmt--app-layout .lt-fmt__app-filter-count {
    min-width: 28px;
    height: 28px;
    border-radius: 9px;
    background: #34353a;
    display: grid;
    place-items: center;
    color: #ffe100;
    font:
        650 15px/1 system-ui,
        sans-serif;
}
.lt-fmt.lt-fmt--app-layout .lt-fmt__app-filter-body {
    padding: 0 16px 16px;
}
.lt-fmt.lt-fmt--app-layout .lt-fmt__app-filter-body[hidden] {
    display: none !important;
}
.lt-fmt.lt-fmt--app-layout .lt-fmt__quick-measurements-head > strong {
    display: none !important;
}
.lt-fmt.lt-fmt--app-layout .lt-fmt__quick-measurements-head p {
    font:
        400 14px/1.5 system-ui,
        sans-serif !important;
}
.lt-fmt.lt-fmt--app-layout .lt-fmt__quick-measurements-grid {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
}
.lt-fmt.lt-fmt--app-layout .lt-fmt__quick-field {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 8px !important;
}
.lt-fmt.lt-fmt--app-layout[data-current-step='3'] [data-quick-measurements] {
    display: none !important;
}
.lt-fmt.lt-fmt--app-layout input:not([type='checkbox']):not([type='radio']),
.lt-fmt.lt-fmt--app-layout select,
.lt-fmt.lt-fmt--app-layout textarea {
    font:
        400 16px/1.4 system-ui,
        sans-serif !important;
    min-height: 52px !important;
    padding: 14px !important;
    border: 1px solid #64666c !important;
    border-radius: 12px !important;
    color: #fff !important;
    background: #191a1d !important;
    max-width: 100%;
}
.lt-fmt.lt-fmt--app-layout input::placeholder,
.lt-fmt.lt-fmt--app-layout textarea::placeholder {
    font:
        400 14px/1.4 system-ui,
        sans-serif !important;
    opacity: 1 !important;
    color: #bfc1c7 !important;
}
.lt-fmt.lt-fmt--app-layout label strong {
    font:
        600 14px/1.4 system-ui,
        sans-serif !important;
    color: #e5e5e5 !important;
}
.lt-fmt.lt-fmt--app-layout .lt-fmt__measurements-layout,
.lt-fmt.lt-fmt--app-layout .lt-fmt__fields-grid,
.lt-fmt.lt-fmt--app-layout .lt-fmt__result-layout {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 16px !important;
}
.lt-fmt.lt-fmt--app-layout .lt-fmt__measurement-guide {
    padding: 12px !important;
    border-radius: 16px !important;
}
.lt-fmt.lt-fmt--app-layout .lt-fmt__measurement-guide img {
    max-height: 240px !important;
    object-fit: contain !important;
}
.lt-fmt.lt-fmt--app-layout .lt-fmt__result-card {
    padding: 16px !important;
    border-radius: 18px !important;
    background: #141416 !important;
    border: 1px solid #414247 !important;
}
.lt-fmt.lt-fmt--app-layout .lt-fmt__result-image {
    min-height: 0 !important;
    height: 150px !important;
}
.lt-fmt.lt-fmt--app-layout .lt-fmt__result-image img {
    height: 150px !important;
    max-height: 150px !important;
    object-fit: contain !important;
}
.lt-fmt.lt-fmt--app-layout .lt-fmt__result-actions,
.lt-fmt.lt-fmt--app-layout .lt-fmt__quote-actions {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 10px !important;
}
.lt-fmt.lt-fmt--app-layout .lt-fmt__quote-item {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    padding: 14px !important;
}
.lt-fmt.lt-fmt--app-layout .lt-fmt__quote-item-main {
    min-width: 0;
    width: 100%;
}
.lt-fmt.lt-fmt--app-layout .lt-fmt__quote-panel {
    padding: 16px !important;
}
.lt-fmt.lt-fmt--app-layout .lt-fmt__shell > .lt-fmt__steps {
    display: block !important;
    position: relative;
    width: 100% !important;
    max-width: 620px !important;
    margin: 0 auto 16px !important;
    padding: 12px !important;
    border-radius: 18px !important;
    background: #1c1d20 !important;
    border: 1px solid #494a50 !important;
    box-shadow: none !important;
    overflow: visible !important;
    color: #fff;
}
.lt-fmt.lt-fmt--app-layout.lt-fmt--mobile-active .lt-fmt__shell > .lt-fmt__steps {
    position: fixed !important;
    inset: auto max(10px, env(safe-area-inset-right)) max(10px, env(safe-area-inset-bottom))
        max(10px, env(safe-area-inset-left)) !important;
    width: auto !important;
    margin: 0 auto !important;
    z-index: 100;
    background: #1c1d20 !important;
    box-shadow: 0 -8px 30px #0005 !important;
}
.lt-fmt.lt-fmt--app-layout .lt-fmt__steps::backdrop {
    background: transparent;
    pointer-events: none;
}
.lt-fmt.lt-fmt--app-layout .lt-fmt__app-navigation {
    display: block;
    width: 100%;
}
.lt-fmt.lt-fmt--app-layout .lt-fmt__app-progress {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 12px;
}
.lt-fmt.lt-fmt--app-layout .lt-fmt__app-progress button {
    all: unset;
    box-sizing: border-box;
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-direction: column;
    gap: 5px;
    text-align: center;
    color: #c3c4c9;
    cursor: pointer;
    font:
        500 12px/1.2 system-ui,
        sans-serif;
    overflow-wrap: anywhere;
}
.lt-fmt.lt-fmt--app-layout .lt-fmt__app-step-number {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #34363c;
    display: grid;
    place-items: center;
    color: #ddd;
}
.lt-fmt.lt-fmt--app-layout .lt-fmt__app-progress [aria-current='step'] {
    color: #fff;
}
.lt-fmt.lt-fmt--app-layout .lt-fmt__app-progress [aria-current='step'] .lt-fmt__app-step-number {
    background: #ffe100;
    color: #111;
}
.lt-fmt.lt-fmt--app-layout .lt-fmt__app-controls {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
    gap: 10px !important;
    width: 100% !important;
}
.lt-fmt.lt-fmt--app-layout .lt-fmt__app-controls .lt-fmt__app-button {
    all: unset !important;
    box-sizing: border-box !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
    width: 100% !important;
    min-width: 0 !important;
    min-height: 52px !important;
    padding: 12px 8px !important;
    border-radius: 12px !important;
    font:
        650 16px/1.25 system-ui,
        sans-serif !important;
    color: #f5f5f5 !important;
    background: #35373d !important;
    cursor: pointer !important;
    text-align: center !important;
    touch-action: manipulation !important;
}
.lt-fmt.lt-fmt--app-layout .lt-fmt__app-controls .lt-fmt__app-button--primary {
    background: #ffe100 !important;
    color: #111 !important;
}
.lt-fmt.lt-fmt--app-layout .lt-fmt__app-controls .lt-fmt__app-button:disabled {
    background: #292b30 !important;
    color: #92959d !important;
    cursor: not-allowed !important;
    pointer-events: none !important;
}
.lt-fmt.lt-fmt--app-layout .lt-fmt__app-button::before,
.lt-fmt.lt-fmt--app-layout .lt-fmt__app-button::after {
    display: none !important;
}
.lt-fmt.lt-fmt--app-layout.lt-fmt--mobile-active [data-lt-fmt-react-measurement-submit] {
    display: none !important;
}
.lt-fmt.lt-fmt--app-layout button {
    touch-action: manipulation;
}
.lt-fmt.lt-fmt--app-layout :focus-visible {
    outline: 3px solid #ffe100 !important;
    outline-offset: 3px !important;
}
.lt-fmt.lt-fmt--app-layout .lt-fmt__app-button:focus-visible {
    outline: 3px solid #fff !important;
    outline-offset: 3px !important;
}
.lt-fmt__app-dialog {
    position: fixed;
    inset: 0;
    width: 100vw;
    max-width: none;
    height: 100dvh;
    max-height: none;
    margin: 0;
    padding: max(16px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right))
        max(16px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
    border: 0;
    background: #141416;
    color: #fff;
    overflow: auto;
    overscroll-behavior: contain;
}
.lt-fmt__app-dialog::backdrop {
    background: #141416;
}
.lt-fmt__app-dialog .lt-fmt.lt-fmt--app-layout {
    width: 100% !important;
    max-width: 720px !important;
    margin: 0 auto !important;
}
.lt-fmt__app-dialog .lt-fmt__app-toolbar {
    position: sticky;
    top: calc(-1 * max(16px, env(safe-area-inset-top)));
    z-index: 101;
    background: #141416;
}
@media (prefers-reduced-motion: reduce) {
    .lt-fmt--app-layout *,
    .lt-fmt--app-layout *::before,
    .lt-fmt--app-layout *::after {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important;
    }
}
/* Modulo richieste leggibile anche senza dipendere dai preset del tema. */
.lt-fmt.lt-fmt__modal .lt-fmt__modal-card {
    width: calc(100% - 32px) !important;
    max-width: 560px !important;
    max-height: calc(100dvh - 24px) !important;
    overflow: auto !important;
    padding: 16px !important;
    border-radius: 16px !important;
    background: #1c1d20 !important;
}
.lt-fmt.lt-fmt__modal .lt-fmt__modal-card h3 {
    font:
        700 23px/1.25 system-ui,
        sans-serif !important;
    padding-right: 35px;
    margin: 0 0 12px !important;
}
.lt-fmt.lt-fmt__modal .lt-fmt__modal-card > p {
    font:
        400 14px/1.55 system-ui,
        sans-serif !important;
    color: #c7c8cc !important;
}
.lt-fmt.lt-fmt__modal .lt-fmt__modal-close {
    width: 44px !important;
    height: 44px !important;
    top: 12px !important;
    right: 12px !important;
    font-size: 24px !important;
}
.lt-fmt .ltfmt-inquiry-form,
.lt-fmt form[data-request-form] {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 16px !important;
}
.lt-fmt form[data-request-form] .lt-form__field {
    width: 100% !important;
    min-width: 0;
    margin: 0 !important;
    grid-column: 1 !important;
}
.lt-fmt form[data-request-form] label {
    font:
        550 14px/1.4 system-ui,
        sans-serif !important;
    color: #e5e5e8 !important;
}
.lt-fmt form[data-request-form] label.lt-form__sr-only {
    display: block !important;
    position: static !important;
    width: auto !important;
    height: auto !important;
    margin: 0 0 6px !important;
    padding: 0 !important;
    clip: auto !important;
    clip-path: none !important;
    overflow: visible !important;
    white-space: normal !important;
}
.lt-fmt
    form[data-request-form]
    input:not([type='checkbox']):not([type='radio']):not([type='file']):not([type='hidden']),
.lt-fmt form[data-request-form] textarea {
    box-sizing: border-box !important;
    display: block !important;
    width: 100% !important;
    min-height: 52px !important;
    padding: 13px !important;
    background: #141518 !important;
    border: 1px solid #676970 !important;
    border-radius: 12px !important;
    color: #fff !important;
    font:
        400 16px/1.4 system-ui,
        sans-serif !important;
}
.lt-fmt form[data-request-form] textarea {
    min-height: 112px !important;
}
.lt-fmt form[data-request-form] input::placeholder,
.lt-fmt form[data-request-form] textarea::placeholder {
    font:
        400 14px/1.4 system-ui,
        sans-serif !important;
    color: #bbbfc6 !important;
    opacity: 1 !important;
}
.lt-fmt form[data-request-form] input[type='file'] {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    min-height: 0 !important;
    overflow: hidden !important;
    clip-path: inset(50%) !important;
}
.lt-fmt form[data-request-form] .lt-form__file-control {
    display: flex !important;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    padding: 14px !important;
    min-height: 52px;
    margin-top: 8px;
    border: 1px dashed #777;
    border-radius: 12px;
    cursor: pointer;
}
.lt-fmt form[data-request-form] .lt-form__file-button {
    color: #ffe100;
}
.lt-fmt form[data-request-form] .lt-form__file-list {
    overflow-wrap: anywhere;
    font-size: 13px;
}
.lt-fmt form[data-request-form] .lt-form__checkbox {
    display: flex !important;
    align-items: flex-start;
    gap: 12px;
    min-height: 44px;
    padding: 8px 0;
}
.lt-fmt form[data-request-form] input[type='checkbox'] {
    flex: 0 0 22px;
    width: 22px !important;
    height: 22px !important;
    margin: 0 !important;
    accent-color: #ffe100;
}
.lt-fmt form[data-request-form] .lt-form__actions {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 10px;
    width: 100%;
}
.lt-fmt form[data-request-form] .ltfmt-submit-button,
.lt-fmt form[data-request-form] .ltfmt-back-button {
    all: unset !important;
    display: flex !important;
    box-sizing: border-box !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    min-height: 52px !important;
    padding: 14px !important;
    border-radius: 12px !important;
    font:
        650 16px/1.3 system-ui,
        sans-serif !important;
    text-align: center !important;
    color: #111 !important;
    background: #ffe100 !important;
    cursor: pointer !important;
}
.lt-fmt form[data-request-form] .ltfmt-back-button {
    color: #fff !important;
    background: #35373d !important;
}
.lt-fmt form[data-request-form] .ltfmt-submit-button:disabled {
    color: #9b9da4 !important;
    background: #303238 !important;
    pointer-events: none !important;
}
.lt-fmt form[data-request-form] .ltfmt-submit-button::before,
.lt-fmt form[data-request-form] .ltfmt-submit-button::after,
.lt-fmt form[data-request-form] .ltfmt-back-button::before,
.lt-fmt form[data-request-form] .ltfmt-back-button::after {
    display: none !important;
}
.lt-fmt form[data-request-form] :focus-visible {
    outline: 3px solid #ffe100 !important;
    outline-offset: 3px !important;
}
.lt-fmt form[data-request-form] .lt-form__field--file:focus-within .lt-form__file-control {
    outline: 3px solid #ffe100;
    outline-offset: 3px;
}

/* 1.2.10 — Componenti mobile. Nessun breakpoint fisso: il media del link
 * viene generato da Assets.php usando il valore salvato nell'admin. */
.lt-fmt.lt-fmt--app-layout {
    --lt-fmt-text-small: 14px;
    --lt-fmt-text-medium: 18px;
    --lt-fmt-text-big: 24px;
    --lt-fmt-font-body: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color-scheme: dark;
    font-size: 16px;
    line-height: 1.5;
}
.lt-fmt.lt-fmt--app-layout
    :is(
        .lt-fmt__panel,
        .lt-fmt__field-section,
        .lt-fmt__field,
        .lt-fmt__quick-copy,
        .lt-fmt__result-main,
        .lt-fmt__quote-item-main
    ) {
    min-width: 0 !important;
}
.lt-fmt.lt-fmt--app-layout
    :is(h3, h4, p, .lt-fmt__notice, .lt-fmt__quote-item-name, .lt-fmt__quote-item-meta) {
    overflow-wrap: anywhere;
}
.lt-fmt.lt-fmt--app-layout .lt-fmt__panel-copy h3 {
    text-transform: none !important;
}
.lt-fmt.lt-fmt--app-layout .lt-fmt__panel-copy p {
    font-size: 16px !important;
    line-height: 1.5 !important;
}
.lt-fmt.lt-fmt--app-layout .lt-fmt__panel-head {
    margin-top: 16px !important;
}
.lt-fmt.lt-fmt--app-layout .lt-fmt__panel-actions {
    justify-content: stretch !important;
}
.lt-fmt.lt-fmt--app-layout :is(.lt-fmt__quote-tools, .lt-fmt__quote-toolbar) {
    width: 100% !important;
}
.lt-fmt.lt-fmt--app-layout .lt-fmt__panel-actions:has(.lt-fmt__quote-tools:empty) {
    display: none !important;
}

/* Navigazione: nome del passaggio corrente e tre bersagli touch numerati.
 * I nomi accessibili degli altri passaggi restano nelle etichette dei pulsanti. */
.lt-fmt.lt-fmt--app-layout .lt-fmt__app-progress-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}
.lt-fmt.lt-fmt--app-layout .lt-fmt__app-current-step {
    display: grid;
    gap: 3px;
    min-width: 0;
}
.lt-fmt.lt-fmt--app-layout .lt-fmt__app-current-step > span {
    font:
        500 12px/1.2 system-ui,
        sans-serif;
    color: #bfc1c7;
}
.lt-fmt.lt-fmt--app-layout .lt-fmt__app-current-step strong {
    font:
        650 14px/1.3 system-ui,
        sans-serif;
    color: #f6f6f6;
    overflow-wrap: anywhere;
}
.lt-fmt.lt-fmt--app-layout .lt-fmt__app-progress {
    gap: 4px;
    margin: 0;
}
.lt-fmt.lt-fmt--app-layout .lt-fmt__app-progress button {
    width: 44px;
    min-height: 44px;
    justify-content: center;
    border-radius: 10px;
}
.lt-fmt.lt-fmt--app-layout .lt-fmt__app-step-number {
    width: 32px;
    height: 32px;
    font:
        650 14px/1 system-ui,
        sans-serif;
}
.lt-fmt.lt-fmt--app-layout .lt-fmt__app-progress button:disabled {
    opacity: 0.5;
    cursor: default;
}
.lt-fmt.lt-fmt--app-layout .lt-fmt__app-controls {
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr) !important;
}
.lt-fmt.lt-fmt--app-layout .lt-fmt__app-controls .lt-fmt__app-button {
    min-height: 48px !important;
    overflow-wrap: anywhere;
}
.lt-fmt.lt-fmt--app-layout .lt-fmt__app-controls .lt-fmt__app-button > span:not([aria-hidden]) {
    min-width: 0;
}
.lt-fmt.lt-fmt--app-layout .lt-fmt__app-controls .lt-fmt__app-button > span[aria-hidden] {
    flex: none;
}

/* Una colonna anche quando il breakpoint mobile include un tablet. */
.lt-fmt.lt-fmt--app-layout
    :is(.lt-fmt__measure-form, .lt-fmt__field-section-grid, .lt-fmt__result-header) {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 20px !important;
}
.lt-fmt.lt-fmt--app-layout .lt-fmt__field-section {
    padding: 16px !important;
    border: 1px solid #414247 !important;
    border-radius: 16px !important;
    background: #141416 !important;
}
.lt-fmt.lt-fmt--app-layout .lt-fmt__field-section h4 {
    font:
        650 17px/1.4 system-ui,
        sans-serif !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
}
.lt-fmt.lt-fmt--app-layout .lt-fmt__field-section > p {
    font:
        400 14px/1.5 system-ui,
        sans-serif !important;
    color: #bfc1c7 !important;
}
.lt-fmt.lt-fmt--app-layout .lt-fmt__field label {
    flex-wrap: wrap;
    min-height: 28px;
}
.lt-fmt.lt-fmt--app-layout .lt-fmt__field-index {
    display: none !important;
}
.lt-fmt.lt-fmt--app-layout .lt-fmt__field-symbol {
    font:
        650 18px/1.4 system-ui,
        sans-serif !important;
}
.lt-fmt.lt-fmt--app-layout .lt-fmt__field-symbol > span {
    font:
        400 14px/1.4 system-ui,
        sans-serif !important;
    color: #bfc1c7;
}
.lt-fmt.lt-fmt--app-layout .lt-fmt__mobile-field-hint {
    margin: 8px 0 0 !important;
    font:
        400 14px/1.5 system-ui,
        sans-serif !important;
    color: #bfc1c7 !important;
}
.lt-fmt.lt-fmt--app-layout .lt-fmt__field-error {
    margin: 8px 0 0 !important;
    font:
        600 14px/1.5 system-ui,
        sans-serif !important;
    color: #ffaaaa !important;
}
.lt-fmt.lt-fmt--app-layout .lt-fmt__field input,
.lt-fmt.lt-fmt--app-layout .lt-fmt__quick-copy input {
    box-shadow: none !important;
}
.lt-fmt.lt-fmt--app-layout .lt-fmt__field input:focus,
.lt-fmt.lt-fmt--app-layout .lt-fmt__quick-copy input:focus {
    border-color: #ffe100 !important;
}
.lt-fmt.lt-fmt--app-layout .lt-fmt__field input[aria-invalid='true'] {
    border-color: #ff7878 !important;
}
.lt-fmt.lt-fmt--app-layout [data-lt-fmt-quote-anchor] {
    scroll-margin-block: 88px 160px;
}

/* Forme: testo a capo e spunta esplicita, senza tagliare le traduzioni lunghe. */
.lt-fmt.lt-fmt--app-layout .lt-fmt__shape-options {
    gap: 8px !important;
}
.lt-fmt.lt-fmt--app-layout .lt-fmt__shape-option {
    position: relative !important;
    min-height: 88px !important;
    padding: 12px 6px !important;
    border-radius: 12px !important;
    font:
        600 14px/1.3 system-ui,
        sans-serif !important;
}
.lt-fmt.lt-fmt--app-layout .lt-fmt__shape-option-text {
    white-space: normal !important;
    overflow: visible !important;
    overflow-wrap: anywhere !important;
    line-height: 1.3 !important;
}
.lt-fmt.lt-fmt--app-layout .lt-fmt__shape-option-check {
    position: absolute;
    top: 3px;
    right: 5px;
    font:
        700 14px/1 system-ui,
        sans-serif;
    color: #ffe100;
}
.lt-fmt.lt-fmt--app-layout .lt-fmt__shape-select {
    margin-bottom: 20px !important;
}
.lt-fmt.lt-fmt--app-layout .lt-fmt__field-shape-label {
    font:
        600 16px/1.4 system-ui,
        sans-serif !important;
}

/* Tutti i comandi di azione hanno spazio touch; i preset Divi non allargano
 * i pulsanti oltre la scheda quando il browser conserva uno stato hover. */
body
    #page-container
    .et_pb_section
    .lt-fmt.lt-fmt--react-mounted.lt-fmt--app-layout.preset--module--divi-button--default_wrapper
    .et_pb_button.preset--module--divi-button--default.lt-fmt__divi-button,
.lt-fmt.lt-fmt--app-layout .lt-fmt__divi-button,
.lt-fmt.lt-fmt--app-layout .lt-fmt__result-action {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    min-height: 48px !important;
    padding: 12px 14px !important;
    border-radius: 12px !important;
    font:
        600 16px/1.4 system-ui,
        sans-serif !important;
    white-space: normal !important;
    overflow-wrap: anywhere;
    transform: none !important;
    box-shadow: none !important;
    text-align: center !important;
    letter-spacing: 0 !important;
}
body
    #page-container
    .et_pb_section
    .lt-fmt.lt-fmt--react-mounted.lt-fmt--app-layout.preset--module--divi-button--default_wrapper
    .et_pb_button.preset--module--divi-button--default.lt-fmt__divi-button::before,
body
    #page-container
    .et_pb_section
    .lt-fmt.lt-fmt--react-mounted.lt-fmt--app-layout.preset--module--divi-button--default_wrapper
    .et_pb_button.preset--module--divi-button--default.lt-fmt__divi-button::after {
    display: none !important;
    content: none !important;
}
.lt-fmt.lt-fmt--app-layout :is(.lt-fmt__quote-close, .lt-fmt__quote-remove, .lt-fmt__restart) {
    min-width: 44px !important;
    min-height: 44px !important;
}
.lt-fmt.lt-fmt--app-layout .lt-fmt__info {
    display: inline-grid !important;
    place-items: center;
    flex: 0 0 44px !important;
    width: 44px !important;
    height: 44px !important;
    min-width: 44px !important;
    padding: 11px !important;
}
.lt-fmt.lt-fmt--app-layout .lt-fmt__info-icon {
    width: 22px !important;
    height: 22px !important;
}
.lt-fmt.lt-fmt--app-layout .lt-fmt__with-info {
    max-width: 100%;
}

/* Risultati: le informazioni sulla precisione restano sempre visibili.
 * Soltanto i dettagli dei singoli confronti vengono aperti su richiesta. */
.lt-fmt.lt-fmt--app-layout .lt-fmt__result-main h4 {
    font:
        650 22px/1.25 system-ui,
        sans-serif !important;
    text-transform: none !important;
    color: #ffe100 !important;
}
.lt-fmt.lt-fmt--app-layout .lt-fmt__result-kicker {
    font:
        500 13px/1.4 system-ui,
        sans-serif !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
}
.lt-fmt.lt-fmt--app-layout .lt-fmt__result-scorebox {
    display: grid !important;
    grid-template-columns: 80px minmax(0, 1fr) !important;
    gap: 8px 12px !important;
    width: 100% !important;
    justify-items: start !important;
    text-align: left !important;
    align-items: center !important;
    padding-top: 16px;
    border-top: 1px solid #414247;
}
.lt-fmt.lt-fmt--app-layout .lt-fmt__result-scorebox .lt-fmt__score-ring {
    grid-column: 1;
    grid-row: 1 / span 3;
    width: 80px !important;
    height: 80px !important;
    align-self: start;
}
.lt-fmt.lt-fmt--app-layout .lt-fmt__result-scorebox .lt-fmt__score-ring > span {
    inset: 12px !important;
}
.lt-fmt.lt-fmt--app-layout .lt-fmt__result-scorebox .lt-fmt__score-ring span strong {
    font-size: 24px !important;
}
.lt-fmt.lt-fmt--app-layout .lt-fmt__result-scorebox .lt-fmt__score-ring span em {
    font-size: 9px !important;
    letter-spacing: 0 !important;
}
.lt-fmt.lt-fmt--app-layout .lt-fmt__result-scorebox > :not(.lt-fmt__score-ring) {
    grid-column: 2;
    max-width: 100% !important;
    min-width: 0;
}
.lt-fmt.lt-fmt--app-layout .lt-fmt__result-scorebox small {
    justify-content: flex-start !important;
    text-align: left !important;
}
.lt-fmt.lt-fmt--app-layout .lt-fmt__reliability-badge {
    flex-wrap: wrap !important;
    justify-content: flex-start !important;
    gap: 4px !important;
    white-space: normal !important;
}
.lt-fmt.lt-fmt--app-layout .lt-fmt__result-details {
    margin-top: 16px;
    padding-top: 4px;
    border-top: 1px solid #414247;
}
.lt-fmt.lt-fmt--app-layout .lt-fmt__result-details > summary {
    padding: 12px 0;
    min-height: 48px;
    color: #f6f6f6;
    font:
        600 16px/1.5 system-ui,
        sans-serif;
    cursor: pointer;
}
.lt-fmt.lt-fmt--app-layout .lt-fmt__field-scores {
    margin-top: 8px !important;
}
.lt-fmt.lt-fmt--app-layout .lt-fmt__field-score[tabindex] {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
}
.lt-fmt.lt-fmt--app-layout
    :is(.lt-fmt__help-card, .lt-fmt__inline-request-card, .lt-fmt__no-result) {
    padding: 16px !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 16px !important;
    border-radius: 16px !important;
    box-shadow: none !important;
}
.lt-fmt.lt-fmt--app-layout .lt-fmt__quote-panel {
    width: 100% !important;
    max-width: 100% !important;
    border-radius: 16px !important;
}
.lt-fmt.lt-fmt--app-layout
    :is(
        .lt-fmt__family-image,
        .lt-fmt__measurement-guide,
        .lt-fmt__result-image,
        .lt-fmt__quote-item-image
    ) {
    background: #141416 !important;
}
.lt-fmt.lt-fmt--app-layout
    :is(
        .lt-fmt__family-image,
        .lt-fmt__measurement-guide,
        .lt-fmt__result-image,
        .lt-fmt__quote-item-image
    )
    img {
    mix-blend-mode: lighten !important;
}

/* Le sagome seguono la stessa impaginazione delle schede caricate. */
.lt-fmt.lt-fmt--app-layout .lt-fmt__loading-state--results .lt-fmt__skeleton-card {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
}
.lt-fmt.lt-fmt--app-layout .lt-fmt__loading-state--results .lt-fmt__skeleton-image {
    height: 150px;
}
.lt-fmt.lt-fmt--app-layout .lt-fmt__loading-state--fields .lt-fmt__skeleton-measures > span {
    height: 52px;
}
.lt-fmt.lt-fmt--app-layout .lt-fmt__loading-state--families .lt-fmt__skeleton-card {
    min-height: 106px;
    gap: 12px;
    padding: 14px;
}
.lt-fmt.lt-fmt--app-layout .lt-fmt__live-preview {
    padding: 16px !important;
    box-shadow: none !important;
}

/* Il modulo in portale riceve lo stesso foglio tramite il media dell'admin. */
.lt-fmt.lt-fmt__modal .lt-fmt__modal-card {
    box-sizing: border-box;
    color-scheme: dark;
}
.lt-fmt form[data-request-form] :is(.lt-form__field, .lt-form__field label, .lt-form__file-list) {
    overflow-wrap: anywhere;
}
.lt-fmt form[data-request-form] select {
    width: 100% !important;
    min-height: 52px !important;
    font-size: 16px !important;
}

/* Quantità e lista: bersagli touch reali sui pulsanti presenti nel markup. */
.lt-fmt.lt-fmt--app-layout .lt-fmt__quote-quantity button {
    width: 44px !important;
    min-width: 44px !important;
    height: 44px !important;
    min-height: 44px !important;
}
.lt-fmt.lt-fmt--app-layout .lt-fmt__quote-quantity {
    max-width: 100%;
}

/* Superfici uniformi: disattiva i riflessi dei preset desktop sulle schede. */
.lt-fmt.lt-fmt--react-mounted.lt-fmt--app-layout
    :is(
        .lt-fmt__result-card,
        .lt-fmt__help-card,
        .lt-fmt__inline-request-card,
        .lt-fmt__quote-panel
    ).lt-glass-card.lt-shadow {
    background: #141416 !important;
    box-shadow: none !important;
    filter: none !important;
    border: 1px solid #414247 !important;
    border-radius: 16px !important;
}
.lt-fmt.lt-fmt--react-mounted.lt-fmt--app-layout
    .lt-fmt__result-card.is-best.lt-glass-card.lt-shadow {
    border-color: #827725 !important;
}
.lt-fmt.lt-fmt--react-mounted.lt-fmt--app-layout
    :is(
        .lt-fmt__result-card,
        .lt-fmt__help-card,
        .lt-fmt__inline-request-card,
        .lt-fmt__quote-panel
    ).lt-glass-card::before,
.lt-fmt.lt-fmt--react-mounted.lt-fmt--app-layout
    :is(
        .lt-fmt__result-card,
        .lt-fmt__help-card,
        .lt-fmt__inline-request-card,
        .lt-fmt__quote-panel
    ).lt-shadow::after {
    display: none !important;
    content: none !important;
}
.lt-fmt.lt-fmt--react-mounted.lt-fmt--app-layout .lt-fmt__help-card--global .lt-fmt__divi-button {
    width: 100% !important;
    min-width: 0 !important;
    padding: 12px 14px !important;
    border-radius: 12px !important;
}
.lt-fmt.lt-fmt--react-mounted.lt-fmt--app-layout .lt-fmt__help-card h4 {
    font:
        650 22px/1.3 system-ui,
        sans-serif !important;
}
.lt-fmt.lt-fmt--react-mounted.lt-fmt--app-layout
    .lt-fmt__result-scorebox
    .lt-fmt__score-ring
    span
    strong {
    font:
        700 20px/1 system-ui,
        sans-serif !important;
    letter-spacing: -0.04em !important;
}
.lt-fmt.lt-fmt--react-mounted.lt-fmt--app-layout
    .lt-fmt__result-scorebox
    .lt-fmt__score-ring
    span
    em {
    font:
        500 9px/1 system-ui,
        sans-serif !important;
}

.lt-fmt.lt-fmt--app-layout .lt-fmt__quote-head {
    grid-template-columns: minmax(0, 1fr) 44px !important;
    gap: 8px !important;
}
.lt-fmt.lt-fmt--app-layout .lt-fmt__quote-head h4 {
    font:
        650 22px/1.3 system-ui,
        sans-serif !important;
}
.lt-fmt.lt-fmt--app-layout .lt-fmt__quote-item {
    box-shadow: none !important;
}
.lt-fmt.lt-fmt--app-layout .lt-fmt__quote-item-title {
    font:
        600 16px/1.4 system-ui,
        sans-serif !important;
    overflow-wrap: anywhere;
}
.lt-fmt.lt-fmt--app-layout .lt-fmt__quote-item-link {
    display: inline-flex !important;
    align-items: center;
    min-height: 44px;
}
.lt-fmt.lt-fmt--app-layout .lt-fmt__quote-tech summary {
    min-height: 48px;
    padding-block: 12px;
}
.lt-fmt.lt-fmt--app-layout .lt-fmt__quote-trigger {
    gap: 10px !important;
}
