/* ============================================================================
   STILI ARTICOLI - MIOSITO3 + HERO + BADGE COLORATI
   Applicati SOLO alle pagine articolo
   ============================================================================ */

/* ========== BADGE CATEGORIE ========== */
:root {
    --primary-blue: #0066cc;
    --accent-green: #28a745;
    --accent-orange: #ff9800;
    --accent-red: #c41e3a;
    --accent-purple: #9c27b0;
    --accent-teal: #009688;
}

/* Badge base (posizionato su immagine nelle card homepage) */
.article-category {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(0, 0, 0, 0.75);
    color: white;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 10;
}

/* Colori specifici per categoria */
.category-mercati { 
    background: #0066cc !important;
}

.category-crypto { 
    background: #ff9800 !important;
}

.category-investimenti { 
    background: #28a745 !important;
}

.category-economia { 
    background: #9c27b0 !important;
}

.category-trading { 
    background: #009688 !important;
}

.category-risparmio { 
    background: #c41e3a !important;
}

/* Badge nella pagina articolo (sotto hero, inline nell'article-meta) */
.article-meta .article-category {
    position: static;
    display: inline-block;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    color: white;
}

/* ========== HERO HOMEPAGE ========== */
.hero-homepage {
    position: relative;
    width: 100%;
    max-height: 350px;
    overflow: hidden;
    margin-bottom: var(--spacing-2xl);
}

.hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    filter: brightness(0.7);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.3), rgba(0,0,0,0.6));
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-content {
    text-align: center;
    color: white;
    padding: var(--spacing-xl);
}

.hero-title {
    font-family: var(--font-serif);
    font-size: clamp(24px, 4vw, 42px);
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero-subtitle {
    font-size: clamp(16px, 2vw, 20px);
    font-weight: 400;
    opacity: 0.95;
}

/* ========== HERO BLOG (per articoli) ========== */
.hero-blog {
    position: relative;
    width: 100%;
    height: 350px;
    background: linear-gradient(135deg, var(--primary-blue-dark) 0%, var(--primary-blue) 100%);
    overflow: hidden;
}

.hero-blog .hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-blog .hero-content {
    text-align: center;
    color: white;
    padding: 0 20px;
    max-width: 900px;
}

.hero-blog .hero-title {
    font-size: clamp(24px, 4vw, 36px);
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.3;
}

.hero-blog .hero-author {
    font-size: 16px;
    opacity: 0.9;
}

/* ========== BREADCRUMB ========== */
.breadcrumb {
    margin: 30px 0;
    padding: 0;
}

.breadcrumb ol {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
    padding: 0;
    font-size: 14px;
}

.breadcrumb li {
    display: flex;
    align-items: center;
}

.breadcrumb li:not(:last-child)::after {
    content: '›';
    margin-left: 8px;
    color: var(--gray-500);
}

.breadcrumb a {
    color: var(--primary-blue);
    text-decoration: none;
    transition: color 0.2s ease;
}

.breadcrumb a:hover {
    color: var(--primary-blue-dark);
    text-decoration: underline;
}

.breadcrumb li[aria-current="page"] {
    color: var(--text-muted);
}

/* ========== CONTAINER MAIN ========== */
.container-main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 32px 24px;
}

/* ========== LAYOUT GRID ========== */
.layout-grid {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 48px;
    align-items: start;
}

.main-column {
    min-width: 0;
}

.sidebar-column {
    position: sticky;
    top: 100px;
}

/* ========== ARTICLE HEADER ========== */
.article-header {
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 3px solid #e0e0e0;
}

.titolo-articolo {
    font-size: 36px;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1.3;
    margin-bottom: 16px;
}

.article-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 14px;
    color: #666666;
}

.article-meta .separator {
    color: #bdbdbd;
}

.reading-time {
    font-weight: 500;
}

/* ========== LEAD PARAGRAPH ========== */
.lead-paragraph {
    font-size: 20px;
    line-height: 1.7;
    color: #333333;
    margin-bottom: 32px;
    font-weight: 400;
    border-left: 4px solid #c41e3a;
    padding-left: 24px;
    font-style: italic;
}

/* ========== ARTICOLO COMPLETO ========== */
.articolo-completo {
    font-size: 18px;
    line-height: 1.8;
    color: #333333;
}

.articolo-completo h2 {
    font-size: 28px;
    margin-top: 48px;
    margin-bottom: 16px;
    color: #1a1a1a;
    font-weight: 600;
}

.articolo-completo h3 {
    font-size: 22px;
    margin-top: 32px;
    margin-bottom: 8px;
    color: #1a1a1a;
    font-weight: 600;
}

