:root {
  /** Brand colors */
  --tblr-brand: #52a1ab;

  /** Primary Theme Color */
  --tblr-primary: #52a1ab;

  /** Facoltativo: tonalità derivate */
  --tblr-primary-rgb: 82, 161, 171;
  --tblr-primary-light: #6bb5be;
  --tblr-primary-dark: #417f88;
}

.marketing-site-header {
    min-height: 5rem;
    border-bottom: 1px solid rgba(15, 23, 42, 0.1);
    background: rgba(255, 255, 255, 0.96);
}

.marketing-site-brand {
    padding-top: 0;
    padding-bottom: 0;
}

.marketing-site-brand img {
    display: block;
    height: 4.4rem;
    object-fit: contain;
}

.marketing-site-nav {
    align-items: center;
    gap: 1.75rem;
}

.marketing-site-nav .nav-link {
    padding-right: 0;
    padding-left: 0;
    color: #082653;
    font-size: 1rem;
    font-weight: 700;
}

.marketing-site-nav .nav-link:hover {
    color: var(--tblr-primary-dark);
}

.marketing-site-nav__cta {
    margin-left: 0.75rem;
}

.marketing-site-nav__language {
    display: flex;
    align-items: center;
    margin-left: 0.15rem;
}

.marketing-site-nav__language .btn {
    color: #082653;
    border-color: #cbd6e2;
    background: #fff;
}

.marketing-site-nav__language .btn:hover,
.marketing-site-nav__language .btn:focus {
    color: var(--tblr-primary-dark);
    border-color: #9fb1c5;
    background: #f7fafc;
}

.language-switcher__flag {
    display: inline-block;
    font-size: 1.35rem;
    line-height: 1;
}

.marketing-site-nav__cta .btn {
    font-size: 0.95rem;
    font-weight: 700;
}

.marketing-site-footer {
    margin-top: auto;
    padding: 1.75rem 0 1.25rem;
    border-top: 1px solid #e1e8f0;
    background: #fff;
}

.marketing-site-footer__grid {
    display: grid;
    grid-template-columns: 2.2fr repeat(3, 1fr);
    gap: 3.4rem;
}

.marketing-site-footer__logo {
    display: inline-flex;
    align-items: center;
}

.marketing-site-footer__logo img {
    display: block;
    width: 10.3rem;
    height: 3.6rem;
    object-fit: contain;
}

.marketing-site-footer p {
    max-width: 16.25rem;
    margin: 0;
    color: #465d79;
    font-size: 0.875rem;
    line-height: 1.55;
}

.marketing-site-footer h2 {
    margin: 0.75rem 0 0.625rem;
    color: #082653;
    font-size: 0.875rem;
    font-weight: 800;
}

.marketing-site-footer a:not(.marketing-site-footer__logo) {
    display: block;
    margin: 0.45rem 0;
    color: #38516f;
    font-size: 0.875rem;
    text-decoration: none;
}

.marketing-site-footer a:not(.marketing-site-footer__logo):hover {
    color: var(--tblr-primary-dark);
}

.marketing-site-footer__bottom {
    margin-top: 1.25rem;
    padding-top: 1rem;
    border-top: 1px solid #edf1f5;
    color: #6a7b90;
    font-size: 0.8125rem;
}

.marketing-homepage-emphasis .hero-title {
    color: #082653;
    font-size: clamp(2.8rem, 5vw, 4.5rem);
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1.05;
}

.marketing-homepage-emphasis .hero-description {
    max-width: 56rem;
    color: #1c3d67;
    font-size: 1.3rem;
    font-weight: 600;
    line-height: 1.6;
}

.marketing-homepage-emphasis .section-title {
    color: #082653;
    font-size: clamp(2rem, 3vw, 2.75rem);
    font-weight: 800;
    letter-spacing: -0.025em;
    line-height: 1.15;
}

.marketing-homepage-emphasis .section-description {
    color: #294a70;
    font-size: 1.2rem;
    font-weight: 600;
    line-height: 1.55;
}

.marketing-homepage-emphasis section h3,
.marketing-homepage-emphasis .pricing-title {
    color: #082653;
    font-size: 1.3rem;
    font-weight: 800;
    line-height: 1.3;
}

.marketing-homepage-emphasis section p,
.marketing-homepage-emphasis .pricing-features {
    color: #294a70;
    font-size: 1.08rem;
    font-weight: 500;
    line-height: 1.65;
}

.marketing-homepage-emphasis .btn-lg {
    font-size: 1.08rem;
    font-weight: 700;
}

.homepage-audit-callout {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) 16.5rem;
    gap: 1rem;
    align-items: center;
    margin-top: 1.25rem;
    padding: 1rem 1.15rem;
    border: 1px solid #cbdde8;
    border-left: 0.3rem solid #0b8c8b;
    border-radius: 0.8rem;
    color: #082653;
    background: linear-gradient(110deg, #f5f9fc 0%, #effaf8 100%);
    box-shadow: 0 0.45rem 1.2rem rgba(6, 41, 86, 0.07);
}

