/* ==========================================================
 * SIAE MICROELETTRONICA - Global frontend
 * Header / Footer / shared components
 * ========================================================== */

:root {
    --siae-blue: #008ac9;
    --siae-dark: #1c2124;
}

/* ----------------------------------------------------------
 * Astra header
 * ---------------------------------------------------------- */

.site-header .ast-primary-header-bar,
.site-header .site-primary-header-wrap {
    min-height: 76px;
}

.ast-desktop:not(:has(.ast-header-sticked))
.ast-primary-header-bar
.main-header-menu > .menu-item {
    line-height: 76px;
}

.site-header .site-logo-img img.custom-logo {
    width: 135px;
    max-width: 135px;
    height: auto;
}

.site-header .ast-site-identity {
    padding-top: 5px;
    padding-bottom: 5px;
}

/* Main navigation */
.ast-builder-menu-1 .main-header-menu > .menu-item > .menu-link {
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0;
    padding-left: 10px;
    padding-right: 10px;
    color: #333;
}

.ast-builder-menu-1 .main-header-menu > .menu-item:hover > .menu-link,
.ast-builder-menu-1 .main-header-menu > .current-menu-item > .menu-link,
.ast-builder-menu-1 .main-header-menu > .current-menu-ancestor > .menu-link {
    color: var(--siae-blue);
}

/* Dropdown */
.ast-builder-menu-1 .sub-menu {
    border-top-color: var(--siae-blue);
}

/* Mobile */
@media (max-width: 921px) {
    .site-header .ast-primary-header-bar,
    .site-header .site-primary-header-wrap {
        min-height: 68px;
    }

    .site-header .site-logo-img img.custom-logo {
        width: 135px;
        max-width: 135px;
    }
}

/* ----------------------------------------------------------
 * Header refinement
 * ---------------------------------------------------------- */

/* Il logo contiene già il branding: niente titolo Astra */
.site-header .site-title,
.site-header .site-description,
.site-header .ast-site-title-wrap {
    display: none !important;
}

/* Più spazio orizzontale al menu */
#masthead .ast-builder-grid-row {
    max-width: 1500px;
}

/* Header desktop compatto */
@media (min-width: 922px) {

    .site-header .ast-primary-header-bar,
    .site-header .site-primary-header-wrap {
        min-height: 72px;
    }

    .ast-desktop:not(:has(.ast-header-sticked))
    .ast-primary-header-bar
    .main-header-menu > .menu-item {
        line-height: 72px;
    }

    .ast-builder-menu-1 .main-header-menu > .menu-item > .menu-link {
        font-size: 12px;
        padding-left: 8px;
        padding-right: 8px;
        white-space: nowrap;
    }

    .ast-builder-menu-1 .main-header-menu {
        flex-wrap: nowrap;
    }
}

/* ==========================================================
 * ACCOUNT TOPBAR
 * Replica funzionale Joomla js-topsocial / BT Login
 * ========================================================== */

.siae-topbar {
    width: 100%;
    background: #1c2124;
    color: #bfc5c9;
    font-size: 12px;
    line-height: 1;
}

