/*
Theme Name: Castora Child
Version: 1.0.0
Description: Podcast WordPress Theme
Author: Themestall
Author URI: https://themeforest.net/user/themestall
Theme URI: http://theme-stall.com/castora
 Template: castora
Tested up to: 5.9
Requires PHP: 7.0
Text Domain: castora-child
License: GNU General Public License version 3.0
License URI: http://www.gnu.org/licenses/gpl-3.0.html
Tags: custom-background, threaded-comments, custom-menu, featured-images, full-width-template, theme-options, translation-ready
*/

html body, html body * {
    font-family: 'Jost', sans-serif !important;
}

/* Eccezione per le icone (FontAwesome) */
/* Senza questa regola, le icone potrebbero sparire diventando quadratini */
.fas, .fab, .far, .fa, [class*="fa-"] {
    font-family: "Font Awesome 5 Free", "Font Awesome 5 Brands" !important;
}

/* Header ------------------------------------------------------ */
.container-action-radio {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    padding: 20px 10px;
}

.app-download-links {
    display: flex;
    gap: 20px;
}

.app-link {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: #333;
    transition: opacity 0.2s;
}

.app-link i {
    font-size: 24px;
}

.app-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
    font-size: 16px;
}

.btn-diretta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    min-width: max-content;
    
    background-color: #003399;
    color: white !important;
    padding: 12px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    gap: 12px;
    
    box-shadow: 0 4px 15px rgba(0, 51, 153, 0.2);
    transition: all 0.3s ease;
}

.btn-diretta i {
    font-size: 22px;
}

/* Nascondi la barra su Desktop */
.mobile-only-live-bar {
    display: none;
}

/* Widget Whatsapp */
.chaty-widget.left-position.has-single {bottom: 100px !important;}


/* Banner pagine interne ------------------------------------------------------ */
.section.bg-banner.header-style1 .container-fluid {max-width: 100% !important; padding: 0 !important;}
.bg-banner h1 {color: #fff !important;}
section.bg-banner.header-style1 .tagline-message.page-title1 {padding: 50px !important;}


/* Homepage ------------------------------------------------------ */
.home .posts-content .post-author {display: none;}

.home .h5ap-player-1 .plyr__controls {background: #fff !important;}

/* Homepage - Palinsesto */
#box-palinsesto {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    padding: 20px;
    width: 100%;
    box-sizing: border-box;
}

.programma-card {
    flex: 1 1 300px;
    background: #ffffff;
    padding: 30px 20px;
    border-radius: 10px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: 100%;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.04);
    box-sizing: border-box;
}

.programma-card.attuale {
    opacity: 1;
    border: none; 
    border-left: 6px solid #003399;
    border-radius: 10px; 
    transform: scale(1.02);
    box-shadow: 0 20px 50px rgba(0, 51, 153, 0.1);
    z-index: 2;
    background: #ffffff;
}

.programma-card:not(.attuale) {
    border-radius: 10px;
    opacity: 0.7;
    transform: scale(0.95);
    border: none;
}

.orario-label {
    display: block;
    font-size: 0.95rem;
    font-weight: 600;
    color: #003399;
    margin-bottom: 15px;
}

.card-titolo {
    font-size: 1.7rem;
    font-weight: 600;
    color: #000000;
    margin: 10px 0;
    line-height: 1.2;
    letter-spacing: -0.5px;
}

.card-conduttore {
    font-size: 1rem;
    color: #000;
    margin-top: 15px;
}

.card-conduttore strong {
    color: #333333;
    font-weight: 600;
}

.badge-live {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ff0000;
    font-weight: 900;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 10px;
}

.on-air-dot {
    width: 10px;
    height: 10px;
    background-color: #ff0000;
    border-radius: 50%;
    margin-right: 8px;
    box-shadow: 0 0 10px rgba(255, 0, 0, 0.3);
    animation: blink-smooth 2s infinite;
}

@keyframes blink-smooth {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}


/* Homepage - Classifiche */
.chart-preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.chart-card {
    background: #fff;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s ease;
    position: relative;
    padding-bottom: 15px;
}

.card-pos {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #003399;
    color: #fff;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 600;
    z-index: 10;
    border: 2px solid #fff;
}

.card-cover-wrapper {
    position: relative;
    aspect-ratio: 1/1;
}

.card-cover-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.play-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 51, 153, 0.4);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    color: #fff;
    font-size: 40px;
    text-decoration: none;
}

/* .chart-card:hover .play-overlay {
    opacity: 1;
}*/

.card-info-brano {
    padding: 15px;
    text-align: center;
}

.card-title {
    margin: 0 0 10px 0;
    font-size: 18px;
    font-weight: 700;
    color: #333;
    line-height: 1.2;
    min-height: 40px;
}

