/* Fix sticky sidebar: overflow-x:hidden su html e body rompe position:sticky.
   overflow-x:clip clippa senza creare un nuovo scroll container. */
html {
    overflow: visible !important;
    overflow-x: clip !important;
}

body {
    overflow-x: clip !important;
}

.press-section,
.press-section .container,
.press-layout {
    overflow: visible !important;
}

.footer {
    margin-top: 0 !important;
}

.deco-1 {
    position: absolute;
    top: 360px;
    left: 100px;
    width: 128px;
    height: auto;
    z-index: 10;
    pointer-events: none;
}

.deco-2 {
    position: absolute;
    bottom: 1500px;
    right: 60px;
    width: 72px;
    height: auto;
    z-index: 10;
    pointer-events: none;
}

.deco-3 {
    position: absolute;
    bottom: 700px;
    left: 350px;
    width: 65px;
    height: auto;
    z-index: 10;
    pointer-events: none;
}

.deco-4 {
    position: absolute;
    top: 200px;
    right: 400px;
    width: 60px;
    height: auto;
    z-index: 10;
    pointer-events: none;
}

.press-cta-divider {
    border: none;
    border-top: 1px solid rgba(0, 0, 0, 0.10);
    margin: 30px 0;
    width: 100%;
}

.press-cta-buttons {
    margin-top: 0;
    display: flex;
    gap: 16px;
}

.btn.press-cta-btn {
    min-width: 180px;
    text-align: center;
}

.btn-filled.press-cta-btn {
    border: 3px solid transparent;
}

.choose-section {
    padding: 30px 0 150px 0;
    border-top: 1px solid rgba(0, 0, 0, 0.10);
    border-bottom: 1px solid rgba(0, 0, 0, 0.10);
}

.hero {
    padding: 30px 0px 20px 0;
}

.detail-breadcrumb {
    color: var(--secondary-black);
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin: 0;
    padding-left: 8px;
}

.breadcrumb-link {
    color: var(--primary-color);
    text-decoration: none;
}

/* Press Release Section */
.press-section {
    width: 100%;
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 0 80px 0;
    overflow: visible;
    position: relative;
}

.press-section .container {
    padding: 0;
    width: 100%;
    overflow: visible;
}

/* Header: title + meta */
.press-header {
    padding-left: 31%;
    padding-right: 130px;
    margin-bottom: 50px;
}

.press-title {
    font-size: 50px;
    line-height: 58px;
    font-weight: 600;
    color: var(--secondary-black);
    margin: 0 0 20px 0;
}

.press-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 16px;
    color: var(--secondary-black);
}

.press-date {
    font-weight: 400;
}

.press-meta-dot {
    color: var(--primary-color);
    font-size: 18px;
}

.press-location {
    font-weight: 400;
}

/* Hidden radio inputs for TOC active state */
.press-toc-radio {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

/* Two-column layout */
.press-layout {
    display: flex;
    gap: 0;
    align-items: flex-start;
    overflow: visible;
}

/* Sidebar — sticky */
.press-sidebar {
    width: 310px;
    flex-shrink: 0;
    position: sticky;
    top: 100px;
    padding-right: 30px;
    align-self: flex-start;
}

.press-toc {
    display: flex;
    flex-direction: column;
}

.press-toc-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--secondary-black);
    margin: 0;
    text-align: right;
    padding: 16px 0px 10px 0;
    border-top: 1px solid var(--lines-grey);
    border-bottom: 1px solid var(--lines-grey);
}

.press-toc-item {
    cursor: pointer;
}

.press-toc-link {
    display: block;
    font-size: 18px;
    font-weight: 400;
    line-height: 24px;
    color: var(--secondary-black);
    text-decoration: none;
    text-align: right;
    padding: 14px 0px 10px 0;
    border-bottom: 1px solid var(--lines-grey);
    transition: color 0.2s ease;
}

.press-toc-link:hover {
    color: var(--primary-color);
}

/* Active state via JS */
.press-toc-link.active {
    color: var(--primary-color);
}

/* Content area */
.press-content {
    flex: 1;
    min-width: 0;
}

.press-hero-image {
    width: 100%;
    margin-bottom: 0;
}

.press-hero-image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* Body text — overlaps image, aligned with title */
.press-body {
    max-width: 930px;
    background: var(--background-white);
    padding: 30px 40px 0 40px;
    margin-top: -30px;
    margin-left: 95px;
    position: relative;
    z-index: 2;
}

.press-body p {
    font-size: 18px;
    font-weight: 400;
    line-height: 24px;
    color: var(--secondary-black);
    margin: 0 0 18px 0;
}

/* Smooth scroll e offset per anchor */
html {
    scroll-behavior: smooth;
}

.press-body h3 {
    font-size: 24px;
    font-weight: 600;
    line-height: 32px;
    color: var(--secondary-black);
    margin: 40px 0 16px 0;
    scroll-margin-top: 100px;
}

/* Highlights / bullet list */
.press-highlights {
    list-style: disc;
    padding-left: 20px;
    margin: 0 0 30px 0;
}

