html {
    font-size: 14px;
    position: relative;
    min-height: 100%;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

body {
    min-height: 100vh;
    margin: 0;
    display: flex;
    flex-direction: column;
    background-color: #f8f9fa;
}

main {
    flex: 1 0 auto;
}

.btn:focus,
.btn:active:focus,
.btn-link.nav-link:focus,
.form-control:focus,
.form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

.form-floating > .form-control-plaintext::placeholder,
.form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder,
.form-floating > .form-control:focus::placeholder {
    text-align: start;
}

.hero {
    padding-top: 5rem !important;
    padding-bottom: 4rem !important;
}

    .hero h1 {
        letter-spacing: -2px;
    }

.tool-card {
    color: inherit;
    text-decoration: none;
}

    .tool-card .card {
        transition: transform .15s ease, box-shadow .15s ease;
        border: 1px solid #e6e8eb;
    }

    .tool-card:hover .card {
        transform: translateY(-3px);
        box-shadow: 0 .5rem 1rem rgba(0, 0, 0, .10) !important;
    }

.tool-icon {
    font-size: 1.7rem;
    font-weight: 700;
    margin-bottom: 1rem;
    min-height: 42px;
}

.tool-disabled {
    border: 1px solid #e6e8eb;
    opacity: .65;
}

.footer {
    position: static !important;
    bottom: auto !important;
    flex-shrink: 0;
    width: 100%;
    background-color: #fff;
    line-height: normal;
    white-space: normal;
}

.footer .container {
    white-space: normal;
}

.footer .small {
    line-height: 1.6;
}
.result-box {
    padding: 1.25rem;
    background: #f8f9fa;
    border: 1px solid #e6e8eb;
    border-radius: .5rem;
}
.qr-preview {
    display: inline-flex;
    padding: 1rem;
    background: #fff;
    border: 1px solid #e6e8eb;
    border-radius: .75rem;
}

    .qr-preview img,
    .qr-preview canvas {
        display: block;
        max-width: 100%;
        height: auto;
    }
.json-editor {
    min-height: 340px;
    resize: vertical;
    tab-size: 2;
    line-height: 1.5;
}
.data-editor {
    min-height: 380px;
    resize: vertical;
    tab-size: 2;
    line-height: 1.5;
}

/* Generatore preventivo */
@media print {
    header,
    footer,
    .no-print,
    .navbar,
    .alert,
    body > .container > .pb-3 > .container > .no-print {
        display: none !important;
    }

    body {
        background: #fff !important;
    }

    main {
        padding: 0 !important;
        margin: 0 !important;
    }

    #preventivo {
        border: 0 !important;
        box-shadow: none !important;
    }

    #preventivo .card-body {
        padding: 0 !important;
    }

    #preventivo input,
    #preventivo textarea,
    #preventivo select {
        border: 0 !important;
        box-shadow: none !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        background: transparent !important;
        color: #000 !important;
        appearance: none;
    }

    #preventivo textarea {
        resize: none;
    }

    #righeTable {
        page-break-inside: auto;
    }

    #righeTable tr {
        page-break-inside: avoid;
    }
}

@media print { .toolone-new .card .row, .toolone-new #calculate, .toolone-new button, .toolone-new section, .toolone-new > p, header, footer, nav { display:none !important; } .toolone-new #result { display:block !important; border:0 !important; background:white !important; white-space:normal !important; } .toolone-new .card {border:0 !important;box-shadow:none !important} .toolone-new table {font-size:11px} .toolone-new tr {break-inside:avoid} }

/* Tema ToolOne: blu sobrio coordinato alla pagina Facebook */
:root { --toolone-blue: #0868d9; --toolone-navy: #102e62; --toolone-border: #dce9f7; }
body { background: #f5f9ff; color: #19334e; }
.navbar { background: #fff !important; border-bottom-color: #dbe8f6 !important; }
.navbar-brand { color: var(--toolone-navy) !important; letter-spacing: -.5px; font-size: 1.3rem; }
.brand-logo { border-radius: 50%; object-fit: cover; }
.brand-accent { color: var(--toolone-blue); }
.brand-domain { color: #657d9a; font-size: .7em; }
.navbar .nav-link:hover, .footer a:hover { color: var(--toolone-blue) !important; }
.hero { background: linear-gradient(180deg, #eaf5ff 0%, #f5f9ff 100%); padding-top: 3.5rem !important; padding-bottom: 2.5rem !important; }
.hero h1 { color: var(--toolone-navy); }
.hero-banner { height: clamp(130px, 24vw, 285px); max-width: 1080px; margin-inline: auto; background: #e5f3ff url('/images/toolone-banner.webp') center 42% / cover no-repeat; border: 1px solid #d7e8fa; border-radius: 18px; box-shadow: 0 10px 28px rgba(16,65,125,.09); }
.tool-card .card { border-color: var(--toolone-border); border-radius: 12px; background: #fff; }
.tool-card:hover .card { border-color: #8ebdf1; box-shadow: 0 .5rem 1.25rem rgba(9,86,168,.12) !important; }
.tool-card .tool-icon { color: var(--toolone-blue); }
.btn-primary { background-color: #0868d9; border-color: #0868d9; }
.btn-primary:hover { background-color: #0757b4; border-color: #0757b4; }
a { color: #075dbf; }
.footer { border-top-color: var(--toolone-border) !important; }
@media (max-width: 575px) { .hero-banner { height: 140px; border-radius: 12px; background-position: center 40%; } .hero { padding-top: 2rem !important; } }
@media (prefers-reduced-motion: reduce) { .tool-card .card { transition: none; } }
