/* ============================================================
   TORINO BUSINESS DIRECTORY v2.0 – Frontend Styles
   ============================================================ */

:root {
    --tbd-primary:   #1a56a0;
    --tbd-primary-d: #134080;
    --tbd-primary-l: #2563eb;
    --tbd-accent:    #3b9ede;
    --tbd-gold:      #D4AF37;
    --tbd-gold-d:    #b8952a;
    --tbd-dark:      #1a1a2e;
    --tbd-gray:      #6c757d;
    --tbd-light:     #f4f7fb;
    --tbd-border:    #dce4f0;
    --tbd-radius:    12px;
    --tbd-shadow:    0 2px 14px rgba(26,86,160,.07);
    --tbd-shadow-h:  0 8px 28px rgba(26,86,160,.14);
    --tbd-font:      -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --tbd-trans:     .2s ease;
}

/* ============================================================
   WRAPPER
   ============================================================ */
.tbd-wrap {
    font-family: var(--tbd-font);
    color: var(--tbd-dark);
}

/* ============================================================
   HERO BOX
   ============================================================ */
.tbd-hero {
    background: linear-gradient(135deg, var(--tbd-primary) 0%, var(--tbd-primary-l) 100%);
    border-radius: var(--tbd-radius);
    padding: 36px 40px;
    margin-bottom: 24px;
    color: #fff;
    position: relative;
    overflow: hidden;
}
.tbd-hero::before {
    content: '';
    position: absolute;
    top: -60px; right: -60px;
    width: 220px; height: 220px;
    background: rgba(255,255,255,.06);
    border-radius: 50%;
    pointer-events: none;
}
.tbd-hero::after {
    content: '';
    position: absolute;
    bottom: -40px; left: 40%;
    width: 160px; height: 160px;
    background: rgba(255,255,255,.04);
    border-radius: 50%;
    pointer-events: none;
}

.tbd-hero-title {
    margin: 0 0 10px;
    font-size: 26px;
    font-weight: 800;
    line-height: 1.2;
    color: #fff;
}
.tbd-hero-sub {
    margin: 0 0 16px;
    font-size: 15px;
    opacity: .88;
    line-height: 1.6;
    max-width: 620px;
}

.tbd-hero-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
}
.tbd-hero-tags span {
    background: rgba(255,255,255,.15);
    border: 1px solid rgba(255,255,255,.25);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    cursor: default;
}

