/* ==========================================================================
   1. GRIGLIA "ORIENTE CRISTIANO" (Layout 2/3 Colonne)
   ========================================================================== */
.cat-oriente-section { padding: 60px 0; background: #fff; }

.oriente-grid { 
    display: grid; 
    gap: 40px; 
    margin-top: 30px; 
}

/* Gestione colonne reattive */
.grid-2-col { grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); }
.grid-3-col { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }

.oriente-card { 
    background: #fff; 
    border: 1px solid #f0ede9; 
    box-shadow: 0 5px 15px rgba(0,0,0,0.03); 
    display: flex; flex-direction: column; height: 100%; transition: transform 0.3s ease;
}

.oriente-card:hover { transform: translateY(-5px); }

.oriente-img { position: relative; height: 300px; overflow: hidden; }
.oriente-img img { width: 100%; height: 100%; object-fit: cover; }

.oriente-content { padding: 25px; flex-grow: 1; }

/* 1. Sostituisci Playfair con inherit */
.oriente-content h3 { 
    font-family: inherit !important; 
    font-size: 24px !important; 
    margin: 12px 0; 
    line-height: 1.3; 
}

.oriente-content h3 a { text-decoration: none; color: #1a1a1a !important; }

/* 2. Sostituisci Inter con inherit */
.oriente-content p { 
    font-family: inherit !important; 
    font-size: 15px; 
    color: #555; 
    line-height: 1.6; 
}

/* ==========================================================================
   2. GRIGLIA "CRONACA" (3 Colonne - Effetto Foglio Alzato)
   ========================================================================== */
.magazine-news-grid { padding: 80px 0; background: #fff; }

.tri-grid-6 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px 30px;
}

.tri-card {
    display: flex; flex-direction: column; background: #fff; border: 1px solid #f0ede9;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03); transition: all 0.3s ease;
}

.tri-card:hover { transform: translateY(-5px); box-shadow: 0 12px 30px rgba(0,0,0,0.08); }

.tri-img-wrap { position: relative; height: 240px; overflow: hidden; }
.tri-img-wrap img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Data stile "Foglio Alzato" */
.lifted-date-tri {
    position: absolute; top: 0; right: 15px; background: #fff; padding: 10px 12px; text-align: center;
    box-shadow: -3px 3px 8px rgba(0,0,0,0.1); z-index: 5;
}

.lifted-date-tri::after {
    content: ""; position: absolute; bottom: -8px; left: 0;
    border-width: 8px 8px 0 0; border-style: solid; border-color: #bebbb4 transparent transparent transparent;
}

.tri-content { padding: 25px; flex-grow: 1; display: flex; flex-direction: column; }
.tri-content h3 { 
    font-family: inherit !important; 
    font-size: 21px; 
    margin-bottom: 12px; 
}

/* ==========================================================================
   3. GALLERIA MULTIMEDIALE (YouTube & Locali) - SFONDO FULL WIDTH
   ========================================================================== */

/* Wrapper esterno - SFONDO FULL WIDTH */
.video-gallery-section {
    padding: 60px 0;
    background: #f9f8f6;
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    border-top: 1px solid #f0ede9;
    position: relative;
}

/* Contenitore interno */
.video-gallery-section .f-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    width: 100%;
    box-sizing: border-box;
}

/* Header - USA GLI STILI GLOBALI DEL TEMA */
.video-gallery-section .journal-header {
    margin-bottom: 40px;
}

/* Viewport - CENTRA LA GRIGLIA VIDEO */
.video-viewport {
    width: 100%;
    display: flex;
    justify-content: center;
}

/* Griglia video - CENTRATA */
.video-grid-pure {
    display: flex !important;
    justify-content: center !important;
    flex-wrap: wrap !important;
    gap: 30px;
    max-width: 1200px;
}

/* Card video */
.video-pure-item {
    background: #fff;
    border: 1px solid #f0ede9;
    padding: 15px;
    width: 350px;
    flex: 0 0 350px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
}

.video-pure-item:hover {
    transform: translateY(-5px);
    border-color: #c26602;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

/* Thumbnail video */
.video-thumbnail {
    width: 100%;
    position: relative;
    aspect-ratio: 16/9;
    background: #000;
    overflow: hidden;
    margin-bottom: 15px;
}

.video-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Placeholder per video locali - CON IMMAGINE PERSONALIZZATA */
.local-placeholder {
    position: relative;
    background: #1a1a1a;
}

.local-video-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('https://audiologo.us/wp-content/uploads/2026/02/video-placeholder.webp') center/cover no-repeat;
}

