/*
Theme Name: PorlalNews
Author: PorlalNews contributors
Description: Tema WordPress autonomo per notizie e contenuti editoriali, con controlli responsive per titolo e sottotitolo.
Version: 1.1.8
Requires at least: 4.0
Requires PHP: 5.0
Tested up to: 7.1
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: porlalnews

This theme, like WordPress, is licensed under the GPL.
PorlalNews bundles framework code from MoreNews WordPress Theme, Copyright 2026 AF themes.
*/

.porlalnews-branding-lines {
    display: inline-grid;
    grid-template-columns: minmax(0, max-content);
    width: max-content;
    max-width: 100%;
    vertical-align: middle;
}

.porlalnews-branding-position {
    display: block;
    width: 100%;
    max-width: 100%;
}

.porlalnews-site-branding .porlalnews-site-title,
.porlalnews-site-branding .porlalnews-site-description {
    min-width: 0;
    max-width: 100%;
    overflow-wrap: anywhere;
}

.porlalnews-site-branding .porlalnews-site-title {
    margin-top: 0;
    line-height: 1.12;
}

.porlalnews-site-branding .porlalnews-site-title a,
.porlalnews-subtitle-link,
.porlalnews-subtitle-link:hover,
.porlalnews-subtitle-link:focus,
.porlalnews-subtitle-link:visited {
    color: inherit;
    text-decoration: none !important;
    border-bottom: 0 !important;
}

.porlalnews-site-branding .porlalnews-site-description {
    margin-bottom: 0;
    line-height: 1.4;
}

.porlalnews-site-branding .porlalnews-site-title,
.porlalnews-site-branding .porlalnews-site-title > a,
.porlalnews-site-branding .porlalnews-site-title > a > span {
    font-size: 72px !important;
    font-size: var(--porlalnews-title-desktop-size, 72px) !important;
}

.porlalnews-site-branding .porlalnews-site-description,
.porlalnews-site-branding .porlalnews-site-description > a,
.porlalnews-site-branding .porlalnews-site-description > a > span {
    font-size: 24px !important;
    font-size: var(--porlalnews-subtitle-desktop-size, 24px) !important;
}

@media screen and (max-width: 992px) {
    .porlalnews-site-branding .porlalnews-site-title,
    .porlalnews-site-branding .porlalnews-site-title > a,
    .porlalnews-site-branding .porlalnews-site-title > a > span {
        font-size: 40px !important;
        font-size: var(--porlalnews-title-mobile-size, 40px) !important;
    }

    .porlalnews-site-branding .porlalnews-site-description,
    .porlalnews-site-branding .porlalnews-site-description > a,
    .porlalnews-site-branding .porlalnews-site-description > a > span {
        font-size: 17px !important;
        font-size: var(--porlalnews-subtitle-mobile-size, 17px) !important;
    }

    .main-navigation {
        position: relative;
    }

    body .main-navigation .menu > ul.menu-mobile {
        position: fixed !important;
        top: 60px !important;
        top: var(--porlalnews-mobile-menu-top, 60px) !important;
        right: 0 !important;
        left: 0 !important;
        z-index: 999999 !important;
        width: 100vw !important;
        max-width: 100vw !important;
        max-height: calc(100vh - 60px);
        max-height: calc(100vh - var(--porlalnews-mobile-menu-top, 60px));
        max-height: calc(100dvh - var(--porlalnews-mobile-menu-top, 60px));
        margin: 0 !important;
        overflow-x: hidden !important;
        overflow-y: auto !important;
        transform: none !important;
        box-sizing: border-box;
        padding-bottom: env(safe-area-inset-bottom, 0);
    }

    body .main-navigation .menu > ul.menu-mobile li > a {
        display: block;
        min-height: 48px;
        box-sizing: border-box;
        padding-top: 14px;
        padding-bottom: 14px;
        line-height: 1.45;
        white-space: normal;
        overflow-wrap: anywhere;
    }
}
