/* ===== MEDIAVERSO LAYOUT STYLE ===== */

.main-wrapper {
    padding-top: 100px;
    background: #f5f5f5;
    min-height: 100vh;
}

.container-full {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 15px;
}

/* ===== HERO SLIDER ===== */
.hero-slider-wrapper {
    margin-bottom: 30px;
}

.hero-slider-container {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 20px;
    margin-top: 20px;
}

.main-slider {
    position: relative;
    height: 500px;
    overflow: hidden;
    background: #000;
}

.slider-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
    height: 100%;
}

.slider-item {
    min-width: 100%;
    height: 100%;
    position: relative;
}

.slider-image {
    width: 100%;
    height: 100%;
    position: relative;
}

.slider-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slider-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 60%);
}

.slider-content {
    position: absolute;
    bottom: 0;
    left: 80px;
    right: 80px;
    padding: 40px;
    color: white;
    z-index: 2;
}

.slider-badges {
    display: flex;
    gap: 8px;
    margin-bottom: 15px;
}

.slider-badge {
    background: var(--color-primary-800);
    color: white;
    padding: 6px 14px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
}

.slider-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 15px;
    font-size: 12px;
}

.slider-date {
    display: flex;
    align-items: center;
    gap: 6px;
}

.slider-author {
    display: flex;
    align-items: center;
    gap: 8px;
}

.slider-author img {
    width: 24px;
    height: 24px;
    border-radius: 50%;
}

.slider-title {
    font-size: 36px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 15px;
    max-width: 600px;
}

.slider-title a {
    color: white;
    text-decoration: none;
    transition: color 0.3s;
}

.slider-title a:hover {
    color: var(--color-primary-500);
}

.slider-excerpt {
    font-size: 15px;
    line-height: 1.6;
    max-width: 600px;
    margin-bottom: 20px;
    color: rgba(255,255,255,0.9);
}

.slider-stats {
    display: flex;
    gap: 20px;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
}

/* Slider Navigation */
.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.9);
    border: none;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s;
}

.slider-nav:hover {
    background: var(--color-primary-800);
    color: white;
}

.slider-prev {
    left: 20px;
}

.slider-next {
    right: 20px;
}

.slider-nav svg {
    stroke: currentColor;
}

/* Slider Dots */
.slider-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.slider-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    border: none;
    cursor: pointer;
    transition: all 0.3s;
}

.slider-dot.active {
    background: var(--color-primary-800);
    width: 30px;
    border-radius: 5px;
}

/* Side Info Card */
.hero-side-card {
    background: white;
    height: 500px;
    overflow: hidden;
}

.side-card-badge-header {
    background: var(--color-primary-800);
    color: white;
    padding: 12px 20px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.5px;
}

.side-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
    height: calc(100% - 48px);
}

.side-card-image {
    position: relative;
    height: 60%;
    overflow: hidden;
}

.side-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.side-card-link:hover .side-card-image img {
    transform: scale(1.1);
}

.side-card-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background: var(--color-primary-800);
    color: white;
    padding: 6px 14px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
}

.side-card-content {
    padding: 25px;
    height: 40%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.side-card-title {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 12px;
    color: #333;
    transition: color 0.3s;
}

.side-card-link:hover .side-card-title {
    color: var(--color-primary-800);
}

.side-card-excerpt {
    font-size: 13px;
    line-height: 1.6;
    color: #666;
}

.content-layout {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 30px;
    margin-top: 20px;
}

.main-content {
    width: 100%;
}

/* ===== TOP GRID - 2 SMALL CARDS ===== */
.grid-top-small {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 20px;
}

.small-card {
    background: white;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}

.small-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.small-card a {
    display: block;
    text-decoration: none;
    color: inherit;
}

.small-card-image {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.small-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.small-card:hover .small-card-image img {
    transform: scale(1.1);
}

.small-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--color-primary-800);
    color: white;
    padding: 6px 14px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px;
}

.small-card-content {
    padding: 20px;
}

.small-card-title {
    font-size: 17px;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 12px;
    color: #333;
    transition: color 0.3s;
}

.small-card:hover .small-card-title {
    color: var(--color-primary-800);
}

.small-card-meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 10px;
    color: #999;
    letter-spacing: 0.5px;
}

.meta-author {
    color: var(--color-primary-800);
    font-weight: 600;
}

/* ===== FEATURED LARGE ARTICLE ===== */
.featured-section {
    margin-bottom: 20px;
}