.card-trend {
    font-size: 12px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.trend-salita { color: #28a745; }
.trend-discesa { color: #dc3545; }
.trend-stabile { color: #6c757d; }

.home #sbi_images {height: 400px;}
.home #sb_instagram .sbi_photo {max-height: none;}


/* Oroscopo ------------------------------------------------------ */

/* Homepage - Oroscopo */
.cpt-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    padding: 40px 20px;
}

.oroscopo-card {
    background: #ffffff;
    display: flex;
    flex-direction: column;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.card-header {
    aspect-ratio: 1 / 1;
    background-size: cover;
    background-position: center;
    width: 100%;
    border-radius: 0 !important;
}

.card-body {
    padding: 20px 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100px;
}

.card-title {
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.2;
    margin: 0 0 10px 0;
    color: #000;
    text-transform: uppercase;
}

.card-link {
    text-decoration: none;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 5px;
}

.swiper-oroscopo {
    padding: 30px 30px 65px 0px;
}

.swiper-button-next, .swiper-button-prev {
    color: #003399; 
    background: #fff;
    padding: 40px;
    transform: scale(0.7);
}

.post-type-archive-oroscopo .blog-meta {display: none;}


/* Speaker ------------------------------------------------------ */
.team-social-icons li a,
.team-social-icons li a:hover {background: none;}

.single-speaker .blog-meta.blog-meta-single {display: none;}


/* Footer ------------------------------------------------------ */
.main-footer p,
.main-footer a,
.main-footer .widget_nav_menu ul li a
{
    color: #fff;
    
}
.main-footer .copyrights .list-inline.footer-menu {display: none;}

.footer-widget-area .widget-title:before, .footer-scarica-app:before {
    position: absolute;
    left: 0;
    content: "\f0e7";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    background: #456AB2;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.footer-scarica-app h4 {margin: 0 0 30px 20px !important; color: #fff;}

/* Media Queries ------------------------------------------------------ */
@media screen and (max-width: 1366px) {
    .navbar-brand {min-width: inherit !important;}
}

@media (max-width: 1024px) {
    .cpt-grid,
    .page-id-2257 .cpt-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .content .post:last-child .blog-box {margin-bottom: 15px;}
    
    .blog-desc {padding: 20px !important;}
    
    .blog-des-title {
        font-size: 1.2rem !important;
        word-wrap: break-word;
        overflow-wrap: break-word;
        white-space: normal;
        line-height: 1.3 !important;
        margin-bottom: 15px !important;
    }

    .blog-des-title a {
        display: block; 
        width: 100%;
    }
    
}


@media (max-width: 991px) {
    header, header .header-main.header-sticky {padding: 0 !important;}
    .navbar .mobile-nav-toggler .navbar-brand img {height: 70px !important;}

    header .mobile-nav-toggler {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
    }

    header .mobile-nav-toggler svg {margin: 0 !important;}
    
    .mobile-logo img {
        content: url("/wp-content/uploads/2026/03/logo-500x500-bco-1.webp");
        width: 100px; 
        height: auto;
    }

    .container-diretta-desktop {display: none;}

    .mobile-only-live-bar {
        display: block;
        background-color: #003399;
        margin: 0 -15px;
    }

    .mobile-only-live-bar a {
        display: flex;
        align-items: center;
        padding: 12px 20px;
        text-decoration: none !important;
        color: #ffffff !important;
        font-weight: bold;
        text-transform: uppercase;c
        font-size: 14px;
        letter-spacing: 1px;
    }

    .mobile-only-live-bar .play-circle {
        background-color: #ffffff;
        color: #003399;
        width: 32px;
        height: 32px;
        border-radius: 50%;
        display: flex;
        justify-content: center;
        align-items: center;
        margin-right: 15px;
    }

    .mobile-only-live-bar .play-circle i {
        font-size: 12px;
        margin-left: 2px;
    }

    section.bg-banner.header-style1 .tagline-message.page-title1 {background-color: #8099cc !important;}

    .cpt-grid,
    .page-id-2257 .cpt-grid {
        grid-template-columns: repeat(2, 1fr);
        padding: 0 !important;
    }
    
    .chart-preview-grid {
        display: grid;
        grid-template-columns: repeat(4, 1fr); 
        gap: 15px;
        margin: 20px 0;
    }
    
    .single-speaker figure {margin-bottom: 20px !important;}
    .single-speaker .wp-block-media-text__content {padding: 0 !important;}
    
    .single div:has(> a.text-right-next) {padding: 0; text-align: right !important;}
    
    div.col-md-4:has(input.wpcf7-submit) {
        max-width: 40% !important;
    }

}

@media (max-width: 768px) {
    
    .chaty-widget.left-position.has-single {left: 20px !important; bottom: 75px !important;}
    
    #box-palinsesto {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }

    .programma-card {
        width: 100%;
        max-width: 100%;
        flex: 1 1 auto;
        transform: none !important;
        opacity: 1 !important;
    }
    
    .chart-preview-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr); 
        gap: 15px;
        margin: 20px 0;
    }
    
    div.col-md-4:has(input.wpcf7-submit) {
        max-width: 60% !important;
    }
}