.siae-topbar__inner {
    width: 100%;
    max-width: 1500px;
    min-height: 30px;
    margin: 0 auto;
    padding: 0 20px;

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

.siae-topbar__account {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 15px;
    min-height: 30px;
}

.siae-topbar__account a {
    color: #bfc5c9;
    text-decoration: none;
    transition: color .2s ease;
}

.siae-topbar__account a:hover,
.siae-topbar__account a:focus {
    color: #ffffff;
}

.siae-topbar__user {
    color: #ffffff;
    font-weight: 600;
}

/* separatori */
.siae-topbar__account a + a::before,
.siae-topbar__user + a::before {
    content: "";
    display: inline-block;
    width: 1px;
    height: 11px;
    margin-right: 15px;
    vertical-align: middle;
    background: rgba(255,255,255,.20);
}

@media (max-width: 921px) {
    .siae-topbar__inner {
        padding-left: 20px;
        padding-right: 20px;
    }

    .siae-topbar__account {
        gap: 10px;
    }

    .siae-topbar__account a + a::before,
    .siae-topbar__user + a::before {
        margin-right: 10px;
    }
}

/* ----------------------------------------------------------
 * Topbar refinement
 * ---------------------------------------------------------- */

.siae-topbar__inner,
.siae-topbar__account {
    min-height: 26px;
}

.siae-topbar__inner {
    padding-top: 0;
    padding-bottom: 0;
}

.siae-topbar {
    font-size: 11px;
}

/* ----------------------------------------------------------
 * Astra global colors override
 * ---------------------------------------------------------- */

:root {
    --ast-global-color-0: #008ac9;
    --ast-global-color-1: #0073a8;
    --ast-global-color-2: #1e293b;
    --ast-global-color-3: #334155;
    --ast-global-color-4: #ffffff;
    --ast-global-color-5: #f0f5fa;
    --ast-global-color-6: #111111;
    --ast-global-color-7: #d1d5db;
    --ast-global-color-8: #111111;
}

/* ==========================================================
 * MOBILE HEADER / MENU
 * ========================================================== */

@media (max-width: 921px) {

    .ast-mobile-header-content .main-header-menu > .menu-item > .menu-link {
        min-height: 44px;
        padding-top: 10px;
        padding-bottom: 10px;
        font-size: 15px;
        line-height: 24px;
    }

    .ast-mobile-header-content .main-header-menu .sub-menu .menu-link {
        min-height: 40px;
        padding-top: 8px;
        padding-bottom: 8px;
        font-size: 14px;
    }

    .ast-mobile-header-content .main-header-menu {
        padding-top: 0;
        padding-bottom: 8px;
    }

    /* Logo */
    .site-header .site-logo-img img.custom-logo {
        width: 120px;
        max-width: 120px;
    }
}

@media (max-width: 544px) {

    /* Account bar */
    .siae-topbar__inner {
        min-height: 26px;
        padding-left: 12px;
        padding-right: 12px;
    }

    .siae-topbar__account {
        min-height: 26px;
        gap: 8px;
        font-size: 10px;
    }

    .siae-topbar__account a + a::before,
    .siae-topbar__user + a::before {
        margin-right: 8px;
    }

}

@media (min-width: 545px) and (max-width: 921px) {

    .siae-footer__grid {
        row-gap: 32px;
    }

    .siae-footer__column {
        font-size: 12px;
        line-height: 1.65;
    }

    .siae-footer__column h2 {
        margin-bottom: 10px;
    }
}

/* ==========================================================
 * MIGRATED INTERNAL CONTENT
 * Joomla com_content + K2
 * ========================================================== */

/*
 * Astra usa ast-narrow-container (750px) per i post.
 * I contenuti del vecchio sito erano pagine corporate più larghe.
 */
@media (min-width: 922px) {

    body.siae-migrated-content.ast-narrow-container
    .site-content > .ast-container {
        max-width: 1200px;
    }

    body.siae-migrated-content .ast-article-single {
        padding: 44px 48px;
    }

    body.siae-migrated-content .entry-title {
        max-width: 1050px;
    }
}

/* Article card */
body.siae-migrated-content .site-main > article {
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

/* Header contenuto */
body.siae-migrated-content .entry-header {
    margin-bottom: 28px;
    padding-bottom: 18px;
    border-bottom: 1px solid #e4e8eb;
}

body.siae-migrated-content .entry-title {
    margin: 0;
    color: #1e293b;
    font-size: 34px;
    line-height: 1.25;
    font-weight: 600;
}

/*
 * Joomla com_content:
 * non deve sembrare un blog WordPress.
 */
body.siae-source-com-content .entry-meta {
    display: none;
}

/* Corpo */
body.siae-migrated-content .entry-content {
    color: #334155;
    font-size: 16px;
    line-height: 1.7;
}

/* Titoli interni */
body.siae-migrated-content .entry-content h2 {
    margin-top: 1.8em;
    margin-bottom: .7em;
    color: #1e293b;
    font-size: 28px;
    line-height: 1.25;
}

body.siae-migrated-content .entry-content h3 {
    margin-top: 1.6em;
    margin-bottom: .6em;
    color: #1e293b;
    font-size: 22px;
}

/* Immagini migrate */
body.siae-migrated-content .entry-content img {
    max-width: 100%;
    height: auto;
}

/*
 * Astra aggiunge una shadow globale alle immagini dei post:
 * non adatta alle immagini/documenti del vecchio sito.
 */
body.siae-migrated-content .ast-article-single figure,
body.siae-migrated-content .ast-article-single img:not(figure img) {
    box-shadow: none;
}

/* Tabelle legacy Joomla */
body.siae-migrated-content .entry-content table {
    width: 100%;
    max-width: 100%;
    border-collapse: collapse;
    border: 0;
}

body.siae-migrated-content .entry-content th,
body.siae-migrated-content .entry-content td {
    padding: 10px 12px;
    border: 0;
    vertical-align: top;
}

/* Link */
body.siae-migrated-content .entry-content a {
    color: #008ac9;
}

body.siae-migrated-content .entry-content a:hover,
body.siae-migrated-content .entry-content a:focus {
    color: #0073a8;
}

/* K2 News metadata */
body.siae-source-k2 .siae-k2-entry-meta,
body.siae-source-k2 .siae-k2-entry-meta * {
    color: #68757f;
    font-size: 13px;
    font-weight: 400;
}

body.siae-source-k2 .siae-k2-entry-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0;
}

body.siae-source-k2 .siae-k2-meta-category a {
    text-decoration: none;
}

body.siae-source-k2 .siae-k2-meta-category a:hover,
body.siae-source-k2 .siae-k2-meta-category a:focus {
    color: #008ac9;
}


/* Internal content rhythm */
body.siae-migrated-content .entry-content > :first-child {
    margin-top: 0;
}

body.siae-migrated-content .entry-content > :last-child {
    margin-bottom: 0;
}

body.siae-migrated-content .entry-content p {
    margin-top: 0;
    margin-bottom: 1.25em;
}

body.siae-migrated-content .entry-content ul,
body.siae-migrated-content .entry-content ol {
    margin-top: 0;
    margin-bottom: 1.4em;
    padding-left: 0.5em;
}

body.siae-migrated-content .entry-content li {
    margin-bottom: .35em;
}

body.siae-migrated-content .entry-content li:last-child {
    margin-bottom: 0;
}

/* Keep very wide legacy content manageable */
body.siae-migrated-content .entry-content pre,
body.siae-migrated-content .entry-content iframe,
body.siae-migrated-content .entry-content video {
    max-width: 100%;
}


/* Joomla migrated content: no generic WordPress post navigation */
body.siae-migrated-content .post-navigation {
    display: none;
}

/* Breadcrumb */
body.siae-migrated-content .siae-breadcrumb {
    margin: 0 0 18px;
    color: #68757f;
    font-size: 13px;
    line-height: 1.4;
}

body.siae-migrated-content .siae-breadcrumb__list {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0;
    margin: 0;
    padding: 0;
    list-style: none;
}

body.siae-migrated-content .siae-breadcrumb__item {
    display: flex;
    align-items: center;
    margin: 0;
    padding: 0;
}

body.siae-migrated-content
.siae-breadcrumb__item + .siae-breadcrumb__item::before {
    content: "/";
    display: inline-block;
    margin: 0 7px;
    color: #a1aab1;
}

body.siae-migrated-content .siae-breadcrumb a {
    color: #68757f;
    text-decoration: none;
}

body.siae-migrated-content .siae-breadcrumb a:hover,
body.siae-migrated-content .siae-breadcrumb a:focus {
    color: #008ac9;
}

body.siae-migrated-content .siae-breadcrumb__item--current {
    color: #87929a;
}

body.siae-migrated-content .siae-breadcrumb__item--current span {
    overflow-wrap: anywhere;
}

/* K2 metadata separator */
body.siae-source-k2 .siae-k2-meta-separator {
    display: inline-block;
    margin: 0 5px;
}

/* Responsive */
@media (max-width: 921px) {

    body.siae-migrated-content .entry-title {
        font-size: 28px;
    }

    body.siae-migrated-content .ast-article-single {
        padding: 30px 24px;
    }
}

@media (max-width: 544px) {

    body.siae-migrated-content .entry-title {
        font-size: 24px;
        line-height: 1.3;
    }

    body.siae-migrated-content .entry-header {
        margin-bottom: 22px;
        padding-bottom: 14px;
    }

    body.siae-migrated-content .entry-content {
        font-size: 15px;
        line-height: 1.65;
    }

    body.siae-migrated-content .entry-content h2 {
        font-size: 22px;
    }

    body.siae-migrated-content .entry-content h3 {
        font-size: 19px;
    }

    body.siae-migrated-content .ast-article-single {
        padding: 24px 18px;
    }

    body.siae-migrated-content .entry-content table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
}

/* ==========================================================
 * SIAE GLOBAL FOOTER
 * ========================================================== */

.siae-footer {
    width: 100%;
    background: #173f5f;
    color: #ffffff;
}

.siae-footer__main {
    padding: 45px 20px 40px;
}

.siae-footer__grid {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;

    display: grid;
    grid-template-columns: 1.35fr 1fr .85fr .85fr;
    gap: 45px;
}

.siae-footer__column {
    color: #ffffff;
    font-size: 12px;
    line-height: 1.65;
}

.siae-footer__column h2 {
    margin: 0 0 16px;
    color: #ffffff;
    font-size: 14px;
    line-height: 1.2;
    font-weight: 700;
    text-transform: uppercase;
}

.siae-footer__column p {
    margin: 0 0 4px;
    color: #ffffff;
}

.siae-footer__column ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.siae-footer__column li {
    margin: 0 0 7px;
}

.siae-footer__column a {
    color: #ffffff;
    text-decoration: none;
}

.siae-footer__column a:hover,
.siae-footer__column a:focus {
    color: #8dd7f7;
}

.siae-footer__bottom {
    background: #12344f;
    border-top: 1px solid rgba(255,255,255,.08);
}

.siae-footer__bottom-inner {
    width: 100%;
    max-width: 1200px;
    min-height: 52px;
    margin: 0 auto;
    padding: 12px 20px;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;

    color: #ffffff;
    font-size: 10px;
    line-height: 1.5;
}

.siae-footer__bottom a {
    color: #ffffff;
    text-decoration: none;
}

.siae-footer__bottom a:hover,
.siae-footer__bottom a:focus {
    color: #8dd7f7;
}

@media (max-width: 921px) {

    .siae-footer__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 32px 45px;
    }
}

