/* ==========================================================================
   Barcellona Basket - Complete Styles (aligned to HTML mockup)
   ========================================================================== */

/* Variables */
:root {
    --bb-primary-orange: #FF4500;
    --bb-primary-red: #D32F2F;
    --bb-accent-yellow: #FFD700;
    --bb-dark: #0A0A0A;
    --bb-dark-gray: #1A1A1A;
    --bb-medium-gray: #2A2A2A;
    --bb-light-gray: #F5F5F5;
    --bb-white: #FFFFFF;
    --bb-font-title: 'Bebas Neue', sans-serif;
    --bb-font-subtitle: 'Oswald', sans-serif;
    --bb-font-body: 'Barlow', sans-serif;
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; }

body.bb-custom-template {
    font-family: var(--bb-font-body);
    background: var(--bb-dark);
    color: var(--bb-white);
    line-height: 1.8;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
}

img { max-width: 100%; height: auto; }
a { color: var(--bb-accent-yellow); text-decoration: none; }
a:hover { color: var(--bb-white); }

.bb-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.bb-section { padding: 5rem 2rem; }

.bb-section-title {
    font-family: var(--bb-font-title);
    font-size: clamp(3rem, 6vw, 5rem);
    text-align: center;
    margin-bottom: 1rem;
    letter-spacing: 2px;
}

.bb-section-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: var(--bb-light-gray);
    margin-bottom: 4rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.bb-section-text {
    text-align: center;
    font-size: 1.2rem;
    color: var(--bb-light-gray);
    max-width: 800px;
    margin: 0 auto 2rem;
    line-height: 2;
}

.bb-section-cta { text-align: center; margin-top: 3rem; }

.highlight {
    background: linear-gradient(135deg, var(--bb-primary-orange), var(--bb-accent-yellow));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ============================================
   NAVIGATION
   ============================================ */
.bb-nav {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 2px solid var(--bb-primary-orange);
    animation: bb-slideDown 0.6s ease-out;
}

@keyframes bb-slideDown {
    from { transform: translateY(-100%); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.bb-nav-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
}

.bb-logo {
    font-family: var(--bb-font-title);
    font-size: 2rem;
    letter-spacing: 2px;
    background: linear-gradient(135deg, var(--bb-primary-orange), var(--bb-accent-yellow));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none;
    display: flex;
    align-items: center;
}

.bb-logo-img { height: 50px; width: auto; display: block; }

.bb-nav-links {
    display: flex;
    gap: 3rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.bb-nav-links a {
    color: var(--bb-white);
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    transition: color 0.3s;
}

.bb-nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--bb-accent-yellow);
    transition: width 0.3s ease;
}

.bb-nav-links a:hover::after,
.bb-nav-links a.active::after { width: 100%; }

.bb-nav-links a:hover,
.bb-nav-links a.active { color: var(--bb-accent-yellow); }

.bb-hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.bb-hamburger span {
    width: 25px;
    height: 3px;
    background: var(--bb-white);
    transition: all 0.3s;
}

/* ============================================
   HERO SECTION (dal mockup)
   ============================================ */
.bb-hero {
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.bb-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    animation: bb-zoomIn 20s ease-in-out infinite alternate;
}

@keyframes bb-zoomIn {
    from { transform: scale(1); }
    to { transform: scale(1.1); }
}

.bb-hero-bg::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50%;
    background: linear-gradient(to top, var(--bb-dark), transparent);
}

/* Decorative glow */
.bb-hero::before {
    content: '';
    position: absolute;
    top: 50%;
    right: -10%;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 69, 0, 0.3), transparent);
    animation: bb-pulse 4s ease-in-out infinite;
    z-index: 1;
}

@keyframes bb-pulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.2); opacity: 0.8; }
}

.bb-hero-content {
    position: relative;
    z-index: 10;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    width: 100%;
}

.bb-hero-title {
    font-family: var(--bb-font-title);
    font-size: clamp(3rem, 10vw, 8rem);
    line-height: 0.9;
    letter-spacing: 3px;
    margin-bottom: 1rem;
    animation: bb-fadeInUp 1s ease-out 0.3s both;
}

.bb-hero-title .highlight {
    display: block;
}