.featured-large {
    background: white;
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    overflow: hidden;
    transition: box-shadow 0.3s;
}

.featured-large:hover {
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.featured-large a {
    display: contents;
    text-decoration: none;
    color: inherit;
}

.featured-large-image {
    position: relative;
    height: 400px;
    overflow: hidden;
}

.featured-large-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.featured-large:hover .featured-large-image img {
    transform: scale(1.05);
}

.featured-large-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background: var(--color-primary-800);
    color: white;
    padding: 8px 16px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
}

.featured-large-content {
    padding: 35px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.featured-large-title {
    font-size: 26px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 15px;
    color: #333;
    transition: color 0.3s;
}

.featured-large:hover .featured-large-title {
    color: var(--color-primary-800);
}

.featured-large-meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 10px;
    color: #999;
    margin-bottom: 15px;
    letter-spacing: 0.5px;
}

.featured-large-excerpt {
    font-size: 14px;
    line-height: 1.6;
    color: #666;
}

/* ===== BOTTOM GRID - 3 OVERLAY CARDS ===== */
.grid-bottom-large {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.overlay-card {
    position: relative;
    height: 280px;
    overflow: hidden;
    transition: transform 0.3s;
}

.overlay-card:hover {
    transform: translateY(-5px);
}

.overlay-card a {
    display: block;
    height: 100%;
    text-decoration: none;
}

.overlay-card-image {
    position: relative;
    width: 100%;
    height: 100%;
}

.overlay-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.overlay-card:hover .overlay-card-image img {
    transform: scale(1.1);
}

.overlay-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--color-primary-800);
    color: white;
    padding: 6px 14px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px;
    z-index: 2;
}

.overlay-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, transparent 100%);
    padding: 30px 20px;
    color: white;
}

.overlay-title {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.4;
    color: white;
    margin: 0;
}

/* ===== DA NON PERDERE SECTION ===== */
.highlight-section {
    background: #2a2a2a;
    padding: 35px;
    margin-bottom: 30px;
}

.highlight-section-title {
    background: var(--color-primary-800);
    color: white;
    padding: 12px 20px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1.5px;
    margin: 0 0 25px 0;
    display: inline-block;
}

.highlight-grid-three {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.highlight-card {
    position: relative;
}

.highlight-card-badge {
    background: var(--color-primary-800);
    color: white;
    padding: 5px 12px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px;
    display: inline-block;
    margin-bottom: 12px;
}

.highlight-card-title {
    font-size: 17px;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 10px;
}

.highlight-card-title a {
    color: white;
    text-decoration: none;
    transition: color 0.3s;
}

.highlight-card-title a:hover {
    color: var(--color-primary-800);
}

.highlight-card-excerpt {
    font-size: 13px;
    line-height: 1.6;
    color: #ccc;
    margin-bottom: 10px;
}

.highlight-card-meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 10px;
    color: #888;
    letter-spacing: 0.5px;
}

/* ===== ULTIMI ARTICOLI SECTION ===== */
.latest-section {
    margin-bottom: 40px;
}

.latest-section-title {
    background: var(--color-primary-800);
    color: white;
    padding: 12px 20px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1.5px;
    margin: 0 0 20px 0;
    display: inline-block;
}

.latest-articles-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.latest-article-card {
    background: white;
    position: relative;
    overflow: hidden;
    transition: box-shadow 0.3s;
}

.latest-article-card:hover {
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.latest-large {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1.3fr 1fr;
}

.latest-article-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--color-primary-800);
    color: white;
    padding: 5px 12px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px;
    z-index: 2;
}

.latest-article-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.latest-large .latest-article-image {
    height: 100%;
}

.latest-article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.latest-article-card:hover .latest-article-image img {
    transform: scale(1.1);
}

.latest-article-content {
    padding: 25px;
}

.latest-article-title {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 12px;
}

.latest-article-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s;
}

.latest-article-title a:hover {
    color: var(--color-primary-800);
}

.latest-article-excerpt {
    font-size: 14px;
    line-height: 1.6;
    color: #666;
    margin-bottom: 15px;
}

.latest-article-meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 10px;
    color: #999;
    margin-bottom: 15px;
    letter-spacing: 0.5px;
}

.read-more-link {
    display: inline-block;
    background: var(--color-primary-800);
    color: white;
    padding: 8px 20px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px;
    text-decoration: none;
    transition: background 0.3s;
}

.read-more-link:hover {
    background: var(--color-primary-900);
}