@media (max-width: 544px) {

    .siae-footer__main {
        padding: 35px 20px 25px;
    }

    .siae-footer__grid {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .siae-footer__column {
        margin-bottom: 24px;
        font-size: 12px;
        line-height: 1.7;
    }

    .siae-footer__column h2 {
        margin-bottom: 10px;
        font-size: 13px;
    }

    .siae-footer__bottom-inner {
        min-height: 0;
        padding: 12px 20px;
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
        font-size: 10px;
    }
}



/* SIAE ORIGINAL HEADER START */

/* --------------------------------------------------------------------------
 * Main header / navigation
 * Reproduces the typography and spacing of the original Joomla Enar header.
 * -------------------------------------------------------------------------- */

@media (min-width: 922px) {

    /* Header row */
    .ast-primary-header-bar {
        background: #fff;
        border-bottom: 1px solid #e4e4e4;
    }

    .site-primary-header-wrap {
        min-height: 70px;
    }

    /* Logo */
    .site-header-primary-section-left .site-branding {
        margin-right: 45px;
    }

    .site-header .custom-logo-link {
        display: flex;
        align-items: center;
        min-height: 45px;
    }

    .site-header .custom-logo {
        display: block;
        width: auto;
        max-height: 58px;
    }

    /* Original Joomla menu typography */
    .ast-builder-menu-1,
    .ast-builder-menu-1 .main-header-menu,
    .ast-builder-menu-1 .main-header-menu .menu-link {
        font-family: "Open Sans", Arial, sans-serif;
    }

    .ast-builder-menu-1 .main-header-menu > .menu-item > .menu-link {
        height: 70px;
        padding: 0 20px;
        display: flex;
        align-items: center;

        color: #324545;
        font-size: 12px;
        font-weight: 600;
        line-height: 1;
        text-transform: uppercase;
        letter-spacing: 0;
    }

    /* Astra submenu arrow */
    .ast-builder-menu-1 .main-header-menu > .menu-item > .menu-link .dropdown-menu-toggle {
        padding-left: 6px;
        font-size: 9px;
    }

    /* Original light-header behaviour */
    .ast-builder-menu-1 .main-header-menu > .menu-item:hover > .menu-link,
    .ast-builder-menu-1 .main-header-menu > .current-menu-item > .menu-link,
    .ast-builder-menu-1 .main-header-menu > .current-menu-ancestor > .menu-link {
        color: #008ac9;
        background: transparent;
    }

    /* Submenus */
    .ast-builder-menu-1 .sub-menu {
        width: 300px;
        border: 1px solid #e4e4e4;
        background: #fff;
        box-shadow: none;
    }

    .ast-builder-menu-1 .sub-menu .menu-link {
        min-height: 40px;
        padding: 0 15px;

        color: #555;
        font-size: 12px;
        font-weight: 500;
        line-height: 40px;
        text-transform: none;

        border-bottom: 1px solid #e2e2e2;
    }

    .ast-builder-menu-1 .sub-menu .menu-link:hover {
        color: #008ac9;
        background: rgba(0, 0, 0, 0.02);
    }

    /* Keep the whole navigation group compact */
    .site-header-primary-section-right {
        align-items: center;
    }
}

@media (max-width: 921px) {
    .ast-builder-menu-mobile,
    .ast-builder-menu-mobile .main-header-menu,
    .ast-builder-menu-mobile .main-header-menu .menu-link {
        font-family: "Open Sans", Arial, sans-serif;
    }

    .ast-builder-menu-mobile .main-header-menu .menu-link {
        font-size: 12px;
        font-weight: 600;
        text-transform: uppercase;
    }
}

/* SIAE ORIGINAL HEADER END */

/* SIAE HEADER INTERMEDIATE WRAP START */

/*
 * Joomla-like behaviour on intermediate widths:
 * keep every desktop menu item visible by moving the navigation
 * below the logo before Astra switches to the mobile hamburger.
 */
@media (min-width: 922px) and (max-width: 1200px) {

    .site-primary-header-wrap .ast-builder-grid-row {
        grid-template-columns: 1fr;
        grid-template-areas:
            "site-logo"
            "primary-menu";
        row-gap: 0;
    }

    .site-header-primary-section-left {
        grid-area: site-logo;
        justify-content: flex-start;
        width: 100%;
    }

    .site-header-primary-section-right {
        grid-area: primary-menu;
        justify-content: flex-start;
        width: 100%;
    }

    .ast-primary-header-bar,
    .site-primary-header-wrap {
        min-height: auto;
    }

    .site-header-primary-section-left .site-branding {
        margin-right: 0;
    }

    .main-header-menu {
        width: 100%;
        justify-content: flex-start;
        flex-wrap: nowrap;
    }

    .main-header-menu > .menu-item > .menu-link {
        height: 48px;
        padding-left: 15px;
        padding-right: 15px;
    }
}

/* SIAE HEADER INTERMEDIATE WRAP END */


/* SIAE Account frontend */
.siae-account {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    max-width: 980px;
    margin: 40px auto 70px;
}

.siae-account__login,
.siae-account__register {
    padding: 32px;
    border: 1px solid #e5e5e5;
    background: #fff;
}

.siae-account h2 {
    margin-top: 0;
    margin-bottom: 24px;
}

.siae-account form p {
    margin-bottom: 18px;
}

.siae-account label {
    display: block;
    margin-bottom: 6px;
}

.siae-account input[type="text"],
.siae-account input[type="email"],
.siae-account input[type="password"] {
    width: 100%;
}

.siae-account input[type="submit"] {
    cursor: pointer;
}

.siae-account__lost-password {
    margin-top: 16px;
}

.siae-account--logged {
    display: block;
    max-width: 700px;
}

@media (max-width: 768px) {
    .siae-account {
        grid-template-columns: 1fr;
        gap: 24px;
        margin: 24px auto 50px;
    }

    .siae-account__login,
    .siae-account__register {
        padding: 24px;
    }
}
#cookie-notice .cn-button,
#cookie-notice .cn-more-info,
#cookie-notice .cn-set-cookie {
    color: #ffffff !important;
}
#cn-close-notice {
    display: none !important;
}

