/* ==========================================================
   Pagine pubbliche catalogo professionisti
   ========================================================== */

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ── Header pubblico ───────────────────────────────────── */

.public-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: #fff;
    border-bottom: 1px solid var(--border-light);
    box-shadow: var(--shadow-soft);
}

.public-header__container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-md);
    max-width: 1100px;
    margin: 0 auto;
    padding: 10px var(--space-md);
}

.public-header__brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--primary);
    font-weight: 700;
    font-size: 1.05rem;
    flex-shrink: 0;
}

.public-header__logo {
    border-radius: 6px;
}

.public-header__toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 0;
    border: none;
    background: transparent;
    cursor: pointer;
    border-radius: var(--radius-md);
}

.public-header__toggle:hover {
    background: var(--primary-soft);
}

.public-header__toggle-bar {
    display: block;
    width: 22px;
    height: 2px;
    margin: 0 auto;
    background: var(--text-main);
    border-radius: 1px;
}

.public-header__nav {
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    padding: var(--space-sm) var(--space-md) var(--space-md);
    background: #fff;
    border-bottom: 1px solid var(--border-light);
    box-shadow: var(--shadow-soft);
}

.public-header__nav.is-open {
    display: flex;
}

.public-header__link {
    display: block;
    padding: 10px 12px;
    border-radius: var(--radius-md);
    text-decoration: none;
    color: var(--text-main);
    font-size: 0.9375rem;
    font-weight: 500;
}

.public-header__link:hover,
.public-header__link.is-active {
    background: var(--primary-soft);
    color: var(--primary);
}

.public-header__btn {
    display: block;
    padding: 10px 16px;
    margin-top: 4px;
    border-radius: var(--radius-md);
    text-align: center;
    text-decoration: none;
    font-size: 0.9375rem;
    font-weight: 600;
    background: var(--primary);
    color: #fff;
}

.public-header__btn:hover {
    opacity: 0.92;
}

@media (min-width: 768px) {
    .public-header__toggle {
        display: none;
    }

    .public-header__nav {
        display: flex;
        flex-direction: row;
        align-items: center;
        position: static;
        padding: 0;
        border: none;
        box-shadow: none;
        gap: 8px;
    }

    .public-header__link {
        padding: 8px 12px;
    }

    .public-header__btn {
        margin-top: 0;
        margin-left: 4px;
        padding: 8px 16px;
    }
}

/* ── Footer pubblico ───────────────────────────────────── */

.public-footer {
    margin-top: var(--space-lg);
    padding: var(--space-lg) var(--space-md);
    background: var(--primary-soft);
    border-top: 1px solid var(--border-light);
}

.public-footer__container {
    max-width: 1100px;
    margin: 0 auto;
    text-align: center;
}

.public-footer__copy {
    margin: 0 0 var(--space-sm);
    font-size: 0.875rem;
    color: var(--text-muted);
}

.public-footer__links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px 20px;
}

.public-footer__links a {
    font-size: 0.875rem;
    color: var(--primary);
    text-decoration: none;
}

.public-footer__links a:hover {
    text-decoration: underline;
}

/* ── Layout main con header pubblico ───────────────────── */

body.public-catalog-guest .app-main--catalog {
    padding-top: calc(64px + var(--space-md));
}

body.public-catalog .app-main--catalog {
    padding-bottom: var(--space-md);
}

.app-main--catalog .container {
    max-width: 1100px;
}

/* ── Slot pubblicitari ───────────────────────────────────── */

.ad-slot {
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 var(--space-md);
}

.ad-slot--top {
    margin-bottom: var(--space-md);
}

.ad-slot--bottom {
    margin-top: var(--space-md);
}

.ad-slot__frame {
    display: flex;
    justify-content: center;
    width: 100%;
}

.ad-slot__inner {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 320px;
    min-height: 50px;
    background: #f4f6f8;
    border: 1px dashed #c5cdd4;
    border-radius: var(--radius-md);
    overflow: hidden;
}

.ad-slot__label {
    font-size: 0.6875rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #8a96a3;
    user-select: none;
}

@media (min-width: 768px) {
    .ad-slot__inner {
        max-width: 468px;
        min-height: 60px;
    }
}

@media (min-width: 1024px) {
    .ad-slot__inner {
        max-width: 728px;
        min-height: 90px;
    }
}
