﻿/* Blog Articles Grid Layout */
.width-100 {
    width: 100%;
}

.align-items-center {
    align-items: center;
}

.blog-articles-grid {
    display: flex;
    gap: 10px;
    height: 400px;
    margin: 20px 0;
}

.blog-article-main {
    flex: 2;
    position: relative;
    height: 100%;
}

.article-description {
    color: #545454;
    font-size: 16px;
    line-height: 1.5rem;
}

    .article-description * {
        color: #545454;
    }

.blog-article-sidebar {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 10px;
    height: 100%;
}

.blog-article-card {
    position: relative;
    height: calc(50% - 5px);
}

/* Blog Article Images */
.blog-article-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/*#region Blog Article Titles */
.blog-article-title {
    position: absolute;
    bottom: 50px;
    background-color: rgba(51, 51, 51, 0.6);
    color: #fff;
    padding: 8px 12px;
    margin: 0;
    font-size: 16px;
    font-weight: bold;
}

.blog-article-title-main {
    bottom: 60px;
    left: 10px;
}

.blog-article-title-sidebar {
    right: 0px;
}
/*#endregion */

/*#region Blog Article Buttons */
.blog-article-btn {
    position: absolute;
    bottom: 10px;
    padding: 3px 25px;
    background-color: #ffca14;
    border: none;
    border-radius: 4px;
    color: #fff;
    transition: background-color 0.3s ease;
}

    .blog-article-btn:hover {
        background-color: #e6b512;
    }

.blog-article-btn-main {
    bottom: 20px;
    left: 10px;
}

.blog-article-btn-sidebar {
    right: 10px;
}
/*#endregion */

/*#region Archive Cards Layout */
.blog-archive-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin: 20px 0px;
}

.blog-archive-card {
    flex: 1;
    min-width: 250px;
    max-width: calc(33.333% - 14px);
    overflow: hidden;
}

    .blog-archive-card .card-body {
        padding: 15px;
    }

        .blog-archive-card .card-body img {
            width: 100%;
            height: 200px;
            object-fit: cover; /*contain;*/
            margin-bottom: 15px;
            /*background-color: #f8f9fa;*/
        }

        .blog-archive-card .card-body h4 {
            font-size: 18px;
            font-weight: bold;
            color: #707070;
            margin-bottom: 10px;
            line-height: 1.4;
        }

        .blog-archive-card .card-body .text-muted {
            font-size: 14px;
            margin-bottom: 15px;
        }

    .blog-archive-card .card-footer .btn-card {
        margin-left: 10px;
        padding: 3px 20px;
        background-color: #333;
        color: #fff;
        border: none;
        border-radius: 4px;
        transition: background-color 0.3s ease;
    }

        .blog-archive-card .card-footer .btn-card:hover {
            background-color: #555;
        }

/*#endregion */

/* Blog Sidebar */

.blog-archive-sidebar {
    padding: 50px;
    margin-bottom: 30px;
    background-color: #bbb;
    color: #fff;
    border-radius: 20px;
}

/*#region Blog Sidebar CTA */
.blog-sidebar {
    border-radius: 15px;
    padding: 20px 25px;
    margin-bottom: 30px;
    text-align: center;
}

    .blog-sidebar h4 {
        color: #666666;
        font-size: 22px;
        font-weight: 500;
        letter-spacing: 0.5px;
    }

    .blog-sidebar h3 {
        color: #666666;
        font-size: 24px;
        line-height: 0.2;
    }

    .blog-sidebar .cta-btn {
        background-color: #333333;
        border: none;
        color: white;
        padding: 12px 24px;
        border-radius: 25px;
        font-weight: 600;
        font-size: 14px;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        transition: all 0.3s ease;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    }

        .blog-sidebar .cta-btn:hover {
            background-color: #222222;
            transform: translateY(-2px);
            box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
        }

        .blog-sidebar .cta-btn:active {
            transform: translateY(0);
        }

/*#endregion */


/*#region Blog Sidebar Chat */
.chat-sidebar {
    background-color: #1A1919;
    border-radius: 15px;
    padding: 25px;
    text-align: center;
    margin-bottom: 30px;
}

    .chat-sidebar .chat-icon {
        width: 20%;
        margin: 0 auto 20px auto;
    }

        .chat-sidebar .chat-icon img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

    .chat-sidebar h3 {
        color: white;
        margin: 15px 0 10px 0;
    }

    .chat-sidebar p {
        color: #f3f3f3;
        font-size: 14px;
        line-height: 1.4;
        margin: 0 0 20px 0;
    }

    .chat-sidebar .chat-btn {
        background-color: #F6C422;
        color: #2c2c2c;
        border: none;
        border-radius: 25px;
        padding: 12px 30px;
        font-size: 14px;
        font-weight: bold;
        transition: background-color 0.3s ease;
    }

        .chat-sidebar .chat-btn:hover {
            background-color: #e6ac00;
        }