.siae-footer__linkedin-icon {
    display: block;
    width: 40px;
    height: 40px;
    color: #fff;
}

.siae-footer__linkedin-icon {
    display: block;
    width: 42px;
    height: 42px;
    padding: 6px;
    background: #fff;
    color: #1f4f73;
    border-radius: 5px;
}

.siae-footer__social {
    margin-top: 24px;
}

.siae-footer__social {
    margin-top: 84px;
}

.siae-footer__social {
    margin-top: 40px !important;
}

/* 404 */
.siae-404 {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 55vh;
    padding: 80px 24px;
    background: #fff;
}

.siae-404__inner {
    width: 100%;
    max-width: 760px;
    margin: 0 auto;
    text-align: center;
}

.siae-404__code {
    margin-bottom: 12px;
    font-size: clamp(96px, 14vw, 180px);
    font-weight: 700;
    line-height: 0.9;
    color: #e5e5e5;
}

.siae-404__title {
    margin: 0 0 18px;
    font-size: clamp(30px, 4vw, 46px);
    line-height: 1.15;
    color: #222;
}

.siae-404__text {
    max-width: 600px;
    margin: 0 auto 32px;
    font-size: 18px;
    line-height: 1.6;
    color: #555;
}

.siae-404__actions {
    margin: 0;
}

