/* ==========================================================================
   LB-THEME v2 — OSItalia landing-business design system for /rivenditori/
   Tokens copied verbatim from landing-business/index.php :root
   Precise, professional alignment. Loaded AFTER style.css/color.css.
   ========================================================================== */

:root {
    /* == exact landing-business tokens == */
    --brand: #0B4B4A;
    --brand-d: #063D3B;
    --brand-l: #1a6b69;
    --accent: #F4B21A;
    --accent-d: #d9980f;
    --accent-o: #F79E2B;
    --cream: #FFF1D0;
    --dark: #0A3332;
    --darker: #063D3B;
    --mid: #0B4B4A;
    --white: #FFFFFF;
    --light-bg: #F6F7F8;
    --light-bg2: #EEF1F1;
    --gray: #6B7E7D;
    --gray-l: #98A7A5;
    --border: #E2E8E8;
    --font: Roboto, Arial, sans-serif;
    --tr: 0.35s cubic-bezier(.4, 0, .2, 1);
    --shadow-sm: 0 2px 12px rgba(10, 51, 50, .06);
    --shadow-md: 0 8px 32px rgba(10, 51, 50, .10);
    --shadow-lg: 0 20px 60px rgba(10, 51, 50, .14);

    /* compat aliases (Phase 1 classes still referenced) */
    --lb-teal: var(--brand);
    --lb-amber: var(--accent);
}

/* ==========================================================================
   1. BASE / TYPOGRAPHY — Roboto 900 editorial scale
   ========================================================================== */

html { scroll-behavior: smooth; }

body {
    font-family: var(--font) !important;
    background: var(--white) !important;
    color: var(--dark);
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
    font-family: var(--font) !important;
    color: var(--dark);
    font-weight: 900;
    letter-spacing: -.03em;
    line-height: 1.1;
}

/* landing-business headline scale */
.hero-title, h1.hero-title {
    font-size: clamp(32px, 5.5vw, 64px) !important;
    font-weight: 900 !important;
    line-height: 1.07 !important;
    letter-spacing: -.035em !important;
    color: var(--dark) !important;
    margin-bottom: 22px;
}

h1.hero-title em, h2.ctah-h em { font-style: normal; }
h1.hero-title em.ac, .hero-title .lb-accent-amber { color: var(--accent) !important; }
h1.hero-title em:not(.ac), .hero-title .lb-accent { color: var(--brand-l) !important; }

section > .container > h2,
section h2.section-h {
    font-size: clamp(28px, 4vw, 50px) !important;
    font-weight: 900 !important;
    letter-spacing: -.03em !important;
    color: var(--dark) !important;
    margin-bottom: 16px;
}

h3 { font-size: clamp(18px, 2vw, 24px) !important; font-weight: 700 !important; letter-spacing: -.02em; }
h4 { font-size: 17px !important; font-weight: 700 !important; }

p { color: var(--gray); line-height: 1.7; font-size: 16px; }

a { color: var(--brand); transition: color .25s; }
a:hover { color: var(--accent-d); }

/* eyebrow label — .sl pattern */
.sl, .lb-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--brand);
    margin-bottom: 14px;
    font-family: var(--font);
}

/* pill badge — .h-badge pattern */
.h-badge, .lb-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(11, 75, 74, .07);
    border: 1px solid rgba(11, 75, 74, .14);
    border-radius: 50px;
    padding: 6px 16px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--brand);
    margin-bottom: 28px;
    font-family: var(--font);
}

.h-badge::before, .lb-badge::before {
    content: '';
    width: 7px; height: 7px;
    border-radius: 50%;
    background: var(--accent);
    flex-shrink: 0;
}

/* section lead paragraph — .h-sub pattern */
.h-sub, p.section-lead {
    font-size: clamp(17px, 2.2vw, 22px) !important;
    font-weight: 400 !important;
    color: var(--gray) !important;
    line-height: 1.7 !important;
    max-width: 700px;
    margin: 0 auto 44px !important;
    letter-spacing: -.01em;
}

/* compat: old .lb-num now renders as .sl-style eyebrow (amber dot) */
.lb-num {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--brand);
    margin-bottom: 14px;
    font-family: var(--font);
    font-size: 11px;
}
.lb-num::before {
    content: '';
    width: 7px; height: 7px;
    border-radius: 50%;
    background: var(--accent);
}

/* ==========================================================================
   2. SECTION SHELLS — legacy neutralized
   ========================================================================== */

section.color-bg,
section.gray-section,
section.gray-bg {
    background: var(--white) !important;
    border: none !important;
    padding: 96px 0;
}

/* alternating light band */
section#sec3, section.light-bg { background: var(--light-bg) !important; }