/*#endregion */

/*#region Blog Sidebar blocco articoli in evidenza */

.featured-articles {
    background-color: #f8f9fa;
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 20px;
    height: 480px; /* Altezza fissa per contenere esattamente 3 articoli + titolo + dots */
}

    .featured-articles h3 {
        color: #666;
        font-size: 20px;
        margin: 0 0 20px 0;
        letter-spacing: 1px;
    }

        .featured-articles h3::after {
            content: '';
            display: block;
            width: 80px;
            height: 3px;
            background-color: #ffc107;
        }

.articles-page {
    transition: opacity 0.3s ease-in-out;
    min-height: 300px; /* Altezza minima per garantire spazio costante */
}

.article-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 25px;
    gap: 15px;
    height: 90px; /* Altezza fissa per ogni articolo */
}

    .article-item:last-child {
        margin-bottom: 0;
    }

.article-image {
    width: 100px;
    height: 100px;
    object-fit: cover;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

    .article-image:hover {
        transform: scale(1.05);
    }

.article-content {
    flex: 1;
}

    .article-content a {
        text-decoration: none;
    }

.article-title {
    color: #999;
    font-size: 15px;
    line-height: 1.3;
    margin: 0 0 0px 0;
    transition: color 0.3s ease;
    min-height: 38px;
}

.article-content a:hover .article-title {
    color: #007bff;
}

.article-date {
    color: #333;
    font-size: 12px;
    margin: 0 0 12px 0;
}

.article-read-btn {
    background-color: #333;
    color: white;
    border: none;
    border-radius: 25px;
    padding: 8px 30px;
    font-size: 12px;
    font-weight: bold;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

    .article-read-btn:hover {
        background-color: #555;
        color: white;
        transform: translateY(-1px);
    }

.pagination-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 40px;
}

.pagination-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #ddd;
    cursor: pointer;
    transition: all 0.3s ease;
}

    .pagination-dot.active {
        background-color: #333;
        transform: scale(1.2);
    }

    .pagination-dot:hover {
        background-color: #999;
    }

/*#endregion */

/*#region Author Info Section */
.author-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 20px 0;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}

.author-details {
    display: flex;
    align-items: center;
}

.author-avatar {
    margin-right: 15px;
    flex-shrink: 0;
}

    .author-avatar img {
        width: 50px;
        height: 50px;
        border-radius: 50%;
        object-fit: cover;
        border: 2px solid #ddd;
    }

.author-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
}

.author-avatar-large {
    flex-shrink: 0;
}

    .author-avatar-large img {
        width: 200px;
        height: 200px;
        border-radius: 50%;
        object-fit: cover;
    }

.author-info-section {
    flex: 1;
    margin-top: 0;
}

.author-social-links {
    display: flex;
    flex-direction: column;
    gap: 15px;
    flex-shrink: 0;
    font-size: 22px;
    margin-right: 70px;
    margin-top: 0;
    align-self: center;
}

    .author-social-links a {
        display: flex;
        align-items: center;
        text-decoration: none;
        color: #333;
        text-transform: uppercase;
    }

        .author-social-links a i {
            width: 30px;
            text-align: center;
            margin-right: 5px;
            font-size: 22px;
        }

        .author-social-links a span {
            font-size: 16px;
            font-weight: 500;
        }

.author-sottotitolo {
    font-size: 18px;
    font-weight: 100;
    margin-bottom: 12px;
}

.author-stats {
    font-size: 16px;
    font-weight: 600;
}


.sky-blue {
    color: #5AB2D9;
}

.blog-article-page-title {
    color: #707070;
}

/*#endregion */

/*#region Condividi Section */
.share-section .btn-share {
    padding: 6px 20px;
    background-color: #ffca14;
    border: none;
    border-radius: 4px;
    color: #fff;
    transition: background-color 0.3s ease;
}

    .share-section .btn-share:hover {
        background-color: #e6b512;
    }

    .share-section .btn-share i {
        margin-right: 5px;
    }

.share-section {
    position: relative;
}

.share-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 1000;
    min-width: 160px;
    padding: 8px 0;
}

.share-link {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    text-decoration: none;
    color: #333;
    transition: background-color 0.2s;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
}

    .share-link:hover {
        background-color: #f5f5f5;
        text-decoration: none;
        color: #333;
    }

    .share-link i {
        width: 20px;
        margin-right: 12px;
        font-size: 16px;
    }

.facebook i {
    color: #1877f2;
}

.linkedin i {
    color: #0077b5;
}