.siae-404__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 12px 28px;
    border: 2px solid #111;
    text-decoration: none;
    font-weight: 600;
    line-height: 1;
    color: #111;
    background: transparent;
    transition: background-color .2s ease, color .2s ease;
}

.siae-404__button:hover,
.siae-404__button:focus {
    color: #fff;
    background: #111;
}

@media (max-width: 767px) {
    .siae-404 {
        min-height: 45vh;
        padding: 56px 20px;
    }

    .siae-404__text {
        font-size: 16px;
    }
}

/* ==========================================================
 * ACCOUNT TOPBAR - Joomla visual alignment
 * ========================================================== */

.siae-topbar {
    background: #f1f1f1;
    color: #666666;
    border-bottom: 1px solid #dddddd;
    font-size: 11px;
}

.siae-topbar__inner,
.siae-topbar__account {
    min-height: 32px;
}

.siae-topbar__account {
    gap: 6px;
}

.siae-topbar__user {
    color: #555555;
}

.siae-topbar__account a {
    color: #666666;
}

.siae-topbar__account a:hover,
.siae-topbar__account a:focus {
    color: #333333;
}

.siae-topbar__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 24px;
    padding: 0 11px;
    border-radius: 2px;
    background: #1595cf;
    color: #ffffff !important;
    font-size: 11px;
    line-height: 24px;
    text-decoration: none;
}

