/*
Theme Name: LiveGlobe
Theme URI: https://liveglobe.net/
Description: Custom block theme for LiveGlobe.net.
Author: LiveGlobe
Template: twentytwentyfive
Version: 2.1.0
Text Domain: liveglobe
*/

/* =========================================================
   LIVEGLOBE HEADER
   ========================================================= */

.liveglobe-site-header {
    margin: 0 !important;
    padding: 0 24px !important;
    border-bottom: 1px solid rgba(255,255,255,.07);
    background: #10151d;
}

.liveglobe-header-inner {
    max-width: 1400px;
    min-height: 72px;
    margin: 0 auto !important;
    padding: 0 !important;
}

.liveglobe-brand-link {
    display: flex;
    align-items: center;
    gap: 11px;
    color: #fff !important;
    text-decoration: none !important;
}

.liveglobe-brand-mark {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 1px solid rgba(105,160,255,.35);
    border-radius: 50%;
    color: #8dbbff;
    font-size: 13px;
}

.liveglobe-brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.05;
}

.liveglobe-brand-text strong {
    font-size: 20px;
    letter-spacing: -.4px;
}

.liveglobe-brand-text small {
    margin-top: 5px;
    color: #8390a3;
    font-size: 10px;
    font-weight: 500;
    letter-spacing: .05em;
}

.liveglobe-main-nav {
    display: flex;
    align-items: center;
    gap: 26px;
}

.liveglobe-main-nav a {
    position: relative;
    padding: 27px 0 25px;
    color: #aeb8c7 !important;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none !important;
}

.liveglobe-main-nav a:hover {
    color: #fff !important;
}

.liveglobe-main-nav a:first-child {
    color: #fff !important;
}

.liveglobe-main-nav a:first-child::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 2px;
    background: #8dbbff;
}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 850px) {

    .liveglobe-header-inner {
        padding: 14px 0 !important;
    }

    .liveglobe-main-nav {
        width: 100%;
        gap: 18px;
        overflow-x: auto;
    }

    .liveglobe-main-nav a {
        flex: 0 0 auto;
        padding: 12px 0 8px;
    }

    .liveglobe-footer-inner {
        align-items: flex-start !important;
        gap: 20px;
    }

    .liveglobe-footer-bottom {
        flex-direction: column;
        gap: 5px;
    }
}


/* =========================================================
   LIVEGLOBE HOMEPAGE
   ========================================================= */

body.home {
    margin: 0;
}