@keyframes bb-fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.bb-hero-subtitle {
    font-size: clamp(1.2rem, 3vw, 2rem);
    font-weight: 500;
    margin-bottom: 2rem;
    color: var(--bb-light-gray);
    animation: bb-fadeInUp 1s ease-out 0.6s both;
}

.bb-hero-cta {
    display: flex;
    gap: 2rem;
    animation: bb-fadeInUp 1s ease-out 0.9s both;
}

/* Basketball Animations */
.bb-basketball-float {
    position: absolute;
    width: 120px;
    height: 120px;
    top: 20%;
    right: 15%;
    opacity: 0.4;
    z-index: 5;
    animation: bb-float 6s ease-in-out infinite;
    filter: drop-shadow(0 10px 30px rgba(255, 69, 0, 0.5));
}

.bb-basketball-float img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    mix-blend-mode: lighten;
    animation: bb-spin 8s linear infinite;
}

@keyframes bb-float {
    0%, 100% { transform: translateY(0px) translateX(0px); }
    25% { transform: translateY(-30px) translateX(20px); }
    50% { transform: translateY(-60px) translateX(0px); }
    75% { transform: translateY(-30px) translateX(-20px); }
}

@keyframes bb-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.bb-basketball-bounce {
    position: absolute;
    width: 80px;
    height: 80px;
    bottom: 30%;
    left: 10%;
    opacity: 0.3;
    z-index: 5;
    animation: bb-bounce 4s ease-in-out infinite;
    filter: drop-shadow(0 10px 20px rgba(255, 215, 0, 0.4));
}

.bb-basketball-bounce img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    mix-blend-mode: lighten;
    animation: bb-spin-slow 10s linear infinite;
}

@keyframes bb-bounce {
    0%, 100% { transform: translateY(0px) scale(1); }
    50% { transform: translateY(-50px) scale(0.9); }
}

@keyframes bb-spin-slow {
    from { transform: rotate(0deg); }
    to { transform: rotate(-360deg); }
}

.bb-basketball-diagonal {
    position: absolute;
    width: 100px;
    height: 100px;
    top: 60%;
    right: 8%;
    opacity: 0.35;
    z-index: 5;
    animation: bb-diagonal 7s ease-in-out infinite;
    filter: drop-shadow(0 10px 25px rgba(211, 47, 47, 0.4));
}

.bb-basketball-diagonal img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    mix-blend-mode: lighten;
    animation: bb-spin 6s linear infinite reverse;
}

@keyframes bb-diagonal {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(-40px, -40px); }
}

/* Legacy support for old ball classes */
.bb-floating-ball { display: none; }

/* ============================================
   STATS SECTION
   ============================================ */
.bb-stats {
    background: var(--bb-dark-gray);
    padding: 4rem 2rem;
    position: relative;
}

.bb-stats::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--bb-primary-orange), var(--bb-accent-yellow), var(--bb-primary-orange));
    background-size: 200% 100%;
    animation: bb-gradientSlide 3s linear infinite;
}

@keyframes bb-gradientSlide {
    0% { background-position: 0% 0%; }
    100% { background-position: 200% 0%; }
}

.bb-stats-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
}

.bb-stat-item {
    text-align: center;
}

.bb-stat-number {
    font-family: var(--bb-font-title);
    font-size: 4rem;
    background: linear-gradient(135deg, var(--bb-primary-orange), var(--bb-accent-yellow));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.bb-stat-label {
    font-size: 1.1rem;
    color: var(--bb-light-gray);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Legacy class aliases */
.bb-stats-bar { /* alias */ }
.bb-stat { text-align: center; }

/* ============================================
   TEAM / ROSTER SECTION
   ============================================ */
.bb-team-section {
    padding: 6rem 2rem;
    background: var(--bb-dark);
}

.bb-team-grid,
.bb-roster-grid {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
}

/* Player Card - Overlay Hover (dal mockup) */
.bb-player-card {
    position: relative;
    overflow: hidden;
    background: var(--bb-dark-gray);
    cursor: pointer;
    transition: transform 0.3s ease;
    border: 2px solid transparent;
}

.bb-player-card:hover {
    transform: translateY(-10px);
    border-color: var(--bb-accent-yellow);
}

.bb-player-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.bb-player-card:hover .bb-player-image {
    transform: scale(1.1);
}

.bb-player-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bb-medium-gray);
    font-family: var(--bb-font-title);
    font-size: 4rem;
    color: var(--bb-primary-orange);
}

