/*
Theme Name: News Magazine X Child
Description: Tema child di News Magazine X per personalizzazioni senza modificare il tema padre.
Template: news-magazine-x
Version: 1.0.0
Text Domain: news-magazine-x-child
*/

/* ==========================================
   BANNER ADROTATE - IMPOSTAZIONI GENERALI
========================================== */

/* Tutti i banner AdRotate */
.g {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
    padding-bottom: 40px;
}

/* Centratura banner AdRotate nella sidebar */
.newsx-right-sidebar .g {
    margin-left: auto !important;
    margin-right: auto !important;
    margin-bottom: 30px !important;
    overflow: visible;
    padding-bottom: 30px;
}

/* Centratura e spaziatura banner AdRotate nel contenuto */
.site-main .g {
    margin-left: auto !important;
    margin-right: auto !important;
    margin-bottom: 30px !important;
}

/* Banner nell'header: nessuno spazio sotto */
#adrotate_widgets-7 .g {
    padding-bottom: 0 !important;
}


/* ==========================================
   GRUPPO ADROTATE 4 - CENTRATURA SMARTPHONE
========================================== */

@media screen and (max-width: 767px) {

    .g.g-4 {
        width: 100%;
        justify-content: center !important;
    }

    .g.g-4 .g-single {
        margin-left: auto !important;
        margin-right: auto !important;
        text-align: center !important;
    }

    .g.g-4 img {
        display: block;
        max-width: 100%;
        height: auto;
        margin: 0 auto !important;
    }

}


/* ==========================================
   SKIN PUBBLICITARIA - ADROTATE GRUPPO 2
   VISIBILE SU DESKTOP, NASCOSTA SU TABLET E SMARTPHONE
========================================== */

/* Skin nascosta per impostazione predefinita */
#skin-adrotate {
    display: none;
}


/* ==========================================
   DESKTOP - DA 1400px
========================================== */

@media screen and (min-width: 1400px) {

    /* Skin pubblicitaria fissa */
    #skin-adrotate {
        display: block !important;
        position: fixed !important;

        top: 0 !important;
        left: 50% !important;

        width: 1850px !important;
        height: auto !important;

        transform: translateX(-50%) !important;

        z-index: 0 !important;
        pointer-events: none;
    }

    /* Contenitori AdRotate della skin */
    #skin-adrotate .g,
    #skin-adrotate .g-single,
    #skin-adrotate .ad-skin-content {
        display: block !important;

        width: 100% !important;
        height: auto !important;

        margin: 0 !important;
        padding: 0 !important;
    }

    /* Immagine pubblicitaria */
    #skin-adrotate img {
        display: block !important;

        width: 1850px !important;
        height: auto !important;
        max-width: none !important;

        margin: 0 auto !important;
    }

    /* Contenitore centrale del sito su desktop */
    body #page {
        position: relative !important;

        max-width: 1140px !important;

        margin: 155px auto 0 !important;

        z-index: 2 !important;
    }

}


/* ==========================================
   TABLET E SMARTPHONE
========================================== */

@media screen and (max-width: 1399px) {

    /* Nasconde la skin */
    #skin-adrotate {
        display: none !important;
    }

    /* Il tema gestisce il layout responsive */
}


/* ==========================================
   SFONDO DELLA SKIN
========================================== */

@media screen and (min-width: 1400px) {

    /* Sfondo dietro la skin */
    #skin-adrotate {
        background-color: #18788f;
    }

    /* Estende lo sfondo senza duplicare l'immagine */
    #skin-adrotate::before {
        content: "";
        position: absolute;

        top: 0;
        left: 50%;

        width: 100vw;
        height: 100%;

        transform: translateX(-50%);

        background-color: #1E1E1E;

        z-index: -1;
        pointer-events: none;
    }

}


/* ==========================================
   SFONDO ESTERNO DELLA SKIN - DESKTOP
========================================== */

