/* ==========================================================================
   Page News — Lindhaus custom template
   ========================================================================== */

/* ---------- Design tokens (shared with single-prodotto, settore) ---------- */
:root {
    --lh-blue: #4992BB;
    --lh-blue-light: #DCEBF3;
    --lh-gray-bg: #EBEBEB;
    --lh-text: #565656;
    --lh-text-dark: #333;
    --lh-footer-gray: #777474;
    --lh-white: #fff;
    --lh-radius: 10px;
    --lh-container: 1140px;
    --lh-gap: 24px;
    --lh-section-spacing: 60px;
    --lh-font-heading: 'Inter', sans-serif;
    --lh-font-body: 'Inter', sans-serif;
    --lh-font-btn: 'Roboto', sans-serif;
}

/* ---------- Base ---------- */
.lh-news-page {
    color: var(--lh-text);
    font-family: var(--lh-font-body);
    font-weight: 400;
    line-height: 1.6;
    overflow-x: hidden;
    overflow-x: clip;
}

.lh-news-page *,
.lh-news-page *::before,
.lh-news-page *::after {
    box-sizing: border-box;
}

.lh-news-page img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ---------- 1. Hero ---------- */
.lh-news-hero {
    position: relative;
    overflow: hidden;
    background-color: var(--lh-white);
    background-position: right center;
    background-repeat: no-repeat;
    background-size: contain;
    min-height: 60vh;
    min-height: 60dvh;
}

/* Diagonal white overlay — covers left half with angled cut */
.lh-news-hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: var(--lh-white);
    clip-path: polygon(0 0, 55% 0, 50% 100%, 0 100%);
    z-index: 1;
}

.lh-news-hero__inner {
    position: relative;
    z-index: 2;
    max-width: var(--lh-container);
    margin: 0 auto;
    padding: 0 20px;
    min-height: 60vh;
    min-height: 60dvh;
    display: flex;
    align-items: center;
}

.lh-news-hero__text-col {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    max-width: 400px;
}

.lh-news-hero__title {
    font-family: var(--lh-font-heading);
    font-size: 42px;
    font-weight: 700;
    text-transform: uppercase;
    line-height: 1.3;
    margin: 0;
    color: var(--lh-blue);
}

/* ---------- 2. Breadcrumb ---------- */
.lh-news-breadcrumb {
    background: #ebebeb;
    padding: 60px 0;
    font-size: 13px;
    color: var(--lh-footer-gray);
}

.lh-news-breadcrumb__inner {
    max-width: var(--lh-container);
    margin: 0 auto;
    padding: 0 20px;
}

.lh-news-breadcrumb__inner p {
    margin: 0;
}

.lh-news-breadcrumb__inner span:last-child {
    color: var(--lh-text-dark);
}

.lh-news-breadcrumb a {
    color: var(--lh-blue);
    text-decoration: none;
}

.lh-news-breadcrumb a:hover {
    text-decoration: underline;
}

/* ---------- 3. Articles List ---------- */
.lh-news-list-section {
    padding: 0 0 var(--lh-section-spacing);
    background: var(--lh-gray-bg);
}

.lh-news-list-inner {
    max-width: var(--lh-container);
    margin: 0 auto;
    padding: 0 20px;
}

.lh-news-list {
    display: flex;
    flex-direction: column;
    gap: var(--lh-gap);
    list-style: none;
    margin: 0;
    padding: 0;
}

/* No results */
.lh-news-no-results {
    text-align: center;
    padding: 60px 20px;
    font-size: 16px;
    color: var(--lh-footer-gray);
}

/* ---------- 4. Pagination ---------- */
.lh-news-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 48px;
}

.lh-news-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    font-family: var(--lh-font-body);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    border-radius: var(--lh-radius);
    border: 1px solid transparent;
    color: var(--lh-text);
    background: var(--lh-white);
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.lh-news-pagination .page-numbers:hover {
    border-color: var(--lh-blue);
    color: var(--lh-blue);
}

.lh-news-pagination .page-numbers.current {
    background: var(--lh-blue);
    color: var(--lh-white);
    border-color: var(--lh-blue);
}

.lh-news-pagination .page-numbers.dots {
    background: transparent;
    border: none;
    cursor: default;
}

.lh-news-pagination .page-numbers.prev,
.lh-news-pagination .page-numbers.next {
    font-weight: 600;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

/* Tablet large (new breakpoint) */
@media (max-width: 1100px) {
    .lh-news-hero {
        background-size: cover;
    }

    .lh-news-hero::before {
        display: none;
    }

    .lh-news-hero__text-col {
        max-width: 100%;
        padding: 20px;
        background: rgba(255, 255, 255, 0.95);
        border-radius: var(--lh-radius);
    }
}

/* Tablet */
@media (max-width: 768px) {
    .lh-news-hero {
        min-height: auto;
    }

    .lh-news-hero__inner {
        min-height: auto;
        padding: 40px 20px;
    }

    .lh-news-hero__title {
        font-size: 30px;
    }
}

/* Small mobile */
@media (max-width: 480px) {
    .lh-news-hero {
        min-height: 300px;
    }

    .lh-news-hero__inner {
        padding: 20px;
    }

    .lh-news-hero__title {
        font-size: 26px;
    }

    .lh-news-pagination .page-numbers {
        min-width: 36px;
        height: 36px;
        font-size: 13px;
        padding: 0 8px;
    }
}