.homepage-audit-callout__icon {
    display: grid;
    place-items: center;
    width: 3.4rem;
    height: 3.4rem;
    border: 1px solid #c4e5e4;
    border-radius: 50%;
    color: #078b8d;
    background: #e8f7f6;
}

.homepage-audit-callout__icon svg,
.homepage-audit-callout__cta svg {
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.homepage-audit-callout__icon svg {
    width: 2.05rem;
    height: 2.05rem;
}

.homepage-audit-callout__eyebrow {
    margin-bottom: 0.2rem;
    color: #087f83;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.homepage-audit-callout h2 {
    margin: 0;
    color: #082653;
    font-size: clamp(1.15rem, 1.65vw, 1.45rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.homepage-audit-callout p {
    margin: 0.3rem 0 0;
    color: #38516f;
    font-size: 0.92rem;
    font-weight: 500;
    line-height: 1.45;
}

.homepage-audit-callout__cta {
    display: inline-flex;
    gap: 0.65rem;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-width: 0;
    padding: 0.72rem 0.9rem;
    border: 0;
    color: #fff;
    background: #087f7c;
    font-size: 0.84rem;
    font-weight: 800;
    line-height: 1.3;
    text-align: center;
    white-space: normal;
}

.homepage-audit-callout__cta:hover {
    color: #fff;
    background: #066d6b;
}

.homepage-audit-callout__cta svg {
    flex: 0 0 auto;
    width: 1.5rem;
    height: 1.5rem;
}

@media (max-width: 991.98px) {
    .marketing-site-nav {
        align-items: stretch;
        gap: 0.25rem;
        padding: 0.75rem 0 0.25rem;
    }

    .marketing-site-nav .nav-link {
        padding: 0.65rem 0;
    }

    .marketing-site-nav__cta {
        margin: 0.5rem 0 0;
    }

    .marketing-site-nav__language {
        margin: 0.35rem 0;
    }

    .marketing-site-footer__grid {
        grid-template-columns: 2fr repeat(3, 1fr);
        gap: 1.5rem;
    }

    .homepage-audit-callout {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .homepage-audit-callout__cta {
        grid-column: 2;
        width: auto;
        justify-self: start;
    }
}

@media (max-width: 575.98px) {
    .marketing-homepage-emphasis .hero-title {
        font-size: 2.6rem;
    }

    .marketing-homepage-emphasis .hero-description {
        font-size: 1.12rem;
    }

    .marketing-homepage-emphasis .section-title {
        font-size: 2rem;
    }

    .marketing-site-footer__grid {
        grid-template-columns: 1fr 1fr;
    }

    .marketing-site-footer__grid > div:first-child {
        grid-column: 1 / -1;
    }

    .homepage-audit-callout {
        grid-template-columns: 1fr;
        padding: 1.25rem;
        text-align: center;
    }

    .homepage-audit-callout__icon {
        margin: 0 auto;
    }

    .homepage-audit-callout__cta {
        grid-column: 1;
        width: 100%;
        justify-self: stretch;
        text-align: center;
    }
}

.page-wrapper {
    background: #f8fafc;
}

.app-topnav {
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
    min-height: 4.75rem;
}

.app-topnav__brand {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
    margin-right: 0;
}

.app-topnav__nav .nav-link {
    color: #17233a;
    font-weight: 500;
    min-height: 4.75rem;
    display: flex;
    align-items: center;
    position: relative;
    padding-left: 1rem;
    padding-right: 1rem;
}

.app-topnav__nav .nav-link:hover {
    color: var(--tblr-primary-dark);
}

.app-topnav__nav .nav-link.active {
    color: #0f1f45;
    font-weight: 700;
}

.app-topnav__nav .nav-link.active::after {
    content: "";
    position: absolute;
    left: 0.75rem;
    right: 0.75rem;
    bottom: 0;
    height: 0.16rem;
    border-radius: 999px 999px 0 0;
    background: #0f1f45;
}

@media (max-width: 991.98px) {
    .app-topnav__nav .nav-link {
        min-height: auto;
    }

    .app-topnav__nav .nav-link.active::after {
        display: none;
    }
}

.app-page-hero {
    background: linear-gradient(135deg, #f8fbff 0%, #eef6f1 100%);
    border: 1px solid rgba(15, 23, 42, 0.06);
    border-radius: 1.25rem;
    padding: 2rem;
}

.app-page-hero__eyebrow {
    color: var(--tblr-primary);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.app-page-hero__title-link {
    color: inherit;
    text-decoration: none;
}

.app-page-hero__title-link:hover {
    color: var(--tblr-primary-dark);
    text-decoration: underline;
    text-underline-offset: 0.18em;
}

@media (max-width: 575.98px) {
    .app-page-hero {
        padding: 1.25rem;
    }
}

#product-table {
    margin-bottom: 2rem;
}

#product-table .tabulator {
    font-family: var(--tblr-font-sans-serif);
    font-size: 0.875rem;
    background-color: #fff;
    border-radius: 0.375rem;
    border: 1px solid #d0d7de;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

#product-table .tabulator-header {
    background-color: #f8f9fa;
    font-weight: 600;
}

#product-table .tabulator-row {
    border-bottom: 1px solid #e9ecef;
}

#product-table .tabulator-row:hover {
    background-color: #f1f3f5;
}

#product-table .tabulator-cell {
    padding: 0.5rem 0.75rem;
}


/* Migliora la visibilità delle righe già presenti */
.tabulator-row.product-exists {
    background-color: #fff3cd !important;
}

/* Pulsante allineato */
#save-btn {
    float: right;
}