.siae-topbar__button:hover,
.siae-topbar__button:focus {
    background: #087fb8;
    color: #ffffff !important;
}

.siae-topbar__account .siae-topbar__button::before {
    display: none !important;
}

@media (max-width: 544px) {
    .siae-topbar__inner,
    .siae-topbar__account {
        min-height: 32px;
    }

    .siae-topbar__button {
        min-height: 22px;
        padding: 0 9px;
        font-size: 10px;
        line-height: 22px;
    }
}

/* Final alignment with legacy Joomla topbar */
.siae-topbar__inner,
.siae-topbar__account {
    min-height: 26px;
}

.siae-topbar__inner {
    max-width: 1380px;
}

.siae-topbar__button {
    min-height: 22px;
    padding: 0 12px;
    border-radius: 2px;
    font-size: 11px;
    line-height: 22px;
}

/* Logged-in topbar alignment with legacy Joomla */
.siae-topbar__user {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 22px;
    padding: 0 12px;
    border-radius: 2px;
    background: #1595cf;
    color: #ffffff;
    font-size: 11px;
    line-height: 22px;
    font-weight: 400;
}

.siae-topbar__customers {
    color: #555555 !important;
}

.siae-topbar__customers:hover,
.siae-topbar__customers:focus {
    color: #1595cf !important;
}

.siae-topbar__button--logout {
    background: #1595cf;
    color: #ffffff !important;
}

/* evita il separatore prima dei controlli styled */
.siae-topbar__user + a::before,
.siae-topbar__customers + .siae-topbar__button--logout::before {
    display: none !important;
}

/* Logged-in topbar: uniform blue buttons */
.siae-topbar__customers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 22px;
    padding: 0 12px;
    border-radius: 2px;
    background: #1595cf;
    color: #ffffff !important;
    font-size: 11px;
    line-height: 22px;
    text-decoration: none;
}

.siae-topbar__customers:hover,
.siae-topbar__customers:focus {
    background: #087fb8;
    color: #ffffff !important;
}

/* nessun separatore tra i tre pulsanti */
.siae-topbar__user + a::before,
.siae-topbar__customers + a::before {
    display: none !important;
}

/* Logged-in topbar: user name as plain text */
.siae-topbar__user {
    display: inline;
    min-height: 0;
    padding: 0;
    border-radius: 0;
    background: transparent;
    color: #555555;
    font-size: 11px;
    line-height: 1;
    font-weight: 600;
}





/* =========================================================
   Global single post title bar
   ========================================================= */

.siae-single-post__hero {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    background-image: url('/wp-content/uploads/joomla/images/Titles/background.jpg');
    background-size: cover;
    background-position: center 42%;
    background-repeat: no-repeat;
}

.siae-single-post__hero-inner {
    max-width: 1180px;
    margin: 0 auto;
    padding: 22px 24px;
}

.siae-single-post__hero h1 {
    margin: 0;
    color: #fff;
    font-size: 32px;
    line-height: 1.2;
    font-weight: 300;
}

/* Nasconde il titolo standard Astra nel corpo del post */
.single-post .entry-header .entry-title {
    display: none;
}

/* Main menu: anche le sotto-voci devono essere maiuscole come nel Joomla originale */
.main-header-menu .sub-menu .menu-link {
    text-transform: uppercase;
}

/* Liste contenuto sito */
.entry-content ul,
.siae-history-single__content ul {
    list-style: none;
    margin-left: 0;
    padding-left: 0;
}

.entry-content ul li,
.siae-history-single__content ul li {
    position: relative;
    padding-left: 28px;
}

.entry-content ul li::after,
.siae-history-single__content ul li::after {
    background: #008ac9;
    height: 18px;
    width: 18px;
    position: absolute;
    content: "\203A";
    color: #fff;
    text-align: center;
    font-size: 14px;
    line-height: 18px;
    left: 0;
    top: 4px;
}

/* History: tabelle senza bordi */
.siae-history-single__content table,
.siae-history-single__content th,
.siae-history-single__content td {
    border: 0 !important;
}

/* SIAE CORPORATE COMPLIANCE START */

