/* Bonus Immobiliare — static/legal + author pages (brand-v2 migration) */

@layer components {

.static-hero,
.author-hero {
    padding: 7rem var(--space-2xl) var(--space-2xl);
    background: linear-gradient(165deg, var(--olive-deep) 0%, var(--olive) 100%);
    position: relative;
    overflow: hidden;
    color: var(--cream);
}

.static-hero::before,
.author-hero::before {
    content: '';
    position: absolute;
    top: -30%;
    right: -10%;
    width: 50%;
    height: 100%;
    background: radial-gradient(ellipse, rgba(191, 166, 122, 0.12) 0%, transparent 60%);
    pointer-events: none;
}

.static-hero-inner,
.author-hero-inner {
    max-width: var(--max-width-narrow);
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.static-hero h1,
.author-hero h1 {
    font-size: var(--text-article-h1);
    font-weight: var(--weight-bold);
    margin: 0 0 var(--space-sm);
}

.static-subtitle,
.author-tagline {
    font-size: var(--text-lg);
    line-height: var(--leading-normal);
    color: rgba(250, 247, 242, 0.82);
    max-width: 680px;
    margin: 0;
}

.static-content,
.author-content {
    max-width: var(--max-width-narrow);
    margin: 0 auto;
    padding: var(--space-3xl) var(--space-xl);
}

.static-body {
    font-size: var(--text-body);
    line-height: var(--leading-loose);
}

.static-body h2,
.author-bio-section h2,
.author-articles-section h2 {
    font-size: var(--text-3xl);
    margin: var(--space-2xl) 0 var(--space-md);
}

.static-body h2:first-child,
.author-bio-section:first-child h2 {
    margin-top: 0;
}

.static-body h3,
.credential-card h3,
.author-article-item h3 {
    font-size: var(--text-xl);
    margin: var(--space-xl) 0 var(--space-sm);
}

.static-body p,
.author-bio-section p {
    color: var(--bark);
    margin: 0 0 var(--space-lg);
}

.static-body a,
.author-bio-section a {
    color: var(--terracotta);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.static-body ul,
.static-body ol {
    list-style: disc;
    margin: 0 0 var(--space-lg);
    padding-left: var(--space-xl);
}

.static-body li {
    margin-bottom: var(--space-sm);
}

.last-update {
    color: var(--earth);
    font-size: var(--text-sm);
    margin-top: var(--space-2xl);
}

.cookie-table {
    width: 100%;
    border-collapse: collapse;
    margin: var(--space-xl) 0;
    font-size: 0.95rem;
}

.cookie-table th,
.cookie-table td {
    padding: var(--space-md);
    text-align: left;
    border-bottom: 1px solid var(--cream-dark);
    vertical-align: top;
}

.cookie-table th {
    background: var(--sage-mist);
    font-family: var(--font-display);
    color: var(--olive-deep);
}

.cookie-type {
    display: inline-block;
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--radius-full);
    font-size: var(--text-xs);
    font-weight: var(--weight-bold);
    letter-spacing: var(--tracking-wider);
    text-transform: uppercase;
}

.cookie-type.necessary {
    background: var(--sage-mist);
    color: var(--olive-deep);
}

.author-hero-inner {
    display: flex;
    align-items: center;
    gap: var(--space-xl);
    max-width: 900px;
}

.author-avatar-img {
    width: 128px;
    height: 128px;
    border-radius: var(--radius-full);
    object-fit: cover;
    border: 4px solid var(--gold);
    box-shadow: var(--shadow-medium);
    flex: 0 0 auto;
}

.author-jobtitle {
    color: var(--gold-light);
    font-weight: var(--weight-bold);
    margin: 0 0 var(--space-xs);
}

.author-content {
    max-width: 960px;
}

.author-bio-section {
    margin-bottom: var(--space-3xl);
}

.author-credentials {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-lg);
    margin: var(--space-xl) 0;
}

.credential-card {
    background: var(--bg-surface);
    border: 1px solid var(--cream-dark);
    border-radius: var(--radius-md);
    padding: var(--space-lg);
    box-shadow: var(--shadow-soft);
}

.credential-card h3 {
    color: var(--olive-deep);
    margin-top: 0;
}

.credential-card p {
    color: var(--earth);
    margin: 0;
    line-height: var(--leading-relaxed);
}

.author-links {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-md);
    margin-top: var(--space-xl);
}

.author-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: var(--space-sm) var(--space-lg);
    border-radius: var(--radius-full);
    background: var(--olive);
    color: var(--cream) !important;
    text-decoration: none !important;
    font-weight: var(--weight-bold);
    transition: var(--transition-base);
}

.author-link:hover {
    background: var(--terracotta);
    transform: translateY(-2px);
}

.author-articles-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-lg);
    padding: 0;
    margin: var(--space-xl) 0 0;
}

.author-article-item a {
    display: block;
    height: 100%;
    background: var(--bg-surface);
    border: 1px solid var(--cream-dark);
    border-radius: var(--radius-md);
    padding: var(--space-lg);
    box-shadow: var(--shadow-soft);
    text-decoration: none;
    transition: var(--transition-base);
}

.author-article-item a:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-medium);
}

.author-article-cat {
    display: inline-block;
    color: var(--terracotta);
    font-size: var(--text-xs);
    font-weight: var(--weight-bold);
    letter-spacing: var(--tracking-wider);
    text-transform: uppercase;
    margin-bottom: var(--space-sm);
}

.author-article-item h3 {
    color: var(--olive-deep);
    line-height: var(--leading-snug);
    margin: 0 0 var(--space-sm);
}

.author-article-item p {
    color: var(--earth);
    font-size: var(--text-base);
    line-height: var(--leading-relaxed);
    margin: 0 0 var(--space-md);
}

.author-article-meta {
    color: var(--earth);
    font-size: var(--text-sm);
}

@media (max-width: 768px) {
    .static-hero,
    .author-hero {
        padding: 5.5rem var(--space-lg) var(--space-xl);
    }

    .static-content,
    .author-content {
        padding: var(--space-2xl) var(--space-lg);
    }

    .author-hero-inner,
    .author-credentials,
    .author-articles-list {
        grid-template-columns: 1fr;
    }

    .author-hero-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .author-avatar-img {
        width: 104px;
        height: 104px;
    }

    .cookie-table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
}

}
