.siae-smop-download-area {
    margin-top: 28px;
}

.siae-smop-download-area .siae-download-header h1 {
    margin: 0 0 28px;
    font-size: 36px;
    line-height: 1.15;
    font-weight: 700;
    color: #1d2a39;
}

.siae-smop-download-area .siae-download-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
    margin-top: 18px;
}

.siae-smop-download-area .siae-download-box {
    border-top: 3px solid #1598d3;
    padding: 22px 0 0;
}

.siae-smop-download-area .siae-download-box h2 {
    margin: 0;
    font-size: 24px;
    line-height: 1.25;
    font-weight: 700;
}

.siae-smop-download-area .siae-download-box h2 a {
    color: #1598d3;
    text-decoration: none;
}

.siae-smop-download-area .siae-download-box h2 a:hover {
    text-decoration: underline;
}

.siae-smop-download-area .siae-download-login-note {
    margin: 0 0 24px;
}

.siae-smop-download-area .siae-download-file-panel {
    margin-top: 28px;
    border-top: 1px solid #e1e6ea;
}

.siae-smop-download-area .siae-download-file-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 18px 0;
    border-bottom: 1px solid #e1e6ea;
}

.siae-smop-download-area .siae-download-file-info {
    min-width: 0;
}

.siae-smop-download-area .siae-download-file-title {
    margin-bottom: 6px;
    font-size: 18px;
    line-height: 1.3;
    font-weight: 700;
    color: #1d2a39;
}

.siae-smop-download-area .siae-download-file-name a {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #1598d3;
    text-decoration: none;
}

.siae-smop-download-area .siae-download-file-name a:hover {
    text-decoration: underline;
}

.siae-smop-download-area .siae-download-file-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 24px;
    padding: 0 6px;
    border-radius: 2px;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
    color: #fff;
    background: #d64545;
}

.siae-smop-download-area .siae-download-file-actions {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-shrink: 0;
}

.siae-smop-download-area .siae-download-file-size {
    font-size: 13px;
    color: #77818a;
}

.siae-smop-download-area .siae-download-btn-download {
    display: inline-block;
    padding: 9px 18px;
    border: 1px solid #1598d3;
    background: #1598d3;
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
}

.siae-smop-download-area .siae-download-btn-download:hover {
    background: transparent;
    color: #1598d3;
}

@media (max-width: 900px) {
    .siae-smop-download-area .siae-download-grid {
        grid-template-columns: 1fr;
    }

    .siae-smop-download-area .siae-download-file-row {
        align-items: flex-start;
        flex-direction: column;
    }

    .siae-smop-download-area .siae-download-file-actions {
        width: 100%;
        justify-content: space-between;
    }
}

/* SMOP downloads landing */

.siae-smop-download-landing {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 60px;
    min-height: 360px;
    padding: 35px 90px 45px;
}

.siae-smop-download-categories {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 52px;
}

.siae-smop-download-category {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    color: #1598d3;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 17px;
    line-height: 1.2;
    font-weight: 400;
}

.siae-smop-download-category:hover {
    color: #1598d3;
    text-decoration: none;
}

.siae-smop-download-category-label {
    min-width: 190px;
    text-align: right;
}

.siae-smop-download-category-icon {
    position: relative;
    display: inline-flex;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    flex: 0 0 42px;
    border-radius: 50%;
    background: #1598d3;
}

.siae-smop-download-category-icon::before {
    color: #fff;
    font-size: 18px;
    line-height: 1;
}

.siae-smop-download-icon-collaterals::before {
    content: "▣";
}

.siae-smop-download-icon-whitepapers::before {
    content: "▤";
}

.siae-smop-download-icon-company::before {
    content: "▥";
}

.siae-smop-download-icon-generic::before {
    content: "▦";
}

.siae-smop-download-image {
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.siae-smop-download-image img {
    display: block;
    width: auto;
    max-width: 330px;
    height: auto;
}

/* Category detail */

.siae-smop-download-area > .siae-download-header {
    text-align: center;
    margin-bottom: 42px;
}

.siae-smop-download-area > .siae-download-header h1 {
    display: inline-block;
    position: relative;
    margin: 0;
    padding-bottom: 14px;
    font-size: 31px;
    line-height: 1.2;
    font-weight: 600;
    text-transform: uppercase;
    color: #33444b;
}

.siae-smop-download-area > .siae-download-header h1::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 120px;
    height: 2px;
    transform: translateX(-50%);
    background: #1598d3;
}

