/* ========================================
   ANNIAFFOLLATI.IT - CSS CINEMA
   Stili aggiuntivi per recensioni film
   Versione: 3.0 - Allineata al restyling
   ======================================== */


/* ===== NAVBAR TOGGLER MOBILE ===== */
.navbar-toggler {
    border: 2px solid #ffffff !important;
    padding: 0.5rem 0.75rem !important;
    background-color: rgba(255, 255, 255, 0.9) !important;
    border-radius: 4px !important;
}

.navbar-toggler:hover {
    background-color: rgba(255, 255, 255, 1) !important;
    border-color: #e0e0e0 !important;
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 0.25rem rgba(255, 255, 255, 0.5) !important;
    outline: none !important;
    background-color: rgba(255, 255, 255, 1) !important;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(0, 0, 0, 0.9)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='3' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
    width: 1.5em !important;
    height: 1.5em !important;
}

.navbar-brand {
    color: #333 !important;
    font-weight: bold !important;
    font-size: 1.1rem !important;
}


/* ===== BANNER FILM ===== */
.banner-film {
    background: linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 100%);
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 15px;
    margin: 20px 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.banner-film table {
    width: 100%;
    margin: 0;
}

.banner-film td {
    padding: 8px 15px;
    border-right: 1px solid #ccc;
    font-size: 14px;
    font-weight: bold;
    color: #333;
}

.banner-film td:last-child {
    border-right: none;
}

.banner-film a {
    color: #d32f2f;
    text-decoration: none;
    font-weight: bold;
}

.banner-film a:hover {
    color: #b71c1c;
    text-decoration: underline;
}


/* ===== LOCANDINA ===== */
.locandina-container {
    float: left;
    margin: 0 20px 20px 0;
    padding: 10px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    max-width: 270px;
}

.locandina-container img {
    width: 100%;
    height: auto;
    border-radius: 4px;
}


/* ===== IMMAGINI ARTICOLO ===== */
.img-float-right {
    float: right;
    margin: 0 0 15px 20px;
    max-width: 350px;
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.img-float-left {
    float: left;
    margin: 0 20px 15px 0;
    max-width: 500px;
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.img-center {
    display: block;
    margin: 20px auto;
    max-width: 600px;
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.img-caption {
    text-align: left;
    font-size: 11px;
    color: #666;
    margin-top: 2px;
    margin-bottom: 0;
    font-style: italic;
    line-height: 1.2;
}


/* ===== VIDEO AFFIANCATI SIDE-BY-SIDE ===== */
.video-side-by-side-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 30px 0;
    max-width: 1000px;
}

.video-side-by-side-item {
    background: #f8f9fa;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.video-side-by-side-item h4 {
    color: #008000;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 10px;
    border-bottom: 2px solid #008000;
    padding-bottom: 5px;
}

.video-side-by-side-item video,
.video-side-by-side-item .youtube-embed-wrapper {
    width: 100%;
    border-radius: 4px;
}

.video-side-by-side-item video {
    max-height: 300px;
}

.video-side-by-side-item .video-caption {
    margin-top: 8px;
    font-size: 0.85rem;
    color: #666;
    font-style: italic;
    text-align: center;
}


/* ===== UTILITY ===== */
.clearfix::after {
    content: "";
    display: table;
    clear: both;
}


/* ===== VIDEO YOUTUBE EMBED ===== */
.youtube-container-centered {
    max-width: 700px;
    margin: 20px auto;
    text-align: center;
}

.youtube-container-left {
    float: left;
    max-width: 450px;
    margin: 0 20px 20px 0;
}

.youtube-container-centered h3,
.youtube-container-left h3 {
    color: #008000;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 10px;
    border-bottom: 2px solid #008000;
    padding-bottom: 5px;
}

.youtube-embed-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* Ratio 16:9 */
    height: 0;
    overflow: hidden;
    background: #000;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.youtube-embed-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.youtube-caption {
    margin-top: 8px;
    font-size: 0.9rem;
    color: #666;
    font-style: italic;
    text-align: center;
}


/* ===== VIDEO AFFIANCATI ===== */
.video-pair-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 30px 0;
    max-width: 1000px;
}

.video-pair-item {
    text-align: center;
}

.video-pair-item h4 {
    color: #008000;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 10px;
    border-bottom: 2px solid #008000;
    padding-bottom: 5px;
}

.video-pair-item .youtube-embed-wrapper,
.video-pair-item .video-local-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    background: #000;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.video-pair-item .youtube-embed-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.video-pair-item .video-local-wrapper video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 8px;
}

.video-pair-caption {
    margin-top: 8px;
    font-size: 0.85rem;
    color: #666;
    font-style: italic;
}


/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {

    .locandina-container {
        float: none;
        margin: 0 auto 20px auto;
        display: block;
        max-width: 200px;
    }

    .img-float-right,
    .img-float-left {
        float: none;
        margin: 15px auto;
        display: block;
        max-width: 100%;
    }

    .banner-film table {
        font-size: 12px;
    }

    .banner-film td {
        padding: 6px 10px;
        display: block;
        border-right: none;
        border-bottom: 1px solid #ccc;
        text-align: center;
    }

    .banner-film td:last-child {
        border-bottom: none;
    }
    
    .youtube-container-left {
        float: none;
        max-width: 100%;
        margin: 20px auto;
    }
    
    .video-side-by-side-container {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}
