/**
 * Responsive Styles - Mobile First
 */

/* MOBILE FIRST: 0-1024px */
@media (max-width: 1400px) {
    
    /* ========== HEADER MOBILE ========== */
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .topbar-content {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    
    /* Logo centrato */
    .site-logo {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
    }
    
    .site-logo a {
        font-size: 1.5rem;
    }
    
    .site-logo img {
        max-height: 35px;
    }
    
    /* Nascondi social topbar mobile */
    .topbar-social {
        display: none;
    }
    
    /* Menu desktop nascosto */
    .main-nav {
        display: none;
    }
    
    /* News ticker nascosto mobile */
    .news-ticker {
        display: none;
    }
    
    /* Mobile menu */
    .mobile-menu {
        display: block;
    }
    
    /* Hero slider visibile mobile */
    .hero-slider {
        display: block;
    }
    
    /* ========== LAYOUT MOBILE ========== */
    
    .home-layout {
        display: block !important;
        grid-template-columns: 1fr !important;
    }
    
    .home-sidebar-left,
    .home-sidebar-right {
        width: 100%;
        margin-bottom: 2rem;
    }
    
    .home-main {
        width: 100%;
    }
    
    /* Articles grid mobile */
    .articles-grid {
        grid-template-columns: 1fr !important;
        gap: 1.5rem;
    }
    
    /* ========== WIDGET SEZIONI MOBILE ========== */
    
    .category-grid {
        grid-template-columns: 1fr !important;
        gap: 1.5rem;
    }
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    /* ========== FOOTER MOBILE ========== */
    
    .footer-columns {
        grid-template-columns: 1fr !important;
        gap: 2rem;
        text-align: center;
    }
    
    .footer-column {
        text-align: center;
    }
    
    .footer-title {
        text-align: center;
    }
    
    .footer-links {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    /* ========== CATEGORIA MOBILE ========== */
    
    .category-hero-image {
        height: 250px;
    }
    
    .category-list-item {
        grid-template-columns: 1fr !important;
    }
    
    .category-list-image {
        width: 100%;
        height: 200px;
    }
    
    /* ========== SINGLE POST MOBILE ========== */
    
    .article-header-image {
        height: 250px;
    }
    
    .article-content {
        padding: 1rem;
    }
    
    .article-content h2 {
        font-size: 1.5rem;
    }
}

/* DESKTOP: Nascondi elementi mobile */
@media (min-width: 768px) {
    .mobile-menu-toggle {
        display: none;
    }
    
    .mobile-menu {
        display: none;
    }
    
    .mobile-menu-overlay {
        display: none;
    }
    
    .hero-slider {
        display: none;
    }
}

/* TABLET: 768-1024px */
@media (min-width: 768px) and (max-width: 1400px) {
    .container {
        max-width: 100%;
        padding: 0 2rem;
    }
    
    .home-layout {
        grid-template-columns: 1fr;
    }
    
    .home-sidebar-left,
    .home-sidebar-right {
        display: none;
    }
    
    .articles-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .category-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    
    .footer-columns {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Dark mode mobile */
body.dark-mode .mobile-menu {
    background-color: #0a0a0a;
}

body.dark-mode .mobile-menu-items a {
    color: #f5f5f5;
}