.articolo-completo p {
    margin-bottom: 24px;
}

.articolo-completo ul,
.articolo-completo ol {
    margin-bottom: 24px;
    padding-left: 32px;
}

.articolo-completo li {
    margin-bottom: 8px;
}

.articolo-completo blockquote {
    border-left: 4px solid #0066cc;
    padding-left: 24px;
    margin: 32px 0;
    font-style: italic;
    color: #666666;
}

.articolo-completo img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 32px 0;
}

.articolo-completo a {
    color: #0066cc;
    text-decoration: underline;
}

.articolo-completo a:hover {
    color: #004499;
}

/* ========== ARTICLE FOOTER ========== */
.article-footer {
    margin-top: 48px;
    padding-top: 32px;
    border-top: 2px solid #e0e0e0;
}

.article-tags {
    margin-bottom: 24px;
}

.tag-link {
    display: inline-block;
    padding: 6px 14px;
    background: #f5f5f5;
    color: #333333;
    border-radius: 20px;
    font-size: 13px;
    margin-right: 8px;
    margin-bottom: 8px;
    transition: all 0.2s ease;
}

.tag-link:hover {
    background: #0066cc;
    color: white;
}

.article-share {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.share-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
    transition: all 0.2s ease;
}

.share-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.share-twitter { 
    background: #000000;
    font-family: serif;
    font-size: 20px;
    font-weight: bold;
}

.share-twitter::before {
    content: "𝕏";
}