.siae-smop-download-area .siae-download-file-panel {
    margin-top: 0;
    border: 1px solid #e5e5e5;
}

.siae-smop-download-area .siae-download-file-row {
    padding: 14px 12px;
}

.siae-smop-download-area .siae-download-file-title {
    font-size: 14px;
    margin-bottom: 3px;
}

.siae-smop-download-area .siae-download-file-name {
    font-size: 13px;
}

.siae-smop-download-area .siae-download-btn-download {
    padding: 7px 14px;
    border-radius: 3px;
    font-size: 13px;
}

@media (max-width: 900px) {
    .siae-smop-download-landing {
        grid-template-columns: 1fr;
        gap: 35px;
        padding: 25px 0 35px;
    }

    .siae-smop-download-categories {
        align-items: flex-start;
        gap: 26px;
    }

    .siae-smop-download-category-label {
        min-width: 0;
        text-align: left;
    }

    .siae-smop-download-image {
        justify-content: center;
    }

    .siae-smop-download-image img {
        max-width: 260px;
    }
}

/* SMOP downloads landing refinements */

.siae-smop-download-landing {
    gap: 42px;
    min-height: 330px;
    padding: 24px 110px 32px;
}

.siae-smop-download-category {
    font-family: "Open Sans", Arial, sans-serif;
    font-size: 15px;
    font-weight: 400;
    text-decoration: none;
}

.siae-smop-download-category,
.siae-smop-download-category:visited,
.siae-smop-download-category:hover,
.siae-smop-download-category:focus {
    text-decoration: none;
}

.siae-smop-download-categories {
    gap: 42px;
}

.siae-smop-download-category-label {
    min-width: 175px;
}

.siae-smop-download-category-icon {
    width: 38px;
    height: 38px;
    flex-basis: 38px;
}

.siae-smop-download-category-icon::before {
    font-size: 16px;
}

.siae-smop-download-image img {
    max-width: 285px;
}

/* =========================================================
 * Download category - same layout as SMIT
 * ========================================================= */

.siae-smop-download-area .siae-download-file-panel {
    margin-top: 20px;
    border: 1px solid #e5e5e5;
    background: #fff;
}

.siae-smop-download-area .siae-download-file-panel-title {
    padding: 12px 16px;
    border-bottom: 1px solid #e5e5e5;
    background: #fafafa;
    font-size: 22px;
    font-weight: 400;
}

.siae-smop-download-area .siae-download-file-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 14px 16px;
    border-bottom: 1px solid #eeeeee;
}

.siae-smop-download-area .siae-download-file-row:last-child {
    border-bottom: 0;
}

.siae-smop-download-area .siae-download-file-info {
    min-width: 0;
    flex: 1;
}

.siae-smop-download-area .siae-download-file-title {
    margin-bottom: 4px;
    font-size: 14px;
    font-weight: 600;
}

.siae-smop-download-area .siae-download-file-name {
    color: #159bd3;
    font-size: 13px;
    word-break: break-word;
}

.siae-smop-download-area .siae-download-file-icon {
    margin-right: 5px;
    font-size: 12px;
}

.siae-smop-download-area .siae-download-file-actions {
    display: flex;
    gap: 8px;
    flex: 0 0 auto;
}

.siae-smop-download-area .siae-download-btn {
    display: inline-block;
    padding: 7px 13px;
    border-radius: 2px;
    color: #fff !important;
    text-decoration: none !important;
    font-size: 13px;
    line-height: 1.2;
}

.siae-smop-download-area .siae-download-btn-details {
    background: #49b8df;
}

.siae-smop-download-area .siae-download-btn-download {
    border: 0;
    background: #54b956;
}

.siae-smop-download-area .siae-download-btn:hover {
    opacity: .9;
}

/* Details tooltip */

.siae-smop-download-area .siae-download-details {
    position: relative;
    display: inline-block;
}

.siae-smop-download-area .siae-download-btn-details {
    border: 0;
    cursor: default;
    font: inherit;
}

.siae-smop-download-area .siae-download-tooltip {
    position: absolute;
    z-index: 50;
    top: calc(100% + 8px);
    right: 0;
    width: 260px;
    padding: 10px 12px 12px;
    border: 1px solid #a9a9a9;
    background: #f2f2f2;
    box-shadow: 0 2px 5px rgba(0, 0, 0, .12);
    color: #777;
    font-size: 13px;
    line-height: 1.45;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .15s ease;
}

.siae-smop-download-area .siae-download-details:hover .siae-download-tooltip,
.siae-smop-download-area .siae-download-details:focus-within .siae-download-tooltip {
    opacity: 1;
    visibility: visible;
}