.whatsapp i {
    color: #25d366;
}

.instagram i {
    color: #e1306c;
}

.youtube i {
    color: #ff0000;
}

.share-link span {
    font-size: 14px;
    font-weight: 500;
}


/*#endregion */

/*#region Blog - Tabella offerte articolo */

.table-offerte-blog {
    margin: 30px 0;
    overflow-x: auto;
}

.table-offerte-articolo {
    width: 100%;
    border-collapse: collapse;
    background-color: #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.12);
    border-radius: 4px;
    overflow: hidden;
}

    .table-offerte-articolo thead {
        background-color: #f8f9fa;
        border-bottom: 2px solid #e9ecef;
    }

        .table-offerte-articolo thead th {
            padding: 15px 12px;
            text-align: center;
            font-weight: 600;
            color: #495057;
            font-size: 14px;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            border-bottom: 1px solid #dee2e6;
        }

    .table-offerte-articolo tbody tr {
        border-bottom: 1px solid #e9ecef;
        transition: background-color 0.2s ease;
    }

        .table-offerte-articolo tbody tr:hover {
            background-color: #f8f9fa;
        }

        .table-offerte-articolo tbody tr:last-child {
            border-bottom: none;
        }

    .table-offerte-articolo tbody td {
        padding: 12px;
        vertical-align: middle;
        font-size: 14px;
        color: #495057;
    }

    .table-offerte-articolo .modello-col {
        text-align: left;
        font-weight: 500;
    }

        .table-offerte-articolo .modello-col img {
            width: 50px;
            height: 37px;
            object-fit: cover;
            border-radius: 4px;
        }

    .table-offerte-articolo .text-center {
        text-align: center;
    }

/*#endregion */

/* Responsive Design */
@media (max-width: 768px) {
    .blog-articles-grid {
        flex-direction: column;
        height: auto;
    }

    .blog-article-main {
        flex: none;
        height: 200px;
        margin-bottom: 10px;
    }

    .blog-article-sidebar {
        flex-direction: column;
        height: auto;
    }

    .blog-article-card {
        height: 200px;
        margin-bottom: 10px;
    }

    .blog-article-title-sidebar {
        left: 10px;
        right: auto;
    }

    .blog-article-btn-sidebar {
        left: 10px;
        right: auto;
    }

    /*#region Archive cards stack on mobile */
    .blog-archive-cards {
        flex-direction: column;
    }

    .blog-archive-card {
        max-width: 100%;
        min-width: auto;
    }
    /*#endregion */

    /*#region Blog Sidebar CTA */
    .blog-sidebar h3 {
        font-size: 20px;
    }

    .blog-sidebar h4 {
        font-size: 14px;
    }
    /*#endregion */

    /*#region Blog - Tabella offerte articolo */
    .table-offerte-blog {
        margin: 15px -15px;
    }

    .table-offerte-articolo {
        font-size: 12px;
    }

        .table-offerte-articolo thead th,
        .table-offerte-articolo tbody td {
            padding: 8px 4px;
        }

        .table-offerte-articolo thead th {
            font-size: 11px;
        }

        .table-offerte-articolo .modello-col span {
            display: none;
        }

        .table-offerte-articolo .modello-col::after {
            font-size: 11px;
        }

    .blog-article-page-title {
        font-size: 18px;
        margin-top: 20px
    }

    .blog-article-pubblicato-il {
        display: block;
        font-size: 12px
    }

    .blog-sidebar-wrapper .article-item {
        height: auto;
        margin-bottom: 20px;
    }

        .blog-sidebar-wrapper .article-item .article-title {
            min-height: auto;
        }

        .blog-sidebar-wrapper .article-item .article-read-btn {
            font-size: 12px;
            padding: 3px;
            width: auto;
            border-radius: 5px;
            text-align: center;
        }

    /*#endregion */

    /*#region Blog condividi section */
    .share-menu {
        /*right: auto;*/
        left: 0;
        min-width: 55px;
    }

    .share-link i {
        width: 20px;
        margin-right: 12px;
        font-size: 26px;
    }


    /*#endregion */

    /*#region Blog - Author */
    .author-avatar-large img {
        width: 150px;
        height: 150px;
    }

    .author-info-section {
        margin-top: 0px;
    }

    .author-social-links {
        gap: 10px;
        margin-top: 10px;
        margin-right: 35px;
    }

    /*#endregion */
}

@media (min-width: 769px) and (max-width: 991px) {
    .blog-archive-card {
        max-width: calc(50% - 10px);
        min-width: 250px;
    }
}

@media (min-width: 992px) {
    .blog-archive-card {
        max-width: calc(33.333% - 14px);
        min-width: 250px;
    }
}