/* Info overlay che sale al hover */
.bb-player-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 2rem;
    background: linear-gradient(to top, rgba(10, 10, 10, 0.95), transparent);
    transform: translateY(60%);
    transition: transform 0.3s ease;
}

.bb-player-card:hover .bb-player-info {
    transform: translateY(0);
}

.bb-player-number {
    font-family: var(--bb-font-title);
    font-size: 3rem;
    color: var(--bb-accent-yellow);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.bb-player-name {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.3rem;
}

.bb-player-role {
    font-size: 0.9rem;
    color: var(--bb-light-gray);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.bb-player-details {
    margin-top: 1rem;
    font-size: 0.9rem;
    color: var(--bb-light-gray);
}

/* Legacy fields (if player-stats still used somewhere) */
.bb-player-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.85rem;
    color: var(--bb-light-gray);
    margin-top: 1rem;
}

.bb-player-stats .stat-label { color: var(--bb-accent-yellow); }

/* ============================================
   HISTORY SECTION (two-column dal mockup)
   ============================================ */
.bb-history-section {
    padding: 6rem 2rem;
    background: linear-gradient(135deg, var(--bb-dark-gray) 0%, var(--bb-dark) 100%);
    position: relative;
}

.bb-history-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.bb-history-text h2 {
    font-family: var(--bb-font-title);
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 2rem;
    line-height: 1.1;
}

.bb-history-text .highlight {
    background: linear-gradient(135deg, var(--bb-primary-orange), var(--bb-accent-yellow));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.bb-history-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--bb-light-gray);
    margin-bottom: 1.5rem;
}

.bb-history-image {
    position: relative;
    height: 500px;
    overflow: hidden;
}

.bb-history-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border: 3px solid var(--bb-primary-orange);
}

.bb-history-image::before {
    content: '';
    position: absolute;
    top: -20px;
    right: -20px;
    width: 100%;
    height: 100%;
    border: 3px solid var(--bb-accent-yellow);
    z-index: -1;
}

/* Legacy storia preview (centered) */
.bb-storia-preview { background: linear-gradient(135deg, var(--bb-dark-gray) 0%, var(--bb-dark) 100%); }

/* ============================================
   BUTTONS (dal mockup)
   ============================================ */
.btn {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 700;
    font-family: var(--bb-font-body);
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

/* Primary: gradient arancione/rosso con slide giallo al hover */
.btn-primary {
    background: linear-gradient(135deg, var(--bb-primary-orange), var(--bb-primary-red));
    color: var(--bb-white);
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--bb-accent-yellow), var(--bb-primary-orange));
    transition: left 0.3s ease;
}

.btn-primary:hover::before { left: 0; }

.btn-primary span {
    position: relative;
    z-index: 1;
}

.btn-primary:hover { color: var(--bb-white); }

/* Secondary: bordo giallo, trasparente */
.btn-secondary {
    background: transparent;
    color: var(--bb-white);
    border: 2px solid var(--bb-accent-yellow);
}

.btn-secondary:hover {
    background: var(--bb-accent-yellow);
    color: var(--bb-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(255, 215, 0, 0.3);
}

/* Outline (alias) */
.btn-outline {
    background: transparent;
    color: var(--bb-white);
    border: 2px solid var(--bb-accent-yellow);
}

.btn-outline:hover {
    background: var(--bb-accent-yellow);
    color: var(--bb-dark);
    transform: translateY(-2px);
}

/* ============================================
   CTA SECTION (con animazione rotante dal mockup)
   ============================================ */
.bb-cta-section {
    padding: 6rem 2rem;
    background: linear-gradient(135deg, var(--bb-primary-red), var(--bb-primary-orange));
    text-align: center;
    position: relative;
    overflow: hidden;
}

.bb-cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.2), transparent);
    animation: bb-rotate 20s linear infinite;
}

@keyframes bb-rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.bb-cta-content {
    position: relative;
    z-index: 10;
    max-width: 800px;
    margin: 0 auto;
}

.bb-cta-section h2 {
    font-family: var(--bb-font-title);
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 1.5rem;
}

.bb-cta-section p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

/* ============================================
   PAGE HEADER (per pagine interne)
   ============================================ */