.siae-smop-download-area .siae-download-tooltip-heading {
    margin: -10px -12px 10px;
    padding: 6px 10px;
    background: #ddd;
    color: #555;
    font-weight: 600;
}

.siae-smop-download-area .siae-download-tooltip-title {
    margin-bottom: 8px;
    color: #555;
    font-weight: 600;
}

.siae-smop-download-area .siae-download-tooltip-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
}

/* Breadcrumb - same as SMIT */

.siae-smop-download-area .siae-breadcrumb {
    display: block;
    margin: 0 0 18px;
    color: #68757f;
    font-size: 13px;
    line-height: 1.4;
}

.siae-smop-download-area .siae-breadcrumb__list {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0;
    margin: 0;
    padding: 0;
    list-style: none;
}

.siae-smop-download-area .siae-breadcrumb__item {
    display: flex;
    align-items: center;
    margin: 0;
    padding: 0;
}

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

.siae-smop-download-area .siae-breadcrumb a {
    color: #68757f;
    text-decoration: none;
}

.siae-smop-download-area .siae-breadcrumb a:hover,
.siae-smop-download-area .siae-breadcrumb a:focus {
    color: #008ac9;
}

.siae-smop-download-area .siae-breadcrumb__item--current {
    color: #87929a;
}

@media (max-width: 640px) {
    .siae-smop-download-area .siae-download-file-row {
        align-items: flex-start;
        flex-direction: column;
    }

    .siae-smop-download-area .siae-download-file-actions {
        width: 100%;
    }
}

/* Download category final fixes */

/* Details e Download identici come dimensione */
.siae-smop-download-area .siae-download-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    width: 72px;
    height: 34px;
    padding: 0;
    border: 0;
    border-radius: 2px;
    font-size: 13px;
    line-height: 1;
    font-weight: 400;
}

.siae-smop-download-area .siae-download-btn-details {
    background: #49b8df;
    color: #fff !important;
}

.siae-smop-download-area .siae-download-btn-download,
.siae-smop-download-area .siae-download-btn-download:visited {
    background: #54b956;
    color: #fff !important;
}

/* Annulla il vecchio hover trasparente */
.siae-smop-download-area .siae-download-btn-download:hover,
.siae-smop-download-area .siae-download-btn-download:focus {
    background: #54b956;
    color: #fff !important;
    text-decoration: none;
    opacity: .9;
}

.siae-smop-download-area .siae-download-btn-details:hover,
.siae-smop-download-area .siae-download-btn-details:focus {
    background: #49b8df;
    color: #fff !important;
    opacity: .9;
}


/* Download breadcrumb: neutralize generic content list spacing */
body.siae-migrated-content
.entry-content
.siae-smop-download-area
.siae-breadcrumb__item {
    margin-bottom: 0;
}

/* Downloads page: hide Astra page header/breadcrumb */
body.page-id-7 .entry-header {
    display: none;
}

/* Downloads page: hide theme breadcrumb only */
body.page-id-7 .ast-breadcrumbs-wrapper,
body.page-id-7 .ast-breadcrumbs,
body.page-id-7 .breadcrumb-trail {
    display: none !important;
}

/* Downloads page: hide outer page breadcrumb only */
body.page-id-7 article#post-7 > nav.siae-breadcrumb {
    display: none;
}

/* =========================================================
 * Download category - align file rows with SMIT
 * ========================================================= */

.siae-smop-download-area .siae-download-file-name > a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
}

.siae-smop-download-area
.siae-download-file-name > a:hover
.siae-download-file-link {
    text-decoration: underline;
}

.siae-smop-download-area .siae-download-file-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 22px;
    height: 18px;
    margin: 0;
    border-radius: 2px;
    font-size: 8px;
    font-weight: 700;
    line-height: 1;
    box-sizing: border-box;
}

.siae-smop-download-area .siae-download-file-icon-pdf {
    border: 1px solid #d9534f;
    color: #d9534f;
    background: #fff;
}

.siae-smop-download-area .siae-download-file-icon-generic {
    border: 1px solid #999;
    color: #777;
    background: #fff;
}

.siae-smop-download-area .siae-download-btn {
    width: auto;
    height: auto;
    min-height: 34px;
    padding: 0 14px;
    font-size: 13px;
    line-height: 1;
    font-weight: 400;
    vertical-align: middle;
    box-sizing: border-box;
}