.card.disabled,
.card.disabled:hover {
    pointer-events: none;
    opacity: 0.5;
    cursor: not-allowed;
}

.card .step-number {
    font-size: 0.9rem;
    font-weight: bold;
    color: #6c757d;
    margin-bottom: 0.5rem;
    display: block;
}

.help-disclosure {
    border: 1px solid rgba(15, 23, 42, 0.06);
    border-radius: 0.9rem;
    background: rgba(255, 255, 255, 0.72);
}

.help-disclosure summary {
    list-style: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.72rem 0.9rem;
    transition: background-color 0.18s ease;
}

.help-disclosure summary::-webkit-details-marker {
    display: none;
}

.help-disclosure summary:hover {
    background: rgba(82, 161, 171, 0.04);
}

.help-disclosure[open] {
    border-color: rgba(15, 23, 42, 0.08);
    background: linear-gradient(135deg, #fcfeff 0%, #f7fbff 100%);
    box-shadow: 0 0.5rem 1rem rgba(15, 23, 42, 0.03);
}

.help-disclosure__title {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    color: var(--tblr-body-color);
    min-width: 0;
}

.help-disclosure__heading {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    flex-wrap: wrap;
    min-width: 0;
}

.help-disclosure__icon {
    width: 1.55rem;
    height: 1.55rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(82, 161, 171, 0.08);
    border: 1px solid rgba(82, 161, 171, 0.12);
    color: var(--tblr-primary);
    font-size: 0.78rem;
    font-weight: 700;
    flex: 0 0 auto;
}

.help-disclosure__label {
    color: var(--tblr-primary-dark);
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    line-height: 1.2;
}

.help-disclosure__headline {
    font-size: 0.88rem;
    font-weight: 500;
    line-height: 1.2;
    color: #536173;
}

.help-disclosure__chevron {
    width: 1.6rem;
    height: 1.6rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--tblr-secondary);
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(15, 23, 42, 0.06);
    transition: transform 0.2s ease, background-color 0.18s ease, color 0.18s ease;
    flex: 0 0 auto;
}

.help-disclosure[open] .help-disclosure__chevron {
    transform: rotate(180deg);
}

.help-disclosure summary:hover .help-disclosure__chevron {
    background: #fff;
    color: var(--tblr-primary-dark);
}

.help-disclosure__content {
    border-top: 1px solid rgba(15, 23, 42, 0.08);
    padding: 0.9rem 1rem 1rem;
}

.help-disclosure__grid {
    display: grid;
    gap: 0.85rem;
}

.help-disclosure__grid--three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.help-disclosure__grid--two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.help-disclosure__item {
    min-width: 0;
    border: 1px solid rgba(15, 23, 42, 0.07);
    border-radius: 0.9rem;
    background: rgba(255, 255, 255, 0.72);
    padding: 0.85rem 0.95rem;
}

.help-disclosure__item-title {
    font-size: 0.94rem;
    font-weight: 700;
    margin-bottom: 0.32rem;
    color: var(--tblr-body-color);
}

.help-disclosure__item-text {
    color: var(--tblr-secondary);
    font-size: 0.82rem;
    line-height: 1.45;
}

.help-disclosure__mini-list {
    display: grid;
    gap: 0.45rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.help-disclosure__mini-list li {
    display: flex;
    gap: 0.55rem;
    align-items: flex-start;
    color: var(--tblr-secondary);
    font-size: 0.82rem;
    line-height: 1.45;
}

.help-disclosure__mini-list li::before {
    content: "";
    width: 0.45rem;
    height: 0.45rem;
    margin-top: 0.38rem;
    border-radius: 999px;
    background: var(--tblr-primary);
    flex: 0 0 auto;
    opacity: 0.75;
}

.help-disclosure__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    margin-top: 0.8rem;
}

@media (max-width: 991.98px) {
    .help-disclosure__grid--three,
    .help-disclosure__grid--two {
        grid-template-columns: 1fr;
    }
}
