/* ===== PAGE STYLES ===== */
/* Shared styles for Wellness Lab and Academy pages */

html {
    background-color: #0a0a1a;
}

html,
body {
    height: auto;
    overflow-x: hidden;
    overflow-y: auto;
}

/* Page Theme Colors */
.page-blue {
    --page-primary: #2563eb;
    --page-secondary: #60a5fa;
    --page-glow: rgba(37, 99, 235, 0.5);
}

.page-red {
    --page-primary: #dc2626;
    --page-secondary: #f87171;
    --page-glow: rgba(220, 38, 38, 0.5);
}

.page-gold {
    --page-primary: #D9C89E;
    --page-secondary: #6F42C1;
    --page-glow: rgba(217, 200, 158, 0.4);
}

/* ===== PAGE HEADER ===== */
.page-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 3rem;
    z-index: 100;
    background: linear-gradient(180deg, rgba(10, 10, 15, 0.95) 0%, transparent 100%);
}

.back-button {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.95rem;
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.back-button:hover {
    color: #fff;
    border-color: var(--page-primary);
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 0 20px var(--page-glow);
    transform: translateY(-2px) scale(1.03);
}

.back-arrow {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.back-button:hover .back-arrow {
    transform: translateX(-5px);
}

.header-title {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.header-title h1 {
    font-size: 1.8rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--bianco) 0%, var(--page-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.pill-small {
    width: 40px;
    height: 18px;
}

/* ===== PAGE CONTENT ===== */
.page-content {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    padding: 8rem 2rem 4rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* Hero Section */
.hero-section {
    text-align: center;
    padding: 4rem 0;
    margin-bottom: 4rem;
}

.hero-text h2 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--bianco) 0%, var(--page-secondary) 50%, var(--oro) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-text p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.7);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.8;
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 5rem;
}

.service-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 2.5rem 2rem;
    text-align: center;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--page-glow) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: var(--page-primary);
    box-shadow: 0 20px 60px var(--page-glow);
}

.service-card:hover::before {
    opacity: 0.2;
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
}

.service-card h3 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--bianco);
    position: relative;
    z-index: 1;
}

.service-card p {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.6;
    position: relative;
    z-index: 1;
}

/* CTA Section */
.cta-section {
    text-align: center;
    padding: 4rem 2rem;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 3rem;
}

.cta-section h3 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--bianco);
}

.cta-section p {
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 2rem;
}

.cta-button {
    display: inline-block;
    padding: 1rem 3rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.1rem;
    transition: all 0.4s ease;
}

.cta-blue {
    background: linear-gradient(135deg, var(--blu-pillola) 0%, #1d4ed8 100%);
    color: white;
    box-shadow: 0 10px 30px rgba(37, 99, 235, 0.3);
}

.cta-blue:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 20px 50px rgba(37, 99, 235, 0.5);
}

.cta-red {
    background: linear-gradient(135deg, var(--rosso-pillola) 0%, #b91c1c 100%);
    color: white;
    box-shadow: 0 10px 30px rgba(220, 38, 38, 0.3);
}

.cta-red:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 20px 50px rgba(220, 38, 38, 0.5);
}

.cta-gold {
    background: linear-gradient(135deg, var(--oro) 0%, var(--viola) 100%);
    color: white;
    box-shadow: 0 10px 30px rgba(217, 200, 158, 0.3);
}

.cta-gold:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 20px 50px rgba(217, 200, 158, 0.5);
}

/* ===== ACADEMY PAGE STYLES ===== */
.academy-content {
    max-width: 900px;
}

.academy-hero .hero-tagline {
    font-size: 1.3rem;
    color: rgba(217, 200, 158, 0.9);
    font-style: italic;
    margin-bottom: 1.5rem;
}

.wip-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: rgba(217, 200, 158, 0.15);
    border: 1px solid rgba(217, 200, 158, 0.4);
    padding: 0.6rem 1.5rem;
    border-radius: 50px;
    font-size: 0.9rem;
    color: var(--oro);
    animation: wipPulse 2s ease-in-out infinite;
}

.wip-icon {
    font-size: 1.2rem;
}

@keyframes wipPulse {

    0%,
    100% {
        opacity: 0.8;
    }

    50% {
        opacity: 1;
        box-shadow: 0 0 20px rgba(217, 200, 158, 0.3);
    }
}

/* Academy Sections */
.academy-section {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 2.5rem;
    margin-bottom: 2rem;
    transition: all 0.3s ease;
}

.academy-section:hover {
    border-color: rgba(217, 200, 158, 0.3);
    background: rgba(255, 255, 255, 0.04);
}

.section-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.academy-section h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--oro);
    margin-bottom: 1rem;
}

.academy-section p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.7;
    margin-bottom: 1rem;
}

.section-note {
    font-style: italic;
    color: rgba(217, 200, 158, 0.8);
    margin-top: 1rem;
}

/* Feature Lists */
.feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.feature-list li {
    position: relative;
    padding: 0.6rem 0 0.6rem 1.5rem;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.6;
}

.feature-list li::before {
    content: '◆';
    position: absolute;
    left: 0;
    color: var(--oro);
    font-size: 0.6rem;
    top: 0.9rem;
}

.feature-list.styled li::before {
    content: '✦';
    color: var(--viola);
    font-size: 0.8rem;
    top: 0.75rem;
}

.feature-list.benefits li::before {
    content: '';
}

.feature-list.benefits li {
    padding-left: 0;
    font-weight: 500;
}

/* Highlight Section */
.highlight-section {
    background: linear-gradient(135deg, rgba(217, 200, 158, 0.1) 0%, rgba(111, 66, 193, 0.1) 100%);
    border-color: rgba(217, 200, 158, 0.3);
}

/* Pill Gold */
.pill-gold {
    background: linear-gradient(135deg, var(--oro) 0%, var(--viola) 100%);
    border-radius: 50px;
}

/* Page Footer */
.page-footer {
    text-align: center;
    padding: 2rem;
    position: relative;
    z-index: 1;
}

.page-footer p {
    color: rgba(217, 200, 158, 0.5);
    font-size: 0.85rem;
    letter-spacing: 0.2rem;
    text-transform: uppercase;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .page-header {
        padding: 1rem 1.5rem;
        flex-direction: column;
        gap: 1rem;
    }

    /* Hide header title on mobile for Academy page to prevent overlap */
    .page-gold .header-title {
        display: none;
    }

    .back-button span:not(.back-arrow) {
        display: none;
    }

    .hero-text h2 {
        font-size: 2rem;
    }

    .hero-text p {
        font-size: 1rem;
    }

    .page-content {
        padding: 7rem 1.5rem 3rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .cta-section h3 {
        font-size: 1.5rem;
    }
}