@media (max-width: 640px) {
    .siae-smop-download-area .siae-download-file-actions {
        justify-content: flex-start;
        gap: 8px;
    }
}

/* SMOP mobile download rows - compact like SMIT */
@media (max-width: 640px) {
    .siae-smop-download-area .siae-download-file-row {
        gap: 10px;
        padding: 12px 14px;
    }

    .siae-smop-download-area .siae-download-file-title {
        margin-bottom: 3px;
        line-height: 1.25;
    }

    .siae-smop-download-area .siae-download-file-name {
        line-height: 1.35;
    }

    .siae-smop-download-area .siae-download-file-actions {
        margin-top: 2px;
    }
}

/* =========================================================
 * SMOP Downloads landing - legacy mobile layout
 * ========================================================= */

@media (max-width: 640px) {

    /* Header grafico originale Joomla */
    body.page-id-7 .siae-smop-download-area > .siae-download-header {
        position: relative;
        width: 100vw;
        margin-left: calc(50% - 50vw);
        min-height: 78px;
        margin-bottom: 28px;
        background:
            url("../images/smop-downloads-header.jpg")
            center center / cover no-repeat;
    }

    body.page-id-7 .siae-smop-download-area > .siae-download-header h1 {
        display: none;
    }

    /* Landing */
    body.page-id-7 .siae-smop-download-landing {
        display: block;
        width: 100%;
        padding: 0 18px 34px;
        box-sizing: border-box;
    }

    /* Categorie verticali, centrate */
    body.page-id-7 .siae-smop-download-categories {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 34px;
        width: 100%;
        margin: 0 0 42px;
    }

    body.page-id-7 .siae-smop-download-category {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        width: 100%;
        max-width: 280px;
        min-height: 0;
        padding: 0;
        border: 0;
        background: transparent;
        box-shadow: none;
        text-align: center;
    }

    body.page-id-7 .siae-smop-download-category:hover,
    body.page-id-7 .siae-smop-download-category:focus {
        border: 0;
        background: transparent;
        box-shadow: none;
        transform: none;
    }

    body.page-id-7 .siae-smop-download-category-label {
        order: 1;
        margin: 0 0 12px;
        color: #555;
        font-size: 17px;
        font-weight: 600;
        line-height: 1.25;
        text-align: center;
    }

    body.page-id-7 .siae-smop-download-category-icon {
        order: 2;
        width: 62px;
        height: 62px;
        margin: 0;
        font-size: 28px;
    }

    /* Immagine cartelle */
    body.page-id-7 .siae-smop-download-image {
        display: flex;
        justify-content: center;
        width: 100%;
        margin: 8px 0 0;
    }

    body.page-id-7 .siae-smop-download-image img {
        display: block;
        width: min(310px, 86vw);
        height: auto;
        margin: 0 auto;
    }
}

/* =========================================================
 * SMOP Downloads landing - final legacy mobile alignment
 * ========================================================= */

@media (max-width: 640px) {

    /* Banner originale con titolo */
    body.page-id-7 .siae-smop-download-area > .siae-download-header {
        position: relative;
        width: 100vw;
        min-height: 82px;
        margin-left: calc(50% - 50vw);
        margin-bottom: 74px;
        background:
            url("../images/smop-downloads-header.jpg")
            center center / cover no-repeat;
        text-align: left;
    }

    body.page-id-7 .siae-smop-download-area > .siae-download-header::after {
        content: "DOWNLOADS";
        position: absolute;
        left: 14px;
        top: 50%;
        transform: translateY(-50%);
        color: #fff;
        font-size: 28px;
        font-weight: 600;
        line-height: 1;
        text-transform: uppercase;
    }

    body.page-id-7 .siae-smop-download-area > .siae-download-header h1 {
        display: none;
    }

    body.page-id-7 .siae-smop-download-landing {
        display: block;
        width: 100%;
        min-height: 0;
        padding: 0 16px 62px;
        box-sizing: border-box;
    }

    body.page-id-7 .siae-smop-download-categories {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 66px;
        width: 100%;
        margin: 0 0 118px;
    }

    body.page-id-7 .siae-smop-download-category {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        gap: 15px;
        width: auto;
        max-width: none;
        min-height: 0;
        padding: 0;
        border: 0;
        background: transparent;
        box-shadow: none;
        color: #1598d3;
        text-decoration: none;
        text-align: center;
    }

    body.page-id-7 .siae-smop-download-category:hover,
    body.page-id-7 .siae-smop-download-category:focus,
    body.page-id-7 .siae-smop-download-category:visited {
        color: #1598d3;
        text-decoration: none;
        background: transparent;
        box-shadow: none;
        transform: none;
    }

    body.page-id-7 .siae-smop-download-category-icon {
        order: 1;
        width: 44px;
        height: 44px;
        flex: 0 0 44px;
        margin: 0;
        border-radius: 50%;
        background: #1598d3;
    }

    body.page-id-7 .siae-smop-download-category-icon::before {
        color: #fff;
        font-size: 17px;
    }

    body.page-id-7 .siae-smop-download-category-label {
        order: 2;
        min-width: 0;
        margin: 0;
        color: #1598d3;
        font-size: 17px;
        font-weight: 400;
        line-height: 1.15;
        text-align: center;
        text-decoration: none;
    }

    body.page-id-7 .siae-smop-download-category-label::first-line {
        text-decoration: none;
    }

    body.page-id-7 .siae-smop-download-image {
        display: flex;
        justify-content: center;
        width: 100%;
        margin: 0;
    }

    body.page-id-7 .siae-smop-download-image img {
        display: block;
        width: min(300px, 88vw);
        max-width: none;
        height: auto;
        margin: 0 auto;
    }
}