.share-facebook { background: #1877f2; }
.share-twitter { background: #000000; }
.share-linkedin { background: #0a66c2; }
.share-whatsapp { background: #25D366; }

/* ========== SIDEBAR WIDGETS ========== */
.widget {
    background: #f5f5f5;
    padding: 24px;
    border-radius: 8px;
    margin-bottom: 24px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.widget-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 16px;
    color: #1a1a1a;
}

.popular-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.popular-item {
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid #e0e0e0;
}

.popular-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.popular-item a {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    text-decoration: none;
    color: #333333;
    transition: color 0.2s ease;
}

.popular-item a:hover {
    color: #0066cc;
}

.popular-number {
    font-size: 24px;
    font-weight: 700;
    color: #c41e3a;
    min-width: 30px;
    font-family: 'Playfair Display', 'Georgia', serif;
}

.popular-title {
    font-size: 15px;
    line-height: 1.5;
    font-weight: 600;
}

/* ========== BOTTONI FLOTTANTI WHATSAPP/TELEGRAM ========== */
.whatsapp-float,
.telegram-float {
    position: fixed;
    right: 24px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 28px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    z-index: 997;
}

.whatsapp-float {
    bottom: 165px;
    background: #25D366;
}

.telegram-float {
    bottom: 100px;
    background: #0088cc;
}

.whatsapp-float:hover,
.telegram-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* ========== STATS BOX ========== */
.stats-box {
    display: flex;
    gap: 24px;
    justify-content: space-around;
    background: linear-gradient(135deg, #e7f3ff 0%, #f0f8ff 100%);
    padding: 32px 24px;
    border-radius: 8px;
    margin: 32px 0;
    border: 1px solid #b3d9ff;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
    flex: 1;
    min-width: 150px;
}

.stat-number {
    display: block;
    font-size: 36px;
    font-weight: 700;
    color: #0066cc;
    font-family: 'Playfair Display', 'Georgia', serif;
    margin-bottom: 8px;
}

.stat-label {
    display: block;
    font-size: 14px;
    color: #666666;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ========== COMPARISON BOX ========== */
.comparison-box {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
    margin: 32px 0;
}

.comparison-item {
    background: #ffffff;
    padding: 24px;
    border-radius: 8px;
    border: 2px solid #e0e0e0;
    transition: all 0.3s ease;
}

.comparison-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    border-color: #0066cc;
}

.comparison-item h3 {
    color: #0066cc;
    font-size: 20px;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid #e7f3ff;
}

.comparison-item p {
    margin-bottom: 12px;
    font-size: 16px;
    line-height: 1.6;
}

/* ========== HIGHLIGHT BOX VARIANTS ========== */
.highlight-box {
    background: #e7f3ff;
    padding: 24px;
    margin: 32px 0;
    border-radius: 8px;
    border-left: 4px solid #0066cc;
}

.highlight-box.warning {
    background: #fff8e6;
    border-left-color: #ff9800;
}

.highlight-box.danger {
    background: #ffebee;
    border-left-color: #c41e3a;
}

.highlight-box h3 {
    margin-top: 0;
    margin-bottom: 16px;
    font-size: 20px;
}

.highlight-box.warning h3 {
    color: #ff9800;
}

.highlight-box.danger h3 {
    color: #c41e3a;
}

/* ========== BOX INFO ========== */
.box-info {
    background: #e7f3ff;
    padding: 24px;
    margin: 32px 0;
    border-radius: 8px;
    border: 1px solid #b3d9ff;
    border-left: 4px solid #0066cc;
}

.box-info h3 {
    color: #0066cc;
    margin-top: 0;
    margin-bottom: 12px;
    font-size: 20px;
}

.box-info p {
    margin-bottom: 0;
}

/* ========== QUOTE BOX ========== */
.quote-box {
    background: #e7f3ff;
    border-left: 4px solid #0066cc;
    padding: 24px 32px;
    margin: 48px 0;
    font-style: italic;
    font-size: 19px;
    line-height: 1.8;
    color: #333333;
    border-radius: 8px;
}

.quote-text {
    font-size: 19px;
    line-height: 1.8;
    margin-bottom: 16px;
    color: #333333;
}

.quote-author {
    font-size: 16px;
    font-weight: 600;
    color: #0066cc;
    margin: 0;
    font-style: normal;
}

/* ========== PARAGRAFO INTRO ========== */
.paragrafo-intro {
    font-size: 18px;
    line-height: 1.8;
    margin-bottom: 32px;
}

/* ========== LISTE PERSONALIZZATE ========== */
.lista-vantaggi,
.lista-strategie {
    list-style: none;
    margin-left: 0;
    padding-left: 0;
}

.lista-vantaggi li,
.lista-strategie li {
    padding-left: 48px;
    position: relative;
    margin-bottom: 16px;
    line-height: 1.6;
}

.lista-vantaggi li::before {
    content: '✔';
    position: absolute;
    left: 0;
    color: #28a745;
    font-weight: 700;
    font-size: 20px;
}

.lista-strategie li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: #0066cc;
    font-weight: 700;
    font-size: 18px;
}

/* Lista custom con varianti di colore */
.custom-list {
    list-style: none;
    padding-left: 0;
}

.custom-list li {
    padding-left: 48px;
    position: relative;
    margin-bottom: 16px;
}

.custom-list.danger li::before {
    content: '⚠';
    position: absolute;
    left: 0;
    color: #c41e3a;
    font-size: 20px;
}

.custom-list.success li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #28a745;
    font-size: 20px;
}

/* ========== CONCLUSIONI ========== */
.conclusioni {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 32px;
    margin: 48px 0;
    border-radius: 8px;
    border-top: 4px solid #0066cc;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.conclusioni h2 {
    color: #0066cc;
    font-size: 28px;
    margin-top: 0;
    margin-bottom: 24px;
}

.conclusioni p {
    font-size: 18px;
    line-height: 1.8;
    margin-bottom: 16px;
}

.conclusioni .emphasis {
    color: #0066cc;
    font-weight: 700;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
    .layout-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .sidebar-column {
        position: static;
        order: 2;
    }
    
    .main-column {
        order: 1;
    }
    
    .titolo-articolo {
        font-size: 28px;
    }
    
    .lead-paragraph {
        font-size: 18px;
        padding-left: 16px;
    }
    
    .articolo-completo {
        font-size: 16px;
    }
    
    .articolo-completo h2 {
        font-size: 24px;
    }
    
    .articolo-completo h3 {
        font-size: 20px;
    }
    
    .hero-homepage {
        max-height: 250px;
    }
    
    .container-main {
        padding: 24px 16px;
    }
}

@media (max-width: 480px) {
    .titolo-articolo {
        font-size: 24px;
    }
    
    .lead-paragraph {
        font-size: 16px;
        padding-left: 12px;
    }
    
    .article-meta {
        font-size: 12px;
    }
    
    .hero-homepage {
        max-height: 200px;
    }
    
    .hero-title {
        font-size: 20px;
    }
    
    .hero-subtitle {
        font-size: 14px;
    }
    
    .whatsapp-float,
    .telegram-float {
        width: 50px;
        height: 50px;
        font-size: 24px;
    }
    
    .stats-box {
        flex-direction: column;
        gap: 16px;
    }
    
    .stat-item {
        min-width: 100%;
    }
    
    .comparison-box {
        grid-template-columns: 1fr;
    }
    
    .conclusioni {
        padding: 24px 16px;
    }
    
    .conclusioni h2 {
        font-size: 24px;
    }
    
    .conclusioni p {
        font-size: 16px;
    }
}

/* ========== FINE CSS ARTICOLI ========== */