/* ===== LOAD MORE ===== */
.load-more-wrapper {
    text-align: center;
    margin: 40px 0;
}

.load-more-btn {
    background: white;
    border: 2px solid #ddd;
    color: #666;
    padding: 15px 60px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.5px;
    cursor: pointer;
    transition: all 0.3s;
}

.load-more-btn:hover {
    background: var(--color-primary-800);
    color: white;
    border-color: var(--color-primary-800);
}

/* ===== RIGHT SIDEBAR ===== */
.right-sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
}

/* Newsletter Widget */
.sidebar-newsletter {
    background: var(--color-primary-800);
    color: white;
    padding: 25px;
    margin-bottom: 25px;
    text-align: center;
}

.newsletter-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 12px;
}

.newsletter-text {
    font-size: 13px;
    line-height: 1.6;
    margin-bottom: 20px;
    color: rgba(255,255,255,0.95);
}

.newsletter-sidebar-form {
    display: flex;
    gap: 8px;
}

.newsletter-sidebar-input {
    flex: 1;
    padding: 12px;
    border: none;
    font-size: 13px;
    outline: none;
}

.newsletter-sidebar-btn {
    background: #333;
    color: white;
    border: none;
    padding: 12px 18px;
    cursor: pointer;
    transition: background 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.newsletter-sidebar-btn:hover {
    background: #000;
}

/* Tabs Widget */
.sidebar-tabs {
    background: white;
    margin-bottom: 25px;
    overflow: hidden;
}

.tabs-nav {
    display: flex;
    background: #2a2a2a;
}

.tab-nav-btn {
    flex: 1;
    background: #2a2a2a;
    color: #999;
    border: none;
    padding: 15px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s;
}

.tab-nav-btn.active {
    background: var(--color-primary-800);
    color: white;
}

.tabs-container {
    padding: 20px;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.tab-article-item {
    display: flex;
    gap: 12px;
    padding: 15px 0;
    border-bottom: 1px solid #f0f0f0;
}

.tab-article-item:last-child {
    border-bottom: none;
}

.tab-article-thumb {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    overflow: hidden;
}

.tab-article-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.tab-article-item:hover .tab-article-thumb img {
    transform: scale(1.1);
}

.tab-article-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.tab-article-title {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 8px;
}

.tab-article-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s;
}

.tab-article-title a:hover {
    color: var(--color-primary-800);
}

.tab-article-meta {
    display: flex;
    flex-direction: column;
    gap: 3px;
    font-size: 10px;
    color: #999;
    letter-spacing: 0.5px;
}

.meta-author-small {
    color: var(--color-primary-800);
    font-weight: 600;
}

.tab-empty-message {
    text-align: center;
    color: #999;
    padding: 20px;
    font-size: 13px;
}

/* Random Articles Widget */
.sidebar-random {
    background: white;
    padding: 0;
    overflow: hidden;
}

.random-widget-title {
    background: var(--color-primary-800);
    color: white;
    padding: 12px 20px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.5px;
    margin: 0;
}

.random-article-item {
    position: relative;
    padding: 20px;
    border-bottom: 1px solid #f0f0f0;
}

.random-article-item:last-child {
    border-bottom: none;
}

.random-item-badge {
    position: absolute;
    top: 30px;
    left: 30px;
    background: var(--color-primary-800);
    color: white;
    padding: 4px 10px;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1px;
    z-index: 2;
}

.random-item-image {
    width: 100%;
    height: 180px;
    overflow: hidden;
    margin-bottom: 12px;
}

.random-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.random-article-item:hover .random-item-image img {
    transform: scale(1.1);
}

.random-item-title {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
}

.random-item-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s;
}

.random-item-title a:hover {
    color: var(--color-primary-800);
}

/* ===== ARTICLE PAGE (from articolo-dynamic.php styles) ===== */
.article-single {
    padding: 8rem 1rem 3rem;
}

.article-header {
    max-width: 75rem;
    margin: 0 auto 3rem;
    text-align: left;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--color-zinc-500);
    margin-bottom: 1.5rem;
}

.breadcrumb a {
    color: var(--color-zinc-600);
    transition: color 0.2s;
}

.breadcrumb a:hover {
    color: var(--color-primary-800);
}

.article-category-badge {
    display: inline-block;
    background: var(--color-primary-800);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 0.25rem;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
}

.article-main-title {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    text-align: left;
}

.article-meta-header {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    color: var(--color-zinc-600);
    text-align: left;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
}