.press-highlights li {
    font-size: 22px;
    font-weight: 400;
    line-height: 26px;
    color: var(--secondary-black);
    margin-bottom: 12px;
}

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

@media (max-width: 1440px) {
    .press-header {
        padding-left: 30%;
        padding-right: 80px;
    }

    .press-sidebar {
        width: 280px;
    }

    .press-body {
        margin-left: calc(30% - 280px);
    }

     .deco-4 {
        position: absolute;
        top: 340px;
        right: 250px;
        width: 50px;
        height: auto;
        z-index: 10;
        pointer-events: none;
    }

    /* Nascondi decorazioni */
    .deco-1, .deco-2, .deco-3 {
        display: none;
    }


}

/* ---- TABLET (layout a colonna da 1024px in giù) ---- */
@media (max-width: 1024px) {

    /* Allinea press-section al padding standard del container */
    .press-section .container {
        padding-left: var(--container-padding) !important;
        padding-right: var(--container-padding) !important;
    }

    /* Breadcrumb già allineato dal container della hero — reset override */
    .detail-breadcrumb {
        display: block;
        width: auto;
        margin: 0;
        padding-left: 0;
    }

    .press-header {
        width: 100%;
        margin-left: 0;
        margin-right: 0;
        padding-left: 0;
        padding-right: 0;
        margin-bottom: 30px;
    }

    .press-title {
        font-size: 40px;
        font-weight: 600;
        line-height: 48px;
    }

    .press-layout {
        flex-direction: column;
        gap: 0;
    }

    /* Sidebar sopra la foto — piena larghezza del container, link a destra */
    .press-sidebar {
        display: block;
        width: 100%;
        margin: 0;
        position: static;
        padding: 0 0 20px 0;
    }

    .press-toc-title {
        font-size: 18px;
        font-weight: 400;
        text-align: right;
    }

    .press-toc-link {
        font-size: 18px;
        font-weight: 400;
        padding: 10px 0;
        text-align: right;
    }

    /* Foto a piena larghezza — esce dal container con margini negativi */
    .press-hero-image {
        margin-left: calc(-1 * var(--container-padding));
        margin-right: calc(-1 * var(--container-padding));
        width: calc(100% + 2 * var(--container-padding));
    }

    /* Testo sovrapposto alla foto */
    .press-body {
        max-width: 100%;
        margin: -30px 0 0 0;
        padding: 24px 24px 0 24px;
        background: var(--background-white);
    }

    .press-body p {
        font-size: 18px;
        font-weight: 400;
        line-height: 26px;
    }

    .press-body h3 {
        font-size: 22px;
        line-height: 30px;
        margin: 30px 0 12px 0;
    }

    .press-highlights li {
        font-size: 22px;
        font-weight: 400;
        line-height: 28px;
    }

    /* CTA section */
    .choose-section {
        padding: 30px 0 80px 0;
    }

    /* Pulsanti affiancati, ~2/3 dello spazio disponibile */
    .press-cta-buttons {
        flex-direction: row;
        width: 66%;
    }

    .btn.press-cta-btn {
        flex: 1;
        min-width: 0;
        text-align: center;
    }

    .deco-4 {
        top: 270px;
        right: 50px;
    }

    
}

/* ---- BREAKPOINT INTERMEDIO PULSANTI ---- */
@media (max-width: 740px) {
    .press-cta-buttons {
        flex-direction: row;
        width: auto;
        justify-content: flex-start;
    }

    .btn.press-cta-btn {
        flex: 0 0 auto;
        min-width: 130px !important;
        font-size: 14px !important;
        line-height: 1.4 !important;
        padding: 12px 16px !important;
        letter-spacing: 0.06em !important;
        text-align: center !important;
    }

    .deco-4 {
        position: absolute;
        top: 300px;
        right: 40px;
        width: 50px;
        height: auto;
        z-index: 10;
        pointer-events: none;
    }

}

/* ---- MOBILE ---- */
@media (max-width: 480px) {
    .press-title {
        font-size: 40px;
        font-weight: 600;
        line-height: 48px;
    }

    .press-body {
        padding: 20px 16px 0 16px;
        margin-top: -24px;
    }

    .press-body p {
        font-size: 18px;
        font-weight: 400;
        line-height: 26px;
    }

    .press-body h3 {
        font-size: 20px;
        line-height: 28px;
        margin: 24px 0 10px 0;
    }

    .press-highlights li {
        font-size: 18px;
        font-weight: 400;
        line-height: 26px;
    }

    .press-toc-link {
        font-size: 18px;
        font-weight: 400;
    }

    /* Pulsanti affiancati a piena larghezza */
    .press-cta-buttons {
        flex-direction: row;
        width: 100%;
    }

    .btn.press-cta-btn {
        flex: 1;
        min-width: 0 !important;
        font-size: 14px !important;
        line-height: 1.4 !important;
        padding: 12px 8px !important;
        letter-spacing: 0.06em !important;
    }

    .deco-4 {
        top: 250px;
        right: 50px;
    }
}

@media (max-width: 440px) {

    .deco-4 {
        top: 290px;
        right: 50px;
    }
}

