/* Logo navbar mobile: dimensioni ridotte */
@media (max-width: 768px) {
    .logo-img {
        width: 28px !important;
        height: 28px !important;
        max-width: 28px !important;
        max-height: 28px !important;
        min-width: 24px;
        min-height: 24px;
        display: inline-block;
    }
}
/* CSS Responsive per Immagini - danielebarile.it */

/* Stili base per tutte le immagini */
img {
    max-width: 100%;
    height: auto;
    box-sizing: border-box;
}

/* Container per immagini */
.image-container {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    text-align: center;
}

/* Immagini in contenuti */
.content img,
.article img,
.post img,
.tutorial img,
.main-content img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 10px auto;
    border-radius: 8px;
}

/* Media query per tablet */
@media screen and (max-width: 1024px) and (min-width: 769px) {
    img {
        max-width: 100%;
        height: auto;
    }
    
    .content img,
    .article img,
    .tutorial img,
    .main-content img {
        max-width: 90%;
        margin: 15px auto;
    }
}

/* Media query per dispositivi mobili */
@media screen and (max-width: 768px) {
    /* Reset di tutti gli stili immagine per mobile */
    img {
        width: auto !important;
        max-width: 100% !important;
        height: auto !important;
        object-fit: contain !important;
        border-radius: 8px !important;
        margin: 10px auto !important;
        display: block !important;
        box-sizing: border-box !important;
    }
    
    /* Immagini in contenuti specifici */
    .content img,
    .article img,
    .post img,
    .tutorial img,
    .main-content img {
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        object-fit: contain !important;
        margin: 15px 0 !important;
        padding: 0 10px !important;
        box-sizing: border-box !important;
    }
    
    /* Container responsive */
    .image-container,
    .content,
    .article,
    .post,
    .tutorial,
    .main-content {
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 15px !important;
        box-sizing: border-box !important;
        overflow-x: hidden !important;
    }
    
    /* Tabelle responsive */
    table {
        width: 100% !important;
        display: block !important;
        overflow-x: auto !important;
        white-space: nowrap !important;
    }
    
    /* Video responsive */
    video,
    iframe,
    embed,
    object {
        max-width: 100% !important;
        height: auto !important;
    }
    
    /* Fix per immagini che potrebbero avere dimensioni inline */
    img[width],
    img[height] {
        width: auto !important;
        height: auto !important;
        max-width: 100% !important;
    }
}

/* Media query per schermi molto piccoli */
@media screen and (max-width: 480px) {
    img {
        max-width: 100% !important;
        padding: 0 5px !important;
    }
    
    .content,
    .article,
    .main-content {
        padding: 0 10px !important;
    }
}