.meta-item .icon {
    width: 18px;
    height: 18px;
}

.article-featured-image {
    max-width: 75rem;
    margin: 0 auto 3rem;
    border-radius: 0.25rem;
    overflow: hidden;
}

.article-featured-image img {
    width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: cover;
}

@media (max-width: 768px) {
    .article-main-title {
        font-size: 2rem;
    }
}

/* ===== END ARTICLE PAGE STYLES ===== */
@media (max-width: 1200px) {
    .content-layout {
        grid-template-columns: 1fr 300px;
    }
    
    .hero-slider-container {
        grid-template-columns: 1fr 300px;
    }
    
    .slider-title {
        font-size: 30px;
    }
}

@media (max-width: 992px) {
    .hero-slider-container {
        grid-template-columns: 1fr;
    }
    
    .hero-side-card {
        height: 400px;
    }
    
    .content-layout {
        grid-template-columns: 1fr;
    }
    
    .right-sidebar {
        position: static;
    }
    
    .grid-bottom-large {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .highlight-grid-three {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .main-wrapper {
        padding-top: 80px;
    }
    
    .main-slider {
        height: 400px;
    }
    
    .slider-content {
        padding: 25px;
        left: 50px;
        right: 50px;
    }
    
    .slider-title {
        font-size: 24px;
    }
    
    .slider-excerpt {
        font-size: 14px;
    }
    
    .slider-nav {
        width: 40px;
        height: 40px;
    }
    
    .slider-prev {
        left: 5px;
    }
    
    .slider-next {
        right: 5px;
    }
    
    .grid-top-small {
        grid-template-columns: 1fr;
    }
    
    .featured-large {
        grid-template-columns: 1fr;
    }
    
    .featured-large-image {
        height: 250px;
    }
    
    .grid-bottom-large {
        grid-template-columns: 1fr;
    }
    
    .latest-large {
        grid-template-columns: 1fr;
    }
    
    .latest-articles-grid {
        grid-template-columns: 1fr;
    }
    
    /* Mobile menu visibility */
    .desktop-menu {
        display: none !important;
    }
    
    .mobile-toggle {
        display: block !important;
    }
}

@media (max-width: 480px) {
    .small-card-image {
        height: 180px;
    }
    
    .overlay-card {
        height: 220px;
    }
    
    .tabs-nav {
        flex-wrap: wrap;
    }
    
    .tab-nav-btn {
        font-size: 10px;
        padding: 12px 8px;
    }
}

.container-fluid {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 15px;
}

.content-grid {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 30px;
    margin-top: 20px;
}

/* ===== MAIN COLUMN ===== */
.main-column {
    width: 100%;
}

/* ===== TOP GRID - 3 CARDS ===== */
.grid-top {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.grid-card {
    background: white;
    border-radius: 2px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}

.grid-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.card-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.card-image {
    position: relative;
    width: 100%;
    height: 220px;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.grid-card:hover .card-image img {
    transform: scale(1.1);
}

.card-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--color-primary-800);
    color: white;
    padding: 5px 12px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.card-content {
    padding: 20px;
}

.card-title {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 12px;
    color: #333;
    transition: color 0.3s;
}

.grid-card:hover .card-title {
    color: var(--color-primary-800);
}

.card-meta {
    display: flex;
    flex-direction: column;
    gap: 5px;
    font-size: 11px;
    color: #999;
    letter-spacing: 0.5px;
}

.card-meta .author {
    color: var(--color-primary-800);
    font-weight: 600;
}

/* ===== FEATURED ARTICLE ===== */
.featured-article {
    background: white;
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    margin-bottom: 30px;
    overflow: hidden;
}

.featured-image {
    position: relative;
    height: 400px;
    overflow: hidden;
}

.featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.featured-article:hover .featured-image img {
    transform: scale(1.05);
}

.featured-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background: var(--color-primary-800);
    color: white;
    padding: 8px 18px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.featured-content {
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.featured-title {
    font-size: 28px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 15px;
}

.featured-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s;
}

.featured-title a:hover {
    color: var(--color-primary-800);
}

.featured-meta {
    display: flex;
    flex-direction: column;
    gap: 5px;
    font-size: 11px;
    color: #999;
    margin-bottom: 20px;
    letter-spacing: 0.5px;
}

.featured-meta .author {
    color: var(--color-primary-800);
    font-weight: 600;
}

.featured-excerpt {
    font-size: 14px;
    line-height: 1.7;
    color: #666;
    margin-bottom: 20px;
}

.read-more {
    display: inline-block;
    background: var(--color-primary-800);
    color: white;
    padding: 10px 25px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-decoration: none;
    transition: background 0.3s;
}

.read-more:hover {
    background: var(--color-primary-900);
}

/* ===== BOTTOM GRID - 3 LARGE CARDS ===== */
.grid-bottom {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.grid-card-large {
    position: relative;
    height: 280px;
    overflow: hidden;
    border-radius: 2px;
}

.card-image-large {
    position: relative;
    width: 100%;
    height: 100%;
}

.card-image-large img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.grid-card-large:hover .card-image-large img {
    transform: scale(1.1);
}

.card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    padding: 30px 20px;
    color: white;
}

.card-title-large {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.4;
    color: white;
    margin: 0;
}

/* ===== DA NON PERDERE SECTION ===== */
.section-highlight {
    background: #2c2c2c;
    padding: 30px;
    margin-bottom: 40px;
}

.section-title-red {
    background: var(--color-primary-800);
    color: white;
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin: 0 0 25px 0;
    display: inline-block;
}

.highlight-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.highlight-item {
    position: relative;
}

.highlight-badge {
    background: var(--color-primary-800);
    color: white;
    padding: 4px 10px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    display: inline-block;
    margin-bottom: 12px;
}

.highlight-title {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 10px;
}

.highlight-title a {
    color: white;
    text-decoration: none;
    transition: color 0.3s;
}

.highlight-title a:hover {
    color: var(--color-primary-800);
}

.highlight-meta {
    display: flex;
    flex-direction: column;
    gap: 5px;
    font-size: 10px;
    color: #999;
    letter-spacing: 0.5px;
}

.highlight-meta .author {
    color: var(--color-primary-800);
}

/* ===== ULTIMI ARTICOLI SECTION ===== */
.section-latest {
    margin-bottom: 40px;
}

.latest-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 20px;
}

.latest-card {
    background: white;
    overflow: hidden;
    position: relative;
}

.latest-card-featured {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
}

.latest-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--color-primary-800);
    color: white;
    padding: 5px 12px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    z-index: 2;
}