.bb-page-header {
    padding: 150px 2rem 100px;
    background: linear-gradient(135deg, var(--bb-primary-red), var(--bb-primary-orange));
    text-align: center;
    position: relative;
    overflow: hidden;
}

.bb-page-header h1 {
    font-family: var(--bb-font-title);
    font-size: clamp(3rem, 8vw, 6rem);
    letter-spacing: 3px;
}

.bb-page-header p {
    font-size: 1.3rem;
    margin-top: 1rem;
    opacity: 0.9;
}

/* ============================================
   STAFF CARD (dal mockup squadra)
   ============================================ */
.bb-staff-category { margin-bottom: 3rem; }

.bb-staff-category-title {
    font-family: var(--bb-font-title);
    font-size: 2rem;
    color: var(--bb-accent-yellow);
    margin-bottom: 1.5rem;
    letter-spacing: 1px;
}

.bb-staff-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.bb-staff-card {
    background: var(--bb-dark-gray);
    padding: 1.5rem;
    transition: all 0.3s ease;
    border: 1px solid var(--bb-primary-orange);
    border-left: 4px solid var(--bb-primary-orange);
}

.bb-staff-card:hover {
    border-color: var(--bb-accent-yellow);
    border-left-color: var(--bb-accent-yellow);
    transform: translateY(-3px);
}

.bb-staff-card h3,
.bb-staff-name {
    font-family: var(--bb-font-subtitle);
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.3rem;
    color: var(--bb-white);
}

.bb-staff-role {
    color: var(--bb-primary-orange);
    font-size: 0.9rem;
    font-weight: 600;
}

/* ============================================
   NEWS CARD
   ============================================ */
.bb-news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.bb-news-card {
    background: var(--bb-dark-gray);
    overflow: hidden;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.bb-news-card:hover {
    border-color: var(--bb-accent-yellow);
    transform: translateY(-5px);
}

.bb-news-card-link { text-decoration: none; color: inherit; display: block; }

.bb-news-image { height: 200px; overflow: hidden; }

.bb-news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.bb-news-card:hover .bb-news-image img { transform: scale(1.05); }

.bb-news-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bb-medium-gray);
    font-size: 3rem;
}

.bb-news-content { padding: 1.5rem; }

.bb-news-category {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--bb-primary-orange);
    letter-spacing: 1px;
}

.bb-news-title {
    font-family: var(--bb-font-subtitle);
    font-size: 1.3rem;
    margin: 0.5rem 0;
    color: var(--bb-white);
}

.bb-news-meta {
    font-size: 0.85rem;
    color: var(--bb-light-gray);
    opacity: 0.7;
}

.bb-news-excerpt {
    font-size: 0.9rem;
    color: var(--bb-light-gray);
    margin-top: 0.5rem;
}

.bb-news-readmore {
    display: inline-block;
    margin-top: 1rem;
    color: var(--bb-accent-yellow);
    font-weight: 600;
    font-size: 0.9rem;
}

/* Pagination */
.bb-pagination { text-align: center; margin-top: 3rem; }

.bb-pagination .page-numbers {
    display: inline-block;
    padding: 0.5rem 1rem;
    margin: 0 0.3rem;
    border: 1px solid var(--bb-primary-orange);
    color: var(--bb-white);
    transition: all 0.3s;
}

.bb-pagination .page-numbers.current,
.bb-pagination .page-numbers:hover {
    background: var(--bb-primary-orange);
    color: var(--bb-white);
}

/* Empty State */
.bb-empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--bb-light-gray);
}

.bb-empty-state h2 { font-family: var(--bb-font-title); font-size: 2.5rem; }

/* ============================================
   FOOTER
   ============================================ */
.bb-footer {
    background: var(--bb-dark);
    padding: 3rem 2rem 2rem;
    border-top: 2px solid var(--bb-primary-orange);
}

.bb-footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 2rem;
}

.bb-footer-section h3 {
    font-family: var(--bb-font-title);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--bb-accent-yellow);
}

.bb-footer-section p,
.bb-footer-section a {
    color: var(--bb-light-gray);
    line-height: 1.4;
    text-decoration: none;
    display: block;
    margin: 0;
    padding: 0.15rem 0;
    font-size: 0.95rem;
}

.bb-footer-section a:hover { color: var(--bb-accent-yellow); }