.liveglobe-home-main {
    width: 100%;
    max-width: none !important;

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

.liveglobe-home-main > .wp-block-post-content {
    width: 100%;
    max-width: none !important;

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

.liveglobe-home-main .alignfull {
    width: 100%;
    max-width: none;
}


/* =========================================================
   LIVEGLOBE HEADER LOGO
   ========================================================= */

.liveglobe-header-logo {
    display: block;

    width: 210px;
    height: auto;

    max-width: 100%;
}

@media (max-width: 600px) {

    .liveglobe-header-logo {
        width: 175px;
    }
}


/* =========================================================
   LIVEGLOBE HEADER - FINAL OVERRIDES
   ========================================================= */

body .liveglobe-site-header {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 28px !important;

    background: #0d131d !important;
    border-bottom: 1px solid rgba(255,255,255,.07) !important;
}

body .liveglobe-site-header .liveglobe-header-inner {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: space-between !important;

    width: 100% !important;
    max-width: 1400px !important;
    min-height: 78px !important;

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

body .liveglobe-site-header .liveglobe-brand {
    flex: 0 0 auto !important;
    margin: 0 !important;
    padding: 0 !important;
}

body .liveglobe-header-logo {
    display: block !important;

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

    margin: 0 !important;
}

body .liveglobe-main-nav {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;

    gap: 27px !important;

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

body .liveglobe-main-nav a {
    display: block !important;

    margin: 0 !important;
    padding: 29px 0 27px !important;

    color: #aeb8c7 !important;

    font-size: 13px !important;
    font-weight: 600 !important;
    line-height: 1 !important;

    text-decoration: none !important;
}

body .liveglobe-main-nav a:hover {
    color: #ffffff !important;
}

body .liveglobe-main-nav a:first-child {
    color: #ffffff !important;
}

@media (max-width: 850px) {

    body .liveglobe-site-header {
        padding: 0 18px !important;
    }

    body .liveglobe-site-header .liveglobe-header-inner {
        flex-wrap: wrap !important;
        padding: 12px 0 !important;
    }

    body .liveglobe-header-logo {
        width: 190px !important;
    }

    body .liveglobe-main-nav {
        width: 100% !important;
        margin-top: 8px !important;
        gap: 20px !important;

        overflow-x: auto !important;
    }

    body .liveglobe-main-nav a {
        flex: 0 0 auto !important;
        padding: 10px 0 !important;
    }
}


/* =========================================================
   LIVEGLOBE HEADER - FINAL OVERRIDES
   ========================================================= */

body .liveglobe-site-header {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 28px !important;

    background: #0d131d !important;
    border-bottom: 1px solid rgba(255,255,255,.07) !important;
}

body .liveglobe-site-header .liveglobe-header-inner {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: space-between !important;

    width: 100% !important;
    max-width: 1400px !important;
    min-height: 78px !important;

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

body .liveglobe-site-header .liveglobe-brand {
    flex: 0 0 auto !important;
    margin: 0 !important;
    padding: 0 !important;
}

body .liveglobe-header-logo {
    display: block !important;

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

    margin: 0 !important;
}

body .liveglobe-main-nav {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;

    gap: 27px !important;

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

body .liveglobe-main-nav a {
    display: block !important;

    margin: 0 !important;
    padding: 29px 0 27px !important;

    color: #aeb8c7 !important;

    font-size: 13px !important;
    font-weight: 600 !important;
    line-height: 1 !important;

    text-decoration: none !important;
}

body .liveglobe-main-nav a:hover {
    color: #ffffff !important;
}

body .liveglobe-main-nav a:first-child {
    color: #ffffff !important;
}

@media (max-width: 850px) {

    body .liveglobe-site-header {
        padding: 0 18px !important;
    }

    body .liveglobe-site-header .liveglobe-header-inner {
        flex-wrap: wrap !important;
        padding: 12px 0 !important;
    }

    body .liveglobe-header-logo {
        width: 190px !important;
    }

    body .liveglobe-main-nav {
        width: 100% !important;
        margin-top: 8px !important;
        gap: 20px !important;

        overflow-x: auto !important;
    }

    body .liveglobe-main-nav a {
        flex: 0 0 auto !important;
        padding: 10px 0 !important;
    }
}


/* =========================================================
   LIVEGLOBE - LANGUAGE SWITCHER
   ========================================================= */

.liveglobe-language-switcher {
    display: flex;
    align-items: center;
    gap: 0;
    white-space: nowrap;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.liveglobe-language-switcher a {
    display: inline-flex;
    align-items: center;
    color: rgba(255,255,255,0.68);
    text-decoration: none;
    transition: color 0.2s ease;
}

.liveglobe-language-switcher a:hover {
    color: #ffffff;
}

.liveglobe-language-switcher a.is-current {
    color: #ffffff;
}

.liveglobe-language-switcher a:not(:last-child)::after {
    content: "|";
    margin: 0 7px;
    color: rgba(255,255,255,0.28);
    font-weight: 400;
}

@media (max-width: 782px) {

    .liveglobe-language-switcher {
        width: 100%;
        justify-content: center;
        margin-top: 8px;
    }

}

/* Spazio tra header e player nelle homepage LiveGlobe */
.liveglobe-home-main > .wp-block-post-content {
    padding-top: 20px !important;
}

/* ==========================================================
   LIVEGLOBE FOOTER - DEFINITIVO
   ========================================================== */

.liveglobe-site-footer {
    margin: 36px 0 0 !important;
    padding: 0 24px !important;

    background: #0d1219;
    border-top: 1px solid rgba(255,255,255,.07);
}

/* Riga superiore */

.liveglobe-footer-inner {
    width: 100% !important;
    max-width: 1400px !important;

    margin: 0 auto !important;
    padding: 18px 0 16px !important;

    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;

    gap: 40px !important;
}

/* Brand */

.liveglobe-footer-brand {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;

    gap: 14px !important;

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

    flex-shrink: 0;
}

.liveglobe-footer-logo {
    display: block !important;
    line-height: 0 !important;
}

.liveglobe-footer-logo img {
    display: block !important;

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

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

.liveglobe-footer-brand span {
    display: block !important;

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

    color: #778396;
    font-size: 11px;
    line-height: 1.2 !important;

    white-space: nowrap;
}

/* Navigazione */

.liveglobe-footer-nav {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    flex-wrap: wrap !important;

    gap: 10px 26px !important;

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

.liveglobe-footer-nav a {
    display: inline-block !important;

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

    color: #8995a7 !important;
    font-size: 14px;
    font-weight: 600;

    text-decoration: none !important;
    white-space: nowrap;
}

.liveglobe-footer-nav a:hover {
    color: #fff !important;
}

/* Riga inferiore */

.liveglobe-footer-bottom {
    width: 100% !important;
    max-width: 1400px !important;

    margin: 0 auto !important;

    padding: 13px 0 15px !important;

    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;

    border-top: 1px solid rgba(255,255,255,.06);

    color: #5f6a79;
    font-size: 10px;
}

/* Tablet / Mobile */

@media (max-width: 900px) {

    .liveglobe-footer-inner {
        flex-direction: column !important;

        gap: 15px !important;

        padding: 18px 0 !important;
    }

    .liveglobe-footer-brand {
        flex-direction: column !important;

        gap: 5px !important;
    }

    .liveglobe-footer-nav {
        justify-content: center !important;

        gap: 10px 18px !important;
    }

    .liveglobe-footer-bottom {
        flex-direction: column !important;

        gap: 5px !important;

        padding: 12px 0 14px !important;

        text-align: center;
    }
}


/* ==========================================================
   LIVEGLOBE FOOTER - FINAL POLISH
   ========================================================== */

/* Compatta leggermente la fascia superiore */
.liveglobe-footer-inner {
    padding-top: 13px !important;
    padding-bottom: 12px !important;
}

/* Compensa otticamente lo spazio trasparente interno al PNG */
.liveglobe-footer-logo {
    transform: translateY(1px);
}

/* Fascia inferiore più compatta */
.liveglobe-footer-bottom {
    padding-top: 10px !important;
    padding-bottom: 11px !important;
}

/* Mobile: mantiene un po' più di respiro */
@media (max-width: 900px) {

    .liveglobe-footer-inner {
        padding-top: 15px !important;
        padding-bottom: 15px !important;
    }

    .liveglobe-footer-bottom {
        padding-top: 10px !important;
        padding-bottom: 11px !important;
    }
}



/* =========================================================
   LIVEGLOBE - ADVERTISE LANDING PAGE
   ========================================================= */

.liveglobe-advertise-page {
    max-width: 1180px;
    margin: 0 auto;
    padding: 55px 24px 70px;
}

.liveglobe-advertise-hero {
    max-width: 780px;
    margin: 0 auto 45px;
    text-align: center;
}

.liveglobe-advertise-eyebrow {
    display: block;
    margin-bottom: 12px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
    opacity: .55;
}

.liveglobe-advertise-hero h1 {
    margin: 0 0 16px;
    font-size: clamp(34px, 5vw, 52px);
    line-height: 1.05;
    letter-spacing: -.025em;
}

.liveglobe-advertise-hero p {
    max-width: 680px;
    margin: 0 auto;
    font-size: 16px;
    line-height: 1.65;
    opacity: .68;
}


/* SERVICES */

.liveglobe-advertise-services {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin: 0 0 60px;
}

.liveglobe-advertise-service {
    position: relative;
    min-height: 250px;
    padding: 26px;
    border: 1px solid rgba(255,255,255,.10);
    border-radius: 14px;
    background: rgba(255,255,255,.035);
    box-sizing: border-box;
}

.liveglobe-service-number {
    display: block;
    margin-bottom: 30px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .12em;
    opacity: .35;
}

.liveglobe-advertise-service h2 {
    margin: 0 0 12px;
    font-size: 20px;
    line-height: 1.25;
}

.liveglobe-advertise-service p {
    margin: 0 0 25px;
    font-size: 13px;
    line-height: 1.65;
    opacity: .62;
}

.liveglobe-service-tag {
    display: inline-block;
    padding: 5px 8px;
    border: 1px solid rgba(255,255,255,.10);
    border-radius: 5px;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .08em;
    opacity: .55;
}


/* CONTACT */

.liveglobe-advertise-contact {
    max-width: 900px;
    margin: 0 auto;
}

.liveglobe-advertise-contact-heading {
    max-width: 650px;
    margin: 0 auto 25px;
    text-align: center;
}

.liveglobe-advertise-contact-heading h2 {
    margin: 0 0 10px;
    font-size: 30px;
}

.liveglobe-advertise-contact-heading p {
    margin: 0;
    font-size: 14px;
    line-height: 1.65;
    opacity: .62;
}


/* RESPONSIVE */

@media (max-width: 800px) {

    .liveglobe-advertise-page {
        padding: 38px 18px 55px;
    }

    .liveglobe-advertise-services {
        grid-template-columns: 1fr;
        gap: 14px;
        margin-bottom: 45px;
    }

    .liveglobe-advertise-service {
        min-height: auto;
    }

    .liveglobe-service-number {
        margin-bottom: 18px;
    }
}


/* =========================================================
   LIVEGLOBE ADVERTISING PAGE - LIGHT FORM FIX
   ========================================================= */

.liveglobe-advertise-page .liveglobe-advertise-form {
    background: #f5f6f7;
    border: 1px solid rgba(0,0,0,.10);
}

.liveglobe-advertise-page .liveglobe-advertise-form label {
    color: #242a31 !important;
}

.liveglobe-advertise-page .liveglobe-advertise-form input[type="text"],
.liveglobe-advertise-page .liveglobe-advertise-form input[type="email"],
.liveglobe-advertise-page .liveglobe-advertise-form input[type="url"],
.liveglobe-advertise-page .liveglobe-advertise-form select,
.liveglobe-advertise-page .liveglobe-advertise-form textarea {
    background: #ffffff !important;
    border: 1px solid rgba(0,0,0,.18) !important;
    color: #171b20 !important;
}

.liveglobe-advertise-page .liveglobe-advertise-form input::placeholder,
.liveglobe-advertise-page .liveglobe-advertise-form textarea::placeholder {
    color: #7a8088 !important;
}

.liveglobe-advertise-page .liveglobe-advertise-form select option {
    background: #ffffff;
    color: #171b20;
}

.liveglobe-advertise-page .liveglobe-advertise-form input:focus,
.liveglobe-advertise-page .liveglobe-advertise-form select:focus,
.liveglobe-advertise-page .liveglobe-advertise-form textarea:focus {
    border-color: #555f6b !important;
    background: #ffffff !important;
    box-shadow: 0 0 0 3px rgba(0,0,0,.05);
}

.liveglobe-advertise-page .liveglobe-advertise-privacy {
    color: #656b72 !important;
}

.liveglobe-advertise-page .liveglobe-advertise-submit {
    background: #111820;
    border-color: #111820;
    color: #ffffff;
}

.liveglobe-advertise-page .liveglobe-advertise-submit:hover {
    background: #27313b;
    border-color: #27313b;
}


/* Commercial service cards on light background */

.liveglobe-advertise-page .liveglobe-advertise-service {
    background: #e9edf1;
    border: 1px solid rgba(0,0,0,.16);
    box-shadow: 0 10px 28px rgba(0,0,0,.08);
}

.liveglobe-advertise-page .liveglobe-advertise-service:hover {
    border-color: rgba(0,0,0,.20);
    box-shadow: 0 12px 32px rgba(0,0,0,.07);
    transform: translateY(-2px);
}

.liveglobe-advertise-page .liveglobe-advertise-service {
    transition:
        transform .2s ease,
        border-color .2s ease,
        box-shadow .2s ease;
}

.liveglobe-advertise-page .liveglobe-service-number,
.liveglobe-advertise-page .liveglobe-service-tag {
    color: #4f5862;
}



/* Advertise page - compact contact section */

.liveglobe-advertise-page .liveglobe-advertise-contact-heading {
    margin-bottom: 18px !important;
}

.liveglobe-advertise-page .liveglobe-advertise-form-wrap {
    margin-top: 0 !important;
}



/* =========================================================
   LIVEGLOBE ADVERTISING - HIDE WORDPRESS PAGE TITLE
   The landing page provides its own H1.
   ========================================================= */

body.page-id-38 .wp-block-post-title,
body.page-id-39 .wp-block-post-title,
body.page-id-40 .wp-block-post-title,
body.page-id-41 .wp-block-post-title,
body.page-id-42 .wp-block-post-title {
    display: none !important;
}



/* =========================================================
   LIVEGLOBE ADVERTISING - REMOVE UNUSED TOP SPACE
   ========================================================= */

body.page-id-38 main,
body.page-id-39 main,
body.page-id-40 main,
body.page-id-41 main,
body.page-id-42 main {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

body.page-id-38 .wp-block-post-content,
body.page-id-39 .wp-block-post-content,
body.page-id-40 .wp-block-post-content,
body.page-id-41 .wp-block-post-content,
body.page-id-42 .wp-block-post-content {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

.liveglobe-advertise-page {
    padding-top: 32px !important;
}


/* ==========================================
   LIVEGLOBE - SUGGEST A CHANNEL
   ========================================== */

.liveglobe-suggest-link {
    margin: -4px 0 18px;
    font-size: 13px;
    line-height: 1.5;
    color: #646970;
}

.liveglobe-suggest-link a {
    margin-left: 4px;
    font-weight: 600;
    text-decoration: none;
}

.liveglobe-suggest-link a:hover,
.liveglobe-suggest-link a:focus {
    text-decoration: underline;
}



/* LIVEGLOBE JOURNAL EDITORIAL LAYOUT V1 */

/* Archivio */
body:has(.lgjournal) .wp-block-post-content,
body:has(.lgjournal) .wp-block-post-content,
body:has(.lgjournal) .wp-block-post-content,
body:has(.lgjournal) .wp-block-post-content,
body:has(.lgjournal) .wp-block-post-content {
    max-width: 1160px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 24px;
    padding-right: 24px;
}

body:has(.lgjournal) .wp-block-post-title,
body:has(.lgjournal) .wp-block-post-title,
body:has(.lgjournal) .wp-block-post-title,
body:has(.lgjournal) .wp-block-post-title,
body:has(.lgjournal) .wp-block-post-title {
    max-width: 1160px;
    margin: 45px auto 12px;
    padding: 0 24px;
    font-size: clamp(34px, 4vw, 48px);
    line-height: 1.15;
    font-weight: 750;
    color: #101c30;
}

body:has(.lgjournal) .lgjournal,
body:has(.lgjournal) .lgjournal,
body:has(.lgjournal) .lgjournal,
body:has(.lgjournal) .lgjournal,
body:has(.lgjournal) .lgjournal {
    padding-left: 0;
    padding-right: 0;
    margin-top: 38px;
}

/* Singolo articolo */
.lgjournal-article-main {
    max-width: 980px;
    margin: 0 auto;
    padding: 48px 24px 70px;
}

.lgjournal-article-header {
    max-width: 860px;
    margin: 0 auto 28px;
}

.lgjournal-article-category {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    margin-bottom: 14px;
}

.lgjournal-article-category a {
    color: #2055ad;
    text-decoration: none;
}

.lgjournal-article-title {
    font-size: clamp(34px, 4.5vw, 54px);
    line-height: 1.13;
    letter-spacing: -.025em;
    font-weight: 750;
    color: #101c30;
    margin: 0 0 18px;
}

.lgjournal-article-date {
    font-size: 14px;
    color: #64748b;
    margin: 0;
}

.lgjournal-article-featured {
    max-width: 980px;
    margin: 30px auto 36px;
}

.lgjournal-article-featured img {
    width: 100%;
    max-height: 480px;
    object-fit: cover;
    border-radius: 16px;
}

.lgjournal-article-main > .wp-block-post-content {
    max-width: 860px;
    margin-left: auto;
    margin-right: auto;
}

.lgjournal-article-main .lgjournal-single {
    max-width: 100%;
    margin: 0;
    padding: 0;
}

.lgjournal-article-main .lgjournal-single-meta {
    display: none;
}

.lgjournal-article-main .lgjournal-article-content {
    font-size: 18px;
    line-height: 1.85;
    color: #243247;
}

.lgjournal-article-main .lgjournal-back {
    margin-top: 44px;
}

@media (max-width: 600px) {
    .lgjournal-article-main {
        padding: 30px 18px 45px;
    }

    .lgjournal-article-title {
        font-size: 34px;
    }

    .lgjournal-article-main .lgjournal-article-content {
        font-size: 16px;
    }
}

/* LIVEGLOBE JOURNAL - RIDUZIONE SPAZIO SUPERIORE */

body:has(.lgjournal) main,
body:has(.lgjournal) main,
body:has(.lgjournal) main,
body:has(.lgjournal) main,
body:has(.lgjournal) main {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

body:has(.lgjournal) .wp-block-post-title,
body:has(.lgjournal) .wp-block-post-title,
body:has(.lgjournal) .wp-block-post-title,
body:has(.lgjournal) .wp-block-post-title,
body:has(.lgjournal) .wp-block-post-title {
    margin-top: 36px !important;
}

body:has(.lgjournal) .wp-block-post-content,
body:has(.lgjournal) .wp-block-post-content,
body:has(.lgjournal) .wp-block-post-content,
body:has(.lgjournal) .wp-block-post-content,
body:has(.lgjournal) .wp-block-post-content {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

@media (max-width: 600px) {
    body:has(.lgjournal) .wp-block-post-title,
    body:has(.lgjournal) .wp-block-post-title,
    body:has(.lgjournal) .wp-block-post-title,
    body:has(.lgjournal) .wp-block-post-title,
    body:has(.lgjournal) .wp-block-post-title {
        margin-top: 24px !important;
    }
}


/* LIVEGLOBE JOURNAL SINGLE REFINEMENT V2 */

/* Contenitore e intestazione */

body.single-post .lgjournal-article-main {
    box-sizing: border-box;
    width: 100%;
    max-width: 980px;
    margin-left: auto;
    margin-right: auto;
}

body.single-post .lgjournal-article-header {
    width: 100%;
    max-width: 860px;
}

body.single-post .lgjournal-article-title {
    overflow-wrap: break-word;
    text-wrap: balance;
}

body.single-post .lgjournal-article-date {
    line-height: 1.6;
}

/* Immagine in evidenza */

body.single-post .lgjournal-article-featured {
    width: 100%;
    max-width: 100%;
    margin: 30px auto 40px;
    overflow: hidden;
    border-radius: 16px;
}

body.single-post .lgjournal-article-featured img {
    display: block;
    width: 100%;
    height: auto;
    max-height: none;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 16px;
}

/* Corpo editoriale */

body.single-post .lgjournal-article-content {
    font-size: 18px;
    line-height: 1.85;
    color: #243247;
    overflow-wrap: break-word;
}

body.single-post .lgjournal-article-content p {
    margin: 0 0 1.4em;
}

body.single-post .lgjournal-article-content h2,
body.single-post .lgjournal-article-content h3,
body.single-post .lgjournal-article-content h4 {
    color: #101c30;
    line-height: 1.3;
    font-weight: 750;
    margin-top: 1.8em;
    margin-bottom: .7em;
}

body.single-post .lgjournal-article-content h2 {
    font-size: clamp(25px, 3vw, 32px);
}

body.single-post .lgjournal-article-content h3 {
    font-size: clamp(21px, 2.5vw, 26px);
}

body.single-post .lgjournal-article-content ul,
body.single-post .lgjournal-article-content ol {
    padding-left: 1.6em;
    margin-bottom: 1.5em;
}

body.single-post .lgjournal-article-content li {
    margin-bottom: .5em;
}

body.single-post .lgjournal-article-content a {
    color: #2055ad;
    text-decoration: underline;
    text-underline-offset: 3px;
}

body.single-post .lgjournal-article-content blockquote {
    margin: 2em 0;
    padding: 12px 24px;
    border-left: 4px solid #2563eb;
    background: #f4f7fc;
    color: #334155;
}

body.single-post .lgjournal-article-content figure {
    max-width: 100%;
    margin-top: 2em;
    margin-bottom: 2em;
}

body.single-post .lgjournal-article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
}

/* Collegamento di ritorno */

body.single-post .lgjournal-back {
    margin-top: 52px;
    padding-top: 24px;
    border-top: 1px solid #dfe4ec;
}

body.single-post .lgjournal-back a {
    display: inline-flex;
    align-items: center;
    padding: 12px 18px;
    border: 1px solid #dbe5f3;
    border-radius: 9px;
    background: #f4f7fc;
    color: #2055ad;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    transition: background .2s ease;
}

body.single-post .lgjournal-back a:hover,
body.single-post .lgjournal-back a:focus-visible {
    background: #e5eefb;
}

/* Smartphone */

@media (max-width: 600px) {

    body.single-post .lgjournal-article-main {
        padding: 28px 18px 50px;
    }

    body.single-post .lgjournal-article-title {
        font-size: clamp(30px, 8vw, 36px);
        line-height: 1.18;
    }

    body.single-post .lgjournal-article-featured {
        margin-top: 24px;
        margin-bottom: 28px;
        border-radius: 12px;
    }

    body.single-post .lgjournal-article-content {
        font-size: 16px;
        line-height: 1.8;
    }

    body.single-post .lgjournal-back {
        margin-top: 36px;
    }
}


/* LIVEGLOBE JOURNAL HEADER ALIGNMENT V1 */

body:has(.lgjournal)
.wp-block-post-title {
    box-sizing: border-box;
    width: 100%;
    max-width: 1160px;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 24px;
    padding-right: 24px;
}

body:has(.lgjournal)
.wp-block-post-content {
    box-sizing: border-box;
    width: 100%;
    max-width: 1160px;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 24px;
    padding-right: 24px;
}

body:has(.lgjournal)
.wp-block-post-content > p {
    max-width: 100%;
    margin-left: 0 !important;
    margin-right: 0 !important;
    text-align: left;
}


/* LIVEGLOBE ACTIVE NAV CSS V1 */

/* Rimuove l'evidenziazione permanente della prima voce */

body .liveglobe-main-nav a:first-child {
    color: rgba(255,255,255,.75) !important;
    border-bottom: none !important;
}

body .liveglobe-main-nav a:first-child::after {
    display: none !important;
}

/* Evidenzia soltanto la voce attiva */

body .liveglobe-main-nav a.is-active {
    color: #ffffff !important;
    border-bottom: 2px solid #60a5fa !important;
}

body .liveglobe-main-nav a.is-active:hover {
    color: #ffffff !important;
}


/* LIVEGLOBE NAV TYPOGRAPHY UNIFICATION V1 */

@media (min-width: 851px) {
    body .liveglobe-main-nav {
        gap: 30px !important;
    }
}

body .liveglobe-main-nav a {
    font-size: 14px !important;
    font-weight: 650 !important;
    line-height: 1.3 !important;
}

/* =========================================================
   LIVEGLOBE FOOTER BOTTOM READABILITY V1
   ========================================================= */

.liveglobe-footer-bottom {
    font-size: 14px !important;
    line-height: 1.65 !important;
    color: #d1d5db !important;
    gap: 12px 24px !important;
}

.liveglobe-footer-bottom,
.liveglobe-footer-bottom span,
.liveglobe-footer-bottom p,
.liveglobe-footer-bottom small {
    font-size: 14px !important;
    color: #d1d5db !important;
}

.liveglobe-footer-bottom a {
    font-size: 14px !important;
    font-weight: 600 !important;
    color: #e5e7eb !important;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.liveglobe-footer-bottom a:hover,
.liveglobe-footer-bottom a:focus-visible {
    color: #ffffff !important;
}

@media (max-width: 900px) {
    .liveglobe-footer-bottom {
        font-size: 14px !important;
        gap: 8px !important;
        text-align: center;
    }
}

/* LIVEGLOBE FOOTER BOTTOM STRUCTURE V3 */

.liveglobe-footer-bottom .liveglobe-footer-copyright {
    display: inline-block !important;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
}

.liveglobe-footer-bottom .liveglobe-footer-claim {
    display: inline-block !important;
    text-align: right;
}

@media (max-width: 900px) {
    .liveglobe-footer-bottom .liveglobe-footer-claim {
        text-align: center;
    }
}

/* =========================================================
   LIVEGLOBE 2.0 - DARK CARD RESTYLING V1
   ========================================================= */

body.home .lg20-info-card,
body.home .liveglobe-sidebar-card,
body.home .liveglobe-number-card {
    background: linear-gradient(
        145deg,
        #172a43 0%,
        #101c30 100%
    ) !important;

    border: 1px solid #2b496b !important;
    border-radius: 16px;

    box-shadow:
        0 8px 24px rgba(0, 0, 0, 0.20),
        inset 0 1px 0 rgba(255, 255, 255, 0.04);

    color: #f4f8ff;
}

body.home .lg20-info-card strong,
body.home .liveglobe-sidebar-card .liveglobe-sidebar-label,
body.home .liveglobe-number-value {
    color: #ffffff;
}

body.home .lg20-info-card span,
body.home .liveglobe-number-label {
    color: #b9cbe2;
    opacity: 1;
}

body.home .lg20-info-card:hover,
body.home .liveglobe-number-card:hover {
    border-color: #4a91e8 !important;

    box-shadow:
        0 12px 30px rgba(0, 0, 0, 0.28),
        0 0 0 1px rgba(74, 145, 232, 0.15);

    transform: translateY(-3px);
}

/* =========================================================
   LIVEGLOBE 2.0 - DARK CARD TEXT FIX V2
   ========================================================= */

/* Card editoriali */
body.home .lg20-info-card strong {
    color: #ffffff !important;
    font-size: 20px !important;
    font-weight: 800 !important;
    line-height: 1.3;
}

body.home .lg20-info-card span {
    color: #c0d2e8 !important;
    font-size: 14px !important;
    line-height: 1.6;
}

/* Pannelli promozionali */
body.home .liveglobe-sidebar-card strong,
body.home .liveglobe-sidebar-card h2,
body.home .liveglobe-sidebar-card h3 {
    color: #ffffff !important;
}

body.home .liveglobe-sidebar-card p {
    color: #b9cbe2 !important;
    font-size: 13px;
    line-height: 1.6;
}

/* Preferiti e cronologia: elementi con sfondo chiaro */
body.home .liveglobe-favorite-item,
body.home .liveglobe-recent-item {
    background: #172a43 !important;
    border-color: #2b496b !important;
}

body.home .liveglobe-favorite-item-name,
body.home .liveglobe-recent-item-name {
    color: #ffffff !important;
}

body.home .liveglobe-favorite-item-meta,
body.home .liveglobe-recent-item-meta {
    color: #b9cbe2 !important;
}

/* Statistiche: numeri e descrizioni */
body.home .liveglobe-number-value {
    color: #ffffff !important;
    opacity: 1 !important;
    font-size: clamp(34px, 4vw, 48px);
    font-weight: 850;
}

body.home .liveglobe-number-label {
    color: #c0d2e8 !important;
    opacity: 1 !important;
    font-size: 14px;
    font-weight: 650;
}

/* =========================================================
   LIVEGLOBE 2.0 - DARK SEARCH BAR V3
   ========================================================= */

/* Barra di ricerca principale */
body.home .liveglobe-search-input,
body.home #liveglobe-search {
    background: #172a43 !important;
    border: 1px solid #355b85 !important;
    border-radius: 12px !important;

    color: #ffffff !important;
    font-size: 15px !important;

    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

/* Testo segnaposto */
body.home .liveglobe-search-input::placeholder,
body.home #liveglobe-search::placeholder {
    color: #aebfd5 !important;
    opacity: 1;
}

/* Evidenziazione durante la ricerca */
body.home .liveglobe-search-input:focus,
body.home #liveglobe-search:focus {
    outline: none !important;
    border-color: #55a4ff !important;

    box-shadow:
        0 0 0 3px rgba(85, 164, 255, 0.18),
        0 8px 24px rgba(0, 0, 0, 0.16);
}
/* =========================================================
   LIVEGLOBE 2.0 - EDITORIAL CARDS V4
   ========================================================= */

/* Struttura delle quattro card */
body.home .lg20-info-card {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 22px !important;

    padding: 26px 28px !important;
    text-align: left !important;
    text-decoration: none !important;
    position: relative;
    overflow: hidden;

    transition:
        transform 0.25s ease,
        border-color 0.25s ease,
        box-shadow 0.25s ease;
}

/* Icona circolare */
body.home .lg20-info-card .lg20-info-icon {
    flex: 0 0 72px;
    width: 72px;
    height: 72px;

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

    border-radius: 50%;
    color: #ffffff;

    box-shadow: 0 8px 22px rgba(0,0,0,0.22);
}

body.home .lg20-info-icon svg {
    width: 34px;
    height: 34px;
}

/* Colori differenti per ciascuna card */
body.home .lg20-info-card-1 .lg20-info-icon {
    background: linear-gradient(135deg, #249cff, #0751bc);
}

body.home .lg20-info-card-2 .lg20-info-icon {
    background: linear-gradient(135deg, #9254ff, #4d20ae);
}

body.home .lg20-info-card-3 .lg20-info-icon {
    background: linear-gradient(135deg, #11d7bd, #087c78);
}

body.home .lg20-info-card-4 .lg20-info-icon {
    background: linear-gradient(135deg, #ffac43, #a94e17);
}

/* Testi */
body.home .lg20-info-card .lg20-info-content {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    min-width: 0;
}

body.home .lg20-info-card .lg20-info-content strong {
    display: block;
    color: #ffffff !important;
    font-size: 20px !important;
    font-weight: 800 !important;
    line-height: 1.3;
}

body.home .lg20-info-card .lg20-info-content > span {
    display: block;
    color: #c0d2e8 !important;
    font-size: 14px !important;
    line-height: 1.5;
}

/* Freccia a destra */
body.home .lg20-info-card .lg20-info-arrow {
    flex: 0 0 42px;
    width: 42px;
    height: 42px;

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

    border-radius: 50%;
    background: #203c5e;
    border: 1px solid #355b85;
    color: #ffffff !important;

    transition:
        background 0.2s ease,
        transform 0.2s ease;
}

body.home .lg20-info-arrow svg {
    width: 20px;
    height: 20px;
}

/* Effetti interattivi */
body.home .lg20-info-card:hover .lg20-info-arrow {
    background: #2563eb;
    transform: translateX(3px);
}

body.home .lg20-info-card:focus-visible {
    outline: 3px solid #70b9ff;
    outline-offset: 3px;
}

/* Tablet e smartphone */
@media (max-width: 700px) {
    body.home .lg20-info-card {
        gap: 14px !important;
        padding: 20px 16px !important;
    }

    body.home .lg20-info-card .lg20-info-icon {
        flex-basis: 52px;
        width: 52px;
        height: 52px;
    }

    body.home .lg20-info-icon svg {
        width: 26px;
        height: 26px;
    }

    body.home .lg20-info-card .lg20-info-content strong {
        font-size: 16px !important;
    }

    body.home .lg20-info-card .lg20-info-content > span {
        font-size: 12px !important;
    }

    body.home .lg20-info-card .lg20-info-arrow {
        flex-basis: 32px;
        width: 32px;
        height: 32px;
    }
}

@media (prefers-reduced-motion: reduce) {
    body.home .lg20-info-card,
    body.home .lg20-info-card .lg20-info-arrow {
        transition: none;
    }
}
/* =========================================================
   LIVEGLOBE 2.0 - EDITORIAL ICON ALIGNMENT V5
   ========================================================= */

body.home .lg20-info-card .lg20-info-icon,
body.home .lg20-info-card .lg20-info-arrow {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    box-sizing: border-box !important;
}

body.home .lg20-info-card .lg20-info-icon svg {
    display: block !important;
    position: static !important;
    width: 34px !important;
    height: 34px !important;
    margin: 0 !important;
    flex: 0 0 34px;
}

body.home .lg20-info-card .lg20-info-arrow svg {
    display: block !important;
    position: static !important;
    width: 20px !important;
    height: 20px !important;
    margin: 0 !important;
    flex: 0 0 20px;
}

@media (max-width: 700px) {
    body.home .lg20-info-card .lg20-info-icon svg {
        width: 26px !important;
        height: 26px !important;
        flex-basis: 26px;
    }
}
/* =========================================================
   LIVEGLOBE 2.0 - HOMEPAGE VERTICAL SPACING V6
   ========================================================= */

/* Sezione LiveGlobe in Numbers */
body.home .liveglobe-numbers {
    margin-top: 20px !important;
    margin-bottom: 28px !important;
}

body.home .liveglobe-numbers-header {
    margin-bottom: 20px !important;
}

/* Riduzione dello spazio interno nelle statistiche */
body.home .liveglobe-number-card {
    min-height: 130px;
    padding-top: 18px;
    padding-bottom: 18px;
}

/* Margini dei titoli nella sezione statistiche */
body.home .liveglobe-numbers-header h2 {
    margin-bottom: 8px !important;
}

/* Ottimizzazione per smartphone */
@media (max-width: 600px) {
    body.home .liveglobe-numbers {
        margin-top: 16px !important;
        margin-bottom: 20px !important;
    }

    body.home .liveglobe-number-card {
        min-height: 115px;
        padding-top: 14px;
        padding-bottom: 14px;
    }
}
/* =========================================================
   LIVEGLOBE 2.0 - SECTION SPACING FIX V7
   ========================================================= */

/* Riduce lo spazio sotto le statistiche */
body.home .liveglobe-numbers {
    padding-bottom: 20px !important;
    margin-bottom: 0 !important;
}

/* Riduce lo spazio prima del player */
body.home .liveglobe-player {
    margin-top: 0 !important;
    padding-top: 24px !important;
}

/* Smartphone */
@media (max-width: 600px) {
    body.home .liveglobe-numbers {
        padding-bottom: 16px !important;
    }

    body.home .liveglobe-player {
        padding-top: 20px !important;
    }
}