/* SMOP Downloads landing - legacy typography/proportions */
@media (max-width: 640px) {

    body.page-id-7 .siae-smop-download-area > .siae-download-header::after {
        left: 12px;
        font-family: "Arial Narrow", Arial, sans-serif;
        font-size: 31px;
        font-weight: 600;
        letter-spacing: -1px;
    }

    body.page-id-7 .siae-smop-download-categories {
        gap: 72px;
        margin-bottom: 125px;
    }

    body.page-id-7 .siae-smop-download-category {
        gap: 14px;
    }

    body.page-id-7 .siae-smop-download-category-label {
        font-family: "Arial Narrow", Arial, sans-serif;
        font-size: 18px;
        font-weight: 400;
        letter-spacing: -0.4px;
    }

    body.page-id-7 .siae-smop-download-category-icon {
        width: 43px;
        height: 43px;
        flex-basis: 43px;
    }

    body.page-id-7 .siae-smop-download-image img {
        width: min(285px, 82vw);
    }

    body.page-id-7 .siae-smop-download-landing {
        padding-bottom: 76px;
        padding-top: 30px;
    }
}

/* =========================================================
 * SMOP Downloads landing header - legacy layout
 * ========================================================= */

body.page-id-7
.siae-smop-download-area
.siae-download-header--landing {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-bottom: 52px;
    background-image: url("../images/smop-downloads-header.jpg");
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    text-align: left;
}

body.page-id-7
.siae-smop-download-area
.siae-download-header--landing
.siae-download-header__inner {
    max-width: 1180px;
    margin: 0 auto;
    padding: 32px 24px;
}

body.page-id-7
.siae-smop-download-area
.siae-download-header--landing h1 {
    display: block;
    margin: 0;
    padding: 0;
    color: #fff;
    font-family: "Arial Narrow", Arial, sans-serif;
    font-size: 34px;
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: -1px;
    text-transform: uppercase;
}

body.page-id-7
.siae-smop-download-area
.siae-download-header--landing h1::after {
    display: none;
}

/* Mobile */
@media (max-width: 640px) {

    body.page-id-7
    .siae-smop-download-area
    .siae-download-header--landing {
        min-height: 82px;
        margin-bottom: 74px;
    }

    body.page-id-7
    .siae-smop-download-area
    .siae-download-header--landing
    .siae-download-header__inner {
        padding: 0 14px;
        min-height: 82px;
        display: flex;
        align-items: center;
    }

    body.page-id-7
    .siae-smop-download-area
    .siae-download-header--landing h1 {
        font-size: 31px;
    }

    /* neutralizza il vecchio titolo generato via pseudo-elemento */
    body.page-id-7
    .siae-smop-download-area
    > .siae-download-header::after {
        content: none;
    }
}

/* Downloads hero: same geometry as About Us */
body.page-id-7 .siae-single-post__hero {
    min-height: 105px;
    display: flex;
    align-items: center;
    background:
        linear-gradient(rgba(8, 47, 68, .15), rgba(8, 47, 68, .15)),
        url("../images/smop-downloads-header.jpg")
        center center / cover no-repeat;
}

body.page-id-7 .siae-single-post__hero-inner {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

body.page-id-7 .siae-single-post__hero h1 {
    margin: 0;
    color: #fff;
    font-size: 26px;
    font-weight: 400;
    line-height: 1.2;
    text-transform: uppercase;
}