.siae-corporate-compliance {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 40px;
    align-items: start;
}

.siae-corporate-compliance__content {
    min-width: 0;
}

.siae-corporate-compliance__sidebar {
    min-width: 0;
}

.siae-corporate-compliance__languages {
    display: flex;
    gap: 6px;
    margin-bottom: 18px;
}

.siae-corporate-compliance__languages a {
    display: inline-flex;
    line-height: 0;
}

.siae-corporate-compliance__languages img {
    display: block;
    width: 35px;
    height: 35px;
    box-shadow: none;
}

.siae-corporate-compliance__menu {
    margin: 0;
    padding: 0;
    list-style: none;
    /* border-top: 1px solid #e5e5e5; */
}

.siae-corporate-compliance__menu li {
    margin: 0;
    padding: 0;
    /* border-bottom: 1px solid #e5e5e5; */
}

.siae-corporate-compliance__menu a {
    display: block;
    /* padding: 10px 4px; */
    text-decoration: none;
}

@media (max-width: 767px) {
    .siae-corporate-compliance {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .siae-corporate-compliance__sidebar {
        width: 100%;
    }
}

/* SIAE CORPORATE COMPLIANCE END */

/* Corporate Compliance download icon */
.siae-corporate-compliance__link.is-download {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.siae-corporate-compliance__download-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 14px;
    height: 14px;
    font-size: 12px;
    line-height: 1;
    color: #008ac9;
    font-weight: 700;
    transform: translateY(-1px);
}

/* Corporate Compliance download icon alignment */
.siae-corporate-compliance__link.is-download {
    display: inline;
}

.siae-corporate-compliance__download-icon {
    display: inline-block;
    vertical-align: baseline;
    margin-left: 4px;
    transform: none;
}

/* =========================================================
 * Support
 * Legacy Joomla article
 * ========================================================= */

body.postid-619 .entry-content > .content {
    max-width: 920px;
    margin: 0 auto;
}

/* Main title */
body.postid-619 .main_title {
    margin: 0 0 42px;
    text-align: center;
}

body.postid-619 .main_title h2 {
    position: relative;
    margin: 0;
    padding-bottom: 22px;
    color: #39474e;
    font-size: 25px;
    font-weight: 600;
    line-height: 1.25;
    text-align: center;
    text-transform: uppercase;
}

/* Decorative separator */
body.postid-619 .main_title .line {
    position: absolute;
    left: 50%;
    bottom: 0;
    display: block;
    width: 92px;
    height: 12px;
    transform: translateX(-50%);
}

body.postid-619 .main_title .line::before,
body.postid-619 .main_title .line::after {
    content: "";
    position: absolute;
    top: 6px;
    width: 34px;
    border-top: 1px solid #d4dadd;
}

body.postid-619 .main_title .line::before {
    left: 0;
}

body.postid-619 .main_title .line::after {
    right: 0;
}

body.postid-619 .main_title .ico-group {
    position: absolute;
    top: 2px;
    left: 50%;
    width: 16px;
    height: 10px;
    transform: translateX(-50%);
}

body.postid-619 .main_title .ico-group::before {
    content: "●●●";
    display: block;
    color: #0099cc;
    font-family: Arial, sans-serif;
    font-size: 6px;
    font-style: normal;
    letter-spacing: -1px;
    line-height: 10px;
}

/* Text */
body.postid-619 .entry-content .content h5 {
    margin: 0 0 18px;
    color: #4f5d63;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.55;
}

/* Links inside text */
body.postid-619 .entry-content .content h5 a {
    color: #0099cc;
    font-weight: 400;
    text-decoration: none;
}

body.postid-619 .entry-content .content h5 a:hover,
body.postid-619 .entry-content .content h5 a:focus {
    text-decoration: underline;
}

/* Web Ticketing Service button */
body.postid-619 .btn_c.large_btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 24px;
    border: 0;
    border-radius: 24px;
    background: #0099cc;
    color: #ffffff;
    font-size: 14px;
    font-style: italic;
    line-height: 1;
    text-decoration: none;
    box-shadow: none;
}

body.postid-619 .btn_c.large_btn:hover,
body.postid-619 .btn_c.large_btn:focus {
    background: #0087b5;
    color: #ffffff;
    text-decoration: none;
}

body.postid-619 .btn_c_ic_a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
}

body.postid-619 .btn_c_ic_a::before {
    content: "✚";
    font-size: 13px;
    font-style: normal;
}

body.postid-619 .btn_c_ic_a i,
body.postid-619 .btn_c_ic_b {
    display: none;
}