/* Overlay scuro leggero sopra l'immagine per far risaltare il play */
.local-placeholder::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    z-index: 0;
}

.local-placeholder .video-play-overlay {
    z-index: 1;
}

/* Icona Play */
.video-play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.video-play-circle {
    width: 50px;
    height: 50px;
    background: rgba(194, 102, 2, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.video-pure-item:hover .video-play-circle {
    background: rgba(194, 102, 2, 1);
    transform: scale(1.1);
}

.video-play-circle svg {
    width: 24px;
    height: 24px;
    fill: #fff;
}

/* Titolo video sotto la card */
.video-caption-overlay {
    width: 100%;
    text-align: center;
}

.video-caption-overlay h3, 
.video-pure-item h3, 
.video-gallery-section h3 {
    font-family: inherit !important;
    font-size: 16px;
    font-weight: inherit !important;
    color: #1a1a1a;
    margin: 0;
    line-height: 1.4;
}

/* Responsive */
@media (max-width: 768px) {
    .video-pure-item {
        width: 100%;
        max-width: 350px;
    }
    
    .video-gallery-section .f-container {
        padding: 0 20px;
    }
}
/* ==========================================================================
   4. SEZIONE PARTNER (Griglia Loghi)
   ========================================================================== */
/* Contenitore Sezione */
.partner-section { 
    padding: 80px 0; 
    background: #fff; 
    border-top: 1px solid #f0ede9; 
}

/* Titolo: Usiamo un selettore più ampio per sicurezza */
.partner-section h2, 
.partner-section h3, 
.partner-section .section-title {
    margin-bottom: 50px !important; 
    text-align: center;
    font-family: "Playfair Display", serif !important; /* Coerenza editoriale [cite: 2026-01-21] */
}

/* Griglia Loghi */
.partner-grid { 
    display: flex; 
    justify-content: center; 
    gap: 20px; 
    flex-wrap: wrap;
    max-width: 1200px; /* Allineamento con il layout del sito [cite: 2026-01-21] */
    margin: 0 auto !important;
}

/* La Card: Minimalismo e precisione */
.partner-card {
    background: #fff; 
    border: 1px solid #f0ede9; 
    padding: 20px; 
    width: 260px; /* Leggermente ridotto per favorire l'incastro su schermi medi */
    height: 140px; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    text-decoration: none;
    border-radius: 12px; /* Coerenza con la griglia articoli [cite: 2026-01-16] */
}

.partner-card:hover { 
    border-color: #c26602; 
    transform: translateY(-8px); 
    box-shadow: 0 15px 35px rgba(0,0,0,0.06); 
}

/* Immagine del Logo */
.partner-logo-wrap { 
    width: 85%; /* Lascia un margine interno di sicurezza */
    height: 85%; 
    display: flex; 
    align-items: center; 
    justify-content: center;
}

.partner-logo-wrap img { 
    max-width: 100%; 
    max-height: 100%; 
    object-fit: contain; 
    filter: grayscale(100%); 
    opacity: 0.5; 
    transition: 0.4s ease; 
}

.partner-card:hover img { 
    filter: grayscale(0); 
    opacity: 1; 
}

/* --- OTTIMIZZAZIONE MOBILE --- [cite: 2026-01-16] */
@media (max-width: 768px) {
    .partner-section { padding: 50px 0; }
    
    .partner-grid { gap: 15px; }
    
    .partner-card {
        width: calc(50% - 15px); /* Due card per riga sui tablet */
        height: 120px;
        padding: 15px;
    }
}

@media (max-width: 480px) {
    .partner-card {
        width: 100%; /* Una card per riga sugli smartphone piccoli */
        height: 130px;
    }
}

/* Pulizia finale */
.partner-info { display: none !important; }
/* ==========================================================================
   5. RESPONSIVE PER TUTTE LE SEZIONI
   ========================================================================== */
@media (max-width: 768px) {
    .oriente-img, .tri-img-wrap { height: 220px; }
    .video-pure-item { flex: 0 1 100%; width: 100%; max-width: 350px; }
    .partner-card { width: 100%; max-width: 320px; }
}
/* Forza il font del tema sui titoli delle sezioni Video */
.video-gallery-section .journal-section-title,
.video-gallery-section h2 {
    font-family: inherit !important;
    font-weight: 700 !important;
}

.video-gallery-section .journal-pretitle {
    font-family: inherit !important;
}