/* legacy .color-bg-text assumed dark teal bg; sections are now white — fix text colors */
.color-bg-text h2, .color-bg-text h3 { color: var(--brand, #0B4B4A) !important; }
.color-bg-text h2 {
    font-size: clamp(32px, 4vw, 52px) !important;
    font-weight: 900 !important;
    line-height: 1.1 !important;
    padding-bottom: 18px !important;
}
.color-bg-text p { color: var(--gray, #5B6B69) !important; font-size: 16px !important; line-height: 1.7 !important; }

/* teal band (was inline #0d3941) */
section.lb-teal-band {
    background: linear-gradient(160deg, var(--darker) 0%, var(--brand) 100%) !important;
    padding: 96px 0;
}
section.lb-teal-band h2, section.lb-teal-band h3 { color: var(--white) !important; }
section.lb-teal-band p { color: rgba(255, 255, 255, .78); }
/* but never inside partner cards — they're white cards; text must stay dark */
section.lb-teal-band .lb-partner-desc,
section.lb-teal-band .lb-partner-region,
section.lb-teal-band .lb-partner-name p { color: var(--gray, #5B6B69); }

section.gradient-bg {
    background: linear-gradient(160deg, var(--darker) 0%, var(--brand) 100%) !important;
    padding: 96px 0;
}
section.gradient-bg h2, section.gradient-bg h3 { color: var(--white) !important; }
section.gradient-bg p { color: rgba(255, 255, 255, .78); }

/* hero — was parallax 600px */
section.parallax-section, section.lb-hero {
    background: var(--white) !important;
    height: auto !important;
    min-height: 0 !important;
    padding: 120px 0 100px !important;
    position: relative;
    overflow: hidden;
}
section.parallax-section::before, section.lb-hero::before {
    content: '';
    position: absolute;
    right: -160px; top: 50%;
    transform: translateY(-50%);
    width: 620px; height: 620px;
    border-radius: 50%;
    border: 1.5px solid var(--border);
    pointer-events: none;
}
section.parallax-section::after, section.lb-hero::after {
    content: '';
    position: absolute;
    right: -90px; top: 50%;
    transform: translateY(-50%);
    width: 470px; height: 470px;
    border-radius: 50%;
    border: 1.5px dashed rgba(244, 178, 26, .4);
    pointer-events: none;
}

/* ==========================================================================
   3. BUTTONS — landing-business .btn system (6px radius, arrows)
   ========================================================================== */

.btn, .btn-lb,
a.btn, button.btn,
.btn.color-bg, .btn.color2-bg, .btn-bg, .big-btn, .flat-btn {
    display: inline-flex !important;
    align-items: center;
    gap: 8px;
    padding: 13px 26px !important;
    border-radius: 6px !important;
    font-weight: 600 !important;
    font-size: 15px !important;
    font-family: var(--font) !important;
    cursor: pointer;
    border: none !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
    transition: var(--tr) !important;
    line-height: 1.2;
    text-decoration: none;
}

/* primary — amber on dark text (landing-business .btn-p) */
.btn, .btn-lb, .btn-p,
.btn.color-bg, .btn.color2-bg, .btn-bg, .big-btn, .flat-btn {
    background: var(--accent) !important;
    color: var(--dark) !important;
}
.btn:hover, .btn-lb:hover, .btn.color-bg:hover, .btn.color2-bg:hover,
.btn-bg:hover, .big-btn:hover, .flat-btn:hover {
    background: var(--accent-d) !important;
    color: var(--dark) !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(244, 178, 26, .4);
}

/* secondary — brand teal */
.btn-brand, .btn-lb-brand {
    background: var(--brand) !important;
    color: var(--white) !important;
}
.btn-brand:hover, .btn-lb-brand:hover {
    background: var(--brand-d) !important;
    color: var(--white) !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(11, 75, 74, .3);
}

/* outline */
.btn-o, .btn-lb-outline {
    background: transparent !important;
    color: var(--brand) !important;
    border: 1.5px solid var(--brand) !important;
}
.btn-o:hover, .btn-lb-outline:hover {
    background: var(--brand) !important;
    color: var(--white) !important;
    transform: translateY(-2px);
}

/* on dark bands buttons invert to white-outline */
.lb-teal-band .btn-o, .gradient-bg .btn-o,
.lb-teal-band .btn-lb-outline, .gradient-bg .btn-lb-outline {
    background: transparent !important;
    color: var(--white) !important;
    border-color: rgba(255, 255, 255, .6) !important;
}
.lb-teal-band .btn-o:hover, .gradient-bg .btn-o:hover {
    background: var(--white) !important;
    color: var(--brand) !important;
}

/* ==========================================================================
   4. CARDS — flat white, hairline border, shadow scale
   NOTE: legacy listing selectors (.listing-item etc.) removed — they boxed the
   grid wrapper that sits UNDER .lb-partner-card, creating a ghost card behind it.
   ========================================================================== */

.lb-card {
    background: var(--white) !important;
    backdrop-filter: none;
    border: 1px solid var(--border) !important;
    border-radius: 8px !important;
    box-shadow: var(--shadow-sm) !important;
    transition: var(--tr);
    overflow: hidden;
}

.lb-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md) !important;
    border-color: var(--border) !important;
}

.listing-item-content { padding: 20px; }
.listing-item-content h3, .geodir-category-listing h3 {
    font-size: 18px !important;
    font-weight: 700 !important;
    letter-spacing: -.01em;
    color: var(--dark) !important;
    margin-bottom: 8px;
}
.listing-item-content h3 a, .geodir-category-listing h3 a { color: inherit !important; }
.listing-item-content h3 a:hover, .geodir-category-listing h3 a:hover { color: var(--brand-l) !important; }

.listing-item-content p, .geodir-category-listing p {
    font-size: 14px; color: var(--gray); line-height: 1.6;
}

.geodir-category-listing figure { border-radius: 8px 8px 0 0 !important; }

/* card meta tags */
.geodir-category-listing .bookmark-btn,
.listing-item .bookmark-btn { color: var(--gray-l); }

/* gold/platinum partner badges */
.gold-tag, .platinum-tag {
    font-size: 10px; font-weight: 700;
    letter-spacing: .1em; text-transform: uppercase;
    padding: 4px 10px; border-radius: 50px;
    display: inline-block;
}
.gold-tag { background: rgba(244, 178, 26, .15); color: var(--accent-d); }
.platinum-tag { background: rgba(11, 75, 74, .08); color: var(--brand); }

/* ==========================================================================
   5. NAVIGATION — frosted header, 14px/500 links
   ========================================================================== */

.main-header, header.main-header, #wrapper > header {
    background: rgba(255, 255, 255, .96) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border) !important;
    box-shadow: none;
}

.main-header nav a, .main-header ul li a {
    color: var(--gray) !important;
    font-weight: 500 !important;
    font-size: 14px !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
    transition: color .25s;
}
.main-header nav a:hover, .main-header ul li a:hover,
.main-header nav a.act-link { color: var(--brand) !important; }

.main-header .logo-holder img { max-height: 40px; }

/* header CTA — small btn */
.main-header a.add-list {
    background: var(--accent) !important;
    color: var(--dark) !important;
    border-radius: 6px !important;
    padding: 10px 20px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    box-shadow: none;
    transition: var(--tr);
}
.main-header a.add-list:hover {
    background: var(--accent-d) !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(244, 178, 26, .4);
}

.nav-button-wrap span { background: var(--brand) !important; }

/* header search input */
.header-search-input-item input {
    background: var(--light-bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 14px;
    font-family: var(--font);
    color: var(--dark);
}
.header-search-input-item input:focus {
    outline: none;
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(11, 75, 74, .08);
}
.header-search-button {
    background: var(--brand) !important;
    color: var(--white) !important;
    border-radius: 8px !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    padding: 10px 18px !important;
}

/* ==========================================================================
   6. FORMS — .finp/.fsel pattern
   ========================================================================== */

input[type="text"], input[type="email"], input[type="tel"],
input[type="url"], textarea, select,
.form-control, .custom-form input, .custom-form textarea {
    width: 100%;
    padding: 14px 16px !important;
    background: rgba(255, 255, 255, .85) !important;
    border: 1px solid var(--border) !important;
    border-radius: 8px !important;
    color: var(--dark) !important;
    font-family: var(--font) !important;
    font-size: 15px !important;
    transition: var(--tr);
    outline: none;
    box-shadow: none;
}

input::placeholder, textarea::placeholder { color: var(--gray-l); }

input:focus, textarea:focus, select:focus, .form-control:focus {
    border-color: var(--brand) !important;
    background: var(--white) !important;
    box-shadow: 0 0 0 3px rgba(11, 75, 74, .08) !important;
    outline: none;
}

label { color: var(--dark) !important; font-weight: 500; font-size: 14px; }

/* selects (chosen plugin) */
.chosen-container-single .chosen-single,
.chosen-select {
    background: rgba(255, 255, 255, .85) !important;
    border: 1px solid var(--border) !important;
    border-radius: 8px !important;
    color: var(--dark) !important;
    font-family: var(--font) !important;
    box-shadow: none !important;
    padding: 10px 14px;
}
.chosen-container-single.chosen-with-drop .chosen-single { border-color: var(--brand); }
.chosen-container .chosen-drop {
    border: 1px solid var(--border);
    border-radius: 8px;
    box-shadow: var(--shadow-md);
}
.chosen-container .chosen-results li.highlighted { background: var(--brand) !important; }

/* search widget box */
.listsearch-header-widget, .main-search-input {
    background: var(--white) !important;
    border: 1px solid var(--border) !important;
    border-radius: 12px !important;
    box-shadow: var(--shadow-md) !important;
}

/* ==========================================================================
   7. MAP — conservative (iframe-embedded elsewhere)
   ========================================================================== */

#map-main, .map-container {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border);
}
.cluster-visible { background-color: rgba(11, 75, 74, .88) !important; }

/* map popup cards */
.map-popup-wrap .map-popup {
    background: var(--white);
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
}
.infoBox-close { color: var(--gray); }

/* ==========================================================================
   8. FOOTER — dark brand grid style
   ========================================================================== */

footer.lb-footer {
    background: #063d3b !important;
    color: rgba(255, 255, 255, .6);
    padding: 72px 0 0 !important;
    border-top: none !important;
    /* sit above the fixed map column on split-layout pages (rivenditori_software.php) */
    position: relative;
    z-index: 20;
}

footer.lb-footer h3, footer.lb-footer h4, .footer h3, .footer h4,
.lb-footer-title {
    color: var(--white) !important;
    font-size: clamp(20px, 3vw, 28px) !important;
    font-weight: 900 !important;
    letter-spacing: -.02em !important;
    margin-bottom: 24px !important;
}

footer.lb-footer a, .footer a { color: rgba(255, 255, 255, .6); }
footer.lb-footer a:hover, .footer a:hover { color: var(--accent) !important; }

/* footer form fields — dark variant (scoped to real footer only) */
footer.lb-footer .form-control {
    background: rgba(255, 255, 255, .06) !important;
    border-color: rgba(255, 255, 255, .16) !important;
    color: var(--white) !important;
}
footer.lb-footer .form-control::placeholder { color: rgba(255, 255, 255, .4); }
footer.lb-footer .form-control:focus {
    border-color: var(--accent) !important;
    box-shadow: 0 0 0 3px rgba(244, 178, 26, .12) !important;
    background: rgba(255, 255, 255, .08) !important;
}

footer.lb-footer .big-btn, footer.lb-footer button.btn {
    background: var(--accent) !important;
    color: var(--dark) !important;
    border-radius: 6px !important;
}
footer.lb-footer .big-btn:hover {
    background: var(--accent-d) !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(244, 178, 26, .4);
}

/* ==========================================================================
   9. MISC / UTILITIES
   ========================================================================== */

.breadcrumbs, .breadcrumb { color: var(--gray); font-size: 13px; }
.breadcrumbs a, .breadcrumb a { color: var(--brand); }

::selection { background: var(--accent); color: var(--dark); }

/* loader */
.loader-wrap { background: var(--white); }
.loader-wrap .pin, .loader-wrap .pulse { border-color: var(--brand); }

/* pagination / list widgets */
.list-main-warp::-webkit-scrollbar { width: 6px; }
.list-main-warp::-webkit-scrollbar-thumb { background: rgba(10, 51, 50, .2); border-radius: 6px; }

/* stars */
.card-popup-raining i, .listing-rating i { color: var(--accent) !important; }

/* section divider accent bar (ctabox pattern) */
.lb-ctabox {
    position: relative;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    overflow: hidden;
}
.lb-ctabox::before {
    content: '';
    position: absolute; top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--brand), var(--accent), var(--brand));
}