@media (max-width: 767px) {
    body.postid-619 .entry-content > .content {
        max-width: none;
    }

    body.postid-619 .main_title h2 {
        font-size: 21px;
    }

    body.postid-619 .entry-content .content h5 {
        font-size: 14px;
        text-align: left !important;
    }
}

/* =========================================================
 * USA & Canada - Dallas
 * ========================================================= */

body.postid-595 .entry-content > .content {
    max-width: 920px;
    margin: 0 auto;
}

/* Map + company details */
body.postid-595 .entry-content > .content > .col-md-8 {
    float: left;
    width: 66.6667%;
    padding-right: 24px;
    box-sizing: border-box;
}

body.postid-595 .entry-content > .content > .col-md-4 {
    float: left;
    width: 33.3333%;
    box-sizing: border-box;
}

body.postid-595 .entry-content > .content > .col-md-8 img {
    display: block;
    width: 100%;
    height: auto;
}

/* Main information table */
body.postid-595 .entry-content > .content > table {
    clear: both;
    width: 100%;
    margin-top: 28px;
    border-collapse: collapse;
}

body.postid-595 .entry-content table,
body.postid-595 .entry-content td,
body.postid-595 .entry-content th {
    border: 0;
}

body.postid-595 .entry-content td {
    padding: 5px 10px;
    vertical-align: top;
}

/* Distribution partners */
body.postid-595 .entry-content > .content > table tr:first-child td:nth-child(2) p:first-child {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 24px 34px;
}

body.postid-595 .entry-content > .content > table tr:first-child td:nth-child(2) a {
    display: inline-flex;
    align-items: center;
}

body.postid-595 .entry-content > .content > table tr:first-child td:nth-child(2) img {
    width: auto !important;
    max-width: 155px;
    height: auto !important;
    max-height: 72px;
}

/* References */
body.postid-595 .entry-content ul {
    margin: 0;
    padding-left: 20px;
}

body.postid-595 .entry-content ul li {
    margin-bottom: 5px;
}

body.postid-595 .entry-content ul li a {
    font-size: 13px;
    line-height: 1.4;
}

/* Responsive */
@media (max-width: 767px) {
    body.postid-595 .entry-content > .content > .col-md-8,
    body.postid-595 .entry-content > .content > .col-md-4 {
        float: none;
        width: 100%;
        padding-right: 0;
    }

    body.postid-595 .entry-content > .content > .col-md-4 {
        margin-top: 20px;
    }

    body.postid-595 .entry-content > .content > table {
        display: block;
        overflow-x: auto;
    }
}

/* Support page Gutenberg button */
body.postid-619 .wp-block-button__link {
    color: #fff !important;
    text-decoration: none !important;
}

body.postid-619 .wp-block-button__link:hover,
body.postid-619 .wp-block-button__link:focus {
    color: #fff !important;
}

/* Content Area: hide Astra page title */
body.page-id-887 .entry-header {
    display: none;
}

/* =========================================================
 * Global content flush under main navigation
 * ========================================================= */

.site-content,
.site-content > .ast-container,
#primary,
.site-main {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* SMIT Home: slider flush under main navigation */
.home .entry-header {
    display: none;
}

.home .entry-content {
    margin: 0;
}

.home .entry-content > p {
    margin: 0;
}

.home .ast-article-single {
    padding-top: 0 !important;
}

.home .n2-section-smartslider {
    margin-top: 0 !important;
}

.siae-account__success--reset-requested {
    color: #c62828;
    font-weight: 700;
}

.siae-account__success--password-reset {
    color: #2e7d32;
    font-weight: 700;
}

/* Account page: hide WordPress page title */
body.page-id-910 .entry-header {
    display: none;
}

/* Account page spacing below main navigation */
body.page-id-910 .entry-content {
    padding-top: 28px;
}

/* Account login/register boxes */
body.page-id-910 .siae-account__login,
body.page-id-910 .siae-account__register {
    border: 1px solid #ddd;
    padding: 32px 30px;
    background: #fff;
}

/* Center lost password / reset password box */
body.page-id-910 .siae-account--lost-password,
body.page-id-910 .siae-account--reset-password {
    max-width: 460px;
    margin-left: auto;
    margin-right: auto;
}

/* Lost/reset password: use full box width */
body.page-id-910 .siae-account--lost-password .siae-account__login,
body.page-id-910 .siae-account--reset-password .siae-account__login {
    width: 100%;
    max-width: none;
    flex: 0 0 100%;
}

/* Lost/reset password: single-column centered box */
body.page-id-910 .siae-account--lost-password,
body.page-id-910 .siae-account--reset-password {
    display: block;
    max-width: 460px;
    margin-left: auto;
    margin-right: auto;
}