.latest-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.latest-card-featured .latest-image {
    height: 100%;
}

.latest-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.latest-card:hover .latest-image img {
    transform: scale(1.1);
}

.latest-content {
    padding: 25px;
}

.latest-title {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 12px;
}

.latest-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s;
}

.latest-title a:hover {
    color: var(--color-primary-800);
}

.latest-excerpt {
    font-size: 14px;
    line-height: 1.6;
    color: #666;
    margin-bottom: 15px;
}

.latest-meta {
    display: flex;
    flex-direction: column;
    gap: 5px;
    font-size: 11px;
    color: #999;
    margin-bottom: 15px;
    letter-spacing: 0.5px;
}

.latest-meta .author {
    color: var(--color-primary-800);
    font-weight: 600;
}

.read-more-btn {
    display: inline-block;
    background: var(--color-primary-800);
    color: white;
    padding: 8px 20px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-decoration: none;
    transition: background 0.3s;
}

.read-more-btn:hover {
    background: var(--color-primary-900);
}

/* ===== LOAD MORE BUTTON ===== */
.load-more-section {
    text-align: center;
    margin: 40px 0;
}

.btn-load-more {
    background: white;
    border: 2px solid #e0e0e0;
    color: #666;
    padding: 15px 60px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-load-more:hover {
    background: var(--color-primary-800);
    color: white;
    border-color: var(--color-primary-800);
}

/* ===== SIDEBAR ===== */
.sidebar-column {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.sidebar-widget {
    background: white;
    padding: 25px;
    margin-bottom: 25px;
}

/* Newsletter Box */
.newsletter-box {
    background: var(--color-primary-800);
    color: white;
    text-align: center;
}

.widget-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 15px;
    color: white;
}

.widget-text {
    font-size: 13px;
    line-height: 1.6;
    margin-bottom: 20px;
    color: rgba(255,255,255,0.9);
}

.newsletter-form-sidebar {
    display: flex;
    gap: 10px;
}

.newsletter-input-sidebar {
    flex: 1;
    padding: 12px;
    border: none;
    font-size: 13px;
}

.btn-newsletter {
    background: #333;
    color: white;
    border: none;
    padding: 12px 20px;
    font-size: 18px;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-newsletter:hover {
    background: #000;
}

/* Tabs Widget */
.tabs-widget {
    padding: 0;
    overflow: hidden;
}

.tabs-header {
    display: flex;
    background: #2c2c2c;
}

.tab-btn {
    flex: 1;
    background: #2c2c2c;
    color: #999;
    border: none;
    padding: 15px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s;
    text-transform: uppercase;
}

.tab-btn.active {
    background: var(--color-primary-800);
    color: white;
}

.tabs-content {
    padding: 20px;
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
}

.tab-item {
    padding: 15px 0;
    border-bottom: 1px solid #f0f0f0;
}

.tab-item:last-child {
    border-bottom: none;
}

.tab-item-title {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 8px;
}

.tab-item-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s;
}

.tab-item-title a:hover {
    color: var(--color-primary-800);
}

.tab-item-meta {
    display: flex;
    flex-direction: column;
    gap: 3px;
    font-size: 10px;
    color: #999;
    letter-spacing: 0.5px;
}

.author-small {
    color: var(--color-primary-800);
    font-weight: 600;
}

.tab-empty {
    text-align: center;
    color: #999;
    padding: 20px;
    font-size: 13px;
}

/* Random Articles Widget */
.widget-title-small {
    background: var(--color-primary-800);
    color: white;
    padding: 10px 15px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin: -25px -25px 20px -25px;
}

.random-item {
    position: relative;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f0f0f0;
}

.random-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.random-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--color-primary-800);
    color: white;
    padding: 4px 10px;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    z-index: 2;
}