.bb-footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--bb-light-gray);
}

.bb-footer-legal {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 1rem;
}

.bb-footer-legal a { color: var(--bb-accent-yellow); }
.bb-footer-legal a:hover { text-decoration: underline; }

/* ============================================
   SINGLE NEWS
   ============================================ */
.bb-news-hero { position: relative; min-height: 50vh; display: flex; align-items: flex-end; }
.bb-news-hero-image { position: absolute; inset: 0; }
.bb-news-hero-image img { width: 100%; height: 100%; object-fit: cover; }
.bb-news-hero-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(10,10,10,0.9), transparent); }
.bb-news-hero-default { background: linear-gradient(135deg, var(--bb-primary-red), var(--bb-primary-orange)); }

.bb-news-hero-content {
    position: relative;
    z-index: 10;
    padding: 3rem 2rem;
    max-width: 900px;
}

.bb-news-hero-content h1 {
    font-family: var(--bb-font-title);
    font-size: clamp(2rem, 5vw, 3.5rem);
    letter-spacing: 1px;
    margin-top: 1rem;
}

.bb-news-meta-single { color: var(--bb-light-gray); margin-top: 1rem; }
.bb-news-body { padding: 3rem 0; }
.bb-news-container { max-width: 800px; }

.bb-news-article-content {
    font-size: 1.1rem;
    line-height: 2;
    color: var(--bb-light-gray);
}

.bb-news-article-content h2, .bb-news-article-content h3 {
    font-family: var(--bb-font-subtitle);
    color: var(--bb-white);
    margin: 2rem 0 1rem;
}

.bb-news-article-content p { margin-bottom: 1.5rem; }
.bb-news-article-content img { border-radius: 4px; margin: 2rem 0; }
.bb-news-footer { margin-top: 3rem; padding-top: 2rem; border-top: 1px solid rgba(255,255,255,0.1); }
.bb-news-nav { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; }
.bb-news-nav-link { color: var(--bb-accent-yellow); font-weight: 600; }
.bb-news-nav-link:hover { color: var(--bb-white); }

/* ============================================
   CONTACT FORM
   ============================================ */
.bb-contatti-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    align-items: start;
}

.bb-contact-form-wrapper h2 {
    font-family: var(--bb-font-title);
    font-size: 2.5rem;
    margin-bottom: 2rem;
}

.bb-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.bb-form-group { margin-bottom: 1.5rem; }

.bb-form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--bb-light-gray);
}

.bb-form-group input,
.bb-form-group textarea,
.bb-form-group select {
    width: 100%;
    padding: 0.8rem 1rem;
    background: var(--bb-dark-gray);
    border: 2px solid var(--bb-medium-gray);
    color: var(--bb-white);
    font-family: var(--bb-font-body);
    font-size: 1rem;
    transition: border-color 0.3s;
}

.bb-form-group input:focus,
.bb-form-group textarea:focus {
    outline: none;
    border-color: var(--bb-primary-orange);
}

