@charset "utf-8";

    .centra_tutto {
        text-align: left;
        margin-bottom: 40px;
    }

    .blog-container { 
        max-width: 1200px; 
        margin: 0 auto; 
        padding: 20px; 
    }

    .blog-row { 
        display: flex; 
        flex-wrap: wrap; 
        align-items: flex-start; 
        margin-bottom: 60px; 
        gap: 40px; 
        background-color: #000;
        border: 1px solid #fff;
        border-radius: 20px;
        padding: 40px;
        box-shadow: 0 4px 20px rgba(0,0,0,0.8);
        transition: all 0.5s ease;
        position: relative;
        overflow: hidden;
        content-visibility: auto;
        contain-intrinsic-size: 1px 500px;
    }

    .row-normal { flex-direction: row; }
    .row-reverse { flex-direction: row-reverse; }
    .blog-text { flex: 1.2; min-width: 300px; position: relative; padding-bottom: 30px; }

    .post-date {
        position: absolute;
        bottom: 15px;
        left: 40px;
        font-family: 'Oswald', sans-serif;
        color: #ffcc00;
        font-size: 0.85rem;
        letter-spacing: 1px;
        opacity: 0.8;
    }

    .text-content {
        max-height: 300px; 
        overflow: hidden;
        position: relative;
        transition: max-height 0.5s ease;
    }
    .text-content.is-truncated::after {
        content: "";
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 80px; 
        background: linear-gradient(transparent, #000);
        pointer-events: none;
    }
    .text-content.is-expanded { max-height: 5000px; }
    .text-content.is-expanded::after { display: none; }
    
    .read-more-btn {
        display: none; 
        color: #ffcc00;
        cursor: pointer;
        font-weight: bold;
        margin-top: 15px;
        text-decoration: underline;
        font-family: 'Oswald', sans-serif;
    }

    .blog-image-grid {
        flex: 0.8;
        min-width: 300px;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        grid-gap: 12px;
    }
    
    .img-wrapper { 
        width: 100%; 
        height: 180px; 
        overflow: hidden; 
        border-radius: 8px; 
        position: relative;
        background-color: #111;
    }
    .img-wrapper a { display: block; width: 100%; height: 100%; }
    .img-wrapper img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; border: 0; }
    .img-wrapper img:hover { transform: scale(1.05); }

    .count-1 .img-wrapper { grid-column: span 2; height: 350px; }
    .count-2 .img-wrapper { height: 220px; }
    .count-3 .img-wrapper:nth-child(3) { grid-column: 1 / 3; width: 60%; justify-self: center; height: 200px; }

    /* YouTube Privacy Overlay Styles */
    .yt-overlay {
        position: absolute;
        top: 0; 
        left: 0; 
        width: 100%; 
        height: 100%;
        background: rgba(0,0,0,0.7);
        display: flex; 
        flex-direction: column;
        align-items: center; 
        justify-content: center;
        text-align: center; 
        padding: 10px;
        box-sizing: border-box;
        z-index: 5;
    }
    
    .yt-consent-box {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        width: 100%;
    }

    .yt-consent-box p { 
        color: #fff; 
        margin: 0 0 5px 0; 
        font-size: 0.9rem; 
        font-weight: bold;
        font-family: 'Oswald', sans-serif;
    }
    
    .yt-consent-box a { 
        color: #ffcc00; 
        font-size: 0.8rem; 
        text-decoration: underline; 
        display: block; 
        margin-bottom: 15px; 
        cursor: pointer;
    }
    
    .yt-accept-btn { 
        background: #ffcc00; 
        color: #000; 
        border: none; 
        padding: 8px 16px; 
        border-radius: 5px; 
        cursor: pointer; 
        font-family: 'Oswald', sans-serif; 
        font-weight: bold; 
        font-size: 0.85rem;
        transition: background 0.3s;
    }

    .yt-accept-btn:hover {
        background: #fff;
    }

    .play-overlay {
        position: absolute; 
        top: 50%; 
        left: 50%;
        transform: translate(-50%, -50%);
        width: 60px; 
        height: 60px;
        background: rgba(255, 204, 0, 0.9);
        border-radius: 50%; 
        pointer-events: none;
        display: flex; 
        align-items: center; 
        justify-content: center;
        z-index: 6;
    }
    
    .play-overlay::after {
        content: ''; 
        margin-left: 5px;
        border-style: solid; 
        border-width: 12px 0 12px 20px;
        border-color: transparent transparent transparent #000;
    }

    #videoModal, #imageModal, #privacyModal {
        display: none;
        position: fixed;
        z-index: 9999;
        left: 0; top: 0;
        width: 100%; height: 100%;
        background-color: #000;
    }
    
    #imageModal { z-index: 10000; align-items: center; justify-content: center; overflow: hidden; }

    /* Privacy Modal specific */
    #privacyModal {
        background-color: rgba(0,0,0,0.9);
        z-index: 10002;
        align-items: center;
        justify-content: center;
    }

    .privacy-content-wrapper {
        background: #111;
        border: 1px solid #ffcc00;
        border-radius: 15px;
        width: 90%;
        max-width: 700px;
        max-height: 85vh;
        overflow-y: auto;
        padding: 30px;
        position: relative;
        color: #fff;
        font-family: 'Oswald', sans-serif;
    }

    .close-btn {
        position: absolute; top: 20px; right: 30px;
        color: #ff0000; font-size: 60px; font-weight: bold;
        cursor: pointer; z-index: 10001; font-family: Arial, sans-serif;
        line-height: 1;
    }

    #fullImage {
        max-width: 90%; 
        max-height: 90%;
        object-fit: contain; 
        transition: transform 0.3s; 
        cursor: grab;
        user-select: none;
    }

    .modal-video-container {
        position: relative; margin: auto; top: 50%;
        transform: translateY(-50%);
        width: 80%; max-width: 900px; aspect-ratio: 16 / 9;
    }
    #videoFrame { width: 100%; height: 100%; border: none; }

    h2 { color: #ffcc00; font-family: 'Oswald', sans-serif; font-size: 2.2rem; }

    @media (max-width: 768px) {
        .blog-row, .row-reverse { 
            flex-direction: column !important; 
            padding: 20px; 
            gap: 20px;
        }
        .blog-text { min-width: 100%; order: 2; }
        .blog-image-grid { width: 100%; min-width: 100%; order: 1; flex: none; }
        .img-wrapper { height: 150px; }
        .count-1 .img-wrapper { height: 250px; }
        .close-btn { top: 10px; right: 20px; font-size: 50px; }
        .post-date { position: static; margin-top: 15px; text-align: left; left: 0; }
        h2 { font-size: 1.8rem; }
        .yt-consent-box p { font-size: 0.8rem; }
        .privacy-content-wrapper { padding: 20px; width: 95%; }
    }