/* scroll reveal (unchanged behavior) */
@media (prefers-reduced-motion: no-preference) {
    .lb-reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s cubic-bezier(.22, .61, .36, 1); }
    .lb-reveal.lb-visible { opacity: 1; transform: none; }
}

/* ==========================================================================
   10. RESPONSIVE
   ========================================================================== */

@media (max-width: 1024px) {
    section.color-bg, section.gray-section, section.gray-bg { padding: 72px 0; }
}

@media (max-width: 768px) {
    section.parallax-section, section.lb-hero { padding: 80px 0 64px !important; }
    section.parallax-section::before, section.parallax-section::after,
    section.lb-hero::before, section.lb-hero::after { display: none; }
    .main-search-input { width: 100% !important; margin-left: 0 !important; }
}

/* ==========================================================================
   11. LEGACY INLINE-STYLE REPLACEMENTS (compat)
   ========================================================================== */

section.lb-teal-band h2[style*="color: #fff"] { color: var(--white) !important; }

/* orbit animation (conversion band, grazie.php) */
@keyframes lbOrbit { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
.lb-orbit-a { transform-origin: 130px 130px; animation: lbOrbit 28s linear infinite; }
.lb-orbit-b { transform-origin: 130px 130px; animation: lbOrbit 40s linear infinite reverse; }
@media (prefers-reduced-motion: reduce) { .lb-orbit-a, .lb-orbit-b { animation: none; } }

/* em.ac inside section h2s (landing-business pattern) */
section h2 em { font-style: normal; }
section h2 em.ac, .ctah-h em.ac { color: var(--accent); }

/* ==========================================================================
   12. NAV FONT — exact landing-business .nv-links a spec
   /* .nv-links a{font-size:14px;font-weight:500;color:var(--gray);transition:color .25s} */
   ========================================================================== */

.main-header .nav-holder nav li a,
.main-header nav li a,
.nav-holder nav li a,
.dark-header .nav-holder nav li a {
    font-family: var(--font) !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    font-style: normal !important;
    color: var(--gray) !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
    transition: color .25s !important;
}

.nav-holder nav li a:hover,
.nav-holder nav li a.act-link,
.dark-header .nav-holder nav li a:hover {
    color: var(--brand) !important;
}

/* active underline → thin brand bar instead of legacy 4px */
.nav-holder nav li a:before {
    height: 2px !important;
    border-radius: 2px !important;
    background: var(--accent) !important;
    bottom: -12px !important;
}

/* dropdown panels */
.nav-holder nav li ul li a {
    font-size: 14px !important;
    font-weight: 500 !important;
    color: var(--gray) !important;
}
.nav-holder nav li ul li a:hover { color: var(--brand) !important; background: var(--light-bg); }

/* remove legacy dropdown carets spin */
.nav-holder nav li a i { color: inherit !important; }

/* ==========================================================================
   15. NV-STYLE DROPDOWN MENU (aligned with ositalia.com/ecosistema-erp/)
   ========================================================================== */

/* hide legacy hover-slide underline system on nv links */
.nav-holder nav ul.nv-links li a:before { display: none !important; }

.nav-holder nav ul.nv-links {
    display: flex;
    align-items: center;
    gap: 18px;
    list-style: none;
    float: none !important;
}
.nav-holder nav ul.nv-links > li {
    position: relative;
    float: none !important;
    margin: 0 !important;
}
.nav-holder nav ul.nv-links > li > a {
    font-size: 13.5px !important;
    font-weight: 500 !important;
    color: var(--gray, #5B6B69) !important;
    padding: 8px 2px !important;
    background: none !important;
    white-space: nowrap;
    transition: color .25s ease;
}
.nav-holder nav ul.nv-links > li > a:hover,
.nav-holder nav ul.nv-links > li > a.act-link { color: var(--brand, #0B4B4A) !important; }
.nav-holder nav ul.nv-links > li > a .nv-caret {
    font-size: 9px !important;
    margin-left: 4px;
    opacity: .55;
    transition: transform .25s ease, opacity .25s ease;
}
.nav-holder nav ul.nv-links > li:hover > a .nv-caret,
.nav-holder nav ul.nv-links > li:focus-within > a .nv-caret {
    transform: rotate(180deg);
    opacity: 1;
}

/* frosted dropdown panel */
.nav-holder nav ul.nv-links li ul.nv-dropdown-menu {
    position: absolute !important;
    top: 100% !important;
    left: 0 !important;
    min-width: 220px;
    background: #FFFFFF;
    border: 1px solid rgba(11, 75, 74, .08);
    border-radius: 12px;
    box-shadow: 0 12px 40px rgba(10, 51, 50, .15);
    padding: 8px;
    list-style: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity .25s ease, transform .25s ease, visibility .25s;
    z-index: 1001;
    display: block !important;   /* kill legacy slideToggle inline display */
}
.nav-holder nav ul.nv-links li:hover > ul.nv-dropdown-menu,
.nav-holder nav ul.nv-links li:focus-within > ul.nv-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.nav-holder nav ul.nv-links li ul.nv-dropdown-menu li {
    float: none !important;
    margin: 0 !important;
    width: 100% !important;
}
.nav-holder nav ul.nv-links li ul.nv-dropdown-menu li a {
    display: block;
    padding: 9px 14px !important;
    font-size: 13.5px !important;
    font-weight: 400 !important;
    color: var(--gray, #5B6B69) !important;
    border-radius: 8px;
    background: none !important;
    white-space: nowrap;
    transition: background .2s ease, color .2s ease;
}
.nav-holder nav ul.nv-links li ul.nv-dropdown-menu li a:hover {
    background: rgba(11, 75, 74, .06) !important;
    color: var(--brand, #0B4B4A) !important;
}

/* Re-enable compact header search at 1324px and below (legacy rule hides it —
   ours is compact enough to fit) */
@media (max-width: 1324px) {
    .vis-header-search {
        display: block !important;
        position: static !important;
        box-shadow: none !important;
        border-radius: 0 !important;
    }
}
@media (max-width: 1080px) {
    .header-search.vis-header-search { display: none !important; }  /* below nav breakpoint: hide, mobile menu takes over */
}

/* ==========================================================================
   16. HEADER SEARCH — ecosistema-erp look/feel
   ========================================================================== */

.header-search.vis-header-search form {
    display: flex;
    align-items: center;
    gap: 0;
    box-shadow: 0 4px 18px rgba(10, 51, 50, .08);
    border-radius: 10px;
}
.header-search.vis-header-search .header-search-input-item {
    border: none !important;
    background: transparent !important;
    padding: 0 !important;
}
.header-search.vis-header-search .header-search-input-item input {
    height: 38px;
    line-height: 38px;
    box-sizing: border-box;
    padding: 0 12px !important;
    border: 1px solid var(--border, #E2E8E8) !important;
    border-right: none !important;
    border-radius: 10px 0 0 10px !important;
    background: #FFFFFF !important;
    font-family: Roboto, Arial, sans-serif;
    font-size: 12.5px !important;
    color: var(--ink, #0A3332) !important;
    box-shadow: none !important;
    outline: none;
    width: 220px;              /* placeholder fits without truncation */
    transition: border-color .2s ease, box-shadow .2s ease;
}
.header-search.vis-header-search .header-search-input-item input:focus {
    border-color: var(--brand, #0B4B4A) !important;
    box-shadow: 0 0 0 3px rgba(11, 75, 74, .12) !important;
    border-radius: 10px 0 0 10px !important;
}
.header-search.vis-header-search .header-search-input-item input::placeholder {
    color: #98A7A5;
    font-size: 12.5px;
}
.header-search.vis-header-search .header-search-button {
    height: 38px;
    line-height: 38px;
    box-sizing: border-box;
    padding: 0 16px !important;
    border: 1px solid var(--brand, #0B4B4A) !important;
    border-radius: 0 10px 10px 0 !important;
    background: var(--brand, #0B4B4A) !important;
    color: #FFFFFF !important;
    font-family: Roboto, Arial, sans-serif;
    font-size: 12.5px !important;
    font-weight: 500 !important;
    letter-spacing: .02em;
    cursor: pointer;
    transition: background .2s ease;
}
.header-search.vis-header-search .header-search-button:hover {
    background: #063d3b !important;
}

/* ==========================================================================
   17. PARTNER CAROUSEL CARDS (logo-only, flat white)
   ========================================================================== */

.lb-partner-card {
    position: relative;
    background: #FFFFFF;
    border: 1px solid var(--border, #E2E8E8);
    border-radius: 12px;
    padding: 14px 14px 12px;
    margin: 12px 12px 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: box-shadow .25s ease, transform .25s ease, border-color .25s ease;
    height: calc(100% - 32px);
    box-sizing: border-box;
    overflow: hidden;
}
.lb-partner-card::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 5px;
}
.lb-partner-card.tier-gold::before { background: linear-gradient(90deg, #F4B21A, #E09A00); }
.lb-partner-card.tier-platinum::before { background: linear-gradient(90deg, #0B4B4A, #14716E); }
.lb-partner-card.tier-software::before { background: linear-gradient(90deg, #D7E2E1, #EDF2F1); }
.lb-partner-card:hover {
    border-color: rgba(11, 75, 74, .22);
    box-shadow: 0 16px 44px rgba(10, 51, 50, .14);
    transform: translateY(-3px);
}
.lb-partner-card.tier-gold:hover {
    border-color: rgba(244, 178, 26, .55);
    box-shadow: 0 16px 44px rgba(244, 178, 26, .16);
}
.lb-partner-top {
    width: 100%;
    display: flex;
    justify-content: flex-start;
    min-height: 22px;
    margin: 2px 0 8px;
}
.lb-tier-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-family: Roboto, Arial, sans-serif;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 999px;
}
.lb-tier-chip i { font-size: 11px; }
.lb-tier-chip.gold { background: linear-gradient(135deg, #F4B21A, #E09A00); color: #FFFFFF; box-shadow: 0 2px 8px rgba(244, 178, 26, .35); }
.lb-tier-chip.platinum { background: linear-gradient(135deg, #0B4B4A, #14716E); color: #FFFFFF; box-shadow: 0 2px 8px rgba(11, 75, 74, .30); }
.lb-tier-chip.software { background: rgba(11, 75, 74, .08); color: var(--brand, #0B4B4A); }

.lb-partner-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 58px;
    margin: 2px 0 8px;
    background: #F8FAFA;
    border: 1px solid #EDF2F1;
    border-radius: 8px;
    padding: 7px 12px;
    box-sizing: border-box;
}
.lb-partner-logo img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    min-height: 32px;
    object-fit: contain;
    filter: grayscale(35%);
    transition: filter .25s ease;
}
.lb-partner-card:hover .lb-partner-logo img { filter: grayscale(0); }

.lb-partner-name {
    font-family: Roboto, Arial, sans-serif;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.3;
    margin: 0 0 5px;
}
.lb-partner-name a { color: var(--brand, #0B4B4A) !important; text-decoration: none; }
.lb-partner-name a:hover { text-decoration: underline; }

.lb-partner-desc {
    font-family: Roboto, Arial, sans-serif;
    font-size: 12.5px;
    line-height: 1.5;
    color: var(--gray, #5B6B69);
    margin: 0 0 10px;
    min-height: calc(6 * 1.5em); /* line-based: equal rows, no pixel-budget hiding at smaller widths */
    padding: 0 !important; /* kill legacy p padding from style.css — was adding a phantom partial 4th line */
    display: -webkit-box !important;
    -webkit-line-clamp: 6;
    line-clamp: 6;
    -webkit-box-orient: vertical !important;
    overflow: hidden;
}

.lb-partner-meta {
    width: 100%;
    background: #F8FAFA;
    border: 1px solid #EDF2F1;
    border-radius: 8px;
    padding: 8px 12px;
    margin: 0 0 10px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
}
.lb-partner-meta:empty { display: none; }

.lb-partner-region {
    font-family: Roboto, Arial, sans-serif;
    font-size: 12px;
    color: #6B7E7D;
    margin: 0;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    justify-content: center;
    text-align: center;
    line-height: 1.4;
}
.lb-partner-region span { overflow-wrap: anywhere; }
.lb-partner-region i { color: var(--brand, #0B4B4A); opacity: .7; font-size: 12px; margin-top: 2px; flex-shrink: 0; }
.lb-partner-region a { color: inherit; text-decoration: none; }
.lb-partner-region a:hover { color: var(--brand, #0B4B4A); }

.lb-partner-link {
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    font-family: Roboto, Arial, sans-serif;
    font-size: 12.5px;
    font-weight: 600;
    color: #FFFFFF !important;
    text-decoration: none;
    padding: 8px 18px;
    background: var(--brand, #0B4B4A);
    border: 1px solid var(--brand, #0B4B4A);
    border-radius: 8px;
    transition: background .2s ease, color .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.lb-partner-card.tier-gold .lb-partner-link {
    background: linear-gradient(135deg, #F4B21A, #E09A00);
    border-color: #E09A00;
}
.lb-partner-link:hover {
    background: #14716E;
    color: #FFFFFF !important;
    border-color: #14716E;
    box-shadow: 0 6px 16px rgba(11, 75, 74, .25);
}
.lb-partner-card.tier-gold .lb-partner-link:hover {
    background: linear-gradient(135deg, #E0A312, #C98800);
    border-color: #C98800;
    box-shadow: 0 6px 16px rgba(244, 178, 26, .35);
}
.lb-partner-link i { margin-left: 4px; font-size: 12px; }

/* ==========================================================================
   18. UNIFIED FOOTER (ecosistema-erp style)
   ========================================================================== */

footer.lb-footer {
    background: #063d3b !important;
    padding: 72px 0 0;
    clear: both;
}
.lb-footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 60px;
    padding-bottom: 60px;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
    text-align: left;
}
.lb-footer-logo {
    height: 40px;
    width: auto;
    display: block;
}
.lb-footer-col-brand p {
    font-size: 14px;
    color: rgba(255, 255, 255, .55);
    line-height: 1.75;
    margin-top: 20px;
    max-width: 260px;
}
.lb-footer-col h4 {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--accent, #F4B21A);
    margin: 0 0 24px;
}
.lb-footer-col-brand { text-align: left; }
.lb-footer-col ul { align-items: flex-start; }
.lb-footer-col ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.lb-footer-col ul li a {
    font-size: 14px;
    text-align: left;
    color: rgba(255, 255, 255, .55);
    text-decoration: none;
    transition: color .25s ease;
}
.lb-footer-col ul li a:hover { color: #FFFFFF; }

.lb-footer-contact {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 14px;
}
.lb-footer-contact span:first-child { font-size: 14px; flex-shrink: 0; margin-top: 1px; opacity: .55; }
.lb-footer-contact span:not(:first-child),
.lb-footer-contact a {
    font-size: 14px;
    color: rgba(255, 255, 255, .6);
    line-height: 1.55;
    text-decoration: none;
}
.lb-footer-contact a:hover { color: #FFFFFF; }

.lb-footer-social { display: flex; gap: 12px; margin-top: 20px; }
.lb-footer-social a {
    border-radius: 8px;
    background: rgba(255, 255, 255, .08);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    color: rgba(255, 255, 255, .7);
    font-size: 16px;
    transition: background .25s ease, transform .25s ease, color .25s ease;
}
.lb-footer-social a:hover {
    background: rgba(255, 255, 255, .16);
    color: #FFFFFF;
    transform: translateY(-2px);
}

.lb-footer-bottom {
    padding: 24px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}
.lb-footer-bottom p { font-size: 13px; color: rgba(255, 255, 255, .35); margin: 0; }
.lb-footer-bottom-links { display: flex; gap: 24px; }
.lb-footer-bottom-links a {
    font-size: 13px;
    color: rgba(255, 255, 255, .35);
    text-decoration: none;
    transition: color .25s ease;
}
.lb-footer-bottom-links a:hover { color: rgba(255, 255, 255, .7); }

@media (max-width: 1024px) { .lb-footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; } }
@media (max-width: 768px) { .lb-footer-grid { grid-template-columns: 1fr; } }

/* ==========================================================================
   19. FORM CTA SECTION (light band above footer — was legacy <footer id="form">)
   ========================================================================== */

section.lb-form-cta {
    background: #F6F7F8 !important;   /* light gray, not dark */
    padding: 80px 0 88px !important;
    border-top: 1px solid var(--border, #E2E8E8);
}
section.lb-form-cta .list-single-main-item-title h3 {
    color: var(--brand, #0B4B4A) !important;
    font-size: clamp(26px, 3vw, 38px) !important;
    font-weight: 900 !important;
    line-height: 1.2 !important;
    letter-spacing: -.01em !important;
    margin-bottom: 32px !important;
}
section.lb-form-cta .form-control {
    background: #FFFFFF !important;
    border: 1px solid var(--border, #E2E8E8) !important;
    border-radius: 10px !important;
    color: var(--ink, #0A3332) !important;
    font-family: Roboto, Arial, sans-serif;
    font-size: 14px !important;
    padding: 14px 16px !important;
    box-shadow: none !important;
    height: auto !important;
}
section.lb-form-cta .form-control:focus {
    border-color: var(--brand, #0B4B4A) !important;
    box-shadow: 0 0 0 3px rgba(11, 75, 74, .12) !important;
}
section.lb-form-cta .form-control::placeholder { color: #98A7A5 !important; }
section.lb-form-cta .contact-form > div { margin-bottom: 14px; }
section.lb-form-cta textarea.form-control { min-height: 130px; resize: vertical; }
section.lb-form-cta button.big-btn {
    background: var(--accent, #F4B21A) !important;
    color: var(--dark, #0A3332) !important;
    border-radius: 8px !important;
    font-family: Roboto, Arial, sans-serif;
    font-weight: 700 !important;
    font-size: 14px !important;
    padding: 14px 28px !important;
    margin-top: 8px !important;
    transition: background .2s ease, transform .2s ease, box-shadow .2s ease;
}
section.lb-form-cta button.big-btn:hover {
    background: var(--accent-d, #9A6E07) !important;
    color: #FFFFFF !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(244, 178, 26, .35);
}


/* cert block (ecosistema-erp parity) */
.lb-footer-cert { margin-top: 24px; }
.lb-cert-title {
    display: block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--accent, #F4B21A);
    margin-bottom: 12px;
}
.lb-cert-list { display: flex; gap: 12px; align-items: center; }

/* ==========================================================================
   20. CTA FORM (ported from landing-business #cta)
   ========================================================================== */

section.lb-form-cta#form {
    padding: 110px 0 !important;
    background: var(--light-bg, #F6F7F8) !important;
    position: relative;
    overflow: hidden;
}
section.lb-form-cta#form::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 80% 80% at 50% 50%, rgba(11, 75, 74, .04) 0%, transparent 70%);
    pointer-events: none;
}
.ctah { text-align: center; margin-bottom: 52px; }
.ctah h2 {
    font-size: clamp(28px, 4vw, 50px);
    font-weight: 900;
    letter-spacing: -.03em;
    color: var(--dark, #0A3332);
    margin: 0 0 16px;
}
.ctah p {
    font-size: 17px;
    color: var(--gray, #5B6B69);
    line-height: 1.65;
    max-width: 600px;
    margin: 0 auto;
}
.ctabox {
    max-width: 680px;
    margin: 0 auto;
    background: rgba(255, 255, 255, .8);
    border: 1px solid rgba(11, 75, 74, .08);
    border-radius: 24px;
    padding: 48px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 24px 64px rgba(10, 51, 50, .12);
}
.ctabox::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, #0B4B4A, #F4B21A, #0B4B4A);
}
.fgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.fg1 { grid-column: 1 / -1; }
.finp, .fsel, .ftxt {
    width: 100%;
    box-sizing: border-box;
    padding: 14px 16px;
    background: rgba(255, 255, 255, .85);
    border: 1px solid var(--border, #E2E8E8);
    border-radius: 8px;
    color: var(--dark, #0A3332);
    font-family: Roboto, Arial, sans-serif;
    font-size: 15px;
    transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
    outline: none;
    height: auto !important;
    box-shadow: none !important;
}
.finp::placeholder, .ftxt::placeholder { color: #98A7A5; }
.fsel option { background: #FFFFFF; color: var(--dark, #0A3332); }
.finp:focus, .fsel:focus, .ftxt:focus {
    border-color: var(--brand, #0B4B4A);
    background: #FFFFFF;
    box-shadow: 0 0 0 3px rgba(11, 75, 74, .08) !important;
}
.ftxt { resize: vertical; min-height: 100px; }
.fchk {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    cursor: pointer;
    font-size: 14px;
    color: var(--gray, #5B6B69);
    font-family: Roboto, Arial, sans-serif;
}
.fchk input { width: 16px; height: 16px; accent-color: var(--brand, #0B4B4A); cursor: pointer; }
.fchk a { color: var(--brand, #0B4B4A); font-weight: 600; }
.fsub {
    width: 100%;
    padding: 16px !important;
    font-size: 16px !important;
    border-radius: 8px !important;
    letter-spacing: .02em;
    background: var(--accent, #F4B21A) !important;
    color: var(--dark, #0A3332) !important;
    font-family: Roboto, Arial, sans-serif;
    font-weight: 700 !important;
    border: none !important;
    cursor: pointer;
    transition: background .2s ease, transform .2s ease, box-shadow .2s ease;
}
.fsub:hover {
    background: var(--accent-d, #9A6E07) !important;
    color: #FFFFFF !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(244, 178, 26, .4);
}
.ftrust { text-align: center; margin-top: 16px; font-size: 13px; color: #98A7A5; font-family: Roboto, Arial, sans-serif; }

/* form error states (from form-helpers) */
.finp.is-invalid, .fsel.is-invalid { border-color: #D64545; }
.ferr { color: #D64545; font-size: 12.5px; font-family: Roboto, Arial, sans-serif; }

@media (max-width: 768px) {
    .fgrid { grid-template-columns: 1fr; }
    .ctabox { padding: 28px 20px; }
}

/* ==========================================================================
   21. PARTNER PROGRAM #pprg (ported from landing-business)
   ========================================================================== */

#pprg {
    padding: 110px 0;
    background: var(--brand, #0B4B4A);
    position: relative;
    overflow: hidden;
    clear: both;
}
#pprg::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(244, 178, 26, .07) 0%, transparent 50%);
    pointer-events: none;
}
.pp-split { display: grid; grid-template-columns: 2fr 3fr; gap: 64px; align-items: center; }
.pp-left { display: flex; flex-direction: column; gap: 28px; }
.pp-left .sl { margin-bottom: 0; }
.pp-headline {
    font-size: clamp(32px, 4.5vw, 56px);
    font-weight: 900;
    letter-spacing: -.04em;
    color: #FFFFFF;
    line-height: 1.1;
    margin: 0;
    font-family: Roboto, Arial, sans-serif;
}
.pp-subhead {
    font-size: 16px;
    color: rgba(255, 255, 255, .6);
    line-height: 1.75;
    margin: 0;
    max-width: 360px;
    font-family: Roboto, Arial, sans-serif;
}
#pprg .btn-p {
    display: inline-block;
    width: fit-content;
    background: var(--accent, #F4B21A);
    color: var(--dark, #0A3332);
    font-family: Roboto, Arial, sans-serif;
    font-weight: 700;
    font-size: 15px;
    padding: 14px 28px;
    border-radius: 8px;
    text-decoration: none;
    transition: background .2s ease, transform .2s ease, box-shadow .2s ease;
}
#pprg .btn-p:hover {
    background: #9A6E07;
    color: #FFFFFF;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(244, 178, 26, .4);
}
.pp-right { display: flex; flex-direction: column; gap: 16px; }
.pstep {
    position: relative;
    background: rgba(255, 255, 255, .07);
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 18px;
    padding: 28px 32px;
    display: flex;
    align-items: flex-start;
    gap: 28px;
    transition: transform .3s ease, background .3s ease, border-color .3s ease, box-shadow .3s ease;
    overflow: hidden;
}
.pstep::before { content: ''; position: absolute; top: 0; left: 0; width: 4px; height: 100%; }
.pstep-1::before { background: linear-gradient(180deg, #f4b21a, #e8a010); }
.pstep-2::before { background: linear-gradient(180deg, #2dd4bf, #0d9488); }
.pstep-3::before { background: linear-gradient(180deg, #a78bfa, #7c3aed); }
.pstep:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, .11);
    border-color: rgba(255, 255, 255, .18);
    box-shadow: 0 20px 40px rgba(0, 0, 0, .25);
}
.pstep-num {
    font-size: clamp(40px, 5vw, 56px);
    font-weight: 900;
    letter-spacing: -.06em;
    line-height: 1;
    flex-shrink: 0;
    color: #FFFFFF;
    min-width: 72px;
    text-align: right;
    font-family: Roboto, Arial, sans-serif;
}
.pstep-1 .pstep-num { color: #f4b21a; opacity: .7; }
.pstep-2 .pstep-num { color: #2dd4bf; opacity: .7; }
.pstep-3 .pstep-num { color: #a78bfa; opacity: .7; }
.pstep-body { flex: 1; padding-top: 6px; }
.pstep-body h3 {
    font-size: 18px;
    font-weight: 800;
    color: #FFFFFF;
    letter-spacing: -.02em;
    margin: 0 0 8px;
    font-family: Roboto, Arial, sans-serif;
}
.pstep-body p {
    font-size: 14.5px;
    color: rgba(255, 255, 255, .55);
    line-height: 1.65;
    margin: 0;
    font-family: Roboto, Arial, sans-serif;
}
@media (max-width: 1024px) {
    .pp-split { grid-template-columns: 1fr; gap: 48px; }
}

/* ==========================================================================
   21. DETAIL PAGE (company.php) — scroll nav + compact map
   ========================================================================== */

/* ---- scroll-nav: white pill bar replacing legacy yellow strip ---- */
.lb-scroll-nav {
    background: #ffffff;
    border-bottom: 1px solid #E2E8E8;
    box-shadow: 0 4px 20px rgba(10,51,50,.06);
    padding: 14px 0;
}
.scroll-nav-wrapper.lb-scroll-nav .scroll-nav li a {
    color: #0B4B4A !important;
    font-size: 13.5px !important;
    font-weight: 500 !important;
    letter-spacing: .02em;
    padding: 9px 16px !important;
    border-radius: 999px !important;
    transition: background .2s ease, color .2s ease;
}
.scroll-nav-wrapper.lb-scroll-nav .scroll-nav li a:hover,
.scroll-nav-wrapper.lb-scroll-nav .scroll-nav li a.act-scrlink {
    background: rgba(11,75,74,.08) !important;
    color: #0B4B4A !important;
}
.scroll-nav-wrapper.lb-scroll-nav .scroll-nav li a.act-scrlink {
    font-weight: 700 !important;
}

/* ---- detail map: card-style like home (rounded, contained, shadow) ---- */
.map-container.fw-map.lb-detail-map {
    float: none;
    height: 560px !important;
    margin: 0 auto;
    max-width: none;
    width: 100%;
    border: none !important;
    border-radius: 0 !important;
    overflow: hidden;
    box-shadow: none !important;
    background: #F6F7F8;
}
@media (max-width: 768px) {
    .map-container.fw-map.lb-detail-map { height: 380px !important; }
}

/* ==========================================================================
   22. DETAIL PAGE — reseller hero band (Phase 2)
   ========================================================================== */
.lb-reseller-hero {
    background: #ffffff;
    border-bottom: 1px solid #E2E8E8;
    padding: 44px 0 40px;
}
.lb-rh-inner {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 32px;
    display: flex;
    align-items: center;
    gap: 36px;
}
.lb-rh-logo {
    flex: 0 0 132px;
    height: 132px;
    background: #ffffff;
    border: 1px solid #E2E8E8;
    border-radius: 18px;
    box-shadow: 0 8px 24px rgba(10,51,50,.08);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px;
    overflow: hidden;
}
.lb-rh-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: grayscale(100%);
    transition: filter .3s ease;
}
.lb-reseller-hero:hover .lb-rh-logo img { filter: grayscale(0); }
.lb-rh-main { flex: 1 1 auto; min-width: 0; }
.lb-rh-top { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.lb-rh-top h1 {
    margin: 0;
    font-family: Roboto, Arial, sans-serif;
    font-size: 34px;
    font-weight: 800;
    letter-spacing: -.02em;
    color: #0B4B4A;
}
.lb-tier-chip {
    display: inline-block;
    padding: 5px 14px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}
.lb-tier-gold { background: #F4B21A; color: #3A2A00; }
.lb-tier-platinum { background: #063D3B; color: #F4B21A; border: 1.5px solid #F4B21A; }
.lb-tier-software, .lb-tier-standard { background: rgba(11,75,74,.10); color: #0B4B4A; }
.lb-rh-addr {
    margin: 10px 0 14px;
    font-size: 14.5px;
    color: #6B7E7D;
    font-family: Roboto, Arial, sans-serif;
}
.lb-rh-addr a { color: #0B4B4A; text-decoration: none; font-weight: 500; }
.lb-rh-addr a:hover { text-decoration: underline; }
.lb-rh-addr .fa { color: #0B4B4A; margin-right: 4px; }
.lb-rh-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.lb-sw-tag {
    padding: 4px 12px;
    border: 1px solid #D7E2E1;
    border-radius: 999px;
    background: #F6F7F8;
    color: #0B4B4A;
    font-size: 11.5px;
    font-weight: 600;
    letter-spacing: .05em;
    font-family: Roboto, Arial, sans-serif;
}
.lb-rh-cta {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: stretch;
}
.lb-btn-amber {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: #F4B21A;
    color: #0B4B4A;
    font-family: Roboto, Arial, sans-serif;
    font-size: 14.5px;
    font-weight: 700;
    padding: 14px 26px;
    border-radius: 999px;
    text-decoration: none;
    box-shadow: 0 6px 18px rgba(244,178,26,.35);
    transition: transform .15s ease, box-shadow .15s ease;
}
.lb-btn-amber:hover { transform: translateY(-1px); box-shadow: 0 10px 24px rgba(244,178,26,.45); color: #0B4B4A; }
.lb-btn-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: #ffffff;
    color: #0B4B4A;
    border: 1.5px solid #0B4B4A;
    font-family: Roboto, Arial, sans-serif;
    font-size: 14px;
    font-weight: 600;
    padding: 12px 26px;
    border-radius: 999px;
    text-decoration: none;
    transition: background .15s ease, color .15s ease;
}
.lb-btn-ghost:hover { background: #0B4B4A; color: #ffffff; }
@media (max-width: 992px) {
    .lb-rh-inner { flex-direction: column; align-items: flex-start; }
    .lb-rh-cta { flex-direction: row; flex-wrap: wrap; }
}

/* ==========================================================================
   23. DETAIL PAGE — sidebar restyle (Phase 2, lb-partner-card language)
   ========================================================================== */
.col-md-4 .box-widget-wrap { margin-top: 0; }
.col-md-4 .box-widget-item {
    background: #ffffff;
    border: 1px solid #E2E8E8;
    border-radius: 16px;
    box-shadow: 0 6px 24px rgba(10,51,50,.06);
    padding: 24px;
    margin-bottom: 24px;
    float: none;
}
.col-md-4 .box-widget-item .box-widget-item-header h3, .col-md-4 .box-widget-item h3 {
    font-family: Roboto, Arial, sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: #0B4B4A;
    letter-spacing: .01em;
    text-transform: none;
}
.col-md-4 .geodir-category-img {
    padding: 0 0 18px 0 !important;
    text-align: center;
    border-bottom: 1px solid #EEF2F1;
    margin-bottom: 18px;
}
.col-md-4 .geodir-category-img img {
    max-width: 160px;
    max-height: 64px;
    object-fit: contain;
}
.col-md-4 .list-item-widget-contacts ul li {
    font-family: Roboto, Arial, sans-serif;
    font-size: 14px;
    color: #6B7E7D;
    border-bottom: 1px dashed #EEF2F1;
    padding: 10px 0;
}
.col-md-4 .list-item-widget-contacts ul li a { color: #0B4B4A; font-weight: 500; }
.col-md-4 .list-item-widget-contacts ul li .fa { color: #F4B21A; }
.col-md-4 .opening-hours ul li {
    font-family: Roboto, Arial, sans-serif;
    font-size: 13.5px;
    color: #6B7E7D;
    display: flex;
    justify-content: space-between;
    padding: 7px 0;
    border-bottom: 1px dashed #EEF2F1;
}
.col-md-4 .opening-hours ul li:last-child { border-bottom: none; }
.col-md-4 .opening-hours .opening-hours-time { color: #0B4B4A; font-weight: 600; }
.col-md-4 .list-author-widget-header {
    background: #0B4B4A;
    border-radius: 12px;
    overflow: hidden;
}
.col-md-4 .list-author-widget-header .list-author-widget-link a { color: #ffffff; }
.col-md-4 .box-widget { background: transparent; border: none; box-shadow: none; }
.col-md-4 .box-widget-content { padding-top: 8px; }

/* 23b. sidebar padding fix (legacy avatar space in .box-widget-content) */
.col-md-4 .box-widget .box-widget-content { padding: 4px 0 0 !important; }
.col-md-4 .box-widget-item .box-widget-item-header { margin-bottom: 12px; }

/* 23c. content band: tighter top padding + white bg */
section.gray-section.lb-content-band {
    background: #ffffff;
    padding-top: 8px !important;
}
section.gray-section.lb-content-band .container { padding-top: 0 !important; }

/* 24. Mobile/sidebar hard fixes */
.col-md-4 .box-widget-item .box-widget-item-header h3,
.col-md-4 .box-widget-item-header h3 {
    font-size: 16px !important;
    line-height: 1.3 !important;
    height: auto !important;
    margin: 0 !important;
    white-space: normal !important;
}
.lb-rh-addr { text-align: left; }
.lb-rh-addr a { word-break: break-word; }
.lb-reseller-hero { padding: 36px 0 32px; }

/* 25. stretch fix: sidebar cards must not stretch to column height */
.col-md-4 .box-widget-item,
.col-md-4 .box-widget-item-header,
.col-md-4 .box-widget-item .box-widget,
.col-md-4 .box-widget-item .box-widget-content {
    height: auto !important;
    min-height: 0 !important;
    align-self: flex-start !important;
}
/* hero address: allow wrapping on narrow screens */
.lb-rh-addr { white-space: normal !important; flex-wrap: wrap; }
.lb-rh-addr .lb-addr-sep { white-space: nowrap; padding: 0 4px; }

/* 26. sidebar stretch bug: legacy floats escape containers -> new BFC via flow-root */
.col-md-4 .box-widget-item,
.col-md-4 .lb-wdg-head,
.col-md-4 .box-widget-item .box-widget,
.col-md-4 .box-widget-item .box-widget-content {
    display: flow-root !important;
    float: none !important;
    width: auto !important;
    height: auto !important;
    min-height: 0 !important;
    position: static !important;
}

/* 27. sidebar headings: clean replacement for legacy .box-widget-item-header */
.col-md-4 .lb-wdg-head {
    float: none !important;
    display: block !important;
    height: auto !important;
    min-height: 0 !important;
    margin: 0 0 12px !important;
    padding: 0 !important;
    position: static !important;
}
.col-md-4 .lb-wdg-head h3 {
    font-family: Roboto, Arial, sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: #0B4B4A;
    margin: 0;
    line-height: 1.3;
    height: auto !important;
}

/* 28. hero address: wrap as inline items on narrow screens */
.lb-rh-addr { display: flex; flex-wrap: wrap; gap: 4px 14px; }
.lb-addr-item { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.lb-addr-item .fa { color: #F4B21A; }

/* 28b. allow address text to wrap within its item */
.lb-rh-addr .lb-addr-item:first-child { white-space: normal; min-width: 0; }
.lb-rh-main { min-width: 0; }

/* 28c. mobile: hero must fit viewport */
@media (max-width: 992px) {
    .lb-rh-inner { width: 100% !important; min-width: 0 !important; max-width: 100% !important; padding: 0 20px; box-sizing: border-box; flex-wrap: wrap; }
    .lb-rh-cta { flex-direction: column !important; width: 100%; }
    .lb-rh-cta .lb-btn-amber, .lb-rh-cta .lb-btn-ghost { width: 100%; box-sizing: border-box; justify-content: center; white-space: normal; }
    .lb-rh-top h1 { font-size: 24px; word-break: break-word; }
    .lb-sw-tag { white-space: normal; }
}

/* 28d. hero flex children must shrink */
.lb-reseller-hero { box-sizing: border-box; }
.lb-rh-cta { min-width: 0; max-width: 100%; flex-shrink: 1; }
.lb-rh-cta .lb-btn-amber, .lb-rh-cta .lb-btn-ghost { max-width: 100%; box-sizing: border-box; }

/* 28e. legacy header forces 500px min-width on mobile — contain it */
@media (max-width: 992px) {
    header.main-header, .header-inner, .main-menu, nav, .sliding-menu-wrapper, .nv-links {
        max-width: 100vw !important;
        overflow-x: hidden !important;
    }
    .header-inner { width: 100% !important; box-sizing: border-box; }
}

/* 28f. legacy header fixed 480px inner + absolute menu — contain on mobile */
@media (max-width: 992px) {
    .header-inner { width: 100% !important; max-width: 100vw !important; padding: 0 16px !important; }
    .main-menu { position: static !important; left: auto !important; right: auto !important; width: auto !important; }
    header.main-header { width: 100% !important; }
}

/* ==========================================================================
   29. SEARCH PAGE (rivenditori_software.php) — filter panel + result grid
   ========================================================================== */
.listsearch-options { background: #ffffff; border-bottom: 1px solid #E2E8E8; }
.listsearch-header h1 {
    font-family: Roboto, Arial, sans-serif !important;
    font-size: 30px !important;
    font-weight: 800 !important;
    color: #0B4B4A !important;
    letter-spacing: -.02em;
}
.listsearch-header h1 .ac { color: #F4B21A; }
.listsearch-input-wrap .listsearch-input-item select {
    background: #ffffff;
    border: 1.5px solid #D7E2E1;
    border-radius: 10px;
    padding: 11px 14px;
    font-family: Roboto, Arial, sans-serif;
    font-size: 13.5px;
    color: #0B4B4A;
    width: 100%;
    box-sizing: border-box;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%230B4B4A' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
}
.listsearch-input-wrap .listsearch-input-item select:focus {
    outline: none;
    border-color: #0B4B4A;
    box-shadow: 0 0 0 3px rgba(11,75,74,.12);
}
.listsearch-input-wrap button.fs-map-btn,
.listsearch-input-wrap .button.fs-map-btn {
    background: #F4B21A !important;
    color: #0B4B4A !important;
    font-family: Roboto, Arial, sans-serif !important;
    font-weight: 700 !important;
    border-radius: 999px !important;
    padding: 12px 28px !important;
    border: none !important;
    box-shadow: 0 6px 18px rgba(244,178,26,.35);
    cursor: pointer;
}
.hidden-listing-filter select { /* advanced filters get same treatment */ }
.hidden-listing-filter .listsearch-input-item select {
    background: #ffffff; border: 1.5px solid #D7E2E1; border-radius: 10px; padding: 10px 14px;
    font-family: Roboto, Arial, sans-serif; font-size: 13px; color: #0B4B4A; width: 100%; box-sizing: border-box;
}

/* result grid: flex grid — equal-height rows so CTA buttons align across columns */
.list-main-wrap.card-listing .container {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
}
.list-main-wrap.card-listing .listing-item.lb-li {
    float: none;
    width: 50%;
    padding: 0 14px;
    margin-bottom: 8px;
    box-sizing: border-box;
    display: flex;
    align-items: stretch;
}
.list-main-wrap.card-listing .listing-item.lb-li .lb-partner-card { height: 100%; margin-bottom: 12px; }
@media (max-width: 768px) {
    .list-main-wrap.card-listing .listing-item.lb-li { width: 100%; float: none; }
}

/* description clamp scales with card width: narrower cards wrap more -> show more lines */
@media (max-width: 1200px) {
    .lb-partner-desc {
        -webkit-line-clamp: 7;
        line-clamp: 7;
        min-height: calc(7 * 1.5em);
    }
}
@media (max-width: 768px) {
    .lb-partner-desc {
        -webkit-line-clamp: none;
        line-clamp: none;
        min-height: 0;
        display: block;
    }
}
.lb-no-results {
    font-family: Roboto, Arial, sans-serif;
    color: #6B7E7D;
    background: #F6F7F8;
    border: 1px dashed #D7E2E1;
    border-radius: 12px;
    padding: 24px;
    text-align: center;
    grid-column: unset;
}