.bb-checkbox-label {
    display: flex !important;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.bb-form-message { margin-top: 1rem; padding: 1rem; font-weight: 600; }
.bb-form-message.success { background: rgba(0,200,0,0.2); color: #4caf50; }
.bb-form-message.error { background: rgba(200,0,0,0.2); color: #f44336; }

.bb-info-card {
    background: var(--bb-dark-gray);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border-left: 3px solid var(--bb-primary-orange);
}

.bb-info-card h3 { font-family: var(--bb-font-subtitle); margin-bottom: 0.5rem; }
.bb-info-card p { color: var(--bb-light-gray); }
.bb-info-card a { color: var(--bb-accent-yellow); }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    .bb-nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(10, 10, 10, 0.98);
        flex-direction: column;
        padding: 2rem;
        gap: 1.5rem;
    }

    .bb-nav-links.active { display: flex; }
    .bb-hamburger { display: flex; }

    .bb-hero-cta { flex-direction: column; }
    .btn { width: 100%; text-align: center; }

    .bb-basketball-float,
    .bb-basketball-bounce,
    .bb-basketball-diagonal { display: none; }

    .bb-team-grid,
    .bb-roster-grid { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }

    .bb-history-content { grid-template-columns: 1fr; }
    .bb-history-image { order: -1; }

    .bb-news-grid { grid-template-columns: 1fr; }
    .bb-contatti-grid { grid-template-columns: 1fr; }
    .bb-form-row { grid-template-columns: 1fr; }
    .bb-news-nav { flex-direction: column; text-align: center; }
}

/* ============================================
   SOCIAL LINKS (Footer)
   ============================================ */
.bb-social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.bb-social-links a {
    width: 40px;
    height: 40px;
    border: 2px solid var(--bb-accent-yellow);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--bb-accent-yellow);
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.bb-social-links a:hover {
    background: var(--bb-accent-yellow);
    color: var(--bb-dark);
}

/* ============================================
   ASTRA OVERRIDE — Forza colori bianchi
   Astra inietta colori scuri su h1, h2, p, a
   Questi !important sono necessari per sovrascrivere
   ============================================ */
body.bb-custom-template,
body.bb-custom-template h1,
body.bb-custom-template h2,
body.bb-custom-template h3,
body.bb-custom-template h4,
body.bb-custom-template h5,
body.bb-custom-template h6 {
    color: var(--bb-white) !important;
}

body.bb-custom-template p,
body.bb-custom-template li {
    color: var(--bb-light-gray) !important;
}

/* Hero specifico */
.bb-hero-title,
.bb-hero-subtitle {
    color: var(--bb-white) !important;
}

/* Section titles */
.bb-section-title,
.bb-team-section .bb-section-title,
.bb-history-text h2 {
    color: var(--bb-white) !important;
}

/* Highlight override — il gradient clip deve vincere su !important color */
.highlight,
.bb-hero-title .highlight,
.bb-section-title .highlight,
.bb-history-text .highlight {
    color: transparent !important;
    -webkit-text-fill-color: transparent !important;
    background: linear-gradient(135deg, var(--bb-primary-orange), var(--bb-accent-yellow)) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
}

/* Stats */
.bb-stat-number {
    color: transparent !important;
    -webkit-text-fill-color: transparent !important;
    background: linear-gradient(135deg, var(--bb-primary-orange), var(--bb-accent-yellow)) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
}

.bb-stat-label {
    color: var(--bb-light-gray) !important;
}

/* Player card overlay */
.bb-player-number {
    color: var(--bb-accent-yellow) !important;
}

.bb-player-name {
    color: var(--bb-white) !important;
}

.bb-player-role,
.bb-player-details {
    color: var(--bb-light-gray) !important;
}

/* CTA section */
.bb-cta-section h2,
.bb-cta-section p {
    color: var(--bb-white) !important;
}

/* Page header */
.bb-page-header h1,
.bb-page-header p {
    color: var(--bb-white) !important;
}

/* Footer */
.bb-footer h3,
.bb-footer-section h3 {
    color: var(--bb-accent-yellow) !important;
    font-family: var(--bb-font-title) !important;
    margin-bottom: 0.8rem !important;
}

.bb-footer p,
.bb-footer a,
.bb-footer-section p,
.bb-footer-section a {
    color: var(--bb-light-gray) !important;
    line-height: 1.4 !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    padding: 0.15rem 0 !important;
    font-size: 0.95rem !important;
}

.bb-footer-section a:hover {
    color: var(--bb-accent-yellow) !important;
}

.bb-footer-legal a {
    color: var(--bb-accent-yellow) !important;
}

/* Staff cards */
.bb-staff-card h3 {
    color: var(--bb-white) !important;
}

.bb-staff-role {
    color: var(--bb-primary-orange) !important;
}

/* Staff category title */
.bb-staff-category-title {
    color: var(--bb-accent-yellow) !important;
}

/* History text */
.bb-history-text p {
    color: var(--bb-light-gray) !important;
}

/* Buttons — testo bianco su primary */
.btn-primary,
.btn-primary span {
    color: var(--bb-white) !important;
}

.btn-secondary {
    color: var(--bb-white) !important;
}

.btn-secondary:hover {
    color: var(--bb-dark) !important;
}

/* Nav override */
.bb-nav-links a {
    color: var(--bb-white) !important;
}

.bb-nav-links a:hover,
.bb-nav-links a.active {
    color: var(--bb-accent-yellow) !important;
}

/* Logo */
.bb-logo {
    color: transparent !important;
    -webkit-text-fill-color: transparent !important;
}