/* Ricerca hero */
.tbd-hero-search {
    position: relative;
    max-width: 560px;
    margin-bottom: 20px;
    z-index: 10;
}
.tbd-search-wrap {
    display: flex;
    align-items: center;
    background: #fff;
    border-radius: 10px;
    padding: 0 14px;
    box-shadow: 0 4px 20px rgba(0,0,0,.18);
    position: relative;
    z-index: 10;
}
.tbd-search-icon {
    flex-shrink: 0;
    color: var(--tbd-primary);
    margin-right: 8px;
}
.tbd-search-icon-txt {
    flex-shrink: 0;
    font-size: 18px;
    margin-right: 8px;
    line-height: 1;
}
.tbd-search-field {
    flex: 1;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    font-family: var(--tbd-font);
    font-size: 15px;
    color: var(--tbd-dark);
    padding: 14px 0 !important;
    background: transparent !important;
    position: relative;
    z-index: 11;
    -webkit-appearance: none;
    cursor: text;
}
.tbd-search-field::placeholder { color: #aab; }
.tbd-search-clear {
    background: none;
    border: none;
    color: #aaa;
    cursor: pointer;
    font-size: 16px;
    padding: 4px;
    line-height: 1;
}
.tbd-search-clear:hover { color: #c00; }

/* Autocomplete */
.tbd-autocomplete {
    position: absolute;
    top: calc(100% + 4px);
    left: 0; right: 0;
    background: #fff;
    border-radius: 10px;
    box-shadow: var(--tbd-shadow-h);
    overflow: hidden;
    z-index: 9999;
    display: none;
}
.tbd-autocomplete.open { display: block; }
.tbd-ac-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 16px;
    cursor: pointer;
    border-bottom: 1px solid var(--tbd-border);
    transition: background var(--tbd-trans);
}
.tbd-ac-item:last-child { border-bottom: none; }
.tbd-ac-item:hover, .tbd-ac-item.focused { background: var(--tbd-light); }
.tbd-ac-icon {
    width: 32px; height: 32px;
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    font-size: 14px;
}
.tbd-ac-icon--cat  { background: #e8f0fe; color: var(--tbd-primary); }
.tbd-ac-icon--post { background: #e8f5e9; color: #2e7d32; }
.tbd-ac-label { font-size: 14px; font-weight: 600; color: var(--tbd-dark); line-height: 1.2; }
.tbd-ac-sub   { font-size: 12px; color: var(--tbd-gray); }

/* Bottone area personale */
/* .tbd-hero-cta moved outside hero box - see .tbd-biz-cta-bar */

/* ============================================================
   TOOLBAR FILTRI
   ============================================================ */
.tbd-toolbar {
    background: #fff;
    border: 1px solid var(--tbd-border);
    border-radius: var(--tbd-radius);
    box-shadow: var(--tbd-shadow);
    padding: 14px 20px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}
.tbd-filter-group {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    flex-wrap: wrap;
}
.tbd-filter-label {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--tbd-gray);
    white-space: nowrap;
}

/* Custom category dropdown - toolbar e form */
.tbd-cat-select-wrap {
    position: relative;
    flex: 1;
    max-width: 380px;
}
.tbd-cat-selected {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 9px 14px;
    border: 1.5px solid var(--tbd-border);
    border-radius: 9px;
    background: #fff;
    cursor: pointer;
    font-size: 14px;
    color: var(--tbd-dark);
    transition: border-color var(--tbd-trans);
    user-select: none;
}
.tbd-cat-selected:hover,
.tbd-cat-selected.open {
    border-color: var(--tbd-primary);
}
.tbd-cat-arrow {
    font-size: 12px;
    color: var(--tbd-gray);
    transition: transform var(--tbd-trans);
}
.tbd-cat-selected.open .tbd-cat-arrow {
    transform: rotate(180deg);
}
.tbd-cat-dropdown {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background: #fff;
    border: 1.5px solid var(--tbd-border);
    border-radius: 10px;
    box-shadow: var(--tbd-shadow-h);
    z-index: 9999;
    overflow: hidden;
}
.tbd-cat-search-wrap {
    padding: 10px;
    border-bottom: 1px solid var(--tbd-border);
}
.tbd-cat-filter-input {
    width: 100%;
    padding: 8px 12px;
    border: 1.5px solid var(--tbd-border);
    border-radius: 7px;
    font-family: var(--tbd-font);
    font-size: 13px;
    color: var(--tbd-dark);
    box-sizing: border-box;
    outline: none;
}
.tbd-cat-filter-input:focus {
    border-color: var(--tbd-primary);
}
.tbd-cat-list {
    max-height: 280px;
    overflow-y: auto;
    padding: 4px 0;
}
.tbd-cat-group-label {
    padding: 8px 14px 4px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--tbd-gray);
    background: var(--tbd-light);
}
.tbd-cat-option {
    padding: 9px 14px;
    font-size: 13.5px;
    color: var(--tbd-dark);
    cursor: pointer;
    transition: background var(--tbd-trans);
}
.tbd-cat-option:hover {
    background: var(--tbd-light);
    color: var(--tbd-primary);
}
.tbd-cat-option.active {
    background: #e8f0fe;
    color: var(--tbd-primary);
    font-weight: 600;
}
.tbd-cat-option.hidden {
    display: none;
}

/* ============================================================
   LISTA AZIENDE (layout orizzontale)
   ============================================================ */
.tbd-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

/* Card singola */
.tbd-card {
    display: flex;
    background: #fff;
    border: 1px solid var(--tbd-border);
    border-radius: var(--tbd-radius);
    box-shadow: var(--tbd-shadow);
    overflow: hidden;
    transition: transform var(--tbd-trans), box-shadow var(--tbd-trans);
}
.tbd-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--tbd-shadow-h);
}
.tbd-card--premium {
    border-color: var(--tbd-gold);
    border-width: 2px;
    box-shadow: 0 4px 20px rgba(212,175,55,.25);
    background: linear-gradient(to right, #fffdf0 0%, #fff 40%);
}
.tbd-card--premium:hover {
    box-shadow: 0 8px 32px rgba(212,175,55,.38);
    transform: translateY(-3px);
}
.tbd-card--featured {
    border-color: var(--tbd-accent);
}

/* Immagine sinistra */
.tbd-card-img-wrap {
    position: relative;
    flex-shrink: 0;
    width: 160px;
    min-height: 140px;
    overflow: hidden;
    display: block;
    text-decoration: none;
}
.tbd-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .3s ease;
}
.tbd-card:hover .tbd-card-img { transform: scale(1.04); }
.tbd-card-img-placeholder {
    width: 100%;
    height: 100%;
    min-height: 140px;
    background: var(--tbd-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #c0c8d8;
}
.tbd-badge-premium {
    position: absolute;
    top: 8px; left: 8px;
    background: linear-gradient(135deg, var(--tbd-gold), var(--tbd-gold-d));
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    padding: 5px 11px;
    border-radius: 7px;
    letter-spacing: .03em;
    box-shadow: 0 3px 10px rgba(212,175,55,.5);
    text-shadow: 0 1px 2px rgba(0,0,0,.15);
}

/* Corpo card destra */
.tbd-card-body {
    flex: 1;
    padding: 18px 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
}
.tbd-card-top { flex: 1; }
.tbd-card-cat {
    display: inline-block;
    background: var(--tbd-primary);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 20px;
    letter-spacing: .04em;
    text-transform: uppercase;
    margin-bottom: 6px;
}
.tbd-card-title {
    margin: 0 0 6px;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.25;
}
.tbd-card-title a {
    color: var(--tbd-dark);
    text-decoration: none;
    transition: color var(--tbd-trans);
}
.tbd-card-title a:hover { color: var(--tbd-primary); }
.tbd-card-excerpt {
    margin: 0;
    font-size: 13.5px;
    color: #5a6272;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.tbd-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.tbd-card-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    color: var(--tbd-gray);
}
.tbd-card-meta-item a {
    color: inherit;
    text-decoration: none;
}
.tbd-card-meta-item a:hover { color: var(--tbd-primary); }
.tbd-card-footer {
    display: flex;
    align-items: center;
    gap: 14px;
    padding-top: 4px;
}
.tbd-card-link {
    font-size: 13.5px;
    font-weight: 700;
    color: var(--tbd-primary);
    text-decoration: none;
    transition: color var(--tbd-trans);
}
.tbd-card-link:hover { color: var(--tbd-primary-d); }
.tbd-card-web {
    font-size: 12.5px;
    color: var(--tbd-gray);
    text-decoration: none;
    border: 1px solid var(--tbd-border);
    padding: 3px 10px;
    border-radius: 6px;
    transition: var(--tbd-trans);
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: inline-block;
    vertical-align: middle;
}
.tbd-card-web:hover {
    border-color: var(--tbd-primary);
    color: var(--tbd-primary);
}
.tbd-card-web--text {
    cursor: default;
}
.tbd-card-web--text:hover {
    border-color: var(--tbd-border);
    color: var(--tbd-gray);
}

/* Loading & no results */
.tbd-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 48px 20px;
    color: var(--tbd-gray);
    font-size: 15px;
}
.tbd-spinner {
    width: 28px; height: 28px;
    border: 3px solid var(--tbd-border);
    border-top-color: var(--tbd-primary);
    border-radius: 50%;
    animation: tbd-spin .7s linear infinite;
}
@keyframes tbd-spin { to { transform: rotate(360deg); } }