@media screen and (min-width: 1400px) {

    /* Sfondo esterno del sito */
    body {
        background-color: #18788f !important;
    }

    /* Contenitore centrale */
    body #page {
        background-color: #FFFFFF !important;
    }

}


/* ==========================================
   HEADER MOBILE - LOGO SOPRA, BANNER SOTTO
========================================== */

@media screen and (max-width: 767px) {

    /* Riga centrale dell'header */
    .newsx-middle-section-wrap .newsx-builder-grid-row {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 15px !important;
    }

    /* Colonna del logo */
    .newsx-middle-section-wrap .newsx-grid-column-left {
        width: 100% !important;
        max-width: 100% !important;
        flex: 0 0 auto !important;
        justify-content: center !important;
        text-align: center !important;
    }

    /* Contenitore del logo */
    .newsx-middle-section-wrap .newsx-site-identity {
        width: 100% !important;
        display: flex !important;
        justify-content: center !important;
    }

    /* Immagine del logo */
    .newsx-middle-section-wrap .site-logo img {
        display: block !important;
        width: 250px !important;
        max-width: 100% !important;
        height: auto !important;
        margin: 0 auto !important;
    }

    /* Colonna della pubblicita */
    .newsx-middle-section-wrap .newsx-grid-column-right {
        width: 100% !important;
        max-width: 100% !important;
        flex: 0 0 auto !important;
        justify-content: center !important;
    }

    /* Widget pubblicitario */
    #adrotate_widgets-7 {
        width: 100% !important;
        margin: 0 !important;
    }

    /* Contenitori AdRotate */
    #adrotate_widgets-7 .g,
    #adrotate_widgets-7 .g-single {
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    /* Immagine pubblicitaria */
    #adrotate_widgets-7 img {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        margin: 0 auto !important;
    }

}


/* ==========================================
   PUBBLICITA A FINE ARTICOLO
========================================== */

#ad-fine-articolo {
    width: 100%;
    margin: 30px auto 40px;
    text-align: center;
}

/* Centratura AdRotate */
#ad-fine-articolo .g {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 !important;
    margin: 0 auto !important;
}

/* Immagine responsive */
#ad-fine-articolo img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 0 auto;
}

/* Smartphone */
@media screen and (max-width: 767px) {

    #ad-fine-articolo {
        margin: 20px auto 30px;
    }

}


/* ==========================================
   PUBBLICITA TRA GLI ARTICOLI
========================================== */

/* Contenitore pubblicitario */
.ad-banner-lista {
    width: 100%;
    max-width: 100%;

    grid-column: 1 / -1;

    display: flex;
    justify-content: center;
    align-items: center;

    margin: 30px auto;
    padding: 15px 0;

    text-align: center;
}

/* Contenitore AdRotate */
.ad-banner-lista .g {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;

    width: 100%;
    margin: 0 auto !important;
    padding: 0 !important;
}

/* Immagini pubblicitarie */
.ad-banner-lista img {
    display: block;

    max-width: 100% !important;
    height: auto !important;

    margin: 0 auto !important;
}

/* Smartphone */
@media screen and (max-width: 767px) {

    .ad-banner-lista {
        margin: 20px auto;
        padding: 10px 0;
    }

}

/* ==========================================
   TESTI IN GRASSETTO - NEWS MAGAZINE X
========================================== */


/* ==========================================
   MENU FOOTER
========================================== */

.newsx-footer-menu a {
    font-weight: 700 !important;
    -webkit-text-stroke: 0.3px currentColor;
}


/* ==========================================
   TITOLI TICKER SIDEBAR
========================================== */

.newsx-sidebar .news-ticker-heading-text {
    font-weight: 700 !important;
    -webkit-text-stroke: 0.3px currentColor;
}


/* ==========================================
   TITOLO TICKER HEADER
========================================== */

.newsx-header-news-ticker .news-ticker-heading-text {
    font-weight: 700 !important;
    -webkit-text-stroke: 0.3px currentColor;
}