.random-image {
    width: 100%;
    height: 180px;
    overflow: hidden;
    margin-bottom: 12px;
}

.random-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.random-item:hover .random-image img {
    transform: scale(1.1);
}

.random-title {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
}

.random-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s;
}

.random-title a:hover {
    color: var(--color-primary-800);
}

/* ===== RESPONSIVE ===== */

/* Tablet */
@media (max-width: 1200px) {
    .content-grid {
        grid-template-columns: 1fr 300px;
        gap: 20px;
    }
    
    .featured-article {
        grid-template-columns: 1fr;
    }
    
    .featured-image {
        height: 300px;
    }
    
    .featured-content {
        padding: 30px;
    }
}

@media (max-width: 992px) {
    .grid-top {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .grid-bottom {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .highlight-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .content-grid {
        grid-template-columns: 1fr;
    }
    
    .sidebar-column {
        position: static;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .main-wrapper {
        padding-top: 80px;
    }
    
    .grid-top {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .grid-bottom {
        grid-template-columns: 1fr;
    }
    
    .featured-article {
        margin-bottom: 20px;
    }
    
    .featured-content {
        padding: 20px;
    }
    
    .featured-title {
        font-size: 22px;
    }
    
    .latest-card-featured {
        grid-template-columns: 1fr;
    }
    
    .latest-grid {
        grid-template-columns: 1fr;
    }
    
    .section-highlight {
        padding: 20px;
    }
    
    .card-image {
        height: 200px;
    }
    
    .tabs-header {
        flex-wrap: wrap;
    }
    
    .tab-btn {
        font-size: 10px;
        padding: 12px 8px;
    }
}

@media (max-width: 480px) {
    .container-fluid {
        padding: 0 10px;
    }
    
    .card-content {
        padding: 15px;
    }
    
    .featured-title {
        font-size: 18px;
    }
    
    .card-title {
        font-size: 14px;
    }
    
    .section-title-red {
        font-size: 12px;
        padding: 10px 15px;
    }
}

/* ===== ANIMATIONS ===== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.grid-card,
.grid-card-large,
.latest-card {
    animation: fadeIn 0.5s ease-out;
}

/* ===== UTILITIES ===== */
.text-uppercase {
    text-transform: uppercase;
}

.font-weight-bold {
    font-weight: 700;
}

.mb-0 {
    margin-bottom: 0;
}

.mt-20 {
    margin-top: 20px;
}

/* ===== HOVER EFFECTS ===== */
.card-link,
.latest-title a,
.highlight-title a,
.tab-item-title a,
.random-title a {
    position: relative;
}

.card-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-primary-800);
    transition: width 0.3s;
}

.card-link:hover::after {
    width: 100%;
}

/* ===== SCROLLBAR CUSTOM ===== */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--color-primary-800);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--color-primary-900);
}

/* ===== PRINT STYLES ===== */
@media print {
    .sidebar-column,
    .load-more-section,
    .card-badge,
    .featured-badge,
    .tabs-header {
        display: none;
    }
    
    .content-grid {
        grid-template-columns: 1fr;
    }
}