.tbd-no-results {
    text-align: center;
    padding: 48px 20px;
    color: var(--tbd-gray);
}
.tbd-no-results svg { color: var(--tbd-border); margin-bottom: 12px; }
.tbd-no-results p { margin: 0; font-size: 15px; }

/* ============================================================
   PAGINAZIONE
   ============================================================ */
.tbd-pagination {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 32px;
    flex-wrap: wrap;
}
.tbd-page-btn {
    min-width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1.5px solid var(--tbd-border);
    border-radius: 9px;
    background: #fff;
    color: var(--tbd-dark);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--tbd-trans);
    padding: 0 12px;
    font-family: var(--tbd-font);
}
.tbd-page-btn:hover {
    border-color: var(--tbd-primary);
    color: var(--tbd-primary);
}
.tbd-page-btn.active {
    background: var(--tbd-primary);
    border-color: var(--tbd-primary);
    color: #fff;
}
.tbd-page-btn:disabled {
    opacity: .4;
    cursor: not-allowed;
}

/* ============================================================
   FORM INSERIMENTO AZIENDA
   ============================================================ */
.tbd-form-wrap {
    max-width: 780px;
}
.tbd-form-header { margin-bottom: 28px; }
.tbd-form-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 8px;
    font-size: 22px;
    font-weight: 800;
    color: var(--tbd-dark);
}
.tbd-form-subtitle {
    margin: 0;
    color: var(--tbd-gray);
    font-size: 14px;
}

.tbd-form-section {
    background: var(--tbd-light);
    border-radius: 10px;
    border-left: 4px solid var(--tbd-primary);
    padding: 20px 24px;
    margin-bottom: 20px;
}
.tbd-form-section-title {
    margin: 0 0 16px;
    font-size: 15px;
    font-weight: 700;
    color: var(--tbd-primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.tbd-field {
    margin-bottom: 16px;
}
.tbd-field:last-child { margin-bottom: 0; }

.tbd-label {
    display: block;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--tbd-dark);
    margin-bottom: 6px;
}
.tbd-req { color: #dc3545; }

.tbd-input,
.tbd-textarea,
.tbd-select-field {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid var(--tbd-border);
    border-radius: 8px;
    font-family: var(--tbd-font);
    font-size: 14px;
    color: var(--tbd-dark);
    background: #fff;
    transition: border-color var(--tbd-trans);
    box-sizing: border-box;
}
.tbd-input:focus,
.tbd-textarea:focus,
.tbd-select-field:focus {
    outline: none;
    border-color: var(--tbd-primary);
    box-shadow: 0 0 0 3px rgba(26,86,160,.08);
}
.tbd-textarea { resize: vertical; min-height: 110px; }
.tbd-hint {
    display: block;
    font-size: 12px;
    color: var(--tbd-gray);
    margin-top: 5px;
}
.tbd-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
.tbd-label-check {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    cursor: pointer;
}
.tbd-input-file {
    font-size: 13px;
    padding: 6px;
}
.tbd-current-img {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}
.tbd-current-img img {
    width: 64px; height: 64px;
    object-fit: cover;
    border-radius: 8px;
    border: 2px solid var(--tbd-border);
}
.tbd-form-actions { margin-top: 24px; }

/* ============================================================
   BUTTONS
   ============================================================ */
.tbd-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--tbd-primary);
    color: #fff !important;
    padding: 12px 28px;
    border-radius: 9px;
    font-family: var(--tbd-font);
    font-size: 14.5px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    text-decoration: none !important;
    transition: var(--tbd-trans);
    box-shadow: 0 4px 14px rgba(26,86,160,.28);
}
.tbd-btn-primary:hover {
    background: var(--tbd-primary-d);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(26,86,160,.36);
    color: #fff !important;
}
.tbd-btn-primary:disabled {
    background: #aaa;
    transform: none;
    box-shadow: none;
    cursor: not-allowed;
}
.tbd-btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: transparent;
    border: 1.5px solid var(--tbd-border);
    color: var(--tbd-gray);
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--tbd-trans);
    cursor: pointer;
    font-family: var(--tbd-font);
}
.tbd-btn-ghost:hover {
    border-color: var(--tbd-primary);
    color: var(--tbd-primary);
}

/* ============================================================
   MESSAGGI
   ============================================================ */
.tbd-msg {
    padding: 13px 16px;
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 16px;
}
.tbd-msg--success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}
.tbd-msg--error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* ============================================================
   DASHBOARD AREA PERSONALE
   ============================================================ */
.tbd-dashboard {
    margin-top: 40px;
    padding-top: 32px;
    border-top: 2px solid var(--tbd-border);
    font-family: var(--tbd-font);
}
.tbd-dash-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 10px;
}
.tbd-dash-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    font-size: 20px;
    font-weight: 800;
    color: var(--tbd-primary);
}
.tbd-dash-user {
    font-size: 14px;
    color: var(--tbd-gray);
    font-weight: 500;
}

/* Tabs dashboard */
.tbd-dash-tabs {
    display: flex;
    gap: 4px;
    border-bottom: 2px solid var(--tbd-border);
    margin-bottom: 28px;
    flex-wrap: wrap;
}
.tbd-dash-tab {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 10px 18px;
    border-radius: 9px 9px 0 0;
    font-size: 14px;
    font-weight: 600;
    color: var(--tbd-gray);
    text-decoration: none;
    transition: var(--tbd-trans);
    border: 1.5px solid transparent;
    border-bottom: none;
    margin-bottom: -2px;
}
.tbd-dash-tab:hover { color: var(--tbd-primary); background: var(--tbd-light); }
.tbd-dash-tab.active {
    color: var(--tbd-primary);
    background: #fff;
    border-color: var(--tbd-border);
    border-bottom-color: #fff;
}
.tbd-dash-count {
    background: var(--tbd-primary);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 1px 7px;
    border-radius: 10px;
}

/* Sezione dashboard */
.tbd-dash-section { max-width: 820px; }
.tbd-dash-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 10px;
}
.tbd-dash-section-header h3 {
    margin: 0;
    font-size: 17px;
    font-weight: 700;
}

/* Card aziende nella dashboard */
.tbd-dash-businesses {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.tbd-dash-biz-card {
    display: flex;
    align-items: center;
    background: #fff;
    border: 1.5px solid var(--tbd-border);
    border-radius: 10px;
    padding: 14px 18px;
    gap: 16px;
    transition: var(--tbd-trans);
    flex-wrap: wrap;
}
.tbd-dash-biz-card:hover { box-shadow: var(--tbd-shadow); }
.tbd-dash-biz-card.is-premium { border-color: var(--tbd-gold); }

.tbd-dash-biz-img {
    flex-shrink: 0;
    width: 56px; height: 56px;
    border-radius: 8px;
    overflow: hidden;
}
.tbd-dash-biz-img img {
    width: 100%; height: 100%;
    object-fit: cover;
}
.tbd-dash-biz-noimg {
    width: 56px; height: 56px;
    background: var(--tbd-light);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #c0c8d8;
}
.tbd-dash-biz-info { flex: 1; min-width: 0; }
.tbd-dash-biz-top {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 6px;
}
.tbd-dash-biz-name { font-size: 15px; color: var(--tbd-dark); }
.tbd-dash-biz-cat {
    font-size: 11px;
    color: var(--tbd-gray);
    background: var(--tbd-light);
    padding: 2px 8px;
    border-radius: 10px;
}
.tbd-dash-biz-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

/* Badge */
.tbd-badge {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    padding: 3px 9px;
    border-radius: 6px;
}
.tbd-badge--green  { background: #d4edda; color: #155724; }
.tbd-badge--yellow { background: #fff3cd; color: #856404; }
.tbd-badge--red    { background: #f8d7da; color: #721c24; }
.tbd-badge--gold   { background: #fff8dc; color: #8b6914; border: 1px solid #f0d060; }
.tbd-badge--orange { background: #ffe5d0; color: #8a3a00; }
.tbd-badge--gray   { background: var(--tbd-light); color: var(--tbd-gray); }
.tbd-badge--blue   { background: #e3f2fd; color: #0d47a1; }

.tbd-dash-biz-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    flex-shrink: 0;
}
.tbd-btn-sm {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 13px;
    border: 1.5px solid var(--tbd-border);
    border-radius: 7px;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--tbd-dark);
    text-decoration: none;
    background: #fff;
    transition: var(--tbd-trans);
    cursor: pointer;
    font-family: var(--tbd-font);
    white-space: nowrap;
}
.tbd-btn-sm:hover { border-color: var(--tbd-primary); color: var(--tbd-primary); }
.tbd-btn-sm--gold {
    border-color: var(--tbd-gold);
    color: #8b6914;
    background: #fffdf0;
}
.tbd-btn-sm--gold:hover { background: #fff8dc; }

/* Empty state */
.tbd-dash-empty {
    text-align: center;
    padding: 56px 24px;
    color: var(--tbd-gray);
}
.tbd-dash-empty svg { color: #c0c8d8; margin-bottom: 14px; }
.tbd-dash-empty h3 { margin: 0 0 8px; font-size: 18px; color: var(--tbd-dark); }
.tbd-dash-empty p { margin: 0 0 24px; }

/* ============================================================
   PREMIUM PAGE
   ============================================================ */
.tbd-premium-active {
    text-align: center;
    background: linear-gradient(135deg, #1a56a0, #2563eb);
    color: #fff;
    border-radius: var(--tbd-radius);
    padding: 36px 40px;
    margin-bottom: 24px;
}
.tbd-premium-active-badge { font-size: 56px; margin-bottom: 12px; }
.tbd-premium-active h3 { margin: 0 0 8px; font-size: 26px; color: #fff; }
.tbd-premium-active p { margin: 0; opacity: .9; font-size: 15px; }

.tbd-premium-renew-notice {
    background: rgba(255,255,255,.15);
    border-radius: 8px;
    padding: 12px 20px;
    margin-top: 16px;
    font-size: 14px;
}
.tbd-premium-renew-box {
    background: #fff;
    border-radius: 10px;
    padding: 24px;
    margin-top: 24px;
    color: var(--tbd-dark);
    text-align: left;
}
.tbd-premium-renew-box h4 { margin: 0 0 10px; color: var(--tbd-primary); }

.tbd-premium-pending {
    text-align: center;
    background: var(--tbd-light);
    border-radius: var(--tbd-radius);
    padding: 40px;
    border: 2px dashed var(--tbd-border);
}
.tbd-premium-pending-icon { font-size: 48px; margin-bottom: 12px; }
.tbd-premium-pending h3 { margin: 0 0 10px; }

.tbd-premium-promo {
    background: #fff;
    border: 2px solid var(--tbd-primary);
    border-radius: var(--tbd-radius);
    padding: 32px 36px;
    margin-bottom: 24px;
}
.tbd-premium-promo-header { text-align: center; margin-bottom: 24px; }
.tbd-premium-price {
    font-size: 52px;
    font-weight: 800;
    color: var(--tbd-primary);
    line-height: 1;
}
.tbd-premium-price span { font-size: 22px; color: var(--tbd-gray); }
.tbd-premium-tagline { margin: 8px 0 0; color: var(--tbd-gray); font-size: 15px; }

.tbd-premium-features {
    list-style: none;
    padding: 0; margin: 0;
}
.tbd-premium-features li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px solid var(--tbd-border);
    font-size: 14.5px;
    line-height: 1.5;
}
.tbd-premium-features li:last-child { border-bottom: none; }
.tbd-premium-features svg { flex-shrink: 0; color: #28a745; margin-top: 2px; }

/* Bonifico box */
.tbd-bonifico-box {
    background: #fff;
    border: 1.5px solid var(--tbd-border);
    border-radius: var(--tbd-radius);
    padding: 28px 32px;
    margin-bottom: 16px;
}
.tbd-bonifico-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 20px;
    font-size: 16px;
    font-weight: 700;
    color: var(--tbd-dark);
    border-bottom: 1px solid var(--tbd-border);
    padding-bottom: 14px;
}
.tbd-bonifico-fields { margin-bottom: 20px; }
.tbd-bonifico-row {
    display: flex;
    align-items: flex-start;
    padding: 10px 0;
    border-bottom: 1px solid var(--tbd-border);
    gap: 16px;
}
.tbd-bonifico-row:last-child { border-bottom: none; }
.tbd-bonifico-row--causale { background: #fffdf0; margin: 0 -4px; padding: 10px 4px; border-radius: 6px; }
.tbd-bonifico-label {
    width: 120px;
    flex-shrink: 0;
    font-size: 13px;
    font-weight: 600;
    color: var(--tbd-gray);
    padding-top: 2px;
}
.tbd-bonifico-value {
    flex: 1;
    font-size: 14px;
    color: var(--tbd-dark);
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.tbd-copy-btn {
    background: var(--tbd-light);
    border: 1px solid var(--tbd-border);
    border-radius: 5px;
    font-size: 12px;
    padding: 2px 8px;
    cursor: pointer;
    transition: var(--tbd-trans);
    font-family: var(--tbd-font);
    color: var(--tbd-gray);
}
.tbd-copy-btn:hover { background: var(--tbd-primary); color: #fff; border-color: var(--tbd-primary); }
.tbd-bonifico-note {
    font-size: 12.5px;
    color: #856404;
    background: #fff3cd;
    padding: 8px 12px;
    border-radius: 6px;
    margin: 0;
}
.tbd-bonifico-confirm { text-align: center; padding-top: 8px; }
.tbd-bonifico-confirm p { margin: 0 0 14px; font-size: 14px; color: var(--tbd-gray); }

/* ============================================================
   SINGOLA SCHEDA AZIENDA
   ============================================================ */
.tbd-info-box-front {
    background: var(--tbd-light);
    border-left: 4px solid var(--tbd-primary);
    padding: 18px 22px;
    border-radius: 8px;
    font-size: 14px;
}
.tbd-info-box-front a { color: var(--tbd-primary); }

/* ============================================================
   WIDGET
   ============================================================ */
.tbd-widget-list { list-style: none; margin: 0; padding: 0; }
.tbd-widget-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px solid var(--tbd-border);
}
.tbd-widget-item:last-child { border-bottom: none; }
.tbd-widget-item.is-premium { background: #fffdf0; margin: 0 -4px; padding: 8px 4px; border-radius: 4px; }
.tbd-widget-item img {
    width: 44px; height: 44px;
    object-fit: cover;
    border-radius: 6px;
    flex-shrink: 0;
}
.tbd-widget-info { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.tbd-widget-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--tbd-dark);
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.tbd-widget-name:hover { color: var(--tbd-primary); }
.tbd-widget-cat {
    font-size: 11px;
    color: #fff;
    background: var(--tbd-primary);
    padding: 1px 7px;
    border-radius: 10px;
    display: inline-block;
    width: fit-content;
}
.tbd-widget-all {
    display: inline-block;
    margin-top: 8px;
    font-size: 13px;
    color: var(--tbd-primary);
    text-decoration: none;
    font-weight: 600;
}
.tbd-widget-all:hover { text-decoration: underline; }


/* ============================================================
   CTA BAR AZIENDE (fuori dal box blu)
   ============================================================ */
.tbd-biz-cta-bar {
    background: #f4f7fb;
    border: 1px solid var(--tbd-border);
    border-radius: 10px;
    padding: 14px 20px;
    margin-bottom: 16px;
    font-size: 14px;
}
.tbd-biz-cta-links {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}
.tbd-biz-cta-link {
    color: var(--tbd-primary);
    text-decoration: none;
    font-size: 14px;
    transition: color var(--tbd-trans);
}
.tbd-biz-cta-link:hover { color: var(--tbd-primary-d); text-decoration: underline; }
.tbd-biz-cta-link--reg { color: var(--tbd-gray); }
.tbd-biz-cta-link--reg:hover { color: var(--tbd-primary); }
.tbd-biz-cta-sep { color: var(--tbd-border); font-size: 16px; }

/* hidden helper for dropdown filter */
.tbd-hidden { display: none !important; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 720px) {
    .tbd-hero { padding: 24px 20px; }
    .tbd-hero-title { font-size: 20px; }
    .tbd-hero-sub { font-size: 14px; }

    /* Mobile: card rimane orizzontale come desktop */
    .tbd-card { flex-direction: row; }
    .tbd-card-img-wrap {
        width: 110px;
        min-height: 110px;
        flex-shrink: 0;
    }
    .tbd-card-body { padding: 12px 14px; }
    .tbd-card-title { font-size: 15px; }
    .tbd-card-excerpt { display: none; }

    .tbd-form-row { grid-template-columns: 1fr; }

    .tbd-toolbar {
        flex-direction: column;
        align-items: flex-start;
    }

    .tbd-dash-biz-card { flex-wrap: wrap; }
    .tbd-dash-biz-actions { width: 100%; }

    .tbd-bonifico-label { width: 90px; font-size: 12px; }
    .tbd-premium-promo { padding: 20px; }
    .tbd-premium-price { font-size: 40px; }

    .tbd-biz-cta-links { flex-direction: column; gap: 6px; }
    .tbd-biz-cta-sep { display: none; }
}

@media (max-width: 480px) {
    .tbd-hero-tags { display: flex; flex-wrap: wrap; gap: 6px; }
    .tbd-hero-tags span { font-size: 12px; padding: 3px 10px; }
    .tbd-dash-tabs { gap: 2px; }
    .tbd-dash-tab { padding: 8px 12px; font-size: 13px; }
}

/* ============================================================
   FORM CATEGORIA CUSTOM (nel form inserimento)
   ============================================================ */
.tbd-form-cat-wrap .tbd-cat-selected {
    background: #fff;
}
.tbd-form-cat-wrap .tbd-cat-dropdown {
    position: absolute;
}

/* ============================================================
   BOX APPROVAZIONE (fondo form inserimento attività)
   ============================================================ */
.tbd-approval-notice {
    display: flex;
    gap: 18px;
    background: linear-gradient(135deg, #e8f0fe, #f0f7ff);
    border: 1.5px solid #b8d0f8;
    border-radius: var(--tbd-radius);
    padding: 22px 26px;
    margin-top: 28px;
    align-items: flex-start;
}
.tbd-approval-notice-icon {
    font-size: 32px;
    flex-shrink: 0;
    line-height: 1;
}
.tbd-approval-notice-body h4 {
    margin: 0 0 12px;
    font-size: 15px;
    font-weight: 700;
    color: var(--tbd-primary);
}
.tbd-approval-notice-body ol {
    margin: 0 0 12px;
    padding-left: 20px;
    font-size: 14px;
    line-height: 1.8;
    color: #334;
}
.tbd-approval-notice-body p {
    margin: 0;
    font-size: 13px;
    color: var(--tbd-gray);
}
.tbd-approval-notice-body a {
    color: var(--tbd-primary);
}

/* Responsive toolbar */
@media (max-width: 720px) {
    .tbd-cat-select-wrap { max-width: 100%; }
}

/* ============================================================
   CATEGORIA FILTRO DENTRO HERO
   ============================================================ */
.tbd-hero-cat {
    margin-top: 12px;
    position: relative;
}
.tbd-hero-cat-wrap .tbd-cat-selected {
    background: rgba(255,255,255,.15);
    border: 1.5px solid rgba(255,255,255,.35);
    color: #fff;
    border-radius: 9px;
    max-width: 320px;
}
.tbd-hero-cat-wrap .tbd-cat-selected:hover,
.tbd-hero-cat-wrap .tbd-cat-selected.open {
    background: rgba(255,255,255,.25);
    border-color: rgba(255,255,255,.6);
}
.tbd-hero-cat-wrap .tbd-cat-arrow {
    color: rgba(255,255,255,.8);
}
.tbd-hero-cat-wrap .tbd-cat-dropdown {
    max-width: 360px;
    border-color: var(--tbd-border);
}

/* ============================================================
   LOGOUT BUTTON in dashboard
   ============================================================ */
.tbd-btn-logout {
    display: inline-block;
    padding: 6px 14px;
    border: 1.5px solid var(--tbd-border);
    border-radius: 7px;
    font-size: 13px;
    font-weight: 600;
    color: var(--tbd-gray);
    text-decoration: none;
    background: #fff;
    transition: var(--tbd-trans);
    white-space: nowrap;
}
.tbd-btn-logout:hover {
    border-color: #dc3545;
    color: #dc3545;
}

/* ============================================================
   MINI LISTA AZIENDE [tbd_mini_list]
   ============================================================ */
.tbd-mini-list { font-family: var(--tbd-font); }
.tbd-mini-list-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--tbd-dark);
    margin: 0 0 10px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--tbd-primary);
    display: inline-block;
}
.tbd-mini-list-ul { list-style: none; margin: 0; padding: 0; }
.tbd-mini-list-item {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    padding: 7px 0 !important;
    border-bottom: 1px solid var(--tbd-border) !important;
    margin: 0 !important;
    line-height: 1.3 !important;
}
.tbd-mini-list-item:last-child { border-bottom: none; }
.tbd-mini-list-item.is-premium { background: #fffdf0; margin: 0 -4px; padding: 7px 4px; border-radius: 5px; }
.tbd-mini-list-img {
    flex-shrink: 0;
    width: 46px; height: 46px;
    border-radius: 7px;
    overflow: hidden;
    background: var(--tbd-light);
    font-size: 18px;
    text-decoration: none;
    display: flex; align-items: center; justify-content: center;
}
.tbd-mini-list-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tbd-mini-list-info {
    flex: 1 !important;
    min-width: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 0 !important;
    line-height: 1 !important;
}
.tbd-mini-list-name {
    font-size: 12.5px !important;
    font-weight: 700 !important;
    color: var(--tbd-dark) !important;
    text-decoration: none !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    line-height: 1.3 !important;
    display: block !important;
    margin: 0 0 2px 0 !important;
    padding: 0 !important;
}
.tbd-mini-list-name:hover { color: var(--tbd-primary); }
.tbd-mini-list-cat {
    display: inline-block !important;
    font-size: 10px !important;
    font-weight: 700 !important;
    background: var(--tbd-primary) !important;
    color: #fff !important;
    padding: 1px 6px !important;
    border-radius: 8px !important;
    width: fit-content !important;
    margin: 0 0 2px 0 !important;
    line-height: 1.4 !important;
}
.tbd-mini-list-meta {
    font-size: 11px !important;
    color: var(--tbd-gray) !important;
    line-height: 1.3 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
}
.tbd-mini-list-all {
    display: inline-block; margin-top: 8px;
    font-size: 12.5px; font-weight: 700;
    color: var(--tbd-primary); text-decoration: none;
}
.tbd-mini-list-all:hover { text-decoration: underline; }

/* ============================================================
   BARRA SOTTO HERO (CTA + filtro categoria)
   ============================================================ */
.tbd-below-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}
.tbd-biz-cta-bar {
    flex: 1;
    background: #f4f7fb;
    border: 1px solid var(--tbd-border);
    border-radius: 10px;
    padding: 12px 18px;
    font-size: 14px;
}
.tbd-below-hero .tbd-cat-select-wrap {
    flex-shrink: 0;
    width: 240px;
}

@media (max-width: 720px) {
    .tbd-below-hero {
        flex-direction: column;
        align-items: stretch;
    }
    .tbd-below-hero .tbd-cat-select-wrap {
        width: 100%;
    }
    .tbd-biz-cta-links {
        flex-direction: column;
        gap: 6px;
    }
    .tbd-biz-cta-sep { display: none; }
}


/* ============================================================
   SIDEBAR AZIENDE [tbd_mini_list]
   Struttura CSS identica al plugin eventi
   ============================================================ */
.tbd-sidebar-wrap { font-family: var(--tbd-font); }

.tbd-sidebar-heading {
    font-size: 15px;
    font-weight: 700;
    color: var(--tbd-dark);
    margin: 0 0 10px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--tbd-primary);
    display: inline-block;
    font-family: var(--tbd-font);
}

.tbd-sidebar-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.tbd-sidebar-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid var(--tbd-border);
    text-decoration: none !important;
    transition: opacity .2s ease;
}

.tbd-sidebar-item:last-child { border-bottom: none; }
.tbd-sidebar-item:hover { opacity: .78; text-decoration: none !important; }

.tbd-sidebar-img {
    width: 64px;
    height: 64px;
    flex-shrink: 0;
    border-radius: 8px;
    overflow: hidden;
}

.tbd-sidebar-thumb {
    width: 64px !important;
    height: 64px !important;
    object-fit: cover !important;
    display: block !important;
    border-radius: 8px;
    max-width: none !important;
}

.tbd-sidebar-thumb-placeholder {
    width: 64px;
    height: 64px;
    background: var(--tbd-light);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    border: 1px solid var(--tbd-border);
}

.tbd-sidebar-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding-top: 2px;
}

.tbd-sidebar-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}

.tbd-sidebar-cat {
    display: inline-flex;
    align-items: center;
    font-size: 11px;
    font-weight: 700;
    color: var(--tbd-primary);
    font-family: var(--tbd-font);
    white-space: nowrap;
}

.tbd-sidebar-place {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-size: 11px;
    font-weight: 600;
    color: var(--tbd-gray);
    font-family: var(--tbd-font);
    white-space: nowrap;
}

.tbd-sidebar-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--tbd-dark);
    font-family: var(--tbd-font);
    line-height: 1.35;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.tbd-sidebar-all {
    display: inline-block;
    margin-top: 10px;
    font-size: 12.5px;
    font-weight: 700;
    color: var(--tbd-primary);
    text-decoration: none;
    font-family: var(--tbd-font);
}
.tbd-sidebar-all:hover { text-decoration: underline; }

/* ============================================================
   SCHEDA SINGOLA AZIENDA — v2.1.0
   Colonna singola, nessuna sidebar, zero scroll orizzontale.
   Prima questi stili erano inline nel template: non potevano
   essere corretti da nessuna media query.
============================================================ */

.tbd-single,
.tbd-single * { box-sizing: border-box; }

.tbd-single {
    overflow-x: hidden;
    max-width: 100%;
}

.tbd-single img,
.tbd-single iframe {
    max-width: 100%;
    height: auto;
}

.tbd-single-container {
    max-width: 820px;
    margin: 0 auto;
    padding-left: 16px;
    padding-right: 16px;
    width: 100%;
}

/* ---- Header ---- */
.tbd-single-header {
    background: #1a56a0;
    color: #fff;
    padding: 28px 0 0;
}
.tbd-single-head-inner {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
    padding-bottom: 24px;
}
.tbd-single-logo {
    flex-shrink: 0;
    width: 84px;
    height: 84px;
    border-radius: 14px;
    overflow: hidden;
    border: 3px solid rgba(255,255,255,.3);
    background: #fff;
}
.tbd-single-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.tbd-single-head-text { flex: 1; min-width: 0; }
.tbd-single-title-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 8px;
}
.tbd-single-title {
    margin: 0;
    color: #fff;
    font-size: 26px;
    font-weight: 800;
    line-height: 1.2;
    overflow-wrap: break-word;
    word-break: break-word;
}
.tbd-single-premium {
    background: #D4AF37;
    color: #fff;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
}
.tbd-single-cats { display: flex; flex-wrap: wrap; gap: 6px; }
.tbd-single-cat {
    background: rgba(255,255,255,.18);
    border: 1px solid rgba(255,255,255,.3);
    color: #fff;
    padding: 3px 12px;
    border-radius: 20px;
    font-size: 13px;
}
.tbd-single-rating { margin-top: 8px; font-size: 15px; color: #fff; }
.tbd-single-rating-val { opacity: .85; font-size: 13px; margin-left: 4px; }
.tbd-single-back {
    color: rgba(255,255,255,.85);
    text-decoration: none;
    font-size: 13px;
    border: 1px solid rgba(255,255,255,.3);
    padding: 6px 14px;
    border-radius: 8px;
    white-space: nowrap;
}
.tbd-single-back:hover { background: rgba(255,255,255,.12); color: #fff; }

/* ---- Corpo ---- */
.tbd-single-body {
    margin-top: 26px;
    margin-bottom: 32px;
}
.tbd-single-card {
    background: #fff;
    border: 1px solid #dce4f0;
    border-radius: 12px;
    padding: 22px;
    margin-bottom: 18px;
    box-shadow: 0 2px 14px rgba(26,86,160,.06);
    max-width: 100%;
}
.tbd-single-card--map { padding: 0; overflow: hidden; }
.tbd-single-h2 {
    margin: 0 0 14px;
    font-size: 17px;
    font-weight: 700;
    color: #1a56a0;
    display: flex;
    align-items: center;
    gap: 8px;
}
.tbd-single-content {
    font-size: 15px;
    line-height: 1.8;
    color: #333;
    overflow-wrap: break-word;
}
.tbd-single-content img { border-radius: 8px; }

/* ---- Contatti ---- */
.tbd-contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 10px 20px;
}
.tbd-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 14.5px;
    color: #444;
    min-width: 0;
}
.tbd-contact-icon { flex-shrink: 0; margin-top: 3px; color: #1a56a0; }
.tbd-contact-link {
    color: #1a56a0;
    text-decoration: none;
    font-weight: 600;
    overflow-wrap: anywhere;
}
.tbd-contact-item--addr { grid-column: 1 / -1; }
.tbd-single-piva {
    margin: 14px 0 0;
    padding-top: 10px;
    border-top: 1px solid #f0f4f8;
    font-size: 13px;
    color: #888;
}

/* ---- Sito web (dettaglio) ---- */
.tbd-web {
    display: inline-flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 14.5px;
    font-weight: 600;
    min-width: 0;
    max-width: 100%;
}
.tbd-web .tbd-globe { flex-shrink: 0; margin-top: 3px; color: #1a56a0; }
.tbd-web .tbd-web-label { overflow-wrap: anywhere; word-break: break-word; }
.tbd-web--link { color: #1a56a0; text-decoration: none; }
.tbd-web--link:hover .tbd-web-label { text-decoration: underline; }
.tbd-web--text { color: #333; }
.tbd-web--text .tbd-web-arrow { display: none; }

/* ---- Galleria ---- */
.tbd-single-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 10px;
}
.tbd-single-gallery-item {
    display: block;
    border-radius: 8px;
    overflow: hidden;
    aspect-ratio: 1;
    background: #f4f7fb;
}
.tbd-single-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ---- Orari ---- */
.tbd-hours-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
    border-bottom: 1px solid #f0f4f8;
}
.tbd-hours-row:last-child { border-bottom: none; }
.tbd-hours-day { font-weight: 600; font-size: 14px; color: #333; }
.tbd-hours-val { font-size: 13px; color: #333; white-space: nowrap; }
.tbd-hours-val--closed { color: #dc3545; font-weight: 600; }
.tbd-hours-val--open24 { color: #1a8a4c; font-weight: 600; }
.tbd-hours-val--none { color: #888; }

/* ---- Mappa ---- */
.tbd-single-map { line-height: 0; }
.tbd-single-map iframe {
    width: 100%;
    height: 320px;
    border: none;
    display: block;
}

/* ---- Social ---- */
.tbd-single-social { display: flex; flex-wrap: wrap; gap: 10px; }
.tbd-social-btn {
    color: #fff;
    padding: 8px 16px;
    border-radius: 7px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
}
.tbd-social-btn:hover { color: #fff; opacity: .9; }
.tbd-social-btn--fb { background: #1877f2; }
.tbd-social-btn--ig { background: #dc2743; }
.tbd-social-btn--li { background: #0a66c2; }
.tbd-social-btn--tw { background: #000; }

/* ---- CTA Premium ---- */
.tbd-single-cta {
    background: #1a56a0;
    border-radius: 12px;
    padding: 24px;
    color: #fff;
    text-align: center;
}
.tbd-single-cta-icon { font-size: 30px; margin-bottom: 6px; }
.tbd-single-cta h4 { margin: 0 0 8px; color: #fff; font-size: 16px; }
.tbd-single-cta p { margin: 0 0 16px; font-size: 13.5px; opacity: .92; }
.tbd-single-cta-btn {
    background: #fff;
    color: #1a56a0;
    padding: 10px 22px;
    border-radius: 8px;
    font-size: 13.5px;
    font-weight: 700;
    text-decoration: none;
    display: inline-block;
}

/* ---- Mobile ---- */
@media (max-width: 720px) {
    .tbd-single-header { padding-top: 20px; }
    .tbd-single-head-inner { gap: 14px; padding-bottom: 20px; }
    .tbd-single-logo { width: 64px; height: 64px; border-radius: 10px; }
    .tbd-single-title { font-size: 21px; }
    .tbd-single-back {
        order: 3;
        width: 100%;
        text-align: center;
    }
    .tbd-single-card { padding: 18px 16px; }
    .tbd-contact-grid { grid-template-columns: 1fr; }
    .tbd-single-map iframe { height: 240px; }
    .tbd-single-gallery { grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); }
}

@media (max-width: 480px) {
    .tbd-single-container { padding-left: 12px; padding-right: 12px; }
    .tbd-single-title { font-size: 19px; }
    .tbd-single-social { gap: 8px; }
    .tbd-social-btn { flex: 1 1 auto; text-align: center; }
}

/* ---- Sito web nella card della lista ---- */
.tbd-card-web {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
    max-width: 220px;
    vertical-align: middle;
}
.tbd-card-web .tbd-globe { flex-shrink: 0; color: #1a56a0; }
.tbd-card-web .tbd-web-label {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.tbd-card-web .tbd-web-arrow { flex-shrink: 0; }
.tbd-card-web.tbd-web--text { color: #555; }
.tbd-card-web.tbd-web--text .tbd-web-arrow { display: none; }

/* ============================================================
   PREMIUM — accettazione termini prima dei dati bonifico
============================================================ */
.tbd-terms-gate {
    background: #f4f7fb;
    border: 1px solid #dce4f0;
    border-radius: 8px;
    padding: 14px 16px;
    margin: 0 0 16px;
}
.tbd-terms-gate.is-accepted {
    background: #eaf7ef;
    border-color: #bfe3cd;
}
.tbd-terms-check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 14px;
    line-height: 1.6;
    color: #333;
    cursor: pointer;
}
.tbd-terms-check input[type="checkbox"] {
    flex-shrink: 0;
    margin-top: 3px;
    width: 17px;
    height: 17px;
    cursor: pointer;
}
.tbd-terms-check a { color: #1a56a0; text-decoration: underline; }
.tbd-terms-hint {
    margin: 8px 0 0 27px;
    font-size: 12.5px;
    color: #888;
}
.tbd-terms-gate.is-accepted .tbd-terms-hint { display: none; }

.tbd-bonifico-locked { display: none; }
.tbd-bonifico-locked.is-unlocked { display: block; }

.tbd-bonifico-terms {
    margin: 14px 0 0;
    padding-top: 12px;
    border-top: 1px solid #e6ebf2;
    font-size: 12.5px;
    color: #777;
    line-height: 1.6;
}
.tbd-bonifico-terms a { color: #1a56a0; text-decoration: underline; }
